Java 类ims.clinical.vo.SECSConfigurationVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private SECSTypesCollection getUsedItemsLookupCollection()
{
    if(form.dyngrdSecs().getRows().size() == 0)
        return null;

    SECSTypesCollection collLookups = new SECSTypesCollection();
    if(form.getLocalContext().getSelectedInstance() != null)
    {
        SECSConfigurationVoCollection voCollConfig = form.getLocalContext().getSelectedInstance().getConfiguration();
        if(voCollConfig != null)
        {
            for(int i=0;i<voCollConfig.size();i++)
            {
                collLookups.add(voCollConfig.get(i).getType());
            }
        }
    } 

    return collLookups;
}
项目:openMAXIMS    文件:Logic.java   
private OBSTypeCollection getUsedItemsLookupCollection()
{
    if(form.dyngrdSecs().getRows().size() == 0)
        return null;

    OBSTypeCollection collLookups = new OBSTypeCollection();
    if(form.getLocalContext().getSelectedInstance() != null)
    {
        SECSConfigurationVoCollection voCollConfig = form.getLocalContext().getSelectedInstance().getConfiguration();
        if(voCollConfig != null)
        {
            for(int i=0;i<voCollConfig.size();i++)
            {
                collLookups.add(voCollConfig.get(i).getType());
            }
        }
    } 

    return collLookups;
}
项目:openMAXIMS    文件:Logic.java   
private OBSTypeCollection getVitalSignsRequiredForScore(SECSConfigurationVoCollection voCollConfig) 
{
    if (voCollConfig==null  || voCollConfig.size()==0)
        return null;

    OBSTypeCollection collObsType=new OBSTypeCollection();

    for (int i = 0; i < voCollConfig.size(); i++)
    {
        if (voCollConfig.get(i)!=null && Boolean.TRUE.equals(voCollConfig.get(i).getIsRequiredForScore()))
        {
            collObsType.add(voCollConfig.get(i).getType());
        }
    }

    return collObsType;
}
项目:openMAXIMS    文件:Logic.java   
private OBSTypeCollection getVitalSignsRequiredForScore(SECSConfigurationVoCollection voCollConfig) 
{
    if (voCollConfig==null  || voCollConfig.size()==0)
        return null;

    OBSTypeCollection collObsType=new OBSTypeCollection();

    for (int i = 0; i < voCollConfig.size(); i++)
    {
        if (voCollConfig.get(i)!=null && Boolean.TRUE.equals(voCollConfig.get(i).getIsRequiredForScore()))
        {
            collObsType.add(voCollConfig.get(i).getType());
        }
    }

    return collObsType;
}
项目:openMAXIMS    文件:Logic.java   
private OBSTypeCollection getVitalSignsRequiredForScore(SECSConfigurationVoCollection voCollConfig) 
{
    if (voCollConfig==null  || voCollConfig.size()==0)
        return null;

    OBSTypeCollection collObsType=new OBSTypeCollection();

    for (int i = 0; i < voCollConfig.size(); i++)
    {
        if (voCollConfig.get(i)!=null && Boolean.TRUE.equals(voCollConfig.get(i).getIsRequiredForScore()))
        {
            collObsType.add(voCollConfig.get(i).getType());
        }
    }

    return collObsType;
}
项目:openMAXIMS    文件:Logic.java   
private SECSTypesCollection getUsedItemsLookupCollection()
{
    if(form.dyngrdSecs().getRows().size() == 0)
        return null;

    SECSTypesCollection collLookups = new SECSTypesCollection();
    if(form.getLocalContext().getSelectedInstance() != null)
    {
        SECSConfigurationVoCollection voCollConfig = form.getLocalContext().getSelectedInstance().getConfiguration();
        if(voCollConfig != null)
        {
            for(int i=0;i<voCollConfig.size();i++)
            {
                collLookups.add(voCollConfig.get(i).getType());
            }
        }
    } 

    return collLookups;
}
项目:openmaxims-linux    文件:Logic.java   
private SECSTypesCollection getUsedItemsLookupCollection()
{
    if(form.dyngrdSecs().getRows().size() == 0)
        return null;

    SECSTypesCollection collLookups = new SECSTypesCollection();
    if(form.getLocalContext().getSelectedInstance() != null)
    {
        SECSConfigurationVoCollection voCollConfig = form.getLocalContext().getSelectedInstance().getConfiguration();
        if(voCollConfig != null)
        {
            for(int i=0;i<voCollConfig.size();i++)
            {
                collLookups.add(voCollConfig.get(i).getType());
            }
        }
    } 

    return collLookups;
}
项目:AvoinApotti    文件:Logic.java   
/**
 * if a record exists then retrieve it for type else create new
 * @param voCollSecsConfig
 * @param type 
 * @return
 */
