Java 类ims.core.vo.lookups.SourceOfNote 实例源码

项目:AvoinApotti    文件:Logic.java   
private boolean checkClinicalNoteForCurrentClinicalNote() throws FormOpenException
{
    if (engine.getFormName() != null && form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() && form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNoteIsNotNull() && domain.getHcpUser()!=null) //WDEV-19027  //temporary
    {

            if (form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP))
            {
                openClinicalNotes();
                checkForDiscipline();
            }
            else if (form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP))
            {
                checkForDiscipline();
                openOPClinicalNotes();
            }
            else
                throw new FormOpenException("There is a clinical note of a different type already recorded on the system for this clincal contact");

            return true;
    }
    return false;
}
项目:AvoinApotti    文件:Logic.java   
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);
}
项目:AvoinApotti    文件:Logic.java   
private void openNotingDetails() throws PresentationLogicException
{
    clearDetails();
    form.setMode(FormMode.VIEW);

    if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull()&& form.getGlobalContext().Clinical.getCurrentClinicalNote()==null)
        setCurrentClinicalNote();

    if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull())
        form.getGlobalContext().Clinical.setCurrentClinicalNote(domain.getClinicalNote(form.getGlobalContext().Clinical.getCurrentClinicalNote()));

    form.getLocalContext().setclinicalNotesVo(form.getGlobalContext().Clinical.getCurrentClinicalNote());
    if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull())
    {
        if (form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNoteIsNotNull())
        {
            if (!form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNote().equals(SourceOfNote.CLINICALCLINICALNOTE) )
                throw new FormOpenException("There is a clinical note of a different type already recorded on the system for this clincal contact");
        }

        populateScreenControls(form.getGlobalContext().Clinical.getCurrentClinicalNote());
    }   
}
项目:AvoinApotti    文件:Logic.java   
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);

}
项目:AvoinApotti    文件:Logic.java   
private void viewClinicalNote()
{
    selectClinicalNoteInGlobalContext();

    form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);
    form.getGlobalContext().Core.setClinicalNotingMode(null);

    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
    {
        form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);
        engine.open(form.getForms().Clinical.ClinicalNotesDialog);
    }

}
项目:AvoinApotti    文件:Logic.java   
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);
}
项目:AvoinApotti    文件:Logic.java   
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);
}
项目:openMAXIMS    文件:Logic.java   
private boolean checkClinicalNoteForCurrentClinicalNote() throws FormOpenException
{
    if (engine.getFormName() != null && form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() && form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNoteIsNotNull() && domain.getHcpUser()!=null) //WDEV-19027  //temporary
    {

            if (form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP))
            {
                openClinicalNotes();
                checkForDiscipline();
            }
            else if (form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP))
            {
                checkForDiscipline();
                openOPClinicalNotes();
            }
            else
                throw new FormOpenException("There is a clinical note of a different type already recorded on the system for this clincal contact");

            return true;
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
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);
}
项目:openMAXIMS    文件:Logic.java   
private void openNotingDetails() throws PresentationLogicException
{
    clearDetails();
    form.setMode(FormMode.VIEW);

    if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull()&& form.getGlobalContext().Clinical.getCurrentClinicalNote()==null)
        setCurrentClinicalNote();

    if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull())
        form.getGlobalContext().Clinical.setCurrentClinicalNote(domain.getClinicalNote(form.getGlobalContext().Clinical.getCurrentClinicalNote()));

    form.getLocalContext().setclinicalNotesVo(form.getGlobalContext().Clinical.getCurrentClinicalNote());
    if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull())
    {
        if (form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNoteIsNotNull())
        {
            if (!form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNote().equals(SourceOfNote.CLINICALCLINICALNOTE) )
                throw new FormOpenException("There is a clinical note of a different type already recorded on the system for this clincal contact");
        }

        populateScreenControls(form.getGlobalContext().Clinical.getCurrentClinicalNote());
    }   
}
项目:openMAXIMS    文件:Logic.java   
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);

}
项目:openMAXIMS    文件:Logic.java   
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);
}
项目:openMAXIMS    文件:Logic.java   
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);
}
项目:openMAXIMS    文件:Logic.java   
private boolean checkClinicalNoteForCurrentClinicalNote() throws FormOpenException
{
    if (engine.getFormName() != null && form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() && form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNoteIsNotNull() && domain.getHcpUser()!=null) //WDEV-19027  //temporary
    {

            if (form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP))
            {
                openClinicalNotes();
                checkForDiscipline();
            }
            else if (form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP))
            {
                checkForDiscipline();
                openOPClinicalNotes();
            }
            else
                throw new FormOpenException("There is a clinical note of a different type already recorded on the system for this clincal contact");

            return true;
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
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);
}
项目:openMAXIMS    文件:Logic.java   
private void openNotingDetails() throws PresentationLogicException
{
    clearDetails();
    form.setMode(FormMode.VIEW);

    if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull()&& form.getGlobalContext().Clinical.getCurrentClinicalNote()==null)
        setCurrentClinicalNote();

    if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull())
        form.getGlobalContext().Clinical.setCurrentClinicalNote(domain.getClinicalNote(form.getGlobalContext().Clinical.getCurrentClinicalNote()));

    form.getLocalContext().setclinicalNotesVo(form.getGlobalContext().Clinical.getCurrentClinicalNote());
    if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull())
    {
        if (form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNoteIsNotNull())
        {
            if (!form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNote().equals(SourceOfNote.CLINICALCLINICALNOTE) )
                throw new FormOpenException("There is a clinical note of a different type already recorded on the system for this clincal contact");
        }

        populateScreenControls(form.getGlobalContext().Clinical.getCurrentClinicalNote());
    }   
}
项目:openMAXIMS    文件:Logic.java   
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);

}
项目:openMAXIMS    文件:Logic.java   
private void viewClinicalNote()
{
    selectClinicalNoteInGlobalContext();

    form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);
    form.getGlobalContext().Core.setClinicalNotingMode(null);

    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
    {
        form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);
        engine.open(form.getForms().Clinical.ClinicalNotesDialog);
    }

}
项目:openMAXIMS    文件:Logic.java   
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);
}
项目:openMAXIMS    文件:Logic.java   
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);
}
项目:openmaxims-linux    文件:Logic.java   
private boolean checkClinicalNoteForCurrentClinicalNote() throws FormOpenException
{
    if (engine.getFormName() != null && form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() && form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNoteIsNotNull() && domain.getHcpUser()!=null) //WDEV-19027  //temporary
    {

            if (form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP))
            {
                openClinicalNotes();
                checkForDiscipline();
            }
            else if (form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP))
            {
                checkForDiscipline();
                openOPClinicalNotes();
            }
            else
                throw new FormOpenException("There is a clinical note of a different type already recorded on the system for this clincal contact");

            return true;
    }
    return false;
}
项目:openmaxims-linux    文件:Logic.java   
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);
}
项目:openmaxims-linux    文件:Logic.java   
private void openNotingDetails() throws PresentationLogicException
{
    clearDetails();
    form.setMode(FormMode.VIEW);

    if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull()&& form.getGlobalContext().Clinical.getCurrentClinicalNote()==null)
        setCurrentClinicalNote();

    if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull())
        form.getGlobalContext().Clinical.setCurrentClinicalNote(domain.getClinicalNote(form.getGlobalContext().Clinical.getCurrentClinicalNote()));

    form.getLocalContext().setclinicalNotesVo(form.getGlobalContext().Clinical.getCurrentClinicalNote());
    if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull())
    {
        if (form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNoteIsNotNull())
        {
            if (!form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNote().equals(SourceOfNote.CLINICALCLINICALNOTE) )
                throw new FormOpenException("There is a clinical note of a different type already recorded on the system for this clincal contact");
        }

        populateScreenControls(form.getGlobalContext().Clinical.getCurrentClinicalNote());
    }   
}
项目:openmaxims-linux    文件:Logic.java   
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);

}
项目:openmaxims-linux    文件:Logic.java   
private void viewClinicalNote()
{
    selectClinicalNoteInGlobalContext();

    form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);
    form.getGlobalContext().Core.setClinicalNotingMode(null);

    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
    {
        form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);
        engine.open(form.getForms().Clinical.ClinicalNotesDialog);
    }

}
项目:openmaxims-linux    文件:Logic.java   
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);
}
项目:openmaxims-linux    文件:Logic.java   
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);
}
项目:AvoinApotti    文件:Logic.java   
private void checkForExistingClinicalNotes(ClinicalNotesVo voNote) throws FormOpenException
{
    if ((voNote !=null &&
            voNote.getSourceOfNoteIsNotNull() && 
                ! voNote.getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE)) ||
                    (voNote != null &&
                        voNote.getNoteTypeIsNotNull() &&//wdev-4952
                        !(voNote.getNoteType().equals(ClinicalNoteType.DISCHARGENOTE) ||
                            voNote.getNoteType().equals(ClinicalNoteType.SUMMARYATADMISSION)) && 
                                voNote.getIsDerivedNoteIsNotNull() &&
                                    !voNote.getIsDerivedNote().booleanValue()))         
                                        throw new FormOpenException("There is a clinical note of a different type already recorded on the system for this clincal contact");
}
项目:AvoinApotti    文件:Logic.java   
private void checkCurrentClinicalNote() throws FormOpenException
{
    if (form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNoteIsNotNull() && 
            ! form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE) &&
            form.getGlobalContext().Clinical.getCurrentClinicalNote().getClinicalContactIsNotNull())
    {
        form.getGlobalContext().Core.setClinicalNotingMode(null);
            throw new FormOpenException("There is a clinical note of a different type already recorded on the system for this clincal contact");
    }
    if (!SourceOfNote.THERAPYSOAPNOTE.equals(form.getGlobalContext().Clinical.getCurrentClinicalNote().getSourceOfNote()))
    {
        throw new FormOpenException("You are trying to open a different note type than this form supports");
    }
}
项目:AvoinApotti    文件:Logic.java   
private void viewClinicalNotes()
{
    if (form.dyngrdList().getSelectedRow() != null && form.dyngrdList().getSelectedRow().getValue() != null && form.getGlobalContext().Core.getClinicalNotesShortIsNotNull() && form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull())
    {
        if (form.dyngrdList().getValue() instanceof ClinicalContactShortVo)
        {
            selectClinicalNoteInGlobalContext();
            form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);
            form.getGlobalContext().Core.setClinicalNotingMode(null);

            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().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
            {
                form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);
                engine.open(form.getForms().Clinical.ClinicalNotesDialog);
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
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);
}
项目:AvoinApotti    文件:Logic.java   
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);
}
项目:AvoinApotti    文件:Logic.java   
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);
}
项目:AvoinApotti    文件:Logic.java   
private void viewClinicalNote() 
{

    if (form.dyngrdNotes().getSelectedRow().getValue() != null)
    {
        selectClinicalNoteInGlobalContext();

        form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);
        form.getGlobalContext().Core.setClinicalNotingMode(null);

        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
        {
            form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);
            engine.open(form.getForms().Clinical.ClinicalNotesDialog);
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void viewClinicalNotes()
{
    if (form.grdList().getSelectedRow() != null &&
            form.grdList().getSelectedRow().getValue() != null &&
            form.getGlobalContext().Core.getClinicalNotesShortIsNotNull() &&
            form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull())
    {
        if (form.grdList().getValue() instanceof ClinicalContactShortVo)
        {
            selectClinicalNoteInGlobalContext();
            form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);
            form.getGlobalContext().Core.setClinicalNotingMode(null);

            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().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
            {
                form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);
                engine.open(form.getForms().Clinical.ClinicalNotesDialog);
            }           
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private boolean checkClinicalNoteForCurrentCareContext() throws FormOpenException
{
    if (form.getGlobalContext().Core.getCurrentCareContextIsNotNull() && domain.getHcpUser()!=null) //WDEV-19027  //temporary
    {
        ClinicalNotesVo voNote = domain.getClinicalNotesForCareContext(form.getGlobalContext().Core.getCurrentCareContext());
        if (voNote != null)
        {
            if (voNote.getSourceOfNote() == null)
                throw new FormOpenException("There is a clinical note of a different type already recorded on the system for this clincal contact");
            if (voNote.getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGIP))
            {
                openClinicalNotes();
                checkForDiscipline();
            }

            else if ( voNote.getSourceOfNote().equals(SourceOfNote.CLINICALNOTEDRAWINGOP))
            {
                checkForDiscipline();
                openOPClinicalNotes();
            }
            else throw new FormOpenException("There is a clinical note of a different type already recorded on the system for this clincal contact");

            return true;
        }
        return false;
    }
    return false;
}
项目:AvoinApotti    文件:Logic.java   
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);
    }

}
项目:AvoinApotti    文件:Logic.java   
private void viewClinicalNote()
{
    selectClinicalNoteInGlobalContext();

    form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);
    form.getGlobalContext().Core.setClinicalNotingMode(null);

    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
    {
        form.getGlobalContext().Clinical.setReturnToFormMode(FormMode.VIEW);
        if (engine.getFormName().equals(form.getForms().Clinical.ExtendedPatientClinicalNotesCarePlansList))
        {
    //      if (form.getGlobalContext().Core.getClinicalNotesShortIsNotNull()
    //          && form.getGlobalContext().Core.getClinicalNotesShort().getIsCorrectedIsNotNull()
    //          && form.getGlobalContext().Core.getClinicalNotesShort().getIsCorrected())
    //          engine.open(form.getForms().Clinical.ExtendedClinicalNotesDialog);
    //      else
                engine.open(form.getForms().Clinical.ExtendedCarePlanClinicalNotesDialog);
        }
        else
            engine.open(form.getForms().Clinical.ExtendedClinicalNotesDialog);
    }

}
项目:AvoinApotti    文件:Logic.java   
private void checkForExistingClinicalNotes(ClinicalNotesVo voNote) throws FormOpenException
{
    if ((voNote !=null &&
            voNote.getSourceOfNoteIsNotNull() && 
                ! voNote.getSourceOfNote().equals(SourceOfNote.TLT_NOTE)) ||
                    (voNote != null &&
                        voNote.getNoteTypeIsNotNull() &&//wdev-4952
                        !(voNote.getNoteType().equals(ClinicalNoteType.DISCHARGENOTE) ||
                            voNote.getNoteType().equals(ClinicalNoteType.SUMMARYATADMISSION)) && 
                                voNote.getIsDerivedNoteIsNotNull() &&
                                    !voNote.getIsDerivedNote().booleanValue()))         
                                        throw new FormOpenException("There is a clinical note of a different type already recorded on the system for this clincal contact");
}
项目:openMAXIMS    文件:Logic.java   
private void checkForExistingClinicalNotes(ClinicalNotesVo voNote) throws FormOpenException
{
    if ((voNote !=null &&
            voNote.getSourceOfNoteIsNotNull() && 
                ! voNote.getSourceOfNote().equals(SourceOfNote.THERAPYSOAPNOTE)) ||
                    (voNote != null &&
                        voNote.getNoteTypeIsNotNull() &&//wdev-4952
                        !(voNote.getNoteType().equals(ClinicalNoteType.DISCHARGENOTE) ||
                            voNote.getNoteType().equals(ClinicalNoteType.SUMMARYATADMISSION)) && 
                                voNote.getIsDerivedNoteIsNotNull() &&
                                    !voNote.getIsDerivedNote().booleanValue()))         
                                        throw new FormOpenException("There is a clinical note of a different type already recorded on the system for this clincal contact");
}