Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ BlueButton Sample Node Client Application
=====================================================

## Project Description
A sample applciation, written in NodeJS utilizing the Node SDK to connect to BlueButton.
A sample application, written in NodeJS utilizing the Node SDK to connect to BlueButton.

## About the Project
The [Blue Button 2.0 API](https://bluebutton.cms.gov/) provides Medicare enrollee claims data to applications using the [OAuth2.0 authorization flow](https://datatracker.ietf.org/doc/html/rfc6749). We aim to provide a developer-friendly, standards-based API that enables people with Medicare to connect their claims data to the applications, services, and research programs they trust.
Expand All @@ -29,7 +29,7 @@ The following guide is for members of the project team who have access to the re
### Create a Blue Button Sandbox Account
Create an account at the link below, and register your test application, to get your Blue Button Sandbox Credentials which will allow you to
access the Blue Button synthetic data. These credentials will be necessary to run this sample application as well as
utilize the Blue Button data within your own applcation. See the section below 'Running the Back-end & Front-end'.
utilize the Blue Button data within your own application. See the section below 'Running the Back-end & Front-end'.

https://sandbox.bluebutton.cms.gov/v1/accounts/create

Expand Down
2 changes: 1 addition & 1 deletion code.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bluebutton-sample-client-nodejs-react",
"description": "A sample applciation, written in NodeJS utilizing the Node SDK to connect to BlueButton.",
"description": "A sample application, written in NodeJS utilizing the Node SDK to connect to BlueButton.",
"status": "Production",
"permissions": {
"licenses": [
Expand Down
2 changes: 1 addition & 1 deletion server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}

// AuthorizationToken holds access grant info:
// access token, expire in, expire at, token type, scope, refreh token, etc.
// access token, expire in, expire at, token type, scope, refresh token, etc.
// it is associated with current logged in user in real app,
// check SDK js docs for more details.

Expand Down Expand Up @@ -90,8 +90,8 @@
process.stdout.write(ERR_QUERY_EOB + '\n');
process.stderr.write("Exception: " + String(e) + '\n');
if (e.response) {
console.log("Error status:", e.response.status);

Check warning on line 93 in server/index.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected console statement
console.log("Error data:", e.response.data);

Check warning on line 94 in server/index.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected console statement
}
}
} else {
Expand Down
Loading