{"name": "lab-value-absent-for-reason", "comment": "A laboratory Observation with no value and a dataAbsentReason of three codings: the data absent reason error and the NullFlavor OTH are carried, each as its code's IRI, on a node naming cascade:resultValueKind; the laboratory's own code is not, and is a finding.", "input": {"file": "fixtures/in/lab-value-absent-for-reason.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/lab-value-absent-for-reason.json", "text": "{\n  \"resourceType\": \"Observation\",\n  \"id\": \"obs-potassium-absent-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    \"coding\": [\n      {\n        \"system\": \"http://terminology.hl7.org/CodeSystem/data-absent-reason\",\n        \"code\": \"error\",\n        \"display\": \"Error\"\n      },\n      {\n        \"system\": \"http://terminology.hl7.org/CodeSystem/v3-NullFlavor\",\n        \"code\": \"OTH\"\n      },\n      {\n        \"system\": \"http://lab.meridian.example/result-status\",\n        \"code\": \"HEMOLYZED\"\n      }\n    ],\n    \"text\": \"Specimen haemolysed\"\n  }\n}\n"}, "expectedGraph": {"file": "fixtures/expected/lab-value-absent-for-reason.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/lab-value-absent-for-reason.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;cTcaDSAs0EFolcjwjO3RIelB832FLnk6-nk0bXX0BIs> cascade:valueAbsentForReason <ni:///sha-256;cTcaDSAs0EFolcjwjO3RIelB832FLnk6-nk0bXX0BIs#absent-resultValueKind> .\n<ni:///sha-256;cTcaDSAs0EFolcjwjO3RIelB832FLnk6-nk0bXX0BIs#absent-resultValueKind> cascade:absentValueProperty cascade:resultValueKind ;\n\tcascade:absentReasonCode <https://ns.cascadeprotocol.org/codes/nullflavor/OTH> , <https://ns.cascadeprotocol.org/codes/data-absent-reason/error> .\n<ni:///sha-256;cTcaDSAs0EFolcjwjO3RIelB832FLnk6-nk0bXX0BIs> 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:b313a403-6d77-8bff-805d-9854ec6968fa> a cascade:LaboratoryTestResult ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Observation/obs-potassium-absent-1> ;\n\tcascade:sourceRecordId \"obs-potassium-absent-1\" .\n<ni:///sha-256;cTcaDSAs0EFolcjwjO3RIelB832FLnk6-nk0bXX0BIs> prov:specializationOf <urn:uuid:b313a403-6d77-8bff-805d-9854ec6968fa> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:b5716a10742f684d9d224f8c4a11cb12 bridge:arrivedAs <ni:///sha-256;cTcaDSAs0EFolcjwjO3RIelB832FLnk6-nk0bXX0BIs> ;\n\toa:hasSelector _:1e006b0330a55e4c0f1d2b14b25a8daa ;\n\toa:hasSource <ni:///sha-256;LTfCYf1CqWmRIZ5A5M3OqxqQfbWkhkZBpoKhFaxMMAI> ;\n\tprov:wasDerivedFrom <ni:///sha-256;LTfCYf1CqWmRIZ5A5M3OqxqQfbWkhkZBpoKhFaxMMAI> ;\n\tprov:wasGeneratedBy _:d24d20e761ee7840c10a0d4ba0a81d83 .\n_:1e006b0330a55e4c0f1d2b14b25a8daa a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;LTfCYf1CqWmRIZ5A5M3OqxqQfbWkhkZBpoKhFaxMMAI> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:7bf35382bf19b256d3e6baf1a37e9190 ;\n\tprov:wasAttributedTo _:157fef856ec24d355b5c5cb5fdafa0 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:b754f4af584af0245989d6a9423df321 prov:agent _:157fef856ec24d355b5c5cb5fdafa0 ;\n\tprov:hadRole cascade:AuthorRole .\n_:7bf35382bf19b256d3e6baf1a37e9190 prov:qualifiedAssociation _:b754f4af584af0245989d6a9423df321 .\n_:e125d6c45f10a44bf57b0d1331c01582 prov:agent _:7fe04a89996f29cb31e32087d2cfcc51 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:7bf35382bf19b256d3e6baf1a37e9190 prov:qualifiedAssociation _:e125d6c45f10a44bf57b0d1331c01582 .\n_:157fef856ec24d355b5c5cb5fdafa0 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:7fe04a89996f29cb31e32087d2cfcc51 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:d24d20e761ee7840c10a0d4ba0a81d83 <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;LTfCYf1CqWmRIZ5A5M3OqxqQfbWkhkZBpoKhFaxMMAI> a prov:Entity .\n_:d24d20e761ee7840c10a0d4ba0a81d83 a prov:Activity ;\n\tprov:used <ni:///sha-256;LTfCYf1CqWmRIZ5A5M3OqxqQfbWkhkZBpoKhFaxMMAI> ;\n\tprov:qualifiedAssociation _:5e46a7c8086b3c2f73f7e7934992e4aa .\n_:5e46a7c8086b3c2f73f7e7934992e4aa prov:hadPlan _:88396e1244ddd3fd26e14969e8bd4564 .\n_:88396e1244ddd3fd26e14969e8bd4564 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:5e46a7c8086b3c2f73f7e7934992e4aa prov:agent _:4f655fa0fc897ba009f0aba007bfc068 .\n_:4f655fa0fc897ba009f0aba007bfc068 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-for-reason.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/lab-value-absent-for-reason.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_:fadd53206373995ceceb7de69ebb0b47 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:b39f113f1de5629fba759c89c960f32b a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/dataAbsentReason/text\" .\n_:fadd53206373995ceceb7de69ebb0b47 oa:refinedBy _:b39f113f1de5629fba759c89c960f32b .\n_:b6a4b8d8e9cf3cc43749cfe44749602d a oa:Annotation ;\n\toa:hasTarget _:d114ecb0bae0ef75c33ce8d44fd91734 .\n_:d114ecb0bae0ef75c33ce8d44fd91734 oa:hasSource <../in/lab-value-absent-for-reason.json> ;\n\toa:hasSelector _:fadd53206373995ceceb7de69ebb0b47 .\n_:b6a4b8d8e9cf3cc43749cfe44749602d oa:hasBody fhirr4:codedValueText ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/dataAbsentReason/text\" ;\n\tsh:resultSeverity sh:Info .\n_:da92451151d06ff7feef62e6dc7374ef a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:f787393306b71e969e00c50b1dfaf88c oa:hasSource <../in/lab-value-absent-for-reason.json> .\n_:da92451151d06ff7feef62e6dc7374ef oa:refinedBy _:e18c9933ed4c50dc02b97be11ec51148 .\n_:e18c9933ed4c50dc02b97be11ec51148 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/dataAbsentReason/coding/2\" .\n_:f787393306b71e969e00c50b1dfaf88c oa:hasSelector _:da92451151d06ff7feef62e6dc7374ef .\n_:a0a9633c666644c1e5ecc61e0307e58e oa:hasTarget _:f787393306b71e969e00c50b1dfaf88c ;\n\tsh:resultSeverity sh:Info ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:absentReasonNotCarried ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"HEMOLYZED\" .\n", "empty": false}}