LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (August 2005, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 11 Aug 2005 14:38:58 -0400
Reply-To:   Venky Chakravarthy <swovcc@HOTMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Venky Chakravarthy <swovcc@HOTMAIL.COM>
Subject:   Re: Searching for the same member and date
Comments:   To: Muhammad Khan <MKhan@OXHP.COM>

If you sort by PATIENT and DOS then you can flag any patient that has repeated a DOS. Hopefully, that patient can only see the same provider only once per day. See the *untested* code below.

proc sort data = in out = sorted ; by patient dos ; run ;

data flagged ; set sorted ; by patient dos ; if first.dos and last.dos then flag = 0 ; else flag = 1 ; run ;

The flag value of 1 should contain the patients you are looking for.

On Thu, 11 Aug 2005 14:23:26 -0400, Khan, Muhammad Z. <MKhan@OXHP.COM> wrote:

>Dear users, > I have a SAS dataset with about 25 provider with date of service and their patient information. I'm trying to find out who billed for the same member and same date of service. For example, provider 99999 and provider 888888 could see the same member at the same dos, I woul like to see that, in one case provider 66666 and provider 99999 could see the same patient at the same date that should be included also, I think there could be many combinations to this problem. Any help with this would be appreciated. Please reply to my email address as can't access the digest itself. > >Thanks > >Muhammad > >table layout > >provider patient dos >999999 123456 01jan2000 >888888 456789 30jan2002 >.....


Back to: Top of message | Previous page | Main SAS-L page