/** * 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 }
private void displayProcedures(PatientProcedureProcsComponentLiteVoCollection procedures) { form.grdProcs().getRows().clear(); if (procedures != null) { for (PatientProcedureProcsComponentLiteVo procedure : procedures) { grdProcsRow aRow = form.grdProcs().getRows().newRow(); aRow.setValue(procedure); if (procedure.getAuthoringInformationIsNotNull()) { if (procedure.getAuthoringInformation().getAuthoringHcpIsNotNull() && procedure.getAuthoringInformation().getAuthoringDateTimeIsNotNull()) { aRow.setColAuthoringHCPDateTime(procedure.getAuthoringInformation().getAuthoringHcp().toString() + ", " + procedure.getAuthoringInformation().getAuthoringDateTime()); } else if (procedure.getAuthoringInformation().getAuthoringHcpIsNotNull() && (!procedure.getAuthoringInformation().getAuthoringDateTimeIsNotNull())) { aRow.setColAuthoringHCPDateTime(procedure.getAuthoringInformation().getAuthoringHcp().toString()); } else if ((!procedure.getAuthoringInformation().getAuthoringHcpIsNotNull()) && procedure.getAuthoringInformation().getAuthoringDateTimeIsNotNull()) { aRow.setColAuthoringHCPDateTime(procedure.getAuthoringInformation().getAuthoringDateTime().toString()); } } // WDEV-8607 if (procedure.getProcDateIsNotNull()) { aRow.setColDate(procedure.getProcDate()); } aRow.setReadOnly(false); if (procedure.getIncludeInDischargeLetterIsNotNull()) { if (procedure.getIncludeInDischargeLetter()) { aRow.setColInclude(true); } else { aRow.setColInclude(false); } } if (procedure.getProcedureDescriptionIsNotNull()) { aRow.setColProc(procedure.getProcedureDescription()); } } } }