Skip to content

FHIRPath cases for quantities with and without a unit - #314

Closed
oldrobotdev wants to merge 1 commit into
FHIR:masterfrom
oldrobotdev:quantity-unit-check
Closed

oldrobotdev wants to merge 1 commit into
FHIR:masterfrom
oldrobotdev:quantity-unit-check

Conversation

@oldrobotdev

Copy link
Copy Markdown
Contributor

Test cases for hapifhir/org.hl7.fhir.core#2757, in r4, r4b, r5 and r6.

The new input observation-quantity-unit-only.xml has three components: 1 with the unit mg and no system, and two quantities of 1 with no unit. The cases check that =, !=, ~ and !~ give the same result in both orders when one quantity has a unit and the other has none (= and != are empty, ~ is false, !~ is true). They also check that 1 year = the unitless quantity is empty, and that the two unitless quantities are equal and equivalent.

The spec doesn't say how these quantities compare, so the cases use the result that core master already gives in one of the two orders. On master 7 of the 9 cases fail in each of the four engines, and all pass with the core PR.

@oldrobotdev

Copy link
Copy Markdown
Contributor Author

Closing this, because the cases in 09904dc cover the same thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant