-
Notifications
You must be signed in to change notification settings - Fork 315
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
Create a task demo app #3555
Create a task demo app #3555
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 3 Ignored Deployments
|
Apply Sweep Rules to your PR?
|
examples/medplum-task-example-app/bots/src/create-review-report-task.ts
Outdated
Show resolved
Hide resolved
examples/medplum-task-example-app/bots/src/create-review-report-task.ts
Outdated
Show resolved
Hide resolved
examples/medplum-task-example-app/bots/src/create-review-report-task.ts
Outdated
Show resolved
Hide resolved
examples/medplum-task-example-app/bots/src/create-review-report-task.test.ts
Outdated
Show resolved
Hide resolved
examples/medplum-task-example-app/bots/src/create-respond-to-message-task.ts
Outdated
Show resolved
Hide resolved
examples/medplum-task-example-app/bots/src/create-respond-to-message-task.ts
Outdated
Show resolved
Hide resolved
examples/medplum-task-example-app/bots/src/create-respond-to-message-task.ts
Outdated
Show resolved
Hide resolved
examples/medplum-task-example-app/bots/src/create-respond-to-message-task.ts
Outdated
Show resolved
Hide resolved
examples/medplum-task-example-app/bots/src/create-respond-to-message-task.ts
Outdated
Show resolved
Hide resolved
examples/medplum-task-example-app/app/src/components/CreateTaskModal.tsx
Outdated
Show resolved
Hide resolved
examples/medplum-task-example-app/app/src/pages/PatientPage.tsx
Outdated
Show resolved
Hide resolved
examples/medplum-task-example-app/app/src/pages/ResourcePage.tsx
Outdated
Show resolved
Hide resolved
examples/medplum-task-example-app/bots/src/communication-data.ts
Outdated
Show resolved
Hide resolved
examples/medplum-task-example-app/app/src/components/task-actions/AddDueDate.tsx
Outdated
Show resolved
Hide resolved
examples/medplum-task-example-app/app/src/components/task-actions/ClaimTask.tsx
Outdated
Show resolved
Hide resolved
examples/medplum-task-example-app/app/src/components/task-actions/UpdateBusinessStatus.tsx
Outdated
Show resolved
Hide resolved
examples/medplum-task-example-app/app/src/components/PatientHistory.tsx
Outdated
Show resolved
Hide resolved
examples/medplum-task-example-app/bots/src/create-respond-to-message-task.test.ts
Outdated
Show resolved
Hide resolved
examples/medplum-task-example-app/data/respond-to-message-data.json
Outdated
Show resolved
Hide resolved
examples/medplum-task-example-app/app/src/components/task-actions/AddDueDate.tsx
Outdated
Show resolved
Hide resolved
examples/medplum-task-example-app/app/src/components/task-actions/AssignRole.tsx
Outdated
Show resolved
Hide resolved
247c826
to
2bd9b78
Compare
✅ |
examples/medplum-task-demo/src/components/patient-chart/Allergies.tsx
Outdated
Show resolved
Hide resolved
examples/medplum-task-demo/src/bots/core/src/create-respond-to-message-task.test.ts
Outdated
Show resolved
Hide resolved
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.
Ready for review
examples/medplum-demo-bots/src/health-gorilla/receive-from-health-gorilla.ts
Outdated
Show resolved
Hide resolved
7fa5fb1
to
9b716a0
Compare
Create and deploy bots and create message data Edit bots based on feedback Make edits based on review Update clinical profile and break out role queues for specific roles Update file structure and make changes based on review Update search pages for task specific tabs Create page and route to upload data and remove task specific search page Remove Error Boundary to reduce flicker Update display of Task title Delete unused queue pages Add task actions back to task page Update folder structure with data subdirs and get field and filters working on search controls Update business status value set and add dependency to patient chart Update readme Reverting root package.json changes Fixing package-lock.json Fix prettier Upgrade Task Demo to use `RouteProvider` Simplify role loading to prevent links flickering Clean up folder structure Implement Upload pages Update tab handling logic for search page Minor copy change Use - Use DocumentReference instead of Media (#3698) - Attach PDF to DiagnosticReport.presentedForm Support a Linux Agent artifact on the publish GitHub Actions. Fixes 3699 (#3700) * Rename Agent installer script to reference win64 * Add linux agent artifact and publishing workflow Update copy and add practitioner roles value set Remove unnecessary current tab state Revert "Support a Linux Agent artifact on the publish GitHub Actions. Fixes 3699 (#3700)" This reverts commit 165fabb. Revert "- Use DocumentReference instead of Media (#3698)" This reverts commit 1a8c561. Remove unused RoleQueue page Fixing package-lock?
9b716a0
to
d0e013e
Compare
examples/medplum-task-demo/src/bots/example/communication-data.ts
Outdated
Show resolved
Hide resolved
|
||
const tab = window.location.pathname.split('/').pop(); | ||
const currentTab = tab && tabs.map((t) => t.toLowerCase()).includes(tab) ? tab : tabs[0].toLowerCase(); | ||
console.log('Current tab', tab); |
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.
Delete this
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.
Overall lgtm, thanks @ksmith94 👍
Nothing major, just some topics that I think we should align on for example apps, as we want these to exemplify Medplum best practices:
- I'm tempted to remove the
dependabot.yml
files from all examples to reduce noise - We should align on ESBuild vs
tsc
for bots without imports, again to reduce noise - There are a bunch of checks for
if (!task.id)
- I assume those were mostly done to satisfy the TypeScript compiler, when you can safely assume thattask.id
is populated - Let's remove all debugging
console.log()
calls
General comments, out of scope for this PR:
- Quite a bit of duplicate code for
notifications.show()
- we have this same problem in the mainpackages/app
. I wonder if we should align on 2-3 standard notifications inpackages/react
for these common cases to reduce boilerplate
Again, overall, really great work. Thanks @ksmith94
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.
I don't think we need ESBuild here, vs just using tsc
? Let's discuss offline w/ @rahul1
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.
I'm tempted to remove the dependabot.yml files from all examples to reduce noise
I'm fine either way. Since we are syncing examples to external repos, I wasn't sure if it was required for that case. But of the root dependabot is handling this, we should be ok
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.
There are a bunch of checks for if (!task.id) - I assume those were mostly done to satisfy the TypeScript compiler, when you can safely assume that task.id is populated
Is the recommended solution casting task.id as string
?
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.
Is the recommended solution casting task.id as string?
Yes I think that should work!
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.
Thanks @codyebberson! I've addressed all the comments and changed (!task.id)
checks to cast them as task.id as string
in all the instances it uses them. I also updated all the modals to use useDisclosure
.
examples/medplum-task-demo/src/components/actions/AddDueDate.tsx
Outdated
Show resolved
Hide resolved
examples/medplum-task-demo/src/components/actions/AssignRole.tsx
Outdated
Show resolved
Hide resolved
examples/medplum-task-demo/src/components/actions/UpdateBusinessStatus.tsx
Outdated
Show resolved
Hide resolved
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.
Fix build errors, then approved!
|
Fixes #3753 - root constraint validation (#3779) Fixes #3614 - configurable agent log level (#3781) Fixed validateDOMNesting warning (#3780) Fixes #3775 - AsyncAutocomplete call onChange on remove (#3777) Dependency upgrades (#3774) Remove notice to contact `info@medplum.com` to enable open patient registration (#3776) Move logger from server to core (#3773) Create a task demo app (#3555) Add docs for setting up CORS when self-hosting (#3752) Export NotesDisplay from @medplum/react (#3759) Fixes #3751 - restore AsyncAutocomplete props (#3758) Add CodeSystem validate-code operation (#3705) Update provider directory docs to administration section (#3747) Avoid error on SearchPage while schema is being requested (#3757) Fixes #3755 - allow embedding PDFs on external domains (#3756) Fixes #3653 - Agent handle DICOM C-STORE (#3736) ci(madge): add `madge` job for PRs against `medplum/test-actions` (#3745) Handle websocket max payload exceeded (#3750) Implement CodeSystem lookup operation (#3702) Require super admin for CodeSystem import (#3739) Add OTel documentation (#3738) Better error on unique constraint violation (#3743) Dependency upgrades (#3744) feat(examples): add live chat example (#3713) Move response utils to separate file (#3742) Fix wrapping CodeSystem import handler (#3741) Add lookup table to index CodeSystem codings (#3731)
Fixes #3753 - root constraint validation (#3779) Fixes #3614 - configurable agent log level (#3781) Fixed validateDOMNesting warning (#3780) Fixes #3775 - AsyncAutocomplete call onChange on remove (#3777) Dependency upgrades (#3774) Remove notice to contact `info@medplum.com` to enable open patient registration (#3776) Move logger from server to core (#3773) Create a task demo app (#3555) Add docs for setting up CORS when self-hosting (#3752) Export NotesDisplay from @medplum/react (#3759) Fixes #3751 - restore AsyncAutocomplete props (#3758) Add CodeSystem validate-code operation (#3705) Update provider directory docs to administration section (#3747) Avoid error on SearchPage while schema is being requested (#3757) Fixes #3755 - allow embedding PDFs on external domains (#3756) Fixes #3653 - Agent handle DICOM C-STORE (#3736) ci(madge): add `madge` job for PRs against `medplum/test-actions` (#3745) Handle websocket max payload exceeded (#3750) Implement CodeSystem lookup operation (#3702) Require super admin for CodeSystem import (#3739) Add OTel documentation (#3738) Better error on unique constraint violation (#3743) Dependency upgrades (#3744) feat(examples): add live chat example (#3713) Move response utils to separate file (#3742) Fix wrapping CodeSystem import handler (#3741) Add lookup table to index CodeSystem codings (#3731)
This will create a demo app based around the task workflow, including creating, editing, and deleting tasks, as well as bots based around common task-related workflows.