{"name": "procedure-code-nullflavor-not-listed", "comment": "A procedure whose code states no code, only the nullFlavor XYZ, which is no code of v3 NullFlavor: no cascade:procedureCode and no #absent-procedureCode node, and a finding, ccda:nullFlavorNotListed.", "input": {"file": "fixtures/in/procedure-code-nullflavor-not-listed.xml", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/in/procedure-code-nullflavor-not-listed.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 nullFlavor=\"XYZ\"/>\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-nullflavor-not-listed.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/expected/procedure-code-nullflavor-not-listed.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;t50BiAacHVi-kaBqiV2NtuNZrAWcgUby7aRGOgEZFkk> prov:wasGeneratedBy _:e97e8effbbadca19067f17e144c79386 ;\n\tprov:wasAttributedTo <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:e97e8effbbadca19067f17e144c79386 prov:qualifiedAssociation _:e1bd71cf592c7fb8f715c284af58e037 .\n_:e1bd71cf592c7fb8f715c284af58e037 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_:b07f731cc35eb6417778e22498de6836 bridge:arrivedAs <ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> ;\n\toa:hasSelector _:c18ef1cfe032c02a751a89c8525ce47d .\n_:c18ef1cfe032c02a751a89c8525ce47d 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:givenName \"Ada\" ;\n\tfoaf:familyName \"Okonjo\" ;\n\tcascade:dateOfBirth \"1948-03-02\"^^xsd:date ;\n\tcascade:administrativeGender \"female\" .\n<ni:///sha-256;nVLWODHe8YWtoYuWgBcFs4LEFI8F3fstH8msIyGraCI> cascade: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_:f51f8c7081ba6bd6cd5ad8fc186eb8b4 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_:5da6f7882da9fc3782311e3d4de1001f bridge:arrivedAs <ni:///sha-256;EVwdxLuG51G60_9c_XpCwjPNK7H2ZQcLTj262S_EZA8> ;\n\toa:hasSelector _:f51f8c7081ba6bd6cd5ad8fc186eb8b4 .\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;nVLWODHe8YWtoYuWgBcFs4LEFI8F3fstH8msIyGraCI> prov:specializationOf <urn:uuid:fc383492-aa4c-886b-b0bb-b81b02cace16> ;\n\tcascade:patient <urn:uuid:794d1263-7742-8a95-850e-663e9a08ffe7> .\n_:fe66c52ca6f9e1833f31f19d3992ae8 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_:4ef5e772f5656753e66f4604f22bc464 bridge:arrivedAs <ni:///sha-256;nVLWODHe8YWtoYuWgBcFs4LEFI8F3fstH8msIyGraCI> ;\n\toa:hasSelector _:fe66c52ca6f9e1833f31f19d3992ae8 .\n_:b07f731cc35eb6417778e22498de6836 oa:hasSource <ni:///sha-256;t50BiAacHVi-kaBqiV2NtuNZrAWcgUby7aRGOgEZFkk> ;\n\tprov:wasDerivedFrom <ni:///sha-256;t50BiAacHVi-kaBqiV2NtuNZrAWcgUby7aRGOgEZFkk> ;\n\tprov:wasGeneratedBy _:c2cf2df8425239d99fec6bcc7b0eb7df .\n_:5da6f7882da9fc3782311e3d4de1001f oa:hasSource <ni:///sha-256;t50BiAacHVi-kaBqiV2NtuNZrAWcgUby7aRGOgEZFkk> ;\n\tprov:wasDerivedFrom <ni:///sha-256;t50BiAacHVi-kaBqiV2NtuNZrAWcgUby7aRGOgEZFkk> ;\n\tprov:wasGeneratedBy _:c2cf2df8425239d99fec6bcc7b0eb7df .\n_:4ef5e772f5656753e66f4604f22bc464 oa:hasSource <ni:///sha-256;t50BiAacHVi-kaBqiV2NtuNZrAWcgUby7aRGOgEZFkk> ;\n\tprov:wasDerivedFrom <ni:///sha-256;t50BiAacHVi-kaBqiV2NtuNZrAWcgUby7aRGOgEZFkk> ;\n\tprov:wasGeneratedBy _:c2cf2df8425239d99fec6bcc7b0eb7df .\n<ni:///sha-256;t50BiAacHVi-kaBqiV2NtuNZrAWcgUby7aRGOgEZFkk> <http://purl.org/pav/retrievedOn> \"2025-07-02T09:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:257ab5dc3def9cc355ebce9bcb1a3c02 .\n_:55d4b972abbaf295ba6d1aef8b273172 prov:agent _:730dd98139f1abb5df0f543c539a905c ;\n\tprov:hadRole cascade:TransmitterRole .\n_:257ab5dc3def9cc355ebce9bcb1a3c02 prov:qualifiedAssociation _:55d4b972abbaf295ba6d1aef8b273172 .\n_:730dd98139f1abb5df0f543c539a905c <http://www.w3.org/2000/01/rdf-schema#label> \"Riverside patient portal\" .\n_:c2cf2df8425239d99fec6bcc7b0eb7df <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;t50BiAacHVi-kaBqiV2NtuNZrAWcgUby7aRGOgEZFkk> a prov:Entity .\n_:c2cf2df8425239d99fec6bcc7b0eb7df a prov:Activity ;\n\tprov:used <ni:///sha-256;t50BiAacHVi-kaBqiV2NtuNZrAWcgUby7aRGOgEZFkk> ;\n\tprov:qualifiedAssociation _:2df8bcf9eb73328ed5d82c9772d3973c .\n_:2df8bcf9eb73328ed5d82c9772d3973c prov:hadPlan _:86387277a1a6352884abcd00d19c0aa3 .\n_:86387277a1a6352884abcd00d19c0aa3 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_:2df8bcf9eb73328ed5d82c9772d3973c prov:agent _:b461341e3ecc88d5b5d385908c830656 .\n_:b461341e3ecc88d5b5d385908c830656 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-nullflavor-not-listed.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/findings/procedure-code-nullflavor-not-listed.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_:c5d2692e941121210a47e75e1932687e a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:f8b7f6b177fe75b9bae3c861e9bd0114 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]/*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:c5d2692e941121210a47e75e1932687e oa:refinedBy _:f8b7f6b177fe75b9bae3c861e9bd0114 .\n_:c027df326695806e7e320bb9c6f3a340 a oa:Annotation ;\n\toa:hasTarget _:fb268a321c1ce1bcee36f95d6de0d3b .\n_:fb268a321c1ce1bcee36f95d6de0d3b oa:hasSource <../in/procedure-code-nullflavor-not-listed.xml> ;\n\toa:hasSelector _:c5d2692e941121210a47e75e1932687e .\n_:c027df326695806e7e320bb9c6f3a340 oa:hasBody <https://www.w3.org/TR/xmlschema-1/#cvc-simple-type> ;\n\toa:motivatedBy oa:classifying ;\n\tsh:resultSeverity sh:Violation .\n_:ad1a517e5825ab84fdda6ebc6197abe9 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:abc0973edc1dacb0f566efb1d9831db6 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='author' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:ad1a517e5825ab84fdda6ebc6197abe9 oa:refinedBy _:abc0973edc1dacb0f566efb1d9831db6 .\n_:a2f25d65f1c681400aa4362e7638bb1e a oa:Annotation ;\n\toa:hasTarget _:f3830135c025f8b5bef7809eaff8bf68 .\n_:f3830135c025f8b5bef7809eaff8bf68 oa:hasSource <../in/procedure-code-nullflavor-not-listed.xml> ;\n\toa:hasSelector _:ad1a517e5825ab84fdda6ebc6197abe9 .\n_:a2f25d65f1c681400aa4362e7638bb1e 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_:ec623b6c04785d58d7002fc9ea5a32ca a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:fc02cac2485d3cfb0feaf93a4e79abc3 oa:hasSource <../in/procedure-code-nullflavor-not-listed.xml> .\n_:ec623b6c04785d58d7002fc9ea5a32ca oa:refinedBy _:efee24a5c6f3cbd9aa8f7d6155520f48 .\n_:efee24a5c6f3cbd9aa8f7d6155520f48 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='id' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:fc02cac2485d3cfb0feaf93a4e79abc3 oa:hasSelector _:ec623b6c04785d58d7002fc9ea5a32ca .\n_:c0f6c3fb03ea4a9176d3f06ef25b39bd oa:hasTarget _:fc02cac2485d3cfb0feaf93a4e79abc3 .\n_:d9369caa71945f93e953880485dd33c7 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:c4214eaf0a1a9a6a131ec60f84b03872 oa:hasSource <../in/procedure-code-nullflavor-not-listed.xml> .\n_:d9369caa71945f93e953880485dd33c7 oa:refinedBy _:afffff26c8d01faac2ff8e8441d8a08d .\n_:afffff26c8d01faac2ff8e8441d8a08d a oa:XPathSelector ;\n\trdf:value \"*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:c4214eaf0a1a9a6a131ec60f84b03872 oa:hasSelector _:d9369caa71945f93e953880485dd33c7 .\n_:a6b3be1f87b252bcc62e7fea96d1bfec oa:hasTarget _:c4214eaf0a1a9a6a131ec60f84b03872 .\n_:ec7f993e00982934c888218415002a6a a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:addd207fdbf183c6d36e4c8802789352 oa:hasSource <../in/procedure-code-nullflavor-not-listed.xml> .\n_:ec7f993e00982934c888218415002a6a oa:refinedBy _:d1c4fde8d0beda4bfbf290c27746ec8b .\n_:d1c4fde8d0beda4bfbf290c27746ec8b a oa:XPathSelector ;\n\trdf:value \"*[local-name()='effectiveTime' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:addd207fdbf183c6d36e4c8802789352 oa:hasSelector _:ec7f993e00982934c888218415002a6a .\n_:c49067fb28c43996f7119930a4d935a8 oa:hasTarget _:addd207fdbf183c6d36e4c8802789352 .\n_:c0f6c3fb03ea4a9176d3f06ef25b39bd sh:resultSeverity sh:Info .\n_:a6b3be1f87b252bcc62e7fea96d1bfec sh:resultSeverity sh:Info .\n_:c49067fb28c43996f7119930a4d935a8 sh:resultSeverity sh:Info .\n_:c0f6c3fb03ea4a9176d3f06ef25b39bd 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_:a6b3be1f87b252bcc62e7fea96d1bfec a oa:Annotation ;\n\toa:hasBody ccda:documentType ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"34133-9\" .\n_:c49067fb28c43996f7119930a4d935a8 a oa:Annotation ;\n\toa:hasBody ccda:documentTime ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"20261029090000-0500\" .\n_:aea2e27291051c4dc83249b220467961 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:bb162e771c0df394ada351100f95fde9 oa:hasSource <../in/procedure-code-nullflavor-not-listed.xml> .\n_:aea2e27291051c4dc83249b220467961 oa:refinedBy _:d48de25fdb3db12bfe749eef6cd7aad3 .\n_:d48de25fdb3db12bfe749eef6cd7aad3 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_:bb162e771c0df394ada351100f95fde9 oa:hasSelector _:aea2e27291051c4dc83249b220467961 .\n_:cbf9626da531acd7a3366302ccbdff1f oa:hasTarget _:bb162e771c0df394ada351100f95fde9 ;\n\tsh:resultSeverity sh:Info ;\n\ta oa:Annotation ;\n\toa:hasBody ccda:nullFlavorNotListed ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"XYZ\" .\n", "empty": false}}