Skip to content

gatewayapi

Stephen Laws edited this page Jun 20, 2022 · 1 revision

Immunization

The GatewayAopi project provides Health Gateway specific services (User Profile, Notes, Comments etc) for the consumption of WebClient and the Mobile app.

Prerequisite

The Patient service needs to be configured.

GatewayApi Service Configuration

No special configuration required at this time.

Run GatewayApi Service

Command line

cd $GATEWAYHOME/Apps/GatewayApi
dotnet run

VS Code

  • Select the GatewayApi project
  • Say Yes or Accept any popups regarding adding assets for debugging
    • Select the GatewayApi Solution and click Enter which should create a .vscode/launch.json
  • Click F5 or Run/Start Debugging

Visual Studio

  • Right Click on the solution and select Properties
  • Select Multiple startup projects
  • Set GatewayApi action to Start
  • Click Ok
  • Click F5 or Debug/Start Debugging

GatewayApi Service Verification

  • Ensure WebClient is running
  • Open a Chrome session to http://localhost:5000
  • Open Developer tools.
  • Logon to WebClient
  • In the console make note of the HDID or you can likely use: P6FFO433A5WPMVTGM7T4ZVWBKCSVNAYGTWTU3J2LWMGUMERKI72A
  • Go to the network tab and refresh the page.
  • You will want to look for a failed call to Medication or Immunization go to the Headers tab and copy the text after Authorization: Bearer
  • Open Chrome session to http://localhost:3000/swagger
  • Click on the Authorize button and paste in the bearer token, then click Authorize and Close.
  • Scroll down and Click on the UserProfile GET API to expand it.
  • Click on Try it out button.
  • Paste the HDID into the text input.
  • Click on Execute

You should see a response of 200 and a body containing UserProfile information.

Clone this wiki locally