public static HospitalAtNightPatientDetailVoCollection buildFromBeanCollection(
     ims.clinical.vo.beans.HospitalAtNightPatientDetailVoBean[] beans) {
   HospitalAtNightPatientDetailVoCollection coll = new HospitalAtNightPatientDetailVoCollection();
   if (beans == null) return coll;
   for (int x = 0; x < beans.length; x++) {
     coll.add(beans[x].buildVo());
   }
   return coll;
 }
 public static HospitalAtNightPatientDetailVoCollection buildFromBeanCollection(
     java.util.Collection beans) {
   HospitalAtNightPatientDetailVoCollection coll = new HospitalAtNightPatientDetailVoCollection();
   if (beans == null) return coll;
   java.util.Iterator iter = beans.iterator();
   while (iter.hasNext()) {
     coll.add(((ims.clinical.vo.beans.HospitalAtNightPatientDetailVoBean) iter.next()).buildVo());
   }
   return coll;
 }