Class: Dcm4chee::TrashedStudy

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from HasDicomObject

#as_json, #dcm, #dcm_elements

Class Method Details

.repository(name = nil, &block) ⇒ Object



36
37
38
# File 'app/models/dcm4chee/trashed_study.rb', line 36

def self.repository(name = nil, &block)
  super(Dcm4chee.config.repository_name, &block)
end

Instance Method Details

#accession_noString

Returns DICOM Accesion NO(0008,0050).

Returns:

  • (String)

    DICOM Accesion NO(0008,0050)



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

property :accession_no, String, field: 'accession_no'

#idInteger

Returns primary key.

Returns:

  • (Integer)

    primary key



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

property :id, Serial, field: 'pk'

#remove_from_trashObject



32
33
34
# File 'app/models/dcm4chee/trashed_study.rb', line 32

def remove_from_trash
  Dcm4chee.content_edit_service.delete_study(id)
end

#restore_from_trashObject



28
29
30
# File 'app/models/dcm4chee/trashed_study.rb', line 28

def restore_from_trash
  Dcm4chee.content_edit_service.undelete_study(id)
end

#study_iuidString

Returns DICOM Study Instance UID(0020,000D).

Returns:

  • (String)

    DICOM Study Instance UID(0020,000D)



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

property :study_iuid, Text, field: 'study_iuid'

#trashed_patient_idInteger

Returns foreign key of Patient.

Returns:

  • (Integer)

    foreign key of Patient



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

property :trashed_patient_id, Integer, field: 'patient_fk'