fhirbolt_model/generated/r4/resources/
naming_system.rs

1// Generated on 2023-05-17 by fhirbolt-codegen v0.10.0
2#[doc = "Indicates how the system may be identified when referenced in electronic exchange."]
3#[derive(Debug, Clone, PartialEq)]
4pub struct NamingSystemUniqueId {
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 = "Identifies the unique identifier scheme used for this particular identifier."]
12    pub r#type: super::super::types::Code,
13    #[doc = "The string that should be sent over the wire to identify the code system or identifier system."]
14    pub r#value: super::super::types::String,
15    #[doc = "Indicates whether this identifier is the \"preferred\" identifier of this type."]
16    pub r#preferred: Option<super::super::types::Boolean>,
17    #[doc = "Notes about the past or intended usage of this identifier."]
18    pub r#comment: Option<super::super::types::String>,
19    #[doc = "Identifies the period of time over which this identifier is considered appropriate to refer to the naming system.  Outside of this window, the identifier might be non-deterministic."]
20    pub r#period: Option<Box<super::super::types::Period>>,
21}
22#[allow(clippy::derivable_impls)]
23impl Default for NamingSystemUniqueId {
24    fn default() -> Self {
25        Self {
26            r#id: Default::default(),
27            r#extension: Default::default(),
28            r#modifier_extension: Default::default(),
29            r#type: super::super::types::Code {
30                id: Some("$invalid".to_string()),
31                ..Default::default()
32            },
33            r#value: super::super::types::String {
34                id: Some("$invalid".to_string()),
35                ..Default::default()
36            },
37            r#preferred: Default::default(),
38            r#comment: Default::default(),
39            r#period: Default::default(),
40        }
41    }
42}
43#[doc = "A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc.  Represents a \"System\" used within the Identifier and Coding data types."]
44#[derive(Debug, Clone, PartialEq)]
45pub struct NamingSystem {
46    #[doc = "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."]
47    pub r#id: Option<super::super::types::Id>,
48    #[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."]
49    pub r#meta: Option<Box<super::super::types::Meta>>,
50    #[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."]
51    pub r#implicit_rules: Option<super::super::types::Uri>,
52    #[doc = "The base language in which the resource is written."]
53    pub r#language: Option<super::super::types::Code>,
54    #[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."]
55    pub r#text: Option<Box<super::super::types::Narrative>>,
56    #[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."]
57    pub r#contained: Vec<super::super::Resource>,
58    #[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."]
59    pub r#extension: Vec<super::super::types::Extension>,
60    #[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)."]
61    pub r#modifier_extension: Vec<super::super::types::Extension>,
62    #[doc = "A natural language name identifying the naming system. This name should be usable as an identifier for the module by machine processing applications such as code generation."]
63    pub r#name: super::super::types::String,
64    #[doc = "The status of this naming system. Enables tracking the life-cycle of the content."]
65    pub r#status: super::super::types::Code,
66    #[doc = "Indicates the purpose for the naming system - what kinds of things does it make unique?"]
67    pub r#kind: super::super::types::Code,
68    #[doc = "The date  (and optionally time) when the naming system was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the naming system changes."]
69    pub r#date: super::super::types::DateTime,
70    #[doc = "The name of the organization or individual that published the naming system."]
71    pub r#publisher: Option<super::super::types::String>,
72    #[doc = "Contact details to assist a user in finding and communicating with the publisher."]
73    pub r#contact: Vec<super::super::types::ContactDetail>,
74    #[doc = "The name of the organization that is responsible for issuing identifiers or codes for this namespace and ensuring their non-collision."]
75    pub r#responsible: Option<super::super::types::String>,
76    #[doc = "Categorizes a naming system for easier search by grouping related naming systems."]
77    pub r#type: Option<Box<super::super::types::CodeableConcept>>,
78    #[doc = "A free text natural language description of the naming system from a consumer's perspective. Details about what the namespace identifies including scope, granularity, version labeling, etc."]
79    pub r#description: Option<super::super::types::Markdown>,
80    #[doc = "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate naming system instances."]
81    pub r#use_context: Vec<super::super::types::UsageContext>,
82    #[doc = "A legal or geographic region in which the naming system is intended to be used."]
83    pub r#jurisdiction: Vec<super::super::types::CodeableConcept>,
84    #[doc = "Provides guidance on the use of the namespace, including the handling of formatting characters, use of upper vs. lower case, etc."]
85    pub r#usage: Option<super::super::types::String>,
86    #[doc = "Indicates how the system may be identified when referenced in electronic exchange."]
87    pub r#unique_id: Vec<NamingSystemUniqueId>,
88}
89#[allow(clippy::derivable_impls)]
90impl Default for NamingSystem {
91    fn default() -> Self {
92        Self {
93            r#id: Default::default(),
94            r#meta: Default::default(),
95            r#implicit_rules: Default::default(),
96            r#language: Default::default(),
97            r#text: Default::default(),
98            r#contained: Default::default(),
99            r#extension: Default::default(),
100            r#modifier_extension: Default::default(),
101            r#name: super::super::types::String {
102                id: Some("$invalid".to_string()),
103                ..Default::default()
104            },
105            r#status: super::super::types::Code {
106                id: Some("$invalid".to_string()),
107                ..Default::default()
108            },
109            r#kind: super::super::types::Code {
110                id: Some("$invalid".to_string()),
111                ..Default::default()
112            },
113            r#date: super::super::types::DateTime {
114                id: Some("$invalid".to_string()),
115                ..Default::default()
116            },
117            r#publisher: Default::default(),
118            r#contact: Default::default(),
119            r#responsible: Default::default(),
120            r#type: Default::default(),
121            r#description: Default::default(),
122            r#use_context: Default::default(),
123            r#jurisdiction: Default::default(),
124            r#usage: Default::default(),
125            r#unique_id: Default::default(),
126        }
127    }
128}