/** * WDEV-13648 * List Gait Re-education records for a certain Care Context */ public GaitReEducationVoCollection listGaitReeducation(CareContextRefVo careContext) { String hql = "from GaitReEducation gr where gr.clinicalContact.careContext.id = :RCC"; return GaitReEducationVoAssembler.createGaitReEducationVoCollectionFromGaitReEducation(getDomainFactory().find(hql, "RCC", careContext.getID_CareContext())); }
public void saveGaitReEducation(GaitReEducationVo voGaitReeducation) throws StaleObjectException, UniqueKeyViolationException { if(!voGaitReeducation.isValidated()) throw new DomainRuntimeException("This Gait Re-Education has not been validated"); DomainFactory factory = getDomainFactory(); GaitReEducation doGait = GaitReEducationVoAssembler.extractGaitReEducation(factory, voGaitReeducation); factory.save(doGait); }
/** * WDEV-13648 * List Gait Re-education records for a certain clinical contact */ public GaitReEducationVoCollection listGaitReEducation(ClinicalContactRefVo voClinicalContact) { String query = "from GaitReEducation gr where gr.clinicalContact.id = :RCC"; return GaitReEducationVoAssembler.createGaitReEducationVoCollectionFromGaitReEducation(getDomainFactory().find(query, "RCC", voClinicalContact.getID_ClinicalContact())); }