In short.
OpenMed Parsing C-CDA Documents is an assistant skill for developers building clinical document pipelines, but protecting extracted narrative does not establish that the original chart export is de-identified. It provides Python examples for finding sections, extracting their text and calling OpenMed, plus guidance for an XML-aware redaction adapter. The material is useful implementation guidance; package compatibility, identifier-detection accuracy, security behavior and regulatory suitability remain unverified.
Researched and written by an AI model and checked by a second AI model. How it works
The selected scope contains skills/parsing-ccda-documents/SKILL.md, accompanied by the repository-root LICENSE and NOTICE, all at commit e8325586e1ce2da73e9e865f34bd0345bb64301a. Coverage excludes the wider OpenMed implementation, dependencies, models, datasets and linked external documentation. Nothing was executed. Installation, API compatibility, parsing, XML safeguards, redaction effectiveness, performance and regulatory suitability remain unverified.
The overview
Identity
This resource is the parsing-ccda-documents skill in maziyarpanahi/openmed, declared as version 1.0 and categorized by its author as data ingestion. It covers C-CDA R2.1 clinical exports such as Continuity of Care Documents, discharge summaries, histories and physicals, and consultation notes.
The selected resource is a SKILL.md instruction file with embedded examples, rather than the OpenMed library implementation. Original source: [https://github.com/maziyarpanahi/openmed/tree/master/skills/parsing-ccda-documents].
Assessment
Its strongest contribution is explaining the boundary between human-readable section narrative, machine-readable coded entries and identifying document headers. That distinction helps developers decide what to extract for language processing and what needs separate protection.
It is useful as implementation guidance for an OpenMed integration. It does not establish a complete ingestion service, validated de-identification system or production-ready clinical workflow. No code was executed, and runtime behavior is not assessed.
Users
The intended users are developers receiving XML chart exports from electronic health records, patient portals or health information exchanges. It is particularly relevant when clinical natural language processing needs free text grouped by problems, medications, allergies, results or care plans.
Beginners get a compact explanation of document structure. Experienced developers get namespace details, section identifiers, adapter names and warnings about narrative-to-entry links. Using the examples requires Python and XML familiarity; this is not a patient-facing tool.
Capabilities
The examples locate sections, read their codes, flatten narrative into text and pass it through OpenMed de-identification and analysis. The guidance also explains template identifiers and links between narrative phrases and coded entries.
A separate adapter is documented for recognizing CDA documents and redacting XML while preserving markup, with options for a text-redaction callback and date shifting. Although the skill description mentions coded-entry extraction, its supplied Python example does not implement a structured coded-entry extractor or full C-CDA validator.
Using it
Requirements
The examples require Python, its xml.etree.ElementTree module, an installed OpenMed package exposing the documented APIs, and a CDA XML input file. Namespace-aware processing uses urn:hl7-org:v3. Section mapping relies on LOINC codes, which identify clinical document sections.
Supported Python and OpenMed versions, required model downloads, memory, hardware, network access and assistant-host compatibility are unspecified. External terminology use has separate rights requirements; the skill states that OpenMed does not bundle SNOMED CT or CPT.
Mechanism
The quick start parses an XML file, finds section elements in the CDA namespace, reads each section code and concatenates text beneath its narrative element. It skips missing or empty narratives, then calls openmed.deidentify followed by openmed.analyze_text. A small dictionary maps familiar section codes to names.
The separate redact_cda adapter is described as hashing patient IDs, applying CDA null markers to names, addresses and contact fields, shifting dates and processing narrative text nodes. Its implementation is outside the supplied material, so these remain documented behaviors rather than verified protections.
Setup
Start with an OpenMed environment whose APIs match the examples, then choose between extracting narrative for analysis and producing redacted XML. The file gives import statements and API calls but no package installation command, dependency lockfile or assistant-specific skill installation procedure.
The quick start uses ElementTree directly. Separately, the guide says the CDA adapter rejects DOCTYPE and ENTITY declarations. That claimed safeguard should not be assumed to cover the direct parsing example or a custom parser.
Example
In the supplied problems-section example, code 11450-4 maps to problems, and narrative about diabetes and hypertension becomes the text input. The example calls openmed.deidentify with method="replace" and policy="hipaa_safe_harbor", then passes the returned text to openmed.analyze_text with output_format="dict".
Attaching the section name to the result is left as a comment for the developer. No actual redacted output, entity predictions or measured results are supplied. The policy name alone does not establish compliance or complete removal of identifying information.
Assessment & evidence
Limitations
Concatenating narrative text removes table and list structure and can join adjacent fragments without adding separators. Downstream interpretation and span attribution may therefore require additional structure handling. The example also reads section codes without checking their codeSystem attribute.
Narrative and coded entries can disagree, and the example does not reconcile them or resolve their reference links. Recognizing a ClinicalDocument root is not full standards validation. Coverage of identifiers in extensions, coded entries or other document content is not established, and no accuracy or security results are supplied.
Reasoning
Keeping section identity alongside extracted text preserves useful context: a mention in a medication section can mean something different from the same phrase in a plan. Separating narrative analysis from XML redaction also makes the intended output clearer.
The practical inference is that this skill can help structure a developer's integration, while additional implementation and validation remain necessary. Its examples support that architectural approach; they do not establish that any deployed pipeline preserves clinical meaning or reliably removes identifying data.
Alternatives
When coded entries already contain the information needed, the skill recommends using them and reserving language processing for information present only in narrative. When the required output is redacted XML, its documented alternative to text extraction is openmed.interop.cda.redact_cda.
For conformance questions, the file links an ONC C-CDA validation service [https://site.healthit.gov/c-cda-validator]. That is a different task from de-identification. The linked service and competing parsers or de-identification products were not assessed, so no comparative quality claim is supported.
Evidence
The technical claims come from the skill's explanatory text and embedded examples at a fixed OpenMed revision. Original file: [https://raw.githubusercontent.com/maziyarpanahi/openmed/e8325586e1ce2da73e9e865f34bd0345bb64301a/skills/parsing-ccda-documents/SKILL.md].
The accompanying LICENSE and NOTICE establish the documented licensing context. No OpenMed implementation files, dependency manifests, clinical evaluation results or execution outputs are supplied. References to external standards and projects do not establish their contents or current behavior.
Access & freshness
Costs
The Apache-2.0 license grants rights without a license royalty, but this does not establish the total cost of using the workflow. Compute, hosting, model access, external terminology, integration and operational costs are unknown. The supplied material contains no pricing or resource-usage measurements.
Rights
The skill declares Apache-2.0, and the repository supplies that license. It permits use, modification and redistribution, including commercial use, subject to its conditions. Redistribution requires the license, applicable notices and attribution; changed files need prominent modification notices. The license provides no warranty or general trademark permission.
The root NOTICE records third-party assets and integration plans across OpenMed. It does not establish that those components are bundled with this single-file skill. Rights to clinical records, external terminology, models and other dependencies must be established separately.
Freshness
The skill declares version 1.0, which is not an established OpenMed package version. The source snapshot was captured on 17 November 2026 at commit e8325586e1ce2da73e9e865f34bd0345bb64301a. That capture date does not establish the file's last modification or release date.
Compatibility with current OpenMed releases and changes after this revision are unknown. The guide targets C-CDA R2.1; coverage of other versions is not established.
Actions
Before adoption, establish the OpenMed version and dependencies that provide the named APIs. Use synthetic documents to check section mapping, whitespace boundaries, tables, nested sections and narrative-to-entry links against the intended downstream output.
Evaluate XML rejection behavior and redaction coverage separately, including headers and identifiers outside narrative. Define acceptable identifier-detection performance and clinical meaning preservation before using real records. Confirm applicable data and terminology rights; these outcomes remain unverified.
