001package org.hl7.fhir.dstu3.model;
002
003/*
004  Copyright (c) 2011+, HL7, Inc.
005  All rights reserved.
006  
007  Redistribution and use in source and binary forms, with or without modification, 
008  are permitted provided that the following conditions are met:
009  
010   * Redistributions of source code must retain the above copyright notice, this 
011     list of conditions and the following disclaimer.
012   * Redistributions in binary form must reproduce the above copyright notice, 
013     this list of conditions and the following disclaimer in the documentation 
014     and/or other materials provided with the distribution.
015   * Neither the name of HL7 nor the names of its contributors may be used to 
016     endorse or promote products derived from this software without specific 
017     prior written permission.
018  
019  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
020  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
021  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
022  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
023  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
024  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
025  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
026  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
027  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
028  POSSIBILITY OF SUCH DAMAGE.
029  
030*/
031
032// Generated on Fri, Mar 16, 2018 15:21+1100 for FHIR v3.0.1
033
034import java.util.*;
035
036import org.hl7.fhir.utilities.Utilities;
037import ca.uhn.fhir.model.api.annotation.ResourceDef;
038import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
039import ca.uhn.fhir.model.api.annotation.Child;
040import ca.uhn.fhir.model.api.annotation.ChildOrder;
041import ca.uhn.fhir.model.api.annotation.Description;
042import ca.uhn.fhir.model.api.annotation.Block;
043import org.hl7.fhir.instance.model.api.*;
044import org.hl7.fhir.exceptions.FHIRException;
045import org.hl7.fhir.exceptions.FHIRFormatError;
046/**
047 * Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively and are not formally or legally recognized; i.e. a collection of entities that isn't an Organization.
048 */
049@ResourceDef(name="Group", profile="http://hl7.org/fhir/StructureDefinition/Group")
050public class Group extends DomainResource {
051
052    public enum GroupType {
053        /**
054         * Group contains "person" Patient resources
055         */
056        PERSON, 
057        /**
058         * Group contains "animal" Patient resources
059         */
060        ANIMAL, 
061        /**
062         * Group contains healthcare practitioner resources
063         */
064        PRACTITIONER, 
065        /**
066         * Group contains Device resources
067         */
068        DEVICE, 
069        /**
070         * Group contains Medication resources
071         */
072        MEDICATION, 
073        /**
074         * Group contains Substance resources
075         */
076        SUBSTANCE, 
077        /**
078         * added to help the parsers with the generic types
079         */
080        NULL;
081        public static GroupType fromCode(String codeString) throws FHIRException {
082            if (codeString == null || "".equals(codeString))
083                return null;
084        if ("person".equals(codeString))
085          return PERSON;
086        if ("animal".equals(codeString))
087          return ANIMAL;
088        if ("practitioner".equals(codeString))
089          return PRACTITIONER;
090        if ("device".equals(codeString))
091          return DEVICE;
092        if ("medication".equals(codeString))
093          return MEDICATION;
094        if ("substance".equals(codeString))
095          return SUBSTANCE;
096        if (Configuration.isAcceptInvalidEnums())
097          return null;
098        else
099          throw new FHIRException("Unknown GroupType code '"+codeString+"'");
100        }
101        public String toCode() {
102          switch (this) {
103            case PERSON: return "person";
104            case ANIMAL: return "animal";
105            case PRACTITIONER: return "practitioner";
106            case DEVICE: return "device";
107            case MEDICATION: return "medication";
108            case SUBSTANCE: return "substance";
109            default: return "?";
110          }
111        }
112        public String getSystem() {
113          switch (this) {
114            case PERSON: return "http://hl7.org/fhir/group-type";
115            case ANIMAL: return "http://hl7.org/fhir/group-type";
116            case PRACTITIONER: return "http://hl7.org/fhir/group-type";
117            case DEVICE: return "http://hl7.org/fhir/group-type";
118            case MEDICATION: return "http://hl7.org/fhir/group-type";
119            case SUBSTANCE: return "http://hl7.org/fhir/group-type";
120            default: return "?";
121          }
122        }
123        public String getDefinition() {
124          switch (this) {
125            case PERSON: return "Group contains \"person\" Patient resources";
126            case ANIMAL: return "Group contains \"animal\" Patient resources";
127            case PRACTITIONER: return "Group contains healthcare practitioner resources";
128            case DEVICE: return "Group contains Device resources";
129            case MEDICATION: return "Group contains Medication resources";
130            case SUBSTANCE: return "Group contains Substance resources";
131            default: return "?";
132          }
133        }
134        public String getDisplay() {
135          switch (this) {
136            case PERSON: return "Person";
137            case ANIMAL: return "Animal";
138            case PRACTITIONER: return "Practitioner";
139            case DEVICE: return "Device";
140            case MEDICATION: return "Medication";
141            case SUBSTANCE: return "Substance";
142            default: return "?";
143          }
144        }
145    }
146
147  public static class GroupTypeEnumFactory implements EnumFactory<GroupType> {
148    public GroupType fromCode(String codeString) throws IllegalArgumentException {
149      if (codeString == null || "".equals(codeString))
150            if (codeString == null || "".equals(codeString))
151                return null;
152        if ("person".equals(codeString))
153          return GroupType.PERSON;
154        if ("animal".equals(codeString))
155          return GroupType.ANIMAL;
156        if ("practitioner".equals(codeString))
157          return GroupType.PRACTITIONER;
158        if ("device".equals(codeString))
159          return GroupType.DEVICE;
160        if ("medication".equals(codeString))
161          return GroupType.MEDICATION;
162        if ("substance".equals(codeString))
163          return GroupType.SUBSTANCE;
164        throw new IllegalArgumentException("Unknown GroupType code '"+codeString+"'");
165        }
166        public Enumeration<GroupType> fromType(Base code) throws FHIRException {
167          if (code == null)
168            return null;
169          if (code.isEmpty())
170            return new Enumeration<GroupType>(this);
171          String codeString = ((PrimitiveType) code).asStringValue();
172          if (codeString == null || "".equals(codeString))
173            return null;
174        if ("person".equals(codeString))
175          return new Enumeration<GroupType>(this, GroupType.PERSON);
176        if ("animal".equals(codeString))
177          return new Enumeration<GroupType>(this, GroupType.ANIMAL);
178        if ("practitioner".equals(codeString))
179          return new Enumeration<GroupType>(this, GroupType.PRACTITIONER);
180        if ("device".equals(codeString))
181          return new Enumeration<GroupType>(this, GroupType.DEVICE);
182        if ("medication".equals(codeString))
183          return new Enumeration<GroupType>(this, GroupType.MEDICATION);
184        if ("substance".equals(codeString))
185          return new Enumeration<GroupType>(this, GroupType.SUBSTANCE);
186        throw new FHIRException("Unknown GroupType code '"+codeString+"'");
187        }
188    public String toCode(GroupType code) {
189      if (code == GroupType.PERSON)
190        return "person";
191      if (code == GroupType.ANIMAL)
192        return "animal";
193      if (code == GroupType.PRACTITIONER)
194        return "practitioner";
195      if (code == GroupType.DEVICE)
196        return "device";
197      if (code == GroupType.MEDICATION)
198        return "medication";
199      if (code == GroupType.SUBSTANCE)
200        return "substance";
201      return "?";
202      }
203    public String toSystem(GroupType code) {
204      return code.getSystem();
205      }
206    }
207
208    @Block()
209    public static class GroupCharacteristicComponent extends BackboneElement implements IBaseBackboneElement {
210        /**
211         * A code that identifies the kind of trait being asserted.
212         */
213        @Child(name = "code", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=false)
214        @Description(shortDefinition="Kind of characteristic", formalDefinition="A code that identifies the kind of trait being asserted." )
215        protected CodeableConcept code;
216
217        /**
218         * The value of the trait that holds (or does not hold - see 'exclude') for members of the group.
219         */
220        @Child(name = "value", type = {CodeableConcept.class, BooleanType.class, Quantity.class, Range.class}, order=2, min=1, max=1, modifier=false, summary=false)
221        @Description(shortDefinition="Value held by characteristic", formalDefinition="The value of the trait that holds (or does not hold - see 'exclude') for members of the group." )
222        protected Type value;
223
224        /**
225         * If true, indicates the characteristic is one that is NOT held by members of the group.
226         */
227        @Child(name = "exclude", type = {BooleanType.class}, order=3, min=1, max=1, modifier=true, summary=false)
228        @Description(shortDefinition="Group includes or excludes", formalDefinition="If true, indicates the characteristic is one that is NOT held by members of the group." )
229        protected BooleanType exclude;
230
231        /**
232         * The period over which the characteristic is tested; e.g. the patient had an operation during the month of June.
233         */
234        @Child(name = "period", type = {Period.class}, order=4, min=0, max=1, modifier=false, summary=false)
235        @Description(shortDefinition="Period over which characteristic is tested", formalDefinition="The period over which the characteristic is tested; e.g. the patient had an operation during the month of June." )
236        protected Period period;
237
238        private static final long serialVersionUID = -1000688967L;
239
240    /**
241     * Constructor
242     */
243      public GroupCharacteristicComponent() {
244        super();
245      }
246
247    /**
248     * Constructor
249     */
250      public GroupCharacteristicComponent(CodeableConcept code, Type value, BooleanType exclude) {
251        super();
252        this.code = code;
253        this.value = value;
254        this.exclude = exclude;
255      }
256
257        /**
258         * @return {@link #code} (A code that identifies the kind of trait being asserted.)
259         */
260        public CodeableConcept getCode() { 
261          if (this.code == null)
262            if (Configuration.errorOnAutoCreate())
263              throw new Error("Attempt to auto-create GroupCharacteristicComponent.code");
264            else if (Configuration.doAutoCreate())
265              this.code = new CodeableConcept(); // cc
266          return this.code;
267        }
268
269        public boolean hasCode() { 
270          return this.code != null && !this.code.isEmpty();
271        }
272
273        /**
274         * @param value {@link #code} (A code that identifies the kind of trait being asserted.)
275         */
276        public GroupCharacteristicComponent setCode(CodeableConcept value)  { 
277          this.code = value;
278          return this;
279        }
280
281        /**
282         * @return {@link #value} (The value of the trait that holds (or does not hold - see 'exclude') for members of the group.)
283         */
284        public Type getValue() { 
285          return this.value;
286        }
287
288        /**
289         * @return {@link #value} (The value of the trait that holds (or does not hold - see 'exclude') for members of the group.)
290         */
291        public CodeableConcept getValueCodeableConcept() throws FHIRException { 
292          if (this.value == null)
293            return null;
294          if (!(this.value instanceof CodeableConcept))
295            throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.value.getClass().getName()+" was encountered");
296          return (CodeableConcept) this.value;
297        }
298
299        public boolean hasValueCodeableConcept() { 
300          return this != null && this.value instanceof CodeableConcept;
301        }
302
303        /**
304         * @return {@link #value} (The value of the trait that holds (or does not hold - see 'exclude') for members of the group.)
305         */
306        public BooleanType getValueBooleanType() throws FHIRException { 
307          if (this.value == null)
308            return null;
309          if (!(this.value instanceof BooleanType))
310            throw new FHIRException("Type mismatch: the type BooleanType was expected, but "+this.value.getClass().getName()+" was encountered");
311          return (BooleanType) this.value;
312        }
313
314        public boolean hasValueBooleanType() { 
315          return this != null && this.value instanceof BooleanType;
316        }
317
318        /**
319         * @return {@link #value} (The value of the trait that holds (or does not hold - see 'exclude') for members of the group.)
320         */
321        public Quantity getValueQuantity() throws FHIRException { 
322          if (this.value == null)
323            return null;
324          if (!(this.value instanceof Quantity))
325            throw new FHIRException("Type mismatch: the type Quantity was expected, but "+this.value.getClass().getName()+" was encountered");
326          return (Quantity) this.value;
327        }
328
329        public boolean hasValueQuantity() { 
330          return this != null && this.value instanceof Quantity;
331        }
332
333        /**
334         * @return {@link #value} (The value of the trait that holds (or does not hold - see 'exclude') for members of the group.)
335         */
336        public Range getValueRange() throws FHIRException { 
337          if (this.value == null)
338            return null;
339          if (!(this.value instanceof Range))
340            throw new FHIRException("Type mismatch: the type Range was expected, but "+this.value.getClass().getName()+" was encountered");
341          return (Range) this.value;
342        }
343
344        public boolean hasValueRange() { 
345          return this != null && this.value instanceof Range;
346        }
347
348        public boolean hasValue() { 
349          return this.value != null && !this.value.isEmpty();
350        }
351
352        /**
353         * @param value {@link #value} (The value of the trait that holds (or does not hold - see 'exclude') for members of the group.)
354         */
355        public GroupCharacteristicComponent setValue(Type value) throws FHIRFormatError { 
356          if (value != null && !(value instanceof CodeableConcept || value instanceof BooleanType || value instanceof Quantity || value instanceof Range))
357            throw new FHIRFormatError("Not the right type for Group.characteristic.value[x]: "+value.fhirType());
358          this.value = value;
359          return this;
360        }
361
362        /**
363         * @return {@link #exclude} (If true, indicates the characteristic is one that is NOT held by members of the group.). This is the underlying object with id, value and extensions. The accessor "getExclude" gives direct access to the value
364         */
365        public BooleanType getExcludeElement() { 
366          if (this.exclude == null)
367            if (Configuration.errorOnAutoCreate())
368              throw new Error("Attempt to auto-create GroupCharacteristicComponent.exclude");
369            else if (Configuration.doAutoCreate())
370              this.exclude = new BooleanType(); // bb
371          return this.exclude;
372        }
373
374        public boolean hasExcludeElement() { 
375          return this.exclude != null && !this.exclude.isEmpty();
376        }
377
378        public boolean hasExclude() { 
379          return this.exclude != null && !this.exclude.isEmpty();
380        }
381
382        /**
383         * @param value {@link #exclude} (If true, indicates the characteristic is one that is NOT held by members of the group.). This is the underlying object with id, value and extensions. The accessor "getExclude" gives direct access to the value
384         */
385        public GroupCharacteristicComponent setExcludeElement(BooleanType value) { 
386          this.exclude = value;
387          return this;
388        }
389
390        /**
391         * @return If true, indicates the characteristic is one that is NOT held by members of the group.
392         */
393        public boolean getExclude() { 
394          return this.exclude == null || this.exclude.isEmpty() ? false : this.exclude.getValue();
395        }
396
397        /**
398         * @param value If true, indicates the characteristic is one that is NOT held by members of the group.
399         */
400        public GroupCharacteristicComponent setExclude(boolean value) { 
401            if (this.exclude == null)
402              this.exclude = new BooleanType();
403            this.exclude.setValue(value);
404          return this;
405        }
406
407        /**
408         * @return {@link #period} (The period over which the characteristic is tested; e.g. the patient had an operation during the month of June.)
409         */
410        public Period getPeriod() { 
411          if (this.period == null)
412            if (Configuration.errorOnAutoCreate())
413              throw new Error("Attempt to auto-create GroupCharacteristicComponent.period");
414            else if (Configuration.doAutoCreate())
415              this.period = new Period(); // cc
416          return this.period;
417        }
418
419        public boolean hasPeriod() { 
420          return this.period != null && !this.period.isEmpty();
421        }
422
423        /**
424         * @param value {@link #period} (The period over which the characteristic is tested; e.g. the patient had an operation during the month of June.)
425         */
426        public GroupCharacteristicComponent setPeriod(Period value)  { 
427          this.period = value;
428          return this;
429        }
430
431        protected void listChildren(List<Property> children) {
432          super.listChildren(children);
433          children.add(new Property("code", "CodeableConcept", "A code that identifies the kind of trait being asserted.", 0, 1, code));
434          children.add(new Property("value[x]", "CodeableConcept|boolean|Quantity|Range", "The value of the trait that holds (or does not hold - see 'exclude') for members of the group.", 0, 1, value));
435          children.add(new Property("exclude", "boolean", "If true, indicates the characteristic is one that is NOT held by members of the group.", 0, 1, exclude));
436          children.add(new Property("period", "Period", "The period over which the characteristic is tested; e.g. the patient had an operation during the month of June.", 0, 1, period));
437        }
438
439        @Override
440        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
441          switch (_hash) {
442          case 3059181: /*code*/  return new Property("code", "CodeableConcept", "A code that identifies the kind of trait being asserted.", 0, 1, code);
443          case -1410166417: /*value[x]*/  return new Property("value[x]", "CodeableConcept|boolean|Quantity|Range", "The value of the trait that holds (or does not hold - see 'exclude') for members of the group.", 0, 1, value);
444          case 111972721: /*value*/  return new Property("value[x]", "CodeableConcept|boolean|Quantity|Range", "The value of the trait that holds (or does not hold - see 'exclude') for members of the group.", 0, 1, value);
445          case 924902896: /*valueCodeableConcept*/  return new Property("value[x]", "CodeableConcept|boolean|Quantity|Range", "The value of the trait that holds (or does not hold - see 'exclude') for members of the group.", 0, 1, value);
446          case 733421943: /*valueBoolean*/  return new Property("value[x]", "CodeableConcept|boolean|Quantity|Range", "The value of the trait that holds (or does not hold - see 'exclude') for members of the group.", 0, 1, value);
447          case -2029823716: /*valueQuantity*/  return new Property("value[x]", "CodeableConcept|boolean|Quantity|Range", "The value of the trait that holds (or does not hold - see 'exclude') for members of the group.", 0, 1, value);
448          case 2030761548: /*valueRange*/  return new Property("value[x]", "CodeableConcept|boolean|Quantity|Range", "The value of the trait that holds (or does not hold - see 'exclude') for members of the group.", 0, 1, value);
449          case -1321148966: /*exclude*/  return new Property("exclude", "boolean", "If true, indicates the characteristic is one that is NOT held by members of the group.", 0, 1, exclude);
450          case -991726143: /*period*/  return new Property("period", "Period", "The period over which the characteristic is tested; e.g. the patient had an operation during the month of June.", 0, 1, period);
451          default: return super.getNamedProperty(_hash, _name, _checkValid);
452          }
453
454        }
455
456      @Override
457      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
458        switch (hash) {
459        case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept
460        case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // Type
461        case -1321148966: /*exclude*/ return this.exclude == null ? new Base[0] : new Base[] {this.exclude}; // BooleanType
462        case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period
463        default: return super.getProperty(hash, name, checkValid);
464        }
465
466      }
467
468      @Override
469      public Base setProperty(int hash, String name, Base value) throws FHIRException {
470        switch (hash) {
471        case 3059181: // code
472          this.code = castToCodeableConcept(value); // CodeableConcept
473          return value;
474        case 111972721: // value
475          this.value = castToType(value); // Type
476          return value;
477        case -1321148966: // exclude
478          this.exclude = castToBoolean(value); // BooleanType
479          return value;
480        case -991726143: // period
481          this.period = castToPeriod(value); // Period
482          return value;
483        default: return super.setProperty(hash, name, value);
484        }
485
486      }
487
488      @Override
489      public Base setProperty(String name, Base value) throws FHIRException {
490        if (name.equals("code")) {
491          this.code = castToCodeableConcept(value); // CodeableConcept
492        } else if (name.equals("value[x]")) {
493          this.value = castToType(value); // Type
494        } else if (name.equals("exclude")) {
495          this.exclude = castToBoolean(value); // BooleanType
496        } else if (name.equals("period")) {
497          this.period = castToPeriod(value); // Period
498        } else
499          return super.setProperty(name, value);
500        return value;
501      }
502
503      @Override
504      public Base makeProperty(int hash, String name) throws FHIRException {
505        switch (hash) {
506        case 3059181:  return getCode(); 
507        case -1410166417:  return getValue(); 
508        case 111972721:  return getValue(); 
509        case -1321148966:  return getExcludeElement();
510        case -991726143:  return getPeriod(); 
511        default: return super.makeProperty(hash, name);
512        }
513
514      }
515
516      @Override
517      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
518        switch (hash) {
519        case 3059181: /*code*/ return new String[] {"CodeableConcept"};
520        case 111972721: /*value*/ return new String[] {"CodeableConcept", "boolean", "Quantity", "Range"};
521        case -1321148966: /*exclude*/ return new String[] {"boolean"};
522        case -991726143: /*period*/ return new String[] {"Period"};
523        default: return super.getTypesForProperty(hash, name);
524        }
525
526      }
527
528      @Override
529      public Base addChild(String name) throws FHIRException {
530        if (name.equals("code")) {
531          this.code = new CodeableConcept();
532          return this.code;
533        }
534        else if (name.equals("valueCodeableConcept")) {
535          this.value = new CodeableConcept();
536          return this.value;
537        }
538        else if (name.equals("valueBoolean")) {
539          this.value = new BooleanType();
540          return this.value;
541        }
542        else if (name.equals("valueQuantity")) {
543          this.value = new Quantity();
544          return this.value;
545        }
546        else if (name.equals("valueRange")) {
547          this.value = new Range();
548          return this.value;
549        }
550        else if (name.equals("exclude")) {
551          throw new FHIRException("Cannot call addChild on a primitive type Group.exclude");
552        }
553        else if (name.equals("period")) {
554          this.period = new Period();
555          return this.period;
556        }
557        else
558          return super.addChild(name);
559      }
560
561      public GroupCharacteristicComponent copy() {
562        GroupCharacteristicComponent dst = new GroupCharacteristicComponent();
563        copyValues(dst);
564        dst.code = code == null ? null : code.copy();
565        dst.value = value == null ? null : value.copy();
566        dst.exclude = exclude == null ? null : exclude.copy();
567        dst.period = period == null ? null : period.copy();
568        return dst;
569      }
570
571      @Override
572      public boolean equalsDeep(Base other_) {
573        if (!super.equalsDeep(other_))
574          return false;
575        if (!(other_ instanceof GroupCharacteristicComponent))
576          return false;
577        GroupCharacteristicComponent o = (GroupCharacteristicComponent) other_;
578        return compareDeep(code, o.code, true) && compareDeep(value, o.value, true) && compareDeep(exclude, o.exclude, true)
579           && compareDeep(period, o.period, true);
580      }
581
582      @Override
583      public boolean equalsShallow(Base other_) {
584        if (!super.equalsShallow(other_))
585          return false;
586        if (!(other_ instanceof GroupCharacteristicComponent))
587          return false;
588        GroupCharacteristicComponent o = (GroupCharacteristicComponent) other_;
589        return compareValues(exclude, o.exclude, true);
590      }
591
592      public boolean isEmpty() {
593        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, value, exclude, period
594          );
595      }
596
597  public String fhirType() {
598    return "Group.characteristic";
599
600  }
601
602  }
603
604    @Block()
605    public static class GroupMemberComponent extends BackboneElement implements IBaseBackboneElement {
606        /**
607         * A reference to the entity that is a member of the group. Must be consistent with Group.type.
608         */
609        @Child(name = "entity", type = {Patient.class, Practitioner.class, Device.class, Medication.class, Substance.class}, order=1, min=1, max=1, modifier=false, summary=false)
610        @Description(shortDefinition="Reference to the group member", formalDefinition="A reference to the entity that is a member of the group. Must be consistent with Group.type." )
611        protected Reference entity;
612
613        /**
614         * The actual object that is the target of the reference (A reference to the entity that is a member of the group. Must be consistent with Group.type.)
615         */
616        protected Resource entityTarget;
617
618        /**
619         * The period that the member was in the group, if known.
620         */
621        @Child(name = "period", type = {Period.class}, order=2, min=0, max=1, modifier=false, summary=false)
622        @Description(shortDefinition="Period member belonged to the group", formalDefinition="The period that the member was in the group, if known." )
623        protected Period period;
624
625        /**
626         * A flag to indicate that the member is no longer in the group, but previously may have been a member.
627         */
628        @Child(name = "inactive", type = {BooleanType.class}, order=3, min=0, max=1, modifier=false, summary=false)
629        @Description(shortDefinition="If member is no longer in group", formalDefinition="A flag to indicate that the member is no longer in the group, but previously may have been a member." )
630        protected BooleanType inactive;
631
632        private static final long serialVersionUID = -333869055L;
633
634    /**
635     * Constructor
636     */
637      public GroupMemberComponent() {
638        super();
639      }
640
641    /**
642     * Constructor
643     */
644      public GroupMemberComponent(Reference entity) {
645        super();
646        this.entity = entity;
647      }
648
649        /**
650         * @return {@link #entity} (A reference to the entity that is a member of the group. Must be consistent with Group.type.)
651         */
652        public Reference getEntity() { 
653          if (this.entity == null)
654            if (Configuration.errorOnAutoCreate())
655              throw new Error("Attempt to auto-create GroupMemberComponent.entity");
656            else if (Configuration.doAutoCreate())
657              this.entity = new Reference(); // cc
658          return this.entity;
659        }
660
661        public boolean hasEntity() { 
662          return this.entity != null && !this.entity.isEmpty();
663        }
664
665        /**
666         * @param value {@link #entity} (A reference to the entity that is a member of the group. Must be consistent with Group.type.)
667         */
668        public GroupMemberComponent setEntity(Reference value)  { 
669          this.entity = value;
670          return this;
671        }
672
673        /**
674         * @return {@link #entity} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (A reference to the entity that is a member of the group. Must be consistent with Group.type.)
675         */
676        public Resource getEntityTarget() { 
677          return this.entityTarget;
678        }
679
680        /**
681         * @param value {@link #entity} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (A reference to the entity that is a member of the group. Must be consistent with Group.type.)
682         */
683        public GroupMemberComponent setEntityTarget(Resource value) { 
684          this.entityTarget = value;
685          return this;
686        }
687
688        /**
689         * @return {@link #period} (The period that the member was in the group, if known.)
690         */
691        public Period getPeriod() { 
692          if (this.period == null)
693            if (Configuration.errorOnAutoCreate())
694              throw new Error("Attempt to auto-create GroupMemberComponent.period");
695            else if (Configuration.doAutoCreate())
696              this.period = new Period(); // cc
697          return this.period;
698        }
699
700        public boolean hasPeriod() { 
701          return this.period != null && !this.period.isEmpty();
702        }
703
704        /**
705         * @param value {@link #period} (The period that the member was in the group, if known.)
706         */
707        public GroupMemberComponent setPeriod(Period value)  { 
708          this.period = value;
709          return this;
710        }
711
712        /**
713         * @return {@link #inactive} (A flag to indicate that the member is no longer in the group, but previously may have been a member.). This is the underlying object with id, value and extensions. The accessor "getInactive" gives direct access to the value
714         */
715        public BooleanType getInactiveElement() { 
716          if (this.inactive == null)
717            if (Configuration.errorOnAutoCreate())
718              throw new Error("Attempt to auto-create GroupMemberComponent.inactive");
719            else if (Configuration.doAutoCreate())
720              this.inactive = new BooleanType(); // bb
721          return this.inactive;
722        }
723
724        public boolean hasInactiveElement() { 
725          return this.inactive != null && !this.inactive.isEmpty();
726        }
727
728        public boolean hasInactive() { 
729          return this.inactive != null && !this.inactive.isEmpty();
730        }
731
732        /**
733         * @param value {@link #inactive} (A flag to indicate that the member is no longer in the group, but previously may have been a member.). This is the underlying object with id, value and extensions. The accessor "getInactive" gives direct access to the value
734         */
735        public GroupMemberComponent setInactiveElement(BooleanType value) { 
736          this.inactive = value;
737          return this;
738        }
739
740        /**
741         * @return A flag to indicate that the member is no longer in the group, but previously may have been a member.
742         */
743        public boolean getInactive() { 
744          return this.inactive == null || this.inactive.isEmpty() ? false : this.inactive.getValue();
745        }
746
747        /**
748         * @param value A flag to indicate that the member is no longer in the group, but previously may have been a member.
749         */
750        public GroupMemberComponent setInactive(boolean value) { 
751            if (this.inactive == null)
752              this.inactive = new BooleanType();
753            this.inactive.setValue(value);
754          return this;
755        }
756
757        protected void listChildren(List<Property> children) {
758          super.listChildren(children);
759          children.add(new Property("entity", "Reference(Patient|Practitioner|Device|Medication|Substance)", "A reference to the entity that is a member of the group. Must be consistent with Group.type.", 0, 1, entity));
760          children.add(new Property("period", "Period", "The period that the member was in the group, if known.", 0, 1, period));
761          children.add(new Property("inactive", "boolean", "A flag to indicate that the member is no longer in the group, but previously may have been a member.", 0, 1, inactive));
762        }
763
764        @Override
765        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
766          switch (_hash) {
767          case -1298275357: /*entity*/  return new Property("entity", "Reference(Patient|Practitioner|Device|Medication|Substance)", "A reference to the entity that is a member of the group. Must be consistent with Group.type.", 0, 1, entity);
768          case -991726143: /*period*/  return new Property("period", "Period", "The period that the member was in the group, if known.", 0, 1, period);
769          case 24665195: /*inactive*/  return new Property("inactive", "boolean", "A flag to indicate that the member is no longer in the group, but previously may have been a member.", 0, 1, inactive);
770          default: return super.getNamedProperty(_hash, _name, _checkValid);
771          }
772
773        }
774
775      @Override
776      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
777        switch (hash) {
778        case -1298275357: /*entity*/ return this.entity == null ? new Base[0] : new Base[] {this.entity}; // Reference
779        case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period
780        case 24665195: /*inactive*/ return this.inactive == null ? new Base[0] : new Base[] {this.inactive}; // BooleanType
781        default: return super.getProperty(hash, name, checkValid);
782        }
783
784      }
785
786      @Override
787      public Base setProperty(int hash, String name, Base value) throws FHIRException {
788        switch (hash) {
789        case -1298275357: // entity
790          this.entity = castToReference(value); // Reference
791          return value;
792        case -991726143: // period
793          this.period = castToPeriod(value); // Period
794          return value;
795        case 24665195: // inactive
796          this.inactive = castToBoolean(value); // BooleanType
797          return value;
798        default: return super.setProperty(hash, name, value);
799        }
800
801      }
802
803      @Override
804      public Base setProperty(String name, Base value) throws FHIRException {
805        if (name.equals("entity")) {
806          this.entity = castToReference(value); // Reference
807        } else if (name.equals("period")) {
808          this.period = castToPeriod(value); // Period
809        } else if (name.equals("inactive")) {
810          this.inactive = castToBoolean(value); // BooleanType
811        } else
812          return super.setProperty(name, value);
813        return value;
814      }
815
816      @Override
817      public Base makeProperty(int hash, String name) throws FHIRException {
818        switch (hash) {
819        case -1298275357:  return getEntity(); 
820        case -991726143:  return getPeriod(); 
821        case 24665195:  return getInactiveElement();
822        default: return super.makeProperty(hash, name);
823        }
824
825      }
826
827      @Override
828      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
829        switch (hash) {
830        case -1298275357: /*entity*/ return new String[] {"Reference"};
831        case -991726143: /*period*/ return new String[] {"Period"};
832        case 24665195: /*inactive*/ return new String[] {"boolean"};
833        default: return super.getTypesForProperty(hash, name);
834        }
835
836      }
837
838      @Override
839      public Base addChild(String name) throws FHIRException {
840        if (name.equals("entity")) {
841          this.entity = new Reference();
842          return this.entity;
843        }
844        else if (name.equals("period")) {
845          this.period = new Period();
846          return this.period;
847        }
848        else if (name.equals("inactive")) {
849          throw new FHIRException("Cannot call addChild on a primitive type Group.inactive");
850        }
851        else
852          return super.addChild(name);
853      }
854
855      public GroupMemberComponent copy() {
856        GroupMemberComponent dst = new GroupMemberComponent();
857        copyValues(dst);
858        dst.entity = entity == null ? null : entity.copy();
859        dst.period = period == null ? null : period.copy();
860        dst.inactive = inactive == null ? null : inactive.copy();
861        return dst;
862      }
863
864      @Override
865      public boolean equalsDeep(Base other_) {
866        if (!super.equalsDeep(other_))
867          return false;
868        if (!(other_ instanceof GroupMemberComponent))
869          return false;
870        GroupMemberComponent o = (GroupMemberComponent) other_;
871        return compareDeep(entity, o.entity, true) && compareDeep(period, o.period, true) && compareDeep(inactive, o.inactive, true)
872          ;
873      }
874
875      @Override
876      public boolean equalsShallow(Base other_) {
877        if (!super.equalsShallow(other_))
878          return false;
879        if (!(other_ instanceof GroupMemberComponent))
880          return false;
881        GroupMemberComponent o = (GroupMemberComponent) other_;
882        return compareValues(inactive, o.inactive, true);
883      }
884
885      public boolean isEmpty() {
886        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(entity, period, inactive
887          );
888      }
889
890  public String fhirType() {
891    return "Group.member";
892
893  }
894
895  }
896
897    /**
898     * A unique business identifier for this group.
899     */
900    @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
901    @Description(shortDefinition="Unique id", formalDefinition="A unique business identifier for this group." )
902    protected List<Identifier> identifier;
903
904    /**
905     * Indicates whether the record for the group is available for use or is merely being retained for historical purposes.
906     */
907    @Child(name = "active", type = {BooleanType.class}, order=1, min=0, max=1, modifier=false, summary=true)
908    @Description(shortDefinition="Whether this group's record is in active use", formalDefinition="Indicates whether the record for the group is available for use or is merely being retained for historical purposes." )
909    protected BooleanType active;
910
911    /**
912     * Identifies the broad classification of the kind of resources the group includes.
913     */
914    @Child(name = "type", type = {CodeType.class}, order=2, min=1, max=1, modifier=false, summary=true)
915    @Description(shortDefinition="person | animal | practitioner | device | medication | substance", formalDefinition="Identifies the broad classification of the kind of resources the group includes." )
916    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/group-type")
917    protected Enumeration<GroupType> type;
918
919    /**
920     * If true, indicates that the resource refers to a specific group of real individuals.  If false, the group defines a set of intended individuals.
921     */
922    @Child(name = "actual", type = {BooleanType.class}, order=3, min=1, max=1, modifier=false, summary=true)
923    @Description(shortDefinition="Descriptive or actual", formalDefinition="If true, indicates that the resource refers to a specific group of real individuals.  If false, the group defines a set of intended individuals." )
924    protected BooleanType actual;
925
926    /**
927     * Provides a specific type of resource the group includes; e.g. "cow", "syringe", etc.
928     */
929    @Child(name = "code", type = {CodeableConcept.class}, order=4, min=0, max=1, modifier=false, summary=true)
930    @Description(shortDefinition="Kind of Group members", formalDefinition="Provides a specific type of resource the group includes; e.g. \"cow\", \"syringe\", etc." )
931    protected CodeableConcept code;
932
933    /**
934     * A label assigned to the group for human identification and communication.
935     */
936    @Child(name = "name", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=true)
937    @Description(shortDefinition="Label for Group", formalDefinition="A label assigned to the group for human identification and communication." )
938    protected StringType name;
939
940    /**
941     * A count of the number of resource instances that are part of the group.
942     */
943    @Child(name = "quantity", type = {UnsignedIntType.class}, order=6, min=0, max=1, modifier=false, summary=true)
944    @Description(shortDefinition="Number of members", formalDefinition="A count of the number of resource instances that are part of the group." )
945    protected UnsignedIntType quantity;
946
947    /**
948     * Identifies the traits shared by members of the group.
949     */
950    @Child(name = "characteristic", type = {}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
951    @Description(shortDefinition="Trait of group members", formalDefinition="Identifies the traits shared by members of the group." )
952    protected List<GroupCharacteristicComponent> characteristic;
953
954    /**
955     * Identifies the resource instances that are members of the group.
956     */
957    @Child(name = "member", type = {}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
958    @Description(shortDefinition="Who or what is in group", formalDefinition="Identifies the resource instances that are members of the group." )
959    protected List<GroupMemberComponent> member;
960
961    private static final long serialVersionUID = 659980713L;
962
963  /**
964   * Constructor
965   */
966    public Group() {
967      super();
968    }
969
970  /**
971   * Constructor
972   */
973    public Group(Enumeration<GroupType> type, BooleanType actual) {
974      super();
975      this.type = type;
976      this.actual = actual;
977    }
978
979    /**
980     * @return {@link #identifier} (A unique business identifier for this group.)
981     */
982    public List<Identifier> getIdentifier() { 
983      if (this.identifier == null)
984        this.identifier = new ArrayList<Identifier>();
985      return this.identifier;
986    }
987
988    /**
989     * @return Returns a reference to <code>this</code> for easy method chaining
990     */
991    public Group setIdentifier(List<Identifier> theIdentifier) { 
992      this.identifier = theIdentifier;
993      return this;
994    }
995
996    public boolean hasIdentifier() { 
997      if (this.identifier == null)
998        return false;
999      for (Identifier item : this.identifier)
1000        if (!item.isEmpty())
1001          return true;
1002      return false;
1003    }
1004
1005    public Identifier addIdentifier() { //3
1006      Identifier t = new Identifier();
1007      if (this.identifier == null)
1008        this.identifier = new ArrayList<Identifier>();
1009      this.identifier.add(t);
1010      return t;
1011    }
1012
1013    public Group addIdentifier(Identifier t) { //3
1014      if (t == null)
1015        return this;
1016      if (this.identifier == null)
1017        this.identifier = new ArrayList<Identifier>();
1018      this.identifier.add(t);
1019      return this;
1020    }
1021
1022    /**
1023     * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist
1024     */
1025    public Identifier getIdentifierFirstRep() { 
1026      if (getIdentifier().isEmpty()) {
1027        addIdentifier();
1028      }
1029      return getIdentifier().get(0);
1030    }
1031
1032    /**
1033     * @return {@link #active} (Indicates whether the record for the group is available for use or is merely being retained for historical purposes.). This is the underlying object with id, value and extensions. The accessor "getActive" gives direct access to the value
1034     */
1035    public BooleanType getActiveElement() { 
1036      if (this.active == null)
1037        if (Configuration.errorOnAutoCreate())
1038          throw new Error("Attempt to auto-create Group.active");
1039        else if (Configuration.doAutoCreate())
1040          this.active = new BooleanType(); // bb
1041      return this.active;
1042    }
1043
1044    public boolean hasActiveElement() { 
1045      return this.active != null && !this.active.isEmpty();
1046    }
1047
1048    public boolean hasActive() { 
1049      return this.active != null && !this.active.isEmpty();
1050    }
1051
1052    /**
1053     * @param value {@link #active} (Indicates whether the record for the group is available for use or is merely being retained for historical purposes.). This is the underlying object with id, value and extensions. The accessor "getActive" gives direct access to the value
1054     */
1055    public Group setActiveElement(BooleanType value) { 
1056      this.active = value;
1057      return this;
1058    }
1059
1060    /**
1061     * @return Indicates whether the record for the group is available for use or is merely being retained for historical purposes.
1062     */
1063    public boolean getActive() { 
1064      return this.active == null || this.active.isEmpty() ? false : this.active.getValue();
1065    }
1066
1067    /**
1068     * @param value Indicates whether the record for the group is available for use or is merely being retained for historical purposes.
1069     */
1070    public Group setActive(boolean value) { 
1071        if (this.active == null)
1072          this.active = new BooleanType();
1073        this.active.setValue(value);
1074      return this;
1075    }
1076
1077    /**
1078     * @return {@link #type} (Identifies the broad classification of the kind of resources the group includes.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
1079     */
1080    public Enumeration<GroupType> getTypeElement() { 
1081      if (this.type == null)
1082        if (Configuration.errorOnAutoCreate())
1083          throw new Error("Attempt to auto-create Group.type");
1084        else if (Configuration.doAutoCreate())
1085          this.type = new Enumeration<GroupType>(new GroupTypeEnumFactory()); // bb
1086      return this.type;
1087    }
1088
1089    public boolean hasTypeElement() { 
1090      return this.type != null && !this.type.isEmpty();
1091    }
1092
1093    public boolean hasType() { 
1094      return this.type != null && !this.type.isEmpty();
1095    }
1096
1097    /**
1098     * @param value {@link #type} (Identifies the broad classification of the kind of resources the group includes.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
1099     */
1100    public Group setTypeElement(Enumeration<GroupType> value) { 
1101      this.type = value;
1102      return this;
1103    }
1104
1105    /**
1106     * @return Identifies the broad classification of the kind of resources the group includes.
1107     */
1108    public GroupType getType() { 
1109      return this.type == null ? null : this.type.getValue();
1110    }
1111
1112    /**
1113     * @param value Identifies the broad classification of the kind of resources the group includes.
1114     */
1115    public Group setType(GroupType value) { 
1116        if (this.type == null)
1117          this.type = new Enumeration<GroupType>(new GroupTypeEnumFactory());
1118        this.type.setValue(value);
1119      return this;
1120    }
1121
1122    /**
1123     * @return {@link #actual} (If true, indicates that the resource refers to a specific group of real individuals.  If false, the group defines a set of intended individuals.). This is the underlying object with id, value and extensions. The accessor "getActual" gives direct access to the value
1124     */
1125    public BooleanType getActualElement() { 
1126      if (this.actual == null)
1127        if (Configuration.errorOnAutoCreate())
1128          throw new Error("Attempt to auto-create Group.actual");
1129        else if (Configuration.doAutoCreate())
1130          this.actual = new BooleanType(); // bb
1131      return this.actual;
1132    }
1133
1134    public boolean hasActualElement() { 
1135      return this.actual != null && !this.actual.isEmpty();
1136    }
1137
1138    public boolean hasActual() { 
1139      return this.actual != null && !this.actual.isEmpty();
1140    }
1141
1142    /**
1143     * @param value {@link #actual} (If true, indicates that the resource refers to a specific group of real individuals.  If false, the group defines a set of intended individuals.). This is the underlying object with id, value and extensions. The accessor "getActual" gives direct access to the value
1144     */
1145    public Group setActualElement(BooleanType value) { 
1146      this.actual = value;
1147      return this;
1148    }
1149
1150    /**
1151     * @return If true, indicates that the resource refers to a specific group of real individuals.  If false, the group defines a set of intended individuals.
1152     */
1153    public boolean getActual() { 
1154      return this.actual == null || this.actual.isEmpty() ? false : this.actual.getValue();
1155    }
1156
1157    /**
1158     * @param value If true, indicates that the resource refers to a specific group of real individuals.  If false, the group defines a set of intended individuals.
1159     */
1160    public Group setActual(boolean value) { 
1161        if (this.actual == null)
1162          this.actual = new BooleanType();
1163        this.actual.setValue(value);
1164      return this;
1165    }
1166
1167    /**
1168     * @return {@link #code} (Provides a specific type of resource the group includes; e.g. "cow", "syringe", etc.)
1169     */
1170    public CodeableConcept getCode() { 
1171      if (this.code == null)
1172        if (Configuration.errorOnAutoCreate())
1173          throw new Error("Attempt to auto-create Group.code");
1174        else if (Configuration.doAutoCreate())
1175          this.code = new CodeableConcept(); // cc
1176      return this.code;
1177    }
1178
1179    public boolean hasCode() { 
1180      return this.code != null && !this.code.isEmpty();
1181    }
1182
1183    /**
1184     * @param value {@link #code} (Provides a specific type of resource the group includes; e.g. "cow", "syringe", etc.)
1185     */
1186    public Group setCode(CodeableConcept value)  { 
1187      this.code = value;
1188      return this;
1189    }
1190
1191    /**
1192     * @return {@link #name} (A label assigned to the group for human identification and communication.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
1193     */
1194    public StringType getNameElement() { 
1195      if (this.name == null)
1196        if (Configuration.errorOnAutoCreate())
1197          throw new Error("Attempt to auto-create Group.name");
1198        else if (Configuration.doAutoCreate())
1199          this.name = new StringType(); // bb
1200      return this.name;
1201    }
1202
1203    public boolean hasNameElement() { 
1204      return this.name != null && !this.name.isEmpty();
1205    }
1206
1207    public boolean hasName() { 
1208      return this.name != null && !this.name.isEmpty();
1209    }
1210
1211    /**
1212     * @param value {@link #name} (A label assigned to the group for human identification and communication.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
1213     */
1214    public Group setNameElement(StringType value) { 
1215      this.name = value;
1216      return this;
1217    }
1218
1219    /**
1220     * @return A label assigned to the group for human identification and communication.
1221     */
1222    public String getName() { 
1223      return this.name == null ? null : this.name.getValue();
1224    }
1225
1226    /**
1227     * @param value A label assigned to the group for human identification and communication.
1228     */
1229    public Group setName(String value) { 
1230      if (Utilities.noString(value))
1231        this.name = null;
1232      else {
1233        if (this.name == null)
1234          this.name = new StringType();
1235        this.name.setValue(value);
1236      }
1237      return this;
1238    }
1239
1240    /**
1241     * @return {@link #quantity} (A count of the number of resource instances that are part of the group.). This is the underlying object with id, value and extensions. The accessor "getQuantity" gives direct access to the value
1242     */
1243    public UnsignedIntType getQuantityElement() { 
1244      if (this.quantity == null)
1245        if (Configuration.errorOnAutoCreate())
1246          throw new Error("Attempt to auto-create Group.quantity");
1247        else if (Configuration.doAutoCreate())
1248          this.quantity = new UnsignedIntType(); // bb
1249      return this.quantity;
1250    }
1251
1252    public boolean hasQuantityElement() { 
1253      return this.quantity != null && !this.quantity.isEmpty();
1254    }
1255
1256    public boolean hasQuantity() { 
1257      return this.quantity != null && !this.quantity.isEmpty();
1258    }
1259
1260    /**
1261     * @param value {@link #quantity} (A count of the number of resource instances that are part of the group.). This is the underlying object with id, value and extensions. The accessor "getQuantity" gives direct access to the value
1262     */
1263    public Group setQuantityElement(UnsignedIntType value) { 
1264      this.quantity = value;
1265      return this;
1266    }
1267
1268    /**
1269     * @return A count of the number of resource instances that are part of the group.
1270     */
1271    public int getQuantity() { 
1272      return this.quantity == null || this.quantity.isEmpty() ? 0 : this.quantity.getValue();
1273    }
1274
1275    /**
1276     * @param value A count of the number of resource instances that are part of the group.
1277     */
1278    public Group setQuantity(int value) { 
1279        if (this.quantity == null)
1280          this.quantity = new UnsignedIntType();
1281        this.quantity.setValue(value);
1282      return this;
1283    }
1284
1285    /**
1286     * @return {@link #characteristic} (Identifies the traits shared by members of the group.)
1287     */
1288    public List<GroupCharacteristicComponent> getCharacteristic() { 
1289      if (this.characteristic == null)
1290        this.characteristic = new ArrayList<GroupCharacteristicComponent>();
1291      return this.characteristic;
1292    }
1293
1294    /**
1295     * @return Returns a reference to <code>this</code> for easy method chaining
1296     */
1297    public Group setCharacteristic(List<GroupCharacteristicComponent> theCharacteristic) { 
1298      this.characteristic = theCharacteristic;
1299      return this;
1300    }
1301
1302    public boolean hasCharacteristic() { 
1303      if (this.characteristic == null)
1304        return false;
1305      for (GroupCharacteristicComponent item : this.characteristic)
1306        if (!item.isEmpty())
1307          return true;
1308      return false;
1309    }
1310
1311    public GroupCharacteristicComponent addCharacteristic() { //3
1312      GroupCharacteristicComponent t = new GroupCharacteristicComponent();
1313      if (this.characteristic == null)
1314        this.characteristic = new ArrayList<GroupCharacteristicComponent>();
1315      this.characteristic.add(t);
1316      return t;
1317    }
1318
1319    public Group addCharacteristic(GroupCharacteristicComponent t) { //3
1320      if (t == null)
1321        return this;
1322      if (this.characteristic == null)
1323        this.characteristic = new ArrayList<GroupCharacteristicComponent>();
1324      this.characteristic.add(t);
1325      return this;
1326    }
1327
1328    /**
1329     * @return The first repetition of repeating field {@link #characteristic}, creating it if it does not already exist
1330     */
1331    public GroupCharacteristicComponent getCharacteristicFirstRep() { 
1332      if (getCharacteristic().isEmpty()) {
1333        addCharacteristic();
1334      }
1335      return getCharacteristic().get(0);
1336    }
1337
1338    /**
1339     * @return {@link #member} (Identifies the resource instances that are members of the group.)
1340     */
1341    public List<GroupMemberComponent> getMember() { 
1342      if (this.member == null)
1343        this.member = new ArrayList<GroupMemberComponent>();
1344      return this.member;
1345    }
1346
1347    /**
1348     * @return Returns a reference to <code>this</code> for easy method chaining
1349     */
1350    public Group setMember(List<GroupMemberComponent> theMember) { 
1351      this.member = theMember;
1352      return this;
1353    }
1354
1355    public boolean hasMember() { 
1356      if (this.member == null)
1357        return false;
1358      for (GroupMemberComponent item : this.member)
1359        if (!item.isEmpty())
1360          return true;
1361      return false;
1362    }
1363
1364    public GroupMemberComponent addMember() { //3
1365      GroupMemberComponent t = new GroupMemberComponent();
1366      if (this.member == null)
1367        this.member = new ArrayList<GroupMemberComponent>();
1368      this.member.add(t);
1369      return t;
1370    }
1371
1372    public Group addMember(GroupMemberComponent t) { //3
1373      if (t == null)
1374        return this;
1375      if (this.member == null)
1376        this.member = new ArrayList<GroupMemberComponent>();
1377      this.member.add(t);
1378      return this;
1379    }
1380
1381    /**
1382     * @return The first repetition of repeating field {@link #member}, creating it if it does not already exist
1383     */
1384    public GroupMemberComponent getMemberFirstRep() { 
1385      if (getMember().isEmpty()) {
1386        addMember();
1387      }
1388      return getMember().get(0);
1389    }
1390
1391      protected void listChildren(List<Property> children) {
1392        super.listChildren(children);
1393        children.add(new Property("identifier", "Identifier", "A unique business identifier for this group.", 0, java.lang.Integer.MAX_VALUE, identifier));
1394        children.add(new Property("active", "boolean", "Indicates whether the record for the group is available for use or is merely being retained for historical purposes.", 0, 1, active));
1395        children.add(new Property("type", "code", "Identifies the broad classification of the kind of resources the group includes.", 0, 1, type));
1396        children.add(new Property("actual", "boolean", "If true, indicates that the resource refers to a specific group of real individuals.  If false, the group defines a set of intended individuals.", 0, 1, actual));
1397        children.add(new Property("code", "CodeableConcept", "Provides a specific type of resource the group includes; e.g. \"cow\", \"syringe\", etc.", 0, 1, code));
1398        children.add(new Property("name", "string", "A label assigned to the group for human identification and communication.", 0, 1, name));
1399        children.add(new Property("quantity", "unsignedInt", "A count of the number of resource instances that are part of the group.", 0, 1, quantity));
1400        children.add(new Property("characteristic", "", "Identifies the traits shared by members of the group.", 0, java.lang.Integer.MAX_VALUE, characteristic));
1401        children.add(new Property("member", "", "Identifies the resource instances that are members of the group.", 0, java.lang.Integer.MAX_VALUE, member));
1402      }
1403
1404      @Override
1405      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
1406        switch (_hash) {
1407        case -1618432855: /*identifier*/  return new Property("identifier", "Identifier", "A unique business identifier for this group.", 0, java.lang.Integer.MAX_VALUE, identifier);
1408        case -1422950650: /*active*/  return new Property("active", "boolean", "Indicates whether the record for the group is available for use or is merely being retained for historical purposes.", 0, 1, active);
1409        case 3575610: /*type*/  return new Property("type", "code", "Identifies the broad classification of the kind of resources the group includes.", 0, 1, type);
1410        case -1422939762: /*actual*/  return new Property("actual", "boolean", "If true, indicates that the resource refers to a specific group of real individuals.  If false, the group defines a set of intended individuals.", 0, 1, actual);
1411        case 3059181: /*code*/  return new Property("code", "CodeableConcept", "Provides a specific type of resource the group includes; e.g. \"cow\", \"syringe\", etc.", 0, 1, code);
1412        case 3373707: /*name*/  return new Property("name", "string", "A label assigned to the group for human identification and communication.", 0, 1, name);
1413        case -1285004149: /*quantity*/  return new Property("quantity", "unsignedInt", "A count of the number of resource instances that are part of the group.", 0, 1, quantity);
1414        case 366313883: /*characteristic*/  return new Property("characteristic", "", "Identifies the traits shared by members of the group.", 0, java.lang.Integer.MAX_VALUE, characteristic);
1415        case -1077769574: /*member*/  return new Property("member", "", "Identifies the resource instances that are members of the group.", 0, java.lang.Integer.MAX_VALUE, member);
1416        default: return super.getNamedProperty(_hash, _name, _checkValid);
1417        }
1418
1419      }
1420
1421      @Override
1422      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
1423        switch (hash) {
1424        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier
1425        case -1422950650: /*active*/ return this.active == null ? new Base[0] : new Base[] {this.active}; // BooleanType
1426        case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // Enumeration<GroupType>
1427        case -1422939762: /*actual*/ return this.actual == null ? new Base[0] : new Base[] {this.actual}; // BooleanType
1428        case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept
1429        case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType
1430        case -1285004149: /*quantity*/ return this.quantity == null ? new Base[0] : new Base[] {this.quantity}; // UnsignedIntType
1431        case 366313883: /*characteristic*/ return this.characteristic == null ? new Base[0] : this.characteristic.toArray(new Base[this.characteristic.size()]); // GroupCharacteristicComponent
1432        case -1077769574: /*member*/ return this.member == null ? new Base[0] : this.member.toArray(new Base[this.member.size()]); // GroupMemberComponent
1433        default: return super.getProperty(hash, name, checkValid);
1434        }
1435
1436      }
1437
1438      @Override
1439      public Base setProperty(int hash, String name, Base value) throws FHIRException {
1440        switch (hash) {
1441        case -1618432855: // identifier
1442          this.getIdentifier().add(castToIdentifier(value)); // Identifier
1443          return value;
1444        case -1422950650: // active
1445          this.active = castToBoolean(value); // BooleanType
1446          return value;
1447        case 3575610: // type
1448          value = new GroupTypeEnumFactory().fromType(castToCode(value));
1449          this.type = (Enumeration) value; // Enumeration<GroupType>
1450          return value;
1451        case -1422939762: // actual
1452          this.actual = castToBoolean(value); // BooleanType
1453          return value;
1454        case 3059181: // code
1455          this.code = castToCodeableConcept(value); // CodeableConcept
1456          return value;
1457        case 3373707: // name
1458          this.name = castToString(value); // StringType
1459          return value;
1460        case -1285004149: // quantity
1461          this.quantity = castToUnsignedInt(value); // UnsignedIntType
1462          return value;
1463        case 366313883: // characteristic
1464          this.getCharacteristic().add((GroupCharacteristicComponent) value); // GroupCharacteristicComponent
1465          return value;
1466        case -1077769574: // member
1467          this.getMember().add((GroupMemberComponent) value); // GroupMemberComponent
1468          return value;
1469        default: return super.setProperty(hash, name, value);
1470        }
1471
1472      }
1473
1474      @Override
1475      public Base setProperty(String name, Base value) throws FHIRException {
1476        if (name.equals("identifier")) {
1477          this.getIdentifier().add(castToIdentifier(value));
1478        } else if (name.equals("active")) {
1479          this.active = castToBoolean(value); // BooleanType
1480        } else if (name.equals("type")) {
1481          value = new GroupTypeEnumFactory().fromType(castToCode(value));
1482          this.type = (Enumeration) value; // Enumeration<GroupType>
1483        } else if (name.equals("actual")) {
1484          this.actual = castToBoolean(value); // BooleanType
1485        } else if (name.equals("code")) {
1486          this.code = castToCodeableConcept(value); // CodeableConcept
1487        } else if (name.equals("name")) {
1488          this.name = castToString(value); // StringType
1489        } else if (name.equals("quantity")) {
1490          this.quantity = castToUnsignedInt(value); // UnsignedIntType
1491        } else if (name.equals("characteristic")) {
1492          this.getCharacteristic().add((GroupCharacteristicComponent) value);
1493        } else if (name.equals("member")) {
1494          this.getMember().add((GroupMemberComponent) value);
1495        } else
1496          return super.setProperty(name, value);
1497        return value;
1498      }
1499
1500      @Override
1501      public Base makeProperty(int hash, String name) throws FHIRException {
1502        switch (hash) {
1503        case -1618432855:  return addIdentifier(); 
1504        case -1422950650:  return getActiveElement();
1505        case 3575610:  return getTypeElement();
1506        case -1422939762:  return getActualElement();
1507        case 3059181:  return getCode(); 
1508        case 3373707:  return getNameElement();
1509        case -1285004149:  return getQuantityElement();
1510        case 366313883:  return addCharacteristic(); 
1511        case -1077769574:  return addMember(); 
1512        default: return super.makeProperty(hash, name);
1513        }
1514
1515      }
1516
1517      @Override
1518      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
1519        switch (hash) {
1520        case -1618432855: /*identifier*/ return new String[] {"Identifier"};
1521        case -1422950650: /*active*/ return new String[] {"boolean"};
1522        case 3575610: /*type*/ return new String[] {"code"};
1523        case -1422939762: /*actual*/ return new String[] {"boolean"};
1524        case 3059181: /*code*/ return new String[] {"CodeableConcept"};
1525        case 3373707: /*name*/ return new String[] {"string"};
1526        case -1285004149: /*quantity*/ return new String[] {"unsignedInt"};
1527        case 366313883: /*characteristic*/ return new String[] {};
1528        case -1077769574: /*member*/ return new String[] {};
1529        default: return super.getTypesForProperty(hash, name);
1530        }
1531
1532      }
1533
1534      @Override
1535      public Base addChild(String name) throws FHIRException {
1536        if (name.equals("identifier")) {
1537          return addIdentifier();
1538        }
1539        else if (name.equals("active")) {
1540          throw new FHIRException("Cannot call addChild on a primitive type Group.active");
1541        }
1542        else if (name.equals("type")) {
1543          throw new FHIRException("Cannot call addChild on a primitive type Group.type");
1544        }
1545        else if (name.equals("actual")) {
1546          throw new FHIRException("Cannot call addChild on a primitive type Group.actual");
1547        }
1548        else if (name.equals("code")) {
1549          this.code = new CodeableConcept();
1550          return this.code;
1551        }
1552        else if (name.equals("name")) {
1553          throw new FHIRException("Cannot call addChild on a primitive type Group.name");
1554        }
1555        else if (name.equals("quantity")) {
1556          throw new FHIRException("Cannot call addChild on a primitive type Group.quantity");
1557        }
1558        else if (name.equals("characteristic")) {
1559          return addCharacteristic();
1560        }
1561        else if (name.equals("member")) {
1562          return addMember();
1563        }
1564        else
1565          return super.addChild(name);
1566      }
1567
1568  public String fhirType() {
1569    return "Group";
1570
1571  }
1572
1573      public Group copy() {
1574        Group dst = new Group();
1575        copyValues(dst);
1576        if (identifier != null) {
1577          dst.identifier = new ArrayList<Identifier>();
1578          for (Identifier i : identifier)
1579            dst.identifier.add(i.copy());
1580        };
1581        dst.active = active == null ? null : active.copy();
1582        dst.type = type == null ? null : type.copy();
1583        dst.actual = actual == null ? null : actual.copy();
1584        dst.code = code == null ? null : code.copy();
1585        dst.name = name == null ? null : name.copy();
1586        dst.quantity = quantity == null ? null : quantity.copy();
1587        if (characteristic != null) {
1588          dst.characteristic = new ArrayList<GroupCharacteristicComponent>();
1589          for (GroupCharacteristicComponent i : characteristic)
1590            dst.characteristic.add(i.copy());
1591        };
1592        if (member != null) {
1593          dst.member = new ArrayList<GroupMemberComponent>();
1594          for (GroupMemberComponent i : member)
1595            dst.member.add(i.copy());
1596        };
1597        return dst;
1598      }
1599
1600      protected Group typedCopy() {
1601        return copy();
1602      }
1603
1604      @Override
1605      public boolean equalsDeep(Base other_) {
1606        if (!super.equalsDeep(other_))
1607          return false;
1608        if (!(other_ instanceof Group))
1609          return false;
1610        Group o = (Group) other_;
1611        return compareDeep(identifier, o.identifier, true) && compareDeep(active, o.active, true) && compareDeep(type, o.type, true)
1612           && compareDeep(actual, o.actual, true) && compareDeep(code, o.code, true) && compareDeep(name, o.name, true)
1613           && compareDeep(quantity, o.quantity, true) && compareDeep(characteristic, o.characteristic, true)
1614           && compareDeep(member, o.member, true);
1615      }
1616
1617      @Override
1618      public boolean equalsShallow(Base other_) {
1619        if (!super.equalsShallow(other_))
1620          return false;
1621        if (!(other_ instanceof Group))
1622          return false;
1623        Group o = (Group) other_;
1624        return compareValues(active, o.active, true) && compareValues(type, o.type, true) && compareValues(actual, o.actual, true)
1625           && compareValues(name, o.name, true) && compareValues(quantity, o.quantity, true);
1626      }
1627
1628      public boolean isEmpty() {
1629        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, active, type
1630          , actual, code, name, quantity, characteristic, member);
1631      }
1632
1633  @Override
1634  public ResourceType getResourceType() {
1635    return ResourceType.Group;
1636   }
1637
1638 /**
1639   * Search parameter: <b>actual</b>
1640   * <p>
1641   * Description: <b>Descriptive or actual</b><br>
1642   * Type: <b>token</b><br>
1643   * Path: <b>Group.actual</b><br>
1644   * </p>
1645   */
1646  @SearchParamDefinition(name="actual", path="Group.actual", description="Descriptive or actual", type="token" )
1647  public static final String SP_ACTUAL = "actual";
1648 /**
1649   * <b>Fluent Client</b> search parameter constant for <b>actual</b>
1650   * <p>
1651   * Description: <b>Descriptive or actual</b><br>
1652   * Type: <b>token</b><br>
1653   * Path: <b>Group.actual</b><br>
1654   * </p>
1655   */
1656  public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACTUAL = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ACTUAL);
1657
1658 /**
1659   * Search parameter: <b>identifier</b>
1660   * <p>
1661   * Description: <b>Unique id</b><br>
1662   * Type: <b>token</b><br>
1663   * Path: <b>Group.identifier</b><br>
1664   * </p>
1665   */
1666  @SearchParamDefinition(name="identifier", path="Group.identifier", description="Unique id", type="token" )
1667  public static final String SP_IDENTIFIER = "identifier";
1668 /**
1669   * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
1670   * <p>
1671   * Description: <b>Unique id</b><br>
1672   * Type: <b>token</b><br>
1673   * Path: <b>Group.identifier</b><br>
1674   * </p>
1675   */
1676  public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
1677
1678 /**
1679   * Search parameter: <b>characteristic-value</b>
1680   * <p>
1681   * Description: <b>A composite of both characteristic and value</b><br>
1682   * Type: <b>composite</b><br>
1683   * Path: <b></b><br>
1684   * </p>
1685   */
1686  @SearchParamDefinition(name="characteristic-value", path="Group.characteristic", description="A composite of both characteristic and value", type="composite", compositeOf={"characteristic", "value"} )
1687  public static final String SP_CHARACTERISTIC_VALUE = "characteristic-value";
1688 /**
1689   * <b>Fluent Client</b> search parameter constant for <b>characteristic-value</b>
1690   * <p>
1691   * Description: <b>A composite of both characteristic and value</b><br>
1692   * Type: <b>composite</b><br>
1693   * Path: <b></b><br>
1694   * </p>
1695   */
1696  public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam> CHARACTERISTIC_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam>(SP_CHARACTERISTIC_VALUE);
1697
1698 /**
1699   * Search parameter: <b>code</b>
1700   * <p>
1701   * Description: <b>The kind of resources contained</b><br>
1702   * Type: <b>token</b><br>
1703   * Path: <b>Group.code</b><br>
1704   * </p>
1705   */
1706  @SearchParamDefinition(name="code", path="Group.code", description="The kind of resources contained", type="token" )
1707  public static final String SP_CODE = "code";
1708 /**
1709   * <b>Fluent Client</b> search parameter constant for <b>code</b>
1710   * <p>
1711   * Description: <b>The kind of resources contained</b><br>
1712   * Type: <b>token</b><br>
1713   * Path: <b>Group.code</b><br>
1714   * </p>
1715   */
1716  public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE);
1717
1718 /**
1719   * Search parameter: <b>member</b>
1720   * <p>
1721   * Description: <b>Reference to the group member</b><br>
1722   * Type: <b>reference</b><br>
1723   * Path: <b>Group.member.entity</b><br>
1724   * </p>
1725   */
1726  @SearchParamDefinition(name="member", path="Group.member.entity", description="Reference to the group member", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") }, target={Device.class, Medication.class, Patient.class, Practitioner.class, Substance.class } )
1727  public static final String SP_MEMBER = "member";
1728 /**
1729   * <b>Fluent Client</b> search parameter constant for <b>member</b>
1730   * <p>
1731   * Description: <b>Reference to the group member</b><br>
1732   * Type: <b>reference</b><br>
1733   * Path: <b>Group.member.entity</b><br>
1734   * </p>
1735   */
1736  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam MEMBER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_MEMBER);
1737
1738/**
1739   * Constant for fluent queries to be used to add include statements. Specifies
1740   * the path value of "<b>Group:member</b>".
1741   */
1742  public static final ca.uhn.fhir.model.api.Include INCLUDE_MEMBER = new ca.uhn.fhir.model.api.Include("Group:member").toLocked();
1743
1744 /**
1745   * Search parameter: <b>exclude</b>
1746   * <p>
1747   * Description: <b>Group includes or excludes</b><br>
1748   * Type: <b>token</b><br>
1749   * Path: <b>Group.characteristic.exclude</b><br>
1750   * </p>
1751   */
1752  @SearchParamDefinition(name="exclude", path="Group.characteristic.exclude", description="Group includes or excludes", type="token" )
1753  public static final String SP_EXCLUDE = "exclude";
1754 /**
1755   * <b>Fluent Client</b> search parameter constant for <b>exclude</b>
1756   * <p>
1757   * Description: <b>Group includes or excludes</b><br>
1758   * Type: <b>token</b><br>
1759   * Path: <b>Group.characteristic.exclude</b><br>
1760   * </p>
1761   */
1762  public static final ca.uhn.fhir.rest.gclient.TokenClientParam EXCLUDE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_EXCLUDE);
1763
1764 /**
1765   * Search parameter: <b>type</b>
1766   * <p>
1767   * Description: <b>The type of resources the group contains</b><br>
1768   * Type: <b>token</b><br>
1769   * Path: <b>Group.type</b><br>
1770   * </p>
1771   */
1772  @SearchParamDefinition(name="type", path="Group.type", description="The type of resources the group contains", type="token" )
1773  public static final String SP_TYPE = "type";
1774 /**
1775   * <b>Fluent Client</b> search parameter constant for <b>type</b>
1776   * <p>
1777   * Description: <b>The type of resources the group contains</b><br>
1778   * Type: <b>token</b><br>
1779   * Path: <b>Group.type</b><br>
1780   * </p>
1781   */
1782  public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE);
1783
1784 /**
1785   * Search parameter: <b>value</b>
1786   * <p>
1787   * Description: <b>Value held by characteristic</b><br>
1788   * Type: <b>token</b><br>
1789   * Path: <b>Group.characteristic.value[x]</b><br>
1790   * </p>
1791   */
1792  @SearchParamDefinition(name="value", path="Group.characteristic.value", description="Value held by characteristic", type="token" )
1793  public static final String SP_VALUE = "value";
1794 /**
1795   * <b>Fluent Client</b> search parameter constant for <b>value</b>
1796   * <p>
1797   * Description: <b>Value held by characteristic</b><br>
1798   * Type: <b>token</b><br>
1799   * Path: <b>Group.characteristic.value[x]</b><br>
1800   * </p>
1801   */
1802  public static final ca.uhn.fhir.rest.gclient.TokenClientParam VALUE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VALUE);
1803
1804 /**
1805   * Search parameter: <b>characteristic</b>
1806   * <p>
1807   * Description: <b>Kind of characteristic</b><br>
1808   * Type: <b>token</b><br>
1809   * Path: <b>Group.characteristic.code</b><br>
1810   * </p>
1811   */
1812  @SearchParamDefinition(name="characteristic", path="Group.characteristic.code", description="Kind of characteristic", type="token" )
1813  public static final String SP_CHARACTERISTIC = "characteristic";
1814 /**
1815   * <b>Fluent Client</b> search parameter constant for <b>characteristic</b>
1816   * <p>
1817   * Description: <b>Kind of characteristic</b><br>
1818   * Type: <b>token</b><br>
1819   * Path: <b>Group.characteristic.code</b><br>
1820   * </p>
1821   */
1822  public static final ca.uhn.fhir.rest.gclient.TokenClientParam CHARACTERISTIC = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CHARACTERISTIC);
1823
1824
1825}
1826