Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2439: FhirPath comparable() uses UCUMnow #2453

Merged
merged 10 commits into from
May 16, 2023

Conversation

marcovisserFurore
Copy link
Member

Description

The FhirPath function comparable() now utilizes the UCUM library, enabling the comparison of Quantities with different units, such as inches and meters.

Moreover, the system type Quantity now leverages the UCUM library for performing the comparable function, as well as handling Equality and Equivalence. This enhancement allows for expressions like 1 '[in_i]' > 1 'cm' in FhirPath, yielding a result of true.

Related issues

Resolves issue #2439.

Testing

See the following unit tests:

  • QuantityTests
  • UcumTests
  • EquivalenceTests
  • FhirPathTests

FirelyTeam Checklist

  • Update the title of the PR to be succinct and less than 50 characters
  • Mark the PR with the label breaking change when this PR introduces breaking changes

@mmsmits mmsmits self-requested a review May 16, 2023 09:04
@marcovisserFurore marcovisserFurore merged commit 51030f6 into develop May 16, 2023
@marcovisserFurore marcovisserFurore deleted the feature/2439-comparable-with-ucum branch May 16, 2023 09:24
@mmsmits
Copy link
Member

mmsmits commented May 16, 2023

Very nice!

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.

2 participants