FHIR Chat · String representation of UCUM unit · fhirpath

Stream: fhirpath

Topic: String representation of UCUM unit


view this post on Zulip Paul Lynch (Jun 19 2020 at 22:18):

If q is a Quantity of 'kg', and one wants to convert to a Quantity 'g', does one write:

q.toQuantity('g')

or:

q.toQuantity('\'g\'')

In other words, does the "unit" parameter of toQuantity include the single quotes that in quantity strings appear around UCUM units?

view this post on Zulip Bryn Rhodes (Jun 22 2020 at 09:10):

The former, q.toQuantity('g'), though an example in the spec would certainly help clarify that. Submit a tracker?

view this post on Zulip Paul Lynch (Jun 22 2020 at 18:25):

J#27859


Last updated: Apr 12 2022 at 19:14 UTC