I need to develop a report where patients are listed that do not have a treatment plan developed. I have put together a report that lists patients based on intake date with columns for Patient ID, Episode ID, Name and Completed Documents. Episode is usually the number of times the patient has been opened for service. The only patients that should be listed are those without a treatment plan.
I've not written a formula with "If" or variables, so I'm really screwing this up. I was trying to put it in the detail supress area. So far I have:
WhilePrintingRecords;
stringVar Id := {Patient.patient_id};
stringVar Episode := {Patient.episode_id};
stringVar Print := "Yes"
while Id := next({Patient.patient_id} and Episode := Next({Patient.episode_id}) do
stringVar Document := {Document.name};
If Document <> "Treatment Plan" then Print := "Yes";
Can someone point me in the right direction, or in another direction?
Thanks.
I've not written a formula with "If" or variables, so I'm really screwing this up. I was trying to put it in the detail supress area. So far I have:
WhilePrintingRecords;
stringVar Id := {Patient.patient_id};
stringVar Episode := {Patient.episode_id};
stringVar Print := "Yes"
while Id := next({Patient.patient_id} and Episode := Next({Patient.episode_id}) do
stringVar Document := {Document.name};
If Document <> "Treatment Plan" then Print := "Yes";
Can someone point me in the right direction, or in another direction?
Thanks.