private void populatePatientProcedures(ProcedureListVoCollection voColl, PatientProcedureShortListVoCollection collPatientProcedureShort) { form.getLocalContext().setPatientProcedureShortListVoCollection(collPatientProcedureShort); for (int i=0; i < voColl.size(); i++) { populatePatientProceduresControls(voColl.get(i), collPatientProcedureShort); } }
private PatientProcedureVo searchExistingProcedures(grdChecklistRow row) { PatientProcedureShortListVoCollection collPatientProcedureShortListVo = form.getLocalContext().getPatientProcedureShortListVoCollection(); if(collPatientProcedureShortListVo!=null) for(int i=0; i<collPatientProcedureShortListVo.size(); i++) { //if was linked if(collPatientProcedureShortListVo.get(i).getProcedureIsNotNull() && collPatientProcedureShortListVo.get(i).getProcedure().getProcedureName().equals(row.getColProcedure()) && collPatientProcedureShortListVo.get(i).getClinicalContact().getID_ClinicalContact().equals(form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact())) { return new PatientProcedureVo(); } else { PatientProcedureVo procedureVo = domain.getProcedure(collPatientProcedureShortListVo.get(i)); if(collPatientProcedureShortListVo.get(i).getProcedureIsNotNull() && (!(collPatientProcedureShortListVo.get(i).getProcedureIsNotNull() && collPatientProcedureShortListVo.get(i).getProcedure().getProcedureName().equals(row.getColProcedure()) && row.getColProcedure().equals((procedureVo.getProcedure().getProcedureName()))))) { return procedureVo; } else if (collPatientProcedureShortListVo.get(i).getProcedureIsNotNull() && ((collPatientProcedureShortListVo.get(i).getProcedureIsNotNull() && collPatientProcedureShortListVo.get(i).getProcedure().getProcedureName().equals(row.getColProcedure()) && row.getColProcedure().equals((procedureVo.getProcedure().getProcedureName()))) && !collPatientProcedureShortListVo.get(i).getClinicalContact().getID_ClinicalContact().equals(form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact()))) { return procedureVo; } } } return new PatientProcedureVo(); }
public PatientProcedureShortListVoCollection listProceduresByCareContext(CareContextRefVo careContextRefVo) { if(careContextRefVo == null) throw new DomainRuntimeException("Invalid Care Context Ref"); DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer("from PatientProcedure p "); hql.append(" where p.careContext.id = " + careContextRefVo.getID_CareContext()); return PatientProcedureShortListVoAssembler.createPatientProcedureShortListVoCollectionFromPatientProcedure(factory.find(hql.toString())); }
public PatientProcedureShortListVoCollection listProceduresByEpisodeOfCareShortList(EpisodeOfCareRefVo episodeOfCareRefVo) { if(episodeOfCareRefVo == null) throw new DomainRuntimeException("Invalid Care Context Ref"); DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer("from PatientProcedure p "); hql.append(" where p.careContext.episodeOfCare.id = " + episodeOfCareRefVo.getID_EpisodeOfCare()); return PatientProcedureShortListVoAssembler.createPatientProcedureShortListVoCollectionFromPatientProcedure(factory.find(hql.toString())); }
public PatientProcedureShortListVoCollection listProcedureShortListVoByPatient(PatientRefVo patient) { Procedures impl = (Procedures) getDomainImpl(PlannedProcedureImpl.class); return impl.listProcedureShortListVoByPatient(patient); }
/** * listProcedure by clinical contact */ public ims.core.vo.PatientProcedureShortListVoCollection listProcedure(ims.core.admin.vo.ClinicalContactRefVo clinicalContactRefVo) { List list = listProcedures(clinicalContactRefVo, null); return PatientProcedureShortListVoAssembler.createPatientProcedureShortListVoCollectionFromPatientProcedure(list); }
public PatientProcedureShortListVoCollection listProcedureShortListVoByPatient(PatientRefVo patient) { List list = listProcedures(null, patient, null); return PatientProcedureShortListVoAssembler.createPatientProcedureShortListVoCollectionFromPatientProcedure(list); }