Class: Dcm4chee::TrashedDicomFile
- Inherits:
-
Object
- Object
- Dcm4chee::TrashedDicomFile
- Includes:
- DataMapper::Resource, DataMapper::Searcher, HasDicomObject
- Defined in:
- app/models/dcm4chee/trashed_dicom_file.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#availability ⇒ Integer
Availability: -4: QUERY_HSM_FAILED -3: MD5_CHECK_FAILED -2: VERIFY_COMPRESS_FAILED -1: COMPRESS_FAILED 0: DEFAULT 1: TO_ARCHIVE 2: ARCHIVED 3: COMPRESSING.
-
#dcm ⇒ DICOM::DObject
Load the dicom object from file.
-
#file_system_id ⇒ Integer
Foreign key of FileSystem.
-
#id ⇒ Integer
Primary key.
-
#md5 ⇒ String
MD5 of the file.
-
#path ⇒ String
Path.
-
#size ⇒ Integer
File size.
-
#transfer_syntax_uid ⇒ String
DICOM Transfer Syntax UID(0002,0010).
-
#trashed_instance_id ⇒ Integer
Foreign key of Instance.
Methods included from HasDicomObject
Class Method Details
Instance Method Details
#availability ⇒ Integer
Availability:
-4: QUERY_HSM_FAILED
-3: MD5_CHECK_FAILED
-2: VERIFY_COMPRESS_FAILED
-1: COMPRESS_FAILED
0: DEFAULT
1: TO_ARCHIVE
2: ARCHIVED
3: COMPRESSING
43 |
# File 'app/models/dcm4chee/trashed_dicom_file.rb', line 43 property :availability, Enum[-4, -3, -2, -1, 0, 1, 2, 3], field: 'file_status' |
#dcm ⇒ DICOM::DObject
Load the dicom object from file
50 51 52 |
# File 'app/models/dcm4chee/trashed_dicom_file.rb', line 50 def dcm @dcm ||= DICOM::DObject.read(File.join(file_system.path, path)) end |
#file_system_id ⇒ Integer
Returns foreign key of FileSystem.
18 |
# File 'app/models/dcm4chee/trashed_dicom_file.rb', line 18 property :file_system_id, Integer, field: 'filesystem_fk' |
#id ⇒ Integer
Returns primary key.
12 |
# File 'app/models/dcm4chee/trashed_dicom_file.rb', line 12 property :id, Serial, field: 'pk' |
#md5 ⇒ String
Returns MD5 of the file.
27 |
# File 'app/models/dcm4chee/trashed_dicom_file.rb', line 27 property :md5, String, field: 'file_md5' |
#path ⇒ String
Returns path.
21 |
# File 'app/models/dcm4chee/trashed_dicom_file.rb', line 21 property :path, Text, field: 'filepath' |
#size ⇒ Integer
Returns file size.
30 |
# File 'app/models/dcm4chee/trashed_dicom_file.rb', line 30 property :size, Integer, field: 'file_size' |
#transfer_syntax_uid ⇒ String
Returns DICOM Transfer Syntax UID(0002,0010).
24 |
# File 'app/models/dcm4chee/trashed_dicom_file.rb', line 24 property :transfer_syntax_uid, Text, field: 'file_tsuid' |
#trashed_instance_id ⇒ Integer
Returns foreign key of Instance.
15 |
# File 'app/models/dcm4chee/trashed_dicom_file.rb', line 15 property :trashed_instance_id, Integer, field: 'instance_fk' |