Class: Dcm4chee::TrashedSeries

Inherits:
Object
  • Object
show all
Includes:
DataMapper::Resource, DataMapper::Searcher, HasDicomObject
Defined in:
app/models/dcm4chee/trashed_series.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from HasDicomObject

#as_json, #dcm, #dcm_elements

Class Method Details

.modalitiesObject



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_aetsObject



41
42
43
# File 'app/models/dcm4chee/trashed_series.rb', line 41

def source_aets
  Series.aggregate(:source_aet)
end

Instance Method Details

#idInteger

Returns primary key.

Returns:

  • (Integer)

    primary key



12
# File 'app/models/dcm4chee/trashed_series.rb', line 12

property :id, Serial, field: 'pk'

#remove_from_trashObject



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_trashObject



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_iuidString

Returns DICOM Series Instance UID(0020,000E).

Returns:

  • (String)

    DICOM Series Instance UID(0020,000E)



18
# File 'app/models/dcm4chee/trashed_series.rb', line 18

property :series_iuid, Text, field: 'series_iuid'

#source_aetString

Returns Source AET.

Returns:

  • (String)

    Source AET



21
# File 'app/models/dcm4chee/trashed_series.rb', line 21

property :source_aet, String, field: 'src_aet'

#trashed_study_idInteger

Returns foreign key of Study.

Returns:

  • (Integer)

    foreign key of Study



15
# File 'app/models/dcm4chee/trashed_series.rb', line 15

property :trashed_study_id, Integer, field: 'study_fk'