Sha256: 3daf5e6a6c0ce3441331d06e4687135aa93c217b8b5307c3cf602fd6ca3f6945

Contents?: true

Size: 1.08 KB

Versions: 52

Compression:

Stored size: 1.08 KB

Contents

# frozen_string_literal: true

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

module Renalware
  class PatientDocument < Document::Embedded
    attribute :interpreter_notes, String
    attribute :admin_notes, String
    attribute :special_needs_notes, String
    attribute :diabetes, DatedBooleanDiagnosis

    class Referral < Document::Embedded
      attribute :referring_physician_name, String
      attribute :referral_date, Date
      attribute :referral_type, String
      attribute :referral_notes, String
    end
    attribute :referral, Referral

    class Psychosocial < Document::Embedded
      attribute :housing, String
      attribute :social_network, String
      attribute :care_package, String
      attribute :other, String
      attribute :updated_at, Date
    end
    attribute :psychosocial, Psychosocial

    class History < Document::Embedded
      attribute :alcohol, Document::Enum, enums: %i(never rarely social heavy)
      attribute :smoking, Document::Enum, enums: %i(no ex yes) # RRSMOKING %i(never former current)
    end
    attribute :history, History
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
renalware-core-2.0.78 app/documents/renalware/patient_document.rb
renalware-core-2.0.77 app/documents/renalware/patient_document.rb
renalware-core-2.0.76 app/documents/renalware/patient_document.rb
renalware-core-2.0.75 app/documents/renalware/patient_document.rb
renalware-core-2.0.74 app/documents/renalware/patient_document.rb
renalware-core-2.0.73 app/documents/renalware/patient_document.rb
renalware-core-2.0.72 app/documents/renalware/patient_document.rb
renalware-core-2.0.71 app/documents/renalware/patient_document.rb
renalware-core-2.0.70 app/documents/renalware/patient_document.rb
renalware-core-2.0.69 app/documents/renalware/patient_document.rb
renalware-core-2.0.68 app/documents/renalware/patient_document.rb
renalware-core-2.0.67 app/documents/renalware/patient_document.rb
renalware-core-2.0.64 app/documents/renalware/patient_document.rb
renalware-core-2.0.63 app/documents/renalware/patient_document.rb
renalware-core-2.0.62 app/documents/renalware/patient_document.rb
renalware-core-2.0.61 app/documents/renalware/patient_document.rb
renalware-core-2.0.60 app/documents/renalware/patient_document.rb
renalware-core-2.0.58 app/documents/renalware/patient_document.rb
renalware-core-2.0.57 app/documents/renalware/patient_document.rb
renalware-core-2.0.56 app/documents/renalware/patient_document.rb