on 01-21-2022 9:47 PM
I am trying to write a formula where if the patients medication given time is less than the patients discharge time then display the word 'Justified', else 'NA'. All of my patients say 'Justified' which is not correct.
if ({Command.TAKEN_TIME}) < {Command.HOSP_DISCH_TIME} then "Justified" else
"NA"
Looks like the time portion of the data is in different formats. so you'll need to take that into account when calculating.
Check the Help file fo option to convert one of the fields time portion into the same format as the other.
Search on CRDate...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you drop both fields onto the report do you see date/time in the info?
What format is the time data?
You may want to use Date functions to check the values also.
Hit the F1 key to bring up CR's Help then search for "DateDiff" it gives examples on how to use it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.