Repository navigation
Add consultation order creation endpoints for prescriptions and lab orders - #734
Merged
enliven17 merged 2 commits intoOct 25, 2026
Merged
Conversation
…unks as mimir-stellar#732) Upstream main does not pass its own CI, so this PR's checks cannot go green on their own. Bring in the main-repair hunks from mimir-stellar#732 (feat/command-registry-327), line-for-line identical so the two PRs merge cleanly, without the command-registry feature itself (src/commands/types.ts, index/registry rewrite, command-registry tests and docs are NOT included): - tests: build token-shaped fixtures from parts so `npm run scan:secrets` passes (address-activity, audit-check-cli, cycle-summary, health-auth, safe-error-message) - src/bot.ts: drop the duplicated pre-registry handler table and helpers left by earlier merges (39 syntax errors); taken from mimir-stellar#732 except that dispatch() keeps main's CommandModule field names (operatorOnly/ chatAllowlist/handler); the rate-limiter deps mimir-stellar#732 adds to CommandDeps are declared via a module augmentation in src/commands/rate-limit.ts - config/notifier/i18n/amount-display/rpc-compare/generic-decode and the rest of mimir-stellar#732's main-repair fixes and test realignments that typecheck, build, `npm test` and the e2e smoke need
Contributor
Author
|
kindly review and merge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The order models exist, but there is currently no way for a doctor to create an order from a consultation. This is a missing clinician-facing flow: issuing a prescription or lab order is one of the concrete outcomes of a consultation, alongside a referral.
This change adds the doctor-facing entry point needed to create orders from an active or completed consultation.
What to do
Files likely involved
Key constraints
Definition of done
Validation
closes feat(bot): render squad resolution with pool totals and payout ratio #334