Ethical Boundaries for Predicting Medication Adherence in Community Pharmacy

Artificial intelligence is moving from research papers and hospital pilot programs into everyday healthcare. In community pharmacy, predictive systems may estimate whether a person is likely to miss doses, delay a repeat prescription, abandon a new medicine, or need additional support. These tools can help pharmacists identify patients who might benefit from a conversation before a problem becomes clinically serious.

The attraction is understandable. Pharmacists already monitor dispensing histories, medicine changes, missed collection dates, dose administration aids, and conversations at the counter. An algorithm could bring those signals together and help a busy team prioritise follow-up. For a patient with heart failure, epilepsy, diabetes, or a complex mental health regimen, timely contact may prevent deterioration or hospital admission.

Yet adherence is not a simple personal characteristic waiting to be measured. A person may miss a medicine because of cost, transport, side effects, cultural concerns, unstable housing, limited health literacy, caring responsibilities, or uncertainty about the diagnosis. A prediction can easily turn a social problem into an apparent patient defect. The ethical question is therefore larger than whether the software is accurate.

Australian community pharmacies operate in a setting shaped by the Pharmaceutical Benefits Scheme, private dispensing systems, electronic prescriptions, and increasingly connected health records. A pharmacy in suburban Melbourne, a regional town in Queensland, and a remote Northern Territory community may face entirely different patterns of access. Any responsible approach must account for those differences while protecting dignity, privacy, and patient choice.

What The Algorithm Is Really Predicting

Adherence prediction usually relies on proxy measures rather than direct knowledge of what happens after a medicine leaves the pharmacy. Refill gaps, late collections, changes in prescriber, previous missed doses, medicine class, and dispensing frequency can produce a risk score. Some systems may also use age, postcode, concession status, language preferences, or records of contact with the pharmacy.

Those signals can be useful, but they are ambiguous. A late repeat might indicate non-use, or it might reflect a hospital admission, a temporary change in treatment, a holiday, or a prescriber’s decision. A patient collecting medicines early could be preparing for travel rather than misusing them. A person who does not appear in dispensing data may use another pharmacy, receive medicines through a hospital, or rely on a carer.

The word “adherence” can also conceal a moral judgement. “Compliance” has rightly lost favour because it suggests that the patient’s role is simply to obey. Ethical pharmacy practice recognises shared decision-making: the patient and health professional work together to find a treatment plan that is effective, tolerable, affordable, and realistic. An algorithm should support that process, not assign blame before a conversation takes place.

A risk score must therefore be treated as a prompt for professional attention, never as proof. Its purpose should be to help a pharmacist ask, “How can we make this treatment easier and safer?” It should not become a label attached to a patient’s profile or a reason to restrict access to medicine.

Consent, Privacy, And Meaningful Transparency

Medication records are deeply sensitive health information. A pharmacy may hold details about HIV treatment, opioid dependence, fertility, psychiatric care, cancer, or medicines associated with domestic violence and coercive control. Under Australian privacy requirements, organisations must handle personal information carefully, explain relevant uses, and protect it from unauthorised access. Artificial intelligence increases the need for clear governance because data may be processed by an external vendor or used to train a model.

Patients should be told when their information contributes to adherence analytics, in language that makes sense at the counter and in written privacy material. A vague statement that data may be used to “improve services” does not provide meaningful understanding. People need to know what information is analysed, why it is used, who receives it, how long it is retained, and whether they can decline a secondary use without losing ordinary pharmacy care.

Consent can be complicated in practice. A person collecting a prescription may feel unable to refuse if the request comes from a trusted pharmacist or if they fear being viewed as difficult. For that reason, a pharmacy should offer a genuine alternative and avoid making personalised support conditional on algorithmic profiling. A patient who opts out should still receive respectful counselling, medication reviews, dose administration support, and follow-up based on ordinary clinical judgement.

Transparency also applies to the pharmacist. Staff should understand the model’s purpose, limitations, data sources, and threshold for generating an alert. A polished dashboard can create false confidence, particularly when it presents a numerical risk without showing uncertainty. Useful professional commentary on technology and professional responsibility can help keep the focus on how systems affect real people rather than on novelty alone.

Bias Across Australian Communities

A model trained on metropolitan dispensing data may perform poorly in rural and remote Australia. A patient in the Kimberley may travel a long distance for a medicine, depend on a community clinic’s delivery schedule, or experience interruptions caused by weather and staffing. In a regional town, there may be only one pharmacy, and a change in collection pattern may be visible for practical reasons rather than lack of commitment.

