Java 类ims.core.vo.lookups.VSType 实例源码

项目:AvoinApotti    文件:Logic.java   
private void setViewInstanceDetails(VitalSignMonitoringGroupVo voVitalSignMonitoringGroup)
{
    clearInstanceControls();        
    if (voVitalSignMonitoringGroup == null)
        return;     

    if (form.getLocalContext().getVitalSignsGrouping() != null)
        voVitalSignMonitoringGroup = form.getLocalContext().getVitalSignsGrouping();
    else
    {
        voVitalSignMonitoringGroup = domain.getVitalSignMonitoringGroupVo(voVitalSignMonitoringGroup);
        form.getLocalContext().setVitalSignsGrouping(voVitalSignMonitoringGroup);
    }

    form.txtName().setValue(voVitalSignMonitoringGroup.getGroupName());         
    if (voVitalSignMonitoringGroup.getIsActive() != null)
        form.chkActive().setValue(voVitalSignMonitoringGroup.getIsActive().booleanValue());

    if (voVitalSignMonitoringGroup.getVitalsSigns() != null)
    {
        grdVSESelectRow row;
        VSType item;

        for (int i = 0; i < voVitalSignMonitoringGroup.getVitalsSigns().size(); i++)
        {
            item = voVitalSignMonitoringGroup.getVitalsSigns().get(i);

            row = form.grdVSESelect().getRows().newRow();
            row.setColVSElement(item.getText());
            row.setValue(item);
            row.setColSelect(true);
        }
    }
    updateContextMenu();
}
项目:AvoinApotti    文件:Logic.java   
protected void onCmbObservationValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setVitalSignMonitoringGroup(form.ctn().cmbObservation().getValue());
    form.ctn().cmbFrequency().setValue(null);
    form.ctn().grdVitals().setReadOnly(false);
    VitalSignMonitoringGroupVo item = form.ctn().cmbObservation().getValue();

    if (item != null)
    {
        if (item.getVitalsSigns() != null)
        {
            form.ctn().grdVitals().getRows().clear();

            VSType lkpItem;
            grdVitalsRow row;
            for (int i = 0; i < item.getVitalsSigns().size(); i++)
            {
                lkpItem = item.getVitalsSigns().get(i);

                row = form.ctn().grdVitals().getRows().newRow();
                row.setColVitalSign(lkpItem);
                row.setColSelect(true);
                row.setValue(null);
            }
        }
    }
    else
    {
        form.ctn().grdVitals().getRows().clear(); //WDEV-15302
    }
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
/**
 * 
 * Generic List for all Vital Signs By Vital Signs Type
 * 
 */

