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

项目:AvoinApotti    文件:Logic.java   
private AnalyteRefVoCollection getAnalytes(ChartResultVoCollection results) throws PresentationLogicException
{
    if(results == null)
        return new AnalyteRefVoCollection();

    AnalyteRefVoCollection analytes = new AnalyteRefVoCollection();

    for(int x = 0; x < results.size(); x++)
    {
        ChartResultVo result = results.get(x);

        if(result.getAnalyte() == null || result.getAnalyte().getID_Analyte() == null)
            throw new PresentationLogicException("Invalid result analyte");

        if(analytes.indexOf(result.getAnalyte()) < 0)
            analytes.add(result.getAnalyte());
    }

    return analytes;
}
项目:openMAXIMS    文件:Logic.java   
private ChartResultAnalyteVoCollection getAnalytes(ChartResultVoCollection results) throws PresentationLogicException
{
    if(results == null)
        return new ChartResultAnalyteVoCollection();

    ChartResultAnalyteVoCollection analytes = new ChartResultAnalyteVoCollection();

    for(ChartResultVo result : results)
    {
        ChartResultAnalyteVo analyte = result.getAnalyte();

        if(analyte == null || analyte.getID_Analyte() == null)
            throw new PresentationLogicException("Invalid result analyte");

        analyte.setRefRange(result.getRefRange());

        if(analytes.indexOf(analyte) < 0)
            analytes.add(analyte);
    }

    return analytes;
}
项目:openMAXIMS    文件:Logic.java   
private AnalyteRefVoCollection getAnalytes(ChartResultVoCollection results) throws PresentationLogicException
{
    if(results == null)
        return new AnalyteRefVoCollection();

    AnalyteRefVoCollection analytes = new AnalyteRefVoCollection();

    for(int x = 0; x < results.size(); x++)
    {
        ChartResultVo result = results.get(x);

        if(result.getAnalyte() == null || result.getAnalyte().getID_Analyte() == null)
            throw new PresentationLogicException("Invalid result analyte");

        if(analytes.indexOf(result.getAnalyte()) < 0)
            analytes.add(result.getAnalyte());
    }

    return analytes;
}
项目:openmaxims-linux    文件:Logic.java   
private AnalyteRefVoCollection getAnalytes(ChartResultVoCollection results) throws PresentationLogicException
{
    if(results == null)
        return new AnalyteRefVoCollection();

    AnalyteRefVoCollection analytes = new AnalyteRefVoCollection();

    for(int x = 0; x < results.size(); x++)
    {
        ChartResultVo result = results.get(x);

        if(result.getAnalyte() == null || result.getAnalyte().getID_Analyte() == null)
            throw new PresentationLogicException("Invalid result analyte");

        if(analytes.indexOf(result.getAnalyte()) < 0)
            analytes.add(result.getAnalyte());
    }

    return analytes;
}
项目:AvoinApotti    文件:Logic.java   
private void search() throws PresentationLogicException
{
    try 
    {
        ChartResultVoCollection results = null;
        boolean isDFT = isOrderInvestigationDTF();

        if(isDFT)
        {
            //WDEV-16618
            if(!selectedPatientSexIsKnown() && VIEW_GRAPHICAL.equals(form.cmbView().getValue()))
            {
                engine.showMessage("Patient sex is unknown.", "Search Error", MessageButtons.OK, MessageIcon.ERROR);
                return;
            }

            results = getResultsFromDFTOrderInvestigation(VIEW_TABULAR.equals(form.cmbView().getValue()));
        }
        else
        {
            if(!canSearch())
                return;

            results = domain.listResults(form.getLocalContext().getPatientShort(), form.getGlobalContext().OCRR.getCumulateAnalytes(), form.dteStart().getValue(), form.dteEnd().getValue(), VIEW_TABULAR.equals(form.cmbView().getValue()));//WDEV-16232

            if(results == null || results.size() == 0)//WDEV-15802
            {
                engine.showMessage("No records match your search criteria.");
            }
        }

        form.customControl().setValue(generateChartingValueSet(results, isDFT));
    } 
    catch (DomainInterfaceException e) 
    {
        engine.showMessage(e.getMessage());
    }
}
项目:AvoinApotti    文件:Logic.java   
private ChartResultVoCollection getResultsFromDFTOrderInvestigation(boolean isTabularView) 
{
    if(form.getLocalContext().getDFTOrderInvestigation() == null || form.getLocalContext().getDFTOrderInvestigation().getResultDetails() == null || form.getLocalContext().getDFTOrderInvestigation().getResultDetails().getPathologyResultDetails() == null)
        return null;

    OrderInvestigationChartVo oi = domain.getOrderInvestigation(form.getLocalContext().getDFTOrderInvestigation());

    ChartResultVoCollection results = new ChartResultVoCollection();

    for(PathologyResultDetailsForCumulateResultsVo pathResult : form.getLocalContext().getDFTOrderInvestigation().getResultDetails().getPathologyResultDetails())
    {
        if(pathResult == null || pathResult.getResultComponents() == null)
            continue;

        for(ChartResultVo component : pathResult.getResultComponents())
        {
            if(component == null)
                continue;

            if(ResultValueType.NM.equals(component.getResValType()) || (isTabularView && (ResultValueType.SN.equals(component.getResValType()) || ResultValueType.ST.equals(component.getResValType()))))
            {
                component.setInvestigationData(oi);
                component.setSpecimenComments(pathResult.getOrderSpecimen());
                component.setPathologyResultId(pathResult.getID_PathResultDetails());

                results.add(component);
            }
        }
    }

    return results;
}
项目:openMAXIMS    文件:Logic.java   
private void search() throws PresentationLogicException
{
    try 
    {
        ChartResultVoCollection results = null;
        boolean isDFT = isOrderInvestigationDTF();

        if(isDFT)
        {
            //WDEV-16618
            if(!selectedPatientSexIsKnown() && VIEW_GRAPHICAL.equals(form.cmbView().getValue()))
            {
                engine.showErrors("Search Error", new String[] {"The patient's sex is unknown."}); //WDEV-16931 as workaround
                return;
            }

            results = getResultsFromDFTOrderInvestigation(VIEW_TABULAR.equals(form.cmbView().getValue()));
        }
        else
        {
            if(!canSearch())
                return;

            results = domain.listResults(form.getLocalContext().getPatientShort(), form.getGlobalContext().OCRR.getCumulateAnalytes(), form.dteStart().getValue(), form.dteEnd().getValue(), VIEW_TABULAR.equals(form.cmbView().getValue()));//WDEV-16232

            if(results == null || results.size() == 0)//WDEV-15802
            {
                engine.showMessage("No records match your search criteria.");
            }
        }

        form.customControl().setValue(generateChartingValueSet(results, isDFT));
    } 
    catch (DomainInterfaceException e) 
    {
        engine.showMessage(e.getMessage());
    }
}
项目:openMAXIMS    文件:Logic.java   
private ChartResultVoCollection getResultsFromDFTOrderInvestigation(boolean isTabularView) 
{
    if(form.getLocalContext().getDFTOrderInvestigation() == null || form.getLocalContext().getDFTOrderInvestigation().getResultDetails() == null || form.getLocalContext().getDFTOrderInvestigation().getResultDetails().getPathologyResultDetails() == null)
        return null;

    OrderInvestigationChartVo oi = domain.getOrderInvestigation(form.getLocalContext().getDFTOrderInvestigation());

    ChartResultVoCollection results = new ChartResultVoCollection();

    for(PathologyResultDetailsForCumulateResultsVo pathResult : form.getLocalContext().getDFTOrderInvestigation().getResultDetails().getPathologyResultDetails())
    {
        if(pathResult == null || pathResult.getResultComponents() == null)
            continue;

        for(ChartResultVo component : pathResult.getResultComponents())
        {
            if(component == null)
                continue;

            if(ResultValueType.NM.equals(component.getResValType()) || (isTabularView && (ResultValueType.SN.equals(component.getResValType()) || ResultValueType.ST.equals(component.getResValType()))))
            {
                component.setInvestigationData(oi);
                component.setSpecimenComments(pathResult.getOrderSpecimen());
                component.setPathologyResultId(pathResult.getID_PathResultDetails());

                results.add(component);
            }
        }
    }

    return results;
}
项目:openMAXIMS    文件:Logic.java   
private void search() throws PresentationLogicException
{
    try 
    {
        ChartResultVoCollection results = null;
        boolean isDFT = isOrderInvestigationDTF();

        if(isDFT)
        {
            //WDEV-16618
            if(!selectedPatientSexIsKnown() && VIEW_GRAPHICAL.equals(form.cmbView().getValue()))
            {
                engine.showMessage("Patient sex is unknown.", "Search Error", MessageButtons.OK, MessageIcon.ERROR);
                return;
            }

            results = getResultsFromDFTOrderInvestigation(VIEW_TABULAR.equals(form.cmbView().getValue()));
        }
        else
        {
            if(!canSearch())
                return;

            results = domain.listResults(form.getLocalContext().getPatientShort(), form.getGlobalContext().OCRR.getCumulateAnalytes(), form.dteStart().getValue(), form.dteEnd().getValue(), VIEW_TABULAR.equals(form.cmbView().getValue()));//WDEV-16232

            if(results == null || results.size() == 0)//WDEV-15802
            {
                engine.showMessage("No records match your search criteria.");
            }
        }

        form.customControl().setValue(generateChartingValueSet(results, isDFT));
    } 
    catch (DomainInterfaceException e) 
    {
        engine.showMessage(e.getMessage());
    }
}
项目:openMAXIMS    文件:Logic.java   
private ChartResultVoCollection getResultsFromDFTOrderInvestigation(boolean isTabularView) 
{
    if(form.getLocalContext().getDFTOrderInvestigation() == null || form.getLocalContext().getDFTOrderInvestigation().getResultDetails() == null || form.getLocalContext().getDFTOrderInvestigation().getResultDetails().getPathologyResultDetails() == null)
        return null;

    OrderInvestigationChartVo oi = domain.getOrderInvestigation(form.getLocalContext().getDFTOrderInvestigation());

    ChartResultVoCollection results = new ChartResultVoCollection();

    for(PathologyResultDetailsForCumulateResultsVo pathResult : form.getLocalContext().getDFTOrderInvestigation().getResultDetails().getPathologyResultDetails())
    {
        if(pathResult == null || pathResult.getResultComponents() == null)
            continue;

        for(ChartResultVo component : pathResult.getResultComponents())
        {
            if(component == null)
                continue;

            if(ResultValueType.NM.equals(component.getResValType()) || (isTabularView && (ResultValueType.SN.equals(component.getResValType()) || ResultValueType.ST.equals(component.getResValType()))))
            {
                component.setInvestigationData(oi);
                component.setSpecimenComments(pathResult.getOrderSpecimen());
                component.setPathologyResultId(pathResult.getID_PathResultDetails());

                results.add(component);
            }
        }
    }

    return results;
}
项目:openmaxims-linux    文件:Logic.java   
private void search() throws PresentationLogicException
{
    try 
    {
        ChartResultVoCollection results = null;
        boolean isDFT = isOrderInvestigationDTF();

        if(isDFT)
        {
            //WDEV-16618
            if(!selectedPatientSexIsKnown() && VIEW_GRAPHICAL.equals(form.cmbView().getValue()))
            {
                engine.showMessage("Patient sex is unknown.", "Search Error", MessageButtons.OK, MessageIcon.ERROR);
                return;
            }

            results = getResultsFromDFTOrderInvestigation(VIEW_TABULAR.equals(form.cmbView().getValue()));
        }
        else
        {
            if(!canSearch())
                return;

            results = domain.listResults(form.getLocalContext().getPatientShort(), form.getGlobalContext().OCRR.getCumulateAnalytes(), form.dteStart().getValue(), form.dteEnd().getValue(), VIEW_TABULAR.equals(form.cmbView().getValue()));//WDEV-16232

            if(results == null || results.size() == 0)//WDEV-15802
            {
                engine.showMessage("No records match your search criteria.");
            }
        }

        form.customControl().setValue(generateChartingValueSet(results, isDFT));
    } 
    catch (DomainInterfaceException e) 
    {
        engine.showMessage(e.getMessage());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private ChartResultVoCollection getResultsFromDFTOrderInvestigation(boolean isTabularView) 
{
    if(form.getLocalContext().getDFTOrderInvestigation() == null || form.getLocalContext().getDFTOrderInvestigation().getResultDetails() == null || form.getLocalContext().getDFTOrderInvestigation().getResultDetails().getPathologyResultDetails() == null)
        return null;

    OrderInvestigationChartVo oi = domain.getOrderInvestigation(form.getLocalContext().getDFTOrderInvestigation());

    ChartResultVoCollection results = new ChartResultVoCollection();

    for(PathologyResultDetailsForCumulateResultsVo pathResult : form.getLocalContext().getDFTOrderInvestigation().getResultDetails().getPathologyResultDetails())
    {
        if(pathResult == null || pathResult.getResultComponents() == null)
            continue;

        for(ChartResultVo component : pathResult.getResultComponents())
        {
            if(component == null)
                continue;

            if(ResultValueType.NM.equals(component.getResValType()) || (isTabularView && (ResultValueType.SN.equals(component.getResValType()) || ResultValueType.ST.equals(component.getResValType()))))
            {
                component.setInvestigationData(oi);
                component.setSpecimenComments(pathResult.getOrderSpecimen());
                component.setPathologyResultId(pathResult.getID_PathResultDetails());

                results.add(component);
            }
        }
    }

    return results;
}