;;;; Author: Kevin M. Rosenberg
;;;; Date Started: Apr 2000
;;;;
-;;;; $Id: class-support.lisp,v 1.8 2003/05/15 05:16:44 kevin Exp $
+;;;; $Id: class-support.lisp,v 1.9 2003/05/26 14:53:33 kevin Exp $
;;;;
;;;; This file, part of UMLisp, is
;;;; Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D.
"Return the string for a ulo object"
(find-string-sui (sui lo)))
+(defmethod uterm-pfstr (uterm)
+ "Return the preferred string for a uterm"
+ (dolist (ustr (s#str uterm))
+ (when (string= "PF" (stt ustr))
+ (return-from uterm-pfstr (str ustr)))))
+
+(defmethod remove-non-english-terms (uterms)
+ (remove-if-not #'english-term-p uterms))
+
+
#+(or scl cmu)
(dolist (c '(urank udef usat uso ucxt ustr ulo uterm usty urel ucoc uatx ucon uxw uxnw uxns lexterm labr lagr lcmp lmod lnom lprn lprp lspl ltrm ltyp lwd sdef sstr sstre1 sstre2 usrl))
#+cmu
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Apr 2000
;;;;
-;;;; $Id: package.lisp,v 1.18 2003/05/06 02:14:59 kevin Exp $
+;;;; $Id: package.lisp,v 1.19 2003/05/26 14:53:33 kevin Exp $
;;;;
;;;; This file, part of UMLisp, is
;;;; Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D.
#:rsab #:lat
#:s#def #:s#sty #:s#term #:s#str #:s#atx #:s#lo #:s#sat #:s#rel #:s#coc
#:s#so #:s#cxt
-
+ #:pfstr #:pfstr2 #:lrl #:def #:ts #:cui1 #:cui2 #:rela #:sl #:mg #:rel
+ #:soc #:cot #:cof #:coa
+
;; From class-support.lisp
#:ucon-has-tui
- #:english-term-p
+ #:english-term-p #:remove-non-english-terms
#:fmt-cui #:fmt-tui #:fmt-sui #:fmt-eui #:fmt-tui
#:display-con #:display-term #:display-str
+ #:uterm-pfstr
;; From sql.lisp
#:umls-sql-user!