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

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

?? project.clp

?? CLIPS專家系統源碼
?? CLP
?? 第 1 頁 / 共 3 頁
字號:
;*****************************************************************************
;*                                                                           *
;*                            WARNING and DISCLAIMER                         *
;*                                                                           *
;* This implementation the National Cholesterol Education Program guidelines *
;* in CLIPS is intended purely for educational purposes.  It was not         *
;* intended for actual use in a clinical setting.  Rigorous evaluation and   *
;* validation has NOT been done.  It is released to the public with          *
;* absolutely no warranty whatsoever regarding either the correctness of     *
;* the program, or its suitability for any purpose, whatsoever. The user     *
;* assumes all risks and liabilities from the use of this program.           *
;*                                                                           *
;* This program is neither supported nor maintained at this time.  Work on   *
;* the program ended in May 1994.  The program has not been updated since    *
;* that time.                                                                *
;*                                                                           *
;*****************************************************************************
;
; Brief description of the design of the program:
; The program uses various states (boxes in Fig. 1, 2, and 3 of the
; attached paper). State "aa" is the default beginning state. Most
; of the rules are dependent on the current state.
; There are rules for checking missing cholesterol, hdl, and ldl
; values. These rules DO NOT update state because they are dependent
; on the hdl, chol, and ldl values. As soon as the values are
; modified. Other rules (from state to state) will fire.

; patient1 tempate is for orginal patient information
(deftemplate patient1
	(slot name (type SYMBOL) (default ?DERIVE))
	(slot sex (type SYMBOL) (allowed-symbols female male) (default female))
	(slot h-chd (type SYMBOL) (allowed-symbols yes no) (default no))
	(slot htn (type SYMBOL) (allowed-symbols yes no) (default no))
	(slot smoking (type SYMBOL) (allowed-symbols yes no) (default no))
	(slot dm (type SYMBOL) (allowed-symbols yes no) (default no))
	(slot chd (type SYMBOL) (allowed-symbols yes no) (default no))
	(slot et (type SYMBOL) (allowed-symbols yes no) (default no))
	(slot pm (type SYMBOL) (allowed-symbols yes no) (default no))
	(slot age (type INTEGER) (default ?DERIVE)) 
	(slot hdl (type INTEGER) (default -1))
	(slot hdl-date (type INTEGER) (default (get-now)))	
	(slot ldl (type INTEGER) (default -1))
	(slot ldl-date (type INTEGER) (default (get-now)))
	(slot chol (type INTEGER) (default -1))
	(slot chol-date (type INTEGER) (default (get-now)))
	(slot treatment (type SYMBOL) 
		(allowed-symbols none diet drug) (default none))
	(slot treatment-date (type INTEGER) (default (get-now))))

; patient2 tempate is for processed patient information using 
; data form patient1
(deftemplate patient2
	(slot name (type SYMBOL) (default ?DERIVE))
	(slot chd (type SYMBOL) (allowed-symbols yes no) (default no))
	(slot hdl (type INTEGER) (default -1))
	(slot hdl-date (type INTEGER) (default (get-now)))	
	(slot ldl (type INTEGER) (default -1))
	(slot ldl-date (type INTEGER) (default (get-now)))
	(slot chol (type INTEGER) (default -1))
	(slot chol-date (type INTEGER) (default (get-now)))
	(slot treatment (type SYMBOL) 
		(allowed-symbols none diet drug) (default none))
	(slot treatment-date (type INTEGER) (default (get-now)))
	(slot risk (type INTEGER) (default ?DERIVE))
	(slot state (type SYMBOL) (default aa))
	(slot done (type SYMBOL) (allowed-symbols yes no) (default no)))

;*********BEGINNING OF RISK FACTOR RELATED FUNCTIONS*********
; Return 1 if argument is yes, 0 otherwise
(deffunction r1 (?a) "Return 1 if ?a = yes, 0 otherwise"
  (if (= 0 (str-compare ?a yes)) then (return 1)
   else (return 0)))

; function for sex and age related risk
(deffunction sex-risk (?s ?a ?pm ?et) "sex & age related risk"
  (if (= 0 (str-compare ?s male)) 
     then (if (>= ?a 45) 
	     then (return 1) 
	   else (return 0))
   else (if (>= ?a 65) 
	   then (return 1)
	 else (if (= 0 (str-compare ?pm yes)) 
		 then (if (= 0 (str-compare ?et yes))
			 then (return 1)
                       else (return 0))
	       else then (return 0)))))

; function to calculate hdl related risk
(deffunction hdl-risk (?hdl) "hdl risk"
  (if (< ?hdl 35) then (return 1) 
   else (if (>= ?hdl 60) then (return -1) else (return 0))))

; function for risk factors from the following:
; smoking, hypertension, diabetes, history of chd
(deffunction other-risk (?smoke ?h-chd ?htn ?dm) 
  (return (+ (r1 ?smoke) (r1 ?h-chd) (r1 ?htn) (r1 ?dm))))

; all risk factors
(deffunction total-risk (?sex ?age ?pm ?et ?hdl ?smoke ?h-chd ?htn ?dm) 
  (return (+ (sex-risk ?sex ?age ?pm ?et) (hdl-risk ?hdl)
	     (other-risk ?smoke ?h-chd ?htn ?dm))))
;*********END OF RISK FACTOR RELATED FUNCTIONS*********

; create new patient template with risk factors
(defrule create-patient2 "create patient2 based on info from patient1"
  (patient1 (sex ?sex) (age ?age) (pm ?pm) (et ?et) (smoking ?sm)
	    (h-chd ?h-chd) (htn ?htn) (dm ?dm)
            (name ?name) (chd ?chd) (hdl ?hdl) (ldl ?ldl) (chol ?chol)
	    (hdl-date ?hdl-date)  (ldl-date ?ldl-date)(chol-date ?chol-date) 
	    (treatment ?treatment) (treatment-date ?treatment_date))
  =>
  (assert (patient2 (name ?name) (chd ?chd) (hdl ?hdl) (ldl ?ldl) (chol ?chol)
	    (hdl-date ?hdl-date)  (ldl-date ?ldl-date)(chol-date ?chol-date) 
	    (treatment ?treatment) (treatment-date ?treatment_date)
	    (risk (total-risk ?sex ?age ?pm ?et ?hdl ?sm ?h-chd ?htn ?dm)))))

;****************************************************************************
;**************START OF RULES FOR UNTREATED PATIENTS WITHOUT CHD ************
;****************************************************************************


; Every patient must have cholesterol test. Does not modify state
(defrule check-chol "Check for presence of cholesterol"
  ?f1 <- (patient2 (name ?name) (chol ?chol) 
		   (treatment ?treatment) (done ?done))
  (test (= ?chol -1))
  (test (= 0 (str-compare ?done no)))
  (test (= 0 (str-compare ?treatment none)))
  =>
  (printout t crlf "Please input patient's " ?name "'s cholesterol value ")
  (printout t "[-1 if no value]" crlf)
  (bind ?answer (read))
  (if (and (numberp ?answer) (> ?answer 0)) then
	  (modify ?f1 (chol ?answer))
   else
	(printout t "Please obtain cholesterol test on " ?name crlf)
	  (modify ?f1 (done yes))))
;!!!no need to modify done here since default staet is aa. It goes nowhere.
; LOOK AT NEXT RULE

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

; rule for box A. All patients without chd  goes to box A
(defrule ruleA "getting to box A"
  ?f1 <- (patient2 (chd ?chd) (done ?done) 
		   (treatment ?treatment) (state ?state))
  (test (= 0 (str-compare ?chd no)))
  (test (= 0 (str-compare ?done no)))
  (test (= 0 (str-compare ?state aa))) ; state
  (test (= 0 (str-compare ?treatment none)))
  =>
  (modify ?f1 (state a)))

; rule for A->B
(defrule A2B "getting to box A"
  ?f1 <- (patient2 (chol ?chol) (done ?done) (state ?state))
  (test (= 0 (str-compare ?done no)))
  (test (= 0 (str-compare ?state a)))
  (test (< ?chol 200))
  =>
  (modify ?f1 (state b)))

