private void open() { form.setMode(FormMode.VIEW); clearScreen(); updateMenuItems(); if(setUpBlankPMHChecklistGrid() == false) { form.btnNew().setVisible(false); form.btnUpdate().setVisible(false); return; } if(form.getGlobalContext().Core.getCurrentCareContextIsNotNull()) { PatientPMHChecklistVo voPatientPMHChecklist = domain.getPatientPMHChecklist(form.getGlobalContext().Core.getCurrentCareContext()); PatientPastMedicalHistoryVo voPMH = domain.getPastMedicalHistory(form.getGlobalContext().Core.getPatientShort()); form.getLocalContext().setPastMedicalHistory(voPMH); if(voPatientPMHChecklist != null) { form.getLocalContext().setvoPatientPMHChecklist(voPatientPMHChecklist); form.btnNew().setVisible(false); form.btnUpdate().setVisible(true); populateScreenFromData(); } else { form.btnNew().setVisible(true); form.btnUpdate().setVisible(false); displayPastMedicalHistory(); } } }
/** * PMH for a Patient */ public PatientPastMedicalHistoryVo getPastMedicalHistory(PatientRefVo patient) { DomainFactory factory = getDomainFactory(); PastMedicalHistory domPmh = PastMedicalHistory.getPastMedicalHistoryFromPatient(factory,patient.getID_Patient()); PatientPastMedicalHistoryVo voPatientPastHistory = PatientPastMedicalHistoryVoAssembler.create(domPmh); if (voPatientPastHistory != null && voPatientPastHistory.getDiagnosisIsNotNull()) voPatientPastHistory.getDiagnosis().sort(SortOrder.ASCENDING); if (voPatientPastHistory != null && voPatientPastHistory.getProcedureIsNotNull()) voPatientPastHistory.getProcedure().sort(SortOrder.ASCENDING); return voPatientPastHistory; }
public PatientPastMedicalHistoryVo savePMH(PatientPastMedicalHistoryVo voPMH) throws StaleObjectException, UniqueKeyViolationException { // Ensure the value object has been validated if (!voPMH.isValidated()) throw new DomainRuntimeException("PMH has not been validated"); DomainFactory factory = getDomainFactory(); PastMedicalHistory doPMH = PatientPastMedicalHistoryVoAssembler.extractPastMedicalHistory(factory, voPMH); factory.save(doPMH); return PatientPastMedicalHistoryVoAssembler.create(doPMH); }
public PatientPastMedicalHistoryVo getPastMedicalHistory(PatientShort patient) { PastMedicalHistory impl = (PastMedicalHistory)getDomainImpl(PastMedicalHistoryImpl.class); return impl.getPastMedicalHistory(patient); }
public PatientPastMedicalHistoryVo savePMH(PatientPastMedicalHistoryVo pmh) throws StaleObjectException,UniqueKeyViolationException { PastMedicalHistory impl = (PastMedicalHistory)getDomainImpl(PastMedicalHistoryImpl.class); return impl.savePMH(pmh); }
public ims.core.vo.PatientPastMedicalHistoryVo savePatientPMHRecord(ims.core.vo.PatientPastMedicalHistoryVo voPMH, ims.core.patient.vo.PatientRefVo patient) throws ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException { PastMedicalHistory pmhRec = (PastMedicalHistory)getDomainImpl(PastMedicalHistoryImpl.class); return pmhRec.savePMH(voPMH); }
private PatientPastMedicalHistoryVo pmhCreated(PatientRefVo voPatient) { PastMedicalHistory pmhRec = (PastMedicalHistory)getDomainImpl(PastMedicalHistoryImpl.class); return pmhRec.getPastMedicalHistory(voPatient); }