You are in AUTONOMOUS MODE. Do NOT ask questions. Review the entire codebase's clinical data layer systematically.
INPUT
$ARGUMENTS (optional). If no arguments provided, review all data models, schemas, and APIs in the current working directory for clinical data standards compliance. If a specific standard is named (e.g., "FHIR only", "terminology"), focus on that area.
PHASE 0: CLINICAL SYSTEM DETECTION
Auto-detect the project stack and clinical context:
- Detect tech stack (package.json, requirements.txt, pom.xml, go.mod, *.csproj, etc.).
- Identify clinical libraries and dependencies:
- FHIR: hapi-fhir, fhir.js, fhirclient, pyFHIR, Firely SDK, fhir-net-api
- HL7v2: node-hl7-complete, python-hl7, HAPI, nHAPI
- DICOM: dcmjs, pydicom, fo-dicom, cornerstone.js
- Terminology: SNOMED packages, LOINC libraries, ICD-10 validators
- CDA: CDA generators/parsers, CCDA templates
- Identify database and ORM (Prisma, TypeORM, SQLAlchemy, Hibernate, EF Core).
- Locate data model definitions:
- Schema files (*.prisma, *.graphql, *.proto)
- Model/entity classes
- Migration files
- OpenAPI/Swagger specs
- TypeScript/Python types/interfaces
PHASE 1: FHIR CONFORMANCE REVIEW
Evaluate data models against FHIR R4 resource definitions.
1.1 Resource Modeling
Map project data models to FHIR resources:
- Patient: demographics, identifiers, contact, communication preferences
- Practitioner / PractitionerRole: provider info, specialties, qualifications
- Organization: facilities, departments, healthcare organizations
- Encounter: visits, admissions, appointments
- Condition: diagnoses, problems, health concerns
- Observation: vitals, lab results, social history, assessments
- MedicationRequest / MedicationStatement: prescriptions, current meds
- AllergyIntolerance: allergies, adverse reactions
- Procedure: surgical, diagnostic, therapeutic procedures
- DiagnosticReport: lab reports, imaging reports, pathology
- DocumentReference: clinical documents, notes, external records
- CarePlan: treatment plans, goals, activities
- Immunization: vaccination records
For each mapped resource, check:
- Required FHIR elements present (status, subject, code, etc.).
- Correct cardinality (0..1, 0.., 1..1, 1..).
- Proper data types (CodeableConcept vs string, Reference vs ID, Period vs DateTime).
- Resource references use proper Reference type with resource type + ID.
- Extensions are properly defined (not ad-hoc fields breaking FHIR structure).
1.2 Search Parameters
- Verify FHIR search parameter support on API endpoints.
- Check standard search params: _id, _lastUpdated, _tag, _profile.
- Check resource-specific params: Patient?name, Observation?code, etc.
- Verify search modifiers: :exact, :contains, :missing.
- Check chained search support: Observation?subject:Patient.name.
- Verify _include and _revinclude support.
1.3 Capability Statement
- Check for /metadata endpoint returning CapabilityStatement resource.
- Verify it accurately reflects implemented resources and operations.
- Check for declared profiles and supported search parameters.
1.4 Bundle Support
- Verify transaction Bundle support (POST to root with type: transaction).
- Check for batch Bundle support.
- Verify searchset Bundle response format for search endpoints.
- Check Bundle entry fullUrl and resource consistency.
PHASE 2: TERMINOLOGY AND CODING STANDARDS
2.1 ICD-10 (Diagnoses)
- Search for ICD-10-CM code handling in data models and business logic.
- Verify code format validation (letter + 2 digits + optional decimal + up to 4 digits).
- Check for code versioning (ICD-10 updates annually in October).
- Verify code descriptions are stored or lookable.
- Check for ICD-10-PCS (procedure codes) if surgical/procedural data exists.
- Flag hardcoded ICD-10 codes without version tracking.
2.2 CPT / HCPCS (Procedures and Services)
- Search for CPT code handling in billing, orders, or procedure models.
- Verify CPT code validation (5 digits or 4 digits + letter).
- Check for HCPCS Level II codes (letter + 4 digits) for supplies/equipment.
- Verify modifier support (CPT modifiers: -25, -59, -76, etc.).
- Check for annual code updates handling.
2.3 SNOMED CT (Clinical Terms)
- Search for SNOMED concept IDs in data models.
- Verify SNOMED codes use proper SCTID format (6-18 digit numeric).
- Check for concept hierarchy navigation capability.
- Verify SNOMED-to-ICD-10 mapping if cross-coding is needed.
- Check for SNOMED version/edition tracking.
2.4 LOINC (Lab and Observations)
- Search for LOINC codes in observation/lab models.
- Verify LOINC code format validation (numeric with optional dash and check digit).
- Check for proper units of measure (UCUM standard) paired with LOINC codes.
- Verify lab result value sets align with LOINC answer lists.
2.5 RxNorm (Medications)
- Search for medication coding in prescription/medication models.
- Check for RxNorm concept unique identifiers (RxCUI).
- Verify NDC (National Drug Code) handling if pharmacy integration exists.
- Check for drug-drug interaction checking capability.
2.6 Terminology Service
- Check for terminology server integration ($lookup, $validate-code, $expand).
- Verify ValueSet binding on coded fields.
- Check for CodeSystem resources or external terminology service configuration.
- Flag coded fields that accept free text without code validation.
PHASE 3: INTEROPERABILITY ASSESSMENT
3.1 CDA / CCDA Documents
- Search for CDA document generation or parsing.
- Check for CCDA template conformance (CCD, Discharge Summary, Progress Note, etc.).
- Verify required sections: allergies, medications, problems, procedures, results.
- Check for structured vs narrative-only sections.
- Verify XML schema validation on generated documents.
3.2 Bulk Data Export
- Check for FHIR Bulk Data Access ($export) implementation.
- Verify NDJSON output format.
- Check for group-level and system-level export support.
- Verify async export pattern (kick-off, status polling, file download).
3.3 ADT Messaging
- Search for HL7v2 ADT (Admit/Discharge/Transfer) message handling.
- Check for A01 (admit), A02 (transfer), A03 (discharge), A04 (register), A08 (update) message type support.
- Verify PID, PV1, NK1 segment parsing/generation.
3.4 ORU / ORM Messaging
- Search for HL7v2 ORU (results) and ORM (orders) message handling.
- Check for OBR, OBX segment handling in results.
- Verify order/result linking via placer/filler order numbers.
3.5 Direct Messaging
- Check for Direct protocol support (secure email for clinical data).
- Verify S/MIME encryption compliance.
PHASE 4: CLINICAL WORKFLOW VALIDATION
4.1 Order Management
- Check order lifecycle: draft -> active -> completed/cancelled.
- Verify order validation (appropriate order for patient context).
- Check for duplicate order detection.
- Verify order modification and cancellation workflows.
- Check for clinical decision support at order entry.
4.2 Results Management
- Verify result status workflow: preliminary -> final -> corrected -> amended.
- Check for abnormal result flagging (reference ranges, critical values).
- Verify result acknowledgment tracking.
- Check for result routing based on ordering provider.
4.3 Medication Management
- Check prescription lifecycle: draft -> active -> stopped/completed.
- Verify drug allergy checking against patient allergies.
- Check for formulary validation.
- Verify medication reconciliation support.
- Check for e-prescribing (NCPDP SCRIPT) readiness.
4.4 Documentation
- Check for clinical note types (progress notes, H&P, discharge summary).
- Verify note signing/cosigning workflow.
- Check for addendum support (append, not edit).
- Verify template support for structured documentation.
4.5 Data Quality
- Check for required field enforcement on critical clinical data.
- Verify referential integrity between related clinical records.
- Check for data validation rules (date ranges, numeric ranges, code validation).
- Verify duplicate detection mechanisms (patient matching, record deduplication).
============================================================
SELF-HEALING VALIDATION (max 2 iterations)
After producing output, validate data quality and completeness:
- Verify all output sections have substantive content (not just headers).
- Verify every finding references a specific file, code location, or data point.
- Verify recommendations are actionable and evidence-based.
- If the analysis consumed insufficient data (empty directories, missing configs),
note data gaps and attempt alternative discovery methods.
IF VALIDATION FAILS:
- Identify which sections are incomplete or lack evidence
- Re-analyze the deficient areas with expanded search patterns
- Repeat up to 2 iterations
IF STILL INCOMPLETE after 2 iterations:
- Flag specific gaps in the output
- Note what data would be needed to complete the analysis
OUTPUT FORMAT
## Clinical Data Model Review
**Project:** [name]
**Stack:** [detected technologies]
**Clinical Domain:** [EHR/lab/pharmacy/imaging/billing/etc.]
**Date:** [date]
### Standards Conformance Summary
| Standard | Coverage | Conformance | Issues |
|---|---|---|---|
| FHIR R4 | [N resources mapped] | [FULL/PARTIAL/NONE] | N |
| ICD-10-CM/PCS | [usage found?] | [VALID/PARTIAL/NONE] | N |
| CPT/HCPCS | [usage found?] | [VALID/PARTIAL/NONE] | N |
| SNOMED CT | [usage found?] | [VALID/PARTIAL/NONE] | N |
| LOINC | [usage found?] | [VALID/PARTIAL/NONE] | N |
| RxNorm | [usage found?] | [VALID/PARTIAL/NONE] | N |
| CDA/CCDA | [support found?] | [CONFORMANT/PARTIAL/NONE] | N |
| HL7v2 | [usage found?] | [VALID/PARTIAL/NONE] | N |
### FHIR Resource Mapping
| Project Model | FHIR Resource | Required Elements | Missing Elements | Extensions |
|---|---|---|---|---|
| [model name] | Patient | [present] | [missing] | [non-standard fields] |
### Data Model Findings
| # | Severity | File | Model/Field | Standard | Issue | Fix |
|---|----------|------|-------------|----------|-------|-----|
| 1 | High | path/to/model.ts | Patient.identifier | FHIR R4 | Missing system URI on identifier | Add system field per FHIR Identifier datatype |
### Terminology Gaps
| Coded Field | Current Implementation | Required Standard | Gap |
|---|---|---|---|
| [diagnosis_code] | Free text string | ICD-10-CM CodeableConcept | No code validation, no system URI |
### Interoperability Readiness
- FHIR API: [Ready/Partial/Not implemented]
- Bulk Export: [Ready/Partial/Not implemented]
- CDA/CCDA: [Ready/Partial/Not implemented]
- HL7v2: [Ready/Partial/Not implemented]
- Patient matching: [algorithm used or none]
### Clinical Workflow Assessment
| Workflow | Status | Key Gaps |
|---|---|---|
| Order management | [Complete/Partial/Missing] | [gaps] |
| Results delivery | [Complete/Partial/Missing] | [gaps] |
| Medication mgmt | [Complete/Partial/Missing] | [gaps] |
| Documentation | [Complete/Partial/Missing] | [gaps] |
RULES
- Do NOT modify any code -- this is a review skill, not a build skill.
- Do NOT assume FHIR compliance from library presence alone -- verify actual resource structure.
- Do NOT accept free-text fields as valid coded data -- flag missing terminology binding.
- Do NOT skip checking cardinality and data types against FHIR spec.
- Do NOT ignore custom extensions -- evaluate if standard FHIR elements would suffice.
- Do NOT treat terminology code presence as validation -- verify format and system URI.
- Do NOT overlook data quality rules -- missing validation is a finding.
- Do NOT install external tools or FHIR validators -- analyze schemas and code directly.
NEXT STEPS
- "Run
/healthcare-compliance to audit regulatory compliance of the clinical data layer."
- "Run
/compliance-ops to evaluate broader organizational compliance operations."
- "Run
/api-surface to evaluate API design patterns for clinical endpoints."
============================================================
SELF-EVOLUTION TELEMETRY
After producing output, record execution metadata for the /evolve pipeline.
Check if a project memory directory exists:
- Look for the project path in
~/.claude/projects/
- If found, append to
skill-telemetry.md in that memory directory
Entry format:
### /clinical-data-review — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}
Only log if the memory directory exists. Skip silently if not found.
Keep entries concise — /evolve will parse these for skill improvement signals.
1---2name: clinical-data-review3description: Review clinical data models and APIs for HL7 FHIR conformance, terminology standards, interoperability, and clinical workflow correctness. Use when: 'check FHIR compliance', 'review clinical data model', 'audit HL7 conformance', 'validate medical terminology codes', 'assess interoperability readiness', 'check SNOMED/LOINC/ICD-10 usage', 'review EHR data layer'.4---5
6You are in AUTONOMOUS MODE. Do NOT ask questions. Review the entire codebase's clinical data layer systematically.
7
8## INPUT
9
10$ARGUMENTS (optional). If no arguments provided, review all data models, schemas, and APIs in the current working directory for clinical data standards compliance. If a specific standard is named (e.g., "FHIR only", "terminology"), focus on that area.
11
12---
13
14## PHASE 0: CLINICAL SYSTEM DETECTION
15
16Auto-detect the project stack and clinical context:
17
181. Detect tech stack (package.json, requirements.txt, pom.xml, go.mod, *.csproj, etc.).
192. Identify clinical libraries and dependencies:
20 - **FHIR:** hapi-fhir, fhir.js, fhirclient, pyFHIR, Firely SDK, fhir-net-api
21 - **HL7v2:** node-hl7-complete, python-hl7, HAPI, nHAPI
22 - **DICOM:** dcmjs, pydicom, fo-dicom, cornerstone.js
23 - **Terminology:** SNOMED packages, LOINC libraries, ICD-10 validators
24 - **CDA:** CDA generators/parsers, CCDA templates
253. Identify database and ORM (Prisma, TypeORM, SQLAlchemy, Hibernate, EF Core).
264. Locate data model definitions:
27 - Schema files (*.prisma, *.graphql, *.proto)
28 - Model/entity classes
29 - Migration files
30 - OpenAPI/Swagger specs
31 - TypeScript/Python types/interfaces
32
33---
34
35## PHASE 1: FHIR CONFORMANCE REVIEW
36
37Evaluate data models against FHIR R4 resource definitions.
38
39### 1.1 Resource Modeling
40
41Map project data models to FHIR resources:
42- **Patient:** demographics, identifiers, contact, communication preferences
43- **Practitioner / PractitionerRole:** provider info, specialties, qualifications
44- **Organization:** facilities, departments, healthcare organizations
45- **Encounter:** visits, admissions, appointments
46- **Condition:** diagnoses, problems, health concerns
47- **Observation:** vitals, lab results, social history, assessments
48- **MedicationRequest / MedicationStatement:** prescriptions, current meds
49- **AllergyIntolerance:** allergies, adverse reactions
50- **Procedure:** surgical, diagnostic, therapeutic procedures
51- **DiagnosticReport:** lab reports, imaging reports, pathology
52- **DocumentReference:** clinical documents, notes, external records
53- **CarePlan:** treatment plans, goals, activities
54- **Immunization:** vaccination records
55
56For each mapped resource, check:
57- Required FHIR elements present (status, subject, code, etc.).
58- Correct cardinality (0..1, 0..*, 1..1, 1..*).
59- Proper data types (CodeableConcept vs string, Reference vs ID, Period vs DateTime).
60- Resource references use proper Reference type with resource type + ID.
61- Extensions are properly defined (not ad-hoc fields breaking FHIR structure).
62
63### 1.2 Search Parameters
64- Verify FHIR search parameter support on API endpoints.
65- Check standard search params: _id, _lastUpdated, _tag, _profile.
66- Check resource-specific params: Patient?name, Observation?code, etc.
67- Verify search modifiers: :exact, :contains, :missing.
68- Check chained search support: Observation?subject:Patient.name.
69- Verify _include and _revinclude support.
70
71### 1.3 Capability Statement
72- Check for /metadata endpoint returning CapabilityStatement resource.
73- Verify it accurately reflects implemented resources and operations.
74- Check for declared profiles and supported search parameters.
75
76### 1.4 Bundle Support
77- Verify transaction Bundle support (POST to root with type: transaction).
78- Check for batch Bundle support.
79- Verify searchset Bundle response format for search endpoints.
80- Check Bundle entry fullUrl and resource consistency.
81
82---
83
84## PHASE 2: TERMINOLOGY AND CODING STANDARDS
85
86### 2.1 ICD-10 (Diagnoses)
87- Search for ICD-10-CM code handling in data models and business logic.
88- Verify code format validation (letter + 2 digits + optional decimal + up to 4 digits).
89- Check for code versioning (ICD-10 updates annually in October).
90- Verify code descriptions are stored or lookable.
91- Check for ICD-10-PCS (procedure codes) if surgical/procedural data exists.
92- Flag hardcoded ICD-10 codes without version tracking.
93
94### 2.2 CPT / HCPCS (Procedures and Services)
95- Search for CPT code handling in billing, orders, or procedure models.
96- Verify CPT code validation (5 digits or 4 digits + letter).
97- Check for HCPCS Level II codes (letter + 4 digits) for supplies/equipment.
98- Verify modifier support (CPT modifiers: -25, -59, -76, etc.).
99- Check for annual code updates handling.
100
101### 2.3 SNOMED CT (Clinical Terms)
102- Search for SNOMED concept IDs in data models.
103- Verify SNOMED codes use proper SCTID format (6-18 digit numeric).
104- Check for concept hierarchy navigation capability.
105- Verify SNOMED-to-ICD-10 mapping if cross-coding is needed.
106- Check for SNOMED version/edition tracking.
107
108### 2.4 LOINC (Lab and Observations)
109- Search for LOINC codes in observation/lab models.
110- Verify LOINC code format validation (numeric with optional dash and check digit).
111- Check for proper units of measure (UCUM standard) paired with LOINC codes.
112- Verify lab result value sets align with LOINC answer lists.
113
114### 2.5 RxNorm (Medications)
115- Search for medication coding in prescription/medication models.
116- Check for RxNorm concept unique identifiers (RxCUI).
117- Verify NDC (National Drug Code) handling if pharmacy integration exists.
118- Check for drug-drug interaction checking capability.
119
120### 2.6 Terminology Service
121- Check for terminology server integration ($lookup, $validate-code, $expand).
122- Verify ValueSet binding on coded fields.
123- Check for CodeSystem resources or external terminology service configuration.
124- Flag coded fields that accept free text without code validation.
125
126---
127
128## PHASE 3: INTEROPERABILITY ASSESSMENT
129
130### 3.1 CDA / CCDA Documents
131- Search for CDA document generation or parsing.
132- Check for CCDA template conformance (CCD, Discharge Summary, Progress Note, etc.).
133- Verify required sections: allergies, medications, problems, procedures, results.
134- Check for structured vs narrative-only sections.
135- Verify XML schema validation on generated documents.
136
137### 3.2 Bulk Data Export
138- Check for FHIR Bulk Data Access ($export) implementation.
139- Verify NDJSON output format.
140- Check for group-level and system-level export support.
141- Verify async export pattern (kick-off, status polling, file download).
142
143### 3.3 ADT Messaging
144- Search for HL7v2 ADT (Admit/Discharge/Transfer) message handling.
145- Check for A01 (admit), A02 (transfer), A03 (discharge), A04 (register), A08 (update) message type support.
146- Verify PID, PV1, NK1 segment parsing/generation.
147
148### 3.4 ORU / ORM Messaging
149- Search for HL7v2 ORU (results) and ORM (orders) message handling.
150- Check for OBR, OBX segment handling in results.
151- Verify order/result linking via placer/filler order numbers.
152
153### 3.5 Direct Messaging
154- Check for Direct protocol support (secure email for clinical data).
155- Verify S/MIME encryption compliance.
156
157---
158
159## PHASE 4: CLINICAL WORKFLOW VALIDATION
160
161### 4.1 Order Management
162- Check order lifecycle: draft -> active -> completed/cancelled.
163- Verify order validation (appropriate order for patient context).
164- Check for duplicate order detection.
165- Verify order modification and cancellation workflows.
166- Check for clinical decision support at order entry.
167
168### 4.2 Results Management
169- Verify result status workflow: preliminary -> final -> corrected -> amended.
170- Check for abnormal result flagging (reference ranges, critical values).
171- Verify result acknowledgment tracking.
172- Check for result routing based on ordering provider.
173
174### 4.3 Medication Management
175- Check prescription lifecycle: draft -> active -> stopped/completed.
176- Verify drug allergy checking against patient allergies.
177- Check for formulary validation.
178- Verify medication reconciliation support.
179- Check for e-prescribing (NCPDP SCRIPT) readiness.
180
181### 4.4 Documentation
182- Check for clinical note types (progress notes, H&P, discharge summary).
183- Verify note signing/cosigning workflow.
184- Check for addendum support (append, not edit).
185- Verify template support for structured documentation.
186
187### 4.5 Data Quality
188- Check for required field enforcement on critical clinical data.
189- Verify referential integrity between related clinical records.
190- Check for data validation rules (date ranges, numeric ranges, code validation).
191- Verify duplicate detection mechanisms (patient matching, record deduplication).
192
193---
194
195
196============================================================
197SELF-HEALING VALIDATION (max 2 iterations)
198============================================================
199
200After producing output, validate data quality and completeness:
201
2021. Verify all output sections have substantive content (not just headers).
2032. Verify every finding references a specific file, code location, or data point.
2043. Verify recommendations are actionable and evidence-based.
2054. If the analysis consumed insufficient data (empty directories, missing configs),
206 note data gaps and attempt alternative discovery methods.
207
208IF VALIDATION FAILS:
209- Identify which sections are incomplete or lack evidence
210- Re-analyze the deficient areas with expanded search patterns
211- Repeat up to 2 iterations
212
213IF STILL INCOMPLETE after 2 iterations:
214- Flag specific gaps in the output
215- Note what data would be needed to complete the analysis
216
217## OUTPUT FORMAT
218
219```
220## Clinical Data Model Review
221
222**Project:** [name]
223**Stack:** [detected technologies]
224**Clinical Domain:** [EHR/lab/pharmacy/imaging/billing/etc.]
225**Date:** [date]
226
227### Standards Conformance Summary
228
229| Standard | Coverage | Conformance | Issues |
230|---|---|---|---|
231| FHIR R4 | [N resources mapped] | [FULL/PARTIAL/NONE] | N |
232| ICD-10-CM/PCS | [usage found?] | [VALID/PARTIAL/NONE] | N |
233| CPT/HCPCS | [usage found?] | [VALID/PARTIAL/NONE] | N |
234| SNOMED CT | [usage found?] | [VALID/PARTIAL/NONE] | N |
235| LOINC | [usage found?] | [VALID/PARTIAL/NONE] | N |
236| RxNorm | [usage found?] | [VALID/PARTIAL/NONE] | N |
237| CDA/CCDA | [support found?] | [CONFORMANT/PARTIAL/NONE] | N |
238| HL7v2 | [usage found?] | [VALID/PARTIAL/NONE] | N |
239
240### FHIR Resource Mapping
241
242| Project Model | FHIR Resource | Required Elements | Missing Elements | Extensions |
243|---|---|---|---|---|
244| [model name] | Patient | [present] | [missing] | [non-standard fields] |
245
246### Data Model Findings
247
248| # | Severity | File | Model/Field | Standard | Issue | Fix |
249|---|----------|------|-------------|----------|-------|-----|
250| 1 | High | path/to/model.ts | Patient.identifier | FHIR R4 | Missing system URI on identifier | Add system field per FHIR Identifier datatype |
251
252### Terminology Gaps
253
254| Coded Field | Current Implementation | Required Standard | Gap |
255|---|---|---|---|
256| [diagnosis_code] | Free text string | ICD-10-CM CodeableConcept | No code validation, no system URI |
257
258### Interoperability Readiness
259- FHIR API: [Ready/Partial/Not implemented]
260- Bulk Export: [Ready/Partial/Not implemented]
261- CDA/CCDA: [Ready/Partial/Not implemented]
262- HL7v2: [Ready/Partial/Not implemented]
263- Patient matching: [algorithm used or none]
264
265### Clinical Workflow Assessment
266| Workflow | Status | Key Gaps |
267|---|---|---|
268| Order management | [Complete/Partial/Missing] | [gaps] |
269| Results delivery | [Complete/Partial/Missing] | [gaps] |
270| Medication mgmt | [Complete/Partial/Missing] | [gaps] |
271| Documentation | [Complete/Partial/Missing] | [gaps] |
272```
273
274---
275
276## RULES
277
278- Do NOT modify any code -- this is a review skill, not a build skill.
279- Do NOT assume FHIR compliance from library presence alone -- verify actual resource structure.
280- Do NOT accept free-text fields as valid coded data -- flag missing terminology binding.
281- Do NOT skip checking cardinality and data types against FHIR spec.
282- Do NOT ignore custom extensions -- evaluate if standard FHIR elements would suffice.
283- Do NOT treat terminology code presence as validation -- verify format and system URI.
284- Do NOT overlook data quality rules -- missing validation is a finding.
285- Do NOT install external tools or FHIR validators -- analyze schemas and code directly.
286
287---
288
289## NEXT STEPS
290
291- "Run `/healthcare-compliance` to audit regulatory compliance of the clinical data layer."
292- "Run `/compliance-ops` to evaluate broader organizational compliance operations."
293- "Run `/api-surface` to evaluate API design patterns for clinical endpoints."
294
295
296============================================================
297SELF-EVOLUTION TELEMETRY
298============================================================
299
300After producing output, record execution metadata for the /evolve pipeline.
301
302Check if a project memory directory exists:
303- Look for the project path in `~/.claude/projects/`
304- If found, append to `skill-telemetry.md` in that memory directory
305
306Entry format:
307```
308### /clinical-data-review — {{YYYY-MM-DD}}
309- Outcome: {{SUCCESS | PARTIAL | FAILED}}
310- Self-healed: {{yes — what was healed | no}}
311- Iterations used: {{N}} / {{N max}}
312- Bottleneck: {{phase that struggled or "none"}}
313- Suggestion: {{one-line improvement idea for /evolve, or "none"}}
314```
315
316Only log if the memory directory exists. Skip silently if not found.
317Keep entries concise — /evolve will parse these for skill improvement signals.