@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://loinc.org/rdf/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://johnmoehrke.github.io/xacml-consent/Consent/ExampleFHIRConsentXACMLreference> a fhir:Consent ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ExampleFHIRConsentXACMLreference"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://johnmoehrke.github.io/xacml-consent/StructureDefinition/fhir-consent-xacml"^^xsd:anyURI ;
       fhir:l <http://johnmoehrke.github.io/xacml-consent/StructureDefinition/fhir-consent-xacml>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Consent ExampleFHIRConsentXACMLreference</b></p><a name=\"ExampleFHIRConsentXACMLreference\"> </a><a name=\"hcExampleFHIRConsentXACMLreference\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-fhir-consent-xacml.html\">FHIR Consent with XACML Policies</a></p></div><p><b>identifier</b>: oasis:names:tc:xacml:1.0:Policy/@PolicyId/consent-policy-set-12345</p><p><b>status</b>: Active</p><p><b>category</b>: <span title=\"Codes:{http://loinc.org 59284-0}\">Consent Document with XACML Policies</span></p><p><b>subject</b>: <a href=\"Patient-ex-patient.html\">John Schmidt  Other, DoB: 1923-07-25 ( http://example.org/mrn#123456)</a></p><h3>SourceAttachments</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ContentType</b></td><td><b>Url</b></td></tr><tr><td style=\"display: none\">*</td><td>application/xacml+xml</td><td><a href=\"http://example.org/policies/xacml-patient-consent-12345.xml\">http://example.org/policies/xacml-patient-consent-12345.xml</a></td></tr></table><h3>PolicyBases</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Uri</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://example.org/policies/xacml-overriding.xml\">http://example.org/policies/xacml-overriding.xml</a></td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:type [
       fhir:coding ( [
         fhir:code [ fhir:v "oasis:names:tc:xacml:1.0:Policy/@PolicyId" ]
       ] )
     ] ;
     fhir:value [ fhir:v "consent-policy-set-12345" ]
  ] ) ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:category ( [
     fhir:coding ( [
       a loinc:59284-0 ;
       fhir:system [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:code [ fhir:v "59284-0" ] ;
       fhir:display [ fhir:v "Consent Document" ]
     ] ) ;
     fhir:text [ fhir:v "Consent Document with XACML Policies" ]
  ] ) ; # 
  fhir:subject [
     fhir:l <http://johnmoehrke.github.io/xacml-consent/Patient/ex-patient> ;
     fhir:reference [ fhir:v "Patient/ex-patient" ]
  ] ; # 
  fhir:sourceAttachment ( [
     fhir:contentType [ fhir:v "application/xacml+xml" ] ;
     fhir:url [
       fhir:v "http://example.org/policies/xacml-patient-consent-12345.xml"^^xsd:anyURI ;
       fhir:l <http://example.org/policies/xacml-patient-consent-12345.xml>
     ]
  ] ) ; # 
  fhir:policyBasis [
     fhir:uri [
       fhir:v "http://example.org/policies/xacml-overriding.xml"^^xsd:anyURI ;
       fhir:l <http://example.org/policies/xacml-overriding.xml>
     ]
  ] . # 

# -------------------------------------------------------------------------------------

