{"name": "lab-leukocytes-exponent-and-ranges", "comment": "A laboratory Observation whose number is written with an exponent: its decimal value is the number written out and its written value is as sent; of the reference range marked normal neither bound is typed, since its low bound carries a comparator, which is a finding, and half a range would read as one-sided; as is the first range's unit outside UCUM and each value of the second range.", "input": {"file": "fixtures/in/lab-leukocytes-exponent-and-ranges.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/lab-leukocytes-exponent-and-ranges.json", "text": "{\n  \"resourceType\": \"Observation\",\n  \"id\": \"obs-wbc-exponent-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\": \"6690-2\",\n        \"display\": \"Leukocytes [#/volume] in Blood by Automated count\"\n      }\n    ],\n    \"text\": \"WBC\"\n  },\n  \"subject\": {\n    \"reference\": \"Patient/pat-conformance-1\"\n  },\n  \"effectiveDateTime\": \"2026-08-03T09:30:00Z\",\n  \"valueQuantity\": {\n    \"value\": 6.20E3,\n    \"unit\": \"cells/uL\",\n    \"system\": \"http://unitsofmeasure.org\",\n    \"code\": \"/uL\"\n  },\n  \"referenceRange\": [\n    {\n      \"low\": {\n        \"value\": 3000,\n        \"unit\": \"cells/uL\",\n        \"system\": \"http://unitsofmeasure.org\",\n        \"code\": \"/uL\"\n      },\n      \"high\": {\n        \"value\": 12000,\n        \"unit\": \"cells/mcL\",\n        \"system\": \"http://lab.meridian.example/units\",\n        \"code\": \"cells/mcL\"\n      },\n      \"type\": {\n        \"coding\": [\n          {\n            \"system\": \"http://terminology.hl7.org/CodeSystem/referencerange-meaning\",\n            \"code\": \"treatment\"\n          }\n        ]\n      }\n    },\n    {\n      \"low\": {\n        \"value\": 4.0e3,\n        \"comparator\": \">=\",\n        \"unit\": \"cells/uL\",\n        \"system\": \"http://unitsofmeasure.org\",\n        \"code\": \"/uL\"\n      },\n      \"high\": {\n        \"value\": 1.10e4,\n        \"unit\": \"cells/uL\",\n        \"system\": \"http://unitsofmeasure.org\",\n        \"code\": \"/uL\"\n      },\n      \"type\": {\n        \"coding\": [\n          {\n            \"system\": \"http://terminology.hl7.org/CodeSystem/referencerange-meaning\",\n            \"code\": \"normal\"\n          }\n        ]\n      },\n      \"text\": \"4.0-11.0 x10^3/uL\"\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/lab-leukocytes-exponent-and-ranges.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/lab-leukocytes-exponent-and-ranges.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;6ri5AIe82hjKWCLdWczCMhlnm4-0sRmchf1kbCijaOM> cascade:testCode <http://loinc.org/rdf/6690-2> ;\n\tcascade:resultQuantity <ni:///sha-256;6ri5AIe82hjKWCLdWczCMhlnm4-0sRmchf1kbCijaOM#value> .\n<ni:///sha-256;6ri5AIe82hjKWCLdWczCMhlnm4-0sRmchf1kbCijaOM#value> cascade:decimalValue \"6200\"^^xsd:decimal ;\n\tcascade:writtenValue \"6.20E3\" ;\n\tcascade:ucumUnit \"/uL\" ;\n\tcascade:unitText \"cells/uL\" .\n<ni:///sha-256;6ri5AIe82hjKWCLdWczCMhlnm4-0sRmchf1kbCijaOM> cascade:testName \"WBC\" ;\n\tcascade:resultValueKind cascade:QuantityResultValue ;\n\tcascade:referenceRangeText \"3000-12000 cells/uL\" ;\n\tcascade:resultClinicallyRelevantTime \"2026-08-03T09:30:00Z\"^^xsd:dateTime ;\n\tcascade:workflowStatus \"final\" .\n<urn:uuid:61db7ec2-b859-85d5-a83e-34d2b19a3248> a cascade:LaboratoryTestResult ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Observation/obs-wbc-exponent-1> ;\n\tcascade:sourceRecordId \"obs-wbc-exponent-1\" .\n<ni:///sha-256;6ri5AIe82hjKWCLdWczCMhlnm4-0sRmchf1kbCijaOM> prov:specializationOf <urn:uuid:61db7ec2-b859-85d5-a83e-34d2b19a3248> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:6095e2ec844052f4a4e56c6c54c0484f bridge:arrivedAs <ni:///sha-256;6ri5AIe82hjKWCLdWczCMhlnm4-0sRmchf1kbCijaOM> ;\n\toa:hasSelector _:48d9d6da6126fcf6ec23aa9f4b0ca4c3 ;\n\toa:hasSource <ni:///sha-256;fNC6n9nGNGF1wKVLLlHZ88KUC2wVKMzwpDk7KeUweB4> ;\n\tprov:wasDerivedFrom <ni:///sha-256;fNC6n9nGNGF1wKVLLlHZ88KUC2wVKMzwpDk7KeUweB4> ;\n\tprov:wasGeneratedBy _:7f7befb07a5351cd13a79faa1e30cf90 .\n_:48d9d6da6126fcf6ec23aa9f4b0ca4c3 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;fNC6n9nGNGF1wKVLLlHZ88KUC2wVKMzwpDk7KeUweB4> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:5f7efeecc2277aac8d7735902f583719 ;\n\tprov:wasAttributedTo _:ec936bada2bebd25228b991031abfacb ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:4cfe90f1eb38e8d2d54ebc4b4e51c007 prov:agent _:ec936bada2bebd25228b991031abfacb ;\n\tprov:hadRole cascade:AuthorRole .\n_:5f7efeecc2277aac8d7735902f583719 prov:qualifiedAssociation _:4cfe90f1eb38e8d2d54ebc4b4e51c007 .\n_:7bf64985c0c84136834028596abc2b16 prov:agent _:73c9512879d12bc0322bc0b2922e6fbf ;\n\tprov:hadRole cascade:TransmitterRole .\n_:5f7efeecc2277aac8d7735902f583719 prov:qualifiedAssociation _:7bf64985c0c84136834028596abc2b16 .\n_:ec936bada2bebd25228b991031abfacb <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:73c9512879d12bc0322bc0b2922e6fbf <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:7f7befb07a5351cd13a79faa1e30cf90 <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;fNC6n9nGNGF1wKVLLlHZ88KUC2wVKMzwpDk7KeUweB4> a prov:Entity .\n_:7f7befb07a5351cd13a79faa1e30cf90 a prov:Activity ;\n\tprov:used <ni:///sha-256;fNC6n9nGNGF1wKVLLlHZ88KUC2wVKMzwpDk7KeUweB4> ;\n\tprov:qualifiedAssociation _:81655010c5b51d3755d92c422d18812f .\n_:81655010c5b51d3755d92c422d18812f prov:hadPlan _:672f6eba246d66c06b693c359250804 .\n_:672f6eba246d66c06b693c359250804 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:81655010c5b51d3755d92c422d18812f prov:agent _:318fe87526c866ee79e0cb96d24ff292 .\n_:318fe87526c866ee79e0cb96d24ff292 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-leukocytes-exponent-and-ranges.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/lab-leukocytes-exponent-and-ranges.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_:c88975817e0a1adff1227e36bea64f3d a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:af3c008564936fcbffe455071b69f798 oa:hasSource <../in/lab-leukocytes-exponent-and-ranges.json> .\n_:c88975817e0a1adff1227e36bea64f3d oa:refinedBy _:dcfc4babaaa3c149abfee7b9c94e0048 .\n_:dcfc4babaaa3c149abfee7b9c94e0048 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/referenceRange/1/text\" .\n_:af3c008564936fcbffe455071b69f798 oa:hasSelector _:c88975817e0a1adff1227e36bea64f3d .\n_:af2927abf4905fb0e9505498a7b13cf6 oa:hasTarget _:af3c008564936fcbffe455071b69f798 .\n_:f81febeeea0e1852cf49dd3e8164af1a a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:c702b920888edb2a2d264ab63ed1837c oa:hasSource <../in/lab-leukocytes-exponent-and-ranges.json> .\n_:f81febeeea0e1852cf49dd3e8164af1a oa:refinedBy _:d725ee5a7e41a35abb9be7534964f124 .\n_:d725ee5a7e41a35abb9be7534964f124 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/referenceRange/1/high/value\" .\n_:c702b920888edb2a2d264ab63ed1837c oa:hasSelector _:f81febeeea0e1852cf49dd3e8164af1a .\n_:c26e4e8a19d33e6da203e8a9ebf52917 oa:hasTarget _:c702b920888edb2a2d264ab63ed1837c .\n_:b087b36cd76107759949b88715110607 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:a7a2434fd5f3f370ce9333f9b675d81d oa:hasSource <../in/lab-leukocytes-exponent-and-ranges.json> .\n_:b087b36cd76107759949b88715110607 oa:refinedBy _:be7ec9aa7abd92335a59676fb0a3a8a .\n_:be7ec9aa7abd92335a59676fb0a3a8a a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/referenceRange/1/low/value\" .\n_:a7a2434fd5f3f370ce9333f9b675d81d oa:hasSelector _:b087b36cd76107759949b88715110607 .\n_:f974a6f5f101b47c6b1fb31b6fc7f5f8 oa:hasTarget _:a7a2434fd5f3f370ce9333f9b675d81d .\n_:d8f6bfc6b7dfe62845383d4bdbdf71c a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:b51cf850a77f3035abb0bec8bd1218e8 oa:hasSource <../in/lab-leukocytes-exponent-and-ranges.json> .\n_:d8f6bfc6b7dfe62845383d4bdbdf71c oa:refinedBy _:cba67e66ce610cb301642b34a8433f9f .\n_:cba67e66ce610cb301642b34a8433f9f a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/referenceRange/1/low/comparator\" .\n_:b51cf850a77f3035abb0bec8bd1218e8 oa:hasSelector _:d8f6bfc6b7dfe62845383d4bdbdf71c .\n_:b4379e9e8cb13d136abdfac32c2e1d21 oa:hasTarget _:b51cf850a77f3035abb0bec8bd1218e8 .\n_:e3f3cf2f54c41125a918edcfe995fbea a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:d3d183f20b440d3fd80538129288c77c oa:hasSource <../in/lab-leukocytes-exponent-and-ranges.json> .\n_:e3f3cf2f54c41125a918edcfe995fbea oa:refinedBy _:ae0dacc6cb627fcab3b42e9862dc72cc .\n_:ae0dacc6cb627fcab3b42e9862dc72cc a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/referenceRange/0/high/code\" .\n_:d3d183f20b440d3fd80538129288c77c oa:hasSelector _:e3f3cf2f54c41125a918edcfe995fbea .\n_:cbbe0b6de5235b5061b8a9df36ce073e oa:hasTarget _:d3d183f20b440d3fd80538129288c77c .\n_:af2927abf4905fb0e9505498a7b13cf6 sh:resultSeverity sh:Warning .\n_:c26e4e8a19d33e6da203e8a9ebf52917 sh:resultSeverity sh:Warning .\n_:f974a6f5f101b47c6b1fb31b6fc7f5f8 sh:resultSeverity sh:Warning .\n_:b4379e9e8cb13d136abdfac32c2e1d21 sh:resultSeverity sh:Warning .\n_:cbbe0b6de5235b5061b8a9df36ce073e sh:resultSeverity sh:Info .\n_:af2927abf4905fb0e9505498a7b13cf6 a oa:Annotation ;\n\toa:hasBody fhirr4:labResultRangeRepeated ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"4.0-11.0 x10^3/uL\" .\n_:c26e4e8a19d33e6da203e8a9ebf52917 a oa:Annotation ;\n\toa:hasBody fhirr4:labResultRangeRepeated ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"1.10e4\" .\n_:f974a6f5f101b47c6b1fb31b6fc7f5f8 a oa:Annotation ;\n\toa:hasBody fhirr4:labResultRangeRepeated ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"4.0e3\" .\n_:b4379e9e8cb13d136abdfac32c2e1d21 a oa:Annotation ;\n\toa:hasBody fhirr4:labResultBoundWithComparator ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \">=\" .\n_:cbbe0b6de5235b5061b8a9df36ce073e a oa:Annotation ;\n\toa:hasBody fhirr4:labResultUnitCodeOutsideUcum ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"cells/mcL\" .\n", "empty": false}}