{"name": "lab-potassium-identifiers", "comment": "A lab result's identifiers: each with a value is a business identifier of its version, typed by its system where it states one and a plain string where it states none, a urn:uuid: value in lower case; the one with no value is not written.", "input": {"file": "fixtures/in/lab-potassium-identifiers.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/lab-potassium-identifiers.json", "text": "{\n  \"resourceType\": \"Observation\",\n  \"id\": \"obs-potassium-identifiers-1\",\n  \"identifier\": [\n    {\n      \"use\": \"official\",\n      \"system\": \"urn:oid:2.16.840.1.113883.19.5.99999.2\",\n      \"value\": \"K-20260804-1\"\n    },\n    {\n      \"system\": \"https://lab.example.org/observations\",\n      \"value\": \"ACC-88213\"\n    },\n    {\n      \"value\": \"LOCAL-4471\"\n    },\n    {\n      \"system\": \"urn:ietf:rfc:3986\",\n      \"value\": \"urn:uuid:0F8FAD5B-D9CB-469F-A165-70867728950E\"\n    },\n    {\n      \"system\": \"urn:oid:2.16.840.1.113883.19.5.99999.3\"\n    }\n  ],\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  \"valueQuantity\": {\n    \"value\": 4.1,\n    \"unit\": \"mmol/L\",\n    \"system\": \"http://unitsofmeasure.org\",\n    \"code\": \"mmol/L\"\n  }\n}\n"}, "expectedGraph": {"file": "fixtures/expected/lab-potassium-identifiers.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/lab-potassium-identifiers.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;dp_Tqvk0GW0ukEILHE8mvguRxvPrKb1_03eZ7skrKc0> cascade:testCode <http://loinc.org/rdf/2823-3> ;\n\tdct:identifier \"urn:uuid:0f8fad5b-d9cb-469f-a165-70867728950e\"^^<urn:ietf:rfc:3986> , \"LOCAL-4471\" , \"ACC-88213\"^^<https://lab.example.org/observations> , \"K-20260804-1\"^^<urn:oid:2.16.840.1.113883.19.5.99999.2> ;\n\tcascade:resultQuantity <ni:///sha-256;dp_Tqvk0GW0ukEILHE8mvguRxvPrKb1_03eZ7skrKc0#value> .\n<ni:///sha-256;dp_Tqvk0GW0ukEILHE8mvguRxvPrKb1_03eZ7skrKc0#value> cascade:decimalValue 4.1 ;\n\tcascade:writtenValue \"4.1\" ;\n\tcascade:ucumUnit \"mmol/L\" ;\n\tcascade:unitText \"mmol/L\" .\n<ni:///sha-256;dp_Tqvk0GW0ukEILHE8mvguRxvPrKb1_03eZ7skrKc0> cascade:testName \"Potassium\" ;\n\tcascade:resultValueKind cascade:QuantityResultValue ;\n\tcascade:resultClinicallyRelevantTime \"2026-08-04T08:15:00Z\"^^xsd:dateTime ;\n\tcascade:workflowStatus \"final\" .\n<urn:uuid:2c1c6a46-c8e6-8490-8299-1f0d411f8b57> a cascade:LaboratoryTestResult ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Observation/obs-potassium-identifiers-1> ;\n\tcascade:sourceRecordId \"obs-potassium-identifiers-1\" .\n<ni:///sha-256;dp_Tqvk0GW0ukEILHE8mvguRxvPrKb1_03eZ7skrKc0> prov:specializationOf <urn:uuid:2c1c6a46-c8e6-8490-8299-1f0d411f8b57> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:4a5bf8959aa8bc5e22fbedb539da10b4 bridge:arrivedAs <ni:///sha-256;dp_Tqvk0GW0ukEILHE8mvguRxvPrKb1_03eZ7skrKc0> ;\n\toa:hasSelector _:634ed2ee970406066e58bacac205fa68 ;\n\toa:hasSource <ni:///sha-256;PukJ9QWmfz-rR5CKFuQ0QBozxsv9L8PepU8rbgcAjvA> ;\n\tprov:wasDerivedFrom <ni:///sha-256;PukJ9QWmfz-rR5CKFuQ0QBozxsv9L8PepU8rbgcAjvA> ;\n\tprov:wasGeneratedBy _:194778708c7eb4e4f8805446e528699e .\n_:634ed2ee970406066e58bacac205fa68 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;PukJ9QWmfz-rR5CKFuQ0QBozxsv9L8PepU8rbgcAjvA> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:986ca192b11f9ea9dd5c53a9a4e3f4da ;\n\tprov:wasAttributedTo _:6c8263bbc53072ad3c1797dd1021dcda ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:6767ca849875958ab9a02bf00cb77b82 prov:agent _:6c8263bbc53072ad3c1797dd1021dcda ;\n\tprov:hadRole cascade:AuthorRole .\n_:986ca192b11f9ea9dd5c53a9a4e3f4da prov:qualifiedAssociation _:6767ca849875958ab9a02bf00cb77b82 .\n_:a75191b38ea064e0298003f4af6e0e36 prov:agent _:83799aa7c75d35b207410ea3428b5417 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:986ca192b11f9ea9dd5c53a9a4e3f4da prov:qualifiedAssociation _:a75191b38ea064e0298003f4af6e0e36 .\n_:6c8263bbc53072ad3c1797dd1021dcda <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:83799aa7c75d35b207410ea3428b5417 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:194778708c7eb4e4f8805446e528699e <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;PukJ9QWmfz-rR5CKFuQ0QBozxsv9L8PepU8rbgcAjvA> a prov:Entity .\n_:194778708c7eb4e4f8805446e528699e a prov:Activity ;\n\tprov:used <ni:///sha-256;PukJ9QWmfz-rR5CKFuQ0QBozxsv9L8PepU8rbgcAjvA> ;\n\tprov:qualifiedAssociation _:a0a0aebf9674056116a9d2f8313ef936 .\n_:a0a0aebf9674056116a9d2f8313ef936 prov:hadPlan _:f8f110ccc9a7328dfc42edf5928157fc .\n_:f8f110ccc9a7328dfc42edf5928157fc a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:a0a0aebf9674056116a9d2f8313ef936 prov:agent _:b55aa888004c0d1490be1a031b9348d7 .\n_:b55aa888004c0d1490be1a031b9348d7 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-potassium-identifiers.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/lab-potassium-identifiers.ttl", "text": "", "empty": true}}