Find Entities Extracted from Embedded Reports
Synopsis
CCDs may contain various types of whole reports embedded within comments areas or in narrative sections. These may be reports for various procedures and diagnostic tests. Hence it is not uncommon to find radiological, pathology and surgical reports included in CCDs. This query shows how to retrieve SNOMED disorder, finding or morphologic abnormalities from these embedded reports.
Processing Requirements
For this query, Continuity of Care Documents were processed. See processing requirements Processing Requirements.
Background
C-CDA standards provides document-level templates for various types of Clinical Notes. These document templates define the structure of a conforming CDA documents. They specify the required and optional section-level templates for each document type. For example, CCD (Continuity of Care Documents), must have these sections: History of Present Illness, Problem, and Allergies & Intolerances sections and may optionally include many other sections such as Assessment, Chief Complaint, Family History and so on. Note that within the sections, the authoring software may include whole reports for various procedures performed such as: imaging studies, and surgical procedures. These reports have within them inherent structure containing subsections such as Findings, Impressions, and Recommendations, for example. These reports are of particular relevance for NLP-based data extraction because they are typically rich sources of narrative text.
This query will make use of how the NLP API handles section headings when it processess C-CDA documents. An indepth discussion is documented here. Here are the key points:
- NLP API client identifies the C-CDA defined sections using the XML coded information (Sections OID).
- It normalizes those the section names.
- NLP API will append
SECTIONto all normalized C-CDA section names; for example,ProblembecomesPROBLEM SECTION. - NLP API appends
SUBSECTIONto the names of native C-CDA sub-sections; for example a sub-section ofRESULTSbecomes... SUBSECTION. - But, the NLP API does not rename the section headings inside an embedded report — a radiology report embedded in a
RESULTSsection keeps its own headings, such asFINDINGSorIMPRESSION. - NLP API extracts and retains section hierarchy information. This means that if a section has sub-sections, the sub-sections are extracted and retained in the order in which they are nested.
Thus, any text whose immediately enclosing section name ends in neither SECTION nor SUBSECTION must have come from an embedded report.
This query shows how to retrieve SNOMED disorder, finding or morphologic abnormalities from these sections of embedded reports.
SQL query
PostgreSQL
References
- See Python Client SDK Documentation for more information about CCD file support.

