Stream: hapi
Topic: Getting MetaUtil.setSource() not supported error in DSTU2
Jean Duteau (Jul 17 2020 at 14:31):
We are getting the following error when trying to retrieve objects from our HAPI DSTU2 vanilla server:
2020-07-17 12:39:26.205 [http-nio-8080-exec-7] ERROR ca.uhn.fhir.util.MetaUtil [MetaUtil.java:99] MetaUtil.setSource() not supported on FHIR Version DSTU2
2020-07-17 12:39:26.256 [http-nio-8080-exec-7] INFO fhirtest.access [LoggingInterceptor.java:175] Path[/fhir] Source[] Operation[read Observation/118202] UA[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36 Edg/83.0.478.64] Params[] ResponseEncoding[XML]
Our Observation instances that we are creating don't have meta.source:
{
"resourceType": "Observation",
"meta": {
"tag": [
{
"system": "http://www.medstarhealth.org",
"code": "deidentified_transfusion",
"display": "deidentified_transfusion"
}
]
},
"category": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
],
"text": "Vital Signs"
},
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "59408-5",
"display": "Oxygen saturation in Arterial blood by Pulse oximetry"
}
],
"text": "oxygen_saturation"
},
"subject": {
"reference": "Patient/Pat11630204"
},
"encounter": {
"reference": "Encounter/Enc156258930"
},
"effectiveDateTime": "2019-01-03T07:10:00",
"issued": "2019-01-03T07:10:00",
"valueQuantity" : {
"value" : 99.0,
"unit" : "%O2",
"system" : "http://unitsofmeasure.org",
"code" : "%"
}
}
So this seems to be a bug in HAPI? I did a code search and the only thing I could find is line 964 in ca.uhn.fhir.jpa.dao.BaseHapiFhirDao.java makes that call in the public <R extends IBaseResource> R toResource(Class<R> theResourceType, IBaseResourceEntity theEntity, Collection<ResourceTag> theTagList, boolean theForHistoryOperation) method.
Last updated: Apr 12 2022 at 19:14 UTC