{"name": "bundle-patient-reference-urn-not-held", "comment": "A Condition whose subject is a urn:uuid no entry of the Bundle has as its fullUrl: the reference names no patient, and a finding says so.", "input": {"file": "fixtures/in/bundle-patient-reference-urn-not-held.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/bundle-patient-reference-urn-not-held.json", "text": "{\n  \"resourceType\": \"Bundle\",\n  \"type\": \"collection\",\n  \"entry\": [\n    {\n      \"fullUrl\": \"urn:uuid:7c1e2a4b-3d5f-4a6b-8c7d-9e0f1a2b3c4d\",\n      \"resource\": {\n        \"resourceType\": \"Condition\",\n        \"code\": {\n          \"coding\": [\n            {\n              \"system\": \"http://snomed.info/sct\",\n              \"code\": \"38341003\",\n              \"display\": \"Hypertensive disorder\"\n            }\n          ],\n          \"text\": \"Hypertension\"\n        },\n        \"subject\": {\n          \"reference\": \"urn:uuid:7c1e2a4b-3d5f-4a6b-8c7d-9e0f1a2b3c4e\"\n        }\n      }\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/bundle-patient-reference-urn-not-held.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/bundle-patient-reference-urn-not-held.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;gD2aUzRcCDKOuwivwFaiLhomPfUJjnj2h4dHnPATO24> cascade:conditionName \"Hypertension\" ;\n\tcascade:conditionCode <http://snomed.info/id/38341003> .\n<urn:uuid:255c2546-93c9-87c6-93c9-64799c987f78> a cascade:ProblemOrDiagnosis .\n<ni:///sha-256;gD2aUzRcCDKOuwivwFaiLhomPfUJjnj2h4dHnPATO24> prov:specializationOf <urn:uuid:255c2546-93c9-87c6-93c9-64799c987f78> .\n_:3bab3f88a5c16d03befb4009eda6d922 bridge:arrivedAs <ni:///sha-256;gD2aUzRcCDKOuwivwFaiLhomPfUJjnj2h4dHnPATO24> ;\n\toa:hasSelector _:81a4304f27e27151d07e9a386c132e63 ;\n\toa:hasSource <ni:///sha-256;nJfK6viUSRWrQ3WdP4vBDYK3PDN0sAqdDpoJmrKXL78> ;\n\tprov:wasDerivedFrom <ni:///sha-256;nJfK6viUSRWrQ3WdP4vBDYK3PDN0sAqdDpoJmrKXL78> ;\n\tprov:wasGeneratedBy _:23c93528710e9a1d0eae2ab1b7a095a8 .\n_:81a4304f27e27151d07e9a386c132e63 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/0\" .\n<ni:///sha-256;nJfK6viUSRWrQ3WdP4vBDYK3PDN0sAqdDpoJmrKXL78> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:c975d7c37b58ab311447cab2b82e03fd ;\n\tprov:wasAttributedTo _:7fd8d11abdcf2892ab9090506009fd56 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:b055ef299a6060d6b1070b2811c2620f prov:agent _:7fd8d11abdcf2892ab9090506009fd56 ;\n\tprov:hadRole cascade:AuthorRole .\n_:c975d7c37b58ab311447cab2b82e03fd prov:qualifiedAssociation _:b055ef299a6060d6b1070b2811c2620f .\n_:d0d11f8d7fe3c8d83c19ca29dcbdf1d9 prov:agent _:5ae15ea037984c217938a73dc06bd197 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:c975d7c37b58ab311447cab2b82e03fd prov:qualifiedAssociation _:d0d11f8d7fe3c8d83c19ca29dcbdf1d9 .\n_:7fd8d11abdcf2892ab9090506009fd56 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:5ae15ea037984c217938a73dc06bd197 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:23c93528710e9a1d0eae2ab1b7a095a8 <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;nJfK6viUSRWrQ3WdP4vBDYK3PDN0sAqdDpoJmrKXL78> a prov:Entity .\n_:23c93528710e9a1d0eae2ab1b7a095a8 a prov:Activity ;\n\tprov:used <ni:///sha-256;nJfK6viUSRWrQ3WdP4vBDYK3PDN0sAqdDpoJmrKXL78> ;\n\tprov:qualifiedAssociation _:a87366596e6cb83c3c38171bb4b8543c .\n_:a87366596e6cb83c3c38171bb4b8543c prov:hadPlan _:820eb8e02b9de93cc262abbd599da919 .\n_:820eb8e02b9de93cc262abbd599da919 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:a87366596e6cb83c3c38171bb4b8543c prov:agent _:70e73e9212949244c1a7eaedc69d3d97 .\n_:70e73e9212949244c1a7eaedc69d3d97 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-patient-reference-urn-not-held.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/bundle-patient-reference-urn-not-held.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_:dace6b063f0d06c701df4c728c4284da a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/0\" .\n_:bf127f384c2d26e8f4027dfe3eeee7b5 oa:hasSource <../in/bundle-patient-reference-urn-not-held.json> .\n_:dace6b063f0d06c701df4c728c4284da oa:refinedBy _:b0a6073dbaf7c785192ed0fde797587a .\n_:b0a6073dbaf7c785192ed0fde797587a a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/subject/reference\" .\n_:bf127f384c2d26e8f4027dfe3eeee7b5 oa:hasSelector _:dace6b063f0d06c701df4c728c4284da .\n_:b698607b246f6dc9ead2f2ea74aa5cf3 oa:hasTarget _:bf127f384c2d26e8f4027dfe3eeee7b5 ;\n\tsh:resultSeverity sh:Warning ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:referenceNotHeld ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"urn:uuid:7c1e2a4b-3d5f-4a6b-8c7d-9e0f1a2b3c4e\" .\n", "empty": false}}