Release 4B Ballot #1

This page is part of the FHIR Specification (v4.1.0: Release 4B Ballot #1). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Consent-example-smartonfhir.ttl

Community Based Collaborative Care Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Patient

Raw Turtle (+ also see Turtle/RDF Format Specification)

Template for recording a Smart on FHIR Authorization

@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <http://loinc.org/rdf#> .
@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/Consent/consent-example-smartonfhir> a fhir:Consent;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "consent-example-smartonfhir"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>status</b>: active</p><p><b>scope</b>: <span>Privacy Consent</span></p><p><b>category</b>: <span>Patient Consent</span></p><p><b>patient</b>: <a>Generated Summary: Medical record number: 12345 (USUAL); active; Henry Levin ; gender: male; birthDate: 1932-09-24</a></p><p><b>dateTime</b>: 23 Jun. 2016, 5:02:33 pm</p><p><b>performer</b>: <a>Generated Summary: <span>Emergency Contact</span>; Peter James Chalmers (OFFICIAL); Phone: (03) 5555 6473; gender: male; period: 2012-03-11 --&gt; (ongoing)</a></p><p><b>organization</b>: <a>Generated Summary: id: 91654 (OFFICIAL), id: 17-0112278 (USUAL); <span>University Medical Hospital</span>; name: Burgers University Medical Center; Phone: 022-655 2300</a></p><p><b>policyRule</b>: <span>opt-in</span></p><blockquote><p><b>provision</b></p><p><b>period</b>: 23 Jun. 2016, 5:02:33 pm --&gt; 23 Jun. 2016, 5:32:33 pm</p><h3>Provisions</h3><table><tr><td>-</td></tr><tr><td>*</td></tr></table></blockquote></div>"
  ];
  fhir:Consent.status [ fhir:value "active"];
  fhir:Consent.scope [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/consentscope" ];
       fhir:Coding.code [ fhir:value "patient-privacy" ]
     ]
  ];
  fhir:Consent.category [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       a loinc:59284-0;
       fhir:Coding.system [ fhir:value "http://loinc.org" ];
       fhir:Coding.code [ fhir:value "59284-0" ]
     ]
  ];
  fhir:Consent.patient [
     fhir:link <http://hl7.org/fhir/Patient/xcda>;
     fhir:Reference.reference [ fhir:value "Patient/xcda" ]
  ];
  fhir:Consent.dateTime [ fhir:value "2016-06-23T17:02:33+10:00"^^xsd:dateTime];
  fhir:Consent.performer [
     fhir:index 0;
     fhir:link <http://hl7.org/fhir/RelatedPerson/peter>;
     fhir:Reference.reference [ fhir:value "RelatedPerson/peter" ]
  ];
  fhir:Consent.organization [
     fhir:index 0;
     fhir:link <http://hl7.org/fhir/Organization/f001>;
     fhir:Reference.reference [ fhir:value "Organization/f001" ]
  ];
  fhir:Consent.policyRule [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActCode" ];
       fhir:Coding.code [ fhir:value "OPTIN" ]
     ]
  ];
  fhir:Consent.provision [
     fhir:Consent.provision.period [
       fhir:Period.start [ fhir:value "2016-06-23T17:02:33+10:00"^^xsd:dateTime ];
       fhir:Period.end [ fhir:value "2016-06-23T17:32:33+10:00"^^xsd:dateTime ]
     ];
     fhir:Consent.provision.provision [
       fhir:index 0;
       fhir:Consent.provision.type [ fhir:value "permit" ];
       fhir:Consent.provision.action [
         fhir:index 0;
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/consentaction" ];
           fhir:Coding.code [ fhir:value "access" ]
         ]
       ];
       fhir:Consent.provision.class [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/resource-types" ];
         fhir:Coding.code [ fhir:value "MedicationRequest" ]
       ]
     ]
  ] .

<http://hl7.org/fhir/Patient/xcda> a fhir:Patient .

<http://hl7.org/fhir/RelatedPerson/peter> a fhir:RelatedPerson .

<http://hl7.org/fhir/Organization/f001> a fhir:Organization .

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

<http://hl7.org/fhir/Consent/consent-example-smartonfhir.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://build.fhir.org/Consent/consent-example-smartonfhir.ttl> .

# -------------------------------------------------------------------------------------


Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.