Physical Activity Implementation Guide
1.0.0 - STU Release 1 United States of America flag

This page is part of the U.S. Physical Activity IG (v1.0.0: STU 1.0) based on FHIR R4. This is the current published version. For a full list of available versions, see the Directory of published versions

: Scenario 4 - Patient Works with Personal Trainer - JSON Representation

Page standards status: Informative

Raw json | Download


{
  "resourceType" : "ExampleScenario",
  "id" : "Scen4PhysicalActivityPlan",
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: ExampleScenario</b><a name=\"Scen4PhysicalActivityPlan\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource ExampleScenario &quot;Scen4PhysicalActivityPlan&quot; </p></div><p><b>url</b>: <code>http://hl7.org/fhir/us/physical-activity/ExampleScenario/Scen4PhysicalActivityPlan</code></p><p><b>version</b>: 1.0.0</p><p><b>name</b>: PatientWorksWithPersonalTrainer</p><p><b>status</b>: draft</p><p><b>date</b>: 2023-08-25 16:04:38+0000</p><p><b>publisher</b>: HL7 International - Patient Care WG</p><p><b>contact</b>: HL7 International - Patient Care WG: <a href=\"http://www.hl7.org/Special/committees/patientcare\">http://www.hl7.org/Special/committees/patientcare</a></p><p><b>jurisdiction</b>: United States of America <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.0.0/CodeSystem-ISO3166Part1.html\">ISO 3166-1 Codes for the representation of names of countries and their subdivisions — Part 1: Country code</a>#US)</span></p><blockquote><p><b>actor</b></p><p><b>actorId</b>: patient-app</p><p><b>type</b>: entity</p><p><b>name</b>: Patient Application</p><p><b>description</b>: A phone or web-based app used by Ms. Scarborough to track her physical activity</p></blockquote><blockquote><p><b>actor</b></p><p><b>actorId</b>: provider-app</p><p><b>type</b>: entity</p><p><b>name</b>: Provider Application</p><p><b>description</b>: A phone or web-based app used by Ms. Rocha to manage her clients' data</p></blockquote><blockquote><p><b>instance</b></p><p><b>resourceId</b>: Scen4query1</p><p><b>resourceType</b>: Binary</p><p><b>name</b>: Query for patient physical activity care plans</p><p><b>description</b>: Query for CarePlans for a patient: `GET https://ufit.example.org/fhir/CarePlan?patient=Patient/Scen4PatientScarborough&amp;status=active,on-hold&amp;category=http%3A//hl7.org/fhir/us/physical-activity/CodeSystem/pa-temporary-codes|PhysicalActivity`</p></blockquote><blockquote><p><b>instance</b></p><p><b>resourceId</b>: Scen4query2</p><p><b>resourceType</b>: Binary</p><p><b>name</b>: Query for patient physical activity goals</p><p><b>description</b>: Query for Goals for a patient: `GET https://ufit.example.org/fhir/Goal?patient=Patient/Scen4PatientScarborough&amp;status=active,on-hold,completed&amp;category=http%3A//hl7.org/fhir/us/physical-activity/CodeSystem/pa-temporary-codes|PhysicalActivity`</p></blockquote><blockquote><p><b>instance</b></p><p><b>resourceId</b>: Scen4query3</p><p><b>resourceType</b>: Binary</p><p><b>name</b>: Query for patient uncomplete tasks</p><p><b>description</b>: Query for uncomplete patient Tasks for a patient: `GET https://ufit.example.org/fhir/Task?owner=Patient/Scen4PatientScarborough&amp;status=active,on-hold`</p></blockquote><blockquote><p><b>instance</b></p><p><b>resourceId</b>: Scen4CarePlan</p><p><b>resourceType</b>: CarePlan</p><p><b>name</b>: Patient physical activity care plan</p><p><b>description</b>: CarePlan describing proposed exercise regime</p><blockquote><p><b>version</b></p><p><b>Extension Definition for ExampleScenario.instance.version.title for Version 5.0</b>: Initial CarePlan</p><p><b>Extension Definition for ExampleScenario.instance.version.content for Version 5.0</b>: <a href=\"CarePlan-Scen4CarePlanV1.html\">CarePlan/Scen4CarePlanV1</a></p><p><b>versionId</b>: 1</p><p><b>description</b>: Planning for weight lifting, 30 minutes/day</p></blockquote><blockquote><p><b>version</b></p><p><b>Extension Definition for ExampleScenario.instance.version.title for Version 5.0</b>: Updated CarePlan</p><p><b>Extension Definition for ExampleScenario.instance.version.content for Version 5.0</b>: <a href=\"CarePlan-Scen4CarePlanV2.html\">CarePlan/Scen4CarePlanV2</a></p><p><b>versionId</b>: 2</p><p><b>description</b>: Planning for weight lifting, 15 + 30 minutes/day</p></blockquote></blockquote><blockquote><p><b>instance</b></p><p><b>resourceId</b>: Scen4Goal1</p><p><b>resourceType</b>: Goal</p><p><b>name</b>: Physical Activity weekly target</p><p><b>description</b>: Goal indicating target number of minutes/day and days/week weight-lifting</p><blockquote><p><b>version</b></p><p><b>Extension Definition for ExampleScenario.instance.version.title for Version 5.0</b>: Initial goal</p><p><b>Extension Definition for ExampleScenario.instance.version.content for Version 5.0</b>: <a href=\"Goal-Scen4Goal1V1.html\">Goal/Scen4Goal1V1</a></p><p><b>versionId</b>: 1</p><p><b>description</b>: Initial value of 30 mins/day</p></blockquote><blockquote><p><b>version</b></p><p><b>Extension Definition for ExampleScenario.instance.version.title for Version 5.0</b>: Initial goal</p><p><b>Extension Definition for ExampleScenario.instance.version.content for Version 5.0</b>: <a href=\"Goal-Scen4Goal1V2.html\">Goal/Scen4Goal1V2</a></p><p><b>versionId</b>: 2</p><p><b>description</b>: 30 mins/day-completed</p></blockquote></blockquote><blockquote><p><b>instance</b></p><p><b>resourceId</b>: Scen4Goal2</p><p><b>resourceType</b>: Goal</p><p><b>name</b>: Physical Activity weekly target</p><p><b>description</b>: Increased goal indicating target number of minutes/day and days/week weight-lifting</p><blockquote><p><b>version</b></p><p><b>Extension Definition for ExampleScenario.instance.version.title for Version 5.0</b>: Initial goal</p><p><b>Extension Definition for ExampleScenario.instance.version.content for Version 5.0</b>: <a href=\"Goal-Scen4Goal2V1.html\">Goal/Scen4Goal2V1</a></p><p><b>versionId</b>: 1</p><p><b>description</b>: Initial value of 45 mins/day</p></blockquote><blockquote><p><b>version</b></p><p><b>Extension Definition for ExampleScenario.instance.version.title for Version 5.0</b>: Initial goal</p><p><b>Extension Definition for ExampleScenario.instance.version.content for Version 5.0</b>: <a href=\"Goal-Scen4Goal2V2.html\">Goal/Scen4Goal2V2</a></p><p><b>versionId</b>: 2</p><p><b>description</b>: Sustaining 45 mins/day</p></blockquote></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Bundle-Scen4CarePlanBundle1.html\">Bundle/Scen4CarePlanBundle1</a></p><p><b>resourceId</b>: Scen4CarePlanBundle1</p><p><b>resourceType</b>: Bundle</p><p><b>name</b>: Search-set of Care Plans</p><p><b>description</b>: Initial search results on Care plan for the patient</p><h3>ContainedInstances</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td><td><b>VersionId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4CarePlan</td><td>1</td></tr></table></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Bundle-Scen4CarePlanBundle2.html\">Bundle/Scen4CarePlanBundle2</a></p><p><b>resourceId</b>: Scen4CarePlanBundle2</p><p><b>resourceType</b>: Bundle</p><p><b>name</b>: Search-set of Care Plans#2</p><p><b>description</b>: New search results on Care plan for the patient</p><h3>ContainedInstances</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td><td><b>VersionId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4CarePlan</td><td>2</td></tr></table></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Bundle-Scen4GoalBundle1.html\">Bundle/Scen4GoalBundle1</a></p><p><b>resourceId</b>: Scen4GoalBundle1</p><p><b>resourceType</b>: Bundle</p><p><b>name</b>: Search-set of Goals</p><p><b>description</b>: Initial search results on Goal for the patient</p><h3>ContainedInstances</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td><td><b>VersionId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4Goal1</td><td>1</td></tr></table></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Bundle-Scen4GoalBundle2.html\">Bundle/Scen4GoalBundle2</a></p><p><b>resourceId</b>: Scen4GoalBundle2</p><p><b>resourceType</b>: Bundle</p><p><b>name</b>: Search-set of Goals</p><p><b>description</b>: Initial search results on Goal for the patient</p><h3>ContainedInstances</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td><td><b>VersionId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4Goal2</td><td>1</td></tr></table></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Bundle-Scen4TaskBundle1.html\">Bundle/Scen4TaskBundle1</a></p><p><b>resourceId</b>: Scen4TaskBundle1</p><p><b>resourceType</b>: Bundle</p><p><b>name</b>: Search-set of active patient Tasks#1</p><p><b>description</b>: Initial search results of uncomplete patient Tasks.  (Triggered by notification from trainer's app.)</p><h3>ContainedInstances</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td><td><b>VersionId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4TaskFillSurvey</td><td>1</td></tr></table></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Bundle-Scen4TaskBundle2.html\">Bundle/Scen4TaskBundle2</a></p><p><b>resourceId</b>: Scen4TaskBundle2</p><p><b>resourceType</b>: Bundle</p><p><b>name</b>: Search-set of active patient Tasks#2</p><p><b>description</b>: Second search results of uncomplete patient Tasks.  (Triggered by notification from trainer's app.)</p><h3>ContainedInstances</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td><td><b>VersionId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4TaskReviewVideo</td><td>1</td></tr></table></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Bundle-Scen4TaskBundle3.html\">Bundle/Scen4TaskBundle3</a></p><p><b>resourceId</b>: Scen4TaskBundle3</p><p><b>resourceType</b>: Bundle</p><p><b>name</b>: Search-set of active patient Tasks#3</p><p><b>description</b>: Third search results of uncomplete patient Tasks.  (Triggered by notification from trainer's app.)</p><h3>ContainedInstances</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td><td><b>VersionId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4TaskFillSurvey2</td><td>1</td></tr></table></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen4ObservationActivityType.html\">Observation/Scen4ObservationActivityType</a></p><p><b>resourceId</b>: Scen4ObservationActivityType</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Example physical activity type record</p><p><b>description</b>: A sample record indicating the type of physical activity performed by the patient</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen4ObservationEVSMinutesPerDay.html\">Observation/Scen4ObservationEVSMinutesPerDay</a></p><p><b>resourceId</b>: Scen4ObservationEVSMinutesPerDay</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Initial minutes/day of cardio</p><p><b>description</b>: A sample record of the minutes per day of cardio done by the patient</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen4ObservationPeakDailyHeartRate.html\">Observation/Scen4ObservationPeakDailyHeartRate</a></p><p><b>resourceId</b>: Scen4ObservationPeakDailyHeartRate</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Example peak daily heart rate</p><p><b>description</b>: A sample record of daily calories captured by the patient</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen4ObservationEVSMinutesPerDay2.html\">Observation/Scen4ObservationEVSMinutesPerDay2</a></p><p><b>resourceId</b>: Scen4ObservationEVSMinutesPerDay2</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Updated minutes/day of cardio</p><p><b>description</b>: A second sample record of the minutes per day of cardio done by the patient</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen4ObservationDailySteps.html\">Observation/Scen4ObservationDailySteps</a></p><p><b>resourceId</b>: Scen4ObservationDailySteps</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Example daily step count</p><p><b>description</b>: A sample record of daily steps captured by the patient</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen4ObservationCaloriesPerDay.html\">Observation/Scen4ObservationCaloriesPerDay</a></p><p><b>resourceId</b>: Scen4ObservationCaloriesPerDay</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Example daily calories</p><p><b>description</b>: A sample record of daily calories captured by the patient</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen4ObservationEVSMinutesPerDay3.html\">Observation/Scen4ObservationEVSMinutesPerDay3</a></p><p><b>resourceId</b>: Scen4ObservationEVSMinutesPerDay3</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Final minutes/day of cardio</p><p><b>description</b>: A third sample record of the minutes per day of cardio done by the patient</p></blockquote><blockquote><p><b>instance</b></p><p><b>resourceId</b>: Scen4TaskFillSurvey</p><p><b>resourceType</b>: Task</p><p><b>name</b>: Request for patient to fill out survey</p><p><b>description</b>: Patient Task requesting patient to fill out a satisfaction survey</p><blockquote><p><b>version</b></p><p><b>Extension Definition for ExampleScenario.instance.version.title for Version 5.0</b>: Initial request</p><p><b>Extension Definition for ExampleScenario.instance.version.content for Version 5.0</b>: <a href=\"Task-Scen4TaskFillSurveyV1.html\">Task/Scen4TaskFillSurveyV1</a></p><p><b>versionId</b>: 1</p><p><b>description</b>: Initial request to fill out survey</p></blockquote><blockquote><p><b>version</b></p><p><b>Extension Definition for ExampleScenario.instance.version.title for Version 5.0</b>: Completed request</p><p><b>Extension Definition for ExampleScenario.instance.version.content for Version 5.0</b>: <a href=\"Task-Scen4TaskFillSurveyV2.html\">Task/Scen4TaskFillSurveyV2</a></p><p><b>versionId</b>: 2</p><p><b>description</b>: Survey has been filled out and response has been attached to Task</p></blockquote></blockquote><blockquote><p><b>instance</b></p><p><b>resourceId</b>: Scen4TaskFillSurvey2</p><p><b>resourceType</b>: Task</p><p><b>name</b>: Second request for patient to fill out survey</p><p><b>description</b>: New patient Task requesting patient to fill out a satisfaction survey</p><blockquote><p><b>version</b></p><p><b>Extension Definition for ExampleScenario.instance.version.title for Version 5.0</b>: Initial request</p><p><b>Extension Definition for ExampleScenario.instance.version.content for Version 5.0</b>: <a href=\"Task-Scen4TaskFillSurvey2V1.html\">Task/Scen4TaskFillSurvey2V1</a></p><p><b>versionId</b>: 1</p><p><b>description</b>: Initial request to fill out survey</p></blockquote><blockquote><p><b>version</b></p><p><b>Extension Definition for ExampleScenario.instance.version.title for Version 5.0</b>: Completed request</p><p><b>Extension Definition for ExampleScenario.instance.version.content for Version 5.0</b>: <a href=\"Task-Scen4TaskFillSurvey2V2.html\">Task/Scen4TaskFillSurvey2V2</a></p><p><b>versionId</b>: 2</p><p><b>description</b>: Survey has been filled out and response has been attached to Task</p></blockquote></blockquote><blockquote><p><b>instance</b></p><p><b>resourceId</b>: Scen4TaskReviewVideo</p><p><b>resourceType</b>: Task</p><p><b>name</b>: Request for patient to view video</p><p><b>description</b>: New patient Task requesting patient to fill out a satisfaction survey</p><blockquote><p><b>version</b></p><p><b>Extension Definition for ExampleScenario.instance.version.title for Version 5.0</b>: Initial request</p><p><b>Extension Definition for ExampleScenario.instance.version.content for Version 5.0</b>: <a href=\"Task-Scen4TaskReviewVideoV1.html\">Task/Scen4TaskReviewVideoV1</a></p><p><b>versionId</b>: 1</p><p><b>description</b>: Initial request to view a video</p></blockquote><blockquote><p><b>version</b></p><p><b>Extension Definition for ExampleScenario.instance.version.title for Version 5.0</b>: Completed request</p><p><b>Extension Definition for ExampleScenario.instance.version.content for Version 5.0</b>: <a href=\"Task-Scen4TaskReviewVideoV2.html\">Task/Scen4TaskReviewVideoV2</a></p><p><b>versionId</b>: 2</p><p><b>description</b>: Updated request indicating video has been viewed</p></blockquote></blockquote><blockquote><p><b>process</b></p><p><b>title</b>: Physical Activity Plan Establishment and Observations</p><p><b>preConditions</b>: CarePlan and initial Goal are created, Patient and Provider apps are operational</p><p><b>postConditions</b>: CarePlan and Goal successfully retrieved</p><blockquote><p><b>step</b></p><blockquote><p><b>operation</b></p><p><b>number</b>: 1</p><p><b>type</b>: search-type</p><p><b>name</b>: Query CarePlan</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: provider-app</p><p><b>description</b>: Patient app queries exercise CarePlan describing proposed exercise regime.</p><h3>Requests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4query1</td></tr></table><h3>Responses</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4CarePlanBundle1</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><blockquote><p><b>operation</b></p><p><b>number</b>: 2</p><p><b>type</b>: search-type</p><p><b>name</b>: Query Goals</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: provider-app</p><p><b>description</b>: Patient app queries Goals.</p><h3>Requests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4query2</td></tr></table><h3>Responses</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4GoalBundle1</td></tr></table></blockquote></blockquote></blockquote><blockquote><p><b>process</b></p><p><b>title</b>: Post Observations, CarePlan adjustment and new Goals</p><p><b>preConditions</b>: Initial care plan and goal retrieved</p><p><b>postConditions</b>: Care plan followed, various observations are posted by the patient and initial goal accomplished (along with filling survey). Care plan is adjusted, new goal is set, and observations are posted</p><blockquote><p><b>step</b></p><blockquote><p><b>operation</b></p><p><b>number</b>: 3</p><p><b>type</b>: create</p><p><b>name</b>: Post activity type</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: provider-app</p><p><b>description</b>: Patient app posts an observation indicating type of physical activity. `POST https://ufit.example.org/fhir/Observation`</p><h3>Requests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4ObservationActivityType</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><p><b>pause</b>: true</p><blockquote><p><b>operation</b></p><p><b>number</b>: 4</p><p><b>type</b>: create</p><p><b>name</b>: Post min/day</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: provider-app</p><p><b>description</b>: Patient app posts an observation indicating number of minutes/day of moderate to vigorous physical activity. `POST https://ufit.example.org/fhir/Observation`</p><h3>Requests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4ObservationEVSMinutesPerDay</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><blockquote><p><b>operation</b></p><p><b>number</b>: 5</p><p><b>type</b>: create</p><p><b>name</b>: Post peak daily heart rate</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: provider-app</p><p><b>description</b>: Patient app posts an observation indicating their peak daily heart rate. `POST https://ufit.example.org/fhir/Observation`</p><h3>Requests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4ObservationPeakDailyHeartRate</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><p><b>pause</b>: true</p><blockquote><p><b>operation</b></p><p><b>number</b>: 6</p><p><b>type</b>: create</p><p><b>name</b>: Post min/day #2</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: provider-app</p><p><b>description</b>: Patient app posts another observation indicating number of minutes/day of moderate to vigorous physical activity. `POST https://ufit.example.org/fhir/Observation`</p><h3>Requests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4ObservationEVSMinutesPerDay2</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><blockquote><p><b>operation</b></p><p><b>number</b>: 7</p><p><b>type</b>: create</p><p><b>name</b>: Post daily steps</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: provider-app</p><p><b>description</b>: Patient app posts an observation indicating their peak daily heart rate. `POST https://ufit.example.org/fhir/Observation`</p><h3>Requests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4ObservationDailySteps</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><p><b>pause</b>: true</p><blockquote><p><b>operation</b></p><p><b>number</b>: 8</p><p><b>type</b>: create</p><p><b>name</b>: Post peak daily calories</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: provider-app</p><p><b>description</b>: Patient app posts an observation indicating their peak daily heart rate. `POST https://ufit.example.org/fhir/Observation`</p><h3>Requests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4ObservationCaloriesPerDay</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><p><b>pause</b>: true</p><blockquote><p><b>operation</b></p><p><b>number</b>: 9</p><p><b>type</b>: update</p><p><b>name</b>: Update goal</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: provider-app</p><p><b>description</b>: Patient updates their initial goal to indicate it's achieved. `PUT https://ufit.example.org/fhir/Observation/Scen4Goal1`</p><h3>Requests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td><td><b>VersionId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4Goal1</td><td>2</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><p><b>pause</b>: true</p><blockquote><p><b>operation</b></p><p><b>number</b>: 10</p><p><b>type</b>: search-type</p><p><b>name</b>: Retrieve patient tasks#1</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: provider-app</p><p><b>description</b>: Based on an SMS prompt from an 'internal' subscription, the patient app checks for new tasks assigned by their trainer and receives request to fill out a survey.</p><h3>Requests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4query3</td></tr></table><h3>Responses</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4TaskBundle1</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><p><b>pause</b>: true</p><blockquote><p><b>operation</b></p><p><b>number</b>: 11</p><p><b>type</b>: update</p><p><b>name</b>: Update task#1</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: provider-app</p><p><b>description</b>: Patient updates the task with the completed survey. `PUT https://ufit.example.org/fhir/Task/Scen4TaskFillSurvey`</p><h3>Requests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td><td><b>VersionId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4TaskFillSurvey</td><td>2</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><p><b>pause</b>: true</p><blockquote><p><b>operation</b></p><p><b>number</b>: 12</p><p><b>type</b>: search-type</p><p><b>name</b>: Retrieve patient tasks#2</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: provider-app</p><p><b>description</b>: Based on an SMS prompt from an 'internal' subscription, the patient app checks for new tasks assigned by their trainer and receives request to reivew a video.</p><h3>Requests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4query3</td></tr></table><h3>Responses</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4TaskBundle2</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><p><b>pause</b>: true</p><blockquote><p><b>operation</b></p><p><b>number</b>: 13</p><p><b>type</b>: update</p><p><b>name</b>: Update task#2</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: provider-app</p><p><b>description</b>: Patient updates the task indicating they've watched the video. `PUT https://ufit.example.org/fhir/Task/Scen4TaskReviewVideo`</p><h3>Requests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td><td><b>VersionId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4TaskReviewVideo</td><td>2</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><blockquote><p><b>operation</b></p><p><b>number</b>: 14</p><p><b>type</b>: search-type</p><p><b>name</b>: Query CarePlan#2</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: provider-app</p><p><b>description</b>: After a phone call, patient uses app to retrieve updated CarePlan describing revised exercise regime.</p><h3>Requests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4query1</td></tr></table><h3>Responses</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4CarePlanBundle2</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><p><b>pause</b>: true</p><blockquote><p><b>operation</b></p><p><b>number</b>: 15</p><p><b>type</b>: search-type</p><p><b>name</b>: Query Goals#2</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: provider-app</p><p><b>description</b>: After a phone call, patient uses app to retrieve updated Goals.</p><h3>Requests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4query2</td></tr></table><h3>Responses</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4GoalBundle2</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><p><b>pause</b>: true</p><blockquote><p><b>operation</b></p><p><b>number</b>: 16</p><p><b>type</b>: create</p><p><b>name</b>: Post min/day #3</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: provider-app</p><p><b>description</b>: Patient app posts a third observation indicating number of minutes/day of moderate to vigorous physical activity. `POST https://ufit.example.org/fhir/Observation`</p><h3>Requests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4ObservationEVSMinutesPerDay3</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><p><b>pause</b>: true</p><blockquote><p><b>operation</b></p><p><b>number</b>: 17</p><p><b>type</b>: update</p><p><b>name</b>: Update goal</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: provider-app</p><p><b>description</b>: Patient updates their second goal to indicate it's achieved, but they want to stay where they are. `PUT https://ufit.example.org/fhir/Observation/Scen4Goal2`</p><h3>Requests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td><td><b>VersionId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4Goal2</td><td>2</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><p><b>pause</b>: true</p><blockquote><p><b>operation</b></p><p><b>number</b>: 18</p><p><b>type</b>: search-type</p><p><b>name</b>: Retrieve patient tasks#3</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: provider-app</p><p><b>description</b>: Based on an SMS prompt from an 'internal' subscription, the patient app checks for new tasks assigned by their trainer and receives request to complete a second survey.</p><h3>Requests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4query3</td></tr></table><h3>Responses</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4TaskBundle3</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><blockquote><p><b>operation</b></p><p><b>number</b>: 19</p><p><b>type</b>: update</p><p><b>name</b>: Update task#3</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: provider-app</p><p><b>description</b>: Patient updates the task indicating it's complete with the new completed survey. `PUT https://ufit.example.org/fhir/Task/Scen4TaskFillSurvey2`</p><h3>Requests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td><td><b>VersionId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen4TaskFillSurvey2</td><td>2</td></tr></table></blockquote></blockquote></blockquote></div>"
  },
  "url" : "http://hl7.org/fhir/us/physical-activity/ExampleScenario/Scen4PhysicalActivityPlan",
  "version" : "1.0.0",
  "name" : "PatientWorksWithPersonalTrainer",
  "status" : "draft",
  "date" : "2023-08-25T16:04:38+00:00",
  "publisher" : "HL7 International - Patient Care WG",
  "contact" : [
    {
      "name" : "HL7 International - Patient Care WG",
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/patientcare"
        }
      ]
    }
  ],
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "urn:iso:std:iso:3166",
          "code" : "US"
        }
      ]
    }
  ],
  "actor" : [
    {
      "actorId" : "patient-app",
      "type" : "entity",
      "name" : "Patient Application",
      "description" : "A phone or web-based app used by Ms. Scarborough to track her physical activity"
    },
    {
      "actorId" : "provider-app",
      "type" : "entity",
      "name" : "Provider Application",
      "description" : "A phone or web-based app used by Ms. Rocha to manage her clients' data"
    }
  ],
  "instance" : [
    {
      "resourceId" : "Scen4query1",
      "resourceType" : "Binary",
      "name" : "Query for patient physical activity care plans",
      "description" : "Query for CarePlans for a patient: `GET https://ufit.example.org/fhir/CarePlan?patient=Patient/Scen4PatientScarborough&status=active,on-hold&category=http%3A//hl7.org/fhir/us/physical-activity/CodeSystem/pa-temporary-codes|PhysicalActivity`"
    },
    {
      "resourceId" : "Scen4query2",
      "resourceType" : "Binary",
      "name" : "Query for patient physical activity goals",
      "description" : "Query for Goals for a patient: `GET https://ufit.example.org/fhir/Goal?patient=Patient/Scen4PatientScarborough&status=active,on-hold,completed&category=http%3A//hl7.org/fhir/us/physical-activity/CodeSystem/pa-temporary-codes|PhysicalActivity`"
    },
    {
      "resourceId" : "Scen4query3",
      "resourceType" : "Binary",
      "name" : "Query for patient uncomplete tasks",
      "description" : "Query for uncomplete patient Tasks for a patient: `GET https://ufit.example.org/fhir/Task?owner=Patient/Scen4PatientScarborough&status=active,on-hold`"
    },
    {
      "resourceId" : "Scen4CarePlan",
      "resourceType" : "CarePlan",
      "name" : "Patient physical activity care plan",
      "description" : "CarePlan describing proposed exercise regime",
      "version" : [
        {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.title",
              "valueString" : "Initial CarePlan"
            },
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.content",
              "valueReference" : {
                "reference" : "CarePlan/Scen4CarePlanV1"
              }
            }
          ],
          "versionId" : "1",
          "description" : "Planning for weight lifting, 30 minutes/day"
        },
        {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.title",
              "valueString" : "Updated CarePlan"
            },
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.content",
              "valueReference" : {
                "reference" : "CarePlan/Scen4CarePlanV2"
              }
            }
          ],
          "versionId" : "2",
          "description" : "Planning for weight lifting, 15 + 30 minutes/day"
        }
      ]
    },
    {
      "resourceId" : "Scen4Goal1",
      "resourceType" : "Goal",
      "name" : "Physical Activity weekly target",
      "description" : "Goal indicating target number of minutes/day and days/week weight-lifting",
      "version" : [
        {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.title",
              "valueString" : "Initial goal"
            },
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.content",
              "valueReference" : {
                "reference" : "Goal/Scen4Goal1V1"
              }
            }
          ],
          "versionId" : "1",
          "description" : "Initial value of 30 mins/day"
        },
        {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.title",
              "valueString" : "Initial goal"
            },
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.content",
              "valueReference" : {
                "reference" : "Goal/Scen4Goal1V2"
              }
            }
          ],
          "versionId" : "2",
          "description" : "30 mins/day-completed"
        }
      ]
    },
    {
      "resourceId" : "Scen4Goal2",
      "resourceType" : "Goal",
      "name" : "Physical Activity weekly target",
      "description" : "Increased goal indicating target number of minutes/day and days/week weight-lifting",
      "version" : [
        {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.title",
              "valueString" : "Initial goal"
            },
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.content",
              "valueReference" : {
                "reference" : "Goal/Scen4Goal2V1"
              }
            }
          ],
          "versionId" : "1",
          "description" : "Initial value of 45 mins/day"
        },
        {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.title",
              "valueString" : "Initial goal"
            },
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.content",
              "valueReference" : {
                "reference" : "Goal/Scen4Goal2V2"
              }
            }
          ],
          "versionId" : "2",
          "description" : "Sustaining 45 mins/day"
        }
      ]
    },
    {
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content",
          "valueReference" : {
            "reference" : "Bundle/Scen4CarePlanBundle1"
          }
        }
      ],
      "resourceId" : "Scen4CarePlanBundle1",
      "resourceType" : "Bundle",
      "name" : "Search-set of Care Plans",
      "description" : "Initial search results on Care plan for the patient",
      "containedInstance" : [
        {
          "resourceId" : "Scen4CarePlan",
          "versionId" : "1"
        }
      ]
    },
    {
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content",
          "valueReference" : {
            "reference" : "Bundle/Scen4CarePlanBundle2"
          }
        }
      ],
      "resourceId" : "Scen4CarePlanBundle2",
      "resourceType" : "Bundle",
      "name" : "Search-set of Care Plans#2",
      "description" : "New search results on Care plan for the patient",
      "containedInstance" : [
        {
          "resourceId" : "Scen4CarePlan",
          "versionId" : "2"
        }
      ]
    },
    {
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content",
          "valueReference" : {
            "reference" : "Bundle/Scen4GoalBundle1"
          }
        }
      ],
      "resourceId" : "Scen4GoalBundle1",
      "resourceType" : "Bundle",
      "name" : "Search-set of Goals",
      "description" : "Initial search results on Goal for the patient",
      "containedInstance" : [
        {
          "resourceId" : "Scen4Goal1",
          "versionId" : "1"
        }
      ]
    },
    {
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content",
          "valueReference" : {
            "reference" : "Bundle/Scen4GoalBundle2"
          }
        }
      ],
      "resourceId" : "Scen4GoalBundle2",
      "resourceType" : "Bundle",
      "name" : "Search-set of Goals",
      "description" : "Initial search results on Goal for the patient",
      "containedInstance" : [
        {
          "resourceId" : "Scen4Goal2",
          "versionId" : "1"
        }
      ]
    },
    {
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content",
          "valueReference" : {
            "reference" : "Bundle/Scen4TaskBundle1"
          }
        }
      ],
      "resourceId" : "Scen4TaskBundle1",
      "resourceType" : "Bundle",
      "name" : "Search-set of active patient Tasks#1",
      "description" : "Initial search results of uncomplete patient Tasks.  (Triggered by notification from trainer's app.)",
      "containedInstance" : [
        {
          "resourceId" : "Scen4TaskFillSurvey",
          "versionId" : "1"
        }
      ]
    },
    {
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content",
          "valueReference" : {
            "reference" : "Bundle/Scen4TaskBundle2"
          }
        }
      ],
      "resourceId" : "Scen4TaskBundle2",
      "resourceType" : "Bundle",
      "name" : "Search-set of active patient Tasks#2",
      "description" : "Second search results of uncomplete patient Tasks.  (Triggered by notification from trainer's app.)",
      "containedInstance" : [
        {
          "resourceId" : "Scen4TaskReviewVideo",
          "versionId" : "1"
        }
      ]
    },
    {
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content",
          "valueReference" : {
            "reference" : "Bundle/Scen4TaskBundle3"
          }
        }
      ],
      "resourceId" : "Scen4TaskBundle3",
      "resourceType" : "Bundle",
      "name" : "Search-set of active patient Tasks#3",
      "description" : "Third search results of uncomplete patient Tasks.  (Triggered by notification from trainer's app.)",
      "containedInstance" : [
        {
          "resourceId" : "Scen4TaskFillSurvey2",
          "versionId" : "1"
        }
      ]
    },
    {
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content",
          "valueReference" : {
            "reference" : "Observation/Scen4ObservationActivityType"
          }
        }
      ],
      "resourceId" : "Scen4ObservationActivityType",
      "resourceType" : "Observation",
      "name" : "Example physical activity type record",
      "description" : "A sample record indicating the type of physical activity performed by the patient"
    },
    {
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content",
          "valueReference" : {
            "reference" : "Observation/Scen4ObservationEVSMinutesPerDay"
          }
        }
      ],
      "resourceId" : "Scen4ObservationEVSMinutesPerDay",
      "resourceType" : "Observation",
      "name" : "Initial minutes/day of cardio",
      "description" : "A sample record of the minutes per day of cardio done by the patient"
    },
    {
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content",
          "valueReference" : {
            "reference" : "Observation/Scen4ObservationPeakDailyHeartRate"
          }
        }
      ],
      "resourceId" : "Scen4ObservationPeakDailyHeartRate",
      "resourceType" : "Observation",
      "name" : "Example peak daily heart rate",
      "description" : "A sample record of daily calories captured by the patient"
    },
    {
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content",
          "valueReference" : {
            "reference" : "Observation/Scen4ObservationEVSMinutesPerDay2"
          }
        }
      ],
      "resourceId" : "Scen4ObservationEVSMinutesPerDay2",
      "resourceType" : "Observation",
      "name" : "Updated minutes/day of cardio",
      "description" : "A second sample record of the minutes per day of cardio done by the patient"
    },
    {
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content",
          "valueReference" : {
            "reference" : "Observation/Scen4ObservationDailySteps"
          }
        }
      ],
      "resourceId" : "Scen4ObservationDailySteps",
      "resourceType" : "Observation",
      "name" : "Example daily step count",
      "description" : "A sample record of daily steps captured by the patient"
    },
    {
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content",
          "valueReference" : {
            "reference" : "Observation/Scen4ObservationCaloriesPerDay"
          }
        }
      ],
      "resourceId" : "Scen4ObservationCaloriesPerDay",
      "resourceType" : "Observation",
      "name" : "Example daily calories",
      "description" : "A sample record of daily calories captured by the patient"
    },
    {
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content",
          "valueReference" : {
            "reference" : "Observation/Scen4ObservationEVSMinutesPerDay3"
          }
        }
      ],
      "resourceId" : "Scen4ObservationEVSMinutesPerDay3",
      "resourceType" : "Observation",
      "name" : "Final minutes/day of cardio",
      "description" : "A third sample record of the minutes per day of cardio done by the patient"
    },
    {
      "resourceId" : "Scen4TaskFillSurvey",
      "resourceType" : "Task",
      "name" : "Request for patient to fill out survey",
      "description" : "Patient Task requesting patient to fill out a satisfaction survey",
      "version" : [
        {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.title",
              "valueString" : "Initial request"
            },
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.content",
              "valueReference" : {
                "reference" : "Task/Scen4TaskFillSurveyV1"
              }
            }
          ],
          "versionId" : "1",
          "description" : "Initial request to fill out survey"
        },
        {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.title",
              "valueString" : "Completed request"
            },
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.content",
              "valueReference" : {
                "reference" : "Task/Scen4TaskFillSurveyV2"
              }
            }
          ],
          "versionId" : "2",
          "description" : "Survey has been filled out and response has been attached to Task"
        }
      ]
    },
    {
      "resourceId" : "Scen4TaskFillSurvey2",
      "resourceType" : "Task",
      "name" : "Second request for patient to fill out survey",
      "description" : "New patient Task requesting patient to fill out a satisfaction survey",
      "version" : [
        {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.title",
              "valueString" : "Initial request"
            },
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.content",
              "valueReference" : {
                "reference" : "Task/Scen4TaskFillSurvey2V1"
              }
            }
          ],
          "versionId" : "1",
          "description" : "Initial request to fill out survey"
        },
        {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.title",
              "valueString" : "Completed request"
            },
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.content",
              "valueReference" : {
                "reference" : "Task/Scen4TaskFillSurvey2V2"
              }
            }
          ],
          "versionId" : "2",
          "description" : "Survey has been filled out and response has been attached to Task"
        }
      ]
    },
    {
      "resourceId" : "Scen4TaskReviewVideo",
      "resourceType" : "Task",
      "name" : "Request for patient to view video",
      "description" : "New patient Task requesting patient to fill out a satisfaction survey",
      "version" : [
        {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.title",
              "valueString" : "Initial request"
            },
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.content",
              "valueReference" : {
                "reference" : "Task/Scen4TaskReviewVideoV1"
              }
            }
          ],
          "versionId" : "1",
          "description" : "Initial request to view a video"
        },
        {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.title",
              "valueString" : "Completed request"
            },
            {
              "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.content",
              "valueReference" : {
                "reference" : "Task/Scen4TaskReviewVideoV2"
              }
            }
          ],
          "versionId" : "2",
          "description" : "Updated request indicating video has been viewed"
        }
      ]
    }
  ],
  "process" : [
    {
      "title" : "Physical Activity Plan Establishment and Observations",
      "preConditions" : "CarePlan and initial Goal are created, Patient and Provider apps are operational",
      "postConditions" : "CarePlan and Goal successfully retrieved",
      "step" : [
        {
          "operation" : {
            "number" : "1",
            "type" : "search-type",
            "name" : "Query CarePlan",
            "initiator" : "patient-app",
            "receiver" : "provider-app",
            "description" : "Patient app queries exercise CarePlan describing proposed exercise regime.",
            "request" : {
              "resourceId" : "Scen4query1"
            },
            "response" : {
              "resourceId" : "Scen4CarePlanBundle1"
            }
          }
        },
        {
          "operation" : {
            "number" : "2",
            "type" : "search-type",
            "name" : "Query Goals",
            "initiator" : "patient-app",
            "receiver" : "provider-app",
            "description" : "Patient app queries Goals.",
            "request" : {
              "resourceId" : "Scen4query2"
            },
            "response" : {
              "resourceId" : "Scen4GoalBundle1"
            }
          }
        }
      ]
    },
    {
      "title" : "Post Observations, CarePlan adjustment and new Goals",
      "preConditions" : "Initial care plan and goal retrieved",
      "postConditions" : "Care plan followed, various observations are posted by the patient and initial goal accomplished (along with filling survey). Care plan is adjusted, new goal is set, and observations are posted",
      "step" : [
        {
          "operation" : {
            "number" : "3",
            "type" : "create",
            "name" : "Post activity type",
            "initiator" : "patient-app",
            "receiver" : "provider-app",
            "description" : "Patient app posts an observation indicating type of physical activity. `POST https://ufit.example.org/fhir/Observation`",
            "request" : {
              "resourceId" : "Scen4ObservationActivityType"
            }
          }
        },
        {
          "pause" : true,
          "operation" : {
            "number" : "4",
            "type" : "create",
            "name" : "Post min/day",
            "initiator" : "patient-app",
            "receiver" : "provider-app",
            "description" : "Patient app posts an observation indicating number of minutes/day of moderate to vigorous physical activity. `POST https://ufit.example.org/fhir/Observation`",
            "request" : {
              "resourceId" : "Scen4ObservationEVSMinutesPerDay"
            }
          }
        },
        {
          "operation" : {
            "number" : "5",
            "type" : "create",
            "name" : "Post peak daily heart rate",
            "initiator" : "patient-app",
            "receiver" : "provider-app",
            "description" : "Patient app posts an observation indicating their peak daily heart rate. `POST https://ufit.example.org/fhir/Observation`",
            "request" : {
              "resourceId" : "Scen4ObservationPeakDailyHeartRate"
            }
          }
        },
        {
          "pause" : true,
          "operation" : {
            "number" : "6",
            "type" : "create",
            "name" : "Post min/day #2",
            "initiator" : "patient-app",
            "receiver" : "provider-app",
            "description" : "Patient app posts another observation indicating number of minutes/day of moderate to vigorous physical activity. `POST https://ufit.example.org/fhir/Observation`",
            "request" : {
              "resourceId" : "Scen4ObservationEVSMinutesPerDay2"
            }
          }
        },
        {
          "operation" : {
            "number" : "7",
            "type" : "create",
            "name" : "Post daily steps",
            "initiator" : "patient-app",
            "receiver" : "provider-app",
            "description" : "Patient app posts an observation indicating their peak daily heart rate. `POST https://ufit.example.org/fhir/Observation`",
            "request" : {
              "resourceId" : "Scen4ObservationDailySteps"
            }
          }
        },
        {
          "pause" : true,
          "operation" : {
            "number" : "8",
            "type" : "create",
            "name" : "Post peak daily calories",
            "initiator" : "patient-app",
            "receiver" : "provider-app",
            "description" : "Patient app posts an observation indicating their peak daily heart rate. `POST https://ufit.example.org/fhir/Observation`",
            "request" : {
              "resourceId" : "Scen4ObservationCaloriesPerDay"
            }
          }
        },
        {
          "pause" : true,
          "operation" : {
            "number" : "9",
            "type" : "update",
            "name" : "Update goal",
            "initiator" : "patient-app",
            "receiver" : "provider-app",
            "description" : "Patient updates their initial goal to indicate it's achieved. `PUT https://ufit.example.org/fhir/Observation/Scen4Goal1`",
            "request" : {
              "resourceId" : "Scen4Goal1",
              "versionId" : "2"
            }
          }
        },
        {
          "pause" : true,
          "operation" : {
            "number" : "10",
            "type" : "search-type",
            "name" : "Retrieve patient tasks#1",
            "initiator" : "patient-app",
            "receiver" : "provider-app",
            "description" : "Based on an SMS prompt from an 'internal' subscription, the patient app checks for new tasks assigned by their trainer and receives request to fill out a survey.",
            "request" : {
              "resourceId" : "Scen4query3"
            },
            "response" : {
              "resourceId" : "Scen4TaskBundle1"
            }
          }
        },
        {
          "pause" : true,
          "operation" : {
            "number" : "11",
            "type" : "update",
            "name" : "Update task#1",
            "initiator" : "patient-app",
            "receiver" : "provider-app",
            "description" : "Patient updates the task with the completed survey. `PUT https://ufit.example.org/fhir/Task/Scen4TaskFillSurvey`",
            "request" : {
              "resourceId" : "Scen4TaskFillSurvey",
              "versionId" : "2"
            }
          }
        },
        {
          "pause" : true,
          "operation" : {
            "number" : "12",
            "type" : "search-type",
            "name" : "Retrieve patient tasks#2",
            "initiator" : "patient-app",
            "receiver" : "provider-app",
            "description" : "Based on an SMS prompt from an 'internal' subscription, the patient app checks for new tasks assigned by their trainer and receives request to reivew a video.",
            "request" : {
              "resourceId" : "Scen4query3"
            },
            "response" : {
              "resourceId" : "Scen4TaskBundle2"
            }
          }
        },
        {
          "pause" : true,
          "operation" : {
            "number" : "13",
            "type" : "update",
            "name" : "Update task#2",
            "initiator" : "patient-app",
            "receiver" : "provider-app",
            "description" : "Patient updates the task indicating they've watched the video. `PUT https://ufit.example.org/fhir/Task/Scen4TaskReviewVideo`",
            "request" : {
              "resourceId" : "Scen4TaskReviewVideo",
              "versionId" : "2"
            }
          }
        },
        {
          "operation" : {
            "number" : "14",
            "type" : "search-type",
            "name" : "Query CarePlan#2",
            "initiator" : "patient-app",
            "receiver" : "provider-app",
            "description" : "After a phone call, patient uses app to retrieve updated CarePlan describing revised exercise regime.",
            "request" : {
              "resourceId" : "Scen4query1"
            },
            "response" : {
              "resourceId" : "Scen4CarePlanBundle2"
            }
          }
        },
        {
          "pause" : true,
          "operation" : {
            "number" : "15",
            "type" : "search-type",
            "name" : "Query Goals#2",
            "initiator" : "patient-app",
            "receiver" : "provider-app",
            "description" : "After a phone call, patient uses app to retrieve updated Goals.",
            "request" : {
              "resourceId" : "Scen4query2"
            },
            "response" : {
              "resourceId" : "Scen4GoalBundle2"
            }
          }
        },
        {
          "pause" : true,
          "operation" : {
            "number" : "16",
            "type" : "create",
            "name" : "Post min/day #3",
            "initiator" : "patient-app",
            "receiver" : "provider-app",
            "description" : "Patient app posts a third observation indicating number of minutes/day of moderate to vigorous physical activity. `POST https://ufit.example.org/fhir/Observation`",
            "request" : {
              "resourceId" : "Scen4ObservationEVSMinutesPerDay3"
            }
          }
        },
        {
          "pause" : true,
          "operation" : {
            "number" : "17",
            "type" : "update",
            "name" : "Update goal",
            "initiator" : "patient-app",
            "receiver" : "provider-app",
            "description" : "Patient updates their second goal to indicate it's achieved, but they want to stay where they are. `PUT https://ufit.example.org/fhir/Observation/Scen4Goal2`",
            "request" : {
              "resourceId" : "Scen4Goal2",
              "versionId" : "2"
            }
          }
        },
        {
          "pause" : true,
          "operation" : {
            "number" : "18",
            "type" : "search-type",
            "name" : "Retrieve patient tasks#3",
            "initiator" : "patient-app",
            "receiver" : "provider-app",
            "description" : "Based on an SMS prompt from an 'internal' subscription, the patient app checks for new tasks assigned by their trainer and receives request to complete a second survey.",
            "request" : {
              "resourceId" : "Scen4query3"
            },
            "response" : {
              "resourceId" : "Scen4TaskBundle3"
            }
          }
        },
        {
          "operation" : {
            "number" : "19",
            "type" : "update",
            "name" : "Update task#3",
            "initiator" : "patient-app",
            "receiver" : "provider-app",
            "description" : "Patient updates the task indicating it's complete with the new completed survey. `PUT https://ufit.example.org/fhir/Task/Scen4TaskFillSurvey2`",
            "request" : {
              "resourceId" : "Scen4TaskFillSurvey2",
              "versionId" : "2"
            }
          }
        }
      ]
    }
  ]
}