fmain.lfm 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. object Form1: TForm1
  2. Left = 229
  3. Height = 837
  4. Top = 324
  5. Width = 1022
  6. Caption = 'idHL7 Sample Client and Server'
  7. ClientHeight = 837
  8. ClientWidth = 1022
  9. DesignTimePPI = 120
  10. OnCloseQuery = FormCloseQuery
  11. OnCreate = FormCreate
  12. LCLVersion = '2.2.4.0'
  13. object Panel1: TPanel
  14. Left = 0
  15. Height = 112
  16. Top = 0
  17. Width = 1022
  18. Align = alTop
  19. ClientHeight = 112
  20. ClientWidth = 1022
  21. TabOrder = 0
  22. object btnStart: TButton
  23. Left = 208
  24. Height = 31
  25. Top = 56
  26. Width = 94
  27. Caption = 'Send'
  28. OnClick = btnStartClick
  29. TabOrder = 0
  30. end
  31. object Label2: TLabel
  32. Left = 88
  33. Height = 20
  34. Top = 16
  35. Width = 12
  36. Caption = 'IP'
  37. ParentColor = False
  38. end
  39. object edtServer: TEdit
  40. Left = 112
  41. Height = 28
  42. Top = 16
  43. Width = 128
  44. TabOrder = 1
  45. Text = '127.0.0.1'
  46. end
  47. object Label3: TLabel
  48. Left = 262
  49. Height = 20
  50. Top = 16
  51. Width = 26
  52. Caption = 'Port'
  53. ParentColor = False
  54. end
  55. object edtPort: TEdit
  56. Left = 310
  57. Height = 28
  58. Top = 16
  59. Width = 100
  60. TabOrder = 2
  61. Text = '1234'
  62. end
  63. object Panel5: TPanel
  64. Left = 512
  65. Height = 110
  66. Top = 1
  67. Width = 509
  68. Align = alRight
  69. BorderStyle = bsSingle
  70. ClientHeight = 106
  71. ClientWidth = 505
  72. TabOrder = 3
  73. object Label1: TLabel
  74. Left = 120
  75. Height = 20
  76. Top = 21
  77. Width = 26
  78. Caption = 'Port'
  79. ParentColor = False
  80. end
  81. object edtServerPort: TEdit
  82. Left = 175
  83. Height = 28
  84. Top = 21
  85. Width = 100
  86. TabOrder = 0
  87. Text = '1234'
  88. end
  89. object btnListen: TButton
  90. Left = 178
  91. Height = 31
  92. Top = 55
  93. Width = 94
  94. Caption = 'Listen'
  95. OnClick = btnListenClick
  96. TabOrder = 1
  97. end
  98. object Label4: TLabel
  99. Left = 8
  100. Height = 20
  101. Top = 80
  102. Width = 41
  103. Caption = 'Server'
  104. ParentColor = False
  105. end
  106. end
  107. object Label5: TLabel
  108. Left = 19
  109. Height = 20
  110. Top = 80
  111. Width = 38
  112. Caption = 'Client'
  113. ParentColor = False
  114. end
  115. end
  116. object Panel2: TPanel
  117. Left = 0
  118. Height = 524
  119. Top = 112
  120. Width = 1022
  121. Align = alClient
  122. ClientHeight = 524
  123. ClientWidth = 1022
  124. TabOrder = 1
  125. object Panel3: TPanel
  126. Left = 1
  127. Height = 522
  128. Top = 1
  129. Width = 511
  130. Align = alLeft
  131. ClientHeight = 522
  132. ClientWidth = 511
  133. TabOrder = 0
  134. OnClick = Panel3Click
  135. object memClient: TMemo
  136. Left = 1
  137. Height = 281
  138. Top = 1
  139. Width = 509
  140. Align = alTop
  141. Lines.Strings = (
  142. 'MSH|^~\&|Radiology|PACS|CRIS|Radiology|20140616051341||ORU^R01|30081|IW|2.3.1|||1|1|ZAF|'
  143. 'PID|||6803030974084|QP-201389|MGEDEZI^NOROYI M^NM^^MISS||196803030300|F||541170-20140616-104412-9415-253||||||||KRC1507337|6803030974084|'
  144. 'PV1||O|KI|||||^^^^^||||||||0||||||||||||||||||||||||||||201406160600|'
  145. 'OBR|1|2014061600054^KRC|KRC1507337^KRC|12310^X-RAY ORBITS LESS THAN 3 VIEWS||201406160600|201406160600||||||X-RAY ORBITS LESS THAN 3 VIEWS|||HOLTS^HOLT^^S^^DR||KRC1507337|KRK^KINGBURY RADIOLOGY KINGBURY|||189912301200||KRC|F|||^||||FBD^KAREL BUITENDAG||NA|^189912301200|201406160600|'
  146. 'OBX|0|TX|||Accession Number : KR C1507337||||||F||||'
  147. 'OBX|1|TX|||||||||F||||'
  148. 'OBX|2|TX|||CT ORBITS||||||F||||'
  149. 'OBX|3|TX|||Facial trauma? Blowout fracture.||||||F||||'
  150. 'OBX|4|TX|||||||||F||||'
  151. 'OBX|5|TX|||There is a blowout fracture of the posterior aspect of the lamina papyracea (posteromedial orbital wall). Extraconal fat and medial rectus muscle protrudes into ethmoid nasal cavity and there is likely muscle entrapment.||||||F||||'
  152. 'OBX|6|TX|||There is orbital emphysema also extending to the maxillary subcutaneous tissue and the preseptal eyelids.||||||F||||'
  153. 'OBX|7|TX|||The globe appear intact. There is no swelling of the orbital optic nerve.||||||F||||'
  154. 'OBX|8|TX|||||||||F||||'
  155. 'OBX|9|TX|||COMMENT||||||F||||'
  156. 'OBX|10|TX|||There is a blowout fracture involving the posteromedial wall of the right orbit (lamina papyracea) with protruding medial rectus muscle.||||||F||||'
  157. 'OBX|11|TX|||||||||F||||'
  158. 'OBX|12|TX|||||||||F||||'
  159. 'OBX|13|TX|||VERIFIED BY: KAREL BUITENDAG on 2014/06/16 5:13 PM||||||F||||'
  160. )
  161. TabOrder = 0
  162. WordWrap = False
  163. end
  164. object Panel7: TPanel
  165. Left = 1
  166. Height = 23
  167. Top = 282
  168. Width = 509
  169. Align = alTop
  170. Caption = 'Client Reply'
  171. TabOrder = 1
  172. end
  173. object memClientReplyText: TMemo
  174. Left = 1
  175. Height = 216
  176. Top = 305
  177. Width = 509
  178. Align = alClient
  179. TabOrder = 2
  180. WordWrap = False
  181. end
  182. end
  183. object Panel4: TPanel
  184. Left = 512
  185. Height = 522
  186. Top = 1
  187. Width = 509
  188. Align = alClient
  189. BorderStyle = bsSingle
  190. ClientHeight = 518
  191. ClientWidth = 505
  192. TabOrder = 1
  193. object memServer: TMemo
  194. Left = 1
  195. Height = 279
  196. Top = 1
  197. Width = 503
  198. Align = alTop
  199. TabOrder = 0
  200. WordWrap = False
  201. end
  202. object Panel6: TPanel
  203. Left = 1
  204. Height = 23
  205. Top = 280
  206. Width = 503
  207. Align = alTop
  208. Caption = 'Server Reply Text (to Send)'
  209. TabOrder = 1
  210. end
  211. object memServerReply: TMemo
  212. Left = 1
  213. Height = 214
  214. Top = 303
  215. Width = 503
  216. Align = alClient
  217. Lines.Strings = (
  218. 'MSH|^~\&|RECEIVER|SMARTHL7|||||ADR^A19|MSG_{TIMESTAMP}|T|2.3'
  219. 'MSA|AA|{MESSAGE_CONTROL_ID}||||'
  220. 'QRD|{TIMESTAMP}|R|I|7034287|||200^RD|0123456^^^^^^^^N001^^^^N001|DEM'
  221. 'PID|||0123456||SMITH^Mary^^^Mrs^^L||19550430|F||4|1 Healthy St^^Springfield^NY^52134^1001^HOME||2328077470||1001|1|3223||5234123222||||3213|||||3213'
  222. )
  223. TabOrder = 2
  224. WordWrap = False
  225. end
  226. end
  227. end
  228. object Panel8: TPanel
  229. Left = 0
  230. Height = 201
  231. Top = 636
  232. Width = 1022
  233. Align = alBottom
  234. Caption = 'Panel8'
  235. ClientHeight = 201
  236. ClientWidth = 1022
  237. TabOrder = 2
  238. object memGeneral: TMemo
  239. Left = 1
  240. Height = 199
  241. Top = 1
  242. Width = 1020
  243. Align = alClient
  244. TabOrder = 0
  245. WordWrap = False
  246. end
  247. end
  248. object idHl7Client: TIdHL7
  249. KeepAlive.UseKeepAlive = False
  250. KeepAlive.IdleTimeMS = 0
  251. KeepAlive.IntervalMS = 0
  252. IPRestriction = '0.0.0.0'
  253. IPMask = '0.0.0.0'
  254. CommunicationMode = cmSynchronous
  255. OnConnect = idHl7ClientConnect
  256. OnDisconnect = idHl7ClientDisconnect
  257. OnConnCountChange = idHl7ClientConnCountChange
  258. OnReceiveError = idHl7ClientReceiveError
  259. Left = 328
  260. Top = 72
  261. end
  262. object idHl7Server: TIdHL7
  263. Port = 1234
  264. KeepAlive.UseKeepAlive = False
  265. KeepAlive.IdleTimeMS = 0
  266. KeepAlive.IntervalMS = 0
  267. ConnectionLimit = 10
  268. IPRestriction = '0.0.0.0'
  269. IPMask = '0.0.0.0'
  270. CommunicationMode = cmSynchronous
  271. OnConnect = idHl7ServerConnect
  272. OnDisconnect = idHl7ServerDisconnect
  273. OnConnCountChange = idHl7ServerConnCountChange
  274. OnReceiveError = idHl7ServerReceiveError
  275. Left = 840
  276. Top = 40
  277. end
  278. end