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

项目:AvoinApotti    文件:Logic.java   
private void populateOrderSummary(OcsOrderSummaryVo voOrderSummary)
{
    form.getGlobalContext().OCRR.setSelectedInvs(null);
    form.getLocalContext().setOrderSummary(voOrderSummary);

    if(voOrderSummary == null) 
        return;

    if (voOrderSummary.getSpecimens() == null || voOrderSummary.getSpecimens().size() == 0)
    {
        populateOrderDetails(domain.getOrderDetails(form.getGlobalContext().OCRR.PathologyResults.getOrder()));
    }
    else
    {
        PathologySpecimenVo voPathologySpecimen = voOrderSummary.getSpecimens().get(0);

        populateOrderDetails(voPathologySpecimen.getOrder());

        populateSpecimens(voOrderSummary.getSpecimens());
        cleanUpInvsGrid();
    }

    populateInvestigations(voOrderSummary.getInvestigations());
}
项目:AvoinApotti    文件:Logic.java   
private void displaySite(NewResultSpecDocVo voOrderInvestigation) 
{
    form.lblSite().setVisible(false);
    form.txtSite().setVisible(false);

    if(voOrderInvestigation == null || voOrderInvestigation.getSpecimen() == null || voOrderInvestigation.getSpecimen().size() == 0)
        return;

    PathologySpecimenVo lastSpecimen = voOrderInvestigation.getSpecimen().get(voOrderInvestigation.getSpecimen().size() - 1);

    if(lastSpecimen == null || lastSpecimen.getSiteCd() == null)
        return;

    form.lblSite().setVisible(true);
    form.txtSite().setVisible(true);
    form.txtSite().setEnabled(false);
    form.txtSite().setValue(lastSpecimen.getSiteCd().getText());
}
项目:openMAXIMS    文件:Logic.java   
private void populateOrderSummary(OcsOrderSummaryVo voOrderSummary)
{
    form.getGlobalContext().OCRR.setSelectedInvs(null);
    form.getLocalContext().setOrderSummary(voOrderSummary);

    if(voOrderSummary == null) 
        return;

    if (voOrderSummary.getSpecimens() == null || voOrderSummary.getSpecimens().size() == 0)
    {
        populateOrderDetails(domain.getOrderDetails(form.getGlobalContext().OCRR.PathologyResults.getOrder()));
    }
    else
    {
        PathologySpecimenVo voPathologySpecimen = voOrderSummary.getSpecimens().get(0);

        populateOrderDetails(voPathologySpecimen.getOrder());

        populateSpecimens(voOrderSummary.getSpecimens());
        cleanUpInvsGrid();
    }

    populateInvestigations(voOrderSummary.getInvestigations());
}
项目:openMAXIMS    文件:Logic.java   
private void displaySite(NewResultSpecDocVo voOrderInvestigation) 
{
    form.lblSite().setVisible(false);
    form.txtSite().setVisible(false);

    if(voOrderInvestigation == null || voOrderInvestigation.getSpecimen() == null || voOrderInvestigation.getSpecimen().size() == 0)
        return;

    PathologySpecimenVo lastSpecimen = voOrderInvestigation.getSpecimen().get(voOrderInvestigation.getSpecimen().size() - 1);

    if(lastSpecimen == null || lastSpecimen.getSiteCd() == null)
        return;

    form.lblSite().setVisible(true);
    form.txtSite().setVisible(true);
    form.txtSite().setEnabled(false);
    form.txtSite().setValue(lastSpecimen.getSiteCd().getText());
}
项目:openMAXIMS    文件:Logic.java   
private void populateOrderSummary(OcsOrderSummaryVo voOrderSummary)
{
    form.getGlobalContext().OCRR.setSelectedInvs(null);
    form.getLocalContext().setOrderSummary(voOrderSummary);

    if(voOrderSummary == null) 
        return;

    if (voOrderSummary.getSpecimens() == null || voOrderSummary.getSpecimens().size() == 0)
    {
        populateOrderDetails(domain.getOrderDetails(form.getGlobalContext().OCRR.PathologyResults.getOrder()));
    }
    else
    {
        PathologySpecimenVo voPathologySpecimen = voOrderSummary.getSpecimens().get(0);

        populateOrderDetails(voPathologySpecimen.getOrder());

        populateSpecimens(voOrderSummary.getSpecimens());
        cleanUpInvsGrid();
    }

    populateInvestigations(voOrderSummary.getInvestigations());
}
项目:openMAXIMS    文件:Logic.java   
private void displaySite(NewResultSpecDocVo voOrderInvestigation) 
{
    form.lblSite().setVisible(false);
    form.txtSite().setVisible(false);

    if(voOrderInvestigation == null || voOrderInvestigation.getSpecimen() == null || voOrderInvestigation.getSpecimen().size() == 0)
        return;

    PathologySpecimenVo lastSpecimen = voOrderInvestigation.getSpecimen().get(voOrderInvestigation.getSpecimen().size() - 1);

    if(lastSpecimen == null || lastSpecimen.getSiteCd() == null)
        return;

    form.lblSite().setVisible(true);
    form.txtSite().setVisible(true);
    form.txtSite().setEnabled(false);
    form.txtSite().setValue(lastSpecimen.getSiteCd().getText());
}
项目:openmaxims-linux    文件:Logic.java   
private void populateOrderSummary(OcsOrderSummaryVo voOrderSummary)
{
    form.getGlobalContext().OCRR.setSelectedInvs(null);
    form.getLocalContext().setOrderSummary(voOrderSummary);

    if(voOrderSummary == null) 
        return;

    if (voOrderSummary.getSpecimens() == null || voOrderSummary.getSpecimens().size() == 0)
    {
        populateOrderDetails(domain.getOrderDetails(form.getGlobalContext().OCRR.PathologyResults.getOrder()));
    }
    else
    {
        PathologySpecimenVo voPathologySpecimen = voOrderSummary.getSpecimens().get(0);

        populateOrderDetails(voPathologySpecimen.getOrder());

        populateSpecimens(voOrderSummary.getSpecimens());
        cleanUpInvsGrid();
    }

    populateInvestigations(voOrderSummary.getInvestigations());
}
项目:openmaxims-linux    文件:Logic.java   
private void displaySite(NewResultSpecDocVo voOrderInvestigation) 
{
    form.lblSite().setVisible(false);
    form.txtSite().setVisible(false);

    if(voOrderInvestigation == null || voOrderInvestigation.getSpecimen() == null || voOrderInvestigation.getSpecimen().size() == 0)
        return;

    PathologySpecimenVo lastSpecimen = voOrderInvestigation.getSpecimen().get(voOrderInvestigation.getSpecimen().size() - 1);

    if(lastSpecimen == null || lastSpecimen.getSiteCd() == null)
        return;

    form.lblSite().setVisible(true);
    form.txtSite().setVisible(true);
    form.txtSite().setEnabled(false);
    form.txtSite().setValue(lastSpecimen.getSiteCd().getText());
}
项目:AvoinApotti    文件:Logic.java   
private void displayCumulateResults()
{
    OcsPathRadResultVo currRep = form.getGlobalContext().OCRR.getCurrentPathRadResult();

    if(currRep == null)     
        return;

    if(currRep.getCategoryIsNotNull())
    {
        if (currRep.getCategory().equals(Category.PATHOLOGY))
        {
            PathologySpecimenVo specimen = domain.getSpecimen(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());

            if(specimen != null && specimen.getOrderIsNotNull())//WDEV-16463
            {
                form.getGlobalContext().Core.setSecondPatientShort(specimen.getOrder().getPatient());
            }
        }
        else if (currRep.getCategory().equals(Category.CLINICALIMAGING))
        {
            ClinicalImagingResultVo radRes = domain.getClinicalImagingResult(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());

            if(radRes != null && radRes.getOrderDetailsIsNotNull())//WDEV-16463
            {
                form.getGlobalContext().Core.setSecondPatientShort(radRes.getOrderDetails().getPatient());
            }
        }
    }   

    form.getGlobalContext().OCRR.setCumulateAnalytes(form.getLocalContext().getAnalytes());
    if(form.getGlobalContext().OCRR.getCurrentPathRadResult() != null)
    {
        form.getGlobalContext().OCRR.setOrderInvestigationReference(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());
    }

    engine.open(form.getForms().OCRR.CumulateResults);
}
项目:AvoinApotti    文件:PathologyDialogImpl.java   
public ims.ocrr.vo.PathologySpecimenVo getSpecimen(ims.ocrr.orderingresults.vo.OrderSpecimenRefVo id)
{
    if(id == null || id.getID_OrderSpecimen() == null)
        throw new DomainRuntimeException("Invalid specimen");

    return PathologySpecimenVoAssembler.create((OrderSpecimen)getDomainFactory().getDomainObject(OrderSpecimen.class, id.getID_OrderSpecimen()));       
}
项目:AvoinApotti    文件:PathologyDialogImpl.java   
public PathologySpecimenVo getSpecimen(OrderInvestigationRefVo orvInvRef)
{
    if(orvInvRef == null || orvInvRef.getID_OrderInvestigation() == null)
        throw new DomainRuntimeException("Invalid orderInvestigation");

    DomainFactory factory = getDomainFactory();
    OrderInvestigation domOrdInv = (OrderInvestigation)factory.getDomainObject(OrderInvestigation.class, orvInvRef.getID_OrderInvestigation());
    if (domOrdInv == null || domOrdInv.getSpecimen() == null || domOrdInv.getSpecimen().size() == 0)//WDEV-16463
        return null;

    return PathologySpecimenVoAssembler.create((OrderSpecimen) domOrdInv.getSpecimen().get(0));     
}
项目:openMAXIMS    文件:Logic.java   
private void displayCumulateResults()
{
    OcsPathRadResultVo currRep = form.getGlobalContext().OCRR.getCurrentPathRadResult();

    if(currRep == null)     
        return;

    if(currRep.getCategoryIsNotNull())
    {
        if (currRep.getCategory().equals(Category.PATHOLOGY))
        {
            PathologySpecimenVo specimen = domain.getSpecimen(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());

            if(specimen != null && specimen.getOrderIsNotNull())//WDEV-16463
            {
                form.getGlobalContext().Core.setSecondPatientShort(specimen.getOrder().getPatient());
            }
        }
        else if (currRep.getCategory().equals(Category.CLINICALIMAGING))
        {
            ClinicalImagingResultVo radRes = domain.getClinicalImagingResult(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());

            if(radRes != null && radRes.getOrderDetailsIsNotNull())//WDEV-16463
            {
                form.getGlobalContext().Core.setSecondPatientShort(radRes.getOrderDetails().getPatient());
            }
        }
    }   

    form.getGlobalContext().OCRR.setCumulateAnalytes(form.getLocalContext().getAnalytes());
    if(form.getGlobalContext().OCRR.getCurrentPathRadResult() != null)
    {
        form.getGlobalContext().OCRR.setOrderInvestigationReference(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());
    }

    engine.open(form.getForms().OCRR.CumulateResults);
}
项目:openMAXIMS    文件:PathologyDialogImpl.java   
public ims.ocrr.vo.PathologySpecimenVo getSpecimen(ims.ocrr.orderingresults.vo.OrderSpecimenRefVo id)
{
    if(id == null || id.getID_OrderSpecimen() == null)
        throw new DomainRuntimeException("Invalid specimen");

    return PathologySpecimenVoAssembler.create((OrderSpecimen)getDomainFactory().getDomainObject(OrderSpecimen.class, id.getID_OrderSpecimen()));       
}
项目:openMAXIMS    文件:PathologyDialogImpl.java   
public PathologySpecimenVo getSpecimen(OrderInvestigationRefVo orvInvRef)
{
    if(orvInvRef == null || orvInvRef.getID_OrderInvestigation() == null)
        throw new DomainRuntimeException("Invalid orderInvestigation");

    DomainFactory factory = getDomainFactory();
    OrderInvestigation domOrdInv = (OrderInvestigation)factory.getDomainObject(OrderInvestigation.class, orvInvRef.getID_OrderInvestigation());
    if (domOrdInv == null || domOrdInv.getSpecimen() == null || domOrdInv.getSpecimen().size() == 0)//WDEV-16463
        return null;

    return PathologySpecimenVoAssembler.create((OrderSpecimen) domOrdInv.getSpecimen().get(0));     
}
项目:openMAXIMS    文件:Logic.java   
private void displayCumulateResults()
{
    OcsPathRadResultVo currRep = form.getGlobalContext().OCRR.getCurrentPathRadResult();

    if(currRep == null)     
        return;

    if(currRep.getCategoryIsNotNull())
    {
        if (currRep.getCategory().equals(Category.PATHOLOGY))
        {
            PathologySpecimenVo specimen = domain.getSpecimen(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());

            if(specimen != null && specimen.getOrderIsNotNull())//WDEV-16463
            {
                form.getGlobalContext().Core.setSecondPatientShort(specimen.getOrder().getPatient());
            }
        }
        else if (currRep.getCategory().equals(Category.CLINICALIMAGING))
        {
            ClinicalImagingResultVo radRes = domain.getClinicalImagingResult(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());

            if(radRes != null && radRes.getOrderDetailsIsNotNull())//WDEV-16463
            {
                form.getGlobalContext().Core.setSecondPatientShort(radRes.getOrderDetails().getPatient());
            }
        }
    }   

    form.getGlobalContext().OCRR.setCumulateAnalytes(form.getLocalContext().getAnalytes());
    if(form.getGlobalContext().OCRR.getCurrentPathRadResult() != null)
    {
        form.getGlobalContext().OCRR.setOrderInvestigationReference(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());
    }

    engine.open(form.getForms().OCRR.CumulateResults);
}
项目:openMAXIMS    文件:PathologyDialogImpl.java   
public ims.ocrr.vo.PathologySpecimenVo getSpecimen(ims.ocrr.orderingresults.vo.OrderSpecimenRefVo id)
{
    if(id == null || id.getID_OrderSpecimen() == null)
        throw new DomainRuntimeException("Invalid specimen");

    return PathologySpecimenVoAssembler.create((OrderSpecimen)getDomainFactory().getDomainObject(OrderSpecimen.class, id.getID_OrderSpecimen()));       
}
项目:openMAXIMS    文件:PathologyDialogImpl.java   
public PathologySpecimenVo getSpecimen(OrderInvestigationRefVo orvInvRef)
{
    if(orvInvRef == null || orvInvRef.getID_OrderInvestigation() == null)
        throw new DomainRuntimeException("Invalid orderInvestigation");

    DomainFactory factory = getDomainFactory();
    OrderInvestigation domOrdInv = (OrderInvestigation)factory.getDomainObject(OrderInvestigation.class, orvInvRef.getID_OrderInvestigation());
    if (domOrdInv == null || domOrdInv.getSpecimen() == null || domOrdInv.getSpecimen().size() == 0)//WDEV-16463
        return null;

    return PathologySpecimenVoAssembler.create((OrderSpecimen) domOrdInv.getSpecimen().get(0));     
}
项目:openmaxims-linux    文件:Logic.java   
private void displayCumulateResults()
{
    OcsPathRadResultVo currRep = form.getGlobalContext().OCRR.getCurrentPathRadResult();

    if(currRep == null)     
        return;

    if(currRep.getCategoryIsNotNull())
    {
        if (currRep.getCategory().equals(Category.PATHOLOGY))
        {
            PathologySpecimenVo specimen = domain.getSpecimen(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());

            if(specimen != null && specimen.getOrderIsNotNull())//WDEV-16463
            {
                form.getGlobalContext().Core.setSecondPatientShort(specimen.getOrder().getPatient());
            }
        }
        else if (currRep.getCategory().equals(Category.CLINICALIMAGING))
        {
            ClinicalImagingResultVo radRes = domain.getClinicalImagingResult(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());

            if(radRes != null && radRes.getOrderDetailsIsNotNull())//WDEV-16463
            {
                form.getGlobalContext().Core.setSecondPatientShort(radRes.getOrderDetails().getPatient());
            }
        }
    }   

    form.getGlobalContext().OCRR.setCumulateAnalytes(form.getLocalContext().getAnalytes());
    if(form.getGlobalContext().OCRR.getCurrentPathRadResult() != null)
    {
        form.getGlobalContext().OCRR.setOrderInvestigationReference(form.getGlobalContext().OCRR.getCurrentPathRadResult().getOrderInvestigation());
    }

    engine.open(form.getForms().OCRR.CumulateResults);
}
项目:openmaxims-linux    文件:PathologyDialogImpl.java   
public ims.ocrr.vo.PathologySpecimenVo getSpecimen(ims.ocrr.orderingresults.vo.OrderSpecimenRefVo id)
{
    if(id == null || id.getID_OrderSpecimen() == null)
        throw new DomainRuntimeException("Invalid specimen");

    return PathologySpecimenVoAssembler.create((OrderSpecimen)getDomainFactory().getDomainObject(OrderSpecimen.class, id.getID_OrderSpecimen()));       
}
项目:openmaxims-linux    文件:PathologyDialogImpl.java   
public PathologySpecimenVo getSpecimen(OrderInvestigationRefVo orvInvRef)
{
    if(orvInvRef == null || orvInvRef.getID_OrderInvestigation() == null)
        throw new DomainRuntimeException("Invalid orderInvestigation");

    DomainFactory factory = getDomainFactory();
    OrderInvestigation domOrdInv = (OrderInvestigation)factory.getDomainObject(OrderInvestigation.class, orvInvRef.getID_OrderInvestigation());
    if (domOrdInv == null || domOrdInv.getSpecimen() == null || domOrdInv.getSpecimen().size() == 0)//WDEV-16463
        return null;

    return PathologySpecimenVoAssembler.create((OrderSpecimen) domOrdInv.getSpecimen().get(0));     
}
项目: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;
}