Hi,
I am getting the following error response when I attempt to create an appointment:
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invalid",
"details": {
"text": "Unprocessable entity"
}
}
]
}
response headers:
{'Content-Type': 'application/fhir+json; charset=utf-8', 'Content-Length': '125', 'Connection': 'keep-alive', 'Date': 'Tue, 17 May 2022 18:40:04 GMT', 'Cache-Control': 'no-cache', 'Server-Response-Time': '243.487214', 'Vary': 'Origin', 'X-Request-Id': 'f0df9393-df7d-4218-848f-37941b13163f+6372', 'X-Runtime': '0.243426', 'X-Cache': 'Error from cloudfront', 'Via': '1.1
71e7943ea0729c284a06faa05a567236.cloudfront.net (CloudFront)', 'X-Amz-Cf-Pop': 'YVR50-C1', 'X-Amz-Cf-Id': '7neGdl9ZwHY9pEsRROXcQAolekxF_rwlfEFbX2xk1BJfaEeyTRgqqA=='}
Here is the appointment json I am sending:
{
"resourceType": "Appointment",
"status": "proposed",
"participant": [
{
"actor": {
"reference": "Patient/12793235",
"display": "[{'id': 'CI-12793235-0', 'use': 'official', 'text': 'Smith, Jingleheimer', 'family': 'Smith', 'given': ['Jingleheimer']}]"
},
"status": "needs-action"
},
{
"actor": {
"reference": "Location/21250403",
"display": "Model Hospital"
},
"status": "needs-action"
}
],
"requestedPeriod": [
{
"start": "2022-05-27T16:00:00+00:00",
"end": "2022-05-27T17:00:00+00:00"
}
],
"serviceType": [
{
"coding": [
{
"system": "
http://snomed.info/sct",
"code": "408443003",
"display": "General medical practice",
"userSelected": false
}
],
"text": "General medical practice"
}
]
}