Release 5 Ballot

This page is part of the FHIR Specification (v5.0.0-ballot: FHIR R5 Ballot Preview). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Example Permission/example-saner (Turtle)

Security Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Not linked to any defined compartments

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

Example of permission for SANER

@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:Permission;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "example-saner"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <p>\n    Read-Only access to SANER report is authorized for PurposeOfUse of Public-Health compliance, from the Organizations.\n    Access requests authorized shall be recorded.  \n    </p>\n      <p> \n    TODO: expression help. No access is granted to previous historic revisions (only current report).\n    </p>\n      <p> \n    TODO: authorize a Group/P1. \n    </p>\n    </div>"
  ];
  fhir:Permission.status [ fhir:value "active"];
  fhir:Permission.asserter [
     fhir:Reference.reference [ fhir:value "Organization/f203" ]
  ];
  fhir:Permission.date [
     fhir:value "2018-12-24"^^xsd:date;
     fhir:index 0
  ];
  fhir:Permission.combining [ fhir:value "deny-overrides"];
  fhir:Permission.rule [
     fhir:index 0;
     fhir:Permission.rule.type [ fhir:value "permit" ];
     fhir:Permission.rule.data [
       fhir:index 0;
       fhir:Permission.rule.data.expression [
         fhir:Expression.language [ fhir:value "text/fhirpath" ];
         fhir:Expression.expression [ fhir:value "http://hl7.org/fhir/uv/saner/Measure/CDCHealthcareSupplyPathway" ]
       ]
     ];
     fhir:Permission.rule.activity [
       fhir:index 0;
       fhir:Permission.rule.activity.actor [
         fhir:index 0;
         fhir:Reference.reference [ fhir:value "Organization/f203" ]
       ];
       fhir:Permission.rule.activity.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:Permission.rule.activity.purpose [
         fhir:index 0;
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActReason" ];
           fhir:Coding.code [ fhir:value "HCOMPL" ]
         ]
       ]
     ];
     fhir:Permission.rule.limit [
       fhir:index 0;
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActCode" ];
         fhir:Coding.code [ fhir:value "AUDIT" ]
       ]
     ]
  ]] .

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

[a owl:Ontology;
  owl:imports fhir:fhir.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.