Hi all,

 

When I have the time, I'd really like to refactor some of the data transfer
methods in this class. Currently, all the properties of a domain object,
such as an ImageSopInstance, are set from the actual DICOM object using
hardcoded statements and references to property names. 

 

What I would like to be able to do, is to make this process generic, so that
if we wanted to add a particular DICOM tag to the data model, such as
Specific Character Set for example, we would only have to change the domain
object type, ImageSopInstance, to include a SpecificCharacterSet property.
We might use an Attribute to decorate the property so that using reflection,
you can determine which properties of the type to have data transfer
performed on them. Combined with a dictionary, it should be possible to
match up the property name, with a particular DICOM tag, and have that tag
extracted and set into the property.

 

Anyone have any thoughts on this?

 

Clinton

_______________________________________________
dev mailing list
[email protected]
http://clearcanvas.ca/mailman/listinfo/dev_clearcanvas.ca

Reply via email to