As an admin, I can create and manage Practitioner and Patient resources #11
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#11
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 an admin, I want to create, read, update, and deactivate
PractitionerandPatientresources through the Koinos backend, so that clinical workflows have the core subjects they need.Acceptance criteria
Endpoints (proxied to HAPI FHIR with policy enforcement)
POST /api/practitioners— admin only.GET /api/practitioners/{id}— any authenticated user.PATCH /api/practitioners/{id}— admin or the practitioner themselves.DELETE /api/practitioners/{id}— admin only (soft delete viaactive=false).POST /api/patients— admin or practitioner with care relationship.GET /api/patients/{id}— policy-checked (practitioner with active care relationship, the patient themselves, admin).PATCH /api/patients/{id}— same policy as GET.GET /api/practitioners?family=...&given=...andGET /api/patients?....Validation
OperationOutcome.Backend internals
koinos-corewrapping HAPI FHIR calls.AuditEventrecorded for every write (read auditing wired in #20).Tests
Out of scope
RelatedPersonandCareTeamCRUD (v0.2).References
spec/03-architecture/04-medical-data.md.spec/04-functional/03-patient-record.md.spec/08-roadmap-mvp.md— step #11.