Use this example to log into PointClickCare, handle TOTP-based two-factor authentication, select a specific facility, navigate to reports, and generate a Detailed Census report in CSV format for a specified date range. This workflow demonstrates how to build a healthcare reporting automation that supports:Documentation Index
Fetch the complete documentation index at: https://docs.optexity.com/llms.txt
Use this file to discover all available pages before exploring further.
- PointClickCare EHR authentication
- Conditional login and user validation
- Multi-factor authentication with TOTP (Time-based One-Time Password)
- Facility selection and validation
- Dynamic report generation with date range filtering
- CSV export for data aggregation
- Resilient error handling for authentication failures
Overview
This automation:- Detects if login is required or if the correct user is already logged in
- Performs username/password authentication only when needed
- Detects and handles TOTP-based two-factor authentication
- Validates facility selection using LLM-based extraction
- Navigates to the Reports section
- Selects the Detailed Census report
- Specifies a custom date range for the report
- Selects CSV as the output format
- Triggers the report download
Minimal example
The core pattern combines:- Conditional login detection
- User validation through extraction
- TOTP 2FA handling
- Facility selection with LLM-based validation
Full automation
What this workflow demonstrates
| Capability | Description |
|---|---|
| Conditional authentication | Logs in only if required or if different user is logged in |
| TOTP 2FA handling | Automatically generates and submits TOTP codes for two-factor authentication |
| Facility validation | Uses LLM-based extraction to confirm correct facility selection |
| Dynamic report generation | Specifies custom date ranges for census reports |
| Format selection | Automatically selects CSV export format |
| Error resilience | Handles password resets, login failures, and 2FA errors |
| Facility search | Searches for and selects specific facilities by name |
| Report download | Triggers and monitors report file downloads |
When to use this
| Goal | Why this helps |
|---|---|
| Automate PointClickCare reporting | Generate census reports programmatically without manual navigation |
| Aggregate healthcare data | Export CSV files for downstream analysis and integration |
| Schedule recurring reports | Run reports on specific date ranges automatically |
| Support multiple facilities | Handle facility selection dynamically across locations |
| Reduce manual errors | Automate authentication and report generation steps |
| Improve operational efficiency | Eliminate repetitive report generation tasks |
| Enable data pipelines | Export data directly for ETL and analytics workflows |