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

项目: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 void bindEpisodeCombo()
{
    form.cmbEpisode().clear();

    EpisodeofCareShortVoCollection listEpisodesOfCare = domain.listEpisodesOfCare(form.getGlobalContext().Core.getPatientShort());

    for (int i = 0 ; listEpisodesOfCare != null && i < listEpisodesOfCare.size() ; i++)
    {
        EpisodeofCareShortVo eoc = listEpisodesOfCare.get(i);

        if (eoc != null)
        {
            form.cmbEpisode().newRow(eoc, getTextForEOC(eoc));
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private String getTextForEOC(EpisodeofCareShortVo eoc)
{
    if (eoc == null)
        return "";

    StringBuilder result = new StringBuilder();

    result.append(eoc.createDisplayString());

    if (eoc.getSpecialtyIsNotNull())
    {
        result.append(" - " + eoc.getSpecialty().getText());
    }
    if (eoc.getResponsibleHCPIsNotNull())
    {
        result.append(" - " + eoc.getResponsibleHCP().getIHcpName());
    }

    return result.toString();
}
项目:AvoinApotti    文件:Logic.java   
public void initialize(PatientShort patient, EpisodeofCareShortVo episodeOfCare, CareContextShortVo careContext, AdmissionDetailVo admissionDetail)
{
    form.getLocalContext().setPatient(patient);

    if (careContext != null)
        form.getLocalContext().setCareContext(domain.getCareContext(careContext));

    form.getLocalContext().setCurrentAdmissionDetail(admissionDetail);

    form.ccAdmittingConsultant().initialize(null, MedicGrade.CONS);
    form.ccAdmittingConsultant().isRequired(true);

    removeItemsFromReferredAdmittedComboBoxes();
    populateWardsCombo();
    open();
    updateControlsState();

}
项目:AvoinApotti    文件:Logic.java   
private void bindEpisodeCombo() throws PresentationLogicException
{
    form.cmbEpisodes().clear();

    EpisodeofCareShortVoCollection listEpisodesOfCare = domain.listEpisodesOfCare(form.getGlobalContext().Core.getPatientShort());

    for (int i = 0 ; listEpisodesOfCare != null && i < listEpisodesOfCare.size() ; i++)
    {
        EpisodeofCareShortVo eoc = listEpisodesOfCare.get(i);

        if (eoc != null)
        {
            form.cmbEpisodes().newRow(eoc, getTextForEOC(eoc));
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private String getTextForEOC(EpisodeofCareShortVo eoc)
{
    if (eoc == null)
        return "";

    StringBuilder result = new StringBuilder();

    result.append(eoc.createDisplayString());

    if (eoc.getSpecialtyIsNotNull())
    {
        result.append(" - " + eoc.getSpecialty().getText());
    }
    if (eoc.getResponsibleHCPIsNotNull())
    {
        result.append(" - " + eoc.getResponsibleHCP().getIHcpName());
    }

    return result.toString();
}
项目:AvoinApotti    文件:Logic.java   
private void bindEpisodeCombo() throws PresentationLogicException
{
    form.cmbEpisodes().clear();

    EpisodeofCareShortVoCollection listEpisodesOfCare = domain.listEpisodesOfCare(form.getGlobalContext().Core.getPatientShort());

    for (int i = 0 ; listEpisodesOfCare != null && i < listEpisodesOfCare.size() ; i++)
    {
        EpisodeofCareShortVo eoc = listEpisodesOfCare.get(i);

        if (eoc != null)
        {
            form.cmbEpisodes().newRow(eoc, getTextForEOC(eoc));
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private String getTextForEOC(EpisodeofCareShortVo eoc)
{
    if (eoc == null)
        return "";

    StringBuilder result = new StringBuilder();

    result.append(eoc.createDisplayString());

    if (eoc.getSpecialtyIsNotNull())
    {
        result.append(" - " + eoc.getSpecialty().getText());
    }
    if (eoc.getResponsibleHCPIsNotNull())
    {
        result.append(" - " + eoc.getResponsibleHCP().getIHcpName());
    }

    return result.toString();
}
项目:AvoinApotti    文件:ReferralDetailsComponentImpl.java   
private EpisodeofCareShortVo updateEpisodeOfCareSpecialty(CatsReferralWizardVo catsReferralVo, ReferralLetterDetailsVo referralDetailsVo, DomainFactory factory) throws StaleObjectException
{
    CareContextVo voCC = CareContextVoAssembler.create((CareContext) getDomainFactory().getDomainObject(CareContext.class, catsReferralVo.getCareContext().getID_CareContext()));
    ServiceVo voServ = ServiceVoAssembler.create((ims.core.clinical.domain.objects.Service) getDomainFactory().getDomainObject(ims.core.clinical.domain.objects.Service.class, referralDetailsVo.getService().getID_Service()));

    EpisodeOfCare doEOC = (EpisodeOfCare) factory.getDomainObject(EpisodeOfCare.class, voCC.getEpisodeOfCare().getID_EpisodeOfCare());
    if (doEOC != null)
    {
        //WDEV-11535 - if referral service.specialty is null set it back to DAD
        Specialty spec = null;
        if(voServ.getSpecialty() == null)
            spec = Specialty.DAD;
        else
            spec = voServ.getSpecialty();

        doEOC.setSpecialty(getDomLookup(spec));         
        factory.save(doEOC);

        return EpisodeofCareShortVoAssembler.create(doEOC);
    }

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private void reselectGrid()
{
    CareSpellVo vocareSpell = form.getGlobalContext().Clinical.PatientSummary.getCareSpell();
    ClinicalContactShortVo voContact = form.getGlobalContext().Core.getCurrentClinicalContact();
    CareContextShortVo voCareContext = form.getGlobalContext().Core.getCurrentCareContext();
    EpisodeofCareShortVo voEpisodeOfCare = form.getGlobalContext().Core.getEpisodeofCareShort();

    if (voContact != null)
        form.dyngrdList().setValue(voContact);
    else if (voCareContext != null)
        form.dyngrdList().setValue(voCareContext);
    else if (voEpisodeOfCare != null)
        form.dyngrdList().setValue(voEpisodeOfCare);
    else if (vocareSpell != null) // WDEV-14578
        form.dyngrdList().setValue(vocareSpell);
    else
    {
        updateControlsState();
        return;
    }

    gridListSelectionChanged();
}
项目:AvoinApotti    文件:Logic.java   
private void reselectGrid()
{
    CareSpellVo vocareSpell = form.getGlobalContext().Clinical.PatientSummary.getCareSpell();
    ClinicalContactShortVo voContact = form.getGlobalContext().Core.getCurrentClinicalContact();
    CareContextShortVo voCareContext = form.getGlobalContext().Core.getCurrentCareContext();
    EpisodeofCareShortVo voEpisodeOfCare = form.getGlobalContext().Core.getEpisodeofCareShort();

    if(voContact != null)
        form.grdList().setValue(voContact);
    else if(voCareContext != null)
        form.grdList().setValue(voCareContext);
    else if(voEpisodeOfCare != null)
        form.grdList().setValue(voEpisodeOfCare);
    else if (vocareSpell != null) //WDEV-14578
        form.grdList().setValue(vocareSpell);
    else
    {
        updateControlsState();
        return;
    }

    gridListSelectionChanged();
}
项目: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 bindEpisodeCombo()
{
    form.cmbEpisode().clear();

    EpisodeofCareShortVoCollection listEpisodesOfCare = domain.listEpisodesOfCare(form.getGlobalContext().Core.getPatientShort());

    for (int i = 0 ; listEpisodesOfCare != null && i < listEpisodesOfCare.size() ; i++)
    {
        EpisodeofCareShortVo eoc = listEpisodesOfCare.get(i);

        if (eoc != null)
        {
            form.cmbEpisode().newRow(eoc, getTextForEOC(eoc));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private String getTextForEOC(EpisodeofCareShortVo eoc)
{
    if (eoc == null)
        return "";

    StringBuilder result = new StringBuilder();

    result.append(eoc.createDisplayString());

    if (eoc.getSpecialtyIsNotNull())
    {
        result.append(" - " + eoc.getSpecialty().getText());
    }
    if (eoc.getResponsibleHCPIsNotNull())
    {
        result.append(" - " + eoc.getResponsibleHCP().getIHcpName());
    }

    return result.toString();
}
项目:openMAXIMS    文件:Logic.java   
private void bindEpisodeCombo() throws PresentationLogicException
{
    form.cmbEpisodes().clear();

    EpisodeofCareShortVoCollection listEpisodesOfCare = domain.listEpisodesOfCare(form.getGlobalContext().Core.getPatientShort());

    for (int i = 0 ; listEpisodesOfCare != null && i < listEpisodesOfCare.size() ; i++)
    {
        EpisodeofCareShortVo eoc = listEpisodesOfCare.get(i);

        if (eoc != null)
        {
            form.cmbEpisodes().newRow(eoc, getTextForEOC(eoc));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private String getTextForEOC(EpisodeofCareShortVo eoc)
{
    if (eoc == null)
        return "";

    StringBuilder result = new StringBuilder();

    result.append(eoc.createDisplayString());

    if (eoc.getSpecialtyIsNotNull())
    {
        result.append(" - " + eoc.getSpecialty().getText());
    }
    if (eoc.getResponsibleHCPIsNotNull())
    {
        result.append(" - " + eoc.getResponsibleHCP().getIHcpName());
    }

    return result.toString();
}
项目:openmaxims-linux    文件:Logic.java   
private String getTextForEOC(EpisodeofCareShortVo eoc)
{
    if (eoc == null)
        return "";

    StringBuilder result = new StringBuilder();

    result.append(eoc.createDisplayString());

    if (eoc.getSpecialtyIsNotNull())
    {
        result.append(" - " + eoc.getSpecialty().getText());
    }
    if (eoc.getResponsibleHCPIsNotNull())
    {
        result.append(" - " + eoc.getResponsibleHCP().getIHcpName());
    }

    return result.toString();
}
项目:openMAXIMS    文件:Logic.java   
private String getTextForEOC(EpisodeofCareShortVo eoc)
{
    if (eoc == null)
        return "";

    StringBuilder result = new StringBuilder();

    result.append(eoc.createDisplayString());

    if (eoc.getSpecialtyIsNotNull())
    {
        result.append(" - " + eoc.getSpecialty().getText());
    }
    if (eoc.getResponsibleHCPIsNotNull())
    {
        result.append(" - " + eoc.getResponsibleHCP().getIHcpName());
    }

    return result.toString();
}
项目:openmaxims-linux    文件:Logic.java   
private void bindEpisodeCombo() throws PresentationLogicException
{
    form.cmbEpisodes().clear();

    EpisodeofCareShortVoCollection listEpisodesOfCare = domain.listEpisodesOfCare(form.getGlobalContext().Core.getPatientShort());

    for (int i = 0 ; listEpisodesOfCare != null && i < listEpisodesOfCare.size() ; i++)
    {
        EpisodeofCareShortVo eoc = listEpisodesOfCare.get(i);

        if (eoc != null)
        {
            form.cmbEpisodes().newRow(eoc, getTextForEOC(eoc));
        }
    }
}
项目:openMAXIMS    文件:ReferralDetailsComponentImpl.java   
private EpisodeofCareShortVo updateEpisodeOfCareSpecialty(CatsReferralWizardVo catsReferralVo, ReferralLetterDetailsVo referralDetailsVo, DomainFactory factory) throws StaleObjectException
{
    CareContextVo voCC = CareContextVoAssembler.create((CareContext) getDomainFactory().getDomainObject(CareContext.class, catsReferralVo.getCareContext().getID_CareContext()));
    ServiceVo voServ = ServiceVoAssembler.create((ims.core.clinical.domain.objects.Service) getDomainFactory().getDomainObject(ims.core.clinical.domain.objects.Service.class, referralDetailsVo.getService().getID_Service()));

    EpisodeOfCare doEOC = (EpisodeOfCare) factory.getDomainObject(EpisodeOfCare.class, voCC.getEpisodeOfCare().getID_EpisodeOfCare());
    if (doEOC != null)
    {
        //WDEV-11535 - if referral service.specialty is null set it back to DAD
        Specialty spec = null;
        if(voServ.getSpecialty() == null)
            spec = Specialty.DAD;
        else
            spec = voServ.getSpecialty();

        doEOC.setSpecialty(getDomLookup(spec));         
        factory.save(doEOC);

        return EpisodeofCareShortVoAssembler.create(doEOC);
    }

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private void bindEpisodeCombo()
{
    form.cmbEpisode().clear();

    EpisodeofCareShortVoCollection listEpisodesOfCare = domain.listEpisodesOfCare(form.getGlobalContext().Core.getPatientShort());

    for (int i = 0 ; listEpisodesOfCare != null && i < listEpisodesOfCare.size() ; i++)
    {
        EpisodeofCareShortVo eoc = listEpisodesOfCare.get(i);

        if (eoc != null)
        {
            form.cmbEpisode().newRow(eoc, getTextForEOC(eoc));
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private String getTextForEOC(EpisodeofCareShortVo eoc)
{
    if (eoc == null)
        return "";

    StringBuilder result = new StringBuilder();

    result.append(eoc.createDisplayString());

    if (eoc.getSpecialtyIsNotNull())
    {
        result.append(" - " + eoc.getSpecialty().getText());
    }
    if (eoc.getResponsibleHCPIsNotNull())
    {
        result.append(" - " + eoc.getResponsibleHCP().getIHcpName());
    }

    return result.toString();
}
项目:openMAXIMS    文件:Logic.java   
private void reselectGrid()
{
    CareSpellVo vocareSpell = form.getGlobalContext().Clinical.PatientSummary.getCareSpell();
    ClinicalContactShortVo voContact = form.getGlobalContext().Core.getCurrentClinicalContact();
    CareContextShortVo voCareContext = form.getGlobalContext().Core.getCurrentCareContext();
    EpisodeofCareShortVo voEpisodeOfCare = form.getGlobalContext().Core.getEpisodeofCareShort();

    if(voContact != null)
        form.grdList().setValue(voContact);
    else if(voCareContext != null)
        form.grdList().setValue(voCareContext);
    else if(voEpisodeOfCare != null)
        form.grdList().setValue(voEpisodeOfCare);
    else if (vocareSpell != null) //WDEV-14578
        form.grdList().setValue(vocareSpell);
    else
    {
        updateControlsState();
        return;
    }

    gridListSelectionChanged();
}
项目:openmaxims-linux    文件:Logic.java   
private void reselectGrid()
{
    CareSpellVo vocareSpell = form.getGlobalContext().Clinical.PatientSummary.getCareSpell();
    ClinicalContactShortVo voContact = form.getGlobalContext().Core.getCurrentClinicalContact();
    CareContextShortVo voCareContext = form.getGlobalContext().Core.getCurrentCareContext();
    EpisodeofCareShortVo voEpisodeOfCare = form.getGlobalContext().Core.getEpisodeofCareShort();

    if(voContact != null)
        form.grdList().setValue(voContact);
    else if(voCareContext != null)
        form.grdList().setValue(voCareContext);
    else if(voEpisodeOfCare != null)
        form.grdList().setValue(voEpisodeOfCare);
    else if (vocareSpell != null) //WDEV-14578
        form.grdList().setValue(vocareSpell);
    else
    {
        updateControlsState();
        return;
    }

    gridListSelectionChanged();
}
项目: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 bindEpisodeCombo()
{
    form.cmbEpisode().clear();

    EpisodeofCareShortVoCollection listEpisodesOfCare = domain.listEpisodesOfCare(form.getGlobalContext().Core.getPatientShort());

    for (int i = 0 ; listEpisodesOfCare != null && i < listEpisodesOfCare.size() ; i++)
    {
        EpisodeofCareShortVo eoc = listEpisodesOfCare.get(i);

        if (eoc != null)
        {
            form.cmbEpisode().newRow(eoc, getTextForEOC(eoc));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
public void initialize(PatientShort patient, EpisodeofCareShortVo episodeOfCare, CareContextShortVo careContext, AdmissionDetailVo admissionDetail)
{
    form.getLocalContext().setPatient(patient);

    if (careContext != null)
        form.getLocalContext().setCareContext(domain.getCareContext(careContext));

    form.getLocalContext().setCurrentAdmissionDetail(admissionDetail);

    form.ccAdmittingConsultant().initialize(null, MedicGrade.CONS);
    form.ccAdmittingConsultant().isRequired(true);

    removeItemsFromReferredAdmittedComboBoxes();
    populateWardsCombo();
    open();
    updateControlsState();

}
项目:openMAXIMS    文件:Logic.java   
private void bindEpisodeCombo() throws PresentationLogicException
{
    form.cmbEpisodes().clear();

    EpisodeofCareShortVoCollection listEpisodesOfCare = domain.listEpisodesOfCare(form.getGlobalContext().Core.getPatientShort());

    for (int i = 0 ; listEpisodesOfCare != null && i < listEpisodesOfCare.size() ; i++)
    {
        EpisodeofCareShortVo eoc = listEpisodesOfCare.get(i);

        if (eoc != null)
        {
            form.cmbEpisodes().newRow(eoc, getTextForEOC(eoc));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void bindEpisodeCombo() throws PresentationLogicException
{
    form.cmbEpisodes().clear();

    EpisodeofCareShortVoCollection listEpisodesOfCare = domain.listEpisodesOfCare(form.getGlobalContext().Core.getPatientShort());

    for (int i = 0 ; listEpisodesOfCare != null && i < listEpisodesOfCare.size() ; i++)
    {
        EpisodeofCareShortVo eoc = listEpisodesOfCare.get(i);

        if (eoc != null)
        {
            form.cmbEpisodes().newRow(eoc, getTextForEOC(eoc));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private String getTextForEOC(EpisodeofCareShortVo eoc)
{
    if (eoc == null)
        return "";

    StringBuilder result = new StringBuilder();

    result.append(eoc.createDisplayString());

    if (eoc.getSpecialtyIsNotNull())
    {
        result.append(" - " + eoc.getSpecialty().getText());
    }
    if (eoc.getResponsibleHCPIsNotNull())
    {
        result.append(" - " + eoc.getResponsibleHCP().getIHcpName());
    }

    return result.toString();
}
项目:openmaxims-linux    文件:Logic.java   
private void reselectGrid()
{
    CareSpellVo vocareSpell = form.getGlobalContext().Clinical.PatientSummary.getCareSpell();
    ClinicalContactShortVo voContact = form.getGlobalContext().Core.getCurrentClinicalContact();
    CareContextShortVo voCareContext = form.getGlobalContext().Core.getCurrentCareContext();
    EpisodeofCareShortVo voEpisodeOfCare = form.getGlobalContext().Core.getEpisodeofCareShort();

    if (voContact != null)
        form.dyngrdList().setValue(voContact);
    else if (voCareContext != null)
        form.dyngrdList().setValue(voCareContext);
    else if (voEpisodeOfCare != null)
        form.dyngrdList().setValue(voEpisodeOfCare);
    else if (vocareSpell != null) // WDEV-14578
        form.dyngrdList().setValue(vocareSpell);
    else
    {
        updateControlsState();
        return;
    }

    gridListSelectionChanged();
}
项目:openmaxims-linux    文件:Logic.java   
private String getTextForEOC(EpisodeofCareShortVo eoc)
{
    if (eoc == null)
        return "";

    StringBuilder result = new StringBuilder();

    result.append(eoc.createDisplayString());

    if (eoc.getSpecialtyIsNotNull())
    {
        result.append(" - " + eoc.getSpecialty().getText());
    }
    if (eoc.getResponsibleHCPIsNotNull())
    {
        result.append(" - " + eoc.getResponsibleHCP().getIHcpName());
    }

    return result.toString();
}
项目:openMAXIMS    文件:Logic.java   
private void reselectGrid()
{
    CareSpellVo vocareSpell = form.getGlobalContext().Clinical.PatientSummary.getCareSpell();
    ClinicalContactShortVo voContact = form.getGlobalContext().Core.getCurrentClinicalContact();
    CareContextShortVo voCareContext = form.getGlobalContext().Core.getCurrentCareContext();
    EpisodeofCareShortVo voEpisodeOfCare = form.getGlobalContext().Core.getEpisodeofCareShort();

    if(voContact != null)
        form.grdList().setValue(voContact);
    else if(voCareContext != null)
        form.grdList().setValue(voCareContext);
    else if(voEpisodeOfCare != null)
        form.grdList().setValue(voEpisodeOfCare);
    else if (vocareSpell != null) //WDEV-14578
        form.grdList().setValue(vocareSpell);
    else
    {
        updateControlsState();
        return;
    }

    gridListSelectionChanged();
}
项目:openmaxims-linux    文件:Logic.java   
private void bindEpisodeCombo() throws PresentationLogicException
{
    form.cmbEpisodes().clear();

    EpisodeofCareShortVoCollection listEpisodesOfCare = domain.listEpisodesOfCare(form.getGlobalContext().Core.getPatientShort());

    for (int i = 0 ; listEpisodesOfCare != null && i < listEpisodesOfCare.size() ; i++)
    {
        EpisodeofCareShortVo eoc = listEpisodesOfCare.get(i);

        if (eoc != null)
        {
            form.cmbEpisodes().newRow(eoc, getTextForEOC(eoc));
        }
    }
}
项目: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();
}
项目:AvoinApotti    文件:Logic.java   
private WaitingTimesAdjustmentsAndReasonsVo getAndDisplayRecord(EpisodeofCareShortVo voEpisodeofCareShort) 
{
    clear();

    if(voEpisodeofCareShort == null)
        return null;

    WaitingTimesAdjustmentsAndReasonsVo record = domain.getRecord(voEpisodeofCareShort);
    form.getLocalContext().seteditedRecord(record);

    populateScreenFromData(record); 

    return record;  
}
项目: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();
}