Sha256: bfc1f4c42d6a828bedc4143791a14d871bdc641cec3c46b68ebf016643b21a81

Contents?: true

Size: 1.33 KB

Versions: 4

Compression:

Stored size: 1.33 KB

Contents

module Trizetto
  module Api
    module Eligibility
      module WebService

        # The <PatientName> in either a Subscriber or Dependent
        #
        # <b>XML Example</b>
        #
        #   <patientname>
        #     <first>Derek</first>
        #     <middle>D</middle>
        #     <last>Walter</last>
        #     <patientaddress>1634 Maverick Glen</patientaddress>
        #     <patientcity>Starkbury</patientcity>
        #     <patientstate>IA</patientstate>
        #     <patientzip>38592</patientzip>
        #   </patientname>
        #
        # <b>Example</b>
        #
        #   patient = Patient.new(patientname: {first: 'Derek', last: 'Walter', patientaddress: '1634 Maverick Glen'})
        #   patient.name.first   # => Derek
        #   patient.name.last    # => Walter
        #   patient.name.address # => 1634 Maverick Glen
        #
        class PatientName < Node
          REQUIRED_KEYS =
          {
            first: '',
            last:  '',
          }

          KEY_CLEANUP =
          {
            patientaddress:  :address,
            patientaddress2: :address_2,
            patientcity:     :city,
            patientstate:    :state,
            patientzip:      :zip
          }

          def initialize(raw_hash = {})
            super(raw_hash)
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trizetto-api-0.2.4 lib/trizetto/api/eligibility/web_service/patient_name.rb
trizetto-api-0.2.3 lib/trizetto/api/eligibility/web_service/patient_name.rb
trizetto-api-0.2.2 lib/trizetto/api/eligibility/web_service/patient_name.rb
trizetto-api-0.2.1 lib/trizetto/api/eligibility/web_service/patient_name.rb