Hi,
While I am trying to use POST API of FHIR Encounter with the following JSON body,
{ “resourceType”: “Encounter”, “status”: “finished”, “class”: “inpatient”, “subject”: { “reference”: “Patient/5c9b4f60-f729-4e9f-88b5-c1dba1dd5c3e”, “display”: “Virat Kohli(Identifier:4a8a9fc31dc15a4b87bb145b05db3ae0bf2333e4)” }, “participant”: [ { “individual”: { “reference”: “Practitioner/c2716fec-b663-428c-b8fa-752ef191a378”, “display”: “Amit Singh(Identifier:145)” } } ], “period”: { “start”: “2018-03-10T00:00:00+05:30”, “end”: “2018-03-10T00:00:00+05:30” }, “location”: [ { “location”: { “reference”: “Location/8d6c993e-c2cc-11de-8d13-0010c6dffd0f”, “display”: “Unknown Location” }, “period”: { “start”: “2018-03-10T00:00:00+05:30”, “end”: “2018-03-10T00:00:00+05:30” } } ] }
I am getting an error response code of 422 with the following result,
{ “resourceType”: “OperationOutcome”, “issue”: [ { “severity”: “error”, “code”: “processing”, “diagnostics”: “The request cannot be processed due to the following issues \n1 : There is no patient for the given uuid null\n” } ] }
Can Someone tell me if I am missing something or what is being wrong