{"name": "patient-deceased", "comment": "A patient whose death indicator is true and whose death time is a day: the version holds deceased true, the date of death as an xsd:date, and the administrative gender F mapped by C-CDA on FHIR's concept map to female.", "input": {"file": "fixtures/in/patient-deceased.xml", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/in/patient-deceased.xml", "text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ClinicalDocument xmlns=\"urn:hl7-org:v3\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:sdtc=\"urn:hl7-org:sdtc\">\n  <realmCode code=\"US\"/>\n  <typeId root=\"2.16.840.1.113883.1.3\" extension=\"POCD_HD000040\"/>\n  <templateId root=\"2.16.840.1.113883.10.20.22.1.1\" extension=\"2015-08-01\"/>\n  <templateId root=\"2.16.840.1.113883.10.20.22.1.2\" extension=\"2015-08-01\"/>\n  <id root=\"2.16.840.1.113883.19.5.99999.1\" extension=\"CCD-2026-1029-D\"/>\n  <code code=\"34133-9\" displayName=\"Summarization of Episode Note\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n  <title>Continuity of Care Document</title>\n  <effectiveTime value=\"20261029090000-0500\"/>\n  <confidentialityCode code=\"N\" codeSystem=\"2.16.840.1.113883.5.25\"/>\n  <languageCode code=\"en-US\"/>\n  <recordTarget>\n    <patientRole>\n      <id root=\"2.16.840.1.113883.19.5.99999.2\" extension=\"MRN-552010\"/>\n      <patient>\n        <name use=\"L\">\n          <given>Ada</given>\n          <family>Okonjo</family>\n        </name>\n        <administrativeGenderCode code=\"F\" codeSystem=\"2.16.840.1.113883.5.1\"/>\n        <birthTime value=\"19480302\"/>\n        <sdtc:deceasedInd value=\"true\"/>\n        <sdtc:deceasedTime value=\"20240315\"/>\n      </patient>\n    </patientRole>\n  </recordTarget>\n  <author>\n    <time value=\"20261029090000-0500\"/>\n    <assignedAuthor>\n      <id root=\"2.16.840.1.113883.19.5.99999.3\"/>\n      <representedOrganization>\n        <name>Riverside Community Hospital</name>\n      </representedOrganization>\n    </assignedAuthor>\n  </author>\n  <custodian>\n    <assignedCustodian>\n      <representedCustodianOrganization>\n        <id root=\"2.16.840.1.113883.19.5.99999.3\"/>\n        <name>Riverside Community Hospital</name>\n      </representedCustodianOrganization>\n    </assignedCustodian>\n  </custodian>\n  <component>\n    <structuredBody>\n      <component>\n        <section>\n          <templateId root=\"2.16.840.1.113883.10.20.22.2.5.1\" extension=\"2015-08-01\"/>\n          <code code=\"11450-4\" displayName=\"Problem List\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n          <title>Problems</title>\n          <entry typeCode=\"DRIV\">\n            <act classCode=\"ACT\" moodCode=\"EVN\">\n              <templateId root=\"2.16.840.1.113883.10.20.22.4.3\" extension=\"2015-08-01\"/>\n              <id root=\"2.16.840.1.113883.19.5.99999.4\" extension=\"CONCERN-7701\"/>\n              <code code=\"CONC\" codeSystem=\"2.16.840.1.113883.5.6\"/>\n              <statusCode code=\"active\"/>\n              <entryRelationship typeCode=\"SUBJ\">\n                <observation classCode=\"OBS\" moodCode=\"EVN\">\n                  <templateId root=\"2.16.840.1.113883.10.20.22.4.4\" extension=\"2015-08-01\"/>\n                  <id root=\"2.16.840.1.113883.19.5.99999.4\" extension=\"PROBLEM-7701\"/>\n                  <code code=\"55607006\" displayName=\"Problem\" codeSystem=\"2.16.840.1.113883.6.96\"/>\n                  <statusCode code=\"completed\"/>\n                  <effectiveTime value=\"20250327\"/>\n                  <value xsi:type=\"CD\" code=\"195967001\" displayName=\"Asthma\" codeSystem=\"2.16.840.1.113883.6.96\"/>\n                </observation>\n              </entryRelationship>\n            </act>\n          </entry>\n        </section>\n      </component>\n    </structuredBody>\n  </component>\n</ClinicalDocument>\n"}, "expectedGraph": {"file": "fixtures/expected/patient-deceased.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/expected/patient-deceased.ttl", "text": "@prefix bridge: <https://ns.cascadeprotocol.org/bridge/v1-draft#> .\n@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n@prefix cascade: <https://ns.cascadeprotocol.org/cascade#> .\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .\n@prefix foaf: <http://xmlns.com/foaf/0.1/> .\n@prefix prov: <http://www.w3.org/ns/prov#> .\n@prefix org: <http://www.w3.org/ns/org#> .\n@prefix oa: <http://www.w3.org/ns/oa#> .\n<ni:///sha-256;B9FT04RXJU9XybLfBXj4OsnfmYhy7CM3NFD5KzPXAeY> cascade:onsetDate \"2025-03-27\"^^xsd:date ;\n\tcascade:clinicalStatus \"active\" ;\n\tcascade:conditionName \"Asthma\" ;\n\tcascade:conditionCategory \"problem-list-item\" ;\n\tcascade:conditionCode <http://snomed.info/id/195967001> .\n<urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> a cascade:Organization .\n<ni:///sha-256;Dz3FjicqlEEvnp7qIotZe-SJdJF_HXfoWz1v0mryzkc> prov:wasGeneratedBy _:edb0d19c196778bf53439c9db05ec189 ;\n\tprov:wasAttributedTo <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:edb0d19c196778bf53439c9db05ec189 prov:qualifiedAssociation _:f3bf8c68836d7821a5822472d4506e18 .\n_:f3bf8c68836d7821a5822472d4506e18 prov:agent <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> ;\n\tprov:hadRole cascade:CustodianRole .\n<ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> prov:specializationOf <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:db99ebfe8f4f7702a60ff3b8b1d7ba85 bridge:arrivedAs <ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> ;\n\toa:hasSelector _:d177cd32cf93433d24e0bba320258b1f .\n_:d177cd32cf93433d24e0bba320258b1f a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='custodian' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='assignedCustodian' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='representedCustodianOrganization' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n<ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> foaf:name \"Riverside Community Hospital\" ;\n\torg:identifier \"urn:oid:2.16.840.1.113883.19.5.99999.3\"^^<urn:ietf:rfc:3986> .\n<ni:///sha-256;hNAIjnLFanAh8JTlwY_pZyrTgok7jAaLyExBU1gxWek> foaf:familyName \"Okonjo\" ;\n\tfoaf:givenName \"Ada\" ;\n\tcascade:dateOfBirth \"1948-03-02\"^^xsd:date ;\n\tcascade:dateOfDeath \"2024-03-15\"^^xsd:date ;\n\tcascade:administrativeGender \"female\" ;\n\tcascade:deceased true .\n<urn:uuid:55d82f06-b405-8e69-8c76-7e876a0b536c> a cascade:PatientProfile ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.2:MRN-552010> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.2:MRN-552010\" .\n<ni:///sha-256;hNAIjnLFanAh8JTlwY_pZyrTgok7jAaLyExBU1gxWek> prov:specializationOf <urn:uuid:55d82f06-b405-8e69-8c76-7e876a0b536c> .\n_:e92f957506dc4a72392adc98160ace08 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='recordTarget' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='patientRole' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:ead61c4892c379429f6181d739675b46 bridge:arrivedAs <ni:///sha-256;hNAIjnLFanAh8JTlwY_pZyrTgok7jAaLyExBU1gxWek> ;\n\toa:hasSelector _:e92f957506dc4a72392adc98160ace08 .\n<urn:uuid:995be061-58f6-8de3-8560-42a0196784d2> a cascade:ProblemOrDiagnosis ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.4:PROBLEM-7701> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.4:PROBLEM-7701\" .\n<ni:///sha-256;B9FT04RXJU9XybLfBXj4OsnfmYhy7CM3NFD5KzPXAeY> prov:specializationOf <urn:uuid:995be061-58f6-8de3-8560-42a0196784d2> ;\n\tcascade:patient <urn:uuid:55d82f06-b405-8e69-8c76-7e876a0b536c> .\n_:a76b4b441413c73e753786792ffbc278 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='structuredBody' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entry' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='act' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entryRelationship' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='observation' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:e372f0ce9804af3dea1c2ce0f3ebc229 bridge:arrivedAs <ni:///sha-256;B9FT04RXJU9XybLfBXj4OsnfmYhy7CM3NFD5KzPXAeY> ;\n\toa:hasSelector _:a76b4b441413c73e753786792ffbc278 .\n_:ead61c4892c379429f6181d739675b46 oa:hasSource <ni:///sha-256;Dz3FjicqlEEvnp7qIotZe-SJdJF_HXfoWz1v0mryzkc> ;\n\tprov:wasDerivedFrom <ni:///sha-256;Dz3FjicqlEEvnp7qIotZe-SJdJF_HXfoWz1v0mryzkc> ;\n\tprov:wasGeneratedBy _:6722558e3585eab4971de358bb386be3 .\n_:db99ebfe8f4f7702a60ff3b8b1d7ba85 oa:hasSource <ni:///sha-256;Dz3FjicqlEEvnp7qIotZe-SJdJF_HXfoWz1v0mryzkc> ;\n\tprov:wasDerivedFrom <ni:///sha-256;Dz3FjicqlEEvnp7qIotZe-SJdJF_HXfoWz1v0mryzkc> ;\n\tprov:wasGeneratedBy _:6722558e3585eab4971de358bb386be3 .\n_:e372f0ce9804af3dea1c2ce0f3ebc229 oa:hasSource <ni:///sha-256;Dz3FjicqlEEvnp7qIotZe-SJdJF_HXfoWz1v0mryzkc> ;\n\tprov:wasDerivedFrom <ni:///sha-256;Dz3FjicqlEEvnp7qIotZe-SJdJF_HXfoWz1v0mryzkc> ;\n\tprov:wasGeneratedBy _:6722558e3585eab4971de358bb386be3 .\n<ni:///sha-256;Dz3FjicqlEEvnp7qIotZe-SJdJF_HXfoWz1v0mryzkc> <http://purl.org/pav/retrievedOn> \"2025-07-02T09:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:6d3365f7f42da216518762755cfc96d0 .\n_:5021a6a8955a1c10b45613152f2c5f49 prov:agent _:dbe5c6321d083d4bab75ce3cd3f45297 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:6d3365f7f42da216518762755cfc96d0 prov:qualifiedAssociation _:5021a6a8955a1c10b45613152f2c5f49 .\n_:dbe5c6321d083d4bab75ce3cd3f45297 <http://www.w3.org/2000/01/rdf-schema#label> \"Riverside patient portal\" .\n_:6722558e3585eab4971de358bb386be3 <http://www.w3.org/2000/01/rdf-schema#label> \"C-CDA download\" ;\n\tprov:startedAtTime \"2025-07-02T09:00:04Z\"^^xsd:dateTime .\n<ni:///sha-256;Dz3FjicqlEEvnp7qIotZe-SJdJF_HXfoWz1v0mryzkc> a prov:Entity .\n_:6722558e3585eab4971de358bb386be3 a prov:Activity ;\n\tprov:used <ni:///sha-256;Dz3FjicqlEEvnp7qIotZe-SJdJF_HXfoWz1v0mryzkc> ;\n\tprov:qualifiedAssociation _:317232e2480b15a69d59c9a69d72a9bd .\n_:317232e2480b15a69d59c9a69d72a9bd prov:hadPlan _:392a35d669e161efb6e930010e153176 .\n_:392a35d669e161efb6e930010e153176 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"ccda\" ;\n\t<http://purl.org/pav/version> \"0.1.0\" .\n_:317232e2480b15a69d59c9a69d72a9bd prov:agent _:7905b6b5e52fc96a7c0a1d27592d5792 .\n_:7905b6b5e52fc96a7c0a1d27592d5792 a prov:SoftwareAgent ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"Cascade Bridge for Rust\" ;\n\t<http://purl.org/pav/version> \"0.1.0\" .\n"}, "expectedFindings": {"file": "fixtures/findings/patient-deceased.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/findings/patient-deceased.ttl", "text": "@prefix ccda: <https://ns.cascadeprotocol.org/adapter/ccda/v1-draft#> .\n@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n@prefix sh: <http://www.w3.org/ns/shacl#> .\n@prefix oa: <http://www.w3.org/ns/oa#> .\n_:aad090a019dd7ba09fd3340cbd962af6 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:a667d829a734bfba1bfbee58ac42e331 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='author' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:aad090a019dd7ba09fd3340cbd962af6 oa:refinedBy _:a667d829a734bfba1bfbee58ac42e331 .\n_:f2ca61c39f8e42fd8eca89c184911571 a oa:Annotation ;\n\toa:hasTarget _:be40af6193477f429d81ec6fa67bb807 .\n_:be40af6193477f429d81ec6fa67bb807 oa:hasSource <../in/patient-deceased.xml> ;\n\toa:hasSelector _:aad090a019dd7ba09fd3340cbd962af6 .\n_:f2ca61c39f8e42fd8eca89c184911571 oa:hasBody ccda:documentAuthor ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='author' and namespace-uri()='urn:hl7-org:v3']\" ;\n\tsh:resultSeverity sh:Info .\n_:f4ba2b11b8fb6b40f928e2a8d73a073b a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:c2c785eff346e834daa57ba2d85f3ed4 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='structuredBody' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entry' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='act' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entryRelationship' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='observation' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:f4ba2b11b8fb6b40f928e2a8d73a073b oa:refinedBy _:c2c785eff346e834daa57ba2d85f3ed4 .\n_:a6fda06e485798b4de49f11bb175bd9f a oa:Annotation ;\n\toa:hasTarget _:c42430b7360c87437feef7f16420895a .\n_:c42430b7360c87437feef7f16420895a oa:hasSource <../in/patient-deceased.xml> ;\n\toa:hasSelector _:f4ba2b11b8fb6b40f928e2a8d73a073b .\n_:a6fda06e485798b4de49f11bb175bd9f oa:hasBody ccda:statementCode ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='structuredBody' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='entry' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='act' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='entryRelationship' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='observation' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='code' and namespace-uri()='urn:hl7-org:v3']/@code\" ;\n\tsh:resultSeverity sh:Info .\n_:a56f42e279e3514ded87198140752588 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:e0d09b3716a587674cc863334012a74a oa:hasSource <../in/patient-deceased.xml> .\n_:a56f42e279e3514ded87198140752588 oa:refinedBy _:ebd8d48b8c53b0f7947f65dbdf4e2e8a .\n_:ebd8d48b8c53b0f7947f65dbdf4e2e8a a oa:XPathSelector ;\n\trdf:value \"*[local-name()='id' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:e0d09b3716a587674cc863334012a74a oa:hasSelector _:a56f42e279e3514ded87198140752588 .\n_:ec62ecd5e8a66a10c6b0c93f88e1fae6 oa:hasTarget _:e0d09b3716a587674cc863334012a74a .\n_:b5f5b5ee4895e422b1150feebc874a59 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:b807dc911f74f37180c96624da4c00dc oa:hasSource <../in/patient-deceased.xml> .\n_:b5f5b5ee4895e422b1150feebc874a59 oa:refinedBy _:b6fd2190f03e91b9911709053f439581 .\n_:b6fd2190f03e91b9911709053f439581 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:b807dc911f74f37180c96624da4c00dc oa:hasSelector _:b5f5b5ee4895e422b1150feebc874a59 .\n_:c3955e3a15f9da6552d29e5ca87b01b4 oa:hasTarget _:b807dc911f74f37180c96624da4c00dc .\n_:ca0a02dab8abc753a2f4823a4710d553 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:d029b4afac0d683d5d3047b31625cdc9 oa:hasSource <../in/patient-deceased.xml> .\n_:ca0a02dab8abc753a2f4823a4710d553 oa:refinedBy _:c844182bd2e4a5dad08be01873bbd6da .\n_:c844182bd2e4a5dad08be01873bbd6da a oa:XPathSelector ;\n\trdf:value \"*[local-name()='effectiveTime' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:d029b4afac0d683d5d3047b31625cdc9 oa:hasSelector _:ca0a02dab8abc753a2f4823a4710d553 .\n_:b8c7e1ffe2e8c54ebef48c05446e7079 oa:hasTarget _:d029b4afac0d683d5d3047b31625cdc9 .\n_:ec62ecd5e8a66a10c6b0c93f88e1fae6 sh:resultSeverity sh:Info .\n_:c3955e3a15f9da6552d29e5ca87b01b4 sh:resultSeverity sh:Info .\n_:b8c7e1ffe2e8c54ebef48c05446e7079 sh:resultSeverity sh:Info .\n_:ec62ecd5e8a66a10c6b0c93f88e1fae6 a oa:Annotation ;\n\toa:hasBody ccda:documentId ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"2.16.840.1.113883.19.5.99999.1|CCD-2026-1029-D\" .\n_:c3955e3a15f9da6552d29e5ca87b01b4 a oa:Annotation ;\n\toa:hasBody ccda:documentType ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"34133-9\" .\n_:b8c7e1ffe2e8c54ebef48c05446e7079 a oa:Annotation ;\n\toa:hasBody ccda:documentTime ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"20261029090000-0500\" .\n", "empty": false}}