Java 类ims.clinical.vo.VTERiskAssessmentWorklistCriteriaVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateSearchCriteriaScreenFromData(VTERiskAssessmentWorklistCriteriaVo criteria) 
{
    clearScreen();

    if(criteria == null)
        return;

    form.cmbHospital().setValue(criteria.getHospital());

    if(criteria.getWardIsNotNull())
    {
        form.qmbWard().newRow(criteria.getWard(), criteria.getWard().getName());
    }
    form.qmbWard().setValue(criteria.getWard());

    if(criteria.getCurrentWardIsNotNull())
    {
        form.qmbCurrentWard().newRow(criteria.getCurrentWard(), criteria.getCurrentWard().getName());
    }
    form.qmbCurrentWard().setValue(criteria.getCurrentWard());

    form.dtimFrom().setValue(criteria.getAdmissionDateFrom());
    form.dtimTo().setValue(criteria.getAdmissionDateTo());
    form.ccConsultant().setValue(criteria.getConsultant());
    form.cmbSpecialty().setValue(criteria.getSpecialty());
    form.cmbVTEStatus().setValue(criteria.getVTEStatus());
    form.txtSurname().setValue(criteria.getSurname());
    form.txtForename().setValue(criteria.getForename());
    form.cmbIDType().setValue(criteria.getPatIdType() != null ? criteria.getPatIdType() : PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue()));
    form.txtIDValue().setValue(criteria.getPatIdValue());
    form.pdtDOB().setValue(criteria.getDOB());
    form.chkOver24Hours().setValue(criteria.getOver24Hours());

    form.grdPatients().getRows().clear();
}
项目:AvoinApotti    文件:Logic.java   
private VTERiskAssessmentWorklistCriteriaVo populateSearchCriteriaDataFromScreen() 
{
    VTERiskAssessmentWorklistCriteriaVo criteria = new VTERiskAssessmentWorklistCriteriaVo();

    criteria.setHospital(form.cmbHospital().getValue());
    criteria.setWard(form.qmbWard().getValue());
    criteria.setCurrentWard(form.qmbCurrentWard().getValue());
    criteria.setAdmissionDateFrom(form.dtimFrom().getValue());
    criteria.setAdmissionDateTo(form.dtimTo().getValue());
    criteria.setConsultant(form.ccConsultant().getValue());
    criteria.setSpecialty(form.cmbSpecialty().getValue());
    criteria.setVTEStatus(form.cmbVTEStatus().getValue());
    criteria.setSurname(form.txtSurname().getValue());
    criteria.setForename(form.txtForename().getValue());

    if(form.txtIDValue().getValue() != null)
    {
        criteria.setPatIdType(form.cmbIDType().getValue());
        criteria.setPatIdValue(form.txtIDValue().getValue());
    }

    criteria.setDOB(form.pdtDOB().getValue());
    criteria.setOver24Hours(form.chkOver24Hours().getValue());
    criteria.setWasTimerOn(form.getLocalContext().getWasTimerOn());

    return criteria;
}
项目:AvoinApotti    文件:VTERiskAssessmentWorklistImpl.java   
public List<IVTERiskAssessment> listPatients(VTERiskAssessmentWorklistCriteriaVo criteria) 
{
    if(new VTERiskAssessmentWorklistCriteriaVo().equals(criteria))
        throw new CodingRuntimeException("At least one search criteria must be provided");

    //WDEV-15414 - starts here
    IVTERiskAssessment[] vteInatientList = listFromInpatientEpisode(criteria);
    IVTERiskAssessment[] vteDischargeList = listFromDischargeEpisode(criteria);

    if(vteInatientList == null && vteDischargeList == null)
        return null;

    List<IVTERiskAssessment> vteList = new ArrayList<IVTERiskAssessment>();

    if(vteInatientList != null)
    {
        for(int i=0; i<vteInatientList.length; i++)
        {
            vteList.add(vteInatientList[i]);
        }
    }

    if(vteDischargeList != null)
    {
        for(int i=0; i<vteDischargeList.length; i++)
        {
            vteList.add(vteDischargeList[i]);
        }
    }

    return vteList;
    //WDEV-15414 - ends here
}
项目:openMAXIMS    文件:Logic.java   
private void populateSearchCriteriaScreenFromData(VTERiskAssessmentWorklistCriteriaVo criteria) 
{
    clearScreen();

    if(criteria == null)
        return;

    form.cmbHospital().setValue(criteria.getHospital());

    if(criteria.getWardIsNotNull())
    {
        form.qmbWard().newRow(criteria.getWard(), criteria.getWard().getName());
    }
    form.qmbWard().setValue(criteria.getWard());

    if(criteria.getCurrentWardIsNotNull())
    {
        form.qmbCurrentWard().newRow(criteria.getCurrentWard(), criteria.getCurrentWard().getName());
    }
    form.qmbCurrentWard().setValue(criteria.getCurrentWard());

    form.dtimFrom().setValue(criteria.getAdmissionDateFrom());
    form.dtimTo().setValue(criteria.getAdmissionDateTo());
    form.ccConsultant().setValue(criteria.getConsultant());
    form.cmbSpecialty().setValue(criteria.getSpecialty());
    form.cmbVTEStatus().setValue(criteria.getVTEStatus());
    form.txtSurname().setValue(criteria.getSurname());
    form.txtForename().setValue(criteria.getForename());
    form.cmbIDType().setValue(criteria.getPatIdType() != null ? criteria.getPatIdType() : PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue()));
    form.txtIDValue().setValue(criteria.getPatIdValue());
    form.pdtDOB().setValue(criteria.getDOB());
    form.chkOver24Hours().setValue(criteria.getOver24Hours());
    form.GroupPatients().setValue(Boolean.TRUE.equals(criteria.getCurrentInpatients()) ? GroupPatientsEnumeration.rdoCurrentInpatients : Boolean.TRUE.equals(criteria.getDischargedPatients()) ? GroupPatientsEnumeration.rdoDischargedPatients : GroupPatientsEnumeration.None);
    form.chkTciForToday().setValue(criteria.getTciForToday());

    form.dyngrdPatients().getRows().clear();
}
项目:openMAXIMS    文件:Logic.java   
private VTERiskAssessmentWorklistCriteriaVo populateSearchCriteriaDataFromScreen() 
{
    VTERiskAssessmentWorklistCriteriaVo criteria = new VTERiskAssessmentWorklistCriteriaVo();

    criteria.setHospital(form.cmbHospital().getValue());
    criteria.setWard(form.qmbWard().getValue());
    criteria.setCurrentWard(form.qmbCurrentWard().getValue());
    criteria.setAdmissionDateFrom(form.dtimFrom().getValue());
    criteria.setAdmissionDateTo(form.dtimTo().getValue());
    criteria.setConsultant(form.ccConsultant().getValue());
    criteria.setSpecialty(form.cmbSpecialty().getValue());
    criteria.setVTEStatus(form.cmbVTEStatus().getValue());
    criteria.setSurname(form.txtSurname().getValue());
    criteria.setForename(form.txtForename().getValue());

    if(form.txtIDValue().getValue() != null)
    {
        criteria.setPatIdType(form.cmbIDType().getValue());
        criteria.setPatIdValue(form.txtIDValue().getValue());
    }

    criteria.setDOB(form.pdtDOB().getValue());
    criteria.setOver24Hours(form.chkOver24Hours().getValue());
    criteria.setCurrentInpatients(form.GroupPatients().getValue().equals(GroupPatientsEnumeration.rdoCurrentInpatients));
    criteria.setDischargedPatients(form.GroupPatients().getValue().equals(GroupPatientsEnumeration.rdoDischargedPatients));
    criteria.setTciForToday(form.chkTciForToday().getValue());
    criteria.setWasTimerOn(form.getLocalContext().getWasTimerOn());

    return criteria;
}
项目:openMAXIMS    文件:Logic.java   
private void populateSearchCriteriaScreenFromData(VTERiskAssessmentWorklistCriteriaVo criteria) 
{
    clearScreen();

    if(criteria == null)
        return;

    form.cmbHospital().setValue(criteria.getHospital());

    if(criteria.getWardIsNotNull())
    {
        form.qmbWard().newRow(criteria.getWard(), criteria.getWard().getName());
    }
    form.qmbWard().setValue(criteria.getWard());

    if(criteria.getCurrentWardIsNotNull())
    {
        form.qmbCurrentWard().newRow(criteria.getCurrentWard(), criteria.getCurrentWard().getName());
    }
    form.qmbCurrentWard().setValue(criteria.getCurrentWard());

    form.dtimFrom().setValue(criteria.getAdmissionDateFrom());
    form.dtimTo().setValue(criteria.getAdmissionDateTo());
    form.ccConsultant().setValue(criteria.getConsultant());
    form.cmbSpecialty().setValue(criteria.getSpecialty());
    form.cmbVTEStatus().setValue(criteria.getVTEStatus());
    form.txtSurname().setValue(criteria.getSurname());
    form.txtForename().setValue(criteria.getForename());
    form.cmbIDType().setValue(criteria.getPatIdType() != null ? criteria.getPatIdType() : PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue()));
    form.txtIDValue().setValue(criteria.getPatIdValue());
    form.pdtDOB().setValue(criteria.getDOB());
    form.chkOver24Hours().setValue(criteria.getOver24Hours());

    form.grdPatients().getRows().clear();
}
项目:openMAXIMS    文件:Logic.java   
private VTERiskAssessmentWorklistCriteriaVo populateSearchCriteriaDataFromScreen() 
{
    VTERiskAssessmentWorklistCriteriaVo criteria = new VTERiskAssessmentWorklistCriteriaVo();

    criteria.setHospital(form.cmbHospital().getValue());
    criteria.setWard(form.qmbWard().getValue());
    criteria.setCurrentWard(form.qmbCurrentWard().getValue());
    criteria.setAdmissionDateFrom(form.dtimFrom().getValue());
    criteria.setAdmissionDateTo(form.dtimTo().getValue());
    criteria.setConsultant(form.ccConsultant().getValue());
    criteria.setSpecialty(form.cmbSpecialty().getValue());
    criteria.setVTEStatus(form.cmbVTEStatus().getValue());
    criteria.setSurname(form.txtSurname().getValue());
    criteria.setForename(form.txtForename().getValue());

    if(form.txtIDValue().getValue() != null)
    {
        criteria.setPatIdType(form.cmbIDType().getValue());
        criteria.setPatIdValue(form.txtIDValue().getValue());
    }

    criteria.setDOB(form.pdtDOB().getValue());
    criteria.setOver24Hours(form.chkOver24Hours().getValue());
    criteria.setWasTimerOn(form.getLocalContext().getWasTimerOn());

    return criteria;
}
项目:openMAXIMS    文件:VTERiskAssessmentWorklistImpl.java   
public List<IVTERiskAssessment> listPatients(VTERiskAssessmentWorklistCriteriaVo criteria) 
{
    if(new VTERiskAssessmentWorklistCriteriaVo().equals(criteria))
        throw new CodingRuntimeException("At least one search criteria must be provided");

    //WDEV-15414 - starts here
    IVTERiskAssessment[] vteInatientList = listFromInpatientEpisode(criteria);
    IVTERiskAssessment[] vteDischargeList = listFromDischargeEpisode(criteria);

    if(vteInatientList == null && vteDischargeList == null)
        return null;

    List<IVTERiskAssessment> vteList = new ArrayList<IVTERiskAssessment>();

    if(vteInatientList != null)
    {
        for(int i=0; i<vteInatientList.length; i++)
        {
            vteList.add(vteInatientList[i]);
        }
    }

    if(vteDischargeList != null)
    {
        for(int i=0; i<vteDischargeList.length; i++)
        {
            vteList.add(vteDischargeList[i]);
        }
    }

    return vteList;
    //WDEV-15414 - ends here
}
项目:openmaxims-linux    文件:Logic.java   
private void populateSearchCriteriaScreenFromData(VTERiskAssessmentWorklistCriteriaVo criteria) 
{
    clearScreen();

    if(criteria == null)
        return;

    form.cmbHospital().setValue(criteria.getHospital());

    if(criteria.getWardIsNotNull())
    {
        form.qmbWard().newRow(criteria.getWard(), criteria.getWard().getName());
    }
    form.qmbWard().setValue(criteria.getWard());

    if(criteria.getCurrentWardIsNotNull())
    {
        form.qmbCurrentWard().newRow(criteria.getCurrentWard(), criteria.getCurrentWard().getName());
    }
    form.qmbCurrentWard().setValue(criteria.getCurrentWard());

    form.dtimFrom().setValue(criteria.getAdmissionDateFrom());
    form.dtimTo().setValue(criteria.getAdmissionDateTo());
    form.ccConsultant().setValue(criteria.getConsultant());
    form.cmbSpecialty().setValue(criteria.getSpecialty());
    form.cmbVTEStatus().setValue(criteria.getVTEStatus());
    form.txtSurname().setValue(criteria.getSurname());
    form.txtForename().setValue(criteria.getForename());
    form.cmbIDType().setValue(criteria.getPatIdType() != null ? criteria.getPatIdType() : PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue()));
    form.txtIDValue().setValue(criteria.getPatIdValue());
    form.pdtDOB().setValue(criteria.getDOB());
    form.chkOver24Hours().setValue(criteria.getOver24Hours());

    form.grdPatients().getRows().clear();
}
项目:openmaxims-linux    文件:Logic.java   
private VTERiskAssessmentWorklistCriteriaVo populateSearchCriteriaDataFromScreen() 
{
    VTERiskAssessmentWorklistCriteriaVo criteria = new VTERiskAssessmentWorklistCriteriaVo();

    criteria.setHospital(form.cmbHospital().getValue());
    criteria.setWard(form.qmbWard().getValue());
    criteria.setCurrentWard(form.qmbCurrentWard().getValue());
    criteria.setAdmissionDateFrom(form.dtimFrom().getValue());
    criteria.setAdmissionDateTo(form.dtimTo().getValue());
    criteria.setConsultant(form.ccConsultant().getValue());
    criteria.setSpecialty(form.cmbSpecialty().getValue());
    criteria.setVTEStatus(form.cmbVTEStatus().getValue());
    criteria.setSurname(form.txtSurname().getValue());
    criteria.setForename(form.txtForename().getValue());

    if(form.txtIDValue().getValue() != null)
    {
        criteria.setPatIdType(form.cmbIDType().getValue());
        criteria.setPatIdValue(form.txtIDValue().getValue());
    }

    criteria.setDOB(form.pdtDOB().getValue());
    criteria.setOver24Hours(form.chkOver24Hours().getValue());
    criteria.setWasTimerOn(form.getLocalContext().getWasTimerOn());

    return criteria;
}
项目:openmaxims-linux    文件:VTERiskAssessmentWorklistImpl.java   
public List<IVTERiskAssessment> listPatients(VTERiskAssessmentWorklistCriteriaVo criteria) 
{
    if(new VTERiskAssessmentWorklistCriteriaVo().equals(criteria))
        throw new CodingRuntimeException("At least one search criteria must be provided");

    //WDEV-15414 - starts here
    IVTERiskAssessment[] vteInatientList = listFromInpatientEpisode(criteria);
    IVTERiskAssessment[] vteDischargeList = listFromDischargeEpisode(criteria);

    if(vteInatientList == null && vteDischargeList == null)
        return null;

    List<IVTERiskAssessment> vteList = new ArrayList<IVTERiskAssessment>();

    if(vteInatientList != null)
    {
        for(int i=0; i<vteInatientList.length; i++)
        {
            vteList.add(vteInatientList[i]);
        }
    }

    if(vteDischargeList != null)
    {
        for(int i=0; i<vteDischargeList.length; i++)
        {
            vteList.add(vteDischargeList[i]);
        }
    }

    return vteList;
    //WDEV-15414 - ends here
}
项目:openMAXIMS    文件:VTERiskAssessmentWorklistImpl.java   
public List<IVTERiskAssessment> listPatients(VTERiskAssessmentWorklistCriteriaVo criteria) 
{
    if(new VTERiskAssessmentWorklistCriteriaVo().equals(criteria))
        throw new CodingRuntimeException("At least one search criteria must be provided");

    //WDEV-15414 - starts here
    IVTERiskAssessment[] vteInatientList = null;
    IVTERiskAssessment[] vteDischargeList = null;

    if (!Boolean.TRUE.equals(criteria.getDischargedPatients()) && !Boolean.TRUE.equals(criteria.getCurrentInpatients()))
    {
        vteInatientList = listFromInpatientEpisode(criteria);
        vteDischargeList = listFromDischargeEpisode(criteria);
    }
    else 
    {
        if (Boolean.TRUE.equals(criteria.getCurrentInpatients()))
            vteInatientList = listFromInpatientEpisode(criteria);

        if (Boolean.TRUE.equals(criteria.getDischargedPatients()))
            vteDischargeList = listFromDischargeEpisode(criteria);
    }


    if(vteInatientList == null && vteDischargeList == null)
        return null;

    List<IVTERiskAssessment> vteList = new ArrayList<IVTERiskAssessment>();

    if(vteInatientList != null)
    {
        for(int i=0; i<vteInatientList.length; i++)
        {
            vteList.add(vteInatientList[i]);
        }
    }

    if(vteDischargeList != null)
    {
        for(int i=0; i<vteDischargeList.length; i++)
        {
            vteList.add(vteDischargeList[i]);
        }
    }

    return vteList;
    //WDEV-15414 - ends here
}