Hospital pharmacy is responsible for the procurement, storage, compounding, and dispensing of medications within hospitals, aiming to optimize patient outcomes. Key functions include demand forecasting, supplier selection, sterile preparation manufacturing, and drug dispensing, with operational requirements varying based on hospital size. The pharmacy's organization includes separate areas for different services and personnel needs are determined by the hospital's workload.