001package org.hl7.fhir.r5.model;
002
003
004/*
005 * #%L
006 * org.hl7.fhir.r5
007 * %%
008 * Copyright (C) 2014 - 2019 Health Level 7
009 * %%
010 * Licensed under the Apache License, Version 2.0 (the \"License\");
011 * you may not use this file except in compliance with the License.
012 * You may obtain a copy of the License at
013 * 
014 *      http://www.apache.org/licenses/LICENSE-2.0
015 * 
016 * Unless required by applicable law or agreed to in writing, software
017 * distributed under the License is distributed on an \"AS IS\" BASIS,
018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
019 * See the License for the specific language governing permissions and
020 * limitations under the License.
021 * #L%
022 */
023
024/*
025  Copyright (c) 2011+, HL7, Inc.
026  All rights reserved.
027  
028  Redistribution and use in source and binary forms, with or without modification, \
029  are permitted provided that the following conditions are met:
030  
031   * Redistributions of source code must retain the above copyright notice, this \
032     list of conditions and the following disclaimer.
033   * Redistributions in binary form must reproduce the above copyright notice, \
034     this list of conditions and the following disclaimer in the documentation \
035     and/or other materials provided with the distribution.
036   * Neither the name of HL7 nor the names of its contributors may be used to 
037     endorse or promote products derived from this software without specific 
038     prior written permission.
039  
040  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \
041  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \
042  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \
043  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \
044  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \
045  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \
046  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \
047  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \
048  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \
049  POSSIBILITY OF SUCH DAMAGE.
050  */
051
052// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
053
054import java.util.ArrayList;
055import java.util.Date;
056import java.util.List;
057import org.hl7.fhir.utilities.Utilities;
058import org.hl7.fhir.r5.model.Enumerations.*;
059import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
060import org.hl7.fhir.exceptions.FHIRException;
061import org.hl7.fhir.instance.model.api.ICompositeType;
062import ca.uhn.fhir.model.api.annotation.ResourceDef;
063import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
064import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
065import ca.uhn.fhir.model.api.annotation.Child;
066import ca.uhn.fhir.model.api.annotation.ChildOrder;
067import ca.uhn.fhir.model.api.annotation.Description;
068import ca.uhn.fhir.model.api.annotation.Block;
069
070/**
071 * A person who is directly or indirectly involved in the provisioning of healthcare.
072 */
073@ResourceDef(name="Practitioner", profile="http://hl7.org/fhir/StructureDefinition/Practitioner")
074public class Practitioner extends DomainResource {
075
076    @Block()
077    public static class PractitionerQualificationComponent extends BackboneElement implements IBaseBackboneElement {
078        /**
079         * An identifier that applies to this person's qualification in this role.
080         */
081        @Child(name = "identifier", type = {Identifier.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
082        @Description(shortDefinition="An identifier for this qualification for the practitioner", formalDefinition="An identifier that applies to this person's qualification in this role." )
083        protected List<Identifier> identifier;
084
085        /**
086         * Coded representation of the qualification.
087         */
088        @Child(name = "code", type = {CodeableConcept.class}, order=2, min=1, max=1, modifier=false, summary=false)
089        @Description(shortDefinition="Coded representation of the qualification", formalDefinition="Coded representation of the qualification." )
090        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://terminology.hl7.org/ValueSet/v2-2.7-0360")
091        protected CodeableConcept code;
092
093        /**
094         * Period during which the qualification is valid.
095         */
096        @Child(name = "period", type = {Period.class}, order=3, min=0, max=1, modifier=false, summary=false)
097        @Description(shortDefinition="Period during which the qualification is valid", formalDefinition="Period during which the qualification is valid." )
098        protected Period period;
099
100        /**
101         * Organization that regulates and issues the qualification.
102         */
103        @Child(name = "issuer", type = {Organization.class}, order=4, min=0, max=1, modifier=false, summary=false)
104        @Description(shortDefinition="Organization that regulates and issues the qualification", formalDefinition="Organization that regulates and issues the qualification." )
105        protected Reference issuer;
106
107        private static final long serialVersionUID = 1561812204L;
108
109    /**
110     * Constructor
111     */
112      public PractitionerQualificationComponent() {
113        super();
114      }
115
116    /**
117     * Constructor
118     */
119      public PractitionerQualificationComponent(CodeableConcept code) {
120        super();
121        this.setCode(code);
122      }
123
124        /**
125         * @return {@link #identifier} (An identifier that applies to this person's qualification in this role.)
126         */
127        public List<Identifier> getIdentifier() { 
128          if (this.identifier == null)
129            this.identifier = new ArrayList<Identifier>();
130          return this.identifier;
131        }
132
133        /**
134         * @return Returns a reference to <code>this</code> for easy method chaining
135         */
136        public PractitionerQualificationComponent setIdentifier(List<Identifier> theIdentifier) { 
137          this.identifier = theIdentifier;
138          return this;
139        }
140
141        public boolean hasIdentifier() { 
142          if (this.identifier == null)
143            return false;
144          for (Identifier item : this.identifier)
145            if (!item.isEmpty())
146              return true;
147          return false;
148        }
149
150        public Identifier addIdentifier() { //3
151          Identifier t = new Identifier();
152          if (this.identifier == null)
153            this.identifier = new ArrayList<Identifier>();
154          this.identifier.add(t);
155          return t;
156        }
157
158        public PractitionerQualificationComponent addIdentifier(Identifier t) { //3
159          if (t == null)
160            return this;
161          if (this.identifier == null)
162            this.identifier = new ArrayList<Identifier>();
163          this.identifier.add(t);
164          return this;
165        }
166
167        /**
168         * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3}
169         */
170        public Identifier getIdentifierFirstRep() { 
171          if (getIdentifier().isEmpty()) {
172            addIdentifier();
173          }
174          return getIdentifier().get(0);
175        }
176
177        /**
178         * @return {@link #code} (Coded representation of the qualification.)
179         */
180        public CodeableConcept getCode() { 
181          if (this.code == null)
182            if (Configuration.errorOnAutoCreate())
183              throw new Error("Attempt to auto-create PractitionerQualificationComponent.code");
184            else if (Configuration.doAutoCreate())
185              this.code = new CodeableConcept(); // cc
186          return this.code;
187        }
188
189        public boolean hasCode() { 
190          return this.code != null && !this.code.isEmpty();
191        }
192
193        /**
194         * @param value {@link #code} (Coded representation of the qualification.)
195         */
196        public PractitionerQualificationComponent setCode(CodeableConcept value) { 
197          this.code = value;
198          return this;
199        }
200
201        /**
202         * @return {@link #period} (Period during which the qualification is valid.)
203         */
204        public Period getPeriod() { 
205          if (this.period == null)
206            if (Configuration.errorOnAutoCreate())
207              throw new Error("Attempt to auto-create PractitionerQualificationComponent.period");
208            else if (Configuration.doAutoCreate())
209              this.period = new Period(); // cc
210          return this.period;
211        }
212
213        public boolean hasPeriod() { 
214          return this.period != null && !this.period.isEmpty();
215        }
216
217        /**
218         * @param value {@link #period} (Period during which the qualification is valid.)
219         */
220        public PractitionerQualificationComponent setPeriod(Period value) { 
221          this.period = value;
222          return this;
223        }
224
225        /**
226         * @return {@link #issuer} (Organization that regulates and issues the qualification.)
227         */
228        public Reference getIssuer() { 
229          if (this.issuer == null)
230            if (Configuration.errorOnAutoCreate())
231              throw new Error("Attempt to auto-create PractitionerQualificationComponent.issuer");
232            else if (Configuration.doAutoCreate())
233              this.issuer = new Reference(); // cc
234          return this.issuer;
235        }
236
237        public boolean hasIssuer() { 
238          return this.issuer != null && !this.issuer.isEmpty();
239        }
240
241        /**
242         * @param value {@link #issuer} (Organization that regulates and issues the qualification.)
243         */
244        public PractitionerQualificationComponent setIssuer(Reference value) { 
245          this.issuer = value;
246          return this;
247        }
248
249        protected void listChildren(List<Property> children) {
250          super.listChildren(children);
251          children.add(new Property("identifier", "Identifier", "An identifier that applies to this person's qualification in this role.", 0, java.lang.Integer.MAX_VALUE, identifier));
252          children.add(new Property("code", "CodeableConcept", "Coded representation of the qualification.", 0, 1, code));
253          children.add(new Property("period", "Period", "Period during which the qualification is valid.", 0, 1, period));
254          children.add(new Property("issuer", "Reference(Organization)", "Organization that regulates and issues the qualification.", 0, 1, issuer));
255        }
256
257        @Override
258        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
259          switch (_hash) {
260          case -1618432855: /*identifier*/  return new Property("identifier", "Identifier", "An identifier that applies to this person's qualification in this role.", 0, java.lang.Integer.MAX_VALUE, identifier);
261          case 3059181: /*code*/  return new Property("code", "CodeableConcept", "Coded representation of the qualification.", 0, 1, code);
262          case -991726143: /*period*/  return new Property("period", "Period", "Period during which the qualification is valid.", 0, 1, period);
263          case -1179159879: /*issuer*/  return new Property("issuer", "Reference(Organization)", "Organization that regulates and issues the qualification.", 0, 1, issuer);
264          default: return super.getNamedProperty(_hash, _name, _checkValid);
265          }
266
267        }
268
269      @Override
270      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
271        switch (hash) {
272        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier
273        case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept
274        case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period
275        case -1179159879: /*issuer*/ return this.issuer == null ? new Base[0] : new Base[] {this.issuer}; // Reference
276        default: return super.getProperty(hash, name, checkValid);
277        }
278
279      }
280
281      @Override
282      public Base setProperty(int hash, String name, Base value) throws FHIRException {
283        switch (hash) {
284        case -1618432855: // identifier
285          this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier
286          return value;
287        case 3059181: // code
288          this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
289          return value;
290        case -991726143: // period
291          this.period = TypeConvertor.castToPeriod(value); // Period
292          return value;
293        case -1179159879: // issuer
294          this.issuer = TypeConvertor.castToReference(value); // Reference
295          return value;
296        default: return super.setProperty(hash, name, value);
297        }
298
299      }
300
301      @Override
302      public Base setProperty(String name, Base value) throws FHIRException {
303        if (name.equals("identifier")) {
304          this.getIdentifier().add(TypeConvertor.castToIdentifier(value));
305        } else if (name.equals("code")) {
306          this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
307        } else if (name.equals("period")) {
308          this.period = TypeConvertor.castToPeriod(value); // Period
309        } else if (name.equals("issuer")) {
310          this.issuer = TypeConvertor.castToReference(value); // Reference
311        } else
312          return super.setProperty(name, value);
313        return value;
314      }
315
316      @Override
317      public Base makeProperty(int hash, String name) throws FHIRException {
318        switch (hash) {
319        case -1618432855:  return addIdentifier(); 
320        case 3059181:  return getCode();
321        case -991726143:  return getPeriod();
322        case -1179159879:  return getIssuer();
323        default: return super.makeProperty(hash, name);
324        }
325
326      }
327
328      @Override
329      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
330        switch (hash) {
331        case -1618432855: /*identifier*/ return new String[] {"Identifier"};
332        case 3059181: /*code*/ return new String[] {"CodeableConcept"};
333        case -991726143: /*period*/ return new String[] {"Period"};
334        case -1179159879: /*issuer*/ return new String[] {"Reference"};
335        default: return super.getTypesForProperty(hash, name);
336        }
337
338      }
339
340      @Override
341      public Base addChild(String name) throws FHIRException {
342        if (name.equals("identifier")) {
343          return addIdentifier();
344        }
345        else if (name.equals("code")) {
346          this.code = new CodeableConcept();
347          return this.code;
348        }
349        else if (name.equals("period")) {
350          this.period = new Period();
351          return this.period;
352        }
353        else if (name.equals("issuer")) {
354          this.issuer = new Reference();
355          return this.issuer;
356        }
357        else
358          return super.addChild(name);
359      }
360
361      public PractitionerQualificationComponent copy() {
362        PractitionerQualificationComponent dst = new PractitionerQualificationComponent();
363        copyValues(dst);
364        return dst;
365      }
366
367      public void copyValues(PractitionerQualificationComponent dst) {
368        super.copyValues(dst);
369        if (identifier != null) {
370          dst.identifier = new ArrayList<Identifier>();
371          for (Identifier i : identifier)
372            dst.identifier.add(i.copy());
373        };
374        dst.code = code == null ? null : code.copy();
375        dst.period = period == null ? null : period.copy();
376        dst.issuer = issuer == null ? null : issuer.copy();
377      }
378
379      @Override
380      public boolean equalsDeep(Base other_) {
381        if (!super.equalsDeep(other_))
382          return false;
383        if (!(other_ instanceof PractitionerQualificationComponent))
384          return false;
385        PractitionerQualificationComponent o = (PractitionerQualificationComponent) other_;
386        return compareDeep(identifier, o.identifier, true) && compareDeep(code, o.code, true) && compareDeep(period, o.period, true)
387           && compareDeep(issuer, o.issuer, true);
388      }
389
390      @Override
391      public boolean equalsShallow(Base other_) {
392        if (!super.equalsShallow(other_))
393          return false;
394        if (!(other_ instanceof PractitionerQualificationComponent))
395          return false;
396        PractitionerQualificationComponent o = (PractitionerQualificationComponent) other_;
397        return true;
398      }
399
400      public boolean isEmpty() {
401        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, code, period
402          , issuer);
403      }
404
405  public String fhirType() {
406    return "Practitioner.qualification";
407
408  }
409
410  }
411
412    /**
413     * An identifier that applies to this person in this role.
414     */
415    @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
416    @Description(shortDefinition="An identifier for the person as this agent", formalDefinition="An identifier that applies to this person in this role." )
417    protected List<Identifier> identifier;
418
419    /**
420     * Whether this practitioner's record is in active use.
421     */
422    @Child(name = "active", type = {BooleanType.class}, order=1, min=0, max=1, modifier=false, summary=true)
423    @Description(shortDefinition="Whether this practitioner's record is in active use", formalDefinition="Whether this practitioner's record is in active use." )
424    protected BooleanType active;
425
426    /**
427     * The name(s) associated with the practitioner.
428     */
429    @Child(name = "name", type = {HumanName.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
430    @Description(shortDefinition="The name(s) associated with the practitioner", formalDefinition="The name(s) associated with the practitioner." )
431    protected List<HumanName> name;
432
433    /**
434     * A contact detail for the practitioner, e.g. a telephone number or an email address.
435     */
436    @Child(name = "telecom", type = {ContactPoint.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
437    @Description(shortDefinition="A contact detail for the practitioner (that apply to all roles)", formalDefinition="A contact detail for the practitioner, e.g. a telephone number or an email address." )
438    protected List<ContactPoint> telecom;
439
440    /**
441     * Address(es) of the practitioner that are not role specific (typically home address). 
442Work addresses are not typically entered in this property as they are usually role dependent.
443     */
444    @Child(name = "address", type = {Address.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
445    @Description(shortDefinition="Address(es) of the practitioner that are not role specific (typically home address)", formalDefinition="Address(es) of the practitioner that are not role specific (typically home address). \rWork addresses are not typically entered in this property as they are usually role dependent." )
446    protected List<Address> address;
447
448    /**
449     * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.
450     */
451    @Child(name = "gender", type = {CodeType.class}, order=5, min=0, max=1, modifier=false, summary=true)
452    @Description(shortDefinition="male | female | other | unknown", formalDefinition="Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes." )
453    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/administrative-gender")
454    protected Enumeration<AdministrativeGender> gender;
455
456    /**
457     * The date of birth for the practitioner.
458     */
459    @Child(name = "birthDate", type = {DateType.class}, order=6, min=0, max=1, modifier=false, summary=true)
460    @Description(shortDefinition="The date  on which the practitioner was born", formalDefinition="The date of birth for the practitioner." )
461    protected DateType birthDate;
462
463    /**
464     * Image of the person.
465     */
466    @Child(name = "photo", type = {Attachment.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
467    @Description(shortDefinition="Image of the person", formalDefinition="Image of the person." )
468    protected List<Attachment> photo;
469
470    /**
471     * The official certifications, training, and licenses that authorize or otherwise pertain to the provision of care by the practitioner.  For example, a medical license issued by a medical board authorizing the practitioner to practice medicine within a certian locality.
472     */
473    @Child(name = "qualification", type = {}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
474    @Description(shortDefinition="Certification, licenses, or training pertaining to the provision of care", formalDefinition="The official certifications, training, and licenses that authorize or otherwise pertain to the provision of care by the practitioner.  For example, a medical license issued by a medical board authorizing the practitioner to practice medicine within a certian locality." )
475    protected List<PractitionerQualificationComponent> qualification;
476
477    /**
478     * A language the practitioner can use in patient communication.
479     */
480    @Child(name = "communication", type = {CodeableConcept.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
481    @Description(shortDefinition="A language the practitioner can use in patient communication", formalDefinition="A language the practitioner can use in patient communication." )
482    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/languages")
483    protected List<CodeableConcept> communication;
484
485    private static final long serialVersionUID = 2128349259L;
486
487  /**
488   * Constructor
489   */
490    public Practitioner() {
491      super();
492    }
493
494    /**
495     * @return {@link #identifier} (An identifier that applies to this person in this role.)
496     */
497    public List<Identifier> getIdentifier() { 
498      if (this.identifier == null)
499        this.identifier = new ArrayList<Identifier>();
500      return this.identifier;
501    }
502
503    /**
504     * @return Returns a reference to <code>this</code> for easy method chaining
505     */
506    public Practitioner setIdentifier(List<Identifier> theIdentifier) { 
507      this.identifier = theIdentifier;
508      return this;
509    }
510
511    public boolean hasIdentifier() { 
512      if (this.identifier == null)
513        return false;
514      for (Identifier item : this.identifier)
515        if (!item.isEmpty())
516          return true;
517      return false;
518    }
519
520    public Identifier addIdentifier() { //3
521      Identifier t = new Identifier();
522      if (this.identifier == null)
523        this.identifier = new ArrayList<Identifier>();
524      this.identifier.add(t);
525      return t;
526    }
527
528    public Practitioner addIdentifier(Identifier t) { //3
529      if (t == null)
530        return this;
531      if (this.identifier == null)
532        this.identifier = new ArrayList<Identifier>();
533      this.identifier.add(t);
534      return this;
535    }
536
537    /**
538     * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3}
539     */
540    public Identifier getIdentifierFirstRep() { 
541      if (getIdentifier().isEmpty()) {
542        addIdentifier();
543      }
544      return getIdentifier().get(0);
545    }
546
547    /**
548     * @return {@link #active} (Whether this practitioner's record is in active use.). This is the underlying object with id, value and extensions. The accessor "getActive" gives direct access to the value
549     */
550    public BooleanType getActiveElement() { 
551      if (this.active == null)
552        if (Configuration.errorOnAutoCreate())
553          throw new Error("Attempt to auto-create Practitioner.active");
554        else if (Configuration.doAutoCreate())
555          this.active = new BooleanType(); // bb
556      return this.active;
557    }
558
559    public boolean hasActiveElement() { 
560      return this.active != null && !this.active.isEmpty();
561    }
562
563    public boolean hasActive() { 
564      return this.active != null && !this.active.isEmpty();
565    }
566
567    /**
568     * @param value {@link #active} (Whether this practitioner's record is in active use.). This is the underlying object with id, value and extensions. The accessor "getActive" gives direct access to the value
569     */
570    public Practitioner setActiveElement(BooleanType value) { 
571      this.active = value;
572      return this;
573    }
574
575    /**
576     * @return Whether this practitioner's record is in active use.
577     */
578    public boolean getActive() { 
579      return this.active == null || this.active.isEmpty() ? false : this.active.getValue();
580    }
581
582    /**
583     * @param value Whether this practitioner's record is in active use.
584     */
585    public Practitioner setActive(boolean value) { 
586        if (this.active == null)
587          this.active = new BooleanType();
588        this.active.setValue(value);
589      return this;
590    }
591
592    /**
593     * @return {@link #name} (The name(s) associated with the practitioner.)
594     */
595    public List<HumanName> getName() { 
596      if (this.name == null)
597        this.name = new ArrayList<HumanName>();
598      return this.name;
599    }
600
601    /**
602     * @return Returns a reference to <code>this</code> for easy method chaining
603     */
604    public Practitioner setName(List<HumanName> theName) { 
605      this.name = theName;
606      return this;
607    }
608
609    public boolean hasName() { 
610      if (this.name == null)
611        return false;
612      for (HumanName item : this.name)
613        if (!item.isEmpty())
614          return true;
615      return false;
616    }
617
618    public HumanName addName() { //3
619      HumanName t = new HumanName();
620      if (this.name == null)
621        this.name = new ArrayList<HumanName>();
622      this.name.add(t);
623      return t;
624    }
625
626    public Practitioner addName(HumanName t) { //3
627      if (t == null)
628        return this;
629      if (this.name == null)
630        this.name = new ArrayList<HumanName>();
631      this.name.add(t);
632      return this;
633    }
634
635    /**
636     * @return The first repetition of repeating field {@link #name}, creating it if it does not already exist {3}
637     */
638    public HumanName getNameFirstRep() { 
639      if (getName().isEmpty()) {
640        addName();
641      }
642      return getName().get(0);
643    }
644
645    /**
646     * @return {@link #telecom} (A contact detail for the practitioner, e.g. a telephone number or an email address.)
647     */
648    public List<ContactPoint> getTelecom() { 
649      if (this.telecom == null)
650        this.telecom = new ArrayList<ContactPoint>();
651      return this.telecom;
652    }
653
654    /**
655     * @return Returns a reference to <code>this</code> for easy method chaining
656     */
657    public Practitioner setTelecom(List<ContactPoint> theTelecom) { 
658      this.telecom = theTelecom;
659      return this;
660    }
661
662    public boolean hasTelecom() { 
663      if (this.telecom == null)
664        return false;
665      for (ContactPoint item : this.telecom)
666        if (!item.isEmpty())
667          return true;
668      return false;
669    }
670
671    public ContactPoint addTelecom() { //3
672      ContactPoint t = new ContactPoint();
673      if (this.telecom == null)
674        this.telecom = new ArrayList<ContactPoint>();
675      this.telecom.add(t);
676      return t;
677    }
678
679    public Practitioner addTelecom(ContactPoint t) { //3
680      if (t == null)
681        return this;
682      if (this.telecom == null)
683        this.telecom = new ArrayList<ContactPoint>();
684      this.telecom.add(t);
685      return this;
686    }
687
688    /**
689     * @return The first repetition of repeating field {@link #telecom}, creating it if it does not already exist {3}
690     */
691    public ContactPoint getTelecomFirstRep() { 
692      if (getTelecom().isEmpty()) {
693        addTelecom();
694      }
695      return getTelecom().get(0);
696    }
697
698    /**
699     * @return {@link #address} (Address(es) of the practitioner that are not role specific (typically home address). 
700Work addresses are not typically entered in this property as they are usually role dependent.)
701     */
702    public List<Address> getAddress() { 
703      if (this.address == null)
704        this.address = new ArrayList<Address>();
705      return this.address;
706    }
707
708    /**
709     * @return Returns a reference to <code>this</code> for easy method chaining
710     */
711    public Practitioner setAddress(List<Address> theAddress) { 
712      this.address = theAddress;
713      return this;
714    }
715
716    public boolean hasAddress() { 
717      if (this.address == null)
718        return false;
719      for (Address item : this.address)
720        if (!item.isEmpty())
721          return true;
722      return false;
723    }
724
725    public Address addAddress() { //3
726      Address t = new Address();
727      if (this.address == null)
728        this.address = new ArrayList<Address>();
729      this.address.add(t);
730      return t;
731    }
732
733    public Practitioner addAddress(Address t) { //3
734      if (t == null)
735        return this;
736      if (this.address == null)
737        this.address = new ArrayList<Address>();
738      this.address.add(t);
739      return this;
740    }
741
742    /**
743     * @return The first repetition of repeating field {@link #address}, creating it if it does not already exist {3}
744     */
745    public Address getAddressFirstRep() { 
746      if (getAddress().isEmpty()) {
747        addAddress();
748      }
749      return getAddress().get(0);
750    }
751
752    /**
753     * @return {@link #gender} (Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.). This is the underlying object with id, value and extensions. The accessor "getGender" gives direct access to the value
754     */
755    public Enumeration<AdministrativeGender> getGenderElement() { 
756      if (this.gender == null)
757        if (Configuration.errorOnAutoCreate())
758          throw new Error("Attempt to auto-create Practitioner.gender");
759        else if (Configuration.doAutoCreate())
760          this.gender = new Enumeration<AdministrativeGender>(new AdministrativeGenderEnumFactory()); // bb
761      return this.gender;
762    }
763
764    public boolean hasGenderElement() { 
765      return this.gender != null && !this.gender.isEmpty();
766    }
767
768    public boolean hasGender() { 
769      return this.gender != null && !this.gender.isEmpty();
770    }
771
772    /**
773     * @param value {@link #gender} (Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.). This is the underlying object with id, value and extensions. The accessor "getGender" gives direct access to the value
774     */
775    public Practitioner setGenderElement(Enumeration<AdministrativeGender> value) { 
776      this.gender = value;
777      return this;
778    }
779
780    /**
781     * @return Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.
782     */
783    public AdministrativeGender getGender() { 
784      return this.gender == null ? null : this.gender.getValue();
785    }
786
787    /**
788     * @param value Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.
789     */
790    public Practitioner setGender(AdministrativeGender value) { 
791      if (value == null)
792        this.gender = null;
793      else {
794        if (this.gender == null)
795          this.gender = new Enumeration<AdministrativeGender>(new AdministrativeGenderEnumFactory());
796        this.gender.setValue(value);
797      }
798      return this;
799    }
800
801    /**
802     * @return {@link #birthDate} (The date of birth for the practitioner.). This is the underlying object with id, value and extensions. The accessor "getBirthDate" gives direct access to the value
803     */
804    public DateType getBirthDateElement() { 
805      if (this.birthDate == null)
806        if (Configuration.errorOnAutoCreate())
807          throw new Error("Attempt to auto-create Practitioner.birthDate");
808        else if (Configuration.doAutoCreate())
809          this.birthDate = new DateType(); // bb
810      return this.birthDate;
811    }
812
813    public boolean hasBirthDateElement() { 
814      return this.birthDate != null && !this.birthDate.isEmpty();
815    }
816
817    public boolean hasBirthDate() { 
818      return this.birthDate != null && !this.birthDate.isEmpty();
819    }
820
821    /**
822     * @param value {@link #birthDate} (The date of birth for the practitioner.). This is the underlying object with id, value and extensions. The accessor "getBirthDate" gives direct access to the value
823     */
824    public Practitioner setBirthDateElement(DateType value) { 
825      this.birthDate = value;
826      return this;
827    }
828
829    /**
830     * @return The date of birth for the practitioner.
831     */
832    public Date getBirthDate() { 
833      return this.birthDate == null ? null : this.birthDate.getValue();
834    }
835
836    /**
837     * @param value The date of birth for the practitioner.
838     */
839    public Practitioner setBirthDate(Date value) { 
840      if (value == null)
841        this.birthDate = null;
842      else {
843        if (this.birthDate == null)
844          this.birthDate = new DateType();
845        this.birthDate.setValue(value);
846      }
847      return this;
848    }
849
850    /**
851     * @return {@link #photo} (Image of the person.)
852     */
853    public List<Attachment> getPhoto() { 
854      if (this.photo == null)
855        this.photo = new ArrayList<Attachment>();
856      return this.photo;
857    }
858
859    /**
860     * @return Returns a reference to <code>this</code> for easy method chaining
861     */
862    public Practitioner setPhoto(List<Attachment> thePhoto) { 
863      this.photo = thePhoto;
864      return this;
865    }
866
867    public boolean hasPhoto() { 
868      if (this.photo == null)
869        return false;
870      for (Attachment item : this.photo)
871        if (!item.isEmpty())
872          return true;
873      return false;
874    }
875
876    public Attachment addPhoto() { //3
877      Attachment t = new Attachment();
878      if (this.photo == null)
879        this.photo = new ArrayList<Attachment>();
880      this.photo.add(t);
881      return t;
882    }
883
884    public Practitioner addPhoto(Attachment t) { //3
885      if (t == null)
886        return this;
887      if (this.photo == null)
888        this.photo = new ArrayList<Attachment>();
889      this.photo.add(t);
890      return this;
891    }
892
893    /**
894     * @return The first repetition of repeating field {@link #photo}, creating it if it does not already exist {3}
895     */
896    public Attachment getPhotoFirstRep() { 
897      if (getPhoto().isEmpty()) {
898        addPhoto();
899      }
900      return getPhoto().get(0);
901    }
902
903    /**
904     * @return {@link #qualification} (The official certifications, training, and licenses that authorize or otherwise pertain to the provision of care by the practitioner.  For example, a medical license issued by a medical board authorizing the practitioner to practice medicine within a certian locality.)
905     */
906    public List<PractitionerQualificationComponent> getQualification() { 
907      if (this.qualification == null)
908        this.qualification = new ArrayList<PractitionerQualificationComponent>();
909      return this.qualification;
910    }
911
912    /**
913     * @return Returns a reference to <code>this</code> for easy method chaining
914     */
915    public Practitioner setQualification(List<PractitionerQualificationComponent> theQualification) { 
916      this.qualification = theQualification;
917      return this;
918    }
919
920    public boolean hasQualification() { 
921      if (this.qualification == null)
922        return false;
923      for (PractitionerQualificationComponent item : this.qualification)
924        if (!item.isEmpty())
925          return true;
926      return false;
927    }
928
929    public PractitionerQualificationComponent addQualification() { //3
930      PractitionerQualificationComponent t = new PractitionerQualificationComponent();
931      if (this.qualification == null)
932        this.qualification = new ArrayList<PractitionerQualificationComponent>();
933      this.qualification.add(t);
934      return t;
935    }
936
937    public Practitioner addQualification(PractitionerQualificationComponent t) { //3
938      if (t == null)
939        return this;
940      if (this.qualification == null)
941        this.qualification = new ArrayList<PractitionerQualificationComponent>();
942      this.qualification.add(t);
943      return this;
944    }
945
946    /**
947     * @return The first repetition of repeating field {@link #qualification}, creating it if it does not already exist {3}
948     */
949    public PractitionerQualificationComponent getQualificationFirstRep() { 
950      if (getQualification().isEmpty()) {
951        addQualification();
952      }
953      return getQualification().get(0);
954    }
955
956    /**
957     * @return {@link #communication} (A language the practitioner can use in patient communication.)
958     */
959    public List<CodeableConcept> getCommunication() { 
960      if (this.communication == null)
961        this.communication = new ArrayList<CodeableConcept>();
962      return this.communication;
963    }
964
965    /**
966     * @return Returns a reference to <code>this</code> for easy method chaining
967     */
968    public Practitioner setCommunication(List<CodeableConcept> theCommunication) { 
969      this.communication = theCommunication;
970      return this;
971    }
972
973    public boolean hasCommunication() { 
974      if (this.communication == null)
975        return false;
976      for (CodeableConcept item : this.communication)
977        if (!item.isEmpty())
978          return true;
979      return false;
980    }
981
982    public CodeableConcept addCommunication() { //3
983      CodeableConcept t = new CodeableConcept();
984      if (this.communication == null)
985        this.communication = new ArrayList<CodeableConcept>();
986      this.communication.add(t);
987      return t;
988    }
989
990    public Practitioner addCommunication(CodeableConcept t) { //3
991      if (t == null)
992        return this;
993      if (this.communication == null)
994        this.communication = new ArrayList<CodeableConcept>();
995      this.communication.add(t);
996      return this;
997    }
998
999    /**
1000     * @return The first repetition of repeating field {@link #communication}, creating it if it does not already exist {3}
1001     */
1002    public CodeableConcept getCommunicationFirstRep() { 
1003      if (getCommunication().isEmpty()) {
1004        addCommunication();
1005      }
1006      return getCommunication().get(0);
1007    }
1008
1009      protected void listChildren(List<Property> children) {
1010        super.listChildren(children);
1011        children.add(new Property("identifier", "Identifier", "An identifier that applies to this person in this role.", 0, java.lang.Integer.MAX_VALUE, identifier));
1012        children.add(new Property("active", "boolean", "Whether this practitioner's record is in active use.", 0, 1, active));
1013        children.add(new Property("name", "HumanName", "The name(s) associated with the practitioner.", 0, java.lang.Integer.MAX_VALUE, name));
1014        children.add(new Property("telecom", "ContactPoint", "A contact detail for the practitioner, e.g. a telephone number or an email address.", 0, java.lang.Integer.MAX_VALUE, telecom));
1015        children.add(new Property("address", "Address", "Address(es) of the practitioner that are not role specific (typically home address). \rWork addresses are not typically entered in this property as they are usually role dependent.", 0, java.lang.Integer.MAX_VALUE, address));
1016        children.add(new Property("gender", "code", "Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.", 0, 1, gender));
1017        children.add(new Property("birthDate", "date", "The date of birth for the practitioner.", 0, 1, birthDate));
1018        children.add(new Property("photo", "Attachment", "Image of the person.", 0, java.lang.Integer.MAX_VALUE, photo));
1019        children.add(new Property("qualification", "", "The official certifications, training, and licenses that authorize or otherwise pertain to the provision of care by the practitioner.  For example, a medical license issued by a medical board authorizing the practitioner to practice medicine within a certian locality.", 0, java.lang.Integer.MAX_VALUE, qualification));
1020        children.add(new Property("communication", "CodeableConcept", "A language the practitioner can use in patient communication.", 0, java.lang.Integer.MAX_VALUE, communication));
1021      }
1022
1023      @Override
1024      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
1025        switch (_hash) {
1026        case -1618432855: /*identifier*/  return new Property("identifier", "Identifier", "An identifier that applies to this person in this role.", 0, java.lang.Integer.MAX_VALUE, identifier);
1027        case -1422950650: /*active*/  return new Property("active", "boolean", "Whether this practitioner's record is in active use.", 0, 1, active);
1028        case 3373707: /*name*/  return new Property("name", "HumanName", "The name(s) associated with the practitioner.", 0, java.lang.Integer.MAX_VALUE, name);
1029        case -1429363305: /*telecom*/  return new Property("telecom", "ContactPoint", "A contact detail for the practitioner, e.g. a telephone number or an email address.", 0, java.lang.Integer.MAX_VALUE, telecom);
1030        case -1147692044: /*address*/  return new Property("address", "Address", "Address(es) of the practitioner that are not role specific (typically home address). \rWork addresses are not typically entered in this property as they are usually role dependent.", 0, java.lang.Integer.MAX_VALUE, address);
1031        case -1249512767: /*gender*/  return new Property("gender", "code", "Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.", 0, 1, gender);
1032        case -1210031859: /*birthDate*/  return new Property("birthDate", "date", "The date of birth for the practitioner.", 0, 1, birthDate);
1033        case 106642994: /*photo*/  return new Property("photo", "Attachment", "Image of the person.", 0, java.lang.Integer.MAX_VALUE, photo);
1034        case -631333393: /*qualification*/  return new Property("qualification", "", "The official certifications, training, and licenses that authorize or otherwise pertain to the provision of care by the practitioner.  For example, a medical license issued by a medical board authorizing the practitioner to practice medicine within a certian locality.", 0, java.lang.Integer.MAX_VALUE, qualification);
1035        case -1035284522: /*communication*/  return new Property("communication", "CodeableConcept", "A language the practitioner can use in patient communication.", 0, java.lang.Integer.MAX_VALUE, communication);
1036        default: return super.getNamedProperty(_hash, _name, _checkValid);
1037        }
1038
1039      }
1040
1041      @Override
1042      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
1043        switch (hash) {
1044        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier
1045        case -1422950650: /*active*/ return this.active == null ? new Base[0] : new Base[] {this.active}; // BooleanType
1046        case 3373707: /*name*/ return this.name == null ? new Base[0] : this.name.toArray(new Base[this.name.size()]); // HumanName
1047        case -1429363305: /*telecom*/ return this.telecom == null ? new Base[0] : this.telecom.toArray(new Base[this.telecom.size()]); // ContactPoint
1048        case -1147692044: /*address*/ return this.address == null ? new Base[0] : this.address.toArray(new Base[this.address.size()]); // Address
1049        case -1249512767: /*gender*/ return this.gender == null ? new Base[0] : new Base[] {this.gender}; // Enumeration<AdministrativeGender>
1050        case -1210031859: /*birthDate*/ return this.birthDate == null ? new Base[0] : new Base[] {this.birthDate}; // DateType
1051        case 106642994: /*photo*/ return this.photo == null ? new Base[0] : this.photo.toArray(new Base[this.photo.size()]); // Attachment
1052        case -631333393: /*qualification*/ return this.qualification == null ? new Base[0] : this.qualification.toArray(new Base[this.qualification.size()]); // PractitionerQualificationComponent
1053        case -1035284522: /*communication*/ return this.communication == null ? new Base[0] : this.communication.toArray(new Base[this.communication.size()]); // CodeableConcept
1054        default: return super.getProperty(hash, name, checkValid);
1055        }
1056
1057      }
1058
1059      @Override
1060      public Base setProperty(int hash, String name, Base value) throws FHIRException {
1061        switch (hash) {
1062        case -1618432855: // identifier
1063          this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier
1064          return value;
1065        case -1422950650: // active
1066          this.active = TypeConvertor.castToBoolean(value); // BooleanType
1067          return value;
1068        case 3373707: // name
1069          this.getName().add(TypeConvertor.castToHumanName(value)); // HumanName
1070          return value;
1071        case -1429363305: // telecom
1072          this.getTelecom().add(TypeConvertor.castToContactPoint(value)); // ContactPoint
1073          return value;
1074        case -1147692044: // address
1075          this.getAddress().add(TypeConvertor.castToAddress(value)); // Address
1076          return value;
1077        case -1249512767: // gender
1078          value = new AdministrativeGenderEnumFactory().fromType(TypeConvertor.castToCode(value));
1079          this.gender = (Enumeration) value; // Enumeration<AdministrativeGender>
1080          return value;
1081        case -1210031859: // birthDate
1082          this.birthDate = TypeConvertor.castToDate(value); // DateType
1083          return value;
1084        case 106642994: // photo
1085          this.getPhoto().add(TypeConvertor.castToAttachment(value)); // Attachment
1086          return value;
1087        case -631333393: // qualification
1088          this.getQualification().add((PractitionerQualificationComponent) value); // PractitionerQualificationComponent
1089          return value;
1090        case -1035284522: // communication
1091          this.getCommunication().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept
1092          return value;
1093        default: return super.setProperty(hash, name, value);
1094        }
1095
1096      }
1097
1098      @Override
1099      public Base setProperty(String name, Base value) throws FHIRException {
1100        if (name.equals("identifier")) {
1101          this.getIdentifier().add(TypeConvertor.castToIdentifier(value));
1102        } else if (name.equals("active")) {
1103          this.active = TypeConvertor.castToBoolean(value); // BooleanType
1104        } else if (name.equals("name")) {
1105          this.getName().add(TypeConvertor.castToHumanName(value));
1106        } else if (name.equals("telecom")) {
1107          this.getTelecom().add(TypeConvertor.castToContactPoint(value));
1108        } else if (name.equals("address")) {
1109          this.getAddress().add(TypeConvertor.castToAddress(value));
1110        } else if (name.equals("gender")) {
1111          value = new AdministrativeGenderEnumFactory().fromType(TypeConvertor.castToCode(value));
1112          this.gender = (Enumeration) value; // Enumeration<AdministrativeGender>
1113        } else if (name.equals("birthDate")) {
1114          this.birthDate = TypeConvertor.castToDate(value); // DateType
1115        } else if (name.equals("photo")) {
1116          this.getPhoto().add(TypeConvertor.castToAttachment(value));
1117        } else if (name.equals("qualification")) {
1118          this.getQualification().add((PractitionerQualificationComponent) value);
1119        } else if (name.equals("communication")) {
1120          this.getCommunication().add(TypeConvertor.castToCodeableConcept(value));
1121        } else
1122          return super.setProperty(name, value);
1123        return value;
1124      }
1125
1126      @Override
1127      public Base makeProperty(int hash, String name) throws FHIRException {
1128        switch (hash) {
1129        case -1618432855:  return addIdentifier(); 
1130        case -1422950650:  return getActiveElement();
1131        case 3373707:  return addName(); 
1132        case -1429363305:  return addTelecom(); 
1133        case -1147692044:  return addAddress(); 
1134        case -1249512767:  return getGenderElement();
1135        case -1210031859:  return getBirthDateElement();
1136        case 106642994:  return addPhoto(); 
1137        case -631333393:  return addQualification(); 
1138        case -1035284522:  return addCommunication(); 
1139        default: return super.makeProperty(hash, name);
1140        }
1141
1142      }
1143
1144      @Override
1145      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
1146        switch (hash) {
1147        case -1618432855: /*identifier*/ return new String[] {"Identifier"};
1148        case -1422950650: /*active*/ return new String[] {"boolean"};
1149        case 3373707: /*name*/ return new String[] {"HumanName"};
1150        case -1429363305: /*telecom*/ return new String[] {"ContactPoint"};
1151        case -1147692044: /*address*/ return new String[] {"Address"};
1152        case -1249512767: /*gender*/ return new String[] {"code"};
1153        case -1210031859: /*birthDate*/ return new String[] {"date"};
1154        case 106642994: /*photo*/ return new String[] {"Attachment"};
1155        case -631333393: /*qualification*/ return new String[] {};
1156        case -1035284522: /*communication*/ return new String[] {"CodeableConcept"};
1157        default: return super.getTypesForProperty(hash, name);
1158        }
1159
1160      }
1161
1162      @Override
1163      public Base addChild(String name) throws FHIRException {
1164        if (name.equals("identifier")) {
1165          return addIdentifier();
1166        }
1167        else if (name.equals("active")) {
1168          throw new FHIRException("Cannot call addChild on a primitive type Practitioner.active");
1169        }
1170        else if (name.equals("name")) {
1171          return addName();
1172        }
1173        else if (name.equals("telecom")) {
1174          return addTelecom();
1175        }
1176        else if (name.equals("address")) {
1177          return addAddress();
1178        }
1179        else if (name.equals("gender")) {
1180          throw new FHIRException("Cannot call addChild on a primitive type Practitioner.gender");
1181        }
1182        else if (name.equals("birthDate")) {
1183          throw new FHIRException("Cannot call addChild on a primitive type Practitioner.birthDate");
1184        }
1185        else if (name.equals("photo")) {
1186          return addPhoto();
1187        }
1188        else if (name.equals("qualification")) {
1189          return addQualification();
1190        }
1191        else if (name.equals("communication")) {
1192          return addCommunication();
1193        }
1194        else
1195          return super.addChild(name);
1196      }
1197
1198  public String fhirType() {
1199    return "Practitioner";
1200
1201  }
1202
1203      public Practitioner copy() {
1204        Practitioner dst = new Practitioner();
1205        copyValues(dst);
1206        return dst;
1207      }
1208
1209      public void copyValues(Practitioner dst) {
1210        super.copyValues(dst);
1211        if (identifier != null) {
1212          dst.identifier = new ArrayList<Identifier>();
1213          for (Identifier i : identifier)
1214            dst.identifier.add(i.copy());
1215        };
1216        dst.active = active == null ? null : active.copy();
1217        if (name != null) {
1218          dst.name = new ArrayList<HumanName>();
1219          for (HumanName i : name)
1220            dst.name.add(i.copy());
1221        };
1222        if (telecom != null) {
1223          dst.telecom = new ArrayList<ContactPoint>();
1224          for (ContactPoint i : telecom)
1225            dst.telecom.add(i.copy());
1226        };
1227        if (address != null) {
1228          dst.address = new ArrayList<Address>();
1229          for (Address i : address)
1230            dst.address.add(i.copy());
1231        };
1232        dst.gender = gender == null ? null : gender.copy();
1233        dst.birthDate = birthDate == null ? null : birthDate.copy();
1234        if (photo != null) {
1235          dst.photo = new ArrayList<Attachment>();
1236          for (Attachment i : photo)
1237            dst.photo.add(i.copy());
1238        };
1239        if (qualification != null) {
1240          dst.qualification = new ArrayList<PractitionerQualificationComponent>();
1241          for (PractitionerQualificationComponent i : qualification)
1242            dst.qualification.add(i.copy());
1243        };
1244        if (communication != null) {
1245          dst.communication = new ArrayList<CodeableConcept>();
1246          for (CodeableConcept i : communication)
1247            dst.communication.add(i.copy());
1248        };
1249      }
1250
1251      protected Practitioner typedCopy() {
1252        return copy();
1253      }
1254
1255      @Override
1256      public boolean equalsDeep(Base other_) {
1257        if (!super.equalsDeep(other_))
1258          return false;
1259        if (!(other_ instanceof Practitioner))
1260          return false;
1261        Practitioner o = (Practitioner) other_;
1262        return compareDeep(identifier, o.identifier, true) && compareDeep(active, o.active, true) && compareDeep(name, o.name, true)
1263           && compareDeep(telecom, o.telecom, true) && compareDeep(address, o.address, true) && compareDeep(gender, o.gender, true)
1264           && compareDeep(birthDate, o.birthDate, true) && compareDeep(photo, o.photo, true) && compareDeep(qualification, o.qualification, true)
1265           && compareDeep(communication, o.communication, true);
1266      }
1267
1268      @Override
1269      public boolean equalsShallow(Base other_) {
1270        if (!super.equalsShallow(other_))
1271          return false;
1272        if (!(other_ instanceof Practitioner))
1273          return false;
1274        Practitioner o = (Practitioner) other_;
1275        return compareValues(active, o.active, true) && compareValues(gender, o.gender, true) && compareValues(birthDate, o.birthDate, true)
1276          ;
1277      }
1278
1279      public boolean isEmpty() {
1280        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, active, name
1281          , telecom, address, gender, birthDate, photo, qualification, communication);
1282      }
1283
1284  @Override
1285  public ResourceType getResourceType() {
1286    return ResourceType.Practitioner;
1287   }
1288
1289 /**
1290   * Search parameter: <b>active</b>
1291   * <p>
1292   * Description: <b>Whether the practitioner record is active</b><br>
1293   * Type: <b>token</b><br>
1294   * Path: <b>Practitioner.active</b><br>
1295   * </p>
1296   */
1297  @SearchParamDefinition(name="active", path="Practitioner.active", description="Whether the practitioner record is active", type="token" )
1298  public static final String SP_ACTIVE = "active";
1299 /**
1300   * <b>Fluent Client</b> search parameter constant for <b>active</b>
1301   * <p>
1302   * Description: <b>Whether the practitioner record is active</b><br>
1303   * Type: <b>token</b><br>
1304   * Path: <b>Practitioner.active</b><br>
1305   * </p>
1306   */
1307  public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACTIVE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ACTIVE);
1308
1309 /**
1310   * Search parameter: <b>communication</b>
1311   * <p>
1312   * Description: <b>One of the languages that the practitioner can communicate with</b><br>
1313   * Type: <b>token</b><br>
1314   * Path: <b>Practitioner.communication</b><br>
1315   * </p>
1316   */
1317  @SearchParamDefinition(name="communication", path="Practitioner.communication", description="One of the languages that the practitioner can communicate with", type="token" )
1318  public static final String SP_COMMUNICATION = "communication";
1319 /**
1320   * <b>Fluent Client</b> search parameter constant for <b>communication</b>
1321   * <p>
1322   * Description: <b>One of the languages that the practitioner can communicate with</b><br>
1323   * Type: <b>token</b><br>
1324   * Path: <b>Practitioner.communication</b><br>
1325   * </p>
1326   */
1327  public static final ca.uhn.fhir.rest.gclient.TokenClientParam COMMUNICATION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_COMMUNICATION);
1328
1329 /**
1330   * Search parameter: <b>identifier</b>
1331   * <p>
1332   * Description: <b>A practitioner's Identifier</b><br>
1333   * Type: <b>token</b><br>
1334   * Path: <b>Practitioner.identifier</b><br>
1335   * </p>
1336   */
1337  @SearchParamDefinition(name="identifier", path="Practitioner.identifier", description="A practitioner's Identifier", type="token" )
1338  public static final String SP_IDENTIFIER = "identifier";
1339 /**
1340   * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
1341   * <p>
1342   * Description: <b>A practitioner's Identifier</b><br>
1343   * Type: <b>token</b><br>
1344   * Path: <b>Practitioner.identifier</b><br>
1345   * </p>
1346   */
1347  public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
1348
1349 /**
1350   * Search parameter: <b>name</b>
1351   * <p>
1352   * Description: <b>A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text</b><br>
1353   * Type: <b>string</b><br>
1354   * Path: <b>Practitioner.name</b><br>
1355   * </p>
1356   */
1357  @SearchParamDefinition(name="name", path="Practitioner.name", description="A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text", type="string" )
1358  public static final String SP_NAME = "name";
1359 /**
1360   * <b>Fluent Client</b> search parameter constant for <b>name</b>
1361   * <p>
1362   * Description: <b>A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text</b><br>
1363   * Type: <b>string</b><br>
1364   * Path: <b>Practitioner.name</b><br>
1365   * </p>
1366   */
1367  public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME);
1368
1369 /**
1370   * Search parameter: <b>address-city</b>
1371   * <p>
1372   * Description: <b>Multiple Resources: 
1373
1374* [Patient](patient.html): A city specified in an address
1375* [Person](person.html): A city specified in an address
1376* [Practitioner](practitioner.html): A city specified in an address
1377* [RelatedPerson](relatedperson.html): A city specified in an address
1378</b><br>
1379   * Type: <b>string</b><br>
1380   * Path: <b>Patient.address.city | Person.address.city | Practitioner.address.city | RelatedPerson.address.city</b><br>
1381   * </p>
1382   */
1383  @SearchParamDefinition(name="address-city", path="Patient.address.city | Person.address.city | Practitioner.address.city | RelatedPerson.address.city", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A city specified in an address\r\n* [Person](person.html): A city specified in an address\r\n* [Practitioner](practitioner.html): A city specified in an address\r\n* [RelatedPerson](relatedperson.html): A city specified in an address\r\n", type="string" )
1384  public static final String SP_ADDRESS_CITY = "address-city";
1385 /**
1386   * <b>Fluent Client</b> search parameter constant for <b>address-city</b>
1387   * <p>
1388   * Description: <b>Multiple Resources: 
1389
1390* [Patient](patient.html): A city specified in an address
1391* [Person](person.html): A city specified in an address
1392* [Practitioner](practitioner.html): A city specified in an address
1393* [RelatedPerson](relatedperson.html): A city specified in an address
1394</b><br>
1395   * Type: <b>string</b><br>
1396   * Path: <b>Patient.address.city | Person.address.city | Practitioner.address.city | RelatedPerson.address.city</b><br>
1397   * </p>
1398   */
1399  public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS_CITY = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS_CITY);
1400
1401 /**
1402   * Search parameter: <b>address-country</b>
1403   * <p>
1404   * Description: <b>Multiple Resources: 
1405
1406* [Patient](patient.html): A country specified in an address
1407* [Person](person.html): A country specified in an address
1408* [Practitioner](practitioner.html): A country specified in an address
1409* [RelatedPerson](relatedperson.html): A country specified in an address
1410</b><br>
1411   * Type: <b>string</b><br>
1412   * Path: <b>Patient.address.country | Person.address.country | Practitioner.address.country | RelatedPerson.address.country</b><br>
1413   * </p>
1414   */
1415  @SearchParamDefinition(name="address-country", path="Patient.address.country | Person.address.country | Practitioner.address.country | RelatedPerson.address.country", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A country specified in an address\r\n* [Person](person.html): A country specified in an address\r\n* [Practitioner](practitioner.html): A country specified in an address\r\n* [RelatedPerson](relatedperson.html): A country specified in an address\r\n", type="string" )
1416  public static final String SP_ADDRESS_COUNTRY = "address-country";
1417 /**
1418   * <b>Fluent Client</b> search parameter constant for <b>address-country</b>
1419   * <p>
1420   * Description: <b>Multiple Resources: 
1421
1422* [Patient](patient.html): A country specified in an address
1423* [Person](person.html): A country specified in an address
1424* [Practitioner](practitioner.html): A country specified in an address
1425* [RelatedPerson](relatedperson.html): A country specified in an address
1426</b><br>
1427   * Type: <b>string</b><br>
1428   * Path: <b>Patient.address.country | Person.address.country | Practitioner.address.country | RelatedPerson.address.country</b><br>
1429   * </p>
1430   */
1431  public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS_COUNTRY = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS_COUNTRY);
1432
1433 /**
1434   * Search parameter: <b>address-postalcode</b>
1435   * <p>
1436   * Description: <b>Multiple Resources: 
1437
1438* [Patient](patient.html): A postalCode specified in an address
1439* [Person](person.html): A postal code specified in an address
1440* [Practitioner](practitioner.html): A postalCode specified in an address
1441* [RelatedPerson](relatedperson.html): A postal code specified in an address
1442</b><br>
1443   * Type: <b>string</b><br>
1444   * Path: <b>Patient.address.postalCode | Person.address.postalCode | Practitioner.address.postalCode | RelatedPerson.address.postalCode</b><br>
1445   * </p>
1446   */
1447  @SearchParamDefinition(name="address-postalcode", path="Patient.address.postalCode | Person.address.postalCode | Practitioner.address.postalCode | RelatedPerson.address.postalCode", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A postalCode specified in an address\r\n* [Person](person.html): A postal code specified in an address\r\n* [Practitioner](practitioner.html): A postalCode specified in an address\r\n* [RelatedPerson](relatedperson.html): A postal code specified in an address\r\n", type="string" )
1448  public static final String SP_ADDRESS_POSTALCODE = "address-postalcode";
1449 /**
1450   * <b>Fluent Client</b> search parameter constant for <b>address-postalcode</b>
1451   * <p>
1452   * Description: <b>Multiple Resources: 
1453
1454* [Patient](patient.html): A postalCode specified in an address
1455* [Person](person.html): A postal code specified in an address
1456* [Practitioner](practitioner.html): A postalCode specified in an address
1457* [RelatedPerson](relatedperson.html): A postal code specified in an address
1458</b><br>
1459   * Type: <b>string</b><br>
1460   * Path: <b>Patient.address.postalCode | Person.address.postalCode | Practitioner.address.postalCode | RelatedPerson.address.postalCode</b><br>
1461   * </p>
1462   */
1463  public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS_POSTALCODE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS_POSTALCODE);
1464
1465 /**
1466   * Search parameter: <b>address-state</b>
1467   * <p>
1468   * Description: <b>Multiple Resources: 
1469
1470* [Patient](patient.html): A state specified in an address
1471* [Person](person.html): A state specified in an address
1472* [Practitioner](practitioner.html): A state specified in an address
1473* [RelatedPerson](relatedperson.html): A state specified in an address
1474</b><br>
1475   * Type: <b>string</b><br>
1476   * Path: <b>Patient.address.state | Person.address.state | Practitioner.address.state | RelatedPerson.address.state</b><br>
1477   * </p>
1478   */
1479  @SearchParamDefinition(name="address-state", path="Patient.address.state | Person.address.state | Practitioner.address.state | RelatedPerson.address.state", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A state specified in an address\r\n* [Person](person.html): A state specified in an address\r\n* [Practitioner](practitioner.html): A state specified in an address\r\n* [RelatedPerson](relatedperson.html): A state specified in an address\r\n", type="string" )
1480  public static final String SP_ADDRESS_STATE = "address-state";
1481 /**
1482   * <b>Fluent Client</b> search parameter constant for <b>address-state</b>
1483   * <p>
1484   * Description: <b>Multiple Resources: 
1485
1486* [Patient](patient.html): A state specified in an address
1487* [Person](person.html): A state specified in an address
1488* [Practitioner](practitioner.html): A state specified in an address
1489* [RelatedPerson](relatedperson.html): A state specified in an address
1490</b><br>
1491   * Type: <b>string</b><br>
1492   * Path: <b>Patient.address.state | Person.address.state | Practitioner.address.state | RelatedPerson.address.state</b><br>
1493   * </p>
1494   */
1495  public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS_STATE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS_STATE);
1496
1497 /**
1498   * Search parameter: <b>address-use</b>
1499   * <p>
1500   * Description: <b>Multiple Resources: 
1501
1502* [Patient](patient.html): A use code specified in an address
1503* [Person](person.html): A use code specified in an address
1504* [Practitioner](practitioner.html): A use code specified in an address
1505* [RelatedPerson](relatedperson.html): A use code specified in an address
1506</b><br>
1507   * Type: <b>token</b><br>
1508   * Path: <b>Patient.address.use | Person.address.use | Practitioner.address.use | RelatedPerson.address.use</b><br>
1509   * </p>
1510   */
1511  @SearchParamDefinition(name="address-use", path="Patient.address.use | Person.address.use | Practitioner.address.use | RelatedPerson.address.use", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A use code specified in an address\r\n* [Person](person.html): A use code specified in an address\r\n* [Practitioner](practitioner.html): A use code specified in an address\r\n* [RelatedPerson](relatedperson.html): A use code specified in an address\r\n", type="token" )
1512  public static final String SP_ADDRESS_USE = "address-use";
1513 /**
1514   * <b>Fluent Client</b> search parameter constant for <b>address-use</b>
1515   * <p>
1516   * Description: <b>Multiple Resources: 
1517
1518* [Patient](patient.html): A use code specified in an address
1519* [Person](person.html): A use code specified in an address
1520* [Practitioner](practitioner.html): A use code specified in an address
1521* [RelatedPerson](relatedperson.html): A use code specified in an address
1522</b><br>
1523   * Type: <b>token</b><br>
1524   * Path: <b>Patient.address.use | Person.address.use | Practitioner.address.use | RelatedPerson.address.use</b><br>
1525   * </p>
1526   */
1527  public static final ca.uhn.fhir.rest.gclient.TokenClientParam ADDRESS_USE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ADDRESS_USE);
1528
1529 /**
1530   * Search parameter: <b>address</b>
1531   * <p>
1532   * Description: <b>Multiple Resources: 
1533
1534* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text
1535* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text
1536* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text
1537* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text
1538</b><br>
1539   * Type: <b>string</b><br>
1540   * Path: <b>Patient.address | Person.address | Practitioner.address | RelatedPerson.address</b><br>
1541   * </p>
1542   */
1543  @SearchParamDefinition(name="address", path="Patient.address | Person.address | Practitioner.address | RelatedPerson.address", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n", type="string" )
1544  public static final String SP_ADDRESS = "address";
1545 /**
1546   * <b>Fluent Client</b> search parameter constant for <b>address</b>
1547   * <p>
1548   * Description: <b>Multiple Resources: 
1549
1550* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text
1551* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text
1552* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text
1553* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text
1554</b><br>
1555   * Type: <b>string</b><br>
1556   * Path: <b>Patient.address | Person.address | Practitioner.address | RelatedPerson.address</b><br>
1557   * </p>
1558   */
1559  public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS);
1560
1561 /**
1562   * Search parameter: <b>email</b>
1563   * <p>
1564   * Description: <b>Multiple Resources: 
1565
1566* [Patient](patient.html): A value in an email contact
1567* [Person](person.html): A value in an email contact
1568* [Practitioner](practitioner.html): A value in an email contact
1569* [PractitionerRole](practitionerrole.html): A value in an email contact
1570* [RelatedPerson](relatedperson.html): A value in an email contact
1571</b><br>
1572   * Type: <b>token</b><br>
1573   * Path: <b>Patient.telecom.where(system='email') | Person.telecom.where(system='email') | Practitioner.telecom.where(system='email') | PractitionerRole.telecom.where(system='email') | RelatedPerson.telecom.where(system='email')</b><br>
1574   * </p>
1575   */
1576  @SearchParamDefinition(name="email", path="Patient.telecom.where(system='email') | Person.telecom.where(system='email') | Practitioner.telecom.where(system='email') | PractitionerRole.telecom.where(system='email') | RelatedPerson.telecom.where(system='email')", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A value in an email contact\r\n* [Person](person.html): A value in an email contact\r\n* [Practitioner](practitioner.html): A value in an email contact\r\n* [PractitionerRole](practitionerrole.html): A value in an email contact\r\n* [RelatedPerson](relatedperson.html): A value in an email contact\r\n", type="token" )
1577  public static final String SP_EMAIL = "email";
1578 /**
1579   * <b>Fluent Client</b> search parameter constant for <b>email</b>
1580   * <p>
1581   * Description: <b>Multiple Resources: 
1582
1583* [Patient](patient.html): A value in an email contact
1584* [Person](person.html): A value in an email contact
1585* [Practitioner](practitioner.html): A value in an email contact
1586* [PractitionerRole](practitionerrole.html): A value in an email contact
1587* [RelatedPerson](relatedperson.html): A value in an email contact
1588</b><br>
1589   * Type: <b>token</b><br>
1590   * Path: <b>Patient.telecom.where(system='email') | Person.telecom.where(system='email') | Practitioner.telecom.where(system='email') | PractitionerRole.telecom.where(system='email') | RelatedPerson.telecom.where(system='email')</b><br>
1591   * </p>
1592   */
1593  public static final ca.uhn.fhir.rest.gclient.TokenClientParam EMAIL = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_EMAIL);
1594
1595 /**
1596   * Search parameter: <b>family</b>
1597   * <p>
1598   * Description: <b>Multiple Resources: 
1599
1600* [Patient](patient.html): A portion of the family name of the patient
1601* [Practitioner](practitioner.html): A portion of the family name
1602</b><br>
1603   * Type: <b>string</b><br>
1604   * Path: <b>Patient.name.family | Practitioner.name.family</b><br>
1605   * </p>
1606   */
1607  @SearchParamDefinition(name="family", path="Patient.name.family | Practitioner.name.family", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A portion of the family name of the patient\r\n* [Practitioner](practitioner.html): A portion of the family name\r\n", type="string" )
1608  public static final String SP_FAMILY = "family";
1609 /**
1610   * <b>Fluent Client</b> search parameter constant for <b>family</b>
1611   * <p>
1612   * Description: <b>Multiple Resources: 
1613
1614* [Patient](patient.html): A portion of the family name of the patient
1615* [Practitioner](practitioner.html): A portion of the family name
1616</b><br>
1617   * Type: <b>string</b><br>
1618   * Path: <b>Patient.name.family | Practitioner.name.family</b><br>
1619   * </p>
1620   */
1621  public static final ca.uhn.fhir.rest.gclient.StringClientParam FAMILY = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_FAMILY);
1622
1623 /**
1624   * Search parameter: <b>gender</b>
1625   * <p>
1626   * Description: <b>Multiple Resources: 
1627
1628* [Patient](patient.html): Gender of the patient
1629* [Person](person.html): The gender of the person
1630* [Practitioner](practitioner.html): Gender of the practitioner
1631* [RelatedPerson](relatedperson.html): Gender of the related person
1632</b><br>
1633   * Type: <b>token</b><br>
1634   * Path: <b>Patient.gender | Person.gender | Practitioner.gender | RelatedPerson.gender</b><br>
1635   * </p>
1636   */
1637  @SearchParamDefinition(name="gender", path="Patient.gender | Person.gender | Practitioner.gender | RelatedPerson.gender", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): Gender of the patient\r\n* [Person](person.html): The gender of the person\r\n* [Practitioner](practitioner.html): Gender of the practitioner\r\n* [RelatedPerson](relatedperson.html): Gender of the related person\r\n", type="token" )
1638  public static final String SP_GENDER = "gender";
1639 /**
1640   * <b>Fluent Client</b> search parameter constant for <b>gender</b>
1641   * <p>
1642   * Description: <b>Multiple Resources: 
1643
1644* [Patient](patient.html): Gender of the patient
1645* [Person](person.html): The gender of the person
1646* [Practitioner](practitioner.html): Gender of the practitioner
1647* [RelatedPerson](relatedperson.html): Gender of the related person
1648</b><br>
1649   * Type: <b>token</b><br>
1650   * Path: <b>Patient.gender | Person.gender | Practitioner.gender | RelatedPerson.gender</b><br>
1651   * </p>
1652   */
1653  public static final ca.uhn.fhir.rest.gclient.TokenClientParam GENDER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_GENDER);
1654
1655 /**
1656   * Search parameter: <b>given</b>
1657   * <p>
1658   * Description: <b>Multiple Resources: 
1659
1660* [Patient](patient.html): A portion of the given name of the patient
1661* [Practitioner](practitioner.html): A portion of the given name
1662</b><br>
1663   * Type: <b>string</b><br>
1664   * Path: <b>Patient.name.given | Practitioner.name.given</b><br>
1665   * </p>
1666   */
1667  @SearchParamDefinition(name="given", path="Patient.name.given | Practitioner.name.given", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A portion of the given name of the patient\r\n* [Practitioner](practitioner.html): A portion of the given name\r\n", type="string" )
1668  public static final String SP_GIVEN = "given";
1669 /**
1670   * <b>Fluent Client</b> search parameter constant for <b>given</b>
1671   * <p>
1672   * Description: <b>Multiple Resources: 
1673
1674* [Patient](patient.html): A portion of the given name of the patient
1675* [Practitioner](practitioner.html): A portion of the given name
1676</b><br>
1677   * Type: <b>string</b><br>
1678   * Path: <b>Patient.name.given | Practitioner.name.given</b><br>
1679   * </p>
1680   */
1681  public static final ca.uhn.fhir.rest.gclient.StringClientParam GIVEN = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_GIVEN);
1682
1683 /**
1684   * Search parameter: <b>phone</b>
1685   * <p>
1686   * Description: <b>Multiple Resources: 
1687
1688* [Patient](patient.html): A value in a phone contact
1689* [Person](person.html): A value in a phone contact
1690* [Practitioner](practitioner.html): A value in a phone contact
1691* [PractitionerRole](practitionerrole.html): A value in a phone contact
1692* [RelatedPerson](relatedperson.html): A value in a phone contact
1693</b><br>
1694   * Type: <b>token</b><br>
1695   * Path: <b>Patient.telecom.where(system='phone') | Person.telecom.where(system='phone') | Practitioner.telecom.where(system='phone') | PractitionerRole.telecom.where(system='phone') | RelatedPerson.telecom.where(system='phone')</b><br>
1696   * </p>
1697   */
1698  @SearchParamDefinition(name="phone", path="Patient.telecom.where(system='phone') | Person.telecom.where(system='phone') | Practitioner.telecom.where(system='phone') | PractitionerRole.telecom.where(system='phone') | RelatedPerson.telecom.where(system='phone')", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A value in a phone contact\r\n* [Person](person.html): A value in a phone contact\r\n* [Practitioner](practitioner.html): A value in a phone contact\r\n* [PractitionerRole](practitionerrole.html): A value in a phone contact\r\n* [RelatedPerson](relatedperson.html): A value in a phone contact\r\n", type="token" )
1699  public static final String SP_PHONE = "phone";
1700 /**
1701   * <b>Fluent Client</b> search parameter constant for <b>phone</b>
1702   * <p>
1703   * Description: <b>Multiple Resources: 
1704
1705* [Patient](patient.html): A value in a phone contact
1706* [Person](person.html): A value in a phone contact
1707* [Practitioner](practitioner.html): A value in a phone contact
1708* [PractitionerRole](practitionerrole.html): A value in a phone contact
1709* [RelatedPerson](relatedperson.html): A value in a phone contact
1710</b><br>
1711   * Type: <b>token</b><br>
1712   * Path: <b>Patient.telecom.where(system='phone') | Person.telecom.where(system='phone') | Practitioner.telecom.where(system='phone') | PractitionerRole.telecom.where(system='phone') | RelatedPerson.telecom.where(system='phone')</b><br>
1713   * </p>
1714   */
1715  public static final ca.uhn.fhir.rest.gclient.TokenClientParam PHONE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PHONE);
1716
1717 /**
1718   * Search parameter: <b>phonetic</b>
1719   * <p>
1720   * Description: <b>Multiple Resources: 
1721
1722* [Patient](patient.html): A portion of either family or given name using some kind of phonetic matching algorithm
1723* [Person](person.html): A portion of name using some kind of phonetic matching algorithm
1724* [Practitioner](practitioner.html): A portion of either family or given name using some kind of phonetic matching algorithm
1725* [RelatedPerson](relatedperson.html): A portion of name using some kind of phonetic matching algorithm
1726</b><br>
1727   * Type: <b>string</b><br>
1728   * Path: <b>Patient.name | Person.name | Practitioner.name | RelatedPerson.name</b><br>
1729   * </p>
1730   */
1731  @SearchParamDefinition(name="phonetic", path="Patient.name | Person.name | Practitioner.name | RelatedPerson.name", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A portion of either family or given name using some kind of phonetic matching algorithm\r\n* [Person](person.html): A portion of name using some kind of phonetic matching algorithm\r\n* [Practitioner](practitioner.html): A portion of either family or given name using some kind of phonetic matching algorithm\r\n* [RelatedPerson](relatedperson.html): A portion of name using some kind of phonetic matching algorithm\r\n", type="string" )
1732  public static final String SP_PHONETIC = "phonetic";
1733 /**
1734   * <b>Fluent Client</b> search parameter constant for <b>phonetic</b>
1735   * <p>
1736   * Description: <b>Multiple Resources: 
1737
1738* [Patient](patient.html): A portion of either family or given name using some kind of phonetic matching algorithm
1739* [Person](person.html): A portion of name using some kind of phonetic matching algorithm
1740* [Practitioner](practitioner.html): A portion of either family or given name using some kind of phonetic matching algorithm
1741* [RelatedPerson](relatedperson.html): A portion of name using some kind of phonetic matching algorithm
1742</b><br>
1743   * Type: <b>string</b><br>
1744   * Path: <b>Patient.name | Person.name | Practitioner.name | RelatedPerson.name</b><br>
1745   * </p>
1746   */
1747  public static final ca.uhn.fhir.rest.gclient.StringClientParam PHONETIC = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PHONETIC);
1748
1749 /**
1750   * Search parameter: <b>telecom</b>
1751   * <p>
1752   * Description: <b>Multiple Resources: 
1753
1754* [Patient](patient.html): The value in any kind of telecom details of the patient
1755* [Person](person.html): The value in any kind of contact
1756* [Practitioner](practitioner.html): The value in any kind of contact
1757* [PractitionerRole](practitionerrole.html): The value in any kind of contact
1758* [RelatedPerson](relatedperson.html): The value in any kind of contact
1759</b><br>
1760   * Type: <b>token</b><br>
1761   * Path: <b>Patient.telecom | Person.telecom | Practitioner.telecom | PractitionerRole.telecom | RelatedPerson.telecom</b><br>
1762   * </p>
1763   */
1764  @SearchParamDefinition(name="telecom", path="Patient.telecom | Person.telecom | Practitioner.telecom | PractitionerRole.telecom | RelatedPerson.telecom", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): The value in any kind of telecom details of the patient\r\n* [Person](person.html): The value in any kind of contact\r\n* [Practitioner](practitioner.html): The value in any kind of contact\r\n* [PractitionerRole](practitionerrole.html): The value in any kind of contact\r\n* [RelatedPerson](relatedperson.html): The value in any kind of contact\r\n", type="token" )
1765  public static final String SP_TELECOM = "telecom";
1766 /**
1767   * <b>Fluent Client</b> search parameter constant for <b>telecom</b>
1768   * <p>
1769   * Description: <b>Multiple Resources: 
1770
1771* [Patient](patient.html): The value in any kind of telecom details of the patient
1772* [Person](person.html): The value in any kind of contact
1773* [Practitioner](practitioner.html): The value in any kind of contact
1774* [PractitionerRole](practitionerrole.html): The value in any kind of contact
1775* [RelatedPerson](relatedperson.html): The value in any kind of contact
1776</b><br>
1777   * Type: <b>token</b><br>
1778   * Path: <b>Patient.telecom | Person.telecom | Practitioner.telecom | PractitionerRole.telecom | RelatedPerson.telecom</b><br>
1779   * </p>
1780   */
1781  public static final ca.uhn.fhir.rest.gclient.TokenClientParam TELECOM = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TELECOM);
1782
1783
1784}
1785