QRDA1 files validation according to CMS 2018 standards

 
 

How to solve the following errors in QRDA files:

ISSUE: Value Set 2.16.840.1.113883.3.464.1003.101.12.1001 has a different category than Templates ["2.16.840.1.113883.10.20.22.4.49", "2.16.840.1.113883.10.20.24.3.21", "2.16.840.1.113883.10.20.22.4.49", "2.16.840.1.113883.10.20.24.3.21"]

 

Tool used: Cypress validation utility

  File:
 
<?xml version="" encoding="" ?>
 	<?xml-stylesheet type="text/xsl" href="cda.xsl"?>
 	<ClinicalDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sdtc="urn:hl7-org:sdtc" xmlns="urn:hl7-org:v3" xmlns:cda="urn:hl7-org:v3" >
 	<realmCode code="US"/>
 	<typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
 	<templateId root="2.16.840.1.113883.10.20.22.1.1" extension="2014-06-09"/>
 	<templateId root="2.16.840.1.113883.10.20.24.1.1" extension="2014-12-01"/>
 	<templateId root="2.16.840.1.113883.10.20.24.1.2" extension="2014-12-01"/>
 	<templateId root="2.16.840.1.113883.10.20.24.1.3" extension="2015-07-01"/>
 	<id extension="0992ca65-75d8-4390-ba7e-9679f57c7882" root="2.16.840.1.113883.19.5.99999.1"/>
 	<code code="55182-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Quality Measure Report"/>
 	<title >
 	Closing the referral loop: receipt of specialist report
 	</title>
 	<effectiveTime value="20180523000000+0000"/>
 	<confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25"/>
 	<languageCode code="en"/>
 	<setId root="f58fc0d6-edf5-416a-8d29-79afbfd24dea"/>
 	<versionNumber value="5"/>
 	<recordTarget >
 	<patientRole >
 	<id extension="PT6802" root="2.16.840.1.113883.123.123.1"/>
 	<addr use="HP">
 	<country >
 	US
 	</country>
 	<state >
 	TX
 	</state>
 	<city >
 	austin
 	</city>
 	<postalCode >
 	78787
 	</postalCode>
 	<streetAddressLine >
 	122
 	</streetAddressLine>
 	</addr>
 	<telecom use="HP" value="mailto:knomula@visionweb.com"/>
 	<patient >
 	<name >
 	<family >
 	Donald
 	</family>
 	<given >
 	Donald
 	</given>
 	</name>
 	<administrativeGenderCode code="M" displayName="Male" codeSystem="2.16.840.1.113883.5.1"/>
 	<birthTime value="20171127"/>
 	<maritalStatusCode nullFlavor="UNK"/>
 	<languageCommunication >
 	<languageCode code="en"/>
 	<modeCode code="ESP" displayName="Expressed spoken" codeSystem="2.16.840.1.113883.5.60" codeSystemName="LanguageAbilityMode"/>
 	<proficiencyLevelCode code="G" displayName="Good" codeSystem="2.16.840.1.113883.5.61" codeSystemName="LanguageAbilityProficiency"/>
 	<preferenceInd value="true"/>
 	</languageCommunication>
 	</patient>
 	</patientRole>
 	</recordTarget>
 	<author >
 	<templateId root="2.16.840.1.113883.10.20.22.4.119"/>
 	<time value="20180523000000+0000"/>
 	<assignedAuthor >
 	<id extension="1929192908" root="2.16.840.1.113883.4.6" assigningAuthorityName="NPI"/>
 	<code code="152W00000X" codeSystem="2.16.840.1.113883.6.101" displayName="Optometrist"/>
 	<addr use="WP">
 	<country >
 	US
 	</country>
 	<state >
 	TX
 	</state>
 	<city >
 	Austin
 	</city>
 	<postalCode >
 	78730-1234
 	</postalCode>
 	<streetAddressLine >
 	1 Single Circle
 	</streetAddressLine>
 	</addr>
 	<telecom use="WP" value="tel:(555) 555-5555"/>
 	<assignedAuthoringDevice >
 	<manufacturerModelName >
 	O-EHRv1.3
 	</manufacturerModelName>
 	<softwareName >
 	VitalHealth EHR
 	</softwareName>
 	</assignedAuthoringDevice>
 	<representedOrganization >
 	<name >
 	b1sl
 	</name>
 	<telecom use="WP" value="tel:(555) 555-5555"/>
 	<addr use="WP">
 	<country >
 	US
 	</country>
 	<state >
 	TX
 	</state>
 	<city >
 	Austin
 	</city>
 	<postalCode >
 	78730-1234
 	</postalCode>
 	<streetAddressLine >
 	1 Single Circle
 	</streetAddressLine>
 	</addr>
 	</representedOrganization>
 	</assignedAuthor>
 	</author>
 	<custodian >
 	<assignedCustodian >
 	<representedCustodianOrganization >
 	<name >
 	b1sl
 	</name>
 	<telecom use="WP" value="tel:(555) 555-5555"/>
 	<addr use="WP">
 	<country >
 	US
 	</country>
 	<state >
 	TX
 	</state>
 	<city >
 	Austin
 	</city>
 	<postalCode >
 	78730-1234
 	</postalCode>
 	<streetAddressLine >
 	1 Single Circle
 	</streetAddressLine>
 	</addr>
 	</representedCustodianOrganization>
 	</assignedCustodian>
 	</custodian>
 	<informationRecipient >
 	<intendedRecipient >
 	<id root="2.16.840.1.113883.3.249.7" extension="HQR_EHR"/>
 	</intendedRecipient>
 	</informationRecipient>
 	<legalAuthenticator >
 	<time value="20180523000000+0000"/>
 	<signatureCode code="S"/>
 	<assignedEntity >
 	<id root="bc01a5d1-3a34-4286-82cc-43eb04c972a7"/>
 	<addr use="WP">
 	<country >
 	US
 	</country>
 	<state >
 	TX
 	</state>
 	<city >
 	Austin
 	</city>
 	<postalCode >
 	78730-1234
 	</postalCode>
 	<streetAddressLine >
 	1 Single Circle
 	</streetAddressLine>
 	</addr>
 	<telecom use="WP" value="tel:(555) 555-5555"/>
 	<assignedPerson >
 	<name >
 	<family />
 	<given />
 	</name>
 	</assignedPerson>
 	<representedOrganization >
 	<name >
 	b1sl
 	</name>
 	<telecom use="WP" value="tel:(555) 555-5555"/>
 	<addr use="WP">
 	<country >
 	US
 	</country>
 	<state >
 	TX
 	</state>
 	<city >
 	Austin
 	</city>
 	<postalCode >
 	78730-1234
 	</postalCode>
 	<streetAddressLine >
 	1 Single Circle
 	</streetAddressLine>
 	</addr>
 	</representedOrganization>
 	</assignedEntity>
 	</legalAuthenticator>
 	<documentationOf >
 	<serviceEvent classCode="PCPR">
 	<effectiveTime >
 	<low value="20180523000000+0000"/>
 	<high value="20180523000000+0000"/>
 	</effectiveTime>
 	<performer typeCode="PRF">
 	<time >
 	<low value="20180523000000+0000"/>
 	<high value="20180523000000+0000"/>
 	</time>
 	<assignedEntity >
 	<id root="2.16.840.1.113883.4.6" extension="7777777702"/>
 	<representedOrganization >
 	<name >
 	b1sl
 	</name>
 	</representedOrganization>
 	</assignedEntity>
 	</performer>
 	</serviceEvent>
 	</documentationOf>
 	<component >
 	<structuredBody >
 	<!-- QRDA Measure Section -->
 	<component >
 	<section >
 	<templateId root="2.16.840.1.113883.10.20.24.2.2"/>
 	<templateId root="2.16.840.1.113883.10.20.24.2.3"/>
 	<code code="55186-1" displayName="Measure Section" codeSystem="2.16.840.1.113883.6.1"/>
 	<title >
 	Measure Section
 	</title>
 	<text >
 	<table border="1" width="100%">
 	<thead >
 	<tr >
 	<th >
 	eMeasure Title
 	</th>
 	<th >
 	Version neutral identifier
 	</th>
 	<th >
 	eMeasure Version Number
 	</th>
 	<th >
 	NQF eMeasure Number
 	</th>
 	<th >
 	eMeasure Identifier (MAT)
 	</th>
 	<th >
 	Version specific identifier
 	</th>
 	</tr>
 	</thead>
 	<tbody >
 	<tr >
 	<td >
 	Closing the referral loop: receipt of specialist report
 	</td>
 	<td >
 	f58fc0d6-edf5-416a-8d29-79afbfd24dea
 	</td>
 	<td >
 	5
 	</td>
 	<td />
 	<td >
 	50
 	</td>
 	<td >
 	40280381-5118-2f4e-0151-59fb81bf1055a
 	</td>
 	</tr>
 	</tbody>
 	</table>
 	</text>
 	<entry typeCode="DRIV">
 	<organizer classCode="CLUSTER" moodCode="EVN">
 	<templateId root="2.16.840.1.113883.10.20.24.3.98"/>
 	<templateId root="2.16.840.1.113883.10.20.24.3.97"/>
 	<id nullFlavor="UNK"/>
 	<statusCode code="completed"/>
 	<!-- Referenced Measure -->
 	<reference typeCode="REFR">
 	<externalDocument classCode="DOC" moodCode="EVN">
 	<id root="2.16.840.1.113883.4.738" extension="40280381-5118-2f4e-0151-59fb81bf1055"/>
 	<id root="2.16.840.1.113883.3.560.101.2" extension="50"/>
 	<code code="57024-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Health Quality Measure Document"/>
 	<text >
 	Closing the referral loop: receipt of specialist report
 	</text>
 	<setId root="f58fc0d6-edf5-416a-8d29-79afbfd24dea"/>
 	<versionNumber value="5"/>
 	</externalDocument>
 	</reference>
 	</organizer>
 	</entry>
 	</section>
 	</component>
 	<!-- QRDA Reporting Parameters Section -->
 	<component >
 	<section >
 	<templateId root="2.16.840.1.113883.10.20.17.2.1"/>
 	<templateId root="2.16.840.1.113883.10.20.17.2.1" extension="2015-07-01"/>
 	<templateId root="2.16.840.1.113883.10.20.27.2.2"/>
 	<templateId root="2.16.840.1.113883.10.20.27.2.6" extension="2016-11-01"/>
 	<code code="55187-9" codeSystem="2.16.840.1.113883.6.1"/>
 	<title >
 	Reporting Parameters
 	</title>
 	<text >
 	<table border="1" width="100%">
 	<thead >
 	<tr >
 	<th >
 	Measurement Period Start
 	</th>
 	<th >
 	Measurement Period End
 	</th>
 	</tr>
 	</thead>
 	<tbody >
 	<tr >
 	<td >
 	Sunday, 01 January 2017
 	</td>
 	<td >
 	Sunday, 31 December 2017
 	</td>
 	</tr>
 	</tbody>
 	</table>
 	</text>
 	<entry typeCode="DRIV">
 	<act classCode="ACT" moodCode="EVN">
 	<templateId root="2.16.840.1.113883.10.20.17.3.8"/>
 	<templateId root="2.16.840.1.113883.10.20.17.3.8" extension="2015-07-01"/>
 	<templateId root="2.16.840.1.113883.10.20.27.3.23" extension="2016-11-01"/>
 	<id root="55a43e20-6463-46eb-81c3-9a3a1ad41225"/>
 	<code code="252116004" codeSystem="2.16.840.1.113883.6.96" displayName="Observation Parameters"/>
 	<effectiveTime >
 	<low value="20170101000000+0000"/>
 	<high value="20171231000000+0000"/>
 	</effectiveTime>
 	</act>
 	</entry>
 	</section>
 	</component>
 	<!-- Patient Data Section -->
 	<component >
 	<section >
 	<templateId root="2.16.840.1.113883.10.20.17.2.4"/>
 	<templateId root="2.16.840.1.113883.10.20.24.2.1" extension="2016-08-01"/>
 	<code code="55188-7" displayName="Patient Data" codeSystem="2.16.840.1.113883.6.1"/>
 	<title >
 	Patient Data
 	</title>
 	<text >
 	<table border="1" width="100%">
 	<thead >
 	<tr >
 	<th >
 	Data Element
 	</th>
 	<th >
 	Value
 	</th>
 	<th >
 	Date/Time
 	</th>
 	</tr>
 	</thead>
 	<tbody >
 	<tr >
 	<td >
 	Communication
 	</td>
 	<td >
 	Clinical consultation report (record artifact)
 	</td>
 	<td >
 	Tuesday, 28 November 2017 21:24
 	</td>
 	</tr>
 	<tr >
 	<td >
 	Encounter, Performed
 	</td>
 	<td >
 	Office or other outpatient visit for the evaluation and management of an established patient, which requires at least 2 of these 3 key components: An expanded problem focused history; An expanded problem focused examination; Medical decision making of low complexity. Counseling and coordination of care with other physicians, other qualified health care professionals, or agencies are provided consistent with the nature of the problem(s) and the patient's and/or family's needs. Usually, the presenting problem(s) are of low to moderate severity. Typically, 15 minutes are spent face-to-face with the patient and/or family.
 	</td>
 	<td >
 	Wednesday, 29 November 2017 18:32
 	</td>
 	</tr>
 	<tr >
 	<td >
 	Intervention, Performed
 	</td>
 	<td >
 	Referral to physician (procedure)
 	</td>
 	<td >
 	Tuesday, 28 November 2017 21:24
 	</td>
 	</tr>
 	</tbody>
 	</table>
 	</text>
 	<entry typeCode="DRIV">
 	<observation classCode="OBS" moodCode="EVN">
 	<templateId root="2.16.840.1.113883.10.20.24.3.55"/>
 	<id nullFlavor="NA"/>
 	<code code="48768-6" displayName="Payment source" codeSystem="2.16.840.1.113883.6.1" codeSystemName="SNOMED-CT"/>
 	<effectiveTime >
 	<low value="20180523000000+0000"/>
 	<high value="20180523000000+0000"/>
 	</effectiveTime>
 	<value xsi:type="CD" code="9999" codeSystem="2.16.840.1.113883.3.221.5" codeSystemName="Source of Payment Typology" displayName="Unavailable"/>
 	</observation>
 	</entry>
 	<!-- Encounters, Performed -->
 	<entry typeCode="DRIV">
 	<encounter classCode="ENC" moodCode="EVN">
 	<templateId root="2.16.840.1.113883.10.20.22.4.49" extension="2015-08-01"/>
 	<templateId root="2.16.840.1.113883.10.20.24.3.21" extension="2016-02-01"/>
 	<id root="2a620155-9d11-439e-92b3-5d9815ff4de8"/>
 	<code code="99213" codeSystem="2.16.840.1.113883.6.12" codeSystemName="CPT" displayName="Office Visit" sdtc:valueSet="2.16.840.1.113883.3.464.1003.101.12.1001"/>
 	<text >
 	Office Visit
 	</text>
 	<statusCode code="active"/>
 	<effectiveTime >
 	<low value="20171129183256+0000"/>
 	<high value="20171129183256+0000"/>
 	</effectiveTime>
 	</encounter>
 	</entry>
 	<!-- Interventions, Performed -->
 	<entry typeCode="DRIV">
 	<act classCode="ACT" moodCode="EVN">
 	<templateId root="2.16.840.1.113883.10.20.22.4.12" extension="2014-06-09"/>
 	<templateId root="2.16.840.1.113883.10.20.24.3.32" extension="2016-02-01"/>
 	<id root="db734647-fc99-424c-a864-7e3cda82e703"/>
 	<code code="183515008" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Referral" sdtc:valueSet="2.16.840.1.113883.3.464.1003.101.12.1046"/>
 	<statusCode code="completed"/>
 	<effectiveTime >
 	<low value="20171128212448+0000"/>
 	<high value="20171128212448+0000"/>
 	</effectiveTime>
 	</act>
 	</entry>
 	<!-- Communication -->
 	<entry typeCode="DRIV">
 	<act classCode="ACT" moodCode="EVN">
 	<templateId root="2.16.840.1.113883.10.20.24.3.4" extension="2016-02-01"/>
 	<id root="F3D6FD73-B2C0-4274-BFD2-A485957734DB"/>
 	<code code="371530004" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMEDCT" displayName="Clinical consultation report (record artifact)" sdtc:valueSet="2.16.840.1.113883.3.464.1003.121.12.1006"/>
 	<text >
 	Clinical consultation report (record artifact)
 	</text>
 	<statusCode code="completed"/>
 	<effectiveTime >
 	<low value="20171128212448+0000"/>
 	<high value="20171128212448+0000"/>
 	</effectiveTime>
 	<participant typeCode="IRCP">
 	<participantRole classCode="ASSIGNED">
 	<code code="158965000" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Medical Practitioner"/>
 	</participantRole>
 	</participant>
 	<participant typeCode="AUT">
 	<participantRole classCode="ASSIGNED">
 	<code code="158965000" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Medical Practitioner"/>
 	</participantRole>
 	</participant>
 	</act>
 	</entry>
 	</section>
 	</component>
 	</structuredBody>
 	</component>
</ClinicalDocument>

 

Following is the link to my github gist:

https://gist.github.com/sayalisankhe/b4c1990b3dd04cd8271c9f908b5da340