Intro
Let's discover IGUHealth in less than 5 minutes.
Getting Started
Get started by Downloading our repo or setting up an account.
What you'll need
Start the server
Create a database on your postgres instance and then provide the following environment variables to the iguhealth server
name | description | required | defaults |
---|---|---|---|
FHIR_DATABASE_NAME | Postgres database name. | true | iguhealth |
FHIR_DATABASE_HOST | Postgres host | true | localhost |
FHIR_DATABASE_PORT | Postgres port | true | 5432 |
FHIR_DATABASE_PASSWORD | Postgres password | true | "" |
FHIR_DATABASE_USERNAME | Postgres username | true | postgres |
FHIR_DATABASE_SSL | Whether Postgres connection is SSL | false | false |
REDIS_HOST | Redis Host | true | 127.0.0.1 |
REDIS_PORT | Redis port | true | 6379 |
RUN API Queries
The server is setup where data is organized according to tenants. Tenants are a logical seperation of data. Data cannot be referenced between tenants or queried. By default server is setup with an initial tenant of system.
Get Server capabilities
Run the following query
curl --request GET --url http://localhost:3000/w/system/api/v1/fhir/r4/metadata
Post Patient
Run the following query
curl --request POST --url http://localhost:3000/w/system/api/v1/fhir/r4/Patient \\n --header 'content-type: application/json' \\n --data '{"resourceType":"Patient", "name": [{"family": "parker", "given": ["John"]}]}'
Search Patient by Name
Run the following query
curl --request GET --url http://localhost:3000/w/system/api/v1/fhir/r4/Patient?name=parker