X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=parse-rrf.lisp;h=65992bf5a6cd792952b2781dbd0a77dce79ca576;hb=28aeae6f894ac1e2b4ded59af9371b373e38a701;hp=59f48269aa4bc3bc7520cf0a804f9d89e849559c;hpb=8dc001f5e7cf851c06006e489473a85611d348be;p=umlisp.git diff --git a/parse-rrf.lisp b/parse-rrf.lisp index 59f4826..65992bf 100644 --- a/parse-rrf.lisp +++ b/parse-rrf.lisp @@ -24,14 +24,17 @@ (declaim (inline srl-to-srlus)) (defun srl-to-srlus (srl) - "Convert the standard SRL category to one oriented for use in the United States. -Specifically, SRL 4 in the USA has license restrictions between SRL 1 and 2 when -used in the United States. We create a new scale (SRLUS) where SRL to SRLUS mapping is: -(0->0, 1->1, 4->2, 2->3, 3->4)." + "Convert the standard SRL category to one oriented for use in the ~ +United States. Specifically, SRL 4 in the USA has license restrictions ~ +between SRL 1 and 2 when used in the United States. As of 2009AA, the +SNOMED SRL changed from 4 to 9. So we create a new scale ~ +(SRLUS) where SRL to SRLUS mapping is: ~ +(0->0, 1->1, 4->2, 9->2, 2->3, 3->4)." (declare (type (integer 0 100) srl)) (cond ((<= srl 1) srl) ((= srl 4) 2) + ((= srl 9) 2) ((= srl 2) 3) ((= srl 3) 4) (t srl))) @@ -222,7 +225,7 @@ used in the United States. We create a new scale (SRLUS) where SRL to SRLUS mapp (parse-ui (vff "MRCONSO.RRF" "SUI" x)))))) ("MRCONSO.RRF" "KCUILUI" "BIGINT" 0 (lambda (x) (write-to-string (make-cuilui (parse-ui (vff "MRCONSO.RRF" "CUI" x)) - (parse-ui (vff "MRCONSO.RRF" "SUI" x)))))) + (parse-ui (vff "MRCONSO.RRF" "LUI" x)))))) ("MRCONSO.RRF" "KCUILRL" "TINYINT" 0 (lambda (x) (write-to-string (cui-lrl (parse-ui (vff "MRCONSO.RRF" "CUI" x)))))) ("MRCONSO.RRF" "KCUILRLUS" "TINYINT" 0 @@ -357,9 +360,9 @@ used in the United States. We create a new scale (SRLUS) where SRL to SRLUS mapp ("CUI" "MRSAT") ("LUI" "MRSAT") ("SUI" "MRSAT") ("METAUI" "MRSAT") ("ATN" "MRSAT") ("CUI" "MRSTY") ("TUI" "MRSTY") ("CUI" "MRXNS_ENG") - ("AUI" "MRHIER") ("CUI" "MRHIER") ("CXN" "MRHIER") ("RELA" "MRHIER") ("PAUI" "MRHIER") - ("SAB" "MRHIER") - #+ignore ("NSTR" "MRXNS_ENG" 10) + ("AUI" "MRHIER") ("CUI" "MRHIER") ("CXN" "MRHIER") ("RELA" "MRHIER") + ("PAUI" "MRHIER") ("SAB" "MRHIER") + ("NSTR" "MRXNS_ENG" 255) ("CUI" "MRXNW_ENG") ("NWD" "MRXNW_ENG") ("WD" "MRXW_ENG") ("KCUISUI" "MRCONSO") ("KCUILUI" "MRCONSO") ("KCUILRL" "MRCONSO") ("KLUILRL" "MRCONSO") ("KSUILRL" "MRCONSO") @@ -384,8 +387,7 @@ used in the United States. We create a new scale (SRLUS) where SRL to SRLUS mapp ("RL" "SRSTR") ("SRL" "MRSAB") ("KSRLUS" "MRSAB") ("RSAB" "MRSAB") ("VSAB" "MRSAB") ("RCUI" "MRSAB") - ("VCUI" "MRSAB") ("LAT" "MRSAB") ("MAPSETCUI" "MRMAP") ("MAPSETCUI" "MRSMAP") - ("CUI" "MRHIER")) + ("VCUI" "MRSAB") ("LAT" "MRSAB") ("MAPSETCUI" "MRMAP") ("MAPSETCUI" "MRSMAP")) "Columns in files to index")