{"name": "medication-dispense-completed", "comment": "A completed MedicationDispense with every element medication-dispense.rq and medication.rq read: the drug by its RxNorm and NDC codes and text, the status as written, when it was prepared and handed over, the quantity dispensed in a UCUM unit, the days it lasts and the prescription it fills, named by the MedicationRequest of its own server; a dispense is a record of its own kind, with neither whether it was prescribed or reported nor an intent.", "input": {"file": "fixtures/in/medication-dispense-completed.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/medication-dispense-completed.json", "text": "{\n  \"resourceType\": \"MedicationDispense\",\n  \"id\": \"meddisp-metformin-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\": \"0093-1048-01\"\n      }\n    ],\n    \"text\": \"Metformin 500 mg tablet\"\n  },\n  \"subject\": {\n    \"reference\": \"Patient/pat-conformance-1\"\n  },\n  \"authorizingPrescription\": [\n    {\n      \"reference\": \"MedicationRequest/medrx-metformin-1\"\n    }\n  ],\n  \"quantity\": {\n    \"value\": 60,\n    \"unit\": \"tablet\",\n    \"system\": \"http://unitsofmeasure.org\",\n    \"code\": \"{tbl}\"\n  },\n  \"daysSupply\": {\n    \"value\": 30,\n    \"unit\": \"days\",\n    \"system\": \"http://unitsofmeasure.org\",\n    \"code\": \"d\"\n  },\n  \"whenPrepared\": \"2026-01-11T16:00:00Z\",\n  \"whenHandedOver\": \"2026-01-12T09:30:00-05:00\"\n}\n"}, "expectedGraph": {"file": "fixtures/expected/medication-dispense-completed.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/medication-dispense-completed.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;I3TxVH3IZ4obe-GsMxvcLYjynm4XqqtvqTpcd_WIFDU> cascade:authorizingPrescription <urn:uuid:d962c772-816b-8d2f-8fe8-62db56784911> ;\n\tcascade:dispenseHandedOverTime \"2026-01-12T09:30:00-05:00\"^^xsd:dateTime ;\n\tcascade:dispensePreparedTime \"2026-01-11T16:00:00Z\"^^xsd:dateTime ;\n\tcascade:dispenseDaysSupply <ni:///sha-256;I3TxVH3IZ4obe-GsMxvcLYjynm4XqqtvqTpcd_WIFDU#dispense-days-supply> .\n<ni:///sha-256;I3TxVH3IZ4obe-GsMxvcLYjynm4XqqtvqTpcd_WIFDU#dispense-days-supply> cascade:decimalValue \"30\"^^xsd:decimal ;\n\tcascade:writtenValue \"30\" ;\n\tcascade:ucumUnit \"d\" ;\n\tcascade:unitText \"days\" .\n<ni:///sha-256;I3TxVH3IZ4obe-GsMxvcLYjynm4XqqtvqTpcd_WIFDU> cascade:dispenseQuantity <ni:///sha-256;I3TxVH3IZ4obe-GsMxvcLYjynm4XqqtvqTpcd_WIFDU#dispense-quantity> .\n<ni:///sha-256;I3TxVH3IZ4obe-GsMxvcLYjynm4XqqtvqTpcd_WIFDU#dispense-quantity> cascade:decimalValue \"60\"^^xsd:decimal ;\n\tcascade:writtenValue \"60\" ;\n\tcascade:ucumUnit \"{tbl}\" ;\n\tcascade:unitText \"tablet\" .\n<ni:///sha-256;I3TxVH3IZ4obe-GsMxvcLYjynm4XqqtvqTpcd_WIFDU> cascade:drugName \"Metformin 500 mg tablet\" ;\n\tcascade:ndcCode <https://ns.cascadeprotocol.org/codes/ndc11/00093104801> ;\n\tcascade:workflowStatus \"completed\" ;\n\tcascade:rxNormCode <https://ns.cascadeprotocol.org/codes/rxnorm/861007> .\n<urn:uuid:afe558e6-7924-89da-b364-e9e796f34b75> a cascade:MedicationDispense ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/MedicationDispense/meddisp-metformin-1> ;\n\tcascade:sourceRecordId \"meddisp-metformin-1\" .\n<ni:///sha-256;I3TxVH3IZ4obe-GsMxvcLYjynm4XqqtvqTpcd_WIFDU> prov:specializationOf <urn:uuid:afe558e6-7924-89da-b364-e9e796f34b75> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:8a1756a7d31cf69beca6e942afcbc014 bridge:arrivedAs <ni:///sha-256;I3TxVH3IZ4obe-GsMxvcLYjynm4XqqtvqTpcd_WIFDU> ;\n\toa:hasSelector _:dc511f605eb780386d460ddaa81f2a83 ;\n\toa:hasSource <ni:///sha-256;Nae9NHSj_ivsR7gKQWxcUd-UAYdXhbERwv3zUOcM9VA> ;\n\tprov:wasDerivedFrom <ni:///sha-256;Nae9NHSj_ivsR7gKQWxcUd-UAYdXhbERwv3zUOcM9VA> ;\n\tprov:wasGeneratedBy _:bdd1957271e704114bca77d7eb89dcef .\n_:dc511f605eb780386d460ddaa81f2a83 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;Nae9NHSj_ivsR7gKQWxcUd-UAYdXhbERwv3zUOcM9VA> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:1eb77e2a50ae6a641523e0d3aeb54f13 ;\n\tprov:wasAttributedTo _:d06193a4c273905878a1b889ed769997 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:b21b642b156379a36df3eec8f4c1be04 prov:agent _:d06193a4c273905878a1b889ed769997 ;\n\tprov:hadRole cascade:AuthorRole .\n_:1eb77e2a50ae6a641523e0d3aeb54f13 prov:qualifiedAssociation _:b21b642b156379a36df3eec8f4c1be04 .\n_:e1358381d280a826756f25ab1882a97e prov:agent _:f19386d8bb336911284c16eec5c91a4a ;\n\tprov:hadRole cascade:TransmitterRole .\n_:1eb77e2a50ae6a641523e0d3aeb54f13 prov:qualifiedAssociation _:e1358381d280a826756f25ab1882a97e .\n_:d06193a4c273905878a1b889ed769997 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:f19386d8bb336911284c16eec5c91a4a <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:bdd1957271e704114bca77d7eb89dcef <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;Nae9NHSj_ivsR7gKQWxcUd-UAYdXhbERwv3zUOcM9VA> a prov:Entity .\n_:bdd1957271e704114bca77d7eb89dcef a prov:Activity ;\n\tprov:used <ni:///sha-256;Nae9NHSj_ivsR7gKQWxcUd-UAYdXhbERwv3zUOcM9VA> ;\n\tprov:qualifiedAssociation _:1b05e21059f675c32e4216fc5306fece .\n_:1b05e21059f675c32e4216fc5306fece prov:hadPlan _:af7671dec9cade21d87e29b862c270a2 .\n_:af7671dec9cade21d87e29b862c270a2 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:1b05e21059f675c32e4216fc5306fece prov:agent _:5b0290ba7ce825ce011d6b77ffca80a0 .\n_:5b0290ba7ce825ce011d6b77ffca80a0 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-completed.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/medication-dispense-completed.ttl", "text": "", "empty": true}}