fhirbolt_model/generated/r4/resources/
imaging_study.rs

1// Generated on 2023-05-17 by fhirbolt-codegen v0.10.0
2#[doc = "Indicates who or what performed the series and how they were involved."]
3#[derive(Debug, Clone, PartialEq)]
4pub struct ImagingStudySeriesPerformer {
5    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
6    pub r#id: Option<std::string::String>,
7    #[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."]
8    pub r#extension: Vec<super::super::types::Extension>,
9    #[doc = "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
10    pub r#modifier_extension: Vec<super::super::types::Extension>,
11    #[doc = "Distinguishes the type of involvement of the performer in the series."]
12    pub r#function: Option<Box<super::super::types::CodeableConcept>>,
13    #[doc = "Indicates who or what performed the series."]
14    pub r#actor: Box<super::super::types::Reference>,
15}
16#[allow(clippy::derivable_impls)]
17impl Default for ImagingStudySeriesPerformer {
18    fn default() -> Self {
19        Self {
20            r#id: Default::default(),
21            r#extension: Default::default(),
22            r#modifier_extension: Default::default(),
23            r#function: Default::default(),
24            r#actor: Box::new(super::super::types::Reference {
25                id: Some("$invalid".to_string()),
26                ..Default::default()
27            }),
28        }
29    }
30}
31#[doc = "A single SOP instance within the series, e.g. an image, or presentation state."]
32#[derive(Debug, Clone, PartialEq)]
33pub struct ImagingStudySeriesInstance {
34    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
35    pub r#id: Option<std::string::String>,
36    #[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."]
37    pub r#extension: Vec<super::super::types::Extension>,
38    #[doc = "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
39    pub r#modifier_extension: Vec<super::super::types::Extension>,
40    #[doc = "The DICOM SOP Instance UID for this image or other DICOM content."]
41    pub r#uid: super::super::types::Id,
42    #[doc = "DICOM instance  type."]
43    pub r#sop_class: Box<super::super::types::Coding>,
44    #[doc = "The number of instance in the series."]
45    pub r#number: Option<super::super::types::UnsignedInt>,
46    #[doc = "The description of the instance."]
47    pub r#title: Option<super::super::types::String>,
48}
49#[allow(clippy::derivable_impls)]
50impl Default for ImagingStudySeriesInstance {
51    fn default() -> Self {
52        Self {
53            r#id: Default::default(),
54            r#extension: Default::default(),
55            r#modifier_extension: Default::default(),
56            r#uid: super::super::types::Id {
57                id: Some("$invalid".to_string()),
58                ..Default::default()
59            },
60            r#sop_class: Box::new(super::super::types::Coding {
61                id: Some("$invalid".to_string()),
62                ..Default::default()
63            }),
64            r#number: Default::default(),
65            r#title: Default::default(),
66        }
67    }
68}
69#[doc = "Each study has one or more series of images or other content."]
70#[derive(Debug, Clone, PartialEq)]
71pub struct ImagingStudySeries {
72    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
73    pub r#id: Option<std::string::String>,
74    #[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."]
75    pub r#extension: Vec<super::super::types::Extension>,
76    #[doc = "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
77    pub r#modifier_extension: Vec<super::super::types::Extension>,
78    #[doc = "The DICOM Series Instance UID for the series."]
79    pub r#uid: super::super::types::Id,
80    #[doc = "The numeric identifier of this series in the study."]
81    pub r#number: Option<super::super::types::UnsignedInt>,
82    #[doc = "The modality of this series sequence."]
83    pub r#modality: Box<super::super::types::Coding>,
84    #[doc = "A description of the series."]
85    pub r#description: Option<super::super::types::String>,
86    #[doc = "Number of SOP Instances in the Study. The value given may be larger than the number of instance elements this resource contains due to resource availability, security, or other factors. This element should be present if any instance elements are present."]
87    pub r#number_of_instances: Option<super::super::types::UnsignedInt>,
88    #[doc = "The network service providing access (e.g., query, view, or retrieval) for this series. See implementation notes for information about using DICOM endpoints. A series-level endpoint, if present, has precedence over a study-level endpoint with the same Endpoint.connectionType."]
89    pub r#endpoint: Vec<super::super::types::Reference>,
90    #[doc = "The anatomic structures examined. See DICOM Part 16 Annex L (<http://dicom.nema.org/medical/dicom/current/output/chtml/part16/chapter_L.html>) for DICOM to SNOMED-CT mappings. The bodySite may indicate the laterality of body part imaged; if so, it shall be consistent with any content of ImagingStudy.series.laterality."]
91    pub r#body_site: Option<Box<super::super::types::Coding>>,
92    #[doc = "The laterality of the (possibly paired) anatomic structures examined. E.g., the left knee, both lungs, or unpaired abdomen. If present, shall be consistent with any laterality information indicated in ImagingStudy.series.bodySite."]
93    pub r#laterality: Option<Box<super::super::types::Coding>>,
94    #[doc = "The specimen imaged, e.g., for whole slide imaging of a biopsy."]
95    pub r#specimen: Vec<super::super::types::Reference>,
96    #[doc = "The date and time the series was started."]
97    pub r#started: Option<super::super::types::DateTime>,
98    #[doc = "Indicates who or what performed the series and how they were involved."]
99    pub r#performer: Vec<ImagingStudySeriesPerformer>,
100    #[doc = "A single SOP instance within the series, e.g. an image, or presentation state."]
101    pub r#instance: Vec<ImagingStudySeriesInstance>,
102}
103#[allow(clippy::derivable_impls)]
104impl Default for ImagingStudySeries {
105    fn default() -> Self {
106        Self {
107            r#id: Default::default(),
108            r#extension: Default::default(),
109            r#modifier_extension: Default::default(),
110            r#uid: super::super::types::Id {
111                id: Some("$invalid".to_string()),
112                ..Default::default()
113            },
114            r#number: Default::default(),
115            r#modality: Box::new(super::super::types::Coding {
116                id: Some("$invalid".to_string()),
117                ..Default::default()
118            }),
119            r#description: Default::default(),
120            r#number_of_instances: Default::default(),
121            r#endpoint: Default::default(),
122            r#body_site: Default::default(),
123            r#laterality: Default::default(),
124            r#specimen: Default::default(),
125            r#started: Default::default(),
126            r#performer: Default::default(),
127            r#instance: Default::default(),
128        }
129    }
130}
131#[doc = "Representation of the content produced in a DICOM imaging study. A study comprises a set of series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context.  A series is of only one modality (e.g. X-ray, CT, MR, ultrasound), but a study may have multiple series of different modalities."]
132#[derive(Debug, Clone, PartialEq)]
133pub struct ImagingStudy {
134    #[doc = "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."]
135    pub r#id: Option<super::super::types::Id>,
136    #[doc = "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource."]
137    pub r#meta: Option<Box<super::super::types::Meta>>,
138    #[doc = "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc."]
139    pub r#implicit_rules: Option<super::super::types::Uri>,
140    #[doc = "The base language in which the resource is written."]
141    pub r#language: Option<super::super::types::Code>,
142    #[doc = "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety."]
143    pub r#text: Option<Box<super::super::types::Narrative>>,
144    #[doc = "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope."]
145    pub r#contained: Vec<super::super::Resource>,
146    #[doc = "May be used to represent additional information that is not part of the basic definition of the resource. 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."]
147    pub r#extension: Vec<super::super::types::Extension>,
148    #[doc = "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
149    pub r#modifier_extension: Vec<super::super::types::Extension>,
150    #[doc = "Identifiers for the ImagingStudy such as DICOM Study Instance UID, and Accession Number."]
151    pub r#identifier: Vec<super::super::types::Identifier>,
152    #[doc = "The current state of the ImagingStudy."]
153    pub r#status: super::super::types::Code,
154    #[doc = "A list of all the series.modality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19)."]
155    pub r#modality: Vec<super::super::types::Coding>,
156    #[doc = "The subject, typically a patient, of the imaging study."]
157    pub r#subject: Box<super::super::types::Reference>,
158    #[doc = "The healthcare event (e.g. a patient and healthcare provider interaction) during which this ImagingStudy is made."]
159    pub r#encounter: Option<Box<super::super::types::Reference>>,
160    #[doc = "Date and time the study started."]
161    pub r#started: Option<super::super::types::DateTime>,
162    #[doc = "A list of the diagnostic requests that resulted in this imaging study being performed."]
163    pub r#based_on: Vec<super::super::types::Reference>,
164    #[doc = "The requesting/referring physician."]
165    pub r#referrer: Option<Box<super::super::types::Reference>>,
166    #[doc = "Who read the study and interpreted the images or other content."]
167    pub r#interpreter: Vec<super::super::types::Reference>,
168    #[doc = "The network service providing access (e.g., query, view, or retrieval) for the study. See implementation notes for information about using DICOM endpoints. A study-level endpoint applies to each series in the study, unless overridden by a series-level endpoint with the same Endpoint.connectionType."]
169    pub r#endpoint: Vec<super::super::types::Reference>,
170    #[doc = "Number of Series in the Study. This value given may be larger than the number of series elements this Resource contains due to resource availability, security, or other factors. This element should be present if any series elements are present."]
171    pub r#number_of_series: Option<super::super::types::UnsignedInt>,
172    #[doc = "Number of SOP Instances in Study. This value given may be larger than the number of instance elements this resource contains due to resource availability, security, or other factors. This element should be present if any instance elements are present."]
173    pub r#number_of_instances: Option<super::super::types::UnsignedInt>,
174    #[doc = "The procedure which this ImagingStudy was part of."]
175    pub r#procedure_reference: Option<Box<super::super::types::Reference>>,
176    #[doc = "The code for the performed procedure type."]
177    pub r#procedure_code: Vec<super::super::types::CodeableConcept>,
178    #[doc = "The principal physical location where the ImagingStudy was performed."]
179    pub r#location: Option<Box<super::super::types::Reference>>,
180    #[doc = "Description of clinical condition indicating why the ImagingStudy was requested."]
181    pub r#reason_code: Vec<super::super::types::CodeableConcept>,
182    #[doc = "Indicates another resource whose existence justifies this Study."]
183    pub r#reason_reference: Vec<super::super::types::Reference>,
184    #[doc = "Per the recommended DICOM mapping, this element is derived from the Study Description attribute (0008,1030). Observations or findings about the imaging study should be recorded in another resource, e.g. Observation, and not in this element."]
185    pub r#note: Vec<super::super::types::Annotation>,
186    #[doc = "The Imaging Manager description of the study. Institution-generated description or classification of the Study (component) performed."]
187    pub r#description: Option<super::super::types::String>,
188    #[doc = "Each study has one or more series of images or other content."]
189    pub r#series: Vec<ImagingStudySeries>,
190}
191#[allow(clippy::derivable_impls)]
192impl Default for ImagingStudy {
193    fn default() -> Self {
194        Self {
195            r#id: Default::default(),
196            r#meta: Default::default(),
197            r#implicit_rules: Default::default(),
198            r#language: Default::default(),
199            r#text: Default::default(),
200            r#contained: Default::default(),
201            r#extension: Default::default(),
202            r#modifier_extension: Default::default(),
203            r#identifier: Default::default(),
204            r#status: super::super::types::Code {
205                id: Some("$invalid".to_string()),
206                ..Default::default()
207            },
208            r#modality: Default::default(),
209            r#subject: Box::new(super::super::types::Reference {
210                id: Some("$invalid".to_string()),
211                ..Default::default()
212            }),
213            r#encounter: Default::default(),
214            r#started: Default::default(),
215            r#based_on: Default::default(),
216            r#referrer: Default::default(),
217            r#interpreter: Default::default(),
218            r#endpoint: Default::default(),
219            r#number_of_series: Default::default(),
220            r#number_of_instances: Default::default(),
221            r#procedure_reference: Default::default(),
222            r#procedure_code: Default::default(),
223            r#location: Default::default(),
224            r#reason_code: Default::default(),
225            r#reason_reference: Default::default(),
226            r#note: Default::default(),
227            r#description: Default::default(),
228            r#series: Default::default(),
229        }
230    }
231}