public PlanOfCareVo getPlanOfCare(PlanOfCareRefVo voPlanOfCareRef) { if(voPlanOfCareRef == null || voPlanOfCareRef.getID_PlanOfCare() == null) { throw new DomainRuntimeException("Invalid record"); } DomainFactory factory = getDomainFactory(); PlanOfCare domainObject = (PlanOfCare)factory.getDomainObject(voPlanOfCareRef); return PlanOfCareVoAssembler.create(domainObject); }
public PlanOfCareHistoryVoCollection listDailyPatientProgressHistory(CareContextRefVo voCareContextRef, PlanOfCareRefVo record) { return PlanOfCareHistoryVoAssembler.createPlanOfCareHistoryVoCollectionFromPlanOfCareHistory( getDomainFactory().find("select answerHistory from PlanOfCare poc where poc.careContext.id = :careContext and poc.id = :pocID", new String[] {"careContext","pocID"}, new Object[] {voCareContextRef.getID_CareContext(), record.getID_PlanOfCare()})); }
public PlanOfCareActionsVoCollection listPocActions(CareContextRefVo voCareContextRef, PlanOfCareRefVo record) { return PlanOfCareActionsVoAssembler.createPlanOfCareActionsVoCollectionFromPlanOfCareActions( getDomainFactory().find("select actions from PlanOfCare poc where poc.careContext.id = :careContext and poc.id = :pocID", new String[] {"careContext","pocID"}, new Object[] {voCareContextRef.getID_CareContext(), record.getID_PlanOfCare()})); }