{"name": "medication-request-supply-and-timing-values-not-carried", "comment": "A MedicationRequest whose supply and timing are not carried as written: a second course-of-therapy coding is a fhirr4:courseOfTherapyTypeNotMapped finding, a repeat frequency of 0, a repeat period that is no number, a number of repeats allowed that is no number and a supply duration value that is no number are each a fhirr4:medicationNumberNotCarried finding, and a period unit outside UCUM's seven units of time is a fhirr4:dosageRepeatPeriodUnitNotCarried finding.", "input": {"file": "fixtures/in/medication-request-supply-and-timing-values-not-carried.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/medication-request-supply-and-timing-values-not-carried.json", "text": "{\n  \"resourceType\": \"MedicationRequest\",\n  \"id\": \"medrx-atorvastatin-9\",\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\": \"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy\",\n        \"code\": \"continuous\",\n        \"display\": \"Continuous long term therapy\"\n      },\n      {\n        \"system\": \"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy\",\n        \"code\": \"acute\",\n        \"display\": \"Short course (acute) therapy\"\n      }\n    ]\n  },\n  \"dosageInstruction\": [\n    {\n      \"timing\": {\n        \"repeat\": {\n          \"frequency\": 0,\n          \"period\": \"daily\",\n          \"periodUnit\": \"fortnight\"\n        }\n      }\n    }\n  ],\n  \"dispenseRequest\": {\n    \"numberOfRepeatsAllowed\": \"two\",\n    \"expectedSupplyDuration\": {\n      \"value\": \"thirty\",\n      \"unit\": \"days\",\n      \"system\": \"http://unitsofmeasure.org\",\n      \"code\": \"d\"\n    }\n  }\n}\n"}, "expectedGraph": {"file": "fixtures/expected/medication-request-supply-and-timing-values-not-carried.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/medication-request-supply-and-timing-values-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;nogctSAE4z-XLsSYi5uhgoslJ_gqFFthEXA046xd69o> cascade:courseOfTherapyType \"continuous\" ;\n\tcascade:structuredDosage <ni:///sha-256;nogctSAE4z-XLsSYi5uhgoslJ_gqFFthEXA046xd69o#dosage-1> ;\n\tcascade: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:ed8ebb87-c97d-8c69-862d-2010189bd5b3> a cascade:PrescribedOrReportedMedication ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/MedicationRequest/medrx-atorvastatin-9> ;\n\tcascade:sourceRecordId \"medrx-atorvastatin-9\" .\n<ni:///sha-256;nogctSAE4z-XLsSYi5uhgoslJ_gqFFthEXA046xd69o> prov:specializationOf <urn:uuid:ed8ebb87-c97d-8c69-862d-2010189bd5b3> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:c7d059865b904e0c745865609f5a3062 bridge:arrivedAs <ni:///sha-256;nogctSAE4z-XLsSYi5uhgoslJ_gqFFthEXA046xd69o> ;\n\toa:hasSelector _:d72125ce3c30320a054372161fc01def ;\n\toa:hasSource <ni:///sha-256;2TBD_B-5UaNdfn9HmKGUkLBFhbrzSGIWKWFMsbGftPY> ;\n\tprov:wasDerivedFrom <ni:///sha-256;2TBD_B-5UaNdfn9HmKGUkLBFhbrzSGIWKWFMsbGftPY> ;\n\tprov:wasGeneratedBy _:5dd46d853e35e81bece2fff72e77e770 .\n_:d72125ce3c30320a054372161fc01def a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;2TBD_B-5UaNdfn9HmKGUkLBFhbrzSGIWKWFMsbGftPY> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:2dde039efb04adde45daa2cbede406e1 ;\n\tprov:wasAttributedTo _:c53b56d9d7e42ad22567227298a386d4 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:3b1eba165e4a4763282a63e2296d483d prov:agent _:c53b56d9d7e42ad22567227298a386d4 ;\n\tprov:hadRole cascade:AuthorRole .\n_:2dde039efb04adde45daa2cbede406e1 prov:qualifiedAssociation _:3b1eba165e4a4763282a63e2296d483d .\n_:c39c43efc4bf14ef7d081a86e137546e prov:agent _:54a9815677a93fbd112cfa54023812b0 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:2dde039efb04adde45daa2cbede406e1 prov:qualifiedAssociation _:c39c43efc4bf14ef7d081a86e137546e .\n_:c53b56d9d7e42ad22567227298a386d4 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:54a9815677a93fbd112cfa54023812b0 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:5dd46d853e35e81bece2fff72e77e770 <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;2TBD_B-5UaNdfn9HmKGUkLBFhbrzSGIWKWFMsbGftPY> a prov:Entity .\n_:5dd46d853e35e81bece2fff72e77e770 a prov:Activity ;\n\tprov:used <ni:///sha-256;2TBD_B-5UaNdfn9HmKGUkLBFhbrzSGIWKWFMsbGftPY> ;\n\tprov:qualifiedAssociation _:2eef1d53572ccfc545e484ce64590c57 .\n_:2eef1d53572ccfc545e484ce64590c57 prov:hadPlan _:d102cc67f03e3322e29954c585b6661 .\n_:d102cc67f03e3322e29954c585b6661 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:2eef1d53572ccfc545e484ce64590c57 prov:agent _:820f1e73068aefa9abc41a83f7394afd .\n_:820f1e73068aefa9abc41a83f7394afd 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-supply-and-timing-values-not-carried.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/medication-request-supply-and-timing-values-not-carried.ttl", "text": "@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_:ab230b40260a9fe533d0ed4a3c5dc4ba a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:c7881f427ccccb101109df5da5bd2e9d a oa:Annotation ;\n\toa:hasTarget _:da2b557f8d4e52983bdbd35426639edd .\n_:da2b557f8d4e52983bdbd35426639edd oa:hasSource <../in/medication-request-supply-and-timing-values-not-carried.json> ;\n\toa:hasSelector _:ab230b40260a9fe533d0ed4a3c5dc4ba .\n_:c7881f427ccccb101109df5da5bd2e9d oa:hasBody <https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-01#section-6.28> ;\n\toa:motivatedBy oa:classifying ;\n\tsh:resultSeverity sh:Violation .\n_:s1 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" ;\n\toa:refinedBy _:r1 .\n_:r1 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/courseOfTherapyType/coding/1/code\" .\n_:a1 a oa:Annotation ;\n\toa:hasTarget [ oa:hasSource <../in/medication-request-supply-and-timing-values-not-carried.json> ; oa:hasSelector _:s1 ] ;\n\toa:hasBody <https://ns.cascadeprotocol.org/adapter/fhir-r4/v1-draft#courseOfTherapyTypeNotMapped> ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"acute\" ;\n\tsh:resultSeverity sh:Warning .\n_:s2 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" ;\n\toa:refinedBy _:r2 .\n_:r2 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/dosageInstruction/0/timing/repeat/frequency\" .\n_:a2 a oa:Annotation ;\n\toa:hasTarget [ oa:hasSource <../in/medication-request-supply-and-timing-values-not-carried.json> ; oa:hasSelector _:s2 ] ;\n\toa:hasBody <https://ns.cascadeprotocol.org/adapter/fhir-r4/v1-draft#medicationNumberNotCarried> ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"0\" ;\n\tsh:resultSeverity sh:Warning .\n_:s3 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" ;\n\toa:refinedBy _:r3 .\n_:r3 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/dosageInstruction/0/timing/repeat/period\" .\n_:a3 a oa:Annotation ;\n\toa:hasTarget [ oa:hasSource <../in/medication-request-supply-and-timing-values-not-carried.json> ; oa:hasSelector _:s3 ] ;\n\toa:hasBody <https://ns.cascadeprotocol.org/adapter/fhir-r4/v1-draft#medicationNumberNotCarried> ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"daily\" ;\n\tsh:resultSeverity sh:Warning .\n_:s4 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" ;\n\toa:refinedBy _:r4 .\n_:r4 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/dosageInstruction/0/timing/repeat/periodUnit\" .\n_:a4 a oa:Annotation ;\n\toa:hasTarget [ oa:hasSource <../in/medication-request-supply-and-timing-values-not-carried.json> ; oa:hasSelector _:s4 ] ;\n\toa:hasBody <https://ns.cascadeprotocol.org/adapter/fhir-r4/v1-draft#dosageRepeatPeriodUnitNotCarried> ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"fortnight\" ;\n\tsh:resultSeverity sh:Warning .\n_:s5 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" ;\n\toa:refinedBy _:r5 .\n_:r5 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/dispenseRequest/numberOfRepeatsAllowed\" .\n_:a5 a oa:Annotation ;\n\toa:hasTarget [ oa:hasSource <../in/medication-request-supply-and-timing-values-not-carried.json> ; oa:hasSelector _:s5 ] ;\n\toa:hasBody <https://ns.cascadeprotocol.org/adapter/fhir-r4/v1-draft#medicationNumberNotCarried> ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"two\" ;\n\tsh:resultSeverity sh:Warning .\n_:s6 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" ;\n\toa:refinedBy _:r6 .\n_:r6 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/dispenseRequest/expectedSupplyDuration/value\" .\n_:a6 a oa:Annotation ;\n\toa:hasTarget [ oa:hasSource <../in/medication-request-supply-and-timing-values-not-carried.json> ; oa:hasSelector _:s6 ] ;\n\toa:hasBody <https://ns.cascadeprotocol.org/adapter/fhir-r4/v1-draft#medicationNumberNotCarried> ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"thirty\" ;\n\tsh:resultSeverity sh:Warning .\n", "empty": false}}