Java Code Examples for ims.core.vo.lookups.ClinicalNotingMode

The following are top voted examples for showing how to use ims.core.vo.lookups.ClinicalNotingMode. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onBtnUpdateClick() throws ims.framework.exceptions.PresentationLogicException
{
	form.setMode(FormMode.EDIT);
	
	showHideCustomComponent(form.customControlAuthoring(), Boolean.FALSE, false);
	
	if (isDialog())
	{
		form.btnClose().setVisible(false);
		form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	}
	
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);
	form.btnClose().setEnabled(false);
	if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() &&
			validationIPMode(form.getGlobalContext().Clinical.getCurrentClinicalNote().getCurrentStatus()))
	{
		form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);
	}
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void enableFollowUpInstructions(boolean clearControls)
{
	if (form.getMode().equals(FormMode.EDIT) && !(form.getGlobalContext().Core.getClinicalNotingModeIsNotNull() && form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.REVIEW)))
	{
		OpdFollowUp followUp = form.lyrTabs().tabOPDNote().cmbFollowUp().getValue();
		boolean enablefollowUpControls = true;
		if (followUp != null && followUp.equals(OpdFollowUp.DISCHARGEDFROMCLINIC))
			enablefollowUpControls = false;

		form.lyrTabs().tabOPDNote().cmbReview().setEnabled(enablefollowUpControls);
		form.lyrTabs().tabOPDNote().intReview().setEnabled(enablefollowUpControls);
		form.lyrTabs().tabOPDNote().richTextInstructions().setEnabled(enablefollowUpControls);
		if (enablefollowUpControls == false && clearControls)
		{
			form.lyrTabs().tabOPDNote().cmbReview().setValue(null);
			form.lyrTabs().tabOPDNote().intReview().setValue(null);
			form.lyrTabs().tabOPDNote().richTextInstructions().setValue("");
			form.lyrTabs().tabOPDNote().cmbReview().setFocus();
		}
	}
}
 
Example 3
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onBtnUpdateOPNotesClick() throws PresentationLogicException
{
	form.setMode(FormMode.EDIT);

	showHideCustomComponent(form.lyrTabs().tabOPDNote().customControlOPAuthoring(), Boolean.FALSE, false);

	setRichBoxControls(true);
	form.lyrTabs().tabOPDNote().cmbFollowUp().setEnabled(true);
	updateOPNotingButtonsStatus();

	form.lyrTabs().tabAssessment().setHeaderEnabled(false);
	form.lyrTabs().tabClinicalNotes().setHeaderEnabled(false);
	form.lyrTabs().tabOPDNote().setHeaderEnabled(true);
	form.lyrTabs().tabDetails().setHeaderEnabled(false);
	form.lyrTabs().tabDrawing().setHeaderEnabled(false);
	//---------------------------------
	form.lyrTabs().tabOPDNote().customControlOPAuthoring().setEnabledAuthoringHCP(true);
	form.lyrTabs().tabOPDNote().customControlOPAuthoring().setEnabledDateTime(true);
	form.lyrTabs().tabOPDNote().customControlOPAuthoring().setIsRequiredPropertyToControls(true);
	//-----------------------------------
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);
	if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() && validationOPMode(form.getGlobalContext().Clinical.getCurrentClinicalNote().getCurrentStatus()))
	{
		form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);
	}
}
 
Example 4
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onBtnUpdateClick() throws ims.framework.exceptions.PresentationLogicException
{
	form.setMode(FormMode.EDIT);
	
	showHideCustomComponent(form.customControlAuthoring(), Boolean.FALSE, false);
	
	form.richNotes().setEnabled(true);
	form.btnClose().setVisible(false);
	
	if (isDialog())
		form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);
	if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() &&
			validationIPMode(form.getGlobalContext().Clinical.getCurrentClinicalNote().getCurrentStatus()))
	{
		form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);
	}
}
 
Example 5
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void correctClinicalNote()
{
	selectClinicalNoteInGlobalContext();

	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.CORRECTION);
	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE))
		engine.open(form.getForms().Therapies.SOAPNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.TLT_NOTE))
		engine.open(form.getForms().Clinical.TherapiesNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNote().booleanValue())
	{
		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
	}
	else
		engine.open(form.getForms().Clinical.ExtendedClinicalNotesDialog);
}
 
Example 6
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void newClinicalNote()
	{
		form.getGlobalContext().Core.setClinicalNotesShort(null);
		form.getGlobalContext().Clinical.setCurrentClinicalNote(null);
		form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
		form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.NEW);
		
		//WDEV-14616
		form.getLocalContext().setcontextMenuSelected(ims.clinical.vo.enums.ExtendedPatientClinicalNotes_ContextMenuSelected.ADD);

		engine.open(form.getForms().Clinical.ExtendedCarePlanClinicalNotesDialog);

//		if (engine.getFormName().equals(form.getForms().Clinical.ExtendedPatientClinicalNotesCarePlansList))
//			engine.open(form.getForms().Clinical.ExtendedCarePlanClinicalNotesDialog);
//		else
//			engine.open(form.getForms().Clinical.ExtendedClinicalNotesDialog);
	}
 
Example 7
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void open()
{
	if (form.getGlobalContext().Core.getClinicalNotingMode() == null)
	{
		loadCarePlans(false);
		openClinicalNote();
		removeUncheckedCarePlans();
		form.setMode(FormMode.VIEW);
	}
	else if (form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.NEW))
	{
		newClinicalNote();
		loadCarePlans(true);
		form.setMode(FormMode.EDIT);
	}
	else if (form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.UPDATE))
	{
		loadCarePlans(false);
		openClinicalNote();
		removeUncheckedCarePlans();
		form.setMode(FormMode.EDIT);
		form.cmbNoteType().setEnabled(false);
		form.gridCarePlan().setReadOnly(true);
	}
}
 
