Sha256: e4e314dc015004ebac0e8ca414c8e01089a2996df60bc15405526822e8b56505

Contents?: true

Size: 395 Bytes

Versions: 2

Compression:

Stored size: 395 Bytes

Contents

module LifenFhir
  class Medium < Element

    attribute :code, String
    attribute :display, String
    attribute :value, String


    def fhir_payload
      {
        coding:[{
          id: uuid
        }]
      }
    end

    def attributes_from_json(json)

      self.display = json["display"]
      self.code = json["code"]
      self.value = json["value"]

      self
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lifen_fhir-0.7.1 lib/lifen_fhir/medium.rb
lifen_fhir-0.7.0 lib/lifen_fhir/medium.rb