Work in progress
This page is a work in progress and may change
The FHIR Document interface module will extend the OpenMRS webservices.rest module to provide a subset of the FHIR interface specifically for the storage and retrieval of documents. We want to be able to provide XDS.b like functionality via a rest interface. FHIR lists this a one of its common scenarios. You can read more about this here: http://www.hl7.org/implement/standards/fhir/usecases.html
The REST interface
The basic function of the FHIR RESTful API that this module should support can be found here: http://www.hl7.org/implement/standards/fhir/http.html
In order to implement XDS.b like functionality the module must support the following resources:
Handling documents
To handle documents that are received from the RESTful interface we will make use of the content handler module. This module will fetch the content handler for the media type of the document it receives from the content handler service and it will use this to store the document. When queries are being done, this module will query using the content handler for the requested output type of RESTful request.