HL7 FHIR Implementation Guide: Data Access Policies
1.0.0-current - ci-build International flag

HL7 FHIR Implementation Guide: Data Access Policies, published by HL7 International / Security. This guide is not an authorized publication; it is the continuous build for version 1.0.0-current built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/data-access-policies/ and changes regularly. See the Directory of published versions

: Example of a SearchSet Bundle with Permission - TTL Representation

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://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 -------------------------------------------------------------------

 a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ex-SearchSet-withPermission"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "http://hl7.org/fhir/uv/dap/StructureDefinition/dap.bundleWithPermission"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/dap/StructureDefinition/dap.bundleWithPermission>     ] ) ;
    ( fhir:security [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ] ;
fhir:code [ fhir:v "HTEST" ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/uv/dap/StructureDefinition/dap.permissionImposedOnBundle"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:link <http://test.fhir.net/R4/fhir/Permission/in-permission-redisclose-forbidden-without-consent> ;
fhir:reference [ fhir:v "http://test.fhir.net/R4/fhir/Permission/in-permission-redisclose-forbidden-without-consent" ]         ]       ] ) ;
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ] ;
fhir:code [ fhir:v "CPLYPOL" ]     ] )
  ] ; # 
  fhir:type [ fhir:v "searchset"] ; # 
  fhir:timestamp [ fhir:v "2023-11-22T09:32:24Z"^^xsd:dateTime] ; # 
  fhir:total [ fhir:v "2"^^xsd:nonNegativeInteger] ; # 
  fhir:link ( [
fhir:relation [ fhir:v "self" ] ;
fhir:url [ fhir:v "http://test.fhir.net/R4/fhir/Observation?patient=9876&status=current"^^xsd:anyURI ]
  ] ) ; # 
  fhir:entry ( [
fhir:fullUrl [ fhir:v "http://test.fhir.net/R4/fhir/Observation/in-Observation"^^xsd:anyURI ] ;
    ( fhir:resource <http://test.fhir.net/R4/fhir/Observation/in-Observation> ) ;
fhir:search [
fhir:mode [ fhir:v "match" ]     ]
  ] [
fhir:fullUrl [ fhir:v "http://test.fhir.net/R4/fhir/Permission/in-permission-redisclose-forbidden-without-consent"^^xsd:anyURI ] ;
    ( fhir:resource <http://test.fhir.net/R4/fhir/Permission/in-permission-redisclose-forbidden-without-consent> ) ;
fhir:search [
fhir:mode [ fhir:v "include" ]     ]
  ] ) . # 

<http://test.fhir.net/R4/fhir/Observation/in-Observation> a fhir:Observation ;
  fhir:id [ fhir:v "in-Observation"] ; # 
  fhir:meta [
    ( fhir:security [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ] ;
fhir:code [ fhir:v "ETH" ]     ] [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-Confidentiality"^^xsd:anyURI ] ;
fhir:code [ fhir:v "R" ]     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Observation_in-Observation\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Observation in-Observation</b></p><a name=\"in-Observation\"> </a><a name=\"hcin-Observation\"> </a><a name=\"in-Observation-en-US\"> </a><p><b>status</b>: Final</p><p><b>code</b>: <span title=\"Codes:{http://loinc.org 74013-4}\">Alcoholic drinks per day</span></p><p><b>subject</b>: <a href=\"Patient-ex-patient.html\">John Schmidt  Other, DoB: 1923-07-25</a></p><p><b>effective</b>: 2022-06-13</p><p><b>performer</b>: <a href=\"Patient-ex-patient.html\">John Schmidt  Other, DoB: 1923-07-25</a></p><p><b>value</b>: 5 wine glasses per day<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code/d = '/d')</span></p></div>"
  ] ; # 
  fhir:status [ fhir:v "final"] ; # 
  fhir:code [
    ( fhir:coding [
a loinc:74013-4 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "74013-4" ]     ] )
  ] ; # 
  fhir:subject [
fhir:reference [ fhir:v "Patient/ex-patient" ]
  ] ; # 
  fhir:effective [ fhir:v "2022-06-13"^^xsd:date] ; # 
  fhir:performer ( [
fhir:reference [ fhir:v "Patient/ex-patient" ]
  ] ) ; # 
  fhir:value [
a fhir:Quantity ;
fhir:value [ fhir:v "5"^^xsd:decimal ] ;
fhir:unit [ fhir:v "wine glasses per day" ] ;
fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "/d" ]
  ] . # 

<http://test.fhir.net/R4/fhir/Permission/in-permission-redisclose-forbidden-without-consent> a fhir:Permission ;
  fhir:id [ fhir:v "in-permission-redisclose-forbidden-without-consent"] ; # 
  fhir:meta [
    ( fhir:security [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ] ;
fhir:code [ fhir:v "HTEST" ]     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Permission_in-permission-redisclose-forbidden-without-consent\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Permission in-permission-redisclose-forbidden-without-consent</b></p><a name=\"in-permission-redisclose-forbidden-without-consent\"> </a><a name=\"hcin-permission-redisclose-forbidden-without-consent\"> </a><a name=\"in-permission-redisclose-forbidden-without-consent-en-US\"> </a><p><b>status</b>: Active</p><p><b>asserter</b>: <a href=\"Organization-ex-organization.html\">Organization nowhere</a></p><p><b>date</b>: 2023-11-22</p><p><b>combining</b>: Deny-unless-permit</p><blockquote><p><b>rule</b></p><p><b>type</b>: Permit</p><blockquote><p><b>activity</b></p><p><b>purpose</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActReason TREAT}\">treatment</span>, <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActReason HPAYMT}\">healthcare payment</span>, <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActReason HOPERAT}\">healthcare operations</span></p></blockquote><p><b>limit</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActCode NODSCLCDS}\">no disclosure without information subject's consent directive</span></p></blockquote></div>"
  ] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:asserter [
fhir:reference [ fhir:v "Organization/ex-organization" ]
  ] ; # 
  fhir:date ( [ fhir:v "2023-11-22"^^xsd:date] ) ; # 
  fhir:combining [ fhir:v "deny-unless-permit"] ; # 
  fhir:rule ( [
fhir:type [ fhir:v "permit" ] ;
    ( fhir:activity [
      ( fhir:purpose [
        ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ] ;
fhir:code [ fhir:v "TREAT" ]         ] )       ] [
        ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ] ;
fhir:code [ fhir:v "HPAYMT" ]         ] )       ] [
        ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ] ;
fhir:code [ fhir:v "HOPERAT" ]         ] )       ] )     ] ) ;
    ( fhir:limit [
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ] ;
fhir:code [ fhir:v "NODSCLCDS" ] ;
fhir:display [ fhir:v "no disclosure without information subject's consent directive" ]       ] )     ] )
  ] ) . #