{"name": "lab-value-absent-reason-text-only", "comment": "A laboratory Observation with no value and a dataAbsentReason of text alone: no reason is carried, and the text is a finding.", "input": {"file": "fixtures/in/lab-value-absent-reason-text-only.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/lab-value-absent-reason-text-only.json", "text": "{\n  \"resourceType\": \"Observation\",\n  \"id\": \"obs-potassium-absent-text-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\": \"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-conformance-1\"\n  },\n  \"effectiveDateTime\": \"2026-08-04T08:15:00Z\",\n  \"dataAbsentReason\": {\n    \"text\": \"Specimen haemolysed\"\n  }\n}\n"}, "expectedGraph": {"file": "fixtures/expected/lab-value-absent-reason-text-only.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/lab-value-absent-reason-text-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;sQiPKnDWyCrSR-P2NXtL9FzssVlq40gIwPtdtKsbkuM> cascade:testCode <http://loinc.org/rdf/2823-3> ;\n\tcascade:testName \"Potassium\" ;\n\tcascade:resultClinicallyRelevantTime \"2026-08-04T08:15:00Z\"^^xsd:dateTime ;\n\tcascade:workflowStatus \"final\" .\n<urn:uuid:7ac1c8d5-9bd3-816b-bf43-f334e8b07d8e> a cascade:LaboratoryTestResult ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Observation/obs-potassium-absent-text-1> ;\n\tcascade:sourceRecordId \"obs-potassium-absent-text-1\" .\n<ni:///sha-256;sQiPKnDWyCrSR-P2NXtL9FzssVlq40gIwPtdtKsbkuM> prov:specializationOf <urn:uuid:7ac1c8d5-9bd3-816b-bf43-f334e8b07d8e> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:f260989ad398a8d0b85faf5b3d0cd3c6 bridge:arrivedAs <ni:///sha-256;sQiPKnDWyCrSR-P2NXtL9FzssVlq40gIwPtdtKsbkuM> ;\n\toa:hasSelector _:b5663a17c546234d84664fff2df1185e ;\n\toa:hasSource <ni:///sha-256;dcGB5efytDOiS2bAKgMFo46S1K4yfcnikJ7kUTxlkAQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;dcGB5efytDOiS2bAKgMFo46S1K4yfcnikJ7kUTxlkAQ> ;\n\tprov:wasGeneratedBy _:6b67a44bb0224802acac7e3051977413 .\n_:b5663a17c546234d84664fff2df1185e a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;dcGB5efytDOiS2bAKgMFo46S1K4yfcnikJ7kUTxlkAQ> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:d5de19efd1c33273acb118a7cdafa146 ;\n\tprov:wasAttributedTo _:da61a20c356e1d999631a52cca35e3b1 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:358b84342d9c5c023b16e0049b8e3d63 prov:agent _:da61a20c356e1d999631a52cca35e3b1 ;\n\tprov:hadRole cascade:AuthorRole .\n_:d5de19efd1c33273acb118a7cdafa146 prov:qualifiedAssociation _:358b84342d9c5c023b16e0049b8e3d63 .\n_:96cb2399e180820c54b9701176210ebd prov:agent _:eaafc28df3053b79f32f4bce3427485c ;\n\tprov:hadRole cascade:TransmitterRole .\n_:d5de19efd1c33273acb118a7cdafa146 prov:qualifiedAssociation _:96cb2399e180820c54b9701176210ebd .\n_:da61a20c356e1d999631a52cca35e3b1 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:eaafc28df3053b79f32f4bce3427485c <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:6b67a44bb0224802acac7e3051977413 <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;dcGB5efytDOiS2bAKgMFo46S1K4yfcnikJ7kUTxlkAQ> a prov:Entity .\n_:6b67a44bb0224802acac7e3051977413 a prov:Activity ;\n\tprov:used <ni:///sha-256;dcGB5efytDOiS2bAKgMFo46S1K4yfcnikJ7kUTxlkAQ> ;\n\tprov:qualifiedAssociation _:7329334f5d6f036ef7cdb53e61ec4386 .\n_:7329334f5d6f036ef7cdb53e61ec4386 prov:hadPlan _:2be7d9424e5eee4e8a0a0ee39d2ebbf7 .\n_:2be7d9424e5eee4e8a0a0ee39d2ebbf7 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:7329334f5d6f036ef7cdb53e61ec4386 prov:agent _:87ca2d9fc5a74fdad9a7a62051ccd684 .\n_:87ca2d9fc5a74fdad9a7a62051ccd684 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-value-absent-reason-text-only.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/lab-value-absent-reason-text-only.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_:bb194a073227fd735e94b9429f32821a a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:ce785de51ae22cbfc4659fdf7fcc2273 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/dataAbsentReason/text\" .\n_:bb194a073227fd735e94b9429f32821a oa:refinedBy _:ce785de51ae22cbfc4659fdf7fcc2273 .\n_:c16908992bdfef6c5aa98a30b247975e a oa:Annotation ;\n\toa:hasTarget _:c67989f3efcca95a111293d26a6684e9 .\n_:c67989f3efcca95a111293d26a6684e9 oa:hasSource <../in/lab-value-absent-reason-text-only.json> ;\n\toa:hasSelector _:bb194a073227fd735e94b9429f32821a .\n_:c16908992bdfef6c5aa98a30b247975e oa:hasBody fhirr4:codedValueText ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/dataAbsentReason/text\" ;\n\tsh:resultSeverity sh:Info .\n", "empty": false}}