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