mediserv 0.3.1 → 0.3.3

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 +16 -16
  3. metadata +12 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8dda364d3fa7113b92c011b8fe3d320229171714955c0d56ab26b991b34b8f4
4
- data.tar.gz: b2a0a07490f9eca8b3322595069601cf7d2a48dee7aa858b6317caf3e18e3491
3
+ metadata.gz: a366a623670d526423ad318108c5df23571e96bc12c4818c1d08fdeab6d98a45
4
+ data.tar.gz: 95bfaf30fd0a88eee47ff672fb04518c509a38347efcdc1c17e6dc02285a9e39
5
5
  SHA512:
6
- metadata.gz: e244cf2adbee6ca62c9c02ba8a6b0b3cd41cbb7d2ef7456ecca9609971268523250873ead3c8a0f543896d6ccdf6df6b6aa8b48f5552054e5166f21e60bd06cc
7
- data.tar.gz: 7fce3eff34a05fdc83762a5fb62df48a017d1a883aafa6bc41212b438680a7677f60fa612efd8f601286bd5996f1f9091f82491d96eca27f54bcb1ec30f14079
6
+ metadata.gz: 79bf46d7e846a30268ca2bcc1e7830e6c8ef60fee350f4d3a9dc57a71e6882f67705f8fc29cd79c044e4ea4ce7b4f170a3406417264b7e0f6dd998fce3141c1d
7
+ data.tar.gz: 1b50aba6ee439ecfe4e13081c4d39acf775d5d0d373f87ebd90ab3764bc5bda0ea19a9ab870f8439d1a52dd276ea704c25f25f3086617f733555f18457b61ea8
@@ -34,7 +34,7 @@ module MediServ::API
34
34
  # Ort
35
35
  attribute :ort, Types::Strict::String
36
36
  # Geburtsdatum
37
- attribute :geburtsdatum, Types::Strict::Date
37
+ attribute :geburtsdatum, Types::Strict::Date.optional.default(nil)
38
38
  end
39
39
 
40
40
  class Patient < Struct
@@ -59,7 +59,7 @@ module MediServ::API
59
59
  # Ort
60
60
  attribute :ort, Types::Strict::String
61
61
  # Geburtsdatum
62
- attribute :geburtsdatum, Types::Strict::Date
62
+ attribute :geburtsdatum, Types::Strict::Date.optional.default(nil)
63
63
  end
64
64
 
65
65
  class InvoiceItem < Struct
@@ -220,25 +220,25 @@ module MediServ::API
220
220
  rech_text.scan(/.{1,180}/).each.with_index(1) do |s, i|
221
221
  # A line will go up to 180 characters, but could be shorter in case of a
222
222
  # new line or simply a short line.
223
- h["RechText#{i}"] = s
223
+ h["RechText[#{i}]"] = s
224
224
  end unless rech_text.nil?
225
225
  leistungen.each.with_index(1) do |l, i|
226
226
  # Total der Punkt von Ansatz
227
- # h["TotalPkt#{i}"] = l.punkte || 0.0
227
+ # h["TotalPkt[#{i}]"] = l.punkte || 0.0
228
228
  # Ansatz für Punkte
229
- # h["TotalAnsatz#{i}"] = l.ansatz || 0.0
229
+ # h["TotalAnsatz[#{i}]"] = l.ansatz || 0.0
230
230
 
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
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
242
242
  end
243
243
  h
244
244
  end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mediserv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denteo AG
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-08 00:00:00.000000000 Z
11
+ date: 2023-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: dry-types
14
+ name: dry-struct
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.5.1
19
+ version: 1.6.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.5.1
26
+ version: 1.6.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: dry-struct
28
+ name: dry-types
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 1.4.0
33
+ version: 1.7.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 1.4.0
40
+ version: 1.7.1
41
41
  description: Ruby client interacting with MediServ
42
42
  email: simon@denteo.ch
43
43
  executables: []
@@ -56,7 +56,7 @@ homepage: https://rubygems.org/gems/mediserv
56
56
  licenses:
57
57
  - MIT
58
58
  metadata: {}
59
- post_install_message:
59
+ post_install_message:
60
60
  rdoc_options: []
61
61
  require_paths:
62
62
  - lib
@@ -71,8 +71,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  requirements: []
74
- rubygems_version: 3.1.2
75
- signing_key:
74
+ rubygems_version: 3.4.10
75
+ signing_key:
76
76
  specification_version: 4
77
77
  summary: Ruby client interacting with MediServ
78
78
  test_files: []