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

项目:AvoinApotti    文件:Logic.java   
private void populatePlannedProceduresGrid(SurgicalAuditPreOpChecksVo record)
{
    PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProcedure = domain.listProcedures(record);

    if (collProcedure == null)
        return;

    if( collProcedure.size() > 0)
    {
        for(int i = 0; i < collProcedure.size();i++)
        {
            PatientProcedureForSurgicalAuditPreOpChecksVo tempVo = collProcedure.get(i);

            if( tempVo != null)
            {
                grdPlannedProceduresRow row = form.grdPlannedProcedures().getRows().newRow();
                row.setColumnProcedures(tempVo.getProcedureDescription());
                row.setTooltipForColumnProcedures(tempVo.getProcedureDescription());
                row.setColumnPrimary(tempVo.getIsPrimaryIsNotNull() ? (tempVo.getIsPrimary().equals(Boolean.TRUE)? Boolean.TRUE:Boolean.FALSE):Boolean.FALSE);
                row.setValue(tempVo);

            }
        }
    }
}
项目:AvoinApotti    文件:SurgicalAuditPreOperationChecksImpl.java   
public PatientProcedureForSurgicalAuditPreOpChecksVoCollection listProcedures(SurgicalAuditPreOpChecksRefVo surgicalAuditPreOpChecksRef)
{   
    if (surgicalAuditPreOpChecksRef == null || surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks() == null)
    {
        throw new CodingRuntimeException("Cannot get PatientProcedureForSurgicalAuditPreOpChecksVoCollection on null Id for surgicalAuditPreOpChecksRef ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select procedures from SurgicalAuditPreOpChecks as surgAuditPreOP left join surgAuditPreOP.plannedProcedures as procedures where surgAuditPreOP.id = :surgPreOpId order by procedures.procedureDescription asc ");

    List<?> list = factory.find(hql.toString(), new String[] { "surgPreOpId" }, new Object[] { surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks()});

    return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.createPatientProcedureForSurgicalAuditPreOpChecksVoCollectionFromPatientProcedure(list);

}
项目:AvoinApotti    文件:SurgicalAuditPreOperationChecksTheatreNurseImpl.java   
public PatientProcedureForSurgicalAuditPreOpChecksVoCollection listProcedures( SurgicalAuditPreOpChecksRefVo surgicalAuditPreOpChecksRef) 
{
    if (surgicalAuditPreOpChecksRef == null || surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks() == null)
    {
        throw new CodingRuntimeException("Cannot get PatientProcedureForSurgicalAuditPreOpChecksVoCollection on null Id for surgicalAuditPreOpChecksRef ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select procedures from SurgicalAuditPreOpChecks as surgAuditPreOP left join surgAuditPreOP.plannedProcedures as procedures where surgAuditPreOP.id = :surgPreOpId order by procedures.procedureDescription asc ");

    List<?> list = factory.find(hql.toString(), new String[] { "surgPreOpId" }, new Object[] { surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks()});

    return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.createPatientProcedureForSurgicalAuditPreOpChecksVoCollectionFromPatientProcedure(list);

}
项目:openMAXIMS    文件:Logic.java   
private void populatePlannedProceduresGrid(SurgicalAuditPreOpChecksVo record)
{
    PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProcedure = domain.listProcedures(record);

    if (collProcedure == null)
        return;

    if( collProcedure.size() > 0)
    {
        for(int i = 0; i < collProcedure.size();i++)
        {
            PatientProcedureForSurgicalAuditPreOpChecksVo tempVo = collProcedure.get(i);

            if( tempVo != null)
            {
                grdPlannedProceduresRow row = form.grdPlannedProcedures().getRows().newRow();
                row.setColumnProcedures(tempVo.getProcedureDescription());
                row.setTooltipForColumnProcedures(tempVo.getProcedureDescription());
                row.setColumnPrimary(tempVo.getIsPrimaryIsNotNull() ? (tempVo.getIsPrimary().equals(Boolean.TRUE)? Boolean.TRUE:Boolean.FALSE):Boolean.FALSE);
                row.setValue(tempVo);

            }
        }
    }
}
项目:openMAXIMS    文件:SurgicalAuditPreOperationChecksImpl.java   
public PatientProcedureForSurgicalAuditPreOpChecksVoCollection listProcedures(SurgicalAuditPreOpChecksRefVo surgicalAuditPreOpChecksRef)
{   
    if (surgicalAuditPreOpChecksRef == null || surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks() == null)
    {
        throw new CodingRuntimeException("Cannot get PatientProcedureForSurgicalAuditPreOpChecksVoCollection on null Id for surgicalAuditPreOpChecksRef ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select procedures from SurgicalAuditPreOpChecks as surgAuditPreOP left join surgAuditPreOP.plannedProcedures as procedures where surgAuditPreOP.id = :surgPreOpId order by procedures.procedureDescription asc ");

    List<?> list = factory.find(hql.toString(), new String[] { "surgPreOpId" }, new Object[] { surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks()});

    return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.createPatientProcedureForSurgicalAuditPreOpChecksVoCollectionFromPatientProcedure(list);

}
项目:openMAXIMS    文件:SurgicalAuditPreOperationChecksTheatreNurseImpl.java   
public PatientProcedureForSurgicalAuditPreOpChecksVoCollection listProcedures( SurgicalAuditPreOpChecksRefVo surgicalAuditPreOpChecksRef) 
{
    if (surgicalAuditPreOpChecksRef == null || surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks() == null)
    {
        throw new CodingRuntimeException("Cannot get PatientProcedureForSurgicalAuditPreOpChecksVoCollection on null Id for surgicalAuditPreOpChecksRef ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select procedures from SurgicalAuditPreOpChecks as surgAuditPreOP left join surgAuditPreOP.plannedProcedures as procedures where surgAuditPreOP.id = :surgPreOpId order by procedures.procedureDescription asc ");

    List<?> list = factory.find(hql.toString(), new String[] { "surgPreOpId" }, new Object[] { surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks()});

    return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.createPatientProcedureForSurgicalAuditPreOpChecksVoCollectionFromPatientProcedure(list);

}
项目:openMAXIMS    文件:Logic.java   
private void populatePlannedProceduresGrid(SurgicalAuditPreOpChecksVo record)
{
    PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProcedure = domain.listProcedures(record);

    if (collProcedure == null)
        return;

    if( collProcedure.size() > 0)
    {
        for(int i = 0; i < collProcedure.size();i++)
        {
            PatientProcedureForSurgicalAuditPreOpChecksVo tempVo = collProcedure.get(i);

            if( tempVo != null)
            {
                grdPlannedProceduresRow row = form.grdPlannedProcedures().getRows().newRow();
                row.setColumnProcedures(tempVo.getProcedureDescription());
                row.setTooltipForColumnProcedures(tempVo.getProcedureDescription());
                row.setColumnPrimary(tempVo.getIsPrimaryIsNotNull() ? (tempVo.getIsPrimary().equals(Boolean.TRUE)? Boolean.TRUE:Boolean.FALSE):Boolean.FALSE);
                row.setValue(tempVo);

            }
        }
    }
}
项目:openMAXIMS    文件:SurgicalAuditPreOperationChecksImpl.java   
public PatientProcedureForSurgicalAuditPreOpChecksVoCollection listProcedures(SurgicalAuditPreOpChecksRefVo surgicalAuditPreOpChecksRef)
{   
    if (surgicalAuditPreOpChecksRef == null || surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks() == null)
    {
        throw new CodingRuntimeException("Cannot get PatientProcedureForSurgicalAuditPreOpChecksVoCollection on null Id for surgicalAuditPreOpChecksRef ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select procedures from SurgicalAuditPreOpChecks as surgAuditPreOP left join surgAuditPreOP.plannedProcedures as procedures where surgAuditPreOP.id = :surgPreOpId order by procedures.procedureDescription asc ");

    List<?> list = factory.find(hql.toString(), new String[] { "surgPreOpId" }, new Object[] { surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks()});

    return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.createPatientProcedureForSurgicalAuditPreOpChecksVoCollectionFromPatientProcedure(list);

}
项目:openMAXIMS    文件:SurgicalAuditPreOperationChecksTheatreNurseImpl.java   
public PatientProcedureForSurgicalAuditPreOpChecksVoCollection listProcedures( SurgicalAuditPreOpChecksRefVo surgicalAuditPreOpChecksRef) 
{
    if (surgicalAuditPreOpChecksRef == null || surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks() == null)
    {
        throw new CodingRuntimeException("Cannot get PatientProcedureForSurgicalAuditPreOpChecksVoCollection on null Id for surgicalAuditPreOpChecksRef ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select procedures from SurgicalAuditPreOpChecks as surgAuditPreOP left join surgAuditPreOP.plannedProcedures as procedures where surgAuditPreOP.id = :surgPreOpId order by procedures.procedureDescription asc ");

    List<?> list = factory.find(hql.toString(), new String[] { "surgPreOpId" }, new Object[] { surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks()});

    return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.createPatientProcedureForSurgicalAuditPreOpChecksVoCollectionFromPatientProcedure(list);

}
项目:openmaxims-linux    文件:Logic.java   
private void populatePlannedProceduresGrid(SurgicalAuditPreOpChecksVo record)
{
    PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProcedure = domain.listProcedures(record);

    if (collProcedure == null)
        return;

    if( collProcedure.size() > 0)
    {
        for(int i = 0; i < collProcedure.size();i++)
        {
            PatientProcedureForSurgicalAuditPreOpChecksVo tempVo = collProcedure.get(i);

            if( tempVo != null)
            {
                grdPlannedProceduresRow row = form.grdPlannedProcedures().getRows().newRow();
                row.setColumnProcedures(tempVo.getProcedureDescription());
                row.setTooltipForColumnProcedures(tempVo.getProcedureDescription());
                row.setColumnPrimary(tempVo.getIsPrimaryIsNotNull() ? (tempVo.getIsPrimary().equals(Boolean.TRUE)? Boolean.TRUE:Boolean.FALSE):Boolean.FALSE);
                row.setValue(tempVo);

            }
        }
    }
}
项目:openmaxims-linux    文件:SurgicalAuditPreOperationChecksImpl.java   
public PatientProcedureForSurgicalAuditPreOpChecksVoCollection listProcedures(SurgicalAuditPreOpChecksRefVo surgicalAuditPreOpChecksRef)
{   
    if (surgicalAuditPreOpChecksRef == null || surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks() == null)
    {
        throw new CodingRuntimeException("Cannot get PatientProcedureForSurgicalAuditPreOpChecksVoCollection on null Id for surgicalAuditPreOpChecksRef ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select procedures from SurgicalAuditPreOpChecks as surgAuditPreOP left join surgAuditPreOP.plannedProcedures as procedures where surgAuditPreOP.id = :surgPreOpId order by procedures.procedureDescription asc ");

    List<?> list = factory.find(hql.toString(), new String[] { "surgPreOpId" }, new Object[] { surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks()});

    return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.createPatientProcedureForSurgicalAuditPreOpChecksVoCollectionFromPatientProcedure(list);

}
项目:openmaxims-linux    文件:SurgicalAuditPreOperationChecksTheatreNurseImpl.java   
public PatientProcedureForSurgicalAuditPreOpChecksVoCollection listProcedures( SurgicalAuditPreOpChecksRefVo surgicalAuditPreOpChecksRef) 
{
    if (surgicalAuditPreOpChecksRef == null || surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks() == null)
    {
        throw new CodingRuntimeException("Cannot get PatientProcedureForSurgicalAuditPreOpChecksVoCollection on null Id for surgicalAuditPreOpChecksRef ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select procedures from SurgicalAuditPreOpChecks as surgAuditPreOP left join surgAuditPreOP.plannedProcedures as procedures where surgAuditPreOP.id = :surgPreOpId order by procedures.procedureDescription asc ");

    List<?> list = factory.find(hql.toString(), new String[] { "surgPreOpId" }, new Object[] { surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks()});

    return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.createPatientProcedureForSurgicalAuditPreOpChecksVoCollectionFromPatientProcedure(list);

}
项目:AvoinApotti    文件:Logic.java   
private void populateProceduresGrid(PatientProcedureForSurgicalAuditPreOpChecksVoCollection recordColl)
{
    if( recordColl == null || recordColl.size() == 0 )
        return;


    for(int i = 0; i < recordColl.size();i++)
    {
        PatientProcedureForSurgicalAuditPreOpChecksVo tempVo = recordColl.get(i);
        addRowToPlannedPerformedProcedureRow(tempVo,Boolean.TRUE);      
    }

}
项目:AvoinApotti    文件:Logic.java   
private PatientProcedureForSurgicalAuditPreOpChecksVoCollection populatePatientProceduresFromScreen()
{
    PatientProcedureForSurgicalAuditPreOpChecksVoCollection collPatProcedure = new PatientProcedureForSurgicalAuditPreOpChecksVoCollection();

    for (int i = 0; i < form.grdPlannedProcedures().getRows().size(); i++)
    {
        collPatProcedure.add(form.grdPlannedProcedures().getRows().get(i).getValue());
    }

    return collPatProcedure;
}
项目:AvoinApotti    文件:Logic.java   
private void populateProcedureGrid(SurgicalAuditPreOpChecksVo surgicalAuditPreOpChecks)
{

    PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProcedure = domain.listProcedures(surgicalAuditPreOpChecks);

    if (collProcedure == null)
        return;

    for (int i = 0; i < collProcedure.size(); i++)
    {
        addRowToProcedureGrid(collProcedure.get(i), Boolean.TRUE);  //wdev-15831
    }

}
项目:AvoinApotti    文件:Logic.java   
private void addRowToRecordBrowser(SurgicalAuditOperationDetailVo surgAudit)
{
    if (surgAudit == null)
    {
        return;
    }

    StringBuffer recordBrowserText = new StringBuffer();

    recordBrowserText.append(form.getGlobalContext().Core.getCurrentCareContext().getStartDateTime());
    //recordBrowserText.append(form.getGlobalContext().Core.getCurrentCareContext().getEndDateTime() != null ? " - " + form.getGlobalContext().Core.getCurrentCareContext().getEndDateTime() : "");

    //WDEV-15689
    if (surgAudit.getPreOpChecksIsNotNull() && surgAudit.getPreOpChecks().getPlannedProceduresIsNotNull())
    {
        PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProc = surgAudit.getPreOpChecks().getPlannedProcedures();
        for (int i=0;i<collProc.size();i++)
        {
            if (collProc.get(i).getIsPrimary())
            {
                recordBrowserText.append(" - "+collProc.get(i).getProcedureDescription());
                recordBrowserText.append(collProc.get(i).getPeformedByIsNotNull()  ? " - " + collProc.get(i).getPeformedBy() : "");
                break;
            }
        }
    }


    recordBrowserText.append(surgAudit.getCurrentStatusIsNotNull() ? " - " + surgAudit.getCurrentStatus().getOperationStatus().toString() : "");

    if (Boolean.TRUE.equals(surgAudit.getOperationCancelled()))
    {
        form.recbrSurgAudit().newRow(surgAudit, recordBrowserText.toString(), Color.Red);
        return;
    }
    form.recbrSurgAudit().newRow(surgAudit, recordBrowserText.toString());

}
项目:openMAXIMS    文件:Logic.java   
private void populateProceduresGrid(PatientProcedureForSurgicalAuditPreOpChecksVoCollection recordColl)
{
    if( recordColl == null || recordColl.size() == 0 )
        return;


    for(int i = 0; i < recordColl.size();i++)
    {
        PatientProcedureForSurgicalAuditPreOpChecksVo tempVo = recordColl.get(i);
        addRowToPlannedPerformedProcedureRow(tempVo,Boolean.TRUE);      
    }

}
项目:openMAXIMS    文件:Logic.java   
private PatientProcedureForSurgicalAuditPreOpChecksVoCollection populatePatientProceduresFromScreen()
{
    PatientProcedureForSurgicalAuditPreOpChecksVoCollection collPatProcedure = new PatientProcedureForSurgicalAuditPreOpChecksVoCollection();

    for (int i = 0; i < form.grdPlannedProcedures().getRows().size(); i++)
    {
        collPatProcedure.add(form.grdPlannedProcedures().getRows().get(i).getValue());
    }

    return collPatProcedure;
}
项目:openMAXIMS    文件:Logic.java   
private void populateProcedureGrid(SurgicalAuditPreOpChecksVo surgicalAuditPreOpChecks)
{

    PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProcedure = domain.listProcedures(surgicalAuditPreOpChecks);

    if (collProcedure == null)
        return;

    for (int i = 0; i < collProcedure.size(); i++)
    {
        addRowToProcedureGrid(collProcedure.get(i), Boolean.TRUE);  //wdev-15831
    }

}
项目:openMAXIMS    文件:Logic.java   
private void addRowToRecordBrowser(SurgicalAuditOperationDetailVo surgAudit)
{
    if (surgAudit == null)
    {
        return;
    }

    StringBuffer recordBrowserText = new StringBuffer();

    recordBrowserText.append(form.getGlobalContext().Core.getCurrentCareContext().getStartDateTime());
    //recordBrowserText.append(form.getGlobalContext().Core.getCurrentCareContext().getEndDateTime() != null ? " - " + form.getGlobalContext().Core.getCurrentCareContext().getEndDateTime() : "");

    //WDEV-15689
    if (surgAudit.getPreOpChecksIsNotNull() && surgAudit.getPreOpChecks().getPlannedProceduresIsNotNull())
    {
        PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProc = surgAudit.getPreOpChecks().getPlannedProcedures();
        for (int i=0;i<collProc.size();i++)
        {
            if (collProc.get(i).getIsPrimary())
            {
                recordBrowserText.append(" - "+collProc.get(i).getProcedureDescription());
                recordBrowserText.append(collProc.get(i).getPeformedByIsNotNull()  ? " - " + collProc.get(i).getPeformedBy() : "");
                break;
            }
        }
    }


    recordBrowserText.append(surgAudit.getCurrentStatusIsNotNull() ? " - " + surgAudit.getCurrentStatus().getOperationStatus().toString() : "");

    if (Boolean.TRUE.equals(surgAudit.getOperationCancelled()))
    {
        form.recbrSurgAudit().newRow(surgAudit, recordBrowserText.toString(), Color.Red);
        return;
    }
    form.recbrSurgAudit().newRow(surgAudit, recordBrowserText.toString());

}
项目:openMAXIMS    文件:Logic.java   
private void populateProceduresGrid(PatientProcedureForSurgicalAuditPreOpChecksVoCollection recordColl)
{
    if( recordColl == null || recordColl.size() == 0 )
        return;


    for(int i = 0; i < recordColl.size();i++)
    {
        PatientProcedureForSurgicalAuditPreOpChecksVo tempVo = recordColl.get(i);
        addRowToPlannedPerformedProcedureRow(tempVo,Boolean.TRUE);      
    }

}
项目:openMAXIMS    文件:Logic.java   
private PatientProcedureForSurgicalAuditPreOpChecksVoCollection populatePatientProceduresFromScreen()
{
    PatientProcedureForSurgicalAuditPreOpChecksVoCollection collPatProcedure = new PatientProcedureForSurgicalAuditPreOpChecksVoCollection();

    for (int i = 0; i < form.grdPlannedProcedures().getRows().size(); i++)
    {
        collPatProcedure.add(form.grdPlannedProcedures().getRows().get(i).getValue());
    }

    return collPatProcedure;
}
项目:openMAXIMS    文件:Logic.java   
private void populateProcedureGrid(SurgicalAuditPreOpChecksVo surgicalAuditPreOpChecks)
{

    PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProcedure = domain.listProcedures(surgicalAuditPreOpChecks);

    if (collProcedure == null)
        return;

    for (int i = 0; i < collProcedure.size(); i++)
    {
        addRowToProcedureGrid(collProcedure.get(i), Boolean.TRUE);  //wdev-15831
    }

}
项目:openMAXIMS    文件:Logic.java   
private void addRowToRecordBrowser(SurgicalAuditOperationDetailVo surgAudit)
{
    if (surgAudit == null)
    {
        return;
    }

    StringBuffer recordBrowserText = new StringBuffer();

    recordBrowserText.append(form.getGlobalContext().Core.getCurrentCareContext().getStartDateTime());
    //recordBrowserText.append(form.getGlobalContext().Core.getCurrentCareContext().getEndDateTime() != null ? " - " + form.getGlobalContext().Core.getCurrentCareContext().getEndDateTime() : "");

    //WDEV-15689
    if (surgAudit.getPreOpChecksIsNotNull() && surgAudit.getPreOpChecks().getPlannedProceduresIsNotNull())
    {
        PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProc = surgAudit.getPreOpChecks().getPlannedProcedures();
        for (int i=0;i<collProc.size();i++)
        {
            if (collProc.get(i).getIsPrimary())
            {
                recordBrowserText.append(" - "+collProc.get(i).getProcedureDescription());
                recordBrowserText.append(collProc.get(i).getPeformedByIsNotNull()  ? " - " + collProc.get(i).getPeformedBy() : "");
                break;
            }
        }
    }


    recordBrowserText.append(surgAudit.getCurrentStatusIsNotNull() ? " - " + surgAudit.getCurrentStatus().getOperationStatus().toString() : "");

    if (Boolean.TRUE.equals(surgAudit.getOperationCancelled()))
    {
        form.recbrSurgAudit().newRow(surgAudit, recordBrowserText.toString(), Color.Red);
        return;
    }
    form.recbrSurgAudit().newRow(surgAudit, recordBrowserText.toString());

}
项目:openmaxims-linux    文件:Logic.java   
private void populateProceduresGrid(PatientProcedureForSurgicalAuditPreOpChecksVoCollection recordColl)
{
    if( recordColl == null || recordColl.size() == 0 )
        return;


    for(int i = 0; i < recordColl.size();i++)
    {
        PatientProcedureForSurgicalAuditPreOpChecksVo tempVo = recordColl.get(i);
        addRowToPlannedPerformedProcedureRow(tempVo,Boolean.TRUE);      
    }

}
项目:openmaxims-linux    文件:Logic.java   
private PatientProcedureForSurgicalAuditPreOpChecksVoCollection populatePatientProceduresFromScreen()
{
    PatientProcedureForSurgicalAuditPreOpChecksVoCollection collPatProcedure = new PatientProcedureForSurgicalAuditPreOpChecksVoCollection();

    for (int i = 0; i < form.grdPlannedProcedures().getRows().size(); i++)
    {
        collPatProcedure.add(form.grdPlannedProcedures().getRows().get(i).getValue());
    }

    return collPatProcedure;
}
项目:openmaxims-linux    文件:Logic.java   
private void populateProcedureGrid(SurgicalAuditPreOpChecksVo surgicalAuditPreOpChecks)
{

    PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProcedure = domain.listProcedures(surgicalAuditPreOpChecks);

    if (collProcedure == null)
        return;

    for (int i = 0; i < collProcedure.size(); i++)
    {
        addRowToProcedureGrid(collProcedure.get(i), Boolean.TRUE);  //wdev-15831
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void addRowToRecordBrowser(SurgicalAuditOperationDetailVo surgAudit)
{
    if (surgAudit == null)
    {
        return;
    }

    StringBuffer recordBrowserText = new StringBuffer();

    recordBrowserText.append(form.getGlobalContext().Core.getCurrentCareContext().getStartDateTime());
    //recordBrowserText.append(form.getGlobalContext().Core.getCurrentCareContext().getEndDateTime() != null ? " - " + form.getGlobalContext().Core.getCurrentCareContext().getEndDateTime() : "");

    //WDEV-15689
    if (surgAudit.getPreOpChecksIsNotNull() && surgAudit.getPreOpChecks().getPlannedProceduresIsNotNull())
    {
        PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProc = surgAudit.getPreOpChecks().getPlannedProcedures();
        for (int i=0;i<collProc.size();i++)
        {
            if (collProc.get(i).getIsPrimary())
            {
                recordBrowserText.append(" - "+collProc.get(i).getProcedureDescription());
                recordBrowserText.append(collProc.get(i).getPeformedByIsNotNull()  ? " - " + collProc.get(i).getPeformedBy() : "");
                break;
            }
        }
    }


    recordBrowserText.append(surgAudit.getCurrentStatusIsNotNull() ? " - " + surgAudit.getCurrentStatus().getOperationStatus().toString() : "");

    if (Boolean.TRUE.equals(surgAudit.getOperationCancelled()))
    {
        form.recbrSurgAudit().newRow(surgAudit, recordBrowserText.toString(), Color.Red);
        return;
    }
    form.recbrSurgAudit().newRow(surgAudit, recordBrowserText.toString());

}
项目:AvoinApotti    文件:Logic.java   
private void addCarePlanWorklistRow(SurgicalAuditTheatreWorklistVo record)
{
    if (record == null)
        return;

    grdResultsRow row = form.grdResults().getRows().newRow();

    row.setcolSurname(record.getPatient().getName().getSurname());
    row.setTooltipForcolSurname(record.getPatient().getName().getSurname());

    row.setcolForname(record.getPatient().getName().getForename());
    row.setTooltipForcolForname(record.getPatient().getName().getForename());

    PatientIdListVoCollection identifiers = record.getPatient().getIdentifiers();

    for (int i = 0; i < identifiers.size(); i++)
    {
        if (identifiers.get(i).getType().equals(PatIdType.MRNNUM))
        {
            row.setcolMRNo(identifiers.get(i).getValue().toString());
            row.setTooltipForcolMRNo(identifiers.get(i).getValue().toString());
        }
    }

    row.setcolStatus(record.getCurrentStatus().getOperationStatus().getText()+" - "+record.getCurrentStatus().getStatusDateTime());
    row.setTooltipForcolStatus(record.getCurrentStatus().getOperationStatus().getText()+" - "+record.getCurrentStatus().getStatusDateTime());

    // Populate Procedure Column & Primary Procedure Column
    PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProcedure = null;
    if (record.getActualProcedureIsNotNull())
        collProcedure = record.getActualProcedure().getPlannedActualProcedures();
    else
        collProcedure = record.getPreOpChecks().getPlannedProcedures();

    StringBuffer textForColProcedure = new StringBuffer();
    StringBuffer tooltipForColProcedure = new StringBuffer();
    PatientProcedureForSurgicalAuditPreOpChecksVo primaryProcedure = null;

    for (int i = 0; i < collProcedure.size(); i++)
    {
        textForColProcedure.append((i != 0 ? "," : "") + collProcedure.get(i).getProcedureDescription());
        tooltipForColProcedure.append(collProcedure.get(i).getProcedureDescription() + "<br>");

        if (collProcedure.get(i).getIsPrimary() !=null && collProcedure.get(i).getIsPrimary())
            primaryProcedure = collProcedure.get(i);

    }

    row.setcolProcedure(textForColProcedure.toString());
    row.setTooltipForcolProcedure(tooltipForColProcedure.toString());
    if (primaryProcedure != null)
    {
        row.setcolPrimaryProc(primaryProcedure.getProcedureDescription());
        row.setTooltipForcolPrimaryProc(primaryProcedure.getProcedureDescription());
    }
    row.setValue(record);

}
项目:openMAXIMS    文件:Logic.java   
private void addCarePlanWorklistRow(SurgicalAuditTheatreWorklistVo record)
{
    if (record == null)
        return;

    grdResultsRow row = form.grdResults().getRows().newRow();

    row.setcolSurname(record.getPatient().getName().getSurname());
    row.setTooltipForcolSurname(record.getPatient().getName().getSurname());

    row.setcolForname(record.getPatient().getName().getForename());
    row.setTooltipForcolForname(record.getPatient().getName().getForename());

    PatientIdListVoCollection identifiers = record.getPatient().getIdentifiers();

    for (int i = 0; i < identifiers.size(); i++)
    {
        if (identifiers.get(i).getType().equals(PatIdType.MRNNUM))
        {
            row.setcolMRNo(identifiers.get(i).getValue().toString());
            row.setTooltipForcolMRNo(identifiers.get(i).getValue().toString());
        }
    }

    row.setcolStatus(record.getCurrentStatus().getOperationStatus().getText()+" - "+record.getCurrentStatus().getStatusDateTime());
    row.setTooltipForcolStatus(record.getCurrentStatus().getOperationStatus().getText()+" - "+record.getCurrentStatus().getStatusDateTime());

    // Populate Procedure Column & Primary Procedure Column
    PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProcedure = null;
    if (record.getActualProcedureIsNotNull())
        collProcedure = record.getActualProcedure().getPlannedActualProcedures();
    else
        collProcedure = record.getPreOpChecks().getPlannedProcedures();

    StringBuffer textForColProcedure = new StringBuffer();
    StringBuffer tooltipForColProcedure = new StringBuffer();
    PatientProcedureForSurgicalAuditPreOpChecksVo primaryProcedure = null;

    for (int i = 0; i < collProcedure.size(); i++)
    {
        textForColProcedure.append((i != 0 ? "," : "") + collProcedure.get(i).getProcedureDescription());
        tooltipForColProcedure.append(collProcedure.get(i).getProcedureDescription() + "<br>");

        if (collProcedure.get(i).getIsPrimary() !=null && collProcedure.get(i).getIsPrimary())
            primaryProcedure = collProcedure.get(i);

    }

    row.setcolProcedure(textForColProcedure.toString());
    row.setTooltipForcolProcedure(tooltipForColProcedure.toString());
    if (primaryProcedure != null)
    {
        row.setcolPrimaryProc(primaryProcedure.getProcedureDescription());
        row.setTooltipForcolPrimaryProc(primaryProcedure.getProcedureDescription());
    }
    row.setValue(record);

}
项目:openMAXIMS    文件:Logic.java   
private void addCarePlanWorklistRow(SurgicalAuditTheatreWorklistVo record)
{
    if (record == null)
        return;

    grdResultsRow row = form.grdResults().getRows().newRow();

    row.setcolSurname(record.getPatient().getName().getSurname());
    row.setTooltipForcolSurname(record.getPatient().getName().getSurname());

    row.setcolForname(record.getPatient().getName().getForename());
    row.setTooltipForcolForname(record.getPatient().getName().getForename());

    PatientIdListVoCollection identifiers = record.getPatient().getIdentifiers();

    for (int i = 0; i < identifiers.size(); i++)
    {
        if (identifiers.get(i).getType().equals(PatIdType.MRNNUM))
        {
            row.setcolMRNo(identifiers.get(i).getValue().toString());
            row.setTooltipForcolMRNo(identifiers.get(i).getValue().toString());
        }
    }

    row.setcolStatus(record.getCurrentStatus().getOperationStatus().getText()+" - "+record.getCurrentStatus().getStatusDateTime());
    row.setTooltipForcolStatus(record.getCurrentStatus().getOperationStatus().getText()+" - "+record.getCurrentStatus().getStatusDateTime());

    // Populate Procedure Column & Primary Procedure Column
    PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProcedure = null;
    if (record.getActualProcedureIsNotNull())
        collProcedure = record.getActualProcedure().getPlannedActualProcedures();
    else
        collProcedure = record.getPreOpChecks().getPlannedProcedures();

    StringBuffer textForColProcedure = new StringBuffer();
    StringBuffer tooltipForColProcedure = new StringBuffer();
    PatientProcedureForSurgicalAuditPreOpChecksVo primaryProcedure = null;

    for (int i = 0; i < collProcedure.size(); i++)
    {
        textForColProcedure.append((i != 0 ? "," : "") + collProcedure.get(i).getProcedureDescription());
        tooltipForColProcedure.append(collProcedure.get(i).getProcedureDescription() + "<br>");

        if (collProcedure.get(i).getIsPrimary() !=null && collProcedure.get(i).getIsPrimary())
            primaryProcedure = collProcedure.get(i);

    }

    row.setcolProcedure(textForColProcedure.toString());
    row.setTooltipForcolProcedure(tooltipForColProcedure.toString());
    if (primaryProcedure != null)
    {
        row.setcolPrimaryProc(primaryProcedure.getProcedureDescription());
        row.setTooltipForcolPrimaryProc(primaryProcedure.getProcedureDescription());
    }
    row.setValue(record);

}
项目:openmaxims-linux    文件:Logic.java   
private void addCarePlanWorklistRow(SurgicalAuditTheatreWorklistVo record)
{
    if (record == null)
        return;

    grdResultsRow row = form.grdResults().getRows().newRow();

    row.setcolSurname(record.getPatient().getName().getSurname());
    row.setTooltipForcolSurname(record.getPatient().getName().getSurname());

    row.setcolForname(record.getPatient().getName().getForename());
    row.setTooltipForcolForname(record.getPatient().getName().getForename());

    PatientIdListVoCollection identifiers = record.getPatient().getIdentifiers();

    for (int i = 0; i < identifiers.size(); i++)
    {
        if (identifiers.get(i).getType().equals(PatIdType.MRNNUM))
        {
            row.setcolMRNo(identifiers.get(i).getValue().toString());
            row.setTooltipForcolMRNo(identifiers.get(i).getValue().toString());
        }
    }

    row.setcolStatus(record.getCurrentStatus().getOperationStatus().getText()+" - "+record.getCurrentStatus().getStatusDateTime());
    row.setTooltipForcolStatus(record.getCurrentStatus().getOperationStatus().getText()+" - "+record.getCurrentStatus().getStatusDateTime());

    // Populate Procedure Column & Primary Procedure Column
    PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProcedure = null;
    if (record.getActualProcedureIsNotNull())
        collProcedure = record.getActualProcedure().getPlannedActualProcedures();
    else
        collProcedure = record.getPreOpChecks().getPlannedProcedures();

    StringBuffer textForColProcedure = new StringBuffer();
    StringBuffer tooltipForColProcedure = new StringBuffer();
    PatientProcedureForSurgicalAuditPreOpChecksVo primaryProcedure = null;

    for (int i = 0; i < collProcedure.size(); i++)
    {
        textForColProcedure.append((i != 0 ? "," : "") + collProcedure.get(i).getProcedureDescription());
        tooltipForColProcedure.append(collProcedure.get(i).getProcedureDescription() + "<br>");

        if (collProcedure.get(i).getIsPrimary() !=null && collProcedure.get(i).getIsPrimary())
            primaryProcedure = collProcedure.get(i);

    }

    row.setcolProcedure(textForColProcedure.toString());
    row.setTooltipForcolProcedure(tooltipForColProcedure.toString());
    if (primaryProcedure != null)
    {
        row.setcolPrimaryProc(primaryProcedure.getProcedureDescription());
        row.setTooltipForcolPrimaryProc(primaryProcedure.getProcedureDescription());
    }
    row.setValue(record);

}