Class: Dcm4chee::Series
- Inherits:
-
Object
- Object
- Dcm4chee::Series
- Includes:
- DataMapper::Resource, DataMapper::Searcher, HasDicomObject
- Defined in:
- app/models/dcm4chee/series.rb
Class Method Summary collapse
Instance Method Summary collapse
- #as_json(opts = {}) ⇒ Object
-
#availability ⇒ Integer
DICOM Availability(0008,0056) 0: ONLINE 1: NEARLINE 2: OFFLINE 3: UNAVAILABLE.
-
#description ⇒ String
DICOM Series Description(0008,103E).
-
#id ⇒ Integer
Primary key.
-
#modality ⇒ String
DICOM Modality(0008,0060).
- #move_to_trash ⇒ Object
-
#num_instances ⇒ Integer
DICOM Instances count(0020,1209).
-
#series_iuid ⇒ String
DICOM Series Instance UID(0020,000E).
-
#series_no ⇒ String
DICOM Series NO(0020,0011).
-
#source_aet ⇒ String
Source AET.
-
#study_id ⇒ Integer
Foreign key of Study.
- #study_iuid ⇒ Object
Methods included from HasDicomObject
Class Method Details
.modalities ⇒ Object
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_aets ⇒ Object
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 |
#availability ⇒ Integer
DICOM Availability(0008,0056)
0: ONLINE
1: NEARLINE
2: OFFLINE
3: UNAVAILABLE
42 |
# File 'app/models/dcm4chee/series.rb', line 42 property :availability, Enum[0, 1, 2, 3], field: 'availability' |
#description ⇒ String
Returns DICOM Series Description(0008,103E).
30 |
# File 'app/models/dcm4chee/series.rb', line 30 property :description, Text, field: 'series_desc' |
#id ⇒ Integer
Returns primary key.
12 |
# File 'app/models/dcm4chee/series.rb', line 12 property :id, Serial, field: 'pk' |
#modality ⇒ String
Returns DICOM Modality(0008,0060).
27 |
# File 'app/models/dcm4chee/series.rb', line 27 property :modality, String, field: 'modality' |
#move_to_trash ⇒ Object
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_instances ⇒ Integer
Returns DICOM Instances count(0020,1209).
33 |
# File 'app/models/dcm4chee/series.rb', line 33 property :num_instances, Integer, field: 'num_instances' |
#series_iuid ⇒ String
Returns DICOM Series Instance UID(0020,000E).
18 |
# File 'app/models/dcm4chee/series.rb', line 18 property :series_iuid, Text, field: 'series_iuid' |
#series_no ⇒ String
Returns DICOM Series NO(0020,0011).
21 |
# File 'app/models/dcm4chee/series.rb', line 21 property :series_no, String, field: 'series_no' |
#source_aet ⇒ String
Returns Source AET.
24 |
# File 'app/models/dcm4chee/series.rb', line 24 property :source_aet, String, field: 'src_aet' |
#study_id ⇒ Integer
Returns foreign key of Dcm4chee::Study.
15 |
# File 'app/models/dcm4chee/series.rb', line 15 property :study_id, Integer, field: 'study_fk' |
#study_iuid ⇒ Object
49 50 51 |
# File 'app/models/dcm4chee/series.rb', line 49 def study_iuid study.study_iuid end |