templates/_results.c32.erb in health-data-standards-0.3.0 vs templates/_results.c32.erb in health-data-standards-0.5.0
- old
+ new
@@ -4,11 +4,11 @@
<templateId root="2.16.840.1.113883.3.88.11.83.122" assigningAuthorityName="HITSP/C83"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.28" assigningAuthorityName="IHE PCC"/>
<!--Diagnostic Results section template-->
<code code="30954-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Results"/>
<title>Diagnostic Results</title>
- <%== render :partial => 'narrative_block', :locals => {:entries => entries, :section => 'results'} %>
+ <%== render :partial => 'narrative_block', :locals => {:entries => entries, :section => 'results', :value=>true} %>
<entry typeCode="DRIV">
<organizer classCode="BATTERY" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.1.32"/>
<!--Result organizer template -->
<id root="<%= UUID.generate %>"/>
@@ -37,10 +37,10 @@
<templateId root="2.16.840.1.113883.3.88.11.83.15.1" assigningAuthorityName="HITSP C83"/>
<templateId root="2.16.840.1.113883.10.20.1.31" assigningAuthorityName="CCD"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.13" assigningAuthorityName="IHE PCC"/>
<!-- Result observation template -->
<id root="<%= UUID.generate %>"/>
- <%== code_display(entry) %>
+ <%== code_display(entry, 'preferred_code_sets' => ['LOINC', 'SNOMED-CT']) %>
<text>
<reference value="#results-desc-<%= i %>"/>
</text>
<statusCode code="completed"/>
<effectiveTime value="<%= Time.at(entry.time).utc.to_formatted_s(:number) %>"/>
\ No newline at end of file