mediserv 0.3.3 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mediserv/api/types.rb +17 -15
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a366a623670d526423ad318108c5df23571e96bc12c4818c1d08fdeab6d98a45
4
- data.tar.gz: 95bfaf30fd0a88eee47ff672fb04518c509a38347efcdc1c17e6dc02285a9e39
3
+ metadata.gz: 6d57e314eebb74a700ebf701b0ffcf129074fa6a08cb691ebb3e2d82c78df5e0
4
+ data.tar.gz: 42a3ae6c15a840168f8a14a59144917c47e9fffd18a0e6f624f7fbc68b9969c6
5
5
  SHA512:
6
- metadata.gz: 79bf46d7e846a30268ca2bcc1e7830e6c8ef60fee350f4d3a9dc57a71e6882f67705f8fc29cd79c044e4ea4ce7b4f170a3406417264b7e0f6dd998fce3141c1d
7
- data.tar.gz: 1b50aba6ee439ecfe4e13081c4d39acf775d5d0d373f87ebd90ab3764bc5bda0ea19a9ab870f8439d1a52dd276ea704c25f25f3086617f733555f18457b61ea8
6
+ metadata.gz: c5eafc303085cfb9bf890b7547b5cea3c9ece3a0ecf9a18cc51fd3b2e9a62e5f23b3bd07111dc28b6a2730a62f01378836359e25569bf8d4cc21cb13b7ae1a10
7
+ data.tar.gz: 437a91358cb1929953a488061c1ae5c68e9f237bdd6baae83c20541c8ba952f79164040bce82fea668a78fda7ad287fcf51e8abca861daa003ac81d6fe2c704f
@@ -35,6 +35,8 @@ module MediServ::API
35
35
  attribute :ort, Types::Strict::String
36
36
  # Geburtsdatum
37
37
  attribute :geburtsdatum, Types::Strict::Date.optional.default(nil)
38
+ # company
39
+ attribute :company, Types::Strict::String.optional.default(nil)
38
40
  end
39
41
 
40
42
  class Patient < Struct
@@ -205,7 +207,7 @@ module MediServ::API
205
207
  h[:EmpfArt] = fmt_string(empfanger.art, max: 20)
206
208
  h[:EmpfAnrede] = fmt_string(empfanger.anrede, max: 4)
207
209
  h[:EmpfTitel] = fmt_string(empfanger.titel, max: 20)
208
- h[:EmpfName] = fmt_string(empfanger.name, max: 40)
210
+ h[:EmpfName] = empfanger.art == 'Garant' ? fmt_string(empfanger.company, max: 40) : fmt_string(empfanger.name, max: 40)
209
211
  h[:EmpfVorname] = fmt_string(empfanger.vorname, max: 40)
210
212
  h[:EmpfStrasse] = fmt_string(empfanger.strasse, max: 20)
211
213
  h[:EmpfLand] = fmt_string(empfanger.land, max: 3)
@@ -220,25 +222,25 @@ module MediServ::API
220
222
  rech_text.scan(/.{1,180}/).each.with_index(1) do |s, i|
221
223
  # A line will go up to 180 characters, but could be shorter in case of a
222
224
  # new line or simply a short line.
223
- h["RechText[#{i}]"] = s
225
+ h["RechText#{i}"] = s
224
226
  end unless rech_text.nil?
225
227
  leistungen.each.with_index(1) do |l, i|
226
228
  # Total der Punkt von Ansatz
227
- # h["TotalPkt[#{i}]"] = l.punkte || 0.0
229
+ # h["TotalPkt#{i}"] = l.punkte || 0.0
228
230
  # Ansatz für Punkte
229
- # h["TotalAnsatz[#{i}]"] = l.ansatz || 0.0
231
+ # h["TotalAnsatz#{i}"] = l.ansatz || 0.0
230
232
 
231
- h["LeisDatum[#{i}]"] = fmt_date(l.datum)
232
- h["LeisAnz[#{i}]"] = fmt_amount(l.anzahl)
233
- h["LeisZahnNr[#{i}]"] = l.zahnnummer
234
- h["LeisArt[#{i}]"] = l.art
235
- h["LeisPosNr[#{i}]"] = l.nummer
236
- h["LeisBez[#{i}]"] = l.bezeichnung
237
- h["LeisAnsatz[#{i}]"] = l.ansatz
238
- h["LeisPkt[#{i}]"] = l.punkte
239
- h["LeisRabatt[#{i}]"] = l.rabatt ? 1 : 0
240
- h["LeisBetrag[#{i}]"] = l.betrag
241
- h["LeisTotal[#{i}]"] = l.total
233
+ h["LeisDatum#{i}"] = fmt_date(l.datum)
234
+ h["LeisAnz#{i}"] = fmt_amount(l.anzahl)
235
+ h["LeisZahnNr#{i}"] = l.zahnnummer
236
+ h["LeisArt#{i}"] = l.art
237
+ h["LeisPosNr#{i}"] = l.nummer
238
+ h["LeisBez#{i}"] = l.bezeichnung
239
+ h["LeisAnsatz#{i}"] = l.ansatz
240
+ h["LeisPkt#{i}"] = l.punkte
241
+ h["LeisRabatt#{i}"] = l.rabatt ? 1 : 0
242
+ h["LeisBetrag#{i}"] = l.betrag
243
+ h["LeisTotal#{i}"] = l.total
242
244
  end
243
245
  h
244
246
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mediserv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denteo AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-17 00:00:00.000000000 Z
11
+ date: 2023-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  requirements: []
74
- rubygems_version: 3.4.10
74
+ rubygems_version: 3.3.7
75
75
  signing_key:
76
76
  specification_version: 4
77
77
  summary: Ruby client interacting with MediServ