Find CCD Document-level Metadata
Find CCD Document-level Metadata
Synopsis
This query retrieves these document-level metadata from CDA headers:
- ClinicalDocument
- PatientRole (record target)
- ServiceEvent
- EncompassingEncounter
Processing Requirements
For this query, Continuity of Care Documents were processed. See processing requirements Processing Requirements.
Background
C-CDA document standard specifies header requirements that provide context for all sections and CDA entries within the document. This includes information about when the document was created, the type of the type of document, the service date range that the document covers, or date of specific encounter (if the C-CDA document documents a specific encounter). In C-CDA header also identifies all participants - the most important of which is the recordTarget namely the patient. This information is stored in the various header elements as unique Object Identifiers (OID root and extension), and Effective Times (datetime values).
This query shows how to retrieve metadata for these header components:
- ClinicalDocument
- PatientRole
- ServiceEvent
- EncompassingEncounter
SQL query
PostgreSQL
References
- See Python Client SDK Documentation for more information about CCD file support.

