if {
?patient :temperature ?temp .
filter (?temp > 100)
}
then {
?patient :has :HighFever
}
if {
?patient :plateletCount ?count .
filter(?count < 100000)
}
then {
?patient :has :Thrombocytopenia
}
:Thrombocytopenia a :OrganDysfunction
:HighFever a :GeneralIndicator
if {
?patient :has [ a :OrganDysfunction ] .
?patient :has :Infection
}
then {
?patient :has :SevereSepsis
}
if {
?patient :hasCondition :Sepsis .
{ ?patient :has :Hypotension }
union
{ ?patient :has :Hyperlactamemia }
}
then {
?patient :has :SepticShock
}