Java 类ims.emergency.vo.TrackingAttendanceStatusVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData()
{
    form.getLocalContext().setselectedTracking(domain.getTracking(form.getGlobalContext().Emergency.getTracking()));

    TrackingAttendanceStatusVo currentStatus = form.getLocalContext().getselectedTracking().getCurrentStatus();

    if (currentStatus == null)
        return;

    grdTrackingStatusRowCollection statusCollection = form.grdTrackingStatus().getRows();

    for (int i = 0; i < statusCollection.size(); i++)
    {
        if (statusCollection.get(i).getValue().getID() == currentStatus.getStatus().getID())
        {
            statusCollection.get(i).setcolSelect(true);
            break;
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private TrackingAttendanceStatusVo populateDataFromScreen()
{
    TrackingAttendanceStatusVo attendanceStatus = new TrackingAttendanceStatusVo();
    grdTrackingStatusRowCollection statusCollection = form.grdTrackingStatus().getRows();

    attendanceStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    attendanceStatus.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    attendanceStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    attendanceStatus.setTrackingArea(form.getLocalContext().getselectedTracking().getCurrentArea());
    attendanceStatus.setStatusDatetime(new DateTime());
    attendanceStatus.setCreatedBy((MemberOfStaffLiteVo) domain.getMosUser());

    for (int i = 0; i < statusCollection.size(); i++)
    {
        if (statusCollection.get(i).getcolSelect() == true)
        {
            attendanceStatus.setStatus(statusCollection.get(i).getValue());
            break;
        }
    }

    //WDEV-16777
    attendanceStatus.setPrevStatus((form.getLocalContext().getselectedTracking()!=null && form.getLocalContext().getselectedTracking().getCurrentStatus()!=null  ) ? form.getLocalContext().getselectedTracking().getCurrentStatus().getStatus() : null);

    return attendanceStatus;
}
项目:AvoinApotti    文件:Logic.java   
private TrackingAttendanceStatusVo populateTrackingAttendanceToSave()
{
    TrackingAttendanceStatusVo trackingAttendance = new TrackingAttendanceStatusVo();

    trackingAttendance.setPatient(form.getGlobalContext().Core.getPatientShort());
    trackingAttendance.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    trackingAttendance.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    trackingAttendance.setTrackingArea(form.getLocalContext().getTrackingForReferral().getCurrentArea());
    trackingAttendance.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        trackingAttendance.setCreatedBy((MemberOfStaffLiteVo) mos);
    }

    trackingAttendance.setStatus(ims.emergency.vo.lookups.TrackingStatus.REFERRED_TO_OTHER_SPECIALITY);
    //WDEV-16777
    trackingAttendance.setPrevStatus((form.getLocalContext().getTrackingForReferral()!=null && form.getLocalContext().getTrackingForReferral().getCurrentStatus()!=null  ) ? form.getLocalContext().getTrackingForReferral().getCurrentStatus().getStatus() : null);

    return trackingAttendance;
}
项目:AvoinApotti    文件:Logic.java   
private TrackingAttendanceStatusVo createTrackingStatus(TrackingStatus waitingToBeSeenByAMedic) 
{
    TrackingAttendanceStatusVo status = new TrackingAttendanceStatusVo();

    status.setPatient(form.getGlobalContext().Core.getPatientShort());
    status.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    status.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    status.setTrackingArea(form.getLocalContext().getOldTrackingArea());
    status.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if(mos instanceof MemberOfStaffRefVo)
    {
        status.setCreatedBy((MemberOfStaffRefVo) mos);
    }

    status.setStatus(waitingToBeSeenByAMedic);

    status.setPrevStatus((form.getLocalContext().getSelectedWaitingPatient()!=null && form.getLocalContext().getSelectedWaitingPatient().getCurrentStatus()!=null  ) ? form.getLocalContext().getSelectedWaitingPatient().getCurrentStatus().getStatus() : null);//WDEV-16777

    return status;
}
项目:AvoinApotti    文件:Logic.java   
private TrackingAttendanceStatusVo createTrackingStatus(TrackingStatus waitingToBeSeenByAMedic) 
{
    TrackingAttendanceStatusVo status = new TrackingAttendanceStatusVo();

    status.setPatient(form.getGlobalContext().Core.getPatientShort());
    status.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    status.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    status.setTrackingArea(form.getLocalContext().getOldTrackingArea());
    status.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if(mos instanceof MemberOfStaffRefVo)
    {
        status.setCreatedBy((MemberOfStaffRefVo) mos);
    }

    status.setStatus(waitingToBeSeenByAMedic);
    //WDEV-16777
    status.setPrevStatus((form.getLocalContext().getSelectedTriagePatient()!=null && form.getLocalContext().getSelectedTriagePatient().getCurrentStatus()!=null  ) ? form.getLocalContext().getSelectedTriagePatient().getCurrentStatus().getStatus() : null);

    return status;
}
项目:AvoinApotti    文件:Logic.java   
private TrackingForQuickRegistrationVo populateDataFromScreen(EmergencyAttendanceForPendingArrivalsVo selectedRecord)
{
    TrackingForQuickRegistrationVo trackingToSave = new TrackingForQuickRegistrationVo();

    trackingToSave.setPatient(form.getGlobalContext().Core.getPatientShort());

    EmergencyAttendanceForPendingArrivalsVo emergencyAttendanceToSave = form.getLocalContext().getselectedRecord();
    trackingToSave.setAttendance(emergencyAttendanceToSave);
    trackingToSave.setEpisode(emergencyAttendanceToSave.getEpisode());

    LocationLiteVo currentLocation = (LocationLiteVo) domain.getCurrentLocation();
    trackingToSave.setEDLocation(currentLocation);

    trackingToSave.setCurrentArea(form.getGlobalContext().Emergency.getTrackingAreaForSendToAreaVo());

    TrackingAttendanceStatusVo trackingStatusToSave = populateTrackingAttendanceStatus(ims.emergency.vo.lookups.TrackingStatus.WAITING_TO_BE_TRIAGED);
    trackingToSave.setCurrentStatus(trackingStatusToSave);
    trackingToSave.setDischargeLetterStatus(DischargeLetterStatus.IN_PROGRESS);//wdev-17266

    return trackingToSave;
}
项目:AvoinApotti    文件:Logic.java   
private TrackingAttendanceStatusVo populateTrackingAttendanceStatus(TrackingStatus status)
{
    TrackingAttendanceStatusVo trackingAttStatus = new TrackingAttendanceStatusVo();

    EmergencyAttendanceForPendingArrivalsVo tempRecord = form.getLocalContext().getselectedRecord();

    trackingAttStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    trackingAttStatus.setEpisode(tempRecord.getEpisode().getEpisodeOfCare());
    trackingAttStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    trackingAttStatus.setTrackingArea(form.getGlobalContext().Emergency.getTrackingAreaForSendToAreaVo());

    trackingAttStatus.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        trackingAttStatus.setCreatedBy((MemberOfStaffLiteVo) mos);
    }

    trackingAttStatus.setStatus(status);
    trackingAttStatus.setPrevStatus(null); //WDEV-16777

    return trackingAttStatus;
}
项目:AvoinApotti    文件:Logic.java   
private TrackingAttendanceStatusVo populateTrackingAttendanceStatus(TrackingStatus status)
{
    TrackingAttendanceStatusVo trackingAttStatus = new TrackingAttendanceStatusVo();

    trackingAttStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    trackingAttStatus.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    trackingAttStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    trackingAttStatus.setTrackingArea(form.getLocalContext().getRecord().getCurrentStatus().getPrevTrackingArea());

    trackingAttStatus.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        trackingAttStatus.setCreatedBy((MemberOfStaffLiteVo) mos);
    }

    trackingAttStatus.setStatus(status);
    trackingAttStatus.setPrevStatus((form.getLocalContext().getRecord()!=null && form.getLocalContext().getRecord().getCurrentStatus()!=null  ) ? form.getLocalContext().getRecord().getCurrentStatus().getStatus() : null);

    return trackingAttStatus;
}
项目:AvoinApotti    文件:Logic.java   
private TrackingAttendanceStatusVo createTrackingStatus(TrackingStatus status) 
{
    TrackingAttendanceStatusVo dischargeStatus = new TrackingAttendanceStatusVo();

    dischargeStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    dischargeStatus.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    dischargeStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    dischargeStatus.setTrackingArea(form.grdTrackingCount().getValue() instanceof TrackingAreaForTrackingVo ? (TrackingAreaForTrackingVo) form.grdTrackingCount().getValue() : null);
    dischargeStatus.setStatusDatetime(new DateTime());
    dischargeStatus.setCreatedBy(form.getLocalContext().getLoggedMosRef());
    dischargeStatus.setStatus(status);
    //WDEV-16777
    dischargeStatus.setPrevStatus((form.getLocalContext().getSelectedTrackingPatient()!=null && form.getLocalContext().getSelectedTrackingPatient().getCurrentStatus()!=null  ) ? form.getLocalContext().getSelectedTrackingPatient().getCurrentStatus().getStatus() : null);
    dischargeStatus.setPrevTrackingArea(form.getLocalContext().getSelectedTrackingPatient().getCurrentArea());//WDEV-17119

    return dischargeStatus;
}
项目:AvoinApotti    文件:Logic.java   
private TrackingAttendanceStatusVo populateTrackingAttendanceStatus(TrackingStatus status)
{
    TrackingAttendanceStatusVo trackingAttStatus = new TrackingAttendanceStatusVo();

    trackingAttStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    trackingAttStatus.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    trackingAttStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    trackingAttStatus.setTrackingArea(form.getLocalContext().getcurrentTracking().getCurrentArea());

    trackingAttStatus.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        trackingAttStatus.setCreatedBy((MemberOfStaffLiteVo) mos);
    }

    trackingAttStatus.setStatus(status);
    trackingAttStatus.setPrevStatus((form.getLocalContext().getcurrentTracking()!=null && form.getLocalContext().getcurrentTracking().getCurrentStatus()!=null  ) ? form.getLocalContext().getcurrentTracking().getCurrentStatus().getStatus() : null);

    return trackingAttStatus;
}
项目:AvoinApotti    文件:Logic.java   
private TrackingAttendanceStatusVo populateTrackingAttendanceStatus(TrackingStatus status)
{
    TrackingAttendanceStatusVo trackingAttStatus = new TrackingAttendanceStatusVo();

    trackingAttStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    trackingAttStatus.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    trackingAttStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    trackingAttStatus.setTrackingArea(form.getLocalContext().getcurrentTracking().getCurrentArea());

    trackingAttStatus.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        trackingAttStatus.setCreatedBy((MemberOfStaffLiteVo) mos);
    }

    trackingAttStatus.setStatus(status);
    //WDEV-16777
    trackingAttStatus.setPrevStatus((form.getLocalContext().getcurrentTracking()!=null && form.getLocalContext().getcurrentTracking().getCurrentStatus()!=null  ) ? form.getLocalContext().getcurrentTracking().getCurrentStatus().getStatus() : null);

    return trackingAttStatus;
}
项目:AvoinApotti    文件:Logic.java   
private TrackingAttendanceStatusVo populateTrackingAttendanceStatus(TrackingStatus status)
{
    TrackingAttendanceStatusVo trackingAttStatus = new TrackingAttendanceStatusVo();

    trackingAttStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    trackingAttStatus.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    trackingAttStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    trackingAttStatus.setTrackingArea(form.getLocalContext().getTrackingForReferral().getCurrentArea());

    trackingAttStatus.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        trackingAttStatus.setCreatedBy((MemberOfStaffLiteVo) mos);
    }

    trackingAttStatus.setStatus(status);
    trackingAttStatus.setPrevStatus((form.getLocalContext().getTrackingForReferral()!=null && form.getLocalContext().getTrackingForReferral().getCurrentStatus()!=null  ) ? form.getLocalContext().getTrackingForReferral().getCurrentStatus().getStatus() : null);

    return trackingAttStatus;
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData()
{
    form.getLocalContext().setselectedTracking(domain.getTracking(form.getGlobalContext().Emergency.getTracking()));

    TrackingAttendanceStatusVo currentStatus = form.getLocalContext().getselectedTracking().getCurrentStatus();

    if (currentStatus == null)
        return;

    grdTrackingStatusRowCollection statusCollection = form.grdTrackingStatus().getRows();

    for (int i = 0; i < statusCollection.size(); i++)
    {
        if (statusCollection.get(i).getValue().getID() == currentStatus.getStatus().getID())
        {
            statusCollection.get(i).setcolSelect(true);
            break;
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo populateDataFromScreen()
{
    TrackingAttendanceStatusVo attendanceStatus = new TrackingAttendanceStatusVo();
    grdTrackingStatusRowCollection statusCollection = form.grdTrackingStatus().getRows();

    attendanceStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    attendanceStatus.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    attendanceStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    attendanceStatus.setTrackingArea(form.getLocalContext().getselectedTracking().getCurrentArea());
    attendanceStatus.setStatusDatetime(new DateTime());
    attendanceStatus.setCreatedBy((MemberOfStaffLiteVo) domain.getMosUser());

    for (int i = 0; i < statusCollection.size(); i++)
    {
        if (statusCollection.get(i).getcolSelect() == true)
        {
            attendanceStatus.setStatus(statusCollection.get(i).getValue());
            break;
        }
    }

    //WDEV-16777
    attendanceStatus.setPrevStatus((form.getLocalContext().getselectedTracking()!=null && form.getLocalContext().getselectedTracking().getCurrentStatus()!=null  ) ? form.getLocalContext().getselectedTracking().getCurrentStatus().getStatus() : null);

    return attendanceStatus;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo populateTrackingAttendanceStatus(TrackingStatus status)
{
    TrackingAttendanceStatusVo trackingAttStatus = new TrackingAttendanceStatusVo();

    trackingAttStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    trackingAttStatus.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    trackingAttStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    trackingAttStatus.setTrackingArea(form.getLocalContext().getCurrentTrackingForEdPartialAdmission().getCurrentArea());
    trackingAttStatus.setPrevTrackingArea(form.getLocalContext().getCurrentTrackingForEdPartialAdmission() != null && form.getLocalContext().getCurrentTrackingForEdPartialAdmission().getCurrentStatus() != null ? form.getLocalContext().getCurrentTrackingForEdPartialAdmission().getCurrentStatus().getPrevTrackingArea() : null);

    trackingAttStatus.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        trackingAttStatus.setCreatedBy((MemberOfStaffLiteVo) mos);
    }

    trackingAttStatus.setStatus(status);
    trackingAttStatus.setPrevStatus((form.getLocalContext().getCurrentTrackingForEdPartialAdmission()!=null && form.getLocalContext().getCurrentTrackingForEdPartialAdmission().getCurrentStatus()!=null  ) ? form.getLocalContext().getCurrentTrackingForEdPartialAdmission().getCurrentStatus().getStatus() : null);

    return trackingAttStatus;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo populateTrackingAttendanceStatus(TrackingStatus status)
{
    TrackingAttendanceStatusVo trackingAttStatus = new TrackingAttendanceStatusVo();

    trackingAttStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    trackingAttStatus.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    trackingAttStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    trackingAttStatus.setTrackingArea(form.getLocalContext().getcurrentTracking().getCurrentArea());

    trackingAttStatus.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        trackingAttStatus.setCreatedBy((MemberOfStaffLiteVo) mos);
    }

    trackingAttStatus.setStatus(status);
    trackingAttStatus.setPrevStatus((form.getLocalContext().getcurrentTracking()!=null && form.getLocalContext().getcurrentTracking().getCurrentStatus()!=null  ) ? form.getLocalContext().getcurrentTracking().getCurrentStatus().getStatus() : null);

    return trackingAttStatus;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo populateTrackingAttendanceToSave()
{
    TrackingAttendanceStatusVo trackingAttendance = new TrackingAttendanceStatusVo();

    trackingAttendance.setPatient(form.getGlobalContext().Core.getPatientShort());
    trackingAttendance.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    trackingAttendance.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    trackingAttendance.setTrackingArea(form.getLocalContext().getTrackingForReferral().getCurrentArea());
    trackingAttendance.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        trackingAttendance.setCreatedBy((MemberOfStaffLiteVo) mos);
    }

    trackingAttendance.setStatus(ims.emergency.vo.lookups.TrackingStatus.REFERRED_TO_OTHER_SPECIALITY);
    //WDEV-16777
    trackingAttendance.setPrevStatus((form.getLocalContext().getTrackingForReferral()!=null && form.getLocalContext().getTrackingForReferral().getCurrentStatus()!=null  ) ? form.getLocalContext().getTrackingForReferral().getCurrentStatus().getStatus() : null);

    return trackingAttendance;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo createTrackingStatus(TrackingStatus waitingToBeSeenByAMedic) 
{
    TrackingAttendanceStatusVo status = new TrackingAttendanceStatusVo();

    status.setPatient(form.getGlobalContext().Core.getPatientShort());
    status.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    status.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    status.setTrackingArea(form.getLocalContext().getOldTrackingArea());
    status.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if(mos instanceof MemberOfStaffRefVo)
    {
        status.setCreatedBy((MemberOfStaffRefVo) mos);
    }

    status.setStatus(waitingToBeSeenByAMedic);
    //WDEV-16777
    status.setPrevStatus((form.getLocalContext().getSelectedTriagePatient()!=null && form.getLocalContext().getSelectedTriagePatient().getCurrentStatus()!=null  ) ? form.getLocalContext().getSelectedTriagePatient().getCurrentStatus().getStatus() : null);

    return status;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo createTrackingStatus(TrackingStatus status, TrackingStatus prevTrackingStatus)
{
    TrackingAttendanceStatusVo dischargeStatus = new TrackingAttendanceStatusVo();

    dischargeStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    dischargeStatus.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    dischargeStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());            
    dischargeStatus.setTrackingArea(TrackingStatus.DISCHARGED.equals(status) ? null : getTrackingAreaWithCubicle());    
    dischargeStatus.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();       
    dischargeStatus.setCreatedBy(mos != null && mos instanceof MemberOfStaffRefVo ? (MemberOfStaffRefVo) mos : null);

    dischargeStatus.setStatus(status);
    dischargeStatus.setPrevStatus(prevTrackingStatus);
    dischargeStatus.setPrevTrackingArea(!TrackingStatus.DISCHARGED.equals(status) && form.getLocalContext().getTracking() != null ?  form.getLocalContext().getTracking().getCurrentArea() : getTrackingAreaWithCubicle());

    return dischargeStatus;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingForQuickRegistrationVo populateDataFromScreen(EmergencyAttendanceForPendingArrivalsVo selectedRecord)
{
    TrackingForQuickRegistrationVo trackingToSave = new TrackingForQuickRegistrationVo();

    trackingToSave.setPatient(form.getGlobalContext().Core.getPatientShort());

    EmergencyAttendanceForPendingArrivalsVo emergencyAttendanceToSave = form.getLocalContext().getselectedRecord();
    trackingToSave.setAttendance(emergencyAttendanceToSave);
    trackingToSave.setEpisode(emergencyAttendanceToSave.getEpisode());

    LocationLiteVo currentLocation = (LocationLiteVo) domain.getCurrentLocation();
    trackingToSave.setEDLocation(currentLocation);

    trackingToSave.setCurrentArea(form.getGlobalContext().Emergency.getTrackingAreaForSendToAreaVo());

    TrackingAttendanceStatusVo trackingStatusToSave = populateTrackingAttendanceStatus(ims.emergency.vo.lookups.TrackingStatus.WAITING_TO_BE_TRIAGED);
    trackingToSave.setCurrentStatus(trackingStatusToSave);
    trackingToSave.setDischargeLetterStatus(DischargeLetterStatus.IN_PROGRESS);//wdev-17266

    return trackingToSave;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo populateTrackingAttendanceStatus(TrackingStatus status)
{
    TrackingAttendanceStatusVo trackingAttStatus = new TrackingAttendanceStatusVo();

    EmergencyAttendanceForPendingArrivalsVo tempRecord = form.getLocalContext().getselectedRecord();

    trackingAttStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    trackingAttStatus.setEpisode(tempRecord.getEpisode().getEpisodeOfCare());
    trackingAttStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    trackingAttStatus.setTrackingArea(form.getGlobalContext().Emergency.getTrackingAreaForSendToAreaVo());

    trackingAttStatus.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        trackingAttStatus.setCreatedBy((MemberOfStaffLiteVo) mos);
    }

    trackingAttStatus.setStatus(status);
    trackingAttStatus.setPrevStatus(null); //WDEV-16777

    return trackingAttStatus;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo populateTrackingAttendanceStatus(TrackingStatus status)
{
    TrackingAttendanceStatusVo trackingAttStatus = new TrackingAttendanceStatusVo();

    trackingAttStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    trackingAttStatus.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    trackingAttStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    trackingAttStatus.setTrackingArea(form.getLocalContext().getRecord().getCurrentStatus().getPrevTrackingArea());

    trackingAttStatus.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        trackingAttStatus.setCreatedBy((MemberOfStaffLiteVo) mos);
    }

    trackingAttStatus.setStatus(status);
    trackingAttStatus.setPrevStatus((form.getLocalContext().getRecord()!=null && form.getLocalContext().getRecord().getCurrentStatus()!=null  ) ? form.getLocalContext().getRecord().getCurrentStatus().getStatus() : null);

    return trackingAttStatus;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo createTrackingStatus(TrackingStatus status) 
{
    TrackingAttendanceStatusVo dischargeStatus = new TrackingAttendanceStatusVo();

    dischargeStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    dischargeStatus.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    dischargeStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    dischargeStatus.setTrackingArea(form.grdTrackingCount().getValue() instanceof TrackingAreaForTrackingVo ? (TrackingAreaForTrackingVo) form.grdTrackingCount().getValue() : null);
    dischargeStatus.setStatusDatetime(new DateTime());
    dischargeStatus.setCreatedBy(form.getLocalContext().getLoggedMosRef());
    dischargeStatus.setStatus(status);
    //WDEV-16777
    dischargeStatus.setPrevStatus((form.getLocalContext().getSelectedTrackingPatient()!=null && form.getLocalContext().getSelectedTrackingPatient().getCurrentStatus()!=null  ) ? form.getLocalContext().getSelectedTrackingPatient().getCurrentStatus().getStatus() : null);
    dischargeStatus.setPrevTrackingArea(form.getLocalContext().getSelectedTrackingPatient().getCurrentArea());//WDEV-17119

    return dischargeStatus;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo populateTrackingAttendanceStatus(TrackingStatus prevStatus) 
{
    TrackingAttendanceStatusVo trackingAttStatus = new TrackingAttendanceStatusVo();

    trackingAttStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    trackingAttStatus.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    trackingAttStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    trackingAttStatus.setTrackingArea(form.getLocalContext().getlcCurrentTrackingRecord().getCurrentArea());

    trackingAttStatus.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if (mos != null && mos instanceof MemberOfStaffLiteVo)
    {
        trackingAttStatus.setCreatedBy((MemberOfStaffLiteVo) mos);
    }

    trackingAttStatus.setStatus(prevStatus);
    trackingAttStatus.setPrevStatus((form.getLocalContext().getlcCurrentTrackingRecord()!=null && form.getLocalContext().getlcCurrentTrackingRecord().getCurrentStatus()!=null  ) ? form.getLocalContext().getlcCurrentTrackingRecord().getCurrentStatus().getStatus() : null);

    return trackingAttStatus;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo populateTrackingAttendanceStatus(TrackingStatus status)
{
    TrackingAttendanceStatusVo trackingAttStatus = new TrackingAttendanceStatusVo();

    trackingAttStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    trackingAttStatus.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    trackingAttStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    trackingAttStatus.setTrackingArea(form.getLocalContext().getcurrentTracking().getCurrentArea());

    trackingAttStatus.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        trackingAttStatus.setCreatedBy((MemberOfStaffLiteVo) mos);
    }

    trackingAttStatus.setStatus(status);
    trackingAttStatus.setPrevStatus((form.getLocalContext().getcurrentTracking()!=null && form.getLocalContext().getcurrentTracking().getCurrentStatus()!=null  ) ? form.getLocalContext().getcurrentTracking().getCurrentStatus().getStatus() : null);

    return trackingAttStatus;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo populateTrackingAttendanceStatus(TrackingStatus status)
{
    TrackingAttendanceStatusVo trackingAttStatus = new TrackingAttendanceStatusVo();

    trackingAttStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    trackingAttStatus.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    trackingAttStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    trackingAttStatus.setTrackingArea(form.getLocalContext().getcurrentTracking().getCurrentArea());

    trackingAttStatus.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        trackingAttStatus.setCreatedBy((MemberOfStaffLiteVo) mos);
    }

    trackingAttStatus.setStatus(status);
    //WDEV-16777
    trackingAttStatus.setPrevStatus((form.getLocalContext().getcurrentTracking()!=null && form.getLocalContext().getcurrentTracking().getCurrentStatus()!=null  ) ? form.getLocalContext().getcurrentTracking().getCurrentStatus().getStatus() : null);

    return trackingAttStatus;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo populateTrackingAttendanceStatus(TrackingStatus status)
{
    TrackingAttendanceStatusVo trackingAttStatus = new TrackingAttendanceStatusVo();

    trackingAttStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    trackingAttStatus.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    trackingAttStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    trackingAttStatus.setTrackingArea(form.getLocalContext().getTrackingForReferral().getCurrentArea());

    trackingAttStatus.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        trackingAttStatus.setCreatedBy((MemberOfStaffLiteVo) mos);
    }

    trackingAttStatus.setStatus(status);
    trackingAttStatus.setPrevStatus((form.getLocalContext().getTrackingForReferral()!=null && form.getLocalContext().getTrackingForReferral().getCurrentStatus()!=null  ) ? form.getLocalContext().getTrackingForReferral().getCurrentStatus().getStatus() : null);

    return trackingAttStatus;
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData()
{
    form.getLocalContext().setselectedTracking(domain.getTracking(form.getGlobalContext().Emergency.getTracking()));

    TrackingAttendanceStatusVo currentStatus = form.getLocalContext().getselectedTracking().getCurrentStatus();

    if (currentStatus == null)
        return;

    grdTrackingStatusRowCollection statusCollection = form.grdTrackingStatus().getRows();

    for (int i = 0; i < statusCollection.size(); i++)
    {
        if (statusCollection.get(i).getValue().getID() == currentStatus.getStatus().getID())
        {
            statusCollection.get(i).setcolSelect(true);
            break;
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo populateDataFromScreen()
{
    TrackingAttendanceStatusVo attendanceStatus = new TrackingAttendanceStatusVo();
    grdTrackingStatusRowCollection statusCollection = form.grdTrackingStatus().getRows();

    attendanceStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    attendanceStatus.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    attendanceStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    attendanceStatus.setTrackingArea(form.getLocalContext().getselectedTracking().getCurrentArea());
    attendanceStatus.setStatusDatetime(new DateTime());
    attendanceStatus.setCreatedBy((MemberOfStaffLiteVo) domain.getMosUser());

    for (int i = 0; i < statusCollection.size(); i++)
    {
        if (statusCollection.get(i).getcolSelect() == true)
        {
            attendanceStatus.setStatus(statusCollection.get(i).getValue());
            break;
        }
    }

    //WDEV-16777
    attendanceStatus.setPrevStatus((form.getLocalContext().getselectedTracking()!=null && form.getLocalContext().getselectedTracking().getCurrentStatus()!=null  ) ? form.getLocalContext().getselectedTracking().getCurrentStatus().getStatus() : null);

    return attendanceStatus;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo populateTrackingAttendanceToSave()
{
    TrackingAttendanceStatusVo trackingAttendance = new TrackingAttendanceStatusVo();

    trackingAttendance.setPatient(form.getGlobalContext().Core.getPatientShort());
    trackingAttendance.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    trackingAttendance.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    trackingAttendance.setTrackingArea(form.getLocalContext().getTrackingForReferral().getCurrentArea());
    trackingAttendance.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        trackingAttendance.setCreatedBy((MemberOfStaffLiteVo) mos);
    }

    trackingAttendance.setStatus(ims.emergency.vo.lookups.TrackingStatus.REFERRED_TO_OTHER_SPECIALITY);
    //WDEV-16777
    trackingAttendance.setPrevStatus((form.getLocalContext().getTrackingForReferral()!=null && form.getLocalContext().getTrackingForReferral().getCurrentStatus()!=null  ) ? form.getLocalContext().getTrackingForReferral().getCurrentStatus().getStatus() : null);

    return trackingAttendance;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo createTrackingStatus(TrackingStatus waitingToBeSeenByAMedic) 
{
    TrackingAttendanceStatusVo status = new TrackingAttendanceStatusVo();

    status.setPatient(form.getGlobalContext().Core.getPatientShort());
    status.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    status.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    status.setTrackingArea(form.getLocalContext().getOldTrackingArea());
    status.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if(mos instanceof MemberOfStaffRefVo)
    {
        status.setCreatedBy((MemberOfStaffRefVo) mos);
    }

    status.setStatus(waitingToBeSeenByAMedic);

    status.setPrevStatus((form.getLocalContext().getSelectedWaitingPatient()!=null && form.getLocalContext().getSelectedWaitingPatient().getCurrentStatus()!=null  ) ? form.getLocalContext().getSelectedWaitingPatient().getCurrentStatus().getStatus() : null);//WDEV-16777

    return status;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo createTrackingStatus(TrackingStatus waitingToBeSeenByAMedic) 
{
    TrackingAttendanceStatusVo status = new TrackingAttendanceStatusVo();

    status.setPatient(form.getGlobalContext().Core.getPatientShort());
    status.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    status.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    status.setTrackingArea(form.getLocalContext().getOldTrackingArea());
    status.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if(mos instanceof MemberOfStaffRefVo)
    {
        status.setCreatedBy((MemberOfStaffRefVo) mos);
    }

    status.setStatus(waitingToBeSeenByAMedic);
    //WDEV-16777
    status.setPrevStatus((form.getLocalContext().getSelectedTriagePatient()!=null && form.getLocalContext().getSelectedTriagePatient().getCurrentStatus()!=null  ) ? form.getLocalContext().getSelectedTriagePatient().getCurrentStatus().getStatus() : null);

    return status;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingForQuickRegistrationVo populateDataFromScreen(EmergencyAttendanceForPendingArrivalsVo selectedRecord)
{
    TrackingForQuickRegistrationVo trackingToSave = new TrackingForQuickRegistrationVo();

    trackingToSave.setPatient(form.getGlobalContext().Core.getPatientShort());

    EmergencyAttendanceForPendingArrivalsVo emergencyAttendanceToSave = form.getLocalContext().getselectedRecord();
    trackingToSave.setAttendance(emergencyAttendanceToSave);
    trackingToSave.setEpisode(emergencyAttendanceToSave.getEpisode());

    LocationLiteVo currentLocation = (LocationLiteVo) domain.getCurrentLocation();
    trackingToSave.setEDLocation(currentLocation);

    trackingToSave.setCurrentArea(form.getGlobalContext().Emergency.getTrackingAreaForSendToAreaVo());

    TrackingAttendanceStatusVo trackingStatusToSave = populateTrackingAttendanceStatus(ims.emergency.vo.lookups.TrackingStatus.WAITING_TO_BE_TRIAGED);
    trackingToSave.setCurrentStatus(trackingStatusToSave);
    trackingToSave.setDischargeLetterStatus(DischargeLetterStatus.IN_PROGRESS);//wdev-17266

    return trackingToSave;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo populateTrackingAttendanceStatus(TrackingStatus status)
{
    TrackingAttendanceStatusVo trackingAttStatus = new TrackingAttendanceStatusVo();

    EmergencyAttendanceForPendingArrivalsVo tempRecord = form.getLocalContext().getselectedRecord();

    trackingAttStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    trackingAttStatus.setEpisode(tempRecord.getEpisode().getEpisodeOfCare());
    trackingAttStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    trackingAttStatus.setTrackingArea(form.getGlobalContext().Emergency.getTrackingAreaForSendToAreaVo());

    trackingAttStatus.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        trackingAttStatus.setCreatedBy((MemberOfStaffLiteVo) mos);
    }

    trackingAttStatus.setStatus(status);
    trackingAttStatus.setPrevStatus(null); //WDEV-16777

    return trackingAttStatus;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo populateTrackingAttendanceStatus(TrackingStatus status)
{
    TrackingAttendanceStatusVo trackingAttStatus = new TrackingAttendanceStatusVo();

    trackingAttStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    trackingAttStatus.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    trackingAttStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    trackingAttStatus.setTrackingArea(form.getLocalContext().getRecord().getCurrentStatus().getPrevTrackingArea());

    trackingAttStatus.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        trackingAttStatus.setCreatedBy((MemberOfStaffLiteVo) mos);
    }

    trackingAttStatus.setStatus(status);
    trackingAttStatus.setPrevStatus((form.getLocalContext().getRecord()!=null && form.getLocalContext().getRecord().getCurrentStatus()!=null  ) ? form.getLocalContext().getRecord().getCurrentStatus().getStatus() : null);

    return trackingAttStatus;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo createTrackingStatus(TrackingStatus status) 
{
    TrackingAttendanceStatusVo dischargeStatus = new TrackingAttendanceStatusVo();

    dischargeStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    dischargeStatus.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    dischargeStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    dischargeStatus.setTrackingArea(form.grdTrackingCount().getValue() instanceof TrackingAreaForTrackingVo ? (TrackingAreaForTrackingVo) form.grdTrackingCount().getValue() : null);
    dischargeStatus.setStatusDatetime(new DateTime());
    dischargeStatus.setCreatedBy(form.getLocalContext().getLoggedMosRef());
    dischargeStatus.setStatus(status);
    //WDEV-16777
    dischargeStatus.setPrevStatus((form.getLocalContext().getSelectedTrackingPatient()!=null && form.getLocalContext().getSelectedTrackingPatient().getCurrentStatus()!=null  ) ? form.getLocalContext().getSelectedTrackingPatient().getCurrentStatus().getStatus() : null);
    dischargeStatus.setPrevTrackingArea(form.getLocalContext().getSelectedTrackingPatient().getCurrentArea());//WDEV-17119

    return dischargeStatus;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo populateTrackingAttendanceStatus(TrackingStatus status)
{
    TrackingAttendanceStatusVo trackingAttStatus = new TrackingAttendanceStatusVo();

    trackingAttStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    trackingAttStatus.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    trackingAttStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    trackingAttStatus.setTrackingArea(form.getLocalContext().getcurrentTracking().getCurrentArea());

    trackingAttStatus.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        trackingAttStatus.setCreatedBy((MemberOfStaffLiteVo) mos);
    }

    trackingAttStatus.setStatus(status);
    trackingAttStatus.setPrevStatus((form.getLocalContext().getcurrentTracking()!=null && form.getLocalContext().getcurrentTracking().getCurrentStatus()!=null  ) ? form.getLocalContext().getcurrentTracking().getCurrentStatus().getStatus() : null);

    return trackingAttStatus;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo populateTrackingAttendanceStatus(TrackingStatus status)
{
    TrackingAttendanceStatusVo trackingAttStatus = new TrackingAttendanceStatusVo();

    trackingAttStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    trackingAttStatus.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    trackingAttStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    trackingAttStatus.setTrackingArea(form.getLocalContext().getcurrentTracking().getCurrentArea());

    trackingAttStatus.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        trackingAttStatus.setCreatedBy((MemberOfStaffLiteVo) mos);
    }

    trackingAttStatus.setStatus(status);
    //WDEV-16777
    trackingAttStatus.setPrevStatus((form.getLocalContext().getcurrentTracking()!=null && form.getLocalContext().getcurrentTracking().getCurrentStatus()!=null  ) ? form.getLocalContext().getcurrentTracking().getCurrentStatus().getStatus() : null);

    return trackingAttStatus;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAttendanceStatusVo populateTrackingAttendanceStatus(TrackingStatus status)
{
    TrackingAttendanceStatusVo trackingAttStatus = new TrackingAttendanceStatusVo();

    trackingAttStatus.setPatient(form.getGlobalContext().Core.getPatientShort());
    trackingAttStatus.setEpisode(form.getGlobalContext().Core.getEpisodeofCareShort());
    trackingAttStatus.setAttendance(form.getGlobalContext().Core.getCurrentCareContext());
    trackingAttStatus.setTrackingArea(form.getLocalContext().getTrackingForReferral().getCurrentArea());

    trackingAttStatus.setStatusDatetime(new DateTime());

    Object mos = domain.getMosUser();
    if (mos instanceof MemberOfStaffLiteVo)
    {
        trackingAttStatus.setCreatedBy((MemberOfStaffLiteVo) mos);
    }

    trackingAttStatus.setStatus(status);
    trackingAttStatus.setPrevStatus((form.getLocalContext().getTrackingForReferral()!=null && form.getLocalContext().getTrackingForReferral().getCurrentStatus()!=null  ) ? form.getLocalContext().getTrackingForReferral().getCurrentStatus().getStatus() : null);

    return trackingAttStatus;
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData()
{
    form.getLocalContext().setselectedTracking(domain.getTracking(form.getGlobalContext().Emergency.getTracking()));

    TrackingAttendanceStatusVo currentStatus = form.getLocalContext().getselectedTracking().getCurrentStatus();

    if (currentStatus == null)
        return;

    grdTrackingStatusRowCollection statusCollection = form.grdTrackingStatus().getRows();

    for (int i = 0; i < statusCollection.size(); i++)
    {
        if (statusCollection.get(i).getValue().getID() == currentStatus.getStatus().getID())
        {
            statusCollection.get(i).setcolSelect(true);
            break;
        }
    }
}