@prefix fhir: <http://hl7.org/fhir/> .
@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://example.org/fhir/us/fod/Bundle/fod-void-example> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "fod-void-example"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://example.org/fhir/us/fod/StructureDefinition/fod-void-bundle" ;
       fhir:index 0 ;
       fhir:link <http://example.org/fhir/us/fod/StructureDefinition/fod-void-bundle>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "en"] ;
  fhir:Bundle.identifier [
     fhir:Element.extension [
       fhir:index 0 ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/vr-common-library/StructureDefinition/CertificateNumber" ] ;
       fhir:Extension.valueString [ fhir:value "1742" ]
     ] ;
     fhir:Identifier.system [ fhir:value "http://vitalrecords.example.gov/fod-voi" ] ;
     fhir:Identifier.value [ fhir:value "MI-FOD-2026-FHIRID" ]
  ] ;
  fhir:Bundle.type [ fhir:value "message"] ;
  fhir:Bundle.timestamp [ fhir:value "2026-08-05T09:12:00-05:00"^^xsd:dateTime] ;
  fhir:Bundle.entry [
     fhir:index 0 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:0f1e2d3c-4b5a-6978-8796-a5b4c3d2e1f0" ] ;
     fhir:Bundle.entry.resource <urn:uuid:0f1e2d3c-4b5a-6978-8796-a5b4c3d2e1f0>
  ], [
     fhir:index 1 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:1a2b3c4d-5e6f-4708-RAN4NUM-a3b4c5d6e7f8" ] ;
     fhir:Bundle.entry.resource <urn:uuid:1a2b3c4d-5e6f-4708-RAN4NUM-a3b4c5d6e7f8>
  ] .

<urn:uuid:0f1e2d3c-4b5a-6978-8796-a5b4c3d2e1f0> a fhir:MessageHeader ;
  fhir:Resource.id [ fhir:value "MI-FOD-2026-FHIRID"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://somewhere.org/fhir/us/fod/StructureDefinition/fod-message-header" ;
       fhir:index 0 ;
       fhir:link <http://somewhere.org/fhir/us/fod/StructureDefinition/fod-message-header>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "en"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\"><a name=\"MessageHeader_MI-FOD-2026-FHIRID\"> </a><p class=\"res-header-id\"><b>Generated Narrative: MessageHeader MI-FOD-2026-FHIRID</b></p><a name=\"MI-FOD-2026-FHIRID\"> </a><a name=\"hcMI-FOD-2026-FHIRID\"> </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\">Language: en</p><p style=\"margin-bottom: 0px\">Profile: <code>http://somewhere.org/fhir/us/fod/StructureDefinition/fod-message-header</code></p></div><p><b>event</b>: fod-d-event-cs: fact-of-death-void (fact-of-death-void)</p><h3>Destinations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Name</b></td><td><b>Endpoint</b></td><td><b>Receiver</b></td></tr><tr><td style=\"display: none\">*</td><td>Michigan Department of Health and Human Services</td><td><a href=\"https://ehr.example.org/fhir/$process-message\">https://ehr.example.org/fhir/$process-message</a></td><td>MiDHHS</td></tr></table><p><b>sender</b>: <code>Michigan Department of Health and Human Services</code></p><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Name</b></td><td><b>Endpoint</b></td></tr><tr><td style=\"display: none\">*</td><td>Michigan Vital Records Notification Service</td><td><a href=\"https://vitalrecords.example.gov/fod\">https://vitalrecords.example.gov/fod</a></td></tr></table><p><b>focus</b>: <code>urn:uuid:2b3c4d5e-6f70-4812-6249-6a7b8c9d0e1f</code></p></div>"
  ] ;
  fhir:MessageHeader.eventCoding [
     fhir:Coding.system [ fhir:value "http://somewhere.org/fhir/us/fod/CodeSystem/fod-d-event-cs" ] ;
     fhir:Coding.code [ fhir:value "fact-of-death-void" ]
  ] ;
  fhir:MessageHeader.destination [
     fhir:index 0 ;
     fhir:MessageHeader.destination.name [ fhir:value "Michigan Department of Health and Human Services" ] ;
     fhir:MessageHeader.destination.endpoint [ fhir:value "https://ehr.example.org/fhir/$process-message" ] ;
     fhir:MessageHeader.destination.receiver [
       fhir:Reference.display [ fhir:value "MiDHHS" ]
     ]
  ] ;
  fhir:MessageHeader.sender [
     fhir:Reference.reference [ fhir:value "urn:uuid:5d4c3b2a-3817-4716-8524-3f2e1d0c9b8a" ] ;
     fhir:Reference.display [ fhir:value "Michigan Department of Health and Human Services" ]
  ] ;
  fhir:MessageHeader.source [
     fhir:MessageHeader.source.name [ fhir:value "Michigan Vital Records Notification Service" ] ;
     fhir:MessageHeader.source.endpoint [ fhir:value "https://vitalrecords.example.gov/fod" ]
  ] ;
  fhir:MessageHeader.focus [
     fhir:index 0 ;
     fhir:Reference.reference [ fhir:value "urn:uuid:2b3c4d5e-6f70-4812-6249-6a7b8c9d0e1f" ]
  ] .

