templates/cat3/show.cat3.erb in health-data-standards-3.4.2 vs templates/cat3/show.cat3.erb in health-data-standards-3.4.3
- old
+ new
@@ -1,21 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<ClinicalDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:hl7-org:v3"
xmlns:cda="urn:hl7-org:v3">
- <!--
+ <!--
********************************************************
CDA Header
********************************************************
-->
<realmCode code="US"/>
<typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
<!-- QRDA Category III Release 1 template ID (this template ID differs from QRDA III comment only template ID). -->
<templateId root="2.16.840.1.113883.10.20.27.1.1"/>
<%== render :partial=>"id", :locals=>{identifier: header.identifier} %>
-
+
<!-- SHALL QRDA III document type code -->
<code code="55184-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"
displayName="Quality Reporting Document Architecture Calculated Summary Report"/>
<!-- SHALL Title, SHOULD have this content -->
<title>QRDA Calculated Summary Report</title>
@@ -31,23 +31,23 @@
<id nullFlavor="NA"/>
</patientRole>
</recordTarget>
<%== render :partial=>"author", :collection=>header.authors %>
- <!-- SHALL have 1..* author. MAY be device or person.
+ <!-- SHALL have 1..* author. MAY be device or person.
The author of the CDA document in this example is a device at a data submission vendor/registry. -->
-
- <!-- The custodian of the CDA document is the same as the legal authenticator in this
+
+ <!-- The custodian of the CDA document is the same as the legal authenticator in this
example and represents the reporting organization. -->
<!-- SHALL -->
<custodian>
<assignedCustodian>
<%== render :partial=>"id", :collection=>header.custodian.organization.ids, :id=>"identifier" %>
<%== render :partial=>"organization", :locals=>{organization: header.custodian.organization, tag_name: "representedCustodianOrganization"} %>
</assignedCustodian>
</custodian>
- <!-- The legal authenticator of the CDA document is a single person who is at the
+ <!-- The legal authenticator of the CDA document is a single person who is at the
same organization as the custodian in this example. This element must be present. -->
<!-- SHALL -->
<legalAuthenticator>
<!-- SHALL -->
<time value="<%= header.legal_authenticator.time.utc.to_formatted_s(:number) %>"/>
@@ -65,26 +65,28 @@
</assignedPerson>
<%== render :partial=>"organization", :locals=>{organization: header.legal_authenticator.organization} %>
</assignedEntity>
</legalAuthenticator>
-
- <!--
+ <%== render :partial=>"providers", :locals=>{providers: header.performers, start_date: start_date, end_date: end_date} %>
+
+
+ <!--
********************************************************
CDA Body
********************************************************
-->
<component>
<structuredBody>
- <!--
+ <!--
********************************************************
-QRDA Category III Reporting Parameters
+QRDA Category III Reporting Parameters
********************************************************
-->
<%== render :partial => 'reporting_parameters', :locals => {:start_date => start_date, :end_date => end_date} %>
- <!--
+ <!--
********************************************************
Measure Section
********************************************************
-->
<component>
@@ -95,11 +97,11 @@
<!-- QRDA Category III Measure Section template -->
<templateId root="2.16.840.1.113883.10.20.27.2.1"/>
<code code="55186-1" codeSystem="2.16.840.1.113883.6.1"/>
<title>Measure Section</title>
<text>
-
+
</text>
<% measures.each do |measure| %>
<entry>
<organizer classCode="CLUSTER" moodCode="EVN">
<!-- Implied template Measure Reference templateId -->
@@ -110,29 +112,29 @@
<reference typeCode="REFR">
<externalDocument classCode="DOC" moodCode="EVN">
<!-- SHALL: required Id but not restricted to the eMeasure Document/Id-->
<!-- QualityMeasureDocument/id This is the version specific identifier for eMeasure -->
<id root="<%= measure['hqmf_id'] %>"/>
-
+
<!-- SHOULD This is the title of the eMeasure -->
<text><%= measure['name'] %></text>
<!-- SHOULD: setId is the eMeasure version neutral id -->
<setId root="<%= measure['hqmf_set_id'] %>"/>
<!-- This is the sequential eMeasure Version number -->
<versionNumber value="1"/>
</externalDocument>
</reference>
-
+
<% result = results[measure['hqmf_id']]
- unless result.is_cv?
+ unless result.is_cv?
result.population_groups.each do |pg|
-%>
<component>
<%== render :partial => 'performance_rate', :locals => {:population_group => pg} %>
</component>
<% end
end -%>
- <% result.populations.each do |pop|
+ <% result.populations.each do |pop|
unless pop.type == 'OBSERV' -%>
<component>
<%== render :partial => 'measure_data', :locals => {:aggregate_count => result, :population => pop} %>
</component>
<% end