Skip to content
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

Write cron zambda to create sample patients every day #188

Closed
Tracked by #168
saewitz opened this issue Jun 12, 2024 · 2 comments
Closed
Tracked by #168

Write cron zambda to create sample patients every day #188

saewitz opened this issue Jun 12, 2024 · 2 comments
Assignees
Labels

Comments

@saewitz
Copy link
Contributor

saewitz commented Jun 12, 2024

Our demo website should have formatted data. To do this we can write a zambda that every day will create appointments for patients. To start with we can:

  • Call the create-appointment zambda with a test name that can be randomly generated
  • Some of the example appointments should fill out paperwork. We don't need to upload files for now.
  • The start time for prebooks should be random
  • Create appointments with different types
  • It's ok if they all share an account, but the problem is that we need to create appointments with a user account and the authorization for a user will stop working after ~1 day. To work around this, we can use a website that receives text messages and write code that will log in the user as well. We have some sample code for other projects that do this.
  • Since this is separate from the ottehr code, please put it in a new package.
@saewitz saewitz added the demo label Jun 12, 2024
@saewitz saewitz added this to the A milestone Jun 12, 2024
@saewitz saewitz modified the milestones: Anacostia, Ballston Jun 21, 2024
@saewitz saewitz modified the milestones: Ballston, C, Chattahoochee, D Jul 1, 2024
@saewitz saewitz modified the milestones: D, Chattahoochee Jul 8, 2024
@saewitz saewitz self-assigned this Jul 11, 2024
@saewitz saewitz modified the milestones: Chattahoochee, D Jul 15, 2024
@GiladSchneider GiladSchneider modified the milestones: Dnipro, E, Euphrates, f Jul 22, 2024
@GiladSchneider GiladSchneider modified the milestones: Fiumicello, g Jul 31, 2024
@GiladSchneider GiladSchneider modified the milestones: Green River, h Aug 12, 2024
@AykhanAhmadli
Copy link
Contributor

The issue was initially completed by implementing a zambda function that successfully created sample appointments for the demo environment. However, the function relied on a hardcoded token for authentication, which was a temporary solution.

To address the need for a more secure and sustainable authentication method, work on this task was paused. The new plan is to use a button from the provider chart to populate the necessary data, replacing the previous approach (see #316)

@GiladSchneider
Copy link
Contributor

Closing because #316 accomplishes the same ends

@GiladSchneider GiladSchneider removed this from the h milestone Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Ready For Release
Development

No branches or pull requests

3 participants