templates/cat1/show.cat1.erb in health-data-standards-3.4.6 vs templates/cat1/show.cat1.erb in health-data-standards-3.5.0
- old
+ new
@@ -1,97 +1,135 @@
<?xml version="1.0" encoding="utf-8"?>
-<?xml-stylesheet type="text/xsl" href="cda.xsl"?>
<ClinicalDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:hl7-org:v3"
xmlns:voc="urn:hl7-org:v3/voc"
xmlns:sdtc="urn:hl7-org:sdtc">
<!-- QRDA Header -->
<realmCode code="US"/>
<typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
<!-- US Realm Header Template Id -->
- <templateId root="2.16.840.1.113883.10.20.22.1.1"/>
- <!-- QRDA templateId -->
+ <templateId root="2.16.840.1.113883.10.20.22.1.1"/>
+ <!-- QRDA templateId -->
<templateId root="2.16.840.1.113883.10.20.24.1.1"/>
<!-- QDM-based QRDA templateId -->
<templateId root="2.16.840.1.113883.10.20.24.1.2"/>
<!-- This is the globally unique identifier for this QRDA document -->
- <id root="5b010313-eff2-432c-9909-6193d8416fac"/>
+ <id root="<%= UUID.generate %>"/>
<!-- QRDA document type code -->
<code code="55182-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Quality Measure Report"/>
<title>QRDA Incidence Report</title>
<!-- This is the document creation time -->
<effectiveTime value="<%= Time.now.utc.to_formatted_s(:number) %>"/>
<confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25"/>
<languageCode code="eng"/>
<!-- reported patient -->
<%== render :partial => 'record_target', :locals => {:patient => patient} %>
<!-- Example of an author who is a device -->
- <author>
- <time value="<%= Time.now.utc.to_formatted_s(:number) %>"/>
- <assignedAuthor>
- <!-- id extension="Cypress" root="2.16.840.1.113883.19.5"/ -->
- <!-- NPI -->
- <id extension="FakeNPI" root="2.16.840.1.113883.4.6"/>
- <addr>
- <streetAddressLine>202 Burlington Rd.</streetAddressLine>
- <city>Bedford</city>
- <state>MA</state>
- <postalCode>01730</postalCode>
- <country>US</country>
- </addr>
- <telecom use="WP" value="tel:(781)271-3000"/>
- <assignedAuthoringDevice>
- <manufacturerModelName>Cypress</manufacturerModelName >
- <softwareName>Cypress</softwareName >
- </assignedAuthoringDevice >
- </assignedAuthor>
- </author>
- <custodian>
- <assignedCustodian>
- <representedCustodianOrganization>
- <id root="2.16.840.1.113883.19.5"/>
- <name>Cypress Test Deck</name>
+ <% if header %>
+ <%== render :partial=>"author", :collection=>header.authors %>
+ <!-- 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
+ example and represents the reporting organization. -->
+ <!-- SHALL -->
+ <custodian>
+ <assignedCustodian>
+ <%== 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
+ 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) %>"/>
+ <!-- SHALL -->
+ <signatureCode code="S"/>
+ <assignedEntity>
+ <!-- SHALL ID -->
+ <%== render :partial=>"id", :collection=>header.legal_authenticator.ids, :id=>"identifier" %>
+ <%== render :partial=>"address" , :collection=>header.legal_authenticator.addresses %>
+ <assignedPerson>
+ <name>
+ <given><%= header.legal_authenticator.person.given %></given>
+ <family><%= header.legal_authenticator.person.family %></family>
+ </name>
+ </assignedPerson>
+
+ <%== render :partial=>"organization", :locals=>{organization: header.legal_authenticator.organization, tag_name: "representedOrganization"} %>
+ </assignedEntity>
+ </legalAuthenticator>
+ <% else %>
+ <author>
+ <time value="<%= Time.now.utc.to_formatted_s(:number) %>"/>
+ <assignedAuthor>
+ <!-- id extension="Cypress" root="2.16.840.1.113883.19.5"/ -->
+ <!-- NPI -->
+ <id extension="FakeNPI" root="2.16.840.1.113883.4.6"/>
+ <addr>
+ <streetAddressLine>202 Burlington Rd.</streetAddressLine>
+ <city>Bedford</city>
+ <state>MA</state>
+ <postalCode>01730</postalCode>
+ <country>US</country>
+ </addr>
<telecom use="WP" value="tel:(781)271-3000"/>
+ <assignedAuthoringDevice>
+ <manufacturerModelName>Cypress</manufacturerModelName >
+ <softwareName>Cypress</softwareName >
+ </assignedAuthoringDevice >
+ </assignedAuthor>
+ </author>
+ <custodian>
+ <assignedCustodian>
+ <representedCustodianOrganization>
+ <id root="2.16.840.1.113883.19.5"/>
+ <name>Cypress Test Deck</name>
+ <telecom use="WP" value="tel:(781)271-3000"/>
+ <addr>
+ <streetAddressLine>202 Burlington Rd.</streetAddressLine>
+ <city>Bedford</city>
+ <state>MA</state>
+ <postalCode>01730</postalCode>
+ <country>US</country>
+ </addr>
+ </representedCustodianOrganization>
+ </assignedCustodian>
+ </custodian>
+ <legalAuthenticator>
+ <time value="<%= Time.now.utc.to_formatted_s(:number) %>"/>
+ <signatureCode code="S"/>
+ <assignedEntity>
+ <id root="bc01a5d1-3a34-4286-82cc-43eb04c972a7"/>
<addr>
<streetAddressLine>202 Burlington Rd.</streetAddressLine>
<city>Bedford</city>
<state>MA</state>
<postalCode>01730</postalCode>
<country>US</country>
</addr>
- </representedCustodianOrganization>
- </assignedCustodian>
- </custodian>
- <legalAuthenticator>
- <time value="<%= Time.now.utc.to_formatted_s(:number) %>"/>
- <signatureCode code="S"/>
- <assignedEntity>
- <id root="bc01a5d1-3a34-4286-82cc-43eb04c972a7"/>
- <addr>
- <streetAddressLine>202 Burlington Rd.</streetAddressLine>
- <city>Bedford</city>
- <state>MA</state>
- <postalCode>01730</postalCode>
- <country>US</country>
- </addr>
- <telecom use="WP" value="tel:(781)271-3000"/>
- <assignedPerson>
- <name>
- <given>Henry</given>
- <family>Seven</family>
- </name>
- </assignedPerson>
- <representedOrganization>
- <id root="2.16.840.1.113883.19.5"/>
- <name>Cypress</name>
- </representedOrganization>
- </assignedEntity>
- </legalAuthenticator>
+ <telecom use="WP" value="tel:(781)271-3000"/>
+ <assignedPerson>
+ <name>
+ <given>Henry</given>
+ <family>Seven</family>
+ </name>
+ </assignedPerson>
+ <representedOrganization>
+ <id root="2.16.840.1.113883.19.5"/>
+ <name>Cypress</name>
+ </representedOrganization>
+ </assignedEntity>
+ </legalAuthenticator>
+ <% end %>
+
<%== render :partial => 'providers', :locals => {:patient => patient} %>
+
<component>
<structuredBody>
<%== render :partial => 'measures', :locals => {:measures => measures} %>
<%== render :partial => 'reporting_parameters', :locals => {:start_date => start_date, :end_date => end_date} %>
<%== render :partial => 'patient_data', :locals => {:measures => measures, :patient => patient} %>
</structuredBody>
</component>
-</ClinicalDocument>
\ No newline at end of file
+</ClinicalDocument>