I am using CR 8.5 and have a report that is grouped by Patient ID and Service Day. The data is shown on the Service Day group. Each patient will have more than 1 record (multiple days in the hospital), and I need to retrieve the second to last day of each patient. In the example below I need day 2 from patient #1 and day 3 from patient #2.
Patient ID Service Day
#1 1
#1 2
#1 3
#2 1
#2 2
#2 3
#2 4
I started with {serviceday} = maximum({serviceday}) in the Group selection, but it returned only the patient with the longest stay (i.e. had the most service dates).
I also tried the Suppress function in Format Section, but no luck so far. Any help is appreciated.
Patient ID Service Day
#1 1
#1 2
#1 3
#2 1
#2 2
#2 3
#2 4
I started with {serviceday} = maximum({serviceday}) in the Group selection, but it returned only the patient with the longest stay (i.e. had the most service dates).
I also tried the Suppress function in Format Section, but no luck so far. Any help is appreciated.