{"name": "repeated-ids", "comment": null, "input": {"file": "fixtures/in/repeated-ids.xml", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/in/repeated-ids.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-2025-0601\"/>\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=\"20250601080000-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=\"20250601080000-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.6.1\" extension=\"2015-08-01\"/>\n          <code code=\"48765-2\" displayName=\"Allergies and Adverse Reactions\" codeSystem=\"2.16.840.1.113883.6.1\"/>\n          <title>Allergies</title>\n          <text>\n            <list>\n              <item><content ID=\"a1\">Penicillin G</content></item>\n              <item><content ID=\"a2\">Sulfamethoxazole</content></item>\n              <item><content ID=\"a3\">Codeine</content></item>\n              <item><content ID=\"a4\">Codeine</content></item>\n            </list>\n          </text>\n          <entry typeCode=\"DRIV\">\n            <act classCode=\"ACT\" moodCode=\"EVN\">\n              <templateId root=\"2.16.840.1.113883.10.20.22.4.30\" extension=\"2015-08-01\"/>\n              <id nullFlavor=\"NI\"/>\n              <code code=\"CONC\" codeSystem=\"2.16.840.1.113883.5.6\"/>\n              <statusCode code=\"active\"/>\n              <entryRelationship typeCode=\"SUBJ\">\n                <observation classCode=\"OBS\" moodCode=\"EVN\">\n                  <templateId root=\"2.16.840.1.113883.10.20.22.4.7\" extension=\"2014-06-09\"/>\n                  <id root=\"2.16.840.1.113883.19.5.99999.4\" extension=\"ALG-5000\"/>\n                  <code code=\"ASSERTION\" codeSystem=\"2.16.840.1.113883.5.4\"/>\n                  <statusCode code=\"completed\"/>\n                  <value xsi:type=\"CD\" code=\"416098002\" displayName=\"Drug allergy\" codeSystem=\"2.16.840.1.113883.6.96\"/>\n                  <participant typeCode=\"CSM\">\n                    <participantRole classCode=\"MANU\">\n                      <playingEntity classCode=\"MMAT\">\n                        <code code=\"7980\" displayName=\"Penicillin G\" codeSystem=\"2.16.840.1.113883.6.88\">\n                          <originalText>\n                            <reference value=\"#a1\"/>\n                          </originalText>\n                        </code>\n                      </playingEntity>\n                    </participantRole>\n                  </participant>\n                  <entryRelationship typeCode=\"SUBJ\" inversionInd=\"true\">\n                    <observation classCode=\"OBS\" moodCode=\"EVN\">\n                      <templateId root=\"2.16.840.1.113883.10.20.22.4.28\" extension=\"2019-06-20\"/>\n                      <code code=\"33999-4\" displayName=\"Status\" codeSystem=\"2.16.840.1.113883.6.1\"/>\n                      <statusCode code=\"completed\"/>\n                      <value xsi:type=\"CE\" code=\"55561003\" codeSystem=\"2.16.840.1.113883.6.96\"/>\n                    </observation>\n                  </entryRelationship>\n                </observation>\n              </entryRelationship>\n            </act>\n          </entry>\n          <entry typeCode=\"DRIV\">\n            <act classCode=\"ACT\" moodCode=\"EVN\">\n              <templateId root=\"2.16.840.1.113883.10.20.22.4.30\" extension=\"2015-08-01\"/>\n              <id nullFlavor=\"NI\"/>\n              <code code=\"CONC\" codeSystem=\"2.16.840.1.113883.5.6\"/>\n              <statusCode code=\"active\"/>\n              <entryRelationship typeCode=\"SUBJ\">\n                <observation classCode=\"OBS\" moodCode=\"EVN\">\n                  <templateId root=\"2.16.840.1.113883.10.20.22.4.7\" extension=\"2014-06-09\"/>\n                  <id root=\"2.16.840.1.113883.19.5.99999.4\" extension=\"ALG-5000\"/>\n                  <code code=\"ASSERTION\" codeSystem=\"2.16.840.1.113883.5.4\"/>\n                  <statusCode code=\"completed\"/>\n                  <value xsi:type=\"CD\" code=\"416098002\" displayName=\"Drug allergy\" codeSystem=\"2.16.840.1.113883.6.96\"/>\n                  <participant typeCode=\"CSM\">\n                    <participantRole classCode=\"MANU\">\n                      <playingEntity classCode=\"MMAT\">\n                        <code code=\"10180\" displayName=\"Sulfamethoxazole\" codeSystem=\"2.16.840.1.113883.6.88\">\n                          <originalText>\n                            <reference value=\"#a2\"/>\n                          </originalText>\n                        </code>\n                      </playingEntity>\n                    </participantRole>\n                  </participant>\n                  <entryRelationship typeCode=\"SUBJ\" inversionInd=\"true\">\n                    <observation classCode=\"OBS\" moodCode=\"EVN\">\n                      <templateId root=\"2.16.840.1.113883.10.20.22.4.28\" extension=\"2019-06-20\"/>\n                      <code code=\"33999-4\" displayName=\"Status\" codeSystem=\"2.16.840.1.113883.6.1\"/>\n                      <statusCode code=\"completed\"/>\n                      <value xsi:type=\"CE\" code=\"55561003\" codeSystem=\"2.16.840.1.113883.6.96\"/>\n                    </observation>\n                  </entryRelationship>\n                </observation>\n              </entryRelationship>\n            </act>\n          </entry>\n          <entry typeCode=\"DRIV\">\n            <act classCode=\"ACT\" moodCode=\"EVN\">\n              <templateId root=\"2.16.840.1.113883.10.20.22.4.30\" extension=\"2015-08-01\"/>\n              <id nullFlavor=\"NI\"/>\n              <code code=\"CONC\" codeSystem=\"2.16.840.1.113883.5.6\"/>\n              <statusCode code=\"active\"/>\n              <entryRelationship typeCode=\"SUBJ\">\n                <observation classCode=\"OBS\" moodCode=\"EVN\">\n                  <templateId root=\"2.16.840.1.113883.10.20.22.4.7\" extension=\"2014-06-09\"/>\n                  <id root=\"2.16.840.1.113883.19.5.99999.4\" extension=\"ALG-6000\"/>\n                  <code code=\"ASSERTION\" codeSystem=\"2.16.840.1.113883.5.4\"/>\n                  <statusCode code=\"completed\"/>\n                  <value xsi:type=\"CD\" code=\"416098002\" displayName=\"Drug allergy\" codeSystem=\"2.16.840.1.113883.6.96\"/>\n                  <participant typeCode=\"CSM\">\n                    <participantRole classCode=\"MANU\">\n                      <playingEntity classCode=\"MMAT\">\n                        <code code=\"2670\" displayName=\"Codeine\" codeSystem=\"2.16.840.1.113883.6.88\">\n                          <originalText>\n                            <reference value=\"#a3\"/>\n                          </originalText>\n                        </code>\n                      </playingEntity>\n                    </participantRole>\n                  </participant>\n                  <entryRelationship typeCode=\"SUBJ\" inversionInd=\"true\">\n                    <observation classCode=\"OBS\" moodCode=\"EVN\">\n                      <templateId root=\"2.16.840.1.113883.10.20.22.4.28\" extension=\"2019-06-20\"/>\n                      <code code=\"33999-4\" displayName=\"Status\" codeSystem=\"2.16.840.1.113883.6.1\"/>\n                      <statusCode code=\"completed\"/>\n                      <value xsi:type=\"CE\" code=\"73425007\" codeSystem=\"2.16.840.1.113883.6.96\"/>\n                    </observation>\n                  </entryRelationship>\n                </observation>\n              </entryRelationship>\n            </act>\n          </entry>\n          <entry typeCode=\"DRIV\">\n            <act classCode=\"ACT\" moodCode=\"EVN\">\n              <templateId root=\"2.16.840.1.113883.10.20.22.4.30\" extension=\"2015-08-01\"/>\n              <id nullFlavor=\"NI\"/>\n              <code code=\"CONC\" codeSystem=\"2.16.840.1.113883.5.6\"/>\n              <statusCode code=\"active\"/>\n              <entryRelationship typeCode=\"SUBJ\">\n                <observation classCode=\"OBS\" moodCode=\"EVN\">\n                  <templateId root=\"2.16.840.1.113883.10.20.22.4.7\" extension=\"2014-06-09\"/>\n                  <id root=\"2.16.840.1.113883.19.5.99999.4\" extension=\"ALG-6000\"/>\n                  <code code=\"ASSERTION\" codeSystem=\"2.16.840.1.113883.5.4\"/>\n                  <statusCode code=\"completed\"/>\n                  <value xsi:type=\"CD\" code=\"416098002\" displayName=\"Drug allergy\" codeSystem=\"2.16.840.1.113883.6.96\"/>\n                  <participant typeCode=\"CSM\">\n                    <participantRole classCode=\"MANU\">\n                      <playingEntity classCode=\"MMAT\">\n                        <code code=\"2670\" displayName=\"Codeine\" codeSystem=\"2.16.840.1.113883.6.88\">\n                          <originalText>\n                            <reference value=\"#a4\"/>\n                          </originalText>\n                        </code>\n                      </playingEntity>\n                    </participantRole>\n                  </participant>\n                  <entryRelationship typeCode=\"SUBJ\" inversionInd=\"true\">\n                    <observation classCode=\"OBS\" moodCode=\"EVN\">\n                      <templateId root=\"2.16.840.1.113883.10.20.22.4.28\" extension=\"2019-06-20\"/>\n                      <code code=\"33999-4\" displayName=\"Status\" codeSystem=\"2.16.840.1.113883.6.1\"/>\n                      <statusCode code=\"completed\"/>\n                      <value xsi:type=\"CE\" code=\"73425007\" codeSystem=\"2.16.840.1.113883.6.96\"/>\n                    </observation>\n                  </entryRelationship>\n                </observation>\n              </entryRelationship>\n            </act>\n          </entry>\n        </section>\n      </component>\n    </structuredBody>\n  </component>\n</ClinicalDocument>\n"}, "expectedGraph": {"file": "fixtures/expected/repeated-ids.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/expected/repeated-ids.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<ni:///sha-256;WarEARTs3npW3bOwSprb6jCfaPDADBonBQMEopTe7gQ> cascade:allergyCategory \"medication\" ;\n\tcascade:clinicalStatus \"inactive\" ;\n\tcascade:allergyType \"allergy\" ;\n\tcascade:allergenName \"Codeine\" ;\n\tcascade:allergenCode <https://ns.cascadeprotocol.org/codes/rxnorm/2670> .\n<ni:///sha-256;UWMaFlAtCKg8-vYYQCMnapT6zPUVI1DMqpCKvhGI2w4> cascade:allergenName \"Sulfamethoxazole\" ;\n\tcascade:allergyCategory \"medication\" ;\n\tcascade:allergyType \"allergy\" ;\n\tcascade:clinicalStatus \"active\" ;\n\tcascade:allergenCode <https://ns.cascadeprotocol.org/codes/rxnorm/10180> .\n<ni:///sha-256;G-uP29BCsMjU76-LBpWeGWGfYtLonpwgSy96o1Tnjq8> cascade:allergenName \"Penicillin G\" ;\n\tcascade:allergyType \"allergy\" ;\n\tcascade:allergyCategory \"medication\" ;\n\tcascade:clinicalStatus \"active\" ;\n\tcascade:allergenCode <https://ns.cascadeprotocol.org/codes/rxnorm/7980> .\n<urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> a cascade:Organization .\n<ni:///sha-256;V3POSis2e1rDLl23d9uA4lRnetzOLdqiXRbYdXgv1rU> prov:wasGeneratedBy _:cad7b32a7caba837a61571c534587bdf ;\n\tprov:wasAttributedTo <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:cad7b32a7caba837a61571c534587bdf prov:qualifiedAssociation _:d6ee5e60fb1fbc7efdd165c10b3ef3b8 .\n_:d6ee5e60fb1fbc7efdd165c10b3ef3b8 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_:cf199ba614f2bd43cf675671590c09f bridge:arrivedAs <ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> ;\n\toa:hasSelector _:fa95f277345a1e422349b22235e860c0 .\n_:fa95f277345a1e422349b22235e860c0 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;8OhFhApPXbNaEpnniPsDDmUOh7GZ3tQ3brvo1CVgP0c> foaf:givenName \"Robin\" ;\n\tfoaf:familyName \"Ahmadi\" ;\n\tcascade:dateOfBirth \"1978-02-14\"^^xsd:date ;\n\tcascade:administrativeGender \"female\" .\n<urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> 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;8OhFhApPXbNaEpnniPsDDmUOh7GZ3tQ3brvo1CVgP0c> prov:specializationOf <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:bbd80ebde88e2e90a99b79eaa1c74249 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_:c2a4612f6094a2d5840678a8b86ba0f3 bridge:arrivedAs <ni:///sha-256;8OhFhApPXbNaEpnniPsDDmUOh7GZ3tQ3brvo1CVgP0c> ;\n\toa:hasSelector _:bbd80ebde88e2e90a99b79eaa1c74249 .\n<urn:uuid:54baf06f-eef9-8568-bb80-8a94c772d30a> a cascade:AllergyOrIntolerance ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.4:ALG-6000> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.4:ALG-6000\" .\n<ni:///sha-256;WarEARTs3npW3bOwSprb6jCfaPDADBonBQMEopTe7gQ> prov:specializationOf <urn:uuid:54baf06f-eef9-8568-bb80-8a94c772d30a> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:fddfae3c47949c77911096926c57d6e7 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'][3]/*[local-name()='act' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entryRelationship' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='observation' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:585f8eb5cdca2fee8e5099fe8b443032 bridge:arrivedAs <ni:///sha-256;WarEARTs3npW3bOwSprb6jCfaPDADBonBQMEopTe7gQ> ;\n\toa:hasSelector _:fddfae3c47949c77911096926c57d6e7 .\n<urn:uuid:11b0b472-5169-895e-b795-0a91b6936aec> a cascade:AllergyOrIntolerance ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.4:ALG-5000\" .\n<ni:///sha-256;UWMaFlAtCKg8-vYYQCMnapT6zPUVI1DMqpCKvhGI2w4> prov:specializationOf <urn:uuid:11b0b472-5169-895e-b795-0a91b6936aec> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:ba7516192694897d59d9e6433390a92e 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'][2]/*[local-name()='act' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entryRelationship' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='observation' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:25b7beeff756f9f1da2336c2a40de43 bridge:arrivedAs <ni:///sha-256;UWMaFlAtCKg8-vYYQCMnapT6zPUVI1DMqpCKvhGI2w4> ;\n\toa:hasSelector _:ba7516192694897d59d9e6433390a92e .\n<urn:uuid:8dd28bbf-9b99-8f4a-ad21-25ecf2fe8b88> a cascade:AllergyOrIntolerance ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.4:ALG-5000\" .\n<ni:///sha-256;G-uP29BCsMjU76-LBpWeGWGfYtLonpwgSy96o1Tnjq8> prov:specializationOf <urn:uuid:8dd28bbf-9b99-8f4a-ad21-25ecf2fe8b88> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:a755e4f2b2c397eba625f5046cd3608 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()='act' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entryRelationship' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='observation' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:b3ac4f2a654ee4159ac124608e22c7cd bridge:arrivedAs <ni:///sha-256;G-uP29BCsMjU76-LBpWeGWGfYtLonpwgSy96o1Tnjq8> ;\n\toa:hasSelector _:a755e4f2b2c397eba625f5046cd3608 .\n_:25b7beeff756f9f1da2336c2a40de43 oa:hasSource <ni:///sha-256;V3POSis2e1rDLl23d9uA4lRnetzOLdqiXRbYdXgv1rU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;V3POSis2e1rDLl23d9uA4lRnetzOLdqiXRbYdXgv1rU> ;\n\tprov:wasGeneratedBy _:4f13e3ab8d178c2597e274fd4d41ef49 .\n_:585f8eb5cdca2fee8e5099fe8b443032 oa:hasSource <ni:///sha-256;V3POSis2e1rDLl23d9uA4lRnetzOLdqiXRbYdXgv1rU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;V3POSis2e1rDLl23d9uA4lRnetzOLdqiXRbYdXgv1rU> ;\n\tprov:wasGeneratedBy _:4f13e3ab8d178c2597e274fd4d41ef49 .\n_:cf199ba614f2bd43cf675671590c09f oa:hasSource <ni:///sha-256;V3POSis2e1rDLl23d9uA4lRnetzOLdqiXRbYdXgv1rU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;V3POSis2e1rDLl23d9uA4lRnetzOLdqiXRbYdXgv1rU> ;\n\tprov:wasGeneratedBy _:4f13e3ab8d178c2597e274fd4d41ef49 .\n_:b3ac4f2a654ee4159ac124608e22c7cd oa:hasSource <ni:///sha-256;V3POSis2e1rDLl23d9uA4lRnetzOLdqiXRbYdXgv1rU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;V3POSis2e1rDLl23d9uA4lRnetzOLdqiXRbYdXgv1rU> ;\n\tprov:wasGeneratedBy _:4f13e3ab8d178c2597e274fd4d41ef49 .\n_:c2a4612f6094a2d5840678a8b86ba0f3 oa:hasSource <ni:///sha-256;V3POSis2e1rDLl23d9uA4lRnetzOLdqiXRbYdXgv1rU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;V3POSis2e1rDLl23d9uA4lRnetzOLdqiXRbYdXgv1rU> ;\n\tprov:wasGeneratedBy _:4f13e3ab8d178c2597e274fd4d41ef49 .\n<ni:///sha-256;V3POSis2e1rDLl23d9uA4lRnetzOLdqiXRbYdXgv1rU> <http://purl.org/pav/retrievedOn> \"2025-07-02T09:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:61d3e4c8b7b52311b8db9674ad7e9bb8 .\n_:89dfee53554000fa3dd86227edee6175 prov:agent _:520dc19bb6581ebca417be906375ccee ;\n\tprov:hadRole cascade:TransmitterRole .\n_:61d3e4c8b7b52311b8db9674ad7e9bb8 prov:qualifiedAssociation _:89dfee53554000fa3dd86227edee6175 .\n_:520dc19bb6581ebca417be906375ccee <http://www.w3.org/2000/01/rdf-schema#label> \"Riverside patient portal\" .\n_:4f13e3ab8d178c2597e274fd4d41ef49 <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;V3POSis2e1rDLl23d9uA4lRnetzOLdqiXRbYdXgv1rU> a prov:Entity .\n_:4f13e3ab8d178c2597e274fd4d41ef49 a prov:Activity ;\n\tprov:used <ni:///sha-256;V3POSis2e1rDLl23d9uA4lRnetzOLdqiXRbYdXgv1rU> ;\n\tprov:qualifiedAssociation _:4ae9a2d54d5a6a862f601c9048e8eb23 .\n_:4ae9a2d54d5a6a862f601c9048e8eb23 prov:hadPlan _:46b0832a44b6de9fa72195434a8d7936 .\n_:46b0832a44b6de9fa72195434a8d7936 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_:4ae9a2d54d5a6a862f601c9048e8eb23 prov:agent _:bfbf3cc026a38f3188ae23fafc06d170 .\n_:bfbf3cc026a38f3188ae23fafc06d170 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/repeated-ids.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/findings/repeated-ids.ttl", "text": "@prefix ccda: <https://ns.cascadeprotocol.org/adapter/ccda/v1-draft#> .\n@prefix bridge: <https://ns.cascadeprotocol.org/bridge/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_:df00477fd760d1c6ad16976f91bf3a20 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:ce3435778f4ee4d9d858741c96fba420 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='author' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:df00477fd760d1c6ad16976f91bf3a20 oa:refinedBy _:ce3435778f4ee4d9d858741c96fba420 .\n_:d13838710688446bf6e06dd5f3f1f6aa a oa:Annotation ;\n\toa:hasTarget _:e9fa101cfba6cf1b600d36bc3a8cfb67 .\n_:e9fa101cfba6cf1b600d36bc3a8cfb67 oa:hasSource <../in/repeated-ids.xml> ;\n\toa:hasSelector _:df00477fd760d1c6ad16976f91bf3a20 .\n_:d13838710688446bf6e06dd5f3f1f6aa 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_:ccb86487fb7901053c0c0f9e50f082b5 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:a7fc3ade373c063511bbdd70fbfec3a 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()='act' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entryRelationship' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='observation' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:ccb86487fb7901053c0c0f9e50f082b5 oa:refinedBy _:a7fc3ade373c063511bbdd70fbfec3a .\n_:b53b21d2d9f75df1d61d1f5f803148c4 a oa:Annotation ;\n\toa:hasTarget _:db5ef8137d74a9acc3fc49409058944a .\n_:db5ef8137d74a9acc3fc49409058944a oa:hasSource <../in/repeated-ids.xml> ;\n\toa:hasSelector _:ccb86487fb7901053c0c0f9e50f082b5 .\n_:b53b21d2d9f75df1d61d1f5f803148c4 oa:hasBody ccda:statementCode ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='structuredBody' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='entry' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='act' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='entryRelationship' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='observation' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='code' and namespace-uri()='urn:hl7-org:v3']/@code\" ;\n\t<https://ns.cascadeprotocol.org/cascade#occurrenceCount> 4 ;\n\tsh:resultSeverity sh:Info .\n_:cdba35087d4c3ec49aec8b96a48cfd23 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:c35e68cad52505bf2fe2cd4e0f3e2090 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'][4]/*[local-name()='act' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entryRelationship' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='observation' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:cdba35087d4c3ec49aec8b96a48cfd23 oa:refinedBy _:c35e68cad52505bf2fe2cd4e0f3e2090 .\n_:f208182cdc17986063c933ab429fe75 a oa:Annotation ;\n\toa:hasTarget _:c1d498e6f11a74fb5cfc957731f853ba .\n_:c1d498e6f11a74fb5cfc957731f853ba oa:hasSource <../in/repeated-ids.xml> ;\n\toa:hasSelector _:cdba35087d4c3ec49aec8b96a48cfd23 .\n_:f208182cdc17986063c933ab429fe75 oa:hasBody bridge:versionNotKept ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"ni:///sha-256;WarEARTs3npW3bOwSprb6jCfaPDADBonBQMEopTe7gQ\" ;\n\tsh:resultSeverity sh:Warning .\n_:c1a1931afee71aff72159e25abd22405 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:fe52b203fddf086c7337920b4b088337 oa:hasSource <../in/repeated-ids.xml> .\n_:c1a1931afee71aff72159e25abd22405 oa:refinedBy _:f547b720e00253c65d9c164c6b8dde9d .\n_:f547b720e00253c65d9c164c6b8dde9d a oa:XPathSelector ;\n\trdf:value \"*[local-name()='id' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:fe52b203fddf086c7337920b4b088337 oa:hasSelector _:c1a1931afee71aff72159e25abd22405 .\n_:ebc3f9512a59a8ed8fe120a91bbffd70 oa:hasTarget _:fe52b203fddf086c7337920b4b088337 .\n_:e33a8e7958e3176638529ddf06ac299f a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:f378a6121083827aa3ad3c63ae122d9c oa:hasSource <../in/repeated-ids.xml> .\n_:e33a8e7958e3176638529ddf06ac299f oa:refinedBy _:bc824e08d919d2f5dbfc84a396a5f7fa .\n_:bc824e08d919d2f5dbfc84a396a5f7fa a oa:XPathSelector ;\n\trdf:value \"*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:f378a6121083827aa3ad3c63ae122d9c oa:hasSelector _:e33a8e7958e3176638529ddf06ac299f .\n_:a369487f37ac31057834c2d5c0f0e70 oa:hasTarget _:f378a6121083827aa3ad3c63ae122d9c .\n_:ae5c2f39b520b80abe1850657e7f8918 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:f861a61c0572cf2d845ad010f2bcf164 oa:hasSource <../in/repeated-ids.xml> .\n_:ae5c2f39b520b80abe1850657e7f8918 oa:refinedBy _:acb1971764b2219084a415eef23a2cb8 .\n_:acb1971764b2219084a415eef23a2cb8 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='effectiveTime' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:f861a61c0572cf2d845ad010f2bcf164 oa:hasSelector _:ae5c2f39b520b80abe1850657e7f8918 .\n_:a846695f96f6a610ebbc19b268c4bb7a oa:hasTarget _:f861a61c0572cf2d845ad010f2bcf164 .\n_:ebc3f9512a59a8ed8fe120a91bbffd70 sh:resultSeverity sh:Info .\n_:a369487f37ac31057834c2d5c0f0e70 sh:resultSeverity sh:Info .\n_:a846695f96f6a610ebbc19b268c4bb7a sh:resultSeverity sh:Info .\n_:ebc3f9512a59a8ed8fe120a91bbffd70 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-2025-0601\" .\n_:a369487f37ac31057834c2d5c0f0e70 a oa:Annotation ;\n\toa:hasBody ccda:documentType ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"34133-9\" .\n_:a846695f96f6a610ebbc19b268c4bb7a a oa:Annotation ;\n\toa:hasBody ccda:documentTime ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"20250601080000-0500\" .\n_:cce381f561fa94e2749ff2f8fc3bc9a1 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:fc7d0870c03854428fa9c9dd6a8cfb79 oa:hasSource <../in/repeated-ids.xml> .\n_:cce381f561fa94e2749ff2f8fc3bc9a1 oa:refinedBy _:a559015c75aba03a522eba8ffb17a214 .\n_:a559015c75aba03a522eba8ffb17a214 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'][2]/*[local-name()='act' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entryRelationship' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='observation' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:fc7d0870c03854428fa9c9dd6a8cfb79 oa:hasSelector _:cce381f561fa94e2749ff2f8fc3bc9a1 .\n_:d211cb965da1907f71f9336546b50b32 oa:hasTarget _:fc7d0870c03854428fa9c9dd6a8cfb79 .\n_:ae9b524f1da9d73ae74d7e1a67b8c7fd a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:f6a503544a01720302f453dae8dc6a68 oa:hasSource <../in/repeated-ids.xml> .\n_:ae9b524f1da9d73ae74d7e1a67b8c7fd oa:refinedBy _:a4db7a7a2e4890a48a11b898eea50a9b .\n_:a4db7a7a2e4890a48a11b898eea50a9b 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()='act' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entryRelationship' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='observation' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:f6a503544a01720302f453dae8dc6a68 oa:hasSelector _:ae9b524f1da9d73ae74d7e1a67b8c7fd .\n_:a868917ae8e49fdfb208e4131427ffa3 oa:hasTarget _:f6a503544a01720302f453dae8dc6a68 .\n_:d211cb965da1907f71f9336546b50b32 sh:resultSeverity sh:Info .\n_:a868917ae8e49fdfb208e4131427ffa3 sh:resultSeverity sh:Info .\n_:d211cb965da1907f71f9336546b50b32 a oa:Annotation ;\n\toa:hasBody ccda:entryIdRepeated ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"2.16.840.1.113883.19.5.99999.4:ALG-5000\" .\n_:a868917ae8e49fdfb208e4131427ffa3 a oa:Annotation ;\n\toa:hasBody ccda:entryIdRepeated ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"2.16.840.1.113883.19.5.99999.4:ALG-5000\" .\n", "empty": false}}