1
0
mirror of https://github.com/dnpm-dip/mv64e-mtb-dto-rs.git synced 2025-09-13 02:32:52 +00:00

Merge pull request #12 from pcvolkmer/update-datamodel

This commit is contained in:
2025-08-19 16:21:50 +02:00
committed by GitHub
3 changed files with 1860 additions and 1144 deletions

View File

@@ -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,

View File

@@ -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