templates/cat1/_2.16.840.1.113883.10.20.24.3.11.cat1.erb in health-data-standards-3.2.11 vs templates/cat1/_2.16.840.1.113883.10.20.24.3.11.cat1.erb in health-data-standards-3.2.12

- old
+ new

@@ -12,11 +12,11 @@ <!-- Attribute: admission datetime --> <low <%= value_or_null_flavor(entry.start_time) %>/> <!-- Attribute: discharge datetime --> <high <%= value_or_null_flavor(entry.end_time) %>/> </effectiveTime> - <%== render(:partial => 'ordinality', :locals => {:entry => entry, :reason_oids=>field_oids["ORDINAL"]}) %> + <%== render(:partial => 'ordinality', :locals => {:entry => entry, :ordinality_oids=>field_oids["ORDINAL"]}) %> <%== code_display(entry, {'tag_name' => 'value', 'value_set_map' => value_set_map,'preferred_code_sets' => ['LOINC', 'SNOMED-CT', 'ICD-9-CM', 'ICD-10-CM'], 'extra_content' => "xsi:type=\"CD\" sdtc:valueSet=\"#{value_set_oid}\""}) %> <entryRelationship typeCode="REFR"> @@ -35,7 +35,21 @@ displayName="active" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT"/> </observation> </entryRelationship> + <% if entry.severity + + %> + <entryRelationship typeCode="REFR"> + <observation classCode="OBS" moodCode="EVN"> + <templateId root="2.16.840.1.113883.10.20.22.4.8"/> + <code code="SEV" + codeSystem="2.16.840.1.113883.5.4"/> + <statusCode code="completed"/> + <%== render(:partial => 'result_value', :locals => {:values => [entry.severity], :result_oids=>field_oids["SEVERITY"]} ) %> + </observation> + + </entryRelationship> + <% end %> </observation> </entry> \ No newline at end of file