...
- add appropriate code in sqldiff.xml (or liquibase.xml, for more info see : https://wikiopenmrs.openmrsatlassian.orgnet/wiki/display/docs/Module+liquibase+File ) to add the column to the table
- add an entry for the module's Encounter.hbm file under mappingFiles in config.xml
- create an empty service to call the module's encounter that extends OpenMRS's EncounterService object
- create an hbm file for the module's encounter with the following mapping format
For this hbm file to work, the following xml must exist in the OpenMRS Encounter.hbm file:Code Block <hibernate-mapping auto-import="false"> <subclass name="org.openmrs.module.atdproducer.Encounter" extends="org.openmrs.Encounter" discriminator-value="not null"> <property name="scheduledTime" type="java.util.Date" column="scheduled_datetime"/> </subclass> </hibernate-mapping>
Code Block <discriminator column="encounter_id" insert="false" />
...