Sha256: 7bff459f3686421c43792eecdf073205ca66b7944e9a6cf77a2214a8cae72aa0

Contents?: true

Size: 1.21 KB

Versions: 39

Compression:

Stored size: 1.21 KB

Contents

# frozen_string_literal: true

require "document/embedded"
require "document/enum"

module Renalware
  module LowClearance
    class ProfileDocument < Document::Embedded
      attribute :first_seen_on, Date
      attribute :dialysis_plan, Document::Enum
      attribute :dialysis_planned_on, Date
      attribute :predicted_esrf_date, Date
      attribute :referral_creatinine, Integer
      # Note that referred_by is now used as 'Referred by notes' as we have a new referrer relation
      # on the profile itself. We need to keep the document version around, so using for notes.
      attribute :referred_by, String
      attribute :education_status, Document::Enum
      attribute :referral_egfr, Decimal
      attribute :education_type, Document::Enum
      attribute :attended_on, Date
      attribute :dvd1_provided, Document::Enum, enums: %i(yes no)
      attribute :dvd2_provided, Document::Enum, enums: %i(yes no)
      attribute :transplant_referral, Document::Enum, enums: %i(yes no)
      attribute :transplant_referred_on, Date
      attribute :home_hd_possible, Document::Enum, enums: %i(yes no)
      attribute :self_care_possible, Document::Enum, enums: %i(yes no)
      attribute :access_notes, String
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/documents/renalware/low_clearance/profile_document.rb
renalware-core-2.1.0 app/documents/renalware/low_clearance/profile_document.rb
renalware-core-2.0.167 app/documents/renalware/low_clearance/profile_document.rb
renalware-core-2.0.166 app/documents/renalware/low_clearance/profile_document.rb
renalware-core-2.0.165 app/documents/renalware/low_clearance/profile_document.rb
renalware-core-2.0.164 app/documents/renalware/low_clearance/profile_document.rb
renalware-core-2.0.163 app/documents/renalware/low_clearance/profile_document.rb
renalware-core-2.0.162 app/documents/renalware/low_clearance/profile_document.rb
renalware-core-2.0.161 app/documents/renalware/low_clearance/profile_document.rb
renalware-core-2.0.160 app/documents/renalware/low_clearance/profile_document.rb
renalware-core-2.0.159 app/documents/renalware/low_clearance/profile_document.rb
renalware-core-2.0.158 app/documents/renalware/low_clearance/profile_document.rb
renalware-core-2.0.157 app/documents/renalware/low_clearance/profile_document.rb
renalware-core-2.0.156 app/documents/renalware/low_clearance/profile_document.rb
renalware-core-2.0.155 app/documents/renalware/low_clearance/profile_document.rb
renalware-core-2.0.153 app/documents/renalware/low_clearance/profile_document.rb
renalware-core-2.0.152 app/documents/renalware/low_clearance/profile_document.rb
renalware-core-2.0.151 app/documents/renalware/low_clearance/profile_document.rb
renalware-core-2.0.149 app/documents/renalware/low_clearance/profile_document.rb
renalware-core-2.0.148 app/documents/renalware/low_clearance/profile_document.rb