The accommodation referred to in this section is for a maximum of five consecutive nights prior to the expected date of delivery, as assessed by a doctor or midwife
The period referred to in the previous paragraph may, if medically necessary, be extended until the actual date of delivery.
In the event of a pathological pregnancy, accommodation may be offered at any time during the pregnancy, without the five-night limit being enforceable. Its necessity and duration are left to medical judgement, within the limit, for the whole of the pregnancy, of a maximum number of nights set under the conditions defined in the decree mentioned in article R. 6111-55.