{"name": "bundle-repeated-condition-id", "comment": "Two entries holding one Condition id: each is named from the document's SHA-256 and its selector, and each carries a finding of the repeated id.", "input": {"file": "fixtures/in/bundle-repeated-condition-id.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/bundle-repeated-condition-id.json", "text": "{\n  \"resourceType\": \"Bundle\",\n  \"type\": \"collection\",\n  \"entry\": [\n    {\n      \"resource\": {\n        \"resourceType\": \"Condition\",\n        \"id\": \"cond-htn-1\",\n        \"clinicalStatus\": {\n          \"coding\": [\n            {\n              \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\n              \"code\": \"active\"\n            }\n          ]\n        },\n        \"code\": {\n          \"coding\": [\n            {\n              \"system\": \"http://snomed.info/sct\",\n              \"code\": \"38341003\",\n              \"display\": \"Essential hypertension\"\n            }\n          ],\n          \"text\": \"Essential hypertension\"\n        },\n        \"subject\": {\n          \"reference\": \"Patient/pat-conformance-1\"\n        },\n        \"onsetDateTime\": \"2021-04-02\"\n      }\n    },\n    {\n      \"resource\": {\n        \"resourceType\": \"Condition\",\n        \"id\": \"cond-htn-1\",\n        \"clinicalStatus\": {\n          \"coding\": [\n            {\n              \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\n              \"code\": \"resolved\"\n            }\n          ]\n        },\n        \"code\": {\n          \"coding\": [\n            {\n              \"system\": \"http://snomed.info/sct\",\n              \"code\": \"38341003\",\n              \"display\": \"Essential hypertension\"\n            }\n          ],\n          \"text\": \"Essential hypertension\"\n        },\n        \"subject\": {\n          \"reference\": \"Patient/pat-conformance-1\"\n        },\n        \"onsetDateTime\": \"2021-04-02\",\n        \"abatementDateTime\": \"2025-11-20\"\n      }\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/bundle-repeated-condition-id.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/bundle-repeated-condition-id.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;-WPClhLdEUT7S5YGTYJel0Wc_UyFhQ30-h7Jxar2PIc> cascade:conditionName \"Essential hypertension\" ;\n\tcascade:conditionCode <http://snomed.info/id/38341003> ;\n\tcascade:clinicalStatus \"active\" ;\n\tcascade:onsetDate \"2021-04-02\"^^xsd:date .\n<urn:uuid:422b1bf4-375b-89a3-a183-3e3c157d8d97> a cascade:ProblemOrDiagnosis ;\n\tcascade:sourceRecordId \"cond-htn-1\" .\n<ni:///sha-256;-WPClhLdEUT7S5YGTYJel0Wc_UyFhQ30-h7Jxar2PIc> prov:specializationOf <urn:uuid:422b1bf4-375b-89a3-a183-3e3c157d8d97> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:467fd37538accab84fb7181d6b9dfd55 bridge:arrivedAs <ni:///sha-256;-WPClhLdEUT7S5YGTYJel0Wc_UyFhQ30-h7Jxar2PIc> ;\n\toa:hasSelector _:af22e861ac3905d662b279dbab0546bb ;\n\toa:hasSource <ni:///sha-256;O6EehqXpfB2Vxi7Nvu71Wz2bor4w07UnQVZQgb1hRns> ;\n\tprov:wasDerivedFrom <ni:///sha-256;O6EehqXpfB2Vxi7Nvu71Wz2bor4w07UnQVZQgb1hRns> ;\n\tprov:wasGeneratedBy _:7b529676dcda4007cf77e90a0c966592 .\n_:af22e861ac3905d662b279dbab0546bb a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/0\" .\n<ni:///sha-256;lEUbEowYR1_7bgyeTpwnoOznjK3eUiICxjMsg7XXdds> cascade:conditionName \"Essential hypertension\" ;\n\tcascade:conditionCode <http://snomed.info/id/38341003> ;\n\tcascade:clinicalStatus \"resolved\" ;\n\tcascade:onsetDate \"2021-04-02\"^^xsd:date ;\n\tcascade:abatementDate \"2025-11-20\"^^xsd:date .\n<urn:uuid:aae6f557-5416-821b-91cc-822f0f4d0270> a cascade:ProblemOrDiagnosis ;\n\tcascade:sourceRecordId \"cond-htn-1\" .\n<ni:///sha-256;lEUbEowYR1_7bgyeTpwnoOznjK3eUiICxjMsg7XXdds> prov:specializationOf <urn:uuid:aae6f557-5416-821b-91cc-822f0f4d0270> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:ae549ade20bb99b32c076af61c0e9981 bridge:arrivedAs <ni:///sha-256;lEUbEowYR1_7bgyeTpwnoOznjK3eUiICxjMsg7XXdds> ;\n\toa:hasSelector _:7e00ab26e111bb732a3c5bb2f7a910b9 ;\n\toa:hasSource <ni:///sha-256;O6EehqXpfB2Vxi7Nvu71Wz2bor4w07UnQVZQgb1hRns> ;\n\tprov:wasDerivedFrom <ni:///sha-256;O6EehqXpfB2Vxi7Nvu71Wz2bor4w07UnQVZQgb1hRns> ;\n\tprov:wasGeneratedBy _:7b529676dcda4007cf77e90a0c966592 .\n_:7e00ab26e111bb732a3c5bb2f7a910b9 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n<ni:///sha-256;O6EehqXpfB2Vxi7Nvu71Wz2bor4w07UnQVZQgb1hRns> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:2e9758e3a9a8e16a8fbb857c32f89189 ;\n\tprov:wasAttributedTo _:761c83a5c3d01bd3f379b9f011cdfac9 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:79bcd0699790648945904f5f7768b1bd prov:agent _:761c83a5c3d01bd3f379b9f011cdfac9 ;\n\tprov:hadRole cascade:AuthorRole .\n_:2e9758e3a9a8e16a8fbb857c32f89189 prov:qualifiedAssociation _:79bcd0699790648945904f5f7768b1bd .\n_:26be3a5a83f7b86372f5ce53b89ccb1c prov:agent _:f49ab80ef048bc864e43592a6b733bec ;\n\tprov:hadRole cascade:TransmitterRole .\n_:2e9758e3a9a8e16a8fbb857c32f89189 prov:qualifiedAssociation _:26be3a5a83f7b86372f5ce53b89ccb1c .\n_:761c83a5c3d01bd3f379b9f011cdfac9 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:f49ab80ef048bc864e43592a6b733bec <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:7b529676dcda4007cf77e90a0c966592 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health export\" ;\n\tprov:startedAtTime \"2026-09-01T10:00:04Z\"^^xsd:dateTime .\n<ni:///sha-256;O6EehqXpfB2Vxi7Nvu71Wz2bor4w07UnQVZQgb1hRns> a prov:Entity .\n_:7b529676dcda4007cf77e90a0c966592 a prov:Activity ;\n\tprov:used <ni:///sha-256;O6EehqXpfB2Vxi7Nvu71Wz2bor4w07UnQVZQgb1hRns> ;\n\tprov:qualifiedAssociation _:5a1e128ff45c52beaa3a1a0b8842e14e .\n_:5a1e128ff45c52beaa3a1a0b8842e14e prov:hadPlan _:c2e3b92818e39898ae4f96ba864fae16 .\n_:c2e3b92818e39898ae4f96ba864fae16 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:5a1e128ff45c52beaa3a1a0b8842e14e prov:agent _:9fde9a6c56b372d89c978ca1822d91bf .\n_:9fde9a6c56b372d89c978ca1822d91bf 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-repeated-condition-id.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/bundle-repeated-condition-id.ttl", "text": "@prefix fhirr4: <https://ns.cascadeprotocol.org/adapter/fhir-r4/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_:c04ddad20405aea3ad16d04e30b1be99 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/0\" .\n_:b217b496d9729a1a172bc14987ee502a oa:hasSource <../in/bundle-repeated-condition-id.json> .\n_:c04ddad20405aea3ad16d04e30b1be99 oa:refinedBy _:acdc8fb93e56542b45a019ddb21b61a3 .\n_:acdc8fb93e56542b45a019ddb21b61a3 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/id\" .\n_:b217b496d9729a1a172bc14987ee502a oa:hasSelector _:c04ddad20405aea3ad16d04e30b1be99 .\n_:efc4bf7121227817434f0e81e6776903 oa:hasTarget _:b217b496d9729a1a172bc14987ee502a ;\n\tsh:resultSeverity sh:Info ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:resourceIdRepeated ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"cond-htn-1\" .\n_:e65a0a36db6ba91e084cfcaeb77374f9 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n_:bbd5a579731fd40f48dfa4f24ab499f4 oa:hasSource <../in/bundle-repeated-condition-id.json> .\n_:e65a0a36db6ba91e084cfcaeb77374f9 oa:refinedBy _:d98153f7d8f950d5cd42c60c85e2527c .\n_:d98153f7d8f950d5cd42c60c85e2527c a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/id\" .\n_:bbd5a579731fd40f48dfa4f24ab499f4 oa:hasSelector _:e65a0a36db6ba91e084cfcaeb77374f9 .\n_:d3fd5fe514c477998ab5873094349eea oa:hasTarget _:bbd5a579731fd40f48dfa4f24ab499f4 ;\n\tsh:resultSeverity sh:Info ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:resourceIdRepeated ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"cond-htn-1\" .\n", "empty": false}}