REFACTOR: clean up serialization and deserialization logic

patients factory touches only date types,
all id/identifier logic is moved into registrationFormObject