Fixes Automations for Compound Medications in Prescribe

Fixed an issue where prescribe automations failed to trigger correctly when a compound medication was included.