fhirbolt_model/generated/r4/
resource.rs

1// Generated on 2023-05-17 by fhirbolt-codegen v0.10.0
2#[doc = "Enum representing all possible FHIR resources."]
3#[derive(Default, Debug, Clone, PartialEq)]
4pub enum Resource {
5    #[doc = "A financial tool for tracking value accrued for a particular purpose.  In the healthcare field, used to track charges for a patient, cost centers, etc."]
6    Account(Box<super::resources::Account>),
7    #[doc = "This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context."]
8    ActivityDefinition(Box<super::resources::ActivityDefinition>),
9    #[doc = "Actual or  potential/avoided event causing unintended physical injury resulting from or contributed to by medical care, a research study or other healthcare setting factors that requires additional monitoring, treatment, or hospitalization, or that results in death."]
10    AdverseEvent(Box<super::resources::AdverseEvent>),
11    #[doc = "Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance.\n\nTo record a clinical assessment of a propensity, or potential risk to an individual, of an adverse reaction upon future exposure to the specified substance, or class of substance."]
12    AllergyIntolerance(Box<super::resources::AllergyIntolerance>),
13    #[doc = "A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)."]
14    Appointment(Box<super::resources::Appointment>),
15    #[doc = "A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection."]
16    AppointmentResponse(Box<super::resources::AppointmentResponse>),
17    #[doc = "A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage."]
18    AuditEvent(Box<super::resources::AuditEvent>),
19    #[doc = "Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification.\n\nNeed some way to safely (without breaking interoperability) allow implementers to exchange content not supported by the initial set of declared resources."]
20    Basic(Box<super::resources::Basic>),
21    #[doc = "A resource that represents the data of a single raw artifact as digital content accessible in its native format.  A Binary resource can contain any content, whether text, image, pdf, zip archive, etc.\n\nThere are situations where it is useful or required to handle pure binary content using the same framework as other resources."]
22    Binary(Box<super::resources::Binary>),
23    #[doc = "A material substance originating from a biological entity intended to be transplanted or infused\ninto another (possibly the same) biological entity."]
24    BiologicallyDerivedProduct(Box<super::resources::BiologicallyDerivedProduct>),
25    #[doc = "Record details about an anatomical structure.  This resource may be used when a coded concept does not provide the necessary detail needed for the use case."]
26    BodyStructure(Box<super::resources::BodyStructure>),
27    #[doc = "A container for a collection of resources."]
28    Bundle(Box<super::resources::Bundle>),
29    #[doc = "A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation."]
30    CapabilityStatement(Box<super::resources::CapabilityStatement>),
31    #[doc = "Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions."]
32    CarePlan(Box<super::resources::CarePlan>),
33    #[doc = "The Care Team includes all the people and organizations who plan to participate in the coordination and delivery of care for a patient."]
34    CareTeam(Box<super::resources::CareTeam>),
35    #[doc = "Catalog entries are wrappers that contextualize items included in a catalog."]
36    CatalogEntry(Box<super::resources::CatalogEntry>),
37    #[doc = "The resource ChargeItem describes the provision of healthcare provider products for a certain patient, therefore referring not only to the product, but containing in addition details of the provision, like date, time, amounts and participating organizations and persons. Main Usage of the ChargeItem is to enable the billing process and internal cost allocation."]
38    ChargeItem(Box<super::resources::ChargeItem>),
39    #[doc = "The ChargeItemDefinition resource provides the properties that apply to the (billing) codes necessary to calculate costs and prices. The properties may differ largely depending on type and realm, therefore this resource gives only a rough structure and requires profiling for each type of billing code system."]
40    ChargeItemDefinition(Box<super::resources::ChargeItemDefinition>),
41    #[doc = "A provider issued list of professional services and products which have been provided, or are to be provided, to a patient which is sent to an insurer for reimbursement.\n\nThe Claim resource is used by providers to exchange services and products rendered to patients or planned to be rendered with insurers for reimbuserment. It is also used by insurers to exchange claims information with statutory reporting and data analytics firms."]
42    Claim(Box<super::resources::Claim>),
43    #[doc = "This resource provides the adjudication details from the processing of a Claim resource."]
44    ClaimResponse(Box<super::resources::ClaimResponse>),
45    #[doc = "A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter,  but this varies greatly depending on the clinical workflow. This resource is called \"ClinicalImpression\" rather than \"ClinicalAssessment\" to avoid confusion with the recording of assessment tools such as Apgar score."]
46    ClinicalImpression(Box<super::resources::ClinicalImpression>),
47    #[doc = "The CodeSystem resource is used to declare the existence of and describe a code system or code system supplement and its key properties, and optionally define a part or all of its content."]
48    CodeSystem(Box<super::resources::CodeSystem>),
49    #[doc = "An occurrence of information being transmitted; e.g. an alert that was sent to a responsible provider, a public health agency that was notified about a reportable condition."]
50    Communication(Box<super::resources::Communication>),
51    #[doc = "A request to convey information; e.g. the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition."]
52    CommunicationRequest(Box<super::resources::CommunicationRequest>),
53    #[doc = "A compartment definition that defines how resources are accessed on a server."]
54    CompartmentDefinition(Box<super::resources::CompartmentDefinition>),
55    #[doc = "A set of healthcare-related information that is assembled together into a single logical package that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. A Composition defines the structure and narrative content necessary for a document. However, a Composition alone does not constitute a document. Rather, the Composition must be the first entry in a Bundle where Bundle.type=document, and any other resources referenced from Composition must be included as subsequent entries in the Bundle (for example Patient, Practitioner, Encounter, etc.).\n\nTo support documents, and also to capture the EN13606 notion of an attested commit to the patient EHR, and to allow a set of disparate resources at the information/engineering level to be gathered into a clinical statement."]
56    Composition(Box<super::resources::Composition>),
57    #[doc = "A statement of relationships from one set of concepts to one or more other concepts - either concepts in code systems, or data element/data element concepts, or classes in class models."]
58    ConceptMap(Box<super::resources::ConceptMap>),
59    #[doc = "A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern."]
60    Condition(Box<super::resources::Condition>),
61    #[doc = "A record of a healthcare consumer’s  choices, which permits or denies identified recipient(s) or recipient role(s) to perform one or more actions within a given policy context, for specific purposes and periods of time."]
62    Consent(Box<super::resources::Consent>),
63    #[doc = "Legally enforceable, formally recorded unilateral or bilateral directive i.e., a policy or agreement."]
64    Contract(Box<super::resources::Contract>),
65    #[doc = "Financial instrument which may be used to reimburse or pay for health care products and services. Includes both insurance and self-payment.\n\nCoverage provides a link between covered parties (patients) and the payors of their healthcare costs (both insurance and self-pay)."]
66    Coverage(Box<super::resources::Coverage>),
67    #[doc = "The CoverageEligibilityRequest provides patient and insurance coverage information to an insurer for them to respond, in the form of an CoverageEligibilityResponse, with information regarding whether the stated coverage is valid and in-force and optionally to provide the insurance details of the policy."]
68    CoverageEligibilityRequest(Box<super::resources::CoverageEligibilityRequest>),
69    #[doc = "This resource provides eligibility and plan details from the processing of an CoverageEligibilityRequest resource."]
70    CoverageEligibilityResponse(Box<super::resources::CoverageEligibilityResponse>),
71    #[doc = "Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc."]
72    DetectedIssue(Box<super::resources::DetectedIssue>),
73    #[doc = "A type of a manufactured item that is used in the provision of healthcare without being substantially changed through that activity. The device may be a medical or non-medical device.\n\nAllows institutions to track their devices."]
74    Device(Box<super::resources::Device>),
75    #[doc = "The characteristics, operational status and capabilities of a medical-related component of a medical device."]
76    DeviceDefinition(Box<super::resources::DeviceDefinition>),
77    #[doc = "Describes a measurement, calculation or setting capability of a medical device."]
78    DeviceMetric(Box<super::resources::DeviceMetric>),
79    #[doc = "Represents a request for a patient to employ a medical device. The device may be an implantable device, or an external assistive device, such as a walker."]
80    DeviceRequest(Box<super::resources::DeviceRequest>),
81    #[doc = "A record of a device being used by a patient where the record is the result of a report from the patient or another clinician."]
82    DeviceUseStatement(Box<super::resources::DeviceUseStatement>),
83    #[doc = "The findings and interpretation of diagnostic  tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports.\n\nTo support reporting for any diagnostic report into a clinical data repository."]
84    DiagnosticReport(Box<super::resources::DiagnosticReport>),
85    #[doc = "A collection of documents compiled for a purpose together with metadata that applies to the collection."]
86    DocumentManifest(Box<super::resources::DocumentManifest>),
87    #[doc = "A reference to a document of any kind for any purpose. Provides metadata about the document so that the document can be discovered and managed. The scope of a document is any seralized object with a mime-type, so includes formal patient centric documents (CDA), cliical notes, scanned paper, and non-patient specific documents like policy text."]
88    DocumentReference(Box<super::resources::DocumentReference>),
89    #[doc = "The EffectEvidenceSynthesis resource describes the difference in an outcome between exposures states in a population where the effect estimate is derived from a combination of research studies."]
90    EffectEvidenceSynthesis(Box<super::resources::EffectEvidenceSynthesis>),
91    #[doc = "An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient."]
92    Encounter(Box<super::resources::Encounter>),
93    #[doc = "The technical details of an endpoint that can be used for electronic services, such as for web services providing XDS.b or a REST endpoint for another FHIR server. This may include any security context information."]
94    Endpoint(Box<super::resources::Endpoint>),
95    #[doc = "This resource provides the insurance enrollment details to the insurer regarding a specified coverage."]
96    EnrollmentRequest(Box<super::resources::EnrollmentRequest>),
97    #[doc = "This resource provides enrollment and plan details from the processing of an EnrollmentRequest resource."]
98    EnrollmentResponse(Box<super::resources::EnrollmentResponse>),
99    #[doc = "An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time."]
100    EpisodeOfCare(Box<super::resources::EpisodeOfCare>),
101    #[doc = "The EventDefinition resource provides a reusable description of when a particular event can occur."]
102    EventDefinition(Box<super::resources::EventDefinition>),
103    #[doc = "The Evidence resource describes the conditional state (population and any exposures being compared within the population) and outcome (if specified) that the knowledge (evidence, assertion, recommendation) is about."]
104    Evidence(Box<super::resources::Evidence>),
105    #[doc = "The EvidenceVariable resource describes a \"PICO\" element that knowledge (evidence, assertion, recommendation) is about.\n\nNeed to be able to define and reuse the definition of individual elements of a research question."]
106    EvidenceVariable(Box<super::resources::EvidenceVariable>),
107    #[doc = "Example of workflow instance."]
108    ExampleScenario(Box<super::resources::ExampleScenario>),
109    #[doc = "This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided."]
110    ExplanationOfBenefit(Box<super::resources::ExplanationOfBenefit>),
111    #[doc = "Significant health conditions for a person related to the patient relevant in the context of care for the patient."]
112    FamilyMemberHistory(Box<super::resources::FamilyMemberHistory>),
113    #[doc = "Prospective warnings of potential issues when providing care to the patient."]
114    Flag(Box<super::resources::Flag>),
115    #[doc = "Describes the intended objective(s) for a patient, group or organization care, for example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc."]
116    Goal(Box<super::resources::Goal>),
117    #[doc = "A formal computable definition of a graph of resources - that is, a coherent set of resources that form a graph by following references. The Graph Definition resource defines a set and makes rules about the set."]
118    GraphDefinition(Box<super::resources::GraphDefinition>),
119    #[doc = "Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively, and are not formally or legally recognized; i.e. a collection of entities that isn't an Organization."]
120    Group(Box<super::resources::Group>),
121    #[doc = "A guidance response is the formal response to a guidance request, including any output parameters returned by the evaluation, as well as the description of any proposed actions to be taken.\n\nThe GuidanceResponse resource supports recording the results of decision support interactions, reportability determination for public health, as well as the communication of additional data requirements for subsequent interactions."]
122    GuidanceResponse(Box<super::resources::GuidanceResponse>),
123    #[doc = "The details of a healthcare service available at a location."]
124    HealthcareService(Box<super::resources::HealthcareService>),
125    #[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."]
126    ImagingStudy(Box<super::resources::ImagingStudy>),
127    #[doc = "Describes the event of a patient being administered a vaccine or a record of an immunization as reported by a patient, a clinician or another party."]
128    Immunization(Box<super::resources::Immunization>),
129    #[doc = "Describes a comparison of an immunization event against published recommendations to determine if the administration is \"valid\" in relation to those  recommendations."]
130    ImmunizationEvaluation(Box<super::resources::ImmunizationEvaluation>),
131    #[doc = "A patient's point-in-time set of recommendations (i.e. forecasting) according to a published schedule with optional supporting justification."]
132    ImmunizationRecommendation(Box<super::resources::ImmunizationRecommendation>),
133    #[doc = "A set of rules of how a particular interoperability or standards problem is solved - typically through the use of FHIR resources. This resource is used to gather all the parts of an implementation guide into a logical whole and to publish a computable definition of all the parts.\n\nAn implementation guide is able to define default profiles that must apply to any use of a resource, so validation services may need to take one or more implementation guide resources when validating."]
134    ImplementationGuide(Box<super::resources::ImplementationGuide>),
135    #[doc = "Details of a Health Insurance product/plan provided by an organization."]
136    InsurancePlan(Box<super::resources::InsurancePlan>),
137    #[doc = "Invoice containing collected ChargeItems from an Account with calculated individual and total price for Billing purpose."]
138    Invoice(Box<super::resources::Invoice>),
139    #[doc = "The Library resource is a general-purpose container for knowledge asset definitions. It can be used to describe and expose existing knowledge assets such as logic libraries and information model descriptions, as well as to describe a collection of knowledge assets."]
140    Library(Box<super::resources::Library>),
141    #[doc = "Identifies two or more records (resource instances) that refer to the same real-world \"occurrence\"."]
142    Linkage(Box<super::resources::Linkage>),
143    #[doc = "A list is a curated collection of resources."]
144    List(Box<super::resources::List>),
145    #[doc = "Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained, or accommodated."]
146    Location(Box<super::resources::Location>),
147    #[doc = "The Measure resource provides the definition of a quality measure."]
148    Measure(Box<super::resources::Measure>),
149    #[doc = "The MeasureReport resource contains the results of the calculation of a measure; and optionally a reference to the resources involved in that calculation."]
150    MeasureReport(Box<super::resources::MeasureReport>),
151    #[doc = "A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference."]
152    Media(Box<super::resources::Media>),
153    #[doc = "This resource is primarily used for the identification and definition of a medication for the purposes of prescribing, dispensing, and administering a medication as well as for making statements about medication use."]
154    Medication(Box<super::resources::Medication>),
155    #[doc = "Describes the event of a patient consuming or otherwise being administered a medication.  This may be as simple as swallowing a tablet or it may be a long running infusion.  Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner."]
156    MedicationAdministration(Box<super::resources::MedicationAdministration>),
157    #[doc = "Indicates that a medication product is to be or has been dispensed for a named person/patient.  This includes a description of the medication product (supply) provided and the instructions for administering the medication.  The medication dispense is the result of a pharmacy system responding to a medication order."]
158    MedicationDispense(Box<super::resources::MedicationDispense>),
159    #[doc = "Information about a medication that is used to support knowledge."]
160    MedicationKnowledge(Box<super::resources::MedicationKnowledge>),
161    #[doc = "An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationRequest\" rather than \"MedicationPrescription\" or \"MedicationOrder\" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns."]
162    MedicationRequest(Box<super::resources::MedicationRequest>),
163    #[doc = "A record of a medication that is being consumed by a patient.   A MedicationStatement may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future.  The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician.  A common scenario where this information is captured is during the history taking process during a patient visit or stay.   The medication information may come from sources such as the patient's memory, from a prescription bottle,  or from a list of medications the patient, clinician or other party maintains. \n\nThe primary difference between a medication statement and a medication administration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication.  A medication statement is often, if not always, less specific.  There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise.  As stated earlier, the medication statement information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains.  Medication administration is more formal and is not missing detailed information."]
164    MedicationStatement(Box<super::resources::MedicationStatement>),
165    #[doc = "Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use)."]
166    MedicinalProduct(Box<super::resources::MedicinalProduct>),
167    #[doc = "The regulatory authorization of a medicinal product."]
168    MedicinalProductAuthorization(Box<super::resources::MedicinalProductAuthorization>),
169    #[doc = "The clinical particulars - indications, contraindications etc. of a medicinal product, including for regulatory purposes."]
170    MedicinalProductContraindication(Box<super::resources::MedicinalProductContraindication>),
171    #[doc = "Indication for the Medicinal Product."]
172    MedicinalProductIndication(Box<super::resources::MedicinalProductIndication>),
173    #[doc = "An ingredient of a manufactured item or pharmaceutical product."]
174    MedicinalProductIngredient(Box<super::resources::MedicinalProductIngredient>),
175    #[doc = "The interactions of the medicinal product with other medicinal products, or other forms of interactions."]
176    MedicinalProductInteraction(Box<super::resources::MedicinalProductInteraction>),
177    #[doc = "The manufactured item as contained in the packaged medicinal product."]
178    MedicinalProductManufactured(Box<super::resources::MedicinalProductManufactured>),
179    #[doc = "A medicinal product in a container or package."]
180    MedicinalProductPackaged(Box<super::resources::MedicinalProductPackaged>),
181    #[doc = "A pharmaceutical product described in terms of its composition and dose form."]
182    MedicinalProductPharmaceutical(Box<super::resources::MedicinalProductPharmaceutical>),
183    #[doc = "Describe the undesirable effects of the medicinal product."]
184    MedicinalProductUndesirableEffect(Box<super::resources::MedicinalProductUndesirableEffect>),
185    #[doc = "Defines the characteristics of a message that can be shared between systems, including the type of event that initiates the message, the content to be transmitted and what response(s), if any, are permitted.\n\nAllows messages to be defined once and re-used across systems."]
186    MessageDefinition(Box<super::resources::MessageDefinition>),
187    #[doc = "The header for a message exchange that is either requesting or responding to an action.  The reference(s) that are the subject of the action as well as other information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle.\n\nMany implementations are not prepared to use REST and need a messaging based infrastructure."]
188    MessageHeader(Box<super::resources::MessageHeader>),
189    #[doc = "Raw data describing a biological sequence."]
190    MolecularSequence(Box<super::resources::MolecularSequence>),
191    #[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."]
192    NamingSystem(Box<super::resources::NamingSystem>),
193    #[doc = "A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident."]
194    NutritionOrder(Box<super::resources::NutritionOrder>),
195    #[doc = "Measurements and simple assertions made about a patient, device or other subject.\n\nObservations are a key aspect of healthcare.  This resource is used to capture those that do not require more sophisticated mechanisms."]
196    Observation(Box<super::resources::Observation>),
197    #[doc = "Set of definitional characteristics for a kind of observation or measurement produced or consumed by an orderable health care service.\n\nIn a catalog of health-related services that use or produce observations and measurements, this resource describes the expected characteristics of these observation / measurements."]
198    ObservationDefinition(Box<super::resources::ObservationDefinition>),
199    #[doc = "A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction)."]
200    OperationDefinition(Box<super::resources::OperationDefinition>),
201    #[doc = "A collection of error, warning, or information messages that result from a system action."]
202    OperationOutcome(Box<super::resources::OperationOutcome>),
203    #[doc = "A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action.  Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, payer/insurer, etc."]
204    Organization(Box<super::resources::Organization>),
205    #[doc = "Defines an affiliation/assotiation/relationship between 2 distinct oganizations, that is not a part-of relationship/sub-division relationship.\n\nNeed to define relationships between organizations that are not sub-divisions of the same organization (part-of relationships)."]
206    OrganizationAffiliation(Box<super::resources::OrganizationAffiliation>),
207    #[doc = "This resource is a non-persisted resource used to pass information into and back from an [operation](https://hl7.org/FHIR/operations.html)). It has no other use, and there is no RESTful endpoint associated with it."]
208    Parameters(Box<super::resources::Parameters>),
209    #[doc = "Demographics and other administrative information about an individual or animal receiving care or other health-related services.\n\nTracking patient is the center of the healthcare process."]
210    Patient(Box<super::resources::Patient>),
211    #[doc = "This resource provides the status of the payment for goods and services rendered, and the request and response resource references."]
212    PaymentNotice(Box<super::resources::PaymentNotice>),
213    #[doc = "This resource provides the details including amount of a payment and allocates the payment items being paid."]
214    PaymentReconciliation(Box<super::resources::PaymentReconciliation>),
215    #[doc = "Demographics and administrative information about a person independent of a specific health-related context.\n\nNeed to track persons potentially across multiple roles."]
216    Person(Box<super::resources::Person>),
217    #[doc = "This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols."]
218    PlanDefinition(Box<super::resources::PlanDefinition>),
219    #[doc = "A person who is directly or indirectly involved in the provisioning of healthcare.\n\nNeed to track doctors, staff, locums etc. for both healthcare practitioners, funders, etc."]
220    Practitioner(Box<super::resources::Practitioner>),
221    #[doc = "A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time.\n\nNeed to track services that a healthcare provider is able to provide at an organization's location, and the services that they can perform there."]
222    PractitionerRole(Box<super::resources::PractitionerRole>),
223    #[doc = "An action that is or was performed on or for a patient. This can be a physical intervention like an operation, or less invasive like long term services, counseling, or hypnotherapy."]
224    Procedure(Box<super::resources::Procedure>),
225    #[doc = "Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance assertions are a form of contextual metadata and can themselves become important records with their own provenance. Provenance statement indicates clinical significance in terms of confidence in authenticity, reliability, and trustworthiness, integrity, and stage in lifecycle (e.g. Document Completion - has the artifact been legally authenticated), all of which may impact security, privacy, and trust policies."]
226    Provenance(Box<super::resources::Provenance>),
227    #[doc = "A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.\n\nTo support structured, hierarchical registration of data gathered using digital forms and other questionnaires.  Questionnaires provide greater control over presentation and allow capture of data in a domain-independent way (i.e. capturing information that would otherwise require multiple distinct types of resources)."]
228    Questionnaire(Box<super::resources::Questionnaire>),
229    #[doc = "A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the questionnaire being responded to.\n\nTo support structured, hierarchical reporting of data gathered using digital forms and other questionnaires."]
230    QuestionnaireResponse(Box<super::resources::QuestionnaireResponse>),
231    #[doc = "Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process.\n\nNeed to track persons related to the patient or the healthcare process."]
232    RelatedPerson(Box<super::resources::RelatedPerson>),
233    #[doc = "A group of related requests that can be used to capture intended activities that have inter-dependencies such as \"give this medication after that one\"."]
234    RequestGroup(Box<super::resources::RequestGroup>),
235    #[doc = "The ResearchDefinition resource describes the conditional state (population and any exposures being compared within the population) and outcome (if specified) that the knowledge (evidence, assertion, recommendation) is about."]
236    ResearchDefinition(Box<super::resources::ResearchDefinition>),
237    #[doc = "The ResearchElementDefinition resource describes a \"PICO\" element that knowledge (evidence, assertion, recommendation) is about.\n\nNeed to be able to define and reuse the definition of individual elements of a research question."]
238    ResearchElementDefinition(Box<super::resources::ResearchElementDefinition>),
239    #[doc = "A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge.  This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques.  A ResearchStudy involves the gathering of information about human or animal subjects."]
240    ResearchStudy(Box<super::resources::ResearchStudy>),
241    #[doc = "A physical entity which is the primary unit of operational and/or administrative interest in a study."]
242    ResearchSubject(Box<super::resources::ResearchSubject>),
243    #[doc = "An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome."]
244    RiskAssessment(Box<super::resources::RiskAssessment>),
245    #[doc = "The RiskEvidenceSynthesis resource describes the likelihood of an outcome in a population plus exposure state where the risk estimate is derived from a combination of research studies."]
246    RiskEvidenceSynthesis(Box<super::resources::RiskEvidenceSynthesis>),
247    #[doc = "A container for slots of time that may be available for booking appointments."]
248    Schedule(Box<super::resources::Schedule>),
249    #[doc = "A search parameter that defines a named search item that can be used to search/filter on a resource."]
250    SearchParameter(Box<super::resources::SearchParameter>),
251    #[doc = "A record of a request for service such as diagnostic investigations, treatments, or operations to be performed."]
252    ServiceRequest(Box<super::resources::ServiceRequest>),
253    #[doc = "A slot of time on a schedule that may be available for booking appointments."]
254    Slot(Box<super::resources::Slot>),
255    #[doc = "A sample to be used for analysis."]
256    Specimen(Box<super::resources::Specimen>),
257    #[doc = "A kind of specimen with associated set of requirements."]
258    SpecimenDefinition(Box<super::resources::SpecimenDefinition>),
259    #[doc = "A definition of a FHIR structure. This resource is used to describe the underlying resources, data types defined in FHIR, and also for describing extensions and constraints on resources and data types."]
260    StructureDefinition(Box<super::resources::StructureDefinition>),
261    #[doc = "A Map of relationships between 2 structures that can be used to transform data."]
262    StructureMap(Box<super::resources::StructureMap>),
263    #[doc = "The subscription resource is used to define a push-based subscription from a server to another system. Once a subscription is registered with the server, the server checks every resource that is created or updated, and if the resource matches the given criteria, it sends a message on the defined \"channel\" so that another system can take an appropriate action."]
264    Subscription(Box<super::resources::Subscription>),
265    #[doc = "A homogeneous material with a definite composition."]
266    Substance(Box<super::resources::Substance>),
267    #[doc = "Nucleic acids are defined by three distinct elements: the base, sugar and linkage. Individual substance/moiety IDs will be created for each of these elements. The nucleotide sequence will be always entered in the 5’-3’ direction."]
268    SubstanceNucleicAcid(Box<super::resources::SubstanceNucleicAcid>),
269    #[doc = "Todo."]
270    SubstancePolymer(Box<super::resources::SubstancePolymer>),
271    #[doc = "A SubstanceProtein is defined as a single unit of a linear amino acid sequence, or a combination of subunits that are either covalently linked or have a defined invariant stoichiometric relationship. This includes all synthetic, recombinant and purified SubstanceProteins of defined sequence, whether the use is therapeutic or prophylactic. This set of elements will be used to describe albumins, coagulation factors, cytokines, growth factors, peptide/SubstanceProtein hormones, enzymes, toxins, toxoids, recombinant vaccines, and immunomodulators."]
272    SubstanceProtein(Box<super::resources::SubstanceProtein>),
273    #[doc = "Todo."]
274    SubstanceReferenceInformation(Box<super::resources::SubstanceReferenceInformation>),
275    #[doc = "Source material shall capture information on the taxonomic and anatomical origins as well as the fraction of a material that can result in or can be modified to form a substance. This set of data elements shall be used to define polymer substances isolated from biological matrices. Taxonomic and anatomical origins shall be described using a controlled vocabulary as required. This information is captured for naturally derived polymers ( . starch) and structurally diverse substances. For Organisms belonging to the Kingdom Plantae the Substance level defines the fresh material of a single species or infraspecies, the Herbal Drug and the Herbal preparation. For Herbal preparations, the fraction information will be captured at the Substance information level and additional information for herbal extracts will be captured at the Specified Substance Group 1 information level. See for further explanation the Substance Class: Structurally Diverse and the herbal annex."]
276    SubstanceSourceMaterial(Box<super::resources::SubstanceSourceMaterial>),
277    #[doc = "The detailed description of a substance, typically at a level beyond what is used for prescribing."]
278    SubstanceSpecification(Box<super::resources::SubstanceSpecification>),
279    #[doc = "Record of delivery of what is supplied."]
280    SupplyDelivery(Box<super::resources::SupplyDelivery>),
281    #[doc = "A record of a request for a medication, substance or device used in the healthcare setting."]
282    SupplyRequest(Box<super::resources::SupplyRequest>),
283    #[doc = "A task to be performed."]
284    Task(Box<super::resources::Task>),
285    #[doc = "A TerminologyCapabilities resource documents a set of capabilities (behaviors) of a FHIR Terminology Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation."]
286    TerminologyCapabilities(Box<super::resources::TerminologyCapabilities>),
287    #[doc = "A summary of information based on the results of executing a TestScript."]
288    TestReport(Box<super::resources::TestReport>),
289    #[doc = "A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification."]
290    TestScript(Box<super::resources::TestScript>),
291    #[doc = "A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between `CodeSystem` definitions and their use in [coded elements](https://hl7.org/FHIR/terminologies.html))."]
292    ValueSet(Box<super::resources::ValueSet>),
293    #[doc = "Describes validation requirements, source(s), status and dates for one or more elements."]
294    VerificationResult(Box<super::resources::VerificationResult>),
295    #[doc = "An authorization for the provision of glasses and/or contact lenses to a patient."]
296    VisionPrescription(Box<super::resources::VisionPrescription>),
297    #[default]
298    Invalid,
299}
300impl Resource {
301    pub fn id(&self) -> Option<&crate::r4::types::Id> {
302        match self {
303            Resource::Account(r) => r.id.as_ref(),
304            Resource::ActivityDefinition(r) => r.id.as_ref(),
305            Resource::AdverseEvent(r) => r.id.as_ref(),
306            Resource::AllergyIntolerance(r) => r.id.as_ref(),
307            Resource::Appointment(r) => r.id.as_ref(),
308            Resource::AppointmentResponse(r) => r.id.as_ref(),
309            Resource::AuditEvent(r) => r.id.as_ref(),
310            Resource::Basic(r) => r.id.as_ref(),
311            Resource::Binary(r) => r.id.as_ref(),
312            Resource::BiologicallyDerivedProduct(r) => r.id.as_ref(),
313            Resource::BodyStructure(r) => r.id.as_ref(),
314            Resource::Bundle(r) => r.id.as_ref(),
315            Resource::CapabilityStatement(r) => r.id.as_ref(),
316            Resource::CarePlan(r) => r.id.as_ref(),
317            Resource::CareTeam(r) => r.id.as_ref(),
318            Resource::CatalogEntry(r) => r.id.as_ref(),
319            Resource::ChargeItem(r) => r.id.as_ref(),
320            Resource::ChargeItemDefinition(r) => r.id.as_ref(),
321            Resource::Claim(r) => r.id.as_ref(),
322            Resource::ClaimResponse(r) => r.id.as_ref(),
323            Resource::ClinicalImpression(r) => r.id.as_ref(),
324            Resource::CodeSystem(r) => r.id.as_ref(),
325            Resource::Communication(r) => r.id.as_ref(),
326            Resource::CommunicationRequest(r) => r.id.as_ref(),
327            Resource::CompartmentDefinition(r) => r.id.as_ref(),
328            Resource::Composition(r) => r.id.as_ref(),
329            Resource::ConceptMap(r) => r.id.as_ref(),
330            Resource::Condition(r) => r.id.as_ref(),
331            Resource::Consent(r) => r.id.as_ref(),
332            Resource::Contract(r) => r.id.as_ref(),
333            Resource::Coverage(r) => r.id.as_ref(),
334            Resource::CoverageEligibilityRequest(r) => r.id.as_ref(),
335            Resource::CoverageEligibilityResponse(r) => r.id.as_ref(),
336            Resource::DetectedIssue(r) => r.id.as_ref(),
337            Resource::Device(r) => r.id.as_ref(),
338            Resource::DeviceDefinition(r) => r.id.as_ref(),
339            Resource::DeviceMetric(r) => r.id.as_ref(),
340            Resource::DeviceRequest(r) => r.id.as_ref(),
341            Resource::DeviceUseStatement(r) => r.id.as_ref(),
342            Resource::DiagnosticReport(r) => r.id.as_ref(),
343            Resource::DocumentManifest(r) => r.id.as_ref(),
344            Resource::DocumentReference(r) => r.id.as_ref(),
345            Resource::EffectEvidenceSynthesis(r) => r.id.as_ref(),
346            Resource::Encounter(r) => r.id.as_ref(),
347            Resource::Endpoint(r) => r.id.as_ref(),
348            Resource::EnrollmentRequest(r) => r.id.as_ref(),
349            Resource::EnrollmentResponse(r) => r.id.as_ref(),
350            Resource::EpisodeOfCare(r) => r.id.as_ref(),
351            Resource::EventDefinition(r) => r.id.as_ref(),
352            Resource::Evidence(r) => r.id.as_ref(),
353            Resource::EvidenceVariable(r) => r.id.as_ref(),
354            Resource::ExampleScenario(r) => r.id.as_ref(),
355            Resource::ExplanationOfBenefit(r) => r.id.as_ref(),
356            Resource::FamilyMemberHistory(r) => r.id.as_ref(),
357            Resource::Flag(r) => r.id.as_ref(),
358            Resource::Goal(r) => r.id.as_ref(),
359            Resource::GraphDefinition(r) => r.id.as_ref(),
360            Resource::Group(r) => r.id.as_ref(),
361            Resource::GuidanceResponse(r) => r.id.as_ref(),
362            Resource::HealthcareService(r) => r.id.as_ref(),
363            Resource::ImagingStudy(r) => r.id.as_ref(),
364            Resource::Immunization(r) => r.id.as_ref(),
365            Resource::ImmunizationEvaluation(r) => r.id.as_ref(),
366            Resource::ImmunizationRecommendation(r) => r.id.as_ref(),
367            Resource::ImplementationGuide(r) => r.id.as_ref(),
368            Resource::InsurancePlan(r) => r.id.as_ref(),
369            Resource::Invoice(r) => r.id.as_ref(),
370            Resource::Library(r) => r.id.as_ref(),
371            Resource::Linkage(r) => r.id.as_ref(),
372            Resource::List(r) => r.id.as_ref(),
373            Resource::Location(r) => r.id.as_ref(),
374            Resource::Measure(r) => r.id.as_ref(),
375            Resource::MeasureReport(r) => r.id.as_ref(),
376            Resource::Media(r) => r.id.as_ref(),
377            Resource::Medication(r) => r.id.as_ref(),
378            Resource::MedicationAdministration(r) => r.id.as_ref(),
379            Resource::MedicationDispense(r) => r.id.as_ref(),
380            Resource::MedicationKnowledge(r) => r.id.as_ref(),
381            Resource::MedicationRequest(r) => r.id.as_ref(),
382            Resource::MedicationStatement(r) => r.id.as_ref(),
383            Resource::MedicinalProduct(r) => r.id.as_ref(),
384            Resource::MedicinalProductAuthorization(r) => r.id.as_ref(),
385            Resource::MedicinalProductContraindication(r) => r.id.as_ref(),
386            Resource::MedicinalProductIndication(r) => r.id.as_ref(),
387            Resource::MedicinalProductIngredient(r) => r.id.as_ref(),
388            Resource::MedicinalProductInteraction(r) => r.id.as_ref(),
389            Resource::MedicinalProductManufactured(r) => r.id.as_ref(),
390            Resource::MedicinalProductPackaged(r) => r.id.as_ref(),
391            Resource::MedicinalProductPharmaceutical(r) => r.id.as_ref(),
392            Resource::MedicinalProductUndesirableEffect(r) => r.id.as_ref(),
393            Resource::MessageDefinition(r) => r.id.as_ref(),
394            Resource::MessageHeader(r) => r.id.as_ref(),
395            Resource::MolecularSequence(r) => r.id.as_ref(),
396            Resource::NamingSystem(r) => r.id.as_ref(),
397            Resource::NutritionOrder(r) => r.id.as_ref(),
398            Resource::Observation(r) => r.id.as_ref(),
399            Resource::ObservationDefinition(r) => r.id.as_ref(),
400            Resource::OperationDefinition(r) => r.id.as_ref(),
401            Resource::OperationOutcome(r) => r.id.as_ref(),
402            Resource::Organization(r) => r.id.as_ref(),
403            Resource::OrganizationAffiliation(r) => r.id.as_ref(),
404            Resource::Parameters(r) => r.id.as_ref(),
405            Resource::Patient(r) => r.id.as_ref(),
406            Resource::PaymentNotice(r) => r.id.as_ref(),
407            Resource::PaymentReconciliation(r) => r.id.as_ref(),
408            Resource::Person(r) => r.id.as_ref(),
409            Resource::PlanDefinition(r) => r.id.as_ref(),
410            Resource::Practitioner(r) => r.id.as_ref(),
411            Resource::PractitionerRole(r) => r.id.as_ref(),
412            Resource::Procedure(r) => r.id.as_ref(),
413            Resource::Provenance(r) => r.id.as_ref(),
414            Resource::Questionnaire(r) => r.id.as_ref(),
415            Resource::QuestionnaireResponse(r) => r.id.as_ref(),
416            Resource::RelatedPerson(r) => r.id.as_ref(),
417            Resource::RequestGroup(r) => r.id.as_ref(),
418            Resource::ResearchDefinition(r) => r.id.as_ref(),
419            Resource::ResearchElementDefinition(r) => r.id.as_ref(),
420            Resource::ResearchStudy(r) => r.id.as_ref(),
421            Resource::ResearchSubject(r) => r.id.as_ref(),
422            Resource::RiskAssessment(r) => r.id.as_ref(),
423            Resource::RiskEvidenceSynthesis(r) => r.id.as_ref(),
424            Resource::Schedule(r) => r.id.as_ref(),
425            Resource::SearchParameter(r) => r.id.as_ref(),
426            Resource::ServiceRequest(r) => r.id.as_ref(),
427            Resource::Slot(r) => r.id.as_ref(),
428            Resource::Specimen(r) => r.id.as_ref(),
429            Resource::SpecimenDefinition(r) => r.id.as_ref(),
430            Resource::StructureDefinition(r) => r.id.as_ref(),
431            Resource::StructureMap(r) => r.id.as_ref(),
432            Resource::Subscription(r) => r.id.as_ref(),
433            Resource::Substance(r) => r.id.as_ref(),
434            Resource::SubstanceNucleicAcid(r) => r.id.as_ref(),
435            Resource::SubstancePolymer(r) => r.id.as_ref(),
436            Resource::SubstanceProtein(r) => r.id.as_ref(),
437            Resource::SubstanceReferenceInformation(r) => r.id.as_ref(),
438            Resource::SubstanceSourceMaterial(r) => r.id.as_ref(),
439            Resource::SubstanceSpecification(r) => r.id.as_ref(),
440            Resource::SupplyDelivery(r) => r.id.as_ref(),
441            Resource::SupplyRequest(r) => r.id.as_ref(),
442            Resource::Task(r) => r.id.as_ref(),
443            Resource::TerminologyCapabilities(r) => r.id.as_ref(),
444            Resource::TestReport(r) => r.id.as_ref(),
445            Resource::TestScript(r) => r.id.as_ref(),
446            Resource::ValueSet(r) => r.id.as_ref(),
447            Resource::VerificationResult(r) => r.id.as_ref(),
448            Resource::VisionPrescription(r) => r.id.as_ref(),
449            _ => None,
450        }
451    }
452    pub fn meta(&self) -> Option<&crate::r4::types::Meta> {
453        match self {
454            Resource::Account(r) => r.meta.as_deref(),
455            Resource::ActivityDefinition(r) => r.meta.as_deref(),
456            Resource::AdverseEvent(r) => r.meta.as_deref(),
457            Resource::AllergyIntolerance(r) => r.meta.as_deref(),
458            Resource::Appointment(r) => r.meta.as_deref(),
459            Resource::AppointmentResponse(r) => r.meta.as_deref(),
460            Resource::AuditEvent(r) => r.meta.as_deref(),
461            Resource::Basic(r) => r.meta.as_deref(),
462            Resource::Binary(r) => r.meta.as_deref(),
463            Resource::BiologicallyDerivedProduct(r) => r.meta.as_deref(),
464            Resource::BodyStructure(r) => r.meta.as_deref(),
465            Resource::Bundle(r) => r.meta.as_deref(),
466            Resource::CapabilityStatement(r) => r.meta.as_deref(),
467            Resource::CarePlan(r) => r.meta.as_deref(),
468            Resource::CareTeam(r) => r.meta.as_deref(),
469            Resource::CatalogEntry(r) => r.meta.as_deref(),
470            Resource::ChargeItem(r) => r.meta.as_deref(),
471            Resource::ChargeItemDefinition(r) => r.meta.as_deref(),
472            Resource::Claim(r) => r.meta.as_deref(),
473            Resource::ClaimResponse(r) => r.meta.as_deref(),
474            Resource::ClinicalImpression(r) => r.meta.as_deref(),
475            Resource::CodeSystem(r) => r.meta.as_deref(),
476            Resource::Communication(r) => r.meta.as_deref(),
477            Resource::CommunicationRequest(r) => r.meta.as_deref(),
478            Resource::CompartmentDefinition(r) => r.meta.as_deref(),
479            Resource::Composition(r) => r.meta.as_deref(),
480            Resource::ConceptMap(r) => r.meta.as_deref(),
481            Resource::Condition(r) => r.meta.as_deref(),
482            Resource::Consent(r) => r.meta.as_deref(),
483            Resource::Contract(r) => r.meta.as_deref(),
484            Resource::Coverage(r) => r.meta.as_deref(),
485            Resource::CoverageEligibilityRequest(r) => r.meta.as_deref(),
486            Resource::CoverageEligibilityResponse(r) => r.meta.as_deref(),
487            Resource::DetectedIssue(r) => r.meta.as_deref(),
488            Resource::Device(r) => r.meta.as_deref(),
489            Resource::DeviceDefinition(r) => r.meta.as_deref(),
490            Resource::DeviceMetric(r) => r.meta.as_deref(),
491            Resource::DeviceRequest(r) => r.meta.as_deref(),
492            Resource::DeviceUseStatement(r) => r.meta.as_deref(),
493            Resource::DiagnosticReport(r) => r.meta.as_deref(),
494            Resource::DocumentManifest(r) => r.meta.as_deref(),
495            Resource::DocumentReference(r) => r.meta.as_deref(),
496            Resource::EffectEvidenceSynthesis(r) => r.meta.as_deref(),
497            Resource::Encounter(r) => r.meta.as_deref(),
498            Resource::Endpoint(r) => r.meta.as_deref(),
499            Resource::EnrollmentRequest(r) => r.meta.as_deref(),
500            Resource::EnrollmentResponse(r) => r.meta.as_deref(),
501            Resource::EpisodeOfCare(r) => r.meta.as_deref(),
502            Resource::EventDefinition(r) => r.meta.as_deref(),
503            Resource::Evidence(r) => r.meta.as_deref(),
504            Resource::EvidenceVariable(r) => r.meta.as_deref(),
505            Resource::ExampleScenario(r) => r.meta.as_deref(),
506            Resource::ExplanationOfBenefit(r) => r.meta.as_deref(),
507            Resource::FamilyMemberHistory(r) => r.meta.as_deref(),
508            Resource::Flag(r) => r.meta.as_deref(),
509            Resource::Goal(r) => r.meta.as_deref(),
510            Resource::GraphDefinition(r) => r.meta.as_deref(),
511            Resource::Group(r) => r.meta.as_deref(),
512            Resource::GuidanceResponse(r) => r.meta.as_deref(),
513            Resource::HealthcareService(r) => r.meta.as_deref(),
514            Resource::ImagingStudy(r) => r.meta.as_deref(),
515            Resource::Immunization(r) => r.meta.as_deref(),
516            Resource::ImmunizationEvaluation(r) => r.meta.as_deref(),
517            Resource::ImmunizationRecommendation(r) => r.meta.as_deref(),
518            Resource::ImplementationGuide(r) => r.meta.as_deref(),
519            Resource::InsurancePlan(r) => r.meta.as_deref(),
520            Resource::Invoice(r) => r.meta.as_deref(),
521            Resource::Library(r) => r.meta.as_deref(),
522            Resource::Linkage(r) => r.meta.as_deref(),
523            Resource::List(r) => r.meta.as_deref(),
524            Resource::Location(r) => r.meta.as_deref(),
525            Resource::Measure(r) => r.meta.as_deref(),
526            Resource::MeasureReport(r) => r.meta.as_deref(),
527            Resource::Media(r) => r.meta.as_deref(),
528            Resource::Medication(r) => r.meta.as_deref(),
529            Resource::MedicationAdministration(r) => r.meta.as_deref(),
530            Resource::MedicationDispense(r) => r.meta.as_deref(),
531            Resource::MedicationKnowledge(r) => r.meta.as_deref(),
532            Resource::MedicationRequest(r) => r.meta.as_deref(),
533            Resource::MedicationStatement(r) => r.meta.as_deref(),
534            Resource::MedicinalProduct(r) => r.meta.as_deref(),
535            Resource::MedicinalProductAuthorization(r) => r.meta.as_deref(),
536            Resource::MedicinalProductContraindication(r) => r.meta.as_deref(),
537            Resource::MedicinalProductIndication(r) => r.meta.as_deref(),
538            Resource::MedicinalProductIngredient(r) => r.meta.as_deref(),
539            Resource::MedicinalProductInteraction(r) => r.meta.as_deref(),
540            Resource::MedicinalProductManufactured(r) => r.meta.as_deref(),
541            Resource::MedicinalProductPackaged(r) => r.meta.as_deref(),
542            Resource::MedicinalProductPharmaceutical(r) => r.meta.as_deref(),
543            Resource::MedicinalProductUndesirableEffect(r) => r.meta.as_deref(),
544            Resource::MessageDefinition(r) => r.meta.as_deref(),
545            Resource::MessageHeader(r) => r.meta.as_deref(),
546            Resource::MolecularSequence(r) => r.meta.as_deref(),
547            Resource::NamingSystem(r) => r.meta.as_deref(),
548            Resource::NutritionOrder(r) => r.meta.as_deref(),
549            Resource::Observation(r) => r.meta.as_deref(),
550            Resource::ObservationDefinition(r) => r.meta.as_deref(),
551            Resource::OperationDefinition(r) => r.meta.as_deref(),
552            Resource::OperationOutcome(r) => r.meta.as_deref(),
553            Resource::Organization(r) => r.meta.as_deref(),
554            Resource::OrganizationAffiliation(r) => r.meta.as_deref(),
555            Resource::Parameters(r) => r.meta.as_deref(),
556            Resource::Patient(r) => r.meta.as_deref(),
557            Resource::PaymentNotice(r) => r.meta.as_deref(),
558            Resource::PaymentReconciliation(r) => r.meta.as_deref(),
559            Resource::Person(r) => r.meta.as_deref(),
560            Resource::PlanDefinition(r) => r.meta.as_deref(),
561            Resource::Practitioner(r) => r.meta.as_deref(),
562            Resource::PractitionerRole(r) => r.meta.as_deref(),
563            Resource::Procedure(r) => r.meta.as_deref(),
564            Resource::Provenance(r) => r.meta.as_deref(),
565            Resource::Questionnaire(r) => r.meta.as_deref(),
566            Resource::QuestionnaireResponse(r) => r.meta.as_deref(),
567            Resource::RelatedPerson(r) => r.meta.as_deref(),
568            Resource::RequestGroup(r) => r.meta.as_deref(),
569            Resource::ResearchDefinition(r) => r.meta.as_deref(),
570            Resource::ResearchElementDefinition(r) => r.meta.as_deref(),
571            Resource::ResearchStudy(r) => r.meta.as_deref(),
572            Resource::ResearchSubject(r) => r.meta.as_deref(),
573            Resource::RiskAssessment(r) => r.meta.as_deref(),
574            Resource::RiskEvidenceSynthesis(r) => r.meta.as_deref(),
575            Resource::Schedule(r) => r.meta.as_deref(),
576            Resource::SearchParameter(r) => r.meta.as_deref(),
577            Resource::ServiceRequest(r) => r.meta.as_deref(),
578            Resource::Slot(r) => r.meta.as_deref(),
579            Resource::Specimen(r) => r.meta.as_deref(),
580            Resource::SpecimenDefinition(r) => r.meta.as_deref(),
581            Resource::StructureDefinition(r) => r.meta.as_deref(),
582            Resource::StructureMap(r) => r.meta.as_deref(),
583            Resource::Subscription(r) => r.meta.as_deref(),
584            Resource::Substance(r) => r.meta.as_deref(),
585            Resource::SubstanceNucleicAcid(r) => r.meta.as_deref(),
586            Resource::SubstancePolymer(r) => r.meta.as_deref(),
587            Resource::SubstanceProtein(r) => r.meta.as_deref(),
588            Resource::SubstanceReferenceInformation(r) => r.meta.as_deref(),
589            Resource::SubstanceSourceMaterial(r) => r.meta.as_deref(),
590            Resource::SubstanceSpecification(r) => r.meta.as_deref(),
591            Resource::SupplyDelivery(r) => r.meta.as_deref(),
592            Resource::SupplyRequest(r) => r.meta.as_deref(),
593            Resource::Task(r) => r.meta.as_deref(),
594            Resource::TerminologyCapabilities(r) => r.meta.as_deref(),
595            Resource::TestReport(r) => r.meta.as_deref(),
596            Resource::TestScript(r) => r.meta.as_deref(),
597            Resource::ValueSet(r) => r.meta.as_deref(),
598            Resource::VerificationResult(r) => r.meta.as_deref(),
599            Resource::VisionPrescription(r) => r.meta.as_deref(),
600            _ => None,
601        }
602    }
603}