Class: Dcm4chee::TrashedSeries
- Inherits:
-
Object
- Object
- Dcm4chee::TrashedSeries
show all
- Includes:
- DataMapper::Resource, DataMapper::Searcher, HasDicomObject
- Defined in:
- app/models/dcm4chee/trashed_series.rb
Class Method Summary
collapse
Instance Method Summary
collapse
#as_json, #dcm, #dcm_elements
Class Method Details
.modalities ⇒ Object
37
38
39
|
# File 'app/models/dcm4chee/trashed_series.rb', line 37
def modalities
Series.aggregate(:modality)
end
|
.repository(name = nil, &block) ⇒ Object
45
46
47
|
# File 'app/models/dcm4chee/trashed_series.rb', line 45
def repository(name = nil, &block)
super(Dcm4chee.config.repository_name, &block)
end
|
.source_aets ⇒ Object
41
42
43
|
# File 'app/models/dcm4chee/trashed_series.rb', line 41
def source_aets
Series.aggregate(:source_aet)
end
|
Instance Method Details
#id ⇒ Integer
12
|
# File 'app/models/dcm4chee/trashed_series.rb', line 12
property :id, Serial, field: 'pk'
|
#remove_from_trash ⇒ Object
32
33
34
|
# File 'app/models/dcm4chee/trashed_series.rb', line 32
def remove_from_trash
Dcm4chee.content_edit_service.delete_series(id)
end
|
#restore_from_trash ⇒ Object
28
29
30
|
# File 'app/models/dcm4chee/trashed_series.rb', line 28
def restore_from_trash
Dcm4chee.content_edit_service.undelete_series(id)
end
|
#series_iuid ⇒ String
Returns DICOM Series Instance UID(0020,000E).
18
|
# File 'app/models/dcm4chee/trashed_series.rb', line 18
property :series_iuid, Text, field: 'series_iuid'
|
#source_aet ⇒ String
21
|
# File 'app/models/dcm4chee/trashed_series.rb', line 21
property :source_aet, String, field: 'src_aet'
|
#trashed_study_id ⇒ Integer
Returns foreign key of Study.
15
|
# File 'app/models/dcm4chee/trashed_series.rb', line 15
property :trashed_study_id, Integer, field: 'study_fk'
|