{"name": "medication-request-two-rxnorm-codes", "comment": "A MedicationRequest coded by two RxNorm codes and an NDC code, with two dosages: both RxNorm codes and the NDC, as its 11-digit code, are carried, each dosage is a node, and the second dosage's text alone is a finding.", "input": {"file": "fixtures/in/medication-request-two-rxnorm-codes.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/medication-request-two-rxnorm-codes.json", "text": "{\n  \"resourceType\": \"MedicationRequest\",\n  \"id\": \"medrx-amlodipine-2\",\n  \"status\": \"active\",\n  \"intent\": \"order\",\n  \"medicationCodeableConcept\": {\n    \"coding\": [\n      {\n        \"system\": \"http://www.nlm.nih.gov/research/umls/rxnorm\",\n        \"code\": \"197361\",\n        \"display\": \"amlodipine 5 MG Oral Tablet\"\n      },\n      {\n        \"system\": \"http://www.nlm.nih.gov/research/umls/rxnorm\",\n        \"code\": \"212549\",\n        \"display\": \"Norvasc 5 MG Oral Tablet\"\n      },\n      {\n        \"system\": \"http://hl7.org/fhir/sid/ndc\",\n        \"code\": \"0069-1530-66\"\n      }\n    ],\n    \"text\": \"Amlodipine 5 mg tablet\"\n  },\n  \"subject\": {\n    \"reference\": \"Patient/pat-conformance-1\"\n  },\n  \"authoredOn\": \"2026-03-10\",\n  \"dosageInstruction\": [\n    {\n      \"text\": \"Take 5 mg by mouth once daily for two weeks\"\n    },\n    {\n      \"text\": \"Then take 10 mg by mouth once daily\"\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/medication-request-two-rxnorm-codes.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/medication-request-two-rxnorm-codes.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;EIbO7xRKLrXVdvscG2IrrkFO5puDcN1rbBT5d3I3lII> cascade:structuredDosage <ni:///sha-256;EIbO7xRKLrXVdvscG2IrrkFO5puDcN1rbBT5d3I3lII#dosage-2> , <ni:///sha-256;EIbO7xRKLrXVdvscG2IrrkFO5puDcN1rbBT5d3I3lII#dosage-1> ;\n\tcascade:prescribedOrReported \"prescribed\" ;\n\tcascade:drugName \"Amlodipine 5 mg tablet\" ;\n\tcascade:ndcCode <https://ns.cascadeprotocol.org/codes/ndc11/00069153066> ;\n\tcascade:workflowStatus \"active\" ;\n\tcascade:medicationRequestIntent \"order\" ;\n\tcascade:prescriptionWrittenDate \"2026-03-10\"^^xsd:date ;\n\tcascade:dosageInstructionText \"Take 5 mg by mouth once daily for two weeks\" ;\n\tcascade:rxNormCode <https://ns.cascadeprotocol.org/codes/rxnorm/212549> , <https://ns.cascadeprotocol.org/codes/rxnorm/197361> .\n<urn:uuid:c03a321f-11c9-877c-b099-97c607e4a74e> a cascade:PrescribedOrReportedMedication ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/MedicationRequest/medrx-amlodipine-2> ;\n\tcascade:sourceRecordId \"medrx-amlodipine-2\" .\n<ni:///sha-256;EIbO7xRKLrXVdvscG2IrrkFO5puDcN1rbBT5d3I3lII> prov:specializationOf <urn:uuid:c03a321f-11c9-877c-b099-97c607e4a74e> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:f92fdb7d50e97ab545a63266c1bb1630 bridge:arrivedAs <ni:///sha-256;EIbO7xRKLrXVdvscG2IrrkFO5puDcN1rbBT5d3I3lII> ;\n\toa:hasSelector _:47bacd011ecab7bb3220d1d37ec6d871 ;\n\toa:hasSource <ni:///sha-256;VEtONQnRpYfpn4Rp7ACtzas_jYXuhZFk7gZHXCbFP6U> ;\n\tprov:wasDerivedFrom <ni:///sha-256;VEtONQnRpYfpn4Rp7ACtzas_jYXuhZFk7gZHXCbFP6U> ;\n\tprov:wasGeneratedBy _:da2040eb9ead971f0f9c80d7b1286101 .\n_:47bacd011ecab7bb3220d1d37ec6d871 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;VEtONQnRpYfpn4Rp7ACtzas_jYXuhZFk7gZHXCbFP6U> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:6cfc7471116f3a9ba03aaedf294c47f0 ;\n\tprov:wasAttributedTo _:d3eef8c87b51f2d10a0db7ed0ba0dfb1 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:b1ad0afaf0590dfb5e7da567bacc36cc prov:agent _:d3eef8c87b51f2d10a0db7ed0ba0dfb1 ;\n\tprov:hadRole cascade:AuthorRole .\n_:6cfc7471116f3a9ba03aaedf294c47f0 prov:qualifiedAssociation _:b1ad0afaf0590dfb5e7da567bacc36cc .\n_:c6e550a97c8a00d73c5950a6a72a1fc prov:agent _:de5b6f30cfb33699e9aa5f79f1f2cfa ;\n\tprov:hadRole cascade:TransmitterRole .\n_:6cfc7471116f3a9ba03aaedf294c47f0 prov:qualifiedAssociation _:c6e550a97c8a00d73c5950a6a72a1fc .\n_:d3eef8c87b51f2d10a0db7ed0ba0dfb1 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:de5b6f30cfb33699e9aa5f79f1f2cfa <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:da2040eb9ead971f0f9c80d7b1286101 <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;VEtONQnRpYfpn4Rp7ACtzas_jYXuhZFk7gZHXCbFP6U> a prov:Entity .\n_:da2040eb9ead971f0f9c80d7b1286101 a prov:Activity ;\n\tprov:used <ni:///sha-256;VEtONQnRpYfpn4Rp7ACtzas_jYXuhZFk7gZHXCbFP6U> ;\n\tprov:qualifiedAssociation _:8553d8ca82b399dfbfc6441967465ae1 .\n_:8553d8ca82b399dfbfc6441967465ae1 prov:hadPlan _:a56e0dfe20d2f48e27a0d057e3cd2a90 .\n_:a56e0dfe20d2f48e27a0d057e3cd2a90 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:8553d8ca82b399dfbfc6441967465ae1 prov:agent _:dd1b2d1b3eff1b6cdc5c0227a40f9625 .\n_:dd1b2d1b3eff1b6cdc5c0227a40f9625 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-request-two-rxnorm-codes.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/medication-request-two-rxnorm-codes.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_:a23f132c93bea773874619b2f1091533 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:a32d108db00a9da355c962da6f2448d6 oa:hasSource <../in/medication-request-two-rxnorm-codes.json> .\n_:a23f132c93bea773874619b2f1091533 oa:refinedBy _:acadd4297b398f773e331f43518f7fb6 .\n_:acadd4297b398f773e331f43518f7fb6 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/dosageInstruction/1/text\" .\n_:a32d108db00a9da355c962da6f2448d6 oa:hasSelector _:a23f132c93bea773874619b2f1091533 .\n_:e4848911c8a394da8e0c00b62758feee oa:hasTarget _:a32d108db00a9da355c962da6f2448d6 ;\n\tsh:resultSeverity sh:Warning ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:medicationDosageRepeated ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"Then take 10 mg by mouth once daily\" .\n", "empty": false}}