private SECSConfigurationVo getConfigRecord(SECSConfigurationVoCollection voCollSecsConfig, SECSTypes type)
{
    for(int i=0; i<voCollSecsConfig.size(); i++)
    {
        if(voCollSecsConfig.get(i).getTypeIsNotNull() && voCollSecsConfig.get(i).getType().equals(type))
            return voCollSecsConfig.get(i);
    }

    return new SECSConfigurationVo();
}
项目:openMAXIMS    文件:Logic.java   
/**
 * if a record exists then retrieve it for type else create new
 * @param voCollSecsConfig
 * @param type 
 * @return
 */
private SECSConfigurationVo getConfigRecord(SECSConfigurationVoCollection voCollSecsConfig, OBSType type)
{
    for(int i=0; i<voCollSecsConfig.size(); i++)
    {
        if(voCollSecsConfig.get(i).getTypeIsNotNull() && voCollSecsConfig.get(i).getType().equals(type))
            return voCollSecsConfig.get(i);
    }

    return new SECSConfigurationVo();
}
项目:openMAXIMS    文件:Logic.java   
/**
 * if a record exists then retrieve it for type else create new
 * @param voCollSecsConfig
 * @param type 
 * @return
 */
private SECSConfigurationVo getConfigRecord(SECSConfigurationVoCollection voCollSecsConfig, SECSTypes type)
{
    for(int i=0; i<voCollSecsConfig.size(); i++)
    {
        if(voCollSecsConfig.get(i).getTypeIsNotNull() && voCollSecsConfig.get(i).getType().equals(type))
            return voCollSecsConfig.get(i);
    }

    return new SECSConfigurationVo();
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * if a record exists then retrieve it for type else create new
 * @param voCollSecsConfig
 * @param type 
 * @return
 */
private SECSConfigurationVo getConfigRecord(SECSConfigurationVoCollection voCollSecsConfig, SECSTypes type)
{
    for(int i=0; i<voCollSecsConfig.size(); i++)
    {
        if(voCollSecsConfig.get(i).getTypeIsNotNull() && voCollSecsConfig.get(i).getType().equals(type))
            return voCollSecsConfig.get(i);
    }

    return new SECSConfigurationVo();
}
项目:AvoinApotti    文件:Logic.java   
public String[] validateUIRules()
{
    ArrayList<String> errors = new ArrayList<String>();

    //validating that a type has been set for each parameter
    if(form.getLocalContext().getSelectedInstanceIsNotNull())
    {
        SECSConfigurationVoCollection voCollConfig = form.getLocalContext().getSelectedInstance().getConfiguration();
        if(voCollConfig != null)
        {
            for(int i=0;i<voCollConfig.size();i++)
            {
                if(voCollConfig.get(i).getType() == null)
                {
                    errors.add("Parameter is a mandatory field");
                    break;
                }
                else
                {
                    if(isRange(voCollConfig.get(i).getType()))
                    {
                        if(voCollConfig.get(i).getRangeConfigIsNotNull() && voCollConfig.get(i).getRangeConfig().getRangeScoresIsNotNull())
                        {
                            for(int p=0;p<voCollConfig.get(i).getRangeConfig().getRangeScores().size();p++)
                            {
                                SECSRangeScoreVo score = voCollConfig.get(i).getRangeConfig().getRangeScores().get(p);
                                if(score.getGreaterThanIntValueIsNotNull() && score.getLessThanIntValueIsNotNull())
                                {
                                    if(score.getGreaterThanIntValue().intValue() >= score.getLessThanIntValue().intValue())
                                    {
                                        errors.add("'Greater Than' value must be less than 'Less Than' value.");
                                        break;
                                    }
                                }
                                if(score.getWarningTextIsNotNull() && score.getWarningText().length()>255){
                                    errors.add("Warning text should be less than 255 characters in length.");
                                    break;
                                }
                            }
                        }
                    }
                }
            }
        }
    }


    if((form.lyrDetail().tabOxygen().intMaxNormal().getValue() != null && form.lyrDetail().tabOxygen().intFractionRate().getValue() == null) || (form.lyrDetail().tabOxygen().intMaxNormal().getValue() == null && form.lyrDetail().tabOxygen().intFractionRate().getValue() != null))
        errors.add("'Min. Normal Oxygen Sats Level on Oxygen' and 'Fraction Rate' must be both entered or not at all");

    String[] arrErrors = null;
    if(errors.size() > 0)
    {
        arrErrors = new String[errors.size()];
        for(int i=0;i<errors.size();i++)
            arrErrors[i] = errors.get(i);
    }

    return arrErrors;
}
项目:openMAXIMS    文件:Logic.java   
public String[] validateUIRules()
    {
        ArrayList<String> errors = new ArrayList<String>();

        //validating that a type has been set for each parameter
        if(form.getLocalContext().getSelectedInstanceIsNotNull())
        {
            SECSConfigurationVoCollection voCollConfig = form.getLocalContext().getSelectedInstance().getConfiguration();
            if(voCollConfig != null)
            {
                for(int i=0;i<voCollConfig.size();i++)
                {
                    if(voCollConfig.get(i).getType() == null)
                    {
                        errors.add("Parameter is a mandatory field");
                        break;
                    }
                    else
                    {
                        if(isRange(voCollConfig.get(i).getType()))
                        {
                            if(voCollConfig.get(i).getRangeConfigIsNotNull() && voCollConfig.get(i).getRangeConfig().getRangeScoresIsNotNull())
                            {
                                for(int p=0;p<voCollConfig.get(i).getRangeConfig().getRangeScores().size();p++)
                                {
                                    SECSRangeScoreVo score = voCollConfig.get(i).getRangeConfig().getRangeScores().get(p);
                                    if(score.getGreaterThanIntValueIsNotNull() && score.getLessThanIntValueIsNotNull())
                                    {
                                        if(score.getGreaterThanIntValue().intValue() >= score.getLessThanIntValue().intValue())
                                        {
                                            //http://jira/browse/WDEV-22399
//                                          errors.add("'Greater Than' value must be less than 'Less Than' value."); 
                                            errors.add("'Greater Than Or Equal To' value must be less or equal than 'Less Than Or Equal To' value."); //WDEV-22399
                                            break;
                                        }
                                    }
                                    if(score.getWarningTextIsNotNull() && score.getWarningText().length()>255){
                                        errors.add("Warning text should be less than 255 characters in length.");
                                        break;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }


        if((form.lyrDetail().tabOxygen().intMaxNormal().getValue() != null && form.lyrDetail().tabOxygen().intFractionRate().getValue() == null) || (form.lyrDetail().tabOxygen().intMaxNormal().getValue() == null && form.lyrDetail().tabOxygen().intFractionRate().getValue() != null))
            errors.add("'Min. Normal Oxygen Sats Level on Oxygen' and 'Fraction Rate' must be both entered or not at all");

        String[] arrErrors = null;
        if(errors.size() > 0)
        {
            arrErrors = new String[errors.size()];
            for(int i=0;i<errors.size();i++)
                arrErrors[i] = errors.get(i);
        }

        return arrErrors;
    }
项目:openMAXIMS    文件:Logic.java   
public String[] validateUIRules()
{
    ArrayList<String> errors = new ArrayList<String>();

    //validating that a type has been set for each parameter
    if(form.getLocalContext().getSelectedInstanceIsNotNull())
    {
        SECSConfigurationVoCollection voCollConfig = form.getLocalContext().getSelectedInstance().getConfiguration();
        if(voCollConfig != null)
        {
            for(int i=0;i<voCollConfig.size();i++)
            {
                if(voCollConfig.get(i).getType() == null)
                {
                    errors.add("Parameter is a mandatory field");
                    break;
                }
                else
                {
                    if(isRange(voCollConfig.get(i).getType()))
                    {
                        if(voCollConfig.get(i).getRangeConfigIsNotNull() && voCollConfig.get(i).getRangeConfig().getRangeScoresIsNotNull())
                        {
                            for(int p=0;p<voCollConfig.get(i).getRangeConfig().getRangeScores().size();p++)
                            {
                                SECSRangeScoreVo score = voCollConfig.get(i).getRangeConfig().getRangeScores().get(p);
                                if(score.getGreaterThanIntValueIsNotNull() && score.getLessThanIntValueIsNotNull())
                                {
                                    if(score.getGreaterThanIntValue().intValue() >= score.getLessThanIntValue().intValue())
                                    {
                                        errors.add("'Greater Than' value must be less than 'Less Than' value.");
                                        break;
                                    }
                                }
                                if(score.getWarningTextIsNotNull() && score.getWarningText().length()>255){
                                    errors.add("Warning text should be less than 255 characters in length.");
                                    break;
                                }
                            }
                        }
                    }
                }
            }
        }
    }


    if((form.lyrDetail().tabOxygen().intMaxNormal().getValue() != null && form.lyrDetail().tabOxygen().intFractionRate().getValue() == null) || (form.lyrDetail().tabOxygen().intMaxNormal().getValue() == null && form.lyrDetail().tabOxygen().intFractionRate().getValue() != null))
        errors.add("'Min. Normal Oxygen Sats Level on Oxygen' and 'Fraction Rate' must be both entered or not at all");

    String[] arrErrors = null;
    if(errors.size() > 0)
    {
        arrErrors = new String[errors.size()];
        for(int i=0;i<errors.size();i++)
            arrErrors[i] = errors.get(i);
    }

    return arrErrors;
}
项目:openmaxims-linux    文件:Logic.java   
public String[] validateUIRules()
{
    ArrayList<String> errors = new ArrayList<String>();

    //validating that a type has been set for each parameter
    if(form.getLocalContext().getSelectedInstanceIsNotNull())
    {
        SECSConfigurationVoCollection voCollConfig = form.getLocalContext().getSelectedInstance().getConfiguration();
        if(voCollConfig != null)
        {
            for(int i=0;i<voCollConfig.size();i++)
            {
                if(voCollConfig.get(i).getType() == null)
                {
                    errors.add("Parameter is a mandatory field");
                    break;
                }
                else
                {
                    if(isRange(voCollConfig.get(i).getType()))
                    {
                        if(voCollConfig.get(i).getRangeConfigIsNotNull() && voCollConfig.get(i).getRangeConfig().getRangeScoresIsNotNull())
                        {
                            for(int p=0;p<voCollConfig.get(i).getRangeConfig().getRangeScores().size();p++)
                            {
                                SECSRangeScoreVo score = voCollConfig.get(i).getRangeConfig().getRangeScores().get(p);
                                if(score.getGreaterThanIntValueIsNotNull() && score.getLessThanIntValueIsNotNull())
                                {
                                    if(score.getGreaterThanIntValue().intValue() >= score.getLessThanIntValue().intValue())
                                    {
                                        errors.add("'Greater Than' value must be less than 'Less Than' value.");
                                        break;
                                    }
                                }
                                if(score.getWarningTextIsNotNull() && score.getWarningText().length()>255){
                                    errors.add("Warning text should be less than 255 characters in length.");
                                    break;
                                }
                            }
                        }
                    }
                }
            }
        }
    }


    if((form.lyrDetail().tabOxygen().intMaxNormal().getValue() != null && form.lyrDetail().tabOxygen().intFractionRate().getValue() == null) || (form.lyrDetail().tabOxygen().intMaxNormal().getValue() == null && form.lyrDetail().tabOxygen().intFractionRate().getValue() != null))
        errors.add("'Min. Normal Oxygen Sats Level on Oxygen' and 'Fraction Rate' must be both entered or not at all");

    String[] arrErrors = null;
    if(errors.size() > 0)
    {
        arrErrors = new String[errors.size()];
        for(int i=0;i<errors.size();i++)
            arrErrors[i] = errors.get(i);
    }

    return arrErrors;
}