Class: Trizetto::Api::Eligibility::WebService::PatientName
- Defined in:
- lib/trizetto/api/eligibility/web_service/patient_name.rb
Overview
The <PatientName> in either a Subscriber or Dependent
XML Example
<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>
Example
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
Constant Summary collapse
- REQUIRED_KEYS =
{ first: '', last: '', }
- KEY_CLEANUP =
{ patientaddress: :address, patientaddress2: :address_2, patientcity: :city, patientstate: :state, patientzip: :zip }
Instance Method Summary collapse
-
#initialize(raw_hash = {}) ⇒ PatientName
constructor
A new instance of PatientName.
Constructor Details
#initialize(raw_hash = {}) ⇒ PatientName
Returns a new instance of PatientName.
43 44 45 |
# File 'lib/trizetto/api/eligibility/web_service/patient_name.rb', line 43 def initialize(raw_hash = {}) super(raw_hash) end |