X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=parse-2002.lisp;h=79119fd9639192d15c498a00b4b6fe739256ab93;hb=9713ebfd8e6ac341920ed53c25ab009d5ce4c806;hp=9d76d2e15382265c96ae4676b81186f1bb43a0ce;hpb=c9e6faf9bf684217c74accd17243b432a11c2962;p=umlisp.git diff --git a/parse-2002.lisp b/parse-2002.lisp index 9d76d2e..79119fd 100644 --- a/parse-2002.lisp +++ b/parse-2002.lisp @@ -8,7 +8,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2000 ;;;; -;;;; $Id: parse-2002.lisp,v 1.5 2002/11/10 22:39:15 kevin Exp $ +;;;; $Id: parse-2002.lisp,v 1.6 2003/05/06 06:09:29 kevin Exp $ ;;;; ;;;; This file, part of UMLisp, is ;;;; Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D. @@ -114,17 +114,6 @@ (setf (gethash key hash) lrl)))) ;; UMLS file and column structures - -(defstruct (umls-file) - "Record for each UMLS File" - fil table des fmt cls rws bts fields colstructs) - -(defstruct (umls-col) - "Record for each UMLS Column in each file" - col des ref min av max fil sqltype - dty ;; new in 2002 umls: suggested SQL datatype - parsefunc quotechar datatype custom-value-func) - ;;; SQL datatypes symbols ;;; sql-u - Unique identifier ;;; sql-s - Small integer (16-bit) @@ -226,9 +215,9 @@ (lambda (x) (format nil "~d" (make-cuisui (parse-ui (nth 2 x)) (parse-ui (nth 4 x)))))) ("MRXW.NONENG" "LAT" "CHAR" 3 (lambda (x) (nth 0 x))) ("MRXW.NONENG" "WD" "CHAR" 200 (lambda (x) (nth 1 x))) - ("MRXW.NONENG" "CUI" "INTEGER" 0 (lambda (x) (nth 2 x))) - ("MRXW.NONENG" "LUI" "INTEGER" 0 (lambda (x) (nth 3 x))) - ("MRXW.NONENG" "SUI" "INTEGER" 0 (lambda (x) (nth 4 x))) + ("MRXW.NONENG" "CUI" "INTEGER" 0 (lambda (x) (parse-ui (nth 2 x)))) + ("MRXW.NONENG" "LUI" "INTEGER" 0 (lambda (x) (parse-ui (nth 3 x)))) + ("MRXW.NONENG" "SUI" "INTEGER" 0 (lambda (x) (parse-ui (nth 4 x)))) ("MRXW.NONENG" "KCUISUI" "BIGINT" 0 (lambda (x) (format nil "~d" (make-cuisui (parse-ui (nth 2 x)) (parse-ui (nth 4 x))))))) "Custom columns to create.(filename, col, sqltype, value-func).")