Class: ChangeHealthcare::ProfessionalClaims::SwaggerClient::ServiceLine
- Inherits:
-
Object
- Object
- ChangeHealthcare::ProfessionalClaims::SwaggerClient::ServiceLine
- Defined in:
- lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb
Instance Attribute Summary collapse
-
#additional_notes ⇒ Object
Returns the value of attribute additional_notes.
-
#ambulance_certification ⇒ Object
Returns the value of attribute ambulance_certification.
-
#ambulance_drop_off_location ⇒ Object
Returns the value of attribute ambulance_drop_off_location.
-
#ambulance_patient_count ⇒ Object
Returns the value of attribute ambulance_patient_count.
-
#ambulance_pick_up_location ⇒ Object
Returns the value of attribute ambulance_pick_up_location.
-
#ambulance_transport_information ⇒ Object
Returns the value of attribute ambulance_transport_information.
-
#assigned_number ⇒ Object
Returns the value of attribute assigned_number.
-
#condition_indicator_durable_medical_equipment ⇒ Object
Returns the value of attribute condition_indicator_durable_medical_equipment.
-
#contract_information ⇒ Object
Returns the value of attribute contract_information.
-
#drug_identification ⇒ Object
Returns the value of attribute drug_identification.
-
#durable_medical_equipment_certificate_of_medical_necessity ⇒ Object
Returns the value of attribute durable_medical_equipment_certificate_of_medical_necessity.
-
#durable_medical_equipment_certification ⇒ Object
Returns the value of attribute durable_medical_equipment_certification.
-
#durable_medical_equipment_service ⇒ Object
Returns the value of attribute durable_medical_equipment_service.
-
#file_information ⇒ Object
Returns the value of attribute file_information.
-
#form_identification ⇒ Object
Returns the value of attribute form_identification.
-
#goal_rehab_or_discharge_plans ⇒ Object
Returns the value of attribute goal_rehab_or_discharge_plans.
-
#hospice_employee_indicator ⇒ Object
Returns the value of attribute hospice_employee_indicator.
-
#line_adjudication_information ⇒ Object
Returns the value of attribute line_adjudication_information.
-
#line_pricing_repricing_information ⇒ Object
Returns the value of attribute line_pricing_repricing_information.
-
#obstetric_anesthesia_additional_units ⇒ Object
Returns the value of attribute obstetric_anesthesia_additional_units.
-
#ordering_provider ⇒ Object
Returns the value of attribute ordering_provider.
-
#postage_tax_amount ⇒ Object
Returns the value of attribute postage_tax_amount.
-
#professional_service ⇒ Object
Returns the value of attribute professional_service.
-
#provider_control_number ⇒ Object
Returns the value of attribute provider_control_number.
-
#purchased_service_information ⇒ Object
Returns the value of attribute purchased_service_information.
-
#purchased_service_provider ⇒ Object
Returns the value of attribute purchased_service_provider.
-
#referring_provider ⇒ Object
Returns the value of attribute referring_provider.
-
#rendering_provider ⇒ Object
Returns the value of attribute rendering_provider.
-
#sales_tax_amount ⇒ Object
Returns the value of attribute sales_tax_amount.
-
#service_date ⇒ Object
Returns the value of attribute service_date.
-
#service_date_end ⇒ Object
Returns the value of attribute service_date_end.
-
#service_facility_location ⇒ Object
Returns the value of attribute service_facility_location.
-
#service_line_date_information ⇒ Object
Returns the value of attribute service_line_date_information.
-
#service_line_reference_information ⇒ Object
Returns the value of attribute service_line_reference_information.
-
#service_line_supplemental_information ⇒ Object
Returns the value of attribute service_line_supplemental_information.
-
#supervising_provider ⇒ Object
Returns the value of attribute supervising_provider.
-
#test_results ⇒ Object
Returns the value of attribute test_results.
-
#third_party_organization_notes ⇒ Object
Returns the value of attribute third_party_organization_notes.
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
-
#==(other) ⇒ 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?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ ServiceLine
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 = {}) ⇒ ServiceLine
Initializes the object
112 113 114 115 116 117 118 119 120 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 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 112 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.transform_keys(&:to_sym) self.additional_notes = attributes[:additionalNotes] if attributes.key?(:additionalNotes) if attributes.key?(:ambulanceCertification) && (value = attributes[:ambulanceCertification]).is_a?(Array) self.ambulance_certification = value end self.ambulance_drop_off_location = attributes[:ambulanceDropOffLocation] if attributes.key?(:ambulanceDropOffLocation) self.ambulance_patient_count = attributes[:ambulancePatientCount] if attributes.key?(:ambulancePatientCount) self.ambulance_pick_up_location = attributes[:ambulancePickUpLocation] if attributes.key?(:ambulancePickUpLocation) self.ambulance_transport_information = attributes[:ambulanceTransportInformation] if attributes.key?(:ambulanceTransportInformation) self.assigned_number = attributes[:assignedNumber] if attributes.key?(:assignedNumber) self.condition_indicator_durable_medical_equipment = attributes[:conditionIndicatorDurableMedicalEquipment] if attributes.key?(:conditionIndicatorDurableMedicalEquipment) self.contract_information = attributes[:contractInformation] if attributes.key?(:contractInformation) self.drug_identification = attributes[:drugIdentification] if attributes.key?(:drugIdentification) self.durable_medical_equipment_certificate_of_medical_necessity = attributes[:durableMedicalEquipmentCertificateOfMedicalNecessity] if attributes.key?(:durableMedicalEquipmentCertificateOfMedicalNecessity) self.durable_medical_equipment_certification = attributes[:durableMedicalEquipmentCertification] if attributes.key?(:durableMedicalEquipmentCertification) self.durable_medical_equipment_service = attributes[:durableMedicalEquipmentService] if attributes.key?(:durableMedicalEquipmentService) if attributes.key?(:fileInformation) && (value = attributes[:fileInformation]).is_a?(Array) self.file_information = value end if attributes.key?(:formIdentification) && (value = attributes[:formIdentification]).is_a?(Array) self.form_identification = value end self.goal_rehab_or_discharge_plans = attributes[:goalRehabOrDischargePlans] if attributes.key?(:goalRehabOrDischargePlans) self.hospice_employee_indicator = attributes[:hospiceEmployeeIndicator] if attributes.key?(:hospiceEmployeeIndicator) if attributes.key?(:lineAdjudicationInformation) && (value = attributes[:lineAdjudicationInformation]).is_a?(Array) self.line_adjudication_information = value end self.line_pricing_repricing_information = attributes[:linePricingRepricingInformation] if attributes.key?(:linePricingRepricingInformation) self.obstetric_anesthesia_additional_units = attributes[:obstetricAnesthesiaAdditionalUnits] if attributes.key?(:obstetricAnesthesiaAdditionalUnits) self.ordering_provider = attributes[:orderingProvider] if attributes.key?(:orderingProvider) self.postage_tax_amount = attributes[:postageTaxAmount] if attributes.key?(:postageTaxAmount) self.professional_service = attributes[:professionalService] if attributes.key?(:professionalService) self.provider_control_number = attributes[:providerControlNumber] if attributes.key?(:providerControlNumber) self.purchased_service_information = attributes[:purchasedServiceInformation] if attributes.key?(:purchasedServiceInformation) self.purchased_service_provider = attributes[:purchasedServiceProvider] if attributes.key?(:purchasedServiceProvider) self.referring_provider = attributes[:referringProvider] if attributes.key?(:referringProvider) self.rendering_provider = attributes[:renderingProvider] if attributes.key?(:renderingProvider) self.sales_tax_amount = attributes[:salesTaxAmount] if attributes.key?(:salesTaxAmount) self.service_date = attributes[:serviceDate] if attributes.key?(:serviceDate) self.service_date_end = attributes[:serviceDateEnd] if attributes.key?(:serviceDateEnd) self.service_facility_location = attributes[:serviceFacilityLocation] if attributes.key?(:serviceFacilityLocation) self.service_line_date_information = attributes[:serviceLineDateInformation] if attributes.key?(:serviceLineDateInformation) self.service_line_reference_information = attributes[:serviceLineReferenceInformation] if attributes.key?(:serviceLineReferenceInformation) if attributes.key?(:serviceLineSupplementalInformation) && (value = attributes[:serviceLineSupplementalInformation]).is_a?(Array) self.service_line_supplemental_information = value end self.supervising_provider = attributes[:supervisingProvider] if attributes.key?(:supervisingProvider) if attributes.key?(:testResults) && (value = attributes[:testResults]).is_a?(Array) self.test_results = value end self.third_party_organization_notes = attributes[:thirdPartyOrganizationNotes] if attributes.key?(:thirdPartyOrganizationNotes) end |
Instance Attribute Details
#additional_notes ⇒ Object
Returns the value of attribute additional_notes.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def additional_notes @additional_notes end |
#ambulance_certification ⇒ Object
Returns the value of attribute ambulance_certification.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def ambulance_certification @ambulance_certification end |
#ambulance_drop_off_location ⇒ Object
Returns the value of attribute ambulance_drop_off_location.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def ambulance_drop_off_location @ambulance_drop_off_location end |
#ambulance_patient_count ⇒ Object
Returns the value of attribute ambulance_patient_count.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def ambulance_patient_count @ambulance_patient_count end |
#ambulance_pick_up_location ⇒ Object
Returns the value of attribute ambulance_pick_up_location.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def ambulance_pick_up_location @ambulance_pick_up_location end |
#ambulance_transport_information ⇒ Object
Returns the value of attribute ambulance_transport_information.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def ambulance_transport_information @ambulance_transport_information end |
#assigned_number ⇒ Object
Returns the value of attribute assigned_number.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def assigned_number @assigned_number end |
#condition_indicator_durable_medical_equipment ⇒ Object
Returns the value of attribute condition_indicator_durable_medical_equipment.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def condition_indicator_durable_medical_equipment @condition_indicator_durable_medical_equipment end |
#contract_information ⇒ Object
Returns the value of attribute contract_information.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def contract_information @contract_information end |
#drug_identification ⇒ Object
Returns the value of attribute drug_identification.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def drug_identification @drug_identification end |
#durable_medical_equipment_certificate_of_medical_necessity ⇒ Object
Returns the value of attribute durable_medical_equipment_certificate_of_medical_necessity.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def durable_medical_equipment_certificate_of_medical_necessity @durable_medical_equipment_certificate_of_medical_necessity end |
#durable_medical_equipment_certification ⇒ Object
Returns the value of attribute durable_medical_equipment_certification.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def durable_medical_equipment_certification @durable_medical_equipment_certification end |
#durable_medical_equipment_service ⇒ Object
Returns the value of attribute durable_medical_equipment_service.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def durable_medical_equipment_service @durable_medical_equipment_service end |
#file_information ⇒ Object
Returns the value of attribute file_information.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def file_information @file_information end |
#form_identification ⇒ Object
Returns the value of attribute form_identification.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def form_identification @form_identification end |
#goal_rehab_or_discharge_plans ⇒ Object
Returns the value of attribute goal_rehab_or_discharge_plans.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def goal_rehab_or_discharge_plans @goal_rehab_or_discharge_plans end |
#hospice_employee_indicator ⇒ Object
Returns the value of attribute hospice_employee_indicator.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def hospice_employee_indicator @hospice_employee_indicator end |
#line_adjudication_information ⇒ Object
Returns the value of attribute line_adjudication_information.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def line_adjudication_information @line_adjudication_information end |
#line_pricing_repricing_information ⇒ Object
Returns the value of attribute line_pricing_repricing_information.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def line_pricing_repricing_information @line_pricing_repricing_information end |
#obstetric_anesthesia_additional_units ⇒ Object
Returns the value of attribute obstetric_anesthesia_additional_units.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def obstetric_anesthesia_additional_units @obstetric_anesthesia_additional_units end |
#ordering_provider ⇒ Object
Returns the value of attribute ordering_provider.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def ordering_provider @ordering_provider end |
#postage_tax_amount ⇒ Object
Returns the value of attribute postage_tax_amount.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def postage_tax_amount @postage_tax_amount end |
#professional_service ⇒ Object
Returns the value of attribute professional_service.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def professional_service @professional_service end |
#provider_control_number ⇒ Object
Returns the value of attribute provider_control_number.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def provider_control_number @provider_control_number end |
#purchased_service_information ⇒ Object
Returns the value of attribute purchased_service_information.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def purchased_service_information @purchased_service_information end |
#purchased_service_provider ⇒ Object
Returns the value of attribute purchased_service_provider.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def purchased_service_provider @purchased_service_provider end |
#referring_provider ⇒ Object
Returns the value of attribute referring_provider.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def referring_provider @referring_provider end |
#rendering_provider ⇒ Object
Returns the value of attribute rendering_provider.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def rendering_provider @rendering_provider end |
#sales_tax_amount ⇒ Object
Returns the value of attribute sales_tax_amount.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def sales_tax_amount @sales_tax_amount end |
#service_date ⇒ Object
Returns the value of attribute service_date.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def service_date @service_date end |
#service_date_end ⇒ Object
Returns the value of attribute service_date_end.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def service_date_end @service_date_end end |
#service_facility_location ⇒ Object
Returns the value of attribute service_facility_location.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def service_facility_location @service_facility_location end |
#service_line_date_information ⇒ Object
Returns the value of attribute service_line_date_information.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def service_line_date_information @service_line_date_information end |
#service_line_reference_information ⇒ Object
Returns the value of attribute service_line_reference_information.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def service_line_reference_information @service_line_reference_information end |
#service_line_supplemental_information ⇒ Object
Returns the value of attribute service_line_supplemental_information.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def service_line_supplemental_information @service_line_supplemental_information end |
#supervising_provider ⇒ Object
Returns the value of attribute supervising_provider.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def supervising_provider @supervising_provider end |
#test_results ⇒ Object
Returns the value of attribute test_results.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def test_results @test_results end |
#third_party_organization_notes ⇒ Object
Returns the value of attribute third_party_organization_notes.
19 20 21 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 19 def third_party_organization_notes @third_party_organization_notes end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 23 def self.attribute_map { additional_notes: :additionalNotes, ambulance_certification: :ambulanceCertification, ambulance_drop_off_location: :ambulanceDropOffLocation, ambulance_patient_count: :ambulancePatientCount, ambulance_pick_up_location: :ambulancePickUpLocation, ambulance_transport_information: :ambulanceTransportInformation, assigned_number: :assignedNumber, condition_indicator_durable_medical_equipment: :conditionIndicatorDurableMedicalEquipment, contract_information: :contractInformation, drug_identification: :drugIdentification, durable_medical_equipment_certificate_of_medical_necessity: :durableMedicalEquipmentCertificateOfMedicalNecessity, durable_medical_equipment_certification: :durableMedicalEquipmentCertification, durable_medical_equipment_service: :durableMedicalEquipmentService, file_information: :fileInformation, form_identification: :formIdentification, goal_rehab_or_discharge_plans: :goalRehabOrDischargePlans, hospice_employee_indicator: :hospiceEmployeeIndicator, line_adjudication_information: :lineAdjudicationInformation, line_pricing_repricing_information: :linePricingRepricingInformation, obstetric_anesthesia_additional_units: :obstetricAnesthesiaAdditionalUnits, ordering_provider: :orderingProvider, postage_tax_amount: :postageTaxAmount, professional_service: :professionalService, provider_control_number: :providerControlNumber, purchased_service_information: :purchasedServiceInformation, purchased_service_provider: :purchasedServiceProvider, referring_provider: :referringProvider, rendering_provider: :renderingProvider, sales_tax_amount: :salesTaxAmount, service_date: :serviceDate, service_date_end: :serviceDateEnd, service_facility_location: :serviceFacilityLocation, service_line_date_information: :serviceLineDateInformation, service_line_reference_information: :serviceLineReferenceInformation, service_line_supplemental_information: :serviceLineSupplementalInformation, supervising_provider: :supervisingProvider, test_results: :testResults, third_party_organization_notes: :thirdPartyOrganizationNotes } end |
.swagger_types ⇒ Object
Attribute type mapping.
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 67 def self.swagger_types { additional_notes: :String, ambulance_certification: :'Array<AmbulanceCertification>', ambulance_drop_off_location: :Address, ambulance_patient_count: :Integer, ambulance_pick_up_location: :Address, ambulance_transport_information: :AmbulanceTransportInformation, assigned_number: :String, condition_indicator_durable_medical_equipment: :ConditionIndicatorDurableMedicalEquipment, contract_information: :ContractInformation, drug_identification: :DrugIdentification, durable_medical_equipment_certificate_of_medical_necessity: :DurableMedicalEquipmentCertificateOfMedicalNecessity, durable_medical_equipment_certification: :DurableMedicalEquipmentCertification, durable_medical_equipment_service: :DurableMedicalEquipmentService, file_information: :'Array<String>', form_identification: :'Array<FormIdentification>', goal_rehab_or_discharge_plans: :String, hospice_employee_indicator: :BOOLEAN, line_adjudication_information: :'Array<LineAdjudicationInformation>', line_pricing_repricing_information: :ClaimPricingRepricingInformation, obstetric_anesthesia_additional_units: :Integer, ordering_provider: :ServiceLineProvider, postage_tax_amount: :String, professional_service: :ProfessionalService, provider_control_number: :String, purchased_service_information: :PurchasedServiceInformation, purchased_service_provider: :ServiceLineProvider, referring_provider: :ServiceLineProvider, rendering_provider: :ServiceLineProvider, sales_tax_amount: :String, service_date: :String, service_date_end: :String, service_facility_location: :ServiceFacilityLocation, service_line_date_information: :ServiceLineDateInformation, service_line_reference_information: :ServiceLineReferenceInformation, service_line_supplemental_information: :'Array<ReportInformation>', supervising_provider: :ServiceLineProvider, test_results: :'Array<Measurements>', third_party_organization_notes: :String } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 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 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 221 def ==(other) return true if equal?(other) self.class == other.class && additional_notes == other.additional_notes && ambulance_certification == other.ambulance_certification && ambulance_drop_off_location == other.ambulance_drop_off_location && ambulance_patient_count == other.ambulance_patient_count && ambulance_pick_up_location == other.ambulance_pick_up_location && ambulance_transport_information == other.ambulance_transport_information && assigned_number == other.assigned_number && condition_indicator_durable_medical_equipment == other.condition_indicator_durable_medical_equipment && contract_information == other.contract_information && drug_identification == other.drug_identification && durable_medical_equipment_certificate_of_medical_necessity == other.durable_medical_equipment_certificate_of_medical_necessity && durable_medical_equipment_certification == other.durable_medical_equipment_certification && durable_medical_equipment_service == other.durable_medical_equipment_service && file_information == other.file_information && form_identification == other.form_identification && goal_rehab_or_discharge_plans == other.goal_rehab_or_discharge_plans && hospice_employee_indicator == other.hospice_employee_indicator && line_adjudication_information == other.line_adjudication_information && line_pricing_repricing_information == other.line_pricing_repricing_information && obstetric_anesthesia_additional_units == other.obstetric_anesthesia_additional_units && ordering_provider == other.ordering_provider && postage_tax_amount == other.postage_tax_amount && professional_service == other.professional_service && provider_control_number == other.provider_control_number && purchased_service_information == other.purchased_service_information && purchased_service_provider == other.purchased_service_provider && referring_provider == other.referring_provider && rendering_provider == other.rendering_provider && sales_tax_amount == other.sales_tax_amount && service_date == other.service_date && service_date_end == other.service_date_end && service_facility_location == other.service_facility_location && service_line_date_information == other.service_line_date_information && service_line_reference_information == other.service_line_reference_information && service_line_supplemental_information == other.service_line_supplemental_information && supervising_provider == other.supervising_provider && test_results == other.test_results && third_party_organization_notes == other.third_party_organization_notes end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 305 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
372 373 374 375 376 377 378 379 380 381 382 383 384 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 372 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
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 281 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 do |v| _deserialize(Regexp.last_match(1), v) end) end elsif !attributes[self.class.attribute_map[key]].nil? send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end end self end |
#eql?(other) ⇒ Boolean
267 268 269 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 267 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
273 274 275 276 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 273 def hash [additional_notes, ambulance_certification, ambulance_drop_off_location, ambulance_patient_count, ambulance_pick_up_location, ambulance_transport_information, assigned_number, condition_indicator_durable_medical_equipment, contract_information, drug_identification, durable_medical_equipment_certificate_of_medical_necessity, durable_medical_equipment_certification, durable_medical_equipment_service, file_information, form_identification, goal_rehab_or_discharge_plans, hospice_employee_indicator, line_adjudication_information, line_pricing_repricing_information, obstetric_anesthesia_additional_units, ordering_provider, postage_tax_amount, professional_service, provider_control_number, purchased_service_information, purchased_service_provider, referring_provider, rendering_provider, sales_tax_amount, service_date, service_date_end, service_facility_location, service_line_date_information, service_line_reference_information, service_line_supplemental_information, supervising_provider, test_results, third_party_organization_notes].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
209 210 211 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 209 def list_invalid_properties [] end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
351 352 353 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 351 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
357 358 359 360 361 362 363 364 365 366 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 357 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
345 346 347 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 345 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
215 216 217 |
# File 'lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb', line 215 def valid? true end |