DCMTK Version 3.6.8
OFFIS DICOM Toolkit
|
DCMR Context Group with enhanced functionality: CID 4031 - Common Anatomic Region. More...
Public Member Functions | |
CID4031e_CommonAnatomicRegion (const DSRCodedEntryValue &selectedValue=DSRCodedEntryValue()) | |
(default) constructor More... | |
CID4031e_CommonAnatomicRegion (const EnumType selectedValue, const OFBool enhancedEncodingMode=OFFalse) | |
constructor More... | |
CID4031e_CommonAnatomicRegion (const OFString &selectedValue, const OFBool enhancedEncodingMode=OFFalse) | |
constructor More... | |
virtual OFCondition | selectValue (const OFString &selectedValue, const OFBool enhancedEncodingMode=OFFalse) |
select a coded entry given by its associated defined term as the current value More... | |
virtual OFCondition | selectValue (const EnumType selectedValue, const OFBool enhancedEncodingMode=OFFalse) |
select a coded entry given by its type as the current value More... | |
virtual OFCondition | selectValue (const DSRCodedEntryValue &codedEntryValue, const OFBool check=OFTrue, const OFBool definedContextGroup=OFFalse) |
select a given coded entry as the current value More... | |
![]() | |
CID4031_CommonAnatomicRegion (const DSRCodedEntryValue &selectedValue=DSRCodedEntryValue()) | |
(default) constructor More... | |
CID4031_CommonAnatomicRegion (const EnumType selectedValue, const OFBool enhancedEncodingMode=OFFalse) | |
constructor More... | |
virtual OFCondition | selectValue (const EnumType selectedValue, const OFBool enhancedEncodingMode=OFFalse) |
select a coded entry given by its type as the current value More... | |
virtual OFCondition | selectValue (const DSRCodedEntryValue &codedEntryValue, const OFBool check=OFTrue, const OFBool definedContextGroup=OFFalse) |
select a given coded entry as the current value More... | |
virtual OFCondition | findCodedEntry (const DSRCodedEntryValue &codedEntryValue) const |
search for a given coded entry in this context group. More... | |
virtual OFCondition | findCodedEntry (const DSRCodedEntryValue &searchForCodedEntry, DSRCodedEntryValue *foundCodedEntry, const OFBool enhancedEncodingMode=OFFalse) const |
search for a given coded entry in this context group More... | |
![]() | |
operator const DSRCodedEntryValue & () const | |
conversion operator that returns the currently selected coded entry value (might be empty if none is selected) | |
virtual void | clear () |
clear list of extended coded entries and forget about the currently selected coded entry | |
OFBool | isExtensible () const |
check whether context group is extensible More... | |
void | setExtensible (const OFBool mode=OFTrue) |
change mode specifying whether the context group is extensible or non-extensible More... | |
const OFString & | getIdentifier () const |
get context identifier More... | |
const OFString & | getMappingResource () const |
get mapping resource More... | |
const OFString & | getVersion () const |
get context group version (optional) More... | |
const OFString & | getUID () const |
get context group UID (optional) More... | |
virtual OFBool | hasSelectedValue () const |
check whether a coded entry is selected as the current value More... | |
const DSRCodedEntryValue & | getSelectedValue () const |
get currently selected coded entry value (optional) More... | |
virtual OFCondition | selectValue (const DSRCodedEntryValue &codedEntryValue, const OFBool check=OFTrue, const OFBool definedContextGroup=OFFalse) |
select a given coded entry as the current value More... | |
virtual OFBool | hasCodedEntry (const DSRCodedEntryValue &codedEntryValue) const |
check whether a given coded entry is contained in this context group. More... | |
virtual OFCondition | findCodedEntry (const DSRCodedEntryValue &codedEntryValue) const |
search for a given coded entry in this context group. More... | |
virtual OFBool | hasExtendedCodedEntries () const |
check whether this context group has any extended coded entries. More... | |
virtual OFCondition | addCodedEntry (const DSRCodedEntryValue &codedEntryValue) |
add a coded entry to this context group as an extension, i.e. as a non-standard code. More... | |
virtual OFCondition | lookupCodedEntry (DSRCodedEntryValue &codedEntryValue, const OFBool enhancedEncodingMode=OFFalse) const |
search for a given coded entry in this context group and, if found, replace its value with the one found in the context group. More... | |
virtual void | print (STD_NAMESPACE ostream &stream) const |
print contents of this context group, i.e. a general header, the currently selected coded entry value (if any) and all coded entries that are contained in this context group (both standard and extended ones). More... | |
virtual OFCondition | checkSelectedValue (const OFBool definedContextGroup=OFFalse) const |
check whether the currently selected coded entry is valid. More... | |
Static Public Member Functions | |
static DSRCodedEntryValue | mapBodyPartExamined (const OFString &definedTerm, const OFBool enhancedEncodingMode=OFFalse) |
map a defined term for Body Part Examined (0018,0015) to the associated coded entry. More... | |
static OFCondition | mapBodyPartExamined (const OFString &definedTerm, DSRCodedEntryValue &codedEntryValue, const OFBool enhancedEncodingMode=OFFalse) |
map a defined term for Body Part Examined (0018,0015) to the associated coded entry. More... | |
![]() | |
static void | initialize () |
initialize this context group explicitly. More... | |
static void | cleanup () |
cleanup this context group, i.e. delete the internal list of standard coded entries. More... | |
static DSRCodedEntryValue | getCodedEntry (const EnumType value, const OFBool enhancedEncodingMode=OFFalse) |
map a given type to the associated coded entry More... | |
Additional Inherited Members | |
![]() | |
enum | EnumType { Abdomen , AbdomenAndPelvis , AcromioclavicularJoint , AnkleJoint , Anus , ApexOfLung , BileDuct , BiliaryTract , Bladder , BoneOfLowerLimb , BoneOfUpperLimb , Breast , Bronchus , Calcaneus , CervicalSpine , CervicoThoracicSpine , Chest , ChestAndAbdomen , ChestAbdomenAndPelvis , Clavicle , Coccyx , Colon , CommonBileDuct , Duodenum , ElbowJoint , EntireBody , Esophagus , EsophagusStomachAndDuodenum , Extremity , Eye , EyeRegion , FacialBones , Femur , Fibula , Finger , Foot , Forearm , Gallbladder , Hand , Head , HeadAndNeck , Heart , Hip , HipJoint , Humerus , Ileum , Ilium , InternalAuditoryCanal , JawRegion , Jejunum , Knee , LargeIntestine , Larynx , LiverAndBiliaryStructure , LowerLeg , LowerLimb , LumbarSpine , LumboSacralSpine , Mandible , MastoidBone , Maxilla , Mediastinum , MuscleOfLowerLimb , MuscleOfUpperLimb , NasalBone , Neck , NeckAndChest , NeckChestAndAbdomen , NeckChestAbdomenAndPelvis , OpticCanal , OrbitalStructure , Pancreas , PancreaticDuct , PancreaticDuctAndBileDuctSystems , ParanasalSinus , ParotidGland , Patella , Pelvis , PelvisAndLowerExtremities , Phantom , Prostate , Rectum , Rib , SacroCoccygealSpine , SacroiliacJoint , Sacrum , Scapula , SellaTurcica , SesamoidBonesOfFoot , Shoulder , Skull , SmallIntestine , Spine , SternoclavicularJoint , Sternum , Stomach , SubmandibularGland , TarsalJoint , TemporomandibularJoint , Thigh , ThoracicSpine , ThoracoLumbarSpine , Thumb , Toe , Trachea , UpperArm , UpperLimb , UpperUrinaryTract , Ureter , Urethra , UterusAndFallopianTubes , VertebralColumnAndCranium , WristJoint , Zygoma } |
types of common anatomic region More... | |
![]() | |
typedef OFMap< EnumType, DSRBasicCodedEntry > | CodeList |
type used for storing and managing the coded entries | |
![]() | |
virtual void | printCodes (STD_NAMESPACE ostream &stream) const |
print details on coded entries that are contained in this context group. More... | |
virtual OFCondition | findCodedEntry (const DSRCodedEntryValue &searchForCodedEntry, DSRCodedEntryValue *foundCodedEntry, const OFBool enhancedEncodingMode=OFFalse) const |
search for a given coded entry in this context group More... | |
![]() | |
DSRContextGroup (const OFString &contextIdentifier, const OFString &mappingResource, const OFString &contextGroupVersion="", const OFString &contextGroupUID="", const DSRCodedEntryValue &selectedValue=DSRCodedEntryValue()) | |
constructor More... | |
virtual | ~DSRContextGroup () |
destructor | |
virtual void | printHeader (STD_NAMESPACE ostream &stream) const |
print header with some general information on this context group More... | |
virtual void | printCodes (STD_NAMESPACE ostream &stream) const |
print details on coded entries that are contained in this context group. More... | |
virtual OFCondition | findCodedEntry (const DSRCodedEntryValue &searchForCodedEntry, DSRCodedEntryValue *foundCodedEntry, const OFBool enhancedEncodingMode=OFFalse) const |
search for a given coded entry in this context group More... | |
virtual OFCondition | checkCodedEntry (const DSRCodedEntryValue &codedEntryValue, const OFBool definedContextGroup) const |
check whether a given coded entry is valid. More... | |
![]() | |
static CodeList & | getCodes () |
get list of standard coded entries that are managed by this context group. More... | |
static OFCondition | setEnhancedEncodingMode (DSRCodedEntryValue &codedEntryValue) |
set the "Enhanced Encoding Mode" for a given coded entry More... | |
DCMR Context Group with enhanced functionality: CID 4031 - Common Anatomic Region.
CID4031e_CommonAnatomicRegion::CID4031e_CommonAnatomicRegion | ( | const DSRCodedEntryValue & | selectedValue = DSRCodedEntryValue() | ) |
(default) constructor
selectedValue | coded entry to be selected as the current value (optional). Should be a valid code according to the DICOM definitions for this context group, i.e. no checks are performed. Call DSRContextGroup::checkSelectedValue() if needed. |
CID4031e_CommonAnatomicRegion::CID4031e_CommonAnatomicRegion | ( | const EnumType | selectedValue, |
const OFBool | enhancedEncodingMode = OFFalse |
||
) |
constructor
selectedValue | type mapped to a coded entry that is selected as the current value |
enhancedEncodingMode | set enhanced encoding mode for coded entry (if enabled) |
CID4031e_CommonAnatomicRegion::CID4031e_CommonAnatomicRegion | ( | const OFString & | selectedValue, |
const OFBool | enhancedEncodingMode = OFFalse |
||
) |
constructor
selectedValue | defined term for Body Part Examined (0018,0015) mapped to a coded entry that is selected as the current value |
enhancedEncodingMode | set enhanced encoding mode for coded entry (if enabled) |
|
static |
map a defined term for Body Part Examined (0018,0015) to the associated coded entry.
See DICOM PS 3.16 Annex L (Correspondence of Anatomic Region Codes and Body Part Examined Defined Terms) for details on this mapping.
definedTerm | defined term that should be mapped to a coded entry |
enhancedEncodingMode | set enhanced encoding mode for coded entry (if enabled) |
|
static |
map a defined term for Body Part Examined (0018,0015) to the associated coded entry.
See DICOM PS 3.16 Annex L (Correspondence of Anatomic Region Codes and Body Part Examined Defined Terms) for details on this mapping.
definedTerm | defined term that should be mapped to a coded entry |
codedEntryValue | reference to variable where the resulting coded entry is stored. This variable is not cleared in case of error. |
enhancedEncodingMode | set enhanced encoding mode for coded entry (if enabled) |
|
virtual |
select a given coded entry as the current value
codedEntryValue | coded entry to be selected as the current value |
check | if enabled, check 'codedEntryValue' for validity and appropriateness before selecting it as the current value. See checkSelectedValue() for details. |
definedContextGroup | flag indicating whether this context group is used as a baseline (default) or defined context group. The first means that the list of coded entries in this context group is just a suggestion. The latter means that one of the coded entries should be used. |
Reimplemented from CID4031_CommonAnatomicRegion.
|
virtual |
select a coded entry given by its type as the current value
selectedValue | type mapped to a coded entry that is selected as the current value |
enhancedEncodingMode | set enhanced encoding mode for coded entry (if enabled) |
Reimplemented from CID4031_CommonAnatomicRegion.
|
virtual |
select a coded entry given by its associated defined term as the current value
selectedValue | defined term for Body Part Examined (0018,0015) mapped to a coded entry that is selected as the current value |
enhancedEncodingMode | set enhanced encoding mode for coded entry (if enabled) |