-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Extend the SoF client list configuration to include optional logic check - a bit of {fhirpath, CQL, TBD} dynamically run per patient, which evaluates {true, false} for display of the respective SoF client launch button, on each respective patient.
We have configuration to plug in multiple SoF clients. But not all patients should expose all configured SoF clients. We need a mechanism to determine if respective SoF client launch buttons should be enabled/visible on a per client basis.
For example, ISACC should include:
- [Enrollment] only if the FHIR query
CarePlan?category=isacc-message-plan&subject=Patient/{patient.id}returns zero results - [Messaging] only if the FHIR query
CarePlan?category=isacc-message-plan&subject=Patient/{patient.id}&status=activereturns positive results
Or for DCW:
- [Longitudinal] only if FHIR query
QuestionnaireResponse?subject=Patient/{patient.id}returns positive results
This logic check should also apply to the buttons available or default action when filling in the search boxes.
Example: ISACC new patient should go directly into the enrollment client, rather than the current flow that creates a patient and then requires a second user action to click the enroll.