First Nations patients require particular care. Historical mistreatment, institutional racism, limited access to culturally safe services, and different understandings of health can shape engagement with medicines. If an algorithm treats missed collections as evidence of unreliability, it may reproduce the effects of unequal access. Aboriginal Community Controlled Health Services and local cultural knowledge should inform the design and evaluation of any adherence program, rather than being added after deployment.

Language and disability can also distort the data. A patient who prefers an interpreter may appear disengaged if contact attempts are recorded only in English. Someone with low vision, cognitive disability, hearing loss, or limited digital access may miss automated messages without having low motivation to take treatment. Age-based assumptions can harm older people who manage complex regimens competently, while younger people may be unfairly associated with risk because of incomplete records.

Fairness needs to be tested in the setting where the tool will operate. Pharmacy owners and banner groups should examine false positives and false negatives across age, gender, location, cultural background, disability, language, socioeconomic status, and medicine type. They should also monitor whether alerts lead to different levels of attention, unwanted escalation, or reduced trust. An audit should be capable of stopping the system, not simply documenting its problems after harm occurs.

Keeping Pharmacists In The Decision Loop

A safe adherence tool should fit within the pharmacist’s therapeutic relationship. When an alert appears, the first step should be review of the underlying context. Has the medicine changed? Is the patient in hospital? Has the pharmacy received a request from a carer? Could a delivery delay or PBS issue explain the gap? The pharmacist may then decide that no action is needed, that a discreet conversation is appropriate, or that collaboration with the prescriber is warranted.

Automated messages require equal restraint. A text saying “You have failed to collect your medicine” may cause shame or reveal sensitive information to another person who shares the phone. A neutral message inviting the patient to contact the pharmacy is safer, but even that should reflect the patient’s communication preferences and consent. For some people, a phone call from a known pharmacist will be helpful; for others, a discreet reminder, translated information, or a practical delivery solution will work better.

The intervention should address barriers rather than merely repeat instructions. The pharmacist might arrange a staged supply, medication synchronisation, a dose administration aid, a reminder plan, a discussion about adverse effects, or referral to a prescriber. In Australia, cost matters even when a medicine is subsidised, and patients may be balancing PBS co-payments with rent, food, and transport. A prediction is ethically valuable only when it leads to support that the pharmacy can deliver or coordinate.

Human oversight must be real rather than ceremonial. Staff need authority to disregard a recommendation, record why it was inappropriate, and report recurring errors to the vendor. Clinical software should preserve a distinction between an algorithmic suggestion and a professional decision. It should also prevent automated denial of supply, changes to therapy, or disclosure to a third party without proper clinical and legal grounds.

Governance That Matches The Risk

Before adopting a predictive system, a pharmacy should establish who is accountable for its outcomes. That includes the pharmacy owner, responsible pharmacist, software provider, privacy officer, and any health service receiving an alert. Contracts should specify data ownership, security controls, breach notification, subcontractors, model updates, audit access, and deletion arrangements. A vendor should not be allowed to make broad commercial use of identifiable dispensing information simply because the software is offered as part of a subscription.

The model should be validated before launch and reviewed after implementation. Performance measures should include calibration, false alerts, missed cases, patient complaints, staff workload, and actual health outcomes. A tool that generates many alerts but rarely changes care may exhaust pharmacy teams and reduce attention to patients who need it. Effectiveness should be measured by better support and safer medicine use, not by the number of people classified as high risk.

Procurement teams can draw on established thinking about responsible design, including minimalist design principles that encourage systems to expose only what users need for a legitimate purpose. In a pharmacy setting, that might mean showing a reason for review without displaying unnecessary diagnoses or unrelated personal information. Less data on screen can reduce accidental disclosure and help pharmacists concentrate on the clinical issue.

Patients should have a pathway to challenge an assessment. If an algorithmic alert results in an intrusive call, an unwanted referral, or a record that appears inaccurate, the person should be able to request an explanation and correction. Complaints must be handled by a human with authority to investigate. Clear documentation, regular staff training, privacy impact assessments, and consultation with consumer representatives should form part of ordinary governance rather than a one-off launch exercise.

Artificial intelligence may help community pharmacists find people who are struggling with treatment, but prediction is not care. Ethical practice depends on consent, proportionality, cultural safety, transparency, human judgement, and practical assistance. Pharmacies should begin with a limited purpose, collect only necessary data, test the system against local realities, and pause its use whenever the harms exceed the benefits.

A responsible pharmacy can make adherence support more personal without making patients feel watched. Use technology to create time for better conversations, keep the final decision with a qualified professional, and invite patients and local communities to shape how these tools operate. That is how innovation can strengthen trust at the pharmacy counter rather than weaken it.