I got this working yesterday. Here are the steps I did to get this working in case someone else needs to do it:
1. I had to set up a build environment by following these steps:
http://www.dcm4che.org/confluence/download/attachments/501/dcm4chee+Build+Instructions+Rev3.txt?version=1&modificationDate=13438612649652. I edited the following files (you may only need to edit one or all depending on what level you are looking to store your tags in):
The files that need editing are located at dcm4jboss-all/dcm4jboss-ejb/src/java/org/dcm4chex/archive/ejb/entity/
InstanceBean.java
PatientBean.java
StudyBean.java
SeriesBean.java
3. Edit the file you need:
example: I wanted to add more then the 3 tags (I have more then a 100) that the attribute filter can take.
So I took this code
/**
* @ejb.interface-method
* @ejb.persistence column-name="study_custom1"
*/
public abstract String getStudyCustomAttribute1();
public abstract void setStudyCustomAttribute1(String value);
and added this to allow for a additional tag and allowed me to name the column in the study table
/**
* @ejb.persistence column-name="i_priv_creat"
*/
public abstract String getStudyCustomAttribute10();
public abstract void setStudyCustomAttribute10(String value);
4. Once your done editing you will then have to compile your changes and create a new deployment zip file:
cd dcm4jboss-all/dcm4jboss-build/
ant psql-dist *** I use postgres as my DB
5. I deployed the zip file to my test box and made sure everything ran.
6. I then added the the columns to the DB to each table and also created the indexes
8. Next I edited the dcm4chee-attribute-filter.xml file and added the tags I needed:
example:
<study>
<attr tag="30110010" field="studyCustomAttribute10"/> <!-- PrivateCreator -->
</study>
The studyCustomAttribute10 = i_priv_creat column in the study table
9. Stopped and restarted dcm4chee
10. Sent a DICOM file to dcm4chee and the test tag was in the DB where I needed it to be
****** I'm a system admin and not a developer so the steps above might not have been the quickest way to accomplish my task so if anyone knows or finds an easier way please add to this post.
Thanks for the help on this!