big_register 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- big_register (0.0.2)
4
+ big_register (0.0.3)
5
5
  savon (~> 2.1.0)
6
6
 
7
7
  GEM
@@ -11,7 +11,7 @@ GEM
11
11
  akami (1.2.0)
12
12
  gyoku (>= 0.4.0)
13
13
  nokogiri (>= 1.4.0)
14
- builder (3.1.4)
14
+ builder (3.2.0)
15
15
  coderay (1.0.8)
16
16
  crack (0.3.2)
17
17
  diff-lcs (1.1.3)
@@ -22,7 +22,7 @@ GEM
22
22
  method_source (0.8.1)
23
23
  multi_json (1.6.1)
24
24
  nokogiri (1.5.6)
25
- nori (2.0.3)
25
+ nori (2.0.4)
26
26
  pry (0.9.12)
27
27
  coderay (~> 1.0.5)
28
28
  method_source (~> 0.8)
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
- big_register
1
+ BIG Register
2
2
  ============
3
3
 
4
- Gem to query the BIG register
4
+ Gem to query the BIG register API.
5
+
6
+ This gem was made by @koos303 and @Ruben-Hartog
@@ -17,6 +17,15 @@ module BIGRegister
17
17
  "60" => "Ziekenhuisfarmacie", "61" => "Klinische psychologie", "62" => "Interne geneeskunde-allergologie"
18
18
  }
19
19
 
20
+ PROFESSION = {"01" => "Artsen", "02" => "Tandartsen", "03" => "Verloskundigen", "04" => "Fysiotherapeuten",
21
+ "16" => "Psychotherapeuten", "17" => "Apothekers", "18" => "Apotheekhoudende artsen", "25" => "Gz-psychologen",
22
+ "30" => "Verpleegkundigen", "87" => "Optometristen", "88" => "Huidtherapeuten", "89" => "Dietisten",
23
+ "90" => "Ergotherapeuten", "91" => "Logopedisten", "92" => "Mondhygienisten", "93" => "Oefentherapeuten Mensendieck",
24
+ "94" => "Oefentherapeuten Cesar", "95" => "Orthoptisten", "96" => "Podotherapeuten", "97" => "Radiodiagnostisch laboranten",
25
+ "98" => "Radiotherapeutisch laboranten", "99" => "Onbekend", "83" => "Apothekersassistenten", "85" => "Tandprothetica",
26
+ "86" => "Verzorgenden individuele gezondheidszorg"
27
+ }
28
+
20
29
  def initialize
21
30
  wsdl = "http://webservices.cibg.nl/Ribiz/OpenbaarV2.asmx?wsdl"
22
31
  @client = Savon.client(wsdl: wsdl, log: false)
@@ -1,3 +1,3 @@
1
1
  module BIGRegister
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -43,5 +43,9 @@ module BIGRegister
43
43
  end
44
44
  end
45
45
 
46
+ it "should return a profession" do
47
+ BIGRegister::Client::PROFESSION.fetch("01").should eql "Artsen"
48
+ end
49
+
46
50
  end
47
51
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: big_register
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  version: '0'
153
153
  requirements: []
154
154
  rubyforge_project:
155
- rubygems_version: 1.8.25
155
+ rubygems_version: 1.8.24
156
156
  signing_key:
157
157
  specification_version: 3
158
158
  summary: A gem to query the BIG register
@@ -164,4 +164,3 @@ test_files:
164
164
  - spec/fixtures/cassettes/BIGRegister_Client/_list_hcp/should_return_an_empty_list.yml
165
165
  - spec/lib/big_register/client_spec.rb
166
166
  - spec/spec_helper.rb
167
- has_rdoc: