Java 类ims.ocrr.vo.NewResultsCriteriaVo 实例源码

项目:AvoinApotti    文件:Logic.java   
public NewResultsCriteriaVo getValue() 
{
    NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();

    newResultsSearchCriteria.setOutpatientOrders(true);

    newResultsSearchCriteria.setSelectedTab(OUTPATIENT);

    newResultsSearchCriteria.setHospital(form.cmbHospital().getValue());
    newResultsSearchCriteria.setOutpatientDepartment(form.qmbOrderingLocation().getValue());

    newResultsSearchCriteria.setOrder(true);
    newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());

    newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());
    newResultsSearchCriteria.setOrderingHCP(form.ccOrderingHCP().getValue());

    newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
    newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
    newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
    newResultsSearchCriteria.setForReview(form.chkReview().getValue());
    newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

    newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
    newResultsSearchCriteria.setToDate(form.dteTo().getValue());    
    newResultsSearchCriteria.setDays(form.cmbDays().getValue());
    newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);

    newResultsSearchCriteria.setDiscipline(getDisciplines());
    newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());

    return newResultsSearchCriteria;
}
项目:AvoinApotti    文件:Logic.java   
private boolean checkWarning(NewResultsCriteriaVo criteria)
{
    if (form.lyrSearch().tabPageAll().isVisible())
    {
        return (criteria.getHospital() == null && criteria.getOrderingLocation() == null && criteria.getHCP() == null && criteria.getOrderingHCP() == null && criteria.getReviewingHCP() == null);
    }
    else if (form.lyrSearch().tabPageInpatient().isVisible())
    {
        return (criteria.getHospital() == null && criteria.getInpatientHospital() == null && criteria.getInpatientWard() == null && criteria.getHCP() == null && criteria.getReviewingHCP() == null);
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private NewResultsCriteriaVo getCriteria(boolean fromTimer) 
{
    NewResultsCriteriaVo criteria = null;

    if(fromTimer)
        return form.getGlobalContext().OCRR.getNewResultsCriteria();

    if(form.lyrSearch().tabPageAll().isVisible())
    {
        criteria = form.lyrSearch().tabPageAll().ccAll().getValue();
    }
    else if(form.lyrSearch().tabPageMyResults().isVisible())
    {
        criteria = form.lyrSearch().tabPageMyResults().ccMyResults().getValue();
    }
    else if(form.lyrSearch().tabPageInpatient().isVisible())
    {
        criteria = form.lyrSearch().tabPageInpatient().ccInpatient().getValue();
    }
    else if(form.lyrSearch().tabPageOutpatient().isVisible())
    {
        criteria = form.lyrSearch().tabPageOutpatient().ccOutpatient().getValue();
    }
    else if(form.lyrSearch().tabPageED().isVisible())
    {
        criteria = form.lyrSearch().tabPageED().ccED().getValue();
    }
    else if(form.lyrSearch().tabPagePatient().isVisible())
    {
        criteria = form.lyrSearch().tabPagePatient().ccPatient().getValue();
    }

    if(criteria != null)
    {
        criteria.setWasTimerOn(form.getLocalContext().getWasTimerOn());
    }

    return criteria;
}
项目:AvoinApotti    文件:Logic.java   
public NewResultsCriteriaVo getValue() 
{
    NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();

    newResultsSearchCriteria.setEDOrders(true);

    newResultsSearchCriteria.setSelectedTab(ED);

    newResultsSearchCriteria.setHospital(form.cmbHospital().getValue());

    newResultsSearchCriteria.setOrderingLocation(form.getLocalContext().getEmergencyDepartment());

    newResultsSearchCriteria.setExcludeCurrentInpatients(form.chkExcludeCurrentInpatients().getValue());

    newResultsSearchCriteria.setOrder(true);
    newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());

    newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());
    newResultsSearchCriteria.setOrderingHCP(form.ccOrderingHCP().getValue());

    newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
    newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
    newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
    newResultsSearchCriteria.setForReview(form.chkReview().getValue());
    newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

    newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
    newResultsSearchCriteria.setToDate(form.dteTo().getValue());    
    newResultsSearchCriteria.setDays(form.cmbDays().getValue());
    newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);

    newResultsSearchCriteria.setDiscipline(getDisciplines());
    newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());

    return newResultsSearchCriteria;
}
项目:AvoinApotti    文件:Logic.java   
public void setValue(NewResultsCriteriaVo criteria) 
{
    clear();

    if(criteria == null)
        return;

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

    form.getLocalContext().setEmergencyDepartment(criteria.getOrderingLocation() instanceof LocationLiteVo ? (LocationLiteVo) criteria.getOrderingLocation() : null);

    form.chkExcludeCurrentInpatients().setValue(criteria.getExcludeCurrentInpatients());

    form.ccOrderingHCP().setValue(criteria.getOrderingHCP());
    form.ccResponsibleHCP().setValue(criteria.getHCP());

    if (criteria.getReviewingHCP() != null && !form.qmbReviewingHCP().getValues().contains(criteria.getReviewingHCP()))
    {
        form.qmbReviewingHCP().newRow(criteria.getReviewingHCP(), criteria.getReviewingHCP().toString());
    }
    form.qmbReviewingHCP().setValue(criteria.getReviewingHCP());            

    form.chkNew().setValue(criteria.getNewUpdated());
    form.chkSeenChecked().setValue(criteria.getSeenChecked());
    form.chkChecked().setValue(criteria.getChecked());
    form.chkReview().setValue(criteria.getForReview()); 
    form.chkCompleted().setValue(criteria.getCompleted()); 

    populateDisciplineGrid(criteria.getDiscipline());

    form.dteFrom().setValue(criteria.getFromDate());
    form.dteTo().setValue(criteria.getToDate());
    form.cmbDays().setValue(criteria.getDays());

    form.ListResultsBy().setValue(Boolean.TRUE.equals(criteria.getNewestFirst()) ? ListResultsByEnumeration.rdoNewestFirst : ListResultsByEnumeration.rdoOldestFirst );
    form.chkAbnormalPathologyResultsOnly().setValue(criteria.getAbnormalPathologyResultsOnly());

    updateControlsState();
}
项目:AvoinApotti    文件:Logic.java   
public void setValue(ims.ocrr.vo.NewResultsCriteriaVo criteria)
{
    clear();

    if (criteria == null)
        return;

    form.ccOrderingHCP().setValue(criteria.getOrderingHCP());
    form.ccResponsibleHCP().setValue(criteria.getHCP());

    if (criteria.getReviewingHCP() != null && !form.qmbReviewingHCP().getValues().contains(criteria.getReviewingHCP()))
    {
        form.qmbReviewingHCP().newRow(criteria.getReviewingHCP(), criteria.getReviewingHCP().toString());
    }
    form.qmbReviewingHCP().setValue(criteria.getReviewingHCP());

    form.chkNew().setValue(criteria.getNewUpdated());
    form.chkSeenChecked().setValue(criteria.getSeenChecked());
    form.chkChecked().setValue(criteria.getChecked());
    form.chkReview().setValue(criteria.getForReview());
    form.chkCompleted().setValue(criteria.getCompleted());

    populateDisciplineGrid(criteria.getDiscipline());

    form.dteFrom().setValue(criteria.getFromDate());
    form.dteTo().setValue(criteria.getToDate());
    form.cmbDays().setValue(criteria.getDays());

    form.ListResultsBy().setValue(Boolean.TRUE.equals(criteria.getNewestFirst()) ? ListResultsByEnumeration.rdoNewestFirst : ListResultsByEnumeration.rdoOldestFirst);
    form.chkAbnormalPathologyResultsOnly().setValue(criteria.getAbnormalPathologyResultsOnly());

    updateControlsState();
}
项目:AvoinApotti    文件:Logic.java   
public ims.ocrr.vo.NewResultsCriteriaVo getValue()
{
    NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();

    newResultsSearchCriteria.setSelectedTab(PATIENT);
    newResultsSearchCriteria.setPatientId(form.getGlobalContext().Core.getPatientShort() != null ? form.getGlobalContext().Core.getPatientShort().getID_Patient() : null);

    newResultsSearchCriteria.setOrder(true);
    newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());

    newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());
    newResultsSearchCriteria.setOrderingHCP(form.ccOrderingHCP().getValue());

    newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
    newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
    newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
    newResultsSearchCriteria.setForReview(form.chkReview().getValue());
    newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

    newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
    newResultsSearchCriteria.setToDate(form.dteTo().getValue());
    newResultsSearchCriteria.setDays(form.cmbDays().getValue());
    newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);

    newResultsSearchCriteria.setDiscipline(getDisciplines());
    newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());

    return newResultsSearchCriteria;
}
项目:AvoinApotti    文件:Logic.java   
public NewResultsCriteriaVo getValue() 
{
    NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();

    //newResultsSearchCriteria.setInpatientOrders(true);

    newResultsSearchCriteria.setSelectedTab(INPATIENT);

    newResultsSearchCriteria.setHospital(form.cmbHospital().getValue());
    newResultsSearchCriteria.setInpatientHospital(form.cmbHospital().getValue());

    newResultsSearchCriteria.setInpatientWard(form.qmbOrderingLocation().getValue());

    newResultsSearchCriteria.setCurrentInpatientsOnly(form.chkCurrentInpatientsOnly().getValue());
    newResultsSearchCriteria.setInpatientOrdersPatientDischarged(form.chkInpatientOrdersPatientDischarged().getValue());

    newResultsSearchCriteria.setOrder(form.chkOrder().getValue());
    newResultsSearchCriteria.setCurrenIP(form.chkCurrentIP().getValue());
    newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());

    newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());

    newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
    newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
    newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
    newResultsSearchCriteria.setForReview(form.chkReview().getValue());
    newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

    newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
    newResultsSearchCriteria.setToDate(form.dteTo().getValue());    
    newResultsSearchCriteria.setDays(form.cmbDays().getValue());
    newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);

    newResultsSearchCriteria.setDiscipline(getDisciplines());
    newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());

    return newResultsSearchCriteria;
}
项目:AvoinApotti    文件:NewResultsSearchImpl.java   
private OrderInvStatusCollection getRequiredInvStatuses(NewResultsCriteriaVo criteria)
{
    OrderInvStatusCollection stColl = new OrderInvStatusCollection();

    if (criteria == null)
        return stColl;

    if (Boolean.TRUE.equals(criteria.getNewUpdated()))
    {
        stColl.add(OrderInvStatus.NEW_RESULT);
        stColl.add(OrderInvStatus.UPDATED_RESULT);
        stColl.add(OrderInvStatus.RESULTED);
    }
    if (Boolean.TRUE.equals(criteria.getForReview()))
    {
        stColl.add(OrderInvStatus.REVIEW);
    }
    if (Boolean.TRUE.equals(criteria.getSeenChecked()))
    {
        stColl.add(OrderInvStatus.SEEN);
    }

    if (Boolean.TRUE.equals(criteria.getChecked()))
    {
        stColl.add(OrderInvStatus.CHECKED);
    }

    if (Boolean.TRUE.equals(criteria.getCompleted()))
    {
        stColl.add(OrderInvStatus.COMPLETE);
    }

    return stColl;
}
项目:openMAXIMS    文件:Logic.java   
public NewResultsCriteriaVo getValue() 
{
    NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();

    newResultsSearchCriteria.setOutpatientOrders(true);

    newResultsSearchCriteria.setSelectedTab(OUTPATIENT);

    newResultsSearchCriteria.setHospital(form.cmbHospital().getValue());
    newResultsSearchCriteria.setOutpatientDepartment(form.qmbOrderingLocation().getValue());

    newResultsSearchCriteria.setOrder(true);
    newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());

    newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());
    newResultsSearchCriteria.setOrderingHCP(form.ccOrderingHCP().getValue());

    newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
    newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
    newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
    newResultsSearchCriteria.setForReview(form.chkReview().getValue());
    newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

    newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
    newResultsSearchCriteria.setToDate(form.dteTo().getValue());    
    newResultsSearchCriteria.setDays(form.cmbDays().getValue());
    newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);

    newResultsSearchCriteria.setDiscipline(getDisciplines());
    newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());

    return newResultsSearchCriteria;
}
项目:openMAXIMS    文件:Logic.java   
private boolean checkWarning(NewResultsCriteriaVo criteria)
{
    if (form.lyrSearch().tabPageAll().isVisible())
    {
        return (criteria.getHospital() == null && criteria.getOrderingLocation() == null && criteria.getHCP() == null && criteria.getOrderingHCP() == null && criteria.getReviewingHCP() == null);
    }
    else if (form.lyrSearch().tabPageInpatient().isVisible())
    {
        return (criteria.getHospital() == null && criteria.getInpatientHospital() == null && criteria.getInpatientWard() == null && criteria.getHCP() == null && criteria.getReviewingHCP() == null);
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private NewResultsCriteriaVo getCriteria(boolean fromTimer) 
{
    NewResultsCriteriaVo criteria = null;

    if(fromTimer)
        return form.getGlobalContext().OCRR.getNewResultsCriteria();

    if(form.lyrSearch().tabPageAll().isVisible())
    {
        criteria = form.lyrSearch().tabPageAll().ccAll().getValue();
    }
    else if(form.lyrSearch().tabPageMyResults().isVisible())
    {
        criteria = form.lyrSearch().tabPageMyResults().ccMyResults().getValue();
    }
    else if(form.lyrSearch().tabPageInpatient().isVisible())
    {
        criteria = form.lyrSearch().tabPageInpatient().ccInpatient().getValue();
    }
    else if(form.lyrSearch().tabPageOutpatient().isVisible())
    {
        criteria = form.lyrSearch().tabPageOutpatient().ccOutpatient().getValue();
    }
    else if(form.lyrSearch().tabPageED().isVisible())
    {
        criteria = form.lyrSearch().tabPageED().ccED().getValue();
    }
    else if(form.lyrSearch().tabPagePatient().isVisible())
    {
        criteria = form.lyrSearch().tabPagePatient().ccPatient().getValue();
    }

    if(criteria != null)
    {
        criteria.setWasTimerOn(form.getLocalContext().getWasTimerOn());
    }

    return criteria;
}
项目:openMAXIMS    文件:Logic.java   
public NewResultsCriteriaVo getValue() 
{
    NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();

    newResultsSearchCriteria.setEDOrders(true);

    newResultsSearchCriteria.setSelectedTab(ED);

    newResultsSearchCriteria.setHospital(form.cmbHospital().getValue());

    newResultsSearchCriteria.setOrderingLocation(form.getLocalContext().getEmergencyDepartment());

    newResultsSearchCriteria.setExcludeCurrentInpatients(form.chkExcludeCurrentInpatients().getValue());

    newResultsSearchCriteria.setOrder(true);
    newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());

    newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());
    newResultsSearchCriteria.setOrderingHCP(form.ccOrderingHCP().getValue());

    newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
    newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
    newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
    newResultsSearchCriteria.setForReview(form.chkReview().getValue());
    newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

    newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
    newResultsSearchCriteria.setToDate(form.dteTo().getValue());    
    newResultsSearchCriteria.setDays(form.cmbDays().getValue());
    newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);

    newResultsSearchCriteria.setDiscipline(getDisciplines());
    newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());

    return newResultsSearchCriteria;
}
项目:openMAXIMS    文件:Logic.java   
public void setValue(NewResultsCriteriaVo criteria) 
{
    clear();

    if(criteria == null)
        return;

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

    form.getLocalContext().setEmergencyDepartment(criteria.getOrderingLocation() instanceof LocationLiteVo ? (LocationLiteVo) criteria.getOrderingLocation() : null);

    form.chkExcludeCurrentInpatients().setValue(criteria.getExcludeCurrentInpatients());

    form.ccOrderingHCP().setValue(criteria.getOrderingHCP());
    form.ccResponsibleHCP().setValue(criteria.getHCP());

    if (criteria.getReviewingHCP() != null && !form.qmbReviewingHCP().getValues().contains(criteria.getReviewingHCP()))
    {
        form.qmbReviewingHCP().newRow(criteria.getReviewingHCP(), criteria.getReviewingHCP().toString());
    }
    form.qmbReviewingHCP().setValue(criteria.getReviewingHCP());            

    form.chkNew().setValue(criteria.getNewUpdated());
    form.chkSeenChecked().setValue(criteria.getSeenChecked());
    form.chkChecked().setValue(criteria.getChecked());
    form.chkReview().setValue(criteria.getForReview()); 
    form.chkCompleted().setValue(criteria.getCompleted()); 

    populateDisciplineGrid(criteria.getDiscipline());

    form.dteFrom().setValue(criteria.getFromDate());
    form.dteTo().setValue(criteria.getToDate());
    form.cmbDays().setValue(criteria.getDays());

    form.ListResultsBy().setValue(Boolean.TRUE.equals(criteria.getNewestFirst()) ? ListResultsByEnumeration.rdoNewestFirst : ListResultsByEnumeration.rdoOldestFirst );
    form.chkAbnormalPathologyResultsOnly().setValue(criteria.getAbnormalPathologyResultsOnly());

    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
public void setValue(ims.ocrr.vo.NewResultsCriteriaVo criteria)
{
    clear();

    if (criteria == null)
        return;

    form.ccOrderingHCP().setValue(criteria.getOrderingHCP());
    form.ccResponsibleHCP().setValue(criteria.getHCP());

    if (criteria.getReviewingHCP() != null && !form.qmbReviewingHCP().getValues().contains(criteria.getReviewingHCP()))
    {
        form.qmbReviewingHCP().newRow(criteria.getReviewingHCP(), criteria.getReviewingHCP().toString());
    }
    form.qmbReviewingHCP().setValue(criteria.getReviewingHCP());

    form.chkNew().setValue(criteria.getNewUpdated());
    form.chkSeenChecked().setValue(criteria.getSeenChecked());
    form.chkChecked().setValue(criteria.getChecked());
    form.chkReview().setValue(criteria.getForReview());
    form.chkCompleted().setValue(criteria.getCompleted());

    populateDisciplineGrid(criteria.getDiscipline());

    form.dteFrom().setValue(criteria.getFromDate());
    form.dteTo().setValue(criteria.getToDate());
    form.cmbDays().setValue(criteria.getDays());

    form.ListResultsBy().setValue(Boolean.TRUE.equals(criteria.getNewestFirst()) ? ListResultsByEnumeration.rdoNewestFirst : ListResultsByEnumeration.rdoOldestFirst);
    form.chkAbnormalPathologyResultsOnly().setValue(criteria.getAbnormalPathologyResultsOnly());

    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
public ims.ocrr.vo.NewResultsCriteriaVo getValue()
{
    NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();

    newResultsSearchCriteria.setSelectedTab(PATIENT);
    newResultsSearchCriteria.setPatientId(form.getGlobalContext().Core.getPatientShort() != null ? form.getGlobalContext().Core.getPatientShort().getID_Patient() : null);

    newResultsSearchCriteria.setOrder(true);
    newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());

    newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());
    newResultsSearchCriteria.setOrderingHCP(form.ccOrderingHCP().getValue());

    newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
    newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
    newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
    newResultsSearchCriteria.setForReview(form.chkReview().getValue());
    newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

    newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
    newResultsSearchCriteria.setToDate(form.dteTo().getValue());
    newResultsSearchCriteria.setDays(form.cmbDays().getValue());
    newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);

    newResultsSearchCriteria.setDiscipline(getDisciplines());
    newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());

    return newResultsSearchCriteria;
}
项目:openMAXIMS    文件:Logic.java   
public NewResultsCriteriaVo getValue() 
{
    NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();

    //newResultsSearchCriteria.setInpatientOrders(true);

    newResultsSearchCriteria.setSelectedTab(INPATIENT);

    newResultsSearchCriteria.setHospital(form.cmbHospital().getValue());
    newResultsSearchCriteria.setInpatientHospital(form.cmbHospital().getValue());

    newResultsSearchCriteria.setInpatientWard(form.qmbOrderingLocation().getValue());

    newResultsSearchCriteria.setCurrentInpatientsOnly(form.chkCurrentInpatientsOnly().getValue());
    newResultsSearchCriteria.setInpatientOrdersPatientDischarged(form.chkInpatientOrdersPatientDischarged().getValue());

    newResultsSearchCriteria.setOrder(form.chkOrder().getValue());
    newResultsSearchCriteria.setCurrenIP(form.chkCurrentIP().getValue());
    newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());

    newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());

    newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
    newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
    newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
    newResultsSearchCriteria.setForReview(form.chkReview().getValue());
    newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

    newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
    newResultsSearchCriteria.setToDate(form.dteTo().getValue());    
    newResultsSearchCriteria.setDays(form.cmbDays().getValue());
    newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);

    newResultsSearchCriteria.setDiscipline(getDisciplines());
    newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());

    return newResultsSearchCriteria;
}
项目:openMAXIMS    文件:NewResultsSearchImpl.java   
private OrderInvStatusCollection getRequiredInvStatuses(NewResultsCriteriaVo criteria)
{
    OrderInvStatusCollection stColl = new OrderInvStatusCollection();

    if (criteria == null)
        return stColl;

    if (Boolean.TRUE.equals(criteria.getNewUpdated()))
    {
        stColl.add(OrderInvStatus.NEW_RESULT);
        stColl.add(OrderInvStatus.UPDATED_RESULT);
        stColl.add(OrderInvStatus.RESULTED);
    }
    if (Boolean.TRUE.equals(criteria.getForReview()))
    {
        stColl.add(OrderInvStatus.REVIEW);
    }
    if (Boolean.TRUE.equals(criteria.getSeenChecked()))
    {
        stColl.add(OrderInvStatus.SEEN);
    }

    if (Boolean.TRUE.equals(criteria.getChecked()))
    {
        stColl.add(OrderInvStatus.CHECKED);
    }

    if (Boolean.TRUE.equals(criteria.getCompleted()))
    {
        stColl.add(OrderInvStatus.COMPLETE);
    }

    return stColl;
}
项目:openMAXIMS    文件:Logic.java   
public NewResultsCriteriaVo getValue() 
{
    NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();

    newResultsSearchCriteria.setOutpatientOrders(true);

    newResultsSearchCriteria.setSelectedTab(OUTPATIENT);

    newResultsSearchCriteria.setHospital(form.cmbHospital().getValue());
    newResultsSearchCriteria.setOutpatientDepartment(form.qmbOrderingLocation().getValue());

    newResultsSearchCriteria.setOrder(true);
    newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());

    newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());
    newResultsSearchCriteria.setOrderingHCP(form.ccOrderingHCP().getValue());

    newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
    newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
    newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
    newResultsSearchCriteria.setForReview(form.chkReview().getValue());
    newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

    newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
    newResultsSearchCriteria.setToDate(form.dteTo().getValue());    
    newResultsSearchCriteria.setDays(form.cmbDays().getValue());
    newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);

    newResultsSearchCriteria.setDiscipline(getDisciplines());
    newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());

    return newResultsSearchCriteria;
}
项目:openMAXIMS    文件:Logic.java   
private boolean checkWarning(NewResultsCriteriaVo criteria)
{
    if (form.lyrSearch().tabPageAll().isVisible())
    {
        return (criteria.getHospital() == null && criteria.getOrderingLocation() == null && criteria.getHCP() == null && criteria.getOrderingHCP() == null && criteria.getReviewingHCP() == null);
    }
    else if (form.lyrSearch().tabPageInpatient().isVisible())
    {
        return (criteria.getHospital() == null && criteria.getInpatientHospital() == null && criteria.getInpatientWard() == null && criteria.getHCP() == null && criteria.getReviewingHCP() == null);
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private NewResultsCriteriaVo getCriteria(boolean fromTimer) 
{
    NewResultsCriteriaVo criteria = null;

    if(fromTimer)
        return form.getGlobalContext().OCRR.getNewResultsCriteria();

    if(form.lyrSearch().tabPageAll().isVisible())
    {
        criteria = form.lyrSearch().tabPageAll().ccAll().getValue();
    }
    else if(form.lyrSearch().tabPageMyResults().isVisible())
    {
        criteria = form.lyrSearch().tabPageMyResults().ccMyResults().getValue();
    }
    else if(form.lyrSearch().tabPageInpatient().isVisible())
    {
        criteria = form.lyrSearch().tabPageInpatient().ccInpatient().getValue();
    }
    else if(form.lyrSearch().tabPageOutpatient().isVisible())
    {
        criteria = form.lyrSearch().tabPageOutpatient().ccOutpatient().getValue();
    }
    else if(form.lyrSearch().tabPageED().isVisible())
    {
        criteria = form.lyrSearch().tabPageED().ccED().getValue();
    }
    else if(form.lyrSearch().tabPagePatient().isVisible())
    {
        criteria = form.lyrSearch().tabPagePatient().ccPatient().getValue();
    }

    if(criteria != null)
    {
        criteria.setWasTimerOn(form.getLocalContext().getWasTimerOn());
    }

    return criteria;
}
项目:openMAXIMS    文件:Logic.java   
public NewResultsCriteriaVo getValue() 
{
    NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();

    newResultsSearchCriteria.setEDOrders(true);

    newResultsSearchCriteria.setSelectedTab(ED);

    newResultsSearchCriteria.setHospital(form.cmbHospital().getValue());

    newResultsSearchCriteria.setOrderingLocation(form.getLocalContext().getEmergencyDepartment());

    newResultsSearchCriteria.setExcludeCurrentInpatients(form.chkExcludeCurrentInpatients().getValue());

    newResultsSearchCriteria.setOrder(true);
    newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());

    newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());
    newResultsSearchCriteria.setOrderingHCP(form.ccOrderingHCP().getValue());

    newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
    newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
    newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
    newResultsSearchCriteria.setForReview(form.chkReview().getValue());
    newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

    newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
    newResultsSearchCriteria.setToDate(form.dteTo().getValue());    
    newResultsSearchCriteria.setDays(form.cmbDays().getValue());
    newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);

    newResultsSearchCriteria.setDiscipline(getDisciplines());
    newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());

    return newResultsSearchCriteria;
}
项目:openMAXIMS    文件:Logic.java   
public void setValue(NewResultsCriteriaVo criteria) 
{
    clear();

    if(criteria == null)
        return;

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

    form.getLocalContext().setEmergencyDepartment(criteria.getOrderingLocation() instanceof LocationLiteVo ? (LocationLiteVo) criteria.getOrderingLocation() : null);

    form.chkExcludeCurrentInpatients().setValue(criteria.getExcludeCurrentInpatients());

    form.ccOrderingHCP().setValue(criteria.getOrderingHCP());
    form.ccResponsibleHCP().setValue(criteria.getHCP());

    if (criteria.getReviewingHCP() != null && !form.qmbReviewingHCP().getValues().contains(criteria.getReviewingHCP()))
    {
        form.qmbReviewingHCP().newRow(criteria.getReviewingHCP(), criteria.getReviewingHCP().toString());
    }
    form.qmbReviewingHCP().setValue(criteria.getReviewingHCP());            

    form.chkNew().setValue(criteria.getNewUpdated());
    form.chkSeenChecked().setValue(criteria.getSeenChecked());
    form.chkChecked().setValue(criteria.getChecked());
    form.chkReview().setValue(criteria.getForReview()); 
    form.chkCompleted().setValue(criteria.getCompleted()); 

    populateDisciplineGrid(criteria.getDiscipline());

    form.dteFrom().setValue(criteria.getFromDate());
    form.dteTo().setValue(criteria.getToDate());
    form.cmbDays().setValue(criteria.getDays());

    form.ListResultsBy().setValue(Boolean.TRUE.equals(criteria.getNewestFirst()) ? ListResultsByEnumeration.rdoNewestFirst : ListResultsByEnumeration.rdoOldestFirst );
    form.chkAbnormalPathologyResultsOnly().setValue(criteria.getAbnormalPathologyResultsOnly());

    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
public void setValue(ims.ocrr.vo.NewResultsCriteriaVo criteria)
{
    clear();

    if (criteria == null)
        return;

    form.ccOrderingHCP().setValue(criteria.getOrderingHCP());
    form.ccResponsibleHCP().setValue(criteria.getHCP());

    if (criteria.getReviewingHCP() != null && !form.qmbReviewingHCP().getValues().contains(criteria.getReviewingHCP()))
    {
        form.qmbReviewingHCP().newRow(criteria.getReviewingHCP(), criteria.getReviewingHCP().toString());
    }
    form.qmbReviewingHCP().setValue(criteria.getReviewingHCP());

    form.chkNew().setValue(criteria.getNewUpdated());
    form.chkSeenChecked().setValue(criteria.getSeenChecked());
    form.chkChecked().setValue(criteria.getChecked());
    form.chkReview().setValue(criteria.getForReview());
    form.chkCompleted().setValue(criteria.getCompleted());

    populateDisciplineGrid(criteria.getDiscipline());

    form.dteFrom().setValue(criteria.getFromDate());
    form.dteTo().setValue(criteria.getToDate());
    form.cmbDays().setValue(criteria.getDays());

    form.ListResultsBy().setValue(Boolean.TRUE.equals(criteria.getNewestFirst()) ? ListResultsByEnumeration.rdoNewestFirst : ListResultsByEnumeration.rdoOldestFirst);
    form.chkAbnormalPathologyResultsOnly().setValue(criteria.getAbnormalPathologyResultsOnly());

    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
public ims.ocrr.vo.NewResultsCriteriaVo getValue()
{
    NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();

    newResultsSearchCriteria.setSelectedTab(PATIENT);
    newResultsSearchCriteria.setPatientId(form.getGlobalContext().Core.getPatientShort() != null ? form.getGlobalContext().Core.getPatientShort().getID_Patient() : null);

    newResultsSearchCriteria.setOrder(true);
    newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());

    newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());
    newResultsSearchCriteria.setOrderingHCP(form.ccOrderingHCP().getValue());

    newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
    newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
    newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
    newResultsSearchCriteria.setForReview(form.chkReview().getValue());
    newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

    newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
    newResultsSearchCriteria.setToDate(form.dteTo().getValue());
    newResultsSearchCriteria.setDays(form.cmbDays().getValue());
    newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);

    newResultsSearchCriteria.setDiscipline(getDisciplines());
    newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());

    return newResultsSearchCriteria;
}
项目:openMAXIMS    文件:Logic.java   
public NewResultsCriteriaVo getValue() 
{
    NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();

    //newResultsSearchCriteria.setInpatientOrders(true);

    newResultsSearchCriteria.setSelectedTab(INPATIENT);

    newResultsSearchCriteria.setHospital(form.cmbHospital().getValue());
    newResultsSearchCriteria.setInpatientHospital(form.cmbHospital().getValue());

    newResultsSearchCriteria.setInpatientWard(form.qmbOrderingLocation().getValue());

    newResultsSearchCriteria.setCurrentInpatientsOnly(form.chkCurrentInpatientsOnly().getValue());
    newResultsSearchCriteria.setInpatientOrdersPatientDischarged(form.chkInpatientOrdersPatientDischarged().getValue());

    newResultsSearchCriteria.setOrder(form.chkOrder().getValue());
    newResultsSearchCriteria.setCurrenIP(form.chkCurrentIP().getValue());
    newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());

    newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());

    newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
    newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
    newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
    newResultsSearchCriteria.setForReview(form.chkReview().getValue());
    newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

    newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
    newResultsSearchCriteria.setToDate(form.dteTo().getValue());    
    newResultsSearchCriteria.setDays(form.cmbDays().getValue());
    newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);

    newResultsSearchCriteria.setDiscipline(getDisciplines());
    newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());

    return newResultsSearchCriteria;
}
项目:openMAXIMS    文件:NewResultsSearchImpl.java   
private OrderInvStatusCollection getRequiredInvStatuses(NewResultsCriteriaVo criteria)
{
    OrderInvStatusCollection stColl = new OrderInvStatusCollection();

    if (criteria == null)
        return stColl;

    if (Boolean.TRUE.equals(criteria.getNewUpdated()))
    {
        stColl.add(OrderInvStatus.NEW_RESULT);
        stColl.add(OrderInvStatus.UPDATED_RESULT);
        stColl.add(OrderInvStatus.RESULTED);
    }
    if (Boolean.TRUE.equals(criteria.getForReview()))
    {
        stColl.add(OrderInvStatus.REVIEW);
    }
    if (Boolean.TRUE.equals(criteria.getSeenChecked()))
    {
        stColl.add(OrderInvStatus.SEEN);
    }

    if (Boolean.TRUE.equals(criteria.getChecked()))
    {
        stColl.add(OrderInvStatus.CHECKED);
    }

    if (Boolean.TRUE.equals(criteria.getCompleted()))
    {
        stColl.add(OrderInvStatus.COMPLETE);
    }

    return stColl;
}
项目:openmaxims-linux    文件:Logic.java   
public NewResultsCriteriaVo getValue() 
{
    NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();

    newResultsSearchCriteria.setOutpatientOrders(true);

    newResultsSearchCriteria.setSelectedTab(OUTPATIENT);

    newResultsSearchCriteria.setHospital(form.cmbHospital().getValue());
    newResultsSearchCriteria.setOutpatientDepartment(form.qmbOrderingLocation().getValue());

    newResultsSearchCriteria.setOrder(true);
    newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());

    newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());
    newResultsSearchCriteria.setOrderingHCP(form.ccOrderingHCP().getValue());

    newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
    newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
    newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
    newResultsSearchCriteria.setForReview(form.chkReview().getValue());
    newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

    newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
    newResultsSearchCriteria.setToDate(form.dteTo().getValue());    
    newResultsSearchCriteria.setDays(form.cmbDays().getValue());
    newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);

    newResultsSearchCriteria.setDiscipline(getDisciplines());
    newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());

    return newResultsSearchCriteria;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean checkWarning(NewResultsCriteriaVo criteria)
{
    if (form.lyrSearch().tabPageAll().isVisible())
    {
        return (criteria.getHospital() == null && criteria.getOrderingLocation() == null && criteria.getHCP() == null && criteria.getOrderingHCP() == null && criteria.getReviewingHCP() == null);
    }
    else if (form.lyrSearch().tabPageInpatient().isVisible())
    {
        return (criteria.getHospital() == null && criteria.getInpatientHospital() == null && criteria.getInpatientWard() == null && criteria.getHCP() == null && criteria.getReviewingHCP() == null);
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private NewResultsCriteriaVo getCriteria(boolean fromTimer) 
{
    NewResultsCriteriaVo criteria = null;

    if(fromTimer)
        return form.getGlobalContext().OCRR.getNewResultsCriteria();

    if(form.lyrSearch().tabPageAll().isVisible())
    {
        criteria = form.lyrSearch().tabPageAll().ccAll().getValue();
    }
    else if(form.lyrSearch().tabPageMyResults().isVisible())
    {
        criteria = form.lyrSearch().tabPageMyResults().ccMyResults().getValue();
    }
    else if(form.lyrSearch().tabPageInpatient().isVisible())
    {
        criteria = form.lyrSearch().tabPageInpatient().ccInpatient().getValue();
    }
    else if(form.lyrSearch().tabPageOutpatient().isVisible())
    {
        criteria = form.lyrSearch().tabPageOutpatient().ccOutpatient().getValue();
    }
    else if(form.lyrSearch().tabPageED().isVisible())
    {
        criteria = form.lyrSearch().tabPageED().ccED().getValue();
    }
    else if(form.lyrSearch().tabPagePatient().isVisible())
    {
        criteria = form.lyrSearch().tabPagePatient().ccPatient().getValue();
    }

    if(criteria != null)
    {
        criteria.setWasTimerOn(form.getLocalContext().getWasTimerOn());
    }

    return criteria;
}
项目:openmaxims-linux    文件:Logic.java   
public NewResultsCriteriaVo getValue() 
{
    NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();

    newResultsSearchCriteria.setEDOrders(true);

    newResultsSearchCriteria.setSelectedTab(ED);

    newResultsSearchCriteria.setHospital(form.cmbHospital().getValue());

    newResultsSearchCriteria.setOrderingLocation(form.getLocalContext().getEmergencyDepartment());

    newResultsSearchCriteria.setExcludeCurrentInpatients(form.chkExcludeCurrentInpatients().getValue());

    newResultsSearchCriteria.setOrder(true);
    newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());

    newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());
    newResultsSearchCriteria.setOrderingHCP(form.ccOrderingHCP().getValue());

    newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
    newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
    newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
    newResultsSearchCriteria.setForReview(form.chkReview().getValue());
    newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

    newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
    newResultsSearchCriteria.setToDate(form.dteTo().getValue());    
    newResultsSearchCriteria.setDays(form.cmbDays().getValue());
    newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);

    newResultsSearchCriteria.setDiscipline(getDisciplines());
    newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());

    return newResultsSearchCriteria;
}
项目:openmaxims-linux    文件:Logic.java   
public void setValue(NewResultsCriteriaVo criteria) 
{
    clear();

    if(criteria == null)
        return;

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

    form.getLocalContext().setEmergencyDepartment(criteria.getOrderingLocation() instanceof LocationLiteVo ? (LocationLiteVo) criteria.getOrderingLocation() : null);

    form.chkExcludeCurrentInpatients().setValue(criteria.getExcludeCurrentInpatients());

    form.ccOrderingHCP().setValue(criteria.getOrderingHCP());
    form.ccResponsibleHCP().setValue(criteria.getHCP());

    if (criteria.getReviewingHCP() != null && !form.qmbReviewingHCP().getValues().contains(criteria.getReviewingHCP()))
    {
        form.qmbReviewingHCP().newRow(criteria.getReviewingHCP(), criteria.getReviewingHCP().toString());
    }
    form.qmbReviewingHCP().setValue(criteria.getReviewingHCP());            

    form.chkNew().setValue(criteria.getNewUpdated());
    form.chkSeenChecked().setValue(criteria.getSeenChecked());
    form.chkChecked().setValue(criteria.getChecked());
    form.chkReview().setValue(criteria.getForReview()); 
    form.chkCompleted().setValue(criteria.getCompleted()); 

    populateDisciplineGrid(criteria.getDiscipline());

    form.dteFrom().setValue(criteria.getFromDate());
    form.dteTo().setValue(criteria.getToDate());
    form.cmbDays().setValue(criteria.getDays());

    form.ListResultsBy().setValue(Boolean.TRUE.equals(criteria.getNewestFirst()) ? ListResultsByEnumeration.rdoNewestFirst : ListResultsByEnumeration.rdoOldestFirst );
    form.chkAbnormalPathologyResultsOnly().setValue(criteria.getAbnormalPathologyResultsOnly());

    updateControlsState();
}
项目:openmaxims-linux    文件:Logic.java   
public void setValue(ims.ocrr.vo.NewResultsCriteriaVo criteria)
{
    clear();

    if (criteria == null)
        return;

    form.ccOrderingHCP().setValue(criteria.getOrderingHCP());
    form.ccResponsibleHCP().setValue(criteria.getHCP());

    if (criteria.getReviewingHCP() != null && !form.qmbReviewingHCP().getValues().contains(criteria.getReviewingHCP()))
    {
        form.qmbReviewingHCP().newRow(criteria.getReviewingHCP(), criteria.getReviewingHCP().toString());
    }
    form.qmbReviewingHCP().setValue(criteria.getReviewingHCP());

    form.chkNew().setValue(criteria.getNewUpdated());
    form.chkSeenChecked().setValue(criteria.getSeenChecked());
    form.chkChecked().setValue(criteria.getChecked());
    form.chkReview().setValue(criteria.getForReview());
    form.chkCompleted().setValue(criteria.getCompleted());

    populateDisciplineGrid(criteria.getDiscipline());

    form.dteFrom().setValue(criteria.getFromDate());
    form.dteTo().setValue(criteria.getToDate());
    form.cmbDays().setValue(criteria.getDays());

    form.ListResultsBy().setValue(Boolean.TRUE.equals(criteria.getNewestFirst()) ? ListResultsByEnumeration.rdoNewestFirst : ListResultsByEnumeration.rdoOldestFirst);
    form.chkAbnormalPathologyResultsOnly().setValue(criteria.getAbnormalPathologyResultsOnly());

    updateControlsState();
}
项目:openmaxims-linux    文件:Logic.java   
public ims.ocrr.vo.NewResultsCriteriaVo getValue()
{
    NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();

    newResultsSearchCriteria.setSelectedTab(PATIENT);
    newResultsSearchCriteria.setPatientId(form.getGlobalContext().Core.getPatientShort() != null ? form.getGlobalContext().Core.getPatientShort().getID_Patient() : null);

    newResultsSearchCriteria.setOrder(true);
    newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());

    newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());
    newResultsSearchCriteria.setOrderingHCP(form.ccOrderingHCP().getValue());

    newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
    newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
    newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
    newResultsSearchCriteria.setForReview(form.chkReview().getValue());
    newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

    newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
    newResultsSearchCriteria.setToDate(form.dteTo().getValue());
    newResultsSearchCriteria.setDays(form.cmbDays().getValue());
    newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);

    newResultsSearchCriteria.setDiscipline(getDisciplines());
    newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());

    return newResultsSearchCriteria;
}
项目:openmaxims-linux    文件:Logic.java   
public NewResultsCriteriaVo getValue() 
{
    NewResultsCriteriaVo newResultsSearchCriteria = new NewResultsCriteriaVo();

    //newResultsSearchCriteria.setInpatientOrders(true);

    newResultsSearchCriteria.setSelectedTab(INPATIENT);

    newResultsSearchCriteria.setHospital(form.cmbHospital().getValue());
    newResultsSearchCriteria.setInpatientHospital(form.cmbHospital().getValue());

    newResultsSearchCriteria.setInpatientWard(form.qmbOrderingLocation().getValue());

    newResultsSearchCriteria.setCurrentInpatientsOnly(form.chkCurrentInpatientsOnly().getValue());
    newResultsSearchCriteria.setInpatientOrdersPatientDischarged(form.chkInpatientOrdersPatientDischarged().getValue());

    newResultsSearchCriteria.setOrder(form.chkOrder().getValue());
    newResultsSearchCriteria.setCurrenIP(form.chkCurrentIP().getValue());
    newResultsSearchCriteria.setHCP(form.ccResponsibleHCP().getValue());

    newResultsSearchCriteria.setReviewingHCP(form.qmbReviewingHCP().getValue());

    newResultsSearchCriteria.setNewUpdated(form.chkNew().getValue());
    newResultsSearchCriteria.setSeenChecked(form.chkSeenChecked().getValue());
    newResultsSearchCriteria.setChecked(form.chkChecked().getValue());
    newResultsSearchCriteria.setForReview(form.chkReview().getValue());
    newResultsSearchCriteria.setCompleted(form.chkCompleted().getValue());

    newResultsSearchCriteria.setFromDate(form.dteFrom().getValue());
    newResultsSearchCriteria.setToDate(form.dteTo().getValue());    
    newResultsSearchCriteria.setDays(form.cmbDays().getValue());
    newResultsSearchCriteria.setNewestFirst(ListResultsByEnumeration.rdoNewestFirst.equals(form.ListResultsBy().getValue()) ? true : false);

    newResultsSearchCriteria.setDiscipline(getDisciplines());
    newResultsSearchCriteria.setAbnormalPathologyResultsOnly(form.chkAbnormalPathologyResultsOnly().getValue());

    return newResultsSearchCriteria;
}
项目:openmaxims-linux    文件:NewResultsSearchImpl.java   
private OrderInvStatusCollection getRequiredInvStatuses(NewResultsCriteriaVo criteria)
{
    OrderInvStatusCollection stColl = new OrderInvStatusCollection();

    if (criteria == null)
        return stColl;

    if (Boolean.TRUE.equals(criteria.getNewUpdated()))
    {
        stColl.add(OrderInvStatus.NEW_RESULT);
        stColl.add(OrderInvStatus.UPDATED_RESULT);
        stColl.add(OrderInvStatus.RESULTED);
    }
    if (Boolean.TRUE.equals(criteria.getForReview()))
    {
        stColl.add(OrderInvStatus.REVIEW);
    }
    if (Boolean.TRUE.equals(criteria.getSeenChecked()))
    {
        stColl.add(OrderInvStatus.SEEN);
    }

    if (Boolean.TRUE.equals(criteria.getChecked()))
    {
        stColl.add(OrderInvStatus.CHECKED);
    }

    if (Boolean.TRUE.equals(criteria.getCompleted()))
    {
        stColl.add(OrderInvStatus.COMPLETE);
    }

    return stColl;
}
项目:AvoinApotti    文件:Logic.java   
public void setValue(NewResultsCriteriaVo criteria) 
{
    clear();

    if(criteria == null)
        return;

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

    if(criteria.getOutpatientDepartment() != null)
    {
        form.qmbOrderingLocation().newRow(criteria.getOutpatientDepartment(), criteria.getOutpatientDepartment().toString());
        form.qmbOrderingLocation().setValue(criteria.getOutpatientDepartment());
    }

    form.ccOrderingHCP().setValue(criteria.getOrderingHCP());
    form.ccResponsibleHCP().setValue(criteria.getHCP());

    if (criteria.getReviewingHCP() != null && !form.qmbReviewingHCP().getValues().contains(criteria.getReviewingHCP()))
    {
        form.qmbReviewingHCP().newRow(criteria.getReviewingHCP(), criteria.getReviewingHCP().toString());
    }
    form.qmbReviewingHCP().setValue(criteria.getReviewingHCP());            

    form.chkNew().setValue(criteria.getNewUpdated());
    form.chkSeenChecked().setValue(criteria.getSeenChecked());
    form.chkChecked().setValue(criteria.getChecked());
    form.chkReview().setValue(criteria.getForReview()); 
    form.chkCompleted().setValue(criteria.getCompleted()); 

    populateDisciplineGrid(criteria.getDiscipline());

    form.dteFrom().setValue(criteria.getFromDate());
    form.dteTo().setValue(criteria.getToDate());
    form.cmbDays().setValue(criteria.getDays());

    form.ListResultsBy().setValue(Boolean.TRUE.equals(criteria.getNewestFirst()) ? ListResultsByEnumeration.rdoNewestFirst : ListResultsByEnumeration.rdoOldestFirst );
    form.chkAbnormalPathologyResultsOnly().setValue(criteria.getAbnormalPathologyResultsOnly());

    updateControlsState();
}
项目:AvoinApotti    文件:Logic.java   
private void initialize() 
{

    Object hcp = domain.getHcpLiteUser();
    if(hcp instanceof HcpLiteVo)
    {
        form.getLocalContext().setCurrentHCP((HcpLiteVo) hcp);
    }

    //WDEV-18349
    if (!isAlias())
    {
        engine.clearPatientContextInformation();
        form.lyrSearch().tabPageAll().ccAll().initialize();
    }
    else
    {
        form.lyrSearch().tabPagePatient().ccPatient().initialize();
        form.lyrSearch().showtabPagePatient();
        search(false, true, false);
    }

    form.getTimers().gettimerSearch().setInterval(ConfigFlag.UI.OCRR_NEW_RESULTS_TIMER_REFRESH_RATE.getValue());
    form.getLocalContext().setWasTimerOn(false);

    // security level WDEV-9780
    RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels();
    if (voRoleDisciplineSecurityLevels == null || (voRoleDisciplineSecurityLevels != null && voRoleDisciplineSecurityLevels.getIsConfigLoadedIsNotNull() && !voRoleDisciplineSecurityLevels.getIsConfigLoaded().equals(false)))
        form.getGlobalContext().OCRR.setRoleDisciplineSecurityLevels(domain.getRoleDisciplineSecurityLevels(engine.getLoggedInRole()));

    NewResultsCriteriaVo criteria = form.getGlobalContext().OCRR.getNewResultsCriteria();

    if(criteria != null && !isAlias())
    {
        if(criteria.getSelectedTab() != null)
        {
            if(ALL == criteria.getSelectedTab())
            {
                form.lyrSearch().showtabPageAll();
                form.lyrSearch().tabPageAll().ccAll().setValue(criteria);
            }
            else if(MYRESULTS == criteria.getSelectedTab())
            {
                form.lyrSearch().showtabPageMyResults();
                form.lyrSearch().tabPageMyResults().ccMyResults().initialize();
                form.lyrSearch().tabPageMyResults().ccMyResults().setValue(criteria);
            }
            else if(INPATIENT == criteria.getSelectedTab())
            {
                form.lyrSearch().showtabPageInpatient();
                form.lyrSearch().tabPageInpatient().ccInpatient().initialize();
                form.lyrSearch().tabPageInpatient().ccInpatient().setValue(criteria);
            }
            else if(OUTPATIENTS == criteria.getSelectedTab())
            {
                form.lyrSearch().showtabPageOutpatient();
                form.lyrSearch().tabPageOutpatient().ccOutpatient().initialize();
                form.lyrSearch().tabPageOutpatient().ccOutpatient().setValue(criteria);
            }
            else if(ED == criteria.getSelectedTab())
            {
                form.lyrSearch().showtabPageED();
                form.lyrSearch().tabPageED().ccED().initialize();
                form.lyrSearch().tabPageED().ccED().setValue(criteria);
            }

            if(criteria.getWasTimerOnIsNotNull() && criteria.getWasTimerOn())
            {
                form.getLocalContext().setWasTimerOn(true);
                toggleTimer(false);
            }

            search(false, false, false);
        }
    }

    updateControlsState();
}
项目:AvoinApotti    文件:Logic.java   
private boolean search(boolean fromTimer, boolean showMessages, boolean checkForWarning) 
{
    resetResults();

    NewResultsCriteriaVo criteria = getCriteria(fromTimer);

    if(criteria == null)
        return false;

    if (checkWarning(criteria) && checkForWarning)
    {
        engine.showMessage("You are about to perform a search with limited filters in place, this could result in a large number of resulted investigations being returned. Do you wish to proceed?", "Warning", MessageButtons.YESNO);
        return false;
    }

    NewResultsSearchListVoCollection newResults = domain.listNewResults(criteria);
    if (newResults == null || newResults.size() == 0)
    {
        if(showMessages)
        {
            engine.showMessage("No results found.", "Message");
        }

        if (!criteria.getSelectedTab().equals(PATIENT))
            form.getGlobalContext().OCRR.setNewResultsCriteria(criteria);

        return true;
    }


    Integer nNewResUnseenDays = new Integer(ConfigFlag.DOM.OCS_NEWRES_UNSEEN_CUTOFF.getValue());
    Date dateUnseen = new Date().addDay(-1 * nNewResUnseenDays.intValue());

    for (NewResultsSearchListVo newResult : newResults)
        addNewResult(newResult, dateUnseen);

    if (!criteria.getSelectedTab().equals(PATIENT))
        form.getGlobalContext().OCRR.setNewResultsCriteria(criteria);

    updateSearchTotal(form.grdResults().getAllRows().length);

    return true;
}
项目:AvoinApotti    文件:Logic.java   
private void tabSearchChanged() 
{
    resetResults();
    form.getTimers().gettimerSearch().setEnabled(false);

    NewResultsCriteriaVo criteria = form.getGlobalContext().OCRR.getNewResultsCriteria();

    if(form.lyrSearch().tabPageAll().isVisible())
    {
        form.lyrSearch().tabPageAll().ccAll().initialize();

        if(ALL == getTabFromCriteria())
        {
            form.getTimers().gettimerSearch().setEnabled(Boolean.TRUE.equals(criteria.getWasTimerOn()));
            form.lyrSearch().tabPageAll().ccAll().setValue(criteria);

            search(false, false, false);
        }
    }
    else if(form.lyrSearch().tabPageMyResults().isVisible()) 
    {
        form.lyrSearch().tabPageMyResults().ccMyResults().initialize();
        if(MYRESULTS == getTabFromCriteria())
        {
            form.getTimers().gettimerSearch().setEnabled(Boolean.TRUE.equals(criteria.getWasTimerOn()));
            form.lyrSearch().tabPageMyResults().ccMyResults().setValue(criteria);

            search(false, false, false);
        }
    }
    else if(form.lyrSearch().tabPageInpatient().isVisible()) 
    {
        form.lyrSearch().tabPageInpatient().ccInpatient().initialize();
        if(INPATIENT == getTabFromCriteria())
        {
            form.getTimers().gettimerSearch().setEnabled(Boolean.TRUE.equals(criteria.getWasTimerOn()));
            form.lyrSearch().tabPageInpatient().ccInpatient().setValue(criteria);

            search(false, false, false);
        }
    }
    else if(form.lyrSearch().tabPageOutpatient().isVisible()) 
    {
        form.lyrSearch().tabPageOutpatient().ccOutpatient().initialize();
        if(OUTPATIENTS == getTabFromCriteria())
        {
            form.getTimers().gettimerSearch().setEnabled(Boolean.TRUE.equals(criteria.getWasTimerOn()));
            form.lyrSearch().tabPageOutpatient().ccOutpatient().setValue(criteria);

            search(false, false, false);
        }
    }
    else if(form.lyrSearch().tabPageED().isVisible()) 
    {
        form.lyrSearch().tabPageED().ccED().initialize();
        if(ED == getTabFromCriteria())
        {
            form.getTimers().gettimerSearch().setEnabled(Boolean.TRUE.equals(criteria.getWasTimerOn()));
            form.lyrSearch().tabPageED().ccED().setValue(criteria);

            search(false, false, false);
        }
    }
}