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

BCDA-7331: Update cURL commands to use V2 and other recommended options #185

Merged
merged 4 commits into from
Sep 25, 2023

Conversation

greg-pf
Copy link
Contributor

@greg-pf greg-pf commented Sep 21, 2023

🎫 Ticket

https://jira.cms.gov/browse/BCDA-7331

🛠 Changes

  • update cURL commands to use BCDA V2 and /Group/all in our general guidance
  • minor updates to content supporting the sample cURL commands
  • improved formatting for a few cURL commands
  • other small corrections unrelated to cURL commands

ℹ️ Context for reviewers

Some changes to align with recommended use of the API. Encourage use of BCDA V2 over V1 and the /Group endpoint over the /Patient endpoint. There are some other very minor changes to content to align with the updated code samples, but a more comprehensive review of the guidance is planned in BCDA-7330

✅ Acceptance Validation

Executed the new sandbox curl commands locally and inspected static site visually on stage.bcda.cms.gov

🔒 Security Implications

  • This PR adds a new software dependency or dependencies.
  • This PR modifies or invalidates one or more of our security controls.
  • This PR stores or transmits data that was not stored or transmitted before.
  • This PR requires additional review of its security implications for other reasons.

If any security implications apply, add Jason Ashbaugh (GitHub username: StewGoin) as a reviewer and do not merge this PR without his approval.

Comment on lines 17 to 36
<tr>
<th>Sample cURL Command in BCDA V1:</th>
<th>Sample cURL Command in BCDA V2:</th>
<th>Sample cURL Command in BCDA V1:</th>
</tr>
<tr>
<td>
<code>curl -X GET 'https://api.bcda.cms.gov/api/v1/Patient/$export' \
-H "accept: application/fhir+json" \
-H "Prefer: respond-async" \
-H "Authorization: Bearer {access_token}"</code>
<pre><code>curl -X GET 'https://api.bcda.cms.gov/api/v2/Group/all/$export' \
-H "accept: application/fhir+json" \
-H "Prefer: respond-async" \
-H "Authorization: Bearer {access_token}"
-v</code></pre>
</td>
<td>
<code>curl -X GET 'https://api.bcda.cms.gov/api/v2/Patient/$export' \
-H "accept: application/fhir+json" \
-H "Prefer: respond-async" \
-H "Authorization: Bearer {access_token}"</code>
</td>
<pre><code>curl -X GET 'https://api.bcda.cms.gov/api/v1/Group/all/$export' \
-H "accept: application/fhir+json" \
-H "Prefer: respond-async" \
-H "Authorization: Bearer {access_token}"
-v</code></pre>
</td>
</tr>
Copy link
Contributor Author

@greg-pf greg-pf Sep 21, 2023

Choose a reason for hiding this comment

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

There are a couple things changed here that might get lost in the squashed commits

  1. Put V2 commands in the left column, and V1 in the right
  2. Update commands to use /Group/all instead of /Patient
  3. Format the commands so they are easier to read

Old:
image

New:
image

@greg-pf greg-pf marked this pull request as ready for review September 21, 2023 19:29
Copy link
Contributor

@karinamzalez karinamzalez left a comment

Choose a reason for hiding this comment

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

lgtm!

@greg-pf greg-pf merged commit 7795a67 into master Sep 25, 2023
1 check passed
@greg-pf greg-pf deleted the BCDA-7331 branch September 25, 2023 16:56
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.

None yet

2 participants