C-CDA Section Mapping

The emtelliPro Python SDK client associates each extracted section template with a normalized section name. The normalization of section headings is essential for aggregation and analysis of information from disparate sources. This section provides some background information and explains how headings in C-CDA based documents are normalized. It explains these key points:

  • The C-CDA standard defines section templates which contain necessary metadata to uniquely identify document sections.

  • The emtelliPro client normalizes section headings using the templateId OID (object identifier) provided in the C-CDA XML markup

  • When no templateId OID is found, the client has other methods to create a section heading.

A mapping table of C-CDA Section template OID to the normalized section names is provided for reference, see Normalization using template OID).

Background

The HL7 Consolidated Clinical Document Architecture (C-CDA) standard provides a clear specification for the structure of clinical note documents of which there are many types, one of which is the Continuity of Care Document (CCD). Examples of other common clinical note document types are: Progress Notes, Referral Notes, and Discharge Summaries. The C-CDA implementation guide defines templates that specify the conformance requirements for each type of clinical note and their contents. The template structure of a C-CDA clinical note has 3 levels (document, section and entry levels), as shown in the image below:

Template Structure of C-CDA

Figure 1. (source: Template structure of C-CDA. HL7 CDA(R) R2 Implementation Guide: C-CDA Templates for Clinical Notes STU Companion Guide Release 3 (US Realm), May 2022 )

Each Section Template in a C-CDA document contains two copies of its data; the first copy is in XML-encoded HTML, and the second copy is encoded in “machine-processable” XML form. When the client reads a C-CDA document, it converts the XML-encoded HTML into text form, and sends it to emtelliPro for processing. It also converts the “machine-processable” XML portion of the C-CDA document into JSON metadata, but does not send it for processing. Upon receipt of emtelliPro’s output, the emtelliPro output will be stored in an emtelliPro database, normalized into a number of tables, and the JSON corresponding to the machine-processable XML portion of the C-CDA document will be stored as a key/value store in the documentstructuredmetadata table. For more information about how coded entries are extracted see Structured entries as metadata.

As noted above, section templates contain information in human-readable form (the XML-encoded HTML portion of the section template). Each section template represents a type of section; some examples of these are: Encounters, History of Present Illness, Assessment sections, and many others as defined by the C-CDA Implementation Guide. Section templates are globally-defined and may be found in more than one type of clinical note. For example, the Immunization section is found as a required or optional section in CCDs, Consultation Notes, and Discharge Summaries. Critically, emtelliPro utilizes the metadata found in the section-level templates to identify a C-CDA defined section and map them to standardized section names as described in the next section.

Section normalization for C-CDA documents

Section templates specify the format of section metadata, namely that XML markup for section templates must provide a templateId OID identifier (i.e. an object identifier that is a globally unique ISO identifier) and some C-CDA documents (it appears to be vendor/version dependent) also include LOINC code.

An example of this is:

<section>
<templateId root="2.16.840.1.113883.10.20.22.2.3.1"></templateId>
<code code="30954-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Relevant diagnostic tests and/or laboratory data"></code>

In this example, the OID 2.16.840.1.113883.10.20.22.2.3.1 indicates that this is a the RESULTS SECTION, and this is concordant with LOINC code 30954-2, which has a long name of Relevant diagnostic tests/laboratory data Narrative. Similar to the templateId OID, the required LOINC code for a section indicates what the type of information that the section contains. For example, the PROBLEM SECTION has the LOINC code of 11450-4 (Problem List). A full list of section templates can be found in the HL7 CDA(R) Release 2 Implementation Guide: C-CDA Templates for Clinical Notes STU Companion Guide Release 3 (US Realm) Standard for Trial Use May 2022. It should be noted that the client recognizes all the section template OID identifiers in this version of the implementation guide and others that we have encountered in our testing.

Normalization using template OID

The emtelliPro client uses the section template’s OID as key criteria for section normalization. The table below shows the mapping of template OIDs to emtelliPro section names. For convenience, the LOINC code that the C-CDA standard assigns to each template OID is also listed, although in emtelligent’s experience, there can be variability in template OID to LOINC code mappings. This may be useful for remapping emtelliPro section names to LOINC codes for systems which use LOINC coding as the preferred coding system for sections.

Mapping of OID and LOINC codes to headings for emtelliPro.

template OID

Canonical LOINC code

Section heading for emtelliPro

2.16.840.1.113883.10.20.35.4.11

77599-9

Additional Documentation Section

2.16.840.1.113883.10.20.22.2.43

46241-6

Admission Diagnosis Section

2.16.840.1.113883.10.20.22.2.44

42346-7

Admission Medications Section

2.16.840.1.113883.10.20.1.1

42348-3

Advance Directives Section

2.16.840.1.113883.10.20.22.2.21

42348-3

Advance Directives Section

2.16.840.1.113883.10.20.22.2.21.1

42348-3

Advance Directives Section

2.16.840.1.113883.10.20.1.2

48765-2

Alerts Section

2.16.840.1.113883.10.20.22.2.6

48765-2

Allergies and Intolerances Section

2.16.840.1.113883.10.20.22.2.6.1

48765-2

Allergies and Intolerances Section

2.16.840.1.113883.10.20.22.2.25

59774-0

Anesthesia Section

2.16.840.1.113883.10.20.22.2.9

51847-2

Assessment and Plan Section

2.16.840.1.113883.10.20.22.2.8

51848-0

Assessment Section

2.16.840.1.113883.10.20.22.2.500

85847-2

Care Teams Section

2.16.840.1.113883.10.20.22.2.13

10154-3

Chief Complaint and Reason for Visit Section

1.3.6.1.4.1.19376.1.5.3.1.1.13.2.1

10154-3

Chief Complaint Section

2.16.840.1.113883.10.20.22.2.37

55109-3

Complications Section

2.16.840.1.113883.10.20.22.2.64

8648-8

Course of Care Section

2.16.840.1.113883.10.20.6.1.1

DCM 121181

DICOM Object Catalog Section

1.3.6.1.4.1.19376.1.5.3.1.3.33

42344-2

Discharge Diet Section

2.16.840.1.113883.10.20.22.2.11

10183-2

Discharge Medications Section

2.16.840.1.113883.10.20.22.2.11.1

10183-2

Discharge Medications Section

2.16.840.1.113883.10.20.1.3

46240-8

Encounters Section

2.16.840.1.113883.10.20.22.2.22

46240-8

Encounters Section

2.16.840.1.113883.10.20.22.2.22.1

46240-8

Encounters Section

2.16.840.1.113883.10.20.35.2.2

77598-1

Externally Defined CDE Section

2.16.840.1.113883.10.20.1.4

10157-6

Family History Section

2.16.840.1.113883.10.20.22.2.15

10157-6

Family History Section

2.16.840.1.113883.10.20.22.4.45

Family History Section

2.16.840.1.113883.10.20.6.1.2

18792-3

Findings (DIR) Section

1.3.6.1.4.19376.1.5.3.1.1.5.3.6

10182-4

Foreign Travel Section

2.16.840.1.113883.10.20.1.5

47420-5

Functional Status Section

2.16.840.1.113883.10.20.22.2.14

47420-5

Functional Status Section

2.16.840.1.113883.10.20.2.5

10210-3

General Status Section

2.16.840.1.113883.10.20.22.2.60

61146-7

Goals Section

2.16.840.1.113883.10.20.22.2.58

75310-3

Health Concerns Section

2.16.840.1.113883.10.20.22.2.61

11383-7

Health Status Evaluations and Outcomes Section

1.3.6.1.4.1.19376.1.5.3.1.3.4

10164-2

History of Present Illness Section

2.16.840.1.113883.10.20.22.2.42

18841-7

Hospital Consultations Section

1.3.6.1.4.1.19376.1.5.3.1.3.5

8648-8

Hospital Course Section

2.16.840.1.113883.10.20.22.2.24

11535-2

Hospital Discharge Diagnosis Section

2.16.840.1.113883.10.20.22.2.41

8653-8

Hospital Discharge Instructions Section

1.3.6.1.4.1.19376.1.5.3.1.3.2

10184-0

Hospital Discharge Physical Section

1.3.6.1.4.1.19376.1.5.3.1.3.26

10184-0

Hospital Discharge Physical Section

2.16.840.1.113883.10.20.22.2.16

11493-4

Hospital Discharge Studies Summary Section

