1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*
* Stedi Healthcare
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2024-04-01
* Contact: healthcare@stedi.com
* Generated by: https://openapi-generator.tech
*/
use crate::healthcare::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DiscoveryPayer {
/// The payer's Centers for Medicare and Medicaid Services PlanID.
#[serde(rename = "centersForMedicareAndMedicaidPlanId", skip_serializing_if = "Option::is_none")]
pub centers_for_medicare_and_medicaid_plan_id: Option<String>,
/// The payer's contact information. Note that when `contacts[].communicationMode` is set to `UR`, the `communicationNumber` property may not contain a valid URL. Most payers provide a partial web address for their provider portal, or something similar, such as `www.example.com/portal`. You must add the appropriate scheme and separators, such as `https://` or `http://`, to make it a valid URL.
#[serde(rename = "contactInformation", skip_serializing_if = "Option::is_none")]
pub contact_information: Option<Box<models::ContactInformation>>,
#[serde(rename = "entityIdentifier", skip_serializing_if = "Option::is_none")]
pub entity_identifier: Option<models::PayerEntityIdentifier>,
/// The entity type qualifier for the payer. Can be set to `Person` (not commonly used) or `Non-Person Entity` (most common). Payers may sometimes return other non-compliant values.
#[serde(rename = "entityType", skip_serializing_if = "Option::is_none")]
pub entity_type: Option<models::EntityTypeQualifier>,
/// The payer's Electronic Transmitter Identification Number (ETIN).
#[serde(rename = "etin", skip_serializing_if = "Option::is_none")]
pub etin: Option<String>,
/// The payer's federal taxpayer's identification number.
#[serde(rename = "federalTaxpayersIdNumber", skip_serializing_if = "Option::is_none")]
pub federal_taxpayers_id_number: Option<String>,
/// The payer's first name, when the payer is an individual (not commonly used).
#[serde(rename = "firstName", skip_serializing_if = "Option::is_none")]
pub first_name: Option<String>,
/// The payer's last name. Used when the payer is an individual (not commonly used).
#[serde(rename = "lastName", skip_serializing_if = "Option::is_none")]
pub last_name: Option<String>,
/// The payer's middle name or initial, when the payer is an individual (not commonly used).
#[serde(rename = "middleName", skip_serializing_if = "Option::is_none")]
pub middle_name: Option<String>,
/// The payer's National Association of Insurance Commissioners (NAIC) identification number.
#[serde(rename = "naic", skip_serializing_if = "Option::is_none")]
pub naic: Option<String>,
/// The payer's business name, when the payer is not a person.
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// The payer's [National Provider Identifier (NPI)](https://www.stedi.com/docs/healthcare/national-provider-identifier).
#[serde(rename = "npi", skip_serializing_if = "Option::is_none")]
pub npi: Option<String>,
/// The payer identification.
#[serde(rename = "payorIdentification", skip_serializing_if = "Option::is_none")]
pub payor_identification: Option<String>,
/// The payer's name suffix, such as Jr. or III. Used when the payer is an individual (not commonly used).
#[serde(rename = "suffix", skip_serializing_if = "Option::is_none")]
pub suffix: Option<String>,
}
impl DiscoveryPayer {
pub fn new() -> DiscoveryPayer {
DiscoveryPayer {
centers_for_medicare_and_medicaid_plan_id: None,
contact_information: None,
entity_identifier: None,
entity_type: None,
etin: None,
federal_taxpayers_id_number: None,
first_name: None,
last_name: None,
middle_name: None,
naic: None,
name: None,
npi: None,
payor_identification: None,
suffix: None,
}
}
}