medivo 0.1.17 → 0.1.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Medivo
2
- VERSION = "0.1.17"
2
+ VERSION = "0.1.18"
3
3
  end
@@ -1,12 +1,12 @@
1
1
  module Medivo
2
2
  class PdfGenerator
3
3
 
4
- def self.tmp_pdf
4
+ def self.tmp_pdf(auto_close=true)
5
5
  pdf = Tempfile.new('pdf', :encoding => 'ascii-8bit')
6
6
  yield pdf
7
7
  # if you don't close here the helper method pdf_to_text does not work
8
8
  # its also a good idea to close the temp file anyway
9
- pdf.close
9
+ pdf.close if auto_close
10
10
  pdf
11
11
  end
12
12
 
@@ -20,7 +20,7 @@ module Medivo
20
20
  end
21
21
 
22
22
  def method_missing(method, *args, &block)
23
- @self_before_instance_eval = self.class.instance_variable_get :@self_before_instance_eval
23
+ @self_before_instance_eval = self.class.instance_variable_get :@self_before_instance_eval
24
24
  @self_before_instance_eval.send method, *args, &block
25
25
  end
26
26
 
@@ -30,12 +30,12 @@ module Medivo
30
30
 
31
31
  def lab_requisition(requisition_id)
32
32
  pdf_bytes = Medivo::Order.pdf_requisition(requisition_id)
33
- @pdfs << PdfGenerator.tmp_pdf {|pdf| pdf.write pdf_bytes }
33
+ @pdfs << PdfGenerator.tmp_pdf { |pdf| pdf.write pdf_bytes }
34
34
  end
35
35
 
36
36
  def lab_result(requisition_id)
37
37
  pdf_bytes = Medivo::Order.pdf_result(requisition_id)
38
- @pdfs << PdfGenerator.tmp_pdf {|pdf| pdf.write pdf_bytes }
38
+ @pdfs << PdfGenerator.tmp_pdf { |pdf| pdf.write pdf_bytes }
39
39
  end
40
40
 
41
41
  def static_pdf(path)
@@ -45,22 +45,27 @@ module Medivo
45
45
  ##
46
46
  # Combines the PDFs
47
47
  def combine_pdfs
48
- @pdf = PdfGenerator.tmp_pdf do |pdf|
49
- args = [@pdfs.collect(&:path), 'cat', 'output', pdf.path].flatten
50
- system 'pdftk', *args
51
- @pdfs.collect do |file|
52
- file.close
53
- file.unlink if file.respond_to? :unlink
54
- end
48
+ @pdf = PdfGenerator.tmp_pdf(false) do |pdf|
49
+ args = [@pdfs.collect(&:path), 'cat', 'output', pdf.path].join(' ')
50
+ `pdftk #{args}`
51
+ end
52
+
53
+ @pdfs.collect do |file|
54
+ file.close
55
+ file.unlink if file.respond_to? :unlink
55
56
  end
56
57
  end
57
58
 
58
- # trying to keep the pdf ( tempfile ) closed until you need it then closing again
59
59
  def read
60
- @pdf.open
61
- bytes = @pdf.read
62
- @pdf.close
63
- bytes
60
+ pdf.read
61
+ end
62
+
63
+ def close
64
+ if pdf
65
+ pdf.close
66
+ pdf.unlink
67
+ end
64
68
  end
69
+
65
70
  end
66
71
  end
