{"name": "id-root-with-bar", "comment": null, "input": {"file": "fixtures/in/id-root-with-bar.xml", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/in/id-root-with-bar.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-1023-E\"/>\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=\"2.16.840.1.113883.19.5.99999.3\" extension=\"RCH|1\"/>\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|7\" 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/id-root-with-bar.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/expected/id-root-with-bar.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:d5530827-745c-892f-baa6-efdcb6510377> a cascade:Organization .\n<ni:///sha-256;AXCKITwLsMeKlacRo72sig2VQu-CvwPISlPEaphprLQ> prov:wasGeneratedBy _:c9368b4fb5d9e807cb8f074e71daeacc ;\n\tprov:wasAttributedTo <urn:uuid:d5530827-745c-892f-baa6-efdcb6510377> .\n_:c9368b4fb5d9e807cb8f074e71daeacc prov:qualifiedAssociation _:f66a7b16c36f31b811ad062ec94df21a .\n_:f66a7b16c36f31b811ad062ec94df21a prov:agent <urn:uuid:d5530827-745c-892f-baa6-efdcb6510377> ;\n\tprov:hadRole cascade:CustodianRole .\n<ni:///sha-256;qXSG_1nsceZVTvvTVyKiHMGzC9LgZvWt-5gRsV1P8Nc> prov:specializationOf <urn:uuid:d5530827-745c-892f-baa6-efdcb6510377> .\n_:f12546047bc6ad00a3d7e6f07ab8c29c bridge:arrivedAs <ni:///sha-256;qXSG_1nsceZVTvvTVyKiHMGzC9LgZvWt-5gRsV1P8Nc> ;\n\toa:hasSelector _:a4b46dd14bfb813070bc6dccc49bb53e .\n_:a4b46dd14bfb813070bc6dccc49bb53e 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;qXSG_1nsceZVTvvTVyKiHMGzC9LgZvWt-5gRsV1P8Nc> foaf:name \"Riverside Community Hospital\" ;\n\torg:identifier \"RCH|1\"^^<urn:oid:2.16.840.1.113883.19.5.99999.3> .\n<ni:///sha-256;rm9rPTN8okaQE92KQtcnFJT0hCYq21njjWzEq0BnCxw> foaf:familyName \"Ahmadi\" ;\n\tfoaf:givenName \"Robin\" ;\n\tcascade:dateOfBirth \"1978-02-14\"^^xsd:date ;\n\tcascade:administrativeGender \"female\" .\n<ni:///sha-256;rRkKKDWJPqcdIGtOEfu7uHXPi7Kd8Y379pPlHi4pRzA> cascade:procedureDate \"2024-02-14\"^^xsd:date ;\n\tcascade:procedureName \"Colonoscopy\" ;\n\tcascade:workflowStatus \"completed\" ;\n\tcascade:procedureCode <http://snomed.info/id/73761001> .\n<urn:uuid:abb4a05a-adeb-8f85-a5e4-f283b150dc6d> a cascade:PatientProfile ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.2:MRN-448120> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.2:MRN-448120\" .\n<ni:///sha-256;rm9rPTN8okaQE92KQtcnFJT0hCYq21njjWzEq0BnCxw> prov:specializationOf <urn:uuid:abb4a05a-adeb-8f85-a5e4-f283b150dc6d> .\n_:a5cee39288e00707c1e739bd073be056 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_:d18ba38081b43cec6229dc102b7a9274 bridge:arrivedAs <ni:///sha-256;rm9rPTN8okaQE92KQtcnFJT0hCYq21njjWzEq0BnCxw> ;\n\toa:hasSelector _:a5cee39288e00707c1e739bd073be056 .\n<urn:uuid:26623112-c7ed-84eb-bd04-d8074080ae43> a cascade:MedicalProcedure ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.4%7C7:P1> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.4|7:P1\" .\n<ni:///sha-256;rRkKKDWJPqcdIGtOEfu7uHXPi7Kd8Y379pPlHi4pRzA> prov:specializationOf <urn:uuid:26623112-c7ed-84eb-bd04-d8074080ae43> ;\n\tcascade:patient <urn:uuid:abb4a05a-adeb-8f85-a5e4-f283b150dc6d> .\n_:e3f459d85fcd3af4022d1f6c0add8848 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_:d876c7558dc7466a01aff0288859160a bridge:arrivedAs <ni:///sha-256;rRkKKDWJPqcdIGtOEfu7uHXPi7Kd8Y379pPlHi4pRzA> ;\n\toa:hasSelector _:e3f459d85fcd3af4022d1f6c0add8848 ;\n\toa:hasSource <ni:///sha-256;AXCKITwLsMeKlacRo72sig2VQu-CvwPISlPEaphprLQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;AXCKITwLsMeKlacRo72sig2VQu-CvwPISlPEaphprLQ> ;\n\tprov:wasGeneratedBy _:8c740e247b1d9e953867f43436b54bde .\n_:d18ba38081b43cec6229dc102b7a9274 oa:hasSource <ni:///sha-256;AXCKITwLsMeKlacRo72sig2VQu-CvwPISlPEaphprLQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;AXCKITwLsMeKlacRo72sig2VQu-CvwPISlPEaphprLQ> ;\n\tprov:wasGeneratedBy _:8c740e247b1d9e953867f43436b54bde .\n_:f12546047bc6ad00a3d7e6f07ab8c29c oa:hasSource <ni:///sha-256;AXCKITwLsMeKlacRo72sig2VQu-CvwPISlPEaphprLQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;AXCKITwLsMeKlacRo72sig2VQu-CvwPISlPEaphprLQ> ;\n\tprov:wasGeneratedBy _:8c740e247b1d9e953867f43436b54bde .\n<ni:///sha-256;AXCKITwLsMeKlacRo72sig2VQu-CvwPISlPEaphprLQ> <http://purl.org/pav/retrievedOn> \"2025-07-02T09:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:2433fb4a15fad8012daf25f3829d2c21 .\n_:d809412797b6d01d1a26230a6199a678 prov:agent _:ab3edf8d3ffbf5a4d15b628e571fae65 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:2433fb4a15fad8012daf25f3829d2c21 prov:qualifiedAssociation _:d809412797b6d01d1a26230a6199a678 .\n_:ab3edf8d3ffbf5a4d15b628e571fae65 <http://www.w3.org/2000/01/rdf-schema#label> \"Riverside patient portal\" .\n_:8c740e247b1d9e953867f43436b54bde <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;AXCKITwLsMeKlacRo72sig2VQu-CvwPISlPEaphprLQ> a prov:Entity .\n_:8c740e247b1d9e953867f43436b54bde a prov:Activity ;\n\tprov:used <ni:///sha-256;AXCKITwLsMeKlacRo72sig2VQu-CvwPISlPEaphprLQ> ;\n\tprov:qualifiedAssociation _:3299c41e6419f21b062297b485e9667b .\n_:3299c41e6419f21b062297b485e9667b prov:hadPlan _:730e5a61d257a4c8fc10d5d93530805e .\n_:730e5a61d257a4c8fc10d5d93530805e 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_:3299c41e6419f21b062297b485e9667b prov:agent _:2a819a6afe76ea8c9b5fc4653c7557b8 .\n_:2a819a6afe76ea8c9b5fc4653c7557b8 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/id-root-with-bar.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/findings/id-root-with-bar.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_:d649c65ca570d848b62bfe776d999df1 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:f0daf50c2d73ae449f3c41bb42af7d58 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()='id' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:d649c65ca570d848b62bfe776d999df1 oa:refinedBy _:f0daf50c2d73ae449f3c41bb42af7d58 .\n_:fa32988c91aa0b5400e94f3e166a1284 a oa:Annotation ;\n\toa:hasTarget _:d564b47114c2f45be795ea132b82a106 .\n_:d564b47114c2f45be795ea132b82a106 oa:hasSource <../in/id-root-with-bar.xml> ;\n\toa:hasSelector _:d649c65ca570d848b62bfe776d999df1 .\n_:fa32988c91aa0b5400e94f3e166a1284 oa:hasBody <https://www.w3.org/TR/xmlschema-1/#cvc-simple-type> ;\n\toa:motivatedBy oa:classifying ;\n\tsh:resultSeverity sh:Violation .\n_:a82ac0d132cd0873e5a604b700e00715 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:d7578bc897e511fc2a2c9f954a34474f a oa:XPathSelector ;\n\trdf:value \"*[local-name()='author' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:a82ac0d132cd0873e5a604b700e00715 oa:refinedBy _:d7578bc897e511fc2a2c9f954a34474f .\n_:a1c1723c56883505a99b9ca55c7f65ab a oa:Annotation ;\n\toa:hasTarget _:df86ef7d88d1f2a6f332c0d1cbf1743b .\n_:df86ef7d88d1f2a6f332c0d1cbf1743b oa:hasSource <../in/id-root-with-bar.xml> ;\n\toa:hasSelector _:a82ac0d132cd0873e5a604b700e00715 .\n_:a1c1723c56883505a99b9ca55c7f65ab 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_:dac6e396a19a0ac61e907755aa7035e3 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:eab0d77aafa049e13d72060aad8b5822 oa:hasSource <../in/id-root-with-bar.xml> .\n_:dac6e396a19a0ac61e907755aa7035e3 oa:refinedBy _:f74eaf6bd6d64f1c506bb54c3b887b7a .\n_:f74eaf6bd6d64f1c506bb54c3b887b7a a oa:XPathSelector ;\n\trdf:value \"*[local-name()='id' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:eab0d77aafa049e13d72060aad8b5822 oa:hasSelector _:dac6e396a19a0ac61e907755aa7035e3 .\n_:ad68180392e6986c57e8869a0f3105b0 oa:hasTarget _:eab0d77aafa049e13d72060aad8b5822 .\n_:c8838e2c73c71b98d1dc443c78f97566 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:b00e99c362fde41d1d05869d151058f0 oa:hasSource <../in/id-root-with-bar.xml> .\n_:c8838e2c73c71b98d1dc443c78f97566 oa:refinedBy _:bbfdb38bb9869a9a88425802f2fe42e7 .\n_:bbfdb38bb9869a9a88425802f2fe42e7 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:b00e99c362fde41d1d05869d151058f0 oa:hasSelector _:c8838e2c73c71b98d1dc443c78f97566 .\n_:cbc1998c16dc23d9f98e9538c390da2d oa:hasTarget _:b00e99c362fde41d1d05869d151058f0 .\n_:f5334fbe24919b5451e8d3085eb16897 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:dd38b4dba7375b20cbc2c97add166139 oa:hasSource <../in/id-root-with-bar.xml> .\n_:f5334fbe24919b5451e8d3085eb16897 oa:refinedBy _:e661cec017a05562e688c505e252c2dd .\n_:e661cec017a05562e688c505e252c2dd a oa:XPathSelector ;\n\trdf:value \"*[local-name()='effectiveTime' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:dd38b4dba7375b20cbc2c97add166139 oa:hasSelector _:f5334fbe24919b5451e8d3085eb16897 .\n_:b56f1b19219fb8c8f98adac1de20556 oa:hasTarget _:dd38b4dba7375b20cbc2c97add166139 .\n_:ad68180392e6986c57e8869a0f3105b0 sh:resultSeverity sh:Info .\n_:cbc1998c16dc23d9f98e9538c390da2d sh:resultSeverity sh:Info .\n_:b56f1b19219fb8c8f98adac1de20556 sh:resultSeverity sh:Info .\n_:ad68180392e6986c57e8869a0f3105b0 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-1023-E\" .\n_:cbc1998c16dc23d9f98e9538c390da2d a oa:Annotation ;\n\toa:hasBody ccda:documentType ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"34133-9\" .\n_:b56f1b19219fb8c8f98adac1de20556 a oa:Annotation ;\n\toa:hasBody ccda:documentTime ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"20261023090000-0500\" .\n", "empty": false}}