public PathologyResultListShortVo(ims.ocrr.vo.beans.PathologyResultListShortVoBean bean) {
   this.id = bean.getId();
   this.version = bean.getVersion();
   this.investigation = bean.getInvestigation() == null ? null : bean.getInvestigation().buildVo();
   this.orderdetails = bean.getOrderDetails() == null ? null : bean.getOrderDetails().buildVo();
   this.resultdemographics =
       bean.getResultDemographics() == null ? null : bean.getResultDemographics().buildVo();
   this.displaydatetime =
       bean.getDisplayDateTime() == null ? null : bean.getDisplayDateTime().buildDateTime();
   this.resultstatus =
       bean.getResultStatus() == null
           ? null
           : ims.ocrr.vo.lookups.ResultStatus.buildLookup(bean.getResultStatus());
   this.displayflag =
       bean.getDisplayFlag() == null
           ? null
           : ims.ocrr.vo.lookups.OcsDisplayFlag.buildLookup(bean.getDisplayFlag());
   this.ordinvcurrentstatus =
       bean.getOrdInvCurrentStatus() == null ? null : bean.getOrdInvCurrentStatus().buildVo();
   this.specimen =
       ims.ocrr.vo.PathologySpecimenLiteVoCollection.buildFromBeanCollection(bean.getSpecimen());
   this.repdatetime = bean.getRepDateTime() == null ? null : bean.getRepDateTime().buildDateTime();
   this.displaytimesupplied = bean.getDisplayTimeSupplied();
   this.resultspecimentype =
       bean.getResultSpecimenType() == null
           ? null
           : bean.getResultSpecimenType().buildLookupInstVo();
   this.resultdetails = bean.getResultDetails() == null ? null : bean.getResultDetails().buildVo();
   this.placerordnum = bean.getPlacerOrdNum();
   this.allocatedhcpforreview =
       bean.getAllocatedHCPforReview() == null ? null : bean.getAllocatedHCPforReview().buildVo();
   this.daterequested =
       bean.getDateRequested() == null ? null : bean.getDateRequested().buildDate();
 }
 public OrderInvestigationWebServiceVo(ims.ocrr.vo.beans.OrderInvestigationWebServiceVoBean bean) {
   this.id = bean.getId();
   this.version = bean.getVersion();
   this.investigation = bean.getInvestigation() == null ? null : bean.getInvestigation().buildVo();
   if (bean.getSpecimen() != null) {
     this.specimen = new ims.ocrr.orderingresults.vo.OrderSpecimenRefVoCollection();
     for (int specimen_i = 0; specimen_i < bean.getSpecimen().length; specimen_i++) {
       this.specimen.add(
           new ims.ocrr.orderingresults.vo.OrderSpecimenRefVo(
               new Integer(bean.getSpecimen()[specimen_i].getId()),
               bean.getSpecimen()[specimen_i].getVersion()));
     }
   }
   this.responsibleclinician =
       bean.getResponsibleClinician() == null
           ? null
           : new ims.core.resource.people.vo.HcpRefVo(
               new Integer(bean.getResponsibleClinician().getId()),
               bean.getResponsibleClinician().getVersion());
   this.responsiblegp =
       bean.getResponsibleGp() == null
           ? null
           : new ims.core.resource.people.vo.GpRefVo(
               new Integer(bean.getResponsibleGp().getId()), bean.getResponsibleGp().getVersion());
   this.patientlocation =
       bean.getPatientLocation() == null
           ? null
           : new ims.core.resource.place.vo.LocationRefVo(
               new Integer(bean.getPatientLocation().getId()),
               bean.getPatientLocation().getVersion());
   this.patientclinic =
       bean.getPatientClinic() == null
           ? null
           : new ims.core.resource.place.vo.ClinicRefVo(
               new Integer(bean.getPatientClinic().getId()), bean.getPatientClinic().getVersion());
   this.orderpriority =
       bean.getOrderPriority() == null
           ? null
           : ims.ocrr.vo.lookups.OrderPriority.buildLookup(bean.getOrderPriority());
   this.repdatetime = bean.getRepDateTime() == null ? null : bean.getRepDateTime().buildDateTime();
   this.reptimesupplied = bean.getRepTimeSupplied();
   this.displaydatetime =
       bean.getDisplayDateTime() == null ? null : bean.getDisplayDateTime().buildDateTime();
   this.displaytimesupplied = bean.getDisplayTimeSupplied();
   this.displayflag =
       bean.getDisplayFlag() == null
           ? null
           : ims.ocrr.vo.lookups.OcsDisplayFlag.buildLookup(bean.getDisplayFlag());
   this.wasordered = bean.getWasOrdered();
   this.resultdemographics =
       bean.getResultDemographics() == null
           ? null
           : new ims.core.patient.vo.MinDemographicsRefVo(
               new Integer(bean.getResultDemographics().getId()),
               bean.getResultDemographics().getVersion());
   this.resultstatus =
       bean.getResultStatus() == null
           ? null
           : ims.ocrr.vo.lookups.ResultStatus.buildLookup(bean.getResultStatus());
   this.ordinvcurrentstatus =
       bean.getOrdInvCurrentStatus() == null ? null : bean.getOrdInvCurrentStatus().buildVo();
   if (bean.getOrdInvStatusHistory() != null) {
     this.ordinvstatushistory =
         new ims.ocrr.orderingresults.vo.OrderedInvestigationStatusRefVoCollection();
     for (int ordinvstatushistory_i = 0;
         ordinvstatushistory_i < bean.getOrdInvStatusHistory().length;
         ordinvstatushistory_i++) {
       this.ordinvstatushistory.add(
           new ims.ocrr.orderingresults.vo.OrderedInvestigationStatusRefVo(
               new Integer(bean.getOrdInvStatusHistory()[ordinvstatushistory_i].getId()),
               bean.getOrdInvStatusHistory()[ordinvstatushistory_i].getVersion()));
     }
   }
   this.fillerordnum = bean.getFillerOrdNum();
   this.radattendanceid = bean.getRadAttendanceId();
   this.appointmentdate =
       bean.getAppointmentDate() == null ? null : bean.getAppointmentDate().buildDateTime();
   this.reasonforstudy = bean.getReasonForStudy();
   this.ordinvseq = bean.getOrdInvSeq();
   this.examreqonafterdate =
       bean.getExamReqOnAfterDate() == null ? null : bean.getExamReqOnAfterDate().buildDate();
   this.requestedlocation =
       bean.getRequestedLocation() == null
           ? null
           : new ims.core.resource.place.vo.LocationRefVo(
               new Integer(bean.getRequestedLocation().getId()),
               bean.getRequestedLocation().getVersion());
   this.performedlocation =
       bean.getPerformedLocation() == null
           ? null
           : new ims.core.resource.place.vo.LocationRefVo(
               new Integer(bean.getPerformedLocation().getId()),
               bean.getPerformedLocation().getVersion());
   this.wasprocessed = bean.getWasProcessed();
   if (bean.getResultHistory() != null) {
     this.resulthistory = new ims.ocrr.orderingresults.vo.OrderResultHistoryRefVoCollection();
     for (int resulthistory_i = 0;
         resulthistory_i < bean.getResultHistory().length;
         resulthistory_i++) {
       this.resulthistory.add(
           new ims.ocrr.orderingresults.vo.OrderResultHistoryRefVo(
               new Integer(bean.getResultHistory()[resulthistory_i].getId()),
               bean.getResultHistory()[resulthistory_i].getVersion()));
     }
   }
   this.entertheatredate =
       bean.getEnterTheatreDate() == null ? null : bean.getEnterTheatreDate().buildDateTime();
   this.startproceduredate =
       bean.getStartProcedureDate() == null ? null : bean.getStartProcedureDate().buildDateTime();
   this.endproceduredate =
       bean.getEndProcedureDate() == null ? null : bean.getEndProcedureDate().buildDateTime();
   this.leaverecoverydate =
       bean.getLeaveRecoveryDate() == null ? null : bean.getLeaveRecoveryDate().buildDateTime();
   this.reporturl = bean.getReportUrl();
   this.reportdocumenturl = bean.getReportDocumentUrl();
   this.investigationdatetime =
       bean.getInvestigationDateTime() == null
           ? null
           : bean.getInvestigationDateTime().buildDateTime();
 }