亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? project.clp

?? 一個有關專家系統的CLISP 源代碼
?? CLP
?? 第 1 頁 / 共 3 頁
字號:
(defrule B2F2K "Rules to reach box K"
  ?f1 <- (patient2 (state ?state) (done ?done) (hdl ?hdl)
		   (chol ?chol))
  (test (= 0 (str-compare ?done no)))
  (test (= 0 (str-compare ?state b)))
  (test (< ?hdl 35))
  =>
  (modify ?f1 (state k)))

; rule going from box C->G->J
(defrule C2G2J "Rules to reach box J"
  ?f1 <- (patient2 (state ?state) (chd ?chd) (done ?done) (hdl ?hdl)
		   (name ?name))
  (test (= 0 (str-compare ?done no)))
  (test (= 0 (str-compare ?state c)))   
  (test (>= ?hdl 35))
  =>
  (printout t crlf "Patient " ?name " needs the following treatement:"crlf)
  (printout t "-------------------------------------------------------"crlf)
  (printout t "| 1. Provide Information on Dietary Modification,     |"crlf)
  (printout t "|    Physical Activity, and Risk Factor Reduction.    |"crlf)
  (printout t "| 2. Reevaluate Patient in 1 to 2 years:              |"crlf)
  (printout t "|    a. Repeat Total and HDL Cholesterol Measurements.|"crlf)
  (printout t "|    b. Reinforce Nutrition and Physical Activity     |"crlf)
  (printout t "|       Education.                                    |"crlf)
  (printout t "-------------------------------------------------------"crlf)
  (modify ?f1 (done yes) (state j)))

; rule going from box C->H->K
(defrule C2H2K "Rules to reach box K"
  ?f1 <- (patient2 (state ?state) (chd ?chd) (done ?done) (hdl ?hdl)
		   (name ?name))
  (test (= 0 (str-compare ?done no)))
  (test (= 0 (str-compare ?state c)))   
  (test (< ?hdl 35))
  =>
  (modify ?f1 (state k)))


; rule going from box D to box K
(defrule D2K "Rules to reach box K"
  ?f1 <- (patient2 (state ?state)
		   (done ?done))
  (test (= 0 (str-compare ?done no)))
  (test (= 0 (str-compare ?state d)))  
  =>
  (modify ?f1 (state k)))


; check for availability of ldl after reaching box K
(defrule check-ldl-at-K "Check for ldl"
  ?f1 <- (patient2 (ldl ?ldl)
		   (done ?done)
		   (state ?state)
		   (name ?name))
  (test (= ?ldl -1))  ; see other rules with ldl > 0
  (test (= 0 (str-compare ?done no)))
  (test (= 0 (str-compare ?state k)))
  =>
  (printout t crlf
	    "Please input patient " ?name "'s ldl value [-1 if no value]"crlf)
  (bind ?answer (read))
  (if (and (numberp ?answer) (> ?answer 0)) then
	  (modify ?f1 (ldl ?answer)) ; do not modify state here
   else
          (printout t crlf
		 "-------------------------------------------------------"crlf)
	  (printout t "Please obtain ldl test on " ?name crlf)
	  (printout t 
		 "-------------------------------------------------------"crlf)
	  (modify ?f1 (done yes))))

; rule to check the age of the ldl value
(defrule check-ldl-date "date must be within 5 years"
  ?f1 <- (patient2 (name ?name) (ldl-date ?ldl-date) 
		   (done ?done) (state ?state))
  (test (five-years ?ldl-date))
  (test (= 0 (str-compare ?done no)))
=>
  (printout t crlf
		 "-------------------------------------------------------"crlf)
  (printout t "| The last ldl value for " ?name 
	    " is over 5 years old." crlf)
  (printout t "| Please check ldl value on " ?name crlf)
  (printout t "-------------------------------------------------------"crlf)
  (modify ?f1 (done yes)))

