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

项目:AvoinApotti    文件:Logic.java   
/**
 * Populates the Keywords grid for a given KeywordVoCollection
 * @param KeywordVoCollection
 * @return void
 */
private void populateKeywords(KeywordVoCollection keys)
{
    form.lyrDetails().tabKeywords().grdKeywords().getRows().clear();
    if (keys != null)
    {
        form.lyrDetails().tabKeywords().grdKeywords().getRows().clear();
        grdKeywordsRow row = null;
        for (int i=0; i < keys.size(); i++)
        {
            row = form.lyrDetails().tabKeywords().grdKeywords().getRows().newRow();                 
            row.setKeyword(keys.get(i).getKeyword());                   
            row.setValue(keys.get(i));
        }
    }       
}
项目:openMAXIMS    文件:Logic.java   
private void addSnomedKeywords()
{
    TaxonomyMap map = getSnomedMapping();
    if (map == null)
        return;

    KeywordVoCollection coll = domain.listSnomedKeywords(map.getTaxonomyCode());
    for (int i = 0; i < coll.size(); i++)
    {
        KeywordVo keyword = coll.get(i);
        if (!containsKeyword(keyword))
        {
            grdKeywordsRow row = form.grdKeywords().getRows().newRow();                 
            row.setKeyword(coll.get(i).getKeyword());                   
            row.setValue(coll.get(i));                          
        }
    }       
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Populates the Keywords grid for a given KeywordVoCollection
 * @param KeywordVoCollection
 * @return void
 */
private void populateKeywords(KeywordVoCollection keys)
{
    form.lyrDetails().tabKeywords().grdKeywords().getRows().clear();
    if (keys != null)
    {
        form.lyrDetails().tabKeywords().grdKeywords().getRows().clear();
        grdKeywordsRow row = null;
        for (int i=0; i < keys.size(); i++)
        {
            row = form.lyrDetails().tabKeywords().grdKeywords().getRows().newRow();                 
            row.setKeyword(keys.get(i).getKeyword());                   
            row.setValue(keys.get(i));
        }
    }       
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Populates the Keywords grid for a given KeywordVoCollection
 * @param KeywordVoCollection
 * @return void
 */
private void populateKeywords(KeywordVoCollection keys)
{
    form.lyrDetails().tabKeywords().grdKeywords().getRows().clear();
    if (keys != null)
    {
        form.lyrDetails().tabKeywords().grdKeywords().getRows().clear();
        grdKeywordsRow row = null;
        for (int i=0; i < keys.size(); i++)
        {
            row = form.lyrDetails().tabKeywords().grdKeywords().getRows().newRow();                 
            row.setKeyword(keys.get(i).getKeyword());                   
            row.setValue(keys.get(i));
        }
    }       
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * Populates the Keywords grid for a given KeywordVoCollection
 * @param KeywordVoCollection
 * @return void
 */
private void populateKeywords(KeywordVoCollection keys)
{
    form.lyrDetails().tabKeywords().grdKeywords().getRows().clear();
    if (keys != null)
    {
        form.lyrDetails().tabKeywords().grdKeywords().getRows().clear();
        grdKeywordsRow row = null;
        for (int i=0; i < keys.size(); i++)
        {
            row = form.lyrDetails().tabKeywords().grdKeywords().getRows().newRow();                 
            row.setKeyword(keys.get(i).getKeyword());                   
            row.setValue(keys.get(i));
        }
    }       
}
项目:AvoinApotti    文件:Logic.java   
private void populateGridKeywords(KeywordVoCollection keywords)
{
    if (keywords == null)
    {
        return;
    }

    for (int i = 0; i < keywords.size(); i++)
    {
        grdKeywordsRow rowKeyword = form.grdKeywords().getRows().newRow();
        rowKeyword.setColKeywords(keywords.get(i).getKeyword());
        rowKeyword.setValue(keywords.get(i));
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateGridKeywords(KeywordVoCollection keywords)
{
    if (keywords == null)
    {
        return;
    }

    for (int i = 0; i < keywords.size(); i++)
    {
        grdKeywordsRow rowKeyword = form.grdKeywords().getRows().newRow();
        rowKeyword.setColKeywords(keywords.get(i).getKeyword());
        rowKeyword.setValue(keywords.get(i));
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateGridKeywords(KeywordVoCollection keywords)
{
    if (keywords == null)
    {
        return;
    }

    for (int i = 0; i < keywords.size(); i++)
    {
        grdKeywordsRow rowKeyword = form.grdKeywords().getRows().newRow();
        rowKeyword.setColKeywords(keywords.get(i).getKeyword());
        rowKeyword.setValue(keywords.get(i));
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void populateGridKeywords(KeywordVoCollection keywords)
{
    if (keywords == null)
    {
        return;
    }

    for (int i = 0; i < keywords.size(); i++)
    {
        grdKeywordsRow rowKeyword = form.grdKeywords().getRows().newRow();
        rowKeyword.setColKeywords(keywords.get(i).getKeyword());
        rowKeyword.setValue(keywords.get(i));
    }

}
项目:AvoinApotti    文件:Logic.java   
private void cloneQuestion(QuestionInformationShortVo voQInfoShort) 
{
    clearQuestionControls();
    initialiseNewQuestion();
    enableTabNewQuestion(true);
    enableTabListQuestion(false);
    showClassificationTree(true);   
    form.getGlobalContext().Core.setQuestionType(QuestionType.PRIMARY);
    form.lyrTabs().tabNewQuestion().setCaption(ADD_QUESTION);

    QuestionInformationVo voQInfo = null;
    if (voQInfoShort != null && voQInfoShort.getID_QuestionInformationIsNotNull())
    {
        voQInfo = domain.getQuestion(voQInfoShort.getID_QuestionInformation());
        voQInfo.clearIDAndVersion();
        //WDEV-17026 
        if (voQInfo.getTaxonomyMap() == null)
        {   
        voQInfo.setTaxonomyMap(new TaxonomyMapCollection());
        }
        voQInfo.setKeywords(new KeywordVoCollection());
        if (voQInfo.getKeywords() == null)
        {   
        voQInfo.setTaxonomyMap(new TaxonomyMapCollection());
        }
        if(voQInfo.getAnswerTypes() != null)
        {
            QuestionAnswerTypeVoCollection answers = new QuestionAnswerTypeVoCollection();
            for(int x = 0; x < voQInfo.getAnswerTypes().size(); x++)
            {
                QuestionAnswerTypeVo answer = voQInfo.getAnswerTypes().get(x);
                answer.clearIDAndVersion();

                if(answer.getOptions() != null)
                {
                    AnswerOptionVoCollection options = new AnswerOptionVoCollection();
                    for(int y = 0; y < answer.getOptions().size(); y++)
                    {
                        AnswerOptionVo option = answer.getOptions().get(y);
                        if(option != null)
                        {
                            option.clearIDAndVersion();
                            options.add(option);
                        }
                    }                       
                    answer.setOptions(options);
                }

                answers.add(answer);                    
            }
            voQInfo.setAnswerTypes(answers);
        }

        voQInfo.setID_QuestionInformation(-1);
        voQInfo.setStatus(PreActiveActiveInactiveStatus.PREACTIVE);
        form.getLocalContext().setVoQuestionInformation(voQInfo);
        populateControlsFromData(voQInfo);
        this.form.lyrTabs().tabNewQuestion().cmbStatus().setValue(PreActiveActiveInactiveStatus.PREACTIVE);
    }

    enableContextMenu();
}
项目:AvoinApotti    文件:Logic.java   
private MedicationVo getMedication() 
{
    IDMDValue selection = form.ccDMDSearch().getValue();
    if(selection == null)
        return null;

    MedicationVo result = new MedicationVo();

    result.setMedicationName(selection.getIDMDValueText());
    result.setIsActive(true);

    /*
    TaxonomyMapCollection taxonomy = new TaxonomyMapCollection();

    TaxonomyMap vtm = new TaxonomyMap();
    vtm.setTaxonomyName(TaxonomyType.VTM);
    vtm.setTaxonomyCode(String.valueOf(form.ccDMDSearch().getVTM().getID_VTM()));
    taxonomy.add(vtm);

    if(selection.getIDMDValueType() == DMDType.VMP || selection.getIDMDValueType() == DMDType.AMP)
    {
        TaxonomyMap vmp = new TaxonomyMap();
        vmp.setTaxonomyName(TaxonomyType.VMP);
        vmp.setTaxonomyCode(String.valueOf(form.ccDMDSearch().getVMP().getID_VMP()));
        taxonomy.add(vmp);
    }

    if(selection.getIDMDValueType() == DMDType.AMP)
    {
        TaxonomyMap amp = new TaxonomyMap();
        amp.setTaxonomyName(TaxonomyType.AMP);
        amp.setTaxonomyCode(String.valueOf(form.ccDMDSearch().getAMP().getID_AMP()));
        taxonomy.add(amp);
    }

    result.setTaxonomyMap(taxonomy);
    */

    KeywordVoCollection keywords = new KeywordVoCollection();
    String[] keywordStrings = Keywords.generateKeywords(selection.getIDMDValueText());
    for(int x = 0; x < keywordStrings.length; x++)
    {
        KeywordVo keyword = new KeywordVo();
        keyword.setKeyword(keywordStrings[x]);
        keywords.add(keyword);
    }
    result.setKeywords(keywords);

    return result;
}
项目:AvoinApotti    文件:TaxonomySearchImpl.java   
public KeywordVoCollection listSnomedKeywords(String snomedCode)
{
    return listKeywords(TaxonomyType.SNOMED, snomedCode);
}
项目:AvoinApotti    文件:TaxonomySearchCmpImpl.java   
public KeywordVoCollection listSnomedKeywords(String snomedCode)
{
    return listKeywords(TaxonomyType.SNOMED, snomedCode);
}
项目:openMAXIMS    文件:Logic.java   
private void cloneQuestion(QuestionInformationShortVo voQInfoShort) 
{
    clearQuestionControls();
    initialiseNewQuestion();
    enableTabNewQuestion(true);
    enableTabListQuestion(false);
    showClassificationTree(true);   
    form.getGlobalContext().Core.setQuestionType(QuestionType.PRIMARY);
    form.lyrTabs().tabNewQuestion().setCaption(ADD_QUESTION);

    QuestionInformationVo voQInfo = null;
    if (voQInfoShort != null && voQInfoShort.getID_QuestionInformationIsNotNull())
    {
        voQInfo = domain.getQuestion(voQInfoShort.getID_QuestionInformation());
        voQInfo.clearIDAndVersion();
        //WDEV-17026 
        if (voQInfo.getTaxonomyMap() == null)
        {   
        voQInfo.setTaxonomyMap(new TaxonomyMapCollection());
        }
        voQInfo.setKeywords(new KeywordVoCollection());
        if (voQInfo.getKeywords() == null)
        {   
        voQInfo.setTaxonomyMap(new TaxonomyMapCollection());
        }
        if(voQInfo.getAnswerTypes() != null)
        {
            QuestionAnswerTypeVoCollection answers = new QuestionAnswerTypeVoCollection();
            for(int x = 0; x < voQInfo.getAnswerTypes().size(); x++)
            {
                QuestionAnswerTypeVo answer = voQInfo.getAnswerTypes().get(x);
                answer.clearIDAndVersion();

                if(answer.getOptions() != null)
                {
                    AnswerOptionVoCollection options = new AnswerOptionVoCollection();
                    for(int y = 0; y < answer.getOptions().size(); y++)
                    {
                        AnswerOptionVo option = answer.getOptions().get(y);
                        if(option != null)
                        {
                            option.clearIDAndVersion();
                            options.add(option);
                        }
                    }                       
                    answer.setOptions(options);
                }

                answers.add(answer);                    
            }
            voQInfo.setAnswerTypes(answers);
        }

        voQInfo.setID_QuestionInformation(-1);
        voQInfo.setStatus(PreActiveActiveInactiveStatus.PREACTIVE);
        form.getLocalContext().setVoQuestionInformation(voQInfo);
        populateControlsFromData(voQInfo);
        this.form.lyrTabs().tabNewQuestion().cmbStatus().setValue(PreActiveActiveInactiveStatus.PREACTIVE);
    }

    enableContextMenu();
}
项目:openMAXIMS    文件:Logic.java   
private MedicationVo getMedication() 
{
    IDMDValue selection = form.ccDMDSearch().getValue();
    if(selection == null)
        return null;

    MedicationVo result = new MedicationVo();

    result.setMedicationName(selection.getIDMDValueText());
    result.setIsActive(true);

    /*
    TaxonomyMapCollection taxonomy = new TaxonomyMapCollection();

    TaxonomyMap vtm = new TaxonomyMap();
    vtm.setTaxonomyName(TaxonomyType.VTM);
    vtm.setTaxonomyCode(String.valueOf(form.ccDMDSearch().getVTM().getID_VTM()));
    taxonomy.add(vtm);

    if(selection.getIDMDValueType() == DMDType.VMP || selection.getIDMDValueType() == DMDType.AMP)
    {
        TaxonomyMap vmp = new TaxonomyMap();
        vmp.setTaxonomyName(TaxonomyType.VMP);
        vmp.setTaxonomyCode(String.valueOf(form.ccDMDSearch().getVMP().getID_VMP()));
        taxonomy.add(vmp);
    }

    if(selection.getIDMDValueType() == DMDType.AMP)
    {
        TaxonomyMap amp = new TaxonomyMap();
        amp.setTaxonomyName(TaxonomyType.AMP);
        amp.setTaxonomyCode(String.valueOf(form.ccDMDSearch().getAMP().getID_AMP()));
        taxonomy.add(amp);
    }

    result.setTaxonomyMap(taxonomy);
    */

    KeywordVoCollection keywords = new KeywordVoCollection();
    String[] keywordStrings = Keywords.generateKeywords(selection.getIDMDValueText());
    for(int x = 0; x < keywordStrings.length; x++)
    {
        KeywordVo keyword = new KeywordVo();
        keyword.setKeyword(keywordStrings[x]);
        keywords.add(keyword);
    }
    result.setKeywords(keywords);

    return result;
}
项目:openMAXIMS    文件:TaxonomySearchImpl.java   
public KeywordVoCollection listSnomedKeywords(String snomedCode)
{
    return listKeywords(TaxonomyType.SNOMED, snomedCode);
}
项目:openMAXIMS    文件:AllergenListImpl.java   
public KeywordVoCollection listSnomedKeywords(String snomedCode)
{
    TaxonomySearch intf = (TaxonomySearch)getDomainImpl(TaxonomySearchImpl.class);
    return intf.listSnomedKeywords(snomedCode);
}
项目:openMAXIMS    文件:TaxonomySearchCmpImpl.java   
public KeywordVoCollection listSnomedKeywords(String snomedCode)
{
    return listKeywords(TaxonomyType.SNOMED, snomedCode);
}
项目:openMAXIMS    文件:Logic.java   
private void cloneQuestion(QuestionInformationShortVo voQInfoShort) 
{
    clearQuestionControls();
    initialiseNewQuestion();
    enableTabNewQuestion(true);
    enableTabListQuestion(false);
    showClassificationTree(true);   
    form.getGlobalContext().Core.setQuestionType(QuestionType.PRIMARY);
    form.lyrTabs().tabNewQuestion().setCaption(ADD_QUESTION);

    QuestionInformationVo voQInfo = null;
    if (voQInfoShort != null && voQInfoShort.getID_QuestionInformationIsNotNull())
    {
        voQInfo = domain.getQuestion(voQInfoShort.getID_QuestionInformation());
        voQInfo.clearIDAndVersion();
        //WDEV-17026 
        if (voQInfo.getTaxonomyMap() == null)
        {   
        voQInfo.setTaxonomyMap(new TaxonomyMapCollection());
        }
        voQInfo.setKeywords(new KeywordVoCollection());
        if (voQInfo.getKeywords() == null)
        {   
        voQInfo.setTaxonomyMap(new TaxonomyMapCollection());
        }
        if(voQInfo.getAnswerTypes() != null)
        {
            QuestionAnswerTypeVoCollection answers = new QuestionAnswerTypeVoCollection();
            for(int x = 0; x < voQInfo.getAnswerTypes().size(); x++)
            {
                QuestionAnswerTypeVo answer = voQInfo.getAnswerTypes().get(x);
                answer.clearIDAndVersion();

                if(answer.getOptions() != null)
                {
                    AnswerOptionVoCollection options = new AnswerOptionVoCollection();
                    for(int y = 0; y < answer.getOptions().size(); y++)
                    {
                        AnswerOptionVo option = answer.getOptions().get(y);
                        if(option != null)
                        {
                            option.clearIDAndVersion();
                            options.add(option);
                        }
                    }                       
                    answer.setOptions(options);
                }

                answers.add(answer);                    
            }
            voQInfo.setAnswerTypes(answers);
        }

        voQInfo.setID_QuestionInformation(-1);
        voQInfo.setStatus(PreActiveActiveInactiveStatus.PREACTIVE);
        form.getLocalContext().setVoQuestionInformation(voQInfo);
        populateControlsFromData(voQInfo);
        this.form.lyrTabs().tabNewQuestion().cmbStatus().setValue(PreActiveActiveInactiveStatus.PREACTIVE);
    }

    enableContextMenu();
}
项目:openMAXIMS    文件:Logic.java   
private MedicationVo getMedication() 
{
    IDMDValue selection = form.ccDMDSearch().getValue();
    if(selection == null)
        return null;

    MedicationVo result = new MedicationVo();

    result.setMedicationName(selection.getIDMDValueText());
    result.setIsActive(true);

    /*
    TaxonomyMapCollection taxonomy = new TaxonomyMapCollection();

    TaxonomyMap vtm = new TaxonomyMap();
    vtm.setTaxonomyName(TaxonomyType.VTM);
    vtm.setTaxonomyCode(String.valueOf(form.ccDMDSearch().getVTM().getID_VTM()));
    taxonomy.add(vtm);

    if(selection.getIDMDValueType() == DMDType.VMP || selection.getIDMDValueType() == DMDType.AMP)
    {
        TaxonomyMap vmp = new TaxonomyMap();
        vmp.setTaxonomyName(TaxonomyType.VMP);
        vmp.setTaxonomyCode(String.valueOf(form.ccDMDSearch().getVMP().getID_VMP()));
        taxonomy.add(vmp);
    }

    if(selection.getIDMDValueType() == DMDType.AMP)
    {
        TaxonomyMap amp = new TaxonomyMap();
        amp.setTaxonomyName(TaxonomyType.AMP);
        amp.setTaxonomyCode(String.valueOf(form.ccDMDSearch().getAMP().getID_AMP()));
        taxonomy.add(amp);
    }

    result.setTaxonomyMap(taxonomy);
    */

    KeywordVoCollection keywords = new KeywordVoCollection();
    String[] keywordStrings = Keywords.generateKeywords(selection.getIDMDValueText());
    for(int x = 0; x < keywordStrings.length; x++)
    {
        KeywordVo keyword = new KeywordVo();
        keyword.setKeyword(keywordStrings[x]);
        keywords.add(keyword);
    }
    result.setKeywords(keywords);

    return result;
}
项目:openMAXIMS    文件:TaxonomySearchImpl.java   
public KeywordVoCollection listSnomedKeywords(String snomedCode)
{
    return listKeywords(TaxonomyType.SNOMED, snomedCode);
}
项目:openMAXIMS    文件:TaxonomySearchCmpImpl.java   
public KeywordVoCollection listSnomedKeywords(String snomedCode)
{
    return listKeywords(TaxonomyType.SNOMED, snomedCode);
}
项目:openmaxims-linux    文件:Logic.java   
private void cloneQuestion(QuestionInformationShortVo voQInfoShort) 
{
    clearQuestionControls();
    initialiseNewQuestion();
    enableTabNewQuestion(true);
    enableTabListQuestion(false);
    showClassificationTree(true);   
    form.getGlobalContext().Core.setQuestionType(QuestionType.PRIMARY);
    form.lyrTabs().tabNewQuestion().setCaption(ADD_QUESTION);

    QuestionInformationVo voQInfo = null;
    if (voQInfoShort != null && voQInfoShort.getID_QuestionInformationIsNotNull())
    {
        voQInfo = domain.getQuestion(voQInfoShort.getID_QuestionInformation());
        voQInfo.clearIDAndVersion();
        //WDEV-17026 
        if (voQInfo.getTaxonomyMap() == null)
        {   
        voQInfo.setTaxonomyMap(new TaxonomyMapCollection());
        }
        voQInfo.setKeywords(new KeywordVoCollection());
        if (voQInfo.getKeywords() == null)
        {   
        voQInfo.setTaxonomyMap(new TaxonomyMapCollection());
        }
        if(voQInfo.getAnswerTypes() != null)
        {
            QuestionAnswerTypeVoCollection answers = new QuestionAnswerTypeVoCollection();
            for(int x = 0; x < voQInfo.getAnswerTypes().size(); x++)
            {
                QuestionAnswerTypeVo answer = voQInfo.getAnswerTypes().get(x);
                answer.clearIDAndVersion();

                if(answer.getOptions() != null)
                {
                    AnswerOptionVoCollection options = new AnswerOptionVoCollection();
                    for(int y = 0; y < answer.getOptions().size(); y++)
                    {
                        AnswerOptionVo option = answer.getOptions().get(y);
                        if(option != null)
                        {
                            option.clearIDAndVersion();
                            options.add(option);
                        }
                    }                       
                    answer.setOptions(options);
                }

                answers.add(answer);                    
            }
            voQInfo.setAnswerTypes(answers);
        }

        voQInfo.setID_QuestionInformation(-1);
        voQInfo.setStatus(PreActiveActiveInactiveStatus.PREACTIVE);
        form.getLocalContext().setVoQuestionInformation(voQInfo);
        populateControlsFromData(voQInfo);
        this.form.lyrTabs().tabNewQuestion().cmbStatus().setValue(PreActiveActiveInactiveStatus.PREACTIVE);
    }

    enableContextMenu();
}
项目:openmaxims-linux    文件:Logic.java   
private MedicationVo getMedication() 
{
    IDMDValue selection = form.ccDMDSearch().getValue();
    if(selection == null)
        return null;

    MedicationVo result = new MedicationVo();

    result.setMedicationName(selection.getIDMDValueText());
    result.setIsActive(true);

    /*
    TaxonomyMapCollection taxonomy = new TaxonomyMapCollection();

    TaxonomyMap vtm = new TaxonomyMap();
    vtm.setTaxonomyName(TaxonomyType.VTM);
    vtm.setTaxonomyCode(String.valueOf(form.ccDMDSearch().getVTM().getID_VTM()));
    taxonomy.add(vtm);

    if(selection.getIDMDValueType() == DMDType.VMP || selection.getIDMDValueType() == DMDType.AMP)
    {
        TaxonomyMap vmp = new TaxonomyMap();
        vmp.setTaxonomyName(TaxonomyType.VMP);
        vmp.setTaxonomyCode(String.valueOf(form.ccDMDSearch().getVMP().getID_VMP()));
        taxonomy.add(vmp);
    }

    if(selection.getIDMDValueType() == DMDType.AMP)
    {
        TaxonomyMap amp = new TaxonomyMap();
        amp.setTaxonomyName(TaxonomyType.AMP);
        amp.setTaxonomyCode(String.valueOf(form.ccDMDSearch().getAMP().getID_AMP()));
        taxonomy.add(amp);
    }

    result.setTaxonomyMap(taxonomy);
    */

    KeywordVoCollection keywords = new KeywordVoCollection();
    String[] keywordStrings = Keywords.generateKeywords(selection.getIDMDValueText());
    for(int x = 0; x < keywordStrings.length; x++)
    {
        KeywordVo keyword = new KeywordVo();
        keyword.setKeyword(keywordStrings[x]);
        keywords.add(keyword);
    }
    result.setKeywords(keywords);

    return result;
}
项目:openmaxims-linux    文件:TaxonomySearchImpl.java   
public KeywordVoCollection listSnomedKeywords(String snomedCode)
{
    return listKeywords(TaxonomyType.SNOMED, snomedCode);
}
项目:openmaxims-linux    文件:TaxonomySearchCmpImpl.java   
public KeywordVoCollection listSnomedKeywords(String snomedCode)
{
    return listKeywords(TaxonomyType.SNOMED, snomedCode);
}