This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconstants.rb
48 lines (47 loc) · 2.21 KB
/
constants.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
module RB_DICOM
DATA_DICT = {
'00080005'=>'CS', # specific character set
'00080050'=>'SH', # accession number
'00080060'=>'CS', # modality
'00080080'=>'LO', # institution name
'00080090'=>'PN', # referring physician's name
'00100010'=>'PN', # patient's name
'00100020'=>'LO', # patient's ID
'00100030'=>'DA', # patient's birthdate
'00100040'=>'CS', # patient's sex
'00101030'=>'DS', # patient's weight
'00102000'=>'LO', # medical alerts
'00102110'=>'LO', # allergies
'0020000d'=>'UI', # study instance UID
'00321032'=>'PN', # requesting physician
'00321033'=>'LO', # requesting service
'00321060'=>'LO', # requested procedure description
'00321070'=>'LO', # requested contrast agent
'00380010'=>'LO', # admission ID
'00380050'=>'LO', # special needs
'00380300'=>'LO', # current patient location
'00380400'=>'LO', # patient's institution residence
'00380500'=>'LO', # patient state
'00400001'=>'AE', # scheduled station AE title
'00400002'=>'DA', # scheduled procedure step date
'00400003'=>'TM', # scheduled procedure step time
'00400006'=>'PN', # scheduled performing physician's name
'00400007'=>'LO', # scheduled procedure step description
'00400009'=>'SH', # scheduled procedure step ID
'00400010'=>'LO', # scheduled station name
'00400012'=>'LO', # premedication
'00400020'=>'CS', # scheduled procedure step status
'00400100'=>'SQ', # scheduled procedure step sequence
'00401001'=>'SH', # requested procedure ID
'00401002'=>'LO', # reason for the requested procedure
'00401003'=>'SH', # requested procedure priority
'00401004'=>'LO', # patient transport arrangement
'00401400'=>'LO', # requested procedure comments
'00402016'=>'LO', # placer order number
'00402017'=>'LO', # filler order number
'00403001'=>'LO' # confidentiality constraint
}
RELEASE_REQUEST = [0x05, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00].pack("C*")
RELEASE_RESPONSE = [0x06, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00].pack("C*")
ABORT = [0x07, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00].pack("C*")
end