Skip to content

Initial Fixes to Registry View of Values and Activities Inventory - #380

Merged
jayfo merged 9 commits into
uwscope:developfrom
anantmittal:registry-fixes
Dec 22, 2022
Merged

Initial Fixes to Registry View of Values and Activities Inventory#380
jayfo merged 9 commits into
uwscope:developfrom
anantmittal:registry-fixes

Conversation

@anantmittal

Copy link
Copy Markdown
Collaborator

No description provided.

@anantmittal
anantmittal requested a review from jayfo December 16, 2022 11:41
@anantmittal
anantmittal marked this pull request as ready for review December 16, 2022 20:57
@anantmittal

Copy link
Copy Markdown
Collaborator Author

@jayfo Ready for review.

Comment thread web_registry/src/stores/RootStore.ts Outdated
Comment thread web_registry/src/stores/RootStore.ts Outdated
lastUpdatedDateTime,
'MM/dd/yyyy',
)}`,
// NOTE: Why did we remove lastUpdatedDateTime from values-inventory.json?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The field got removed from the values inventory document because keeping it there would have required maintaining it from anywhere that was modifying value or activity documents. We can instead calculate it.

Based on some email I traded w/ Jesse et al in September, we'll calculate this as:

  • Obtain all activity documents
  • Filter those which are not associated with any value
  • The most recent time

I think we should then also change the value of patient_values_inventory_activity_date_header to be Last updated on.

@jayfo jayfo Dec 22, 2022

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Forgot to say, this seems like something we could calculate in the store.

@anantmittal

Copy link
Copy Markdown
Collaborator Author

@jayfo Pushed the changes you suggested.

@anantmittal

Copy link
Copy Markdown
Collaborator Author

@jayfo Ready again.

@jayfo jayfo changed the title Registry fixes Initial Fixes to Registry View of Values and Activities Inventory Dec 22, 2022
@jayfo
jayfo merged commit 8dc8618 into uwscope:develop Dec 22, 2022
@jayfo jayfo added this to the v0.7.0 milestone Jun 21, 2023
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