mediserv 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mediserv/api/types.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67cd369570d448a9728fc514e94d26609a95774448576c58599eb25e1c2dc685
|
4
|
+
data.tar.gz: 00416fa2f2706c90b81a04acce892ef4faefbf91c73a56df949517a3eb02a263
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e130cc9ea3c7c021caf60ca7a893ce0a024d2ca8a317e6476a7c6b53e9137c570404b490646bc1d098fbdcbc0a498093c427c87412ea7e8793583ef0b9f64fd
|
7
|
+
data.tar.gz: e406d956d8919c527d4d2622c09693ca8a70d80c44f66eadef89e8316dd06f19556be1c57b71ebe798929945733733b560207495435a86ea3f19e21e2715f9cd
|
data/lib/mediserv/api/types.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2023-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-struct
|