Because of a lapse in government funding, the information on this website may not be up to date, transactions submitted via the website may not be processed, and the agency may not be able to respond to inquiries until appropriations are enacted. The NIH Clinical Center (the research hospital of NIH) is open. For more details about its operating status, please visit cc.nih.gov. Updates regarding government operating status and resumption of normal operations can be found at OPM.gov.

Lexical Tools

Strip NEC and NOS

  • Short Description: Strip NEC and NOS

  • Full Description:

    Strips the strings "NOS" (an acronym for "Not Otherwise Specified") and "NEC" (an acronym for "Not Elsewhere Classified"). These strings can be found as part of Metathesaurus concept names.

    No effect on the -m option. "none" is added at the end of the output.

  • Difference:
    1. Java version trims output terms (remove spaces at the beginning and ending of the term).
    2. Java version does not strip stop words while it is conjoint with punctuations (except for ',').


  • Features:
    1. Strip NEC AND NOS
    2. Strip NEC/NOS$
    3. Strip NEC, NOS$
    4. Strip ,NEC$
    5. Strip ,NOS$
    6. Strip , NEC$
    7. Strip , NOS$
    8. Strip (NEC)
    9. Strip (NOS)
    10. Strip NEC
    11. Strip NOS

      where $ is the end the string.

    12. Remove ',' if it is at the end of the stripped output.


  • Symbol: 0

  • Examples:
    
    shell> lvg -f:0
    ACCIDENTS NEC AND NOS
    ACCIDENTS NEC AND NOS|ACCIDENTS|2047|16777215|0|1|
    
    More examples

  • Implementation Logic:
    1. Initialize the string list to be stripped (if first time).
    2. Append " $" to the input term.
    3. Strip out all stripping strings.
    4. Remove "$" from the end of the term if it exists.
    5. Trim the term.
    6. Remove "," from the end of the term if it exists.
    7. Trim the term.

  • Source Code: ToStripNecNos.java

  • Hierarchy: Object -> Transformation -> ToStripNecNos