I need to create a report that will list patients seen at our clinic, along with an indication of whether they have had certain charges billed to them. So, we are essentially talking about looking at multiple charges per patient and reading through those records for certain codes.
If, in any of the charges for that patient, if a certain code is found, I would like to display an "X" on the report next to the patient's name.
I imagine the output to look something like below, assuming the patient had multiple charges billed to them, with at least one of them being "Charge B". Example:
Patient Name | Charge A | Charge B | Charge C
John Doe | | X |
I was trying to accomplish this with two formulas, like so:
(Formula One)
If {charges.cpt4_code_id} = "45380" then {charges.person_id} else {@Null}
(Formula Two) - this is the one that would be placed on the report:
if {person.person_id} in {@Biopsy Check Patient} then "X" else ""
I was thinking that I could put this in the group footer, but I'm finding that the X only displays at the detail level. My assumption is that if the code is found, it will pop the person_id into the formula. Then, in the second formula, looks to see if the current person_id is in the first formula.
Hopefully, that makes sense. Can anyone tell me how I could go about this in a better way?
If, in any of the charges for that patient, if a certain code is found, I would like to display an "X" on the report next to the patient's name.
I imagine the output to look something like below, assuming the patient had multiple charges billed to them, with at least one of them being "Charge B". Example:
Patient Name | Charge A | Charge B | Charge C
John Doe | | X |
I was trying to accomplish this with two formulas, like so:
(Formula One)
If {charges.cpt4_code_id} = "45380" then {charges.person_id} else {@Null}
(Formula Two) - this is the one that would be placed on the report:
if {person.person_id} in {@Biopsy Check Patient} then "X" else ""
I was thinking that I could put this in the group footer, but I'm finding that the X only displays at the detail level. My assumption is that if the code is found, it will pop the person_id into the formula. Then, in the second formula, looks to see if the current person_id is in the first formula.
Hopefully, that makes sense. Can anyone tell me how I could go about this in a better way?