FHIR Chat · Validating units of measure - InMemory or Remote · hapi

Stream: hapi

Topic: Validating units of measure - InMemory or Remote


view this post on Zulip Kevin Mayfield (Oct 10 2020 at 09:52):

I'm not sure if it's my examples but I can't get the units of measure to validate correctly (on 5.1 hapi). (Using both InMemory and OntoServer)

A fragment is
"daysSupply": {
"value": 7,
"unit": "d",
"system": "http://unitsofmeasure.org",
"code": "d"
},

It seems to be the in memory that fails the validation.

view this post on Zulip David Meyers (Feb 17 2021 at 13:31):

i guess this is still an issue.
We are getting the following error message while validating MedicationAdministration using hapi 5.2 librarys:

"dosage": {
"dose": {
"code": "s",
"system": "http://unitsofmeasure.org",
"unit": "sec",
"value": 25
}}

leads to :

"severity": "error",
"code": "processing",
"diagnostics": "Validation failed for 'http://unitsofmeasure.org#s'",
"location": [
"Bundle.entry[0].resource.ofType(MedicationAdministration).dosage.dose",
"Line 31, Col 38"
]

our ucum.jar version is 1.0.3

view this post on Zulip Grahame Grieve (Feb 17 2021 at 21:17):

@Mark Iantorno this looks it should work to me

view this post on Zulip Mark Iantorno (Feb 17 2021 at 21:20):

Let me look

view this post on Zulip Mark Iantorno (Feb 17 2021 at 21:23):

Send me the exact file please

view this post on Zulip Mark Iantorno (Feb 17 2021 at 21:23):

I tried running the text above through and it gave me a formatting issue

view this post on Zulip Mark Iantorno (Feb 17 2021 at 21:23):

@David Meyers

view this post on Zulip Mark Iantorno (Feb 17 2021 at 21:26):

the unit looks correct though

view this post on Zulip Mark Iantorno (Feb 17 2021 at 21:26):

But once you send me the file, I"ll run it locally and debug

view this post on Zulip David Meyers (Feb 18 2021 at 08:39):

@Mark Iantorno thx for ur offer. i will send u a file soon. btw. we're validating against the MII-specification-file for the MedicationAdministration. Perhaps the issues lies here.

view this post on Zulip David Meyers (Mar 17 2021 at 13:23):

Fortunately, we were able to find the problem. The problem lay in the dependencies between the libraries. The Ucum-1.0.3.jar we used needed the xpp3-1.14c.jar and not the xmlpull-1.1.3.1.jar which we used, even though in both XML libraries the package path (org.xmlpull....) was identical.


Last updated: Apr 12 2022 at 19:14 UTC