{"name": "medication-request-ndc-forms", "comment": "A MedicationRequest coded by an RxNorm code marked userSelected and five NDC codes: the three 10-digit hyphenated forms 4-4-2, 5-3-2 and 5-4-1 and the 11-digit form are carried as 11-digit codes, the RxNorm code is the selected code, and the 10-digit NDC with no hyphens, whose segments cannot be told, is a finding.", "input": {"file": "fixtures/in/medication-request-ndc-forms.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/medication-request-ndc-forms.json", "text": "{\n  \"resourceType\": \"MedicationRequest\",\n  \"id\": \"medrx-amlodipine-3\",\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        \"userSelected\": true\n      },\n      {\n        \"system\": \"http://hl7.org/fhir/sid/ndc\",\n        \"code\": \"0378-5209-05\"\n      },\n      {\n        \"system\": \"http://hl7.org/fhir/sid/ndc\",\n        \"code\": \"12745-202-01\"\n      },\n      {\n        \"system\": \"http://hl7.org/fhir/sid/ndc\",\n        \"code\": \"62011-0267-1\"\n      },\n      {\n        \"system\": \"http://hl7.org/fhir/sid/ndc\",\n        \"code\": \"00069153041\"\n      },\n      {\n        \"system\": \"http://hl7.org/fhir/sid/ndc\",\n        \"code\": \"0069153066\"\n      }\n    ],\n    \"text\": \"Amlodipine 5 mg tablet\"\n  },\n  \"subject\": {\n    \"reference\": \"Patient/pat-conformance-1\"\n  },\n  \"authoredOn\": \"2026-03-10\"\n}\n"}, "expectedGraph": {"file": "fixtures/expected/medication-request-ndc-forms.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/medication-request-ndc-forms.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;g-itSYSq_RYAuUTv3qjkFjCCt94mqcxDrYVRHzvgod0> cascade:prescribedOrReported \"prescribed\" ;\n\tcascade:drugName \"Amlodipine 5 mg tablet\" ;\n\tcascade:workflowStatus \"active\" ;\n\tcascade:medicationRequestIntent \"order\" ;\n\tcascade:prescriptionWrittenDate \"2026-03-10\"^^xsd:date ;\n\tcascade:ndcCode <https://ns.cascadeprotocol.org/codes/ndc11/00069153041> , <https://ns.cascadeprotocol.org/codes/ndc11/62011026701> , <https://ns.cascadeprotocol.org/codes/ndc11/12745020201> , <https://ns.cascadeprotocol.org/codes/ndc11/00378520905> ;\n\tcascade:rxNormCode <https://ns.cascadeprotocol.org/codes/rxnorm/197361> ;\n\tcascade:userSelectedCode <https://ns.cascadeprotocol.org/codes/rxnorm/197361> .\n<urn:uuid:1cd17aab-01a1-88fa-a3d9-d56b804f6889> a cascade:PrescribedOrReportedMedication ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/MedicationRequest/medrx-amlodipine-3> ;\n\tcascade:sourceRecordId \"medrx-amlodipine-3\" .\n<ni:///sha-256;g-itSYSq_RYAuUTv3qjkFjCCt94mqcxDrYVRHzvgod0> prov:specializationOf <urn:uuid:1cd17aab-01a1-88fa-a3d9-d56b804f6889> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:b100099acbf6222d082eab108760ebdc bridge:arrivedAs <ni:///sha-256;g-itSYSq_RYAuUTv3qjkFjCCt94mqcxDrYVRHzvgod0> ;\n\toa:hasSelector _:63560dcf0e6fd412cb9ce0c6a51eacfc ;\n\toa:hasSource <ni:///sha-256;aonZgTRMzGOl7orxNxGZgAXmv9WJhMJJukqyNbbQNPI> ;\n\tprov:wasDerivedFrom <ni:///sha-256;aonZgTRMzGOl7orxNxGZgAXmv9WJhMJJukqyNbbQNPI> ;\n\tprov:wasGeneratedBy _:7f715163bd0aeaa37ba3ff51b2e08487 .\n_:63560dcf0e6fd412cb9ce0c6a51eacfc a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;aonZgTRMzGOl7orxNxGZgAXmv9WJhMJJukqyNbbQNPI> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:c39bc5615a7498765308d43a0d1df6f ;\n\tprov:wasAttributedTo _:931a0e9696c4586b35d41318f99016a3 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:9fc916b9d1d529097b1a3390759ddec8 prov:agent _:931a0e9696c4586b35d41318f99016a3 ;\n\tprov:hadRole cascade:AuthorRole .\n_:c39bc5615a7498765308d43a0d1df6f prov:qualifiedAssociation _:9fc916b9d1d529097b1a3390759ddec8 .\n_:48ea9c0aa0f5ee601967154577fb043 prov:agent _:657a3d2b34357fa00c1e8a555d52f24 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:c39bc5615a7498765308d43a0d1df6f prov:qualifiedAssociation _:48ea9c0aa0f5ee601967154577fb043 .\n_:931a0e9696c4586b35d41318f99016a3 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:657a3d2b34357fa00c1e8a555d52f24 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:7f715163bd0aeaa37ba3ff51b2e08487 <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;aonZgTRMzGOl7orxNxGZgAXmv9WJhMJJukqyNbbQNPI> a prov:Entity .\n_:7f715163bd0aeaa37ba3ff51b2e08487 a prov:Activity ;\n\tprov:used <ni:///sha-256;aonZgTRMzGOl7orxNxGZgAXmv9WJhMJJukqyNbbQNPI> ;\n\tprov:qualifiedAssociation _:915a57107a5a50d8e7b186682431af49 .\n_:915a57107a5a50d8e7b186682431af49 prov:hadPlan _:d7376704bec619d28a1f0e96bc0a2959 .\n_:d7376704bec619d28a1f0e96bc0a2959 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:915a57107a5a50d8e7b186682431af49 prov:agent _:5343761d80b4429986a9fde27c99011d .\n_:5343761d80b4429986a9fde27c99011d 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-ndc-forms.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/medication-request-ndc-forms.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_:a4388c92b4964318a67ff74f8c662020 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:b9eb78a6352d841e069d391c61be012c oa:hasSource <../in/medication-request-ndc-forms.json> .\n_:a4388c92b4964318a67ff74f8c662020 oa:refinedBy _:c65b73da8e7c09ac6073d2e258d316 .\n_:c65b73da8e7c09ac6073d2e258d316 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/medicationCodeableConcept/coding/5/code\" .\n_:b9eb78a6352d841e069d391c61be012c oa:hasSelector _:a4388c92b4964318a67ff74f8c662020 .\n_:fa3852f64a89d3a3bfc6a4bc367163c5 oa:hasTarget _:b9eb78a6352d841e069d391c61be012c ;\n\tsh:resultSeverity sh:Info ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:ndcNotNormalised ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"0069153066\" .\n", "empty": false}}