/openinfoman-fhir

OpenInfoMan FHIR Adapater

Primary LanguageXQueryApache License 2.0Apache-2.0

openinfoman-fhir

The OpenInfoMan FHIR Adapater to represent CSD entities as FHIR resources:

It makes use of the OpenInfoMan software https://github.com/openhie/openinfoman

Ubuntu Installation

You can easily install on Ubuntu 14.04 and Ubuntu 14.10 using the following commands

sudo add-apt-repository ppa:openhie/release
sudo apt-get update
sudo apt-get install openinfoman-fhir

Manual Installation

Assumes that you have installed BaseX and OpenInfoMan according to:

https://github.com/openhie/openinfoman/wiki/Install-Instructions

Directions

To get the libarary:

cd ~/
git clone https://github.com/openhie/openinfoman-fhir

Library Module

Common functionality for the is packaged in an XQuery module

cd ~/openinfoman-fhir/repo
basex -Vc "REPO INSTALL openinfoman_fhir_adapter.xqm"

Stored Functions

To install the stored functions (one for each of the FHIR resources) you can do:

cd ~/basex/resources/stored_query_definitions
ln -sf ~/openinfoman-fhir/resources/stored_query_definitions/* .

Be sure to reload the stored functions:

https://github.com/openhie/openinfoman/wiki/Install-Instructions#Loading_Stored_Queries

FIHR Endpoints

You can the stored functions to the GET endpoints requried by FHIR with:

cd ~/basex/webapp
ln -sf ~/openinfoman-fhir/webapp/openinfoman_fhir_bindings.xqm