Stream: implementers
Topic: ValueSet, ucum-bodytemp
Isak Siverland (Jun 30 2020 at 11:29):
Hi,
I am trying to create a profile with a value set reference. I am experiencing some issues with the validation of a code attribute. This is the error messeage I get: "The value provided (\"Cel\") is not in the value set http://hl7.org/fhir/ValueSet/ucum-bodytemp|4.0.0 (http://hl7.org/fhir/ValueSet/ucum-bodytemp), and a code is required from this value set) (error message = Validation failed)"
In my request I have added "Cel" as the code and while looking att the value set I am using (http://hl7.org/fhir/ValueSet/ucum-bodytemp|4.0.0) it seems that "Cel" should be an ok value to send.
Does anyone know what the issue might be?
Lloyd McKenzie (Jun 30 2020 at 14:08):
Can you include the instance that's got the issue? Did you declare the code system?
Isak Siverland (Jun 30 2020 at 17:14):
This is what I included:
{
"resourceType": "Observation",
"meta": {
"profile": [
"https://fhir.cambio.se/StructureDefinition/ObservationBodyTemperaturePrehospital/v1"
],
"versionId": "1234"
},
"id": "body-temperature-observation",
"status": "final",
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/observation-category",
"code": "vital-signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "8310-5"
},
{
"system": "http://snomed.info/sct",
"code": "276885007"
}
]
},
"subject": {
"identifier": {
"use": "official",
"value": "19930514-2383",
"system": "urn:oid:1.2.752.129.2.1.3.1"
}
},
"effectiveDateTime": "2020-06-30T09:50:55.300Z",
"valueQuantity": {
"value": "36.0",
"unit": "Cel",
"system": "http://unitsofmeasure.org",
"code": "Cel"
}
}
And to answer the second question, I do include the fixed system value (http://unitsofmeasure.org)
Lloyd McKenzie (Jun 30 2020 at 18:07):
That looks right. How are you validating?
Isak Siverland (Jul 01 2020 at 09:17):
I validate with the built in validator in HAPI FHIR.
Lloyd McKenzie (Jul 01 2020 at 14:48):
@Grahame Grieve @James Agnew -thoughts on how to further diagnose?
James Agnew (Jul 02 2020 at 10:00):
@Isak Siverland Support for UCUM has a few bugs in the current release (5.0.0) that have been fixed in the latest snapshot builds. Can you try this against our public hapi.fhir.org server and see if you see the same issue?
Isak Siverland (Jul 03 2020 at 09:08):
@James Agnew It seems to be as you say that these bugs causes issues for us. I believe we have found a workaround for this. Thank you for the help.
Isak Siverland (Jul 06 2020 at 13:10):
I've been continuing to investigate this issue and realised that I was wrong in saying that I only experience these issue while using release 5.0.0 as I've noticed that the issues remain while trying to use the 4.0.0 release. Is it possible that the bugs can occur in that release as well or do you think i experience these issues due to any other reason?
James Agnew (Jul 06 2020 at 17:34):
The UCUM fixes occurred post-5.0.0 - You'd have to use current 5.1.0-SNAPSHOT builds unfortunately. We'll be releasing 5.1.0 in August
Last updated: Apr 12 2022 at 19:14 UTC