/**
  * Copy one ValueObject to another
  *
  * @param valueObjectDest to be updated
  * @param valueObjectSrc to copy values from
  */
 public static ims.emergency.vo.TrackingforDecisionToAdmitDialogVo copy(
     ims.emergency.vo.TrackingforDecisionToAdmitDialogVo valueObjectDest,
     ims.emergency.vo.TrackingforDecisionToAdmitDialogVo valueObjectSrc) {
   if (null == valueObjectSrc) {
     return valueObjectSrc;
   }
   valueObjectDest.setID_Tracking(valueObjectSrc.getID_Tracking());
   valueObjectDest.setIsRIE(valueObjectSrc.getIsRIE());
   // BedAvailability
   valueObjectDest.setBedAvailability(valueObjectSrc.getBedAvailability());
   // AssociatedPendingEmergencyAdmission
   valueObjectDest.setAssociatedPendingEmergencyAdmission(
       valueObjectSrc.getAssociatedPendingEmergencyAdmission());
   // Patient
   valueObjectDest.setPatient(valueObjectSrc.getPatient());
   // Attendance
   valueObjectDest.setAttendance(valueObjectSrc.getAttendance());
   // Episode
   valueObjectDest.setEpisode(valueObjectSrc.getEpisode());
   // TriageDetails
   valueObjectDest.setTriageDetails(valueObjectSrc.getTriageDetails());
   // CurrentArea
   valueObjectDest.setCurrentArea(valueObjectSrc.getCurrentArea());
   // isDischarged
   valueObjectDest.setIsDischarged(valueObjectSrc.getIsDischarged());
   // CurrentStatus
   valueObjectDest.setCurrentStatus(valueObjectSrc.getCurrentStatus());
   // SeenBy
   valueObjectDest.setSeenBy(valueObjectSrc.getSeenBy());
   // CurrentReferral
   valueObjectDest.setCurrentReferral(valueObjectSrc.getCurrentReferral());
   // SeenByNurse
   valueObjectDest.setSeenByNurse(valueObjectSrc.getSeenByNurse());
   return valueObjectDest;
 }
  /**
   * Update the ValueObject with the Domain Object.
   *
   * @param map DomainObjectMap of DomainObjects to already created ValueObjects.
   * @param valueObject to be updated
   * @param domainObject ims.emergency.domain.objects.Tracking
   */
  public static ims.emergency.vo.TrackingforDecisionToAdmitDialogVo insert(
      DomainObjectMap map,
      ims.emergency.vo.TrackingforDecisionToAdmitDialogVo valueObject,
      ims.emergency.domain.objects.Tracking domainObject) {
    if (null == domainObject) {
      return valueObject;
    }
    if (null == map) {
      map = new DomainObjectMap();
    }

    valueObject.setID_Tracking(domainObject.getId());
    valueObject.setIsRIE(domainObject.getIsRIE());

    // If this is a recordedInError record, and the domainObject
    // value isIncludeRecord has not been set, then we return null and
    // not the value object
    if (valueObject.getIsRIE() != null
        && valueObject.getIsRIE().booleanValue() == true
        && !domainObject.isIncludeRecord()) return null;

    // If this is not a recordedInError record, and the domainObject
    // value isIncludeRecord has been set, then we return null and
    // not the value object
    if ((valueObject.getIsRIE() == null || valueObject.getIsRIE().booleanValue() == false)
        && domainObject.isIncludeRecord()) return null;

    // BedAvailability
    valueObject.setBedAvailability(
        ims.emergency.vo.domain.BedAvailabilityForTrackVoAssembler.create(
            map, domainObject.getBedAvailability()));
    // AssociatedPendingEmergencyAdmission
    valueObject.setAssociatedPendingEmergencyAdmission(
        ims.emergency.vo.domain.PendingEmergencyAdmissionShortVoAssembler.create(
            map, domainObject.getAssociatedPendingEmergencyAdmission()));
    // Patient
    valueObject.setPatient(
        ims.emergency.vo.domain.PatientForTriageVoAssembler.create(map, domainObject.getPatient()));
    // Attendance
    valueObject.setAttendance(
        ims.emergency.vo.domain.EmergencyAttendanceForTriageLiteVoAssembler.create(
            map, domainObject.getAttendance()));
    // Episode
    valueObject.setEpisode(
        ims.emergency.vo.domain.EmergencyEpisodeForTriageLiteVoAssembler.create(
            map, domainObject.getEpisode()));
    // TriageDetails
    valueObject.setTriageDetails(
        ims.emergency.vo.domain.TriageForClinicianWorklistVoAssembler.create(
            map, domainObject.getTriageDetails()));
    // CurrentArea
    valueObject.setCurrentArea(
        ims.emergency.vo.domain.TrackingAreaLiteVoAssembler.create(
            map, domainObject.getCurrentArea()));
    // isDischarged
    valueObject.setIsDischarged(domainObject.isIsDischarged());
    // CurrentStatus
    valueObject.setCurrentStatus(
        ims.emergency.vo.domain.TrackingAttendanceStatusVoAssembler.create(
            map, domainObject.getCurrentStatus()));
    // SeenBy
    valueObject.setSeenBy(
        ims.emergency.vo.domain.SeenByHCPForEDAssessmentComponentVoAssembler.create(
            map, domainObject.getSeenBy()));
    // CurrentReferral
    valueObject.setCurrentReferral(
        ims.emergency.vo.domain.ReferralToSpecialtyTeamForEDAssessmentComponentVoAssembler.create(
            map, domainObject.getCurrentReferral()));
    // SeenByNurse
    valueObject.setSeenByNurse(
        ims.emergency.vo.domain.SeenByHCPForEDAssessmentComponentVoAssembler.create(
            map, domainObject.getSeenByNurse()));
    return valueObject;
  }