Java 类ims.core.vo.CareContextForPatientDocumentVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void bindCmbClinicalContact() 
{
    form.cmbCContant().clear();

    if(form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo)
    {
        ClinicalContactShortVoCollection clinicalContactList = domain.listClinicalContact(form.cmbCContext().getValue());

        for(int i=0; clinicalContactList != null && i<clinicalContactList.size(); i++)
        {
            ClinicalContactShortVo cc = clinicalContactList.get(i);

            if(cc != null)
            {
                form.cmbCContant().newRow(cc, getTextForClinicaContact(cc));
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void selectEpisodeOfCare() 
{
    //  WDEV-13992
    if(form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo)
    {
        form.getLocalContext().setSelectedSpecialty(form.cmbEpisode().getValue().getSpecialty());
    }

    bindCmbCareContext();

    bindAndSelectSpecialty();// WDEV-13527

    form.ccResponsibleHcp().setValue(form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo ? form.cmbEpisode().getValue().getResponsibleHCP() : null);

    if(ConfigFlag.UI.DEFAULT_DOCUMENT_TO_CONTEXT_DATE.getValue())// WDEV-13413
    {
        form.dteDocumentDate().setValue(form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo ? form.cmbEpisode().getValue().getStartDate() : new Date());
    }
    else if(!(form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo))//  WDEV-13413
        form.dteDocumentDate().setValue(new Date());

    updateControlsState();
}
项目:AvoinApotti    文件:Logic.java   
private void bindCmbCareContext() 
{
    form.cmbCContext().clear();
    form.cmbCContant().clear();

    if(form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo)
    {
        CareContextForPatientDocumentVoCollection careContextList = domain.listCareContext(form.cmbEpisode().getValue());

        for(int i=0; careContextList != null && i<careContextList.size(); i++)
        {
            CareContextForPatientDocumentVo cc = careContextList.get(i);

            if(cc != null)
            {
                form.cmbCContext().newRow(cc, getTextForCareContext(cc));
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private String getTextForCareContext(CareContextForPatientDocumentVo cc) 
{
    if(cc == null)
        return "";

    StringBuilder result = new StringBuilder();

    result.append(cc.createDisplayString());

    if(cc.getContextIsNotNull())
    {
        result.append(" - " + cc.getContext().getIItemText());
    }

    if(cc.getResponsibleHCPIsNotNull())
    {
        result.append(" - " + cc.getResponsibleHCP().getIHcpName());
    }

    return result.toString();
}
项目:openMAXIMS    文件:Logic.java   
private void bindCmbClinicalContact() 
{
    form.cmbCContant().clear();

    if(form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo)
    {
        ClinicalContactShortVoCollection clinicalContactList = domain.listClinicalContact(form.cmbCContext().getValue());

        for(int i=0; clinicalContactList != null && i<clinicalContactList.size(); i++)
        {
            ClinicalContactShortVo cc = clinicalContactList.get(i);

            if(cc != null)
            {
                form.cmbCContant().newRow(cc, getTextForClinicaContact(cc));
            }
        }

        if (clinicalContactList != null && clinicalContactList.size() == 1)
        {
            form.cmbCContant().setValue(clinicalContactList.get(0));
            selectClinicalContact();
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void selectEpisodeOfCare() 
{
    //  WDEV-13992
    if(form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo)
    {
        form.getLocalContext().setSelectedSpecialty(form.cmbEpisode().getValue().getSpecialty());
    }

    bindCmbCareContext();

    bindAndSelectSpecialty();// WDEV-13527

    form.ccResponsibleHcp().setValue(form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo ? form.cmbEpisode().getValue().getResponsibleHCP() : null);

    if(ConfigFlag.UI.DEFAULT_DOCUMENT_TO_CONTEXT_DATE.getValue())// WDEV-13413
    {
        form.dteDocumentDate().setValue(form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo ? form.cmbEpisode().getValue().getStartDate() : new Date());
    }
    else if(!(form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo))//  WDEV-13413
        form.dteDocumentDate().setValue(new Date());

    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void bindCmbCareContext() 
{
    form.cmbCContext().clear();
    form.cmbCContant().clear();

    if(form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo)
    {
        CareContextForPatientDocumentVoCollection careContextList = domain.listCareContext(form.cmbEpisode().getValue());

        for(int i=0; careContextList != null && i<careContextList.size(); i++)
        {
            CareContextForPatientDocumentVo cc = careContextList.get(i);

            if(cc != null)
            {
                form.cmbCContext().newRow(cc, getTextForCareContext(cc));
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void bindCmbClinicalContact() 
{
    form.cmbCContant().clear();

    if(form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo)
    {
        ClinicalContactShortVoCollection clinicalContactList = domain.listClinicalContact(form.cmbCContext().getValue());

        for(int i=0; clinicalContactList != null && i<clinicalContactList.size(); i++)
        {
            ClinicalContactShortVo cc = clinicalContactList.get(i);

            if(cc != null)
            {
                form.cmbCContant().newRow(cc, getTextForClinicaContact(cc));
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void selectEpisodeOfCare() 
{
    //  WDEV-13992
    if(form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo)
    {
        form.getLocalContext().setSelectedSpecialty(form.cmbEpisode().getValue().getSpecialty());
    }

    bindCmbCareContext();

    bindAndSelectSpecialty();// WDEV-13527

    form.ccResponsibleHcp().setValue(form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo ? form.cmbEpisode().getValue().getResponsibleHCP() : null);

    if(ConfigFlag.UI.DEFAULT_DOCUMENT_TO_CONTEXT_DATE.getValue())// WDEV-13413
    {
        form.dteDocumentDate().setValue(form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo ? form.cmbEpisode().getValue().getStartDate() : new Date());
    }
    else if(!(form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo))//  WDEV-13413
        form.dteDocumentDate().setValue(new Date());

    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void bindCmbCareContext() 
{
    form.cmbCContext().clear();
    form.cmbCContant().clear();

    if(form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo)
    {
        CareContextForPatientDocumentVoCollection careContextList = domain.listCareContext(form.cmbEpisode().getValue());

        for(int i=0; careContextList != null && i<careContextList.size(); i++)
        {
            CareContextForPatientDocumentVo cc = careContextList.get(i);

            if(cc != null)
            {
                form.cmbCContext().newRow(cc, getTextForCareContext(cc));
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private String getTextForCareContext(CareContextForPatientDocumentVo cc) 
{
    if(cc == null)
        return "";

    StringBuilder result = new StringBuilder();

    result.append(cc.createDisplayString());

    if(cc.getContextIsNotNull())
    {
        result.append(" - " + cc.getContext().getIItemText());
    }

    if(cc.getResponsibleHCPIsNotNull())
    {
        result.append(" - " + cc.getResponsibleHCP().getIHcpName());
    }

    return result.toString();
}
项目:openmaxims-linux    文件:Logic.java   
private void bindCmbClinicalContact() 
{
    form.cmbCContant().clear();

    if(form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo)
    {
        ClinicalContactShortVoCollection clinicalContactList = domain.listClinicalContact(form.cmbCContext().getValue());

        for(int i=0; clinicalContactList != null && i<clinicalContactList.size(); i++)
        {
            ClinicalContactShortVo cc = clinicalContactList.get(i);

            if(cc != null)
            {
                form.cmbCContant().newRow(cc, getTextForClinicaContact(cc));
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void selectEpisodeOfCare() 
{
    //  WDEV-13992
    if(form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo)
    {
        form.getLocalContext().setSelectedSpecialty(form.cmbEpisode().getValue().getSpecialty());
    }

    bindCmbCareContext();

    bindAndSelectSpecialty();// WDEV-13527

    form.ccResponsibleHcp().setValue(form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo ? form.cmbEpisode().getValue().getResponsibleHCP() : null);

    if(ConfigFlag.UI.DEFAULT_DOCUMENT_TO_CONTEXT_DATE.getValue())// WDEV-13413
    {
        form.dteDocumentDate().setValue(form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo ? form.cmbEpisode().getValue().getStartDate() : new Date());
    }
    else if(!(form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo))//  WDEV-13413
        form.dteDocumentDate().setValue(new Date());

    updateControlsState();
}
项目:openmaxims-linux    文件:Logic.java   
private void bindCmbCareContext() 
{
    form.cmbCContext().clear();
    form.cmbCContant().clear();

    if(form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo)
    {
        CareContextForPatientDocumentVoCollection careContextList = domain.listCareContext(form.cmbEpisode().getValue());

        for(int i=0; careContextList != null && i<careContextList.size(); i++)
        {
            CareContextForPatientDocumentVo cc = careContextList.get(i);

            if(cc != null)
            {
                form.cmbCContext().newRow(cc, getTextForCareContext(cc));
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private String getTextForCareContext(CareContextForPatientDocumentVo cc) 
{
    if(cc == null)
        return "";

    StringBuilder result = new StringBuilder();

    result.append(cc.createDisplayString());

    if(cc.getContextIsNotNull())
    {
        result.append(" - " + cc.getContext().getIItemText());
    }

    if(cc.getResponsibleHCPIsNotNull())
    {
        result.append(" - " + cc.getResponsibleHCP().getIHcpName());
    }

    return result.toString();
}
项目:AvoinApotti    文件:Logic.java   
private void selectCareContext() 
{
    bindCmbClinicalContact();

    if(ConfigFlag.UI.DEFAULT_DOCUMENT_TO_CONTEXT_DATE.getValue())// WDEV-13413
    {
        if(form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo)
        {
            form.dteDocumentDate().setValue(form.cmbCContext().getValue().getStartDateTime().getDate());
        }
        else
        {
            selectEpisodeOfCare();
        }
    }
    else if(form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo && ContextType.INPATIENT.equals(form.cmbCContext().getValue().getContext()) && form.cmbCContext().getValue().getStartDateTimeIsNotNull())//    WDEV-13413
    {
        form.dteDocumentDate().setValue(form.cmbCContext().getValue().getStartDateTime().getDate());
    }
    else
    {
        form.dteDocumentDate().setValue(new Date());
    }

    form.ccResponsibleHcp().setValue((form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo && form.cmbCContext().getValue().getResponsibleHCP() != null) ? form.cmbCContext().getValue().getResponsibleHCP() : (form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo ? form.cmbEpisode().getValue().getResponsibleHCP() : null));

    updateControlsState();
}
项目:AvoinApotti    文件:Logic.java   
private void updateControlsState() 
{
    form.cmbCContext().setEnabled(form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo);
    form.cmbCContant().setEnabled(form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo);

    selectMandatoryControls();
}
项目:openMAXIMS    文件:Logic.java   
private void updateControlsState() 
{
    form.cmbCContext().setEnabled(form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo);
    form.cmbCContant().setEnabled(form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo);

    selectMandatoryControls();
}
项目:openMAXIMS    文件:Logic.java   
private String getTextForCareContext(CareContextForPatientDocumentVo cc) 
{
    if(cc == null)
        return "";

    StringBuilder result = new StringBuilder();

    result.append(cc.createDisplayString());

    if(cc.getContextIsNotNull())
    {
        result.append(" - " + cc.getContext().getIItemText());
    }

    //WDEV-18219 
    if (Boolean.TRUE.equals(ConfigFlag.UI.PATIENT_CORRESPONDENCE_TEMPLATES_DEFAULT_SPECIALTY_FROM_CARE_CONTEXT.getValue()) && cc.getPasEventIsNotNull() && cc.getPasEvent().getSpecialtyIsNotNull())
    {
        result.append(" - " +  cc.getPasEvent().getSpecialty().getText());
    }

    if(cc.getResponsibleHCPIsNotNull())
    {
        result.append(" - " + cc.getResponsibleHCP().getIHcpName());
    }

    return result.toString();
}
项目:openMAXIMS    文件:Logic.java   
private void selectCareContext() 
{
    bindCmbClinicalContact();

    if(ConfigFlag.UI.DEFAULT_DOCUMENT_TO_CONTEXT_DATE.getValue())// WDEV-13413
    {
        if(form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo)
        {
            form.dteDocumentDate().setValue(form.cmbCContext().getValue().getStartDateTime().getDate());
        }
        else
        {
            selectEpisodeOfCare();
        }
    }
    else if(form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo && ContextType.INPATIENT.equals(form.cmbCContext().getValue().getContext()) && form.cmbCContext().getValue().getStartDateTimeIsNotNull())//    WDEV-13413
    {
        form.dteDocumentDate().setValue(form.cmbCContext().getValue().getStartDateTime().getDate());
    }
    else
    {
        form.dteDocumentDate().setValue(new Date());
    }

    form.ccResponsibleHcp().setValue((form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo && form.cmbCContext().getValue().getResponsibleHCP() != null) ? form.cmbCContext().getValue().getResponsibleHCP() : (form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo ? form.cmbEpisode().getValue().getResponsibleHCP() : null));

    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void updateControlsState() 
{
    form.cmbCContext().setEnabled(form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo);
    form.cmbCContant().setEnabled(form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo);

    selectMandatoryControls();
}
项目:openmaxims-linux    文件:Logic.java   
private void selectCareContext() 
{
    bindCmbClinicalContact();

    if(ConfigFlag.UI.DEFAULT_DOCUMENT_TO_CONTEXT_DATE.getValue())// WDEV-13413
    {
        if(form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo)
        {
            form.dteDocumentDate().setValue(form.cmbCContext().getValue().getStartDateTime().getDate());
        }
        else
        {
            selectEpisodeOfCare();
        }
    }
    else if(form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo && ContextType.INPATIENT.equals(form.cmbCContext().getValue().getContext()) && form.cmbCContext().getValue().getStartDateTimeIsNotNull())//    WDEV-13413
    {
        form.dteDocumentDate().setValue(form.cmbCContext().getValue().getStartDateTime().getDate());
    }
    else
    {
        form.dteDocumentDate().setValue(new Date());
    }

    form.ccResponsibleHcp().setValue((form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo && form.cmbCContext().getValue().getResponsibleHCP() != null) ? form.cmbCContext().getValue().getResponsibleHCP() : (form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo ? form.cmbEpisode().getValue().getResponsibleHCP() : null));

    updateControlsState();
}
项目:openmaxims-linux    文件:Logic.java   
private void updateControlsState() 
{
    form.cmbCContext().setEnabled(form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo);
    form.cmbCContant().setEnabled(form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo);

    selectMandatoryControls();
}
项目:AvoinApotti    文件:Logic.java   
private void initialize() throws PresentationLogicException 
{
    Object mosUser = domain.getMosUser();
    if(mosUser == null)
        throw new PresentationLogicException("User must be a Member of Staff.");

    createDynamicGridColumns();

    bindEpisodeCombo();

    form.cmbEpisode().setValue(form.getGlobalContext().Core.getEpisodeofCareShort());

    selectEpisodeOfCare();//WDEV-13520

    if (form.getGlobalContext().Core.getCurrentCareContextIsNotNull())
    {
        form.cmbCContext().setValue(new CareContextForPatientDocumentVo(form.getGlobalContext().Core.getCurrentCareContext().getID_CareContext(),form.getGlobalContext().Core.getCurrentCareContext().getVersion_CareContext()));
    }

    selectCareContext();//WDEV-13520

    form.cmbCContant().setValue(form.getGlobalContext().Core.getCurrentClinicalContact());
    //wdev-15533

    if( form.cmbCContant().getValue() != null && form.cmbCContant().getValue() instanceof ClinicalContactShortVo)
    {
        if(form.cmbSpecialty().getValues().contains(form.cmbCContant().getValue().getSpecialty()))
        {
            form.cmbSpecialty().setValue(form.cmbCContant().getValue().getSpecialty());
            form.getLocalContext().setSelectedSpecialty(form.cmbCContant().getValue().getSpecialty());
        }
        else
        {
            form.getLocalContext().setSelectedSpecialty(null);
            form.cmbSpecialty().setValue(null);
        }
    }
    //-----------

    form.ccAuthoring().initialize(MosType.HCP);
    form.ccAuthoring().isRequired(true);

    form.ccTypist().initialize(MosType.ALL);
    form.ccTypist().isRequired(true);


    form.ccResponsibleHcp().initializeResponsibleHcp(MosType.HCP, true);//WDEV-15836


    Object hcpUser = domain.getHcpLiteUser();
    if(hcpUser instanceof HcpLiteVo)
    {
        form.ccAuthoring().setValue((IMos) hcpUser);
    }
    if(mosUser instanceof MemberOfStaffShortVo)
    {
        form.ccTypist().setValue((IMos) mosUser);
    }

    form.dteDocumentDate().setValue(getDefaultEventDate());//   WDEV-13413
    if(ConfigFlag.UI.CORRESPONDENCE_DISPLAY_PATIENT_SUMMARY_NOTE_COMBO.getValue() == true) //wdev-14230
    {
        form.cmbSummaryNote().setVisible(Boolean.TRUE);
        populateSummaryNoteCombo(); //wdev-14230
        form.lblSummaryNote().setVisible(Boolean.TRUE);
    }
    else
    {
        form.cmbSummaryNote().setVisible(Boolean.FALSE);
        form.lblSummaryNote().setVisible(Boolean.FALSE);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void selectCareContext() 
{
    // WDEV-18219
    if (ConfigFlag.UI.PATIENT_CORRESPONDENCE_TEMPLATES_DEFAULT_SPECIALTY_FROM_CARE_CONTEXT.getValue())
    {
        if (form.cmbCContext().getValue() != null && form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo && form.cmbCContext().getValue().getPasEventIsNotNull())
            form.getLocalContext().setSelectedSpecialty(form.cmbCContext().getValue().getPasEvent().getSpecialty());
        else if (form.cmbEpisode().getValue() != null && form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo)
            form.getLocalContext().setSelectedSpecialty(form.cmbEpisode().getValue().getSpecialty());

        bindAndSelectSpecialty();
    }

    bindCmbClinicalContact();

    if(ConfigFlag.UI.DEFAULT_DOCUMENT_TO_CONTEXT_DATE.getValue())// WDEV-13413
    {
        if(form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo)
        {
            form.dteDocumentDate().setValue(form.cmbCContext().getValue().getStartDateTime().getDate());
        }
        else
        {
            selectEpisodeOfCare();
        }
    }
    else if(form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo && ContextType.INPATIENT.equals(form.cmbCContext().getValue().getContext()) && form.cmbCContext().getValue().getStartDateTimeIsNotNull())//    WDEV-13413
    {
        form.dteDocumentDate().setValue(form.cmbCContext().getValue().getStartDateTime().getDate());
    }
    else if (form.cmbCContext().getValue() == null)
    {
        selectEpisodeOfCare();
    }
    else
    {
        form.dteDocumentDate().setValue(new Date());
    }

    form.ccResponsibleHcp().setValue((form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo && form.cmbCContext().getValue().getResponsibleHCP() != null) ? form.cmbCContext().getValue().getResponsibleHCP() : (form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo ? form.cmbEpisode().getValue().getResponsibleHCP() : null));

    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void selectClinicalContact() 
{
    if(ConfigFlag.UI.DEFAULT_DOCUMENT_TO_CONTEXT_DATE.getValue())
    {
        if(form.cmbCContant().getValue() instanceof ClinicalContactShortVo)
        {
            form.dteDocumentDate().setValue(form.cmbCContant().getValue().getStartDateTime().getDate());
        }
        else
        {
            selectCareContext();
        }
    }
    //wdev-15533
    if( form.cmbCContant().getValue() != null && form.cmbCContant().getValue() instanceof ClinicalContactShortVo)
    {
        if(form.cmbSpecialty().getValues().contains(form.cmbCContant().getValue().getSpecialty()))
        {
            form.cmbSpecialty().setValue(form.cmbCContant().getValue().getSpecialty());
            form.getLocalContext().setSelectedSpecialty(form.cmbCContant().getValue().getSpecialty());
        }
        else
        {
            form.getLocalContext().setSelectedSpecialty(null);
            form.cmbSpecialty().setValue(null);
        }
    }
    else
    {
        if( Boolean.TRUE.equals(ConfigFlag.UI.PATIENT_CORRESPONDENCE_TEMPLATES_DEFAULT_SPECIALTY_FROM_CARE_CONTEXT.getValue()) && form.cmbCContext().getValue() != null && form.cmbCContext().getValue() instanceof CareContextForPatientDocumentVo && form.cmbCContext().getValue().getPasEventIsNotNull())
        {
            form.getLocalContext().setSelectedSpecialty(form.cmbCContext().getValue().getPasEvent().getSpecialty());
            form.cmbSpecialty().setValue(form.cmbCContext().getValue().getPasEvent().getSpecialty());
        } 
        else if( form.cmbEpisode().getValue() != null && form.cmbEpisode().getValue() instanceof EpisodeofCareShortVo)
        {
            form.getLocalContext().setSelectedSpecialty(form.cmbEpisode().getValue().getSpecialty());
            form.cmbSpecialty().setValue(form.cmbEpisode().getValue().getSpecialty());
        } 
        else
        {
            form.cmbSpecialty().setValue(null);
            form.getLocalContext().setSelectedSpecialty(null);
        }


    }
    //end wdev-15533

}
项目:openMAXIMS    文件:Logic.java   
private void initialize() throws PresentationLogicException 
{
    Object mosUser = domain.getMosUser();
    if(mosUser == null)
        throw new PresentationLogicException("User must be a Member of Staff.");

    createDynamicGridColumns();

    bindEpisodeCombo();

    form.cmbEpisode().setValue(form.getGlobalContext().Core.getEpisodeofCareShort());

    selectEpisodeOfCare();//WDEV-13520

    if (form.getGlobalContext().Core.getCurrentCareContextIsNotNull())
    {
        form.cmbCContext().setValue(new CareContextForPatientDocumentVo(form.getGlobalContext().Core.getCurrentCareContext().getID_CareContext(),form.getGlobalContext().Core.getCurrentCareContext().getVersion_CareContext()));
    }

    selectCareContext();//WDEV-13520

    form.cmbCContant().setValue(form.getGlobalContext().Core.getCurrentClinicalContact());
    //wdev-15533

    if( form.cmbCContant().getValue() != null && form.cmbCContant().getValue() instanceof ClinicalContactShortVo)
    {
        if(form.cmbSpecialty().getValues().contains(form.cmbCContant().getValue().getSpecialty()))
        {
            form.cmbSpecialty().setValue(form.cmbCContant().getValue().getSpecialty());
            form.getLocalContext().setSelectedSpecialty(form.cmbCContant().getValue().getSpecialty());
        }
        else
        {
            form.getLocalContext().setSelectedSpecialty(null);
            form.cmbSpecialty().setValue(null);
        }
    }
    //-----------

    form.ccAuthoring().initialize(MosType.HCP);
    form.ccAuthoring().isRequired(true);

    form.ccTypist().initialize(MosType.ALL);
    form.ccTypist().isRequired(true);


    form.ccResponsibleHcp().initializeResponsibleHcp(MosType.HCP, true);//WDEV-15836


    Object hcpUser = domain.getHcpLiteUser();
    if(hcpUser instanceof HcpLiteVo)
    {
        form.ccAuthoring().setValue((IMos) hcpUser);
    }
    if(mosUser instanceof MemberOfStaffShortVo)
    {
        form.ccTypist().setValue((IMos) mosUser);
    }

    form.dteDocumentDate().setValue(getDefaultEventDate());//   WDEV-13413
    if(ConfigFlag.UI.CORRESPONDENCE_DISPLAY_PATIENT_SUMMARY_NOTE_COMBO.getValue() == true) //wdev-14230
    {
        form.cmbSummaryNote().setVisible(Boolean.TRUE);
        populateSummaryNoteCombo(); //wdev-14230
        form.lblSummaryNote().setVisible(Boolean.TRUE);
    }
    else
    {
        form.cmbSummaryNote().setVisible(Boolean.FALSE);
        form.lblSummaryNote().setVisible(Boolean.FALSE);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void initialize() throws PresentationLogicException 
{
    Object mosUser = domain.getMosUser();
    if(mosUser == null)
        throw new PresentationLogicException("User must be a Member of Staff.");

    createDynamicGridColumns();

    bindEpisodeCombo();

    form.cmbEpisode().setValue(form.getGlobalContext().Core.getEpisodeofCareShort());

    selectEpisodeOfCare();//WDEV-13520

    if (form.getGlobalContext().Core.getCurrentCareContextIsNotNull())
    {
        form.cmbCContext().setValue(new CareContextForPatientDocumentVo(form.getGlobalContext().Core.getCurrentCareContext().getID_CareContext(),form.getGlobalContext().Core.getCurrentCareContext().getVersion_CareContext()));
    }

    selectCareContext();//WDEV-13520

    form.cmbCContant().setValue(form.getGlobalContext().Core.getCurrentClinicalContact());
    //wdev-15533

    if( form.cmbCContant().getValue() != null && form.cmbCContant().getValue() instanceof ClinicalContactShortVo)
    {
        if(form.cmbSpecialty().getValues().contains(form.cmbCContant().getValue().getSpecialty()))
        {
            form.cmbSpecialty().setValue(form.cmbCContant().getValue().getSpecialty());
            form.getLocalContext().setSelectedSpecialty(form.cmbCContant().getValue().getSpecialty());
        }
        else
        {
            form.getLocalContext().setSelectedSpecialty(null);
            form.cmbSpecialty().setValue(null);
        }
    }
    //-----------

    form.ccAuthoring().initialize(MosType.HCP);
    form.ccAuthoring().isRequired(true);

    form.ccTypist().initialize(MosType.ALL);
    form.ccTypist().isRequired(true);


    form.ccResponsibleHcp().initializeResponsibleHcp(MosType.HCP, true);//WDEV-15836


    Object hcpUser = domain.getHcpLiteUser();
    if(hcpUser instanceof HcpLiteVo)
    {
        form.ccAuthoring().setValue((IMos) hcpUser);
    }
    if(mosUser instanceof MemberOfStaffShortVo)
    {
        form.ccTypist().setValue((IMos) mosUser);
    }

    form.dteDocumentDate().setValue(getDefaultEventDate());//   WDEV-13413
    if(ConfigFlag.UI.CORRESPONDENCE_DISPLAY_PATIENT_SUMMARY_NOTE_COMBO.getValue() == true) //wdev-14230
    {
        form.cmbSummaryNote().setVisible(Boolean.TRUE);
        populateSummaryNoteCombo(); //wdev-14230
        form.lblSummaryNote().setVisible(Boolean.TRUE);
    }
    else
    {
        form.cmbSummaryNote().setVisible(Boolean.FALSE);
        form.lblSummaryNote().setVisible(Boolean.FALSE);
    }
}