SMART App Launch
2.2.0-ballot - CI-Build International flag

This page is part of the Smart App Launch Implementation Guide (v2.2.0-ballot: STU 2.2 Ballot 1) based on FHIR (HL7® FHIR® Standard) R4. The current version which supersedes this version is 2.1.0. For a full list of available versions, see the Directory of published versions

: Example Task for EHR Launch - 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 xsd: <http://www.w3.org/2001/XMLSchema#> .

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

 a fhir:Task ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "task-for-ehr-launch"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "http://hl7.org/fhir/smart-app-launch/StructureDefinition/task-ehr-launch"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/smart-app-launch/StructureDefinition/task-ehr-launch>     ] )
  ] ; # 
  fhir:status [ fhir:v "requested"] ; # 
  fhir:intent [ fhir:v "proposal"] ; # 
  fhir:code [
    ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/smart-app-launch/CodeSystem/smart-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "launch-app-ehr" ] ;
fhir:display [ fhir:v "Launch application using the SMART EHR launch" ]     ] )
  ] ; # 
  fhir:for [
fhir:link <https://example.org/fhir/Patient/123> ;
fhir:reference [ fhir:v "https://example.org/fhir/Patient/123" ]
  ] ; # 
  fhir:encounter [
fhir:link <https://example.org/fhir/Encounter/456> ;
fhir:reference [ fhir:v "https://example.org/fhir/Encounter/456" ]
  ] ; # 
  fhir:input ( [
fhir:type [
      ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/smart-app-launch/CodeSystem/smart-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "smartonfhir-application" ] ;
fhir:display [ fhir:v "SMART on FHIR application URL." ]       ] )     ] ;
fhir:value [ fhir:v "https://www.example.org/myapplication"^^xsd:anyURI ]
  ] [
fhir:type [
      ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/smart-app-launch/CodeSystem/smart-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "smartonfhir-appcontext" ] ;
fhir:display [ fhir:v "Application context related to this launch." ]       ] )     ] ;
fhir:value [ fhir:v "{\"field1\":\"value\"}" ]
  ] ) . #