public VitalSignsVoCollection listVitalSigns(Date dateFrom, Date dateTo, VSType[] vitalSignsTypes, CareContextRefVo refCareContext)
{
    VitalSignsVoCollection voVitalsColl = VitalSignsVoAssembler.createVitalSignsVoCollectionFromVitalSigns((List<?>) listVitalSignsDo(dateFrom, dateTo, vitalSignsTypes, refCareContext));

    if (vitalSignsTypes == null) // if listing all then sort
    {
        voVitalsColl.sort(SortOrder.DESCENDING);
    }
    return voVitalsColl;
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
public VitalSignsVoCollection listVitalCapacity(CareContextRefVo refCareContext)
{
    VitalSignsVoCollection voVitalsColl = listVitalSigns(null, null, new VSType[]{VSType.PEAKFLOW}, refCareContext);

    voVitalsColl.sort(SortOrder.DESCENDING);

    return voVitalsColl;
}
项目:AvoinApotti    文件:VitalSignsBaselineAndAllImpl.java   
/**
 * 
 * Generic List for all Vital Signs By Vital Signs Type
 * 
 */

public VitalSignsVoCollection listVitalSigns(Date dateFrom, Date dateTo, VSType[] vitalSignsTypes, CareContextRefVo refCareContext)
{
    java.util.List vitals = listVitalSignsDo(dateFrom, dateTo, vitalSignsTypes, refCareContext);
    VitalSignsVoCollection voVitalsColl = VitalSignsVoAssembler.createVitalSignsVoCollectionFromVitalSigns(vitals);

    if (vitalSignsTypes == null) // if listing all then sort
    {
        voVitalsColl.sort(SortOrder.DESCENDING);
    }
    return voVitalsColl;
}
项目:AvoinApotti    文件:VitalSignsBaselineAndAllImpl.java   
public VitalSignsVoCollection listVitalCapacity(CareContextRefVo refCareContext)
{
    VitalSignsVoCollection voVitalsColl = listVitalSigns(null, null, new VSType[]{VSType.PEAKFLOW}, refCareContext);

    voVitalsColl.sort(SortOrder.DESCENDING);

    return voVitalsColl;
}
项目:openMAXIMS    文件:Logic.java   
private void setViewInstanceDetails(VitalSignMonitoringGroupVo voVitalSignMonitoringGroup)
{
    clearInstanceControls();        
    if (voVitalSignMonitoringGroup == null)
        return;     

    if (form.getLocalContext().getVitalSignsGrouping() != null)
        voVitalSignMonitoringGroup = form.getLocalContext().getVitalSignsGrouping();
    else
    {
        voVitalSignMonitoringGroup = domain.getVitalSignMonitoringGroupVo(voVitalSignMonitoringGroup);
        form.getLocalContext().setVitalSignsGrouping(voVitalSignMonitoringGroup);
    }

    form.txtName().setValue(voVitalSignMonitoringGroup.getGroupName());         
    if (voVitalSignMonitoringGroup.getIsActive() != null)
        form.chkActive().setValue(voVitalSignMonitoringGroup.getIsActive().booleanValue());

    if (voVitalSignMonitoringGroup.getVitalsSigns() != null)
    {
        grdVSESelectRow row;
        VSType item;

        for (int i = 0; i < voVitalSignMonitoringGroup.getVitalsSigns().size(); i++)
        {
            item = voVitalSignMonitoringGroup.getVitalsSigns().get(i);

            row = form.grdVSESelect().getRows().newRow();
            row.setColVSElement(item.getText());
            row.setValue(item);
            row.setColSelect(true);
        }
    }
    updateContextMenu();
}
项目:openMAXIMS    文件:Logic.java   
protected void onCmbObservationValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setVitalSignMonitoringGroup(form.ctn().cmbObservation().getValue());
    form.ctn().cmbFrequency().setValue(null);
    form.ctn().grdVitals().setReadOnly(false);
    VitalSignMonitoringGroupVo item = form.ctn().cmbObservation().getValue();

    if (item != null)
    {
        if (item.getVitalsSigns() != null)
        {
            form.ctn().grdVitals().getRows().clear();

            VSType lkpItem;
            grdVitalsRow row;
            for (int i = 0; i < item.getVitalsSigns().size(); i++)
            {
                lkpItem = item.getVitalsSigns().get(i);

                row = form.ctn().grdVitals().getRows().newRow();
                row.setColVitalSign(lkpItem);
                row.setColSelect(true);
                row.setValue(null);
            }
        }
    }
    else
    {
        form.ctn().grdVitals().getRows().clear(); //WDEV-15302
    }
}
项目:openmaxims-linux    文件:VitalSignsImpl.java   
public VitalSignsVoCollection listVitalCapacity(CareContextRefVo refCareContext)
{
    VitalSignsVoCollection voVitalsColl = listVitalSigns(null, null, new VSType[]{VSType.PEAKFLOW}, refCareContext);

    voVitalsColl.sort(SortOrder.DESCENDING);

    return voVitalsColl;
}
项目:openmaxims-linux    文件:VitalSignsBaselineAndAllImpl.java   
/**
 * 
 * Generic List for all Vital Signs By Vital Signs Type
 * 
 */

