ADHD medication

I'm so scared right know I'm 20 weeks pregnant and had my 11years old son ADHD medication. It's methylphenidate 30mg. It was dark and it was the same color and size of my prenatal container. I told my husband to gave me the medication and he got the wrong one. When I went to the kitchen I saw my sons medication in a different location I always put it on and told my husband that if he gave me that medication. He told me that yes so I came to the hospital right away. They told me I should be fine but I'm waiting for an ultrasound.