MediRecords FHIR Implementation Guide
1.4.2 - release


: Example of Consent - 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:Consent ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "3f8b439e-b70a-42c3-81dd-23d463da2d72"] ; # 
  fhir:meta [
fhir:lastUpdated [ fhir:v "2024-12-19T14:56:18Z"^^xsd:dateTime ] ;
    ( fhir:profile [
fhir:v "https://fhir.medirecords.com/StructureDefinition/mr-consent"^^xsd:anyURI ;
fhir:link <https://fhir.medirecords.com/StructureDefinition/mr-consent>     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "extensions" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Consent 3f8b439e-b70a-42c3-81dd-23d463da2d72</b></p><a name=\"3f8b439e-b70a-42c3-81dd-23d463da2d72\"> </a><a name=\"hc3f8b439e-b70a-42c3-81dd-23d463da2d72\"> </a><a name=\"3f8b439e-b70a-42c3-81dd-23d463da2d72-en-US\"> </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\">Last updated: 2024-12-19 14:56:18+0000</p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-mr-consent.html\">MR Consent</a></p></div><p><b>MR Comment Note Extension</b>: Consent given by the patient to the hospital to use their data for care and research purposes.</p><p><b>Consent source reference extension</b>: <a href=\"DocumentReference-8184d9d5-ee48-4985-98c0-74a50e77800e.html\">DocumentReference: status = current; docStatus = final; type = Consent Document; category = Consent Document; date = 2017-12-17 14:56:18+0000</a></p><p><b>Consent source reference extension</b>: <a href=\"Bundle-1157b99e-b6f7-40cd-8349-a536e42456ae.html#DocumentReference_5bcb2a5c-b7a8-4619-aabe-955176c1a04c\">Bundle: type = collection</a></p><p><b>status</b>: Active</p><p><b>scope</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/consentscope research}\">Research</span></p><p><b>category</b>: <span title=\"Codes:{http://loinc.org 59284-0}\">Patient Consent</span></p><p><b>patient</b>: <a href=\"Patient-1e5cae20-85bf-11e8-b401-ffccd711ad9c.html\">Mila Female, DoB: 1990-11-29 ( Medicare Number: 32788511952 (, period: (?) --&gt; 2025-02))</a></p><p><b>performer</b>: <a href=\"Patient-1e5cae20-85bf-11e8-b401-ffccd711ad9c.html\">Mila Female, DoB: 1990-11-29 ( Medicare Number: 32788511952 (, period: (?) --&gt; 2025-02))</a></p><p><b>policyRule</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActCode OPTIN}\">opt-in</span></p><h3>Provisions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Period</b></td></tr><tr><td style=\"display: none\">*</td><td>Opt In</td><td>2024-12-19 --&gt; (ongoing)</td></tr></table></div>"
  ] ; # 
  fhir:extension ( [
fhir:url [ fhir:v "https://fhir.medirecords.com/StructureDefinition/mr-comment-note-ext"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Consent given by the patient to the hospital to use their data for care and research purposes." ]
  ] [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.sourceReference"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "DocumentReference/8184d9d5-ee48-4985-98c0-74a50e77800e" ]     ]
  ] [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.sourceReference"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "DocumentReference/5bcb2a5c-b7a8-4619-aabe-955176c1a04c" ]     ]
  ] ) ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:scope [
    ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/consentscope"^^xsd:anyURI ] ;
fhir:code [ fhir:v "research" ] ;
fhir:display [ fhir:v "Research" ]     ] ) ;
fhir:text [ fhir:v "Research" ]
  ] ; # 
  fhir:category ( [
    ( fhir:coding [
a loinc:59284-0 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "59284-0" ] ;
fhir:display [ fhir:v "Patient Consent" ]     ] ) ;
fhir:text [ fhir:v "Patient Consent" ]
  ] ) ; # 
  fhir:patient [
fhir:reference [ fhir:v "Patient/1e5cae20-85bf-11e8-b401-ffccd711ad9c" ]
  ] ; # 
  fhir:performer ( [
fhir:reference [ fhir:v "Patient/1e5cae20-85bf-11e8-b401-ffccd711ad9c" ]
  ] ) ; # 
  fhir:policyRule [
    ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ] ;
fhir:code [ fhir:v "OPTIN" ] ;
fhir:display [ fhir:v "opt-in" ]     ] )
  ] ; # 
  fhir:provision [
fhir:type [ fhir:v "permit" ] ;
fhir:period [
fhir:start [ fhir:v "2024-12-19"^^xsd:date ]     ]
  ] . #