{"name": "procedure-real-code-beside-absent-reason-codings", "comment": "A procedure coded SNOMED CT 73761001 with translations in v3 NullFlavor and FHIR's data-absent-reason: the SNOMED CT code is the one cascade:procedureCode, and the version has no #absent-procedureCode node.", "input": {"file": "fixtures/in/procedure-real-code-beside-absent-reason-codings.xml", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/in/procedure-real-code-beside-absent-reason-codings.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=\"73761001\" displayName=\"Colonoscopy\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\">\n                <translation code=\"UNK\" displayName=\"unknown\" codeSystem=\"2.16.840.1.113883.5.1008\" codeSystemName=\"HL7 NullFlavor\"/>\n                <translation code=\"asked-unknown\" displayName=\"Asked But Unknown\" 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-real-code-beside-absent-reason-codings.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/expected/procedure-real-code-beside-absent-reason-codings.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;8_CGbiDLwSzPFWxL6PKHymrRfNl--tWuGFmpIR8ZPVo> prov:wasGeneratedBy _:aeccd6fd174655f29f43b9f5c98c7413 ;\n\tprov:wasAttributedTo <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:aeccd6fd174655f29f43b9f5c98c7413 prov:qualifiedAssociation _:b4de6e7edb10671c4ea6f55d2caab474 .\n_:b4de6e7edb10671c4ea6f55d2caab474 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_:af551623441586bb307493ecac2cdb70 bridge:arrivedAs <ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> ;\n\toa:hasSelector _:c7892a52eb19fa5e8725c0979e3df9fb .\n_:c7892a52eb19fa5e8725c0979e3df9fb 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;LYv4ruw2aEw4IGCWIg7zHkzQuwkSGbg4VbgiLDSOQio> cascade:procedureDate \"2024-02-14\"^^xsd:date ;\n\tcascade:workflowStatus \"completed\" ;\n\tcascade:procedureName \"Colonoscopy\" ;\n\tcascade:procedureCode <http://snomed.info/id/73761001> .\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_:be956882821ec55d6b350e6d4239c8ff 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_:5ff3f83f49b1a2271600c22b29d5cd43 bridge:arrivedAs <ni:///sha-256;EVwdxLuG51G60_9c_XpCwjPNK7H2ZQcLTj262S_EZA8> ;\n\toa:hasSelector _:be956882821ec55d6b350e6d4239c8ff .\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;LYv4ruw2aEw4IGCWIg7zHkzQuwkSGbg4VbgiLDSOQio> prov:specializationOf <urn:uuid:fc383492-aa4c-886b-b0bb-b81b02cace16> ;\n\tcascade:patient <urn:uuid:794d1263-7742-8a95-850e-663e9a08ffe7> .\n_:c8d3b930905847f7ff79f11e657929fd 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_:7cd3f4d3ba935d749012e4230f075e21 bridge:arrivedAs <ni:///sha-256;LYv4ruw2aEw4IGCWIg7zHkzQuwkSGbg4VbgiLDSOQio> ;\n\toa:hasSelector _:c8d3b930905847f7ff79f11e657929fd .\n_:af551623441586bb307493ecac2cdb70 oa:hasSource <ni:///sha-256;8_CGbiDLwSzPFWxL6PKHymrRfNl--tWuGFmpIR8ZPVo> ;\n\tprov:wasDerivedFrom <ni:///sha-256;8_CGbiDLwSzPFWxL6PKHymrRfNl--tWuGFmpIR8ZPVo> ;\n\tprov:wasGeneratedBy _:32ca6f73bb67ec38d963e2347996fd9e .\n_:5ff3f83f49b1a2271600c22b29d5cd43 oa:hasSource <ni:///sha-256;8_CGbiDLwSzPFWxL6PKHymrRfNl--tWuGFmpIR8ZPVo> ;\n\tprov:wasDerivedFrom <ni:///sha-256;8_CGbiDLwSzPFWxL6PKHymrRfNl--tWuGFmpIR8ZPVo> ;\n\tprov:wasGeneratedBy _:32ca6f73bb67ec38d963e2347996fd9e .\n_:7cd3f4d3ba935d749012e4230f075e21 oa:hasSource <ni:///sha-256;8_CGbiDLwSzPFWxL6PKHymrRfNl--tWuGFmpIR8ZPVo> ;\n\tprov:wasDerivedFrom <ni:///sha-256;8_CGbiDLwSzPFWxL6PKHymrRfNl--tWuGFmpIR8ZPVo> ;\n\tprov:wasGeneratedBy _:32ca6f73bb67ec38d963e2347996fd9e .\n<ni:///sha-256;8_CGbiDLwSzPFWxL6PKHymrRfNl--tWuGFmpIR8ZPVo> <http://purl.org/pav/retrievedOn> \"2025-07-02T09:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:ebd9a53eb0e68dd7279f52a86cef37 .\n_:c5d485aaa1d65155487155b5d17bd441 prov:agent _:ecff00dd8c7585f67997034901b00a0b ;\n\tprov:hadRole cascade:TransmitterRole .\n_:ebd9a53eb0e68dd7279f52a86cef37 prov:qualifiedAssociation _:c5d485aaa1d65155487155b5d17bd441 .\n_:ecff00dd8c7585f67997034901b00a0b <http://www.w3.org/2000/01/rdf-schema#label> \"Riverside patient portal\" .\n_:32ca6f73bb67ec38d963e2347996fd9e <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;8_CGbiDLwSzPFWxL6PKHymrRfNl--tWuGFmpIR8ZPVo> a prov:Entity .\n_:32ca6f73bb67ec38d963e2347996fd9e a prov:Activity ;\n\tprov:used <ni:///sha-256;8_CGbiDLwSzPFWxL6PKHymrRfNl--tWuGFmpIR8ZPVo> ;\n\tprov:qualifiedAssociation _:f62c62e630b108123dd965ad38047261 .\n_:f62c62e630b108123dd965ad38047261 prov:hadPlan _:23a61b99f9024ef8d71b29ec9157063a .\n_:23a61b99f9024ef8d71b29ec9157063a 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_:f62c62e630b108123dd965ad38047261 prov:agent _:404fb9635f175a73da620075b18aac .\n_:404fb9635f175a73da620075b18aac 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-real-code-beside-absent-reason-codings.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/findings/procedure-real-code-beside-absent-reason-codings.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_:f47577a26c7fe97a0245be4fc77e9088 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:be795eb133513a281cb095235c67363a a oa:XPathSelector ;\n\trdf:value \"*[local-name()='author' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:f47577a26c7fe97a0245be4fc77e9088 oa:refinedBy _:be795eb133513a281cb095235c67363a .\n_:cf6c8b4e2e2c9051c22fbb91855be6ee a oa:Annotation ;\n\toa:hasTarget _:e98e40874a75c6429905c0a807136fb1 .\n_:e98e40874a75c6429905c0a807136fb1 oa:hasSource <../in/procedure-real-code-beside-absent-reason-codings.xml> ;\n\toa:hasSelector _:f47577a26c7fe97a0245be4fc77e9088 .\n_:cf6c8b4e2e2c9051c22fbb91855be6ee 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_:e1283ed7ec77329dc5cd2f755e02be09 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:d7b1f23b9cae2d1a23a378f86543b6 oa:hasSource <../in/procedure-real-code-beside-absent-reason-codings.xml> .\n_:e1283ed7ec77329dc5cd2f755e02be09 oa:refinedBy _:de85180f431cfedf5b81b8cb7c87d59a .\n_:de85180f431cfedf5b81b8cb7c87d59a a oa:XPathSelector ;\n\trdf:value \"*[local-name()='id' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:d7b1f23b9cae2d1a23a378f86543b6 oa:hasSelector _:e1283ed7ec77329dc5cd2f755e02be09 .\n_:a2c9d2228cf2960468c5f292e44c842e oa:hasTarget _:d7b1f23b9cae2d1a23a378f86543b6 .\n_:f861e176e63edece3f45b86eb525a469 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:a7f9d81fa681a9529f2758e1b5083312 oa:hasSource <../in/procedure-real-code-beside-absent-reason-codings.xml> .\n_:f861e176e63edece3f45b86eb525a469 oa:refinedBy _:cf38b27b4640919839eed6e9407f6475 .\n_:cf38b27b4640919839eed6e9407f6475 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:a7f9d81fa681a9529f2758e1b5083312 oa:hasSelector _:f861e176e63edece3f45b86eb525a469 .\n_:cf69f723af3e5853f37cdd6679c93249 oa:hasTarget _:a7f9d81fa681a9529f2758e1b5083312 .\n_:c60dd40a91f9f0ffde96d51e0f1bf2f5 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:f223bdfc6a76200f118a6a28b43d7e1e oa:hasSource <../in/procedure-real-code-beside-absent-reason-codings.xml> .\n_:c60dd40a91f9f0ffde96d51e0f1bf2f5 oa:refinedBy _:e8f14837b9eae3ebfbb49db64d91847c .\n_:e8f14837b9eae3ebfbb49db64d91847c a oa:XPathSelector ;\n\trdf:value \"*[local-name()='effectiveTime' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:f223bdfc6a76200f118a6a28b43d7e1e oa:hasSelector _:c60dd40a91f9f0ffde96d51e0f1bf2f5 .\n_:d87f60606abdd6088b9db56ff7ea75d3 oa:hasTarget _:f223bdfc6a76200f118a6a28b43d7e1e .\n_:a2c9d2228cf2960468c5f292e44c842e sh:resultSeverity sh:Info .\n_:cf69f723af3e5853f37cdd6679c93249 sh:resultSeverity sh:Info .\n_:d87f60606abdd6088b9db56ff7ea75d3 sh:resultSeverity sh:Info .\n_:a2c9d2228cf2960468c5f292e44c842e 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_:cf69f723af3e5853f37cdd6679c93249 a oa:Annotation ;\n\toa:hasBody ccda:documentType ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"34133-9\" .\n_:d87f60606abdd6088b9db56ff7ea75d3 a oa:Annotation ;\n\toa:hasBody ccda:documentTime ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"20261029090000-0500\" .\n", "empty": false}}