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

Cron zambda for creating sample appointments #234

Merged
merged 9 commits into from
Jul 11, 2024

Conversation

AykhanAhmadli
Copy link
Contributor

No description provided.

@AykhanAhmadli AykhanAhmadli marked this pull request as ready for review June 27, 2024 13:12
@AykhanAhmadli AykhanAhmadli marked this pull request as draft June 27, 2024 13:13
create-sample-appointments:
handler: src/appointment/create-sample-appointments/index.index
events:
- schedule:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need this in this file

};

const generateRandomPatientInfo = async (fhirClient: FhirClient): Promise<CreateAppointmentUCTelemedParams> => {
const randomFirstName = `TestFirstName${uuidv4().slice(0, 5)}`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make this select from a list of names

firstName: randomFirstName,
lastName: randomLastName,
dateOfBirth: randomDateOfBirth,
sex: 'male',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you make this random too please

const fhirClient = createFhirClient(zapehrToken);
const randomPatientInfo = await generateRandomPatientInfo(fhirClient);

input.body = JSON.stringify(randomPatientInfo);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you make a new variable for this please

const randomPatientInfo = await generateRandomPatientInfo(fhirClient);

input.body = JSON.stringify(randomPatientInfo);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you make this make 5 appointments

@AykhanAhmadli AykhanAhmadli marked this pull request as ready for review June 27, 2024 19:19
@saewitz saewitz merged commit 96e00ab into develop Jul 11, 2024
1 of 2 checks passed
@saewitz saewitz mentioned this pull request Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants