Skip to content

uwcirg/helloworld-confidential-client-sof

Repository files navigation

Helloworld Confidential Client Backend for SMART-on-FHIR Frontend

Helloworld SMART-on-FHIR confidential client and proxy

Intended to be the source project / template for forking when a confidential client in a SoF setting is needed. Use in collaboration with SoF front-ends designed to be at least optionally run as confidential front-ends.

Launch

To start an EHR launch follow the below steps

Generate a launch URL in the below form, where SERVER_NAME matches the value in sof_wrapper.env

http://SERVER_NAME/auth/launch

Enter the above URL as the App Launch URL in the SMART App Launcher

  • Uncheck Simulate launch within the EHR user interface
  • Select R4 for FHIR Version

Click Launch App!

Development

To start the application follow the below steps in the checkout root

Copy default environment variable file and modify as necessary

cp confidential_backend.env.default confidential_backend.env

Build the docker image. Should only be necessary on first run or if dependencies change.

docker-compose build

Start the container in detached mode

docker-compose up --detach

Read application logs

docker-compose logs --follow

Test

Without a setup.py to install, invoke as follows from the root directory to automatically include the current directory in PYTHONPATH

python -m pytest tests

License

BSD

About

Helloworld template repository for confidential SoF client backend

Resources

Stars

Watchers

Forks