Method 2
To make the code sources available to the module using Method 2
1. Identify the code source IDs of the code sources to be imported. For example, the code source ID of a code source that contains a list of Zip codes is 51.
2. Create a directory, codesource_codesourceid in the Integration Server_directory \instances\instance_name\packages\WmHipaaCodeSource\resources\codesources\versionx directory. For example, codesource_51.
The directory versionx, represents the version of the imported code source where, x is the version number, for example, version1.
You must create directories for every imported code source and code source version, if they do not exist.
3. Use a Java-Editor and write a Java program to import the code sources.
Your Java class must implement the following abstract class.
com.softwareag.estd.hipaa.codesource.extractors.ICodeSetHandler
4. Implement the following method in your Java program.
public abstract ArrayList<CodeSetData> extractCodes(String version) throws HipaaException;
The Array list of CodeSetData objects contains the fields, code, shortDescription, and longDescription. The field, code is mandatory. The shortDescription and longDescription fields are optional.
Note:
Ensure that your Java program can return the code values to the code field.
5. Compile your program and copy the generated Java class file in the Integration Server_directory \instances\instance_name\packages\WmHipaaCodeSource\code\class directory.
6. Create a text file, metadata.txt and define the following properties in the specified order.
a. CodeSetHandler = Insert the directory path of the ICodeSetHandler abstract class
The directory path of the implementation of ICodeSetHandler class.
b. Description = Insert a description
The description of the code source you are importing.
c. TableName = Insert the name of the database table
7. Copy the metadata.txt file to Integration Server_directory \instances\instance_name\packages\WmHipaaCodeSource\resources\codesources\versionx\codesource_codesourceid directory.