Library to add OpenSearch support of CSD documents to the OpenInfoMan s FHIR organization
Assumes that you have installed BaseX and OpenInfoMan according to:
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:
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