code: public static Constraint hasDifferentCompartments()
  	{
  		String acStr = "PhysicalEntity/cellularLocation/term";
  		return new Field(acStr, acStr, Field.Operation.NOT_EMPTY_AND_NOT_INTERSECT);
  	}
docs: Checks if two physical entities have non-empty and different compartments.
  @return the constraint