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 * The EvidenceVariable resource describes a "PICO" element that knowledge (evidence, assertion, recommendation) is about.
071 */
072@ResourceDef(name="EvidenceVariable", profile="http://hl7.org/fhir/StructureDefinition/EvidenceVariable")
073@ChildOrder(names={"url", "identifier", "version", "name", "title", "shortTitle", "subtitle", "status", "date", "publisher", "contact", "description", "note", "useContext", "jurisdiction", "copyright", "approvalDate", "lastReviewDate", "effectivePeriod", "topic", "author", "editor", "reviewer", "endorser", "relatedArtifact", "type", "actual", "characteristic"})
074public class EvidenceVariable extends MetadataResource {
075
076    public enum EvidenceVariableType {
077        /**
078         * The variable is dichotomous, such as present or absent.
079         */
080        DICHOTOMOUS, 
081        /**
082         * The variable is a continuous result such as a quantity.
083         */
084        CONTINUOUS, 
085        /**
086         * The variable is described narratively rather than quantitatively.
087         */
088        DESCRIPTIVE, 
089        /**
090         * added to help the parsers with the generic types
091         */
092        NULL;
093        public static EvidenceVariableType fromCode(String codeString) throws FHIRException {
094            if (codeString == null || "".equals(codeString))
095                return null;
096        if ("dichotomous".equals(codeString))
097          return DICHOTOMOUS;
098        if ("continuous".equals(codeString))
099          return CONTINUOUS;
100        if ("descriptive".equals(codeString))
101          return DESCRIPTIVE;
102        if (Configuration.isAcceptInvalidEnums())
103          return null;
104        else
105          throw new FHIRException("Unknown EvidenceVariableType code '"+codeString+"'");
106        }
107        public String toCode() {
108          switch (this) {
109            case DICHOTOMOUS: return "dichotomous";
110            case CONTINUOUS: return "continuous";
111            case DESCRIPTIVE: return "descriptive";
112            default: return "?";
113          }
114        }
115        public String getSystem() {
116          switch (this) {
117            case DICHOTOMOUS: return "http://hl7.org/fhir/variable-type";
118            case CONTINUOUS: return "http://hl7.org/fhir/variable-type";
119            case DESCRIPTIVE: return "http://hl7.org/fhir/variable-type";
120            default: return "?";
121          }
122        }
123        public String getDefinition() {
124          switch (this) {
125            case DICHOTOMOUS: return "The variable is dichotomous, such as present or absent.";
126            case CONTINUOUS: return "The variable is a continuous result such as a quantity.";
127            case DESCRIPTIVE: return "The variable is described narratively rather than quantitatively.";
128            default: return "?";
129          }
130        }
131        public String getDisplay() {
132          switch (this) {
133            case DICHOTOMOUS: return "Dichotomous";
134            case CONTINUOUS: return "Continuous";
135            case DESCRIPTIVE: return "Descriptive";
136            default: return "?";
137          }
138        }
139    }
140
141  public static class EvidenceVariableTypeEnumFactory implements EnumFactory<EvidenceVariableType> {
142    public EvidenceVariableType fromCode(String codeString) throws IllegalArgumentException {
143      if (codeString == null || "".equals(codeString))
144            if (codeString == null || "".equals(codeString))
145                return null;
146        if ("dichotomous".equals(codeString))
147          return EvidenceVariableType.DICHOTOMOUS;
148        if ("continuous".equals(codeString))
149          return EvidenceVariableType.CONTINUOUS;
150        if ("descriptive".equals(codeString))
151          return EvidenceVariableType.DESCRIPTIVE;
152        throw new IllegalArgumentException("Unknown EvidenceVariableType code '"+codeString+"'");
153        }
154        public Enumeration<EvidenceVariableType> fromType(Base code) throws FHIRException {
155          if (code == null)
156            return null;
157          if (code.isEmpty())
158            return new Enumeration<EvidenceVariableType>(this);
159          String codeString = ((PrimitiveType) code).asStringValue();
160          if (codeString == null || "".equals(codeString))
161            return null;
162        if ("dichotomous".equals(codeString))
163          return new Enumeration<EvidenceVariableType>(this, EvidenceVariableType.DICHOTOMOUS);
164        if ("continuous".equals(codeString))
165          return new Enumeration<EvidenceVariableType>(this, EvidenceVariableType.CONTINUOUS);
166        if ("descriptive".equals(codeString))
167          return new Enumeration<EvidenceVariableType>(this, EvidenceVariableType.DESCRIPTIVE);
168        throw new FHIRException("Unknown EvidenceVariableType code '"+codeString+"'");
169        }
170    public String toCode(EvidenceVariableType code) {
171      if (code == EvidenceVariableType.DICHOTOMOUS)
172        return "dichotomous";
173      if (code == EvidenceVariableType.CONTINUOUS)
174        return "continuous";
175      if (code == EvidenceVariableType.DESCRIPTIVE)
176        return "descriptive";
177      return "?";
178      }
179    public String toSystem(EvidenceVariableType code) {
180      return code.getSystem();
181      }
182    }
183
184    public enum GroupMeasure {
185        /**
186         * Aggregated using Mean of participant values.
187         */
188        MEAN, 
189        /**
190         * Aggregated using Median of participant values.
191         */
192        MEDIAN, 
193        /**
194         * Aggregated using Mean of study mean values.
195         */
196        MEANOFMEAN, 
197        /**
198         * Aggregated using Mean of study median values.
199         */
200        MEANOFMEDIAN, 
201        /**
202         * Aggregated using Median of study mean values.
203         */
204        MEDIANOFMEAN, 
205        /**
206         * Aggregated using Median of study median values.
207         */
208        MEDIANOFMEDIAN, 
209        /**
210         * added to help the parsers with the generic types
211         */
212        NULL;
213        public static GroupMeasure fromCode(String codeString) throws FHIRException {
214            if (codeString == null || "".equals(codeString))
215                return null;
216        if ("mean".equals(codeString))
217          return MEAN;
218        if ("median".equals(codeString))
219          return MEDIAN;
220        if ("mean-of-mean".equals(codeString))
221          return MEANOFMEAN;
222        if ("mean-of-median".equals(codeString))
223          return MEANOFMEDIAN;
224        if ("median-of-mean".equals(codeString))
225          return MEDIANOFMEAN;
226        if ("median-of-median".equals(codeString))
227          return MEDIANOFMEDIAN;
228        if (Configuration.isAcceptInvalidEnums())
229          return null;
230        else
231          throw new FHIRException("Unknown GroupMeasure code '"+codeString+"'");
232        }
233        public String toCode() {
234          switch (this) {
235            case MEAN: return "mean";
236            case MEDIAN: return "median";
237            case MEANOFMEAN: return "mean-of-mean";
238            case MEANOFMEDIAN: return "mean-of-median";
239            case MEDIANOFMEAN: return "median-of-mean";
240            case MEDIANOFMEDIAN: return "median-of-median";
241            default: return "?";
242          }
243        }
244        public String getSystem() {
245          switch (this) {
246            case MEAN: return "http://hl7.org/fhir/group-measure";
247            case MEDIAN: return "http://hl7.org/fhir/group-measure";
248            case MEANOFMEAN: return "http://hl7.org/fhir/group-measure";
249            case MEANOFMEDIAN: return "http://hl7.org/fhir/group-measure";
250            case MEDIANOFMEAN: return "http://hl7.org/fhir/group-measure";
251            case MEDIANOFMEDIAN: return "http://hl7.org/fhir/group-measure";
252            default: return "?";
253          }
254        }
255        public String getDefinition() {
256          switch (this) {
257            case MEAN: return "Aggregated using Mean of participant values.";
258            case MEDIAN: return "Aggregated using Median of participant values.";
259            case MEANOFMEAN: return "Aggregated using Mean of study mean values.";
260            case MEANOFMEDIAN: return "Aggregated using Mean of study median values.";
261            case MEDIANOFMEAN: return "Aggregated using Median of study mean values.";
262            case MEDIANOFMEDIAN: return "Aggregated using Median of study median values.";
263            default: return "?";
264          }
265        }
266        public String getDisplay() {
267          switch (this) {
268            case MEAN: return "Mean";
269            case MEDIAN: return "Median";
270            case MEANOFMEAN: return "Mean of Study Means";
271            case MEANOFMEDIAN: return "Mean of Study Medins";
272            case MEDIANOFMEAN: return "Median of Study Means";
273            case MEDIANOFMEDIAN: return "Median of Study Medians";
274            default: return "?";
275          }
276        }
277    }
278
279  public static class GroupMeasureEnumFactory implements EnumFactory<GroupMeasure> {
280    public GroupMeasure fromCode(String codeString) throws IllegalArgumentException {
281      if (codeString == null || "".equals(codeString))
282            if (codeString == null || "".equals(codeString))
283                return null;
284        if ("mean".equals(codeString))
285          return GroupMeasure.MEAN;
286        if ("median".equals(codeString))
287          return GroupMeasure.MEDIAN;
288        if ("mean-of-mean".equals(codeString))
289          return GroupMeasure.MEANOFMEAN;
290        if ("mean-of-median".equals(codeString))
291          return GroupMeasure.MEANOFMEDIAN;
292        if ("median-of-mean".equals(codeString))
293          return GroupMeasure.MEDIANOFMEAN;
294        if ("median-of-median".equals(codeString))
295          return GroupMeasure.MEDIANOFMEDIAN;
296        throw new IllegalArgumentException("Unknown GroupMeasure code '"+codeString+"'");
297        }
298        public Enumeration<GroupMeasure> fromType(Base code) throws FHIRException {
299          if (code == null)
300            return null;
301          if (code.isEmpty())
302            return new Enumeration<GroupMeasure>(this);
303          String codeString = ((PrimitiveType) code).asStringValue();
304          if (codeString == null || "".equals(codeString))
305            return null;
306        if ("mean".equals(codeString))
307          return new Enumeration<GroupMeasure>(this, GroupMeasure.MEAN);
308        if ("median".equals(codeString))
309          return new Enumeration<GroupMeasure>(this, GroupMeasure.MEDIAN);
310        if ("mean-of-mean".equals(codeString))
311          return new Enumeration<GroupMeasure>(this, GroupMeasure.MEANOFMEAN);
312        if ("mean-of-median".equals(codeString))
313          return new Enumeration<GroupMeasure>(this, GroupMeasure.MEANOFMEDIAN);
314        if ("median-of-mean".equals(codeString))
315          return new Enumeration<GroupMeasure>(this, GroupMeasure.MEDIANOFMEAN);
316        if ("median-of-median".equals(codeString))
317          return new Enumeration<GroupMeasure>(this, GroupMeasure.MEDIANOFMEDIAN);
318        throw new FHIRException("Unknown GroupMeasure code '"+codeString+"'");
319        }
320    public String toCode(GroupMeasure code) {
321      if (code == GroupMeasure.MEAN)
322        return "mean";
323      if (code == GroupMeasure.MEDIAN)
324        return "median";
325      if (code == GroupMeasure.MEANOFMEAN)
326        return "mean-of-mean";
327      if (code == GroupMeasure.MEANOFMEDIAN)
328        return "mean-of-median";
329      if (code == GroupMeasure.MEDIANOFMEAN)
330        return "median-of-mean";
331      if (code == GroupMeasure.MEDIANOFMEDIAN)
332        return "median-of-median";
333      return "?";
334      }
335    public String toSystem(GroupMeasure code) {
336      return code.getSystem();
337      }
338    }
339
340    @Block()
341    public static class EvidenceVariableCharacteristicComponent extends BackboneElement implements IBaseBackboneElement {
342        /**
343         * A short, natural language description of the characteristic that could be used to communicate the criteria to an end-user.
344         */
345        @Child(name = "description", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false)
346        @Description(shortDefinition="Natural language description of the characteristic", formalDefinition="A short, natural language description of the characteristic that could be used to communicate the criteria to an end-user." )
347        protected StringType description;
348
349        /**
350         * Define members of the evidence element using Codes (such as condition, medication, or observation), Expressions ( using an expression language such as FHIRPath or CQL) or DataRequirements (such as Diabetes diagnosis onset in the last year).
351         */
352        @Child(name = "definition", type = {Group.class, CanonicalType.class, CodeableConcept.class, Expression.class, DataRequirement.class, TriggerDefinition.class}, order=2, min=1, max=1, modifier=false, summary=true)
353        @Description(shortDefinition="What code or expression defines members?", formalDefinition="Define members of the evidence element using Codes (such as condition, medication, or observation), Expressions ( using an expression language such as FHIRPath or CQL) or DataRequirements (such as Diabetes diagnosis onset in the last year)." )
354        protected Type definition;
355
356        /**
357         * Method used for describing characteristic.
358         */
359        @Child(name = "method", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=false)
360        @Description(shortDefinition="Method used for describing characteristic", formalDefinition="Method used for describing characteristic." )
361        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/characteristic-method")
362        protected CodeableConcept method;
363
364        /**
365         * Device used for determining characteristic.
366         */
367        @Child(name = "device", type = {Device.class, DeviceMetric.class}, order=4, min=0, max=1, modifier=false, summary=false)
368        @Description(shortDefinition="Device used for determining characteristic", formalDefinition="Device used for determining characteristic." )
369        protected Reference device;
370
371        /**
372         * Use booleanSet to define the members of the population, such as Age Ranges, Genders, Settings.
373         */
374        @Child(name = "booleanSet", type = {StringType.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
375        @Description(shortDefinition="What code/value pairs define members?", formalDefinition="Use booleanSet to define the members of the population, such as Age Ranges, Genders, Settings." )
376        protected List<StringType> booleanSet;
377
378        /**
379         * When true, members with this characteristic are excluded from the element.
380         */
381        @Child(name = "exclude", type = {BooleanType.class}, order=6, min=0, max=1, modifier=false, summary=false)
382        @Description(shortDefinition="Whether the characteristic includes or excludes members", formalDefinition="When true, members with this characteristic are excluded from the element." )
383        protected BooleanType exclude;
384
385        /**
386         * Indicates what effective period the study covers.
387         */
388        @Child(name = "participantEffective", type = {DateTimeType.class, Period.class, Duration.class, Timing.class}, order=7, min=0, max=1, modifier=false, summary=false)
389        @Description(shortDefinition="What time period do participants cover", formalDefinition="Indicates what effective period the study covers." )
390        protected Type participantEffective;
391
392        /**
393         * Indicates duration from the participant's study entry.
394         */
395        @Child(name = "timeFromStart", type = {Duration.class}, order=8, min=0, max=1, modifier=false, summary=false)
396        @Description(shortDefinition="Observation time from study start", formalDefinition="Indicates duration from the participant's study entry." )
397        protected Duration timeFromStart;
398
399        /**
400         * Indicates how elements are aggregated within the study effective period.
401         */
402        @Child(name = "groupMeasure", type = {CodeType.class}, order=9, min=0, max=1, modifier=false, summary=false)
403        @Description(shortDefinition="mean | median | mean-of-mean | mean-of-median | median-of-mean | median-of-median", formalDefinition="Indicates how elements are aggregated within the study effective period." )
404        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/group-measure")
405        protected Enumeration<GroupMeasure> groupMeasure;
406
407        private static final long serialVersionUID = 568690866L;
408
409    /**
410     * Constructor
411     */
412      public EvidenceVariableCharacteristicComponent() {
413        super();
414      }
415
416    /**
417     * Constructor
418     */
419      public EvidenceVariableCharacteristicComponent(Type definition) {
420        super();
421        this.definition = definition;
422      }
423
424        /**
425         * @return {@link #description} (A short, natural language description of the characteristic that could be used to communicate the criteria to an end-user.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
426         */
427        public StringType getDescriptionElement() { 
428          if (this.description == null)
429            if (Configuration.errorOnAutoCreate())
430              throw new Error("Attempt to auto-create EvidenceVariableCharacteristicComponent.description");
431            else if (Configuration.doAutoCreate())
432              this.description = new StringType(); // bb
433          return this.description;
434        }
435
436        public boolean hasDescriptionElement() { 
437          return this.description != null && !this.description.isEmpty();
438        }
439
440        public boolean hasDescription() { 
441          return this.description != null && !this.description.isEmpty();
442        }
443
444        /**
445         * @param value {@link #description} (A short, natural language description of the characteristic that could be used to communicate the criteria to an end-user.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
446         */
447        public EvidenceVariableCharacteristicComponent setDescriptionElement(StringType value) { 
448          this.description = value;
449          return this;
450        }
451
452        /**
453         * @return A short, natural language description of the characteristic that could be used to communicate the criteria to an end-user.
454         */
455        public String getDescription() { 
456          return this.description == null ? null : this.description.getValue();
457        }
458
459        /**
460         * @param value A short, natural language description of the characteristic that could be used to communicate the criteria to an end-user.
461         */
462        public EvidenceVariableCharacteristicComponent setDescription(String value) { 
463          if (Utilities.noString(value))
464            this.description = null;
465          else {
466            if (this.description == null)
467              this.description = new StringType();
468            this.description.setValue(value);
469          }
470          return this;
471        }
472
473        /**
474         * @return {@link #definition} (Define members of the evidence element using Codes (such as condition, medication, or observation), Expressions ( using an expression language such as FHIRPath or CQL) or DataRequirements (such as Diabetes diagnosis onset in the last year).)
475         */
476        public Type getDefinition() { 
477          return this.definition;
478        }
479
480        /**
481         * @return {@link #definition} (Define members of the evidence element using Codes (such as condition, medication, or observation), Expressions ( using an expression language such as FHIRPath or CQL) or DataRequirements (such as Diabetes diagnosis onset in the last year).)
482         */
483        public Reference getDefinitionReference() throws FHIRException { 
484          if (this.definition == null)
485            this.definition = new Reference();
486          if (!(this.definition instanceof Reference))
487            throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.definition.getClass().getName()+" was encountered");
488          return (Reference) this.definition;
489        }
490
491        public boolean hasDefinitionReference() { 
492          return this != null && this.definition instanceof Reference;
493        }
494
495        /**
496         * @return {@link #definition} (Define members of the evidence element using Codes (such as condition, medication, or observation), Expressions ( using an expression language such as FHIRPath or CQL) or DataRequirements (such as Diabetes diagnosis onset in the last year).)
497         */
498        public CanonicalType getDefinitionCanonicalType() throws FHIRException { 
499          if (this.definition == null)
500            this.definition = new CanonicalType();
501          if (!(this.definition instanceof CanonicalType))
502            throw new FHIRException("Type mismatch: the type CanonicalType was expected, but "+this.definition.getClass().getName()+" was encountered");
503          return (CanonicalType) this.definition;
504        }
505
506        public boolean hasDefinitionCanonicalType() { 
507          return this != null && this.definition instanceof CanonicalType;
508        }
509
510        /**
511         * @return {@link #definition} (Define members of the evidence element using Codes (such as condition, medication, or observation), Expressions ( using an expression language such as FHIRPath or CQL) or DataRequirements (such as Diabetes diagnosis onset in the last year).)
512         */
513        public CodeableConcept getDefinitionCodeableConcept() throws FHIRException { 
514          if (this.definition == null)
515            this.definition = new CodeableConcept();
516          if (!(this.definition instanceof CodeableConcept))
517            throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.definition.getClass().getName()+" was encountered");
518          return (CodeableConcept) this.definition;
519        }
520
521        public boolean hasDefinitionCodeableConcept() { 
522          return this != null && this.definition instanceof CodeableConcept;
523        }
524
525        /**
526         * @return {@link #definition} (Define members of the evidence element using Codes (such as condition, medication, or observation), Expressions ( using an expression language such as FHIRPath or CQL) or DataRequirements (such as Diabetes diagnosis onset in the last year).)
527         */
528        public Expression getDefinitionExpression() throws FHIRException { 
529          if (this.definition == null)
530            this.definition = new Expression();
531          if (!(this.definition instanceof Expression))
532            throw new FHIRException("Type mismatch: the type Expression was expected, but "+this.definition.getClass().getName()+" was encountered");
533          return (Expression) this.definition;
534        }
535
536        public boolean hasDefinitionExpression() { 
537          return this != null && this.definition instanceof Expression;
538        }
539
540        /**
541         * @return {@link #definition} (Define members of the evidence element using Codes (such as condition, medication, or observation), Expressions ( using an expression language such as FHIRPath or CQL) or DataRequirements (such as Diabetes diagnosis onset in the last year).)
542         */
543        public DataRequirement getDefinitionDataRequirement() throws FHIRException { 
544          if (this.definition == null)
545            this.definition = new DataRequirement();
546          if (!(this.definition instanceof DataRequirement))
547            throw new FHIRException("Type mismatch: the type DataRequirement was expected, but "+this.definition.getClass().getName()+" was encountered");
548          return (DataRequirement) this.definition;
549        }
550
551        public boolean hasDefinitionDataRequirement() { 
552          return this != null && this.definition instanceof DataRequirement;
553        }
554
555        /**
556         * @return {@link #definition} (Define members of the evidence element using Codes (such as condition, medication, or observation), Expressions ( using an expression language such as FHIRPath or CQL) or DataRequirements (such as Diabetes diagnosis onset in the last year).)
557         */
558        public TriggerDefinition getDefinitionTriggerDefinition() throws FHIRException { 
559          if (this.definition == null)
560            this.definition = new TriggerDefinition();
561          if (!(this.definition instanceof TriggerDefinition))
562            throw new FHIRException("Type mismatch: the type TriggerDefinition was expected, but "+this.definition.getClass().getName()+" was encountered");
563          return (TriggerDefinition) this.definition;
564        }
565
566        public boolean hasDefinitionTriggerDefinition() { 
567          return this != null && this.definition instanceof TriggerDefinition;
568        }
569
570        public boolean hasDefinition() { 
571          return this.definition != null && !this.definition.isEmpty();
572        }
573
574        /**
575         * @param value {@link #definition} (Define members of the evidence element using Codes (such as condition, medication, or observation), Expressions ( using an expression language such as FHIRPath or CQL) or DataRequirements (such as Diabetes diagnosis onset in the last year).)
576         */
577        public EvidenceVariableCharacteristicComponent setDefinition(Type value) { 
578          if (value != null && !(value instanceof Reference || value instanceof CanonicalType || value instanceof CodeableConcept || value instanceof Expression || value instanceof DataRequirement || value instanceof TriggerDefinition))
579            throw new Error("Not the right type for EvidenceVariable.characteristic.definition[x]: "+value.fhirType());
580          this.definition = value;
581          return this;
582        }
583
584        /**
585         * @return {@link #method} (Method used for describing characteristic.)
586         */
587        public CodeableConcept getMethod() { 
588          if (this.method == null)
589            if (Configuration.errorOnAutoCreate())
590              throw new Error("Attempt to auto-create EvidenceVariableCharacteristicComponent.method");
591            else if (Configuration.doAutoCreate())
592              this.method = new CodeableConcept(); // cc
593          return this.method;
594        }
595
596        public boolean hasMethod() { 
597          return this.method != null && !this.method.isEmpty();
598        }
599
600        /**
601         * @param value {@link #method} (Method used for describing characteristic.)
602         */
603        public EvidenceVariableCharacteristicComponent setMethod(CodeableConcept value) { 
604          this.method = value;
605          return this;
606        }
607
608        /**
609         * @return {@link #device} (Device used for determining characteristic.)
610         */
611        public Reference getDevice() { 
612          if (this.device == null)
613            if (Configuration.errorOnAutoCreate())
614              throw new Error("Attempt to auto-create EvidenceVariableCharacteristicComponent.device");
615            else if (Configuration.doAutoCreate())
616              this.device = new Reference(); // cc
617          return this.device;
618        }
619
620        public boolean hasDevice() { 
621          return this.device != null && !this.device.isEmpty();
622        }
623
624        /**
625         * @param value {@link #device} (Device used for determining characteristic.)
626         */
627        public EvidenceVariableCharacteristicComponent setDevice(Reference value) { 
628          this.device = value;
629          return this;
630        }
631
632        /**
633         * @return {@link #booleanSet} (Use booleanSet to define the members of the population, such as Age Ranges, Genders, Settings.)
634         */
635        public List<StringType> getBooleanSet() { 
636          if (this.booleanSet == null)
637            this.booleanSet = new ArrayList<StringType>();
638          return this.booleanSet;
639        }
640
641        /**
642         * @return Returns a reference to <code>this</code> for easy method chaining
643         */
644        public EvidenceVariableCharacteristicComponent setBooleanSet(List<StringType> theBooleanSet) { 
645          this.booleanSet = theBooleanSet;
646          return this;
647        }
648
649        public boolean hasBooleanSet() { 
650          if (this.booleanSet == null)
651            return false;
652          for (StringType item : this.booleanSet)
653            if (!item.isEmpty())
654              return true;
655          return false;
656        }
657
658        /**
659         * @return {@link #booleanSet} (Use booleanSet to define the members of the population, such as Age Ranges, Genders, Settings.)
660         */
661        public StringType addBooleanSetElement() {//2 
662          StringType t = new StringType();
663          if (this.booleanSet == null)
664            this.booleanSet = new ArrayList<StringType>();
665          this.booleanSet.add(t);
666          return t;
667        }
668
669        /**
670         * @param value {@link #booleanSet} (Use booleanSet to define the members of the population, such as Age Ranges, Genders, Settings.)
671         */
672        public EvidenceVariableCharacteristicComponent addBooleanSet(String value) { //1
673          StringType t = new StringType();
674          t.setValue(value);
675          if (this.booleanSet == null)
676            this.booleanSet = new ArrayList<StringType>();
677          this.booleanSet.add(t);
678          return this;
679        }
680
681        /**
682         * @param value {@link #booleanSet} (Use booleanSet to define the members of the population, such as Age Ranges, Genders, Settings.)
683         */
684        public boolean hasBooleanSet(String value) { 
685          if (this.booleanSet == null)
686            return false;
687          for (StringType v : this.booleanSet)
688            if (v.getValue().equals(value)) // string
689              return true;
690          return false;
691        }
692
693        /**
694         * @return {@link #exclude} (When true, members with this characteristic are excluded from the element.). This is the underlying object with id, value and extensions. The accessor "getExclude" gives direct access to the value
695         */
696        public BooleanType getExcludeElement() { 
697          if (this.exclude == null)
698            if (Configuration.errorOnAutoCreate())
699              throw new Error("Attempt to auto-create EvidenceVariableCharacteristicComponent.exclude");
700            else if (Configuration.doAutoCreate())
701              this.exclude = new BooleanType(); // bb
702          return this.exclude;
703        }
704
705        public boolean hasExcludeElement() { 
706          return this.exclude != null && !this.exclude.isEmpty();
707        }
708
709        public boolean hasExclude() { 
710          return this.exclude != null && !this.exclude.isEmpty();
711        }
712
713        /**
714         * @param value {@link #exclude} (When true, members with this characteristic are excluded from the element.). This is the underlying object with id, value and extensions. The accessor "getExclude" gives direct access to the value
715         */
716        public EvidenceVariableCharacteristicComponent setExcludeElement(BooleanType value) { 
717          this.exclude = value;
718          return this;
719        }
720
721        /**
722         * @return When true, members with this characteristic are excluded from the element.
723         */
724        public boolean getExclude() { 
725          return this.exclude == null || this.exclude.isEmpty() ? false : this.exclude.getValue();
726        }
727
728        /**
729         * @param value When true, members with this characteristic are excluded from the element.
730         */
731        public EvidenceVariableCharacteristicComponent setExclude(boolean value) { 
732            if (this.exclude == null)
733              this.exclude = new BooleanType();
734            this.exclude.setValue(value);
735          return this;
736        }
737
738        /**
739         * @return {@link #participantEffective} (Indicates what effective period the study covers.)
740         */
741        public Type getParticipantEffective() { 
742          return this.participantEffective;
743        }
744
745        /**
746         * @return {@link #participantEffective} (Indicates what effective period the study covers.)
747         */
748        public DateTimeType getParticipantEffectiveDateTimeType() throws FHIRException { 
749          if (this.participantEffective == null)
750            this.participantEffective = new DateTimeType();
751          if (!(this.participantEffective instanceof DateTimeType))
752            throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.participantEffective.getClass().getName()+" was encountered");
753          return (DateTimeType) this.participantEffective;
754        }
755
756        public boolean hasParticipantEffectiveDateTimeType() { 
757          return this != null && this.participantEffective instanceof DateTimeType;
758        }
759
760        /**
761         * @return {@link #participantEffective} (Indicates what effective period the study covers.)
762         */
763        public Period getParticipantEffectivePeriod() throws FHIRException { 
764          if (this.participantEffective == null)
765            this.participantEffective = new Period();
766          if (!(this.participantEffective instanceof Period))
767            throw new FHIRException("Type mismatch: the type Period was expected, but "+this.participantEffective.getClass().getName()+" was encountered");
768          return (Period) this.participantEffective;
769        }
770
771        public boolean hasParticipantEffectivePeriod() { 
772          return this != null && this.participantEffective instanceof Period;
773        }
774
775        /**
776         * @return {@link #participantEffective} (Indicates what effective period the study covers.)
777         */
778        public Duration getParticipantEffectiveDuration() throws FHIRException { 
779          if (this.participantEffective == null)
780            this.participantEffective = new Duration();
781          if (!(this.participantEffective instanceof Duration))
782            throw new FHIRException("Type mismatch: the type Duration was expected, but "+this.participantEffective.getClass().getName()+" was encountered");
783          return (Duration) this.participantEffective;
784        }
785
786        public boolean hasParticipantEffectiveDuration() { 
787          return this != null && this.participantEffective instanceof Duration;
788        }
789
790        /**
791         * @return {@link #participantEffective} (Indicates what effective period the study covers.)
792         */
793        public Timing getParticipantEffectiveTiming() throws FHIRException { 
794          if (this.participantEffective == null)
795            this.participantEffective = new Timing();
796          if (!(this.participantEffective instanceof Timing))
797            throw new FHIRException("Type mismatch: the type Timing was expected, but "+this.participantEffective.getClass().getName()+" was encountered");
798          return (Timing) this.participantEffective;
799        }
800
801        public boolean hasParticipantEffectiveTiming() { 
802          return this != null && this.participantEffective instanceof Timing;
803        }
804
805        public boolean hasParticipantEffective() { 
806          return this.participantEffective != null && !this.participantEffective.isEmpty();
807        }
808
809        /**
810         * @param value {@link #participantEffective} (Indicates what effective period the study covers.)
811         */
812        public EvidenceVariableCharacteristicComponent setParticipantEffective(Type value) { 
813          if (value != null && !(value instanceof DateTimeType || value instanceof Period || value instanceof Duration || value instanceof Timing))
814            throw new Error("Not the right type for EvidenceVariable.characteristic.participantEffective[x]: "+value.fhirType());
815          this.participantEffective = value;
816          return this;
817        }
818
819        /**
820         * @return {@link #timeFromStart} (Indicates duration from the participant's study entry.)
821         */
822        public Duration getTimeFromStart() { 
823          if (this.timeFromStart == null)
824            if (Configuration.errorOnAutoCreate())
825              throw new Error("Attempt to auto-create EvidenceVariableCharacteristicComponent.timeFromStart");
826            else if (Configuration.doAutoCreate())
827              this.timeFromStart = new Duration(); // cc
828          return this.timeFromStart;
829        }
830
831        public boolean hasTimeFromStart() { 
832          return this.timeFromStart != null && !this.timeFromStart.isEmpty();
833        }
834
835        /**
836         * @param value {@link #timeFromStart} (Indicates duration from the participant's study entry.)
837         */
838        public EvidenceVariableCharacteristicComponent setTimeFromStart(Duration value) { 
839          this.timeFromStart = value;
840          return this;
841        }
842
843        /**
844         * @return {@link #groupMeasure} (Indicates how elements are aggregated within the study effective period.). This is the underlying object with id, value and extensions. The accessor "getGroupMeasure" gives direct access to the value
845         */
846        public Enumeration<GroupMeasure> getGroupMeasureElement() { 
847          if (this.groupMeasure == null)
848            if (Configuration.errorOnAutoCreate())
849              throw new Error("Attempt to auto-create EvidenceVariableCharacteristicComponent.groupMeasure");
850            else if (Configuration.doAutoCreate())
851              this.groupMeasure = new Enumeration<GroupMeasure>(new GroupMeasureEnumFactory()); // bb
852          return this.groupMeasure;
853        }
854
855        public boolean hasGroupMeasureElement() { 
856          return this.groupMeasure != null && !this.groupMeasure.isEmpty();
857        }
858
859        public boolean hasGroupMeasure() { 
860          return this.groupMeasure != null && !this.groupMeasure.isEmpty();
861        }
862
863        /**
864         * @param value {@link #groupMeasure} (Indicates how elements are aggregated within the study effective period.). This is the underlying object with id, value and extensions. The accessor "getGroupMeasure" gives direct access to the value
865         */
866        public EvidenceVariableCharacteristicComponent setGroupMeasureElement(Enumeration<GroupMeasure> value) { 
867          this.groupMeasure = value;
868          return this;
869        }
870
871        /**
872         * @return Indicates how elements are aggregated within the study effective period.
873         */
874        public GroupMeasure getGroupMeasure() { 
875          return this.groupMeasure == null ? null : this.groupMeasure.getValue();
876        }
877
878        /**
879         * @param value Indicates how elements are aggregated within the study effective period.
880         */
881        public EvidenceVariableCharacteristicComponent setGroupMeasure(GroupMeasure value) { 
882          if (value == null)
883            this.groupMeasure = null;
884          else {
885            if (this.groupMeasure == null)
886              this.groupMeasure = new Enumeration<GroupMeasure>(new GroupMeasureEnumFactory());
887            this.groupMeasure.setValue(value);
888          }
889          return this;
890        }
891
892        protected void listChildren(List<Property> children) {
893          super.listChildren(children);
894          children.add(new Property("description", "string", "A short, natural language description of the characteristic that could be used to communicate the criteria to an end-user.", 0, 1, description));
895          children.add(new Property("definition[x]", "Reference(Group)|canonical(ActivityDefinition)|CodeableConcept|Expression|DataRequirement|TriggerDefinition", "Define members of the evidence element using Codes (such as condition, medication, or observation), Expressions ( using an expression language such as FHIRPath or CQL) or DataRequirements (such as Diabetes diagnosis onset in the last year).", 0, 1, definition));
896          children.add(new Property("method", "CodeableConcept", "Method used for describing characteristic.", 0, 1, method));
897          children.add(new Property("device", "Reference(Device|DeviceMetric)", "Device used for determining characteristic.", 0, 1, device));
898          children.add(new Property("booleanSet", "string", "Use booleanSet to define the members of the population, such as Age Ranges, Genders, Settings.", 0, java.lang.Integer.MAX_VALUE, booleanSet));
899          children.add(new Property("exclude", "boolean", "When true, members with this characteristic are excluded from the element.", 0, 1, exclude));
900          children.add(new Property("participantEffective[x]", "dateTime|Period|Duration|Timing", "Indicates what effective period the study covers.", 0, 1, participantEffective));
901          children.add(new Property("timeFromStart", "Duration", "Indicates duration from the participant's study entry.", 0, 1, timeFromStart));
902          children.add(new Property("groupMeasure", "code", "Indicates how elements are aggregated within the study effective period.", 0, 1, groupMeasure));
903        }
904
905        @Override
906        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
907          switch (_hash) {
908          case -1724546052: /*description*/  return new Property("description", "string", "A short, natural language description of the characteristic that could be used to communicate the criteria to an end-user.", 0, 1, description);
909          case -1139422643: /*definition[x]*/  return new Property("definition[x]", "Reference(Group)|canonical(ActivityDefinition)|CodeableConcept|Expression|DataRequirement|TriggerDefinition", "Define members of the evidence element using Codes (such as condition, medication, or observation), Expressions ( using an expression language such as FHIRPath or CQL) or DataRequirements (such as Diabetes diagnosis onset in the last year).", 0, 1, definition);
910          case -1014418093: /*definition*/  return new Property("definition[x]", "Reference(Group)|canonical(ActivityDefinition)|CodeableConcept|Expression|DataRequirement|TriggerDefinition", "Define members of the evidence element using Codes (such as condition, medication, or observation), Expressions ( using an expression language such as FHIRPath or CQL) or DataRequirements (such as Diabetes diagnosis onset in the last year).", 0, 1, definition);
911          case -820021448: /*definitionReference*/  return new Property("definition[x]", "Reference(Group)|canonical(ActivityDefinition)|CodeableConcept|Expression|DataRequirement|TriggerDefinition", "Define members of the evidence element using Codes (such as condition, medication, or observation), Expressions ( using an expression language such as FHIRPath or CQL) or DataRequirements (such as Diabetes diagnosis onset in the last year).", 0, 1, definition);
912          case 933485793: /*definitionCanonical*/  return new Property("definition[x]", "Reference(Group)|canonical(ActivityDefinition)|CodeableConcept|Expression|DataRequirement|TriggerDefinition", "Define members of the evidence element using Codes (such as condition, medication, or observation), Expressions ( using an expression language such as FHIRPath or CQL) or DataRequirements (such as Diabetes diagnosis onset in the last year).", 0, 1, definition);
913          case -1446002226: /*definitionCodeableConcept*/  return new Property("definition[x]", "Reference(Group)|canonical(ActivityDefinition)|CodeableConcept|Expression|DataRequirement|TriggerDefinition", "Define members of the evidence element using Codes (such as condition, medication, or observation), Expressions ( using an expression language such as FHIRPath or CQL) or DataRequirements (such as Diabetes diagnosis onset in the last year).", 0, 1, definition);
914          case 1463703627: /*definitionExpression*/  return new Property("definition[x]", "Reference(Group)|canonical(ActivityDefinition)|CodeableConcept|Expression|DataRequirement|TriggerDefinition", "Define members of the evidence element using Codes (such as condition, medication, or observation), Expressions ( using an expression language such as FHIRPath or CQL) or DataRequirements (such as Diabetes diagnosis onset in the last year).", 0, 1, definition);
915          case -660350874: /*definitionDataRequirement*/  return new Property("definition[x]", "Reference(Group)|canonical(ActivityDefinition)|CodeableConcept|Expression|DataRequirement|TriggerDefinition", "Define members of the evidence element using Codes (such as condition, medication, or observation), Expressions ( using an expression language such as FHIRPath or CQL) or DataRequirements (such as Diabetes diagnosis onset in the last year).", 0, 1, definition);
916          case -1130324968: /*definitionTriggerDefinition*/  return new Property("definition[x]", "Reference(Group)|canonical(ActivityDefinition)|CodeableConcept|Expression|DataRequirement|TriggerDefinition", "Define members of the evidence element using Codes (such as condition, medication, or observation), Expressions ( using an expression language such as FHIRPath or CQL) or DataRequirements (such as Diabetes diagnosis onset in the last year).", 0, 1, definition);
917          case -1077554975: /*method*/  return new Property("method", "CodeableConcept", "Method used for describing characteristic.", 0, 1, method);
918          case -1335157162: /*device*/  return new Property("device", "Reference(Device|DeviceMetric)", "Device used for determining characteristic.", 0, 1, device);
919          case -613382374: /*booleanSet*/  return new Property("booleanSet", "string", "Use booleanSet to define the members of the population, such as Age Ranges, Genders, Settings.", 0, java.lang.Integer.MAX_VALUE, booleanSet);
920          case -1321148966: /*exclude*/  return new Property("exclude", "boolean", "When true, members with this characteristic are excluded from the element.", 0, 1, exclude);
921          case 1777308748: /*participantEffective[x]*/  return new Property("participantEffective[x]", "dateTime|Period|Duration|Timing", "Indicates what effective period the study covers.", 0, 1, participantEffective);
922          case 1376306100: /*participantEffective*/  return new Property("participantEffective[x]", "dateTime|Period|Duration|Timing", "Indicates what effective period the study covers.", 0, 1, participantEffective);
923          case -1721146513: /*participantEffectiveDateTime*/  return new Property("participantEffective[x]", "dateTime|Period|Duration|Timing", "Indicates what effective period the study covers.", 0, 1, participantEffective);
924          case -883650923: /*participantEffectivePeriod*/  return new Property("participantEffective[x]", "dateTime|Period|Duration|Timing", "Indicates what effective period the study covers.", 0, 1, participantEffective);
925          case -1210941080: /*participantEffectiveDuration*/  return new Property("participantEffective[x]", "dateTime|Period|Duration|Timing", "Indicates what effective period the study covers.", 0, 1, participantEffective);
926          case -765589218: /*participantEffectiveTiming*/  return new Property("participantEffective[x]", "dateTime|Period|Duration|Timing", "Indicates what effective period the study covers.", 0, 1, participantEffective);
927          case 2100140683: /*timeFromStart*/  return new Property("timeFromStart", "Duration", "Indicates duration from the participant's study entry.", 0, 1, timeFromStart);
928          case 588892639: /*groupMeasure*/  return new Property("groupMeasure", "code", "Indicates how elements are aggregated within the study effective period.", 0, 1, groupMeasure);
929          default: return super.getNamedProperty(_hash, _name, _checkValid);
930          }
931
932        }
933
934      @Override
935      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
936        switch (hash) {
937        case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType
938        case -1014418093: /*definition*/ return this.definition == null ? new Base[0] : new Base[] {this.definition}; // Type
939        case -1077554975: /*method*/ return this.method == null ? new Base[0] : new Base[] {this.method}; // CodeableConcept
940        case -1335157162: /*device*/ return this.device == null ? new Base[0] : new Base[] {this.device}; // Reference
941        case -613382374: /*booleanSet*/ return this.booleanSet == null ? new Base[0] : this.booleanSet.toArray(new Base[this.booleanSet.size()]); // StringType
942        case -1321148966: /*exclude*/ return this.exclude == null ? new Base[0] : new Base[] {this.exclude}; // BooleanType
943        case 1376306100: /*participantEffective*/ return this.participantEffective == null ? new Base[0] : new Base[] {this.participantEffective}; // Type
944        case 2100140683: /*timeFromStart*/ return this.timeFromStart == null ? new Base[0] : new Base[] {this.timeFromStart}; // Duration
945        case 588892639: /*groupMeasure*/ return this.groupMeasure == null ? new Base[0] : new Base[] {this.groupMeasure}; // Enumeration<GroupMeasure>
946        default: return super.getProperty(hash, name, checkValid);
947        }
948
949      }
950
951      @Override
952      public Base setProperty(int hash, String name, Base value) throws FHIRException {
953        switch (hash) {
954        case -1724546052: // description
955          this.description = castToString(value); // StringType
956          return value;
957        case -1014418093: // definition
958          this.definition = castToType(value); // Type
959          return value;
960        case -1077554975: // method
961          this.method = castToCodeableConcept(value); // CodeableConcept
962          return value;
963        case -1335157162: // device
964          this.device = castToReference(value); // Reference
965          return value;
966        case -613382374: // booleanSet
967          this.getBooleanSet().add(castToString(value)); // StringType
968          return value;
969        case -1321148966: // exclude
970          this.exclude = castToBoolean(value); // BooleanType
971          return value;
972        case 1376306100: // participantEffective
973          this.participantEffective = castToType(value); // Type
974          return value;
975        case 2100140683: // timeFromStart
976          this.timeFromStart = castToDuration(value); // Duration
977          return value;
978        case 588892639: // groupMeasure
979          value = new GroupMeasureEnumFactory().fromType(castToCode(value));
980          this.groupMeasure = (Enumeration) value; // Enumeration<GroupMeasure>
981          return value;
982        default: return super.setProperty(hash, name, value);
983        }
984
985      }
986
987      @Override
988      public Base setProperty(String name, Base value) throws FHIRException {
989        if (name.equals("description")) {
990          this.description = castToString(value); // StringType
991        } else if (name.equals("definition[x]")) {
992          this.definition = castToType(value); // Type
993        } else if (name.equals("method")) {
994          this.method = castToCodeableConcept(value); // CodeableConcept
995        } else if (name.equals("device")) {
996          this.device = castToReference(value); // Reference
997        } else if (name.equals("booleanSet")) {
998          this.getBooleanSet().add(castToString(value));
999        } else if (name.equals("exclude")) {
1000          this.exclude = castToBoolean(value); // BooleanType
1001        } else if (name.equals("participantEffective[x]")) {
1002          this.participantEffective = castToType(value); // Type
1003        } else if (name.equals("timeFromStart")) {
1004          this.timeFromStart = castToDuration(value); // Duration
1005        } else if (name.equals("groupMeasure")) {
1006          value = new GroupMeasureEnumFactory().fromType(castToCode(value));
1007          this.groupMeasure = (Enumeration) value; // Enumeration<GroupMeasure>
1008        } else
1009          return super.setProperty(name, value);
1010        return value;
1011      }
1012
1013      @Override
1014      public Base makeProperty(int hash, String name) throws FHIRException {
1015        switch (hash) {
1016        case -1724546052:  return getDescriptionElement();
1017        case -1139422643:  return getDefinition();
1018        case -1014418093:  return getDefinition();
1019        case -1077554975:  return getMethod();
1020        case -1335157162:  return getDevice();
1021        case -613382374:  return addBooleanSetElement();
1022        case -1321148966:  return getExcludeElement();
1023        case 1777308748:  return getParticipantEffective();
1024        case 1376306100:  return getParticipantEffective();
1025        case 2100140683:  return getTimeFromStart();
1026        case 588892639:  return getGroupMeasureElement();
1027        default: return super.makeProperty(hash, name);
1028        }
1029
1030      }
1031
1032      @Override
1033      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
1034        switch (hash) {
1035        case -1724546052: /*description*/ return new String[] {"string"};
1036        case -1014418093: /*definition*/ return new String[] {"Reference", "canonical", "CodeableConcept", "Expression", "DataRequirement", "TriggerDefinition"};
1037        case -1077554975: /*method*/ return new String[] {"CodeableConcept"};
1038        case -1335157162: /*device*/ return new String[] {"Reference"};
1039        case -613382374: /*booleanSet*/ return new String[] {"string"};
1040        case -1321148966: /*exclude*/ return new String[] {"boolean"};
1041        case 1376306100: /*participantEffective*/ return new String[] {"dateTime", "Period", "Duration", "Timing"};
1042        case 2100140683: /*timeFromStart*/ return new String[] {"Duration"};
1043        case 588892639: /*groupMeasure*/ return new String[] {"code"};
1044        default: return super.getTypesForProperty(hash, name);
1045        }
1046
1047      }
1048
1049      @Override
1050      public Base addChild(String name) throws FHIRException {
1051        if (name.equals("description")) {
1052          throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.description");
1053        }
1054        else if (name.equals("definitionReference")) {
1055          this.definition = new Reference();
1056          return this.definition;
1057        }
1058        else if (name.equals("definitionCanonical")) {
1059          this.definition = new CanonicalType();
1060          return this.definition;
1061        }
1062        else if (name.equals("definitionCodeableConcept")) {
1063          this.definition = new CodeableConcept();
1064          return this.definition;
1065        }
1066        else if (name.equals("definitionExpression")) {
1067          this.definition = new Expression();
1068          return this.definition;
1069        }
1070        else if (name.equals("definitionDataRequirement")) {
1071          this.definition = new DataRequirement();
1072          return this.definition;
1073        }
1074        else if (name.equals("definitionTriggerDefinition")) {
1075          this.definition = new TriggerDefinition();
1076          return this.definition;
1077        }
1078        else if (name.equals("method")) {
1079          this.method = new CodeableConcept();
1080          return this.method;
1081        }
1082        else if (name.equals("device")) {
1083          this.device = new Reference();
1084          return this.device;
1085        }
1086        else if (name.equals("booleanSet")) {
1087          throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.booleanSet");
1088        }
1089        else if (name.equals("exclude")) {
1090          throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.exclude");
1091        }
1092        else if (name.equals("participantEffectiveDateTime")) {
1093          this.participantEffective = new DateTimeType();
1094          return this.participantEffective;
1095        }
1096        else if (name.equals("participantEffectivePeriod")) {
1097          this.participantEffective = new Period();
1098          return this.participantEffective;
1099        }
1100        else if (name.equals("participantEffectiveDuration")) {
1101          this.participantEffective = new Duration();
1102          return this.participantEffective;
1103        }
1104        else if (name.equals("participantEffectiveTiming")) {
1105          this.participantEffective = new Timing();
1106          return this.participantEffective;
1107        }
1108        else if (name.equals("timeFromStart")) {
1109          this.timeFromStart = new Duration();
1110          return this.timeFromStart;
1111        }
1112        else if (name.equals("groupMeasure")) {
1113          throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.groupMeasure");
1114        }
1115        else
1116          return super.addChild(name);
1117      }
1118
1119      public EvidenceVariableCharacteristicComponent copy() {
1120        EvidenceVariableCharacteristicComponent dst = new EvidenceVariableCharacteristicComponent();
1121        copyValues(dst);
1122        return dst;
1123      }
1124
1125      public void copyValues(EvidenceVariableCharacteristicComponent dst) {
1126        super.copyValues(dst);
1127        dst.description = description == null ? null : description.copy();
1128        dst.definition = definition == null ? null : definition.copy();
1129        dst.method = method == null ? null : method.copy();
1130        dst.device = device == null ? null : device.copy();
1131        if (booleanSet != null) {
1132          dst.booleanSet = new ArrayList<StringType>();
1133          for (StringType i : booleanSet)
1134            dst.booleanSet.add(i.copy());
1135        };
1136        dst.exclude = exclude == null ? null : exclude.copy();
1137        dst.participantEffective = participantEffective == null ? null : participantEffective.copy();
1138        dst.timeFromStart = timeFromStart == null ? null : timeFromStart.copy();
1139        dst.groupMeasure = groupMeasure == null ? null : groupMeasure.copy();
1140      }
1141
1142      @Override
1143      public boolean equalsDeep(Base other_) {
1144        if (!super.equalsDeep(other_))
1145          return false;
1146        if (!(other_ instanceof EvidenceVariableCharacteristicComponent))
1147          return false;
1148        EvidenceVariableCharacteristicComponent o = (EvidenceVariableCharacteristicComponent) other_;
1149        return compareDeep(description, o.description, true) && compareDeep(definition, o.definition, true)
1150           && compareDeep(method, o.method, true) && compareDeep(device, o.device, true) && compareDeep(booleanSet, o.booleanSet, true)
1151           && compareDeep(exclude, o.exclude, true) && compareDeep(participantEffective, o.participantEffective, true)
1152           && compareDeep(timeFromStart, o.timeFromStart, true) && compareDeep(groupMeasure, o.groupMeasure, true)
1153          ;
1154      }
1155
1156      @Override
1157      public boolean equalsShallow(Base other_) {
1158        if (!super.equalsShallow(other_))
1159          return false;
1160        if (!(other_ instanceof EvidenceVariableCharacteristicComponent))
1161          return false;
1162        EvidenceVariableCharacteristicComponent o = (EvidenceVariableCharacteristicComponent) other_;
1163        return compareValues(description, o.description, true) && compareValues(booleanSet, o.booleanSet, true)
1164           && compareValues(exclude, o.exclude, true) && compareValues(groupMeasure, o.groupMeasure, true);
1165      }
1166
1167      public boolean isEmpty() {
1168        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(description, definition, method
1169          , device, booleanSet, exclude, participantEffective, timeFromStart, groupMeasure
1170          );
1171      }
1172
1173  public String fhirType() {
1174    return "EvidenceVariable.characteristic";
1175
1176  }
1177
1178  }
1179
1180    /**
1181     * A formal identifier that is used to identify this evidence variable when it is represented in other formats, or referenced in a specification, model, design or an instance.
1182     */
1183    @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
1184    @Description(shortDefinition="Additional identifier for the evidence variable", formalDefinition="A formal identifier that is used to identify this evidence variable when it is represented in other formats, or referenced in a specification, model, design or an instance." )
1185    protected List<Identifier> identifier;
1186
1187    /**
1188     * The short title provides an alternate title for use in informal descriptive contexts where the full, formal title is not necessary.
1189     */
1190    @Child(name = "shortTitle", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=true)
1191    @Description(shortDefinition="Title for use in informal contexts", formalDefinition="The short title provides an alternate title for use in informal descriptive contexts where the full, formal title is not necessary." )
1192    protected StringType shortTitle;
1193
1194    /**
1195     * An explanatory or alternate title for the EvidenceVariable giving additional information about its content.
1196     */
1197    @Child(name = "subtitle", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false)
1198    @Description(shortDefinition="Subordinate title of the EvidenceVariable", formalDefinition="An explanatory or alternate title for the EvidenceVariable giving additional information about its content." )
1199    protected StringType subtitle;
1200
1201    /**
1202     * A human-readable string to clarify or explain concepts about the resource.
1203     */
1204    @Child(name = "note", type = {Annotation.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1205    @Description(shortDefinition="Used for footnotes or explanatory notes", formalDefinition="A human-readable string to clarify or explain concepts about the resource." )
1206    protected List<Annotation> note;
1207
1208    /**
1209     * A copyright statement relating to the evidence variable and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the evidence variable.
1210     */
1211    @Child(name = "copyright", type = {MarkdownType.class}, order=4, min=0, max=1, modifier=false, summary=false)
1212    @Description(shortDefinition="Use and/or publishing restrictions", formalDefinition="A copyright statement relating to the evidence variable and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the evidence variable." )
1213    protected MarkdownType copyright;
1214
1215    /**
1216     * The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.
1217     */
1218    @Child(name = "approvalDate", type = {DateType.class}, order=5, min=0, max=1, modifier=false, summary=false)
1219    @Description(shortDefinition="When the evidence variable was approved by publisher", formalDefinition="The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage." )
1220    protected DateType approvalDate;
1221
1222    /**
1223     * The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.
1224     */
1225    @Child(name = "lastReviewDate", type = {DateType.class}, order=6, min=0, max=1, modifier=false, summary=false)
1226    @Description(shortDefinition="When the evidence variable was last reviewed", formalDefinition="The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date." )
1227    protected DateType lastReviewDate;
1228
1229    /**
1230     * The period during which the evidence variable content was or is planned to be in active use.
1231     */
1232    @Child(name = "effectivePeriod", type = {Period.class}, order=7, min=0, max=1, modifier=false, summary=true)
1233    @Description(shortDefinition="When the evidence variable is expected to be used", formalDefinition="The period during which the evidence variable content was or is planned to be in active use." )
1234    protected Period effectivePeriod;
1235
1236    /**
1237     * Descriptive topics related to the content of the EvidenceVariable. Topics provide a high-level categorization grouping types of EvidenceVariables that can be useful for filtering and searching.
1238     */
1239    @Child(name = "topic", type = {CodeableConcept.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1240    @Description(shortDefinition="The category of the EvidenceVariable, such as Education, Treatment, Assessment, etc.", formalDefinition="Descriptive topics related to the content of the EvidenceVariable. Topics provide a high-level categorization grouping types of EvidenceVariables that can be useful for filtering and searching." )
1241    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/definition-topic")
1242    protected List<CodeableConcept> topic;
1243
1244    /**
1245     * An individiual or organization primarily involved in the creation and maintenance of the content.
1246     */
1247    @Child(name = "author", type = {ContactDetail.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1248    @Description(shortDefinition="Who authored the content", formalDefinition="An individiual or organization primarily involved in the creation and maintenance of the content." )
1249    protected List<ContactDetail> author;
1250
1251    /**
1252     * An individual or organization primarily responsible for internal coherence of the content.
1253     */
1254    @Child(name = "editor", type = {ContactDetail.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1255    @Description(shortDefinition="Who edited the content", formalDefinition="An individual or organization primarily responsible for internal coherence of the content." )
1256    protected List<ContactDetail> editor;
1257
1258    /**
1259     * An individual or organization primarily responsible for review of some aspect of the content.
1260     */
1261    @Child(name = "reviewer", type = {ContactDetail.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1262    @Description(shortDefinition="Who reviewed the content", formalDefinition="An individual or organization primarily responsible for review of some aspect of the content." )
1263    protected List<ContactDetail> reviewer;
1264
1265    /**
1266     * An individual or organization responsible for officially endorsing the content for use in some setting.
1267     */
1268    @Child(name = "endorser", type = {ContactDetail.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1269    @Description(shortDefinition="Who endorsed the content", formalDefinition="An individual or organization responsible for officially endorsing the content for use in some setting." )
1270    protected List<ContactDetail> endorser;
1271
1272    /**
1273     * Related artifacts such as additional documentation, justification, or bibliographic references.
1274     */
1275    @Child(name = "relatedArtifact", type = {RelatedArtifact.class}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1276    @Description(shortDefinition="Additional documentation, citations, etc.", formalDefinition="Related artifacts such as additional documentation, justification, or bibliographic references." )
1277    protected List<RelatedArtifact> relatedArtifact;
1278
1279    /**
1280     * The type of evidence element, a population, an exposure, or an outcome.
1281     */
1282    @Child(name = "type", type = {CodeType.class}, order=14, min=0, max=1, modifier=false, summary=true)
1283    @Description(shortDefinition="dichotomous | continuous | descriptive", formalDefinition="The type of evidence element, a population, an exposure, or an outcome." )
1284    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/variable-type")
1285    protected Enumeration<EvidenceVariableType> type;
1286
1287    /**
1288     * True if the actual variable measured, false if a conceptual representation of the intended variable.
1289     */
1290    @Child(name = "actual", type = {BooleanType.class}, order=15, min=0, max=1, modifier=false, summary=false)
1291    @Description(shortDefinition="Actual or conceptual", formalDefinition="True if the actual variable measured, false if a conceptual representation of the intended variable." )
1292    protected BooleanType actual;
1293
1294    /**
1295     * A characteristic that defines the members of the evidence element. Multiple characteristics are applied with "and" semantics.
1296     */
1297    @Child(name = "characteristic", type = {}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
1298    @Description(shortDefinition="What defines the members of the evidence element", formalDefinition="A characteristic that defines the members of the evidence element. Multiple characteristics are applied with \"and\" semantics." )
1299    protected List<EvidenceVariableCharacteristicComponent> characteristic;
1300
1301    private static final long serialVersionUID = 433718448L;
1302
1303  /**
1304   * Constructor
1305   */
1306    public EvidenceVariable() {
1307      super();
1308    }
1309
1310  /**
1311   * Constructor
1312   */
1313    public EvidenceVariable(Enumeration<PublicationStatus> status) {
1314      super();
1315      this.status = status;
1316    }
1317
1318    /**
1319     * @return {@link #url} (An absolute URI that is used to identify this evidence variable when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this evidence variable is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the evidence variable is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
1320     */
1321    public UriType getUrlElement() { 
1322      if (this.url == null)
1323        if (Configuration.errorOnAutoCreate())
1324          throw new Error("Attempt to auto-create EvidenceVariable.url");
1325        else if (Configuration.doAutoCreate())
1326          this.url = new UriType(); // bb
1327      return this.url;
1328    }
1329
1330    public boolean hasUrlElement() { 
1331      return this.url != null && !this.url.isEmpty();
1332    }
1333
1334    public boolean hasUrl() { 
1335      return this.url != null && !this.url.isEmpty();
1336    }
1337
1338    /**
1339     * @param value {@link #url} (An absolute URI that is used to identify this evidence variable when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this evidence variable is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the evidence variable is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
1340     */
1341    public EvidenceVariable setUrlElement(UriType value) { 
1342      this.url = value;
1343      return this;
1344    }
1345
1346    /**
1347     * @return An absolute URI that is used to identify this evidence variable when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this evidence variable is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the evidence variable is stored on different servers.
1348     */
1349    public String getUrl() { 
1350      return this.url == null ? null : this.url.getValue();
1351    }
1352
1353    /**
1354     * @param value An absolute URI that is used to identify this evidence variable when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this evidence variable is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the evidence variable is stored on different servers.
1355     */
1356    public EvidenceVariable setUrl(String value) { 
1357      if (Utilities.noString(value))
1358        this.url = null;
1359      else {
1360        if (this.url == null)
1361          this.url = new UriType();
1362        this.url.setValue(value);
1363      }
1364      return this;
1365    }
1366
1367    /**
1368     * @return {@link #identifier} (A formal identifier that is used to identify this evidence variable when it is represented in other formats, or referenced in a specification, model, design or an instance.)
1369     */
1370    public List<Identifier> getIdentifier() { 
1371      if (this.identifier == null)
1372        this.identifier = new ArrayList<Identifier>();
1373      return this.identifier;
1374    }
1375
1376    /**
1377     * @return Returns a reference to <code>this</code> for easy method chaining
1378     */
1379    public EvidenceVariable setIdentifier(List<Identifier> theIdentifier) { 
1380      this.identifier = theIdentifier;
1381      return this;
1382    }
1383
1384    public boolean hasIdentifier() { 
1385      if (this.identifier == null)
1386        return false;
1387      for (Identifier item : this.identifier)
1388        if (!item.isEmpty())
1389          return true;
1390      return false;
1391    }
1392
1393    public Identifier addIdentifier() { //3
1394      Identifier t = new Identifier();
1395      if (this.identifier == null)
1396        this.identifier = new ArrayList<Identifier>();
1397      this.identifier.add(t);
1398      return t;
1399    }
1400
1401    public EvidenceVariable addIdentifier(Identifier t) { //3
1402      if (t == null)
1403        return this;
1404      if (this.identifier == null)
1405        this.identifier = new ArrayList<Identifier>();
1406      this.identifier.add(t);
1407      return this;
1408    }
1409
1410    /**
1411     * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist
1412     */
1413    public Identifier getIdentifierFirstRep() { 
1414      if (getIdentifier().isEmpty()) {
1415        addIdentifier();
1416      }
1417      return getIdentifier().get(0);
1418    }
1419
1420    /**
1421     * @return {@link #version} (The identifier that is used to identify this version of the evidence variable when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the evidence variable 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 can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
1422     */
1423    public StringType getVersionElement() { 
1424      if (this.version == null)
1425        if (Configuration.errorOnAutoCreate())
1426          throw new Error("Attempt to auto-create EvidenceVariable.version");
1427        else if (Configuration.doAutoCreate())
1428          this.version = new StringType(); // bb
1429      return this.version;
1430    }
1431
1432    public boolean hasVersionElement() { 
1433      return this.version != null && !this.version.isEmpty();
1434    }
1435
1436    public boolean hasVersion() { 
1437      return this.version != null && !this.version.isEmpty();
1438    }
1439
1440    /**
1441     * @param value {@link #version} (The identifier that is used to identify this version of the evidence variable when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the evidence variable 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 can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
1442     */
1443    public EvidenceVariable setVersionElement(StringType value) { 
1444      this.version = value;
1445      return this;
1446    }
1447
1448    /**
1449     * @return The identifier that is used to identify this version of the evidence variable when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the evidence variable 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 can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts.
1450     */
1451    public String getVersion() { 
1452      return this.version == null ? null : this.version.getValue();
1453    }
1454
1455    /**
1456     * @param value The identifier that is used to identify this version of the evidence variable when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the evidence variable 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 can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts.
1457     */
1458    public EvidenceVariable setVersion(String value) { 
1459      if (Utilities.noString(value))
1460        this.version = null;
1461      else {
1462        if (this.version == null)
1463          this.version = new StringType();
1464        this.version.setValue(value);
1465      }
1466      return this;
1467    }
1468
1469    /**
1470     * @return {@link #name} (A natural language name identifying the evidence variable. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
1471     */
1472    public StringType getNameElement() { 
1473      if (this.name == null)
1474        if (Configuration.errorOnAutoCreate())
1475          throw new Error("Attempt to auto-create EvidenceVariable.name");
1476        else if (Configuration.doAutoCreate())
1477          this.name = new StringType(); // bb
1478      return this.name;
1479    }
1480
1481    public boolean hasNameElement() { 
1482      return this.name != null && !this.name.isEmpty();
1483    }
1484
1485    public boolean hasName() { 
1486      return this.name != null && !this.name.isEmpty();
1487    }
1488
1489    /**
1490     * @param value {@link #name} (A natural language name identifying the evidence variable. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
1491     */
1492    public EvidenceVariable setNameElement(StringType value) { 
1493      this.name = value;
1494      return this;
1495    }
1496
1497    /**
1498     * @return A natural language name identifying the evidence variable. This name should be usable as an identifier for the module by machine processing applications such as code generation.
1499     */
1500    public String getName() { 
1501      return this.name == null ? null : this.name.getValue();
1502    }
1503
1504    /**
1505     * @param value A natural language name identifying the evidence variable. This name should be usable as an identifier for the module by machine processing applications such as code generation.
1506     */
1507    public EvidenceVariable setName(String value) { 
1508      if (Utilities.noString(value))
1509        this.name = null;
1510      else {
1511        if (this.name == null)
1512          this.name = new StringType();
1513        this.name.setValue(value);
1514      }
1515      return this;
1516    }
1517
1518    /**
1519     * @return {@link #title} (A short, descriptive, user-friendly title for the evidence variable.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
1520     */
1521    public StringType getTitleElement() { 
1522      if (this.title == null)
1523        if (Configuration.errorOnAutoCreate())
1524          throw new Error("Attempt to auto-create EvidenceVariable.title");
1525        else if (Configuration.doAutoCreate())
1526          this.title = new StringType(); // bb
1527      return this.title;
1528    }
1529
1530    public boolean hasTitleElement() { 
1531      return this.title != null && !this.title.isEmpty();
1532    }
1533
1534    public boolean hasTitle() { 
1535      return this.title != null && !this.title.isEmpty();
1536    }
1537
1538    /**
1539     * @param value {@link #title} (A short, descriptive, user-friendly title for the evidence variable.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
1540     */
1541    public EvidenceVariable setTitleElement(StringType value) { 
1542      this.title = value;
1543      return this;
1544    }
1545
1546    /**
1547     * @return A short, descriptive, user-friendly title for the evidence variable.
1548     */
1549    public String getTitle() { 
1550      return this.title == null ? null : this.title.getValue();
1551    }
1552
1553    /**
1554     * @param value A short, descriptive, user-friendly title for the evidence variable.
1555     */
1556    public EvidenceVariable setTitle(String value) { 
1557      if (Utilities.noString(value))
1558        this.title = null;
1559      else {
1560        if (this.title == null)
1561          this.title = new StringType();
1562        this.title.setValue(value);
1563      }
1564      return this;
1565    }
1566
1567    /**
1568     * @return {@link #shortTitle} (The short title provides an alternate title for use in informal descriptive contexts where the full, formal title is not necessary.). This is the underlying object with id, value and extensions. The accessor "getShortTitle" gives direct access to the value
1569     */
1570    public StringType getShortTitleElement() { 
1571      if (this.shortTitle == null)
1572        if (Configuration.errorOnAutoCreate())
1573          throw new Error("Attempt to auto-create EvidenceVariable.shortTitle");
1574        else if (Configuration.doAutoCreate())
1575          this.shortTitle = new StringType(); // bb
1576      return this.shortTitle;
1577    }
1578
1579    public boolean hasShortTitleElement() { 
1580      return this.shortTitle != null && !this.shortTitle.isEmpty();
1581    }
1582
1583    public boolean hasShortTitle() { 
1584      return this.shortTitle != null && !this.shortTitle.isEmpty();
1585    }
1586
1587    /**
1588     * @param value {@link #shortTitle} (The short title provides an alternate title for use in informal descriptive contexts where the full, formal title is not necessary.). This is the underlying object with id, value and extensions. The accessor "getShortTitle" gives direct access to the value
1589     */
1590    public EvidenceVariable setShortTitleElement(StringType value) { 
1591      this.shortTitle = value;
1592      return this;
1593    }
1594
1595    /**
1596     * @return The short title provides an alternate title for use in informal descriptive contexts where the full, formal title is not necessary.
1597     */
1598    public String getShortTitle() { 
1599      return this.shortTitle == null ? null : this.shortTitle.getValue();
1600    }
1601
1602    /**
1603     * @param value The short title provides an alternate title for use in informal descriptive contexts where the full, formal title is not necessary.
1604     */
1605    public EvidenceVariable setShortTitle(String value) { 
1606      if (Utilities.noString(value))
1607        this.shortTitle = null;
1608      else {
1609        if (this.shortTitle == null)
1610          this.shortTitle = new StringType();
1611        this.shortTitle.setValue(value);
1612      }
1613      return this;
1614    }
1615
1616    /**
1617     * @return {@link #subtitle} (An explanatory or alternate title for the EvidenceVariable giving additional information about its content.). This is the underlying object with id, value and extensions. The accessor "getSubtitle" gives direct access to the value
1618     */
1619    public StringType getSubtitleElement() { 
1620      if (this.subtitle == null)
1621        if (Configuration.errorOnAutoCreate())
1622          throw new Error("Attempt to auto-create EvidenceVariable.subtitle");
1623        else if (Configuration.doAutoCreate())
1624          this.subtitle = new StringType(); // bb
1625      return this.subtitle;
1626    }
1627
1628    public boolean hasSubtitleElement() { 
1629      return this.subtitle != null && !this.subtitle.isEmpty();
1630    }
1631
1632    public boolean hasSubtitle() { 
1633      return this.subtitle != null && !this.subtitle.isEmpty();
1634    }
1635
1636    /**
1637     * @param value {@link #subtitle} (An explanatory or alternate title for the EvidenceVariable giving additional information about its content.). This is the underlying object with id, value and extensions. The accessor "getSubtitle" gives direct access to the value
1638     */
1639    public EvidenceVariable setSubtitleElement(StringType value) { 
1640      this.subtitle = value;
1641      return this;
1642    }
1643
1644    /**
1645     * @return An explanatory or alternate title for the EvidenceVariable giving additional information about its content.
1646     */
1647    public String getSubtitle() { 
1648      return this.subtitle == null ? null : this.subtitle.getValue();
1649    }
1650
1651    /**
1652     * @param value An explanatory or alternate title for the EvidenceVariable giving additional information about its content.
1653     */
1654    public EvidenceVariable setSubtitle(String value) { 
1655      if (Utilities.noString(value))
1656        this.subtitle = null;
1657      else {
1658        if (this.subtitle == null)
1659          this.subtitle = new StringType();
1660        this.subtitle.setValue(value);
1661      }
1662      return this;
1663    }
1664
1665    /**
1666     * @return {@link #status} (The status of this evidence variable. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
1667     */
1668    public Enumeration<PublicationStatus> getStatusElement() { 
1669      if (this.status == null)
1670        if (Configuration.errorOnAutoCreate())
1671          throw new Error("Attempt to auto-create EvidenceVariable.status");
1672        else if (Configuration.doAutoCreate())
1673          this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); // bb
1674      return this.status;
1675    }
1676
1677    public boolean hasStatusElement() { 
1678      return this.status != null && !this.status.isEmpty();
1679    }
1680
1681    public boolean hasStatus() { 
1682      return this.status != null && !this.status.isEmpty();
1683    }
1684
1685    /**
1686     * @param value {@link #status} (The status of this evidence variable. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
1687     */
1688    public EvidenceVariable setStatusElement(Enumeration<PublicationStatus> value) { 
1689      this.status = value;
1690      return this;
1691    }
1692
1693    /**
1694     * @return The status of this evidence variable. Enables tracking the life-cycle of the content.
1695     */
1696    public PublicationStatus getStatus() { 
1697      return this.status == null ? null : this.status.getValue();
1698    }
1699
1700    /**
1701     * @param value The status of this evidence variable. Enables tracking the life-cycle of the content.
1702     */
1703    public EvidenceVariable setStatus(PublicationStatus value) { 
1704        if (this.status == null)
1705          this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory());
1706        this.status.setValue(value);
1707      return this;
1708    }
1709
1710    /**
1711     * @return {@link #date} (The date  (and optionally time) when the evidence variable was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the evidence variable changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
1712     */
1713    public DateTimeType getDateElement() { 
1714      if (this.date == null)
1715        if (Configuration.errorOnAutoCreate())
1716          throw new Error("Attempt to auto-create EvidenceVariable.date");
1717        else if (Configuration.doAutoCreate())
1718          this.date = new DateTimeType(); // bb
1719      return this.date;
1720    }
1721
1722    public boolean hasDateElement() { 
1723      return this.date != null && !this.date.isEmpty();
1724    }
1725
1726    public boolean hasDate() { 
1727      return this.date != null && !this.date.isEmpty();
1728    }
1729
1730    /**
1731     * @param value {@link #date} (The date  (and optionally time) when the evidence variable was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the evidence variable changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
1732     */
1733    public EvidenceVariable setDateElement(DateTimeType value) { 
1734      this.date = value;
1735      return this;
1736    }
1737
1738    /**
1739     * @return The date  (and optionally time) when the evidence variable was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the evidence variable changes.
1740     */
1741    public Date getDate() { 
1742      return this.date == null ? null : this.date.getValue();
1743    }
1744
1745    /**
1746     * @param value The date  (and optionally time) when the evidence variable was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the evidence variable changes.
1747     */
1748    public EvidenceVariable setDate(Date value) { 
1749      if (value == null)
1750        this.date = null;
1751      else {
1752        if (this.date == null)
1753          this.date = new DateTimeType();
1754        this.date.setValue(value);
1755      }
1756      return this;
1757    }
1758
1759    /**
1760     * @return {@link #publisher} (The name of the organization or individual that published the evidence variable.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value
1761     */
1762    public StringType getPublisherElement() { 
1763      if (this.publisher == null)
1764        if (Configuration.errorOnAutoCreate())
1765          throw new Error("Attempt to auto-create EvidenceVariable.publisher");
1766        else if (Configuration.doAutoCreate())
1767          this.publisher = new StringType(); // bb
1768      return this.publisher;
1769    }
1770
1771    public boolean hasPublisherElement() { 
1772      return this.publisher != null && !this.publisher.isEmpty();
1773    }
1774
1775    public boolean hasPublisher() { 
1776      return this.publisher != null && !this.publisher.isEmpty();
1777    }
1778
1779    /**
1780     * @param value {@link #publisher} (The name of the organization or individual that published the evidence variable.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value
1781     */
1782    public EvidenceVariable setPublisherElement(StringType value) { 
1783      this.publisher = value;
1784      return this;
1785    }
1786
1787    /**
1788     * @return The name of the organization or individual that published the evidence variable.
1789     */
1790    public String getPublisher() { 
1791      return this.publisher == null ? null : this.publisher.getValue();
1792    }
1793
1794    /**
1795     * @param value The name of the organization or individual that published the evidence variable.
1796     */
1797    public EvidenceVariable setPublisher(String value) { 
1798      if (Utilities.noString(value))
1799        this.publisher = null;
1800      else {
1801        if (this.publisher == null)
1802          this.publisher = new StringType();
1803        this.publisher.setValue(value);
1804      }
1805      return this;
1806    }
1807
1808    /**
1809     * @return {@link #contact} (Contact details to assist a user in finding and communicating with the publisher.)
1810     */
1811    public List<ContactDetail> getContact() { 
1812      if (this.contact == null)
1813        this.contact = new ArrayList<ContactDetail>();
1814      return this.contact;
1815    }
1816
1817    /**
1818     * @return Returns a reference to <code>this</code> for easy method chaining
1819     */
1820    public EvidenceVariable setContact(List<ContactDetail> theContact) { 
1821      this.contact = theContact;
1822      return this;
1823    }
1824
1825    public boolean hasContact() { 
1826      if (this.contact == null)
1827        return false;
1828      for (ContactDetail item : this.contact)
1829        if (!item.isEmpty())
1830          return true;
1831      return false;
1832    }
1833
1834    public ContactDetail addContact() { //3
1835      ContactDetail t = new ContactDetail();
1836      if (this.contact == null)
1837        this.contact = new ArrayList<ContactDetail>();
1838      this.contact.add(t);
1839      return t;
1840    }
1841
1842    public EvidenceVariable addContact(ContactDetail t) { //3
1843      if (t == null)
1844        return this;
1845      if (this.contact == null)
1846        this.contact = new ArrayList<ContactDetail>();
1847      this.contact.add(t);
1848      return this;
1849    }
1850
1851    /**
1852     * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist
1853     */
1854    public ContactDetail getContactFirstRep() { 
1855      if (getContact().isEmpty()) {
1856        addContact();
1857      }
1858      return getContact().get(0);
1859    }
1860
1861    /**
1862     * @return {@link #description} (A free text natural language description of the evidence variable from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
1863     */
1864    public MarkdownType getDescriptionElement() { 
1865      if (this.description == null)
1866        if (Configuration.errorOnAutoCreate())
1867          throw new Error("Attempt to auto-create EvidenceVariable.description");
1868        else if (Configuration.doAutoCreate())
1869          this.description = new MarkdownType(); // bb
1870      return this.description;
1871    }
1872
1873    public boolean hasDescriptionElement() { 
1874      return this.description != null && !this.description.isEmpty();
1875    }
1876
1877    public boolean hasDescription() { 
1878      return this.description != null && !this.description.isEmpty();
1879    }
1880
1881    /**
1882     * @param value {@link #description} (A free text natural language description of the evidence variable from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
1883     */
1884    public EvidenceVariable setDescriptionElement(MarkdownType value) { 
1885      this.description = value;
1886      return this;
1887    }
1888
1889    /**
1890     * @return A free text natural language description of the evidence variable from a consumer's perspective.
1891     */
1892    public String getDescription() { 
1893      return this.description == null ? null : this.description.getValue();
1894    }
1895
1896    /**
1897     * @param value A free text natural language description of the evidence variable from a consumer's perspective.
1898     */
1899    public EvidenceVariable setDescription(String value) { 
1900      if (value == null)
1901        this.description = null;
1902      else {
1903        if (this.description == null)
1904          this.description = new MarkdownType();
1905        this.description.setValue(value);
1906      }
1907      return this;
1908    }
1909
1910    /**
1911     * @return {@link #note} (A human-readable string to clarify or explain concepts about the resource.)
1912     */
1913    public List<Annotation> getNote() { 
1914      if (this.note == null)
1915        this.note = new ArrayList<Annotation>();
1916      return this.note;
1917    }
1918
1919    /**
1920     * @return Returns a reference to <code>this</code> for easy method chaining
1921     */
1922    public EvidenceVariable setNote(List<Annotation> theNote) { 
1923      this.note = theNote;
1924      return this;
1925    }
1926
1927    public boolean hasNote() { 
1928      if (this.note == null)
1929        return false;
1930      for (Annotation item : this.note)
1931        if (!item.isEmpty())
1932          return true;
1933      return false;
1934    }
1935
1936    public Annotation addNote() { //3
1937      Annotation t = new Annotation();
1938      if (this.note == null)
1939        this.note = new ArrayList<Annotation>();
1940      this.note.add(t);
1941      return t;
1942    }
1943
1944    public EvidenceVariable addNote(Annotation t) { //3
1945      if (t == null)
1946        return this;
1947      if (this.note == null)
1948        this.note = new ArrayList<Annotation>();
1949      this.note.add(t);
1950      return this;
1951    }
1952
1953    /**
1954     * @return The first repetition of repeating field {@link #note}, creating it if it does not already exist
1955     */
1956    public Annotation getNoteFirstRep() { 
1957      if (getNote().isEmpty()) {
1958        addNote();
1959      }
1960      return getNote().get(0);
1961    }
1962
1963    /**
1964     * @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate evidence variable instances.)
1965     */
1966    public List<UsageContext> getUseContext() { 
1967      if (this.useContext == null)
1968        this.useContext = new ArrayList<UsageContext>();
1969      return this.useContext;
1970    }
1971
1972    /**
1973     * @return Returns a reference to <code>this</code> for easy method chaining
1974     */
1975    public EvidenceVariable setUseContext(List<UsageContext> theUseContext) { 
1976      this.useContext = theUseContext;
1977      return this;
1978    }
1979
1980    public boolean hasUseContext() { 
1981      if (this.useContext == null)
1982        return false;
1983      for (UsageContext item : this.useContext)
1984        if (!item.isEmpty())
1985          return true;
1986      return false;
1987    }
1988
1989    public UsageContext addUseContext() { //3
1990      UsageContext t = new UsageContext();
1991      if (this.useContext == null)
1992        this.useContext = new ArrayList<UsageContext>();
1993      this.useContext.add(t);
1994      return t;
1995    }
1996
1997    public EvidenceVariable addUseContext(UsageContext t) { //3
1998      if (t == null)
1999        return this;
2000      if (this.useContext == null)
2001        this.useContext = new ArrayList<UsageContext>();
2002      this.useContext.add(t);
2003      return this;
2004    }
2005
2006    /**
2007     * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist
2008     */
2009    public UsageContext getUseContextFirstRep() { 
2010      if (getUseContext().isEmpty()) {
2011        addUseContext();
2012      }
2013      return getUseContext().get(0);
2014    }
2015
2016    /**
2017     * @return {@link #jurisdiction} (A legal or geographic region in which the evidence variable is intended to be used.)
2018     */
2019    public List<CodeableConcept> getJurisdiction() { 
2020      if (this.jurisdiction == null)
2021        this.jurisdiction = new ArrayList<CodeableConcept>();
2022      return this.jurisdiction;
2023    }
2024
2025    /**
2026     * @return Returns a reference to <code>this</code> for easy method chaining
2027     */
2028    public EvidenceVariable setJurisdiction(List<CodeableConcept> theJurisdiction) { 
2029      this.jurisdiction = theJurisdiction;
2030      return this;
2031    }
2032
2033    public boolean hasJurisdiction() { 
2034      if (this.jurisdiction == null)
2035        return false;
2036      for (CodeableConcept item : this.jurisdiction)
2037        if (!item.isEmpty())
2038          return true;
2039      return false;
2040    }
2041
2042    public CodeableConcept addJurisdiction() { //3
2043      CodeableConcept t = new CodeableConcept();
2044      if (this.jurisdiction == null)
2045        this.jurisdiction = new ArrayList<CodeableConcept>();
2046      this.jurisdiction.add(t);
2047      return t;
2048    }
2049
2050    public EvidenceVariable addJurisdiction(CodeableConcept t) { //3
2051      if (t == null)
2052        return this;
2053      if (this.jurisdiction == null)
2054        this.jurisdiction = new ArrayList<CodeableConcept>();
2055      this.jurisdiction.add(t);
2056      return this;
2057    }
2058
2059    /**
2060     * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist
2061     */
2062    public CodeableConcept getJurisdictionFirstRep() { 
2063      if (getJurisdiction().isEmpty()) {
2064        addJurisdiction();
2065      }
2066      return getJurisdiction().get(0);
2067    }
2068
2069    /**
2070     * @return {@link #copyright} (A copyright statement relating to the evidence variable and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the evidence variable.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value
2071     */
2072    public MarkdownType getCopyrightElement() { 
2073      if (this.copyright == null)
2074        if (Configuration.errorOnAutoCreate())
2075          throw new Error("Attempt to auto-create EvidenceVariable.copyright");
2076        else if (Configuration.doAutoCreate())
2077          this.copyright = new MarkdownType(); // bb
2078      return this.copyright;
2079    }
2080
2081    public boolean hasCopyrightElement() { 
2082      return this.copyright != null && !this.copyright.isEmpty();
2083    }
2084
2085    public boolean hasCopyright() { 
2086      return this.copyright != null && !this.copyright.isEmpty();
2087    }
2088
2089    /**
2090     * @param value {@link #copyright} (A copyright statement relating to the evidence variable and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the evidence variable.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value
2091     */
2092    public EvidenceVariable setCopyrightElement(MarkdownType value) { 
2093      this.copyright = value;
2094      return this;
2095    }
2096
2097    /**
2098     * @return A copyright statement relating to the evidence variable and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the evidence variable.
2099     */
2100    public String getCopyright() { 
2101      return this.copyright == null ? null : this.copyright.getValue();
2102    }
2103
2104    /**
2105     * @param value A copyright statement relating to the evidence variable and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the evidence variable.
2106     */
2107    public EvidenceVariable setCopyright(String value) { 
2108      if (value == null)
2109        this.copyright = null;
2110      else {
2111        if (this.copyright == null)
2112          this.copyright = new MarkdownType();
2113        this.copyright.setValue(value);
2114      }
2115      return this;
2116    }
2117
2118    /**
2119     * @return {@link #approvalDate} (The date on which the resource 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
2120     */
2121    public DateType getApprovalDateElement() { 
2122      if (this.approvalDate == null)
2123        if (Configuration.errorOnAutoCreate())
2124          throw new Error("Attempt to auto-create EvidenceVariable.approvalDate");
2125        else if (Configuration.doAutoCreate())
2126          this.approvalDate = new DateType(); // bb
2127      return this.approvalDate;
2128    }
2129
2130    public boolean hasApprovalDateElement() { 
2131      return this.approvalDate != null && !this.approvalDate.isEmpty();
2132    }
2133
2134    public boolean hasApprovalDate() { 
2135      return this.approvalDate != null && !this.approvalDate.isEmpty();
2136    }
2137
2138    /**
2139     * @param value {@link #approvalDate} (The date on which the resource 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
2140     */
2141    public EvidenceVariable setApprovalDateElement(DateType value) { 
2142      this.approvalDate = value;
2143      return this;
2144    }
2145
2146    /**
2147     * @return The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.
2148     */
2149    public Date getApprovalDate() { 
2150      return this.approvalDate == null ? null : this.approvalDate.getValue();
2151    }
2152
2153    /**
2154     * @param value The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.
2155     */
2156    public EvidenceVariable setApprovalDate(Date value) { 
2157      if (value == null)
2158        this.approvalDate = null;
2159      else {
2160        if (this.approvalDate == null)
2161          this.approvalDate = new DateType();
2162        this.approvalDate.setValue(value);
2163      }
2164      return this;
2165    }
2166
2167    /**
2168     * @return {@link #lastReviewDate} (The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.). This is the underlying object with id, value and extensions. The accessor "getLastReviewDate" gives direct access to the value
2169     */
2170    public DateType getLastReviewDateElement() { 
2171      if (this.lastReviewDate == null)
2172        if (Configuration.errorOnAutoCreate())
2173          throw new Error("Attempt to auto-create EvidenceVariable.lastReviewDate");
2174        else if (Configuration.doAutoCreate())
2175          this.lastReviewDate = new DateType(); // bb
2176      return this.lastReviewDate;
2177    }
2178
2179    public boolean hasLastReviewDateElement() { 
2180      return this.lastReviewDate != null && !this.lastReviewDate.isEmpty();
2181    }
2182
2183    public boolean hasLastReviewDate() { 
2184      return this.lastReviewDate != null && !this.lastReviewDate.isEmpty();
2185    }
2186
2187    /**
2188     * @param value {@link #lastReviewDate} (The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.). This is the underlying object with id, value and extensions. The accessor "getLastReviewDate" gives direct access to the value
2189     */
2190    public EvidenceVariable setLastReviewDateElement(DateType value) { 
2191      this.lastReviewDate = value;
2192      return this;
2193    }
2194
2195    /**
2196     * @return The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.
2197     */
2198    public Date getLastReviewDate() { 
2199      return this.lastReviewDate == null ? null : this.lastReviewDate.getValue();
2200    }
2201
2202    /**
2203     * @param value The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.
2204     */
2205    public EvidenceVariable setLastReviewDate(Date value) { 
2206      if (value == null)
2207        this.lastReviewDate = null;
2208      else {
2209        if (this.lastReviewDate == null)
2210          this.lastReviewDate = new DateType();
2211        this.lastReviewDate.setValue(value);
2212      }
2213      return this;
2214    }
2215
2216    /**
2217     * @return {@link #effectivePeriod} (The period during which the evidence variable content was or is planned to be in active use.)
2218     */
2219    public Period getEffectivePeriod() { 
2220      if (this.effectivePeriod == null)
2221        if (Configuration.errorOnAutoCreate())
2222          throw new Error("Attempt to auto-create EvidenceVariable.effectivePeriod");
2223        else if (Configuration.doAutoCreate())
2224          this.effectivePeriod = new Period(); // cc
2225      return this.effectivePeriod;
2226    }
2227
2228    public boolean hasEffectivePeriod() { 
2229      return this.effectivePeriod != null && !this.effectivePeriod.isEmpty();
2230    }
2231
2232    /**
2233     * @param value {@link #effectivePeriod} (The period during which the evidence variable content was or is planned to be in active use.)
2234     */
2235    public EvidenceVariable setEffectivePeriod(Period value) { 
2236      this.effectivePeriod = value;
2237      return this;
2238    }
2239
2240    /**
2241     * @return {@link #topic} (Descriptive topics related to the content of the EvidenceVariable. Topics provide a high-level categorization grouping types of EvidenceVariables that can be useful for filtering and searching.)
2242     */
2243    public List<CodeableConcept> getTopic() { 
2244      if (this.topic == null)
2245        this.topic = new ArrayList<CodeableConcept>();
2246      return this.topic;
2247    }
2248
2249    /**
2250     * @return Returns a reference to <code>this</code> for easy method chaining
2251     */
2252    public EvidenceVariable setTopic(List<CodeableConcept> theTopic) { 
2253      this.topic = theTopic;
2254      return this;
2255    }
2256
2257    public boolean hasTopic() { 
2258      if (this.topic == null)
2259        return false;
2260      for (CodeableConcept item : this.topic)
2261        if (!item.isEmpty())
2262          return true;
2263      return false;
2264    }
2265
2266    public CodeableConcept addTopic() { //3
2267      CodeableConcept t = new CodeableConcept();
2268      if (this.topic == null)
2269        this.topic = new ArrayList<CodeableConcept>();
2270      this.topic.add(t);
2271      return t;
2272    }
2273
2274    public EvidenceVariable addTopic(CodeableConcept t) { //3
2275      if (t == null)
2276        return this;
2277      if (this.topic == null)
2278        this.topic = new ArrayList<CodeableConcept>();
2279      this.topic.add(t);
2280      return this;
2281    }
2282
2283    /**
2284     * @return The first repetition of repeating field {@link #topic}, creating it if it does not already exist
2285     */
2286    public CodeableConcept getTopicFirstRep() { 
2287      if (getTopic().isEmpty()) {
2288        addTopic();
2289      }
2290      return getTopic().get(0);
2291    }
2292
2293    /**
2294     * @return {@link #author} (An individiual or organization primarily involved in the creation and maintenance of the content.)
2295     */
2296    public List<ContactDetail> getAuthor() { 
2297      if (this.author == null)
2298        this.author = new ArrayList<ContactDetail>();
2299      return this.author;
2300    }
2301
2302    /**
2303     * @return Returns a reference to <code>this</code> for easy method chaining
2304     */
2305    public EvidenceVariable setAuthor(List<ContactDetail> theAuthor) { 
2306      this.author = theAuthor;
2307      return this;
2308    }
2309
2310    public boolean hasAuthor() { 
2311      if (this.author == null)
2312        return false;
2313      for (ContactDetail item : this.author)
2314        if (!item.isEmpty())
2315          return true;
2316      return false;
2317    }
2318
2319    public ContactDetail addAuthor() { //3
2320      ContactDetail t = new ContactDetail();
2321      if (this.author == null)
2322        this.author = new ArrayList<ContactDetail>();
2323      this.author.add(t);
2324      return t;
2325    }
2326
2327    public EvidenceVariable addAuthor(ContactDetail t) { //3
2328      if (t == null)
2329        return this;
2330      if (this.author == null)
2331        this.author = new ArrayList<ContactDetail>();
2332      this.author.add(t);
2333      return this;
2334    }
2335
2336    /**
2337     * @return The first repetition of repeating field {@link #author}, creating it if it does not already exist
2338     */
2339    public ContactDetail getAuthorFirstRep() { 
2340      if (getAuthor().isEmpty()) {
2341        addAuthor();
2342      }
2343      return getAuthor().get(0);
2344    }
2345
2346    /**
2347     * @return {@link #editor} (An individual or organization primarily responsible for internal coherence of the content.)
2348     */
2349    public List<ContactDetail> getEditor() { 
2350      if (this.editor == null)
2351        this.editor = new ArrayList<ContactDetail>();
2352      return this.editor;
2353    }
2354
2355    /**
2356     * @return Returns a reference to <code>this</code> for easy method chaining
2357     */
2358    public EvidenceVariable setEditor(List<ContactDetail> theEditor) { 
2359      this.editor = theEditor;
2360      return this;
2361    }
2362
2363    public boolean hasEditor() { 
2364      if (this.editor == null)
2365        return false;
2366      for (ContactDetail item : this.editor)
2367        if (!item.isEmpty())
2368          return true;
2369      return false;
2370    }
2371
2372    public ContactDetail addEditor() { //3
2373      ContactDetail t = new ContactDetail();
2374      if (this.editor == null)
2375        this.editor = new ArrayList<ContactDetail>();
2376      this.editor.add(t);
2377      return t;
2378    }
2379
2380    public EvidenceVariable addEditor(ContactDetail t) { //3
2381      if (t == null)
2382        return this;
2383      if (this.editor == null)
2384        this.editor = new ArrayList<ContactDetail>();
2385      this.editor.add(t);
2386      return this;
2387    }
2388
2389    /**
2390     * @return The first repetition of repeating field {@link #editor}, creating it if it does not already exist
2391     */
2392    public ContactDetail getEditorFirstRep() { 
2393      if (getEditor().isEmpty()) {
2394        addEditor();
2395      }
2396      return getEditor().get(0);
2397    }
2398
2399    /**
2400     * @return {@link #reviewer} (An individual or organization primarily responsible for review of some aspect of the content.)
2401     */
2402    public List<ContactDetail> getReviewer() { 
2403      if (this.reviewer == null)
2404        this.reviewer = new ArrayList<ContactDetail>();
2405      return this.reviewer;
2406    }
2407
2408    /**
2409     * @return Returns a reference to <code>this</code> for easy method chaining
2410     */
2411    public EvidenceVariable setReviewer(List<ContactDetail> theReviewer) { 
2412      this.reviewer = theReviewer;
2413      return this;
2414    }
2415
2416    public boolean hasReviewer() { 
2417      if (this.reviewer == null)
2418        return false;
2419      for (ContactDetail item : this.reviewer)
2420        if (!item.isEmpty())
2421          return true;
2422      return false;
2423    }
2424
2425    public ContactDetail addReviewer() { //3
2426      ContactDetail t = new ContactDetail();
2427      if (this.reviewer == null)
2428        this.reviewer = new ArrayList<ContactDetail>();
2429      this.reviewer.add(t);
2430      return t;
2431    }
2432
2433    public EvidenceVariable addReviewer(ContactDetail t) { //3
2434      if (t == null)
2435        return this;
2436      if (this.reviewer == null)
2437        this.reviewer = new ArrayList<ContactDetail>();
2438      this.reviewer.add(t);
2439      return this;
2440    }
2441
2442    /**
2443     * @return The first repetition of repeating field {@link #reviewer}, creating it if it does not already exist
2444     */
2445    public ContactDetail getReviewerFirstRep() { 
2446      if (getReviewer().isEmpty()) {
2447        addReviewer();
2448      }
2449      return getReviewer().get(0);
2450    }
2451
2452    /**
2453     * @return {@link #endorser} (An individual or organization responsible for officially endorsing the content for use in some setting.)
2454     */
2455    public List<ContactDetail> getEndorser() { 
2456      if (this.endorser == null)
2457        this.endorser = new ArrayList<ContactDetail>();
2458      return this.endorser;
2459    }
2460
2461    /**
2462     * @return Returns a reference to <code>this</code> for easy method chaining
2463     */
2464    public EvidenceVariable setEndorser(List<ContactDetail> theEndorser) { 
2465      this.endorser = theEndorser;
2466      return this;
2467    }
2468
2469    public boolean hasEndorser() { 
2470      if (this.endorser == null)
2471        return false;
2472      for (ContactDetail item : this.endorser)
2473        if (!item.isEmpty())
2474          return true;
2475      return false;
2476    }
2477
2478    public ContactDetail addEndorser() { //3
2479      ContactDetail t = new ContactDetail();
2480      if (this.endorser == null)
2481        this.endorser = new ArrayList<ContactDetail>();
2482      this.endorser.add(t);
2483      return t;
2484    }
2485
2486    public EvidenceVariable addEndorser(ContactDetail t) { //3
2487      if (t == null)
2488        return this;
2489      if (this.endorser == null)
2490        this.endorser = new ArrayList<ContactDetail>();
2491      this.endorser.add(t);
2492      return this;
2493    }
2494
2495    /**
2496     * @return The first repetition of repeating field {@link #endorser}, creating it if it does not already exist
2497     */
2498    public ContactDetail getEndorserFirstRep() { 
2499      if (getEndorser().isEmpty()) {
2500        addEndorser();
2501      }
2502      return getEndorser().get(0);
2503    }
2504
2505    /**
2506     * @return {@link #relatedArtifact} (Related artifacts such as additional documentation, justification, or bibliographic references.)
2507     */
2508    public List<RelatedArtifact> getRelatedArtifact() { 
2509      if (this.relatedArtifact == null)
2510        this.relatedArtifact = new ArrayList<RelatedArtifact>();
2511      return this.relatedArtifact;
2512    }
2513
2514    /**
2515     * @return Returns a reference to <code>this</code> for easy method chaining
2516     */
2517    public EvidenceVariable setRelatedArtifact(List<RelatedArtifact> theRelatedArtifact) { 
2518      this.relatedArtifact = theRelatedArtifact;
2519      return this;
2520    }
2521
2522    public boolean hasRelatedArtifact() { 
2523      if (this.relatedArtifact == null)
2524        return false;
2525      for (RelatedArtifact item : this.relatedArtifact)
2526        if (!item.isEmpty())
2527          return true;
2528      return false;
2529    }
2530
2531    public RelatedArtifact addRelatedArtifact() { //3
2532      RelatedArtifact t = new RelatedArtifact();
2533      if (this.relatedArtifact == null)
2534        this.relatedArtifact = new ArrayList<RelatedArtifact>();
2535      this.relatedArtifact.add(t);
2536      return t;
2537    }
2538
2539    public EvidenceVariable addRelatedArtifact(RelatedArtifact t) { //3
2540      if (t == null)
2541        return this;
2542      if (this.relatedArtifact == null)
2543        this.relatedArtifact = new ArrayList<RelatedArtifact>();
2544      this.relatedArtifact.add(t);
2545      return this;
2546    }
2547
2548    /**
2549     * @return The first repetition of repeating field {@link #relatedArtifact}, creating it if it does not already exist
2550     */
2551    public RelatedArtifact getRelatedArtifactFirstRep() { 
2552      if (getRelatedArtifact().isEmpty()) {
2553        addRelatedArtifact();
2554      }
2555      return getRelatedArtifact().get(0);
2556    }
2557
2558    /**
2559     * @return {@link #type} (The type of evidence element, a population, an exposure, or an outcome.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
2560     */
2561    public Enumeration<EvidenceVariableType> getTypeElement() { 
2562      if (this.type == null)
2563        if (Configuration.errorOnAutoCreate())
2564          throw new Error("Attempt to auto-create EvidenceVariable.type");
2565        else if (Configuration.doAutoCreate())
2566          this.type = new Enumeration<EvidenceVariableType>(new EvidenceVariableTypeEnumFactory()); // bb
2567      return this.type;
2568    }
2569
2570    public boolean hasTypeElement() { 
2571      return this.type != null && !this.type.isEmpty();
2572    }
2573
2574    public boolean hasType() { 
2575      return this.type != null && !this.type.isEmpty();
2576    }
2577
2578    /**
2579     * @param value {@link #type} (The type of evidence element, a population, an exposure, or an outcome.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
2580     */
2581    public EvidenceVariable setTypeElement(Enumeration<EvidenceVariableType> value) { 
2582      this.type = value;
2583      return this;
2584    }
2585
2586    /**
2587     * @return The type of evidence element, a population, an exposure, or an outcome.
2588     */
2589    public EvidenceVariableType getType() { 
2590      return this.type == null ? null : this.type.getValue();
2591    }
2592
2593    /**
2594     * @param value The type of evidence element, a population, an exposure, or an outcome.
2595     */
2596    public EvidenceVariable setType(EvidenceVariableType value) { 
2597      if (value == null)
2598        this.type = null;
2599      else {
2600        if (this.type == null)
2601          this.type = new Enumeration<EvidenceVariableType>(new EvidenceVariableTypeEnumFactory());
2602        this.type.setValue(value);
2603      }
2604      return this;
2605    }
2606
2607    /**
2608     * @return {@link #actual} (True if the actual variable measured, false if a conceptual representation of the intended variable.). This is the underlying object with id, value and extensions. The accessor "getActual" gives direct access to the value
2609     */
2610    public BooleanType getActualElement() { 
2611      if (this.actual == null)
2612        if (Configuration.errorOnAutoCreate())
2613          throw new Error("Attempt to auto-create EvidenceVariable.actual");
2614        else if (Configuration.doAutoCreate())
2615          this.actual = new BooleanType(); // bb
2616      return this.actual;
2617    }
2618
2619    public boolean hasActualElement() { 
2620      return this.actual != null && !this.actual.isEmpty();
2621    }
2622
2623    public boolean hasActual() { 
2624      return this.actual != null && !this.actual.isEmpty();
2625    }
2626
2627    /**
2628     * @param value {@link #actual} (True if the actual variable measured, false if a conceptual representation of the intended variable.). This is the underlying object with id, value and extensions. The accessor "getActual" gives direct access to the value
2629     */
2630    public EvidenceVariable setActualElement(BooleanType value) { 
2631      this.actual = value;
2632      return this;
2633    }
2634
2635    /**
2636     * @return True if the actual variable measured, false if a conceptual representation of the intended variable.
2637     */
2638    public boolean getActual() { 
2639      return this.actual == null || this.actual.isEmpty() ? false : this.actual.getValue();
2640    }
2641
2642    /**
2643     * @param value True if the actual variable measured, false if a conceptual representation of the intended variable.
2644     */
2645    public EvidenceVariable setActual(boolean value) { 
2646        if (this.actual == null)
2647          this.actual = new BooleanType();
2648        this.actual.setValue(value);
2649      return this;
2650    }
2651
2652    /**
2653     * @return {@link #characteristic} (A characteristic that defines the members of the evidence element. Multiple characteristics are applied with "and" semantics.)
2654     */
2655    public List<EvidenceVariableCharacteristicComponent> getCharacteristic() { 
2656      if (this.characteristic == null)
2657        this.characteristic = new ArrayList<EvidenceVariableCharacteristicComponent>();
2658      return this.characteristic;
2659    }
2660
2661    /**
2662     * @return Returns a reference to <code>this</code> for easy method chaining
2663     */
2664    public EvidenceVariable setCharacteristic(List<EvidenceVariableCharacteristicComponent> theCharacteristic) { 
2665      this.characteristic = theCharacteristic;
2666      return this;
2667    }
2668
2669    public boolean hasCharacteristic() { 
2670      if (this.characteristic == null)
2671        return false;
2672      for (EvidenceVariableCharacteristicComponent item : this.characteristic)
2673        if (!item.isEmpty())
2674          return true;
2675      return false;
2676    }
2677
2678    public EvidenceVariableCharacteristicComponent addCharacteristic() { //3
2679      EvidenceVariableCharacteristicComponent t = new EvidenceVariableCharacteristicComponent();
2680      if (this.characteristic == null)
2681        this.characteristic = new ArrayList<EvidenceVariableCharacteristicComponent>();
2682      this.characteristic.add(t);
2683      return t;
2684    }
2685
2686    public EvidenceVariable addCharacteristic(EvidenceVariableCharacteristicComponent t) { //3
2687      if (t == null)
2688        return this;
2689      if (this.characteristic == null)
2690        this.characteristic = new ArrayList<EvidenceVariableCharacteristicComponent>();
2691      this.characteristic.add(t);
2692      return this;
2693    }
2694
2695    /**
2696     * @return The first repetition of repeating field {@link #characteristic}, creating it if it does not already exist
2697     */
2698    public EvidenceVariableCharacteristicComponent getCharacteristicFirstRep() { 
2699      if (getCharacteristic().isEmpty()) {
2700        addCharacteristic();
2701      }
2702      return getCharacteristic().get(0);
2703    }
2704
2705      protected void listChildren(List<Property> children) {
2706        super.listChildren(children);
2707        children.add(new Property("url", "uri", "An absolute URI that is used to identify this evidence variable when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this evidence variable is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the evidence variable is stored on different servers.", 0, 1, url));
2708        children.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this evidence variable when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier));
2709        children.add(new Property("version", "string", "The identifier that is used to identify this version of the evidence variable when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the evidence variable 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 can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts.", 0, 1, version));
2710        children.add(new Property("name", "string", "A natural language name identifying the evidence variable. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name));
2711        children.add(new Property("title", "string", "A short, descriptive, user-friendly title for the evidence variable.", 0, 1, title));
2712        children.add(new Property("shortTitle", "string", "The short title provides an alternate title for use in informal descriptive contexts where the full, formal title is not necessary.", 0, 1, shortTitle));
2713        children.add(new Property("subtitle", "string", "An explanatory or alternate title for the EvidenceVariable giving additional information about its content.", 0, 1, subtitle));
2714        children.add(new Property("status", "code", "The status of this evidence variable. Enables tracking the life-cycle of the content.", 0, 1, status));
2715        children.add(new Property("date", "dateTime", "The date  (and optionally time) when the evidence variable was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the evidence variable changes.", 0, 1, date));
2716        children.add(new Property("publisher", "string", "The name of the organization or individual that published the evidence variable.", 0, 1, publisher));
2717        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));
2718        children.add(new Property("description", "markdown", "A free text natural language description of the evidence variable from a consumer's perspective.", 0, 1, description));
2719        children.add(new Property("note", "Annotation", "A human-readable string to clarify or explain concepts about the resource.", 0, java.lang.Integer.MAX_VALUE, note));
2720        children.add(new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate evidence variable instances.", 0, java.lang.Integer.MAX_VALUE, useContext));
2721        children.add(new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the evidence variable is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction));
2722        children.add(new Property("copyright", "markdown", "A copyright statement relating to the evidence variable and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the evidence variable.", 0, 1, copyright));
2723        children.add(new Property("approvalDate", "date", "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.", 0, 1, approvalDate));
2724        children.add(new Property("lastReviewDate", "date", "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.", 0, 1, lastReviewDate));
2725        children.add(new Property("effectivePeriod", "Period", "The period during which the evidence variable content was or is planned to be in active use.", 0, 1, effectivePeriod));
2726        children.add(new Property("topic", "CodeableConcept", "Descriptive topics related to the content of the EvidenceVariable. Topics provide a high-level categorization grouping types of EvidenceVariables that can be useful for filtering and searching.", 0, java.lang.Integer.MAX_VALUE, topic));
2727        children.add(new Property("author", "ContactDetail", "An individiual or organization primarily involved in the creation and maintenance of the content.", 0, java.lang.Integer.MAX_VALUE, author));
2728        children.add(new Property("editor", "ContactDetail", "An individual or organization primarily responsible for internal coherence of the content.", 0, java.lang.Integer.MAX_VALUE, editor));
2729        children.add(new Property("reviewer", "ContactDetail", "An individual or organization primarily responsible for review of some aspect of the content.", 0, java.lang.Integer.MAX_VALUE, reviewer));
2730        children.add(new Property("endorser", "ContactDetail", "An individual or organization responsible for officially endorsing the content for use in some setting.", 0, java.lang.Integer.MAX_VALUE, endorser));
2731        children.add(new Property("relatedArtifact", "RelatedArtifact", "Related artifacts such as additional documentation, justification, or bibliographic references.", 0, java.lang.Integer.MAX_VALUE, relatedArtifact));
2732        children.add(new Property("type", "code", "The type of evidence element, a population, an exposure, or an outcome.", 0, 1, type));
2733        children.add(new Property("actual", "boolean", "True if the actual variable measured, false if a conceptual representation of the intended variable.", 0, 1, actual));
2734        children.add(new Property("characteristic", "", "A characteristic that defines the members of the evidence element. Multiple characteristics are applied with \"and\" semantics.", 0, java.lang.Integer.MAX_VALUE, characteristic));
2735      }
2736
2737      @Override
2738      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
2739        switch (_hash) {
2740        case 116079: /*url*/  return new Property("url", "uri", "An absolute URI that is used to identify this evidence variable when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this evidence variable is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the evidence variable is stored on different servers.", 0, 1, url);
2741        case -1618432855: /*identifier*/  return new Property("identifier", "Identifier", "A formal identifier that is used to identify this evidence variable when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier);
2742        case 351608024: /*version*/  return new Property("version", "string", "The identifier that is used to identify this version of the evidence variable when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the evidence variable 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 can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts.", 0, 1, version);
2743        case 3373707: /*name*/  return new Property("name", "string", "A natural language name identifying the evidence variable. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name);
2744        case 110371416: /*title*/  return new Property("title", "string", "A short, descriptive, user-friendly title for the evidence variable.", 0, 1, title);
2745        case 1555503932: /*shortTitle*/  return new Property("shortTitle", "string", "The short title provides an alternate title for use in informal descriptive contexts where the full, formal title is not necessary.", 0, 1, shortTitle);
2746        case -2060497896: /*subtitle*/  return new Property("subtitle", "string", "An explanatory or alternate title for the EvidenceVariable giving additional information about its content.", 0, 1, subtitle);
2747        case -892481550: /*status*/  return new Property("status", "code", "The status of this evidence variable. Enables tracking the life-cycle of the content.", 0, 1, status);
2748        case 3076014: /*date*/  return new Property("date", "dateTime", "The date  (and optionally time) when the evidence variable was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the evidence variable changes.", 0, 1, date);
2749        case 1447404028: /*publisher*/  return new Property("publisher", "string", "The name of the organization or individual that published the evidence variable.", 0, 1, publisher);
2750        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);
2751        case -1724546052: /*description*/  return new Property("description", "markdown", "A free text natural language description of the evidence variable from a consumer's perspective.", 0, 1, description);
2752        case 3387378: /*note*/  return new Property("note", "Annotation", "A human-readable string to clarify or explain concepts about the resource.", 0, java.lang.Integer.MAX_VALUE, note);
2753        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 contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate evidence variable instances.", 0, java.lang.Integer.MAX_VALUE, useContext);
2754        case -507075711: /*jurisdiction*/  return new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the evidence variable is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction);
2755        case 1522889671: /*copyright*/  return new Property("copyright", "markdown", "A copyright statement relating to the evidence variable and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the evidence variable.", 0, 1, copyright);
2756        case 223539345: /*approvalDate*/  return new Property("approvalDate", "date", "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.", 0, 1, approvalDate);
2757        case -1687512484: /*lastReviewDate*/  return new Property("lastReviewDate", "date", "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.", 0, 1, lastReviewDate);
2758        case -403934648: /*effectivePeriod*/  return new Property("effectivePeriod", "Period", "The period during which the evidence variable content was or is planned to be in active use.", 0, 1, effectivePeriod);
2759        case 110546223: /*topic*/  return new Property("topic", "CodeableConcept", "Descriptive topics related to the content of the EvidenceVariable. Topics provide a high-level categorization grouping types of EvidenceVariables that can be useful for filtering and searching.", 0, java.lang.Integer.MAX_VALUE, topic);
2760        case -1406328437: /*author*/  return new Property("author", "ContactDetail", "An individiual or organization primarily involved in the creation and maintenance of the content.", 0, java.lang.Integer.MAX_VALUE, author);
2761        case -1307827859: /*editor*/  return new Property("editor", "ContactDetail", "An individual or organization primarily responsible for internal coherence of the content.", 0, java.lang.Integer.MAX_VALUE, editor);
2762        case -261190139: /*reviewer*/  return new Property("reviewer", "ContactDetail", "An individual or organization primarily responsible for review of some aspect of the content.", 0, java.lang.Integer.MAX_VALUE, reviewer);
2763        case 1740277666: /*endorser*/  return new Property("endorser", "ContactDetail", "An individual or organization responsible for officially endorsing the content for use in some setting.", 0, java.lang.Integer.MAX_VALUE, endorser);
2764        case 666807069: /*relatedArtifact*/  return new Property("relatedArtifact", "RelatedArtifact", "Related artifacts such as additional documentation, justification, or bibliographic references.", 0, java.lang.Integer.MAX_VALUE, relatedArtifact);
2765        case 3575610: /*type*/  return new Property("type", "code", "The type of evidence element, a population, an exposure, or an outcome.", 0, 1, type);
2766        case -1422939762: /*actual*/  return new Property("actual", "boolean", "True if the actual variable measured, false if a conceptual representation of the intended variable.", 0, 1, actual);
2767        case 366313883: /*characteristic*/  return new Property("characteristic", "", "A characteristic that defines the members of the evidence element. Multiple characteristics are applied with \"and\" semantics.", 0, java.lang.Integer.MAX_VALUE, characteristic);
2768        default: return super.getNamedProperty(_hash, _name, _checkValid);
2769        }
2770
2771      }
2772
2773      @Override
2774      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
2775        switch (hash) {
2776        case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType
2777        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier
2778        case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType
2779        case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType
2780        case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType
2781        case 1555503932: /*shortTitle*/ return this.shortTitle == null ? new Base[0] : new Base[] {this.shortTitle}; // StringType
2782        case -2060497896: /*subtitle*/ return this.subtitle == null ? new Base[0] : new Base[] {this.subtitle}; // StringType
2783        case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<PublicationStatus>
2784        case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType
2785        case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // StringType
2786        case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail
2787        case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType
2788        case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation
2789        case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext
2790        case -507075711: /*jurisdiction*/ return this.jurisdiction == null ? new Base[0] : this.jurisdiction.toArray(new Base[this.jurisdiction.size()]); // CodeableConcept
2791        case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // MarkdownType
2792        case 223539345: /*approvalDate*/ return this.approvalDate == null ? new Base[0] : new Base[] {this.approvalDate}; // DateType
2793        case -1687512484: /*lastReviewDate*/ return this.lastReviewDate == null ? new Base[0] : new Base[] {this.lastReviewDate}; // DateType
2794        case -403934648: /*effectivePeriod*/ return this.effectivePeriod == null ? new Base[0] : new Base[] {this.effectivePeriod}; // Period
2795        case 110546223: /*topic*/ return this.topic == null ? new Base[0] : this.topic.toArray(new Base[this.topic.size()]); // CodeableConcept
2796        case -1406328437: /*author*/ return this.author == null ? new Base[0] : this.author.toArray(new Base[this.author.size()]); // ContactDetail
2797        case -1307827859: /*editor*/ return this.editor == null ? new Base[0] : this.editor.toArray(new Base[this.editor.size()]); // ContactDetail
2798        case -261190139: /*reviewer*/ return this.reviewer == null ? new Base[0] : this.reviewer.toArray(new Base[this.reviewer.size()]); // ContactDetail
2799        case 1740277666: /*endorser*/ return this.endorser == null ? new Base[0] : this.endorser.toArray(new Base[this.endorser.size()]); // ContactDetail
2800        case 666807069: /*relatedArtifact*/ return this.relatedArtifact == null ? new Base[0] : this.relatedArtifact.toArray(new Base[this.relatedArtifact.size()]); // RelatedArtifact
2801        case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // Enumeration<EvidenceVariableType>
2802        case -1422939762: /*actual*/ return this.actual == null ? new Base[0] : new Base[] {this.actual}; // BooleanType
2803        case 366313883: /*characteristic*/ return this.characteristic == null ? new Base[0] : this.characteristic.toArray(new Base[this.characteristic.size()]); // EvidenceVariableCharacteristicComponent
2804        default: return super.getProperty(hash, name, checkValid);
2805        }
2806
2807      }
2808
2809      @Override
2810      public Base setProperty(int hash, String name, Base value) throws FHIRException {
2811        switch (hash) {
2812        case 116079: // url
2813          this.url = castToUri(value); // UriType
2814          return value;
2815        case -1618432855: // identifier
2816          this.getIdentifier().add(castToIdentifier(value)); // Identifier
2817          return value;
2818        case 351608024: // version
2819          this.version = castToString(value); // StringType
2820          return value;
2821        case 3373707: // name
2822          this.name = castToString(value); // StringType
2823          return value;
2824        case 110371416: // title
2825          this.title = castToString(value); // StringType
2826          return value;
2827        case 1555503932: // shortTitle
2828          this.shortTitle = castToString(value); // StringType
2829          return value;
2830        case -2060497896: // subtitle
2831          this.subtitle = castToString(value); // StringType
2832          return value;
2833        case -892481550: // status
2834          value = new PublicationStatusEnumFactory().fromType(castToCode(value));
2835          this.status = (Enumeration) value; // Enumeration<PublicationStatus>
2836          return value;
2837        case 3076014: // date
2838          this.date = castToDateTime(value); // DateTimeType
2839          return value;
2840        case 1447404028: // publisher
2841          this.publisher = castToString(value); // StringType
2842          return value;
2843        case 951526432: // contact
2844          this.getContact().add(castToContactDetail(value)); // ContactDetail
2845          return value;
2846        case -1724546052: // description
2847          this.description = castToMarkdown(value); // MarkdownType
2848          return value;
2849        case 3387378: // note
2850          this.getNote().add(castToAnnotation(value)); // Annotation
2851          return value;
2852        case -669707736: // useContext
2853          this.getUseContext().add(castToUsageContext(value)); // UsageContext
2854          return value;
2855        case -507075711: // jurisdiction
2856          this.getJurisdiction().add(castToCodeableConcept(value)); // CodeableConcept
2857          return value;
2858        case 1522889671: // copyright
2859          this.copyright = castToMarkdown(value); // MarkdownType
2860          return value;
2861        case 223539345: // approvalDate
2862          this.approvalDate = castToDate(value); // DateType
2863          return value;
2864        case -1687512484: // lastReviewDate
2865          this.lastReviewDate = castToDate(value); // DateType
2866          return value;
2867        case -403934648: // effectivePeriod
2868          this.effectivePeriod = castToPeriod(value); // Period
2869          return value;
2870        case 110546223: // topic
2871          this.getTopic().add(castToCodeableConcept(value)); // CodeableConcept
2872          return value;
2873        case -1406328437: // author
2874          this.getAuthor().add(castToContactDetail(value)); // ContactDetail
2875          return value;
2876        case -1307827859: // editor
2877          this.getEditor().add(castToContactDetail(value)); // ContactDetail
2878          return value;
2879        case -261190139: // reviewer
2880          this.getReviewer().add(castToContactDetail(value)); // ContactDetail
2881          return value;
2882        case 1740277666: // endorser
2883          this.getEndorser().add(castToContactDetail(value)); // ContactDetail
2884          return value;
2885        case 666807069: // relatedArtifact
2886          this.getRelatedArtifact().add(castToRelatedArtifact(value)); // RelatedArtifact
2887          return value;
2888        case 3575610: // type
2889          value = new EvidenceVariableTypeEnumFactory().fromType(castToCode(value));
2890          this.type = (Enumeration) value; // Enumeration<EvidenceVariableType>
2891          return value;
2892        case -1422939762: // actual
2893          this.actual = castToBoolean(value); // BooleanType
2894          return value;
2895        case 366313883: // characteristic
2896          this.getCharacteristic().add((EvidenceVariableCharacteristicComponent) value); // EvidenceVariableCharacteristicComponent
2897          return value;
2898        default: return super.setProperty(hash, name, value);
2899        }
2900
2901      }
2902
2903      @Override
2904      public Base setProperty(String name, Base value) throws FHIRException {
2905        if (name.equals("url")) {
2906          this.url = castToUri(value); // UriType
2907        } else if (name.equals("identifier")) {
2908          this.getIdentifier().add(castToIdentifier(value));
2909        } else if (name.equals("version")) {
2910          this.version = castToString(value); // StringType
2911        } else if (name.equals("name")) {
2912          this.name = castToString(value); // StringType
2913        } else if (name.equals("title")) {
2914          this.title = castToString(value); // StringType
2915        } else if (name.equals("shortTitle")) {
2916          this.shortTitle = castToString(value); // StringType
2917        } else if (name.equals("subtitle")) {
2918          this.subtitle = castToString(value); // StringType
2919        } else if (name.equals("status")) {
2920          value = new PublicationStatusEnumFactory().fromType(castToCode(value));
2921          this.status = (Enumeration) value; // Enumeration<PublicationStatus>
2922        } else if (name.equals("date")) {
2923          this.date = castToDateTime(value); // DateTimeType
2924        } else if (name.equals("publisher")) {
2925          this.publisher = castToString(value); // StringType
2926        } else if (name.equals("contact")) {
2927          this.getContact().add(castToContactDetail(value));
2928        } else if (name.equals("description")) {
2929          this.description = castToMarkdown(value); // MarkdownType
2930        } else if (name.equals("note")) {
2931          this.getNote().add(castToAnnotation(value));
2932        } else if (name.equals("useContext")) {
2933          this.getUseContext().add(castToUsageContext(value));
2934        } else if (name.equals("jurisdiction")) {
2935          this.getJurisdiction().add(castToCodeableConcept(value));
2936        } else if (name.equals("copyright")) {
2937          this.copyright = castToMarkdown(value); // MarkdownType
2938        } else if (name.equals("approvalDate")) {
2939          this.approvalDate = castToDate(value); // DateType
2940        } else if (name.equals("lastReviewDate")) {
2941          this.lastReviewDate = castToDate(value); // DateType
2942        } else if (name.equals("effectivePeriod")) {
2943          this.effectivePeriod = castToPeriod(value); // Period
2944        } else if (name.equals("topic")) {
2945          this.getTopic().add(castToCodeableConcept(value));
2946        } else if (name.equals("author")) {
2947          this.getAuthor().add(castToContactDetail(value));
2948        } else if (name.equals("editor")) {
2949          this.getEditor().add(castToContactDetail(value));
2950        } else if (name.equals("reviewer")) {
2951          this.getReviewer().add(castToContactDetail(value));
2952        } else if (name.equals("endorser")) {
2953          this.getEndorser().add(castToContactDetail(value));
2954        } else if (name.equals("relatedArtifact")) {
2955          this.getRelatedArtifact().add(castToRelatedArtifact(value));
2956        } else if (name.equals("type")) {
2957          value = new EvidenceVariableTypeEnumFactory().fromType(castToCode(value));
2958          this.type = (Enumeration) value; // Enumeration<EvidenceVariableType>
2959        } else if (name.equals("actual")) {
2960          this.actual = castToBoolean(value); // BooleanType
2961        } else if (name.equals("characteristic")) {
2962          this.getCharacteristic().add((EvidenceVariableCharacteristicComponent) value);
2963        } else
2964          return super.setProperty(name, value);
2965        return value;
2966      }
2967
2968      @Override
2969      public Base makeProperty(int hash, String name) throws FHIRException {
2970        switch (hash) {
2971        case 116079:  return getUrlElement();
2972        case -1618432855:  return addIdentifier(); 
2973        case 351608024:  return getVersionElement();
2974        case 3373707:  return getNameElement();
2975        case 110371416:  return getTitleElement();
2976        case 1555503932:  return getShortTitleElement();
2977        case -2060497896:  return getSubtitleElement();
2978        case -892481550:  return getStatusElement();
2979        case 3076014:  return getDateElement();
2980        case 1447404028:  return getPublisherElement();
2981        case 951526432:  return addContact(); 
2982        case -1724546052:  return getDescriptionElement();
2983        case 3387378:  return addNote(); 
2984        case -669707736:  return addUseContext(); 
2985        case -507075711:  return addJurisdiction(); 
2986        case 1522889671:  return getCopyrightElement();
2987        case 223539345:  return getApprovalDateElement();
2988        case -1687512484:  return getLastReviewDateElement();
2989        case -403934648:  return getEffectivePeriod();
2990        case 110546223:  return addTopic(); 
2991        case -1406328437:  return addAuthor(); 
2992        case -1307827859:  return addEditor(); 
2993        case -261190139:  return addReviewer(); 
2994        case 1740277666:  return addEndorser(); 
2995        case 666807069:  return addRelatedArtifact(); 
2996        case 3575610:  return getTypeElement();
2997        case -1422939762:  return getActualElement();
2998        case 366313883:  return addCharacteristic(); 
2999        default: return super.makeProperty(hash, name);
3000        }
3001
3002      }
3003
3004      @Override
3005      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
3006        switch (hash) {
3007        case 116079: /*url*/ return new String[] {"uri"};
3008        case -1618432855: /*identifier*/ return new String[] {"Identifier"};
3009        case 351608024: /*version*/ return new String[] {"string"};
3010        case 3373707: /*name*/ return new String[] {"string"};
3011        case 110371416: /*title*/ return new String[] {"string"};
3012        case 1555503932: /*shortTitle*/ return new String[] {"string"};
3013        case -2060497896: /*subtitle*/ return new String[] {"string"};
3014        case -892481550: /*status*/ return new String[] {"code"};
3015        case 3076014: /*date*/ return new String[] {"dateTime"};
3016        case 1447404028: /*publisher*/ return new String[] {"string"};
3017        case 951526432: /*contact*/ return new String[] {"ContactDetail"};
3018        case -1724546052: /*description*/ return new String[] {"markdown"};
3019        case 3387378: /*note*/ return new String[] {"Annotation"};
3020        case -669707736: /*useContext*/ return new String[] {"UsageContext"};
3021        case -507075711: /*jurisdiction*/ return new String[] {"CodeableConcept"};
3022        case 1522889671: /*copyright*/ return new String[] {"markdown"};
3023        case 223539345: /*approvalDate*/ return new String[] {"date"};
3024        case -1687512484: /*lastReviewDate*/ return new String[] {"date"};
3025        case -403934648: /*effectivePeriod*/ return new String[] {"Period"};
3026        case 110546223: /*topic*/ return new String[] {"CodeableConcept"};
3027        case -1406328437: /*author*/ return new String[] {"ContactDetail"};
3028        case -1307827859: /*editor*/ return new String[] {"ContactDetail"};
3029        case -261190139: /*reviewer*/ return new String[] {"ContactDetail"};
3030        case 1740277666: /*endorser*/ return new String[] {"ContactDetail"};
3031        case 666807069: /*relatedArtifact*/ return new String[] {"RelatedArtifact"};
3032        case 3575610: /*type*/ return new String[] {"code"};
3033        case -1422939762: /*actual*/ return new String[] {"boolean"};
3034        case 366313883: /*characteristic*/ return new String[] {};
3035        default: return super.getTypesForProperty(hash, name);
3036        }
3037
3038      }
3039
3040      @Override
3041      public Base addChild(String name) throws FHIRException {
3042        if (name.equals("url")) {
3043          throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.url");
3044        }
3045        else if (name.equals("identifier")) {
3046          return addIdentifier();
3047        }
3048        else if (name.equals("version")) {
3049          throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.version");
3050        }
3051        else if (name.equals("name")) {
3052          throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.name");
3053        }
3054        else if (name.equals("title")) {
3055          throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.title");
3056        }
3057        else if (name.equals("shortTitle")) {
3058          throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.shortTitle");
3059        }
3060        else if (name.equals("subtitle")) {
3061          throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.subtitle");
3062        }
3063        else if (name.equals("status")) {
3064          throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.status");
3065        }
3066        else if (name.equals("date")) {
3067          throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.date");
3068        }
3069        else if (name.equals("publisher")) {
3070          throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.publisher");
3071        }
3072        else if (name.equals("contact")) {
3073          return addContact();
3074        }
3075        else if (name.equals("description")) {
3076          throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.description");
3077        }
3078        else if (name.equals("note")) {
3079          return addNote();
3080        }
3081        else if (name.equals("useContext")) {
3082          return addUseContext();
3083        }
3084        else if (name.equals("jurisdiction")) {
3085          return addJurisdiction();
3086        }
3087        else if (name.equals("copyright")) {
3088          throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.copyright");
3089        }
3090        else if (name.equals("approvalDate")) {
3091          throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.approvalDate");
3092        }
3093        else if (name.equals("lastReviewDate")) {
3094          throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.lastReviewDate");
3095        }
3096        else if (name.equals("effectivePeriod")) {
3097          this.effectivePeriod = new Period();
3098          return this.effectivePeriod;
3099        }
3100        else if (name.equals("topic")) {
3101          return addTopic();
3102        }
3103        else if (name.equals("author")) {
3104          return addAuthor();
3105        }
3106        else if (name.equals("editor")) {
3107          return addEditor();
3108        }
3109        else if (name.equals("reviewer")) {
3110          return addReviewer();
3111        }
3112        else if (name.equals("endorser")) {
3113          return addEndorser();
3114        }
3115        else if (name.equals("relatedArtifact")) {
3116          return addRelatedArtifact();
3117        }
3118        else if (name.equals("type")) {
3119          throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.type");
3120        }
3121        else if (name.equals("actual")) {
3122          throw new FHIRException("Cannot call addChild on a primitive type EvidenceVariable.actual");
3123        }
3124        else if (name.equals("characteristic")) {
3125          return addCharacteristic();
3126        }
3127        else
3128          return super.addChild(name);
3129      }
3130
3131  public String fhirType() {
3132    return "EvidenceVariable";
3133
3134  }
3135
3136      public EvidenceVariable copy() {
3137        EvidenceVariable dst = new EvidenceVariable();
3138        copyValues(dst);
3139        return dst;
3140      }
3141
3142      public void copyValues(EvidenceVariable dst) {
3143        super.copyValues(dst);
3144        dst.url = url == null ? null : url.copy();
3145        if (identifier != null) {
3146          dst.identifier = new ArrayList<Identifier>();
3147          for (Identifier i : identifier)
3148            dst.identifier.add(i.copy());
3149        };
3150        dst.version = version == null ? null : version.copy();
3151        dst.name = name == null ? null : name.copy();
3152        dst.title = title == null ? null : title.copy();
3153        dst.shortTitle = shortTitle == null ? null : shortTitle.copy();
3154        dst.subtitle = subtitle == null ? null : subtitle.copy();
3155        dst.status = status == null ? null : status.copy();
3156        dst.date = date == null ? null : date.copy();
3157        dst.publisher = publisher == null ? null : publisher.copy();
3158        if (contact != null) {
3159          dst.contact = new ArrayList<ContactDetail>();
3160          for (ContactDetail i : contact)
3161            dst.contact.add(i.copy());
3162        };
3163        dst.description = description == null ? null : description.copy();
3164        if (note != null) {
3165          dst.note = new ArrayList<Annotation>();
3166          for (Annotation i : note)
3167            dst.note.add(i.copy());
3168        };
3169        if (useContext != null) {
3170          dst.useContext = new ArrayList<UsageContext>();
3171          for (UsageContext i : useContext)
3172            dst.useContext.add(i.copy());
3173        };
3174        if (jurisdiction != null) {
3175          dst.jurisdiction = new ArrayList<CodeableConcept>();
3176          for (CodeableConcept i : jurisdiction)
3177            dst.jurisdiction.add(i.copy());
3178        };
3179        dst.copyright = copyright == null ? null : copyright.copy();
3180        dst.approvalDate = approvalDate == null ? null : approvalDate.copy();
3181        dst.lastReviewDate = lastReviewDate == null ? null : lastReviewDate.copy();
3182        dst.effectivePeriod = effectivePeriod == null ? null : effectivePeriod.copy();
3183        if (topic != null) {
3184          dst.topic = new ArrayList<CodeableConcept>();
3185          for (CodeableConcept i : topic)
3186            dst.topic.add(i.copy());
3187        };
3188        if (author != null) {
3189          dst.author = new ArrayList<ContactDetail>();
3190          for (ContactDetail i : author)
3191            dst.author.add(i.copy());
3192        };
3193        if (editor != null) {
3194          dst.editor = new ArrayList<ContactDetail>();
3195          for (ContactDetail i : editor)
3196            dst.editor.add(i.copy());
3197        };
3198        if (reviewer != null) {
3199          dst.reviewer = new ArrayList<ContactDetail>();
3200          for (ContactDetail i : reviewer)
3201            dst.reviewer.add(i.copy());
3202        };
3203        if (endorser != null) {
3204          dst.endorser = new ArrayList<ContactDetail>();
3205          for (ContactDetail i : endorser)
3206            dst.endorser.add(i.copy());
3207        };
3208        if (relatedArtifact != null) {
3209          dst.relatedArtifact = new ArrayList<RelatedArtifact>();
3210          for (RelatedArtifact i : relatedArtifact)
3211            dst.relatedArtifact.add(i.copy());
3212        };
3213        dst.type = type == null ? null : type.copy();
3214        dst.actual = actual == null ? null : actual.copy();
3215        if (characteristic != null) {
3216          dst.characteristic = new ArrayList<EvidenceVariableCharacteristicComponent>();
3217          for (EvidenceVariableCharacteristicComponent i : characteristic)
3218            dst.characteristic.add(i.copy());
3219        };
3220      }
3221
3222      protected EvidenceVariable typedCopy() {
3223        return copy();
3224      }
3225
3226      @Override
3227      public boolean equalsDeep(Base other_) {
3228        if (!super.equalsDeep(other_))
3229          return false;
3230        if (!(other_ instanceof EvidenceVariable))
3231          return false;
3232        EvidenceVariable o = (EvidenceVariable) other_;
3233        return compareDeep(identifier, o.identifier, true) && compareDeep(shortTitle, o.shortTitle, true)
3234           && compareDeep(subtitle, o.subtitle, true) && compareDeep(note, o.note, true) && compareDeep(copyright, o.copyright, true)
3235           && compareDeep(approvalDate, o.approvalDate, true) && compareDeep(lastReviewDate, o.lastReviewDate, true)
3236           && compareDeep(effectivePeriod, o.effectivePeriod, true) && compareDeep(topic, o.topic, true) && compareDeep(author, o.author, true)
3237           && compareDeep(editor, o.editor, true) && compareDeep(reviewer, o.reviewer, true) && compareDeep(endorser, o.endorser, true)
3238           && compareDeep(relatedArtifact, o.relatedArtifact, true) && compareDeep(type, o.type, true) && compareDeep(actual, o.actual, true)
3239           && compareDeep(characteristic, o.characteristic, true);
3240      }
3241
3242      @Override
3243      public boolean equalsShallow(Base other_) {
3244        if (!super.equalsShallow(other_))
3245          return false;
3246        if (!(other_ instanceof EvidenceVariable))
3247          return false;
3248        EvidenceVariable o = (EvidenceVariable) other_;
3249        return compareValues(shortTitle, o.shortTitle, true) && compareValues(subtitle, o.subtitle, true) && compareValues(copyright, o.copyright, true)
3250           && compareValues(approvalDate, o.approvalDate, true) && compareValues(lastReviewDate, o.lastReviewDate, true)
3251           && compareValues(type, o.type, true) && compareValues(actual, o.actual, true);
3252      }
3253
3254      public boolean isEmpty() {
3255        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, shortTitle, subtitle
3256          , note, copyright, approvalDate, lastReviewDate, effectivePeriod, topic, author
3257          , editor, reviewer, endorser, relatedArtifact, type, actual, characteristic);
3258      }
3259
3260  @Override
3261  public ResourceType getResourceType() {
3262    return ResourceType.EvidenceVariable;
3263   }
3264
3265 /**
3266   * Search parameter: <b>date</b>
3267   * <p>
3268   * Description: <b>The evidence variable publication date</b><br>
3269   * Type: <b>date</b><br>
3270   * Path: <b>EvidenceVariable.date</b><br>
3271   * </p>
3272   */
3273  @SearchParamDefinition(name="date", path="EvidenceVariable.date", description="The evidence variable publication date", type="date" )
3274  public static final String SP_DATE = "date";
3275 /**
3276   * <b>Fluent Client</b> search parameter constant for <b>date</b>
3277   * <p>
3278   * Description: <b>The evidence variable publication date</b><br>
3279   * Type: <b>date</b><br>
3280   * Path: <b>EvidenceVariable.date</b><br>
3281   * </p>
3282   */
3283  public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE);
3284
3285 /**
3286   * Search parameter: <b>identifier</b>
3287   * <p>
3288   * Description: <b>External identifier for the evidence variable</b><br>
3289   * Type: <b>token</b><br>
3290   * Path: <b>EvidenceVariable.identifier</b><br>
3291   * </p>
3292   */
3293  @SearchParamDefinition(name="identifier", path="EvidenceVariable.identifier", description="External identifier for the evidence variable", type="token" )
3294  public static final String SP_IDENTIFIER = "identifier";
3295 /**
3296   * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
3297   * <p>
3298   * Description: <b>External identifier for the evidence variable</b><br>
3299   * Type: <b>token</b><br>
3300   * Path: <b>EvidenceVariable.identifier</b><br>
3301   * </p>
3302   */
3303  public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
3304
3305 /**
3306   * Search parameter: <b>successor</b>
3307   * <p>
3308   * Description: <b>What resource is being referenced</b><br>
3309   * Type: <b>reference</b><br>
3310   * Path: <b>EvidenceVariable.relatedArtifact.resource</b><br>
3311   * </p>
3312   */
3313  @SearchParamDefinition(name="successor", path="EvidenceVariable.relatedArtifact.where(type='successor').resource", description="What resource is being referenced", type="reference" )
3314  public static final String SP_SUCCESSOR = "successor";
3315 /**
3316   * <b>Fluent Client</b> search parameter constant for <b>successor</b>
3317   * <p>
3318   * Description: <b>What resource is being referenced</b><br>
3319   * Type: <b>reference</b><br>
3320   * Path: <b>EvidenceVariable.relatedArtifact.resource</b><br>
3321   * </p>
3322   */
3323  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUCCESSOR = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUCCESSOR);
3324
3325/**
3326   * Constant for fluent queries to be used to add include statements. Specifies
3327   * the path value of "<b>EvidenceVariable:successor</b>".
3328   */
3329  public static final ca.uhn.fhir.model.api.Include INCLUDE_SUCCESSOR = new ca.uhn.fhir.model.api.Include("EvidenceVariable:successor").toLocked();
3330
3331 /**
3332   * Search parameter: <b>context-type-value</b>
3333   * <p>
3334   * Description: <b>A use context type and value assigned to the evidence variable</b><br>
3335   * Type: <b>composite</b><br>
3336   * Path: <b></b><br>
3337   * </p>
3338   */
3339  @SearchParamDefinition(name="context-type-value", path="EvidenceVariable.useContext", description="A use context type and value assigned to the evidence variable", type="composite", compositeOf={"context-type", "context"} )
3340  public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value";
3341 /**
3342   * <b>Fluent Client</b> search parameter constant for <b>context-type-value</b>
3343   * <p>
3344   * Description: <b>A use context type and value assigned to the evidence variable</b><br>
3345   * Type: <b>composite</b><br>
3346   * Path: <b></b><br>
3347   * </p>
3348   */
3349  public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam> CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam>(SP_CONTEXT_TYPE_VALUE);
3350
3351 /**
3352   * Search parameter: <b>jurisdiction</b>
3353   * <p>
3354   * Description: <b>Intended jurisdiction for the evidence variable</b><br>
3355   * Type: <b>token</b><br>
3356   * Path: <b>EvidenceVariable.jurisdiction</b><br>
3357   * </p>
3358   */
3359  @SearchParamDefinition(name="jurisdiction", path="EvidenceVariable.jurisdiction", description="Intended jurisdiction for the evidence variable", type="token" )
3360  public static final String SP_JURISDICTION = "jurisdiction";
3361 /**
3362   * <b>Fluent Client</b> search parameter constant for <b>jurisdiction</b>
3363   * <p>
3364   * Description: <b>Intended jurisdiction for the evidence variable</b><br>
3365   * Type: <b>token</b><br>
3366   * Path: <b>EvidenceVariable.jurisdiction</b><br>
3367   * </p>
3368   */
3369  public static final ca.uhn.fhir.rest.gclient.TokenClientParam JURISDICTION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_JURISDICTION);
3370
3371 /**
3372   * Search parameter: <b>description</b>
3373   * <p>
3374   * Description: <b>The description of the evidence variable</b><br>
3375   * Type: <b>string</b><br>
3376   * Path: <b>EvidenceVariable.description</b><br>
3377   * </p>
3378   */
3379  @SearchParamDefinition(name="description", path="EvidenceVariable.description", description="The description of the evidence variable", type="string" )
3380  public static final String SP_DESCRIPTION = "description";
3381 /**
3382   * <b>Fluent Client</b> search parameter constant for <b>description</b>
3383   * <p>
3384   * Description: <b>The description of the evidence variable</b><br>
3385   * Type: <b>string</b><br>
3386   * Path: <b>EvidenceVariable.description</b><br>
3387   * </p>
3388   */
3389  public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION);
3390
3391 /**
3392   * Search parameter: <b>derived-from</b>
3393   * <p>
3394   * Description: <b>What resource is being referenced</b><br>
3395   * Type: <b>reference</b><br>
3396   * Path: <b>EvidenceVariable.relatedArtifact.resource</b><br>
3397   * </p>
3398   */
3399  @SearchParamDefinition(name="derived-from", path="EvidenceVariable.relatedArtifact.where(type='derived-from').resource", description="What resource is being referenced", type="reference" )
3400  public static final String SP_DERIVED_FROM = "derived-from";
3401 /**
3402   * <b>Fluent Client</b> search parameter constant for <b>derived-from</b>
3403   * <p>
3404   * Description: <b>What resource is being referenced</b><br>
3405   * Type: <b>reference</b><br>
3406   * Path: <b>EvidenceVariable.relatedArtifact.resource</b><br>
3407   * </p>
3408   */
3409  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DERIVED_FROM = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_DERIVED_FROM);
3410
3411/**
3412   * Constant for fluent queries to be used to add include statements. Specifies
3413   * the path value of "<b>EvidenceVariable:derived-from</b>".
3414   */
3415  public static final ca.uhn.fhir.model.api.Include INCLUDE_DERIVED_FROM = new ca.uhn.fhir.model.api.Include("EvidenceVariable:derived-from").toLocked();
3416
3417 /**
3418   * Search parameter: <b>context-type</b>
3419   * <p>
3420   * Description: <b>A type of use context assigned to the evidence variable</b><br>
3421   * Type: <b>token</b><br>
3422   * Path: <b>EvidenceVariable.useContext.code</b><br>
3423   * </p>
3424   */
3425  @SearchParamDefinition(name="context-type", path="EvidenceVariable.useContext.code", description="A type of use context assigned to the evidence variable", type="token" )
3426  public static final String SP_CONTEXT_TYPE = "context-type";
3427 /**
3428   * <b>Fluent Client</b> search parameter constant for <b>context-type</b>
3429   * <p>
3430   * Description: <b>A type of use context assigned to the evidence variable</b><br>
3431   * Type: <b>token</b><br>
3432   * Path: <b>EvidenceVariable.useContext.code</b><br>
3433   * </p>
3434   */
3435  public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE);
3436
3437 /**
3438   * Search parameter: <b>predecessor</b>
3439   * <p>
3440   * Description: <b>What resource is being referenced</b><br>
3441   * Type: <b>reference</b><br>
3442   * Path: <b>EvidenceVariable.relatedArtifact.resource</b><br>
3443   * </p>
3444   */
3445  @SearchParamDefinition(name="predecessor", path="EvidenceVariable.relatedArtifact.where(type='predecessor').resource", description="What resource is being referenced", type="reference" )
3446  public static final String SP_PREDECESSOR = "predecessor";
3447 /**
3448   * <b>Fluent Client</b> search parameter constant for <b>predecessor</b>
3449   * <p>
3450   * Description: <b>What resource is being referenced</b><br>
3451   * Type: <b>reference</b><br>
3452   * Path: <b>EvidenceVariable.relatedArtifact.resource</b><br>
3453   * </p>
3454   */
3455  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PREDECESSOR = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PREDECESSOR);
3456
3457/**
3458   * Constant for fluent queries to be used to add include statements. Specifies
3459   * the path value of "<b>EvidenceVariable:predecessor</b>".
3460   */
3461  public static final ca.uhn.fhir.model.api.Include INCLUDE_PREDECESSOR = new ca.uhn.fhir.model.api.Include("EvidenceVariable:predecessor").toLocked();
3462
3463 /**
3464   * Search parameter: <b>title</b>
3465   * <p>
3466   * Description: <b>The human-friendly name of the evidence variable</b><br>
3467   * Type: <b>string</b><br>
3468   * Path: <b>EvidenceVariable.title</b><br>
3469   * </p>
3470   */
3471  @SearchParamDefinition(name="title", path="EvidenceVariable.title", description="The human-friendly name of the evidence variable", type="string" )
3472  public static final String SP_TITLE = "title";
3473 /**
3474   * <b>Fluent Client</b> search parameter constant for <b>title</b>
3475   * <p>
3476   * Description: <b>The human-friendly name of the evidence variable</b><br>
3477   * Type: <b>string</b><br>
3478   * Path: <b>EvidenceVariable.title</b><br>
3479   * </p>
3480   */
3481  public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE);
3482
3483 /**
3484   * Search parameter: <b>composed-of</b>
3485   * <p>
3486   * Description: <b>What resource is being referenced</b><br>
3487   * Type: <b>reference</b><br>
3488   * Path: <b>EvidenceVariable.relatedArtifact.resource</b><br>
3489   * </p>
3490   */
3491  @SearchParamDefinition(name="composed-of", path="EvidenceVariable.relatedArtifact.where(type='composed-of').resource", description="What resource is being referenced", type="reference" )
3492  public static final String SP_COMPOSED_OF = "composed-of";
3493 /**
3494   * <b>Fluent Client</b> search parameter constant for <b>composed-of</b>
3495   * <p>
3496   * Description: <b>What resource is being referenced</b><br>
3497   * Type: <b>reference</b><br>
3498   * Path: <b>EvidenceVariable.relatedArtifact.resource</b><br>
3499   * </p>
3500   */
3501  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam COMPOSED_OF = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_COMPOSED_OF);
3502
3503/**
3504   * Constant for fluent queries to be used to add include statements. Specifies
3505   * the path value of "<b>EvidenceVariable:composed-of</b>".
3506   */
3507  public static final ca.uhn.fhir.model.api.Include INCLUDE_COMPOSED_OF = new ca.uhn.fhir.model.api.Include("EvidenceVariable:composed-of").toLocked();
3508
3509 /**
3510   * Search parameter: <b>version</b>
3511   * <p>
3512   * Description: <b>The business version of the evidence variable</b><br>
3513   * Type: <b>token</b><br>
3514   * Path: <b>EvidenceVariable.version</b><br>
3515   * </p>
3516   */
3517  @SearchParamDefinition(name="version", path="EvidenceVariable.version", description="The business version of the evidence variable", type="token" )
3518  public static final String SP_VERSION = "version";
3519 /**
3520   * <b>Fluent Client</b> search parameter constant for <b>version</b>
3521   * <p>
3522   * Description: <b>The business version of the evidence variable</b><br>
3523   * Type: <b>token</b><br>
3524   * Path: <b>EvidenceVariable.version</b><br>
3525   * </p>
3526   */
3527  public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION);
3528
3529 /**
3530   * Search parameter: <b>url</b>
3531   * <p>
3532   * Description: <b>The uri that identifies the evidence variable</b><br>
3533   * Type: <b>uri</b><br>
3534   * Path: <b>EvidenceVariable.url</b><br>
3535   * </p>
3536   */
3537  @SearchParamDefinition(name="url", path="EvidenceVariable.url", description="The uri that identifies the evidence variable", type="uri" )
3538  public static final String SP_URL = "url";
3539 /**
3540   * <b>Fluent Client</b> search parameter constant for <b>url</b>
3541   * <p>
3542   * Description: <b>The uri that identifies the evidence variable</b><br>
3543   * Type: <b>uri</b><br>
3544   * Path: <b>EvidenceVariable.url</b><br>
3545   * </p>
3546   */
3547  public static final ca.uhn.fhir.rest.gclient.UriClientParam URL = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_URL);
3548
3549 /**
3550   * Search parameter: <b>context-quantity</b>
3551   * <p>
3552   * Description: <b>A quantity- or range-valued use context assigned to the evidence variable</b><br>
3553   * Type: <b>quantity</b><br>
3554   * Path: <b>EvidenceVariable.useContext.valueQuantity, EvidenceVariable.useContext.valueRange</b><br>
3555   * </p>
3556   */
3557  @SearchParamDefinition(name="context-quantity", path="(EvidenceVariable.useContext.value as Quantity) | (EvidenceVariable.useContext.value as Range)", description="A quantity- or range-valued use context assigned to the evidence variable", type="quantity" )
3558  public static final String SP_CONTEXT_QUANTITY = "context-quantity";
3559 /**
3560   * <b>Fluent Client</b> search parameter constant for <b>context-quantity</b>
3561   * <p>
3562   * Description: <b>A quantity- or range-valued use context assigned to the evidence variable</b><br>
3563   * Type: <b>quantity</b><br>
3564   * Path: <b>EvidenceVariable.useContext.valueQuantity, EvidenceVariable.useContext.valueRange</b><br>
3565   * </p>
3566   */
3567  public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY);
3568
3569 /**
3570   * Search parameter: <b>effective</b>
3571   * <p>
3572   * Description: <b>The time during which the evidence variable is intended to be in use</b><br>
3573   * Type: <b>date</b><br>
3574   * Path: <b>EvidenceVariable.effectivePeriod</b><br>
3575   * </p>
3576   */
3577  @SearchParamDefinition(name="effective", path="EvidenceVariable.effectivePeriod", description="The time during which the evidence variable is intended to be in use", type="date" )
3578  public static final String SP_EFFECTIVE = "effective";
3579 /**
3580   * <b>Fluent Client</b> search parameter constant for <b>effective</b>
3581   * <p>
3582   * Description: <b>The time during which the evidence variable is intended to be in use</b><br>
3583   * Type: <b>date</b><br>
3584   * Path: <b>EvidenceVariable.effectivePeriod</b><br>
3585   * </p>
3586   */
3587  public static final ca.uhn.fhir.rest.gclient.DateClientParam EFFECTIVE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_EFFECTIVE);
3588
3589 /**
3590   * Search parameter: <b>depends-on</b>
3591   * <p>
3592   * Description: <b>What resource is being referenced</b><br>
3593   * Type: <b>reference</b><br>
3594   * Path: <b>EvidenceVariable.relatedArtifact.resource</b><br>
3595   * </p>
3596   */
3597  @SearchParamDefinition(name="depends-on", path="EvidenceVariable.relatedArtifact.where(type='depends-on').resource", description="What resource is being referenced", type="reference" )
3598  public static final String SP_DEPENDS_ON = "depends-on";
3599 /**
3600   * <b>Fluent Client</b> search parameter constant for <b>depends-on</b>
3601   * <p>
3602   * Description: <b>What resource is being referenced</b><br>
3603   * Type: <b>reference</b><br>
3604   * Path: <b>EvidenceVariable.relatedArtifact.resource</b><br>
3605   * </p>
3606   */
3607  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DEPENDS_ON = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_DEPENDS_ON);
3608
3609/**
3610   * Constant for fluent queries to be used to add include statements. Specifies
3611   * the path value of "<b>EvidenceVariable:depends-on</b>".
3612   */
3613  public static final ca.uhn.fhir.model.api.Include INCLUDE_DEPENDS_ON = new ca.uhn.fhir.model.api.Include("EvidenceVariable:depends-on").toLocked();
3614
3615 /**
3616   * Search parameter: <b>name</b>
3617   * <p>
3618   * Description: <b>Computationally friendly name of the evidence variable</b><br>
3619   * Type: <b>string</b><br>
3620   * Path: <b>EvidenceVariable.name</b><br>
3621   * </p>
3622   */
3623  @SearchParamDefinition(name="name", path="EvidenceVariable.name", description="Computationally friendly name of the evidence variable", type="string" )
3624  public static final String SP_NAME = "name";
3625 /**
3626   * <b>Fluent Client</b> search parameter constant for <b>name</b>
3627   * <p>
3628   * Description: <b>Computationally friendly name of the evidence variable</b><br>
3629   * Type: <b>string</b><br>
3630   * Path: <b>EvidenceVariable.name</b><br>
3631   * </p>
3632   */
3633  public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME);
3634
3635 /**
3636   * Search parameter: <b>context</b>
3637   * <p>
3638   * Description: <b>A use context assigned to the evidence variable</b><br>
3639   * Type: <b>token</b><br>
3640   * Path: <b>EvidenceVariable.useContext.valueCodeableConcept</b><br>
3641   * </p>
3642   */
3643  @SearchParamDefinition(name="context", path="(EvidenceVariable.useContext.value as CodeableConcept)", description="A use context assigned to the evidence variable", type="token" )
3644  public static final String SP_CONTEXT = "context";
3645 /**
3646   * <b>Fluent Client</b> search parameter constant for <b>context</b>
3647   * <p>
3648   * Description: <b>A use context assigned to the evidence variable</b><br>
3649   * Type: <b>token</b><br>
3650   * Path: <b>EvidenceVariable.useContext.valueCodeableConcept</b><br>
3651   * </p>
3652   */
3653  public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT);
3654
3655 /**
3656   * Search parameter: <b>publisher</b>
3657   * <p>
3658   * Description: <b>Name of the publisher of the evidence variable</b><br>
3659   * Type: <b>string</b><br>
3660   * Path: <b>EvidenceVariable.publisher</b><br>
3661   * </p>
3662   */
3663  @SearchParamDefinition(name="publisher", path="EvidenceVariable.publisher", description="Name of the publisher of the evidence variable", type="string" )
3664  public static final String SP_PUBLISHER = "publisher";
3665 /**
3666   * <b>Fluent Client</b> search parameter constant for <b>publisher</b>
3667   * <p>
3668   * Description: <b>Name of the publisher of the evidence variable</b><br>
3669   * Type: <b>string</b><br>
3670   * Path: <b>EvidenceVariable.publisher</b><br>
3671   * </p>
3672   */
3673  public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER);
3674
3675 /**
3676   * Search parameter: <b>topic</b>
3677   * <p>
3678   * Description: <b>Topics associated with the EvidenceVariable</b><br>
3679   * Type: <b>token</b><br>
3680   * Path: <b>EvidenceVariable.topic</b><br>
3681   * </p>
3682   */
3683  @SearchParamDefinition(name="topic", path="EvidenceVariable.topic", description="Topics associated with the EvidenceVariable", type="token" )
3684  public static final String SP_TOPIC = "topic";
3685 /**
3686   * <b>Fluent Client</b> search parameter constant for <b>topic</b>
3687   * <p>
3688   * Description: <b>Topics associated with the EvidenceVariable</b><br>
3689   * Type: <b>token</b><br>
3690   * Path: <b>EvidenceVariable.topic</b><br>
3691   * </p>
3692   */
3693  public static final ca.uhn.fhir.rest.gclient.TokenClientParam TOPIC = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TOPIC);
3694
3695 /**
3696   * Search parameter: <b>context-type-quantity</b>
3697   * <p>
3698   * Description: <b>A use context type and quantity- or range-based value assigned to the evidence variable</b><br>
3699   * Type: <b>composite</b><br>
3700   * Path: <b></b><br>
3701   * </p>
3702   */
3703  @SearchParamDefinition(name="context-type-quantity", path="EvidenceVariable.useContext", description="A use context type and quantity- or range-based value assigned to the evidence variable", type="composite", compositeOf={"context-type", "context-quantity"} )
3704  public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity";
3705 /**
3706   * <b>Fluent Client</b> search parameter constant for <b>context-type-quantity</b>
3707   * <p>
3708   * Description: <b>A use context type and quantity- or range-based value assigned to the evidence variable</b><br>
3709   * Type: <b>composite</b><br>
3710   * Path: <b></b><br>
3711   * </p>
3712   */
3713  public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam> CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam>(SP_CONTEXT_TYPE_QUANTITY);
3714
3715 /**
3716   * Search parameter: <b>status</b>
3717   * <p>
3718   * Description: <b>The current status of the evidence variable</b><br>
3719   * Type: <b>token</b><br>
3720   * Path: <b>EvidenceVariable.status</b><br>
3721   * </p>
3722   */
3723  @SearchParamDefinition(name="status", path="EvidenceVariable.status", description="The current status of the evidence variable", type="token" )
3724  public static final String SP_STATUS = "status";
3725 /**
3726   * <b>Fluent Client</b> search parameter constant for <b>status</b>
3727   * <p>
3728   * Description: <b>The current status of the evidence variable</b><br>
3729   * Type: <b>token</b><br>
3730   * Path: <b>EvidenceVariable.status</b><br>
3731   * </p>
3732   */
3733  public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS);
3734
3735
3736}
3737