Java 类ims.core.vo.enums.PatientJourneyAction 实例源码
项目:openMAXIMS
文件:Logic.java
private void initialize(Object[] args)
{
if (args != null)
{
if (args.length > 0 && args[0] != null)
{
if (args[0] instanceof Integer)
form.getLocalContext().setDialogFunctionMode((Integer) args[0]);
}
if (args.length > 1 && args[1] != null && args[1] instanceof PatientJourneyAction)
{
form.getLocalContext().setCommentType((PatientJourneyAction) args[1]);
}
if (args.length > 2 && args[2] != null && args[2] instanceof PatientJourneyEventInterfaceVo)
{
form.getLocalContext().setPreSelectedEventRef((PatientJourneyEventInterfaceVo) args[2]);
}
}
form.getLocalContext().setCurrentComment(null);
}
项目:openMAXIMS
文件:Logic.java
private int getCommentType()
{
GroupCommentTypesEnumeration commentType = form.lyrCommentWizard().tabPageDetails().GroupCommentTypes().getValue();
if (GroupCommentTypesEnumeration.rdoPathway.equals(commentType))
{
form.getLocalContext().setCommentType(PatientJourneyAction.ADDPATHWAYCOMMENT);
}
else if (GroupCommentTypesEnumeration.rdoEvent.equals(commentType))
{
form.getLocalContext().setCommentType(PatientJourneyAction.ADDEVENTCOMMENT);
}
else if (GroupCommentTypesEnumeration.rdoTarget.equals(commentType))
{
form.getLocalContext().setCommentType(PatientJourneyAction.ADDEVENTTOTARGET);
}
return 0;
}
项目:openMAXIMS
文件:Logic.java
private void setCommentType(PatientJourneyCommentVo currentComment, PatientJourneyAction patientJourneyAction, boolean isNewCommentMode, Boolean isViewCommentMode, Boolean isValidateMode)
{
CommentLevel currentCommentLevel = currentComment != null && currentComment.getCommentLevelIsNotNull() ? currentComment.getCommentLevel() : null;
if (PatientJourneyAction.ADDPATHWAYCOMMENT.equals(patientJourneyAction) || isValidateMode || (isViewCommentMode && CommentLevel.PATHWAY.equals(currentCommentLevel)))
{
form.lyrCommentWizard().tabPageDetails().GroupCommentTypes().setValue(GroupCommentTypesEnumeration.rdoPathway);
}
else if (PatientJourneyAction.ADDEVENTCOMMENT.equals(patientJourneyAction) || (isViewCommentMode && CommentLevel.EVENT.equals(currentCommentLevel)))
{
form.lyrCommentWizard().tabPageDetails().GroupCommentTypes().setValue(GroupCommentTypesEnumeration.rdoEvent);
form.getLocalContext().setPreSelectedEventRef(currentComment != null && currentComment.getLinkedEventIsNotNull() ? currentComment.getLinkedEvent() : form.getLocalContext().getPreSelectedEventRef());
populateEvents(form.getLocalContext().getCurrentPathwayJourney(), form.getLocalContext().getPreSelectedEventRef());
}
else if (PatientJourneyAction.ADDTARGETCOMMENT.equals(patientJourneyAction) ||(isViewCommentMode && CommentLevel.TARGET.equals(currentCommentLevel)))
{
form.lyrCommentWizard().tabPageDetails().GroupCommentTypes().setValue(GroupCommentTypesEnumeration.rdoTarget);
form.getLocalContext().setPreSelectedTargetRef(currentComment != null && currentComment.getLinkedTargetIsNotNull() ? currentComment.getLinkedTarget() : form.getGlobalContext().Pathways.getSelectedPatientJourneyTargetRef());
populateTargets(form.getLocalContext().getCurrentPathwayJourney(), form.getLocalContext().getPreSelectedTargetRef());
}
getCommentType();
updateControlsState();
}
项目:openMAXIMS
文件:Logic.java
@Override
protected void onCcPatientJourneyValueChanged() throws PresentationLogicException
{
if (PatientJourneyAction.VIEWCLOCKHISTORY.equals(form.ccPatientJourney().getLastAction()))
{
form.getGlobalContext().Pathways.setSelectedPatientPathwayJourney(form.getLocalContext().getJourney());
engine.open(form.getForms().Pathways.PatientJourneyClock);
}
}
项目:openMAXIMS
文件:Logic.java
@Override
protected void onFormOpen(Object[] args) throws PresentationLogicException
{
initialise();
if (args != null && args.length > 0 && args[0] instanceof PatientJourneyAction && ((PatientJourneyAction) args[0]).equals(PatientJourneyAction.RECORDBREACHREASON))
open(true);
else
open(false);
}
项目:openMAXIMS
文件:Logic.java
private PatientJourneyTargetForPathwayCommentsVoCollection processTargets(PatientJourneyInterfaceVo selectedPatientPathwayJourney, PatientJourneyTargetRefVo preSelectedTargetRef)
{
if (selectedPatientPathwayJourney == null || selectedPatientPathwayJourney.getJourneyTargets() == null || selectedPatientPathwayJourney.getJourneyTargets().size() == 0)
return null;
if (form.getLocalContext().getPreSelectedTargetRef() == null && PatientJourneyAction.ADDTARGETCOMMENT.equals(form.getLocalContext().getCommentType()))
form.getLocalContext().setPreSelectedTargetRef(form.getGlobalContext().Pathways.getSelectedPatientJourneyTargetRef());
PatientJourneyJourneyTargetInterfaceVoCollection targets = (PatientJourneyJourneyTargetInterfaceVoCollection) selectedPatientPathwayJourney.getJourneyTargets().clone();
PatientJourneyTargetForPathwayCommentsVoCollection displayTargets = formatTargetsForDisplay(targets, form.getLocalContext().getPreSelectedTargetRef());
return displayTargets;
}
项目:AvoinApotti
文件:Logic.java
private void EditReadjustment()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.EDITREADJUSTMENT);
form.fireCustomControlValueChanged();
}
项目:AvoinApotti
文件:Logic.java
private void AddReadjustment()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.ADDREADJUSTMENT);
form.fireCustomControlValueChanged();
}
项目:AvoinApotti
文件:Logic.java
private void ViewClockHistory()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.VIEWCLOCKHISTORY);
form.fireCustomControlValueChanged();
}
项目:AvoinApotti
文件:Logic.java
private void AsociatePathway()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.CREATENEWPATHWAY);
form.fireCustomControlValueChanged();
}
项目:AvoinApotti
文件:Logic.java
private void addNewEventToTarget()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.ADDEVENTTOTARGET);
form.fireCustomControlValueChanged();
}
项目:AvoinApotti
文件:Logic.java
private void addNewEvent()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.CREATENEWEVENT);
form.fireCustomControlValueChanged();
}
项目:AvoinApotti
文件:Logic.java
public PatientJourneyAction getLastAction()
{
return form.getLocalContext().getLastAction();
}
项目:openMAXIMS
文件:Logic.java
private void removeTargetFromScope()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.REMOVETARGETFROMSCOPE);
form.fireCustomControlValueChanged();
}
项目:openMAXIMS
文件:Logic.java
private void recordBreachReason()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.RECORDBREACHREASON);
form.fireCustomControlValueChanged();
}
项目:openMAXIMS
文件:Logic.java
private void addTargetComment()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.ADDTARGETCOMMENT);
form.fireCustomControlValueChanged();
}
项目:openMAXIMS
文件:Logic.java
private void addEventComment()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.ADDEVENTCOMMENT);
form.fireCustomControlValueChanged();
}
项目:openMAXIMS
文件:Logic.java
private void addComment()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.ADDPATHWAYCOMMENT);
form.fireCustomControlValueChanged();
}
项目:openMAXIMS
文件:Logic.java
private void EditReadjustment()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.EDITREADJUSTMENT);
form.fireCustomControlValueChanged();
}
项目:openMAXIMS
文件:Logic.java
private void AddReadjustment()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.ADDREADJUSTMENT);
form.fireCustomControlValueChanged();
}
项目:openMAXIMS
文件:Logic.java
private void ViewClockHistory()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.VIEWCLOCKHISTORY);
form.fireCustomControlValueChanged();
}
项目:openMAXIMS
文件:Logic.java
private void AsociatePathway()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.CREATENEWPATHWAY);
form.fireCustomControlValueChanged();
}
项目:openMAXIMS
文件:Logic.java
private void addNewEventToTarget()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.ADDEVENTTOTARGET);
form.fireCustomControlValueChanged();
}
项目:openMAXIMS
文件:Logic.java
private void addNewEvent()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.CREATENEWEVENT);
form.fireCustomControlValueChanged();
}
项目:openMAXIMS
文件:Logic.java
public PatientJourneyAction getLastAction()
{
return form.getLocalContext().getLastAction();
}
项目:openMAXIMS
文件:Logic.java
@Override
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{
//WDEV-21179
form.lblProfile().setVisible(false);
form.cmbPatientJourney().setVisible(false);
form.btnView().setVisible(false);
//end WDEV-21179
//launched from worklist
if(form.getGlobalContext().Pathways.getSelectedPatientPathwayJourneyIsNotNull())
{
displayJourney();
if (args != null && args.length > 0 && args[0] instanceof Integer && VALIDATE_MODE.equals(args[0]))
{
engine.open(form.getForms().Pathways.PatientJourneyComment, new Object[] { VALIDATE_MODE, PatientJourneyAction.ADDPATHWAYCOMMENT, null});
}
else if (args != null && args.length > 0 && args[0] instanceof Integer && VIEW_LAST_COMMENT_MODE.equals(args[0]))
{
engine.open(form.getForms().Pathways.PatientJourneyComment, new Object[] { VIEW_LAST_COMMENT_MODE, null, null});
}
}
else
{
open();
if (!(form.getGlobalContext().Core.getPatientShortIsNotNull() && form.getGlobalContext().Pathways.getPatientJourneySearchCriteriaIsNotNull() && form.getGlobalContext().Core.getPatientShort().equals(form.getGlobalContext().Pathways.getPatientJourneySearchCriteria().getPatient())) ||
(form.getGlobalContext().RefMan.getCatsReferralIsNotNull() &&
!(form.getGlobalContext().Pathways.getPatientJourneySearchCriteriaIsNotNull() && form.getGlobalContext().RefMan.getCatsReferral().equals(form.getGlobalContext().Pathways.getPatientJourneySearchCriteria().getCatsReferral())) ))
form.getGlobalContext().Pathways.setPatientJourneySearchCriteria(null);
if (form.getGlobalContext().Pathways.getPatientJourneySearchCriteriaIsNotNull())
{
setSearchCriteria(form.getGlobalContext().Pathways.getPatientJourneySearchCriteria());
onBtnViewClick();
}
}
// WDEV-20119
form.btnSetCancerPathway().setVisible(false);
viewSelectedJourney();//WDEV-22775
updateLinkButtons(args);
//WDEV-18414
// form.imbComments().setEnabled(false);
// form.imbComments().setTooltip(null);
}
项目:openMAXIMS
文件:Logic.java
@Override
protected void onBtnValidateClick() throws PresentationLogicException
{
engine.open(form.getForms().Pathways.PatientJourneyComment, new Object[] { VALIDATE_MODE, PatientJourneyAction.ADDPATHWAYCOMMENT, null});
}
项目:openMAXIMS
文件:Logic.java
@Override
protected void onBtnNewBreachClick() throws PresentationLogicException
{
engine.open(form.getForms().Pathways.BreachReasonListDialog, new Object[] {PatientJourneyAction.RECORDBREACHREASON});
}
项目:openMAXIMS
文件:Logic.java
private void updateControlsState()
{
setCommentsLabel(form.lyrCommentWizard().tabPageDetails().GroupCommentTypes().getValue());
Boolean isNewCommentMode = NEW_COMMENT_MODE.equals(form.getLocalContext().getDialogFunctionMode()) ? true : false;
//Events grid
Boolean displayEventGrid = form.getLocalContext().getCommentTypeIsNotNull() && PatientJourneyAction.ADDEVENTCOMMENT.equals(form.getLocalContext().getCommentType());
form.lyrCommentWizard().tabPageDetails().lblEventHeader().setVisible(displayEventGrid);
form.lyrCommentWizard().tabPageDetails().grdEvents().setVisible(displayEventGrid);
form.lyrCommentWizard().tabPageDetails().grdEvents().setReadOnly(isNewCommentMode ? false : true);
//Targets grid
Boolean displayTargetGrid = form.getLocalContext().getCommentTypeIsNotNull() && PatientJourneyAction.ADDEVENTTOTARGET.equals(form.getLocalContext().getCommentType());
form.lyrCommentWizard().tabPageDetails().lblTargetHeader().setVisible(displayTargetGrid);
form.lyrCommentWizard().tabPageDetails().grdTargets().setVisible(displayTargetGrid);
form.lyrCommentWizard().tabPageDetails().grdTargets().setReadOnly(isNewCommentMode ? false : true);
if(FormMode.EDIT.equals(form.getMode()))
{
form.lyrCommentWizard().tabPageDetails().GroupCommentTypes().setEnabled(!VALIDATE_MODE.equals(form.getLocalContext().getDialogFunctionMode()));
form.lyrCommentWizard().tabPageDetails().txtComments().setEnabled(FormMode.EDIT.equals(form.getMode()));
form.lyrCommentWizard().tabPageDetails().txtComments().setRequired(!VALIDATE_MODE.equals(form.getLocalContext().getDialogFunctionMode()));//WDEV-20385
}
form.btnSave().setVisible(FormMode.EDIT.equals(form.getMode()));
form.btnCancel().setVisible(FormMode.EDIT.equals(form.getMode()));
form.btnClose().setVisible(FormMode.VIEW.equals(form.getMode()));
//Comment Type radio buttons
form.lyrCommentWizard().tabPageDetails().GroupCommentTypes().setEnabled(NEW_COMMENT_MODE.equals(form.getLocalContext().getDialogFunctionMode()));
//RTT Status Details
Boolean displayCurrentRTTStatus = Boolean.TRUE.equals(form.getLocalContext().getDisplayRttStatusDetailsField());
form.lyrCommentWizard().tabPageDetails().txtRttCurrentStatus().setVisible(displayCurrentRTTStatus);
form.lyrCommentWizard().tabPageDetails().txtRttCurrentStatus().setEnabled(false);
form.lyrCommentWizard().tabPageDetails().lblRTTCurrentStatus().setVisible(displayCurrentRTTStatus);
//Pathway Name Details
form.lyrCommentWizard().tabPageDetails().txtPathwayName().setEnabled(false);
//6. When adding a validation comment a user must enter a validation date or reason as to why there is no more validation
Boolean noNextValidationDate = FormMode.EDIT.equals(form.getMode()) && form.lyrCommentWizard().tabPageDetails().dteNextValidation().getValue() == null;
form.lyrCommentWizard().tabPageDetails().txtReason().setEnabled(noNextValidationDate);
form.lyrCommentWizard().tabPageDetails().cmbReason().setEnabled(noNextValidationDate);
form.lyrCommentWizard().tabPageDetails().cmbReason().setRequired(noNextValidationDate);
//Correct and RIE buttons
form.btnRIE().setVisible(FormMode.VIEW.equals(form.getMode()) && form.getLocalContext().getCurrentCommentIsNotNull() && !Boolean.TRUE.equals(form.getLocalContext().getCurrentComment().getIsRIE()));
form.btnCorrect().setVisible(FormMode.VIEW.equals(form.getMode()));
form.btnCorrect().setEnabled(FormMode.VIEW.equals(form.getMode()) && form.getLocalContext().getCurrentCommentIsNotNull() && !Boolean.TRUE.equals(form.getLocalContext().getCurrentComment().getIsRIE()) && !Boolean.TRUE.equals(form.getLocalContext().getCurrentComment().getCorrected()));
//correction details
Boolean displayCorrection = form.getLocalContext().getCurrentCommentIsNotNull() && Boolean.TRUE.equals(form.getLocalContext().getCurrentComment().getCorrected());
form.lyrCommentWizard().tabPageDetails().lblCorrection().setVisible(displayCorrection);
form.lyrCommentWizard().tabPageDetails().txtCorrection().setVisible(displayCorrection);
form.lyrCommentWizard().tabPageDetails().txtCorrection().setEnabled(false);
form.lyrCommentWizard().tabPageDetails().lblCorrectedBy().setVisible(displayCorrection);
form.lyrCommentWizard().tabPageDetails().lblCorrectedTime().setVisible(displayCorrection);
form.lyrCommentWizard().tabPageDetails().lblCorrectedByValue().setVisible(displayCorrection);
form.lyrCommentWizard().tabPageDetails().lblCorrectedTimeValue().setVisible(displayCorrection);
}
项目:openMAXIMS
文件:Logic.java
@Override
protected void OnBtnValidate() throws ims.framework.exceptions.PresentationLogicException
{
engine.open(form.getForms().Pathways.PatientJourneyComment, new Object[] { VALIDATE_MODE, PatientJourneyAction.ADDPATHWAYCOMMENT, null});
}
项目:openMAXIMS
文件:Logic.java
private void EditReadjustment()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.EDITREADJUSTMENT);
form.fireCustomControlValueChanged();
}
项目:openMAXIMS
文件:Logic.java
private void AddReadjustment()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.ADDREADJUSTMENT);
form.fireCustomControlValueChanged();
}
项目:openMAXIMS
文件:Logic.java
private void ViewClockHistory()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.VIEWCLOCKHISTORY);
form.fireCustomControlValueChanged();
}
项目:openMAXIMS
文件:Logic.java
private void AsociatePathway()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.CREATENEWPATHWAY);
form.fireCustomControlValueChanged();
}
项目:openMAXIMS
文件:Logic.java
private void addNewEventToTarget()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.ADDEVENTTOTARGET);
form.fireCustomControlValueChanged();
}
项目:openMAXIMS
文件:Logic.java
private void addNewEvent()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.CREATENEWEVENT);
form.fireCustomControlValueChanged();
}
项目:openMAXIMS
文件:Logic.java
public PatientJourneyAction getLastAction()
{
return form.getLocalContext().getLastAction();
}
项目:openmaxims-linux
文件:Logic.java
private void EditReadjustment()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.EDITREADJUSTMENT);
form.fireCustomControlValueChanged();
}
项目:openmaxims-linux
文件:Logic.java
private void AddReadjustment()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.ADDREADJUSTMENT);
form.fireCustomControlValueChanged();
}
项目:openmaxims-linux
文件:Logic.java
private void ViewClockHistory()
{
form.getLocalContext().setLastAction(ims.core.vo.enums.PatientJourneyAction.VIEWCLOCKHISTORY);
form.fireCustomControlValueChanged();
}