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

项目:AvoinApotti    文件:Logic.java   
/**
 * Resets the keywords to the default values based on the cci name
 * @param void
 * @return void
 */
private void setDefaultKeywords()
{
    form.lyrDetails().tabKeywords().grdKeywords().getRows().clear();

    if (form.txtName().getValue() == null)
    {
        engine.showMessage("Please add the Name before set default keywords!");
        return;
    }

    String[] keys = Keywords.generateKeywords(form.txtName().getValue());

    for (int i = 0; i < keys.length; i++)
    {
        grdKeywordsRow row = form.lyrDetails().tabKeywords().grdKeywords().getRows().newRow();
        row.setValue(new KeywordVo());
        row.setKeyword(keys[i]);
    }
    updateControlsState();
}
项目:AvoinApotti    文件:Logic.java   
private void setDefaultKeywords()
{
    form.grdKeywords().getRows().clear();

    if (form.txtName().getValue() == null)
    {
        engine.showMessage("Please add the Name before set default keywords!");
        return;
    }

    String[] keys = Keywords.generateKeywords(form.txtName().getValue());

    for (int i = 0; i < keys.length; i++)
    {
        grdKeywordsRow row = form.grdKeywords().getRows().newRow();
        row.setValue(new KeywordVo());
        row.setColKeywords(keys[i]);
    }

    updateControlsState();
}
项目: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   
/**
 * Resets the keywords to the default values based on the cci name
 * @param void
 * @return void
 */
