7 #include "fwGdcmIO/writer/ie/Patient.hpp" 9 #include "fwGdcmIO/helper/DicomDataWriter.hxx" 11 #include <fwMedData/Patient.hpp> 24 const ::fwMedData::Patient::csptr& patient,
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< 0x0010, 0x0010 >(
m_object->getName(), dataset);
50 ::fwGdcmIO::helper::DicomDataWriter::setTagValue< 0x0010, 0x0020 >(
m_object->getPatientId(), dataset);
53 ::fwGdcmIO::helper::DicomDataWriter::setTagValue< 0x0010, 0x0030 >(
m_object->getBirthdate(), dataset);
56 ::fwGdcmIO::helper::DicomDataWriter::setTagValue< 0x0010, 0x0040 >(
m_object->getSex(), dataset);
Namespace containing medical data.
virtual FWGDCMIO_API void writePatientModule()
Write Patient Module tags.
virtual FWGDCMIO_API ~Patient()
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.
Patient Information Entity class.
FWGDCMIO_API Patient(const std::shared_ptr< ::gdcm::Writer > &writer, const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > &instance, const ::fwMedData::Patient::csptr &patient, const ::fwLog::Logger::sptr &logger=nullptr, ProgressCallback progress=nullptr, CancelRequestedCallback cancel=nullptr)
Constructor.