templates/_conditions.c32.erb in health-data-standards-0.3.0 vs templates/_conditions.c32.erb in health-data-standards-0.5.0
- old
+ new
@@ -5,11 +5,11 @@
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.6" assigningAuthorityName="IHE PCC"/>
<templateId root="2.16.840.1.113883.10.20.1.11" assigningAuthorityName="HL7 CCD"/>
<!--Problems section template-->
<code code="11450-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Problem list"/>
<title>Problems</title>
- <%== render :partial => 'narrative_block', :locals => {:entries => entries, :section => 'conditions'} %>
+ <%== render :partial => 'narrative_block', :locals => {:entries => entries, :section => 'conditions', :status => true } %>
<% entries.each_with_index do |entry, i| -%>
<entry typeCode="DRIV">
<act classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.3.88.11.83.7" assigningAuthorityName="HITSP C83"/>
<templateId root="2.16.840.1.113883.10.20.1.27"/>
@@ -38,10 +38,10 @@
</text>
<statusCode code="completed"/>
<effectiveTime>
<low value="<%= Time.at(entry.time).utc.to_formatted_s(:number) %>"/>
</effectiveTime>
- <%== code_display(entry, 'value', 'xsi:type="CD"') %>
+ <%== code_display(entry, {'tag_name' => 'value', 'extra_content' => 'xsi:type="CD"', 'preferred_code_sets' => ['SNOMED-CT']}) %>
<% if entry.status -%>
<entryRelationship typeCode="REFR">
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.50"/>
<!-- Problem status observation template -->