private void buildHospitalList() {
    if (stillBirthRegistration.getEstablishment() != null
        && stillBirthRegistration.getRegistrarId().getRegUnitId() != null)
      addDropdownData(
          "hospitalList",
          bndCommonService.getHospitalByTypeAndUnit(
              stillBirthRegistration.getEstablishment().getType().getId(),
              stillBirthRegistration.getRegistrarId().getRegUnitId().getId()));
    else addDropdownData("hospitalList", Collections.EMPTY_LIST);

    if (stillBirthRegistration.getCitizenBDDetails() != null
        && stillBirthRegistration.getCitizenBDDetails().getCauseOfDeath() != null
        && stillBirthRegistration.getCitizenBDDetails().getCauseOfDeath().getParent() != null)
      addDropdownData(
          "diseaseList",
          bndCommonService.getCauseofDeathbyParentId(
              stillBirthRegistration.getCitizenBDDetails().getCauseOfDeath().getParent().getId()));
    else addDropdownData("diseaseList", Collections.EMPTY_LIST);
  }
 private void buildPrepareNewForm() {
   stillBirthRegistration.setRegistrarId(bndCommonService.getRegistrarByLoggedInUser());
   if (stillBirthRegistration.getRegistrarId() != null)
     stillBirthRegistration.setRegistrationUnit(
         stillBirthRegistration.getRegistrarId().getRegUnitId());
 }