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(); }
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 } }
/** * * 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; }
public VitalSignsVoCollection listVitalCapacity(CareContextRefVo refCareContext) { VitalSignsVoCollection voVitalsColl = listVitalSigns(null, null, new VSType[]{VSType.PEAKFLOW}, refCareContext); voVitalsColl.sort(SortOrder.DESCENDING); return voVitalsColl; }
/** * * 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; }
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; }
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(); }
/** * 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); }
/** * Saves a Temperature */ public ims.core.vo.VitalSignsVo modifyTemperature(VitalSignsVo vitalSign) throws StaleObjectException { return inactivateVitalSign(vitalSign, VSType.TEMP); }
/** * 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); }
/** * Saves Pain */ public ims.core.vo.VitalSignsVo modifyPain(VitalSignsVo vitalSign) throws StaleObjectException { return inactivateVitalSign(vitalSign, VSType.PAIN); }
/** * 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); }
/** * Saves an OxygenSaturation */ public VitalSignsVo modifyOxygenSaturation(VitalSignsVo vitalSign) throws StaleObjectException { return inactivateVitalSign(vitalSign, VSType.OXYGEN); }
public VitalSignsVoCollection listTPRBP(Date dateFrom, Date dateTo, CareContextRefVo refCareContext) { return listVitalSigns(dateFrom, dateTo, new VSType[]{VSType.TEMP, VSType.PULSE, VSType.RESPIRATION, VSType.BP}, refCareContext); }
public VitalSignsVoCollection listTPRBP(Date dateOneDay, CareContextRefVo refCareContext) { return listVitalSigns(dateOneDay, null, new VSType[]{VSType.TEMP, VSType.PULSE, VSType.RESPIRATION, VSType.BP}, refCareContext); }
/** * 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); }
/** * Modify a Pulse */ public VitalSignsVo modifyPulse(VitalSignsVo vitalSign) throws StaleObjectException { return inactivateVitalSign(vitalSign, VSType.PULSE); }
/** * 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); }
/** * Saves a Peak Flow */ public VitalSignsVo modifyPeakFlow(VitalSignsVo vitalSign) throws StaleObjectException { return inactivateVitalSign(vitalSign, VSType.PEAKFLOW); }
/** * 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); }
/** * modify a Respiration */ public VitalSignsVo modifyRespiration(VitalSignsVo vitalSign) throws StaleObjectException { return inactivateVitalSign(vitalSign, VSType.RESPIRATION); }
/** * 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); }
public VitalSignsVo modifyBP(VitalSignsVo vitalSign) throws StaleObjectException { return inactivateVitalSign(vitalSign, VSType.BP); }
/** * 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); }
public VitalSignsVo modifyGCS(VitalSignsVo vitalSign) throws StaleObjectException { return inactivateVitalSign(vitalSign, VSType.GLASGOWCOMASCALE); }
/** * 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); }
public VitalSignsVo modifyBloodSugar(VitalSignsVo vitalSign) throws StaleObjectException { return inactivateVitalSign(vitalSign, VSType.BLOODSUGAR); }