public VitalSignMonitoringVo saveVitalSignsMonitoringVo(VitalSignMonitoringVo voVitalSignsMonitoring) throws StaleObjectException { DomainFactory factory = getDomainFactory(); VitalSignsMonitoring bo = VitalSignMonitoringVoAssembler.extractVitalSignsMonitoring(factory, voVitalSignsMonitoring); factory.save(bo); return VitalSignMonitoringVoAssembler.create(bo); }
public VitalSignMonitoringVoCollection listVitalSignsMonitoringVo(CareContextRefVo voCareContextRef) throws DomainInterfaceException { DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer("from VitalSignsMonitoring vsm "); if (voCareContextRef == null) return null; hql.append(" where vsm.careContext.id = :cc"); hql.append(" order by vsm.startDateTime desc"); java.util.List vsmList = factory.find(hql.toString(), new String[]{"cc"}, new Object[]{voCareContextRef.getID_CareContext()}); return VitalSignMonitoringVoAssembler.createVitalSignMonitoringVoCollectionFromVitalSignsMonitoring(vsmList); }