7 #include "fwGdcmIO/writer/ie/Study.hpp" 9 #include "fwGdcmIO/helper/DicomDataWriter.hxx" 11 #include <fwMedData/Study.hpp> 24 const ::fwMedData::Study::csptr& study,
25 const ::fwLog::Logger::sptr& logger,
26 ProgressCallback progress,
27 CancelRequestedCallback cancel) :
29 logger, progress, cancel)
44 ::gdcm::DataSet& dataset =
m_writer->GetFile().GetDataSet();
47 ::fwGdcmIO::helper::DicomDataWriter::setTagValue< 0x0008, 0x0020 >(
m_object->getDate(), dataset);
50 ::fwGdcmIO::helper::DicomDataWriter::setTagValue< 0x0008, 0x0030 >(
m_object->getTime(), dataset);
53 ::fwGdcmIO::helper::DicomDataWriter::setTagValue< 0x0008, 0x0050 >(
"", dataset);
56 ::fwGdcmIO::helper::DicomDataWriter::setTagValue< 0x0008, 0x1030 >(
m_object->getDescription(), dataset);
59 ::fwGdcmIO::helper::DicomDataWriter::setTagValue< 0x0020, 0x000d >(
m_object->getInstanceUID(), dataset);
62 ::fwGdcmIO::helper::DicomDataWriter::setTagValue< 0x0020, 0x0010 >(
"Unknown", dataset);
65 ::fwGdcmIO::helper::DicomDataWriter::setTagValue< 0x0008, 0x0090 >(
m_object->getReferringPhysicianName(), dataset);
73 ::gdcm::DataSet& dataset =
m_writer->GetFile().GetDataSet();
76 ::fwGdcmIO::helper::DicomDataWriter::setTagValue< 0x0010, 0x1010 >(
m_object->getPatientAge(), dataset);
virtual FWGDCMIO_API void writePatientStudyModule()
Write Patient Study Module tags.
Namespace containing medical data.
virtual FWGDCMIO_API ~Study()
Destructor.
This class defines a DICOM SOP instance. It is useful during the whole writing process. This class allows to share data between module writers.
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
FWGDCMIO_API Study(const std::shared_ptr< ::gdcm::Writer > &writer, const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > &instance, const ::fwMedData::Study::csptr &study, const ::fwLog::Logger::sptr &logger=nullptr, ProgressCallback progress=nullptr, CancelRequestedCallback cancel=nullptr)
Constructor.
Study Information Entity class.
virtual FWGDCMIO_API void writeGeneralStudyModule()
Write General Study Module tags.