Library to add OpenSearch support of CSD documents to the OpenInfoMan s FHIR organization
Assumes that you have installed BaseX and OpenInfoMan according to:
https://github.com/openhie/openinfoman/wiki/Install-Instructions
To get the libarary:
cd ~/ git clone https://github.com/openhie/openinfoman-opensearch
Common functionality for the is packaged in an XQuery module
cd ~/basex/repo basex -Vc "REPO INSTALL openinfoman_opensearch_adapter.xqm"
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
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