Adding private tags to the dictionary

  1. Define your Private Creator ID and element definitions in YourPrivateDictionary.xml
  2. Generate ZIP with serialized private Element Dictionary and service provider configuration file by
    ~/dcm4che-2.0.19/bin/mkelmdic YourPrivateDictionary.xml YourPrivateElementDictionary YourPrivateElementDictionary.zip
    
  3. Generate ZIP with serialized private VR Map and service provider configuration file by
    ~/dcm4che-2.0.19/bin/mkvrmap YourPrivateDictionary.xml YourPrivateVRMap YourPrivateVRMap.zip
    
  4. Either put both generated ZIPs into your CLASSPTH or merge them into one ZIP, so you only need to add one file path to your CLASSPATH
  5. Optional: Apply dcm4che2-src/dcm4che-dict/src/main/xsl/Tag.xsl to YourPrivateDictionary.xml to generate YourPrivateTag.java with int constants for your private tags.