Uploaded image for project: 'FHIR Specification Feedback'
  1. FHIR Specification Feedback
  2. FHIR-29635

Add syntax to easily set "unit" on a Quantity

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Medium Medium
    • Shorthand (FHIR)
    • 1.0.0
    • FHIR Infrastructure
    • Language Reference

    Description

      FSH supports an easy syntax for specifying a Quantity when the units are taken from UCUM:

      * valueQuantity = 155.0 '[lb_av]'

      But there is no way to specify the `unit` field when doing this. It might make sense to support a syntax like:

      * valueQuantity = 155.0 '[lb_av]' "lb"

      where the valueQuantity.unit would then get set to "lb". The unit is meant to be a human readable value, and there is plenty of precedent for setting human readable values as strings at the end of assignments, so I don't think users would find this a confusing addition.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nick_freiter Nick Freiter (Inactive)
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: