Decision Lab

I created a spreadsheet model of "Farmers Market", Which shows six different product categories and their cost, revenue, cost with inflation, revenue with inflation and the profit. I also used formulas within the spreadsheet.

HTML

Penang Malaysian & Thai Cuisine

I love eating at Penang with my Husband and Friends.

My All Time Favorite Menu

  1. Roti Canai with Chicken Curry
  2. Red Curry Chicken with Thai Pineapple Fried Rice
  3. Coconut Fish Curry

Favorite Desserts and Beverages

  • Fried Ice Cream
  • Mango Ice Cream
  • Malaysian Ice Tea
  • Malaysian Lychee Drink
Visit Penang

CD Database

Susan's Spread Sheet

Wednesday, December 14, 2011

Expert System

my expert system will let the patient choose the best treatment for the diagnosis according to the signs and symptoms.


BEGIN

DISPLAY "

Welcome to the charming world of medicine!

Press any key to begin the consultation."~
FIND the_treatment
CLS
DISPLAY "

The most appropriate treatment for this diagnosis is {the_treatment}

given according to the {diagnosis}."

END


RULE a1:
IF diagnosis = "pneumonia" AND
symptoms = "green phlegm" AND
sign = Fever
THEN the_treatment = "Antibiotics";
BECAUSE a1"
Your diagnosis will be cured by taking antibiotics."

RULE a2:
IF diagnosis = pneumonia AND
symptoms = cough OR
sign = Fever
THEN the_treatment = Nebulizer;
BECAUSE a2"
Your diagnosis will be cured by taking nebulizer treatments."

RULE a3:
IF diagnosis = SOB AND
chief_complaint = SOB AND
Symptoms = apnea
THEN treatment = "Oxygen";
BECAUSE a3"
Your diagnosis will be cured by using supplemental Oxygen."

RULE a4:
IF diagnosis = asthma OR
Chief_Complaint = "chest tightness" AND
Sign = "Decreased peak flow"
THEN treatment = "Nebulizer";
BECAUSE a4"
Your diagnosis will be cured by nebulizer treatments."

RULE a5:
IF diagnosis = "SOB" AND
Chief_Complaint = dyspnea AND
sign = "low oxygen"
THEN preference = "Oxygen";
BECAUSE a5"
Your diagnosis will most likely be cured by using supplemental Oxygen."

RULE a6:
IF diagnosis = Asthma AND
Chief_Complaint = dyspnea OR
Sign = Wheezing
THEN treatment = nebulizer;
BECAUSE a6"
Your diagnosis will be cured by using a nebulizer treatment."

RULE a7:
IF diagnosis = bronchitis AND
sign = Phlegm OR
symptoms = cough
THEN treatment = "Antibiotics";
BECAUSE a7"
Your dignosis will be cured by taking antibiotics."

RULE a8:
IF diagnosis = "Asthmatic Bronchitis" OR
Sign = Wheezing AND
Symptoms = cough
THEN preference = "Antibiotics";
BECAUSE a8"
Your diagnosis will be cured by taking antibiotics."

RULE a9:
IF diagnosis = "Asthma" AND
Sign = "chest tightness" OR
Symptoms = SOB
THEN the_treatment = Inhaler;
BECAUSE a9"
Your diagnosis will be most likely cured by using inhaler."


ASK Course "
nebulizer is given with What diagnosis?"

CHOICES diagnosis (Bronchitis, Asthmatic/Bronchitis, Asthma)


ASK Preference "
What is your preference in treatments?"

CHOICES Preference (Nebulizer, Antibiotics, Inhaler)

ASK Sign "
What is your sign?"

CHOICES Sign (Fever, Wheezing)


PLURAL (Course)

No comments:

Post a Comment