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
use serde::{Serialize, Deserialize};
use crate::fixed::Fixed;
use super::super::elements::CompositeRaceOrEthnicity;
/**To supply demographic information
See docs at <https://www.stedi.com/edi/x12-005010/segment/DMG>*/
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(tag = "code", rename = "DMG")]
pub struct Demographic {
/**DMG-01 (1250)
Code indicating the date format, time format, or date and time format*/
pub date_time_period_format_qualifier: Option<String>,
/**DMG-02 (1251)
Expression of a date, a time, or range of dates, times or dates and times*/
pub date_time_period: Option<String>,
/**DMG-03 (1068)
Code indicating the sex of the individual*/
pub gender_code: Option<Fixed<1>>,
/**DMG-04 (1067)
Code defining the marital status of a person*/
pub marital_status_code: Option<Fixed<1>>,
/**DMG-05 (C056)
To send general and detailed information on race or ethnicity*/
pub composite_race_or_ethnicity: Vec<CompositeRaceOrEthnicity>,
/**DMG-06 (1066)
Code indicating citizenship status*/
pub citizenship_status_code: Option<String>,
/**DMG-07 (26)
Code identifying the country*/
pub country_code: Option<String>,
/**DMG-08 (659)
Code indicating the basis of verification*/
pub basis_of_verification_code: Option<String>,
/**DMG-09 (380)
Numeric value of quantity*/
pub quantity: Option<String>,
/**DMG-10 (1270)
Code identifying a specific industry code list*/
pub code_list_qualifier_code: Option<String>,
/**DMG-11 (1271)
Code indicating a code from a specific industry code list*/
pub industry_code: Option<String>,
}
impl Demographic {}