{"name": "bundle-medication-supply-not-carried", "comment": "A Bundle of two MedicationRequests whose supply is not carried as written: an expected supply duration with the comparator >= is carried with it and is a finding, one in no unit of time is not carried, and a course of therapy of text alone or in another system is not carried; each is a finding.", "input": {"file": "fixtures/in/bundle-medication-supply-not-carried.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/bundle-medication-supply-not-carried.json", "text": "{\n  \"resourceType\": \"Bundle\",\n  \"type\": \"collection\",\n  \"entry\": [\n    {\n      \"fullUrl\": \"https://fhir.meridian.example/api/FHIR/R4/MedicationRequest/medrx-atorvastatin-5\",\n      \"resource\": {\n        \"resourceType\": \"MedicationRequest\",\n        \"id\": \"medrx-atorvastatin-5\",\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          \"text\": \"Atorvastatin 10 mg tablet\"\n        },\n        \"subject\": {\n          \"reference\": \"Patient/pat-conformance-1\"\n        },\n        \"authoredOn\": \"2026-03-02\",\n        \"courseOfTherapyType\": {\n          \"text\": \"Long term\"\n        },\n        \"dispenseRequest\": {\n          \"expectedSupplyDuration\": {\n            \"value\": 30,\n            \"comparator\": \">=\",\n            \"unit\": \"days\",\n            \"system\": \"http://unitsofmeasure.org\",\n            \"code\": \"d\"\n          }\n        }\n      }\n    },\n    {\n      \"fullUrl\": \"https://fhir.meridian.example/api/FHIR/R4/MedicationRequest/medrx-atorvastatin-6\",\n      \"resource\": {\n        \"resourceType\": \"MedicationRequest\",\n        \"id\": \"medrx-atorvastatin-6\",\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          \"text\": \"Atorvastatin 10 mg tablet\"\n        },\n        \"subject\": {\n          \"reference\": \"Patient/pat-conformance-1\"\n        },\n        \"authoredOn\": \"2026-03-02\",\n        \"courseOfTherapyType\": {\n          \"coding\": [\n            {\n              \"system\": \"https://formulary.meridian.example/course\",\n              \"code\": \"chronic\"\n            }\n          ]\n        },\n        \"dispenseRequest\": {\n          \"expectedSupplyDuration\": {\n            \"value\": 2,\n            \"unit\": \"packs\"\n          }\n        }\n      }\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/bundle-medication-supply-not-carried.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/bundle-medication-supply-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;qfBr0VcSppR7kOJu3BcVoPH1Cq6m3dlg7le1oS9rmII> cascade:expectedSupplyDuration <ni:///sha-256;qfBr0VcSppR7kOJu3BcVoPH1Cq6m3dlg7le1oS9rmII#expected-supply-duration> .\n<ni:///sha-256;qfBr0VcSppR7kOJu3BcVoPH1Cq6m3dlg7le1oS9rmII#expected-supply-duration> cascade:decimalValue \"30\"^^xsd:decimal ;\n\tcascade:writtenValue \"30\" ;\n\tcascade:quantityComparator \">=\" ;\n\tcascade:ucumUnit \"d\" ;\n\tcascade:unitText \"days\" .\n<ni:///sha-256;qfBr0VcSppR7kOJu3BcVoPH1Cq6m3dlg7le1oS9rmII> 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:ccd50cce-5f79-8295-8237-f6ce49d699ab> a cascade:PrescribedOrReportedMedication ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/MedicationRequest/medrx-atorvastatin-5> ;\n\tcascade:sourceRecordId \"medrx-atorvastatin-5\" .\n<ni:///sha-256;qfBr0VcSppR7kOJu3BcVoPH1Cq6m3dlg7le1oS9rmII> prov:specializationOf <urn:uuid:ccd50cce-5f79-8295-8237-f6ce49d699ab> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:e2f3e2a118c3dd73f3ef456c5de6e7ee bridge:arrivedAs <ni:///sha-256;qfBr0VcSppR7kOJu3BcVoPH1Cq6m3dlg7le1oS9rmII> ;\n\toa:hasSelector _:d957370df617344cd2c533a8249f2eca ;\n\toa:hasSource <ni:///sha-256;3VQMia3r9OYsuB15CnyJBtrbtwL21GSGbwAaxp7r7gM> ;\n\tprov:wasDerivedFrom <ni:///sha-256;3VQMia3r9OYsuB15CnyJBtrbtwL21GSGbwAaxp7r7gM> ;\n\tprov:wasGeneratedBy _:5acad52adcde12c698bd064279a8b586 .\n_:d957370df617344cd2c533a8249f2eca a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/0\" .\n<ni:///sha-256;ibZ4xTPaGXO4sD1CkAQMQpMN9mDZrfBD3DCZW8HF2gk> 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:e25a24a2-547c-81c9-9fd4-bf5812c7dc76> a cascade:PrescribedOrReportedMedication ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/MedicationRequest/medrx-atorvastatin-6> ;\n\tcascade:sourceRecordId \"medrx-atorvastatin-6\" .\n<ni:///sha-256;ibZ4xTPaGXO4sD1CkAQMQpMN9mDZrfBD3DCZW8HF2gk> prov:specializationOf <urn:uuid:e25a24a2-547c-81c9-9fd4-bf5812c7dc76> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:cad51f25184943b552b26c1e1f7dc733 bridge:arrivedAs <ni:///sha-256;ibZ4xTPaGXO4sD1CkAQMQpMN9mDZrfBD3DCZW8HF2gk> ;\n\toa:hasSelector _:d3664290f0927b866b76334ee567bc88 ;\n\toa:hasSource <ni:///sha-256;3VQMia3r9OYsuB15CnyJBtrbtwL21GSGbwAaxp7r7gM> ;\n\tprov:wasDerivedFrom <ni:///sha-256;3VQMia3r9OYsuB15CnyJBtrbtwL21GSGbwAaxp7r7gM> ;\n\tprov:wasGeneratedBy _:5acad52adcde12c698bd064279a8b586 .\n_:d3664290f0927b866b76334ee567bc88 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n<ni:///sha-256;3VQMia3r9OYsuB15CnyJBtrbtwL21GSGbwAaxp7r7gM> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:3b7dcdc988a15d582f1d277c1d756f4e ;\n\tprov:wasAttributedTo _:5ad25663e7ebb4d15d870c51e20c5413 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:4cf6e92858937e014836b6b1e1d503cf prov:agent _:5ad25663e7ebb4d15d870c51e20c5413 ;\n\tprov:hadRole cascade:AuthorRole .\n_:3b7dcdc988a15d582f1d277c1d756f4e prov:qualifiedAssociation _:4cf6e92858937e014836b6b1e1d503cf .\n_:172bdb4f31af410d7a8dc6fdbf1919c9 prov:agent _:44962b348fd5f5baf38b9c1214fc020f ;\n\tprov:hadRole cascade:TransmitterRole .\n_:3b7dcdc988a15d582f1d277c1d756f4e prov:qualifiedAssociation _:172bdb4f31af410d7a8dc6fdbf1919c9 .\n_:5ad25663e7ebb4d15d870c51e20c5413 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:44962b348fd5f5baf38b9c1214fc020f <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:5acad52adcde12c698bd064279a8b586 <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;3VQMia3r9OYsuB15CnyJBtrbtwL21GSGbwAaxp7r7gM> a prov:Entity .\n_:5acad52adcde12c698bd064279a8b586 a prov:Activity ;\n\tprov:used <ni:///sha-256;3VQMia3r9OYsuB15CnyJBtrbtwL21GSGbwAaxp7r7gM> ;\n\tprov:qualifiedAssociation _:7b0a93218dc8b9825770840a49fa91ba .\n_:7b0a93218dc8b9825770840a49fa91ba prov:hadPlan _:768b338a01d0863f5f5ed90ab101604c .\n_:768b338a01d0863f5f5ed90ab101604c a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:7b0a93218dc8b9825770840a49fa91ba prov:agent _:8cbb51c87b68a7a60fc450069faa7f64 .\n_:8cbb51c87b68a7a60fc450069faa7f64 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-medication-supply-not-carried.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/bundle-medication-supply-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_:b0c58e6a3ede0ae83710fd59f43ccb8f a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/0\" .\n_:d12a78bdfbb2b5882e075168015a046a a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/courseOfTherapyType/text\" .\n_:b0c58e6a3ede0ae83710fd59f43ccb8f oa:refinedBy _:d12a78bdfbb2b5882e075168015a046a .\n_:a4f01534889704f54c2c9973ef2aa694 a oa:Annotation ;\n\toa:hasTarget _:eb06f35dcd8e8ab4f41ceee781e9c2e .\n_:eb06f35dcd8e8ab4f41ceee781e9c2e oa:hasSource <../in/bundle-medication-supply-not-carried.json> ;\n\toa:hasSelector _:b0c58e6a3ede0ae83710fd59f43ccb8f .\n_:a4f01534889704f54c2c9973ef2aa694 oa:hasBody fhirr4:codedValueText ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/resource/courseOfTherapyType/text\" ;\n\tsh:resultSeverity sh:Info .\n_:e189a2b9dc61fe59b2a0918d3453114f a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/0\" .\n_:ea9c886869925eee88300293f1c8c83f oa:hasSource <../in/bundle-medication-supply-not-carried.json> .\n_:e189a2b9dc61fe59b2a0918d3453114f oa:refinedBy _:f55f493a567ecfc7927b2f4d7857f957 .\n_:f55f493a567ecfc7927b2f4d7857f957 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/dispenseRequest/expectedSupplyDuration/comparator\" .\n_:ea9c886869925eee88300293f1c8c83f oa:hasSelector _:e189a2b9dc61fe59b2a0918d3453114f .\n_:fbfdcb37f1aff154706b889eef73005d oa:hasTarget _:ea9c886869925eee88300293f1c8c83f ;\n\tsh:resultSeverity sh:Warning ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:expectedSupplyDurationBound ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \">=\" .\n_:e6ffe56d16999cbf8cd8d71bb7817618 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n_:fb36699486dba68c758568e2d88861f oa:hasSource <../in/bundle-medication-supply-not-carried.json> .\n_:e6ffe56d16999cbf8cd8d71bb7817618 oa:refinedBy _:eeb18026028bc1277e2bc54ec92ead5e .\n_:eeb18026028bc1277e2bc54ec92ead5e a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/courseOfTherapyType/coding/0/code\" .\n_:fb36699486dba68c758568e2d88861f oa:hasSelector _:e6ffe56d16999cbf8cd8d71bb7817618 .\n_:c0dcdaee74cae99a9feebb9c1629ad25 oa:hasTarget _:fb36699486dba68c758568e2d88861f .\n_:eaf08d452afbbde7ebfdcacb39f9fa34 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n_:fbba945ec9479f07730ab666398fedc6 oa:hasSource <../in/bundle-medication-supply-not-carried.json> .\n_:eaf08d452afbbde7ebfdcacb39f9fa34 oa:refinedBy _:f9d285d88bc8fd046d010483c178a6ea .\n_:f9d285d88bc8fd046d010483c178a6ea a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/dispenseRequest/expectedSupplyDuration/unit\" .\n_:fbba945ec9479f07730ab666398fedc6 oa:hasSelector _:eaf08d452afbbde7ebfdcacb39f9fa34 .\n_:da31d70eb7ce8e198cbabadb7dd351de oa:hasTarget _:fbba945ec9479f07730ab666398fedc6 .\n_:c0dcdaee74cae99a9feebb9c1629ad25 sh:resultSeverity sh:Warning .\n_:da31d70eb7ce8e198cbabadb7dd351de sh:resultSeverity sh:Warning .\n_:c0dcdaee74cae99a9feebb9c1629ad25 a oa:Annotation ;\n\toa:hasBody fhirr4:courseOfTherapyTypeNotMapped ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"chronic\" .\n_:da31d70eb7ce8e198cbabadb7dd351de a oa:Annotation ;\n\toa:hasBody fhirr4:expectedSupplyDurationNotInUnitOfTime ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"packs\" .\n", "empty": false}}