|
DCMTK Version 3.7.0
OFFIS DICOM Toolkit
|
This class handles common functions for the conversion of documents into encapsulated DICOM SOP instances. More...
Public Types | |
| enum | DocumentType { DT_pdfDocument , DT_cdaDocument , DT_stlDocument , DT_mtlDocument , DT_objDocument , DT_unknownDocument } |
| document type of encapsulated document More... | |
Public Member Functions | |
| DcmEncapsulatedDocument () | |
| Constructor. | |
| ~DcmEncapsulatedDocument () | |
| Destructor. | |
| void | addCommandlineOptions (OFCommandLine &cmd) const |
| Add CDA specific command line options to the OFCommandLine object passed to the constructor. | |
| void | parseArguments (OFConsoleApplication &app, OFCommandLine &cmd) |
| Parse and evaluate the given command line arguments. | |
| OFCondition | insertEncapsulatedDocument () |
| Identify document format and insert encapsulated document data into the dataset. | |
| OFCondition | createIdentifiers () |
| Get study or series data from series file. | |
| OFCondition | formatSpecificProcessing () |
| Perform format specific processing such as extracting information from the document content. | |
| OFCondition | createHeader () |
| Write header fields to the DICOM dataset. | |
| OFCondition | applyOverrideKeys () |
| Copy override keys over existing keys in given dataset. | |
| OFString | getInputFileName () |
| Returns the input file name. | |
| OFString | getOutputFileName () |
| Returns the output file name. | |
| OFCondition | saveFile () |
| Save the output file. | |
Private Member Functions | |
| OFCondition | getCDAData () |
| Retrieve patient, concept and document data from a CDA file and check for conflicts with series, study and user input. | |
| OFCondition | addFrameOfReferenceModule (DcmItem *dataset) |
| Add mandatory Frame of Reference Module attributes to dataset. | |
| OFCondition | addEnhancedGeneralEquipmentModule (DcmItem *dataset) |
| Add mandatory Enhanced General Equipment Module attributes to dataset. | |
| OFCondition | addManufacturing3DModelModule (DcmItem *dataset) |
| Add mandatory Manufacturing 3D Model Module attributes to dataset. | |
Private Attributes | |
| OFString | ifname_ |
| input file name | |
| OFString | ofname_ |
| output file name | |
| OFString | patientBirthdate_ |
| patient's birth date | |
| OFString | patientID_ |
| patient ID | |
| OFString | patientName_ |
| patient name | |
| OFString | patientSex_ |
| patient's sex | |
| OFString | conceptCM_ |
| document title: code meaning | |
| OFString | conceptCSD_ |
| document title: code scheme designator | |
| OFString | conceptCV_ |
| document title: code value | |
| OFString | documentTitle_ |
| document title | |
| OFString | seriesFile_ |
| file to read series data from | |
| OFString | seriesUID_ |
| series instance UID | |
| OFString | studyUID_ |
| study instance UID | |
| OFString | specificCharSet_ |
| specific character set (from series file) | |
| OFString | modality_ |
| modality (from series file) | |
| E_EncodingType | oenctype_ |
| DICOM sequence encoding: explicit or undefined length. | |
| E_FileWriteMode | writeMode_ |
| write mode for the DICOM file | |
| E_GrpLenEncoding | oglenc_ |
| handling of group length encoding | |
| E_PaddingEncoding | opadenc_ |
| handling of data set trailing padding | |
| E_TransferSyntax | oxfer_ |
| transfer syntax for the DICOM file | |
| OFCmdUnsignedInt | filepad_ |
| padding for the main dataset | |
| OFCmdUnsignedInt | itempad_ |
| padding for sequence items | |
| OFBool | readSeriesInfo_ |
| true if we are supposed to read series information from another DICOM file | |
| OFBool | annotation_ |
| burned-in annotation present? | |
| OFBool | increment_ |
| increment instance number from given DICOM series file? | |
| OFCmdSignedInt | instance_ |
| instance number | |
| OFList< OFString > | overrideKeys_ |
| list of DICOM attributes and attribute values to be applied after conversion | |
| OFString | cda_mediaTypes |
| CDA media types. | |
| OFString | hl7_InstanceIdentifier |
| CDA instance identifier. | |
| OFBool | override_ |
| should CDA header values override DICOM values? | |
| OFString | frameOfReferenceUID_ |
| frame of reference UID | |
| OFString | positionReferenceIndicator_ |
| position reference indicator | |
| OFString | manufacturer_ |
| manufacturer | |
| OFString | manufacturerModelName_ |
| manufacturer's model name | |
| OFString | deviceSerialNumber_ |
| device serial number | |
| OFString | softwareVersions_ |
| software version(s) (VM 1-n) | |
| OFString | measurementUnitsCM_ |
| 3D model measurement units code meaning | |
| OFString | measurementUnitsCSD_ |
| 3D model measurement units code scheme designator | |
| OFString | measurementUnitsCV_ |
| 3D model measurement units code value | |
| DocumentType | ftype_ |
| Type of file currently being converted. | |
| DcmFileFormat | dfile_ |
| DICOM file. | |
This class handles common functions for the conversion of documents into encapsulated DICOM SOP instances.
| void DcmEncapsulatedDocument::addCommandlineOptions | ( | OFCommandLine & | cmd | ) | const |
Add CDA specific command line options to the OFCommandLine object passed to the constructor.
| cmd | a reference to an OFCommandLine object used to parse the command line argument give to the calling application. |
|
private |
Add mandatory Enhanced General Equipment Module attributes to dataset.
| dataset | output dataset |
|
private |
Add mandatory Frame of Reference Module attributes to dataset.
| dataset | output dataset |
|
private |
Add mandatory Manufacturing 3D Model Module attributes to dataset.
| dataset | output dataset |
| OFCondition DcmEncapsulatedDocument::applyOverrideKeys | ( | ) |
Copy override keys over existing keys in given dataset.
| OFCondition DcmEncapsulatedDocument::createHeader | ( | ) |
Write header fields to the DICOM dataset.
| OFCondition DcmEncapsulatedDocument::createIdentifiers | ( | ) |
Get study or series data from series file.
Generate UID if none present.
| OFCondition DcmEncapsulatedDocument::formatSpecificProcessing | ( | ) |
Perform format specific processing such as extracting information from the document content.
|
private |
Retrieve patient, concept and document data from a CDA file and check for conflicts with series, study and user input.
Also retrieve all mediatypes found in the CDA document.
| OFString DcmEncapsulatedDocument::getInputFileName | ( | ) |
Returns the input file name.
| OFString DcmEncapsulatedDocument::getOutputFileName | ( | ) |
Returns the output file name.
| OFCondition DcmEncapsulatedDocument::insertEncapsulatedDocument | ( | ) |
Identify document format and insert encapsulated document data into the dataset.
| void DcmEncapsulatedDocument::parseArguments | ( | OFConsoleApplication & | app, |
| OFCommandLine & | cmd ) |
Parse and evaluate the given command line arguments.
| app | a reference to an OFConsoleApplication object used in the calling application. |
| cmd | a reference to an OFCommandLine object used to parse the command line argument give to the calling application. |
| OFCondition DcmEncapsulatedDocument::saveFile | ( | ) |
Save the output file.