The company I work for recently started a project delving into the world of HL7 messaging and data trading. We are using BizTalk Server 2010 with the BTAHL7 accelerator for 2010 with success so far for HL7 v2 but now we have a need to accept HL7 v3 (CDA R2) documents. These are CCD's we will be accepting from an external vendor.
I have the full suite of .xsd schemas from HL7 for CDA R2 (all 1541 of them) but am struggling with how to figure out which schemas relate to the messages we will be receiving. All I have to work with are test CCD messages from our trading partner and no other information. I have tried to use the code and display name along with the templateId's to figure out which subschemas this will match so I can appropriately map into our internal canonical formats for data loading but I am struggling to figure that out.
I'd rather not create one project in BizTalk that holds all 1541 schemas to parse and validate these files as that would make reading my maps and transformation mechanisms that much more difficult. Has anyone with experience in HL7 v3 and BizTalk got any guidance on how I can identify the appropriate subschemas based on the information available in the test files?
Here is the header information:
<realmCode code="US"/>
<typeId root="XXX" extension="POCD_HD000040"/>
<templateId root="2.16.840.1.113883.10.20.1"/>
<templateId root="2.16.840.1.113883.3.88.11.32.1"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.6"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.2"/>
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.1"/>
<templateId root="2.16.840.1.113883.10.20.3"/>
<templateId root="2.16.840.1.113883.3.88.11.83.1"/>
<id root="1.2.840.113619.21.1.3164884235793924544.1704986688012700"/>
<code code="34133-9" codeSystem="XXX" codeSystemName="LOINC" displayName="Summarization of episode note"/>
<title>XXX</title>
<effectiveTime value="20140110152448-0500"/>
<confidentialityCode code="N" codeSystem="XXX"/><languageCode code="en-US"/>