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
/*
* 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 SearchPayerRecord {
/// Alternative IDs associated with a payer. If a payer changes their `primaryPayerId`, aliases allow you to continue sending transactions to the payer using the old ID uninterrupted.
#[serde(rename = "aliases")]
pub aliases: Vec<String>,
/// A URL pointing to an image file (`.png`, `.jpeg`, or `.jpg`) with the payer's logo. This is the same logo Stedi displays in the [Payer Network](https://www.stedi.com/healthcare/network). You can use this property to display payer logos in your system or application. This property is only returned when a payer logo is available.
#[serde(rename = "avatarUrl", skip_serializing_if = "Option::is_none")]
pub avatar_url: Option<String>,
/// A list of insurance coverage types that indicates whether this payer supports transactions for medical coverage, dental coverage, vision coverage, or a combination of these. For example: `[\"medical\"]` or `[\"medical\", \"dental\", \"vision\"]`. When this array isn't in the response, it means Stedi hasn't classified the payer's coverage types yet, **not** that the payer doesn't support any coverage types.
#[serde(rename = "coverageTypes", skip_serializing_if = "Option::is_none")]
pub coverage_types: Option<Vec<models::CoverageType>>,
/// The payer's business name, such as Cigna or Aetna. This is the name most commonly used to identify the payer.
#[serde(rename = "displayName")]
pub display_name: String,
/// Employer Identification Numbers (EINs) associated with this payer.
#[serde(rename = "employerIdentificationNumbers", skip_serializing_if = "Option::is_none")]
pub employer_identification_numbers: Option<Vec<String>>,
/// Information about the [transaction enrollment process](https://www.stedi.com/docs/healthcare/transaction-enrollment) for this payer.
#[serde(rename = "enrollment", skip_serializing_if = "Option::is_none")]
pub enrollment: Option<Box<models::EnrollmentInfo>>,
/// Alternative names associated with a payer. These additional names help you search for and identify payers using the name most familiar to your organization.
#[serde(rename = "names")]
pub names: Vec<String>,
/// A list of US state codes, territories, or `NATIONAL` that indicates the geographic regions where this payer operates. For example: `[\"CA\", \"OR\"]` for a regional payer, or `[\"NATIONAL\"]` for a payer that operates throughout the entire United States. When this array isn't in the response, it means Stedi hasn't classified the payer's operating states yet.
#[serde(rename = "operatingStates", skip_serializing_if = "Option::is_none")]
pub operating_states: Option<Vec<models::OperatingStateCode>>,
/// The parent payer group entity this payer belongs to. This is for metadata purposes and doesn't necessarily relate to the payer's enrollment process or other capabilities.
#[serde(rename = "parentPayerGroupId", skip_serializing_if = "Option::is_none")]
pub parent_payer_group_id: Option<String>,
/// The most commonly used ID for a payer. This value often corresponds to the name the payer uses internally and provides to patients on member ID cards.
#[serde(rename = "primaryPayerId")]
pub primary_payer_id: String,
/// A unique ID that Stedi assigned to this payer and uses internally for routing requests. This ID will not change even if the `primaryPayerId` is updated.
#[serde(rename = "stediId")]
pub stedi_id: String,
#[serde(rename = "transactionSupport")]
pub transaction_support: Box<models::SearchPayerTransactionSupport>,
/// URLs associated with this payer, such as their website. This object is only returned when URL information is available for the payer.
#[serde(rename = "urls", skip_serializing_if = "Option::is_none")]
pub urls: Option<Box<models::PayerUrls>>,
}
impl SearchPayerRecord {
pub fn new(aliases: Vec<String>, display_name: String, names: Vec<String>, primary_payer_id: String, stedi_id: String, transaction_support: models::SearchPayerTransactionSupport) -> SearchPayerRecord {
SearchPayerRecord {
aliases,
avatar_url: None,
coverage_types: None,
display_name,
employer_identification_numbers: None,
enrollment: None,
names,
operating_states: None,
parent_payer_group_id: None,
primary_payer_id,
stedi_id,
transaction_support: Box::new(transaction_support),
urls: None,
}
}
}