{"name": "bundle-procedures-same-cpt-code-a-year-apart", "comment": "Two Procedures with CPT 36415 a year apart: each is carried as a cascade:procedureCode CPT IRI on its own record, so the code alone never makes one of them.", "input": {"file": "fixtures/in/bundle-procedures-same-cpt-code-a-year-apart.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/bundle-procedures-same-cpt-code-a-year-apart.json", "text": "{\n  \"resourceType\": \"Bundle\",\n  \"type\": \"collection\",\n  \"entry\": [\n    {\n      \"resource\": {\n        \"resourceType\": \"Procedure\",\n        \"id\": \"proc-venipuncture-1\",\n        \"status\": \"completed\",\n        \"code\": {\n          \"coding\": [\n            {\n              \"system\": \"http://www.ama-assn.org/go/cpt\",\n              \"code\": \"36415\",\n              \"display\": \"Collection of venous blood by venipuncture\"\n            }\n          ],\n          \"text\": \"Blood draw\"\n        },\n        \"subject\": {\n          \"reference\": \"Patient/pat-conformance-1\"\n        },\n        \"performedDateTime\": \"2024-03-12\"\n      }\n    },\n    {\n      \"resource\": {\n        \"resourceType\": \"Procedure\",\n        \"id\": \"proc-venipuncture-2\",\n        \"status\": \"completed\",\n        \"code\": {\n          \"coding\": [\n            {\n              \"system\": \"http://www.ama-assn.org/go/cpt\",\n              \"code\": \"36415\",\n              \"display\": \"Collection of venous blood by venipuncture\"\n            }\n          ],\n          \"text\": \"Blood draw\"\n        },\n        \"subject\": {\n          \"reference\": \"Patient/pat-conformance-1\"\n        },\n        \"performedDateTime\": \"2025-03-11\"\n      }\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/bundle-procedures-same-cpt-code-a-year-apart.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/bundle-procedures-same-cpt-code-a-year-apart.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;9Q0EWjG45bCVmXTH_v5_2kACNfaJ11sBsxS5lio-sHE> cascade:procedureName \"Blood draw\" ;\n\tcascade:procedureCode <https://ns.cascadeprotocol.org/codes/cpt/36415> ;\n\tcascade:procedureDate \"2024-03-12\"^^xsd:date ;\n\tcascade:workflowStatus \"completed\" .\n<urn:uuid:93c94d1d-f94b-84d8-b05c-1334f3d6c49b> a cascade:MedicalProcedure ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Procedure/proc-venipuncture-1> ;\n\tcascade:sourceRecordId \"proc-venipuncture-1\" .\n<ni:///sha-256;9Q0EWjG45bCVmXTH_v5_2kACNfaJ11sBsxS5lio-sHE> prov:specializationOf <urn:uuid:93c94d1d-f94b-84d8-b05c-1334f3d6c49b> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:6e688078c043c8ff5a9090eb858521db bridge:arrivedAs <ni:///sha-256;9Q0EWjG45bCVmXTH_v5_2kACNfaJ11sBsxS5lio-sHE> ;\n\toa:hasSelector _:3a7547e1ecbdfb4a2e7d293fb958878b ;\n\toa:hasSource <ni:///sha-256;qCfaRHr6DzWRNZVgWhFBRjEssNESOigX8gmH1pwuMBU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;qCfaRHr6DzWRNZVgWhFBRjEssNESOigX8gmH1pwuMBU> ;\n\tprov:wasGeneratedBy _:a43dbaf09bdc4199267f87e944814657 .\n_:3a7547e1ecbdfb4a2e7d293fb958878b a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/0\" .\n<ni:///sha-256;jev6WjxcHhV45qY4AxFKl0T7ngsnv0a8Rmnav7oSq9Y> cascade:procedureName \"Blood draw\" ;\n\tcascade:procedureCode <https://ns.cascadeprotocol.org/codes/cpt/36415> ;\n\tcascade:procedureDate \"2025-03-11\"^^xsd:date ;\n\tcascade:workflowStatus \"completed\" .\n<urn:uuid:a15aa5b1-e0b1-8f1e-a262-e6cc39c6be66> a cascade:MedicalProcedure ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Procedure/proc-venipuncture-2> ;\n\tcascade:sourceRecordId \"proc-venipuncture-2\" .\n<ni:///sha-256;jev6WjxcHhV45qY4AxFKl0T7ngsnv0a8Rmnav7oSq9Y> prov:specializationOf <urn:uuid:a15aa5b1-e0b1-8f1e-a262-e6cc39c6be66> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:f310220ed7ccfde8f6f4d16449dbdc5c bridge:arrivedAs <ni:///sha-256;jev6WjxcHhV45qY4AxFKl0T7ngsnv0a8Rmnav7oSq9Y> ;\n\toa:hasSelector _:608c55cb8639b892e9ce60f88d099b8e ;\n\toa:hasSource <ni:///sha-256;qCfaRHr6DzWRNZVgWhFBRjEssNESOigX8gmH1pwuMBU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;qCfaRHr6DzWRNZVgWhFBRjEssNESOigX8gmH1pwuMBU> ;\n\tprov:wasGeneratedBy _:a43dbaf09bdc4199267f87e944814657 .\n_:608c55cb8639b892e9ce60f88d099b8e a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n<ni:///sha-256;qCfaRHr6DzWRNZVgWhFBRjEssNESOigX8gmH1pwuMBU> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:45b131dc429c979b17e359eccd3b349b ;\n\tprov:wasAttributedTo _:8a1846f9d8497b4ec09f62b2b1073fa4 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:c9b28ff25887b50e39832285b9045c5 prov:agent _:8a1846f9d8497b4ec09f62b2b1073fa4 ;\n\tprov:hadRole cascade:AuthorRole .\n_:45b131dc429c979b17e359eccd3b349b prov:qualifiedAssociation _:c9b28ff25887b50e39832285b9045c5 .\n_:2fc23552d0e453b6c16c0c3072bc404a prov:agent _:3685d7a3bc03bf738c41dcee5f4579ab ;\n\tprov:hadRole cascade:TransmitterRole .\n_:45b131dc429c979b17e359eccd3b349b prov:qualifiedAssociation _:2fc23552d0e453b6c16c0c3072bc404a .\n_:8a1846f9d8497b4ec09f62b2b1073fa4 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:3685d7a3bc03bf738c41dcee5f4579ab <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:a43dbaf09bdc4199267f87e944814657 <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;qCfaRHr6DzWRNZVgWhFBRjEssNESOigX8gmH1pwuMBU> a prov:Entity .\n_:a43dbaf09bdc4199267f87e944814657 a prov:Activity ;\n\tprov:used <ni:///sha-256;qCfaRHr6DzWRNZVgWhFBRjEssNESOigX8gmH1pwuMBU> ;\n\tprov:qualifiedAssociation _:46149240dfce250a5e12b14b719e2fb5 .\n_:46149240dfce250a5e12b14b719e2fb5 prov:hadPlan _:b27fbeaeb397a8712ccbbb009339b909 .\n_:b27fbeaeb397a8712ccbbb009339b909 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:46149240dfce250a5e12b14b719e2fb5 prov:agent _:dc2d7c0abfa9f25fced6b2fadc673abf .\n_:dc2d7c0abfa9f25fced6b2fadc673abf 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-procedures-same-cpt-code-a-year-apart.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/bundle-procedures-same-cpt-code-a-year-apart.ttl", "text": "", "empty": true}}