{"name": "procedure-code-in-an-undefined-absent-reason", "comment": "A procedure coded unk, in lower case, in v3 NullFlavor with a translation FOO in FHIR's data-absent-reason, neither a code of its system: no cascade:procedureCode and no #absent-procedureCode node, since a coding that is no code of its system names no reason, and each is a finding, ccda:absentReasonNotCarried.", "input": {"file": "fixtures/in/procedure-code-in-an-undefined-absent-reason.xml", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/in/procedure-code-in-an-undefined-absent-reason.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\">\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-R\"/>\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-552012\"/>\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      </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.7.1\" extension=\"2015-08-01\"/>\n          <code code=\"47519-4\" displayName=\"History of Procedures Document\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n          <title>Procedures</title>\n          <entry typeCode=\"DRIV\">\n            <procedure classCode=\"PROC\" moodCode=\"EVN\">\n              <templateId root=\"2.16.840.1.113883.10.20.22.4.14\" extension=\"2014-06-09\"/>\n              <id root=\"2.16.840.1.113883.19.5.99999.5\" extension=\"PROC-2011\"/>\n              <code code=\"unk\" displayName=\"unknown\" codeSystem=\"2.16.840.1.113883.5.1008\" codeSystemName=\"HL7 NullFlavor\">\n                <translation code=\"FOO\" displayName=\"Never Defined\" codeSystem=\"2.16.840.1.113883.4.642.4.1048\" codeSystemName=\"data-absent-reason\"/>\n              </code>\n              <statusCode code=\"completed\"/>\n              <effectiveTime value=\"20240214\"/>\n            </procedure>\n          </entry>\n        </section>\n      </component>\n    </structuredBody>\n  </component>\n</ClinicalDocument>\n"}, "expectedGraph": {"file": "fixtures/expected/procedure-code-in-an-undefined-absent-reason.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/expected/procedure-code-in-an-undefined-absent-reason.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<urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> a cascade:Organization .\n<ni:///sha-256;pX0TlmSp9JeAF3dF2rnzxUUxCNCu3OH6g6ITY78E1AM> prov:wasGeneratedBy _:cfd3cbc96399b93c23cb03dcfd166474 ;\n\tprov:wasAttributedTo <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:cfd3cbc96399b93c23cb03dcfd166474 prov:qualifiedAssociation _:bcbfbaed4d6a8360dd9b19f0beb72d0d .\n_:bcbfbaed4d6a8360dd9b19f0beb72d0d 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_:28ca2048823a5d796a40f8b01a4610b7 bridge:arrivedAs <ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> ;\n\toa:hasSelector _:c034ddd869ff88d8add826cbffb63cac .\n_:c034ddd869ff88d8add826cbffb63cac 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;EVwdxLuG51G60_9c_XpCwjPNK7H2ZQcLTj262S_EZA8> foaf:familyName \"Okonjo\" ;\n\tfoaf:givenName \"Ada\" ;\n\tcascade:dateOfBirth \"1948-03-02\"^^xsd:date ;\n\tcascade:administrativeGender \"female\" .\n<ni:///sha-256;35bdntLBVythRI70NwmJKIzNmI3-g7CrTqGHYl0ptns> cascade:procedureName \"unknown\" ;\n\tcascade:procedureDate \"2024-02-14\"^^xsd:date ;\n\tcascade:workflowStatus \"completed\" .\n<urn:uuid:794d1263-7742-8a95-850e-663e9a08ffe7> a cascade:PatientProfile ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.2:MRN-552012> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.2:MRN-552012\" .\n<ni:///sha-256;EVwdxLuG51G60_9c_XpCwjPNK7H2ZQcLTj262S_EZA8> prov:specializationOf <urn:uuid:794d1263-7742-8a95-850e-663e9a08ffe7> .\n_:d79786e706503e82a884b6b81c66f584 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_:4d6f331ecfdc3c1c303dd48822f40703 bridge:arrivedAs <ni:///sha-256;EVwdxLuG51G60_9c_XpCwjPNK7H2ZQcLTj262S_EZA8> ;\n\toa:hasSelector _:d79786e706503e82a884b6b81c66f584 .\n<urn:uuid:fc383492-aa4c-886b-b0bb-b81b02cace16> a cascade:MedicalProcedure ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.5:PROC-2011> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.5:PROC-2011\" .\n<ni:///sha-256;35bdntLBVythRI70NwmJKIzNmI3-g7CrTqGHYl0ptns> prov:specializationOf <urn:uuid:fc383492-aa4c-886b-b0bb-b81b02cace16> ;\n\tcascade:patient <urn:uuid:794d1263-7742-8a95-850e-663e9a08ffe7> .\n_:e978865a93f172947481ff4576c03c11 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()='procedure' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:336f078b20be1b33e94b85411a7685dc bridge:arrivedAs <ni:///sha-256;35bdntLBVythRI70NwmJKIzNmI3-g7CrTqGHYl0ptns> ;\n\toa:hasSelector _:e978865a93f172947481ff4576c03c11 .\n_:28ca2048823a5d796a40f8b01a4610b7 oa:hasSource <ni:///sha-256;pX0TlmSp9JeAF3dF2rnzxUUxCNCu3OH6g6ITY78E1AM> ;\n\tprov:wasDerivedFrom <ni:///sha-256;pX0TlmSp9JeAF3dF2rnzxUUxCNCu3OH6g6ITY78E1AM> ;\n\tprov:wasGeneratedBy _:ea33a053137247de2ef4f76da214eea9 .\n_:4d6f331ecfdc3c1c303dd48822f40703 oa:hasSource <ni:///sha-256;pX0TlmSp9JeAF3dF2rnzxUUxCNCu3OH6g6ITY78E1AM> ;\n\tprov:wasDerivedFrom <ni:///sha-256;pX0TlmSp9JeAF3dF2rnzxUUxCNCu3OH6g6ITY78E1AM> ;\n\tprov:wasGeneratedBy _:ea33a053137247de2ef4f76da214eea9 .\n_:336f078b20be1b33e94b85411a7685dc oa:hasSource <ni:///sha-256;pX0TlmSp9JeAF3dF2rnzxUUxCNCu3OH6g6ITY78E1AM> ;\n\tprov:wasDerivedFrom <ni:///sha-256;pX0TlmSp9JeAF3dF2rnzxUUxCNCu3OH6g6ITY78E1AM> ;\n\tprov:wasGeneratedBy _:ea33a053137247de2ef4f76da214eea9 .\n<ni:///sha-256;pX0TlmSp9JeAF3dF2rnzxUUxCNCu3OH6g6ITY78E1AM> <http://purl.org/pav/retrievedOn> \"2025-07-02T09:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:6bc2c0e97d6be75f9d5dabcece64b35f .\n_:8c0c2c331afd65e3f50916489f5db3c3 prov:agent _:6d1c6cb4b940b2a03a4c74be03cd53ac ;\n\tprov:hadRole cascade:TransmitterRole .\n_:6bc2c0e97d6be75f9d5dabcece64b35f prov:qualifiedAssociation _:8c0c2c331afd65e3f50916489f5db3c3 .\n_:6d1c6cb4b940b2a03a4c74be03cd53ac <http://www.w3.org/2000/01/rdf-schema#label> \"Riverside patient portal\" .\n_:ea33a053137247de2ef4f76da214eea9 <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;pX0TlmSp9JeAF3dF2rnzxUUxCNCu3OH6g6ITY78E1AM> a prov:Entity .\n_:ea33a053137247de2ef4f76da214eea9 a prov:Activity ;\n\tprov:used <ni:///sha-256;pX0TlmSp9JeAF3dF2rnzxUUxCNCu3OH6g6ITY78E1AM> ;\n\tprov:qualifiedAssociation _:afb447a331f05dea18375c141358bf0b .\n_:afb447a331f05dea18375c141358bf0b prov:hadPlan _:ba1260cbc52e90be8e3f89102f1f1f28 .\n_:ba1260cbc52e90be8e3f89102f1f1f28 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_:afb447a331f05dea18375c141358bf0b prov:agent _:5973755f31114adcc6e49f0985e0d719 .\n_:5973755f31114adcc6e49f0985e0d719 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/procedure-code-in-an-undefined-absent-reason.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/findings/procedure-code-in-an-undefined-absent-reason.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_:e755a407a67fee5ec36a27851058b156 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:ed09c21b40ad9a22d843eaf0f3f49aaa a oa:XPathSelector ;\n\trdf:value \"*[local-name()='author' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:e755a407a67fee5ec36a27851058b156 oa:refinedBy _:ed09c21b40ad9a22d843eaf0f3f49aaa .\n_:c17fb2bb200431f80d174ed88ad5f000 a oa:Annotation ;\n\toa:hasTarget _:d0260f6bec082173e6c52850a9d5b14b .\n_:d0260f6bec082173e6c52850a9d5b14b oa:hasSource <../in/procedure-code-in-an-undefined-absent-reason.xml> ;\n\toa:hasSelector _:e755a407a67fee5ec36a27851058b156 .\n_:c17fb2bb200431f80d174ed88ad5f000 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_:be7d3c361a650f8613606a59e062fbad a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:d6fae55d0342aa8a79be9f3a9ed7b1d oa:hasSource <../in/procedure-code-in-an-undefined-absent-reason.xml> .\n_:be7d3c361a650f8613606a59e062fbad oa:refinedBy _:aa11262b22eb4e3e99a9af416e089e67 .\n_:aa11262b22eb4e3e99a9af416e089e67 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='id' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:d6fae55d0342aa8a79be9f3a9ed7b1d oa:hasSelector _:be7d3c361a650f8613606a59e062fbad .\n_:c077c44974ec779df80069b1d6610bf3 oa:hasTarget _:d6fae55d0342aa8a79be9f3a9ed7b1d .\n_:f38e011009059a4910cf8dac8b90d3e9 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:a473ce96df2217029d5725a9649e05e2 oa:hasSource <../in/procedure-code-in-an-undefined-absent-reason.xml> .\n_:f38e011009059a4910cf8dac8b90d3e9 oa:refinedBy _:eae74d908630bfc184ae9a58c1c484a9 .\n_:eae74d908630bfc184ae9a58c1c484a9 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:a473ce96df2217029d5725a9649e05e2 oa:hasSelector _:f38e011009059a4910cf8dac8b90d3e9 .\n_:de990f86594f3a2c58c5b768b66cd7fd oa:hasTarget _:a473ce96df2217029d5725a9649e05e2 .\n_:b2ffeaaad0a82e28fe052aea7f8659d4 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:c027fc1dc6afd9eb8fa8ea80eab5bc61 oa:hasSource <../in/procedure-code-in-an-undefined-absent-reason.xml> .\n_:b2ffeaaad0a82e28fe052aea7f8659d4 oa:refinedBy _:b64d3085541f7907145136c040004dae .\n_:b64d3085541f7907145136c040004dae a oa:XPathSelector ;\n\trdf:value \"*[local-name()='effectiveTime' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:c027fc1dc6afd9eb8fa8ea80eab5bc61 oa:hasSelector _:b2ffeaaad0a82e28fe052aea7f8659d4 .\n_:ad6e81284d846629c8eb2c6fe37e2512 oa:hasTarget _:c027fc1dc6afd9eb8fa8ea80eab5bc61 .\n_:c077c44974ec779df80069b1d6610bf3 sh:resultSeverity sh:Info .\n_:de990f86594f3a2c58c5b768b66cd7fd sh:resultSeverity sh:Info .\n_:ad6e81284d846629c8eb2c6fe37e2512 sh:resultSeverity sh:Info .\n_:c077c44974ec779df80069b1d6610bf3 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-R\" .\n_:de990f86594f3a2c58c5b768b66cd7fd a oa:Annotation ;\n\toa:hasBody ccda:documentType ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"34133-9\" .\n_:ad6e81284d846629c8eb2c6fe37e2512 a oa:Annotation ;\n\toa:hasBody ccda:documentTime ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"20261029090000-0500\" .\n_:dc9c7d334dc17660380c34e51f1e814e a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:b3240a3f7ca1de15722e8ec20219538f oa:hasSource <../in/procedure-code-in-an-undefined-absent-reason.xml> .\n_:dc9c7d334dc17660380c34e51f1e814e oa:refinedBy _:fcf0bdfbdebd961905d569e460397758 .\n_:fcf0bdfbdebd961905d569e460397758 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()='procedure' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:b3240a3f7ca1de15722e8ec20219538f oa:hasSelector _:dc9c7d334dc17660380c34e51f1e814e .\n_:e60e4d0c45aeb196a7b816ac453aedad oa:hasTarget _:b3240a3f7ca1de15722e8ec20219538f .\n_:b110fdd5b7db1ceace3d5949b9cdb8cd a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:fa2cfd5a19a20bbcb39706f6e2ced6bd oa:hasSource <../in/procedure-code-in-an-undefined-absent-reason.xml> .\n_:b110fdd5b7db1ceace3d5949b9cdb8cd oa:refinedBy _:d775686f7b5f9e2dad798e879778e03c .\n_:d775686f7b5f9e2dad798e879778e03c 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()='procedure' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:fa2cfd5a19a20bbcb39706f6e2ced6bd oa:hasSelector _:b110fdd5b7db1ceace3d5949b9cdb8cd .\n_:d0a7089eda817ec200e722bc8348a52 oa:hasTarget _:fa2cfd5a19a20bbcb39706f6e2ced6bd .\n_:e60e4d0c45aeb196a7b816ac453aedad sh:resultSeverity sh:Info .\n_:d0a7089eda817ec200e722bc8348a52 sh:resultSeverity sh:Info .\n_:e60e4d0c45aeb196a7b816ac453aedad a oa:Annotation ;\n\toa:hasBody ccda:absentReasonNotCarried ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"unk\" .\n_:d0a7089eda817ec200e722bc8348a52 a oa:Annotation ;\n\toa:hasBody ccda:absentReasonNotCarried ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"FOO\" .\n", "empty": false}}