The Attachments module brings a dedicated Java and web API to manage patient file attachments in OpenMRS.
It encompasses files uploaded elsewhere within OpenMRS as long as they are saved as complex obs.
In a nutshell the Attachments module is a 'complex obs management API module' whose Java API is designed to be extended, through new version of the module, to support further content types and concept complex coded obs.
The Attachments module is designed to handle content (or MIME) types on an ad-hoc basis.
For example images (files with image/*
content types) are provided a custom handler that saves them alongside their thumbnails. This is intended for frontend implementations that need to load many images efficiently (in galleries for instance).
When a content type is not provided a bespoke handling mechanism, it can still be accessed generically as it would be on any 'drive' or storage.
Build the master branch and install the built OMOD to your instance running the OpenMRS with the REST web-services module installed.
git clone https://github.com/openmrs/openmrs-module-attachments/tree/master
cd openmrs-module-attachments
mvn clean package
- This module no longer supports the 2.x UI Framework functionalities. I.e. it has become headless with only REST endpoints for the management of attachments. For support of the removed features please use versions 2.6.0 version and below.