An ultrasound will be done as soon as possible to confirm heart rate, placement, and dating of the pregnancy. The doctor or another medical provider will prescribe progesterone, given as a pill to be taken orally or vaginally or possibly by intramuscular injection. The treatment will usually continue through the first trimester of pregnancy.