ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seanfi...@apache.org
Subject svn commit: r1704910 - /ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/concept/Concept.java
Date Wed, 23 Sep 2015 18:01:06 GMT
Author: seanfinan
Date: Wed Sep 23 18:01:06 2015
New Revision: 1704910

URL: http://svn.apache.org/viewvc?rev=1704910&view=rev
Log:
CTAKES-378 Added flexibility to use any cui-[type] concept table in a jdbc db.  Involved a
fair amount of refactoring.

Added:
    ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/concept/Concept.java

Added: ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/concept/Concept.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/concept/Concept.java?rev=1704910&view=auto
==============================================================================
--- ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/concept/Concept.java
(added)
+++ ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/concept/Concept.java
Wed Sep 23 18:01:06 2015
@@ -0,0 +1,47 @@
+package org.apache.ctakes.dictionary.lookup2.concept;
+
+import java.util.Collection;
+
+/**
+ * @author SPF , chip-nlp
+ * @version %I%
+ * @since 9/21/2015
+ */
+public interface Concept {
+
+   String TUI = "TUI";
+   String PREFTERM = "PREFTERM";
+   String PREFERRED_TERM_UNKNOWN = "Unknown Preferred Term";
+
+   /**
+    * @return umls unique identifier code (cui)
+    */
+   String getCui();
+
+   /**
+    * @return normalized preferred text
+    */
+   String getPreferredText();
+
+   /**
+    * @return secondary coding scheme names
+    */
+   Collection<String> getCodeNames();
+
+   /**
+    * @param codeType name of secondary coding scheme
+    * @return all secondary (non-cui) codes for the named type
+    */
+   Collection<String> getCodes( String codeType );
+
+   /**
+    * @return the type of term that exists in the dictionary: Anatomical Site, Disease/Disorder,
Drug, etc.
+    */
+   Collection<Integer> getCtakesSemantics();
+
+   /**
+    * @return true if this concept has no information other than cui and tui
+    */
+   boolean isEmpty();
+
+}



Mime
View raw message