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

项目:AvoinApotti    文件:Logic.java   
/**
 * WDEV-13137
 * Function used to manual sort patients after age
 */
private PatientShortCollection manualSortAge(SortOrder sortOrderAge)
{
    // Get patients from grid
    PatientShortCollection patients = new PatientShortCollection();

    for(int i = 0;i < form.dyngrdPatient().getRows().size();i++)
    {
        patients.add((PatientShort) form.dyngrdPatient().getRows().get(i).getValue());
    }

    // Sort collection after age - using custom comparator
    patients.sort(new AgeComparator(sortOrderAge));
    // Return sorted collection
    return patients;
}
项目:AvoinApotti    文件:BedInfoDialogImpl.java   
public PatientShortCollection getPatientsForCurrentBay(LocationRefVo currentBay)
{
    StringBuilder query = new StringBuilder();
    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    query.append("SELECT patients FROM InpatientEpisode AS inpEp LEFT JOIN inpEp.pasEvent AS pasEv ");
    query.append("LEFT JOIN pasEv.patient AS patients ");
    query.append("LEFT JOIN inpEp.bed AS bed ");
    query.append("LEFT JOIN bed.bay AS patientBay ");

    query.append("WHERE patientBay.id = :bay ");
    paramNames.add("bay");
    paramValues.add(currentBay.getID_Location());

    return PatientShortAssembler.createPatientShortCollectionFromPatient(getDomainFactory().find(query.toString(), paramNames, paramValues));
}
项目:openMAXIMS    文件:Logic.java   
/**
 * WDEV-13137
 * Function used to manual sort patients after age
 */
private PatientShortCollection manualSortAge(SortOrder sortOrderAge)
{
    // Get patients from grid
    PatientShortCollection patients = new PatientShortCollection();

    for(int i = 0;i < form.dyngrdPatient().getRows().size();i++)
    {
        patients.add((PatientShort) form.dyngrdPatient().getRows().get(i).getValue());
    }

    // Sort collection after age - using custom comparator
    patients.sort(new AgeComparator(sortOrderAge));
    // Return sorted collection
    return patients;
}
项目:openMAXIMS    文件:BedInfoDialogImpl.java   
public PatientShortCollection getPatientsForCurrentBay(LocationRefVo currentBay)
{
    StringBuilder query = new StringBuilder();
    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    query.append("SELECT patients FROM InpatientEpisode AS inpEp LEFT JOIN inpEp.pasEvent AS pasEv ");
    query.append("LEFT JOIN pasEv.patient AS patients ");
    query.append("LEFT JOIN inpEp.bed AS bed ");
    query.append("LEFT JOIN bed.bay AS patientBay ");

    query.append("WHERE patientBay.id = :bay ");
    paramNames.add("bay");
    paramValues.add(currentBay.getID_Location());

    return PatientShortAssembler.createPatientShortCollectionFromPatient(getDomainFactory().find(query.toString(), paramNames, paramValues));
}
项目: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 void populateGridWithChilds(PatientShort parent) 
{
    form.lyrFamily().tabPage1().grdChilds().getRows().clear();

    if(parent == null || (parent != null && !parent.getID_PatientIsNotNull()))
        return;

    PatientShortCollection listChilds = domain.listChilds(parent);

    if(listChilds == null)
        return;

    for(int i=0; i<listChilds.size(); i++)
    {
        if(listChilds.get(i) != null)
        {
            addChildToGrid(listChilds.get(i), Color.White, false);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateGrid(PatientShort clientParent) 
{
    form.grdClients().getRows().clear();

    if(clientParent == null)
        return;

    PatientShortCollection childs = domain.listChilds(clientParent);

    grdClientsRow newRow = form.grdClients().getRows().newRow();
    updateRow(newRow, clientParent);

    for(int i=0; i<childs.size(); i++)
    {
        newRow = form.grdClients().getRows().newRow();
        updateRow(newRow, childs.get(i));
    }
}
项目:openMAXIMS    文件:UpdateAddressImpl.java   
public Integer saveFamilyAddress(PatientShortCollection clients, ClientAddressVo newAddress, CommChannelVoCollection commChannel) throws StaleObjectException, UniqueKeyViolationException 
{
    if(clients == null || newAddress == null || (newAddress !=null && !newAddress.getPersonAddressIsNotNull()))
        throw new CodingRuntimeException("Cannot save client in saveFamilyAddress method.");

    FamilyRecords impl = (FamilyRecords) getDomainImpl(FamilyRecordsImpl.class);
    Integer numberOfAddressChanged = 0;

    for(int i=0; i<clients.size(); i++)
    {
        if(clients.get(i) != null)
        {
            numberOfAddressChanged += impl.saveClient(clients.get(i), newAddress, null, commChannel);
        }
    }

    return numberOfAddressChanged;
}
项目:openMAXIMS    文件:Logic.java   
/**
 * WDEV-13137
 * Function used to manual sort patients after age
 */
private PatientShortCollection manualSortAge(SortOrder sortOrderAge)
{
    // Get patients from grid
    PatientShortCollection patients = new PatientShortCollection();

    for(int i = 0;i < form.dyngrdPatient().getRows().size();i++)
    {
        patients.add((PatientShort) form.dyngrdPatient().getRows().get(i).getValue());
    }

    // Sort collection after age - using custom comparator
    patients.sort(new AgeComparator(sortOrderAge));
    // Return sorted collection
    return patients;
}
项目:openMAXIMS    文件:BedInfoDialogImpl.java   
public PatientShortCollection getPatientsForCurrentBay(LocationRefVo currentBay)
{
    StringBuilder query = new StringBuilder();
    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    query.append("SELECT patients FROM InpatientEpisode AS inpEp LEFT JOIN inpEp.pasEvent AS pasEv ");
    query.append("LEFT JOIN pasEv.patient AS patients ");
    query.append("LEFT JOIN inpEp.bed AS bed ");
    query.append("LEFT JOIN bed.bay AS patientBay ");

    query.append("WHERE patientBay.id = :bay ");
    paramNames.add("bay");
    paramValues.add(currentBay.getID_Location());

    return PatientShortAssembler.createPatientShortCollectionFromPatient(getDomainFactory().find(query.toString(), paramNames, paramValues));
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * WDEV-13137
 * Function used to manual sort patients after age
 */
private PatientShortCollection manualSortAge(SortOrder sortOrderAge)
{
    // Get patients from grid
    PatientShortCollection patients = new PatientShortCollection();

    for(int i = 0;i < form.dyngrdPatient().getRows().size();i++)
    {
        patients.add((PatientShort) form.dyngrdPatient().getRows().get(i).getValue());
    }

    // Sort collection after age - using custom comparator
    patients.sort(new AgeComparator(sortOrderAge));
    // Return sorted collection
    return patients;
}
项目:openmaxims-linux    文件:BedInfoDialogImpl.java   
public PatientShortCollection getPatientsForCurrentBay(LocationRefVo currentBay)
{
    StringBuilder query = new StringBuilder();
    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    query.append("SELECT patients FROM InpatientEpisode AS inpEp LEFT JOIN inpEp.pasEvent AS pasEv ");
    query.append("LEFT JOIN pasEv.patient AS patients ");
    query.append("LEFT JOIN inpEp.bed AS bed ");
    query.append("LEFT JOIN bed.bay AS patientBay ");

    query.append("WHERE patientBay.id = :bay ");
    paramNames.add("bay");
    paramValues.add(currentBay.getID_Location());

    return PatientShortAssembler.createPatientShortCollectionFromPatient(getDomainFactory().find(query.toString(), paramNames, paramValues));
}
项目:AvoinApotti    文件:Logic.java   
private void populatePatientsGrid(MDTPatientCustomListVo voPatientCustomList) {
    if(voPatientCustomList!=null && voPatientCustomList.getPatientsIsNotNull()){
        PatientShortCollection collPatientShort = voPatientCustomList.getPatients();
        form.grdPatients().getRows().clear();
        for(int i=0;i<collPatientShort.size();i++)
        {
            PatientShort voPatient = collPatientShort.get(i);

            listCareSpells(voPatient);

        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private PatientShortCollection manualSortAge(SortOrder sortOrderAge)
{
    PatientShortCollection patients = new PatientShortCollection();

    for(int i = 0;i < form.dyngrdPatient().getRows().size();i++)
    {
        patients.add((PatientShort) form.dyngrdPatient().getRows().get(i).getValue());
    }

    form.dyngrdPatient().getRows().clear();
    patients.sort(new AgeComparator(sortOrderAge));
    return patients;
}
项目:AvoinApotti    文件:Logic.java   
private PatientShortCollection manualSortDOB(SortOrder sortOrder)
{
    PatientShortCollection patients = new PatientShortCollection();

    for(int i = 0;i < form.dyngrdPatient().getRows().size();i++)
    {
        patients.add((PatientShort) form.dyngrdPatient().getRows().get(i).getValue());
    }
    form.dyngrdPatient().getRows().clear();
    patients.sort(new DobComparator(sortOrder));
    return patients;
}
项目:AvoinApotti    文件:Logic.java   
private PatientShortCollection manualSortDOB(SortOrder sortOrder)
{
    PatientShortCollection tempColl = new PatientShortCollection();

    for(int i = 0;i < form.dyngrdPatient().getRows().size();i++)
    {
        tempColl.add((PatientShort) form.dyngrdPatient().getRows().get(i).getValue());
    }
    form.dyngrdPatient().getRows().clear();
    tempColl.sort(new DobComparator(sortOrder));
    return tempColl;
}
项目: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    文件:Logic.java   
private void populateDetailsScreen() {
    CustomListVo voCustomList = form.getLocalContext().getSelectedCustomList();
    if(voCustomList==null)
        return;
    form.lyrCustomListSearch().tabCustomListDetails().cmbListTypeDetails().setValue(voCustomList.getListType());
    form.lyrCustomListSearch().tabCustomListDetails().txtListNameDetails().setValue(voCustomList.getListName());
    form.lyrCustomListSearch().tabCustomListDetails().cmbSpecialtyDetails().setValue(voCustomList.getSpecialty());
    form.lyrCustomListSearch().tabCustomListDetails().dteDateDetails().setValue(voCustomList.getDate());
    form.lyrCustomListSearch().tabCustomListDetails().customControlMosDetails().setValue(voCustomList.getListOwner());
    form.lyrCustomListSearch().tabCustomListDetails().chkActiveOnlydetails().setValue(voCustomList.getIsActive());

    MDTPatientCustomListVo voPatientCustomList = form.getLocalContext().getPatientCustomListVo();

    if(voPatientCustomList!=null && voPatientCustomList.getPatientsIsNotNull()){
        PatientShortCollection collPatientShort = voPatientCustomList.getPatients().sort(SortOrder.ASCENDING);

        form.lyrCustomListSearch().tabCustomListDetails().grdCustomList().getRows().clear();
        if(collPatientShort!=null)
            for (int i = 0; i < collPatientShort.size(); i++) 
            {
                grdCustomListRow row = form.lyrCustomListSearch().tabCustomListDetails().grdCustomList().getRows().newRow();

                PatientShort patientShort = collPatientShort.get(i);
                if(patientShort.getName().getForenameIsNotNull())
                    row.setColForename(patientShort.getName().getForename());
                row.setColSurname(patientShort.getName().getSurname());
                if(patientShort.getDobIsNotNull())
                    row.setColDOB(patientShort.getDob().toString(DateFormat.STANDARD));
                if (patientShort.getDisplayId() != null)
                    row.setColHospNum(patientShort.getDisplayId().getValue());

                row.setValue(patientShort);
            }
    }
}
项目: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 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;
}
项目:AvoinApotti    文件:EDischargeListImpl.java   
public PatientShort getPatientByCareContext(CareContextRefVo careContext)   
{
    if(careContext == null ||
            careContext.getID_CareContext() == null)
        throw new CodingRuntimeException("CareContextRefVo is null or id not provided for getPatientByCareContext");    

    DomainFactory factory = getDomainFactory();
    List<?> domainObjectList = factory.find("select p from CareContext as cc left join cc.episodeOfCare as eoc left join eoc.careSpell as cs left join cs.patient as p where (cc.id = :idCareContext)", new String[]{"idCareContext"}, new Object[]{careContext.getID_CareContext()});
    PatientShortCollection patient = PatientShortAssembler.createPatientShortCollectionFromPatient(domainObjectList);
    return patient != null && patient.size() > 0 ? (patient.get(0) != null ? patient.get(0) : null) : null;
}
项目:AvoinApotti    文件:EDischargeSTHKListImpl.java   
public PatientShort getPatientByCareContext(CareContextRefVo careContext)   
{
    if(careContext == null ||
            careContext.getID_CareContext() == null)
        throw new CodingRuntimeException("CareContextRefVo is null or id not provided for getPatientByCareContext");    

    DomainFactory factory = getDomainFactory();
    List<?> domainObjectList = factory.find("select p from CareContext as cc left join cc.episodeOfCare as eoc left join eoc.careSpell as cs left join cs.patient as p where (cc.id = :idCareContext)", new String[]{"idCareContext"}, new Object[]{careContext.getID_CareContext()});
    PatientShortCollection patient = PatientShortAssembler.createPatientShortCollectionFromPatient(domainObjectList);
    return patient != null && patient.size() > 0 ? (patient.get(0) != null ? patient.get(0) : null) : null;
}
项目:openMAXIMS    文件:Logic.java   
private void populatePatientsGrid(MDTPatientCustomListVo voPatientCustomList) {
    if(voPatientCustomList!=null && voPatientCustomList.getPatientsIsNotNull()){
        PatientShortCollection collPatientShort = voPatientCustomList.getPatients();
        form.grdPatients().getRows().clear();
        for(int i=0;i<collPatientShort.size();i++)
        {
            PatientShort voPatient = collPatientShort.get(i);

            listCareSpells(voPatient);

        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private PatientShortCollection manualSortAge(SortOrder sortOrderAge)
{
    PatientShortCollection patients = new PatientShortCollection();

    for(int i = 0;i < form.dyngrdPatient().getRows().size();i++)
    {
        patients.add((PatientShort) form.dyngrdPatient().getRows().get(i).getValue());
    }

    form.dyngrdPatient().getRows().clear();
    patients.sort(new AgeComparator(sortOrderAge));
    return patients;
}
项目:openMAXIMS    文件:Logic.java   
private PatientShortCollection manualSortDOB(SortOrder sortOrder)
{
    PatientShortCollection patients = new PatientShortCollection();

    for(int i = 0;i < form.dyngrdPatient().getRows().size();i++)
    {
        patients.add((PatientShort) form.dyngrdPatient().getRows().get(i).getValue());
    }
    form.dyngrdPatient().getRows().clear();
    patients.sort(new DobComparator(sortOrder));
    return patients;
}
项目:openMAXIMS    文件:Logic.java   
private void populateGridWithPatients(PatientShortCollection psColl)
{
    form.dyngrdSearch().getRows().clear();

    if (psColl==null || psColl.size()==0)
        return;

    for (PatientShort ps : psColl)
    {
        addRowToDynGrid(ps);
    }
    form.lblTotal().setValue("Total : " + form.dyngrdSearch().getRows().size());
}
项目:openMAXIMS    文件:Logic.java   
private PatientShortCollection manualSortDOB(SortOrder sortOrder)
{
    PatientShortCollection tempColl = new PatientShortCollection();

    for(int i = 0;i < form.dyngrdSearch().getRows().size();i++)
    {
        tempColl.add((PatientShort) form.dyngrdSearch().getRows().get(i).getValue());
    }
    form.dyngrdSearch().getRows().clear();
    tempColl.sort(new DobComparator(sortOrder));
    return tempColl;
}
项目:openMAXIMS    文件:Logic.java   
private PatientShortCollection manualSortDOB(SortOrder sortOrder)
{
    PatientShortCollection tempColl = new PatientShortCollection();

    for(int i = 0;i < form.dyngrdPatient().getRows().size();i++)
    {
        tempColl.add((PatientShort) form.dyngrdPatient().getRows().get(i).getValue());
    }
    form.dyngrdPatient().getRows().clear();
    tempColl.sort(new DobComparator(sortOrder));
    return tempColl;
}
项目: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    文件:Logic.java   
private void populateDetailsScreen() {
    CustomListVo voCustomList = form.getLocalContext().getSelectedCustomList();
    if(voCustomList==null)
        return;
    form.lyrCustomListSearch().tabCustomListDetails().cmbListTypeDetails().setValue(voCustomList.getListType());
    form.lyrCustomListSearch().tabCustomListDetails().txtListNameDetails().setValue(voCustomList.getListName());
    form.lyrCustomListSearch().tabCustomListDetails().cmbSpecialtyDetails().setValue(voCustomList.getSpecialty());
    form.lyrCustomListSearch().tabCustomListDetails().dteDateDetails().setValue(voCustomList.getDate());
    form.lyrCustomListSearch().tabCustomListDetails().customControlMosDetails().setValue(voCustomList.getListOwner());
    form.lyrCustomListSearch().tabCustomListDetails().chkActiveOnlydetails().setValue(voCustomList.getIsActive());

    MDTPatientCustomListVo voPatientCustomList = form.getLocalContext().getPatientCustomListVo();

    if(voPatientCustomList!=null && voPatientCustomList.getPatientsIsNotNull()){
        PatientShortCollection collPatientShort = voPatientCustomList.getPatients().sort(SortOrder.ASCENDING);

        form.lyrCustomListSearch().tabCustomListDetails().grdCustomList().getRows().clear();
        if(collPatientShort!=null)
            for (int i = 0; i < collPatientShort.size(); i++) 
            {
                grdCustomListRow row = form.lyrCustomListSearch().tabCustomListDetails().grdCustomList().getRows().newRow();

                PatientShort patientShort = collPatientShort.get(i);
                if(patientShort.getName().getForenameIsNotNull())
                    row.setColForename(patientShort.getName().getForename());
                row.setColSurname(patientShort.getName().getSurname());
                if(patientShort.getDobIsNotNull())
                    row.setColDOB(patientShort.getDob().toString(DateFormat.STANDARD));
                if (patientShort.getDisplayId() != null)
                    row.setColHospNum(patientShort.getDisplayId().getValue());

                row.setValue(patientShort);
            }
    }
}
项目: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();
}
项目:openMAXIMS    文件: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();
}