Constraint Descriptor : constraint_hpd_common_PostalAddressStatus (type: ERROR, kind: )

Constraint : constraint_hpd_common_PostalAddressStatus

Constraint Name
constraint_hpd_common_PostalAddressStatus (type: ERROR, kind: )
Constraint Class
PostalAddressAttrTemplate
Package
hpdCommon
Description
Valid values for postal address status are Primary, Secondary, Inactive (see Table 3.58.4.1.2.3-1: Status Code Category Values)
OCL
self.value->forAll(val: String |
  			                self.matches(val.toLowerCase(), '.*(status=primary|status=secondary|status=inactive){1}.*', true) xor not self.matches(val,
  			                '.*(status=){1}.*', true)
  			)