- (collect-umlisp-query (mrdef (sab def) srl cui cui :lrl "KSRL")
- (make-instance 'udef :sab sab :def def)))
+ (collect-umlisp-query (mrdef (sab def suppress) srl cui cui :lrl "KSRL")
+ (make-instance 'udef :sab sab :def def :suppress suppress)))
+
+(defun find-udoc-key (key)
+ "Return list of abbreviation documentation for a key"
+ (collect-umlisp-query (mrdoc (value type expl) nil dockey key)
+ (make-instance 'udoc :key key :value value :type type :expl expl)))
+
+(defun find-udoc-value (value)
+ "Return abbreviation documentation"
+ (collect-umlisp-query (mrdoc (dockey type expl) nil value value)
+ (make-instance 'udoc :key dockey :value value :type type :expl expl)))
+
+(defun find-udoc-key-value (key value)
+ (let ((tuple (car (mutex-sql-query
+ (format nil "SELECT TYPE,EXPL FROM MRDOC WHERE DOCKEY='~A' AND VALUE='~A'"
+ key value)))))
+ (when tuple
+ (make-instance 'udoc :key key :value value :type (first tuple) :expl (second tuple)))))
+
+(defun find-udoc-all ()
+ "Return all abbreviation documentation"
+ (collect-umlisp-query (mrdoc (dockey value type expl) nil nil nil)
+ (make-instance 'udoc :key dockey :value value :type type :expl expl)))