@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/ExampleFHIRConsentXACMLcopy> a fhir:Consent ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ExampleFHIRConsentXACMLcopy"] ; # 
  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 ExampleFHIRConsentXACMLcopy</b></p><a name=\"ExampleFHIRConsentXACMLcopy\"> </a><a name=\"hcExampleFHIRConsentXACMLcopy\"> </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><p><b>sourceReference</b>: <a href=\"DocumentReference-xacml-patient-consent-12345.html\">DocumentReference: identifier = oasis:names:tc:xacml:1.0:Policy/@PolicyId; status = current; type = Consent Document</a></p><h3>PolicyBases</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Reference</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"DocumentReference-xacml-overriding.html\">DocumentReference: identifier = oasis:names:tc:xacml:1.0:Policy/@PolicyId; status = current; type = </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:sourceReference ( [
     fhir:l <http://johnmoehrke.github.io/xacml-consent/DocumentReference/xacml-patient-consent-12345> ;
     fhir:reference [ fhir:v "DocumentReference/xacml-patient-consent-12345" ]
  ] ) ; # 
  fhir:policyBasis [
     fhir:reference [
       fhir:l <http://johnmoehrke.github.io/xacml-consent/DocumentReference/xacml-overriding> ;
       fhir:reference [ fhir:v "DocumentReference/xacml-overriding" ]
     ]
  ] . # 

# -------------------------------------------------------------------------------------

