Skip to content

An OpenMRS module that intercepts and redirects FHIR API requests to external APIs, with support for basic authentication.

License

Notifications You must be signed in to change notification settings

mekomsolutions/openmrs-module-fhirproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FHIR Proxy Module

An OpenMRS module that intercepts and redirects fetch requests for ChargeItemDefinition and InventoryItem FHIR resources to an external API, with support for basic authentication.

Configuration

The module reads the configuration from a properties file named config.properties in a directory named fhirproxy which is located in the application data directory, below is an example configuration file.

external.api.enabled=true
base.url=http://your-fhirserver/fhir/R4
username=test-user
password=test-password

Configuration Properties

external.api.enabled: When set to true, the module will delegate GET FHIR requests for ChargeItemDefinition and InventoryItem to the configured external API.

base.url: The root URL for the external FHIR API

username: The username to authenticate to the external FHIR API

password: The password to authenticate to the external FHIR API

Global Properties

fhirproxy.charge.item.definition.privileges: Comma separated list of privileges required to manage charge item definition FHIR resource, when the external API is enabled

fhirproxy.inventory.item.privileges: Comma separated list of privileges required to manage item inventory FHIR resource when the external API is enabled

NOTE

It is assumed that the external API exposed by proxy can only be consumed by a client already authenticated. If one would want to query those resources using basic auth, it is advised to query directly the Odoo FHIR API service, not through the FHIR proxy module.

About

An OpenMRS module that intercepts and redirects FHIR API requests to external APIs, with support for basic authentication.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages