{"name": "lab-performer-versioned-reference", "comment": "A performer naming a version of an Organization names the Organization's record: the /_history/ step is dropped.", "input": {"file": "fixtures/in/lab-performer-versioned-reference.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/lab-performer-versioned-reference.json", "text": "{\n  \"resourceType\": \"Observation\",\n  \"id\": \"obs-potassium-4\",\n  \"status\": \"final\",\n  \"category\": [\n    {\n      \"coding\": [\n        {\n          \"system\": \"http://terminology.hl7.org/CodeSystem/observation-category\",\n          \"code\": \"laboratory\"\n        }\n      ]\n    }\n  ],\n  \"code\": {\n    \"coding\": [\n      {\n        \"system\": \"http://loinc.org\",\n        \"code\": \"2823-3\",\n        \"display\": \"Potassium [Moles/volume] in Serum or Plasma\"\n      }\n    ],\n    \"text\": \"Potassium\"\n  },\n  \"subject\": {\n    \"reference\": \"Patient/pat-1\"\n  },\n  \"effectiveDateTime\": \"2026-09-29T07:30:00Z\",\n  \"performer\": [\n    {\n      \"reference\": \"Organization/org-lab-1/_history/2\"\n    }\n  ],\n  \"valueQuantity\": {\n    \"value\": 4.1,\n    \"unit\": \"mmol/L\",\n    \"system\": \"http://unitsofmeasure.org\",\n    \"code\": \"mmol/L\"\n  }\n}\n"}, "expectedGraph": {"file": "fixtures/expected/lab-performer-versioned-reference.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/lab-performer-versioned-reference.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;wkR2tNEi8651ggNubu89ktpfzIf87f9fqW8WzbgWoc8> prov:wasAttributedTo <urn:uuid:240bcd6f-8199-80f4-82c3-97fc9e9d87be> ;\n\tcascade:resultQuantity <ni:///sha-256;wkR2tNEi8651ggNubu89ktpfzIf87f9fqW8WzbgWoc8#value> .\n<ni:///sha-256;wkR2tNEi8651ggNubu89ktpfzIf87f9fqW8WzbgWoc8#value> cascade:decimalValue 4.1 ;\n\tcascade:writtenValue \"4.1\" ;\n\tcascade:ucumUnit \"mmol/L\" ;\n\tcascade:unitText \"mmol/L\" .\n<ni:///sha-256;wkR2tNEi8651ggNubu89ktpfzIf87f9fqW8WzbgWoc8> cascade:testName \"Potassium\" ;\n\tcascade:testCode <http://loinc.org/rdf/2823-3> ;\n\tcascade:resultValueKind cascade:QuantityResultValue ;\n\tcascade:resultClinicallyRelevantTime \"2026-09-29T07:30:00Z\"^^xsd:dateTime ;\n\tcascade:workflowStatus \"final\" .\n<urn:uuid:52f77e11-0fb7-8b36-8ef9-f3763db58587> a cascade:LaboratoryTestResult ;\n\tcascade:sourceUrl <https://fhir.example.org/r4/Observation/obs-potassium-4> ;\n\tcascade:sourceRecordId \"obs-potassium-4\" .\n<ni:///sha-256;wkR2tNEi8651ggNubu89ktpfzIf87f9fqW8WzbgWoc8> prov:specializationOf <urn:uuid:52f77e11-0fb7-8b36-8ef9-f3763db58587> ;\n\tcascade:patient <urn:uuid:dccb6776-d640-88e5-a7b3-7e2e1b860abe> .\n_:1c1949d3850c9d8b9d13dacdac748d77 bridge:arrivedAs <ni:///sha-256;wkR2tNEi8651ggNubu89ktpfzIf87f9fqW8WzbgWoc8> ;\n\toa:hasSelector _:951cc528b9e73f0f9e037193088e86a5 ;\n\toa:hasSource <ni:///sha-256;dgTldEEdnKIWp16P1gj73PRrZx3e5CpP96dDy3kYYwM> ;\n\tprov:wasDerivedFrom <ni:///sha-256;dgTldEEdnKIWp16P1gj73PRrZx3e5CpP96dDy3kYYwM> ;\n\tprov:wasGeneratedBy _:44f618d2f6ed791476b83ab51beb28c7 .\n_:951cc528b9e73f0f9e037193088e86a5 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;dgTldEEdnKIWp16P1gj73PRrZx3e5CpP96dDy3kYYwM> cascade:serverBaseUrl \"https://fhir.example.org/r4\" ;\n\tpav:retrievedOn \"2026-10-16T09:00:00Z\"^^xsd:dateTime ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:44f618d2f6ed791476b83ab51beb28c7 <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;dgTldEEdnKIWp16P1gj73PRrZx3e5CpP96dDy3kYYwM> a prov:Entity .\n_:44f618d2f6ed791476b83ab51beb28c7 a prov:Activity ;\n\tprov:used <ni:///sha-256;dgTldEEdnKIWp16P1gj73PRrZx3e5CpP96dDy3kYYwM> ;\n\tprov:qualifiedAssociation _:38ff007f9a41c73c4682750bfd74ce13 .\n_:38ff007f9a41c73c4682750bfd74ce13 prov:hadPlan _:24cf511ba118ba5078440fd3810696ab .\n_:24cf511ba118ba5078440fd3810696ab a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:38ff007f9a41c73c4682750bfd74ce13 prov:agent _:bbee2e45c9622260834514e60e765be2 .\n_:bbee2e45c9622260834514e60e765be2 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/lab-performer-versioned-reference.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/lab-performer-versioned-reference.ttl", "text": "", "empty": true}}