diff --git a/Modules/DICOMQI/files.cmake b/Modules/DICOMQI/files.cmake index 8e4f8c670e..9e6e60ab42 100644 --- a/Modules/DICOMQI/files.cmake +++ b/Modules/DICOMQI/files.cmake @@ -1,4 +1,6 @@ set(CPP_FILES mitkDICOMQIPropertyHelper.cpp mitkDICOMQIIOMimeTypes.cpp + mitkDICOMPMConstants.cpp + mitkDICOMPMPropertyHelper.cpp ) diff --git a/Modules/DICOMQI/mitkDICOMPMConstants.cpp b/Modules/DICOMQI/mitkDICOMPMConstants.cpp new file mode 100644 index 0000000000..f07f39458f --- /dev/null +++ b/Modules/DICOMQI/mitkDICOMPMConstants.cpp @@ -0,0 +1,65 @@ +/*=================================================================== + +The Medical Imaging Interaction Toolkit (MITK) + +Copyright (c) German Cancer Research Center, +Division of Medical and Biological Informatics. +All rights reserved. + +This software is distributed WITHOUT ANY WARRANTY; without +even the implied warranty of MERCHANTABILITY or FITNESS FOR +A PARTICULAR PURPOSE. + +See LICENSE.txt or http://www.mitk.org for details. + +===================================================================*/ + +#include "mitkDICOMPMConstants.h" + +namespace mitk +{ + DICOMTagPath DICOMPMConstants::RWVM_SEQUENCE_PATH() + { + return DICOMTagPath().AddElement(0x0040, 0x9096); + } + DICOMTagPath DICOMPMConstants::UNITS_SEQUENCE_PATH() + { + return DICOMPMConstants::RWVM_SEQUENCE_PATH().AddElement(0x0040, 0x08EA); + } + DICOMTagPath DICOMPMConstants::UNITS_CODE_VALUE_PATH() + { + return DICOMPMConstants::UNITS_SEQUENCE_PATH().AddElement(0x0008, 0x0100); + } + DICOMTagPath DICOMPMConstants::UNITS_CODE_SCHEME_PATH() + { + return DICOMPMConstants::UNITS_SEQUENCE_PATH().AddElement(0x0008, 0x0102); + } + DICOMTagPath DICOMPMConstants::UNITS_CODE_MEANING_PATH() + { + return DICOMPMConstants::UNITS_SEQUENCE_PATH().AddElement(0x0008, 0x0104); + } + DICOMTagPath DICOMPMConstants::QUANTITY_DEFINITION_SEQUENCE_PATH() + { + return DICOMPMConstants::RWVM_SEQUENCE_PATH().AddElement(0x0040, 0x9220); + } + DICOMTagPath DICOMPMConstants::QUANTITY_DEFINITION_VALUE_TYPE_PATH() + { + return DICOMPMConstants::QUANTITY_DEFINITION_SEQUENCE_PATH().AddElement(0x0040, 0xA040); + } + DICOMTagPath DICOMPMConstants::QUANTITY_DEFINITION_CONCEPT_CODE_SEQUENCE_PATH() + { + return DICOMPMConstants::QUANTITY_DEFINITION_SEQUENCE_PATH().AddElement(0x0040, 0xA168); + } + DICOMTagPath DICOMPMConstants::QUANTITY_DEFINITION_CONCEPT_CODE_VALUE_PATH() + { + return DICOMPMConstants::QUANTITY_DEFINITION_CONCEPT_CODE_SEQUENCE_PATH().AddElement(0x0008, 0x0100); + } + DICOMTagPath DICOMPMConstants::QUANTITY_DEFINITION_CONCEPT_CODE_SCHEME_PATH() + { + return DICOMPMConstants::QUANTITY_DEFINITION_CONCEPT_CODE_SEQUENCE_PATH().AddElement(0x0008, 0x0102); + } + DICOMTagPath DICOMPMConstants::QUANTITY_DEFINITION_CONCEPT_CODE_MEANING_PATH() + { + return DICOMPMConstants::QUANTITY_DEFINITION_CONCEPT_CODE_SEQUENCE_PATH().AddElement(0x0008, 0x0104); + } +} diff --git a/Modules/DICOMQI/mitkDICOMPMConstants.h b/Modules/DICOMQI/mitkDICOMPMConstants.h new file mode 100644 index 0000000000..3a8d4298fe --- /dev/null +++ b/Modules/DICOMQI/mitkDICOMPMConstants.h @@ -0,0 +1,43 @@ +/*=================================================================== + +The Medical Imaging Interaction Toolkit (MITK) + +Copyright (c) German Cancer Research Center, +Division of Medical and Biological Informatics. +All rights reserved. + +This software is distributed WITHOUT ANY WARRANTY; without +even the implied warranty of MERCHANTABILITY or FITNESS FOR +A PARTICULAR PURPOSE. + +See LICENSE.txt or http://www.mitk.org for details. + +===================================================================*/ + +#ifndef MITKDICOMPMCONSTANTS_H_ +#define MITKDICOMPMCONSTANTS_H_ + +#include + +#include + +namespace mitk +{ + namespace DICOMPMConstants + { + DICOMTagPath MITKDICOMQI_EXPORT RWVM_SEQUENCE_PATH(); + DICOMTagPath MITKDICOMQI_EXPORT UNITS_SEQUENCE_PATH(); + DICOMTagPath MITKDICOMQI_EXPORT UNITS_CODE_VALUE_PATH(); + DICOMTagPath MITKDICOMQI_EXPORT UNITS_CODE_SCHEME_PATH(); + DICOMTagPath MITKDICOMQI_EXPORT UNITS_CODE_MEANING_PATH(); + DICOMTagPath MITKDICOMQI_EXPORT QUANTITY_DEFINITION_SEQUENCE_PATH(); + DICOMTagPath MITKDICOMQI_EXPORT QUANTITY_DEFINITION_VALUE_TYPE_PATH(); + DICOMTagPath MITKDICOMQI_EXPORT QUANTITY_DEFINITION_CONCEPT_CODE_SEQUENCE_PATH(); + DICOMTagPath MITKDICOMQI_EXPORT QUANTITY_DEFINITION_CONCEPT_CODE_VALUE_PATH(); + DICOMTagPath MITKDICOMQI_EXPORT QUANTITY_DEFINITION_CONCEPT_CODE_SCHEME_PATH(); + DICOMTagPath MITKDICOMQI_EXPORT QUANTITY_DEFINITION_CONCEPT_CODE_SCHEME_PATH(); + DICOMTagPath MITKDICOMQI_EXPORT QUANTITY_DEFINITION_CONCEPT_CODE_MEANING_PATH(); + }; +} + +#endif // MITKDICOMPMCONSTANTS_H_ diff --git a/Modules/DICOMQI/mitkDICOMPMPropertyHelper.cpp b/Modules/DICOMQI/mitkDICOMPMPropertyHelper.cpp new file mode 100644 index 0000000000..7ac7f2f0fc --- /dev/null +++ b/Modules/DICOMQI/mitkDICOMPMPropertyHelper.cpp @@ -0,0 +1,69 @@ +/*=================================================================== + +The Medical Imaging Interaction Toolkit (MITK) + +Copyright (c) German Cancer Research Center, +Division of Medical and Biological Informatics. +All rights reserved. + +This software is distributed WITHOUT ANY WARRANTY; without +even the implied warranty of MERCHANTABILITY or FITNESS FOR +A PARTICULAR PURPOSE. + +See LICENSE.txt or http://www.mitk.org for details. + +===================================================================*/ + +#include +#include +#include +#include +#include +#include + +#include + +#include + +#include + +// us +#include +#include + +namespace mitk +{ + void DICOMPMPropertyHelper::DeriveDICOMPMProperties(BaseData *derivedDICOMImage) + { + PropertyList::Pointer propertyList = derivedDICOMImage->GetPropertyList(); + + // Add DICOM Tag (0008, 0060) Modality "PM" + propertyList->SetProperty(GeneratePropertyNameForDICOMTag(0x0008, 0x0060).c_str(), + TemporoSpatialStringProperty::New("PM")); + + // Add DICOM Tag (0008,103E) Series Description + propertyList->SetProperty(GeneratePropertyNameForDICOMTag(0x0008, 0x103E).c_str(), + TemporoSpatialStringProperty::New("MITK Parameter Map")); + // Add DICOM Tag (0070,0084) Content Creator Name + propertyList->SetProperty(GeneratePropertyNameForDICOMTag(0x0070, 0x0084).c_str(), + TemporoSpatialStringProperty::New("MITK")); + // Add DICOM Tag (0012, 0071) Clinical Trial Series ID + propertyList->SetProperty(GeneratePropertyNameForDICOMTag(0x0012, 0x0071).c_str(), + TemporoSpatialStringProperty::New("Session 1")); + // Add DICOM Tag (0012,0050) Clinical Trial Time Point ID + propertyList->SetProperty(GeneratePropertyNameForDICOMTag(0x0012, 0x0050).c_str(), + TemporoSpatialStringProperty::New("0")); + // Add DICOM Tag (0012, 0060) Clinical Trial Coordinating Center Name + propertyList->SetProperty(GeneratePropertyNameForDICOMTag(0x0012, 0x0060).c_str(), + TemporoSpatialStringProperty::New("Unknown")); + + + + } + + + +} // namespace mitk + + + diff --git a/Modules/DICOMQI/mitkDICOMPMPropertyHelper.h b/Modules/DICOMQI/mitkDICOMPMPropertyHelper.h new file mode 100644 index 0000000000..969b5e00d4 --- /dev/null +++ b/Modules/DICOMQI/mitkDICOMPMPropertyHelper.h @@ -0,0 +1,34 @@ +/*=================================================================== + +The Medical Imaging Interaction Toolkit (MITK) + +Copyright (c) German Cancer Research Center, +Division of Medical and Biological Informatics. +All rights reserved. + +This software is distributed WITHOUT ANY WARRANTY; without +even the implied warranty of MERCHANTABILITY or FITNESS FOR +A PARTICULAR PURPOSE. + +See LICENSE.txt or http://www.mitk.org for details. + +===================================================================*/ + +#ifndef DICOMSEGMENTATIONPROPERTYHELPER_H_ +#define DICOMSEGMENTATIONPROPERTYHELPER_H_ + +#include +#include + +#include + +namespace mitk +{ + class MITKDICOMQI_EXPORT DICOMPMPropertyHelper + { + public: + static void DeriveDICOMPMProperties(BaseData *derivedDICOMImage); + + }; +} // namespace mitk +#endif