; rule from box K->L->O->T
; do high risk rule first
(defrule K2L2O2S "Rule S"
  ?f1 <- (patient2 (name ?name) (state ?state) (done ?done) (risk ?risk)
		   (ldl ?ldl))
  (test (= 0 (str-compare ?done no)))
  (test (= 0 (str-compare ?state k)))
; remove  (test (<= ?ldl 159)) all pat with 2 risk get same rx.
  (test (>= ?ldl 130))
  (test (>= ?risk 2))
  =>
  (printout t crlf "Patient " ?name " needs the following treatement:"crlf)
  (printout t "-------------------------------------------------------"crlf)
  (printout t "| 1. Do Clinical Evaluation (History, Physical        |"crlf)
  (printout t "|    Examination, and Laboratory Tests):              |"crlf)
  (printout t "|    a. Evaluate for Secondary Causes (When Indicated)|"crlf)
  (printout t "|    b. Evaluate for Familial Disorders (When         |"crlf)
  (printout t "|       Indicated)                                    |"crlf)
  (printout t "| 2. Consider Influences of Age, Sex, and Other CHD   |"crlf)
  (printout t "|    Risk Factors                                     |"crlf)
  (printout t "-------------------------------------------------------"crlf)
  (printout t "| 3. Initiate Dietary Therapy with Goal of Lowering   |"crlf)
  (printout t "|    LDL Cholesterol below 130 mg/dl                  |"crlf)
  (printout t "-------------------------------------------------------"crlf)
  (modify ?f1 (done yes) (state t)))


; rules from box K to box T (via box P)
(defrule K2L2P2T "Inititate dietary therapy"
  ?f1 <- (patient2 (name ?name) (state ?state) (done ?done) (ldl ?ldl))
  (test (= 0 (str-compare ?done no)))
  (test (= 0 (str-compare ?state k)))
  (test (>= ?ldl 160))
  =>
  (printout t crlf "Patient " ?name " needs the following treatement:"crlf)
  (printout t "-------------------------------------------------------"crlf)
  (printout t "| 1. Do Clinical Evaluation (History, Physical        |"crlf)
  (printout t "|    Examination, and Laboratory Tests):              |"crlf)
  (printout t "|    a. Evaluate for Secondary Causes (When Indicated)|"crlf)
  (printout t "|    b. Evaluate for Familial Disorders (When         |"crlf)
  (printout t "|       Indicated)                                    |"crlf)
  (printout t "| 2. Consider Influences of Age, Sex, and Other CHD   |"crlf)
  (printout t "|    Risk Factors                                     |"crlf)
  (printout t "-------------------------------------------------------"crlf)
  (printout t "| 3. Initiate Dietary Therapy with Goal of Lowering   |"crlf)
  (printout t "|    LDL Cholesterol below 160 mg/dl                  |"crlf)
  (printout t "-------------------------------------------------------"crlf)
  (modify ?f1 (done yes) (state t)))

; rule from box K->L->M->R
(defrule K2L2M2R "Rule R"
  ?f1 <- (patient2 (name ?name)
		   (state ?state)
		   (done ?done)
		   (ldl ?ldl))
  (test (= 0 (str-compare ?done no)))
  (test (= 0 (str-compare ?state k)))
  (test (< ?ldl 130))
  =>
  (printout t crlf "Patient " ?name " needs the following treatement:"crlf)
  (printout t "-------------------------------------------------------"crlf)
  (printout t "| 1. Repeat Total Cholesterol and HDL Cholesterol     |"crlf)
  (printout t "|    Measurement Within 5 Years                       |"crlf)
  (printout t "| 2. Provide Education on Genral Population Eating    |"crlf)
  (printout t "|    Pattern, Physical Activity, and Risk Factor      |"crlf)
  (printout t "|    Reduction.                                       |"crlf)
  (printout t "-------------------------------------------------------"crlf)
  (modify ?f1 (done yes) (state r)))

