How to validate a date relative to the encounter date
- Find the date element for the observation
- Drag the observation's date field onto the form
- Right-click on the date field and select **Data Validation**
- In the data validation dialog, select your criteria. In this example, we will enforce that the date must not occur after the encounter date.
- Enter an appropriate tip and message for the user. The tip will show when the mouse hovers over the error and the message will show when additional information is needed. You have the option to **Show dialog messages immediately when user enters invalid data**; however, this disrupts workflow.
- Previewing the form shows that an error message will be presented when the date entered for the observation is greater (later) than the date of the encounter:






