Hi Max,
Thank you for looking into this, Yes i did take the request payload from
fhir.cerner.com documentation.
I am posting the curl commands with both payload below:-
- with 'en' -> curl -X POST https://fhir-ehr.sandboxcerner.com/dstu2/0b8a0111-e8e6-4c26-a91c-5069cbc6b1ca/Patient -H "Accept: application/json+fhir" -H "Content-Type: application/json+fhir" -H "Authorization: Bearer eyJra...<redacted>" -d '{"resourceType": "Patient","identifier": [{"assigner": {"reference": "Organization/619848"}}],"active": true,"name": [{"use": "official","family": ["Wolf"],"given": ["Person","Name"],"period": { "start": "2010-05-17T14:54:31.000Z" } }, { "use": "usual", "given": [ "Bigby" ], "period": { "start": "2012-05-22T15:45:50.000Z" } } ], "telecom": [{ "system": "phone", "value": "8168229121", "use": "home", "period": { "start": "2012-05-17T15:33:18.000Z" } }], "gender": "male", "birthDate": "1990-09-15", "address": [{ "use": "home", "line": [ "121212 Metcalf Drive", "Apartment 403" ], "city": "Kansas City", "district": "Jackson", "state": "KS", "postalCode": "64199", "country": "United States of America", "period": { "start": "2012-05-17T15:33:18.000Z" } }], "maritalStatus": { "coding": [{ "system": "http://hl7.org/fhir/v3/NullFlavor", "code": "UNK", "display": "Unknown" }], "text": "Unknown" }, "communication": [{ "language": { "coding": [{ "system": "urn:ietf:bcp:47", "code": "en", "display": "English" }], "text": "English" }, "preferred": true }], "careProvider": [{ "reference": "Practitioner/4594010" }, { "reference": "Practitioner/4646007" } ] }'
- with 'eng' -> curl -X POST https://fhir-ehr.sandboxcerner.com/dstu2/0b8a0111-e8e6-4c26-a91c-5069cbc6b1ca/Patient -H "Accept: application/json+fhir" -H "Content-Type: application/json+fhir" -H "Authorization: Bearer eyJra...<redacted>" -d '{"resourceType": "Patient","identifier": [{"assigner": {"reference": "Organization/619848"}}],"active": true,"name": [{"use": "official","family": ["Wolf"],"given": ["Person","Name"],"period": { "start": "2010-05-17T14:54:31.000Z" } }, { "use": "usual", "given": [ "Bigby" ], "period": { "start": "2012-05-22T15:45:50.000Z" } } ], "telecom": [{ "system": "phone", "value": "8168229121", "use": "home", "period": { "start": "2012-05-17T15:33:18.000Z" } }], "gender": "male", "birthDate": "1990-09-15", "address": [{ "use": "home", "line": [ "121212 Metcalf Drive", "Apartment 403" ], "city": "Kansas City", "district": "Jackson", "state": "KS", "postalCode": "64199", "country": "United States of America", "period": { "start": "2012-05-17T15:33:18.000Z" } }], "maritalStatus": { "coding": [{ "system": "http://hl7.org/fhir/v3/NullFlavor", "code": "UNK", "display": "Unknown" }], "text": "Unknown" }, "communication": [{ "language": { "coding": [{ "system": "urn:ietf:bcp:47", "code": "eng", "display": "English" }], "text": "English" }, "preferred": true }], "careProvider": [{ "reference": "Practitioner/4594010" }, { "reference": "Practitioner/4646007" } ] }'
Also I could not find any links on how to create a patient on fhir api, like what are the required fields in the payload. Maybe I was not looking at correct place.
Thanks
Kaishav