Change default SQL server host
[umlisp.git] / classes.lisp
1 ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10; Package: umlisp -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
4 ;;;;
5 ;;;; Name:     classes.lisp
6 ;;;; Purpose:  Class defintions for UMLisp
7 ;;;; Author:   Kevin M. Rosenberg
8 ;;;; Created:  Apr 2000
9 ;;;;
10 ;;;; This file, part of UMLisp, is
11 ;;;;    Copyright (c) 2000-2010 by Kevin M. Rosenberg, M.D.
12 ;;;;
13 ;;;; UMLisp users are granted the rights to distribute and use this software
14 ;;;; as governed by the terms of the GNU General Public License.
15 ;;;; *************************************************************************
16
17 (in-package #:umlisp)
18
19 (defclass umlsclass (hyperobject)
20   ()
21   (:metaclass hyperobject-class)
22   (:description "Parent class of all UMLS objects. It is based on the HYPEROBJECT-CLASS metaclass that provides object printing functions."))
23
24
25 (defclass usrl (umlsclass)
26   ((sab :value-type string :initarg :sab :reader sab)
27    (srl :value-type fixnum :initarg :srl :reader srl))
28   (:metaclass hyperobject-class)
29   (:user-name "Source Restriction Level")
30   (:default-print-slots sab srl)
31   (:description "Custom Table: Source Restriction Level"))
32
33
34 (defclass urank (umlsclass)
35   ((rank :value-type fixnum :initarg :rank :reader rank)
36    (sab :value-type string :initarg :sab :reader sab)
37    (tty :value-type string :initarg :tty :reader tty)
38    (suppress :value-type string :initarg :suppress :reader suppress))
39   (:metaclass hyperobject-class)
40   (:user-name "Rank")
41   (:default-print-slots rank sab tty suppress))
42
43 (defclass udef (umlsclass)
44   ((def :value-type cdata :initarg :def :reader def)
45    (sab :value-type string :initarg :sab :reader sab :hyperlink find-usab-rsab)
46    (suppress :value-type string :initarg :suppress :reader suppress))
47   (:metaclass hyperobject-class)
48   (:user-name "Definition")
49   (:default-print-slots sab def))
50
51 (defclass usat (umlsclass)
52   ((sab :value-type string :initarg :sab :reader sab :hyperlink find-usab-rsab)
53    (code :value-type string :initarg :code :reader code)
54    (atn :value-type string :initarg :atn :reader atn)
55    (atv :value-type cdata :initarg :atv :reader atv))
56   (:metaclass hyperobject-class)
57   (:user-name "Simple Attribute")
58   (:default-print-slots sab code atn atv))
59
60 (defclass usab (umlsclass)
61   ((vcui :value-type fixnum :initarg :vcui :reader vcui :print-formatter fmt-cui)
62    (rcui :value-type fixnum :initarg :rcui :reader rcui :print-formatter fmt-cui)
63    (vsab :value-type string :initarg :vsab :reader vsab)
64    (rsab :value-type string :initarg :rsab :reader rsab :hyperlink find-ustr-sab
65          :hyperlink-parameters (("subobjects" . "no")))
66    (son :value-type string :initarg :son :reader son)
67    (sf :value-type string :initarg :sf :reader sf)
68    (sver :value-type string :initarg :sver :reader sver)
69    (vstart :value-type string :initarg :vstart :reader vstart)
70    (vend :value-type string :initarg :vend :reader vend)
71    (imeta :value-type string :initarg :imeta :reader imeta)
72    (rmeta :value-type string :initarg :rmeta :reader rmeta)
73    (slc :value-type cdata :initarg :slc :reader slc)
74    (scc :value-type cdata :initarg :scc :reader scc)
75    (srl :value-type fixnum :initarg :srl :reader srl)
76    (tfr :value-type fixnum :initarg :tfr :reader tfr :print-formatter fmt-comma-integer)
77    (cfr :value-type fixnum :initarg :cfr :reader cfr :print-formatter fmt-comma-integer)
78    (cxty :value-type string :initarg :cxty :reader cxty)
79    (ttyl :value-type string :initarg :ttyl :reader ttyl)
80    (atnl :value-type string :initarg :atnl :reader atnl)
81    (lat :value-type string :initarg :lat :reader lat)
82    (cenc :value-type string :initarg :cenc :reader cenc)
83    (curver :value-type string :initarg :curver :reader curver)
84    (sabin :value-type string :initarg :sabin :reader sabin)
85    (ssn :value-type string :initarg :ssn :reader ssn)
86    (scit :value-type string :initarg :scit :reader scit))
87   (:metaclass hyperobject-class)
88   (:user-name "Source Abbreviation")
89   (:default-print-slots vcui rcui vsab rsab son sf sver vstart vend imeta
90                 rmeta slc scc srl tfr cfr cxty ttyl atnl lat cenc
91                 curver sabin ssn scit))
92
93 (defclass uhier (umlsclass)
94   ((cui :value-type fixnum :initarg :cui :reader cui :hyperlink find-ucon-cui
95         :print-formatter fmt-cui)
96    (aui :value-type fixnum :initarg :aui :reader aui :hyperlink find-ucon-aui
97          :print-formatter fmt-aui)
98    (cxn :value-type fixnum :initarg :cxn :reader cxn)
99    (paui :value-type fixnum :initarg :paui :reader paui
100          :print-formatter fmt-aui)
101    (sab :value-type string :initarg :sab :reader sab :hyperlink find-usab-rsab)
102    (rela :value-type string :initarg :rela :reader rela)
103    (ptr :value-type string :initarg :ptr :reader ptr)
104    (hcd :value-type string :initarg :hcd :reader hcd)
105    (cvf :value-type string  :initarg :cvf :reader cvf))
106   (:metaclass hyperobject-class)
107   (:user-name "Context")
108   (:default-print-slots cxn paui sab rela ptr hcd))
109
110 (defclass ustr (umlsclass)
111   ((sui :value-type fixnum :initarg :sui :reader sui :print-formatter fmt-sui
112         :hyperlink find-ustr-sui)
113    (cui :value-type fixnum :initarg :cui :reader cui :print-formatter fmt-cui
114         :hyperlink find-ucon-cui)
115    (lui :value-type fixnum :initarg :lui :reader lui :print-formatter fmt-lui
116         :hyperlink find-uterm-lui)
117    (cuisui :value-type integer :initarg :cuisui :reader cuisui )
118    (str :value-type cdata :initarg :str :reader str)
119    (lrl :value-type fixnum :initarg :lrl :reader lrl)
120    (stt :value-type string :initarg :stt :reader stt)
121    (suppress :value-type string :initarg :suppress :reader suppress)
122    (s#so :reader s#so :subobject (find-uso-cuisui cui sui))
123    (s#sat :reader s#sat :subobject (find-usat-ui cui lui sui)))
124   (:metaclass hyperobject-class)
125   (:user-name "String")
126   (:default-print-slots sui stt lrl str suppress))
127
128
129 (defclass uso (umlsclass)
130   ((aui :value-type fixnum :initarg :aui :reader aui :print-formatter fmt-aui
131         :hyperlink find-ucon-aui)
132    (cui :value-type fixnum :initarg :cui :reader cui :print-formatter fmt-cui
133         :hyperlink find-ucon-cui)
134    (sui :value-type fixnum :initarg :sui :reader sui :print-formatter fmt-sui
135         :hyperlink find-ucon-sui)
136    (saui :value-type string :initarg :saui :reader saui)
137    (sdui :value-type string :initarg :sdui :reader sdui)
138    (scui :value-type string :initarg :scui :reader scui)
139    (tty :value-type string :initarg :tty :reader tty)
140    (code :value-type string :initarg :code :reader code)
141    (sab :value-type string :initarg :sab :reader sab :hyperlink find-usab-rsab)
142    (lat :value-type string :initarg :lat :reader lat)
143    (str :value-type cdata :initarg :str :reader str)
144    (srl :value-type fixnum :initarg :srl :reader srl)
145    (ts :value-type string :initarg :ts :reader ts))
146   (:metaclass hyperobject-class)
147   (:user-name "Source")
148   (:default-print-slots aui sab code saui sdui scui tty srl ts))
149
150 (defclass uterm (umlsclass)
151   ((lui :value-type fixnum :initarg :lui :reader lui :print-formatter fmt-lui
152         :hyperlink find-uterm-lui)
153    (cui :value-type fixnum :initarg :cui :reader cui :print-formatter fmt-cui
154         :hyperlink find-ucon-cui)
155    (lat :value-type string :initarg :lat :reader lat)
156    (ts :value-type string  :initarg :ts :reader ts)
157    (lrl :value-type fixnum :initarg :lrl :reader lrl)
158    (s#str :reader s#str :subobject (find-ustr-cuilui cui lui))
159    (s#sat :reader s#sat :subobject (find-usat-ui cui lui)))
160   (:metaclass hyperobject-class)
161   (:user-name "Term")
162   (:default-print-slots lui lat ts lrl))
163
164 (defclass usty (umlsclass)
165   ((tui :value-type fixnum :initarg :tui :reader tui :print-formatter fmt-tui
166         :hyperlink find-ucon-tui
167         :hyperlink-parameters (("subobjects" . "no")))
168    (sty :value-type string :initarg :sty :reader sty))
169   (:metaclass hyperobject-class)
170   (:user-name "Semantic Type")
171   (:default-print-slots tui sty))
172
173 (defclass urel (umlsclass)
174   ((rel :value-type string :initarg :rel :reader rel)
175    (cui1 :value-type fixnum :initarg :cui1 :reader cui1 :print-formatter fmt-cui)
176    (aui1 :value-type fixnum :initarg :aui1 :reader aui1 :print-formatter fmt-aui)
177    (stype1 :value-type string  :initarg :stype1 :reader stype1)
178    (cui2 :value-type fixnum :initarg :cui2 :reader cui2 :hyperlink find-ucon-cui
179          :print-formatter fmt-cui)
180    (aui2 :value-type fixnum :initarg :aui2 :reader aui2 :hyperlink find-ucon-aui
181          :print-formatter fmt-aui)
182    (pfstr2 :value-type cdata :initarg :pfstr2 :reader pfstr2)
183    (stype2 :value-type string  :initarg :stype2 :reader stype2)
184    (rela :value-type string :initarg :rela :reader rela)
185    (rui :value-type fixnum  :initarg :rui :reader rui :print-formatter fmt-rui)
186    (srui :value-type string  :initarg :srui :reader srui)
187    (sab :value-type string :initarg :sab :reader sab :hyperlink find-usab-rsab)
188    (sl :value-type string  :initarg :sl :reader sl)
189    (rg :value-type string  :initarg :rg :reader rg)
190    (dir :value-type string  :initarg :dir :reader dir)
191    (suppress :value-type string  :initarg :suppress :reader suppress)
192    (cvf :value-type string  :initarg :cvf :reader cvf))
193   (:metaclass hyperobject-class)
194   (:user-name "Relationship")
195   (:default-print-slots stype1 rel cui2 aui2 stype2 rela rui srui sab sl rg dir suppress pfstr2))
196
197 #+mrcoc
198 (defclass ucoc (umlsclass)
199   ((cui1 :value-type fixnum :initarg :cui1 :reader cui1 :print-formatter fmt-cui)
200    (aui1 :value-type fixnum :initarg :aui1 :reader aui1 :print-formatter fmt-aui)
201    (cui2 :value-type fixnum :initarg :cui2 :reader cui2 :print-formatter fmt-cui
202          :hyperlink find-ucon-cui)
203    (aui2 :value-type fixnum :initarg :aui2 :reader aui2 :print-formatter fmt-aui
204          :hyperlink find-ucon-aui)
205    (pfstr2 :value-type cdata :initarg :pfstr2 :reader pfstr2)
206    (sab :value-type string :initarg :sab :reader sab)
207    (cot :value-type string :initarg :cot :reader cot)
208    (cof :value-type fixnum :initarg :cof :reader cof)
209    (coa :value-type cdata :initarg :coa :reader coa)
210    (cvf :value-type string  :initarg :cvf :reader cvf))
211   (:metaclass hyperobject-class)
212   (:user-name "Co-occuring Concept")
213   (:default-print-slots cot cof coa cui2 aui2 sab pfstr2))
214
215 (defclass ucon (umlsclass)
216   ((cui :value-type fixnum :initarg :cui :reader cui :print-formatter fmt-cui
217         :hyperlink find-ucon-cui)
218    (lrl :value-type fixnum :initarg :lrl :reader lrl
219         :compute-cached-value (find-lrl-cui cui))
220    (pfstr :value-type cdata :initarg :pfstr :reader pfstr
221           :compute-cached-value (find-pfstr-cui cui))
222    (s#def :reader s#def :subobject (find-udef-cui cui))
223    (s#so :reader s#so :subobject (find-uso-cui cui))
224    (s#hier :reader s#hier :subobject (find-uhier-cui cui))
225    (s#map :reader s#map :subobject (find-umap-cui cui))
226    (s#smap :reader s#smap :subobject (find-usmap-cui cui))
227    (s#sty :reader s#sty :subobject (find-usty-cui cui))
228    (s#term :reader s#term :subobject (find-uterm-cui cui))
229    (s#sat :reader s#sat :subobject (find-usat-ui cui))
230    (s#rel :reader s#rel :subobject (find-urel-cui cui))
231    #+mrcoc (s#coc :reader s#coc :subobject (find-ucoc-cui cui))
232    )
233   (:metaclass hyperobject-class)
234   (:user-name "Concept")
235   (:default-print-slots cui lrl pfstr))
236
237
238 (defclass uconso (umlsclass)
239   ((cui :value-type fixnum :initarg :cui :reader cui :print-formatter fmt-cui
240         :hyperlink find-ucon-cui)
241    (pfstr :value-type cdata :initarg :pfstr :reader pfstr
242           :compute-cached-value (find-pfstr-cui cui))
243    (lat :value-type string :initarg :lat :reader lat)
244    (ts :value-type string :initarg :ts :reader ts)
245    (lui :value-type fixnum :initarg :lui :reader lui :print-formatter fmt-lui)
246    (stt :value-type string :initarg :stt :reader stt)
247    (sui :value-type fixnum :initarg :sui :reader sui :print-formatter fmt-sui)
248    (ispref :value-type string :initarg :ispref :reader ispref)
249    (aui :value-type fixnum :initarg :aui :reader aui :print-formatter fmt-aui)
250    (saui :value-type string :initarg :saui :reader saui)
251    (scui :value-type string :initarg :scui :reader scui)
252    (sdui :value-type string :initarg :sdui :reader sdui)
253    (sab :value-type string :initarg :sab :reader sab)
254    (tty :value-type string :initarg :tty :reader tty)
255    (code :value-type string :initarg :code :reader code)
256    (str :value-type string :initarg :str :reader str)
257    (srl :value-type fixnum :initarg :srl :reader srl)
258    (suppress :value-type string :initarg :suppress :reader suppress)
259    (cvf :value-type string :initarg :cvf :reader cvf)
260    (kpfeng :value-type string :initarg :kpfeng :reader kpfeng)
261    (kcuisui :value-type bigint :initarg :kcuisui :reader kcuisui)
262    (kcuilui :value-type bigint :initarg :kcuilui :reader kcuilui)
263    (kcuilrl :value-type fixnum :initarg :kcuilrl :reader kcuilrl)
264    (kluilrl :value-type fixnum :initarg :kluilrl :reader kluilrl)
265    (ksuilrl :value-type fixnum :initarg :ksuilrl :reader ksuilrl)
266    (s#def :reader s#def :subobject (find-udef-cui cui))
267    (s#so :reader s#so :subobject (find-uso-cui cui))
268    (s#hier :reader s#hier :subobject (find-uhier-cui cui))
269    (s#map :reader s#map :subobject (find-umap-cui cui))
270    (s#smap :reader s#smap :subobject (find-usmap-cui cui))
271    (s#sty :reader s#sty :subobject (find-usty-cui cui))
272    (s#term :reader s#term :subobject (find-uterm-cui cui))
273    (s#sat :reader s#sat :subobject (find-usat-ui cui))
274    (s#rel :reader s#rel :subobject (find-urel-cui cui))
275    #+mrcoc (s#coc :reader s#coc :subobject (find-ucoc-cui cui))
276    )
277   (:documentation "CONSO is a new concept from the RRF files.")
278   (:metaclass hyperobject-class)
279   (:user-name "Concept")
280   (:default-print-slots cui kcuilrl str sab))
281
282 (defclass umap (umlsclass)
283   ((mapsetcui :value-type fixnum :initarg :mapsetcui :reader mapsetcui)
284    (mapsetsab :value-type string :initarg :mapsetsab :reader mapsetsab)
285    (mapsubsetid :value-type string :initarg :mapsubsetid :reader mapsubsetid)
286    ;; fixme: will convert to integer
287    (maprank :value-type string :initarg :maprank :reader maprank)
288    (fromid :value-type string :initarg :fromid :reader fromid)
289    (fromsid :value-type string :initarg :fromsid :reader fromsid)
290    (fromexpr :value-type string :initarg :fromexpr :reader fromexpr)
291    (fromtype :value-type string :initarg :fromtype :reader fromtype)
292    (fromrule :value-type string :initarg :fromrule :reader fromrule)
293    (fromres :value-type string :initarg :fromres :reader fromres)
294    (rel :value-type string :initarg :rel :reader rel)
295    (rela :value-type string :initarg :rela :reader rela)
296    (toid :value-type string :initarg :toid :reader toid)
297    (tosid :value-type string :initarg :tosid :reader tosid)
298    (toexpr :value-type string :initarg :toexpr :reader toexpr)
299    (totype :value-type string :initarg :totype :reader totype)
300    (torule :value-type string :initarg :torule :reader torule)
301    (tores :value-type string :initarg :tores :reader tores)
302    (maprule :value-type string :initarg :maprule :reader maprule)
303    (maptype :value-type string :initarg :maptype :reader maptype)
304    (mapatn :value-type string :initarg :mapatn :reader mapatn)
305    (mapatv :value-type string :initarg :mapatv :reader mapatv)
306    (cvf :value-type string  :initarg :cvf :reader cvf))
307   (:metaclass hyperobject-class)
308   (:user-name "Mapping")
309   (:default-print-slots mapsetcui mapsetsab mapsubsetid maprank fromid fromsid fromexpr fromtype
310                         fromrule fromres rel rela toid tosid toexpr totype torule tores maprule
311                         maptype mapatn mapatv))
312
313 (defclass usmap (umlsclass)
314   ((mapsetcui :value-type fixnum :initarg :mapsetcui :reader mapsetcui)
315    (mapsetsab :value-type string :initarg :mapsetsab :reader mapsetsab)
316    (fromexpr :value-type string :initarg :fromexpr :reader fromexpr)
317    (fromtype :value-type string :initarg :fromtype :reader fromtype)
318    (rel :value-type string :initarg :rel :reader rel)
319    (rela :value-type string :initarg :rela :reader rela)
320    (toexpr :value-type string :initarg :toexpr :reader toexpr)
321    (totype :value-type string :initarg :totype :reader totype)
322    (cvf :value-type string  :initarg :cvf :reader cvf))
323   (:metaclass hyperobject-class)
324   (:user-name "Simple Mapping")
325   (:default-print-slots mapsetcui mapsetsab fromexpr fromtype rel rela toexpr totype))
326
327 (defclass uxw (umlsclass)
328   ((wd :value-type string :initarg :wd :reader wd)
329    (cui :value-type fixnum :initform nil :initarg :cui :reader cui :print-formatter fmt-cui)
330    (lui :value-type fixnum :initform nil :initarg :lui :reader lui :print-formatter fmt-lui)
331    (sui :value-type fixnum :initform nil :initarg :sui :reader sui :print-formatter fmt-sui))
332   (:metaclass hyperobject-class)
333   (:user-name "XW Index" "XW Indices")
334   (:default-print-slots wd cui lui sui))
335
336 (defclass uxw-noneng (umlsclass)
337   ((lat :value-type string :initarg :lat :reader lat)
338    (wd :value-type string :initarg :wd :reader wd)
339    (cui :value-type fixnum :initform nil :initarg :cui :reader cui :print-formatter fmt-cui)
340    (lui :value-type fixnum :initform nil :initarg :lui :reader lui :print-formatter fmt-lui)
341    (sui :value-type fixnum :initform nil :initarg :sui :reader sui :print-formatter fmt-sui)
342    (lrl :value-type fixnum :initform nil :initarg :lrl :reader lrl))
343   (:metaclass hyperobject-class)
344   (:user-name "XW Non-English Index" "XW Non-English Indices")
345   (:default-print-slots wd cui lui sui))
346
347 (defclass uxnw (umlsclass)
348   ((lat :value-type string :initarg :lat :reader lat)
349    (nwd :value-type string :initarg :nwd :reader nwd)
350    (cuilist :value-type list :initarg :cuilist :reader uxnw-cuilist))
351   (:metaclass hyperobject-class)
352   (:user-name "XNW Index" "XNW Indices")
353   (:default-print-slots lat nwd cuilist))
354
355 (defclass uxns (umlsclass)
356   ((lat :value-type string :initarg :lat :reader lat)
357    (nstr :value-type string :initarg :nstr :reader nstr)
358    (cuilist :value-type list :initarg :cuilist :reader cuilist))
359   (:metaclass hyperobject-class)
360   (:user-name "XNS Index" "XNS Indices")
361   (:default-print-slots lat nstr cuilist))
362
363 (defclass udoc (umlsclass)
364   ((dockey :value-type string :initarg :dockey :reader dockey)
365    (expl :value-type cdata :initarg :expl :reader expl)
366    (dtype :value-type cdata :initarg :dtype :reader dtype)
367    (dvalue :value-type cdata :initarg :dvalue :reader dvalue))
368   (:metaclass hyperobject-class)
369   (:user-name "Documentation record")
370   (:default-print-slots dockey expl dtype dvalue))
371
372
373 ;;; LEX objects
374
375 (defclass lexterm (umlsclass)
376   ((eui :value-type fixnum :initarg :eui :reader eui :print-formatter fmt-eui
377         :hyperlink find-lexterm-eui)
378    (wrd :value-type string :initarg :wrd :reader wrd)
379    (s#abr :reader s#abr :subobject (find-labr-eui eui))
380    (s#agr :reader s#agr :subobject (find-lagr-eui eui))
381    (s#cmp :reader s#cmp :subobject (find-lcmp-eui eui))
382    (s#mod :reader s#mod :subobject (find-lmod-eui eui))
383    (s#nom :reader s#nom :subobject (find-lnom-eui eui))
384    (s#prn :reader s#prn :subobject (find-lprn-eui eui))
385    (s#prp :reader s#prp :subobject (find-lprp-eui eui))
386    (s#spl :reader s#spl :subobject (find-lspl-eui eui))
387    (s#trm :reader s#trm :subobject (find-ltrm-eui eui))
388    (s#typ :reader s#typ :subobject (find-ltyp-eui eui)))
389   (:metaclass hyperobject-class)
390   (:user-name "Lexical Term")
391   (:default-print-slots eui wrd))
392
393
394 (defclass labr  (umlsclass)
395   ((eui :value-type integer :initarg :eui :reader eui :print-formatter fmt-eui)
396    (bas :value-type string :initarg :bas :reader bas)
397    (abr :value-type string :initarg :abr :reader abr)
398    (eui2 :value-type integer :initarg :eui2 :reader eui2 :print-formatter fmt-eui)
399    (bas2 :value-type string :initarg :bas2 :reader bas2))
400   (:metaclass hyperobject-class)
401   (:user-name "Abbreviations and Acronym")
402   (:default-print-slots eui bas abr eui2 bas2))
403
404 (defclass lagr  (umlsclass)
405   ((eui :value-type integer :initarg :eui :reader eui :print-formatter fmt-eui)
406    (str :value-type string :initarg :str :reader str)
407    (sca :value-type string :initarg :sca :reader sca)
408    (agr :value-type string :initarg :agr :reader agr)
409    (cit :value-type string :initarg :cit :reader cit)
410    (bas :value-type string :initarg :bas :reader bas))
411   (:metaclass hyperobject-class)
412   (:user-name "Agreement and Inflection")
413   (:default-print-slots eui str sca agr cit bas))
414
415 (defclass lcmp  (umlsclass)
416   ((eui :value-type integer :initarg :eui :reader eui :print-formatter fmt-eui)
417    (bas :value-type string :initarg :bas :reader bas)
418    (sca :value-type string :initarg :sca :reader sca)
419    (com :value-type string :initarg :com :reader com))
420   (:metaclass hyperobject-class)
421   (:user-name "Complementation")
422   (:default-print-slots eui bas sca com))
423
424 (defclass lmod  (umlsclass)
425   ((eui :value-type integer :initarg :eui :reader eui :print-formatter fmt-eui)
426    (bas :value-type string :initarg :bas :reader bas)
427    (sca :value-type string :initarg :sca :reader sca)
428    (psnmod :value-type string :initarg :psnmod :reader psnmod)
429    (fea :value-type string :initarg :fea :reader fea))
430   (:metaclass hyperobject-class)
431   (:user-name "Modifier")
432   (:default-print-slots eui bas sca psnmod fea))
433
434 (defclass lnom  (umlsclass)
435   ((eui :value-type integer :initarg :eui :reader eui :print-formatter fmt-eui)
436    (bas :value-type string :initarg :bas :reader bas)
437    (sca :value-type string :initarg :sca :reader sca)
438    (eui2 :value-type integer :initarg :eui2 :reader eui2 :print-formatter fmt-eui)
439    (bas2 :value-type string :initarg :bas2 :reader bas2)
440    (sca2 :value-type string :initarg :sca2 :reader sca2))
441   (:metaclass hyperobject-class)
442   (:user-name "Nominalization")
443   (:default-print-slots eui bas sca eui2 bas2 sca2))
444
445 (defclass lprn  (umlsclass)
446   ((eui :value-type integer :initarg :eui :reader eui :print-formatter fmt-eui)
447    (bas :value-type string :initarg :bas :reader bas)
448    (num :value-type string :initarg :num :reader num)
449    (gnd :value-type string :initarg :gnd :reader gnd)
450    (cas :value-type string :initarg :cas :reader cas)
451    (pos :value-type string :initarg :pos :reader pos)
452    (qnt :value-type string :initarg :qnt :reader qnt)
453    (fea :value-type string :initarg :fea :reader fea))
454   (:metaclass hyperobject-class)
455   (:user-name "Pronoun")
456   (:default-print-slots eui bas num gnd cas pos qnt fea))
457
458 (defclass lprp  (umlsclass)
459   ((eui :value-type integer :initarg :eui :reader eui :print-formatter fmt-eui)
460    (bas :value-type string :initarg :bas :reader bas)
461    (str :value-type string :initarg :str :reader str)
462    (sca :value-type string :initarg :sca :reader sca)
463    (fea :value-type string :initarg :fea :reader fea))
464   (:metaclass hyperobject-class)
465   (:user-name "Property" "Properties")
466   (:default-print-slots eui bas str sca fea))
467
468
469 (defclass lspl  (umlsclass)
470   ((eui :value-type integer :initarg :eui :reader eui :print-formatter fmt-eui)
471    (spv :value-type string :initarg :spv :reader spv)
472    (bas :value-type string :initarg :bas :reader bas))
473   (:metaclass hyperobject-class)
474   (:user-name "Spelling Variant")
475   (:default-print-slots eui spv bas))
476
477
478 (defclass ltrm  (umlsclass)
479   ((eui :value-type integer :initarg :eui :reader eui :print-formatter fmt-eui)
480    (bas :value-type string :initarg :bas :reader bas)
481    (gen :value-type string :initarg :gen :reader gen))
482   (:metaclass hyperobject-class)
483   (:user-name "Trade Mark")
484   (:default-print-slots eui bas gen))
485
486 (defclass ltyp  (umlsclass)
487   ((eui :value-type integer :initarg :eui :reader eui :print-formatter fmt-eui)
488    (bas :value-type string :initarg :bas :reader bas)
489    (sca :value-type string :initarg :sca :reader sca)
490    (typ :value-type string :initarg :typ :reader typ))
491   (:metaclass hyperobject-class)
492   (:user-name "Inflection Type")
493   (:default-print-slots eui bas sca typ))
494
495 (defclass lwd (umlsclass)
496   ((wrd :value-type string :initarg :wrd :reader wrd)
497    (euilist :value-type list :initarg :euilist :reader euilist))
498   (:metaclass hyperobject-class)
499   (:user-name "Lexical Word Index" "Lexical Word Indices")
500   (:default-print-slots wrd euilist))
501
502 ;;; Semantic NET objects
503
504 (defclass sdef (umlsclass)
505   ((rt :value-type string :initarg :rt :reader rt)
506    (ui :value-type integer :initarg :ui :reader ui :print-formatter fmt-tui)
507    (styrl :value-type string :initarg :styrl :reader styrl)
508    (stnrtn :value-type string :initarg :stnrtn :reader stnrtn)
509    (def :value-type string :initarg :def :reader def)
510    (ex :value-type string :initarg :ex :reader ex)
511    (un :value-type string :initarg :un :reader un)
512    (rh :value-type string :initarg :rh :reader rh)
513    (abr :value-type string :initarg :abr :reader abr)
514    (rin :value-type string :initarg :rin :reader rin))
515   (:metaclass hyperobject-class)
516   (:user-name "Basic information about Semantic Types and Relation")
517   (:default-print-slots rt ui styrl stnrtn def ex un rh abr rin))
518
519 (defclass sstr (umlsclass)
520   ((styrl :value-type string :initarg :styrl :reader styrl)
521    (rl :value-type string :initarg :rl :reader rl)
522    (styrl2 :value-type string :initarg :styrl2 :reader styrl2)
523    (ls :value-type string :initarg :ls :reader ls))
524   (:metaclass hyperobject-class)
525   (:user-name "Structure of the Network")
526   (:default-print-slots styrl rl styrl2 ls))
527
528 (defclass sstre1 (umlsclass)
529   ((ui :value-type integer :initarg :ui :reader ui :print-formatter fmt-tui)
530    (ui2 :value-type integer :initarg :ui2 :reader ui2 :print-formatter fmt-tui)
531    (ui3 :value-type integer :initarg :ui3 :reader ui3 :print-formatter fmt-tui))
532   (:metaclass hyperobject-class)
533   (:user-name "Fully Inherited Set of Relation (TUIs)"
534               "Fully Inherited Set of Relations (TUIs)")
535   (:default-print-slots ui ui2 ui3))
536
537 (defclass sstre2 (umlsclass)
538   ((sty :value-type string :initarg :ui :reader sty)
539    (rl :value-type string :initarg :ui2 :reader rl)
540    (sty2 :value-type string :initarg :ui3 :reader sty2))
541   (:metaclass hyperobject-class)
542   (:user-name "Fully Inherited Set of Relation (strings)"
543               "Fully Inherited Set of Relations (strings)")
544   (:default-print-slots sty rl sty2))
545
546
547 ;;; **************************
548 ;;; Local Classes
549 ;;; **************************
550
551 (defclass ustats (umlsclass)
552   ((name :value-type string :initarg :name :reader name)
553    (hits :value-type integer :initarg :hits :reader hits
554          :user-name "count"
555          :print-formatter fmt-comma-integer)
556    (srl :value-type fixnum :initarg :srl :reader srl))
557   (:metaclass hyperobject-class)
558   (:default-initargs :name nil :hits nil :srl nil)
559   (:user-name "UMLS Statistic")
560   (:default-print-slots name hits srl)
561   (:documentation "Custom Table: UMLS Database statistics."))