Assesses medication adherence by analyzing prescription fill patterns from MedicationDispense resources, calculating proportion of days covered (PDC), and identifying gaps in therapy. Use when asked about medication adherence, compliance, fill history, refill gaps, PDC, or whether a patient is taking their medications as prescribed.
Use when a clinician needs to evaluate whether a patient is taking medications as prescribed by analyzing fill history, calculating adherence metrics, and identifying therapy gaps.
fhir_search to pull active MedicationRequest resources for the patient's prescribed medication regimenfhir_search to pull MedicationDispense resources for fill history with dates and quantitiesfhir_search(resourceType="MedicationDispense", queryParams="patient=[patient-id]&_sort=-whenhandedover&_count=200")
fhir_search(resourceType="MedicationRequest", queryParams="patient=[patient-id]&status=active&_count=100")