HealthTAG API Configuration
The Hospital API reads .healthtag-api.env to locate Kong, authenticate its requests to the hospital’s FHIR server, and contact the upstream HealthTAG API. HealthTAG Lambda functions call this API from AWS.
Environment variables
Section titled “Environment variables”Set all three variables. FHIR_API_KEY is a secret; do not commit its value or include it in logs.
| Variable | Default Value | Explanation |
|---|---|---|
FHIR_URL |
http://kong:8000/fhir-api-key-auth |
The internal URL used to communicate with the Kong API Gateway, which then routes the request to the FHIR Server. |
FHIR_API_KEY |
<FHIR_API_KEY> |
Required secret, managed by the hospital. The Hospital API sends it in the apikey header when querying the key-auth FHIR route. It is not the credential used by Lambda to call the Hospital API. |
HEALTHTAG_API_URL |
https://api.healthtag.io |
The base URL for the upstream HealthTAG API that this node will interact with. |

