{"name": "medication-dispense-codings-not-carried", "comment": "A MedicationDispense whose drug is coded by an RxNorm code, an NDC of ten digits with no hyphens, a code with no system and a code in a formulary system: the RxNorm code and the formulary code are carried, and the NDC and the code with no system are findings, as for a medication.", "input": {"file": "fixtures/in/medication-dispense-codings-not-carried.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/medication-dispense-codings-not-carried.json", "text": "{\n  \"resourceType\": \"MedicationDispense\",\n  \"id\": \"meddisp-codings-1\",\n  \"status\": \"completed\",\n  \"medicationCodeableConcept\": {\n    \"coding\": [\n      {\n        \"system\": \"http://www.nlm.nih.gov/research/umls/rxnorm\",\n        \"code\": \"861007\",\n        \"display\": \"metformin hydrochloride 500 MG Oral Tablet\"\n      },\n      {\n        \"system\": \"http://hl7.org/fhir/sid/ndc\",\n        \"code\": \"0093104801\"\n      },\n      {\n        \"code\": \"FILL-9981\"\n      },\n      {\n        \"system\": \"http://pharmacy.example/formulary\",\n        \"code\": \"MET500\"\n      }\n    ],\n    \"text\": \"Metformin 500 mg tablet\"\n  },\n  \"subject\": {\n    \"reference\": \"Patient/pat-conformance-1\"\n  },\n  \"whenHandedOver\": \"2026-01-12\"\n}\n"}, "expectedGraph": {"file": "fixtures/expected/medication-dispense-codings-not-carried.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/medication-dispense-codings-not-carried.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;qRJQHT4OGq2azu3zzQLqoHPIabubpYUeMsDfthIgdi8> cascade:dispenseHandedOverTime \"2026-01-12\"^^xsd:date ;\n\tcascade:drugName \"Metformin 500 mg tablet\" ;\n\tcascade:medicationCodeInOtherSystem \"MET500\"^^<http://pharmacy.example/formulary> ;\n\tcascade:workflowStatus \"completed\" ;\n\tcascade:rxNormCode <https://ns.cascadeprotocol.org/codes/rxnorm/861007> .\n<urn:uuid:df03eb07-f279-8e29-be20-5177e327c39b> a cascade:MedicationDispense ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/MedicationDispense/meddisp-codings-1> ;\n\tcascade:sourceRecordId \"meddisp-codings-1\" .\n<ni:///sha-256;qRJQHT4OGq2azu3zzQLqoHPIabubpYUeMsDfthIgdi8> prov:specializationOf <urn:uuid:df03eb07-f279-8e29-be20-5177e327c39b> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:6e0d2be7fa9c13e1c6c4a25623eb94bc bridge:arrivedAs <ni:///sha-256;qRJQHT4OGq2azu3zzQLqoHPIabubpYUeMsDfthIgdi8> ;\n\toa:hasSelector _:bc204e605cf8e38a2e654263c7da1b05 ;\n\toa:hasSource <ni:///sha-256;Y58ZuJ6sDeWB9fHPbRbM_2y7VkI0YXfrwmNbBm51-rA> ;\n\tprov:wasDerivedFrom <ni:///sha-256;Y58ZuJ6sDeWB9fHPbRbM_2y7VkI0YXfrwmNbBm51-rA> ;\n\tprov:wasGeneratedBy _:755d0d8552ec83b6c6cf7b1804de4dfa .\n_:bc204e605cf8e38a2e654263c7da1b05 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;Y58ZuJ6sDeWB9fHPbRbM_2y7VkI0YXfrwmNbBm51-rA> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:3fc31c226fb84fb12346d59f40e852f3 ;\n\tprov:wasAttributedTo _:5702616901bfd4ade50fe5037cdddf1e ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:2181159d8a42f2fb976833522fbff399 prov:agent _:5702616901bfd4ade50fe5037cdddf1e ;\n\tprov:hadRole cascade:AuthorRole .\n_:3fc31c226fb84fb12346d59f40e852f3 prov:qualifiedAssociation _:2181159d8a42f2fb976833522fbff399 .\n_:fb16076a149dfebe592dbd065da0e550 prov:agent _:fd4b98596bb96a1f61886d12b2a109dd ;\n\tprov:hadRole cascade:TransmitterRole .\n_:3fc31c226fb84fb12346d59f40e852f3 prov:qualifiedAssociation _:fb16076a149dfebe592dbd065da0e550 .\n_:5702616901bfd4ade50fe5037cdddf1e <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:fd4b98596bb96a1f61886d12b2a109dd <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:755d0d8552ec83b6c6cf7b1804de4dfa <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;Y58ZuJ6sDeWB9fHPbRbM_2y7VkI0YXfrwmNbBm51-rA> a prov:Entity .\n_:755d0d8552ec83b6c6cf7b1804de4dfa a prov:Activity ;\n\tprov:used <ni:///sha-256;Y58ZuJ6sDeWB9fHPbRbM_2y7VkI0YXfrwmNbBm51-rA> ;\n\tprov:qualifiedAssociation _:4b8568df00e7526d63c805a792567243 .\n_:4b8568df00e7526d63c805a792567243 prov:hadPlan _:45d673a3206a35726b8557a5a62d150c .\n_:45d673a3206a35726b8557a5a62d150c a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:4b8568df00e7526d63c805a792567243 prov:agent _:4110444c91120d96975d1b3eefe1552d .\n_:4110444c91120d96975d1b3eefe1552d 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/medication-dispense-codings-not-carried.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/medication-dispense-codings-not-carried.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_:d07cc660bca37c73b1dba9e55cbc77df a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:f52bd1fee934b2d7a426d60bc9a0ceba oa:hasSource <../in/medication-dispense-codings-not-carried.json> .\n_:d07cc660bca37c73b1dba9e55cbc77df oa:refinedBy _:ae55dec650cd9193ceea789445c1f23d .\n_:ae55dec650cd9193ceea789445c1f23d a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/medicationCodeableConcept/coding/2/code\" .\n_:f52bd1fee934b2d7a426d60bc9a0ceba oa:hasSelector _:d07cc660bca37c73b1dba9e55cbc77df .\n_:f0083215fe2e83870c5519d9a3cbdfa0 oa:hasTarget _:f52bd1fee934b2d7a426d60bc9a0ceba .\n_:d6d9743bf632d8de53911b5d74cad301 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:d553ced54a2fef138aa4f1be11e44ff4 oa:hasSource <../in/medication-dispense-codings-not-carried.json> .\n_:d6d9743bf632d8de53911b5d74cad301 oa:refinedBy _:d463400500ee5578b5b3e251e01ef568 .\n_:d463400500ee5578b5b3e251e01ef568 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/medicationCodeableConcept/coding/1/code\" .\n_:d553ced54a2fef138aa4f1be11e44ff4 oa:hasSelector _:d6d9743bf632d8de53911b5d74cad301 .\n_:d9cdd48bf8626804a315e2101e2afcb oa:hasTarget _:d553ced54a2fef138aa4f1be11e44ff4 .\n_:f0083215fe2e83870c5519d9a3cbdfa0 sh:resultSeverity sh:Info .\n_:d9cdd48bf8626804a315e2101e2afcb sh:resultSeverity sh:Info .\n_:f0083215fe2e83870c5519d9a3cbdfa0 a oa:Annotation ;\n\toa:hasBody fhirr4:codingNotCarried ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"FILL-9981\" .\n_:d9cdd48bf8626804a315e2101e2afcb a oa:Annotation ;\n\toa:hasBody fhirr4:ndcNotNormalised ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"0093104801\" .\n", "empty": false}}