{"name": "bundle-pull-id-shared-across-types", "comment": "A Condition, an AllergyIntolerance and another Condition holding the ids x, x and X: no id is repeated within a type, so each is named from the server and none carries a finding of a repeated id.", "input": {"file": "fixtures/in/bundle-pull-id-shared-across-types.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/bundle-pull-id-shared-across-types.json", "text": "{\n  \"resourceType\": \"Bundle\",\n  \"type\": \"collection\",\n  \"entry\": [\n    {\n      \"fullUrl\": \"https://fhir.example.org/r4/Condition/x\",\n      \"resource\": {\n        \"resourceType\": \"Condition\",\n        \"id\": \"x\",\n        \"code\": {\n          \"coding\": [\n            {\n              \"system\": \"http://snomed.info/sct\",\n              \"code\": \"38341003\",\n              \"display\": \"Hypertensive disorder\"\n            }\n          ],\n          \"text\": \"Hypertensive disorder\"\n        },\n        \"subject\": {\n          \"reference\": \"Patient/pat-1\"\n        }\n      }\n    },\n    {\n      \"fullUrl\": \"https://fhir.example.org/r4/AllergyIntolerance/x\",\n      \"resource\": {\n        \"resourceType\": \"AllergyIntolerance\",\n        \"id\": \"x\",\n        \"code\": {\n          \"coding\": [\n            {\n              \"system\": \"http://snomed.info/sct\",\n              \"code\": \"373270004\",\n              \"display\": \"Penicillin\"\n            }\n          ],\n          \"text\": \"Penicillin\"\n        },\n        \"patient\": {\n          \"reference\": \"Patient/pat-1\"\n        }\n      }\n    },\n    {\n      \"fullUrl\": \"https://fhir.example.org/r4/Condition/X\",\n      \"resource\": {\n        \"resourceType\": \"Condition\",\n        \"id\": \"X\",\n        \"code\": {\n          \"coding\": [\n            {\n              \"system\": \"http://snomed.info/sct\",\n              \"code\": \"44054006\",\n              \"display\": \"Type 2 diabetes mellitus\"\n            }\n          ],\n          \"text\": \"Type 2 diabetes mellitus\"\n        },\n        \"subject\": {\n          \"reference\": \"Patient/pat-1\"\n        }\n      }\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/bundle-pull-id-shared-across-types.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/bundle-pull-id-shared-across-types.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 prov: <http://www.w3.org/ns/prov#> .\n@prefix dct: <http://purl.org/dc/terms/> .\n@prefix dcterms: <http://purl.org/dc/terms/> .\n@prefix oa: <http://www.w3.org/ns/oa#> .\n@prefix pav: <http://purl.org/pav/> .\n<ni:///sha-256;Nm5YSrC1A8gIzsRqm22eAVADDYDfWRAq7pXuVvr0bPs> cascade:conditionName \"Hypertensive disorder\" ;\n\tcascade:conditionCode <http://snomed.info/id/38341003> .\n<urn:uuid:c1305954-8133-8eba-91b2-c9a6d25bf24c> a cascade:ProblemOrDiagnosis ;\n\tcascade:sourceUrl <https://fhir.example.org/r4/Condition/x> ;\n\tcascade:sourceRecordId \"x\" .\n<ni:///sha-256;Nm5YSrC1A8gIzsRqm22eAVADDYDfWRAq7pXuVvr0bPs> prov:specializationOf <urn:uuid:c1305954-8133-8eba-91b2-c9a6d25bf24c> ;\n\tcascade:patient <urn:uuid:dccb6776-d640-88e5-a7b3-7e2e1b860abe> .\n_:b3f14975430316898876334bd77d64ab bridge:arrivedAs <ni:///sha-256;Nm5YSrC1A8gIzsRqm22eAVADDYDfWRAq7pXuVvr0bPs> ;\n\toa:hasSelector _:7e0a3878417f69d02a23c25385942b14 ;\n\toa:hasSource <ni:///sha-256;SzF6-XEFLKjxbtd8aa3mN8JC3bdBYWiS1eHtBWyaTkk> ;\n\tprov:wasDerivedFrom <ni:///sha-256;SzF6-XEFLKjxbtd8aa3mN8JC3bdBYWiS1eHtBWyaTkk> ;\n\tprov:wasGeneratedBy _:45c8a17c5dd886b831e7b85ddf62ff1b .\n_:7e0a3878417f69d02a23c25385942b14 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/0\" .\n<ni:///sha-256;h3MdJKhfWmMJ2N3woerThB2qx7V8_oRLFDj0bOamQRI> cascade:allergenName \"Penicillin\" ;\n\tcascade:allergenCode <http://snomed.info/id/373270004> .\n<urn:uuid:f290e266-4177-8c91-91a1-2aa88f880560> a cascade:AllergyOrIntolerance ;\n\tcascade:sourceUrl <https://fhir.example.org/r4/AllergyIntolerance/x> ;\n\tcascade:sourceRecordId \"x\" .\n<ni:///sha-256;h3MdJKhfWmMJ2N3woerThB2qx7V8_oRLFDj0bOamQRI> prov:specializationOf <urn:uuid:f290e266-4177-8c91-91a1-2aa88f880560> ;\n\tcascade:patient <urn:uuid:dccb6776-d640-88e5-a7b3-7e2e1b860abe> .\n_:50b5c0055a4f7929920dfd680c98ab67 bridge:arrivedAs <ni:///sha-256;h3MdJKhfWmMJ2N3woerThB2qx7V8_oRLFDj0bOamQRI> ;\n\toa:hasSelector _:a1ef918ed3af2295c23ce8e10e347c5a ;\n\toa:hasSource <ni:///sha-256;SzF6-XEFLKjxbtd8aa3mN8JC3bdBYWiS1eHtBWyaTkk> ;\n\tprov:wasDerivedFrom <ni:///sha-256;SzF6-XEFLKjxbtd8aa3mN8JC3bdBYWiS1eHtBWyaTkk> ;\n\tprov:wasGeneratedBy _:45c8a17c5dd886b831e7b85ddf62ff1b .\n_:a1ef918ed3af2295c23ce8e10e347c5a a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n<ni:///sha-256;fcLpaalIKMAzgrB0_apHZTqbWdR3vG_76mNvj9vnOC0> cascade:conditionName \"Type 2 diabetes mellitus\" ;\n\tcascade:conditionCode <http://snomed.info/id/44054006> .\n<urn:uuid:056e9734-112a-8344-ba43-48b6a943846d> a cascade:ProblemOrDiagnosis ;\n\tcascade:sourceUrl <https://fhir.example.org/r4/Condition/X> ;\n\tcascade:sourceRecordId \"X\" .\n<ni:///sha-256;fcLpaalIKMAzgrB0_apHZTqbWdR3vG_76mNvj9vnOC0> prov:specializationOf <urn:uuid:056e9734-112a-8344-ba43-48b6a943846d> ;\n\tcascade:patient <urn:uuid:dccb6776-d640-88e5-a7b3-7e2e1b860abe> .\n_:30b0d99e8bee40e177d6056382128e4c bridge:arrivedAs <ni:///sha-256;fcLpaalIKMAzgrB0_apHZTqbWdR3vG_76mNvj9vnOC0> ;\n\toa:hasSelector _:c6d36c18e1ea44044f02ebecc7c29371 ;\n\toa:hasSource <ni:///sha-256;SzF6-XEFLKjxbtd8aa3mN8JC3bdBYWiS1eHtBWyaTkk> ;\n\tprov:wasDerivedFrom <ni:///sha-256;SzF6-XEFLKjxbtd8aa3mN8JC3bdBYWiS1eHtBWyaTkk> ;\n\tprov:wasGeneratedBy _:45c8a17c5dd886b831e7b85ddf62ff1b .\n_:c6d36c18e1ea44044f02ebecc7c29371 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/2\" .\n<ni:///sha-256;SzF6-XEFLKjxbtd8aa3mN8JC3bdBYWiS1eHtBWyaTkk> cascade:serverBaseUrl \"https://fhir.example.org/r4\" ;\n\tpav:retrievedOn \"2026-10-16T09:00:00Z\"^^xsd:dateTime ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:45c8a17c5dd886b831e7b85ddf62ff1b <http://www.w3.org/2000/01/rdf-schema#label> \"Example hospital pull\" ;\n\tprov:startedAtTime \"2026-10-16T09:00:04Z\"^^xsd:dateTime .\n<ni:///sha-256;SzF6-XEFLKjxbtd8aa3mN8JC3bdBYWiS1eHtBWyaTkk> a prov:Entity .\n_:45c8a17c5dd886b831e7b85ddf62ff1b a prov:Activity ;\n\tprov:used <ni:///sha-256;SzF6-XEFLKjxbtd8aa3mN8JC3bdBYWiS1eHtBWyaTkk> ;\n\tprov:qualifiedAssociation _:c52029a6dc4bcb6d47a12fec30e318f9 .\n_:c52029a6dc4bcb6d47a12fec30e318f9 prov:hadPlan _:3ec5ebbf694606b18a3f18019e7bd455 .\n_:3ec5ebbf694606b18a3f18019e7bd455 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:c52029a6dc4bcb6d47a12fec30e318f9 prov:agent _:9314fdcff43d0631b97564615f87de2 .\n_:9314fdcff43d0631b97564615f87de2 a prov:SoftwareAgent ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"Cascade Bridge for Rust\" ;\n\tpav:version \"0.1.0\" .\n"}, "expectedFindings": {"file": "fixtures/findings/bundle-pull-id-shared-across-types.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/bundle-pull-id-shared-across-types.ttl", "text": "", "empty": true}}