Skip to content

Group Support in Patient Selector #30

@blakenan-bellese

Description

@blakenan-bellese

Goal

Allow selection of all patients, ad-hoc individual patients, or a specific FHIR Group resource.

Changes

  • Update the Patient multi-select to support three modes:
    • All patients (current "Select All" behavior)
    • Ad-hoc selection of individual patients (current individual checkbox behavior)
    • Group selection — choose a FHIR Group resource stored on the facility server; passed as an opaque reference to $gather (Group members are not expanded/displayed in the UI)
  • The patient selector should display all patients and all Groups from the facility
  • Maximum 200 patients. If more exist, notify the user of the limit and recommend using a Group for larger populations
  • When a Group is selected, individual patient checkboxes are disabled (mutually exclusive modes)

Key Files

  • frontend/src/components/PatientMultiSelect.js — add Group selection mode
  • frontend/src/store/reducers/data.js — fetch Groups from facility alongside patients
  • Backend may need a new endpoint or modification to $list-facility-patients to return Groups

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions