Skip to content

Add shared treatment link display column factory - #1175

Open
labkey-martyp wants to merge 1 commit into
release26.7-SNAPSHOTfrom
26.7_fb_centralize_treatment_link_factory
Open

Add shared treatment link display column factory#1175
labkey-martyp wants to merge 1 commit into
release26.7-SNAPSHOTfrom
26.7_fb_centralize_treatment_link_factory

Conversation

@labkey-martyp

Copy link
Copy Markdown
Contributor

Rationale

Give the EHR centers one implementation of the treatment order links instead of a copy per center. The renderer was duplicated across three centers, so a recent fix to how the scheduled date is passed had to be made and reviewed once in each. The variation between centers turned out to be small and entirely vocabulary — which data entry form each treatment category routes to, what the link says, and where it returns to — so it is now supplied as configuration.

Related Pull Requests

None.

Changes

  • Adds a shared display column factory for the treatment order links, with each center's form type vocabulary supplied as configuration.
  • Separates links rendered from a scheduled slot from those rendered from the order itself, which is the distinction the recent scheduled-date fix depends on.
  • Additive only. Nothing in this repo changes behavior until the center modules adopt it.

Each of jhu_ehr, nirc_ehr, and nbri_ehr carried a near-identical copy of the Record Treatment link renderer; the per-center form type vocabulary is now supplied as configuration.
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