{"name": "condition-patient-reference-userinfo", "comment": "A patient referenced by an absolute URL whose base carries userinfo: the reference names no patient, and a finding says so.", "input": {"file": "fixtures/in/condition-patient-reference-userinfo.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/condition-patient-reference-userinfo.json", "text": "{\n  \"resourceType\": \"Condition\",\n  \"id\": \"cond-htn-1\",\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\": \"https://apple-health@FHIR.Meridian.example/api/FHIR/R4/Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\"\n  }\n}\n"}, "expectedGraph": {"file": "fixtures/expected/condition-patient-reference-userinfo.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/condition-patient-reference-userinfo.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;rvyF4dj10YV5SSZOe2-yvFd4Ayb5Q2RxCK5UNUM1Q2k> cascade:conditionName \"Hypertension\" ;\n\tcascade:conditionCode <http://snomed.info/id/38341003> .\n<urn:uuid:e3889c3a-faa3-8a4f-a9f6-84d1dd1d85a4> a cascade:ProblemOrDiagnosis ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Condition/cond-htn-1> ;\n\tcascade:sourceRecordId \"cond-htn-1\" .\n<ni:///sha-256;rvyF4dj10YV5SSZOe2-yvFd4Ayb5Q2RxCK5UNUM1Q2k> prov:specializationOf <urn:uuid:e3889c3a-faa3-8a4f-a9f6-84d1dd1d85a4> .\n_:73f5266ac22db2bda1d0a4104ceafd48 bridge:arrivedAs <ni:///sha-256;rvyF4dj10YV5SSZOe2-yvFd4Ayb5Q2RxCK5UNUM1Q2k> ;\n\toa:hasSelector _:ff65d65f51013a9f08c535f7cad99fb6 ;\n\toa:hasSource <ni:///sha-256;Na9sLLkReUUdYU6bIYdIPxyMtN7mnmdSfuBJVXGEj54> ;\n\tprov:wasDerivedFrom <ni:///sha-256;Na9sLLkReUUdYU6bIYdIPxyMtN7mnmdSfuBJVXGEj54> ;\n\tprov:wasGeneratedBy _:7939cf25690a60ab2f563ca1788247df .\n_:ff65d65f51013a9f08c535f7cad99fb6 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;Na9sLLkReUUdYU6bIYdIPxyMtN7mnmdSfuBJVXGEj54> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedFrom <https://FHIR.Meridian.example/api/FHIR/R4/Condition/cond-htn-1> ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:85bb51a25cd0e8c42bff87efd3bd0eaf ;\n\tprov:wasAttributedTo _:56e568819a3eee54196a5b0c02c47271 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:16aa57dacb7ca48fc97681cf49a448f5 prov:agent _:56e568819a3eee54196a5b0c02c47271 ;\n\tprov:hadRole cascade:AuthorRole .\n_:85bb51a25cd0e8c42bff87efd3bd0eaf prov:qualifiedAssociation _:16aa57dacb7ca48fc97681cf49a448f5 .\n_:eb08da861f6d39e7a04197100de7d246 prov:agent _:8c2b88d97ce61ab863d1cae194d0aa03 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:85bb51a25cd0e8c42bff87efd3bd0eaf prov:qualifiedAssociation _:eb08da861f6d39e7a04197100de7d246 .\n_:56e568819a3eee54196a5b0c02c47271 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:8c2b88d97ce61ab863d1cae194d0aa03 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:7939cf25690a60ab2f563ca1788247df <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;Na9sLLkReUUdYU6bIYdIPxyMtN7mnmdSfuBJVXGEj54> a prov:Entity .\n_:7939cf25690a60ab2f563ca1788247df a prov:Activity ;\n\tprov:used <ni:///sha-256;Na9sLLkReUUdYU6bIYdIPxyMtN7mnmdSfuBJVXGEj54> ;\n\tprov:qualifiedAssociation _:2521629411b00293b1432b2d648c4d04 .\n_:2521629411b00293b1432b2d648c4d04 prov:hadPlan _:3945ec2bbb10969a9df272df19e91bb5 .\n_:3945ec2bbb10969a9df272df19e91bb5 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:2521629411b00293b1432b2d648c4d04 prov:agent _:dbd1bcb1f694c7fd186971dd394b77ee .\n_:dbd1bcb1f694c7fd186971dd394b77ee 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/condition-patient-reference-userinfo.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/condition-patient-reference-userinfo.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_:b57004188f9e916c9199f8aa3153ee5d a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:b0930719eaec4ff6a0186235a0d4091 oa:hasSource <../in/condition-patient-reference-userinfo.json> .\n_:b57004188f9e916c9199f8aa3153ee5d oa:refinedBy _:c2bdfaf9cdf813ac0145bfc72e44cbf5 .\n_:c2bdfaf9cdf813ac0145bfc72e44cbf5 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/subject/reference\" .\n_:b0930719eaec4ff6a0186235a0d4091 oa:hasSelector _:b57004188f9e916c9199f8aa3153ee5d .\n_:a3724e068c5acaf327b7623e3e1a831d oa:hasTarget _:b0930719eaec4ff6a0186235a0d4091 ;\n\tsh:resultSeverity sh:Warning ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:referenceBaseRefused ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"https://apple-health@FHIR.Meridian.example/api/FHIR/R4/Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" .\n", "empty": false}}