{"name": "lab-troponin-below-detection", "comment": "A laboratory Observation below its detection limit: its value keeps its comparator, its one-bounded first range is written as that bound, its note, its N flag and its local code, as a cascade:testCodeInOtherSystem literal, are carried; a second range, an interpretation of text alone and the end of its period are findings.", "input": {"file": "fixtures/in/lab-troponin-below-detection.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/lab-troponin-below-detection.json", "text": "{\n  \"resourceType\": \"Observation\",\n  \"id\": \"obs-troponin-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\": \"89579-7\",\n        \"display\": \"Troponin I.cardiac [Mass/volume] in Serum or Plasma by High sensitivity method\"\n      },\n      {\n        \"system\": \"https://lab.meridian.example/codes\",\n        \"code\": \"HSTNI\",\n        \"display\": \"Troponin I, high sensitivity\"\n      }\n    ],\n    \"text\": \"Troponin I, high sensitivity\"\n  },\n  \"subject\": {\n    \"reference\": \"Patient/pat-conformance-1\"\n  },\n  \"effectivePeriod\": {\n    \"start\": \"2026-05-02T07:40:00-04:00\",\n    \"end\": \"2026-05-02T07:55:00-04:00\"\n  },\n  \"valueQuantity\": {\n    \"value\": 0.01,\n    \"comparator\": \"<\",\n    \"unit\": \"ng/mL\",\n    \"system\": \"http://unitsofmeasure.org\",\n    \"code\": \"ng/mL\"\n  },\n  \"interpretation\": [\n    {\n      \"coding\": [\n        {\n          \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation\",\n          \"code\": \"N\"\n        }\n      ]\n    },\n    {\n      \"text\": \"Below the limit of detection\"\n    }\n  ],\n  \"referenceRange\": [\n    {\n      \"high\": {\n        \"value\": 0.04,\n        \"unit\": \"ng/mL\",\n        \"system\": \"http://unitsofmeasure.org\",\n        \"code\": \"ng/mL\"\n      }\n    },\n    {\n      \"high\": {\n        \"value\": 0.03,\n        \"unit\": \"ng/mL\",\n        \"system\": \"http://unitsofmeasure.org\",\n        \"code\": \"ng/mL\"\n      },\n      \"text\": \"Women: up to 0.03 ng/mL\"\n    }\n  ],\n  \"note\": [\n    {\n      \"text\": \"Drawn two hours after the onset of chest pain; repeat at three hours.\"\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/lab-troponin-below-detection.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/lab-troponin-below-detection.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;W1oJ9b7EZzKnjeEJPu2HXC7hGe8aplf2-3I74XWcDPE> cascade:testCodeInOtherSystem \"HSTNI\"^^<https://lab.meridian.example/codes> ;\n\tcascade:testCode <http://loinc.org/rdf/89579-7> ;\n\tcascade:resultInterpretationCode <https://ns.cascadeprotocol.org/codes/observationinterpretation/N> ;\n\tcascade:resultQuantity <ni:///sha-256;W1oJ9b7EZzKnjeEJPu2HXC7hGe8aplf2-3I74XWcDPE#value> .\n<ni:///sha-256;W1oJ9b7EZzKnjeEJPu2HXC7hGe8aplf2-3I74XWcDPE#value> cascade:decimalValue 0.01 ;\n\tcascade:writtenValue \"0.01\" ;\n\tcascade:quantityComparator \"<\" ;\n\tcascade:ucumUnit \"ng/mL\" ;\n\tcascade:unitText \"ng/mL\" .\n<ni:///sha-256;W1oJ9b7EZzKnjeEJPu2HXC7hGe8aplf2-3I74XWcDPE> cascade:testName \"Troponin I, high sensitivity\" ;\n\tcascade:resultValueKind cascade:QuantityResultValue ;\n\tcascade:referenceRangeText \"<=0.04 ng/mL\" ;\n\tcascade:resultClinicallyRelevantTime \"2026-05-02T07:40:00-04:00\"^^xsd:dateTime ;\n\tcascade:addedNoteText \"Drawn two hours after the onset of chest pain; repeat at three hours.\" ;\n\tcascade:workflowStatus \"final\" .\n<urn:uuid:7496cdcc-036a-860e-b00b-de7e3c0449ff> a cascade:LaboratoryTestResult ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Observation/obs-troponin-1> ;\n\tcascade:sourceRecordId \"obs-troponin-1\" .\n<ni:///sha-256;W1oJ9b7EZzKnjeEJPu2HXC7hGe8aplf2-3I74XWcDPE> prov:specializationOf <urn:uuid:7496cdcc-036a-860e-b00b-de7e3c0449ff> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:3e3cc0df9bc4eb64e7721d392e75f70d bridge:arrivedAs <ni:///sha-256;W1oJ9b7EZzKnjeEJPu2HXC7hGe8aplf2-3I74XWcDPE> ;\n\toa:hasSelector _:392e036263581815fe9f0084e3d19137 ;\n\toa:hasSource <ni:///sha-256;TufVXTORD_tmyRjnFVMGgeVTE_NZq6T0ydG2BJpskxk> ;\n\tprov:wasDerivedFrom <ni:///sha-256;TufVXTORD_tmyRjnFVMGgeVTE_NZq6T0ydG2BJpskxk> ;\n\tprov:wasGeneratedBy _:81e277385fa7f254bb25854d47b29fd6 .\n_:392e036263581815fe9f0084e3d19137 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;TufVXTORD_tmyRjnFVMGgeVTE_NZq6T0ydG2BJpskxk> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:593555c33a5e500c73554be11bdf483 ;\n\tprov:wasAttributedTo _:6673fbe524ea522f02571aca819215fb ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:4de66c140954e596e3369241a4073367 prov:agent _:6673fbe524ea522f02571aca819215fb ;\n\tprov:hadRole cascade:AuthorRole .\n_:593555c33a5e500c73554be11bdf483 prov:qualifiedAssociation _:4de66c140954e596e3369241a4073367 .\n_:5ae36497665a44b5e98f03f71c63cef9 prov:agent _:7c08d57472cd4f9d1b54e1daeab738b ;\n\tprov:hadRole cascade:TransmitterRole .\n_:593555c33a5e500c73554be11bdf483 prov:qualifiedAssociation _:5ae36497665a44b5e98f03f71c63cef9 .\n_:6673fbe524ea522f02571aca819215fb <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:7c08d57472cd4f9d1b54e1daeab738b <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:81e277385fa7f254bb25854d47b29fd6 <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;TufVXTORD_tmyRjnFVMGgeVTE_NZq6T0ydG2BJpskxk> a prov:Entity .\n_:81e277385fa7f254bb25854d47b29fd6 a prov:Activity ;\n\tprov:used <ni:///sha-256;TufVXTORD_tmyRjnFVMGgeVTE_NZq6T0ydG2BJpskxk> ;\n\tprov:qualifiedAssociation _:d949213c2baa1cedc57076416e35e661 .\n_:d949213c2baa1cedc57076416e35e661 prov:hadPlan _:2d6c8055f99b6bd5b2371e4aac2cf54e .\n_:2d6c8055f99b6bd5b2371e4aac2cf54e a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:d949213c2baa1cedc57076416e35e661 prov:agent _:8f15c668a9768f2ac0454acdf6e2951e .\n_:8f15c668a9768f2ac0454acdf6e2951e 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-troponin-below-detection.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/lab-troponin-below-detection.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_:a9e80ae4a6442724d382a757e8fabb67 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:e1aaf49a8dcbc46ace01d631d030c19a a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/interpretation/1/text\" .\n_:a9e80ae4a6442724d382a757e8fabb67 oa:refinedBy _:e1aaf49a8dcbc46ace01d631d030c19a .\n_:e26cd4c91146cfee9ac55a9d8d87a38b a oa:Annotation ;\n\toa:hasTarget _:cf769d0ebd29026ef30f35c30a8bd0b1 .\n_:cf769d0ebd29026ef30f35c30a8bd0b1 oa:hasSource <../in/lab-troponin-below-detection.json> ;\n\toa:hasSelector _:a9e80ae4a6442724d382a757e8fabb67 .\n_:e26cd4c91146cfee9ac55a9d8d87a38b oa:hasBody fhirr4:codedValueText ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/interpretation/text\" ;\n\tsh:resultSeverity sh:Info .\n_:ff6245fe779ac4b27574a79dd90724ff a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:fd9ffb724d7eb3e4c16b5f3bdd1eb731 oa:hasSource <../in/lab-troponin-below-detection.json> .\n_:ff6245fe779ac4b27574a79dd90724ff oa:refinedBy _:aba867e34a49c8ec476bed316aa76be .\n_:aba867e34a49c8ec476bed316aa76be a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/effectivePeriod/end\" .\n_:fd9ffb724d7eb3e4c16b5f3bdd1eb731 oa:hasSelector _:ff6245fe779ac4b27574a79dd90724ff .\n_:e5cb8244ec0796dbb5fef1edda2f5ed8 oa:hasTarget _:fd9ffb724d7eb3e4c16b5f3bdd1eb731 .\n_:fee47228c2897a6e216f476256b92f70 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:e1b4e8acf2dfa3e6fd8030e591ec8c oa:hasSource <../in/lab-troponin-below-detection.json> .\n_:fee47228c2897a6e216f476256b92f70 oa:refinedBy _:a187336eb99c8997e705271960df4f58 .\n_:a187336eb99c8997e705271960df4f58 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_:e1b4e8acf2dfa3e6fd8030e591ec8c oa:hasSelector _:fee47228c2897a6e216f476256b92f70 .\n_:fcbfb6ee843114c30f3340da3bfb4938 oa:hasTarget _:e1b4e8acf2dfa3e6fd8030e591ec8c .\n_:f1d9449129dfa6d4757d2783994db99 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:bf702612024707e1ab0a9011704a0a40 oa:hasSource <../in/lab-troponin-below-detection.json> .\n_:f1d9449129dfa6d4757d2783994db99 oa:refinedBy _:af66b1c7849402cbc64cdadcc3671afe .\n_:af66b1c7849402cbc64cdadcc3671afe 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_:bf702612024707e1ab0a9011704a0a40 oa:hasSelector _:f1d9449129dfa6d4757d2783994db99 .\n_:e394437aaad2a0766346ad5b18d435f2 oa:hasTarget _:bf702612024707e1ab0a9011704a0a40 .\n_:e5cb8244ec0796dbb5fef1edda2f5ed8 sh:resultSeverity sh:Info .\n_:fcbfb6ee843114c30f3340da3bfb4938 sh:resultSeverity sh:Warning .\n_:e394437aaad2a0766346ad5b18d435f2 sh:resultSeverity sh:Warning .\n_:e5cb8244ec0796dbb5fef1edda2f5ed8 a oa:Annotation ;\n\toa:hasBody fhirr4:labResultPeriodEnd ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"2026-05-02T07:55:00-04:00\" .\n_:fcbfb6ee843114c30f3340da3bfb4938 a oa:Annotation ;\n\toa:hasBody fhirr4:labResultRangeRepeated ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"Women: up to 0.03 ng/mL\" .\n_:e394437aaad2a0766346ad5b18d435f2 a oa:Annotation ;\n\toa:hasBody fhirr4:labResultRangeRepeated ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"0.03\" .\n", "empty": false}}