/* 12/15/2016 - MacularDegenerationA.xbt
XbertClass.php example for detecting macular degeneration.
This is not a medical diagnostic tool.
It is nothing more than demonstration of the XbertClass.php expert system.
Data derived from Summer 2010 newsletter from:
Macular Degeneration Association, a 501(c)3 charity.
PO Box 20256
Sarsota, FL 34276
Various techniques are used for variables to show options.
,,< < < < < < < < < < < < < < <
,,This is an example of how to use the Xbert expert system.
,, This is not a medical diagnostic tool.
,,Data derived from Summer 2010 newsletter from:
,, Macular Degeneration Association, a 501(c)3 charity.
,, PO Box 20256
,, Sarsota, FL 34276
,,> > > > > > > > > > > > > > >
5 ,Asky, Have you been diagnosed with Macular Degeneration?
,, . . . . . . . . . . . .
,,You need to check daily for even slight changes in your vision.
,pau,See your doctor immediately if you notice any changes.
,end, No need to go further.
# do you want to see the factors involved with AMD
5 ,, Do you want to see the factors that contribute
,asky, to Macular Degeneration?
,,- - - - -
,, Age - more so over age 45.
,, Race - more common in caucasian but occurs in all races.
,, Gender - more common in women.
,, Smoking increases chances.
,, Obesity increases chances.
,, Exposure to sunlight - use UV protecting sun glasses when outside.
,, Family history
# ,,explain the two methods of self testing
,,Two methods of self testing are included here and are by no way complete.
,,First and preferrred way is to use an Amsler Grid made up of evenly spaced
,,horizontal and vertical lines.
,,Second is a general observation test.
,AskYes, Do you have an Amsler Grid to use now?
,,If you normally use reading glasses, put them on now.
,,Covering (not closing) first one eye then the other
,,hold test at normal reading distance or 12 - 18 inches
,,-- away while looking at the center dot.
,AskN, Can you clearly see all 4 corners?
,glo, <hit> Yes
,AskN, Can you clearly see all 4 sides?
,AskY, Do you see any wavy lines?
,AskY, Are there any holes or missing areas?
,glo, <hit> Yes
# see if a doctor's visit is needed
10 ,fal, 6
# show access to Amsler Grid Test -- http://www.allaboutvision.com/conditions/amsler-grid.htm
,,You can print an Amsler Grid from several places on the internet including
,,An Amsler Grid makes it easy to check periodically.
# ask if you wish to continue with the general testing
,asky, Do you want to perform the general tests of 5 questions?
,,Cover (not close) first one eye then the other for each test.
# conduct the general test. Any symptom directs you to see the doctor.
,asky, Do you notice blurred central vision close-up?
,glo, <hit> <>
,asky, Do you notice blurred distant vision?
,asky, Do straight lines look irregular or bent in either eye?
,asky, Do objects appear as different shapes between the two eyes?
,asky, Do objects appear as different colors between the two eyes?
# see if the person has MD symptoms. <hit> may be global or local
,false, 4 skip to the disclaimer
# if the person tried either test and passed
6 ,equ, <tried> YES
# show the disclaimer