2.16.840.1.113883.10.20.1.6

11369-6

Immunizations Section

2.16.840.1.113883.10.20.22.2.2

11369-6

Immunizations Section

2.16.840.1.113883.10.20.22.2.2.1

11369-6

Immunizations Section

2.16.840.1.113883.10.20.34.2.7

11369-6

Immunizations Section

2.16.840.1.113883.10.20.22.2.33

Implants Section

2.16.840.1.113883.10.20.22.2.45

69730-0

Instructions Section

2.16.840.1.113883.10.20.22.4.20

69730-0

Instructions Sections

2.16.840.1.113883.10.20.21.2.3

62387-6

Interventions Section

1.3.6.1.4.1.19376.1.5.3.1.3.11

47519-4

List of Surgeries Section

1.3.6.1.4.1.19376.1.5.3.1.3.12

47519-4

List of Surgeries Section

2.16.840.1.113883.10.20.24.2.3

55186-1

Measure QDM Section

2.16.840.1.113883.10.20.1.7

46264-8

Medical Equipment Section

2.16.840.1.113883.10.20.22.2.23

46264-8

Medical Equipment Section

2.16.840.1.113883.10.20.22.2.39

11329-0

Medical General History Section

2.16.840.1.113883.10.20.22.2.38

29549-3

Medications Administered Section

2.16.840.1.113883.10.20.1.8

10160-0

Medications Section

2.16.840.1.113883.10.20.22.2.1

10160-0

Medications Section

2.16.840.1.113883.10.20.22.2.1.1

10160-0

Medications Section

2.16.840.1.113883.10.20.22.2.56

10190-7

Mental Status Section

2.16.840.1.113883.10.20.22.2.65

86744-0

Notes Section

2.16.840.1.113883.10.20.22.2.57

61144-2

Nutrition Section

2.16.840.1.113883.10.20.21.2.1

61149-1

Objective Section

2.16.840.1.113883.10.20.7.12

10216-0

Operative Note Fluids Section

2.16.840.1.113883.10.20.7.14

10223-6

Operative Note Surgical Procedure Section

2.16.840.1.113883.10.20.35.2.3

77597-3

Orders Placed Section

2.16.840.1.113883.10.20.22.2.20

11348-0

Past Medical History Section

2.16.840.1.113883.10.20.1.9

48768-6

Payers Section

2.16.840.1.113883.10.20.22.2.18

48768-6

Payers Section

2.16.840.1.113883.10.20.2.10

29545-1

Physical Exam Section

2.16.840.1.113883.10.20.1.10

18776-5

Plan of Treatment Section

2.16.840.1.113883.10.20.22.2.10

18776-5

Plan of Treatment Section

2.16.840.1.113883.10.20.35.2.6

Plan of Treatment Section

2.16.840.1.113883.10.20.22.2.30

59772-4

Planned Procedure Section

2.16.840.1.113883.10.20.22.2.35

10219-4

Postoperative Diagnosis Section

2.16.840.1.113883.10.20.22.2.36

59769-0

Postprocedure Diagnosis Section

2.16.840.1.113883.10.20.22.2.34

10219-4

Preoperative Diagnosis Section

2.16.840.1.113883.3.3251.1.5

57017-6

Privacy Policy Section

2.16.840.1.113883.10.20.1.11

11450-4

Problem Section

2.16.840.1.113883.10.20.22.2.5

11450-4

Problem Section

2.16.840.1.113883.10.20.22.2.5.1

11450-4

Problem Section

2.16.840.1.113883.10.20.22.2.27

29554-3

Procedure Description Section

2.16.840.1.113883.10.20.18.2.12

59775-7

Procedure Disposition Section

2.16.840.1.113883.10.20.18.2.9

59770-8

Procedure Estimated Blood Loss Section

2.16.840.1.113883.10.20.22.2.28

59776-5

Procedure Findings Section

2.16.840.1.113883.10.20.22.2.40

59771-6

Procedure Implants Section

2.16.840.1.113883.10.20.22.2.29

59768-2

Procedure Indications Section

2.16.840.1.113883.10.20.22.2.31

59773-2

Procedure Specimens Taken Section

2.16.840.1.113883.10.20.1.12

47519-4

Procedures Section

