|
Re: Missing template ids [message #1770254 is a reply to message #1770187] |
Wed, 09 August 2017 12:46   |
Sean Muir Messages: 63 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  |
Larry Kline 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:
- Press the "Sender SUT Test Data" button
- Press the "Select document" button and select this document: 170.315_b1_toc_amb_sample1_v13.pdf
- Upload your document
- 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
|
|
|
Powered by
FUDForum. Page generated in 0.02139 seconds