pub mod handlers;
use serde::{Deserialize, Serialize};
use utoipa::ToSchema;
#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)]
pub struct FhirEvent {
#[serde(rename = "resourceType")]
pub resource_type: String,
pub id: Option<String>,
pub status: Option<String>,
pub start: Option<String>,
pub end: Option<String>,
pub description: Option<String>,
}
impl FhirEvent {
pub fn new() -> Self {
Self {
resource_type: "Event".into(),
id: None,
status: None,
start: None,
end: None,
description: None,
}
}
}
impl Default for FhirEvent {
fn default() -> Self {
Self::new()
}
}