The issue was because CodedConcept.from_dataset() manually created a new instance of the class, which means that any attributes of the underlying dataset not supported by the CodedConcept class are lost.
I also had to tweak the __eq__ to defer to the superclass implementation as a fallback as this was creating bizarre bugs when trying to serialize the result. Pydicom-level functionality needs to be able to determine equality of a CodedConcept to any other pydicom.Dataset using its own rules.
Might want to do a patch release for this: potentially a nasty one...
This is a fix for #203 , @pieper
The issue was because
CodedConcept.from_dataset()
manually created a new instance of the class, which means that any attributes of the underlying dataset not supported by theCodedConcept
class are lost.I also had to tweak the
__eq__
to defer to the superclass implementation as a fallback as this was creating bizarre bugs when trying to serialize the result. Pydicom-level functionality needs to be able to determine equality of aCodedConcept
to any otherpydicom.Dataset
using its own rules.Might want to do a patch release for this: potentially a nasty one...