@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 -------------------------------------------------------------------

<https://onyxhealth.io/fhir/fodder/Bundle/match-response-example> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "match-response-example"] ; # 
  fhir:type [ fhir:v "searchset"] ; # 
  fhir:timestamp [ fhir:v "2024-01-10T14:35:00Z"^^xsd:dateTime] ; # 
  fhir:total [ fhir:v "1"^^xsd:nonNegativeInteger] ; # 
  fhir:link ( [
     fhir:relation [ fhir:v "self" ] ;
     fhir:url [
       fhir:v "http://example.org/fhir/Patient/$match"^^xsd:anyURI ;
       fhir:l <http://example.org/fhir/Patient/$match>
     ]
  ] ) ; # 
  fhir:entry ( [
     fhir:fullUrl [
       fhir:v "http://example.org/fhir/Patient/deceased-patient-example"^^xsd:anyURI ;
       fhir:l <http://example.org/fhir/Patient/deceased-patient-example>
     ] ;
     fhir:resource ( <http://example.org/fhir/Patient/deceased-patient-example> ) ;
     fhir:search [
       fhir:extension ( [
         fhir:url [
           fhir:v "http://hl7.org/fhir/StructureDefinition/match-grade"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/match-grade>
         ] ;
         fhir:value [
           a fhir:Code ;
           fhir:v "certain"
         ]
       ] ) ;
       fhir:mode [ fhir:v "match" ] ;
       fhir:score [ fhir:v 0.95 ]
     ]
  ] [
     fhir:fullUrl [
       fhir:v "http://example.org/fhir/DocumentReference/death-record-example"^^xsd:anyURI ;
       fhir:l <http://example.org/fhir/DocumentReference/death-record-example>
     ] ;
     fhir:resource ( <http://example.org/fhir/DocumentReference/death-record-example> ) ;
     fhir:search [
       fhir:mode [ fhir:v "include" ]
     ]
  ] ) . # 

<http://example.org/fhir/Patient/deceased-patient-example> a fhir:Patient ;
  fhir:id [ fhir:v "deceased-patient-example"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://onyxhealth.io/fhir/fodder/StructureDefinition/fodder-deceased-patient"^^xsd:anyURI ;
       fhir:l <https://onyxhealth.io/fhir/fodder/StructureDefinition/fodder-deceased-patient>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Patient_deceased-patient-example\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Patient deceased-patient-example</b></p><a name=\"deceased-patient-example\"> </a><a name=\"hcdeceased-patient-example\"> </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-fodder-deceased-patient.html\">FODDER Deceased Patient Profile</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">John Doe (official) Male, DoB: 1950-03-15 ( Social Security number)</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Known status of Patient\">Deceased:</td><td colspan=\"3\">2024-01-10 14:30:00+0000</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Patient\">Contact Detail</td><td colspan=\"3\">Springfield IL 62701 (home)</td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/v2-0203"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/v2-0203>
         ] ;
         fhir:code [ fhir:v "SS" ]
       ] )
     ] ;
     fhir:system [
       fhir:v "http://hl7.org/fhir/sid/us-ssn"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/sid/us-ssn>
     ] ;
     fhir:value [ fhir:v "123-45-6789" ]
  ] ) ; # 
  fhir:name ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:family [ fhir:v "Doe" ] ;
     fhir:given ( [ fhir:v "John" ] )
  ] ) ; # 
  fhir:gender [ fhir:v "male"] ; # 
  fhir:birthDate [ fhir:v "1950-03-15"^^xsd:date] ; # 
  fhir:deceased [
     a fhir:DateTime ;
     fhir:v "2024-01-10T14:30:00Z"^^xsd:dateTime
  ] ; # 
  fhir:address ( [
     fhir:use [ fhir:v "home" ] ;
     fhir:city [ fhir:v "Springfield" ] ;
     fhir:state [ fhir:v "IL" ] ;
     fhir:postalCode [ fhir:v "62701" ]
  ] ) . # 

<http://example.org/fhir/DocumentReference/death-record-example> a fhir:DocumentReference ;
  fhir:id [ fhir:v "death-record-example"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://onyxhealth.io/fhir/fodder/StructureDefinition/fodder-death-record-document-reference"^^xsd:anyURI ;
       fhir:l <https://onyxhealth.io/fhir/fodder/StructureDefinition/fodder-death-record-document-reference>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"DocumentReference_death-record-example\"> </a><p class=\"res-header-id\"><b>Generated Narrative: DocumentReference death-record-example</b></p><a name=\"death-record-example\"> </a><a name=\"hcdeath-record-example\"> </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-fodder-death-record-document-reference.html\">FODDER Death Record Document Reference</a></p></div><p><b>status</b>: Current</p><p><b>type</b>: <span title=\"Codes:{http://loinc.org 64297-5}\">Death certificate</span></p><p><b>subject</b>: <a href=\"Patient-deceased-patient-example.html\">John Doe (official) Male, DoB: 1950-03-15 ( Social Security number)</a></p><p><b>date</b>: 2024-01-10 14:35:00+0000</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>Url</b></td><td><b>Title</b></td><td><b>Creation</b></td></tr><tr><td style=\"display: none\">*</td><td>application/pdf</td><td><a href=\"http://example.org/fhir/Binary/death-record-deceased-patient-example\">http://example.org/fhir/Binary/death-record-deceased-patient-example</a></td><td>Fact of Death Record - John Doe</td><td>2024-01-10</td></tr></table></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "current"] ; # 
  fhir:type [
     fhir:coding ( [
       a loinc:64297-5 ;
       fhir:system [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:code [ fhir:v "64297-5" ] ;
       fhir:display [ fhir:v "Death certificate" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:l <https://onyxhealth.io/fhir/fodder/Patient/deceased-patient-example> ;
     fhir:reference [ fhir:v "Patient/deceased-patient-example" ]
  ] ; # 
  fhir:date [ fhir:v "2024-01-10T14:35:00Z"^^xsd:dateTime] ; # 
  fhir:content ( [
     fhir:attachment [
       fhir:contentType [ fhir:v "application/pdf" ] ;
       fhir:url [
         fhir:v "http://example.org/fhir/Binary/death-record-deceased-patient-example"^^xsd:anyURI ;
         fhir:l <http://example.org/fhir/Binary/death-record-deceased-patient-example>
       ] ;
       fhir:title [ fhir:v "Fact of Death Record - John Doe" ] ;
       fhir:creation [ fhir:v "2024-01-10"^^xsd:date ]
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

