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