How can I set a visibility to only show if patient is over age of 50?
I know that I can pull the patient.formatted age but I am not sure how to write that statement.
Any thoughts?
Try this:
PATIENT._AGEINMONTHS / 12 >= 50
Brad
enter this as the visibility condition:
patient_age()>50
(patient._ageinmonths > 600)
While in VFE:
1. Click Insert, Visibility Region
2. Copy and paste the statement above into the box. Please note that 600 is the patient's age in months. So your statement, says "If the patient is greater than 600 months old, please display this field."
50 years old x 12 months = 600
Hope this helps 🙂
Sharon- thank you so much! It worked perfect. Now I have another question, I want to add this to a visibility region that already has visibility setup up to display if M only, how do I add the age condition to the sex condition?
{patient._ageinmonths >600
and
patient.sex == "M"
}
in your visibility region