Stream: implementers
Topic: codes with numeric values
Oliver Egger (Apr 01 2016 at 12:22):
short question: we want to assing numeric values to a self defined code system (bad=0, neutral=1, good=2). how would one describe that with fhir datatypes? with extensions? or is there another best practice? with quanity one can specify only the system for a unit which in this case is not valid.
Paul Knapp (Apr 01 2016 at 12:53):
Hi Oliver: Do you mean you want to have an element who's value is a code ('bad', 'neutral', 'good') or ('0', '1', '2') or who's value is a numeric (0, 1, 2)? The former would be a string regardless of the string contents, the latter could be a PositiveInt.
Lloyd McKenzie (Apr 01 2016 at 13:25):
If you want a code system that has values you can do math with, you'll need the "ordinal" extension to convey the numeric value: http://www.hl7.org/fhir/extension-valueset-ordinalvalue.html
Oliver Egger (Apr 01 2016 at 13:26):
hi lloyd. thanks, thats exactly what i was looking for!
Last updated: Apr 12 2022 at 19:14 UTC