Project global and OS specific declarations.
#define MLDICOMTAGINTERFACES_EXPORT
DLL export macro definition.
DicomModifyFieldAddOnBase(FieldContainer &fieldContainerRef, size_t numInstances=1, bool createInputModifyTagsPluginBaseConnectorField=false, bool createOutputModifyTagsPluginBaseConnectorField=false)
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.
PatientInheritMode
Enumerator for the _inheritValueFld.
@ DoNotInherit
Do not inherit value from input.
@ InheritFromTopLevel
Inherit value from top level of DCMTree or set empty if not found.
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.
StringField * _patientsNameFld
EnumField * _patientSexEnumFld
The sex of the patient selectable as enumerator.
static const char *const PatientInheritModeStrings[NumPatientInheritModes]
String representations for the _inheritModeFld.
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.
EnumField * _patientInheritModeFld
The way how values are inherited from possibly available input.
FieldChangeState
Describes the type of a field changes detected in handleFieldChanges(Field *field).
boost::shared_ptr< const Tree > Const_TreePtr
boost::shared_ptr< Tree > TreePtr
Shared pointer to a DCMTree::Tree.