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

项目:AvoinApotti    文件:Logic.java   
private boolean setFilterForTabUser(ClinicalNotesFilterVo filter)
{
    if (form.lyrSearcFilter().tabRecordingUser().qmbUserRec().getValue() == null)
    {
        engine.showMessage("Recording User is mandatory for a search. Please select one and search again.");
        return false;
    }
    filter.setRecordingUser(form.lyrSearcFilter().tabRecordingUser().qmbUserRec().getValue());
    DateTime dateFrom = new DateTime(form.lyrSearcFilter().tabRecordingUser().dteUserFrom().getValue(), null); 
    filter.setDateFrom(dateFrom);
    DateTime dateTo = new DateTime(form.lyrSearcFilter().tabRecordingUser().dteUserTo().getValue(), null); 
    filter.setDateTo(dateTo);

    if (form.lyrSearcFilter().tabRecordingUser().chkRecValidation().getValue())
        filter.setStatus(ClinicalNotesStatus.PREVALIDATION);

    return true;
}
项目:AvoinApotti    文件:Logic.java   
private boolean setFilterForTabHcp(ClinicalNotesFilterVo filter)
{
    if (form.lyrSearcFilter().tabRecordingHcp().qmbHcpRec().getValue() == null)
    {
        engine.showMessage("Authoring HCP is mandatory for a search. Please select one and search again.");
        return false;
    }
    filter.setAuthoringHCP(form.lyrSearcFilter().tabRecordingHcp().qmbHcpRec().getValue());
    DateTime dateFrom = new DateTime(form.lyrSearcFilter().tabRecordingHcp().dteHcpFrom().getValue(), null); 
    filter.setDateFrom(dateFrom);
    DateTime dateTo = new DateTime(form.lyrSearcFilter().tabRecordingHcp().dteHcpTo().getValue(), null); 
    filter.setDateTo(dateTo);
    filter.setStatus(form.lyrSearcFilter().tabRecordingHcp().cmbHcpStatus().getValue());

    if (form.lyrSearcFilter().tabRecordingHcp().chkAuthValidation().getValue())
        filter.setStatus(ClinicalNotesStatus.PREVALIDATION);

    return true;
}
项目:AvoinApotti    文件:Logic.java   
/**
 * @param note
 * @return
 */
