{"name": "lab-b12-local-code-only", "comment": "A laboratory Observation coded only by its lab's own code: the code is carried as a cascade:testCodeInOtherSystem literal typed by its system, and no finding says it was lost.", "input": {"file": "fixtures/in/lab-b12-local-code-only.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/lab-b12-local-code-only.json", "text": "{\n  \"resourceType\": \"Observation\",\n  \"id\": \"obs-b12-local-1\",\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\": \"https://lab.meridian.example/codes\",\n        \"code\": \"B12-SER\",\n        \"display\": \"Vitamin B12, serum\"\n      }\n    ],\n    \"text\": \"Vitamin B12, serum\"\n  },\n  \"subject\": {\n    \"reference\": \"Patient/pat-conformance-1\"\n  },\n  \"effectiveDateTime\": \"2026-04-14\",\n  \"valueQuantity\": {\n    \"value\": 182,\n    \"unit\": \"pg/mL\",\n    \"system\": \"http://unitsofmeasure.org\",\n    \"code\": \"pg/mL\"\n  }\n}\n"}, "expectedGraph": {"file": "fixtures/expected/lab-b12-local-code-only.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/lab-b12-local-code-only.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;YXKqc7p8GdwSCv3VMeix0Nnxcj_iV0nlPQjs57Pvz-E> cascade:testCodeInOtherSystem \"B12-SER\"^^<https://lab.meridian.example/codes> ;\n\tcascade:resultQuantity <ni:///sha-256;YXKqc7p8GdwSCv3VMeix0Nnxcj_iV0nlPQjs57Pvz-E#value> .\n<ni:///sha-256;YXKqc7p8GdwSCv3VMeix0Nnxcj_iV0nlPQjs57Pvz-E#value> cascade:decimalValue \"182\"^^xsd:decimal ;\n\tcascade:writtenValue \"182\" ;\n\tcascade:ucumUnit \"pg/mL\" ;\n\tcascade:unitText \"pg/mL\" .\n<ni:///sha-256;YXKqc7p8GdwSCv3VMeix0Nnxcj_iV0nlPQjs57Pvz-E> cascade:testName \"Vitamin B12, serum\" ;\n\tcascade:resultValueKind cascade:QuantityResultValue ;\n\tcascade:resultClinicallyRelevantTime \"2026-04-14\"^^xsd:date ;\n\tcascade:workflowStatus \"final\" .\n<urn:uuid:08945de8-5d5f-8c11-b05a-7fc95d9265c8> a cascade:LaboratoryTestResult ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Observation/obs-b12-local-1> ;\n\tcascade:sourceRecordId \"obs-b12-local-1\" .\n<ni:///sha-256;YXKqc7p8GdwSCv3VMeix0Nnxcj_iV0nlPQjs57Pvz-E> prov:specializationOf <urn:uuid:08945de8-5d5f-8c11-b05a-7fc95d9265c8> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:d7a3fd3b274f7f2a4aa94abbc86c3fbe bridge:arrivedAs <ni:///sha-256;YXKqc7p8GdwSCv3VMeix0Nnxcj_iV0nlPQjs57Pvz-E> ;\n\toa:hasSelector _:e0d7cbe417b0420229886918f707c289 ;\n\toa:hasSource <ni:///sha-256;ydcWP-D5LnGoSPDwPrskSnzKVIFssr4Ix2w-Giz0Lpw> ;\n\tprov:wasDerivedFrom <ni:///sha-256;ydcWP-D5LnGoSPDwPrskSnzKVIFssr4Ix2w-Giz0Lpw> ;\n\tprov:wasGeneratedBy _:4971adee90ec8e9de89ef456d805519c .\n_:e0d7cbe417b0420229886918f707c289 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;ydcWP-D5LnGoSPDwPrskSnzKVIFssr4Ix2w-Giz0Lpw> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:cb573c77cf7e941eaef1be5fa5bf20d0 ;\n\tprov:wasAttributedTo _:f2dc9604be887262a3e2a8e56b97144c ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:16f2b6d4bd367d1d818d2af92636bb9b prov:agent _:f2dc9604be887262a3e2a8e56b97144c ;\n\tprov:hadRole cascade:AuthorRole .\n_:cb573c77cf7e941eaef1be5fa5bf20d0 prov:qualifiedAssociation _:16f2b6d4bd367d1d818d2af92636bb9b .\n_:b388df0c912b87d4c6939b02a78b920b prov:agent _:f4c4b57384fb25c4bf86bdf691dbd55a ;\n\tprov:hadRole cascade:TransmitterRole .\n_:cb573c77cf7e941eaef1be5fa5bf20d0 prov:qualifiedAssociation _:b388df0c912b87d4c6939b02a78b920b .\n_:f2dc9604be887262a3e2a8e56b97144c <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:f4c4b57384fb25c4bf86bdf691dbd55a <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:4971adee90ec8e9de89ef456d805519c <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;ydcWP-D5LnGoSPDwPrskSnzKVIFssr4Ix2w-Giz0Lpw> a prov:Entity .\n_:4971adee90ec8e9de89ef456d805519c a prov:Activity ;\n\tprov:used <ni:///sha-256;ydcWP-D5LnGoSPDwPrskSnzKVIFssr4Ix2w-Giz0Lpw> ;\n\tprov:qualifiedAssociation _:eeb690761bd2af3815dc24ddfa14dc81 .\n_:eeb690761bd2af3815dc24ddfa14dc81 prov:hadPlan _:351b91b2f20e79c1108568dac66eb995 .\n_:351b91b2f20e79c1108568dac66eb995 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:eeb690761bd2af3815dc24ddfa14dc81 prov:agent _:5908f2a6040980e1b3cb17e6dbea6aaf .\n_:5908f2a6040980e1b3cb17e6dbea6aaf 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-b12-local-code-only.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/lab-b12-local-code-only.ttl", "text": "", "empty": true}}