Hi.
I'm trying to create a report that shows the time certain patients have to wait for an examination.
I tried to use:
local numbervar T;
global timevar F;
global timevar D;
if {RISLOG.LTRANS} = 'Ny status: Besk.afs' then D := time ({RISLOG.LDATETIME});
if {RISLOG.LTRANS} = 'Dokumentation' then F := time ({RISLOG.LDATETIME});
T:= (D-F)/60;
T;
where {RISLOG.LDATETIME} is my DateTime field in format (dd-mm-yyyy hh:mm:ss) but this formula doesn't account for different dates and thus comes with a result as if the time interval is within the same 24 hours.
How do I make the date count as well?
Best regards Mads, Copenhagen - Denmark
I'm trying to create a report that shows the time certain patients have to wait for an examination.
I tried to use:
local numbervar T;
global timevar F;
global timevar D;
if {RISLOG.LTRANS} = 'Ny status: Besk.afs' then D := time ({RISLOG.LDATETIME});
if {RISLOG.LTRANS} = 'Dokumentation' then F := time ({RISLOG.LDATETIME});
T:= (D-F)/60;
T;
where {RISLOG.LDATETIME} is my DateTime field in format (dd-mm-yyyy hh:mm:ss) but this formula doesn't account for different dates and thus comes with a result as if the time interval is within the same 24 hours.
How do I make the date count as well?
Best regards Mads, Copenhagen - Denmark