NAME
DicomWriter - A module to create a dicom file from dicom fields
SYNOPSIS
use DicomPack::IO::DicomWriter;
my $dicomFields = ...; # dicomFields is the output of DicomReader->getDicomField().
my $writer = DicomWeader->new($dicomFields); # dicomFields can be undefined.
# set PatientName to a new value
$writer->setValue("PatientName", "DicomTest");
# assign a value to "300a,0230/x/300b,100". 'x' used to add a new sequence item
$writer->setValue("300a,0230/x/300b,100", "aValue");
# use the current Dicom field structure to create a Dicom file.
$writer->flush($dicomFile);
DESCRIPTION
This module creates a Dicom file.
Methods
new
-
Returns a new DicomWriter object.
setValue
-
Set or change the value of a specified Dicom field, or create a dicom field. If sequence number is 'x', add a new sequence item.
flush
-
Use the current Dicom field structure to create a new Dicom file.
showDicomField
-
Display the structure of a dicom field structure.
AUTHOR
Baoshe Zhang, MCV Medical School, Virginia Commonwealth University