; rule for A->C
(defrule A2C "getting to box C"
  ?f1 <- (patient2 (chol ?chol) (done ?done) (state ?state))
  (test (= 0 (str-compare ?done no)))
  (test (= 0 (str-compare ?state a)))
  (test (<= ?chol 239))
  (test (>= ?chol 200))
  =>
  (modify ?f1 (state c)))

; rule for A->D
(defrule A2D "getting to box D"
  ?f1 <- (patient2 (chol ?chol) (done ?done) (state ?state))
  (test (= 0 (str-compare ?done no)))
  (test (= 0 (str-compare ?state a)))
  (test (>= ?chol 240))
  =>
  (modify ?f1 (state d)))

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

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

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



; rule for box I, see the paper 
; (NAMA, Juen 16, 1993-Vol 269, No. 23, pp 3015-3023)
(defrule B2E2I "Rule for box I"
  ?f1 <- (patient2 (name ?name)
	    (done ?done)
	    (state ?state)
	    (hdl ?hdl))
  (test (= 0 (str-compare ?done no)))
  (test (= 0 (str-compare ?state b)))
  (test (>= ?hdl 35))
  =>
  (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 or With Physical      |"crlf)
  (printout t "|    Education.                                       |"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 i)))

; rule going from box B->F->K

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人精品gif动图一区| 99久久久久免费精品国产| 欧美一区午夜精品| 久久99精品国产麻豆不卡| 欧美精品vⅰdeose4hd| 精品一区二区三区在线视频| 久久夜色精品国产噜噜av| 不卡av免费在线观看| 视频一区二区三区中文字幕| 欧美一级久久久久久久大片| 国产精品自拍三区| 性欧美大战久久久久久久久| 精品国产伦一区二区三区观看体验| 国产成人午夜99999| 亚洲国产精品久久人人爱| 国产日韩欧美亚洲| 欧美乱熟臀69xxxxxx| 97se亚洲国产综合自在线| 久久99精品久久只有精品| 色菇凉天天综合网| 国产剧情一区二区| 奇米精品一区二区三区在线观看| 国产蜜臀97一区二区三区| 欧美成人国产一区二区| 欧美吞精做爰啪啪高潮| 日本乱码高清不卡字幕| 日本网站在线观看一区二区三区| 中文乱码免费一区二区| 久久精品欧美一区二区三区麻豆| 欧美一区二区日韩一区二区| 欧美日韩免费电影| 3d动漫精品啪啪一区二区竹菊| 色网站国产精品| 欧美中文字幕一区二区三区亚洲| 国产一区二区0| 成人午夜在线免费| 成人爽a毛片一区二区免费| 国产一区二区成人久久免费影院| 国产在线精品不卡| 91丨porny丨最新| 777午夜精品视频在线播放| 91麻豆精品国产91久久久久久久久 | 在线观看日韩精品| 欧美日韩亚州综合| 久久久.com| 一区二区三区在线视频观看| 亚洲一二三专区| 黄页视频在线91| 91蝌蚪porny九色| 91精品午夜视频| 日韩亚洲国产中文字幕欧美| www一区二区| 亚洲成av人片在线| 国产成人一级电影| 欧美一级高清大全免费观看| 国产精品女主播在线观看| 亚洲福中文字幕伊人影院| 国产精品白丝av| 欧美男女性生活在线直播观看| 欧美va天堂va视频va在线| 亚洲自拍与偷拍| 丁香六月综合激情| 日韩午夜在线观看| 亚洲一区在线免费观看| 成人看片黄a免费看在线| 日韩一区二区在线免费观看| 亚洲综合视频在线| 色哟哟亚洲精品| 中文字幕一区二区三| 懂色av一区二区在线播放| 国产三级精品视频| 久久精品理论片| 欧美日韩视频在线观看一区二区三区| 欧美极品xxx| 色先锋久久av资源部| 亚洲精选视频免费看| 91福利视频网站| 亚洲国产精品一区二区www在线| 91福利视频网站| 丝袜亚洲另类欧美| 久久先锋影音av| 国产91精品精华液一区二区三区| 欧美经典一区二区三区| 99国产欧美久久久精品| 午夜精品一区二区三区免费视频 | 久久97超碰色| 国产精品卡一卡二| 在线综合+亚洲+欧美中文字幕| 午夜精品免费在线| 欧美xxx久久| 成人av免费在线| 午夜视黄欧洲亚洲| 久久日韩精品一区二区五区| 九九精品一区二区| 亚洲色欲色欲www| 日韩精品综合一本久道在线视频| 黄色日韩三级电影| 亚洲午夜电影在线观看| 国产亚洲一区二区在线观看| 91丝袜美女网| 国产精品一二一区| 午夜婷婷国产麻豆精品| 国产精品高潮呻吟久久| 欧美sm极限捆绑bd| 欧美久久久久久久久中文字幕| 国产成人精品免费网站| 免费久久99精品国产| 丝袜脚交一区二区| 亚洲成人中文在线| 亚洲网友自拍偷拍| 一区二区在线免费| 一区二区国产盗摄色噜噜| 中文欧美字幕免费| 中文字幕av资源一区| 久久精品欧美日韩| 日本一区二区三区国色天香 | 日韩高清一级片| 亚洲一区av在线| 偷拍一区二区三区四区| 婷婷成人激情在线网| 日韩不卡一区二区三区| 一区二区三区四区蜜桃| 一区二区三区产品免费精品久久75| 亚洲激情一二三区| 视频一区中文字幕国产| 久久66热偷产精品| 成人一区在线看| 在线不卡一区二区| 欧美α欧美αv大片| 亚洲精品免费看| 亚洲一区二区三区四区五区中文 | 欧美激情艳妇裸体舞| 亚洲男人的天堂在线aⅴ视频| 亚洲超碰97人人做人人爱| 日本成人在线看| 99久久精品国产导航| 欧美日韩成人综合天天影院| 久久精品日产第一区二区三区高清版 | 亚洲一区二区欧美激情| 蜜桃一区二区三区四区| 91麻豆国产精品久久| 欧美精品一区视频| 亚洲综合成人在线| av中文字幕一区| 久久久亚洲欧洲日产国码αv| 亚洲美女少妇撒尿| 99久久婷婷国产综合精品| 日韩欧美在线影院| 天天操天天综合网| 欧美揉bbbbb揉bbbbb| 国产精品三级av| 国产91丝袜在线播放| 日韩欧美国产一区二区在线播放| 亚洲欧美另类久久久精品2019| 国产一区91精品张津瑜| 日韩视频中午一区| 亚洲五月六月丁香激情| 欧美无乱码久久久免费午夜一区 | 亚洲激情自拍视频| 色八戒一区二区三区| 亚洲一区二区在线观看视频| 91丨porny丨在线| 亚洲高清免费视频| 555夜色666亚洲国产免| 视频一区二区不卡| www亚洲一区| 成人精品视频一区| 综合久久给合久久狠狠狠97色 | 日本亚洲欧美天堂免费| 精品入口麻豆88视频| 国产高清成人在线| 亚洲欧美视频在线观看视频| 欧美日韩激情一区二区| 狠狠狠色丁香婷婷综合激情| 中文字幕精品综合| 欧美系列日韩一区| 国产成人高清视频| 午夜一区二区三区视频| 国产欧美精品一区| 制服丝袜av成人在线看| 成人中文字幕合集| 日本亚洲电影天堂| 亚洲猫色日本管| 久久色成人在线| 欧美一区二区不卡视频| 91免费国产在线| 成人激情动漫在线观看| 日本三级韩国三级欧美三级| 亚洲丝袜制服诱惑| 国产精品网站在线观看| 精品999久久久| 欧美v亚洲v综合ⅴ国产v| 欧美这里有精品| 91蝌蚪porny| 91蜜桃免费观看视频| 成人久久18免费网站麻豆| 国产99久久精品| 成人性生交大片免费看中文网站| 久久精品国产亚洲aⅴ| 亚洲大片在线观看|