ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pklu...@apache.org
Subject svn commit: r1746704 - in /ctakes/sandbox/ctakes-clinical-deid/src/main: resources/wordlists/name_prefix.txt resources/wordlists/patient_prefix.txt ruta/org/apache/ctakes/deid/Dictionaries.ruta ruta/org/apache/ctakes/deid/Patient.ruta
Date Fri, 03 Jun 2016 10:18:37 GMT
Author: pkluegl
Date: Fri Jun  3 10:18:37 2016
New Revision: 1746704

URL: http://svn.apache.org/viewvc?rev=1746704&view=rev
Log:
CTAKES-384
- started with patient rules

Added:
    ctakes/sandbox/ctakes-clinical-deid/src/main/resources/wordlists/name_prefix.txt   (with
props)
    ctakes/sandbox/ctakes-clinical-deid/src/main/resources/wordlists/patient_prefix.txt  
(with props)
Modified:
    ctakes/sandbox/ctakes-clinical-deid/src/main/ruta/org/apache/ctakes/deid/Dictionaries.ruta
    ctakes/sandbox/ctakes-clinical-deid/src/main/ruta/org/apache/ctakes/deid/Patient.ruta

Added: ctakes/sandbox/ctakes-clinical-deid/src/main/resources/wordlists/name_prefix.txt
URL: http://svn.apache.org/viewvc/ctakes/sandbox/ctakes-clinical-deid/src/main/resources/wordlists/name_prefix.txt?rev=1746704&view=auto
==============================================================================
--- ctakes/sandbox/ctakes-clinical-deid/src/main/resources/wordlists/name_prefix.txt (added)
+++ ctakes/sandbox/ctakes-clinical-deid/src/main/resources/wordlists/name_prefix.txt Fri Jun
 3 10:18:37 2016
@@ -0,0 +1,9 @@
+Name
+Dr
+Mr
+Mrs
+Ms
+Miss
+contin
+Re
+RE
\ No newline at end of file

Propchange: ctakes/sandbox/ctakes-clinical-deid/src/main/resources/wordlists/name_prefix.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: ctakes/sandbox/ctakes-clinical-deid/src/main/resources/wordlists/patient_prefix.txt
URL: http://svn.apache.org/viewvc/ctakes/sandbox/ctakes-clinical-deid/src/main/resources/wordlists/patient_prefix.txt?rev=1746704&view=auto
==============================================================================
--- ctakes/sandbox/ctakes-clinical-deid/src/main/resources/wordlists/patient_prefix.txt (added)
+++ ctakes/sandbox/ctakes-clinical-deid/src/main/resources/wordlists/patient_prefix.txt Fri
Jun  3 10:18:37 2016
@@ -0,0 +1,8 @@
+patientname
+PatientName
+patient
+pt
+name
+Patient
+Name
+Pt
\ No newline at end of file

Propchange: ctakes/sandbox/ctakes-clinical-deid/src/main/resources/wordlists/patient_prefix.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: ctakes/sandbox/ctakes-clinical-deid/src/main/ruta/org/apache/ctakes/deid/Dictionaries.ruta
URL: http://svn.apache.org/viewvc/ctakes/sandbox/ctakes-clinical-deid/src/main/ruta/org/apache/ctakes/deid/Dictionaries.ruta?rev=1746704&r1=1746703&r2=1746704&view=diff
==============================================================================
--- ctakes/sandbox/ctakes-clinical-deid/src/main/ruta/org/apache/ctakes/deid/Dictionaries.ruta
(original)
+++ ctakes/sandbox/ctakes-clinical-deid/src/main/ruta/org/apache/ctakes/deid/Dictionaries.ruta
Fri Jun  3 10:18:37 2016
@@ -6,7 +6,7 @@ WORDLIST trie = 'generated.mtwl';
 DECLARE KeywordInd; 
 DECLARE KeywordInd ProfessionInd, StateContext, DeceasedInd, FamilyInd, MonthInd;
 DECLARE KeywordInd StreetInd, StreetFullInd, AgePostInd, AgePreInd, PhonePreInd;
-DECLARE KeywordInd NationalityInd, SpokenLanguageInd, CountryInd;
+DECLARE KeywordInd NationalityInd, SpokenLanguageInd, CountryInd, NamePrefixInd, PatientPrefixInd;
 
 TRIE(
     "profession.txt" = ProfessionInd,
@@ -23,6 +23,8 @@ TRIE(
     "nationality.txt" = NationalityInd,
     "spoken-language.txt" = SpokenLanguageInd,
     "country.txt" = CountryInd,
+    "name_prefix.txt" = NamePrefixInd,
+    "patient_prefix.txt" = PatientPrefixInd,
     trie, true, 4, false, 0, "-");
 
 DECLARE Url, Email;
@@ -55,7 +57,6 @@ NUM->{
 	Document{REGEXP("........?")-> Num78};
 	Document{REGEXP("........")-> Num8};
 	Document{REGEXP("\\d{8,12}")-> Num812};
-	
 };
 
 DECLARE LParen, RParen, Dash, Slash, Hash;

Modified: ctakes/sandbox/ctakes-clinical-deid/src/main/ruta/org/apache/ctakes/deid/Patient.ruta
URL: http://svn.apache.org/viewvc/ctakes/sandbox/ctakes-clinical-deid/src/main/ruta/org/apache/ctakes/deid/Patient.ruta?rev=1746704&r1=1746703&r2=1746704&view=diff
==============================================================================
--- ctakes/sandbox/ctakes-clinical-deid/src/main/ruta/org/apache/ctakes/deid/Patient.ruta
(original)
+++ ctakes/sandbox/ctakes-clinical-deid/src/main/ruta/org/apache/ctakes/deid/Patient.ruta
Fri Jun  3 10:18:37 2016
@@ -3,3 +3,59 @@ PACKAGE org.apache.ctakes.deid;
 TYPESYSTEM org.apache.ctakes.deid.DictionariesRutaTypeSystem;
 
 DECLARE Patient;
+
+
+NamePrefixInd COLON?{-ENDSWITH(SplitExternal)}
+    (
+    CW{-PARTOF(NamePrefixInd), -REGEXP(".")}
+    CW[0,3]{-REGEXP("Done")}
+    ){-> Patient};
+
+NamePrefixInd COLON?{-ENDSWITH(SplitExternal)}
+    (
+    CW{-PARTOF(NamePrefixInd)}
+    PERIOD{-ENDSWITH(Split)}
+    CW CW? PERIOD?{-ENDSWITH(Split)}
+    ){-> Patient};
+
+NamePrefixInd COLON?{-ENDSWITH(SplitExternal)}
+    (
+    CW{-PARTOF(NamePrefixInd)}
+    COMMA
+    CW (CW{REGEXP(".")} PERIOD?)?
+    ){-> Patient};
+    
+NamePrefixInd COLON?{-ENDSWITH(SplitExternal)}
+    (
+    CAP COMMA? CAP (CW{REGEXP(".")} PERIOD?)?
+    ){-> Patient};
+    
+    
+PatientPrefixInd COLON
+    (
+    CW{-PARTOF(NamePrefixInd), -REGEXP(".")}
+    CW[0,3]{-REGEXP("Done")}
+    ){-> Patient};
+
+PatientPrefixInd COLON
+    (
+    CW{-PARTOF(NamePrefixInd)}
+    PERIOD{-ENDSWITH(Split)}
+    CW CW? PERIOD?{-ENDSWITH(Split)}
+    ){-> Patient};
+
+PatientPrefixInd COLON
+    (
+    CW{-PARTOF(NamePrefixInd)}
+    COMMA
+    CW (CW{REGEXP(".")} PERIOD?)?
+    ){-> Patient};
+    
+PatientPrefixInd COLON
+    (
+    CAP COMMA? CAP (CW{REGEXP(".")} PERIOD?)?
+    ){-> Patient};
+
+    
+    
+    
\ No newline at end of file



Mime
View raw message