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