prescribing the right medication