Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Evaluation lab value 6M before a class and lab values 3-6M after class

Status
Not open for further replies.

records333

Technical User
Mar 16, 2012
41
US
Scenario: 1)capture lab values and dates 6M before class 2)lab values and dates 3-6M after class. My selection criteria is coded to capture date 6M before or after class. Additionally I would like to create columns pre a1c values and post alc values. (report is grouped by patient)

I used a if formula to capture pre and post columns but records are showing null. if a patient had more than 1 lab value before or after class I would like to capture the last date and value.
 
Selection Criteria:
(
//PRE A1C
{ORDER_RESULTS.RESULT_DATE} in [DateAdd("m", -6, {ICIC.1ST CLASS}) to {ICIC.1ST CLASS}]
)

or

(
//POST A1C
{ORDER_RESULTS.RESULT_DATE} in [DateAdd("m", 3, {ICIC.LAST CLASS}) to DateAdd("m", 6, {ICIC.LAST CLASS})]
)

What is the best way to proceed with creating formuals to make columns for Pre A1C and Post A1C without showing null values in either group? And show only the last date in either group if there were more than 1 date and value.

Example
IF{ORDER_RESULTS.RESULT_DATE}<={ICIC.1ST CLASS}

THEN {ORDER_RESULTS.RESULT_DATE}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top