Created
October 21, 2020 19:09
-
-
Save h4ste/14b10d412d0d3c043c1d123c75c6ad29 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.github.h4ste.umls; | |
import com.google.common.collect.ImmutableSet; | |
import java.util.Set; | |
/** | |
* These stopwords and semantic categories are from Dina Demner-Fushman | |
*/ | |
@SuppressWarnings({"unused", "SpellCheckingInspection"}) | |
public final class UmlsConstants { | |
private UmlsConstants() { | |
throw new UnsupportedOperationException("Unable to instantiate utility class"); | |
} | |
public static final class SemanticTypes { | |
private SemanticTypes() { | |
throw new UnsupportedOperationException("Unable to instantiate utility class"); | |
} | |
public static final Set<String> PROBLEMS = ImmutableSet.of("cgab", "acab", | |
"inpo", "patf", "dsyn", "anab", "neop", "mobd", "sosy", "bact", "fndg", | |
"hops"); | |
public static final Set<String> INTERVENTIONS = ImmutableSet.of("topp", "lbpr", | |
"diap", "ftcn", "hlca", "edac", "medd"); // "ftcn", "hlca", "edac", "medd" | |
public static final Set<String> DRUGS = ImmutableSet.of("drdd", "clnd", "antb", | |
"phsu", "nsba", "strd", "vita", "aapp", "bodm", "orch"); // "bodm", "orch" | |
public static final Set<String> ANATOMY = ImmutableSet.of("bdsy", "bpoc", "tisu", | |
"blor", "bsoj", "bdsu", "orga"); | |
} | |
public static final Set<String> GENERAL_PROBLEMS = ImmutableSet.of("diseases", | |
"disease", "syndrome", "syndromes", "sign", "signs", "symptom", | |
"symptoms", "inflammmation", "disorders", "disorder", "pain", | |
"dysfunction", "dysfunctions", "degenerative", "vascular", | |
"injury", "psychological", "evaluable disease", "evaluabledisease", | |
"adverse effects", "adverseeffects", "critical illness", | |
"criticalillness", "complications", "complication"); | |
public static final Set<String> FALSE_PROBLEMS = ImmutableSet | |
.of("problem", "problems", "ischemic", "intermittent", | |
"strains", "habituation", "infarction", "advantage", "advantages", | |
"blind vision", "purpose", "history", "consumption", "weak", | |
"complaints", "block", "findings", "fall", "inf", "secondary", | |
"secondaries", "met", "little", "lead", "tear", "feline urological syndrome"); | |
public static final Set<String> COMPLICATIONS = ImmutableSet.of( | |
"complications", "complication", "sideeffects", "side effects", | |
"adverse effects"); | |
public static final Set<String> FALSE_INTERVENTIONS = ImmutableSet.of( | |
"a10", "a12", "act", "add", "adrenal", "adult", "administration", "after", "agents", "aim", | |
"aims", "alcohol", "algorithms", "aman", | |
"analysis", "analysisofsubstances", "any", "assesment", "assessment", "attack", | |
"base", "baseline", "bestestimate", "biologicals", "boards", "bodyweight", "bolus", | |
"calculated", "casequalifiervalue", "caused", "century", "cholesterol", "class", "colon", | |
"comfort", "combination", | |
"compression", "computed", "concentrations", "concept", "conclude", "conceptdrug", | |
"construction", "control", | |
"controlledqualifiervalue", "copper", "correct", "cutting", | |
"dates", "deliver", "delivery", "demand", "demands", "derivationprocedure", "destruction", | |
"detected", "detection", | |
"determinationaspects", "discussion", "documented", "dos", "drivers", | |
"electrophoresispolyacrylamidegel", "elevation", "erythro", "evaluate", "evaluation", | |
"exploration", "expression", "expressionprocedure", | |
"favor", "febrileconvulsion", "functionalability", | |
"given", "gold", "guide", | |
"icd", "immunology", "incidenceofcases", "includingqualifiervalue", "inform", "inhibitor", | |
"inhibitors", "insect", | |
"inventory", "inventories", "involvedqualifiervalue", "iron", | |
"lead", "life", "light", "line", "link", "liver", "liverextract", | |
"maintain", "mechanical", "medication", "medicationsideeffects", "met", | |
"nativeamerican", "neo", "nicotine", "notfreeofattribute", | |
"overlapping", "oxygen", | |
"pace", "package", "parenteral", "pediatric", "phenotype", "polymerasechainreaction", | |
"potentiation", "presence", "prevent", "primary", "primarycare", | |
"primaryoperation", "prime", "procedure", "procedures", "prompt", "protein", "proven", | |
"provide", "pulse", "purpose", | |
"qsort", | |
"recommending", "redbloodcell", "reduction", "reductionaction", "release", "relief", "remove", | |
"removed", "reported", | |
"reporting", "revisions", "res", "rises", "rolls", | |
"sampling", "saw", "scientificstudy", "sec", "septum", "sleep", "speed", "specific", "stop", | |
"stress", "study", | |
"supplementation", "support", "supports", "sugar", "sugars", "surgicalconstructionnos", | |
"t3", "tape", "task", "tasks", "taskproduct", "teaching", "ten", "tensa", "test", "testing", | |
"therapeutic", "thu", "thus", | |
"thyroidfunction", "tobacco", "today", "tomorrow", "totalcholesterol", "treatment", | |
"titration", "tops", "training", "tumorburden", | |
"unit", "unite", "unknown", | |
"water", "weight", | |
"zinc"); | |
public static final Set<String> GENERAL_INTERVENTIONS = ImmutableSet | |
.of("individualtherapy", "injection", "prevent", | |
"medicament", "medications", "medication", "medicines", "drug", "fiber", | |
"drugs", "drugdelivery", "extraction", "regimens", "regimen", "medicine", | |
"clinicaltreatment", "treatment", "treatments", "therapeutics", | |
"therapy", "drugtherapy", "therapies", "therapeuticprocedure", | |
"medicaltherapy", "management", "interventions", "intervention", | |
"trials", "trial", "homeopathy", "pharmaceutical", | |
"pharmaceutical products", "pharmaceuticalproducts", | |
"pharmacotherapy", "psychiatry", "pharmacotherapeutic", | |
"blindtechnique", "treatedwith", "combinedtreatment", "prevention", | |
"relapse prevention", "extendedreleasetablets", "tablets", | |
"education", "dosageform", "extendedreleasecapsules", "capsules", | |
"beads", "polymer", "placebos", "diagnoses", "differential", | |
"drug", "prescriptiondrugs", "procedures", "familystudy", | |
"noninvasive diagnosis", "noninvasive diagnosis", | |
"noninvasivediagnosis", "differential diagnosis", | |
"differentialdiagnosis", "diagnosesdifferential", "education", | |
"diagnosticassessment", "nursing", "nebulizer", "pain medications", "scan", | |
"isolation precautions", "respiratory isolation"); | |
public static final Set<String> FALSE_ANATOMY = ImmutableSet | |
.of("patch", "cardiac", "cardio", "aortic", | |
"pleural", "axillary", "lower", "lobe", "heart", "lung", "mediastinum"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment