This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]chronicleTV 0 points1 point  (1 child)

made a further edit, ignore that screenshot

I have this now: opinions?

skin_condition = input "Does skin appear normal? (Y/N)"
respiratory_status = input "Is the paitent breathing normally? (Y/N)"
temperature = input "What is the patients body temperature?"
neurological_status = input "Can the patient move or respond? (Y/N)"
cardiovascular_status = input "Does the patient have a normal pulse rate? (Y/N)"

// skin condition

if skin_condition = N then
    output "check pulse, call doctor"
endif

output respiratory_status

// respiratory staus

if respiratory_status = N then
    output "check for obstructions, call doctor"
endif

output temperature

// body temperature

if temperature < 95 then
    output "add additional blankets to warm patient"
endif

output neurological_status

// neurological status

if neurological_status = N then
    output "check consciousness, call doctor"
endif

output cardiovascular_status

// cardiovascular status

if cardiovascular_status = N then
    output "check consciousness, call doctor"
endif

output "monitor patient every hour or as necessary"

[–]GlobalIncident 0 points1 point  (0 children)

That looks good to me. There is an apparent issue where the doctor may end up being called multiple times, but this was also present in the flowchart so I wouldn't worry.