Skip to content

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

Merged
labkey-martyp merged 2 commits into
release26.3-SNAPSHOTfrom
26.3_fb_bulk_add_obs
Jun 16, 2026
Merged

Bulk edit support for clinical observations: category-dependent Observation/Score editor#1145
labkey-martyp merged 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.

@labkey-martyp labkey-martyp merged commit c3a4705 into release26.3-SNAPSHOT Jun 16, 2026
7 of 9 checks passed
@labkey-martyp labkey-martyp deleted the 26.3_fb_bulk_add_obs branch June 16, 2026 15:01
labkey-martyp added a commit to LabKey/nircEHRModules that referenced this pull request Jun 16, 2026
…/Score editor (#706)

## Rationale

Adds Selenium coverage for the new category-dependent Observation/Score
editor in the clinical observations bulk edit dialog, introduced in the
related ehrModules PR.

## Related Pull Requests

- LabKey/ehrModules#1145

## Changes

- New `testObservationBulkEdit` in `NIRC_EHRTest` that bulk-edits
observation rows and verifies the Observation/Score editor is rebuilt
per the selected Category (lookup combo for Appetite, free text for
Mass), stays enabled across category changes, clears stale values, and
applies the submitted values to every selected row.
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.

2 participants