AI-ExpertSystem-Simple
view release on metacpan or search on metacpan
examples/Doctor.xml view on Meta::CPAN
<name>13</name>
<conditions>
<condition>
<attribute>tonsils.swollen</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>vomiting</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>headache</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>high.fever</attribute>
<value>yes</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.disease</attribute>
<value>tonsillitis</value>
</action>
</actions>
</rule>
<rule>
<name>14</name>
<conditions>
<condition>
<attribute>rapid.breathing</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>cough</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>high.fever</attribute>
<value>yes</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.disease</attribute>
<value>pneumonia</value>
</action>
</actions>
</rule>
<rule>
<name>15</name>
<conditions>
<condition>
<attribute>high.fever</attribute>
<value>yes</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.disease</attribute>
<value>roseola</value>
</action>
</actions>
</rule>
<rule>
<name>16</name>
<conditions>
<condition>
<attribute>fever</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>difficulty.breathing</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>hoarse.cough</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>cold</attribute>
<value>yes</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.disease</attribute>
<value>severe.croup</value>
</action>
</actions>
</rule>
<rule>
<name>17</name>
<conditions>
<condition>
<attribute>difficulty.breathing</attribute>
<value>yes</value>
</condition>
<condition>
<attribute>hoarse.cough</attribute>
<value>yes</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.disease</attribute>
<value>croup</value>
</action>
</actions>
</rule>
<rule>
<name>18</name>
<conditions>
<condition>
<attribute>impetigo.rash</attribute>
<value>yes</value>
</condition>
</conditions>
<actions>
<action>
<attribute>type.disease</attribute>
( run in 1.901 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )