Skip to content

Bulk edit support for clinical observations: category-dependent Observation/Score editor#1145

Open
labkey-martyp wants to merge 2 commits into
release26.3-SNAPSHOTfrom
26.3_fb_bulk_add_obs
Open

Bulk edit support for clinical observations: category-dependent Observation/Score editor#1145
labkey-martyp wants to merge 2 commits into
release26.3-SNAPSHOTfrom
26.3_fb_bulk_add_obs

Conversation

@labkey-martyp

@labkey-martyp labkey-martyp commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Rationale

The bulk edit dialog for the clinical observations grid offered only a plain text field for Observation/Score regardless of the selected Category, while the grid's cell editor adapts that field to the category's configured editor. This makes the bulk edit dialog offer the same category-dependent editor as the grid, so the data type and options match.

Related Pull Requests

Changes

  • New EHR.plugin.ClinicalObservationsBulkEdit plugin that rebuilds the Observation/Score field from the selected category's editorconfig, preserving the field's enable/disable toggle state and re-registering it with the databind plugin.
  • EHR.panel.BulkEditPanel accepts panel plugins contributed via formConfig.bulkEditPlugins, keeping the panel itself free of observation-specific logic; the label click-to-toggle behavior is extracted into a reusable addLabelToggle method.
  • EHR.grid.ClinicalObservationGridPanel registers the new plugin through its formConfig.
  • The shared observation types store now tracks hasLoadedOnce so consumers can distinguish a pending initial load from an empty result.

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

Successfully merging this pull request may close these issues.

1 participant