Analyze ConsultaMed codebase against EHDS Regulation (EU) 2025/327 and generate a compliance radar document. Use when asked to check EHDS compliance, generate compliance radar, or assess regulatory compliance. Ingests regulatory data from EHDS Explorer API, maps features to articles, identifies gaps.
Generate a compliance mapping between ConsultaMed features and EHDS Regulation (EU) 2025/327.
Run the ingestion script to ensure the regulatory data cache is fresh:
bash .claude/skills/ehds-compliance-radar/scripts/fetch-ehds-data.sh
If the script reports "Cache is fresh", proceed. If it downloads new data, note the updated date for the radar header.
Read these files to understand what to analyze:
Relevance matrix — defines which articles matter and why:
.claude/skills/ehds-compliance-radar/references/relevance-matrix.md
Cached articles — the actual EHDS article content:
.claude/skills/ehds-compliance-radar/references/ehds-articles-cache.json
Cached definitions — EHDS glossary terms:
.claude/skills/ehds-compliance-radar/references/ehds-definitions-cache.jsonOutput template — structure for the generated document:
.claude/skills/ehds-compliance-radar/assets/radar-template.md
For each article marked HIGH or MEDIUM in the relevance matrix, scan the codebase to determine compliance status.
Codebase locations to analyze:
| Path | What to look for |
|---|---|
backend/app/api/ | REST endpoints — what data operations are available |
backend/app/models/ | Data models — what health data is stored and how |
backend/app/schemas/ | Pydantic schemas — data validation and structure |
backend/app/services/ | Business logic — what operations are performed |
backend/app/validators/ | Input validation — DNI/NIE, clinical validators |
frontend/src/app/ | Page routes — what UI features exist for users |
frontend/src/lib/hooks/ | React hooks — what UX patterns are implemented |
frontend/src/lib/api/client.ts | API client — how frontend communicates with backend |
docs/architecture/overview.md | Architecture — system design decisions |
For each relevant article, determine:
implemented — Feature exists and satisfies the article's requirementspartial — Feature exists but does not fully satisfy the articleroadmap — No feature exists; planned for future developmentnot-applicable — Article does not apply to ConsultaMed's current scopebackend/app/api/patients.py:GET /api/v1/patients/{id}).Analysis rules:
partial rather than implemented.partial.Using the template from assets/radar-template.md, generate the complete radar document.
Output file: docs/compliance/EHDS_COMPLIANCE_RADAR.md
Generation rules:
{{PLACEHOLDER}} values with actual data.Next recommended review to 3 months from today.After generating the radar, provide a brief summary to the user: