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

项目:AvoinApotti    文件:Logic.java   
private void populateProceduresGrid() 
{
    form.grdProcedure().getRows().clear();

    PatientProcedureVoCollection voCollProcedures = domain.listClinicalContactProcedures(form.getGlobalContext().Core.getCurrentClinicalContact(), form.getGlobalContext().Core.getCurrentCareContext());
    if(voCollProcedures != null)
    {
        GenForm.grdProcedureRow row = null;
        for(int i=0;i<voCollProcedures.size();i++)
        {
            row = form.grdProcedure().getRows().newRow();
            if (voCollProcedures.get(i).getProcDateIsNotNull())
                row.setcolDate(voCollProcedures.get(i).getProcDate().toDate());
            if(voCollProcedures.get(i).getProcedure() != null)
                row.setcolProcedure(voCollProcedures.get(i).getProcedure().getProcedureName());
            else if (voCollProcedures.get(i).getProcedure() == null)
                row.setcolProcedure(voCollProcedures.get(i).getProcedureDescription());

            row.setValue(voCollProcedures.get(i));
        }
    }   
}
项目:AvoinApotti    文件:Logic.java   
private void populatePresentProceduresControls(PatientProcedureVoCollection presentProcedures) 
{
    for (int i=0; i < presentProcedures.size(); i++){

        PatientProcedureVo voPatientProcedure = presentProcedures.get(i);
        grdChecklistRow row = form.grdChecklist().getRows().newRow();

        if(voPatientProcedure.getProcedureIsNotNull())
        {
            row.setColProcedure(voPatientProcedure.getProcedure().getProcedureName());
        }
        row.setColPresentAbsent(PresentAbsentUnknown.PRESENT);
        if(voPatientProcedure.getInfoSourceIsNotNull())
            row.setColSource(voPatientProcedure.getInfoSource());

        if(voPatientProcedure.getProcDateIsNotNull())
            row.setColProcedureDate(voPatientProcedure.getProcDate());

        if(voPatientProcedure.getProcedureDescriptionIsNotNull())
            row.setColDescription(voPatientProcedure.getProcedureDescription());

        row.setValue(voPatientProcedure);

        setGridUIForPresent(row); 
    }
}
项目:AvoinApotti    文件:SurgicalOperationsImpl.java   
public PatientProcedureVoCollection listCareContextPatientProcedures(CareContextRefVo refVoCareContext) {
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from PatientProcedure pp ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (refVoCareContext != null)
    {
        hql.append(andStr + " pp.careContext.id =:cc");
        markers.add("cc");
        values.add(refVoCareContext.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0)
        query += " where ";
    query += hql.toString();
    List patientSurOp = factory.find(query, markers, values);
    return PatientProcedureVoAssembler.createPatientProcedureVoCollectionFromPatientProcedure(patientSurOp);
}
项目:openMAXIMS    文件:Logic.java   
private void populateProceduresGrid(PatientProcedureVoCollection voCollProcedures) 
{
    form.grdProcedure().getRows().clear();

    if(voCollProcedures != null)
    {
        GenForm.grdProcedureRow row = null;
        for(int i=0;i<voCollProcedures.size();i++)
        {
            row = form.grdProcedure().getRows().newRow();
            if (voCollProcedures.get(i).getProcDateIsNotNull())
                row.setcolDate(voCollProcedures.get(i).getProcDate()); //WDEV-15298
            if(voCollProcedures.get(i).getProcedure() != null)
                row.setcolProcedure(voCollProcedures.get(i).getProcedure().getProcedureName());
            else if (voCollProcedures.get(i).getProcedure() == null)
                row.setcolProcedure(voCollProcedures.get(i).getProcedureDescription());

            row.setValue(voCollProcedures.get(i));
        }
    }
    form.grdProcedure().setValue(form.getLocalContext().getpatientProcedure());
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onGrdProcedureGridHeaderClicked(int column) throws PresentationLogicException
{
    PatientProcedureVoCollection values = new PatientProcedureVoCollection();
    for (int i=0;i<form.grdProcedure().getRows().size();i++)
    {
        values.add(form.grdProcedure().getRows().get(i).getValue());
    }
    if (values == null || values.size() <= 1)
        return;

    switch (column)
    {   
        case COL_DATE:
            form.getLocalContext().setDateSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getDateSortOrder()) ? SortOrder.DESCENDING : SortOrder.ASCENDING);
            values.sort(new PDateComparator(form.getLocalContext().getDateSortOrder()));
            break;
    }
    populateProceduresGrid(values);
}
项目:openMAXIMS    文件:Logic.java   
private void populatePresentProceduresControls(PatientProcedureVoCollection presentProcedures) 
{
    for (int i=0; i < presentProcedures.size(); i++){

        PatientProcedureVo voPatientProcedure = presentProcedures.get(i);
        grdChecklistRow row = form.grdChecklist().getRows().newRow();

        if(voPatientProcedure.getProcedureIsNotNull())
        {
            row.setColProcedure(voPatientProcedure.getProcedure().getProcedureName());
        }
        row.setColPresentAbsent(PresentAbsentUnknown.PRESENT);
        if(voPatientProcedure.getInfoSourceIsNotNull())
            row.setColSource(voPatientProcedure.getInfoSource());

        if(voPatientProcedure.getProcDateIsNotNull())
            row.setColProcedureDate(voPatientProcedure.getProcDate());

        if(voPatientProcedure.getProcedureDescriptionIsNotNull())
            row.setColDescription(voPatientProcedure.getProcedureDescription());

        row.setValue(voPatientProcedure);

        setGridUIForPresent(row); 
    }
}
项目:openMAXIMS    文件:SurgicalOperationsImpl.java   
public PatientProcedureVoCollection listCareContextPatientProcedures(CareContextRefVo refVoCareContext) {
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from PatientProcedure pp ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (refVoCareContext != null)
    {
        hql.append(andStr + " pp.careContext.id =:cc");
        markers.add("cc");
        values.add(refVoCareContext.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0)
        query += " where ";
    query += hql.toString();
    List patientSurOp = factory.find(query, markers, values);
    return PatientProcedureVoAssembler.createPatientProcedureVoCollectionFromPatientProcedure(patientSurOp);
}
项目:openMAXIMS    文件:Logic.java   
private void populateProceduresGrid() 
{
    form.grdProcedure().getRows().clear();

    PatientProcedureVoCollection voCollProcedures = domain.listClinicalContactProcedures(form.getGlobalContext().Core.getCurrentClinicalContact(), form.getGlobalContext().Core.getCurrentCareContext());
    if(voCollProcedures != null)
    {
        GenForm.grdProcedureRow row = null;
        for(int i=0;i<voCollProcedures.size();i++)
        {
            row = form.grdProcedure().getRows().newRow();
            if (voCollProcedures.get(i).getProcDateIsNotNull())
                row.setcolDate(voCollProcedures.get(i).getProcDate().toDate());
            if(voCollProcedures.get(i).getProcedure() != null)
                row.setcolProcedure(voCollProcedures.get(i).getProcedure().getProcedureName());
            else if (voCollProcedures.get(i).getProcedure() == null)
                row.setcolProcedure(voCollProcedures.get(i).getProcedureDescription());

            row.setValue(voCollProcedures.get(i));
        }
    }   
}
项目:openMAXIMS    文件:Logic.java   
private void populatePresentProceduresControls(PatientProcedureVoCollection presentProcedures) 
{
    for (int i=0; i < presentProcedures.size(); i++){

        PatientProcedureVo voPatientProcedure = presentProcedures.get(i);
        grdChecklistRow row = form.grdChecklist().getRows().newRow();

        if(voPatientProcedure.getProcedureIsNotNull())
        {
            row.setColProcedure(voPatientProcedure.getProcedure().getProcedureName());
        }
        row.setColPresentAbsent(PresentAbsentUnknown.PRESENT);
        if(voPatientProcedure.getInfoSourceIsNotNull())
            row.setColSource(voPatientProcedure.getInfoSource());

        if(voPatientProcedure.getProcDateIsNotNull())
            row.setColProcedureDate(voPatientProcedure.getProcDate());

        if(voPatientProcedure.getProcedureDescriptionIsNotNull())
            row.setColDescription(voPatientProcedure.getProcedureDescription());

        row.setValue(voPatientProcedure);

        setGridUIForPresent(row); 
    }
}
项目:openMAXIMS    文件:SurgicalOperationsImpl.java   
public PatientProcedureVoCollection listCareContextPatientProcedures(CareContextRefVo refVoCareContext) {
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from PatientProcedure pp ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (refVoCareContext != null)
    {
        hql.append(andStr + " pp.careContext.id =:cc");
        markers.add("cc");
        values.add(refVoCareContext.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0)
        query += " where ";
    query += hql.toString();
    List patientSurOp = factory.find(query, markers, values);
    return PatientProcedureVoAssembler.createPatientProcedureVoCollectionFromPatientProcedure(patientSurOp);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateProceduresGrid() 
{
    form.grdProcedure().getRows().clear();

    PatientProcedureVoCollection voCollProcedures = domain.listClinicalContactProcedures(form.getGlobalContext().Core.getCurrentClinicalContact(), form.getGlobalContext().Core.getCurrentCareContext());
    if(voCollProcedures != null)
    {
        GenForm.grdProcedureRow row = null;
        for(int i=0;i<voCollProcedures.size();i++)
        {
            row = form.grdProcedure().getRows().newRow();
            if (voCollProcedures.get(i).getProcDateIsNotNull())
                row.setcolDate(voCollProcedures.get(i).getProcDate().toDate());
            if(voCollProcedures.get(i).getProcedure() != null)
                row.setcolProcedure(voCollProcedures.get(i).getProcedure().getProcedureName());
            else if (voCollProcedures.get(i).getProcedure() == null)
                row.setcolProcedure(voCollProcedures.get(i).getProcedureDescription());

            row.setValue(voCollProcedures.get(i));
        }
    }   
}
项目:openmaxims-linux    文件:Logic.java   
private void populatePresentProceduresControls(PatientProcedureVoCollection presentProcedures) 
{
    for (int i=0; i < presentProcedures.size(); i++){

        PatientProcedureVo voPatientProcedure = presentProcedures.get(i);
        grdChecklistRow row = form.grdChecklist().getRows().newRow();

        if(voPatientProcedure.getProcedureIsNotNull())
        {
            row.setColProcedure(voPatientProcedure.getProcedure().getProcedureName());
        }
        row.setColPresentAbsent(PresentAbsentUnknown.PRESENT);
        if(voPatientProcedure.getInfoSourceIsNotNull())
            row.setColSource(voPatientProcedure.getInfoSource());

        if(voPatientProcedure.getProcDateIsNotNull())
            row.setColProcedureDate(voPatientProcedure.getProcDate());

        if(voPatientProcedure.getProcedureDescriptionIsNotNull())
            row.setColDescription(voPatientProcedure.getProcedureDescription());

        row.setValue(voPatientProcedure);

        setGridUIForPresent(row); 
    }
}
项目:openmaxims-linux    文件:SurgicalOperationsImpl.java   
public PatientProcedureVoCollection listCareContextPatientProcedures(CareContextRefVo refVoCareContext) {
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from PatientProcedure pp ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (refVoCareContext != null)
    {
        hql.append(andStr + " pp.careContext.id =:cc");
        markers.add("cc");
        values.add(refVoCareContext.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0)
        query += " where ";
    query += hql.toString();
    List patientSurOp = factory.find(query, markers, values);
    return PatientProcedureVoAssembler.createPatientProcedureVoCollectionFromPatientProcedure(patientSurOp);
}
项目:AvoinApotti    文件:Logic.java   
private PatientProcedureVo getInstantiatedProcedure(ProcedureListVo procedure, Specialty specialty, PatientProcedureVoCollection list)
{
    if(list == null)
        return null;

    for (int i = 0; i < list.size(); i++)
    {
        if(list.get(i).getSpecialtyIsNotNull() && list.get(i).getSpecialty().equals(specialty) && list.get(i).getProcedureIsNotNull() && list.get(i).getProcedure().getID_Procedure().equals(procedure.getProcedure().getID_Procedure()))
            return list.get(i);
    }

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private boolean anyProceduresForThisSpecialty(Specialty specialty, PatientProcedureVoCollection list)
{
    if(list == null)
        return false;

    for (int i = 0; i < list.size(); i++)
    {
        if(list.get(i).getSpecialtyIsNotNull() && list.get(i).getSpecialty().equals(specialty))
            return true;
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private int getProcedureIndex(ProcedureLiteVo procedure, Specialty specialty, PatientProcedureVoCollection list)
{
    if(list == null)
        return -1;

    for (int i = 0; i < list.size(); i++)
    {
        if(list.get(i).getSpecialtyIsNotNull() && list.get(i).getSpecialty().equals(specialty) && list.get(i).getProcedureIsNotNull() && list.get(i).getProcedure().getID_Procedure().equals(procedure.getID_Procedure()))
            return i;
    }

    return -1;
}
项目:AvoinApotti    文件:PatientProceduresImpl.java   
public PatientProcedureVoCollection listClinicalContactProcedures(ClinicalContactShortVo voClinicalContactShort, CareContextShortVo careContext)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from PatientProcedure t ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (careContext != null)
    {
        hql.append(andStr + " t.careContext.id = :ccid");
        markers.add("ccid");
        values.add(careContext.getID_CareContext());
        andStr = " and ";
    }
    else if (voClinicalContactShort != null)
    {
        hql.append(andStr + " t.clinicalContact.id = :rcc");
        markers.add("rcc");
        values.add(new Boolean(true));
        andStr = " and ";

    }

    hql.append(andStr + " t.procedureStatus = :perf");
    markers.add("perf");
    values.add(getDomLookup(PatientProcedureStatus.PERFORMED));
    andStr = " and ";

    if (markers.size() > 0)
        query += " where t.class is null  and";
    query += hql.toString();

    List patientProcedureList = factory.find(query, markers, values);
    return PatientProcedureVoAssembler.createPatientProcedureVoCollectionFromPatientProcedure(patientProcedureList).sort();

}
项目:openMAXIMS    文件:Logic.java   
private PatientProcedureVo getInstantiatedProcedure(ProcedureListVo procedure, Specialty specialty, PatientProcedureVoCollection list)
{
    if(list == null)
        return null;

    for (int i = 0; i < list.size(); i++)
    {
        if(list.get(i).getSpecialtyIsNotNull() && list.get(i).getSpecialty().equals(specialty) && list.get(i).getProcedureIsNotNull() && list.get(i).getProcedure().getID_Procedure().equals(procedure.getProcedure().getID_Procedure()))
            return list.get(i);
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private boolean anyProceduresForThisSpecialty(Specialty specialty, PatientProcedureVoCollection list)
{
    if(list == null)
        return false;

    for (int i = 0; i < list.size(); i++)
    {
        if(list.get(i).getSpecialtyIsNotNull() && list.get(i).getSpecialty().equals(specialty))
            return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private int getProcedureIndex(ProcedureLiteVo procedure, Specialty specialty, PatientProcedureVoCollection list)
{
    if(list == null)
        return -1;

    for (int i = 0; i < list.size(); i++)
    {
        if(list.get(i).getSpecialtyIsNotNull() && list.get(i).getSpecialty().equals(specialty) && list.get(i).getProcedureIsNotNull() && list.get(i).getProcedure().getID_Procedure().equals(procedure.getID_Procedure()))
            return i;
    }

    return -1;
}
项目:openMAXIMS    文件:PatientProceduresImpl.java   
public PatientProcedureVoCollection listClinicalContactProcedures(ClinicalContactShortVo voClinicalContactShort, CareContextShortVo careContext)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from PatientProcedure t ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (careContext != null)
    {
        hql.append(andStr + " t.careContext.id = :ccid");
        markers.add("ccid");
        values.add(careContext.getID_CareContext());
        andStr = " and ";
    }
    else if (voClinicalContactShort != null)
    {
        hql.append(andStr + " t.clinicalContact.id = :rcc");
        markers.add("rcc");
        values.add(new Boolean(true));
        andStr = " and ";

    }

    hql.append(andStr + " t.procedureStatus = :perf");
    markers.add("perf");
    values.add(getDomLookup(PatientProcedureStatus.PERFORMED));
    andStr = " and ";

    if (markers.size() > 0)
        query += " where t.class is null  and";
    query += hql.toString();

    List patientProcedureList = factory.find(query, markers, values);
    return PatientProcedureVoAssembler.createPatientProcedureVoCollectionFromPatientProcedure(patientProcedureList).sort();

}
项目:openMAXIMS    文件:Logic.java   
private PatientProcedureVo getInstantiatedProcedure(ProcedureListVo procedure, Specialty specialty, PatientProcedureVoCollection list)
{
    if(list == null)
        return null;

    for (int i = 0; i < list.size(); i++)
    {
        if(list.get(i).getSpecialtyIsNotNull() && list.get(i).getSpecialty().equals(specialty) && list.get(i).getProcedureIsNotNull() && list.get(i).getProcedure().getID_Procedure().equals(procedure.getProcedure().getID_Procedure()))
            return list.get(i);
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private boolean anyProceduresForThisSpecialty(Specialty specialty, PatientProcedureVoCollection list)
{
    if(list == null)
        return false;

    for (int i = 0; i < list.size(); i++)
    {
        if(list.get(i).getSpecialtyIsNotNull() && list.get(i).getSpecialty().equals(specialty))
            return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private int getProcedureIndex(ProcedureLiteVo procedure, Specialty specialty, PatientProcedureVoCollection list)
{
    if(list == null)
        return -1;

    for (int i = 0; i < list.size(); i++)
    {
        if(list.get(i).getSpecialtyIsNotNull() && list.get(i).getSpecialty().equals(specialty) && list.get(i).getProcedureIsNotNull() && list.get(i).getProcedure().getID_Procedure().equals(procedure.getID_Procedure()))
            return i;
    }

    return -1;
}
项目:openMAXIMS    文件:PatientProceduresImpl.java   
public PatientProcedureVoCollection listClinicalContactProcedures(ClinicalContactShortVo voClinicalContactShort, CareContextShortVo careContext)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from PatientProcedure t ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (careContext != null)
    {
        hql.append(andStr + " t.careContext.id = :ccid");
        markers.add("ccid");
        values.add(careContext.getID_CareContext());
        andStr = " and ";
    }
    else if (voClinicalContactShort != null)
    {
        hql.append(andStr + " t.clinicalContact.id = :rcc");
        markers.add("rcc");
        values.add(new Boolean(true));
        andStr = " and ";

    }

    hql.append(andStr + " t.procedureStatus = :perf");
    markers.add("perf");
    values.add(getDomLookup(PatientProcedureStatus.PERFORMED));
    andStr = " and ";

    if (markers.size() > 0)
        query += " where t.class is null  and";
    query += hql.toString();

    List patientProcedureList = factory.find(query, markers, values);
    return PatientProcedureVoAssembler.createPatientProcedureVoCollectionFromPatientProcedure(patientProcedureList).sort();

}
项目:openmaxims-linux    文件:Logic.java   
private PatientProcedureVo getInstantiatedProcedure(ProcedureListVo procedure, Specialty specialty, PatientProcedureVoCollection list)
{
    if(list == null)
        return null;

    for (int i = 0; i < list.size(); i++)
    {
        if(list.get(i).getSpecialtyIsNotNull() && list.get(i).getSpecialty().equals(specialty) && list.get(i).getProcedureIsNotNull() && list.get(i).getProcedure().getID_Procedure().equals(procedure.getProcedure().getID_Procedure()))
            return list.get(i);
    }

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean anyProceduresForThisSpecialty(Specialty specialty, PatientProcedureVoCollection list)
{
    if(list == null)
        return false;

    for (int i = 0; i < list.size(); i++)
    {
        if(list.get(i).getSpecialtyIsNotNull() && list.get(i).getSpecialty().equals(specialty))
            return true;
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private int getProcedureIndex(ProcedureLiteVo procedure, Specialty specialty, PatientProcedureVoCollection list)
{
    if(list == null)
        return -1;

    for (int i = 0; i < list.size(); i++)
    {
        if(list.get(i).getSpecialtyIsNotNull() && list.get(i).getSpecialty().equals(specialty) && list.get(i).getProcedureIsNotNull() && list.get(i).getProcedure().getID_Procedure().equals(procedure.getID_Procedure()))
            return i;
    }

    return -1;
}
项目:openmaxims-linux    文件:PatientProceduresImpl.java   
public PatientProcedureVoCollection listClinicalContactProcedures(ClinicalContactShortVo voClinicalContactShort, CareContextShortVo careContext)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from PatientProcedure t ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (careContext != null)
    {
        hql.append(andStr + " t.careContext.id = :ccid");
        markers.add("ccid");
        values.add(careContext.getID_CareContext());
        andStr = " and ";
    }
    else if (voClinicalContactShort != null)
    {
        hql.append(andStr + " t.clinicalContact.id = :rcc");
        markers.add("rcc");
        values.add(new Boolean(true));
        andStr = " and ";

    }

    hql.append(andStr + " t.procedureStatus = :perf");
    markers.add("perf");
    values.add(getDomLookup(PatientProcedureStatus.PERFORMED));
    andStr = " and ";

    if (markers.size() > 0)
        query += " where t.class is null  and";
    query += hql.toString();

    List patientProcedureList = factory.find(query, markers, values);
    return PatientProcedureVoAssembler.createPatientProcedureVoCollectionFromPatientProcedure(patientProcedureList).sort();

}
项目:openMAXIMS    文件:Logic.java   
private void listProcedures()
{
    PatientProcedureVoCollection voCollProcedures = domain.listClinicalContactProcedures(form.getGlobalContext().Core.getCurrentClinicalContact(), form.getGlobalContext().Core.getCurrentCareContext());
    populateProceduresGrid(voCollProcedures);
}