/healthcare-skills:cda-ccdafrom healthcare-skills
When the user wants to author, parse, validate, or transform Clinical Document Architecture (CDA) or Consolidated CDA (C-CDA) documents. Use when the user mentions "CDA," "C-CDA," "CCD," "Continuity of Care Document," "Discharge Summary," "Operative Note," "Progress Note," "Consultation Note," "History and Physical," "Care Plan," "Transfer Summary," "Referral Note," "Procedure Note," "templateId," "narrative block," "Schematron," "NIST CDA Validator," "ETSA," "C-CDA scorecard," "CDA-on-FHIR," or "FHIR-to-CDA." For non-document FHIR data, see fhir-integration. For HL7 v2 documents transported via MDM, see hl7-v2.
Ships in healthcare-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are an expert in HL7 Clinical Document Architecture (CDA Release 2) and Consolidated CDA (C-CDA) — the XML-based clinical document format mandated by ONC for US EHR certification and widely used for transitions of care. Your goal is to help engineers author, validate, and transform these documents correctly. Never invent templateIds, OIDs, or codes — verify against the published C-CDA Implementation Guide (HL7 C-CDA R2.1 + Companion Guide) when uncertain.
Check .agents/healthcare-context.md (fallback: .claude/healthcare-context.md) first. Relevant sections:
A CDA document is a single XML file with two halves:
<ClinicalDocument xmlns="urn:hl7-org:v3">
<!-- Header -->
<typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1" extension="2015-08-01"/> <!-- US Realm Header -->
<templateId root="2.16.840.1.113883.10.20.22.1.2" extension="2015-08-01"/> <!-- CCD -->
<id root="..."/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" displayName="Summarization of Episode Note"/>
<title>Continuity of Care Document</title>
<effectiveTime value="20260301120000-0500"/>
<confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25"/>
<languageCode code="en-US"/>
<recordTarget>...</recordTarget>
<author>...</author>
<custodian>...</custodian>
<!-- Body -->
<component>
<structuredBody>
<component>
<section>...</section>
</component>
<!-- more sections -->
</structuredBody>
</component>
</ClinicalDocument>
The header carries document metadata and participants:
| Element | Role |
|---|---|
recordTarget | The patient |
author | The person/system who authored the document |
dataEnterer | Transcriptionist or scribe |
informant | Source of information (clinician, patient, family) |
custodian | Organization responsible for the document |
legalAuthenticator / authenticator | Signing/co-signing clinicians |
participant | Other participants (caregivers, emergency contacts) |
documentationOf | Service event(s) the document is about |
componentOf | Encompassing encounter |
Each section has:
<text>) — human-readable HTML-like markup. This is the legal record.<entry>) — machine-readable codified data.Both must convey the same clinical meaning. If they disagree, narrative wins legally, but downstream systems will trust entries.
Every CDA document, section, and entry is identified by one or more <templateId> elements (OID + optional extension date). TemplateIds chain — for example, a Medication Activity entry will assert both the generic Substance Administration template and the C-CDA-specific medication activity template.
When validating, the document's templateIds tell the validator which Schematron / FHIR profile to apply. Missing templateIds is the most common cause of failed validation.
| Document Type | LOINC Code | Use |
|---|---|---|
| Continuity of Care Document (CCD) | 34133-9 | Patient summary for handoffs |
| Discharge Summary | 18842-5 | End of inpatient stay |
| Operative Note | 11504-8 | Surgical procedure narrative |
| Progress Note | 11506-3 | Inpatient daily note |
| Consultation Note | 11488-4 | Specialist consult |
| History and Physical | 34117-2 | H&P |
| Referral Note | 57133-1 | Specialist referral |
| Care Plan | 52521-2 | Care plan document |
| Transfer Summary | 18761-7 | Transfer to another facility |
| Procedure Note | 28570-0 | Non-surgical procedure |
| Diagnostic Imaging Report | 18748-4 | Radiology report (often DI document) |
| Unstructured Document | 34133-9 (various) | Scanned / PDF wrapped |
CCD is the workhorse for HIE and TEFCA exchange — when in doubt, default to CCD.
| Section | LOINC | Status in CCD |
|---|---|---|
| Allergies and Intolerances | 48765-2 | Required |
| Medications | 10160-0 | Required |
| Problem List | 11450-4 | Required |
| Procedures | 47519-4 | Required (R2.1 v3 v4) |
| Results | 30954-2 | Required |
| Vital Signs | 8716-3 | Required |
| Encounters | 46240-8 | Recommended |
| Plan of Treatment | 18776-5 | Recommended |
| Immunizations | 11369-6 | Recommended |
| Social History | 29762-2 | Recommended |
| Functional Status | 47420-5 | Recommended |
| Mental Status | 10190-7 | Recommended |
| Health Concerns | 75310-3 | Recommended |
| Goals | 61146-7 | Recommended |
| Assessment | 51848-0 | Recommended |
| Assessment and Plan | 51847-2 | Alternative to separate Assessment + Plan |
| Reason for Referral | 42349-1 | Required in Referral Note |
| Hospital Course | 8648-8 | Required in Discharge Summary |
Each section has an "Entries Required" and an "Entries Optional" variant — pick based on whether you have structured data.
| Domain | Entry Template (R2.1) |
|---|---|
| Allergy | Allergy - Intolerance Observation, Allergy Concern Act |
| Medication | Medication Activity, Medication Information |
| Problem | Problem Observation, Problem Concern Act |
| Procedure | Procedure Activity Procedure / Observation / Act |
| Result | Result Organizer, Result Observation |
| Vital Sign | Vital Signs Organizer, Vital Sign Observation |
| Encounter | Encounter Activity |
| Immunization | Immunization Activity, Immunization Refusal Reason |
| Plan of Treatment | Planned Observation / Procedure / Medication / Act / Encounter |
| Social History | Social History Observation, Smoking Status — Meaningful Use, Birth Sex |
| Functional Status | Functional Status Observation, Functional Status Result Observation |
| Health Concern | Health Concern Act |
| Goal | Goal Observation |
Each entry has required coded elements (typically with SNOMED CT, LOINC, RxNorm, ICD-10-CM, or CVX bindings) — see the C-CDA value set catalog for the authoritative bindings.
<text> mirrors the entries.<text><reference value="#allergy-1"/></text> and <entry><...><reference value="#allergy-1"/>...</></entry>.<table>, <thead>, <tbody>, <tr>, <td>).Receivers MUST render the narrative; senders MUST ensure narrative and entries match.
Several layers, each catching different errors:
| Layer | What it catches |
|---|---|
| XML well-formedness | Parser-level errors |
| CDA XSD schema | Element structure |
| C-CDA Schematron (HL7-published) | Template conformance (cardinality, value set bindings) |
| NIST CDA Validator / Lantana ETSA | C-CDA conformance + Meaningful Use / ONC rules |
| Vendor-specific Schematron | EHR-specific requirements (Epic, Cerner, etc.) |
| C-CDA Scorecard (ONC) | Best-practice scoring — usability beyond conformance |
A document can pass schema and Schematron yet still be clinically poor — scorecard helps catch under-coded narratives, missing reconciled lists, and brittle templates.
| Symptom | Root cause |
|---|---|
| "templateId for section not asserted" | Missing or misspelled OID/extension |
| "code SHALL be selected from ValueSet X" | Wrong code system or out-of-band code |
| Narrative and entry diverge | Generator built them in separate passes without cross-references |
Missing <reference> from entry to narrative | Breaks rendering pipelines |
Wrong effectiveTime precision | Section requires datetime, entry only has date (or vice versa) |
<originalText><reference value="#x"/></originalText> pointing to nonexistent narrative ID | Validator passes only if reference resolves |
<unsupportedTrait>nullFlavor="UNK"</...> instead of allowed nullFlavor per cardinality | nullFlavor allowed only where IG permits |
Two HL7-published bridges:
For US Core ↔ C-CDA mappings, ONC's HL7 C-CDA ↔ US Core Mappings (companion documents) is the canonical reference. Common landings:
| FHIR resource | C-CDA target |
|---|---|
| Patient | recordTarget |
| Practitioner / PractitionerRole | author / authenticator / participant |
| Encounter | componentOf / encounters section |
| AllergyIntolerance | Allergy - Intolerance Observation |
| MedicationStatement / MedicationRequest | Medication Activity |
| Condition (problem-list) | Problem Observation in Problem Concern Act |
| Procedure | Procedure Activity Procedure |
| Observation (lab) | Result Observation in Result Organizer |
| Observation (vital signs) | Vital Sign Observation in Vital Signs Organizer |
| Immunization | Immunization Activity |
| CarePlan / Goal | Plan of Treatment / Goal Observation |
Round-tripping is lossy — design integrations with the canonical format in mind.
USCDI v3 and v4 enumerate data classes (e.g., Patient Summary, Medications, Problems, Procedures, Health Concerns, Goals, SDOH, Care Team Members, Encounter Information, Clinical Notes, Labs, Vital Signs, Immunizations). Each class lands in specific C-CDA sections; CCD is the document type the ONC certification criteria require an EHR to be able to produce on demand.
When auditing a C-CDA for USCDI compliance, walk class-by-class and confirm each is represented either as a structured entry or, at minimum, in narrative.
<ClinicalDocument xmlns="urn:hl7-org:v3">
<typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1" extension="2015-08-01"/>
<templateId root="2.16.840.1.113883.10.20.22.1.2" extension="2015-08-01"/>
<id root="2.16.840.1.113883.19.5.99999.1" extension="DOC-00001"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" displayName="Summarization of Episode Note"/>
<title>Continuity of Care Document</title>
<effectiveTime value="20260301120000-0500"/>
<confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25"/>
<languageCode code="en-US"/>
<recordTarget>
<patientRole>
<id root="2.16.840.1.113883.19.5.99999.2" extension="MRN-123456"/>
<patient>
<name><given>Jane</given><family>Doe</family></name>
<administrativeGenderCode code="F" codeSystem="2.16.840.1.113883.5.1"/>
<birthTime value="19850203"/>
</patient>
</patientRole>
</recordTarget>
<!-- author, custodian, body omitted for brevity -->
</ClinicalDocument>
OIDs shown are illustrative — replace with your organization's registered OIDs and never reuse another organization's root OID.
componentOf for documents tied to an encounter.DocumentReference carries C-CDAs by reference or as base64 attachments; CDA-on-FHIRMDM^T02 and MDM^T08 transport C-CDAs in OBX-5 (typically base64 inside ED)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub aks-builds/healthcareskills --plugin healthcare-skills41 skills in this plugin
/21-cfr-part-11When the user is building, validating, or auditing a computer system that creates, modifies, maintains, archives, retrieves, or transmits electronic records or applies electronic signatures in an FDA-regulated (GxP) context. Also use when the user mentions "21 CFR Part 11," "Part 11," "electronic records electronic signatures," "ERES," "GxP," "GLP," "GCP," "GMP," "GAMP 5," "CSV," "Computer Software Assurance," "CSA," "audit trail," "electronic signature manifestation," "closed system," "open system," "predicate rule," "EU Annex 11," or "validated system." For healthcare provider EHRs used for treatment (not GxP), see hipaa-compliance and audit-logging. For HITRUST or HIPAA generally, see hipaa-compliance./accessibility-healthcareWhen the user wants to design, build, audit, or remediate accessibility for healthcare apps and patient-facing systems. Also use when the user mentions "WCAG," "WCAG 2.2," "WCAG 3.0," "Silver," "Section 508," "ADA Title II," "ADA Title III," "Section 1557 accessibility," "EN 301 549," "VPAT," "ACR," "screen reader," "JAWS," "NVDA," "VoiceOver," "TalkBack," "ARIA," "axe-core," "Lighthouse accessibility," "color contrast," "keyboard navigation," "accessible forms," "accessible authentication," "accessible telehealth," "captions," "CART," "ASL routing," "audio description," "low vision," "high contrast mode," "accessible PDF," "older adult UX," or "disability access in healthcare." For plain language and reading level, see health-content-writing. For outreach orchestration, see patient-engagement./audit-loggingWhen the user is designing, implementing, or reviewing audit logging for PHI access — including the HIPAA §164.312(b) audit controls requirement, accounting of disclosures, ATNA/DICOM audit, FHIR AuditEvent, SIEM ingestion, retention, tamper-evidence, and unusual-activity detection. Also use when the user mentions "audit logging," "audit trail," "audit controls," "164.312(b)," "164.308(a)(1)(ii)(D)," "accounting of disclosures," "164.528," "ATNA," "IHE Audit Trail and Node Authentication," "DICOM audit," "RFC 3881," "FHIR AuditEvent," "SIEM," "CEF," "LEEF," "break the glass logging," "tamper-evident," "log retention healthcare," "VIP record access," or "cross-patient lookup." For the regulatory basis, see hipaa-compliance. For the cybersecurity program, see healthcare-cybersecurity. For PHI controls, see phi-handling./billing-claimsWhen the user wants to design or build software that handles US healthcare claims — submission, adjudication, remittance, denials, or appeals. Use when the user mentions "claims," "EDI," "X12," "837," "837P," "837I," "837D," "835," "ERA," "270," "271," "276," "277," "278," "834," "820," "999," "TA1," "5010," "NCPDP," "D.0," "SCRIPT," "clearinghouse," "Change Healthcare," "Optum," "Availity," "Waystar," "Trizetto," "claim scrubber," "denials," "CARC," "RARC," "COB," "MSP," "No Surprises Act," "NSA," "price transparency," "CAQH CORE," "ERA posting," "EOB," "CARIN BB," or "Da Vinci PDex." For coding the claim, see medical-coding. For prior auth (278/Da Vinci PAS), see prior-authorization. For VBC contract economics, see value-based-care./clinical-ai-mlWhen the user wants to build, evaluate, deploy, or monitor machine learning models for clinical or operational healthcare use cases. Also use when the user mentions "clinical ML," "clinical AI," "readmission prediction," "sepsis model," "deterioration model," "no-show model," "denial model," "length-of-stay prediction," "fall risk," "suicide risk model," "ECG model," "imaging AI," "EHR feature engineering," "OMOP," "label leakage," "AUROC vs. AUPRC," "model calibration," "fairness audit," "subgroup AUC," "SHAP," "model card," "drift monitoring," "silent deployment," "shadow mode," "CDS Hooks," "RiskAssessment FHIR," or "clinical model governance." For FDA SaMD pathway see fda-samd. For health chatbots / LLMs see health-chatbots. For underlying EHR data access see ehr-integration and fhir-integration./clinical-decision-supportWhen the user wants to design, build, deploy, or evaluate a clinical decision support (CDS) tool. Also use when the user mentions "CDS," "CDS Hooks," "patient-view hook," "order-sign hook," "order-select hook," "encounter-start," "appointment-book," "CDS card," "alert fatigue," "interruptive alert," "5 rights of CDS," "order set," "clinical pathway," "CQL," "Clinical Quality Language," "BPA," "best practice advisory," "HHS CDS exemption," "Cures Act CDS criteria," or "FDA SaMD CDS." For SMART app OAuth, see smart-on-fhir. For order entry plumbing, see cpoe-orders. For SaMD regulatory pathway, see fda-samd.