We are currently updating the OP Help Center content for the release of OP 14.19 or OP 19. OP 19 is a member of the certified OP 14 family of products (official version is 14.19.1), which you may see in your software (such as in Help > About) and in the Help Center tabs labeled 14.19. You may also notice that the version number in content and videos may not match the version of your software, and some procedural content may not match the workflow in your software. We appreciate your patience and understanding as we make these enhancements.

SQL: How Many Patients Accessed the Portal (Based on Parent)


This report will show parents who have accessed the portal. The list is displayed based on parent and displays the parent's (NOT PATIENT) first and last name. The patent email address follows the parent name. If one parent has multiple children, the report will show one line for the family based on parent name.

A sample image of this SQL report run in the Database Viewer is shown below:


  • This will list a parent with multiple children ONE TIME. For example, if a parent has three children, the parent will only be listed once.
  • Results include all parents who have ever accessed the portal regardless of date (even if it was once 5 years ago). This includes patients who are no longer active.


To highlight and copy the code below to your clipboard, simply click the Copy button.

select distinct * from ( select first_name, last_name,  email_addr from  register inner join register_contact on register.patno = register_contact.patno inner join contact on contact.id =register_contact.contact_id left outer join web_user on web_user.contact_id = register_contact.contact_id where patno is not null and REGSTRTN_IND = 1)