Source code for toor.ImageReader.DICOM.submodule
[docs]
class MainAttribute:
def __init__(self, value=None, tag=None, type_=None, dependencies=None):
self._value = value
self._tag = tag
self._type = type_
self._dependencies = dependencies
[docs]
def value(self, new):
if new != self._value:
self._value = new
return self._value
[docs]
def tag(self, new):
if new != self._tag:
self._tag = new
return self._tag
[docs]
def type(self, new):
if new != self._type:
self._type = new
return self._type
[docs]
def dependencies(self, new):
if new != self._dependencies:
self._dependencies = new
return self._dependencies
[docs]
class SubAttribute:
def __init__(self, value=None, tag=None, type_=None, dependencies=None, codevalue="", codingschemedesignator="",
codingschemeversion="", codemeaning="",longcodevalue=" ", urncodevalue=""):
self._value = value
self._tag = tag
self._type = type_
self._dependencies = dependencies
self._codeValue = codevalue
self._codingSchemeDesignator = codingschemedesignator
self._codingSchemeVersion = codingschemeversion
self._codeMeaning = codemeaning
self._longCodeValue = longcodevalue
self._URNCodeValue = urncodevalue
[docs]
def value(self, new):
if new != self._value:
self._value = new
return self._value
[docs]
def tag(self, new):
if new != self._tag:
self._tag = new
return self._tag
[docs]
def type(self, new):
if new != self._type:
self._type = new
return self._type
[docs]
def dependencies(self, new):
if new != self._dependencies:
self._dependencies = new
return self._dependencies
[docs]
def codeValue(self, new):
if new != self._codeValue:
self._codeValue = new
return self._codeValue
[docs]
def codingSchemeDesignator(self, new):
if new != self._codingSchemeDesignator:
self._codingSchemeDesignator = new
return self._dependencies
[docs]
def codingSchemeVersion(self, new):
if new != self._codingSchemeVersion:
self._codingSchemeVersion = new
return self._codingSchemeVersion
[docs]
def codeMeaning(self, new):
if new != self._codeMeaning:
self._codeMeaning = new
return self._codeMeaning
[docs]
def longCodeValue(self, new):
if new != self._longCodeValue:
self._longCodeValue = new
return self._longCodeValue
[docs]
def URNCodeValue(self, new):
if new != self._URNCodeValue:
self._URNCodeValue = new
return self._URNCodeValue