My question involves medical malpractice in the state of: California

I had my baby at a birthing center. The pediatrician we were going to use told me to call her after the birth to set up an appointment. I did, but because it was a weekend and she wasn't available, she told me to take my baby to a hospital for a colleague to evaluate my baby (she wanted the baby seen in 24 hours). When I got to the hospital, they admitted my baby in NICU and kept telling me that I didn't have prenatal care and that "I should have had my baby in the hospital." They said my daughter "may have an infection" and that they wanted to keep her "just in case." When I said no, they threatened to call CPS on me. I was scared, so I just went along with what they wanted to do. My baby was in there for 3 days. All the tests were negative but they gave her antibiotics "just in case," kept criticizing going to a birthing center. She was fine, no fever, eating great (breastfeeding) and pooping/peeing normally. They wanted to keep her longer, but when I told them I was afraid I wouldn't be able to afford it, they let her go. I defintely feel like the hospital punished me for where I gave birth. what can i do about this?