Hi all
I'm really struggling to find a solution to this problem. I'm using Crystal 9.0 with an Access database.
I have a report outlining contacts made to patients by district nurses over a period of time. It is grouped on the "patient number" and on the "referral number". In its most basic form the report is laid out like this:
PatNo. ReasonCare Modifier
SB1074*3 (referral number)
SB1074 Mobility First
SB1074*4
SB1074 medication First
SB1074 medication recurrence
SB1074*5
SB1074 Mobility First
SB1074 Mobility Recurrence
SB1074 Mobility Recurrence
There are other fields in the final report but none that affect the problem i'm having.
The problem stems from the Modifier field. What this should do is check the reason for care and if its the first case of that one the the Modifier is set to "first", if its any more than the first then it is classed as a "recurrence". This all works as it is but there is one last thing which is causing the problem. If a previous referral for a particular patient contains the reason for care that is found as the first one in the current referral then the modifier should not read "first" but instead read "Persistant" as the patient has been seen before for the same problem, any cases forllowing this will be set to recurrence as normal.
The ideal output should look like this:
PatNo. ReasonCare Modifier
SB1074*3 (referral number)
SB1074 Mobility First
SB1074*4
SB1074 medication First
SB1074 medication recurrence
SB1074*5
SB1074 Mobility Persistant
SB1074 Mobility Recurrence
SB1074 Mobility Recurrence
Hope this makes sense.
Could anyone suggest to me a way of doing this. Any help is much appreciated.
Thanks in advance
I'm really struggling to find a solution to this problem. I'm using Crystal 9.0 with an Access database.
I have a report outlining contacts made to patients by district nurses over a period of time. It is grouped on the "patient number" and on the "referral number". In its most basic form the report is laid out like this:
PatNo. ReasonCare Modifier
SB1074*3 (referral number)
SB1074 Mobility First
SB1074*4
SB1074 medication First
SB1074 medication recurrence
SB1074*5
SB1074 Mobility First
SB1074 Mobility Recurrence
SB1074 Mobility Recurrence
There are other fields in the final report but none that affect the problem i'm having.
The problem stems from the Modifier field. What this should do is check the reason for care and if its the first case of that one the the Modifier is set to "first", if its any more than the first then it is classed as a "recurrence". This all works as it is but there is one last thing which is causing the problem. If a previous referral for a particular patient contains the reason for care that is found as the first one in the current referral then the modifier should not read "first" but instead read "Persistant" as the patient has been seen before for the same problem, any cases forllowing this will be set to recurrence as normal.
The ideal output should look like this:
PatNo. ReasonCare Modifier
SB1074*3 (referral number)
SB1074 Mobility First
SB1074*4
SB1074 medication First
SB1074 medication recurrence
SB1074*5
SB1074 Mobility Persistant
SB1074 Mobility Recurrence
SB1074 Mobility Recurrence
Hope this makes sense.
Could anyone suggest to me a way of doing this. Any help is much appreciated.
Thanks in advance