7 #include "fwGdcmIO/reader/ie/Study.hpp" 9 #include "fwGdcmIO/helper/DicomDataReader.hxx" 11 #include <fwMedData/DicomSeries.hpp> 12 #include <fwMedData/Study.hpp> 23 Study::Study(const ::fwMedData::DicomSeries::csptr& dicomSeries,
24 const SPTR(::gdcm::Reader)& reader,
25 const ::fwGdcmIO::container::DicomInstance::sptr& instance,
26 const ::fwMedData::Study::sptr& study,
27 const ::fwLog::Logger::sptr& logger,
28 ProgressCallback progress,
29 CancelRequestedCallback cancel) :
30 ::
fwGdcmIO::reader::ie::InformationEntity< ::
fwMedData::Study >(dicomSeries, reader, instance, study, logger,
43 void Study::readGeneralStudyModule()
46 const ::gdcm::DataSet& dataset = m_reader->GetFile().GetDataSet();
49 const std::string& studyDate = ::fwGdcmIO::helper::DicomDataReader::getTagValue< 0x0008, 0x0020 >(dataset);
50 m_object->setDate(studyDate);
53 const std::string& studyTime = ::fwGdcmIO::helper::DicomDataReader::getTagValue< 0x0008, 0x0030 >(dataset);
54 m_object->setTime(studyTime);
60 const std::string& description =
61 ::fwGdcmIO::helper::DicomDataReader::getTagValue< 0x0008, 0x1030 >(dataset);
62 m_object->setDescription(description);
65 const std::string& instanceUID =
66 ::fwGdcmIO::helper::DicomDataReader::getTagValue< 0x0020, 0x000d >(dataset);
67 m_object->setInstanceUID(instanceUID);
73 const std::string& referringPhysicianName =
74 ::fwGdcmIO::helper::DicomDataReader::getTagValue< 0x0008, 0x0090 >(dataset);
75 m_object->setReferringPhysicianName(referringPhysicianName);
80 void Study::readPatientStudyModule()
83 const ::gdcm::DataSet& dataset = m_reader->GetFile().GetDataSet();
86 const std::string& patientAge =
87 ::fwGdcmIO::helper::DicomDataReader::getTagValue< 0x0010, 0x1010 >(dataset);
88 m_object->setPatientAge(patientAge);
Namespace containing medical data.
FWGDCMIO_API Study(const std::shared_ptr< const ::fwMedData::DicomSeries > &dicomSeries, const std::shared_ptr< ::gdcm::Reader > &reader, const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > &instance, const ::fwMedData::Study::sptr &study, const ::fwLog::Logger::sptr &logger=nullptr, ProgressCallback progress=nullptr, CancelRequestedCallback cancel=nullptr)
Constructor.
virtual FWMEDDATA_API ~Study()
Destructor.
The namespace fwGdcmIO contains reader, writer and helper for dicom data.