Situation
I’m trying to post the Practitioner details via fhir call, but the in the response we are asked to enter the fname, lname, so on, but in the fhir document there is no such.
The swagger documentation for the fhir has not listed the post body for the most requests, I think this would help the Developers understand and integrate with openemr.
here is the request body:
{
“resourceType”: “Practitioner”,
“active”: true,
“name”: [
{
“family”: “Williams”,
“given”: [
“Rory”,
“James”
],
“prefix”: [
“Dr.”
],
“suffix”: [
“M.D.”
],
“period”: {
“start”: “2019-12-01T00:00:00.000Z”
}
}
],
“identifier”: [
{
“assigner”: {
“reference”: “Organization/675844”
},
“type”: {
“coding”: [
{
“code”: “DEA”,
“system”: “http://terminology.hl7.org/CodeSystem/v2-0203”
}
]
},
“system”: “urn:oid:2.16.840.1.113883.4.814”,
“value”: “CW1234563”,
“period”: {
“start”: “2019-12-01T00:00:00.000Z”,
“end”: “2029-12-01T23:59:59.000Z”
}
}
]
}
response :
{
“validationErrors”: {
“fname”: {
“Required::NON_EXISTENT_KEY”: “fname must be provided, but does not exist”
},
“lname”: {
“Required::NON_EXISTENT_KEY”: “lname must be provided, but does not exist”
},
“npi”: {
“Required::NON_EXISTENT_KEY”: “npi must be provided, but does not exist”
}
}
}
OpenEMR Version
I’m using OpenEMR version v6.0.0
Browser:
chrome
Operating System
docker