Multiple Units in singular ndjson file? #1324
-
I'm trying to generate an Observation ndjson file with some of the Observation entries having kg and others having lbs in order to implement unit normalization, and I have no idea where to look at this point. Is it in the config file? Please let me know if you've had a similar issue / desire. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
All the observation values and units of measure are controlled by the modules. Except in specific circumstances, for example social determinants of health, observations use the metric system. There are no configuration options to alter this. Internally, weight is stored as kilograms, and weight is controlled by code, for instance: One option is to export all the observations as kilograms (as per normal), and post process the data to randomly convert some to pounds (using whatever method you want) and use that file as your test data. |
Beta Was this translation helpful? Give feedback.
All the observation values and units of measure are controlled by the modules. Except in specific circumstances, for example social determinants of health, observations use the metric system. There are no configuration options to alter this.
Internally, weight is stored as kilograms, and weight is controlled by code, for instance:
synthea/src/main/java/org/mitre/synthea/modules/LifecycleModule.java
Line 498 in 188ce63
One option is to export all the observations as kilograms (as per normal), and post process the data to randomly convert some to pounds (using whatever method you want) and use that file as your…