Example 8
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onBtnUpdateClick() throws ims.framework.exceptions.PresentationLogicException
{
	form.setMode(FormMode.EDIT);
	
	showHideCustomComponent(form.customControlAuthoring(), Boolean.FALSE, false);

	form.richNotes().setEnabled(true);
	form.btnClose().setVisible(false);
	
	if (isDialog())
		form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);
	if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() &&
			validationIPMode(form.getGlobalContext().Clinical.getCurrentClinicalNote().getCurrentStatus()))
	{
		form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);
	}
}
 
Example 9
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void editClinicalNote()
{
	selectClinicalNoteInGlobalContext();

	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE))
		engine.open(form.getForms().Therapies.SOAPNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.TLT_NOTE))
		engine.open(form.getForms().Clinical.TherapiesNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNote().booleanValue())
	{
		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
	}
	else
		engine.open(form.getForms().Clinical.ClinicalNotesDialog);

}
 
Example 10
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void reviewClinicalNote()
{
	selectClinicalNoteInGlobalContext();

	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.REVIEW);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE))
		engine.open(form.getForms().Therapies.SOAPNoteDialog);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.TLT_NOTE))
		engine.open(form.getForms().Clinical.TherapiesNoteDialog);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP))
		engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP))
		engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALCLINICALNOTE))
		engine.open(form.getForms().Clinical.ClinicalNotesDialog);
}
 
Example 11
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void validateClinicalNote()
{
	selectClinicalNoteInGlobalContext();

	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE))
		engine.open(form.getForms().Therapies.SOAPNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.TLT_NOTE))
	{
		engine.open(form.getForms().Clinical.TherapiesNoteDialog);
	}
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNote().booleanValue())
	{
		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);

		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
	}
	else
		engine.open(form.getForms().Clinical.ClinicalNotesDialog);

	// engine.open(form.getForms().Clinical.ClinicalNoteDrawing);
}
 
Example 12
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onBtnUpdateClick() throws ims.framework.exceptions.PresentationLogicException
{
	form.setMode(FormMode.EDIT);
	
	showHideCustomComponent(form.customControlAuthoring(), Boolean.FALSE, false);
	
	if (isDialog())
	{
		form.btnClose().setVisible(false);
		form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	}
	
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);
	form.btnClose().setEnabled(false);
	if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() &&
			validationIPMode(form.getGlobalContext().Clinical.getCurrentClinicalNote().getCurrentStatus()))
	{
		form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);
	}
}
 
Example 13
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void setCurrentClinicalNote() throws FormOpenException
{
	ClinicalNotesVo clinicalNotesForContact = null;
	

	if( form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() )
	{
		clinicalNotesForContact = domain.getClinicalNote(form.getGlobalContext().Clinical.getCurrentClinicalNote());
	}
		
				
	if (clinicalNotesForContact != null && !ClinicalNotingMode.NEW.equals(form.getGlobalContext().Core.getClinicalNotingMode()))
		form.getGlobalContext().Clinical.setCurrentClinicalNote(clinicalNotesForContact);
	else
		form.getGlobalContext().Clinical.setCurrentClinicalNote(null);
	
}
 
Example 14
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onBtnUpdateClick() throws ims.framework.exceptions.PresentationLogicException
{
	form.setMode(FormMode.EDIT);
	
	showHideCustomComponent(form.customControlAuthoring(), Boolean.FALSE, false);
	
	form.btnClose().setVisible(false);
	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
			
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);
	form.btnClose().setEnabled(false);
	if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() &&
			validationIPMode(form.getGlobalContext().Clinical.getCurrentClinicalNote().getCurrentStatus()))
	{
		form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);
	}
}
 
Example 15
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void enableFollowUpInstructions(boolean clearControls)
{
	if (form.getMode().equals(FormMode.EDIT) && !(form.getGlobalContext().Core.getClinicalNotingModeIsNotNull() && form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.REVIEW)))
	{
		OpdFollowUp followUp = form.lyrTabs().tabOPDNote().cmbFollowUp().getValue();
		boolean enablefollowUpControls = true;
		if (followUp != null && followUp.equals(OpdFollowUp.DISCHARGEDFROMCLINIC))
			enablefollowUpControls = false;

		form.lyrTabs().tabOPDNote().cmbReview().setEnabled(enablefollowUpControls);
		form.lyrTabs().tabOPDNote().intReview().setEnabled(enablefollowUpControls);
		form.lyrTabs().tabOPDNote().richTextInstructions().setEnabled(enablefollowUpControls);
		if (enablefollowUpControls == false && clearControls)
		{
			form.lyrTabs().tabOPDNote().cmbReview().setValue(null);
			form.lyrTabs().tabOPDNote().intReview().setValue(null);
			form.lyrTabs().tabOPDNote().richTextInstructions().setValue("");
			form.lyrTabs().tabOPDNote().cmbReview().setFocus();
		}
	}
}
 
