rbeckman-nextgen / test-mc

test-migration
1 stars 0 forks source link

Adapt DICOM Serializers to manage Mirth's specific XML #1159

Open rbeckman-nextgen opened 4 years ago

rbeckman-nextgen commented 4 years ago

MIrth uses a special element names for DICOM (different from DCM4CHEE) so its defaut parses couln't be used and XML need to be pre or post-parsed

MIrth uses:

ISO_IR 100

t But DICOM:

ISO_IR 100

Mirth DICOM serializer uses the method DICOMSerializer.renameNode to change the node names, but this tmeans a XML->String->XML transformation, and the change of all nodeNames. Perhaps it would be better to use a specific ContentHandlerAdapter and MSaxWriter

Imported Issue. Original Details: Reporter: albertosaez Created: 2011-11-24T15:20:51.000-0800

rbeckman-nextgen commented 4 years ago

This classes are based on the DCM4CHEE ones (2.0.25) As all the elements are private are difficult to extend, so I've created new ones. There're only a few changes.

This avoid the use of renameNode in "fromXML method, and the call to decodeTagNames in "toXML"

Imported Comment. Original Details: Author: albertosaez Created: 2011-11-24T15:25:32.000-0800