(feat) add List tab alongside search for drug selection #2943
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Requirements
Summary
This PR introduces a new way to browse drugs by category while preserving the existing search‑based workflow.
1. Drug Categories via Concept Sets

Drugs can be grouped into configurable categories using Concept Sets, which are managed via Legacy Admin. These Concept Sets define how drugs are grouped and can be adapted to local needs (for example, by program, formulary, or service). Each category corresponds to a Concept Set containing the relevant drug concepts.
2. List Tab for Browsing Drugs
The drug selection UI has been enhanced with a new List tab, available alongside the existing Search tab (which remains the default). The List tab allows users to browse drugs by selecting a category, making it easier to discover medications without knowing their exact names.
https://github.com/user-attachments/assets/c53b74e9-d7e5-4bc6-9457-451feba26fc5
3. Configuration via Implementer Tools
Implementers can control which categories appear in the List tab by configuring Concept Set UUIDs under the
drugCategoryConceptSetssetting in@openmrs/esm-patient-medications-appvia Implementer Tools. Only the configured Concept Sets are exposed to users.https://github.com/user-attachments/assets/67fea1f8-930f-45e2-8439-ef2b64737015
UI Workflow
Preconditions: Concept Sets Predefined Meds 1 and Predefined Meds 2 are configured and available.


Kazam_screencast_00026.mp4