JohnMoehrke Emancipation
0.1.0 - ci-build

JohnMoehrke Emancipation, published by John Moehrke (himself). This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/JohnMoehrke/emancipation/ and changes regularly. See the Directory of published versions

## : Simple Emancipation Consent example - TTL Representation

Raw ttl | Download

    @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://hl7.org/fhir/Consent/ex-consent> a fhir:Consent ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:Resource.id [ fhir:value "ex-consent"] ;
      fhir:Resource.meta [
         fhir:Meta.profile [
           fhir:value "http://johnmoehrke.github.io/Emancipation/StructureDefinition/EmancipationConsent" ;
           fhir:index 0 ;
           fhir:link <http://johnmoehrke.github.io/Emancipation/StructureDefinition/EmancipationConsent>
         ] ;
         fhir:Meta.security [
           fhir:index 0 ;
           fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActReason" ] ;
           fhir:Coding.code [ fhir:value "HTEST" ]
         ]
      ] ;
      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 ex-consent</b></p><a name=\"ex-consent\"> </a><a name=\"hcex-consent\"> </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-EmancipationConsent.html\">Consent profile indicating Emancipation</a></p><p style=\"margin-bottom: 0px\">Security Label: <a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-v3-ActReason.html\">test health data (Details: ActReason code HTEST = 'test health data')</a></p></div><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=\"Patient-ex-patient.html\">John Schmidt  Other, DoB: 2009-07-25</a></td></tr><tr><td title=\"Who is agreeing to the policy and rules\">Party</td><td><a href=\"Patient-ex-patient.html\">John Schmidt  Other, DoB: 2009-07-25</a></td></tr><tr><td title=\"Who manages the consent through its lifecycle.\">Manager</td><td><a href=\"Organization-ex-organization.html\">Organization somewhere org</a></td></tr></table><p>This consent is made under the policy <a href=\"http://example.org/policies/representative.xacml\">http://example.org/policies/representative.xacml</a> .</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 Period\">Time Period</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 Parties\">Who</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, \" 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><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><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_bck01.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-qi-hidden.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Consent Provision\" class=\"hierarchy\"/> deny</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>Period: 2026-08-16 --&gt; 2027-08-16</li></ul></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\"></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\"></td></tr>#xD;\n<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_bck010.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.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><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\"><ul><li><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-RoleCode FTH}\">father</span>: <a href=\"RelatedPerson-ex-father.html\">RelatedPerson John Jacob Jingleheimer Schmidt (official)</a></li></ul></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\"><ul><li>Purpose: <a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-v3-ActReason.html#v3-ActReason-FAMRQT\">ActReason: FAMRQT</a> (family requested)</li></ul></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_bck001.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.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\"></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\"></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\"></td></tr>#xD;\n<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_bck0000.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon-qi-hidden.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Consent Provision\" class=\"hierarchy\"/> deny</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><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\"><ul><li><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-RoleCode MTH}\">mother</span>: <a href=\"RelatedPerson-ex-mother.html\">RelatedPerson Mary Ann Schmidt (official)</a></li></ul></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><td colspan=\"4\" class=\"hierarchy\"><br/><a href=\"https://hl7.org/fhir/R4/formats.html#table\" title=\"Legend for this format\"><img src=\"data:image/png;base64, \" 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:Consent.category [
         fhir:index 0 ;
         fhir:CodeableConcept.coding [
           fhir:index 0 ;
           fhir:Coding.system [ fhir:value "http://johnmoehrke.github.io/Emancipation/CodeSystem/AuthorizedCodes" ] ;
           fhir:Coding.code [ fhir:value "EmancipationConsent" ]
         ]
      ], [
         fhir:index 1 ;
         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:index 2 ;
         fhir:CodeableConcept.coding [
           fhir:index 0 ;
           fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActCode" ] ;
           fhir:Coding.code [ fhir:value "IDSCL" ]
         ]
      ] ;
      fhir:Consent.patient [
         fhir:link <http://hl7.org/fhir/Patient/ex-patient> ;
         fhir:Reference.reference [ fhir:value "Patient/ex-patient" ]
      ] ;
      fhir:Consent.dateTime [ fhir:value "2026-08-23"^^xsd:date] ;
      fhir:Consent.performer [
         fhir:index 0 ;
         fhir:link <http://hl7.org/fhir/Patient/ex-patient> ;
         fhir:Reference.reference [ fhir:value "Patient/ex-patient" ]
      ] ;
      fhir:Consent.organization [
         fhir:index 0 ;
         fhir:link <http://hl7.org/fhir/Organization/ex-organization> ;
         fhir:Reference.reference [ fhir:value "Organization/ex-organization" ]
      ] ;
      fhir:Consent.sourceReference [
         fhir:link <http://hl7.org/fhir/DocumentReference/ex-documentreference> ;
         fhir:Reference.reference [ fhir:value "DocumentReference/ex-documentreference" ]
      ] ;
      fhir:Consent.policy [
         fhir:index 0 ;
         fhir:Consent.policy.uri [ fhir:value "http://example.org/policies/representative.xacml" ]
      ] ;
      fhir:Consent.provision [
         fhir:Consent.provision.type [ fhir:value "deny" ] ;
         fhir:Consent.provision.period [
           fhir:Period.start [ fhir:value "2026-08-16"^^xsd:date ] ;
           fhir:Period.end [ fhir:value "2027-08-16"^^xsd:date ]
         ] ;
         fhir:Consent.provision.provision [
           fhir:index 0 ;
           fhir:Consent.provision.type [ fhir:value "permit" ] ;
           fhir:Consent.provision.actor [
             fhir:index 0 ;
             fhir:Consent.provision.actor.role [
               fhir:CodeableConcept.coding [
                 fhir:index 0 ;
                 fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-RoleCode" ] ;
                 fhir:Coding.code [ fhir:value "FTH" ] ;
                 fhir:Coding.display [ fhir:value "father" ]
               ]
             ] ;
             fhir:Consent.provision.actor.reference [
               fhir:link <http://hl7.org/fhir/RelatedPerson/ex-father> ;
               fhir:Reference.reference [ fhir:value "RelatedPerson/ex-father" ]
             ]
           ] ;
           fhir:Consent.provision.purpose [
             fhir:index 0 ;
             fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActReason" ] ;
             fhir:Coding.code [ fhir:value "FAMRQT" ] ;
             fhir:Coding.display [ fhir:value "family requested" ]
           ]
         ], [
           fhir:index 1 ;
           fhir:Consent.provision.type [ fhir:value "permit" ] ;
           fhir:Consent.provision.provision [
             fhir:index 0 ;
             fhir:Consent.provision.type [ fhir:value "deny" ] ;
             fhir:Consent.provision.actor [
               fhir:index 0 ;
               fhir:Consent.provision.actor.role [
                 fhir:CodeableConcept.coding [
                   fhir:index 0 ;
                   fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-RoleCode" ] ;
                   fhir:Coding.code [ fhir:value "MTH" ] ;
                   fhir:Coding.display [ fhir:value "mother" ]
                 ]
               ] ;
               fhir:Consent.provision.actor.reference [
                 fhir:link <http://hl7.org/fhir/RelatedPerson/ex-mother> ;
                 fhir:Reference.reference [ fhir:value "RelatedPerson/ex-mother" ]
               ]
             ]
           ]
         ]
      ] .

    <http://hl7.org/fhir/Patient/ex-patient> a fhir:Patient .

    <http://hl7.org/fhir/Organization/ex-organization> a fhir:Organization .

    <http://hl7.org/fhir/DocumentReference/ex-documentreference> a fhir:DocumentReference .

    <http://hl7.org/fhir/RelatedPerson/ex-father> a fhir:RelatedPerson .

    <http://hl7.org/fhir/RelatedPerson/ex-mother> a fhir:RelatedPerson .

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

    <http://hl7.org/fhir/Consent/ex-consent.ttl> a owl:Ontology ;
      owl:imports fhir:fhir.ttl ;
      owl:versionIRI <http://build.fhir.org/Consent/ex-consent.ttl> .