Skip to content

Conversation

@labkey-martyp
Copy link
Contributor

Rationale

If a section in the surgery form contains a caseid column, set that column value when selecting/creating a case. Assumes forms have one case per id. Can override caseUpdateStores if a different set of stores to be updated.

Related Pull Requests

  • TBD

Changes

  • Loop through stores and find records for the animal in the case, updating caseid on the records if the column exists.

@labkey-martyp labkey-martyp requested a review from Ohsudev December 8, 2024 19:02
@github-actions
Copy link

github-actions bot commented Dec 8, 2024

ERROR: A pull request from 23.11_fb_SurgicalRoundsObservation is expected to target release23.11-SNAPSHOT, not develop

@labkey-martyp labkey-martyp changed the base branch from develop to release23.11-SNAPSHOT December 8, 2024 19:03
@labkey-martyp labkey-martyp marked this pull request as ready for review December 18, 2024 19:14
Ext4.create('EHR.window.OpenSurgeryCasesWindow', {
sourceStore: clientStore
sourceStore: clientStore,
caseUpdateStores: panel.storeCollection.clientStores.items,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is picky, but wouldnt it be a little more normal to make a pointer to the StoreCollection, rather than 'items', which is more like an internal field of that class? Either accomplishes your goal, obviously.

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.

4 participants