SMART App Launch
2.1.0-ballot - Release International flag

This page is part of the Smart App Launch Implementation Guide (v2.1.0-ballot: STU 2.1 Draft) based on FHIR R4. The current version which supercedes this version is 2.0.0. For a full list of available versions, see the Directory of published versions

: Example Task for Standalone 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:Resource.id [ fhir:value "task-for-standalone-launch"]; # 
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/smart-app-launch/StructureDefinition/task-standalone-launch";
       fhir:index 0;
       fhir:link <http://hl7.org/fhir/smart-app-launch/StructureDefinition/task-standalone-launch>     ]
  ]; # 
  fhir:Task.status [ fhir:value "requested"]; # 
  fhir:Task.intent [ fhir:value "proposal"]; # 
  fhir:Task.code [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://hl7.org/fhir/smart-app-launch/CodeSystem/smart-codes" ];
       fhir:Coding.code [ fhir:value "launch-app-standalone" ];
       fhir:Coding.display [ fhir:value "Launch application using the SMART standalone launch" ]     ]
  ]; # 
  fhir:Task.for [
     fhir:link <https://example.org/fhir/Patient/123>;
     fhir:Reference.reference [ fhir:value "https://example.org/fhir/Patient/123" ]
  ]; # 
  fhir:Task.encounter [
     fhir:link <https://example.org/fhir/Encounter/456>;
     fhir:Reference.reference [ fhir:value "https://example.org/fhir/Encounter/456" ]
  ]; # 
  fhir:Task.input [
     fhir:index 0;
     fhir:Task.input.type [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/smart-app-launch/CodeSystem/smart-codes" ];
         fhir:Coding.code [ fhir:value "smartonfhir-application" ];
         fhir:Coding.display [ fhir:value "SMART on FHIR application URL." ]       ]     ];
     fhir:Task.input.valueUrl [ fhir:value "https://www.example.org/myapplication" ]
  ]. # 

# - ontology header ------------------------------------------------------------

 a owl:Ontology;
  owl:imports fhir:fhir.ttl.