@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 -------------------------------------------------------------------

<http://hl7.org/fhir/smart-app-launch/Task/task-for-ehr-launch> a fhir:Task ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "task-for-ehr-launch"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/smart-app-launch/StructureDefinition/task-ehr-launch" ;
       fhir:index -1 ;
       fhir:link <http://hl7.org/fhir/smart-app-launch/StructureDefinition/task-ehr-launch>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "en"] ;
  fhir:Task.status [ fhir:value "requested"] ;
  fhir:Task.intent [ fhir:value "proposal"] ;
  fhir:Task.code [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://hl7.org/fhir/smart-app-launch/CodeSystem/smart-codes" ] ;
       fhir:Coding.code [ fhir:value "launch-app-ehr" ] ;
       fhir:Coding.display [ fhir:value "Launch application using the SMART EHR 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 -1 ;
     fhir:Task.input.type [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         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" ]
  ], [
     fhir:index -1 ;
     fhir:Task.input.type [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/smart-app-launch/CodeSystem/smart-codes" ] ;
         fhir:Coding.code [ fhir:value "smartonfhir-appcontext" ] ;
         fhir:Coding.display [ fhir:value "Application context related to this launch." ]
       ]
     ] ;
     fhir:Task.input.valueString [ fhir:value "{\"field1\":\"value\"}" ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/smart-app-launch/Task/task-for-ehr-launch.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl ;
  owl:versionIRI <http://build.fhir.org/smart-app-launch/Task/task-for-ehr-launch.ttl> .

# -------------------------------------------------------------------------------------

