Hi,
I am posting below payload as an Observation FHIR resource and getting error
X-Amz-Cf-Pop: MAA51-C2
X-Cache: Error from cloudfront
X-Request-Id: 9c441143-9b77-46eb-ac5c-6fa9bd14e788
X-Runtime: 0.027319
App Id: 4de0778e-3dec-4f23-a628-cdd30d292c68
App Type: provider
Client Type: public
Authorized: true
Standard Scopes:
launch
profile
fhirUser
openid
online_access
Patient Scopes:
patient/Observation.read
patient/Patient.read
patient/Basic.write
patient/Observation.write
patient/Patient.write
User Scopes:
user/Observation.read
user/Patient.read
user/Basic.write
user/Observation.write
user/Patient.write
const obervationPayLoad = {
"resourceType": "Observation",
"status": "final",
"category": [{
"coding": [{
"code": "laboratory",
"display": "Laboratory"
}],
"text": "Laboratory"
}],
"subject": {
"reference": "Patient/8b33d1f5-8361-4f7e-a93a-72a3ed97bfb2"
},
"code": {
"coding": [{
"code": "718-7",
"display": "Hemoglobin [Mass/volume] in Blood"
}],
"text": "Hemoglobin"
},
"valueQuantity": {
"value": 13.2,
"unit": "mg/dL",
"code": "mg/dL"
},
"issued": "2021-06-03T20:42:00.000Z",
"effectiveDateTime": "2021-06-03T20:42:00.000Z",
"interpretation": [{
"coding": [{
"code": "N",
"display": "Normal"
}],
"text": "Normal"
}],
"referenceRange": [{
"low": {
"value": 12.0,
"unit": "g/dL",
"code": "g/dL"
},
"high": {
"value": 15.5,
"unit": "g/dL",
"code": "g/dL"
}
}],
"note": [{
"time": "2021-06-03T20:42:15.000Z",
"text": "Specimen slightly hemolyzed."
}]
}
{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"invalid","details":{"coding":[{"system":"
http://terminology.hl7.org/CodeSystem/operation-outcome","code":"MSG_PARAM_INVALID","display":"Parameter 'Observation.code' content is invalid"}],"text":"The value for Observation.code is not supported."},"diagnostics":"Observation.code: cannot be blank","expression":["Observation.code"]}]}
Please provide inputs