(self)
return XPath.if_(
            within_zeroth_phase,
            self.first_due_date(),
            self.xpath_phase_set
        )
returns the first due date if the case hasn't been visited yet.
returns the first due date if the case hasn't been visited yet.
returns the first due date if the case hasn t been visited yet .
def first_visit_phase_set(self):
        """
        returns the first due date if the case hasn't been visited yet.
        """
        within_zeroth_phase = XPath.and_(
            XPath(self.current_schedule_phase).eq(XPath.string('')),  # No visits yet
            XPath(self.anchor).neq(XPath.string('')),
            self.within_form_relevancy(),
        )

        return XPath.if_(
            within_zeroth_phase,
            self.first_due_date(),
            self.xpath_phase_set
        )
def first_visit_phase_set ( self ) : within_zeroth_phase = XPath . and_ ( XPath ( self . current_schedule_phase ) . eq ( XPath . string ( '' ) ) , # No visits yet XPath ( self . anchor ) . neq ( XPath . string ( '' ) ) , self . within_form_relevancy ( ) , ) return XPath . if_ ( within_zeroth_phase , self . first_due_date ( ) , self . xpath_phase_set )