-
Notifications
You must be signed in to change notification settings - Fork 0
Migrate to the new Aidbox client #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Aleksandr Penskoi <[email protected]>
Co-authored-by: Aleksandr Penskoi <[email protected]>
Co-authored-by: Aleksandr Penskoi <[email protected]>
Co-authored-by: Aleksandr Penskoi <[email protected]>
Co-authored-by: Aleksandr Penskoi <[email protected]>
e59d583 to
2ebda89
Compare
Co-authored-by: Aleksandr Penskoi <[email protected]>
Co-authored-by: Aleksandr Penskoi <[email protected]>
Co-authored-by: Aleksandr Penskoi <[email protected]>
Co-authored-by: Aleksandr Penskoi <[email protected]>
|
You have run out of free Bugbot PR reviews for this billing cycle. This will reset on December 26. To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial. |
|
changed most of client.request calls to the respective fhir method |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is being reviewed by Cursor Bugbot
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
This PR migrates internal communication logic into a separate library and updates all existing usages to it.
Note
Migrates data access to
@health-samurai/aidbox-clientand introduces a sharedAidboxClientProviderwith typed FHIR models.src/api/auth.tsand related modules with client methods (userinfo,logout,read,create,update,delete,searchType,rawRequest,historyInstance)src/api/utils.tsxwithOperationOutcomeparsing and toasts; updates mutations to useonMutationErrorResourceBrowser,ResourceEditor(incl. history/diff),ViewDefinition(editor, run/materialize/SQL/schema), and RESTcollectionsto use the new client and strong typesscripts/generate-types.tsusing@atomic-ehr/codegento generate FHIR R5 types undersrc/fhir-types; wires agenerate-typesnpm script@health-samurai/aidbox-client,@atomic-ehr/codegen, etc.), bumps pnpm, and minor tooling config updates (biome.json,.gitignore)Written by Cursor Bugbot for commit 61f731e. This will update automatically on new commits. Configure here.