; rule from box K->L->N->S
(defrule K2L2N2S "Rule S"
  ?f1 <- (patient2 (name ?name) (state ?state) (done ?done) (risk ?risk)
		   (ldl ?ldl))
  (test (= 0 (str-compare ?done no)))
  (test (= 0 (str-compare ?state k)))
  (test (<= ?ldl 159))
  (test (>= ?ldl 130))
  (test (< ?risk 2))
  =>
  (printout t crlf "Patient " ?name " needs the following treatement:"crlf)
  (printout t "-------------------------------------------------------"crlf)
  (printout t "| 1. Provide Information on Step 1 Diet and Physical  |"crlf)
  (printout t "|    Activity.                                        |"crlf)
  (printout t "| 2. Reevaluate Patient Status Annually, Including    |"crlf)
  (printout t "|    Risk Factor Reduction                            |"crlf)
  (printout t "|    a. Repeat Lipoprotein Analysis                   |"crlf)
  (printout t "|    b. Reinforce Nutrition and Physical Activity     |"crlf)
  (printout t "|       Education.                                    |"crlf)
  (printout t "-------------------------------------------------------"crlf)
  (modify ?f1 (done yes) (state s)))


;************************************************************************
;**************START OF RULES FOR PATIENTS WITH CHD *********************
;************************************************************************

; The following rules are for patients with CHD

; rule for box U. All patients with CHD  goes to box A
(defrule ruleU "getting to box U"
  ?f1 <- (patient2 (chd ?chd) (done ?done) 
		   (treatment ?treatment)(state ?state))
  (test (= 0 (str-compare ?chd yes)))
  (test (= 0 (str-compare ?done no)))
  (test (= 0 (str-compare ?treatment  none)))
  (test (= 0 (str-compare ?state aa))) ; state
  =>
  (modify ?f1 (state u)))

; rule to check for ldl at box U
(defrule check-ldl-at-U
  ?f1 <- (patient2 (name ?name) (done ?done) (state ?state) (ldl ?ldl))
  (test (= 0 (str-compare ?done no)))
  (test (= 0 (str-compare ?state u)))
  (test (= ?ldl -1))
  =>
  (printout t crlf 
	    "Please input patient " ?name "'s ldl value [-1 if no value]"crlf)
  (bind ?answer (read))
  (if (and (numberp ?answer) (> ?answer 0)) then
	  (modify ?f1 (ldl ?answer)) 
   else
          (printout t crlf
		 "-------------------------------------------------------"crlf)
	  (printout t "Please obtain ldl test on" ?name crlf)
          (printout t 
		 "-------------------------------------------------------"crlf)
	  (modify ?f1 (done yes))))

; rule from box U->V->X
(defrule U2V2X "Rule X"
  ?f1 <- (patient2 (name ?name)
		   (state ?state)
		   (done ?done)
		   (ldl ?ldl))
  (test (= 0 (str-compare ?done no)))
  (test (= 0 (str-compare ?state u)))
  (test (<= ?ldl 100))
  (test (> ?ldl 0))
  =>
  (printout t crlf "Patient " ?name " needs the following treatement:"crlf)
  (printout t "-------------------------------------------------------"crlf)
  (printout t "| 1. Indivudualize Instruction on Diet and Physical   |"crlf)
  (printout t "|    Activity Level.                                  |"crlf)
  (printout t "| 2. Repeat Lipoprotein Analysis Annually.            |"crlf)
  (printout t "-------------------------------------------------------"crlf)
  (modify ?f1 (done yes) (state x)))

; rule from box U->W->X
(defrule U2W2Z "Rule Z"
  ?f1 <- (patient2 (name ?name)
		   (state ?state)
		   (done ?done)
		   (ldl ?ldl))
  (test (= 0 (str-compare ?done no)))
  (test (= 0 (str-compare ?state u)))
  (test (> ?ldl 100))
  =>
  (printout t crlf "Patient " ?name " needs the following treatement:"crlf)
  (printout t "-------------------------------------------------------"crlf)
  (printout t "| 1. Do Clinical Evaluation (History, Physical Exam,  |"crlf)
  (printout t "|    and Lab Tests).                                  |"crlf)
  (printout t "| 2. Evaluate for Secondary Causes (When Indicated).  |"crlf)
  (printout t "| 3. Evaluate for Familial Disorders (When Indicated).|"crlf)
  (printout t "| 4. Consider Influences of Age, Sex, and Other CHD   |"crlf)
  (printout t "|    Risk Factors.                                    |"crlf)
  (printout t "-------------------------------------------------------"crlf)
  (printout t "| 5. Initiate Dietary Therapy: Goal is LDL < 100 mg/dl|"crlf)
  (printout t "-------------------------------------------------------"crlf)
  (modify ?f1 (done yes) (state z)))

