Java 类ims.therapies.vo.HomeVisitShortVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void loadHomeVisitsOfCareContext(HomeVisitShortVoCollection voHomeVisitShortColl)
{
    if(voHomeVisitShortColl != null)
    {
        voHomeVisitShortColl.sort(); //WDEV-13700
        for(int i=0; i<voHomeVisitShortColl.size(); i++)
        {
            HomeVisitShortVo voHomeVisit = voHomeVisitShortColl.get(i);
            if(voHomeVisit.getClinicalContact() == null && voHomeVisit.getCareContext().getID_CareContext().equals(form.getGlobalContext().Core.getCurrentCareContext().getID_CareContext()))
            {
                loadHomeVisitsForACareContext(voHomeVisit);
            }
            else //start WDEV-13700
                if (voHomeVisit !=null && voHomeVisit.getIsRIE() != null && voHomeVisit.getIsRIE()) 
                {
                    form.recbrContact().newRow(voHomeVisit, "\t\t\t\tClinical Contact:"+ voHomeVisit.getClinicalContact().getStartDateTime() +" - "+ voHomeVisit.getClinicalContact().getSeenBy());
                }
                //end
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private boolean loadHomeVisitsOfClinicalContact(HomeVisitShortVo voHomeVisit)
{
    ClinicalContactShortVo voClinicalContact = form.getGlobalContext().Core.getCurrentClinicalContact();
    //A Clinical Contact can only have one Environmental Visit Record
    if(voClinicalContact != null && voClinicalContact.getID_ClinicalContact().equals(voHomeVisit.getClinicalContact().getID_ClinicalContact()))
    {
        //this Clinical Contact has been selected from the patient summary
        loadCurrentClinicalContact(voHomeVisit.getClinicalContact(), Color.Green);
        return true;
    }
    else
    {
        loadCurrentClinicalContact(voHomeVisit.getClinicalContact(), null);
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void browserRecord()
{
    clearInstanceControls();
    form.getLocalContext().setHomeVisitVo(null);
    if(form.recbrContact().getValue() instanceof HomeVisitShortVo)
    {
        form.getLocalContext().setHomeVisitVo(domain.getHomeVisit((HomeVisitRefVo) form.recbrContact().getValue()));
    }
    if(form.recbrContact().getValue() instanceof ClinicalContactShortVo)
    {
        form.getLocalContext().setHomeVisitVo(domain.getHomeVisitAccByClinicalContact((ClinicalContactRefVo) form.recbrContact().getValue()));
    }
    if(form.recbrContact().getValue() instanceof CareContextVo)
    {
        form.getLocalContext().setHomeVisitVo(domain.getHomeVisitAccByCareContext((CareContextRefVo) form.recbrContact().getValue()));
    }

    populateScreen();
    isRecordEditable();
}
项目:AvoinApotti    文件:Logic.java   
private void isRecordEditable()
{
    if(form.recbrContact().getValue()!= null)
    {
        if(form.recbrContact().getValue() instanceof ClinicalContactShortVo && form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull()
                && form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact().equals(((ClinicalContactRefVo) form.recbrContact().getValue()).getID_ClinicalContact()))
        {
            displayButtonsForRecord();
        }
        else if((form.recbrContact().getValue() instanceof CareContextShortVo || form.recbrContact().getValue() instanceof HomeVisitShortVo) && form.getGlobalContext().Core.getCurrentClinicalContact() == null)
        {
            //If the current Care Context is selected then there is always an option of many environment records.
            displayButtonsForRecord();
            form.btnNew().setVisible(true);
            form.btnNew().setEnabled(true);
        }
        else
            showButtonsForRecord(false, false);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadHomeVisitsOfCareContext(HomeVisitShortVoCollection voHomeVisitShortColl)
{
    if(voHomeVisitShortColl != null)
    {
        voHomeVisitShortColl.sort(); //WDEV-13700
        for(int i=0; i<voHomeVisitShortColl.size(); i++)
        {
            HomeVisitShortVo voHomeVisit = voHomeVisitShortColl.get(i);
            if(voHomeVisit.getClinicalContact() == null && voHomeVisit.getCareContext().getID_CareContext().equals(form.getGlobalContext().Core.getCurrentCareContext().getID_CareContext()))
            {
                loadHomeVisitsForACareContext(voHomeVisit);
            }
            else //start WDEV-13700
                if (voHomeVisit !=null && voHomeVisit.getIsRIE() != null && voHomeVisit.getIsRIE()) 
                {
                    form.recbrContact().newRow(voHomeVisit, "\t\t\t\tClinical Contact:"+ voHomeVisit.getClinicalContact().getStartDateTime() +" - "+ voHomeVisit.getClinicalContact().getSeenBy());
                }
                //end
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean loadHomeVisitsOfClinicalContact(HomeVisitShortVo voHomeVisit)
{
    ClinicalContactShortVo voClinicalContact = form.getGlobalContext().Core.getCurrentClinicalContact();
    //A Clinical Contact can only have one Environmental Visit Record
    if(voClinicalContact != null && voClinicalContact.getID_ClinicalContact().equals(voHomeVisit.getClinicalContact().getID_ClinicalContact()))
    {
        //this Clinical Contact has been selected from the patient summary
        loadCurrentClinicalContact(voHomeVisit.getClinicalContact(), Color.Green);
        return true;
    }
    else
    {
        loadCurrentClinicalContact(voHomeVisit.getClinicalContact(), null);
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void browserRecord()
{
    clearInstanceControls();
    form.getLocalContext().setHomeVisitVo(null);
    if(form.recbrContact().getValue() instanceof HomeVisitShortVo)
    {
        form.getLocalContext().setHomeVisitVo(domain.getHomeVisit((HomeVisitRefVo) form.recbrContact().getValue()));
    }
    if(form.recbrContact().getValue() instanceof ClinicalContactShortVo)
    {
        form.getLocalContext().setHomeVisitVo(domain.getHomeVisitAccByClinicalContact((ClinicalContactRefVo) form.recbrContact().getValue()));
    }
    if(form.recbrContact().getValue() instanceof CareContextVo)
    {
        form.getLocalContext().setHomeVisitVo(domain.getHomeVisitAccByCareContext((CareContextRefVo) form.recbrContact().getValue()));
    }

    populateScreen();
    isRecordEditable();
}
项目:openMAXIMS    文件:Logic.java   
private void isRecordEditable()
{
    if(form.recbrContact().getValue()!= null)
    {
        if(form.recbrContact().getValue() instanceof ClinicalContactShortVo && form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull()
                && form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact().equals(((ClinicalContactRefVo) form.recbrContact().getValue()).getID_ClinicalContact()))
        {
            displayButtonsForRecord();
        }
        else if((form.recbrContact().getValue() instanceof CareContextShortVo || form.recbrContact().getValue() instanceof HomeVisitShortVo) && form.getGlobalContext().Core.getCurrentClinicalContact() == null)
        {
            //If the current Care Context is selected then there is always an option of many environment records.
            displayButtonsForRecord();
            form.btnNew().setVisible(true);
            form.btnNew().setEnabled(true);
        }
        else
            showButtonsForRecord(false, false);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadHomeVisitsOfCareContext(HomeVisitShortVoCollection voHomeVisitShortColl)
{
    if(voHomeVisitShortColl != null)
    {
        voHomeVisitShortColl.sort(); //WDEV-13700
        for(int i=0; i<voHomeVisitShortColl.size(); i++)
        {
            HomeVisitShortVo voHomeVisit = voHomeVisitShortColl.get(i);
            if(voHomeVisit.getClinicalContact() == null && voHomeVisit.getCareContext().getID_CareContext().equals(form.getGlobalContext().Core.getCurrentCareContext().getID_CareContext()))
            {
                loadHomeVisitsForACareContext(voHomeVisit);
            }
            else //start WDEV-13700
                if (voHomeVisit !=null && voHomeVisit.getIsRIE() != null && voHomeVisit.getIsRIE()) 
                {
                    form.recbrContact().newRow(voHomeVisit, "\t\t\t\tClinical Contact:"+ voHomeVisit.getClinicalContact().getStartDateTime() +" - "+ voHomeVisit.getClinicalContact().getSeenBy());
                }
                //end
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean loadHomeVisitsOfClinicalContact(HomeVisitShortVo voHomeVisit)
{
    ClinicalContactShortVo voClinicalContact = form.getGlobalContext().Core.getCurrentClinicalContact();
    //A Clinical Contact can only have one Environmental Visit Record
    if(voClinicalContact != null && voClinicalContact.getID_ClinicalContact().equals(voHomeVisit.getClinicalContact().getID_ClinicalContact()))
    {
        //this Clinical Contact has been selected from the patient summary
        loadCurrentClinicalContact(voHomeVisit.getClinicalContact(), Color.Green);
        return true;
    }
    else
    {
        loadCurrentClinicalContact(voHomeVisit.getClinicalContact(), null);
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void browserRecord()
{
    clearInstanceControls();
    form.getLocalContext().setHomeVisitVo(null);
    if(form.recbrContact().getValue() instanceof HomeVisitShortVo)
    {
        form.getLocalContext().setHomeVisitVo(domain.getHomeVisit((HomeVisitRefVo) form.recbrContact().getValue()));
    }
    if(form.recbrContact().getValue() instanceof ClinicalContactShortVo)
    {
        form.getLocalContext().setHomeVisitVo(domain.getHomeVisitAccByClinicalContact((ClinicalContactRefVo) form.recbrContact().getValue()));
    }
    if(form.recbrContact().getValue() instanceof CareContextVo)
    {
        form.getLocalContext().setHomeVisitVo(domain.getHomeVisitAccByCareContext((CareContextRefVo) form.recbrContact().getValue()));
    }

    populateScreen();
    isRecordEditable();
}
项目:openMAXIMS    文件:Logic.java   
private void isRecordEditable()
{
    if(form.recbrContact().getValue()!= null)
    {
        if(form.recbrContact().getValue() instanceof ClinicalContactShortVo && form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull()
                && form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact().equals(((ClinicalContactRefVo) form.recbrContact().getValue()).getID_ClinicalContact()))
        {
            displayButtonsForRecord();
        }
        else if((form.recbrContact().getValue() instanceof CareContextShortVo || form.recbrContact().getValue() instanceof HomeVisitShortVo) && form.getGlobalContext().Core.getCurrentClinicalContact() == null)
        {
            //If the current Care Context is selected then there is always an option of many environment records.
            displayButtonsForRecord();
            form.btnNew().setVisible(true);
            form.btnNew().setEnabled(true);
        }
        else
            showButtonsForRecord(false, false);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void loadHomeVisitsOfCareContext(HomeVisitShortVoCollection voHomeVisitShortColl)
{
    if(voHomeVisitShortColl != null)
    {
        voHomeVisitShortColl.sort(); //WDEV-13700
        for(int i=0; i<voHomeVisitShortColl.size(); i++)
        {
            HomeVisitShortVo voHomeVisit = voHomeVisitShortColl.get(i);
            if(voHomeVisit.getClinicalContact() == null && voHomeVisit.getCareContext().getID_CareContext().equals(form.getGlobalContext().Core.getCurrentCareContext().getID_CareContext()))
            {
                loadHomeVisitsForACareContext(voHomeVisit);
            }
            else //start WDEV-13700
                if (voHomeVisit !=null && voHomeVisit.getIsRIE() != null && voHomeVisit.getIsRIE()) 
                {
                    form.recbrContact().newRow(voHomeVisit, "\t\t\t\tClinical Contact:"+ voHomeVisit.getClinicalContact().getStartDateTime() +" - "+ voHomeVisit.getClinicalContact().getSeenBy());
                }
                //end
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private boolean loadHomeVisitsOfClinicalContact(HomeVisitShortVo voHomeVisit)
{
    ClinicalContactShortVo voClinicalContact = form.getGlobalContext().Core.getCurrentClinicalContact();
    //A Clinical Contact can only have one Environmental Visit Record
    if(voClinicalContact != null && voClinicalContact.getID_ClinicalContact().equals(voHomeVisit.getClinicalContact().getID_ClinicalContact()))
    {
        //this Clinical Contact has been selected from the patient summary
        loadCurrentClinicalContact(voHomeVisit.getClinicalContact(), Color.Green);
        return true;
    }
    else
    {
        loadCurrentClinicalContact(voHomeVisit.getClinicalContact(), null);
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private void browserRecord()
{
    clearInstanceControls();
    form.getLocalContext().setHomeVisitVo(null);
    if(form.recbrContact().getValue() instanceof HomeVisitShortVo)
    {
        form.getLocalContext().setHomeVisitVo(domain.getHomeVisit((HomeVisitRefVo) form.recbrContact().getValue()));
    }
    if(form.recbrContact().getValue() instanceof ClinicalContactShortVo)
    {
        form.getLocalContext().setHomeVisitVo(domain.getHomeVisitAccByClinicalContact((ClinicalContactRefVo) form.recbrContact().getValue()));
    }
    if(form.recbrContact().getValue() instanceof CareContextVo)
    {
        form.getLocalContext().setHomeVisitVo(domain.getHomeVisitAccByCareContext((CareContextRefVo) form.recbrContact().getValue()));
    }

    populateScreen();
    isRecordEditable();
}
项目:openmaxims-linux    文件:Logic.java   
private void isRecordEditable()
{
    if(form.recbrContact().getValue()!= null)
    {
        if(form.recbrContact().getValue() instanceof ClinicalContactShortVo && form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull()
                && form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact().equals(((ClinicalContactRefVo) form.recbrContact().getValue()).getID_ClinicalContact()))
        {
            displayButtonsForRecord();
        }
        else if((form.recbrContact().getValue() instanceof CareContextShortVo || form.recbrContact().getValue() instanceof HomeVisitShortVo) && form.getGlobalContext().Core.getCurrentClinicalContact() == null)
        {
            //If the current Care Context is selected then there is always an option of many environment records.
            displayButtonsForRecord();
            form.btnNew().setVisible(true);
            form.btnNew().setEnabled(true);
        }
        else
            showButtonsForRecord(false, false);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void loadHomeVisitsForACareContext(HomeVisitShortVo voHomeVisit)
{
    // A care context can have a number of Environmental Visits
    if(form.getGlobalContext().Core.getCurrentClinicalContact() == null)
        form.recbrContact().newRow(voHomeVisit, "\t\t\t\t "+ voHomeVisit.getAuthoringInformation().getAuthoringDateTime() + " - " + voHomeVisit.getAuthoringInformation().getAuthoringHcp().getName(), Color.Green);
    else
        form.recbrContact().newRow(voHomeVisit, "\t\t\t\t "+ voHomeVisit.getAuthoringInformation().getAuthoringDateTime() + " - " + voHomeVisit.getAuthoringInformation().getAuthoringHcp().getName());

}
项目:openMAXIMS    文件:Logic.java   
private void loadHomeVisitsForACareContext(HomeVisitShortVo voHomeVisit)
{
    // A care context can have a number of Environmental Visits
    if(form.getGlobalContext().Core.getCurrentClinicalContact() == null)
        form.recbrContact().newRow(voHomeVisit, "\t\t\t\t "+ voHomeVisit.getAuthoringInformation().getAuthoringDateTime() + " - " + voHomeVisit.getAuthoringInformation().getAuthoringHcp().getName(), Color.Green);
    else
        form.recbrContact().newRow(voHomeVisit, "\t\t\t\t "+ voHomeVisit.getAuthoringInformation().getAuthoringDateTime() + " - " + voHomeVisit.getAuthoringInformation().getAuthoringHcp().getName());

}
项目:openMAXIMS    文件:Logic.java   
private void loadHomeVisitsForACareContext(HomeVisitShortVo voHomeVisit)
{
    // A care context can have a number of Environmental Visits
    if(form.getGlobalContext().Core.getCurrentClinicalContact() == null)
        form.recbrContact().newRow(voHomeVisit, "\t\t\t\t "+ voHomeVisit.getAuthoringInformation().getAuthoringDateTime() + " - " + voHomeVisit.getAuthoringInformation().getAuthoringHcp().getName(), Color.Green);
    else
        form.recbrContact().newRow(voHomeVisit, "\t\t\t\t "+ voHomeVisit.getAuthoringInformation().getAuthoringDateTime() + " - " + voHomeVisit.getAuthoringInformation().getAuthoringHcp().getName());

}
项目:openmaxims-linux    文件:Logic.java   
private void loadHomeVisitsForACareContext(HomeVisitShortVo voHomeVisit)
{
    // A care context can have a number of Environmental Visits
    if(form.getGlobalContext().Core.getCurrentClinicalContact() == null)
        form.recbrContact().newRow(voHomeVisit, "\t\t\t\t "+ voHomeVisit.getAuthoringInformation().getAuthoringDateTime() + " - " + voHomeVisit.getAuthoringInformation().getAuthoringHcp().getName(), Color.Green);
    else
        form.recbrContact().newRow(voHomeVisit, "\t\t\t\t "+ voHomeVisit.getAuthoringInformation().getAuthoringDateTime() + " - " + voHomeVisit.getAuthoringInformation().getAuthoringHcp().getName());

}