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 in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

: Scenario 5 - Patient-Provider Communication on Activity and Blood Glucose Observations - 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 "Scen5ActivityAndGlucoseObservations"] ; # 
  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=\"Scen5ActivityAndGlucoseObservations\"> </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;Scen5ActivityAndGlucoseObservations&quot; </p></div><p><b>url</b>: <code>http://hl7.org/fhir/us/physical-activity/ExampleScenario/Scen5ActivityAndGlucoseObservations</code></p><p><b>version</b>: 1.0.0</p><p><b>name</b>: PatientProviderCommunicationonActivityandBloodGlucoseObservations</p><p><b>status</b>: draft</p><p><b>experimental</b>: true</p><p><b>date</b>: 2023-08-25 15:35:25+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>: Rosalie's phone app</p><p><b>description</b>: An app on Rosalie's phone with access to Nadia's record</p></blockquote><blockquote><p><b>actor</b></p><p><b>actorId</b>: flores-ehr</p><p><b>type</b>: entity</p><p><b>name</b>: Mercy Clinic</p><p><b>description</b>: System that manages data for Dr. Flores's clinic</p></blockquote><blockquote><p><b>actor</b></p><p><b>actorId</b>: shea-ehr</p><p><b>type</b>: entity</p><p><b>name</b>: Mrs. O’Shea's app</p><p><b>description</b>: System that manages data for Mrs. O'She's practice</p></blockquote><blockquote><p><b>instance</b></p><p><b>resourceId</b>: Scen5query1</p><p><b>resourceType</b>: Binary</p><p><b>name</b>: Query for PA and blood glucose observations</p><p><b>description</b>: Query for observations that Mrs. O'Shea has access to related to Rosalie: `GET https://mercy.example.org/fhir/Observation?patient=Patient/Scen5PatientRosalie&amp;status=completed,amended,corrected&amp;category=http%3A//hl7.org/fhir/us/physical-activity/CodeSystem/pa-temporary-codes|PhysicalActivity,http%3A//terminology.hl7.org/CodeSystem/observation-category|laboratory`</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen5ObsBloodGlucose.html\">Observation/Scen5ObsBloodGlucose</a></p><p><b>resourceId</b>: Scen5ObsBloodGlucose</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Blood Glucose Observation for Rosalie</p><p><b>description</b>: Sample blood-glucose level captured for Rosalie by her mother.  (In practice there would be many.)</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen5ObsActivityGroup.html\">Observation/Scen5ObsActivityGroup</a></p><p><b>resourceId</b>: Scen5ObsActivityGroup</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Activity Panel Observation for Rosalie</p><p><b>description</b>: Sample collection of information about one of Rosalie's exercise activities as recorded by her mother.  (In practice there would be many.)</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen5ObsActivityType.html\">Observation/Scen5ObsActivityType</a></p><p><b>resourceId</b>: Scen5ObsActivityType</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Activity Type Observation for Rosalie</p><p><b>description</b>: Sample record of what type of exercise activity Rosalie was doing as recorded by her mother.  (In practice there would be many.)</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen5ObsActivityDuration.html\">Observation/Scen5ObsActivityDuration</a></p><p><b>resourceId</b>: Scen5ObsActivityDuration</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Activity Duration Observation for Rosalie</p><p><b>description</b>: Sample record of the duration of exercise activity Rosalie was doing as recorded by her mother.  (In practice there would be many.)</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen5ObsActivityModerate.html\">Observation/Scen5ObsActivityModerate</a></p><p><b>resourceId</b>: Scen5ObsActivityModerate</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Moderate Duation Observation for Rosalie</p><p><b>description</b>: Sample record of the duration of moderate exercise activity Rosalie was doing as recorded by her mother.  (In practice there would be many.)</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen5ObsActivityVigorous.html\">Observation/Scen5ObsActivityVigorous</a></p><p><b>resourceId</b>: Scen5ObsActivityVigorous</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Vigorous Duration Observation for Rosalie</p><p><b>description</b>: Sample record of the duration of vigorous exercise activity Rosalie was doing as recorded by her mother.  (In practice there would be many.)</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Observation-Scen5ObsActivityMeanHR.html\">Observation/Scen5ObsActivityMeanHR</a></p><p><b>resourceId</b>: Scen5ObsActivityMeanHR</p><p><b>resourceType</b>: Observation</p><p><b>name</b>: Mean Heart Rate Observation for Rosalie</p><p><b>description</b>: Sample record of Rosalie's average heart rate during her exercise activity as recorded by her mother.  (In practice there would be many.)</p></blockquote><blockquote><p><b>instance</b></p><p><b>Extension Definition for ExampleScenario.instance.content for Version 5.0</b>: <a href=\"Bundle-Scen5ObservationsResponseBundle.html\">Bundle/Scen5ObservationsResponseBundle</a></p><p><b>resourceId</b>: Scen5ObservationsResponseBundle</p><p><b>resourceType</b>: Bundle</p><p><b>name</b>: Observations retrieved by Mrs. O'Shea</p><p><b>description</b>: Search-set Bundle returning Rosalie's observations (that Mrs. O'Shea 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>Scen5ObsActivityMeanHR</td></tr></table></blockquote><blockquote><p><b>process</b></p><p><b>title</b>: Observation Creation</p><p><b>description</b>: Nadia records observations for Rosalie.  While only a limited number of records are captured here, in practice there would likely be multiple glucose readings and activity entries per day every day.</p><p><b>preConditions</b>: Nadia has credentials on Dr. Flores's EHR system.</p><p><b>postConditions</b>: Dr. Flores's system has detailed records of Rosalie's blood glucose readings and exercise levels.</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>: Record blood glucose</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: flores-ehr</p><p><b>description</b>: Nadia's app transmits Rosalie's blood glucose measurement to Dr. Flores's EHR.  (NOTE: This type of data is outside the scope of this IG, but is covered by US Core.) Request: `POST https://mercy.example.org/fhir/Observation`  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>Scen5ObsBloodGlucose</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>: Record activity group</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: flores-ehr</p><p><b>description</b>: Nadia's app transmits a grouper describing Rosalie's exercise to Dr. Flores's EHR. Request: `POST https://mercy.example.org/fhir/Observation`  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>Scen5ObsActivityGroup</td></tr></table></blockquote></blockquote><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>: Record activity type</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: flores-ehr</p><p><b>description</b>: Nadia's app transmits Rosalie's type of exercise to Dr. Flores's EHR. Request: `POST https://mercy.example.org/fhir/Observation`  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>Scen5ObsActivityType</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>: Record activity duration</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: flores-ehr</p><p><b>description</b>: Nadia's app transmits Rosalie's duration of exercise to Dr. Flores's EHR. Request: `POST https://mercy.example.org/fhir/Observation`  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>Scen5ObsActivityDuration</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>: Record moderate activity</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: flores-ehr</p><p><b>description</b>: Nadia's app transmits Rosalie's duration of moderate exercise to Dr. Flores's EHR. Request: `POST https://mercy.example.org/fhir/Observation`  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>Scen5ObsActivityModerate</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>: create</p><p><b>name</b>: Record vigorous activity</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: flores-ehr</p><p><b>description</b>: Nadia's app transmits Rosalie's duration of vigorous exercise to Dr. Flores's EHR. Request: `POST https://mercy.example.org/fhir/Observation`  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>Scen5ObsActivityVigorous</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>: Record mean heart rate</p><p><b>initiator</b>: patient-app</p><p><b>receiver</b>: flores-ehr</p><p><b>description</b>: Nadia's app transmits Rosalie's average heart rate during exercise to Dr. Flores's EHR. Request: `POST https://mercy.example.org/fhir/Observation`  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>Scen5ObsActivityMeanHR</td></tr></table></blockquote></blockquote></blockquote><blockquote><p><b>process</b></p><p><b>title</b>: Observation Retrieval</p><p><b>description</b>: Mrs. O'Shea uses her app retrieves the observations created by Nadia from Dr. Flores's EHR.</p><p><b>preConditions</b>: Mrs. O'Shea has permision to retrieve certain types observations for Rosalie.  (There would generally need to be a consent on file with Dr. Flores's clinic.)</p><p><b>postConditions</b>: Mrs. O'Shea can see the observations about Rosalie.</p><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>: Retrieve Rosalie's observations</p><p><b>initiator</b>: shea-ehr</p><p><b>receiver</b>: flores-ehr</p><p><b>description</b>: Search to retrieve observations about Rosalie that Mrs. O'Shea has a right to see.</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>Scen5query1</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>Scen5ObservationsResponseBundle</td></tr></table></blockquote></blockquote></blockquote></div>"
  ] ; # 
  fhir:url [ fhir:v "http://hl7.org/fhir/us/physical-activity/ExampleScenario/Scen5ActivityAndGlucoseObservations"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "1.0.0"] ; # 
  fhir:name [ fhir:v "PatientProviderCommunicationonActivityandBloodGlucoseObservations"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:experimental [ fhir:v "true"^^xsd:boolean] ; # 
  fhir:date [ fhir:v "2023-08-25T15:35:25+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "HL7 International - Patient Care WG"] ; # 
  fhir:contact ( [
fhir:name [ fhir:v "HL7 International - Patient Care WG" ] ;
    ( 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 "patient-app" ] ;
fhir:type [ fhir:v "entity" ] ;
fhir:name [ fhir:v "Rosalie's phone app" ] ;
fhir:description [ fhir:v "An app on Rosalie's phone with access to Nadia's record" ]
  ] [
fhir:actorId [ fhir:v "flores-ehr" ] ;
fhir:type [ fhir:v "entity" ] ;
fhir:name [ fhir:v "Mercy Clinic" ] ;
fhir:description [ fhir:v "System that manages data for Dr. Flores's clinic" ]
  ] [
fhir:actorId [ fhir:v "shea-ehr" ] ;
fhir:type [ fhir:v "entity" ] ;
fhir:name [ fhir:v "Mrs. O’Shea's app" ] ;
fhir:description [ fhir:v "System that manages data for Mrs. O'She's practice" ]
  ] ) ; # 
  fhir:instance ( [
fhir:resourceId [ fhir:v "Scen5query1" ] ;
fhir:resourceType [ fhir:v "Binary" ] ;
fhir:name [ fhir:v "Query for PA and blood glucose observations" ] ;
fhir:description [ fhir:v "Query for observations that Mrs. O'Shea has access to related to Rosalie: `GET https://mercy.example.org/fhir/Observation?patient=Patient/Scen5PatientRosalie&status=completed,amended,corrected&category=http%3A//hl7.org/fhir/us/physical-activity/CodeSystem/pa-temporary-codes|PhysicalActivity,http%3A//terminology.hl7.org/CodeSystem/observation-category|laboratory`" ]
  ] [
    ( 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/Scen5ObsBloodGlucose" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen5ObsBloodGlucose" ] ;
fhir:resourceType [ fhir:v "Observation" ] ;
fhir:name [ fhir:v "Blood Glucose Observation for Rosalie" ] ;
fhir:description [ fhir:v "Sample blood-glucose level captured for Rosalie by her mother.  (In practice there would be many.)" ]
  ] [
    ( 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/Scen5ObsActivityGroup" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen5ObsActivityGroup" ] ;
fhir:resourceType [ fhir:v "Observation" ] ;
fhir:name [ fhir:v "Activity Panel Observation for Rosalie" ] ;
fhir:description [ fhir:v "Sample collection of information about one of Rosalie's exercise activities as recorded by her mother.  (In practice there would be many.)" ]
  ] [
    ( 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/Scen5ObsActivityType" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen5ObsActivityType" ] ;
fhir:resourceType [ fhir:v "Observation" ] ;
fhir:name [ fhir:v "Activity Type Observation for Rosalie" ] ;
fhir:description [ fhir:v "Sample record of what type of exercise activity Rosalie was doing as recorded by her mother.  (In practice there would be many.)" ]
  ] [
    ( 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/Scen5ObsActivityDuration" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen5ObsActivityDuration" ] ;
fhir:resourceType [ fhir:v "Observation" ] ;
fhir:name [ fhir:v "Activity Duration Observation for Rosalie" ] ;
fhir:description [ fhir:v "Sample record of the duration of exercise activity Rosalie was doing as recorded by her mother.  (In practice there would be many.)" ]
  ] [
    ( 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/Scen5ObsActivityModerate" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen5ObsActivityModerate" ] ;
fhir:resourceType [ fhir:v "Observation" ] ;
fhir:name [ fhir:v "Moderate Duation Observation for Rosalie" ] ;
fhir:description [ fhir:v "Sample record of the duration of moderate exercise activity Rosalie was doing as recorded by her mother.  (In practice there would be many.)" ]
  ] [
    ( 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/Scen5ObsActivityVigorous" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen5ObsActivityVigorous" ] ;
fhir:resourceType [ fhir:v "Observation" ] ;
fhir:name [ fhir:v "Vigorous Duration Observation for Rosalie" ] ;
fhir:description [ fhir:v "Sample record of the duration of vigorous exercise activity Rosalie was doing as recorded by her mother.  (In practice there would be many.)" ]
  ] [
    ( 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/Scen5ObsActivityMeanHR" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen5ObsActivityMeanHR" ] ;
fhir:resourceType [ fhir:v "Observation" ] ;
fhir:name [ fhir:v "Mean Heart Rate Observation for Rosalie" ] ;
fhir:description [ fhir:v "Sample record of Rosalie's average heart rate during her exercise activity as recorded by her mother.  (In practice there would be many.)" ]
  ] [
    ( 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/Scen5ObservationsResponseBundle" ]       ]     ] ) ;
fhir:resourceId [ fhir:v "Scen5ObservationsResponseBundle" ] ;
fhir:resourceType [ fhir:v "Bundle" ] ;
fhir:name [ fhir:v "Observations retrieved by Mrs. O'Shea" ] ;
fhir:description [ fhir:v "Search-set Bundle returning Rosalie's observations (that Mrs. O'Shea has access to)" ] ;
    ( fhir:containedInstance [
fhir:resourceId [ fhir:v "Scen5ObsActivityMeanHR" ]     ] )
  ] ) ; # 
  fhir:process ( [
fhir:title [ fhir:v "Observation Creation" ] ;
fhir:description [ fhir:v "Nadia records observations for Rosalie.  While only a limited number of records are captured here, in practice there would likely be multiple glucose readings and activity entries per day every day." ] ;
fhir:preConditions [ fhir:v "Nadia has credentials on Dr. Flores's EHR system." ] ;
fhir:postConditions [ fhir:v "Dr. Flores's system has detailed records of Rosalie's blood glucose readings and exercise levels." ] ;
    ( fhir:step [
fhir:operation [
fhir:number [ fhir:v "1" ] ;
fhir:type [ fhir:v "create" ] ;
fhir:name [ fhir:v "Record blood glucose" ] ;
fhir:initiator [ fhir:v "patient-app" ] ;
fhir:receiver [ fhir:v "flores-ehr" ] ;
fhir:description [ fhir:v "Nadia's app transmits Rosalie's blood glucose measurement to Dr. Flores's EHR.  (NOTE: This type of data is outside the scope of this IG, but is covered by US Core.) Request: `POST https://mercy.example.org/fhir/Observation`  Response: `201 Created`" ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen5ObsBloodGlucose" ]         ]       ]     ] [
fhir:operation [
fhir:number [ fhir:v "2" ] ;
fhir:type [ fhir:v "create" ] ;
fhir:name [ fhir:v "Record activity group" ] ;
fhir:initiator [ fhir:v "patient-app" ] ;
fhir:receiver [ fhir:v "flores-ehr" ] ;
fhir:description [ fhir:v "Nadia's app transmits a grouper describing Rosalie's exercise to Dr. Flores's EHR. Request: `POST https://mercy.example.org/fhir/Observation`  Response: `201 Created`" ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen5ObsActivityGroup" ]         ]       ]     ] [
fhir:operation [
fhir:number [ fhir:v "3" ] ;
fhir:type [ fhir:v "create" ] ;
fhir:name [ fhir:v "Record activity type" ] ;
fhir:initiator [ fhir:v "patient-app" ] ;
fhir:receiver [ fhir:v "flores-ehr" ] ;
fhir:description [ fhir:v "Nadia's app transmits Rosalie's type of exercise to Dr. Flores's EHR. Request: `POST https://mercy.example.org/fhir/Observation`  Response: `201 Created`" ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen5ObsActivityType" ]         ]       ]     ] [
fhir:operation [
fhir:number [ fhir:v "4" ] ;
fhir:type [ fhir:v "create" ] ;
fhir:name [ fhir:v "Record activity duration" ] ;
fhir:initiator [ fhir:v "patient-app" ] ;
fhir:receiver [ fhir:v "flores-ehr" ] ;
fhir:description [ fhir:v "Nadia's app transmits Rosalie's duration of exercise to Dr. Flores's EHR. Request: `POST https://mercy.example.org/fhir/Observation`  Response: `201 Created`" ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen5ObsActivityDuration" ]         ]       ]     ] [
fhir:operation [
fhir:number [ fhir:v "5" ] ;
fhir:type [ fhir:v "create" ] ;
fhir:name [ fhir:v "Record moderate activity" ] ;
fhir:initiator [ fhir:v "patient-app" ] ;
fhir:receiver [ fhir:v "flores-ehr" ] ;
fhir:description [ fhir:v "Nadia's app transmits Rosalie's duration of moderate exercise to Dr. Flores's EHR. Request: `POST https://mercy.example.org/fhir/Observation`  Response: `201 Created`" ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen5ObsActivityModerate" ]         ]       ]     ] [
fhir:operation [
fhir:number [ fhir:v "6" ] ;
fhir:type [ fhir:v "create" ] ;
fhir:name [ fhir:v "Record vigorous activity" ] ;
fhir:initiator [ fhir:v "patient-app" ] ;
fhir:receiver [ fhir:v "flores-ehr" ] ;
fhir:description [ fhir:v "Nadia's app transmits Rosalie's duration of vigorous exercise to Dr. Flores's EHR. Request: `POST https://mercy.example.org/fhir/Observation`  Response: `201 Created`" ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen5ObsActivityVigorous" ]         ]       ]     ] [
fhir:operation [
fhir:number [ fhir:v "7" ] ;
fhir:type [ fhir:v "create" ] ;
fhir:name [ fhir:v "Record mean heart rate" ] ;
fhir:initiator [ fhir:v "patient-app" ] ;
fhir:receiver [ fhir:v "flores-ehr" ] ;
fhir:description [ fhir:v "Nadia's app transmits Rosalie's average heart rate during exercise to Dr. Flores's EHR. Request: `POST https://mercy.example.org/fhir/Observation`  Response: `201 Created`" ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen5ObsActivityMeanHR" ]         ]       ]     ] )
  ] [
fhir:title [ fhir:v "Observation Retrieval" ] ;
fhir:description [ fhir:v "Mrs. O'Shea uses her app retrieves the observations created by Nadia from Dr. Flores's EHR." ] ;
fhir:preConditions [ fhir:v "Mrs. O'Shea has permision to retrieve certain types observations for Rosalie.  (There would generally need to be a consent on file with Dr. Flores's clinic.)" ] ;
fhir:postConditions [ fhir:v "Mrs. O'Shea can see the observations about Rosalie." ] ;
    ( fhir:step [
fhir:operation [
fhir:number [ fhir:v "8" ] ;
fhir:type [ fhir:v "search-type" ] ;
fhir:name [ fhir:v "Retrieve Rosalie's observations" ] ;
fhir:initiator [ fhir:v "shea-ehr" ] ;
fhir:receiver [ fhir:v "flores-ehr" ] ;
fhir:description [ fhir:v "Search to retrieve observations about Rosalie that Mrs. O'Shea has a right to see." ] ;
fhir:request [
fhir:resourceId [ fhir:v "Scen5query1" ]         ] ;
fhir:response [
fhir:resourceId [ fhir:v "Scen5ObservationsResponseBundle" ]         ]       ]     ] )
  ] ) . #