Skip to main content

fhir_rs/resource/r5/
medication_knowledge.rs

1use crate::prelude::*;
2
3#[derive(Resource, Debug, Clone, Default)]
4#[fhir(base="DomainResource")]
5pub struct MedicationKnowledge {
6    /// Logical id of this artifact
7    #[fhir(name="id", min="0", max="1", summary=true, modifier=false, choice="")]
8    pub id: Option<Id>,
9    /// Metadata about the resource
10    #[fhir(name="meta", min="0", max="1", summary=true, modifier=false, choice="")]
11    pub meta: Option<Meta>,
12    /// A set of rules under which this content was created
13    #[fhir(name="implicitRules", min="0", max="1", summary=true, modifier=true)]
14    pub implicit_rules: Option<UriDt>,
15    /// Language of the resource content
16    #[fhir(name="language", min="0", max="1", summary=false, modifier=false, choice="")]
17    pub language: Option<CodeDt>,
18    /// Text summary of the resource, for human interpretation
19    #[fhir(name="text", min="0", max="1", summary=false, modifier=false, choice="")]
20    pub text: Option<Narrative>,
21    /// Contained, inline Resources
22    #[fhir(name="contained", min="0", max="*", summary=false, modifier=false, choice="")]
23    pub contained: Option<Vec<AnyResource>>,
24    /// Additional content defined by implementations
25    #[fhir(name="extension", min="0", max="*", summary=false, modifier=false, choice="")]
26    pub extension: Option<Vec<Extension>>,
27    /// Extensions that cannot be ignored
28    #[fhir(name="modifierExtension", min="0", max="*", summary=true, modifier=true)]
29    pub modifier_extension: Option<Vec<Extension>>,
30    /// Business identifier for this medication
31    #[fhir(name="identifier", min="0", max="*", summary=true, modifier=false, choice="")]
32    pub identifier: Option<Vec<Identifier>>,
33    /// Code that identifies this medication
34    #[fhir(name="code", min="0", max="1", summary=true, modifier=false, choice="")]
35    pub code: Option<CodeableConcept>,
36    /// active | entered-in-error | inactive
37    #[fhir(name="status", min="0", max="1", summary=true, modifier=true)]
38    pub status: Option<CodeDt>,
39    /// Creator or owner of the knowledge or information about the medication
40    #[fhir(name="author", min="0", max="1", summary=false, modifier=false, choice="")]
41    pub author: Option<Reference>,
42    /// Codes that identify the different jurisdictions for which the information of this resource was created
43    #[fhir(name="intendedJurisdiction", min="0", max="*", summary=false, modifier=false, choice="")]
44    pub intended_jurisdiction: Option<Vec<CodeableConcept>>,
45    /// A name associated with the medication being described
46    #[fhir(name="name", min="0", max="*", summary=true, modifier=false, choice="")]
47    pub name: Option<Vec<StringDt>>,
48    /// Associated or related medication information
49    #[fhir(name="relatedMedicationKnowledge", min="0", max="*", summary=false, modifier=false, choice="")]
50    pub related_medication_knowledge: Option<Vec<MedicationKnowledgeRelatedMedicationKnowledgeBackboneElement>>,
51    /// The set of medication resources that are associated with this medication
52    #[fhir(name="associatedMedication", min="0", max="*", summary=false, modifier=false, choice="")]
53    pub associated_medication: Option<Vec<Reference>>,
54    /// Category of the medication or product
55    #[fhir(name="productType", min="0", max="*", summary=false, modifier=false, choice="")]
56    pub product_type: Option<Vec<CodeableConcept>>,
57    /// Associated documentation about the medication
58    #[fhir(name="monograph", min="0", max="*", summary=false, modifier=false, choice="")]
59    pub monograph: Option<Vec<MedicationKnowledgeMonographBackboneElement>>,
60    /// The instructions for preparing the medication
61    #[fhir(name="preparationInstruction", min="0", max="1", summary=false, modifier=false, choice="")]
62    pub preparation_instruction: Option<MarkdownDt>,
63    /// The pricing of the medication
64    #[fhir(name="cost", min="0", max="*", summary=false, modifier=false, choice="")]
65    pub cost: Option<Vec<MedicationKnowledgeCostBackboneElement>>,
66    /// Program under which a medication is reviewed
67    #[fhir(name="monitoringProgram", min="0", max="*", summary=true, modifier=false, choice="")]
68    pub monitoring_program: Option<Vec<MedicationKnowledgeMonitoringProgramBackboneElement>>,
69    /// Guidelines or protocols for administration of the medication for an indication
70    #[fhir(name="indicationGuideline", min="0", max="*", summary=false, modifier=false, choice="")]
71    pub indication_guideline: Option<Vec<MedicationKnowledgeIndicationGuidelineBackboneElement>>,
72    /// Categorization of the medication within a formulary or classification system
73    #[fhir(name="medicineClassification", min="0", max="*", summary=false, modifier=false, choice="")]
74    pub medicine_classification: Option<Vec<MedicationKnowledgeMedicineClassificationBackboneElement>>,
75    /// Details about packaged medications
76    #[fhir(name="packaging", min="0", max="*", summary=false, modifier=false, choice="")]
77    pub packaging: Option<Vec<MedicationKnowledgePackagingBackboneElement>>,
78    /// Potential clinical issue with or between medication(s)
79    #[fhir(name="clinicalUseIssue", min="0", max="*", summary=false, modifier=false, choice="")]
80    pub clinical_use_issue: Option<Vec<Reference>>,
81    /// How the medication should be stored
82    #[fhir(name="storageGuideline", min="0", max="*", summary=false, modifier=false, choice="")]
83    pub storage_guideline: Option<Vec<MedicationKnowledgeStorageGuidelineBackboneElement>>,
84    /// Regulatory information about a medication
85    #[fhir(name="regulatory", min="0", max="*", summary=false, modifier=false, choice="")]
86    pub regulatory: Option<Vec<MedicationKnowledgeRegulatoryBackboneElement>>,
87    /// Minimal definition information about the medication
88    #[fhir(name="definitional", min="0", max="1", summary=false, modifier=false, choice="")]
89    pub definitional: Option<MedicationKnowledgeDefinitionalBackboneElement>,
90}
91
92#[derive(Element, BackboneElement, Debug, Clone, Default)]
93pub struct MedicationKnowledgeIndicationGuidelineBackboneElement {
94    /// Unique id for inter-element referencing
95    #[fhir(name="id", min="0", max="1", summary=false, modifier=false, choice="")]
96    pub id: Option<String>,
97    /// Additional content defined by implementations
98    #[fhir(name="extension", min="0", max="*", summary=false, modifier=false, choice="")]
99    pub extension: Option<Vec<Extension>>,
100    /// Extensions that cannot be ignored even if unrecognized
101    #[fhir(name="modifierExtension", min="0", max="*", summary=true, modifier=true)]
102    pub modifier_extension: Option<Vec<Extension>>,
103    /// Indication for use that applies to the specific administration guideline
104    #[fhir(name="indication", min="0", max="*", summary=false, modifier=false, choice="")]
105    pub indication: Option<Vec<CodeableReference>>,
106    /// Guidelines for dosage of the medication
107    #[fhir(name="dosingGuideline", min="0", max="*", summary=false, modifier=false, choice="")]
108    pub dosing_guideline: Option<Vec<MedicationKnowledgeIndicationGuidelineDosingGuidelineBackboneElement>>,
109}
110
111#[derive(Element, BackboneElement, Debug, Clone, Default)]
112pub struct MedicationKnowledgeIndicationGuidelineDosingGuidelineBackboneElement {
113    /// Unique id for inter-element referencing
114    #[fhir(name="id", min="0", max="1", summary=false, modifier=false, choice="")]
115    pub id: Option<String>,
116    /// Additional content defined by implementations
117    #[fhir(name="extension", min="0", max="*", summary=false, modifier=false, choice="")]
118    pub extension: Option<Vec<Extension>>,
119    /// Extensions that cannot be ignored even if unrecognized
120    #[fhir(name="modifierExtension", min="0", max="*", summary=true, modifier=true)]
121    pub modifier_extension: Option<Vec<Extension>>,
122    /// Intention of the treatment
123    #[fhir(name="treatmentIntent", min="0", max="1", summary=false, modifier=false, choice="")]
124    pub treatment_intent: Option<CodeableConcept>,
125    /// Dosage for the medication for the specific guidelines
126    #[fhir(name="dosage", min="0", max="*", summary=false, modifier=false, choice="")]
127    pub dosage: Option<Vec<MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageBackboneElement>>,
128    /// Type of treatment the guideline applies to
129    #[fhir(name="administrationTreatment", min="0", max="1", summary=false, modifier=false, choice="")]
130    pub administration_treatment: Option<CodeableConcept>,
131    /// Characteristics of the patient that are relevant to the administration guidelines
132    #[fhir(name="patientCharacteristic", min="0", max="*", summary=false, modifier=false, choice="")]
133    pub patient_characteristic: Option<Vec<MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicBackboneElement>>,
134}
135
136#[derive(Element, BackboneElement, Debug, Clone, Default)]
137pub struct MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicBackboneElement {
138    /// Unique id for inter-element referencing
139    #[fhir(name="id", min="0", max="1", summary=false, modifier=false, choice="")]
140    pub id: Option<String>,
141    /// Additional content defined by implementations
142    #[fhir(name="extension", min="0", max="*", summary=false, modifier=false, choice="")]
143    pub extension: Option<Vec<Extension>>,
144    /// Extensions that cannot be ignored even if unrecognized
145    #[fhir(name="modifierExtension", min="0", max="*", summary=true, modifier=true)]
146    pub modifier_extension: Option<Vec<Extension>>,
147    /// Categorization of specific characteristic that is relevant to the administration guideline
148    #[fhir(name="type", min="1", max="1", summary=false, modifier=false, choice="")]
149    pub type_: Option<CodeableConcept>,
150    /// The specific characteristic
151    #[fhir(name="value", min="0", max="1", summary=false, modifier=false, choice="")]
152    pub value: Option<Range>,
153}
154
155#[derive(Element, BackboneElement, Debug, Clone, Default)]
156pub struct MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageBackboneElement {
157    /// Unique id for inter-element referencing
158    #[fhir(name="id", min="0", max="1", summary=false, modifier=false, choice="")]
159    pub id: Option<String>,
160    /// Additional content defined by implementations
161    #[fhir(name="extension", min="0", max="*", summary=false, modifier=false, choice="")]
162    pub extension: Option<Vec<Extension>>,
163    /// Extensions that cannot be ignored even if unrecognized
164    #[fhir(name="modifierExtension", min="0", max="*", summary=true, modifier=true)]
165    pub modifier_extension: Option<Vec<Extension>>,
166    /// Category of dosage for a medication
167    #[fhir(name="type", min="1", max="1", summary=false, modifier=false, choice="")]
168    pub type_: Option<CodeableConcept>,
169    /// Dosage for the medication for the specific guidelines
170    #[fhir(name="dosage", min="1", max="*", summary=false, modifier=false, choice="")]
171    pub dosage: Option<Vec<Dosage>>,
172}
173
174#[derive(Element, BackboneElement, Debug, Clone, Default)]
175pub struct MedicationKnowledgeMedicineClassificationBackboneElement {
176    /// Unique id for inter-element referencing
177    #[fhir(name="id", min="0", max="1", summary=false, modifier=false, choice="")]
178    pub id: Option<String>,
179    /// Additional content defined by implementations
180    #[fhir(name="extension", min="0", max="*", summary=false, modifier=false, choice="")]
181    pub extension: Option<Vec<Extension>>,
182    /// Extensions that cannot be ignored even if unrecognized
183    #[fhir(name="modifierExtension", min="0", max="*", summary=true, modifier=true)]
184    pub modifier_extension: Option<Vec<Extension>>,
185    /// The type of category for the medication (for example, therapeutic classification, therapeutic sub-classification)
186    #[fhir(name="type", min="1", max="1", summary=false, modifier=false, choice="")]
187    pub type_: Option<CodeableConcept>,
188    /// The source of the classification
189    #[fhir(name="source", min="0", max="1", summary=false, modifier=false, choice="")]
190    pub source: Option<UriDt>,
191    /// Specific category assigned to the medication
192    #[fhir(name="classification", min="0", max="*", summary=false, modifier=false, choice="")]
193    pub classification: Option<Vec<CodeableConcept>>,
194}
195
196#[derive(Element, BackboneElement, Debug, Clone, Default)]
197pub struct MedicationKnowledgeRegulatoryBackboneElement {
198    /// Unique id for inter-element referencing
199    #[fhir(name="id", min="0", max="1", summary=false, modifier=false, choice="")]
200    pub id: Option<String>,
201    /// Additional content defined by implementations
202    #[fhir(name="extension", min="0", max="*", summary=false, modifier=false, choice="")]
203    pub extension: Option<Vec<Extension>>,
204    /// Extensions that cannot be ignored even if unrecognized
205    #[fhir(name="modifierExtension", min="0", max="*", summary=true, modifier=true)]
206    pub modifier_extension: Option<Vec<Extension>>,
207    /// Specifies the authority of the regulation
208    #[fhir(name="regulatoryAuthority", min="1", max="1", summary=false, modifier=false, choice="")]
209    pub regulatory_authority: Option<Reference>,
210    /// Specifies if changes are allowed when dispensing a medication from a regulatory perspective
211    #[fhir(name="substitution", min="0", max="*", summary=false, modifier=false, choice="")]
212    pub substitution: Option<Vec<MedicationKnowledgeRegulatorySubstitutionBackboneElement>>,
213    /// Specifies the schedule of a medication in jurisdiction
214    #[fhir(name="schedule", min="0", max="*", summary=false, modifier=false, choice="")]
215    pub schedule: Option<Vec<CodeableConcept>>,
216    /// The maximum number of units of the medication that can be dispensed in a period
217    #[fhir(name="maxDispense", min="0", max="1", summary=false, modifier=false, choice="")]
218    pub max_dispense: Option<MedicationKnowledgeRegulatoryMaxDispenseBackboneElement>,
219}
220
221#[derive(Element, BackboneElement, Debug, Clone, Default)]
222pub struct MedicationKnowledgeRegulatoryMaxDispenseBackboneElement {
223    /// Unique id for inter-element referencing
224    #[fhir(name="id", min="0", max="1", summary=false, modifier=false, choice="")]
225    pub id: Option<String>,
226    /// Additional content defined by implementations
227    #[fhir(name="extension", min="0", max="*", summary=false, modifier=false, choice="")]
228    pub extension: Option<Vec<Extension>>,
229    /// Extensions that cannot be ignored even if unrecognized
230    #[fhir(name="modifierExtension", min="0", max="*", summary=true, modifier=true)]
231    pub modifier_extension: Option<Vec<Extension>>,
232    /// The maximum number of units of the medication that can be dispensed
233    #[fhir(name="quantity", min="1", max="1", summary=false, modifier=false, choice="")]
234    pub quantity: Option<Quantity>,
235    /// The period that applies to the maximum number of units
236    #[fhir(name="period", min="0", max="1", summary=false, modifier=false, choice="")]
237    pub period: Option<Duration>,
238}
239
240#[derive(Element, BackboneElement, Debug, Clone, Default)]
241pub struct MedicationKnowledgeRegulatorySubstitutionBackboneElement {
242    /// Unique id for inter-element referencing
243    #[fhir(name="id", min="0", max="1", summary=false, modifier=false, choice="")]
244    pub id: Option<String>,
245    /// Additional content defined by implementations
246    #[fhir(name="extension", min="0", max="*", summary=false, modifier=false, choice="")]
247    pub extension: Option<Vec<Extension>>,
248    /// Extensions that cannot be ignored even if unrecognized
249    #[fhir(name="modifierExtension", min="0", max="*", summary=true, modifier=true)]
250    pub modifier_extension: Option<Vec<Extension>>,
251    /// Specifies the type of substitution allowed
252    #[fhir(name="type", min="1", max="1", summary=false, modifier=false, choice="")]
253    pub type_: Option<CodeableConcept>,
254    /// Specifies if regulation allows for changes in the medication when dispensing
255    #[fhir(name="allowed", min="1", max="1", summary=false, modifier=false, choice="")]
256    pub allowed: Option<BooleanDt>,
257}
258
259#[derive(Element, BackboneElement, Debug, Clone, Default)]
260pub struct MedicationKnowledgeStorageGuidelineBackboneElement {
261    /// Unique id for inter-element referencing
262    #[fhir(name="id", min="0", max="1", summary=false, modifier=false, choice="")]
263    pub id: Option<String>,
264    /// Additional content defined by implementations
265    #[fhir(name="extension", min="0", max="*", summary=false, modifier=false, choice="")]
266    pub extension: Option<Vec<Extension>>,
267    /// Extensions that cannot be ignored even if unrecognized
268    #[fhir(name="modifierExtension", min="0", max="*", summary=true, modifier=true)]
269    pub modifier_extension: Option<Vec<Extension>>,
270    /// Reference to additional information
271    #[fhir(name="reference", min="0", max="1", summary=false, modifier=false, choice="")]
272    pub reference: Option<UriDt>,
273    /// Additional storage notes
274    #[fhir(name="note", min="0", max="*", summary=false, modifier=false, choice="")]
275    pub note: Option<Vec<Annotation>>,
276    /// Duration remains stable
277    #[fhir(name="stabilityDuration", min="0", max="1", summary=false, modifier=false, choice="")]
278    pub stability_duration: Option<Duration>,
279    /// Setting or value of environment for adequate storage
280    #[fhir(name="environmentalSetting", min="0", max="*", summary=false, modifier=false, choice="")]
281    pub environmental_setting: Option<Vec<MedicationKnowledgeStorageGuidelineEnvironmentalSettingBackboneElement>>,
282}
283
284#[derive(Element, BackboneElement, Debug, Clone, Default)]
285pub struct MedicationKnowledgeStorageGuidelineEnvironmentalSettingBackboneElement {
286    /// Unique id for inter-element referencing
287    #[fhir(name="id", min="0", max="1", summary=false, modifier=false, choice="")]
288    pub id: Option<String>,
289    /// Additional content defined by implementations
290    #[fhir(name="extension", min="0", max="*", summary=false, modifier=false, choice="")]
291    pub extension: Option<Vec<Extension>>,
292    /// Extensions that cannot be ignored even if unrecognized
293    #[fhir(name="modifierExtension", min="0", max="*", summary=true, modifier=true)]
294    pub modifier_extension: Option<Vec<Extension>>,
295    /// Categorization of the setting
296    #[fhir(name="type", min="1", max="1", summary=false, modifier=false, choice="")]
297    pub type_: Option<CodeableConcept>,
298    /// Value of the setting
299    #[fhir(name="value", min="1", max="1", summary=false, modifier=false, choice="")]
300    pub value: Option<CodeableConcept>,
301}
302
303#[derive(Element, BackboneElement, Debug, Clone, Default)]
304pub struct MedicationKnowledgeDefinitionalBackboneElement {
305    /// Unique id for inter-element referencing
306    #[fhir(name="id", min="0", max="1", summary=false, modifier=false, choice="")]
307    pub id: Option<String>,
308    /// Additional content defined by implementations
309    #[fhir(name="extension", min="0", max="*", summary=false, modifier=false, choice="")]
310    pub extension: Option<Vec<Extension>>,
311    /// Extensions that cannot be ignored even if unrecognized
312    #[fhir(name="modifierExtension", min="0", max="*", summary=true, modifier=true)]
313    pub modifier_extension: Option<Vec<Extension>>,
314    /// Definitional resources that provide more information about this medication
315    #[fhir(name="definition", min="0", max="*", summary=false, modifier=false, choice="")]
316    pub definition: Option<Vec<Reference>>,
317    /// powder | tablets | capsule +
318    #[fhir(name="doseForm", min="0", max="1", summary=false, modifier=false, choice="")]
319    pub dose_form: Option<CodeableConcept>,
320    /// The intended or approved route of administration
321    #[fhir(name="intendedRoute", min="0", max="*", summary=false, modifier=false, choice="")]
322    pub intended_route: Option<Vec<CodeableConcept>>,
323    /// Active or inactive ingredient
324    #[fhir(name="ingredient", min="0", max="*", summary=true, modifier=false, choice="")]
325    pub ingredient: Option<Vec<MedicationKnowledgeDefinitionalIngredientBackboneElement>>,
326    /// Specifies descriptive properties of the medicine
327    #[fhir(name="drugCharacteristic", min="0", max="*", summary=false, modifier=false, choice="")]
328    pub drug_characteristic: Option<Vec<MedicationKnowledgeDefinitionalDrugCharacteristicBackboneElement>>,
329}
330
331#[derive(Element, BackboneElement, Debug, Clone, Default)]
332pub struct MedicationKnowledgeDefinitionalDrugCharacteristicBackboneElement {
333    /// Unique id for inter-element referencing
334    #[fhir(name="id", min="0", max="1", summary=false, modifier=false, choice="")]
335    pub id: Option<String>,
336    /// Additional content defined by implementations
337    #[fhir(name="extension", min="0", max="*", summary=false, modifier=false, choice="")]
338    pub extension: Option<Vec<Extension>>,
339    /// Extensions that cannot be ignored even if unrecognized
340    #[fhir(name="modifierExtension", min="0", max="*", summary=true, modifier=true)]
341    pub modifier_extension: Option<Vec<Extension>>,
342    /// Code specifying the type of characteristic of medication
343    #[fhir(name="type", min="0", max="1", summary=false, modifier=false, choice="")]
344    pub type_: Option<CodeableConcept>,
345    /// Description of the characteristic
346    #[fhir(name="value", min="0", max="1", summary=false, modifier=false, choice="")]
347    pub value: Option<Attachment>,
348}
349
350#[derive(Element, BackboneElement, Debug, Clone, Default)]
351pub struct MedicationKnowledgeDefinitionalIngredientBackboneElement {
352    /// Unique id for inter-element referencing
353    #[fhir(name="id", min="0", max="1", summary=false, modifier=false, choice="")]
354    pub id: Option<String>,
355    /// Additional content defined by implementations
356    #[fhir(name="extension", min="0", max="*", summary=false, modifier=false, choice="")]
357    pub extension: Option<Vec<Extension>>,
358    /// Extensions that cannot be ignored even if unrecognized
359    #[fhir(name="modifierExtension", min="0", max="*", summary=true, modifier=true)]
360    pub modifier_extension: Option<Vec<Extension>>,
361    /// Substances contained in the medication
362    #[fhir(name="item", min="1", max="1", summary=true, modifier=false, choice="")]
363    pub item: Option<CodeableReference>,
364    /// A code that defines the type of ingredient, active, base, etc
365    #[fhir(name="type", min="0", max="1", summary=false, modifier=false, choice="")]
366    pub type_: Option<CodeableConcept>,
367    /// Quantity of ingredient present
368    #[fhir(name="strength", min="0", max="1", summary=false, modifier=false, choice="")]
369    pub strength: Option<Quantity>,
370}
371
372#[derive(Element, BackboneElement, Debug, Clone, Default)]
373pub struct MedicationKnowledgePackagingBackboneElement {
374    /// Unique id for inter-element referencing
375    #[fhir(name="id", min="0", max="1", summary=false, modifier=false, choice="")]
376    pub id: Option<String>,
377    /// Additional content defined by implementations
378    #[fhir(name="extension", min="0", max="*", summary=false, modifier=false, choice="")]
379    pub extension: Option<Vec<Extension>>,
380    /// Extensions that cannot be ignored even if unrecognized
381    #[fhir(name="modifierExtension", min="0", max="*", summary=true, modifier=true)]
382    pub modifier_extension: Option<Vec<Extension>>,
383    /// Cost of the packaged medication
384    #[fhir(name="cost", min="0", max="*", summary=false, modifier=false, choice="")]
385    pub cost: Option<Vec<MedicationKnowledgeCostBackboneElement>>,
386    /// The packaged medication that is being priced
387    #[fhir(name="packagedProduct", min="0", max="1", summary=false, modifier=false, choice="")]
388    pub packaged_product: Option<Reference>,
389}
390
391#[derive(Element, BackboneElement, Debug, Clone, Default)]
392pub struct MedicationKnowledgeRelatedMedicationKnowledgeBackboneElement {
393    /// Unique id for inter-element referencing
394    #[fhir(name="id", min="0", max="1", summary=false, modifier=false, choice="")]
395    pub id: Option<String>,
396    /// Additional content defined by implementations
397    #[fhir(name="extension", min="0", max="*", summary=false, modifier=false, choice="")]
398    pub extension: Option<Vec<Extension>>,
399    /// Extensions that cannot be ignored even if unrecognized
400    #[fhir(name="modifierExtension", min="0", max="*", summary=true, modifier=true)]
401    pub modifier_extension: Option<Vec<Extension>>,
402    /// Category of medicationKnowledge
403    #[fhir(name="type", min="1", max="1", summary=false, modifier=false, choice="")]
404    pub type_: Option<CodeableConcept>,
405    /// Associated documentation about the associated medication knowledge
406    #[fhir(name="reference", min="1", max="*", summary=false, modifier=false, choice="")]
407    pub reference: Option<Vec<Reference>>,
408}
409
410#[derive(Element, BackboneElement, Debug, Clone, Default)]
411pub struct MedicationKnowledgeMonographBackboneElement {
412    /// Unique id for inter-element referencing
413    #[fhir(name="id", min="0", max="1", summary=false, modifier=false, choice="")]
414    pub id: Option<String>,
415    /// Additional content defined by implementations
416    #[fhir(name="extension", min="0", max="*", summary=false, modifier=false, choice="")]
417    pub extension: Option<Vec<Extension>>,
418    /// Extensions that cannot be ignored even if unrecognized
419    #[fhir(name="modifierExtension", min="0", max="*", summary=true, modifier=true)]
420    pub modifier_extension: Option<Vec<Extension>>,
421    /// The category of medication document
422    #[fhir(name="type", min="0", max="1", summary=false, modifier=false, choice="")]
423    pub type_: Option<CodeableConcept>,
424    /// Associated documentation about the medication
425    #[fhir(name="source", min="0", max="1", summary=false, modifier=false, choice="")]
426    pub source: Option<Reference>,
427}
428
429#[derive(Element, BackboneElement, Debug, Clone, Default)]
430pub struct MedicationKnowledgeCostBackboneElement {
431    /// Unique id for inter-element referencing
432    #[fhir(name="id", min="0", max="1", summary=false, modifier=false, choice="")]
433    pub id: Option<String>,
434    /// Additional content defined by implementations
435    #[fhir(name="extension", min="0", max="*", summary=false, modifier=false, choice="")]
436    pub extension: Option<Vec<Extension>>,
437    /// Extensions that cannot be ignored even if unrecognized
438    #[fhir(name="modifierExtension", min="0", max="*", summary=true, modifier=true)]
439    pub modifier_extension: Option<Vec<Extension>>,
440    /// The date range for which the cost is effective
441    #[fhir(name="effectiveDate", min="0", max="*", summary=false, modifier=false, choice="")]
442    pub effective_date: Option<Vec<Period>>,
443    /// The category of the cost information
444    #[fhir(name="type", min="1", max="1", summary=false, modifier=false, choice="")]
445    pub type_: Option<CodeableConcept>,
446    /// The source or owner for the price information
447    #[fhir(name="source", min="0", max="1", summary=false, modifier=false, choice="")]
448    pub source: Option<StringDt>,
449    /// The price or category of the cost of the medication
450    #[fhir(name="cost", min="1", max="1", summary=false, modifier=false, choice="")]
451    pub cost: Option<CodeableConcept>,
452}
453
454#[derive(Element, BackboneElement, Debug, Clone, Default)]
455pub struct MedicationKnowledgeMonitoringProgramBackboneElement {
456    /// Unique id for inter-element referencing
457    #[fhir(name="id", min="0", max="1", summary=false, modifier=false, choice="")]
458    pub id: Option<String>,
459    /// Additional content defined by implementations
460    #[fhir(name="extension", min="0", max="*", summary=false, modifier=false, choice="")]
461    pub extension: Option<Vec<Extension>>,
462    /// Extensions that cannot be ignored even if unrecognized
463    #[fhir(name="modifierExtension", min="0", max="*", summary=true, modifier=true)]
464    pub modifier_extension: Option<Vec<Extension>>,
465    /// Type of program under which the medication is monitored
466    #[fhir(name="type", min="0", max="1", summary=false, modifier=false, choice="")]
467    pub type_: Option<CodeableConcept>,
468    /// Name of the reviewing program
469    #[fhir(name="name", min="0", max="1", summary=false, modifier=false, choice="")]
470    pub name: Option<StringDt>,
471}
472