private String buildNoteTooltip(ClinicalNotesShortVo note)
{
    if(note == null) //WDEV-12766
        return null;

    StringBuilder tooltip = new StringBuilder();

    // Build "Recorded By"
    tooltip.append("<b>Authored By:</b> ");
    if (note.getAuthoringInfoIsNotNull() && note.getAuthoringInfo().getAuthoringHcpIsNotNull())
        tooltip.append(note.getAuthoringInfo().getAuthoringHcp().toString()).append(" - "); 
    if (note.getAuthoringInfoIsNotNull() &&  note.getAuthoringInfo().getAuthoringDateTimeIsNotNull())
        tooltip.append(note.getAuthoringInfo().getAuthoringDateTime().toString());
    // Build "Confirmed By"
    if(note.getCurrentStatusIsNotNull() && ClinicalNotesStatus.CONFIRMED.equals(note.getCurrentStatus().getStatus())) //WDEV-12766
    {
        tooltip.append("<br><b>Confirmed By:</b> ");
        tooltip.append(note.getCurrentStatus().getMOSIsNotNull() && note.getCurrentStatus().getMOS().getNameIsNotNull() ? note.getCurrentStatus().getMOS().getName().toString() : "").append(" - "); //WDEV-12766
        tooltip.append(note.getCurrentStatus().getDateTimeIsNotNull() ? note.getCurrentStatus().getDateTime().toString() : ""); //WDEV-12766
    }

    return tooltip.toString();
}
项目:openmaxims-linux    文件:Logic.java   
private boolean setFilterForTabHcp(ClinicalNotesFilterVo filter)
{
    if (form.lyrSearcFilter().tabRecordingHcp().qmbHcpRec().getValue() == null)
    {
        engine.showMessage("Authoring HCP is mandatory for a search. Please select one and search again.");
        return false;
    }
    filter.setAuthoringHCP(form.lyrSearcFilter().tabRecordingHcp().qmbHcpRec().getValue());
    DateTime dateFrom = new DateTime(form.lyrSearcFilter().tabRecordingHcp().dteHcpFrom().getValue(), null); 
    filter.setDateFrom(dateFrom);
    DateTime dateTo = new DateTime(form.lyrSearcFilter().tabRecordingHcp().dteHcpTo().getValue(), null); 
    filter.setDateTo(dateTo);
    filter.setStatus(form.lyrSearcFilter().tabRecordingHcp().cmbHcpStatus().getValue());

    if (form.lyrSearcFilter().tabRecordingHcp().chkAuthValidation().getValue())
        filter.setStatus(ClinicalNotesStatus.PREVALIDATION);

    return true;
}
项目:openMAXIMS    文件:Logic.java   
private boolean setFilterForTabUser(ClinicalNotesFilterVo filter)
{
    if (form.lyrSearcFilter().tabRecordingUser().qmbUserRec().getValue() == null)
    {
        engine.showMessage("Recording User is mandatory for a search. Please select one and search again.");
        return false;
    }
    filter.setRecordingUser(form.lyrSearcFilter().tabRecordingUser().qmbUserRec().getValue());
    DateTime dateFrom = new DateTime(form.lyrSearcFilter().tabRecordingUser().dteUserFrom().getValue(), null); 
    filter.setDateFrom(dateFrom);
    DateTime dateTo = new DateTime(form.lyrSearcFilter().tabRecordingUser().dteUserTo().getValue(), null); 
    filter.setDateTo(dateTo);

    if (form.lyrSearcFilter().tabRecordingUser().chkRecValidation().getValue())
        filter.setStatus(ClinicalNotesStatus.PREVALIDATION);

    return true;
}
项目:openMAXIMS    文件:Logic.java   
private boolean setFilterForTabHcp(ClinicalNotesFilterVo filter)
{
    if (form.lyrSearcFilter().tabRecordingHcp().qmbHcpRec().getValue() == null)
    {
        engine.showMessage("Authoring HCP is mandatory for a search. Please select one and search again.");
        return false;
    }
    filter.setAuthoringHCP(form.lyrSearcFilter().tabRecordingHcp().qmbHcpRec().getValue());
    DateTime dateFrom = new DateTime(form.lyrSearcFilter().tabRecordingHcp().dteHcpFrom().getValue(), null); 
    filter.setDateFrom(dateFrom);
    DateTime dateTo = new DateTime(form.lyrSearcFilter().tabRecordingHcp().dteHcpTo().getValue(), null); 
    filter.setDateTo(dateTo);
    filter.setStatus(form.lyrSearcFilter().tabRecordingHcp().cmbHcpStatus().getValue());

    if (form.lyrSearcFilter().tabRecordingHcp().chkAuthValidation().getValue())
        filter.setStatus(ClinicalNotesStatus.PREVALIDATION);

    return true;
}
项目:openMAXIMS    文件:Logic.java   
private void populateNotesGrid(ClinicalNoteStatusVoCollection voClinNoteStatColl) 
{
    if (voClinNoteStatColl==null)
        return;

    voClinNoteStatColl.sort(new DateTimeComparator(SortOrder.ASCENDING));

    for(int i = 0 ; i < voClinNoteStatColl.size() ; i++)
    {
        if(voClinNoteStatColl.get(i).getStatusIsNotNull()
            && voClinNoteStatColl.get(i).getStatus().equals(ClinicalNotesStatus.CORRECTED))
        {
            addRowToGrid(voClinNoteStatColl.get(i));

        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean setFilterForTabHcp(ClinicalNotesFilterVo filter)
{
    if (form.lyrSearcFilter().tabRecordingHcp().qmbHcpRec().getValue() == null)
    {
        engine.showMessage("Authoring HCP is mandatory for a search. Please select one and search again.");
        return false;
    }
    filter.setAuthoringHCP(form.lyrSearcFilter().tabRecordingHcp().qmbHcpRec().getValue());
    DateTime dateFrom = new DateTime(form.lyrSearcFilter().tabRecordingHcp().dteHcpFrom().getValue(), null); 
    filter.setDateFrom(dateFrom);
    DateTime dateTo = new DateTime(form.lyrSearcFilter().tabRecordingHcp().dteHcpTo().getValue(), null); 
    filter.setDateTo(dateTo);
    filter.setStatus(form.lyrSearcFilter().tabRecordingHcp().cmbHcpStatus().getValue());

    if (form.lyrSearcFilter().tabRecordingHcp().chkAuthValidation().getValue())
        filter.setStatus(ClinicalNotesStatus.PREVALIDATION);

    return true;
}
项目:AvoinApotti    文件:Logic.java   
private boolean validationIPMode(ClinicalNoteStatusVo currentStatus) 
{
    if (currentStatus != null
        &&  currentStatus.getStatusIsNotNull() 
        && (currentStatus.getStatus().equals(ClinicalNotesStatus.PREVALIDATION))
        && domain.getHcpLiteUser() != null 
        && testDiscipline()) 
        //domain.getHcpLiteUser().equals(form.customControlAuthoring().getValue().getAuthoringHcp()))
        return true;
    else
        return false;
}
项目:AvoinApotti    文件:Logic.java   
private void fillIPStatusCombo(ClinicalNotesVo voClinicalNote) 
{
    if (voClinicalNote != null)
    {
        //In Correct mode, HCP ok and either Active or Correct
        if (correctModeIP(voClinicalNote.getCurrentStatus())) 
        {
            form.btnUpdate().setText("Correct");
            fillIPStatusCorrect();
        }
        //Requires Validation
        else if (voClinicalNote.getCurrentStatus().getStatusIsNotNull() &&
            voClinicalNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.PREVALIDATION))
        {
            //fillIPStatusValidation();
            if (domain.getHcpLiteUser() != null)
                form.btnUpdate().setText("Validate");
            fillIPStatusPreValidation();
        }
        //Draft, HCP OK
        else if (voClinicalNote.getCurrentStatus().getStatusIsNotNull() &&
            voClinicalNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.DRAFT) &&
                domain.getHcpLiteUser() != null &&
                    //domain.getHcpLiteUser().equals(form.customControlAuthoring().getValue().getAuthoringHcp()))
                    testDiscipline())
        {
            fillIPStatusNew();
        }
        //Draft, HCP not OK
        else if (voClinicalNote.getCurrentStatus().getStatusIsNotNull() &&
            voClinicalNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.DRAFT) &&
                domain.getHcpLiteUser() == null) 
        {
            fillIPStatusPreValidation();
        }               
    }
}
项目:AvoinApotti    文件:Logic.java   
private boolean correctModeIP(ClinicalNoteStatusVo currentStatus) 
{
    if (currentStatus != null
        &&  currentStatus.getStatusIsNotNull() 
            && (currentStatus.getStatus().equals(ClinicalNotesStatus.ACTIVE) 
                    || currentStatus.getStatus().equals(ClinicalNotesStatus.CORRECTED) )
                        && domain.getHcpLiteUser() != null 
                            && testDiscipline()) 
                            //domain.getHcpLiteUser().equals(form.customControlAuthoring().getValue().getAuthoringHcp()))
                                return true;
    else
        return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean rulesForValidationContexMenus (ClinicalNotesShortVo voNote, Hcp voHcp)
{
    if (voNote.getDisciplineIsNotNull() 
        && voHcp != null
            && voHcp.getHcpTypeIsNotNull()
                && voNote.getDiscipline().equals(voHcp.getHcpType()) 
                    && voNote.getCurrentStatusIsNotNull()
                        && voNote.getCurrentStatus().getStatusIsNotNull()
                            && voNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.PREVALIDATION) )
                                return true;
    return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean rulesForCorrectContexMenus (ClinicalNotesShortVo voNote)
{
    if ( voNote.getCurrentStatusIsNotNull()
        && voNote.getCurrentStatus().getStatusIsNotNull()
            && voNote.getAuthoringInfoIsNotNull()
                && voNote.getAuthoringInfo().getAuthoringHcpIsNotNull()
                    && (voNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.ACTIVE) || voNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.CORRECTED) )
                        && domain.getHcpLiteUser() != null 
                            && /*domain.getHcpLiteUser().equals(voNote.getAuthoringInfo().getAuthoringHcp())*/ 
                                testDiscipline(voNote))
                                    return true;
    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void setPreviosStatus()
{
    if (form.getGlobalContext().Clinical.getCurrentClinicalNoteIsNotNull() && form.getGlobalContext().Clinical.getCurrentClinicalNote().getCurrentStatusIsNotNull())
    {
        ClinicalNotesStatus status = form.getGlobalContext().Clinical.getCurrentClinicalNote().getCurrentStatus().getStatus();
        form.lyrTabs().tabOPDNote().cmbStatusOP().setValue(status);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void fillIPStatusCombo(ClinicalNotesVo voClinicalNote)
{
    if (voClinicalNote != null)
    {
        // In Correct mode, HCP ok and either Active or Correct
        if (correctModeIP(voClinicalNote.getCurrentStatus()))
        {
            form.lyrTabs().tabClinicalNotes().btnUpdateSOAP().setText("Correct");

            fillIPStatusCorrect();
        }
        // Requires Validation
        else if (voClinicalNote.getCurrentStatus().getStatusIsNotNull() && voClinicalNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.PREVALIDATION))
        {

            if (domain.getHcpLiteUser() != null)
                form.lyrTabs().tabClinicalNotes().btnUpdateSOAP().setText("Validate");
            fillIPStatusValidation();
        }
        // Draft, HCP OK
        else if (voClinicalNote.getCurrentStatus().getStatusIsNotNull() && voClinicalNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.DRAFT) && domain.getHcpLiteUser() != null && testIpDiscipline())
        // domain.getHcpLiteUser().equals(form.lyrTabs().tabClinicalNotes().customControlClinicalNotesAuthoiring().getValue().getAuthoringHcp()))
        {
            fillIPStatusNew();
        }
        // Draft, HCP not OK
        else if (voClinicalNote.getCurrentStatus().getStatusIsNotNull() && voClinicalNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.DRAFT) && domain.getHcpLiteUser() == null)
        {
            fillIPStatusPreValidation();
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private boolean correctModeIP(ClinicalNoteStatusVo currentStatus)
{
    if (currentStatus != null && currentStatus.getStatusIsNotNull() && (currentStatus.getStatus().equals(ClinicalNotesStatus.ACTIVE) || currentStatus.getStatus().equals(ClinicalNotesStatus.CORRECTED)) && domain.getHcpLiteUser() != null && testIpDiscipline())
        // domain.getHcpLiteUser().equals(form.lyrTabs().tabClinicalNotes().customControlClinicalNotesAuthoiring().getValue().getAuthoringHcp()))
        return true;
    else
        return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean validationIPMode(ClinicalNoteStatusVo currentStatus)
{
    if (currentStatus != null && currentStatus.getStatusIsNotNull() && (currentStatus.getStatus().equals(ClinicalNotesStatus.PREVALIDATION)) && domain.getHcpLiteUser() != null && testIpDiscipline())
        // domain.getHcpLiteUser().equals(form.lyrTabs().tabClinicalNotes().customControlClinicalNotesAuthoiring().getValue().getAuthoringHcp()))
        return true;
    else
        return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean validationOPMode(ClinicalNoteStatusVo currentStatus)
{
    if (currentStatus != null && currentStatus.getStatusIsNotNull() && (currentStatus.getStatus().equals(ClinicalNotesStatus.PREVALIDATION)) && domain.getHcpLiteUser() != null && testOpDiscipline())
        // domain.getHcpLiteUser().equals(form.lyrTabs().tabOPDNote().customControlOPAuthoring().getValue().getAuthoringHcp()))
        return true;
    else
        return false;
}
项目:AvoinApotti    文件:Logic.java   
private void fillOPStatusCombo(ClinicalNotesVo clinicalNote)
{
    if (clinicalNote != null && clinicalNote.getCurrentStatusIsNotNull())
    {
        if (correctModeOP(clinicalNote.getCurrentStatus())) // In Correct
        // mode, HCP ok
        // and either
        // Active or
        // Correct
        {
            form.lyrTabs().tabOPDNote().btnUpdateOPNotes().setText("Correct");

            fillOPStatusCorrect();
        }
        else if (clinicalNote.getCurrentStatus().getStatusIsNotNull() // Requires
                // Validation
                && clinicalNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.PREVALIDATION))
        {
            if (domain.getHcpLiteUser() != null)
                form.lyrTabs().tabOPDNote().btnUpdateOPNotes().setText("Validate");
            fillOPStatusValidation();
        }
        else if (clinicalNote.getCurrentStatus().getStatusIsNotNull() // Draft,
                // HCP
                // OK
                && clinicalNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.DRAFT) && domain.getHcpLiteUser() != null && testOpDiscipline())
        // domain.getHcpLiteUser().equals(form.lyrTabs().tabOPDNote().customControlOPAuthoring().getValue().getAuthoringHcp()))
        {
            fillOPStatusNew();
        }
        else if (clinicalNote.getCurrentStatus().getStatusIsNotNull() // Draft,
                // HCP
                // not
                // OK
                && clinicalNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.DRAFT) && domain.getHcpLiteUser() == null)
        {
            fillOPStatusPreValidation();
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void updateOPNotingButtonsStatus()
{
    if (form.getMode().equals(FormMode.VIEW))
    {
        if (form.getLocalContext().getCurrentOPNoteIsNotNull())
        {
            form.lyrTabs().tabOPDNote().btnUpdateOPNotes().setVisible(true);
            form.lyrTabs().tabOPDNote().btnNewOPClinicalNote().setVisible(false);
        }
        else
        {
            form.lyrTabs().tabOPDNote().btnUpdateOPNotes().setVisible(false);
            form.lyrTabs().tabOPDNote().btnNewOPClinicalNote().setVisible(true);
        }
    }

    // If its a transcribed record, a non-HCP user and has been moved on in
    // status make the screen R/O fo the logged in use.
    if (form.getLocalContext().getCurrentOPNoteIsNotNull() && form.getLocalContext().getCurrentOPNote().getClinicalNote().getClinicalNote().getIsTranscribedIsNotNull() && form.getLocalContext().getCurrentOPNote().getClinicalNote().getClinicalNote().getIsTranscribed().booleanValue() && domain.getHcpLiteUser() == null)
    {
        if (form.getLocalContext().getCurrentOPNote().getClinicalNote().getClinicalNote().getCurrentStatusIsNotNull() && !form.getLocalContext().getCurrentOPNote().getClinicalNote().getClinicalNote().getCurrentStatus().getStatus().equals(ClinicalNotesStatus.DRAFT) && !form.getLocalContext().getCurrentOPNote().getClinicalNote().getClinicalNote().getCurrentStatus().getStatus().equals(ClinicalNotesStatus.PREVALIDATION))
        {
            form.lyrTabs().tabOPDNote().btnUpdateOPNotes().setVisible(false);
            form.lyrTabs().tabOPDNote().btnNewOPClinicalNote().setVisible(false);
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private boolean correctModeOP(ClinicalNoteStatusVo voPreviousStat)
{
    if (voPreviousStat != null && voPreviousStat.getStatusIsNotNull() && (voPreviousStat.getStatus().equals(ClinicalNotesStatus.ACTIVE) || voPreviousStat.getStatus().equals(ClinicalNotesStatus.CORRECTED)) && domain.getHcpLiteUser() != null && testOpDiscipline())
        // domain.getHcpLiteUser().equals(form.lyrTabs().tabOPDNote().customControlOPAuthoring().getValue().getAuthoringHcp()))
        return true;
    else
        return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean correctModeIP(ClinicalNoteStatusVo currentStatus) 
{
    if (currentStatus != null &&
            currentStatus.getStatusIsNotNull() && 
                (currentStatus.getStatus().equals(ClinicalNotesStatus.ACTIVE) ||
                    currentStatus.getStatus().equals(ClinicalNotesStatus.CORRECTED) ) && 
                        domain.getHcpLiteUser() != null && 
                            /*domain.getHcpLiteUser().equals(form.customControlAuthoring().getValue().getAuthoringHcp())*/
                        testDiscipline())
        return true;
    else
        return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean validationIPMode(ClinicalNoteStatusVo currentStatus) 
{
    if (currentStatus != null
        &&  currentStatus.getStatusIsNotNull() 
        && (currentStatus.getStatus().equals(ClinicalNotesStatus.PREVALIDATION))
        && domain.getHcpLiteUser() != null 
        /*&& domain.getHcpLiteUser().equals(form.customControlAuthoring().getValue().getAuthoringHcp())*/
        && testDiscipline())
        return true;
    else
        return false;
}
项目:AvoinApotti    文件:Logic.java   
private void fillIPStatusCombo(ClinicalNotesVo voClinicalNote) 
{
    if (voClinicalNote != null)
    {
        //In Correct mode, HCP ok and either Active or Correct
        if (correctModeIP(voClinicalNote.getCurrentStatus())) 
        {
            form.btnUpdate().setText("Correct");
            fillIPStatusCorrect(); 
        }
        //Requires Validation
        else if (voClinicalNote.getCurrentStatus().getStatusIsNotNull() &&
            voClinicalNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.PREVALIDATION))
        {
            //fillIPStatusValidation();
            if (domain.getHcpLiteUser() != null)
                form.btnUpdate().setText("Validate");
            fillIPStatusPreValidation();
        }
        //Draft, HCP OK
        else if (voClinicalNote.getCurrentStatus().getStatusIsNotNull() &&
            voClinicalNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.DRAFT) &&
                domain.getHcpLiteUser() != null &&
                    //domain.getHcpLiteUser().equals(form.customControlAuthoring().getValue().getAuthoringHcp())
                testDiscipline())
        {
            fillIPStatusNew();
        }
        //Draft, HCP not OK
        else if (voClinicalNote.getCurrentStatus().getStatusIsNotNull() &&
            voClinicalNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.DRAFT) &&
                domain.getHcpLiteUser() == null) 
        {
            fillIPStatusPreValidation();
        }               
    }
}
项目:AvoinApotti    文件:Logic.java   
private void fillIPStatusNew() 
{
    form.cmbStatus().clear();
    form.cmbStatus().newRow(ClinicalNotesStatus.ACTIVE, ClinicalNotesStatus.ACTIVE.getText());
    form.cmbStatus().newRow(ClinicalNotesStatus.DRAFT, ClinicalNotesStatus.DRAFT.getText());
    form.cmbStatus().setValue(ClinicalNotesStatus.ACTIVE);//wdev-9362
}
项目:AvoinApotti    文件:Logic.java   
private void initialise()
{
    initializeDynamicGrid();
    form.getLocalContext().setClinicalContactErr(true);
    form.btnPrint().setEnabled(false);
    form.btnPrint().setVisible(false);

    form.cmbStatus().removeRow(ClinicalNotesStatus.ACTIVE);
    form.cmbStatus().removeRow(ClinicalNotesStatus.PREVALIDATION);

    loadHcpDisciplines();
}
项目:AvoinApotti    文件:Logic.java   
private boolean rulesForCorrectContexMenus(ClinicalNotesShortVo voNote)
{
    if (voNote.getCurrentStatusIsNotNull() 
        && voNote.getCurrentStatus().getStatusIsNotNull() 
        && (voNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.DRAFT)
            || voNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.ACTIVE)
            || voNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.CONFIRMED)) )
        //&& domain.getHcpLiteUser() != null
        //&& testDiscipline(voNote))
        return true;

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean notPreviouslyConfirmed(ClinicalNoteStatusVoCollection clinicalNoteStatusVoCollection)
{
    for (int i = 0 ; clinicalNoteStatusVoCollection != null && i < clinicalNoteStatusVoCollection.size() ; i++)
    {
        if (clinicalNoteStatusVoCollection.get(i).getStatusIsNotNull()
            && clinicalNoteStatusVoCollection.get(i).getStatus().equals(ClinicalNotesStatus.CONFIRMED))
            return false;
    }

    return true;
}
项目:AvoinApotti    文件:Logic.java   
private ClinicalNoteStatusVo findConfirmedInfo(ClinicalNoteStatusVoCollection clinicalNoteStatusVoCollection)
{
    for (int i = 0 ; clinicalNoteStatusVoCollection != null && i < clinicalNoteStatusVoCollection.size() ; i++)
    {
        if (clinicalNoteStatusVoCollection.get(i).getStatusIsNotNull()
            && clinicalNoteStatusVoCollection.get(i).getStatus().equals(ClinicalNotesStatus.CONFIRMED))
            return clinicalNoteStatusVoCollection.get(i);
    }

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private boolean validationIPMode(ClinicalNoteStatusVo currentStatus) 
{
    if (currentStatus != null
        &&  currentStatus.getStatusIsNotNull() 
        && (currentStatus.getStatus().equals(ClinicalNotesStatus.PREVALIDATION))
        && domain.getHcpLiteUser() != null 
        && testDiscipline())
        return true;
    else
        return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean rulesForValidationContexMenus(ClinicalNotesShortVo voNote, Hcp voHcp)
{
    if (voNote.getDisciplineIsNotNull() && voHcp != null && voHcp.getHcpTypeIsNotNull() && voNote.getDiscipline().equals(voHcp.getHcpType()) && voNote.getCurrentStatusIsNotNull() && voNote.getCurrentStatus().getStatusIsNotNull() && voNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.PREVALIDATION))
        return true;

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean rulesForCorrectContexMenus(ClinicalNotesShortVo voNote)
{
    if (voNote.getCurrentStatusIsNotNull() && voNote.getCurrentStatus().getStatusIsNotNull() && voNote.getAuthoringInfoIsNotNull() && voNote.getAuthoringInfo().getAuthoringHcpIsNotNull() && (voNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.ACTIVE) || voNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.CORRECTED)) && domain.getHcpLiteUser() != null && testDiscipline(voNote))// domain.getHcpLiteUser().equals(voNote.getAuthoringInfo().getAuthoringHcp()) )
        return true;

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void fillIPStatusCombo(ClinicalNotesVo voClinicalNote) 
{
    if (voClinicalNote != null)
    {
        //In Correct mode, HCP ok and either Active or Correct
        if (correctModeIP(voClinicalNote.getCurrentStatus())) 
        {   
            fillIPStatusCorrect();
        }
        //Requires Validation
        else if (voClinicalNote.getCurrentStatus().getStatusIsNotNull() &&
            voClinicalNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.PREVALIDATION))
        {
            //fillIPStatusValidation();
            if (domain.getHcpLiteUser() != null)            
                fillIPStatusPreValidation();
        }
        //Draft, HCP OK
        else if (voClinicalNote.getCurrentStatus().getStatusIsNotNull() &&
            voClinicalNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.DRAFT) &&
                domain.getHcpLiteUser() != null &&
                    //domain.getHcpLiteUser().equals(form.customControlAuthoring().getValue().getAuthoringHcp()))
                    testDiscipline())
        {
            fillIPStatusNew();
        }
        //Draft, HCP not OK
        else if (voClinicalNote.getCurrentStatus().getStatusIsNotNull() &&
            voClinicalNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.DRAFT) &&
                domain.getHcpLiteUser() == null) 
        {
            fillIPStatusPreValidation();
        }               
    }
}
项目:AvoinApotti    文件:Logic.java   
private boolean correctModeIP(ClinicalNoteStatusVo currentStatus) 
{
    if (currentStatus != null
        &&  currentStatus.getStatusIsNotNull() 
            && (currentStatus.getStatus().equals(ClinicalNotesStatus.ACTIVE) 
                    || currentStatus.getStatus().equals(ClinicalNotesStatus.CORRECTED) )
                        && domain.getHcpLiteUser() != null 
                            && testDiscipline()) 
                            //domain.getHcpLiteUser().equals(form.customControlAuthoring().getValue().getAuthoringHcp()))
                                return true;
    else
        return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean validationIPMode(ClinicalNoteStatusVo currentStatus) 
{
    if (currentStatus != null
        &&  currentStatus.getStatusIsNotNull() 
        && (currentStatus.getStatus().equals(ClinicalNotesStatus.PREVALIDATION))
        && domain.getHcpLiteUser() != null 
        && testDiscipline()) 
        //domain.getHcpLiteUser().equals(form.customControlAuthoring().getValue().getAuthoringHcp()))
        return true;
    else
        return false;
}
项目:openmaxims-linux    文件:Logic.java   
private void fillIPStatusNew() 
{
    form.cmbStatus().clear();
    form.cmbStatus().newRow(ClinicalNotesStatus.ACTIVE, ClinicalNotesStatus.ACTIVE.getText());
    form.cmbStatus().newRow(ClinicalNotesStatus.DRAFT, ClinicalNotesStatus.DRAFT.getText());
    form.cmbStatus().setValue(ClinicalNotesStatus.ACTIVE);//wdev-9362
}
项目:openMAXIMS    文件:Logic.java   
private void fillIPStatusCombo(ClinicalNotesVo voClinicalNote) 
{
    if (voClinicalNote != null)
    {
        //In Correct mode, HCP ok and either Active or Correct
        if (correctModeIP(voClinicalNote.getCurrentStatus())) 
        {
            form.btnUpdate().setText("Correct");
            fillIPStatusCorrect();
        }
        //Requires Validation
        else if (voClinicalNote.getCurrentStatus().getStatusIsNotNull() &&
            voClinicalNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.PREVALIDATION))
        {
            //fillIPStatusValidation();
            if (domain.getHcpLiteUser() != null)
                form.btnUpdate().setText("Validate");
            fillIPStatusPreValidation();
        }
        //Draft, HCP OK
        else if (voClinicalNote.getCurrentStatus().getStatusIsNotNull() &&
            voClinicalNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.DRAFT) &&
                domain.getHcpLiteUser() != null &&
                    //domain.getHcpLiteUser().equals(form.customControlAuthoring().getValue().getAuthoringHcp()))
                    testDiscipline())
        {
            fillIPStatusNew();
        }
        //Draft, HCP not OK
        else if (voClinicalNote.getCurrentStatus().getStatusIsNotNull() &&
            voClinicalNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.DRAFT) &&
                domain.getHcpLiteUser() == null) 
        {
            fillIPStatusPreValidation();
        }               
    }
}
项目:openmaxims-linux    文件:Logic.java   
private boolean rulesForValidationContexMenus (ClinicalNotesShortVo voNote, Hcp voHcp)
{
    if (voNote.getDisciplineIsNotNull() 
        && voHcp != null
            && voHcp.getHcpTypeIsNotNull()
                && voNote.getDiscipline().equals(voHcp.getHcpType()) 
                    && voNote.getCurrentStatusIsNotNull()
                        && voNote.getCurrentStatus().getStatusIsNotNull()
                            && voNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.PREVALIDATION) )
                                return true;
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void fillIPStatusCombo(ClinicalNotesVo voClinicalNote) 
{
    if (voClinicalNote != null)
    {
        //In Correct mode, HCP ok and either Active or Correct
        if (correctModeIP(voClinicalNote.getCurrentStatus())) 
        {
            form.btnUpdate().setText("Correct");
            fillIPStatusCorrect();
        }
        //Requires Validation
        else if (voClinicalNote.getCurrentStatus().getStatusIsNotNull() &&
            voClinicalNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.PREVALIDATION))
        {
            //fillIPStatusValidation();
            if (domain.getHcpLiteUser() != null)
                form.btnUpdate().setText("Validate");
            fillIPStatusPreValidation();
        }
        //Draft, HCP OK
        else if (voClinicalNote.getCurrentStatus().getStatusIsNotNull() &&
            voClinicalNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.DRAFT) &&
                domain.getHcpLiteUser() != null &&
                    //domain.getHcpLiteUser().equals(form.customControlAuthoring().getValue().getAuthoringHcp()))
                    testDiscipline())
        {
            fillIPStatusNew();
        }
        //Draft, HCP not OK
        else if (voClinicalNote.getCurrentStatus().getStatusIsNotNull() &&
            voClinicalNote.getCurrentStatus().getStatus().equals(ClinicalNotesStatus.DRAFT) &&
                domain.getHcpLiteUser() == null) 
        {
            fillIPStatusPreValidation();
        }               
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean correctModeIP(ClinicalNoteStatusVo currentStatus) 
{
    if (currentStatus != null
        &&  currentStatus.getStatusIsNotNull() 
            && (currentStatus.getStatus().equals(ClinicalNotesStatus.ACTIVE) 
                    || currentStatus.getStatus().equals(ClinicalNotesStatus.CORRECTED) )
                        && domain.getHcpLiteUser() != null 
                            && testDiscipline()) 
                            //domain.getHcpLiteUser().equals(form.customControlAuthoring().getValue().getAuthoringHcp()))
                                return true;
    else
        return false;
}