> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.emtelligent.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.emtelligent.com/_mcp/server.

# C-CDA Section Mapping

The NLP API Python SDK client attempts to normalize section headings based on XML section information. 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 NLP API client first tries to normalize section headings using the **templateId OID** (object identifier) provided for the section in the C-CDA XML markup.
* If normalization from OID was not possible, it then tries to normalize section headings using any **LOINC codes** provided in the C-CDA XML markup.
* If neither of the above normalizations succeeded, 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](#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](/_fern-img/a062bfe53dd8e2e34752387dda0825c8d4d541b855d3bd229b8c49dfb503e1c8.webp)

**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 the NLP API 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 the NLP API's output, the NLP API output will be stored in an NLP API 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](/nlp/python/ccd/metadata#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, the NLP API 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:

```text
<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\<sup>(R)\</sup> 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 NLP API client uses the section template’s OID as key criteria for section normalization. The table below shows the mapping of template OIDs to NLP API 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 NLP API section names to LOINC codes for systems which use LOINC coding as the preferred coding system for sections.

If there are multiple applicable OIDs for a section, the client uses the shortest (more general) code.

| template OID                       | Canonical LOINC code | Section heading for NLP API                    |
| ---------------------------------- | -------------------- | ---------------------------------------------- |
| 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                            |

Mapping of OIDs to headings for the NLP API.

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

> **Warning**
>
> 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 the NLP API, its section contents will still be extracted and processed by the NLP API. The section below explains this case - where either no template OID is found, or an unrecognized OID is encountered.

### Normalization using LOINC codes

If the NLP API client is not able to normalize a section from template OID, then it attempts to normalize based on any LOINC codes found in the XML for the section. The table below shows the mapping of LOINC codes to NLP API section names.

In the case that a section has at least one LOINC code but no LOINC code for it is in the mapping, the client uses a default code of `85847-2` (`NOTES SECTION`).

| LOINC code | Section heading for NLP API                           |
| ---------- | ----------------------------------------------------- |
| 8648-8     | COURSE OF CARE SECTION                                |
| 8653-8     | HOSPITAL DISCHARGE INSTRUCTIONS SECTION               |
| 8716-3     | VITAL SIGNS SECTION                                   |
| 10154-3    | CHIEF COMPLAINT SECTION                               |
| 10157-6    | FAMILY HISTORY SECTION                                |
| 10160-0    | MEDICATIONS SECTION                                   |
| 10164-2    | HISTORY OF PRESENT ILLNESS SECTION                    |
| 10182-4    | FOREIGN TRAVEL SECTION                                |
| 10183-2    | DISCHARGE MEDICATIONS SECTION                         |
| 10184-0    | HOSPITAL DISCHARGE PHYSICAL SECTION                   |
| 10187-3    | REVIEW OF SYSTEMS SECTION                             |
| 10190-7    | MENTAL STATUS SECTION                                 |
| 10210-3    | GENERAL STATUS SECTION                                |
| 10216-0    | OPERATIVE NOTE FLUIDS SECTION                         |
| 10219-4    | OPERATIVE DIAGNOSES SECTION                           |
| 10223-6    | OPERATIVE NOTE SURGICAL PROCEDURE SECTION             |
| 11329-0    | MEDICAL GENERAL HISTORY SECTION                       |
| 11348-0    | PAST MEDICAL HISTORY SECTION                          |
| 11369-6    | IMMUNIZATIONS SECTION                                 |
| 11383-7    | HEALTH STATUS EVALUATIONS AND OUTCOMES SECTION        |
| 11450-4    | PROBLEM SECTION                                       |
| 11493-4    | HOSPITAL DISCHARGE STUDIES SUMMARY SECTION            |
| 11535-2    | HOSPITAL DISCHARGE DIAGNOSIS SECTION                  |
| 11537-8    | SURGICAL DRAINS SECTION                               |
| 18776-5    | PLAN OF TREATMENT SECTION                             |
| 18792-3    | FINDINGS (DIR) SECTION                                |
| 18841-7    | HOSPITAL CONSULTATIONS SECTION                        |
| 29299-5    | REASON FOR VISIT SECTION                              |
| 29545-1    | PHYSICAL EXAM SECTION                                 |
| 29549-3    | MEDICATIONS ADMINISTERED SECTION                      |
| 29554-3    | PROCEDURE DESCRIPTION SECTION                         |
| 29762-2    | SOCIAL HISTORY SECTION                                |
| 30954-2    | RESULTS SECTION                                       |
| 42344-2    | DISCHARGE DIET SECTION                                |
| 42346-7    | ADMISSION MEDICATIONS SECTION                         |
| 42348-3    | ADVANCE DIRECTIVES SECTION                            |
| 42349-1    | REASON FOR REFERRAL SECTION                           |
| 46240-8    | ENCOUNTERS SECTION                                    |
| 46241-6    | ADMISSION DIAGNOSIS SECTION                           |
| 46264-8    | MEDICAL EQUIPMENT SECTION                             |
| 47420-5    | FUNCTIONAL STATUS SECTION                             |
| 47519-4    | LIST OF SURGERIES SECTION                             |
| 47519-4    | PROCEDURES SECTION                                    |
| 48764-5    | PURPOSE SECTION                                       |
| 48765-2    | ALLERGIES AND INTOLERANCES SECTION                    |
| 48768-6    | PAYERS SECTION                                        |
| 51847-2    | ASSESSMENT AND PLAN SECTION                           |
| 51848-0    | ASSESSMENT SECTION                                    |
| 55109-3    | COMPLICATIONS SECTION                                 |
| 55186-1    | MEASURE QDM SECTION                                   |
| 57017-6    | PRIVACY POLICY SECTION                                |
| 59768-2    | PROCEDURE INDICATIONS SECTION                         |
| 59769-0    | POSTPROCEDURE DIAGNOSIS SECTION                       |
| 59770-8    | PROCEDURE ESTIMATED BLOOD LOSS SECTION                |
| 59771-6    | PROCEDURE IMPLANTS SECTION                            |
| 59772-4    | PLANNED PROCEDURE SECTION                             |
| 59773-2    | PROCEDURE SPECIMENS TAKEN SECTION                     |
| 59774-0    | ANESTHESIA SECTION                                    |
| 59775-7    | PROCEDURE DISPOSITION SECTION                         |
| 59776-5    | PROCEDURE FINDINGS SECTION                            |
| 61144-2    | NUTRITION SECTION                                     |
| 61146-7    | GOALS SECTION                                         |
| 61149-1    | OBJECTIVE SECTION                                     |
| 61150-9    | SUBJECTIVE SECTION                                    |
| 62387-6    | INTERVENTIONS SECTION                                 |
| 69730-0    | INSTRUCTIONS SECTION                                  |
| 75310-3    | HEALTH CONCERNS SECTION                               |
| 77597-3    | ORDERS PLACED SECTION                                 |
| 77598-1    | EXTERNALLY DEFINED CDE SECTION                        |
| 77599-9    | ADDITIONAL DOCUMENTATION SECTION                      |
| 34109-9    | NOTES SECTION                                         |
| 86744-0    | CARE TEAM SECTION                                     |
| DCM 121181 | DICOM OBJECT CATALOG SECTION                          |
| 11488-4    | CONSULT NOTE SECTION                                  |
| 11504-8    | SURGICAL OPERATION NOTE SECTION                       |
| 11506-3    | PROGRESS NOTE SECTION                                 |
| 18751-8    | ENDOSCOPY STUDY SECTION                               |
| 18842-5    | DISCHARGE SUMMARY SECTION                             |
| 28568-4    | PHYSICIAN EMERGENCY DEPARTMENT NOTE SECTION           |
| 28570-0    | PROCEDURE NOTE SECTION                                |
| 34099-2    | CARDIOLOGY CONSULT NOTE SECTION                       |
| 34103-2    | PULMONARY CONSULT NOTE SECTION                        |
| 34109-9    | NOTES SECTION                                         |
| 34111-5    | EMERGENCY DEPARTMENT NOTE SECTION                     |
| 34117-2    | HISTORY AND PHYSICAL NOTE SECTION                     |
| 34746-8    | NURSE NOTE SECTION                                    |
| 34748-4    | TELEPHONE ENCOUNTER NOTE SECTION                      |
| 34753-4    | CARDIOLOGY OUTPATIENT NOTE SECTION                    |
| 34761-7    | GASTROENTEROLOGY CONSULT NOTE SECTION                 |
| 34779-9    | HEMATOLOGY+MEDICAL ONCOLOGY CONSULT NOTE SECTION      |
| 34781-5    | INFECTIOUS DISEASE CONSULT NOTE SECTION               |
| 34795-5    | NEPHROLOGY CONSULT NOTE SECTION                       |
| 34797-1    | NEUROLOGY CONSULT NOTE SECTION                        |
| 34798-9    | NEUROLOGICAL SURGERY CONSULT NOTE SECTION             |
| 34801-1    | NUTRITION AND DIETETICS NOTE SECTION                  |
| 34805-2    | ONCOLOGY CONSULT NOTE SECTION                         |
| 34807-8    | OPHTHALMOLOGY CONSULT NOTE SECTION                    |
| 34814-4    | ORTHOPAEDIC SURGERY CONSULT NOTE SECTION              |
| 34819-3    | PATHOLOGY NOTE SECTION                                |
| 34826-8    | PLASTIC SURGERY CONSULT NOTE SECTION                  |
| 34831-8    | RADIATION ONCOLOGY CONSULT NOTE SECTION               |
| 34847-4    | SURGERY CONSULT NOTE SECTION                          |
| 34850-8    | CARDIOTHORACIC SURGERY OUTPATIENT NOTE SECTION        |
| 34851-6    | UROLOGY CONSULT NOTE SECTION                          |
| 34853-2    | VASCULAR SURGERY CONSULT NOTE SECTION                 |
| 34854-0    | VASCULAR SURGERY OUTPATIENT NOTE SECTION              |
| 46239-0    | CHIEF COMPLAINT+REASON FOR VISIT NARRATIVE SECTION    |
| 64057-3    | SURGERY HOSPITAL PROGRESS NOTE SECTION                |
| 64059-9    | CRITICAL CARE MEDICINE HOSPITAL PROGRESS NOTE SECTION |
| 68582-6    | ORTHOPAEDIC SURGERY PROGRESS NOTE SECTION             |
| 68595-8    | PLASTIC SURGERY PROGRESS NOTE SECTION                 |
| 68693-1    | NEUROLOGICAL SURGERY PROGRESS NOTE SECTION            |
| 68834-1    | PRIMARY CARE NOTE SECTION                             |
| 75220-4    | UROLOGY PROGRESS NOTE SECTION                         |
| 75221-2    | NEUROLOGY PROGRESS NOTE SECTION                       |
| 75493-7    | SURGERY OUTPATIENT NOTE SECTION                       |
| 78254-0    | CLINICAL GENETICS CONSULT NOTE SECTION                |
| 78323-3    | GASTROENTEROLOGY PROGRESS NOTE SECTION                |
| 78325-8    | INFECTIOUS DISEASE PROGRESS NOTE SECTION              |
| 78480-1    | NEPHROLOGY PROGRESS NOTE SECTION                      |
| 78482-7    | ONCOLOGY PROGRESS NOTE SECTION                        |
| 78568-3    | PALLIATIVE CARE CONSULT NOTE SECTION                  |
| 78710-1    | CARDIOLOGY PROGRESS NOTE SECTION                      |
| 78732-5    | TRAUMA CONSULT NOTE SECTION                           |
| 80819-6    | PULMONARY PROGRESS NOTE SECTION                       |
| 83725-2    | PHYSICAL MEDICINE AND REHAB OUTPATIENT NOTE SECTION   |
| 83798-9    | PHYSICIAN OUTPATIENT NOTE SECTION                     |
| 83915-9    | PULMONARY OUTPATIENT NOTE SECTION                     |
| 83948-0    | RHEUMATOLOGY OUTPATIENT NOTE SECTION                  |
| 84073-6    | COLON AND RECTAL SURGERY NOTE SECTION                 |
| 84099-1    | ENDOCRINOLOGY OUTPATIENT NOTE SECTION                 |
| 84107-2    | GASTROENTEROLOGY OUTPATIENT NOTE SECTION              |
| 84165-0    | PATIENT'S HOME PLAN OF CARE NOTE SECTION              |
| 84169-2    | INFECTIOUS DISEASE OUTPATIENT NOTE SECTION            |
| 84222-9    | NEPHROLOGY OUTPATIENT NOTE SECTION                    |
| 84229-4    | NEUROLOGY OUTPATIENT NOTE SECTION                     |
| 84237-7    | NEUROLOGICAL SURGERY OUTPATIENT NOTE SECTION          |
| 85238-4    | INTERNAL MEDICINE CONSULT NOTE SECTION                |
| 89233-1    | OBSTETRICS PROGRESS NOTE SECTION                      |
| 89461-8    | GYNECOLOGY OUTPATIENT NOTE SECTION                    |
| 90711-3    | SLEEP MEDICINE OUTPATIENT NOTE SECTION                |
| 97578-9    | INTERNAL MEDICINE PROGRESS NOTE SECTION               |

Mapping of LOINC codes to headings for the NLP API.

### Headings when no normalization was possible

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 the case where the client cannot do normalization from template OID or LOINC, it will give the section the heading that is specified in the `<title>` tags in the XML-encoded HTML portion of the document. The NLP API 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 the NLP API 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 the NLP API 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.

> **Warning**
>
> When exploring the structured output returned by the NLP API, we recommend that you get a list of all section names returned by the NLP API 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 NLP API Database please refer to the [NLP API Output Database documentation](/nlp/database/overview), *Entity-level Tables* section.

## References

* [C-CDA Online: A navigation website for C-CDA 2.1](http://www.hl7.org/ccdasearch/)
* [Companion Guide to Consolidated Clinical Document Architecture (C-CDA) R2](http://www.hl7.org/ccdasearch/pdfs/Companion_Guide.pdf)