templates/_allergies.c32.erb in health-data-standards-0.7.1 vs templates/_allergies.c32.erb in health-data-standards-0.8.0

- old
+ new

@@ -18,11 +18,11 @@ <!--Allergy act template --> <id root="<%= UUID.generate %>"/> <code nullFlavor="NA"/> <statusCode code="active"/> <effectiveTime> - <low value="<%= Time.at(entry.time).utc.to_formatted_s(:number) %>"/> + <low <%= value_or_null_flavor(entry.as_point_in_time) %>/> </effectiveTime> <entryRelationship typeCode="SUBJ" inversionInd="false"> <observation classCode="OBS" moodCode="EVN"> <templateId root="2.16.840.1.113883.10.20.1.18"/> <templateId root="2.16.840.1.113883.10.20.1.28"/> @@ -35,10 +35,10 @@ <text> <reference value="#allergies-desc-<%= i %>"/> </text> <statusCode code="completed"/> <effectiveTime> - <low value="<%= Time.at(entry.time).utc.to_formatted_s(:number) %>"/> + <low <%= value_or_null_flavor(entry.as_point_in_time) %>/> </effectiveTime> <value xsi:type="CD" nullFlavor="UNK"/> <participant typeCode="CSM"> <participantRole classCode="MANU"> <playingEntity classCode="MMAT">