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

chore: update data model

* add submission type 'test'
* make patients address optional
This commit is contained in:
2025-08-19 16:14:48 +02:00
parent 397e85ab7a
commit ffa10084ae
3 changed files with 1860 additions and 1144 deletions

View File

@@ -66,9 +66,7 @@ impl Mtb {
ngs_reports: None,
ihc_reports: None,
patient: Patient {
address: Address {
municipality_code: String::new(),
},
address: None,
age: None,
birth_date: String::new(),
date_of_death: None,
@@ -81,7 +79,7 @@ impl Mtb {
id: patient_id.to_string(),
health_insurance: HealthInsurance {
health_insurance_type: HealthInsuranceCoding {
code: HealthInsuranceCodingCode::Bei,
code: HealthInsuranceCodingCode::Unk,
display: None,
system: None,
version: None,

View File

@@ -1709,6 +1709,8 @@ pub enum MvhSubmissionType {
Followup,
Initial,
Test,
}
#[derive(Debug, Serialize, Deserialize)]
@@ -2471,7 +2473,8 @@ pub enum NgsReportCodingCode {
#[serde(deny_unknown_fields)]
#[serde(rename_all = "camelCase")]
pub struct Patient {
pub address: Address,
#[serde(skip_serializing_if = "Option::is_none")]
pub address: Option<Address>,
#[serde(skip_serializing_if = "Option::is_none")]
pub age: Option<Age>,