(self)
return XPath.or_(
            XPath("{} = 'True'".format(self.fixture.unscheduled_visits())),
            num_upcoming_visits_gt_0
        )
{schedule}/@allow_unscheduled = 'True' or
        count({upcoming_scheduled_visits} > 0)
{schedule}/
{ schedule } /
def visit_allowed(self):
        """
        {schedule}/@allow_unscheduled = 'True' or
        count({upcoming_scheduled_visits} > 0)
        """
        num_upcoming_visits = XPath.count(self.upcoming_scheduled_visits())
        num_upcoming_visits_gt_0 = XPath('{} > 0'.format(num_upcoming_visits))
        return XPath.or_(
            XPath("{} = 'True'".format(self.fixture.unscheduled_visits())),
            num_upcoming_visits_gt_0
        )
def visit_allowed ( self ) : num_upcoming_visits = XPath . count ( self . upcoming_scheduled_visits ( ) ) num_upcoming_visits_gt_0 = XPath ( '{} > 0' . format ( num_upcoming_visits ) ) return XPath . or_ ( XPath ( "{} = 'True'" . format ( self . fixture . unscheduled_visits ( ) ) ) , num_upcoming_visits_gt_0 )