QtDcmPatient.h
Go to the documentation of this file.
1 /*
2  QtDcm is a C++ Qt based library for communication and conversion of Dicom images.
3  Copyright (C) 2011 Alexandre Abadie <Alexandre.Abadie@univ-rennes1.fr>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19 
20 
21 #ifndef QTDCMPATIENT_H_
22 #define QTDCMPATIENT_H_
23 
24 #include <QtGui>
25 
26 class QtDcmStudy;
27 
32 {
33 public:
37  QtDcmPatient();
38 
42  virtual ~QtDcmPatient();
43 
49  QString id() const;
50 
56  void setId( const QString& id );
57 
63  QString name() const;
64 
70  void setName( const QString& name );
71 
77  QString birthdate() const;
78 
84  void setBirthdate( const QString & birthdate );
85 
91  QString gender() const;
92 
98  void setGender( const QString& sex );
99 
106  QList<QtDcmStudy> studies() const;
107 
114  void setStudies( const QList<QtDcmStudy>& studies );
115 
119  void addStudy(const QtDcmStudy & study);
120 
124  void removeStudy(int index);
125 
126 
127 private:
128  class Private;
129  Private *d;
130  };
131 
132 #endif /* QTDCMPATIENT_H_ */
virtual ~QtDcmPatient()
Default destructor.
void removeStudy(int index)
Remove study at position index.
QString name() const
Patient name getter.
QString gender() const
Patient sex getter.
QtDcmPatient()
Default constructor.
void setBirthdate(const QString &birthdate)
Patient birthdate setter.
This class is a representation of a dicom patient.
Definition: QtDcmPatient.h:31
void setStudies(const QList< QtDcmStudy > &studies)
Patient studies list setter.
void setName(const QString &name)
Patient name setter.
void addStudy(const QtDcmStudy &study)
Add study in the list.
QString id() const
Id getter.
QString birthdate() const
Patient birthdate getter.
void setId(const QString &id)
Id setter.
This class is representation of a Dicom study.
Definition: QtDcmStudy.h:33
QList< QtDcmStudy > studies() const
Patient studies list getter.
void setGender(const QString &sex)
Patient sex setter.