...
- fork our module from gitub here
- open "CDAGenerator-api"folder
- In src/main/java package try to locate "org.openmrs.module.CDAGenerator.CDAHandler" package
- Now in this "org.openmrs.module.CDAGenerator.CDAHandler" package, Create class for new CDA Document Type you need and Note that this class must extend BaseCdaTypeHandler class.
- Add details about documents either using setter methods or adding in constructor. Thats it and new CDA document type is ready!
Image showing location to add new CDA Document Type
Sample Code
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
package org.openmrs.module.CDAGenerator.CDAHandlers;
public class MyCDADocument extends BaseCdaTypeHandler
{
public MyCDADocument()
{
this.documentFullName="MyCDADocument";
this.documentShortName="MCD";
this.documentDescription="to add new cda document type";
this.templateid="some free text";//required attribute,not null
this.formatCode=null; //optional attribute
}
}
|
Screenshots
1) When module is loaded Administration tab looks like this
...