fhirbolt_model/generated/r4/types/
annotation.rs

1// Generated on 2023-05-17 by fhirbolt-codegen v0.10.0
2#[doc = "The individual responsible for making the annotation."]
3#[derive(Default, Debug, Clone, PartialEq)]
4pub enum AnnotationAuthor {
5    Reference(Box<super::super::types::Reference>),
6    String(super::super::types::String),
7    #[default]
8    Invalid,
9}
10#[doc = "Base StructureDefinition for Annotation Type: A  text note which also  contains information about who made the statement and when."]
11#[derive(Debug, Clone, PartialEq)]
12pub struct Annotation {
13    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
14    pub r#id: Option<std::string::String>,
15    #[doc = "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."]
16    pub r#extension: Vec<super::super::types::Extension>,
17    #[doc = "The individual responsible for making the annotation."]
18    pub r#author: Option<AnnotationAuthor>,
19    #[doc = "Indicates when this particular annotation was made."]
20    pub r#time: Option<super::super::types::DateTime>,
21    #[doc = "The text of the annotation in markdown format."]
22    pub r#text: super::super::types::Markdown,
23}
24#[allow(clippy::derivable_impls)]
25impl Default for Annotation {
26    fn default() -> Self {
27        Self {
28            r#id: Default::default(),
29            r#extension: Default::default(),
30            r#author: Default::default(),
31            r#time: Default::default(),
32            r#text: super::super::types::Markdown {
33                id: Some("$invalid".to_string()),
34                ..Default::default()
35            },
36        }
37    }
38}