Class: Dcm4chee::Patient
- Inherits:
-
Object
- Object
- Dcm4chee::Patient
- Includes:
- DataMapper::Resource, DataMapper::Searcher, HasDicomObject
- Defined in:
- app/models/dcm4chee/patient.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#birthday ⇒ String
Birthday.
-
#gender ⇒ String
Gender.
-
#id ⇒ Integer
Primary key.
- #move_to_trash ⇒ Object
-
#name ⇒ String
Patient name.
-
#pat_attrs ⇒ String
DICOM attributes.
-
#pid ⇒ Integer
ID of the patient.
-
#pid_issuer ⇒ String
Issuer of the patient id.
Methods included from HasDicomObject
Class Method Details
permalink .repository(name = nil, &block) ⇒ Object
[View source]
38 39 40 |
# File 'app/models/dcm4chee/patient.rb', line 38 def self.repository(name = nil, &block) super(Dcm4chee.config.repository_name, &block) end |
Instance Method Details
permalink #birthday ⇒ String
Returns birthday.
24 |
# File 'app/models/dcm4chee/patient.rb', line 24 property :birthday, String, field: 'pat_birthdate' |
permalink #gender ⇒ String
Returns gender.
27 |
# File 'app/models/dcm4chee/patient.rb', line 27 property :gender, String, field: 'pat_sex' |
permalink #id ⇒ Integer
Returns primary key.
12 |
# File 'app/models/dcm4chee/patient.rb', line 12 property :id, Serial, field: 'pk' |
permalink #move_to_trash ⇒ Object
[View source]
34 35 36 |
# File 'app/models/dcm4chee/patient.rb', line 34 def move_to_trash Dcm4chee.content_edit_service.move_patient_to_trash(id) end |
permalink #name ⇒ String
Returns patient name.
21 |
# File 'app/models/dcm4chee/patient.rb', line 21 property :name, String, field: 'pat_name' |
permalink #pat_attrs ⇒ String
Returns DICOM attributes.
30 |
# File 'app/models/dcm4chee/patient.rb', line 30 dicom_field 'pat_attrs' |
permalink #pid ⇒ Integer
Returns ID of the patient.
15 |
# File 'app/models/dcm4chee/patient.rb', line 15 property :pid, String, field: 'pat_id' |
permalink #pid_issuer ⇒ String
Returns Issuer of the patient id.
18 |
# File 'app/models/dcm4chee/patient.rb', line 18 property :pid_issuer, String, field: 'pat_id_issuer' |