mediserv 0.3.2 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mediserv/api/types.rb +5 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: feb7528d7c8c68568ec08c10493b2b135fc805e89d202d2f0a64fa94e2e25ea3
4
- data.tar.gz: 0de565fc0088b143d8469c0bbec332563468449a174ae6d6fb0e0e4425664c3a
3
+ metadata.gz: 67cd369570d448a9728fc514e94d26609a95774448576c58599eb25e1c2dc685
4
+ data.tar.gz: 00416fa2f2706c90b81a04acce892ef4faefbf91c73a56df949517a3eb02a263
5
5
  SHA512:
6
- metadata.gz: db4be12e137b7ccde7e56b6771ac3f0bebde6b8b79f5ee5337b9f78e3e328735638d2fb631a689f084971b2e02664d647a82b13b75ba04c369ec28fe33f1d392
7
- data.tar.gz: 7ddca5bc4dc8797043f1c9bebcc8f86175254aa98cc35434d940060b552bf462f55c271f5c067476e4f483ab2d9a91d7a0ea053ef8c61ea36df07f95f74e2c1f
6
+ metadata.gz: 1e130cc9ea3c7c021caf60ca7a893ce0a024d2ca8a317e6476a7c6b53e9137c570404b490646bc1d098fbdcbc0a498093c427c87412ea7e8793583ef0b9f64fd
7
+ data.tar.gz: e406d956d8919c527d4d2622c09693ca8a70d80c44f66eadef89e8316dd06f19556be1c57b71ebe798929945733733b560207495435a86ea3f19e21e2715f9cd
@@ -34,7 +34,9 @@ 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
+ # company
39
+ attribute :company, Types::Strict::String.optional.default(nil)
38
40
  end
39
41
 
40
42
  class Patient < Struct
@@ -59,7 +61,7 @@ module MediServ::API
59
61
  # Ort
60
62
  attribute :ort, Types::Strict::String
61
63
  # Geburtsdatum
62
- attribute :geburtsdatum, Types::Strict::Date
64
+ attribute :geburtsdatum, Types::Strict::Date.optional.default(nil)
63
65
  end
64
66
 
65
67
  class InvoiceItem < 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)
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.2
4
+ version: 0.3.4
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-05-30 00:00:00.000000000 Z
11
+ date: 2023-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct