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

Adding an example of syncing Candid tasks #139

Merged
merged 2 commits into from
May 17, 2023
Merged

Adding an example of syncing Candid tasks #139

merged 2 commits into from
May 17, 2023

Conversation

reshmakh
Copy link
Member

No description provided.

);
await medplum.createResourceIfNoneExist(
{
resourceType: 'Task',
Copy link
Member

Choose a reason for hiding this comment

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

This looks good. Might also want to populate created_at -> Task.authoredOn

resourceType: 'Encounter',
identifier: [
{
system: 'https://api-staging.joincandidhealth.com/api/v1/encounters',
Copy link
Member

Choose a reason for hiding this comment

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

In this bot, we're using a mix of system strings https://api-staging.joincandidhealth.com/api/v1 vs. http:https://joincandidhealth.com.

I think it would be better just to stick to the later

@reshmakh reshmakh merged commit c0933b3 into main May 17, 2023
@reshmakh reshmakh deleted the reshma-task-sync branch May 17, 2023 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants