001package org.hl7.fhir.r5.model;
002
003
004/*
005 * #%L
006 * org.hl7.fhir.r5
007 * %%
008 * Copyright (C) 2014 - 2019 Health Level 7
009 * %%
010 * Licensed under the Apache License, Version 2.0 (the \"License\");
011 * you may not use this file except in compliance with the License.
012 * You may obtain a copy of the License at
013 * 
014 *      http://www.apache.org/licenses/LICENSE-2.0
015 * 
016 * Unless required by applicable law or agreed to in writing, software
017 * distributed under the License is distributed on an \"AS IS\" BASIS,
018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
019 * See the License for the specific language governing permissions and
020 * limitations under the License.
021 * #L%
022 */
023
024/*
025  Copyright (c) 2011+, HL7, Inc.
026  All rights reserved.
027  
028  Redistribution and use in source and binary forms, with or without modification, \
029  are permitted provided that the following conditions are met:
030  
031   * Redistributions of source code must retain the above copyright notice, this \
032     list of conditions and the following disclaimer.
033   * Redistributions in binary form must reproduce the above copyright notice, \
034     this list of conditions and the following disclaimer in the documentation \
035     and/or other materials provided with the distribution.
036   * Neither the name of HL7 nor the names of its contributors may be used to 
037     endorse or promote products derived from this software without specific 
038     prior written permission.
039  
040  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \
041  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \
042  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \
043  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \
044  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \
045  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \
046  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \
047  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \
048  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \
049  POSSIBILITY OF SUCH DAMAGE.
050  */
051
052// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
053
054import java.util.ArrayList;
055import java.util.Date;
056import java.util.List;
057import org.hl7.fhir.utilities.Utilities;
058import org.hl7.fhir.r5.model.Enumerations.*;
059import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
060import org.hl7.fhir.exceptions.FHIRException;
061import org.hl7.fhir.instance.model.api.ICompositeType;
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/**
071 * A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [[[CodeSystem]]] definitions and their use in [coded elements](terminologies.html).
072 */
073@ResourceDef(name="ValueSet", profile="http://hl7.org/fhir/StructureDefinition/ValueSet")
074public class ValueSet extends CanonicalResource {
075
076    @Block()
077    public static class ValueSetComposeComponent extends BackboneElement implements IBaseBackboneElement {
078        /**
079         * The Locked Date is  the effective date that is used to determine the version of all referenced Code Systems and Value Set Definitions included in the compose that are not already tied to a specific version.
080         */
081        @Child(name = "lockedDate", type = {DateType.class}, order=1, min=0, max=1, modifier=false, summary=true)
082        @Description(shortDefinition="Fixed date for references with no specified version (transitive)", formalDefinition="The Locked Date is  the effective date that is used to determine the version of all referenced Code Systems and Value Set Definitions included in the compose that are not already tied to a specific version." )
083        protected DateType lockedDate;
084
085        /**
086         * Whether inactive codes - codes that are not approved for current use - are in the value set. If inactive = true, inactive codes are to be included in the expansion, if inactive = false, the inactive codes will not be included in the expansion. If absent, the behavior is determined by the implementation, or by the applicable $expand parameters (but generally, inactive codes would be expected to be included).
087         */
088        @Child(name = "inactive", type = {BooleanType.class}, order=2, min=0, max=1, modifier=false, summary=true)
089        @Description(shortDefinition="Whether inactive codes are in the value set", formalDefinition="Whether inactive codes - codes that are not approved for current use - are in the value set. If inactive = true, inactive codes are to be included in the expansion, if inactive = false, the inactive codes will not be included in the expansion. If absent, the behavior is determined by the implementation, or by the applicable $expand parameters (but generally, inactive codes would be expected to be included)." )
090        protected BooleanType inactive;
091
092        /**
093         * Include one or more codes from a code system or other value set(s).
094         */
095        @Child(name = "include", type = {}, order=3, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
096        @Description(shortDefinition="Include one or more codes from a code system or other value set(s)", formalDefinition="Include one or more codes from a code system or other value set(s)." )
097        protected List<ConceptSetComponent> include;
098
099        /**
100         * Exclude one or more codes from the value set based on code system filters and/or other value sets.
101         */
102        @Child(name = "exclude", type = {ConceptSetComponent.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
103        @Description(shortDefinition="Explicitly exclude codes from a code system or other value sets", formalDefinition="Exclude one or more codes from the value set based on code system filters and/or other value sets." )
104        protected List<ConceptSetComponent> exclude;
105
106        /**
107         * A property to return in the expansion, if the client doesn't ask for any particular properties. May be either a code from the code system definition (convenient) or a the formal URI that refers to the property. The special value '*' means all properties known to the server.
108         */
109        @Child(name = "property", type = {StringType.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
110        @Description(shortDefinition="Property to return if client doesn't override", formalDefinition="A property to return in the expansion, if the client doesn't ask for any particular properties. May be either a code from the code system definition (convenient) or a the formal URI that refers to the property. The special value '*' means all properties known to the server." )
111        protected List<StringType> property;
112
113        private static final long serialVersionUID = -15414259L;
114
115    /**
116     * Constructor
117     */
118      public ValueSetComposeComponent() {
119        super();
120      }
121
122    /**
123     * Constructor
124     */
125      public ValueSetComposeComponent(ConceptSetComponent include) {
126        super();
127        this.addInclude(include);
128      }
129
130        /**
131         * @return {@link #lockedDate} (The Locked Date is  the effective date that is used to determine the version of all referenced Code Systems and Value Set Definitions included in the compose that are not already tied to a specific version.). This is the underlying object with id, value and extensions. The accessor "getLockedDate" gives direct access to the value
132         */
133        public DateType getLockedDateElement() { 
134          if (this.lockedDate == null)
135            if (Configuration.errorOnAutoCreate())
136              throw new Error("Attempt to auto-create ValueSetComposeComponent.lockedDate");
137            else if (Configuration.doAutoCreate())
138              this.lockedDate = new DateType(); // bb
139          return this.lockedDate;
140        }
141
142        public boolean hasLockedDateElement() { 
143          return this.lockedDate != null && !this.lockedDate.isEmpty();
144        }
145
146        public boolean hasLockedDate() { 
147          return this.lockedDate != null && !this.lockedDate.isEmpty();
148        }
149
150        /**
151         * @param value {@link #lockedDate} (The Locked Date is  the effective date that is used to determine the version of all referenced Code Systems and Value Set Definitions included in the compose that are not already tied to a specific version.). This is the underlying object with id, value and extensions. The accessor "getLockedDate" gives direct access to the value
152         */
153        public ValueSetComposeComponent setLockedDateElement(DateType value) { 
154          this.lockedDate = value;
155          return this;
156        }
157
158        /**
159         * @return The Locked Date is  the effective date that is used to determine the version of all referenced Code Systems and Value Set Definitions included in the compose that are not already tied to a specific version.
160         */
161        public Date getLockedDate() { 
162          return this.lockedDate == null ? null : this.lockedDate.getValue();
163        }
164
165        /**
166         * @param value The Locked Date is  the effective date that is used to determine the version of all referenced Code Systems and Value Set Definitions included in the compose that are not already tied to a specific version.
167         */
168        public ValueSetComposeComponent setLockedDate(Date value) { 
169          if (value == null)
170            this.lockedDate = null;
171          else {
172            if (this.lockedDate == null)
173              this.lockedDate = new DateType();
174            this.lockedDate.setValue(value);
175          }
176          return this;
177        }
178
179        /**
180         * @return {@link #inactive} (Whether inactive codes - codes that are not approved for current use - are in the value set. If inactive = true, inactive codes are to be included in the expansion, if inactive = false, the inactive codes will not be included in the expansion. If absent, the behavior is determined by the implementation, or by the applicable $expand parameters (but generally, inactive codes would be expected to be included).). This is the underlying object with id, value and extensions. The accessor "getInactive" gives direct access to the value
181         */
182        public BooleanType getInactiveElement() { 
183          if (this.inactive == null)
184            if (Configuration.errorOnAutoCreate())
185              throw new Error("Attempt to auto-create ValueSetComposeComponent.inactive");
186            else if (Configuration.doAutoCreate())
187              this.inactive = new BooleanType(); // bb
188          return this.inactive;
189        }
190
191        public boolean hasInactiveElement() { 
192          return this.inactive != null && !this.inactive.isEmpty();
193        }
194
195        public boolean hasInactive() { 
196          return this.inactive != null && !this.inactive.isEmpty();
197        }
198
199        /**
200         * @param value {@link #inactive} (Whether inactive codes - codes that are not approved for current use - are in the value set. If inactive = true, inactive codes are to be included in the expansion, if inactive = false, the inactive codes will not be included in the expansion. If absent, the behavior is determined by the implementation, or by the applicable $expand parameters (but generally, inactive codes would be expected to be included).). This is the underlying object with id, value and extensions. The accessor "getInactive" gives direct access to the value
201         */
202        public ValueSetComposeComponent setInactiveElement(BooleanType value) { 
203          this.inactive = value;
204          return this;
205        }
206
207        /**
208         * @return Whether inactive codes - codes that are not approved for current use - are in the value set. If inactive = true, inactive codes are to be included in the expansion, if inactive = false, the inactive codes will not be included in the expansion. If absent, the behavior is determined by the implementation, or by the applicable $expand parameters (but generally, inactive codes would be expected to be included).
209         */
210        public boolean getInactive() { 
211          return this.inactive == null || this.inactive.isEmpty() ? false : this.inactive.getValue();
212        }
213
214        /**
215         * @param value Whether inactive codes - codes that are not approved for current use - are in the value set. If inactive = true, inactive codes are to be included in the expansion, if inactive = false, the inactive codes will not be included in the expansion. If absent, the behavior is determined by the implementation, or by the applicable $expand parameters (but generally, inactive codes would be expected to be included).
216         */
217        public ValueSetComposeComponent setInactive(boolean value) { 
218            if (this.inactive == null)
219              this.inactive = new BooleanType();
220            this.inactive.setValue(value);
221          return this;
222        }
223
224        /**
225         * @return {@link #include} (Include one or more codes from a code system or other value set(s).)
226         */
227        public List<ConceptSetComponent> getInclude() { 
228          if (this.include == null)
229            this.include = new ArrayList<ConceptSetComponent>();
230          return this.include;
231        }
232
233        /**
234         * @return Returns a reference to <code>this</code> for easy method chaining
235         */
236        public ValueSetComposeComponent setInclude(List<ConceptSetComponent> theInclude) { 
237          this.include = theInclude;
238          return this;
239        }
240
241        public boolean hasInclude() { 
242          if (this.include == null)
243            return false;
244          for (ConceptSetComponent item : this.include)
245            if (!item.isEmpty())
246              return true;
247          return false;
248        }
249
250        public ConceptSetComponent addInclude() { //3
251          ConceptSetComponent t = new ConceptSetComponent();
252          if (this.include == null)
253            this.include = new ArrayList<ConceptSetComponent>();
254          this.include.add(t);
255          return t;
256        }
257
258        public ValueSetComposeComponent addInclude(ConceptSetComponent t) { //3
259          if (t == null)
260            return this;
261          if (this.include == null)
262            this.include = new ArrayList<ConceptSetComponent>();
263          this.include.add(t);
264          return this;
265        }
266
267        /**
268         * @return The first repetition of repeating field {@link #include}, creating it if it does not already exist {3}
269         */
270        public ConceptSetComponent getIncludeFirstRep() { 
271          if (getInclude().isEmpty()) {
272            addInclude();
273          }
274          return getInclude().get(0);
275        }
276
277        /**
278         * @return {@link #exclude} (Exclude one or more codes from the value set based on code system filters and/or other value sets.)
279         */
280        public List<ConceptSetComponent> getExclude() { 
281          if (this.exclude == null)
282            this.exclude = new ArrayList<ConceptSetComponent>();
283          return this.exclude;
284        }
285
286        /**
287         * @return Returns a reference to <code>this</code> for easy method chaining
288         */
289        public ValueSetComposeComponent setExclude(List<ConceptSetComponent> theExclude) { 
290          this.exclude = theExclude;
291          return this;
292        }
293
294        public boolean hasExclude() { 
295          if (this.exclude == null)
296            return false;
297          for (ConceptSetComponent item : this.exclude)
298            if (!item.isEmpty())
299              return true;
300          return false;
301        }
302
303        public ConceptSetComponent addExclude() { //3
304          ConceptSetComponent t = new ConceptSetComponent();
305          if (this.exclude == null)
306            this.exclude = new ArrayList<ConceptSetComponent>();
307          this.exclude.add(t);
308          return t;
309        }
310
311        public ValueSetComposeComponent addExclude(ConceptSetComponent t) { //3
312          if (t == null)
313            return this;
314          if (this.exclude == null)
315            this.exclude = new ArrayList<ConceptSetComponent>();
316          this.exclude.add(t);
317          return this;
318        }
319
320        /**
321         * @return The first repetition of repeating field {@link #exclude}, creating it if it does not already exist {3}
322         */
323        public ConceptSetComponent getExcludeFirstRep() { 
324          if (getExclude().isEmpty()) {
325            addExclude();
326          }
327          return getExclude().get(0);
328        }
329
330        /**
331         * @return {@link #property} (A property to return in the expansion, if the client doesn't ask for any particular properties. May be either a code from the code system definition (convenient) or a the formal URI that refers to the property. The special value '*' means all properties known to the server.)
332         */
333        public List<StringType> getProperty() { 
334          if (this.property == null)
335            this.property = new ArrayList<StringType>();
336          return this.property;
337        }
338
339        /**
340         * @return Returns a reference to <code>this</code> for easy method chaining
341         */
342        public ValueSetComposeComponent setProperty(List<StringType> theProperty) { 
343          this.property = theProperty;
344          return this;
345        }
346
347        public boolean hasProperty() { 
348          if (this.property == null)
349            return false;
350          for (StringType item : this.property)
351            if (!item.isEmpty())
352              return true;
353          return false;
354        }
355
356        /**
357         * @return {@link #property} (A property to return in the expansion, if the client doesn't ask for any particular properties. May be either a code from the code system definition (convenient) or a the formal URI that refers to the property. The special value '*' means all properties known to the server.)
358         */
359        public StringType addPropertyElement() {//2 
360          StringType t = new StringType();
361          if (this.property == null)
362            this.property = new ArrayList<StringType>();
363          this.property.add(t);
364          return t;
365        }
366
367        /**
368         * @param value {@link #property} (A property to return in the expansion, if the client doesn't ask for any particular properties. May be either a code from the code system definition (convenient) or a the formal URI that refers to the property. The special value '*' means all properties known to the server.)
369         */
370        public ValueSetComposeComponent addProperty(String value) { //1
371          StringType t = new StringType();
372          t.setValue(value);
373          if (this.property == null)
374            this.property = new ArrayList<StringType>();
375          this.property.add(t);
376          return this;
377        }
378
379        /**
380         * @param value {@link #property} (A property to return in the expansion, if the client doesn't ask for any particular properties. May be either a code from the code system definition (convenient) or a the formal URI that refers to the property. The special value '*' means all properties known to the server.)
381         */
382        public boolean hasProperty(String value) { 
383          if (this.property == null)
384            return false;
385          for (StringType v : this.property)
386            if (v.getValue().equals(value)) // string
387              return true;
388          return false;
389        }
390
391        protected void listChildren(List<Property> children) {
392          super.listChildren(children);
393          children.add(new Property("lockedDate", "date", "The Locked Date is  the effective date that is used to determine the version of all referenced Code Systems and Value Set Definitions included in the compose that are not already tied to a specific version.", 0, 1, lockedDate));
394          children.add(new Property("inactive", "boolean", "Whether inactive codes - codes that are not approved for current use - are in the value set. If inactive = true, inactive codes are to be included in the expansion, if inactive = false, the inactive codes will not be included in the expansion. If absent, the behavior is determined by the implementation, or by the applicable $expand parameters (but generally, inactive codes would be expected to be included).", 0, 1, inactive));
395          children.add(new Property("include", "", "Include one or more codes from a code system or other value set(s).", 0, java.lang.Integer.MAX_VALUE, include));
396          children.add(new Property("exclude", "@ValueSet.compose.include", "Exclude one or more codes from the value set based on code system filters and/or other value sets.", 0, java.lang.Integer.MAX_VALUE, exclude));
397          children.add(new Property("property", "string", "A property to return in the expansion, if the client doesn't ask for any particular properties. May be either a code from the code system definition (convenient) or a the formal URI that refers to the property. The special value '*' means all properties known to the server.", 0, java.lang.Integer.MAX_VALUE, property));
398        }
399
400        @Override
401        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
402          switch (_hash) {
403          case 1391591896: /*lockedDate*/  return new Property("lockedDate", "date", "The Locked Date is  the effective date that is used to determine the version of all referenced Code Systems and Value Set Definitions included in the compose that are not already tied to a specific version.", 0, 1, lockedDate);
404          case 24665195: /*inactive*/  return new Property("inactive", "boolean", "Whether inactive codes - codes that are not approved for current use - are in the value set. If inactive = true, inactive codes are to be included in the expansion, if inactive = false, the inactive codes will not be included in the expansion. If absent, the behavior is determined by the implementation, or by the applicable $expand parameters (but generally, inactive codes would be expected to be included).", 0, 1, inactive);
405          case 1942574248: /*include*/  return new Property("include", "", "Include one or more codes from a code system or other value set(s).", 0, java.lang.Integer.MAX_VALUE, include);
406          case -1321148966: /*exclude*/  return new Property("exclude", "@ValueSet.compose.include", "Exclude one or more codes from the value set based on code system filters and/or other value sets.", 0, java.lang.Integer.MAX_VALUE, exclude);
407          case -993141291: /*property*/  return new Property("property", "string", "A property to return in the expansion, if the client doesn't ask for any particular properties. May be either a code from the code system definition (convenient) or a the formal URI that refers to the property. The special value '*' means all properties known to the server.", 0, java.lang.Integer.MAX_VALUE, property);
408          default: return super.getNamedProperty(_hash, _name, _checkValid);
409          }
410
411        }
412
413      @Override
414      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
415        switch (hash) {
416        case 1391591896: /*lockedDate*/ return this.lockedDate == null ? new Base[0] : new Base[] {this.lockedDate}; // DateType
417        case 24665195: /*inactive*/ return this.inactive == null ? new Base[0] : new Base[] {this.inactive}; // BooleanType
418        case 1942574248: /*include*/ return this.include == null ? new Base[0] : this.include.toArray(new Base[this.include.size()]); // ConceptSetComponent
419        case -1321148966: /*exclude*/ return this.exclude == null ? new Base[0] : this.exclude.toArray(new Base[this.exclude.size()]); // ConceptSetComponent
420        case -993141291: /*property*/ return this.property == null ? new Base[0] : this.property.toArray(new Base[this.property.size()]); // StringType
421        default: return super.getProperty(hash, name, checkValid);
422        }
423
424      }
425
426      @Override
427      public Base setProperty(int hash, String name, Base value) throws FHIRException {
428        switch (hash) {
429        case 1391591896: // lockedDate
430          this.lockedDate = TypeConvertor.castToDate(value); // DateType
431          return value;
432        case 24665195: // inactive
433          this.inactive = TypeConvertor.castToBoolean(value); // BooleanType
434          return value;
435        case 1942574248: // include
436          this.getInclude().add((ConceptSetComponent) value); // ConceptSetComponent
437          return value;
438        case -1321148966: // exclude
439          this.getExclude().add((ConceptSetComponent) value); // ConceptSetComponent
440          return value;
441        case -993141291: // property
442          this.getProperty().add(TypeConvertor.castToString(value)); // StringType
443          return value;
444        default: return super.setProperty(hash, name, value);
445        }
446
447      }
448
449      @Override
450      public Base setProperty(String name, Base value) throws FHIRException {
451        if (name.equals("lockedDate")) {
452          this.lockedDate = TypeConvertor.castToDate(value); // DateType
453        } else if (name.equals("inactive")) {
454          this.inactive = TypeConvertor.castToBoolean(value); // BooleanType
455        } else if (name.equals("include")) {
456          this.getInclude().add((ConceptSetComponent) value);
457        } else if (name.equals("exclude")) {
458          this.getExclude().add((ConceptSetComponent) value);
459        } else if (name.equals("property")) {
460          this.getProperty().add(TypeConvertor.castToString(value));
461        } else
462          return super.setProperty(name, value);
463        return value;
464      }
465
466      @Override
467      public Base makeProperty(int hash, String name) throws FHIRException {
468        switch (hash) {
469        case 1391591896:  return getLockedDateElement();
470        case 24665195:  return getInactiveElement();
471        case 1942574248:  return addInclude(); 
472        case -1321148966:  return addExclude(); 
473        case -993141291:  return addPropertyElement();
474        default: return super.makeProperty(hash, name);
475        }
476
477      }
478
479      @Override
480      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
481        switch (hash) {
482        case 1391591896: /*lockedDate*/ return new String[] {"date"};
483        case 24665195: /*inactive*/ return new String[] {"boolean"};
484        case 1942574248: /*include*/ return new String[] {};
485        case -1321148966: /*exclude*/ return new String[] {"@ValueSet.compose.include"};
486        case -993141291: /*property*/ return new String[] {"string"};
487        default: return super.getTypesForProperty(hash, name);
488        }
489
490      }
491
492      @Override
493      public Base addChild(String name) throws FHIRException {
494        if (name.equals("lockedDate")) {
495          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.lockedDate");
496        }
497        else if (name.equals("inactive")) {
498          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.inactive");
499        }
500        else if (name.equals("include")) {
501          return addInclude();
502        }
503        else if (name.equals("exclude")) {
504          return addExclude();
505        }
506        else if (name.equals("property")) {
507          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.property");
508        }
509        else
510          return super.addChild(name);
511      }
512
513      public ValueSetComposeComponent copy() {
514        ValueSetComposeComponent dst = new ValueSetComposeComponent();
515        copyValues(dst);
516        return dst;
517      }
518
519      public void copyValues(ValueSetComposeComponent dst) {
520        super.copyValues(dst);
521        dst.lockedDate = lockedDate == null ? null : lockedDate.copy();
522        dst.inactive = inactive == null ? null : inactive.copy();
523        if (include != null) {
524          dst.include = new ArrayList<ConceptSetComponent>();
525          for (ConceptSetComponent i : include)
526            dst.include.add(i.copy());
527        };
528        if (exclude != null) {
529          dst.exclude = new ArrayList<ConceptSetComponent>();
530          for (ConceptSetComponent i : exclude)
531            dst.exclude.add(i.copy());
532        };
533        if (property != null) {
534          dst.property = new ArrayList<StringType>();
535          for (StringType i : property)
536            dst.property.add(i.copy());
537        };
538      }
539
540      @Override
541      public boolean equalsDeep(Base other_) {
542        if (!super.equalsDeep(other_))
543          return false;
544        if (!(other_ instanceof ValueSetComposeComponent))
545          return false;
546        ValueSetComposeComponent o = (ValueSetComposeComponent) other_;
547        return compareDeep(lockedDate, o.lockedDate, true) && compareDeep(inactive, o.inactive, true) && compareDeep(include, o.include, true)
548           && compareDeep(exclude, o.exclude, true) && compareDeep(property, o.property, true);
549      }
550
551      @Override
552      public boolean equalsShallow(Base other_) {
553        if (!super.equalsShallow(other_))
554          return false;
555        if (!(other_ instanceof ValueSetComposeComponent))
556          return false;
557        ValueSetComposeComponent o = (ValueSetComposeComponent) other_;
558        return compareValues(lockedDate, o.lockedDate, true) && compareValues(inactive, o.inactive, true) && compareValues(property, o.property, true)
559          ;
560      }
561
562      public boolean isEmpty() {
563        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(lockedDate, inactive, include
564          , exclude, property);
565      }
566
567  public String fhirType() {
568    return "ValueSet.compose";
569
570  }
571
572  }
573
574    @Block()
575    public static class ConceptSetComponent extends BackboneElement implements IBaseBackboneElement {
576        /**
577         * An absolute URI which is the code system from which the selected codes come from.
578         */
579        @Child(name = "system", type = {UriType.class}, order=1, min=0, max=1, modifier=false, summary=true)
580        @Description(shortDefinition="The system the codes come from", formalDefinition="An absolute URI which is the code system from which the selected codes come from." )
581        protected UriType system;
582
583        /**
584         * The version of the code system that the codes are selected from, or the special version '*' for all versions.
585         */
586        @Child(name = "version", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=true)
587        @Description(shortDefinition="Specific version of the code system referred to", formalDefinition="The version of the code system that the codes are selected from, or the special version '*' for all versions." )
588        protected StringType version;
589
590        /**
591         * Specifies a concept to be included or excluded.
592         */
593        @Child(name = "concept", type = {}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
594        @Description(shortDefinition="A concept defined in the system", formalDefinition="Specifies a concept to be included or excluded." )
595        protected List<ConceptReferenceComponent> concept;
596
597        /**
598         * Select concepts by specify a matching criterion based on the properties (including relationships) defined by the system, or on filters defined by the system. If multiple filters are specified, they SHALL all be true.
599         */
600        @Child(name = "filter", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
601        @Description(shortDefinition="Select codes/concepts by their properties (including relationships)", formalDefinition="Select concepts by specify a matching criterion based on the properties (including relationships) defined by the system, or on filters defined by the system. If multiple filters are specified, they SHALL all be true." )
602        protected List<ConceptSetFilterComponent> filter;
603
604        /**
605         * Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url.  If multiple value sets are specified this includes the union of the contents of all of the referenced value sets.
606         */
607        @Child(name = "valueSet", type = {CanonicalType.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
608        @Description(shortDefinition="Select the contents included in this value set", formalDefinition="Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url.  If multiple value sets are specified this includes the union of the contents of all of the referenced value sets." )
609        protected List<CanonicalType> valueSet;
610
611        private static final long serialVersionUID = 969391146L;
612
613    /**
614     * Constructor
615     */
616      public ConceptSetComponent() {
617        super();
618      }
619
620        /**
621         * @return {@link #system} (An absolute URI which is the code system from which the selected codes come from.). This is the underlying object with id, value and extensions. The accessor "getSystem" gives direct access to the value
622         */
623        public UriType getSystemElement() { 
624          if (this.system == null)
625            if (Configuration.errorOnAutoCreate())
626              throw new Error("Attempt to auto-create ConceptSetComponent.system");
627            else if (Configuration.doAutoCreate())
628              this.system = new UriType(); // bb
629          return this.system;
630        }
631
632        public boolean hasSystemElement() { 
633          return this.system != null && !this.system.isEmpty();
634        }
635
636        public boolean hasSystem() { 
637          return this.system != null && !this.system.isEmpty();
638        }
639
640        /**
641         * @param value {@link #system} (An absolute URI which is the code system from which the selected codes come from.). This is the underlying object with id, value and extensions. The accessor "getSystem" gives direct access to the value
642         */
643        public ConceptSetComponent setSystemElement(UriType value) { 
644          this.system = value;
645          return this;
646        }
647
648        /**
649         * @return An absolute URI which is the code system from which the selected codes come from.
650         */
651        public String getSystem() { 
652          return this.system == null ? null : this.system.getValue();
653        }
654
655        /**
656         * @param value An absolute URI which is the code system from which the selected codes come from.
657         */
658        public ConceptSetComponent setSystem(String value) { 
659          if (Utilities.noString(value))
660            this.system = null;
661          else {
662            if (this.system == null)
663              this.system = new UriType();
664            this.system.setValue(value);
665          }
666          return this;
667        }
668
669        /**
670         * @return {@link #version} (The version of the code system that the codes are selected from, or the special version '*' for all versions.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
671         */
672        public StringType getVersionElement() { 
673          if (this.version == null)
674            if (Configuration.errorOnAutoCreate())
675              throw new Error("Attempt to auto-create ConceptSetComponent.version");
676            else if (Configuration.doAutoCreate())
677              this.version = new StringType(); // bb
678          return this.version;
679        }
680
681        public boolean hasVersionElement() { 
682          return this.version != null && !this.version.isEmpty();
683        }
684
685        public boolean hasVersion() { 
686          return this.version != null && !this.version.isEmpty();
687        }
688
689        /**
690         * @param value {@link #version} (The version of the code system that the codes are selected from, or the special version '*' for all versions.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
691         */
692        public ConceptSetComponent setVersionElement(StringType value) { 
693          this.version = value;
694          return this;
695        }
696
697        /**
698         * @return The version of the code system that the codes are selected from, or the special version '*' for all versions.
699         */
700        public String getVersion() { 
701          return this.version == null ? null : this.version.getValue();
702        }
703
704        /**
705         * @param value The version of the code system that the codes are selected from, or the special version '*' for all versions.
706         */
707        public ConceptSetComponent setVersion(String value) { 
708          if (Utilities.noString(value))
709            this.version = null;
710          else {
711            if (this.version == null)
712              this.version = new StringType();
713            this.version.setValue(value);
714          }
715          return this;
716        }
717
718        /**
719         * @return {@link #concept} (Specifies a concept to be included or excluded.)
720         */
721        public List<ConceptReferenceComponent> getConcept() { 
722          if (this.concept == null)
723            this.concept = new ArrayList<ConceptReferenceComponent>();
724          return this.concept;
725        }
726
727        /**
728         * @return Returns a reference to <code>this</code> for easy method chaining
729         */
730        public ConceptSetComponent setConcept(List<ConceptReferenceComponent> theConcept) { 
731          this.concept = theConcept;
732          return this;
733        }
734
735        public boolean hasConcept() { 
736          if (this.concept == null)
737            return false;
738          for (ConceptReferenceComponent item : this.concept)
739            if (!item.isEmpty())
740              return true;
741          return false;
742        }
743
744        public ConceptReferenceComponent addConcept() { //3
745          ConceptReferenceComponent t = new ConceptReferenceComponent();
746          if (this.concept == null)
747            this.concept = new ArrayList<ConceptReferenceComponent>();
748          this.concept.add(t);
749          return t;
750        }
751
752        public ConceptSetComponent addConcept(ConceptReferenceComponent t) { //3
753          if (t == null)
754            return this;
755          if (this.concept == null)
756            this.concept = new ArrayList<ConceptReferenceComponent>();
757          this.concept.add(t);
758          return this;
759        }
760
761        /**
762         * @return The first repetition of repeating field {@link #concept}, creating it if it does not already exist {3}
763         */
764        public ConceptReferenceComponent getConceptFirstRep() { 
765          if (getConcept().isEmpty()) {
766            addConcept();
767          }
768          return getConcept().get(0);
769        }
770
771        /**
772         * @return {@link #filter} (Select concepts by specify a matching criterion based on the properties (including relationships) defined by the system, or on filters defined by the system. If multiple filters are specified, they SHALL all be true.)
773         */
774        public List<ConceptSetFilterComponent> getFilter() { 
775          if (this.filter == null)
776            this.filter = new ArrayList<ConceptSetFilterComponent>();
777          return this.filter;
778        }
779
780        /**
781         * @return Returns a reference to <code>this</code> for easy method chaining
782         */
783        public ConceptSetComponent setFilter(List<ConceptSetFilterComponent> theFilter) { 
784          this.filter = theFilter;
785          return this;
786        }
787
788        public boolean hasFilter() { 
789          if (this.filter == null)
790            return false;
791          for (ConceptSetFilterComponent item : this.filter)
792            if (!item.isEmpty())
793              return true;
794          return false;
795        }
796
797        public ConceptSetFilterComponent addFilter() { //3
798          ConceptSetFilterComponent t = new ConceptSetFilterComponent();
799          if (this.filter == null)
800            this.filter = new ArrayList<ConceptSetFilterComponent>();
801          this.filter.add(t);
802          return t;
803        }
804
805        public ConceptSetComponent addFilter(ConceptSetFilterComponent t) { //3
806          if (t == null)
807            return this;
808          if (this.filter == null)
809            this.filter = new ArrayList<ConceptSetFilterComponent>();
810          this.filter.add(t);
811          return this;
812        }
813
814        /**
815         * @return The first repetition of repeating field {@link #filter}, creating it if it does not already exist {3}
816         */
817        public ConceptSetFilterComponent getFilterFirstRep() { 
818          if (getFilter().isEmpty()) {
819            addFilter();
820          }
821          return getFilter().get(0);
822        }
823
824        /**
825         * @return {@link #valueSet} (Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url.  If multiple value sets are specified this includes the union of the contents of all of the referenced value sets.)
826         */
827        public List<CanonicalType> getValueSet() { 
828          if (this.valueSet == null)
829            this.valueSet = new ArrayList<CanonicalType>();
830          return this.valueSet;
831        }
832
833        /**
834         * @return Returns a reference to <code>this</code> for easy method chaining
835         */
836        public ConceptSetComponent setValueSet(List<CanonicalType> theValueSet) { 
837          this.valueSet = theValueSet;
838          return this;
839        }
840
841        public boolean hasValueSet() { 
842          if (this.valueSet == null)
843            return false;
844          for (CanonicalType item : this.valueSet)
845            if (!item.isEmpty())
846              return true;
847          return false;
848        }
849
850        /**
851         * @return {@link #valueSet} (Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url.  If multiple value sets are specified this includes the union of the contents of all of the referenced value sets.)
852         */
853        public CanonicalType addValueSetElement() {//2 
854          CanonicalType t = new CanonicalType();
855          if (this.valueSet == null)
856            this.valueSet = new ArrayList<CanonicalType>();
857          this.valueSet.add(t);
858          return t;
859        }
860
861        /**
862         * @param value {@link #valueSet} (Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url.  If multiple value sets are specified this includes the union of the contents of all of the referenced value sets.)
863         */
864        public ConceptSetComponent addValueSet(String value) { //1
865          CanonicalType t = new CanonicalType();
866          t.setValue(value);
867          if (this.valueSet == null)
868            this.valueSet = new ArrayList<CanonicalType>();
869          this.valueSet.add(t);
870          return this;
871        }
872
873        /**
874         * @param value {@link #valueSet} (Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url.  If multiple value sets are specified this includes the union of the contents of all of the referenced value sets.)
875         */
876        public boolean hasValueSet(String value) { 
877          if (this.valueSet == null)
878            return false;
879          for (CanonicalType v : this.valueSet)
880            if (v.getValue().equals(value)) // canonical
881              return true;
882          return false;
883        }
884
885        protected void listChildren(List<Property> children) {
886          super.listChildren(children);
887          children.add(new Property("system", "uri", "An absolute URI which is the code system from which the selected codes come from.", 0, 1, system));
888          children.add(new Property("version", "string", "The version of the code system that the codes are selected from, or the special version '*' for all versions.", 0, 1, version));
889          children.add(new Property("concept", "", "Specifies a concept to be included or excluded.", 0, java.lang.Integer.MAX_VALUE, concept));
890          children.add(new Property("filter", "", "Select concepts by specify a matching criterion based on the properties (including relationships) defined by the system, or on filters defined by the system. If multiple filters are specified, they SHALL all be true.", 0, java.lang.Integer.MAX_VALUE, filter));
891          children.add(new Property("valueSet", "canonical(ValueSet)", "Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url.  If multiple value sets are specified this includes the union of the contents of all of the referenced value sets.", 0, java.lang.Integer.MAX_VALUE, valueSet));
892        }
893
894        @Override
895        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
896          switch (_hash) {
897          case -887328209: /*system*/  return new Property("system", "uri", "An absolute URI which is the code system from which the selected codes come from.", 0, 1, system);
898          case 351608024: /*version*/  return new Property("version", "string", "The version of the code system that the codes are selected from, or the special version '*' for all versions.", 0, 1, version);
899          case 951024232: /*concept*/  return new Property("concept", "", "Specifies a concept to be included or excluded.", 0, java.lang.Integer.MAX_VALUE, concept);
900          case -1274492040: /*filter*/  return new Property("filter", "", "Select concepts by specify a matching criterion based on the properties (including relationships) defined by the system, or on filters defined by the system. If multiple filters are specified, they SHALL all be true.", 0, java.lang.Integer.MAX_VALUE, filter);
901          case -1410174671: /*valueSet*/  return new Property("valueSet", "canonical(ValueSet)", "Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url.  If multiple value sets are specified this includes the union of the contents of all of the referenced value sets.", 0, java.lang.Integer.MAX_VALUE, valueSet);
902          default: return super.getNamedProperty(_hash, _name, _checkValid);
903          }
904
905        }
906
907      @Override
908      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
909        switch (hash) {
910        case -887328209: /*system*/ return this.system == null ? new Base[0] : new Base[] {this.system}; // UriType
911        case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType
912        case 951024232: /*concept*/ return this.concept == null ? new Base[0] : this.concept.toArray(new Base[this.concept.size()]); // ConceptReferenceComponent
913        case -1274492040: /*filter*/ return this.filter == null ? new Base[0] : this.filter.toArray(new Base[this.filter.size()]); // ConceptSetFilterComponent
914        case -1410174671: /*valueSet*/ return this.valueSet == null ? new Base[0] : this.valueSet.toArray(new Base[this.valueSet.size()]); // CanonicalType
915        default: return super.getProperty(hash, name, checkValid);
916        }
917
918      }
919
920      @Override
921      public Base setProperty(int hash, String name, Base value) throws FHIRException {
922        switch (hash) {
923        case -887328209: // system
924          this.system = TypeConvertor.castToUri(value); // UriType
925          return value;
926        case 351608024: // version
927          this.version = TypeConvertor.castToString(value); // StringType
928          return value;
929        case 951024232: // concept
930          this.getConcept().add((ConceptReferenceComponent) value); // ConceptReferenceComponent
931          return value;
932        case -1274492040: // filter
933          this.getFilter().add((ConceptSetFilterComponent) value); // ConceptSetFilterComponent
934          return value;
935        case -1410174671: // valueSet
936          this.getValueSet().add(TypeConvertor.castToCanonical(value)); // CanonicalType
937          return value;
938        default: return super.setProperty(hash, name, value);
939        }
940
941      }
942
943      @Override
944      public Base setProperty(String name, Base value) throws FHIRException {
945        if (name.equals("system")) {
946          this.system = TypeConvertor.castToUri(value); // UriType
947        } else if (name.equals("version")) {
948          this.version = TypeConvertor.castToString(value); // StringType
949        } else if (name.equals("concept")) {
950          this.getConcept().add((ConceptReferenceComponent) value);
951        } else if (name.equals("filter")) {
952          this.getFilter().add((ConceptSetFilterComponent) value);
953        } else if (name.equals("valueSet")) {
954          this.getValueSet().add(TypeConvertor.castToCanonical(value));
955        } else
956          return super.setProperty(name, value);
957        return value;
958      }
959
960      @Override
961      public Base makeProperty(int hash, String name) throws FHIRException {
962        switch (hash) {
963        case -887328209:  return getSystemElement();
964        case 351608024:  return getVersionElement();
965        case 951024232:  return addConcept(); 
966        case -1274492040:  return addFilter(); 
967        case -1410174671:  return addValueSetElement();
968        default: return super.makeProperty(hash, name);
969        }
970
971      }
972
973      @Override
974      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
975        switch (hash) {
976        case -887328209: /*system*/ return new String[] {"uri"};
977        case 351608024: /*version*/ return new String[] {"string"};
978        case 951024232: /*concept*/ return new String[] {};
979        case -1274492040: /*filter*/ return new String[] {};
980        case -1410174671: /*valueSet*/ return new String[] {"canonical"};
981        default: return super.getTypesForProperty(hash, name);
982        }
983
984      }
985
986      @Override
987      public Base addChild(String name) throws FHIRException {
988        if (name.equals("system")) {
989          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.system");
990        }
991        else if (name.equals("version")) {
992          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.version");
993        }
994        else if (name.equals("concept")) {
995          return addConcept();
996        }
997        else if (name.equals("filter")) {
998          return addFilter();
999        }
1000        else if (name.equals("valueSet")) {
1001          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.valueSet");
1002        }
1003        else
1004          return super.addChild(name);
1005      }
1006
1007      public ConceptSetComponent copy() {
1008        ConceptSetComponent dst = new ConceptSetComponent();
1009        copyValues(dst);
1010        return dst;
1011      }
1012
1013      public void copyValues(ConceptSetComponent dst) {
1014        super.copyValues(dst);
1015        dst.system = system == null ? null : system.copy();
1016        dst.version = version == null ? null : version.copy();
1017        if (concept != null) {
1018          dst.concept = new ArrayList<ConceptReferenceComponent>();
1019          for (ConceptReferenceComponent i : concept)
1020            dst.concept.add(i.copy());
1021        };
1022        if (filter != null) {
1023          dst.filter = new ArrayList<ConceptSetFilterComponent>();
1024          for (ConceptSetFilterComponent i : filter)
1025            dst.filter.add(i.copy());
1026        };
1027        if (valueSet != null) {
1028          dst.valueSet = new ArrayList<CanonicalType>();
1029          for (CanonicalType i : valueSet)
1030            dst.valueSet.add(i.copy());
1031        };
1032      }
1033
1034      @Override
1035      public boolean equalsDeep(Base other_) {
1036        if (!super.equalsDeep(other_))
1037          return false;
1038        if (!(other_ instanceof ConceptSetComponent))
1039          return false;
1040        ConceptSetComponent o = (ConceptSetComponent) other_;
1041        return compareDeep(system, o.system, true) && compareDeep(version, o.version, true) && compareDeep(concept, o.concept, true)
1042           && compareDeep(filter, o.filter, true) && compareDeep(valueSet, o.valueSet, true);
1043      }
1044
1045      @Override
1046      public boolean equalsShallow(Base other_) {
1047        if (!super.equalsShallow(other_))
1048          return false;
1049        if (!(other_ instanceof ConceptSetComponent))
1050          return false;
1051        ConceptSetComponent o = (ConceptSetComponent) other_;
1052        return compareValues(system, o.system, true) && compareValues(version, o.version, true) && compareValues(valueSet, o.valueSet, true)
1053          ;
1054      }
1055
1056      public boolean isEmpty() {
1057        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(system, version, concept
1058          , filter, valueSet);
1059      }
1060
1061  public String fhirType() {
1062    return "ValueSet.compose.include";
1063
1064  }
1065
1066  }
1067
1068    @Block()
1069    public static class ConceptReferenceComponent extends BackboneElement implements IBaseBackboneElement {
1070        /**
1071         * Specifies a code for the concept to be included or excluded.
1072         */
1073        @Child(name = "code", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false)
1074        @Description(shortDefinition="Code or expression from system", formalDefinition="Specifies a code for the concept to be included or excluded." )
1075        protected CodeType code;
1076
1077        /**
1078         * The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system.
1079         */
1080        @Child(name = "display", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false)
1081        @Description(shortDefinition="Text to display for this code for this value set in this valueset", formalDefinition="The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system." )
1082        protected StringType display;
1083
1084        /**
1085         * Additional representations for this concept when used in this value set - other languages, aliases, specialized purposes, used for particular purposes, etc.
1086         */
1087        @Child(name = "designation", type = {}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1088        @Description(shortDefinition="Additional representations for this concept", formalDefinition="Additional representations for this concept when used in this value set - other languages, aliases, specialized purposes, used for particular purposes, etc." )
1089        protected List<ConceptReferenceDesignationComponent> designation;
1090
1091        private static final long serialVersionUID = 260579971L;
1092
1093    /**
1094     * Constructor
1095     */
1096      public ConceptReferenceComponent() {
1097        super();
1098      }
1099
1100    /**
1101     * Constructor
1102     */
1103      public ConceptReferenceComponent(String code) {
1104        super();
1105        this.setCode(code);
1106      }
1107
1108        /**
1109         * @return {@link #code} (Specifies a code for the concept to be included or excluded.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
1110         */
1111        public CodeType getCodeElement() { 
1112          if (this.code == null)
1113            if (Configuration.errorOnAutoCreate())
1114              throw new Error("Attempt to auto-create ConceptReferenceComponent.code");
1115            else if (Configuration.doAutoCreate())
1116              this.code = new CodeType(); // bb
1117          return this.code;
1118        }
1119
1120        public boolean hasCodeElement() { 
1121          return this.code != null && !this.code.isEmpty();
1122        }
1123
1124        public boolean hasCode() { 
1125          return this.code != null && !this.code.isEmpty();
1126        }
1127
1128        /**
1129         * @param value {@link #code} (Specifies a code for the concept to be included or excluded.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
1130         */
1131        public ConceptReferenceComponent setCodeElement(CodeType value) { 
1132          this.code = value;
1133          return this;
1134        }
1135
1136        /**
1137         * @return Specifies a code for the concept to be included or excluded.
1138         */
1139        public String getCode() { 
1140          return this.code == null ? null : this.code.getValue();
1141        }
1142
1143        /**
1144         * @param value Specifies a code for the concept to be included or excluded.
1145         */
1146        public ConceptReferenceComponent setCode(String value) { 
1147            if (this.code == null)
1148              this.code = new CodeType();
1149            this.code.setValue(value);
1150          return this;
1151        }
1152
1153        /**
1154         * @return {@link #display} (The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system.). This is the underlying object with id, value and extensions. The accessor "getDisplay" gives direct access to the value
1155         */
1156        public StringType getDisplayElement() { 
1157          if (this.display == null)
1158            if (Configuration.errorOnAutoCreate())
1159              throw new Error("Attempt to auto-create ConceptReferenceComponent.display");
1160            else if (Configuration.doAutoCreate())
1161              this.display = new StringType(); // bb
1162          return this.display;
1163        }
1164
1165        public boolean hasDisplayElement() { 
1166          return this.display != null && !this.display.isEmpty();
1167        }
1168
1169        public boolean hasDisplay() { 
1170          return this.display != null && !this.display.isEmpty();
1171        }
1172
1173        /**
1174         * @param value {@link #display} (The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system.). This is the underlying object with id, value and extensions. The accessor "getDisplay" gives direct access to the value
1175         */
1176        public ConceptReferenceComponent setDisplayElement(StringType value) { 
1177          this.display = value;
1178          return this;
1179        }
1180
1181        /**
1182         * @return The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system.
1183         */
1184        public String getDisplay() { 
1185          return this.display == null ? null : this.display.getValue();
1186        }
1187
1188        /**
1189         * @param value The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system.
1190         */
1191        public ConceptReferenceComponent setDisplay(String value) { 
1192          if (Utilities.noString(value))
1193            this.display = null;
1194          else {
1195            if (this.display == null)
1196              this.display = new StringType();
1197            this.display.setValue(value);
1198          }
1199          return this;
1200        }
1201
1202        /**
1203         * @return {@link #designation} (Additional representations for this concept when used in this value set - other languages, aliases, specialized purposes, used for particular purposes, etc.)
1204         */
1205        public List<ConceptReferenceDesignationComponent> getDesignation() { 
1206          if (this.designation == null)
1207            this.designation = new ArrayList<ConceptReferenceDesignationComponent>();
1208          return this.designation;
1209        }
1210
1211        /**
1212         * @return Returns a reference to <code>this</code> for easy method chaining
1213         */
1214        public ConceptReferenceComponent setDesignation(List<ConceptReferenceDesignationComponent> theDesignation) { 
1215          this.designation = theDesignation;
1216          return this;
1217        }
1218
1219        public boolean hasDesignation() { 
1220          if (this.designation == null)
1221            return false;
1222          for (ConceptReferenceDesignationComponent item : this.designation)
1223            if (!item.isEmpty())
1224              return true;
1225          return false;
1226        }
1227
1228        public ConceptReferenceDesignationComponent addDesignation() { //3
1229          ConceptReferenceDesignationComponent t = new ConceptReferenceDesignationComponent();
1230          if (this.designation == null)
1231            this.designation = new ArrayList<ConceptReferenceDesignationComponent>();
1232          this.designation.add(t);
1233          return t;
1234        }
1235
1236        public ConceptReferenceComponent addDesignation(ConceptReferenceDesignationComponent t) { //3
1237          if (t == null)
1238            return this;
1239          if (this.designation == null)
1240            this.designation = new ArrayList<ConceptReferenceDesignationComponent>();
1241          this.designation.add(t);
1242          return this;
1243        }
1244
1245        /**
1246         * @return The first repetition of repeating field {@link #designation}, creating it if it does not already exist {3}
1247         */
1248        public ConceptReferenceDesignationComponent getDesignationFirstRep() { 
1249          if (getDesignation().isEmpty()) {
1250            addDesignation();
1251          }
1252          return getDesignation().get(0);
1253        }
1254
1255        protected void listChildren(List<Property> children) {
1256          super.listChildren(children);
1257          children.add(new Property("code", "code", "Specifies a code for the concept to be included or excluded.", 0, 1, code));
1258          children.add(new Property("display", "string", "The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system.", 0, 1, display));
1259          children.add(new Property("designation", "", "Additional representations for this concept when used in this value set - other languages, aliases, specialized purposes, used for particular purposes, etc.", 0, java.lang.Integer.MAX_VALUE, designation));
1260        }
1261
1262        @Override
1263        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
1264          switch (_hash) {
1265          case 3059181: /*code*/  return new Property("code", "code", "Specifies a code for the concept to be included or excluded.", 0, 1, code);
1266          case 1671764162: /*display*/  return new Property("display", "string", "The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system.", 0, 1, display);
1267          case -900931593: /*designation*/  return new Property("designation", "", "Additional representations for this concept when used in this value set - other languages, aliases, specialized purposes, used for particular purposes, etc.", 0, java.lang.Integer.MAX_VALUE, designation);
1268          default: return super.getNamedProperty(_hash, _name, _checkValid);
1269          }
1270
1271        }
1272
1273      @Override
1274      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
1275        switch (hash) {
1276        case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeType
1277        case 1671764162: /*display*/ return this.display == null ? new Base[0] : new Base[] {this.display}; // StringType
1278        case -900931593: /*designation*/ return this.designation == null ? new Base[0] : this.designation.toArray(new Base[this.designation.size()]); // ConceptReferenceDesignationComponent
1279        default: return super.getProperty(hash, name, checkValid);
1280        }
1281
1282      }
1283
1284      @Override
1285      public Base setProperty(int hash, String name, Base value) throws FHIRException {
1286        switch (hash) {
1287        case 3059181: // code
1288          this.code = TypeConvertor.castToCode(value); // CodeType
1289          return value;
1290        case 1671764162: // display
1291          this.display = TypeConvertor.castToString(value); // StringType
1292          return value;
1293        case -900931593: // designation
1294          this.getDesignation().add((ConceptReferenceDesignationComponent) value); // ConceptReferenceDesignationComponent
1295          return value;
1296        default: return super.setProperty(hash, name, value);
1297        }
1298
1299      }
1300
1301      @Override
1302      public Base setProperty(String name, Base value) throws FHIRException {
1303        if (name.equals("code")) {
1304          this.code = TypeConvertor.castToCode(value); // CodeType
1305        } else if (name.equals("display")) {
1306          this.display = TypeConvertor.castToString(value); // StringType
1307        } else if (name.equals("designation")) {
1308          this.getDesignation().add((ConceptReferenceDesignationComponent) value);
1309        } else
1310          return super.setProperty(name, value);
1311        return value;
1312      }
1313
1314      @Override
1315      public Base makeProperty(int hash, String name) throws FHIRException {
1316        switch (hash) {
1317        case 3059181:  return getCodeElement();
1318        case 1671764162:  return getDisplayElement();
1319        case -900931593:  return addDesignation(); 
1320        default: return super.makeProperty(hash, name);
1321        }
1322
1323      }
1324
1325      @Override
1326      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
1327        switch (hash) {
1328        case 3059181: /*code*/ return new String[] {"code"};
1329        case 1671764162: /*display*/ return new String[] {"string"};
1330        case -900931593: /*designation*/ return new String[] {};
1331        default: return super.getTypesForProperty(hash, name);
1332        }
1333
1334      }
1335
1336      @Override
1337      public Base addChild(String name) throws FHIRException {
1338        if (name.equals("code")) {
1339          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.concept.code");
1340        }
1341        else if (name.equals("display")) {
1342          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.concept.display");
1343        }
1344        else if (name.equals("designation")) {
1345          return addDesignation();
1346        }
1347        else
1348          return super.addChild(name);
1349      }
1350
1351      public ConceptReferenceComponent copy() {
1352        ConceptReferenceComponent dst = new ConceptReferenceComponent();
1353        copyValues(dst);
1354        return dst;
1355      }
1356
1357      public void copyValues(ConceptReferenceComponent dst) {
1358        super.copyValues(dst);
1359        dst.code = code == null ? null : code.copy();
1360        dst.display = display == null ? null : display.copy();
1361        if (designation != null) {
1362          dst.designation = new ArrayList<ConceptReferenceDesignationComponent>();
1363          for (ConceptReferenceDesignationComponent i : designation)
1364            dst.designation.add(i.copy());
1365        };
1366      }
1367
1368      @Override
1369      public boolean equalsDeep(Base other_) {
1370        if (!super.equalsDeep(other_))
1371          return false;
1372        if (!(other_ instanceof ConceptReferenceComponent))
1373          return false;
1374        ConceptReferenceComponent o = (ConceptReferenceComponent) other_;
1375        return compareDeep(code, o.code, true) && compareDeep(display, o.display, true) && compareDeep(designation, o.designation, true)
1376          ;
1377      }
1378
1379      @Override
1380      public boolean equalsShallow(Base other_) {
1381        if (!super.equalsShallow(other_))
1382          return false;
1383        if (!(other_ instanceof ConceptReferenceComponent))
1384          return false;
1385        ConceptReferenceComponent o = (ConceptReferenceComponent) other_;
1386        return compareValues(code, o.code, true) && compareValues(display, o.display, true);
1387      }
1388
1389      public boolean isEmpty() {
1390        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, display, designation
1391          );
1392      }
1393
1394  public String fhirType() {
1395    return "ValueSet.compose.include.concept";
1396
1397  }
1398
1399  }
1400
1401    @Block()
1402    public static class ConceptReferenceDesignationComponent extends BackboneElement implements IBaseBackboneElement {
1403        /**
1404         * The language this designation is defined for.
1405         */
1406        @Child(name = "language", type = {CodeType.class}, order=1, min=0, max=1, modifier=false, summary=false)
1407        @Description(shortDefinition="Human language of the designation", formalDefinition="The language this designation is defined for." )
1408        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/languages")
1409        protected CodeType language;
1410
1411        /**
1412         * A code that represents types of uses of designations.
1413         */
1414        @Child(name = "use", type = {Coding.class}, order=2, min=0, max=1, modifier=false, summary=false)
1415        @Description(shortDefinition="Types of uses of designations", formalDefinition="A code that represents types of uses of designations." )
1416        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/designation-use")
1417        protected Coding use;
1418
1419        /**
1420         * The text value for this designation.
1421         */
1422        @Child(name = "value", type = {StringType.class}, order=3, min=1, max=1, modifier=false, summary=false)
1423        @Description(shortDefinition="The text value for this designation", formalDefinition="The text value for this designation." )
1424        protected StringType value;
1425
1426        private static final long serialVersionUID = 1515662414L;
1427
1428    /**
1429     * Constructor
1430     */
1431      public ConceptReferenceDesignationComponent() {
1432        super();
1433      }
1434
1435    /**
1436     * Constructor
1437     */
1438      public ConceptReferenceDesignationComponent(String value) {
1439        super();
1440        this.setValue(value);
1441      }
1442
1443        /**
1444         * @return {@link #language} (The language this designation is defined for.). This is the underlying object with id, value and extensions. The accessor "getLanguage" gives direct access to the value
1445         */
1446        public CodeType getLanguageElement() { 
1447          if (this.language == null)
1448            if (Configuration.errorOnAutoCreate())
1449              throw new Error("Attempt to auto-create ConceptReferenceDesignationComponent.language");
1450            else if (Configuration.doAutoCreate())
1451              this.language = new CodeType(); // bb
1452          return this.language;
1453        }
1454
1455        public boolean hasLanguageElement() { 
1456          return this.language != null && !this.language.isEmpty();
1457        }
1458
1459        public boolean hasLanguage() { 
1460          return this.language != null && !this.language.isEmpty();
1461        }
1462
1463        /**
1464         * @param value {@link #language} (The language this designation is defined for.). This is the underlying object with id, value and extensions. The accessor "getLanguage" gives direct access to the value
1465         */
1466        public ConceptReferenceDesignationComponent setLanguageElement(CodeType value) { 
1467          this.language = value;
1468          return this;
1469        }
1470
1471        /**
1472         * @return The language this designation is defined for.
1473         */
1474        public String getLanguage() { 
1475          return this.language == null ? null : this.language.getValue();
1476        }
1477
1478        /**
1479         * @param value The language this designation is defined for.
1480         */
1481        public ConceptReferenceDesignationComponent setLanguage(String value) { 
1482          if (Utilities.noString(value))
1483            this.language = null;
1484          else {
1485            if (this.language == null)
1486              this.language = new CodeType();
1487            this.language.setValue(value);
1488          }
1489          return this;
1490        }
1491
1492        /**
1493         * @return {@link #use} (A code that represents types of uses of designations.)
1494         */
1495        public Coding getUse() { 
1496          if (this.use == null)
1497            if (Configuration.errorOnAutoCreate())
1498              throw new Error("Attempt to auto-create ConceptReferenceDesignationComponent.use");
1499            else if (Configuration.doAutoCreate())
1500              this.use = new Coding(); // cc
1501          return this.use;
1502        }
1503
1504        public boolean hasUse() { 
1505          return this.use != null && !this.use.isEmpty();
1506        }
1507
1508        /**
1509         * @param value {@link #use} (A code that represents types of uses of designations.)
1510         */
1511        public ConceptReferenceDesignationComponent setUse(Coding value) { 
1512          this.use = value;
1513          return this;
1514        }
1515
1516        /**
1517         * @return {@link #value} (The text value for this designation.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value
1518         */
1519        public StringType getValueElement() { 
1520          if (this.value == null)
1521            if (Configuration.errorOnAutoCreate())
1522              throw new Error("Attempt to auto-create ConceptReferenceDesignationComponent.value");
1523            else if (Configuration.doAutoCreate())
1524              this.value = new StringType(); // bb
1525          return this.value;
1526        }
1527
1528        public boolean hasValueElement() { 
1529          return this.value != null && !this.value.isEmpty();
1530        }
1531
1532        public boolean hasValue() { 
1533          return this.value != null && !this.value.isEmpty();
1534        }
1535
1536        /**
1537         * @param value {@link #value} (The text value for this designation.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value
1538         */
1539        public ConceptReferenceDesignationComponent setValueElement(StringType value) { 
1540          this.value = value;
1541          return this;
1542        }
1543
1544        /**
1545         * @return The text value for this designation.
1546         */
1547        public String getValue() { 
1548          return this.value == null ? null : this.value.getValue();
1549        }
1550
1551        /**
1552         * @param value The text value for this designation.
1553         */
1554        public ConceptReferenceDesignationComponent setValue(String value) { 
1555            if (this.value == null)
1556              this.value = new StringType();
1557            this.value.setValue(value);
1558          return this;
1559        }
1560
1561        protected void listChildren(List<Property> children) {
1562          super.listChildren(children);
1563          children.add(new Property("language", "code", "The language this designation is defined for.", 0, 1, language));
1564          children.add(new Property("use", "Coding", "A code that represents types of uses of designations.", 0, 1, use));
1565          children.add(new Property("value", "string", "The text value for this designation.", 0, 1, value));
1566        }
1567
1568        @Override
1569        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
1570          switch (_hash) {
1571          case -1613589672: /*language*/  return new Property("language", "code", "The language this designation is defined for.", 0, 1, language);
1572          case 116103: /*use*/  return new Property("use", "Coding", "A code that represents types of uses of designations.", 0, 1, use);
1573          case 111972721: /*value*/  return new Property("value", "string", "The text value for this designation.", 0, 1, value);
1574          default: return super.getNamedProperty(_hash, _name, _checkValid);
1575          }
1576
1577        }
1578
1579      @Override
1580      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
1581        switch (hash) {
1582        case -1613589672: /*language*/ return this.language == null ? new Base[0] : new Base[] {this.language}; // CodeType
1583        case 116103: /*use*/ return this.use == null ? new Base[0] : new Base[] {this.use}; // Coding
1584        case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // StringType
1585        default: return super.getProperty(hash, name, checkValid);
1586        }
1587
1588      }
1589
1590      @Override
1591      public Base setProperty(int hash, String name, Base value) throws FHIRException {
1592        switch (hash) {
1593        case -1613589672: // language
1594          this.language = TypeConvertor.castToCode(value); // CodeType
1595          return value;
1596        case 116103: // use
1597          this.use = TypeConvertor.castToCoding(value); // Coding
1598          return value;
1599        case 111972721: // value
1600          this.value = TypeConvertor.castToString(value); // StringType
1601          return value;
1602        default: return super.setProperty(hash, name, value);
1603        }
1604
1605      }
1606
1607      @Override
1608      public Base setProperty(String name, Base value) throws FHIRException {
1609        if (name.equals("language")) {
1610          this.language = TypeConvertor.castToCode(value); // CodeType
1611        } else if (name.equals("use")) {
1612          this.use = TypeConvertor.castToCoding(value); // Coding
1613        } else if (name.equals("value")) {
1614          this.value = TypeConvertor.castToString(value); // StringType
1615        } else
1616          return super.setProperty(name, value);
1617        return value;
1618      }
1619
1620      @Override
1621      public Base makeProperty(int hash, String name) throws FHIRException {
1622        switch (hash) {
1623        case -1613589672:  return getLanguageElement();
1624        case 116103:  return getUse();
1625        case 111972721:  return getValueElement();
1626        default: return super.makeProperty(hash, name);
1627        }
1628
1629      }
1630
1631      @Override
1632      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
1633        switch (hash) {
1634        case -1613589672: /*language*/ return new String[] {"code"};
1635        case 116103: /*use*/ return new String[] {"Coding"};
1636        case 111972721: /*value*/ return new String[] {"string"};
1637        default: return super.getTypesForProperty(hash, name);
1638        }
1639
1640      }
1641
1642      @Override
1643      public Base addChild(String name) throws FHIRException {
1644        if (name.equals("language")) {
1645          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.concept.designation.language");
1646        }
1647        else if (name.equals("use")) {
1648          this.use = new Coding();
1649          return this.use;
1650        }
1651        else if (name.equals("value")) {
1652          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.concept.designation.value");
1653        }
1654        else
1655          return super.addChild(name);
1656      }
1657
1658      public ConceptReferenceDesignationComponent copy() {
1659        ConceptReferenceDesignationComponent dst = new ConceptReferenceDesignationComponent();
1660        copyValues(dst);
1661        return dst;
1662      }
1663
1664      public void copyValues(ConceptReferenceDesignationComponent dst) {
1665        super.copyValues(dst);
1666        dst.language = language == null ? null : language.copy();
1667        dst.use = use == null ? null : use.copy();
1668        dst.value = value == null ? null : value.copy();
1669      }
1670
1671      @Override
1672      public boolean equalsDeep(Base other_) {
1673        if (!super.equalsDeep(other_))
1674          return false;
1675        if (!(other_ instanceof ConceptReferenceDesignationComponent))
1676          return false;
1677        ConceptReferenceDesignationComponent o = (ConceptReferenceDesignationComponent) other_;
1678        return compareDeep(language, o.language, true) && compareDeep(use, o.use, true) && compareDeep(value, o.value, true)
1679          ;
1680      }
1681
1682      @Override
1683      public boolean equalsShallow(Base other_) {
1684        if (!super.equalsShallow(other_))
1685          return false;
1686        if (!(other_ instanceof ConceptReferenceDesignationComponent))
1687          return false;
1688        ConceptReferenceDesignationComponent o = (ConceptReferenceDesignationComponent) other_;
1689        return compareValues(language, o.language, true) && compareValues(value, o.value, true);
1690      }
1691
1692      public boolean isEmpty() {
1693        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(language, use, value);
1694      }
1695
1696  public String fhirType() {
1697    return "ValueSet.compose.include.concept.designation";
1698
1699  }
1700
1701  }
1702
1703    @Block()
1704    public static class ConceptSetFilterComponent extends BackboneElement implements IBaseBackboneElement {
1705        /**
1706         * A code that identifies a property or a filter defined in the code system.
1707         */
1708        @Child(name = "property", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=true)
1709        @Description(shortDefinition="A property/filter defined by the code system", formalDefinition="A code that identifies a property or a filter defined in the code system." )
1710        protected CodeType property;
1711
1712        /**
1713         * The kind of operation to perform as a part of the filter criteria.
1714         */
1715        @Child(name = "op", type = {CodeType.class}, order=2, min=1, max=1, modifier=false, summary=true)
1716        @Description(shortDefinition="= | is-a | descendent-of | is-not-a | regex | in | not-in | generalizes | exists", formalDefinition="The kind of operation to perform as a part of the filter criteria." )
1717        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/filter-operator")
1718        protected Enumeration<FilterOperator> op;
1719
1720        /**
1721         * The match value may be either a code defined by the system, or a string value, which is a regex match on the literal string of the property value  (if the filter represents a property defined in CodeSystem) or of the system filter value (if the filter represents a filter defined in CodeSystem) when the operation is 'regex', or one of the values (true and false), when the operation is 'exists'.
1722         */
1723        @Child(name = "value", type = {StringType.class}, order=3, min=1, max=1, modifier=false, summary=true)
1724        @Description(shortDefinition="Code from the system, or regex criteria, or boolean value for exists", formalDefinition="The match value may be either a code defined by the system, or a string value, which is a regex match on the literal string of the property value  (if the filter represents a property defined in CodeSystem) or of the system filter value (if the filter represents a filter defined in CodeSystem) when the operation is 'regex', or one of the values (true and false), when the operation is 'exists'." )
1725        protected StringType value;
1726
1727        private static final long serialVersionUID = 1259153492L;
1728
1729    /**
1730     * Constructor
1731     */
1732      public ConceptSetFilterComponent() {
1733        super();
1734      }
1735
1736    /**
1737     * Constructor
1738     */
1739      public ConceptSetFilterComponent(String property, FilterOperator op, String value) {
1740        super();
1741        this.setProperty(property);
1742        this.setOp(op);
1743        this.setValue(value);
1744      }
1745
1746        /**
1747         * @return {@link #property} (A code that identifies a property or a filter defined in the code system.). This is the underlying object with id, value and extensions. The accessor "getProperty" gives direct access to the value
1748         */
1749        public CodeType getPropertyElement() { 
1750          if (this.property == null)
1751            if (Configuration.errorOnAutoCreate())
1752              throw new Error("Attempt to auto-create ConceptSetFilterComponent.property");
1753            else if (Configuration.doAutoCreate())
1754              this.property = new CodeType(); // bb
1755          return this.property;
1756        }
1757
1758        public boolean hasPropertyElement() { 
1759          return this.property != null && !this.property.isEmpty();
1760        }
1761
1762        public boolean hasProperty() { 
1763          return this.property != null && !this.property.isEmpty();
1764        }
1765
1766        /**
1767         * @param value {@link #property} (A code that identifies a property or a filter defined in the code system.). This is the underlying object with id, value and extensions. The accessor "getProperty" gives direct access to the value
1768         */
1769        public ConceptSetFilterComponent setPropertyElement(CodeType value) { 
1770          this.property = value;
1771          return this;
1772        }
1773
1774        /**
1775         * @return A code that identifies a property or a filter defined in the code system.
1776         */
1777        public String getProperty() { 
1778          return this.property == null ? null : this.property.getValue();
1779        }
1780
1781        /**
1782         * @param value A code that identifies a property or a filter defined in the code system.
1783         */
1784        public ConceptSetFilterComponent setProperty(String value) { 
1785            if (this.property == null)
1786              this.property = new CodeType();
1787            this.property.setValue(value);
1788          return this;
1789        }
1790
1791        /**
1792         * @return {@link #op} (The kind of operation to perform as a part of the filter criteria.). This is the underlying object with id, value and extensions. The accessor "getOp" gives direct access to the value
1793         */
1794        public Enumeration<FilterOperator> getOpElement() { 
1795          if (this.op == null)
1796            if (Configuration.errorOnAutoCreate())
1797              throw new Error("Attempt to auto-create ConceptSetFilterComponent.op");
1798            else if (Configuration.doAutoCreate())
1799              this.op = new Enumeration<FilterOperator>(new FilterOperatorEnumFactory()); // bb
1800          return this.op;
1801        }
1802
1803        public boolean hasOpElement() { 
1804          return this.op != null && !this.op.isEmpty();
1805        }
1806
1807        public boolean hasOp() { 
1808          return this.op != null && !this.op.isEmpty();
1809        }
1810
1811        /**
1812         * @param value {@link #op} (The kind of operation to perform as a part of the filter criteria.). This is the underlying object with id, value and extensions. The accessor "getOp" gives direct access to the value
1813         */
1814        public ConceptSetFilterComponent setOpElement(Enumeration<FilterOperator> value) { 
1815          this.op = value;
1816          return this;
1817        }
1818
1819        /**
1820         * @return The kind of operation to perform as a part of the filter criteria.
1821         */
1822        public FilterOperator getOp() { 
1823          return this.op == null ? null : this.op.getValue();
1824        }
1825
1826        /**
1827         * @param value The kind of operation to perform as a part of the filter criteria.
1828         */
1829        public ConceptSetFilterComponent setOp(FilterOperator value) { 
1830            if (this.op == null)
1831              this.op = new Enumeration<FilterOperator>(new FilterOperatorEnumFactory());
1832            this.op.setValue(value);
1833          return this;
1834        }
1835
1836        /**
1837         * @return {@link #value} (The match value may be either a code defined by the system, or a string value, which is a regex match on the literal string of the property value  (if the filter represents a property defined in CodeSystem) or of the system filter value (if the filter represents a filter defined in CodeSystem) when the operation is 'regex', or one of the values (true and false), when the operation is 'exists'.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value
1838         */
1839        public StringType getValueElement() { 
1840          if (this.value == null)
1841            if (Configuration.errorOnAutoCreate())
1842              throw new Error("Attempt to auto-create ConceptSetFilterComponent.value");
1843            else if (Configuration.doAutoCreate())
1844              this.value = new StringType(); // bb
1845          return this.value;
1846        }
1847
1848        public boolean hasValueElement() { 
1849          return this.value != null && !this.value.isEmpty();
1850        }
1851
1852        public boolean hasValue() { 
1853          return this.value != null && !this.value.isEmpty();
1854        }
1855
1856        /**
1857         * @param value {@link #value} (The match value may be either a code defined by the system, or a string value, which is a regex match on the literal string of the property value  (if the filter represents a property defined in CodeSystem) or of the system filter value (if the filter represents a filter defined in CodeSystem) when the operation is 'regex', or one of the values (true and false), when the operation is 'exists'.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value
1858         */
1859        public ConceptSetFilterComponent setValueElement(StringType value) { 
1860          this.value = value;
1861          return this;
1862        }
1863
1864        /**
1865         * @return The match value may be either a code defined by the system, or a string value, which is a regex match on the literal string of the property value  (if the filter represents a property defined in CodeSystem) or of the system filter value (if the filter represents a filter defined in CodeSystem) when the operation is 'regex', or one of the values (true and false), when the operation is 'exists'.
1866         */
1867        public String getValue() { 
1868          return this.value == null ? null : this.value.getValue();
1869        }
1870
1871        /**
1872         * @param value The match value may be either a code defined by the system, or a string value, which is a regex match on the literal string of the property value  (if the filter represents a property defined in CodeSystem) or of the system filter value (if the filter represents a filter defined in CodeSystem) when the operation is 'regex', or one of the values (true and false), when the operation is 'exists'.
1873         */
1874        public ConceptSetFilterComponent setValue(String value) { 
1875            if (this.value == null)
1876              this.value = new StringType();
1877            this.value.setValue(value);
1878          return this;
1879        }
1880
1881        protected void listChildren(List<Property> children) {
1882          super.listChildren(children);
1883          children.add(new Property("property", "code", "A code that identifies a property or a filter defined in the code system.", 0, 1, property));
1884          children.add(new Property("op", "code", "The kind of operation to perform as a part of the filter criteria.", 0, 1, op));
1885          children.add(new Property("value", "string", "The match value may be either a code defined by the system, or a string value, which is a regex match on the literal string of the property value  (if the filter represents a property defined in CodeSystem) or of the system filter value (if the filter represents a filter defined in CodeSystem) when the operation is 'regex', or one of the values (true and false), when the operation is 'exists'.", 0, 1, value));
1886        }
1887
1888        @Override
1889        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
1890          switch (_hash) {
1891          case -993141291: /*property*/  return new Property("property", "code", "A code that identifies a property or a filter defined in the code system.", 0, 1, property);
1892          case 3553: /*op*/  return new Property("op", "code", "The kind of operation to perform as a part of the filter criteria.", 0, 1, op);
1893          case 111972721: /*value*/  return new Property("value", "string", "The match value may be either a code defined by the system, or a string value, which is a regex match on the literal string of the property value  (if the filter represents a property defined in CodeSystem) or of the system filter value (if the filter represents a filter defined in CodeSystem) when the operation is 'regex', or one of the values (true and false), when the operation is 'exists'.", 0, 1, value);
1894          default: return super.getNamedProperty(_hash, _name, _checkValid);
1895          }
1896
1897        }
1898
1899      @Override
1900      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
1901        switch (hash) {
1902        case -993141291: /*property*/ return this.property == null ? new Base[0] : new Base[] {this.property}; // CodeType
1903        case 3553: /*op*/ return this.op == null ? new Base[0] : new Base[] {this.op}; // Enumeration<FilterOperator>
1904        case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // StringType
1905        default: return super.getProperty(hash, name, checkValid);
1906        }
1907
1908      }
1909
1910      @Override
1911      public Base setProperty(int hash, String name, Base value) throws FHIRException {
1912        switch (hash) {
1913        case -993141291: // property
1914          this.property = TypeConvertor.castToCode(value); // CodeType
1915          return value;
1916        case 3553: // op
1917          value = new FilterOperatorEnumFactory().fromType(TypeConvertor.castToCode(value));
1918          this.op = (Enumeration) value; // Enumeration<FilterOperator>
1919          return value;
1920        case 111972721: // value
1921          this.value = TypeConvertor.castToString(value); // StringType
1922          return value;
1923        default: return super.setProperty(hash, name, value);
1924        }
1925
1926      }
1927
1928      @Override
1929      public Base setProperty(String name, Base value) throws FHIRException {
1930        if (name.equals("property")) {
1931          this.property = TypeConvertor.castToCode(value); // CodeType
1932        } else if (name.equals("op")) {
1933          value = new FilterOperatorEnumFactory().fromType(TypeConvertor.castToCode(value));
1934          this.op = (Enumeration) value; // Enumeration<FilterOperator>
1935        } else if (name.equals("value")) {
1936          this.value = TypeConvertor.castToString(value); // StringType
1937        } else
1938          return super.setProperty(name, value);
1939        return value;
1940      }
1941
1942      @Override
1943      public Base makeProperty(int hash, String name) throws FHIRException {
1944        switch (hash) {
1945        case -993141291:  return getPropertyElement();
1946        case 3553:  return getOpElement();
1947        case 111972721:  return getValueElement();
1948        default: return super.makeProperty(hash, name);
1949        }
1950
1951      }
1952
1953      @Override
1954      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
1955        switch (hash) {
1956        case -993141291: /*property*/ return new String[] {"code"};
1957        case 3553: /*op*/ return new String[] {"code"};
1958        case 111972721: /*value*/ return new String[] {"string"};
1959        default: return super.getTypesForProperty(hash, name);
1960        }
1961
1962      }
1963
1964      @Override
1965      public Base addChild(String name) throws FHIRException {
1966        if (name.equals("property")) {
1967          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.filter.property");
1968        }
1969        else if (name.equals("op")) {
1970          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.filter.op");
1971        }
1972        else if (name.equals("value")) {
1973          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.filter.value");
1974        }
1975        else
1976          return super.addChild(name);
1977      }
1978
1979      public ConceptSetFilterComponent copy() {
1980        ConceptSetFilterComponent dst = new ConceptSetFilterComponent();
1981        copyValues(dst);
1982        return dst;
1983      }
1984
1985      public void copyValues(ConceptSetFilterComponent dst) {
1986        super.copyValues(dst);
1987        dst.property = property == null ? null : property.copy();
1988        dst.op = op == null ? null : op.copy();
1989        dst.value = value == null ? null : value.copy();
1990      }
1991
1992      @Override
1993      public boolean equalsDeep(Base other_) {
1994        if (!super.equalsDeep(other_))
1995          return false;
1996        if (!(other_ instanceof ConceptSetFilterComponent))
1997          return false;
1998        ConceptSetFilterComponent o = (ConceptSetFilterComponent) other_;
1999        return compareDeep(property, o.property, true) && compareDeep(op, o.op, true) && compareDeep(value, o.value, true)
2000          ;
2001      }
2002
2003      @Override
2004      public boolean equalsShallow(Base other_) {
2005        if (!super.equalsShallow(other_))
2006          return false;
2007        if (!(other_ instanceof ConceptSetFilterComponent))
2008          return false;
2009        ConceptSetFilterComponent o = (ConceptSetFilterComponent) other_;
2010        return compareValues(property, o.property, true) && compareValues(op, o.op, true) && compareValues(value, o.value, true)
2011          ;
2012      }
2013
2014      public boolean isEmpty() {
2015        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(property, op, value);
2016      }
2017
2018  public String fhirType() {
2019    return "ValueSet.compose.include.filter";
2020
2021  }
2022
2023  }
2024
2025    @Block()
2026    public static class ValueSetExpansionComponent extends BackboneElement implements IBaseBackboneElement {
2027        /**
2028         * An identifier that uniquely identifies this expansion of the valueset, based on a unique combination of the provided parameters, the system default parameters, and the underlying system code system versions etc. Systems may re-use the same identifier as long as those factors remain the same, and the expansion is the same, but are not required to do so. This is a business identifier.
2029         */
2030        @Child(name = "identifier", type = {UriType.class}, order=1, min=0, max=1, modifier=false, summary=false)
2031        @Description(shortDefinition="Identifies the value set expansion (business identifier)", formalDefinition="An identifier that uniquely identifies this expansion of the valueset, based on a unique combination of the provided parameters, the system default parameters, and the underlying system code system versions etc. Systems may re-use the same identifier as long as those factors remain the same, and the expansion is the same, but are not required to do so. This is a business identifier." )
2032        protected UriType identifier;
2033
2034        /**
2035         * The time at which the expansion was produced by the expanding system.
2036         */
2037        @Child(name = "timestamp", type = {DateTimeType.class}, order=2, min=1, max=1, modifier=false, summary=false)
2038        @Description(shortDefinition="Time ValueSet expansion happened", formalDefinition="The time at which the expansion was produced by the expanding system." )
2039        protected DateTimeType timestamp;
2040
2041        /**
2042         * The total number of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter.
2043         */
2044        @Child(name = "total", type = {IntegerType.class}, order=3, min=0, max=1, modifier=false, summary=false)
2045        @Description(shortDefinition="Total number of codes in the expansion", formalDefinition="The total number of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter." )
2046        protected IntegerType total;
2047
2048        /**
2049         * If paging is being used, the offset at which this resource starts.  I.e. this resource is a partial view into the expansion. If paging is not being used, this element SHALL NOT be present.
2050         */
2051        @Child(name = "offset", type = {IntegerType.class}, order=4, min=0, max=1, modifier=false, summary=false)
2052        @Description(shortDefinition="Offset at which this resource starts", formalDefinition="If paging is being used, the offset at which this resource starts.  I.e. this resource is a partial view into the expansion. If paging is not being used, this element SHALL NOT be present." )
2053        protected IntegerType offset;
2054
2055        /**
2056         * A parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion.
2057         */
2058        @Child(name = "parameter", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
2059        @Description(shortDefinition="Parameter that controlled the expansion process", formalDefinition="A parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion." )
2060        protected List<ValueSetExpansionParameterComponent> parameter;
2061
2062        /**
2063         * A property defines an additional slot through which additional information can be provided about a concept.
2064         */
2065        @Child(name = "property", type = {}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
2066        @Description(shortDefinition="Additional information supplied about each concept", formalDefinition="A property defines an additional slot through which additional information can be provided about a concept." )
2067        protected List<ValueSetExpansionPropertyComponent> property;
2068
2069        /**
2070         * The codes that are contained in the value set expansion.
2071         */
2072        @Child(name = "contains", type = {}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
2073        @Description(shortDefinition="Codes in the value set", formalDefinition="The codes that are contained in the value set expansion." )
2074        protected List<ValueSetExpansionContainsComponent> contains;
2075
2076        private static final long serialVersionUID = 12372258L;
2077
2078    /**
2079     * Constructor
2080     */
2081      public ValueSetExpansionComponent() {
2082        super();
2083      }
2084
2085    /**
2086     * Constructor
2087     */
2088      public ValueSetExpansionComponent(Date timestamp) {
2089        super();
2090        this.setTimestamp(timestamp);
2091      }
2092
2093        /**
2094         * @return {@link #identifier} (An identifier that uniquely identifies this expansion of the valueset, based on a unique combination of the provided parameters, the system default parameters, and the underlying system code system versions etc. Systems may re-use the same identifier as long as those factors remain the same, and the expansion is the same, but are not required to do so. This is a business identifier.). This is the underlying object with id, value and extensions. The accessor "getIdentifier" gives direct access to the value
2095         */
2096        public UriType getIdentifierElement() { 
2097          if (this.identifier == null)
2098            if (Configuration.errorOnAutoCreate())
2099              throw new Error("Attempt to auto-create ValueSetExpansionComponent.identifier");
2100            else if (Configuration.doAutoCreate())
2101              this.identifier = new UriType(); // bb
2102          return this.identifier;
2103        }
2104
2105        public boolean hasIdentifierElement() { 
2106          return this.identifier != null && !this.identifier.isEmpty();
2107        }
2108
2109        public boolean hasIdentifier() { 
2110          return this.identifier != null && !this.identifier.isEmpty();
2111        }
2112
2113        /**
2114         * @param value {@link #identifier} (An identifier that uniquely identifies this expansion of the valueset, based on a unique combination of the provided parameters, the system default parameters, and the underlying system code system versions etc. Systems may re-use the same identifier as long as those factors remain the same, and the expansion is the same, but are not required to do so. This is a business identifier.). This is the underlying object with id, value and extensions. The accessor "getIdentifier" gives direct access to the value
2115         */
2116        public ValueSetExpansionComponent setIdentifierElement(UriType value) { 
2117          this.identifier = value;
2118          return this;
2119        }
2120
2121        /**
2122         * @return An identifier that uniquely identifies this expansion of the valueset, based on a unique combination of the provided parameters, the system default parameters, and the underlying system code system versions etc. Systems may re-use the same identifier as long as those factors remain the same, and the expansion is the same, but are not required to do so. This is a business identifier.
2123         */
2124        public String getIdentifier() { 
2125          return this.identifier == null ? null : this.identifier.getValue();
2126        }
2127
2128        /**
2129         * @param value An identifier that uniquely identifies this expansion of the valueset, based on a unique combination of the provided parameters, the system default parameters, and the underlying system code system versions etc. Systems may re-use the same identifier as long as those factors remain the same, and the expansion is the same, but are not required to do so. This is a business identifier.
2130         */
2131        public ValueSetExpansionComponent setIdentifier(String value) { 
2132          if (Utilities.noString(value))
2133            this.identifier = null;
2134          else {
2135            if (this.identifier == null)
2136              this.identifier = new UriType();
2137            this.identifier.setValue(value);
2138          }
2139          return this;
2140        }
2141
2142        /**
2143         * @return {@link #timestamp} (The time at which the expansion was produced by the expanding system.). This is the underlying object with id, value and extensions. The accessor "getTimestamp" gives direct access to the value
2144         */
2145        public DateTimeType getTimestampElement() { 
2146          if (this.timestamp == null)
2147            if (Configuration.errorOnAutoCreate())
2148              throw new Error("Attempt to auto-create ValueSetExpansionComponent.timestamp");
2149            else if (Configuration.doAutoCreate())
2150              this.timestamp = new DateTimeType(); // bb
2151          return this.timestamp;
2152        }
2153
2154        public boolean hasTimestampElement() { 
2155          return this.timestamp != null && !this.timestamp.isEmpty();
2156        }
2157
2158        public boolean hasTimestamp() { 
2159          return this.timestamp != null && !this.timestamp.isEmpty();
2160        }
2161
2162        /**
2163         * @param value {@link #timestamp} (The time at which the expansion was produced by the expanding system.). This is the underlying object with id, value and extensions. The accessor "getTimestamp" gives direct access to the value
2164         */
2165        public ValueSetExpansionComponent setTimestampElement(DateTimeType value) { 
2166          this.timestamp = value;
2167          return this;
2168        }
2169
2170        /**
2171         * @return The time at which the expansion was produced by the expanding system.
2172         */
2173        public Date getTimestamp() { 
2174          return this.timestamp == null ? null : this.timestamp.getValue();
2175        }
2176
2177        /**
2178         * @param value The time at which the expansion was produced by the expanding system.
2179         */
2180        public ValueSetExpansionComponent setTimestamp(Date value) { 
2181            if (this.timestamp == null)
2182              this.timestamp = new DateTimeType();
2183            this.timestamp.setValue(value);
2184          return this;
2185        }
2186
2187        /**
2188         * @return {@link #total} (The total number of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter.). This is the underlying object with id, value and extensions. The accessor "getTotal" gives direct access to the value
2189         */
2190        public IntegerType getTotalElement() { 
2191          if (this.total == null)
2192            if (Configuration.errorOnAutoCreate())
2193              throw new Error("Attempt to auto-create ValueSetExpansionComponent.total");
2194            else if (Configuration.doAutoCreate())
2195              this.total = new IntegerType(); // bb
2196          return this.total;
2197        }
2198
2199        public boolean hasTotalElement() { 
2200          return this.total != null && !this.total.isEmpty();
2201        }
2202
2203        public boolean hasTotal() { 
2204          return this.total != null && !this.total.isEmpty();
2205        }
2206
2207        /**
2208         * @param value {@link #total} (The total number of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter.). This is the underlying object with id, value and extensions. The accessor "getTotal" gives direct access to the value
2209         */
2210        public ValueSetExpansionComponent setTotalElement(IntegerType value) { 
2211          this.total = value;
2212          return this;
2213        }
2214
2215        /**
2216         * @return The total number of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter.
2217         */
2218        public int getTotal() { 
2219          return this.total == null || this.total.isEmpty() ? 0 : this.total.getValue();
2220        }
2221
2222        /**
2223         * @param value The total number of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter.
2224         */
2225        public ValueSetExpansionComponent setTotal(int value) { 
2226            if (this.total == null)
2227              this.total = new IntegerType();
2228            this.total.setValue(value);
2229          return this;
2230        }
2231
2232        /**
2233         * @return {@link #offset} (If paging is being used, the offset at which this resource starts.  I.e. this resource is a partial view into the expansion. If paging is not being used, this element SHALL NOT be present.). This is the underlying object with id, value and extensions. The accessor "getOffset" gives direct access to the value
2234         */
2235        public IntegerType getOffsetElement() { 
2236          if (this.offset == null)
2237            if (Configuration.errorOnAutoCreate())
2238              throw new Error("Attempt to auto-create ValueSetExpansionComponent.offset");
2239            else if (Configuration.doAutoCreate())
2240              this.offset = new IntegerType(); // bb
2241          return this.offset;
2242        }
2243
2244        public boolean hasOffsetElement() { 
2245          return this.offset != null && !this.offset.isEmpty();
2246        }
2247
2248        public boolean hasOffset() { 
2249          return this.offset != null && !this.offset.isEmpty();
2250        }
2251
2252        /**
2253         * @param value {@link #offset} (If paging is being used, the offset at which this resource starts.  I.e. this resource is a partial view into the expansion. If paging is not being used, this element SHALL NOT be present.). This is the underlying object with id, value and extensions. The accessor "getOffset" gives direct access to the value
2254         */
2255        public ValueSetExpansionComponent setOffsetElement(IntegerType value) { 
2256          this.offset = value;
2257          return this;
2258        }
2259
2260        /**
2261         * @return If paging is being used, the offset at which this resource starts.  I.e. this resource is a partial view into the expansion. If paging is not being used, this element SHALL NOT be present.
2262         */
2263        public int getOffset() { 
2264          return this.offset == null || this.offset.isEmpty() ? 0 : this.offset.getValue();
2265        }
2266
2267        /**
2268         * @param value If paging is being used, the offset at which this resource starts.  I.e. this resource is a partial view into the expansion. If paging is not being used, this element SHALL NOT be present.
2269         */
2270        public ValueSetExpansionComponent setOffset(int value) { 
2271            if (this.offset == null)
2272              this.offset = new IntegerType();
2273            this.offset.setValue(value);
2274          return this;
2275        }
2276
2277        /**
2278         * @return {@link #parameter} (A parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion.)
2279         */
2280        public List<ValueSetExpansionParameterComponent> getParameter() { 
2281          if (this.parameter == null)
2282            this.parameter = new ArrayList<ValueSetExpansionParameterComponent>();
2283          return this.parameter;
2284        }
2285
2286        /**
2287         * @return Returns a reference to <code>this</code> for easy method chaining
2288         */
2289        public ValueSetExpansionComponent setParameter(List<ValueSetExpansionParameterComponent> theParameter) { 
2290          this.parameter = theParameter;
2291          return this;
2292        }
2293
2294        public boolean hasParameter() { 
2295          if (this.parameter == null)
2296            return false;
2297          for (ValueSetExpansionParameterComponent item : this.parameter)
2298            if (!item.isEmpty())
2299              return true;
2300          return false;
2301        }
2302
2303        public ValueSetExpansionParameterComponent addParameter() { //3
2304          ValueSetExpansionParameterComponent t = new ValueSetExpansionParameterComponent();
2305          if (this.parameter == null)
2306            this.parameter = new ArrayList<ValueSetExpansionParameterComponent>();
2307          this.parameter.add(t);
2308          return t;
2309        }
2310
2311        public ValueSetExpansionComponent addParameter(ValueSetExpansionParameterComponent t) { //3
2312          if (t == null)
2313            return this;
2314          if (this.parameter == null)
2315            this.parameter = new ArrayList<ValueSetExpansionParameterComponent>();
2316          this.parameter.add(t);
2317          return this;
2318        }
2319
2320        /**
2321         * @return The first repetition of repeating field {@link #parameter}, creating it if it does not already exist {3}
2322         */
2323        public ValueSetExpansionParameterComponent getParameterFirstRep() { 
2324          if (getParameter().isEmpty()) {
2325            addParameter();
2326          }
2327          return getParameter().get(0);
2328        }
2329
2330        /**
2331         * @return {@link #property} (A property defines an additional slot through which additional information can be provided about a concept.)
2332         */
2333        public List<ValueSetExpansionPropertyComponent> getProperty() { 
2334          if (this.property == null)
2335            this.property = new ArrayList<ValueSetExpansionPropertyComponent>();
2336          return this.property;
2337        }
2338
2339        /**
2340         * @return Returns a reference to <code>this</code> for easy method chaining
2341         */
2342        public ValueSetExpansionComponent setProperty(List<ValueSetExpansionPropertyComponent> theProperty) { 
2343          this.property = theProperty;
2344          return this;
2345        }
2346
2347        public boolean hasProperty() { 
2348          if (this.property == null)
2349            return false;
2350          for (ValueSetExpansionPropertyComponent item : this.property)
2351            if (!item.isEmpty())
2352              return true;
2353          return false;
2354        }
2355
2356        public ValueSetExpansionPropertyComponent addProperty() { //3
2357          ValueSetExpansionPropertyComponent t = new ValueSetExpansionPropertyComponent();
2358          if (this.property == null)
2359            this.property = new ArrayList<ValueSetExpansionPropertyComponent>();
2360          this.property.add(t);
2361          return t;
2362        }
2363
2364        public ValueSetExpansionComponent addProperty(ValueSetExpansionPropertyComponent t) { //3
2365          if (t == null)
2366            return this;
2367          if (this.property == null)
2368            this.property = new ArrayList<ValueSetExpansionPropertyComponent>();
2369          this.property.add(t);
2370          return this;
2371        }
2372
2373        /**
2374         * @return The first repetition of repeating field {@link #property}, creating it if it does not already exist {3}
2375         */
2376        public ValueSetExpansionPropertyComponent getPropertyFirstRep() { 
2377          if (getProperty().isEmpty()) {
2378            addProperty();
2379          }
2380          return getProperty().get(0);
2381        }
2382
2383        /**
2384         * @return {@link #contains} (The codes that are contained in the value set expansion.)
2385         */
2386        public List<ValueSetExpansionContainsComponent> getContains() { 
2387          if (this.contains == null)
2388            this.contains = new ArrayList<ValueSetExpansionContainsComponent>();
2389          return this.contains;
2390        }
2391
2392        /**
2393         * @return Returns a reference to <code>this</code> for easy method chaining
2394         */
2395        public ValueSetExpansionComponent setContains(List<ValueSetExpansionContainsComponent> theContains) { 
2396          this.contains = theContains;
2397          return this;
2398        }
2399
2400        public boolean hasContains() { 
2401          if (this.contains == null)
2402            return false;
2403          for (ValueSetExpansionContainsComponent item : this.contains)
2404            if (!item.isEmpty())
2405              return true;
2406          return false;
2407        }
2408
2409        public ValueSetExpansionContainsComponent addContains() { //3
2410          ValueSetExpansionContainsComponent t = new ValueSetExpansionContainsComponent();
2411          if (this.contains == null)
2412            this.contains = new ArrayList<ValueSetExpansionContainsComponent>();
2413          this.contains.add(t);
2414          return t;
2415        }
2416
2417        public ValueSetExpansionComponent addContains(ValueSetExpansionContainsComponent t) { //3
2418          if (t == null)
2419            return this;
2420          if (this.contains == null)
2421            this.contains = new ArrayList<ValueSetExpansionContainsComponent>();
2422          this.contains.add(t);
2423          return this;
2424        }
2425
2426        /**
2427         * @return The first repetition of repeating field {@link #contains}, creating it if it does not already exist {3}
2428         */
2429        public ValueSetExpansionContainsComponent getContainsFirstRep() { 
2430          if (getContains().isEmpty()) {
2431            addContains();
2432          }
2433          return getContains().get(0);
2434        }
2435
2436        protected void listChildren(List<Property> children) {
2437          super.listChildren(children);
2438          children.add(new Property("identifier", "uri", "An identifier that uniquely identifies this expansion of the valueset, based on a unique combination of the provided parameters, the system default parameters, and the underlying system code system versions etc. Systems may re-use the same identifier as long as those factors remain the same, and the expansion is the same, but are not required to do so. This is a business identifier.", 0, 1, identifier));
2439          children.add(new Property("timestamp", "dateTime", "The time at which the expansion was produced by the expanding system.", 0, 1, timestamp));
2440          children.add(new Property("total", "integer", "The total number of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter.", 0, 1, total));
2441          children.add(new Property("offset", "integer", "If paging is being used, the offset at which this resource starts.  I.e. this resource is a partial view into the expansion. If paging is not being used, this element SHALL NOT be present.", 0, 1, offset));
2442          children.add(new Property("parameter", "", "A parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion.", 0, java.lang.Integer.MAX_VALUE, parameter));
2443          children.add(new Property("property", "", "A property defines an additional slot through which additional information can be provided about a concept.", 0, java.lang.Integer.MAX_VALUE, property));
2444          children.add(new Property("contains", "", "The codes that are contained in the value set expansion.", 0, java.lang.Integer.MAX_VALUE, contains));
2445        }
2446
2447        @Override
2448        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
2449          switch (_hash) {
2450          case -1618432855: /*identifier*/  return new Property("identifier", "uri", "An identifier that uniquely identifies this expansion of the valueset, based on a unique combination of the provided parameters, the system default parameters, and the underlying system code system versions etc. Systems may re-use the same identifier as long as those factors remain the same, and the expansion is the same, but are not required to do so. This is a business identifier.", 0, 1, identifier);
2451          case 55126294: /*timestamp*/  return new Property("timestamp", "dateTime", "The time at which the expansion was produced by the expanding system.", 0, 1, timestamp);
2452          case 110549828: /*total*/  return new Property("total", "integer", "The total number of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter.", 0, 1, total);
2453          case -1019779949: /*offset*/  return new Property("offset", "integer", "If paging is being used, the offset at which this resource starts.  I.e. this resource is a partial view into the expansion. If paging is not being used, this element SHALL NOT be present.", 0, 1, offset);
2454          case 1954460585: /*parameter*/  return new Property("parameter", "", "A parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion.", 0, java.lang.Integer.MAX_VALUE, parameter);
2455          case -993141291: /*property*/  return new Property("property", "", "A property defines an additional slot through which additional information can be provided about a concept.", 0, java.lang.Integer.MAX_VALUE, property);
2456          case -567445985: /*contains*/  return new Property("contains", "", "The codes that are contained in the value set expansion.", 0, java.lang.Integer.MAX_VALUE, contains);
2457          default: return super.getNamedProperty(_hash, _name, _checkValid);
2458          }
2459
2460        }
2461
2462      @Override
2463      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
2464        switch (hash) {
2465        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : new Base[] {this.identifier}; // UriType
2466        case 55126294: /*timestamp*/ return this.timestamp == null ? new Base[0] : new Base[] {this.timestamp}; // DateTimeType
2467        case 110549828: /*total*/ return this.total == null ? new Base[0] : new Base[] {this.total}; // IntegerType
2468        case -1019779949: /*offset*/ return this.offset == null ? new Base[0] : new Base[] {this.offset}; // IntegerType
2469        case 1954460585: /*parameter*/ return this.parameter == null ? new Base[0] : this.parameter.toArray(new Base[this.parameter.size()]); // ValueSetExpansionParameterComponent
2470        case -993141291: /*property*/ return this.property == null ? new Base[0] : this.property.toArray(new Base[this.property.size()]); // ValueSetExpansionPropertyComponent
2471        case -567445985: /*contains*/ return this.contains == null ? new Base[0] : this.contains.toArray(new Base[this.contains.size()]); // ValueSetExpansionContainsComponent
2472        default: return super.getProperty(hash, name, checkValid);
2473        }
2474
2475      }
2476
2477      @Override
2478      public Base setProperty(int hash, String name, Base value) throws FHIRException {
2479        switch (hash) {
2480        case -1618432855: // identifier
2481          this.identifier = TypeConvertor.castToUri(value); // UriType
2482          return value;
2483        case 55126294: // timestamp
2484          this.timestamp = TypeConvertor.castToDateTime(value); // DateTimeType
2485          return value;
2486        case 110549828: // total
2487          this.total = TypeConvertor.castToInteger(value); // IntegerType
2488          return value;
2489        case -1019779949: // offset
2490          this.offset = TypeConvertor.castToInteger(value); // IntegerType
2491          return value;
2492        case 1954460585: // parameter
2493          this.getParameter().add((ValueSetExpansionParameterComponent) value); // ValueSetExpansionParameterComponent
2494          return value;
2495        case -993141291: // property
2496          this.getProperty().add((ValueSetExpansionPropertyComponent) value); // ValueSetExpansionPropertyComponent
2497          return value;
2498        case -567445985: // contains
2499          this.getContains().add((ValueSetExpansionContainsComponent) value); // ValueSetExpansionContainsComponent
2500          return value;
2501        default: return super.setProperty(hash, name, value);
2502        }
2503
2504      }
2505
2506      @Override
2507      public Base setProperty(String name, Base value) throws FHIRException {
2508        if (name.equals("identifier")) {
2509          this.identifier = TypeConvertor.castToUri(value); // UriType
2510        } else if (name.equals("timestamp")) {
2511          this.timestamp = TypeConvertor.castToDateTime(value); // DateTimeType
2512        } else if (name.equals("total")) {
2513          this.total = TypeConvertor.castToInteger(value); // IntegerType
2514        } else if (name.equals("offset")) {
2515          this.offset = TypeConvertor.castToInteger(value); // IntegerType
2516        } else if (name.equals("parameter")) {
2517          this.getParameter().add((ValueSetExpansionParameterComponent) value);
2518        } else if (name.equals("property")) {
2519          this.getProperty().add((ValueSetExpansionPropertyComponent) value);
2520        } else if (name.equals("contains")) {
2521          this.getContains().add((ValueSetExpansionContainsComponent) value);
2522        } else
2523          return super.setProperty(name, value);
2524        return value;
2525      }
2526
2527      @Override
2528      public Base makeProperty(int hash, String name) throws FHIRException {
2529        switch (hash) {
2530        case -1618432855:  return getIdentifierElement();
2531        case 55126294:  return getTimestampElement();
2532        case 110549828:  return getTotalElement();
2533        case -1019779949:  return getOffsetElement();
2534        case 1954460585:  return addParameter(); 
2535        case -993141291:  return addProperty(); 
2536        case -567445985:  return addContains(); 
2537        default: return super.makeProperty(hash, name);
2538        }
2539
2540      }
2541
2542      @Override
2543      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
2544        switch (hash) {
2545        case -1618432855: /*identifier*/ return new String[] {"uri"};
2546        case 55126294: /*timestamp*/ return new String[] {"dateTime"};
2547        case 110549828: /*total*/ return new String[] {"integer"};
2548        case -1019779949: /*offset*/ return new String[] {"integer"};
2549        case 1954460585: /*parameter*/ return new String[] {};
2550        case -993141291: /*property*/ return new String[] {};
2551        case -567445985: /*contains*/ return new String[] {};
2552        default: return super.getTypesForProperty(hash, name);
2553        }
2554
2555      }
2556
2557      @Override
2558      public Base addChild(String name) throws FHIRException {
2559        if (name.equals("identifier")) {
2560          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.identifier");
2561        }
2562        else if (name.equals("timestamp")) {
2563          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.timestamp");
2564        }
2565        else if (name.equals("total")) {
2566          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.total");
2567        }
2568        else if (name.equals("offset")) {
2569          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.offset");
2570        }
2571        else if (name.equals("parameter")) {
2572          return addParameter();
2573        }
2574        else if (name.equals("property")) {
2575          return addProperty();
2576        }
2577        else if (name.equals("contains")) {
2578          return addContains();
2579        }
2580        else
2581          return super.addChild(name);
2582      }
2583
2584      public ValueSetExpansionComponent copy() {
2585        ValueSetExpansionComponent dst = new ValueSetExpansionComponent();
2586        copyValues(dst);
2587        return dst;
2588      }
2589
2590      public void copyValues(ValueSetExpansionComponent dst) {
2591        super.copyValues(dst);
2592        dst.identifier = identifier == null ? null : identifier.copy();
2593        dst.timestamp = timestamp == null ? null : timestamp.copy();
2594        dst.total = total == null ? null : total.copy();
2595        dst.offset = offset == null ? null : offset.copy();
2596        if (parameter != null) {
2597          dst.parameter = new ArrayList<ValueSetExpansionParameterComponent>();
2598          for (ValueSetExpansionParameterComponent i : parameter)
2599            dst.parameter.add(i.copy());
2600        };
2601        if (property != null) {
2602          dst.property = new ArrayList<ValueSetExpansionPropertyComponent>();
2603          for (ValueSetExpansionPropertyComponent i : property)
2604            dst.property.add(i.copy());
2605        };
2606        if (contains != null) {
2607          dst.contains = new ArrayList<ValueSetExpansionContainsComponent>();
2608          for (ValueSetExpansionContainsComponent i : contains)
2609            dst.contains.add(i.copy());
2610        };
2611      }
2612
2613      @Override
2614      public boolean equalsDeep(Base other_) {
2615        if (!super.equalsDeep(other_))
2616          return false;
2617        if (!(other_ instanceof ValueSetExpansionComponent))
2618          return false;
2619        ValueSetExpansionComponent o = (ValueSetExpansionComponent) other_;
2620        return compareDeep(identifier, o.identifier, true) && compareDeep(timestamp, o.timestamp, true)
2621           && compareDeep(total, o.total, true) && compareDeep(offset, o.offset, true) && compareDeep(parameter, o.parameter, true)
2622           && compareDeep(property, o.property, true) && compareDeep(contains, o.contains, true);
2623      }
2624
2625      @Override
2626      public boolean equalsShallow(Base other_) {
2627        if (!super.equalsShallow(other_))
2628          return false;
2629        if (!(other_ instanceof ValueSetExpansionComponent))
2630          return false;
2631        ValueSetExpansionComponent o = (ValueSetExpansionComponent) other_;
2632        return compareValues(identifier, o.identifier, true) && compareValues(timestamp, o.timestamp, true)
2633           && compareValues(total, o.total, true) && compareValues(offset, o.offset, true);
2634      }
2635
2636      public boolean isEmpty() {
2637        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, timestamp, total
2638          , offset, parameter, property, contains);
2639      }
2640
2641  public String fhirType() {
2642    return "ValueSet.expansion";
2643
2644  }
2645
2646  }
2647
2648    @Block()
2649    public static class ValueSetExpansionParameterComponent extends BackboneElement implements IBaseBackboneElement {
2650        /**
2651         * Name of the input parameter to the $expand operation; may be a server-assigned name for additional default or other server-supplied parameters used to control the expansion process.
2652         */
2653        @Child(name = "name", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false)
2654        @Description(shortDefinition="Name as assigned by the client or server", formalDefinition="Name of the input parameter to the $expand operation; may be a server-assigned name for additional default or other server-supplied parameters used to control the expansion process." )
2655        protected StringType name;
2656
2657        /**
2658         * The value of the parameter.
2659         */
2660        @Child(name = "value", type = {StringType.class, BooleanType.class, IntegerType.class, DecimalType.class, UriType.class, CodeType.class, DateTimeType.class}, order=2, min=0, max=1, modifier=false, summary=false)
2661        @Description(shortDefinition="Value of the named parameter", formalDefinition="The value of the parameter." )
2662        protected DataType value;
2663
2664        private static final long serialVersionUID = 1839679495L;
2665
2666    /**
2667     * Constructor
2668     */
2669      public ValueSetExpansionParameterComponent() {
2670        super();
2671      }
2672
2673    /**
2674     * Constructor
2675     */
2676      public ValueSetExpansionParameterComponent(String name) {
2677        super();
2678        this.setName(name);
2679      }
2680
2681        /**
2682         * @return {@link #name} (Name of the input parameter to the $expand operation; may be a server-assigned name for additional default or other server-supplied parameters used to control the expansion process.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
2683         */
2684        public StringType getNameElement() { 
2685          if (this.name == null)
2686            if (Configuration.errorOnAutoCreate())
2687              throw new Error("Attempt to auto-create ValueSetExpansionParameterComponent.name");
2688            else if (Configuration.doAutoCreate())
2689              this.name = new StringType(); // bb
2690          return this.name;
2691        }
2692
2693        public boolean hasNameElement() { 
2694          return this.name != null && !this.name.isEmpty();
2695        }
2696
2697        public boolean hasName() { 
2698          return this.name != null && !this.name.isEmpty();
2699        }
2700
2701        /**
2702         * @param value {@link #name} (Name of the input parameter to the $expand operation; may be a server-assigned name for additional default or other server-supplied parameters used to control the expansion process.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
2703         */
2704        public ValueSetExpansionParameterComponent setNameElement(StringType value) { 
2705          this.name = value;
2706          return this;
2707        }
2708
2709        /**
2710         * @return Name of the input parameter to the $expand operation; may be a server-assigned name for additional default or other server-supplied parameters used to control the expansion process.
2711         */
2712        public String getName() { 
2713          return this.name == null ? null : this.name.getValue();
2714        }
2715
2716        /**
2717         * @param value Name of the input parameter to the $expand operation; may be a server-assigned name for additional default or other server-supplied parameters used to control the expansion process.
2718         */
2719        public ValueSetExpansionParameterComponent setName(String value) { 
2720            if (this.name == null)
2721              this.name = new StringType();
2722            this.name.setValue(value);
2723          return this;
2724        }
2725
2726        /**
2727         * @return {@link #value} (The value of the parameter.)
2728         */
2729        public DataType getValue() { 
2730          return this.value;
2731        }
2732
2733        /**
2734         * @return {@link #value} (The value of the parameter.)
2735         */
2736        public StringType getValueStringType() throws FHIRException { 
2737          if (this.value == null)
2738            this.value = new StringType();
2739          if (!(this.value instanceof StringType))
2740            throw new FHIRException("Type mismatch: the type StringType was expected, but "+this.value.getClass().getName()+" was encountered");
2741          return (StringType) this.value;
2742        }
2743
2744        public boolean hasValueStringType() { 
2745          return this != null && this.value instanceof StringType;
2746        }
2747
2748        /**
2749         * @return {@link #value} (The value of the parameter.)
2750         */
2751        public BooleanType getValueBooleanType() throws FHIRException { 
2752          if (this.value == null)
2753            this.value = new BooleanType();
2754          if (!(this.value instanceof BooleanType))
2755            throw new FHIRException("Type mismatch: the type BooleanType was expected, but "+this.value.getClass().getName()+" was encountered");
2756          return (BooleanType) this.value;
2757        }
2758
2759        public boolean hasValueBooleanType() { 
2760          return this != null && this.value instanceof BooleanType;
2761        }
2762
2763        /**
2764         * @return {@link #value} (The value of the parameter.)
2765         */
2766        public IntegerType getValueIntegerType() throws FHIRException { 
2767          if (this.value == null)
2768            this.value = new IntegerType();
2769          if (!(this.value instanceof IntegerType))
2770            throw new FHIRException("Type mismatch: the type IntegerType was expected, but "+this.value.getClass().getName()+" was encountered");
2771          return (IntegerType) this.value;
2772        }
2773
2774        public boolean hasValueIntegerType() { 
2775          return this != null && this.value instanceof IntegerType;
2776        }
2777
2778        /**
2779         * @return {@link #value} (The value of the parameter.)
2780         */
2781        public DecimalType getValueDecimalType() throws FHIRException { 
2782          if (this.value == null)
2783            this.value = new DecimalType();
2784          if (!(this.value instanceof DecimalType))
2785            throw new FHIRException("Type mismatch: the type DecimalType was expected, but "+this.value.getClass().getName()+" was encountered");
2786          return (DecimalType) this.value;
2787        }
2788
2789        public boolean hasValueDecimalType() { 
2790          return this != null && this.value instanceof DecimalType;
2791        }
2792
2793        /**
2794         * @return {@link #value} (The value of the parameter.)
2795         */
2796        public UriType getValueUriType() throws FHIRException { 
2797          if (this.value == null)
2798            this.value = new UriType();
2799          if (!(this.value instanceof UriType))
2800            throw new FHIRException("Type mismatch: the type UriType was expected, but "+this.value.getClass().getName()+" was encountered");
2801          return (UriType) this.value;
2802        }
2803
2804        public boolean hasValueUriType() { 
2805          return this != null && this.value instanceof UriType;
2806        }
2807
2808        /**
2809         * @return {@link #value} (The value of the parameter.)
2810         */
2811        public CodeType getValueCodeType() throws FHIRException { 
2812          if (this.value == null)
2813            this.value = new CodeType();
2814          if (!(this.value instanceof CodeType))
2815            throw new FHIRException("Type mismatch: the type CodeType was expected, but "+this.value.getClass().getName()+" was encountered");
2816          return (CodeType) this.value;
2817        }
2818
2819        public boolean hasValueCodeType() { 
2820          return this != null && this.value instanceof CodeType;
2821        }
2822
2823        /**
2824         * @return {@link #value} (The value of the parameter.)
2825         */
2826        public DateTimeType getValueDateTimeType() throws FHIRException { 
2827          if (this.value == null)
2828            this.value = new DateTimeType();
2829          if (!(this.value instanceof DateTimeType))
2830            throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.value.getClass().getName()+" was encountered");
2831          return (DateTimeType) this.value;
2832        }
2833
2834        public boolean hasValueDateTimeType() { 
2835          return this != null && this.value instanceof DateTimeType;
2836        }
2837
2838        public boolean hasValue() { 
2839          return this.value != null && !this.value.isEmpty();
2840        }
2841
2842        /**
2843         * @param value {@link #value} (The value of the parameter.)
2844         */
2845        public ValueSetExpansionParameterComponent setValue(DataType value) { 
2846          if (value != null && !(value instanceof StringType || value instanceof BooleanType || value instanceof IntegerType || value instanceof DecimalType || value instanceof UriType || value instanceof CodeType || value instanceof DateTimeType))
2847            throw new Error("Not the right type for ValueSet.expansion.parameter.value[x]: "+value.fhirType());
2848          this.value = value;
2849          return this;
2850        }
2851
2852        protected void listChildren(List<Property> children) {
2853          super.listChildren(children);
2854          children.add(new Property("name", "string", "Name of the input parameter to the $expand operation; may be a server-assigned name for additional default or other server-supplied parameters used to control the expansion process.", 0, 1, name));
2855          children.add(new Property("value[x]", "string|boolean|integer|decimal|uri|code|dateTime", "The value of the parameter.", 0, 1, value));
2856        }
2857
2858        @Override
2859        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
2860          switch (_hash) {
2861          case 3373707: /*name*/  return new Property("name", "string", "Name of the input parameter to the $expand operation; may be a server-assigned name for additional default or other server-supplied parameters used to control the expansion process.", 0, 1, name);
2862          case -1410166417: /*value[x]*/  return new Property("value[x]", "string|boolean|integer|decimal|uri|code|dateTime", "The value of the parameter.", 0, 1, value);
2863          case 111972721: /*value*/  return new Property("value[x]", "string|boolean|integer|decimal|uri|code|dateTime", "The value of the parameter.", 0, 1, value);
2864          case -1424603934: /*valueString*/  return new Property("value[x]", "string", "The value of the parameter.", 0, 1, value);
2865          case 733421943: /*valueBoolean*/  return new Property("value[x]", "boolean", "The value of the parameter.", 0, 1, value);
2866          case -1668204915: /*valueInteger*/  return new Property("value[x]", "integer", "The value of the parameter.", 0, 1, value);
2867          case -2083993440: /*valueDecimal*/  return new Property("value[x]", "decimal", "The value of the parameter.", 0, 1, value);
2868          case -1410172357: /*valueUri*/  return new Property("value[x]", "uri", "The value of the parameter.", 0, 1, value);
2869          case -766209282: /*valueCode*/  return new Property("value[x]", "code", "The value of the parameter.", 0, 1, value);
2870          case 1047929900: /*valueDateTime*/  return new Property("value[x]", "dateTime", "The value of the parameter.", 0, 1, value);
2871          default: return super.getNamedProperty(_hash, _name, _checkValid);
2872          }
2873
2874        }
2875
2876      @Override
2877      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
2878        switch (hash) {
2879        case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType
2880        case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // DataType
2881        default: return super.getProperty(hash, name, checkValid);
2882        }
2883
2884      }
2885
2886      @Override
2887      public Base setProperty(int hash, String name, Base value) throws FHIRException {
2888        switch (hash) {
2889        case 3373707: // name
2890          this.name = TypeConvertor.castToString(value); // StringType
2891          return value;
2892        case 111972721: // value
2893          this.value = TypeConvertor.castToType(value); // DataType
2894          return value;
2895        default: return super.setProperty(hash, name, value);
2896        }
2897
2898      }
2899
2900      @Override
2901      public Base setProperty(String name, Base value) throws FHIRException {
2902        if (name.equals("name")) {
2903          this.name = TypeConvertor.castToString(value); // StringType
2904        } else if (name.equals("value[x]")) {
2905          this.value = TypeConvertor.castToType(value); // DataType
2906        } else
2907          return super.setProperty(name, value);
2908        return value;
2909      }
2910
2911      @Override
2912      public Base makeProperty(int hash, String name) throws FHIRException {
2913        switch (hash) {
2914        case 3373707:  return getNameElement();
2915        case -1410166417:  return getValue();
2916        case 111972721:  return getValue();
2917        default: return super.makeProperty(hash, name);
2918        }
2919
2920      }
2921
2922      @Override
2923      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
2924        switch (hash) {
2925        case 3373707: /*name*/ return new String[] {"string"};
2926        case 111972721: /*value*/ return new String[] {"string", "boolean", "integer", "decimal", "uri", "code", "dateTime"};
2927        default: return super.getTypesForProperty(hash, name);
2928        }
2929
2930      }
2931
2932      @Override
2933      public Base addChild(String name) throws FHIRException {
2934        if (name.equals("name")) {
2935          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.parameter.name");
2936        }
2937        else if (name.equals("valueString")) {
2938          this.value = new StringType();
2939          return this.value;
2940        }
2941        else if (name.equals("valueBoolean")) {
2942          this.value = new BooleanType();
2943          return this.value;
2944        }
2945        else if (name.equals("valueInteger")) {
2946          this.value = new IntegerType();
2947          return this.value;
2948        }
2949        else if (name.equals("valueDecimal")) {
2950          this.value = new DecimalType();
2951          return this.value;
2952        }
2953        else if (name.equals("valueUri")) {
2954          this.value = new UriType();
2955          return this.value;
2956        }
2957        else if (name.equals("valueCode")) {
2958          this.value = new CodeType();
2959          return this.value;
2960        }
2961        else if (name.equals("valueDateTime")) {
2962          this.value = new DateTimeType();
2963          return this.value;
2964        }
2965        else
2966          return super.addChild(name);
2967      }
2968
2969      public ValueSetExpansionParameterComponent copy() {
2970        ValueSetExpansionParameterComponent dst = new ValueSetExpansionParameterComponent();
2971        copyValues(dst);
2972        return dst;
2973      }
2974
2975      public void copyValues(ValueSetExpansionParameterComponent dst) {
2976        super.copyValues(dst);
2977        dst.name = name == null ? null : name.copy();
2978        dst.value = value == null ? null : value.copy();
2979      }
2980
2981      @Override
2982      public boolean equalsDeep(Base other_) {
2983        if (!super.equalsDeep(other_))
2984          return false;
2985        if (!(other_ instanceof ValueSetExpansionParameterComponent))
2986          return false;
2987        ValueSetExpansionParameterComponent o = (ValueSetExpansionParameterComponent) other_;
2988        return compareDeep(name, o.name, true) && compareDeep(value, o.value, true);
2989      }
2990
2991      @Override
2992      public boolean equalsShallow(Base other_) {
2993        if (!super.equalsShallow(other_))
2994          return false;
2995        if (!(other_ instanceof ValueSetExpansionParameterComponent))
2996          return false;
2997        ValueSetExpansionParameterComponent o = (ValueSetExpansionParameterComponent) other_;
2998        return compareValues(name, o.name, true);
2999      }
3000
3001      public boolean isEmpty() {
3002        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, value);
3003      }
3004
3005  public String fhirType() {
3006    return "ValueSet.expansion.parameter";
3007
3008  }
3009
3010  }
3011
3012    @Block()
3013    public static class ValueSetExpansionPropertyComponent extends BackboneElement implements IBaseBackboneElement {
3014        /**
3015         * A code that is used to identify the property. The code is used in ValueSet.expansion.contains.property.code.
3016         */
3017        @Child(name = "code", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false)
3018        @Description(shortDefinition="Identifies the property on the concepts, and when referred to in operations", formalDefinition="A code that is used to identify the property. The code is used in ValueSet.expansion.contains.property.code." )
3019        protected CodeType code;
3020
3021        /**
3022         * Reference to the formal meaning of the property. One possible source of meaning is the [Concept Properties](codesystem-concept-properties.html) code system.
3023         */
3024        @Child(name = "uri", type = {UriType.class}, order=2, min=0, max=1, modifier=false, summary=false)
3025        @Description(shortDefinition="Formal identifier for the property", formalDefinition="Reference to the formal meaning of the property. One possible source of meaning is the [Concept Properties](codesystem-concept-properties.html) code system." )
3026        protected UriType uri;
3027
3028        private static final long serialVersionUID = 929575836L;
3029
3030    /**
3031     * Constructor
3032     */
3033      public ValueSetExpansionPropertyComponent() {
3034        super();
3035      }
3036
3037    /**
3038     * Constructor
3039     */
3040      public ValueSetExpansionPropertyComponent(String code) {
3041        super();
3042        this.setCode(code);
3043      }
3044
3045        /**
3046         * @return {@link #code} (A code that is used to identify the property. The code is used in ValueSet.expansion.contains.property.code.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
3047         */
3048        public CodeType getCodeElement() { 
3049          if (this.code == null)
3050            if (Configuration.errorOnAutoCreate())
3051              throw new Error("Attempt to auto-create ValueSetExpansionPropertyComponent.code");
3052            else if (Configuration.doAutoCreate())
3053              this.code = new CodeType(); // bb
3054          return this.code;
3055        }
3056
3057        public boolean hasCodeElement() { 
3058          return this.code != null && !this.code.isEmpty();
3059        }
3060
3061        public boolean hasCode() { 
3062          return this.code != null && !this.code.isEmpty();
3063        }
3064
3065        /**
3066         * @param value {@link #code} (A code that is used to identify the property. The code is used in ValueSet.expansion.contains.property.code.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
3067         */
3068        public ValueSetExpansionPropertyComponent setCodeElement(CodeType value) { 
3069          this.code = value;
3070          return this;
3071        }
3072
3073        /**
3074         * @return A code that is used to identify the property. The code is used in ValueSet.expansion.contains.property.code.
3075         */
3076        public String getCode() { 
3077          return this.code == null ? null : this.code.getValue();
3078        }
3079
3080        /**
3081         * @param value A code that is used to identify the property. The code is used in ValueSet.expansion.contains.property.code.
3082         */
3083        public ValueSetExpansionPropertyComponent setCode(String value) { 
3084            if (this.code == null)
3085              this.code = new CodeType();
3086            this.code.setValue(value);
3087          return this;
3088        }
3089
3090        /**
3091         * @return {@link #uri} (Reference to the formal meaning of the property. One possible source of meaning is the [Concept Properties](codesystem-concept-properties.html) code system.). This is the underlying object with id, value and extensions. The accessor "getUri" gives direct access to the value
3092         */
3093        public UriType getUriElement() { 
3094          if (this.uri == null)
3095            if (Configuration.errorOnAutoCreate())
3096              throw new Error("Attempt to auto-create ValueSetExpansionPropertyComponent.uri");
3097            else if (Configuration.doAutoCreate())
3098              this.uri = new UriType(); // bb
3099          return this.uri;
3100        }
3101
3102        public boolean hasUriElement() { 
3103          return this.uri != null && !this.uri.isEmpty();
3104        }
3105
3106        public boolean hasUri() { 
3107          return this.uri != null && !this.uri.isEmpty();
3108        }
3109
3110        /**
3111         * @param value {@link #uri} (Reference to the formal meaning of the property. One possible source of meaning is the [Concept Properties](codesystem-concept-properties.html) code system.). This is the underlying object with id, value and extensions. The accessor "getUri" gives direct access to the value
3112         */
3113        public ValueSetExpansionPropertyComponent setUriElement(UriType value) { 
3114          this.uri = value;
3115          return this;
3116        }
3117
3118        /**
3119         * @return Reference to the formal meaning of the property. One possible source of meaning is the [Concept Properties](codesystem-concept-properties.html) code system.
3120         */
3121        public String getUri() { 
3122          return this.uri == null ? null : this.uri.getValue();
3123        }
3124
3125        /**
3126         * @param value Reference to the formal meaning of the property. One possible source of meaning is the [Concept Properties](codesystem-concept-properties.html) code system.
3127         */
3128        public ValueSetExpansionPropertyComponent setUri(String value) { 
3129          if (Utilities.noString(value))
3130            this.uri = null;
3131          else {
3132            if (this.uri == null)
3133              this.uri = new UriType();
3134            this.uri.setValue(value);
3135          }
3136          return this;
3137        }
3138
3139        protected void listChildren(List<Property> children) {
3140          super.listChildren(children);
3141          children.add(new Property("code", "code", "A code that is used to identify the property. The code is used in ValueSet.expansion.contains.property.code.", 0, 1, code));
3142          children.add(new Property("uri", "uri", "Reference to the formal meaning of the property. One possible source of meaning is the [Concept Properties](codesystem-concept-properties.html) code system.", 0, 1, uri));
3143        }
3144
3145        @Override
3146        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
3147          switch (_hash) {
3148          case 3059181: /*code*/  return new Property("code", "code", "A code that is used to identify the property. The code is used in ValueSet.expansion.contains.property.code.", 0, 1, code);
3149          case 116076: /*uri*/  return new Property("uri", "uri", "Reference to the formal meaning of the property. One possible source of meaning is the [Concept Properties](codesystem-concept-properties.html) code system.", 0, 1, uri);
3150          default: return super.getNamedProperty(_hash, _name, _checkValid);
3151          }
3152
3153        }
3154
3155      @Override
3156      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
3157        switch (hash) {
3158        case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeType
3159        case 116076: /*uri*/ return this.uri == null ? new Base[0] : new Base[] {this.uri}; // UriType
3160        default: return super.getProperty(hash, name, checkValid);
3161        }
3162
3163      }
3164
3165      @Override
3166      public Base setProperty(int hash, String name, Base value) throws FHIRException {
3167        switch (hash) {
3168        case 3059181: // code
3169          this.code = TypeConvertor.castToCode(value); // CodeType
3170          return value;
3171        case 116076: // uri
3172          this.uri = TypeConvertor.castToUri(value); // UriType
3173          return value;
3174        default: return super.setProperty(hash, name, value);
3175        }
3176
3177      }
3178
3179      @Override
3180      public Base setProperty(String name, Base value) throws FHIRException {
3181        if (name.equals("code")) {
3182          this.code = TypeConvertor.castToCode(value); // CodeType
3183        } else if (name.equals("uri")) {
3184          this.uri = TypeConvertor.castToUri(value); // UriType
3185        } else
3186          return super.setProperty(name, value);
3187        return value;
3188      }
3189
3190      @Override
3191      public Base makeProperty(int hash, String name) throws FHIRException {
3192        switch (hash) {
3193        case 3059181:  return getCodeElement();
3194        case 116076:  return getUriElement();
3195        default: return super.makeProperty(hash, name);
3196        }
3197
3198      }
3199
3200      @Override
3201      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
3202        switch (hash) {
3203        case 3059181: /*code*/ return new String[] {"code"};
3204        case 116076: /*uri*/ return new String[] {"uri"};
3205        default: return super.getTypesForProperty(hash, name);
3206        }
3207
3208      }
3209
3210      @Override
3211      public Base addChild(String name) throws FHIRException {
3212        if (name.equals("code")) {
3213          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.property.code");
3214        }
3215        else if (name.equals("uri")) {
3216          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.property.uri");
3217        }
3218        else
3219          return super.addChild(name);
3220      }
3221
3222      public ValueSetExpansionPropertyComponent copy() {
3223        ValueSetExpansionPropertyComponent dst = new ValueSetExpansionPropertyComponent();
3224        copyValues(dst);
3225        return dst;
3226      }
3227
3228      public void copyValues(ValueSetExpansionPropertyComponent dst) {
3229        super.copyValues(dst);
3230        dst.code = code == null ? null : code.copy();
3231        dst.uri = uri == null ? null : uri.copy();
3232      }
3233
3234      @Override
3235      public boolean equalsDeep(Base other_) {
3236        if (!super.equalsDeep(other_))
3237          return false;
3238        if (!(other_ instanceof ValueSetExpansionPropertyComponent))
3239          return false;
3240        ValueSetExpansionPropertyComponent o = (ValueSetExpansionPropertyComponent) other_;
3241        return compareDeep(code, o.code, true) && compareDeep(uri, o.uri, true);
3242      }
3243
3244      @Override
3245      public boolean equalsShallow(Base other_) {
3246        if (!super.equalsShallow(other_))
3247          return false;
3248        if (!(other_ instanceof ValueSetExpansionPropertyComponent))
3249          return false;
3250        ValueSetExpansionPropertyComponent o = (ValueSetExpansionPropertyComponent) other_;
3251        return compareValues(code, o.code, true) && compareValues(uri, o.uri, true);
3252      }
3253
3254      public boolean isEmpty() {
3255        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, uri);
3256      }
3257
3258  public String fhirType() {
3259    return "ValueSet.expansion.property";
3260
3261  }
3262
3263  }
3264
3265    @Block()
3266    public static class ValueSetExpansionContainsComponent extends BackboneElement implements IBaseBackboneElement {
3267        /**
3268         * An absolute URI which is the code system in which the code for this item in the expansion is defined.
3269         */
3270        @Child(name = "system", type = {UriType.class}, order=1, min=0, max=1, modifier=false, summary=false)
3271        @Description(shortDefinition="System value for the code", formalDefinition="An absolute URI which is the code system in which the code for this item in the expansion is defined." )
3272        protected UriType system;
3273
3274        /**
3275         * If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value.
3276         */
3277        @Child(name = "abstract", type = {BooleanType.class}, order=2, min=0, max=1, modifier=false, summary=false)
3278        @Description(shortDefinition="If user cannot select this entry", formalDefinition="If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value." )
3279        protected BooleanType abstract_;
3280
3281        /**
3282         * If the concept is inactive in the code system that defines it. Inactive codes are those that are no longer to be used, but are maintained by the code system for understanding legacy data. It might not be known or specified whether an concept is inactive (and it may depend on the context of use).
3283         */
3284        @Child(name = "inactive", type = {BooleanType.class}, order=3, min=0, max=1, modifier=false, summary=false)
3285        @Description(shortDefinition="If concept is inactive in the code system", formalDefinition="If the concept is inactive in the code system that defines it. Inactive codes are those that are no longer to be used, but are maintained by the code system for understanding legacy data. It might not be known or specified whether an concept is inactive (and it may depend on the context of use)." )
3286        protected BooleanType inactive;
3287
3288        /**
3289         * The version of the code system from this code was taken. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.
3290         */
3291        @Child(name = "version", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false)
3292        @Description(shortDefinition="Version in which this code/display is defined", formalDefinition="The version of the code system from this code was taken. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged." )
3293        protected StringType version;
3294
3295        /**
3296         * The code for this item in the expansion hierarchy. If this code is missing the entry in the hierarchy is a place holder (abstract) and does not represent a valid code in the value set.
3297         */
3298        @Child(name = "code", type = {CodeType.class}, order=5, min=0, max=1, modifier=false, summary=false)
3299        @Description(shortDefinition="Code - if blank, this is not a selectable code", formalDefinition="The code for this item in the expansion hierarchy. If this code is missing the entry in the hierarchy is a place holder (abstract) and does not represent a valid code in the value set." )
3300        protected CodeType code;
3301
3302        /**
3303         * The recommended display for this item in the expansion.
3304         */
3305        @Child(name = "display", type = {StringType.class}, order=6, min=0, max=1, modifier=false, summary=false)
3306        @Description(shortDefinition="User display for the concept", formalDefinition="The recommended display for this item in the expansion." )
3307        protected StringType display;
3308
3309        /**
3310         * Additional representations for this item - other languages, aliases, specialized purposes, used for particular purposes, etc. These are relevant when the conditions of the expansion do not fix to a single correct representation.
3311         */
3312        @Child(name = "designation", type = {ConceptReferenceDesignationComponent.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
3313        @Description(shortDefinition="Additional representations for this item", formalDefinition="Additional representations for this item - other languages, aliases, specialized purposes, used for particular purposes, etc. These are relevant when the conditions of the expansion do not fix to a single correct representation." )
3314        protected List<ConceptReferenceDesignationComponent> designation;
3315
3316        /**
3317         * A property value for this concept.
3318         */
3319        @Child(name = "property", type = {}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
3320        @Description(shortDefinition="Property value for the concept", formalDefinition="A property value for this concept." )
3321        protected List<ConceptPropertyComponent> property;
3322
3323        /**
3324         * Other codes and entries contained under this entry in the hierarchy.
3325         */
3326        @Child(name = "contains", type = {ValueSetExpansionContainsComponent.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
3327        @Description(shortDefinition="Codes contained under this entry", formalDefinition="Other codes and entries contained under this entry in the hierarchy." )
3328        protected List<ValueSetExpansionContainsComponent> contains;
3329
3330        private static final long serialVersionUID = -1370569439L;
3331
3332    /**
3333     * Constructor
3334     */
3335      public ValueSetExpansionContainsComponent() {
3336        super();
3337      }
3338
3339        /**
3340         * @return {@link #system} (An absolute URI which is the code system in which the code for this item in the expansion is defined.). This is the underlying object with id, value and extensions. The accessor "getSystem" gives direct access to the value
3341         */
3342        public UriType getSystemElement() { 
3343          if (this.system == null)
3344            if (Configuration.errorOnAutoCreate())
3345              throw new Error("Attempt to auto-create ValueSetExpansionContainsComponent.system");
3346            else if (Configuration.doAutoCreate())
3347              this.system = new UriType(); // bb
3348          return this.system;
3349        }
3350
3351        public boolean hasSystemElement() { 
3352          return this.system != null && !this.system.isEmpty();
3353        }
3354
3355        public boolean hasSystem() { 
3356          return this.system != null && !this.system.isEmpty();
3357        }
3358
3359        /**
3360         * @param value {@link #system} (An absolute URI which is the code system in which the code for this item in the expansion is defined.). This is the underlying object with id, value and extensions. The accessor "getSystem" gives direct access to the value
3361         */
3362        public ValueSetExpansionContainsComponent setSystemElement(UriType value) { 
3363          this.system = value;
3364          return this;
3365        }
3366
3367        /**
3368         * @return An absolute URI which is the code system in which the code for this item in the expansion is defined.
3369         */
3370        public String getSystem() { 
3371          return this.system == null ? null : this.system.getValue();
3372        }
3373
3374        /**
3375         * @param value An absolute URI which is the code system in which the code for this item in the expansion is defined.
3376         */
3377        public ValueSetExpansionContainsComponent setSystem(String value) { 
3378          if (Utilities.noString(value))
3379            this.system = null;
3380          else {
3381            if (this.system == null)
3382              this.system = new UriType();
3383            this.system.setValue(value);
3384          }
3385          return this;
3386        }
3387
3388        /**
3389         * @return {@link #abstract_} (If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value.). This is the underlying object with id, value and extensions. The accessor "getAbstract" gives direct access to the value
3390         */
3391        public BooleanType getAbstractElement() { 
3392          if (this.abstract_ == null)
3393            if (Configuration.errorOnAutoCreate())
3394              throw new Error("Attempt to auto-create ValueSetExpansionContainsComponent.abstract_");
3395            else if (Configuration.doAutoCreate())
3396              this.abstract_ = new BooleanType(); // bb
3397          return this.abstract_;
3398        }
3399
3400        public boolean hasAbstractElement() { 
3401          return this.abstract_ != null && !this.abstract_.isEmpty();
3402        }
3403
3404        public boolean hasAbstract() { 
3405          return this.abstract_ != null && !this.abstract_.isEmpty();
3406        }
3407
3408        /**
3409         * @param value {@link #abstract_} (If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value.). This is the underlying object with id, value and extensions. The accessor "getAbstract" gives direct access to the value
3410         */
3411        public ValueSetExpansionContainsComponent setAbstractElement(BooleanType value) { 
3412          this.abstract_ = value;
3413          return this;
3414        }
3415
3416        /**
3417         * @return If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value.
3418         */
3419        public boolean getAbstract() { 
3420          return this.abstract_ == null || this.abstract_.isEmpty() ? false : this.abstract_.getValue();
3421        }
3422
3423        /**
3424         * @param value If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value.
3425         */
3426        public ValueSetExpansionContainsComponent setAbstract(boolean value) { 
3427            if (this.abstract_ == null)
3428              this.abstract_ = new BooleanType();
3429            this.abstract_.setValue(value);
3430          return this;
3431        }
3432
3433        /**
3434         * @return {@link #inactive} (If the concept is inactive in the code system that defines it. Inactive codes are those that are no longer to be used, but are maintained by the code system for understanding legacy data. It might not be known or specified whether an concept is inactive (and it may depend on the context of use).). This is the underlying object with id, value and extensions. The accessor "getInactive" gives direct access to the value
3435         */
3436        public BooleanType getInactiveElement() { 
3437          if (this.inactive == null)
3438            if (Configuration.errorOnAutoCreate())
3439              throw new Error("Attempt to auto-create ValueSetExpansionContainsComponent.inactive");
3440            else if (Configuration.doAutoCreate())
3441              this.inactive = new BooleanType(); // bb
3442          return this.inactive;
3443        }
3444
3445        public boolean hasInactiveElement() { 
3446          return this.inactive != null && !this.inactive.isEmpty();
3447        }
3448
3449        public boolean hasInactive() { 
3450          return this.inactive != null && !this.inactive.isEmpty();
3451        }
3452
3453        /**
3454         * @param value {@link #inactive} (If the concept is inactive in the code system that defines it. Inactive codes are those that are no longer to be used, but are maintained by the code system for understanding legacy data. It might not be known or specified whether an concept is inactive (and it may depend on the context of use).). This is the underlying object with id, value and extensions. The accessor "getInactive" gives direct access to the value
3455         */
3456        public ValueSetExpansionContainsComponent setInactiveElement(BooleanType value) { 
3457          this.inactive = value;
3458          return this;
3459        }
3460
3461        /**
3462         * @return If the concept is inactive in the code system that defines it. Inactive codes are those that are no longer to be used, but are maintained by the code system for understanding legacy data. It might not be known or specified whether an concept is inactive (and it may depend on the context of use).
3463         */
3464        public boolean getInactive() { 
3465          return this.inactive == null || this.inactive.isEmpty() ? false : this.inactive.getValue();
3466        }
3467
3468        /**
3469         * @param value If the concept is inactive in the code system that defines it. Inactive codes are those that are no longer to be used, but are maintained by the code system for understanding legacy data. It might not be known or specified whether an concept is inactive (and it may depend on the context of use).
3470         */
3471        public ValueSetExpansionContainsComponent setInactive(boolean value) { 
3472            if (this.inactive == null)
3473              this.inactive = new BooleanType();
3474            this.inactive.setValue(value);
3475          return this;
3476        }
3477
3478        /**
3479         * @return {@link #version} (The version of the code system from this code was taken. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
3480         */
3481        public StringType getVersionElement() { 
3482          if (this.version == null)
3483            if (Configuration.errorOnAutoCreate())
3484              throw new Error("Attempt to auto-create ValueSetExpansionContainsComponent.version");
3485            else if (Configuration.doAutoCreate())
3486              this.version = new StringType(); // bb
3487          return this.version;
3488        }
3489
3490        public boolean hasVersionElement() { 
3491          return this.version != null && !this.version.isEmpty();
3492        }
3493
3494        public boolean hasVersion() { 
3495          return this.version != null && !this.version.isEmpty();
3496        }
3497
3498        /**
3499         * @param value {@link #version} (The version of the code system from this code was taken. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
3500         */
3501        public ValueSetExpansionContainsComponent setVersionElement(StringType value) { 
3502          this.version = value;
3503          return this;
3504        }
3505
3506        /**
3507         * @return The version of the code system from this code was taken. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.
3508         */
3509        public String getVersion() { 
3510          return this.version == null ? null : this.version.getValue();
3511        }
3512
3513        /**
3514         * @param value The version of the code system from this code was taken. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.
3515         */
3516        public ValueSetExpansionContainsComponent setVersion(String value) { 
3517          if (Utilities.noString(value))
3518            this.version = null;
3519          else {
3520            if (this.version == null)
3521              this.version = new StringType();
3522            this.version.setValue(value);
3523          }
3524          return this;
3525        }
3526
3527        /**
3528         * @return {@link #code} (The code for this item in the expansion hierarchy. If this code is missing the entry in the hierarchy is a place holder (abstract) and does not represent a valid code in the value set.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
3529         */
3530        public CodeType getCodeElement() { 
3531          if (this.code == null)
3532            if (Configuration.errorOnAutoCreate())
3533              throw new Error("Attempt to auto-create ValueSetExpansionContainsComponent.code");
3534            else if (Configuration.doAutoCreate())
3535              this.code = new CodeType(); // bb
3536          return this.code;
3537        }
3538
3539        public boolean hasCodeElement() { 
3540          return this.code != null && !this.code.isEmpty();
3541        }
3542
3543        public boolean hasCode() { 
3544          return this.code != null && !this.code.isEmpty();
3545        }
3546
3547        /**
3548         * @param value {@link #code} (The code for this item in the expansion hierarchy. If this code is missing the entry in the hierarchy is a place holder (abstract) and does not represent a valid code in the value set.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
3549         */
3550        public ValueSetExpansionContainsComponent setCodeElement(CodeType value) { 
3551          this.code = value;
3552          return this;
3553        }
3554
3555        /**
3556         * @return The code for this item in the expansion hierarchy. If this code is missing the entry in the hierarchy is a place holder (abstract) and does not represent a valid code in the value set.
3557         */
3558        public String getCode() { 
3559          return this.code == null ? null : this.code.getValue();
3560        }
3561
3562        /**
3563         * @param value The code for this item in the expansion hierarchy. If this code is missing the entry in the hierarchy is a place holder (abstract) and does not represent a valid code in the value set.
3564         */
3565        public ValueSetExpansionContainsComponent setCode(String value) { 
3566          if (Utilities.noString(value))
3567            this.code = null;
3568          else {
3569            if (this.code == null)
3570              this.code = new CodeType();
3571            this.code.setValue(value);
3572          }
3573          return this;
3574        }
3575
3576        /**
3577         * @return {@link #display} (The recommended display for this item in the expansion.). This is the underlying object with id, value and extensions. The accessor "getDisplay" gives direct access to the value
3578         */
3579        public StringType getDisplayElement() { 
3580          if (this.display == null)
3581            if (Configuration.errorOnAutoCreate())
3582              throw new Error("Attempt to auto-create ValueSetExpansionContainsComponent.display");
3583            else if (Configuration.doAutoCreate())
3584              this.display = new StringType(); // bb
3585          return this.display;
3586        }
3587
3588        public boolean hasDisplayElement() { 
3589          return this.display != null && !this.display.isEmpty();
3590        }
3591
3592        public boolean hasDisplay() { 
3593          return this.display != null && !this.display.isEmpty();
3594        }
3595
3596        /**
3597         * @param value {@link #display} (The recommended display for this item in the expansion.). This is the underlying object with id, value and extensions. The accessor "getDisplay" gives direct access to the value
3598         */
3599        public ValueSetExpansionContainsComponent setDisplayElement(StringType value) { 
3600          this.display = value;
3601          return this;
3602        }
3603
3604        /**
3605         * @return The recommended display for this item in the expansion.
3606         */
3607        public String getDisplay() { 
3608          return this.display == null ? null : this.display.getValue();
3609        }
3610
3611        /**
3612         * @param value The recommended display for this item in the expansion.
3613         */
3614        public ValueSetExpansionContainsComponent setDisplay(String value) { 
3615          if (Utilities.noString(value))
3616            this.display = null;
3617          else {
3618            if (this.display == null)
3619              this.display = new StringType();
3620            this.display.setValue(value);
3621          }
3622          return this;
3623        }
3624
3625        /**
3626         * @return {@link #designation} (Additional representations for this item - other languages, aliases, specialized purposes, used for particular purposes, etc. These are relevant when the conditions of the expansion do not fix to a single correct representation.)
3627         */
3628        public List<ConceptReferenceDesignationComponent> getDesignation() { 
3629          if (this.designation == null)
3630            this.designation = new ArrayList<ConceptReferenceDesignationComponent>();
3631          return this.designation;
3632        }
3633
3634        /**
3635         * @return Returns a reference to <code>this</code> for easy method chaining
3636         */
3637        public ValueSetExpansionContainsComponent setDesignation(List<ConceptReferenceDesignationComponent> theDesignation) { 
3638          this.designation = theDesignation;
3639          return this;
3640        }
3641
3642        public boolean hasDesignation() { 
3643          if (this.designation == null)
3644            return false;
3645          for (ConceptReferenceDesignationComponent item : this.designation)
3646            if (!item.isEmpty())
3647              return true;
3648          return false;
3649        }
3650
3651        public ConceptReferenceDesignationComponent addDesignation() { //3
3652          ConceptReferenceDesignationComponent t = new ConceptReferenceDesignationComponent();
3653          if (this.designation == null)
3654            this.designation = new ArrayList<ConceptReferenceDesignationComponent>();
3655          this.designation.add(t);
3656          return t;
3657        }
3658
3659        public ValueSetExpansionContainsComponent addDesignation(ConceptReferenceDesignationComponent t) { //3
3660          if (t == null)
3661            return this;
3662          if (this.designation == null)
3663            this.designation = new ArrayList<ConceptReferenceDesignationComponent>();
3664          this.designation.add(t);
3665          return this;
3666        }
3667
3668        /**
3669         * @return The first repetition of repeating field {@link #designation}, creating it if it does not already exist {3}
3670         */
3671        public ConceptReferenceDesignationComponent getDesignationFirstRep() { 
3672          if (getDesignation().isEmpty()) {
3673            addDesignation();
3674          }
3675          return getDesignation().get(0);
3676        }
3677
3678        /**
3679         * @return {@link #property} (A property value for this concept.)
3680         */
3681        public List<ConceptPropertyComponent> getProperty() { 
3682          if (this.property == null)
3683            this.property = new ArrayList<ConceptPropertyComponent>();
3684          return this.property;
3685        }
3686
3687        /**
3688         * @return Returns a reference to <code>this</code> for easy method chaining
3689         */
3690        public ValueSetExpansionContainsComponent setProperty(List<ConceptPropertyComponent> theProperty) { 
3691          this.property = theProperty;
3692          return this;
3693        }
3694
3695        public boolean hasProperty() { 
3696          if (this.property == null)
3697            return false;
3698          for (ConceptPropertyComponent item : this.property)
3699            if (!item.isEmpty())
3700              return true;
3701          return false;
3702        }
3703
3704        public ConceptPropertyComponent addProperty() { //3
3705          ConceptPropertyComponent t = new ConceptPropertyComponent();
3706          if (this.property == null)
3707            this.property = new ArrayList<ConceptPropertyComponent>();
3708          this.property.add(t);
3709          return t;
3710        }
3711
3712        public ValueSetExpansionContainsComponent addProperty(ConceptPropertyComponent t) { //3
3713          if (t == null)
3714            return this;
3715          if (this.property == null)
3716            this.property = new ArrayList<ConceptPropertyComponent>();
3717          this.property.add(t);
3718          return this;
3719        }
3720
3721        /**
3722         * @return The first repetition of repeating field {@link #property}, creating it if it does not already exist {3}
3723         */
3724        public ConceptPropertyComponent getPropertyFirstRep() { 
3725          if (getProperty().isEmpty()) {
3726            addProperty();
3727          }
3728          return getProperty().get(0);
3729        }
3730
3731        /**
3732         * @return {@link #contains} (Other codes and entries contained under this entry in the hierarchy.)
3733         */
3734        public List<ValueSetExpansionContainsComponent> getContains() { 
3735          if (this.contains == null)
3736            this.contains = new ArrayList<ValueSetExpansionContainsComponent>();
3737          return this.contains;
3738        }
3739
3740        /**
3741         * @return Returns a reference to <code>this</code> for easy method chaining
3742         */
3743        public ValueSetExpansionContainsComponent setContains(List<ValueSetExpansionContainsComponent> theContains) { 
3744          this.contains = theContains;
3745          return this;
3746        }
3747
3748        public boolean hasContains() { 
3749          if (this.contains == null)
3750            return false;
3751          for (ValueSetExpansionContainsComponent item : this.contains)
3752            if (!item.isEmpty())
3753              return true;
3754          return false;
3755        }
3756
3757        public ValueSetExpansionContainsComponent addContains() { //3
3758          ValueSetExpansionContainsComponent t = new ValueSetExpansionContainsComponent();
3759          if (this.contains == null)
3760            this.contains = new ArrayList<ValueSetExpansionContainsComponent>();
3761          this.contains.add(t);
3762          return t;
3763        }
3764
3765        public ValueSetExpansionContainsComponent addContains(ValueSetExpansionContainsComponent t) { //3
3766          if (t == null)
3767            return this;
3768          if (this.contains == null)
3769            this.contains = new ArrayList<ValueSetExpansionContainsComponent>();
3770          this.contains.add(t);
3771          return this;
3772        }
3773
3774        /**
3775         * @return The first repetition of repeating field {@link #contains}, creating it if it does not already exist {3}
3776         */
3777        public ValueSetExpansionContainsComponent getContainsFirstRep() { 
3778          if (getContains().isEmpty()) {
3779            addContains();
3780          }
3781          return getContains().get(0);
3782        }
3783
3784        protected void listChildren(List<Property> children) {
3785          super.listChildren(children);
3786          children.add(new Property("system", "uri", "An absolute URI which is the code system in which the code for this item in the expansion is defined.", 0, 1, system));
3787          children.add(new Property("abstract", "boolean", "If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value.", 0, 1, abstract_));
3788          children.add(new Property("inactive", "boolean", "If the concept is inactive in the code system that defines it. Inactive codes are those that are no longer to be used, but are maintained by the code system for understanding legacy data. It might not be known or specified whether an concept is inactive (and it may depend on the context of use).", 0, 1, inactive));
3789          children.add(new Property("version", "string", "The version of the code system from this code was taken. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.", 0, 1, version));
3790          children.add(new Property("code", "code", "The code for this item in the expansion hierarchy. If this code is missing the entry in the hierarchy is a place holder (abstract) and does not represent a valid code in the value set.", 0, 1, code));
3791          children.add(new Property("display", "string", "The recommended display for this item in the expansion.", 0, 1, display));
3792          children.add(new Property("designation", "@ValueSet.compose.include.concept.designation", "Additional representations for this item - other languages, aliases, specialized purposes, used for particular purposes, etc. These are relevant when the conditions of the expansion do not fix to a single correct representation.", 0, java.lang.Integer.MAX_VALUE, designation));
3793          children.add(new Property("property", "", "A property value for this concept.", 0, java.lang.Integer.MAX_VALUE, property));
3794          children.add(new Property("contains", "@ValueSet.expansion.contains", "Other codes and entries contained under this entry in the hierarchy.", 0, java.lang.Integer.MAX_VALUE, contains));
3795        }
3796
3797        @Override
3798        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
3799          switch (_hash) {
3800          case -887328209: /*system*/  return new Property("system", "uri", "An absolute URI which is the code system in which the code for this item in the expansion is defined.", 0, 1, system);
3801          case 1732898850: /*abstract*/  return new Property("abstract", "boolean", "If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value.", 0, 1, abstract_);
3802          case 24665195: /*inactive*/  return new Property("inactive", "boolean", "If the concept is inactive in the code system that defines it. Inactive codes are those that are no longer to be used, but are maintained by the code system for understanding legacy data. It might not be known or specified whether an concept is inactive (and it may depend on the context of use).", 0, 1, inactive);
3803          case 351608024: /*version*/  return new Property("version", "string", "The version of the code system from this code was taken. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.", 0, 1, version);
3804          case 3059181: /*code*/  return new Property("code", "code", "The code for this item in the expansion hierarchy. If this code is missing the entry in the hierarchy is a place holder (abstract) and does not represent a valid code in the value set.", 0, 1, code);
3805          case 1671764162: /*display*/  return new Property("display", "string", "The recommended display for this item in the expansion.", 0, 1, display);
3806          case -900931593: /*designation*/  return new Property("designation", "@ValueSet.compose.include.concept.designation", "Additional representations for this item - other languages, aliases, specialized purposes, used for particular purposes, etc. These are relevant when the conditions of the expansion do not fix to a single correct representation.", 0, java.lang.Integer.MAX_VALUE, designation);
3807          case -993141291: /*property*/  return new Property("property", "", "A property value for this concept.", 0, java.lang.Integer.MAX_VALUE, property);
3808          case -567445985: /*contains*/  return new Property("contains", "@ValueSet.expansion.contains", "Other codes and entries contained under this entry in the hierarchy.", 0, java.lang.Integer.MAX_VALUE, contains);
3809          default: return super.getNamedProperty(_hash, _name, _checkValid);
3810          }
3811
3812        }
3813
3814      @Override
3815      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
3816        switch (hash) {
3817        case -887328209: /*system*/ return this.system == null ? new Base[0] : new Base[] {this.system}; // UriType
3818        case 1732898850: /*abstract*/ return this.abstract_ == null ? new Base[0] : new Base[] {this.abstract_}; // BooleanType
3819        case 24665195: /*inactive*/ return this.inactive == null ? new Base[0] : new Base[] {this.inactive}; // BooleanType
3820        case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType
3821        case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeType
3822        case 1671764162: /*display*/ return this.display == null ? new Base[0] : new Base[] {this.display}; // StringType
3823        case -900931593: /*designation*/ return this.designation == null ? new Base[0] : this.designation.toArray(new Base[this.designation.size()]); // ConceptReferenceDesignationComponent
3824        case -993141291: /*property*/ return this.property == null ? new Base[0] : this.property.toArray(new Base[this.property.size()]); // ConceptPropertyComponent
3825        case -567445985: /*contains*/ return this.contains == null ? new Base[0] : this.contains.toArray(new Base[this.contains.size()]); // ValueSetExpansionContainsComponent
3826        default: return super.getProperty(hash, name, checkValid);
3827        }
3828
3829      }
3830
3831      @Override
3832      public Base setProperty(int hash, String name, Base value) throws FHIRException {
3833        switch (hash) {
3834        case -887328209: // system
3835          this.system = TypeConvertor.castToUri(value); // UriType
3836          return value;
3837        case 1732898850: // abstract
3838          this.abstract_ = TypeConvertor.castToBoolean(value); // BooleanType
3839          return value;
3840        case 24665195: // inactive
3841          this.inactive = TypeConvertor.castToBoolean(value); // BooleanType
3842          return value;
3843        case 351608024: // version
3844          this.version = TypeConvertor.castToString(value); // StringType
3845          return value;
3846        case 3059181: // code
3847          this.code = TypeConvertor.castToCode(value); // CodeType
3848          return value;
3849        case 1671764162: // display
3850          this.display = TypeConvertor.castToString(value); // StringType
3851          return value;
3852        case -900931593: // designation
3853          this.getDesignation().add((ConceptReferenceDesignationComponent) value); // ConceptReferenceDesignationComponent
3854          return value;
3855        case -993141291: // property
3856          this.getProperty().add((ConceptPropertyComponent) value); // ConceptPropertyComponent
3857          return value;
3858        case -567445985: // contains
3859          this.getContains().add((ValueSetExpansionContainsComponent) value); // ValueSetExpansionContainsComponent
3860          return value;
3861        default: return super.setProperty(hash, name, value);
3862        }
3863
3864      }
3865
3866      @Override
3867      public Base setProperty(String name, Base value) throws FHIRException {
3868        if (name.equals("system")) {
3869          this.system = TypeConvertor.castToUri(value); // UriType
3870        } else if (name.equals("abstract")) {
3871          this.abstract_ = TypeConvertor.castToBoolean(value); // BooleanType
3872        } else if (name.equals("inactive")) {
3873          this.inactive = TypeConvertor.castToBoolean(value); // BooleanType
3874        } else if (name.equals("version")) {
3875          this.version = TypeConvertor.castToString(value); // StringType
3876        } else if (name.equals("code")) {
3877          this.code = TypeConvertor.castToCode(value); // CodeType
3878        } else if (name.equals("display")) {
3879          this.display = TypeConvertor.castToString(value); // StringType
3880        } else if (name.equals("designation")) {
3881          this.getDesignation().add((ConceptReferenceDesignationComponent) value);
3882        } else if (name.equals("property")) {
3883          this.getProperty().add((ConceptPropertyComponent) value);
3884        } else if (name.equals("contains")) {
3885          this.getContains().add((ValueSetExpansionContainsComponent) value);
3886        } else
3887          return super.setProperty(name, value);
3888        return value;
3889      }
3890
3891      @Override
3892      public Base makeProperty(int hash, String name) throws FHIRException {
3893        switch (hash) {
3894        case -887328209:  return getSystemElement();
3895        case 1732898850:  return getAbstractElement();
3896        case 24665195:  return getInactiveElement();
3897        case 351608024:  return getVersionElement();
3898        case 3059181:  return getCodeElement();
3899        case 1671764162:  return getDisplayElement();
3900        case -900931593:  return addDesignation(); 
3901        case -993141291:  return addProperty(); 
3902        case -567445985:  return addContains(); 
3903        default: return super.makeProperty(hash, name);
3904        }
3905
3906      }
3907
3908      @Override
3909      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
3910        switch (hash) {
3911        case -887328209: /*system*/ return new String[] {"uri"};
3912        case 1732898850: /*abstract*/ return new String[] {"boolean"};
3913        case 24665195: /*inactive*/ return new String[] {"boolean"};
3914        case 351608024: /*version*/ return new String[] {"string"};
3915        case 3059181: /*code*/ return new String[] {"code"};
3916        case 1671764162: /*display*/ return new String[] {"string"};
3917        case -900931593: /*designation*/ return new String[] {"@ValueSet.compose.include.concept.designation"};
3918        case -993141291: /*property*/ return new String[] {};
3919        case -567445985: /*contains*/ return new String[] {"@ValueSet.expansion.contains"};
3920        default: return super.getTypesForProperty(hash, name);
3921        }
3922
3923      }
3924
3925      @Override
3926      public Base addChild(String name) throws FHIRException {
3927        if (name.equals("system")) {
3928          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.contains.system");
3929        }
3930        else if (name.equals("abstract")) {
3931          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.contains.abstract");
3932        }
3933        else if (name.equals("inactive")) {
3934          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.contains.inactive");
3935        }
3936        else if (name.equals("version")) {
3937          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.contains.version");
3938        }
3939        else if (name.equals("code")) {
3940          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.contains.code");
3941        }
3942        else if (name.equals("display")) {
3943          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.contains.display");
3944        }
3945        else if (name.equals("designation")) {
3946          return addDesignation();
3947        }
3948        else if (name.equals("property")) {
3949          return addProperty();
3950        }
3951        else if (name.equals("contains")) {
3952          return addContains();
3953        }
3954        else
3955          return super.addChild(name);
3956      }
3957
3958      public ValueSetExpansionContainsComponent copy() {
3959        ValueSetExpansionContainsComponent dst = new ValueSetExpansionContainsComponent();
3960        copyValues(dst);
3961        return dst;
3962      }
3963
3964      public void copyValues(ValueSetExpansionContainsComponent dst) {
3965        super.copyValues(dst);
3966        dst.system = system == null ? null : system.copy();
3967        dst.abstract_ = abstract_ == null ? null : abstract_.copy();
3968        dst.inactive = inactive == null ? null : inactive.copy();
3969        dst.version = version == null ? null : version.copy();
3970        dst.code = code == null ? null : code.copy();
3971        dst.display = display == null ? null : display.copy();
3972        if (designation != null) {
3973          dst.designation = new ArrayList<ConceptReferenceDesignationComponent>();
3974          for (ConceptReferenceDesignationComponent i : designation)
3975            dst.designation.add(i.copy());
3976        };
3977        if (property != null) {
3978          dst.property = new ArrayList<ConceptPropertyComponent>();
3979          for (ConceptPropertyComponent i : property)
3980            dst.property.add(i.copy());
3981        };
3982        if (contains != null) {
3983          dst.contains = new ArrayList<ValueSetExpansionContainsComponent>();
3984          for (ValueSetExpansionContainsComponent i : contains)
3985            dst.contains.add(i.copy());
3986        };
3987      }
3988
3989      @Override
3990      public boolean equalsDeep(Base other_) {
3991        if (!super.equalsDeep(other_))
3992          return false;
3993        if (!(other_ instanceof ValueSetExpansionContainsComponent))
3994          return false;
3995        ValueSetExpansionContainsComponent o = (ValueSetExpansionContainsComponent) other_;
3996        return compareDeep(system, o.system, true) && compareDeep(abstract_, o.abstract_, true) && compareDeep(inactive, o.inactive, true)
3997           && compareDeep(version, o.version, true) && compareDeep(code, o.code, true) && compareDeep(display, o.display, true)
3998           && compareDeep(designation, o.designation, true) && compareDeep(property, o.property, true) && compareDeep(contains, o.contains, true)
3999          ;
4000      }
4001
4002      @Override
4003      public boolean equalsShallow(Base other_) {
4004        if (!super.equalsShallow(other_))
4005          return false;
4006        if (!(other_ instanceof ValueSetExpansionContainsComponent))
4007          return false;
4008        ValueSetExpansionContainsComponent o = (ValueSetExpansionContainsComponent) other_;
4009        return compareValues(system, o.system, true) && compareValues(abstract_, o.abstract_, true) && compareValues(inactive, o.inactive, true)
4010           && compareValues(version, o.version, true) && compareValues(code, o.code, true) && compareValues(display, o.display, true)
4011          ;
4012      }
4013
4014      public boolean isEmpty() {
4015        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(system, abstract_, inactive
4016          , version, code, display, designation, property, contains);
4017      }
4018
4019  public String fhirType() {
4020    return "ValueSet.expansion.contains";
4021
4022  }
4023
4024  }
4025
4026    @Block()
4027    public static class ConceptPropertyComponent extends BackboneElement implements IBaseBackboneElement {
4028        /**
4029         * A code that is a reference to ValueSet.expansion.property.code.
4030         */
4031        @Child(name = "code", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false)
4032        @Description(shortDefinition="Reference to ValueSet.expansion.property.code", formalDefinition="A code that is a reference to ValueSet.expansion.property.code." )
4033        protected CodeType code;
4034
4035        /**
4036         * The value of this property.
4037         */
4038        @Child(name = "value", type = {CodeType.class, Coding.class, StringType.class, IntegerType.class, BooleanType.class, DateTimeType.class, DecimalType.class}, order=2, min=1, max=1, modifier=false, summary=false)
4039        @Description(shortDefinition="Value of the property for this concept", formalDefinition="The value of this property." )
4040        protected DataType value;
4041
4042        private static final long serialVersionUID = -422546419L;
4043
4044    /**
4045     * Constructor
4046     */
4047      public ConceptPropertyComponent() {
4048        super();
4049      }
4050
4051    /**
4052     * Constructor
4053     */
4054      public ConceptPropertyComponent(String code, DataType value) {
4055        super();
4056        this.setCode(code);
4057        this.setValue(value);
4058      }
4059
4060        /**
4061         * @return {@link #code} (A code that is a reference to ValueSet.expansion.property.code.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
4062         */
4063        public CodeType getCodeElement() { 
4064          if (this.code == null)
4065            if (Configuration.errorOnAutoCreate())
4066              throw new Error("Attempt to auto-create ConceptPropertyComponent.code");
4067            else if (Configuration.doAutoCreate())
4068              this.code = new CodeType(); // bb
4069          return this.code;
4070        }
4071
4072        public boolean hasCodeElement() { 
4073          return this.code != null && !this.code.isEmpty();
4074        }
4075
4076        public boolean hasCode() { 
4077          return this.code != null && !this.code.isEmpty();
4078        }
4079
4080        /**
4081         * @param value {@link #code} (A code that is a reference to ValueSet.expansion.property.code.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
4082         */
4083        public ConceptPropertyComponent setCodeElement(CodeType value) { 
4084          this.code = value;
4085          return this;
4086        }
4087
4088        /**
4089         * @return A code that is a reference to ValueSet.expansion.property.code.
4090         */
4091        public String getCode() { 
4092          return this.code == null ? null : this.code.getValue();
4093        }
4094
4095        /**
4096         * @param value A code that is a reference to ValueSet.expansion.property.code.
4097         */
4098        public ConceptPropertyComponent setCode(String value) { 
4099            if (this.code == null)
4100              this.code = new CodeType();
4101            this.code.setValue(value);
4102          return this;
4103        }
4104
4105        /**
4106         * @return {@link #value} (The value of this property.)
4107         */
4108        public DataType getValue() { 
4109          return this.value;
4110        }
4111
4112        /**
4113         * @return {@link #value} (The value of this property.)
4114         */
4115        public CodeType getValueCodeType() throws FHIRException { 
4116          if (this.value == null)
4117            this.value = new CodeType();
4118          if (!(this.value instanceof CodeType))
4119            throw new FHIRException("Type mismatch: the type CodeType was expected, but "+this.value.getClass().getName()+" was encountered");
4120          return (CodeType) this.value;
4121        }
4122
4123        public boolean hasValueCodeType() { 
4124          return this != null && this.value instanceof CodeType;
4125        }
4126
4127        /**
4128         * @return {@link #value} (The value of this property.)
4129         */
4130        public Coding getValueCoding() throws FHIRException { 
4131          if (this.value == null)
4132            this.value = new Coding();
4133          if (!(this.value instanceof Coding))
4134            throw new FHIRException("Type mismatch: the type Coding was expected, but "+this.value.getClass().getName()+" was encountered");
4135          return (Coding) this.value;
4136        }
4137
4138        public boolean hasValueCoding() { 
4139          return this != null && this.value instanceof Coding;
4140        }
4141
4142        /**
4143         * @return {@link #value} (The value of this property.)
4144         */
4145        public StringType getValueStringType() throws FHIRException { 
4146          if (this.value == null)
4147            this.value = new StringType();
4148          if (!(this.value instanceof StringType))
4149            throw new FHIRException("Type mismatch: the type StringType was expected, but "+this.value.getClass().getName()+" was encountered");
4150          return (StringType) this.value;
4151        }
4152
4153        public boolean hasValueStringType() { 
4154          return this != null && this.value instanceof StringType;
4155        }
4156
4157        /**
4158         * @return {@link #value} (The value of this property.)
4159         */
4160        public IntegerType getValueIntegerType() throws FHIRException { 
4161          if (this.value == null)
4162            this.value = new IntegerType();
4163          if (!(this.value instanceof IntegerType))
4164            throw new FHIRException("Type mismatch: the type IntegerType was expected, but "+this.value.getClass().getName()+" was encountered");
4165          return (IntegerType) this.value;
4166        }
4167
4168        public boolean hasValueIntegerType() { 
4169          return this != null && this.value instanceof IntegerType;
4170        }
4171
4172        /**
4173         * @return {@link #value} (The value of this property.)
4174         */
4175        public BooleanType getValueBooleanType() throws FHIRException { 
4176          if (this.value == null)
4177            this.value = new BooleanType();
4178          if (!(this.value instanceof BooleanType))
4179            throw new FHIRException("Type mismatch: the type BooleanType was expected, but "+this.value.getClass().getName()+" was encountered");
4180          return (BooleanType) this.value;
4181        }
4182
4183        public boolean hasValueBooleanType() { 
4184          return this != null && this.value instanceof BooleanType;
4185        }
4186
4187        /**
4188         * @return {@link #value} (The value of this property.)
4189         */
4190        public DateTimeType getValueDateTimeType() throws FHIRException { 
4191          if (this.value == null)
4192            this.value = new DateTimeType();
4193          if (!(this.value instanceof DateTimeType))
4194            throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.value.getClass().getName()+" was encountered");
4195          return (DateTimeType) this.value;
4196        }
4197
4198        public boolean hasValueDateTimeType() { 
4199          return this != null && this.value instanceof DateTimeType;
4200        }
4201
4202        /**
4203         * @return {@link #value} (The value of this property.)
4204         */
4205        public DecimalType getValueDecimalType() throws FHIRException { 
4206          if (this.value == null)
4207            this.value = new DecimalType();
4208          if (!(this.value instanceof DecimalType))
4209            throw new FHIRException("Type mismatch: the type DecimalType was expected, but "+this.value.getClass().getName()+" was encountered");
4210          return (DecimalType) this.value;
4211        }
4212
4213        public boolean hasValueDecimalType() { 
4214          return this != null && this.value instanceof DecimalType;
4215        }
4216
4217        public boolean hasValue() { 
4218          return this.value != null && !this.value.isEmpty();
4219        }
4220
4221        /**
4222         * @param value {@link #value} (The value of this property.)
4223         */
4224        public ConceptPropertyComponent setValue(DataType value) { 
4225          if (value != null && !(value instanceof CodeType || value instanceof Coding || value instanceof StringType || value instanceof IntegerType || value instanceof BooleanType || value instanceof DateTimeType || value instanceof DecimalType))
4226            throw new Error("Not the right type for ValueSet.expansion.contains.property.value[x]: "+value.fhirType());
4227          this.value = value;
4228          return this;
4229        }
4230
4231        protected void listChildren(List<Property> children) {
4232          super.listChildren(children);
4233          children.add(new Property("code", "code", "A code that is a reference to ValueSet.expansion.property.code.", 0, 1, code));
4234          children.add(new Property("value[x]", "code|Coding|string|integer|boolean|dateTime|decimal", "The value of this property.", 0, 1, value));
4235        }
4236
4237        @Override
4238        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
4239          switch (_hash) {
4240          case 3059181: /*code*/  return new Property("code", "code", "A code that is a reference to ValueSet.expansion.property.code.", 0, 1, code);
4241          case -1410166417: /*value[x]*/  return new Property("value[x]", "code|Coding|string|integer|boolean|dateTime|decimal", "The value of this property.", 0, 1, value);
4242          case 111972721: /*value*/  return new Property("value[x]", "code|Coding|string|integer|boolean|dateTime|decimal", "The value of this property.", 0, 1, value);
4243          case -766209282: /*valueCode*/  return new Property("value[x]", "code", "The value of this property.", 0, 1, value);
4244          case -1887705029: /*valueCoding*/  return new Property("value[x]", "Coding", "The value of this property.", 0, 1, value);
4245          case -1424603934: /*valueString*/  return new Property("value[x]", "string", "The value of this property.", 0, 1, value);
4246          case -1668204915: /*valueInteger*/  return new Property("value[x]", "integer", "The value of this property.", 0, 1, value);
4247          case 733421943: /*valueBoolean*/  return new Property("value[x]", "boolean", "The value of this property.", 0, 1, value);
4248          case 1047929900: /*valueDateTime*/  return new Property("value[x]", "dateTime", "The value of this property.", 0, 1, value);
4249          case -2083993440: /*valueDecimal*/  return new Property("value[x]", "decimal", "The value of this property.", 0, 1, value);
4250          default: return super.getNamedProperty(_hash, _name, _checkValid);
4251          }
4252
4253        }
4254
4255      @Override
4256      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
4257        switch (hash) {
4258        case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeType
4259        case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // DataType
4260        default: return super.getProperty(hash, name, checkValid);
4261        }
4262
4263      }
4264
4265      @Override
4266      public Base setProperty(int hash, String name, Base value) throws FHIRException {
4267        switch (hash) {
4268        case 3059181: // code
4269          this.code = TypeConvertor.castToCode(value); // CodeType
4270          return value;
4271        case 111972721: // value
4272          this.value = TypeConvertor.castToType(value); // DataType
4273          return value;
4274        default: return super.setProperty(hash, name, value);
4275        }
4276
4277      }
4278
4279      @Override
4280      public Base setProperty(String name, Base value) throws FHIRException {
4281        if (name.equals("code")) {
4282          this.code = TypeConvertor.castToCode(value); // CodeType
4283        } else if (name.equals("value[x]")) {
4284          this.value = TypeConvertor.castToType(value); // DataType
4285        } else
4286          return super.setProperty(name, value);
4287        return value;
4288      }
4289
4290      @Override
4291      public Base makeProperty(int hash, String name) throws FHIRException {
4292        switch (hash) {
4293        case 3059181:  return getCodeElement();
4294        case -1410166417:  return getValue();
4295        case 111972721:  return getValue();
4296        default: return super.makeProperty(hash, name);
4297        }
4298
4299      }
4300
4301      @Override
4302      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
4303        switch (hash) {
4304        case 3059181: /*code*/ return new String[] {"code"};
4305        case 111972721: /*value*/ return new String[] {"code", "Coding", "string", "integer", "boolean", "dateTime", "decimal"};
4306        default: return super.getTypesForProperty(hash, name);
4307        }
4308
4309      }
4310
4311      @Override
4312      public Base addChild(String name) throws FHIRException {
4313        if (name.equals("code")) {
4314          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.expansion.contains.property.code");
4315        }
4316        else if (name.equals("valueCode")) {
4317          this.value = new CodeType();
4318          return this.value;
4319        }
4320        else if (name.equals("valueCoding")) {
4321          this.value = new Coding();
4322          return this.value;
4323        }
4324        else if (name.equals("valueString")) {
4325          this.value = new StringType();
4326          return this.value;
4327        }
4328        else if (name.equals("valueInteger")) {
4329          this.value = new IntegerType();
4330          return this.value;
4331        }
4332        else if (name.equals("valueBoolean")) {
4333          this.value = new BooleanType();
4334          return this.value;
4335        }
4336        else if (name.equals("valueDateTime")) {
4337          this.value = new DateTimeType();
4338          return this.value;
4339        }
4340        else if (name.equals("valueDecimal")) {
4341          this.value = new DecimalType();
4342          return this.value;
4343        }
4344        else
4345          return super.addChild(name);
4346      }
4347
4348      public ConceptPropertyComponent copy() {
4349        ConceptPropertyComponent dst = new ConceptPropertyComponent();
4350        copyValues(dst);
4351        return dst;
4352      }
4353
4354      public void copyValues(ConceptPropertyComponent dst) {
4355        super.copyValues(dst);
4356        dst.code = code == null ? null : code.copy();
4357        dst.value = value == null ? null : value.copy();
4358      }
4359
4360      @Override
4361      public boolean equalsDeep(Base other_) {
4362        if (!super.equalsDeep(other_))
4363          return false;
4364        if (!(other_ instanceof ConceptPropertyComponent))
4365          return false;
4366        ConceptPropertyComponent o = (ConceptPropertyComponent) other_;
4367        return compareDeep(code, o.code, true) && compareDeep(value, o.value, true);
4368      }
4369
4370      @Override
4371      public boolean equalsShallow(Base other_) {
4372        if (!super.equalsShallow(other_))
4373          return false;
4374        if (!(other_ instanceof ConceptPropertyComponent))
4375          return false;
4376        ConceptPropertyComponent o = (ConceptPropertyComponent) other_;
4377        return compareValues(code, o.code, true);
4378      }
4379
4380      public boolean isEmpty() {
4381        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, value);
4382      }
4383
4384  public String fhirType() {
4385    return "ValueSet.expansion.contains.property";
4386
4387  }
4388
4389  }
4390
4391    /**
4392     * An absolute URI that is used to identify this value set 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 value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers.
4393     */
4394    @Child(name = "url", type = {UriType.class}, order=0, min=0, max=1, modifier=false, summary=true)
4395    @Description(shortDefinition="Canonical identifier for this value set, represented as a URI (globally unique)", formalDefinition="An absolute URI that is used to identify this value set 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 value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers." )
4396    protected UriType url;
4397
4398    /**
4399     * A formal identifier that is used to identify this value set when it is represented in other formats, or referenced in a specification, model, design or an instance.
4400     */
4401    @Child(name = "identifier", type = {Identifier.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
4402    @Description(shortDefinition="Additional identifier for the value set (business identifier)", formalDefinition="A formal identifier that is used to identify this value set when it is represented in other formats, or referenced in a specification, model, design or an instance." )
4403    protected List<Identifier> identifier;
4404
4405    /**
4406     * The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the value set 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.
4407     */
4408    @Child(name = "version", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=true)
4409    @Description(shortDefinition="Business version of the value set", formalDefinition="The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the value set 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." )
4410    protected StringType version;
4411
4412    /**
4413     * A natural language name identifying the value set. This name should be usable as an identifier for the module by machine processing applications such as code generation.
4414     */
4415    @Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true)
4416    @Description(shortDefinition="Name for this value set (computer friendly)", formalDefinition="A natural language name identifying the value set. This name should be usable as an identifier for the module by machine processing applications such as code generation." )
4417    protected StringType name;
4418
4419    /**
4420     * A short, descriptive, user-friendly title for the value set.
4421     */
4422    @Child(name = "title", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=true)
4423    @Description(shortDefinition="Name for this value set (human friendly)", formalDefinition="A short, descriptive, user-friendly title for the value set." )
4424    protected StringType title;
4425
4426    /**
4427     * The status of this value set. Enables tracking the life-cycle of the content. The status of the value set applies to the value set definition (ValueSet.compose) and the associated ValueSet metadata. Expansions do not have a state.
4428     */
4429    @Child(name = "status", type = {CodeType.class}, order=5, min=1, max=1, modifier=true, summary=true)
4430    @Description(shortDefinition="draft | active | retired | unknown", formalDefinition="The status of this value set. Enables tracking the life-cycle of the content. The status of the value set applies to the value set definition (ValueSet.compose) and the associated ValueSet metadata. Expansions do not have a state." )
4431    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/publication-status")
4432    protected Enumeration<PublicationStatus> status;
4433
4434    /**
4435     * A Boolean value to indicate that this value set is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.
4436     */
4437    @Child(name = "experimental", type = {BooleanType.class}, order=6, min=0, max=1, modifier=false, summary=true)
4438    @Description(shortDefinition="For testing purposes, not real usage", formalDefinition="A Boolean value to indicate that this value set is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage." )
4439    protected BooleanType experimental;
4440
4441    /**
4442     * The date (and optionally time) when the value set was created or revised (e.g. the 'content logical definition').
4443     */
4444    @Child(name = "date", type = {DateTimeType.class}, order=7, min=0, max=1, modifier=false, summary=true)
4445    @Description(shortDefinition="Date last changed", formalDefinition="The date (and optionally time) when the value set was created or revised (e.g. the 'content logical definition')." )
4446    protected DateTimeType date;
4447
4448    /**
4449     * The name of the organization or individual that published the value set.
4450     */
4451    @Child(name = "publisher", type = {StringType.class}, order=8, min=0, max=1, modifier=false, summary=true)
4452    @Description(shortDefinition="Name of the publisher (organization or individual)", formalDefinition="The name of the organization or individual that published the value set." )
4453    protected StringType publisher;
4454
4455    /**
4456     * Contact details to assist a user in finding and communicating with the publisher.
4457     */
4458    @Child(name = "contact", type = {ContactDetail.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
4459    @Description(shortDefinition="Contact details for the publisher", formalDefinition="Contact details to assist a user in finding and communicating with the publisher." )
4460    protected List<ContactDetail> contact;
4461
4462    /**
4463     * A free text natural language description of the value set from a consumer's perspective. The textual description specifies the span of meanings for concepts to be included within the Value Set Expansion, and also may specify the intended use and limitations of the Value Set.
4464     */
4465    @Child(name = "description", type = {MarkdownType.class}, order=10, min=0, max=1, modifier=false, summary=false)
4466    @Description(shortDefinition="Natural language description of the value set", formalDefinition="A free text natural language description of the value set from a consumer's perspective. The textual description specifies the span of meanings for concepts to be included within the Value Set Expansion, and also may specify the intended use and limitations of the Value Set." )
4467    protected MarkdownType description;
4468
4469    /**
4470     * 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 value set instances.
4471     */
4472    @Child(name = "useContext", type = {UsageContext.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
4473    @Description(shortDefinition="The context that the content is intended to support", formalDefinition="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 value set instances." )
4474    protected List<UsageContext> useContext;
4475
4476    /**
4477     * A legal or geographic region in which the value set is intended to be used.
4478     */
4479    @Child(name = "jurisdiction", type = {CodeableConcept.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
4480    @Description(shortDefinition="Intended jurisdiction for value set (if applicable)", formalDefinition="A legal or geographic region in which the value set is intended to be used." )
4481    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/jurisdiction")
4482    protected List<CodeableConcept> jurisdiction;
4483
4484    /**
4485     * If this is set to 'true', then no new versions of the content logical definition can be created.  Note: Other metadata might still change.
4486     */
4487    @Child(name = "immutable", type = {BooleanType.class}, order=13, min=0, max=1, modifier=false, summary=true)
4488    @Description(shortDefinition="Indicates whether or not any change to the content logical definition may occur", formalDefinition="If this is set to 'true', then no new versions of the content logical definition can be created.  Note: Other metadata might still change." )
4489    protected BooleanType immutable;
4490
4491    /**
4492     * Explanation of why this value set is needed and why it has been designed as it has.
4493     */
4494    @Child(name = "purpose", type = {MarkdownType.class}, order=14, min=0, max=1, modifier=false, summary=false)
4495    @Description(shortDefinition="Why this value set is defined", formalDefinition="Explanation of why this value set is needed and why it has been designed as it has." )
4496    protected MarkdownType purpose;
4497
4498    /**
4499     * A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set.
4500     */
4501    @Child(name = "copyright", type = {MarkdownType.class}, order=15, min=0, max=1, modifier=false, summary=false)
4502    @Description(shortDefinition="Use and/or publishing restrictions", formalDefinition="A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set." )
4503    protected MarkdownType copyright;
4504
4505    /**
4506     * A set of criteria that define the contents of the value set by including or excluding codes selected from the specified code system(s) that the value set draws from. This is also known as the Content Logical Definition (CLD).
4507     */
4508    @Child(name = "compose", type = {}, order=16, min=0, max=1, modifier=false, summary=false)
4509    @Description(shortDefinition="Content logical definition of the value set (CLD)", formalDefinition="A set of criteria that define the contents of the value set by including or excluding codes selected from the specified code system(s) that the value set draws from. This is also known as the Content Logical Definition (CLD)." )
4510    protected ValueSetComposeComponent compose;
4511
4512    /**
4513     * A value set can also be "expanded", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed.
4514     */
4515    @Child(name = "expansion", type = {}, order=17, min=0, max=1, modifier=false, summary=false)
4516    @Description(shortDefinition="Used when the value set is \"expanded\"", formalDefinition="A value set can also be \"expanded\", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed." )
4517    protected ValueSetExpansionComponent expansion;
4518
4519    private static final long serialVersionUID = 1466998405L;
4520
4521  /**
4522   * Constructor
4523   */
4524    public ValueSet() {
4525      super();
4526    }
4527
4528  /**
4529   * Constructor
4530   */
4531    public ValueSet(PublicationStatus status) {
4532      super();
4533      this.setStatus(status);
4534    }
4535
4536    /**
4537     * @return {@link #url} (An absolute URI that is used to identify this value set 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 value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
4538     */
4539    public UriType getUrlElement() { 
4540      if (this.url == null)
4541        if (Configuration.errorOnAutoCreate())
4542          throw new Error("Attempt to auto-create ValueSet.url");
4543        else if (Configuration.doAutoCreate())
4544          this.url = new UriType(); // bb
4545      return this.url;
4546    }
4547
4548    public boolean hasUrlElement() { 
4549      return this.url != null && !this.url.isEmpty();
4550    }
4551
4552    public boolean hasUrl() { 
4553      return this.url != null && !this.url.isEmpty();
4554    }
4555
4556    /**
4557     * @param value {@link #url} (An absolute URI that is used to identify this value set 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 value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
4558     */
4559    public ValueSet setUrlElement(UriType value) { 
4560      this.url = value;
4561      return this;
4562    }
4563
4564    /**
4565     * @return An absolute URI that is used to identify this value set 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 value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers.
4566     */
4567    public String getUrl() { 
4568      return this.url == null ? null : this.url.getValue();
4569    }
4570
4571    /**
4572     * @param value An absolute URI that is used to identify this value set 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 value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers.
4573     */
4574    public ValueSet setUrl(String value) { 
4575      if (Utilities.noString(value))
4576        this.url = null;
4577      else {
4578        if (this.url == null)
4579          this.url = new UriType();
4580        this.url.setValue(value);
4581      }
4582      return this;
4583    }
4584
4585    /**
4586     * @return {@link #identifier} (A formal identifier that is used to identify this value set when it is represented in other formats, or referenced in a specification, model, design or an instance.)
4587     */
4588    public List<Identifier> getIdentifier() { 
4589      if (this.identifier == null)
4590        this.identifier = new ArrayList<Identifier>();
4591      return this.identifier;
4592    }
4593
4594    /**
4595     * @return Returns a reference to <code>this</code> for easy method chaining
4596     */
4597    public ValueSet setIdentifier(List<Identifier> theIdentifier) { 
4598      this.identifier = theIdentifier;
4599      return this;
4600    }
4601
4602    public boolean hasIdentifier() { 
4603      if (this.identifier == null)
4604        return false;
4605      for (Identifier item : this.identifier)
4606        if (!item.isEmpty())
4607          return true;
4608      return false;
4609    }
4610
4611    public Identifier addIdentifier() { //3
4612      Identifier t = new Identifier();
4613      if (this.identifier == null)
4614        this.identifier = new ArrayList<Identifier>();
4615      this.identifier.add(t);
4616      return t;
4617    }
4618
4619    public ValueSet addIdentifier(Identifier t) { //3
4620      if (t == null)
4621        return this;
4622      if (this.identifier == null)
4623        this.identifier = new ArrayList<Identifier>();
4624      this.identifier.add(t);
4625      return this;
4626    }
4627
4628    /**
4629     * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3}
4630     */
4631    public Identifier getIdentifierFirstRep() { 
4632      if (getIdentifier().isEmpty()) {
4633        addIdentifier();
4634      }
4635      return getIdentifier().get(0);
4636    }
4637
4638    /**
4639     * @return {@link #version} (The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the value set 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.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
4640     */
4641    public StringType getVersionElement() { 
4642      if (this.version == null)
4643        if (Configuration.errorOnAutoCreate())
4644          throw new Error("Attempt to auto-create ValueSet.version");
4645        else if (Configuration.doAutoCreate())
4646          this.version = new StringType(); // bb
4647      return this.version;
4648    }
4649
4650    public boolean hasVersionElement() { 
4651      return this.version != null && !this.version.isEmpty();
4652    }
4653
4654    public boolean hasVersion() { 
4655      return this.version != null && !this.version.isEmpty();
4656    }
4657
4658    /**
4659     * @param value {@link #version} (The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the value set 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.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
4660     */
4661    public ValueSet setVersionElement(StringType value) { 
4662      this.version = value;
4663      return this;
4664    }
4665
4666    /**
4667     * @return The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the value set 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.
4668     */
4669    public String getVersion() { 
4670      return this.version == null ? null : this.version.getValue();
4671    }
4672
4673    /**
4674     * @param value The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the value set 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.
4675     */
4676    public ValueSet setVersion(String value) { 
4677      if (Utilities.noString(value))
4678        this.version = null;
4679      else {
4680        if (this.version == null)
4681          this.version = new StringType();
4682        this.version.setValue(value);
4683      }
4684      return this;
4685    }
4686
4687    /**
4688     * @return {@link #name} (A natural language name identifying the value set. 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
4689     */
4690    public StringType getNameElement() { 
4691      if (this.name == null)
4692        if (Configuration.errorOnAutoCreate())
4693          throw new Error("Attempt to auto-create ValueSet.name");
4694        else if (Configuration.doAutoCreate())
4695          this.name = new StringType(); // bb
4696      return this.name;
4697    }
4698
4699    public boolean hasNameElement() { 
4700      return this.name != null && !this.name.isEmpty();
4701    }
4702
4703    public boolean hasName() { 
4704      return this.name != null && !this.name.isEmpty();
4705    }
4706
4707    /**
4708     * @param value {@link #name} (A natural language name identifying the value set. 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
4709     */
4710    public ValueSet setNameElement(StringType value) { 
4711      this.name = value;
4712      return this;
4713    }
4714
4715    /**
4716     * @return A natural language name identifying the value set. This name should be usable as an identifier for the module by machine processing applications such as code generation.
4717     */
4718    public String getName() { 
4719      return this.name == null ? null : this.name.getValue();
4720    }
4721
4722    /**
4723     * @param value A natural language name identifying the value set. This name should be usable as an identifier for the module by machine processing applications such as code generation.
4724     */
4725    public ValueSet setName(String value) { 
4726      if (Utilities.noString(value))
4727        this.name = null;
4728      else {
4729        if (this.name == null)
4730          this.name = new StringType();
4731        this.name.setValue(value);
4732      }
4733      return this;
4734    }
4735
4736    /**
4737     * @return {@link #title} (A short, descriptive, user-friendly title for the value set.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
4738     */
4739    public StringType getTitleElement() { 
4740      if (this.title == null)
4741        if (Configuration.errorOnAutoCreate())
4742          throw new Error("Attempt to auto-create ValueSet.title");
4743        else if (Configuration.doAutoCreate())
4744          this.title = new StringType(); // bb
4745      return this.title;
4746    }
4747
4748    public boolean hasTitleElement() { 
4749      return this.title != null && !this.title.isEmpty();
4750    }
4751
4752    public boolean hasTitle() { 
4753      return this.title != null && !this.title.isEmpty();
4754    }
4755
4756    /**
4757     * @param value {@link #title} (A short, descriptive, user-friendly title for the value set.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
4758     */
4759    public ValueSet setTitleElement(StringType value) { 
4760      this.title = value;
4761      return this;
4762    }
4763
4764    /**
4765     * @return A short, descriptive, user-friendly title for the value set.
4766     */
4767    public String getTitle() { 
4768      return this.title == null ? null : this.title.getValue();
4769    }
4770
4771    /**
4772     * @param value A short, descriptive, user-friendly title for the value set.
4773     */
4774    public ValueSet setTitle(String value) { 
4775      if (Utilities.noString(value))
4776        this.title = null;
4777      else {
4778        if (this.title == null)
4779          this.title = new StringType();
4780        this.title.setValue(value);
4781      }
4782      return this;
4783    }
4784
4785    /**
4786     * @return {@link #status} (The status of this value set. Enables tracking the life-cycle of the content. The status of the value set applies to the value set definition (ValueSet.compose) and the associated ValueSet metadata. Expansions do not have a state.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
4787     */
4788    public Enumeration<PublicationStatus> getStatusElement() { 
4789      if (this.status == null)
4790        if (Configuration.errorOnAutoCreate())
4791          throw new Error("Attempt to auto-create ValueSet.status");
4792        else if (Configuration.doAutoCreate())
4793          this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); // bb
4794      return this.status;
4795    }
4796
4797    public boolean hasStatusElement() { 
4798      return this.status != null && !this.status.isEmpty();
4799    }
4800
4801    public boolean hasStatus() { 
4802      return this.status != null && !this.status.isEmpty();
4803    }
4804
4805    /**
4806     * @param value {@link #status} (The status of this value set. Enables tracking the life-cycle of the content. The status of the value set applies to the value set definition (ValueSet.compose) and the associated ValueSet metadata. Expansions do not have a state.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
4807     */
4808    public ValueSet setStatusElement(Enumeration<PublicationStatus> value) { 
4809      this.status = value;
4810      return this;
4811    }
4812
4813    /**
4814     * @return The status of this value set. Enables tracking the life-cycle of the content. The status of the value set applies to the value set definition (ValueSet.compose) and the associated ValueSet metadata. Expansions do not have a state.
4815     */
4816    public PublicationStatus getStatus() { 
4817      return this.status == null ? null : this.status.getValue();
4818    }
4819
4820    /**
4821     * @param value The status of this value set. Enables tracking the life-cycle of the content. The status of the value set applies to the value set definition (ValueSet.compose) and the associated ValueSet metadata. Expansions do not have a state.
4822     */
4823    public ValueSet setStatus(PublicationStatus value) { 
4824        if (this.status == null)
4825          this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory());
4826        this.status.setValue(value);
4827      return this;
4828    }
4829
4830    /**
4831     * @return {@link #experimental} (A Boolean value to indicate that this value set is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value
4832     */
4833    public BooleanType getExperimentalElement() { 
4834      if (this.experimental == null)
4835        if (Configuration.errorOnAutoCreate())
4836          throw new Error("Attempt to auto-create ValueSet.experimental");
4837        else if (Configuration.doAutoCreate())
4838          this.experimental = new BooleanType(); // bb
4839      return this.experimental;
4840    }
4841
4842    public boolean hasExperimentalElement() { 
4843      return this.experimental != null && !this.experimental.isEmpty();
4844    }
4845
4846    public boolean hasExperimental() { 
4847      return this.experimental != null && !this.experimental.isEmpty();
4848    }
4849
4850    /**
4851     * @param value {@link #experimental} (A Boolean value to indicate that this value set is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value
4852     */
4853    public ValueSet setExperimentalElement(BooleanType value) { 
4854      this.experimental = value;
4855      return this;
4856    }
4857
4858    /**
4859     * @return A Boolean value to indicate that this value set is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.
4860     */
4861    public boolean getExperimental() { 
4862      return this.experimental == null || this.experimental.isEmpty() ? false : this.experimental.getValue();
4863    }
4864
4865    /**
4866     * @param value A Boolean value to indicate that this value set is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.
4867     */
4868    public ValueSet setExperimental(boolean value) { 
4869        if (this.experimental == null)
4870          this.experimental = new BooleanType();
4871        this.experimental.setValue(value);
4872      return this;
4873    }
4874
4875    /**
4876     * @return {@link #date} (The date (and optionally time) when the value set was created or revised (e.g. the 'content logical definition').). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
4877     */
4878    public DateTimeType getDateElement() { 
4879      if (this.date == null)
4880        if (Configuration.errorOnAutoCreate())
4881          throw new Error("Attempt to auto-create ValueSet.date");
4882        else if (Configuration.doAutoCreate())
4883          this.date = new DateTimeType(); // bb
4884      return this.date;
4885    }
4886
4887    public boolean hasDateElement() { 
4888      return this.date != null && !this.date.isEmpty();
4889    }
4890
4891    public boolean hasDate() { 
4892      return this.date != null && !this.date.isEmpty();
4893    }
4894
4895    /**
4896     * @param value {@link #date} (The date (and optionally time) when the value set was created or revised (e.g. the 'content logical definition').). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
4897     */
4898    public ValueSet setDateElement(DateTimeType value) { 
4899      this.date = value;
4900      return this;
4901    }
4902
4903    /**
4904     * @return The date (and optionally time) when the value set was created or revised (e.g. the 'content logical definition').
4905     */
4906    public Date getDate() { 
4907      return this.date == null ? null : this.date.getValue();
4908    }
4909
4910    /**
4911     * @param value The date (and optionally time) when the value set was created or revised (e.g. the 'content logical definition').
4912     */
4913    public ValueSet setDate(Date value) { 
4914      if (value == null)
4915        this.date = null;
4916      else {
4917        if (this.date == null)
4918          this.date = new DateTimeType();
4919        this.date.setValue(value);
4920      }
4921      return this;
4922    }
4923
4924    /**
4925     * @return {@link #publisher} (The name of the organization or individual that published the value set.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value
4926     */
4927    public StringType getPublisherElement() { 
4928      if (this.publisher == null)
4929        if (Configuration.errorOnAutoCreate())
4930          throw new Error("Attempt to auto-create ValueSet.publisher");
4931        else if (Configuration.doAutoCreate())
4932          this.publisher = new StringType(); // bb
4933      return this.publisher;
4934    }
4935
4936    public boolean hasPublisherElement() { 
4937      return this.publisher != null && !this.publisher.isEmpty();
4938    }
4939
4940    public boolean hasPublisher() { 
4941      return this.publisher != null && !this.publisher.isEmpty();
4942    }
4943
4944    /**
4945     * @param value {@link #publisher} (The name of the organization or individual that published the value set.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value
4946     */
4947    public ValueSet setPublisherElement(StringType value) { 
4948      this.publisher = value;
4949      return this;
4950    }
4951
4952    /**
4953     * @return The name of the organization or individual that published the value set.
4954     */
4955    public String getPublisher() { 
4956      return this.publisher == null ? null : this.publisher.getValue();
4957    }
4958
4959    /**
4960     * @param value The name of the organization or individual that published the value set.
4961     */
4962    public ValueSet setPublisher(String value) { 
4963      if (Utilities.noString(value))
4964        this.publisher = null;
4965      else {
4966        if (this.publisher == null)
4967          this.publisher = new StringType();
4968        this.publisher.setValue(value);
4969      }
4970      return this;
4971    }
4972
4973    /**
4974     * @return {@link #contact} (Contact details to assist a user in finding and communicating with the publisher.)
4975     */
4976    public List<ContactDetail> getContact() { 
4977      if (this.contact == null)
4978        this.contact = new ArrayList<ContactDetail>();
4979      return this.contact;
4980    }
4981
4982    /**
4983     * @return Returns a reference to <code>this</code> for easy method chaining
4984     */
4985    public ValueSet setContact(List<ContactDetail> theContact) { 
4986      this.contact = theContact;
4987      return this;
4988    }
4989
4990    public boolean hasContact() { 
4991      if (this.contact == null)
4992        return false;
4993      for (ContactDetail item : this.contact)
4994        if (!item.isEmpty())
4995          return true;
4996      return false;
4997    }
4998
4999    public ContactDetail addContact() { //3
5000      ContactDetail t = new ContactDetail();
5001      if (this.contact == null)
5002        this.contact = new ArrayList<ContactDetail>();
5003      this.contact.add(t);
5004      return t;
5005    }
5006
5007    public ValueSet addContact(ContactDetail t) { //3
5008      if (t == null)
5009        return this;
5010      if (this.contact == null)
5011        this.contact = new ArrayList<ContactDetail>();
5012      this.contact.add(t);
5013      return this;
5014    }
5015
5016    /**
5017     * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist {3}
5018     */
5019    public ContactDetail getContactFirstRep() { 
5020      if (getContact().isEmpty()) {
5021        addContact();
5022      }
5023      return getContact().get(0);
5024    }
5025
5026    /**
5027     * @return {@link #description} (A free text natural language description of the value set from a consumer's perspective. The textual description specifies the span of meanings for concepts to be included within the Value Set Expansion, and also may specify the intended use and limitations of the Value Set.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
5028     */
5029    public MarkdownType getDescriptionElement() { 
5030      if (this.description == null)
5031        if (Configuration.errorOnAutoCreate())
5032          throw new Error("Attempt to auto-create ValueSet.description");
5033        else if (Configuration.doAutoCreate())
5034          this.description = new MarkdownType(); // bb
5035      return this.description;
5036    }
5037
5038    public boolean hasDescriptionElement() { 
5039      return this.description != null && !this.description.isEmpty();
5040    }
5041
5042    public boolean hasDescription() { 
5043      return this.description != null && !this.description.isEmpty();
5044    }
5045
5046    /**
5047     * @param value {@link #description} (A free text natural language description of the value set from a consumer's perspective. The textual description specifies the span of meanings for concepts to be included within the Value Set Expansion, and also may specify the intended use and limitations of the Value Set.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
5048     */
5049    public ValueSet setDescriptionElement(MarkdownType value) { 
5050      this.description = value;
5051      return this;
5052    }
5053
5054    /**
5055     * @return A free text natural language description of the value set from a consumer's perspective. The textual description specifies the span of meanings for concepts to be included within the Value Set Expansion, and also may specify the intended use and limitations of the Value Set.
5056     */
5057    public String getDescription() { 
5058      return this.description == null ? null : this.description.getValue();
5059    }
5060
5061    /**
5062     * @param value A free text natural language description of the value set from a consumer's perspective. The textual description specifies the span of meanings for concepts to be included within the Value Set Expansion, and also may specify the intended use and limitations of the Value Set.
5063     */
5064    public ValueSet setDescription(String value) { 
5065      if (value == null)
5066        this.description = null;
5067      else {
5068        if (this.description == null)
5069          this.description = new MarkdownType();
5070        this.description.setValue(value);
5071      }
5072      return this;
5073    }
5074
5075    /**
5076     * @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 value set instances.)
5077     */
5078    public List<UsageContext> getUseContext() { 
5079      if (this.useContext == null)
5080        this.useContext = new ArrayList<UsageContext>();
5081      return this.useContext;
5082    }
5083
5084    /**
5085     * @return Returns a reference to <code>this</code> for easy method chaining
5086     */
5087    public ValueSet setUseContext(List<UsageContext> theUseContext) { 
5088      this.useContext = theUseContext;
5089      return this;
5090    }
5091
5092    public boolean hasUseContext() { 
5093      if (this.useContext == null)
5094        return false;
5095      for (UsageContext item : this.useContext)
5096        if (!item.isEmpty())
5097          return true;
5098      return false;
5099    }
5100
5101    public UsageContext addUseContext() { //3
5102      UsageContext t = new UsageContext();
5103      if (this.useContext == null)
5104        this.useContext = new ArrayList<UsageContext>();
5105      this.useContext.add(t);
5106      return t;
5107    }
5108
5109    public ValueSet addUseContext(UsageContext t) { //3
5110      if (t == null)
5111        return this;
5112      if (this.useContext == null)
5113        this.useContext = new ArrayList<UsageContext>();
5114      this.useContext.add(t);
5115      return this;
5116    }
5117
5118    /**
5119     * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist {3}
5120     */
5121    public UsageContext getUseContextFirstRep() { 
5122      if (getUseContext().isEmpty()) {
5123        addUseContext();
5124      }
5125      return getUseContext().get(0);
5126    }
5127
5128    /**
5129     * @return {@link #jurisdiction} (A legal or geographic region in which the value set is intended to be used.)
5130     */
5131    public List<CodeableConcept> getJurisdiction() { 
5132      if (this.jurisdiction == null)
5133        this.jurisdiction = new ArrayList<CodeableConcept>();
5134      return this.jurisdiction;
5135    }
5136
5137    /**
5138     * @return Returns a reference to <code>this</code> for easy method chaining
5139     */
5140    public ValueSet setJurisdiction(List<CodeableConcept> theJurisdiction) { 
5141      this.jurisdiction = theJurisdiction;
5142      return this;
5143    }
5144
5145    public boolean hasJurisdiction() { 
5146      if (this.jurisdiction == null)
5147        return false;
5148      for (CodeableConcept item : this.jurisdiction)
5149        if (!item.isEmpty())
5150          return true;
5151      return false;
5152    }
5153
5154    public CodeableConcept addJurisdiction() { //3
5155      CodeableConcept t = new CodeableConcept();
5156      if (this.jurisdiction == null)
5157        this.jurisdiction = new ArrayList<CodeableConcept>();
5158      this.jurisdiction.add(t);
5159      return t;
5160    }
5161
5162    public ValueSet addJurisdiction(CodeableConcept t) { //3
5163      if (t == null)
5164        return this;
5165      if (this.jurisdiction == null)
5166        this.jurisdiction = new ArrayList<CodeableConcept>();
5167      this.jurisdiction.add(t);
5168      return this;
5169    }
5170
5171    /**
5172     * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist {3}
5173     */
5174    public CodeableConcept getJurisdictionFirstRep() { 
5175      if (getJurisdiction().isEmpty()) {
5176        addJurisdiction();
5177      }
5178      return getJurisdiction().get(0);
5179    }
5180
5181    /**
5182     * @return {@link #immutable} (If this is set to 'true', then no new versions of the content logical definition can be created.  Note: Other metadata might still change.). This is the underlying object with id, value and extensions. The accessor "getImmutable" gives direct access to the value
5183     */
5184    public BooleanType getImmutableElement() { 
5185      if (this.immutable == null)
5186        if (Configuration.errorOnAutoCreate())
5187          throw new Error("Attempt to auto-create ValueSet.immutable");
5188        else if (Configuration.doAutoCreate())
5189          this.immutable = new BooleanType(); // bb
5190      return this.immutable;
5191    }
5192
5193    public boolean hasImmutableElement() { 
5194      return this.immutable != null && !this.immutable.isEmpty();
5195    }
5196
5197    public boolean hasImmutable() { 
5198      return this.immutable != null && !this.immutable.isEmpty();
5199    }
5200
5201    /**
5202     * @param value {@link #immutable} (If this is set to 'true', then no new versions of the content logical definition can be created.  Note: Other metadata might still change.). This is the underlying object with id, value and extensions. The accessor "getImmutable" gives direct access to the value
5203     */
5204    public ValueSet setImmutableElement(BooleanType value) { 
5205      this.immutable = value;
5206      return this;
5207    }
5208
5209    /**
5210     * @return If this is set to 'true', then no new versions of the content logical definition can be created.  Note: Other metadata might still change.
5211     */
5212    public boolean getImmutable() { 
5213      return this.immutable == null || this.immutable.isEmpty() ? false : this.immutable.getValue();
5214    }
5215
5216    /**
5217     * @param value If this is set to 'true', then no new versions of the content logical definition can be created.  Note: Other metadata might still change.
5218     */
5219    public ValueSet setImmutable(boolean value) { 
5220        if (this.immutable == null)
5221          this.immutable = new BooleanType();
5222        this.immutable.setValue(value);
5223      return this;
5224    }
5225
5226    /**
5227     * @return {@link #purpose} (Explanation of why this value set is needed and why it has been designed as it has.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value
5228     */
5229    public MarkdownType getPurposeElement() { 
5230      if (this.purpose == null)
5231        if (Configuration.errorOnAutoCreate())
5232          throw new Error("Attempt to auto-create ValueSet.purpose");
5233        else if (Configuration.doAutoCreate())
5234          this.purpose = new MarkdownType(); // bb
5235      return this.purpose;
5236    }
5237
5238    public boolean hasPurposeElement() { 
5239      return this.purpose != null && !this.purpose.isEmpty();
5240    }
5241
5242    public boolean hasPurpose() { 
5243      return this.purpose != null && !this.purpose.isEmpty();
5244    }
5245
5246    /**
5247     * @param value {@link #purpose} (Explanation of why this value set is needed and why it has been designed as it has.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value
5248     */
5249    public ValueSet setPurposeElement(MarkdownType value) { 
5250      this.purpose = value;
5251      return this;
5252    }
5253
5254    /**
5255     * @return Explanation of why this value set is needed and why it has been designed as it has.
5256     */
5257    public String getPurpose() { 
5258      return this.purpose == null ? null : this.purpose.getValue();
5259    }
5260
5261    /**
5262     * @param value Explanation of why this value set is needed and why it has been designed as it has.
5263     */
5264    public ValueSet setPurpose(String value) { 
5265      if (value == null)
5266        this.purpose = null;
5267      else {
5268        if (this.purpose == null)
5269          this.purpose = new MarkdownType();
5270        this.purpose.setValue(value);
5271      }
5272      return this;
5273    }
5274
5275    /**
5276     * @return {@link #copyright} (A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value
5277     */
5278    public MarkdownType getCopyrightElement() { 
5279      if (this.copyright == null)
5280        if (Configuration.errorOnAutoCreate())
5281          throw new Error("Attempt to auto-create ValueSet.copyright");
5282        else if (Configuration.doAutoCreate())
5283          this.copyright = new MarkdownType(); // bb
5284      return this.copyright;
5285    }
5286
5287    public boolean hasCopyrightElement() { 
5288      return this.copyright != null && !this.copyright.isEmpty();
5289    }
5290
5291    public boolean hasCopyright() { 
5292      return this.copyright != null && !this.copyright.isEmpty();
5293    }
5294
5295    /**
5296     * @param value {@link #copyright} (A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value
5297     */
5298    public ValueSet setCopyrightElement(MarkdownType value) { 
5299      this.copyright = value;
5300      return this;
5301    }
5302
5303    /**
5304     * @return A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set.
5305     */
5306    public String getCopyright() { 
5307      return this.copyright == null ? null : this.copyright.getValue();
5308    }
5309
5310    /**
5311     * @param value A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set.
5312     */
5313    public ValueSet setCopyright(String value) { 
5314      if (value == null)
5315        this.copyright = null;
5316      else {
5317        if (this.copyright == null)
5318          this.copyright = new MarkdownType();
5319        this.copyright.setValue(value);
5320      }
5321      return this;
5322    }
5323
5324    /**
5325     * @return {@link #compose} (A set of criteria that define the contents of the value set by including or excluding codes selected from the specified code system(s) that the value set draws from. This is also known as the Content Logical Definition (CLD).)
5326     */
5327    public ValueSetComposeComponent getCompose() { 
5328      if (this.compose == null)
5329        if (Configuration.errorOnAutoCreate())
5330          throw new Error("Attempt to auto-create ValueSet.compose");
5331        else if (Configuration.doAutoCreate())
5332          this.compose = new ValueSetComposeComponent(); // cc
5333      return this.compose;
5334    }
5335
5336    public boolean hasCompose() { 
5337      return this.compose != null && !this.compose.isEmpty();
5338    }
5339
5340    /**
5341     * @param value {@link #compose} (A set of criteria that define the contents of the value set by including or excluding codes selected from the specified code system(s) that the value set draws from. This is also known as the Content Logical Definition (CLD).)
5342     */
5343    public ValueSet setCompose(ValueSetComposeComponent value) { 
5344      this.compose = value;
5345      return this;
5346    }
5347
5348    /**
5349     * @return {@link #expansion} (A value set can also be "expanded", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed.)
5350     */
5351    public ValueSetExpansionComponent getExpansion() { 
5352      if (this.expansion == null)
5353        if (Configuration.errorOnAutoCreate())
5354          throw new Error("Attempt to auto-create ValueSet.expansion");
5355        else if (Configuration.doAutoCreate())
5356          this.expansion = new ValueSetExpansionComponent(); // cc
5357      return this.expansion;
5358    }
5359
5360    public boolean hasExpansion() { 
5361      return this.expansion != null && !this.expansion.isEmpty();
5362    }
5363
5364    /**
5365     * @param value {@link #expansion} (A value set can also be "expanded", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed.)
5366     */
5367    public ValueSet setExpansion(ValueSetExpansionComponent value) { 
5368      this.expansion = value;
5369      return this;
5370    }
5371
5372      protected void listChildren(List<Property> children) {
5373        super.listChildren(children);
5374        children.add(new Property("url", "uri", "An absolute URI that is used to identify this value set 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 value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers.", 0, 1, url));
5375        children.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this value set when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier));
5376        children.add(new Property("version", "string", "The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the value set 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.", 0, 1, version));
5377        children.add(new Property("name", "string", "A natural language name identifying the value set. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name));
5378        children.add(new Property("title", "string", "A short, descriptive, user-friendly title for the value set.", 0, 1, title));
5379        children.add(new Property("status", "code", "The status of this value set. Enables tracking the life-cycle of the content. The status of the value set applies to the value set definition (ValueSet.compose) and the associated ValueSet metadata. Expansions do not have a state.", 0, 1, status));
5380        children.add(new Property("experimental", "boolean", "A Boolean value to indicate that this value set is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental));
5381        children.add(new Property("date", "dateTime", "The date (and optionally time) when the value set was created or revised (e.g. the 'content logical definition').", 0, 1, date));
5382        children.add(new Property("publisher", "string", "The name of the organization or individual that published the value set.", 0, 1, publisher));
5383        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));
5384        children.add(new Property("description", "markdown", "A free text natural language description of the value set from a consumer's perspective. The textual description specifies the span of meanings for concepts to be included within the Value Set Expansion, and also may specify the intended use and limitations of the Value Set.", 0, 1, description));
5385        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 value set instances.", 0, java.lang.Integer.MAX_VALUE, useContext));
5386        children.add(new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the value set is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction));
5387        children.add(new Property("immutable", "boolean", "If this is set to 'true', then no new versions of the content logical definition can be created.  Note: Other metadata might still change.", 0, 1, immutable));
5388        children.add(new Property("purpose", "markdown", "Explanation of why this value set is needed and why it has been designed as it has.", 0, 1, purpose));
5389        children.add(new Property("copyright", "markdown", "A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set.", 0, 1, copyright));
5390        children.add(new Property("compose", "", "A set of criteria that define the contents of the value set by including or excluding codes selected from the specified code system(s) that the value set draws from. This is also known as the Content Logical Definition (CLD).", 0, 1, compose));
5391        children.add(new Property("expansion", "", "A value set can also be \"expanded\", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed.", 0, 1, expansion));
5392      }
5393
5394      @Override
5395      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
5396        switch (_hash) {
5397        case 116079: /*url*/  return new Property("url", "uri", "An absolute URI that is used to identify this value set 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 value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers.", 0, 1, url);
5398        case -1618432855: /*identifier*/  return new Property("identifier", "Identifier", "A formal identifier that is used to identify this value set when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier);
5399        case 351608024: /*version*/  return new Property("version", "string", "The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the value set 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.", 0, 1, version);
5400        case 3373707: /*name*/  return new Property("name", "string", "A natural language name identifying the value set. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name);
5401        case 110371416: /*title*/  return new Property("title", "string", "A short, descriptive, user-friendly title for the value set.", 0, 1, title);
5402        case -892481550: /*status*/  return new Property("status", "code", "The status of this value set. Enables tracking the life-cycle of the content. The status of the value set applies to the value set definition (ValueSet.compose) and the associated ValueSet metadata. Expansions do not have a state.", 0, 1, status);
5403        case -404562712: /*experimental*/  return new Property("experimental", "boolean", "A Boolean value to indicate that this value set is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental);
5404        case 3076014: /*date*/  return new Property("date", "dateTime", "The date (and optionally time) when the value set was created or revised (e.g. the 'content logical definition').", 0, 1, date);
5405        case 1447404028: /*publisher*/  return new Property("publisher", "string", "The name of the organization or individual that published the value set.", 0, 1, publisher);
5406        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);
5407        case -1724546052: /*description*/  return new Property("description", "markdown", "A free text natural language description of the value set from a consumer's perspective. The textual description specifies the span of meanings for concepts to be included within the Value Set Expansion, and also may specify the intended use and limitations of the Value Set.", 0, 1, description);
5408        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 value set instances.", 0, java.lang.Integer.MAX_VALUE, useContext);
5409        case -507075711: /*jurisdiction*/  return new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the value set is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction);
5410        case 1596987778: /*immutable*/  return new Property("immutable", "boolean", "If this is set to 'true', then no new versions of the content logical definition can be created.  Note: Other metadata might still change.", 0, 1, immutable);
5411        case -220463842: /*purpose*/  return new Property("purpose", "markdown", "Explanation of why this value set is needed and why it has been designed as it has.", 0, 1, purpose);
5412        case 1522889671: /*copyright*/  return new Property("copyright", "markdown", "A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set.", 0, 1, copyright);
5413        case 950497682: /*compose*/  return new Property("compose", "", "A set of criteria that define the contents of the value set by including or excluding codes selected from the specified code system(s) that the value set draws from. This is also known as the Content Logical Definition (CLD).", 0, 1, compose);
5414        case 17878207: /*expansion*/  return new Property("expansion", "", "A value set can also be \"expanded\", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed.", 0, 1, expansion);
5415        default: return super.getNamedProperty(_hash, _name, _checkValid);
5416        }
5417
5418      }
5419
5420      @Override
5421      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
5422        switch (hash) {
5423        case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType
5424        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier
5425        case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType
5426        case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType
5427        case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType
5428        case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<PublicationStatus>
5429        case -404562712: /*experimental*/ return this.experimental == null ? new Base[0] : new Base[] {this.experimental}; // BooleanType
5430        case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType
5431        case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // StringType
5432        case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail
5433        case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType
5434        case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext
5435        case -507075711: /*jurisdiction*/ return this.jurisdiction == null ? new Base[0] : this.jurisdiction.toArray(new Base[this.jurisdiction.size()]); // CodeableConcept
5436        case 1596987778: /*immutable*/ return this.immutable == null ? new Base[0] : new Base[] {this.immutable}; // BooleanType
5437        case -220463842: /*purpose*/ return this.purpose == null ? new Base[0] : new Base[] {this.purpose}; // MarkdownType
5438        case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // MarkdownType
5439        case 950497682: /*compose*/ return this.compose == null ? new Base[0] : new Base[] {this.compose}; // ValueSetComposeComponent
5440        case 17878207: /*expansion*/ return this.expansion == null ? new Base[0] : new Base[] {this.expansion}; // ValueSetExpansionComponent
5441        default: return super.getProperty(hash, name, checkValid);
5442        }
5443
5444      }
5445
5446      @Override
5447      public Base setProperty(int hash, String name, Base value) throws FHIRException {
5448        switch (hash) {
5449        case 116079: // url
5450          this.url = TypeConvertor.castToUri(value); // UriType
5451          return value;
5452        case -1618432855: // identifier
5453          this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier
5454          return value;
5455        case 351608024: // version
5456          this.version = TypeConvertor.castToString(value); // StringType
5457          return value;
5458        case 3373707: // name
5459          this.name = TypeConvertor.castToString(value); // StringType
5460          return value;
5461        case 110371416: // title
5462          this.title = TypeConvertor.castToString(value); // StringType
5463          return value;
5464        case -892481550: // status
5465          value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value));
5466          this.status = (Enumeration) value; // Enumeration<PublicationStatus>
5467          return value;
5468        case -404562712: // experimental
5469          this.experimental = TypeConvertor.castToBoolean(value); // BooleanType
5470          return value;
5471        case 3076014: // date
5472          this.date = TypeConvertor.castToDateTime(value); // DateTimeType
5473          return value;
5474        case 1447404028: // publisher
5475          this.publisher = TypeConvertor.castToString(value); // StringType
5476          return value;
5477        case 951526432: // contact
5478          this.getContact().add(TypeConvertor.castToContactDetail(value)); // ContactDetail
5479          return value;
5480        case -1724546052: // description
5481          this.description = TypeConvertor.castToMarkdown(value); // MarkdownType
5482          return value;
5483        case -669707736: // useContext
5484          this.getUseContext().add(TypeConvertor.castToUsageContext(value)); // UsageContext
5485          return value;
5486        case -507075711: // jurisdiction
5487          this.getJurisdiction().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept
5488          return value;
5489        case 1596987778: // immutable
5490          this.immutable = TypeConvertor.castToBoolean(value); // BooleanType
5491          return value;
5492        case -220463842: // purpose
5493          this.purpose = TypeConvertor.castToMarkdown(value); // MarkdownType
5494          return value;
5495        case 1522889671: // copyright
5496          this.copyright = TypeConvertor.castToMarkdown(value); // MarkdownType
5497          return value;
5498        case 950497682: // compose
5499          this.compose = (ValueSetComposeComponent) value; // ValueSetComposeComponent
5500          return value;
5501        case 17878207: // expansion
5502          this.expansion = (ValueSetExpansionComponent) value; // ValueSetExpansionComponent
5503          return value;
5504        default: return super.setProperty(hash, name, value);
5505        }
5506
5507      }
5508
5509      @Override
5510      public Base setProperty(String name, Base value) throws FHIRException {
5511        if (name.equals("url")) {
5512          this.url = TypeConvertor.castToUri(value); // UriType
5513        } else if (name.equals("identifier")) {
5514          this.getIdentifier().add(TypeConvertor.castToIdentifier(value));
5515        } else if (name.equals("version")) {
5516          this.version = TypeConvertor.castToString(value); // StringType
5517        } else if (name.equals("name")) {
5518          this.name = TypeConvertor.castToString(value); // StringType
5519        } else if (name.equals("title")) {
5520          this.title = TypeConvertor.castToString(value); // StringType
5521        } else if (name.equals("status")) {
5522          value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value));
5523          this.status = (Enumeration) value; // Enumeration<PublicationStatus>
5524        } else if (name.equals("experimental")) {
5525          this.experimental = TypeConvertor.castToBoolean(value); // BooleanType
5526        } else if (name.equals("date")) {
5527          this.date = TypeConvertor.castToDateTime(value); // DateTimeType
5528        } else if (name.equals("publisher")) {
5529          this.publisher = TypeConvertor.castToString(value); // StringType
5530        } else if (name.equals("contact")) {
5531          this.getContact().add(TypeConvertor.castToContactDetail(value));
5532        } else if (name.equals("description")) {
5533          this.description = TypeConvertor.castToMarkdown(value); // MarkdownType
5534        } else if (name.equals("useContext")) {
5535          this.getUseContext().add(TypeConvertor.castToUsageContext(value));
5536        } else if (name.equals("jurisdiction")) {
5537          this.getJurisdiction().add(TypeConvertor.castToCodeableConcept(value));
5538        } else if (name.equals("immutable")) {
5539          this.immutable = TypeConvertor.castToBoolean(value); // BooleanType
5540        } else if (name.equals("purpose")) {
5541          this.purpose = TypeConvertor.castToMarkdown(value); // MarkdownType
5542        } else if (name.equals("copyright")) {
5543          this.copyright = TypeConvertor.castToMarkdown(value); // MarkdownType
5544        } else if (name.equals("compose")) {
5545          this.compose = (ValueSetComposeComponent) value; // ValueSetComposeComponent
5546        } else if (name.equals("expansion")) {
5547          this.expansion = (ValueSetExpansionComponent) value; // ValueSetExpansionComponent
5548        } else
5549          return super.setProperty(name, value);
5550        return value;
5551      }
5552
5553      @Override
5554      public Base makeProperty(int hash, String name) throws FHIRException {
5555        switch (hash) {
5556        case 116079:  return getUrlElement();
5557        case -1618432855:  return addIdentifier(); 
5558        case 351608024:  return getVersionElement();
5559        case 3373707:  return getNameElement();
5560        case 110371416:  return getTitleElement();
5561        case -892481550:  return getStatusElement();
5562        case -404562712:  return getExperimentalElement();
5563        case 3076014:  return getDateElement();
5564        case 1447404028:  return getPublisherElement();
5565        case 951526432:  return addContact(); 
5566        case -1724546052:  return getDescriptionElement();
5567        case -669707736:  return addUseContext(); 
5568        case -507075711:  return addJurisdiction(); 
5569        case 1596987778:  return getImmutableElement();
5570        case -220463842:  return getPurposeElement();
5571        case 1522889671:  return getCopyrightElement();
5572        case 950497682:  return getCompose();
5573        case 17878207:  return getExpansion();
5574        default: return super.makeProperty(hash, name);
5575        }
5576
5577      }
5578
5579      @Override
5580      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
5581        switch (hash) {
5582        case 116079: /*url*/ return new String[] {"uri"};
5583        case -1618432855: /*identifier*/ return new String[] {"Identifier"};
5584        case 351608024: /*version*/ return new String[] {"string"};
5585        case 3373707: /*name*/ return new String[] {"string"};
5586        case 110371416: /*title*/ return new String[] {"string"};
5587        case -892481550: /*status*/ return new String[] {"code"};
5588        case -404562712: /*experimental*/ return new String[] {"boolean"};
5589        case 3076014: /*date*/ return new String[] {"dateTime"};
5590        case 1447404028: /*publisher*/ return new String[] {"string"};
5591        case 951526432: /*contact*/ return new String[] {"ContactDetail"};
5592        case -1724546052: /*description*/ return new String[] {"markdown"};
5593        case -669707736: /*useContext*/ return new String[] {"UsageContext"};
5594        case -507075711: /*jurisdiction*/ return new String[] {"CodeableConcept"};
5595        case 1596987778: /*immutable*/ return new String[] {"boolean"};
5596        case -220463842: /*purpose*/ return new String[] {"markdown"};
5597        case 1522889671: /*copyright*/ return new String[] {"markdown"};
5598        case 950497682: /*compose*/ return new String[] {};
5599        case 17878207: /*expansion*/ return new String[] {};
5600        default: return super.getTypesForProperty(hash, name);
5601        }
5602
5603      }
5604
5605      @Override
5606      public Base addChild(String name) throws FHIRException {
5607        if (name.equals("url")) {
5608          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.url");
5609        }
5610        else if (name.equals("identifier")) {
5611          return addIdentifier();
5612        }
5613        else if (name.equals("version")) {
5614          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.version");
5615        }
5616        else if (name.equals("name")) {
5617          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.name");
5618        }
5619        else if (name.equals("title")) {
5620          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.title");
5621        }
5622        else if (name.equals("status")) {
5623          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.status");
5624        }
5625        else if (name.equals("experimental")) {
5626          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.experimental");
5627        }
5628        else if (name.equals("date")) {
5629          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.date");
5630        }
5631        else if (name.equals("publisher")) {
5632          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.publisher");
5633        }
5634        else if (name.equals("contact")) {
5635          return addContact();
5636        }
5637        else if (name.equals("description")) {
5638          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.description");
5639        }
5640        else if (name.equals("useContext")) {
5641          return addUseContext();
5642        }
5643        else if (name.equals("jurisdiction")) {
5644          return addJurisdiction();
5645        }
5646        else if (name.equals("immutable")) {
5647          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.immutable");
5648        }
5649        else if (name.equals("purpose")) {
5650          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.purpose");
5651        }
5652        else if (name.equals("copyright")) {
5653          throw new FHIRException("Cannot call addChild on a primitive type ValueSet.copyright");
5654        }
5655        else if (name.equals("compose")) {
5656          this.compose = new ValueSetComposeComponent();
5657          return this.compose;
5658        }
5659        else if (name.equals("expansion")) {
5660          this.expansion = new ValueSetExpansionComponent();
5661          return this.expansion;
5662        }
5663        else
5664          return super.addChild(name);
5665      }
5666
5667  public String fhirType() {
5668    return "ValueSet";
5669
5670  }
5671
5672      public ValueSet copy() {
5673        ValueSet dst = new ValueSet();
5674        copyValues(dst);
5675        return dst;
5676      }
5677
5678      public void copyValues(ValueSet dst) {
5679        super.copyValues(dst);
5680        dst.url = url == null ? null : url.copy();
5681        if (identifier != null) {
5682          dst.identifier = new ArrayList<Identifier>();
5683          for (Identifier i : identifier)
5684            dst.identifier.add(i.copy());
5685        };
5686        dst.version = version == null ? null : version.copy();
5687        dst.name = name == null ? null : name.copy();
5688        dst.title = title == null ? null : title.copy();
5689        dst.status = status == null ? null : status.copy();
5690        dst.experimental = experimental == null ? null : experimental.copy();
5691        dst.date = date == null ? null : date.copy();
5692        dst.publisher = publisher == null ? null : publisher.copy();
5693        if (contact != null) {
5694          dst.contact = new ArrayList<ContactDetail>();
5695          for (ContactDetail i : contact)
5696            dst.contact.add(i.copy());
5697        };
5698        dst.description = description == null ? null : description.copy();
5699        if (useContext != null) {
5700          dst.useContext = new ArrayList<UsageContext>();
5701          for (UsageContext i : useContext)
5702            dst.useContext.add(i.copy());
5703        };
5704        if (jurisdiction != null) {
5705          dst.jurisdiction = new ArrayList<CodeableConcept>();
5706          for (CodeableConcept i : jurisdiction)
5707            dst.jurisdiction.add(i.copy());
5708        };
5709        dst.immutable = immutable == null ? null : immutable.copy();
5710        dst.purpose = purpose == null ? null : purpose.copy();
5711        dst.copyright = copyright == null ? null : copyright.copy();
5712        dst.compose = compose == null ? null : compose.copy();
5713        dst.expansion = expansion == null ? null : expansion.copy();
5714      }
5715
5716      protected ValueSet typedCopy() {
5717        return copy();
5718      }
5719
5720      @Override
5721      public boolean equalsDeep(Base other_) {
5722        if (!super.equalsDeep(other_))
5723          return false;
5724        if (!(other_ instanceof ValueSet))
5725          return false;
5726        ValueSet o = (ValueSet) other_;
5727        return compareDeep(url, o.url, true) && compareDeep(identifier, o.identifier, true) && compareDeep(version, o.version, true)
5728           && compareDeep(name, o.name, true) && compareDeep(title, o.title, true) && compareDeep(status, o.status, true)
5729           && compareDeep(experimental, o.experimental, true) && compareDeep(date, o.date, true) && compareDeep(publisher, o.publisher, true)
5730           && compareDeep(contact, o.contact, true) && compareDeep(description, o.description, true) && compareDeep(useContext, o.useContext, true)
5731           && compareDeep(jurisdiction, o.jurisdiction, true) && compareDeep(immutable, o.immutable, true)
5732           && compareDeep(purpose, o.purpose, true) && compareDeep(copyright, o.copyright, true) && compareDeep(compose, o.compose, true)
5733           && compareDeep(expansion, o.expansion, true);
5734      }
5735
5736      @Override
5737      public boolean equalsShallow(Base other_) {
5738        if (!super.equalsShallow(other_))
5739          return false;
5740        if (!(other_ instanceof ValueSet))
5741          return false;
5742        ValueSet o = (ValueSet) other_;
5743        return compareValues(url, o.url, true) && compareValues(version, o.version, true) && compareValues(name, o.name, true)
5744           && compareValues(title, o.title, true) && compareValues(status, o.status, true) && compareValues(experimental, o.experimental, true)
5745           && compareValues(date, o.date, true) && compareValues(publisher, o.publisher, true) && compareValues(description, o.description, true)
5746           && compareValues(immutable, o.immutable, true) && compareValues(purpose, o.purpose, true) && compareValues(copyright, o.copyright, true)
5747          ;
5748      }
5749
5750      public boolean isEmpty() {
5751        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(url, identifier, version
5752          , name, title, status, experimental, date, publisher, contact, description, useContext
5753          , jurisdiction, immutable, purpose, copyright, compose, expansion);
5754      }
5755
5756  @Override
5757  public ResourceType getResourceType() {
5758    return ResourceType.ValueSet;
5759   }
5760
5761 /**
5762   * Search parameter: <b>code</b>
5763   * <p>
5764   * Description: <b>This special parameter searches for codes in the value set. See additional notes on the ValueSet resource</b><br>
5765   * Type: <b>token</b><br>
5766   * Path: <b>ValueSet.expansion.contains.code | ValueSet.compose.include.concept.code</b><br>
5767   * </p>
5768   */
5769  @SearchParamDefinition(name="code", path="ValueSet.expansion.contains.code | ValueSet.compose.include.concept.code", description="This special parameter searches for codes in the value set. See additional notes on the ValueSet resource", type="token" )
5770  public static final String SP_CODE = "code";
5771 /**
5772   * <b>Fluent Client</b> search parameter constant for <b>code</b>
5773   * <p>
5774   * Description: <b>This special parameter searches for codes in the value set. See additional notes on the ValueSet resource</b><br>
5775   * Type: <b>token</b><br>
5776   * Path: <b>ValueSet.expansion.contains.code | ValueSet.compose.include.concept.code</b><br>
5777   * </p>
5778   */
5779  public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE);
5780
5781 /**
5782   * Search parameter: <b>expansion</b>
5783   * <p>
5784   * Description: <b>Identifies the value set expansion (business identifier)</b><br>
5785   * Type: <b>uri</b><br>
5786   * Path: <b>ValueSet.expansion.identifier</b><br>
5787   * </p>
5788   */
5789  @SearchParamDefinition(name="expansion", path="ValueSet.expansion.identifier", description="Identifies the value set expansion (business identifier)", type="uri" )
5790  public static final String SP_EXPANSION = "expansion";
5791 /**
5792   * <b>Fluent Client</b> search parameter constant for <b>expansion</b>
5793   * <p>
5794   * Description: <b>Identifies the value set expansion (business identifier)</b><br>
5795   * Type: <b>uri</b><br>
5796   * Path: <b>ValueSet.expansion.identifier</b><br>
5797   * </p>
5798   */
5799  public static final ca.uhn.fhir.rest.gclient.UriClientParam EXPANSION = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_EXPANSION);
5800
5801 /**
5802   * Search parameter: <b>reference</b>
5803   * <p>
5804   * Description: <b>A code system included or excluded in the value set or an imported value set</b><br>
5805   * Type: <b>uri</b><br>
5806   * Path: <b>ValueSet.compose.include.system</b><br>
5807   * </p>
5808   */
5809  @SearchParamDefinition(name="reference", path="ValueSet.compose.include.system", description="A code system included or excluded in the value set or an imported value set", type="uri" )
5810  public static final String SP_REFERENCE = "reference";
5811 /**
5812   * <b>Fluent Client</b> search parameter constant for <b>reference</b>
5813   * <p>
5814   * Description: <b>A code system included or excluded in the value set or an imported value set</b><br>
5815   * Type: <b>uri</b><br>
5816   * Path: <b>ValueSet.compose.include.system</b><br>
5817   * </p>
5818   */
5819  public static final ca.uhn.fhir.rest.gclient.UriClientParam REFERENCE = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_REFERENCE);
5820
5821 /**
5822   * Search parameter: <b>context-quantity</b>
5823   * <p>
5824   * Description: <b>Multiple Resources: 
5825
5826* [CapabilityStatement](capabilitystatement.html): A quantity- or range-valued use context assigned to the capability statement
5827* [CodeSystem](codesystem.html): A quantity- or range-valued use context assigned to the code system
5828* [CompartmentDefinition](compartmentdefinition.html): A quantity- or range-valued use context assigned to the compartment definition
5829* [ConceptMap](conceptmap.html): A quantity- or range-valued use context assigned to the concept map
5830* [GraphDefinition](graphdefinition.html): A quantity- or range-valued use context assigned to the graph definition
5831* [ImplementationGuide](implementationguide.html): A quantity- or range-valued use context assigned to the implementation guide
5832* [MessageDefinition](messagedefinition.html): A quantity- or range-valued use context assigned to the message definition
5833* [NamingSystem](namingsystem.html): A quantity- or range-valued use context assigned to the naming system
5834* [OperationDefinition](operationdefinition.html): A quantity- or range-valued use context assigned to the operation definition
5835* [SearchParameter](searchparameter.html): A quantity- or range-valued use context assigned to the search parameter
5836* [StructureDefinition](structuredefinition.html): A quantity- or range-valued use context assigned to the structure definition
5837* [StructureMap](structuremap.html): A quantity- or range-valued use context assigned to the structure map
5838* [TerminologyCapabilities](terminologycapabilities.html): A quantity- or range-valued use context assigned to the terminology capabilities
5839* [ValueSet](valueset.html): A quantity- or range-valued use context assigned to the value set
5840</b><br>
5841   * Type: <b>quantity</b><br>
5842   * Path: <b>(CapabilityStatement.useContext.value as Quantity) | (CapabilityStatement.useContext.value as Range) | (CodeSystem.useContext.value as Quantity) | (CodeSystem.useContext.value as Range) | (CompartmentDefinition.useContext.value as Quantity) | (CompartmentDefinition.useContext.value as Range) | (ConceptMap.useContext.value as Quantity) | (ConceptMap.useContext.value as Range) | (GraphDefinition.useContext.value as Quantity) | (GraphDefinition.useContext.value as Range) | (ImplementationGuide.useContext.value as Quantity) | (ImplementationGuide.useContext.value as Range) | (MessageDefinition.useContext.value as Quantity) | (MessageDefinition.useContext.value as Range) | (NamingSystem.useContext.value as Quantity) | (NamingSystem.useContext.value as Range) | (OperationDefinition.useContext.value as Quantity) | (OperationDefinition.useContext.value as Range) | (SearchParameter.useContext.value as Quantity) | (SearchParameter.useContext.value as Range) | (StructureDefinition.useContext.value as Quantity) | (StructureDefinition.useContext.value as Range) | (StructureMap.useContext.value as Quantity) | (StructureMap.useContext.value as Range) | (TerminologyCapabilities.useContext.value as Quantity) | (TerminologyCapabilities.useContext.value as Range) | (ValueSet.useContext.value as Quantity) | (ValueSet.useContext.value as Range)</b><br>
5843   * </p>
5844   */
5845  @SearchParamDefinition(name="context-quantity", path="(CapabilityStatement.useContext.value as Quantity) | (CapabilityStatement.useContext.value as Range) | (CodeSystem.useContext.value as Quantity) | (CodeSystem.useContext.value as Range) | (CompartmentDefinition.useContext.value as Quantity) | (CompartmentDefinition.useContext.value as Range) | (ConceptMap.useContext.value as Quantity) | (ConceptMap.useContext.value as Range) | (GraphDefinition.useContext.value as Quantity) | (GraphDefinition.useContext.value as Range) | (ImplementationGuide.useContext.value as Quantity) | (ImplementationGuide.useContext.value as Range) | (MessageDefinition.useContext.value as Quantity) | (MessageDefinition.useContext.value as Range) | (NamingSystem.useContext.value as Quantity) | (NamingSystem.useContext.value as Range) | (OperationDefinition.useContext.value as Quantity) | (OperationDefinition.useContext.value as Range) | (SearchParameter.useContext.value as Quantity) | (SearchParameter.useContext.value as Range) | (StructureDefinition.useContext.value as Quantity) | (StructureDefinition.useContext.value as Range) | (StructureMap.useContext.value as Quantity) | (StructureMap.useContext.value as Range) | (TerminologyCapabilities.useContext.value as Quantity) | (TerminologyCapabilities.useContext.value as Range) | (ValueSet.useContext.value as Quantity) | (ValueSet.useContext.value as Range)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A quantity- or range-valued use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A quantity- or range-valued use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A quantity- or range-valued use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A quantity- or range-valued use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A quantity- or range-valued use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A quantity- or range-valued use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A quantity- or range-valued use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A quantity- or range-valued use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A quantity- or range-valued use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A quantity- or range-valued use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A quantity- or range-valued use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A quantity- or range-valued use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A quantity- or range-valued use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A quantity- or range-valued use context assigned to the value set\r\n", type="quantity" )
5846  public static final String SP_CONTEXT_QUANTITY = "context-quantity";
5847 /**
5848   * <b>Fluent Client</b> search parameter constant for <b>context-quantity</b>
5849   * <p>
5850   * Description: <b>Multiple Resources: 
5851
5852* [CapabilityStatement](capabilitystatement.html): A quantity- or range-valued use context assigned to the capability statement
5853* [CodeSystem](codesystem.html): A quantity- or range-valued use context assigned to the code system
5854* [CompartmentDefinition](compartmentdefinition.html): A quantity- or range-valued use context assigned to the compartment definition
5855* [ConceptMap](conceptmap.html): A quantity- or range-valued use context assigned to the concept map
5856* [GraphDefinition](graphdefinition.html): A quantity- or range-valued use context assigned to the graph definition
5857* [ImplementationGuide](implementationguide.html): A quantity- or range-valued use context assigned to the implementation guide
5858* [MessageDefinition](messagedefinition.html): A quantity- or range-valued use context assigned to the message definition
5859* [NamingSystem](namingsystem.html): A quantity- or range-valued use context assigned to the naming system
5860* [OperationDefinition](operationdefinition.html): A quantity- or range-valued use context assigned to the operation definition
5861* [SearchParameter](searchparameter.html): A quantity- or range-valued use context assigned to the search parameter
5862* [StructureDefinition](structuredefinition.html): A quantity- or range-valued use context assigned to the structure definition
5863* [StructureMap](structuremap.html): A quantity- or range-valued use context assigned to the structure map
5864* [TerminologyCapabilities](terminologycapabilities.html): A quantity- or range-valued use context assigned to the terminology capabilities
5865* [ValueSet](valueset.html): A quantity- or range-valued use context assigned to the value set
5866</b><br>
5867   * Type: <b>quantity</b><br>
5868   * Path: <b>(CapabilityStatement.useContext.value as Quantity) | (CapabilityStatement.useContext.value as Range) | (CodeSystem.useContext.value as Quantity) | (CodeSystem.useContext.value as Range) | (CompartmentDefinition.useContext.value as Quantity) | (CompartmentDefinition.useContext.value as Range) | (ConceptMap.useContext.value as Quantity) | (ConceptMap.useContext.value as Range) | (GraphDefinition.useContext.value as Quantity) | (GraphDefinition.useContext.value as Range) | (ImplementationGuide.useContext.value as Quantity) | (ImplementationGuide.useContext.value as Range) | (MessageDefinition.useContext.value as Quantity) | (MessageDefinition.useContext.value as Range) | (NamingSystem.useContext.value as Quantity) | (NamingSystem.useContext.value as Range) | (OperationDefinition.useContext.value as Quantity) | (OperationDefinition.useContext.value as Range) | (SearchParameter.useContext.value as Quantity) | (SearchParameter.useContext.value as Range) | (StructureDefinition.useContext.value as Quantity) | (StructureDefinition.useContext.value as Range) | (StructureMap.useContext.value as Quantity) | (StructureMap.useContext.value as Range) | (TerminologyCapabilities.useContext.value as Quantity) | (TerminologyCapabilities.useContext.value as Range) | (ValueSet.useContext.value as Quantity) | (ValueSet.useContext.value as Range)</b><br>
5869   * </p>
5870   */
5871  public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY);
5872
5873 /**
5874   * Search parameter: <b>context-type-quantity</b>
5875   * <p>
5876   * Description: <b>Multiple Resources: 
5877
5878* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement
5879* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system
5880* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition
5881* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map
5882* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition
5883* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide
5884* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition
5885* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system
5886* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition
5887* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter
5888* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition
5889* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map
5890* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities
5891* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set
5892</b><br>
5893   * Type: <b>composite</b><br>
5894   * Path: <b>CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext</b><br>
5895   * </p>
5896   */
5897  @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} )
5898  public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity";
5899 /**
5900   * <b>Fluent Client</b> search parameter constant for <b>context-type-quantity</b>
5901   * <p>
5902   * Description: <b>Multiple Resources: 
5903
5904* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement
5905* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system
5906* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition
5907* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map
5908* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition
5909* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide
5910* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition
5911* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system
5912* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition
5913* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter
5914* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition
5915* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map
5916* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities
5917* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set
5918</b><br>
5919   * Type: <b>composite</b><br>
5920   * Path: <b>CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext</b><br>
5921   * </p>
5922   */
5923  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);
5924
5925 /**
5926   * Search parameter: <b>context-type-value</b>
5927   * <p>
5928   * Description: <b>Multiple Resources: 
5929
5930* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement
5931* [CodeSystem](codesystem.html): A use context type and value assigned to the code system
5932* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition
5933* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map
5934* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition
5935* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide
5936* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition
5937* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system
5938* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition
5939* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter
5940* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition
5941* [StructureMap](structuremap.html): A use context type and value assigned to the structure map
5942* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities
5943* [ValueSet](valueset.html): A use context type and value assigned to the value set
5944</b><br>
5945   * Type: <b>composite</b><br>
5946   * Path: <b>CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext</b><br>
5947   * </p>
5948   */
5949  @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} )
5950  public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value";
5951 /**
5952   * <b>Fluent Client</b> search parameter constant for <b>context-type-value</b>
5953   * <p>
5954   * Description: <b>Multiple Resources: 
5955
5956* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement
5957* [CodeSystem](codesystem.html): A use context type and value assigned to the code system
5958* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition
5959* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map
5960* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition
5961* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide
5962* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition
5963* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system
5964* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition
5965* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter
5966* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition
5967* [StructureMap](structuremap.html): A use context type and value assigned to the structure map
5968* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities
5969* [ValueSet](valueset.html): A use context type and value assigned to the value set
5970</b><br>
5971   * Type: <b>composite</b><br>
5972   * Path: <b>CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext</b><br>
5973   * </p>
5974   */
5975  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);
5976
5977 /**
5978   * Search parameter: <b>context-type</b>
5979   * <p>
5980   * Description: <b>Multiple Resources: 
5981
5982* [CapabilityStatement](capabilitystatement.html): A type of use context assigned to the capability statement
5983* [CodeSystem](codesystem.html): A type of use context assigned to the code system
5984* [CompartmentDefinition](compartmentdefinition.html): A type of use context assigned to the compartment definition
5985* [ConceptMap](conceptmap.html): A type of use context assigned to the concept map
5986* [GraphDefinition](graphdefinition.html): A type of use context assigned to the graph definition
5987* [ImplementationGuide](implementationguide.html): A type of use context assigned to the implementation guide
5988* [MessageDefinition](messagedefinition.html): A type of use context assigned to the message definition
5989* [NamingSystem](namingsystem.html): A type of use context assigned to the naming system
5990* [OperationDefinition](operationdefinition.html): A type of use context assigned to the operation definition
5991* [SearchParameter](searchparameter.html): A type of use context assigned to the search parameter
5992* [StructureDefinition](structuredefinition.html): A type of use context assigned to the structure definition
5993* [StructureMap](structuremap.html): A type of use context assigned to the structure map
5994* [TerminologyCapabilities](terminologycapabilities.html): A type of use context assigned to the terminology capabilities
5995* [ValueSet](valueset.html): A type of use context assigned to the value set
5996</b><br>
5997   * Type: <b>token</b><br>
5998   * Path: <b>CapabilityStatement.useContext.code | CodeSystem.useContext.code | CompartmentDefinition.useContext.code | ConceptMap.useContext.code | GraphDefinition.useContext.code | ImplementationGuide.useContext.code | MessageDefinition.useContext.code | NamingSystem.useContext.code | OperationDefinition.useContext.code | SearchParameter.useContext.code | StructureDefinition.useContext.code | StructureMap.useContext.code | TerminologyCapabilities.useContext.code | ValueSet.useContext.code</b><br>
5999   * </p>
6000   */
6001  @SearchParamDefinition(name="context-type", path="CapabilityStatement.useContext.code | CodeSystem.useContext.code | CompartmentDefinition.useContext.code | ConceptMap.useContext.code | GraphDefinition.useContext.code | ImplementationGuide.useContext.code | MessageDefinition.useContext.code | NamingSystem.useContext.code | OperationDefinition.useContext.code | SearchParameter.useContext.code | StructureDefinition.useContext.code | StructureMap.useContext.code | TerminologyCapabilities.useContext.code | ValueSet.useContext.code", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A type of use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A type of use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A type of use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A type of use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A type of use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A type of use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A type of use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A type of use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A type of use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A type of use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A type of use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A type of use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A type of use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A type of use context assigned to the value set\r\n", type="token" )
6002  public static final String SP_CONTEXT_TYPE = "context-type";
6003 /**
6004   * <b>Fluent Client</b> search parameter constant for <b>context-type</b>
6005   * <p>
6006   * Description: <b>Multiple Resources: 
6007
6008* [CapabilityStatement](capabilitystatement.html): A type of use context assigned to the capability statement
6009* [CodeSystem](codesystem.html): A type of use context assigned to the code system
6010* [CompartmentDefinition](compartmentdefinition.html): A type of use context assigned to the compartment definition
6011* [ConceptMap](conceptmap.html): A type of use context assigned to the concept map
6012* [GraphDefinition](graphdefinition.html): A type of use context assigned to the graph definition
6013* [ImplementationGuide](implementationguide.html): A type of use context assigned to the implementation guide
6014* [MessageDefinition](messagedefinition.html): A type of use context assigned to the message definition
6015* [NamingSystem](namingsystem.html): A type of use context assigned to the naming system
6016* [OperationDefinition](operationdefinition.html): A type of use context assigned to the operation definition
6017* [SearchParameter](searchparameter.html): A type of use context assigned to the search parameter
6018* [StructureDefinition](structuredefinition.html): A type of use context assigned to the structure definition
6019* [StructureMap](structuremap.html): A type of use context assigned to the structure map
6020* [TerminologyCapabilities](terminologycapabilities.html): A type of use context assigned to the terminology capabilities
6021* [ValueSet](valueset.html): A type of use context assigned to the value set
6022</b><br>
6023   * Type: <b>token</b><br>
6024   * Path: <b>CapabilityStatement.useContext.code | CodeSystem.useContext.code | CompartmentDefinition.useContext.code | ConceptMap.useContext.code | GraphDefinition.useContext.code | ImplementationGuide.useContext.code | MessageDefinition.useContext.code | NamingSystem.useContext.code | OperationDefinition.useContext.code | SearchParameter.useContext.code | StructureDefinition.useContext.code | StructureMap.useContext.code | TerminologyCapabilities.useContext.code | ValueSet.useContext.code</b><br>
6025   * </p>
6026   */
6027  public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE);
6028
6029 /**
6030   * Search parameter: <b>context</b>
6031   * <p>
6032   * Description: <b>Multiple Resources: 
6033
6034* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement
6035* [CodeSystem](codesystem.html): A use context assigned to the code system
6036* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition
6037* [ConceptMap](conceptmap.html): A use context assigned to the concept map
6038* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition
6039* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide
6040* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition
6041* [NamingSystem](namingsystem.html): A use context assigned to the naming system
6042* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition
6043* [SearchParameter](searchparameter.html): A use context assigned to the search parameter
6044* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition
6045* [StructureMap](structuremap.html): A use context assigned to the structure map
6046* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities
6047* [ValueSet](valueset.html): A use context assigned to the value set
6048</b><br>
6049   * Type: <b>token</b><br>
6050   * Path: <b>(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)</b><br>
6051   * </p>
6052   */
6053  @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" )
6054  public static final String SP_CONTEXT = "context";
6055 /**
6056   * <b>Fluent Client</b> search parameter constant for <b>context</b>
6057   * <p>
6058   * Description: <b>Multiple Resources: 
6059
6060* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement
6061* [CodeSystem](codesystem.html): A use context assigned to the code system
6062* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition
6063* [ConceptMap](conceptmap.html): A use context assigned to the concept map
6064* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition
6065* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide
6066* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition
6067* [NamingSystem](namingsystem.html): A use context assigned to the naming system
6068* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition
6069* [SearchParameter](searchparameter.html): A use context assigned to the search parameter
6070* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition
6071* [StructureMap](structuremap.html): A use context assigned to the structure map
6072* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities
6073* [ValueSet](valueset.html): A use context assigned to the value set
6074</b><br>
6075   * Type: <b>token</b><br>
6076   * Path: <b>(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)</b><br>
6077   * </p>
6078   */
6079  public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT);
6080
6081 /**
6082   * Search parameter: <b>date</b>
6083   * <p>
6084   * Description: <b>Multiple Resources: 
6085
6086* [CapabilityStatement](capabilitystatement.html): The capability statement publication date
6087* [CodeSystem](codesystem.html): The code system publication date
6088* [CompartmentDefinition](compartmentdefinition.html): The compartment definition publication date
6089* [ConceptMap](conceptmap.html): The concept map publication date
6090* [GraphDefinition](graphdefinition.html): The graph definition publication date
6091* [ImplementationGuide](implementationguide.html): The implementation guide publication date
6092* [MessageDefinition](messagedefinition.html): The message definition publication date
6093* [NamingSystem](namingsystem.html): The naming system publication date
6094* [OperationDefinition](operationdefinition.html): The operation definition publication date
6095* [SearchParameter](searchparameter.html): The search parameter publication date
6096* [StructureDefinition](structuredefinition.html): The structure definition publication date
6097* [StructureMap](structuremap.html): The structure map publication date
6098* [TerminologyCapabilities](terminologycapabilities.html): The terminology capabilities publication date
6099* [ValueSet](valueset.html): The value set publication date
6100</b><br>
6101   * Type: <b>date</b><br>
6102   * Path: <b>CapabilityStatement.date | CodeSystem.date | CompartmentDefinition.date | ConceptMap.date | GraphDefinition.date | ImplementationGuide.date | MessageDefinition.date | NamingSystem.date | OperationDefinition.date | SearchParameter.date | StructureDefinition.date | StructureMap.date | TerminologyCapabilities.date | ValueSet.date</b><br>
6103   * </p>
6104   */
6105  @SearchParamDefinition(name="date", path="CapabilityStatement.date | CodeSystem.date | CompartmentDefinition.date | ConceptMap.date | GraphDefinition.date | ImplementationGuide.date | MessageDefinition.date | NamingSystem.date | OperationDefinition.date | SearchParameter.date | StructureDefinition.date | StructureMap.date | TerminologyCapabilities.date | ValueSet.date", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): The capability statement publication date\r\n* [CodeSystem](codesystem.html): The code system publication date\r\n* [CompartmentDefinition](compartmentdefinition.html): The compartment definition publication date\r\n* [ConceptMap](conceptmap.html): The concept map publication date\r\n* [GraphDefinition](graphdefinition.html): The graph definition publication date\r\n* [ImplementationGuide](implementationguide.html): The implementation guide publication date\r\n* [MessageDefinition](messagedefinition.html): The message definition publication date\r\n* [NamingSystem](namingsystem.html): The naming system publication date\r\n* [OperationDefinition](operationdefinition.html): The operation definition publication date\r\n* [SearchParameter](searchparameter.html): The search parameter publication date\r\n* [StructureDefinition](structuredefinition.html): The structure definition publication date\r\n* [StructureMap](structuremap.html): The structure map publication date\r\n* [TerminologyCapabilities](terminologycapabilities.html): The terminology capabilities publication date\r\n* [ValueSet](valueset.html): The value set publication date\r\n", type="date" )
6106  public static final String SP_DATE = "date";
6107 /**
6108   * <b>Fluent Client</b> search parameter constant for <b>date</b>
6109   * <p>
6110   * Description: <b>Multiple Resources: 
6111
6112* [CapabilityStatement](capabilitystatement.html): The capability statement publication date
6113* [CodeSystem](codesystem.html): The code system publication date
6114* [CompartmentDefinition](compartmentdefinition.html): The compartment definition publication date
6115* [ConceptMap](conceptmap.html): The concept map publication date
6116* [GraphDefinition](graphdefinition.html): The graph definition publication date
6117* [ImplementationGuide](implementationguide.html): The implementation guide publication date
6118* [MessageDefinition](messagedefinition.html): The message definition publication date
6119* [NamingSystem](namingsystem.html): The naming system publication date
6120* [OperationDefinition](operationdefinition.html): The operation definition publication date
6121* [SearchParameter](searchparameter.html): The search parameter publication date
6122* [StructureDefinition](structuredefinition.html): The structure definition publication date
6123* [StructureMap](structuremap.html): The structure map publication date
6124* [TerminologyCapabilities](terminologycapabilities.html): The terminology capabilities publication date
6125* [ValueSet](valueset.html): The value set publication date
6126</b><br>
6127   * Type: <b>date</b><br>
6128   * Path: <b>CapabilityStatement.date | CodeSystem.date | CompartmentDefinition.date | ConceptMap.date | GraphDefinition.date | ImplementationGuide.date | MessageDefinition.date | NamingSystem.date | OperationDefinition.date | SearchParameter.date | StructureDefinition.date | StructureMap.date | TerminologyCapabilities.date | ValueSet.date</b><br>
6129   * </p>
6130   */
6131  public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE);
6132
6133 /**
6134   * Search parameter: <b>description</b>
6135   * <p>
6136   * Description: <b>Multiple Resources: 
6137
6138* [CapabilityStatement](capabilitystatement.html): The description of the capability statement
6139* [CodeSystem](codesystem.html): The description of the code system
6140* [CompartmentDefinition](compartmentdefinition.html): The description of the compartment definition
6141* [ConceptMap](conceptmap.html): The description of the concept map
6142* [GraphDefinition](graphdefinition.html): The description of the graph definition
6143* [ImplementationGuide](implementationguide.html): The description of the implementation guide
6144* [MessageDefinition](messagedefinition.html): The description of the message definition
6145* [NamingSystem](namingsystem.html): The description of the naming system
6146* [OperationDefinition](operationdefinition.html): The description of the operation definition
6147* [SearchParameter](searchparameter.html): The description of the search parameter
6148* [StructureDefinition](structuredefinition.html): The description of the structure definition
6149* [StructureMap](structuremap.html): The description of the structure map
6150* [TerminologyCapabilities](terminologycapabilities.html): The description of the terminology capabilities
6151* [ValueSet](valueset.html): The description of the value set
6152</b><br>
6153   * Type: <b>string</b><br>
6154   * Path: <b>CapabilityStatement.description | CodeSystem.description | CompartmentDefinition.description | ConceptMap.description | GraphDefinition.description | ImplementationGuide.description | MessageDefinition.description | NamingSystem.description | OperationDefinition.description | SearchParameter.description | StructureDefinition.description | StructureMap.description | TerminologyCapabilities.description | ValueSet.description</b><br>
6155   * </p>
6156   */
6157  @SearchParamDefinition(name="description", path="CapabilityStatement.description | CodeSystem.description | CompartmentDefinition.description | ConceptMap.description | GraphDefinition.description | ImplementationGuide.description | MessageDefinition.description | NamingSystem.description | OperationDefinition.description | SearchParameter.description | StructureDefinition.description | StructureMap.description | TerminologyCapabilities.description | ValueSet.description", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): The description of the capability statement\r\n* [CodeSystem](codesystem.html): The description of the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): The description of the compartment definition\r\n* [ConceptMap](conceptmap.html): The description of the concept map\r\n* [GraphDefinition](graphdefinition.html): The description of the graph definition\r\n* [ImplementationGuide](implementationguide.html): The description of the implementation guide\r\n* [MessageDefinition](messagedefinition.html): The description of the message definition\r\n* [NamingSystem](namingsystem.html): The description of the naming system\r\n* [OperationDefinition](operationdefinition.html): The description of the operation definition\r\n* [SearchParameter](searchparameter.html): The description of the search parameter\r\n* [StructureDefinition](structuredefinition.html): The description of the structure definition\r\n* [StructureMap](structuremap.html): The description of the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): The description of the terminology capabilities\r\n* [ValueSet](valueset.html): The description of the value set\r\n", type="string" )
6158  public static final String SP_DESCRIPTION = "description";
6159 /**
6160   * <b>Fluent Client</b> search parameter constant for <b>description</b>
6161   * <p>
6162   * Description: <b>Multiple Resources: 
6163
6164* [CapabilityStatement](capabilitystatement.html): The description of the capability statement
6165* [CodeSystem](codesystem.html): The description of the code system
6166* [CompartmentDefinition](compartmentdefinition.html): The description of the compartment definition
6167* [ConceptMap](conceptmap.html): The description of the concept map
6168* [GraphDefinition](graphdefinition.html): The description of the graph definition
6169* [ImplementationGuide](implementationguide.html): The description of the implementation guide
6170* [MessageDefinition](messagedefinition.html): The description of the message definition
6171* [NamingSystem](namingsystem.html): The description of the naming system
6172* [OperationDefinition](operationdefinition.html): The description of the operation definition
6173* [SearchParameter](searchparameter.html): The description of the search parameter
6174* [StructureDefinition](structuredefinition.html): The description of the structure definition
6175* [StructureMap](structuremap.html): The description of the structure map
6176* [TerminologyCapabilities](terminologycapabilities.html): The description of the terminology capabilities
6177* [ValueSet](valueset.html): The description of the value set
6178</b><br>
6179   * Type: <b>string</b><br>
6180   * Path: <b>CapabilityStatement.description | CodeSystem.description | CompartmentDefinition.description | ConceptMap.description | GraphDefinition.description | ImplementationGuide.description | MessageDefinition.description | NamingSystem.description | OperationDefinition.description | SearchParameter.description | StructureDefinition.description | StructureMap.description | TerminologyCapabilities.description | ValueSet.description</b><br>
6181   * </p>
6182   */
6183  public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION);
6184
6185 /**
6186   * Search parameter: <b>identifier</b>
6187   * <p>
6188   * Description: <b>Multiple Resources: 
6189
6190* [CodeSystem](codesystem.html): External identifier for the code system
6191* [ConceptMap](conceptmap.html): External identifier for the concept map
6192* [MessageDefinition](messagedefinition.html): External identifier for the message definition
6193* [StructureDefinition](structuredefinition.html): External identifier for the structure definition
6194* [StructureMap](structuremap.html): External identifier for the structure map
6195* [ValueSet](valueset.html): External identifier for the value set
6196</b><br>
6197   * Type: <b>token</b><br>
6198   * Path: <b>CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | ValueSet.identifier</b><br>
6199   * </p>
6200   */
6201  @SearchParamDefinition(name="identifier", path="CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | ValueSet.identifier", description="Multiple Resources: \r\n\r\n* [CodeSystem](codesystem.html): External identifier for the code system\r\n* [ConceptMap](conceptmap.html): External identifier for the concept map\r\n* [MessageDefinition](messagedefinition.html): External identifier for the message definition\r\n* [StructureDefinition](structuredefinition.html): External identifier for the structure definition\r\n* [StructureMap](structuremap.html): External identifier for the structure map\r\n* [ValueSet](valueset.html): External identifier for the value set\r\n", type="token" )
6202  public static final String SP_IDENTIFIER = "identifier";
6203 /**
6204   * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
6205   * <p>
6206   * Description: <b>Multiple Resources: 
6207
6208* [CodeSystem](codesystem.html): External identifier for the code system
6209* [ConceptMap](conceptmap.html): External identifier for the concept map
6210* [MessageDefinition](messagedefinition.html): External identifier for the message definition
6211* [StructureDefinition](structuredefinition.html): External identifier for the structure definition
6212* [StructureMap](structuremap.html): External identifier for the structure map
6213* [ValueSet](valueset.html): External identifier for the value set
6214</b><br>
6215   * Type: <b>token</b><br>
6216   * Path: <b>CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | ValueSet.identifier</b><br>
6217   * </p>
6218   */
6219  public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
6220
6221 /**
6222   * Search parameter: <b>jurisdiction</b>
6223   * <p>
6224   * Description: <b>Multiple Resources: 
6225
6226* [CapabilityStatement](capabilitystatement.html): Intended jurisdiction for the capability statement
6227* [CodeSystem](codesystem.html): Intended jurisdiction for the code system
6228* [ConceptMap](conceptmap.html): Intended jurisdiction for the concept map
6229* [GraphDefinition](graphdefinition.html): Intended jurisdiction for the graph definition
6230* [ImplementationGuide](implementationguide.html): Intended jurisdiction for the implementation guide
6231* [MessageDefinition](messagedefinition.html): Intended jurisdiction for the message definition
6232* [NamingSystem](namingsystem.html): Intended jurisdiction for the naming system
6233* [OperationDefinition](operationdefinition.html): Intended jurisdiction for the operation definition
6234* [SearchParameter](searchparameter.html): Intended jurisdiction for the search parameter
6235* [StructureDefinition](structuredefinition.html): Intended jurisdiction for the structure definition
6236* [StructureMap](structuremap.html): Intended jurisdiction for the structure map
6237* [TerminologyCapabilities](terminologycapabilities.html): Intended jurisdiction for the terminology capabilities
6238* [ValueSet](valueset.html): Intended jurisdiction for the value set
6239</b><br>
6240   * Type: <b>token</b><br>
6241   * Path: <b>CapabilityStatement.jurisdiction | CodeSystem.jurisdiction | ConceptMap.jurisdiction | GraphDefinition.jurisdiction | ImplementationGuide.jurisdiction | MessageDefinition.jurisdiction | NamingSystem.jurisdiction | OperationDefinition.jurisdiction | SearchParameter.jurisdiction | StructureDefinition.jurisdiction | StructureMap.jurisdiction | TerminologyCapabilities.jurisdiction | ValueSet.jurisdiction</b><br>
6242   * </p>
6243   */
6244  @SearchParamDefinition(name="jurisdiction", path="CapabilityStatement.jurisdiction | CodeSystem.jurisdiction | ConceptMap.jurisdiction | GraphDefinition.jurisdiction | ImplementationGuide.jurisdiction | MessageDefinition.jurisdiction | NamingSystem.jurisdiction | OperationDefinition.jurisdiction | SearchParameter.jurisdiction | StructureDefinition.jurisdiction | StructureMap.jurisdiction | TerminologyCapabilities.jurisdiction | ValueSet.jurisdiction", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): Intended jurisdiction for the capability statement\r\n* [CodeSystem](codesystem.html): Intended jurisdiction for the code system\r\n* [ConceptMap](conceptmap.html): Intended jurisdiction for the concept map\r\n* [GraphDefinition](graphdefinition.html): Intended jurisdiction for the graph definition\r\n* [ImplementationGuide](implementationguide.html): Intended jurisdiction for the implementation guide\r\n* [MessageDefinition](messagedefinition.html): Intended jurisdiction for the message definition\r\n* [NamingSystem](namingsystem.html): Intended jurisdiction for the naming system\r\n* [OperationDefinition](operationdefinition.html): Intended jurisdiction for the operation definition\r\n* [SearchParameter](searchparameter.html): Intended jurisdiction for the search parameter\r\n* [StructureDefinition](structuredefinition.html): Intended jurisdiction for the structure definition\r\n* [StructureMap](structuremap.html): Intended jurisdiction for the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): Intended jurisdiction for the terminology capabilities\r\n* [ValueSet](valueset.html): Intended jurisdiction for the value set\r\n", type="token" )
6245  public static final String SP_JURISDICTION = "jurisdiction";
6246 /**
6247   * <b>Fluent Client</b> search parameter constant for <b>jurisdiction</b>
6248   * <p>
6249   * Description: <b>Multiple Resources: 
6250
6251* [CapabilityStatement](capabilitystatement.html): Intended jurisdiction for the capability statement
6252* [CodeSystem](codesystem.html): Intended jurisdiction for the code system
6253* [ConceptMap](conceptmap.html): Intended jurisdiction for the concept map
6254* [GraphDefinition](graphdefinition.html): Intended jurisdiction for the graph definition
6255* [ImplementationGuide](implementationguide.html): Intended jurisdiction for the implementation guide
6256* [MessageDefinition](messagedefinition.html): Intended jurisdiction for the message definition
6257* [NamingSystem](namingsystem.html): Intended jurisdiction for the naming system
6258* [OperationDefinition](operationdefinition.html): Intended jurisdiction for the operation definition
6259* [SearchParameter](searchparameter.html): Intended jurisdiction for the search parameter
6260* [StructureDefinition](structuredefinition.html): Intended jurisdiction for the structure definition
6261* [StructureMap](structuremap.html): Intended jurisdiction for the structure map
6262* [TerminologyCapabilities](terminologycapabilities.html): Intended jurisdiction for the terminology capabilities
6263* [ValueSet](valueset.html): Intended jurisdiction for the value set
6264</b><br>
6265   * Type: <b>token</b><br>
6266   * Path: <b>CapabilityStatement.jurisdiction | CodeSystem.jurisdiction | ConceptMap.jurisdiction | GraphDefinition.jurisdiction | ImplementationGuide.jurisdiction | MessageDefinition.jurisdiction | NamingSystem.jurisdiction | OperationDefinition.jurisdiction | SearchParameter.jurisdiction | StructureDefinition.jurisdiction | StructureMap.jurisdiction | TerminologyCapabilities.jurisdiction | ValueSet.jurisdiction</b><br>
6267   * </p>
6268   */
6269  public static final ca.uhn.fhir.rest.gclient.TokenClientParam JURISDICTION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_JURISDICTION);
6270
6271 /**
6272   * Search parameter: <b>name</b>
6273   * <p>
6274   * Description: <b>Multiple Resources: 
6275
6276* [CapabilityStatement](capabilitystatement.html): Computationally friendly name of the capability statement
6277* [CodeSystem](codesystem.html): Computationally friendly name of the code system
6278* [CompartmentDefinition](compartmentdefinition.html): Computationally friendly name of the compartment definition
6279* [ConceptMap](conceptmap.html): Computationally friendly name of the concept map
6280* [GraphDefinition](graphdefinition.html): Computationally friendly name of the graph definition
6281* [ImplementationGuide](implementationguide.html): Computationally friendly name of the implementation guide
6282* [MessageDefinition](messagedefinition.html): Computationally friendly name of the message definition
6283* [NamingSystem](namingsystem.html): Computationally friendly name of the naming system
6284* [OperationDefinition](operationdefinition.html): Computationally friendly name of the operation definition
6285* [SearchParameter](searchparameter.html): Computationally friendly name of the search parameter
6286* [StructureDefinition](structuredefinition.html): Computationally friendly name of the structure definition
6287* [StructureMap](structuremap.html): Computationally friendly name of the structure map
6288* [TerminologyCapabilities](terminologycapabilities.html): Computationally friendly name of the terminology capabilities
6289* [ValueSet](valueset.html): Computationally friendly name of the value set
6290</b><br>
6291   * Type: <b>string</b><br>
6292   * Path: <b>CapabilityStatement.name | CodeSystem.name | CompartmentDefinition.name | ConceptMap.name | GraphDefinition.name | ImplementationGuide.name | MessageDefinition.name | NamingSystem.name | OperationDefinition.name | SearchParameter.name | StructureDefinition.name | StructureMap.name | TerminologyCapabilities.name | ValueSet.name</b><br>
6293   * </p>
6294   */
6295  @SearchParamDefinition(name="name", path="CapabilityStatement.name | CodeSystem.name | CompartmentDefinition.name | ConceptMap.name | GraphDefinition.name | ImplementationGuide.name | MessageDefinition.name | NamingSystem.name | OperationDefinition.name | SearchParameter.name | StructureDefinition.name | StructureMap.name | TerminologyCapabilities.name | ValueSet.name", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): Computationally friendly name of the capability statement\r\n* [CodeSystem](codesystem.html): Computationally friendly name of the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): Computationally friendly name of the compartment definition\r\n* [ConceptMap](conceptmap.html): Computationally friendly name of the concept map\r\n* [GraphDefinition](graphdefinition.html): Computationally friendly name of the graph definition\r\n* [ImplementationGuide](implementationguide.html): Computationally friendly name of the implementation guide\r\n* [MessageDefinition](messagedefinition.html): Computationally friendly name of the message definition\r\n* [NamingSystem](namingsystem.html): Computationally friendly name of the naming system\r\n* [OperationDefinition](operationdefinition.html): Computationally friendly name of the operation definition\r\n* [SearchParameter](searchparameter.html): Computationally friendly name of the search parameter\r\n* [StructureDefinition](structuredefinition.html): Computationally friendly name of the structure definition\r\n* [StructureMap](structuremap.html): Computationally friendly name of the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): Computationally friendly name of the terminology capabilities\r\n* [ValueSet](valueset.html): Computationally friendly name of the value set\r\n", type="string" )
6296  public static final String SP_NAME = "name";
6297 /**
6298   * <b>Fluent Client</b> search parameter constant for <b>name</b>
6299   * <p>
6300   * Description: <b>Multiple Resources: 
6301
6302* [CapabilityStatement](capabilitystatement.html): Computationally friendly name of the capability statement
6303* [CodeSystem](codesystem.html): Computationally friendly name of the code system
6304* [CompartmentDefinition](compartmentdefinition.html): Computationally friendly name of the compartment definition
6305* [ConceptMap](conceptmap.html): Computationally friendly name of the concept map
6306* [GraphDefinition](graphdefinition.html): Computationally friendly name of the graph definition
6307* [ImplementationGuide](implementationguide.html): Computationally friendly name of the implementation guide
6308* [MessageDefinition](messagedefinition.html): Computationally friendly name of the message definition
6309* [NamingSystem](namingsystem.html): Computationally friendly name of the naming system
6310* [OperationDefinition](operationdefinition.html): Computationally friendly name of the operation definition
6311* [SearchParameter](searchparameter.html): Computationally friendly name of the search parameter
6312* [StructureDefinition](structuredefinition.html): Computationally friendly name of the structure definition
6313* [StructureMap](structuremap.html): Computationally friendly name of the structure map
6314* [TerminologyCapabilities](terminologycapabilities.html): Computationally friendly name of the terminology capabilities
6315* [ValueSet](valueset.html): Computationally friendly name of the value set
6316</b><br>
6317   * Type: <b>string</b><br>
6318   * Path: <b>CapabilityStatement.name | CodeSystem.name | CompartmentDefinition.name | ConceptMap.name | GraphDefinition.name | ImplementationGuide.name | MessageDefinition.name | NamingSystem.name | OperationDefinition.name | SearchParameter.name | StructureDefinition.name | StructureMap.name | TerminologyCapabilities.name | ValueSet.name</b><br>
6319   * </p>
6320   */
6321  public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME);
6322
6323 /**
6324   * Search parameter: <b>publisher</b>
6325   * <p>
6326   * Description: <b>Multiple Resources: 
6327
6328* [CapabilityStatement](capabilitystatement.html): Name of the publisher of the capability statement
6329* [CodeSystem](codesystem.html): Name of the publisher of the code system
6330* [CompartmentDefinition](compartmentdefinition.html): Name of the publisher of the compartment definition
6331* [ConceptMap](conceptmap.html): Name of the publisher of the concept map
6332* [GraphDefinition](graphdefinition.html): Name of the publisher of the graph definition
6333* [ImplementationGuide](implementationguide.html): Name of the publisher of the implementation guide
6334* [MessageDefinition](messagedefinition.html): Name of the publisher of the message definition
6335* [NamingSystem](namingsystem.html): Name of the publisher of the naming system
6336* [OperationDefinition](operationdefinition.html): Name of the publisher of the operation definition
6337* [SearchParameter](searchparameter.html): Name of the publisher of the search parameter
6338* [StructureDefinition](structuredefinition.html): Name of the publisher of the structure definition
6339* [StructureMap](structuremap.html): Name of the publisher of the structure map
6340* [TerminologyCapabilities](terminologycapabilities.html): Name of the publisher of the terminology capabilities
6341* [ValueSet](valueset.html): Name of the publisher of the value set
6342</b><br>
6343   * Type: <b>string</b><br>
6344   * Path: <b>CapabilityStatement.publisher | CodeSystem.publisher | CompartmentDefinition.publisher | ConceptMap.publisher | GraphDefinition.publisher | ImplementationGuide.publisher | MessageDefinition.publisher | NamingSystem.publisher | OperationDefinition.publisher | SearchParameter.publisher | StructureDefinition.publisher | StructureMap.publisher | TerminologyCapabilities.publisher | ValueSet.publisher</b><br>
6345   * </p>
6346   */
6347  @SearchParamDefinition(name="publisher", path="CapabilityStatement.publisher | CodeSystem.publisher | CompartmentDefinition.publisher | ConceptMap.publisher | GraphDefinition.publisher | ImplementationGuide.publisher | MessageDefinition.publisher | NamingSystem.publisher | OperationDefinition.publisher | SearchParameter.publisher | StructureDefinition.publisher | StructureMap.publisher | TerminologyCapabilities.publisher | ValueSet.publisher", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): Name of the publisher of the capability statement\r\n* [CodeSystem](codesystem.html): Name of the publisher of the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): Name of the publisher of the compartment definition\r\n* [ConceptMap](conceptmap.html): Name of the publisher of the concept map\r\n* [GraphDefinition](graphdefinition.html): Name of the publisher of the graph definition\r\n* [ImplementationGuide](implementationguide.html): Name of the publisher of the implementation guide\r\n* [MessageDefinition](messagedefinition.html): Name of the publisher of the message definition\r\n* [NamingSystem](namingsystem.html): Name of the publisher of the naming system\r\n* [OperationDefinition](operationdefinition.html): Name of the publisher of the operation definition\r\n* [SearchParameter](searchparameter.html): Name of the publisher of the search parameter\r\n* [StructureDefinition](structuredefinition.html): Name of the publisher of the structure definition\r\n* [StructureMap](structuremap.html): Name of the publisher of the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): Name of the publisher of the terminology capabilities\r\n* [ValueSet](valueset.html): Name of the publisher of the value set\r\n", type="string" )
6348  public static final String SP_PUBLISHER = "publisher";
6349 /**
6350   * <b>Fluent Client</b> search parameter constant for <b>publisher</b>
6351   * <p>
6352   * Description: <b>Multiple Resources: 
6353
6354* [CapabilityStatement](capabilitystatement.html): Name of the publisher of the capability statement
6355* [CodeSystem](codesystem.html): Name of the publisher of the code system
6356* [CompartmentDefinition](compartmentdefinition.html): Name of the publisher of the compartment definition
6357* [ConceptMap](conceptmap.html): Name of the publisher of the concept map
6358* [GraphDefinition](graphdefinition.html): Name of the publisher of the graph definition
6359* [ImplementationGuide](implementationguide.html): Name of the publisher of the implementation guide
6360* [MessageDefinition](messagedefinition.html): Name of the publisher of the message definition
6361* [NamingSystem](namingsystem.html): Name of the publisher of the naming system
6362* [OperationDefinition](operationdefinition.html): Name of the publisher of the operation definition
6363* [SearchParameter](searchparameter.html): Name of the publisher of the search parameter
6364* [StructureDefinition](structuredefinition.html): Name of the publisher of the structure definition
6365* [StructureMap](structuremap.html): Name of the publisher of the structure map
6366* [TerminologyCapabilities](terminologycapabilities.html): Name of the publisher of the terminology capabilities
6367* [ValueSet](valueset.html): Name of the publisher of the value set
6368</b><br>
6369   * Type: <b>string</b><br>
6370   * Path: <b>CapabilityStatement.publisher | CodeSystem.publisher | CompartmentDefinition.publisher | ConceptMap.publisher | GraphDefinition.publisher | ImplementationGuide.publisher | MessageDefinition.publisher | NamingSystem.publisher | OperationDefinition.publisher | SearchParameter.publisher | StructureDefinition.publisher | StructureMap.publisher | TerminologyCapabilities.publisher | ValueSet.publisher</b><br>
6371   * </p>
6372   */
6373  public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER);
6374
6375 /**
6376   * Search parameter: <b>status</b>
6377   * <p>
6378   * Description: <b>Multiple Resources: 
6379
6380* [CapabilityStatement](capabilitystatement.html): The current status of the capability statement
6381* [CodeSystem](codesystem.html): The current status of the code system
6382* [CompartmentDefinition](compartmentdefinition.html): The current status of the compartment definition
6383* [ConceptMap](conceptmap.html): The current status of the concept map
6384* [GraphDefinition](graphdefinition.html): The current status of the graph definition
6385* [ImplementationGuide](implementationguide.html): The current status of the implementation guide
6386* [MessageDefinition](messagedefinition.html): The current status of the message definition
6387* [NamingSystem](namingsystem.html): The current status of the naming system
6388* [OperationDefinition](operationdefinition.html): The current status of the operation definition
6389* [SearchParameter](searchparameter.html): The current status of the search parameter
6390* [StructureDefinition](structuredefinition.html): The current status of the structure definition
6391* [StructureMap](structuremap.html): The current status of the structure map
6392* [TerminologyCapabilities](terminologycapabilities.html): The current status of the terminology capabilities
6393* [ValueSet](valueset.html): The current status of the value set
6394</b><br>
6395   * Type: <b>token</b><br>
6396   * Path: <b>CapabilityStatement.status | CodeSystem.status | CompartmentDefinition.status | ConceptMap.status | GraphDefinition.status | ImplementationGuide.status | MessageDefinition.status | NamingSystem.status | OperationDefinition.status | SearchParameter.status | StructureDefinition.status | StructureMap.status | TerminologyCapabilities.status | ValueSet.status</b><br>
6397   * </p>
6398   */
6399  @SearchParamDefinition(name="status", path="CapabilityStatement.status | CodeSystem.status | CompartmentDefinition.status | ConceptMap.status | GraphDefinition.status | ImplementationGuide.status | MessageDefinition.status | NamingSystem.status | OperationDefinition.status | SearchParameter.status | StructureDefinition.status | StructureMap.status | TerminologyCapabilities.status | ValueSet.status", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): The current status of the capability statement\r\n* [CodeSystem](codesystem.html): The current status of the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): The current status of the compartment definition\r\n* [ConceptMap](conceptmap.html): The current status of the concept map\r\n* [GraphDefinition](graphdefinition.html): The current status of the graph definition\r\n* [ImplementationGuide](implementationguide.html): The current status of the implementation guide\r\n* [MessageDefinition](messagedefinition.html): The current status of the message definition\r\n* [NamingSystem](namingsystem.html): The current status of the naming system\r\n* [OperationDefinition](operationdefinition.html): The current status of the operation definition\r\n* [SearchParameter](searchparameter.html): The current status of the search parameter\r\n* [StructureDefinition](structuredefinition.html): The current status of the structure definition\r\n* [StructureMap](structuremap.html): The current status of the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): The current status of the terminology capabilities\r\n* [ValueSet](valueset.html): The current status of the value set\r\n", type="token" )
6400  public static final String SP_STATUS = "status";
6401 /**
6402   * <b>Fluent Client</b> search parameter constant for <b>status</b>
6403   * <p>
6404   * Description: <b>Multiple Resources: 
6405
6406* [CapabilityStatement](capabilitystatement.html): The current status of the capability statement
6407* [CodeSystem](codesystem.html): The current status of the code system
6408* [CompartmentDefinition](compartmentdefinition.html): The current status of the compartment definition
6409* [ConceptMap](conceptmap.html): The current status of the concept map
6410* [GraphDefinition](graphdefinition.html): The current status of the graph definition
6411* [ImplementationGuide](implementationguide.html): The current status of the implementation guide
6412* [MessageDefinition](messagedefinition.html): The current status of the message definition
6413* [NamingSystem](namingsystem.html): The current status of the naming system
6414* [OperationDefinition](operationdefinition.html): The current status of the operation definition
6415* [SearchParameter](searchparameter.html): The current status of the search parameter
6416* [StructureDefinition](structuredefinition.html): The current status of the structure definition
6417* [StructureMap](structuremap.html): The current status of the structure map
6418* [TerminologyCapabilities](terminologycapabilities.html): The current status of the terminology capabilities
6419* [ValueSet](valueset.html): The current status of the value set
6420</b><br>
6421   * Type: <b>token</b><br>
6422   * Path: <b>CapabilityStatement.status | CodeSystem.status | CompartmentDefinition.status | ConceptMap.status | GraphDefinition.status | ImplementationGuide.status | MessageDefinition.status | NamingSystem.status | OperationDefinition.status | SearchParameter.status | StructureDefinition.status | StructureMap.status | TerminologyCapabilities.status | ValueSet.status</b><br>
6423   * </p>
6424   */
6425  public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS);
6426
6427 /**
6428   * Search parameter: <b>title</b>
6429   * <p>
6430   * Description: <b>Multiple Resources: 
6431
6432* [CapabilityStatement](capabilitystatement.html): The human-friendly name of the capability statement
6433* [CodeSystem](codesystem.html): The human-friendly name of the code system
6434* [ConceptMap](conceptmap.html): The human-friendly name of the concept map
6435* [ImplementationGuide](implementationguide.html): The human-friendly name of the implementation guide
6436* [MessageDefinition](messagedefinition.html): The human-friendly name of the message definition
6437* [OperationDefinition](operationdefinition.html): The human-friendly name of the operation definition
6438* [StructureDefinition](structuredefinition.html): The human-friendly name of the structure definition
6439* [StructureMap](structuremap.html): The human-friendly name of the structure map
6440* [TerminologyCapabilities](terminologycapabilities.html): The human-friendly name of the terminology capabilities
6441* [ValueSet](valueset.html): The human-friendly name of the value set
6442</b><br>
6443   * Type: <b>string</b><br>
6444   * Path: <b>CapabilityStatement.title | CodeSystem.title | ConceptMap.title | ImplementationGuide.title | MessageDefinition.title | OperationDefinition.title | StructureDefinition.title | StructureMap.title | TerminologyCapabilities.title | ValueSet.title</b><br>
6445   * </p>
6446   */
6447  @SearchParamDefinition(name="title", path="CapabilityStatement.title | CodeSystem.title | ConceptMap.title | ImplementationGuide.title | MessageDefinition.title | OperationDefinition.title | StructureDefinition.title | StructureMap.title | TerminologyCapabilities.title | ValueSet.title", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): The human-friendly name of the capability statement\r\n* [CodeSystem](codesystem.html): The human-friendly name of the code system\r\n* [ConceptMap](conceptmap.html): The human-friendly name of the concept map\r\n* [ImplementationGuide](implementationguide.html): The human-friendly name of the implementation guide\r\n* [MessageDefinition](messagedefinition.html): The human-friendly name of the message definition\r\n* [OperationDefinition](operationdefinition.html): The human-friendly name of the operation definition\r\n* [StructureDefinition](structuredefinition.html): The human-friendly name of the structure definition\r\n* [StructureMap](structuremap.html): The human-friendly name of the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): The human-friendly name of the terminology capabilities\r\n* [ValueSet](valueset.html): The human-friendly name of the value set\r\n", type="string" )
6448  public static final String SP_TITLE = "title";
6449 /**
6450   * <b>Fluent Client</b> search parameter constant for <b>title</b>
6451   * <p>
6452   * Description: <b>Multiple Resources: 
6453
6454* [CapabilityStatement](capabilitystatement.html): The human-friendly name of the capability statement
6455* [CodeSystem](codesystem.html): The human-friendly name of the code system
6456* [ConceptMap](conceptmap.html): The human-friendly name of the concept map
6457* [ImplementationGuide](implementationguide.html): The human-friendly name of the implementation guide
6458* [MessageDefinition](messagedefinition.html): The human-friendly name of the message definition
6459* [OperationDefinition](operationdefinition.html): The human-friendly name of the operation definition
6460* [StructureDefinition](structuredefinition.html): The human-friendly name of the structure definition
6461* [StructureMap](structuremap.html): The human-friendly name of the structure map
6462* [TerminologyCapabilities](terminologycapabilities.html): The human-friendly name of the terminology capabilities
6463* [ValueSet](valueset.html): The human-friendly name of the value set
6464</b><br>
6465   * Type: <b>string</b><br>
6466   * Path: <b>CapabilityStatement.title | CodeSystem.title | ConceptMap.title | ImplementationGuide.title | MessageDefinition.title | OperationDefinition.title | StructureDefinition.title | StructureMap.title | TerminologyCapabilities.title | ValueSet.title</b><br>
6467   * </p>
6468   */
6469  public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE);
6470
6471 /**
6472   * Search parameter: <b>url</b>
6473   * <p>
6474   * Description: <b>Multiple Resources: 
6475
6476* [CapabilityStatement](capabilitystatement.html): The uri that identifies the capability statement
6477* [CodeSystem](codesystem.html): The uri that identifies the code system
6478* [CompartmentDefinition](compartmentdefinition.html): The uri that identifies the compartment definition
6479* [ConceptMap](conceptmap.html): The uri that identifies the concept map
6480* [GraphDefinition](graphdefinition.html): The uri that identifies the graph definition
6481* [ImplementationGuide](implementationguide.html): The uri that identifies the implementation guide
6482* [MessageDefinition](messagedefinition.html): The uri that identifies the message definition
6483* [NamingSystem](namingsystem.html): The uri that identifies the naming system
6484* [OperationDefinition](operationdefinition.html): The uri that identifies the operation definition
6485* [SearchParameter](searchparameter.html): The uri that identifies the search parameter
6486* [StructureDefinition](structuredefinition.html): The uri that identifies the structure definition
6487* [StructureMap](structuremap.html): The uri that identifies the structure map
6488* [TerminologyCapabilities](terminologycapabilities.html): The uri that identifies the terminology capabilities
6489* [ValueSet](valueset.html): The uri that identifies the value set
6490</b><br>
6491   * Type: <b>uri</b><br>
6492   * Path: <b>CapabilityStatement.url | CodeSystem.url | CompartmentDefinition.url | ConceptMap.url | GraphDefinition.url | ImplementationGuide.url | MessageDefinition.url | NamingSystem.url | OperationDefinition.url | SearchParameter.url | StructureDefinition.url | StructureMap.url | TerminologyCapabilities.url | ValueSet.url</b><br>
6493   * </p>
6494   */
6495  @SearchParamDefinition(name="url", path="CapabilityStatement.url | CodeSystem.url | CompartmentDefinition.url | ConceptMap.url | GraphDefinition.url | ImplementationGuide.url | MessageDefinition.url | NamingSystem.url | OperationDefinition.url | SearchParameter.url | StructureDefinition.url | StructureMap.url | TerminologyCapabilities.url | ValueSet.url", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): The uri that identifies the capability statement\r\n* [CodeSystem](codesystem.html): The uri that identifies the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): The uri that identifies the compartment definition\r\n* [ConceptMap](conceptmap.html): The uri that identifies the concept map\r\n* [GraphDefinition](graphdefinition.html): The uri that identifies the graph definition\r\n* [ImplementationGuide](implementationguide.html): The uri that identifies the implementation guide\r\n* [MessageDefinition](messagedefinition.html): The uri that identifies the message definition\r\n* [NamingSystem](namingsystem.html): The uri that identifies the naming system\r\n* [OperationDefinition](operationdefinition.html): The uri that identifies the operation definition\r\n* [SearchParameter](searchparameter.html): The uri that identifies the search parameter\r\n* [StructureDefinition](structuredefinition.html): The uri that identifies the structure definition\r\n* [StructureMap](structuremap.html): The uri that identifies the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): The uri that identifies the terminology capabilities\r\n* [ValueSet](valueset.html): The uri that identifies the value set\r\n", type="uri" )
6496  public static final String SP_URL = "url";
6497 /**
6498   * <b>Fluent Client</b> search parameter constant for <b>url</b>
6499   * <p>
6500   * Description: <b>Multiple Resources: 
6501
6502* [CapabilityStatement](capabilitystatement.html): The uri that identifies the capability statement
6503* [CodeSystem](codesystem.html): The uri that identifies the code system
6504* [CompartmentDefinition](compartmentdefinition.html): The uri that identifies the compartment definition
6505* [ConceptMap](conceptmap.html): The uri that identifies the concept map
6506* [GraphDefinition](graphdefinition.html): The uri that identifies the graph definition
6507* [ImplementationGuide](implementationguide.html): The uri that identifies the implementation guide
6508* [MessageDefinition](messagedefinition.html): The uri that identifies the message definition
6509* [NamingSystem](namingsystem.html): The uri that identifies the naming system
6510* [OperationDefinition](operationdefinition.html): The uri that identifies the operation definition
6511* [SearchParameter](searchparameter.html): The uri that identifies the search parameter
6512* [StructureDefinition](structuredefinition.html): The uri that identifies the structure definition
6513* [StructureMap](structuremap.html): The uri that identifies the structure map
6514* [TerminologyCapabilities](terminologycapabilities.html): The uri that identifies the terminology capabilities
6515* [ValueSet](valueset.html): The uri that identifies the value set
6516</b><br>
6517   * Type: <b>uri</b><br>
6518   * Path: <b>CapabilityStatement.url | CodeSystem.url | CompartmentDefinition.url | ConceptMap.url | GraphDefinition.url | ImplementationGuide.url | MessageDefinition.url | NamingSystem.url | OperationDefinition.url | SearchParameter.url | StructureDefinition.url | StructureMap.url | TerminologyCapabilities.url | ValueSet.url</b><br>
6519   * </p>
6520   */
6521  public static final ca.uhn.fhir.rest.gclient.UriClientParam URL = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_URL);
6522
6523 /**
6524   * Search parameter: <b>version</b>
6525   * <p>
6526   * Description: <b>Multiple Resources: 
6527
6528* [CapabilityStatement](capabilitystatement.html): The business version of the capability statement
6529* [CodeSystem](codesystem.html): The business version of the code system
6530* [CompartmentDefinition](compartmentdefinition.html): The business version of the compartment definition
6531* [ConceptMap](conceptmap.html): The business version of the concept map
6532* [GraphDefinition](graphdefinition.html): The business version of the graph definition
6533* [ImplementationGuide](implementationguide.html): The business version of the implementation guide
6534* [MessageDefinition](messagedefinition.html): The business version of the message definition
6535* [NamingSystem](namingsystem.html): The business version of the naming system
6536* [OperationDefinition](operationdefinition.html): The business version of the operation definition
6537* [SearchParameter](searchparameter.html): The business version of the search parameter
6538* [StructureDefinition](structuredefinition.html): The business version of the structure definition
6539* [StructureMap](structuremap.html): The business version of the structure map
6540* [TerminologyCapabilities](terminologycapabilities.html): The business version of the terminology capabilities
6541* [ValueSet](valueset.html): The business version of the value set
6542</b><br>
6543   * Type: <b>token</b><br>
6544   * Path: <b>CapabilityStatement.version | CodeSystem.version | CompartmentDefinition.version | ConceptMap.version | GraphDefinition.version | ImplementationGuide.version | MessageDefinition.version | NamingSystem.version | OperationDefinition.version | SearchParameter.version | StructureDefinition.version | StructureMap.version | TerminologyCapabilities.version | ValueSet.version</b><br>
6545   * </p>
6546   */
6547  @SearchParamDefinition(name="version", path="CapabilityStatement.version | CodeSystem.version | CompartmentDefinition.version | ConceptMap.version | GraphDefinition.version | ImplementationGuide.version | MessageDefinition.version | NamingSystem.version | OperationDefinition.version | SearchParameter.version | StructureDefinition.version | StructureMap.version | TerminologyCapabilities.version | ValueSet.version", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): The business version of the capability statement\r\n* [CodeSystem](codesystem.html): The business version of the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): The business version of the compartment definition\r\n* [ConceptMap](conceptmap.html): The business version of the concept map\r\n* [GraphDefinition](graphdefinition.html): The business version of the graph definition\r\n* [ImplementationGuide](implementationguide.html): The business version of the implementation guide\r\n* [MessageDefinition](messagedefinition.html): The business version of the message definition\r\n* [NamingSystem](namingsystem.html): The business version of the naming system\r\n* [OperationDefinition](operationdefinition.html): The business version of the operation definition\r\n* [SearchParameter](searchparameter.html): The business version of the search parameter\r\n* [StructureDefinition](structuredefinition.html): The business version of the structure definition\r\n* [StructureMap](structuremap.html): The business version of the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): The business version of the terminology capabilities\r\n* [ValueSet](valueset.html): The business version of the value set\r\n", type="token" )
6548  public static final String SP_VERSION = "version";
6549 /**
6550   * <b>Fluent Client</b> search parameter constant for <b>version</b>
6551   * <p>
6552   * Description: <b>Multiple Resources: 
6553
6554* [CapabilityStatement](capabilitystatement.html): The business version of the capability statement
6555* [CodeSystem](codesystem.html): The business version of the code system
6556* [CompartmentDefinition](compartmentdefinition.html): The business version of the compartment definition
6557* [ConceptMap](conceptmap.html): The business version of the concept map
6558* [GraphDefinition](graphdefinition.html): The business version of the graph definition
6559* [ImplementationGuide](implementationguide.html): The business version of the implementation guide
6560* [MessageDefinition](messagedefinition.html): The business version of the message definition
6561* [NamingSystem](namingsystem.html): The business version of the naming system
6562* [OperationDefinition](operationdefinition.html): The business version of the operation definition
6563* [SearchParameter](searchparameter.html): The business version of the search parameter
6564* [StructureDefinition](structuredefinition.html): The business version of the structure definition
6565* [StructureMap](structuremap.html): The business version of the structure map
6566* [TerminologyCapabilities](terminologycapabilities.html): The business version of the terminology capabilities
6567* [ValueSet](valueset.html): The business version of the value set
6568</b><br>
6569   * Type: <b>token</b><br>
6570   * Path: <b>CapabilityStatement.version | CodeSystem.version | CompartmentDefinition.version | ConceptMap.version | GraphDefinition.version | ImplementationGuide.version | MessageDefinition.version | NamingSystem.version | OperationDefinition.version | SearchParameter.version | StructureDefinition.version | StructureMap.version | TerminologyCapabilities.version | ValueSet.version</b><br>
6571   * </p>
6572   */
6573  public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION);
6574
6575
6576}
6577