Skip to content

Instantly share code, notes, and snippets.

@brian-lc
Last active December 19, 2015 14:09
Show Gist options
  • Select an option

  • Save brian-lc/5967527 to your computer and use it in GitHub Desktop.

Select an option

Save brian-lc/5967527 to your computer and use it in GitHub Desktop.
First CAT3 export from PopHealth
<?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"/>
<id root="65706c30-cba7-0130-306a-000c297c452a"/>
<!-- 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>
<!-- SHALL -->
<effectiveTime value="20130710155750"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" code="N"/>
<languageCode code="en-US"/>
<!-- SHOULD The version of the file being submitted. -->
<versionNumber value="1"/>
<!-- SHALL contain recordTarget and ID - but ID is nulled to NA. This is an aggregate summary report. Therefore CDA's required patient identifier is nulled. -->
<recordTarget>
<patientRole>
<id nullFlavor="NA"/>
</patientRole>
</recordTarget>
<!-- 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. -->
<author>
<time value="20130710155750"/>
<assignedAuthor>
<!-- Registry author ID -->
<id extension="Cypress" root="MITRE"/>
<assignedAuthoringDevice>
<softwareName></softwareName>
</assignedAuthoringDevice>
<representedOrganization>
<!-- Represents unique registry organization TIN -->
<id root="root" extension="ext"/>
<!-- Contains name - specific registry not required-->
<name></name>
</representedOrganization>
</assignedAuthor>
</author>
<!-- The custodian of the CDA document is the same as the legal authenticator in this
example and represents the reporting organization. -->
<!-- SHALL -->
<custodian>
<assignedCustodian>
<representedCustodianOrganization>
<!-- SHALL have an id - This is an example root -->
<id root="root"/>
<!-- SHOULD Name not required -->
<name>Cypress</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="20130710155750"/>
<!-- SHALL -->
<signatureCode code="S"/>
<assignedEntity>
<!-- SHALL ID -->
<id root="root"/>
<!-- SHALL -->
<representedOrganization>
<!-- SHALL Id -->
<!-- example root -->
<id root="root"/>
</representedOrganization>
</assignedEntity>
</legalAuthenticator>
<!--
********************************************************
CDA Body
********************************************************
-->
<component>
<structuredBody>
<!--
********************************************************
QRDA Category III Reporting Parameters
********************************************************
-->
<component>
<section>
<!-- This is the templateId for Reporting Parameters section -->
<templateId root="2.16.840.1.113883.10.20.17.2.1"/>
<code code="55187-9" codeSystem="2.16.840.1.113883.6.1"/>
<title>Reporting Parameters</title>
<text>
<list>
<item>Reporting period: July 10th, 2012 08:57 - July 10th, 2013 08:57</item>
</list>
</text>
<entry typeCode="DRIV">
<act classCode="ACT" moodCode="EVN">
<!-- This is the templateId for Reporting Parameteres Act -->
<templateId root="2.16.840.1.113883.10.20.17.3.8"/>
<code code="252116004" codeSystem="2.16.840.1.113883.6.96" displayName="Observation Parameters"/>
<effectiveTime>
<low value="20120710085749"/>
<high value="20130710085750"/>
</effectiveTime>
</act>
</entry>
</section>
</component>
<!--
********************************************************
Measure Section
********************************************************
-->
<component>
<section>
<!-- Implied template Measure Section templateId -->
<templateId root="2.16.840.1.113883.10.20.24.2.2"/>
<!-- In this case the query is using an eMeasure -->
<!-- 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>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment