I am trying to make a basic FHIR POST to create a Person resource using this URL (just to show I’m posting to the correct place): http://localhost:8081/openmrs-standalone/ws/fhir2/R4/Person/
based on the example straight from: https://www.hl7.org/FHIR/person-example.json.html
This is my JSON:
{
"resourceType": "Person",
"name": [
{
"use": "official",
"family": [
"Chalmers"
],
"given": [
"Peter",
"James"
]
},
{
"use": "usual",
"given": [
"Jim"
]
}
],
"gender": "male",
"birthDate": "1974-12-25",
"address": [
{
"use": "home",
"line": [
"534 Erewhon St"
],
"city": "PleasantVille",
"state": "Vic",
"postalCode": "3999"
}
],
"active": true,
"link": [
{
"target": {
"reference": "RelatedPerson/peter",
"display": "Peter Chalmers"
}
},
{
"target": {
"reference": "Patient/example",
"display": "Peter Chalmers"
}
}
]
}
The response I get:
failed to validate with reason: voidReason: Cannot be empty or null
And in my server log:
Failure during REST processing: ca.uhn.fhir.rest.server.exceptions.UnprocessableEntityException: ‘Person(personId=null)’ failed to validate with reason: voidReason: Cannot be empty or null
I have searched the OpenMRS documentation and Google to no avail. Please advise.