Community pharmacy deals directly with patients in the local area, dispensing and counseling on prescription drugs. The role of community pharmacists has expanded beyond dispensing to include primary healthcare roles like health promotion and advising other healthcare professionals. Public health aims to prevent disease and promote health through organized community efforts like sanitation, disease control, and access to care. It focuses on entire populations rather than individual patients. Social and administrative pharmacy considers the social, legal, economic, and policy factors influencing medication use to optimize the safe and rational use of drugs in society.