comparison Core/DicomFormat/DicomTag.h @ 1364:111e23bb4904 query-retrieve

integration mainline->query-retrieve
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 21 May 2015 16:58:30 +0200
parents c2c28dd17e87 6e7e5ed91c2d
children 38ce915cb455
comparison
equal deleted inserted replaced
953:f894be6e7cc1 1364:111e23bb4904
1 /** 1 /**
2 * Orthanc - A Lightweight, RESTful DICOM Store 2 * Orthanc - A Lightweight, RESTful DICOM Store
3 * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, 3 * Copyright (C) 2012-2015 Sebastien Jodogne, Medical Physics
4 * Belgium 4 * Department, University Hospital of Liege, Belgium
5 * 5 *
6 * This program is free software: you can redistribute it and/or 6 * This program is free software: you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as 7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation, either version 3 of the 8 * published by the Free Software Foundation, either version 3 of the
9 * License, or (at your option) any later version. 9 * License, or (at your option) any later version.
31 31
32 32
33 #pragma once 33 #pragma once
34 34
35 #include <string> 35 #include <string>
36 #include <set>
36 #include <stdint.h> 37 #include <stdint.h>
37 38
39 #include "../Enumerations.h"
38 40
39 namespace Orthanc 41 namespace Orthanc
40 { 42 {
41 class DicomTag 43 class DicomTag
42 { 44 {
79 } 81 }
80 82
81 std::string Format() const; 83 std::string Format() const;
82 84
83 friend std::ostream& operator<< (std::ostream& o, const DicomTag& tag); 85 friend std::ostream& operator<< (std::ostream& o, const DicomTag& tag);
86
87 static void GetTagsForModule(std::set<DicomTag>& target,
88 DicomModule module);
89
90 bool IsIdentifier() const;
84 }; 91 };
85 92
86 // Aliases for the most useful tags 93 // Aliases for the most useful tags
87 static const DicomTag DICOM_TAG_ACCESSION_NUMBER(0x0008, 0x0050); 94 static const DicomTag DICOM_TAG_ACCESSION_NUMBER(0x0008, 0x0050);
88 static const DicomTag DICOM_TAG_SOP_INSTANCE_UID(0x0008, 0x0018); 95 static const DicomTag DICOM_TAG_SOP_INSTANCE_UID(0x0008, 0x0018);
102 static const DicomTag DICOM_TAG_CARDIAC_NUMBER_OF_IMAGES(0x0018, 0x1090); 109 static const DicomTag DICOM_TAG_CARDIAC_NUMBER_OF_IMAGES(0x0018, 0x1090);
103 static const DicomTag DICOM_TAG_IMAGES_IN_ACQUISITION(0x0020, 0x1002); 110 static const DicomTag DICOM_TAG_IMAGES_IN_ACQUISITION(0x0020, 0x1002);
104 111
105 static const DicomTag DICOM_TAG_PATIENT_NAME(0x0010, 0x0010); 112 static const DicomTag DICOM_TAG_PATIENT_NAME(0x0010, 0x0010);
106 113
107 // The following is used for "modify" operations 114 // The following is used for "modify/anonymize" operations
108 static const DicomTag DICOM_TAG_SOP_CLASS_UID(0x0008, 0x0016); 115 static const DicomTag DICOM_TAG_SOP_CLASS_UID(0x0008, 0x0016);
109 static const DicomTag DICOM_TAG_MEDIA_STORAGE_SOP_CLASS_UID(0x0002, 0x0002); 116 static const DicomTag DICOM_TAG_MEDIA_STORAGE_SOP_CLASS_UID(0x0002, 0x0002);
110 static const DicomTag DICOM_TAG_MEDIA_STORAGE_SOP_INSTANCE_UID(0x0002, 0x0003); 117 static const DicomTag DICOM_TAG_MEDIA_STORAGE_SOP_INSTANCE_UID(0x0002, 0x0003);
118 static const DicomTag DICOM_TAG_DEIDENTIFICATION_METHOD(0x0012, 0x0063);
111 119
112 // DICOM tags used for fMRI (thanks to Will Ryder) 120 // DICOM tags used for fMRI (thanks to Will Ryder)
113 static const DicomTag DICOM_TAG_NUMBER_OF_TEMPORAL_POSITIONS(0x0020, 0x0105); 121 static const DicomTag DICOM_TAG_NUMBER_OF_TEMPORAL_POSITIONS(0x0020, 0x0105);
114 static const DicomTag DICOM_TAG_TEMPORAL_POSITION_IDENTIFIER(0x0020, 0x0100); 122 static const DicomTag DICOM_TAG_TEMPORAL_POSITION_IDENTIFIER(0x0020, 0x0100);
115 123