I would like to add a function to a handout that displays the patient's date of last mammogram if the patient is female and 21 years and older.
I've pieced together some code that is just not working.
Any suggestions?
{IF PATIENT.SEX == "F" AND
PATIENT.DATEOFBIRTH == "durationdays (str(._todaysdate)<=7665)" THEN
"Date of last Mammogram: " +LAST_SIGNED_OBS_DATE("MAMMOGRAM")+ ". " else "" endif}
Try this
{IF PATIENT.SEX == "F" AND
PATIENT_AGE() >= "21" THEN
"Date of last Mammogram: " +LAST_SIGNED_OBS_DATE("MAMMOGRAM")+ ". " else "" endif}
That should work.
Ernie
Yes, this works perfect.
Thank you!!!!
I was close, but over thinking it I guess. Maybe because the patient age wasn't listed in the Handout template Insert Symbol list, just the date of birth, so I thought I headed down the duration days road.
Your welcome.