<urn:uuid:1a2b3c4d-5e6f-4708-RAN4NUM-a3b4c5d6e7f8> a fhir:Patient ;
  fhir:Resource.id [ fhir:value "fod-decedent-hospital-example"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://somewhere.org/fhir/us/fod/StructureDefinition/fod-decedent" ;
       fhir:index 0 ;
       fhir:link <http://somewhere.org/fhir/us/fod/StructureDefinition/fod-decedent>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "en"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\"><a name=\"Patient_fod-decedent-hospital-example\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Patient fod-decedent-hospital-example</b></p><a name=\"fod-decedent-hospital-example\"> </a><a name=\"hcfod-decedent-hospital-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\">Language: en</p><p style=\"margin-bottom: 0px\">Profile: <code>http://somewhere.org/fhir/us/fod/StructureDefinition/fod-decedent</code></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Emily Rose Anderson (official) Female, DoB: 1997-09-23 ( Social Security number)</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Known status of Patient\">Deceased:</td><td colspan=\"3\">false</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Alternate names (see the one above)\">Alt. Name:</td><td colspan=\"3\">Emily Mitchell (Name changed for Marriage)</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Patient\">Contact Detail</td><td colspan=\"3\"><ul><li>ph: 555-214-6387(Home)</li><li>123 Elm Street Port Huron MI 48060 US </li></ul></td></tr></table></div>"
  ] ;
  fhir:Patient.identifier [
     fhir:index 0 ;
     fhir:Identifier.type [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ] ;
         fhir:Coding.code [ fhir:value "SS" ]
       ]
     ] ;
     fhir:Identifier.system [ fhir:value "http://hl7.org/fhir/sid/us-ssn" ] ;
     fhir:Identifier.value [ fhir:value "483729105" ]
  ] ;
  fhir:Patient.name [
     fhir:index 0 ;
     fhir:HumanName.use [ fhir:value "official" ] ;
     fhir:HumanName.family [ fhir:value "Anderson" ] ;
     fhir:HumanName.given [
       fhir:value "Emily" ;
       fhir:index 0
     ], [
       fhir:value "Rose" ;
       fhir:index 1
     ]
  ], [
     fhir:index 1 ;
     fhir:HumanName.use [ fhir:value "maiden" ] ;
     fhir:HumanName.family [ fhir:value "Mitchell" ] ;
     fhir:HumanName.given [
       fhir:value "Emily" ;
       fhir:index 0
     ]
  ] ;
  fhir:Patient.telecom [
     fhir:index 0 ;
     fhir:ContactPoint.system [ fhir:value "phone" ] ;
     fhir:ContactPoint.value [ fhir:value "555-214-6387" ] ;
     fhir:ContactPoint.use [ fhir:value "home" ]
  ] ;
  fhir:Patient.gender [ fhir:value "female"] ;
  fhir:Patient.birthDate [ fhir:value "1997-09-23"^^xsd:date] ;
  fhir:Patient.deceasedBoolean [ fhir:value "false"^^xsd:boolean] ;
  fhir:Patient.address [
     fhir:index 0 ;
     fhir:Address.line [
       fhir:value "123 Elm Street" ;
       fhir:index 0
     ] ;
     fhir:Address.city [ fhir:value "Port Huron" ] ;
     fhir:Address.district [ fhir:value "4" ] ;
     fhir:Address.state [ fhir:value "MI" ] ;
     fhir:Address.postalCode [ fhir:value "48060" ] ;
     fhir:Address.country [ fhir:value "US" ]
  ] .

# - ontology header ------------------------------------------------------------

<http://example.org/fhir/us/fod/Bundle/fod-void-example.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

