uwcirg / cosri-patientsearch

Thin client and backend to support patient search prior to SoF launch
Apache License 2.0
1 stars 0 forks source link

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

Open pbugni opened 2 years ago

pbugni commented 2 years ago

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:

Or for DCW:

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 commented 2 years ago

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 commented 1 year ago

@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 commented 1 year ago

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