Giter Site home page Giter Site logo

mozzy11 / openmrs-module-shr-xds-b-repository Goto Github PK

View Code? Open in Web Editor NEW

This project forked from i-tech-uw/openmrs-module-shr-xds-b-repository

0.0 0.0 0.0 408 KB

A module to allow OpenMRS to act as an XDS.b repository

License: Other

Java 100.00%

openmrs-module-shr-xds-b-repository's Introduction

Build Status

XDS.b Interface module for OpenMRS

A module to allow OpenMRS to act as an XDS.b repository.

Setup

Firstly set the global property xds-b-repository.xdsregistry.url to the URL of the XDS registry that document should be registered with.

To allow the module to run correctly you need to add a log folder for send XDS message (messages to the registry).

sudo mkdir /var/log/xdslog

Then give permissions to the user running OpenMRS to write and create folders in that directory. The easiest way to get this right is as follow:

sudo chmod 777 /var/log/xdslog

You may restrict the permissions more if necessary.

Dependencies

Usage

This module provides a XDS.b repository endpoint at the following location:

/openmrs/ms/xdsrepository

It supports the 'provide and register document set' and the 'retrieve document set' transactions.

The module uses the content handler module to store documents. By default the content handler will store these to the file systems. If you would like to handle documents that are received you can register a content handler implementation of your own. See the content handler documentation.

This module keeps track of which documents map to which content handlers, it does this by mapping the document ID to a content handler class. If you would like to register a synthetic (or otherwise) document with the module it provides a module service to allow you to do so. This service will also register the document with the configured XDS.b registry.

Example usage of the service methods:

XDSbService xdsService = Context.getService(XDSbService.class);
xdsService.registerDocuments(contentHandlersMap, submitObjectRequest);
// or
xdsService.registerDocument(documentUniqueId, contentHandlerClass, submitObjectRequest);

openmrs-module-shr-xds-b-repository's People

Contributors

rcrichton avatar hnnesv avatar areklalo avatar mozzy11 avatar psbrandt avatar pgesek avatar pmanko avatar wluyima avatar dserkowski avatar herbertyiga avatar pkornowski avatar justin-fyfe avatar wojtekbu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.