Class: Dcm4chee::DicomFile
- Inherits:
-
Object
- Object
- Dcm4chee::DicomFile
- Includes:
- DataMapper::Resource, HasDicomObject
- Defined in:
- app/models/dcm4chee/dicom_file.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#availability ⇒ Integer
Available values: -4: QUERY_HSM_FAILED -3: MD5_CHECK_FAILED -2: VERIFY_COMPRESS_FAILED -1: COMPRESS_FAILED 0: DEFAULT 1: TO_ARCHIVE 2: ARCHIVED 3: COMPRESSING.
-
#created_at ⇒ DateTime
Created time.
-
#dcm ⇒ DICOM::DObject
Load the dicom object.
-
#file_system_id ⇒ Integer
Foreign key of FileSystem.
-
#id ⇒ Integer
Primary key.
-
#instance_id ⇒ Integer
Foreign key of Instance.
-
#md5 ⇒ String
MD5 of the file.
-
#md5_checked_at ⇒ DateTime
Last MD5 checking time of the file.
-
#path ⇒ String
Path.
-
#size ⇒ Integer
File size.
-
#transfer_syntax_uid ⇒ String
DICOM transfer syntax UID(0002,0010).
Methods included from HasDicomObject
Class Method Details
Instance Method Details
#availability ⇒ Integer
Available values:
-4: QUERY_HSM_FAILED
-3: MD5_CHECK_FAILED
-2: VERIFY_COMPRESS_FAILED
-1: COMPRESS_FAILED
0: DEFAULT
1: TO_ARCHIVE
2: ARCHIVED
3: COMPRESSING
41 |
# File 'app/models/dcm4chee/dicom_file.rb', line 41 property :availability, Enum[-4, -3, -2, -1, 0, 1, 2, 3], field: 'file_status' |
#created_at ⇒ DateTime
Returns created time.
47 |
# File 'app/models/dcm4chee/dicom_file.rb', line 47 property :created_at, DateTime, field: 'created_time' |
#dcm ⇒ DICOM::DObject
Load the dicom object
54 55 56 |
# File 'app/models/dcm4chee/dicom_file.rb', line 54 def dcm @dcm ||= DICOM::DObject.read(File.join(file_system.path, path)) end |
#file_system_id ⇒ Integer
Returns foreign key of FileSystem.
16 |
# File 'app/models/dcm4chee/dicom_file.rb', line 16 property :file_system_id, Integer, field: 'filesystem_fk' |
#id ⇒ Integer
Returns primary key.
10 |
# File 'app/models/dcm4chee/dicom_file.rb', line 10 property :id, Serial, field: 'pk' |
#instance_id ⇒ Integer
Returns foreign key of Instance.
13 |
# File 'app/models/dcm4chee/dicom_file.rb', line 13 property :instance_id, Integer, field: 'instance_fk' |
#md5 ⇒ String
Returns MD5 of the file.
25 |
# File 'app/models/dcm4chee/dicom_file.rb', line 25 property :md5, String, field: 'file_md5' |
#md5_checked_at ⇒ DateTime
Returns last MD5 checking time of the file.
44 |
# File 'app/models/dcm4chee/dicom_file.rb', line 44 property :md5_checked_at, DateTime, field: 'md5_check_time' |
#path ⇒ String
Returns path.
19 |
# File 'app/models/dcm4chee/dicom_file.rb', line 19 property :path, Text, field: 'filepath' |
#size ⇒ Integer
Returns file size.
28 |
# File 'app/models/dcm4chee/dicom_file.rb', line 28 property :size, Integer, field: 'file_size' |
#transfer_syntax_uid ⇒ String
Returns DICOM transfer syntax UID(0002,0010).
22 |
# File 'app/models/dcm4chee/dicom_file.rb', line 22 property :transfer_syntax_uid, Text, field: 'file_tsuid' |