Java 类ims.core.vo.PatientFilter 实例源码

项目:AvoinApotti    文件:Logic.java   
public void setFilterCriteria(PatientFilter filter)
{
    if (filter==null)
        return;

    form.Surname().setValue(filter.getSurname());
    form.Forename().setValue(filter.getForename());
    form.DOB().setValue(filter.getDob());
    form.Sex().setValue(filter.getSex());
    if (filter.getPersId() != null)
    {
        form.Surname().setValue(null);
        form.Forename().setValue(null);
        form.DOB().setValue(null);
        form.Sex().setValue(null);

        form.PatientID().setValue(filter.getPersId().getType());
        form.Identifier().setValue(filter.getPersId().getValue());      
        form.Identifier().setFocus();
    }

}
项目:AvoinApotti    文件:Logic.java   
private PatientFilter getPatientFilterDetails()
{
    PatientFilter voPatFilter = new PatientFilter();

    if (form.lyrCustomListSearch().tabCustomListDetails().txtDisplayId().getValue() != null && form.lyrCustomListSearch().tabCustomListDetails().txtDisplayId().getValue().length() > 0)
    {
        PatientId pid = new PatientId();
        pid.setType(PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue()));
        pid.setValue(form.lyrCustomListSearch().tabCustomListDetails().txtDisplayId().getValue());
        voPatFilter.setPersId(pid);
    }
    else
    {
        voPatFilter.setForename(form.lyrCustomListSearch().tabCustomListDetails().txtName().getValue());
        voPatFilter.setSurname(form.lyrCustomListSearch().tabCustomListDetails().txtSurname().getValue());
        voPatFilter.setDob(form.lyrCustomListSearch().tabCustomListDetails().pdtDate().getValue());
    }

    return voPatFilter;
}
项目:AvoinApotti    文件:Logic.java   
private PatientFilter getPatientFilterDetails()
{
    PatientFilter voPatFilter = new PatientFilter();

    if (form.txtDisplayId().getValue() != null && form.txtDisplayId().getValue().length() > 0)
    {
        PatientId pid = new PatientId();
        pid.setType(PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue()));
        pid.setValue(form.txtDisplayId().getValue());
        voPatFilter.setPersId(pid);
    }
    else
    {
        voPatFilter.setForename(form.txtName().getValue());
        voPatFilter.setSurname(form.txtSurname().getValue());
        voPatFilter.setDob(form.pdtDate().getValue());
    }

    return voPatFilter;
}
项目:AvoinApotti    文件:Logic.java   
private PatientFilter getPatientFilterDetails()
{
    PatientFilter voPatFilter = new PatientFilter();

    if (form.txtDisplayId().getValue() != null && form.txtDisplayId().getValue().length() > 0)
    {
        PatientId pid = new PatientId();
        pid.setType(PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue()));
        pid.setValue(form.txtDisplayId().getValue());
        voPatFilter.setPersId(pid);
    }
    else
    {
        voPatFilter.setForename(form.txtName().getValue());
        voPatFilter.setSurname(form.txtSurname().getValue());
        voPatFilter.setDob(form.pdtDate().getValue());
    }

    return voPatFilter;
}
项目:openMAXIMS    文件:Logic.java   
public void setFilterCriteria(PatientFilter filter)
{
    if (filter==null)
        return;

    form.Surname().setValue(filter.getSurname());
    form.Forename().setValue(filter.getForename());
    form.DOB().setValue(filter.getDob());
    form.Sex().setValue(filter.getSex());
    if (filter.getPersId() != null)
    {
        form.Surname().setValue(null);
        form.Forename().setValue(null);
        form.DOB().setValue(null);
        form.Sex().setValue(null);

        form.PatientID().setValue(filter.getPersId().getType());
        form.Identifier().setValue(filter.getPersId().getValue());      
        form.Identifier().setFocus();
    }

}
项目:openMAXIMS    文件:Logic.java   
private PatientFilter getPatientFilterDetails()
{
    PatientFilter voPatFilter = new PatientFilter();

    if (form.lyrCustomListSearch().tabCustomListDetails().txtDisplayId().getValue() != null && form.lyrCustomListSearch().tabCustomListDetails().txtDisplayId().getValue().length() > 0)
    {
        PatientId pid = new PatientId();
        pid.setType(PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue()));
        pid.setValue(form.lyrCustomListSearch().tabCustomListDetails().txtDisplayId().getValue());
        voPatFilter.setPersId(pid);
    }
    else
    {
        voPatFilter.setForename(form.lyrCustomListSearch().tabCustomListDetails().txtName().getValue());
        voPatFilter.setSurname(form.lyrCustomListSearch().tabCustomListDetails().txtSurname().getValue());
        voPatFilter.setDob(form.lyrCustomListSearch().tabCustomListDetails().pdtDate().getValue());
    }

    return voPatFilter;
}
项目:openMAXIMS    文件:BedAdmissionComponentImpl.java   
public PatientLite_IdentifiersVoCollection searchPatients(PatientFilter filter) throws DomainInterfaceException
{
    if (filter == null)
        throw new CodingRuntimeException("filter cannot be null in method searchPatients");

    PatientSearch impl = (PatientSearch) getDomainImpl(PatientSearchImpl.class);
    PatientShortCollection patients = impl.searchPatients(filter);

    PatientLite_IdentifiersVoCollection results = new PatientLite_IdentifiersVoCollection();
    for (PatientShort patient : patients)
    {
        results.add(patient.toPatientLite_IdentifiersVo());
    }

    return results;
}
项目:openMAXIMS    文件:Logic.java   
private PatientFilter getPatientFilterDetails()
{
    PatientFilter voPatFilter = new PatientFilter();

    if (form.txtDisplayId().getValue() != null && form.txtDisplayId().getValue().length() > 0)
    {
        PatientId pid = new PatientId();
        pid.setType(PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue()));
        pid.setValue(form.txtDisplayId().getValue());
        voPatFilter.setPersId(pid);
    }
    else
    {
        voPatFilter.setForename(form.txtName().getValue());
        voPatFilter.setSurname(form.txtSurname().getValue());
        voPatFilter.setDob(form.pdtDate().getValue());
    }

    return voPatFilter;
}
项目:openMAXIMS    文件:Logic.java   
private void setClientFilterControls()
{
    PatientFilter voPatFilter = form.getGlobalContext().Core.getPatientFilter();
    if (voPatFilter == null)
        return;

    if (voPatFilter.getPersIdIsNotNull())
    {
        form.cmbPatientID().setValue(voPatFilter.getPersId().getType());
        form.txtIdentifier().setValue(voPatFilter.getPersId().getValue());
    }
    else
    {
        form.txtForename().setValue(voPatFilter.getForename());
        form.txtSurname().setValue(voPatFilter.getSurname());
        form.cmbSex().setValue(voPatFilter.getSex());
        form.pdtDOB().setValue(voPatFilter.getDob());
        form.txtAddress().setValue(voPatFilter.getAddress());
        form.cmbCounty().setValue(voPatFilter.getCounty());
        form.cmbCCA().setValue(voPatFilter.getCCA());
    }
}
项目:openMAXIMS    文件:Logic.java   
public void setFilterCriteria(PatientFilter filter)
{
    if (filter==null)
        return;

    form.Surname().setValue(filter.getSurname());
    form.Forename().setValue(filter.getForename());
    form.DOB().setValue(filter.getDob());
    form.Sex().setValue(filter.getSex());
    if (filter.getPersId() != null)
    {
        form.Surname().setValue(null);
        form.Forename().setValue(null);
        form.DOB().setValue(null);
        form.Sex().setValue(null);

        form.PatientID().setValue(filter.getPersId().getType());
        form.Identifier().setValue(filter.getPersId().getValue());      
        form.Identifier().setFocus();
    }

}
项目:openMAXIMS    文件:Logic.java   
private PatientFilter getPatientFilterDetails()
{
    PatientFilter voPatFilter = new PatientFilter();

    if (form.lyrCustomListSearch().tabCustomListDetails().txtDisplayId().getValue() != null && form.lyrCustomListSearch().tabCustomListDetails().txtDisplayId().getValue().length() > 0)
    {
        PatientId pid = new PatientId();
        pid.setType(PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue()));
        pid.setValue(form.lyrCustomListSearch().tabCustomListDetails().txtDisplayId().getValue());
        voPatFilter.setPersId(pid);
    }
    else
    {
        voPatFilter.setForename(form.lyrCustomListSearch().tabCustomListDetails().txtName().getValue());
        voPatFilter.setSurname(form.lyrCustomListSearch().tabCustomListDetails().txtSurname().getValue());
        voPatFilter.setDob(form.lyrCustomListSearch().tabCustomListDetails().pdtDate().getValue());
    }

    return voPatFilter;
}
项目:openMAXIMS    文件:Logic.java   
private PatientFilter getPatientFilterDetails()
{
    PatientFilter voPatFilter = new PatientFilter();

    if (form.txtDisplayId().getValue() != null && form.txtDisplayId().getValue().length() > 0)
    {
        PatientId pid = new PatientId();
        pid.setType(PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue()));
        pid.setValue(form.txtDisplayId().getValue());
        voPatFilter.setPersId(pid);
    }
    else
    {
        voPatFilter.setForename(form.txtName().getValue());
        voPatFilter.setSurname(form.txtSurname().getValue());
        voPatFilter.setDob(form.pdtDate().getValue());
    }

    return voPatFilter;
}
项目:openMAXIMS    文件:Logic.java   
private PatientFilter getPatientFilterDetails()
{
    PatientFilter voPatFilter = new PatientFilter();

    if (form.txtDisplayId().getValue() != null && form.txtDisplayId().getValue().length() > 0)
    {
        PatientId pid = new PatientId();
        pid.setType(PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue()));
        pid.setValue(form.txtDisplayId().getValue());
        voPatFilter.setPersId(pid);
    }
    else
    {
        voPatFilter.setForename(form.txtName().getValue());
        voPatFilter.setSurname(form.txtSurname().getValue());
        voPatFilter.setDob(form.pdtDate().getValue());
    }

    return voPatFilter;
}
项目:openmaxims-linux    文件:Logic.java   
public void setFilterCriteria(PatientFilter filter)
{
    if (filter==null)
        return;

    form.Surname().setValue(filter.getSurname());
    form.Forename().setValue(filter.getForename());
    form.DOB().setValue(filter.getDob());
    form.Sex().setValue(filter.getSex());
    if (filter.getPersId() != null)
    {
        form.Surname().setValue(null);
        form.Forename().setValue(null);
        form.DOB().setValue(null);
        form.Sex().setValue(null);

        form.PatientID().setValue(filter.getPersId().getType());
        form.Identifier().setValue(filter.getPersId().getValue());      
        form.Identifier().setFocus();
    }

}
项目:openmaxims-linux    文件:Logic.java   
private PatientFilter getPatientFilterDetails()
{
    PatientFilter voPatFilter = new PatientFilter();

    if (form.lyrCustomListSearch().tabCustomListDetails().txtDisplayId().getValue() != null && form.lyrCustomListSearch().tabCustomListDetails().txtDisplayId().getValue().length() > 0)
    {
        PatientId pid = new PatientId();
        pid.setType(PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue()));
        pid.setValue(form.lyrCustomListSearch().tabCustomListDetails().txtDisplayId().getValue());
        voPatFilter.setPersId(pid);
    }
    else
    {
        voPatFilter.setForename(form.lyrCustomListSearch().tabCustomListDetails().txtName().getValue());
        voPatFilter.setSurname(form.lyrCustomListSearch().tabCustomListDetails().txtSurname().getValue());
        voPatFilter.setDob(form.lyrCustomListSearch().tabCustomListDetails().pdtDate().getValue());
    }

    return voPatFilter;
}
项目:openmaxims-linux    文件:Logic.java   
private PatientFilter getPatientFilterDetails()
{
    PatientFilter voPatFilter = new PatientFilter();

    if (form.txtDisplayId().getValue() != null && form.txtDisplayId().getValue().length() > 0)
    {
        PatientId pid = new PatientId();
        pid.setType(PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue()));
        pid.setValue(form.txtDisplayId().getValue());
        voPatFilter.setPersId(pid);
    }
    else
    {
        voPatFilter.setForename(form.txtName().getValue());
        voPatFilter.setSurname(form.txtSurname().getValue());
        voPatFilter.setDob(form.pdtDate().getValue());
    }

    return voPatFilter;
}
项目:openmaxims-linux    文件:Logic.java   
private PatientFilter getPatientFilterDetails()
{
    PatientFilter voPatFilter = new PatientFilter();

    if (form.txtDisplayId().getValue() != null && form.txtDisplayId().getValue().length() > 0)
    {
        PatientId pid = new PatientId();
        pid.setType(PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue()));
        pid.setValue(form.txtDisplayId().getValue());
        voPatFilter.setPersId(pid);
    }
    else
    {
        voPatFilter.setForename(form.txtName().getValue());
        voPatFilter.setSurname(form.txtSurname().getValue());
        voPatFilter.setDob(form.pdtDate().getValue());
    }

    return voPatFilter;
}
项目:AvoinApotti    文件:Logic.java   
public void setValue(PatientShort pat)
{
    if (pat == null)
    {
        clearScreen();
        form.getLocalContext().setPatient(null);
        PatientFilter voPatFilter = form.getGlobalContext().Core.getPatientFilter();
        if (voPatFilter != null)
        {
            form.txtSurname().setValue(voPatFilter.getSurname());
            form.txtForename().setValue(voPatFilter.getForename());
            if (voPatFilter.getSexIsNotNull())
                form.cmbSex().setValue(voPatFilter.getSex());
            if (voPatFilter.getDobIsNotNull())
                form.pdtDOB().setValue(voPatFilter.getDob());
        }
        setRemoveCommunicationMenuVisibility();
        setRemoveMenuVisibility();

    }
    else
        try
        {
            displayPatient(pat);
        }
        catch (FormOpenException e)
        {
            e.printStackTrace();
        }
}
项目:AvoinApotti    文件:Logic.java   
private void setPatientFilterDetails()
{       
    PatientFilter voPatFilter = new PatientFilter();        
    PatientShort patient = form.grdInpatients().getValue().getPasEvent().getPatient();      
    voPatFilter.setForename(patient.getNameIsNotNull() ? patient.getName().getForename() : null);
    voPatFilter.setSurname(patient.getNameIsNotNull() ? patient.getName().getSurname() : null);
    voPatFilter.setSex(patient.getSex());
    voPatFilter.setDob(patient.getDob());

    form.getGlobalContext().Core.setPatientFilter(voPatFilter);
}
项目:AvoinApotti    文件:Logic.java   
private void setPatientFilterDetails()
{
    PatientFilter voPatFilter = new PatientFilter();

    //WDEV-17588
    if (form.getGlobalContext().Core.getPatientFilter() != null && Boolean.TRUE.equals(form.getGlobalContext().Core.getPatientFilter().getExcludeDeceasedPatients()))
    {
        voPatFilter.setExcludeDeceasedPatients(Boolean.TRUE);
    }

    if (form.Identifier().getValue() != null && form.Identifier().getValue().length() > 0)
    {
        if (form.PatientID().getValue() == null)
        {
            engine.showMessage("Please select a Patient ID Type");
            form.PatientID().setFocus();
            return;
        }
        PatientId pid = new PatientId();
        pid.setType(form.PatientID().getValue());   
        pid.setValue(form.Identifier().getValue());         
        voPatFilter.setPersId(pid);

    }
    else
    {
        voPatFilter.setForename(form.Forename().getValue());
        voPatFilter.setSurname(form.Surname().getValue());
        voPatFilter.setSex(form.Sex().getValue());
        voPatFilter.setDob(form.DOB().getValue());
        voPatFilter.setAddress(form.txtAddress().getValue());
        voPatFilter.setCounty(form.cmbCounty().getValue());
        voPatFilter.setPostCode(form.txtPostCode().getValue());
    }

    form.getGlobalContext().Core.setPatientFilter(voPatFilter);
    form.getLocalContext().setPatientFilter(voPatFilter);
}
项目:AvoinApotti    文件:Logic.java   
public void setPatientDetailsFromPatientFilter(PatientFilter patientFilter) 
{
    form.txtSurname().setValue(patientFilter.getSurname());
    form.txtForename().setValue(patientFilter.getForename());
    if (patientFilter.getSexIsNotNull())
        form.cmbSex().setValue(patientFilter.getSex());
    form.pdtDOB().setValue(patientFilter.getDob());
    form.imbOtherNames().setVisible(false);

}
项目:AvoinApotti    文件:Logic.java   
protected void setPatientFilterDetails()
{
    PatientFilter voPatFilter = new PatientFilter();

    if (form.Identifier().getValue() != null && form.Identifier().getValue().length() > 0 )
    {
        if (form.PatientID().getValue() == null)
        {
            engine.showMessage("Please select a Patient ID Type");
            form.PatientID().setFocus();
            return;
        }
        PatientId pid = new PatientId();
        pid.setType(form.PatientID().getValue());   
        pid.setValue(form.Identifier().getValue());         
        voPatFilter.setPersId(pid);

        //WDEV-13293 
        if(ConfigFlag.DOM.PATIENT_SEARCH_TYPE.getValue().equals("LOCAL") && form.PatientID().getValue().equals(PatIdType.NHSN)){
            voPatFilter.setForename(form.Forename().getValue());
            voPatFilter.setSurname(form.Surname().getValue());
            voPatFilter.setSex(form.Sex().getValue());
            voPatFilter.setDob(form.DOB().getValue());  
            voPatFilter.setAddress(form.txtAddress().getValue());
            voPatFilter.setCounty(form.cmbCounty().getValue());
            voPatFilter.setPostCode(form.txtPostCode().getValue());
        }
    }
    else
    {
        voPatFilter.setForename(form.Forename().getValue());
        voPatFilter.setSurname(form.Surname().getValue());
        voPatFilter.setSex(form.Sex().getValue());
        voPatFilter.setDob(form.DOB().getValue());  
        voPatFilter.setAddress(form.txtAddress().getValue());
        voPatFilter.setCounty(form.cmbCounty().getValue());
        voPatFilter.setPostCode(form.txtPostCode().getValue());
    }
    form.getGlobalContext().Core.setPatientFilter(voPatFilter);
}
项目:AvoinApotti    文件:Logic.java   
private PatientShortCollection search()
{
    form.getLocalContext().setSelectedPatient(null);

    form.lyrCustomListSearch().tabCustomListDetails().lblTotal().setValue("Total : " + form.lyrCustomListSearch().tabCustomListDetails().grdPatientsDetails().getRows().size());
    form.lyrCustomListSearch().tabCustomListDetails().grdPatientsDetails().getRows().clear();

    PatientFilter voFilter = getPatientFilterDetails();
    PatientShortCollection voCollPatientShort = null;

    try
    {
        voCollPatientShort = domain.searchPatients(voFilter);
    }
    catch (DomainInterfaceException e)
    {
        engine.showMessage(e.getMessage());
        return null;
    }

    if (voCollPatientShort.size() == 0)
    {
        engine.showMessage("No patients found");
        return null;
    }

    return voCollPatientShort;
}
项目:AvoinApotti    文件:CustomListMaintenanceImpl.java   
public PatientShortCollection searchPatients(PatientFilter filter) throws DomainInterfaceException {
    if(filter == null)
        throw new CodingRuntimeException("parameter filter is null in method searchPatients");

    PatientSearch impl = (PatientSearch) getDomainImpl(PatientSearchImpl.class);
    return impl.searchPatients(filter);
}
项目:AvoinApotti    文件:PatientSearchImpl.java   
public PatientShortCollection searchPatients(PatientFilter filter) throws ims.domain.exceptions.DomainInterfaceException 
{
    if(ConfigFlag.DOM.PATIENT_SEARCH_TYPE.getValue().equals("LOCAL"))   
        return searchPatientsLocal(filter, true);
    else if(ConfigFlag.DOM.PATIENT_SEARCH_TYPE.getValue().equals("DTO"))
        return searchPatientsDTO(filter, Boolean.FALSE);

    return new PatientShortCollection();
}
项目:AvoinApotti    文件:PatientSearchImpl.java   
public PatientShortCollection getPatient(PatientFilter filter, Boolean remote) throws DomainInterfaceException 
{       
    if(InitConfig.getConfigType().equals("HIB")) 
        return searchPatientsLocal(filter,true);
    else if(InitConfig.getConfigType().equals("DTO"))
        return searchPatientsDTO(filter, remote);   

    return new PatientShortCollection();
}
项目:AvoinApotti    文件:PatientSearchComponentImpl.java   
public PatientShortCollection searchPatients(PatientFilter filter) throws ims.domain.exceptions.DomainInterfaceException 
{
    if(ConfigFlag.DOM.PATIENT_SEARCH_TYPE.getValue().equals("LOCAL"))   
        return searchPatientsLocal(filter, true);
    else if(ConfigFlag.DOM.PATIENT_SEARCH_TYPE.getValue().equals("DTO"))
        return searchPatientsDTO(filter, Boolean.FALSE);

    return new PatientShortCollection();
}
项目:AvoinApotti    文件:PatientSearchComponentImpl.java   
public PatientShortCollection getPatient(PatientFilter filter, Boolean remote) throws DomainInterfaceException 
{       
    if(InitConfig.getConfigType().equals("HIB")) 
        return searchPatientsLocal(filter,true);
    else if(InitConfig.getConfigType().equals("DTO"))
        return searchPatientsDTO(filter, remote);   

    return new PatientShortCollection();
}
项目:AvoinApotti    文件:BedAdmissionComponentImpl.java   
public PatientShortCollection searchPatients(PatientFilter filter) throws DomainInterfaceException
{
    if (filter == null)
        throw new CodingRuntimeException("filter cannot be null in method searchPatients");

    PatientSearch impl = (PatientSearch) getDomainImpl(PatientSearchImpl.class);
    return impl.searchPatients(filter);
}
项目:AvoinApotti    文件:Logic.java   
private PatientFilter populatePatientFilter()
{
    PatientFilter patFilter = new PatientFilter();
    patFilter.setSurname(form.txtSurname().getValue());
    patFilter.setForename(form.txtForename().getValue());
    patFilter.setSex(form.cmbGender().getValue());
    patFilter.setDob(form.pdtDOB().getValue());
    patFilter.setExcludeDeceasedPatients(Boolean.TRUE);//WDEV-17588

    return patFilter;
}
项目:AvoinApotti    文件:Logic.java   
private PatientShortCollection search()
{
    form.grdAppts().getRows().clear();
    form.getLocalContext().setselectedPatient(null);


    form.grdPatients().getRows().clear();
    form.lblTotal().setValue("Total : " + form.grdPatients().getRows().size());//WDEV-12990
    PatientFilter voFilter = getPatientFilterDetails();
    PatientShortCollection voCollPatientShort = null;

    try
    {
        voCollPatientShort = domain.searchPatients(voFilter);
    }
    catch (DomainInterfaceException e)
    {
        engine.showMessage(e.getMessage());
        return null;
    }

    if (voCollPatientShort.size() == 0)
    {
        engine.showMessage("No patients found");
        return null;
    }

    return voCollPatientShort;
}
项目:AvoinApotti    文件:Logic.java   
private PatientShortCollection search()
{
    form.grdAppts().getRows().clear();
    form.getLocalContext().setselectedPatient(null);

    form.grdPatients().getRows().clear();//WDEV-12990
    form.lblTotal().setValue("Total : " + form.grdPatients().getRows().size());//WDEV-12990


    PatientFilter voFilter = getPatientFilterDetails();
    PatientShortCollection voCollPatientShort = null;

    try
    {
        voCollPatientShort = domain.searchPatients(voFilter);
    }
    catch (DomainInterfaceException e)
    {
        engine.showMessage(e.getMessage());
        return null;
    }

    if (voCollPatientShort.size() == 0)
    {
        engine.showMessage("No patients found");
        return null;
    }

    return voCollPatientShort;
}
项目:openMAXIMS    文件:Logic.java   
public void setValue(PatientShort pat)
{
    if (pat == null)
    {
        clearScreen();
        form.getLocalContext().setPatient(null);
        PatientFilter voPatFilter = form.getGlobalContext().Core.getPatientFilter();
        if (voPatFilter != null)
        {
            form.txtSurname().setValue(voPatFilter.getSurname());
            form.txtForename().setValue(voPatFilter.getForename());
            if (voPatFilter.getSexIsNotNull())
                form.cmbSex().setValue(voPatFilter.getSex());
            if (voPatFilter.getDobIsNotNull())
                form.pdtDOB().setValue(voPatFilter.getDob());
        }
        setRemoveCommunicationMenuVisibility();
        setRemoveMenuVisibility();

    }
    else
        try
        {
            displayPatient(pat);
        }
        catch (FormOpenException e)
        {
            e.printStackTrace();
        }
}
项目:openMAXIMS    文件:Logic.java   
public void setPatientDetailsFromPatientFilter(PatientFilter patientFilter) 
{
    if(patientFilter != null)
    {
        form.txtSurname().setValue(patientFilter.getSurname());
        form.txtForename().setValue(patientFilter.getForename());
        if (patientFilter.getSexIsNotNull())
            form.cmbSex().setValue(patientFilter.getSex());
        form.pdtDOB().setValue(patientFilter.getDob());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void setPatientFilterDetails()
{       
    PatientFilter voPatFilter = new PatientFilter();        
    //PatientShort patient = form.grdInpatients().getValue().getPasEvent().getPatient();
    PatientShort patient = ((InpatientEpisodeVo)form.dyngrdInpatients().getValue()).getPasEvent().getPatient();     //wdev-18784
    voPatFilter.setForename(patient.getNameIsNotNull() ? patient.getName().getForename() : null);
    voPatFilter.setSurname(patient.getNameIsNotNull() ? patient.getName().getSurname() : null);
    voPatFilter.setSex(patient.getSex());
    voPatFilter.setDob(patient.getDob());

    form.getGlobalContext().Core.setPatientFilter(voPatFilter);
}
项目:openMAXIMS    文件:Logic.java   
public void setPatientDetailsFromPatientFilter(PatientFilter patientFilter) 
{
    form.txtSurname().setValue(patientFilter.getSurname());
    form.txtForename().setValue(patientFilter.getForename());
    if (patientFilter.getSexIsNotNull())
        form.cmbSex().setValue(patientFilter.getSex());
    form.pdtDOB().setValue(patientFilter.getDob());
    form.imbOtherNames().setVisible(false);

}
项目:openMAXIMS    文件:Logic.java   
private PatientShortCollection search()
{
    form.getLocalContext().setSelectedPatient(null);

    form.lyrCustomListSearch().tabCustomListDetails().lblTotal().setValue("Total : " + form.lyrCustomListSearch().tabCustomListDetails().grdPatientsDetails().getRows().size());
    form.lyrCustomListSearch().tabCustomListDetails().grdPatientsDetails().getRows().clear();

    PatientFilter voFilter = getPatientFilterDetails();
    PatientShortCollection voCollPatientShort = null;

    try
    {
        voCollPatientShort = domain.searchPatients(voFilter);
    }
    catch (DomainInterfaceException e)
    {
        engine.showMessage(e.getMessage());
        return null;
    }

    if (voCollPatientShort.size() == 0)
    {
        engine.showMessage("No patients found");
        return null;
    }

    return voCollPatientShort;
}
项目:openMAXIMS    文件:CustomListMaintenanceImpl.java   
public PatientShortCollection searchPatients(PatientFilter filter) throws DomainInterfaceException {
    if(filter == null)
        throw new CodingRuntimeException("parameter filter is null in method searchPatients");

    PatientSearch impl = (PatientSearch) getDomainImpl(PatientSearchImpl.class);
    return impl.searchPatients(filter);
}
项目:openMAXIMS    文件:PatientSearchImpl.java   
public PatientShortCollection searchPatients(PatientFilter filter) throws ims.domain.exceptions.DomainInterfaceException 
{
    //WDEV-22567
    boolean bShowMergedPatients = !ConfigFlag.UI.HIDE_MERGED_PATIENTS_ON_PATIENT_SEARCH.getValue();
    if(ConfigFlag.DOM.PATIENT_SEARCH_TYPE.getValue().equals("LOCAL"))   
        return searchPatientsLocal(filter, bShowMergedPatients);
    else if(ConfigFlag.DOM.PATIENT_SEARCH_TYPE.getValue().equals("DTO"))
        return searchPatientsDTO(filter, Boolean.FALSE);

    return new PatientShortCollection();
}
项目:openMAXIMS    文件:PatientSearchImpl.java   
public PatientShortCollection getPatient(PatientFilter filter, Boolean remote) throws DomainInterfaceException 
{       
    if(InitConfig.getConfigType().equals("HIB")) 
        return searchPatientsLocal(filter,true);
    else if(InitConfig.getConfigType().equals("DTO"))
        return searchPatientsDTO(filter, remote);   

    return new PatientShortCollection();
}