Example 16
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onBtnUpdateOPNotesClick() throws PresentationLogicException
{
	form.setMode(FormMode.EDIT);

	showHideCustomComponent(form.lyrTabs().tabOPDNote().customControlOPAuthoring(), Boolean.FALSE, false);

	setRichBoxControls(true);
	form.lyrTabs().tabOPDNote().cmbFollowUp().setEnabled(true);
	updateOPNotingButtonsStatus();

	form.lyrTabs().tabAssessment().setHeaderEnabled(false);
	form.lyrTabs().tabClinicalNotes().setHeaderEnabled(false);
	form.lyrTabs().tabOPDNote().setHeaderEnabled(true);
	form.lyrTabs().tabDetails().setHeaderEnabled(false);
	form.lyrTabs().tabDrawing().setHeaderEnabled(false);
	//---------------------------------
	form.lyrTabs().tabOPDNote().customControlOPAuthoring().setEnabledAuthoringHCP(true);
	form.lyrTabs().tabOPDNote().customControlOPAuthoring().setEnabledDateTime(true);
	form.lyrTabs().tabOPDNote().customControlOPAuthoring().setIsRequiredPropertyToControls(true);
	//-----------------------------------
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);
	if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() && validationOPMode(form.getGlobalContext().Clinical.getCurrentClinicalNote().getCurrentStatus()))
	{
		form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);
	}
}
 
Example 17
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onBtnUpdateClick() throws ims.framework.exceptions.PresentationLogicException
{
	form.setMode(FormMode.EDIT);
	
	showHideCustomComponent(form.customControlAuthoring(), Boolean.FALSE, false);
	
	form.richNotes().setEnabled(true);
	form.btnClose().setVisible(false);
	
	if (isDialog())
		form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);
	if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() &&
			validationIPMode(form.getGlobalContext().Clinical.getCurrentClinicalNote().getCurrentStatus()))
	{
		form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);
	}
}
 
Example 18
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void correctClinicalNote()
{
	selectClinicalNoteInGlobalContext();

	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.CORRECTION);
	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE))
		engine.open(form.getForms().Therapies.SOAPNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.TLT_NOTE))
		engine.open(form.getForms().Clinical.TherapiesNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNote().booleanValue())
	{
		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
	}
	else
		engine.open(form.getForms().Clinical.ExtendedClinicalNotesDialog);
}
 
Example 19
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void newClinicalNote()
	{
		form.getGlobalContext().Core.setClinicalNotesShort(null);
		form.getGlobalContext().Clinical.setCurrentClinicalNote(null);
		form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
		form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.NEW);
		
		//WDEV-14616
		form.getLocalContext().setcontextMenuSelected(ims.clinical.vo.enums.ExtendedPatientClinicalNotes_ContextMenuSelected.ADD);

		engine.open(form.getForms().Clinical.ExtendedCarePlanClinicalNotesDialog);

//		if (engine.getFormName().equals(form.getForms().Clinical.ExtendedPatientClinicalNotesCarePlansList))
//			engine.open(form.getForms().Clinical.ExtendedCarePlanClinicalNotesDialog);
//		else
//			engine.open(form.getForms().Clinical.ExtendedClinicalNotesDialog);
	}
 
Example 20
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void open()
{
	if (form.getGlobalContext().Core.getClinicalNotingMode() == null)
	{
		loadCarePlans(false);
		openClinicalNote();
		removeUncheckedCarePlans();
		form.setMode(FormMode.VIEW);
	}
	else if (form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.NEW))
	{
		newClinicalNote();
		loadCarePlans(true);
		form.setMode(FormMode.EDIT);
	}
	else if (form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.UPDATE))
	{
		loadCarePlans(false);
		openClinicalNote();
		removeUncheckedCarePlans();
		form.setMode(FormMode.EDIT);
		form.cmbNoteType().setEnabled(false);
		form.gridCarePlan().setReadOnly(true);
	}
}
 
Example 21
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onBtnUpdateClick() throws ims.framework.exceptions.PresentationLogicException
{
	form.setMode(FormMode.EDIT);
	
	showHideCustomComponent(form.customControlAuthoring(), Boolean.FALSE, false);

	form.richNotes().setEnabled(true);
	form.btnClose().setVisible(false);
	
	if (isDialog())
		form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);
	if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() &&
			validationIPMode(form.getGlobalContext().Clinical.getCurrentClinicalNote().getCurrentStatus()))
	{
		form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);
	}
}
 
Example 22
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void editClinicalNote()
{
	selectClinicalNoteInGlobalContext();

	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE))
		engine.open(form.getForms().Therapies.SoapNoteDlg);
		//engine.open(form.getForms().Therapies.SOAPNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.TLT_NOTE))
		engine.open(form.getForms().Clinical.TherapiesNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNote().booleanValue())
	{
		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
	}
	else
		engine.open(form.getForms().Clinical.ClinicalNotesDialog);

}
 
Example 23
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void reviewClinicalNote()
{
	selectClinicalNoteInGlobalContext();

	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.REVIEW);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE))
		engine.open(form.getForms().Therapies.SoapNoteDlg);
		//engine.open(form.getForms().Therapies.SOAPNoteDialog);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.TLT_NOTE))
		engine.open(form.getForms().Clinical.TherapiesNoteDialog);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP))
		engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP))
		engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALCLINICALNOTE))
		engine.open(form.getForms().Clinical.ClinicalNotesDialog);
}
 
Example 24
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void validateClinicalNote()
{
	selectClinicalNoteInGlobalContext();

	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE))
		engine.open(form.getForms().Therapies.SOAPNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.TLT_NOTE))
	{
		engine.open(form.getForms().Clinical.TherapiesNoteDialog);
	}
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNote().booleanValue())
	{
		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);

		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
	}
	else
		engine.open(form.getForms().Clinical.ClinicalNotesDialog);

	// engine.open(form.getForms().Clinical.ClinicalNoteDrawing);
}
 
