mediserv 0.3.3 → 0.3.4

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 +3 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a366a623670d526423ad318108c5df23571e96bc12c4818c1d08fdeab6d98a45
4
- data.tar.gz: 95bfaf30fd0a88eee47ff672fb04518c509a38347efcdc1c17e6dc02285a9e39
3
+ metadata.gz: 67cd369570d448a9728fc514e94d26609a95774448576c58599eb25e1c2dc685
4
+ data.tar.gz: 00416fa2f2706c90b81a04acce892ef4faefbf91c73a56df949517a3eb02a263
5
5
  SHA512:
6
- metadata.gz: 79bf46d7e846a30268ca2bcc1e7830e6c8ef60fee350f4d3a9dc57a71e6882f67705f8fc29cd79c044e4ea4ce7b4f170a3406417264b7e0f6dd998fce3141c1d
7
- data.tar.gz: 1b50aba6ee439ecfe4e13081c4d39acf775d5d0d373f87ebd90ab3764bc5bda0ea19a9ab870f8439d1a52dd276ea704c25f25f3086617f733555f18457b61ea8
6
+ metadata.gz: 1e130cc9ea3c7c021caf60ca7a893ce0a024d2ca8a317e6476a7c6b53e9137c570404b490646bc1d098fbdcbc0a498093c427c87412ea7e8793583ef0b9f64fd
7
+ data.tar.gz: e406d956d8919c527d4d2622c09693ca8a70d80c44f66eadef89e8316dd06f19556be1c57b71ebe798929945733733b560207495435a86ea3f19e21e2715f9cd
@@ -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)
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.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-07-17 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