Skip to content
Library to add OpenSearch support of CSD documents to the OpenInfoMan
XQuery Shell Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
packaging
repo
resources/stored_query_definitions
webapp
.gitignore
README.md

README.md

openinfoman-opensearch

Library to add OpenSearch support of CSD documents to the OpenInfoMan s FHIR organization

Prerequisites

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-opensearch

Library Module

Common functionality for the is packaged in an XQuery module

cd ~/basex/repo
basex -Vc "REPO INSTALL openinfoman_opensearch_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-opensearch/resources/stored_query_definitions/* .

Be sure to reload the stored functions:

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

OpenSearch Endpoints

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

cd ~/basex/webapp
ln -sf ~/openinfoman-opensearch/webapp/openinfoman_opensearch_bindings.xqm
You can’t perform that action at this time.