Example 25
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onBtnUpdateClick() throws ims.framework.exceptions.PresentationLogicException
{
	form.setMode(FormMode.EDIT);
	
	showHideCustomComponent(form.customControlAuthoring(), Boolean.FALSE, false);
	
	if (isDialog())
	{
		form.btnClose().setVisible(false);
		form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	}
	
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);
	form.btnClose().setEnabled(false);
	if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() &&
			validationIPMode(form.getGlobalContext().Clinical.getCurrentClinicalNote().getCurrentStatus()))
	{
		form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);
	}
}
 
Example 26
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void enableFollowUpInstructions(boolean clearControls)
{
	if (form.getMode().equals(FormMode.EDIT) && !(form.getGlobalContext().Core.getClinicalNotingModeIsNotNull() && form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.REVIEW)))
	{
		OpdFollowUp followUp = form.lyrTabs().tabOPDNote().cmbFollowUp().getValue();
		boolean enablefollowUpControls = true;
		if (followUp != null && followUp.equals(OpdFollowUp.DISCHARGEDFROMCLINIC))
			enablefollowUpControls = false;

		form.lyrTabs().tabOPDNote().cmbReview().setEnabled(enablefollowUpControls);
		form.lyrTabs().tabOPDNote().intReview().setEnabled(enablefollowUpControls);
		form.lyrTabs().tabOPDNote().richTextInstructions().setEnabled(enablefollowUpControls);
		if (enablefollowUpControls == false && clearControls)
		{
			form.lyrTabs().tabOPDNote().cmbReview().setValue(null);
			form.lyrTabs().tabOPDNote().intReview().setValue(null);
			form.lyrTabs().tabOPDNote().richTextInstructions().setValue("");
			form.lyrTabs().tabOPDNote().cmbReview().setFocus();
		}
	}
}
 
Example 27
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onBtnUpdateOPNotesClick() throws PresentationLogicException
{
	form.setMode(FormMode.EDIT);

	showHideCustomComponent(form.lyrTabs().tabOPDNote().customControlOPAuthoring(), Boolean.FALSE, false);

	setRichBoxControls(true);
	form.lyrTabs().tabOPDNote().cmbFollowUp().setEnabled(true);
	updateOPNotingButtonsStatus();

	form.lyrTabs().tabAssessment().setHeaderEnabled(false);
	form.lyrTabs().tabClinicalNotes().setHeaderEnabled(false);
	form.lyrTabs().tabOPDNote().setHeaderEnabled(true);
	form.lyrTabs().tabDetails().setHeaderEnabled(false);
	form.lyrTabs().tabDrawing().setHeaderEnabled(false);
	//---------------------------------
	form.lyrTabs().tabOPDNote().customControlOPAuthoring().setEnabledAuthoringHCP(true);
	form.lyrTabs().tabOPDNote().customControlOPAuthoring().setEnabledDateTime(true);
	form.lyrTabs().tabOPDNote().customControlOPAuthoring().setIsRequiredPropertyToControls(true);
	//-----------------------------------
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);
	if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() && validationOPMode(form.getGlobalContext().Clinical.getCurrentClinicalNote().getCurrentStatus()))
	{
		form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);
	}
}
 
Example 28
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onBtnUpdateClick() throws ims.framework.exceptions.PresentationLogicException
{
	form.setMode(FormMode.EDIT);
	
	showHideCustomComponent(form.customControlAuthoring(), Boolean.FALSE, false);
	
	form.richNotes().setEnabled(true);
	form.btnClose().setVisible(false);
	
	if (isDialog())
		form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);
	if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() &&
			validationIPMode(form.getGlobalContext().Clinical.getCurrentClinicalNote().getCurrentStatus()))
	{
		form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);
	}
}
 
Example 29
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void correctClinicalNote()
{
	selectClinicalNoteInGlobalContext();

	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.CORRECTION);
	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE))
		engine.open(form.getForms().Therapies.SOAPNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.TLT_NOTE))
		engine.open(form.getForms().Clinical.TherapiesNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNote().booleanValue())
	{
		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
	}
	else
		engine.open(form.getForms().Clinical.ExtendedClinicalNotesDialog);
}
 
Example 30
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void newClinicalNote()
	{
		form.getGlobalContext().Core.setClinicalNotesShort(null);
		form.getGlobalContext().Clinical.setCurrentClinicalNote(null);
		form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
		form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.NEW);
		
		//WDEV-14616
		form.getLocalContext().setcontextMenuSelected(ims.clinical.vo.enums.ExtendedPatientClinicalNotes_ContextMenuSelected.ADD);

		engine.open(form.getForms().Clinical.ExtendedCarePlanClinicalNotesDialog);

//		if (engine.getFormName().equals(form.getForms().Clinical.ExtendedPatientClinicalNotesCarePlansList))
//			engine.open(form.getForms().Clinical.ExtendedCarePlanClinicalNotesDialog);
//		else
//			engine.open(form.getForms().Clinical.ExtendedClinicalNotesDialog);
	}
 
Example 31
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void open()
{
	if (form.getGlobalContext().Core.getClinicalNotingMode() == null)
	{
		loadCarePlans(false);
		openClinicalNote();
		removeUncheckedCarePlans();
		form.setMode(FormMode.VIEW);
	}
	else if (form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.NEW))
	{
		newClinicalNote();
		loadCarePlans(true);
		form.setMode(FormMode.EDIT);
	}
	else if (form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.UPDATE))
	{
		loadCarePlans(false);
		openClinicalNote();
		removeUncheckedCarePlans();
		form.setMode(FormMode.EDIT);
		form.cmbNoteType().setEnabled(false);
		form.gridCarePlan().setReadOnly(true);
	}
}
 
