37 bool useEnhancedSeriesNumber=
false,
38 const std::string &modality=
"",
39 bool forceSeriesInstanceUIDAsType1=
false);
Project global and OS specific declarations.
#define MLDICOMTAGINTERFACES_EXPORT
DLL export macro definition.
static const char *const LateralityStringValues[NumLateralityEnumerators]
String representations for the _lateralityFld enum.
StringField * _bodyPartExaminedFld
Value of possibly inherited BodyPartExamined tag.
StringField * _bodyPartExaminedValuesFld
Available values for _bodyPartExaminedFld.
const std::string _modality
If not empty then the content will be set as Modality tag, otherwise ignored.
StringField * _seriesNumberFld
Content of the corresponding DICOM tag definition.
BoolField * _inheritSeriesNumberFld
If true then the seriesNumber field is overwritten with inherited states, otherwise not.
LateralityValues
Enumerator for the laterality tag.
@ DoNotWriteLateralityTag
Do not write the tag at all.
@ WriteEmptyLateralityTag
Write the tag with empty value.
@ Left
Write the tag with value "L".
@ Right
Write the tag with value "R".
const bool _useEnhancedSeriesNumber
If true then Series Number will be checked to be non-empty.
FieldAddOnBase::FieldChangeState handleFieldChanges(Field *field) override
Handle field notifications.
static const char *const LateralityChecksStringValues[NumLateralityChecksEnumerators]
String representations for the LateralityChecksValues enum.
DicomGeneralSeriesModuleTagInterface(Module &modRef, bool useEnhancedSeriesNumber=false, const std::string &modality="", bool forceSeriesInstanceUIDAsType1=false)
@ NumLateralityChecksEnumerators
void inheritValues(DCMTree::Const_TreePtr dcmTree) override
Implements the copy of tag values from the given dcmTree to the fields.
static const char *const UnpairedBodyPartExaminedStringValues[NumUnpairedBodyPartExaminedValues]
String representations for the _unpairedBodyPartExaminedValuesFld.
DicomValueInheritAndCreateTagInterface _seriesInstanceUIDAddOn
Fields.
BodyPartExaminedValues
Available values for BodyPartExaminedValues.
LateralityChecksValues
Enumerator for modes of laterality checks tag.
@ AsWarning
Log a possible problem as console warning.
@ Ignore
Ignore any possible problem.
@ AsError
Handle a possible problem as error.
@ NumLateralityEnumerators
@ NumBodyPartExaminedValues
BoolField * _writeBodyPartExaminedFld
Enables/disabled whether bodyPartExamined shall be written or not.
BoolField * _useEmptyLateralityTagIfNotFoundOnInheritanceFld
EnumField * _lateralityFld
Laterality tag (0020,0060), type 2C.
EnumField * _lateralityChecksFld
void addFields() override
Add fields to field container of module.
@ NumUnpairedBodyPartExaminedValues
std::string checkConsistency() const override
Checks for invalid parameters; return textual description on error, or empty string on success.
DicomCopyTagSetInterface _otherGeneralSeriesTags
All other General Series tags not available in the interface, allow public access.
StringField * _seriesDescriptionFld
Describes the series for which this DICOM file is created.
std::string applyModifications(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr) override
See DicomModifyFieldAddOnBase::applyModifications() for documentation.
static const char *const BodyPartExaminedStringValues[NumBodyPartExaminedValues]
String representations for the _bodyPartExaminedValuesFld.
DicomModifyFieldAddOnBase(FieldContainer &fieldContainerRef, size_t numInstances=1, bool createInputModifyTagsPluginBaseConnectorField=false, bool createOutputModifyTagsPluginBaseConnectorField=false)
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.