If both period start date and period end date are given, the period end date shall be later or equal to the period start date.
cv:Period(exists(cv:EndDate) and exists(cv:StartDate) and xs:date(cv:EndDate) >= xs:date(cv:StartDate)) or not(exists(cv:StartDate)) or not(exists(cv:EndDate))