This CircuitLab design tracks a patient for three symptoms for respiratory disease (represented here by three SPDT switches). When no symptoms are present, a green LED is illuminated. When one symptom is present, a yellow LED is illuminated. Two symptoms results in a red LED, and three sounds an alarm. The design incorporates logic gates to determine how many symptoms are present, which trigger the LEDs or alarms as appropriate.
C'T'O' = 1
A green LED is illuminated if a patient displays no symptoms.
C’T’O + C’TO’ + CT’O’ = 1
A yellow LED is illuminated if a patient displays one symptom.
C’TO + CT’O + CTO’ = 1
A red LED is illuminated if a patient displays two symptoms.
CTO = 1
An alarm sounds if a patient displays three symptoms.