Example 32
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onBtnUpdateClick() throws ims.framework.exceptions.PresentationLogicException
{
	form.setMode(FormMode.EDIT);
	
	showHideCustomComponent(form.customControlAuthoring(), Boolean.FALSE, false);

	form.richNotes().setEnabled(true);
	form.btnClose().setVisible(false);
	
	if (isDialog())
		form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);
	if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() &&
			validationIPMode(form.getGlobalContext().Clinical.getCurrentClinicalNote().getCurrentStatus()))
	{
		form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);
	}
}
 
Example 33
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void editClinicalNote()
{
	selectClinicalNoteInGlobalContext();

	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE))
		engine.open(form.getForms().Therapies.SOAPNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.TLT_NOTE))
		engine.open(form.getForms().Clinical.TherapiesNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNote().booleanValue())
	{
		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
	}
	else
		engine.open(form.getForms().Clinical.ClinicalNotesDialog);

}
 
Example 34
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void reviewClinicalNote()
{
	selectClinicalNoteInGlobalContext();

	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.REVIEW);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE))
		engine.open(form.getForms().Therapies.SOAPNoteDialog);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.TLT_NOTE))
		engine.open(form.getForms().Clinical.TherapiesNoteDialog);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP))
		engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP))
		engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALCLINICALNOTE))
		engine.open(form.getForms().Clinical.ClinicalNotesDialog);
}
 
Example 35
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void validateClinicalNote()
{
	selectClinicalNoteInGlobalContext();

	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE))
		engine.open(form.getForms().Therapies.SOAPNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.TLT_NOTE))
	{
		engine.open(form.getForms().Clinical.TherapiesNoteDialog);
	}
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNote().booleanValue())
	{
		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);

		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
	}
	else
		engine.open(form.getForms().Clinical.ClinicalNotesDialog);

	// engine.open(form.getForms().Clinical.ClinicalNoteDrawing);
}
 
Example 36
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onBtnUpdateClick() throws ims.framework.exceptions.PresentationLogicException
{
	form.setMode(FormMode.EDIT);
	
	showHideCustomComponent(form.customControlAuthoring(), Boolean.FALSE, false);
	
	if (isDialog())
	{
		form.btnClose().setVisible(false);
		form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	}
	
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);
	form.btnClose().setEnabled(false);
	if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() &&
			validationIPMode(form.getGlobalContext().Clinical.getCurrentClinicalNote().getCurrentStatus()))
	{
		form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);
	}
}
 
Example 37
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void enableFollowUpInstructions(boolean clearControls)
{
	if (form.getMode().equals(FormMode.EDIT) && !(form.getGlobalContext().Core.getClinicalNotingModeIsNotNull() && form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.REVIEW)))
	{
		OpdFollowUp followUp = form.lyrTabs().tabOPDNote().cmbFollowUp().getValue();
		boolean enablefollowUpControls = true;
		if (followUp != null && followUp.equals(OpdFollowUp.DISCHARGEDFROMCLINIC))
			enablefollowUpControls = false;

		form.lyrTabs().tabOPDNote().cmbReview().setEnabled(enablefollowUpControls);
		form.lyrTabs().tabOPDNote().intReview().setEnabled(enablefollowUpControls);
		form.lyrTabs().tabOPDNote().richTextInstructions().setEnabled(enablefollowUpControls);
		if (enablefollowUpControls == false && clearControls)
		{
			form.lyrTabs().tabOPDNote().cmbReview().setValue(null);
			form.lyrTabs().tabOPDNote().intReview().setValue(null);
			form.lyrTabs().tabOPDNote().richTextInstructions().setValue("");
			form.lyrTabs().tabOPDNote().cmbReview().setFocus();
		}
	}
}
 
Example 38
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onBtnUpdateOPNotesClick() throws PresentationLogicException
{
	form.setMode(FormMode.EDIT);

	showHideCustomComponent(form.lyrTabs().tabOPDNote().customControlOPAuthoring(), Boolean.FALSE, false);

	setRichBoxControls(true);
	form.lyrTabs().tabOPDNote().cmbFollowUp().setEnabled(true);
	updateOPNotingButtonsStatus();

	form.lyrTabs().tabAssessment().setHeaderEnabled(false);
	form.lyrTabs().tabClinicalNotes().setHeaderEnabled(false);
	form.lyrTabs().tabOPDNote().setHeaderEnabled(true);
	form.lyrTabs().tabDetails().setHeaderEnabled(false);
	form.lyrTabs().tabDrawing().setHeaderEnabled(false);
	//---------------------------------
	form.lyrTabs().tabOPDNote().customControlOPAuthoring().setEnabledAuthoringHCP(true);
	form.lyrTabs().tabOPDNote().customControlOPAuthoring().setEnabledDateTime(true);
	form.lyrTabs().tabOPDNote().customControlOPAuthoring().setIsRequiredPropertyToControls(true);
	//-----------------------------------
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);
	if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() && validationOPMode(form.getGlobalContext().Clinical.getCurrentClinicalNote().getCurrentStatus()))
	{
		form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);
	}
}
 
Example 39
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onBtnUpdateClick() throws ims.framework.exceptions.PresentationLogicException
{
	form.setMode(FormMode.EDIT);
	
	showHideCustomComponent(form.customControlAuthoring(), Boolean.FALSE, false);
	
	form.richNotes().setEnabled(true);
	form.btnClose().setVisible(false);
	
	if (isDialog())
		form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);
	if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() &&
			validationIPMode(form.getGlobalContext().Clinical.getCurrentClinicalNote().getCurrentStatus()))
	{
		form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);
	}
}
 
Example 40
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void correctClinicalNote()
{
	selectClinicalNoteInGlobalContext();

	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.CORRECTION);
	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE))
		engine.open(form.getForms().Therapies.SOAPNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.TLT_NOTE))
		engine.open(form.getForms().Clinical.TherapiesNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNote().booleanValue())
	{
		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
	}
	else
		engine.open(form.getForms().Clinical.ExtendedClinicalNotesDialog);
}
 
Example 41
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void newClinicalNote()
	{
		form.getGlobalContext().Core.setClinicalNotesShort(null);
		form.getGlobalContext().Clinical.setCurrentClinicalNote(null);
		form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
		form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.NEW);
		
		//WDEV-14616
		form.getLocalContext().setcontextMenuSelected(ims.clinical.vo.enums.ExtendedPatientClinicalNotes_ContextMenuSelected.ADD);

		engine.open(form.getForms().Clinical.ExtendedCarePlanClinicalNotesDialog);

//		if (engine.getFormName().equals(form.getForms().Clinical.ExtendedPatientClinicalNotesCarePlansList))
//			engine.open(form.getForms().Clinical.ExtendedCarePlanClinicalNotesDialog);
//		else
//			engine.open(form.getForms().Clinical.ExtendedClinicalNotesDialog);
	}
 
Example 42
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void open()
{
	if (form.getGlobalContext().Core.getClinicalNotingMode() == null)
	{
		loadCarePlans(false);
		openClinicalNote();
		removeUncheckedCarePlans();
		form.setMode(FormMode.VIEW);
	}
	else if (form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.NEW))
	{
		newClinicalNote();
		loadCarePlans(true);
		form.setMode(FormMode.EDIT);
	}
	else if (form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.UPDATE))
	{
		loadCarePlans(false);
		openClinicalNote();
		removeUncheckedCarePlans();
		form.setMode(FormMode.EDIT);
		form.cmbNoteType().setEnabled(false);
		form.gridCarePlan().setReadOnly(true);
	}
}
 
Example 43
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
protected void onBtnUpdateClick() throws ims.framework.exceptions.PresentationLogicException
{
	form.setMode(FormMode.EDIT);
	
	showHideCustomComponent(form.customControlAuthoring(), Boolean.FALSE, false);

	form.richNotes().setEnabled(true);
	form.btnClose().setVisible(false);
	
	if (isDialog())
		form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);
	if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() &&
			validationIPMode(form.getGlobalContext().Clinical.getCurrentClinicalNote().getCurrentStatus()))
	{
		form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);
	}
}
 
Example 44
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void editClinicalNote()
{
	selectClinicalNoteInGlobalContext();

	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE))
		engine.open(form.getForms().Therapies.SOAPNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.TLT_NOTE))
		engine.open(form.getForms().Clinical.TherapiesNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNote().booleanValue())
	{
		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
	}
	else
		engine.open(form.getForms().Clinical.ClinicalNotesDialog);

}
 
Example 45
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void reviewClinicalNote()
{
	selectClinicalNoteInGlobalContext();

	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.REVIEW);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE))
		engine.open(form.getForms().Therapies.SOAPNoteDialog);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.TLT_NOTE))
		engine.open(form.getForms().Clinical.TherapiesNoteDialog);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP))
		engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP))
		engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALCLINICALNOTE))
		engine.open(form.getForms().Clinical.ClinicalNotesDialog);
}
 
Example 46
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void validateClinicalNote()
{
	selectClinicalNoteInGlobalContext();

	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE))
		engine.open(form.getForms().Therapies.SOAPNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.TLT_NOTE))
	{
		engine.open(form.getForms().Clinical.TherapiesNoteDialog);
	}
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNote().booleanValue())
	{
		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);

		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
	}
	else
		engine.open(form.getForms().Clinical.ClinicalNotesDialog);

	// engine.open(form.getForms().Clinical.ClinicalNoteDrawing);
}
 
Example 47
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void openAsDialog() throws PresentationLogicException
{
	form.setMode(FormMode.EDIT);
	
	if(form.getGlobalContext().Core.getClinicalNotingModeIsNotNull() && 
		form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.REVIEW))
	{
		form.chkForReview().setVisible(false);
		form.cmbDiscipline().setVisible(false);
		form.lblDiscipline().setVisible(false);
		form.setcustomControlReviewedVisible(true);
		form.customControlReviewed().setLabels(AuthoringLabelType.REVIEWING);
		form.chkMarkAsReviewed().setVisible(true);
		form.chkMarkAsReviewed().setValue(true);
		
		onChkMarkAsReviewedValueChanged();
		
		if (! form.getGlobalContext().Clinical.getCurrentClinicalNote().getReviewingHCPIsNotNull() && 
				! form.getGlobalContext().Clinical.getCurrentClinicalNote().getReviewingDateTimeIsNotNull())
		{
			enabledCustomReviewed(Boolean.TRUE);
		}
	}

	enableCustomReviewed(false);
	
	form.btnClose().setVisible(false);
}
 
Example 48
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void validateClinicalNote()
{
	selectClinicalNoteInGlobalContext();
	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);
	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull()
			&& form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE) )
	{
		engine.open(form.getForms().Therapies.SOAPNoteDialog);
	}
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull()
			&& form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.TLT_NOTE) )
	{
		engine.open(form.getForms().Clinical.TherapiesNoteDialog);
	}
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNoteIsNotNull()
		&& form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNote().booleanValue())
	{
		if ( form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull()
			&& form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP) )
				engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);			
	
		if ( form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull()
			&& form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP) )
				engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
	}
	else
		engine.open(form.getForms().Clinical.ClinicalNotesDialog);
}
 
Example 49
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void reviewClinicalNote() 
{
	selectClinicalNoteInGlobalContext();
	
	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.REVIEW);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull()
			&& form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE) )
				engine.open(form.getForms().Therapies.SOAPNoteDialog);
		
	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull()
			&& form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.TLT_NOTE) )
				engine.open(form.getForms().Clinical.TherapiesNoteDialog);
		
	if ( form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull()
		&& form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP) )
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
	
	if ( form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull()
		&& form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP) )
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
	
	if ( form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull()
		&& form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALCLINICALNOTE) )
			engine.open(form.getForms().Clinical.ClinicalNotesDialog);
}
 
Example 50
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void editClinicalNote() 
{
	selectClinicalNoteInGlobalContext();
	
	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);
	
	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull()
		&& form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE) )
			engine.open(form.getForms().Therapies.SOAPNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull()
		&& form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.TLT_NOTE) )
			engine.open(form.getForms().Clinical.TherapiesNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNoteIsNotNull()
		&& form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNote().booleanValue())
	{
		if ( form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull()
			&& form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP) )
					engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
				
		if ( form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull()
			&& form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP) )
					engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
	}
	else
		engine.open(form.getForms().Clinical.ClinicalNotesDialog);
}
 
Example 51
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
protected void onBtnUpdateSOAPClick() throws PresentationLogicException
{
	form.setMode(FormMode.EDIT);

	showHideCustomComponent(form.lyrTabs().tabClinicalNotes().customControlClinicalNotesAuthoiring(), Boolean.FALSE, false);

	setTextBoxControls(true);

	/*
	 * if(form.getGlobalContext().Core.getClinicalNotingModeIsNotNull() &&
	 * form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.REVIEW))
	 * setTextBoxControls(false);
	 */
	form.lyrTabs().tabAssessment().setHeaderEnabled(false);
	form.lyrTabs().tabClinicalNotes().setHeaderEnabled(true);
	form.lyrTabs().tabOPDNote().setHeaderEnabled(false);
	form.lyrTabs().tabDetails().setHeaderEnabled(false);
	form.lyrTabs().tabDrawing().setHeaderEnabled(false);
	isBtnCNCloseVisible(false);

	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);
	// TODO
	if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() && validationIPMode(form.getGlobalContext().Clinical.getCurrentClinicalNote().getCurrentStatus()))
	{
		form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);
	}
}
 
Example 52
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void editClinicalNote()
{
	selectClinicalNoteInGlobalContext();

	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.UPDATE);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE))
		engine.open(form.getForms().Therapies.SOAPNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.TLT_NOTE))
		engine.open(form.getForms().Clinical.TherapiesNoteDialog);
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNote().booleanValue())
	{
		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
		if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull() && form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP))
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
	}
	else
	{
		if (engine.getFormName().equals(form.getForms().Clinical.ExtendedPatientClinicalNotesCarePlansList))
			engine.open(form.getForms().Clinical.ExtendedCarePlanClinicalNotesDialog);
		else
			engine.open(form.getForms().Clinical.ExtendedClinicalNotesDialog);
	}

}
 
Example 53
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void initialise()
{
	form.getLocalContext().setCarePlans(domain.listCarePlans(form.getGlobalContext().Core.getCurrentCareContext()));

	form.btnUpdateActions().setVisible(ConfigFlag.GEN.CARE_PLAN_FUNCTIONALITY_TYPE.getValue().toString().equals("CCO"));
	form.btnUpdateActions().setEnabled(areCarePlansSelected());

	form.chkConfirmed().setEnabled(false);
	
	if (form.getGlobalContext().Core.getClinicalNotingModeIsNotNull()
		&& (form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.NEW)
			|| form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.UPDATE) ) )
	{
		if(engine.hasRight(AppRight.CAN_CONFIRM_NURSING_DOCUMENTATION))
			form.chkConfirmed().setEnabled(true);
	}
	form.gridCarePlan().setReadOnly(false);
	form.gridCarePlan().setEnabled(true);

	form.ccAuthoredBy().setIsRequiredPropertyToControls(ConfigFlag.GEN.CARE_PLAN_FUNCTIONALITY_TYPE.getValue().toString().equals("CCO") ? false : true);
	
	
	form.ccConfirmedBYMOS().setEnabled(form.chkConfirmed().getValue());
	form.dtimConfirmedBY().setEnabled(form.chkConfirmed().getValue());

	form.lblCorrection().setVisible(false);
	form.txtCorrection().setVisible(false);
	form.ccConfirmedBYMOS().isRequired(true);
}
 
Example 54
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private String[] getUiErrors() 
{
	ArrayList<String> errors = new ArrayList<String>();
	
	if (form.customControlAuthoring().getValue() != null
		&& (form.customControlAuthoring().getValue().getAuthoringHcp() == null
			|| (form.customControlAuthoring().getValue().getAuthoringHcpIsNotNull()
			&& form.customControlAuthoring().getValue().getAuthoringHcp().getID_Hcp() == null)))
			errors.add("Authoring HCP is mandatory.");

	if (form.ccRecordingUser().getValue() == null)
		errors.add("Recording HCP is mandatory.");

	if(form.getGlobalContext().Core.getClinicalNotingModeIsNotNull()
		&& form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.CORRECTION)
		&& form.txtCorrectionReason().getValue() == null)
			errors.add("Correction Reason is a required field.");
	
	if(form.cmbNoteType().getValue() == null)
	{
		errors.add("Note Type is mandatory");
	}
	
	if (errors.size() > 0) 
	{
		String[] searchErrors = new String[errors.size()];
		errors.toArray(searchErrors);
		engine.showErrors("Invalid Clinical Notes record", searchErrors);
		return searchErrors;
	}
	return null;
}
 
Example 55
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void openAsDialog() throws PresentationLogicException
{
	form.setMode(FormMode.EDIT);
	
	if(form.getGlobalContext().Core.getClinicalNotingModeIsNotNull() && 
		form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.REVIEW))
	{
		form.chkForReview().setVisible(false);
		form.cmbDiscipline().setVisible(false);
		form.lblDiscipline().setVisible(false);
		form.setcustomControlReviewedVisible(true);
		form.customControlReviewed().setLabels(AuthoringLabelType.REVIEWING);
		form.chkMarkAsReviewed().setVisible(true);
		form.chkMarkAsReviewed().setValue(true);
		
		onChkMarkAsReviewedValueChanged();
		
		if (! form.getGlobalContext().Clinical.getCurrentClinicalNote().getReviewingHCPIsNotNull() && 
				! form.getGlobalContext().Clinical.getCurrentClinicalNote().getReviewingDateTimeIsNotNull())
		{
			enabledCustomReviewed(Boolean.TRUE);
		}
	}

	enableCustomReviewed(false);
	
	form.btnClose().setVisible(false);
}
 
Example 56
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private ClinicalNotingMode getScreenMode()
{
	if (form.getLocalContext().getClinicalContactForm().booleanValue())
	{
		if (form.getLocalContext().getClinicalNotesIsNotNull())
			return ClinicalNotingMode.UPDATE;
		else
			return ClinicalNotingMode.NEW;
	}

	return form.getGlobalContext().Core.getClinicalNotingMode();
}
 
Example 57
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void openAsDialog() throws PresentationLogicException
{
	form.setMode(FormMode.EDIT);
	
	if(form.getGlobalContext().Core.getClinicalNotingModeIsNotNull() && 
		form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.REVIEW))
	{
		form.chkForReview().setVisible(false);
		form.cmbDiscipline().setVisible(false);
		form.lblDiscipline().setVisible(false);
		form.setcustomControlReviewedVisible(true);
		form.customControlReviewed().setLabels(AuthoringLabelType.REVIEWING);
		form.chkMarkAsReviewed().setVisible(true);
		form.chkMarkAsReviewed().setValue(true);
		
		onChkMarkAsReviewedValueChanged();
		
		if (! form.getGlobalContext().Clinical.getCurrentClinicalNote().getReviewingHCPIsNotNull() && 
				! form.getGlobalContext().Clinical.getCurrentClinicalNote().getReviewingDateTimeIsNotNull())
		{
			enabledCustomReviewed(Boolean.TRUE);
		}
	}

	enableCustomReviewed(false);
	
	form.btnClose().setVisible(false);
}
 
Example 58
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void openAsDialog() throws PresentationLogicException
{
	form.setMode(FormMode.EDIT);
	
	if(form.getGlobalContext().Core.getClinicalNotingModeIsNotNull() && 
		form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.REVIEW))
	{
		form.chkForReview().setVisible(false);
		form.cmbDiscipline().setVisible(false);
		form.lblDiscipline().setVisible(false);
		form.setcustomControlReviewedVisible(true);
		form.customControlReviewed().setLabels(AuthoringLabelType.REVIEWING);
		form.chkMarkAsReviewed().setVisible(true);
		form.chkMarkAsReviewed().setValue(true);
		
		onChkMarkAsReviewedValueChanged();
		
		if (! form.getGlobalContext().Clinical.getCurrentClinicalNote().getReviewingHCPIsNotNull() && 
				! form.getGlobalContext().Clinical.getCurrentClinicalNote().getReviewingDateTimeIsNotNull())
		{
			enabledCustomReviewed(Boolean.TRUE);
		}
	}

	enableCustomReviewed(false);
	
	form.btnClose().setVisible(false);
}
 
Example 59
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void validateClinicalNote()
{
	selectClinicalNoteInGlobalContext();
	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.VALIDATE);
	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull()
			&& form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE) )
	{
		engine.open(form.getForms().Therapies.SOAPNoteDialog);
	}
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull()
			&& form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.TLT_NOTE) )
	{
		engine.open(form.getForms().Clinical.TherapiesNoteDialog);
	}
	else if (form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNoteIsNotNull()
		&& form.getGlobalContext().Core.getClinicalNotesShort().getIsDerivedNote().booleanValue())
	{
		if ( form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull()
			&& form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP) )
				engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);			
	
		if ( form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull()
			&& form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP) )
				engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
	}
	else
		engine.open(form.getForms().Clinical.ClinicalNotesDialog);
}
 
Example 60
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void reviewClinicalNote() 
{
	selectClinicalNoteInGlobalContext();
	
	form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.EDIT);
	form.getGlobalContext().Core.setClinicalNotingMode(ClinicalNotingMode.REVIEW);

	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull()
			&& form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE) )
				engine.open(form.getForms().Therapies.SOAPNoteDialog);
		
	if (form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull()
			&& form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.TLT_NOTE) )
				engine.open(form.getForms().Clinical.TherapiesNoteDialog);
		
	if ( form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull()
		&& form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP) )
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
	
	if ( form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull()
		&& form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP) )
			engine.open(form.getForms().Clinical.ClinicalNoteDrawingDialog);
	
	if ( form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNoteIsNotNull()
		&& form.getGlobalContext().Core.getClinicalNotesShort().getSourceOfNote().equals(SourceOfNote.CLINICALCLINICALNOTE) )
			engine.open(form.getForms().Clinical.ClinicalNotesDialog);
}