@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://hl7.org/fhir/us/consent-management-tg/DocumentReference/docref-fileconsent> a fhir:DocumentReference ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "docref-fileconsent"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTDocumentReference"^^xsd:anyURI ;
       fhir:link <http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTDocumentReference>
     ] ) ;
     fhir:tag ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "HTEST" ] ;
       fhir:display [ fhir:v "test health data" ]
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: DocumentReference docref-fileconsent</b></p><a name=\"docref-fileconsent\"> </a><a name=\"hcdocref-fileconsent\"> </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=\"file://D:\\GitHub\\rettema\\fhir-consent-management\\output/StructureDefinition-FASTDocumentReference.html\">FASTDocumentReference</a></p><p style=\"margin-bottom: 0px\">Tag: test health data (Details: ActReason code HTEST = 'test health data')</p></div><p><b>identifier</b>: <code>http://example.org/identifiers</code>/docref-fileconsent</p><p><b>status</b>: Current</p><p><b>type</b>: <span title=\"Codes:{http://loinc.org 64292-6}\">Release of information consent Document</span></p><p><b>category</b>: <span title=\"Codes:{http://loinc.org 57016-8}\">Privacy policy acknowledgment Document</span></p><p><b>subject</b>: <a href=\"Patient-patient-lara-miren.html\">Lara Miren (official) Female, DoB: 1980-01-01 ( http://example.org/identifiers#patient-lara-miren)</a></p><p><b>date</b>: 2025-08-01 00:00:00-0400</p><p><b>author</b>: <a href=\"Patient-patient-lara-miren.html\">Lara Miren (official) Female, DoB: 1980-01-01 ( http://example.org/identifiers#patient-lara-miren)</a></p><blockquote><p><b>content</b></p><h3>Attachments</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ContentType</b></td><td><b>Data</b></td></tr><tr><td style=\"display: none\">*</td><td>text/plain; charset=utf-8</td><td><code>SSwgTGFyYSBNaXJlbiwgcGVybWl0IFJvYmVydCBNaXJlbiBhY2Nlc3MgdG8gbXkgbWVkaWNhbCByZWNvcmRzLg==</code></td></tr></table></blockquote></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "http://example.org/identifiers"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "docref-fileconsent" ]
  ] ) ; # 
  fhir:status [ fhir:v "current"] ; # 
  fhir:type [
     fhir:coding ( [
       a loinc:64292-6 ;
       fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "64292-6" ]
     ] )
  ] ; # 
  fhir:category ( [
     fhir:coding ( [
       a loinc:57016-8 ;
       fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "57016-8" ]
     ] )
  ] ) ; # 
  fhir:subject [
     fhir:link <http://hl7.org/fhir/us/consent-management-tg/Patient/patient-lara-miren> ;
     fhir:reference [ fhir:v "Patient/patient-lara-miren" ] ;
     fhir:identifier [
       fhir:system [ fhir:v "http://example.org/identifiers"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "patient-lara-miren" ]
     ]
  ] ; # 
  fhir:date [ fhir:v "2025-08-01T00:00:00.000-04:00"^^xsd:dateTime] ; # 
  fhir:author ( [
     fhir:link <http://hl7.org/fhir/us/consent-management-tg/Patient/patient-lara-miren> ;
     fhir:reference [ fhir:v "Patient/patient-lara-miren" ] ;
     fhir:identifier [
       fhir:system [ fhir:v "http://example.org/identifiers"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "patient-lara-miren" ]
     ]
  ] ) ; # 
  fhir:content ( [
     fhir:attachment [
       fhir:contentType [ fhir:v "text/plain; charset=utf-8" ] ;
       fhir:data [ fhir:v "SSwgTGFyYSBNaXJlbiwgcGVybWl0IFJvYmVydCBNaXJlbiBhY2Nlc3MgdG8gbXkgbWVkaWNhbCByZWNvcmRzLg=="^^xsd:base64Binary ]
     ]
  ] ) . # 

<http://hl7.org/fhir/us/consent-management-tg/Patient/patient-lara-miren> a fhir:us .

# -------------------------------------------------------------------------------------

