PHP Classes

File: Lupus.xbt

Recommend this page to a friend!
  Classes of Bob Wedwick   PHP Expert System Engine   Lupus.xbt   Download  
File: Lupus.xbt
Role: Auxiliary data
Content type: text/plain
Description: Xbert rule set
Class: PHP Expert System Engine
Ask questions and make decisions based on answers
Author: By
Last change:
Date: 7 years ago
Size: 4,121 bytes
 

Contents

Class file image Download
/*,,Lupus.xbt - This is an example of how to use the XbertClass.php. Data for this test comes from publications from Lupus Foundation of America, a 501(c)3 charity. */,, 5 ,glob,<sawcause> NO ,csv,LupusMsg.xbt ,asky,Do you want to read more about the nature of Lupus? ,,-------- ,,Lupus is an unpredictable and misunderstood disease ,, in which the immune system is out of balance, ,, causing damage to any organ system in the body. ,, Every 32 minutes another person is diagnosed with Lupus. ,, Each year, costs amount to tens of billions of dollars in ,, medical expenses and lost work. 8 ,asky,Do you want to see the symptoms of Lupus? ,,-------- ,,Symptoms of Lupus come and go, change over time, ,, and often imitate other illnesses, making Lupus difficult ,, to diagnose. Common symptoms include joint pain, ,, skin rashes, overwhelming fatigue ,, and fevers that last for days or weeks. 10 ,asky,Do you want to read about the causes of Lupus? ,csv,LupusCause.xbt 5 ,asky,Do you want to take a quick 18-question test for Lupus? ,loc,<count> 0 8 ,,----- ,,1. Have you ever had stiff, tender, swollen joints ,asky, that feel worse in the morning? ,add,<count> 1 <count> 8 ,,----- ,,2. Have you ever had an unexpected fever higher ,, than 100 degrees F for more than a few days ,asky, that was not due to an infection? ,add,<count> 1 <count> 8 ,,----- ,,3. Have you ever had extreme fatigue and weakness ,asky, for days or weeks at a time, even after plenty of sleep? ,add,<count> 1 <count> 8 ,,----- ,,4. Has your skin broken out after being in the sun, ,asky, but it is not sunburn? ,add,<count> 1 <count> 8 ,,----- ,,5. Have you ever been told you have anemia, ,asky, low white cell count or low platelet count? ,add,<count> 1 <count> 8 ,,----- ,,6. Have you developed irritation or dryness in ,asky, your eyes or mouth for more than a few weeks? ,add,<count> 1 <count> 8 ,,----- ,asky,7. Have you ever been told you have protein in your urine? ,add,<count> 1 <count> 8 ,,----- ,asky,8. Have you ever felt chest pain when taking deep breaths? ,add,<count> 1 <count> 8 ,,----- ,,9. Have your fingers or toes ever become pale, red or blue ,asky, or felt numb or painful? ,add,<count> 1 <count> 8 ,,----- ,asky,10. Have you ever had a stroke or heart attack? ,add,<count> 1 <count> 8 ,,----- ,asky,11. Have you ever had blood clotting problems or a miscarriage? ,add,<count> 1 <count> 8 ,,----- ,,12. Have you ever had redness or a rash across your nose and ,asky, cheeks in the shape of a butterfly? ,add,<count> 1 <count> 8 ,,----- ,asky,13. Have you ever had a seizure or convulsion? ,add,<count> 1 <count> 8 ,,----- ,,14. Have you ever had unexplained confusion that lasted more ,asky, than an hour? ,add,<count> 1 <count> 8 ,,----- ,,15. Have you had sores in your mouth or nose that ,, lasted for more than five days ,asky, or sores on your skin that would not heal? ,add,<count> 1 <count> 8 ,,----- ,,16. Have you ever had swelling in your legs and ankles ,asky, on both sides at the same time? ,add,<count> 1 <count> 8 ,,----- ,asky,17. Have you had sudden, unexplained hair loss? ,add,<count> 1 <count> 8 ,,----- ,,18. Have you had unexplained weight loss or abdominal pain that is ,asky, worse when you breathe? ,add,<count> 1 <count> 8 ,gte,<count> 3 12 ,,----- ,,You answered <count> questions with Yes. The Lupus Foundation ,, of America recommends consulting with your doctor to discuss ,pau, Lupus and the questions where you answered YES. 8 ,les,<count> 3 12 ,,----- ,,You answered <count> of the 18 questions with Yes. ,pau, Your chances of having Lupus are low. 5 ,equ, <sawcause> NO ,,------ ,,It is still good to know the causes of Lupus. ,asky,Do you want to review the causes now? ,csv,LupusCause.xbt 5 ,csv, LupusMsg.xbt ,, = = = = = = = ,,This has been an example of how the Xbert inference engine can ,, be used to process a rule set. To get a complete understanding ,, of how it works, run this example multiple times using different ,pau, responses to the questions.