Primrose oil???

I just got back from my midwife appointment. I'm needing to be induced early at 38 weeks for medical reasons and she wants to start me on primrose oil at 36 weeks. What's the purpose of this? I should have asked but it was a quick app