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

Physical Activity Implementation Guide, published by HL7 International / Patient Care. This guide is not an authorized publication; it is the continuous build for version 1.0.1 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/physical-activity/ and changes regularly. See the Directory of published versions

: Scenario 2 - Provider to Personal Trainer Post-Rehabilitation Referral - TTL Representation

Page standards status: Informative

Raw ttl | Download

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:ExampleScenario ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "Scen2ProviderToPersonaltrainerReferral"] ; # 
  fhir:text [
fhir:status [ fhir:v "extensions" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: ExampleScenario</b><a name=\"Scen2ProviderToPersonaltrainerReferral\"> </a><a name=\"hcScen2ProviderToPersonaltrainerReferral\"> </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;Scen2ProviderToPersonaltrainerReferral&quot; </p></div><p><b>wg</b>: pc</p><p><b>url</b>: <code>http://hl7.org/fhir/us/physical-activity/ExampleScenario/Scen2ProviderToPersonaltrainerReferral</code></p><p><b>version</b>: 1.0.1</p><p><b>name</b>: ProviderToPersonalTrainerReferral</p><p><b>status</b>: draft</p><p><b>date</b>: 2024-03-12 17:26:10+0000</p><p><b>publisher</b>: HL7 International / Patient Care</p><p><b>contact</b>: HL7 International / Patient Care: <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>: goodCardio</p><p><b>type</b>: entity</p><p><b>name</b>: Good Health Cardiology</p><p><b>description</b>: EHR that records patient's exercise plan</p></blockquote><blockquote><p><b>actor</b></p><p><b>actorId</b>: getFit</p><p><b>type</b>: entity</p><p><b>name</b>: Get Fit Training</p><p><b>description</b>: 'Light' service provider'</p></blockquote><blockquote><p><b>actor</b></p><p><b>actorId</b>: Fit4Life</p><p><b>type</b>: entity</p><p><b>name</b>: Fit 4 Life</p><p><b>description</b>: 'Full' service provider'</p></blockquote><blockquote><p><b>actor</b></p><p><b>actorId</b>: registry</p><p><b>type</b>: entity</p><p><b>name</b>: Service Registry</p><p><b>description</b>: Registry of candidate service providers - outside the scope of this IG</p></blockquote><blockquote><p><b>instance</b></p><p><b>resourceId</b>: Scen2query1</p><p><b>resourceType</b>: Binary</p><p><b>name</b>: Query for personal trainers near Mrs. Johansson</p><p><b>description</b>: Search to retrieve list of Service Providers for personal trainers near Mrs. Johansson: `GET https://registry.example.org/fhir/PractitionerRole?role=228239008|http%3A//snomed.info/sct&amp;location.near=37.8393|84.2700|20|[mi_us]&amp;_include=PractitionerRole:practitioner`</p></blockquote><blockquote><p><b>instance</b></p><p><b>resourceId</b>: Scen2query2</p><p><b>resourceType</b>: Binary</p><p><b>name</b>: Query for Get Fit assigned referrals</p><p><b>description</b>: Query Task and associated ServiceRequest and Patient: `GET https://goodCardio.example.org/fhir/Task?status=requested&amp;owner=https%3A//registry.example.org/fhir/Organization/Scen2OrgGetFitTraining&amp;_include=Task:patient&amp;_include=Task:focus`</p></blockquote><blockquote><p><b>instance</b></p><p><b>resourceId</b>: Scen2query3</p><p><b>resourceType</b>: Binary</p><p><b>name</b>: Query for Referral &amp; Patient for retrieved Task</p><p><b>description</b>: Search to retrieve ServiceRequest and Patient for specified Task: `GET https://goodCardio.example.org/fhir/ServiceRequest?_id=Scen2ServiceRequest&amp;_include=ServiceRequest:patient`</p></blockquote><blockquote><p><b>instance</b></p><p><b>resourceId</b>: Scen2query4</p><p><b>resourceType</b>: Binary</p><p><b>name</b>: Query for patient physical activity conditions</p><p><b>description</b>: Search to retrieve Conditions: `GET https://goodCardio.example.org/fhir/Condition?patient=Scen2PatientJohansson&amp;category=http:%3A//hl7.org/fhir/us/physical-activity/CodeSystem/PATemporaryCodesorary-codes|PhysicalActivity`</p></blockquote><blockquote><p><b>instance</b></p><p><b>resourceId</b>: Scen2query5</p><p><b>resourceType</b>: Binary</p><p><b>name</b>: Query for patient physical activity observations</p><p><b>description</b>: Search to retrieve Observations: `GET https://goodCardio.example.org/fhir/Observation?patient=Scen2PatientJohansson&amp;category=http:%3A//hl7.org/fhir/us/physical-activity/CodeSystem/PATemporaryCodesorary-codes|PhysicalActivity`</p></blockquote><blockquote><p><b>instance</b></p><p><b>resourceId</b>: Scen2query6</p><p><b>resourceType</b>: Binary</p><p><b>name</b>: Query for EHR-issued task based on notification</p><p><b>description</b>: Search to retrieve Task: `GET https://fit4life.example.org/fhir/Task?_id=Scen2TaskFit4Life`</p></blockquote><blockquote><p><b>instance</b></p><p><b>resourceId</b>: Scen2query7</p><p><b>resourceType</b>: Binary</p><p><b>name</b>: Query for report and referenced observations</p><p><b>description</b>: Search on referenced Observations: `GET https://fit4.life.example.org/fhir/DiagnosticReport?id=Scen2DiagnosticReport&amp;_include=DiagnosticReport:result`</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Patient-Scen2PatientJohansson.html\">Patient/Scen2PatientJohansson</a> &quot; JOHANSSON&quot;</p><p><b>resourceId</b>: Scen2PatientJohansson</p><p><b>resourceType</b>: Patient</p><p><b>name</b>: Mrs. Johansson Patient Record</p><p><b>description</b>: Demographics and contact information</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Practitioner-Scen2PractitionerMatthews.html\">Practitioner/Scen2PractitionerMatthews</a> &quot; MATTHEWS&quot;</p><p><b>resourceId</b>: Scen2PractitionerMatthews</p><p><b>resourceType</b>: Practitioner</p><p><b>name</b>: Mr. Matthews Registry Entry</p><p><b>description</b>: Practitioner details for personal trainer Mr. Matthews</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Practitioner-Scen2PractitionerWang.html\">Practitioner/Scen2PractitionerWang</a> &quot; WANG&quot;</p><p><b>resourceId</b>: Scen2PractitionerWang</p><p><b>resourceType</b>: Practitioner</p><p><b>name</b>: Ms. Wang Registry Entry</p><p><b>description</b>: Practitioner details for personal trainer Ms. Matthews</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"PractitionerRole-Scen2RoleMatthews.html\">PractitionerRole/Scen2RoleMatthews</a></p><p><b>resourceId</b>: Scen2RoleMatthews</p><p><b>resourceType</b>: PractitionerRole</p><p><b>name</b>: Mr. Matthews Registry Entry</p><p><b>description</b>: Practitioner organization details for personal trainer Mr. Matthews</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Practitioner-Scen2PractitionerWang.html\">Practitioner/Scen2PractitionerWang</a> &quot; WANG&quot;</p><p><b>resourceId</b>: Scen2PractitionerWang</p><p><b>resourceType</b>: PractitionerRole</p><p><b>name</b>: Ms. Wang Registry Entry</p><p><b>description</b>: Practitioner organization details for personal trainer Ms. Matthews</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Subscription-Scen2SubscriptionEhr.html\">Subscription/Scen2SubscriptionEhr</a></p><p><b>resourceId</b>: Scen2SubscriptionEhr</p><p><b>resourceType</b>: Subscription</p><p><b>name</b>: Subscription from EHR</p><p><b>description</b>: Establishes the subscription for the EHR to monitor tasks it's created</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Subscription-Scen2SubscriptionGetFit.html\">Subscription/Scen2SubscriptionGetFit</a></p><p><b>resourceId</b>: Scen2SubscriptionGetFit</p><p><b>resourceType</b>: Subscription</p><p><b>name</b>: Subscription from Get Fit Training</p><p><b>description</b>: Establishes the subscription for the service provider to monitor tasks created for it</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Bundle-Scen2PractitionerTrainerSearchsetBundle.html\">Bundle/Scen2PractitionerTrainerSearchsetBundle</a></p><p><b>resourceId</b>: Scen2PractitionerTrainerSearchsetBundle</p><p><b>resourceType</b>: Bundle</p><p><b>name</b>: Searchset Bundle returning list of personal trainers</p><p><b>description</b>: In practice, the set of candidates would likely be longer.  Note that this functionality is outside the scope of this IG.</p><h3>ContainedInstances</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen2PractitionerMatthews</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=\"Condition-Scen2ConditionLackOfExercise.html\">Condition/Scen2ConditionLackOfExercise</a></p><p><b>resourceId</b>: Scen2ConditionLackOfExercise</p><p><b>resourceType</b>: Condition</p><p><b>name</b>: Low physical activity condition</p><p><b>description</b>: New condition added to chart</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Condition-Scen2ConditionHypertension.html\">Condition/Scen2ConditionHypertension</a></p><p><b>resourceId</b>: Scen2ConditionHypertension</p><p><b>resourceType</b>: Condition</p><p><b>name</b>: Hypertension condition</p><p><b>description</b>: Older condition</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen2ObsDaysPerWeek.html\">Observation/Scen2ObsDaysPerWeek</a></p><p><b>resourceId</b>: Scen2ObsDaysPerWeek</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Initial days per week of activity</p><p><b>description</b>: Exercise of once per week</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen2ObsDaysPerWeek2.html\">Observation/Scen2ObsDaysPerWeek2</a></p><p><b>resourceId</b>: Scen2ObsDaysPerWeek2</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: New days per week of activity</p><p><b>description</b>: Exercising 5 times per week</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen2ObsMinutesPerDay.html\">Observation/Scen2ObsMinutesPerDay</a></p><p><b>resourceId</b>: Scen2ObsMinutesPerDay</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Initial minutes per day of activity</p><p><b>description</b>: 15 minutes per day</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen2ObsMinutesPerDay2.html\">Observation/Scen2ObsMinutesPerDay2</a></p><p><b>resourceId</b>: Scen2ObsMinutesPerDay2</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: New minutes per day of activity</p><p><b>description</b>: 32 minutes per day</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen2ObsActivityGroup.html\">Observation/Scen2ObsActivityGroup</a></p><p><b>resourceId</b>: Scen2ObsActivityGroup</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Information about a run</p><p><b>description</b>: Collection of sub-observations about a single run</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen2ObsActivityType.html\">Observation/Scen2ObsActivityType</a></p><p><b>resourceId</b>: Scen2ObsActivityType</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Type of activity - run</p><p><b>description</b>: Indicates that the activity performed was a run</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen2ObsActivityDuration.html\">Observation/Scen2ObsActivityDuration</a></p><p><b>resourceId</b>: Scen2ObsActivityDuration</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Duration of run</p><p><b>description</b>: Run was 30 minutes</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen2ObsActivityMeanHR.html\">Observation/Scen2ObsActivityMeanHR</a></p><p><b>resourceId</b>: Scen2ObsActivityMeanHR</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Average heart rate during run</p><p><b>description</b>: Average heart rate of 132 bpm</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen2ObsActivityPeakHR.html\">Observation/Scen2ObsActivityPeakHR</a></p><p><b>resourceId</b>: Scen2ObsActivityPeakHR</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Peak heart rate during run</p><p><b>description</b>: Peak heart rate of 177 bpm</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen2ObsActivityExperience.html\">Observation/Scen2ObsActivityExperience</a></p><p><b>resourceId</b>: Scen2ObsActivityExperience</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Experience of run by patient</p><p><b>description</b>: Experience of run was positive</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen2ObsCalories.html\">Observation/Scen2ObsCalories</a></p><p><b>resourceId</b>: Scen2ObsCalories</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Calories burned during run</p><p><b>description</b>: 517 calories burned during run</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"DiagnosticReport-Scen2DiagnosticReport.html\">DiagnosticReport/Scen2DiagnosticReport</a></p><p><b>resourceId</b>: Scen2DiagnosticReport</p><p><b>resourceType</b>: DiagnosticReport</p><p><b>name</b>: Report from personal trainer</p><p><b>description</b>: Letter to provider indicating how the consultation went</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"ServiceRequest-Scen2ServiceRequest.html\">ServiceRequest/Scen2ServiceRequest</a></p><p><b>resourceId</b>: Scen2ServiceRequest</p><p><b>resourceType</b>: ServiceRequest</p><p><b>name</b>: Referral for support</p><p><b>description</b>: Indicates what is to be done and when - but not by whom</p></blockquote><blockquote><p><b>instance</b></p><p><b>resourceId</b>: Scen2TaskGetFit</p><p><b>resourceType</b>: Task</p><p><b>name</b>: Task seeking GetFit to fulfill referral</p><p><b>description</b>: This is the initial Task seeking fulfillment</p><blockquote><p><b>version</b></p><p><b>Extension Definition for ExampleScenario.instance.version.title for Version 5.0</b>: Initial GetFit Task</p><p><b>Extension Definition for ExampleScenario.instance.version.content for Version 5.0</b>: <a href=\"Task-Scen2TaskGetFitV1.html\">Task/Scen2TaskGetFitV1</a></p><p><b>versionId</b>: 1</p><p><b>description</b>: Initial version of the referral fulfillment request for GetFit with a status of 'requested'</p></blockquote><blockquote><p><b>version</b></p><p><b>Extension Definition for ExampleScenario.instance.version.title for Version 5.0</b>: Updated GetFit Task</p><p><b>Extension Definition for ExampleScenario.instance.version.content for Version 5.0</b>: <a href=\"Task-Scen2TaskGetFitV2.html\">Task/Scen2TaskGetFitV2</a></p><p><b>versionId</b>: 2</p><p><b>description</b>: Version of the referral fulfillment request for GetFit after it has been changed to 'rejected'</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-Scen2SubscriptionNotificationNewTaskBundle.html\">Bundle/Scen2SubscriptionNotificationNewTaskBundle</a></p><p><b>resourceId</b>: Scen2SubscriptionNotificationNewTaskBundle</p><p><b>resourceType</b>: Bundle</p><p><b>name</b>: Subscription notification indicating new Task</p><p><b>description</b>: Points to the initial 'requested' version of the Task</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Bundle-Scen2TaskGetFitResponseBundle.html\">Bundle/Scen2TaskGetFitResponseBundle</a></p><p><b>resourceId</b>: Scen2TaskGetFitResponseBundle</p><p><b>resourceType</b>: Bundle</p><p><b>name</b>: Search-set Bundle returning referenced Task</p><p><b>description</b>: Returns Task referenced in subscription notification.  Includes associated ServiceRequest and 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>Scen2TaskGetFit</td><td>1</td></tr></table></blockquote><blockquote><p><b>instance</b></p><p><b>resourceId</b>: Scen2TaskFit4Life</p><p><b>resourceType</b>: Task</p><p><b>name</b>: Task seeking FitLife to fulfill referral</p><p><b>description</b>: This is the second Task seeking fulfillment (after the first was rejected)</p><blockquote><p><b>version</b></p><p><b>Extension Definition for ExampleScenario.instance.version.title for Version 5.0</b>: Initial Fit4Life Task</p><p><b>Extension Definition for ExampleScenario.instance.version.content for Version 5.0</b>: <a href=\"Task-Scen2TaskFit4LifeV1.html\">Task/Scen2TaskFit4LifeV1</a></p><p><b>versionId</b>: 1</p><p><b>description</b>: Initial version of the referral fulfillment request for Fit4Life with a status of 'requested'</p></blockquote><blockquote><p><b>version</b></p><p><b>Extension Definition for ExampleScenario.instance.version.title for Version 5.0</b>: Updated Fit4Life Task</p><p><b>Extension Definition for ExampleScenario.instance.version.content for Version 5.0</b>: <a href=\"Task-Scen2TaskFit4LifeV2.html\">Task/Scen2TaskFit4LifeV2</a></p><p><b>versionId</b>: 2</p><p><b>description</b>: Version of the referral fulfillment request for Fit4Life after it has been changed to 'accepted'</p></blockquote><blockquote><p><b>version</b></p><p><b>Extension Definition for ExampleScenario.instance.version.title for Version 5.0</b>: Completed Fit4Life Task</p><p><b>Extension Definition for ExampleScenario.instance.version.content for Version 5.0</b>: <a href=\"Task-Scen2TaskFit4LifeV3.html\">Task/Scen2TaskFit4LifeV3</a></p><p><b>versionId</b>: 3</p><p><b>description</b>: Version of the referral fulfillment request for Fit4Life after it has been changed to 'completed' and a link to the report added</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-Scen2ReferralFit4LifeResponseBundle.html\">Bundle/Scen2ReferralFit4LifeResponseBundle</a></p><p><b>resourceId</b>: Scen2ReferralFit4LifeResponseBundle</p><p><b>resourceType</b>: Bundle</p><p><b>name</b>: ServiceRequest search response for Fit4Life</p><p><b>description</b>: Search-set Bundle returning ServiceRequest and Patient for the Task posted to Fit4Life</p><h3>ContainedInstances</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen2PatientJohansson</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-Scen2TaskEHRResponseBundle1.html\">Bundle/Scen2TaskEHRResponseBundle1</a></p><p><b>resourceId</b>: Scen2TaskEHRResponseBundle1</p><p><b>resourceType</b>: Bundle</p><p><b>name</b>: Accepted Task search response for EHR</p><p><b>description</b>: Search-set Bundle returning 'accepted' Task with id based on subscription notification</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>Scen2TaskFit4Life</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-Scen2TaskEHRResponseBundle2.html\">Bundle/Scen2TaskEHRResponseBundle2</a></p><p><b>resourceId</b>: Scen2TaskEHRResponseBundle2</p><p><b>resourceType</b>: Bundle</p><p><b>name</b>: Completed Task search response for EHR</p><p><b>description</b>: Search-set Bundle returning 'completed' Task with id based on subscription notification</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>Scen2TaskFit4Life</td><td>3</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-Scen2ConditionResponseBundle.html\">Bundle/Scen2ConditionResponseBundle</a></p><p><b>resourceId</b>: Scen2ConditionResponseBundle</p><p><b>resourceType</b>: Bundle</p><p><b>name</b>: Condition response for Fit 4 Life</p><p><b>description</b>: Search-set Bundle containing the patient's Conditions (that Fit 4 Life has access to)</p><h3>ContainedInstances</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen2ConditionHypertension</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-Scen2ObservationResponseBundle.html\">Bundle/Scen2ObservationResponseBundle</a></p><p><b>resourceId</b>: Scen2ObservationResponseBundle</p><p><b>resourceType</b>: Bundle</p><p><b>name</b>: Observation response for Fit 4 Life</p><p><b>description</b>: Search-set Bundle containing the patient's Observations (that Fit 4 Life has access to)</p><h3>ContainedInstances</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen2ObsMinutesPerDay</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-Scen2NotificationUpdatedTaskBundle.html\">Bundle/Scen2NotificationUpdatedTaskBundle</a></p><p><b>resourceId</b>: Scen2NotificationUpdatedTaskBundle</p><p><b>resourceType</b>: Bundle</p><p><b>name</b>: Subscription Notification that Task has updated</p><p><b>description</b>: Pointer to the Task that has been updated</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Bundle-Scen2NotificationCompletedTaskBundle.html\">Bundle/Scen2NotificationCompletedTaskBundle</a></p><p><b>resourceId</b>: Scen2NotificationCompletedTaskBundle</p><p><b>resourceType</b>: Bundle</p><p><b>name</b>: Subscription Notification that Task has completed</p><p><b>description</b>: Pointer to the Task that has been updated</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Bundle-Scen2DiagnosticReportObservationsResponseBundle.html\">Bundle/Scen2DiagnosticReportObservationsResponseBundle</a></p><p><b>resourceId</b>: Scen2DiagnosticReportObservationsResponseBundle</p><p><b>resourceType</b>: Bundle</p><p><b>name</b>: DiagnosticReport response for EHR</p><p><b>description</b>: Search-set Bundle returning DiagnosticReport and the Observations it references</p><h3>ContainedInstances</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>Scen2ObsCalories</td></tr></table></blockquote><blockquote><p><b>process</b></p><p><b>title</b>: Subscription Establishment</p><p><b>preConditions</b>: Good Health Cardiology, Fit 4 Life, and Get Fit training have established legal and technical arrangements for interoperability</p><p><b>postConditions</b>: Subscriptions are successfully created allowing Good Health Cardiology to monitor Fit4Life-assigned Tasks and GetFit to monitor Tasks assigned to it hosted on Good Health Cardiology</p><blockquote><p><b>step</b></p><blockquote><p><b>operation</b></p><p><b>number</b>: 1</p><p><b>type</b>: create</p><p><b>name</b>: Create service provider-monitoring Subscription</p><p><b>initiator</b>: goodCardio</p><p><b>receiver</b>: Fit4Life</p><p><b>description</b>: EHR posts Subscription to Fit 4 Life to monitor Tasks. Request: `POST https://fit4life.example.org/fhir/Subscription`  Response: `201 Created`</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>Scen2SubscriptionEhr</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>: create</p><p><b>name</b>: Create EHR-monitoring Subscription</p><p><b>initiator</b>: getFit</p><p><b>receiver</b>: goodCardio</p><p><b>description</b>: Get Fit Training posts Subscription to EHR to monitor Tasks. Request: `POST https://goodCardio.example.org/fhir/Subscription`  Response: `201 Created`</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>Scen2SubscriptionGetFit</td></tr></table></blockquote></blockquote></blockquote><blockquote><p><b>process</b></p><p><b>title</b>: 1 Hour after appointment</p><p><b>preConditions</b>: EHR has completed the appointment with the patient</p><p><b>postConditions</b>: EHR has retrieved list of personal trainers and notified GetFit of new Task</p><blockquote><p><b>step</b></p><blockquote><p><b>operation</b></p><p><b>number</b>: 3</p><p><b>type</b>: search-type</p><p><b>name</b>: Retrieve service provider list</p><p><b>initiator</b>: goodCardio</p><p><b>receiver</b>: registry</p><p><b>description</b>: Search to retrieve list of Service Providers for personal trainers near Mrs. Johansson.</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>Scen2query1</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>Scen2PractitionerTrainerSearchsetBundle</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><blockquote><p><b>operation</b></p><p><b>number</b>: 4</p><p><b>type</b>: create</p><p><b>name</b>: Subscription notification of new Task</p><p><b>initiator</b>: goodCardio</p><p><b>receiver</b>: getFit</p><p><b>description</b>: Service provider is notified of new Task via subscription. Request: `POST https://fit4life.example.org/fhir/Subscription`  Response: `201 Created`</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>Scen2SubscriptionNotificationNewTaskBundle</td></tr></table></blockquote></blockquote></blockquote><blockquote><p><b>process</b></p><p><b>title</b>: 1 Day after appointment</p><p><b>preConditions</b>: GetFit has received the notification of new Task</p><p><b>postConditions</b>: GetFit has queried Task, associated ServiceRequest and Patient; and updated Task to refused</p><blockquote><p><b>step</b></p><blockquote><p><b>operation</b></p><p><b>number</b>: 5</p><p><b>type</b>: search-type</p><p><b>name</b>: Getfit retrieves referral</p><p><b>initiator</b>: getFit</p><p><b>receiver</b>: goodCardio</p><p><b>description</b>: GetFit retrieves the referenced Task and its associated ServiceRequest and Patient.</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>Scen2query2</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>Scen2TaskGetFitResponseBundle</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><blockquote><p><b>operation</b></p><p><b>number</b>: 6</p><p><b>type</b>: update</p><p><b>name</b>: GetFit refuses task</p><p><b>initiator</b>: getFit</p><p><b>receiver</b>: goodCardio</p><p><b>description</b>: GetFit updates the Task status to 'refused' with a reason.  Request: `PUT https://goodCardio.example.org/fhir/Task/Scen2TaskGetFitV1` Response: `200 Ok`</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>Scen2TaskGetFit</td><td>2</td></tr></table></blockquote></blockquote></blockquote><blockquote><p><b>process</b></p><p><b>title</b>: An Hour later</p><p><b>preConditions</b>: EHR has a Task seeking fulfillment of ServiceRequest for Fit4Life</p><p><b>postConditions</b>: Fit4Life has retrieved ServiceRequest, Patient, Conditions, Observations, and updated Task</p><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>: Create Task on Fit4Life</p><p><b>initiator</b>: goodCardio</p><p><b>receiver</b>: Fit4Life</p><p><b>description</b>: New Task is created directly on Fit4Life's server.  Request: `POST https://fit4life.example.org/fhir/Task` Response: `201 Created`</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>Scen2TaskFit4Life</td><td>1</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><blockquote><p><b>operation</b></p><p><b>number</b>: 8</p><p><b>type</b>: search-type</p><p><b>name</b>: Fit4Life retrieves referral</p><p><b>initiator</b>: Fit4Life</p><p><b>receiver</b>: goodCardio</p><p><b>description</b>: Fit4Life retrieves the ServiceRequest and Patient referenced by the Task.</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>Scen2query3</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>Scen2ReferralFit4LifeResponseBundle</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><blockquote><p><b>operation</b></p><p><b>number</b>: 9</p><p><b>type</b>: search-type</p><p><b>name</b>: Fit4Life retrieves conditions</p><p><b>initiator</b>: Fit4Life</p><p><b>receiver</b>: goodCardio</p><p><b>description</b>: Fit4Life retrieves the physical-activity related Conditions associated with the patient.</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>Scen2query4</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>Scen2ConditionResponseBundle</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><blockquote><p><b>operation</b></p><p><b>number</b>: 10</p><p><b>type</b>: search-type</p><p><b>name</b>: Fit4Life retrieves referral</p><p><b>initiator</b>: Fit4Life</p><p><b>receiver</b>: goodCardio</p><p><b>description</b>: Fit4Life retrieves the physical-activity related Observations associated with the patient.  (In practice there would typically be more than are shown here, and some might not be for profiles defined in this IG.)</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>Scen2query5</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>Scen2ObservationResponseBundle</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><blockquote><p><b>operation</b></p><p><b>number</b>: 11</p><p><b>type</b>: create</p><p><b>name</b>: EHR gets referral acceptance</p><p><b>initiator</b>: Fit4Life</p><p><b>receiver</b>: goodCardio</p><p><b>description</b>: A subscription notification to the EHR is triggered when Fit4Life changes the prescription status to 'accepted'.  Request: `POST https://goodCardio.example.org/mySubscriptions` Response: `200 Ok`</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>Scen2NotificationUpdatedTaskBundle</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><blockquote><p><b>operation</b></p><p><b>number</b>: 12</p><p><b>type</b>: search-type</p><p><b>name</b>: EHR retrieves accepted Task</p><p><b>initiator</b>: goodCardio</p><p><b>receiver</b>: Fit4Life</p><p><b>description</b>: EHR retrieves the Task referenced by the subscription notification</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>Scen2query6</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>Scen2TaskEHRResponseBundle1</td></tr></table></blockquote></blockquote></blockquote><blockquote><p><b>process</b></p><p><b>title</b>: 2 Months Later</p><p><b>preConditions</b>: Fit4Life has updated the Task</p><p><b>postConditions</b>: EHR has retrieved the completed Task, DiagnosticReport, and associated Observations</p><blockquote><p><b>step</b></p><blockquote><p><b>operation</b></p><p><b>number</b>: 13</p><p><b>type</b>: create</p><p><b>name</b>: EHR gets referral acceptance</p><p><b>initiator</b>: Fit4Life</p><p><b>receiver</b>: goodCardio</p><p><b>description</b>: A subscription notification to the EHR is triggered when Fit4Life changes the Task status to 'completed'.  Request: `POST https://goodCardio.example.org/mySubscriptions` Response: `200 Ok`</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>Scen2NotificationCompletedTaskBundle</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>: EHR retrieves completed Task</p><p><b>initiator</b>: goodCardio</p><p><b>receiver</b>: Fit4Life</p><p><b>description</b>: EHR retrieves the Task referenced by the subscription notification</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>Scen2query6</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>Scen2TaskEHRResponseBundle2</td></tr></table></blockquote></blockquote><blockquote><p><b>step</b></p><blockquote><p><b>operation</b></p><p><b>number</b>: 15</p><p><b>type</b>: search-type</p><p><b>name</b>: EHR retrieves report</p><p><b>initiator</b>: goodCardio</p><p><b>receiver</b>: Fit4Life</p><p><b>description</b>: EHR retrieves the Fit4Life DiagnosticReport using the id provided in the Task.  It also uses _include to retrieve referenced observations</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>Scen2query7</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>Scen2DiagnosticReportObservationsResponseBundle</td></tr></table></blockquote></blockquote></blockquote></div>"
  ] ; # 
  fhir:extension ( [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ] ;
fhir:value [ fhir:v "pc" ]
  ] ) ; # 
  fhir:url [ fhir:v "http://hl7.org/fhir/us/physical-activity/ExampleScenario/Scen2ProviderToPersonaltrainerReferral"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "1.0.1"] ; # 
  fhir:name [ fhir:v "ProviderToPersonalTrainerReferral"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:date [ fhir:v "2024-03-12T17:26:10+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "HL7 International / Patient Care"] ; # 
  fhir:contact ( [
fhir:name [ fhir:v "HL7 International / Patient Care" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "http://www.hl7.org/Special/committees/patientcare" ]     ] )
  ] ) ; # 
  fhir:jurisdiction ( [
    ( fhir:coding [
fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ;
fhir:code [ fhir:v "US" ]     ] )
  ] ) ; # 
  fhir:actor ( [
fhir:actorId [ fhir:v "goodCardio" ] ;
fhir:type [ fhir:v "entity" ] ;
fhir:name [ fhir:v "Good Health Cardiology" ] ;
fhir:description [ fhir:v "EHR that records patient's exercise plan" ]
  ] [
fhir:actorId [ fhir:v "getFit" ] ;
fhir:type [ fhir:v "entity" ] ;
fhir:name [ fhir:v "Get Fit Training" ] ;
fhir:description [ fhir:v "'Light' service provider'" ]
  ] [
fhir:actorId [ fhir:v "Fit4Life" ] ;
fhir:type [ fhir:v "entity" ] ;
fhir:name [ fhir:v "Fit 4 Life" ] ;
fhir:description [ fhir:v "'Full' service provider'" ]
  ] [
fhir:actorId [ fhir:v "registry" ] ;
fhir:type [ fhir:v "entity" ] ;
fhir:name [ fhir:v "Service Registry" ] ;
fhir:description [ fhir:v "Registry of candidate service providers - outside the scope of this IG" ]
  ] ) ; # 
  fhir:instance ( [
fhir:resourceId [ fhir:v "Scen2query1" ] ;
fhir:resourceType [ fhir:v "Binary" ] ;
fhir:name [ fhir:v "Query for personal trainers near Mrs. Johansson" ] ;
fhir:description [ fhir:v "Search to retrieve list of Service Providers for personal trainers near Mrs. Johansson: `GET https://registry.example.org/fhir/PractitionerRole?role=228239008|http%3A//snomed.info/sct&location.near=37.8393|84.2700|20|[mi_us]&_include=PractitionerRole:practitioner`" ]
  ] [
fhir:resourceId [ fhir:v "Scen2query2" ] ;
fhir:resourceType [ fhir:v "Binary" ] ;
fhir:name [ fhir:v "Query for Get Fit assigned referrals" ] ;
fhir:description [ fhir:v "Query Task and associated ServiceRequest and Patient: `GET https://goodCardio.example.org/fhir/Task?status=requested&owner=https%3A//registry.example.org/fhir/Organization/Scen2OrgGetFitTraining&_include=Task:patient&_include=Task:focus`" ]
  ] [
fhir:resourceId [ fhir:v "Scen2query3" ] ;
fhir:resourceType [ fhir:v "Binary" ] ;
fhir:name [ fhir:v "Query for Referral & Patient for retrieved Task" ] ;
fhir:description [ fhir:v "Search to retrieve ServiceRequest and Patient for specified Task: `GET https://goodCardio.example.org/fhir/ServiceRequest?_id=Scen2ServiceRequest&_include=ServiceRequest:patient`" ]
  ] [
fhir:resourceId [ fhir:v "Scen2query4" ] ;
fhir:resourceType [ fhir:v "Binary" ] ;
fhir:name [ fhir:v "Query for patient physical activity conditions" ] ;
fhir:description [ fhir:v "Search to retrieve Conditions: `GET https://goodCardio.example.org/fhir/Condition?patient=Scen2PatientJohansson&category=http:%3A//hl7.org/fhir/us/physical-activity/CodeSystem/PATemporaryCodesorary-codes|PhysicalActivity`" ]
  ] [
fhir:resourceId [ fhir:v "Scen2query5" ] ;
fhir:resourceType [ fhir:v "Binary" ] ;
fhir:name [ fhir:v "Query for patient physical activity observations" ] ;
fhir:description [ fhir:v "Search to retrieve Observations: `GET https://goodCardio.example.org/fhir/Observation?patient=Scen2PatientJohansson&category=http:%3A//hl7.org/fhir/us/physical-activity/CodeSystem/PATemporaryCodesorary-codes|PhysicalActivity`" ]
  ] [
fhir:resourceId [ fhir:v "Scen2query6" ] ;
fhir:resourceType [ fhir:v "Binary" ] ;
fhir:name [ fhir:v "Query for EHR-issued task based on notification" ] ;
fhir:description [ fhir:v "Search to retrieve Task: `GET https://fit4life.example.org/fhir/Task?_id=Scen2TaskFit4Life`" ]
  ] [
fhir:resourceId [ fhir:v "Scen2query7" ] ;
fhir:resourceType [ fhir:v "Binary" ] ;
fhir:name [ fhir:v "Query for report and referenced observations" ] ;
fhir:description [ fhir:v "Search on referenced Observations: `GET https://fit4.life.example.org/fhir/DiagnosticReport?id=Scen2DiagnosticReport&_include=DiagnosticReport:result`" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Patient/Scen2PatientJohansson" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2PatientJohansson" ] ;
fhir:resourceType [ fhir:v "Patient" ] ;
fhir:name [ fhir:v "Mrs. Johansson Patient Record" ] ;
fhir:description [ fhir:v "Demographics and contact information" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Practitioner/Scen2PractitionerMatthews" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2PractitionerMatthews" ] ;
fhir:resourceType [ fhir:v "Practitioner" ] ;
fhir:name [ fhir:v "Mr. Matthews Registry Entry" ] ;
fhir:description [ fhir:v "Practitioner details for personal trainer Mr. Matthews" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Practitioner/Scen2PractitionerWang" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2PractitionerWang" ] ;
fhir:resourceType [ fhir:v "Practitioner" ] ;
fhir:name [ fhir:v "Ms. Wang Registry Entry" ] ;
fhir:description [ fhir:v "Practitioner details for personal trainer Ms. Matthews" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "PractitionerRole/Scen2RoleMatthews" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2RoleMatthews" ] ;
fhir:resourceType [ fhir:v "PractitionerRole" ] ;
fhir:name [ fhir:v "Mr. Matthews Registry Entry" ] ;
fhir:description [ fhir:v "Practitioner organization details for personal trainer Mr. Matthews" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Practitioner/Scen2PractitionerWang" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2PractitionerWang" ] ;
fhir:resourceType [ fhir:v "PractitionerRole" ] ;
fhir:name [ fhir:v "Ms. Wang Registry Entry" ] ;
fhir:description [ fhir:v "Practitioner organization details for personal trainer Ms. Matthews" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Subscription/Scen2SubscriptionEhr" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2SubscriptionEhr" ] ;
fhir:resourceType [ fhir:v "Subscription" ] ;
fhir:name [ fhir:v "Subscription from EHR" ] ;
fhir:description [ fhir:v "Establishes the subscription for the EHR to monitor tasks it's created" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Subscription/Scen2SubscriptionGetFit" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2SubscriptionGetFit" ] ;
fhir:resourceType [ fhir:v "Subscription" ] ;
fhir:name [ fhir:v "Subscription from Get Fit Training" ] ;
fhir:description [ fhir:v "Establishes the subscription for the service provider to monitor tasks created for it" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Bundle/Scen2PractitionerTrainerSearchsetBundle" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2PractitionerTrainerSearchsetBundle" ] ;
fhir:resourceType [ fhir:v "Bundle" ] ;
fhir:name [ fhir:v "Searchset Bundle returning list of personal trainers" ] ;
fhir:description [ fhir:v "In practice, the set of candidates would likely be longer.  Note that this functionality is outside the scope of this IG." ] ;
    ( fhir:containedInstance [
fhir:resourceId [ fhir:v "Scen2PractitionerMatthews" ]     ] )
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Condition/Scen2ConditionLackOfExercise" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2ConditionLackOfExercise" ] ;
fhir:resourceType [ fhir:v "Condition" ] ;
fhir:name [ fhir:v "Low physical activity condition" ] ;
fhir:description [ fhir:v "New condition added to chart" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Condition/Scen2ConditionHypertension" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2ConditionHypertension" ] ;
fhir:resourceType [ fhir:v "Condition" ] ;
fhir:name [ fhir:v "Hypertension condition" ] ;
fhir:description [ fhir:v "Older condition" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Observation/Scen2ObsDaysPerWeek" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2ObsDaysPerWeek" ] ;
fhir:resourceType [ fhir:v "Observation" ] ;
fhir:name [ fhir:v "Initial days per week of activity" ] ;
fhir:description [ fhir:v "Exercise of once per week" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Observation/Scen2ObsDaysPerWeek2" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2ObsDaysPerWeek2" ] ;
fhir:resourceType [ fhir:v "Observation" ] ;
fhir:name [ fhir:v "New days per week of activity" ] ;
fhir:description [ fhir:v "Exercising 5 times per week" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Observation/Scen2ObsMinutesPerDay" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2ObsMinutesPerDay" ] ;
fhir:resourceType [ fhir:v "Observation" ] ;
fhir:name [ fhir:v "Initial minutes per day of activity" ] ;
fhir:description [ fhir:v "15 minutes per day" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Observation/Scen2ObsMinutesPerDay2" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2ObsMinutesPerDay2" ] ;
fhir:resourceType [ fhir:v "Observation" ] ;
fhir:name [ fhir:v "New minutes per day of activity" ] ;
fhir:description [ fhir:v "32 minutes per day" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Observation/Scen2ObsActivityGroup" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2ObsActivityGroup" ] ;
fhir:resourceType [ fhir:v "Observation" ] ;
fhir:name [ fhir:v "Information about a run" ] ;
fhir:description [ fhir:v "Collection of sub-observations about a single run" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Observation/Scen2ObsActivityType" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2ObsActivityType" ] ;
fhir:resourceType [ fhir:v "Observation" ] ;
fhir:name [ fhir:v "Type of activity - run" ] ;
fhir:description [ fhir:v "Indicates that the activity performed was a run" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Observation/Scen2ObsActivityDuration" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2ObsActivityDuration" ] ;
fhir:resourceType [ fhir:v "Observation" ] ;
fhir:name [ fhir:v "Duration of run" ] ;
fhir:description [ fhir:v "Run was 30 minutes" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Observation/Scen2ObsActivityMeanHR" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2ObsActivityMeanHR" ] ;
fhir:resourceType [ fhir:v "Observation" ] ;
fhir:name [ fhir:v "Average heart rate during run" ] ;
fhir:description [ fhir:v "Average heart rate of 132 bpm" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Observation/Scen2ObsActivityPeakHR" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2ObsActivityPeakHR" ] ;
fhir:resourceType [ fhir:v "Observation" ] ;
fhir:name [ fhir:v "Peak heart rate during run" ] ;
fhir:description [ fhir:v "Peak heart rate of 177 bpm" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Observation/Scen2ObsActivityExperience" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2ObsActivityExperience" ] ;
fhir:resourceType [ fhir:v "Observation" ] ;
fhir:name [ fhir:v "Experience of run by patient" ] ;
fhir:description [ fhir:v "Experience of run was positive" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Observation/Scen2ObsCalories" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2ObsCalories" ] ;
fhir:resourceType [ fhir:v "Observation" ] ;
fhir:name [ fhir:v "Calories burned during run" ] ;
fhir:description [ fhir:v "517 calories burned during run" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "DiagnosticReport/Scen2DiagnosticReport" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2DiagnosticReport" ] ;
fhir:resourceType [ fhir:v "DiagnosticReport" ] ;
fhir:name [ fhir:v "Report from personal trainer" ] ;
fhir:description [ fhir:v "Letter to provider indicating how the consultation went" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "ServiceRequest/Scen2ServiceRequest" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2ServiceRequest" ] ;
fhir:resourceType [ fhir:v "ServiceRequest" ] ;
fhir:name [ fhir:v "Referral for support" ] ;
fhir:description [ fhir:v "Indicates what is to be done and when - but not by whom" ]
  ] [
fhir:resourceId [ fhir:v "Scen2TaskGetFit" ] ;
fhir:resourceType [ fhir:v "Task" ] ;
fhir:name [ fhir:v "Task seeking GetFit to fulfill referral" ] ;
fhir:description [ fhir:v "This is the initial Task seeking fulfillment" ] ;
    ( fhir:version [
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.title"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Initial GetFit Task" ]       ] [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Task/Scen2TaskGetFitV1" ]         ]       ] ) ;
fhir:versionId [ fhir:v "1" ] ;
fhir:description [ fhir:v "Initial version of the referral fulfillment request for GetFit with a status of 'requested'" ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.title"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Updated GetFit Task" ]       ] [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Task/Scen2TaskGetFitV2" ]         ]       ] ) ;
fhir:versionId [ fhir:v "2" ] ;
fhir:description [ fhir:v "Version of the referral fulfillment request for GetFit after it has been changed to 'rejected'" ]     ] )
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Bundle/Scen2SubscriptionNotificationNewTaskBundle" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2SubscriptionNotificationNewTaskBundle" ] ;
fhir:resourceType [ fhir:v "Bundle" ] ;
fhir:name [ fhir:v "Subscription notification indicating new Task" ] ;
fhir:description [ fhir:v "Points to the initial 'requested' version of the Task" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Bundle/Scen2TaskGetFitResponseBundle" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2TaskGetFitResponseBundle" ] ;
fhir:resourceType [ fhir:v "Bundle" ] ;
fhir:name [ fhir:v "Search-set Bundle returning referenced Task" ] ;
fhir:description [ fhir:v "Returns Task referenced in subscription notification.  Includes associated ServiceRequest and Patient" ] ;
    ( fhir:containedInstance [
fhir:resourceId [ fhir:v "Scen2TaskGetFit" ] ;
fhir:versionId [ fhir:v "1" ]     ] )
  ] [
fhir:resourceId [ fhir:v "Scen2TaskFit4Life" ] ;
fhir:resourceType [ fhir:v "Task" ] ;
fhir:name [ fhir:v "Task seeking FitLife to fulfill referral" ] ;
fhir:description [ fhir:v "This is the second Task seeking fulfillment (after the first was rejected)" ] ;
    ( fhir:version [
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.title"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Initial Fit4Life Task" ]       ] [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Task/Scen2TaskFit4LifeV1" ]         ]       ] ) ;
fhir:versionId [ fhir:v "1" ] ;
fhir:description [ fhir:v "Initial version of the referral fulfillment request for Fit4Life with a status of 'requested'" ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.title"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Updated Fit4Life Task" ]       ] [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Task/Scen2TaskFit4LifeV2" ]         ]       ] ) ;
fhir:versionId [ fhir:v "2" ] ;
fhir:description [ fhir:v "Version of the referral fulfillment request for Fit4Life after it has been changed to 'accepted'" ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.title"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Completed Fit4Life Task" ]       ] [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.version.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Task/Scen2TaskFit4LifeV3" ]         ]       ] ) ;
fhir:versionId [ fhir:v "3" ] ;
fhir:description [ fhir:v "Version of the referral fulfillment request for Fit4Life after it has been changed to 'completed' and a link to the report added" ]     ] )
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Bundle/Scen2ReferralFit4LifeResponseBundle" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2ReferralFit4LifeResponseBundle" ] ;
fhir:resourceType [ fhir:v "Bundle" ] ;
fhir:name [ fhir:v "ServiceRequest search response for Fit4Life" ] ;
fhir:description [ fhir:v "Search-set Bundle returning ServiceRequest and Patient for the Task posted to Fit4Life" ] ;
    ( fhir:containedInstance [
fhir:resourceId [ fhir:v "Scen2PatientJohansson" ]     ] )
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Bundle/Scen2TaskEHRResponseBundle1" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2TaskEHRResponseBundle1" ] ;
fhir:resourceType [ fhir:v "Bundle" ] ;
fhir:name [ fhir:v "Accepted Task search response for EHR" ] ;
fhir:description [ fhir:v "Search-set Bundle returning 'accepted' Task with id based on subscription notification" ] ;
    ( fhir:containedInstance [
fhir:resourceId [ fhir:v "Scen2TaskFit4Life" ] ;
fhir:versionId [ fhir:v "2" ]     ] )
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Bundle/Scen2TaskEHRResponseBundle2" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2TaskEHRResponseBundle2" ] ;
fhir:resourceType [ fhir:v "Bundle" ] ;
fhir:name [ fhir:v "Completed Task search response for EHR" ] ;
fhir:description [ fhir:v "Search-set Bundle returning 'completed' Task with id based on subscription notification" ] ;
    ( fhir:containedInstance [
fhir:resourceId [ fhir:v "Scen2TaskFit4Life" ] ;
fhir:versionId [ fhir:v "3" ]     ] )
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Bundle/Scen2ConditionResponseBundle" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2ConditionResponseBundle" ] ;
fhir:resourceType [ fhir:v "Bundle" ] ;
fhir:name [ fhir:v "Condition response for Fit 4 Life" ] ;
fhir:description [ fhir:v "Search-set Bundle containing the patient's Conditions (that Fit 4 Life has access to)" ] ;
    ( fhir:containedInstance [
fhir:resourceId [ fhir:v "Scen2ConditionHypertension" ]     ] )
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Bundle/Scen2ObservationResponseBundle" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2ObservationResponseBundle" ] ;
fhir:resourceType [ fhir:v "Bundle" ] ;
fhir:name [ fhir:v "Observation response for Fit 4 Life" ] ;
fhir:description [ fhir:v "Search-set Bundle containing the patient's Observations (that Fit 4 Life has access to)" ] ;
    ( fhir:containedInstance [
fhir:resourceId [ fhir:v "Scen2ObsMinutesPerDay" ]     ] )
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Bundle/Scen2NotificationUpdatedTaskBundle" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2NotificationUpdatedTaskBundle" ] ;
fhir:resourceType [ fhir:v "Bundle" ] ;
fhir:name [ fhir:v "Subscription Notification that Task has updated" ] ;
fhir:description [ fhir:v "Pointer to the Task that has been updated" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Bundle/Scen2NotificationCompletedTaskBundle" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2NotificationCompletedTaskBundle" ] ;
fhir:resourceType [ fhir:v "Bundle" ] ;
fhir:name [ fhir:v "Subscription Notification that Task has completed" ] ;
fhir:description [ fhir:v "Pointer to the Task that has been updated" ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-ExampleScenario.instance.content"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Bundle/Scen2DiagnosticReportObservationsResponseBundle" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen2DiagnosticReportObservationsResponseBundle" ] ;
fhir:resourceType [ fhir:v "Bundle" ] ;
fhir:name [ fhir:v "DiagnosticReport response for EHR" ] ;
fhir:description [ fhir:v "Search-set Bundle returning DiagnosticReport and the Observations it references" ] ;
    ( fhir:containedInstance [
fhir:resourceId [ fhir:v "Scen2ObsCalories" ]     ] )
  ] ) ; # 
  fhir:process ( [
fhir:title [ fhir:v "Subscription Establishment" ] ;
fhir:preConditions [ fhir:v "Good Health Cardiology, Fit 4 Life, and Get Fit training have established legal and technical arrangements for interoperability" ] ;
fhir:postConditions [ fhir:v "Subscriptions are successfully created allowing Good Health Cardiology to monitor Fit4Life-assigned Tasks and GetFit to monitor Tasks assigned to it hosted on Good Health Cardiology" ] ;
    ( fhir:step [
fhir:operation [
fhir:number [ fhir:v "1" ] ;
fhir:type [ fhir:v "create" ] ;
fhir:name [ fhir:v "Create service provider-monitoring Subscription" ] ;
fhir:initiator [ fhir:v "goodCardio" ] ;
fhir:receiver [ fhir:v "Fit4Life" ] ;
fhir:description [ fhir:v "EHR posts Subscription to Fit 4 Life to monitor Tasks. Request: `POST https://fit4life.example.org/fhir/Subscription`  Response: `201 Created`" ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen2SubscriptionEhr" ]         ]       ]     ] [
fhir:operation [
fhir:number [ fhir:v "2" ] ;
fhir:type [ fhir:v "create" ] ;
fhir:name [ fhir:v "Create EHR-monitoring Subscription" ] ;
fhir:initiator [ fhir:v "getFit" ] ;
fhir:receiver [ fhir:v "goodCardio" ] ;
fhir:description [ fhir:v "Get Fit Training posts Subscription to EHR to monitor Tasks. Request: `POST https://goodCardio.example.org/fhir/Subscription`  Response: `201 Created`" ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen2SubscriptionGetFit" ]         ]       ]     ] )
  ] [
fhir:title [ fhir:v "1 Hour after appointment" ] ;
fhir:preConditions [ fhir:v "EHR has completed the appointment with the patient" ] ;
fhir:postConditions [ fhir:v "EHR has retrieved list of personal trainers and notified GetFit of new Task" ] ;
    ( fhir:step [
fhir:operation [
fhir:number [ fhir:v "3" ] ;
fhir:type [ fhir:v "search-type" ] ;
fhir:name [ fhir:v "Retrieve service provider list" ] ;
fhir:initiator [ fhir:v "goodCardio" ] ;
fhir:receiver [ fhir:v "registry" ] ;
fhir:description [ fhir:v "Search to retrieve list of Service Providers for personal trainers near Mrs. Johansson." ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen2query1" ]         ] ;
fhir:response [
fhir:resourceId [ fhir:v "Scen2PractitionerTrainerSearchsetBundle" ]         ]       ]     ] [
fhir:operation [
fhir:number [ fhir:v "4" ] ;
fhir:type [ fhir:v "create" ] ;
fhir:name [ fhir:v "Subscription notification of new Task" ] ;
fhir:initiator [ fhir:v "goodCardio" ] ;
fhir:receiver [ fhir:v "getFit" ] ;
fhir:description [ fhir:v "Service provider is notified of new Task via subscription. Request: `POST https://fit4life.example.org/fhir/Subscription`  Response: `201 Created`" ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen2SubscriptionNotificationNewTaskBundle" ]         ]       ]     ] )
  ] [
fhir:title [ fhir:v "1 Day after appointment" ] ;
fhir:preConditions [ fhir:v "GetFit has received the notification of new Task" ] ;
fhir:postConditions [ fhir:v "GetFit has queried Task, associated ServiceRequest and Patient; and updated Task to refused" ] ;
    ( fhir:step [
fhir:operation [
fhir:number [ fhir:v "5" ] ;
fhir:type [ fhir:v "search-type" ] ;
fhir:name [ fhir:v "Getfit retrieves referral" ] ;
fhir:initiator [ fhir:v "getFit" ] ;
fhir:receiver [ fhir:v "goodCardio" ] ;
fhir:description [ fhir:v "GetFit retrieves the referenced Task and its associated ServiceRequest and Patient." ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen2query2" ]         ] ;
fhir:response [
fhir:resourceId [ fhir:v "Scen2TaskGetFitResponseBundle" ]         ]       ]     ] [
fhir:operation [
fhir:number [ fhir:v "6" ] ;
fhir:type [ fhir:v "update" ] ;
fhir:name [ fhir:v "GetFit refuses task" ] ;
fhir:initiator [ fhir:v "getFit" ] ;
fhir:receiver [ fhir:v "goodCardio" ] ;
fhir:description [ fhir:v "GetFit updates the Task status to 'refused' with a reason.  Request: `PUT https://goodCardio.example.org/fhir/Task/Scen2TaskGetFitV1` Response: `200 Ok`" ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen2TaskGetFit" ] ;
fhir:versionId [ fhir:v "2" ]         ]       ]     ] )
  ] [
fhir:title [ fhir:v "An Hour later" ] ;
fhir:preConditions [ fhir:v "EHR has a Task seeking fulfillment of ServiceRequest for Fit4Life" ] ;
fhir:postConditions [ fhir:v "Fit4Life has retrieved ServiceRequest, Patient, Conditions, Observations, and updated Task" ] ;
    ( fhir:step [
fhir:operation [
fhir:number [ fhir:v "7" ] ;
fhir:type [ fhir:v "create" ] ;
fhir:name [ fhir:v "Create Task on Fit4Life" ] ;
fhir:initiator [ fhir:v "goodCardio" ] ;
fhir:receiver [ fhir:v "Fit4Life" ] ;
fhir:description [ fhir:v "New Task is created directly on Fit4Life's server.  Request: `POST https://fit4life.example.org/fhir/Task` Response: `201 Created`" ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen2TaskFit4Life" ] ;
fhir:versionId [ fhir:v "1" ]         ]       ]     ] [
fhir:operation [
fhir:number [ fhir:v "8" ] ;
fhir:type [ fhir:v "search-type" ] ;
fhir:name [ fhir:v "Fit4Life retrieves referral" ] ;
fhir:initiator [ fhir:v "Fit4Life" ] ;
fhir:receiver [ fhir:v "goodCardio" ] ;
fhir:description [ fhir:v "Fit4Life retrieves the ServiceRequest and Patient referenced by the Task." ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen2query3" ]         ] ;
fhir:response [
fhir:resourceId [ fhir:v "Scen2ReferralFit4LifeResponseBundle" ]         ]       ]     ] [
fhir:operation [
fhir:number [ fhir:v "9" ] ;
fhir:type [ fhir:v "search-type" ] ;
fhir:name [ fhir:v "Fit4Life retrieves conditions" ] ;
fhir:initiator [ fhir:v "Fit4Life" ] ;
fhir:receiver [ fhir:v "goodCardio" ] ;
fhir:description [ fhir:v "Fit4Life retrieves the physical-activity related Conditions associated with the patient." ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen2query4" ]         ] ;
fhir:response [
fhir:resourceId [ fhir:v "Scen2ConditionResponseBundle" ]         ]       ]     ] [
fhir:operation [
fhir:number [ fhir:v "10" ] ;
fhir:type [ fhir:v "search-type" ] ;
fhir:name [ fhir:v "Fit4Life retrieves referral" ] ;
fhir:initiator [ fhir:v "Fit4Life" ] ;
fhir:receiver [ fhir:v "goodCardio" ] ;
fhir:description [ fhir:v "Fit4Life retrieves the physical-activity related Observations associated with the patient.  (In practice there would typically be more than are shown here, and some might not be for profiles defined in this IG.)" ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen2query5" ]         ] ;
fhir:response [
fhir:resourceId [ fhir:v "Scen2ObservationResponseBundle" ]         ]       ]     ] [
fhir:operation [
fhir:number [ fhir:v "11" ] ;
fhir:type [ fhir:v "create" ] ;
fhir:name [ fhir:v "EHR gets referral acceptance" ] ;
fhir:initiator [ fhir:v "Fit4Life" ] ;
fhir:receiver [ fhir:v "goodCardio" ] ;
fhir:description [ fhir:v "A subscription notification to the EHR is triggered when Fit4Life changes the prescription status to 'accepted'.  Request: `POST https://goodCardio.example.org/mySubscriptions` Response: `200 Ok`" ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen2NotificationUpdatedTaskBundle" ]         ]       ]     ] [
fhir:operation [
fhir:number [ fhir:v "12" ] ;
fhir:type [ fhir:v "search-type" ] ;
fhir:name [ fhir:v "EHR retrieves accepted Task" ] ;
fhir:initiator [ fhir:v "goodCardio" ] ;
fhir:receiver [ fhir:v "Fit4Life" ] ;
fhir:description [ fhir:v "EHR retrieves the Task referenced by the subscription notification" ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen2query6" ]         ] ;
fhir:response [
fhir:resourceId [ fhir:v "Scen2TaskEHRResponseBundle1" ]         ]       ]     ] )
  ] [
fhir:title [ fhir:v "2 Months Later" ] ;
fhir:preConditions [ fhir:v "Fit4Life has updated the Task" ] ;
fhir:postConditions [ fhir:v "EHR has retrieved the completed Task, DiagnosticReport, and associated Observations" ] ;
    ( fhir:step [
fhir:operation [
fhir:number [ fhir:v "13" ] ;
fhir:type [ fhir:v "create" ] ;
fhir:name [ fhir:v "EHR gets referral acceptance" ] ;
fhir:initiator [ fhir:v "Fit4Life" ] ;
fhir:receiver [ fhir:v "goodCardio" ] ;
fhir:description [ fhir:v "A subscription notification to the EHR is triggered when Fit4Life changes the Task status to 'completed'.  Request: `POST https://goodCardio.example.org/mySubscriptions` Response: `200 Ok`" ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen2NotificationCompletedTaskBundle" ]         ]       ]     ] [
fhir:operation [
fhir:number [ fhir:v "14" ] ;
fhir:type [ fhir:v "search-type" ] ;
fhir:name [ fhir:v "EHR retrieves completed Task" ] ;
fhir:initiator [ fhir:v "goodCardio" ] ;
fhir:receiver [ fhir:v "Fit4Life" ] ;
fhir:description [ fhir:v "EHR retrieves the Task referenced by the subscription notification" ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen2query6" ]         ] ;
fhir:response [
fhir:resourceId [ fhir:v "Scen2TaskEHRResponseBundle2" ]         ]       ]     ] [
fhir:operation [
fhir:number [ fhir:v "15" ] ;
fhir:type [ fhir:v "search-type" ] ;
fhir:name [ fhir:v "EHR retrieves report" ] ;
fhir:initiator [ fhir:v "goodCardio" ] ;
fhir:receiver [ fhir:v "Fit4Life" ] ;
fhir:description [ fhir:v "EHR retrieves the Fit4Life DiagnosticReport using the id provided in the Task.  It also uses _include to retrieve referenced observations" ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen2query7" ]         ] ;
fhir:response [
fhir:resourceId [ fhir:v "Scen2DiagnosticReportObservationsResponseBundle" ]         ]       ]     ] )
  ] ) . #