@@ -0,0 +1,27 @@
1
+ require 'spec_helper'
2
+
3
+ describe OrdersController do
4
+
5
+ before do
6
+ @requisition_id = 170420
7
+ @user = SampleUser
8
+ lab_order = LabTestOrder.new(@requisition_id, @user)
9
+ @user.lab_order = lab_order
10
+ end
11
+
12
+ it "#download_requisition" do
13
+ any_instance_of(OrdersController, :current_user => @user)
14
+ stub_order_requisition(@requisition_id, medivo_fixture_path("lc_order_with_requisition.xml"))
15
+
16
+ get :download_requisition
17
+ response.body.should match /^%PDF/
18
+ end
19
+
20
+ it "#download_result" do
21
+ any_instance_of(OrdersController, :current_user => @user)
22
+ stub_order_result(@requisition_id, medivo_fixture_path("lc_order_with_positive_results.xml"))
23
+
24
+ get :download_result
25
+ response.body.should match /^%PDF/
26
+ end
27
+ end
@@ -0,0 +1,15 @@
1
+ class OrdersController < ActionController::Base
2
+ def download_requisition
3
+ lab_test_order = current_user.lab_order
4
+ pdf = lab_test_order.pdf_requisition
5
+
6
+ send_data pdf.read, :disposition => 'inline', :type=> 'application/pdf', :filename=>'unitedhealthcare_requisition.pdf', :layout=>false
7
+ end
8
+
9
+ def download_result
10
+ lab_test_order = current_user.lab_order
11
+ pdf = lab_test_order.pdf_result
12
+
13
+ send_data pdf.read, :disposition => 'inline', :type=> 'application/pdf', :filename=>'unitedhealthcare_result.pdf', :layout=>false
14
+ end
15
+ end
@@ -1,4 +1,8 @@
1
1
  Rails.application.routes.draw do
2
2
  mount Medivo::Engine => "/medivo", :as => "medivo"
3
3
  match "/labs/lab_search" => "labs#lab_search", :via => :get, :as=> :search_labs
4
+ resource :orders, :only=>[] do
5
+ get :download_requisition
6
+ get :download_result
7
+ end
4
8
  end
@@ -279,3 +279,389 @@ Served asset /medivo/markerB.png - 200 OK (1ms)
279
279
 
280
280
  Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-07 17:04:17 -0500
281
281
  Served asset /medivo/arrow.png - 200 OK (2ms)
282
+ Processing by OrdersController#download_requisition as HTML
283
+ Completed 500 Internal Server Error in 5ms
284
+ Processing by OrdersController#download_requisition as HTML
285
+ Completed 500 Internal Server Error in 5ms
286
+ Processing by OrdersController#download_requisition as HTML
287
+ Completed 500 Internal Server Error in 1ms
288
+ Processing by OrdersController#download_requisition as HTML
289
+ Completed 500 Internal Server Error in 1ms
290
+ Processing by OrdersController#download_requisition as HTML
291
+ Completed 500 Internal Server Error in 4ms
292
+ Processing by OrdersController#download_requisition as HTML
293
+ Rendered text template (0.0ms)
294
+ Sent data unitedhealthcare_requisition.pdf (87.6ms)
295
+ Completed 200 OK in 463ms (Views: 86.6ms)
296
+ Processing by OrdersController#download_requisition as HTML
297
+ Rendered text template (0.0ms)
298
+ Sent data unitedhealthcare_requisition.pdf (106.4ms)
299
+ Completed 200 OK in 486ms (Views: 105.7ms)
300
+ Processing by OrdersController#download_requisition as HTML
301
+ Rendered text template (0.0ms)
302
+ Sent data unitedhealthcare_requisition.pdf (108.7ms)
303
+ Completed 200 OK in 491ms (Views: 108.2ms)
304
+ Processing by OrdersController#download_requisition as HTML
305
+ Rendered text template (0.0ms)
306
+ Sent data unitedhealthcare_requisition.pdf (108.0ms)
307
+ Completed 200 OK in 492ms (Views: 106.9ms)
308
+ Processing by OrdersController#download_requisition as HTML
309
+ Completed 500 Internal Server Error in 389ms
310
+ Processing by OrdersController#download_requisition as HTML
311
+ Rendered text template (0.0ms)
312
+ Sent data unitedhealthcare_requisition.pdf (103.7ms)
313
+ Completed 200 OK in 502ms (Views: 103.4ms)
314
+ Processing by OrdersController#download_requisition as HTML
315
+ Rendered text template (0.0ms)
316
+ Sent data unitedhealthcare_requisition.pdf (69.9ms)
317
+ Completed 200 OK in 568ms (Views: 69.0ms)
318
+ Processing by OrdersController#download_requisition as HTML
319
+ Rendered text template (0.0ms)
320
+ Sent data unitedhealthcare_requisition.pdf (72.3ms)
321
+ Completed 200 OK in 569ms (Views: 71.3ms)
322
+ Processing by OrdersController#download_requisition as HTML
323
+ Rendered text template (0.0ms)
324
+ Sent data unitedhealthcare_requisition.pdf (71.3ms)
325
+ Completed 200 OK in 568ms (Views: 70.5ms)
326
+ Processing by OrdersController#download_requisition as HTML
327
+ Rendered text template (0.0ms)
328
+ Sent data unitedhealthcare_requisition.pdf (109.4ms)
329
+ Completed 200 OK in 622ms (Views: 108.9ms)
330
+
331
+
332
+ Started GET "/medivo/labs/lab_data?zip_code=90210" for 127.0.0.1 at 2011-11-07 23:15:25 -0500
333
+ Processing by Medivo::LabsController#lab_data as HTML
334
+ Parameters: {"zip_code"=>"90210"}
335
+ Completed 200 OK in 394ms (Views: 1.1ms)
336
+
337
+
338
+ Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-07 23:15:28 -0500
339
+ Processing by LabsController#lab_search as HTML
340
+ Parameters: {"zip_code"=>"90210"}
341
+ Completed 200 OK in 277ms (Views: 38.1ms)
342
+
343
+
344
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-11-07 23:15:28 -0500
345
+ Served asset /application.css - 200 OK (4ms)
346
+
347
+
348
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-11-07 23:15:28 -0500
349
+ Served asset /application.js - 200 OK (22ms)
350
+
351
+
352
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-07 23:15:29 -0500
353
+ Served asset /medivo/markerA.png - 200 OK (2ms)
354
+
355
+
356
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-07 23:15:29 -0500
357
+ Served asset /medivo/markerB.png - 200 OK (1ms)
358
+
359
+
360
+ Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-07 23:15:29 -0500
361
+ Served asset /medivo/arrow.png - 200 OK (2ms)
362
+ Processing by OrdersController#download_requisition as HTML
363
+ Rendered text template (0.0ms)
364
+ Sent data unitedhealthcare_requisition.pdf (70.6ms)
365
+ Completed 200 OK in 543ms (Views: 69.3ms)
366
+ Processing by OrdersController#download_result as HTML
367
+ Completed 500 Internal Server Error in 6ms
368
+ Processing by OrdersController#download_result as HTML
369
+ Rendered text template (0.0ms)
370
+ Sent data unitedhealthcare_result.pdf (109.4ms)
371
+ Completed 200 OK in 506ms (Views: 108.3ms)
372
+ Processing by OrdersController#download_result as HTML
373
+ Rendered text template (0.0ms)
374
+ Sent data unitedhealthcare_result.pdf (111.2ms)
375
+ Completed 200 OK in 508ms (Views: 110.3ms)
376
+ Processing by OrdersController#download_result as HTML
377
+ Rendered text template (0.0ms)
378
+ Sent data unitedhealthcare_result.pdf (103.8ms)
379
+ Completed 200 OK in 503ms (Views: 102.8ms)
380
+ Processing by OrdersController#download_result as HTML
381
+ Rendered text template (0.0ms)
382
+ Sent data unitedhealthcare_result.pdf (109.0ms)
383
+ Completed 200 OK in 630ms (Views: 107.8ms)
384
+ Processing by OrdersController#download_result as HTML
385
+ Rendered text template (0.0ms)
386
+ Sent data unitedhealthcare_result.pdf (106.7ms)
387
+ Completed 200 OK in 282ms (Views: 106.4ms)
388
+ Processing by OrdersController#download_result as HTML
389
+ Rendered text template (0.0ms)
390
+ Sent data unitedhealthcare_result.pdf (107.2ms)
391
+ Completed 200 OK in 281ms (Views: 106.4ms)
392
+ Processing by OrdersController#download_requisition as HTML
393
+ Rendered text template (0.0ms)
394
+ Sent data unitedhealthcare_requisition.pdf (105.6ms)
395
+ Completed 200 OK in 959ms (Views: 104.8ms)
396
+ Processing by OrdersController#download_result as HTML
397
+ Sent data unitedhealthcare_result.pdf (2.7ms)
398
+ Completed 200 OK in 711ms (Views: 1.9ms)
399
+ Processing by OrdersController#download_requisition as HTML
400
+ Rendered text template (0.0ms)
401
+ Sent data unitedhealthcare_requisition.pdf (72.5ms)
402
+ Completed 200 OK in 932ms (Views: 71.7ms)
403
+ Processing by OrdersController#download_result as HTML
404
+ Sent data unitedhealthcare_result.pdf (3.4ms)
405
+ Completed 200 OK in 714ms (Views: 2.5ms)
406
+
407
+
408
+ Started GET "/medivo/labs/lab_data?zip_code=90210" for 127.0.0.1 at 2011-11-08 10:02:44 -0500
409
+ Processing by Medivo::LabsController#lab_data as HTML
410
+ Parameters: {"zip_code"=>"90210"}
411
+ Completed 200 OK in 318ms (Views: 1.1ms)
412
+
413
+
414
+ Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-08 10:02:47 -0500
415
+ Processing by LabsController#lab_search as HTML
416
+ Parameters: {"zip_code"=>"90210"}
417
+ Completed 200 OK in 273ms (Views: 38.1ms)
418
+
419
+
420
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-11-08 10:02:47 -0500
421
+ Served asset /application.css - 200 OK (3ms)
422
+
423
+
424
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-11-08 10:02:47 -0500
425
+ Served asset /application.js - 200 OK (28ms)
426
+
427
+
428
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-08 10:02:48 -0500
429
+ Served asset /medivo/markerA.png - 200 OK (1ms)
430
+
431
+
432
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-08 10:02:48 -0500
433
+ Served asset /medivo/markerB.png - 200 OK (1ms)
434
+
435
+
436
+ Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-08 10:02:48 -0500
437
+ Served asset /medivo/arrow.png - 200 OK (1ms)
438
+ Processing by OrdersController#download_requisition as HTML
439
+ Rendered text template (0.0ms)
440
+ Sent data unitedhealthcare_requisition.pdf (69.9ms)
441
+ Completed 200 OK in 931ms (Views: 69.0ms)
442
+ Processing by OrdersController#download_result as HTML
443
+ Sent data unitedhealthcare_result.pdf (3.3ms)
444
+ Completed 200 OK in 711ms (Views: 1.9ms)
445
+
446
+
447
+ Started GET "/medivo/labs/lab_data?zip_code=90210" for 127.0.0.1 at 2011-11-08 10:03:08 -0500
448
+ Processing by Medivo::LabsController#lab_data as HTML
449
+ Parameters: {"zip_code"=>"90210"}
450
+ Completed 200 OK in 231ms (Views: 1.1ms)
451
+
452
+
453
+ Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-08 10:03:10 -0500
454
+ Processing by LabsController#lab_search as HTML
455
+ Parameters: {"zip_code"=>"90210"}
456
+ Completed 200 OK in 221ms (Views: 40.4ms)
457
+
458
+
459
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-11-08 10:03:10 -0500
460
+ Served asset /application.css - 200 OK (4ms)
461
+
462
+
463
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-11-08 10:03:10 -0500
464
+ Served asset /application.js - 200 OK (80ms)
465
+
466
+
467
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-08 10:03:11 -0500
468
+ Served asset /medivo/markerA.png - 200 OK (1ms)
469
+
470
+
471
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-08 10:03:11 -0500
472
+ Served asset /medivo/markerB.png - 200 OK (1ms)
473
+
474
+
475
+ Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-08 10:03:11 -0500
476
+ Served asset /medivo/arrow.png - 200 OK (2ms)
477
+ Processing by OrdersController#download_requisition as HTML
478
+ Rendered text template (0.0ms)
479
+ Sent data unitedhealthcare_requisition.pdf (68.7ms)
480
+ Completed 200 OK in 980ms (Views: 68.5ms)
481
+ Processing by OrdersController#download_result as HTML
482
+ Sent data unitedhealthcare_result.pdf (2.2ms)
483
+ Completed 200 OK in 485ms (Views: 1.4ms)
484
+ Processing by OrdersController#download_requisition as HTML
485
+ Rendered text template (0.0ms)
486
+ Sent data unitedhealthcare_requisition.pdf (67.8ms)
487
+ Completed 200 OK in 977ms (Views: 67.6ms)
488
+ Processing by OrdersController#download_result as HTML
489
+ Sent data unitedhealthcare_result.pdf (0.7ms)
490
+ Completed 200 OK in 762ms (Views: 0.6ms)
491
+ Processing by OrdersController#download_requisition as HTML
492
+ Rendered text template (0.0ms)
493
+ Sent data unitedhealthcare_requisition.pdf (69.6ms)
494
+ Completed 200 OK in 1314ms (Views: 69.3ms)
495
+ Processing by OrdersController#download_result as HTML
496
+ Sent data unitedhealthcare_result.pdf (0.7ms)
497
+ Completed 200 OK in 1583ms (Views: 0.5ms)
498
+ Processing by OrdersController#download_requisition as HTML
499
+ Rendered text template (0.0ms)
500
+ Sent data unitedhealthcare_requisition.pdf (70.0ms)
501
+ Completed 200 OK in 1284ms (Views: 69.7ms)
502
+ Processing by OrdersController#download_result as HTML
503
+ Sent data unitedhealthcare_result.pdf (0.7ms)
504
+ Completed 200 OK in 753ms (Views: 0.5ms)
505
+ Processing by OrdersController#download_requisition as HTML
506
+ Rendered text template (0.0ms)
507
+ Sent data unitedhealthcare_requisition.pdf (69.2ms)
508
+ Completed 200 OK in 970ms (Views: 69.0ms)
509
+ Processing by OrdersController#download_result as HTML
510
+ Sent data unitedhealthcare_result.pdf (0.8ms)
511
+ Completed 200 OK in 1635ms (Views: 0.6ms)
512
+ Processing by OrdersController#download_requisition as HTML
513
+ Rendered text template (0.0ms)
514
+ Sent data unitedhealthcare_requisition.pdf (64.4ms)
515
+ Completed 200 OK in 967ms (Views: 64.3ms)
516
+ Processing by OrdersController#download_result as HTML
517
+ Sent data unitedhealthcare_result.pdf (1.1ms)
518
+ Completed 200 OK in 1636ms (Views: 0.8ms)
519
+ Processing by OrdersController#download_requisition as HTML
520
+ Completed 500 Internal Server Error in 533ms
521
+ Processing by OrdersController#download_result as HTML
522
+ Completed 500 Internal Server Error in 428ms
523
+ Processing by OrdersController#download_requisition as HTML
524
+ Rendered text template (0.0ms)
525
+ Sent data unitedhealthcare_requisition.pdf (105.1ms)
526
+ Completed 200 OK in 968ms (Views: 104.4ms)
527
+ Processing by OrdersController#download_result as HTML
528
+ Sent data unitedhealthcare_result.pdf (2.5ms)
529
+ Completed 200 OK in 722ms (Views: 1.6ms)
530
+ Processing by OrdersController#download_requisition as HTML
531
+ Completed 500 Internal Server Error in 899ms
532
+ Processing by OrdersController#download_result as HTML
533
+ Completed 500 Internal Server Error in 752ms
534
+ Processing by OrdersController#download_requisition as HTML
535
+ Completed 500 Internal Server Error in 916ms
536
+ Processing by OrdersController#download_result as HTML
537
+ Completed 500 Internal Server Error in 754ms
538
+ Processing by OrdersController#download_requisition as HTML
539
+ Rendered text template (0.0ms)
540
+ Sent data unitedhealthcare_requisition.pdf (68.2ms)
541
+ Completed 200 OK in 959ms (Views: 67.8ms)
542
+ Processing by OrdersController#download_result as HTML
543
+ Sent data unitedhealthcare_result.pdf (0.6ms)
544
+ Completed 200 OK in 757ms (Views: 0.5ms)
545
+ Processing by OrdersController#download_requisition as HTML
546
+ Rendered text template (0.0ms)
547
+ Sent data unitedhealthcare_requisition.pdf (64.8ms)
548
+ Completed 200 OK in 969ms (Views: 64.5ms)
549
+ Processing by OrdersController#download_result as HTML
550
+ Sent data unitedhealthcare_result.pdf (1.0ms)
551
+ Completed 200 OK in 751ms (Views: 0.8ms)
552
+ Processing by OrdersController#download_requisition as HTML
553
+ Rendered text template (0.0ms)
554
+ Sent data unitedhealthcare_requisition.pdf (67.8ms)
555
+ Completed 200 OK in 972ms (Views: 67.6ms)
556
+ Processing by OrdersController#download_result as HTML
557
+ Sent data unitedhealthcare_result.pdf (0.7ms)
558
+ Completed 200 OK in 759ms (Views: 0.6ms)
559
+ Processing by OrdersController#download_requisition as HTML
560
+ Rendered text template (0.0ms)
561
+ Sent data unitedhealthcare_requisition.pdf (64.8ms)
562
+ Completed 200 OK in 969ms (Views: 64.5ms)
563
+ Processing by OrdersController#download_result as HTML
564
+ Sent data unitedhealthcare_result.pdf (0.7ms)
565
+ Completed 200 OK in 756ms (Views: 0.6ms)
566
+ Processing by OrdersController#download_requisition as HTML
567
+ Rendered text template (0.0ms)
568
+ Sent data unitedhealthcare_requisition.pdf (66.8ms)
569
+ Completed 200 OK in 961ms (Views: 66.5ms)
570
+ Processing by OrdersController#download_result as HTML
571
+ Sent data unitedhealthcare_result.pdf (0.8ms)
572
+ Completed 200 OK in 755ms (Views: 0.6ms)
573
+ Processing by OrdersController#download_requisition as HTML
574
+ Rendered text template (0.0ms)
575
+ Sent data unitedhealthcare_requisition.pdf (71.5ms)
576
+ Completed 200 OK in 973ms (Views: 71.4ms)
577
+ Processing by OrdersController#download_result as HTML
578
+ Sent data unitedhealthcare_result.pdf (0.6ms)
579
+ Completed 200 OK in 762ms (Views: 0.5ms)
580
+ Processing by OrdersController#download_requisition as HTML
581
+ Rendered text template (0.0ms)
582
+ Sent data unitedhealthcare_requisition.pdf (109.5ms)
583
+ Completed 200 OK in 976ms (Views: 109.1ms)
584
+ Processing by OrdersController#download_result as HTML
585
+ Sent data unitedhealthcare_result.pdf (2.9ms)
586
+ Completed 200 OK in 722ms (Views: 1.6ms)
587
+ Processing by OrdersController#download_requisition as HTML
588
+ Rendered text template (0.0ms)
589
+ Sent data unitedhealthcare_requisition.pdf (111.4ms)
590
+ Completed 200 OK in 974ms (Views: 110.9ms)
591
+ Processing by OrdersController#download_result as HTML
592
+ Sent data unitedhealthcare_result.pdf (2.9ms)
593
+ Completed 200 OK in 716ms (Views: 1.5ms)
594
+ Processing by OrdersController#download_requisition as HTML
595
+ Rendered text template (0.0ms)
596
+ Sent data unitedhealthcare_requisition.pdf (106.2ms)
597
+ Completed 200 OK in 970ms (Views: 105.7ms)
598
+ Processing by OrdersController#download_result as HTML
599
+ Sent data unitedhealthcare_result.pdf (2.1ms)
600
+ Completed 200 OK in 721ms (Views: 1.3ms)
601
+ Processing by OrdersController#download_requisition as HTML
602
+ Rendered text template (0.0ms)
603
+ Sent data unitedhealthcare_requisition.pdf (109.7ms)
604
+ Completed 200 OK in 977ms (Views: 109.2ms)
605
+ Processing by OrdersController#download_result as HTML
606
+ Sent data unitedhealthcare_result.pdf (2.5ms)
607
+ Completed 200 OK in 722ms (Views: 1.5ms)
608
+ Processing by OrdersController#download_requisition as HTML
609
+ Rendered text template (0.0ms)
610
+ Sent data unitedhealthcare_requisition.pdf (107.5ms)
611
+ Completed 200 OK in 974ms (Views: 106.8ms)
612
+ Processing by OrdersController#download_result as HTML
613
+ Sent data unitedhealthcare_result.pdf (3.0ms)
614
+ Completed 200 OK in 714ms (Views: 1.8ms)
615
+ Processing by OrdersController#download_requisition as HTML
616
+ Rendered text template (0.0ms)
617
+ Sent data unitedhealthcare_requisition.pdf (110.9ms)
618
+ Completed 200 OK in 975ms (Views: 110.4ms)
619
+ Processing by OrdersController#download_result as HTML
620
+ Sent data unitedhealthcare_result.pdf (2.5ms)
621
+ Completed 200 OK in 717ms (Views: 1.3ms)
622
+ Processing by OrdersController#download_requisition as HTML
623
+ Rendered text template (0.0ms)
624
+ Sent data unitedhealthcare_requisition.pdf (111.0ms)
625
+ Completed 200 OK in 976ms (Views: 110.6ms)
626
+ Processing by OrdersController#download_result as HTML
627
+ Sent data unitedhealthcare_result.pdf (2.5ms)
628
+ Completed 200 OK in 715ms (Views: 1.6ms)
629
+ Processing by OrdersController#download_requisition as HTML
630
+ Rendered text template (0.0ms)
631
+ Sent data unitedhealthcare_requisition.pdf (112.1ms)
632
+ Completed 200 OK in 998ms (Views: 111.5ms)
633
+ Processing by OrdersController#download_result as HTML
634
+ Sent data unitedhealthcare_result.pdf (2.4ms)
635
+ Completed 200 OK in 723ms (Views: 1.5ms)
636
+
637
+
638
+ Started GET "/medivo/labs/lab_data?zip_code=90210" for 127.0.0.1 at 2011-11-08 10:22:11 -0500
639
+ Processing by Medivo::LabsController#lab_data as HTML
640
+ Parameters: {"zip_code"=>"90210"}
641
+ Completed 200 OK in 314ms (Views: 1.2ms)
642
+
643
+
644
+ Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-08 10:22:13 -0500
645
+ Processing by LabsController#lab_search as HTML
646
+ Parameters: {"zip_code"=>"90210"}
647
+ Completed 200 OK in 276ms (Views: 41.6ms)
648
+
649
+
650
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-11-08 10:22:13 -0500
651
+ Served asset /application.css - 200 OK (4ms)
652
+
653
+
654
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-11-08 10:22:13 -0500
655
+ Served asset /application.js - 200 OK (21ms)
656
+
657
+
658
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-08 10:22:13 -0500
659
+ Served asset /medivo/markerA.png - 200 OK (3ms)
660
+
661
+
662
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-08 10:22:13 -0500
663
+ Served asset /medivo/markerB.png - 200 OK (2ms)
664
+
665
+
666
+ Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-08 10:22:13 -0500
667
+ Served asset /medivo/arrow.png - 200 OK (3ms)