I need your advice on creating Patient resources i...
# dev
d
I need your advice on creating Patient resources in the Cerner sandbox Using Cerner sandbox URL https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d I'm creating Patient resource with the payload from FHIR and Cerner examples. However, in the end, I always get 400 HTTP status codes. Please, find the patient resource payload.txt attached. *The response error is not descriptive * 🤷🏼‍♂️ "{"response":{"status":400,"data":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"invalid","details":{"text":"Invalid request"}}]}},"config": {"method":"POST","url":"https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Patient","headers":{}}}" *Question: * How should I debug such a situation? If this is not the right channel for asking such questions - please let me know.
r
oo! I am personally not an expert on this, but perhaps @alexkg knows?
a
@dkozlovskyi I wasn't able to validate your file on https://validator.fhir.org/ can you check it for errors? There was a ";" at the end and your references should be formatted like this:
Copy code
"managingOrganization": {
    "reference": "Organization/1",
    "display": "ACME Healthcare, Inc"
  },
test an example from the FHIR Patient spec page and let us know if that works: https://hl7.org/fhir/R4B/patient-examples.html
169 Views