/** * will call procedure List Impl to list procedures */ public ims.core.vo.PatientProcedureProcsComponentLiteVoCollection listProcedures(ims.core.admin.vo.CareContextRefVo careContext) throws ims.domain.exceptions.DomainInterfaceException { final int PERFORMED_ID = -813; DomainFactory factory = getDomainFactory(); IMSCriteria imsc = new IMSCriteria(PatientProcedure.class, factory); imsc.equal("careContext.id", careContext.getID_CareContext()); imsc.equal("procedureStatus.id", PERFORMED_ID); List procedures = imsc.find(); if (procedures.size() > 0) return PatientProcedureProcsComponentLiteVoAssembler.createPatientProcedureProcsComponentLiteVoCollectionFromPatientProcedure(procedures); else return null; }
public void saveProcedures(PatientProcedureProcsComponentLiteVoCollection procedures, EDischargeSTHKSummaryForProcComponentVo summary) throws StaleObjectException { DomainFactory factory = getDomainFactory(); if (procedures != null) { for (int i = 0; i < procedures.size(); i++) factory.save(PatientProcedureProcsComponentLiteVoAssembler.extractPatientProcedure(factory, procedures.get(i))); } if(summary != null) //wdev-13375 saveEDischargeSummary(summary); //WDEV-13037 }