A medication error is defined as "any preventable event that may cause or lead to inappropriate medication use or patient…