Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 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

Image Added     

 

Sample Code

Code Block
languagejava
title Sample piece of code showing how New CDA Document type Class Must look like
firstline1
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

...