Hi all, today we found a case when sharing observations between different systems, for instance Blood Pressure.
In the archetype, systolic and diastolic precision is limited to zero, which means DV_QUANTITY.magnitude is integer.
Due to internal data representation and serialization to JSON or XML, when creating a systolic value of “110”, we end up seeing “110.0” in the JSON or XML.
My question is: should precision affect how the RM is serialized to JSON/XML? I mean if precision = 0, should we end up with “110” as the value in the JSON / XML or it’s OK to have “110.0” and precision = 0 in the data ***?
*** that is DV_QUANTITY.precision attribute, which is optional.
Also, what should happen if DV_QUANTITY.precision is not in the data and we only have the magnitude “110.0” but looking at the archetype we see the constraint doesn’t allow decimal values? Is that valid?