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 App State - 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:Basic;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "app-state"]; # 
  fhir:DomainResource.extension [
     fhir:index 0;
     fhir:Extension.url [ fhir:value "https://myapp.example.org/display-preferences-v2.0.1" ];
     fhir:Extension.valueString [ fhir:value "{\"defaultView\":\"problem-list\",\"colorblindMode\":\"D\",\"resultsPerPage\":150}" ]
  ]; # 
  fhir:Basic.code [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "https://myapp.example.org" ];
       fhir:Coding.code [ fhir:value "display-preferences" ]     ]
  ]; # 
  fhir:Basic.subject [
     fhir:link <https://ehr.example.org/fhir/Practitioner/123>;
     fhir:Reference.reference [ fhir:value "https://ehr.example.org/fhir/Practitioner/123" ]
  ]. # 

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

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