Skip to content

Unexpected behavior for Quantity without a code #1497

Closed
@brynrhodes

Description

In the following library:

library TestQuantity

using FHIR version '4.0.1'

include FHIRHelpers version '4.0.1'

context Patient

define TestQuantity: FHIRHelpers.ToValue(FHIR.Quantity { value: FHIR.decimal { value: 1001 }, unit: FHIR.string { value: 'mg/dL' } }) >= 200 'mg/dL'

The TestQuantity expression unexpectedly returns null, when according to the logic in the FHIRHelpers library, the unit element should be treated as a UCUM unit unless there is explicit declaration that it is not.

Activity

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

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions