Skip to main content

πŸ“ fromFHIRQuantityUnitToString


tip

Possible cases in production :

  1. SNOMED CT - http://snomed.info/sct
  2. UCUM - http://unitsofmeasure.org
  3. Other Code System than SNOMED CT / UCUM, such as LOINC - http://loinc.org/
  4. (Local) Value Set, e.g. https://www.ehealth.fgov.be/standards/fhir/core/ValueSet/be-cd-administration-unit
  5. Hardcoded unit without any system

To support them all in your fromFHIRQuantityUnitToString implementation, here are some hints :

  • 3rd party library (such as @lhncbc/ucum-lhc, ...) to turn your code to human readable text
  • 3rd party FHIR Terminology / Conversion server
  • Translation file(s) of your (local) Value Sets
  • Extensions put on Quantity, depending of your implementation guide
  • ...