Class: Dcm4chee::TrashedPatient
- Inherits:
-
Object
- Object
- Dcm4chee::TrashedPatient
- Includes:
- DataMapper::Resource, DataMapper::Searcher, HasDicomObject
- Defined in:
- app/models/dcm4chee/trashed_patient.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#id ⇒ Integer
Primary key.
-
#name ⇒ String
Name.
-
#pat_attrs ⇒ String
DICOM attributes.
-
#pid ⇒ Integer
Patient id.
-
#pid_issuer ⇒ String
Issuer of the patient id.
- #remove_from_trash ⇒ Object
- #restore_from_trash ⇒ Object
Methods included from HasDicomObject
Class Method Details
permalink .repository(name = nil, &block) ⇒ Object
[View source]
36 37 38 |
# File 'app/models/dcm4chee/trashed_patient.rb', line 36 def self.repository(name = nil, &block) super(Dcm4chee.config.repository_name, &block) end |
Instance Method Details
permalink #id ⇒ Integer
Returns primary key.
12 |
# File 'app/models/dcm4chee/trashed_patient.rb', line 12 property :id, Serial, field: 'pk' |
permalink #name ⇒ String
Returns name.
21 |
# File 'app/models/dcm4chee/trashed_patient.rb', line 21 property :name, String, field: 'pat_name' |
permalink #pat_attrs ⇒ String
Returns DICOM attributes.
24 |
# File 'app/models/dcm4chee/trashed_patient.rb', line 24 dicom_field 'pat_attrs' |
permalink #pid ⇒ Integer
Returns patient id.
15 |
# File 'app/models/dcm4chee/trashed_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/trashed_patient.rb', line 18 property :pid_issuer, String, field: 'pat_id_issuer' |
permalink #remove_from_trash ⇒ Object
[View source]
32 33 34 |
# File 'app/models/dcm4chee/trashed_patient.rb', line 32 def remove_from_trash Dcm4chee.content_edit_service.delete_patient(id) end |
permalink #restore_from_trash ⇒ Object
[View source]
28 29 30 |
# File 'app/models/dcm4chee/trashed_patient.rb', line 28 def restore_from_trash Dcm4chee.content_edit_service.undelete_patient(id) end |