mediclib/dto/
medical_profile_request.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use serde::{Deserialize, Serialize};
use serde_json;
use uuid::Uuid;
use common::enums::status::Status;
use crate::jsonb::external::External;

#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct MedicalProfileRequest {
    pub id: Option<Uuid>,
    pub ver: Option<i32>,
    pub user_id: Uuid,
    pub organization: Uuid,
    pub mental_special_needs: Option<serde_json::Value>,
    pub physical_special_needs: Option<serde_json::Value>,
    pub biometrics: Option<serde_json::Value>,
    pub status: Option<Status>,
    pub external : Option<External>,
    pub emergency_response_plan : bool,
    pub emergency_response_plan_details : Option<String>,
    pub individual_health_care_plan : bool,
    pub individual_health_care_plan_details : Option<String>,
}