Only if you were officially referred to this service by a medical professional.
Usually this is not the case, as a doctor would generally counsel and refer hospitalization for an at-risk pregnancy. This was recently the case with my daughter. She had a doula lined up, but was forced to be hospitalized with a first child at 41 years old and with Oedema of pregnancy, which can be fatal.
If you simply opt for doula service as a personal preference, that is fine, but not eligible for medical expense credit.