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

项目:AvoinApotti    文件:Logic.java   
private void repopulateFromMyOrder() throws PresentationLogicException
{
    SelectedComponentFromSelectOrderVoCollection voCollSelectedComponents = new SelectedComponentFromSelectOrderVoCollection();

    MyOrderComponentVoCollection voCollMyOrderComponents = form.getGlobalContext().OCRR.getMyOrderComponents();
    if(voCollMyOrderComponents != null)
    {
        for (int i = 0; i < voCollMyOrderComponents.size(); i++)
        {
            voCollSelectedComponents.add(voCollMyOrderComponents.get(i));
            if (voCollMyOrderComponents.get(i).getComponentsIsNotNull())
            {
                for (int p = 0; p < voCollMyOrderComponents.get(i).getComponents().size(); p++)
                    voCollSelectedComponents.add(voCollMyOrderComponents.get(i).getComponents().get(p));
            }
        }
    }

    form.getLocalContext().setSelectedComponents(voCollSelectedComponents);
    switchToPreviewView();
    switchToSearchView();
    form.treDetails().setValue(searchNodeValue);
}
项目:AvoinApotti    文件:Logic.java   
private void bindOrderPriority(MyOrderComponentVoCollection myOrderComponents)
{
    // Clear Order Priority combo-box
    form.lyrDetails().tabGenDetails().cmbPriority().clear();

    boolean hasPathologyInvestigation = hasPathologyInvestigations(myOrderComponents);
    boolean hasRadiologyInvestigation = hasRadiologyInvestigations(myOrderComponents);
    boolean hasClinicalInvestigation = hasClinicalInvestigations(myOrderComponents);

    OrderPriorityCollection priorities = domain.listOrderPriority(hasPathologyInvestigation, hasRadiologyInvestigation, hasClinicalInvestigation);

    for (int i = 0; i < priorities.size(); i++)
    {
        OrderPriority orderPriority = priorities.get(i);
        form.lyrDetails().tabGenDetails().cmbPriority().newRow(orderPriority, orderPriority.getText());
    }

    form.lyrDetails().tabGenDetails().cmbPriority().removeRow(OrderPriority.VARIOUS);
}
项目:AvoinApotti    文件:Logic.java   
private boolean isOrderPriorityMandatory(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    boolean hasPathologyInvestigations  = hasPathologyInvestigations(myOrderComponents);
    boolean hasRadiologyInvestigations  = hasRadiologyInvestigations(myOrderComponents);

    // Check if Order Priority for Pathology investigations is mandatory for this order
    // (Contains Pathology investigations and the flag is set)
    boolean isPathologyRequired = hasPathologyInvestigations
                                    && (ConfigFlag.UI.CATEGORIES_MANDATORY_ORDER_PRIORITY.getValue().equals(PATHOLOGY_PRIORITY_REQUIRED)
                                            || ConfigFlag.UI.CATEGORIES_MANDATORY_ORDER_PRIORITY.getValue().equals(PATHOLOGY_AND_RADIOLOGY_REQUIRED));

    // Check if Order Priority for Radiology investigations is mandatory
    // (Contains Radiology investigations and the flag is set)
    boolean isRadiologyRequired = hasRadiologyInvestigations
                                    && (ConfigFlag.UI.CATEGORIES_MANDATORY_ORDER_PRIORITY.getValue().equals(RADIOLOGY_PRIORITY_REQUIRED)
                                            || ConfigFlag.UI.CATEGORIES_MANDATORY_ORDER_PRIORITY.getValue().equals(PATHOLOGY_AND_RADIOLOGY_REQUIRED));

    return isPathologyRequired || isRadiologyRequired;
}
项目:AvoinApotti    文件:Logic.java   
private int returnSIzeFromCollection(MyOrderComponentVoCollection voCollCurrent)
{
    if (voCollCurrent == null || voCollCurrent.size() == 0)
    {
        return 0;
    }
    int nr = 0;
    for (int i = 0; i < voCollCurrent.size(); i++)
    {
        nr++;
        if (voCollCurrent.get(i).getComponentsIsNotNull())
            nr = nr + voCollCurrent.get(i).getComponents().size();
    }

    return nr;
}
项目:AvoinApotti    文件:Logic.java   
private Boolean isPhlebMayCollect(Integer invId)
{
    // go through the context and retrieve the component for this inv
    MyOrderComponentVoCollection voCollComponents = form.getGlobalContext().OCRR.getMyOrderComponents();
    if (voCollComponents == null)
        return null;

    for (int i = 0; i < voCollComponents.size(); i++)
    {
        MyOrderComponentVo voComponent = voCollComponents.get(i);
        if (voComponent.getIDIsNotNull() && voComponent.getID().equals(invId))
            return voComponent.getPhlebMayCollect();

        if (voComponent.getComponentsIsNotNull())
        {
            for (int p = 0; p < voComponent.getComponents().size(); p++)
            {
                MyOrderChildComponentVo voChildComponent = voComponent.getComponents().get(p);
                if (voChildComponent.getIDIsNotNull() && voChildComponent.getID().equals(invId))
                    return voChildComponent.getPhlebMayCollect();
            }
        }
    }

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private ArrayList<Integer> getUsedServices(MyOrderComponentVoCollection voCollSelectedComponents)
{
    if (voCollSelectedComponents == null)
        return null;

    ArrayList<Integer> serviceIDs = new ArrayList<Integer>();

    for (MyOrderComponentVo component : voCollSelectedComponents)
    {
        if (component.getServiceID() != null)
        {
            serviceIDs.add(component.getServiceID());
        }

        if (component.getComponents() != null)
        {
            getUsedServices(component.getComponents(), serviceIDs);
        }

    }

    return serviceIDs;
}
项目:AvoinApotti    文件:Logic.java   
private CategoryCollection getUsedCategories(MyOrderComponentVoCollection voCollSelectedComponents)
{
    if (voCollSelectedComponents == null)
        return null;

    CategoryCollection category = new CategoryCollection();

    for (MyOrderComponentVo component : voCollSelectedComponents)
    {
        if (component.getCategory() != null)
        {
            category.add(component.getCategory());
        }

        if (component.getComponents() != null)
        {
            getUsedCategories(component.getComponents(), category);
        }
    }

    return category;
}
项目:openMAXIMS    文件:Logic.java   
private void repopulateFromMyOrder() throws PresentationLogicException
{
    SelectedComponentFromSelectOrderVoCollection voCollSelectedComponents = new SelectedComponentFromSelectOrderVoCollection();

    MyOrderComponentVoCollection voCollMyOrderComponents = form.getGlobalContext().OCRR.getMyOrderComponents();
    if(voCollMyOrderComponents != null)
    {
        for (int i = 0; i < voCollMyOrderComponents.size(); i++)
        {
            voCollSelectedComponents.add(voCollMyOrderComponents.get(i));
            if (voCollMyOrderComponents.get(i).getComponentsIsNotNull())
            {
                for (int p = 0; p < voCollMyOrderComponents.get(i).getComponents().size(); p++)
                    voCollSelectedComponents.add(voCollMyOrderComponents.get(i).getComponents().get(p));
            }
        }
    }

    form.getLocalContext().setSelectedComponents(voCollSelectedComponents);
    switchToPreviewView();
    switchToSearchView();
    form.treDetails().setValue(searchNodeValue);
}
项目:openMAXIMS    文件:Logic.java   
private void bindOrderPriority(MyOrderComponentVoCollection myOrderComponents)
{
    // Clear Order Priority combo-box
    form.lyrDetails().tabGenDetails().cmbPriority().clear();

    boolean hasPathologyInvestigation = hasPathologyInvestigations(myOrderComponents);
    boolean hasRadiologyInvestigation = hasRadiologyInvestigations(myOrderComponents);
    boolean hasClinicalInvestigation = hasClinicalInvestigations(myOrderComponents);

    OrderPriorityCollection priorities = domain.listOrderPriority(hasPathologyInvestigation, hasRadiologyInvestigation, hasClinicalInvestigation);

    for (int i = 0; i < priorities.size(); i++)
    {
        OrderPriority orderPriority = priorities.get(i);
        form.lyrDetails().tabGenDetails().cmbPriority().newRow(orderPriority, orderPriority.getText());
    }

    form.lyrDetails().tabGenDetails().cmbPriority().removeRow(OrderPriority.VARIOUS);
}
项目:openMAXIMS    文件:Logic.java   
private boolean isOrderPriorityMandatory(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    boolean hasPathologyInvestigations  = hasPathologyInvestigations(myOrderComponents);
    boolean hasRadiologyInvestigations  = hasRadiologyInvestigations(myOrderComponents);

    // Check if Order Priority for Pathology investigations is mandatory for this order
    // (Contains Pathology investigations and the flag is set)
    boolean isPathologyRequired = hasPathologyInvestigations
                                    && (ConfigFlag.UI.CATEGORIES_MANDATORY_ORDER_PRIORITY.getValue().equals(PATHOLOGY_PRIORITY_REQUIRED)
                                            || ConfigFlag.UI.CATEGORIES_MANDATORY_ORDER_PRIORITY.getValue().equals(PATHOLOGY_AND_RADIOLOGY_REQUIRED));

    // Check if Order Priority for Radiology investigations is mandatory
    // (Contains Radiology investigations and the flag is set)
    boolean isRadiologyRequired = hasRadiologyInvestigations
                                    && (ConfigFlag.UI.CATEGORIES_MANDATORY_ORDER_PRIORITY.getValue().equals(RADIOLOGY_PRIORITY_REQUIRED)
                                            || ConfigFlag.UI.CATEGORIES_MANDATORY_ORDER_PRIORITY.getValue().equals(PATHOLOGY_AND_RADIOLOGY_REQUIRED));

    return isPathologyRequired || isRadiologyRequired;
}
项目:openMAXIMS    文件:Logic.java   
private int returnSIzeFromCollection(MyOrderComponentVoCollection voCollCurrent)
{
    if (voCollCurrent == null || voCollCurrent.size() == 0)
    {
        return 0;
    }
    int nr = 0;
    for (int i = 0; i < voCollCurrent.size(); i++)
    {
        nr++;
        if (voCollCurrent.get(i).getComponentsIsNotNull())
            nr = nr + voCollCurrent.get(i).getComponents().size();
    }

    return nr;
}
项目:openMAXIMS    文件:Logic.java   
private Boolean isPhlebMayCollect(Integer invId)
{
    // go through the context and retrieve the component for this inv
    MyOrderComponentVoCollection voCollComponents = form.getGlobalContext().OCRR.getMyOrderComponents();
    if (voCollComponents == null)
        return null;

    for (int i = 0; i < voCollComponents.size(); i++)
    {
        MyOrderComponentVo voComponent = voCollComponents.get(i);
        if (voComponent.getIDIsNotNull() && voComponent.getID().equals(invId))
            return voComponent.getPhlebMayCollect();

        if (voComponent.getComponentsIsNotNull())
        {
            for (int p = 0; p < voComponent.getComponents().size(); p++)
            {
                MyOrderChildComponentVo voChildComponent = voComponent.getComponents().get(p);
                if (voChildComponent.getIDIsNotNull() && voChildComponent.getID().equals(invId))
                    return voChildComponent.getPhlebMayCollect();
            }
        }
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private ArrayList<Integer> getUsedServices(MyOrderComponentVoCollection voCollSelectedComponents)
{
    if (voCollSelectedComponents == null)
        return null;

    ArrayList<Integer> serviceIDs = new ArrayList<Integer>();

    for (MyOrderComponentVo component : voCollSelectedComponents)
    {
        if (component.getServiceID() != null)
        {
            serviceIDs.add(component.getServiceID());
        }

        if (component.getComponents() != null)
        {
            getUsedServices(component.getComponents(), serviceIDs);
        }

    }

    return serviceIDs;
}
项目:openMAXIMS    文件:Logic.java   
private CategoryCollection getUsedCategories(MyOrderComponentVoCollection voCollSelectedComponents)
{
    if (voCollSelectedComponents == null)
        return null;

    CategoryCollection category = new CategoryCollection();

    for (MyOrderComponentVo component : voCollSelectedComponents)
    {
        if (component.getCategory() != null)
        {
            category.add(component.getCategory());
        }

        if (component.getComponents() != null)
        {
            getUsedCategories(component.getComponents(), category);
        }
    }

    return category;
}
项目:openMAXIMS    文件:Logic.java   
private void repopulateFromMyOrder() throws PresentationLogicException
{
    SelectedComponentFromSelectOrderVoCollection voCollSelectedComponents = new SelectedComponentFromSelectOrderVoCollection();

    MyOrderComponentVoCollection voCollMyOrderComponents = form.getGlobalContext().OCRR.getMyOrderComponents();
    if(voCollMyOrderComponents != null)
    {
        for (int i = 0; i < voCollMyOrderComponents.size(); i++)
        {
            voCollSelectedComponents.add(voCollMyOrderComponents.get(i));
            if (voCollMyOrderComponents.get(i).getComponentsIsNotNull())
            {
                for (int p = 0; p < voCollMyOrderComponents.get(i).getComponents().size(); p++)
                    voCollSelectedComponents.add(voCollMyOrderComponents.get(i).getComponents().get(p));
            }
        }
    }

    form.getLocalContext().setSelectedComponents(voCollSelectedComponents);
    switchToPreviewView();
    switchToSearchView();
    form.treDetails().setValue(searchNodeValue);
}
项目:openMAXIMS    文件:Logic.java   
private void bindOrderPriority(MyOrderComponentVoCollection myOrderComponents)
{
    // Clear Order Priority combo-box
    form.lyrDetails().tabGenDetails().cmbPriority().clear();

    boolean hasPathologyInvestigation = hasPathologyInvestigations(myOrderComponents);
    boolean hasRadiologyInvestigation = hasRadiologyInvestigations(myOrderComponents);
    boolean hasClinicalInvestigation = hasClinicalInvestigations(myOrderComponents);

    OrderPriorityCollection priorities = domain.listOrderPriority(hasPathologyInvestigation, hasRadiologyInvestigation, hasClinicalInvestigation);

    for (int i = 0; i < priorities.size(); i++)
    {
        OrderPriority orderPriority = priorities.get(i);
        form.lyrDetails().tabGenDetails().cmbPriority().newRow(orderPriority, orderPriority.getText());
    }

    form.lyrDetails().tabGenDetails().cmbPriority().removeRow(OrderPriority.VARIOUS);
}
项目:openMAXIMS    文件:Logic.java   
private boolean isOrderPriorityMandatory(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    boolean hasPathologyInvestigations  = hasPathologyInvestigations(myOrderComponents);
    boolean hasRadiologyInvestigations  = hasRadiologyInvestigations(myOrderComponents);

    // Check if Order Priority for Pathology investigations is mandatory for this order
    // (Contains Pathology investigations and the flag is set)
    boolean isPathologyRequired = hasPathologyInvestigations
                                    && (ConfigFlag.UI.CATEGORIES_MANDATORY_ORDER_PRIORITY.getValue().equals(PATHOLOGY_PRIORITY_REQUIRED)
                                            || ConfigFlag.UI.CATEGORIES_MANDATORY_ORDER_PRIORITY.getValue().equals(PATHOLOGY_AND_RADIOLOGY_REQUIRED));

    // Check if Order Priority for Radiology investigations is mandatory
    // (Contains Radiology investigations and the flag is set)
    boolean isRadiologyRequired = hasRadiologyInvestigations
                                    && (ConfigFlag.UI.CATEGORIES_MANDATORY_ORDER_PRIORITY.getValue().equals(RADIOLOGY_PRIORITY_REQUIRED)
                                            || ConfigFlag.UI.CATEGORIES_MANDATORY_ORDER_PRIORITY.getValue().equals(PATHOLOGY_AND_RADIOLOGY_REQUIRED));

    return isPathologyRequired || isRadiologyRequired;
}
项目:openMAXIMS    文件:Logic.java   
private int returnSIzeFromCollection(MyOrderComponentVoCollection voCollCurrent)
{
    if (voCollCurrent == null || voCollCurrent.size() == 0)
    {
        return 0;
    }
    int nr = 0;
    for (int i = 0; i < voCollCurrent.size(); i++)
    {
        nr++;
        if (voCollCurrent.get(i).getComponentsIsNotNull())
            nr = nr + voCollCurrent.get(i).getComponents().size();
    }

    return nr;
}
项目:openMAXIMS    文件:Logic.java   
private Boolean isPhlebMayCollect(Integer invId)
{
    // go through the context and retrieve the component for this inv
    MyOrderComponentVoCollection voCollComponents = form.getGlobalContext().OCRR.getMyOrderComponents();
    if (voCollComponents == null)
        return null;

    for (int i = 0; i < voCollComponents.size(); i++)
    {
        MyOrderComponentVo voComponent = voCollComponents.get(i);
        if (voComponent.getIDIsNotNull() && voComponent.getID().equals(invId))
            return voComponent.getPhlebMayCollect();

        if (voComponent.getComponentsIsNotNull())
        {
            for (int p = 0; p < voComponent.getComponents().size(); p++)
            {
                MyOrderChildComponentVo voChildComponent = voComponent.getComponents().get(p);
                if (voChildComponent.getIDIsNotNull() && voChildComponent.getID().equals(invId))
                    return voChildComponent.getPhlebMayCollect();
            }
        }
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private ArrayList<Integer> getUsedServices(MyOrderComponentVoCollection voCollSelectedComponents)
{
    if (voCollSelectedComponents == null)
        return null;

    ArrayList<Integer> serviceIDs = new ArrayList<Integer>();

    for (MyOrderComponentVo component : voCollSelectedComponents)
    {
        if (component.getServiceID() != null)
        {
            serviceIDs.add(component.getServiceID());
        }

        if (component.getComponents() != null)
        {
            getUsedServices(component.getComponents(), serviceIDs);
        }

    }

    return serviceIDs;
}
项目:openMAXIMS    文件:Logic.java   
private CategoryCollection getUsedCategories(MyOrderComponentVoCollection voCollSelectedComponents)
{
    if (voCollSelectedComponents == null)
        return null;

    CategoryCollection category = new CategoryCollection();

    for (MyOrderComponentVo component : voCollSelectedComponents)
    {
        if (component.getCategory() != null)
        {
            category.add(component.getCategory());
        }

        if (component.getComponents() != null)
        {
            getUsedCategories(component.getComponents(), category);
        }
    }

    return category;
}
项目:openmaxims-linux    文件:Logic.java   
private void repopulateFromMyOrder() throws PresentationLogicException
{
    SelectedComponentFromSelectOrderVoCollection voCollSelectedComponents = new SelectedComponentFromSelectOrderVoCollection();

    MyOrderComponentVoCollection voCollMyOrderComponents = form.getGlobalContext().OCRR.getMyOrderComponents();
    if(voCollMyOrderComponents != null)
    {
        for (int i = 0; i < voCollMyOrderComponents.size(); i++)
        {
            voCollSelectedComponents.add(voCollMyOrderComponents.get(i));
            if (voCollMyOrderComponents.get(i).getComponentsIsNotNull())
            {
                for (int p = 0; p < voCollMyOrderComponents.get(i).getComponents().size(); p++)
                    voCollSelectedComponents.add(voCollMyOrderComponents.get(i).getComponents().get(p));
            }
        }
    }

    form.getLocalContext().setSelectedComponents(voCollSelectedComponents);
    switchToPreviewView();
    switchToSearchView();
    form.treDetails().setValue(searchNodeValue);
}
项目:openmaxims-linux    文件:Logic.java   
private void bindOrderPriority(MyOrderComponentVoCollection myOrderComponents)
{
    // Clear Order Priority combo-box
    form.lyrDetails().tabGenDetails().cmbPriority().clear();

    boolean hasPathologyInvestigation = hasPathologyInvestigations(myOrderComponents);
    boolean hasRadiologyInvestigation = hasRadiologyInvestigations(myOrderComponents);
    boolean hasClinicalInvestigation = hasClinicalInvestigations(myOrderComponents);

    OrderPriorityCollection priorities = domain.listOrderPriority(hasPathologyInvestigation, hasRadiologyInvestigation, hasClinicalInvestigation);

    for (int i = 0; i < priorities.size(); i++)
    {
        OrderPriority orderPriority = priorities.get(i);
        form.lyrDetails().tabGenDetails().cmbPriority().newRow(orderPriority, orderPriority.getText());
    }

    form.lyrDetails().tabGenDetails().cmbPriority().removeRow(OrderPriority.VARIOUS);
}
项目:openmaxims-linux    文件:Logic.java   
private boolean isOrderPriorityMandatory(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    boolean hasPathologyInvestigations  = hasPathologyInvestigations(myOrderComponents);
    boolean hasRadiologyInvestigations  = hasRadiologyInvestigations(myOrderComponents);

    // Check if Order Priority for Pathology investigations is mandatory for this order
    // (Contains Pathology investigations and the flag is set)
    boolean isPathologyRequired = hasPathologyInvestigations
                                    && (ConfigFlag.UI.CATEGORIES_MANDATORY_ORDER_PRIORITY.getValue().equals(PATHOLOGY_PRIORITY_REQUIRED)
                                            || ConfigFlag.UI.CATEGORIES_MANDATORY_ORDER_PRIORITY.getValue().equals(PATHOLOGY_AND_RADIOLOGY_REQUIRED));

    // Check if Order Priority for Radiology investigations is mandatory
    // (Contains Radiology investigations and the flag is set)
    boolean isRadiologyRequired = hasRadiologyInvestigations
                                    && (ConfigFlag.UI.CATEGORIES_MANDATORY_ORDER_PRIORITY.getValue().equals(RADIOLOGY_PRIORITY_REQUIRED)
                                            || ConfigFlag.UI.CATEGORIES_MANDATORY_ORDER_PRIORITY.getValue().equals(PATHOLOGY_AND_RADIOLOGY_REQUIRED));

    return isPathologyRequired || isRadiologyRequired;
}
项目:openmaxims-linux    文件:Logic.java   
private int returnSIzeFromCollection(MyOrderComponentVoCollection voCollCurrent)
{
    if (voCollCurrent == null || voCollCurrent.size() == 0)
    {
        return 0;
    }
    int nr = 0;
    for (int i = 0; i < voCollCurrent.size(); i++)
    {
        nr++;
        if (voCollCurrent.get(i).getComponentsIsNotNull())
            nr = nr + voCollCurrent.get(i).getComponents().size();
    }

    return nr;
}
项目:openmaxims-linux    文件:Logic.java   
private Boolean isPhlebMayCollect(Integer invId)
{
    // go through the context and retrieve the component for this inv
    MyOrderComponentVoCollection voCollComponents = form.getGlobalContext().OCRR.getMyOrderComponents();
    if (voCollComponents == null)
        return null;

    for (int i = 0; i < voCollComponents.size(); i++)
    {
        MyOrderComponentVo voComponent = voCollComponents.get(i);
        if (voComponent.getIDIsNotNull() && voComponent.getID().equals(invId))
            return voComponent.getPhlebMayCollect();

        if (voComponent.getComponentsIsNotNull())
        {
            for (int p = 0; p < voComponent.getComponents().size(); p++)
            {
                MyOrderChildComponentVo voChildComponent = voComponent.getComponents().get(p);
                if (voChildComponent.getIDIsNotNull() && voChildComponent.getID().equals(invId))
                    return voChildComponent.getPhlebMayCollect();
            }
        }
    }

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private ArrayList<Integer> getUsedServices(MyOrderComponentVoCollection voCollSelectedComponents)
{
    if (voCollSelectedComponents == null)
        return null;

    ArrayList<Integer> serviceIDs = new ArrayList<Integer>();

    for (MyOrderComponentVo component : voCollSelectedComponents)
    {
        if (component.getServiceID() != null)
        {
            serviceIDs.add(component.getServiceID());
        }

        if (component.getComponents() != null)
        {
            getUsedServices(component.getComponents(), serviceIDs);
        }

    }

    return serviceIDs;
}
项目:openmaxims-linux    文件:Logic.java   
private CategoryCollection getUsedCategories(MyOrderComponentVoCollection voCollSelectedComponents)
{
    if (voCollSelectedComponents == null)
        return null;

    CategoryCollection category = new CategoryCollection();

    for (MyOrderComponentVo component : voCollSelectedComponents)
    {
        if (component.getCategory() != null)
        {
            category.add(component.getCategory());
        }

        if (component.getComponents() != null)
        {
            getUsedCategories(component.getComponents(), category);
        }
    }

    return category;
}
项目:AvoinApotti    文件:Logic.java   
private void rebuildComponentsFromData(OcsOrderVo voOcsOrder)
{
    // gather the orderinvestigation records and populate the
    // MyOrderComponents Global Context
    MyOrderComponentVoCollection components = new MyOrderComponentVoCollection();

    if (voOcsOrder.getInvestigationsIsNotNull())
    {
        for (int i = 0; i < voOcsOrder.getInvestigations().size(); i++)
        {
            OrderInvestigationVo voOrderInv = voOcsOrder.getInvestigations().get(i);

            if (OrderInvStatus.CANCELLED.equals(voOrderInv.getOrdInvCurrentStatus().getOrdInvStatus())
                    || OrderInvStatus.CANCEL_REQUEST.equals(voOrderInv.getOrdInvCurrentStatus().getOrdInvStatus()))
                continue;

            MyOrderComponentVo component = new MyOrderComponentVo();
            component.setCategory(voOrderInv.getInvestigation().getInvestigationIndex().getCategory());
            component.setAdditionalLocationInfo(voOrderInv.getInvestigation().getNameWithLocationInfo());
            component.setComponentType(SelectAndOrderComponentType.INVESTIGATION);
            component.setGenderSpecific(voOrderInv.getInvestigation().getInvestigationIndex().getGenderSpecific());
            component.setHelpText(voOrderInv.getInvestigation().buildHelpTextTooltip());
            component.setID(voOrderInv.getInvestigation().getID_Investigation());
            component.setIsAddon(voOrderInv.getInvestigation().getIsAddon());
            component.setPhlebMayCollect(voOrderInv.getInvestigation().getInvestigationIndex().getPhlebMayCollect());
            component.setRequiresSite(voOrderInv.getInvestigation().getInvestigationIndex().getRequiresSiteSpecifier());
            component.setServiceID(voOrderInv.getInvestigation().getProviderService() != null && voOrderInv.getInvestigation().getProviderService().getLocationService() != null ? voOrderInv.getInvestigation().getProviderService().getLocationService().getService().getID_Service() : null);
            component.setText(voOrderInv.getInvestigation().getInvestigationIndex().getName());
            component.setTooltip(voOrderInv.getInvestigation().getInvestigationIndex().getDescription());

            components.add(component);
        }

        components.sort(new MyOrderComponentComparator());//WDEV-14912
        form.getGlobalContext().OCRR.setMyOrderComponents(components);
    }
}
项目:AvoinApotti    文件:Logic.java   
private boolean hasClinicalInvestigations(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    for (MyOrderComponentVo component : myOrderComponents)
    {
        if (Category.CLINICAL.equals(component.getCategory()))
            return true;
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean hasRadiologyInvestigations(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    for (MyOrderComponentVo component : myOrderComponents)
    {
        if (Category.CLINICALIMAGING.equals(component.getCategory()))
            return true;
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean hasPathologyInvestigations(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    for (MyOrderComponentVo component : myOrderComponents)
    {
        if (Category.PATHOLOGY.equals(component.getCategory()))
            return true;
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void loadComponents(MyOrderComponentVoCollection components)
{
    for (int x = 0; x < components.size(); x++)
    {
        MyOrderComponentVo component = components.get(x);

        if (component != null)
        {
            boolean isProfile = false;
            TreeNode node = form.treeComponents().getNodes().add(component, component.getText());
            if (component.getTooltipIsNotNull())
                node.setTooltip(component.getTooltip());
            isProfile = component.getComponentTypeIsNotNull() && component.getComponentType().equals(SelectAndOrderComponentType.PROFILE);
            node.setExpandedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
            node.setCollapsedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
            node.setExpanded(true);

            if (component.getComponentsIsNotNull())
            {
                for (int y = 0; y < component.getComponents().size(); y++)
                {
                    MyOrderChildComponentVo childComponent = component.getComponents().get(y);

                    TreeNode childNode = node.getNodes().add(childComponent, childComponent.getText());
                    if (childComponent.getTooltipIsNotNull())
                        childNode.setTooltip(childComponent.getTooltip());
                    isProfile = childComponent.getComponentTypeIsNotNull() && childComponent.getComponentType().equals(SelectAndOrderComponentType.PROFILE);
                    childNode.setExpandedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
                    childNode.setCollapsedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void rebuildComponentsFromData(OcsOrderVo voOcsOrder)
{
    // gather the orderinvestigation records and populate the
    // MyOrderComponents Global Context
    MyOrderComponentVoCollection components = new MyOrderComponentVoCollection();

    if (voOcsOrder.getInvestigationsIsNotNull())
    {
        for (int i = 0; i < voOcsOrder.getInvestigations().size(); i++)
        {
            OrderInvestigationVo voOrderInv = voOcsOrder.getInvestigations().get(i);

            if (OrderInvStatus.CANCELLED.equals(voOrderInv.getOrdInvCurrentStatus().getOrdInvStatus())
                    || OrderInvStatus.CANCEL_REQUEST.equals(voOrderInv.getOrdInvCurrentStatus().getOrdInvStatus()))
                continue;

            MyOrderComponentVo component = new MyOrderComponentVo();
            component.setCategory(voOrderInv.getInvestigation().getInvestigationIndex().getCategory());
            component.setAdditionalLocationInfo(voOrderInv.getInvestigation().getNameWithLocationInfo());
            component.setComponentType(SelectAndOrderComponentType.INVESTIGATION);
            component.setGenderSpecific(voOrderInv.getInvestigation().getInvestigationIndex().getGenderSpecific());
            component.setHelpText(voOrderInv.getInvestigation().buildHelpTextTooltip());
            component.setID(voOrderInv.getInvestigation().getID_Investigation());
            component.setIsAddon(voOrderInv.getInvestigation().getIsAddon());
            component.setPhlebMayCollect(voOrderInv.getInvestigation().getInvestigationIndex().getPhlebMayCollect());
            component.setRequiresSite(voOrderInv.getInvestigation().getInvestigationIndex().getRequiresSiteSpecifier());
            component.setServiceID(voOrderInv.getInvestigation().getProviderService() != null && voOrderInv.getInvestigation().getProviderService().getLocationService() != null ? voOrderInv.getInvestigation().getProviderService().getLocationService().getService().getID_Service() : null);
            component.setText(voOrderInv.getInvestigation().getInvestigationIndex().getName());
            component.setTooltip(voOrderInv.getInvestigation().getInvestigationIndex().getDescription());

            components.add(component);
        }

        components.sort(new MyOrderComponentComparator());//WDEV-14912
        form.getGlobalContext().OCRR.setMyOrderComponents(components);
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean hasClinicalInvestigations(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    for (MyOrderComponentVo component : myOrderComponents)
    {
        if (Category.CLINICAL.equals(component.getCategory()))
            return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean hasRadiologyInvestigations(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    for (MyOrderComponentVo component : myOrderComponents)
    {
        if (Category.CLINICALIMAGING.equals(component.getCategory()))
            return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean hasPathologyInvestigations(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    for (MyOrderComponentVo component : myOrderComponents)
    {
        if (Category.PATHOLOGY.equals(component.getCategory()))
            return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void loadComponents(MyOrderComponentVoCollection components)
{
    for (int x = 0; x < components.size(); x++)
    {
        MyOrderComponentVo component = components.get(x);

        if (component != null)
        {
            boolean isProfile = false;
            TreeNode node = form.treeComponents().getNodes().add(component, component.getText());
            if (component.getTooltipIsNotNull())
                node.setTooltip(component.getTooltip());
            isProfile = component.getComponentTypeIsNotNull() && component.getComponentType().equals(SelectAndOrderComponentType.PROFILE);
            node.setExpandedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
            node.setCollapsedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
            node.setExpanded(true);

            if (component.getComponentsIsNotNull())
            {
                for (int y = 0; y < component.getComponents().size(); y++)
                {
                    MyOrderChildComponentVo childComponent = component.getComponents().get(y);

                    TreeNode childNode = node.getNodes().add(childComponent, childComponent.getText());
                    if (childComponent.getTooltipIsNotNull())
                        childNode.setTooltip(childComponent.getTooltip());
                    isProfile = childComponent.getComponentTypeIsNotNull() && childComponent.getComponentType().equals(SelectAndOrderComponentType.PROFILE);
                    childNode.setExpandedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
                    childNode.setCollapsedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void rebuildComponentsFromData(OcsOrderVo voOcsOrder)
{
    // gather the orderinvestigation records and populate the
    // MyOrderComponents Global Context
    MyOrderComponentVoCollection components = new MyOrderComponentVoCollection();

    if (voOcsOrder.getInvestigationsIsNotNull())
    {
        for (int i = 0; i < voOcsOrder.getInvestigations().size(); i++)
        {
            OrderInvestigationVo voOrderInv = voOcsOrder.getInvestigations().get(i);

            if (OrderInvStatus.CANCELLED.equals(voOrderInv.getOrdInvCurrentStatus().getOrdInvStatus())
                    || OrderInvStatus.CANCEL_REQUEST.equals(voOrderInv.getOrdInvCurrentStatus().getOrdInvStatus()))
                continue;

            MyOrderComponentVo component = new MyOrderComponentVo();
            component.setCategory(voOrderInv.getInvestigation().getInvestigationIndex().getCategory());
            component.setAdditionalLocationInfo(voOrderInv.getInvestigation().getNameWithLocationInfo());
            component.setComponentType(SelectAndOrderComponentType.INVESTIGATION);
            component.setGenderSpecific(voOrderInv.getInvestigation().getInvestigationIndex().getGenderSpecific());
            component.setHelpText(voOrderInv.getInvestigation().buildHelpTextTooltip());
            component.setID(voOrderInv.getInvestigation().getID_Investigation());
            component.setIsAddon(voOrderInv.getInvestigation().getIsAddon());
            component.setPhlebMayCollect(voOrderInv.getInvestigation().getInvestigationIndex().getPhlebMayCollect());
            component.setRequiresSite(voOrderInv.getInvestigation().getInvestigationIndex().getRequiresSiteSpecifier());
            component.setServiceID(voOrderInv.getInvestigation().getProviderService() != null && voOrderInv.getInvestigation().getProviderService().getLocationService() != null ? voOrderInv.getInvestigation().getProviderService().getLocationService().getService().getID_Service() : null);
            component.setText(voOrderInv.getInvestigation().getInvestigationIndex().getName());
            component.setTooltip(voOrderInv.getInvestigation().getInvestigationIndex().getDescription());

            components.add(component);
        }

        components.sort(new MyOrderComponentComparator());//WDEV-14912
        form.getGlobalContext().OCRR.setMyOrderComponents(components);
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean hasClinicalInvestigations(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    for (MyOrderComponentVo component : myOrderComponents)
    {
        if (Category.CLINICAL.equals(component.getCategory()))
            return true;
    }

    return false;
}