Skip to content

Expand SoF Client list configuration to include logic check for availability #142

@pbugni

Description

@pbugni

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=active returns 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions