Bug 492112 - CDA Validation - Unable to validate document header
Summary: CDA Validation - Unable to validate document header
Status: NEW
Alias: None
Product: MDHT
Classification: Modeling
Component: CDA (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P3 major
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-20 12:45 EDT by Raj Mehra CLA
Modified: 2016-04-25 11:25 EDT (History)
2 users (show)

See Also:


Attachments
Bad Header templateID (174.82 KB, text/xml)
2016-04-20 12:45 EDT, Raj Mehra CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raj Mehra CLA 2016-04-20 12:45:09 EDT
Created attachment 261126 [details]
Bad Header templateID

MDHT Validation tool unable to detect the invalid document that does not contain a US Realm Header templateId element.

Attached template (NT_Bad_USRealmHeaderTemplate_r11_v1.xml).
Comment 1 Dan Brown CLA 2016-04-21 15:38:03 EDT
Assuming your tests are correct, then for R1.1 this does sound like a bug or a feature that is required. Will need to confirm.

Just to have some data here for reference:

R1.1:
According the Brett Marquard, HL7 C-CDA co-chair
C-CDA R1.1 requires BOTH the USRH and the BASE DOC whether MU or not

R2.1
C-CDA R2.1 requires the BASE DOC only, whether MU or not. It MAY have the USRH as well.

So for R2.1 this would not be an issue to not fire an error.

For R1.1 it would be an issue if it does not fire an error.
Comment 2 Dan Brown CLA 2016-04-21 15:40:44 EDT
by 'your tests are correct' - i mean that the results are using the latest build of MDHT - not the XML itself, that should be fine. Where have you been testing by the way? In a local environment?

I believe I have experienced the same issue for R1.1.
Comment 3 Sean Muir CLA 2016-04-23 10:55:29 EDT
Dan per your comment

R1.1:
According the Brett Marquard, HL7 C-CDA co-chair
C-CDA R1.1 requires BOTH the USRH and the BASE DOC whether MU or not

Was this a decision part of some of the errata ?

I remember lots of conversations about this 

If the parent template is required - we need to set the "requires parent template id" flag on the generalization stereotype
Comment 4 Dan Brown CLA 2016-04-25 11:25:24 EDT
I don't think there is anything specific such as errata to support it. It's possible there is a line in the IG but I was never given it as a reference. Wish we did have something more solid to go on but I don't have any aversion to the enforcement either. Seeing as C-CDA is ever-changing we should probably ask Brett again. 
I had previously enforced this in the web app code after validation via parsing the serialized object so that's why it came up. At this point SITE (and therefore TTT as well) is no longer processing that JSON result though. We can try the "requires parent template id" flag internally and see how that goes.