Tags:
Permalink Reply by Vivek Gupta on April 28, 2011 at 12:14am Hi Tim
Also you could try an
IF NOT variable=(.)
THEN
.....
ELSE
....
END
Vivek
Permalink Reply by Tim Schmitt on May 4, 2011 at 2:50pm Thank you for the replies, I knew it would be a simple fix.
I do have another problem I need to address.
I need to be able to run a frequency report that checks dates entered fall within a compliant date or not. I have two variables (date vaccine was given or declined) that need to be checked to see if the date is within the last year or not. The dates will not be replaced, we will be adding a new record to that patient. I need to be able to have it check only the last record entered.
Here is one attempt. The IF command does not work.
DEFINE COMPLIANCE
IF VACCINATIONDATE= (YEARS(FLUVACDATE, SYSTEMDATE) >=1) AND VACCINATIONDECLINED= (YEARS(FLUVACDECLINED, SYSTEMDATE) >=1) THEN
COMPLIANCE="N"
ELSE
COMPLIANCE="Y"
END
FREQ COMPLIANCE MISSING=(+)
Here is another one that I have tried:
DEFINE VACCINATIONDATE
ASSIGN VACCINATIONDATE= YEARS(VACDATE,SYSTEMDATE)
DEFINE VACCINEDECLINED
ASSIGN VACCINEDECLINED= YEARS(VACDECLINED, SYSTEMDATE)
DEFINE COMPLIANCE
IF VACCINATIONDATE >=1 AND VACCINEDECLINED >=1 THEN
COMPLIANCE="N"
ELSE
COMPLIANCE="Y"
END
FREQ COMPLIANCE
Permalink Reply by Roy Ing on May 5, 2011 at 1:52pm Hi Tim,
Attached is an example EpiInfo 3.5 mdb database and Analysis pgm file that shows what you may be looking for. Copy the files to c:\temp and run the pgm file in Analysis. The criteria for "Compliant" can be easily changed depending on your definition.
Hope this helps,
Roy Ing
http://www.EpiSuccess.com
Permalink Reply by Tim Schmitt on May 11, 2011 at 11:47am © 2013 Created by phConnect Admin.