;**************************************************************************
;************END OF RULES FOR UNTREATED PATIENTS WITH CHD******************
;**************************************************************************

;**************************************************************************
;**********     START OF RULES FOR TREATED PATIENTS  **********************
;**************************************************************************


; rule to identify all treated patients
(defrule ruleT1 "getting to box t1"
  ?f1 <- (patient2 (done ?done) 
		   (treatment ?treatment) (state ?state))
  (test (= 0 (str-compare ?done no)))
  (test (= 0 (str-compare ?state aa))) ; state
  (test (<> 0 (str-compare ?treatment none))) ;treatment other than none
  =>
  (modify ?f1 (state t1)))

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人激情免费网站| 婷婷综合另类小说色区| 欧美一级高清片在线观看| 日本道在线观看一区二区| 成人黄色777网| 国产xxx精品视频大全| 国产成人精品三级| 从欧美一区二区三区| 成人av小说网| 理论电影国产精品| 国产成人午夜精品影院观看视频 | 欧美三级电影在线看| 97se狠狠狠综合亚洲狠狠| 在线视频一区二区免费| 欧美人伦禁忌dvd放荡欲情| 91精品国产91热久久久做人人| 在线观看91精品国产麻豆| 欧美成人免费网站| 久久婷婷综合激情| 中文字幕欧美一| 亚洲欧美一区二区三区久本道91 | 欧美高清性hdvideosex| 91精品国产91久久综合桃花| 欧美精品一区二区三| 国产精品白丝在线| 婷婷国产在线综合| 韩国精品主播一区二区在线观看 | 91久久国产最好的精华液| 欧美性感一类影片在线播放| 欧美久久久一区| 久久免费电影网| 亚洲视频综合在线| 美女诱惑一区二区| 91免费看视频| 欧美一区二区三区视频在线| 亚洲国产高清在线| 水蜜桃久久夜色精品一区的特点| 久久国产精品72免费观看| 成人国产精品免费观看视频| 欧美日本一区二区三区四区| xnxx国产精品| 亚洲自拍偷拍av| 国产露脸91国语对白| 91久久精品一区二区三| 精品剧情v国产在线观看在线| 亚洲视频一区在线观看| 日本视频免费一区| 一本色道a无线码一区v| 久久亚洲一级片| 五月激情综合婷婷| 99re6这里只有精品视频在线观看| 7777精品伊人久久久大香线蕉经典版下载 | 午夜国产精品一区| 91日韩精品一区| www国产精品av| 亚洲第一成年网| 成人av免费在线| 精品国产一区二区三区四区四| 一区二区三区四区蜜桃| 成人h精品动漫一区二区三区| 日韩精品一区二区在线| 日本成人在线看| 欧美日韩精品欧美日韩精品| 亚洲黄色av一区| 91在线看国产| 国产精品美女久久久久久久久久久| 久久99久久99小草精品免视看| 欧美一区二区日韩| 日韩成人dvd| 欧美一级一区二区| 蜜臀av性久久久久蜜臀aⅴ| 欧美精品在线视频| 日韩成人精品在线观看| 日韩一区二区三区免费看 | 日韩一级视频免费观看在线| 亚洲不卡一区二区三区| 色狠狠桃花综合| 亚洲综合区在线| 欧美日韩三级在线| 毛片一区二区三区| 精品日韩一区二区| 国产美女在线观看一区| 久久久影院官网| 粉嫩av一区二区三区粉嫩| 久久亚洲免费视频| 不卡一区在线观看| 亚洲欧美日韩小说| 欧美男生操女生| 蜜臂av日日欢夜夜爽一区| 久久综合狠狠综合| 成人美女视频在线看| 亚洲美女视频一区| 51久久夜色精品国产麻豆| 美女性感视频久久| 欧美激情中文字幕一区二区| 成人国产在线观看| 亚洲电影一级片| 日韩视频在线你懂得| 国产成人免费av在线| 1区2区3区精品视频| 欧美伊人精品成人久久综合97| 亚洲18色成人| 久久九九全国免费| 91福利视频久久久久| 免费成人你懂的| 中文字幕一区在线观看| 欧美男女性生活在线直播观看| 裸体健美xxxx欧美裸体表演| 国产欧美久久久精品影院| 色婷婷综合久久久中文一区二区| 免费看日韩精品| 国产精品伦理一区二区| 欧美日韩免费观看一区三区| 国产一区二区电影| 亚洲欧美另类在线| 久久天天做天天爱综合色| 欧美亚洲综合色| 国产69精品一区二区亚洲孕妇| 一区二区国产盗摄色噜噜| ww久久中文字幕| 欧美日本乱大交xxxxx| 国产成人亚洲精品狼色在线| 亚洲成av人片一区二区三区 | 亚洲一区在线观看免费观看电影高清 | 亚洲男人的天堂一区二区 | 国产精品色眯眯| 制服丝袜亚洲精品中文字幕| 粉嫩绯色av一区二区在线观看| 婷婷国产在线综合| 一区二区三区中文字幕在线观看| 久久精品水蜜桃av综合天堂| 欧美浪妇xxxx高跟鞋交| 97se亚洲国产综合自在线不卡| 国产黄色91视频| 精品一二线国产| 捆绑变态av一区二区三区| 亚洲mv在线观看| 亚洲第一福利视频在线| 亚洲黄色片在线观看| 亚洲另类在线一区| 亚洲欧洲99久久| 国产精品久久久久影院色老大| 国产亚洲精品久| 久久精品夜色噜噜亚洲aⅴ| 精品国偷自产国产一区| 欧美精品v国产精品v日韩精品| 在线精品视频免费播放| 在线精品国精品国产尤物884a| 91一区二区在线| 99国产麻豆精品| 北岛玲一区二区三区四区| 国产.精品.日韩.另类.中文.在线.播放| 日韩av中文字幕一区二区三区| 亚洲午夜免费视频| 一区二区久久久| 午夜久久久影院| 亚洲国产日日夜夜| 亚洲综合视频在线观看| 亚洲va国产天堂va久久en| 亚洲成av人**亚洲成av**| 日韩精品一级中文字幕精品视频免费观看 | 26uuu欧美| 久久综合九色综合97婷婷| 欧美极品美女视频| 中国av一区二区三区| 国产精品国产三级国产普通话99| 国产精品国产三级国产有无不卡| 亚洲欧洲精品一区二区精品久久久 | 国产女同互慰高潮91漫画| 亚洲国产精品v| 亚洲综合精品久久| 免费的成人av| 国产精品亚洲午夜一区二区三区| 不卡一二三区首页| 欧美日韩国产欧美日美国产精品| 欧美一区二区三区日韩视频| 久久久一区二区三区| 最新国产の精品合集bt伙计| 无码av免费一区二区三区试看| 久久成人免费网站| aa级大片欧美| 91麻豆精品国产自产在线观看一区| 欧美电影免费观看完整版| 国产色婷婷亚洲99精品小说| 亚洲免费资源在线播放| 久久精品免费观看| 色婷婷激情久久| 久久综合久久综合亚洲| 自拍偷拍亚洲综合| 免费看黄色91| 91精品办公室少妇高潮对白| 日韩免费成人网| 一区二区三区美女| 国产精品1区2区3区在线观看| 在线观看日韩电影| 久久精品亚洲精品国产欧美| 亚洲成人激情av| 99久久婷婷国产综合精品电影| 日韩一区二区三区三四区视频在线观看| 国产精品看片你懂得|