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 TerminologyCapabilities resource documents a set of capabilities (behaviors) of a FHIR Terminology Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation.
072 */
073@ResourceDef(name="TerminologyCapabilities", profile="http://hl7.org/fhir/StructureDefinition/TerminologyCapabilities")
074public class TerminologyCapabilities extends CanonicalResource {
075
076    public enum CodeSearchSupport {
077        /**
078         * The search for code on ValueSet only includes codes explicitly detailed on includes or expansions.
079         */
080        EXPLICIT, 
081        /**
082         * The search for code on ValueSet only includes all codes based on the expansion of the value set.
083         */
084        ALL, 
085        /**
086         * added to help the parsers with the generic types
087         */
088        NULL;
089        public static CodeSearchSupport fromCode(String codeString) throws FHIRException {
090            if (codeString == null || "".equals(codeString))
091                return null;
092        if ("explicit".equals(codeString))
093          return EXPLICIT;
094        if ("all".equals(codeString))
095          return ALL;
096        if (Configuration.isAcceptInvalidEnums())
097          return null;
098        else
099          throw new FHIRException("Unknown CodeSearchSupport code '"+codeString+"'");
100        }
101        public String toCode() {
102          switch (this) {
103            case EXPLICIT: return "explicit";
104            case ALL: return "all";
105            default: return "?";
106          }
107        }
108        public String getSystem() {
109          switch (this) {
110            case EXPLICIT: return "http://hl7.org/fhir/code-search-support";
111            case ALL: return "http://hl7.org/fhir/code-search-support";
112            default: return "?";
113          }
114        }
115        public String getDefinition() {
116          switch (this) {
117            case EXPLICIT: return "The search for code on ValueSet only includes codes explicitly detailed on includes or expansions.";
118            case ALL: return "The search for code on ValueSet only includes all codes based on the expansion of the value set.";
119            default: return "?";
120          }
121        }
122        public String getDisplay() {
123          switch (this) {
124            case EXPLICIT: return "Explicit Codes";
125            case ALL: return "Implicit Codes";
126            default: return "?";
127          }
128        }
129    }
130
131  public static class CodeSearchSupportEnumFactory implements EnumFactory<CodeSearchSupport> {
132    public CodeSearchSupport fromCode(String codeString) throws IllegalArgumentException {
133      if (codeString == null || "".equals(codeString))
134            if (codeString == null || "".equals(codeString))
135                return null;
136        if ("explicit".equals(codeString))
137          return CodeSearchSupport.EXPLICIT;
138        if ("all".equals(codeString))
139          return CodeSearchSupport.ALL;
140        throw new IllegalArgumentException("Unknown CodeSearchSupport code '"+codeString+"'");
141        }
142        public Enumeration<CodeSearchSupport> fromType(Base code) throws FHIRException {
143          if (code == null)
144            return null;
145          if (code.isEmpty())
146            return new Enumeration<CodeSearchSupport>(this);
147          String codeString = ((PrimitiveType) code).asStringValue();
148          if (codeString == null || "".equals(codeString))
149            return null;
150        if ("explicit".equals(codeString))
151          return new Enumeration<CodeSearchSupport>(this, CodeSearchSupport.EXPLICIT);
152        if ("all".equals(codeString))
153          return new Enumeration<CodeSearchSupport>(this, CodeSearchSupport.ALL);
154        throw new FHIRException("Unknown CodeSearchSupport code '"+codeString+"'");
155        }
156    public String toCode(CodeSearchSupport code) {
157      if (code == CodeSearchSupport.EXPLICIT)
158        return "explicit";
159      if (code == CodeSearchSupport.ALL)
160        return "all";
161      return "?";
162      }
163    public String toSystem(CodeSearchSupport code) {
164      return code.getSystem();
165      }
166    }
167
168    @Block()
169    public static class TerminologyCapabilitiesSoftwareComponent extends BackboneElement implements IBaseBackboneElement {
170        /**
171         * Name the software is known by.
172         */
173        @Child(name = "name", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=true)
174        @Description(shortDefinition="A name the software is known by", formalDefinition="Name the software is known by." )
175        protected StringType name;
176
177        /**
178         * The version identifier for the software covered by this statement.
179         */
180        @Child(name = "version", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=true)
181        @Description(shortDefinition="Version covered by this statement", formalDefinition="The version identifier for the software covered by this statement." )
182        protected StringType version;
183
184        private static final long serialVersionUID = -790299911L;
185
186    /**
187     * Constructor
188     */
189      public TerminologyCapabilitiesSoftwareComponent() {
190        super();
191      }
192
193    /**
194     * Constructor
195     */
196      public TerminologyCapabilitiesSoftwareComponent(String name) {
197        super();
198        this.setName(name);
199      }
200
201        /**
202         * @return {@link #name} (Name the software is known by.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
203         */
204        public StringType getNameElement() { 
205          if (this.name == null)
206            if (Configuration.errorOnAutoCreate())
207              throw new Error("Attempt to auto-create TerminologyCapabilitiesSoftwareComponent.name");
208            else if (Configuration.doAutoCreate())
209              this.name = new StringType(); // bb
210          return this.name;
211        }
212
213        public boolean hasNameElement() { 
214          return this.name != null && !this.name.isEmpty();
215        }
216
217        public boolean hasName() { 
218          return this.name != null && !this.name.isEmpty();
219        }
220
221        /**
222         * @param value {@link #name} (Name the software is known by.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
223         */
224        public TerminologyCapabilitiesSoftwareComponent setNameElement(StringType value) { 
225          this.name = value;
226          return this;
227        }
228
229        /**
230         * @return Name the software is known by.
231         */
232        public String getName() { 
233          return this.name == null ? null : this.name.getValue();
234        }
235
236        /**
237         * @param value Name the software is known by.
238         */
239        public TerminologyCapabilitiesSoftwareComponent setName(String value) { 
240            if (this.name == null)
241              this.name = new StringType();
242            this.name.setValue(value);
243          return this;
244        }
245
246        /**
247         * @return {@link #version} (The version identifier for the software covered by this statement.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
248         */
249        public StringType getVersionElement() { 
250          if (this.version == null)
251            if (Configuration.errorOnAutoCreate())
252              throw new Error("Attempt to auto-create TerminologyCapabilitiesSoftwareComponent.version");
253            else if (Configuration.doAutoCreate())
254              this.version = new StringType(); // bb
255          return this.version;
256        }
257
258        public boolean hasVersionElement() { 
259          return this.version != null && !this.version.isEmpty();
260        }
261
262        public boolean hasVersion() { 
263          return this.version != null && !this.version.isEmpty();
264        }
265
266        /**
267         * @param value {@link #version} (The version identifier for the software covered by this statement.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
268         */
269        public TerminologyCapabilitiesSoftwareComponent setVersionElement(StringType value) { 
270          this.version = value;
271          return this;
272        }
273
274        /**
275         * @return The version identifier for the software covered by this statement.
276         */
277        public String getVersion() { 
278          return this.version == null ? null : this.version.getValue();
279        }
280
281        /**
282         * @param value The version identifier for the software covered by this statement.
283         */
284        public TerminologyCapabilitiesSoftwareComponent setVersion(String value) { 
285          if (Utilities.noString(value))
286            this.version = null;
287          else {
288            if (this.version == null)
289              this.version = new StringType();
290            this.version.setValue(value);
291          }
292          return this;
293        }
294
295        protected void listChildren(List<Property> children) {
296          super.listChildren(children);
297          children.add(new Property("name", "string", "Name the software is known by.", 0, 1, name));
298          children.add(new Property("version", "string", "The version identifier for the software covered by this statement.", 0, 1, version));
299        }
300
301        @Override
302        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
303          switch (_hash) {
304          case 3373707: /*name*/  return new Property("name", "string", "Name the software is known by.", 0, 1, name);
305          case 351608024: /*version*/  return new Property("version", "string", "The version identifier for the software covered by this statement.", 0, 1, version);
306          default: return super.getNamedProperty(_hash, _name, _checkValid);
307          }
308
309        }
310
311      @Override
312      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
313        switch (hash) {
314        case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType
315        case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType
316        default: return super.getProperty(hash, name, checkValid);
317        }
318
319      }
320
321      @Override
322      public Base setProperty(int hash, String name, Base value) throws FHIRException {
323        switch (hash) {
324        case 3373707: // name
325          this.name = TypeConvertor.castToString(value); // StringType
326          return value;
327        case 351608024: // version
328          this.version = TypeConvertor.castToString(value); // StringType
329          return value;
330        default: return super.setProperty(hash, name, value);
331        }
332
333      }
334
335      @Override
336      public Base setProperty(String name, Base value) throws FHIRException {
337        if (name.equals("name")) {
338          this.name = TypeConvertor.castToString(value); // StringType
339        } else if (name.equals("version")) {
340          this.version = TypeConvertor.castToString(value); // StringType
341        } else
342          return super.setProperty(name, value);
343        return value;
344      }
345
346      @Override
347      public Base makeProperty(int hash, String name) throws FHIRException {
348        switch (hash) {
349        case 3373707:  return getNameElement();
350        case 351608024:  return getVersionElement();
351        default: return super.makeProperty(hash, name);
352        }
353
354      }
355
356      @Override
357      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
358        switch (hash) {
359        case 3373707: /*name*/ return new String[] {"string"};
360        case 351608024: /*version*/ return new String[] {"string"};
361        default: return super.getTypesForProperty(hash, name);
362        }
363
364      }
365
366      @Override
367      public Base addChild(String name) throws FHIRException {
368        if (name.equals("name")) {
369          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.software.name");
370        }
371        else if (name.equals("version")) {
372          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.software.version");
373        }
374        else
375          return super.addChild(name);
376      }
377
378      public TerminologyCapabilitiesSoftwareComponent copy() {
379        TerminologyCapabilitiesSoftwareComponent dst = new TerminologyCapabilitiesSoftwareComponent();
380        copyValues(dst);
381        return dst;
382      }
383
384      public void copyValues(TerminologyCapabilitiesSoftwareComponent dst) {
385        super.copyValues(dst);
386        dst.name = name == null ? null : name.copy();
387        dst.version = version == null ? null : version.copy();
388      }
389
390      @Override
391      public boolean equalsDeep(Base other_) {
392        if (!super.equalsDeep(other_))
393          return false;
394        if (!(other_ instanceof TerminologyCapabilitiesSoftwareComponent))
395          return false;
396        TerminologyCapabilitiesSoftwareComponent o = (TerminologyCapabilitiesSoftwareComponent) other_;
397        return compareDeep(name, o.name, true) && compareDeep(version, o.version, true);
398      }
399
400      @Override
401      public boolean equalsShallow(Base other_) {
402        if (!super.equalsShallow(other_))
403          return false;
404        if (!(other_ instanceof TerminologyCapabilitiesSoftwareComponent))
405          return false;
406        TerminologyCapabilitiesSoftwareComponent o = (TerminologyCapabilitiesSoftwareComponent) other_;
407        return compareValues(name, o.name, true) && compareValues(version, o.version, true);
408      }
409
410      public boolean isEmpty() {
411        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, version);
412      }
413
414  public String fhirType() {
415    return "TerminologyCapabilities.software";
416
417  }
418
419  }
420
421    @Block()
422    public static class TerminologyCapabilitiesImplementationComponent extends BackboneElement implements IBaseBackboneElement {
423        /**
424         * Information about the specific installation that this terminology capability statement relates to.
425         */
426        @Child(name = "description", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=true)
427        @Description(shortDefinition="Describes this specific instance", formalDefinition="Information about the specific installation that this terminology capability statement relates to." )
428        protected StringType description;
429
430        /**
431         * An absolute base URL for the implementation.
432         */
433        @Child(name = "url", type = {UrlType.class}, order=2, min=0, max=1, modifier=false, summary=true)
434        @Description(shortDefinition="Base URL for the implementation", formalDefinition="An absolute base URL for the implementation." )
435        protected UrlType url;
436
437        private static final long serialVersionUID = 98009649L;
438
439    /**
440     * Constructor
441     */
442      public TerminologyCapabilitiesImplementationComponent() {
443        super();
444      }
445
446    /**
447     * Constructor
448     */
449      public TerminologyCapabilitiesImplementationComponent(String description) {
450        super();
451        this.setDescription(description);
452      }
453
454        /**
455         * @return {@link #description} (Information about the specific installation that this terminology capability statement relates to.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
456         */
457        public StringType getDescriptionElement() { 
458          if (this.description == null)
459            if (Configuration.errorOnAutoCreate())
460              throw new Error("Attempt to auto-create TerminologyCapabilitiesImplementationComponent.description");
461            else if (Configuration.doAutoCreate())
462              this.description = new StringType(); // bb
463          return this.description;
464        }
465
466        public boolean hasDescriptionElement() { 
467          return this.description != null && !this.description.isEmpty();
468        }
469
470        public boolean hasDescription() { 
471          return this.description != null && !this.description.isEmpty();
472        }
473
474        /**
475         * @param value {@link #description} (Information about the specific installation that this terminology capability statement relates to.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
476         */
477        public TerminologyCapabilitiesImplementationComponent setDescriptionElement(StringType value) { 
478          this.description = value;
479          return this;
480        }
481
482        /**
483         * @return Information about the specific installation that this terminology capability statement relates to.
484         */
485        public String getDescription() { 
486          return this.description == null ? null : this.description.getValue();
487        }
488
489        /**
490         * @param value Information about the specific installation that this terminology capability statement relates to.
491         */
492        public TerminologyCapabilitiesImplementationComponent setDescription(String value) { 
493            if (this.description == null)
494              this.description = new StringType();
495            this.description.setValue(value);
496          return this;
497        }
498
499        /**
500         * @return {@link #url} (An absolute base URL for the implementation.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
501         */
502        public UrlType getUrlElement() { 
503          if (this.url == null)
504            if (Configuration.errorOnAutoCreate())
505              throw new Error("Attempt to auto-create TerminologyCapabilitiesImplementationComponent.url");
506            else if (Configuration.doAutoCreate())
507              this.url = new UrlType(); // bb
508          return this.url;
509        }
510
511        public boolean hasUrlElement() { 
512          return this.url != null && !this.url.isEmpty();
513        }
514
515        public boolean hasUrl() { 
516          return this.url != null && !this.url.isEmpty();
517        }
518
519        /**
520         * @param value {@link #url} (An absolute base URL for the implementation.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
521         */
522        public TerminologyCapabilitiesImplementationComponent setUrlElement(UrlType value) { 
523          this.url = value;
524          return this;
525        }
526
527        /**
528         * @return An absolute base URL for the implementation.
529         */
530        public String getUrl() { 
531          return this.url == null ? null : this.url.getValue();
532        }
533
534        /**
535         * @param value An absolute base URL for the implementation.
536         */
537        public TerminologyCapabilitiesImplementationComponent setUrl(String value) { 
538          if (Utilities.noString(value))
539            this.url = null;
540          else {
541            if (this.url == null)
542              this.url = new UrlType();
543            this.url.setValue(value);
544          }
545          return this;
546        }
547
548        protected void listChildren(List<Property> children) {
549          super.listChildren(children);
550          children.add(new Property("description", "string", "Information about the specific installation that this terminology capability statement relates to.", 0, 1, description));
551          children.add(new Property("url", "url", "An absolute base URL for the implementation.", 0, 1, url));
552        }
553
554        @Override
555        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
556          switch (_hash) {
557          case -1724546052: /*description*/  return new Property("description", "string", "Information about the specific installation that this terminology capability statement relates to.", 0, 1, description);
558          case 116079: /*url*/  return new Property("url", "url", "An absolute base URL for the implementation.", 0, 1, url);
559          default: return super.getNamedProperty(_hash, _name, _checkValid);
560          }
561
562        }
563
564      @Override
565      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
566        switch (hash) {
567        case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType
568        case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UrlType
569        default: return super.getProperty(hash, name, checkValid);
570        }
571
572      }
573
574      @Override
575      public Base setProperty(int hash, String name, Base value) throws FHIRException {
576        switch (hash) {
577        case -1724546052: // description
578          this.description = TypeConvertor.castToString(value); // StringType
579          return value;
580        case 116079: // url
581          this.url = TypeConvertor.castToUrl(value); // UrlType
582          return value;
583        default: return super.setProperty(hash, name, value);
584        }
585
586      }
587
588      @Override
589      public Base setProperty(String name, Base value) throws FHIRException {
590        if (name.equals("description")) {
591          this.description = TypeConvertor.castToString(value); // StringType
592        } else if (name.equals("url")) {
593          this.url = TypeConvertor.castToUrl(value); // UrlType
594        } else
595          return super.setProperty(name, value);
596        return value;
597      }
598
599      @Override
600      public Base makeProperty(int hash, String name) throws FHIRException {
601        switch (hash) {
602        case -1724546052:  return getDescriptionElement();
603        case 116079:  return getUrlElement();
604        default: return super.makeProperty(hash, name);
605        }
606
607      }
608
609      @Override
610      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
611        switch (hash) {
612        case -1724546052: /*description*/ return new String[] {"string"};
613        case 116079: /*url*/ return new String[] {"url"};
614        default: return super.getTypesForProperty(hash, name);
615        }
616
617      }
618
619      @Override
620      public Base addChild(String name) throws FHIRException {
621        if (name.equals("description")) {
622          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.implementation.description");
623        }
624        else if (name.equals("url")) {
625          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.implementation.url");
626        }
627        else
628          return super.addChild(name);
629      }
630
631      public TerminologyCapabilitiesImplementationComponent copy() {
632        TerminologyCapabilitiesImplementationComponent dst = new TerminologyCapabilitiesImplementationComponent();
633        copyValues(dst);
634        return dst;
635      }
636
637      public void copyValues(TerminologyCapabilitiesImplementationComponent dst) {
638        super.copyValues(dst);
639        dst.description = description == null ? null : description.copy();
640        dst.url = url == null ? null : url.copy();
641      }
642
643      @Override
644      public boolean equalsDeep(Base other_) {
645        if (!super.equalsDeep(other_))
646          return false;
647        if (!(other_ instanceof TerminologyCapabilitiesImplementationComponent))
648          return false;
649        TerminologyCapabilitiesImplementationComponent o = (TerminologyCapabilitiesImplementationComponent) other_;
650        return compareDeep(description, o.description, true) && compareDeep(url, o.url, true);
651      }
652
653      @Override
654      public boolean equalsShallow(Base other_) {
655        if (!super.equalsShallow(other_))
656          return false;
657        if (!(other_ instanceof TerminologyCapabilitiesImplementationComponent))
658          return false;
659        TerminologyCapabilitiesImplementationComponent o = (TerminologyCapabilitiesImplementationComponent) other_;
660        return compareValues(description, o.description, true) && compareValues(url, o.url, true);
661      }
662
663      public boolean isEmpty() {
664        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(description, url);
665      }
666
667  public String fhirType() {
668    return "TerminologyCapabilities.implementation";
669
670  }
671
672  }
673
674    @Block()
675    public static class TerminologyCapabilitiesCodeSystemComponent extends BackboneElement implements IBaseBackboneElement {
676        /**
677         * URI for the Code System.
678         */
679        @Child(name = "uri", type = {CanonicalType.class}, order=1, min=0, max=1, modifier=false, summary=false)
680        @Description(shortDefinition="URI for the Code System", formalDefinition="URI for the Code System." )
681        protected CanonicalType uri;
682
683        /**
684         * For the code system, a list of versions that are supported by the server.
685         */
686        @Child(name = "version", type = {}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
687        @Description(shortDefinition="Version of Code System supported", formalDefinition="For the code system, a list of versions that are supported by the server." )
688        protected List<TerminologyCapabilitiesCodeSystemVersionComponent> version;
689
690        /**
691         * True if subsumption is supported for this version of the code system.
692         */
693        @Child(name = "subsumption", type = {BooleanType.class}, order=3, min=0, max=1, modifier=false, summary=false)
694        @Description(shortDefinition="Whether subsumption is supported", formalDefinition="True if subsumption is supported for this version of the code system." )
695        protected BooleanType subsumption;
696
697        private static final long serialVersionUID = -1593622817L;
698
699    /**
700     * Constructor
701     */
702      public TerminologyCapabilitiesCodeSystemComponent() {
703        super();
704      }
705
706        /**
707         * @return {@link #uri} (URI for the Code System.). This is the underlying object with id, value and extensions. The accessor "getUri" gives direct access to the value
708         */
709        public CanonicalType getUriElement() { 
710          if (this.uri == null)
711            if (Configuration.errorOnAutoCreate())
712              throw new Error("Attempt to auto-create TerminologyCapabilitiesCodeSystemComponent.uri");
713            else if (Configuration.doAutoCreate())
714              this.uri = new CanonicalType(); // bb
715          return this.uri;
716        }
717
718        public boolean hasUriElement() { 
719          return this.uri != null && !this.uri.isEmpty();
720        }
721
722        public boolean hasUri() { 
723          return this.uri != null && !this.uri.isEmpty();
724        }
725
726        /**
727         * @param value {@link #uri} (URI for the Code System.). This is the underlying object with id, value and extensions. The accessor "getUri" gives direct access to the value
728         */
729        public TerminologyCapabilitiesCodeSystemComponent setUriElement(CanonicalType value) { 
730          this.uri = value;
731          return this;
732        }
733
734        /**
735         * @return URI for the Code System.
736         */
737        public String getUri() { 
738          return this.uri == null ? null : this.uri.getValue();
739        }
740
741        /**
742         * @param value URI for the Code System.
743         */
744        public TerminologyCapabilitiesCodeSystemComponent setUri(String value) { 
745          if (Utilities.noString(value))
746            this.uri = null;
747          else {
748            if (this.uri == null)
749              this.uri = new CanonicalType();
750            this.uri.setValue(value);
751          }
752          return this;
753        }
754
755        /**
756         * @return {@link #version} (For the code system, a list of versions that are supported by the server.)
757         */
758        public List<TerminologyCapabilitiesCodeSystemVersionComponent> getVersion() { 
759          if (this.version == null)
760            this.version = new ArrayList<TerminologyCapabilitiesCodeSystemVersionComponent>();
761          return this.version;
762        }
763
764        /**
765         * @return Returns a reference to <code>this</code> for easy method chaining
766         */
767        public TerminologyCapabilitiesCodeSystemComponent setVersion(List<TerminologyCapabilitiesCodeSystemVersionComponent> theVersion) { 
768          this.version = theVersion;
769          return this;
770        }
771
772        public boolean hasVersion() { 
773          if (this.version == null)
774            return false;
775          for (TerminologyCapabilitiesCodeSystemVersionComponent item : this.version)
776            if (!item.isEmpty())
777              return true;
778          return false;
779        }
780
781        public TerminologyCapabilitiesCodeSystemVersionComponent addVersion() { //3
782          TerminologyCapabilitiesCodeSystemVersionComponent t = new TerminologyCapabilitiesCodeSystemVersionComponent();
783          if (this.version == null)
784            this.version = new ArrayList<TerminologyCapabilitiesCodeSystemVersionComponent>();
785          this.version.add(t);
786          return t;
787        }
788
789        public TerminologyCapabilitiesCodeSystemComponent addVersion(TerminologyCapabilitiesCodeSystemVersionComponent t) { //3
790          if (t == null)
791            return this;
792          if (this.version == null)
793            this.version = new ArrayList<TerminologyCapabilitiesCodeSystemVersionComponent>();
794          this.version.add(t);
795          return this;
796        }
797
798        /**
799         * @return The first repetition of repeating field {@link #version}, creating it if it does not already exist {3}
800         */
801        public TerminologyCapabilitiesCodeSystemVersionComponent getVersionFirstRep() { 
802          if (getVersion().isEmpty()) {
803            addVersion();
804          }
805          return getVersion().get(0);
806        }
807
808        /**
809         * @return {@link #subsumption} (True if subsumption is supported for this version of the code system.). This is the underlying object with id, value and extensions. The accessor "getSubsumption" gives direct access to the value
810         */
811        public BooleanType getSubsumptionElement() { 
812          if (this.subsumption == null)
813            if (Configuration.errorOnAutoCreate())
814              throw new Error("Attempt to auto-create TerminologyCapabilitiesCodeSystemComponent.subsumption");
815            else if (Configuration.doAutoCreate())
816              this.subsumption = new BooleanType(); // bb
817          return this.subsumption;
818        }
819
820        public boolean hasSubsumptionElement() { 
821          return this.subsumption != null && !this.subsumption.isEmpty();
822        }
823
824        public boolean hasSubsumption() { 
825          return this.subsumption != null && !this.subsumption.isEmpty();
826        }
827
828        /**
829         * @param value {@link #subsumption} (True if subsumption is supported for this version of the code system.). This is the underlying object with id, value and extensions. The accessor "getSubsumption" gives direct access to the value
830         */
831        public TerminologyCapabilitiesCodeSystemComponent setSubsumptionElement(BooleanType value) { 
832          this.subsumption = value;
833          return this;
834        }
835
836        /**
837         * @return True if subsumption is supported for this version of the code system.
838         */
839        public boolean getSubsumption() { 
840          return this.subsumption == null || this.subsumption.isEmpty() ? false : this.subsumption.getValue();
841        }
842
843        /**
844         * @param value True if subsumption is supported for this version of the code system.
845         */
846        public TerminologyCapabilitiesCodeSystemComponent setSubsumption(boolean value) { 
847            if (this.subsumption == null)
848              this.subsumption = new BooleanType();
849            this.subsumption.setValue(value);
850          return this;
851        }
852
853        protected void listChildren(List<Property> children) {
854          super.listChildren(children);
855          children.add(new Property("uri", "canonical(CodeSystem)", "URI for the Code System.", 0, 1, uri));
856          children.add(new Property("version", "", "For the code system, a list of versions that are supported by the server.", 0, java.lang.Integer.MAX_VALUE, version));
857          children.add(new Property("subsumption", "boolean", "True if subsumption is supported for this version of the code system.", 0, 1, subsumption));
858        }
859
860        @Override
861        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
862          switch (_hash) {
863          case 116076: /*uri*/  return new Property("uri", "canonical(CodeSystem)", "URI for the Code System.", 0, 1, uri);
864          case 351608024: /*version*/  return new Property("version", "", "For the code system, a list of versions that are supported by the server.", 0, java.lang.Integer.MAX_VALUE, version);
865          case -499084711: /*subsumption*/  return new Property("subsumption", "boolean", "True if subsumption is supported for this version of the code system.", 0, 1, subsumption);
866          default: return super.getNamedProperty(_hash, _name, _checkValid);
867          }
868
869        }
870
871      @Override
872      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
873        switch (hash) {
874        case 116076: /*uri*/ return this.uri == null ? new Base[0] : new Base[] {this.uri}; // CanonicalType
875        case 351608024: /*version*/ return this.version == null ? new Base[0] : this.version.toArray(new Base[this.version.size()]); // TerminologyCapabilitiesCodeSystemVersionComponent
876        case -499084711: /*subsumption*/ return this.subsumption == null ? new Base[0] : new Base[] {this.subsumption}; // BooleanType
877        default: return super.getProperty(hash, name, checkValid);
878        }
879
880      }
881
882      @Override
883      public Base setProperty(int hash, String name, Base value) throws FHIRException {
884        switch (hash) {
885        case 116076: // uri
886          this.uri = TypeConvertor.castToCanonical(value); // CanonicalType
887          return value;
888        case 351608024: // version
889          this.getVersion().add((TerminologyCapabilitiesCodeSystemVersionComponent) value); // TerminologyCapabilitiesCodeSystemVersionComponent
890          return value;
891        case -499084711: // subsumption
892          this.subsumption = TypeConvertor.castToBoolean(value); // BooleanType
893          return value;
894        default: return super.setProperty(hash, name, value);
895        }
896
897      }
898
899      @Override
900      public Base setProperty(String name, Base value) throws FHIRException {
901        if (name.equals("uri")) {
902          this.uri = TypeConvertor.castToCanonical(value); // CanonicalType
903        } else if (name.equals("version")) {
904          this.getVersion().add((TerminologyCapabilitiesCodeSystemVersionComponent) value);
905        } else if (name.equals("subsumption")) {
906          this.subsumption = TypeConvertor.castToBoolean(value); // BooleanType
907        } else
908          return super.setProperty(name, value);
909        return value;
910      }
911
912      @Override
913      public Base makeProperty(int hash, String name) throws FHIRException {
914        switch (hash) {
915        case 116076:  return getUriElement();
916        case 351608024:  return addVersion(); 
917        case -499084711:  return getSubsumptionElement();
918        default: return super.makeProperty(hash, name);
919        }
920
921      }
922
923      @Override
924      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
925        switch (hash) {
926        case 116076: /*uri*/ return new String[] {"canonical"};
927        case 351608024: /*version*/ return new String[] {};
928        case -499084711: /*subsumption*/ return new String[] {"boolean"};
929        default: return super.getTypesForProperty(hash, name);
930        }
931
932      }
933
934      @Override
935      public Base addChild(String name) throws FHIRException {
936        if (name.equals("uri")) {
937          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.uri");
938        }
939        else if (name.equals("version")) {
940          return addVersion();
941        }
942        else if (name.equals("subsumption")) {
943          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.subsumption");
944        }
945        else
946          return super.addChild(name);
947      }
948
949      public TerminologyCapabilitiesCodeSystemComponent copy() {
950        TerminologyCapabilitiesCodeSystemComponent dst = new TerminologyCapabilitiesCodeSystemComponent();
951        copyValues(dst);
952        return dst;
953      }
954
955      public void copyValues(TerminologyCapabilitiesCodeSystemComponent dst) {
956        super.copyValues(dst);
957        dst.uri = uri == null ? null : uri.copy();
958        if (version != null) {
959          dst.version = new ArrayList<TerminologyCapabilitiesCodeSystemVersionComponent>();
960          for (TerminologyCapabilitiesCodeSystemVersionComponent i : version)
961            dst.version.add(i.copy());
962        };
963        dst.subsumption = subsumption == null ? null : subsumption.copy();
964      }
965
966      @Override
967      public boolean equalsDeep(Base other_) {
968        if (!super.equalsDeep(other_))
969          return false;
970        if (!(other_ instanceof TerminologyCapabilitiesCodeSystemComponent))
971          return false;
972        TerminologyCapabilitiesCodeSystemComponent o = (TerminologyCapabilitiesCodeSystemComponent) other_;
973        return compareDeep(uri, o.uri, true) && compareDeep(version, o.version, true) && compareDeep(subsumption, o.subsumption, true)
974          ;
975      }
976
977      @Override
978      public boolean equalsShallow(Base other_) {
979        if (!super.equalsShallow(other_))
980          return false;
981        if (!(other_ instanceof TerminologyCapabilitiesCodeSystemComponent))
982          return false;
983        TerminologyCapabilitiesCodeSystemComponent o = (TerminologyCapabilitiesCodeSystemComponent) other_;
984        return compareValues(uri, o.uri, true) && compareValues(subsumption, o.subsumption, true);
985      }
986
987      public boolean isEmpty() {
988        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(uri, version, subsumption
989          );
990      }
991
992  public String fhirType() {
993    return "TerminologyCapabilities.codeSystem";
994
995  }
996
997  }
998
999    @Block()
1000    public static class TerminologyCapabilitiesCodeSystemVersionComponent extends BackboneElement implements IBaseBackboneElement {
1001        /**
1002         * For version-less code systems, there should be a single version with no identifier.
1003         */
1004        @Child(name = "code", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=true)
1005        @Description(shortDefinition="Version identifier for this version", formalDefinition="For version-less code systems, there should be a single version with no identifier." )
1006        protected StringType code;
1007
1008        /**
1009         * If this is the default version for this code system.
1010         */
1011        @Child(name = "isDefault", type = {BooleanType.class}, order=2, min=0, max=1, modifier=false, summary=true)
1012        @Description(shortDefinition="If this is the default version for this code system", formalDefinition="If this is the default version for this code system." )
1013        protected BooleanType isDefault;
1014
1015        /**
1016         * If the compositional grammar defined by the code system is supported.
1017         */
1018        @Child(name = "compositional", type = {BooleanType.class}, order=3, min=0, max=1, modifier=false, summary=false)
1019        @Description(shortDefinition="If compositional grammar is supported", formalDefinition="If the compositional grammar defined by the code system is supported." )
1020        protected BooleanType compositional;
1021
1022        /**
1023         * Language Displays supported.
1024         */
1025        @Child(name = "language", type = {CodeType.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1026        @Description(shortDefinition="Language Displays supported", formalDefinition="Language Displays supported." )
1027        protected List<CodeType> language;
1028
1029        /**
1030         * Filter Properties supported.
1031         */
1032        @Child(name = "filter", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1033        @Description(shortDefinition="Filter Properties supported", formalDefinition="Filter Properties supported." )
1034        protected List<TerminologyCapabilitiesCodeSystemVersionFilterComponent> filter;
1035
1036        /**
1037         * Properties supported for $lookup.
1038         */
1039        @Child(name = "property", type = {CodeType.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1040        @Description(shortDefinition="Properties supported for $lookup", formalDefinition="Properties supported for $lookup." )
1041        protected List<CodeType> property;
1042
1043        private static final long serialVersionUID = 1857571343L;
1044
1045    /**
1046     * Constructor
1047     */
1048      public TerminologyCapabilitiesCodeSystemVersionComponent() {
1049        super();
1050      }
1051
1052        /**
1053         * @return {@link #code} (For version-less code systems, there should be a single version with no identifier.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
1054         */
1055        public StringType getCodeElement() { 
1056          if (this.code == null)
1057            if (Configuration.errorOnAutoCreate())
1058              throw new Error("Attempt to auto-create TerminologyCapabilitiesCodeSystemVersionComponent.code");
1059            else if (Configuration.doAutoCreate())
1060              this.code = new StringType(); // bb
1061          return this.code;
1062        }
1063
1064        public boolean hasCodeElement() { 
1065          return this.code != null && !this.code.isEmpty();
1066        }
1067
1068        public boolean hasCode() { 
1069          return this.code != null && !this.code.isEmpty();
1070        }
1071
1072        /**
1073         * @param value {@link #code} (For version-less code systems, there should be a single version with no identifier.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
1074         */
1075        public TerminologyCapabilitiesCodeSystemVersionComponent setCodeElement(StringType value) { 
1076          this.code = value;
1077          return this;
1078        }
1079
1080        /**
1081         * @return For version-less code systems, there should be a single version with no identifier.
1082         */
1083        public String getCode() { 
1084          return this.code == null ? null : this.code.getValue();
1085        }
1086
1087        /**
1088         * @param value For version-less code systems, there should be a single version with no identifier.
1089         */
1090        public TerminologyCapabilitiesCodeSystemVersionComponent setCode(String value) { 
1091          if (Utilities.noString(value))
1092            this.code = null;
1093          else {
1094            if (this.code == null)
1095              this.code = new StringType();
1096            this.code.setValue(value);
1097          }
1098          return this;
1099        }
1100
1101        /**
1102         * @return {@link #isDefault} (If this is the default version for this code system.). This is the underlying object with id, value and extensions. The accessor "getIsDefault" gives direct access to the value
1103         */
1104        public BooleanType getIsDefaultElement() { 
1105          if (this.isDefault == null)
1106            if (Configuration.errorOnAutoCreate())
1107              throw new Error("Attempt to auto-create TerminologyCapabilitiesCodeSystemVersionComponent.isDefault");
1108            else if (Configuration.doAutoCreate())
1109              this.isDefault = new BooleanType(); // bb
1110          return this.isDefault;
1111        }
1112
1113        public boolean hasIsDefaultElement() { 
1114          return this.isDefault != null && !this.isDefault.isEmpty();
1115        }
1116
1117        public boolean hasIsDefault() { 
1118          return this.isDefault != null && !this.isDefault.isEmpty();
1119        }
1120
1121        /**
1122         * @param value {@link #isDefault} (If this is the default version for this code system.). This is the underlying object with id, value and extensions. The accessor "getIsDefault" gives direct access to the value
1123         */
1124        public TerminologyCapabilitiesCodeSystemVersionComponent setIsDefaultElement(BooleanType value) { 
1125          this.isDefault = value;
1126          return this;
1127        }
1128
1129        /**
1130         * @return If this is the default version for this code system.
1131         */
1132        public boolean getIsDefault() { 
1133          return this.isDefault == null || this.isDefault.isEmpty() ? false : this.isDefault.getValue();
1134        }
1135
1136        /**
1137         * @param value If this is the default version for this code system.
1138         */
1139        public TerminologyCapabilitiesCodeSystemVersionComponent setIsDefault(boolean value) { 
1140            if (this.isDefault == null)
1141              this.isDefault = new BooleanType();
1142            this.isDefault.setValue(value);
1143          return this;
1144        }
1145
1146        /**
1147         * @return {@link #compositional} (If the compositional grammar defined by the code system is supported.). This is the underlying object with id, value and extensions. The accessor "getCompositional" gives direct access to the value
1148         */
1149        public BooleanType getCompositionalElement() { 
1150          if (this.compositional == null)
1151            if (Configuration.errorOnAutoCreate())
1152              throw new Error("Attempt to auto-create TerminologyCapabilitiesCodeSystemVersionComponent.compositional");
1153            else if (Configuration.doAutoCreate())
1154              this.compositional = new BooleanType(); // bb
1155          return this.compositional;
1156        }
1157
1158        public boolean hasCompositionalElement() { 
1159          return this.compositional != null && !this.compositional.isEmpty();
1160        }
1161
1162        public boolean hasCompositional() { 
1163          return this.compositional != null && !this.compositional.isEmpty();
1164        }
1165
1166        /**
1167         * @param value {@link #compositional} (If the compositional grammar defined by the code system is supported.). This is the underlying object with id, value and extensions. The accessor "getCompositional" gives direct access to the value
1168         */
1169        public TerminologyCapabilitiesCodeSystemVersionComponent setCompositionalElement(BooleanType value) { 
1170          this.compositional = value;
1171          return this;
1172        }
1173
1174        /**
1175         * @return If the compositional grammar defined by the code system is supported.
1176         */
1177        public boolean getCompositional() { 
1178          return this.compositional == null || this.compositional.isEmpty() ? false : this.compositional.getValue();
1179        }
1180
1181        /**
1182         * @param value If the compositional grammar defined by the code system is supported.
1183         */
1184        public TerminologyCapabilitiesCodeSystemVersionComponent setCompositional(boolean value) { 
1185            if (this.compositional == null)
1186              this.compositional = new BooleanType();
1187            this.compositional.setValue(value);
1188          return this;
1189        }
1190
1191        /**
1192         * @return {@link #language} (Language Displays supported.)
1193         */
1194        public List<CodeType> getLanguage() { 
1195          if (this.language == null)
1196            this.language = new ArrayList<CodeType>();
1197          return this.language;
1198        }
1199
1200        /**
1201         * @return Returns a reference to <code>this</code> for easy method chaining
1202         */
1203        public TerminologyCapabilitiesCodeSystemVersionComponent setLanguage(List<CodeType> theLanguage) { 
1204          this.language = theLanguage;
1205          return this;
1206        }
1207
1208        public boolean hasLanguage() { 
1209          if (this.language == null)
1210            return false;
1211          for (CodeType item : this.language)
1212            if (!item.isEmpty())
1213              return true;
1214          return false;
1215        }
1216
1217        /**
1218         * @return {@link #language} (Language Displays supported.)
1219         */
1220        public CodeType addLanguageElement() {//2 
1221          CodeType t = new CodeType();
1222          if (this.language == null)
1223            this.language = new ArrayList<CodeType>();
1224          this.language.add(t);
1225          return t;
1226        }
1227
1228        /**
1229         * @param value {@link #language} (Language Displays supported.)
1230         */
1231        public TerminologyCapabilitiesCodeSystemVersionComponent addLanguage(String value) { //1
1232          CodeType t = new CodeType();
1233          t.setValue(value);
1234          if (this.language == null)
1235            this.language = new ArrayList<CodeType>();
1236          this.language.add(t);
1237          return this;
1238        }
1239
1240        /**
1241         * @param value {@link #language} (Language Displays supported.)
1242         */
1243        public boolean hasLanguage(String value) { 
1244          if (this.language == null)
1245            return false;
1246          for (CodeType v : this.language)
1247            if (v.getValue().equals(value)) // code
1248              return true;
1249          return false;
1250        }
1251
1252        /**
1253         * @return {@link #filter} (Filter Properties supported.)
1254         */
1255        public List<TerminologyCapabilitiesCodeSystemVersionFilterComponent> getFilter() { 
1256          if (this.filter == null)
1257            this.filter = new ArrayList<TerminologyCapabilitiesCodeSystemVersionFilterComponent>();
1258          return this.filter;
1259        }
1260
1261        /**
1262         * @return Returns a reference to <code>this</code> for easy method chaining
1263         */
1264        public TerminologyCapabilitiesCodeSystemVersionComponent setFilter(List<TerminologyCapabilitiesCodeSystemVersionFilterComponent> theFilter) { 
1265          this.filter = theFilter;
1266          return this;
1267        }
1268
1269        public boolean hasFilter() { 
1270          if (this.filter == null)
1271            return false;
1272          for (TerminologyCapabilitiesCodeSystemVersionFilterComponent item : this.filter)
1273            if (!item.isEmpty())
1274              return true;
1275          return false;
1276        }
1277
1278        public TerminologyCapabilitiesCodeSystemVersionFilterComponent addFilter() { //3
1279          TerminologyCapabilitiesCodeSystemVersionFilterComponent t = new TerminologyCapabilitiesCodeSystemVersionFilterComponent();
1280          if (this.filter == null)
1281            this.filter = new ArrayList<TerminologyCapabilitiesCodeSystemVersionFilterComponent>();
1282          this.filter.add(t);
1283          return t;
1284        }
1285
1286        public TerminologyCapabilitiesCodeSystemVersionComponent addFilter(TerminologyCapabilitiesCodeSystemVersionFilterComponent t) { //3
1287          if (t == null)
1288            return this;
1289          if (this.filter == null)
1290            this.filter = new ArrayList<TerminologyCapabilitiesCodeSystemVersionFilterComponent>();
1291          this.filter.add(t);
1292          return this;
1293        }
1294
1295        /**
1296         * @return The first repetition of repeating field {@link #filter}, creating it if it does not already exist {3}
1297         */
1298        public TerminologyCapabilitiesCodeSystemVersionFilterComponent getFilterFirstRep() { 
1299          if (getFilter().isEmpty()) {
1300            addFilter();
1301          }
1302          return getFilter().get(0);
1303        }
1304
1305        /**
1306         * @return {@link #property} (Properties supported for $lookup.)
1307         */
1308        public List<CodeType> getProperty() { 
1309          if (this.property == null)
1310            this.property = new ArrayList<CodeType>();
1311          return this.property;
1312        }
1313
1314        /**
1315         * @return Returns a reference to <code>this</code> for easy method chaining
1316         */
1317        public TerminologyCapabilitiesCodeSystemVersionComponent setProperty(List<CodeType> theProperty) { 
1318          this.property = theProperty;
1319          return this;
1320        }
1321
1322        public boolean hasProperty() { 
1323          if (this.property == null)
1324            return false;
1325          for (CodeType item : this.property)
1326            if (!item.isEmpty())
1327              return true;
1328          return false;
1329        }
1330
1331        /**
1332         * @return {@link #property} (Properties supported for $lookup.)
1333         */
1334        public CodeType addPropertyElement() {//2 
1335          CodeType t = new CodeType();
1336          if (this.property == null)
1337            this.property = new ArrayList<CodeType>();
1338          this.property.add(t);
1339          return t;
1340        }
1341
1342        /**
1343         * @param value {@link #property} (Properties supported for $lookup.)
1344         */
1345        public TerminologyCapabilitiesCodeSystemVersionComponent addProperty(String value) { //1
1346          CodeType t = new CodeType();
1347          t.setValue(value);
1348          if (this.property == null)
1349            this.property = new ArrayList<CodeType>();
1350          this.property.add(t);
1351          return this;
1352        }
1353
1354        /**
1355         * @param value {@link #property} (Properties supported for $lookup.)
1356         */
1357        public boolean hasProperty(String value) { 
1358          if (this.property == null)
1359            return false;
1360          for (CodeType v : this.property)
1361            if (v.getValue().equals(value)) // code
1362              return true;
1363          return false;
1364        }
1365
1366        protected void listChildren(List<Property> children) {
1367          super.listChildren(children);
1368          children.add(new Property("code", "string", "For version-less code systems, there should be a single version with no identifier.", 0, 1, code));
1369          children.add(new Property("isDefault", "boolean", "If this is the default version for this code system.", 0, 1, isDefault));
1370          children.add(new Property("compositional", "boolean", "If the compositional grammar defined by the code system is supported.", 0, 1, compositional));
1371          children.add(new Property("language", "code", "Language Displays supported.", 0, java.lang.Integer.MAX_VALUE, language));
1372          children.add(new Property("filter", "", "Filter Properties supported.", 0, java.lang.Integer.MAX_VALUE, filter));
1373          children.add(new Property("property", "code", "Properties supported for $lookup.", 0, java.lang.Integer.MAX_VALUE, property));
1374        }
1375
1376        @Override
1377        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
1378          switch (_hash) {
1379          case 3059181: /*code*/  return new Property("code", "string", "For version-less code systems, there should be a single version with no identifier.", 0, 1, code);
1380          case 965025207: /*isDefault*/  return new Property("isDefault", "boolean", "If this is the default version for this code system.", 0, 1, isDefault);
1381          case 1248023381: /*compositional*/  return new Property("compositional", "boolean", "If the compositional grammar defined by the code system is supported.", 0, 1, compositional);
1382          case -1613589672: /*language*/  return new Property("language", "code", "Language Displays supported.", 0, java.lang.Integer.MAX_VALUE, language);
1383          case -1274492040: /*filter*/  return new Property("filter", "", "Filter Properties supported.", 0, java.lang.Integer.MAX_VALUE, filter);
1384          case -993141291: /*property*/  return new Property("property", "code", "Properties supported for $lookup.", 0, java.lang.Integer.MAX_VALUE, property);
1385          default: return super.getNamedProperty(_hash, _name, _checkValid);
1386          }
1387
1388        }
1389
1390      @Override
1391      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
1392        switch (hash) {
1393        case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // StringType
1394        case 965025207: /*isDefault*/ return this.isDefault == null ? new Base[0] : new Base[] {this.isDefault}; // BooleanType
1395        case 1248023381: /*compositional*/ return this.compositional == null ? new Base[0] : new Base[] {this.compositional}; // BooleanType
1396        case -1613589672: /*language*/ return this.language == null ? new Base[0] : this.language.toArray(new Base[this.language.size()]); // CodeType
1397        case -1274492040: /*filter*/ return this.filter == null ? new Base[0] : this.filter.toArray(new Base[this.filter.size()]); // TerminologyCapabilitiesCodeSystemVersionFilterComponent
1398        case -993141291: /*property*/ return this.property == null ? new Base[0] : this.property.toArray(new Base[this.property.size()]); // CodeType
1399        default: return super.getProperty(hash, name, checkValid);
1400        }
1401
1402      }
1403
1404      @Override
1405      public Base setProperty(int hash, String name, Base value) throws FHIRException {
1406        switch (hash) {
1407        case 3059181: // code
1408          this.code = TypeConvertor.castToString(value); // StringType
1409          return value;
1410        case 965025207: // isDefault
1411          this.isDefault = TypeConvertor.castToBoolean(value); // BooleanType
1412          return value;
1413        case 1248023381: // compositional
1414          this.compositional = TypeConvertor.castToBoolean(value); // BooleanType
1415          return value;
1416        case -1613589672: // language
1417          this.getLanguage().add(TypeConvertor.castToCode(value)); // CodeType
1418          return value;
1419        case -1274492040: // filter
1420          this.getFilter().add((TerminologyCapabilitiesCodeSystemVersionFilterComponent) value); // TerminologyCapabilitiesCodeSystemVersionFilterComponent
1421          return value;
1422        case -993141291: // property
1423          this.getProperty().add(TypeConvertor.castToCode(value)); // CodeType
1424          return value;
1425        default: return super.setProperty(hash, name, value);
1426        }
1427
1428      }
1429
1430      @Override
1431      public Base setProperty(String name, Base value) throws FHIRException {
1432        if (name.equals("code")) {
1433          this.code = TypeConvertor.castToString(value); // StringType
1434        } else if (name.equals("isDefault")) {
1435          this.isDefault = TypeConvertor.castToBoolean(value); // BooleanType
1436        } else if (name.equals("compositional")) {
1437          this.compositional = TypeConvertor.castToBoolean(value); // BooleanType
1438        } else if (name.equals("language")) {
1439          this.getLanguage().add(TypeConvertor.castToCode(value));
1440        } else if (name.equals("filter")) {
1441          this.getFilter().add((TerminologyCapabilitiesCodeSystemVersionFilterComponent) value);
1442        } else if (name.equals("property")) {
1443          this.getProperty().add(TypeConvertor.castToCode(value));
1444        } else
1445          return super.setProperty(name, value);
1446        return value;
1447      }
1448
1449      @Override
1450      public Base makeProperty(int hash, String name) throws FHIRException {
1451        switch (hash) {
1452        case 3059181:  return getCodeElement();
1453        case 965025207:  return getIsDefaultElement();
1454        case 1248023381:  return getCompositionalElement();
1455        case -1613589672:  return addLanguageElement();
1456        case -1274492040:  return addFilter(); 
1457        case -993141291:  return addPropertyElement();
1458        default: return super.makeProperty(hash, name);
1459        }
1460
1461      }
1462
1463      @Override
1464      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
1465        switch (hash) {
1466        case 3059181: /*code*/ return new String[] {"string"};
1467        case 965025207: /*isDefault*/ return new String[] {"boolean"};
1468        case 1248023381: /*compositional*/ return new String[] {"boolean"};
1469        case -1613589672: /*language*/ return new String[] {"code"};
1470        case -1274492040: /*filter*/ return new String[] {};
1471        case -993141291: /*property*/ return new String[] {"code"};
1472        default: return super.getTypesForProperty(hash, name);
1473        }
1474
1475      }
1476
1477      @Override
1478      public Base addChild(String name) throws FHIRException {
1479        if (name.equals("code")) {
1480          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.version.code");
1481        }
1482        else if (name.equals("isDefault")) {
1483          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.version.isDefault");
1484        }
1485        else if (name.equals("compositional")) {
1486          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.version.compositional");
1487        }
1488        else if (name.equals("language")) {
1489          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.version.language");
1490        }
1491        else if (name.equals("filter")) {
1492          return addFilter();
1493        }
1494        else if (name.equals("property")) {
1495          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.version.property");
1496        }
1497        else
1498          return super.addChild(name);
1499      }
1500
1501      public TerminologyCapabilitiesCodeSystemVersionComponent copy() {
1502        TerminologyCapabilitiesCodeSystemVersionComponent dst = new TerminologyCapabilitiesCodeSystemVersionComponent();
1503        copyValues(dst);
1504        return dst;
1505      }
1506
1507      public void copyValues(TerminologyCapabilitiesCodeSystemVersionComponent dst) {
1508        super.copyValues(dst);
1509        dst.code = code == null ? null : code.copy();
1510        dst.isDefault = isDefault == null ? null : isDefault.copy();
1511        dst.compositional = compositional == null ? null : compositional.copy();
1512        if (language != null) {
1513          dst.language = new ArrayList<CodeType>();
1514          for (CodeType i : language)
1515            dst.language.add(i.copy());
1516        };
1517        if (filter != null) {
1518          dst.filter = new ArrayList<TerminologyCapabilitiesCodeSystemVersionFilterComponent>();
1519          for (TerminologyCapabilitiesCodeSystemVersionFilterComponent i : filter)
1520            dst.filter.add(i.copy());
1521        };
1522        if (property != null) {
1523          dst.property = new ArrayList<CodeType>();
1524          for (CodeType i : property)
1525            dst.property.add(i.copy());
1526        };
1527      }
1528
1529      @Override
1530      public boolean equalsDeep(Base other_) {
1531        if (!super.equalsDeep(other_))
1532          return false;
1533        if (!(other_ instanceof TerminologyCapabilitiesCodeSystemVersionComponent))
1534          return false;
1535        TerminologyCapabilitiesCodeSystemVersionComponent o = (TerminologyCapabilitiesCodeSystemVersionComponent) other_;
1536        return compareDeep(code, o.code, true) && compareDeep(isDefault, o.isDefault, true) && compareDeep(compositional, o.compositional, true)
1537           && compareDeep(language, o.language, true) && compareDeep(filter, o.filter, true) && compareDeep(property, o.property, true)
1538          ;
1539      }
1540
1541      @Override
1542      public boolean equalsShallow(Base other_) {
1543        if (!super.equalsShallow(other_))
1544          return false;
1545        if (!(other_ instanceof TerminologyCapabilitiesCodeSystemVersionComponent))
1546          return false;
1547        TerminologyCapabilitiesCodeSystemVersionComponent o = (TerminologyCapabilitiesCodeSystemVersionComponent) other_;
1548        return compareValues(code, o.code, true) && compareValues(isDefault, o.isDefault, true) && compareValues(compositional, o.compositional, true)
1549           && compareValues(language, o.language, true) && compareValues(property, o.property, true);
1550      }
1551
1552      public boolean isEmpty() {
1553        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, isDefault, compositional
1554          , language, filter, property);
1555      }
1556
1557  public String fhirType() {
1558    return "TerminologyCapabilities.codeSystem.version";
1559
1560  }
1561
1562  }
1563
1564    @Block()
1565    public static class TerminologyCapabilitiesCodeSystemVersionFilterComponent extends BackboneElement implements IBaseBackboneElement {
1566        /**
1567         * Code of the property supported.
1568         */
1569        @Child(name = "code", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false)
1570        @Description(shortDefinition="Code of the property supported", formalDefinition="Code of the property supported." )
1571        protected CodeType code;
1572
1573        /**
1574         * Operations supported for the property.
1575         */
1576        @Child(name = "op", type = {CodeType.class}, order=2, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1577        @Description(shortDefinition="Operations supported for the property", formalDefinition="Operations supported for the property." )
1578        protected List<CodeType> op;
1579
1580        private static final long serialVersionUID = -489160282L;
1581
1582    /**
1583     * Constructor
1584     */
1585      public TerminologyCapabilitiesCodeSystemVersionFilterComponent() {
1586        super();
1587      }
1588
1589    /**
1590     * Constructor
1591     */
1592      public TerminologyCapabilitiesCodeSystemVersionFilterComponent(String code, String op) {
1593        super();
1594        this.setCode(code);
1595        this.addOp(op);
1596      }
1597
1598        /**
1599         * @return {@link #code} (Code of the property supported.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
1600         */
1601        public CodeType getCodeElement() { 
1602          if (this.code == null)
1603            if (Configuration.errorOnAutoCreate())
1604              throw new Error("Attempt to auto-create TerminologyCapabilitiesCodeSystemVersionFilterComponent.code");
1605            else if (Configuration.doAutoCreate())
1606              this.code = new CodeType(); // bb
1607          return this.code;
1608        }
1609
1610        public boolean hasCodeElement() { 
1611          return this.code != null && !this.code.isEmpty();
1612        }
1613
1614        public boolean hasCode() { 
1615          return this.code != null && !this.code.isEmpty();
1616        }
1617
1618        /**
1619         * @param value {@link #code} (Code of the property supported.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
1620         */
1621        public TerminologyCapabilitiesCodeSystemVersionFilterComponent setCodeElement(CodeType value) { 
1622          this.code = value;
1623          return this;
1624        }
1625
1626        /**
1627         * @return Code of the property supported.
1628         */
1629        public String getCode() { 
1630          return this.code == null ? null : this.code.getValue();
1631        }
1632
1633        /**
1634         * @param value Code of the property supported.
1635         */
1636        public TerminologyCapabilitiesCodeSystemVersionFilterComponent setCode(String value) { 
1637            if (this.code == null)
1638              this.code = new CodeType();
1639            this.code.setValue(value);
1640          return this;
1641        }
1642
1643        /**
1644         * @return {@link #op} (Operations supported for the property.)
1645         */
1646        public List<CodeType> getOp() { 
1647          if (this.op == null)
1648            this.op = new ArrayList<CodeType>();
1649          return this.op;
1650        }
1651
1652        /**
1653         * @return Returns a reference to <code>this</code> for easy method chaining
1654         */
1655        public TerminologyCapabilitiesCodeSystemVersionFilterComponent setOp(List<CodeType> theOp) { 
1656          this.op = theOp;
1657          return this;
1658        }
1659
1660        public boolean hasOp() { 
1661          if (this.op == null)
1662            return false;
1663          for (CodeType item : this.op)
1664            if (!item.isEmpty())
1665              return true;
1666          return false;
1667        }
1668
1669        /**
1670         * @return {@link #op} (Operations supported for the property.)
1671         */
1672        public CodeType addOpElement() {//2 
1673          CodeType t = new CodeType();
1674          if (this.op == null)
1675            this.op = new ArrayList<CodeType>();
1676          this.op.add(t);
1677          return t;
1678        }
1679
1680        /**
1681         * @param value {@link #op} (Operations supported for the property.)
1682         */
1683        public TerminologyCapabilitiesCodeSystemVersionFilterComponent addOp(String value) { //1
1684          CodeType t = new CodeType();
1685          t.setValue(value);
1686          if (this.op == null)
1687            this.op = new ArrayList<CodeType>();
1688          this.op.add(t);
1689          return this;
1690        }
1691
1692        /**
1693         * @param value {@link #op} (Operations supported for the property.)
1694         */
1695        public boolean hasOp(String value) { 
1696          if (this.op == null)
1697            return false;
1698          for (CodeType v : this.op)
1699            if (v.getValue().equals(value)) // code
1700              return true;
1701          return false;
1702        }
1703
1704        protected void listChildren(List<Property> children) {
1705          super.listChildren(children);
1706          children.add(new Property("code", "code", "Code of the property supported.", 0, 1, code));
1707          children.add(new Property("op", "code", "Operations supported for the property.", 0, java.lang.Integer.MAX_VALUE, op));
1708        }
1709
1710        @Override
1711        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
1712          switch (_hash) {
1713          case 3059181: /*code*/  return new Property("code", "code", "Code of the property supported.", 0, 1, code);
1714          case 3553: /*op*/  return new Property("op", "code", "Operations supported for the property.", 0, java.lang.Integer.MAX_VALUE, op);
1715          default: return super.getNamedProperty(_hash, _name, _checkValid);
1716          }
1717
1718        }
1719
1720      @Override
1721      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
1722        switch (hash) {
1723        case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeType
1724        case 3553: /*op*/ return this.op == null ? new Base[0] : this.op.toArray(new Base[this.op.size()]); // CodeType
1725        default: return super.getProperty(hash, name, checkValid);
1726        }
1727
1728      }
1729
1730      @Override
1731      public Base setProperty(int hash, String name, Base value) throws FHIRException {
1732        switch (hash) {
1733        case 3059181: // code
1734          this.code = TypeConvertor.castToCode(value); // CodeType
1735          return value;
1736        case 3553: // op
1737          this.getOp().add(TypeConvertor.castToCode(value)); // CodeType
1738          return value;
1739        default: return super.setProperty(hash, name, value);
1740        }
1741
1742      }
1743
1744      @Override
1745      public Base setProperty(String name, Base value) throws FHIRException {
1746        if (name.equals("code")) {
1747          this.code = TypeConvertor.castToCode(value); // CodeType
1748        } else if (name.equals("op")) {
1749          this.getOp().add(TypeConvertor.castToCode(value));
1750        } else
1751          return super.setProperty(name, value);
1752        return value;
1753      }
1754
1755      @Override
1756      public Base makeProperty(int hash, String name) throws FHIRException {
1757        switch (hash) {
1758        case 3059181:  return getCodeElement();
1759        case 3553:  return addOpElement();
1760        default: return super.makeProperty(hash, name);
1761        }
1762
1763      }
1764
1765      @Override
1766      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
1767        switch (hash) {
1768        case 3059181: /*code*/ return new String[] {"code"};
1769        case 3553: /*op*/ return new String[] {"code"};
1770        default: return super.getTypesForProperty(hash, name);
1771        }
1772
1773      }
1774
1775      @Override
1776      public Base addChild(String name) throws FHIRException {
1777        if (name.equals("code")) {
1778          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.version.filter.code");
1779        }
1780        else if (name.equals("op")) {
1781          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSystem.version.filter.op");
1782        }
1783        else
1784          return super.addChild(name);
1785      }
1786
1787      public TerminologyCapabilitiesCodeSystemVersionFilterComponent copy() {
1788        TerminologyCapabilitiesCodeSystemVersionFilterComponent dst = new TerminologyCapabilitiesCodeSystemVersionFilterComponent();
1789        copyValues(dst);
1790        return dst;
1791      }
1792
1793      public void copyValues(TerminologyCapabilitiesCodeSystemVersionFilterComponent dst) {
1794        super.copyValues(dst);
1795        dst.code = code == null ? null : code.copy();
1796        if (op != null) {
1797          dst.op = new ArrayList<CodeType>();
1798          for (CodeType i : op)
1799            dst.op.add(i.copy());
1800        };
1801      }
1802
1803      @Override
1804      public boolean equalsDeep(Base other_) {
1805        if (!super.equalsDeep(other_))
1806          return false;
1807        if (!(other_ instanceof TerminologyCapabilitiesCodeSystemVersionFilterComponent))
1808          return false;
1809        TerminologyCapabilitiesCodeSystemVersionFilterComponent o = (TerminologyCapabilitiesCodeSystemVersionFilterComponent) other_;
1810        return compareDeep(code, o.code, true) && compareDeep(op, o.op, true);
1811      }
1812
1813      @Override
1814      public boolean equalsShallow(Base other_) {
1815        if (!super.equalsShallow(other_))
1816          return false;
1817        if (!(other_ instanceof TerminologyCapabilitiesCodeSystemVersionFilterComponent))
1818          return false;
1819        TerminologyCapabilitiesCodeSystemVersionFilterComponent o = (TerminologyCapabilitiesCodeSystemVersionFilterComponent) other_;
1820        return compareValues(code, o.code, true) && compareValues(op, o.op, true);
1821      }
1822
1823      public boolean isEmpty() {
1824        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, op);
1825      }
1826
1827  public String fhirType() {
1828    return "TerminologyCapabilities.codeSystem.version.filter";
1829
1830  }
1831
1832  }
1833
1834    @Block()
1835    public static class TerminologyCapabilitiesExpansionComponent extends BackboneElement implements IBaseBackboneElement {
1836        /**
1837         * Whether the server can return nested value sets.
1838         */
1839        @Child(name = "hierarchical", type = {BooleanType.class}, order=1, min=0, max=1, modifier=false, summary=false)
1840        @Description(shortDefinition="Whether the server can return nested value sets", formalDefinition="Whether the server can return nested value sets." )
1841        protected BooleanType hierarchical;
1842
1843        /**
1844         * Whether the server supports paging on expansion.
1845         */
1846        @Child(name = "paging", type = {BooleanType.class}, order=2, min=0, max=1, modifier=false, summary=false)
1847        @Description(shortDefinition="Whether the server supports paging on expansion", formalDefinition="Whether the server supports paging on expansion." )
1848        protected BooleanType paging;
1849
1850        /**
1851         * Allow request for incomplete expansions?
1852         */
1853        @Child(name = "incomplete", type = {BooleanType.class}, order=3, min=0, max=1, modifier=false, summary=false)
1854        @Description(shortDefinition="Allow request for incomplete expansions?", formalDefinition="Allow request for incomplete expansions?" )
1855        protected BooleanType incomplete;
1856
1857        /**
1858         * Supported expansion parameter.
1859         */
1860        @Child(name = "parameter", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1861        @Description(shortDefinition="Supported expansion parameter", formalDefinition="Supported expansion parameter." )
1862        protected List<TerminologyCapabilitiesExpansionParameterComponent> parameter;
1863
1864        /**
1865         * Documentation about text searching works.
1866         */
1867        @Child(name = "textFilter", type = {MarkdownType.class}, order=5, min=0, max=1, modifier=false, summary=false)
1868        @Description(shortDefinition="Documentation about text searching works", formalDefinition="Documentation about text searching works." )
1869        protected MarkdownType textFilter;
1870
1871        private static final long serialVersionUID = -1011350616L;
1872
1873    /**
1874     * Constructor
1875     */
1876      public TerminologyCapabilitiesExpansionComponent() {
1877        super();
1878      }
1879
1880        /**
1881         * @return {@link #hierarchical} (Whether the server can return nested value sets.). This is the underlying object with id, value and extensions. The accessor "getHierarchical" gives direct access to the value
1882         */
1883        public BooleanType getHierarchicalElement() { 
1884          if (this.hierarchical == null)
1885            if (Configuration.errorOnAutoCreate())
1886              throw new Error("Attempt to auto-create TerminologyCapabilitiesExpansionComponent.hierarchical");
1887            else if (Configuration.doAutoCreate())
1888              this.hierarchical = new BooleanType(); // bb
1889          return this.hierarchical;
1890        }
1891
1892        public boolean hasHierarchicalElement() { 
1893          return this.hierarchical != null && !this.hierarchical.isEmpty();
1894        }
1895
1896        public boolean hasHierarchical() { 
1897          return this.hierarchical != null && !this.hierarchical.isEmpty();
1898        }
1899
1900        /**
1901         * @param value {@link #hierarchical} (Whether the server can return nested value sets.). This is the underlying object with id, value and extensions. The accessor "getHierarchical" gives direct access to the value
1902         */
1903        public TerminologyCapabilitiesExpansionComponent setHierarchicalElement(BooleanType value) { 
1904          this.hierarchical = value;
1905          return this;
1906        }
1907
1908        /**
1909         * @return Whether the server can return nested value sets.
1910         */
1911        public boolean getHierarchical() { 
1912          return this.hierarchical == null || this.hierarchical.isEmpty() ? false : this.hierarchical.getValue();
1913        }
1914
1915        /**
1916         * @param value Whether the server can return nested value sets.
1917         */
1918        public TerminologyCapabilitiesExpansionComponent setHierarchical(boolean value) { 
1919            if (this.hierarchical == null)
1920              this.hierarchical = new BooleanType();
1921            this.hierarchical.setValue(value);
1922          return this;
1923        }
1924
1925        /**
1926         * @return {@link #paging} (Whether the server supports paging on expansion.). This is the underlying object with id, value and extensions. The accessor "getPaging" gives direct access to the value
1927         */
1928        public BooleanType getPagingElement() { 
1929          if (this.paging == null)
1930            if (Configuration.errorOnAutoCreate())
1931              throw new Error("Attempt to auto-create TerminologyCapabilitiesExpansionComponent.paging");
1932            else if (Configuration.doAutoCreate())
1933              this.paging = new BooleanType(); // bb
1934          return this.paging;
1935        }
1936
1937        public boolean hasPagingElement() { 
1938          return this.paging != null && !this.paging.isEmpty();
1939        }
1940
1941        public boolean hasPaging() { 
1942          return this.paging != null && !this.paging.isEmpty();
1943        }
1944
1945        /**
1946         * @param value {@link #paging} (Whether the server supports paging on expansion.). This is the underlying object with id, value and extensions. The accessor "getPaging" gives direct access to the value
1947         */
1948        public TerminologyCapabilitiesExpansionComponent setPagingElement(BooleanType value) { 
1949          this.paging = value;
1950          return this;
1951        }
1952
1953        /**
1954         * @return Whether the server supports paging on expansion.
1955         */
1956        public boolean getPaging() { 
1957          return this.paging == null || this.paging.isEmpty() ? false : this.paging.getValue();
1958        }
1959
1960        /**
1961         * @param value Whether the server supports paging on expansion.
1962         */
1963        public TerminologyCapabilitiesExpansionComponent setPaging(boolean value) { 
1964            if (this.paging == null)
1965              this.paging = new BooleanType();
1966            this.paging.setValue(value);
1967          return this;
1968        }
1969
1970        /**
1971         * @return {@link #incomplete} (Allow request for incomplete expansions?). This is the underlying object with id, value and extensions. The accessor "getIncomplete" gives direct access to the value
1972         */
1973        public BooleanType getIncompleteElement() { 
1974          if (this.incomplete == null)
1975            if (Configuration.errorOnAutoCreate())
1976              throw new Error("Attempt to auto-create TerminologyCapabilitiesExpansionComponent.incomplete");
1977            else if (Configuration.doAutoCreate())
1978              this.incomplete = new BooleanType(); // bb
1979          return this.incomplete;
1980        }
1981
1982        public boolean hasIncompleteElement() { 
1983          return this.incomplete != null && !this.incomplete.isEmpty();
1984        }
1985
1986        public boolean hasIncomplete() { 
1987          return this.incomplete != null && !this.incomplete.isEmpty();
1988        }
1989
1990        /**
1991         * @param value {@link #incomplete} (Allow request for incomplete expansions?). This is the underlying object with id, value and extensions. The accessor "getIncomplete" gives direct access to the value
1992         */
1993        public TerminologyCapabilitiesExpansionComponent setIncompleteElement(BooleanType value) { 
1994          this.incomplete = value;
1995          return this;
1996        }
1997
1998        /**
1999         * @return Allow request for incomplete expansions?
2000         */
2001        public boolean getIncomplete() { 
2002          return this.incomplete == null || this.incomplete.isEmpty() ? false : this.incomplete.getValue();
2003        }
2004
2005        /**
2006         * @param value Allow request for incomplete expansions?
2007         */
2008        public TerminologyCapabilitiesExpansionComponent setIncomplete(boolean value) { 
2009            if (this.incomplete == null)
2010              this.incomplete = new BooleanType();
2011            this.incomplete.setValue(value);
2012          return this;
2013        }
2014
2015        /**
2016         * @return {@link #parameter} (Supported expansion parameter.)
2017         */
2018        public List<TerminologyCapabilitiesExpansionParameterComponent> getParameter() { 
2019          if (this.parameter == null)
2020            this.parameter = new ArrayList<TerminologyCapabilitiesExpansionParameterComponent>();
2021          return this.parameter;
2022        }
2023
2024        /**
2025         * @return Returns a reference to <code>this</code> for easy method chaining
2026         */
2027        public TerminologyCapabilitiesExpansionComponent setParameter(List<TerminologyCapabilitiesExpansionParameterComponent> theParameter) { 
2028          this.parameter = theParameter;
2029          return this;
2030        }
2031
2032        public boolean hasParameter() { 
2033          if (this.parameter == null)
2034            return false;
2035          for (TerminologyCapabilitiesExpansionParameterComponent item : this.parameter)
2036            if (!item.isEmpty())
2037              return true;
2038          return false;
2039        }
2040
2041        public TerminologyCapabilitiesExpansionParameterComponent addParameter() { //3
2042          TerminologyCapabilitiesExpansionParameterComponent t = new TerminologyCapabilitiesExpansionParameterComponent();
2043          if (this.parameter == null)
2044            this.parameter = new ArrayList<TerminologyCapabilitiesExpansionParameterComponent>();
2045          this.parameter.add(t);
2046          return t;
2047        }
2048
2049        public TerminologyCapabilitiesExpansionComponent addParameter(TerminologyCapabilitiesExpansionParameterComponent t) { //3
2050          if (t == null)
2051            return this;
2052          if (this.parameter == null)
2053            this.parameter = new ArrayList<TerminologyCapabilitiesExpansionParameterComponent>();
2054          this.parameter.add(t);
2055          return this;
2056        }
2057
2058        /**
2059         * @return The first repetition of repeating field {@link #parameter}, creating it if it does not already exist {3}
2060         */
2061        public TerminologyCapabilitiesExpansionParameterComponent getParameterFirstRep() { 
2062          if (getParameter().isEmpty()) {
2063            addParameter();
2064          }
2065          return getParameter().get(0);
2066        }
2067
2068        /**
2069         * @return {@link #textFilter} (Documentation about text searching works.). This is the underlying object with id, value and extensions. The accessor "getTextFilter" gives direct access to the value
2070         */
2071        public MarkdownType getTextFilterElement() { 
2072          if (this.textFilter == null)
2073            if (Configuration.errorOnAutoCreate())
2074              throw new Error("Attempt to auto-create TerminologyCapabilitiesExpansionComponent.textFilter");
2075            else if (Configuration.doAutoCreate())
2076              this.textFilter = new MarkdownType(); // bb
2077          return this.textFilter;
2078        }
2079
2080        public boolean hasTextFilterElement() { 
2081          return this.textFilter != null && !this.textFilter.isEmpty();
2082        }
2083
2084        public boolean hasTextFilter() { 
2085          return this.textFilter != null && !this.textFilter.isEmpty();
2086        }
2087
2088        /**
2089         * @param value {@link #textFilter} (Documentation about text searching works.). This is the underlying object with id, value and extensions. The accessor "getTextFilter" gives direct access to the value
2090         */
2091        public TerminologyCapabilitiesExpansionComponent setTextFilterElement(MarkdownType value) { 
2092          this.textFilter = value;
2093          return this;
2094        }
2095
2096        /**
2097         * @return Documentation about text searching works.
2098         */
2099        public String getTextFilter() { 
2100          return this.textFilter == null ? null : this.textFilter.getValue();
2101        }
2102
2103        /**
2104         * @param value Documentation about text searching works.
2105         */
2106        public TerminologyCapabilitiesExpansionComponent setTextFilter(String value) { 
2107          if (value == null)
2108            this.textFilter = null;
2109          else {
2110            if (this.textFilter == null)
2111              this.textFilter = new MarkdownType();
2112            this.textFilter.setValue(value);
2113          }
2114          return this;
2115        }
2116
2117        protected void listChildren(List<Property> children) {
2118          super.listChildren(children);
2119          children.add(new Property("hierarchical", "boolean", "Whether the server can return nested value sets.", 0, 1, hierarchical));
2120          children.add(new Property("paging", "boolean", "Whether the server supports paging on expansion.", 0, 1, paging));
2121          children.add(new Property("incomplete", "boolean", "Allow request for incomplete expansions?", 0, 1, incomplete));
2122          children.add(new Property("parameter", "", "Supported expansion parameter.", 0, java.lang.Integer.MAX_VALUE, parameter));
2123          children.add(new Property("textFilter", "markdown", "Documentation about text searching works.", 0, 1, textFilter));
2124        }
2125
2126        @Override
2127        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
2128          switch (_hash) {
2129          case 857636745: /*hierarchical*/  return new Property("hierarchical", "boolean", "Whether the server can return nested value sets.", 0, 1, hierarchical);
2130          case -995747956: /*paging*/  return new Property("paging", "boolean", "Whether the server supports paging on expansion.", 0, 1, paging);
2131          case -1010022050: /*incomplete*/  return new Property("incomplete", "boolean", "Allow request for incomplete expansions?", 0, 1, incomplete);
2132          case 1954460585: /*parameter*/  return new Property("parameter", "", "Supported expansion parameter.", 0, java.lang.Integer.MAX_VALUE, parameter);
2133          case 1469359877: /*textFilter*/  return new Property("textFilter", "markdown", "Documentation about text searching works.", 0, 1, textFilter);
2134          default: return super.getNamedProperty(_hash, _name, _checkValid);
2135          }
2136
2137        }
2138
2139      @Override
2140      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
2141        switch (hash) {
2142        case 857636745: /*hierarchical*/ return this.hierarchical == null ? new Base[0] : new Base[] {this.hierarchical}; // BooleanType
2143        case -995747956: /*paging*/ return this.paging == null ? new Base[0] : new Base[] {this.paging}; // BooleanType
2144        case -1010022050: /*incomplete*/ return this.incomplete == null ? new Base[0] : new Base[] {this.incomplete}; // BooleanType
2145        case 1954460585: /*parameter*/ return this.parameter == null ? new Base[0] : this.parameter.toArray(new Base[this.parameter.size()]); // TerminologyCapabilitiesExpansionParameterComponent
2146        case 1469359877: /*textFilter*/ return this.textFilter == null ? new Base[0] : new Base[] {this.textFilter}; // MarkdownType
2147        default: return super.getProperty(hash, name, checkValid);
2148        }
2149
2150      }
2151
2152      @Override
2153      public Base setProperty(int hash, String name, Base value) throws FHIRException {
2154        switch (hash) {
2155        case 857636745: // hierarchical
2156          this.hierarchical = TypeConvertor.castToBoolean(value); // BooleanType
2157          return value;
2158        case -995747956: // paging
2159          this.paging = TypeConvertor.castToBoolean(value); // BooleanType
2160          return value;
2161        case -1010022050: // incomplete
2162          this.incomplete = TypeConvertor.castToBoolean(value); // BooleanType
2163          return value;
2164        case 1954460585: // parameter
2165          this.getParameter().add((TerminologyCapabilitiesExpansionParameterComponent) value); // TerminologyCapabilitiesExpansionParameterComponent
2166          return value;
2167        case 1469359877: // textFilter
2168          this.textFilter = TypeConvertor.castToMarkdown(value); // MarkdownType
2169          return value;
2170        default: return super.setProperty(hash, name, value);
2171        }
2172
2173      }
2174
2175      @Override
2176      public Base setProperty(String name, Base value) throws FHIRException {
2177        if (name.equals("hierarchical")) {
2178          this.hierarchical = TypeConvertor.castToBoolean(value); // BooleanType
2179        } else if (name.equals("paging")) {
2180          this.paging = TypeConvertor.castToBoolean(value); // BooleanType
2181        } else if (name.equals("incomplete")) {
2182          this.incomplete = TypeConvertor.castToBoolean(value); // BooleanType
2183        } else if (name.equals("parameter")) {
2184          this.getParameter().add((TerminologyCapabilitiesExpansionParameterComponent) value);
2185        } else if (name.equals("textFilter")) {
2186          this.textFilter = TypeConvertor.castToMarkdown(value); // MarkdownType
2187        } else
2188          return super.setProperty(name, value);
2189        return value;
2190      }
2191
2192      @Override
2193      public Base makeProperty(int hash, String name) throws FHIRException {
2194        switch (hash) {
2195        case 857636745:  return getHierarchicalElement();
2196        case -995747956:  return getPagingElement();
2197        case -1010022050:  return getIncompleteElement();
2198        case 1954460585:  return addParameter(); 
2199        case 1469359877:  return getTextFilterElement();
2200        default: return super.makeProperty(hash, name);
2201        }
2202
2203      }
2204
2205      @Override
2206      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
2207        switch (hash) {
2208        case 857636745: /*hierarchical*/ return new String[] {"boolean"};
2209        case -995747956: /*paging*/ return new String[] {"boolean"};
2210        case -1010022050: /*incomplete*/ return new String[] {"boolean"};
2211        case 1954460585: /*parameter*/ return new String[] {};
2212        case 1469359877: /*textFilter*/ return new String[] {"markdown"};
2213        default: return super.getTypesForProperty(hash, name);
2214        }
2215
2216      }
2217
2218      @Override
2219      public Base addChild(String name) throws FHIRException {
2220        if (name.equals("hierarchical")) {
2221          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.expansion.hierarchical");
2222        }
2223        else if (name.equals("paging")) {
2224          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.expansion.paging");
2225        }
2226        else if (name.equals("incomplete")) {
2227          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.expansion.incomplete");
2228        }
2229        else if (name.equals("parameter")) {
2230          return addParameter();
2231        }
2232        else if (name.equals("textFilter")) {
2233          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.expansion.textFilter");
2234        }
2235        else
2236          return super.addChild(name);
2237      }
2238
2239      public TerminologyCapabilitiesExpansionComponent copy() {
2240        TerminologyCapabilitiesExpansionComponent dst = new TerminologyCapabilitiesExpansionComponent();
2241        copyValues(dst);
2242        return dst;
2243      }
2244
2245      public void copyValues(TerminologyCapabilitiesExpansionComponent dst) {
2246        super.copyValues(dst);
2247        dst.hierarchical = hierarchical == null ? null : hierarchical.copy();
2248        dst.paging = paging == null ? null : paging.copy();
2249        dst.incomplete = incomplete == null ? null : incomplete.copy();
2250        if (parameter != null) {
2251          dst.parameter = new ArrayList<TerminologyCapabilitiesExpansionParameterComponent>();
2252          for (TerminologyCapabilitiesExpansionParameterComponent i : parameter)
2253            dst.parameter.add(i.copy());
2254        };
2255        dst.textFilter = textFilter == null ? null : textFilter.copy();
2256      }
2257
2258      @Override
2259      public boolean equalsDeep(Base other_) {
2260        if (!super.equalsDeep(other_))
2261          return false;
2262        if (!(other_ instanceof TerminologyCapabilitiesExpansionComponent))
2263          return false;
2264        TerminologyCapabilitiesExpansionComponent o = (TerminologyCapabilitiesExpansionComponent) other_;
2265        return compareDeep(hierarchical, o.hierarchical, true) && compareDeep(paging, o.paging, true) && compareDeep(incomplete, o.incomplete, true)
2266           && compareDeep(parameter, o.parameter, true) && compareDeep(textFilter, o.textFilter, true);
2267      }
2268
2269      @Override
2270      public boolean equalsShallow(Base other_) {
2271        if (!super.equalsShallow(other_))
2272          return false;
2273        if (!(other_ instanceof TerminologyCapabilitiesExpansionComponent))
2274          return false;
2275        TerminologyCapabilitiesExpansionComponent o = (TerminologyCapabilitiesExpansionComponent) other_;
2276        return compareValues(hierarchical, o.hierarchical, true) && compareValues(paging, o.paging, true) && compareValues(incomplete, o.incomplete, true)
2277           && compareValues(textFilter, o.textFilter, true);
2278      }
2279
2280      public boolean isEmpty() {
2281        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(hierarchical, paging, incomplete
2282          , parameter, textFilter);
2283      }
2284
2285  public String fhirType() {
2286    return "TerminologyCapabilities.expansion";
2287
2288  }
2289
2290  }
2291
2292    @Block()
2293    public static class TerminologyCapabilitiesExpansionParameterComponent extends BackboneElement implements IBaseBackboneElement {
2294        /**
2295         * Expansion Parameter name.
2296         */
2297        @Child(name = "name", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false)
2298        @Description(shortDefinition="Expansion Parameter name", formalDefinition="Expansion Parameter name." )
2299        protected CodeType name;
2300
2301        /**
2302         * Description of support for parameter.
2303         */
2304        @Child(name = "documentation", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false)
2305        @Description(shortDefinition="Description of support for parameter", formalDefinition="Description of support for parameter." )
2306        protected StringType documentation;
2307
2308        private static final long serialVersionUID = -1703372741L;
2309
2310    /**
2311     * Constructor
2312     */
2313      public TerminologyCapabilitiesExpansionParameterComponent() {
2314        super();
2315      }
2316
2317    /**
2318     * Constructor
2319     */
2320      public TerminologyCapabilitiesExpansionParameterComponent(String name) {
2321        super();
2322        this.setName(name);
2323      }
2324
2325        /**
2326         * @return {@link #name} (Expansion Parameter name.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
2327         */
2328        public CodeType getNameElement() { 
2329          if (this.name == null)
2330            if (Configuration.errorOnAutoCreate())
2331              throw new Error("Attempt to auto-create TerminologyCapabilitiesExpansionParameterComponent.name");
2332            else if (Configuration.doAutoCreate())
2333              this.name = new CodeType(); // bb
2334          return this.name;
2335        }
2336
2337        public boolean hasNameElement() { 
2338          return this.name != null && !this.name.isEmpty();
2339        }
2340
2341        public boolean hasName() { 
2342          return this.name != null && !this.name.isEmpty();
2343        }
2344
2345        /**
2346         * @param value {@link #name} (Expansion Parameter name.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
2347         */
2348        public TerminologyCapabilitiesExpansionParameterComponent setNameElement(CodeType value) { 
2349          this.name = value;
2350          return this;
2351        }
2352
2353        /**
2354         * @return Expansion Parameter name.
2355         */
2356        public String getName() { 
2357          return this.name == null ? null : this.name.getValue();
2358        }
2359
2360        /**
2361         * @param value Expansion Parameter name.
2362         */
2363        public TerminologyCapabilitiesExpansionParameterComponent setName(String value) { 
2364            if (this.name == null)
2365              this.name = new CodeType();
2366            this.name.setValue(value);
2367          return this;
2368        }
2369
2370        /**
2371         * @return {@link #documentation} (Description of support for parameter.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value
2372         */
2373        public StringType getDocumentationElement() { 
2374          if (this.documentation == null)
2375            if (Configuration.errorOnAutoCreate())
2376              throw new Error("Attempt to auto-create TerminologyCapabilitiesExpansionParameterComponent.documentation");
2377            else if (Configuration.doAutoCreate())
2378              this.documentation = new StringType(); // bb
2379          return this.documentation;
2380        }
2381
2382        public boolean hasDocumentationElement() { 
2383          return this.documentation != null && !this.documentation.isEmpty();
2384        }
2385
2386        public boolean hasDocumentation() { 
2387          return this.documentation != null && !this.documentation.isEmpty();
2388        }
2389
2390        /**
2391         * @param value {@link #documentation} (Description of support for parameter.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value
2392         */
2393        public TerminologyCapabilitiesExpansionParameterComponent setDocumentationElement(StringType value) { 
2394          this.documentation = value;
2395          return this;
2396        }
2397
2398        /**
2399         * @return Description of support for parameter.
2400         */
2401        public String getDocumentation() { 
2402          return this.documentation == null ? null : this.documentation.getValue();
2403        }
2404
2405        /**
2406         * @param value Description of support for parameter.
2407         */
2408        public TerminologyCapabilitiesExpansionParameterComponent setDocumentation(String value) { 
2409          if (Utilities.noString(value))
2410            this.documentation = null;
2411          else {
2412            if (this.documentation == null)
2413              this.documentation = new StringType();
2414            this.documentation.setValue(value);
2415          }
2416          return this;
2417        }
2418
2419        protected void listChildren(List<Property> children) {
2420          super.listChildren(children);
2421          children.add(new Property("name", "code", "Expansion Parameter name.", 0, 1, name));
2422          children.add(new Property("documentation", "string", "Description of support for parameter.", 0, 1, documentation));
2423        }
2424
2425        @Override
2426        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
2427          switch (_hash) {
2428          case 3373707: /*name*/  return new Property("name", "code", "Expansion Parameter name.", 0, 1, name);
2429          case 1587405498: /*documentation*/  return new Property("documentation", "string", "Description of support for parameter.", 0, 1, documentation);
2430          default: return super.getNamedProperty(_hash, _name, _checkValid);
2431          }
2432
2433        }
2434
2435      @Override
2436      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
2437        switch (hash) {
2438        case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // CodeType
2439        case 1587405498: /*documentation*/ return this.documentation == null ? new Base[0] : new Base[] {this.documentation}; // StringType
2440        default: return super.getProperty(hash, name, checkValid);
2441        }
2442
2443      }
2444
2445      @Override
2446      public Base setProperty(int hash, String name, Base value) throws FHIRException {
2447        switch (hash) {
2448        case 3373707: // name
2449          this.name = TypeConvertor.castToCode(value); // CodeType
2450          return value;
2451        case 1587405498: // documentation
2452          this.documentation = TypeConvertor.castToString(value); // StringType
2453          return value;
2454        default: return super.setProperty(hash, name, value);
2455        }
2456
2457      }
2458
2459      @Override
2460      public Base setProperty(String name, Base value) throws FHIRException {
2461        if (name.equals("name")) {
2462          this.name = TypeConvertor.castToCode(value); // CodeType
2463        } else if (name.equals("documentation")) {
2464          this.documentation = TypeConvertor.castToString(value); // StringType
2465        } else
2466          return super.setProperty(name, value);
2467        return value;
2468      }
2469
2470      @Override
2471      public Base makeProperty(int hash, String name) throws FHIRException {
2472        switch (hash) {
2473        case 3373707:  return getNameElement();
2474        case 1587405498:  return getDocumentationElement();
2475        default: return super.makeProperty(hash, name);
2476        }
2477
2478      }
2479
2480      @Override
2481      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
2482        switch (hash) {
2483        case 3373707: /*name*/ return new String[] {"code"};
2484        case 1587405498: /*documentation*/ return new String[] {"string"};
2485        default: return super.getTypesForProperty(hash, name);
2486        }
2487
2488      }
2489
2490      @Override
2491      public Base addChild(String name) throws FHIRException {
2492        if (name.equals("name")) {
2493          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.expansion.parameter.name");
2494        }
2495        else if (name.equals("documentation")) {
2496          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.expansion.parameter.documentation");
2497        }
2498        else
2499          return super.addChild(name);
2500      }
2501
2502      public TerminologyCapabilitiesExpansionParameterComponent copy() {
2503        TerminologyCapabilitiesExpansionParameterComponent dst = new TerminologyCapabilitiesExpansionParameterComponent();
2504        copyValues(dst);
2505        return dst;
2506      }
2507
2508      public void copyValues(TerminologyCapabilitiesExpansionParameterComponent dst) {
2509        super.copyValues(dst);
2510        dst.name = name == null ? null : name.copy();
2511        dst.documentation = documentation == null ? null : documentation.copy();
2512      }
2513
2514      @Override
2515      public boolean equalsDeep(Base other_) {
2516        if (!super.equalsDeep(other_))
2517          return false;
2518        if (!(other_ instanceof TerminologyCapabilitiesExpansionParameterComponent))
2519          return false;
2520        TerminologyCapabilitiesExpansionParameterComponent o = (TerminologyCapabilitiesExpansionParameterComponent) other_;
2521        return compareDeep(name, o.name, true) && compareDeep(documentation, o.documentation, true);
2522      }
2523
2524      @Override
2525      public boolean equalsShallow(Base other_) {
2526        if (!super.equalsShallow(other_))
2527          return false;
2528        if (!(other_ instanceof TerminologyCapabilitiesExpansionParameterComponent))
2529          return false;
2530        TerminologyCapabilitiesExpansionParameterComponent o = (TerminologyCapabilitiesExpansionParameterComponent) other_;
2531        return compareValues(name, o.name, true) && compareValues(documentation, o.documentation, true);
2532      }
2533
2534      public boolean isEmpty() {
2535        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, documentation);
2536      }
2537
2538  public String fhirType() {
2539    return "TerminologyCapabilities.expansion.parameter";
2540
2541  }
2542
2543  }
2544
2545    @Block()
2546    public static class TerminologyCapabilitiesValidateCodeComponent extends BackboneElement implements IBaseBackboneElement {
2547        /**
2548         * Whether translations are validated.
2549         */
2550        @Child(name = "translations", type = {BooleanType.class}, order=1, min=1, max=1, modifier=false, summary=false)
2551        @Description(shortDefinition="Whether translations are validated", formalDefinition="Whether translations are validated." )
2552        protected BooleanType translations;
2553
2554        private static final long serialVersionUID = -1212814906L;
2555
2556    /**
2557     * Constructor
2558     */
2559      public TerminologyCapabilitiesValidateCodeComponent() {
2560        super();
2561      }
2562
2563    /**
2564     * Constructor
2565     */
2566      public TerminologyCapabilitiesValidateCodeComponent(boolean translations) {
2567        super();
2568        this.setTranslations(translations);
2569      }
2570
2571        /**
2572         * @return {@link #translations} (Whether translations are validated.). This is the underlying object with id, value and extensions. The accessor "getTranslations" gives direct access to the value
2573         */
2574        public BooleanType getTranslationsElement() { 
2575          if (this.translations == null)
2576            if (Configuration.errorOnAutoCreate())
2577              throw new Error("Attempt to auto-create TerminologyCapabilitiesValidateCodeComponent.translations");
2578            else if (Configuration.doAutoCreate())
2579              this.translations = new BooleanType(); // bb
2580          return this.translations;
2581        }
2582
2583        public boolean hasTranslationsElement() { 
2584          return this.translations != null && !this.translations.isEmpty();
2585        }
2586
2587        public boolean hasTranslations() { 
2588          return this.translations != null && !this.translations.isEmpty();
2589        }
2590
2591        /**
2592         * @param value {@link #translations} (Whether translations are validated.). This is the underlying object with id, value and extensions. The accessor "getTranslations" gives direct access to the value
2593         */
2594        public TerminologyCapabilitiesValidateCodeComponent setTranslationsElement(BooleanType value) { 
2595          this.translations = value;
2596          return this;
2597        }
2598
2599        /**
2600         * @return Whether translations are validated.
2601         */
2602        public boolean getTranslations() { 
2603          return this.translations == null || this.translations.isEmpty() ? false : this.translations.getValue();
2604        }
2605
2606        /**
2607         * @param value Whether translations are validated.
2608         */
2609        public TerminologyCapabilitiesValidateCodeComponent setTranslations(boolean value) { 
2610            if (this.translations == null)
2611              this.translations = new BooleanType();
2612            this.translations.setValue(value);
2613          return this;
2614        }
2615
2616        protected void listChildren(List<Property> children) {
2617          super.listChildren(children);
2618          children.add(new Property("translations", "boolean", "Whether translations are validated.", 0, 1, translations));
2619        }
2620
2621        @Override
2622        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
2623          switch (_hash) {
2624          case -1225497630: /*translations*/  return new Property("translations", "boolean", "Whether translations are validated.", 0, 1, translations);
2625          default: return super.getNamedProperty(_hash, _name, _checkValid);
2626          }
2627
2628        }
2629
2630      @Override
2631      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
2632        switch (hash) {
2633        case -1225497630: /*translations*/ return this.translations == null ? new Base[0] : new Base[] {this.translations}; // BooleanType
2634        default: return super.getProperty(hash, name, checkValid);
2635        }
2636
2637      }
2638
2639      @Override
2640      public Base setProperty(int hash, String name, Base value) throws FHIRException {
2641        switch (hash) {
2642        case -1225497630: // translations
2643          this.translations = TypeConvertor.castToBoolean(value); // BooleanType
2644          return value;
2645        default: return super.setProperty(hash, name, value);
2646        }
2647
2648      }
2649
2650      @Override
2651      public Base setProperty(String name, Base value) throws FHIRException {
2652        if (name.equals("translations")) {
2653          this.translations = TypeConvertor.castToBoolean(value); // BooleanType
2654        } else
2655          return super.setProperty(name, value);
2656        return value;
2657      }
2658
2659      @Override
2660      public Base makeProperty(int hash, String name) throws FHIRException {
2661        switch (hash) {
2662        case -1225497630:  return getTranslationsElement();
2663        default: return super.makeProperty(hash, name);
2664        }
2665
2666      }
2667
2668      @Override
2669      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
2670        switch (hash) {
2671        case -1225497630: /*translations*/ return new String[] {"boolean"};
2672        default: return super.getTypesForProperty(hash, name);
2673        }
2674
2675      }
2676
2677      @Override
2678      public Base addChild(String name) throws FHIRException {
2679        if (name.equals("translations")) {
2680          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.validateCode.translations");
2681        }
2682        else
2683          return super.addChild(name);
2684      }
2685
2686      public TerminologyCapabilitiesValidateCodeComponent copy() {
2687        TerminologyCapabilitiesValidateCodeComponent dst = new TerminologyCapabilitiesValidateCodeComponent();
2688        copyValues(dst);
2689        return dst;
2690      }
2691
2692      public void copyValues(TerminologyCapabilitiesValidateCodeComponent dst) {
2693        super.copyValues(dst);
2694        dst.translations = translations == null ? null : translations.copy();
2695      }
2696
2697      @Override
2698      public boolean equalsDeep(Base other_) {
2699        if (!super.equalsDeep(other_))
2700          return false;
2701        if (!(other_ instanceof TerminologyCapabilitiesValidateCodeComponent))
2702          return false;
2703        TerminologyCapabilitiesValidateCodeComponent o = (TerminologyCapabilitiesValidateCodeComponent) other_;
2704        return compareDeep(translations, o.translations, true);
2705      }
2706
2707      @Override
2708      public boolean equalsShallow(Base other_) {
2709        if (!super.equalsShallow(other_))
2710          return false;
2711        if (!(other_ instanceof TerminologyCapabilitiesValidateCodeComponent))
2712          return false;
2713        TerminologyCapabilitiesValidateCodeComponent o = (TerminologyCapabilitiesValidateCodeComponent) other_;
2714        return compareValues(translations, o.translations, true);
2715      }
2716
2717      public boolean isEmpty() {
2718        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(translations);
2719      }
2720
2721  public String fhirType() {
2722    return "TerminologyCapabilities.validateCode";
2723
2724  }
2725
2726  }
2727
2728    @Block()
2729    public static class TerminologyCapabilitiesTranslationComponent extends BackboneElement implements IBaseBackboneElement {
2730        /**
2731         * Whether the client must identify the map.
2732         */
2733        @Child(name = "needsMap", type = {BooleanType.class}, order=1, min=1, max=1, modifier=false, summary=false)
2734        @Description(shortDefinition="Whether the client must identify the map", formalDefinition="Whether the client must identify the map." )
2735        protected BooleanType needsMap;
2736
2737        private static final long serialVersionUID = -1727843575L;
2738
2739    /**
2740     * Constructor
2741     */
2742      public TerminologyCapabilitiesTranslationComponent() {
2743        super();
2744      }
2745
2746    /**
2747     * Constructor
2748     */
2749      public TerminologyCapabilitiesTranslationComponent(boolean needsMap) {
2750        super();
2751        this.setNeedsMap(needsMap);
2752      }
2753
2754        /**
2755         * @return {@link #needsMap} (Whether the client must identify the map.). This is the underlying object with id, value and extensions. The accessor "getNeedsMap" gives direct access to the value
2756         */
2757        public BooleanType getNeedsMapElement() { 
2758          if (this.needsMap == null)
2759            if (Configuration.errorOnAutoCreate())
2760              throw new Error("Attempt to auto-create TerminologyCapabilitiesTranslationComponent.needsMap");
2761            else if (Configuration.doAutoCreate())
2762              this.needsMap = new BooleanType(); // bb
2763          return this.needsMap;
2764        }
2765
2766        public boolean hasNeedsMapElement() { 
2767          return this.needsMap != null && !this.needsMap.isEmpty();
2768        }
2769
2770        public boolean hasNeedsMap() { 
2771          return this.needsMap != null && !this.needsMap.isEmpty();
2772        }
2773
2774        /**
2775         * @param value {@link #needsMap} (Whether the client must identify the map.). This is the underlying object with id, value and extensions. The accessor "getNeedsMap" gives direct access to the value
2776         */
2777        public TerminologyCapabilitiesTranslationComponent setNeedsMapElement(BooleanType value) { 
2778          this.needsMap = value;
2779          return this;
2780        }
2781
2782        /**
2783         * @return Whether the client must identify the map.
2784         */
2785        public boolean getNeedsMap() { 
2786          return this.needsMap == null || this.needsMap.isEmpty() ? false : this.needsMap.getValue();
2787        }
2788
2789        /**
2790         * @param value Whether the client must identify the map.
2791         */
2792        public TerminologyCapabilitiesTranslationComponent setNeedsMap(boolean value) { 
2793            if (this.needsMap == null)
2794              this.needsMap = new BooleanType();
2795            this.needsMap.setValue(value);
2796          return this;
2797        }
2798
2799        protected void listChildren(List<Property> children) {
2800          super.listChildren(children);
2801          children.add(new Property("needsMap", "boolean", "Whether the client must identify the map.", 0, 1, needsMap));
2802        }
2803
2804        @Override
2805        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
2806          switch (_hash) {
2807          case 866566527: /*needsMap*/  return new Property("needsMap", "boolean", "Whether the client must identify the map.", 0, 1, needsMap);
2808          default: return super.getNamedProperty(_hash, _name, _checkValid);
2809          }
2810
2811        }
2812
2813      @Override
2814      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
2815        switch (hash) {
2816        case 866566527: /*needsMap*/ return this.needsMap == null ? new Base[0] : new Base[] {this.needsMap}; // BooleanType
2817        default: return super.getProperty(hash, name, checkValid);
2818        }
2819
2820      }
2821
2822      @Override
2823      public Base setProperty(int hash, String name, Base value) throws FHIRException {
2824        switch (hash) {
2825        case 866566527: // needsMap
2826          this.needsMap = TypeConvertor.castToBoolean(value); // BooleanType
2827          return value;
2828        default: return super.setProperty(hash, name, value);
2829        }
2830
2831      }
2832
2833      @Override
2834      public Base setProperty(String name, Base value) throws FHIRException {
2835        if (name.equals("needsMap")) {
2836          this.needsMap = TypeConvertor.castToBoolean(value); // BooleanType
2837        } else
2838          return super.setProperty(name, value);
2839        return value;
2840      }
2841
2842      @Override
2843      public Base makeProperty(int hash, String name) throws FHIRException {
2844        switch (hash) {
2845        case 866566527:  return getNeedsMapElement();
2846        default: return super.makeProperty(hash, name);
2847        }
2848
2849      }
2850
2851      @Override
2852      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
2853        switch (hash) {
2854        case 866566527: /*needsMap*/ return new String[] {"boolean"};
2855        default: return super.getTypesForProperty(hash, name);
2856        }
2857
2858      }
2859
2860      @Override
2861      public Base addChild(String name) throws FHIRException {
2862        if (name.equals("needsMap")) {
2863          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.translation.needsMap");
2864        }
2865        else
2866          return super.addChild(name);
2867      }
2868
2869      public TerminologyCapabilitiesTranslationComponent copy() {
2870        TerminologyCapabilitiesTranslationComponent dst = new TerminologyCapabilitiesTranslationComponent();
2871        copyValues(dst);
2872        return dst;
2873      }
2874
2875      public void copyValues(TerminologyCapabilitiesTranslationComponent dst) {
2876        super.copyValues(dst);
2877        dst.needsMap = needsMap == null ? null : needsMap.copy();
2878      }
2879
2880      @Override
2881      public boolean equalsDeep(Base other_) {
2882        if (!super.equalsDeep(other_))
2883          return false;
2884        if (!(other_ instanceof TerminologyCapabilitiesTranslationComponent))
2885          return false;
2886        TerminologyCapabilitiesTranslationComponent o = (TerminologyCapabilitiesTranslationComponent) other_;
2887        return compareDeep(needsMap, o.needsMap, true);
2888      }
2889
2890      @Override
2891      public boolean equalsShallow(Base other_) {
2892        if (!super.equalsShallow(other_))
2893          return false;
2894        if (!(other_ instanceof TerminologyCapabilitiesTranslationComponent))
2895          return false;
2896        TerminologyCapabilitiesTranslationComponent o = (TerminologyCapabilitiesTranslationComponent) other_;
2897        return compareValues(needsMap, o.needsMap, true);
2898      }
2899
2900      public boolean isEmpty() {
2901        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(needsMap);
2902      }
2903
2904  public String fhirType() {
2905    return "TerminologyCapabilities.translation";
2906
2907  }
2908
2909  }
2910
2911    @Block()
2912    public static class TerminologyCapabilitiesClosureComponent extends BackboneElement implements IBaseBackboneElement {
2913        /**
2914         * If cross-system closure is supported.
2915         */
2916        @Child(name = "translation", type = {BooleanType.class}, order=1, min=0, max=1, modifier=false, summary=false)
2917        @Description(shortDefinition="If cross-system closure is supported", formalDefinition="If cross-system closure is supported." )
2918        protected BooleanType translation;
2919
2920        private static final long serialVersionUID = 1900484343L;
2921
2922    /**
2923     * Constructor
2924     */
2925      public TerminologyCapabilitiesClosureComponent() {
2926        super();
2927      }
2928
2929        /**
2930         * @return {@link #translation} (If cross-system closure is supported.). This is the underlying object with id, value and extensions. The accessor "getTranslation" gives direct access to the value
2931         */
2932        public BooleanType getTranslationElement() { 
2933          if (this.translation == null)
2934            if (Configuration.errorOnAutoCreate())
2935              throw new Error("Attempt to auto-create TerminologyCapabilitiesClosureComponent.translation");
2936            else if (Configuration.doAutoCreate())
2937              this.translation = new BooleanType(); // bb
2938          return this.translation;
2939        }
2940
2941        public boolean hasTranslationElement() { 
2942          return this.translation != null && !this.translation.isEmpty();
2943        }
2944
2945        public boolean hasTranslation() { 
2946          return this.translation != null && !this.translation.isEmpty();
2947        }
2948
2949        /**
2950         * @param value {@link #translation} (If cross-system closure is supported.). This is the underlying object with id, value and extensions. The accessor "getTranslation" gives direct access to the value
2951         */
2952        public TerminologyCapabilitiesClosureComponent setTranslationElement(BooleanType value) { 
2953          this.translation = value;
2954          return this;
2955        }
2956
2957        /**
2958         * @return If cross-system closure is supported.
2959         */
2960        public boolean getTranslation() { 
2961          return this.translation == null || this.translation.isEmpty() ? false : this.translation.getValue();
2962        }
2963
2964        /**
2965         * @param value If cross-system closure is supported.
2966         */
2967        public TerminologyCapabilitiesClosureComponent setTranslation(boolean value) { 
2968            if (this.translation == null)
2969              this.translation = new BooleanType();
2970            this.translation.setValue(value);
2971          return this;
2972        }
2973
2974        protected void listChildren(List<Property> children) {
2975          super.listChildren(children);
2976          children.add(new Property("translation", "boolean", "If cross-system closure is supported.", 0, 1, translation));
2977        }
2978
2979        @Override
2980        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
2981          switch (_hash) {
2982          case -1840647503: /*translation*/  return new Property("translation", "boolean", "If cross-system closure is supported.", 0, 1, translation);
2983          default: return super.getNamedProperty(_hash, _name, _checkValid);
2984          }
2985
2986        }
2987
2988      @Override
2989      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
2990        switch (hash) {
2991        case -1840647503: /*translation*/ return this.translation == null ? new Base[0] : new Base[] {this.translation}; // BooleanType
2992        default: return super.getProperty(hash, name, checkValid);
2993        }
2994
2995      }
2996
2997      @Override
2998      public Base setProperty(int hash, String name, Base value) throws FHIRException {
2999        switch (hash) {
3000        case -1840647503: // translation
3001          this.translation = TypeConvertor.castToBoolean(value); // BooleanType
3002          return value;
3003        default: return super.setProperty(hash, name, value);
3004        }
3005
3006      }
3007
3008      @Override
3009      public Base setProperty(String name, Base value) throws FHIRException {
3010        if (name.equals("translation")) {
3011          this.translation = TypeConvertor.castToBoolean(value); // BooleanType
3012        } else
3013          return super.setProperty(name, value);
3014        return value;
3015      }
3016
3017      @Override
3018      public Base makeProperty(int hash, String name) throws FHIRException {
3019        switch (hash) {
3020        case -1840647503:  return getTranslationElement();
3021        default: return super.makeProperty(hash, name);
3022        }
3023
3024      }
3025
3026      @Override
3027      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
3028        switch (hash) {
3029        case -1840647503: /*translation*/ return new String[] {"boolean"};
3030        default: return super.getTypesForProperty(hash, name);
3031        }
3032
3033      }
3034
3035      @Override
3036      public Base addChild(String name) throws FHIRException {
3037        if (name.equals("translation")) {
3038          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.closure.translation");
3039        }
3040        else
3041          return super.addChild(name);
3042      }
3043
3044      public TerminologyCapabilitiesClosureComponent copy() {
3045        TerminologyCapabilitiesClosureComponent dst = new TerminologyCapabilitiesClosureComponent();
3046        copyValues(dst);
3047        return dst;
3048      }
3049
3050      public void copyValues(TerminologyCapabilitiesClosureComponent dst) {
3051        super.copyValues(dst);
3052        dst.translation = translation == null ? null : translation.copy();
3053      }
3054
3055      @Override
3056      public boolean equalsDeep(Base other_) {
3057        if (!super.equalsDeep(other_))
3058          return false;
3059        if (!(other_ instanceof TerminologyCapabilitiesClosureComponent))
3060          return false;
3061        TerminologyCapabilitiesClosureComponent o = (TerminologyCapabilitiesClosureComponent) other_;
3062        return compareDeep(translation, o.translation, true);
3063      }
3064
3065      @Override
3066      public boolean equalsShallow(Base other_) {
3067        if (!super.equalsShallow(other_))
3068          return false;
3069        if (!(other_ instanceof TerminologyCapabilitiesClosureComponent))
3070          return false;
3071        TerminologyCapabilitiesClosureComponent o = (TerminologyCapabilitiesClosureComponent) other_;
3072        return compareValues(translation, o.translation, true);
3073      }
3074
3075      public boolean isEmpty() {
3076        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(translation);
3077      }
3078
3079  public String fhirType() {
3080    return "TerminologyCapabilities.closure";
3081
3082  }
3083
3084  }
3085
3086    /**
3087     * An absolute URI that is used to identify this terminology capabilities 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 terminology capabilities is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the terminology capabilities is stored on different servers.
3088     */
3089    @Child(name = "url", type = {UriType.class}, order=0, min=0, max=1, modifier=false, summary=true)
3090    @Description(shortDefinition="Canonical identifier for this terminology capabilities, represented as a URI (globally unique)", formalDefinition="An absolute URI that is used to identify this terminology capabilities 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 terminology capabilities is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the terminology capabilities is stored on different servers." )
3091    protected UriType url;
3092
3093    /**
3094     * The identifier that is used to identify this version of the terminology capabilities when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the terminology capabilities 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.
3095     */
3096    @Child(name = "version", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=true)
3097    @Description(shortDefinition="Business version of the terminology capabilities", formalDefinition="The identifier that is used to identify this version of the terminology capabilities when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the terminology capabilities 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." )
3098    protected StringType version;
3099
3100    /**
3101     * A natural language name identifying the terminology capabilities. This name should be usable as an identifier for the module by machine processing applications such as code generation.
3102     */
3103    @Child(name = "name", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=true)
3104    @Description(shortDefinition="Name for this terminology capabilities (computer friendly)", formalDefinition="A natural language name identifying the terminology capabilities. This name should be usable as an identifier for the module by machine processing applications such as code generation." )
3105    protected StringType name;
3106
3107    /**
3108     * A short, descriptive, user-friendly title for the terminology capabilities.
3109     */
3110    @Child(name = "title", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true)
3111    @Description(shortDefinition="Name for this terminology capabilities (human friendly)", formalDefinition="A short, descriptive, user-friendly title for the terminology capabilities." )
3112    protected StringType title;
3113
3114    /**
3115     * The status of this terminology capabilities. Enables tracking the life-cycle of the content.
3116     */
3117    @Child(name = "status", type = {CodeType.class}, order=4, min=1, max=1, modifier=true, summary=true)
3118    @Description(shortDefinition="draft | active | retired | unknown", formalDefinition="The status of this terminology capabilities. Enables tracking the life-cycle of the content." )
3119    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/publication-status")
3120    protected Enumeration<PublicationStatus> status;
3121
3122    /**
3123     * A Boolean value to indicate that this terminology capabilities is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.
3124     */
3125    @Child(name = "experimental", type = {BooleanType.class}, order=5, min=0, max=1, modifier=false, summary=true)
3126    @Description(shortDefinition="For testing purposes, not real usage", formalDefinition="A Boolean value to indicate that this terminology capabilities is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage." )
3127    protected BooleanType experimental;
3128
3129    /**
3130     * The date  (and optionally time) when the terminology capabilities was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the terminology capabilities changes.
3131     */
3132    @Child(name = "date", type = {DateTimeType.class}, order=6, min=1, max=1, modifier=false, summary=true)
3133    @Description(shortDefinition="Date last changed", formalDefinition="The date  (and optionally time) when the terminology capabilities was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the terminology capabilities changes." )
3134    protected DateTimeType date;
3135
3136    /**
3137     * The name of the organization or individual that published the terminology capabilities.
3138     */
3139    @Child(name = "publisher", type = {StringType.class}, order=7, min=0, max=1, modifier=false, summary=true)
3140    @Description(shortDefinition="Name of the publisher (organization or individual)", formalDefinition="The name of the organization or individual that published the terminology capabilities." )
3141    protected StringType publisher;
3142
3143    /**
3144     * Contact details to assist a user in finding and communicating with the publisher.
3145     */
3146    @Child(name = "contact", type = {ContactDetail.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
3147    @Description(shortDefinition="Contact details for the publisher", formalDefinition="Contact details to assist a user in finding and communicating with the publisher." )
3148    protected List<ContactDetail> contact;
3149
3150    /**
3151     * A free text natural language description of the terminology capabilities from a consumer's perspective. Typically, this is used when the capability statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP.
3152     */
3153    @Child(name = "description", type = {MarkdownType.class}, order=9, min=0, max=1, modifier=false, summary=false)
3154    @Description(shortDefinition="Natural language description of the terminology capabilities", formalDefinition="A free text natural language description of the terminology capabilities from a consumer's perspective. Typically, this is used when the capability statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP." )
3155    protected MarkdownType description;
3156
3157    /**
3158     * 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 terminology capabilities instances.
3159     */
3160    @Child(name = "useContext", type = {UsageContext.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
3161    @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 terminology capabilities instances." )
3162    protected List<UsageContext> useContext;
3163
3164    /**
3165     * A legal or geographic region in which the terminology capabilities is intended to be used.
3166     */
3167    @Child(name = "jurisdiction", type = {CodeableConcept.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
3168    @Description(shortDefinition="Intended jurisdiction for terminology capabilities (if applicable)", formalDefinition="A legal or geographic region in which the terminology capabilities is intended to be used." )
3169    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/jurisdiction")
3170    protected List<CodeableConcept> jurisdiction;
3171
3172    /**
3173     * Explanation of why this terminology capabilities is needed and why it has been designed as it has.
3174     */
3175    @Child(name = "purpose", type = {MarkdownType.class}, order=12, min=0, max=1, modifier=false, summary=false)
3176    @Description(shortDefinition="Why this terminology capabilities is defined", formalDefinition="Explanation of why this terminology capabilities is needed and why it has been designed as it has." )
3177    protected MarkdownType purpose;
3178
3179    /**
3180     * A copyright statement relating to the terminology capabilities and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the terminology capabilities.
3181     */
3182    @Child(name = "copyright", type = {MarkdownType.class}, order=13, min=0, max=1, modifier=false, summary=true)
3183    @Description(shortDefinition="Use and/or publishing restrictions", formalDefinition="A copyright statement relating to the terminology capabilities and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the terminology capabilities." )
3184    protected MarkdownType copyright;
3185
3186    /**
3187     * The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind, not instance of software) or a class of implementation (e.g. a desired purchase).
3188     */
3189    @Child(name = "kind", type = {CodeType.class}, order=14, min=1, max=1, modifier=false, summary=true)
3190    @Description(shortDefinition="instance | capability | requirements", formalDefinition="The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind, not instance of software) or a class of implementation (e.g. a desired purchase)." )
3191    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/capability-statement-kind")
3192    protected Enumeration<CapabilityStatementKind> kind;
3193
3194    /**
3195     * Software that is covered by this terminology capability statement.  It is used when the statement describes the capabilities of a particular software version, independent of an installation.
3196     */
3197    @Child(name = "software", type = {}, order=15, min=0, max=1, modifier=false, summary=true)
3198    @Description(shortDefinition="Software that is covered by this terminology capability statement", formalDefinition="Software that is covered by this terminology capability statement.  It is used when the statement describes the capabilities of a particular software version, independent of an installation." )
3199    protected TerminologyCapabilitiesSoftwareComponent software;
3200
3201    /**
3202     * Identifies a specific implementation instance that is described by the terminology capability statement - i.e. a particular installation, rather than the capabilities of a software program.
3203     */
3204    @Child(name = "implementation", type = {}, order=16, min=0, max=1, modifier=false, summary=true)
3205    @Description(shortDefinition="If this describes a specific instance", formalDefinition="Identifies a specific implementation instance that is described by the terminology capability statement - i.e. a particular installation, rather than the capabilities of a software program." )
3206    protected TerminologyCapabilitiesImplementationComponent implementation;
3207
3208    /**
3209     * Whether the server supports lockedDate.
3210     */
3211    @Child(name = "lockedDate", type = {BooleanType.class}, order=17, min=0, max=1, modifier=false, summary=true)
3212    @Description(shortDefinition="Whether lockedDate is supported", formalDefinition="Whether the server supports lockedDate." )
3213    protected BooleanType lockedDate;
3214
3215    /**
3216     * Identifies a code system that is supported by the server. If there is a no code system URL, then this declares the general assumptions a client can make about support for any CodeSystem resource.
3217     */
3218    @Child(name = "codeSystem", type = {}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
3219    @Description(shortDefinition="A code system supported by the server", formalDefinition="Identifies a code system that is supported by the server. If there is a no code system URL, then this declares the general assumptions a client can make about support for any CodeSystem resource." )
3220    protected List<TerminologyCapabilitiesCodeSystemComponent> codeSystem;
3221
3222    /**
3223     * Information about the [ValueSet/$expand](valueset-operation-expand.html) operation.
3224     */
3225    @Child(name = "expansion", type = {}, order=19, min=0, max=1, modifier=false, summary=false)
3226    @Description(shortDefinition="Information about the [ValueSet/$expand](valueset-operation-expand.html) operation", formalDefinition="Information about the [ValueSet/$expand](valueset-operation-expand.html) operation." )
3227    protected TerminologyCapabilitiesExpansionComponent expansion;
3228
3229    /**
3230     * The degree to which the server supports the code search parameter on ValueSet, if it is supported.
3231     */
3232    @Child(name = "codeSearch", type = {CodeType.class}, order=20, min=0, max=1, modifier=false, summary=false)
3233    @Description(shortDefinition="explicit | all", formalDefinition="The degree to which the server supports the code search parameter on ValueSet, if it is supported." )
3234    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/code-search-support")
3235    protected Enumeration<CodeSearchSupport> codeSearch;
3236
3237    /**
3238     * Information about the [ValueSet/$validate-code](valueset-operation-validate-code.html) operation.
3239     */
3240    @Child(name = "validateCode", type = {}, order=21, min=0, max=1, modifier=false, summary=false)
3241    @Description(shortDefinition="Information about the [ValueSet/$validate-code](valueset-operation-validate-code.html) operation", formalDefinition="Information about the [ValueSet/$validate-code](valueset-operation-validate-code.html) operation." )
3242    protected TerminologyCapabilitiesValidateCodeComponent validateCode;
3243
3244    /**
3245     * Information about the [ConceptMap/$translate](conceptmap-operation-translate.html) operation.
3246     */
3247    @Child(name = "translation", type = {}, order=22, min=0, max=1, modifier=false, summary=false)
3248    @Description(shortDefinition="Information about the [ConceptMap/$translate](conceptmap-operation-translate.html) operation", formalDefinition="Information about the [ConceptMap/$translate](conceptmap-operation-translate.html) operation." )
3249    protected TerminologyCapabilitiesTranslationComponent translation;
3250
3251    /**
3252     * Whether the $closure operation is supported.
3253     */
3254    @Child(name = "closure", type = {}, order=23, min=0, max=1, modifier=false, summary=false)
3255    @Description(shortDefinition="Information about the [ConceptMap/$closure](conceptmap-operation-closure.html) operation", formalDefinition="Whether the $closure operation is supported." )
3256    protected TerminologyCapabilitiesClosureComponent closure;
3257
3258    private static final long serialVersionUID = -471633367L;
3259
3260  /**
3261   * Constructor
3262   */
3263    public TerminologyCapabilities() {
3264      super();
3265    }
3266
3267  /**
3268   * Constructor
3269   */
3270    public TerminologyCapabilities(PublicationStatus status, Date date, CapabilityStatementKind kind) {
3271      super();
3272      this.setStatus(status);
3273      this.setDate(date);
3274      this.setKind(kind);
3275    }
3276
3277    /**
3278     * @return {@link #url} (An absolute URI that is used to identify this terminology capabilities 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 terminology capabilities is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the terminology capabilities is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
3279     */
3280    public UriType getUrlElement() { 
3281      if (this.url == null)
3282        if (Configuration.errorOnAutoCreate())
3283          throw new Error("Attempt to auto-create TerminologyCapabilities.url");
3284        else if (Configuration.doAutoCreate())
3285          this.url = new UriType(); // bb
3286      return this.url;
3287    }
3288
3289    public boolean hasUrlElement() { 
3290      return this.url != null && !this.url.isEmpty();
3291    }
3292
3293    public boolean hasUrl() { 
3294      return this.url != null && !this.url.isEmpty();
3295    }
3296
3297    /**
3298     * @param value {@link #url} (An absolute URI that is used to identify this terminology capabilities 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 terminology capabilities is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the terminology capabilities is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
3299     */
3300    public TerminologyCapabilities setUrlElement(UriType value) { 
3301      this.url = value;
3302      return this;
3303    }
3304
3305    /**
3306     * @return An absolute URI that is used to identify this terminology capabilities 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 terminology capabilities is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the terminology capabilities is stored on different servers.
3307     */
3308    public String getUrl() { 
3309      return this.url == null ? null : this.url.getValue();
3310    }
3311
3312    /**
3313     * @param value An absolute URI that is used to identify this terminology capabilities 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 terminology capabilities is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the terminology capabilities is stored on different servers.
3314     */
3315    public TerminologyCapabilities setUrl(String value) { 
3316      if (Utilities.noString(value))
3317        this.url = null;
3318      else {
3319        if (this.url == null)
3320          this.url = new UriType();
3321        this.url.setValue(value);
3322      }
3323      return this;
3324    }
3325
3326    /**
3327     * @return {@link #version} (The identifier that is used to identify this version of the terminology capabilities when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the terminology capabilities 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
3328     */
3329    public StringType getVersionElement() { 
3330      if (this.version == null)
3331        if (Configuration.errorOnAutoCreate())
3332          throw new Error("Attempt to auto-create TerminologyCapabilities.version");
3333        else if (Configuration.doAutoCreate())
3334          this.version = new StringType(); // bb
3335      return this.version;
3336    }
3337
3338    public boolean hasVersionElement() { 
3339      return this.version != null && !this.version.isEmpty();
3340    }
3341
3342    public boolean hasVersion() { 
3343      return this.version != null && !this.version.isEmpty();
3344    }
3345
3346    /**
3347     * @param value {@link #version} (The identifier that is used to identify this version of the terminology capabilities when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the terminology capabilities 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
3348     */
3349    public TerminologyCapabilities setVersionElement(StringType value) { 
3350      this.version = value;
3351      return this;
3352    }
3353
3354    /**
3355     * @return The identifier that is used to identify this version of the terminology capabilities when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the terminology capabilities 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.
3356     */
3357    public String getVersion() { 
3358      return this.version == null ? null : this.version.getValue();
3359    }
3360
3361    /**
3362     * @param value The identifier that is used to identify this version of the terminology capabilities when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the terminology capabilities 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.
3363     */
3364    public TerminologyCapabilities setVersion(String value) { 
3365      if (Utilities.noString(value))
3366        this.version = null;
3367      else {
3368        if (this.version == null)
3369          this.version = new StringType();
3370        this.version.setValue(value);
3371      }
3372      return this;
3373    }
3374
3375    /**
3376     * @return {@link #name} (A natural language name identifying the terminology capabilities. 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
3377     */
3378    public StringType getNameElement() { 
3379      if (this.name == null)
3380        if (Configuration.errorOnAutoCreate())
3381          throw new Error("Attempt to auto-create TerminologyCapabilities.name");
3382        else if (Configuration.doAutoCreate())
3383          this.name = new StringType(); // bb
3384      return this.name;
3385    }
3386
3387    public boolean hasNameElement() { 
3388      return this.name != null && !this.name.isEmpty();
3389    }
3390
3391    public boolean hasName() { 
3392      return this.name != null && !this.name.isEmpty();
3393    }
3394
3395    /**
3396     * @param value {@link #name} (A natural language name identifying the terminology capabilities. 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
3397     */
3398    public TerminologyCapabilities setNameElement(StringType value) { 
3399      this.name = value;
3400      return this;
3401    }
3402
3403    /**
3404     * @return A natural language name identifying the terminology capabilities. This name should be usable as an identifier for the module by machine processing applications such as code generation.
3405     */
3406    public String getName() { 
3407      return this.name == null ? null : this.name.getValue();
3408    }
3409
3410    /**
3411     * @param value A natural language name identifying the terminology capabilities. This name should be usable as an identifier for the module by machine processing applications such as code generation.
3412     */
3413    public TerminologyCapabilities setName(String value) { 
3414      if (Utilities.noString(value))
3415        this.name = null;
3416      else {
3417        if (this.name == null)
3418          this.name = new StringType();
3419        this.name.setValue(value);
3420      }
3421      return this;
3422    }
3423
3424    /**
3425     * @return {@link #title} (A short, descriptive, user-friendly title for the terminology capabilities.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
3426     */
3427    public StringType getTitleElement() { 
3428      if (this.title == null)
3429        if (Configuration.errorOnAutoCreate())
3430          throw new Error("Attempt to auto-create TerminologyCapabilities.title");
3431        else if (Configuration.doAutoCreate())
3432          this.title = new StringType(); // bb
3433      return this.title;
3434    }
3435
3436    public boolean hasTitleElement() { 
3437      return this.title != null && !this.title.isEmpty();
3438    }
3439
3440    public boolean hasTitle() { 
3441      return this.title != null && !this.title.isEmpty();
3442    }
3443
3444    /**
3445     * @param value {@link #title} (A short, descriptive, user-friendly title for the terminology capabilities.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
3446     */
3447    public TerminologyCapabilities setTitleElement(StringType value) { 
3448      this.title = value;
3449      return this;
3450    }
3451
3452    /**
3453     * @return A short, descriptive, user-friendly title for the terminology capabilities.
3454     */
3455    public String getTitle() { 
3456      return this.title == null ? null : this.title.getValue();
3457    }
3458
3459    /**
3460     * @param value A short, descriptive, user-friendly title for the terminology capabilities.
3461     */
3462    public TerminologyCapabilities setTitle(String value) { 
3463      if (Utilities.noString(value))
3464        this.title = null;
3465      else {
3466        if (this.title == null)
3467          this.title = new StringType();
3468        this.title.setValue(value);
3469      }
3470      return this;
3471    }
3472
3473    /**
3474     * @return {@link #status} (The status of this terminology capabilities. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
3475     */
3476    public Enumeration<PublicationStatus> getStatusElement() { 
3477      if (this.status == null)
3478        if (Configuration.errorOnAutoCreate())
3479          throw new Error("Attempt to auto-create TerminologyCapabilities.status");
3480        else if (Configuration.doAutoCreate())
3481          this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); // bb
3482      return this.status;
3483    }
3484
3485    public boolean hasStatusElement() { 
3486      return this.status != null && !this.status.isEmpty();
3487    }
3488
3489    public boolean hasStatus() { 
3490      return this.status != null && !this.status.isEmpty();
3491    }
3492
3493    /**
3494     * @param value {@link #status} (The status of this terminology capabilities. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
3495     */
3496    public TerminologyCapabilities setStatusElement(Enumeration<PublicationStatus> value) { 
3497      this.status = value;
3498      return this;
3499    }
3500
3501    /**
3502     * @return The status of this terminology capabilities. Enables tracking the life-cycle of the content.
3503     */
3504    public PublicationStatus getStatus() { 
3505      return this.status == null ? null : this.status.getValue();
3506    }
3507
3508    /**
3509     * @param value The status of this terminology capabilities. Enables tracking the life-cycle of the content.
3510     */
3511    public TerminologyCapabilities setStatus(PublicationStatus value) { 
3512        if (this.status == null)
3513          this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory());
3514        this.status.setValue(value);
3515      return this;
3516    }
3517
3518    /**
3519     * @return {@link #experimental} (A Boolean value to indicate that this terminology capabilities 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
3520     */
3521    public BooleanType getExperimentalElement() { 
3522      if (this.experimental == null)
3523        if (Configuration.errorOnAutoCreate())
3524          throw new Error("Attempt to auto-create TerminologyCapabilities.experimental");
3525        else if (Configuration.doAutoCreate())
3526          this.experimental = new BooleanType(); // bb
3527      return this.experimental;
3528    }
3529
3530    public boolean hasExperimentalElement() { 
3531      return this.experimental != null && !this.experimental.isEmpty();
3532    }
3533
3534    public boolean hasExperimental() { 
3535      return this.experimental != null && !this.experimental.isEmpty();
3536    }
3537
3538    /**
3539     * @param value {@link #experimental} (A Boolean value to indicate that this terminology capabilities 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
3540     */
3541    public TerminologyCapabilities setExperimentalElement(BooleanType value) { 
3542      this.experimental = value;
3543      return this;
3544    }
3545
3546    /**
3547     * @return A Boolean value to indicate that this terminology capabilities is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.
3548     */
3549    public boolean getExperimental() { 
3550      return this.experimental == null || this.experimental.isEmpty() ? false : this.experimental.getValue();
3551    }
3552
3553    /**
3554     * @param value A Boolean value to indicate that this terminology capabilities is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.
3555     */
3556    public TerminologyCapabilities setExperimental(boolean value) { 
3557        if (this.experimental == null)
3558          this.experimental = new BooleanType();
3559        this.experimental.setValue(value);
3560      return this;
3561    }
3562
3563    /**
3564     * @return {@link #date} (The date  (and optionally time) when the terminology capabilities was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the terminology capabilities changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
3565     */
3566    public DateTimeType getDateElement() { 
3567      if (this.date == null)
3568        if (Configuration.errorOnAutoCreate())
3569          throw new Error("Attempt to auto-create TerminologyCapabilities.date");
3570        else if (Configuration.doAutoCreate())
3571          this.date = new DateTimeType(); // bb
3572      return this.date;
3573    }
3574
3575    public boolean hasDateElement() { 
3576      return this.date != null && !this.date.isEmpty();
3577    }
3578
3579    public boolean hasDate() { 
3580      return this.date != null && !this.date.isEmpty();
3581    }
3582
3583    /**
3584     * @param value {@link #date} (The date  (and optionally time) when the terminology capabilities was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the terminology capabilities changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
3585     */
3586    public TerminologyCapabilities setDateElement(DateTimeType value) { 
3587      this.date = value;
3588      return this;
3589    }
3590
3591    /**
3592     * @return The date  (and optionally time) when the terminology capabilities was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the terminology capabilities changes.
3593     */
3594    public Date getDate() { 
3595      return this.date == null ? null : this.date.getValue();
3596    }
3597
3598    /**
3599     * @param value The date  (and optionally time) when the terminology capabilities was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the terminology capabilities changes.
3600     */
3601    public TerminologyCapabilities setDate(Date value) { 
3602        if (this.date == null)
3603          this.date = new DateTimeType();
3604        this.date.setValue(value);
3605      return this;
3606    }
3607
3608    /**
3609     * @return {@link #publisher} (The name of the organization or individual that published the terminology capabilities.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value
3610     */
3611    public StringType getPublisherElement() { 
3612      if (this.publisher == null)
3613        if (Configuration.errorOnAutoCreate())
3614          throw new Error("Attempt to auto-create TerminologyCapabilities.publisher");
3615        else if (Configuration.doAutoCreate())
3616          this.publisher = new StringType(); // bb
3617      return this.publisher;
3618    }
3619
3620    public boolean hasPublisherElement() { 
3621      return this.publisher != null && !this.publisher.isEmpty();
3622    }
3623
3624    public boolean hasPublisher() { 
3625      return this.publisher != null && !this.publisher.isEmpty();
3626    }
3627
3628    /**
3629     * @param value {@link #publisher} (The name of the organization or individual that published the terminology capabilities.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value
3630     */
3631    public TerminologyCapabilities setPublisherElement(StringType value) { 
3632      this.publisher = value;
3633      return this;
3634    }
3635
3636    /**
3637     * @return The name of the organization or individual that published the terminology capabilities.
3638     */
3639    public String getPublisher() { 
3640      return this.publisher == null ? null : this.publisher.getValue();
3641    }
3642
3643    /**
3644     * @param value The name of the organization or individual that published the terminology capabilities.
3645     */
3646    public TerminologyCapabilities setPublisher(String value) { 
3647      if (Utilities.noString(value))
3648        this.publisher = null;
3649      else {
3650        if (this.publisher == null)
3651          this.publisher = new StringType();
3652        this.publisher.setValue(value);
3653      }
3654      return this;
3655    }
3656
3657    /**
3658     * @return {@link #contact} (Contact details to assist a user in finding and communicating with the publisher.)
3659     */
3660    public List<ContactDetail> getContact() { 
3661      if (this.contact == null)
3662        this.contact = new ArrayList<ContactDetail>();
3663      return this.contact;
3664    }
3665
3666    /**
3667     * @return Returns a reference to <code>this</code> for easy method chaining
3668     */
3669    public TerminologyCapabilities setContact(List<ContactDetail> theContact) { 
3670      this.contact = theContact;
3671      return this;
3672    }
3673
3674    public boolean hasContact() { 
3675      if (this.contact == null)
3676        return false;
3677      for (ContactDetail item : this.contact)
3678        if (!item.isEmpty())
3679          return true;
3680      return false;
3681    }
3682
3683    public ContactDetail addContact() { //3
3684      ContactDetail t = new ContactDetail();
3685      if (this.contact == null)
3686        this.contact = new ArrayList<ContactDetail>();
3687      this.contact.add(t);
3688      return t;
3689    }
3690
3691    public TerminologyCapabilities addContact(ContactDetail t) { //3
3692      if (t == null)
3693        return this;
3694      if (this.contact == null)
3695        this.contact = new ArrayList<ContactDetail>();
3696      this.contact.add(t);
3697      return this;
3698    }
3699
3700    /**
3701     * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist {3}
3702     */
3703    public ContactDetail getContactFirstRep() { 
3704      if (getContact().isEmpty()) {
3705        addContact();
3706      }
3707      return getContact().get(0);
3708    }
3709
3710    /**
3711     * @return {@link #description} (A free text natural language description of the terminology capabilities from a consumer's perspective. Typically, this is used when the capability statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
3712     */
3713    public MarkdownType getDescriptionElement() { 
3714      if (this.description == null)
3715        if (Configuration.errorOnAutoCreate())
3716          throw new Error("Attempt to auto-create TerminologyCapabilities.description");
3717        else if (Configuration.doAutoCreate())
3718          this.description = new MarkdownType(); // bb
3719      return this.description;
3720    }
3721
3722    public boolean hasDescriptionElement() { 
3723      return this.description != null && !this.description.isEmpty();
3724    }
3725
3726    public boolean hasDescription() { 
3727      return this.description != null && !this.description.isEmpty();
3728    }
3729
3730    /**
3731     * @param value {@link #description} (A free text natural language description of the terminology capabilities from a consumer's perspective. Typically, this is used when the capability statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
3732     */
3733    public TerminologyCapabilities setDescriptionElement(MarkdownType value) { 
3734      this.description = value;
3735      return this;
3736    }
3737
3738    /**
3739     * @return A free text natural language description of the terminology capabilities from a consumer's perspective. Typically, this is used when the capability statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP.
3740     */
3741    public String getDescription() { 
3742      return this.description == null ? null : this.description.getValue();
3743    }
3744
3745    /**
3746     * @param value A free text natural language description of the terminology capabilities from a consumer's perspective. Typically, this is used when the capability statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP.
3747     */
3748    public TerminologyCapabilities setDescription(String value) { 
3749      if (value == null)
3750        this.description = null;
3751      else {
3752        if (this.description == null)
3753          this.description = new MarkdownType();
3754        this.description.setValue(value);
3755      }
3756      return this;
3757    }
3758
3759    /**
3760     * @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 terminology capabilities instances.)
3761     */
3762    public List<UsageContext> getUseContext() { 
3763      if (this.useContext == null)
3764        this.useContext = new ArrayList<UsageContext>();
3765      return this.useContext;
3766    }
3767
3768    /**
3769     * @return Returns a reference to <code>this</code> for easy method chaining
3770     */
3771    public TerminologyCapabilities setUseContext(List<UsageContext> theUseContext) { 
3772      this.useContext = theUseContext;
3773      return this;
3774    }
3775
3776    public boolean hasUseContext() { 
3777      if (this.useContext == null)
3778        return false;
3779      for (UsageContext item : this.useContext)
3780        if (!item.isEmpty())
3781          return true;
3782      return false;
3783    }
3784
3785    public UsageContext addUseContext() { //3
3786      UsageContext t = new UsageContext();
3787      if (this.useContext == null)
3788        this.useContext = new ArrayList<UsageContext>();
3789      this.useContext.add(t);
3790      return t;
3791    }
3792
3793    public TerminologyCapabilities addUseContext(UsageContext t) { //3
3794      if (t == null)
3795        return this;
3796      if (this.useContext == null)
3797        this.useContext = new ArrayList<UsageContext>();
3798      this.useContext.add(t);
3799      return this;
3800    }
3801
3802    /**
3803     * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist {3}
3804     */
3805    public UsageContext getUseContextFirstRep() { 
3806      if (getUseContext().isEmpty()) {
3807        addUseContext();
3808      }
3809      return getUseContext().get(0);
3810    }
3811
3812    /**
3813     * @return {@link #jurisdiction} (A legal or geographic region in which the terminology capabilities is intended to be used.)
3814     */
3815    public List<CodeableConcept> getJurisdiction() { 
3816      if (this.jurisdiction == null)
3817        this.jurisdiction = new ArrayList<CodeableConcept>();
3818      return this.jurisdiction;
3819    }
3820
3821    /**
3822     * @return Returns a reference to <code>this</code> for easy method chaining
3823     */
3824    public TerminologyCapabilities setJurisdiction(List<CodeableConcept> theJurisdiction) { 
3825      this.jurisdiction = theJurisdiction;
3826      return this;
3827    }
3828
3829    public boolean hasJurisdiction() { 
3830      if (this.jurisdiction == null)
3831        return false;
3832      for (CodeableConcept item : this.jurisdiction)
3833        if (!item.isEmpty())
3834          return true;
3835      return false;
3836    }
3837
3838    public CodeableConcept addJurisdiction() { //3
3839      CodeableConcept t = new CodeableConcept();
3840      if (this.jurisdiction == null)
3841        this.jurisdiction = new ArrayList<CodeableConcept>();
3842      this.jurisdiction.add(t);
3843      return t;
3844    }
3845
3846    public TerminologyCapabilities addJurisdiction(CodeableConcept t) { //3
3847      if (t == null)
3848        return this;
3849      if (this.jurisdiction == null)
3850        this.jurisdiction = new ArrayList<CodeableConcept>();
3851      this.jurisdiction.add(t);
3852      return this;
3853    }
3854
3855    /**
3856     * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist {3}
3857     */
3858    public CodeableConcept getJurisdictionFirstRep() { 
3859      if (getJurisdiction().isEmpty()) {
3860        addJurisdiction();
3861      }
3862      return getJurisdiction().get(0);
3863    }
3864
3865    /**
3866     * @return {@link #purpose} (Explanation of why this terminology capabilities 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
3867     */
3868    public MarkdownType getPurposeElement() { 
3869      if (this.purpose == null)
3870        if (Configuration.errorOnAutoCreate())
3871          throw new Error("Attempt to auto-create TerminologyCapabilities.purpose");
3872        else if (Configuration.doAutoCreate())
3873          this.purpose = new MarkdownType(); // bb
3874      return this.purpose;
3875    }
3876
3877    public boolean hasPurposeElement() { 
3878      return this.purpose != null && !this.purpose.isEmpty();
3879    }
3880
3881    public boolean hasPurpose() { 
3882      return this.purpose != null && !this.purpose.isEmpty();
3883    }
3884
3885    /**
3886     * @param value {@link #purpose} (Explanation of why this terminology capabilities 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
3887     */
3888    public TerminologyCapabilities setPurposeElement(MarkdownType value) { 
3889      this.purpose = value;
3890      return this;
3891    }
3892
3893    /**
3894     * @return Explanation of why this terminology capabilities is needed and why it has been designed as it has.
3895     */
3896    public String getPurpose() { 
3897      return this.purpose == null ? null : this.purpose.getValue();
3898    }
3899
3900    /**
3901     * @param value Explanation of why this terminology capabilities is needed and why it has been designed as it has.
3902     */
3903    public TerminologyCapabilities setPurpose(String value) { 
3904      if (value == null)
3905        this.purpose = null;
3906      else {
3907        if (this.purpose == null)
3908          this.purpose = new MarkdownType();
3909        this.purpose.setValue(value);
3910      }
3911      return this;
3912    }
3913
3914    /**
3915     * @return {@link #copyright} (A copyright statement relating to the terminology capabilities and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the terminology capabilities.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value
3916     */
3917    public MarkdownType getCopyrightElement() { 
3918      if (this.copyright == null)
3919        if (Configuration.errorOnAutoCreate())
3920          throw new Error("Attempt to auto-create TerminologyCapabilities.copyright");
3921        else if (Configuration.doAutoCreate())
3922          this.copyright = new MarkdownType(); // bb
3923      return this.copyright;
3924    }
3925
3926    public boolean hasCopyrightElement() { 
3927      return this.copyright != null && !this.copyright.isEmpty();
3928    }
3929
3930    public boolean hasCopyright() { 
3931      return this.copyright != null && !this.copyright.isEmpty();
3932    }
3933
3934    /**
3935     * @param value {@link #copyright} (A copyright statement relating to the terminology capabilities and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the terminology capabilities.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value
3936     */
3937    public TerminologyCapabilities setCopyrightElement(MarkdownType value) { 
3938      this.copyright = value;
3939      return this;
3940    }
3941
3942    /**
3943     * @return A copyright statement relating to the terminology capabilities and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the terminology capabilities.
3944     */
3945    public String getCopyright() { 
3946      return this.copyright == null ? null : this.copyright.getValue();
3947    }
3948
3949    /**
3950     * @param value A copyright statement relating to the terminology capabilities and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the terminology capabilities.
3951     */
3952    public TerminologyCapabilities setCopyright(String value) { 
3953      if (value == null)
3954        this.copyright = null;
3955      else {
3956        if (this.copyright == null)
3957          this.copyright = new MarkdownType();
3958        this.copyright.setValue(value);
3959      }
3960      return this;
3961    }
3962
3963    /**
3964     * @return {@link #kind} (The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind, not instance of software) or a class of implementation (e.g. a desired purchase).). This is the underlying object with id, value and extensions. The accessor "getKind" gives direct access to the value
3965     */
3966    public Enumeration<CapabilityStatementKind> getKindElement() { 
3967      if (this.kind == null)
3968        if (Configuration.errorOnAutoCreate())
3969          throw new Error("Attempt to auto-create TerminologyCapabilities.kind");
3970        else if (Configuration.doAutoCreate())
3971          this.kind = new Enumeration<CapabilityStatementKind>(new CapabilityStatementKindEnumFactory()); // bb
3972      return this.kind;
3973    }
3974
3975    public boolean hasKindElement() { 
3976      return this.kind != null && !this.kind.isEmpty();
3977    }
3978
3979    public boolean hasKind() { 
3980      return this.kind != null && !this.kind.isEmpty();
3981    }
3982
3983    /**
3984     * @param value {@link #kind} (The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind, not instance of software) or a class of implementation (e.g. a desired purchase).). This is the underlying object with id, value and extensions. The accessor "getKind" gives direct access to the value
3985     */
3986    public TerminologyCapabilities setKindElement(Enumeration<CapabilityStatementKind> value) { 
3987      this.kind = value;
3988      return this;
3989    }
3990
3991    /**
3992     * @return The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind, not instance of software) or a class of implementation (e.g. a desired purchase).
3993     */
3994    public CapabilityStatementKind getKind() { 
3995      return this.kind == null ? null : this.kind.getValue();
3996    }
3997
3998    /**
3999     * @param value The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind, not instance of software) or a class of implementation (e.g. a desired purchase).
4000     */
4001    public TerminologyCapabilities setKind(CapabilityStatementKind value) { 
4002        if (this.kind == null)
4003          this.kind = new Enumeration<CapabilityStatementKind>(new CapabilityStatementKindEnumFactory());
4004        this.kind.setValue(value);
4005      return this;
4006    }
4007
4008    /**
4009     * @return {@link #software} (Software that is covered by this terminology capability statement.  It is used when the statement describes the capabilities of a particular software version, independent of an installation.)
4010     */
4011    public TerminologyCapabilitiesSoftwareComponent getSoftware() { 
4012      if (this.software == null)
4013        if (Configuration.errorOnAutoCreate())
4014          throw new Error("Attempt to auto-create TerminologyCapabilities.software");
4015        else if (Configuration.doAutoCreate())
4016          this.software = new TerminologyCapabilitiesSoftwareComponent(); // cc
4017      return this.software;
4018    }
4019
4020    public boolean hasSoftware() { 
4021      return this.software != null && !this.software.isEmpty();
4022    }
4023
4024    /**
4025     * @param value {@link #software} (Software that is covered by this terminology capability statement.  It is used when the statement describes the capabilities of a particular software version, independent of an installation.)
4026     */
4027    public TerminologyCapabilities setSoftware(TerminologyCapabilitiesSoftwareComponent value) { 
4028      this.software = value;
4029      return this;
4030    }
4031
4032    /**
4033     * @return {@link #implementation} (Identifies a specific implementation instance that is described by the terminology capability statement - i.e. a particular installation, rather than the capabilities of a software program.)
4034     */
4035    public TerminologyCapabilitiesImplementationComponent getImplementation() { 
4036      if (this.implementation == null)
4037        if (Configuration.errorOnAutoCreate())
4038          throw new Error("Attempt to auto-create TerminologyCapabilities.implementation");
4039        else if (Configuration.doAutoCreate())
4040          this.implementation = new TerminologyCapabilitiesImplementationComponent(); // cc
4041      return this.implementation;
4042    }
4043
4044    public boolean hasImplementation() { 
4045      return this.implementation != null && !this.implementation.isEmpty();
4046    }
4047
4048    /**
4049     * @param value {@link #implementation} (Identifies a specific implementation instance that is described by the terminology capability statement - i.e. a particular installation, rather than the capabilities of a software program.)
4050     */
4051    public TerminologyCapabilities setImplementation(TerminologyCapabilitiesImplementationComponent value) { 
4052      this.implementation = value;
4053      return this;
4054    }
4055
4056    /**
4057     * @return {@link #lockedDate} (Whether the server supports lockedDate.). This is the underlying object with id, value and extensions. The accessor "getLockedDate" gives direct access to the value
4058     */
4059    public BooleanType getLockedDateElement() { 
4060      if (this.lockedDate == null)
4061        if (Configuration.errorOnAutoCreate())
4062          throw new Error("Attempt to auto-create TerminologyCapabilities.lockedDate");
4063        else if (Configuration.doAutoCreate())
4064          this.lockedDate = new BooleanType(); // bb
4065      return this.lockedDate;
4066    }
4067
4068    public boolean hasLockedDateElement() { 
4069      return this.lockedDate != null && !this.lockedDate.isEmpty();
4070    }
4071
4072    public boolean hasLockedDate() { 
4073      return this.lockedDate != null && !this.lockedDate.isEmpty();
4074    }
4075
4076    /**
4077     * @param value {@link #lockedDate} (Whether the server supports lockedDate.). This is the underlying object with id, value and extensions. The accessor "getLockedDate" gives direct access to the value
4078     */
4079    public TerminologyCapabilities setLockedDateElement(BooleanType value) { 
4080      this.lockedDate = value;
4081      return this;
4082    }
4083
4084    /**
4085     * @return Whether the server supports lockedDate.
4086     */
4087    public boolean getLockedDate() { 
4088      return this.lockedDate == null || this.lockedDate.isEmpty() ? false : this.lockedDate.getValue();
4089    }
4090
4091    /**
4092     * @param value Whether the server supports lockedDate.
4093     */
4094    public TerminologyCapabilities setLockedDate(boolean value) { 
4095        if (this.lockedDate == null)
4096          this.lockedDate = new BooleanType();
4097        this.lockedDate.setValue(value);
4098      return this;
4099    }
4100
4101    /**
4102     * @return {@link #codeSystem} (Identifies a code system that is supported by the server. If there is a no code system URL, then this declares the general assumptions a client can make about support for any CodeSystem resource.)
4103     */
4104    public List<TerminologyCapabilitiesCodeSystemComponent> getCodeSystem() { 
4105      if (this.codeSystem == null)
4106        this.codeSystem = new ArrayList<TerminologyCapabilitiesCodeSystemComponent>();
4107      return this.codeSystem;
4108    }
4109
4110    /**
4111     * @return Returns a reference to <code>this</code> for easy method chaining
4112     */
4113    public TerminologyCapabilities setCodeSystem(List<TerminologyCapabilitiesCodeSystemComponent> theCodeSystem) { 
4114      this.codeSystem = theCodeSystem;
4115      return this;
4116    }
4117
4118    public boolean hasCodeSystem() { 
4119      if (this.codeSystem == null)
4120        return false;
4121      for (TerminologyCapabilitiesCodeSystemComponent item : this.codeSystem)
4122        if (!item.isEmpty())
4123          return true;
4124      return false;
4125    }
4126
4127    public TerminologyCapabilitiesCodeSystemComponent addCodeSystem() { //3
4128      TerminologyCapabilitiesCodeSystemComponent t = new TerminologyCapabilitiesCodeSystemComponent();
4129      if (this.codeSystem == null)
4130        this.codeSystem = new ArrayList<TerminologyCapabilitiesCodeSystemComponent>();
4131      this.codeSystem.add(t);
4132      return t;
4133    }
4134
4135    public TerminologyCapabilities addCodeSystem(TerminologyCapabilitiesCodeSystemComponent t) { //3
4136      if (t == null)
4137        return this;
4138      if (this.codeSystem == null)
4139        this.codeSystem = new ArrayList<TerminologyCapabilitiesCodeSystemComponent>();
4140      this.codeSystem.add(t);
4141      return this;
4142    }
4143
4144    /**
4145     * @return The first repetition of repeating field {@link #codeSystem}, creating it if it does not already exist {3}
4146     */
4147    public TerminologyCapabilitiesCodeSystemComponent getCodeSystemFirstRep() { 
4148      if (getCodeSystem().isEmpty()) {
4149        addCodeSystem();
4150      }
4151      return getCodeSystem().get(0);
4152    }
4153
4154    /**
4155     * @return {@link #expansion} (Information about the [ValueSet/$expand](valueset-operation-expand.html) operation.)
4156     */
4157    public TerminologyCapabilitiesExpansionComponent getExpansion() { 
4158      if (this.expansion == null)
4159        if (Configuration.errorOnAutoCreate())
4160          throw new Error("Attempt to auto-create TerminologyCapabilities.expansion");
4161        else if (Configuration.doAutoCreate())
4162          this.expansion = new TerminologyCapabilitiesExpansionComponent(); // cc
4163      return this.expansion;
4164    }
4165
4166    public boolean hasExpansion() { 
4167      return this.expansion != null && !this.expansion.isEmpty();
4168    }
4169
4170    /**
4171     * @param value {@link #expansion} (Information about the [ValueSet/$expand](valueset-operation-expand.html) operation.)
4172     */
4173    public TerminologyCapabilities setExpansion(TerminologyCapabilitiesExpansionComponent value) { 
4174      this.expansion = value;
4175      return this;
4176    }
4177
4178    /**
4179     * @return {@link #codeSearch} (The degree to which the server supports the code search parameter on ValueSet, if it is supported.). This is the underlying object with id, value and extensions. The accessor "getCodeSearch" gives direct access to the value
4180     */
4181    public Enumeration<CodeSearchSupport> getCodeSearchElement() { 
4182      if (this.codeSearch == null)
4183        if (Configuration.errorOnAutoCreate())
4184          throw new Error("Attempt to auto-create TerminologyCapabilities.codeSearch");
4185        else if (Configuration.doAutoCreate())
4186          this.codeSearch = new Enumeration<CodeSearchSupport>(new CodeSearchSupportEnumFactory()); // bb
4187      return this.codeSearch;
4188    }
4189
4190    public boolean hasCodeSearchElement() { 
4191      return this.codeSearch != null && !this.codeSearch.isEmpty();
4192    }
4193
4194    public boolean hasCodeSearch() { 
4195      return this.codeSearch != null && !this.codeSearch.isEmpty();
4196    }
4197
4198    /**
4199     * @param value {@link #codeSearch} (The degree to which the server supports the code search parameter on ValueSet, if it is supported.). This is the underlying object with id, value and extensions. The accessor "getCodeSearch" gives direct access to the value
4200     */
4201    public TerminologyCapabilities setCodeSearchElement(Enumeration<CodeSearchSupport> value) { 
4202      this.codeSearch = value;
4203      return this;
4204    }
4205
4206    /**
4207     * @return The degree to which the server supports the code search parameter on ValueSet, if it is supported.
4208     */
4209    public CodeSearchSupport getCodeSearch() { 
4210      return this.codeSearch == null ? null : this.codeSearch.getValue();
4211    }
4212
4213    /**
4214     * @param value The degree to which the server supports the code search parameter on ValueSet, if it is supported.
4215     */
4216    public TerminologyCapabilities setCodeSearch(CodeSearchSupport value) { 
4217      if (value == null)
4218        this.codeSearch = null;
4219      else {
4220        if (this.codeSearch == null)
4221          this.codeSearch = new Enumeration<CodeSearchSupport>(new CodeSearchSupportEnumFactory());
4222        this.codeSearch.setValue(value);
4223      }
4224      return this;
4225    }
4226
4227    /**
4228     * @return {@link #validateCode} (Information about the [ValueSet/$validate-code](valueset-operation-validate-code.html) operation.)
4229     */
4230    public TerminologyCapabilitiesValidateCodeComponent getValidateCode() { 
4231      if (this.validateCode == null)
4232        if (Configuration.errorOnAutoCreate())
4233          throw new Error("Attempt to auto-create TerminologyCapabilities.validateCode");
4234        else if (Configuration.doAutoCreate())
4235          this.validateCode = new TerminologyCapabilitiesValidateCodeComponent(); // cc
4236      return this.validateCode;
4237    }
4238
4239    public boolean hasValidateCode() { 
4240      return this.validateCode != null && !this.validateCode.isEmpty();
4241    }
4242
4243    /**
4244     * @param value {@link #validateCode} (Information about the [ValueSet/$validate-code](valueset-operation-validate-code.html) operation.)
4245     */
4246    public TerminologyCapabilities setValidateCode(TerminologyCapabilitiesValidateCodeComponent value) { 
4247      this.validateCode = value;
4248      return this;
4249    }
4250
4251    /**
4252     * @return {@link #translation} (Information about the [ConceptMap/$translate](conceptmap-operation-translate.html) operation.)
4253     */
4254    public TerminologyCapabilitiesTranslationComponent getTranslation() { 
4255      if (this.translation == null)
4256        if (Configuration.errorOnAutoCreate())
4257          throw new Error("Attempt to auto-create TerminologyCapabilities.translation");
4258        else if (Configuration.doAutoCreate())
4259          this.translation = new TerminologyCapabilitiesTranslationComponent(); // cc
4260      return this.translation;
4261    }
4262
4263    public boolean hasTranslation() { 
4264      return this.translation != null && !this.translation.isEmpty();
4265    }
4266
4267    /**
4268     * @param value {@link #translation} (Information about the [ConceptMap/$translate](conceptmap-operation-translate.html) operation.)
4269     */
4270    public TerminologyCapabilities setTranslation(TerminologyCapabilitiesTranslationComponent value) { 
4271      this.translation = value;
4272      return this;
4273    }
4274
4275    /**
4276     * @return {@link #closure} (Whether the $closure operation is supported.)
4277     */
4278    public TerminologyCapabilitiesClosureComponent getClosure() { 
4279      if (this.closure == null)
4280        if (Configuration.errorOnAutoCreate())
4281          throw new Error("Attempt to auto-create TerminologyCapabilities.closure");
4282        else if (Configuration.doAutoCreate())
4283          this.closure = new TerminologyCapabilitiesClosureComponent(); // cc
4284      return this.closure;
4285    }
4286
4287    public boolean hasClosure() { 
4288      return this.closure != null && !this.closure.isEmpty();
4289    }
4290
4291    /**
4292     * @param value {@link #closure} (Whether the $closure operation is supported.)
4293     */
4294    public TerminologyCapabilities setClosure(TerminologyCapabilitiesClosureComponent value) { 
4295      this.closure = value;
4296      return this;
4297    }
4298
4299    /**
4300     * not supported on this implementation
4301     */
4302    @Override
4303    public int getIdentifierMax() { 
4304      return 0;
4305    }
4306    /**
4307     * @return {@link #identifier} (A formal identifier that is used to identify this terminology capabilities when it is represented in other formats, or referenced in a specification, model, design or an instance.)
4308     */
4309    public List<Identifier> getIdentifier() { 
4310      return new ArrayList<>();
4311    }
4312    /**
4313     * @return Returns a reference to <code>this</code> for easy method chaining
4314     */
4315    public TerminologyCapabilities setIdentifier(List<Identifier> theIdentifier) { 
4316      throw new Error("The resource type \"TerminologyCapabilities\" does not implement the property \"identifier\"");
4317    }
4318    public boolean hasIdentifier() { 
4319      return false;
4320    }
4321
4322    public Identifier addIdentifier() { //3
4323      throw new Error("The resource type \"TerminologyCapabilities\" does not implement the property \"identifier\"");
4324    }
4325    public TerminologyCapabilities addIdentifier(Identifier t) { //3
4326      throw new Error("The resource type \"TerminologyCapabilities\" does not implement the property \"identifier\"");
4327    }
4328    /**
4329     * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {2}
4330     */
4331    public Identifier getIdentifierFirstRep() { 
4332      throw new Error("The resource type \"TerminologyCapabilities\" does not implement the property \"identifier\"");
4333    }
4334      protected void listChildren(List<Property> children) {
4335        super.listChildren(children);
4336        children.add(new Property("url", "uri", "An absolute URI that is used to identify this terminology capabilities 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 terminology capabilities is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the terminology capabilities is stored on different servers.", 0, 1, url));
4337        children.add(new Property("version", "string", "The identifier that is used to identify this version of the terminology capabilities when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the terminology capabilities 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));
4338        children.add(new Property("name", "string", "A natural language name identifying the terminology capabilities. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name));
4339        children.add(new Property("title", "string", "A short, descriptive, user-friendly title for the terminology capabilities.", 0, 1, title));
4340        children.add(new Property("status", "code", "The status of this terminology capabilities. Enables tracking the life-cycle of the content.", 0, 1, status));
4341        children.add(new Property("experimental", "boolean", "A Boolean value to indicate that this terminology capabilities is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental));
4342        children.add(new Property("date", "dateTime", "The date  (and optionally time) when the terminology capabilities was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the terminology capabilities changes.", 0, 1, date));
4343        children.add(new Property("publisher", "string", "The name of the organization or individual that published the terminology capabilities.", 0, 1, publisher));
4344        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));
4345        children.add(new Property("description", "markdown", "A free text natural language description of the terminology capabilities from a consumer's perspective. Typically, this is used when the capability statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP.", 0, 1, description));
4346        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 terminology capabilities instances.", 0, java.lang.Integer.MAX_VALUE, useContext));
4347        children.add(new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the terminology capabilities is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction));
4348        children.add(new Property("purpose", "markdown", "Explanation of why this terminology capabilities is needed and why it has been designed as it has.", 0, 1, purpose));
4349        children.add(new Property("copyright", "markdown", "A copyright statement relating to the terminology capabilities and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the terminology capabilities.", 0, 1, copyright));
4350        children.add(new Property("kind", "code", "The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind, not instance of software) or a class of implementation (e.g. a desired purchase).", 0, 1, kind));
4351        children.add(new Property("software", "", "Software that is covered by this terminology capability statement.  It is used when the statement describes the capabilities of a particular software version, independent of an installation.", 0, 1, software));
4352        children.add(new Property("implementation", "", "Identifies a specific implementation instance that is described by the terminology capability statement - i.e. a particular installation, rather than the capabilities of a software program.", 0, 1, implementation));
4353        children.add(new Property("lockedDate", "boolean", "Whether the server supports lockedDate.", 0, 1, lockedDate));
4354        children.add(new Property("codeSystem", "", "Identifies a code system that is supported by the server. If there is a no code system URL, then this declares the general assumptions a client can make about support for any CodeSystem resource.", 0, java.lang.Integer.MAX_VALUE, codeSystem));
4355        children.add(new Property("expansion", "", "Information about the [ValueSet/$expand](valueset-operation-expand.html) operation.", 0, 1, expansion));
4356        children.add(new Property("codeSearch", "code", "The degree to which the server supports the code search parameter on ValueSet, if it is supported.", 0, 1, codeSearch));
4357        children.add(new Property("validateCode", "", "Information about the [ValueSet/$validate-code](valueset-operation-validate-code.html) operation.", 0, 1, validateCode));
4358        children.add(new Property("translation", "", "Information about the [ConceptMap/$translate](conceptmap-operation-translate.html) operation.", 0, 1, translation));
4359        children.add(new Property("closure", "", "Whether the $closure operation is supported.", 0, 1, closure));
4360      }
4361
4362      @Override
4363      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
4364        switch (_hash) {
4365        case 116079: /*url*/  return new Property("url", "uri", "An absolute URI that is used to identify this terminology capabilities 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 terminology capabilities is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the terminology capabilities is stored on different servers.", 0, 1, url);
4366        case 351608024: /*version*/  return new Property("version", "string", "The identifier that is used to identify this version of the terminology capabilities when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the terminology capabilities 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);
4367        case 3373707: /*name*/  return new Property("name", "string", "A natural language name identifying the terminology capabilities. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name);
4368        case 110371416: /*title*/  return new Property("title", "string", "A short, descriptive, user-friendly title for the terminology capabilities.", 0, 1, title);
4369        case -892481550: /*status*/  return new Property("status", "code", "The status of this terminology capabilities. Enables tracking the life-cycle of the content.", 0, 1, status);
4370        case -404562712: /*experimental*/  return new Property("experimental", "boolean", "A Boolean value to indicate that this terminology capabilities is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental);
4371        case 3076014: /*date*/  return new Property("date", "dateTime", "The date  (and optionally time) when the terminology capabilities was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the terminology capabilities changes.", 0, 1, date);
4372        case 1447404028: /*publisher*/  return new Property("publisher", "string", "The name of the organization or individual that published the terminology capabilities.", 0, 1, publisher);
4373        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);
4374        case -1724546052: /*description*/  return new Property("description", "markdown", "A free text natural language description of the terminology capabilities from a consumer's perspective. Typically, this is used when the capability statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP.", 0, 1, description);
4375        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 terminology capabilities instances.", 0, java.lang.Integer.MAX_VALUE, useContext);
4376        case -507075711: /*jurisdiction*/  return new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the terminology capabilities is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction);
4377        case -220463842: /*purpose*/  return new Property("purpose", "markdown", "Explanation of why this terminology capabilities is needed and why it has been designed as it has.", 0, 1, purpose);
4378        case 1522889671: /*copyright*/  return new Property("copyright", "markdown", "A copyright statement relating to the terminology capabilities and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the terminology capabilities.", 0, 1, copyright);
4379        case 3292052: /*kind*/  return new Property("kind", "code", "The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind, not instance of software) or a class of implementation (e.g. a desired purchase).", 0, 1, kind);
4380        case 1319330215: /*software*/  return new Property("software", "", "Software that is covered by this terminology capability statement.  It is used when the statement describes the capabilities of a particular software version, independent of an installation.", 0, 1, software);
4381        case 1683336114: /*implementation*/  return new Property("implementation", "", "Identifies a specific implementation instance that is described by the terminology capability statement - i.e. a particular installation, rather than the capabilities of a software program.", 0, 1, implementation);
4382        case 1391591896: /*lockedDate*/  return new Property("lockedDate", "boolean", "Whether the server supports lockedDate.", 0, 1, lockedDate);
4383        case -916511108: /*codeSystem*/  return new Property("codeSystem", "", "Identifies a code system that is supported by the server. If there is a no code system URL, then this declares the general assumptions a client can make about support for any CodeSystem resource.", 0, java.lang.Integer.MAX_VALUE, codeSystem);
4384        case 17878207: /*expansion*/  return new Property("expansion", "", "Information about the [ValueSet/$expand](valueset-operation-expand.html) operation.", 0, 1, expansion);
4385        case -935519755: /*codeSearch*/  return new Property("codeSearch", "code", "The degree to which the server supports the code search parameter on ValueSet, if it is supported.", 0, 1, codeSearch);
4386        case 1080737827: /*validateCode*/  return new Property("validateCode", "", "Information about the [ValueSet/$validate-code](valueset-operation-validate-code.html) operation.", 0, 1, validateCode);
4387        case -1840647503: /*translation*/  return new Property("translation", "", "Information about the [ConceptMap/$translate](conceptmap-operation-translate.html) operation.", 0, 1, translation);
4388        case 866552379: /*closure*/  return new Property("closure", "", "Whether the $closure operation is supported.", 0, 1, closure);
4389        default: return super.getNamedProperty(_hash, _name, _checkValid);
4390        }
4391
4392      }
4393
4394      @Override
4395      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
4396        switch (hash) {
4397        case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType
4398        case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType
4399        case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType
4400        case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType
4401        case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<PublicationStatus>
4402        case -404562712: /*experimental*/ return this.experimental == null ? new Base[0] : new Base[] {this.experimental}; // BooleanType
4403        case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType
4404        case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // StringType
4405        case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail
4406        case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType
4407        case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext
4408        case -507075711: /*jurisdiction*/ return this.jurisdiction == null ? new Base[0] : this.jurisdiction.toArray(new Base[this.jurisdiction.size()]); // CodeableConcept
4409        case -220463842: /*purpose*/ return this.purpose == null ? new Base[0] : new Base[] {this.purpose}; // MarkdownType
4410        case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // MarkdownType
4411        case 3292052: /*kind*/ return this.kind == null ? new Base[0] : new Base[] {this.kind}; // Enumeration<CapabilityStatementKind>
4412        case 1319330215: /*software*/ return this.software == null ? new Base[0] : new Base[] {this.software}; // TerminologyCapabilitiesSoftwareComponent
4413        case 1683336114: /*implementation*/ return this.implementation == null ? new Base[0] : new Base[] {this.implementation}; // TerminologyCapabilitiesImplementationComponent
4414        case 1391591896: /*lockedDate*/ return this.lockedDate == null ? new Base[0] : new Base[] {this.lockedDate}; // BooleanType
4415        case -916511108: /*codeSystem*/ return this.codeSystem == null ? new Base[0] : this.codeSystem.toArray(new Base[this.codeSystem.size()]); // TerminologyCapabilitiesCodeSystemComponent
4416        case 17878207: /*expansion*/ return this.expansion == null ? new Base[0] : new Base[] {this.expansion}; // TerminologyCapabilitiesExpansionComponent
4417        case -935519755: /*codeSearch*/ return this.codeSearch == null ? new Base[0] : new Base[] {this.codeSearch}; // Enumeration<CodeSearchSupport>
4418        case 1080737827: /*validateCode*/ return this.validateCode == null ? new Base[0] : new Base[] {this.validateCode}; // TerminologyCapabilitiesValidateCodeComponent
4419        case -1840647503: /*translation*/ return this.translation == null ? new Base[0] : new Base[] {this.translation}; // TerminologyCapabilitiesTranslationComponent
4420        case 866552379: /*closure*/ return this.closure == null ? new Base[0] : new Base[] {this.closure}; // TerminologyCapabilitiesClosureComponent
4421        default: return super.getProperty(hash, name, checkValid);
4422        }
4423
4424      }
4425
4426      @Override
4427      public Base setProperty(int hash, String name, Base value) throws FHIRException {
4428        switch (hash) {
4429        case 116079: // url
4430          this.url = TypeConvertor.castToUri(value); // UriType
4431          return value;
4432        case 351608024: // version
4433          this.version = TypeConvertor.castToString(value); // StringType
4434          return value;
4435        case 3373707: // name
4436          this.name = TypeConvertor.castToString(value); // StringType
4437          return value;
4438        case 110371416: // title
4439          this.title = TypeConvertor.castToString(value); // StringType
4440          return value;
4441        case -892481550: // status
4442          value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value));
4443          this.status = (Enumeration) value; // Enumeration<PublicationStatus>
4444          return value;
4445        case -404562712: // experimental
4446          this.experimental = TypeConvertor.castToBoolean(value); // BooleanType
4447          return value;
4448        case 3076014: // date
4449          this.date = TypeConvertor.castToDateTime(value); // DateTimeType
4450          return value;
4451        case 1447404028: // publisher
4452          this.publisher = TypeConvertor.castToString(value); // StringType
4453          return value;
4454        case 951526432: // contact
4455          this.getContact().add(TypeConvertor.castToContactDetail(value)); // ContactDetail
4456          return value;
4457        case -1724546052: // description
4458          this.description = TypeConvertor.castToMarkdown(value); // MarkdownType
4459          return value;
4460        case -669707736: // useContext
4461          this.getUseContext().add(TypeConvertor.castToUsageContext(value)); // UsageContext
4462          return value;
4463        case -507075711: // jurisdiction
4464          this.getJurisdiction().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept
4465          return value;
4466        case -220463842: // purpose
4467          this.purpose = TypeConvertor.castToMarkdown(value); // MarkdownType
4468          return value;
4469        case 1522889671: // copyright
4470          this.copyright = TypeConvertor.castToMarkdown(value); // MarkdownType
4471          return value;
4472        case 3292052: // kind
4473          value = new CapabilityStatementKindEnumFactory().fromType(TypeConvertor.castToCode(value));
4474          this.kind = (Enumeration) value; // Enumeration<CapabilityStatementKind>
4475          return value;
4476        case 1319330215: // software
4477          this.software = (TerminologyCapabilitiesSoftwareComponent) value; // TerminologyCapabilitiesSoftwareComponent
4478          return value;
4479        case 1683336114: // implementation
4480          this.implementation = (TerminologyCapabilitiesImplementationComponent) value; // TerminologyCapabilitiesImplementationComponent
4481          return value;
4482        case 1391591896: // lockedDate
4483          this.lockedDate = TypeConvertor.castToBoolean(value); // BooleanType
4484          return value;
4485        case -916511108: // codeSystem
4486          this.getCodeSystem().add((TerminologyCapabilitiesCodeSystemComponent) value); // TerminologyCapabilitiesCodeSystemComponent
4487          return value;
4488        case 17878207: // expansion
4489          this.expansion = (TerminologyCapabilitiesExpansionComponent) value; // TerminologyCapabilitiesExpansionComponent
4490          return value;
4491        case -935519755: // codeSearch
4492          value = new CodeSearchSupportEnumFactory().fromType(TypeConvertor.castToCode(value));
4493          this.codeSearch = (Enumeration) value; // Enumeration<CodeSearchSupport>
4494          return value;
4495        case 1080737827: // validateCode
4496          this.validateCode = (TerminologyCapabilitiesValidateCodeComponent) value; // TerminologyCapabilitiesValidateCodeComponent
4497          return value;
4498        case -1840647503: // translation
4499          this.translation = (TerminologyCapabilitiesTranslationComponent) value; // TerminologyCapabilitiesTranslationComponent
4500          return value;
4501        case 866552379: // closure
4502          this.closure = (TerminologyCapabilitiesClosureComponent) value; // TerminologyCapabilitiesClosureComponent
4503          return value;
4504        default: return super.setProperty(hash, name, value);
4505        }
4506
4507      }
4508
4509      @Override
4510      public Base setProperty(String name, Base value) throws FHIRException {
4511        if (name.equals("url")) {
4512          this.url = TypeConvertor.castToUri(value); // UriType
4513        } else if (name.equals("version")) {
4514          this.version = TypeConvertor.castToString(value); // StringType
4515        } else if (name.equals("name")) {
4516          this.name = TypeConvertor.castToString(value); // StringType
4517        } else if (name.equals("title")) {
4518          this.title = TypeConvertor.castToString(value); // StringType
4519        } else if (name.equals("status")) {
4520          value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value));
4521          this.status = (Enumeration) value; // Enumeration<PublicationStatus>
4522        } else if (name.equals("experimental")) {
4523          this.experimental = TypeConvertor.castToBoolean(value); // BooleanType
4524        } else if (name.equals("date")) {
4525          this.date = TypeConvertor.castToDateTime(value); // DateTimeType
4526        } else if (name.equals("publisher")) {
4527          this.publisher = TypeConvertor.castToString(value); // StringType
4528        } else if (name.equals("contact")) {
4529          this.getContact().add(TypeConvertor.castToContactDetail(value));
4530        } else if (name.equals("description")) {
4531          this.description = TypeConvertor.castToMarkdown(value); // MarkdownType
4532        } else if (name.equals("useContext")) {
4533          this.getUseContext().add(TypeConvertor.castToUsageContext(value));
4534        } else if (name.equals("jurisdiction")) {
4535          this.getJurisdiction().add(TypeConvertor.castToCodeableConcept(value));
4536        } else if (name.equals("purpose")) {
4537          this.purpose = TypeConvertor.castToMarkdown(value); // MarkdownType
4538        } else if (name.equals("copyright")) {
4539          this.copyright = TypeConvertor.castToMarkdown(value); // MarkdownType
4540        } else if (name.equals("kind")) {
4541          value = new CapabilityStatementKindEnumFactory().fromType(TypeConvertor.castToCode(value));
4542          this.kind = (Enumeration) value; // Enumeration<CapabilityStatementKind>
4543        } else if (name.equals("software")) {
4544          this.software = (TerminologyCapabilitiesSoftwareComponent) value; // TerminologyCapabilitiesSoftwareComponent
4545        } else if (name.equals("implementation")) {
4546          this.implementation = (TerminologyCapabilitiesImplementationComponent) value; // TerminologyCapabilitiesImplementationComponent
4547        } else if (name.equals("lockedDate")) {
4548          this.lockedDate = TypeConvertor.castToBoolean(value); // BooleanType
4549        } else if (name.equals("codeSystem")) {
4550          this.getCodeSystem().add((TerminologyCapabilitiesCodeSystemComponent) value);
4551        } else if (name.equals("expansion")) {
4552          this.expansion = (TerminologyCapabilitiesExpansionComponent) value; // TerminologyCapabilitiesExpansionComponent
4553        } else if (name.equals("codeSearch")) {
4554          value = new CodeSearchSupportEnumFactory().fromType(TypeConvertor.castToCode(value));
4555          this.codeSearch = (Enumeration) value; // Enumeration<CodeSearchSupport>
4556        } else if (name.equals("validateCode")) {
4557          this.validateCode = (TerminologyCapabilitiesValidateCodeComponent) value; // TerminologyCapabilitiesValidateCodeComponent
4558        } else if (name.equals("translation")) {
4559          this.translation = (TerminologyCapabilitiesTranslationComponent) value; // TerminologyCapabilitiesTranslationComponent
4560        } else if (name.equals("closure")) {
4561          this.closure = (TerminologyCapabilitiesClosureComponent) value; // TerminologyCapabilitiesClosureComponent
4562        } else
4563          return super.setProperty(name, value);
4564        return value;
4565      }
4566
4567      @Override
4568      public Base makeProperty(int hash, String name) throws FHIRException {
4569        switch (hash) {
4570        case 116079:  return getUrlElement();
4571        case 351608024:  return getVersionElement();
4572        case 3373707:  return getNameElement();
4573        case 110371416:  return getTitleElement();
4574        case -892481550:  return getStatusElement();
4575        case -404562712:  return getExperimentalElement();
4576        case 3076014:  return getDateElement();
4577        case 1447404028:  return getPublisherElement();
4578        case 951526432:  return addContact(); 
4579        case -1724546052:  return getDescriptionElement();
4580        case -669707736:  return addUseContext(); 
4581        case -507075711:  return addJurisdiction(); 
4582        case -220463842:  return getPurposeElement();
4583        case 1522889671:  return getCopyrightElement();
4584        case 3292052:  return getKindElement();
4585        case 1319330215:  return getSoftware();
4586        case 1683336114:  return getImplementation();
4587        case 1391591896:  return getLockedDateElement();
4588        case -916511108:  return addCodeSystem(); 
4589        case 17878207:  return getExpansion();
4590        case -935519755:  return getCodeSearchElement();
4591        case 1080737827:  return getValidateCode();
4592        case -1840647503:  return getTranslation();
4593        case 866552379:  return getClosure();
4594        default: return super.makeProperty(hash, name);
4595        }
4596
4597      }
4598
4599      @Override
4600      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
4601        switch (hash) {
4602        case 116079: /*url*/ return new String[] {"uri"};
4603        case 351608024: /*version*/ return new String[] {"string"};
4604        case 3373707: /*name*/ return new String[] {"string"};
4605        case 110371416: /*title*/ return new String[] {"string"};
4606        case -892481550: /*status*/ return new String[] {"code"};
4607        case -404562712: /*experimental*/ return new String[] {"boolean"};
4608        case 3076014: /*date*/ return new String[] {"dateTime"};
4609        case 1447404028: /*publisher*/ return new String[] {"string"};
4610        case 951526432: /*contact*/ return new String[] {"ContactDetail"};
4611        case -1724546052: /*description*/ return new String[] {"markdown"};
4612        case -669707736: /*useContext*/ return new String[] {"UsageContext"};
4613        case -507075711: /*jurisdiction*/ return new String[] {"CodeableConcept"};
4614        case -220463842: /*purpose*/ return new String[] {"markdown"};
4615        case 1522889671: /*copyright*/ return new String[] {"markdown"};
4616        case 3292052: /*kind*/ return new String[] {"code"};
4617        case 1319330215: /*software*/ return new String[] {};
4618        case 1683336114: /*implementation*/ return new String[] {};
4619        case 1391591896: /*lockedDate*/ return new String[] {"boolean"};
4620        case -916511108: /*codeSystem*/ return new String[] {};
4621        case 17878207: /*expansion*/ return new String[] {};
4622        case -935519755: /*codeSearch*/ return new String[] {"code"};
4623        case 1080737827: /*validateCode*/ return new String[] {};
4624        case -1840647503: /*translation*/ return new String[] {};
4625        case 866552379: /*closure*/ return new String[] {};
4626        default: return super.getTypesForProperty(hash, name);
4627        }
4628
4629      }
4630
4631      @Override
4632      public Base addChild(String name) throws FHIRException {
4633        if (name.equals("url")) {
4634          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.url");
4635        }
4636        else if (name.equals("version")) {
4637          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.version");
4638        }
4639        else if (name.equals("name")) {
4640          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.name");
4641        }
4642        else if (name.equals("title")) {
4643          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.title");
4644        }
4645        else if (name.equals("status")) {
4646          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.status");
4647        }
4648        else if (name.equals("experimental")) {
4649          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.experimental");
4650        }
4651        else if (name.equals("date")) {
4652          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.date");
4653        }
4654        else if (name.equals("publisher")) {
4655          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.publisher");
4656        }
4657        else if (name.equals("contact")) {
4658          return addContact();
4659        }
4660        else if (name.equals("description")) {
4661          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.description");
4662        }
4663        else if (name.equals("useContext")) {
4664          return addUseContext();
4665        }
4666        else if (name.equals("jurisdiction")) {
4667          return addJurisdiction();
4668        }
4669        else if (name.equals("purpose")) {
4670          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.purpose");
4671        }
4672        else if (name.equals("copyright")) {
4673          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.copyright");
4674        }
4675        else if (name.equals("kind")) {
4676          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.kind");
4677        }
4678        else if (name.equals("software")) {
4679          this.software = new TerminologyCapabilitiesSoftwareComponent();
4680          return this.software;
4681        }
4682        else if (name.equals("implementation")) {
4683          this.implementation = new TerminologyCapabilitiesImplementationComponent();
4684          return this.implementation;
4685        }
4686        else if (name.equals("lockedDate")) {
4687          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.lockedDate");
4688        }
4689        else if (name.equals("codeSystem")) {
4690          return addCodeSystem();
4691        }
4692        else if (name.equals("expansion")) {
4693          this.expansion = new TerminologyCapabilitiesExpansionComponent();
4694          return this.expansion;
4695        }
4696        else if (name.equals("codeSearch")) {
4697          throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSearch");
4698        }
4699        else if (name.equals("validateCode")) {
4700          this.validateCode = new TerminologyCapabilitiesValidateCodeComponent();
4701          return this.validateCode;
4702        }
4703        else if (name.equals("translation")) {
4704          this.translation = new TerminologyCapabilitiesTranslationComponent();
4705          return this.translation;
4706        }
4707        else if (name.equals("closure")) {
4708          this.closure = new TerminologyCapabilitiesClosureComponent();
4709          return this.closure;
4710        }
4711        else
4712          return super.addChild(name);
4713      }
4714
4715  public String fhirType() {
4716    return "TerminologyCapabilities";
4717
4718  }
4719
4720      public TerminologyCapabilities copy() {
4721        TerminologyCapabilities dst = new TerminologyCapabilities();
4722        copyValues(dst);
4723        return dst;
4724      }
4725
4726      public void copyValues(TerminologyCapabilities dst) {
4727        super.copyValues(dst);
4728        dst.url = url == null ? null : url.copy();
4729        dst.version = version == null ? null : version.copy();
4730        dst.name = name == null ? null : name.copy();
4731        dst.title = title == null ? null : title.copy();
4732        dst.status = status == null ? null : status.copy();
4733        dst.experimental = experimental == null ? null : experimental.copy();
4734        dst.date = date == null ? null : date.copy();
4735        dst.publisher = publisher == null ? null : publisher.copy();
4736        if (contact != null) {
4737          dst.contact = new ArrayList<ContactDetail>();
4738          for (ContactDetail i : contact)
4739            dst.contact.add(i.copy());
4740        };
4741        dst.description = description == null ? null : description.copy();
4742        if (useContext != null) {
4743          dst.useContext = new ArrayList<UsageContext>();
4744          for (UsageContext i : useContext)
4745            dst.useContext.add(i.copy());
4746        };
4747        if (jurisdiction != null) {
4748          dst.jurisdiction = new ArrayList<CodeableConcept>();
4749          for (CodeableConcept i : jurisdiction)
4750            dst.jurisdiction.add(i.copy());
4751        };
4752        dst.purpose = purpose == null ? null : purpose.copy();
4753        dst.copyright = copyright == null ? null : copyright.copy();
4754        dst.kind = kind == null ? null : kind.copy();
4755        dst.software = software == null ? null : software.copy();
4756        dst.implementation = implementation == null ? null : implementation.copy();
4757        dst.lockedDate = lockedDate == null ? null : lockedDate.copy();
4758        if (codeSystem != null) {
4759          dst.codeSystem = new ArrayList<TerminologyCapabilitiesCodeSystemComponent>();
4760          for (TerminologyCapabilitiesCodeSystemComponent i : codeSystem)
4761            dst.codeSystem.add(i.copy());
4762        };
4763        dst.expansion = expansion == null ? null : expansion.copy();
4764        dst.codeSearch = codeSearch == null ? null : codeSearch.copy();
4765        dst.validateCode = validateCode == null ? null : validateCode.copy();
4766        dst.translation = translation == null ? null : translation.copy();
4767        dst.closure = closure == null ? null : closure.copy();
4768      }
4769
4770      protected TerminologyCapabilities typedCopy() {
4771        return copy();
4772      }
4773
4774      @Override
4775      public boolean equalsDeep(Base other_) {
4776        if (!super.equalsDeep(other_))
4777          return false;
4778        if (!(other_ instanceof TerminologyCapabilities))
4779          return false;
4780        TerminologyCapabilities o = (TerminologyCapabilities) other_;
4781        return compareDeep(url, o.url, true) && compareDeep(version, o.version, true) && compareDeep(name, o.name, true)
4782           && compareDeep(title, o.title, true) && compareDeep(status, o.status, true) && compareDeep(experimental, o.experimental, true)
4783           && compareDeep(date, o.date, true) && compareDeep(publisher, o.publisher, true) && compareDeep(contact, o.contact, true)
4784           && compareDeep(description, o.description, true) && compareDeep(useContext, o.useContext, true)
4785           && compareDeep(jurisdiction, o.jurisdiction, true) && compareDeep(purpose, o.purpose, true) && compareDeep(copyright, o.copyright, true)
4786           && compareDeep(kind, o.kind, true) && compareDeep(software, o.software, true) && compareDeep(implementation, o.implementation, true)
4787           && compareDeep(lockedDate, o.lockedDate, true) && compareDeep(codeSystem, o.codeSystem, true) && compareDeep(expansion, o.expansion, true)
4788           && compareDeep(codeSearch, o.codeSearch, true) && compareDeep(validateCode, o.validateCode, true)
4789           && compareDeep(translation, o.translation, true) && compareDeep(closure, o.closure, true);
4790      }
4791
4792      @Override
4793      public boolean equalsShallow(Base other_) {
4794        if (!super.equalsShallow(other_))
4795          return false;
4796        if (!(other_ instanceof TerminologyCapabilities))
4797          return false;
4798        TerminologyCapabilities o = (TerminologyCapabilities) other_;
4799        return compareValues(url, o.url, true) && compareValues(version, o.version, true) && compareValues(name, o.name, true)
4800           && compareValues(title, o.title, true) && compareValues(status, o.status, true) && compareValues(experimental, o.experimental, true)
4801           && compareValues(date, o.date, true) && compareValues(publisher, o.publisher, true) && compareValues(description, o.description, true)
4802           && compareValues(purpose, o.purpose, true) && compareValues(copyright, o.copyright, true) && compareValues(kind, o.kind, true)
4803           && compareValues(lockedDate, o.lockedDate, true) && compareValues(codeSearch, o.codeSearch, true);
4804      }
4805
4806      public boolean isEmpty() {
4807        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(url, version, name, title
4808          , status, experimental, date, publisher, contact, description, useContext, jurisdiction
4809          , purpose, copyright, kind, software, implementation, lockedDate, codeSystem, expansion
4810          , codeSearch, validateCode, translation, closure);
4811      }
4812
4813  @Override
4814  public ResourceType getResourceType() {
4815    return ResourceType.TerminologyCapabilities;
4816   }
4817
4818 /**
4819   * Search parameter: <b>context-quantity</b>
4820   * <p>
4821   * Description: <b>Multiple Resources: 
4822
4823* [CapabilityStatement](capabilitystatement.html): A quantity- or range-valued use context assigned to the capability statement
4824* [CodeSystem](codesystem.html): A quantity- or range-valued use context assigned to the code system
4825* [CompartmentDefinition](compartmentdefinition.html): A quantity- or range-valued use context assigned to the compartment definition
4826* [ConceptMap](conceptmap.html): A quantity- or range-valued use context assigned to the concept map
4827* [GraphDefinition](graphdefinition.html): A quantity- or range-valued use context assigned to the graph definition
4828* [ImplementationGuide](implementationguide.html): A quantity- or range-valued use context assigned to the implementation guide
4829* [MessageDefinition](messagedefinition.html): A quantity- or range-valued use context assigned to the message definition
4830* [NamingSystem](namingsystem.html): A quantity- or range-valued use context assigned to the naming system
4831* [OperationDefinition](operationdefinition.html): A quantity- or range-valued use context assigned to the operation definition
4832* [SearchParameter](searchparameter.html): A quantity- or range-valued use context assigned to the search parameter
4833* [StructureDefinition](structuredefinition.html): A quantity- or range-valued use context assigned to the structure definition
4834* [StructureMap](structuremap.html): A quantity- or range-valued use context assigned to the structure map
4835* [TerminologyCapabilities](terminologycapabilities.html): A quantity- or range-valued use context assigned to the terminology capabilities
4836* [ValueSet](valueset.html): A quantity- or range-valued use context assigned to the value set
4837</b><br>
4838   * Type: <b>quantity</b><br>
4839   * 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>
4840   * </p>
4841   */
4842  @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" )
4843  public static final String SP_CONTEXT_QUANTITY = "context-quantity";
4844 /**
4845   * <b>Fluent Client</b> search parameter constant for <b>context-quantity</b>
4846   * <p>
4847   * Description: <b>Multiple Resources: 
4848
4849* [CapabilityStatement](capabilitystatement.html): A quantity- or range-valued use context assigned to the capability statement
4850* [CodeSystem](codesystem.html): A quantity- or range-valued use context assigned to the code system
4851* [CompartmentDefinition](compartmentdefinition.html): A quantity- or range-valued use context assigned to the compartment definition
4852* [ConceptMap](conceptmap.html): A quantity- or range-valued use context assigned to the concept map
4853* [GraphDefinition](graphdefinition.html): A quantity- or range-valued use context assigned to the graph definition
4854* [ImplementationGuide](implementationguide.html): A quantity- or range-valued use context assigned to the implementation guide
4855* [MessageDefinition](messagedefinition.html): A quantity- or range-valued use context assigned to the message definition
4856* [NamingSystem](namingsystem.html): A quantity- or range-valued use context assigned to the naming system
4857* [OperationDefinition](operationdefinition.html): A quantity- or range-valued use context assigned to the operation definition
4858* [SearchParameter](searchparameter.html): A quantity- or range-valued use context assigned to the search parameter
4859* [StructureDefinition](structuredefinition.html): A quantity- or range-valued use context assigned to the structure definition
4860* [StructureMap](structuremap.html): A quantity- or range-valued use context assigned to the structure map
4861* [TerminologyCapabilities](terminologycapabilities.html): A quantity- or range-valued use context assigned to the terminology capabilities
4862* [ValueSet](valueset.html): A quantity- or range-valued use context assigned to the value set
4863</b><br>
4864   * Type: <b>quantity</b><br>
4865   * 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>
4866   * </p>
4867   */
4868  public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY);
4869
4870 /**
4871   * Search parameter: <b>context-type-quantity</b>
4872   * <p>
4873   * Description: <b>Multiple Resources: 
4874
4875* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement
4876* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system
4877* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition
4878* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map
4879* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition
4880* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide
4881* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition
4882* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system
4883* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition
4884* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter
4885* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition
4886* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map
4887* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities
4888* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set
4889</b><br>
4890   * Type: <b>composite</b><br>
4891   * 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>
4892   * </p>
4893   */
4894  @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"} )
4895  public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity";
4896 /**
4897   * <b>Fluent Client</b> search parameter constant for <b>context-type-quantity</b>
4898   * <p>
4899   * Description: <b>Multiple Resources: 
4900
4901* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement
4902* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system
4903* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition
4904* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map
4905* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition
4906* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide
4907* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition
4908* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system
4909* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition
4910* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter
4911* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition
4912* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map
4913* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities
4914* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set
4915</b><br>
4916   * Type: <b>composite</b><br>
4917   * 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>
4918   * </p>
4919   */
4920  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);
4921
4922 /**
4923   * Search parameter: <b>context-type-value</b>
4924   * <p>
4925   * Description: <b>Multiple Resources: 
4926
4927* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement
4928* [CodeSystem](codesystem.html): A use context type and value assigned to the code system
4929* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition
4930* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map
4931* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition
4932* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide
4933* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition
4934* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system
4935* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition
4936* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter
4937* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition
4938* [StructureMap](structuremap.html): A use context type and value assigned to the structure map
4939* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities
4940* [ValueSet](valueset.html): A use context type and value assigned to the value set
4941</b><br>
4942   * Type: <b>composite</b><br>
4943   * 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>
4944   * </p>
4945   */
4946  @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"} )
4947  public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value";
4948 /**
4949   * <b>Fluent Client</b> search parameter constant for <b>context-type-value</b>
4950   * <p>
4951   * Description: <b>Multiple Resources: 
4952
4953* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement
4954* [CodeSystem](codesystem.html): A use context type and value assigned to the code system
4955* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition
4956* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map
4957* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition
4958* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide
4959* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition
4960* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system
4961* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition
4962* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter
4963* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition
4964* [StructureMap](structuremap.html): A use context type and value assigned to the structure map
4965* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities
4966* [ValueSet](valueset.html): A use context type and value assigned to the value set
4967</b><br>
4968   * Type: <b>composite</b><br>
4969   * 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>
4970   * </p>
4971   */
4972  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);
4973
4974 /**
4975   * Search parameter: <b>context-type</b>
4976   * <p>
4977   * Description: <b>Multiple Resources: 
4978
4979* [CapabilityStatement](capabilitystatement.html): A type of use context assigned to the capability statement
4980* [CodeSystem](codesystem.html): A type of use context assigned to the code system
4981* [CompartmentDefinition](compartmentdefinition.html): A type of use context assigned to the compartment definition
4982* [ConceptMap](conceptmap.html): A type of use context assigned to the concept map
4983* [GraphDefinition](graphdefinition.html): A type of use context assigned to the graph definition
4984* [ImplementationGuide](implementationguide.html): A type of use context assigned to the implementation guide
4985* [MessageDefinition](messagedefinition.html): A type of use context assigned to the message definition
4986* [NamingSystem](namingsystem.html): A type of use context assigned to the naming system
4987* [OperationDefinition](operationdefinition.html): A type of use context assigned to the operation definition
4988* [SearchParameter](searchparameter.html): A type of use context assigned to the search parameter
4989* [StructureDefinition](structuredefinition.html): A type of use context assigned to the structure definition
4990* [StructureMap](structuremap.html): A type of use context assigned to the structure map
4991* [TerminologyCapabilities](terminologycapabilities.html): A type of use context assigned to the terminology capabilities
4992* [ValueSet](valueset.html): A type of use context assigned to the value set
4993</b><br>
4994   * Type: <b>token</b><br>
4995   * 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>
4996   * </p>
4997   */
4998  @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" )
4999  public static final String SP_CONTEXT_TYPE = "context-type";
5000 /**
5001   * <b>Fluent Client</b> search parameter constant for <b>context-type</b>
5002   * <p>
5003   * Description: <b>Multiple Resources: 
5004
5005* [CapabilityStatement](capabilitystatement.html): A type of use context assigned to the capability statement
5006* [CodeSystem](codesystem.html): A type of use context assigned to the code system
5007* [CompartmentDefinition](compartmentdefinition.html): A type of use context assigned to the compartment definition
5008* [ConceptMap](conceptmap.html): A type of use context assigned to the concept map
5009* [GraphDefinition](graphdefinition.html): A type of use context assigned to the graph definition
5010* [ImplementationGuide](implementationguide.html): A type of use context assigned to the implementation guide
5011* [MessageDefinition](messagedefinition.html): A type of use context assigned to the message definition
5012* [NamingSystem](namingsystem.html): A type of use context assigned to the naming system
5013* [OperationDefinition](operationdefinition.html): A type of use context assigned to the operation definition
5014* [SearchParameter](searchparameter.html): A type of use context assigned to the search parameter
5015* [StructureDefinition](structuredefinition.html): A type of use context assigned to the structure definition
5016* [StructureMap](structuremap.html): A type of use context assigned to the structure map
5017* [TerminologyCapabilities](terminologycapabilities.html): A type of use context assigned to the terminology capabilities
5018* [ValueSet](valueset.html): A type of use context assigned to the value set
5019</b><br>
5020   * Type: <b>token</b><br>
5021   * 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>
5022   * </p>
5023   */
5024  public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE);
5025
5026 /**
5027   * Search parameter: <b>context</b>
5028   * <p>
5029   * Description: <b>Multiple Resources: 
5030
5031* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement
5032* [CodeSystem](codesystem.html): A use context assigned to the code system
5033* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition
5034* [ConceptMap](conceptmap.html): A use context assigned to the concept map
5035* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition
5036* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide
5037* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition
5038* [NamingSystem](namingsystem.html): A use context assigned to the naming system
5039* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition
5040* [SearchParameter](searchparameter.html): A use context assigned to the search parameter
5041* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition
5042* [StructureMap](structuremap.html): A use context assigned to the structure map
5043* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities
5044* [ValueSet](valueset.html): A use context assigned to the value set
5045</b><br>
5046   * Type: <b>token</b><br>
5047   * 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>
5048   * </p>
5049   */
5050  @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" )
5051  public static final String SP_CONTEXT = "context";
5052 /**
5053   * <b>Fluent Client</b> search parameter constant for <b>context</b>
5054   * <p>
5055   * Description: <b>Multiple Resources: 
5056
5057* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement
5058* [CodeSystem](codesystem.html): A use context assigned to the code system
5059* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition
5060* [ConceptMap](conceptmap.html): A use context assigned to the concept map
5061* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition
5062* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide
5063* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition
5064* [NamingSystem](namingsystem.html): A use context assigned to the naming system
5065* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition
5066* [SearchParameter](searchparameter.html): A use context assigned to the search parameter
5067* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition
5068* [StructureMap](structuremap.html): A use context assigned to the structure map
5069* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities
5070* [ValueSet](valueset.html): A use context assigned to the value set
5071</b><br>
5072   * Type: <b>token</b><br>
5073   * 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>
5074   * </p>
5075   */
5076  public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT);
5077
5078 /**
5079   * Search parameter: <b>date</b>
5080   * <p>
5081   * Description: <b>Multiple Resources: 
5082
5083* [CapabilityStatement](capabilitystatement.html): The capability statement publication date
5084* [CodeSystem](codesystem.html): The code system publication date
5085* [CompartmentDefinition](compartmentdefinition.html): The compartment definition publication date
5086* [ConceptMap](conceptmap.html): The concept map publication date
5087* [GraphDefinition](graphdefinition.html): The graph definition publication date
5088* [ImplementationGuide](implementationguide.html): The implementation guide publication date
5089* [MessageDefinition](messagedefinition.html): The message definition publication date
5090* [NamingSystem](namingsystem.html): The naming system publication date
5091* [OperationDefinition](operationdefinition.html): The operation definition publication date
5092* [SearchParameter](searchparameter.html): The search parameter publication date
5093* [StructureDefinition](structuredefinition.html): The structure definition publication date
5094* [StructureMap](structuremap.html): The structure map publication date
5095* [TerminologyCapabilities](terminologycapabilities.html): The terminology capabilities publication date
5096* [ValueSet](valueset.html): The value set publication date
5097</b><br>
5098   * Type: <b>date</b><br>
5099   * 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>
5100   * </p>
5101   */
5102  @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" )
5103  public static final String SP_DATE = "date";
5104 /**
5105   * <b>Fluent Client</b> search parameter constant for <b>date</b>
5106   * <p>
5107   * Description: <b>Multiple Resources: 
5108
5109* [CapabilityStatement](capabilitystatement.html): The capability statement publication date
5110* [CodeSystem](codesystem.html): The code system publication date
5111* [CompartmentDefinition](compartmentdefinition.html): The compartment definition publication date
5112* [ConceptMap](conceptmap.html): The concept map publication date
5113* [GraphDefinition](graphdefinition.html): The graph definition publication date
5114* [ImplementationGuide](implementationguide.html): The implementation guide publication date
5115* [MessageDefinition](messagedefinition.html): The message definition publication date
5116* [NamingSystem](namingsystem.html): The naming system publication date
5117* [OperationDefinition](operationdefinition.html): The operation definition publication date
5118* [SearchParameter](searchparameter.html): The search parameter publication date
5119* [StructureDefinition](structuredefinition.html): The structure definition publication date
5120* [StructureMap](structuremap.html): The structure map publication date
5121* [TerminologyCapabilities](terminologycapabilities.html): The terminology capabilities publication date
5122* [ValueSet](valueset.html): The value set publication date
5123</b><br>
5124   * Type: <b>date</b><br>
5125   * 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>
5126   * </p>
5127   */
5128  public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE);
5129
5130 /**
5131   * Search parameter: <b>description</b>
5132   * <p>
5133   * Description: <b>Multiple Resources: 
5134
5135* [CapabilityStatement](capabilitystatement.html): The description of the capability statement
5136* [CodeSystem](codesystem.html): The description of the code system
5137* [CompartmentDefinition](compartmentdefinition.html): The description of the compartment definition
5138* [ConceptMap](conceptmap.html): The description of the concept map
5139* [GraphDefinition](graphdefinition.html): The description of the graph definition
5140* [ImplementationGuide](implementationguide.html): The description of the implementation guide
5141* [MessageDefinition](messagedefinition.html): The description of the message definition
5142* [NamingSystem](namingsystem.html): The description of the naming system
5143* [OperationDefinition](operationdefinition.html): The description of the operation definition
5144* [SearchParameter](searchparameter.html): The description of the search parameter
5145* [StructureDefinition](structuredefinition.html): The description of the structure definition
5146* [StructureMap](structuremap.html): The description of the structure map
5147* [TerminologyCapabilities](terminologycapabilities.html): The description of the terminology capabilities
5148* [ValueSet](valueset.html): The description of the value set
5149</b><br>
5150   * Type: <b>string</b><br>
5151   * 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>
5152   * </p>
5153   */
5154  @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" )
5155  public static final String SP_DESCRIPTION = "description";
5156 /**
5157   * <b>Fluent Client</b> search parameter constant for <b>description</b>
5158   * <p>
5159   * Description: <b>Multiple Resources: 
5160
5161* [CapabilityStatement](capabilitystatement.html): The description of the capability statement
5162* [CodeSystem](codesystem.html): The description of the code system
5163* [CompartmentDefinition](compartmentdefinition.html): The description of the compartment definition
5164* [ConceptMap](conceptmap.html): The description of the concept map
5165* [GraphDefinition](graphdefinition.html): The description of the graph definition
5166* [ImplementationGuide](implementationguide.html): The description of the implementation guide
5167* [MessageDefinition](messagedefinition.html): The description of the message definition
5168* [NamingSystem](namingsystem.html): The description of the naming system
5169* [OperationDefinition](operationdefinition.html): The description of the operation definition
5170* [SearchParameter](searchparameter.html): The description of the search parameter
5171* [StructureDefinition](structuredefinition.html): The description of the structure definition
5172* [StructureMap](structuremap.html): The description of the structure map
5173* [TerminologyCapabilities](terminologycapabilities.html): The description of the terminology capabilities
5174* [ValueSet](valueset.html): The description of the value set
5175</b><br>
5176   * Type: <b>string</b><br>
5177   * 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>
5178   * </p>
5179   */
5180  public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION);
5181
5182 /**
5183   * Search parameter: <b>jurisdiction</b>
5184   * <p>
5185   * Description: <b>Multiple Resources: 
5186
5187* [CapabilityStatement](capabilitystatement.html): Intended jurisdiction for the capability statement
5188* [CodeSystem](codesystem.html): Intended jurisdiction for the code system
5189* [ConceptMap](conceptmap.html): Intended jurisdiction for the concept map
5190* [GraphDefinition](graphdefinition.html): Intended jurisdiction for the graph definition
5191* [ImplementationGuide](implementationguide.html): Intended jurisdiction for the implementation guide
5192* [MessageDefinition](messagedefinition.html): Intended jurisdiction for the message definition
5193* [NamingSystem](namingsystem.html): Intended jurisdiction for the naming system
5194* [OperationDefinition](operationdefinition.html): Intended jurisdiction for the operation definition
5195* [SearchParameter](searchparameter.html): Intended jurisdiction for the search parameter
5196* [StructureDefinition](structuredefinition.html): Intended jurisdiction for the structure definition
5197* [StructureMap](structuremap.html): Intended jurisdiction for the structure map
5198* [TerminologyCapabilities](terminologycapabilities.html): Intended jurisdiction for the terminology capabilities
5199* [ValueSet](valueset.html): Intended jurisdiction for the value set
5200</b><br>
5201   * Type: <b>token</b><br>
5202   * 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>
5203   * </p>
5204   */
5205  @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" )
5206  public static final String SP_JURISDICTION = "jurisdiction";
5207 /**
5208   * <b>Fluent Client</b> search parameter constant for <b>jurisdiction</b>
5209   * <p>
5210   * Description: <b>Multiple Resources: 
5211
5212* [CapabilityStatement](capabilitystatement.html): Intended jurisdiction for the capability statement
5213* [CodeSystem](codesystem.html): Intended jurisdiction for the code system
5214* [ConceptMap](conceptmap.html): Intended jurisdiction for the concept map
5215* [GraphDefinition](graphdefinition.html): Intended jurisdiction for the graph definition
5216* [ImplementationGuide](implementationguide.html): Intended jurisdiction for the implementation guide
5217* [MessageDefinition](messagedefinition.html): Intended jurisdiction for the message definition
5218* [NamingSystem](namingsystem.html): Intended jurisdiction for the naming system
5219* [OperationDefinition](operationdefinition.html): Intended jurisdiction for the operation definition
5220* [SearchParameter](searchparameter.html): Intended jurisdiction for the search parameter
5221* [StructureDefinition](structuredefinition.html): Intended jurisdiction for the structure definition
5222* [StructureMap](structuremap.html): Intended jurisdiction for the structure map
5223* [TerminologyCapabilities](terminologycapabilities.html): Intended jurisdiction for the terminology capabilities
5224* [ValueSet](valueset.html): Intended jurisdiction for the value set
5225</b><br>
5226   * Type: <b>token</b><br>
5227   * 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>
5228   * </p>
5229   */
5230  public static final ca.uhn.fhir.rest.gclient.TokenClientParam JURISDICTION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_JURISDICTION);
5231
5232 /**
5233   * Search parameter: <b>name</b>
5234   * <p>
5235   * Description: <b>Multiple Resources: 
5236
5237* [CapabilityStatement](capabilitystatement.html): Computationally friendly name of the capability statement
5238* [CodeSystem](codesystem.html): Computationally friendly name of the code system
5239* [CompartmentDefinition](compartmentdefinition.html): Computationally friendly name of the compartment definition
5240* [ConceptMap](conceptmap.html): Computationally friendly name of the concept map
5241* [GraphDefinition](graphdefinition.html): Computationally friendly name of the graph definition
5242* [ImplementationGuide](implementationguide.html): Computationally friendly name of the implementation guide
5243* [MessageDefinition](messagedefinition.html): Computationally friendly name of the message definition
5244* [NamingSystem](namingsystem.html): Computationally friendly name of the naming system
5245* [OperationDefinition](operationdefinition.html): Computationally friendly name of the operation definition
5246* [SearchParameter](searchparameter.html): Computationally friendly name of the search parameter
5247* [StructureDefinition](structuredefinition.html): Computationally friendly name of the structure definition
5248* [StructureMap](structuremap.html): Computationally friendly name of the structure map
5249* [TerminologyCapabilities](terminologycapabilities.html): Computationally friendly name of the terminology capabilities
5250* [ValueSet](valueset.html): Computationally friendly name of the value set
5251</b><br>
5252   * Type: <b>string</b><br>
5253   * 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>
5254   * </p>
5255   */
5256  @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" )
5257  public static final String SP_NAME = "name";
5258 /**
5259   * <b>Fluent Client</b> search parameter constant for <b>name</b>
5260   * <p>
5261   * Description: <b>Multiple Resources: 
5262
5263* [CapabilityStatement](capabilitystatement.html): Computationally friendly name of the capability statement
5264* [CodeSystem](codesystem.html): Computationally friendly name of the code system
5265* [CompartmentDefinition](compartmentdefinition.html): Computationally friendly name of the compartment definition
5266* [ConceptMap](conceptmap.html): Computationally friendly name of the concept map
5267* [GraphDefinition](graphdefinition.html): Computationally friendly name of the graph definition
5268* [ImplementationGuide](implementationguide.html): Computationally friendly name of the implementation guide
5269* [MessageDefinition](messagedefinition.html): Computationally friendly name of the message definition
5270* [NamingSystem](namingsystem.html): Computationally friendly name of the naming system
5271* [OperationDefinition](operationdefinition.html): Computationally friendly name of the operation definition
5272* [SearchParameter](searchparameter.html): Computationally friendly name of the search parameter
5273* [StructureDefinition](structuredefinition.html): Computationally friendly name of the structure definition
5274* [StructureMap](structuremap.html): Computationally friendly name of the structure map
5275* [TerminologyCapabilities](terminologycapabilities.html): Computationally friendly name of the terminology capabilities
5276* [ValueSet](valueset.html): Computationally friendly name of the value set
5277</b><br>
5278   * Type: <b>string</b><br>
5279   * 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>
5280   * </p>
5281   */
5282  public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME);
5283
5284 /**
5285   * Search parameter: <b>publisher</b>
5286   * <p>
5287   * Description: <b>Multiple Resources: 
5288
5289* [CapabilityStatement](capabilitystatement.html): Name of the publisher of the capability statement
5290* [CodeSystem](codesystem.html): Name of the publisher of the code system
5291* [CompartmentDefinition](compartmentdefinition.html): Name of the publisher of the compartment definition
5292* [ConceptMap](conceptmap.html): Name of the publisher of the concept map
5293* [GraphDefinition](graphdefinition.html): Name of the publisher of the graph definition
5294* [ImplementationGuide](implementationguide.html): Name of the publisher of the implementation guide
5295* [MessageDefinition](messagedefinition.html): Name of the publisher of the message definition
5296* [NamingSystem](namingsystem.html): Name of the publisher of the naming system
5297* [OperationDefinition](operationdefinition.html): Name of the publisher of the operation definition
5298* [SearchParameter](searchparameter.html): Name of the publisher of the search parameter
5299* [StructureDefinition](structuredefinition.html): Name of the publisher of the structure definition
5300* [StructureMap](structuremap.html): Name of the publisher of the structure map
5301* [TerminologyCapabilities](terminologycapabilities.html): Name of the publisher of the terminology capabilities
5302* [ValueSet](valueset.html): Name of the publisher of the value set
5303</b><br>
5304   * Type: <b>string</b><br>
5305   * 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>
5306   * </p>
5307   */
5308  @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" )
5309  public static final String SP_PUBLISHER = "publisher";
5310 /**
5311   * <b>Fluent Client</b> search parameter constant for <b>publisher</b>
5312   * <p>
5313   * Description: <b>Multiple Resources: 
5314
5315* [CapabilityStatement](capabilitystatement.html): Name of the publisher of the capability statement
5316* [CodeSystem](codesystem.html): Name of the publisher of the code system
5317* [CompartmentDefinition](compartmentdefinition.html): Name of the publisher of the compartment definition
5318* [ConceptMap](conceptmap.html): Name of the publisher of the concept map
5319* [GraphDefinition](graphdefinition.html): Name of the publisher of the graph definition
5320* [ImplementationGuide](implementationguide.html): Name of the publisher of the implementation guide
5321* [MessageDefinition](messagedefinition.html): Name of the publisher of the message definition
5322* [NamingSystem](namingsystem.html): Name of the publisher of the naming system
5323* [OperationDefinition](operationdefinition.html): Name of the publisher of the operation definition
5324* [SearchParameter](searchparameter.html): Name of the publisher of the search parameter
5325* [StructureDefinition](structuredefinition.html): Name of the publisher of the structure definition
5326* [StructureMap](structuremap.html): Name of the publisher of the structure map
5327* [TerminologyCapabilities](terminologycapabilities.html): Name of the publisher of the terminology capabilities
5328* [ValueSet](valueset.html): Name of the publisher of the value set
5329</b><br>
5330   * Type: <b>string</b><br>
5331   * 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>
5332   * </p>
5333   */
5334  public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER);
5335
5336 /**
5337   * Search parameter: <b>status</b>
5338   * <p>
5339   * Description: <b>Multiple Resources: 
5340
5341* [CapabilityStatement](capabilitystatement.html): The current status of the capability statement
5342* [CodeSystem](codesystem.html): The current status of the code system
5343* [CompartmentDefinition](compartmentdefinition.html): The current status of the compartment definition
5344* [ConceptMap](conceptmap.html): The current status of the concept map
5345* [GraphDefinition](graphdefinition.html): The current status of the graph definition
5346* [ImplementationGuide](implementationguide.html): The current status of the implementation guide
5347* [MessageDefinition](messagedefinition.html): The current status of the message definition
5348* [NamingSystem](namingsystem.html): The current status of the naming system
5349* [OperationDefinition](operationdefinition.html): The current status of the operation definition
5350* [SearchParameter](searchparameter.html): The current status of the search parameter
5351* [StructureDefinition](structuredefinition.html): The current status of the structure definition
5352* [StructureMap](structuremap.html): The current status of the structure map
5353* [TerminologyCapabilities](terminologycapabilities.html): The current status of the terminology capabilities
5354* [ValueSet](valueset.html): The current status of the value set
5355</b><br>
5356   * Type: <b>token</b><br>
5357   * 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>
5358   * </p>
5359   */
5360  @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" )
5361  public static final String SP_STATUS = "status";
5362 /**
5363   * <b>Fluent Client</b> search parameter constant for <b>status</b>
5364   * <p>
5365   * Description: <b>Multiple Resources: 
5366
5367* [CapabilityStatement](capabilitystatement.html): The current status of the capability statement
5368* [CodeSystem](codesystem.html): The current status of the code system
5369* [CompartmentDefinition](compartmentdefinition.html): The current status of the compartment definition
5370* [ConceptMap](conceptmap.html): The current status of the concept map
5371* [GraphDefinition](graphdefinition.html): The current status of the graph definition
5372* [ImplementationGuide](implementationguide.html): The current status of the implementation guide
5373* [MessageDefinition](messagedefinition.html): The current status of the message definition
5374* [NamingSystem](namingsystem.html): The current status of the naming system
5375* [OperationDefinition](operationdefinition.html): The current status of the operation definition
5376* [SearchParameter](searchparameter.html): The current status of the search parameter
5377* [StructureDefinition](structuredefinition.html): The current status of the structure definition
5378* [StructureMap](structuremap.html): The current status of the structure map
5379* [TerminologyCapabilities](terminologycapabilities.html): The current status of the terminology capabilities
5380* [ValueSet](valueset.html): The current status of the value set
5381</b><br>
5382   * Type: <b>token</b><br>
5383   * 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>
5384   * </p>
5385   */
5386  public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS);
5387
5388 /**
5389   * Search parameter: <b>title</b>
5390   * <p>
5391   * Description: <b>Multiple Resources: 
5392
5393* [CapabilityStatement](capabilitystatement.html): The human-friendly name of the capability statement
5394* [CodeSystem](codesystem.html): The human-friendly name of the code system
5395* [ConceptMap](conceptmap.html): The human-friendly name of the concept map
5396* [ImplementationGuide](implementationguide.html): The human-friendly name of the implementation guide
5397* [MessageDefinition](messagedefinition.html): The human-friendly name of the message definition
5398* [OperationDefinition](operationdefinition.html): The human-friendly name of the operation definition
5399* [StructureDefinition](structuredefinition.html): The human-friendly name of the structure definition
5400* [StructureMap](structuremap.html): The human-friendly name of the structure map
5401* [TerminologyCapabilities](terminologycapabilities.html): The human-friendly name of the terminology capabilities
5402* [ValueSet](valueset.html): The human-friendly name of the value set
5403</b><br>
5404   * Type: <b>string</b><br>
5405   * Path: <b>CapabilityStatement.title | CodeSystem.title | ConceptMap.title | ImplementationGuide.title | MessageDefinition.title | OperationDefinition.title | StructureDefinition.title | StructureMap.title | TerminologyCapabilities.title | ValueSet.title</b><br>
5406   * </p>
5407   */
5408  @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" )
5409  public static final String SP_TITLE = "title";
5410 /**
5411   * <b>Fluent Client</b> search parameter constant for <b>title</b>
5412   * <p>
5413   * Description: <b>Multiple Resources: 
5414
5415* [CapabilityStatement](capabilitystatement.html): The human-friendly name of the capability statement
5416* [CodeSystem](codesystem.html): The human-friendly name of the code system
5417* [ConceptMap](conceptmap.html): The human-friendly name of the concept map
5418* [ImplementationGuide](implementationguide.html): The human-friendly name of the implementation guide
5419* [MessageDefinition](messagedefinition.html): The human-friendly name of the message definition
5420* [OperationDefinition](operationdefinition.html): The human-friendly name of the operation definition
5421* [StructureDefinition](structuredefinition.html): The human-friendly name of the structure definition
5422* [StructureMap](structuremap.html): The human-friendly name of the structure map
5423* [TerminologyCapabilities](terminologycapabilities.html): The human-friendly name of the terminology capabilities
5424* [ValueSet](valueset.html): The human-friendly name of the value set
5425</b><br>
5426   * Type: <b>string</b><br>
5427   * Path: <b>CapabilityStatement.title | CodeSystem.title | ConceptMap.title | ImplementationGuide.title | MessageDefinition.title | OperationDefinition.title | StructureDefinition.title | StructureMap.title | TerminologyCapabilities.title | ValueSet.title</b><br>
5428   * </p>
5429   */
5430  public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE);
5431
5432 /**
5433   * Search parameter: <b>url</b>
5434   * <p>
5435   * Description: <b>Multiple Resources: 
5436
5437* [CapabilityStatement](capabilitystatement.html): The uri that identifies the capability statement
5438* [CodeSystem](codesystem.html): The uri that identifies the code system
5439* [CompartmentDefinition](compartmentdefinition.html): The uri that identifies the compartment definition
5440* [ConceptMap](conceptmap.html): The uri that identifies the concept map
5441* [GraphDefinition](graphdefinition.html): The uri that identifies the graph definition
5442* [ImplementationGuide](implementationguide.html): The uri that identifies the implementation guide
5443* [MessageDefinition](messagedefinition.html): The uri that identifies the message definition
5444* [NamingSystem](namingsystem.html): The uri that identifies the naming system
5445* [OperationDefinition](operationdefinition.html): The uri that identifies the operation definition
5446* [SearchParameter](searchparameter.html): The uri that identifies the search parameter
5447* [StructureDefinition](structuredefinition.html): The uri that identifies the structure definition
5448* [StructureMap](structuremap.html): The uri that identifies the structure map
5449* [TerminologyCapabilities](terminologycapabilities.html): The uri that identifies the terminology capabilities
5450* [ValueSet](valueset.html): The uri that identifies the value set
5451</b><br>
5452   * Type: <b>uri</b><br>
5453   * 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>
5454   * </p>
5455   */
5456  @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" )
5457  public static final String SP_URL = "url";
5458 /**
5459   * <b>Fluent Client</b> search parameter constant for <b>url</b>
5460   * <p>
5461   * Description: <b>Multiple Resources: 
5462
5463* [CapabilityStatement](capabilitystatement.html): The uri that identifies the capability statement
5464* [CodeSystem](codesystem.html): The uri that identifies the code system
5465* [CompartmentDefinition](compartmentdefinition.html): The uri that identifies the compartment definition
5466* [ConceptMap](conceptmap.html): The uri that identifies the concept map
5467* [GraphDefinition](graphdefinition.html): The uri that identifies the graph definition
5468* [ImplementationGuide](implementationguide.html): The uri that identifies the implementation guide
5469* [MessageDefinition](messagedefinition.html): The uri that identifies the message definition
5470* [NamingSystem](namingsystem.html): The uri that identifies the naming system
5471* [OperationDefinition](operationdefinition.html): The uri that identifies the operation definition
5472* [SearchParameter](searchparameter.html): The uri that identifies the search parameter
5473* [StructureDefinition](structuredefinition.html): The uri that identifies the structure definition
5474* [StructureMap](structuremap.html): The uri that identifies the structure map
5475* [TerminologyCapabilities](terminologycapabilities.html): The uri that identifies the terminology capabilities
5476* [ValueSet](valueset.html): The uri that identifies the value set
5477</b><br>
5478   * Type: <b>uri</b><br>
5479   * 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>
5480   * </p>
5481   */
5482  public static final ca.uhn.fhir.rest.gclient.UriClientParam URL = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_URL);
5483
5484 /**
5485   * Search parameter: <b>version</b>
5486   * <p>
5487   * Description: <b>Multiple Resources: 
5488
5489* [CapabilityStatement](capabilitystatement.html): The business version of the capability statement
5490* [CodeSystem](codesystem.html): The business version of the code system
5491* [CompartmentDefinition](compartmentdefinition.html): The business version of the compartment definition
5492* [ConceptMap](conceptmap.html): The business version of the concept map
5493* [GraphDefinition](graphdefinition.html): The business version of the graph definition
5494* [ImplementationGuide](implementationguide.html): The business version of the implementation guide
5495* [MessageDefinition](messagedefinition.html): The business version of the message definition
5496* [NamingSystem](namingsystem.html): The business version of the naming system
5497* [OperationDefinition](operationdefinition.html): The business version of the operation definition
5498* [SearchParameter](searchparameter.html): The business version of the search parameter
5499* [StructureDefinition](structuredefinition.html): The business version of the structure definition
5500* [StructureMap](structuremap.html): The business version of the structure map
5501* [TerminologyCapabilities](terminologycapabilities.html): The business version of the terminology capabilities
5502* [ValueSet](valueset.html): The business version of the value set
5503</b><br>
5504   * Type: <b>token</b><br>
5505   * 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>
5506   * </p>
5507   */
5508  @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" )
5509  public static final String SP_VERSION = "version";
5510 /**
5511   * <b>Fluent Client</b> search parameter constant for <b>version</b>
5512   * <p>
5513   * Description: <b>Multiple Resources: 
5514
5515* [CapabilityStatement](capabilitystatement.html): The business version of the capability statement
5516* [CodeSystem](codesystem.html): The business version of the code system
5517* [CompartmentDefinition](compartmentdefinition.html): The business version of the compartment definition
5518* [ConceptMap](conceptmap.html): The business version of the concept map
5519* [GraphDefinition](graphdefinition.html): The business version of the graph definition
5520* [ImplementationGuide](implementationguide.html): The business version of the implementation guide
5521* [MessageDefinition](messagedefinition.html): The business version of the message definition
5522* [NamingSystem](namingsystem.html): The business version of the naming system
5523* [OperationDefinition](operationdefinition.html): The business version of the operation definition
5524* [SearchParameter](searchparameter.html): The business version of the search parameter
5525* [StructureDefinition](structuredefinition.html): The business version of the structure definition
5526* [StructureMap](structuremap.html): The business version of the structure map
5527* [TerminologyCapabilities](terminologycapabilities.html): The business version of the terminology capabilities
5528* [ValueSet](valueset.html): The business version of the value set
5529</b><br>
5530   * Type: <b>token</b><br>
5531   * 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>
5532   * </p>
5533   */
5534  public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION);
5535
5536
5537}
5538