Stream: implementers
Topic: Observation Profile
Krishna Moorthi (Sep 20 2019 at 14:25):
Hi All,
I am validating FHIR bundle resource against Observation profile and it has cardinality 0..0 for Observation.component element . But I could still see the below errors :
Any suggestions would be greatly appreciated
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "[profile=http://xxxx.com/fhir/xxx/StructureDefinition/bg-observation, elemDef=Observation.component.value[x]:valueQuantity, path=Observation[0].valueQuantity[0].value[0]] Unrecognized type ''. Must be one of: [Quantity]"
},
{
"severity": "error",
"code": "processing",
"diagnostics": "[profile=http://xxxxx.com/fhir/xxxx/StructureDefinition/bg-observation, elemDef=Observation.component.value[x]:valueQuantity, constraintKey=ele-1, nodePath=Observation[0].valueQuantity[0].value[0]] Expression evaluation failed: All FHIR elements must have a @value or children, expression=[hasValue() or (children().count() > id.count())]"
}
]
}
Thanks
Krish
Lloyd McKenzie (Sep 20 2019 at 14:40):
What does the instance look like?
Krishna Moorthi (Sep 20 2019 at 14:42):
Krishna Moorthi (Sep 20 2019 at 14:43):
What does the instance look like?
FHIR server is STU3
Mareike Przysucha (Sep 20 2019 at 14:47):
And how does the observation instance in the bundle look like? (Please consider data protection issues.)
Mareike Przysucha (Sep 20 2019 at 14:48):
And which server do you use (HAPI, VONK, ...)?
Krishna Moorthi (Sep 20 2019 at 15:00):
And how does the observation instance in the bundle look like? (Please consider data protection issues.)
{
"name": "resource",
"resource": {
"resourceType": "Observation",
"id": "1",
"status": "final",
"category": [{
"coding": [{
"system": "local local uri",
"code": "local code",
"display": "local code display"
}]
}],
"code": {
"coding": [{
"system": "http://snomed.info/sct",
"code": "362943005",
"display": "Manual method (qualifier value)"
}]
},
"subject": {
"reference": "Patient/2"
},
"effectiveDateTime": "2019-09-10T16:00:00+01:00",
"performer": [{
"reference": "Patient/2"
}],
"valueQuantity": {
"value": "120.0",
"unit": "mg/dL",
"system": "http://unitsofmeasure.org",
"code": "mg/dL"
},
"device": {
"reference": "DeviceMetric/3"
}
}
}
Krishna Moorthi (Sep 20 2019 at 15:00):
And which server do you use (HAPI, VONK, ...)?
own fhir server
Mareike Przysucha (Sep 20 2019 at 15:38):
do you reference your profile in the resource?
Krishna Moorthi (Sep 23 2019 at 07:26):
do you reference your profile in the resource?
No. We didn't reference profile in the resource.
Krishna Moorthi (Oct 11 2019 at 12:50):
This issue is caused our own fhir server code and resolved. CLOSING THIS TOPIC
Last updated: Apr 12 2022 at 19:14 UTC