Im in the same boat as you. Need medicine twice a day for diabetes and a heart condition. When the SHTF, I dont expect the pharmacists will still be at their stations. Im going to look into getting my meds in 3-month quantities.
I found a good source for online Rx fills. The medicines come from different locations outside the US, but are generics produced by reliable companies. You can also search online for a coupon discount code.
Canada Drugs
It is legal and I found their prices were lower than my current deductible. They are a bit slow because of international shipping (2.5 weeks). You can scan your Rx and email it to them. Hope this helps.