feat(medici): TAN-2598: Added discharge_date parameter to Medici API (hotfix 2.45)#9262
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a new Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a discharge_date parameter to the Medici API, allowing for more refined filtering of encounters. The changes include updates to the route handler to process this new parameter and apply it to the database query, along with comprehensive new test cases to validate the filtering logic with various date prefixes. The implementation is solid, but I have one suggestion to improve the readability and maintainability of the SQL query.
| discharge_date_le: null, | ||
| discharge_date_eq: null, | ||
| }; | ||
| const dischargeDateParams = [].concat(dischargeDateParam ?? []).filter(Boolean); |
There was a problem hiding this comment.
I dont think this would ever have anything that would be falsey so could skip the filter 🤔
There was a problem hiding this comment.
Yeah does seem a bit weird, AI added it, I'll remove it
dannash100
left a comment
There was a problem hiding this comment.
Looks good, just a small comment
d166a4f to
4260e88
Compare
4260e88 to
a5d333f
Compare
|
Android builds 📱
|
🍹
|
a5d333f to
7a14513
Compare
🍹
|
…(hotfix 2.45) (#9262) * feat(medici): TAN-2598: Added discharge_date parameter to Medici API * fix(migrations): TAMOC-398: Fixed MediciReport test * feat(medici): TAN-2598: Added test for using local timezone * tweak(cd): use tailscale OIDC (#9039) * feat(medici): TAN-2598: Removed unneeded filter --------- Co-authored-by: Rohan Port <rohan@bes.au> Co-authored-by: Félix Saparelli <felix@bes.au>
…(hotfix 2.45) (#9262) * feat(medici): TAN-2598: Added discharge_date parameter to Medici API * fix(migrations): TAMOC-398: Fixed MediciReport test * feat(medici): TAN-2598: Added test for using local timezone * tweak(cd): use tailscale OIDC (#9039) * feat(medici): TAN-2598: Removed unneeded filter --------- Co-authored-by: Rohan Port <rohan@bes.au> Co-authored-by: Félix Saparelli <felix@bes.au>
…(hotfix 2.45) (#9262) * feat(medici): TAN-2598: Added discharge_date parameter to Medici API * fix(migrations): TAMOC-398: Fixed MediciReport test * feat(medici): TAN-2598: Added test for using local timezone * tweak(cd): use tailscale OIDC (#9039) * feat(medici): TAN-2598: Removed unneeded filter --------- Co-authored-by: Rohan Port <rohan@bes.au> Co-authored-by: Félix Saparelli <felix@bes.au>
…(hotfix 2.45) (#9262) * feat(medici): TAN-2598: Added discharge_date parameter to Medici API * fix(migrations): TAMOC-398: Fixed MediciReport test * feat(medici): TAN-2598: Added test for using local timezone * tweak(cd): use tailscale OIDC (#9039) * feat(medici): TAN-2598: Removed unneeded filter --------- Co-authored-by: Rohan Port <rohan@bes.au> Co-authored-by: Félix Saparelli <felix@bes.au>
…(hotfix 2.45) (#9262) * feat(medici): TAN-2598: Added discharge_date parameter to Medici API * fix(migrations): TAMOC-398: Fixed MediciReport test * feat(medici): TAN-2598: Added test for using local timezone * tweak(cd): use tailscale OIDC (#9039) * feat(medici): TAN-2598: Removed unneeded filter --------- Co-authored-by: Rohan Port <rohan@bes.au> Co-authored-by: Félix Saparelli <felix@bes.au>
…(hotfix 2.45) (#9262) * feat(medici): TAN-2598: Added discharge_date parameter to Medici API * fix(migrations): TAMOC-398: Fixed MediciReport test * feat(medici): TAN-2598: Added test for using local timezone * tweak(cd): use tailscale OIDC (#9039) * feat(medici): TAN-2598: Removed unneeded filter --------- Co-authored-by: Rohan Port <rohan@bes.au> Co-authored-by: Félix Saparelli <felix@bes.au>
…(hotfix 2.45) (#9262) * feat(medici): TAN-2598: Added discharge_date parameter to Medici API * fix(migrations): TAMOC-398: Fixed MediciReport test * feat(medici): TAN-2598: Added test for using local timezone * tweak(cd): use tailscale OIDC (#9039) * feat(medici): TAN-2598: Removed unneeded filter --------- Co-authored-by: Rohan Port <rohan@bes.au> Co-authored-by: Félix Saparelli <felix@bes.au>
Changes
Added this parameter so that Medici can avoid fetching historical encounters when common reference data get updated.
Deploys
Tests
Review Hero
Remember to...