Nov-01-2021, 08:22 PM
I am trying to create some functionality that will harvest text date from a text file. The text file is basically a series of questions and answers. So I have a lot of this:
Does the patient abuse alcohol?
YES
Does the patient see the doctor as directed?
YES
Does the patient have suicidal ideation?
NO
These questions are not numbers, and some have a ":" after the question, others not. Ideally I would like to be able to "flag" answers that are significant. So, an answer of "NO" for alcohol abuse is just not significant to my analysis, but a "NO" to the second question (failing to see a doctor) is significant. In other words, there is a default answer to each question that means basically, this is not significant. Any ideas? Thanks.
Does the patient abuse alcohol?
YES
Does the patient see the doctor as directed?
YES
Does the patient have suicidal ideation?
NO
These questions are not numbers, and some have a ":" after the question, others not. Ideally I would like to be able to "flag" answers that are significant. So, an answer of "NO" for alcohol abuse is just not significant to my analysis, but a "NO" to the second question (failing to see a doctor) is significant. In other words, there is a default answer to each question that means basically, this is not significant. Any ideas? Thanks.