Stream: fhirpath
Topic: String representation of UCUM unit
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?
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?
Paul Lynch (Jun 22 2020 at 18:25):
Last updated: Apr 12 2022 at 19:14 UTC