7 #include "fwGdcmIO/writer/ie/Equipment.hpp" 9 #include "fwGdcmIO/helper/DicomDataWriter.hxx" 11 #include <fwMedData/Equipment.hpp> 13 #include <fwRuntime/profile/Profile.hpp> 26 const ::fwMedData::Equipment::csptr& equipment,
27 const ::fwLog::Logger::sptr& logger,
28 ProgressCallback progress,
29 CancelRequestedCallback cancel) :
31 logger, progress, cancel)
46 ::gdcm::DataSet& dataset =
m_writer->GetFile().GetDataSet();
49 ::fwGdcmIO::helper::DicomDataWriter::setTagValue< 0x0008, 0x0070 >(
"FW4SPL", dataset);
52 const std::string& institutName =
m_object->getInstitutionName();
53 ::fwGdcmIO::helper::DicomDataWriter::setTagValue< 0x0008, 0x0080 >(institutName, dataset);
56 const auto profile = ::fwRuntime::profile::getCurrentProfile();
57 const std::string softwareVersion = profile ? profile->getName() +
" " + profile->getVersion() :
"Unknown";
60 ::gdcm::Attribute< 0x0018, 0x1020 > attribute;
61 attribute.SetNumberOfValues(1);
62 attribute.SetValue(softwareVersion);
63 dataset.Insert(attribute.GetAsDataElement());
71 ::gdcm::DataSet& dataset =
m_writer->GetFile().GetDataSet();
74 ::fwGdcmIO::helper::DicomDataWriter::setTagValue< 0x0008, 0x1090 >(
"FW4SPL_FWGDCMIO", dataset);
77 std::string deviceSerialNumber = std::string(FWGDCMIO_VER);
78 ::fwGdcmIO::helper::DicomDataWriter::setTagValue< 0x0018, 0x1000 >(deviceSerialNumber, dataset);
Equipment Information Entity class.
Namespace containing medical data.
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 Equipment(const std::shared_ptr< ::gdcm::Writer > &writer, const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > &instance, const ::fwMedData::Equipment::csptr &equipment, const ::fwLog::Logger::sptr &logger=nullptr, ProgressCallback progress=nullptr, CancelRequestedCallback cancel=nullptr)
Constructor.
virtual FWGDCMIO_API void writeGeneralEquipmentModule()
Write General Equipment Module tags.
virtual FWGDCMIO_API ~Equipment()
Destructor.
virtual FWGDCMIO_API void writeEnhancedGeneralEquipmentModule()
Write Enhanced General Equipment Module tags.