Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLSubjectHierarchyConstants.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Copyright (c) Laboratory for Percutaneous Surgery (PerkLab)
6  Queen's University, Kingston, ON, Canada. All Rights Reserved.
7 
8  See COPYRIGHT.txt
9  or http://www.slicer.org/copyright/copyright.txt for details.
10 
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16 
17  This file was originally developed by Csaba Pinter, PerkLab, Queen's University
18  and was supported through the Applied Cancer Research Unit program of Cancer Care
19  Ontario with funds provided by the Ontario Ministry of Health and Long-Term Care
20 
21 ==============================================================================*/
22 
23 #ifndef __vtkMRMLSubjectHierarchyConstants_h
24 #define __vtkMRMLSubjectHierarchyConstants_h
25 
26 // MRML includes
27 #include "vtkMRML.h"
28 
29 // STD includes
30 #include <cstdlib>
31 #include <string>
32 #include <vector>
33 
34 class VTK_MRML_EXPORT vtkMRMLSubjectHierarchyConstants
35 {
36 public:
37  //----------------------------------------------------------------------------
38  // Constant strings (std::string types for easy concatenation)
39  //----------------------------------------------------------------------------
40 
41  // Data node subject hierarchy attribute
42  static const std::string GetSubjectHierarchyAttributePrefix()
43  { return "SubjectHierarchy."; };
45  { return vtkMRMLSubjectHierarchyConstants::GetSubjectHierarchyAttributePrefix() + "ExcludeFromPotentialNodesList"; };
46 
47  // Subject hierarchy item attributes
49  { return "VirtualBranch"; };
50  static const std::string GetSubjectHierarchyLevelAttributeName()
51  { return "Level"; };
52  static const std::string GetSubjectHierarchyNewItemNamePrefix()
53  { return "New"; };
54 
55  // Non-DICOM levels
56  static const char* GetSubjectHierarchyLevelFolder()
57  { return "Folder"; };
58  // DICOM levels
59  static const std::string GetDICOMLevelPatient()
60  { return "Patient"; };
61  static const std::string GetDICOMLevelStudy()
62  { return "Study"; };
63 
64  // DICOM attributes
65  static const char* GetDICOMUIDName()
66  { return "DICOM"; };
67  static const char* GetDICOMInstanceUIDName()
68  { return "DICOMInstanceUID"; };
69  static const std::string GetDICOMAttributePrefix()
70  { return "DICOM."; };
72  { return vtkMRMLSubjectHierarchyConstants::GetDICOMAttributePrefix() + "ReferencedInstanceUIDs"; };
73 
74  // Patient tags
75  static const std::string GetDICOMPatientNameTagName()
76  { return "PatientName"; };
77  static const std::string GetDICOMPatientNameAttributeName()
79  static const std::string GetDICOMPatientIDTagName()
80  { return "PatientID"; };
81  static const std::string GetDICOMPatientIDAttributeName()
83  static const std::string GetDICOMPatientSexTagName()
84  { return "PatientSex"; };
85  static const std::string GetDICOMPatientSexAttributeName()
87  static const std::string GetDICOMPatientBirthDateTagName()
88  { return "PatientBirthDate"; };
89  static const std::string GetDICOMPatientBirthDateAttributeName()
91  static const std::string GetDICOMPatientCommentsTagName()
92  { return "PatientComments"; };
93  static const std::string GetDICOMPatientCommentsAttributeName()
95 
97  static const std::vector<std::string> GetDICOMPatientTagNames()
98  {
99  std::vector<std::string> patientTagNames;
105  return patientTagNames;
106  }
107 
108  // Study tags
109  static const std::string GetDICOMStudyInstanceUIDTagName()
110  { return "StudyInstanceUID"; };
111  static const std::string GetDICOMStudyIDTagName()
112  { return "StudyID"; };
113  static const std::string GetDICOMStudyDescriptionTagName()
114  { return "StudyDescription"; };
115  static const std::string GetDICOMStudyDescriptionAttributeName()
117  static const std::string GetDICOMStudyDateTagName()
118  { return "StudyDate"; };
119  static const std::string GetDICOMStudyDateAttributeName()
121  static const std::string GetDICOMStudyTimeTagName()
122  { return "StudyTime"; };
123  static const std::string GetDICOMStudyTimeAttributeName()
125 
127  static const std::vector<std::string> GetDICOMStudyTagNames()
128  {
129  std::vector<std::string> studyTagNames;
133  return studyTagNames;
134  }
135 
136  // Series tags
137  static const std::string GetDICOMSeriesModalityAttributeName()
139  static const std::string GetDICOMSeriesNumberAttributeName()
140  { return vtkMRMLSubjectHierarchyConstants::GetDICOMAttributePrefix() + "SeriesNumber"; };
141 
142 };
143 
144 #endif
static const std::string GetDICOMPatientBirthDateAttributeName()
static const std::string GetSubjectHierarchyNewItemNamePrefix()
static const std::string GetDICOMPatientIDAttributeName()
static const std::string GetDICOMStudyDateAttributeName()
static const std::string GetDICOMPatientBirthDateTagName()
static const std::string GetDICOMPatientCommentsTagName()
static const std::vector< std::string > GetDICOMStudyTagNames()
Get study tag names (attribute names are these values prefixed!)
static const std::string GetDICOMStudyDescriptionAttributeName()
static const std::string GetSubjectHierarchyVirtualBranchAttributeName()
static const std::string GetDICOMPatientSexTagName()
static const std::string GetDICOMPatientNameTagName()
static const std::string GetSubjectHierarchyAttributePrefix()
static const std::string GetDICOMPatientCommentsAttributeName()
static const std::string GetDICOMStudyTimeAttributeName()
static const std::string GetSubjectHierarchyExcludeFromTreeAttributeName()
static const std::vector< std::string > GetDICOMPatientTagNames()
Get patient tag names (attribute names are these values prefixed!)
static const std::string GetDICOMPatientSexAttributeName()
static const std::string GetDICOMPatientNameAttributeName()
static const std::string GetSubjectHierarchyLevelAttributeName()
static std::string GetDICOMReferencedInstanceUIDsAttributeName()
static const std::string GetDICOMStudyDescriptionTagName()
static const std::string GetDICOMSeriesNumberAttributeName()
static const std::string GetDICOMStudyInstanceUIDTagName()
static const std::string GetDICOMSeriesModalityAttributeName()