mothersMiddleNameTextField.setText(personWrapper.getMothersMiddleName());
mothersLastNameTextField.setText(personWrapper.getMothersLastName());
compoundHeadsFirstNameTextField.setText(personWrapper.getCompoundHeadFirstName());
compoundHeadsMiddleNameTextField.setText(personWrapper.getCompoundHeadMiddleName());
compoundHeadsLastNameTextField.setText(personWrapper.getCompoundHeadLastName());
Visit v = personWrapper.unwrap().getLastRegularVisit();
if (v == null) {
lastVisitAddress.setText("");
lastVisitDate.setDate(null);
}else{
lastVisitAddress.setText(v.getFacilityName());
lastVisitDate.setDate(v.getVisitDate());
}
hdssDataConsentYesRadioButton.setSelected(personWrapper.getConsentSigned() == Person.ConsentSigned.yes);
hdssDataConsentNoRadioButton.setSelected(personWrapper.getConsentSigned() == Person.ConsentSigned.no);
hdssDataConsentNoAnswerRadioButton.setSelected(personWrapper.getConsentSigned() == Person.ConsentSigned.notAnswered);
hdssDataConsentYesRadioButton.setSelected(false);