1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
//! Citation
//!
//! URL: http://hl7.org/fhir/StructureDefinition/Citation
//!
//! Version: 5.0.0
//!
//! Citation Resource: Enables reference to any knowledge artifact for purposes of identification and attribution.
//!
//! FHIR: <https://build.fhir.org/>
//!
//! UML: <https://build.fhir.org/uml.html>
// Allow unused crate::r5::types as types;
#![allow(unused_imports)]
use crate::r5::types;
use ::serde::{Deserialize, Serialize};
use fhir_derive_macros::Validate;
/// The Citation Resource enables reference to any knowledge artifact for
/// purposes of identification and attribution. It supports existing reference
/// structures and developing publication practices such as versioning,
/// expressing complex contributorship roles, and referencing computable
/// resources. In FHIR R5 it captures both metadata about the citation record
/// itself and rich descriptive detail about the cited artifact being referenced.
///
/// Citation is a canonical, conformance-like resource that follows the usual
/// publication lifecycle metadata pattern shared with other knowledge artifact
/// resources: it carries a `url`, `version`, `status`, `date`, `publisher`, and
/// `use_context`, in addition to citation-specific detail. The resource is used
/// to describe bibliographic references (such as journal articles, guidelines,
/// or other source material) that support clinical decision support artifacts,
/// evidence summaries, quality measures, and other knowledge artifacts, allowing
/// implementers to trace claims and recommendations back to their supporting
/// literature. The `cited_artifact` element carries the substantive
/// bibliographic detail (titles, abstracts, publication form, and
/// contributorship), while the top-level elements describe the citation record
/// itself as a shareable, versionable FHIR artifact.
///
/// # Related resources
///
/// A `Citation` may reference other resources via [`Reference`](crate::r5::types::Reference)
/// elements, for example to link a `related_artifact` or `base_citation` back
/// to another `Citation`, an `Evidence` resource, or a supporting `Organization`.
/// Descriptive coded elements throughout this resource, such as `classification`
/// and `jurisdiction`, use [`CodeableConcept`](crate::r5::types::CodeableConcept).
///
/// # Examples
///
/// ```
/// use fhir::r5::resources::citation::Citation;
///
/// let value = Citation::default();
/// let json = ::serde_json::to_value(&value).unwrap();
/// let back: Citation = ::serde_json::from_value(json).unwrap();
/// assert_eq!(value, back);
/// ```
#[serde_with::skip_serializing_none]
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq, Eq, Validate)]
#[serde(rename_all = "camelCase")]
pub struct Citation {
/// Logical id of this artifact.
pub id: Option<types::String>,
/// Metadata about the resource.
pub meta: Option<types::Meta>,
/// A set of rules under which this content was created.
pub implicit_rules: Option<types::Uri>,
/// Language of the resource content.
pub language: Option<types::Code>,
/// Text summary of the resource, for human interpretation.
pub text: Option<types::Narrative>,
/// Contained, inline Resources.
pub contained: Option<Vec<::serde_json::Value>>,
/// Additional content defined by implementations.
pub extension: Option<Vec<types::Extension>>,
/// Extensions that cannot be ignored.
pub modifier_extension: Option<Vec<types::Extension>>,
/// Canonical identifier for this citation record, represented as a global URL,
/// used to reference this citation record across systems and versions.
pub url: Option<types::Uri>,
/// Business identifier(s) for the citation record itself, distinct from any
/// identifier of the cited artifact (such as a DOI or PMID).
pub identifier: Option<Vec<types::Identifier>>,
/// Business version of the citation record.
pub version: Option<types::String>,
/// How to compare versions (string form).
pub version_algorithm_string: Option<types::String>,
/// How to compare versions (Coding form).
pub version_algorithm_coding: Option<types::Coding>,
/// Name for this citation record (computer friendly).
pub name: Option<types::String>,
/// Name for this citation record (human friendly).
pub title: Option<types::String>,
/// The publication status of the citation record itself: draft | active |
/// retired | unknown. This is a required element.
pub status: types::Code,
/// For testing purposes, not real usage.
pub experimental: Option<types::Boolean>,
/// Date last changed.
pub date: Option<types::DateTime>,
/// The publisher of the citation record, not the publisher of the article.
pub publisher: Option<types::String>,
/// Contact details for the publisher of the citation record.
pub contact: Option<Vec<types::ContactDetail>>,
/// Natural language description of the citation.
pub description: Option<types::Markdown>,
/// The context that the citation record content is intended to support.
pub use_context: Option<Vec<types::UsageContext>>,
/// Intended jurisdiction for citation record (if applicable).
pub jurisdiction: Option<Vec<types::CodeableConcept>>,
/// Why this citation is defined.
pub purpose: Option<types::Markdown>,
/// Use and/or publishing restrictions for the citation record.
pub copyright: Option<types::Markdown>,
/// Copyright holder and year(s) for the citation record.
pub copyright_label: Option<types::String>,
/// When the citation record was approved by publisher.
pub approval_date: Option<types::Date>,
/// When the citation record was last reviewed by the publisher.
pub last_review_date: Option<types::Date>,
/// When the citation record is expected to be used.
pub effective_period: Option<types::Period>,
/// Who authored the citation record.
pub author: Option<Vec<types::ContactDetail>>,
/// Who edited the citation record.
pub editor: Option<Vec<types::ContactDetail>>,
/// Who reviewed the citation record.
pub reviewer: Option<Vec<types::ContactDetail>>,
/// Who endorsed the citation record.
pub endorser: Option<Vec<types::ContactDetail>>,
/// A human-readable display of key concepts to represent the citation.
pub summary: Option<Vec<CitationSummary>>,
/// The assignment to an organizing scheme.
pub classification: Option<Vec<CitationClassification>>,
/// Used for general notes and annotations not coded elsewhere.
pub note: Option<Vec<types::Annotation>>,
/// The status of the citation record.
pub current_state: Option<Vec<types::CodeableConcept>>,
/// An effective date or period for a status of the citation record.
pub status_date: Option<Vec<CitationStatusDate>>,
/// Artifact related to the citation record.
pub related_artifact: Option<Vec<types::RelatedArtifact>>,
/// The article or artifact being described, carrying the detailed
/// bibliographic content (titles, abstracts, publication form, and
/// contributorship) about the source referenced by this citation record.
pub cited_artifact: Option<CitationCitedArtifact>,
}
/// A human-readable display of key concepts to represent the citation.
#[serde_with::skip_serializing_none]
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq, Eq, Validate)]
#[serde(rename_all = "camelCase")]
pub struct CitationSummary {
/// Unique id for inter-element referencing.
pub id: Option<types::String>,
/// Additional content defined by implementations.
pub extension: Option<Vec<types::Extension>>,
/// Extensions that cannot be ignored even if unrecognized.
pub modifier_extension: Option<Vec<types::Extension>>,
/// Format for display of the citation summary.
pub style: Option<types::CodeableConcept>,
/// The human-readable display of the citation summary.
pub text: types::Markdown,
}
/// The assignment to an organizing scheme.
#[serde_with::skip_serializing_none]
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq, Eq, Validate)]
#[serde(rename_all = "camelCase")]
pub struct CitationClassification {
/// Unique id for inter-element referencing.
pub id: Option<types::String>,
/// Additional content defined by implementations.
pub extension: Option<Vec<types::Extension>>,
/// Extensions that cannot be ignored even if unrecognized.
pub modifier_extension: Option<Vec<types::Extension>>,
/// The kind of classifier (e.g. publication type, keyword).
pub r#type: Option<types::CodeableConcept>,
/// The specific classification value.
pub classifier: Option<Vec<types::CodeableConcept>>,
}
/// An effective date or period for a status of the citation record.
#[serde_with::skip_serializing_none]
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq, Eq, Validate)]
#[serde(rename_all = "camelCase")]
pub struct CitationStatusDate {
/// Unique id for inter-element referencing.
pub id: Option<types::String>,
/// Additional content defined by implementations.
pub extension: Option<Vec<types::Extension>>,
/// Extensions that cannot be ignored even if unrecognized.
pub modifier_extension: Option<Vec<types::Extension>>,
/// Classification of the status.
pub activity: types::CodeableConcept,
/// Either occurred or expected.
pub actual: Option<types::Boolean>,
/// When the status started and/or ended.
pub period: types::Period,
}
/// The article or artifact being described.
#[serde_with::skip_serializing_none]
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq, Eq, Validate)]
#[serde(rename_all = "camelCase")]
pub struct CitationCitedArtifact {
/// Unique id for inter-element referencing.
pub id: Option<types::String>,
/// Additional content defined by implementations.
pub extension: Option<Vec<types::Extension>>,
/// Extensions that cannot be ignored even if unrecognized.
pub modifier_extension: Option<Vec<types::Extension>>,
/// Unique identifier. May include DOI, PMID, PMCID, etc.
pub identifier: Option<Vec<types::Identifier>>,
/// Identifier not unique to the cited artifact.
pub related_identifier: Option<Vec<types::Identifier>>,
/// When the cited artifact was accessed.
pub date_accessed: Option<types::DateTime>,
/// The defined version of the cited artifact.
pub version: Option<CitationCitedArtifactVersion>,
/// The status of the cited artifact.
pub current_state: Option<Vec<types::CodeableConcept>>,
/// An effective date or period for a status of the cited artifact.
pub status_date: Option<Vec<CitationCitedArtifactStatusDate>>,
/// The title details of the article or artifact.
pub title: Option<Vec<CitationCitedArtifactTitle>>,
/// Summary of the article or artifact.
pub r#abstract: Option<Vec<CitationCitedArtifactAbstract>>,
/// The component of the article or artifact.
pub part: Option<CitationCitedArtifactPart>,
/// The artifact related to the cited artifact.
pub relates_to: Option<Vec<CitationCitedArtifactRelatesTo>>,
/// Alternative forms of the article that are published.
pub publication_form: Option<Vec<CitationCitedArtifactPublicationForm>>,
/// Used for any URL for the article or artifact cited.
pub web_location: Option<Vec<CitationCitedArtifactWebLocation>>,
/// The assignment to an organizing scheme.
pub classification: Option<Vec<CitationCitedArtifactClassification>>,
/// Attribution of authors and other contributors.
pub contributorship: Option<CitationCitedArtifactContributorship>,
/// Any additional information or content for the article or artifact.
pub note: Option<Vec<types::Annotation>>,
}
/// The defined version of the cited artifact.
#[serde_with::skip_serializing_none]
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq, Eq, Validate)]
#[serde(rename_all = "camelCase")]
pub struct CitationCitedArtifactVersion {
/// Unique id for inter-element referencing.
pub id: Option<types::String>,
/// Additional content defined by implementations.
pub extension: Option<Vec<types::Extension>>,
/// Extensions that cannot be ignored even if unrecognized.
pub modifier_extension: Option<Vec<types::Extension>>,
/// The version number or other version identifier.
pub value: types::String,
/// Citation for the main version of the cited artifact.
pub base_citation: Option<types::Reference>,
}
/// An effective date or period for a status of the cited artifact.
#[serde_with::skip_serializing_none]
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq, Eq, Validate)]
#[serde(rename_all = "camelCase")]
pub struct CitationCitedArtifactStatusDate {
/// Unique id for inter-element referencing.
pub id: Option<types::String>,
/// Additional content defined by implementations.
pub extension: Option<Vec<types::Extension>>,
/// Extensions that cannot be ignored even if unrecognized.
pub modifier_extension: Option<Vec<types::Extension>>,
/// Classification of the status.
pub activity: types::CodeableConcept,
/// Either occurred or expected.
pub actual: Option<types::Boolean>,
/// When the status started and/or ended.
pub period: types::Period,
}
/// The title details of the article or artifact.
#[serde_with::skip_serializing_none]
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq, Eq, Validate)]
#[serde(rename_all = "camelCase")]
pub struct CitationCitedArtifactTitle {
/// Unique id for inter-element referencing.
pub id: Option<types::String>,
/// Additional content defined by implementations.
pub extension: Option<Vec<types::Extension>>,
/// Extensions that cannot be ignored even if unrecognized.
pub modifier_extension: Option<Vec<types::Extension>>,
/// The kind of title.
pub r#type: Option<Vec<types::CodeableConcept>>,
/// Used to express the specific language.
pub language: Option<types::CodeableConcept>,
/// The title of the article or artifact.
pub text: types::Markdown,
}
/// Summary of the article or artifact.
#[serde_with::skip_serializing_none]
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq, Eq, Validate)]
#[serde(rename_all = "camelCase")]
pub struct CitationCitedArtifactAbstract {
/// Unique id for inter-element referencing.
pub id: Option<types::String>,
/// Additional content defined by implementations.
pub extension: Option<Vec<types::Extension>>,
/// Extensions that cannot be ignored even if unrecognized.
pub modifier_extension: Option<Vec<types::Extension>>,
/// The kind of abstract.
pub r#type: Option<types::CodeableConcept>,
/// Used to express the specific language.
pub language: Option<types::CodeableConcept>,
/// Abstract content.
pub text: types::Markdown,
/// Copyright notice for the abstract.
pub copyright: Option<types::Markdown>,
}
/// The component of the article or artifact.
#[serde_with::skip_serializing_none]
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq, Eq, Validate)]
#[serde(rename_all = "camelCase")]
pub struct CitationCitedArtifactPart {
/// Unique id for inter-element referencing.
pub id: Option<types::String>,
/// Additional content defined by implementations.
pub extension: Option<Vec<types::Extension>>,
/// Extensions that cannot be ignored even if unrecognized.
pub modifier_extension: Option<Vec<types::Extension>>,
/// The kind of component.
pub r#type: Option<types::CodeableConcept>,
/// The specification of the component.
pub value: Option<types::String>,
/// The citation for the full article or artifact.
pub base_citation: Option<types::Reference>,
}
/// The artifact related to the cited artifact.
#[serde_with::skip_serializing_none]
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq, Eq, Validate)]
#[serde(rename_all = "camelCase")]
pub struct CitationCitedArtifactRelatesTo {
/// Unique id for inter-element referencing.
pub id: Option<types::String>,
/// Additional content defined by implementations.
pub extension: Option<Vec<types::Extension>>,
/// Extensions that cannot be ignored even if unrecognized.
pub modifier_extension: Option<Vec<types::Extension>>,
/// documentation | justification | citation | predecessor | successor | etc.
pub r#type: types::Code,
/// Additional classifiers.
pub classifier: Option<Vec<types::CodeableConcept>>,
/// Short label.
pub label: Option<types::String>,
/// Brief description of the related artifact.
pub display: Option<types::String>,
/// Bibliographic citation for the artifact.
pub citation: Option<types::Markdown>,
/// What document is being referenced.
pub document: Option<types::Attachment>,
/// What artifact is being referenced.
pub resource: Option<types::Canonical>,
/// What artifact, if not a conformance resource.
pub resource_reference: Option<types::Reference>,
}
/// Alternative forms of the article that are published.
#[serde_with::skip_serializing_none]
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq, Eq, Validate)]
#[serde(rename_all = "camelCase")]
pub struct CitationCitedArtifactPublicationForm {
/// Unique id for inter-element referencing.
pub id: Option<types::String>,
/// Additional content defined by implementations.
pub extension: Option<Vec<types::Extension>>,
/// Extensions that cannot be ignored even if unrecognized.
pub modifier_extension: Option<Vec<types::Extension>>,
/// The collection the cited article or artifact is published in.
pub published_in: Option<CitationCitedArtifactPublicationFormPublishedIn>,
/// Internet or Print.
pub cited_medium: Option<types::CodeableConcept>,
/// Volume number of journal or other collection.
pub volume: Option<types::String>,
/// Issue, part or supplement of journal or other collection.
pub issue: Option<types::String>,
/// The date the article was added to the database, or the date published.
pub article_date: Option<types::DateTime>,
/// Text representation of the date of publication.
pub publication_date_text: Option<types::String>,
/// Season in which the cited artifact was published.
pub publication_date_season: Option<types::String>,
/// The date the article was last revised or updated in the database.
pub last_revision_date: Option<types::DateTime>,
/// Language(s) in which this form of the article is published.
pub language: Option<Vec<types::CodeableConcept>>,
/// Entry number or identifier for inclusion in a database.
pub accession_number: Option<types::String>,
/// Used for full display of pagination.
pub page_string: Option<types::String>,
/// Used for isolated representation of first page.
pub first_page: Option<types::String>,
/// Used for isolated representation of last page.
pub last_page: Option<types::String>,
/// Number of pages or screens.
pub page_count: Option<types::String>,
/// Copyright notice for the full article or artifact.
pub copyright: Option<types::Markdown>,
}
/// The collection the cited article or artifact is published in.
#[serde_with::skip_serializing_none]
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq, Eq, Validate)]
#[serde(rename_all = "camelCase")]
pub struct CitationCitedArtifactPublicationFormPublishedIn {
/// Unique id for inter-element referencing.
pub id: Option<types::String>,
/// Additional content defined by implementations.
pub extension: Option<Vec<types::Extension>>,
/// Extensions that cannot be ignored even if unrecognized.
pub modifier_extension: Option<Vec<types::Extension>>,
/// Kind of container (e.g. Periodical, database, or book).
pub r#type: Option<types::CodeableConcept>,
/// Journal or book identifiers (ISSN, ISO Abbreviation, NLMuniqueID, etc.).
pub identifier: Option<Vec<types::Identifier>>,
/// Name of the database or title of the book or journal.
pub title: Option<types::String>,
/// Name of or resource describing the publisher.
pub publisher: Option<types::Reference>,
/// Geographic location of the publisher.
pub publisher_location: Option<types::String>,
}
/// Used for any URL for the article or artifact cited.
#[serde_with::skip_serializing_none]
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq, Eq, Validate)]
#[serde(rename_all = "camelCase")]
pub struct CitationCitedArtifactWebLocation {
/// Unique id for inter-element referencing.
pub id: Option<types::String>,
/// Additional content defined by implementations.
pub extension: Option<Vec<types::Extension>>,
/// Extensions that cannot be ignored even if unrecognized.
pub modifier_extension: Option<Vec<types::Extension>>,
/// Code the reason for different URLs, e.g. abstract and full-text.
pub classifier: Option<Vec<types::CodeableConcept>>,
/// The specific URL.
pub url: Option<types::Uri>,
}
/// The assignment to an organizing scheme for the cited artifact.
#[serde_with::skip_serializing_none]
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq, Eq, Validate)]
#[serde(rename_all = "camelCase")]
pub struct CitationCitedArtifactClassification {
/// Unique id for inter-element referencing.
pub id: Option<types::String>,
/// Additional content defined by implementations.
pub extension: Option<Vec<types::Extension>>,
/// Extensions that cannot be ignored even if unrecognized.
pub modifier_extension: Option<Vec<types::Extension>>,
/// The kind of classifier (e.g. publication type, keyword).
pub r#type: Option<types::CodeableConcept>,
/// The specific classification value.
pub classifier: Option<Vec<types::CodeableConcept>>,
/// Complex or externally created classification.
pub artifact_assessment: Option<Vec<types::Reference>>,
}
/// Attribution of authors and other contributors.
#[serde_with::skip_serializing_none]
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq, Eq, Validate)]
#[serde(rename_all = "camelCase")]
pub struct CitationCitedArtifactContributorship {
/// Unique id for inter-element referencing.
pub id: Option<types::String>,
/// Additional content defined by implementations.
pub extension: Option<Vec<types::Extension>>,
/// Extensions that cannot be ignored even if unrecognized.
pub modifier_extension: Option<Vec<types::Extension>>,
/// Indicates if the list includes all authors and/or contributors.
pub complete: Option<types::Boolean>,
/// An individual entity named as a contributor.
pub entry: Option<Vec<CitationCitedArtifactContributorshipEntry>>,
/// Used to record a display of the author/contributor list.
pub summary: Option<Vec<CitationCitedArtifactContributorshipSummary>>,
}
/// An individual entity named as a contributor.
#[serde_with::skip_serializing_none]
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq, Eq, Validate)]
#[serde(rename_all = "camelCase")]
pub struct CitationCitedArtifactContributorshipEntry {
/// Unique id for inter-element referencing.
pub id: Option<types::String>,
/// Additional content defined by implementations.
pub extension: Option<Vec<types::Extension>>,
/// Extensions that cannot be ignored even if unrecognized.
pub modifier_extension: Option<Vec<types::Extension>>,
/// The identity of the individual contributor.
pub contributor: types::Reference,
/// For citation styles that use initials.
pub forename_initials: Option<types::String>,
/// Organizational affiliation.
pub affiliation: Option<Vec<types::Reference>>,
/// The specific contribution.
pub contribution_type: Option<Vec<types::CodeableConcept>>,
/// The role of the contributor (e.g. author, editor, reviewer, funder).
pub role: Option<types::CodeableConcept>,
/// Contributions with accounting for time or number.
pub contribution_instance: Option<Vec<CitationCitedArtifactContributorshipEntryContributionInstance>>,
/// Whether the contributor is the corresponding contributor for the role.
pub corresponding_contact: Option<types::Boolean>,
/// Ranked order of contribution.
pub ranking_order: Option<types::PositiveInt>,
}
/// Contributions with accounting for time or number.
#[serde_with::skip_serializing_none]
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq, Eq, Validate)]
#[serde(rename_all = "camelCase")]
pub struct CitationCitedArtifactContributorshipEntryContributionInstance {
/// Unique id for inter-element referencing.
pub id: Option<types::String>,
/// Additional content defined by implementations.
pub extension: Option<Vec<types::Extension>>,
/// Extensions that cannot be ignored even if unrecognized.
pub modifier_extension: Option<Vec<types::Extension>>,
/// The specific contribution.
pub r#type: types::CodeableConcept,
/// The time that the contribution was made.
pub time: Option<types::DateTime>,
}
/// Used to record a display of the author/contributor list.
#[serde_with::skip_serializing_none]
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq, Eq, Validate)]
#[serde(rename_all = "camelCase")]
pub struct CitationCitedArtifactContributorshipSummary {
/// Unique id for inter-element referencing.
pub id: Option<types::String>,
/// Additional content defined by implementations.
pub extension: Option<Vec<types::Extension>>,
/// Extensions that cannot be ignored even if unrecognized.
pub modifier_extension: Option<Vec<types::Extension>>,
/// Such as author list, contributorship statement, funding statement, etc.
pub r#type: Option<types::CodeableConcept>,
/// The format for the display string.
pub style: Option<types::CodeableConcept>,
/// Used to code the producer or rule for creating the display string.
pub source: Option<types::CodeableConcept>,
/// The display string for the author list or contributor list.
pub value: types::Markdown,
}
#[cfg(test)]
mod tests {
use super::*;
type T = Citation;
#[test]
fn test_default() {
let _ = T::default();
}
#[test]
fn test_serde_round_trip() {
let value = T::default();
let json = ::serde_json::to_value(&value).expect("to_value");
let back: T = ::serde_json::from_value(json).expect("from_value");
assert_eq!(value, back);
}
}