{"name": "bundle-codings-without-system", "comment": "A Bundle of a lab result and a MedicationRequest, each with a coding that states a code and no system: the code is not carried, and each is a fhirr4:codingNotCarried finding; the LOINC and RxNorm codings beside them are carried.", "input": {"file": "fixtures/in/bundle-codings-without-system.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/bundle-codings-without-system.json", "text": "{\n  \"resourceType\": \"Bundle\",\n  \"type\": \"collection\",\n  \"entry\": [\n    {\n      \"fullUrl\": \"https://fhir.meridian.example/api/FHIR/R4/Observation/obs-b12-local-2\",\n      \"resource\": {\n        \"resourceType\": \"Observation\",\n        \"id\": \"obs-b12-local-2\",\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\": \"2132-9\",\n              \"display\": \"Cobalamin (Vitamin B12) [Mass/volume] in Serum or Plasma\"\n            },\n            {\n              \"code\": \"B12-SER\"\n            }\n          ],\n          \"text\": \"Vitamin B12, serum\"\n        },\n        \"subject\": {\n          \"reference\": \"Patient/pat-conformance-1\"\n        },\n        \"effectiveDateTime\": \"2026-04-14\",\n        \"valueQuantity\": {\n          \"value\": 182,\n          \"unit\": \"pg/mL\",\n          \"system\": \"http://unitsofmeasure.org\",\n          \"code\": \"pg/mL\"\n        }\n      }\n    },\n    {\n      \"fullUrl\": \"https://fhir.meridian.example/api/FHIR/R4/MedicationRequest/medrx-atorvastatin-7\",\n      \"resource\": {\n        \"resourceType\": \"MedicationRequest\",\n        \"id\": \"medrx-atorvastatin-7\",\n        \"status\": \"active\",\n        \"intent\": \"order\",\n        \"medicationCodeableConcept\": {\n          \"coding\": [\n            {\n              \"system\": \"http://www.nlm.nih.gov/research/umls/rxnorm\",\n              \"code\": \"617312\",\n              \"display\": \"atorvastatin calcium 10 MG Oral Tablet\"\n            },\n            {\n              \"code\": \"F-ATOR-10\"\n            }\n          ],\n          \"text\": \"Atorvastatin 10 mg tablet\"\n        },\n        \"subject\": {\n          \"reference\": \"Patient/pat-conformance-1\"\n        },\n        \"authoredOn\": \"2026-03-02\"\n      }\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/bundle-codings-without-system.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/bundle-codings-without-system.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;Zl4uzQ0qYdQ83eaomIL3qr15kGWwo9UFh56-YMuMxWA> cascade:testCode <http://loinc.org/rdf/2132-9> ;\n\tcascade:resultQuantity <ni:///sha-256;Zl4uzQ0qYdQ83eaomIL3qr15kGWwo9UFh56-YMuMxWA#value> .\n<ni:///sha-256;Zl4uzQ0qYdQ83eaomIL3qr15kGWwo9UFh56-YMuMxWA#value> cascade:decimalValue \"182\"^^xsd:decimal ;\n\tcascade:writtenValue \"182\" ;\n\tcascade:ucumUnit \"pg/mL\" ;\n\tcascade:unitText \"pg/mL\" .\n<ni:///sha-256;Zl4uzQ0qYdQ83eaomIL3qr15kGWwo9UFh56-YMuMxWA> cascade:testName \"Vitamin B12, serum\" ;\n\tcascade:resultValueKind cascade:QuantityResultValue ;\n\tcascade:resultClinicallyRelevantTime \"2026-04-14\"^^xsd:date ;\n\tcascade:workflowStatus \"final\" .\n<urn:uuid:cf778988-793f-8d78-8b6f-7c407da31c21> a cascade:LaboratoryTestResult ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Observation/obs-b12-local-2> ;\n\tcascade:sourceRecordId \"obs-b12-local-2\" .\n<ni:///sha-256;Zl4uzQ0qYdQ83eaomIL3qr15kGWwo9UFh56-YMuMxWA> prov:specializationOf <urn:uuid:cf778988-793f-8d78-8b6f-7c407da31c21> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:5193c9eac6e3281efa92783673f26646 bridge:arrivedAs <ni:///sha-256;Zl4uzQ0qYdQ83eaomIL3qr15kGWwo9UFh56-YMuMxWA> ;\n\toa:hasSelector _:95dc82103dbf4a6300e77b1f349cfdaf ;\n\toa:hasSource <ni:///sha-256;vKSd-KaRJmevvLuJteL9EhYbByhVjaYsaEe8Sqzk9N8> ;\n\tprov:wasDerivedFrom <ni:///sha-256;vKSd-KaRJmevvLuJteL9EhYbByhVjaYsaEe8Sqzk9N8> ;\n\tprov:wasGeneratedBy _:249e08423c0ab656f335fd4a40cadaa0 .\n_:95dc82103dbf4a6300e77b1f349cfdaf a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/0\" .\n<ni:///sha-256;mdMER4dZ0vA2vhwjiLqRzHiziNl-xcGvENqi50jiYeA> cascade:prescribedOrReported \"prescribed\" ;\n\tcascade:drugName \"Atorvastatin 10 mg tablet\" ;\n\tcascade:rxNormCode <https://ns.cascadeprotocol.org/codes/rxnorm/617312> ;\n\tcascade:workflowStatus \"active\" ;\n\tcascade:medicationRequestIntent \"order\" ;\n\tcascade:prescriptionWrittenDate \"2026-03-02\"^^xsd:date .\n<urn:uuid:f397d357-0e15-8870-a419-326bb4f7e08c> a cascade:PrescribedOrReportedMedication ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/MedicationRequest/medrx-atorvastatin-7> ;\n\tcascade:sourceRecordId \"medrx-atorvastatin-7\" .\n<ni:///sha-256;mdMER4dZ0vA2vhwjiLqRzHiziNl-xcGvENqi50jiYeA> prov:specializationOf <urn:uuid:f397d357-0e15-8870-a419-326bb4f7e08c> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:6c96ce2b1383b9ed49e29fb9e03c60f0 bridge:arrivedAs <ni:///sha-256;mdMER4dZ0vA2vhwjiLqRzHiziNl-xcGvENqi50jiYeA> ;\n\toa:hasSelector _:63f22e32dc51db5ffc46cd01ffb0f40c ;\n\toa:hasSource <ni:///sha-256;vKSd-KaRJmevvLuJteL9EhYbByhVjaYsaEe8Sqzk9N8> ;\n\tprov:wasDerivedFrom <ni:///sha-256;vKSd-KaRJmevvLuJteL9EhYbByhVjaYsaEe8Sqzk9N8> ;\n\tprov:wasGeneratedBy _:249e08423c0ab656f335fd4a40cadaa0 .\n_:63f22e32dc51db5ffc46cd01ffb0f40c a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n<ni:///sha-256;vKSd-KaRJmevvLuJteL9EhYbByhVjaYsaEe8Sqzk9N8> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:9d20124914c6a1dfe5a8314eb2bddde5 ;\n\tprov:wasAttributedTo _:6bd43d85acf3145fa53ffab56c146dd ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:cca3d4e80cd996e054d8e8dc3083652a prov:agent _:6bd43d85acf3145fa53ffab56c146dd ;\n\tprov:hadRole cascade:AuthorRole .\n_:9d20124914c6a1dfe5a8314eb2bddde5 prov:qualifiedAssociation _:cca3d4e80cd996e054d8e8dc3083652a .\n_:b296680d4386abaf510f3ef4076fecb9 prov:agent _:57421da0496b501ba9617d14180d36e2 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:9d20124914c6a1dfe5a8314eb2bddde5 prov:qualifiedAssociation _:b296680d4386abaf510f3ef4076fecb9 .\n_:6bd43d85acf3145fa53ffab56c146dd <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:57421da0496b501ba9617d14180d36e2 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:249e08423c0ab656f335fd4a40cadaa0 <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;vKSd-KaRJmevvLuJteL9EhYbByhVjaYsaEe8Sqzk9N8> a prov:Entity .\n_:249e08423c0ab656f335fd4a40cadaa0 a prov:Activity ;\n\tprov:used <ni:///sha-256;vKSd-KaRJmevvLuJteL9EhYbByhVjaYsaEe8Sqzk9N8> ;\n\tprov:qualifiedAssociation _:6ff7f9ad17e5daa348ad5f69cb0fcbe3 .\n_:6ff7f9ad17e5daa348ad5f69cb0fcbe3 prov:hadPlan _:df79ca06934279a1da7dd696c7f830a4 .\n_:df79ca06934279a1da7dd696c7f830a4 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:6ff7f9ad17e5daa348ad5f69cb0fcbe3 prov:agent _:a6855733d3844990fa7f85cbf097d350 .\n_:a6855733d3844990fa7f85cbf097d350 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/bundle-codings-without-system.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/bundle-codings-without-system.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_:b0324bbf040cab2c893a972f66666df9 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/0\" .\n_:a20c1080055f09733fadc310dabdd989 oa:hasSource <../in/bundle-codings-without-system.json> .\n_:b0324bbf040cab2c893a972f66666df9 oa:refinedBy _:b37213d292aa638e16dd558f9066b888 .\n_:b37213d292aa638e16dd558f9066b888 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/code/coding/1/code\" .\n_:a20c1080055f09733fadc310dabdd989 oa:hasSelector _:b0324bbf040cab2c893a972f66666df9 .\n_:d0e6931a506774bd0bb4ec38cc78ad3e oa:hasTarget _:a20c1080055f09733fadc310dabdd989 ;\n\tsh:resultSeverity sh:Info ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:codingNotCarried ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"B12-SER\" .\n_:b1d0a13dd14645b047950b71665fca55 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n_:f325433fce723dc87b7d736fb5ca9681 oa:hasSource <../in/bundle-codings-without-system.json> .\n_:b1d0a13dd14645b047950b71665fca55 oa:refinedBy _:ae91a6863196b8999b28a59fa8d6dd7e .\n_:ae91a6863196b8999b28a59fa8d6dd7e a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/medicationCodeableConcept/coding/1/code\" .\n_:f325433fce723dc87b7d736fb5ca9681 oa:hasSelector _:b1d0a13dd14645b047950b71665fca55 .\n_:c33f25c20cf7e121fc431404131c63a8 oa:hasTarget _:f325433fce723dc87b7d736fb5ca9681 ;\n\tsh:resultSeverity sh:Info ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:codingNotCarried ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"F-ATOR-10\" .\n", "empty": false}}