Java 类ims.nursing.vo.PatientInvasiveDeviceShortVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void countForInvasiveDevice(PatientInvasiveDeviceShortVoCollection list, TreeMap map) 
{
    for(int i = 0; i < list.size(); i++)
    {

            String device = list.get(i).getInvasiveDevice().getInvasiveDevice();
            Integer count = (Integer) map.get(device);

            if(count == null)
            {   
                count = new Integer(1);
                map.put(device, count);
            }
            else
            {
                map.put(device, new Integer(count.intValue() + 1));
            }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void countForInvasiveDevice(PatientInvasiveDeviceShortVoCollection list, TreeMap map) 
{
    for(int i = 0; i < list.size(); i++)
    {

            String device = list.get(i).getInvasiveDevice().getInvasiveDevice();
            Integer count = (Integer) map.get(device);

            if(count == null)
            {   
                count = new Integer(1);
                map.put(device, count);
            }
            else
            {
                map.put(device, new Integer(count.intValue() + 1));
            }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void countForInvasiveDevice(PatientInvasiveDeviceShortVoCollection list, TreeMap map) 
{
    for(int i = 0; i < list.size(); i++)
    {

            String device = list.get(i).getInvasiveDevice().getInvasiveDevice();
            Integer count = (Integer) map.get(device);

            if(count == null)
            {   
                count = new Integer(1);
                map.put(device, count);
            }
            else
            {
                map.put(device, new Integer(count.intValue() + 1));
            }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void countForInvasiveDevice(PatientInvasiveDeviceShortVoCollection list, TreeMap map) 
{
    for(int i = 0; i < list.size(); i++)
    {

            String device = list.get(i).getInvasiveDevice().getInvasiveDevice();
            Integer count = (Integer) map.get(device);

            if(count == null)
            {   
                count = new Integer(1);
                map.put(device, count);
            }
            else
            {
                map.put(device, new Integer(count.intValue() + 1));
            }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateInvasiveDeviceGrid()
{
    PatientInvasiveDeviceShortVoCollection voColl = domain.listCurrentPatientInvasiveDevice(form.getGlobalContext().Core.getCurrentCareContext());
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        PatientInvasiveDeviceShortVo voInvasiveDev = voColl.get(i);
        grdInvasiveRow row = form.grdInvasive().getRows().newRow();
        row.setColInvasive(voInvasiveDev.getInvasiveDeviceIsNotNull()?voInvasiveDev.getInvasiveDevice().getInvasiveDevice():"");
        row.setColInserted(voInvasiveDev.getInsertedDateTimeIsNotNull()?voInvasiveDev.getInsertedDateTime().toString():"");
        if (voInvasiveDev.getTargetRemovalDateTime().getDate().isLessOrEqualThan(new DateTime().getDate()))
        {
            row.setBackColor(ims.configuration.gen.ConfigFlag.UI.INVASIVE_DEVICE_REMOVAL_ROW_COLOR.getValue());
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateInvasiveDeviceGrid()
{
    PatientInvasiveDeviceShortVoCollection voColl = domain.listCurrentPatientInvasiveDevice(form.getGlobalContext().Core.getCurrentCareContext());
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        PatientInvasiveDeviceShortVo voInvasiveDev = voColl.get(i);
        grdDevicesRow row = form.grdDevices().getRows().newRow();
        row.setColType(voInvasiveDev.getInvasiveDeviceIsNotNull()?voInvasiveDev.getInvasiveDevice().getInvasiveDevice():"");
        row.setColInserted(voInvasiveDev.getInsertedDateTimeIsNotNull()?voInvasiveDev.getInsertedDateTime().toString():"");
        if (voInvasiveDev.getTargetRemovalDateTime().getDate().isLessOrEqualThan(new DateTime().getDate()))
        {
            row.setBackColor(ims.configuration.gen.ConfigFlag.UI.INVASIVE_DEVICE_REMOVAL_ROW_COLOR.getValue());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateInvasiveDeviceGrid()
{
    PatientInvasiveDeviceShortVoCollection voColl = domain.listCurrentPatientInvasiveDevice(form.getGlobalContext().Core.getCurrentCareContext());
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        PatientInvasiveDeviceShortVo voInvasiveDev = voColl.get(i);
        grdInvasiveRow row = form.grdInvasive().getRows().newRow();
        row.setColInvasive(voInvasiveDev.getInvasiveDeviceIsNotNull()?voInvasiveDev.getInvasiveDevice().getInvasiveDevice():"");
        row.setColInserted(voInvasiveDev.getInsertedDateTimeIsNotNull()?voInvasiveDev.getInsertedDateTime().toString():"");
        if (voInvasiveDev.getTargetRemovalDateTime().getDate().isLessOrEqualThan(new DateTime().getDate()))
        {
            row.setBackColor(ims.configuration.gen.ConfigFlag.UI.INVASIVE_DEVICE_REMOVAL_ROW_COLOR.getValue());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateInvasiveDeviceGrid()
{
    PatientInvasiveDeviceShortVoCollection voColl = domain.listCurrentPatientInvasiveDevice(form.getGlobalContext().Core.getCurrentCareContext());
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        PatientInvasiveDeviceShortVo voInvasiveDev = voColl.get(i);
        grdDevicesRow row = form.grdDevices().getRows().newRow();
        row.setColType(voInvasiveDev.getInvasiveDeviceIsNotNull()?voInvasiveDev.getInvasiveDevice().getInvasiveDevice():"");
        row.setColInserted(voInvasiveDev.getInsertedDateTimeIsNotNull()?voInvasiveDev.getInsertedDateTime().toString():"");
        if (voInvasiveDev.getTargetRemovalDateTime().getDate().isLessOrEqualThan(new DateTime().getDate()))
        {
            row.setBackColor(ims.configuration.gen.ConfigFlag.UI.INVASIVE_DEVICE_REMOVAL_ROW_COLOR.getValue());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateInvasiveDeviceGrid()
{
    PatientInvasiveDeviceShortVoCollection voColl = domain.listCurrentPatientInvasiveDevice(form.getGlobalContext().Core.getCurrentCareContext());
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        PatientInvasiveDeviceShortVo voInvasiveDev = voColl.get(i);
        grdInvasiveRow row = form.grdInvasive().getRows().newRow();
        row.setColInvasive(voInvasiveDev.getInvasiveDeviceIsNotNull()?voInvasiveDev.getInvasiveDevice().getInvasiveDevice():"");
        row.setColInserted(voInvasiveDev.getInsertedDateTimeIsNotNull()?voInvasiveDev.getInsertedDateTime().toString():"");
        if (voInvasiveDev.getTargetRemovalDateTime().getDate().isLessOrEqualThan(new DateTime().getDate()))
        {
            row.setBackColor(ims.configuration.gen.ConfigFlag.UI.INVASIVE_DEVICE_REMOVAL_ROW_COLOR.getValue());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateInvasiveDeviceGrid()
{
    PatientInvasiveDeviceShortVoCollection voColl = domain.listCurrentPatientInvasiveDevice(form.getGlobalContext().Core.getCurrentCareContext());
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        PatientInvasiveDeviceShortVo voInvasiveDev = voColl.get(i);
        grdDevicesRow row = form.grdDevices().getRows().newRow();
        row.setColType(voInvasiveDev.getInvasiveDeviceIsNotNull()?voInvasiveDev.getInvasiveDevice().getInvasiveDevice():"");
        row.setColInserted(voInvasiveDev.getInsertedDateTimeIsNotNull()?voInvasiveDev.getInsertedDateTime().toString():"");
        if (voInvasiveDev.getTargetRemovalDateTime().getDate().isLessOrEqualThan(new DateTime().getDate()))
        {
            row.setBackColor(ims.configuration.gen.ConfigFlag.UI.INVASIVE_DEVICE_REMOVAL_ROW_COLOR.getValue());
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateInvasiveDeviceGrid()
{
    PatientInvasiveDeviceShortVoCollection voColl = domain.listCurrentPatientInvasiveDevice(form.getGlobalContext().Core.getCurrentCareContext());
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        PatientInvasiveDeviceShortVo voInvasiveDev = voColl.get(i);
        grdInvasiveRow row = form.grdInvasive().getRows().newRow();
        row.setColInvasive(voInvasiveDev.getInvasiveDeviceIsNotNull()?voInvasiveDev.getInvasiveDevice().getInvasiveDevice():"");
        row.setColInserted(voInvasiveDev.getInsertedDateTimeIsNotNull()?voInvasiveDev.getInsertedDateTime().toString():"");
        if (voInvasiveDev.getTargetRemovalDateTime().getDate().isLessOrEqualThan(new DateTime().getDate()))
        {
            row.setBackColor(ims.configuration.gen.ConfigFlag.UI.INVASIVE_DEVICE_REMOVAL_ROW_COLOR.getValue());
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateInvasiveDeviceGrid()
{
    PatientInvasiveDeviceShortVoCollection voColl = domain.listCurrentPatientInvasiveDevice(form.getGlobalContext().Core.getCurrentCareContext());
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        PatientInvasiveDeviceShortVo voInvasiveDev = voColl.get(i);
        grdDevicesRow row = form.grdDevices().getRows().newRow();
        row.setColType(voInvasiveDev.getInvasiveDeviceIsNotNull()?voInvasiveDev.getInvasiveDevice().getInvasiveDevice():"");
        row.setColInserted(voInvasiveDev.getInsertedDateTimeIsNotNull()?voInvasiveDev.getInsertedDateTime().toString():"");
        if (voInvasiveDev.getTargetRemovalDateTime().getDate().isLessOrEqualThan(new DateTime().getDate()))
        {
            row.setBackColor(ims.configuration.gen.ConfigFlag.UI.INVASIVE_DEVICE_REMOVAL_ROW_COLOR.getValue());
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void addHistoricRowRecord(PatientInvasiveDeviceShortVoCollection list, DynamicGridRow dynVirtualRow, int index) 
{
    if(list == null)
        return;

    DynamicGridRow dynParentRow = dynVirtualRow.getRows().newRow();
    dynParentRow.setIdentifier(list.get(index));

    InvasiveDeviceConfigShortVo recordDeviceParent = list.get(index).getInvasiveDeviceIsNotNull() ?  list.get(index).getInvasiveDevice() : null;                            
    DynamicGridCell deviceChildCellVirtual = dynParentRow.getCells().newCell(getColumn(COLDEVICE), DynamicCellType.STRING);
    deviceChildCellVirtual.setValue(recordDeviceParent.getInvasiveDevice());

    InvasiveDeviceConfigShortVo recordDevice =  list.get(index).getInvasiveDeviceIsNotNull() ?  list.get(index).getInvasiveDevice() : null;
    DynamicGridCell deviceCell = dynParentRow.getCells().newCell(getColumn(COLDEVICE), DynamicCellType.STRING);
    deviceCell.setValue(recordDevice.getInvasiveDevice());

    DynamicGridCell siteCell = dynParentRow.getCells().newCell(getColumn(COLSITE), DynamicCellType.STRING);
    siteCell.setValue( list.get(index).getSiteIsNotNull() ?  list.get(index).getSite() : null);

    DynamicGridCell insDateCell = dynParentRow.getCells().newCell(getColumn(COLINSERTEDDATE), DynamicCellType.STRING);
    insDateCell.setValue( list.get(index).getInsertedDateTime().toString());

    HcpLiteVo recordHCP =  list.get(index).getInsertedHCPIsNotNull() ?  list.get(index).getInsertedHCP() : null;
    DynamicGridCell insHcpCell = dynParentRow.getCells().newCell(getColumn(COLINSERTEDBY), DynamicCellType.STRING);
    insHcpCell.setValue(recordHCP.getMos().getName().toString());

    DynamicGridCell remDateCell = dynParentRow.getCells().newCell(getColumn(COLREMOVALDATE), DynamicCellType.STRING);
    remDateCell.setValue( list.get(index).getRemovalDateTime().toString());

    HcpLiteVo removeHCP =  list.get(index).getRemovalHCPIsNotNull() ?  list.get(index).getRemovalHCP() : null;
    DynamicGridCell removeHcpCell = dynParentRow.getCells().newCell(getColumn(COLREMOVALBY), DynamicCellType.STRING);       
    removeHcpCell.setValue(removeHCP.getMos().getName().toString());

    PatientInvasiveDeviceVipVoCollection recordVip = list.get(index).getVIPScoreIsNotNull() ? list.get(index).getVIPScore() : null;

    if (recordVip != null)
    {
        for(int x = 0; x < list.get(index).getVIPScore().size(); x++)
        {
            if(recordVip.get(x) != null)
            {
                DynamicGridRow childVipRow = dynParentRow.getRows().newRow();
                childVipRow.setIdentifier(list.get(index).getVIPScore().get(x));
                DynamicGridCell vipCell = childVipRow.getCells().newCell(getColumn(COLDEVICE), DynamicCellType.STRING);
                vipCell.setValue("VIP="+list.get(index).getVIPScore().get(x).getVIPScale().toString());
                //childVipRow.setValue(list.get(index).getVIPScore().get(x));
            }
        }
    }
    dynParentRow.setValue(list.get(index));
}
项目:AvoinApotti    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceShortVoCollection listCurrentPatientInvasiveDevice(CareContextRefVo careContext) 
{
    return PatientInvasiveDeviceShortVoAssembler.createPatientInvasiveDeviceShortVoCollectionFromPatientInvasiveDevice(
            getDomainFactory().find("from PatientInvasiveDevice dsp where dsp.removalDateTime is null and dsp.careContext.id = :CARE_CONTEXT", new String[] {"CARE_CONTEXT"}, new Object[] {careContext.getID_CareContext()}));
}
项目:AvoinApotti    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceShortVoCollection listHistoricPatientInvasiveDevice(CareContextRefVo careContext) 
{
    return PatientInvasiveDeviceShortVoAssembler.createPatientInvasiveDeviceShortVoCollectionFromPatientInvasiveDevice(
            getDomainFactory().find("from PatientInvasiveDevice dsp where dsp.removalDateTime is not null and dsp.careContext.id = :CARE_CONTEXT", new String[] {"CARE_CONTEXT"}, new Object[] {careContext.getID_CareContext()}));
}
项目:AvoinApotti    文件:NursingSummaryImpl.java   
public PatientInvasiveDeviceShortVoCollection listCurrentPatientInvasiveDevice(CareContextRefVo careContext)
{
    DailyPatientProgress impl = (DailyPatientProgress) getDomainImpl(DailyPatientProgressImpl.class);
    return impl.listCurrentPatientInvasiveDevice(careContext);
}
项目:AvoinApotti    文件:DailyPatientProgressImpl.java   
public PatientInvasiveDeviceShortVoCollection listCurrentPatientInvasiveDevice(CareContextRefVo careContext)
{
    InvasiveDevice implInvasiveDevice = (InvasiveDevice) getDomainImpl(InvasiveDeviceImpl.class);
    return implInvasiveDevice.listCurrentPatientInvasiveDevice(careContext);
}
项目:openMAXIMS    文件:Logic.java   
private void addHistoricRowRecord(PatientInvasiveDeviceShortVoCollection list, DynamicGridRow dynVirtualRow, int index) 
{
    if(list == null)
        return;

    DynamicGridRow dynParentRow = dynVirtualRow.getRows().newRow();
    dynParentRow.setIdentifier(list.get(index));

    InvasiveDeviceConfigShortVo recordDeviceParent = list.get(index).getInvasiveDeviceIsNotNull() ?  list.get(index).getInvasiveDevice() : null;                            
    DynamicGridCell deviceChildCellVirtual = dynParentRow.getCells().newCell(getColumn(COLDEVICE), DynamicCellType.STRING);
    deviceChildCellVirtual.setValue(recordDeviceParent.getInvasiveDevice());

    InvasiveDeviceConfigShortVo recordDevice =  list.get(index).getInvasiveDeviceIsNotNull() ?  list.get(index).getInvasiveDevice() : null;
    DynamicGridCell deviceCell = dynParentRow.getCells().newCell(getColumn(COLDEVICE), DynamicCellType.STRING);
    deviceCell.setValue(recordDevice.getInvasiveDevice());

    DynamicGridCell siteCell = dynParentRow.getCells().newCell(getColumn(COLSITE), DynamicCellType.STRING);
    siteCell.setValue( list.get(index).getSiteIsNotNull() ?  list.get(index).getSite() : null);

    DynamicGridCell insDateCell = dynParentRow.getCells().newCell(getColumn(COLINSERTEDDATE), DynamicCellType.STRING);
    insDateCell.setValue( list.get(index).getInsertedDateTime().toString());

    HcpLiteVo recordHCP =  list.get(index).getInsertedHCPIsNotNull() ?  list.get(index).getInsertedHCP() : null;
    DynamicGridCell insHcpCell = dynParentRow.getCells().newCell(getColumn(COLINSERTEDBY), DynamicCellType.STRING);
    insHcpCell.setValue(recordHCP.getMos().getName().toString());

    DynamicGridCell remDateCell = dynParentRow.getCells().newCell(getColumn(COLREMOVALDATE), DynamicCellType.STRING);
    remDateCell.setValue( list.get(index).getRemovalDateTime().toString());

    HcpLiteVo removeHCP =  list.get(index).getRemovalHCPIsNotNull() ?  list.get(index).getRemovalHCP() : null;
    DynamicGridCell removeHcpCell = dynParentRow.getCells().newCell(getColumn(COLREMOVALBY), DynamicCellType.STRING);       
    removeHcpCell.setValue(removeHCP.getMos().getName().toString());

    PatientInvasiveDeviceVipVoCollection recordVip = list.get(index).getVIPScoreIsNotNull() ? list.get(index).getVIPScore() : null;

    if (recordVip != null)
    {
        for(int x = 0; x < list.get(index).getVIPScore().size(); x++)
        {
            if(recordVip.get(x) != null)
            {
                DynamicGridRow childVipRow = dynParentRow.getRows().newRow();
                childVipRow.setIdentifier(list.get(index).getVIPScore().get(x));
                DynamicGridCell vipCell = childVipRow.getCells().newCell(getColumn(COLDEVICE), DynamicCellType.STRING);
                vipCell.setValue("VIP="+list.get(index).getVIPScore().get(x).getVIPScale().toString());
                //childVipRow.setValue(list.get(index).getVIPScore().get(x));
            }
        }
    }
    dynParentRow.setValue(list.get(index));
}
项目:openMAXIMS    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceShortVoCollection listCurrentPatientInvasiveDevice(CareContextRefVo careContext) 
{
    return PatientInvasiveDeviceShortVoAssembler.createPatientInvasiveDeviceShortVoCollectionFromPatientInvasiveDevice(
            getDomainFactory().find("from PatientInvasiveDevice dsp where dsp.removalDateTime is null and dsp.careContext.id = :CARE_CONTEXT", new String[] {"CARE_CONTEXT"}, new Object[] {careContext.getID_CareContext()}));
}
项目:openMAXIMS    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceShortVoCollection listHistoricPatientInvasiveDevice(CareContextRefVo careContext) 
{
    return PatientInvasiveDeviceShortVoAssembler.createPatientInvasiveDeviceShortVoCollectionFromPatientInvasiveDevice(
            getDomainFactory().find("from PatientInvasiveDevice dsp where dsp.removalDateTime is not null and dsp.careContext.id = :CARE_CONTEXT", new String[] {"CARE_CONTEXT"}, new Object[] {careContext.getID_CareContext()}));
}
项目:openMAXIMS    文件:NursingSummaryImpl.java   
public PatientInvasiveDeviceShortVoCollection listCurrentPatientInvasiveDevice(CareContextRefVo careContext)
{
    DailyPatientProgress impl = (DailyPatientProgress) getDomainImpl(DailyPatientProgressImpl.class);
    return impl.listCurrentPatientInvasiveDevice(careContext);
}
项目:openMAXIMS    文件:DailyPatientProgressImpl.java   
public PatientInvasiveDeviceShortVoCollection listCurrentPatientInvasiveDevice(CareContextRefVo careContext)
{
    InvasiveDevice implInvasiveDevice = (InvasiveDevice) getDomainImpl(InvasiveDeviceImpl.class);
    return implInvasiveDevice.listCurrentPatientInvasiveDevice(careContext);
}
项目:openMAXIMS    文件:Logic.java   
private void addHistoricRowRecord(PatientInvasiveDeviceShortVoCollection list, DynamicGridRow dynVirtualRow, int index) 
{
    if(list == null)
        return;

    DynamicGridRow dynParentRow = dynVirtualRow.getRows().newRow();
    dynParentRow.setIdentifier(list.get(index));

    InvasiveDeviceConfigShortVo recordDeviceParent = list.get(index).getInvasiveDeviceIsNotNull() ?  list.get(index).getInvasiveDevice() : null;                            
    DynamicGridCell deviceChildCellVirtual = dynParentRow.getCells().newCell(getColumn(COLDEVICE), DynamicCellType.STRING);
    deviceChildCellVirtual.setValue(recordDeviceParent.getInvasiveDevice());

    InvasiveDeviceConfigShortVo recordDevice =  list.get(index).getInvasiveDeviceIsNotNull() ?  list.get(index).getInvasiveDevice() : null;
    DynamicGridCell deviceCell = dynParentRow.getCells().newCell(getColumn(COLDEVICE), DynamicCellType.STRING);
    deviceCell.setValue(recordDevice.getInvasiveDevice());

    DynamicGridCell siteCell = dynParentRow.getCells().newCell(getColumn(COLSITE), DynamicCellType.STRING);
    siteCell.setValue( list.get(index).getSiteIsNotNull() ?  list.get(index).getSite() : null);

    DynamicGridCell insDateCell = dynParentRow.getCells().newCell(getColumn(COLINSERTEDDATE), DynamicCellType.STRING);
    insDateCell.setValue( list.get(index).getInsertedDateTime().toString());

    HcpLiteVo recordHCP =  list.get(index).getInsertedHCPIsNotNull() ?  list.get(index).getInsertedHCP() : null;
    DynamicGridCell insHcpCell = dynParentRow.getCells().newCell(getColumn(COLINSERTEDBY), DynamicCellType.STRING);
    insHcpCell.setValue(recordHCP.getMos().getName().toString());

    DynamicGridCell remDateCell = dynParentRow.getCells().newCell(getColumn(COLREMOVALDATE), DynamicCellType.STRING);
    remDateCell.setValue( list.get(index).getRemovalDateTime().toString());

    HcpLiteVo removeHCP =  list.get(index).getRemovalHCPIsNotNull() ?  list.get(index).getRemovalHCP() : null;
    DynamicGridCell removeHcpCell = dynParentRow.getCells().newCell(getColumn(COLREMOVALBY), DynamicCellType.STRING);       
    removeHcpCell.setValue(removeHCP.getMos().getName().toString());

    PatientInvasiveDeviceVipVoCollection recordVip = list.get(index).getVIPScoreIsNotNull() ? list.get(index).getVIPScore() : null;

    if (recordVip != null)
    {
        for(int x = 0; x < list.get(index).getVIPScore().size(); x++)
        {
            if(recordVip.get(x) != null)
            {
                DynamicGridRow childVipRow = dynParentRow.getRows().newRow();
                childVipRow.setIdentifier(list.get(index).getVIPScore().get(x));
                DynamicGridCell vipCell = childVipRow.getCells().newCell(getColumn(COLDEVICE), DynamicCellType.STRING);
                vipCell.setValue("VIP="+list.get(index).getVIPScore().get(x).getVIPScale().toString());
                //childVipRow.setValue(list.get(index).getVIPScore().get(x));
            }
        }
    }
    dynParentRow.setValue(list.get(index));
}
项目:openMAXIMS    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceShortVoCollection listCurrentPatientInvasiveDevice(CareContextRefVo careContext) 
{
    return PatientInvasiveDeviceShortVoAssembler.createPatientInvasiveDeviceShortVoCollectionFromPatientInvasiveDevice(
            getDomainFactory().find("from PatientInvasiveDevice dsp where dsp.removalDateTime is null and dsp.careContext.id = :CARE_CONTEXT", new String[] {"CARE_CONTEXT"}, new Object[] {careContext.getID_CareContext()}));
}
项目:openMAXIMS    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceShortVoCollection listHistoricPatientInvasiveDevice(CareContextRefVo careContext) 
{
    return PatientInvasiveDeviceShortVoAssembler.createPatientInvasiveDeviceShortVoCollectionFromPatientInvasiveDevice(
            getDomainFactory().find("from PatientInvasiveDevice dsp where dsp.removalDateTime is not null and dsp.careContext.id = :CARE_CONTEXT", new String[] {"CARE_CONTEXT"}, new Object[] {careContext.getID_CareContext()}));
}
项目:openMAXIMS    文件:NursingSummaryImpl.java   
public PatientInvasiveDeviceShortVoCollection listCurrentPatientInvasiveDevice(CareContextRefVo careContext)
{
    DailyPatientProgress impl = (DailyPatientProgress) getDomainImpl(DailyPatientProgressImpl.class);
    return impl.listCurrentPatientInvasiveDevice(careContext);
}
项目:openMAXIMS    文件:DailyPatientProgressImpl.java   
public PatientInvasiveDeviceShortVoCollection listCurrentPatientInvasiveDevice(CareContextRefVo careContext)
{
    InvasiveDevice implInvasiveDevice = (InvasiveDevice) getDomainImpl(InvasiveDeviceImpl.class);
    return implInvasiveDevice.listCurrentPatientInvasiveDevice(careContext);
}
项目:openmaxims-linux    文件:Logic.java   
private void addHistoricRowRecord(PatientInvasiveDeviceShortVoCollection list, DynamicGridRow dynVirtualRow, int index) 
{
    if(list == null)
        return;

    DynamicGridRow dynParentRow = dynVirtualRow.getRows().newRow();
    dynParentRow.setIdentifier(list.get(index));

    InvasiveDeviceConfigShortVo recordDeviceParent = list.get(index).getInvasiveDeviceIsNotNull() ?  list.get(index).getInvasiveDevice() : null;                            
    DynamicGridCell deviceChildCellVirtual = dynParentRow.getCells().newCell(getColumn(COLDEVICE), DynamicCellType.STRING);
    deviceChildCellVirtual.setValue(recordDeviceParent.getInvasiveDevice());

    InvasiveDeviceConfigShortVo recordDevice =  list.get(index).getInvasiveDeviceIsNotNull() ?  list.get(index).getInvasiveDevice() : null;
    DynamicGridCell deviceCell = dynParentRow.getCells().newCell(getColumn(COLDEVICE), DynamicCellType.STRING);
    deviceCell.setValue(recordDevice.getInvasiveDevice());

    DynamicGridCell siteCell = dynParentRow.getCells().newCell(getColumn(COLSITE), DynamicCellType.STRING);
    siteCell.setValue( list.get(index).getSiteIsNotNull() ?  list.get(index).getSite() : null);

    DynamicGridCell insDateCell = dynParentRow.getCells().newCell(getColumn(COLINSERTEDDATE), DynamicCellType.STRING);
    insDateCell.setValue( list.get(index).getInsertedDateTime().toString());

    HcpLiteVo recordHCP =  list.get(index).getInsertedHCPIsNotNull() ?  list.get(index).getInsertedHCP() : null;
    DynamicGridCell insHcpCell = dynParentRow.getCells().newCell(getColumn(COLINSERTEDBY), DynamicCellType.STRING);
    insHcpCell.setValue(recordHCP.getMos().getName().toString());

    DynamicGridCell remDateCell = dynParentRow.getCells().newCell(getColumn(COLREMOVALDATE), DynamicCellType.STRING);
    remDateCell.setValue( list.get(index).getRemovalDateTime().toString());

    HcpLiteVo removeHCP =  list.get(index).getRemovalHCPIsNotNull() ?  list.get(index).getRemovalHCP() : null;
    DynamicGridCell removeHcpCell = dynParentRow.getCells().newCell(getColumn(COLREMOVALBY), DynamicCellType.STRING);       
    removeHcpCell.setValue(removeHCP.getMos().getName().toString());

    PatientInvasiveDeviceVipVoCollection recordVip = list.get(index).getVIPScoreIsNotNull() ? list.get(index).getVIPScore() : null;

    if (recordVip != null)
    {
        for(int x = 0; x < list.get(index).getVIPScore().size(); x++)
        {
            if(recordVip.get(x) != null)
            {
                DynamicGridRow childVipRow = dynParentRow.getRows().newRow();
                childVipRow.setIdentifier(list.get(index).getVIPScore().get(x));
                DynamicGridCell vipCell = childVipRow.getCells().newCell(getColumn(COLDEVICE), DynamicCellType.STRING);
                vipCell.setValue("VIP="+list.get(index).getVIPScore().get(x).getVIPScale().toString());
                //childVipRow.setValue(list.get(index).getVIPScore().get(x));
            }
        }
    }
    dynParentRow.setValue(list.get(index));
}
项目:openmaxims-linux    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceShortVoCollection listCurrentPatientInvasiveDevice(CareContextRefVo careContext) 
{
    return PatientInvasiveDeviceShortVoAssembler.createPatientInvasiveDeviceShortVoCollectionFromPatientInvasiveDevice(
            getDomainFactory().find("from PatientInvasiveDevice dsp where dsp.removalDateTime is null and dsp.careContext.id = :CARE_CONTEXT", new String[] {"CARE_CONTEXT"}, new Object[] {careContext.getID_CareContext()}));
}
项目:openmaxims-linux    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceShortVoCollection listHistoricPatientInvasiveDevice(CareContextRefVo careContext) 
{
    return PatientInvasiveDeviceShortVoAssembler.createPatientInvasiveDeviceShortVoCollectionFromPatientInvasiveDevice(
            getDomainFactory().find("from PatientInvasiveDevice dsp where dsp.removalDateTime is not null and dsp.careContext.id = :CARE_CONTEXT", new String[] {"CARE_CONTEXT"}, new Object[] {careContext.getID_CareContext()}));
}
项目:openmaxims-linux    文件:NursingSummaryImpl.java   
public PatientInvasiveDeviceShortVoCollection listCurrentPatientInvasiveDevice(CareContextRefVo careContext)
{
    DailyPatientProgress impl = (DailyPatientProgress) getDomainImpl(DailyPatientProgressImpl.class);
    return impl.listCurrentPatientInvasiveDevice(careContext);
}
项目:openmaxims-linux    文件:DailyPatientProgressImpl.java   
public PatientInvasiveDeviceShortVoCollection listCurrentPatientInvasiveDevice(CareContextRefVo careContext)
{
    InvasiveDevice implInvasiveDevice = (InvasiveDevice) getDomainImpl(InvasiveDeviceImpl.class);
    return implInvasiveDevice.listCurrentPatientInvasiveDevice(careContext);
}