This module provides a way to draw and annotate on images and save them as complex observation. You can find more information at https://wiki.openmrs.org/display/docs/Drawing+Module
- Download Drawing module from here and upload it into your system .
- Create a new concept (You can do this by clicking on Dictionary and Add new Concept)
- If there is a class 'Drawing' in the list , set the class of concept to 'Drawing'. if not create a new class 'Drawing' and set the class field of the concept to the same(you can create new class from administration ->Manage Concept Classes )
- Set the data type to complex
- Set the handler to DrawingHandler
TL;DR
<drawing id="drawingEditor" conceptId="" displayMode="annotation" width="500px" height="250px" preloadResImage="web/module/resources/images/DrawingTemplates/Full Body Lateral Female.png">
questionConceptId has been changed to conceptId
An id attribute (e.g. <drawing id="drawingEditor"/>
) is still required.
conceptId
is required as with many HFE tags.
displayMode
is a new and required attribute.
The Drawing module now explicity provides two display modes, one specifically for drawing and annotating images, and one specifically for use with signatures.
<drawing displayMode="{annotation, signature}" conceptId="(HFE sufficient Conecpt identifier)"/>
Height and width
<drawing displayMode="annotation" conceptId="(complexId)" width="500px" height="250px">
Preloaded "template" Image (from drawing or module internal resources)
<drawing displayMode="annotation" conceptId="(complexId)" preloadResImage="/web/module/resources/images/example.png"/>