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

FI-3166: Step 1 solution upgrade #3

Merged
merged 6 commits into from
Oct 23, 2024

Conversation

elsaperelli
Copy link
Contributor

Summary

This PR updates the Inferno template version in step-1-solution branch. It includes the solution to step-1 of the tutorial.

Testing

Run locally with Docker:

  • Run ./run.sh in this repository
  • Navigate to http://localhost
  • Run test kit with the following inputs:
    • FHIR Base Server URL: https://inferno.healthit.gov/reference-server/r4
    • access_token: SAMPLE_TOKEN
    • Patient ID: 85
  • You should get the following results:
image

Also run with Ruby.

@elsaperelli elsaperelli force-pushed the step-1-solution-upgrade branch from ed2ae26 to d98ac7a Compare October 7, 2024 15:51
@elsaperelli elsaperelli changed the title Step 1 solution upgrade FI-3166: Step 1 solution upgrade Oct 7, 2024
@emichaud998
Copy link

Screenshot 2024-10-08 at 12 46 30 PM

Access token input is showing up twice

Comment on lines +15 to +19
input :credentials,
title: 'OAuth Credentials',
type: :oauth_credentials,
optional: true

Copy link

@emichaud998 emichaud998 Oct 8, 2024

Choose a reason for hiding this comment

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

I think we want to remove this credentials input and just have the access_token input instead, since the tutorial is explaining how to add the access token input. Another option is to update the tutorial to add a oauth input rather than the bearer token input, but that probably is not necessary

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Decided to leave for now and create separate task!

# All FHIR requests in this suite will use this FHIR client
fhir_client do
url :url
oauth_credentials :credentials
Copy link

@emichaud998 emichaud998 Oct 8, 2024

Choose a reason for hiding this comment

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

You would need to remove this if we got rid of the oauth_credentials input

Copy link

@emichaud998 emichaud998 left a comment

Choose a reason for hiding this comment

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

Looks good!

Copy link

@emichaud998 emichaud998 left a comment

Choose a reason for hiding this comment

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

Oh wait just noticed the spec tests are failing, they are all skipping. They need to pass in the access token input

@@ -79,13 +98,13 @@ def run(runnable, inputs = {})
response_body: resource.to_json
)

result = run(test)
result = run(test, url: url)
Copy link

@emichaud998 emichaud998 Oct 9, 2024

Choose a reason for hiding this comment

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

Since the access token input is required, you have to pass in that input as well in all the spec tests so that the test does not skip

Copy link

@emichaud998 emichaud998 left a comment

Choose a reason for hiding this comment

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

Looks good!

@elsaperelli elsaperelli merged commit 5760ead into step-1-solution Oct 23, 2024
@elsaperelli elsaperelli deleted the step-1-solution-upgrade branch October 23, 2024 15:48
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