aqi 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8087443434ed42d7793962d3975acb64def50c4b
4
+ data.tar.gz: b29b200af0c20f314741f386f2689263f39bc674
5
+ SHA512:
6
+ metadata.gz: 6ae17f5044162802ffefc362b37b25f52bcddcebccfe19161e4b73c00c29d28306f848750b068dffcded6797278620b8033d4f8ac1e82eb36faa09ea9d30d46d
7
+ data.tar.gz: 6a23a2aa8088dfb0054fda6c7289fe042d8ce006a3933c0e6c64f1ae15fc6b3424ac321f21cc89c3d4c5a19c3f55776d54a037276b0ddf0381f4d7a734c8ba00
@@ -65,11 +65,15 @@ module AQI
65
65
  end
66
66
 
67
67
  def anesthesia_staffs
68
- services.collect do |s|
69
- AnesthesiaStaff.new(staff_id: s.provider_id, role: s.provider_type)
68
+ anesthesia_providers.collect do |id, type|
69
+ AnesthesiaStaff.new(staff_id: id, role: type)
70
70
  end
71
71
  end
72
72
 
73
+ def anesthesia_providers
74
+ services.collect{|s| [s.provider_id,s.provider_type]}.uniq
75
+ end
76
+
73
77
  def anesthesia_case
74
78
  AnesthesiaCase.new(anesthesia_record_id: encounter.encounter_id,
75
79
  anesthesia_staff_set: anesthesia_staffs)
@@ -1,3 +1,3 @@
1
1
  module AQI
2
- VERSION = "0.0.3" unless defined?(AQI::VERSION)
2
+ VERSION = "0.0.4" unless defined?(AQI::VERSION)
3
3
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aqi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
4
+ version: 0.0.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Robert Jackson
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-04 00:00:00.000000000 Z
11
+ date: 2013-03-22 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Generates output based on the AQI schema.
15
14
  email:
@@ -44,27 +43,25 @@ files:
44
43
  - lib/aqi/version.rb
45
44
  homepage: https://github.com/promedical/aqi
46
45
  licenses: []
46
+ metadata: {}
47
47
  post_install_message:
48
48
  rdoc_options: []
49
49
  require_paths:
50
50
  - lib
51
51
  required_ruby_version: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ! '>='
53
+ - - '>='
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
- none: false
57
56
  required_rubygems_version: !ruby/object:Gem::Requirement
58
57
  requirements:
59
- - - ! '>='
58
+ - - '>='
60
59
  - !ruby/object:Gem::Version
61
60
  version: '0'
62
- none: false
63
61
  requirements: []
64
62
  rubyforge_project:
65
- rubygems_version: 1.8.24
63
+ rubygems_version: 2.0.0
66
64
  signing_key:
67
- specification_version: 3
65
+ specification_version: 4
68
66
  summary: Generates output based on the AQI schema.
69
67
  test_files: []
70
- has_rdoc: