mirror of
https://github.com/dnpm-dip/mv64e-mtb-dto-rs.git
synced 2025-09-13 10:42:52 +00:00
chore: update data model
* add submission type 'test' * make patients address optional
This commit is contained in:
@@ -66,9 +66,7 @@ impl Mtb {
|
|||||||
ngs_reports: None,
|
ngs_reports: None,
|
||||||
ihc_reports: None,
|
ihc_reports: None,
|
||||||
patient: Patient {
|
patient: Patient {
|
||||||
address: Address {
|
address: None,
|
||||||
municipality_code: String::new(),
|
|
||||||
},
|
|
||||||
age: None,
|
age: None,
|
||||||
birth_date: String::new(),
|
birth_date: String::new(),
|
||||||
date_of_death: None,
|
date_of_death: None,
|
||||||
@@ -81,7 +79,7 @@ impl Mtb {
|
|||||||
id: patient_id.to_string(),
|
id: patient_id.to_string(),
|
||||||
health_insurance: HealthInsurance {
|
health_insurance: HealthInsurance {
|
||||||
health_insurance_type: HealthInsuranceCoding {
|
health_insurance_type: HealthInsuranceCoding {
|
||||||
code: HealthInsuranceCodingCode::Bei,
|
code: HealthInsuranceCodingCode::Unk,
|
||||||
display: None,
|
display: None,
|
||||||
system: None,
|
system: None,
|
||||||
version: None,
|
version: None,
|
||||||
|
@@ -1709,6 +1709,8 @@ pub enum MvhSubmissionType {
|
|||||||
Followup,
|
Followup,
|
||||||
|
|
||||||
Initial,
|
Initial,
|
||||||
|
|
||||||
|
Test,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize)]
|
#[derive(Debug, Serialize, Deserialize)]
|
||||||
@@ -2471,7 +2473,8 @@ pub enum NgsReportCodingCode {
|
|||||||
#[serde(deny_unknown_fields)]
|
#[serde(deny_unknown_fields)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct Patient {
|
pub struct Patient {
|
||||||
pub address: Address,
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
|
pub address: Option<Address>,
|
||||||
|
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub age: Option<Age>,
|
pub age: Option<Age>,
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user