📄 dsrcodvl.h
字号:
OFCondition getValue(DSRCodedEntryValue &codedEntryValue) const; /** get code value. * This is a identifier of the code that is unambiguous within the coding scheme. ** @return current code value (might be invalid or an empty string) */ inline const OFString &getCodeValue() const { return 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. ** @return current coding scheme designator (might be invalid or an empty string) */ inline const OFString &getCodingSchemeDesignator() const { return 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. ** @return current coding scheme version (might be invalid or an empty string) */ inline const OFString &getCodingSchemeVersion() const { return CodingSchemeVersion; } /** get code meaning. * Human-readable translation of the code value. Used for display when code dictionary * is not available. ** @return current code meaning (might be invalid or an empty string) */ inline const OFString &getCodeMeaning() const { return CodeMeaning; } /** 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. ** @param codedEntryValue code to be set ** @return status, EC_Normal if successful, an error code otherwise */ OFCondition setValue(const DSRCodedEntryValue &codedEntryValue); /** 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). ** @param codeValue identifier of the code to be set that is unambiguous * within the coding scheme. (VR=SH, mandatory) * @param codingSchemeDesignator textual identifier of the table where the 'codeValue' * is linked to its 'codeMeaning'. (VR=SH, mandatory) * Designators beginning with "99" and the designator * "L" are defined to be private or local coding schemes. * @param codeMeaning human-readable translation of the 'codeValue'. Used * for display when code dictionary is not available. * (VR=LO, mandatory) ** @return status, EC_Normal if successful, an error code otherwise */ OFCondition setCode(const OFString &codeValue, const OFString &codingSchemeDesignator, const OFString &codeMeaning); /** 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). ** @param codeValue identifier of the code to be set that is unambiguous * within the coding scheme. (VR=SH, mandatory) * @param codingSchemeDesignator textual identifier of the table where the 'codeValue' * is linked to its 'codeMeaning'. (VR=SH, mandatory) * Designators beginning with "99" and the designator * "L" are defined to be private or local coding schemes. * @param codingSchemeVersion version of the coding scheme. Used when a coding * scheme has multiple versions and the 'codingScheme * Designator' does not explicitly (or adequately) * specify the version number. (VR=SH, optional) * @param codeMeaning human-readable translation of the 'codeValue'. Used * for display when code dictionary is not available. * (VR=LO, mandatory) ** @return status, EC_Normal if successful, an error code otherwise */ OFCondition setCode(const OFString &codeValue, const OFString &codingSchemeDesignator, const OFString &codingSchemeVersion, const OFString &codeMeaning); /** check if this value contains non-ASCII characters. * @return true if value contains non-ASCII characters, false otherwise */ OFBool valueContainsExtendedCharacters() const; protected: /** get pointer to code value ** @return pointer to code value (never NULL) */ inline DSRCodedEntryValue *getValuePtr() { return this; } /** read code from dataset ** @param dataset DICOM dataset from which the code should be read * @param logStream pointer to error/warning output stream (output disabled if NULL) * @param moduleName optional module name (sequence) from which the item is read ** @return status, EC_Normal if successful, an error code otherwise */ OFCondition readItem(DcmItem &dataset, OFConsole *logStream, const char *moduleName = NULL); /** write code to dataset ** @param dataset DICOM dataset to which the code should be written * @param logStream pointer to error/warning output stream (output disabled if NULL) ** @return status, EC_Normal if successful, an error code otherwise */ OFCondition writeItem(DcmItem &dataset, OFConsole *logStream) const; /** 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. ** @param codeValue code value to be checked * @param codingSchemeDesignator coding scheme designator to be checked * @param codeMeaning code meaning tobe checked ** @return OFTrue if code is valid, OFFalse otherwise */ OFBool checkCode(const OFString &codeValue, const OFString &codingSchemeDesignator, const OFString &codeMeaning) const; private: /// code value (VR=SH, mandatory) OFString CodeValue; /// coding scheme designator (VR=SH, mandatory) OFString CodingSchemeDesignator; /// coding scheme version (VR=SH, optional) OFString CodingSchemeVersion; /// code meaning (VR=LO, mandatory) OFString CodeMeaning;};#endif/* * CVS/RCS Log: * $Log: dsrcodvl.h,v $ * Revision 1.16 2005/12/08 16:04:52 meichel * Changed include path schema for all DCMTK header files * * Revision 1.15 2004/11/22 16:39:09 meichel * Added method that checks if the SR document contains non-ASCII characters * in any of the strings affected by SpecificCharacterSet. * * Revision 1.14 2003/12/16 15:56:53 joergr * Added note on coding scheme identfication and private coding schemes. * * Revision 1.13 2003/12/11 17:14:28 joergr * Adapted documentation of print() method to new output format of CodingScheme * Version (square brackets instead of comma to separate from CodingScheme). * * Revision 1.12 2003/09/10 13:16:13 joergr * Replaced PrivateCodingSchemeUID by new CodingSchemeIdenticationSequence as * required by CP 324. * * Revision 1.11 2003/08/07 17:31:00 joergr * Removed libxml dependency from header files. Simplifies linking (MSVC). * * Revision 1.10 2003/08/07 12:20:48 joergr * Added readXML functionality. * * Revision 1.9 2001/09/26 13:04:04 meichel * Adapted dcmsr to class OFCondition * * Revision 1.8 2001/06/01 15:50:59 meichel * Updated copyright header * * Revision 1.7 2000/11/09 20:32:07 joergr * Added support for non-ASCII characters in HTML 3.2 (use numeric value). * * Revision 1.6 2000/11/06 11:14:55 joergr * Updated comments/formatting. * * Revision 1.5 2000/11/01 16:12:55 joergr * Added support for conversion to XML. * * Revision 1.4 2000/10/23 15:08:33 joergr * Added/updated doc++ comments. * * Revision 1.3 2000/10/19 16:02:13 joergr * Renamed some set methods. * Added optional module name to read method to provide more detailed warning * messages. * * Revision 1.2 2000/10/18 17:00:29 joergr * Added methods allowing direct access to certain content item values. * Added doc++ comments. * * Revision 1.1 2000/10/13 07:49:23 joergr * Added new module 'dcmsr' providing access to DICOM structured reporting * documents (supplement 23). Doc++ documentation not yet completed. * * */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -