Consent Store
Component Detail
Data Layer
medium complexity
backend
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Persistent repository for structured consent records, including decision, consent type, timestamp, signing user, and linked assignment. Retains versioned consent text references and paper-fallback markers so historical decisions remain reproducible.
consent-store
Sources & reasoning
Source §3.1 calls for gradual digitalization of authorizations and medical summaries with manual fallback - the canonical area taxonomy maps this to Progressive Digital Consent inside Encrypted Data Assignments. The blueprint marks this feature as Growth & Engagement, matching the gradual/optional rollout framing in §5 Fase 3.
-
docs/source/likeperson.md · line 63Gradvis digitalisering av fullmakter og epikriser med manuelt fallback.
Responsibilities
- Persist consent records with assignment linkage and version metadata
- Store paper-fallback markers alongside digital consent decisions
- Provide query access by assignment, user, and consent type
- Maintain immutability of historical consent records for audit
- Index consent records for efficient retrieval during assignment processing
Interfaces
insertConsent(record): ConsentId
findByAssignment(assignmentId): ConsentRecord[]
findByUser(userId, consentType): ConsentRecord[]