/** * Gets the Clinical Notes Details for the given Clinical Note ID */ public ims.nursing.vo.NursingClinicalNotesVo getClinicalNotes(ims.core.vo.ClinicalNotesVo clinicalNote) { DomainFactory factory = getDomainFactory(); NursingClinicalNotes notes = (NursingClinicalNotes)factory.getDomainObject(NursingClinicalNotes.class, clinicalNote.getID_ClinicalNotes()); ims.nursing.vo.NursingClinicalNotesVo voNote = NursingClinicalNotesVoAssembler.create(notes); return voNote; }
public NursingClinicalNotesVo saveClinicalNotes(NursingClinicalNotesVo notesVo) throws StaleObjectException { if (!notesVo.isValidated()) throw new DomainRuntimeException("This Clinical Note has not been validated"); DomainFactory factory = getDomainFactory(); NursingClinicalNotes domNotes = NursingClinicalNotesVoAssembler.extractNursingClinicalNotes(factory, notesVo); // Save is needed as we then need to save this off with the careplans too being a bidirectional relationship factory.save(domNotes); return NursingClinicalNotesVoAssembler.create(domNotes); }
protected void onFormOpen() throws ims.framework.exceptions.FormOpenException { // List Careplans for the root clinical contact form.getLocalContext().setCarePlans(domain.listCarePlans(form.getGlobalContext().Core.getCurrentCareContext())); loadCarePlans(); form.btnUpdateActions().setVisible(ConfigFlag.GEN.CARE_PLAN_FUNCTIONALITY_TYPE.getValue().toString().equals("CCO")); form.btnUpdateActions().setEnabled(areCarePlansSelected()); form.labelFlag().setVisible( ! ConfigFlag.GEN.CARE_PLAN_FUNCTIONALITY_TYPE.getValue().toString().equals("CCO"));//wdev-13781 form.chkHospitalReport().setVisible( ! ConfigFlag.GEN.CARE_PLAN_FUNCTIONALITY_TYPE.getValue().toString().equals("CCO"));//wdev-13781 if (form.getGlobalContext().COE.getClinicalNotesVo() != null) { NursingClinicalNotesVo notes = domain.getClinicalNotes(form.getGlobalContext().COE.getClinicalNotesVo()); if (notes != null) { if (notes.getIsCorrectedIsNotNull()) form.checkBoxCorrection().setValue(notes.getIsCorrected()); form.chkHospitalReport().setValue(notes.getInHospitalReport().booleanValue()); if (notes.getAuthoringInfoIsNotNull()) { if (notes.getAuthoringInfo().getAuthoringDateTimeIsNotNull()) { form.dateNote().setValue(notes.getAuthoringInfo().getAuthoringDateTime().getDate()); form.timeNote().setValue(notes.getAuthoringInfo().getAuthoringDateTime().getTime()); } if (notes.getAuthoringInfo().getAuthoringHcpIsNotNull()) { form.textBoxHCP().setValue(notes.getAuthoringInfo().getAuthoringHcp().toString()); form.getLocalContext().setCurrentHcp(notes.getAuthoringInfo().getAuthoringHcp()); } } form.textBoxClinicalNotes().setValue(notes.getClinicalNote()); ClinicalNoteStatusVo voClinicalNoteStatus = notes.getCurrentStatus(); if(voClinicalNoteStatus!=null && voClinicalNoteStatus.getCorrectionReason() != null && voClinicalNoteStatus.getCorrectionConfirmed()!= null) { form.textBoxCorrectionReason().setValue(voClinicalNoteStatus.getCorrectionReason()); form.checkBoxCorrection().setValue(voClinicalNoteStatus.getCorrectionConfirmed()); } form.getLocalContext().setClinicalNote(notes); populateCarePlans(); setButtonsViewMode(); } else setButtonsViewMode(); //WDEV-15066 } else{ //WDEV-11531 newClinicalNote(); setButtonsNewMode(); } }
/** * saves a clinical note */ public NursingClinicalNotesVo saveClinicalNotes(NursingClinicalNotesVo voNotes) throws StaleObjectException { ClinicalNotes clinicalNotes = (ClinicalNotes)getDomainImpl(ClinicalNotesImpl.class); return clinicalNotes.saveClinicalNotes(voNotes); }
private void openClinicalNote() { //WDEV-14428 if (form.getGlobalContext().Clinical.getCurrentClinicalNote()==null) return; NursingClinicalNotesVo notes = domain.getClinicalNotes(form.getGlobalContext().Clinical.getCurrentClinicalNote()); if (notes != null) { form.cmbNoteType().setValue(notes.getNoteClassification()); if (notes.getAuthoringInfoIsNotNull()) { form.ccAuthoredBy().setValue(notes.getAuthoringInfo()); form.ccAuthoredBy().setEnabledAuthoringHCP(false); form.ccAuthoredBy().setEnabledDateTime(false); } form.ccRecordingUser().setValue(notes.getRecordingUser()); form.dtimRecordingDateTime().setValue(notes.getRecordingDateTime()); form.chkConfirmed().setValue(false); form.ccConfirmedBYMOS().setValue(null); form.dtimConfirmedBY().setValue(null); ClinicalNoteStatusVo voStat = findConfirmedInfo(notes.getStatusHistory()); if (voStat != null) { form.chkConfirmed().setValue(true); form.ccConfirmedBYMOS().setValue(voStat.getMOS()); form.dtimConfirmedBY().setValue(voStat.getDateTime()); } form.txtNOte().setValue(notes.getClinicalNote()); form.getLocalContext().setSelectedClinicalNote(notes); populateCarePlans(); if (notes.getIsCorrectedIsNotNull() && notes.getIsCorrected()) { form.lblCorrection().setVisible(true); form.txtCorrection().setVisible(true); form.txtCorrection().setEnabled(false);//form.getMode().equals(FormMode.EDIT)); form.txtCorrection().setValue(notes.getCurrentStatusIsNotNull() ? notes.getCurrentStatus().getCorrectionReason() : ""); } if (notes.getCurrentStatusIsNotNull() && notes.getCurrentStatus().getStatusIsNotNull()) //WDEV-14458 { form.txtStatus().setValue(notes.getCurrentStatus().getStatus().toString()); } } }
protected void onFormOpen() throws ims.framework.exceptions.FormOpenException { // List Careplans for the root clinical contact form.getLocalContext().setCarePlans(domain.listCarePlans(form.getGlobalContext().Core.getCurrentCareContext())); loadCarePlans(); form.btnUpdateActions().setVisible(ConfigFlag.GEN.CARE_PLAN_FUNCTIONALITY_TYPE.getValue().toString().equals("CCO")); form.btnUpdateActions().setEnabled(FormMode.EDIT.equals(form.getMode()) && areCarePlansSelected()); form.labelFlag().setVisible( ! ConfigFlag.GEN.CARE_PLAN_FUNCTIONALITY_TYPE.getValue().toString().equals("CCO"));//wdev-13781 form.chkHospitalReport().setVisible( ! ConfigFlag.GEN.CARE_PLAN_FUNCTIONALITY_TYPE.getValue().toString().equals("CCO"));//wdev-13781 if (form.getGlobalContext().COE.getClinicalNotesVo() != null) { NursingClinicalNotesVo notes = domain.getClinicalNotes(form.getGlobalContext().COE.getClinicalNotesVo()); if (notes != null) { if (notes.getIsCorrectedIsNotNull()) form.checkBoxCorrection().setValue(notes.getIsCorrected()); form.chkHospitalReport().setValue(notes.getInHospitalReport().booleanValue()); if (notes.getAuthoringInfoIsNotNull()) { if (notes.getAuthoringInfo().getAuthoringDateTimeIsNotNull()) { form.dateNote().setValue(notes.getAuthoringInfo().getAuthoringDateTime().getDate()); form.timeNote().setValue(notes.getAuthoringInfo().getAuthoringDateTime().getTime()); } if (notes.getAuthoringInfo().getAuthoringHcpIsNotNull()) { form.textBoxHCP().setValue(notes.getAuthoringInfo().getAuthoringHcp().toString()); form.getLocalContext().setCurrentHcp(notes.getAuthoringInfo().getAuthoringHcp()); } } form.textBoxClinicalNotes().setValue(notes.getClinicalNote()); ClinicalNoteStatusVo voClinicalNoteStatus = notes.getCurrentStatus(); if(voClinicalNoteStatus!=null && voClinicalNoteStatus.getCorrectionReason() != null && voClinicalNoteStatus.getCorrectionConfirmed()!= null) { form.textBoxCorrectionReason().setValue(voClinicalNoteStatus.getCorrectionReason()); form.checkBoxCorrection().setValue(voClinicalNoteStatus.getCorrectionConfirmed()); } form.getLocalContext().setClinicalNote(notes); populateCarePlans(); setButtonsViewMode(); } else setButtonsViewMode(); //WDEV-15066 } else{ //WDEV-11531 newClinicalNote(); setButtonsNewMode(); } }