private void setDefaultKeywords()
{
    form.lyrDetails().tabKeywords().grdKeywords().getRows().clear();

    if (form.txtName().getValue() == null)
    {
        engine.showMessage("Please add the Name before set default keywords!");
        return;
    }

    String[] keys = Keywords.generateKeywords(form.txtName().getValue());

    for (int i = 0; i < keys.length; i++)
    {
        grdKeywordsRow row = form.lyrDetails().tabKeywords().grdKeywords().getRows().newRow();
        row.setValue(new KeywordVo());
        row.setKeyword(keys[i]);
    }
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void setDefaultKeywords()
{
    form.grdKeywords().getRows().clear();

    if (form.txtName().getValue() == null)
    {
        engine.showMessage("Please add the Name before set default keywords!");
        return;
    }

    String[] keys = Keywords.generateKeywords(form.txtName().getValue());

    for (int i = 0; i < keys.length; i++)
    {
        grdKeywordsRow row = form.grdKeywords().getRows().newRow();
        row.setValue(new KeywordVo());
        row.setColKeywords(keys[i]);
    }

    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Resets the keywords to the default values based on the cci name
 * @param void
 * @return void
 */
private void setDefaultKeywords()
{
    form.lyrDetails().tabKeywords().grdKeywords().getRows().clear();

    if (form.txtName().getValue() == null)
    {
        engine.showMessage("Please add the Name before set default keywords!");
        return;
    }

    String[] keys = Keywords.generateKeywords(form.txtName().getValue());

    for (int i = 0; i < keys.length; i++)
    {
        grdKeywordsRow row = form.lyrDetails().tabKeywords().grdKeywords().getRows().newRow();
        row.setValue(new KeywordVo());
        row.setKeyword(keys[i]);
    }
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void setDefaultKeywords()
{
    form.grdKeywords().getRows().clear();

    if (form.txtName().getValue() == null)
    {
        engine.showMessage("Please add the Name before set default keywords!");
        return;
    }

    String[] keys = Keywords.generateKeywords(form.txtName().getValue());

    for (int i = 0; i < keys.length; i++)
    {
        grdKeywordsRow row = form.grdKeywords().getRows().newRow();
        row.setValue(new KeywordVo());
        row.setColKeywords(keys[i]);
    }

    updateControlsState();
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * Resets the keywords to the default values based on the cci name
 * @param void
 * @return void
 */
private void setDefaultKeywords()
{
    form.lyrDetails().tabKeywords().grdKeywords().getRows().clear();

    if (form.txtName().getValue() == null)
    {
        engine.showMessage("Please add the Name before set default keywords!");
        return;
    }

    String[] keys = Keywords.generateKeywords(form.txtName().getValue());

    for (int i = 0; i < keys.length; i++)
    {
        grdKeywordsRow row = form.lyrDetails().tabKeywords().grdKeywords().getRows().newRow();
        row.setValue(new KeywordVo());
        row.setKeyword(keys[i]);
    }
    updateControlsState();
}
项目:openmaxims-linux    文件:Logic.java   
private void setDefaultKeywords()
{
    form.grdKeywords().getRows().clear();

    if (form.txtName().getValue() == null)
    {
        engine.showMessage("Please add the Name before set default keywords!");
        return;
    }

    String[] keys = Keywords.generateKeywords(form.txtName().getValue());

    for (int i = 0; i < keys.length; i++)
    {
        grdKeywordsRow row = form.grdKeywords().getRows().newRow();
        row.setValue(new KeywordVo());
        row.setColKeywords(keys[i]);
    }

    updateControlsState();
}
项目:AvoinApotti    文件:Logic.java   
private void setDefaultKeywords()
{
    form.grdKeywords().getRows().clear();
    String[] keys = Keywords.generateKeywords(form.txtMedicationName().getValue());
    for (int i = 0; i < keys.length; i++)
    {
        grdKeywordsRow row = form.grdKeywords().getRows().newRow();
        row.setValue(new KeywordVo());
        row.setKeyword(keys[i]);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void setDefaultKeywords()
{
    form.grdKeywords().getRows().clear();
    String[] keys = Keywords.generateKeywords(form.txtDiagnosisName().getValue());
    for (int i = 0; i < keys.length; i++)
    {
        grdKeywordsRow row = form.grdKeywords().getRows().newRow();
        row.setValue(new KeywordVo());
        row.setKeyword(keys[i]);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void setDefaultKeywords()
{
    form.grdKeywords().getRows().clear();
    String[] keys = Keywords.generateKeywords(form.txtMedicationName().getValue());
    for (int i = 0; i < keys.length; i++)
    {
        grdKeywordsRow row = form.grdKeywords().getRows().newRow();
        row.setValue(new KeywordVo());
        row.setKeyword(keys[i]);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void setDefaultKeywords()
{
    form.grdKeywords().getRows().clear();
    String[] keys = Keywords.generateKeywords(form.txtDiagnosisName().getValue());
    for (int i = 0; i < keys.length; i++)
    {
        grdKeywordsRow row = form.grdKeywords().getRows().newRow();
        row.setValue(new KeywordVo());
        row.setKeyword(keys[i]);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void setDefaultKeywords()
{
    form.grdKeywords().getRows().clear();
    String[] keys = Keywords.generateKeywords(form.txtAllergen().getValue());
    for (int i = 0; i < keys.length; i++)
    {
        grdKeywordsRow row = form.grdKeywords().getRows().newRow();
        row.setValue(new KeywordVo());
        row.setKeyword(keys[i]);
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean containsKeyword(KeywordVo keyword)
{
    if (form.grdKeywords().getRows().size() == 0)
        return false;

    for (int i = 0; i < form.grdKeywords().getRows().size(); i++)
    {
        grdKeywordsRow row = form.grdKeywords().getRows().get(i);
        if (row.getKeyword().equals(keyword.getKeyword()))
            return true;
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void setDefaultKeywords()
{
    form.grdKeywords().getRows().clear();
    String[] keys = Keywords.generateKeywords(form.txtProblemName().getValue());
    for (int i = 0; i < keys.length; i++)
    {
        grdKeywordsRow row = form.grdKeywords().getRows().newRow();
        row.setValue(new KeywordVo());
        row.setKeyword(keys[i]);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void setDefaultKeywords()
{
    form.grdKeywords().getRows().clear();
    String[] keys = Keywords.generateKeywords(form.txtMedicationName().getValue());
    for (int i = 0; i < keys.length; i++)
    {
        grdKeywordsRow row = form.grdKeywords().getRows().newRow();
        row.setValue(new KeywordVo());
        row.setKeyword(keys[i]);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void setDefaultKeywords()
{
    form.grdKeywords().getRows().clear();
    String[] keys = Keywords.generateKeywords(form.txtDiagnosisName().getValue());
    for (int i = 0; i < keys.length; i++)
    {
        grdKeywordsRow row = form.grdKeywords().getRows().newRow();
        row.setValue(new KeywordVo());
        row.setKeyword(keys[i]);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void setDefaultKeywords()
{
    form.grdKeywords().getRows().clear();
    String[] keys = Keywords.generateKeywords(form.txtMedicationName().getValue());
    for (int i = 0; i < keys.length; i++)
    {
        grdKeywordsRow row = form.grdKeywords().getRows().newRow();
        row.setValue(new KeywordVo());
        row.setKeyword(keys[i]);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void setDefaultKeywords()
{
    form.grdKeywords().getRows().clear();
    String[] keys = Keywords.generateKeywords(form.txtDiagnosisName().getValue());
    for (int i = 0; i < keys.length; i++)
    {
        grdKeywordsRow row = form.grdKeywords().getRows().newRow();
        row.setValue(new KeywordVo());
        row.setKeyword(keys[i]);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void addKeyword()
{
    form.grdKeywords().getRows().newRow(true).setValue(new KeywordVo());
}
项目:AvoinApotti    文件:Logic.java   
private void addKeyword()
{
    form.grdKeywords().getRows().newRow(true).setValue(new KeywordVo());
}
项目: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    文件:Logic.java   
/**
 * Adds a new row to the keywords grid
 * @param void
 * @return void
 */
private void addKeyword() 
{
    form.lyrDetails().tabKeywords().grdKeywords().getRows().newRow(true).setValue(new KeywordVo());
    updateControlsState();
}
项目:AvoinApotti    文件:Logic.java   
private void addKeyword()
{
    form.grdKeywords().getRows().newRow(true).setValue(new KeywordVo());
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void addKeyword()
{
    form.grdKeywords().getRows().newRow(true).setValue(new KeywordVo());
}
项目:openMAXIMS    文件:Logic.java   
private void addKeyword()
{
    form.grdKeywords().getRows().newRow(true).setValue(new KeywordVo());
}
项目:openMAXIMS    文件:Logic.java   
private void addKeyword()
{
    form.grdKeywords().getRows().newRow(true).setValue(new KeywordVo());
}
项目: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    文件:Logic.java   
/**
 * Adds a new row to the keywords grid
 * @param void
 * @return void
 */
private void addKeyword() 
{
    form.lyrDetails().tabKeywords().grdKeywords().getRows().newRow(true).setValue(new KeywordVo());
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void addKeyword()
{
    form.grdKeywords().getRows().newRow(true).setValue(new KeywordVo());
    updateContextMenu();
}
项目:openMAXIMS    文件:Logic.java   
private void addKeyword()
{
    form.grdKeywords().getRows().newRow(true).setValue(new KeywordVo());
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void addKeyword()
{
    form.grdKeywords().getRows().newRow(true).setValue(new KeywordVo());
}
项目:openMAXIMS    文件:Logic.java   
private void addKeyword()
{
    form.grdKeywords().getRows().newRow(true).setValue(new KeywordVo());
}
项目: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    文件:Logic.java   
/**
 * Adds a new row to the keywords grid
 * @param void
 * @return void
 */
private void addKeyword() 
{
    form.lyrDetails().tabKeywords().grdKeywords().getRows().newRow(true).setValue(new KeywordVo());
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void addKeyword()
{
    form.grdKeywords().getRows().newRow(true).setValue(new KeywordVo());
    updateControlsState();
}
项目:openmaxims-linux    文件:Logic.java   
private void addKeyword()
{
    form.grdKeywords().getRows().newRow(true).setValue(new KeywordVo());
}
项目:openmaxims-linux    文件:Logic.java   
private void addKeyword()
{
    form.grdKeywords().getRows().newRow(true).setValue(new KeywordVo());
}
项目: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;
}