public VitalSignsVoCollection listVitalSigns(Date dateFrom, Date dateTo, VSType[] vitalSignsTypes, CareContextRefVo refCareContext)
{
    java.util.List vitals = listVitalSignsDo(dateFrom, dateTo, vitalSignsTypes, refCareContext);
    VitalSignsVoCollection voVitalsColl = VitalSignsVoAssembler.createVitalSignsVoCollectionFromVitalSigns(vitals);

    if (vitalSignsTypes == null) // if listing all then sort
    {
        voVitalsColl.sort(SortOrder.DESCENDING);
    }
    return voVitalsColl;
}
项目:openMAXIMS    文件:VitalSignsBaselineAndAllImpl.java   
/**
 * 
 * Generic List for all Vital Signs By Vital Signs Type
 * 
 */

public VitalSignsVoCollection listVitalSigns(Date dateFrom, Date dateTo, VSType[] vitalSignsTypes, CareContextRefVo refCareContext)
{
    java.util.List vitals = listVitalSignsDo(dateFrom, dateTo, vitalSignsTypes, refCareContext);
    VitalSignsVoCollection voVitalsColl = VitalSignsVoAssembler.createVitalSignsVoCollectionFromVitalSigns(vitals);

    if (vitalSignsTypes == null) // if listing all then sort
    {
        voVitalsColl.sort(SortOrder.DESCENDING);
    }
    return voVitalsColl;
}
项目:openmaxims-linux    文件:VitalSignsImpl.java   
/**
 * 
 * Generic List for all Vital Signs By Vital Signs Type
 * 
 */

public VitalSignsVoCollection listVitalSigns(Date dateFrom, Date dateTo, VSType[] vitalSignsTypes, CareContextRefVo refCareContext)
{
    VitalSignsVoCollection voVitalsColl = VitalSignsVoAssembler.createVitalSignsVoCollectionFromVitalSigns((List<?>) listVitalSignsDo(dateFrom, dateTo, vitalSignsTypes, refCareContext));

    if (vitalSignsTypes == null) // if listing all then sort
    {
        voVitalsColl.sort(SortOrder.DESCENDING);
    }
    return voVitalsColl;
}
项目:openMAXIMS    文件:VitalSignsBaselineAndAllImpl.java   
public VitalSignsVoCollection listVitalCapacity(CareContextRefVo refCareContext)
{
    VitalSignsVoCollection voVitalsColl = listVitalSigns(null, null, new VSType[]{VSType.PEAKFLOW}, refCareContext);

    voVitalsColl.sort(SortOrder.DESCENDING);

    return voVitalsColl;
}
项目:openmaxims-linux    文件:VitalSignsBaselineAndAllImpl.java   
public VitalSignsVoCollection listVitalCapacity(CareContextRefVo refCareContext)
{
    VitalSignsVoCollection voVitalsColl = listVitalSigns(null, null, new VSType[]{VSType.PEAKFLOW}, refCareContext);

    voVitalsColl.sort(SortOrder.DESCENDING);

    return voVitalsColl;
}
项目:openMAXIMS    文件:Logic.java   
protected void onCmbObservationValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setVitalSignMonitoringGroup(form.ctn().cmbObservation().getValue());
    form.ctn().cmbFrequency().setValue(null);
    form.ctn().grdVitals().setReadOnly(false);
    VitalSignMonitoringGroupVo item = form.ctn().cmbObservation().getValue();

    if (item != null)
    {
        if (item.getVitalsSigns() != null)
        {
            form.ctn().grdVitals().getRows().clear();

            VSType lkpItem;
            grdVitalsRow row;
            for (int i = 0; i < item.getVitalsSigns().size(); i++)
            {
                lkpItem = item.getVitalsSigns().get(i);

                row = form.ctn().grdVitals().getRows().newRow();
                row.setColVitalSign(lkpItem);
                row.setColSelect(true);
                row.setValue(null);
            }
        }
    }
    else
    {
        form.ctn().grdVitals().getRows().clear(); //WDEV-15302
    }
}
项目:openMAXIMS    文件:VitalSignsImpl.java   
/**
 * 
 * Generic List for all Vital Signs By Vital Signs Type
 * 
 */

public VitalSignsVoCollection listVitalSigns(Date dateFrom, Date dateTo, VSType[] vitalSignsTypes, CareContextRefVo refCareContext)
{
    VitalSignsVoCollection voVitalsColl = VitalSignsVoAssembler.createVitalSignsVoCollectionFromVitalSigns((List<?>) listVitalSignsDo(dateFrom, dateTo, vitalSignsTypes, refCareContext));

    if (vitalSignsTypes == null) // if listing all then sort
    {
        voVitalsColl.sort(SortOrder.DESCENDING);
    }
    return voVitalsColl;
}
项目:openMAXIMS    文件:VitalSignsImpl.java   
public VitalSignsVoCollection listVitalCapacity(CareContextRefVo refCareContext)
{
    VitalSignsVoCollection voVitalsColl = listVitalSigns(null, null, new VSType[]{VSType.PEAKFLOW}, refCareContext);

    voVitalsColl.sort(SortOrder.DESCENDING);

    return voVitalsColl;
}
项目:openMAXIMS    文件:VitalSignsBaselineAndAllImpl.java   
/**
 * 
 * Generic List for all Vital Signs By Vital Signs Type
 * 
 */

public VitalSignsVoCollection listVitalSigns(Date dateFrom, Date dateTo, VSType[] vitalSignsTypes, CareContextRefVo refCareContext)
{
    java.util.List vitals = listVitalSignsDo(dateFrom, dateTo, vitalSignsTypes, refCareContext);
    VitalSignsVoCollection voVitalsColl = VitalSignsVoAssembler.createVitalSignsVoCollectionFromVitalSigns(vitals);

    if (vitalSignsTypes == null) // if listing all then sort
    {
        voVitalsColl.sort(SortOrder.DESCENDING);
    }
    return voVitalsColl;
}
项目:AvoinApotti    文件:Logic.java   
private boolean isVitalDataEntered(VSType type) 
{
    if(type == null)
    {
        if(form.cmbEyesGCS().getValue() != null || form.cmbMotorGCS().getValue() != null || form.cmbVerbalGCS().getValue() != null
         || form.intBPSittingLyingDiastolic().getValue() != null || form.intBPSittingLyingSystolic() != null 
         || form.intBPStandingDiastolic().getValue() != null || form.intBPStandingSystolic() != null 
         || form.intHeartRate().getValue() != null || form.intOxygenSat().getValue() != null || form.intRespRate().getValue() != null || form.decTemperature().getValue() != null || form.intTidalVol().getValue() != null || form.decVitalCapacity().getValue() != null
         || form.decHeight().getValue() != null || form.decWeight().getValue() != null)
        {
            return true;
        }
    }

    if(type == VSType.BP)
    {
         if(form.intBPSittingLyingDiastolic().getValue() != null || form.intBPSittingLyingSystolic() != null 
         || form.intBPStandingDiastolic().getValue() != null || form.intBPStandingSystolic() != null) 
            return true;
    }
    else if(type == VSType.PULSE)
    {
        if(form.intHeartRate().getValue() != null)
            return true;
    }
    else if(type == VSType.TEMP)
    {
        if(form.decTemperature().getValue() != null)
            return true;
    }
    else if(type == VSType.RESPIRATION)
    {
        if(form.intRespRate().getValue() != null)
            return true;    
    }
    else if(type == VSType.OXYGEN)
    {
        if(form.intOxygenSat().getValue() != null)
            return true;    
    }
    else if(type == VSType.VITALCAPACITY) //lung function tests
    {
        if(form.intTidalVol().getValue() != null || form.decVitalCapacity().getValue() != null)
            return true;        
    }
    else if(type == VSType.METRICS)
    {
        if(form.decHeight().getValue() != null || form.decWeight().getValue() != null)
            return true;
    }
    else if(type == VSType.GLASGOWCOMASCALE)
    {
        if(form.cmbEyesGCS().getValue() != null || form.cmbMotorGCS().getValue() != null || form.cmbVerbalGCS().getValue() != null)
            return true;
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void setInstanceDetails(VitalSignMonitoringGroupVo vitalSignMonitoringGroupVo)
{
    clearInstanceControls();        
    if (vitalSignMonitoringGroupVo == null)
        return;     

    if (form.getLocalContext().getVitalSignsGrouping() != null)
        vitalSignMonitoringGroupVo = form.getLocalContext().getVitalSignsGrouping();
    else
    {
        vitalSignMonitoringGroupVo = domain.getVitalSignMonitoringGroupVo(vitalSignMonitoringGroupVo);
        form.getLocalContext().setVitalSignsGrouping(vitalSignMonitoringGroupVo);
    }

    form.txtName().setValue(vitalSignMonitoringGroupVo.getGroupName());         
    if (vitalSignMonitoringGroupVo.getIsActive() != null)
        form.chkActive().setValue(vitalSignMonitoringGroupVo.getIsActive().booleanValue());

    if (vitalSignMonitoringGroupVo.getVitalsSigns() != null)
    {
        grdVSESelectRow row;
        VSType item;
        VSTypeCollection coll = loadLookups();
        if (coll != null)
        {
            for (int i = 0; i < coll.size(); i++)
            {
                item = coll.get(i);

                row = form.grdVSESelect().getRows().newRow();
                row.setColVSElement(item.getText());
                row.setValue(item);

                for (int z = 0; z < vitalSignMonitoringGroupVo.getVitalsSigns().size(); z++)
                {
                    if (item.getID() == vitalSignMonitoringGroupVo.getVitalsSigns().get(z).getID())
                    {
                        row.setColSelect(true);
                        break;
                    }
                }
            }
        }
    }
    updateContextMenu();
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
/**
 * Retrieves a list of Temperatures for an Contact and Date Range
 */
public VitalSignsVoCollection listTemperatures(Date dateFrom, Date dateTo, CareContextRefVo refCareContext)
{
    return listVitalSigns(dateFrom, dateTo, new VSType[]{VSType.TEMP}, refCareContext);
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
/**
 * Saves a Temperature
 */
public ims.core.vo.VitalSignsVo modifyTemperature(VitalSignsVo vitalSign) throws StaleObjectException
{
    return inactivateVitalSign(vitalSign, VSType.TEMP);
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
/**
 * Retrieves a list of Pain for an Contact and Date Range
 */
public VitalSignsVoCollection listPain(Date dateFrom, Date dateTo, CareContextRefVo refCareContext)
{
    return listVitalSigns(dateFrom, dateTo, new VSType[]{VSType.PAIN}, refCareContext);
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
/**
 * Saves Pain
 */
public ims.core.vo.VitalSignsVo modifyPain(VitalSignsVo vitalSign) throws StaleObjectException
{
    return inactivateVitalSign(vitalSign, VSType.PAIN);
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
/**
 * Retrieves a list of OxygenSaturations for an Contact and Date Range
 */
public VitalSignsVoCollection listOxygenSaturation(Date dateFrom, Date dateTo, CareContextRefVo refCareContext)
{
    return listVitalSigns(dateFrom, dateTo, new VSType[]{VSType.OXYGEN}, refCareContext);
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
/**
 * Saves an OxygenSaturation
 */
public VitalSignsVo modifyOxygenSaturation(VitalSignsVo vitalSign) throws StaleObjectException
{
    return inactivateVitalSign(vitalSign, VSType.OXYGEN);

}
项目:AvoinApotti    文件:VitalSignsImpl.java   
public VitalSignsVoCollection listTPRBP(Date dateFrom, Date dateTo, CareContextRefVo refCareContext)
{
    return listVitalSigns(dateFrom, dateTo, new VSType[]{VSType.TEMP, VSType.PULSE, VSType.RESPIRATION, VSType.BP}, refCareContext);
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
public VitalSignsVoCollection listTPRBP(Date dateOneDay, CareContextRefVo refCareContext)
{
    return listVitalSigns(dateOneDay, null, new VSType[]{VSType.TEMP, VSType.PULSE, VSType.RESPIRATION, VSType.BP}, refCareContext);
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
/**
 * Retrieves a list of Pulses for an Contact and Date Range
 */
public VitalSignsVoCollection listPulse(Date dateFrom, Date dateTo, CareContextRefVo refCareContext)
{
    return listVitalSigns(dateFrom, dateTo, new VSType[]{VSType.PULSE}, refCareContext);
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
/**
 * Modify a Pulse
 */
public VitalSignsVo modifyPulse(VitalSignsVo vitalSign) throws StaleObjectException
{
    return inactivateVitalSign(vitalSign, VSType.PULSE);
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
/**
 * Retrieves a list of Peak Flows for a Contact and Date Range
 */
public VitalSignsVoCollection listPeakFlow(Date dateFrom, Date dateTo, CareContextRefVo refCareContext)
{
    return listVitalSigns(dateFrom, dateTo, new VSType[]{VSType.PEAKFLOW}, refCareContext);
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
/**
 * Saves a Peak Flow
 */
public VitalSignsVo modifyPeakFlow(VitalSignsVo vitalSign) throws StaleObjectException
{
    return inactivateVitalSign(vitalSign, VSType.PEAKFLOW);
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
/**
 * Retrieves a list of Respirations for an Contact and Date Range
 */
public VitalSignsVoCollection listRespiration(Date dateFrom, Date dateTo, CareContextRefVo refCareContext)
{
    return listVitalSigns(dateFrom, dateTo, new VSType[]{VSType.RESPIRATION}, refCareContext);
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
/**
 * modify a Respiration
 */
public VitalSignsVo modifyRespiration(VitalSignsVo vitalSign) throws StaleObjectException
{
    return inactivateVitalSign(vitalSign, VSType.RESPIRATION);
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
/**
 * Retrieves a list of BP's for an Contact and Date Range
 */
public VitalSignsVoCollection listBP(Date dateFrom, Date dateTo, CareContextRefVo refCareContext)
{
    return listVitalSigns(dateFrom, dateTo, new VSType[]{VSType.BP}, refCareContext);
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
public VitalSignsVo modifyBP(VitalSignsVo vitalSign) throws StaleObjectException
{
    return inactivateVitalSign(vitalSign, VSType.BP);
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
/**
 * Retrieves a list of GCS's for a Contact and Date Range
 */
public VitalSignsVoCollection listGCS(Date dateFrom, Date dateTo, CareContextRefVo refCareContext)
{
    return listVitalSigns(dateFrom, dateTo, new VSType[]{VSType.GLASGOWCOMASCALE}, refCareContext);
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
public VitalSignsVo modifyGCS(VitalSignsVo vitalSign) throws StaleObjectException
{
    return inactivateVitalSign(vitalSign, VSType.GLASGOWCOMASCALE);
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
/**
 * Retrieves a list of BloodSugars for a Contact and date range
 */
public VitalSignsVoCollection listBloodSugar(Date dateFrom, Date dateTo, CareContextRefVo refCareContext)
{
    return listVitalSigns(dateFrom, dateTo, new VSType[]{VSType.BLOODSUGAR}, refCareContext);
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
public VitalSignsVo modifyBloodSugar(VitalSignsVo vitalSign) throws StaleObjectException
{
    return inactivateVitalSign(vitalSign, VSType.BLOODSUGAR);
}