2.16.840.1.113883.10.20.22.2.7

47519-4

Procedures Section

2.16.840.1.113883.10.20.22.2.7.1

47519-4

Procedures Section

2.16.840.1.113883.10.20.1.13

48764-5

Purpose Section

1.3.6.1.4.1.19376.1.5.3.1.3.1

42349-1

Reason for Referral Section

2.16.840.1.113883.10.20.22.2.12

29299-5

Reason for Visit Section

2.16.840.1.113883.10.20.1.14

30954-2

Results Section

2.16.840.1.113883.10.20.22.2.3

30954-2

Results Section

2.16.840.1.113883.10.20.22.2.3.1

30954-2

Results Section

1.3.6.1.4.1.19376.1.5.3.1.3.18

10187-3

Review of Systems Section

2.16.840.1.113883.10.20.1.15

29762-2

Social History Section

2.16.840.1.113883.10.20.22.2.17

29762-2

Social History Section

2.16.840.1.113883.10.20.35.2.7

29762-2

Social History Section

2.16.840.1.113883.10.20.21.2.2

61150-9

Subjective Section

2.16.840.1.113883.10.20.22.2.26

Surgery Description Section

2.16.840.1.113883.10.20.7.13

11537-8

Surgical Drains Section

2.16.840.1.113883.10.20.1.16

8716-3

Vital Signs Section

2.16.840.1.113883.10.20.22.2.4

8716-3

Vital Signs Section

2.16.840.1.113883.10.20.22.2.4.1

8716-3

Vital Signs Section

2.16.840.1.113883.10.20.22.4.26

8716-3

Vital Signs Section

Note, that OIDs have 2 parts - a root and version indicator. For backward compatibility, an emtelliPro section name can map to multiple OIDs.

Important

This mapping was generated using the C-CDA R2 Implementation Guide Release 3 (May 2022). As of the date of writing, this is the version currently designated as ‘Standard for Trial Use’ (STU). This maturity designation indicates that the version “has been well reviewed and is considered by the authors to be ready for use in production systems.” It may not be exhaustive relative to subsequently released erratas or versions.

If you encounter a template OID in your data set not in the above list, please contact emtelligent. Note, however, that even though the missing OID is not recognized by emtelliPro, its section contents will still be extracted and processed by emtellipro. The next section explains this case - where either no template OID is found, or an unrecognized OID is encountered.

Normalization when no template OID is found

As the C-CDA standard is continuously evolving, it is possible to encounter older C-CDA documents which do not specify a template OID for each document section, or those that specify a template OID that is pre-standard or unknown to the client. In these cases, the client will give the section the heading that is specified in the <title> tags in the XML-encoded HTML portion of the document. The emtelliPro engine may then normalize this section heading.

Subsections

C-CDA document sections may contain multiple subsections. These are usually delimited in the XML-encoded HTML with <caption> tags. An example of this would be in Allscripts C-CDA documents, where the Functional Status Section of the CCD has a Functional Status Health Issues subsection and a Cognitive Status Health Issues subsection. In these cases, the client will add the sub-section titles from these <caption> tags with the suffix SUBSECTION:. These subsections will then be identified by emtelliPro as Level 1 sections.

Sections in Embedded Documents

C-CDA documents may contain embedded documents such as surgical or diagnostic reports, that the document creation workflow has pasted in as relevant results. These documents often contain their own section headings - for example, a radiology report pasted into a CCD in this manner may contain an INDICATION section and an IMPRESSIONS section. When emtelliPro detects sections of this type inside of CCD documents, they will be detected as Level 1 or higher (i.e. Level 2 or Level 3) section headings to prevent conflict with the C-CDA specified Level 0 section headings.

Important

When exploring the structured output returned by emtelliPro, we recommend that you get a list of all section names returned by emtelliPro for the clinical notes of interest, before filtering by the selected section names. There may be more than one section name that should be used to query for the data you want. For example, to return data about patient’s social histories, you may need to filter for section names like SOCIAL HISTORY SECTION (the OID mapped section name) and SOCIAL HISTORY (the section name assigned when OID is not give) to retrieve the complete set of results. For documentation on how to search the emtelliPro Database please refer to the emtelliPro Output Database documentation, Entity-level Tables section.

References