lib/lifen/user.rb in lifen-1.6.5 vs lib/lifen/user.rb in lifen-1.6.6
- old
+ new
@@ -150,10 +150,10 @@
filtered_params[params[:type]] = address
json = application_client.post("fhir/Practitioner/#{uuid}/$add-address", filtered_params)
- channel = Communication::Channel.new(uuid: json["issue"][0]["id"], type: params[:type], value: "#{Array(params[:lines])[0]}, #{params[:postal_code]} #{params[:city]}")
+ channel = Communication::Channel.new(uuid: json["issue"][0]["id"], type: params[:type], value: "#{Array(params[:lines]).join(", ")}, #{params[:postal_code]} #{params[:city]}")
self.channels << channel
channel
end
\ No newline at end of file