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

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

: Bundle (Search Set) - Task - TTL Representation

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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

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

 a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ExampleBundleTaskSearchResponse"] ; # 
  fhir:type [ fhir:v "searchset"] ; # 
  fhir:total [ fhir:v "1"^^xsd:nonNegativeInteger] ; # 
  fhir:link ( [
fhir:relation [ fhir:v "self" ] ;
fhir:url [ fhir:v "https://example.org/fhir/Task?_id=ExampleFulfillmentTask&patient=http://example.org/fhir/Patient/1&_include=Task.focus"^^xsd:anyURI ]
  ] ) ; # 
  fhir:entry ( [
fhir:fullUrl [ fhir:v "https://example.org/fhir/Task/ExampleFulfillmentTask"^^xsd:anyURI ] ;
    ( fhir:resource <https://example.org/fhir/Task/ExampleFulfillmentTask> ) ;
fhir:search [
fhir:mode [ fhir:v "match" ]     ]
  ] [
fhir:fullUrl [ fhir:v "https://example.org/fhir/ServiceRequest/ExampleServiceRequest"^^xsd:anyURI ] ;
    ( fhir:resource <https://example.org/fhir/ServiceRequest/ExampleServiceRequest> ) ;
fhir:search [
fhir:mode [ fhir:v "include" ]     ]
  ] ) . # 

<https://example.org/fhir/Task/ExampleFulfillmentTask> a fhir:Task ;
  fhir:id [ fhir:v "ExampleFulfillmentTask"] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: Task</b><a name=\"ExampleFulfillmentTask\"> </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 Task &quot;ExampleFulfillmentTask&quot; </p></div><p><b>status</b>: in-progress</p><p><b>businessStatus</b>: Attended orientation meeting <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ()</span></p><p><b>intent</b>: order</p><p><b>priority</b>: routine</p><p><b>focus</b>: <a href=\"#ServiceRequest_ExampleServiceRequest\">See above (ServiceRequest/ExampleServiceRequest: Referral)</a></p><p><b>for</b>: <a href=\"http://example.org/fhir/Patient/1\">http://example.org/fhir/Patient/1: Example Patient</a></p><p><b>authoredOn</b>: 2022-06-08</p><p><b>requester</b>: <a href=\"http://example.org/fhir/Organization/1\">http://example.org/fhir/Organization/1: Requesting Organization</a></p><p><b>owner</b>: <a href=\"http://example.org/fhir/Organization/2\">http://example.org/fhir/Organization/2: Performing Organization</a></p><p><b>note</b>: Orientation went well.  Patient is looking forward to attending class. (By http://example.org/fhir/PractitionerRole/2 @2022-06-17)</p></div>"
  ] ; # 
  fhir:status [ fhir:v "in-progress"] ; # 
  fhir:businessStatus [
fhir:text [ fhir:v "Attended orientation meeting" ]
  ] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  fhir:priority [ fhir:v "routine"] ; # 
  fhir:focus [
fhir:reference [ fhir:v "ServiceRequest/ExampleServiceRequest" ] ;
fhir:display [ fhir:v "Referral" ]
  ] ; # 
  fhir:for [
fhir:link <http://example.org/fhir/Patient/1> ;
fhir:reference [ fhir:v "http://example.org/fhir/Patient/1" ] ;
fhir:display [ fhir:v "Example Patient" ]
  ] ; # 
  fhir:authoredOn [ fhir:v "2022-06-08"^^xsd:date] ; # 
  fhir:requester [
fhir:link <http://example.org/fhir/Organization/1> ;
fhir:reference [ fhir:v "http://example.org/fhir/Organization/1" ] ;
fhir:display [ fhir:v "Requesting Organization" ]
  ] ; # 
  fhir:owner [
fhir:link <http://example.org/fhir/Organization/2> ;
fhir:reference [ fhir:v "http://example.org/fhir/Organization/2" ] ;
fhir:display [ fhir:v "Performing Organization" ]
  ] ; # 
  fhir:note ( [
fhir:author [
a fhir:Reference ;
fhir:link <http://example.org/fhir/PractitionerRole/2> ;
fhir:reference [ fhir:v "http://example.org/fhir/PractitionerRole/2" ] ;
fhir:display [ fhir:v "Performing Provider" ]     ] ;
fhir:time [ fhir:v "2022-06-17"^^xsd:date ] ;
fhir:text [ fhir:v "Orientation went well.  Patient is looking forward to attending class." ]
  ] ) . # 

<https://example.org/fhir/ServiceRequest/ExampleServiceRequest> a fhir:ServiceRequest ;
  fhir:id [ fhir:v "ExampleServiceRequest"] ; # 
  fhir:text [
fhir:status [ fhir:v "extensions" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: ServiceRequest</b><a name=\"ExampleServiceRequest\"> </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 ServiceRequest &quot;ExampleServiceRequest&quot; </p></div><p><b>pertains to goal</b>: <a href=\"Goal-ExampleGoal.html\">Goal/ExampleGoal</a></p><p><b>status</b>: active</p><p><b>intent</b>: original-order</p><p><b>category</b>: Counseling <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://browser.ihtsdotools.org/\">SNOMED CT</a>#409063005)</span>, Physical Activity <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-pa-temporary-codes.html\">Temporary Codes</a>#PhysicalActivity)</span></p><p><b>priority</b>: routine</p><p><b>code</b>: Referral to physical activity program (Procedure) <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://browser.ihtsdotools.org/\">SNOMED CT</a>#390893007)</span></p><p><b>subject</b>: <a href=\"http://example.org/fhir/Patient/1\">http://example.org/fhir/Patient/1: Example Patient</a></p><p><b>occurrence</b>: 2022-06-08 --&gt; 2022-08-01</p><p><b>authoredOn</b>: 2022-06-08</p><p><b>requester</b>: <a href=\"http://example.org/fhir/PractitionerRole/1\">http://example.org/fhir/PractitionerRole/1: Ordering Clinician</a></p><p><b>performer</b>: <a href=\"http://example.org/fhir/Organization/1\">http://example.org/fhir/Organization/1</a></p><p><b>reasonReference</b>: <a href=\"Condition-ExampleCondition.html\">Condition/ExampleCondition</a></p></div>"
  ] ; # 
  fhir:extension ( [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/resource-pertainsToGoal"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Goal/ExampleGoal" ]     ]
  ] ) ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:intent [ fhir:v "original-order"] ; # 
  fhir:category ( [
    ( fhir:coding [
a sct:409063005 ;
fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
fhir:code [ fhir:v "409063005" ] ;
fhir:display [ fhir:v "Counseling" ]     ] )
  ] [
    ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/us/physical-activity/CodeSystem/pa-temporary-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "PhysicalActivity" ]     ] )
  ] ) ; # 
  fhir:priority [ fhir:v "routine"] ; # 
  fhir:code [
    ( fhir:coding [
a sct:390893007 ;
fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
fhir:code [ fhir:v "390893007" ] ;
fhir:display [ fhir:v "Referral to physical activity program (Procedure)" ]     ] )
  ] ; # 
  fhir:subject [
fhir:link <http://example.org/fhir/Patient/1> ;
fhir:reference [ fhir:v "http://example.org/fhir/Patient/1" ] ;
fhir:display [ fhir:v "Example Patient" ]
  ] ; # 
  fhir:occurrence [
a fhir:Period ;
fhir:start [ fhir:v "2022-06-08"^^xsd:date ] ;
fhir:end [ fhir:v "2022-08-01"^^xsd:date ]
  ] ; # 
  fhir:authoredOn [ fhir:v "2022-06-08"^^xsd:date] ; # 
  fhir:requester [
fhir:link <http://example.org/fhir/PractitionerRole/1> ;
fhir:reference [ fhir:v "http://example.org/fhir/PractitionerRole/1" ] ;
fhir:display [ fhir:v "Ordering Clinician" ]
  ] ; # 
  fhir:performer ( [
fhir:link <http://example.org/fhir/Organization/1> ;
fhir:reference [ fhir:v "http://example.org/fhir/Organization/1" ]
  ] ) ; # 
  fhir:reasonReference ( [
fhir:reference [ fhir:v "Condition/ExampleCondition" ]
  ] ) . #