MeVisLab Toolbox Reference
mlDicomPatientModuleTagInterface.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
5 
10 //----------------------------------------------------------------------------------
11 #pragma once
12 
16 
17 ML_START_NAMESPACE
18 
19 //----------------------------------------------------------------------------------
21 //----------------------------------------------------------------------------------
23 {
24 public:
27 
29  void addFields() override;
30 
32  void inheritValues(DCMTree::Const_TreePtr dcmTree) override;
33 
35  std::string applyModifications(DCMTree::TreePtr dcmTree,
36  const FieldContainer *treeInfos=nullptr) override;
37 
40 
42  std::string checkConsistency() const override;
43 
49 
54 
59 
64 
69 
78 };
79 
80 ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDICOMTAGINTERFACES_EXPORT
DLL export macro definition.
Provides control to copy/inherit a set of tag (values) from an input DCMTree, buffer it,...
The class DicomModifyFieldAddOnBase is dedicated to manage fields for ML modules and instances derive...
Manages the module field interface according to DICOM Patient Module, C.7.1.1.
std::string applyModifications(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr) override
See DicomModifyFieldAddOnBase::applyModifications() for documentation.
DicomPatientModuleTagInterface(Module &modRef)
Constructor, setting the reference of the module for which the fields shall be managed.
DicomCopyTagSetInterface _otherPatientDemographicTags
All other Patient Demographic tags not available in the interface.
EnumField * _patientBirthDateDayEnumFld
The day of month in which the patient was born as enumerator.
DicomCopyTagSetInterface _otherPatientRelationshipTags
All other Patient Relationship tags not available in the interface.
void addFields() override
Add fields to field container of module.
StringField * _patientIDFld
String/number used to identify the patient.
std::string checkConsistency() const override
Checks for invalid parameters; return textual description on error, or empty string on success.
StringField * _patientBirthDateMonthStringFld
The month in which the patient was born as string.
StringField * _patientBirthDateYearStringFld
The year in which the patient was born as string.
EnumField * _patientBirthDateMonthEnumFld
The month in which the patient was born as enumerator.
EnumField * _patientSexEnumFld
The sex of the patient selectable as enumerator.
StringField * _patientSexStringFld
The final sex string of the patient.
FieldAddOnBase::FieldChangeState handleFieldChanges(Field *field) override
Handle field notifications.
DicomCopyTagSetInterface _otherPatientMedicalTags
All other Patient Medical tags not available in the interface.
DicomCopyTagSetInterface _otherPatientIdentificationTags
All other Patient Identification tags not available in the interface.
StringField * _patientBirthDateDayStringFld
The day of month in which the patient was born as string.
void inheritValues(DCMTree::Const_TreePtr dcmTree) override
Implements the copy of tag values from the given dcmTree to the fields.
EnumField * _patientBirthDateYearEnumFld
The year in which the patient was born as enumerator.
Field to encapsulate an enumerated value.
Definition: mlFields.h:363
FieldChangeState
Describes the type of a field changes detected in handleFieldChanges(Field *field).
Defines the class FieldContainer to encapsulate a vector of fields for (see class Field).
Base class for all fields used in the ML.
Definition: mlField.h:73
Base class for an image processing module of the ML.
Definition: mlModule.h:156
Field to encapsulate a string value.
Definition: mlFields.h:1000
Header file for the ML module base class DicomCopyTagSetInterface which provides control to copy/inhe...
Header file of the DicomModifyFieldAddOnBase class dedicated to manage fields for ML modules and inst...
boost::shared_ptr< const Tree > Const_TreePtr
Definition: DCMTree_Lib.h:73
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree
Definition: DCMTree_Lib.h:70