Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pbugni opened this issue Aug 29, 2022 · 3 comments
Open
Assignees

Comments

@pbugni
Copy link
Contributor

pbugni commented Aug 29, 2022

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.

@lober
Copy link
Member

lober commented Aug 31, 2022

https://app.diagrams.net/#G1gQ8HXK9NOBJcTraXX0S_NXpAS2hMm7ID

https://drive.google.com/file/d/1gQ8HXK9NOBJcTraXX0S_NXpAS2hMm7ID/view?usp=sharing

Drawing for reconfiguring screen items (not sure which of the above will work)

@mcjustin mcjustin changed the title Configuration for new patient action Configuration for "new patient" action Aug 31, 2022
@mcjustin
Copy link
Member

@pbugni as we discussed today, some clients should be conditionally available in the patient list. For example, the longitudinal QuestionnaireResponse report client (repo coming soon from @achen2401 ) should only be linked from fEMR if there is at least one QR for the patient.

@pbugni pbugni changed the title Configuration for "new patient" action Expand SoF Client list configuration to include logic check for availability Oct 5, 2022
@pbugni
Copy link
Contributor Author

pbugni commented Oct 5, 2022

Note, this same logic check will probably be desired for more menu options, which should most likely also become SoF client launch URLs...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants