-
Notifications
You must be signed in to change notification settings - Fork 175
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
Conversation
create-sample-appointments: | ||
handler: src/appointment/create-sample-appointments/index.index | ||
events: | ||
- schedule: |
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.
we don't need this in this file
}; | ||
|
||
const generateRandomPatientInfo = async (fhirClient: FhirClient): Promise<CreateAppointmentUCTelemedParams> => { | ||
const randomFirstName = `TestFirstName${uuidv4().slice(0, 5)}`; |
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.
Can you make this select from a list of names
firstName: randomFirstName, | ||
lastName: randomLastName, | ||
dateOfBirth: randomDateOfBirth, | ||
sex: 'male', |
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.
can you make this random too please
const fhirClient = createFhirClient(zapehrToken); | ||
const randomPatientInfo = await generateRandomPatientInfo(fhirClient); | ||
|
||
input.body = JSON.stringify(randomPatientInfo); |
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.
can you make a new variable for this please
const randomPatientInfo = await generateRandomPatientInfo(fhirClient); | ||
|
||
input.body = JSON.stringify(randomPatientInfo); | ||
|
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.
can you make this make 5 appointments
No description provided.