Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Model Driven Health Tools » Missing template ids
Missing template ids [message #1770187] Tue, 08 August 2017 23:33 Go to next message
Larry Kline is currently offline Larry KlineFriend
Messages: 13
Registered: April 2017
Junior Member
I am generating CCDs using the MDHT API. I am trying to generate documents that will pass the MU3 tests, thus I have been using the Edge Testing validator at https://ttpedge.sitenv.org/ttp/#/validators#C-CDA%20MDHT%20Conformance%20Error. But the validator complains that I do not have the correct template ids in my document, even though I am using the version 2 section creation API.

For instance:
        mySection = consolFactory.createAllergiesSection2().init();


This creates a document with the following template ids for the allergies section:

          <templateId root="2.16.840.1.113883.10.20.22.2.6.1" extension="2015-08-01"/>
          <templateId root="2.16.840.1.113883.10.20.22.2.6"/>
          <templateId root="2.16.840.1.113883.10.20.22.2.6" extension="2015-08-01"/>


But the validator wants to also see this one:

          <templateId root="2.16.840.1.113883.10.20.22.2.6.1"/>


I can do it manually but I wonder if I am using the wrong API call or if there is some other initialization (e.g. of the factory perhaps?) that I need to do.

This issue exists for many sections of the document.

BTW, these are the template ids in the document header, also generated by MDHT:

  <templateId root="2.16.840.1.113883.10.20.22.1.2" extension="2015-08-01"/>
  <templateId root="2.16.840.1.113883.10.20.22.1.1"/>
  <templateId root="2.16.840.1.113883.10.20.22.1.1" extension="2015-08-01"/>


Thanks,
Larry Kline
Re: Missing template ids [message #1770254 is a reply to message #1770187] Wed, 09 August 2017 12:46 Go to previous messageGo to next message
Sean Muir is currently offline Sean MuirFriend
Messages: 54
Registered: September 2015
Member
Can you send the specific error ?

I ran a quick test

	public static void main(String[] args) throws Exception {
		ClinicalDocument cd = ConsolFactory.eINSTANCE.createContinuityOfCareDocument2().init();
		cd.addSection(ConsolFactory.eINSTANCE.createAllergiesSection2().init());

		ValidationHandler result = new ValidationHandler() {

			@Override
			public void handleError(Diagnostic diagnostic) {
				System.out.println(diagnostic.getMessage());

			}

			@Override
			public void handleWarning(Diagnostic diagnostic) {
				// TODO Auto-generated method stub

			}

			@Override
			public void handleInfo(Diagnostic diagnostic) {
				// TODO Auto-generated method stub

			}
		};
		// ValidationResult result = new ValidationResult();
		CDAUtil.validate(cd, result);

		CDAUtil.save(cd, System.out);

	}
}

And got errors but none saying the section was missing


Consol US Realm Header typeId SHALL contain exactly one [1..1] @root="2.16.840.1.113883.1.3" (CONF:5250, R2.1=CONF:1198-5250)
Consol US Realm Header typeId SHALL contain exactly one [1..1] @extension="POCD_HD000040" (CONF:5251, R2.1=CONF:1198-5251)
Consol US Realm Header (V3) SHALL contain exactly one [1..1] realmCode/@code="US" (CONF:1198-16791)
Consol US Realm Header SHALL contain exactly one [1..1] typeId (CONF:5361, R2.1=CONF:1198-5361)
Consol US Realm Header SHALL contain exactly one [1..1] id (CONF:5363, R2.1=CONF:1198-5363)
Consol US Realm Header (V3) SHALL contain exactly one [1..1] title (CONF:1198-5254)
Consol US Realm Header SHALL contain exactly one [1..1] effectiveTime (CONF:5256, R2.1=CONF:1198-5256) Signifies the document creation time, when the document first came into being. Where the CDA document is a transform from an original document in some other format, the ClinicalDocument.effectiveTime is the time the original document is created. The time when the transform occurred is not currently represented in CDA
Consol US Realm Header SHALL contain exactly one [1..1] languageCode, which SHALL be selected from ValueSet Language 2.16.840.1.113883.1.11.11526 DYNAMIC (CONF:5372, R2.1=CONF:1198-5372, DSTU:806)
Consol US Realm Header SHALL contain exactly one [1..1] languageCode, which SHALL be selected from ValueSet Language 2.16.840.1.113883.1.11.11526 DYNAMIC (CONF:5372, R2.1=CONF:1198-5372, DSTU:806)
Consol US Realm Header (V3) SHALL contain at least one [1..*] author, where its type is Author (CONF:1198-5444)
Consol US Realm Header (V3) SHALL contain exactly one [1..1] custodian, where its type is Custodian (CONF:1198-5519)
Consol US Realm Header (V3) SHALL contain at least one [1..*] recordTarget, where its type is Record Target (CONF:1198-5266)
Consol Continuity of Care Document (CCD) (V3) SHALL contain at least one [1..*] author, where its type is Author (CONF:1198-9442)
Consol Continuity of Care Document (CCD) (V3) SHALL contain exactly one [1..1] documentationOf, where its type is Documentation Of (CONF:1198-8452)
Consol Continuity of Care Document (CCD) (V3) SHALL contain [1..1] component such that it (CONF:1198-30663, CONF:1198-30664) Conforms to Medications Section2 (templateId: 2.16.840.1.113883.10.20.22.2.1.1:2014-06-09)
Consol Continuity of Care Document (CCD) (V3) SHALL contain [1..1] component such that it (CONF:1198-30665, CONF:1198-30666) Conforms to Problem Section (V3) (entries required) (templateId: 2.16.840.1.113883.10.20.22.2.5.1:2015-08-01)
Consol Continuity of Care Document (CCD) (V3) SHALL contain [1..1] component such that it (CONF:1198-30669, CONF:1198-30670) Conforms to Results Section (entries required) (V3) (templateId: 2.16.840.1.113883.10.20.22.2.3.1:2015-08-01)
Consol Continuity of Care Document (CCD) (V3) SHALL contain [1..1] component such that it (CONF:1198-30687, CONF:1198-30688) Conforms to Social History Section (V3) (templateId: 2.16.840.1.113883.10.20.22.2.17:2015-08-01)
Consol Continuity of Care Document (CCD) (V3) SHALL contain [1..1] component such that it (CONF:1198-30689, CONF:1198-30690) Conforms to Vital Signs Section (entries required) (V3) (templateId: 2.16.840.1.113883.10.20.22.2.4.1:2015-08-01)
Consol Allergies Section Entries Optional SHALL contain exactly one [1..1] title (CONF:7802, R2.1=CONF:1198-7802)
Consol Allergies Section Entries Optional SHALL contain exactly one [1..1] text (CONF:7803, R2.1=CONF:1198-7803)
Consol Allergies and Intolerances Section (entries required) (V3) SHALL contain exactly one [1..1] title (CONF:1198-7534)
Consol Allergies and Intolerances Section (entries required) (V3) SHALL contain exactly one [1..1] text (CONF:1198-7530)
<?xml version="1.0" encoding="UTF-8"?>
<ClinicalDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3" xsi:schemaLocation="urn:hl7-org:v3 infrastructure/cda/CDA_SDTC.xsd">
<realmCode code="US"/>
<realmCode code="US"/>
<templateId root="2.16.840.1.113883.10.20.22.1.2" extension="2015-08-01"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1" extension="2015-08-01"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of Episode Note"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" codeSystemName="ConfidentialityCode"/>
<component>
<structuredBody>
<component>
<section nullFlavor="NI">
<templateId root="2.16.840.1.113883.10.20.22.2.6.1" extension="2015-08-01"/>
<templateId root="2.16.840.1.113883.10.20.22.2.6"/>
<templateId root="2.16.840.1.113883.10.20.22.2.6" extension="2015-08-01"/>
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, adverse reactions, alerts"/>
</section>
</component>
</structuredBody>
</component>
</ClinicalDocument>
Re: Missing template ids [message #1770290 is a reply to message #1770254] Wed, 09 August 2017 16:36 Go to previous message
Larry Kline is currently offline Larry KlineFriend
Messages: 13
Registered: April 2017
Junior Member
The validation issue is not that a section is missing, but that it doesn't have the correct template ids. And the validator I'm using is the Edge Testing tool. Go to this https://ttpedge.sitenv.org/ttp/#/validators#C-CDA%20MDHT%20Conformance%20Error. Then do this:


  1. Press the "Sender SUT Test Data" button
  2. Press the "Select document" button and select this document: 170.315_b1_toc_amb_sample1_v13.pdf
  3. Upload your document
  4. Press the validate button


When validation is done scroll down to see the errors. You should see this error:
Error -

The Allergy Section template id, Root Value = 2.16.840.1.113883.10.20.22.2.6.1 and Extension Value = No Extension value is not present in the submitted CCDA's 
Line number: 0 


So what I'm saying is that MDHT generates the following three template ids for the Allergies section but not the one seen above in the error.

          <templateId root="2.16.840.1.113883.10.20.22.2.6.1" extension="2015-08-01"/>
          <templateId root="2.16.840.1.113883.10.20.22.2.6"/>
          <templateId root="2.16.840.1.113883.10.20.22.2.6" extension="2015-08-01"/>


Other sections have the same issue.

Thanks,
Larry

P.S. I attached the CCD.


[Updated on: Wed, 09 August 2017 16:49]

Report message to a moderator

Previous Topic:Multiple Realm codes for CCDA CCD (2.1)
Next Topic:Misplaced suncomponents
Goto Forum:
  


Current Time: Thu Nov 15 04:22:12 GMT 2018

Powered by FUDForum. Page generated in 0.01538 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top