Hi, I'm having trouble searching for r4 appointments using a system account. I've successfully authenticated and have a correct bearer token, which I've verified by successfully reading a patient. However, when I try to search for appointments I get the a vague "invalid request" error. I've tried varying the patient and dates, and still get the same error. Here is an example:
X-Request-ID: aa05a3c7a612dfdcae3ca381124a139a
Response Body (formatted for readability):
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invalid",
"details": {
"text": "Invalid request"
}
}
]
}