Sha256: 2c2821fa0d987283ca3550c541a8b47c72151676d25c5476210af3033be249a3
Contents?: true
Size: 575 Bytes
Versions: 1
Compression:
Stored size: 575 Bytes
Contents
module Lifen module Communication class Channel < Lifen::Base attribute :uuid, String attribute :type, String attribute :value, String def fhir_payload(user) { id: user.uuid, resourceType: "Practitioner", type => [ { id: uuid } ] } end def self.from_json(json, type = nil) new(uuid: json["id"], type: type, value: json["value"] || "#{json["line"].join(", ")}, #{json["postalCode"]} #{json["city"]}") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lifen-1.6.6 | lib/lifen/communication/channel.rb |