@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://johnmoehrke.github.io/SLSValueSets/Consent/Consent-AB352-Example-AllowAll> a fhir:Consent ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "Consent-AB352-Example-AllowAll"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Consent Consent-AB352-Example-AllowAll</b></p><a name=\"Consent-AB352-Example-AllowAll\"> </a><a name=\"hcConsent-AB352-Example-AllowAll\"> </a><h2>Participants</h2><table class=\"grid\"><tr><td><b>Role</b></td><td><b>Details</b></td></tr><tr><td title=\"Who the consent applies to\">Patient</td><td><a href=\"http://example.org/Patient/example\">http://example.org/Patient/example</a></td></tr><tr><td title=\"Who manages the consent through its lifecycle.\">Manager</td><td><a href=\"http://example.org/Organization/ca-hospital\">Example California Hospital</a></td></tr></table><p>This consent is made under the regulation <span title=\"Codes:{urn:ietf:rfc:3986 urn:law:us:ca:statute:AB352}\">California AB 352</span> and the policy <code>urn:org:hospital:policyset:AB352</code> .</p><table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" style=\"border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;\"><tr style=\"border: 2px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top\"><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://hl7.org/fhir/R4/formats.html#table\" title=\"Applicable Rule\">Rule</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://hl7.org/fhir/R4/formats.html#table\" title=\"Applicable Data\">What</a><span style=\"float: right\"><a href=\"https://hl7.org/fhir/R4/formats.html#table\" title=\"Legend for this format\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC\" alt=\"doco\" style=\"background-color: inherit\"/></a></span></th></tr><tr style=\"border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_extension.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Consent Provision\" class=\"hierarchy\"/> permit</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"></td></tr>#xD;\n<tr style=\"border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_extension.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Consent Provision\" class=\"hierarchy\"/> permit</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><ul><li>Labled as: <a href=\"CodeSystem-AB352HealthSensitivityCs.html#AB352HealthSensitivityCs-ABORTION\">Health Information Sensitivity Categories: ABORTION</a> (Abortion-related services)</li><li>Labled as: <a href=\"CodeSystem-AB352HealthSensitivityCs.html#AB352HealthSensitivityCs-GENDER_AFFIRMING_CARE\">Health Information Sensitivity Categories: GENDER_AFFIRMING_CARE</a> (Gender-affirming care)</li><li>Labled as: <a href=\"CodeSystem-AB352HealthSensitivityCs.html#AB352HealthSensitivityCs-CONTRACEPTION\">Health Information Sensitivity Categories: CONTRACEPTION</a> (Contraception)</li><li>Labled as: <a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-v3-Confidentiality.html#v3-Confidentiality-N\">Confidentiality: N</a> (Normal)</li><li>Labled as: <a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-v3-Confidentiality.html#v3-Confidentiality-R\">Confidentiality: R</a> (Restricted)</li><li>Purpose: <a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-v3-ActReason.html#v3-ActReason-TREAT\">ActReason: TREAT</a> (treatment)</li><li>Purpose: <a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-v3-ActReason.html#v3-ActReason-HPAYMT\">ActReason: HPAYMT</a> (healthcare payment)</li><li>Purpose: <a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-v3-ActReason.html#v3-ActReason-HOPERAT\">ActReason: HOPERAT</a> (healthcare operations)</li></ul></td></tr>#xD;\n<tr><td colspan=\"2\" class=\"hierarchy\"><br/><a href=\"https://hl7.org/fhir/R4/formats.html#table\" title=\"Legend for this format\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC\" alt=\"doco\" style=\"background-color: inherit\"/> Documentation for this format</a></td></tr></table></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:Coding.display [ fhir:value "Privacy Consent" ]
     ]
  ] ;
  fhir:Consent.category [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a loinc:64292-6 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "64292-6" ] ;
       fhir:Coding.display [ fhir:value "Release of information consent" ]
     ]
  ] ;
  fhir:Consent.patient [
     fhir:link <http://example.org/Patient/example> ;
     fhir:Reference.reference [ fhir:value "http://example.org/Patient/example" ]
  ] ;
  fhir:Consent.dateTime [ fhir:value "2025-01-15T12:00:00Z"^^xsd:dateTime] ;
  fhir:Consent.organization [
     fhir:index 0 ;
     fhir:link <http://example.org/Organization/ca-hospital> ;
     fhir:Reference.reference [ fhir:value "http://example.org/Organization/ca-hospital" ] ;
     fhir:Reference.display [ fhir:value "Example California Hospital" ]
  ] ;
  fhir:Consent.policy [
     fhir:index 0 ;
     fhir:Consent.policy.authority [ fhir:value "https://example-hospital.org" ] ;
     fhir:Consent.policy.uri [ fhir:value "urn:org:hospital:policyset:AB352" ]
  ] ;
  fhir:Consent.policyRule [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "urn:ietf:rfc:3986" ] ;
       fhir:Coding.code [ fhir:value "urn:law:us:ca:statute:AB352" ] ;
       fhir:Coding.display [ fhir:value "California AB 352" ]
     ]
  ] ;
  fhir:Consent.provision [
     fhir:Consent.provision.type [ fhir:value "permit" ] ;
     fhir:Consent.provision.securityLabel [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://johnmoehrke.github.io/SLSValueSets/CodeSystem/AB352HealthSensitivityCs" ] ;
       fhir:Coding.code [ fhir:value "ABORTION" ]
     ], [
       fhir:index 1 ;
       fhir:Coding.system [ fhir:value "http://johnmoehrke.github.io/SLSValueSets/CodeSystem/AB352HealthSensitivityCs" ] ;
       fhir:Coding.code [ fhir:value "GENDER_AFFIRMING_CARE" ]
     ], [
       fhir:index 2 ;
       fhir:Coding.system [ fhir:value "http://johnmoehrke.github.io/SLSValueSets/CodeSystem/AB352HealthSensitivityCs" ] ;
       fhir:Coding.code [ fhir:value "CONTRACEPTION" ]
     ], [
       fhir:index 3 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-Confidentiality" ] ;
       fhir:Coding.code [ fhir:value "N" ] ;
       fhir:Coding.display [ fhir:value "Normal" ]
     ], [
       fhir:index 4 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-Confidentiality" ] ;
       fhir:Coding.code [ fhir:value "R" ] ;
       fhir:Coding.display [ fhir:value "Restricted" ]
     ] ;
     fhir:Consent.provision.purpose [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActReason" ] ;
       fhir:Coding.code [ fhir:value "TREAT" ]
     ], [
       fhir:index 1 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActReason" ] ;
       fhir:Coding.code [ fhir:value "HPAYMT" ]
     ], [
       fhir:index 2 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActReason" ] ;
       fhir:Coding.code [ fhir:value "HOPERAT" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://johnmoehrke.github.io/SLSValueSets/Consent/Consent-AB352-Example-AllowAll.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

