Is it safe to take 5mg oral diazepam before having IV midazolam?

Maybe. Depends on you, your age, procedures, etc. Need to tell the docs who plan on giving you the IV midazolam- may affect the dose they give you (you may have a tolerance for these drugs, if taken regularly). They may say yes...Or no.