So they confiscated morphine or whatever, medications already paid for and so forth? Not only is that theft, but the people at hospital are probably cooking them and banging them up as soon as the patient is out in the car park.
Never take more than a couple of hours' worth of meds with you to the emergency department. And conceal them. If they don't confiscate them, if you are in an automobile accident, have a hole in your pocket, get jacked or whatever, most doctors will not replace them, nor chemists honour a script to replace them, and if they do, the bastard Bolshevik fat-arse junior detective wannabe terrorist Chekist narcotic inspectors will lower the boom on them.,
Furthermore, unless it is a case of a regular tablet count for a chronic pain narcotic contract, any doctor's office telling you to bring all your medications into an appointment should not be listened to. They should have on the computer a comprehensive list with full prescribing and fill information, notes and ICD-10 code of the diagnosis for everything prescribed for you, every OTC and herbal and foreign-sourced OTC you take about which you have told them, going back 15 years or to birth, and you do not want to give any ignorant junky nurse or arsehole young whippersmapper hotshot fuckhead Wahabist trash obscurantist croaker doctor a chance to confiscate your narcotics, benzos, stimulants, anticholinergics, barbs, or whatever else they are jonesing for that day.