{"name": "custodian-ids-naming-no-organization", "comment": "A custodian whose ids name no organization, a root that is neither an OID nor a UUID and the NPI's root alone: no custodian scope, so every record is named by the document, and each is a finding.", "input": {"file": "fixtures/in/custodian-ids-naming-no-organization.xml", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/in/custodian-ids-naming-no-organization.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-1025-A\"/>\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=\"20261023090000-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-448120\"/>\n      <patient>\n        <name use=\"L\">\n          <given>Robin</given>\n          <family>Ahmadi</family>\n        </name>\n        <administrativeGenderCode code=\"F\" codeSystem=\"2.16.840.1.113883.5.1\"/>\n        <birthTime value=\"19780214\"/>\n      </patient>\n    </patientRole>\n  </recordTarget>\n  <author>\n    <time value=\"20261023090000-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=\"RiversideCommunity\" extension=\"77\"/>\n        <id root=\"2.16.840.1.113883.4.6\"/>\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.4\" extension=\"P1\"/>\n              <code code=\"73761001\" displayName=\"Colonoscopy\" codeSystem=\"2.16.840.1.113883.6.96\"/>\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/custodian-ids-naming-no-organization.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/expected/custodian-ids-naming-no-organization.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 oa: <http://www.w3.org/ns/oa#> .\n<ni:///sha-256;ONxqm7vLH4gZ39SFd-tYUgJMjn4Ki5mAbgSpoRtauU4> foaf:familyName \"Ahmadi\" ;\n\tfoaf:givenName \"Robin\" ;\n\tcascade:dateOfBirth \"1978-02-14\"^^xsd:date ;\n\tcascade:administrativeGender \"female\" .\n<ni:///sha-256;RSn0VOeasR4pTPSYrPvnienW02Yx0uCDTKwocYyCjD0> cascade:procedureName \"Colonoscopy\" ;\n\tcascade:workflowStatus \"completed\" ;\n\tcascade:procedureDate \"2024-02-14\"^^xsd:date ;\n\tcascade:procedureCode <http://snomed.info/id/73761001> .\n<urn:uuid:dfe9c9ee-79b1-8dae-8d7b-4ddca925968e> a cascade:PatientProfile ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.2:MRN-448120\" .\n<ni:///sha-256;ONxqm7vLH4gZ39SFd-tYUgJMjn4Ki5mAbgSpoRtauU4> prov:specializationOf <urn:uuid:dfe9c9ee-79b1-8dae-8d7b-4ddca925968e> .\n_:bc5c7fac181409417faa2f58e471ef49 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_:cee946277a2545ac10d79d79b095ea56 bridge:arrivedAs <ni:///sha-256;ONxqm7vLH4gZ39SFd-tYUgJMjn4Ki5mAbgSpoRtauU4> ;\n\toa:hasSelector _:bc5c7fac181409417faa2f58e471ef49 .\n<urn:uuid:ab0a77b2-2a9d-89c8-b244-c477838f6317> a cascade:MedicalProcedure ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.4:P1\" .\n<ni:///sha-256;RSn0VOeasR4pTPSYrPvnienW02Yx0uCDTKwocYyCjD0> prov:specializationOf <urn:uuid:ab0a77b2-2a9d-89c8-b244-c477838f6317> ;\n\tcascade:patient <urn:uuid:dfe9c9ee-79b1-8dae-8d7b-4ddca925968e> .\n_:e880c173310e5289a68b5b52fb3114a8 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_:546d2c9a4c6038ce4086ee29842d5dfb bridge:arrivedAs <ni:///sha-256;RSn0VOeasR4pTPSYrPvnienW02Yx0uCDTKwocYyCjD0> ;\n\toa:hasSelector _:e880c173310e5289a68b5b52fb3114a8 ;\n\toa:hasSource <ni:///sha-256;VHeRq9_w1wfCf65Z-Y34Z9Dm2Y1A5HqD4VZcTILaAyo> ;\n\tprov:wasDerivedFrom <ni:///sha-256;VHeRq9_w1wfCf65Z-Y34Z9Dm2Y1A5HqD4VZcTILaAyo> ;\n\tprov:wasGeneratedBy _:e2aba263033bb17b19622f410dc1d58b .\n_:cee946277a2545ac10d79d79b095ea56 oa:hasSource <ni:///sha-256;VHeRq9_w1wfCf65Z-Y34Z9Dm2Y1A5HqD4VZcTILaAyo> ;\n\tprov:wasDerivedFrom <ni:///sha-256;VHeRq9_w1wfCf65Z-Y34Z9Dm2Y1A5HqD4VZcTILaAyo> ;\n\tprov:wasGeneratedBy _:e2aba263033bb17b19622f410dc1d58b .\n<ni:///sha-256;VHeRq9_w1wfCf65Z-Y34Z9Dm2Y1A5HqD4VZcTILaAyo> <http://purl.org/pav/retrievedOn> \"2025-07-02T09:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:6a40cb7a86d357a150664f8070b1199f .\n_:c0e38cbc0d911188d0337d320e01420 prov:agent _:a89f825fc98e8acb26e28d90cf18e6c1 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:6a40cb7a86d357a150664f8070b1199f prov:qualifiedAssociation _:c0e38cbc0d911188d0337d320e01420 .\n_:a89f825fc98e8acb26e28d90cf18e6c1 <http://www.w3.org/2000/01/rdf-schema#label> \"Riverside patient portal\" .\n_:e2aba263033bb17b19622f410dc1d58b <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;VHeRq9_w1wfCf65Z-Y34Z9Dm2Y1A5HqD4VZcTILaAyo> a prov:Entity .\n_:e2aba263033bb17b19622f410dc1d58b a prov:Activity ;\n\tprov:used <ni:///sha-256;VHeRq9_w1wfCf65Z-Y34Z9Dm2Y1A5HqD4VZcTILaAyo> ;\n\tprov:qualifiedAssociation _:b02418c8b0e081277e33319aea1d6923 .\n_:b02418c8b0e081277e33319aea1d6923 prov:hadPlan _:15890884ea008b4a29232867867c503d .\n_:15890884ea008b4a29232867867c503d 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_:b02418c8b0e081277e33319aea1d6923 prov:agent _:62536d5bc40badd0805b31f8898865d9 .\n_:62536d5bc40badd0805b31f8898865d9 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/custodian-ids-naming-no-organization.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/findings/custodian-ids-naming-no-organization.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_:eefcc5e4eb9be0cb492c25a8edbe0e04 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:cee63ce6b15dab526aea6cd5dc3806a2 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='author' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:eefcc5e4eb9be0cb492c25a8edbe0e04 oa:refinedBy _:cee63ce6b15dab526aea6cd5dc3806a2 .\n_:b9e12584aa47e10de84c5dd8837e262a a oa:Annotation ;\n\toa:hasTarget _:db9ecbb087209e9b62c9b6df984fba0f .\n_:db9ecbb087209e9b62c9b6df984fba0f oa:hasSource <../in/custodian-ids-naming-no-organization.xml> ;\n\toa:hasSelector _:eefcc5e4eb9be0cb492c25a8edbe0e04 .\n_:b9e12584aa47e10de84c5dd8837e262a 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_:e0b94ea7a5044ed07c8a637b19e8283d a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:df6dad49ab278741b2d616f345ecbab5 oa:hasSource <../in/custodian-ids-naming-no-organization.xml> .\n_:e0b94ea7a5044ed07c8a637b19e8283d oa:refinedBy _:ac7d417c3c09643b86c18bc867ca740a .\n_:ac7d417c3c09643b86c18bc867ca740a a oa:XPathSelector ;\n\trdf:value \"*[local-name()='id' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:df6dad49ab278741b2d616f345ecbab5 oa:hasSelector _:e0b94ea7a5044ed07c8a637b19e8283d .\n_:fc4cac24d4eaae9e88ee1e4da0229991 oa:hasTarget _:df6dad49ab278741b2d616f345ecbab5 .\n_:b9e7d0ea487c7d0f6f8875df953bb1a5 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:a4f7928e02e2470cf15ef2e6420e8c2e oa:hasSource <../in/custodian-ids-naming-no-organization.xml> .\n_:b9e7d0ea487c7d0f6f8875df953bb1a5 oa:refinedBy _:d723051b461ddcd82f94fc31e43a3d39 .\n_:d723051b461ddcd82f94fc31e43a3d39 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:a4f7928e02e2470cf15ef2e6420e8c2e oa:hasSelector _:b9e7d0ea487c7d0f6f8875df953bb1a5 .\n_:c23cbe25ddd5b4ea6f5149460e9260a oa:hasTarget _:a4f7928e02e2470cf15ef2e6420e8c2e .\n_:a4ff8fbba30b8d08b76900792f3b3f58 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:b2b7fabb563903e372a613d663a98702 oa:hasSource <../in/custodian-ids-naming-no-organization.xml> .\n_:a4ff8fbba30b8d08b76900792f3b3f58 oa:refinedBy _:eab91338c7189d5b9a0d978d9eeb90f9 .\n_:eab91338c7189d5b9a0d978d9eeb90f9 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='effectiveTime' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:b2b7fabb563903e372a613d663a98702 oa:hasSelector _:a4ff8fbba30b8d08b76900792f3b3f58 .\n_:e9fb7907208c04d5fe58fb415edf7568 oa:hasTarget _:b2b7fabb563903e372a613d663a98702 .\n_:fc4cac24d4eaae9e88ee1e4da0229991 sh:resultSeverity sh:Info .\n_:c23cbe25ddd5b4ea6f5149460e9260a sh:resultSeverity sh:Info .\n_:e9fb7907208c04d5fe58fb415edf7568 sh:resultSeverity sh:Info .\n_:fc4cac24d4eaae9e88ee1e4da0229991 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-1025-A\" .\n_:c23cbe25ddd5b4ea6f5149460e9260a a oa:Annotation ;\n\toa:hasBody ccda:documentType ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"34133-9\" .\n_:e9fb7907208c04d5fe58fb415edf7568 a oa:Annotation ;\n\toa:hasBody ccda:documentTime ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"20261023090000-0500\" .\n_:aee946692e96c8a395d4019902b24c58 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:b9f75a5120632b5d3246da5c04586c14 oa:hasSource <../in/custodian-ids-naming-no-organization.xml> .\n_:aee946692e96c8a395d4019902b24c58 oa:refinedBy _:b650155719d26bf6b55c34a8538e5f1e .\n_:b650155719d26bf6b55c34a8538e5f1e a oa:XPathSelector ;\n\trdf:value \"*[local-name()='recordTarget' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='patientRole' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:b9f75a5120632b5d3246da5c04586c14 oa:hasSelector _:aee946692e96c8a395d4019902b24c58 .\n_:d723f37e7bc1070440493c807168062d oa:hasTarget _:b9f75a5120632b5d3246da5c04586c14 .\n_:f207a94d62141126e3a1f4abdf20ddfb a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:ea91fa8b490181a0f993b7b323c7d3f1 oa:hasSource <../in/custodian-ids-naming-no-organization.xml> .\n_:f207a94d62141126e3a1f4abdf20ddfb oa:refinedBy _:e608fb20e9cbb2d481e6f242fad9bb23 .\n_:e608fb20e9cbb2d481e6f242fad9bb23 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_:ea91fa8b490181a0f993b7b323c7d3f1 oa:hasSelector _:f207a94d62141126e3a1f4abdf20ddfb .\n_:b7d848554d3902a03fb136d7f0c5ecf9 oa:hasTarget _:ea91fa8b490181a0f993b7b323c7d3f1 .\n_:d723f37e7bc1070440493c807168062d sh:resultSeverity sh:Warning .\n_:b7d848554d3902a03fb136d7f0c5ecf9 sh:resultSeverity sh:Warning .\n_:d723f37e7bc1070440493c807168062d a oa:Annotation ;\n\toa:hasBody ccda:namingScopeNotStated ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"Patient\" .\n_:b7d848554d3902a03fb136d7f0c5ecf9 a oa:Annotation ;\n\toa:hasBody ccda:namingScopeNotStated ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"Procedure\" .\n", "empty": false}}