Vanya Client Integration
· 3 min read
Vanya client is a desktop app that allows you to view data in FHIR. It works with a variety of FHIR servers and can be a great way to check for conformance and data quality more on that later.
How to integrate Vanya with Iguhealth
OAuth Client Credentials
- Go to the admin application and create a new ClientApplication.
- Set the grant type to
client_credentials
. - Set the response type to token.
- Set the secret to a secure value.
- Hit Actions and create
- Mark down the client ID and secret.
- Click Security->AccessPolicyV2 in the admin app and create a new access policy.
- Create AccessPolicyV2 with the engine set to `Full Access'.
- Under Target.Link reference the ClientApplication created on step 5.
- Open the Vanya client.
- Click Add New Server.
- Go to Settings on the Admin App and copy the FHIR R4 URL.
- Paste the URL in the Vanya Client for the URL.
- In Vanya, click OAuth2.
- Copy and paste the token endpoint from the admin app settings.
- Copy the clientID from step 5 and paste it in Vanya.
- Copy the client secret from step 5 and paste it in Vanya.
- Set the grant type to
client_credentials
. - Click Save.
Basic Authentication
- Go to the admin application and create a new ClientApplication.
- Set the grant type to
basic_auth
. - Set the response type to token.
- Set the secret to a secure value.
- Hit Actions and create
- Mark down the client ID and secret.
- Click Security->AccessPolicyV2 in Admin App and create a new access policy.
- Create AccessPolicyV2 with the engine set to `Full Access'.
- Under Target.Link reference the client application created on step 5.
- Use the below widget and enter the client ID and secret, then copy the authorization header value.
Below is a simple form to generate an Authorization header for basic authentication.
- Open the Vanya client.
- Click Add New Server.
- Click the Request Headers tab, create a key Authorization and paste in the value from step 10.
- Go to Settings on the Admin App and copy the FHIR R4 URL.
- Paste the URL in the Vanya Client for the URL.
- Click Save.
Vanya Client discovered a non-conformant aspect of our server
We use nanoid to generate unique identifiers for our resources.
Vanya client discovered that our use of the default alphabet for nanoid, is not FHIR compliant.
Specifically the _
is a character not allowed in FHIR ids.