Inheritance diagram for DSRCodedEntryValue:
Public Member Functions | |
DSRCodedEntryValue () | |
default contructor | |
DSRCodedEntryValue (const OFString &codeValue, const OFString &codingSchemeDesignator, const OFString &codeMeaning) | |
constructor. | |
DSRCodedEntryValue (const OFString &codeValue, const OFString &codingSchemeDesignator, const OFString &codingSchemeVersion, const OFString &codeMeaning) | |
constructor. | |
DSRCodedEntryValue (const DSRCodedEntryValue &codedEntryValue) | |
copy constructor | |
virtual | ~DSRCodedEntryValue () |
destructor | |
DSRCodedEntryValue & | operator= (const DSRCodedEntryValue &codedEntryValue) |
assignment operator | |
OFBool | operator== (const DSRCodedEntryValue &codedEntryValue) const |
comparison operator. | |
virtual void | clear () |
clear all internal variables. | |
virtual OFBool | isValid () const |
check whether the current code is valid. | |
virtual OFBool | isEmpty () const |
check whether the current code is empty. | |
void | print (ostream &stream, const OFBool printCodeValue=OFTrue, const OFBool printInvalid=OFFalse) const |
print code. | |
OFCondition | readSequence (DcmItem &dataset, const DcmTagKey &tagKey, const OFString &type, OFConsole *logStream) |
read code sequence from dataset. | |
OFCondition | writeSequence (DcmItem &dataset, const DcmTagKey &tagKey, OFConsole *logStream) const |
write code sequence to dataset | |
OFCondition | readXML (const DSRXMLDocument &doc, DSRXMLCursor cursor) |
read code from XML document | |
OFCondition | writeXML (ostream &stream, const size_t flags, OFConsole *logStream) const |
write code in XML format | |
OFCondition | renderHTML (ostream &stream, const size_t flags, OFConsole *logStream, const OFBool fullCode=OFTrue, const OFBool valueFirst=OFFalse) const |
render code in HTML format | |
const DSRCodedEntryValue & | getValue () const |
get reference to code value | |
OFCondition | getValue (DSRCodedEntryValue &codedEntryValue) const |
get copy of code value | |
const OFString & | getCodeValue () const |
get code value. | |
const OFString & | getCodingSchemeDesignator () const |
get coding scheme designator. | |
const OFString & | getCodingSchemeVersion () const |
get coding scheme version. | |
const OFString & | getCodeMeaning () const |
get code meaning. | |
OFCondition | setValue (const DSRCodedEntryValue &codedEntryValue) |
set code value. | |
OFCondition | setCode (const OFString &codeValue, const OFString &codingSchemeDesignator, const OFString &codeMeaning) |
set code value. | |
OFCondition | setCode (const OFString &codeValue, const OFString &codingSchemeDesignator, const OFString &codingSchemeVersion, const OFString &codeMeaning) |
set code value. | |
OFBool | valueContainsExtendedCharacters () const |
check if this value contains non-ASCII characters. | |
Protected Member Functions | |
DSRCodedEntryValue * | getValuePtr () |
get pointer to code value | |
OFCondition | readItem (DcmItem &dataset, OFConsole *logStream, const char *moduleName=NULL) |
read code from dataset | |
OFCondition | writeItem (DcmItem &dataset, OFConsole *logStream) const |
write code to dataset | |
OFBool | checkCode (const OFString &codeValue, const OFString &codingSchemeDesignator, const OFString &codeMeaning) const |
check the specified code for validity. | |
Private Attributes | |
OFString | CodeValue |
code value (VR=SH, mandatory) | |
OFString | CodingSchemeDesignator |
coding scheme designator (VR=SH, mandatory) | |
OFString | CodingSchemeVersion |
coding scheme version (VR=SH, optional) | |
OFString | CodeMeaning |
code meaning (VR=LO, mandatory) | |
Friends | |
class | DSRContentItem |
Definition at line 51 of file dsrcodvl.h.
|
constructor. The code triple is only set if it passed the validity check (see setCode()).
|
|
constructor. The code 4-tuple is only set if it passed the validity check (see setCode()).
|
|
copy constructor
|
|
check the specified code for validity. Currently the only check that is performed is that the three string values are not empty. Later on it might be checked whether the specified code really belongs to the specified coding scheme, etc. This require the presence of the relevant code dictionaries.
|
|
clear all internal variables. Since an empty code is invalid the code becomes invalid afterwards. Reimplemented in DSRCodeTreeNode. |
|
get code meaning. Human-readable translation of the code value. Used for display when code dictionary is not available.
Definition at line 260 of file dsrcodvl.h. References CodeMeaning. |
|
get code value. This is a identifier of the code that is unambiguous within the coding scheme.
Definition at line 228 of file dsrcodvl.h. References CodeValue. |
|
get coding scheme designator. This is a textual identifier of the table where the code value is linked to its code meaning. Designators beginning with "99" and the designator "L" are defined to be private or local coding schemes. More details on the coding scheme might be retrieved via the DSRDocument::getCodingSchemeIdentification() method.
Definition at line 240 of file dsrcodvl.h. References CodingSchemeDesignator. |
|
get coding scheme version. Optional - Used when a coding scheme has multiple versions and the coding scheme designator does not explicitly (or adequately) specify the version number.
Definition at line 250 of file dsrcodvl.h. References CodingSchemeVersion. |
|
get copy of code value
|
|
get reference to code value
Definition at line 213 of file dsrcodvl.h. |
|
get pointer to code value
Definition at line 328 of file dsrcodvl.h. |
|
check whether the current code is empty. Checks whether all four components of the code are empty.
|
|
check whether the current code is valid. See checkCode() for details.
Reimplemented in DSRCodeTreeNode. |
|
assignment operator
|
|
comparison operator. Two codes are equal if the code value, coding scheme designator and the (optional) coding scheme version are equal. The code meaning is not relevant for this check.
|
|
print code. The output of a typical code triple looks like this: (1234,99_OFFIS_DCMTK,"Code Meaning"). The optional coding scheme version is printed in square brackets directly after the coding scheme designator, e.g.: (cm,UCUM[1.4],"centimeter")
|
|
read code from dataset
|
|
read code sequence from dataset. The number of items within the code sequence is checked. If error/warning output are enabled a warning message is printed if the sequence is empty or contains more than one item.
|
|
read code from XML document
|
|
render code in HTML format
|
|
set code value. Before setting the specified code it is checked (see checkCode()). If the code is invalid the current code is not replaced and remains unchanged. Additional information on the coding scheme can be provided via the getCodingSchemeIdentification() method in the main class DSRDocument (highly recommended for private coding schemes).
|
|
set code value. Before setting the code it is checked (see checkCode()). If the code is invalid the current code is not replaced and remains unchanged. Additional information on the coding scheme can be provided via the getCodingSchemeIdentification() method in the main interface class DSRDocument (highly recommended for private coding schemes).
|
|
set code value. Before setting the code it is checked (see checkCode()). If the code is invalid the current code is not replaced and remains unchanged.
|
|
check if this value contains non-ASCII characters.
|
|
write code to dataset
|
|
write code sequence to dataset
|
|
write code in XML format
Reimplemented in DSRCodeTreeNode. |