Class: ChangeHealthcare::Eligibility::SwaggerClient::Loop2100BCDSegmentNM1PRVNotesProvider
- Inherits:
-
Object
- Object
- ChangeHealthcare::Eligibility::SwaggerClient::Loop2100BCDSegmentNM1PRVNotesProvider
- Defined in:
- lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Loop: 2100B, Segment: N3 and N4, Notes: Provider Address.
-
#employers_id ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM109 Notes: NM108=24 Employer’s Identification Number.
-
#entity_identifier ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM101 Notes: Entity Identifier Code.
-
#entity_type ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM102 Notes: Entity Type Qualifier.
-
#federal_taxpayers_id_number ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM109 Notes: NM108=FI Federal Taxpayer’s Identification Number.
-
#middle_name ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM105 Notes: Name Middle.
-
#npi ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM109 Notes: NM108=XX Centers for Medicare and Medicaid Services National Provider Identifier.
-
#payor_identification ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM109 Notes: NM108=PI Payor Identification.
-
#pharmacy_processor_number ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM109 Notes: NM108=PP Pharmacy Processor Number.
-
#provider_code ⇒ Object
Loop: 2100, Segment: PRV, Element: PRV01 Notes: Provider Code.
-
#provider_first_name ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM104 Notes: Name First.
-
#provider_name ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM103 Notes: Name Last.
-
#provider_org_name ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM103 Notes: Organization Name.
-
#reference_identification ⇒ Object
Loop: 2100, Segment: PRV, Element: PRV03 Notes: PRV02=PXC Reference Identification.
-
#service_provider_number ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM109 Notes: NM108=SV Service Provider Number.
-
#services_plan_id ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM109 Notes: NM108=XV Centers for Medicare and Medicaid Services PlanID.
-
#ssn ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM109 Notes: NM108=34 Social Security Number.
-
#suffix ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM107 Notes: suffix.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ Loop2100BCDSegmentNM1PRVNotesProvider
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ Loop2100BCDSegmentNM1PRVNotesProvider
Initializes the object
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 121 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.transform_keys(&:to_sym) self.address = attributes[:address] if attributes.key?(:address) self.employers_id = attributes[:employersId] if attributes.key?(:employersId) self.entity_identifier = attributes[:entityIdentifier] if attributes.key?(:entityIdentifier) self.entity_type = attributes[:entityType] if attributes.key?(:entityType) self.federal_taxpayers_id_number = attributes[:federalTaxpayersIdNumber] if attributes.key?(:federalTaxpayersIdNumber) self.middle_name = attributes[:middleName] if attributes.key?(:middleName) self.npi = attributes[:npi] if attributes.key?(:npi) self.payor_identification = attributes[:payorIdentification] if attributes.key?(:payorIdentification) self.pharmacy_processor_number = attributes[:pharmacyProcessorNumber] if attributes.key?(:pharmacyProcessorNumber) self.provider_code = attributes[:providerCode] if attributes.key?(:providerCode) self.provider_first_name = attributes[:providerFirstName] if attributes.key?(:providerFirstName) self.provider_name = attributes[:providerName] if attributes.key?(:providerName) self.provider_org_name = attributes[:providerOrgName] if attributes.key?(:providerOrgName) self.reference_identification = attributes[:referenceIdentification] if attributes.key?(:referenceIdentification) self.service_provider_number = attributes[:serviceProviderNumber] if attributes.key?(:serviceProviderNumber) self.services_plan_id = attributes[:servicesPlanID] if attributes.key?(:servicesPlanID) self.ssn = attributes[:ssn] if attributes.key?(:ssn) self.suffix = attributes[:suffix] if attributes.key?(:suffix) end |
Instance Attribute Details
#address ⇒ Object
Loop: 2100B, Segment: N3 and N4, Notes: Provider Address
18 19 20 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 18 def address @address end |
#employers_id ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM109 Notes: NM108=24 Employer’s Identification Number
21 22 23 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 21 def employers_id @employers_id end |
#entity_identifier ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM101 Notes: Entity Identifier Code
24 25 26 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 24 def entity_identifier @entity_identifier end |
#entity_type ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM102 Notes: Entity Type Qualifier
27 28 29 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 27 def entity_type @entity_type end |
#federal_taxpayers_id_number ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM109 Notes: NM108=FI Federal Taxpayer’s Identification Number
30 31 32 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 30 def federal_taxpayers_id_number @federal_taxpayers_id_number end |
#middle_name ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM105 Notes: Name Middle
33 34 35 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 33 def middle_name @middle_name end |
#npi ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM109 Notes: NM108=XX Centers for Medicare and Medicaid Services National Provider Identifier
36 37 38 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 36 def npi @npi end |
#payor_identification ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM109 Notes: NM108=PI Payor Identification
39 40 41 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 39 def payor_identification @payor_identification end |
#pharmacy_processor_number ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM109 Notes: NM108=PP Pharmacy Processor Number
42 43 44 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 42 def pharmacy_processor_number @pharmacy_processor_number end |
#provider_code ⇒ Object
Loop: 2100, Segment: PRV, Element: PRV01 Notes: Provider Code
45 46 47 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 45 def provider_code @provider_code end |
#provider_first_name ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM104 Notes: Name First
48 49 50 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 48 def provider_first_name @provider_first_name end |
#provider_name ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM103 Notes: Name Last
51 52 53 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 51 def provider_name @provider_name end |
#provider_org_name ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM103 Notes: Organization Name
54 55 56 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 54 def provider_org_name @provider_org_name end |
#reference_identification ⇒ Object
Loop: 2100, Segment: PRV, Element: PRV03 Notes: PRV02=PXC Reference Identification
57 58 59 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 57 def reference_identification @reference_identification end |
#service_provider_number ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM109 Notes: NM108=SV Service Provider Number
60 61 62 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 60 def service_provider_number @service_provider_number end |
#services_plan_id ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM109 Notes: NM108=XV Centers for Medicare and Medicaid Services PlanID
63 64 65 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 63 def services_plan_id @services_plan_id end |
#ssn ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM109 Notes: NM108=34 Social Security Number
66 67 68 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 66 def ssn @ssn end |
#suffix ⇒ Object
Loop: 2100B, Segment: NM1, Element: NM107 Notes: suffix
69 70 71 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 69 def suffix @suffix end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 72 def self.attribute_map { 'address': :address, 'employers_id': :employersId, 'entity_identifier': :entityIdentifier, 'entity_type': :entityType, 'federal_taxpayers_id_number': :federalTaxpayersIdNumber, 'middle_name': :middleName, 'npi': :npi, 'payor_identification': :payorIdentification, 'pharmacy_processor_number': :pharmacyProcessorNumber, 'provider_code': :providerCode, 'provider_first_name': :providerFirstName, 'provider_name': :providerName, 'provider_org_name': :providerOrgName, 'reference_identification': :referenceIdentification, 'service_provider_number': :serviceProviderNumber, 'services_plan_id': :servicesPlanID, 'ssn': :ssn, 'suffix': :suffix } end |
.swagger_types ⇒ Object
Attribute type mapping.
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 96 def self.swagger_types { 'address': :Address, 'employers_id': :String, 'entity_identifier': :String, 'entity_type': :String, 'federal_taxpayers_id_number': :String, 'middle_name': :String, 'npi': :String, 'payor_identification': :String, 'pharmacy_processor_number': :String, 'provider_code': :String, 'provider_first_name': :String, 'provider_name': :String, 'provider_org_name': :String, 'reference_identification': :String, 'service_provider_number': :String, 'services_plan_id': :String, 'ssn': :String, 'suffix': :String } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 178 def ==(o) return true if equal?(o) self.class == o.class && address == o.address && employers_id == o.employers_id && entity_identifier == o.entity_identifier && entity_type == o.entity_type && federal_taxpayers_id_number == o.federal_taxpayers_id_number && middle_name == o.middle_name && npi == o.npi && payor_identification == o.payor_identification && pharmacy_processor_number == o.pharmacy_processor_number && provider_code == o.provider_code && provider_first_name == o.provider_first_name && provider_name == o.provider_name && provider_org_name == o.provider_org_name && reference_identification == o.reference_identification && service_provider_number == o.service_provider_number && services_plan_id == o.services_plan_id && ssn == o.ssn && suffix == o.suffix end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 239 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = SwaggerClient.const_get(type).new temp_model.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
306 307 308 309 310 311 312 313 314 315 316 317 318 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 306 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 217 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize(Regexp.last_match(1), v) }) end elsif !attributes[self.class.attribute_map[key]].nil? send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
204 205 206 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 204 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
210 211 212 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 210 def hash [address, employers_id, entity_identifier, entity_type, federal_taxpayers_id_number, middle_name, npi, payor_identification, pharmacy_processor_number, provider_code, provider_first_name, provider_name, provider_org_name, reference_identification, service_provider_number, services_plan_id, ssn, suffix].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
166 167 168 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 166 def list_invalid_properties [] end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
285 286 287 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 285 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
291 292 293 294 295 296 297 298 299 300 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 291 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
279 280 281 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 279 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
172 173 174 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_bcd_segment_nm1_prv_notes_provider.rb', line 172 def valid? true end |