Based on the scenarios related to logical patients, resource associations, filtering, and business identifiers, there are two approaches available:
-
Custom Operations:
- A custom operation in InterSystems IRIS enables you to design tailored logic that can filter data, manage tasks, and connect observations or conditions dynamically. This ensures that specific business rules are implemented and executed exactly as intended. Attributes like task ID, patient ID, filtering by date, and associations between tasks and resources can be programmed directly within this operation [1][2].
-
Production Listener:
- A listener in production is designed to automate and continuously handle incoming data based on established rules. A listener enables asynchronous processing as data arrives and can be used to create tasks, link resources, and apply filters as per the workflow. This is commonly used for applications needing real-time resource management [1][2].
Both methods have merits depending on the workload and business needs:
- Custom operations allow greater control over conditional application logic and interactions with data, especially for complex requirements.
- Listeners are better for production environments requiring automated and continuous data handling and integration with multiple systems.
Based on your scenario, if many transformations and checks are needed per interaction—custom operations might be preferable. Whereas, for scalable, real-time processing, opting for a listener in production is more suitable.
Sources:
- Log in to post comments