As a patient, I can request my audit trail (AuditEvent for every case action) #20
Labels
No labels
area:agents
area:backend
area:clinical
area:dashboard
area:deploy
area:design
area:design-review
area:devices
area:docs
area:federation
area:identity
area:infra
area:interop
area:meta
area:security
area:sessions
area:web
area:webhook
area:workdir
type:bug
type:chore
type:epic
type:meta
type:user-story
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/koinos#20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User story
As a patient (and as a compliance-aware admin), I want every clinical action to leave an auditable trace, so that I can later request a clear history of who accessed or modified my data.
Acceptance criteria
AuditEvent emission
AuditEventis written for every:PractitionerandPatientresource read/write.DocumentReferenceupload, read, and download.recorded,agent(who),source(instance + IP hash),entity(resource refs),outcome,purposeOfEvent, and, when relevant,agent.role.Append-only storage
Access
GET /api/audit?patient={id}&from=&to=— patient or their attending practitioner can query their own trail.GET /api/audit?from=&to=— admin only, full scope.Tests
Out of scope
References
spec/03-architecture/07-security-compliance.md§5.spec/04-functional/03-patient-record.md§8.spec/08-roadmap-mvp.md— step #20.