Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Updated README.md with latest release notes.
Browse files Browse the repository at this point in the history
Updated requirements/requirements.txt to use Django 1.11.16
Changed authenticated_home to display correct URL.
  • Loading branch information
ekivemark committed Oct 8, 2018
1 parent fccdd24 commit fa39b92
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 9 deletions.
13 changes: 8 additions & 5 deletions README.md
Expand Up @@ -6,31 +6,34 @@ Blue Button Sample Client Application - Django Version
This client demonstrates authenticating to the Blue Buttom API and subsequent FHIR API calls.
It demonstrates the OAuth2 Server Side web application flow where a `client_secret` is used.

This client has been upgraded to Django 1.11.16.

## Status and Contributing

The application is in active development so check back often for updates.
Please consider improving this code with your contributions. Pull requests welcome ;)

## Basic Setup

git clone https://github.com/HHSIDEAlab/django_bluebutton_client.git
git clone https://github.com/cmsgov/bluebutton-sample-client-django.git
cd django_blubutton_client/bbc

While not required, using `virtualenv` is a good idea.
The following commands work for Python 3+. Please search `virtualenv`
to fine eqivilent commands to install and setup `virtualenv` for Python 2.7.


python -m venv venv
source venv/bin/activate

The following command assumes a `virtualenv` was created and activated.
If you aren't using `virtualenv`, then you may need to put `sudo` in
front of the following `pip` command.

pip install -r requirements/requirements.in
pip install -r requirements/requirements.txt
cp bbc/settings/local_sample.py bbc/settings/local.py
python manage.py migrate --settings bbc.settings.local
python manage.py createsuperuser --settings bbc.settings.local


### Configuring Your Development Application

Expand Down Expand Up @@ -62,13 +65,13 @@ the values for:

Finally, you're ready to execute

python manage.py runserver --settings bbc.settings.local
python manage.py runserver --settings bbc.settings.local --insecure

And from here, you can navigate to http://localhost:8000 and test your application.

## Other Settings

* `OAUTH2IO_HOST` - the default is `https://dev.bluebutton.cms.fhirservice.net`
* `OAUTH2IO_HOST` - the default is `https://sandbox.bluebutton.cms.gov`
* `EXTERNAL_AUTH_NAME` - the default is `CMS`.

If you change the `OAUTH2IO_HOST` to something non https (for testing), then you need to
Expand Down
6 changes: 3 additions & 3 deletions bbc/apps/home/templates/authenticated-home.html
Expand Up @@ -38,23 +38,23 @@ <h1 class="page-header">Hello {{user|capfirst}}</h1>
<div class="row">
<div class="col-lg-12">
<h1>Explanation of Benefit</h1>
<a href="{%url 'bbof_get_eob' %}"><button type="button" class="btn btn-primary">{{settings.OAUTH2IO_HOST}}/ExplanationOfBenefit/?patient={{request.user.username}}&_format=json</button> </a>
<a href="{%url 'bbof_get_eob' %}"><button type="button" class="btn btn-primary">{{settings.FHIR_HOST}}/ExplanationOfBenefit/?patient={{request.user.username}}&_format=json</button> </a>

</div>
</div>

<div class="row">
<div class="col-lg-12">
<h1>Patient</h1>
<a href="{%url 'bbof_get_patient' %}"><button type="button" class="btn btn-primary">{{settings.OAUTH2IO_HOST}}/Patient/{{request.user.username}}?_format=json</button> </a>
<a href="{%url 'bbof_get_patient' %}"><button type="button" class="btn btn-primary">{{settings.FHIR_HOST}}/Patient/{{request.user.username}}?_format=json</button> </a>


</div>
</div>
<div class="row">
<div class="col-lg-12">
<h1>Coverage</h1>
<a href="{%url 'bbof_get_coverage' %}"><button type="button" class="btn btn-primary">{{settings.OAUTH2IO_HOST}}/Coverage/?patient={{request.user.username}}&_format=json</button> </a>
<a href="{%url 'bbof_get_coverage' %}"><button type="button" class="btn btn-primary">{{settings.FHIR_HOST}}/Coverage/?patient={{request.user.username}}&_format=json</button> </a>

</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion bbc/requirements/requirements.in
@@ -1,4 +1,4 @@
Django>1.11
Django==1.11.16
django-bootstrap-form
django-localflavor
python-social-auth
Expand Down
31 changes: 31 additions & 0 deletions bbc/requirements/requirements.txt
@@ -0,0 +1,31 @@
beautifulsoup4==4.6.0
certifi==2017.7.27.1
chardet==3.0.4
defusedxml==0.5.0
Django==1.11.16
django-bootstrap-form==3.3
django-localflavor==1.5.2
django-settings-export==1.2.1
flake8==3.4.1
getenv==0.1.0
idna==2.6
jdt==0.2
jsonschema==2.6.0
luhn==0.2.0
mccabe==0.6.1
oauthlib==2.0.3
pdt==0.8.2.3
pycodestyle==2.3.1
pyflakes==1.5.0
PyJWT==1.5.3
pymongo==3.5.1
python-social-auth==0.3.6
python3-openid==3.1.0
pytz==2017.2
requests==2.18.4
requests-oauthlib==0.8.0
six==1.10.0
social-auth-app-django==1.2.0
social-auth-core==1.4.0
urllib3==1.22
validate-email==1.3

0 comments on commit fa39b92

Please sign in to comment.