001package org.hl7.fhir.r5.model;
002
003/*-
004 * #%L
005 * org.hl7.fhir.r5
006 * %%
007 * Copyright (C) 2014 - 2019 Health Level 7
008 * %%
009 * Licensed under the Apache License, Version 2.0 (the "License");
010 * you may not use this file except in compliance with the License.
011 * You may obtain a copy of the License at
012 * 
013 *      http://www.apache.org/licenses/LICENSE-2.0
014 * 
015 * Unless required by applicable law or agreed to in writing, software
016 * distributed under the License is distributed on an "AS IS" BASIS,
017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
018 * See the License for the specific language governing permissions and
019 * limitations under the License.
020 * #L%
021 */
022
023/*
024  Copyright (c) 2011+, HL7, Inc.
025  All rights reserved.
026  
027  Redistribution and use in source and binary forms, with or without modification, 
028  are permitted provided that the following conditions are met:
029  
030   * Redistributions of source code must retain the above copyright notice, this 
031     list of conditions and the following disclaimer.
032   * Redistributions in binary form must reproduce the above copyright notice, 
033     this list of conditions and the following disclaimer in the documentation 
034     and/or other materials provided with the distribution.
035   * Neither the name of HL7 nor the names of its contributors may be used to 
036     endorse or promote products derived from this software without specific 
037     prior written permission.
038  
039  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
040  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
041  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
042  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
043  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
044  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
045  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
046  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
047  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
048  POSSIBILITY OF SUCH DAMAGE.
049  
050*/
051
052// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
053import java.util.ArrayList;
054import java.util.Date;
055import java.util.List;
056import org.hl7.fhir.exceptions.FHIRException;
057import org.hl7.fhir.instance.model.api.ICompositeType;
058
059import org.hl7.fhir.instance.model.api.IBaseDatatypeElement;
060import org.hl7.fhir.utilities.Utilities;
061import org.hl7.fhir.r5.model.Enumerations.*;
062import ca.uhn.fhir.model.api.annotation.ResourceDef;
063import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
064import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
065import ca.uhn.fhir.model.api.annotation.Child;
066import ca.uhn.fhir.model.api.annotation.ChildOrder;
067import ca.uhn.fhir.model.api.annotation.Description;
068import ca.uhn.fhir.model.api.annotation.Block;
069/**
070 * Describes a stream of resource state changes identified by trigger criteria and annotated with labels useful to filter projections from this topic.
071 */
072@ResourceDef(name="Topic", profile="http://hl7.org/fhir/StructureDefinition/Topic")
073public class Topic extends DomainResource {
074
075    public enum FHIRType {
076        /**
077         * 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.
078         */
079        ACCOUNT, 
080        /**
081         * This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context.
082         */
083        ACTIVITYDEFINITION, 
084        /**
085         * A pharmaceutical product described in terms of its composition and dose form.
086         */
087        ADMINISTRABLEPRODUCTDEFINITION, 
088        /**
089         * An event (i.e. any change to current patient status) that may be related to unintended effects on a patient or research subject.  The unintended effects may require additional monitoring, treatment or hospitalization or may result in death.  The AdverseEvent resource also extends to potential or avoided events that could have had such effects.
090         */
091        ADVERSEEVENT, 
092        /**
093         * Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance.
094         */
095        ALLERGYINTOLERANCE, 
096        /**
097         * 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).
098         */
099        APPOINTMENT, 
100        /**
101         * A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection.
102         */
103        APPOINTMENTRESPONSE, 
104        /**
105         * A record of an event relevant for purposes such as operations, privacy, security, maintenance, and performance analysis.
106         */
107        AUDITEVENT, 
108        /**
109         * 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.
110         */
111        BASIC, 
112        /**
113         * 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.
114         */
115        BINARY, 
116        /**
117         * A material substance originating from a biological entity intended to be transplanted or infused
118into another (possibly the same) biological entity.
119         */
120        BIOLOGICALLYDERIVEDPRODUCT, 
121        /**
122         * 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.
123         */
124        BODYSTRUCTURE, 
125        /**
126         * A container for a collection of resources.
127         */
128        BUNDLE, 
129        /**
130         * 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.
131         */
132        CAPABILITYSTATEMENT, 
133        /**
134         * 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.
135         */
136        CAPABILITYSTATEMENT2, 
137        /**
138         * 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.
139         */
140        CAREPLAN, 
141        /**
142         * The Care Team includes all the people and organizations who plan to participate in the coordination and delivery of care.
143         */
144        CARETEAM, 
145        /**
146         * Catalog entries are wrappers that contextualize items included in a catalog.
147         */
148        CATALOGENTRY, 
149        /**
150         * 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.
151         */
152        CHARGEITEM, 
153        /**
154         * 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.
155         */
156        CHARGEITEMDEFINITION, 
157        /**
158         * 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.
159         */
160        CLAIM, 
161        /**
162         * This resource provides the adjudication details from the processing of a Claim resource.
163         */
164        CLAIMRESPONSE, 
165        /**
166         * 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.
167         */
168        CLINICALIMPRESSION, 
169        /**
170         * A single item of clinical particulars - an indication, contraindication, interaction etc. for a medicinal product.
171         */
172        CLINICALUSEISSUE, 
173        /**
174         * 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.
175         */
176        CODESYSTEM, 
177        /**
178         * An occurrence of information being transmitted; e.g. an alert that was sent to a responsible provider, a public health agency communication to a provider/reporter in response to a case report for a reportable condition.
179         */
180        COMMUNICATION, 
181        /**
182         * 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.
183         */
184        COMMUNICATIONREQUEST, 
185        /**
186         * A compartment definition that defines how resources are accessed on a server.
187         */
188        COMPARTMENTDEFINITION, 
189        /**
190         * 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.).
191         */
192        COMPOSITION, 
193        /**
194         * 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.
195         */
196        CONCEPTMAP, 
197        /**
198         * A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern.
199         */
200        CONDITION, 
201        /**
202         * A definition of a condition and information relevant to managing it.
203         */
204        CONDITIONDEFINITION, 
205        /**
206         * A record of a healthcare consumer’s  choices  or choices made on their behalf by a third party, 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.
207         */
208        CONSENT, 
209        /**
210         * Legally enforceable, formally recorded unilateral or bilateral directive i.e., a policy or agreement.
211         */
212        CONTRACT, 
213        /**
214         * Financial instrument which may be used to reimburse or pay for health care products and services. Includes both insurance and self-payment.
215         */
216        COVERAGE, 
217        /**
218         * 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.
219         */
220        COVERAGEELIGIBILITYREQUEST, 
221        /**
222         * This resource provides eligibility and plan details from the processing of an CoverageEligibilityRequest resource.
223         */
224        COVERAGEELIGIBILITYRESPONSE, 
225        /**
226         * 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.
227         */
228        DETECTEDISSUE, 
229        /**
230         * 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.
231         */
232        DEVICE, 
233        /**
234         * The characteristics, operational status and capabilities of a medical-related component of a medical device.
235         */
236        DEVICEDEFINITION, 
237        /**
238         * Describes a measurement, calculation or setting capability of a medical device.
239         */
240        DEVICEMETRIC, 
241        /**
242         * 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.
243         */
244        DEVICEREQUEST, 
245        /**
246         * 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.
247         */
248        DEVICEUSESTATEMENT, 
249        /**
250         * 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.
251         */
252        DIAGNOSTICREPORT, 
253        /**
254         * A collection of documents compiled for a purpose together with metadata that applies to the collection.
255         */
256        DOCUMENTMANIFEST, 
257        /**
258         * A reference to a document of any kind for any purpose. While the term “document” implies a more narrow focus, for this resource this "document" encompasses *any* seralized object with a mime-type, so includes formal patient centric documents (CDA), clniical notes, scanned paper, non-patient specific documents like policy text, as well as a photo, video, or audio recording acquired or used in healthcare.  The DocumentReference resource provides metadata about the document so that the document can be discovered and managed.  The actual content may be inline base64 encoded data or provided by direct reference.
259         */
260        DOCUMENTREFERENCE, 
261        /**
262         * A resource that includes narrative, extensions, and contained resources.
263         */
264        DOMAINRESOURCE, 
265        /**
266         * 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.
267         */
268        ENCOUNTER, 
269        /**
270         * 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.
271         */
272        ENDPOINT, 
273        /**
274         * This resource provides the insurance enrollment details to the insurer regarding a specified coverage.
275         */
276        ENROLLMENTREQUEST, 
277        /**
278         * This resource provides enrollment and plan details from the processing of an EnrollmentRequest resource.
279         */
280        ENROLLMENTRESPONSE, 
281        /**
282         * 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.
283         */
284        EPISODEOFCARE, 
285        /**
286         * The EventDefinition resource provides a reusable description of when a particular event can occur.
287         */
288        EVENTDEFINITION, 
289        /**
290         * This represents statistics, certainty, both the intended and actual population, and evidence variables.
291         */
292        EVIDENCE, 
293        /**
294         * The EvidenceVariable resource describes a "PICO" element that knowledge (evidence, assertion, recommendation) is about.
295         */
296        EVIDENCEVARIABLE, 
297        /**
298         * Example of workflow instance.
299         */
300        EXAMPLESCENARIO, 
301        /**
302         * 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.
303         */
304        EXPLANATIONOFBENEFIT, 
305        /**
306         * Significant health conditions for a person related to the patient relevant in the context of care for the patient.
307         */
308        FAMILYMEMBERHISTORY, 
309        /**
310         * Prospective warnings of potential issues when providing care to the patient.
311         */
312        FLAG, 
313        /**
314         * 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.
315         */
316        GOAL, 
317        /**
318         * 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.
319         */
320        GRAPHDEFINITION, 
321        /**
322         * 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.
323         */
324        GROUP, 
325        /**
326         * 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.
327         */
328        GUIDANCERESPONSE, 
329        /**
330         * The details of a healthcare service available at a location.
331         */
332        HEALTHCARESERVICE, 
333        /**
334         * 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.
335         */
336        IMAGINGSTUDY, 
337        /**
338         * 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.
339         */
340        IMMUNIZATION, 
341        /**
342         * Describes a comparison of an immunization event against published recommendations to determine if the administration is "valid" in relation to those  recommendations.
343         */
344        IMMUNIZATIONEVALUATION, 
345        /**
346         * A patient's point-in-time set of recommendations (i.e. forecasting) according to a published schedule with optional supporting justification.
347         */
348        IMMUNIZATIONRECOMMENDATION, 
349        /**
350         * 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.
351         */
352        IMPLEMENTATIONGUIDE, 
353        /**
354         * An ingredient of a manufactured item or pharmaceutical product.
355         */
356        INGREDIENT, 
357        /**
358         * Details of a Health Insurance product/plan provided by an organization.
359         */
360        INSURANCEPLAN, 
361        /**
362         * Invoice containing collected ChargeItems from an Account with calculated individual and total price for Billing purpose.
363         */
364        INVOICE, 
365        /**
366         * 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.
367         */
368        LIBRARY, 
369        /**
370         * Identifies two or more records (resource instances) that refer to the same real-world "occurrence".
371         */
372        LINKAGE, 
373        /**
374         * A list is a curated collection of resources.
375         */
376        LIST, 
377        /**
378         * Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained, or accommodated.
379         */
380        LOCATION, 
381        /**
382         * The manufactured item as contained in the packaged medicinal product.
383         */
384        MANUFACTUREDITEMDEFINITION, 
385        /**
386         * The Measure resource provides the definition of a quality measure.
387         */
388        MEASURE, 
389        /**
390         * The MeasureReport resource contains the results of the calculation of a measure; and optionally a reference to the resources involved in that calculation.
391         */
392        MEASUREREPORT, 
393        /**
394         * 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.
395         */
396        MEDICATION, 
397        /**
398         * 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.
399         */
400        MEDICATIONADMINISTRATION, 
401        /**
402         * 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.
403         */
404        MEDICATIONDISPENSE, 
405        /**
406         * Information about a medication that is used to support knowledge.
407         */
408        MEDICATIONKNOWLEDGE, 
409        /**
410         * 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.
411         */
412        MEDICATIONREQUEST, 
413        /**
414         * A record of a medication that is being consumed by a patient.   A MedicationUsage 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. 
415
416The primary difference between a medicationusage and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication.  A medicationusage 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 Usage 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.
417         */
418        MEDICATIONUSAGE, 
419        /**
420         * Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use).
421         */
422        MEDICINALPRODUCTDEFINITION, 
423        /**
424         * 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.
425         */
426        MESSAGEDEFINITION, 
427        /**
428         * 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.
429         */
430        MESSAGEHEADER, 
431        /**
432         * Raw data describing a biological sequence.
433         */
434        MOLECULARSEQUENCE, 
435        /**
436         * 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.
437         */
438        NAMINGSYSTEM, 
439        /**
440         * A record of food or fluid that is being consumed by a patient.   A NutritionIntake may indicate that the patient may be consuming the food or fluid now or has consumed the food or fluid in the past.  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 or through an app that tracks food or fluids consumed.   The consumption information may come from sources such as the patient's memory, from a nutrition label,  or from a clinician documenting observed intake.
441         */
442        NUTRITIONINTAKE, 
443        /**
444         * A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident.
445         */
446        NUTRITIONORDER, 
447        /**
448         * Measurements and simple assertions made about a patient, device or other subject.
449         */
450        OBSERVATION, 
451        /**
452         * Set of definitional characteristics for a kind of observation or measurement produced or consumed by an orderable health care service.
453         */
454        OBSERVATIONDEFINITION, 
455        /**
456         * A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction).
457         */
458        OPERATIONDEFINITION, 
459        /**
460         * A collection of error, warning, or information messages that result from a system action.
461         */
462        OPERATIONOUTCOME, 
463        /**
464         * 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.
465         */
466        ORGANIZATION, 
467        /**
468         * Defines an affiliation/assotiation/relationship between 2 distinct oganizations, that is not a part-of relationship/sub-division relationship.
469         */
470        ORGANIZATIONAFFILIATION, 
471        /**
472         * A medicinal product in a container or package.
473         */
474        PACKAGEDPRODUCTDEFINITION, 
475        /**
476         * This resource is a non-persisted resource used to pass information into and back from an [operation](operations.html). It has no other use, and there is no RESTful endpoint associated with it.
477         */
478        PARAMETERS, 
479        /**
480         * Demographics and other administrative information about an individual or animal receiving care or other health-related services.
481         */
482        PATIENT, 
483        /**
484         * This resource provides the status of the payment for goods and services rendered, and the request and response resource references.
485         */
486        PAYMENTNOTICE, 
487        /**
488         * This resource provides the details including amount of a payment and allocates the payment items being paid.
489         */
490        PAYMENTRECONCILIATION, 
491        /**
492         * Demographics and administrative information about a person independent of a specific health-related context.
493         */
494        PERSON, 
495        /**
496         * 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.
497         */
498        PLANDEFINITION, 
499        /**
500         * A person who is directly or indirectly involved in the provisioning of healthcare.
501         */
502        PRACTITIONER, 
503        /**
504         * A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time.
505         */
506        PRACTITIONERROLE, 
507        /**
508         * 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.
509         */
510        PROCEDURE, 
511        /**
512         * 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.
513         */
514        PROVENANCE, 
515        /**
516         * 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.
517         */
518        QUESTIONNAIRE, 
519        /**
520         * 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.
521         */
522        QUESTIONNAIRERESPONSE, 
523        /**
524         * The regulatory authorization of a medicinal product.
525         */
526        REGULATEDAUTHORIZATION, 
527        /**
528         * 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.
529         */
530        RELATEDPERSON, 
531        /**
532         * 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".
533         */
534        REQUESTGROUP, 
535        /**
536         * 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.
537         */
538        RESEARCHSTUDY, 
539        /**
540         * A physical entity which is the primary unit of operational and/or administrative interest in a study.
541         */
542        RESEARCHSUBJECT, 
543        /**
544         * This is the base resource type for everything.
545         */
546        RESOURCE, 
547        /**
548         * An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome.
549         */
550        RISKASSESSMENT, 
551        /**
552         * A container for slots of time that may be available for booking appointments.
553         */
554        SCHEDULE, 
555        /**
556         * A search parameter that defines a named search item that can be used to search/filter on a resource.
557         */
558        SEARCHPARAMETER, 
559        /**
560         * A record of a request for service such as diagnostic investigations, treatments, or operations to be performed.
561         */
562        SERVICEREQUEST, 
563        /**
564         * A slot of time on a schedule that may be available for booking appointments.
565         */
566        SLOT, 
567        /**
568         * A sample to be used for analysis.
569         */
570        SPECIMEN, 
571        /**
572         * A kind of specimen with associated set of requirements.
573         */
574        SPECIMENDEFINITION, 
575        /**
576         * 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.
577         */
578        STRUCTUREDEFINITION, 
579        /**
580         * A Map of relationships between 2 structures that can be used to transform data.
581         */
582        STRUCTUREMAP, 
583        /**
584         * The subscription resource describes a particular client's request to be notified about a Topic.
585         */
586        SUBSCRIPTION, 
587        /**
588         * A homogeneous material with a definite composition.
589         */
590        SUBSTANCE, 
591        /**
592         * The detailed description of a substance, typically at a level beyond what is used for prescribing.
593         */
594        SUBSTANCEDEFINITION, 
595        /**
596         * 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.
597         */
598        SUBSTANCENUCLEICACID, 
599        /**
600         * Todo.
601         */
602        SUBSTANCEPOLYMER, 
603        /**
604         * 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.
605         */
606        SUBSTANCEPROTEIN, 
607        /**
608         * Todo.
609         */
610        SUBSTANCEREFERENCEINFORMATION, 
611        /**
612         * 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.
613         */
614        SUBSTANCESOURCEMATERIAL, 
615        /**
616         * Record of delivery of what is supplied.
617         */
618        SUPPLYDELIVERY, 
619        /**
620         * A record of a request for a medication, substance or device used in the healthcare setting.
621         */
622        SUPPLYREQUEST, 
623        /**
624         * A task to be performed.
625         */
626        TASK, 
627        /**
628         * 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.
629         */
630        TERMINOLOGYCAPABILITIES, 
631        /**
632         * A summary of information based on the results of executing a TestScript.
633         */
634        TESTREPORT, 
635        /**
636         * A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification.
637         */
638        TESTSCRIPT, 
639        /**
640         * Describes a stream of resource state changes identified by trigger criteria and annotated with labels useful to filter projections from this topic.
641         */
642        TOPIC, 
643        /**
644         * 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](terminologies.html).
645         */
646        VALUESET, 
647        /**
648         * Describes validation requirements, source(s), status and dates for one or more elements.
649         */
650        VERIFICATIONRESULT, 
651        /**
652         * An authorization for the provision of glasses and/or contact lenses to a patient.
653         */
654        VISIONPRESCRIPTION, 
655        /**
656         * added to help the parsers with the generic types
657         */
658        NULL;
659        public static FHIRType fromCode(String codeString) throws FHIRException {
660            if (codeString == null || "".equals(codeString))
661                return null;
662        if ("Account".equals(codeString))
663          return ACCOUNT;
664        if ("ActivityDefinition".equals(codeString))
665          return ACTIVITYDEFINITION;
666        if ("AdministrableProductDefinition".equals(codeString))
667          return ADMINISTRABLEPRODUCTDEFINITION;
668        if ("AdverseEvent".equals(codeString))
669          return ADVERSEEVENT;
670        if ("AllergyIntolerance".equals(codeString))
671          return ALLERGYINTOLERANCE;
672        if ("Appointment".equals(codeString))
673          return APPOINTMENT;
674        if ("AppointmentResponse".equals(codeString))
675          return APPOINTMENTRESPONSE;
676        if ("AuditEvent".equals(codeString))
677          return AUDITEVENT;
678        if ("Basic".equals(codeString))
679          return BASIC;
680        if ("Binary".equals(codeString))
681          return BINARY;
682        if ("BiologicallyDerivedProduct".equals(codeString))
683          return BIOLOGICALLYDERIVEDPRODUCT;
684        if ("BodyStructure".equals(codeString))
685          return BODYSTRUCTURE;
686        if ("Bundle".equals(codeString))
687          return BUNDLE;
688        if ("CapabilityStatement".equals(codeString))
689          return CAPABILITYSTATEMENT;
690        if ("CapabilityStatement2".equals(codeString))
691          return CAPABILITYSTATEMENT2;
692        if ("CarePlan".equals(codeString))
693          return CAREPLAN;
694        if ("CareTeam".equals(codeString))
695          return CARETEAM;
696        if ("CatalogEntry".equals(codeString))
697          return CATALOGENTRY;
698        if ("ChargeItem".equals(codeString))
699          return CHARGEITEM;
700        if ("ChargeItemDefinition".equals(codeString))
701          return CHARGEITEMDEFINITION;
702        if ("Claim".equals(codeString))
703          return CLAIM;
704        if ("ClaimResponse".equals(codeString))
705          return CLAIMRESPONSE;
706        if ("ClinicalImpression".equals(codeString))
707          return CLINICALIMPRESSION;
708        if ("ClinicalUseIssue".equals(codeString))
709          return CLINICALUSEISSUE;
710        if ("CodeSystem".equals(codeString))
711          return CODESYSTEM;
712        if ("Communication".equals(codeString))
713          return COMMUNICATION;
714        if ("CommunicationRequest".equals(codeString))
715          return COMMUNICATIONREQUEST;
716        if ("CompartmentDefinition".equals(codeString))
717          return COMPARTMENTDEFINITION;
718        if ("Composition".equals(codeString))
719          return COMPOSITION;
720        if ("ConceptMap".equals(codeString))
721          return CONCEPTMAP;
722        if ("Condition".equals(codeString))
723          return CONDITION;
724        if ("ConditionDefinition".equals(codeString))
725          return CONDITIONDEFINITION;
726        if ("Consent".equals(codeString))
727          return CONSENT;
728        if ("Contract".equals(codeString))
729          return CONTRACT;
730        if ("Coverage".equals(codeString))
731          return COVERAGE;
732        if ("CoverageEligibilityRequest".equals(codeString))
733          return COVERAGEELIGIBILITYREQUEST;
734        if ("CoverageEligibilityResponse".equals(codeString))
735          return COVERAGEELIGIBILITYRESPONSE;
736        if ("DetectedIssue".equals(codeString))
737          return DETECTEDISSUE;
738        if ("Device".equals(codeString))
739          return DEVICE;
740        if ("DeviceDefinition".equals(codeString))
741          return DEVICEDEFINITION;
742        if ("DeviceMetric".equals(codeString))
743          return DEVICEMETRIC;
744        if ("DeviceRequest".equals(codeString))
745          return DEVICEREQUEST;
746        if ("DeviceUseStatement".equals(codeString))
747          return DEVICEUSESTATEMENT;
748        if ("DiagnosticReport".equals(codeString))
749          return DIAGNOSTICREPORT;
750        if ("DocumentManifest".equals(codeString))
751          return DOCUMENTMANIFEST;
752        if ("DocumentReference".equals(codeString))
753          return DOCUMENTREFERENCE;
754        if ("DomainResource".equals(codeString))
755          return DOMAINRESOURCE;
756        if ("Encounter".equals(codeString))
757          return ENCOUNTER;
758        if ("Endpoint".equals(codeString))
759          return ENDPOINT;
760        if ("EnrollmentRequest".equals(codeString))
761          return ENROLLMENTREQUEST;
762        if ("EnrollmentResponse".equals(codeString))
763          return ENROLLMENTRESPONSE;
764        if ("EpisodeOfCare".equals(codeString))
765          return EPISODEOFCARE;
766        if ("EventDefinition".equals(codeString))
767          return EVENTDEFINITION;
768        if ("Evidence".equals(codeString))
769          return EVIDENCE;
770        if ("EvidenceVariable".equals(codeString))
771          return EVIDENCEVARIABLE;
772        if ("ExampleScenario".equals(codeString))
773          return EXAMPLESCENARIO;
774        if ("ExplanationOfBenefit".equals(codeString))
775          return EXPLANATIONOFBENEFIT;
776        if ("FamilyMemberHistory".equals(codeString))
777          return FAMILYMEMBERHISTORY;
778        if ("Flag".equals(codeString))
779          return FLAG;
780        if ("Goal".equals(codeString))
781          return GOAL;
782        if ("GraphDefinition".equals(codeString))
783          return GRAPHDEFINITION;
784        if ("Group".equals(codeString))
785          return GROUP;
786        if ("GuidanceResponse".equals(codeString))
787          return GUIDANCERESPONSE;
788        if ("HealthcareService".equals(codeString))
789          return HEALTHCARESERVICE;
790        if ("ImagingStudy".equals(codeString))
791          return IMAGINGSTUDY;
792        if ("Immunization".equals(codeString))
793          return IMMUNIZATION;
794        if ("ImmunizationEvaluation".equals(codeString))
795          return IMMUNIZATIONEVALUATION;
796        if ("ImmunizationRecommendation".equals(codeString))
797          return IMMUNIZATIONRECOMMENDATION;
798        if ("ImplementationGuide".equals(codeString))
799          return IMPLEMENTATIONGUIDE;
800        if ("Ingredient".equals(codeString))
801          return INGREDIENT;
802        if ("InsurancePlan".equals(codeString))
803          return INSURANCEPLAN;
804        if ("Invoice".equals(codeString))
805          return INVOICE;
806        if ("Library".equals(codeString))
807          return LIBRARY;
808        if ("Linkage".equals(codeString))
809          return LINKAGE;
810        if ("List".equals(codeString))
811          return LIST;
812        if ("Location".equals(codeString))
813          return LOCATION;
814        if ("ManufacturedItemDefinition".equals(codeString))
815          return MANUFACTUREDITEMDEFINITION;
816        if ("Measure".equals(codeString))
817          return MEASURE;
818        if ("MeasureReport".equals(codeString))
819          return MEASUREREPORT;
820        if ("Medication".equals(codeString))
821          return MEDICATION;
822        if ("MedicationAdministration".equals(codeString))
823          return MEDICATIONADMINISTRATION;
824        if ("MedicationDispense".equals(codeString))
825          return MEDICATIONDISPENSE;
826        if ("MedicationKnowledge".equals(codeString))
827          return MEDICATIONKNOWLEDGE;
828        if ("MedicationRequest".equals(codeString))
829          return MEDICATIONREQUEST;
830        if ("MedicationUsage".equals(codeString))
831          return MEDICATIONUSAGE;
832        if ("MedicinalProductDefinition".equals(codeString))
833          return MEDICINALPRODUCTDEFINITION;
834        if ("MessageDefinition".equals(codeString))
835          return MESSAGEDEFINITION;
836        if ("MessageHeader".equals(codeString))
837          return MESSAGEHEADER;
838        if ("MolecularSequence".equals(codeString))
839          return MOLECULARSEQUENCE;
840        if ("NamingSystem".equals(codeString))
841          return NAMINGSYSTEM;
842        if ("NutritionIntake".equals(codeString))
843          return NUTRITIONINTAKE;
844        if ("NutritionOrder".equals(codeString))
845          return NUTRITIONORDER;
846        if ("Observation".equals(codeString))
847          return OBSERVATION;
848        if ("ObservationDefinition".equals(codeString))
849          return OBSERVATIONDEFINITION;
850        if ("OperationDefinition".equals(codeString))
851          return OPERATIONDEFINITION;
852        if ("OperationOutcome".equals(codeString))
853          return OPERATIONOUTCOME;
854        if ("Organization".equals(codeString))
855          return ORGANIZATION;
856        if ("OrganizationAffiliation".equals(codeString))
857          return ORGANIZATIONAFFILIATION;
858        if ("PackagedProductDefinition".equals(codeString))
859          return PACKAGEDPRODUCTDEFINITION;
860        if ("Parameters".equals(codeString))
861          return PARAMETERS;
862        if ("Patient".equals(codeString))
863          return PATIENT;
864        if ("PaymentNotice".equals(codeString))
865          return PAYMENTNOTICE;
866        if ("PaymentReconciliation".equals(codeString))
867          return PAYMENTRECONCILIATION;
868        if ("Person".equals(codeString))
869          return PERSON;
870        if ("PlanDefinition".equals(codeString))
871          return PLANDEFINITION;
872        if ("Practitioner".equals(codeString))
873          return PRACTITIONER;
874        if ("PractitionerRole".equals(codeString))
875          return PRACTITIONERROLE;
876        if ("Procedure".equals(codeString))
877          return PROCEDURE;
878        if ("Provenance".equals(codeString))
879          return PROVENANCE;
880        if ("Questionnaire".equals(codeString))
881          return QUESTIONNAIRE;
882        if ("QuestionnaireResponse".equals(codeString))
883          return QUESTIONNAIRERESPONSE;
884        if ("RegulatedAuthorization".equals(codeString))
885          return REGULATEDAUTHORIZATION;
886        if ("RelatedPerson".equals(codeString))
887          return RELATEDPERSON;
888        if ("RequestGroup".equals(codeString))
889          return REQUESTGROUP;
890        if ("ResearchStudy".equals(codeString))
891          return RESEARCHSTUDY;
892        if ("ResearchSubject".equals(codeString))
893          return RESEARCHSUBJECT;
894        if ("Resource".equals(codeString))
895          return RESOURCE;
896        if ("RiskAssessment".equals(codeString))
897          return RISKASSESSMENT;
898        if ("Schedule".equals(codeString))
899          return SCHEDULE;
900        if ("SearchParameter".equals(codeString))
901          return SEARCHPARAMETER;
902        if ("ServiceRequest".equals(codeString))
903          return SERVICEREQUEST;
904        if ("Slot".equals(codeString))
905          return SLOT;
906        if ("Specimen".equals(codeString))
907          return SPECIMEN;
908        if ("SpecimenDefinition".equals(codeString))
909          return SPECIMENDEFINITION;
910        if ("StructureDefinition".equals(codeString))
911          return STRUCTUREDEFINITION;
912        if ("StructureMap".equals(codeString))
913          return STRUCTUREMAP;
914        if ("Subscription".equals(codeString))
915          return SUBSCRIPTION;
916        if ("Substance".equals(codeString))
917          return SUBSTANCE;
918        if ("SubstanceDefinition".equals(codeString))
919          return SUBSTANCEDEFINITION;
920        if ("SubstanceNucleicAcid".equals(codeString))
921          return SUBSTANCENUCLEICACID;
922        if ("SubstancePolymer".equals(codeString))
923          return SUBSTANCEPOLYMER;
924        if ("SubstanceProtein".equals(codeString))
925          return SUBSTANCEPROTEIN;
926        if ("SubstanceReferenceInformation".equals(codeString))
927          return SUBSTANCEREFERENCEINFORMATION;
928        if ("SubstanceSourceMaterial".equals(codeString))
929          return SUBSTANCESOURCEMATERIAL;
930        if ("SupplyDelivery".equals(codeString))
931          return SUPPLYDELIVERY;
932        if ("SupplyRequest".equals(codeString))
933          return SUPPLYREQUEST;
934        if ("Task".equals(codeString))
935          return TASK;
936        if ("TerminologyCapabilities".equals(codeString))
937          return TERMINOLOGYCAPABILITIES;
938        if ("TestReport".equals(codeString))
939          return TESTREPORT;
940        if ("TestScript".equals(codeString))
941          return TESTSCRIPT;
942        if ("Topic".equals(codeString))
943          return TOPIC;
944        if ("ValueSet".equals(codeString))
945          return VALUESET;
946        if ("VerificationResult".equals(codeString))
947          return VERIFICATIONRESULT;
948        if ("VisionPrescription".equals(codeString))
949          return VISIONPRESCRIPTION;
950        if (Configuration.isAcceptInvalidEnums())
951          return null;
952        else
953          throw new FHIRException("Unknown FHIRType code '"+codeString+"'");
954        }
955        public String toCode() {
956          switch (this) {
957            case ACCOUNT: return "Account";
958            case ACTIVITYDEFINITION: return "ActivityDefinition";
959            case ADMINISTRABLEPRODUCTDEFINITION: return "AdministrableProductDefinition";
960            case ADVERSEEVENT: return "AdverseEvent";
961            case ALLERGYINTOLERANCE: return "AllergyIntolerance";
962            case APPOINTMENT: return "Appointment";
963            case APPOINTMENTRESPONSE: return "AppointmentResponse";
964            case AUDITEVENT: return "AuditEvent";
965            case BASIC: return "Basic";
966            case BINARY: return "Binary";
967            case BIOLOGICALLYDERIVEDPRODUCT: return "BiologicallyDerivedProduct";
968            case BODYSTRUCTURE: return "BodyStructure";
969            case BUNDLE: return "Bundle";
970            case CAPABILITYSTATEMENT: return "CapabilityStatement";
971            case CAPABILITYSTATEMENT2: return "CapabilityStatement2";
972            case CAREPLAN: return "CarePlan";
973            case CARETEAM: return "CareTeam";
974            case CATALOGENTRY: return "CatalogEntry";
975            case CHARGEITEM: return "ChargeItem";
976            case CHARGEITEMDEFINITION: return "ChargeItemDefinition";
977            case CLAIM: return "Claim";
978            case CLAIMRESPONSE: return "ClaimResponse";
979            case CLINICALIMPRESSION: return "ClinicalImpression";
980            case CLINICALUSEISSUE: return "ClinicalUseIssue";
981            case CODESYSTEM: return "CodeSystem";
982            case COMMUNICATION: return "Communication";
983            case COMMUNICATIONREQUEST: return "CommunicationRequest";
984            case COMPARTMENTDEFINITION: return "CompartmentDefinition";
985            case COMPOSITION: return "Composition";
986            case CONCEPTMAP: return "ConceptMap";
987            case CONDITION: return "Condition";
988            case CONDITIONDEFINITION: return "ConditionDefinition";
989            case CONSENT: return "Consent";
990            case CONTRACT: return "Contract";
991            case COVERAGE: return "Coverage";
992            case COVERAGEELIGIBILITYREQUEST: return "CoverageEligibilityRequest";
993            case COVERAGEELIGIBILITYRESPONSE: return "CoverageEligibilityResponse";
994            case DETECTEDISSUE: return "DetectedIssue";
995            case DEVICE: return "Device";
996            case DEVICEDEFINITION: return "DeviceDefinition";
997            case DEVICEMETRIC: return "DeviceMetric";
998            case DEVICEREQUEST: return "DeviceRequest";
999            case DEVICEUSESTATEMENT: return "DeviceUseStatement";
1000            case DIAGNOSTICREPORT: return "DiagnosticReport";
1001            case DOCUMENTMANIFEST: return "DocumentManifest";
1002            case DOCUMENTREFERENCE: return "DocumentReference";
1003            case DOMAINRESOURCE: return "DomainResource";
1004            case ENCOUNTER: return "Encounter";
1005            case ENDPOINT: return "Endpoint";
1006            case ENROLLMENTREQUEST: return "EnrollmentRequest";
1007            case ENROLLMENTRESPONSE: return "EnrollmentResponse";
1008            case EPISODEOFCARE: return "EpisodeOfCare";
1009            case EVENTDEFINITION: return "EventDefinition";
1010            case EVIDENCE: return "Evidence";
1011            case EVIDENCEVARIABLE: return "EvidenceVariable";
1012            case EXAMPLESCENARIO: return "ExampleScenario";
1013            case EXPLANATIONOFBENEFIT: return "ExplanationOfBenefit";
1014            case FAMILYMEMBERHISTORY: return "FamilyMemberHistory";
1015            case FLAG: return "Flag";
1016            case GOAL: return "Goal";
1017            case GRAPHDEFINITION: return "GraphDefinition";
1018            case GROUP: return "Group";
1019            case GUIDANCERESPONSE: return "GuidanceResponse";
1020            case HEALTHCARESERVICE: return "HealthcareService";
1021            case IMAGINGSTUDY: return "ImagingStudy";
1022            case IMMUNIZATION: return "Immunization";
1023            case IMMUNIZATIONEVALUATION: return "ImmunizationEvaluation";
1024            case IMMUNIZATIONRECOMMENDATION: return "ImmunizationRecommendation";
1025            case IMPLEMENTATIONGUIDE: return "ImplementationGuide";
1026            case INGREDIENT: return "Ingredient";
1027            case INSURANCEPLAN: return "InsurancePlan";
1028            case INVOICE: return "Invoice";
1029            case LIBRARY: return "Library";
1030            case LINKAGE: return "Linkage";
1031            case LIST: return "List";
1032            case LOCATION: return "Location";
1033            case MANUFACTUREDITEMDEFINITION: return "ManufacturedItemDefinition";
1034            case MEASURE: return "Measure";
1035            case MEASUREREPORT: return "MeasureReport";
1036            case MEDICATION: return "Medication";
1037            case MEDICATIONADMINISTRATION: return "MedicationAdministration";
1038            case MEDICATIONDISPENSE: return "MedicationDispense";
1039            case MEDICATIONKNOWLEDGE: return "MedicationKnowledge";
1040            case MEDICATIONREQUEST: return "MedicationRequest";
1041            case MEDICATIONUSAGE: return "MedicationUsage";
1042            case MEDICINALPRODUCTDEFINITION: return "MedicinalProductDefinition";
1043            case MESSAGEDEFINITION: return "MessageDefinition";
1044            case MESSAGEHEADER: return "MessageHeader";
1045            case MOLECULARSEQUENCE: return "MolecularSequence";
1046            case NAMINGSYSTEM: return "NamingSystem";
1047            case NUTRITIONINTAKE: return "NutritionIntake";
1048            case NUTRITIONORDER: return "NutritionOrder";
1049            case OBSERVATION: return "Observation";
1050            case OBSERVATIONDEFINITION: return "ObservationDefinition";
1051            case OPERATIONDEFINITION: return "OperationDefinition";
1052            case OPERATIONOUTCOME: return "OperationOutcome";
1053            case ORGANIZATION: return "Organization";
1054            case ORGANIZATIONAFFILIATION: return "OrganizationAffiliation";
1055            case PACKAGEDPRODUCTDEFINITION: return "PackagedProductDefinition";
1056            case PARAMETERS: return "Parameters";
1057            case PATIENT: return "Patient";
1058            case PAYMENTNOTICE: return "PaymentNotice";
1059            case PAYMENTRECONCILIATION: return "PaymentReconciliation";
1060            case PERSON: return "Person";
1061            case PLANDEFINITION: return "PlanDefinition";
1062            case PRACTITIONER: return "Practitioner";
1063            case PRACTITIONERROLE: return "PractitionerRole";
1064            case PROCEDURE: return "Procedure";
1065            case PROVENANCE: return "Provenance";
1066            case QUESTIONNAIRE: return "Questionnaire";
1067            case QUESTIONNAIRERESPONSE: return "QuestionnaireResponse";
1068            case REGULATEDAUTHORIZATION: return "RegulatedAuthorization";
1069            case RELATEDPERSON: return "RelatedPerson";
1070            case REQUESTGROUP: return "RequestGroup";
1071            case RESEARCHSTUDY: return "ResearchStudy";
1072            case RESEARCHSUBJECT: return "ResearchSubject";
1073            case RESOURCE: return "Resource";
1074            case RISKASSESSMENT: return "RiskAssessment";
1075            case SCHEDULE: return "Schedule";
1076            case SEARCHPARAMETER: return "SearchParameter";
1077            case SERVICEREQUEST: return "ServiceRequest";
1078            case SLOT: return "Slot";
1079            case SPECIMEN: return "Specimen";
1080            case SPECIMENDEFINITION: return "SpecimenDefinition";
1081            case STRUCTUREDEFINITION: return "StructureDefinition";
1082            case STRUCTUREMAP: return "StructureMap";
1083            case SUBSCRIPTION: return "Subscription";
1084            case SUBSTANCE: return "Substance";
1085            case SUBSTANCEDEFINITION: return "SubstanceDefinition";
1086            case SUBSTANCENUCLEICACID: return "SubstanceNucleicAcid";
1087            case SUBSTANCEPOLYMER: return "SubstancePolymer";
1088            case SUBSTANCEPROTEIN: return "SubstanceProtein";
1089            case SUBSTANCEREFERENCEINFORMATION: return "SubstanceReferenceInformation";
1090            case SUBSTANCESOURCEMATERIAL: return "SubstanceSourceMaterial";
1091            case SUPPLYDELIVERY: return "SupplyDelivery";
1092            case SUPPLYREQUEST: return "SupplyRequest";
1093            case TASK: return "Task";
1094            case TERMINOLOGYCAPABILITIES: return "TerminologyCapabilities";
1095            case TESTREPORT: return "TestReport";
1096            case TESTSCRIPT: return "TestScript";
1097            case TOPIC: return "Topic";
1098            case VALUESET: return "ValueSet";
1099            case VERIFICATIONRESULT: return "VerificationResult";
1100            case VISIONPRESCRIPTION: return "VisionPrescription";
1101            default: return "?";
1102          }
1103        }
1104        public String getSystem() {
1105          switch (this) {
1106            case ACCOUNT: return "http://hl7.org/fhir/resource-types";
1107            case ACTIVITYDEFINITION: return "http://hl7.org/fhir/resource-types";
1108            case ADMINISTRABLEPRODUCTDEFINITION: return "http://hl7.org/fhir/resource-types";
1109            case ADVERSEEVENT: return "http://hl7.org/fhir/resource-types";
1110            case ALLERGYINTOLERANCE: return "http://hl7.org/fhir/resource-types";
1111            case APPOINTMENT: return "http://hl7.org/fhir/resource-types";
1112            case APPOINTMENTRESPONSE: return "http://hl7.org/fhir/resource-types";
1113            case AUDITEVENT: return "http://hl7.org/fhir/resource-types";
1114            case BASIC: return "http://hl7.org/fhir/resource-types";
1115            case BINARY: return "http://hl7.org/fhir/resource-types";
1116            case BIOLOGICALLYDERIVEDPRODUCT: return "http://hl7.org/fhir/resource-types";
1117            case BODYSTRUCTURE: return "http://hl7.org/fhir/resource-types";
1118            case BUNDLE: return "http://hl7.org/fhir/resource-types";
1119            case CAPABILITYSTATEMENT: return "http://hl7.org/fhir/resource-types";
1120            case CAPABILITYSTATEMENT2: return "http://hl7.org/fhir/resource-types";
1121            case CAREPLAN: return "http://hl7.org/fhir/resource-types";
1122            case CARETEAM: return "http://hl7.org/fhir/resource-types";
1123            case CATALOGENTRY: return "http://hl7.org/fhir/resource-types";
1124            case CHARGEITEM: return "http://hl7.org/fhir/resource-types";
1125            case CHARGEITEMDEFINITION: return "http://hl7.org/fhir/resource-types";
1126            case CLAIM: return "http://hl7.org/fhir/resource-types";
1127            case CLAIMRESPONSE: return "http://hl7.org/fhir/resource-types";
1128            case CLINICALIMPRESSION: return "http://hl7.org/fhir/resource-types";
1129            case CLINICALUSEISSUE: return "http://hl7.org/fhir/resource-types";
1130            case CODESYSTEM: return "http://hl7.org/fhir/resource-types";
1131            case COMMUNICATION: return "http://hl7.org/fhir/resource-types";
1132            case COMMUNICATIONREQUEST: return "http://hl7.org/fhir/resource-types";
1133            case COMPARTMENTDEFINITION: return "http://hl7.org/fhir/resource-types";
1134            case COMPOSITION: return "http://hl7.org/fhir/resource-types";
1135            case CONCEPTMAP: return "http://hl7.org/fhir/resource-types";
1136            case CONDITION: return "http://hl7.org/fhir/resource-types";
1137            case CONDITIONDEFINITION: return "http://hl7.org/fhir/resource-types";
1138            case CONSENT: return "http://hl7.org/fhir/resource-types";
1139            case CONTRACT: return "http://hl7.org/fhir/resource-types";
1140            case COVERAGE: return "http://hl7.org/fhir/resource-types";
1141            case COVERAGEELIGIBILITYREQUEST: return "http://hl7.org/fhir/resource-types";
1142            case COVERAGEELIGIBILITYRESPONSE: return "http://hl7.org/fhir/resource-types";
1143            case DETECTEDISSUE: return "http://hl7.org/fhir/resource-types";
1144            case DEVICE: return "http://hl7.org/fhir/resource-types";
1145            case DEVICEDEFINITION: return "http://hl7.org/fhir/resource-types";
1146            case DEVICEMETRIC: return "http://hl7.org/fhir/resource-types";
1147            case DEVICEREQUEST: return "http://hl7.org/fhir/resource-types";
1148            case DEVICEUSESTATEMENT: return "http://hl7.org/fhir/resource-types";
1149            case DIAGNOSTICREPORT: return "http://hl7.org/fhir/resource-types";
1150            case DOCUMENTMANIFEST: return "http://hl7.org/fhir/resource-types";
1151            case DOCUMENTREFERENCE: return "http://hl7.org/fhir/resource-types";
1152            case DOMAINRESOURCE: return "http://hl7.org/fhir/resource-types";
1153            case ENCOUNTER: return "http://hl7.org/fhir/resource-types";
1154            case ENDPOINT: return "http://hl7.org/fhir/resource-types";
1155            case ENROLLMENTREQUEST: return "http://hl7.org/fhir/resource-types";
1156            case ENROLLMENTRESPONSE: return "http://hl7.org/fhir/resource-types";
1157            case EPISODEOFCARE: return "http://hl7.org/fhir/resource-types";
1158            case EVENTDEFINITION: return "http://hl7.org/fhir/resource-types";
1159            case EVIDENCE: return "http://hl7.org/fhir/resource-types";
1160            case EVIDENCEVARIABLE: return "http://hl7.org/fhir/resource-types";
1161            case EXAMPLESCENARIO: return "http://hl7.org/fhir/resource-types";
1162            case EXPLANATIONOFBENEFIT: return "http://hl7.org/fhir/resource-types";
1163            case FAMILYMEMBERHISTORY: return "http://hl7.org/fhir/resource-types";
1164            case FLAG: return "http://hl7.org/fhir/resource-types";
1165            case GOAL: return "http://hl7.org/fhir/resource-types";
1166            case GRAPHDEFINITION: return "http://hl7.org/fhir/resource-types";
1167            case GROUP: return "http://hl7.org/fhir/resource-types";
1168            case GUIDANCERESPONSE: return "http://hl7.org/fhir/resource-types";
1169            case HEALTHCARESERVICE: return "http://hl7.org/fhir/resource-types";
1170            case IMAGINGSTUDY: return "http://hl7.org/fhir/resource-types";
1171            case IMMUNIZATION: return "http://hl7.org/fhir/resource-types";
1172            case IMMUNIZATIONEVALUATION: return "http://hl7.org/fhir/resource-types";
1173            case IMMUNIZATIONRECOMMENDATION: return "http://hl7.org/fhir/resource-types";
1174            case IMPLEMENTATIONGUIDE: return "http://hl7.org/fhir/resource-types";
1175            case INGREDIENT: return "http://hl7.org/fhir/resource-types";
1176            case INSURANCEPLAN: return "http://hl7.org/fhir/resource-types";
1177            case INVOICE: return "http://hl7.org/fhir/resource-types";
1178            case LIBRARY: return "http://hl7.org/fhir/resource-types";
1179            case LINKAGE: return "http://hl7.org/fhir/resource-types";
1180            case LIST: return "http://hl7.org/fhir/resource-types";
1181            case LOCATION: return "http://hl7.org/fhir/resource-types";
1182            case MANUFACTUREDITEMDEFINITION: return "http://hl7.org/fhir/resource-types";
1183            case MEASURE: return "http://hl7.org/fhir/resource-types";
1184            case MEASUREREPORT: return "http://hl7.org/fhir/resource-types";
1185            case MEDICATION: return "http://hl7.org/fhir/resource-types";
1186            case MEDICATIONADMINISTRATION: return "http://hl7.org/fhir/resource-types";
1187            case MEDICATIONDISPENSE: return "http://hl7.org/fhir/resource-types";
1188            case MEDICATIONKNOWLEDGE: return "http://hl7.org/fhir/resource-types";
1189            case MEDICATIONREQUEST: return "http://hl7.org/fhir/resource-types";
1190            case MEDICATIONUSAGE: return "http://hl7.org/fhir/resource-types";
1191            case MEDICINALPRODUCTDEFINITION: return "http://hl7.org/fhir/resource-types";
1192            case MESSAGEDEFINITION: return "http://hl7.org/fhir/resource-types";
1193            case MESSAGEHEADER: return "http://hl7.org/fhir/resource-types";
1194            case MOLECULARSEQUENCE: return "http://hl7.org/fhir/resource-types";
1195            case NAMINGSYSTEM: return "http://hl7.org/fhir/resource-types";
1196            case NUTRITIONINTAKE: return "http://hl7.org/fhir/resource-types";
1197            case NUTRITIONORDER: return "http://hl7.org/fhir/resource-types";
1198            case OBSERVATION: return "http://hl7.org/fhir/resource-types";
1199            case OBSERVATIONDEFINITION: return "http://hl7.org/fhir/resource-types";
1200            case OPERATIONDEFINITION: return "http://hl7.org/fhir/resource-types";
1201            case OPERATIONOUTCOME: return "http://hl7.org/fhir/resource-types";
1202            case ORGANIZATION: return "http://hl7.org/fhir/resource-types";
1203            case ORGANIZATIONAFFILIATION: return "http://hl7.org/fhir/resource-types";
1204            case PACKAGEDPRODUCTDEFINITION: return "http://hl7.org/fhir/resource-types";
1205            case PARAMETERS: return "http://hl7.org/fhir/resource-types";
1206            case PATIENT: return "http://hl7.org/fhir/resource-types";
1207            case PAYMENTNOTICE: return "http://hl7.org/fhir/resource-types";
1208            case PAYMENTRECONCILIATION: return "http://hl7.org/fhir/resource-types";
1209            case PERSON: return "http://hl7.org/fhir/resource-types";
1210            case PLANDEFINITION: return "http://hl7.org/fhir/resource-types";
1211            case PRACTITIONER: return "http://hl7.org/fhir/resource-types";
1212            case PRACTITIONERROLE: return "http://hl7.org/fhir/resource-types";
1213            case PROCEDURE: return "http://hl7.org/fhir/resource-types";
1214            case PROVENANCE: return "http://hl7.org/fhir/resource-types";
1215            case QUESTIONNAIRE: return "http://hl7.org/fhir/resource-types";
1216            case QUESTIONNAIRERESPONSE: return "http://hl7.org/fhir/resource-types";
1217            case REGULATEDAUTHORIZATION: return "http://hl7.org/fhir/resource-types";
1218            case RELATEDPERSON: return "http://hl7.org/fhir/resource-types";
1219            case REQUESTGROUP: return "http://hl7.org/fhir/resource-types";
1220            case RESEARCHSTUDY: return "http://hl7.org/fhir/resource-types";
1221            case RESEARCHSUBJECT: return "http://hl7.org/fhir/resource-types";
1222            case RESOURCE: return "http://hl7.org/fhir/resource-types";
1223            case RISKASSESSMENT: return "http://hl7.org/fhir/resource-types";
1224            case SCHEDULE: return "http://hl7.org/fhir/resource-types";
1225            case SEARCHPARAMETER: return "http://hl7.org/fhir/resource-types";
1226            case SERVICEREQUEST: return "http://hl7.org/fhir/resource-types";
1227            case SLOT: return "http://hl7.org/fhir/resource-types";
1228            case SPECIMEN: return "http://hl7.org/fhir/resource-types";
1229            case SPECIMENDEFINITION: return "http://hl7.org/fhir/resource-types";
1230            case STRUCTUREDEFINITION: return "http://hl7.org/fhir/resource-types";
1231            case STRUCTUREMAP: return "http://hl7.org/fhir/resource-types";
1232            case SUBSCRIPTION: return "http://hl7.org/fhir/resource-types";
1233            case SUBSTANCE: return "http://hl7.org/fhir/resource-types";
1234            case SUBSTANCEDEFINITION: return "http://hl7.org/fhir/resource-types";
1235            case SUBSTANCENUCLEICACID: return "http://hl7.org/fhir/resource-types";
1236            case SUBSTANCEPOLYMER: return "http://hl7.org/fhir/resource-types";
1237            case SUBSTANCEPROTEIN: return "http://hl7.org/fhir/resource-types";
1238            case SUBSTANCEREFERENCEINFORMATION: return "http://hl7.org/fhir/resource-types";
1239            case SUBSTANCESOURCEMATERIAL: return "http://hl7.org/fhir/resource-types";
1240            case SUPPLYDELIVERY: return "http://hl7.org/fhir/resource-types";
1241            case SUPPLYREQUEST: return "http://hl7.org/fhir/resource-types";
1242            case TASK: return "http://hl7.org/fhir/resource-types";
1243            case TERMINOLOGYCAPABILITIES: return "http://hl7.org/fhir/resource-types";
1244            case TESTREPORT: return "http://hl7.org/fhir/resource-types";
1245            case TESTSCRIPT: return "http://hl7.org/fhir/resource-types";
1246            case TOPIC: return "http://hl7.org/fhir/resource-types";
1247            case VALUESET: return "http://hl7.org/fhir/resource-types";
1248            case VERIFICATIONRESULT: return "http://hl7.org/fhir/resource-types";
1249            case VISIONPRESCRIPTION: return "http://hl7.org/fhir/resource-types";
1250            default: return "?";
1251          }
1252        }
1253        public String getDefinition() {
1254          switch (this) {
1255            case ACCOUNT: return "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.";
1256            case ACTIVITYDEFINITION: return "This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context.";
1257            case ADMINISTRABLEPRODUCTDEFINITION: return "A pharmaceutical product described in terms of its composition and dose form.";
1258            case ADVERSEEVENT: return "An event (i.e. any change to current patient status) that may be related to unintended effects on a patient or research subject.  The unintended effects may require additional monitoring, treatment or hospitalization or may result in death.  The AdverseEvent resource also extends to potential or avoided events that could have had such effects.";
1259            case ALLERGYINTOLERANCE: return "Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance.";
1260            case APPOINTMENT: return "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).";
1261            case APPOINTMENTRESPONSE: return "A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection.";
1262            case AUDITEVENT: return "A record of an event relevant for purposes such as operations, privacy, security, maintenance, and performance analysis.";
1263            case BASIC: return "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.";
1264            case BINARY: return "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.";
1265            case BIOLOGICALLYDERIVEDPRODUCT: return "A material substance originating from a biological entity intended to be transplanted or infused\ninto another (possibly the same) biological entity.";
1266            case BODYSTRUCTURE: return "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.";
1267            case BUNDLE: return "A container for a collection of resources.";
1268            case CAPABILITYSTATEMENT: return "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.";
1269            case CAPABILITYSTATEMENT2: return "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.";
1270            case CAREPLAN: return "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.";
1271            case CARETEAM: return "The Care Team includes all the people and organizations who plan to participate in the coordination and delivery of care.";
1272            case CATALOGENTRY: return "Catalog entries are wrappers that contextualize items included in a catalog.";
1273            case CHARGEITEM: return "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.";
1274            case CHARGEITEMDEFINITION: return "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.";
1275            case CLAIM: return "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.";
1276            case CLAIMRESPONSE: return "This resource provides the adjudication details from the processing of a Claim resource.";
1277            case CLINICALIMPRESSION: return "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.";
1278            case CLINICALUSEISSUE: return "A single item of clinical particulars - an indication, contraindication, interaction etc. for a medicinal product.";
1279            case CODESYSTEM: return "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.";
1280            case COMMUNICATION: return "An occurrence of information being transmitted; e.g. an alert that was sent to a responsible provider, a public health agency communication to a provider/reporter in response to a case report for a reportable condition.";
1281            case COMMUNICATIONREQUEST: return "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.";
1282            case COMPARTMENTDEFINITION: return "A compartment definition that defines how resources are accessed on a server.";
1283            case COMPOSITION: return "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.).";
1284            case CONCEPTMAP: return "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.";
1285            case CONDITION: return "A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern.";
1286            case CONDITIONDEFINITION: return "A definition of a condition and information relevant to managing it.";
1287            case CONSENT: return "A record of a healthcare consumer’s  choices  or choices made on their behalf by a third party, 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.";
1288            case CONTRACT: return "Legally enforceable, formally recorded unilateral or bilateral directive i.e., a policy or agreement.";
1289            case COVERAGE: return "Financial instrument which may be used to reimburse or pay for health care products and services. Includes both insurance and self-payment.";
1290            case COVERAGEELIGIBILITYREQUEST: return "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.";
1291            case COVERAGEELIGIBILITYRESPONSE: return "This resource provides eligibility and plan details from the processing of an CoverageEligibilityRequest resource.";
1292            case DETECTEDISSUE: return "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.";
1293            case DEVICE: return "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.";
1294            case DEVICEDEFINITION: return "The characteristics, operational status and capabilities of a medical-related component of a medical device.";
1295            case DEVICEMETRIC: return "Describes a measurement, calculation or setting capability of a medical device.";
1296            case DEVICEREQUEST: return "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.";
1297            case DEVICEUSESTATEMENT: return "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.";
1298            case DIAGNOSTICREPORT: return "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.";
1299            case DOCUMENTMANIFEST: return "A collection of documents compiled for a purpose together with metadata that applies to the collection.";
1300            case DOCUMENTREFERENCE: return "A reference to a document of any kind for any purpose. While the term “document” implies a more narrow focus, for this resource this \"document\" encompasses *any* seralized object with a mime-type, so includes formal patient centric documents (CDA), clniical notes, scanned paper, non-patient specific documents like policy text, as well as a photo, video, or audio recording acquired or used in healthcare.  The DocumentReference resource provides metadata about the document so that the document can be discovered and managed.  The actual content may be inline base64 encoded data or provided by direct reference.";
1301            case DOMAINRESOURCE: return "A resource that includes narrative, extensions, and contained resources.";
1302            case ENCOUNTER: return "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.";
1303            case ENDPOINT: return "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.";
1304            case ENROLLMENTREQUEST: return "This resource provides the insurance enrollment details to the insurer regarding a specified coverage.";
1305            case ENROLLMENTRESPONSE: return "This resource provides enrollment and plan details from the processing of an EnrollmentRequest resource.";
1306            case EPISODEOFCARE: return "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.";
1307            case EVENTDEFINITION: return "The EventDefinition resource provides a reusable description of when a particular event can occur.";
1308            case EVIDENCE: return "This represents statistics, certainty, both the intended and actual population, and evidence variables.";
1309            case EVIDENCEVARIABLE: return "The EvidenceVariable resource describes a \"PICO\" element that knowledge (evidence, assertion, recommendation) is about.";
1310            case EXAMPLESCENARIO: return "Example of workflow instance.";
1311            case EXPLANATIONOFBENEFIT: return "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.";
1312            case FAMILYMEMBERHISTORY: return "Significant health conditions for a person related to the patient relevant in the context of care for the patient.";
1313            case FLAG: return "Prospective warnings of potential issues when providing care to the patient.";
1314            case GOAL: return "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.";
1315            case GRAPHDEFINITION: return "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.";
1316            case GROUP: return "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.";
1317            case GUIDANCERESPONSE: return "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.";
1318            case HEALTHCARESERVICE: return "The details of a healthcare service available at a location.";
1319            case IMAGINGSTUDY: return "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.";
1320            case IMMUNIZATION: return "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.";
1321            case IMMUNIZATIONEVALUATION: return "Describes a comparison of an immunization event against published recommendations to determine if the administration is \"valid\" in relation to those  recommendations.";
1322            case IMMUNIZATIONRECOMMENDATION: return "A patient's point-in-time set of recommendations (i.e. forecasting) according to a published schedule with optional supporting justification.";
1323            case IMPLEMENTATIONGUIDE: return "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.";
1324            case INGREDIENT: return "An ingredient of a manufactured item or pharmaceutical product.";
1325            case INSURANCEPLAN: return "Details of a Health Insurance product/plan provided by an organization.";
1326            case INVOICE: return "Invoice containing collected ChargeItems from an Account with calculated individual and total price for Billing purpose.";
1327            case LIBRARY: return "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.";
1328            case LINKAGE: return "Identifies two or more records (resource instances) that refer to the same real-world \"occurrence\".";
1329            case LIST: return "A list is a curated collection of resources.";
1330            case LOCATION: return "Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained, or accommodated.";
1331            case MANUFACTUREDITEMDEFINITION: return "The manufactured item as contained in the packaged medicinal product.";
1332            case MEASURE: return "The Measure resource provides the definition of a quality measure.";
1333            case MEASUREREPORT: return "The MeasureReport resource contains the results of the calculation of a measure; and optionally a reference to the resources involved in that calculation.";
1334            case MEDICATION: return "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.";
1335            case MEDICATIONADMINISTRATION: return "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.";
1336            case MEDICATIONDISPENSE: return "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.";
1337            case MEDICATIONKNOWLEDGE: return "Information about a medication that is used to support knowledge.";
1338            case MEDICATIONREQUEST: return "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.";
1339            case MEDICATIONUSAGE: return "A record of a medication that is being consumed by a patient.   A MedicationUsage 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 medicationusage and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication.  A medicationusage 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 Usage 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.";
1340            case MEDICINALPRODUCTDEFINITION: return "Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use).";
1341            case MESSAGEDEFINITION: return "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.";
1342            case MESSAGEHEADER: return "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.";
1343            case MOLECULARSEQUENCE: return "Raw data describing a biological sequence.";
1344            case NAMINGSYSTEM: return "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.";
1345            case NUTRITIONINTAKE: return "A record of food or fluid that is being consumed by a patient.   A NutritionIntake may indicate that the patient may be consuming the food or fluid now or has consumed the food or fluid in the past.  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 or through an app that tracks food or fluids consumed.   The consumption information may come from sources such as the patient's memory, from a nutrition label,  or from a clinician documenting observed intake.";
1346            case NUTRITIONORDER: return "A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident.";
1347            case OBSERVATION: return "Measurements and simple assertions made about a patient, device or other subject.";
1348            case OBSERVATIONDEFINITION: return "Set of definitional characteristics for a kind of observation or measurement produced or consumed by an orderable health care service.";
1349            case OPERATIONDEFINITION: return "A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction).";
1350            case OPERATIONOUTCOME: return "A collection of error, warning, or information messages that result from a system action.";
1351            case ORGANIZATION: return "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.";
1352            case ORGANIZATIONAFFILIATION: return "Defines an affiliation/assotiation/relationship between 2 distinct oganizations, that is not a part-of relationship/sub-division relationship.";
1353            case PACKAGEDPRODUCTDEFINITION: return "A medicinal product in a container or package.";
1354            case PARAMETERS: return "This resource is a non-persisted resource used to pass information into and back from an [operation](operations.html). It has no other use, and there is no RESTful endpoint associated with it.";
1355            case PATIENT: return "Demographics and other administrative information about an individual or animal receiving care or other health-related services.";
1356            case PAYMENTNOTICE: return "This resource provides the status of the payment for goods and services rendered, and the request and response resource references.";
1357            case PAYMENTRECONCILIATION: return "This resource provides the details including amount of a payment and allocates the payment items being paid.";
1358            case PERSON: return "Demographics and administrative information about a person independent of a specific health-related context.";
1359            case PLANDEFINITION: return "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.";
1360            case PRACTITIONER: return "A person who is directly or indirectly involved in the provisioning of healthcare.";
1361            case PRACTITIONERROLE: return "A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time.";
1362            case PROCEDURE: return "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.";
1363            case PROVENANCE: return "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.";
1364            case QUESTIONNAIRE: return "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.";
1365            case QUESTIONNAIRERESPONSE: return "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.";
1366            case REGULATEDAUTHORIZATION: return "The regulatory authorization of a medicinal product.";
1367            case RELATEDPERSON: return "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.";
1368            case REQUESTGROUP: return "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\".";
1369            case RESEARCHSTUDY: return "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.";
1370            case RESEARCHSUBJECT: return "A physical entity which is the primary unit of operational and/or administrative interest in a study.";
1371            case RESOURCE: return "This is the base resource type for everything.";
1372            case RISKASSESSMENT: return "An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome.";
1373            case SCHEDULE: return "A container for slots of time that may be available for booking appointments.";
1374            case SEARCHPARAMETER: return "A search parameter that defines a named search item that can be used to search/filter on a resource.";
1375            case SERVICEREQUEST: return "A record of a request for service such as diagnostic investigations, treatments, or operations to be performed.";
1376            case SLOT: return "A slot of time on a schedule that may be available for booking appointments.";
1377            case SPECIMEN: return "A sample to be used for analysis.";
1378            case SPECIMENDEFINITION: return "A kind of specimen with associated set of requirements.";
1379            case STRUCTUREDEFINITION: return "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.";
1380            case STRUCTUREMAP: return "A Map of relationships between 2 structures that can be used to transform data.";
1381            case SUBSCRIPTION: return "The subscription resource describes a particular client's request to be notified about a Topic.";
1382            case SUBSTANCE: return "A homogeneous material with a definite composition.";
1383            case SUBSTANCEDEFINITION: return "The detailed description of a substance, typically at a level beyond what is used for prescribing.";
1384            case SUBSTANCENUCLEICACID: return "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.";
1385            case SUBSTANCEPOLYMER: return "Todo.";
1386            case SUBSTANCEPROTEIN: return "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.";
1387            case SUBSTANCEREFERENCEINFORMATION: return "Todo.";
1388            case SUBSTANCESOURCEMATERIAL: return "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.";
1389            case SUPPLYDELIVERY: return "Record of delivery of what is supplied.";
1390            case SUPPLYREQUEST: return "A record of a request for a medication, substance or device used in the healthcare setting.";
1391            case TASK: return "A task to be performed.";
1392            case TERMINOLOGYCAPABILITIES: return "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.";
1393            case TESTREPORT: return "A summary of information based on the results of executing a TestScript.";
1394            case TESTSCRIPT: return "A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification.";
1395            case TOPIC: return "Describes a stream of resource state changes identified by trigger criteria and annotated with labels useful to filter projections from this topic.";
1396            case VALUESET: return "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](terminologies.html).";
1397            case VERIFICATIONRESULT: return "Describes validation requirements, source(s), status and dates for one or more elements.";
1398            case VISIONPRESCRIPTION: return "An authorization for the provision of glasses and/or contact lenses to a patient.";
1399            default: return "?";
1400          }
1401        }
1402        public String getDisplay() {
1403          switch (this) {
1404            case ACCOUNT: return "Account";
1405            case ACTIVITYDEFINITION: return "ActivityDefinition";
1406            case ADMINISTRABLEPRODUCTDEFINITION: return "AdministrableProductDefinition";
1407            case ADVERSEEVENT: return "AdverseEvent";
1408            case ALLERGYINTOLERANCE: return "AllergyIntolerance";
1409            case APPOINTMENT: return "Appointment";
1410            case APPOINTMENTRESPONSE: return "AppointmentResponse";
1411            case AUDITEVENT: return "AuditEvent";
1412            case BASIC: return "Basic";
1413            case BINARY: return "Binary";
1414            case BIOLOGICALLYDERIVEDPRODUCT: return "BiologicallyDerivedProduct";
1415            case BODYSTRUCTURE: return "BodyStructure";
1416            case BUNDLE: return "Bundle";
1417            case CAPABILITYSTATEMENT: return "CapabilityStatement";
1418            case CAPABILITYSTATEMENT2: return "CapabilityStatement2";
1419            case CAREPLAN: return "CarePlan";
1420            case CARETEAM: return "CareTeam";
1421            case CATALOGENTRY: return "CatalogEntry";
1422            case CHARGEITEM: return "ChargeItem";
1423            case CHARGEITEMDEFINITION: return "ChargeItemDefinition";
1424            case CLAIM: return "Claim";
1425            case CLAIMRESPONSE: return "ClaimResponse";
1426            case CLINICALIMPRESSION: return "ClinicalImpression";
1427            case CLINICALUSEISSUE: return "ClinicalUseIssue";
1428            case CODESYSTEM: return "CodeSystem";
1429            case COMMUNICATION: return "Communication";
1430            case COMMUNICATIONREQUEST: return "CommunicationRequest";
1431            case COMPARTMENTDEFINITION: return "CompartmentDefinition";
1432            case COMPOSITION: return "Composition";
1433            case CONCEPTMAP: return "ConceptMap";
1434            case CONDITION: return "Condition";
1435            case CONDITIONDEFINITION: return "ConditionDefinition";
1436            case CONSENT: return "Consent";
1437            case CONTRACT: return "Contract";
1438            case COVERAGE: return "Coverage";
1439            case COVERAGEELIGIBILITYREQUEST: return "CoverageEligibilityRequest";
1440            case COVERAGEELIGIBILITYRESPONSE: return "CoverageEligibilityResponse";
1441            case DETECTEDISSUE: return "DetectedIssue";
1442            case DEVICE: return "Device";
1443            case DEVICEDEFINITION: return "DeviceDefinition";
1444            case DEVICEMETRIC: return "DeviceMetric";
1445            case DEVICEREQUEST: return "DeviceRequest";
1446            case DEVICEUSESTATEMENT: return "DeviceUseStatement";
1447            case DIAGNOSTICREPORT: return "DiagnosticReport";
1448            case DOCUMENTMANIFEST: return "DocumentManifest";
1449            case DOCUMENTREFERENCE: return "DocumentReference";
1450            case DOMAINRESOURCE: return "DomainResource";
1451            case ENCOUNTER: return "Encounter";
1452            case ENDPOINT: return "Endpoint";
1453            case ENROLLMENTREQUEST: return "EnrollmentRequest";
1454            case ENROLLMENTRESPONSE: return "EnrollmentResponse";
1455            case EPISODEOFCARE: return "EpisodeOfCare";
1456            case EVENTDEFINITION: return "EventDefinition";
1457            case EVIDENCE: return "Evidence";
1458            case EVIDENCEVARIABLE: return "EvidenceVariable";
1459            case EXAMPLESCENARIO: return "ExampleScenario";
1460            case EXPLANATIONOFBENEFIT: return "ExplanationOfBenefit";
1461            case FAMILYMEMBERHISTORY: return "FamilyMemberHistory";
1462            case FLAG: return "Flag";
1463            case GOAL: return "Goal";
1464            case GRAPHDEFINITION: return "GraphDefinition";
1465            case GROUP: return "Group";
1466            case GUIDANCERESPONSE: return "GuidanceResponse";
1467            case HEALTHCARESERVICE: return "HealthcareService";
1468            case IMAGINGSTUDY: return "ImagingStudy";
1469            case IMMUNIZATION: return "Immunization";
1470            case IMMUNIZATIONEVALUATION: return "ImmunizationEvaluation";
1471            case IMMUNIZATIONRECOMMENDATION: return "ImmunizationRecommendation";
1472            case IMPLEMENTATIONGUIDE: return "ImplementationGuide";
1473            case INGREDIENT: return "Ingredient";
1474            case INSURANCEPLAN: return "InsurancePlan";
1475            case INVOICE: return "Invoice";
1476            case LIBRARY: return "Library";
1477            case LINKAGE: return "Linkage";
1478            case LIST: return "List";
1479            case LOCATION: return "Location";
1480            case MANUFACTUREDITEMDEFINITION: return "ManufacturedItemDefinition";
1481            case MEASURE: return "Measure";
1482            case MEASUREREPORT: return "MeasureReport";
1483            case MEDICATION: return "Medication";
1484            case MEDICATIONADMINISTRATION: return "MedicationAdministration";
1485            case MEDICATIONDISPENSE: return "MedicationDispense";
1486            case MEDICATIONKNOWLEDGE: return "MedicationKnowledge";
1487            case MEDICATIONREQUEST: return "MedicationRequest";
1488            case MEDICATIONUSAGE: return "MedicationUsage";
1489            case MEDICINALPRODUCTDEFINITION: return "MedicinalProductDefinition";
1490            case MESSAGEDEFINITION: return "MessageDefinition";
1491            case MESSAGEHEADER: return "MessageHeader";
1492            case MOLECULARSEQUENCE: return "MolecularSequence";
1493            case NAMINGSYSTEM: return "NamingSystem";
1494            case NUTRITIONINTAKE: return "NutritionIntake";
1495            case NUTRITIONORDER: return "NutritionOrder";
1496            case OBSERVATION: return "Observation";
1497            case OBSERVATIONDEFINITION: return "ObservationDefinition";
1498            case OPERATIONDEFINITION: return "OperationDefinition";
1499            case OPERATIONOUTCOME: return "OperationOutcome";
1500            case ORGANIZATION: return "Organization";
1501            case ORGANIZATIONAFFILIATION: return "OrganizationAffiliation";
1502            case PACKAGEDPRODUCTDEFINITION: return "PackagedProductDefinition";
1503            case PARAMETERS: return "Parameters";
1504            case PATIENT: return "Patient";
1505            case PAYMENTNOTICE: return "PaymentNotice";
1506            case PAYMENTRECONCILIATION: return "PaymentReconciliation";
1507            case PERSON: return "Person";
1508            case PLANDEFINITION: return "PlanDefinition";
1509            case PRACTITIONER: return "Practitioner";
1510            case PRACTITIONERROLE: return "PractitionerRole";
1511            case PROCEDURE: return "Procedure";
1512            case PROVENANCE: return "Provenance";
1513            case QUESTIONNAIRE: return "Questionnaire";
1514            case QUESTIONNAIRERESPONSE: return "QuestionnaireResponse";
1515            case REGULATEDAUTHORIZATION: return "RegulatedAuthorization";
1516            case RELATEDPERSON: return "RelatedPerson";
1517            case REQUESTGROUP: return "RequestGroup";
1518            case RESEARCHSTUDY: return "ResearchStudy";
1519            case RESEARCHSUBJECT: return "ResearchSubject";
1520            case RESOURCE: return "Resource";
1521            case RISKASSESSMENT: return "RiskAssessment";
1522            case SCHEDULE: return "Schedule";
1523            case SEARCHPARAMETER: return "SearchParameter";
1524            case SERVICEREQUEST: return "ServiceRequest";
1525            case SLOT: return "Slot";
1526            case SPECIMEN: return "Specimen";
1527            case SPECIMENDEFINITION: return "SpecimenDefinition";
1528            case STRUCTUREDEFINITION: return "StructureDefinition";
1529            case STRUCTUREMAP: return "StructureMap";
1530            case SUBSCRIPTION: return "Subscription";
1531            case SUBSTANCE: return "Substance";
1532            case SUBSTANCEDEFINITION: return "SubstanceDefinition";
1533            case SUBSTANCENUCLEICACID: return "SubstanceNucleicAcid";
1534            case SUBSTANCEPOLYMER: return "SubstancePolymer";
1535            case SUBSTANCEPROTEIN: return "SubstanceProtein";
1536            case SUBSTANCEREFERENCEINFORMATION: return "SubstanceReferenceInformation";
1537            case SUBSTANCESOURCEMATERIAL: return "SubstanceSourceMaterial";
1538            case SUPPLYDELIVERY: return "SupplyDelivery";
1539            case SUPPLYREQUEST: return "SupplyRequest";
1540            case TASK: return "Task";
1541            case TERMINOLOGYCAPABILITIES: return "TerminologyCapabilities";
1542            case TESTREPORT: return "TestReport";
1543            case TESTSCRIPT: return "TestScript";
1544            case TOPIC: return "Topic";
1545            case VALUESET: return "ValueSet";
1546            case VERIFICATIONRESULT: return "VerificationResult";
1547            case VISIONPRESCRIPTION: return "VisionPrescription";
1548            default: return "?";
1549          }
1550        }
1551    }
1552
1553  public static class FHIRTypeEnumFactory implements EnumFactory<FHIRType> {
1554    public FHIRType fromCode(String codeString) throws IllegalArgumentException {
1555      if (codeString == null || "".equals(codeString))
1556            if (codeString == null || "".equals(codeString))
1557                return null;
1558        if ("Account".equals(codeString))
1559          return FHIRType.ACCOUNT;
1560        if ("ActivityDefinition".equals(codeString))
1561          return FHIRType.ACTIVITYDEFINITION;
1562        if ("AdministrableProductDefinition".equals(codeString))
1563          return FHIRType.ADMINISTRABLEPRODUCTDEFINITION;
1564        if ("AdverseEvent".equals(codeString))
1565          return FHIRType.ADVERSEEVENT;
1566        if ("AllergyIntolerance".equals(codeString))
1567          return FHIRType.ALLERGYINTOLERANCE;
1568        if ("Appointment".equals(codeString))
1569          return FHIRType.APPOINTMENT;
1570        if ("AppointmentResponse".equals(codeString))
1571          return FHIRType.APPOINTMENTRESPONSE;
1572        if ("AuditEvent".equals(codeString))
1573          return FHIRType.AUDITEVENT;
1574        if ("Basic".equals(codeString))
1575          return FHIRType.BASIC;
1576        if ("Binary".equals(codeString))
1577          return FHIRType.BINARY;
1578        if ("BiologicallyDerivedProduct".equals(codeString))
1579          return FHIRType.BIOLOGICALLYDERIVEDPRODUCT;
1580        if ("BodyStructure".equals(codeString))
1581          return FHIRType.BODYSTRUCTURE;
1582        if ("Bundle".equals(codeString))
1583          return FHIRType.BUNDLE;
1584        if ("CapabilityStatement".equals(codeString))
1585          return FHIRType.CAPABILITYSTATEMENT;
1586        if ("CapabilityStatement2".equals(codeString))
1587          return FHIRType.CAPABILITYSTATEMENT2;
1588        if ("CarePlan".equals(codeString))
1589          return FHIRType.CAREPLAN;
1590        if ("CareTeam".equals(codeString))
1591          return FHIRType.CARETEAM;
1592        if ("CatalogEntry".equals(codeString))
1593          return FHIRType.CATALOGENTRY;
1594        if ("ChargeItem".equals(codeString))
1595          return FHIRType.CHARGEITEM;
1596        if ("ChargeItemDefinition".equals(codeString))
1597          return FHIRType.CHARGEITEMDEFINITION;
1598        if ("Claim".equals(codeString))
1599          return FHIRType.CLAIM;
1600        if ("ClaimResponse".equals(codeString))
1601          return FHIRType.CLAIMRESPONSE;
1602        if ("ClinicalImpression".equals(codeString))
1603          return FHIRType.CLINICALIMPRESSION;
1604        if ("ClinicalUseIssue".equals(codeString))
1605          return FHIRType.CLINICALUSEISSUE;
1606        if ("CodeSystem".equals(codeString))
1607          return FHIRType.CODESYSTEM;
1608        if ("Communication".equals(codeString))
1609          return FHIRType.COMMUNICATION;
1610        if ("CommunicationRequest".equals(codeString))
1611          return FHIRType.COMMUNICATIONREQUEST;
1612        if ("CompartmentDefinition".equals(codeString))
1613          return FHIRType.COMPARTMENTDEFINITION;
1614        if ("Composition".equals(codeString))
1615          return FHIRType.COMPOSITION;
1616        if ("ConceptMap".equals(codeString))
1617          return FHIRType.CONCEPTMAP;
1618        if ("Condition".equals(codeString))
1619          return FHIRType.CONDITION;
1620        if ("ConditionDefinition".equals(codeString))
1621          return FHIRType.CONDITIONDEFINITION;
1622        if ("Consent".equals(codeString))
1623          return FHIRType.CONSENT;
1624        if ("Contract".equals(codeString))
1625          return FHIRType.CONTRACT;
1626        if ("Coverage".equals(codeString))
1627          return FHIRType.COVERAGE;
1628        if ("CoverageEligibilityRequest".equals(codeString))
1629          return FHIRType.COVERAGEELIGIBILITYREQUEST;
1630        if ("CoverageEligibilityResponse".equals(codeString))
1631          return FHIRType.COVERAGEELIGIBILITYRESPONSE;
1632        if ("DetectedIssue".equals(codeString))
1633          return FHIRType.DETECTEDISSUE;
1634        if ("Device".equals(codeString))
1635          return FHIRType.DEVICE;
1636        if ("DeviceDefinition".equals(codeString))
1637          return FHIRType.DEVICEDEFINITION;
1638        if ("DeviceMetric".equals(codeString))
1639          return FHIRType.DEVICEMETRIC;
1640        if ("DeviceRequest".equals(codeString))
1641          return FHIRType.DEVICEREQUEST;
1642        if ("DeviceUseStatement".equals(codeString))
1643          return FHIRType.DEVICEUSESTATEMENT;
1644        if ("DiagnosticReport".equals(codeString))
1645          return FHIRType.DIAGNOSTICREPORT;
1646        if ("DocumentManifest".equals(codeString))
1647          return FHIRType.DOCUMENTMANIFEST;
1648        if ("DocumentReference".equals(codeString))
1649          return FHIRType.DOCUMENTREFERENCE;
1650        if ("DomainResource".equals(codeString))
1651          return FHIRType.DOMAINRESOURCE;
1652        if ("Encounter".equals(codeString))
1653          return FHIRType.ENCOUNTER;
1654        if ("Endpoint".equals(codeString))
1655          return FHIRType.ENDPOINT;
1656        if ("EnrollmentRequest".equals(codeString))
1657          return FHIRType.ENROLLMENTREQUEST;
1658        if ("EnrollmentResponse".equals(codeString))
1659          return FHIRType.ENROLLMENTRESPONSE;
1660        if ("EpisodeOfCare".equals(codeString))
1661          return FHIRType.EPISODEOFCARE;
1662        if ("EventDefinition".equals(codeString))
1663          return FHIRType.EVENTDEFINITION;
1664        if ("Evidence".equals(codeString))
1665          return FHIRType.EVIDENCE;
1666        if ("EvidenceVariable".equals(codeString))
1667          return FHIRType.EVIDENCEVARIABLE;
1668        if ("ExampleScenario".equals(codeString))
1669          return FHIRType.EXAMPLESCENARIO;
1670        if ("ExplanationOfBenefit".equals(codeString))
1671          return FHIRType.EXPLANATIONOFBENEFIT;
1672        if ("FamilyMemberHistory".equals(codeString))
1673          return FHIRType.FAMILYMEMBERHISTORY;
1674        if ("Flag".equals(codeString))
1675          return FHIRType.FLAG;
1676        if ("Goal".equals(codeString))
1677          return FHIRType.GOAL;
1678        if ("GraphDefinition".equals(codeString))
1679          return FHIRType.GRAPHDEFINITION;
1680        if ("Group".equals(codeString))
1681          return FHIRType.GROUP;
1682        if ("GuidanceResponse".equals(codeString))
1683          return FHIRType.GUIDANCERESPONSE;
1684        if ("HealthcareService".equals(codeString))
1685          return FHIRType.HEALTHCARESERVICE;
1686        if ("ImagingStudy".equals(codeString))
1687          return FHIRType.IMAGINGSTUDY;
1688        if ("Immunization".equals(codeString))
1689          return FHIRType.IMMUNIZATION;
1690        if ("ImmunizationEvaluation".equals(codeString))
1691          return FHIRType.IMMUNIZATIONEVALUATION;
1692        if ("ImmunizationRecommendation".equals(codeString))
1693          return FHIRType.IMMUNIZATIONRECOMMENDATION;
1694        if ("ImplementationGuide".equals(codeString))
1695          return FHIRType.IMPLEMENTATIONGUIDE;
1696        if ("Ingredient".equals(codeString))
1697          return FHIRType.INGREDIENT;
1698        if ("InsurancePlan".equals(codeString))
1699          return FHIRType.INSURANCEPLAN;
1700        if ("Invoice".equals(codeString))
1701          return FHIRType.INVOICE;
1702        if ("Library".equals(codeString))
1703          return FHIRType.LIBRARY;
1704        if ("Linkage".equals(codeString))
1705          return FHIRType.LINKAGE;
1706        if ("List".equals(codeString))
1707          return FHIRType.LIST;
1708        if ("Location".equals(codeString))
1709          return FHIRType.LOCATION;
1710        if ("ManufacturedItemDefinition".equals(codeString))
1711          return FHIRType.MANUFACTUREDITEMDEFINITION;
1712        if ("Measure".equals(codeString))
1713          return FHIRType.MEASURE;
1714        if ("MeasureReport".equals(codeString))
1715          return FHIRType.MEASUREREPORT;
1716        if ("Medication".equals(codeString))
1717          return FHIRType.MEDICATION;
1718        if ("MedicationAdministration".equals(codeString))
1719          return FHIRType.MEDICATIONADMINISTRATION;
1720        if ("MedicationDispense".equals(codeString))
1721          return FHIRType.MEDICATIONDISPENSE;
1722        if ("MedicationKnowledge".equals(codeString))
1723          return FHIRType.MEDICATIONKNOWLEDGE;
1724        if ("MedicationRequest".equals(codeString))
1725          return FHIRType.MEDICATIONREQUEST;
1726        if ("MedicationUsage".equals(codeString))
1727          return FHIRType.MEDICATIONUSAGE;
1728        if ("MedicinalProductDefinition".equals(codeString))
1729          return FHIRType.MEDICINALPRODUCTDEFINITION;
1730        if ("MessageDefinition".equals(codeString))
1731          return FHIRType.MESSAGEDEFINITION;
1732        if ("MessageHeader".equals(codeString))
1733          return FHIRType.MESSAGEHEADER;
1734        if ("MolecularSequence".equals(codeString))
1735          return FHIRType.MOLECULARSEQUENCE;
1736        if ("NamingSystem".equals(codeString))
1737          return FHIRType.NAMINGSYSTEM;
1738        if ("NutritionIntake".equals(codeString))
1739          return FHIRType.NUTRITIONINTAKE;
1740        if ("NutritionOrder".equals(codeString))
1741          return FHIRType.NUTRITIONORDER;
1742        if ("Observation".equals(codeString))
1743          return FHIRType.OBSERVATION;
1744        if ("ObservationDefinition".equals(codeString))
1745          return FHIRType.OBSERVATIONDEFINITION;
1746        if ("OperationDefinition".equals(codeString))
1747          return FHIRType.OPERATIONDEFINITION;
1748        if ("OperationOutcome".equals(codeString))
1749          return FHIRType.OPERATIONOUTCOME;
1750        if ("Organization".equals(codeString))
1751          return FHIRType.ORGANIZATION;
1752        if ("OrganizationAffiliation".equals(codeString))
1753          return FHIRType.ORGANIZATIONAFFILIATION;
1754        if ("PackagedProductDefinition".equals(codeString))
1755          return FHIRType.PACKAGEDPRODUCTDEFINITION;
1756        if ("Parameters".equals(codeString))
1757          return FHIRType.PARAMETERS;
1758        if ("Patient".equals(codeString))
1759          return FHIRType.PATIENT;
1760        if ("PaymentNotice".equals(codeString))
1761          return FHIRType.PAYMENTNOTICE;
1762        if ("PaymentReconciliation".equals(codeString))
1763          return FHIRType.PAYMENTRECONCILIATION;
1764        if ("Person".equals(codeString))
1765          return FHIRType.PERSON;
1766        if ("PlanDefinition".equals(codeString))
1767          return FHIRType.PLANDEFINITION;
1768        if ("Practitioner".equals(codeString))
1769          return FHIRType.PRACTITIONER;
1770        if ("PractitionerRole".equals(codeString))
1771          return FHIRType.PRACTITIONERROLE;
1772        if ("Procedure".equals(codeString))
1773          return FHIRType.PROCEDURE;
1774        if ("Provenance".equals(codeString))
1775          return FHIRType.PROVENANCE;
1776        if ("Questionnaire".equals(codeString))
1777          return FHIRType.QUESTIONNAIRE;
1778        if ("QuestionnaireResponse".equals(codeString))
1779          return FHIRType.QUESTIONNAIRERESPONSE;
1780        if ("RegulatedAuthorization".equals(codeString))
1781          return FHIRType.REGULATEDAUTHORIZATION;
1782        if ("RelatedPerson".equals(codeString))
1783          return FHIRType.RELATEDPERSON;
1784        if ("RequestGroup".equals(codeString))
1785          return FHIRType.REQUESTGROUP;
1786        if ("ResearchStudy".equals(codeString))
1787          return FHIRType.RESEARCHSTUDY;
1788        if ("ResearchSubject".equals(codeString))
1789          return FHIRType.RESEARCHSUBJECT;
1790        if ("Resource".equals(codeString))
1791          return FHIRType.RESOURCE;
1792        if ("RiskAssessment".equals(codeString))
1793          return FHIRType.RISKASSESSMENT;
1794        if ("Schedule".equals(codeString))
1795          return FHIRType.SCHEDULE;
1796        if ("SearchParameter".equals(codeString))
1797          return FHIRType.SEARCHPARAMETER;
1798        if ("ServiceRequest".equals(codeString))
1799          return FHIRType.SERVICEREQUEST;
1800        if ("Slot".equals(codeString))
1801          return FHIRType.SLOT;
1802        if ("Specimen".equals(codeString))
1803          return FHIRType.SPECIMEN;
1804        if ("SpecimenDefinition".equals(codeString))
1805          return FHIRType.SPECIMENDEFINITION;
1806        if ("StructureDefinition".equals(codeString))
1807          return FHIRType.STRUCTUREDEFINITION;
1808        if ("StructureMap".equals(codeString))
1809          return FHIRType.STRUCTUREMAP;
1810        if ("Subscription".equals(codeString))
1811          return FHIRType.SUBSCRIPTION;
1812        if ("Substance".equals(codeString))
1813          return FHIRType.SUBSTANCE;
1814        if ("SubstanceDefinition".equals(codeString))
1815          return FHIRType.SUBSTANCEDEFINITION;
1816        if ("SubstanceNucleicAcid".equals(codeString))
1817          return FHIRType.SUBSTANCENUCLEICACID;
1818        if ("SubstancePolymer".equals(codeString))
1819          return FHIRType.SUBSTANCEPOLYMER;
1820        if ("SubstanceProtein".equals(codeString))
1821          return FHIRType.SUBSTANCEPROTEIN;
1822        if ("SubstanceReferenceInformation".equals(codeString))
1823          return FHIRType.SUBSTANCEREFERENCEINFORMATION;
1824        if ("SubstanceSourceMaterial".equals(codeString))
1825          return FHIRType.SUBSTANCESOURCEMATERIAL;
1826        if ("SupplyDelivery".equals(codeString))
1827          return FHIRType.SUPPLYDELIVERY;
1828        if ("SupplyRequest".equals(codeString))
1829          return FHIRType.SUPPLYREQUEST;
1830        if ("Task".equals(codeString))
1831          return FHIRType.TASK;
1832        if ("TerminologyCapabilities".equals(codeString))
1833          return FHIRType.TERMINOLOGYCAPABILITIES;
1834        if ("TestReport".equals(codeString))
1835          return FHIRType.TESTREPORT;
1836        if ("TestScript".equals(codeString))
1837          return FHIRType.TESTSCRIPT;
1838        if ("Topic".equals(codeString))
1839          return FHIRType.TOPIC;
1840        if ("ValueSet".equals(codeString))
1841          return FHIRType.VALUESET;
1842        if ("VerificationResult".equals(codeString))
1843          return FHIRType.VERIFICATIONRESULT;
1844        if ("VisionPrescription".equals(codeString))
1845          return FHIRType.VISIONPRESCRIPTION;
1846        throw new IllegalArgumentException("Unknown FHIRType code '"+codeString+"'");
1847        }
1848        public Enumeration<FHIRType> fromType(Base code) throws FHIRException {
1849          if (code == null)
1850            return null;
1851          if (code.isEmpty())
1852            return new Enumeration<FHIRType>(this);
1853          String codeString = ((PrimitiveType) code).asStringValue();
1854          if (codeString == null || "".equals(codeString))
1855            return null;
1856        if ("Account".equals(codeString))
1857          return new Enumeration<FHIRType>(this, FHIRType.ACCOUNT);
1858        if ("ActivityDefinition".equals(codeString))
1859          return new Enumeration<FHIRType>(this, FHIRType.ACTIVITYDEFINITION);
1860        if ("AdministrableProductDefinition".equals(codeString))
1861          return new Enumeration<FHIRType>(this, FHIRType.ADMINISTRABLEPRODUCTDEFINITION);
1862        if ("AdverseEvent".equals(codeString))
1863          return new Enumeration<FHIRType>(this, FHIRType.ADVERSEEVENT);
1864        if ("AllergyIntolerance".equals(codeString))
1865          return new Enumeration<FHIRType>(this, FHIRType.ALLERGYINTOLERANCE);
1866        if ("Appointment".equals(codeString))
1867          return new Enumeration<FHIRType>(this, FHIRType.APPOINTMENT);
1868        if ("AppointmentResponse".equals(codeString))
1869          return new Enumeration<FHIRType>(this, FHIRType.APPOINTMENTRESPONSE);
1870        if ("AuditEvent".equals(codeString))
1871          return new Enumeration<FHIRType>(this, FHIRType.AUDITEVENT);
1872        if ("Basic".equals(codeString))
1873          return new Enumeration<FHIRType>(this, FHIRType.BASIC);
1874        if ("Binary".equals(codeString))
1875          return new Enumeration<FHIRType>(this, FHIRType.BINARY);
1876        if ("BiologicallyDerivedProduct".equals(codeString))
1877          return new Enumeration<FHIRType>(this, FHIRType.BIOLOGICALLYDERIVEDPRODUCT);
1878        if ("BodyStructure".equals(codeString))
1879          return new Enumeration<FHIRType>(this, FHIRType.BODYSTRUCTURE);
1880        if ("Bundle".equals(codeString))
1881          return new Enumeration<FHIRType>(this, FHIRType.BUNDLE);
1882        if ("CapabilityStatement".equals(codeString))
1883          return new Enumeration<FHIRType>(this, FHIRType.CAPABILITYSTATEMENT);
1884        if ("CapabilityStatement2".equals(codeString))
1885          return new Enumeration<FHIRType>(this, FHIRType.CAPABILITYSTATEMENT2);
1886        if ("CarePlan".equals(codeString))
1887          return new Enumeration<FHIRType>(this, FHIRType.CAREPLAN);
1888        if ("CareTeam".equals(codeString))
1889          return new Enumeration<FHIRType>(this, FHIRType.CARETEAM);
1890        if ("CatalogEntry".equals(codeString))
1891          return new Enumeration<FHIRType>(this, FHIRType.CATALOGENTRY);
1892        if ("ChargeItem".equals(codeString))
1893          return new Enumeration<FHIRType>(this, FHIRType.CHARGEITEM);
1894        if ("ChargeItemDefinition".equals(codeString))
1895          return new Enumeration<FHIRType>(this, FHIRType.CHARGEITEMDEFINITION);
1896        if ("Claim".equals(codeString))
1897          return new Enumeration<FHIRType>(this, FHIRType.CLAIM);
1898        if ("ClaimResponse".equals(codeString))
1899          return new Enumeration<FHIRType>(this, FHIRType.CLAIMRESPONSE);
1900        if ("ClinicalImpression".equals(codeString))
1901          return new Enumeration<FHIRType>(this, FHIRType.CLINICALIMPRESSION);
1902        if ("ClinicalUseIssue".equals(codeString))
1903          return new Enumeration<FHIRType>(this, FHIRType.CLINICALUSEISSUE);
1904        if ("CodeSystem".equals(codeString))
1905          return new Enumeration<FHIRType>(this, FHIRType.CODESYSTEM);
1906        if ("Communication".equals(codeString))
1907          return new Enumeration<FHIRType>(this, FHIRType.COMMUNICATION);
1908        if ("CommunicationRequest".equals(codeString))
1909          return new Enumeration<FHIRType>(this, FHIRType.COMMUNICATIONREQUEST);
1910        if ("CompartmentDefinition".equals(codeString))
1911          return new Enumeration<FHIRType>(this, FHIRType.COMPARTMENTDEFINITION);
1912        if ("Composition".equals(codeString))
1913          return new Enumeration<FHIRType>(this, FHIRType.COMPOSITION);
1914        if ("ConceptMap".equals(codeString))
1915          return new Enumeration<FHIRType>(this, FHIRType.CONCEPTMAP);
1916        if ("Condition".equals(codeString))
1917          return new Enumeration<FHIRType>(this, FHIRType.CONDITION);
1918        if ("ConditionDefinition".equals(codeString))
1919          return new Enumeration<FHIRType>(this, FHIRType.CONDITIONDEFINITION);
1920        if ("Consent".equals(codeString))
1921          return new Enumeration<FHIRType>(this, FHIRType.CONSENT);
1922        if ("Contract".equals(codeString))
1923          return new Enumeration<FHIRType>(this, FHIRType.CONTRACT);
1924        if ("Coverage".equals(codeString))
1925          return new Enumeration<FHIRType>(this, FHIRType.COVERAGE);
1926        if ("CoverageEligibilityRequest".equals(codeString))
1927          return new Enumeration<FHIRType>(this, FHIRType.COVERAGEELIGIBILITYREQUEST);
1928        if ("CoverageEligibilityResponse".equals(codeString))
1929          return new Enumeration<FHIRType>(this, FHIRType.COVERAGEELIGIBILITYRESPONSE);
1930        if ("DetectedIssue".equals(codeString))
1931          return new Enumeration<FHIRType>(this, FHIRType.DETECTEDISSUE);
1932        if ("Device".equals(codeString))
1933          return new Enumeration<FHIRType>(this, FHIRType.DEVICE);
1934        if ("DeviceDefinition".equals(codeString))
1935          return new Enumeration<FHIRType>(this, FHIRType.DEVICEDEFINITION);
1936        if ("DeviceMetric".equals(codeString))
1937          return new Enumeration<FHIRType>(this, FHIRType.DEVICEMETRIC);
1938        if ("DeviceRequest".equals(codeString))
1939          return new Enumeration<FHIRType>(this, FHIRType.DEVICEREQUEST);
1940        if ("DeviceUseStatement".equals(codeString))
1941          return new Enumeration<FHIRType>(this, FHIRType.DEVICEUSESTATEMENT);
1942        if ("DiagnosticReport".equals(codeString))
1943          return new Enumeration<FHIRType>(this, FHIRType.DIAGNOSTICREPORT);
1944        if ("DocumentManifest".equals(codeString))
1945          return new Enumeration<FHIRType>(this, FHIRType.DOCUMENTMANIFEST);
1946        if ("DocumentReference".equals(codeString))
1947          return new Enumeration<FHIRType>(this, FHIRType.DOCUMENTREFERENCE);
1948        if ("DomainResource".equals(codeString))
1949          return new Enumeration<FHIRType>(this, FHIRType.DOMAINRESOURCE);
1950        if ("Encounter".equals(codeString))
1951          return new Enumeration<FHIRType>(this, FHIRType.ENCOUNTER);
1952        if ("Endpoint".equals(codeString))
1953          return new Enumeration<FHIRType>(this, FHIRType.ENDPOINT);
1954        if ("EnrollmentRequest".equals(codeString))
1955          return new Enumeration<FHIRType>(this, FHIRType.ENROLLMENTREQUEST);
1956        if ("EnrollmentResponse".equals(codeString))
1957          return new Enumeration<FHIRType>(this, FHIRType.ENROLLMENTRESPONSE);
1958        if ("EpisodeOfCare".equals(codeString))
1959          return new Enumeration<FHIRType>(this, FHIRType.EPISODEOFCARE);
1960        if ("EventDefinition".equals(codeString))
1961          return new Enumeration<FHIRType>(this, FHIRType.EVENTDEFINITION);
1962        if ("Evidence".equals(codeString))
1963          return new Enumeration<FHIRType>(this, FHIRType.EVIDENCE);
1964        if ("EvidenceVariable".equals(codeString))
1965          return new Enumeration<FHIRType>(this, FHIRType.EVIDENCEVARIABLE);
1966        if ("ExampleScenario".equals(codeString))
1967          return new Enumeration<FHIRType>(this, FHIRType.EXAMPLESCENARIO);
1968        if ("ExplanationOfBenefit".equals(codeString))
1969          return new Enumeration<FHIRType>(this, FHIRType.EXPLANATIONOFBENEFIT);
1970        if ("FamilyMemberHistory".equals(codeString))
1971          return new Enumeration<FHIRType>(this, FHIRType.FAMILYMEMBERHISTORY);
1972        if ("Flag".equals(codeString))
1973          return new Enumeration<FHIRType>(this, FHIRType.FLAG);
1974        if ("Goal".equals(codeString))
1975          return new Enumeration<FHIRType>(this, FHIRType.GOAL);
1976        if ("GraphDefinition".equals(codeString))
1977          return new Enumeration<FHIRType>(this, FHIRType.GRAPHDEFINITION);
1978        if ("Group".equals(codeString))
1979          return new Enumeration<FHIRType>(this, FHIRType.GROUP);
1980        if ("GuidanceResponse".equals(codeString))
1981          return new Enumeration<FHIRType>(this, FHIRType.GUIDANCERESPONSE);
1982        if ("HealthcareService".equals(codeString))
1983          return new Enumeration<FHIRType>(this, FHIRType.HEALTHCARESERVICE);
1984        if ("ImagingStudy".equals(codeString))
1985          return new Enumeration<FHIRType>(this, FHIRType.IMAGINGSTUDY);
1986        if ("Immunization".equals(codeString))
1987          return new Enumeration<FHIRType>(this, FHIRType.IMMUNIZATION);
1988        if ("ImmunizationEvaluation".equals(codeString))
1989          return new Enumeration<FHIRType>(this, FHIRType.IMMUNIZATIONEVALUATION);
1990        if ("ImmunizationRecommendation".equals(codeString))
1991          return new Enumeration<FHIRType>(this, FHIRType.IMMUNIZATIONRECOMMENDATION);
1992        if ("ImplementationGuide".equals(codeString))
1993          return new Enumeration<FHIRType>(this, FHIRType.IMPLEMENTATIONGUIDE);
1994        if ("Ingredient".equals(codeString))
1995          return new Enumeration<FHIRType>(this, FHIRType.INGREDIENT);
1996        if ("InsurancePlan".equals(codeString))
1997          return new Enumeration<FHIRType>(this, FHIRType.INSURANCEPLAN);
1998        if ("Invoice".equals(codeString))
1999          return new Enumeration<FHIRType>(this, FHIRType.INVOICE);
2000        if ("Library".equals(codeString))
2001          return new Enumeration<FHIRType>(this, FHIRType.LIBRARY);
2002        if ("Linkage".equals(codeString))
2003          return new Enumeration<FHIRType>(this, FHIRType.LINKAGE);
2004        if ("List".equals(codeString))
2005          return new Enumeration<FHIRType>(this, FHIRType.LIST);
2006        if ("Location".equals(codeString))
2007          return new Enumeration<FHIRType>(this, FHIRType.LOCATION);
2008        if ("ManufacturedItemDefinition".equals(codeString))
2009          return new Enumeration<FHIRType>(this, FHIRType.MANUFACTUREDITEMDEFINITION);
2010        if ("Measure".equals(codeString))
2011          return new Enumeration<FHIRType>(this, FHIRType.MEASURE);
2012        if ("MeasureReport".equals(codeString))
2013          return new Enumeration<FHIRType>(this, FHIRType.MEASUREREPORT);
2014        if ("Medication".equals(codeString))
2015          return new Enumeration<FHIRType>(this, FHIRType.MEDICATION);
2016        if ("MedicationAdministration".equals(codeString))
2017          return new Enumeration<FHIRType>(this, FHIRType.MEDICATIONADMINISTRATION);
2018        if ("MedicationDispense".equals(codeString))
2019          return new Enumeration<FHIRType>(this, FHIRType.MEDICATIONDISPENSE);
2020        if ("MedicationKnowledge".equals(codeString))
2021          return new Enumeration<FHIRType>(this, FHIRType.MEDICATIONKNOWLEDGE);
2022        if ("MedicationRequest".equals(codeString))
2023          return new Enumeration<FHIRType>(this, FHIRType.MEDICATIONREQUEST);
2024        if ("MedicationUsage".equals(codeString))
2025          return new Enumeration<FHIRType>(this, FHIRType.MEDICATIONUSAGE);
2026        if ("MedicinalProductDefinition".equals(codeString))
2027          return new Enumeration<FHIRType>(this, FHIRType.MEDICINALPRODUCTDEFINITION);
2028        if ("MessageDefinition".equals(codeString))
2029          return new Enumeration<FHIRType>(this, FHIRType.MESSAGEDEFINITION);
2030        if ("MessageHeader".equals(codeString))
2031          return new Enumeration<FHIRType>(this, FHIRType.MESSAGEHEADER);
2032        if ("MolecularSequence".equals(codeString))
2033          return new Enumeration<FHIRType>(this, FHIRType.MOLECULARSEQUENCE);
2034        if ("NamingSystem".equals(codeString))
2035          return new Enumeration<FHIRType>(this, FHIRType.NAMINGSYSTEM);
2036        if ("NutritionIntake".equals(codeString))
2037          return new Enumeration<FHIRType>(this, FHIRType.NUTRITIONINTAKE);
2038        if ("NutritionOrder".equals(codeString))
2039          return new Enumeration<FHIRType>(this, FHIRType.NUTRITIONORDER);
2040        if ("Observation".equals(codeString))
2041          return new Enumeration<FHIRType>(this, FHIRType.OBSERVATION);
2042        if ("ObservationDefinition".equals(codeString))
2043          return new Enumeration<FHIRType>(this, FHIRType.OBSERVATIONDEFINITION);
2044        if ("OperationDefinition".equals(codeString))
2045          return new Enumeration<FHIRType>(this, FHIRType.OPERATIONDEFINITION);
2046        if ("OperationOutcome".equals(codeString))
2047          return new Enumeration<FHIRType>(this, FHIRType.OPERATIONOUTCOME);
2048        if ("Organization".equals(codeString))
2049          return new Enumeration<FHIRType>(this, FHIRType.ORGANIZATION);
2050        if ("OrganizationAffiliation".equals(codeString))
2051          return new Enumeration<FHIRType>(this, FHIRType.ORGANIZATIONAFFILIATION);
2052        if ("PackagedProductDefinition".equals(codeString))
2053          return new Enumeration<FHIRType>(this, FHIRType.PACKAGEDPRODUCTDEFINITION);
2054        if ("Parameters".equals(codeString))
2055          return new Enumeration<FHIRType>(this, FHIRType.PARAMETERS);
2056        if ("Patient".equals(codeString))
2057          return new Enumeration<FHIRType>(this, FHIRType.PATIENT);
2058        if ("PaymentNotice".equals(codeString))
2059          return new Enumeration<FHIRType>(this, FHIRType.PAYMENTNOTICE);
2060        if ("PaymentReconciliation".equals(codeString))
2061          return new Enumeration<FHIRType>(this, FHIRType.PAYMENTRECONCILIATION);
2062        if ("Person".equals(codeString))
2063          return new Enumeration<FHIRType>(this, FHIRType.PERSON);
2064        if ("PlanDefinition".equals(codeString))
2065          return new Enumeration<FHIRType>(this, FHIRType.PLANDEFINITION);
2066        if ("Practitioner".equals(codeString))
2067          return new Enumeration<FHIRType>(this, FHIRType.PRACTITIONER);
2068        if ("PractitionerRole".equals(codeString))
2069          return new Enumeration<FHIRType>(this, FHIRType.PRACTITIONERROLE);
2070        if ("Procedure".equals(codeString))
2071          return new Enumeration<FHIRType>(this, FHIRType.PROCEDURE);
2072        if ("Provenance".equals(codeString))
2073          return new Enumeration<FHIRType>(this, FHIRType.PROVENANCE);
2074        if ("Questionnaire".equals(codeString))
2075          return new Enumeration<FHIRType>(this, FHIRType.QUESTIONNAIRE);
2076        if ("QuestionnaireResponse".equals(codeString))
2077          return new Enumeration<FHIRType>(this, FHIRType.QUESTIONNAIRERESPONSE);
2078        if ("RegulatedAuthorization".equals(codeString))
2079          return new Enumeration<FHIRType>(this, FHIRType.REGULATEDAUTHORIZATION);
2080        if ("RelatedPerson".equals(codeString))
2081          return new Enumeration<FHIRType>(this, FHIRType.RELATEDPERSON);
2082        if ("RequestGroup".equals(codeString))
2083          return new Enumeration<FHIRType>(this, FHIRType.REQUESTGROUP);
2084        if ("ResearchStudy".equals(codeString))
2085          return new Enumeration<FHIRType>(this, FHIRType.RESEARCHSTUDY);
2086        if ("ResearchSubject".equals(codeString))
2087          return new Enumeration<FHIRType>(this, FHIRType.RESEARCHSUBJECT);
2088        if ("Resource".equals(codeString))
2089          return new Enumeration<FHIRType>(this, FHIRType.RESOURCE);
2090        if ("RiskAssessment".equals(codeString))
2091          return new Enumeration<FHIRType>(this, FHIRType.RISKASSESSMENT);
2092        if ("Schedule".equals(codeString))
2093          return new Enumeration<FHIRType>(this, FHIRType.SCHEDULE);
2094        if ("SearchParameter".equals(codeString))
2095          return new Enumeration<FHIRType>(this, FHIRType.SEARCHPARAMETER);
2096        if ("ServiceRequest".equals(codeString))
2097          return new Enumeration<FHIRType>(this, FHIRType.SERVICEREQUEST);
2098        if ("Slot".equals(codeString))
2099          return new Enumeration<FHIRType>(this, FHIRType.SLOT);
2100        if ("Specimen".equals(codeString))
2101          return new Enumeration<FHIRType>(this, FHIRType.SPECIMEN);
2102        if ("SpecimenDefinition".equals(codeString))
2103          return new Enumeration<FHIRType>(this, FHIRType.SPECIMENDEFINITION);
2104        if ("StructureDefinition".equals(codeString))
2105          return new Enumeration<FHIRType>(this, FHIRType.STRUCTUREDEFINITION);
2106        if ("StructureMap".equals(codeString))
2107          return new Enumeration<FHIRType>(this, FHIRType.STRUCTUREMAP);
2108        if ("Subscription".equals(codeString))
2109          return new Enumeration<FHIRType>(this, FHIRType.SUBSCRIPTION);
2110        if ("Substance".equals(codeString))
2111          return new Enumeration<FHIRType>(this, FHIRType.SUBSTANCE);
2112        if ("SubstanceDefinition".equals(codeString))
2113          return new Enumeration<FHIRType>(this, FHIRType.SUBSTANCEDEFINITION);
2114        if ("SubstanceNucleicAcid".equals(codeString))
2115          return new Enumeration<FHIRType>(this, FHIRType.SUBSTANCENUCLEICACID);
2116        if ("SubstancePolymer".equals(codeString))
2117          return new Enumeration<FHIRType>(this, FHIRType.SUBSTANCEPOLYMER);
2118        if ("SubstanceProtein".equals(codeString))
2119          return new Enumeration<FHIRType>(this, FHIRType.SUBSTANCEPROTEIN);
2120        if ("SubstanceReferenceInformation".equals(codeString))
2121          return new Enumeration<FHIRType>(this, FHIRType.SUBSTANCEREFERENCEINFORMATION);
2122        if ("SubstanceSourceMaterial".equals(codeString))
2123          return new Enumeration<FHIRType>(this, FHIRType.SUBSTANCESOURCEMATERIAL);
2124        if ("SupplyDelivery".equals(codeString))
2125          return new Enumeration<FHIRType>(this, FHIRType.SUPPLYDELIVERY);
2126        if ("SupplyRequest".equals(codeString))
2127          return new Enumeration<FHIRType>(this, FHIRType.SUPPLYREQUEST);
2128        if ("Task".equals(codeString))
2129          return new Enumeration<FHIRType>(this, FHIRType.TASK);
2130        if ("TerminologyCapabilities".equals(codeString))
2131          return new Enumeration<FHIRType>(this, FHIRType.TERMINOLOGYCAPABILITIES);
2132        if ("TestReport".equals(codeString))
2133          return new Enumeration<FHIRType>(this, FHIRType.TESTREPORT);
2134        if ("TestScript".equals(codeString))
2135          return new Enumeration<FHIRType>(this, FHIRType.TESTSCRIPT);
2136        if ("Topic".equals(codeString))
2137          return new Enumeration<FHIRType>(this, FHIRType.TOPIC);
2138        if ("ValueSet".equals(codeString))
2139          return new Enumeration<FHIRType>(this, FHIRType.VALUESET);
2140        if ("VerificationResult".equals(codeString))
2141          return new Enumeration<FHIRType>(this, FHIRType.VERIFICATIONRESULT);
2142        if ("VisionPrescription".equals(codeString))
2143          return new Enumeration<FHIRType>(this, FHIRType.VISIONPRESCRIPTION);
2144        throw new FHIRException("Unknown FHIRType code '"+codeString+"'");
2145        }
2146    public String toCode(FHIRType code) {
2147      if (code == FHIRType.ACCOUNT)
2148        return "Account";
2149      if (code == FHIRType.ACTIVITYDEFINITION)
2150        return "ActivityDefinition";
2151      if (code == FHIRType.ADMINISTRABLEPRODUCTDEFINITION)
2152        return "AdministrableProductDefinition";
2153      if (code == FHIRType.ADVERSEEVENT)
2154        return "AdverseEvent";
2155      if (code == FHIRType.ALLERGYINTOLERANCE)
2156        return "AllergyIntolerance";
2157      if (code == FHIRType.APPOINTMENT)
2158        return "Appointment";
2159      if (code == FHIRType.APPOINTMENTRESPONSE)
2160        return "AppointmentResponse";
2161      if (code == FHIRType.AUDITEVENT)
2162        return "AuditEvent";
2163      if (code == FHIRType.BASIC)
2164        return "Basic";
2165      if (code == FHIRType.BINARY)
2166        return "Binary";
2167      if (code == FHIRType.BIOLOGICALLYDERIVEDPRODUCT)
2168        return "BiologicallyDerivedProduct";
2169      if (code == FHIRType.BODYSTRUCTURE)
2170        return "BodyStructure";
2171      if (code == FHIRType.BUNDLE)
2172        return "Bundle";
2173      if (code == FHIRType.CAPABILITYSTATEMENT)
2174        return "CapabilityStatement";
2175      if (code == FHIRType.CAPABILITYSTATEMENT2)
2176        return "CapabilityStatement2";
2177      if (code == FHIRType.CAREPLAN)
2178        return "CarePlan";
2179      if (code == FHIRType.CARETEAM)
2180        return "CareTeam";
2181      if (code == FHIRType.CATALOGENTRY)
2182        return "CatalogEntry";
2183      if (code == FHIRType.CHARGEITEM)
2184        return "ChargeItem";
2185      if (code == FHIRType.CHARGEITEMDEFINITION)
2186        return "ChargeItemDefinition";
2187      if (code == FHIRType.CLAIM)
2188        return "Claim";
2189      if (code == FHIRType.CLAIMRESPONSE)
2190        return "ClaimResponse";
2191      if (code == FHIRType.CLINICALIMPRESSION)
2192        return "ClinicalImpression";
2193      if (code == FHIRType.CLINICALUSEISSUE)
2194        return "ClinicalUseIssue";
2195      if (code == FHIRType.CODESYSTEM)
2196        return "CodeSystem";
2197      if (code == FHIRType.COMMUNICATION)
2198        return "Communication";
2199      if (code == FHIRType.COMMUNICATIONREQUEST)
2200        return "CommunicationRequest";
2201      if (code == FHIRType.COMPARTMENTDEFINITION)
2202        return "CompartmentDefinition";
2203      if (code == FHIRType.COMPOSITION)
2204        return "Composition";
2205      if (code == FHIRType.CONCEPTMAP)
2206        return "ConceptMap";
2207      if (code == FHIRType.CONDITION)
2208        return "Condition";
2209      if (code == FHIRType.CONDITIONDEFINITION)
2210        return "ConditionDefinition";
2211      if (code == FHIRType.CONSENT)
2212        return "Consent";
2213      if (code == FHIRType.CONTRACT)
2214        return "Contract";
2215      if (code == FHIRType.COVERAGE)
2216        return "Coverage";
2217      if (code == FHIRType.COVERAGEELIGIBILITYREQUEST)
2218        return "CoverageEligibilityRequest";
2219      if (code == FHIRType.COVERAGEELIGIBILITYRESPONSE)
2220        return "CoverageEligibilityResponse";
2221      if (code == FHIRType.DETECTEDISSUE)
2222        return "DetectedIssue";
2223      if (code == FHIRType.DEVICE)
2224        return "Device";
2225      if (code == FHIRType.DEVICEDEFINITION)
2226        return "DeviceDefinition";
2227      if (code == FHIRType.DEVICEMETRIC)
2228        return "DeviceMetric";
2229      if (code == FHIRType.DEVICEREQUEST)
2230        return "DeviceRequest";
2231      if (code == FHIRType.DEVICEUSESTATEMENT)
2232        return "DeviceUseStatement";
2233      if (code == FHIRType.DIAGNOSTICREPORT)
2234        return "DiagnosticReport";
2235      if (code == FHIRType.DOCUMENTMANIFEST)
2236        return "DocumentManifest";
2237      if (code == FHIRType.DOCUMENTREFERENCE)
2238        return "DocumentReference";
2239      if (code == FHIRType.DOMAINRESOURCE)
2240        return "DomainResource";
2241      if (code == FHIRType.ENCOUNTER)
2242        return "Encounter";
2243      if (code == FHIRType.ENDPOINT)
2244        return "Endpoint";
2245      if (code == FHIRType.ENROLLMENTREQUEST)
2246        return "EnrollmentRequest";
2247      if (code == FHIRType.ENROLLMENTRESPONSE)
2248        return "EnrollmentResponse";
2249      if (code == FHIRType.EPISODEOFCARE)
2250        return "EpisodeOfCare";
2251      if (code == FHIRType.EVENTDEFINITION)
2252        return "EventDefinition";
2253      if (code == FHIRType.EVIDENCE)
2254        return "Evidence";
2255      if (code == FHIRType.EVIDENCEVARIABLE)
2256        return "EvidenceVariable";
2257      if (code == FHIRType.EXAMPLESCENARIO)
2258        return "ExampleScenario";
2259      if (code == FHIRType.EXPLANATIONOFBENEFIT)
2260        return "ExplanationOfBenefit";
2261      if (code == FHIRType.FAMILYMEMBERHISTORY)
2262        return "FamilyMemberHistory";
2263      if (code == FHIRType.FLAG)
2264        return "Flag";
2265      if (code == FHIRType.GOAL)
2266        return "Goal";
2267      if (code == FHIRType.GRAPHDEFINITION)
2268        return "GraphDefinition";
2269      if (code == FHIRType.GROUP)
2270        return "Group";
2271      if (code == FHIRType.GUIDANCERESPONSE)
2272        return "GuidanceResponse";
2273      if (code == FHIRType.HEALTHCARESERVICE)
2274        return "HealthcareService";
2275      if (code == FHIRType.IMAGINGSTUDY)
2276        return "ImagingStudy";
2277      if (code == FHIRType.IMMUNIZATION)
2278        return "Immunization";
2279      if (code == FHIRType.IMMUNIZATIONEVALUATION)
2280        return "ImmunizationEvaluation";
2281      if (code == FHIRType.IMMUNIZATIONRECOMMENDATION)
2282        return "ImmunizationRecommendation";
2283      if (code == FHIRType.IMPLEMENTATIONGUIDE)
2284        return "ImplementationGuide";
2285      if (code == FHIRType.INGREDIENT)
2286        return "Ingredient";
2287      if (code == FHIRType.INSURANCEPLAN)
2288        return "InsurancePlan";
2289      if (code == FHIRType.INVOICE)
2290        return "Invoice";
2291      if (code == FHIRType.LIBRARY)
2292        return "Library";
2293      if (code == FHIRType.LINKAGE)
2294        return "Linkage";
2295      if (code == FHIRType.LIST)
2296        return "List";
2297      if (code == FHIRType.LOCATION)
2298        return "Location";
2299      if (code == FHIRType.MANUFACTUREDITEMDEFINITION)
2300        return "ManufacturedItemDefinition";
2301      if (code == FHIRType.MEASURE)
2302        return "Measure";
2303      if (code == FHIRType.MEASUREREPORT)
2304        return "MeasureReport";
2305      if (code == FHIRType.MEDICATION)
2306        return "Medication";
2307      if (code == FHIRType.MEDICATIONADMINISTRATION)
2308        return "MedicationAdministration";
2309      if (code == FHIRType.MEDICATIONDISPENSE)
2310        return "MedicationDispense";
2311      if (code == FHIRType.MEDICATIONKNOWLEDGE)
2312        return "MedicationKnowledge";
2313      if (code == FHIRType.MEDICATIONREQUEST)
2314        return "MedicationRequest";
2315      if (code == FHIRType.MEDICATIONUSAGE)
2316        return "MedicationUsage";
2317      if (code == FHIRType.MEDICINALPRODUCTDEFINITION)
2318        return "MedicinalProductDefinition";
2319      if (code == FHIRType.MESSAGEDEFINITION)
2320        return "MessageDefinition";
2321      if (code == FHIRType.MESSAGEHEADER)
2322        return "MessageHeader";
2323      if (code == FHIRType.MOLECULARSEQUENCE)
2324        return "MolecularSequence";
2325      if (code == FHIRType.NAMINGSYSTEM)
2326        return "NamingSystem";
2327      if (code == FHIRType.NUTRITIONINTAKE)
2328        return "NutritionIntake";
2329      if (code == FHIRType.NUTRITIONORDER)
2330        return "NutritionOrder";
2331      if (code == FHIRType.OBSERVATION)
2332        return "Observation";
2333      if (code == FHIRType.OBSERVATIONDEFINITION)
2334        return "ObservationDefinition";
2335      if (code == FHIRType.OPERATIONDEFINITION)
2336        return "OperationDefinition";
2337      if (code == FHIRType.OPERATIONOUTCOME)
2338        return "OperationOutcome";
2339      if (code == FHIRType.ORGANIZATION)
2340        return "Organization";
2341      if (code == FHIRType.ORGANIZATIONAFFILIATION)
2342        return "OrganizationAffiliation";
2343      if (code == FHIRType.PACKAGEDPRODUCTDEFINITION)
2344        return "PackagedProductDefinition";
2345      if (code == FHIRType.PARAMETERS)
2346        return "Parameters";
2347      if (code == FHIRType.PATIENT)
2348        return "Patient";
2349      if (code == FHIRType.PAYMENTNOTICE)
2350        return "PaymentNotice";
2351      if (code == FHIRType.PAYMENTRECONCILIATION)
2352        return "PaymentReconciliation";
2353      if (code == FHIRType.PERSON)
2354        return "Person";
2355      if (code == FHIRType.PLANDEFINITION)
2356        return "PlanDefinition";
2357      if (code == FHIRType.PRACTITIONER)
2358        return "Practitioner";
2359      if (code == FHIRType.PRACTITIONERROLE)
2360        return "PractitionerRole";
2361      if (code == FHIRType.PROCEDURE)
2362        return "Procedure";
2363      if (code == FHIRType.PROVENANCE)
2364        return "Provenance";
2365      if (code == FHIRType.QUESTIONNAIRE)
2366        return "Questionnaire";
2367      if (code == FHIRType.QUESTIONNAIRERESPONSE)
2368        return "QuestionnaireResponse";
2369      if (code == FHIRType.REGULATEDAUTHORIZATION)
2370        return "RegulatedAuthorization";
2371      if (code == FHIRType.RELATEDPERSON)
2372        return "RelatedPerson";
2373      if (code == FHIRType.REQUESTGROUP)
2374        return "RequestGroup";
2375      if (code == FHIRType.RESEARCHSTUDY)
2376        return "ResearchStudy";
2377      if (code == FHIRType.RESEARCHSUBJECT)
2378        return "ResearchSubject";
2379      if (code == FHIRType.RESOURCE)
2380        return "Resource";
2381      if (code == FHIRType.RISKASSESSMENT)
2382        return "RiskAssessment";
2383      if (code == FHIRType.SCHEDULE)
2384        return "Schedule";
2385      if (code == FHIRType.SEARCHPARAMETER)
2386        return "SearchParameter";
2387      if (code == FHIRType.SERVICEREQUEST)
2388        return "ServiceRequest";
2389      if (code == FHIRType.SLOT)
2390        return "Slot";
2391      if (code == FHIRType.SPECIMEN)
2392        return "Specimen";
2393      if (code == FHIRType.SPECIMENDEFINITION)
2394        return "SpecimenDefinition";
2395      if (code == FHIRType.STRUCTUREDEFINITION)
2396        return "StructureDefinition";
2397      if (code == FHIRType.STRUCTUREMAP)
2398        return "StructureMap";
2399      if (code == FHIRType.SUBSCRIPTION)
2400        return "Subscription";
2401      if (code == FHIRType.SUBSTANCE)
2402        return "Substance";
2403      if (code == FHIRType.SUBSTANCEDEFINITION)
2404        return "SubstanceDefinition";
2405      if (code == FHIRType.SUBSTANCENUCLEICACID)
2406        return "SubstanceNucleicAcid";
2407      if (code == FHIRType.SUBSTANCEPOLYMER)
2408        return "SubstancePolymer";
2409      if (code == FHIRType.SUBSTANCEPROTEIN)
2410        return "SubstanceProtein";
2411      if (code == FHIRType.SUBSTANCEREFERENCEINFORMATION)
2412        return "SubstanceReferenceInformation";
2413      if (code == FHIRType.SUBSTANCESOURCEMATERIAL)
2414        return "SubstanceSourceMaterial";
2415      if (code == FHIRType.SUPPLYDELIVERY)
2416        return "SupplyDelivery";
2417      if (code == FHIRType.SUPPLYREQUEST)
2418        return "SupplyRequest";
2419      if (code == FHIRType.TASK)
2420        return "Task";
2421      if (code == FHIRType.TERMINOLOGYCAPABILITIES)
2422        return "TerminologyCapabilities";
2423      if (code == FHIRType.TESTREPORT)
2424        return "TestReport";
2425      if (code == FHIRType.TESTSCRIPT)
2426        return "TestScript";
2427      if (code == FHIRType.TOPIC)
2428        return "Topic";
2429      if (code == FHIRType.VALUESET)
2430        return "ValueSet";
2431      if (code == FHIRType.VERIFICATIONRESULT)
2432        return "VerificationResult";
2433      if (code == FHIRType.VISIONPRESCRIPTION)
2434        return "VisionPrescription";
2435      return "?";
2436      }
2437    public String toSystem(FHIRType code) {
2438      return code.getSystem();
2439      }
2440    }
2441
2442    public enum MethodCode {
2443        /**
2444         * null
2445         */
2446        CREATE, 
2447        /**
2448         * null
2449         */
2450        UPDATE, 
2451        /**
2452         * null
2453         */
2454        DELETE, 
2455        /**
2456         * added to help the parsers with the generic types
2457         */
2458        NULL;
2459        public static MethodCode fromCode(String codeString) throws FHIRException {
2460            if (codeString == null || "".equals(codeString))
2461                return null;
2462        if ("create".equals(codeString))
2463          return CREATE;
2464        if ("update".equals(codeString))
2465          return UPDATE;
2466        if ("delete".equals(codeString))
2467          return DELETE;
2468        if (Configuration.isAcceptInvalidEnums())
2469          return null;
2470        else
2471          throw new FHIRException("Unknown MethodCode code '"+codeString+"'");
2472        }
2473        public String toCode() {
2474          switch (this) {
2475            case CREATE: return "create";
2476            case UPDATE: return "update";
2477            case DELETE: return "delete";
2478            default: return "?";
2479          }
2480        }
2481        public String getSystem() {
2482          switch (this) {
2483            case CREATE: return "http://hl7.org/fhir/restful-interaction";
2484            case UPDATE: return "http://hl7.org/fhir/restful-interaction";
2485            case DELETE: return "http://hl7.org/fhir/restful-interaction";
2486            default: return "?";
2487          }
2488        }
2489        public String getDefinition() {
2490          switch (this) {
2491            case CREATE: return "";
2492            case UPDATE: return "";
2493            case DELETE: return "";
2494            default: return "?";
2495          }
2496        }
2497        public String getDisplay() {
2498          switch (this) {
2499            case CREATE: return "create";
2500            case UPDATE: return "update";
2501            case DELETE: return "delete";
2502            default: return "?";
2503          }
2504        }
2505    }
2506
2507  public static class MethodCodeEnumFactory implements EnumFactory<MethodCode> {
2508    public MethodCode fromCode(String codeString) throws IllegalArgumentException {
2509      if (codeString == null || "".equals(codeString))
2510            if (codeString == null || "".equals(codeString))
2511                return null;
2512        if ("create".equals(codeString))
2513          return MethodCode.CREATE;
2514        if ("update".equals(codeString))
2515          return MethodCode.UPDATE;
2516        if ("delete".equals(codeString))
2517          return MethodCode.DELETE;
2518        throw new IllegalArgumentException("Unknown MethodCode code '"+codeString+"'");
2519        }
2520        public Enumeration<MethodCode> fromType(Base code) throws FHIRException {
2521          if (code == null)
2522            return null;
2523          if (code.isEmpty())
2524            return new Enumeration<MethodCode>(this);
2525          String codeString = ((PrimitiveType) code).asStringValue();
2526          if (codeString == null || "".equals(codeString))
2527            return null;
2528        if ("create".equals(codeString))
2529          return new Enumeration<MethodCode>(this, MethodCode.CREATE);
2530        if ("update".equals(codeString))
2531          return new Enumeration<MethodCode>(this, MethodCode.UPDATE);
2532        if ("delete".equals(codeString))
2533          return new Enumeration<MethodCode>(this, MethodCode.DELETE);
2534        throw new FHIRException("Unknown MethodCode code '"+codeString+"'");
2535        }
2536    public String toCode(MethodCode code) {
2537      if (code == MethodCode.CREATE)
2538        return "create";
2539      if (code == MethodCode.UPDATE)
2540        return "update";
2541      if (code == MethodCode.DELETE)
2542        return "delete";
2543      return "?";
2544      }
2545    public String toSystem(MethodCode code) {
2546      return code.getSystem();
2547      }
2548    }
2549
2550    public enum TopicFilterByMatchType {
2551        /**
2552         * Used to match a value according to FHIR Search rules (e.g., Patient/123, Encounter/2002).
2553         */
2554        EQUAL, 
2555        /**
2556         * The key value in the topic stream is an active members of the reference set identified by the concept provided as the filter value.
2557         */
2558        IN, 
2559        /**
2560         * The key value in the topic stream is NOT an active members of the reference set identified by the concept provided as the filter value.
2561         */
2562        NOTIN, 
2563        /**
2564         * The key value is subsumes the value in the filter value.
2565         */
2566        ABOVE, 
2567        /**
2568         * The key value is subsumed by the value in the filter value.
2569         */
2570        BELOW, 
2571        /**
2572         * added to help the parsers with the generic types
2573         */
2574        NULL;
2575        public static TopicFilterByMatchType fromCode(String codeString) throws FHIRException {
2576            if (codeString == null || "".equals(codeString))
2577                return null;
2578        if ("=".equals(codeString))
2579          return EQUAL;
2580        if ("in".equals(codeString))
2581          return IN;
2582        if ("not-in".equals(codeString))
2583          return NOTIN;
2584        if ("above".equals(codeString))
2585          return ABOVE;
2586        if ("below".equals(codeString))
2587          return BELOW;
2588        if (Configuration.isAcceptInvalidEnums())
2589          return null;
2590        else
2591          throw new FHIRException("Unknown TopicFilterByMatchType code '"+codeString+"'");
2592        }
2593        public String toCode() {
2594          switch (this) {
2595            case EQUAL: return "=";
2596            case IN: return "in";
2597            case NOTIN: return "not-in";
2598            case ABOVE: return "above";
2599            case BELOW: return "below";
2600            default: return "?";
2601          }
2602        }
2603        public String getSystem() {
2604          switch (this) {
2605            case EQUAL: return "http://hl7.org/fhir/topic-match-operator";
2606            case IN: return "http://hl7.org/fhir/topic-match-operator";
2607            case NOTIN: return "http://hl7.org/fhir/topic-match-operator";
2608            case ABOVE: return "http://hl7.org/fhir/topic-match-operator";
2609            case BELOW: return "http://hl7.org/fhir/topic-match-operator";
2610            default: return "?";
2611          }
2612        }
2613        public String getDefinition() {
2614          switch (this) {
2615            case EQUAL: return "Used to match a value according to FHIR Search rules (e.g., Patient/123, Encounter/2002).";
2616            case IN: return "The key value in the topic stream is an active members of the reference set identified by the concept provided as the filter value.";
2617            case NOTIN: return "The key value in the topic stream is NOT an active members of the reference set identified by the concept provided as the filter value.";
2618            case ABOVE: return "The key value is subsumes the value in the filter value.";
2619            case BELOW: return "The key value is subsumed by the value in the filter value.";
2620            default: return "?";
2621          }
2622        }
2623        public String getDisplay() {
2624          switch (this) {
2625            case EQUAL: return "=";
2626            case IN: return "in";
2627            case NOTIN: return "not-in";
2628            case ABOVE: return "above";
2629            case BELOW: return "below";
2630            default: return "?";
2631          }
2632        }
2633    }
2634
2635  public static class TopicFilterByMatchTypeEnumFactory implements EnumFactory<TopicFilterByMatchType> {
2636    public TopicFilterByMatchType fromCode(String codeString) throws IllegalArgumentException {
2637      if (codeString == null || "".equals(codeString))
2638            if (codeString == null || "".equals(codeString))
2639                return null;
2640        if ("=".equals(codeString))
2641          return TopicFilterByMatchType.EQUAL;
2642        if ("in".equals(codeString))
2643          return TopicFilterByMatchType.IN;
2644        if ("not-in".equals(codeString))
2645          return TopicFilterByMatchType.NOTIN;
2646        if ("above".equals(codeString))
2647          return TopicFilterByMatchType.ABOVE;
2648        if ("below".equals(codeString))
2649          return TopicFilterByMatchType.BELOW;
2650        throw new IllegalArgumentException("Unknown TopicFilterByMatchType code '"+codeString+"'");
2651        }
2652        public Enumeration<TopicFilterByMatchType> fromType(Base code) throws FHIRException {
2653          if (code == null)
2654            return null;
2655          if (code.isEmpty())
2656            return new Enumeration<TopicFilterByMatchType>(this);
2657          String codeString = ((PrimitiveType) code).asStringValue();
2658          if (codeString == null || "".equals(codeString))
2659            return null;
2660        if ("=".equals(codeString))
2661          return new Enumeration<TopicFilterByMatchType>(this, TopicFilterByMatchType.EQUAL);
2662        if ("in".equals(codeString))
2663          return new Enumeration<TopicFilterByMatchType>(this, TopicFilterByMatchType.IN);
2664        if ("not-in".equals(codeString))
2665          return new Enumeration<TopicFilterByMatchType>(this, TopicFilterByMatchType.NOTIN);
2666        if ("above".equals(codeString))
2667          return new Enumeration<TopicFilterByMatchType>(this, TopicFilterByMatchType.ABOVE);
2668        if ("below".equals(codeString))
2669          return new Enumeration<TopicFilterByMatchType>(this, TopicFilterByMatchType.BELOW);
2670        throw new FHIRException("Unknown TopicFilterByMatchType code '"+codeString+"'");
2671        }
2672    public String toCode(TopicFilterByMatchType code) {
2673      if (code == TopicFilterByMatchType.EQUAL)
2674        return "=";
2675      if (code == TopicFilterByMatchType.IN)
2676        return "in";
2677      if (code == TopicFilterByMatchType.NOTIN)
2678        return "not-in";
2679      if (code == TopicFilterByMatchType.ABOVE)
2680        return "above";
2681      if (code == TopicFilterByMatchType.BELOW)
2682        return "below";
2683      return "?";
2684      }
2685    public String toSystem(TopicFilterByMatchType code) {
2686      return code.getSystem();
2687      }
2688    }
2689
2690    @Block()
2691    public static class TopicResourceTriggerComponent extends BackboneElement implements IBaseBackboneElement {
2692        /**
2693         * The human readable description of what triggers inclusion into this topic -  for example, "Beginning of a clinical encounter".
2694         */
2695        @Child(name = "description", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=true)
2696        @Description(shortDefinition="Text representation of the trigger", formalDefinition="The human readable description of what triggers inclusion into this topic -  for example, \"Beginning of a clinical encounter\"." )
2697        protected StringType description;
2698
2699        /**
2700         * The list of resource types that are candidates for this topic.  For example, the Encounter resource is updated in an 'admission' topic.
2701         */
2702        @Child(name = "resourceType", type = {CodeType.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
2703        @Description(shortDefinition="Candidate types for this topic", formalDefinition="The list of resource types that are candidates for this topic.  For example, the Encounter resource is updated in an 'admission' topic." )
2704        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/resource-types")
2705        protected List<Enumeration<FHIRType>> resourceType;
2706
2707        /**
2708         * The REST interaction based rules that the server should use to determine when to trigger a notification for this topic.
2709         */
2710        @Child(name = "methodCriteria", type = {CodeType.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
2711        @Description(shortDefinition="create | update | delete", formalDefinition="The REST interaction based rules that the server should use to determine when to trigger a notification for this topic." )
2712        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/interaction-trigger")
2713        protected List<Enumeration<MethodCode>> methodCriteria;
2714
2715        /**
2716         * The FHIR query based rules that the server should use to determine when to trigger a notification for this topic.
2717         */
2718        @Child(name = "queryCriteria", type = {}, order=4, min=0, max=1, modifier=false, summary=true)
2719        @Description(shortDefinition="Query based trigger rule", formalDefinition="The FHIR query based rules that the server should use to determine when to trigger a notification for this topic." )
2720        protected TopicResourceTriggerQueryCriteriaComponent queryCriteria;
2721
2722        /**
2723         * The FHIRPath based rules that the server should use to determine when to trigger a notification for this topic.
2724         */
2725        @Child(name = "fhirPathCriteria", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=true)
2726        @Description(shortDefinition="FHIRPath based trigger rule", formalDefinition="The FHIRPath based rules that the server should use to determine when to trigger a notification for this topic." )
2727        protected StringType fhirPathCriteria;
2728
2729        private static final long serialVersionUID = 191150436L;
2730
2731    /**
2732     * Constructor
2733     */
2734      public TopicResourceTriggerComponent() {
2735        super();
2736      }
2737
2738        /**
2739         * @return {@link #description} (The human readable description of what triggers inclusion into this topic -  for example, "Beginning of a clinical encounter".). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
2740         */
2741        public StringType getDescriptionElement() { 
2742          if (this.description == null)
2743            if (Configuration.errorOnAutoCreate())
2744              throw new Error("Attempt to auto-create TopicResourceTriggerComponent.description");
2745            else if (Configuration.doAutoCreate())
2746              this.description = new StringType(); // bb
2747          return this.description;
2748        }
2749
2750        public boolean hasDescriptionElement() { 
2751          return this.description != null && !this.description.isEmpty();
2752        }
2753
2754        public boolean hasDescription() { 
2755          return this.description != null && !this.description.isEmpty();
2756        }
2757
2758        /**
2759         * @param value {@link #description} (The human readable description of what triggers inclusion into this topic -  for example, "Beginning of a clinical encounter".). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
2760         */
2761        public TopicResourceTriggerComponent setDescriptionElement(StringType value) { 
2762          this.description = value;
2763          return this;
2764        }
2765
2766        /**
2767         * @return The human readable description of what triggers inclusion into this topic -  for example, "Beginning of a clinical encounter".
2768         */
2769        public String getDescription() { 
2770          return this.description == null ? null : this.description.getValue();
2771        }
2772
2773        /**
2774         * @param value The human readable description of what triggers inclusion into this topic -  for example, "Beginning of a clinical encounter".
2775         */
2776        public TopicResourceTriggerComponent setDescription(String value) { 
2777          if (Utilities.noString(value))
2778            this.description = null;
2779          else {
2780            if (this.description == null)
2781              this.description = new StringType();
2782            this.description.setValue(value);
2783          }
2784          return this;
2785        }
2786
2787        /**
2788         * @return {@link #resourceType} (The list of resource types that are candidates for this topic.  For example, the Encounter resource is updated in an 'admission' topic.)
2789         */
2790        public List<Enumeration<FHIRType>> getResourceType() { 
2791          if (this.resourceType == null)
2792            this.resourceType = new ArrayList<Enumeration<FHIRType>>();
2793          return this.resourceType;
2794        }
2795
2796        /**
2797         * @return Returns a reference to <code>this</code> for easy method chaining
2798         */
2799        public TopicResourceTriggerComponent setResourceType(List<Enumeration<FHIRType>> theResourceType) { 
2800          this.resourceType = theResourceType;
2801          return this;
2802        }
2803
2804        public boolean hasResourceType() { 
2805          if (this.resourceType == null)
2806            return false;
2807          for (Enumeration<FHIRType> item : this.resourceType)
2808            if (!item.isEmpty())
2809              return true;
2810          return false;
2811        }
2812
2813        /**
2814         * @return {@link #resourceType} (The list of resource types that are candidates for this topic.  For example, the Encounter resource is updated in an 'admission' topic.)
2815         */
2816        public Enumeration<FHIRType> addResourceTypeElement() {//2 
2817          Enumeration<FHIRType> t = new Enumeration<FHIRType>(new FHIRTypeEnumFactory());
2818          if (this.resourceType == null)
2819            this.resourceType = new ArrayList<Enumeration<FHIRType>>();
2820          this.resourceType.add(t);
2821          return t;
2822        }
2823
2824        /**
2825         * @param value {@link #resourceType} (The list of resource types that are candidates for this topic.  For example, the Encounter resource is updated in an 'admission' topic.)
2826         */
2827        public TopicResourceTriggerComponent addResourceType(FHIRType value) { //1
2828          Enumeration<FHIRType> t = new Enumeration<FHIRType>(new FHIRTypeEnumFactory());
2829          t.setValue(value);
2830          if (this.resourceType == null)
2831            this.resourceType = new ArrayList<Enumeration<FHIRType>>();
2832          this.resourceType.add(t);
2833          return this;
2834        }
2835
2836        /**
2837         * @param value {@link #resourceType} (The list of resource types that are candidates for this topic.  For example, the Encounter resource is updated in an 'admission' topic.)
2838         */
2839        public boolean hasResourceType(FHIRType value) { 
2840          if (this.resourceType == null)
2841            return false;
2842          for (Enumeration<FHIRType> v : this.resourceType)
2843            if (v.getValue().equals(value)) // code
2844              return true;
2845          return false;
2846        }
2847
2848        /**
2849         * @return {@link #methodCriteria} (The REST interaction based rules that the server should use to determine when to trigger a notification for this topic.)
2850         */
2851        public List<Enumeration<MethodCode>> getMethodCriteria() { 
2852          if (this.methodCriteria == null)
2853            this.methodCriteria = new ArrayList<Enumeration<MethodCode>>();
2854          return this.methodCriteria;
2855        }
2856
2857        /**
2858         * @return Returns a reference to <code>this</code> for easy method chaining
2859         */
2860        public TopicResourceTriggerComponent setMethodCriteria(List<Enumeration<MethodCode>> theMethodCriteria) { 
2861          this.methodCriteria = theMethodCriteria;
2862          return this;
2863        }
2864
2865        public boolean hasMethodCriteria() { 
2866          if (this.methodCriteria == null)
2867            return false;
2868          for (Enumeration<MethodCode> item : this.methodCriteria)
2869            if (!item.isEmpty())
2870              return true;
2871          return false;
2872        }
2873
2874        /**
2875         * @return {@link #methodCriteria} (The REST interaction based rules that the server should use to determine when to trigger a notification for this topic.)
2876         */
2877        public Enumeration<MethodCode> addMethodCriteriaElement() {//2 
2878          Enumeration<MethodCode> t = new Enumeration<MethodCode>(new MethodCodeEnumFactory());
2879          if (this.methodCriteria == null)
2880            this.methodCriteria = new ArrayList<Enumeration<MethodCode>>();
2881          this.methodCriteria.add(t);
2882          return t;
2883        }
2884
2885        /**
2886         * @param value {@link #methodCriteria} (The REST interaction based rules that the server should use to determine when to trigger a notification for this topic.)
2887         */
2888        public TopicResourceTriggerComponent addMethodCriteria(MethodCode value) { //1
2889          Enumeration<MethodCode> t = new Enumeration<MethodCode>(new MethodCodeEnumFactory());
2890          t.setValue(value);
2891          if (this.methodCriteria == null)
2892            this.methodCriteria = new ArrayList<Enumeration<MethodCode>>();
2893          this.methodCriteria.add(t);
2894          return this;
2895        }
2896
2897        /**
2898         * @param value {@link #methodCriteria} (The REST interaction based rules that the server should use to determine when to trigger a notification for this topic.)
2899         */
2900        public boolean hasMethodCriteria(MethodCode value) { 
2901          if (this.methodCriteria == null)
2902            return false;
2903          for (Enumeration<MethodCode> v : this.methodCriteria)
2904            if (v.getValue().equals(value)) // code
2905              return true;
2906          return false;
2907        }
2908
2909        /**
2910         * @return {@link #queryCriteria} (The FHIR query based rules that the server should use to determine when to trigger a notification for this topic.)
2911         */
2912        public TopicResourceTriggerQueryCriteriaComponent getQueryCriteria() { 
2913          if (this.queryCriteria == null)
2914            if (Configuration.errorOnAutoCreate())
2915              throw new Error("Attempt to auto-create TopicResourceTriggerComponent.queryCriteria");
2916            else if (Configuration.doAutoCreate())
2917              this.queryCriteria = new TopicResourceTriggerQueryCriteriaComponent(); // cc
2918          return this.queryCriteria;
2919        }
2920
2921        public boolean hasQueryCriteria() { 
2922          return this.queryCriteria != null && !this.queryCriteria.isEmpty();
2923        }
2924
2925        /**
2926         * @param value {@link #queryCriteria} (The FHIR query based rules that the server should use to determine when to trigger a notification for this topic.)
2927         */
2928        public TopicResourceTriggerComponent setQueryCriteria(TopicResourceTriggerQueryCriteriaComponent value) { 
2929          this.queryCriteria = value;
2930          return this;
2931        }
2932
2933        /**
2934         * @return {@link #fhirPathCriteria} (The FHIRPath based rules that the server should use to determine when to trigger a notification for this topic.). This is the underlying object with id, value and extensions. The accessor "getFhirPathCriteria" gives direct access to the value
2935         */
2936        public StringType getFhirPathCriteriaElement() { 
2937          if (this.fhirPathCriteria == null)
2938            if (Configuration.errorOnAutoCreate())
2939              throw new Error("Attempt to auto-create TopicResourceTriggerComponent.fhirPathCriteria");
2940            else if (Configuration.doAutoCreate())
2941              this.fhirPathCriteria = new StringType(); // bb
2942          return this.fhirPathCriteria;
2943        }
2944
2945        public boolean hasFhirPathCriteriaElement() { 
2946          return this.fhirPathCriteria != null && !this.fhirPathCriteria.isEmpty();
2947        }
2948
2949        public boolean hasFhirPathCriteria() { 
2950          return this.fhirPathCriteria != null && !this.fhirPathCriteria.isEmpty();
2951        }
2952
2953        /**
2954         * @param value {@link #fhirPathCriteria} (The FHIRPath based rules that the server should use to determine when to trigger a notification for this topic.). This is the underlying object with id, value and extensions. The accessor "getFhirPathCriteria" gives direct access to the value
2955         */
2956        public TopicResourceTriggerComponent setFhirPathCriteriaElement(StringType value) { 
2957          this.fhirPathCriteria = value;
2958          return this;
2959        }
2960
2961        /**
2962         * @return The FHIRPath based rules that the server should use to determine when to trigger a notification for this topic.
2963         */
2964        public String getFhirPathCriteria() { 
2965          return this.fhirPathCriteria == null ? null : this.fhirPathCriteria.getValue();
2966        }
2967
2968        /**
2969         * @param value The FHIRPath based rules that the server should use to determine when to trigger a notification for this topic.
2970         */
2971        public TopicResourceTriggerComponent setFhirPathCriteria(String value) { 
2972          if (Utilities.noString(value))
2973            this.fhirPathCriteria = null;
2974          else {
2975            if (this.fhirPathCriteria == null)
2976              this.fhirPathCriteria = new StringType();
2977            this.fhirPathCriteria.setValue(value);
2978          }
2979          return this;
2980        }
2981
2982        protected void listChildren(List<Property> children) {
2983          super.listChildren(children);
2984          children.add(new Property("description", "string", "The human readable description of what triggers inclusion into this topic -  for example, \"Beginning of a clinical encounter\".", 0, 1, description));
2985          children.add(new Property("resourceType", "code", "The list of resource types that are candidates for this topic.  For example, the Encounter resource is updated in an 'admission' topic.", 0, java.lang.Integer.MAX_VALUE, resourceType));
2986          children.add(new Property("methodCriteria", "code", "The REST interaction based rules that the server should use to determine when to trigger a notification for this topic.", 0, java.lang.Integer.MAX_VALUE, methodCriteria));
2987          children.add(new Property("queryCriteria", "", "The FHIR query based rules that the server should use to determine when to trigger a notification for this topic.", 0, 1, queryCriteria));
2988          children.add(new Property("fhirPathCriteria", "string", "The FHIRPath based rules that the server should use to determine when to trigger a notification for this topic.", 0, 1, fhirPathCriteria));
2989        }
2990
2991        @Override
2992        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
2993          switch (_hash) {
2994          case -1724546052: /*description*/  return new Property("description", "string", "The human readable description of what triggers inclusion into this topic -  for example, \"Beginning of a clinical encounter\".", 0, 1, description);
2995          case -384364440: /*resourceType*/  return new Property("resourceType", "code", "The list of resource types that are candidates for this topic.  For example, the Encounter resource is updated in an 'admission' topic.", 0, java.lang.Integer.MAX_VALUE, resourceType);
2996          case -1924160672: /*methodCriteria*/  return new Property("methodCriteria", "code", "The REST interaction based rules that the server should use to determine when to trigger a notification for this topic.", 0, java.lang.Integer.MAX_VALUE, methodCriteria);
2997          case -545123257: /*queryCriteria*/  return new Property("queryCriteria", "", "The FHIR query based rules that the server should use to determine when to trigger a notification for this topic.", 0, 1, queryCriteria);
2998          case 1929785263: /*fhirPathCriteria*/  return new Property("fhirPathCriteria", "string", "The FHIRPath based rules that the server should use to determine when to trigger a notification for this topic.", 0, 1, fhirPathCriteria);
2999          default: return super.getNamedProperty(_hash, _name, _checkValid);
3000          }
3001
3002        }
3003
3004      @Override
3005      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
3006        switch (hash) {
3007        case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType
3008        case -384364440: /*resourceType*/ return this.resourceType == null ? new Base[0] : this.resourceType.toArray(new Base[this.resourceType.size()]); // Enumeration<FHIRType>
3009        case -1924160672: /*methodCriteria*/ return this.methodCriteria == null ? new Base[0] : this.methodCriteria.toArray(new Base[this.methodCriteria.size()]); // Enumeration<MethodCode>
3010        case -545123257: /*queryCriteria*/ return this.queryCriteria == null ? new Base[0] : new Base[] {this.queryCriteria}; // TopicResourceTriggerQueryCriteriaComponent
3011        case 1929785263: /*fhirPathCriteria*/ return this.fhirPathCriteria == null ? new Base[0] : new Base[] {this.fhirPathCriteria}; // StringType
3012        default: return super.getProperty(hash, name, checkValid);
3013        }
3014
3015      }
3016
3017      @Override
3018      public Base setProperty(int hash, String name, Base value) throws FHIRException {
3019        switch (hash) {
3020        case -1724546052: // description
3021          this.description = castToString(value); // StringType
3022          return value;
3023        case -384364440: // resourceType
3024          value = new FHIRTypeEnumFactory().fromType(castToCode(value));
3025          this.getResourceType().add((Enumeration) value); // Enumeration<FHIRType>
3026          return value;
3027        case -1924160672: // methodCriteria
3028          value = new MethodCodeEnumFactory().fromType(castToCode(value));
3029          this.getMethodCriteria().add((Enumeration) value); // Enumeration<MethodCode>
3030          return value;
3031        case -545123257: // queryCriteria
3032          this.queryCriteria = (TopicResourceTriggerQueryCriteriaComponent) value; // TopicResourceTriggerQueryCriteriaComponent
3033          return value;
3034        case 1929785263: // fhirPathCriteria
3035          this.fhirPathCriteria = castToString(value); // StringType
3036          return value;
3037        default: return super.setProperty(hash, name, value);
3038        }
3039
3040      }
3041
3042      @Override
3043      public Base setProperty(String name, Base value) throws FHIRException {
3044        if (name.equals("description")) {
3045          this.description = castToString(value); // StringType
3046        } else if (name.equals("resourceType")) {
3047          value = new FHIRTypeEnumFactory().fromType(castToCode(value));
3048          this.getResourceType().add((Enumeration) value);
3049        } else if (name.equals("methodCriteria")) {
3050          value = new MethodCodeEnumFactory().fromType(castToCode(value));
3051          this.getMethodCriteria().add((Enumeration) value);
3052        } else if (name.equals("queryCriteria")) {
3053          this.queryCriteria = (TopicResourceTriggerQueryCriteriaComponent) value; // TopicResourceTriggerQueryCriteriaComponent
3054        } else if (name.equals("fhirPathCriteria")) {
3055          this.fhirPathCriteria = castToString(value); // StringType
3056        } else
3057          return super.setProperty(name, value);
3058        return value;
3059      }
3060
3061      @Override
3062      public Base makeProperty(int hash, String name) throws FHIRException {
3063        switch (hash) {
3064        case -1724546052:  return getDescriptionElement();
3065        case -384364440:  return addResourceTypeElement();
3066        case -1924160672:  return addMethodCriteriaElement();
3067        case -545123257:  return getQueryCriteria();
3068        case 1929785263:  return getFhirPathCriteriaElement();
3069        default: return super.makeProperty(hash, name);
3070        }
3071
3072      }
3073
3074      @Override
3075      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
3076        switch (hash) {
3077        case -1724546052: /*description*/ return new String[] {"string"};
3078        case -384364440: /*resourceType*/ return new String[] {"code"};
3079        case -1924160672: /*methodCriteria*/ return new String[] {"code"};
3080        case -545123257: /*queryCriteria*/ return new String[] {};
3081        case 1929785263: /*fhirPathCriteria*/ return new String[] {"string"};
3082        default: return super.getTypesForProperty(hash, name);
3083        }
3084
3085      }
3086
3087      @Override
3088      public Base addChild(String name) throws FHIRException {
3089        if (name.equals("description")) {
3090          throw new FHIRException("Cannot call addChild on a primitive type Topic.description");
3091        }
3092        else if (name.equals("resourceType")) {
3093          throw new FHIRException("Cannot call addChild on a primitive type Topic.resourceType");
3094        }
3095        else if (name.equals("methodCriteria")) {
3096          throw new FHIRException("Cannot call addChild on a primitive type Topic.methodCriteria");
3097        }
3098        else if (name.equals("queryCriteria")) {
3099          this.queryCriteria = new TopicResourceTriggerQueryCriteriaComponent();
3100          return this.queryCriteria;
3101        }
3102        else if (name.equals("fhirPathCriteria")) {
3103          throw new FHIRException("Cannot call addChild on a primitive type Topic.fhirPathCriteria");
3104        }
3105        else
3106          return super.addChild(name);
3107      }
3108
3109      public TopicResourceTriggerComponent copy() {
3110        TopicResourceTriggerComponent dst = new TopicResourceTriggerComponent();
3111        copyValues(dst);
3112        return dst;
3113      }
3114
3115      public void copyValues(TopicResourceTriggerComponent dst) {
3116        super.copyValues(dst);
3117        dst.description = description == null ? null : description.copy();
3118        if (resourceType != null) {
3119          dst.resourceType = new ArrayList<Enumeration<FHIRType>>();
3120          for (Enumeration<FHIRType> i : resourceType)
3121            dst.resourceType.add(i.copy());
3122        };
3123        if (methodCriteria != null) {
3124          dst.methodCriteria = new ArrayList<Enumeration<MethodCode>>();
3125          for (Enumeration<MethodCode> i : methodCriteria)
3126            dst.methodCriteria.add(i.copy());
3127        };
3128        dst.queryCriteria = queryCriteria == null ? null : queryCriteria.copy();
3129        dst.fhirPathCriteria = fhirPathCriteria == null ? null : fhirPathCriteria.copy();
3130      }
3131
3132      @Override
3133      public boolean equalsDeep(Base other_) {
3134        if (!super.equalsDeep(other_))
3135          return false;
3136        if (!(other_ instanceof TopicResourceTriggerComponent))
3137          return false;
3138        TopicResourceTriggerComponent o = (TopicResourceTriggerComponent) other_;
3139        return compareDeep(description, o.description, true) && compareDeep(resourceType, o.resourceType, true)
3140           && compareDeep(methodCriteria, o.methodCriteria, true) && compareDeep(queryCriteria, o.queryCriteria, true)
3141           && compareDeep(fhirPathCriteria, o.fhirPathCriteria, true);
3142      }
3143
3144      @Override
3145      public boolean equalsShallow(Base other_) {
3146        if (!super.equalsShallow(other_))
3147          return false;
3148        if (!(other_ instanceof TopicResourceTriggerComponent))
3149          return false;
3150        TopicResourceTriggerComponent o = (TopicResourceTriggerComponent) other_;
3151        return compareValues(description, o.description, true) && compareValues(resourceType, o.resourceType, true)
3152           && compareValues(methodCriteria, o.methodCriteria, true) && compareValues(fhirPathCriteria, o.fhirPathCriteria, true)
3153          ;
3154      }
3155
3156      public boolean isEmpty() {
3157        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(description, resourceType
3158          , methodCriteria, queryCriteria, fhirPathCriteria);
3159      }
3160
3161  public String fhirType() {
3162    return "Topic.resourceTrigger";
3163
3164  }
3165
3166  }
3167
3168    @Block()
3169    public static class TopicResourceTriggerQueryCriteriaComponent extends BackboneElement implements IBaseBackboneElement {
3170        /**
3171         * The FHIR query based rules are applied to the previous resource state.
3172         */
3173        @Child(name = "previous", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=true)
3174        @Description(shortDefinition="Rule applied to previous resource state", formalDefinition="The FHIR query based rules are applied to the previous resource state." )
3175        protected StringType previous;
3176
3177        /**
3178         * The FHIR query based rules are applied to the current resource state.
3179         */
3180        @Child(name = "current", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=true)
3181        @Description(shortDefinition="Rule applied to current resource state", formalDefinition="The FHIR query based rules are applied to the current resource state." )
3182        protected StringType current;
3183
3184        /**
3185         * If set to true, both current and previous criteria must evaluate true to  trigger a notification for this topic.  Otherwise a notification for this topic will be triggered if either one evaluates to true.
3186         */
3187        @Child(name = "requireBoth", type = {BooleanType.class}, order=3, min=0, max=1, modifier=false, summary=true)
3188        @Description(shortDefinition="Both must be true flag", formalDefinition="If set to true, both current and previous criteria must evaluate true to  trigger a notification for this topic.  Otherwise a notification for this topic will be triggered if either one evaluates to true." )
3189        protected BooleanType requireBoth;
3190
3191        private static final long serialVersionUID = -1611265114L;
3192
3193    /**
3194     * Constructor
3195     */
3196      public TopicResourceTriggerQueryCriteriaComponent() {
3197        super();
3198      }
3199
3200        /**
3201         * @return {@link #previous} (The FHIR query based rules are applied to the previous resource state.). This is the underlying object with id, value and extensions. The accessor "getPrevious" gives direct access to the value
3202         */
3203        public StringType getPreviousElement() { 
3204          if (this.previous == null)
3205            if (Configuration.errorOnAutoCreate())
3206              throw new Error("Attempt to auto-create TopicResourceTriggerQueryCriteriaComponent.previous");
3207            else if (Configuration.doAutoCreate())
3208              this.previous = new StringType(); // bb
3209          return this.previous;
3210        }
3211
3212        public boolean hasPreviousElement() { 
3213          return this.previous != null && !this.previous.isEmpty();
3214        }
3215
3216        public boolean hasPrevious() { 
3217          return this.previous != null && !this.previous.isEmpty();
3218        }
3219
3220        /**
3221         * @param value {@link #previous} (The FHIR query based rules are applied to the previous resource state.). This is the underlying object with id, value and extensions. The accessor "getPrevious" gives direct access to the value
3222         */
3223        public TopicResourceTriggerQueryCriteriaComponent setPreviousElement(StringType value) { 
3224          this.previous = value;
3225          return this;
3226        }
3227
3228        /**
3229         * @return The FHIR query based rules are applied to the previous resource state.
3230         */
3231        public String getPrevious() { 
3232          return this.previous == null ? null : this.previous.getValue();
3233        }
3234
3235        /**
3236         * @param value The FHIR query based rules are applied to the previous resource state.
3237         */
3238        public TopicResourceTriggerQueryCriteriaComponent setPrevious(String value) { 
3239          if (Utilities.noString(value))
3240            this.previous = null;
3241          else {
3242            if (this.previous == null)
3243              this.previous = new StringType();
3244            this.previous.setValue(value);
3245          }
3246          return this;
3247        }
3248
3249        /**
3250         * @return {@link #current} (The FHIR query based rules are applied to the current resource state.). This is the underlying object with id, value and extensions. The accessor "getCurrent" gives direct access to the value
3251         */
3252        public StringType getCurrentElement() { 
3253          if (this.current == null)
3254            if (Configuration.errorOnAutoCreate())
3255              throw new Error("Attempt to auto-create TopicResourceTriggerQueryCriteriaComponent.current");
3256            else if (Configuration.doAutoCreate())
3257              this.current = new StringType(); // bb
3258          return this.current;
3259        }
3260
3261        public boolean hasCurrentElement() { 
3262          return this.current != null && !this.current.isEmpty();
3263        }
3264
3265        public boolean hasCurrent() { 
3266          return this.current != null && !this.current.isEmpty();
3267        }
3268
3269        /**
3270         * @param value {@link #current} (The FHIR query based rules are applied to the current resource state.). This is the underlying object with id, value and extensions. The accessor "getCurrent" gives direct access to the value
3271         */
3272        public TopicResourceTriggerQueryCriteriaComponent setCurrentElement(StringType value) { 
3273          this.current = value;
3274          return this;
3275        }
3276
3277        /**
3278         * @return The FHIR query based rules are applied to the current resource state.
3279         */
3280        public String getCurrent() { 
3281          return this.current == null ? null : this.current.getValue();
3282        }
3283
3284        /**
3285         * @param value The FHIR query based rules are applied to the current resource state.
3286         */
3287        public TopicResourceTriggerQueryCriteriaComponent setCurrent(String value) { 
3288          if (Utilities.noString(value))
3289            this.current = null;
3290          else {
3291            if (this.current == null)
3292              this.current = new StringType();
3293            this.current.setValue(value);
3294          }
3295          return this;
3296        }
3297
3298        /**
3299         * @return {@link #requireBoth} (If set to true, both current and previous criteria must evaluate true to  trigger a notification for this topic.  Otherwise a notification for this topic will be triggered if either one evaluates to true.). This is the underlying object with id, value and extensions. The accessor "getRequireBoth" gives direct access to the value
3300         */
3301        public BooleanType getRequireBothElement() { 
3302          if (this.requireBoth == null)
3303            if (Configuration.errorOnAutoCreate())
3304              throw new Error("Attempt to auto-create TopicResourceTriggerQueryCriteriaComponent.requireBoth");
3305            else if (Configuration.doAutoCreate())
3306              this.requireBoth = new BooleanType(); // bb
3307          return this.requireBoth;
3308        }
3309
3310        public boolean hasRequireBothElement() { 
3311          return this.requireBoth != null && !this.requireBoth.isEmpty();
3312        }
3313
3314        public boolean hasRequireBoth() { 
3315          return this.requireBoth != null && !this.requireBoth.isEmpty();
3316        }
3317
3318        /**
3319         * @param value {@link #requireBoth} (If set to true, both current and previous criteria must evaluate true to  trigger a notification for this topic.  Otherwise a notification for this topic will be triggered if either one evaluates to true.). This is the underlying object with id, value and extensions. The accessor "getRequireBoth" gives direct access to the value
3320         */
3321        public TopicResourceTriggerQueryCriteriaComponent setRequireBothElement(BooleanType value) { 
3322          this.requireBoth = value;
3323          return this;
3324        }
3325
3326        /**
3327         * @return If set to true, both current and previous criteria must evaluate true to  trigger a notification for this topic.  Otherwise a notification for this topic will be triggered if either one evaluates to true.
3328         */
3329        public boolean getRequireBoth() { 
3330          return this.requireBoth == null || this.requireBoth.isEmpty() ? false : this.requireBoth.getValue();
3331        }
3332
3333        /**
3334         * @param value If set to true, both current and previous criteria must evaluate true to  trigger a notification for this topic.  Otherwise a notification for this topic will be triggered if either one evaluates to true.
3335         */
3336        public TopicResourceTriggerQueryCriteriaComponent setRequireBoth(boolean value) { 
3337            if (this.requireBoth == null)
3338              this.requireBoth = new BooleanType();
3339            this.requireBoth.setValue(value);
3340          return this;
3341        }
3342
3343        protected void listChildren(List<Property> children) {
3344          super.listChildren(children);
3345          children.add(new Property("previous", "string", "The FHIR query based rules are applied to the previous resource state.", 0, 1, previous));
3346          children.add(new Property("current", "string", "The FHIR query based rules are applied to the current resource state.", 0, 1, current));
3347          children.add(new Property("requireBoth", "boolean", "If set to true, both current and previous criteria must evaluate true to  trigger a notification for this topic.  Otherwise a notification for this topic will be triggered if either one evaluates to true.", 0, 1, requireBoth));
3348        }
3349
3350        @Override
3351        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
3352          switch (_hash) {
3353          case -1273775369: /*previous*/  return new Property("previous", "string", "The FHIR query based rules are applied to the previous resource state.", 0, 1, previous);
3354          case 1126940025: /*current*/  return new Property("current", "string", "The FHIR query based rules are applied to the current resource state.", 0, 1, current);
3355          case 362116742: /*requireBoth*/  return new Property("requireBoth", "boolean", "If set to true, both current and previous criteria must evaluate true to  trigger a notification for this topic.  Otherwise a notification for this topic will be triggered if either one evaluates to true.", 0, 1, requireBoth);
3356          default: return super.getNamedProperty(_hash, _name, _checkValid);
3357          }
3358
3359        }
3360
3361      @Override
3362      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
3363        switch (hash) {
3364        case -1273775369: /*previous*/ return this.previous == null ? new Base[0] : new Base[] {this.previous}; // StringType
3365        case 1126940025: /*current*/ return this.current == null ? new Base[0] : new Base[] {this.current}; // StringType
3366        case 362116742: /*requireBoth*/ return this.requireBoth == null ? new Base[0] : new Base[] {this.requireBoth}; // BooleanType
3367        default: return super.getProperty(hash, name, checkValid);
3368        }
3369
3370      }
3371
3372      @Override
3373      public Base setProperty(int hash, String name, Base value) throws FHIRException {
3374        switch (hash) {
3375        case -1273775369: // previous
3376          this.previous = castToString(value); // StringType
3377          return value;
3378        case 1126940025: // current
3379          this.current = castToString(value); // StringType
3380          return value;
3381        case 362116742: // requireBoth
3382          this.requireBoth = castToBoolean(value); // BooleanType
3383          return value;
3384        default: return super.setProperty(hash, name, value);
3385        }
3386
3387      }
3388
3389      @Override
3390      public Base setProperty(String name, Base value) throws FHIRException {
3391        if (name.equals("previous")) {
3392          this.previous = castToString(value); // StringType
3393        } else if (name.equals("current")) {
3394          this.current = castToString(value); // StringType
3395        } else if (name.equals("requireBoth")) {
3396          this.requireBoth = castToBoolean(value); // BooleanType
3397        } else
3398          return super.setProperty(name, value);
3399        return value;
3400      }
3401
3402      @Override
3403      public Base makeProperty(int hash, String name) throws FHIRException {
3404        switch (hash) {
3405        case -1273775369:  return getPreviousElement();
3406        case 1126940025:  return getCurrentElement();
3407        case 362116742:  return getRequireBothElement();
3408        default: return super.makeProperty(hash, name);
3409        }
3410
3411      }
3412
3413      @Override
3414      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
3415        switch (hash) {
3416        case -1273775369: /*previous*/ return new String[] {"string"};
3417        case 1126940025: /*current*/ return new String[] {"string"};
3418        case 362116742: /*requireBoth*/ return new String[] {"boolean"};
3419        default: return super.getTypesForProperty(hash, name);
3420        }
3421
3422      }
3423
3424      @Override
3425      public Base addChild(String name) throws FHIRException {
3426        if (name.equals("previous")) {
3427          throw new FHIRException("Cannot call addChild on a primitive type Topic.previous");
3428        }
3429        else if (name.equals("current")) {
3430          throw new FHIRException("Cannot call addChild on a primitive type Topic.current");
3431        }
3432        else if (name.equals("requireBoth")) {
3433          throw new FHIRException("Cannot call addChild on a primitive type Topic.requireBoth");
3434        }
3435        else
3436          return super.addChild(name);
3437      }
3438
3439      public TopicResourceTriggerQueryCriteriaComponent copy() {
3440        TopicResourceTriggerQueryCriteriaComponent dst = new TopicResourceTriggerQueryCriteriaComponent();
3441        copyValues(dst);
3442        return dst;
3443      }
3444
3445      public void copyValues(TopicResourceTriggerQueryCriteriaComponent dst) {
3446        super.copyValues(dst);
3447        dst.previous = previous == null ? null : previous.copy();
3448        dst.current = current == null ? null : current.copy();
3449        dst.requireBoth = requireBoth == null ? null : requireBoth.copy();
3450      }
3451
3452      @Override
3453      public boolean equalsDeep(Base other_) {
3454        if (!super.equalsDeep(other_))
3455          return false;
3456        if (!(other_ instanceof TopicResourceTriggerQueryCriteriaComponent))
3457          return false;
3458        TopicResourceTriggerQueryCriteriaComponent o = (TopicResourceTriggerQueryCriteriaComponent) other_;
3459        return compareDeep(previous, o.previous, true) && compareDeep(current, o.current, true) && compareDeep(requireBoth, o.requireBoth, true)
3460          ;
3461      }
3462
3463      @Override
3464      public boolean equalsShallow(Base other_) {
3465        if (!super.equalsShallow(other_))
3466          return false;
3467        if (!(other_ instanceof TopicResourceTriggerQueryCriteriaComponent))
3468          return false;
3469        TopicResourceTriggerQueryCriteriaComponent o = (TopicResourceTriggerQueryCriteriaComponent) other_;
3470        return compareValues(previous, o.previous, true) && compareValues(current, o.current, true) && compareValues(requireBoth, o.requireBoth, true)
3471          ;
3472      }
3473
3474      public boolean isEmpty() {
3475        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(previous, current, requireBoth
3476          );
3477      }
3478
3479  public String fhirType() {
3480    return "Topic.resourceTrigger.queryCriteria";
3481
3482  }
3483
3484  }
3485
3486    @Block()
3487    public static class TopicCanFilterByComponent extends BackboneElement implements IBaseBackboneElement {
3488        /**
3489         * A search parameter (like "patient") which is a label for the filter.
3490         */
3491        @Child(name = "name", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=true)
3492        @Description(shortDefinition="Search parameter that serves as filter key", formalDefinition="A search parameter (like \"patient\") which is a label for the filter." )
3493        protected StringType name;
3494
3495        /**
3496         * Allowable operators to apply when determining matches (Search Modifiers).
3497         */
3498        @Child(name = "matchType", type = {CodeType.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
3499        @Description(shortDefinition="= | in | not-in | above | below", formalDefinition="Allowable operators to apply when determining matches (Search Modifiers)." )
3500        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/topic-match-operator")
3501        protected List<Enumeration<TopicFilterByMatchType>> matchType;
3502
3503        /**
3504         * Description of how this filter parameter is intended to be used.
3505         */
3506        @Child(name = "documentation", type = {MarkdownType.class}, order=3, min=0, max=1, modifier=false, summary=true)
3507        @Description(shortDefinition="Description of this filter parameter", formalDefinition="Description of how this filter parameter is intended to be used." )
3508        protected MarkdownType documentation;
3509
3510        private static final long serialVersionUID = -9356414L;
3511
3512    /**
3513     * Constructor
3514     */
3515      public TopicCanFilterByComponent() {
3516        super();
3517      }
3518
3519        /**
3520         * @return {@link #name} (A search parameter (like "patient") which is a label for the filter.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
3521         */
3522        public StringType getNameElement() { 
3523          if (this.name == null)
3524            if (Configuration.errorOnAutoCreate())
3525              throw new Error("Attempt to auto-create TopicCanFilterByComponent.name");
3526            else if (Configuration.doAutoCreate())
3527              this.name = new StringType(); // bb
3528          return this.name;
3529        }
3530
3531        public boolean hasNameElement() { 
3532          return this.name != null && !this.name.isEmpty();
3533        }
3534
3535        public boolean hasName() { 
3536          return this.name != null && !this.name.isEmpty();
3537        }
3538
3539        /**
3540         * @param value {@link #name} (A search parameter (like "patient") which is a label for the filter.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
3541         */
3542        public TopicCanFilterByComponent setNameElement(StringType value) { 
3543          this.name = value;
3544          return this;
3545        }
3546
3547        /**
3548         * @return A search parameter (like "patient") which is a label for the filter.
3549         */
3550        public String getName() { 
3551          return this.name == null ? null : this.name.getValue();
3552        }
3553
3554        /**
3555         * @param value A search parameter (like "patient") which is a label for the filter.
3556         */
3557        public TopicCanFilterByComponent setName(String value) { 
3558          if (Utilities.noString(value))
3559            this.name = null;
3560          else {
3561            if (this.name == null)
3562              this.name = new StringType();
3563            this.name.setValue(value);
3564          }
3565          return this;
3566        }
3567
3568        /**
3569         * @return {@link #matchType} (Allowable operators to apply when determining matches (Search Modifiers).)
3570         */
3571        public List<Enumeration<TopicFilterByMatchType>> getMatchType() { 
3572          if (this.matchType == null)
3573            this.matchType = new ArrayList<Enumeration<TopicFilterByMatchType>>();
3574          return this.matchType;
3575        }
3576
3577        /**
3578         * @return Returns a reference to <code>this</code> for easy method chaining
3579         */
3580        public TopicCanFilterByComponent setMatchType(List<Enumeration<TopicFilterByMatchType>> theMatchType) { 
3581          this.matchType = theMatchType;
3582          return this;
3583        }
3584
3585        public boolean hasMatchType() { 
3586          if (this.matchType == null)
3587            return false;
3588          for (Enumeration<TopicFilterByMatchType> item : this.matchType)
3589            if (!item.isEmpty())
3590              return true;
3591          return false;
3592        }
3593
3594        /**
3595         * @return {@link #matchType} (Allowable operators to apply when determining matches (Search Modifiers).)
3596         */
3597        public Enumeration<TopicFilterByMatchType> addMatchTypeElement() {//2 
3598          Enumeration<TopicFilterByMatchType> t = new Enumeration<TopicFilterByMatchType>(new TopicFilterByMatchTypeEnumFactory());
3599          if (this.matchType == null)
3600            this.matchType = new ArrayList<Enumeration<TopicFilterByMatchType>>();
3601          this.matchType.add(t);
3602          return t;
3603        }
3604
3605        /**
3606         * @param value {@link #matchType} (Allowable operators to apply when determining matches (Search Modifiers).)
3607         */
3608        public TopicCanFilterByComponent addMatchType(TopicFilterByMatchType value) { //1
3609          Enumeration<TopicFilterByMatchType> t = new Enumeration<TopicFilterByMatchType>(new TopicFilterByMatchTypeEnumFactory());
3610          t.setValue(value);
3611          if (this.matchType == null)
3612            this.matchType = new ArrayList<Enumeration<TopicFilterByMatchType>>();
3613          this.matchType.add(t);
3614          return this;
3615        }
3616
3617        /**
3618         * @param value {@link #matchType} (Allowable operators to apply when determining matches (Search Modifiers).)
3619         */
3620        public boolean hasMatchType(TopicFilterByMatchType value) { 
3621          if (this.matchType == null)
3622            return false;
3623          for (Enumeration<TopicFilterByMatchType> v : this.matchType)
3624            if (v.getValue().equals(value)) // code
3625              return true;
3626          return false;
3627        }
3628
3629        /**
3630         * @return {@link #documentation} (Description of how this filter parameter is intended to be used.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value
3631         */
3632        public MarkdownType getDocumentationElement() { 
3633          if (this.documentation == null)
3634            if (Configuration.errorOnAutoCreate())
3635              throw new Error("Attempt to auto-create TopicCanFilterByComponent.documentation");
3636            else if (Configuration.doAutoCreate())
3637              this.documentation = new MarkdownType(); // bb
3638          return this.documentation;
3639        }
3640
3641        public boolean hasDocumentationElement() { 
3642          return this.documentation != null && !this.documentation.isEmpty();
3643        }
3644
3645        public boolean hasDocumentation() { 
3646          return this.documentation != null && !this.documentation.isEmpty();
3647        }
3648
3649        /**
3650         * @param value {@link #documentation} (Description of how this filter parameter is intended to be used.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value
3651         */
3652        public TopicCanFilterByComponent setDocumentationElement(MarkdownType value) { 
3653          this.documentation = value;
3654          return this;
3655        }
3656
3657        /**
3658         * @return Description of how this filter parameter is intended to be used.
3659         */
3660        public String getDocumentation() { 
3661          return this.documentation == null ? null : this.documentation.getValue();
3662        }
3663
3664        /**
3665         * @param value Description of how this filter parameter is intended to be used.
3666         */
3667        public TopicCanFilterByComponent setDocumentation(String value) { 
3668          if (value == null)
3669            this.documentation = null;
3670          else {
3671            if (this.documentation == null)
3672              this.documentation = new MarkdownType();
3673            this.documentation.setValue(value);
3674          }
3675          return this;
3676        }
3677
3678        protected void listChildren(List<Property> children) {
3679          super.listChildren(children);
3680          children.add(new Property("name", "string", "A search parameter (like \"patient\") which is a label for the filter.", 0, 1, name));
3681          children.add(new Property("matchType", "code", "Allowable operators to apply when determining matches (Search Modifiers).", 0, java.lang.Integer.MAX_VALUE, matchType));
3682          children.add(new Property("documentation", "markdown", "Description of how this filter parameter is intended to be used.", 0, 1, documentation));
3683        }
3684
3685        @Override
3686        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
3687          switch (_hash) {
3688          case 3373707: /*name*/  return new Property("name", "string", "A search parameter (like \"patient\") which is a label for the filter.", 0, 1, name);
3689          case 614036127: /*matchType*/  return new Property("matchType", "code", "Allowable operators to apply when determining matches (Search Modifiers).", 0, java.lang.Integer.MAX_VALUE, matchType);
3690          case 1587405498: /*documentation*/  return new Property("documentation", "markdown", "Description of how this filter parameter is intended to be used.", 0, 1, documentation);
3691          default: return super.getNamedProperty(_hash, _name, _checkValid);
3692          }
3693
3694        }
3695
3696      @Override
3697      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
3698        switch (hash) {
3699        case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType
3700        case 614036127: /*matchType*/ return this.matchType == null ? new Base[0] : this.matchType.toArray(new Base[this.matchType.size()]); // Enumeration<TopicFilterByMatchType>
3701        case 1587405498: /*documentation*/ return this.documentation == null ? new Base[0] : new Base[] {this.documentation}; // MarkdownType
3702        default: return super.getProperty(hash, name, checkValid);
3703        }
3704
3705      }
3706
3707      @Override
3708      public Base setProperty(int hash, String name, Base value) throws FHIRException {
3709        switch (hash) {
3710        case 3373707: // name
3711          this.name = castToString(value); // StringType
3712          return value;
3713        case 614036127: // matchType
3714          value = new TopicFilterByMatchTypeEnumFactory().fromType(castToCode(value));
3715          this.getMatchType().add((Enumeration) value); // Enumeration<TopicFilterByMatchType>
3716          return value;
3717        case 1587405498: // documentation
3718          this.documentation = castToMarkdown(value); // MarkdownType
3719          return value;
3720        default: return super.setProperty(hash, name, value);
3721        }
3722
3723      }
3724
3725      @Override
3726      public Base setProperty(String name, Base value) throws FHIRException {
3727        if (name.equals("name")) {
3728          this.name = castToString(value); // StringType
3729        } else if (name.equals("matchType")) {
3730          value = new TopicFilterByMatchTypeEnumFactory().fromType(castToCode(value));
3731          this.getMatchType().add((Enumeration) value);
3732        } else if (name.equals("documentation")) {
3733          this.documentation = castToMarkdown(value); // MarkdownType
3734        } else
3735          return super.setProperty(name, value);
3736        return value;
3737      }
3738
3739      @Override
3740      public Base makeProperty(int hash, String name) throws FHIRException {
3741        switch (hash) {
3742        case 3373707:  return getNameElement();
3743        case 614036127:  return addMatchTypeElement();
3744        case 1587405498:  return getDocumentationElement();
3745        default: return super.makeProperty(hash, name);
3746        }
3747
3748      }
3749
3750      @Override
3751      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
3752        switch (hash) {
3753        case 3373707: /*name*/ return new String[] {"string"};
3754        case 614036127: /*matchType*/ return new String[] {"code"};
3755        case 1587405498: /*documentation*/ return new String[] {"markdown"};
3756        default: return super.getTypesForProperty(hash, name);
3757        }
3758
3759      }
3760
3761      @Override
3762      public Base addChild(String name) throws FHIRException {
3763        if (name.equals("name")) {
3764          throw new FHIRException("Cannot call addChild on a primitive type Topic.name");
3765        }
3766        else if (name.equals("matchType")) {
3767          throw new FHIRException("Cannot call addChild on a primitive type Topic.matchType");
3768        }
3769        else if (name.equals("documentation")) {
3770          throw new FHIRException("Cannot call addChild on a primitive type Topic.documentation");
3771        }
3772        else
3773          return super.addChild(name);
3774      }
3775
3776      public TopicCanFilterByComponent copy() {
3777        TopicCanFilterByComponent dst = new TopicCanFilterByComponent();
3778        copyValues(dst);
3779        return dst;
3780      }
3781
3782      public void copyValues(TopicCanFilterByComponent dst) {
3783        super.copyValues(dst);
3784        dst.name = name == null ? null : name.copy();
3785        if (matchType != null) {
3786          dst.matchType = new ArrayList<Enumeration<TopicFilterByMatchType>>();
3787          for (Enumeration<TopicFilterByMatchType> i : matchType)
3788            dst.matchType.add(i.copy());
3789        };
3790        dst.documentation = documentation == null ? null : documentation.copy();
3791      }
3792
3793      @Override
3794      public boolean equalsDeep(Base other_) {
3795        if (!super.equalsDeep(other_))
3796          return false;
3797        if (!(other_ instanceof TopicCanFilterByComponent))
3798          return false;
3799        TopicCanFilterByComponent o = (TopicCanFilterByComponent) other_;
3800        return compareDeep(name, o.name, true) && compareDeep(matchType, o.matchType, true) && compareDeep(documentation, o.documentation, true)
3801          ;
3802      }
3803
3804      @Override
3805      public boolean equalsShallow(Base other_) {
3806        if (!super.equalsShallow(other_))
3807          return false;
3808        if (!(other_ instanceof TopicCanFilterByComponent))
3809          return false;
3810        TopicCanFilterByComponent o = (TopicCanFilterByComponent) other_;
3811        return compareValues(name, o.name, true) && compareValues(matchType, o.matchType, true) && compareValues(documentation, o.documentation, true)
3812          ;
3813      }
3814
3815      public boolean isEmpty() {
3816        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, matchType, documentation
3817          );
3818      }
3819
3820  public String fhirType() {
3821    return "Topic.canFilterBy";
3822
3823  }
3824
3825  }
3826
3827    /**
3828     * An absolute URL that is used to identify this Topic when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this Topic is (or will be) published. The URL SHOULD include the major version of the Topic. For more information see [Technical and Business Versions](resource.html#versions).
3829     */
3830    @Child(name = "url", type = {UriType.class}, order=0, min=0, max=1, modifier=false, summary=true)
3831    @Description(shortDefinition="Logical canonical URL to reference this Topic (globally unique)", formalDefinition="An absolute URL that is used to identify this Topic when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this Topic is (or will be) published. The URL SHOULD include the major version of the Topic. For more information see [Technical and Business Versions](resource.html#versions)." )
3832    protected UriType url;
3833
3834    /**
3835     * Business identifiers assigned to this Topic by the performer and/or other systems.  These identifiers remain constant as the resource is updated and propagates from server to server.
3836     */
3837    @Child(name = "identifier", type = {Identifier.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
3838    @Description(shortDefinition="Business Identifier for Topic", formalDefinition="Business identifiers assigned to this Topic by the performer and/or other systems.  These identifiers remain constant as the resource is updated and propagates from server to server." )
3839    protected List<Identifier> identifier;
3840
3841    /**
3842     * The identifier that is used to identify this version of the Topic when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the Topic author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions are orderable.
3843     */
3844    @Child(name = "version", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=true)
3845    @Description(shortDefinition="Business version of the Topic", formalDefinition="The identifier that is used to identify this version of the Topic when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the Topic author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions are orderable." )
3846    protected StringType version;
3847
3848    /**
3849     * A short, descriptive, user-friendly title for the Topic, for example, "admission".
3850     */
3851    @Child(name = "title", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true)
3852    @Description(shortDefinition="Name for this Topic (Human friendly)", formalDefinition="A short, descriptive, user-friendly title for the Topic, for example, \"admission\"." )
3853    protected StringType title;
3854
3855    /**
3856     * The canonical URL pointing to another FHIR-defined Topic that is adhered to in whole or in part by this Topic.
3857     */
3858    @Child(name = "derivedFromCanonical", type = {CanonicalType.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
3859    @Description(shortDefinition="Based on FHIR protocol or definition", formalDefinition="The canonical URL pointing to another FHIR-defined Topic that is adhered to in whole or in part by this Topic." )
3860    protected List<CanonicalType> derivedFromCanonical;
3861
3862    /**
3863     * The URL pointing to an externally-defined subscription topic or other definition that is adhered to in whole or in part by this definition.
3864     */
3865    @Child(name = "derivedFromUri", type = {UriType.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
3866    @Description(shortDefinition="Based on external protocol or definition", formalDefinition="The URL pointing to an externally-defined subscription topic or other definition that is adhered to in whole or in part by this definition." )
3867    protected List<UriType> derivedFromUri;
3868
3869    /**
3870     * The current state of the Topic.
3871     */
3872    @Child(name = "status", type = {CodeType.class}, order=6, min=1, max=1, modifier=true, summary=true)
3873    @Description(shortDefinition="draft | active | retired | unknown", formalDefinition="The current state of the Topic." )
3874    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/publication-status")
3875    protected Enumeration<PublicationStatus> status;
3876
3877    /**
3878     * A flag to indicate that this Topic is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.
3879     */
3880    @Child(name = "experimental", type = {BooleanType.class}, order=7, min=0, max=1, modifier=true, summary=true)
3881    @Description(shortDefinition="If for testing purposes, not real usage", formalDefinition="A flag to indicate that this Topic is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." )
3882    protected BooleanType experimental;
3883
3884    /**
3885     * For draft definitions, indicates the date of initial creation.  For active definitions, represents the date of activation.  For withdrawn definitions, indicates the date of withdrawal.
3886     */
3887    @Child(name = "date", type = {DateTimeType.class}, order=8, min=0, max=1, modifier=false, summary=true)
3888    @Description(shortDefinition="Date status first applied", formalDefinition="For draft definitions, indicates the date of initial creation.  For active definitions, represents the date of activation.  For withdrawn definitions, indicates the date of withdrawal." )
3889    protected DateTimeType date;
3890
3891    /**
3892     * Helps establish the "authority/credibility" of the Topic.  May also allow for contact.
3893     */
3894    @Child(name = "publisher", type = {Practitioner.class, PractitionerRole.class, Organization.class}, order=9, min=0, max=1, modifier=false, summary=true)
3895    @Description(shortDefinition="The name of the individual or organization that published the Topic", formalDefinition="Helps establish the \"authority/credibility\" of the Topic.  May also allow for contact." )
3896    protected Reference publisher;
3897
3898    /**
3899     * Contact details to assist a user in finding and communicating with the publisher.
3900     */
3901    @Child(name = "contact", type = {ContactDetail.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
3902    @Description(shortDefinition="Contact details for the publisher", formalDefinition="Contact details to assist a user in finding and communicating with the publisher." )
3903    protected List<ContactDetail> contact;
3904
3905    /**
3906     * A free text natural language description of the Topic from the consumer's perspective.
3907     */
3908    @Child(name = "description", type = {MarkdownType.class}, order=11, min=0, max=1, modifier=false, summary=false)
3909    @Description(shortDefinition="Natural language description of the Topic", formalDefinition="A free text natural language description of the Topic from the consumer's perspective." )
3910    protected MarkdownType description;
3911
3912    /**
3913     * The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of code system definitions.
3914     */
3915    @Child(name = "useContext", type = {UsageContext.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
3916    @Description(shortDefinition="Content intends to support these contexts", formalDefinition="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of code system definitions." )
3917    protected List<UsageContext> useContext;
3918
3919    /**
3920     * A jurisdiction in which the Topic is intended to be used.
3921     */
3922    @Child(name = "jurisdiction", type = {CodeableConcept.class}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
3923    @Description(shortDefinition="Intended jurisdiction for Topic (if applicable)", formalDefinition="A jurisdiction in which the Topic is intended to be used." )
3924    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/jurisdiction")
3925    protected List<CodeableConcept> jurisdiction;
3926
3927    /**
3928     * Explains why this Topic is needed and why it has been designed as it has.
3929     */
3930    @Child(name = "purpose", type = {MarkdownType.class}, order=14, min=0, max=1, modifier=false, summary=false)
3931    @Description(shortDefinition="Why this Topic is defined", formalDefinition="Explains why this Topic is needed and why it has been designed as it has." )
3932    protected MarkdownType purpose;
3933
3934    /**
3935     * A copyright statement relating to the Topic and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the Topic.
3936     */
3937    @Child(name = "copyright", type = {MarkdownType.class}, order=15, min=0, max=1, modifier=false, summary=false)
3938    @Description(shortDefinition="Use and/or publishing restrictions", formalDefinition="A copyright statement relating to the Topic and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the Topic." )
3939    protected MarkdownType copyright;
3940
3941    /**
3942     * The date on which the asset content was approved by the publisher. Approval happens once when the content is officially approved for usage.
3943     */
3944    @Child(name = "approvalDate", type = {DateType.class}, order=16, min=0, max=1, modifier=false, summary=false)
3945    @Description(shortDefinition="When Topic approved by publisher", formalDefinition="The date on which the asset content was approved by the publisher. Approval happens once when the content is officially approved for usage." )
3946    protected DateType approvalDate;
3947
3948    /**
3949     * The date on which the asset content was last reviewed. Review happens periodically after that, but doesn't change the original approval date.
3950     */
3951    @Child(name = "lastReviewDate", type = {DateType.class}, order=17, min=0, max=1, modifier=false, summary=false)
3952    @Description(shortDefinition="Last review date for the Topic", formalDefinition="The date on which the asset content was last reviewed. Review happens periodically after that, but doesn't change the original approval date." )
3953    protected DateType lastReviewDate;
3954
3955    /**
3956     * The period during which the Topic content was or is planned to be effective.
3957     */
3958    @Child(name = "effectivePeriod", type = {Period.class}, order=18, min=0, max=1, modifier=false, summary=true)
3959    @Description(shortDefinition="The effective date range for the Topic", formalDefinition="The period during which the Topic content was or is planned to be effective." )
3960    protected Period effectivePeriod;
3961
3962    /**
3963     * The criteria for including updates to a nominated resource in the topic.  Thie criteria may be just a human readable description and/or a full FHIR search string or FHIRPath expression.
3964     */
3965    @Child(name = "resourceTrigger", type = {}, order=19, min=0, max=1, modifier=false, summary=true)
3966    @Description(shortDefinition="Criteria for including a resource update in the topic", formalDefinition="The criteria for including updates to a nominated resource in the topic.  Thie criteria may be just a human readable description and/or a full FHIR search string or FHIRPath expression." )
3967    protected TopicResourceTriggerComponent resourceTrigger;
3968
3969    /**
3970     * List of properties by which messages on the topic can be filtered.
3971     */
3972    @Child(name = "canFilterBy", type = {}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
3973    @Description(shortDefinition="Properties by which the topic can be filtered", formalDefinition="List of properties by which messages on the topic can be filtered." )
3974    protected List<TopicCanFilterByComponent> canFilterBy;
3975
3976    private static final long serialVersionUID = -1683916811L;
3977
3978  /**
3979   * Constructor
3980   */
3981    public Topic() {
3982      super();
3983    }
3984
3985  /**
3986   * Constructor
3987   */
3988    public Topic(Enumeration<PublicationStatus> status) {
3989      super();
3990      this.status = status;
3991    }
3992
3993    /**
3994     * @return {@link #url} (An absolute URL that is used to identify this Topic when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this Topic is (or will be) published. The URL SHOULD include the major version of the Topic. For more information see [Technical and Business Versions](resource.html#versions).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
3995     */
3996    public UriType getUrlElement() { 
3997      if (this.url == null)
3998        if (Configuration.errorOnAutoCreate())
3999          throw new Error("Attempt to auto-create Topic.url");
4000        else if (Configuration.doAutoCreate())
4001          this.url = new UriType(); // bb
4002      return this.url;
4003    }
4004
4005    public boolean hasUrlElement() { 
4006      return this.url != null && !this.url.isEmpty();
4007    }
4008
4009    public boolean hasUrl() { 
4010      return this.url != null && !this.url.isEmpty();
4011    }
4012
4013    /**
4014     * @param value {@link #url} (An absolute URL that is used to identify this Topic when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this Topic is (or will be) published. The URL SHOULD include the major version of the Topic. For more information see [Technical and Business Versions](resource.html#versions).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
4015     */
4016    public Topic setUrlElement(UriType value) { 
4017      this.url = value;
4018      return this;
4019    }
4020
4021    /**
4022     * @return An absolute URL that is used to identify this Topic when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this Topic is (or will be) published. The URL SHOULD include the major version of the Topic. For more information see [Technical and Business Versions](resource.html#versions).
4023     */
4024    public String getUrl() { 
4025      return this.url == null ? null : this.url.getValue();
4026    }
4027
4028    /**
4029     * @param value An absolute URL that is used to identify this Topic when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this Topic is (or will be) published. The URL SHOULD include the major version of the Topic. For more information see [Technical and Business Versions](resource.html#versions).
4030     */
4031    public Topic setUrl(String value) { 
4032      if (Utilities.noString(value))
4033        this.url = null;
4034      else {
4035        if (this.url == null)
4036          this.url = new UriType();
4037        this.url.setValue(value);
4038      }
4039      return this;
4040    }
4041
4042    /**
4043     * @return {@link #identifier} (Business identifiers assigned to this Topic by the performer and/or other systems.  These identifiers remain constant as the resource is updated and propagates from server to server.)
4044     */
4045    public List<Identifier> getIdentifier() { 
4046      if (this.identifier == null)
4047        this.identifier = new ArrayList<Identifier>();
4048      return this.identifier;
4049    }
4050
4051    /**
4052     * @return Returns a reference to <code>this</code> for easy method chaining
4053     */
4054    public Topic setIdentifier(List<Identifier> theIdentifier) { 
4055      this.identifier = theIdentifier;
4056      return this;
4057    }
4058
4059    public boolean hasIdentifier() { 
4060      if (this.identifier == null)
4061        return false;
4062      for (Identifier item : this.identifier)
4063        if (!item.isEmpty())
4064          return true;
4065      return false;
4066    }
4067
4068    public Identifier addIdentifier() { //3
4069      Identifier t = new Identifier();
4070      if (this.identifier == null)
4071        this.identifier = new ArrayList<Identifier>();
4072      this.identifier.add(t);
4073      return t;
4074    }
4075
4076    public Topic addIdentifier(Identifier t) { //3
4077      if (t == null)
4078        return this;
4079      if (this.identifier == null)
4080        this.identifier = new ArrayList<Identifier>();
4081      this.identifier.add(t);
4082      return this;
4083    }
4084
4085    /**
4086     * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist
4087     */
4088    public Identifier getIdentifierFirstRep() { 
4089      if (getIdentifier().isEmpty()) {
4090        addIdentifier();
4091      }
4092      return getIdentifier().get(0);
4093    }
4094
4095    /**
4096     * @return {@link #version} (The identifier that is used to identify this version of the Topic when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the Topic author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions are orderable.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
4097     */
4098    public StringType getVersionElement() { 
4099      if (this.version == null)
4100        if (Configuration.errorOnAutoCreate())
4101          throw new Error("Attempt to auto-create Topic.version");
4102        else if (Configuration.doAutoCreate())
4103          this.version = new StringType(); // bb
4104      return this.version;
4105    }
4106
4107    public boolean hasVersionElement() { 
4108      return this.version != null && !this.version.isEmpty();
4109    }
4110
4111    public boolean hasVersion() { 
4112      return this.version != null && !this.version.isEmpty();
4113    }
4114
4115    /**
4116     * @param value {@link #version} (The identifier that is used to identify this version of the Topic when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the Topic author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions are orderable.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
4117     */
4118    public Topic setVersionElement(StringType value) { 
4119      this.version = value;
4120      return this;
4121    }
4122
4123    /**
4124     * @return The identifier that is used to identify this version of the Topic when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the Topic author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions are orderable.
4125     */
4126    public String getVersion() { 
4127      return this.version == null ? null : this.version.getValue();
4128    }
4129
4130    /**
4131     * @param value The identifier that is used to identify this version of the Topic when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the Topic author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions are orderable.
4132     */
4133    public Topic setVersion(String value) { 
4134      if (Utilities.noString(value))
4135        this.version = null;
4136      else {
4137        if (this.version == null)
4138          this.version = new StringType();
4139        this.version.setValue(value);
4140      }
4141      return this;
4142    }
4143
4144    /**
4145     * @return {@link #title} (A short, descriptive, user-friendly title for the Topic, for example, "admission".). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
4146     */
4147    public StringType getTitleElement() { 
4148      if (this.title == null)
4149        if (Configuration.errorOnAutoCreate())
4150          throw new Error("Attempt to auto-create Topic.title");
4151        else if (Configuration.doAutoCreate())
4152          this.title = new StringType(); // bb
4153      return this.title;
4154    }
4155
4156    public boolean hasTitleElement() { 
4157      return this.title != null && !this.title.isEmpty();
4158    }
4159
4160    public boolean hasTitle() { 
4161      return this.title != null && !this.title.isEmpty();
4162    }
4163
4164    /**
4165     * @param value {@link #title} (A short, descriptive, user-friendly title for the Topic, for example, "admission".). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
4166     */
4167    public Topic setTitleElement(StringType value) { 
4168      this.title = value;
4169      return this;
4170    }
4171
4172    /**
4173     * @return A short, descriptive, user-friendly title for the Topic, for example, "admission".
4174     */
4175    public String getTitle() { 
4176      return this.title == null ? null : this.title.getValue();
4177    }
4178
4179    /**
4180     * @param value A short, descriptive, user-friendly title for the Topic, for example, "admission".
4181     */
4182    public Topic setTitle(String value) { 
4183      if (Utilities.noString(value))
4184        this.title = null;
4185      else {
4186        if (this.title == null)
4187          this.title = new StringType();
4188        this.title.setValue(value);
4189      }
4190      return this;
4191    }
4192
4193    /**
4194     * @return {@link #derivedFromCanonical} (The canonical URL pointing to another FHIR-defined Topic that is adhered to in whole or in part by this Topic.)
4195     */
4196    public List<CanonicalType> getDerivedFromCanonical() { 
4197      if (this.derivedFromCanonical == null)
4198        this.derivedFromCanonical = new ArrayList<CanonicalType>();
4199      return this.derivedFromCanonical;
4200    }
4201
4202    /**
4203     * @return Returns a reference to <code>this</code> for easy method chaining
4204     */
4205    public Topic setDerivedFromCanonical(List<CanonicalType> theDerivedFromCanonical) { 
4206      this.derivedFromCanonical = theDerivedFromCanonical;
4207      return this;
4208    }
4209
4210    public boolean hasDerivedFromCanonical() { 
4211      if (this.derivedFromCanonical == null)
4212        return false;
4213      for (CanonicalType item : this.derivedFromCanonical)
4214        if (!item.isEmpty())
4215          return true;
4216      return false;
4217    }
4218
4219    /**
4220     * @return {@link #derivedFromCanonical} (The canonical URL pointing to another FHIR-defined Topic that is adhered to in whole or in part by this Topic.)
4221     */
4222    public CanonicalType addDerivedFromCanonicalElement() {//2 
4223      CanonicalType t = new CanonicalType();
4224      if (this.derivedFromCanonical == null)
4225        this.derivedFromCanonical = new ArrayList<CanonicalType>();
4226      this.derivedFromCanonical.add(t);
4227      return t;
4228    }
4229
4230    /**
4231     * @param value {@link #derivedFromCanonical} (The canonical URL pointing to another FHIR-defined Topic that is adhered to in whole or in part by this Topic.)
4232     */
4233    public Topic addDerivedFromCanonical(String value) { //1
4234      CanonicalType t = new CanonicalType();
4235      t.setValue(value);
4236      if (this.derivedFromCanonical == null)
4237        this.derivedFromCanonical = new ArrayList<CanonicalType>();
4238      this.derivedFromCanonical.add(t);
4239      return this;
4240    }
4241
4242    /**
4243     * @param value {@link #derivedFromCanonical} (The canonical URL pointing to another FHIR-defined Topic that is adhered to in whole or in part by this Topic.)
4244     */
4245    public boolean hasDerivedFromCanonical(String value) { 
4246      if (this.derivedFromCanonical == null)
4247        return false;
4248      for (CanonicalType v : this.derivedFromCanonical)
4249        if (v.getValue().equals(value)) // canonical(Topic)
4250          return true;
4251      return false;
4252    }
4253
4254    /**
4255     * @return {@link #derivedFromUri} (The URL pointing to an externally-defined subscription topic or other definition that is adhered to in whole or in part by this definition.)
4256     */
4257    public List<UriType> getDerivedFromUri() { 
4258      if (this.derivedFromUri == null)
4259        this.derivedFromUri = new ArrayList<UriType>();
4260      return this.derivedFromUri;
4261    }
4262
4263    /**
4264     * @return Returns a reference to <code>this</code> for easy method chaining
4265     */
4266    public Topic setDerivedFromUri(List<UriType> theDerivedFromUri) { 
4267      this.derivedFromUri = theDerivedFromUri;
4268      return this;
4269    }
4270
4271    public boolean hasDerivedFromUri() { 
4272      if (this.derivedFromUri == null)
4273        return false;
4274      for (UriType item : this.derivedFromUri)
4275        if (!item.isEmpty())
4276          return true;
4277      return false;
4278    }
4279
4280    /**
4281     * @return {@link #derivedFromUri} (The URL pointing to an externally-defined subscription topic or other definition that is adhered to in whole or in part by this definition.)
4282     */
4283    public UriType addDerivedFromUriElement() {//2 
4284      UriType t = new UriType();
4285      if (this.derivedFromUri == null)
4286        this.derivedFromUri = new ArrayList<UriType>();
4287      this.derivedFromUri.add(t);
4288      return t;
4289    }
4290
4291    /**
4292     * @param value {@link #derivedFromUri} (The URL pointing to an externally-defined subscription topic or other definition that is adhered to in whole or in part by this definition.)
4293     */
4294    public Topic addDerivedFromUri(String value) { //1
4295      UriType t = new UriType();
4296      t.setValue(value);
4297      if (this.derivedFromUri == null)
4298        this.derivedFromUri = new ArrayList<UriType>();
4299      this.derivedFromUri.add(t);
4300      return this;
4301    }
4302
4303    /**
4304     * @param value {@link #derivedFromUri} (The URL pointing to an externally-defined subscription topic or other definition that is adhered to in whole or in part by this definition.)
4305     */
4306    public boolean hasDerivedFromUri(String value) { 
4307      if (this.derivedFromUri == null)
4308        return false;
4309      for (UriType v : this.derivedFromUri)
4310        if (v.getValue().equals(value)) // uri
4311          return true;
4312      return false;
4313    }
4314
4315    /**
4316     * @return {@link #status} (The current state of the Topic.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
4317     */
4318    public Enumeration<PublicationStatus> getStatusElement() { 
4319      if (this.status == null)
4320        if (Configuration.errorOnAutoCreate())
4321          throw new Error("Attempt to auto-create Topic.status");
4322        else if (Configuration.doAutoCreate())
4323          this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); // bb
4324      return this.status;
4325    }
4326
4327    public boolean hasStatusElement() { 
4328      return this.status != null && !this.status.isEmpty();
4329    }
4330
4331    public boolean hasStatus() { 
4332      return this.status != null && !this.status.isEmpty();
4333    }
4334
4335    /**
4336     * @param value {@link #status} (The current state of the Topic.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
4337     */
4338    public Topic setStatusElement(Enumeration<PublicationStatus> value) { 
4339      this.status = value;
4340      return this;
4341    }
4342
4343    /**
4344     * @return The current state of the Topic.
4345     */
4346    public PublicationStatus getStatus() { 
4347      return this.status == null ? null : this.status.getValue();
4348    }
4349
4350    /**
4351     * @param value The current state of the Topic.
4352     */
4353    public Topic setStatus(PublicationStatus value) { 
4354        if (this.status == null)
4355          this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory());
4356        this.status.setValue(value);
4357      return this;
4358    }
4359
4360    /**
4361     * @return {@link #experimental} (A flag to indicate that this Topic is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value
4362     */
4363    public BooleanType getExperimentalElement() { 
4364      if (this.experimental == null)
4365        if (Configuration.errorOnAutoCreate())
4366          throw new Error("Attempt to auto-create Topic.experimental");
4367        else if (Configuration.doAutoCreate())
4368          this.experimental = new BooleanType(); // bb
4369      return this.experimental;
4370    }
4371
4372    public boolean hasExperimentalElement() { 
4373      return this.experimental != null && !this.experimental.isEmpty();
4374    }
4375
4376    public boolean hasExperimental() { 
4377      return this.experimental != null && !this.experimental.isEmpty();
4378    }
4379
4380    /**
4381     * @param value {@link #experimental} (A flag to indicate that this Topic is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value
4382     */
4383    public Topic setExperimentalElement(BooleanType value) { 
4384      this.experimental = value;
4385      return this;
4386    }
4387
4388    /**
4389     * @return A flag to indicate that this Topic is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.
4390     */
4391    public boolean getExperimental() { 
4392      return this.experimental == null || this.experimental.isEmpty() ? false : this.experimental.getValue();
4393    }
4394
4395    /**
4396     * @param value A flag to indicate that this Topic is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.
4397     */
4398    public Topic setExperimental(boolean value) { 
4399        if (this.experimental == null)
4400          this.experimental = new BooleanType();
4401        this.experimental.setValue(value);
4402      return this;
4403    }
4404
4405    /**
4406     * @return {@link #date} (For draft definitions, indicates the date of initial creation.  For active definitions, represents the date of activation.  For withdrawn definitions, indicates the date of withdrawal.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
4407     */
4408    public DateTimeType getDateElement() { 
4409      if (this.date == null)
4410        if (Configuration.errorOnAutoCreate())
4411          throw new Error("Attempt to auto-create Topic.date");
4412        else if (Configuration.doAutoCreate())
4413          this.date = new DateTimeType(); // bb
4414      return this.date;
4415    }
4416
4417    public boolean hasDateElement() { 
4418      return this.date != null && !this.date.isEmpty();
4419    }
4420
4421    public boolean hasDate() { 
4422      return this.date != null && !this.date.isEmpty();
4423    }
4424
4425    /**
4426     * @param value {@link #date} (For draft definitions, indicates the date of initial creation.  For active definitions, represents the date of activation.  For withdrawn definitions, indicates the date of withdrawal.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
4427     */
4428    public Topic setDateElement(DateTimeType value) { 
4429      this.date = value;
4430      return this;
4431    }
4432
4433    /**
4434     * @return For draft definitions, indicates the date of initial creation.  For active definitions, represents the date of activation.  For withdrawn definitions, indicates the date of withdrawal.
4435     */
4436    public Date getDate() { 
4437      return this.date == null ? null : this.date.getValue();
4438    }
4439
4440    /**
4441     * @param value For draft definitions, indicates the date of initial creation.  For active definitions, represents the date of activation.  For withdrawn definitions, indicates the date of withdrawal.
4442     */
4443    public Topic setDate(Date value) { 
4444      if (value == null)
4445        this.date = null;
4446      else {
4447        if (this.date == null)
4448          this.date = new DateTimeType();
4449        this.date.setValue(value);
4450      }
4451      return this;
4452    }
4453
4454    /**
4455     * @return {@link #publisher} (Helps establish the "authority/credibility" of the Topic.  May also allow for contact.)
4456     */
4457    public Reference getPublisher() { 
4458      if (this.publisher == null)
4459        if (Configuration.errorOnAutoCreate())
4460          throw new Error("Attempt to auto-create Topic.publisher");
4461        else if (Configuration.doAutoCreate())
4462          this.publisher = new Reference(); // cc
4463      return this.publisher;
4464    }
4465
4466    public boolean hasPublisher() { 
4467      return this.publisher != null && !this.publisher.isEmpty();
4468    }
4469
4470    /**
4471     * @param value {@link #publisher} (Helps establish the "authority/credibility" of the Topic.  May also allow for contact.)
4472     */
4473    public Topic setPublisher(Reference value) { 
4474      this.publisher = value;
4475      return this;
4476    }
4477
4478    /**
4479     * @return {@link #contact} (Contact details to assist a user in finding and communicating with the publisher.)
4480     */
4481    public List<ContactDetail> getContact() { 
4482      if (this.contact == null)
4483        this.contact = new ArrayList<ContactDetail>();
4484      return this.contact;
4485    }
4486
4487    /**
4488     * @return Returns a reference to <code>this</code> for easy method chaining
4489     */
4490    public Topic setContact(List<ContactDetail> theContact) { 
4491      this.contact = theContact;
4492      return this;
4493    }
4494
4495    public boolean hasContact() { 
4496      if (this.contact == null)
4497        return false;
4498      for (ContactDetail item : this.contact)
4499        if (!item.isEmpty())
4500          return true;
4501      return false;
4502    }
4503
4504    public ContactDetail addContact() { //3
4505      ContactDetail t = new ContactDetail();
4506      if (this.contact == null)
4507        this.contact = new ArrayList<ContactDetail>();
4508      this.contact.add(t);
4509      return t;
4510    }
4511
4512    public Topic addContact(ContactDetail t) { //3
4513      if (t == null)
4514        return this;
4515      if (this.contact == null)
4516        this.contact = new ArrayList<ContactDetail>();
4517      this.contact.add(t);
4518      return this;
4519    }
4520
4521    /**
4522     * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist
4523     */
4524    public ContactDetail getContactFirstRep() { 
4525      if (getContact().isEmpty()) {
4526        addContact();
4527      }
4528      return getContact().get(0);
4529    }
4530
4531    /**
4532     * @return {@link #description} (A free text natural language description of the Topic from the consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
4533     */
4534    public MarkdownType getDescriptionElement() { 
4535      if (this.description == null)
4536        if (Configuration.errorOnAutoCreate())
4537          throw new Error("Attempt to auto-create Topic.description");
4538        else if (Configuration.doAutoCreate())
4539          this.description = new MarkdownType(); // bb
4540      return this.description;
4541    }
4542
4543    public boolean hasDescriptionElement() { 
4544      return this.description != null && !this.description.isEmpty();
4545    }
4546
4547    public boolean hasDescription() { 
4548      return this.description != null && !this.description.isEmpty();
4549    }
4550
4551    /**
4552     * @param value {@link #description} (A free text natural language description of the Topic from the consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
4553     */
4554    public Topic setDescriptionElement(MarkdownType value) { 
4555      this.description = value;
4556      return this;
4557    }
4558
4559    /**
4560     * @return A free text natural language description of the Topic from the consumer's perspective.
4561     */
4562    public String getDescription() { 
4563      return this.description == null ? null : this.description.getValue();
4564    }
4565
4566    /**
4567     * @param value A free text natural language description of the Topic from the consumer's perspective.
4568     */
4569    public Topic setDescription(String value) { 
4570      if (value == null)
4571        this.description = null;
4572      else {
4573        if (this.description == null)
4574          this.description = new MarkdownType();
4575        this.description.setValue(value);
4576      }
4577      return this;
4578    }
4579
4580    /**
4581     * @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of code system definitions.)
4582     */
4583    public List<UsageContext> getUseContext() { 
4584      if (this.useContext == null)
4585        this.useContext = new ArrayList<UsageContext>();
4586      return this.useContext;
4587    }
4588
4589    /**
4590     * @return Returns a reference to <code>this</code> for easy method chaining
4591     */
4592    public Topic setUseContext(List<UsageContext> theUseContext) { 
4593      this.useContext = theUseContext;
4594      return this;
4595    }
4596
4597    public boolean hasUseContext() { 
4598      if (this.useContext == null)
4599        return false;
4600      for (UsageContext item : this.useContext)
4601        if (!item.isEmpty())
4602          return true;
4603      return false;
4604    }
4605
4606    public UsageContext addUseContext() { //3
4607      UsageContext t = new UsageContext();
4608      if (this.useContext == null)
4609        this.useContext = new ArrayList<UsageContext>();
4610      this.useContext.add(t);
4611      return t;
4612    }
4613
4614    public Topic addUseContext(UsageContext t) { //3
4615      if (t == null)
4616        return this;
4617      if (this.useContext == null)
4618        this.useContext = new ArrayList<UsageContext>();
4619      this.useContext.add(t);
4620      return this;
4621    }
4622
4623    /**
4624     * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist
4625     */
4626    public UsageContext getUseContextFirstRep() { 
4627      if (getUseContext().isEmpty()) {
4628        addUseContext();
4629      }
4630      return getUseContext().get(0);
4631    }
4632
4633    /**
4634     * @return {@link #jurisdiction} (A jurisdiction in which the Topic is intended to be used.)
4635     */
4636    public List<CodeableConcept> getJurisdiction() { 
4637      if (this.jurisdiction == null)
4638        this.jurisdiction = new ArrayList<CodeableConcept>();
4639      return this.jurisdiction;
4640    }
4641
4642    /**
4643     * @return Returns a reference to <code>this</code> for easy method chaining
4644     */
4645    public Topic setJurisdiction(List<CodeableConcept> theJurisdiction) { 
4646      this.jurisdiction = theJurisdiction;
4647      return this;
4648    }
4649
4650    public boolean hasJurisdiction() { 
4651      if (this.jurisdiction == null)
4652        return false;
4653      for (CodeableConcept item : this.jurisdiction)
4654        if (!item.isEmpty())
4655          return true;
4656      return false;
4657    }
4658
4659    public CodeableConcept addJurisdiction() { //3
4660      CodeableConcept t = new CodeableConcept();
4661      if (this.jurisdiction == null)
4662        this.jurisdiction = new ArrayList<CodeableConcept>();
4663      this.jurisdiction.add(t);
4664      return t;
4665    }
4666
4667    public Topic addJurisdiction(CodeableConcept t) { //3
4668      if (t == null)
4669        return this;
4670      if (this.jurisdiction == null)
4671        this.jurisdiction = new ArrayList<CodeableConcept>();
4672      this.jurisdiction.add(t);
4673      return this;
4674    }
4675
4676    /**
4677     * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist
4678     */
4679    public CodeableConcept getJurisdictionFirstRep() { 
4680      if (getJurisdiction().isEmpty()) {
4681        addJurisdiction();
4682      }
4683      return getJurisdiction().get(0);
4684    }
4685
4686    /**
4687     * @return {@link #purpose} (Explains why this Topic is needed and why it has been designed as it has.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value
4688     */
4689    public MarkdownType getPurposeElement() { 
4690      if (this.purpose == null)
4691        if (Configuration.errorOnAutoCreate())
4692          throw new Error("Attempt to auto-create Topic.purpose");
4693        else if (Configuration.doAutoCreate())
4694          this.purpose = new MarkdownType(); // bb
4695      return this.purpose;
4696    }
4697
4698    public boolean hasPurposeElement() { 
4699      return this.purpose != null && !this.purpose.isEmpty();
4700    }
4701
4702    public boolean hasPurpose() { 
4703      return this.purpose != null && !this.purpose.isEmpty();
4704    }
4705
4706    /**
4707     * @param value {@link #purpose} (Explains why this Topic is needed and why it has been designed as it has.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value
4708     */
4709    public Topic setPurposeElement(MarkdownType value) { 
4710      this.purpose = value;
4711      return this;
4712    }
4713
4714    /**
4715     * @return Explains why this Topic is needed and why it has been designed as it has.
4716     */
4717    public String getPurpose() { 
4718      return this.purpose == null ? null : this.purpose.getValue();
4719    }
4720
4721    /**
4722     * @param value Explains why this Topic is needed and why it has been designed as it has.
4723     */
4724    public Topic setPurpose(String value) { 
4725      if (value == null)
4726        this.purpose = null;
4727      else {
4728        if (this.purpose == null)
4729          this.purpose = new MarkdownType();
4730        this.purpose.setValue(value);
4731      }
4732      return this;
4733    }
4734
4735    /**
4736     * @return {@link #copyright} (A copyright statement relating to the Topic and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the Topic.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value
4737     */
4738    public MarkdownType getCopyrightElement() { 
4739      if (this.copyright == null)
4740        if (Configuration.errorOnAutoCreate())
4741          throw new Error("Attempt to auto-create Topic.copyright");
4742        else if (Configuration.doAutoCreate())
4743          this.copyright = new MarkdownType(); // bb
4744      return this.copyright;
4745    }
4746
4747    public boolean hasCopyrightElement() { 
4748      return this.copyright != null && !this.copyright.isEmpty();
4749    }
4750
4751    public boolean hasCopyright() { 
4752      return this.copyright != null && !this.copyright.isEmpty();
4753    }
4754
4755    /**
4756     * @param value {@link #copyright} (A copyright statement relating to the Topic and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the Topic.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value
4757     */
4758    public Topic setCopyrightElement(MarkdownType value) { 
4759      this.copyright = value;
4760      return this;
4761    }
4762
4763    /**
4764     * @return A copyright statement relating to the Topic and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the Topic.
4765     */
4766    public String getCopyright() { 
4767      return this.copyright == null ? null : this.copyright.getValue();
4768    }
4769
4770    /**
4771     * @param value A copyright statement relating to the Topic and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the Topic.
4772     */
4773    public Topic setCopyright(String value) { 
4774      if (value == null)
4775        this.copyright = null;
4776      else {
4777        if (this.copyright == null)
4778          this.copyright = new MarkdownType();
4779        this.copyright.setValue(value);
4780      }
4781      return this;
4782    }
4783
4784    /**
4785     * @return {@link #approvalDate} (The date on which the asset content was approved by the publisher. Approval happens once when the content is officially approved for usage.). This is the underlying object with id, value and extensions. The accessor "getApprovalDate" gives direct access to the value
4786     */
4787    public DateType getApprovalDateElement() { 
4788      if (this.approvalDate == null)
4789        if (Configuration.errorOnAutoCreate())
4790          throw new Error("Attempt to auto-create Topic.approvalDate");
4791        else if (Configuration.doAutoCreate())
4792          this.approvalDate = new DateType(); // bb
4793      return this.approvalDate;
4794    }
4795
4796    public boolean hasApprovalDateElement() { 
4797      return this.approvalDate != null && !this.approvalDate.isEmpty();
4798    }
4799
4800    public boolean hasApprovalDate() { 
4801      return this.approvalDate != null && !this.approvalDate.isEmpty();
4802    }
4803
4804    /**
4805     * @param value {@link #approvalDate} (The date on which the asset content was approved by the publisher. Approval happens once when the content is officially approved for usage.). This is the underlying object with id, value and extensions. The accessor "getApprovalDate" gives direct access to the value
4806     */
4807    public Topic setApprovalDateElement(DateType value) { 
4808      this.approvalDate = value;
4809      return this;
4810    }
4811
4812    /**
4813     * @return The date on which the asset content was approved by the publisher. Approval happens once when the content is officially approved for usage.
4814     */
4815    public Date getApprovalDate() { 
4816      return this.approvalDate == null ? null : this.approvalDate.getValue();
4817    }
4818
4819    /**
4820     * @param value The date on which the asset content was approved by the publisher. Approval happens once when the content is officially approved for usage.
4821     */
4822    public Topic setApprovalDate(Date value) { 
4823      if (value == null)
4824        this.approvalDate = null;
4825      else {
4826        if (this.approvalDate == null)
4827          this.approvalDate = new DateType();
4828        this.approvalDate.setValue(value);
4829      }
4830      return this;
4831    }
4832
4833    /**
4834     * @return {@link #lastReviewDate} (The date on which the asset content was last reviewed. Review happens periodically after that, but doesn't change the original approval date.). This is the underlying object with id, value and extensions. The accessor "getLastReviewDate" gives direct access to the value
4835     */
4836    public DateType getLastReviewDateElement() { 
4837      if (this.lastReviewDate == null)
4838        if (Configuration.errorOnAutoCreate())
4839          throw new Error("Attempt to auto-create Topic.lastReviewDate");
4840        else if (Configuration.doAutoCreate())
4841          this.lastReviewDate = new DateType(); // bb
4842      return this.lastReviewDate;
4843    }
4844
4845    public boolean hasLastReviewDateElement() { 
4846      return this.lastReviewDate != null && !this.lastReviewDate.isEmpty();
4847    }
4848
4849    public boolean hasLastReviewDate() { 
4850      return this.lastReviewDate != null && !this.lastReviewDate.isEmpty();
4851    }
4852
4853    /**
4854     * @param value {@link #lastReviewDate} (The date on which the asset content was last reviewed. Review happens periodically after that, but doesn't change the original approval date.). This is the underlying object with id, value and extensions. The accessor "getLastReviewDate" gives direct access to the value
4855     */
4856    public Topic setLastReviewDateElement(DateType value) { 
4857      this.lastReviewDate = value;
4858      return this;
4859    }
4860
4861    /**
4862     * @return The date on which the asset content was last reviewed. Review happens periodically after that, but doesn't change the original approval date.
4863     */
4864    public Date getLastReviewDate() { 
4865      return this.lastReviewDate == null ? null : this.lastReviewDate.getValue();
4866    }
4867
4868    /**
4869     * @param value The date on which the asset content was last reviewed. Review happens periodically after that, but doesn't change the original approval date.
4870     */
4871    public Topic setLastReviewDate(Date value) { 
4872      if (value == null)
4873        this.lastReviewDate = null;
4874      else {
4875        if (this.lastReviewDate == null)
4876          this.lastReviewDate = new DateType();
4877        this.lastReviewDate.setValue(value);
4878      }
4879      return this;
4880    }
4881
4882    /**
4883     * @return {@link #effectivePeriod} (The period during which the Topic content was or is planned to be effective.)
4884     */
4885    public Period getEffectivePeriod() { 
4886      if (this.effectivePeriod == null)
4887        if (Configuration.errorOnAutoCreate())
4888          throw new Error("Attempt to auto-create Topic.effectivePeriod");
4889        else if (Configuration.doAutoCreate())
4890          this.effectivePeriod = new Period(); // cc
4891      return this.effectivePeriod;
4892    }
4893
4894    public boolean hasEffectivePeriod() { 
4895      return this.effectivePeriod != null && !this.effectivePeriod.isEmpty();
4896    }
4897
4898    /**
4899     * @param value {@link #effectivePeriod} (The period during which the Topic content was or is planned to be effective.)
4900     */
4901    public Topic setEffectivePeriod(Period value) { 
4902      this.effectivePeriod = value;
4903      return this;
4904    }
4905
4906    /**
4907     * @return {@link #resourceTrigger} (The criteria for including updates to a nominated resource in the topic.  Thie criteria may be just a human readable description and/or a full FHIR search string or FHIRPath expression.)
4908     */
4909    public TopicResourceTriggerComponent getResourceTrigger() { 
4910      if (this.resourceTrigger == null)
4911        if (Configuration.errorOnAutoCreate())
4912          throw new Error("Attempt to auto-create Topic.resourceTrigger");
4913        else if (Configuration.doAutoCreate())
4914          this.resourceTrigger = new TopicResourceTriggerComponent(); // cc
4915      return this.resourceTrigger;
4916    }
4917
4918    public boolean hasResourceTrigger() { 
4919      return this.resourceTrigger != null && !this.resourceTrigger.isEmpty();
4920    }
4921
4922    /**
4923     * @param value {@link #resourceTrigger} (The criteria for including updates to a nominated resource in the topic.  Thie criteria may be just a human readable description and/or a full FHIR search string or FHIRPath expression.)
4924     */
4925    public Topic setResourceTrigger(TopicResourceTriggerComponent value) { 
4926      this.resourceTrigger = value;
4927      return this;
4928    }
4929
4930    /**
4931     * @return {@link #canFilterBy} (List of properties by which messages on the topic can be filtered.)
4932     */
4933    public List<TopicCanFilterByComponent> getCanFilterBy() { 
4934      if (this.canFilterBy == null)
4935        this.canFilterBy = new ArrayList<TopicCanFilterByComponent>();
4936      return this.canFilterBy;
4937    }
4938
4939    /**
4940     * @return Returns a reference to <code>this</code> for easy method chaining
4941     */
4942    public Topic setCanFilterBy(List<TopicCanFilterByComponent> theCanFilterBy) { 
4943      this.canFilterBy = theCanFilterBy;
4944      return this;
4945    }
4946
4947    public boolean hasCanFilterBy() { 
4948      if (this.canFilterBy == null)
4949        return false;
4950      for (TopicCanFilterByComponent item : this.canFilterBy)
4951        if (!item.isEmpty())
4952          return true;
4953      return false;
4954    }
4955
4956    public TopicCanFilterByComponent addCanFilterBy() { //3
4957      TopicCanFilterByComponent t = new TopicCanFilterByComponent();
4958      if (this.canFilterBy == null)
4959        this.canFilterBy = new ArrayList<TopicCanFilterByComponent>();
4960      this.canFilterBy.add(t);
4961      return t;
4962    }
4963
4964    public Topic addCanFilterBy(TopicCanFilterByComponent t) { //3
4965      if (t == null)
4966        return this;
4967      if (this.canFilterBy == null)
4968        this.canFilterBy = new ArrayList<TopicCanFilterByComponent>();
4969      this.canFilterBy.add(t);
4970      return this;
4971    }
4972
4973    /**
4974     * @return The first repetition of repeating field {@link #canFilterBy}, creating it if it does not already exist
4975     */
4976    public TopicCanFilterByComponent getCanFilterByFirstRep() { 
4977      if (getCanFilterBy().isEmpty()) {
4978        addCanFilterBy();
4979      }
4980      return getCanFilterBy().get(0);
4981    }
4982
4983      protected void listChildren(List<Property> children) {
4984        super.listChildren(children);
4985        children.add(new Property("url", "uri", "An absolute URL that is used to identify this Topic when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this Topic is (or will be) published. The URL SHOULD include the major version of the Topic. For more information see [Technical and Business Versions](resource.html#versions).", 0, 1, url));
4986        children.add(new Property("identifier", "Identifier", "Business identifiers assigned to this Topic by the performer and/or other systems.  These identifiers remain constant as the resource is updated and propagates from server to server.", 0, java.lang.Integer.MAX_VALUE, identifier));
4987        children.add(new Property("version", "string", "The identifier that is used to identify this version of the Topic when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the Topic author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions are orderable.", 0, 1, version));
4988        children.add(new Property("title", "string", "A short, descriptive, user-friendly title for the Topic, for example, \"admission\".", 0, 1, title));
4989        children.add(new Property("derivedFromCanonical", "canonical(Topic)", "The canonical URL pointing to another FHIR-defined Topic that is adhered to in whole or in part by this Topic.", 0, java.lang.Integer.MAX_VALUE, derivedFromCanonical));
4990        children.add(new Property("derivedFromUri", "uri", "The URL pointing to an externally-defined subscription topic or other definition that is adhered to in whole or in part by this definition.", 0, java.lang.Integer.MAX_VALUE, derivedFromUri));
4991        children.add(new Property("status", "code", "The current state of the Topic.", 0, 1, status));
4992        children.add(new Property("experimental", "boolean", "A flag to indicate that this Topic is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.", 0, 1, experimental));
4993        children.add(new Property("date", "dateTime", "For draft definitions, indicates the date of initial creation.  For active definitions, represents the date of activation.  For withdrawn definitions, indicates the date of withdrawal.", 0, 1, date));
4994        children.add(new Property("publisher", "Reference(Practitioner|PractitionerRole|Organization)", "Helps establish the \"authority/credibility\" of the Topic.  May also allow for contact.", 0, 1, publisher));
4995        children.add(new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact));
4996        children.add(new Property("description", "markdown", "A free text natural language description of the Topic from the consumer's perspective.", 0, 1, description));
4997        children.add(new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of code system definitions.", 0, java.lang.Integer.MAX_VALUE, useContext));
4998        children.add(new Property("jurisdiction", "CodeableConcept", "A jurisdiction in which the Topic is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction));
4999        children.add(new Property("purpose", "markdown", "Explains why this Topic is needed and why it has been designed as it has.", 0, 1, purpose));
5000        children.add(new Property("copyright", "markdown", "A copyright statement relating to the Topic and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the Topic.", 0, 1, copyright));
5001        children.add(new Property("approvalDate", "date", "The date on which the asset content was approved by the publisher. Approval happens once when the content is officially approved for usage.", 0, 1, approvalDate));
5002        children.add(new Property("lastReviewDate", "date", "The date on which the asset content was last reviewed. Review happens periodically after that, but doesn't change the original approval date.", 0, 1, lastReviewDate));
5003        children.add(new Property("effectivePeriod", "Period", "The period during which the Topic content was or is planned to be effective.", 0, 1, effectivePeriod));
5004        children.add(new Property("resourceTrigger", "", "The criteria for including updates to a nominated resource in the topic.  Thie criteria may be just a human readable description and/or a full FHIR search string or FHIRPath expression.", 0, 1, resourceTrigger));
5005        children.add(new Property("canFilterBy", "", "List of properties by which messages on the topic can be filtered.", 0, java.lang.Integer.MAX_VALUE, canFilterBy));
5006      }
5007
5008      @Override
5009      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
5010        switch (_hash) {
5011        case 116079: /*url*/  return new Property("url", "uri", "An absolute URL that is used to identify this Topic when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this Topic is (or will be) published. The URL SHOULD include the major version of the Topic. For more information see [Technical and Business Versions](resource.html#versions).", 0, 1, url);
5012        case -1618432855: /*identifier*/  return new Property("identifier", "Identifier", "Business identifiers assigned to this Topic by the performer and/or other systems.  These identifiers remain constant as the resource is updated and propagates from server to server.", 0, java.lang.Integer.MAX_VALUE, identifier);
5013        case 351608024: /*version*/  return new Property("version", "string", "The identifier that is used to identify this version of the Topic when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the Topic author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions are orderable.", 0, 1, version);
5014        case 110371416: /*title*/  return new Property("title", "string", "A short, descriptive, user-friendly title for the Topic, for example, \"admission\".", 0, 1, title);
5015        case -978133683: /*derivedFromCanonical*/  return new Property("derivedFromCanonical", "canonical(Topic)", "The canonical URL pointing to another FHIR-defined Topic that is adhered to in whole or in part by this Topic.", 0, java.lang.Integer.MAX_VALUE, derivedFromCanonical);
5016        case -1076333435: /*derivedFromUri*/  return new Property("derivedFromUri", "uri", "The URL pointing to an externally-defined subscription topic or other definition that is adhered to in whole or in part by this definition.", 0, java.lang.Integer.MAX_VALUE, derivedFromUri);
5017        case -892481550: /*status*/  return new Property("status", "code", "The current state of the Topic.", 0, 1, status);
5018        case -404562712: /*experimental*/  return new Property("experimental", "boolean", "A flag to indicate that this Topic is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.", 0, 1, experimental);
5019        case 3076014: /*date*/  return new Property("date", "dateTime", "For draft definitions, indicates the date of initial creation.  For active definitions, represents the date of activation.  For withdrawn definitions, indicates the date of withdrawal.", 0, 1, date);
5020        case 1447404028: /*publisher*/  return new Property("publisher", "Reference(Practitioner|PractitionerRole|Organization)", "Helps establish the \"authority/credibility\" of the Topic.  May also allow for contact.", 0, 1, publisher);
5021        case 951526432: /*contact*/  return new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact);
5022        case -1724546052: /*description*/  return new Property("description", "markdown", "A free text natural language description of the Topic from the consumer's perspective.", 0, 1, description);
5023        case -669707736: /*useContext*/  return new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of code system definitions.", 0, java.lang.Integer.MAX_VALUE, useContext);
5024        case -507075711: /*jurisdiction*/  return new Property("jurisdiction", "CodeableConcept", "A jurisdiction in which the Topic is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction);
5025        case -220463842: /*purpose*/  return new Property("purpose", "markdown", "Explains why this Topic is needed and why it has been designed as it has.", 0, 1, purpose);
5026        case 1522889671: /*copyright*/  return new Property("copyright", "markdown", "A copyright statement relating to the Topic and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the Topic.", 0, 1, copyright);
5027        case 223539345: /*approvalDate*/  return new Property("approvalDate", "date", "The date on which the asset content was approved by the publisher. Approval happens once when the content is officially approved for usage.", 0, 1, approvalDate);
5028        case -1687512484: /*lastReviewDate*/  return new Property("lastReviewDate", "date", "The date on which the asset content was last reviewed. Review happens periodically after that, but doesn't change the original approval date.", 0, 1, lastReviewDate);
5029        case -403934648: /*effectivePeriod*/  return new Property("effectivePeriod", "Period", "The period during which the Topic content was or is planned to be effective.", 0, 1, effectivePeriod);
5030        case -424927798: /*resourceTrigger*/  return new Property("resourceTrigger", "", "The criteria for including updates to a nominated resource in the topic.  Thie criteria may be just a human readable description and/or a full FHIR search string or FHIRPath expression.", 0, 1, resourceTrigger);
5031        case -1299519009: /*canFilterBy*/  return new Property("canFilterBy", "", "List of properties by which messages on the topic can be filtered.", 0, java.lang.Integer.MAX_VALUE, canFilterBy);
5032        default: return super.getNamedProperty(_hash, _name, _checkValid);
5033        }
5034
5035      }
5036
5037      @Override
5038      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
5039        switch (hash) {
5040        case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType
5041        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier
5042        case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType
5043        case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType
5044        case -978133683: /*derivedFromCanonical*/ return this.derivedFromCanonical == null ? new Base[0] : this.derivedFromCanonical.toArray(new Base[this.derivedFromCanonical.size()]); // CanonicalType
5045        case -1076333435: /*derivedFromUri*/ return this.derivedFromUri == null ? new Base[0] : this.derivedFromUri.toArray(new Base[this.derivedFromUri.size()]); // UriType
5046        case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<PublicationStatus>
5047        case -404562712: /*experimental*/ return this.experimental == null ? new Base[0] : new Base[] {this.experimental}; // BooleanType
5048        case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType
5049        case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // Reference
5050        case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail
5051        case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType
5052        case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext
5053        case -507075711: /*jurisdiction*/ return this.jurisdiction == null ? new Base[0] : this.jurisdiction.toArray(new Base[this.jurisdiction.size()]); // CodeableConcept
5054        case -220463842: /*purpose*/ return this.purpose == null ? new Base[0] : new Base[] {this.purpose}; // MarkdownType
5055        case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // MarkdownType
5056        case 223539345: /*approvalDate*/ return this.approvalDate == null ? new Base[0] : new Base[] {this.approvalDate}; // DateType
5057        case -1687512484: /*lastReviewDate*/ return this.lastReviewDate == null ? new Base[0] : new Base[] {this.lastReviewDate}; // DateType
5058        case -403934648: /*effectivePeriod*/ return this.effectivePeriod == null ? new Base[0] : new Base[] {this.effectivePeriod}; // Period
5059        case -424927798: /*resourceTrigger*/ return this.resourceTrigger == null ? new Base[0] : new Base[] {this.resourceTrigger}; // TopicResourceTriggerComponent
5060        case -1299519009: /*canFilterBy*/ return this.canFilterBy == null ? new Base[0] : this.canFilterBy.toArray(new Base[this.canFilterBy.size()]); // TopicCanFilterByComponent
5061        default: return super.getProperty(hash, name, checkValid);
5062        }
5063
5064      }
5065
5066      @Override
5067      public Base setProperty(int hash, String name, Base value) throws FHIRException {
5068        switch (hash) {
5069        case 116079: // url
5070          this.url = castToUri(value); // UriType
5071          return value;
5072        case -1618432855: // identifier
5073          this.getIdentifier().add(castToIdentifier(value)); // Identifier
5074          return value;
5075        case 351608024: // version
5076          this.version = castToString(value); // StringType
5077          return value;
5078        case 110371416: // title
5079          this.title = castToString(value); // StringType
5080          return value;
5081        case -978133683: // derivedFromCanonical
5082          this.getDerivedFromCanonical().add(castToCanonical(value)); // CanonicalType
5083          return value;
5084        case -1076333435: // derivedFromUri
5085          this.getDerivedFromUri().add(castToUri(value)); // UriType
5086          return value;
5087        case -892481550: // status
5088          value = new PublicationStatusEnumFactory().fromType(castToCode(value));
5089          this.status = (Enumeration) value; // Enumeration<PublicationStatus>
5090          return value;
5091        case -404562712: // experimental
5092          this.experimental = castToBoolean(value); // BooleanType
5093          return value;
5094        case 3076014: // date
5095          this.date = castToDateTime(value); // DateTimeType
5096          return value;
5097        case 1447404028: // publisher
5098          this.publisher = castToReference(value); // Reference
5099          return value;
5100        case 951526432: // contact
5101          this.getContact().add(castToContactDetail(value)); // ContactDetail
5102          return value;
5103        case -1724546052: // description
5104          this.description = castToMarkdown(value); // MarkdownType
5105          return value;
5106        case -669707736: // useContext
5107          this.getUseContext().add(castToUsageContext(value)); // UsageContext
5108          return value;
5109        case -507075711: // jurisdiction
5110          this.getJurisdiction().add(castToCodeableConcept(value)); // CodeableConcept
5111          return value;
5112        case -220463842: // purpose
5113          this.purpose = castToMarkdown(value); // MarkdownType
5114          return value;
5115        case 1522889671: // copyright
5116          this.copyright = castToMarkdown(value); // MarkdownType
5117          return value;
5118        case 223539345: // approvalDate
5119          this.approvalDate = castToDate(value); // DateType
5120          return value;
5121        case -1687512484: // lastReviewDate
5122          this.lastReviewDate = castToDate(value); // DateType
5123          return value;
5124        case -403934648: // effectivePeriod
5125          this.effectivePeriod = castToPeriod(value); // Period
5126          return value;
5127        case -424927798: // resourceTrigger
5128          this.resourceTrigger = (TopicResourceTriggerComponent) value; // TopicResourceTriggerComponent
5129          return value;
5130        case -1299519009: // canFilterBy
5131          this.getCanFilterBy().add((TopicCanFilterByComponent) value); // TopicCanFilterByComponent
5132          return value;
5133        default: return super.setProperty(hash, name, value);
5134        }
5135
5136      }
5137
5138      @Override
5139      public Base setProperty(String name, Base value) throws FHIRException {
5140        if (name.equals("url")) {
5141          this.url = castToUri(value); // UriType
5142        } else if (name.equals("identifier")) {
5143          this.getIdentifier().add(castToIdentifier(value));
5144        } else if (name.equals("version")) {
5145          this.version = castToString(value); // StringType
5146        } else if (name.equals("title")) {
5147          this.title = castToString(value); // StringType
5148        } else if (name.equals("derivedFromCanonical")) {
5149          this.getDerivedFromCanonical().add(castToCanonical(value));
5150        } else if (name.equals("derivedFromUri")) {
5151          this.getDerivedFromUri().add(castToUri(value));
5152        } else if (name.equals("status")) {
5153          value = new PublicationStatusEnumFactory().fromType(castToCode(value));
5154          this.status = (Enumeration) value; // Enumeration<PublicationStatus>
5155        } else if (name.equals("experimental")) {
5156          this.experimental = castToBoolean(value); // BooleanType
5157        } else if (name.equals("date")) {
5158          this.date = castToDateTime(value); // DateTimeType
5159        } else if (name.equals("publisher")) {
5160          this.publisher = castToReference(value); // Reference
5161        } else if (name.equals("contact")) {
5162          this.getContact().add(castToContactDetail(value));
5163        } else if (name.equals("description")) {
5164          this.description = castToMarkdown(value); // MarkdownType
5165        } else if (name.equals("useContext")) {
5166          this.getUseContext().add(castToUsageContext(value));
5167        } else if (name.equals("jurisdiction")) {
5168          this.getJurisdiction().add(castToCodeableConcept(value));
5169        } else if (name.equals("purpose")) {
5170          this.purpose = castToMarkdown(value); // MarkdownType
5171        } else if (name.equals("copyright")) {
5172          this.copyright = castToMarkdown(value); // MarkdownType
5173        } else if (name.equals("approvalDate")) {
5174          this.approvalDate = castToDate(value); // DateType
5175        } else if (name.equals("lastReviewDate")) {
5176          this.lastReviewDate = castToDate(value); // DateType
5177        } else if (name.equals("effectivePeriod")) {
5178          this.effectivePeriod = castToPeriod(value); // Period
5179        } else if (name.equals("resourceTrigger")) {
5180          this.resourceTrigger = (TopicResourceTriggerComponent) value; // TopicResourceTriggerComponent
5181        } else if (name.equals("canFilterBy")) {
5182          this.getCanFilterBy().add((TopicCanFilterByComponent) value);
5183        } else
5184          return super.setProperty(name, value);
5185        return value;
5186      }
5187
5188      @Override
5189      public Base makeProperty(int hash, String name) throws FHIRException {
5190        switch (hash) {
5191        case 116079:  return getUrlElement();
5192        case -1618432855:  return addIdentifier(); 
5193        case 351608024:  return getVersionElement();
5194        case 110371416:  return getTitleElement();
5195        case -978133683:  return addDerivedFromCanonicalElement();
5196        case -1076333435:  return addDerivedFromUriElement();
5197        case -892481550:  return getStatusElement();
5198        case -404562712:  return getExperimentalElement();
5199        case 3076014:  return getDateElement();
5200        case 1447404028:  return getPublisher();
5201        case 951526432:  return addContact(); 
5202        case -1724546052:  return getDescriptionElement();
5203        case -669707736:  return addUseContext(); 
5204        case -507075711:  return addJurisdiction(); 
5205        case -220463842:  return getPurposeElement();
5206        case 1522889671:  return getCopyrightElement();
5207        case 223539345:  return getApprovalDateElement();
5208        case -1687512484:  return getLastReviewDateElement();
5209        case -403934648:  return getEffectivePeriod();
5210        case -424927798:  return getResourceTrigger();
5211        case -1299519009:  return addCanFilterBy(); 
5212        default: return super.makeProperty(hash, name);
5213        }
5214
5215      }
5216
5217      @Override
5218      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
5219        switch (hash) {
5220        case 116079: /*url*/ return new String[] {"uri"};
5221        case -1618432855: /*identifier*/ return new String[] {"Identifier"};
5222        case 351608024: /*version*/ return new String[] {"string"};
5223        case 110371416: /*title*/ return new String[] {"string"};
5224        case -978133683: /*derivedFromCanonical*/ return new String[] {"canonical"};
5225        case -1076333435: /*derivedFromUri*/ return new String[] {"uri"};
5226        case -892481550: /*status*/ return new String[] {"code"};
5227        case -404562712: /*experimental*/ return new String[] {"boolean"};
5228        case 3076014: /*date*/ return new String[] {"dateTime"};
5229        case 1447404028: /*publisher*/ return new String[] {"Reference"};
5230        case 951526432: /*contact*/ return new String[] {"ContactDetail"};
5231        case -1724546052: /*description*/ return new String[] {"markdown"};
5232        case -669707736: /*useContext*/ return new String[] {"UsageContext"};
5233        case -507075711: /*jurisdiction*/ return new String[] {"CodeableConcept"};
5234        case -220463842: /*purpose*/ return new String[] {"markdown"};
5235        case 1522889671: /*copyright*/ return new String[] {"markdown"};
5236        case 223539345: /*approvalDate*/ return new String[] {"date"};
5237        case -1687512484: /*lastReviewDate*/ return new String[] {"date"};
5238        case -403934648: /*effectivePeriod*/ return new String[] {"Period"};
5239        case -424927798: /*resourceTrigger*/ return new String[] {};
5240        case -1299519009: /*canFilterBy*/ return new String[] {};
5241        default: return super.getTypesForProperty(hash, name);
5242        }
5243
5244      }
5245
5246      @Override
5247      public Base addChild(String name) throws FHIRException {
5248        if (name.equals("url")) {
5249          throw new FHIRException("Cannot call addChild on a primitive type Topic.url");
5250        }
5251        else if (name.equals("identifier")) {
5252          return addIdentifier();
5253        }
5254        else if (name.equals("version")) {
5255          throw new FHIRException("Cannot call addChild on a primitive type Topic.version");
5256        }
5257        else if (name.equals("title")) {
5258          throw new FHIRException("Cannot call addChild on a primitive type Topic.title");
5259        }
5260        else if (name.equals("derivedFromCanonical")) {
5261          throw new FHIRException("Cannot call addChild on a primitive type Topic.derivedFromCanonical");
5262        }
5263        else if (name.equals("derivedFromUri")) {
5264          throw new FHIRException("Cannot call addChild on a primitive type Topic.derivedFromUri");
5265        }
5266        else if (name.equals("status")) {
5267          throw new FHIRException("Cannot call addChild on a primitive type Topic.status");
5268        }
5269        else if (name.equals("experimental")) {
5270          throw new FHIRException("Cannot call addChild on a primitive type Topic.experimental");
5271        }
5272        else if (name.equals("date")) {
5273          throw new FHIRException("Cannot call addChild on a primitive type Topic.date");
5274        }
5275        else if (name.equals("publisher")) {
5276          this.publisher = new Reference();
5277          return this.publisher;
5278        }
5279        else if (name.equals("contact")) {
5280          return addContact();
5281        }
5282        else if (name.equals("description")) {
5283          throw new FHIRException("Cannot call addChild on a primitive type Topic.description");
5284        }
5285        else if (name.equals("useContext")) {
5286          return addUseContext();
5287        }
5288        else if (name.equals("jurisdiction")) {
5289          return addJurisdiction();
5290        }
5291        else if (name.equals("purpose")) {
5292          throw new FHIRException("Cannot call addChild on a primitive type Topic.purpose");
5293        }
5294        else if (name.equals("copyright")) {
5295          throw new FHIRException("Cannot call addChild on a primitive type Topic.copyright");
5296        }
5297        else if (name.equals("approvalDate")) {
5298          throw new FHIRException("Cannot call addChild on a primitive type Topic.approvalDate");
5299        }
5300        else if (name.equals("lastReviewDate")) {
5301          throw new FHIRException("Cannot call addChild on a primitive type Topic.lastReviewDate");
5302        }
5303        else if (name.equals("effectivePeriod")) {
5304          this.effectivePeriod = new Period();
5305          return this.effectivePeriod;
5306        }
5307        else if (name.equals("resourceTrigger")) {
5308          this.resourceTrigger = new TopicResourceTriggerComponent();
5309          return this.resourceTrigger;
5310        }
5311        else if (name.equals("canFilterBy")) {
5312          return addCanFilterBy();
5313        }
5314        else
5315          return super.addChild(name);
5316      }
5317
5318  public String fhirType() {
5319    return "Topic";
5320
5321  }
5322
5323      public Topic copy() {
5324        Topic dst = new Topic();
5325        copyValues(dst);
5326        return dst;
5327      }
5328
5329      public void copyValues(Topic dst) {
5330        super.copyValues(dst);
5331        dst.url = url == null ? null : url.copy();
5332        if (identifier != null) {
5333          dst.identifier = new ArrayList<Identifier>();
5334          for (Identifier i : identifier)
5335            dst.identifier.add(i.copy());
5336        };
5337        dst.version = version == null ? null : version.copy();
5338        dst.title = title == null ? null : title.copy();
5339        if (derivedFromCanonical != null) {
5340          dst.derivedFromCanonical = new ArrayList<CanonicalType>();
5341          for (CanonicalType i : derivedFromCanonical)
5342            dst.derivedFromCanonical.add(i.copy());
5343        };
5344        if (derivedFromUri != null) {
5345          dst.derivedFromUri = new ArrayList<UriType>();
5346          for (UriType i : derivedFromUri)
5347            dst.derivedFromUri.add(i.copy());
5348        };
5349        dst.status = status == null ? null : status.copy();
5350        dst.experimental = experimental == null ? null : experimental.copy();
5351        dst.date = date == null ? null : date.copy();
5352        dst.publisher = publisher == null ? null : publisher.copy();
5353        if (contact != null) {
5354          dst.contact = new ArrayList<ContactDetail>();
5355          for (ContactDetail i : contact)
5356            dst.contact.add(i.copy());
5357        };
5358        dst.description = description == null ? null : description.copy();
5359        if (useContext != null) {
5360          dst.useContext = new ArrayList<UsageContext>();
5361          for (UsageContext i : useContext)
5362            dst.useContext.add(i.copy());
5363        };
5364        if (jurisdiction != null) {
5365          dst.jurisdiction = new ArrayList<CodeableConcept>();
5366          for (CodeableConcept i : jurisdiction)
5367            dst.jurisdiction.add(i.copy());
5368        };
5369        dst.purpose = purpose == null ? null : purpose.copy();
5370        dst.copyright = copyright == null ? null : copyright.copy();
5371        dst.approvalDate = approvalDate == null ? null : approvalDate.copy();
5372        dst.lastReviewDate = lastReviewDate == null ? null : lastReviewDate.copy();
5373        dst.effectivePeriod = effectivePeriod == null ? null : effectivePeriod.copy();
5374        dst.resourceTrigger = resourceTrigger == null ? null : resourceTrigger.copy();
5375        if (canFilterBy != null) {
5376          dst.canFilterBy = new ArrayList<TopicCanFilterByComponent>();
5377          for (TopicCanFilterByComponent i : canFilterBy)
5378            dst.canFilterBy.add(i.copy());
5379        };
5380      }
5381
5382      protected Topic typedCopy() {
5383        return copy();
5384      }
5385
5386      @Override
5387      public boolean equalsDeep(Base other_) {
5388        if (!super.equalsDeep(other_))
5389          return false;
5390        if (!(other_ instanceof Topic))
5391          return false;
5392        Topic o = (Topic) other_;
5393        return compareDeep(url, o.url, true) && compareDeep(identifier, o.identifier, true) && compareDeep(version, o.version, true)
5394           && compareDeep(title, o.title, true) && compareDeep(derivedFromCanonical, o.derivedFromCanonical, true)
5395           && compareDeep(derivedFromUri, o.derivedFromUri, true) && compareDeep(status, o.status, true) && compareDeep(experimental, o.experimental, true)
5396           && compareDeep(date, o.date, true) && compareDeep(publisher, o.publisher, true) && compareDeep(contact, o.contact, true)
5397           && compareDeep(description, o.description, true) && compareDeep(useContext, o.useContext, true)
5398           && compareDeep(jurisdiction, o.jurisdiction, true) && compareDeep(purpose, o.purpose, true) && compareDeep(copyright, o.copyright, true)
5399           && compareDeep(approvalDate, o.approvalDate, true) && compareDeep(lastReviewDate, o.lastReviewDate, true)
5400           && compareDeep(effectivePeriod, o.effectivePeriod, true) && compareDeep(resourceTrigger, o.resourceTrigger, true)
5401           && compareDeep(canFilterBy, o.canFilterBy, true);
5402      }
5403
5404      @Override
5405      public boolean equalsShallow(Base other_) {
5406        if (!super.equalsShallow(other_))
5407          return false;
5408        if (!(other_ instanceof Topic))
5409          return false;
5410        Topic o = (Topic) other_;
5411        return compareValues(url, o.url, true) && compareValues(version, o.version, true) && compareValues(title, o.title, true)
5412           && compareValues(derivedFromUri, o.derivedFromUri, true) && compareValues(status, o.status, true) && compareValues(experimental, o.experimental, true)
5413           && compareValues(date, o.date, true) && compareValues(description, o.description, true) && compareValues(purpose, o.purpose, true)
5414           && compareValues(copyright, o.copyright, true) && compareValues(approvalDate, o.approvalDate, true)
5415           && compareValues(lastReviewDate, o.lastReviewDate, true);
5416      }
5417
5418      public boolean isEmpty() {
5419        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(url, identifier, version
5420          , title, derivedFromCanonical, derivedFromUri, status, experimental, date, publisher
5421          , contact, description, useContext, jurisdiction, purpose, copyright, approvalDate
5422          , lastReviewDate, effectivePeriod, resourceTrigger, canFilterBy);
5423      }
5424
5425  @Override
5426  public ResourceType getResourceType() {
5427    return ResourceType.Topic;
5428   }
5429
5430 /**
5431   * Search parameter: <b>date</b>
5432   * <p>
5433   * Description: <b>Date status first applied</b><br>
5434   * Type: <b>date</b><br>
5435   * Path: <b>Topic.date</b><br>
5436   * </p>
5437   */
5438  @SearchParamDefinition(name="date", path="Topic.date", description="Date status first applied", type="date" )
5439  public static final String SP_DATE = "date";
5440 /**
5441   * <b>Fluent Client</b> search parameter constant for <b>date</b>
5442   * <p>
5443   * Description: <b>Date status first applied</b><br>
5444   * Type: <b>date</b><br>
5445   * Path: <b>Topic.date</b><br>
5446   * </p>
5447   */
5448  public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE);
5449
5450 /**
5451   * Search parameter: <b>identifier</b>
5452   * <p>
5453   * Description: <b>Business Identifier for Topic</b><br>
5454   * Type: <b>token</b><br>
5455   * Path: <b>Topic.identifier</b><br>
5456   * </p>
5457   */
5458  @SearchParamDefinition(name="identifier", path="Topic.identifier", description="Business Identifier for Topic", type="token" )
5459  public static final String SP_IDENTIFIER = "identifier";
5460 /**
5461   * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
5462   * <p>
5463   * Description: <b>Business Identifier for Topic</b><br>
5464   * Type: <b>token</b><br>
5465   * Path: <b>Topic.identifier</b><br>
5466   * </p>
5467   */
5468  public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
5469
5470 /**
5471   * Search parameter: <b>publisher</b>
5472   * <p>
5473   * Description: <b>The name of the individual or organization that published the Topic</b><br>
5474   * Type: <b>reference</b><br>
5475   * Path: <b>Topic.publisher</b><br>
5476   * </p>
5477   */
5478  @SearchParamDefinition(name="publisher", path="Topic.publisher", description="The name of the individual or organization that published the Topic", type="reference", target={Organization.class, Practitioner.class, PractitionerRole.class } )
5479  public static final String SP_PUBLISHER = "publisher";
5480 /**
5481   * <b>Fluent Client</b> search parameter constant for <b>publisher</b>
5482   * <p>
5483   * Description: <b>The name of the individual or organization that published the Topic</b><br>
5484   * Type: <b>reference</b><br>
5485   * Path: <b>Topic.publisher</b><br>
5486   * </p>
5487   */
5488  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PUBLISHER);
5489
5490/**
5491   * Constant for fluent queries to be used to add include statements. Specifies
5492   * the path value of "<b>Topic:publisher</b>".
5493   */
5494  public static final ca.uhn.fhir.model.api.Include INCLUDE_PUBLISHER = new ca.uhn.fhir.model.api.Include("Topic:publisher").toLocked();
5495
5496 /**
5497   * Search parameter: <b>resource-type</b>
5498   * <p>
5499   * Description: <b>Candidate types for this topic</b><br>
5500   * Type: <b>token</b><br>
5501   * Path: <b>Topic.resourceTrigger.resourceType</b><br>
5502   * </p>
5503   */
5504  @SearchParamDefinition(name="resource-type", path="Topic.resourceTrigger.resourceType", description="Candidate types for this topic", type="token" )
5505  public static final String SP_RESOURCE_TYPE = "resource-type";
5506 /**
5507   * <b>Fluent Client</b> search parameter constant for <b>resource-type</b>
5508   * <p>
5509   * Description: <b>Candidate types for this topic</b><br>
5510   * Type: <b>token</b><br>
5511   * Path: <b>Topic.resourceTrigger.resourceType</b><br>
5512   * </p>
5513   */
5514  public static final ca.uhn.fhir.rest.gclient.TokenClientParam RESOURCE_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_RESOURCE_TYPE);
5515
5516 /**
5517   * Search parameter: <b>title</b>
5518   * <p>
5519   * Description: <b>Name for this Topic (Human friendly)</b><br>
5520   * Type: <b>string</b><br>
5521   * Path: <b>Topic.title</b><br>
5522   * </p>
5523   */
5524  @SearchParamDefinition(name="title", path="Topic.title", description="Name for this Topic (Human friendly)", type="string" )
5525  public static final String SP_TITLE = "title";
5526 /**
5527   * <b>Fluent Client</b> search parameter constant for <b>title</b>
5528   * <p>
5529   * Description: <b>Name for this Topic (Human friendly)</b><br>
5530   * Type: <b>string</b><br>
5531   * Path: <b>Topic.title</b><br>
5532   * </p>
5533   */
5534  public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE);
5535
5536 /**
5537   * Search parameter: <b>version</b>
5538   * <p>
5539   * Description: <b>Business version of the Topic</b><br>
5540   * Type: <b>token</b><br>
5541   * Path: <b>Topic.version</b><br>
5542   * </p>
5543   */
5544  @SearchParamDefinition(name="version", path="Topic.version", description="Business version of the Topic", type="token" )
5545  public static final String SP_VERSION = "version";
5546 /**
5547   * <b>Fluent Client</b> search parameter constant for <b>version</b>
5548   * <p>
5549   * Description: <b>Business version of the Topic</b><br>
5550   * Type: <b>token</b><br>
5551   * Path: <b>Topic.version</b><br>
5552   * </p>
5553   */
5554  public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION);
5555
5556 /**
5557   * Search parameter: <b>url</b>
5558   * <p>
5559   * Description: <b>Logical canonical URL to reference this Topic (globally unique)</b><br>
5560   * Type: <b>uri</b><br>
5561   * Path: <b>Topic.url</b><br>
5562   * </p>
5563   */
5564  @SearchParamDefinition(name="url", path="Topic.url", description="Logical canonical URL to reference this Topic (globally unique)", type="uri" )
5565  public static final String SP_URL = "url";
5566 /**
5567   * <b>Fluent Client</b> search parameter constant for <b>url</b>
5568   * <p>
5569   * Description: <b>Logical canonical URL to reference this Topic (globally unique)</b><br>
5570   * Type: <b>uri</b><br>
5571   * Path: <b>Topic.url</b><br>
5572   * </p>
5573   */
5574  public static final ca.uhn.fhir.rest.gclient.UriClientParam URL = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_URL);
5575
5576 /**
5577   * Search parameter: <b>status</b>
5578   * <p>
5579   * Description: <b>draft | active | retired | unknown</b><br>
5580   * Type: <b>token</b><br>
5581   * Path: <b>Topic.status</b><br>
5582   * </p>
5583   */
5584  @SearchParamDefinition(name="status", path="Topic.status", description="draft | active | retired | unknown", type="token" )
5585  public static final String SP_STATUS = "status";
5586 /**
5587   * <b>Fluent Client</b> search parameter constant for <b>status</b>
5588   * <p>
5589   * Description: <b>draft | active | retired | unknown</b><br>
5590   * Type: <b>token</b><br>
5591   * Path: <b>Topic.status</b><br>
5592   * </p>
5593   */
5594  public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS);
5595
5596 /**
5597   * Search parameter: <b>trigger-description</b>
5598   * <p>
5599   * Description: <b>Text representation of the trigger</b><br>
5600   * Type: <b>string</b><br>
5601   * Path: <b>Topic.resourceTrigger.description</b><br>
5602   * </p>
5603   */
5604  @SearchParamDefinition(name="trigger-description", path="Topic.resourceTrigger.description", description="Text representation of the trigger", type="string" )
5605  public static final String SP_TRIGGER_DESCRIPTION = "trigger-description";
5606 /**
5607   * <b>Fluent Client</b> search parameter constant for <b>trigger-description</b>
5608   * <p>
5609   * Description: <b>Text representation of the trigger</b><br>
5610   * Type: <b>string</b><br>
5611   * Path: <b>Topic.resourceTrigger.description</b><br>
5612   * </p>
5613   */
5614  public static final ca.uhn.fhir.rest.gclient.StringClientParam TRIGGER_DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TRIGGER_DESCRIPTION);
5615
5616
5617}
5618