001package org.hl7.fhir.dstu3.model; 002 003/* 004 Copyright (c) 2011+, HL7, Inc. 005 All rights reserved. 006 007 Redistribution and use in source and binary forms, with or without modification, 008 are permitted provided that the following conditions are met: 009 010 * Redistributions of source code must retain the above copyright notice, this 011 list of conditions and the following disclaimer. 012 * Redistributions in binary form must reproduce the above copyright notice, 013 this list of conditions and the following disclaimer in the documentation 014 and/or other materials provided with the distribution. 015 * Neither the name of HL7 nor the names of its contributors may be used to 016 endorse or promote products derived from this software without specific 017 prior written permission. 018 019 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 020 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 021 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 022 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 023 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 024 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 025 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 026 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 027 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 028 POSSIBILITY OF SUCH DAMAGE. 029 030*/ 031 032// Generated on Fri, Mar 16, 2018 15:21+1100 for FHIR v3.0.1 033 034import java.util.*; 035 036import org.hl7.fhir.utilities.Utilities; 037import ca.uhn.fhir.model.api.annotation.ResourceDef; 038import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 039import ca.uhn.fhir.model.api.annotation.Child; 040import ca.uhn.fhir.model.api.annotation.ChildOrder; 041import ca.uhn.fhir.model.api.annotation.Description; 042import ca.uhn.fhir.model.api.annotation.Block; 043import org.hl7.fhir.instance.model.api.*; 044import org.hl7.fhir.exceptions.FHIRException; 045import org.hl7.fhir.exceptions.FHIRFormatError; 046/** 047 * A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, etc. 048 */ 049@ResourceDef(name="Organization", profile="http://hl7.org/fhir/StructureDefinition/Organization") 050public class Organization extends DomainResource { 051 052 @Block() 053 public static class OrganizationContactComponent extends BackboneElement implements IBaseBackboneElement { 054 /** 055 * Indicates a purpose for which the contact can be reached. 056 */ 057 @Child(name = "purpose", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) 058 @Description(shortDefinition="The type of contact", formalDefinition="Indicates a purpose for which the contact can be reached." ) 059 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/contactentity-type") 060 protected CodeableConcept purpose; 061 062 /** 063 * A name associated with the contact. 064 */ 065 @Child(name = "name", type = {HumanName.class}, order=2, min=0, max=1, modifier=false, summary=false) 066 @Description(shortDefinition="A name associated with the contact", formalDefinition="A name associated with the contact." ) 067 protected HumanName name; 068 069 /** 070 * A contact detail (e.g. a telephone number or an email address) by which the party may be contacted. 071 */ 072 @Child(name = "telecom", type = {ContactPoint.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 073 @Description(shortDefinition="Contact details (telephone, email, etc.) for a contact", formalDefinition="A contact detail (e.g. a telephone number or an email address) by which the party may be contacted." ) 074 protected List<ContactPoint> telecom; 075 076 /** 077 * Visiting or postal addresses for the contact. 078 */ 079 @Child(name = "address", type = {Address.class}, order=4, min=0, max=1, modifier=false, summary=false) 080 @Description(shortDefinition="Visiting or postal addresses for the contact", formalDefinition="Visiting or postal addresses for the contact." ) 081 protected Address address; 082 083 private static final long serialVersionUID = 1831121305L; 084 085 /** 086 * Constructor 087 */ 088 public OrganizationContactComponent() { 089 super(); 090 } 091 092 /** 093 * @return {@link #purpose} (Indicates a purpose for which the contact can be reached.) 094 */ 095 public CodeableConcept getPurpose() { 096 if (this.purpose == null) 097 if (Configuration.errorOnAutoCreate()) 098 throw new Error("Attempt to auto-create OrganizationContactComponent.purpose"); 099 else if (Configuration.doAutoCreate()) 100 this.purpose = new CodeableConcept(); // cc 101 return this.purpose; 102 } 103 104 public boolean hasPurpose() { 105 return this.purpose != null && !this.purpose.isEmpty(); 106 } 107 108 /** 109 * @param value {@link #purpose} (Indicates a purpose for which the contact can be reached.) 110 */ 111 public OrganizationContactComponent setPurpose(CodeableConcept value) { 112 this.purpose = value; 113 return this; 114 } 115 116 /** 117 * @return {@link #name} (A name associated with the contact.) 118 */ 119 public HumanName getName() { 120 if (this.name == null) 121 if (Configuration.errorOnAutoCreate()) 122 throw new Error("Attempt to auto-create OrganizationContactComponent.name"); 123 else if (Configuration.doAutoCreate()) 124 this.name = new HumanName(); // cc 125 return this.name; 126 } 127 128 public boolean hasName() { 129 return this.name != null && !this.name.isEmpty(); 130 } 131 132 /** 133 * @param value {@link #name} (A name associated with the contact.) 134 */ 135 public OrganizationContactComponent setName(HumanName value) { 136 this.name = value; 137 return this; 138 } 139 140 /** 141 * @return {@link #telecom} (A contact detail (e.g. a telephone number or an email address) by which the party may be contacted.) 142 */ 143 public List<ContactPoint> getTelecom() { 144 if (this.telecom == null) 145 this.telecom = new ArrayList<ContactPoint>(); 146 return this.telecom; 147 } 148 149 /** 150 * @return Returns a reference to <code>this</code> for easy method chaining 151 */ 152 public OrganizationContactComponent setTelecom(List<ContactPoint> theTelecom) { 153 this.telecom = theTelecom; 154 return this; 155 } 156 157 public boolean hasTelecom() { 158 if (this.telecom == null) 159 return false; 160 for (ContactPoint item : this.telecom) 161 if (!item.isEmpty()) 162 return true; 163 return false; 164 } 165 166 public ContactPoint addTelecom() { //3 167 ContactPoint t = new ContactPoint(); 168 if (this.telecom == null) 169 this.telecom = new ArrayList<ContactPoint>(); 170 this.telecom.add(t); 171 return t; 172 } 173 174 public OrganizationContactComponent addTelecom(ContactPoint t) { //3 175 if (t == null) 176 return this; 177 if (this.telecom == null) 178 this.telecom = new ArrayList<ContactPoint>(); 179 this.telecom.add(t); 180 return this; 181 } 182 183 /** 184 * @return The first repetition of repeating field {@link #telecom}, creating it if it does not already exist 185 */ 186 public ContactPoint getTelecomFirstRep() { 187 if (getTelecom().isEmpty()) { 188 addTelecom(); 189 } 190 return getTelecom().get(0); 191 } 192 193 /** 194 * @return {@link #address} (Visiting or postal addresses for the contact.) 195 */ 196 public Address getAddress() { 197 if (this.address == null) 198 if (Configuration.errorOnAutoCreate()) 199 throw new Error("Attempt to auto-create OrganizationContactComponent.address"); 200 else if (Configuration.doAutoCreate()) 201 this.address = new Address(); // cc 202 return this.address; 203 } 204 205 public boolean hasAddress() { 206 return this.address != null && !this.address.isEmpty(); 207 } 208 209 /** 210 * @param value {@link #address} (Visiting or postal addresses for the contact.) 211 */ 212 public OrganizationContactComponent setAddress(Address value) { 213 this.address = value; 214 return this; 215 } 216 217 protected void listChildren(List<Property> children) { 218 super.listChildren(children); 219 children.add(new Property("purpose", "CodeableConcept", "Indicates a purpose for which the contact can be reached.", 0, 1, purpose)); 220 children.add(new Property("name", "HumanName", "A name associated with the contact.", 0, 1, name)); 221 children.add(new Property("telecom", "ContactPoint", "A contact detail (e.g. a telephone number or an email address) by which the party may be contacted.", 0, java.lang.Integer.MAX_VALUE, telecom)); 222 children.add(new Property("address", "Address", "Visiting or postal addresses for the contact.", 0, 1, address)); 223 } 224 225 @Override 226 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 227 switch (_hash) { 228 case -220463842: /*purpose*/ return new Property("purpose", "CodeableConcept", "Indicates a purpose for which the contact can be reached.", 0, 1, purpose); 229 case 3373707: /*name*/ return new Property("name", "HumanName", "A name associated with the contact.", 0, 1, name); 230 case -1429363305: /*telecom*/ return new Property("telecom", "ContactPoint", "A contact detail (e.g. a telephone number or an email address) by which the party may be contacted.", 0, java.lang.Integer.MAX_VALUE, telecom); 231 case -1147692044: /*address*/ return new Property("address", "Address", "Visiting or postal addresses for the contact.", 0, 1, address); 232 default: return super.getNamedProperty(_hash, _name, _checkValid); 233 } 234 235 } 236 237 @Override 238 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 239 switch (hash) { 240 case -220463842: /*purpose*/ return this.purpose == null ? new Base[0] : new Base[] {this.purpose}; // CodeableConcept 241 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // HumanName 242 case -1429363305: /*telecom*/ return this.telecom == null ? new Base[0] : this.telecom.toArray(new Base[this.telecom.size()]); // ContactPoint 243 case -1147692044: /*address*/ return this.address == null ? new Base[0] : new Base[] {this.address}; // Address 244 default: return super.getProperty(hash, name, checkValid); 245 } 246 247 } 248 249 @Override 250 public Base setProperty(int hash, String name, Base value) throws FHIRException { 251 switch (hash) { 252 case -220463842: // purpose 253 this.purpose = castToCodeableConcept(value); // CodeableConcept 254 return value; 255 case 3373707: // name 256 this.name = castToHumanName(value); // HumanName 257 return value; 258 case -1429363305: // telecom 259 this.getTelecom().add(castToContactPoint(value)); // ContactPoint 260 return value; 261 case -1147692044: // address 262 this.address = castToAddress(value); // Address 263 return value; 264 default: return super.setProperty(hash, name, value); 265 } 266 267 } 268 269 @Override 270 public Base setProperty(String name, Base value) throws FHIRException { 271 if (name.equals("purpose")) { 272 this.purpose = castToCodeableConcept(value); // CodeableConcept 273 } else if (name.equals("name")) { 274 this.name = castToHumanName(value); // HumanName 275 } else if (name.equals("telecom")) { 276 this.getTelecom().add(castToContactPoint(value)); 277 } else if (name.equals("address")) { 278 this.address = castToAddress(value); // Address 279 } else 280 return super.setProperty(name, value); 281 return value; 282 } 283 284 @Override 285 public Base makeProperty(int hash, String name) throws FHIRException { 286 switch (hash) { 287 case -220463842: return getPurpose(); 288 case 3373707: return getName(); 289 case -1429363305: return addTelecom(); 290 case -1147692044: return getAddress(); 291 default: return super.makeProperty(hash, name); 292 } 293 294 } 295 296 @Override 297 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 298 switch (hash) { 299 case -220463842: /*purpose*/ return new String[] {"CodeableConcept"}; 300 case 3373707: /*name*/ return new String[] {"HumanName"}; 301 case -1429363305: /*telecom*/ return new String[] {"ContactPoint"}; 302 case -1147692044: /*address*/ return new String[] {"Address"}; 303 default: return super.getTypesForProperty(hash, name); 304 } 305 306 } 307 308 @Override 309 public Base addChild(String name) throws FHIRException { 310 if (name.equals("purpose")) { 311 this.purpose = new CodeableConcept(); 312 return this.purpose; 313 } 314 else if (name.equals("name")) { 315 this.name = new HumanName(); 316 return this.name; 317 } 318 else if (name.equals("telecom")) { 319 return addTelecom(); 320 } 321 else if (name.equals("address")) { 322 this.address = new Address(); 323 return this.address; 324 } 325 else 326 return super.addChild(name); 327 } 328 329 public OrganizationContactComponent copy() { 330 OrganizationContactComponent dst = new OrganizationContactComponent(); 331 copyValues(dst); 332 dst.purpose = purpose == null ? null : purpose.copy(); 333 dst.name = name == null ? null : name.copy(); 334 if (telecom != null) { 335 dst.telecom = new ArrayList<ContactPoint>(); 336 for (ContactPoint i : telecom) 337 dst.telecom.add(i.copy()); 338 }; 339 dst.address = address == null ? null : address.copy(); 340 return dst; 341 } 342 343 @Override 344 public boolean equalsDeep(Base other_) { 345 if (!super.equalsDeep(other_)) 346 return false; 347 if (!(other_ instanceof OrganizationContactComponent)) 348 return false; 349 OrganizationContactComponent o = (OrganizationContactComponent) other_; 350 return compareDeep(purpose, o.purpose, true) && compareDeep(name, o.name, true) && compareDeep(telecom, o.telecom, true) 351 && compareDeep(address, o.address, true); 352 } 353 354 @Override 355 public boolean equalsShallow(Base other_) { 356 if (!super.equalsShallow(other_)) 357 return false; 358 if (!(other_ instanceof OrganizationContactComponent)) 359 return false; 360 OrganizationContactComponent o = (OrganizationContactComponent) other_; 361 return true; 362 } 363 364 public boolean isEmpty() { 365 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(purpose, name, telecom, address 366 ); 367 } 368 369 public String fhirType() { 370 return "Organization.contact"; 371 372 } 373 374 } 375 376 /** 377 * Identifier for the organization that is used to identify the organization across multiple disparate systems. 378 */ 379 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 380 @Description(shortDefinition="Identifies this organization across multiple systems", formalDefinition="Identifier for the organization that is used to identify the organization across multiple disparate systems." ) 381 protected List<Identifier> identifier; 382 383 /** 384 * Whether the organization's record is still in active use. 385 */ 386 @Child(name = "active", type = {BooleanType.class}, order=1, min=0, max=1, modifier=true, summary=true) 387 @Description(shortDefinition="Whether the organization's record is still in active use", formalDefinition="Whether the organization's record is still in active use." ) 388 protected BooleanType active; 389 390 /** 391 * The kind(s) of organization that this is. 392 */ 393 @Child(name = "type", type = {CodeableConcept.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 394 @Description(shortDefinition="Kind of organization", formalDefinition="The kind(s) of organization that this is." ) 395 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/organization-type") 396 protected List<CodeableConcept> type; 397 398 /** 399 * A name associated with the organization. 400 */ 401 @Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true) 402 @Description(shortDefinition="Name used for the organization", formalDefinition="A name associated with the organization." ) 403 protected StringType name; 404 405 /** 406 * A list of alternate names that the organization is known as, or was known as in the past. 407 */ 408 @Child(name = "alias", type = {StringType.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 409 @Description(shortDefinition="A list of alternate names that the organization is known as, or was known as in the past", formalDefinition="A list of alternate names that the organization is known as, or was known as in the past." ) 410 protected List<StringType> alias; 411 412 /** 413 * A contact detail for the organization. 414 */ 415 @Child(name = "telecom", type = {ContactPoint.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 416 @Description(shortDefinition="A contact detail for the organization", formalDefinition="A contact detail for the organization." ) 417 protected List<ContactPoint> telecom; 418 419 /** 420 * An address for the organization. 421 */ 422 @Child(name = "address", type = {Address.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 423 @Description(shortDefinition="An address for the organization", formalDefinition="An address for the organization." ) 424 protected List<Address> address; 425 426 /** 427 * The organization of which this organization forms a part. 428 */ 429 @Child(name = "partOf", type = {Organization.class}, order=7, min=0, max=1, modifier=false, summary=true) 430 @Description(shortDefinition="The organization of which this organization forms a part", formalDefinition="The organization of which this organization forms a part." ) 431 protected Reference partOf; 432 433 /** 434 * The actual object that is the target of the reference (The organization of which this organization forms a part.) 435 */ 436 protected Organization partOfTarget; 437 438 /** 439 * Contact for the organization for a certain purpose. 440 */ 441 @Child(name = "contact", type = {}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 442 @Description(shortDefinition="Contact for the organization for a certain purpose", formalDefinition="Contact for the organization for a certain purpose." ) 443 protected List<OrganizationContactComponent> contact; 444 445 /** 446 * Technical endpoints providing access to services operated for the organization. 447 */ 448 @Child(name = "endpoint", type = {Endpoint.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 449 @Description(shortDefinition="Technical endpoints providing access to services operated for the organization", formalDefinition="Technical endpoints providing access to services operated for the organization." ) 450 protected List<Reference> endpoint; 451 /** 452 * The actual objects that are the target of the reference (Technical endpoints providing access to services operated for the organization.) 453 */ 454 protected List<Endpoint> endpointTarget; 455 456 457 private static final long serialVersionUID = -2113244111L; 458 459 /** 460 * Constructor 461 */ 462 public Organization() { 463 super(); 464 } 465 466 /** 467 * @return {@link #identifier} (Identifier for the organization that is used to identify the organization across multiple disparate systems.) 468 */ 469 public List<Identifier> getIdentifier() { 470 if (this.identifier == null) 471 this.identifier = new ArrayList<Identifier>(); 472 return this.identifier; 473 } 474 475 /** 476 * @return Returns a reference to <code>this</code> for easy method chaining 477 */ 478 public Organization setIdentifier(List<Identifier> theIdentifier) { 479 this.identifier = theIdentifier; 480 return this; 481 } 482 483 public boolean hasIdentifier() { 484 if (this.identifier == null) 485 return false; 486 for (Identifier item : this.identifier) 487 if (!item.isEmpty()) 488 return true; 489 return false; 490 } 491 492 public Identifier addIdentifier() { //3 493 Identifier t = new Identifier(); 494 if (this.identifier == null) 495 this.identifier = new ArrayList<Identifier>(); 496 this.identifier.add(t); 497 return t; 498 } 499 500 public Organization addIdentifier(Identifier t) { //3 501 if (t == null) 502 return this; 503 if (this.identifier == null) 504 this.identifier = new ArrayList<Identifier>(); 505 this.identifier.add(t); 506 return this; 507 } 508 509 /** 510 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist 511 */ 512 public Identifier getIdentifierFirstRep() { 513 if (getIdentifier().isEmpty()) { 514 addIdentifier(); 515 } 516 return getIdentifier().get(0); 517 } 518 519 /** 520 * @return {@link #active} (Whether the organization's record is still in active use.). This is the underlying object with id, value and extensions. The accessor "getActive" gives direct access to the value 521 */ 522 public BooleanType getActiveElement() { 523 if (this.active == null) 524 if (Configuration.errorOnAutoCreate()) 525 throw new Error("Attempt to auto-create Organization.active"); 526 else if (Configuration.doAutoCreate()) 527 this.active = new BooleanType(); // bb 528 return this.active; 529 } 530 531 public boolean hasActiveElement() { 532 return this.active != null && !this.active.isEmpty(); 533 } 534 535 public boolean hasActive() { 536 return this.active != null && !this.active.isEmpty(); 537 } 538 539 /** 540 * @param value {@link #active} (Whether the organization's record is still in active use.). This is the underlying object with id, value and extensions. The accessor "getActive" gives direct access to the value 541 */ 542 public Organization setActiveElement(BooleanType value) { 543 this.active = value; 544 return this; 545 } 546 547 /** 548 * @return Whether the organization's record is still in active use. 549 */ 550 public boolean getActive() { 551 return this.active == null || this.active.isEmpty() ? false : this.active.getValue(); 552 } 553 554 /** 555 * @param value Whether the organization's record is still in active use. 556 */ 557 public Organization setActive(boolean value) { 558 if (this.active == null) 559 this.active = new BooleanType(); 560 this.active.setValue(value); 561 return this; 562 } 563 564 /** 565 * @return {@link #type} (The kind(s) of organization that this is.) 566 */ 567 public List<CodeableConcept> getType() { 568 if (this.type == null) 569 this.type = new ArrayList<CodeableConcept>(); 570 return this.type; 571 } 572 573 /** 574 * @return Returns a reference to <code>this</code> for easy method chaining 575 */ 576 public Organization setType(List<CodeableConcept> theType) { 577 this.type = theType; 578 return this; 579 } 580 581 public boolean hasType() { 582 if (this.type == null) 583 return false; 584 for (CodeableConcept item : this.type) 585 if (!item.isEmpty()) 586 return true; 587 return false; 588 } 589 590 public CodeableConcept addType() { //3 591 CodeableConcept t = new CodeableConcept(); 592 if (this.type == null) 593 this.type = new ArrayList<CodeableConcept>(); 594 this.type.add(t); 595 return t; 596 } 597 598 public Organization addType(CodeableConcept t) { //3 599 if (t == null) 600 return this; 601 if (this.type == null) 602 this.type = new ArrayList<CodeableConcept>(); 603 this.type.add(t); 604 return this; 605 } 606 607 /** 608 * @return The first repetition of repeating field {@link #type}, creating it if it does not already exist 609 */ 610 public CodeableConcept getTypeFirstRep() { 611 if (getType().isEmpty()) { 612 addType(); 613 } 614 return getType().get(0); 615 } 616 617 /** 618 * @return {@link #name} (A name associated with the organization.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 619 */ 620 public StringType getNameElement() { 621 if (this.name == null) 622 if (Configuration.errorOnAutoCreate()) 623 throw new Error("Attempt to auto-create Organization.name"); 624 else if (Configuration.doAutoCreate()) 625 this.name = new StringType(); // bb 626 return this.name; 627 } 628 629 public boolean hasNameElement() { 630 return this.name != null && !this.name.isEmpty(); 631 } 632 633 public boolean hasName() { 634 return this.name != null && !this.name.isEmpty(); 635 } 636 637 /** 638 * @param value {@link #name} (A name associated with the organization.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 639 */ 640 public Organization setNameElement(StringType value) { 641 this.name = value; 642 return this; 643 } 644 645 /** 646 * @return A name associated with the organization. 647 */ 648 public String getName() { 649 return this.name == null ? null : this.name.getValue(); 650 } 651 652 /** 653 * @param value A name associated with the organization. 654 */ 655 public Organization setName(String value) { 656 if (Utilities.noString(value)) 657 this.name = null; 658 else { 659 if (this.name == null) 660 this.name = new StringType(); 661 this.name.setValue(value); 662 } 663 return this; 664 } 665 666 /** 667 * @return {@link #alias} (A list of alternate names that the organization is known as, or was known as in the past.) 668 */ 669 public List<StringType> getAlias() { 670 if (this.alias == null) 671 this.alias = new ArrayList<StringType>(); 672 return this.alias; 673 } 674 675 /** 676 * @return Returns a reference to <code>this</code> for easy method chaining 677 */ 678 public Organization setAlias(List<StringType> theAlias) { 679 this.alias = theAlias; 680 return this; 681 } 682 683 public boolean hasAlias() { 684 if (this.alias == null) 685 return false; 686 for (StringType item : this.alias) 687 if (!item.isEmpty()) 688 return true; 689 return false; 690 } 691 692 /** 693 * @return {@link #alias} (A list of alternate names that the organization is known as, or was known as in the past.) 694 */ 695 public StringType addAliasElement() {//2 696 StringType t = new StringType(); 697 if (this.alias == null) 698 this.alias = new ArrayList<StringType>(); 699 this.alias.add(t); 700 return t; 701 } 702 703 /** 704 * @param value {@link #alias} (A list of alternate names that the organization is known as, or was known as in the past.) 705 */ 706 public Organization addAlias(String value) { //1 707 StringType t = new StringType(); 708 t.setValue(value); 709 if (this.alias == null) 710 this.alias = new ArrayList<StringType>(); 711 this.alias.add(t); 712 return this; 713 } 714 715 /** 716 * @param value {@link #alias} (A list of alternate names that the organization is known as, or was known as in the past.) 717 */ 718 public boolean hasAlias(String value) { 719 if (this.alias == null) 720 return false; 721 for (StringType v : this.alias) 722 if (v.getValue().equals(value)) // string 723 return true; 724 return false; 725 } 726 727 /** 728 * @return {@link #telecom} (A contact detail for the organization.) 729 */ 730 public List<ContactPoint> getTelecom() { 731 if (this.telecom == null) 732 this.telecom = new ArrayList<ContactPoint>(); 733 return this.telecom; 734 } 735 736 /** 737 * @return Returns a reference to <code>this</code> for easy method chaining 738 */ 739 public Organization setTelecom(List<ContactPoint> theTelecom) { 740 this.telecom = theTelecom; 741 return this; 742 } 743 744 public boolean hasTelecom() { 745 if (this.telecom == null) 746 return false; 747 for (ContactPoint item : this.telecom) 748 if (!item.isEmpty()) 749 return true; 750 return false; 751 } 752 753 public ContactPoint addTelecom() { //3 754 ContactPoint t = new ContactPoint(); 755 if (this.telecom == null) 756 this.telecom = new ArrayList<ContactPoint>(); 757 this.telecom.add(t); 758 return t; 759 } 760 761 public Organization addTelecom(ContactPoint t) { //3 762 if (t == null) 763 return this; 764 if (this.telecom == null) 765 this.telecom = new ArrayList<ContactPoint>(); 766 this.telecom.add(t); 767 return this; 768 } 769 770 /** 771 * @return The first repetition of repeating field {@link #telecom}, creating it if it does not already exist 772 */ 773 public ContactPoint getTelecomFirstRep() { 774 if (getTelecom().isEmpty()) { 775 addTelecom(); 776 } 777 return getTelecom().get(0); 778 } 779 780 /** 781 * @return {@link #address} (An address for the organization.) 782 */ 783 public List<Address> getAddress() { 784 if (this.address == null) 785 this.address = new ArrayList<Address>(); 786 return this.address; 787 } 788 789 /** 790 * @return Returns a reference to <code>this</code> for easy method chaining 791 */ 792 public Organization setAddress(List<Address> theAddress) { 793 this.address = theAddress; 794 return this; 795 } 796 797 public boolean hasAddress() { 798 if (this.address == null) 799 return false; 800 for (Address item : this.address) 801 if (!item.isEmpty()) 802 return true; 803 return false; 804 } 805 806 public Address addAddress() { //3 807 Address t = new Address(); 808 if (this.address == null) 809 this.address = new ArrayList<Address>(); 810 this.address.add(t); 811 return t; 812 } 813 814 public Organization addAddress(Address t) { //3 815 if (t == null) 816 return this; 817 if (this.address == null) 818 this.address = new ArrayList<Address>(); 819 this.address.add(t); 820 return this; 821 } 822 823 /** 824 * @return The first repetition of repeating field {@link #address}, creating it if it does not already exist 825 */ 826 public Address getAddressFirstRep() { 827 if (getAddress().isEmpty()) { 828 addAddress(); 829 } 830 return getAddress().get(0); 831 } 832 833 /** 834 * @return {@link #partOf} (The organization of which this organization forms a part.) 835 */ 836 public Reference getPartOf() { 837 if (this.partOf == null) 838 if (Configuration.errorOnAutoCreate()) 839 throw new Error("Attempt to auto-create Organization.partOf"); 840 else if (Configuration.doAutoCreate()) 841 this.partOf = new Reference(); // cc 842 return this.partOf; 843 } 844 845 public boolean hasPartOf() { 846 return this.partOf != null && !this.partOf.isEmpty(); 847 } 848 849 /** 850 * @param value {@link #partOf} (The organization of which this organization forms a part.) 851 */ 852 public Organization setPartOf(Reference value) { 853 this.partOf = value; 854 return this; 855 } 856 857 /** 858 * @return {@link #partOf} 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. (The organization of which this organization forms a part.) 859 */ 860 public Organization getPartOfTarget() { 861 if (this.partOfTarget == null) 862 if (Configuration.errorOnAutoCreate()) 863 throw new Error("Attempt to auto-create Organization.partOf"); 864 else if (Configuration.doAutoCreate()) 865 this.partOfTarget = new Organization(); // aa 866 return this.partOfTarget; 867 } 868 869 /** 870 * @param value {@link #partOf} 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. (The organization of which this organization forms a part.) 871 */ 872 public Organization setPartOfTarget(Organization value) { 873 this.partOfTarget = value; 874 return this; 875 } 876 877 /** 878 * @return {@link #contact} (Contact for the organization for a certain purpose.) 879 */ 880 public List<OrganizationContactComponent> getContact() { 881 if (this.contact == null) 882 this.contact = new ArrayList<OrganizationContactComponent>(); 883 return this.contact; 884 } 885 886 /** 887 * @return Returns a reference to <code>this</code> for easy method chaining 888 */ 889 public Organization setContact(List<OrganizationContactComponent> theContact) { 890 this.contact = theContact; 891 return this; 892 } 893 894 public boolean hasContact() { 895 if (this.contact == null) 896 return false; 897 for (OrganizationContactComponent item : this.contact) 898 if (!item.isEmpty()) 899 return true; 900 return false; 901 } 902 903 public OrganizationContactComponent addContact() { //3 904 OrganizationContactComponent t = new OrganizationContactComponent(); 905 if (this.contact == null) 906 this.contact = new ArrayList<OrganizationContactComponent>(); 907 this.contact.add(t); 908 return t; 909 } 910 911 public Organization addContact(OrganizationContactComponent t) { //3 912 if (t == null) 913 return this; 914 if (this.contact == null) 915 this.contact = new ArrayList<OrganizationContactComponent>(); 916 this.contact.add(t); 917 return this; 918 } 919 920 /** 921 * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist 922 */ 923 public OrganizationContactComponent getContactFirstRep() { 924 if (getContact().isEmpty()) { 925 addContact(); 926 } 927 return getContact().get(0); 928 } 929 930 /** 931 * @return {@link #endpoint} (Technical endpoints providing access to services operated for the organization.) 932 */ 933 public List<Reference> getEndpoint() { 934 if (this.endpoint == null) 935 this.endpoint = new ArrayList<Reference>(); 936 return this.endpoint; 937 } 938 939 /** 940 * @return Returns a reference to <code>this</code> for easy method chaining 941 */ 942 public Organization setEndpoint(List<Reference> theEndpoint) { 943 this.endpoint = theEndpoint; 944 return this; 945 } 946 947 public boolean hasEndpoint() { 948 if (this.endpoint == null) 949 return false; 950 for (Reference item : this.endpoint) 951 if (!item.isEmpty()) 952 return true; 953 return false; 954 } 955 956 public Reference addEndpoint() { //3 957 Reference t = new Reference(); 958 if (this.endpoint == null) 959 this.endpoint = new ArrayList<Reference>(); 960 this.endpoint.add(t); 961 return t; 962 } 963 964 public Organization addEndpoint(Reference t) { //3 965 if (t == null) 966 return this; 967 if (this.endpoint == null) 968 this.endpoint = new ArrayList<Reference>(); 969 this.endpoint.add(t); 970 return this; 971 } 972 973 /** 974 * @return The first repetition of repeating field {@link #endpoint}, creating it if it does not already exist 975 */ 976 public Reference getEndpointFirstRep() { 977 if (getEndpoint().isEmpty()) { 978 addEndpoint(); 979 } 980 return getEndpoint().get(0); 981 } 982 983 /** 984 * @deprecated Use Reference#setResource(IBaseResource) instead 985 */ 986 @Deprecated 987 public List<Endpoint> getEndpointTarget() { 988 if (this.endpointTarget == null) 989 this.endpointTarget = new ArrayList<Endpoint>(); 990 return this.endpointTarget; 991 } 992 993 /** 994 * @deprecated Use Reference#setResource(IBaseResource) instead 995 */ 996 @Deprecated 997 public Endpoint addEndpointTarget() { 998 Endpoint r = new Endpoint(); 999 if (this.endpointTarget == null) 1000 this.endpointTarget = new ArrayList<Endpoint>(); 1001 this.endpointTarget.add(r); 1002 return r; 1003 } 1004 1005 protected void listChildren(List<Property> children) { 1006 super.listChildren(children); 1007 children.add(new Property("identifier", "Identifier", "Identifier for the organization that is used to identify the organization across multiple disparate systems.", 0, java.lang.Integer.MAX_VALUE, identifier)); 1008 children.add(new Property("active", "boolean", "Whether the organization's record is still in active use.", 0, 1, active)); 1009 children.add(new Property("type", "CodeableConcept", "The kind(s) of organization that this is.", 0, java.lang.Integer.MAX_VALUE, type)); 1010 children.add(new Property("name", "string", "A name associated with the organization.", 0, 1, name)); 1011 children.add(new Property("alias", "string", "A list of alternate names that the organization is known as, or was known as in the past.", 0, java.lang.Integer.MAX_VALUE, alias)); 1012 children.add(new Property("telecom", "ContactPoint", "A contact detail for the organization.", 0, java.lang.Integer.MAX_VALUE, telecom)); 1013 children.add(new Property("address", "Address", "An address for the organization.", 0, java.lang.Integer.MAX_VALUE, address)); 1014 children.add(new Property("partOf", "Reference(Organization)", "The organization of which this organization forms a part.", 0, 1, partOf)); 1015 children.add(new Property("contact", "", "Contact for the organization for a certain purpose.", 0, java.lang.Integer.MAX_VALUE, contact)); 1016 children.add(new Property("endpoint", "Reference(Endpoint)", "Technical endpoints providing access to services operated for the organization.", 0, java.lang.Integer.MAX_VALUE, endpoint)); 1017 } 1018 1019 @Override 1020 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1021 switch (_hash) { 1022 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Identifier for the organization that is used to identify the organization across multiple disparate systems.", 0, java.lang.Integer.MAX_VALUE, identifier); 1023 case -1422950650: /*active*/ return new Property("active", "boolean", "Whether the organization's record is still in active use.", 0, 1, active); 1024 case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The kind(s) of organization that this is.", 0, java.lang.Integer.MAX_VALUE, type); 1025 case 3373707: /*name*/ return new Property("name", "string", "A name associated with the organization.", 0, 1, name); 1026 case 92902992: /*alias*/ return new Property("alias", "string", "A list of alternate names that the organization is known as, or was known as in the past.", 0, java.lang.Integer.MAX_VALUE, alias); 1027 case -1429363305: /*telecom*/ return new Property("telecom", "ContactPoint", "A contact detail for the organization.", 0, java.lang.Integer.MAX_VALUE, telecom); 1028 case -1147692044: /*address*/ return new Property("address", "Address", "An address for the organization.", 0, java.lang.Integer.MAX_VALUE, address); 1029 case -995410646: /*partOf*/ return new Property("partOf", "Reference(Organization)", "The organization of which this organization forms a part.", 0, 1, partOf); 1030 case 951526432: /*contact*/ return new Property("contact", "", "Contact for the organization for a certain purpose.", 0, java.lang.Integer.MAX_VALUE, contact); 1031 case 1741102485: /*endpoint*/ return new Property("endpoint", "Reference(Endpoint)", "Technical endpoints providing access to services operated for the organization.", 0, java.lang.Integer.MAX_VALUE, endpoint); 1032 default: return super.getNamedProperty(_hash, _name, _checkValid); 1033 } 1034 1035 } 1036 1037 @Override 1038 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1039 switch (hash) { 1040 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 1041 case -1422950650: /*active*/ return this.active == null ? new Base[0] : new Base[] {this.active}; // BooleanType 1042 case 3575610: /*type*/ return this.type == null ? new Base[0] : this.type.toArray(new Base[this.type.size()]); // CodeableConcept 1043 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType 1044 case 92902992: /*alias*/ return this.alias == null ? new Base[0] : this.alias.toArray(new Base[this.alias.size()]); // StringType 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 -995410646: /*partOf*/ return this.partOf == null ? new Base[0] : new Base[] {this.partOf}; // Reference 1048 case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // OrganizationContactComponent 1049 case 1741102485: /*endpoint*/ return this.endpoint == null ? new Base[0] : this.endpoint.toArray(new Base[this.endpoint.size()]); // Reference 1050 default: return super.getProperty(hash, name, checkValid); 1051 } 1052 1053 } 1054 1055 @Override 1056 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1057 switch (hash) { 1058 case -1618432855: // identifier 1059 this.getIdentifier().add(castToIdentifier(value)); // Identifier 1060 return value; 1061 case -1422950650: // active 1062 this.active = castToBoolean(value); // BooleanType 1063 return value; 1064 case 3575610: // type 1065 this.getType().add(castToCodeableConcept(value)); // CodeableConcept 1066 return value; 1067 case 3373707: // name 1068 this.name = castToString(value); // StringType 1069 return value; 1070 case 92902992: // alias 1071 this.getAlias().add(castToString(value)); // StringType 1072 return value; 1073 case -1429363305: // telecom 1074 this.getTelecom().add(castToContactPoint(value)); // ContactPoint 1075 return value; 1076 case -1147692044: // address 1077 this.getAddress().add(castToAddress(value)); // Address 1078 return value; 1079 case -995410646: // partOf 1080 this.partOf = castToReference(value); // Reference 1081 return value; 1082 case 951526432: // contact 1083 this.getContact().add((OrganizationContactComponent) value); // OrganizationContactComponent 1084 return value; 1085 case 1741102485: // endpoint 1086 this.getEndpoint().add(castToReference(value)); // Reference 1087 return value; 1088 default: return super.setProperty(hash, name, value); 1089 } 1090 1091 } 1092 1093 @Override 1094 public Base setProperty(String name, Base value) throws FHIRException { 1095 if (name.equals("identifier")) { 1096 this.getIdentifier().add(castToIdentifier(value)); 1097 } else if (name.equals("active")) { 1098 this.active = castToBoolean(value); // BooleanType 1099 } else if (name.equals("type")) { 1100 this.getType().add(castToCodeableConcept(value)); 1101 } else if (name.equals("name")) { 1102 this.name = castToString(value); // StringType 1103 } else if (name.equals("alias")) { 1104 this.getAlias().add(castToString(value)); 1105 } else if (name.equals("telecom")) { 1106 this.getTelecom().add(castToContactPoint(value)); 1107 } else if (name.equals("address")) { 1108 this.getAddress().add(castToAddress(value)); 1109 } else if (name.equals("partOf")) { 1110 this.partOf = castToReference(value); // Reference 1111 } else if (name.equals("contact")) { 1112 this.getContact().add((OrganizationContactComponent) value); 1113 } else if (name.equals("endpoint")) { 1114 this.getEndpoint().add(castToReference(value)); 1115 } else 1116 return super.setProperty(name, value); 1117 return value; 1118 } 1119 1120 @Override 1121 public Base makeProperty(int hash, String name) throws FHIRException { 1122 switch (hash) { 1123 case -1618432855: return addIdentifier(); 1124 case -1422950650: return getActiveElement(); 1125 case 3575610: return addType(); 1126 case 3373707: return getNameElement(); 1127 case 92902992: return addAliasElement(); 1128 case -1429363305: return addTelecom(); 1129 case -1147692044: return addAddress(); 1130 case -995410646: return getPartOf(); 1131 case 951526432: return addContact(); 1132 case 1741102485: return addEndpoint(); 1133 default: return super.makeProperty(hash, name); 1134 } 1135 1136 } 1137 1138 @Override 1139 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1140 switch (hash) { 1141 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 1142 case -1422950650: /*active*/ return new String[] {"boolean"}; 1143 case 3575610: /*type*/ return new String[] {"CodeableConcept"}; 1144 case 3373707: /*name*/ return new String[] {"string"}; 1145 case 92902992: /*alias*/ return new String[] {"string"}; 1146 case -1429363305: /*telecom*/ return new String[] {"ContactPoint"}; 1147 case -1147692044: /*address*/ return new String[] {"Address"}; 1148 case -995410646: /*partOf*/ return new String[] {"Reference"}; 1149 case 951526432: /*contact*/ return new String[] {}; 1150 case 1741102485: /*endpoint*/ return new String[] {"Reference"}; 1151 default: return super.getTypesForProperty(hash, name); 1152 } 1153 1154 } 1155 1156 @Override 1157 public Base addChild(String name) throws FHIRException { 1158 if (name.equals("identifier")) { 1159 return addIdentifier(); 1160 } 1161 else if (name.equals("active")) { 1162 throw new FHIRException("Cannot call addChild on a primitive type Organization.active"); 1163 } 1164 else if (name.equals("type")) { 1165 return addType(); 1166 } 1167 else if (name.equals("name")) { 1168 throw new FHIRException("Cannot call addChild on a primitive type Organization.name"); 1169 } 1170 else if (name.equals("alias")) { 1171 throw new FHIRException("Cannot call addChild on a primitive type Organization.alias"); 1172 } 1173 else if (name.equals("telecom")) { 1174 return addTelecom(); 1175 } 1176 else if (name.equals("address")) { 1177 return addAddress(); 1178 } 1179 else if (name.equals("partOf")) { 1180 this.partOf = new Reference(); 1181 return this.partOf; 1182 } 1183 else if (name.equals("contact")) { 1184 return addContact(); 1185 } 1186 else if (name.equals("endpoint")) { 1187 return addEndpoint(); 1188 } 1189 else 1190 return super.addChild(name); 1191 } 1192 1193 public String fhirType() { 1194 return "Organization"; 1195 1196 } 1197 1198 public Organization copy() { 1199 Organization dst = new Organization(); 1200 copyValues(dst); 1201 if (identifier != null) { 1202 dst.identifier = new ArrayList<Identifier>(); 1203 for (Identifier i : identifier) 1204 dst.identifier.add(i.copy()); 1205 }; 1206 dst.active = active == null ? null : active.copy(); 1207 if (type != null) { 1208 dst.type = new ArrayList<CodeableConcept>(); 1209 for (CodeableConcept i : type) 1210 dst.type.add(i.copy()); 1211 }; 1212 dst.name = name == null ? null : name.copy(); 1213 if (alias != null) { 1214 dst.alias = new ArrayList<StringType>(); 1215 for (StringType i : alias) 1216 dst.alias.add(i.copy()); 1217 }; 1218 if (telecom != null) { 1219 dst.telecom = new ArrayList<ContactPoint>(); 1220 for (ContactPoint i : telecom) 1221 dst.telecom.add(i.copy()); 1222 }; 1223 if (address != null) { 1224 dst.address = new ArrayList<Address>(); 1225 for (Address i : address) 1226 dst.address.add(i.copy()); 1227 }; 1228 dst.partOf = partOf == null ? null : partOf.copy(); 1229 if (contact != null) { 1230 dst.contact = new ArrayList<OrganizationContactComponent>(); 1231 for (OrganizationContactComponent i : contact) 1232 dst.contact.add(i.copy()); 1233 }; 1234 if (endpoint != null) { 1235 dst.endpoint = new ArrayList<Reference>(); 1236 for (Reference i : endpoint) 1237 dst.endpoint.add(i.copy()); 1238 }; 1239 return dst; 1240 } 1241 1242 protected Organization typedCopy() { 1243 return copy(); 1244 } 1245 1246 @Override 1247 public boolean equalsDeep(Base other_) { 1248 if (!super.equalsDeep(other_)) 1249 return false; 1250 if (!(other_ instanceof Organization)) 1251 return false; 1252 Organization o = (Organization) other_; 1253 return compareDeep(identifier, o.identifier, true) && compareDeep(active, o.active, true) && compareDeep(type, o.type, true) 1254 && compareDeep(name, o.name, true) && compareDeep(alias, o.alias, true) && compareDeep(telecom, o.telecom, true) 1255 && compareDeep(address, o.address, true) && compareDeep(partOf, o.partOf, true) && compareDeep(contact, o.contact, true) 1256 && compareDeep(endpoint, o.endpoint, true); 1257 } 1258 1259 @Override 1260 public boolean equalsShallow(Base other_) { 1261 if (!super.equalsShallow(other_)) 1262 return false; 1263 if (!(other_ instanceof Organization)) 1264 return false; 1265 Organization o = (Organization) other_; 1266 return compareValues(active, o.active, true) && compareValues(name, o.name, true) && compareValues(alias, o.alias, true) 1267 ; 1268 } 1269 1270 public boolean isEmpty() { 1271 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, active, type 1272 , name, alias, telecom, address, partOf, contact, endpoint); 1273 } 1274 1275 @Override 1276 public ResourceType getResourceType() { 1277 return ResourceType.Organization; 1278 } 1279 1280 /** 1281 * Search parameter: <b>identifier</b> 1282 * <p> 1283 * Description: <b>Any identifier for the organization (not the accreditation issuer's identifier)</b><br> 1284 * Type: <b>token</b><br> 1285 * Path: <b>Organization.identifier</b><br> 1286 * </p> 1287 */ 1288 @SearchParamDefinition(name="identifier", path="Organization.identifier", description="Any identifier for the organization (not the accreditation issuer's identifier)", type="token" ) 1289 public static final String SP_IDENTIFIER = "identifier"; 1290 /** 1291 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 1292 * <p> 1293 * Description: <b>Any identifier for the organization (not the accreditation issuer's identifier)</b><br> 1294 * Type: <b>token</b><br> 1295 * Path: <b>Organization.identifier</b><br> 1296 * </p> 1297 */ 1298 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 1299 1300 /** 1301 * Search parameter: <b>partof</b> 1302 * <p> 1303 * Description: <b>An organization of which this organization forms a part</b><br> 1304 * Type: <b>reference</b><br> 1305 * Path: <b>Organization.partOf</b><br> 1306 * </p> 1307 */ 1308 @SearchParamDefinition(name="partof", path="Organization.partOf", description="An organization of which this organization forms a part", type="reference", target={Organization.class } ) 1309 public static final String SP_PARTOF = "partof"; 1310 /** 1311 * <b>Fluent Client</b> search parameter constant for <b>partof</b> 1312 * <p> 1313 * Description: <b>An organization of which this organization forms a part</b><br> 1314 * Type: <b>reference</b><br> 1315 * Path: <b>Organization.partOf</b><br> 1316 * </p> 1317 */ 1318 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PARTOF = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PARTOF); 1319 1320/** 1321 * Constant for fluent queries to be used to add include statements. Specifies 1322 * the path value of "<b>Organization:partof</b>". 1323 */ 1324 public static final ca.uhn.fhir.model.api.Include INCLUDE_PARTOF = new ca.uhn.fhir.model.api.Include("Organization:partof").toLocked(); 1325 1326 /** 1327 * Search parameter: <b>address</b> 1328 * <p> 1329 * Description: <b>A (part of the) address of the organization</b><br> 1330 * Type: <b>string</b><br> 1331 * Path: <b>Organization.address</b><br> 1332 * </p> 1333 */ 1334 @SearchParamDefinition(name="address", path="Organization.address", description="A (part of the) address of the organization", type="string" ) 1335 public static final String SP_ADDRESS = "address"; 1336 /** 1337 * <b>Fluent Client</b> search parameter constant for <b>address</b> 1338 * <p> 1339 * Description: <b>A (part of the) address of the organization</b><br> 1340 * Type: <b>string</b><br> 1341 * Path: <b>Organization.address</b><br> 1342 * </p> 1343 */ 1344 public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS); 1345 1346 /** 1347 * Search parameter: <b>address-state</b> 1348 * <p> 1349 * Description: <b>A state specified in an address</b><br> 1350 * Type: <b>string</b><br> 1351 * Path: <b>Organization.address.state</b><br> 1352 * </p> 1353 */ 1354 @SearchParamDefinition(name="address-state", path="Organization.address.state", description="A state specified in an address", type="string" ) 1355 public static final String SP_ADDRESS_STATE = "address-state"; 1356 /** 1357 * <b>Fluent Client</b> search parameter constant for <b>address-state</b> 1358 * <p> 1359 * Description: <b>A state specified in an address</b><br> 1360 * Type: <b>string</b><br> 1361 * Path: <b>Organization.address.state</b><br> 1362 * </p> 1363 */ 1364 public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS_STATE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS_STATE); 1365 1366 /** 1367 * Search parameter: <b>active</b> 1368 * <p> 1369 * 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> 1370 * Type: <b>token</b><br> 1371 * Path: <b>Organization.active</b><br> 1372 * </p> 1373 */ 1374 @SearchParamDefinition(name="active", path="Organization.active", 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="token" ) 1375 public static final String SP_ACTIVE = "active"; 1376 /** 1377 * <b>Fluent Client</b> search parameter constant for <b>active</b> 1378 * <p> 1379 * 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> 1380 * Type: <b>token</b><br> 1381 * Path: <b>Organization.active</b><br> 1382 * </p> 1383 */ 1384 public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACTIVE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ACTIVE); 1385 1386 /** 1387 * Search parameter: <b>type</b> 1388 * <p> 1389 * Description: <b>A code for the type of organization</b><br> 1390 * Type: <b>token</b><br> 1391 * Path: <b>Organization.type</b><br> 1392 * </p> 1393 */ 1394 @SearchParamDefinition(name="type", path="Organization.type", description="A code for the type of organization", type="token" ) 1395 public static final String SP_TYPE = "type"; 1396 /** 1397 * <b>Fluent Client</b> search parameter constant for <b>type</b> 1398 * <p> 1399 * Description: <b>A code for the type of organization</b><br> 1400 * Type: <b>token</b><br> 1401 * Path: <b>Organization.type</b><br> 1402 * </p> 1403 */ 1404 public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); 1405 1406 /** 1407 * Search parameter: <b>address-postalcode</b> 1408 * <p> 1409 * Description: <b>A postal code specified in an address</b><br> 1410 * Type: <b>string</b><br> 1411 * Path: <b>Organization.address.postalCode</b><br> 1412 * </p> 1413 */ 1414 @SearchParamDefinition(name="address-postalcode", path="Organization.address.postalCode", description="A postal code specified in an address", type="string" ) 1415 public static final String SP_ADDRESS_POSTALCODE = "address-postalcode"; 1416 /** 1417 * <b>Fluent Client</b> search parameter constant for <b>address-postalcode</b> 1418 * <p> 1419 * Description: <b>A postal code specified in an address</b><br> 1420 * Type: <b>string</b><br> 1421 * Path: <b>Organization.address.postalCode</b><br> 1422 * </p> 1423 */ 1424 public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS_POSTALCODE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS_POSTALCODE); 1425 1426 /** 1427 * Search parameter: <b>address-country</b> 1428 * <p> 1429 * Description: <b>A country specified in an address</b><br> 1430 * Type: <b>string</b><br> 1431 * Path: <b>Organization.address.country</b><br> 1432 * </p> 1433 */ 1434 @SearchParamDefinition(name="address-country", path="Organization.address.country", description="A country specified in an address", type="string" ) 1435 public static final String SP_ADDRESS_COUNTRY = "address-country"; 1436 /** 1437 * <b>Fluent Client</b> search parameter constant for <b>address-country</b> 1438 * <p> 1439 * Description: <b>A country specified in an address</b><br> 1440 * Type: <b>string</b><br> 1441 * Path: <b>Organization.address.country</b><br> 1442 * </p> 1443 */ 1444 public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS_COUNTRY = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS_COUNTRY); 1445 1446 /** 1447 * Search parameter: <b>endpoint</b> 1448 * <p> 1449 * Description: <b>Technical endpoints providing access to services operated for the organization</b><br> 1450 * Type: <b>reference</b><br> 1451 * Path: <b>Organization.endpoint</b><br> 1452 * </p> 1453 */ 1454 @SearchParamDefinition(name="endpoint", path="Organization.endpoint", description="Technical endpoints providing access to services operated for the organization", type="reference", target={Endpoint.class } ) 1455 public static final String SP_ENDPOINT = "endpoint"; 1456 /** 1457 * <b>Fluent Client</b> search parameter constant for <b>endpoint</b> 1458 * <p> 1459 * Description: <b>Technical endpoints providing access to services operated for the organization</b><br> 1460 * Type: <b>reference</b><br> 1461 * Path: <b>Organization.endpoint</b><br> 1462 * </p> 1463 */ 1464 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENDPOINT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENDPOINT); 1465 1466/** 1467 * Constant for fluent queries to be used to add include statements. Specifies 1468 * the path value of "<b>Organization:endpoint</b>". 1469 */ 1470 public static final ca.uhn.fhir.model.api.Include INCLUDE_ENDPOINT = new ca.uhn.fhir.model.api.Include("Organization:endpoint").toLocked(); 1471 1472 /** 1473 * Search parameter: <b>phonetic</b> 1474 * <p> 1475 * Description: <b>A portion of the organization's name using some kind of phonetic matching algorithm</b><br> 1476 * Type: <b>string</b><br> 1477 * Path: <b>Organization.name</b><br> 1478 * </p> 1479 */ 1480 @SearchParamDefinition(name="phonetic", path="Organization.name", description="A portion of the organization's name using some kind of phonetic matching algorithm", type="string" ) 1481 public static final String SP_PHONETIC = "phonetic"; 1482 /** 1483 * <b>Fluent Client</b> search parameter constant for <b>phonetic</b> 1484 * <p> 1485 * Description: <b>A portion of the organization's name using some kind of phonetic matching algorithm</b><br> 1486 * Type: <b>string</b><br> 1487 * Path: <b>Organization.name</b><br> 1488 * </p> 1489 */ 1490 public static final ca.uhn.fhir.rest.gclient.StringClientParam PHONETIC = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PHONETIC); 1491 1492 /** 1493 * Search parameter: <b>name</b> 1494 * <p> 1495 * Description: <b>A portion of the organization's name or alias</b><br> 1496 * Type: <b>string</b><br> 1497 * Path: <b>Organization.name, Organization.alias</b><br> 1498 * </p> 1499 */ 1500 @SearchParamDefinition(name="name", path="Organization.name | Organization.alias", description="A portion of the organization's name or alias", type="string" ) 1501 public static final String SP_NAME = "name"; 1502 /** 1503 * <b>Fluent Client</b> search parameter constant for <b>name</b> 1504 * <p> 1505 * Description: <b>A portion of the organization's name or alias</b><br> 1506 * Type: <b>string</b><br> 1507 * Path: <b>Organization.name, Organization.alias</b><br> 1508 * </p> 1509 */ 1510 public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); 1511 1512 /** 1513 * Search parameter: <b>address-use</b> 1514 * <p> 1515 * Description: <b>A use code specified in an address</b><br> 1516 * Type: <b>token</b><br> 1517 * Path: <b>Organization.address.use</b><br> 1518 * </p> 1519 */ 1520 @SearchParamDefinition(name="address-use", path="Organization.address.use", description="A use code specified in an address", type="token" ) 1521 public static final String SP_ADDRESS_USE = "address-use"; 1522 /** 1523 * <b>Fluent Client</b> search parameter constant for <b>address-use</b> 1524 * <p> 1525 * Description: <b>A use code specified in an address</b><br> 1526 * Type: <b>token</b><br> 1527 * Path: <b>Organization.address.use</b><br> 1528 * </p> 1529 */ 1530 public static final ca.uhn.fhir.rest.gclient.TokenClientParam ADDRESS_USE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ADDRESS_USE); 1531 1532 /** 1533 * Search parameter: <b>address-city</b> 1534 * <p> 1535 * Description: <b>A city specified in an address</b><br> 1536 * Type: <b>string</b><br> 1537 * Path: <b>Organization.address.city</b><br> 1538 * </p> 1539 */ 1540 @SearchParamDefinition(name="address-city", path="Organization.address.city", description="A city specified in an address", type="string" ) 1541 public static final String SP_ADDRESS_CITY = "address-city"; 1542 /** 1543 * <b>Fluent Client</b> search parameter constant for <b>address-city</b> 1544 * <p> 1545 * Description: <b>A city specified in an address</b><br> 1546 * Type: <b>string</b><br> 1547 * Path: <b>Organization.address.city</b><br> 1548 * </p> 1549 */ 1550 public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS_CITY = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS_CITY); 1551 1552 1553} 1554