Exemplo n.º 1
0
 private void prepareFacilityInformation() {
   if (organizationHome.getInstance().getOrganizationLocationList() != null
       && organizationHome.getInstance().getOrganizationLocationList().size() > 0) {
     OrganizationLocation organizationLocation =
         organizationHome.getInstance().getOrganizationLocationList().get(0);
     billing1500FormHome.getInstance().setFacilityName(organizationHome.getInstance().getName());
     if (organizationLocation.getLocation() != null) {
       billing1500FormHome
           .getInstance()
           .setFacilityAddress(organizationLocation.getLocation().getStreet1());
       billing1500FormHome
           .getInstance()
           .setFacilityCity(organizationLocation.getLocation().getCity());
       billing1500FormHome
           .getInstance()
           .setFacilityState(organizationLocation.getLocation().getState());
       billing1500FormHome
           .getInstance()
           .setFacilityZipCode(organizationLocation.getLocation().getZipcodeId());
     }
   }
 }
Exemplo n.º 2
0
 private void prepareProviderInformation() {
   billing1500FormHome.getInstance().setFederalTaxId(organizationHome.getInstance().getTaxId());
   billing1500FormHome.getInstance().setProviderName(organizationHome.getInstance().getName());
   if (organizationHome.getInstance().getOrganizationLocationList() != null
       && organizationHome.getInstance().getOrganizationLocationList().size() > 0) {
     OrganizationLocation organizationLocation =
         organizationHome.getInstance().getOrganizationLocationList().get(0);
     if (organizationLocation.getLocation() != null) {
       organizationLocationHome.setInstance(organizationLocation);
       billing1500FormHome
           .getInstance()
           .setProviderAddress(organizationLocationHome.getInstance().getLocation().getStreet1());
       billing1500FormHome
           .getInstance()
           .setProviderCity(organizationLocationHome.getInstance().getLocation().getCity());
       billing1500FormHome
           .getInstance()
           .setProviderState(organizationLocationHome.getInstance().getLocation().getState());
       billing1500FormHome
           .getInstance()
           .setProviderZipCode(
               organizationLocationHome.getInstance().getLocation().getZipcodeId());
     } else {
       resetOrganizationLocation();
     }
   } else {
     resetOrganizationLocation();
   }
   if (organizationHome.getInstance().getOrganizationTelephonesList() != null
       && organizationHome.getInstance().getOrganizationTelephonesList().size() > 0) {
     OrganizationTelephone organizationTelephone =
         organizationHome.getInstance().getOrganizationTelephonesList().get(0);
     billing1500FormHome
         .getInstance()
         .setProviderPhone(organizationTelephone.getTelephone().getFullTelephone());
   } else {
     billing1500FormHome.getInstance().setProviderPhone(null);
   }
 }