Java 类ims.ocrr.vo.PathologySpecimenOrderInvestigationVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateLabDetails(PathologySpecimenOrderInvestigationVo investigation) 
{
    if(investigation == null)
        return;             
    if(investigation.getInvestigation() == null)
        return;
    if(investigation.getInvestigation().getProviderService() == null)
        return;
    if(investigation.getInvestigation().getProviderService().getLocationService() == null)
        return;

    setNameLabel(investigation);
}
项目:AvoinApotti    文件:Logic.java   
private void setNameLabel(PathologySpecimenOrderInvestigationVo investigation)
{
    if(investigation.getInvestigation().getProviderService().getLocationService().getLocation() != null)
    {
        form.lblName().setValue(investigation.getInvestigation().getProviderService().getLocationService().getLocation().getName());
        if (investigation.getInvestigation().getProviderService().getLocationService().getService() != null)
        {
            form.lblName().setValue(form.lblName().getValue() + " (" + investigation.getInvestigation().getProviderService().getLocationService().getService().getServiceName() + ")");
        }
    }


    if(investigation.getInvestigation().getProviderService().getLocationService().getContact() != null)
    {
        StringBuffer val = new StringBuffer();

        if(investigation.getInvestigation().getProviderService().getLocationService().getContact().getName() != null)
        {
            if(investigation.getInvestigation().getProviderService().getLocationService().getContact().getName().getForenameIsNotNull())
            {
                val.append(investigation.getInvestigation().getProviderService().getLocationService().getContact().getName().getForename());
            }
            if(investigation.getInvestigation().getProviderService().getLocationService().getContact().getName().getSurnameIsNotNull())
            {
                val.append(" ").append(investigation.getInvestigation().getProviderService().getLocationService().getContact().getName().getSurname());
            }

        }
        if(investigation.getInvestigation().getProviderService().getLocationService().getContact().getContactNumberIsNotNull())
        {
            val.append(" (").append(investigation.getInvestigation().getProviderService().getLocationService().getContact().getContactNumber()).append(")");
        }

        form.lblName().setValue(form.lblName().getValue() + " - " + val);

    }
}
项目:AvoinApotti    文件:OrderSummaryImpl.java   
public PathologySpecimenOrderInvestigationVo getOrdInvestigation(OrderInvestigationRefVo orderInvestigationRef) 
{
    if(orderInvestigationRef == null)
        return null;

    OrderInvestigation doOrderInv = (OrderInvestigation)getDomainFactory().getDomainObject(OrderInvestigation.class, orderInvestigationRef.getID_OrderInvestigation());
    return PathologySpecimenOrderInvestigationVoAssembler.create(doOrderInv);
}
项目:openMAXIMS    文件:Logic.java   
private void populateLabDetails(PathologySpecimenOrderInvestigationVo investigation) 
{
    if(investigation == null)
        return;             
    if(investigation.getInvestigation() == null)
        return;
    if(investigation.getInvestigation().getProviderService() == null)
        return;
    if(investigation.getInvestigation().getProviderService().getLocationService() == null)
        return;

    setNameLabel(investigation);
}
项目:openMAXIMS    文件:Logic.java   
private void setNameLabel(PathologySpecimenOrderInvestigationVo investigation)
{
    if(investigation.getInvestigation().getProviderService().getLocationService().getLocation() != null)
    {
        form.lblName().setValue(investigation.getInvestigation().getProviderService().getLocationService().getLocation().getName());
        if (investigation.getInvestigation().getProviderService().getLocationService().getService() != null)
        {
            form.lblName().setValue(form.lblName().getValue() + " (" + investigation.getInvestigation().getProviderService().getLocationService().getService().getServiceName() + ")");
        }
    }


    if(investigation.getInvestigation().getProviderService().getLocationService().getContact() != null)
    {
        StringBuffer val = new StringBuffer();

        if(investigation.getInvestigation().getProviderService().getLocationService().getContact().getName() != null)
        {
            if(investigation.getInvestigation().getProviderService().getLocationService().getContact().getName().getForenameIsNotNull())
            {
                val.append(investigation.getInvestigation().getProviderService().getLocationService().getContact().getName().getForename());
            }
            if(investigation.getInvestigation().getProviderService().getLocationService().getContact().getName().getSurnameIsNotNull())
            {
                val.append(" ").append(investigation.getInvestigation().getProviderService().getLocationService().getContact().getName().getSurname());
            }

        }
        if(investigation.getInvestigation().getProviderService().getLocationService().getContact().getContactNumberIsNotNull())
        {
            val.append(" (").append(investigation.getInvestigation().getProviderService().getLocationService().getContact().getContactNumber()).append(")");
        }

        form.lblName().setValue(form.lblName().getValue() + " - " + val);

    }
}
项目:openMAXIMS    文件:OrderSummaryImpl.java   
public PathologySpecimenOrderInvestigationVo getOrdInvestigation(OrderInvestigationRefVo orderInvestigationRef) 
{
    if(orderInvestigationRef == null)
        return null;

    OrderInvestigation doOrderInv = (OrderInvestigation)getDomainFactory().getDomainObject(OrderInvestigation.class, orderInvestigationRef.getID_OrderInvestigation());
    return PathologySpecimenOrderInvestigationVoAssembler.create(doOrderInv);
}
项目:openMAXIMS    文件:Logic.java   
private void populateLabDetails(PathologySpecimenOrderInvestigationVo investigation) 
{
    if(investigation == null)
        return;             
    if(investigation.getInvestigation() == null)
        return;
    if(investigation.getInvestigation().getProviderService() == null)
        return;
    if(investigation.getInvestigation().getProviderService().getLocationService() == null)
        return;

    setNameLabel(investigation);
}
项目:openMAXIMS    文件:Logic.java   
private void setNameLabel(PathologySpecimenOrderInvestigationVo investigation)
{
    if(investigation.getInvestigation().getProviderService().getLocationService().getLocation() != null)
    {
        form.lblName().setValue(investigation.getInvestigation().getProviderService().getLocationService().getLocation().getName());
        if (investigation.getInvestigation().getProviderService().getLocationService().getService() != null)
        {
            form.lblName().setValue(form.lblName().getValue() + " (" + investigation.getInvestigation().getProviderService().getLocationService().getService().getServiceName() + ")");
        }
    }


    if(investigation.getInvestigation().getProviderService().getLocationService().getContact() != null)
    {
        StringBuffer val = new StringBuffer();

        if(investigation.getInvestigation().getProviderService().getLocationService().getContact().getName() != null)
        {
            if(investigation.getInvestigation().getProviderService().getLocationService().getContact().getName().getForenameIsNotNull())
            {
                val.append(investigation.getInvestigation().getProviderService().getLocationService().getContact().getName().getForename());
            }
            if(investigation.getInvestigation().getProviderService().getLocationService().getContact().getName().getSurnameIsNotNull())
            {
                val.append(" ").append(investigation.getInvestigation().getProviderService().getLocationService().getContact().getName().getSurname());
            }

        }
        if(investigation.getInvestigation().getProviderService().getLocationService().getContact().getContactNumberIsNotNull())
        {
            val.append(" (").append(investigation.getInvestigation().getProviderService().getLocationService().getContact().getContactNumber()).append(")");
        }

        form.lblName().setValue(form.lblName().getValue() + " - " + val);

    }
}
项目:openMAXIMS    文件:OrderSummaryImpl.java   
public PathologySpecimenOrderInvestigationVo getOrdInvestigation(OrderInvestigationRefVo orderInvestigationRef) 
{
    if(orderInvestigationRef == null)
        return null;

    OrderInvestigation doOrderInv = (OrderInvestigation)getDomainFactory().getDomainObject(OrderInvestigation.class, orderInvestigationRef.getID_OrderInvestigation());
    return PathologySpecimenOrderInvestigationVoAssembler.create(doOrderInv);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateLabDetails(PathologySpecimenOrderInvestigationVo investigation) 
{
    if(investigation == null)
        return;             
    if(investigation.getInvestigation() == null)
        return;
    if(investigation.getInvestigation().getProviderService() == null)
        return;
    if(investigation.getInvestigation().getProviderService().getLocationService() == null)
        return;

    setNameLabel(investigation);
}
项目:openmaxims-linux    文件:Logic.java   
private void setNameLabel(PathologySpecimenOrderInvestigationVo investigation)
{
    if(investigation.getInvestigation().getProviderService().getLocationService().getLocation() != null)
    {
        form.lblName().setValue(investigation.getInvestigation().getProviderService().getLocationService().getLocation().getName());
        if (investigation.getInvestigation().getProviderService().getLocationService().getService() != null)
        {
            form.lblName().setValue(form.lblName().getValue() + " (" + investigation.getInvestigation().getProviderService().getLocationService().getService().getServiceName() + ")");
        }
    }


    if(investigation.getInvestigation().getProviderService().getLocationService().getContact() != null)
    {
        StringBuffer val = new StringBuffer();

        if(investigation.getInvestigation().getProviderService().getLocationService().getContact().getName() != null)
        {
            if(investigation.getInvestigation().getProviderService().getLocationService().getContact().getName().getForenameIsNotNull())
            {
                val.append(investigation.getInvestigation().getProviderService().getLocationService().getContact().getName().getForename());
            }
            if(investigation.getInvestigation().getProviderService().getLocationService().getContact().getName().getSurnameIsNotNull())
            {
                val.append(" ").append(investigation.getInvestigation().getProviderService().getLocationService().getContact().getName().getSurname());
            }

        }
        if(investigation.getInvestigation().getProviderService().getLocationService().getContact().getContactNumberIsNotNull())
        {
            val.append(" (").append(investigation.getInvestigation().getProviderService().getLocationService().getContact().getContactNumber()).append(")");
        }

        form.lblName().setValue(form.lblName().getValue() + " - " + val);

    }
}
项目:openmaxims-linux    文件:OrderSummaryImpl.java   
public PathologySpecimenOrderInvestigationVo getOrdInvestigation(OrderInvestigationRefVo orderInvestigationRef) 
{
    if(orderInvestigationRef == null)
        return null;

    OrderInvestigation doOrderInv = (OrderInvestigation)getDomainFactory().getDomainObject(OrderInvestigation.class, orderInvestigationRef.getID_OrderInvestigation());
    return PathologySpecimenOrderInvestigationVoAssembler.create(doOrderInv);
}
项目:AvoinApotti    文件:Logic.java   
private OcsOrderSummaryVo enforceSecurity(OcsOrderSummaryVo voOrderSummary)
{       
    if(voOrderSummary == null)
        return null;

    //investigations collection
    if(voOrderSummary.getInvestigationsIsNotNull())
    {
        for(OrderInvestigationListVo voOrderInv : voOrderSummary.getInvestigations())
        {
            // WDEV-11080
            voOrderInv.setPassesSecurity(true);
            if (form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevelsIsNotNull())
            {
                ServiceRefVo voInvService = voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getProviderServiceIsNotNull() && voOrderInv.getInvestigation().getProviderService().getLocationServiceIsNotNull() && voOrderInv.getInvestigation().getProviderService().getLocationService().getServiceIsNotNull() ? voOrderInv.getInvestigation().getProviderService().getLocationService().getService() : null;
                SecurityLevelConfigVo voInvSecurityLevel = voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull() ? voOrderInv.getInvestigation().getInvestigationIndex().getSecurityLevel() : null;

                //set a boolean in the for security check
                if(!form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels().doesInvPassSecurityCheck(voInvService, voInvSecurityLevel,false)) //WDEV-11622
                    voOrderInv.setPassesSecurity(false);
            }

            //we have done all the investigations above so just need to copy security check result into each record within the specimen's investigation collection
            if(voOrderSummary.getSpecimensIsNotNull())
            {
                for(PathologySpecimenVo voSpec : voOrderSummary.getSpecimens())
                {
                    if(voSpec.getInvestigationsIsNotNull())
                    {
                        for(PathologySpecimenOrderInvestigationVo voSpecOrdInv : voSpec.getInvestigations())
                        {
                            if(voOrderInv.getBoId().equals(voSpecOrdInv.getBoId()))
                            {
                                voSpecOrdInv.setPassesSecurity(voOrderInv.getPassesSecurity());
                                break;
                            }
                        }
                    }
                }
            }   
        }
    }
    form.getLocalContext().setOrderSummary(voOrderSummary);
    return voOrderSummary;
}
项目:openMAXIMS    文件:Logic.java   
private OcsOrderSummaryVo enforceSecurity(OcsOrderSummaryVo voOrderSummary)
{       
    if(voOrderSummary == null)
        return null;

    //investigations collection
    if(voOrderSummary.getInvestigationsIsNotNull())
    {
        for(OrderInvestigationListVo voOrderInv : voOrderSummary.getInvestigations())
        {
            // WDEV-11080
            voOrderInv.setPassesSecurity(true);
            if (form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevelsIsNotNull())
            {
                ServiceRefVo voInvService = voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getProviderServiceIsNotNull() && voOrderInv.getInvestigation().getProviderService().getLocationServiceIsNotNull() && voOrderInv.getInvestigation().getProviderService().getLocationService().getServiceIsNotNull() ? voOrderInv.getInvestigation().getProviderService().getLocationService().getService() : null;
                SecurityLevelConfigVo voInvSecurityLevel = voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull() ? voOrderInv.getInvestigation().getInvestigationIndex().getSecurityLevel() : null;

                //set a boolean in the for security check
                if(!form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels().doesInvPassSecurityCheck(voInvService, voInvSecurityLevel,false)) //WDEV-11622
                    voOrderInv.setPassesSecurity(false);
            }

            //we have done all the investigations above so just need to copy security check result into each record within the specimen's investigation collection
            if(voOrderSummary.getSpecimensIsNotNull())
            {
                for(PathologySpecimenVo voSpec : voOrderSummary.getSpecimens())
                {
                    if(voSpec.getInvestigationsIsNotNull())
                    {
                        for(PathologySpecimenOrderInvestigationVo voSpecOrdInv : voSpec.getInvestigations())
                        {
                            if(voOrderInv.getBoId().equals(voSpecOrdInv.getBoId()))
                            {
                                voSpecOrdInv.setPassesSecurity(voOrderInv.getPassesSecurity());
                                break;
                            }
                        }
                    }
                }
            }   
        }
    }
    form.getLocalContext().setOrderSummary(voOrderSummary);
    return voOrderSummary;
}
项目:openMAXIMS    文件:Logic.java   
private OcsOrderSummaryVo enforceSecurity(OcsOrderSummaryVo voOrderSummary)
{       
    if(voOrderSummary == null)
        return null;

    //investigations collection
    if(voOrderSummary.getInvestigationsIsNotNull())
    {
        for(OrderInvestigationListVo voOrderInv : voOrderSummary.getInvestigations())
        {
            // WDEV-11080
            voOrderInv.setPassesSecurity(true);
            if (form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevelsIsNotNull())
            {
                ServiceRefVo voInvService = voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getProviderServiceIsNotNull() && voOrderInv.getInvestigation().getProviderService().getLocationServiceIsNotNull() && voOrderInv.getInvestigation().getProviderService().getLocationService().getServiceIsNotNull() ? voOrderInv.getInvestigation().getProviderService().getLocationService().getService() : null;
                SecurityLevelConfigVo voInvSecurityLevel = voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull() ? voOrderInv.getInvestigation().getInvestigationIndex().getSecurityLevel() : null;

                //set a boolean in the for security check
                if(!form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels().doesInvPassSecurityCheck(voInvService, voInvSecurityLevel,false)) //WDEV-11622
                    voOrderInv.setPassesSecurity(false);
            }

            //we have done all the investigations above so just need to copy security check result into each record within the specimen's investigation collection
            if(voOrderSummary.getSpecimensIsNotNull())
            {
                for(PathologySpecimenVo voSpec : voOrderSummary.getSpecimens())
                {
                    if(voSpec.getInvestigationsIsNotNull())
                    {
                        for(PathologySpecimenOrderInvestigationVo voSpecOrdInv : voSpec.getInvestigations())
                        {
                            if(voOrderInv.getBoId().equals(voSpecOrdInv.getBoId()))
                            {
                                voSpecOrdInv.setPassesSecurity(voOrderInv.getPassesSecurity());
                                break;
                            }
                        }
                    }
                }
            }   
        }
    }
    form.getLocalContext().setOrderSummary(voOrderSummary);
    return voOrderSummary;
}
项目:openmaxims-linux    文件:Logic.java   
private OcsOrderSummaryVo enforceSecurity(OcsOrderSummaryVo voOrderSummary)
{       
    if(voOrderSummary == null)
        return null;

    //investigations collection
    if(voOrderSummary.getInvestigationsIsNotNull())
    {
        for(OrderInvestigationListVo voOrderInv : voOrderSummary.getInvestigations())
        {
            // WDEV-11080
            voOrderInv.setPassesSecurity(true);
            if (form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevelsIsNotNull())
            {
                ServiceRefVo voInvService = voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getProviderServiceIsNotNull() && voOrderInv.getInvestigation().getProviderService().getLocationServiceIsNotNull() && voOrderInv.getInvestigation().getProviderService().getLocationService().getServiceIsNotNull() ? voOrderInv.getInvestigation().getProviderService().getLocationService().getService() : null;
                SecurityLevelConfigVo voInvSecurityLevel = voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull() ? voOrderInv.getInvestigation().getInvestigationIndex().getSecurityLevel() : null;

                //set a boolean in the for security check
                if(!form.getGlobalContext().OCRR.getRoleDisciplineSecurityLevels().doesInvPassSecurityCheck(voInvService, voInvSecurityLevel,false)) //WDEV-11622
                    voOrderInv.setPassesSecurity(false);
            }

            //we have done all the investigations above so just need to copy security check result into each record within the specimen's investigation collection
            if(voOrderSummary.getSpecimensIsNotNull())
            {
                for(PathologySpecimenVo voSpec : voOrderSummary.getSpecimens())
                {
                    if(voSpec.getInvestigationsIsNotNull())
                    {
                        for(PathologySpecimenOrderInvestigationVo voSpecOrdInv : voSpec.getInvestigations())
                        {
                            if(voOrderInv.getBoId().equals(voSpecOrdInv.getBoId()))
                            {
                                voSpecOrdInv.setPassesSecurity(voOrderInv.getPassesSecurity());
                                break;
                            }
                        }
                    }
                }
            }   
        }
    }
    form.getLocalContext().setOrderSummary(voOrderSummary);
    return voOrderSummary;
}