abstract class HS.IHE.XDSb.UtilIHE Utility Functions
Determine from the input XML file (which we have good reason to believe is some version of CDA) what its CDA Format and Version are. The output pFormatCode is based on the HS_IHE.CodedEntry table, whose entries tell us the correct XSL data transformation to use for this XML file
When not null, the pFormatCode output object will have populated Code, Scheme, and Description properties.
CDA Formats and Versions known to this method:
CCDA 2.1 Structured
CCDA 1.1 Structured
CCDA 2.1 Unstructured
CCDA 1.1 Unstructured
If the output pFormatCode is an empty string ("") this means a format code could not be identified from
the data in the XML document. There are a few possible reasons:
(a) There was no suitable <templateId> found in the document;
(b) there was one, but it did not match a format known to this method; or
(c) there was one, and this method recognized it, but there was no entry configured in the HS_IHE.CodedEntry table for that format, so no result could be returned.
Reason (c) can be addressed by configuring the HS_IHE.CodedEntry table.