56#include <FMEThirdPartyWarningsDisable.h>
57#include "dcmtk/config/osconfig.h"
58#include "dcmtk/ofstd/ofstream.h"
59#include "dcmtk/dcmdata/dcfilefo.h"
60#include <FMEThirdPartyWarningsRestore.h>
132 void _addMainParameterFields();
135 void _addMainDICOMTagFields();
230 void _addTextSectionFields();
233 NumDocumentSections = 5
236 EnumField *_codingValueAndMeaningFld[NumDocumentSections];
238 StringField *_codeMeaningFld[NumDocumentSections];
240 BoolField *_openSubSectionFld[NumDocumentSections];
242 BoolField *_closeSubSectionFld[NumDocumentSections];
244 StringField *_subSectionContainerTitleFld[NumDocumentSections];
246 StringField *_subSectionTitleFld[NumDocumentSections];
248 StringField *_subSectionTextFld[NumDocumentSections];
250 StringField *_sectionTextFld[NumDocumentSections];
254 void _addInputConnectorFields();
258 NumInputConnectorFields = 10
262 StringField *_inputFld[NumInputConnectorFields];
Project global and OS specific declarations.
#define MLDICOMOUTPUTS_EXPORT
DLL export macro definition.
Creates and composes a DICOM structured report and exports it to different file formats or fields....
Field to encapsulate a boolean value.
Manages the module field interface according to DICOM General Equipment, C.7.5.1.
Manages the module field interface according to DICOM General Image, C.7.6.1.
Manages the module field interface according to DICOM General Series, C.7.3.1.
Manages the module field interface according to DICOM General Study, C.7.1.3.
Manages the module field interface according to DICOM Patient Module, C.7.1.1.
std::string _checkConsistency() const override
Checks for invalid parameters which could cause problems in document creation and return textual desc...
void _save() override
Creates a structured report DICOM objects and saves it in the file given by _fileNameFld.
DicomSRSave()
Constructor.
static void checkOFCondition(const OFCondition &cond, const std::string &loc)
Check the passed condition cond for bad(), and if yes, then an ML error message is generated includin...
void _inheritFieldValuesFromDCMTree(DCMTree::Const_TreePtr dcmTree) override
Overloads base class field inheritance and adds the additional tags needed by this class.
void _updateDumps(const std::string &fileName, std::string &statusStr)
Update short and long XML dump fields from SR document fileName and append possible errors to statusS...
void activateAttachments() override
Updates the internal module state after loading or cloning the module, and enables notification handl...
StringField & getShortInfoField() const
StringField & getLongXMLInfoField() const
Field access, see corresponding field for details.
const BoolField & getSaveAsDCMField() const
const BoolField & getSaveAsXMLField() const
void handleNotification(Field *field) override
Handles field changes of the field field.
std::string _applyFieldAddOns(const OFString &absoluteFullFilePath)
Applies tags as specified by FieldAddOns to the file absoluteFullFilePath which is overwritten.
static OFString toOFString(std::string str)
Converts an std::string to an OFString and replaced tabs by four spaces.
virtual std::string _setUpTreeContent()=0
Allows the user to apply changes to the tree before it is saved; called after _updateInputState() and...
Field to encapsulate an enumerated value.
Base class for all fields used in the ML.
The class PagedImage, representing a fragmented image that manages properties and data of an image lo...
Field to encapsulate a string value.
#define ML_MODULE_CLASS_HEADER(className)
Similar to ML_CLASS_HEADER for the usage of derived classes from Module.
Header file for the ML module base class DicomGeneralEquipmentModuleTagInterface.
Header file for the ML module base class DicomGeneralImageModuleTagInterface.
Header file for the ML module base class DicomGeneralSeriesModuleTagInterface.
Header file for the ML module base class DicomGeneralStudyModuleTagInterface.
Header file for the ML module base class DicomPatientModuleTagInterface.
Header file for the ML module base class DicomSaveBase.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
boost::shared_ptr< const Tree > Const_TreePtr