Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
vtkCodedEntry Class Reference

Simple class for storing standard coded entries (coding scheme, value, meaning triplets) More...

#include <Libs/MRML/Core/vtkCodedEntry.h>

Inheritance diagram for vtkCodedEntry:
Collaboration diagram for vtkCodedEntry:

Public Types

typedef vtkObject Superclass
 

Public Member Functions

virtual void Copy (vtkCodedEntry *aEntry)
 Copy one type into another.
 
std::string GetAsPrintableString ()
 
std::string GetAsString ()
 
virtual const char * GetClassName ()
 
virtual char * GetCodeMeaning ()
 
virtual char * GetCodeValue ()
 
virtual char * GetCodingSchemeDesignator ()
 
virtual std::vector< std::string > GetValueSchemeMeaning ()
 Convenience function for getting code value, coding scheme, and code meaning as a string vector.
 
virtual void Initialize ()
 Reset state of object.
 
virtual int IsA (const char *type)
 
virtual bool IsEmpty ()
 All fields are empty.
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
virtual void SetCodeMeaning (const char *)
 
virtual void SetCodeValue (const char *)
 
virtual void SetCodingSchemeDesignator (const char *)
 
bool SetFromString (const std::string &content)
 
virtual void SetValueSchemeMeaning (const std::string &value, const std::string &scheme, const std::string &meaning)
 Convenience function for setting code value, coding scheme, and code meaning with a single method call.
 
virtual bool SetValueSchemeMeaning (const std::vector< std::string > &valueSchemeMeaning)
 Convenience function for setting code value, coding scheme, and code meaning with a single method call from a string vector.
 

Static Public Member Functions

static bool AreEqual (vtkCodedEntry *entry1, vtkCodedEntry *entry2)
 Returns true if the two coded entries have the same content.
 
static int IsTypeOf (const char *type)
 
static vtkCodedEntryNew ()
 
static vtkCodedEntrySafeDownCast (vtkObject *o)
 

Protected Member Functions

void operator= (const vtkCodedEntry &)
 
 vtkCodedEntry ()
 
 vtkCodedEntry (const vtkCodedEntry &)
 
 ~vtkCodedEntry () override
 

Protected Attributes

char * CodeMeaning {nullptr}
 
char * CodeValue {nullptr}
 
char * CodingSchemeDesignator {nullptr}
 

Detailed Description

Simple class for storing standard coded entries (coding scheme, value, meaning triplets)

vtkCodedEntry is a lightweight class that stores standard coded entries consisting of CodingSchemeDesignator + CodeValue + CodeMeaning triplets. This is a commonly used concept in DICOM, see chapter 3: Encoding of Coded Entry Data (https://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_8.3.html).

Definition at line 29 of file vtkCodedEntry.h.

Member Typedef Documentation

◆ Superclass

typedef vtkObject vtkCodedEntry::Superclass

Definition at line 34 of file vtkCodedEntry.h.

Constructor & Destructor Documentation

◆ vtkCodedEntry() [1/2]

vtkCodedEntry::vtkCodedEntry ( )
protected

◆ ~vtkCodedEntry()

vtkCodedEntry::~vtkCodedEntry ( )
overrideprotected

◆ vtkCodedEntry() [2/2]

vtkCodedEntry::vtkCodedEntry ( const vtkCodedEntry & )
protected

Member Function Documentation

◆ AreEqual()

static bool vtkCodedEntry::AreEqual ( vtkCodedEntry * entry1,
vtkCodedEntry * entry2 )
static

Returns true if the two coded entries have the same content.

◆ Copy()

virtual void vtkCodedEntry::Copy ( vtkCodedEntry * aEntry)
virtual

Copy one type into another.

Reimplemented in vtkSlicerTerminologyCategory, and vtkSlicerTerminologyType.

◆ GetAsPrintableString()

std::string vtkCodedEntry::GetAsPrintableString ( )

Get content of the object as a single human-readable string. Example: ([hnsf'U], UCUM, "Hounsfield unit")

◆ GetAsString()

std::string vtkCodedEntry::GetAsString ( )

Get content of the object as a single machine-readable string. Example: CodeValue:[hnsf'U]|CodingSchemeDesignator:UCUM|CodeMeaning:Hounsfield unit

◆ GetClassName()

virtual const char * vtkCodedEntry::GetClassName ( )
virtual

◆ GetCodeMeaning()

virtual char * vtkCodedEntry::GetCodeMeaning ( )
virtual

Code Meaning is text that has meaning to a human and conveys the meaning of the term defined by the combination of Code Value and Coding Scheme Designator. Though such a meaning can be "looked up" in the dictionary for the coding scheme, it is encoded for the convenience of applications that do not have access to such a dictionary.

◆ GetCodeValue()

virtual char * vtkCodedEntry::GetCodeValue ( )
virtual

Code Value (DICOM tag (0008,0100)) is an identifier that is unambiguous within the Coding Scheme denoted by Coding Scheme Designator and Coding Scheme Version.

◆ GetCodingSchemeDesignator()

virtual char * vtkCodedEntry::GetCodingSchemeDesignator ( )
virtual

Coding Scheme Designator identifies the coding scheme in which the code for a term is defined. Standard coding scheme designators used in DICOM information interchange are listed in PS3.16. Other coding scheme designators, for both private and public coding schemes, may be used, in accordance with PS3.16.

◆ GetValueSchemeMeaning()

virtual std::vector< std::string > vtkCodedEntry::GetValueSchemeMeaning ( )
virtual

Convenience function for getting code value, coding scheme, and code meaning as a string vector.

◆ Initialize()

virtual void vtkCodedEntry::Initialize ( )
virtual

Reset state of object.

Reimplemented in vtkSlicerTerminologyCategory, and vtkSlicerTerminologyType.

◆ IsA()

virtual int vtkCodedEntry::IsA ( const char * type)
virtual

◆ IsEmpty()

virtual bool vtkCodedEntry::IsEmpty ( )
virtual

All fields are empty.

◆ IsTypeOf()

static int vtkCodedEntry::IsTypeOf ( const char * type)
static

◆ New()

static vtkCodedEntry * vtkCodedEntry::New ( )
static

◆ operator=()

void vtkCodedEntry::operator= ( const vtkCodedEntry & )
protected

◆ PrintSelf()

void vtkCodedEntry::PrintSelf ( ostream & os,
vtkIndent indent )
override

◆ SafeDownCast()

static vtkCodedEntry * vtkCodedEntry::SafeDownCast ( vtkObject * o)
static

◆ SetCodeMeaning()

virtual void vtkCodedEntry::SetCodeMeaning ( const char * )
virtual

◆ SetCodeValue()

virtual void vtkCodedEntry::SetCodeValue ( const char * )
virtual

◆ SetCodingSchemeDesignator()

virtual void vtkCodedEntry::SetCodingSchemeDesignator ( const char * )
virtual

◆ SetFromString()

bool vtkCodedEntry::SetFromString ( const std::string & content)

Set content of the object from a single machine-readable string. Example input: CodeValue:[hnsf'U]|CodingSchemeDesignator:UCUM|CodeMeaning:Hounsfield unit

Returns
true on success

◆ SetValueSchemeMeaning() [1/2]

virtual void vtkCodedEntry::SetValueSchemeMeaning ( const std::string & value,
const std::string & scheme,
const std::string & meaning )
virtual

Convenience function for setting code value, coding scheme, and code meaning with a single method call.

◆ SetValueSchemeMeaning() [2/2]

virtual bool vtkCodedEntry::SetValueSchemeMeaning ( const std::vector< std::string > & valueSchemeMeaning)
virtual

Convenience function for setting code value, coding scheme, and code meaning with a single method call from a string vector.

Member Data Documentation

◆ CodeMeaning

char* vtkCodedEntry::CodeMeaning {nullptr}
protected

Definition at line 105 of file vtkCodedEntry.h.

◆ CodeValue

char* vtkCodedEntry::CodeValue {nullptr}
protected

Definition at line 103 of file vtkCodedEntry.h.

◆ CodingSchemeDesignator

char* vtkCodedEntry::CodingSchemeDesignator {nullptr}
protected

Definition at line 104 of file vtkCodedEntry.h.


The documentation for this class was generated from the following file: