Class: Dcm4chee::Series

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from HasDicomObject

#dcm, #dcm_elements

Class Method Details

.modalitiesObject



69
70
71
# File 'app/models/dcm4chee/series.rb', line 69

def modalities
  Series.aggregate(:modality)
end

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



65
66
67
# File 'app/models/dcm4chee/series.rb', line 65

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

.source_aetsObject



73
74
75
# File 'app/models/dcm4chee/series.rb', line 73

def source_aets
  Series.aggregate(:source_aet)
end

Instance Method Details

#as_json(opts = {}) ⇒ Object



57
58
59
60
61
62
# File 'app/models/dcm4chee/series.rb', line 57

def as_json(opts = {})
  opts[:methods] ||= []
  opts[:methods] << :study_iuid

  super(opts)
end

#availabilityInteger

DICOM Availability(0008,0056)

0: ONLINE
1: NEARLINE
2: OFFLINE
3: UNAVAILABLE

Returns:

  • (Integer)

    Availability(0008,0056)



42
# File 'app/models/dcm4chee/series.rb', line 42

property :availability, Enum[0, 1, 2, 3], field: 'availability'

#descriptionString

Returns DICOM Series Description(0008,103E).

Returns:

  • (String)

    DICOM Series Description(0008,103E)



30
# File 'app/models/dcm4chee/series.rb', line 30

property :description, Text, field: 'series_desc'

#idInteger

Returns primary key.

Returns:

  • (Integer)

    primary key



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

property :id, Serial, field: 'pk'

#modalityString

Returns DICOM Modality(0008,0060).

Returns:

  • (String)

    DICOM Modality(0008,0060)



27
# File 'app/models/dcm4chee/series.rb', line 27

property :modality, String, field: 'modality'

#move_to_trashObject



53
54
55
# File 'app/models/dcm4chee/series.rb', line 53

def move_to_trash
  Dcm4chee.content_edit_service.move_series_to_trash(id)
end

#num_instancesInteger

Returns DICOM Instances count(0020,1209).

Returns:

  • (Integer)

    DICOM Instances count(0020,1209)



33
# File 'app/models/dcm4chee/series.rb', line 33

property :num_instances, Integer, field: 'num_instances'

#series_iuidString

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

Returns:

  • (String)

    DICOM Series Instance UID(0020,000E)



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

property :series_iuid, Text, field: 'series_iuid'

#series_noString

Returns DICOM Series NO(0020,0011).

Returns:

  • (String)

    DICOM Series NO(0020,0011)



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

property :series_no, String, field: 'series_no'

#source_aetString

Returns Source AET.

Returns:

  • (String)

    Source AET



24
# File 'app/models/dcm4chee/series.rb', line 24

property :source_aet, String, field: 'src_aet'

#study_idInteger

Returns foreign key of Dcm4chee::Study.

Returns:



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

property :study_id, Integer, field: 'study_fk'

#study_iuidObject



49
50
51
# File 'app/models/dcm4chee/series.rb', line 49

def study_iuid
  study.study_iuid
end