Testing app to work with FHIR CarePlan
in a CareKit app.
Created during the FHIR Connectathon #12 in Montréal in the Workflow track.
Most stuff happens in AppDelegate
and in CarePlanController
; the latter lives in the framework, which is added as a submodule.
Look at loadCarePlan()
, where you can toggle whether to load the bundled plan or the remote one, used during the connectathon.
The bottom half of AppDelegate
has some methods that perform connectathon-specific tasks.
git clone --recursive https://github.com/p2/CarePlanCareKitApp.git
Goal: patient performs an activity (getting a lab test done) found in his care plan.
CarePlan
is created/maintained by his care team, hosted on server X- Phone reads
CarePlan
from X- Resolves subject
- Resolves participant.member list
- Resolves activity.reference list
- Creates a note for the patient for every
DiagnosticOrder
it finds - When the patient marks the note as completed, creates a
Task
and sends it to Grahame's server - Polls the order's status until its status is completed
- Lab polls for
Task
it can process on Grahame's server- Finds
Task
and pulls outDiagnosticOrder
- Lab acts on order and marks
DiagnosticOrder
as InProgress - Lab produces final
DiagnosticReport
and uploads - Lab marks
DiagnosticOrder
as completed - Lab creates
Task
for report review containing a link toDiagnosticReport
- Finds