001package org.hl7.fhir.dstu3.model; 002 003/* 004 Copyright (c) 2011+, HL7, Inc. 005 All rights reserved. 006 007 Redistribution and use in source and binary forms, with or without modification, 008 are permitted provided that the following conditions are met: 009 010 * Redistributions of source code must retain the above copyright notice, this 011 list of conditions and the following disclaimer. 012 * Redistributions in binary form must reproduce the above copyright notice, 013 this list of conditions and the following disclaimer in the documentation 014 and/or other materials provided with the distribution. 015 * Neither the name of HL7 nor the names of its contributors may be used to 016 endorse or promote products derived from this software without specific 017 prior written permission. 018 019 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 020 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 021 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 022 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 023 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 024 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 025 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 026 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 027 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 028 POSSIBILITY OF SUCH DAMAGE. 029 030*/ 031 032// Generated on Fri, Mar 16, 2018 15:21+1100 for FHIR v3.0.1 033 034import java.util.*; 035 036import org.hl7.fhir.utilities.Utilities; 037import org.hl7.fhir.dstu3.model.Enumerations.*; 038import ca.uhn.fhir.model.api.annotation.ResourceDef; 039import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 040import ca.uhn.fhir.model.api.annotation.Child; 041import ca.uhn.fhir.model.api.annotation.ChildOrder; 042import ca.uhn.fhir.model.api.annotation.Description; 043import ca.uhn.fhir.model.api.annotation.Block; 044import org.hl7.fhir.instance.model.api.*; 045import org.hl7.fhir.exceptions.FHIRException; 046import org.hl7.fhir.exceptions.FHIRFormatError; 047/** 048 * A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction). 049 */ 050@ResourceDef(name="OperationDefinition", profile="http://hl7.org/fhir/StructureDefinition/OperationDefinition") 051@ChildOrder(names={"url", "version", "name", "status", "kind", "experimental", "date", "publisher", "contact", "description", "useContext", "jurisdiction", "purpose", "idempotent", "code", "comment", "base", "resource", "system", "type", "instance", "parameter", "overload"}) 052public class OperationDefinition extends MetadataResource { 053 054 public enum OperationKind { 055 /** 056 * This operation is invoked as an operation. 057 */ 058 OPERATION, 059 /** 060 * This operation is a named query, invoked using the search mechanism. 061 */ 062 QUERY, 063 /** 064 * added to help the parsers with the generic types 065 */ 066 NULL; 067 public static OperationKind fromCode(String codeString) throws FHIRException { 068 if (codeString == null || "".equals(codeString)) 069 return null; 070 if ("operation".equals(codeString)) 071 return OPERATION; 072 if ("query".equals(codeString)) 073 return QUERY; 074 if (Configuration.isAcceptInvalidEnums()) 075 return null; 076 else 077 throw new FHIRException("Unknown OperationKind code '"+codeString+"'"); 078 } 079 public String toCode() { 080 switch (this) { 081 case OPERATION: return "operation"; 082 case QUERY: return "query"; 083 default: return "?"; 084 } 085 } 086 public String getSystem() { 087 switch (this) { 088 case OPERATION: return "http://hl7.org/fhir/operation-kind"; 089 case QUERY: return "http://hl7.org/fhir/operation-kind"; 090 default: return "?"; 091 } 092 } 093 public String getDefinition() { 094 switch (this) { 095 case OPERATION: return "This operation is invoked as an operation."; 096 case QUERY: return "This operation is a named query, invoked using the search mechanism."; 097 default: return "?"; 098 } 099 } 100 public String getDisplay() { 101 switch (this) { 102 case OPERATION: return "Operation"; 103 case QUERY: return "Query"; 104 default: return "?"; 105 } 106 } 107 } 108 109 public static class OperationKindEnumFactory implements EnumFactory<OperationKind> { 110 public OperationKind fromCode(String codeString) throws IllegalArgumentException { 111 if (codeString == null || "".equals(codeString)) 112 if (codeString == null || "".equals(codeString)) 113 return null; 114 if ("operation".equals(codeString)) 115 return OperationKind.OPERATION; 116 if ("query".equals(codeString)) 117 return OperationKind.QUERY; 118 throw new IllegalArgumentException("Unknown OperationKind code '"+codeString+"'"); 119 } 120 public Enumeration<OperationKind> fromType(Base code) throws FHIRException { 121 if (code == null) 122 return null; 123 if (code.isEmpty()) 124 return new Enumeration<OperationKind>(this); 125 String codeString = ((PrimitiveType) code).asStringValue(); 126 if (codeString == null || "".equals(codeString)) 127 return null; 128 if ("operation".equals(codeString)) 129 return new Enumeration<OperationKind>(this, OperationKind.OPERATION); 130 if ("query".equals(codeString)) 131 return new Enumeration<OperationKind>(this, OperationKind.QUERY); 132 throw new FHIRException("Unknown OperationKind code '"+codeString+"'"); 133 } 134 public String toCode(OperationKind code) { 135 if (code == OperationKind.OPERATION) 136 return "operation"; 137 if (code == OperationKind.QUERY) 138 return "query"; 139 return "?"; 140 } 141 public String toSystem(OperationKind code) { 142 return code.getSystem(); 143 } 144 } 145 146 public enum OperationParameterUse { 147 /** 148 * This is an input parameter. 149 */ 150 IN, 151 /** 152 * This is an output parameter. 153 */ 154 OUT, 155 /** 156 * added to help the parsers with the generic types 157 */ 158 NULL; 159 public static OperationParameterUse fromCode(String codeString) throws FHIRException { 160 if (codeString == null || "".equals(codeString)) 161 return null; 162 if ("in".equals(codeString)) 163 return IN; 164 if ("out".equals(codeString)) 165 return OUT; 166 if (Configuration.isAcceptInvalidEnums()) 167 return null; 168 else 169 throw new FHIRException("Unknown OperationParameterUse code '"+codeString+"'"); 170 } 171 public String toCode() { 172 switch (this) { 173 case IN: return "in"; 174 case OUT: return "out"; 175 default: return "?"; 176 } 177 } 178 public String getSystem() { 179 switch (this) { 180 case IN: return "http://hl7.org/fhir/operation-parameter-use"; 181 case OUT: return "http://hl7.org/fhir/operation-parameter-use"; 182 default: return "?"; 183 } 184 } 185 public String getDefinition() { 186 switch (this) { 187 case IN: return "This is an input parameter."; 188 case OUT: return "This is an output parameter."; 189 default: return "?"; 190 } 191 } 192 public String getDisplay() { 193 switch (this) { 194 case IN: return "In"; 195 case OUT: return "Out"; 196 default: return "?"; 197 } 198 } 199 } 200 201 public static class OperationParameterUseEnumFactory implements EnumFactory<OperationParameterUse> { 202 public OperationParameterUse fromCode(String codeString) throws IllegalArgumentException { 203 if (codeString == null || "".equals(codeString)) 204 if (codeString == null || "".equals(codeString)) 205 return null; 206 if ("in".equals(codeString)) 207 return OperationParameterUse.IN; 208 if ("out".equals(codeString)) 209 return OperationParameterUse.OUT; 210 throw new IllegalArgumentException("Unknown OperationParameterUse code '"+codeString+"'"); 211 } 212 public Enumeration<OperationParameterUse> fromType(Base code) throws FHIRException { 213 if (code == null) 214 return null; 215 if (code.isEmpty()) 216 return new Enumeration<OperationParameterUse>(this); 217 String codeString = ((PrimitiveType) code).asStringValue(); 218 if (codeString == null || "".equals(codeString)) 219 return null; 220 if ("in".equals(codeString)) 221 return new Enumeration<OperationParameterUse>(this, OperationParameterUse.IN); 222 if ("out".equals(codeString)) 223 return new Enumeration<OperationParameterUse>(this, OperationParameterUse.OUT); 224 throw new FHIRException("Unknown OperationParameterUse code '"+codeString+"'"); 225 } 226 public String toCode(OperationParameterUse code) { 227 if (code == OperationParameterUse.IN) 228 return "in"; 229 if (code == OperationParameterUse.OUT) 230 return "out"; 231 return "?"; 232 } 233 public String toSystem(OperationParameterUse code) { 234 return code.getSystem(); 235 } 236 } 237 238 @Block() 239 public static class OperationDefinitionParameterComponent extends BackboneElement implements IBaseBackboneElement { 240 /** 241 * The name of used to identify the parameter. 242 */ 243 @Child(name = "name", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false) 244 @Description(shortDefinition="Name in Parameters.parameter.name or in URL", formalDefinition="The name of used to identify the parameter." ) 245 protected CodeType name; 246 247 /** 248 * Whether this is an input or an output parameter. 249 */ 250 @Child(name = "use", type = {CodeType.class}, order=2, min=1, max=1, modifier=false, summary=false) 251 @Description(shortDefinition="in | out", formalDefinition="Whether this is an input or an output parameter." ) 252 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/operation-parameter-use") 253 protected Enumeration<OperationParameterUse> use; 254 255 /** 256 * The minimum number of times this parameter SHALL appear in the request or response. 257 */ 258 @Child(name = "min", type = {IntegerType.class}, order=3, min=1, max=1, modifier=false, summary=false) 259 @Description(shortDefinition="Minimum Cardinality", formalDefinition="The minimum number of times this parameter SHALL appear in the request or response." ) 260 protected IntegerType min; 261 262 /** 263 * The maximum number of times this element is permitted to appear in the request or response. 264 */ 265 @Child(name = "max", type = {StringType.class}, order=4, min=1, max=1, modifier=false, summary=false) 266 @Description(shortDefinition="Maximum Cardinality (a number or *)", formalDefinition="The maximum number of times this element is permitted to appear in the request or response." ) 267 protected StringType max; 268 269 /** 270 * Describes the meaning or use of this parameter. 271 */ 272 @Child(name = "documentation", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=false) 273 @Description(shortDefinition="Description of meaning/use", formalDefinition="Describes the meaning or use of this parameter." ) 274 protected StringType documentation; 275 276 /** 277 * The type for this parameter. 278 */ 279 @Child(name = "type", type = {CodeType.class}, order=6, min=0, max=1, modifier=false, summary=false) 280 @Description(shortDefinition="What type this parameter has", formalDefinition="The type for this parameter." ) 281 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/all-types") 282 protected CodeType type; 283 284 /** 285 * How the parameter is understood as a search parameter. This is only used if the parameter type is 'string'. 286 */ 287 @Child(name = "searchType", type = {CodeType.class}, order=7, min=0, max=1, modifier=false, summary=false) 288 @Description(shortDefinition="number | date | string | token | reference | composite | quantity | uri", formalDefinition="How the parameter is understood as a search parameter. This is only used if the parameter type is 'string'." ) 289 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/search-param-type") 290 protected Enumeration<SearchParamType> searchType; 291 292 /** 293 * A profile the specifies the rules that this parameter must conform to. 294 */ 295 @Child(name = "profile", type = {StructureDefinition.class}, order=8, min=0, max=1, modifier=false, summary=false) 296 @Description(shortDefinition="Profile on the type", formalDefinition="A profile the specifies the rules that this parameter must conform to." ) 297 protected Reference profile; 298 299 /** 300 * The actual object that is the target of the reference (A profile the specifies the rules that this parameter must conform to.) 301 */ 302 protected StructureDefinition profileTarget; 303 304 /** 305 * Binds to a value set if this parameter is coded (code, Coding, CodeableConcept). 306 */ 307 @Child(name = "binding", type = {}, order=9, min=0, max=1, modifier=false, summary=false) 308 @Description(shortDefinition="ValueSet details if this is coded", formalDefinition="Binds to a value set if this parameter is coded (code, Coding, CodeableConcept)." ) 309 protected OperationDefinitionParameterBindingComponent binding; 310 311 /** 312 * The parts of a nested Parameter. 313 */ 314 @Child(name = "part", type = {OperationDefinitionParameterComponent.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 315 @Description(shortDefinition="Parts of a nested Parameter", formalDefinition="The parts of a nested Parameter." ) 316 protected List<OperationDefinitionParameterComponent> part; 317 318 private static final long serialVersionUID = -885506257L; 319 320 /** 321 * Constructor 322 */ 323 public OperationDefinitionParameterComponent() { 324 super(); 325 } 326 327 /** 328 * Constructor 329 */ 330 public OperationDefinitionParameterComponent(CodeType name, Enumeration<OperationParameterUse> use, IntegerType min, StringType max) { 331 super(); 332 this.name = name; 333 this.use = use; 334 this.min = min; 335 this.max = max; 336 } 337 338 /** 339 * @return {@link #name} (The name of used to identify the parameter.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 340 */ 341 public CodeType getNameElement() { 342 if (this.name == null) 343 if (Configuration.errorOnAutoCreate()) 344 throw new Error("Attempt to auto-create OperationDefinitionParameterComponent.name"); 345 else if (Configuration.doAutoCreate()) 346 this.name = new CodeType(); // bb 347 return this.name; 348 } 349 350 public boolean hasNameElement() { 351 return this.name != null && !this.name.isEmpty(); 352 } 353 354 public boolean hasName() { 355 return this.name != null && !this.name.isEmpty(); 356 } 357 358 /** 359 * @param value {@link #name} (The name of used to identify the parameter.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 360 */ 361 public OperationDefinitionParameterComponent setNameElement(CodeType value) { 362 this.name = value; 363 return this; 364 } 365 366 /** 367 * @return The name of used to identify the parameter. 368 */ 369 public String getName() { 370 return this.name == null ? null : this.name.getValue(); 371 } 372 373 /** 374 * @param value The name of used to identify the parameter. 375 */ 376 public OperationDefinitionParameterComponent setName(String value) { 377 if (this.name == null) 378 this.name = new CodeType(); 379 this.name.setValue(value); 380 return this; 381 } 382 383 /** 384 * @return {@link #use} (Whether this is an input or an output parameter.). This is the underlying object with id, value and extensions. The accessor "getUse" gives direct access to the value 385 */ 386 public Enumeration<OperationParameterUse> getUseElement() { 387 if (this.use == null) 388 if (Configuration.errorOnAutoCreate()) 389 throw new Error("Attempt to auto-create OperationDefinitionParameterComponent.use"); 390 else if (Configuration.doAutoCreate()) 391 this.use = new Enumeration<OperationParameterUse>(new OperationParameterUseEnumFactory()); // bb 392 return this.use; 393 } 394 395 public boolean hasUseElement() { 396 return this.use != null && !this.use.isEmpty(); 397 } 398 399 public boolean hasUse() { 400 return this.use != null && !this.use.isEmpty(); 401 } 402 403 /** 404 * @param value {@link #use} (Whether this is an input or an output parameter.). This is the underlying object with id, value and extensions. The accessor "getUse" gives direct access to the value 405 */ 406 public OperationDefinitionParameterComponent setUseElement(Enumeration<OperationParameterUse> value) { 407 this.use = value; 408 return this; 409 } 410 411 /** 412 * @return Whether this is an input or an output parameter. 413 */ 414 public OperationParameterUse getUse() { 415 return this.use == null ? null : this.use.getValue(); 416 } 417 418 /** 419 * @param value Whether this is an input or an output parameter. 420 */ 421 public OperationDefinitionParameterComponent setUse(OperationParameterUse value) { 422 if (this.use == null) 423 this.use = new Enumeration<OperationParameterUse>(new OperationParameterUseEnumFactory()); 424 this.use.setValue(value); 425 return this; 426 } 427 428 /** 429 * @return {@link #min} (The minimum number of times this parameter SHALL appear in the request or response.). This is the underlying object with id, value and extensions. The accessor "getMin" gives direct access to the value 430 */ 431 public IntegerType getMinElement() { 432 if (this.min == null) 433 if (Configuration.errorOnAutoCreate()) 434 throw new Error("Attempt to auto-create OperationDefinitionParameterComponent.min"); 435 else if (Configuration.doAutoCreate()) 436 this.min = new IntegerType(); // bb 437 return this.min; 438 } 439 440 public boolean hasMinElement() { 441 return this.min != null && !this.min.isEmpty(); 442 } 443 444 public boolean hasMin() { 445 return this.min != null && !this.min.isEmpty(); 446 } 447 448 /** 449 * @param value {@link #min} (The minimum number of times this parameter SHALL appear in the request or response.). This is the underlying object with id, value and extensions. The accessor "getMin" gives direct access to the value 450 */ 451 public OperationDefinitionParameterComponent setMinElement(IntegerType value) { 452 this.min = value; 453 return this; 454 } 455 456 /** 457 * @return The minimum number of times this parameter SHALL appear in the request or response. 458 */ 459 public int getMin() { 460 return this.min == null || this.min.isEmpty() ? 0 : this.min.getValue(); 461 } 462 463 /** 464 * @param value The minimum number of times this parameter SHALL appear in the request or response. 465 */ 466 public OperationDefinitionParameterComponent setMin(int value) { 467 if (this.min == null) 468 this.min = new IntegerType(); 469 this.min.setValue(value); 470 return this; 471 } 472 473 /** 474 * @return {@link #max} (The maximum number of times this element is permitted to appear in the request or response.). This is the underlying object with id, value and extensions. The accessor "getMax" gives direct access to the value 475 */ 476 public StringType getMaxElement() { 477 if (this.max == null) 478 if (Configuration.errorOnAutoCreate()) 479 throw new Error("Attempt to auto-create OperationDefinitionParameterComponent.max"); 480 else if (Configuration.doAutoCreate()) 481 this.max = new StringType(); // bb 482 return this.max; 483 } 484 485 public boolean hasMaxElement() { 486 return this.max != null && !this.max.isEmpty(); 487 } 488 489 public boolean hasMax() { 490 return this.max != null && !this.max.isEmpty(); 491 } 492 493 /** 494 * @param value {@link #max} (The maximum number of times this element is permitted to appear in the request or response.). This is the underlying object with id, value and extensions. The accessor "getMax" gives direct access to the value 495 */ 496 public OperationDefinitionParameterComponent setMaxElement(StringType value) { 497 this.max = value; 498 return this; 499 } 500 501 /** 502 * @return The maximum number of times this element is permitted to appear in the request or response. 503 */ 504 public String getMax() { 505 return this.max == null ? null : this.max.getValue(); 506 } 507 508 /** 509 * @param value The maximum number of times this element is permitted to appear in the request or response. 510 */ 511 public OperationDefinitionParameterComponent setMax(String value) { 512 if (this.max == null) 513 this.max = new StringType(); 514 this.max.setValue(value); 515 return this; 516 } 517 518 /** 519 * @return {@link #documentation} (Describes the meaning or use of this parameter.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value 520 */ 521 public StringType getDocumentationElement() { 522 if (this.documentation == null) 523 if (Configuration.errorOnAutoCreate()) 524 throw new Error("Attempt to auto-create OperationDefinitionParameterComponent.documentation"); 525 else if (Configuration.doAutoCreate()) 526 this.documentation = new StringType(); // bb 527 return this.documentation; 528 } 529 530 public boolean hasDocumentationElement() { 531 return this.documentation != null && !this.documentation.isEmpty(); 532 } 533 534 public boolean hasDocumentation() { 535 return this.documentation != null && !this.documentation.isEmpty(); 536 } 537 538 /** 539 * @param value {@link #documentation} (Describes the meaning or use of this parameter.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value 540 */ 541 public OperationDefinitionParameterComponent setDocumentationElement(StringType value) { 542 this.documentation = value; 543 return this; 544 } 545 546 /** 547 * @return Describes the meaning or use of this parameter. 548 */ 549 public String getDocumentation() { 550 return this.documentation == null ? null : this.documentation.getValue(); 551 } 552 553 /** 554 * @param value Describes the meaning or use of this parameter. 555 */ 556 public OperationDefinitionParameterComponent setDocumentation(String value) { 557 if (Utilities.noString(value)) 558 this.documentation = null; 559 else { 560 if (this.documentation == null) 561 this.documentation = new StringType(); 562 this.documentation.setValue(value); 563 } 564 return this; 565 } 566 567 /** 568 * @return {@link #type} (The type for this parameter.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value 569 */ 570 public CodeType getTypeElement() { 571 if (this.type == null) 572 if (Configuration.errorOnAutoCreate()) 573 throw new Error("Attempt to auto-create OperationDefinitionParameterComponent.type"); 574 else if (Configuration.doAutoCreate()) 575 this.type = new CodeType(); // bb 576 return this.type; 577 } 578 579 public boolean hasTypeElement() { 580 return this.type != null && !this.type.isEmpty(); 581 } 582 583 public boolean hasType() { 584 return this.type != null && !this.type.isEmpty(); 585 } 586 587 /** 588 * @param value {@link #type} (The type for this parameter.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value 589 */ 590 public OperationDefinitionParameterComponent setTypeElement(CodeType value) { 591 this.type = value; 592 return this; 593 } 594 595 /** 596 * @return The type for this parameter. 597 */ 598 public String getType() { 599 return this.type == null ? null : this.type.getValue(); 600 } 601 602 /** 603 * @param value The type for this parameter. 604 */ 605 public OperationDefinitionParameterComponent setType(String value) { 606 if (Utilities.noString(value)) 607 this.type = null; 608 else { 609 if (this.type == null) 610 this.type = new CodeType(); 611 this.type.setValue(value); 612 } 613 return this; 614 } 615 616 /** 617 * @return {@link #searchType} (How the parameter is understood as a search parameter. This is only used if the parameter type is 'string'.). This is the underlying object with id, value and extensions. The accessor "getSearchType" gives direct access to the value 618 */ 619 public Enumeration<SearchParamType> getSearchTypeElement() { 620 if (this.searchType == null) 621 if (Configuration.errorOnAutoCreate()) 622 throw new Error("Attempt to auto-create OperationDefinitionParameterComponent.searchType"); 623 else if (Configuration.doAutoCreate()) 624 this.searchType = new Enumeration<SearchParamType>(new SearchParamTypeEnumFactory()); // bb 625 return this.searchType; 626 } 627 628 public boolean hasSearchTypeElement() { 629 return this.searchType != null && !this.searchType.isEmpty(); 630 } 631 632 public boolean hasSearchType() { 633 return this.searchType != null && !this.searchType.isEmpty(); 634 } 635 636 /** 637 * @param value {@link #searchType} (How the parameter is understood as a search parameter. This is only used if the parameter type is 'string'.). This is the underlying object with id, value and extensions. The accessor "getSearchType" gives direct access to the value 638 */ 639 public OperationDefinitionParameterComponent setSearchTypeElement(Enumeration<SearchParamType> value) { 640 this.searchType = value; 641 return this; 642 } 643 644 /** 645 * @return How the parameter is understood as a search parameter. This is only used if the parameter type is 'string'. 646 */ 647 public SearchParamType getSearchType() { 648 return this.searchType == null ? null : this.searchType.getValue(); 649 } 650 651 /** 652 * @param value How the parameter is understood as a search parameter. This is only used if the parameter type is 'string'. 653 */ 654 public OperationDefinitionParameterComponent setSearchType(SearchParamType value) { 655 if (value == null) 656 this.searchType = null; 657 else { 658 if (this.searchType == null) 659 this.searchType = new Enumeration<SearchParamType>(new SearchParamTypeEnumFactory()); 660 this.searchType.setValue(value); 661 } 662 return this; 663 } 664 665 /** 666 * @return {@link #profile} (A profile the specifies the rules that this parameter must conform to.) 667 */ 668 public Reference getProfile() { 669 if (this.profile == null) 670 if (Configuration.errorOnAutoCreate()) 671 throw new Error("Attempt to auto-create OperationDefinitionParameterComponent.profile"); 672 else if (Configuration.doAutoCreate()) 673 this.profile = new Reference(); // cc 674 return this.profile; 675 } 676 677 public boolean hasProfile() { 678 return this.profile != null && !this.profile.isEmpty(); 679 } 680 681 /** 682 * @param value {@link #profile} (A profile the specifies the rules that this parameter must conform to.) 683 */ 684 public OperationDefinitionParameterComponent setProfile(Reference value) { 685 this.profile = value; 686 return this; 687 } 688 689 /** 690 * @return {@link #profile} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (A profile the specifies the rules that this parameter must conform to.) 691 */ 692 public StructureDefinition getProfileTarget() { 693 if (this.profileTarget == null) 694 if (Configuration.errorOnAutoCreate()) 695 throw new Error("Attempt to auto-create OperationDefinitionParameterComponent.profile"); 696 else if (Configuration.doAutoCreate()) 697 this.profileTarget = new StructureDefinition(); // aa 698 return this.profileTarget; 699 } 700 701 /** 702 * @param value {@link #profile} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (A profile the specifies the rules that this parameter must conform to.) 703 */ 704 public OperationDefinitionParameterComponent setProfileTarget(StructureDefinition value) { 705 this.profileTarget = value; 706 return this; 707 } 708 709 /** 710 * @return {@link #binding} (Binds to a value set if this parameter is coded (code, Coding, CodeableConcept).) 711 */ 712 public OperationDefinitionParameterBindingComponent getBinding() { 713 if (this.binding == null) 714 if (Configuration.errorOnAutoCreate()) 715 throw new Error("Attempt to auto-create OperationDefinitionParameterComponent.binding"); 716 else if (Configuration.doAutoCreate()) 717 this.binding = new OperationDefinitionParameterBindingComponent(); // cc 718 return this.binding; 719 } 720 721 public boolean hasBinding() { 722 return this.binding != null && !this.binding.isEmpty(); 723 } 724 725 /** 726 * @param value {@link #binding} (Binds to a value set if this parameter is coded (code, Coding, CodeableConcept).) 727 */ 728 public OperationDefinitionParameterComponent setBinding(OperationDefinitionParameterBindingComponent value) { 729 this.binding = value; 730 return this; 731 } 732 733 /** 734 * @return {@link #part} (The parts of a nested Parameter.) 735 */ 736 public List<OperationDefinitionParameterComponent> getPart() { 737 if (this.part == null) 738 this.part = new ArrayList<OperationDefinitionParameterComponent>(); 739 return this.part; 740 } 741 742 /** 743 * @return Returns a reference to <code>this</code> for easy method chaining 744 */ 745 public OperationDefinitionParameterComponent setPart(List<OperationDefinitionParameterComponent> thePart) { 746 this.part = thePart; 747 return this; 748 } 749 750 public boolean hasPart() { 751 if (this.part == null) 752 return false; 753 for (OperationDefinitionParameterComponent item : this.part) 754 if (!item.isEmpty()) 755 return true; 756 return false; 757 } 758 759 public OperationDefinitionParameterComponent addPart() { //3 760 OperationDefinitionParameterComponent t = new OperationDefinitionParameterComponent(); 761 if (this.part == null) 762 this.part = new ArrayList<OperationDefinitionParameterComponent>(); 763 this.part.add(t); 764 return t; 765 } 766 767 public OperationDefinitionParameterComponent addPart(OperationDefinitionParameterComponent t) { //3 768 if (t == null) 769 return this; 770 if (this.part == null) 771 this.part = new ArrayList<OperationDefinitionParameterComponent>(); 772 this.part.add(t); 773 return this; 774 } 775 776 /** 777 * @return The first repetition of repeating field {@link #part}, creating it if it does not already exist 778 */ 779 public OperationDefinitionParameterComponent getPartFirstRep() { 780 if (getPart().isEmpty()) { 781 addPart(); 782 } 783 return getPart().get(0); 784 } 785 786 protected void listChildren(List<Property> children) { 787 super.listChildren(children); 788 children.add(new Property("name", "code", "The name of used to identify the parameter.", 0, 1, name)); 789 children.add(new Property("use", "code", "Whether this is an input or an output parameter.", 0, 1, use)); 790 children.add(new Property("min", "integer", "The minimum number of times this parameter SHALL appear in the request or response.", 0, 1, min)); 791 children.add(new Property("max", "string", "The maximum number of times this element is permitted to appear in the request or response.", 0, 1, max)); 792 children.add(new Property("documentation", "string", "Describes the meaning or use of this parameter.", 0, 1, documentation)); 793 children.add(new Property("type", "code", "The type for this parameter.", 0, 1, type)); 794 children.add(new Property("searchType", "code", "How the parameter is understood as a search parameter. This is only used if the parameter type is 'string'.", 0, 1, searchType)); 795 children.add(new Property("profile", "Reference(StructureDefinition)", "A profile the specifies the rules that this parameter must conform to.", 0, 1, profile)); 796 children.add(new Property("binding", "", "Binds to a value set if this parameter is coded (code, Coding, CodeableConcept).", 0, 1, binding)); 797 children.add(new Property("part", "@OperationDefinition.parameter", "The parts of a nested Parameter.", 0, java.lang.Integer.MAX_VALUE, part)); 798 } 799 800 @Override 801 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 802 switch (_hash) { 803 case 3373707: /*name*/ return new Property("name", "code", "The name of used to identify the parameter.", 0, 1, name); 804 case 116103: /*use*/ return new Property("use", "code", "Whether this is an input or an output parameter.", 0, 1, use); 805 case 108114: /*min*/ return new Property("min", "integer", "The minimum number of times this parameter SHALL appear in the request or response.", 0, 1, min); 806 case 107876: /*max*/ return new Property("max", "string", "The maximum number of times this element is permitted to appear in the request or response.", 0, 1, max); 807 case 1587405498: /*documentation*/ return new Property("documentation", "string", "Describes the meaning or use of this parameter.", 0, 1, documentation); 808 case 3575610: /*type*/ return new Property("type", "code", "The type for this parameter.", 0, 1, type); 809 case -710454014: /*searchType*/ return new Property("searchType", "code", "How the parameter is understood as a search parameter. This is only used if the parameter type is 'string'.", 0, 1, searchType); 810 case -309425751: /*profile*/ return new Property("profile", "Reference(StructureDefinition)", "A profile the specifies the rules that this parameter must conform to.", 0, 1, profile); 811 case -108220795: /*binding*/ return new Property("binding", "", "Binds to a value set if this parameter is coded (code, Coding, CodeableConcept).", 0, 1, binding); 812 case 3433459: /*part*/ return new Property("part", "@OperationDefinition.parameter", "The parts of a nested Parameter.", 0, java.lang.Integer.MAX_VALUE, part); 813 default: return super.getNamedProperty(_hash, _name, _checkValid); 814 } 815 816 } 817 818 @Override 819 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 820 switch (hash) { 821 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // CodeType 822 case 116103: /*use*/ return this.use == null ? new Base[0] : new Base[] {this.use}; // Enumeration<OperationParameterUse> 823 case 108114: /*min*/ return this.min == null ? new Base[0] : new Base[] {this.min}; // IntegerType 824 case 107876: /*max*/ return this.max == null ? new Base[0] : new Base[] {this.max}; // StringType 825 case 1587405498: /*documentation*/ return this.documentation == null ? new Base[0] : new Base[] {this.documentation}; // StringType 826 case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeType 827 case -710454014: /*searchType*/ return this.searchType == null ? new Base[0] : new Base[] {this.searchType}; // Enumeration<SearchParamType> 828 case -309425751: /*profile*/ return this.profile == null ? new Base[0] : new Base[] {this.profile}; // Reference 829 case -108220795: /*binding*/ return this.binding == null ? new Base[0] : new Base[] {this.binding}; // OperationDefinitionParameterBindingComponent 830 case 3433459: /*part*/ return this.part == null ? new Base[0] : this.part.toArray(new Base[this.part.size()]); // OperationDefinitionParameterComponent 831 default: return super.getProperty(hash, name, checkValid); 832 } 833 834 } 835 836 @Override 837 public Base setProperty(int hash, String name, Base value) throws FHIRException { 838 switch (hash) { 839 case 3373707: // name 840 this.name = castToCode(value); // CodeType 841 return value; 842 case 116103: // use 843 value = new OperationParameterUseEnumFactory().fromType(castToCode(value)); 844 this.use = (Enumeration) value; // Enumeration<OperationParameterUse> 845 return value; 846 case 108114: // min 847 this.min = castToInteger(value); // IntegerType 848 return value; 849 case 107876: // max 850 this.max = castToString(value); // StringType 851 return value; 852 case 1587405498: // documentation 853 this.documentation = castToString(value); // StringType 854 return value; 855 case 3575610: // type 856 this.type = castToCode(value); // CodeType 857 return value; 858 case -710454014: // searchType 859 value = new SearchParamTypeEnumFactory().fromType(castToCode(value)); 860 this.searchType = (Enumeration) value; // Enumeration<SearchParamType> 861 return value; 862 case -309425751: // profile 863 this.profile = castToReference(value); // Reference 864 return value; 865 case -108220795: // binding 866 this.binding = (OperationDefinitionParameterBindingComponent) value; // OperationDefinitionParameterBindingComponent 867 return value; 868 case 3433459: // part 869 this.getPart().add((OperationDefinitionParameterComponent) value); // OperationDefinitionParameterComponent 870 return value; 871 default: return super.setProperty(hash, name, value); 872 } 873 874 } 875 876 @Override 877 public Base setProperty(String name, Base value) throws FHIRException { 878 if (name.equals("name")) { 879 this.name = castToCode(value); // CodeType 880 } else if (name.equals("use")) { 881 value = new OperationParameterUseEnumFactory().fromType(castToCode(value)); 882 this.use = (Enumeration) value; // Enumeration<OperationParameterUse> 883 } else if (name.equals("min")) { 884 this.min = castToInteger(value); // IntegerType 885 } else if (name.equals("max")) { 886 this.max = castToString(value); // StringType 887 } else if (name.equals("documentation")) { 888 this.documentation = castToString(value); // StringType 889 } else if (name.equals("type")) { 890 this.type = castToCode(value); // CodeType 891 } else if (name.equals("searchType")) { 892 value = new SearchParamTypeEnumFactory().fromType(castToCode(value)); 893 this.searchType = (Enumeration) value; // Enumeration<SearchParamType> 894 } else if (name.equals("profile")) { 895 this.profile = castToReference(value); // Reference 896 } else if (name.equals("binding")) { 897 this.binding = (OperationDefinitionParameterBindingComponent) value; // OperationDefinitionParameterBindingComponent 898 } else if (name.equals("part")) { 899 this.getPart().add((OperationDefinitionParameterComponent) value); 900 } else 901 return super.setProperty(name, value); 902 return value; 903 } 904 905 @Override 906 public Base makeProperty(int hash, String name) throws FHIRException { 907 switch (hash) { 908 case 3373707: return getNameElement(); 909 case 116103: return getUseElement(); 910 case 108114: return getMinElement(); 911 case 107876: return getMaxElement(); 912 case 1587405498: return getDocumentationElement(); 913 case 3575610: return getTypeElement(); 914 case -710454014: return getSearchTypeElement(); 915 case -309425751: return getProfile(); 916 case -108220795: return getBinding(); 917 case 3433459: return addPart(); 918 default: return super.makeProperty(hash, name); 919 } 920 921 } 922 923 @Override 924 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 925 switch (hash) { 926 case 3373707: /*name*/ return new String[] {"code"}; 927 case 116103: /*use*/ return new String[] {"code"}; 928 case 108114: /*min*/ return new String[] {"integer"}; 929 case 107876: /*max*/ return new String[] {"string"}; 930 case 1587405498: /*documentation*/ return new String[] {"string"}; 931 case 3575610: /*type*/ return new String[] {"code"}; 932 case -710454014: /*searchType*/ return new String[] {"code"}; 933 case -309425751: /*profile*/ return new String[] {"Reference"}; 934 case -108220795: /*binding*/ return new String[] {}; 935 case 3433459: /*part*/ return new String[] {"@OperationDefinition.parameter"}; 936 default: return super.getTypesForProperty(hash, name); 937 } 938 939 } 940 941 @Override 942 public Base addChild(String name) throws FHIRException { 943 if (name.equals("name")) { 944 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.name"); 945 } 946 else if (name.equals("use")) { 947 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.use"); 948 } 949 else if (name.equals("min")) { 950 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.min"); 951 } 952 else if (name.equals("max")) { 953 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.max"); 954 } 955 else if (name.equals("documentation")) { 956 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.documentation"); 957 } 958 else if (name.equals("type")) { 959 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.type"); 960 } 961 else if (name.equals("searchType")) { 962 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.searchType"); 963 } 964 else if (name.equals("profile")) { 965 this.profile = new Reference(); 966 return this.profile; 967 } 968 else if (name.equals("binding")) { 969 this.binding = new OperationDefinitionParameterBindingComponent(); 970 return this.binding; 971 } 972 else if (name.equals("part")) { 973 return addPart(); 974 } 975 else 976 return super.addChild(name); 977 } 978 979 public OperationDefinitionParameterComponent copy() { 980 OperationDefinitionParameterComponent dst = new OperationDefinitionParameterComponent(); 981 copyValues(dst); 982 dst.name = name == null ? null : name.copy(); 983 dst.use = use == null ? null : use.copy(); 984 dst.min = min == null ? null : min.copy(); 985 dst.max = max == null ? null : max.copy(); 986 dst.documentation = documentation == null ? null : documentation.copy(); 987 dst.type = type == null ? null : type.copy(); 988 dst.searchType = searchType == null ? null : searchType.copy(); 989 dst.profile = profile == null ? null : profile.copy(); 990 dst.binding = binding == null ? null : binding.copy(); 991 if (part != null) { 992 dst.part = new ArrayList<OperationDefinitionParameterComponent>(); 993 for (OperationDefinitionParameterComponent i : part) 994 dst.part.add(i.copy()); 995 }; 996 return dst; 997 } 998 999 @Override 1000 public boolean equalsDeep(Base other_) { 1001 if (!super.equalsDeep(other_)) 1002 return false; 1003 if (!(other_ instanceof OperationDefinitionParameterComponent)) 1004 return false; 1005 OperationDefinitionParameterComponent o = (OperationDefinitionParameterComponent) other_; 1006 return compareDeep(name, o.name, true) && compareDeep(use, o.use, true) && compareDeep(min, o.min, true) 1007 && compareDeep(max, o.max, true) && compareDeep(documentation, o.documentation, true) && compareDeep(type, o.type, true) 1008 && compareDeep(searchType, o.searchType, true) && compareDeep(profile, o.profile, true) && compareDeep(binding, o.binding, true) 1009 && compareDeep(part, o.part, true); 1010 } 1011 1012 @Override 1013 public boolean equalsShallow(Base other_) { 1014 if (!super.equalsShallow(other_)) 1015 return false; 1016 if (!(other_ instanceof OperationDefinitionParameterComponent)) 1017 return false; 1018 OperationDefinitionParameterComponent o = (OperationDefinitionParameterComponent) other_; 1019 return compareValues(name, o.name, true) && compareValues(use, o.use, true) && compareValues(min, o.min, true) 1020 && compareValues(max, o.max, true) && compareValues(documentation, o.documentation, true) && compareValues(type, o.type, true) 1021 && compareValues(searchType, o.searchType, true); 1022 } 1023 1024 public boolean isEmpty() { 1025 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, use, min, max, documentation 1026 , type, searchType, profile, binding, part); 1027 } 1028 1029 public String fhirType() { 1030 return "OperationDefinition.parameter"; 1031 1032 } 1033 1034 } 1035 1036 @Block() 1037 public static class OperationDefinitionParameterBindingComponent extends BackboneElement implements IBaseBackboneElement { 1038 /** 1039 * Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances. 1040 */ 1041 @Child(name = "strength", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false) 1042 @Description(shortDefinition="required | extensible | preferred | example", formalDefinition="Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances." ) 1043 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/binding-strength") 1044 protected Enumeration<BindingStrength> strength; 1045 1046 /** 1047 * Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used. 1048 */ 1049 @Child(name = "valueSet", type = {UriType.class, ValueSet.class}, order=2, min=1, max=1, modifier=false, summary=false) 1050 @Description(shortDefinition="Source of value set", formalDefinition="Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used." ) 1051 protected Type valueSet; 1052 1053 private static final long serialVersionUID = 857140521L; 1054 1055 /** 1056 * Constructor 1057 */ 1058 public OperationDefinitionParameterBindingComponent() { 1059 super(); 1060 } 1061 1062 /** 1063 * Constructor 1064 */ 1065 public OperationDefinitionParameterBindingComponent(Enumeration<BindingStrength> strength, Type valueSet) { 1066 super(); 1067 this.strength = strength; 1068 this.valueSet = valueSet; 1069 } 1070 1071 /** 1072 * @return {@link #strength} (Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances.). This is the underlying object with id, value and extensions. The accessor "getStrength" gives direct access to the value 1073 */ 1074 public Enumeration<BindingStrength> getStrengthElement() { 1075 if (this.strength == null) 1076 if (Configuration.errorOnAutoCreate()) 1077 throw new Error("Attempt to auto-create OperationDefinitionParameterBindingComponent.strength"); 1078 else if (Configuration.doAutoCreate()) 1079 this.strength = new Enumeration<BindingStrength>(new BindingStrengthEnumFactory()); // bb 1080 return this.strength; 1081 } 1082 1083 public boolean hasStrengthElement() { 1084 return this.strength != null && !this.strength.isEmpty(); 1085 } 1086 1087 public boolean hasStrength() { 1088 return this.strength != null && !this.strength.isEmpty(); 1089 } 1090 1091 /** 1092 * @param value {@link #strength} (Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances.). This is the underlying object with id, value and extensions. The accessor "getStrength" gives direct access to the value 1093 */ 1094 public OperationDefinitionParameterBindingComponent setStrengthElement(Enumeration<BindingStrength> value) { 1095 this.strength = value; 1096 return this; 1097 } 1098 1099 /** 1100 * @return Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances. 1101 */ 1102 public BindingStrength getStrength() { 1103 return this.strength == null ? null : this.strength.getValue(); 1104 } 1105 1106 /** 1107 * @param value Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances. 1108 */ 1109 public OperationDefinitionParameterBindingComponent setStrength(BindingStrength value) { 1110 if (this.strength == null) 1111 this.strength = new Enumeration<BindingStrength>(new BindingStrengthEnumFactory()); 1112 this.strength.setValue(value); 1113 return this; 1114 } 1115 1116 /** 1117 * @return {@link #valueSet} (Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used.) 1118 */ 1119 public Type getValueSet() { 1120 return this.valueSet; 1121 } 1122 1123 /** 1124 * @return {@link #valueSet} (Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used.) 1125 */ 1126 public UriType getValueSetUriType() throws FHIRException { 1127 if (this.valueSet == null) 1128 return null; 1129 if (!(this.valueSet instanceof UriType)) 1130 throw new FHIRException("Type mismatch: the type UriType was expected, but "+this.valueSet.getClass().getName()+" was encountered"); 1131 return (UriType) this.valueSet; 1132 } 1133 1134 public boolean hasValueSetUriType() { 1135 return this != null && this.valueSet instanceof UriType; 1136 } 1137 1138 /** 1139 * @return {@link #valueSet} (Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used.) 1140 */ 1141 public Reference getValueSetReference() throws FHIRException { 1142 if (this.valueSet == null) 1143 return null; 1144 if (!(this.valueSet instanceof Reference)) 1145 throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.valueSet.getClass().getName()+" was encountered"); 1146 return (Reference) this.valueSet; 1147 } 1148 1149 public boolean hasValueSetReference() { 1150 return this != null && this.valueSet instanceof Reference; 1151 } 1152 1153 public boolean hasValueSet() { 1154 return this.valueSet != null && !this.valueSet.isEmpty(); 1155 } 1156 1157 /** 1158 * @param value {@link #valueSet} (Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used.) 1159 */ 1160 public OperationDefinitionParameterBindingComponent setValueSet(Type value) throws FHIRFormatError { 1161 if (value != null && !(value instanceof UriType || value instanceof Reference)) 1162 throw new FHIRFormatError("Not the right type for OperationDefinition.parameter.binding.valueSet[x]: "+value.fhirType()); 1163 this.valueSet = value; 1164 return this; 1165 } 1166 1167 protected void listChildren(List<Property> children) { 1168 super.listChildren(children); 1169 children.add(new Property("strength", "code", "Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances.", 0, 1, strength)); 1170 children.add(new Property("valueSet[x]", "uri|Reference(ValueSet)", "Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used.", 0, 1, valueSet)); 1171 } 1172 1173 @Override 1174 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1175 switch (_hash) { 1176 case 1791316033: /*strength*/ return new Property("strength", "code", "Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances.", 0, 1, strength); 1177 case -1438410321: /*valueSet[x]*/ return new Property("valueSet[x]", "uri|Reference(ValueSet)", "Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used.", 0, 1, valueSet); 1178 case -1410174671: /*valueSet*/ return new Property("valueSet[x]", "uri|Reference(ValueSet)", "Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used.", 0, 1, valueSet); 1179 case -1438416261: /*valueSetUri*/ return new Property("valueSet[x]", "uri|Reference(ValueSet)", "Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used.", 0, 1, valueSet); 1180 case 295220506: /*valueSetReference*/ return new Property("valueSet[x]", "uri|Reference(ValueSet)", "Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used.", 0, 1, valueSet); 1181 default: return super.getNamedProperty(_hash, _name, _checkValid); 1182 } 1183 1184 } 1185 1186 @Override 1187 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1188 switch (hash) { 1189 case 1791316033: /*strength*/ return this.strength == null ? new Base[0] : new Base[] {this.strength}; // Enumeration<BindingStrength> 1190 case -1410174671: /*valueSet*/ return this.valueSet == null ? new Base[0] : new Base[] {this.valueSet}; // Type 1191 default: return super.getProperty(hash, name, checkValid); 1192 } 1193 1194 } 1195 1196 @Override 1197 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1198 switch (hash) { 1199 case 1791316033: // strength 1200 value = new BindingStrengthEnumFactory().fromType(castToCode(value)); 1201 this.strength = (Enumeration) value; // Enumeration<BindingStrength> 1202 return value; 1203 case -1410174671: // valueSet 1204 this.valueSet = castToType(value); // Type 1205 return value; 1206 default: return super.setProperty(hash, name, value); 1207 } 1208 1209 } 1210 1211 @Override 1212 public Base setProperty(String name, Base value) throws FHIRException { 1213 if (name.equals("strength")) { 1214 value = new BindingStrengthEnumFactory().fromType(castToCode(value)); 1215 this.strength = (Enumeration) value; // Enumeration<BindingStrength> 1216 } else if (name.equals("valueSet[x]")) { 1217 this.valueSet = castToType(value); // Type 1218 } else 1219 return super.setProperty(name, value); 1220 return value; 1221 } 1222 1223 @Override 1224 public Base makeProperty(int hash, String name) throws FHIRException { 1225 switch (hash) { 1226 case 1791316033: return getStrengthElement(); 1227 case -1438410321: return getValueSet(); 1228 case -1410174671: return getValueSet(); 1229 default: return super.makeProperty(hash, name); 1230 } 1231 1232 } 1233 1234 @Override 1235 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1236 switch (hash) { 1237 case 1791316033: /*strength*/ return new String[] {"code"}; 1238 case -1410174671: /*valueSet*/ return new String[] {"uri", "Reference"}; 1239 default: return super.getTypesForProperty(hash, name); 1240 } 1241 1242 } 1243 1244 @Override 1245 public Base addChild(String name) throws FHIRException { 1246 if (name.equals("strength")) { 1247 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.strength"); 1248 } 1249 else if (name.equals("valueSetUri")) { 1250 this.valueSet = new UriType(); 1251 return this.valueSet; 1252 } 1253 else if (name.equals("valueSetReference")) { 1254 this.valueSet = new Reference(); 1255 return this.valueSet; 1256 } 1257 else 1258 return super.addChild(name); 1259 } 1260 1261 public OperationDefinitionParameterBindingComponent copy() { 1262 OperationDefinitionParameterBindingComponent dst = new OperationDefinitionParameterBindingComponent(); 1263 copyValues(dst); 1264 dst.strength = strength == null ? null : strength.copy(); 1265 dst.valueSet = valueSet == null ? null : valueSet.copy(); 1266 return dst; 1267 } 1268 1269 @Override 1270 public boolean equalsDeep(Base other_) { 1271 if (!super.equalsDeep(other_)) 1272 return false; 1273 if (!(other_ instanceof OperationDefinitionParameterBindingComponent)) 1274 return false; 1275 OperationDefinitionParameterBindingComponent o = (OperationDefinitionParameterBindingComponent) other_; 1276 return compareDeep(strength, o.strength, true) && compareDeep(valueSet, o.valueSet, true); 1277 } 1278 1279 @Override 1280 public boolean equalsShallow(Base other_) { 1281 if (!super.equalsShallow(other_)) 1282 return false; 1283 if (!(other_ instanceof OperationDefinitionParameterBindingComponent)) 1284 return false; 1285 OperationDefinitionParameterBindingComponent o = (OperationDefinitionParameterBindingComponent) other_; 1286 return compareValues(strength, o.strength, true); 1287 } 1288 1289 public boolean isEmpty() { 1290 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(strength, valueSet); 1291 } 1292 1293 public String fhirType() { 1294 return "OperationDefinition.parameter.binding"; 1295 1296 } 1297 1298 } 1299 1300 @Block() 1301 public static class OperationDefinitionOverloadComponent extends BackboneElement implements IBaseBackboneElement { 1302 /** 1303 * Name of parameter to include in overload. 1304 */ 1305 @Child(name = "parameterName", type = {StringType.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1306 @Description(shortDefinition="Name of parameter to include in overload", formalDefinition="Name of parameter to include in overload." ) 1307 protected List<StringType> parameterName; 1308 1309 /** 1310 * Comments to go on overload. 1311 */ 1312 @Child(name = "comment", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) 1313 @Description(shortDefinition="Comments to go on overload", formalDefinition="Comments to go on overload." ) 1314 protected StringType comment; 1315 1316 private static final long serialVersionUID = -907948545L; 1317 1318 /** 1319 * Constructor 1320 */ 1321 public OperationDefinitionOverloadComponent() { 1322 super(); 1323 } 1324 1325 /** 1326 * @return {@link #parameterName} (Name of parameter to include in overload.) 1327 */ 1328 public List<StringType> getParameterName() { 1329 if (this.parameterName == null) 1330 this.parameterName = new ArrayList<StringType>(); 1331 return this.parameterName; 1332 } 1333 1334 /** 1335 * @return Returns a reference to <code>this</code> for easy method chaining 1336 */ 1337 public OperationDefinitionOverloadComponent setParameterName(List<StringType> theParameterName) { 1338 this.parameterName = theParameterName; 1339 return this; 1340 } 1341 1342 public boolean hasParameterName() { 1343 if (this.parameterName == null) 1344 return false; 1345 for (StringType item : this.parameterName) 1346 if (!item.isEmpty()) 1347 return true; 1348 return false; 1349 } 1350 1351 /** 1352 * @return {@link #parameterName} (Name of parameter to include in overload.) 1353 */ 1354 public StringType addParameterNameElement() {//2 1355 StringType t = new StringType(); 1356 if (this.parameterName == null) 1357 this.parameterName = new ArrayList<StringType>(); 1358 this.parameterName.add(t); 1359 return t; 1360 } 1361 1362 /** 1363 * @param value {@link #parameterName} (Name of parameter to include in overload.) 1364 */ 1365 public OperationDefinitionOverloadComponent addParameterName(String value) { //1 1366 StringType t = new StringType(); 1367 t.setValue(value); 1368 if (this.parameterName == null) 1369 this.parameterName = new ArrayList<StringType>(); 1370 this.parameterName.add(t); 1371 return this; 1372 } 1373 1374 /** 1375 * @param value {@link #parameterName} (Name of parameter to include in overload.) 1376 */ 1377 public boolean hasParameterName(String value) { 1378 if (this.parameterName == null) 1379 return false; 1380 for (StringType v : this.parameterName) 1381 if (v.getValue().equals(value)) // string 1382 return true; 1383 return false; 1384 } 1385 1386 /** 1387 * @return {@link #comment} (Comments to go on overload.). This is the underlying object with id, value and extensions. The accessor "getComment" gives direct access to the value 1388 */ 1389 public StringType getCommentElement() { 1390 if (this.comment == null) 1391 if (Configuration.errorOnAutoCreate()) 1392 throw new Error("Attempt to auto-create OperationDefinitionOverloadComponent.comment"); 1393 else if (Configuration.doAutoCreate()) 1394 this.comment = new StringType(); // bb 1395 return this.comment; 1396 } 1397 1398 public boolean hasCommentElement() { 1399 return this.comment != null && !this.comment.isEmpty(); 1400 } 1401 1402 public boolean hasComment() { 1403 return this.comment != null && !this.comment.isEmpty(); 1404 } 1405 1406 /** 1407 * @param value {@link #comment} (Comments to go on overload.). This is the underlying object with id, value and extensions. The accessor "getComment" gives direct access to the value 1408 */ 1409 public OperationDefinitionOverloadComponent setCommentElement(StringType value) { 1410 this.comment = value; 1411 return this; 1412 } 1413 1414 /** 1415 * @return Comments to go on overload. 1416 */ 1417 public String getComment() { 1418 return this.comment == null ? null : this.comment.getValue(); 1419 } 1420 1421 /** 1422 * @param value Comments to go on overload. 1423 */ 1424 public OperationDefinitionOverloadComponent setComment(String value) { 1425 if (Utilities.noString(value)) 1426 this.comment = null; 1427 else { 1428 if (this.comment == null) 1429 this.comment = new StringType(); 1430 this.comment.setValue(value); 1431 } 1432 return this; 1433 } 1434 1435 protected void listChildren(List<Property> children) { 1436 super.listChildren(children); 1437 children.add(new Property("parameterName", "string", "Name of parameter to include in overload.", 0, java.lang.Integer.MAX_VALUE, parameterName)); 1438 children.add(new Property("comment", "string", "Comments to go on overload.", 0, 1, comment)); 1439 } 1440 1441 @Override 1442 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1443 switch (_hash) { 1444 case -379607596: /*parameterName*/ return new Property("parameterName", "string", "Name of parameter to include in overload.", 0, java.lang.Integer.MAX_VALUE, parameterName); 1445 case 950398559: /*comment*/ return new Property("comment", "string", "Comments to go on overload.", 0, 1, comment); 1446 default: return super.getNamedProperty(_hash, _name, _checkValid); 1447 } 1448 1449 } 1450 1451 @Override 1452 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1453 switch (hash) { 1454 case -379607596: /*parameterName*/ return this.parameterName == null ? new Base[0] : this.parameterName.toArray(new Base[this.parameterName.size()]); // StringType 1455 case 950398559: /*comment*/ return this.comment == null ? new Base[0] : new Base[] {this.comment}; // StringType 1456 default: return super.getProperty(hash, name, checkValid); 1457 } 1458 1459 } 1460 1461 @Override 1462 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1463 switch (hash) { 1464 case -379607596: // parameterName 1465 this.getParameterName().add(castToString(value)); // StringType 1466 return value; 1467 case 950398559: // comment 1468 this.comment = castToString(value); // StringType 1469 return value; 1470 default: return super.setProperty(hash, name, value); 1471 } 1472 1473 } 1474 1475 @Override 1476 public Base setProperty(String name, Base value) throws FHIRException { 1477 if (name.equals("parameterName")) { 1478 this.getParameterName().add(castToString(value)); 1479 } else if (name.equals("comment")) { 1480 this.comment = castToString(value); // StringType 1481 } else 1482 return super.setProperty(name, value); 1483 return value; 1484 } 1485 1486 @Override 1487 public Base makeProperty(int hash, String name) throws FHIRException { 1488 switch (hash) { 1489 case -379607596: return addParameterNameElement(); 1490 case 950398559: return getCommentElement(); 1491 default: return super.makeProperty(hash, name); 1492 } 1493 1494 } 1495 1496 @Override 1497 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1498 switch (hash) { 1499 case -379607596: /*parameterName*/ return new String[] {"string"}; 1500 case 950398559: /*comment*/ return new String[] {"string"}; 1501 default: return super.getTypesForProperty(hash, name); 1502 } 1503 1504 } 1505 1506 @Override 1507 public Base addChild(String name) throws FHIRException { 1508 if (name.equals("parameterName")) { 1509 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.parameterName"); 1510 } 1511 else if (name.equals("comment")) { 1512 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.comment"); 1513 } 1514 else 1515 return super.addChild(name); 1516 } 1517 1518 public OperationDefinitionOverloadComponent copy() { 1519 OperationDefinitionOverloadComponent dst = new OperationDefinitionOverloadComponent(); 1520 copyValues(dst); 1521 if (parameterName != null) { 1522 dst.parameterName = new ArrayList<StringType>(); 1523 for (StringType i : parameterName) 1524 dst.parameterName.add(i.copy()); 1525 }; 1526 dst.comment = comment == null ? null : comment.copy(); 1527 return dst; 1528 } 1529 1530 @Override 1531 public boolean equalsDeep(Base other_) { 1532 if (!super.equalsDeep(other_)) 1533 return false; 1534 if (!(other_ instanceof OperationDefinitionOverloadComponent)) 1535 return false; 1536 OperationDefinitionOverloadComponent o = (OperationDefinitionOverloadComponent) other_; 1537 return compareDeep(parameterName, o.parameterName, true) && compareDeep(comment, o.comment, true) 1538 ; 1539 } 1540 1541 @Override 1542 public boolean equalsShallow(Base other_) { 1543 if (!super.equalsShallow(other_)) 1544 return false; 1545 if (!(other_ instanceof OperationDefinitionOverloadComponent)) 1546 return false; 1547 OperationDefinitionOverloadComponent o = (OperationDefinitionOverloadComponent) other_; 1548 return compareValues(parameterName, o.parameterName, true) && compareValues(comment, o.comment, true) 1549 ; 1550 } 1551 1552 public boolean isEmpty() { 1553 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(parameterName, comment); 1554 } 1555 1556 public String fhirType() { 1557 return "OperationDefinition.overload"; 1558 1559 } 1560 1561 } 1562 1563 /** 1564 * Whether this is an operation or a named query. 1565 */ 1566 @Child(name = "kind", type = {CodeType.class}, order=0, min=1, max=1, modifier=false, summary=false) 1567 @Description(shortDefinition="operation | query", formalDefinition="Whether this is an operation or a named query." ) 1568 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/operation-kind") 1569 protected Enumeration<OperationKind> kind; 1570 1571 /** 1572 * Explaination of why this operation definition is needed and why it has been designed as it has. 1573 */ 1574 @Child(name = "purpose", type = {MarkdownType.class}, order=1, min=0, max=1, modifier=false, summary=false) 1575 @Description(shortDefinition="Why this operation definition is defined", formalDefinition="Explaination of why this operation definition is needed and why it has been designed as it has." ) 1576 protected MarkdownType purpose; 1577 1578 /** 1579 * Operations that are idempotent (see [HTTP specification definition of idempotent](http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html)) may be invoked by performing an HTTP GET operation instead of a POST. 1580 */ 1581 @Child(name = "idempotent", type = {BooleanType.class}, order=2, min=0, max=1, modifier=false, summary=true) 1582 @Description(shortDefinition="Whether content is unchanged by the operation", formalDefinition="Operations that are idempotent (see [HTTP specification definition of idempotent](http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html)) may be invoked by performing an HTTP GET operation instead of a POST." ) 1583 protected BooleanType idempotent; 1584 1585 /** 1586 * The name used to invoke the operation. 1587 */ 1588 @Child(name = "code", type = {CodeType.class}, order=3, min=1, max=1, modifier=false, summary=true) 1589 @Description(shortDefinition="Name used to invoke the operation", formalDefinition="The name used to invoke the operation." ) 1590 protected CodeType code; 1591 1592 /** 1593 * Additional information about how to use this operation or named query. 1594 */ 1595 @Child(name = "comment", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false) 1596 @Description(shortDefinition="Additional information about use", formalDefinition="Additional information about how to use this operation or named query." ) 1597 protected StringType comment; 1598 1599 /** 1600 * Indicates that this operation definition is a constraining profile on the base. 1601 */ 1602 @Child(name = "base", type = {OperationDefinition.class}, order=5, min=0, max=1, modifier=false, summary=true) 1603 @Description(shortDefinition="Marks this as a profile of the base", formalDefinition="Indicates that this operation definition is a constraining profile on the base." ) 1604 protected Reference base; 1605 1606 /** 1607 * The actual object that is the target of the reference (Indicates that this operation definition is a constraining profile on the base.) 1608 */ 1609 protected OperationDefinition baseTarget; 1610 1611 /** 1612 * The types on which this operation can be executed. 1613 */ 1614 @Child(name = "resource", type = {CodeType.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1615 @Description(shortDefinition="Types this operation applies to", formalDefinition="The types on which this operation can be executed." ) 1616 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/resource-types") 1617 protected List<CodeType> resource; 1618 1619 /** 1620 * Indicates whether this operation or named query can be invoked at the system level (e.g. without needing to choose a resource type for the context). 1621 */ 1622 @Child(name = "system", type = {BooleanType.class}, order=7, min=1, max=1, modifier=false, summary=true) 1623 @Description(shortDefinition="Invoke at the system level?", formalDefinition="Indicates whether this operation or named query can be invoked at the system level (e.g. without needing to choose a resource type for the context)." ) 1624 protected BooleanType system; 1625 1626 /** 1627 * Indicates whether this operation or named query can be invoked at the resource type level for any given resource type level (e.g. without needing to choose a specific resource id for the context). 1628 */ 1629 @Child(name = "type", type = {BooleanType.class}, order=8, min=1, max=1, modifier=false, summary=true) 1630 @Description(shortDefinition="Invole at the type level?", formalDefinition="Indicates whether this operation or named query can be invoked at the resource type level for any given resource type level (e.g. without needing to choose a specific resource id for the context)." ) 1631 protected BooleanType type; 1632 1633 /** 1634 * Indicates whether this operation can be invoked on a particular instance of one of the given types. 1635 */ 1636 @Child(name = "instance", type = {BooleanType.class}, order=9, min=1, max=1, modifier=false, summary=true) 1637 @Description(shortDefinition="Invoke on an instance?", formalDefinition="Indicates whether this operation can be invoked on a particular instance of one of the given types." ) 1638 protected BooleanType instance; 1639 1640 /** 1641 * The parameters for the operation/query. 1642 */ 1643 @Child(name = "parameter", type = {}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1644 @Description(shortDefinition="Parameters for the operation/query", formalDefinition="The parameters for the operation/query." ) 1645 protected List<OperationDefinitionParameterComponent> parameter; 1646 1647 /** 1648 * Defines an appropriate combination of parameters to use when invoking this operation, to help code generators when generating overloaded parameter sets for this operation. 1649 */ 1650 @Child(name = "overload", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1651 @Description(shortDefinition="Define overloaded variants for when generating code", formalDefinition="Defines an appropriate combination of parameters to use when invoking this operation, to help code generators when generating overloaded parameter sets for this operation." ) 1652 protected List<OperationDefinitionOverloadComponent> overload; 1653 1654 private static final long serialVersionUID = 1292377899L; 1655 1656 /** 1657 * Constructor 1658 */ 1659 public OperationDefinition() { 1660 super(); 1661 } 1662 1663 /** 1664 * Constructor 1665 */ 1666 public OperationDefinition(StringType name, Enumeration<PublicationStatus> status, Enumeration<OperationKind> kind, CodeType code, BooleanType system, BooleanType type, BooleanType instance) { 1667 super(); 1668 this.name = name; 1669 this.status = status; 1670 this.kind = kind; 1671 this.code = code; 1672 this.system = system; 1673 this.type = type; 1674 this.instance = instance; 1675 } 1676 1677 /** 1678 * @return {@link #url} (An absolute URI that is used to identify this operation definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this operation definition is (or will be) published. The URL SHOULD include the major version of the operation definition. For more information see [Technical and Business Versions](resource.html#versions).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 1679 */ 1680 public UriType getUrlElement() { 1681 if (this.url == null) 1682 if (Configuration.errorOnAutoCreate()) 1683 throw new Error("Attempt to auto-create OperationDefinition.url"); 1684 else if (Configuration.doAutoCreate()) 1685 this.url = new UriType(); // bb 1686 return this.url; 1687 } 1688 1689 public boolean hasUrlElement() { 1690 return this.url != null && !this.url.isEmpty(); 1691 } 1692 1693 public boolean hasUrl() { 1694 return this.url != null && !this.url.isEmpty(); 1695 } 1696 1697 /** 1698 * @param value {@link #url} (An absolute URI that is used to identify this operation definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this operation definition is (or will be) published. The URL SHOULD include the major version of the operation definition. For more information see [Technical and Business Versions](resource.html#versions).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 1699 */ 1700 public OperationDefinition setUrlElement(UriType value) { 1701 this.url = value; 1702 return this; 1703 } 1704 1705 /** 1706 * @return An absolute URI that is used to identify this operation definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this operation definition is (or will be) published. The URL SHOULD include the major version of the operation definition. For more information see [Technical and Business Versions](resource.html#versions). 1707 */ 1708 public String getUrl() { 1709 return this.url == null ? null : this.url.getValue(); 1710 } 1711 1712 /** 1713 * @param value An absolute URI that is used to identify this operation definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this operation definition is (or will be) published. The URL SHOULD include the major version of the operation definition. For more information see [Technical and Business Versions](resource.html#versions). 1714 */ 1715 public OperationDefinition setUrl(String value) { 1716 if (Utilities.noString(value)) 1717 this.url = null; 1718 else { 1719 if (this.url == null) 1720 this.url = new UriType(); 1721 this.url.setValue(value); 1722 } 1723 return this; 1724 } 1725 1726 /** 1727 * @return {@link #version} (The identifier that is used to identify this version of the operation definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the operation definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value 1728 */ 1729 public StringType getVersionElement() { 1730 if (this.version == null) 1731 if (Configuration.errorOnAutoCreate()) 1732 throw new Error("Attempt to auto-create OperationDefinition.version"); 1733 else if (Configuration.doAutoCreate()) 1734 this.version = new StringType(); // bb 1735 return this.version; 1736 } 1737 1738 public boolean hasVersionElement() { 1739 return this.version != null && !this.version.isEmpty(); 1740 } 1741 1742 public boolean hasVersion() { 1743 return this.version != null && !this.version.isEmpty(); 1744 } 1745 1746 /** 1747 * @param value {@link #version} (The identifier that is used to identify this version of the operation definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the operation definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value 1748 */ 1749 public OperationDefinition setVersionElement(StringType value) { 1750 this.version = value; 1751 return this; 1752 } 1753 1754 /** 1755 * @return The identifier that is used to identify this version of the operation definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the operation definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. 1756 */ 1757 public String getVersion() { 1758 return this.version == null ? null : this.version.getValue(); 1759 } 1760 1761 /** 1762 * @param value The identifier that is used to identify this version of the operation definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the operation definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. 1763 */ 1764 public OperationDefinition setVersion(String value) { 1765 if (Utilities.noString(value)) 1766 this.version = null; 1767 else { 1768 if (this.version == null) 1769 this.version = new StringType(); 1770 this.version.setValue(value); 1771 } 1772 return this; 1773 } 1774 1775 /** 1776 * @return {@link #name} (A natural language name identifying the operation definition. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 1777 */ 1778 public StringType getNameElement() { 1779 if (this.name == null) 1780 if (Configuration.errorOnAutoCreate()) 1781 throw new Error("Attempt to auto-create OperationDefinition.name"); 1782 else if (Configuration.doAutoCreate()) 1783 this.name = new StringType(); // bb 1784 return this.name; 1785 } 1786 1787 public boolean hasNameElement() { 1788 return this.name != null && !this.name.isEmpty(); 1789 } 1790 1791 public boolean hasName() { 1792 return this.name != null && !this.name.isEmpty(); 1793 } 1794 1795 /** 1796 * @param value {@link #name} (A natural language name identifying the operation definition. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 1797 */ 1798 public OperationDefinition setNameElement(StringType value) { 1799 this.name = value; 1800 return this; 1801 } 1802 1803 /** 1804 * @return A natural language name identifying the operation definition. This name should be usable as an identifier for the module by machine processing applications such as code generation. 1805 */ 1806 public String getName() { 1807 return this.name == null ? null : this.name.getValue(); 1808 } 1809 1810 /** 1811 * @param value A natural language name identifying the operation definition. This name should be usable as an identifier for the module by machine processing applications such as code generation. 1812 */ 1813 public OperationDefinition setName(String value) { 1814 if (this.name == null) 1815 this.name = new StringType(); 1816 this.name.setValue(value); 1817 return this; 1818 } 1819 1820 /** 1821 * @return {@link #status} (The status of this operation definition. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 1822 */ 1823 public Enumeration<PublicationStatus> getStatusElement() { 1824 if (this.status == null) 1825 if (Configuration.errorOnAutoCreate()) 1826 throw new Error("Attempt to auto-create OperationDefinition.status"); 1827 else if (Configuration.doAutoCreate()) 1828 this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); // bb 1829 return this.status; 1830 } 1831 1832 public boolean hasStatusElement() { 1833 return this.status != null && !this.status.isEmpty(); 1834 } 1835 1836 public boolean hasStatus() { 1837 return this.status != null && !this.status.isEmpty(); 1838 } 1839 1840 /** 1841 * @param value {@link #status} (The status of this operation definition. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 1842 */ 1843 public OperationDefinition setStatusElement(Enumeration<PublicationStatus> value) { 1844 this.status = value; 1845 return this; 1846 } 1847 1848 /** 1849 * @return The status of this operation definition. Enables tracking the life-cycle of the content. 1850 */ 1851 public PublicationStatus getStatus() { 1852 return this.status == null ? null : this.status.getValue(); 1853 } 1854 1855 /** 1856 * @param value The status of this operation definition. Enables tracking the life-cycle of the content. 1857 */ 1858 public OperationDefinition setStatus(PublicationStatus value) { 1859 if (this.status == null) 1860 this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); 1861 this.status.setValue(value); 1862 return this; 1863 } 1864 1865 /** 1866 * @return {@link #kind} (Whether this is an operation or a named query.). This is the underlying object with id, value and extensions. The accessor "getKind" gives direct access to the value 1867 */ 1868 public Enumeration<OperationKind> getKindElement() { 1869 if (this.kind == null) 1870 if (Configuration.errorOnAutoCreate()) 1871 throw new Error("Attempt to auto-create OperationDefinition.kind"); 1872 else if (Configuration.doAutoCreate()) 1873 this.kind = new Enumeration<OperationKind>(new OperationKindEnumFactory()); // bb 1874 return this.kind; 1875 } 1876 1877 public boolean hasKindElement() { 1878 return this.kind != null && !this.kind.isEmpty(); 1879 } 1880 1881 public boolean hasKind() { 1882 return this.kind != null && !this.kind.isEmpty(); 1883 } 1884 1885 /** 1886 * @param value {@link #kind} (Whether this is an operation or a named query.). This is the underlying object with id, value and extensions. The accessor "getKind" gives direct access to the value 1887 */ 1888 public OperationDefinition setKindElement(Enumeration<OperationKind> value) { 1889 this.kind = value; 1890 return this; 1891 } 1892 1893 /** 1894 * @return Whether this is an operation or a named query. 1895 */ 1896 public OperationKind getKind() { 1897 return this.kind == null ? null : this.kind.getValue(); 1898 } 1899 1900 /** 1901 * @param value Whether this is an operation or a named query. 1902 */ 1903 public OperationDefinition setKind(OperationKind value) { 1904 if (this.kind == null) 1905 this.kind = new Enumeration<OperationKind>(new OperationKindEnumFactory()); 1906 this.kind.setValue(value); 1907 return this; 1908 } 1909 1910 /** 1911 * @return {@link #experimental} (A boolean value to indicate that this operation definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value 1912 */ 1913 public BooleanType getExperimentalElement() { 1914 if (this.experimental == null) 1915 if (Configuration.errorOnAutoCreate()) 1916 throw new Error("Attempt to auto-create OperationDefinition.experimental"); 1917 else if (Configuration.doAutoCreate()) 1918 this.experimental = new BooleanType(); // bb 1919 return this.experimental; 1920 } 1921 1922 public boolean hasExperimentalElement() { 1923 return this.experimental != null && !this.experimental.isEmpty(); 1924 } 1925 1926 public boolean hasExperimental() { 1927 return this.experimental != null && !this.experimental.isEmpty(); 1928 } 1929 1930 /** 1931 * @param value {@link #experimental} (A boolean value to indicate that this operation definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value 1932 */ 1933 public OperationDefinition setExperimentalElement(BooleanType value) { 1934 this.experimental = value; 1935 return this; 1936 } 1937 1938 /** 1939 * @return A boolean value to indicate that this operation definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage. 1940 */ 1941 public boolean getExperimental() { 1942 return this.experimental == null || this.experimental.isEmpty() ? false : this.experimental.getValue(); 1943 } 1944 1945 /** 1946 * @param value A boolean value to indicate that this operation definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage. 1947 */ 1948 public OperationDefinition setExperimental(boolean value) { 1949 if (this.experimental == null) 1950 this.experimental = new BooleanType(); 1951 this.experimental.setValue(value); 1952 return this; 1953 } 1954 1955 /** 1956 * @return {@link #date} (The date (and optionally time) when the operation definition was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the operation definition changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 1957 */ 1958 public DateTimeType getDateElement() { 1959 if (this.date == null) 1960 if (Configuration.errorOnAutoCreate()) 1961 throw new Error("Attempt to auto-create OperationDefinition.date"); 1962 else if (Configuration.doAutoCreate()) 1963 this.date = new DateTimeType(); // bb 1964 return this.date; 1965 } 1966 1967 public boolean hasDateElement() { 1968 return this.date != null && !this.date.isEmpty(); 1969 } 1970 1971 public boolean hasDate() { 1972 return this.date != null && !this.date.isEmpty(); 1973 } 1974 1975 /** 1976 * @param value {@link #date} (The date (and optionally time) when the operation definition was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the operation definition changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 1977 */ 1978 public OperationDefinition setDateElement(DateTimeType value) { 1979 this.date = value; 1980 return this; 1981 } 1982 1983 /** 1984 * @return The date (and optionally time) when the operation definition was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the operation definition changes. 1985 */ 1986 public Date getDate() { 1987 return this.date == null ? null : this.date.getValue(); 1988 } 1989 1990 /** 1991 * @param value The date (and optionally time) when the operation definition was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the operation definition changes. 1992 */ 1993 public OperationDefinition setDate(Date value) { 1994 if (value == null) 1995 this.date = null; 1996 else { 1997 if (this.date == null) 1998 this.date = new DateTimeType(); 1999 this.date.setValue(value); 2000 } 2001 return this; 2002 } 2003 2004 /** 2005 * @return {@link #publisher} (The name of the individual or organization that published the operation definition.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value 2006 */ 2007 public StringType getPublisherElement() { 2008 if (this.publisher == null) 2009 if (Configuration.errorOnAutoCreate()) 2010 throw new Error("Attempt to auto-create OperationDefinition.publisher"); 2011 else if (Configuration.doAutoCreate()) 2012 this.publisher = new StringType(); // bb 2013 return this.publisher; 2014 } 2015 2016 public boolean hasPublisherElement() { 2017 return this.publisher != null && !this.publisher.isEmpty(); 2018 } 2019 2020 public boolean hasPublisher() { 2021 return this.publisher != null && !this.publisher.isEmpty(); 2022 } 2023 2024 /** 2025 * @param value {@link #publisher} (The name of the individual or organization that published the operation definition.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value 2026 */ 2027 public OperationDefinition setPublisherElement(StringType value) { 2028 this.publisher = value; 2029 return this; 2030 } 2031 2032 /** 2033 * @return The name of the individual or organization that published the operation definition. 2034 */ 2035 public String getPublisher() { 2036 return this.publisher == null ? null : this.publisher.getValue(); 2037 } 2038 2039 /** 2040 * @param value The name of the individual or organization that published the operation definition. 2041 */ 2042 public OperationDefinition setPublisher(String value) { 2043 if (Utilities.noString(value)) 2044 this.publisher = null; 2045 else { 2046 if (this.publisher == null) 2047 this.publisher = new StringType(); 2048 this.publisher.setValue(value); 2049 } 2050 return this; 2051 } 2052 2053 /** 2054 * @return {@link #contact} (Contact details to assist a user in finding and communicating with the publisher.) 2055 */ 2056 public List<ContactDetail> getContact() { 2057 if (this.contact == null) 2058 this.contact = new ArrayList<ContactDetail>(); 2059 return this.contact; 2060 } 2061 2062 /** 2063 * @return Returns a reference to <code>this</code> for easy method chaining 2064 */ 2065 public OperationDefinition setContact(List<ContactDetail> theContact) { 2066 this.contact = theContact; 2067 return this; 2068 } 2069 2070 public boolean hasContact() { 2071 if (this.contact == null) 2072 return false; 2073 for (ContactDetail item : this.contact) 2074 if (!item.isEmpty()) 2075 return true; 2076 return false; 2077 } 2078 2079 public ContactDetail addContact() { //3 2080 ContactDetail t = new ContactDetail(); 2081 if (this.contact == null) 2082 this.contact = new ArrayList<ContactDetail>(); 2083 this.contact.add(t); 2084 return t; 2085 } 2086 2087 public OperationDefinition addContact(ContactDetail t) { //3 2088 if (t == null) 2089 return this; 2090 if (this.contact == null) 2091 this.contact = new ArrayList<ContactDetail>(); 2092 this.contact.add(t); 2093 return this; 2094 } 2095 2096 /** 2097 * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist 2098 */ 2099 public ContactDetail getContactFirstRep() { 2100 if (getContact().isEmpty()) { 2101 addContact(); 2102 } 2103 return getContact().get(0); 2104 } 2105 2106 /** 2107 * @return {@link #description} (A free text natural language description of the operation definition from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 2108 */ 2109 public MarkdownType getDescriptionElement() { 2110 if (this.description == null) 2111 if (Configuration.errorOnAutoCreate()) 2112 throw new Error("Attempt to auto-create OperationDefinition.description"); 2113 else if (Configuration.doAutoCreate()) 2114 this.description = new MarkdownType(); // bb 2115 return this.description; 2116 } 2117 2118 public boolean hasDescriptionElement() { 2119 return this.description != null && !this.description.isEmpty(); 2120 } 2121 2122 public boolean hasDescription() { 2123 return this.description != null && !this.description.isEmpty(); 2124 } 2125 2126 /** 2127 * @param value {@link #description} (A free text natural language description of the operation definition from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 2128 */ 2129 public OperationDefinition setDescriptionElement(MarkdownType value) { 2130 this.description = value; 2131 return this; 2132 } 2133 2134 /** 2135 * @return A free text natural language description of the operation definition from a consumer's perspective. 2136 */ 2137 public String getDescription() { 2138 return this.description == null ? null : this.description.getValue(); 2139 } 2140 2141 /** 2142 * @param value A free text natural language description of the operation definition from a consumer's perspective. 2143 */ 2144 public OperationDefinition setDescription(String value) { 2145 if (value == null) 2146 this.description = null; 2147 else { 2148 if (this.description == null) 2149 this.description = new MarkdownType(); 2150 this.description.setValue(value); 2151 } 2152 return this; 2153 } 2154 2155 /** 2156 * @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate operation definition instances.) 2157 */ 2158 public List<UsageContext> getUseContext() { 2159 if (this.useContext == null) 2160 this.useContext = new ArrayList<UsageContext>(); 2161 return this.useContext; 2162 } 2163 2164 /** 2165 * @return Returns a reference to <code>this</code> for easy method chaining 2166 */ 2167 public OperationDefinition setUseContext(List<UsageContext> theUseContext) { 2168 this.useContext = theUseContext; 2169 return this; 2170 } 2171 2172 public boolean hasUseContext() { 2173 if (this.useContext == null) 2174 return false; 2175 for (UsageContext item : this.useContext) 2176 if (!item.isEmpty()) 2177 return true; 2178 return false; 2179 } 2180 2181 public UsageContext addUseContext() { //3 2182 UsageContext t = new UsageContext(); 2183 if (this.useContext == null) 2184 this.useContext = new ArrayList<UsageContext>(); 2185 this.useContext.add(t); 2186 return t; 2187 } 2188 2189 public OperationDefinition addUseContext(UsageContext t) { //3 2190 if (t == null) 2191 return this; 2192 if (this.useContext == null) 2193 this.useContext = new ArrayList<UsageContext>(); 2194 this.useContext.add(t); 2195 return this; 2196 } 2197 2198 /** 2199 * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist 2200 */ 2201 public UsageContext getUseContextFirstRep() { 2202 if (getUseContext().isEmpty()) { 2203 addUseContext(); 2204 } 2205 return getUseContext().get(0); 2206 } 2207 2208 /** 2209 * @return {@link #jurisdiction} (A legal or geographic region in which the operation definition is intended to be used.) 2210 */ 2211 public List<CodeableConcept> getJurisdiction() { 2212 if (this.jurisdiction == null) 2213 this.jurisdiction = new ArrayList<CodeableConcept>(); 2214 return this.jurisdiction; 2215 } 2216 2217 /** 2218 * @return Returns a reference to <code>this</code> for easy method chaining 2219 */ 2220 public OperationDefinition setJurisdiction(List<CodeableConcept> theJurisdiction) { 2221 this.jurisdiction = theJurisdiction; 2222 return this; 2223 } 2224 2225 public boolean hasJurisdiction() { 2226 if (this.jurisdiction == null) 2227 return false; 2228 for (CodeableConcept item : this.jurisdiction) 2229 if (!item.isEmpty()) 2230 return true; 2231 return false; 2232 } 2233 2234 public CodeableConcept addJurisdiction() { //3 2235 CodeableConcept t = new CodeableConcept(); 2236 if (this.jurisdiction == null) 2237 this.jurisdiction = new ArrayList<CodeableConcept>(); 2238 this.jurisdiction.add(t); 2239 return t; 2240 } 2241 2242 public OperationDefinition addJurisdiction(CodeableConcept t) { //3 2243 if (t == null) 2244 return this; 2245 if (this.jurisdiction == null) 2246 this.jurisdiction = new ArrayList<CodeableConcept>(); 2247 this.jurisdiction.add(t); 2248 return this; 2249 } 2250 2251 /** 2252 * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist 2253 */ 2254 public CodeableConcept getJurisdictionFirstRep() { 2255 if (getJurisdiction().isEmpty()) { 2256 addJurisdiction(); 2257 } 2258 return getJurisdiction().get(0); 2259 } 2260 2261 /** 2262 * @return {@link #purpose} (Explaination of why this operation definition is needed and why it has been designed as it has.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value 2263 */ 2264 public MarkdownType getPurposeElement() { 2265 if (this.purpose == null) 2266 if (Configuration.errorOnAutoCreate()) 2267 throw new Error("Attempt to auto-create OperationDefinition.purpose"); 2268 else if (Configuration.doAutoCreate()) 2269 this.purpose = new MarkdownType(); // bb 2270 return this.purpose; 2271 } 2272 2273 public boolean hasPurposeElement() { 2274 return this.purpose != null && !this.purpose.isEmpty(); 2275 } 2276 2277 public boolean hasPurpose() { 2278 return this.purpose != null && !this.purpose.isEmpty(); 2279 } 2280 2281 /** 2282 * @param value {@link #purpose} (Explaination of why this operation definition is needed and why it has been designed as it has.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value 2283 */ 2284 public OperationDefinition setPurposeElement(MarkdownType value) { 2285 this.purpose = value; 2286 return this; 2287 } 2288 2289 /** 2290 * @return Explaination of why this operation definition is needed and why it has been designed as it has. 2291 */ 2292 public String getPurpose() { 2293 return this.purpose == null ? null : this.purpose.getValue(); 2294 } 2295 2296 /** 2297 * @param value Explaination of why this operation definition is needed and why it has been designed as it has. 2298 */ 2299 public OperationDefinition setPurpose(String value) { 2300 if (value == null) 2301 this.purpose = null; 2302 else { 2303 if (this.purpose == null) 2304 this.purpose = new MarkdownType(); 2305 this.purpose.setValue(value); 2306 } 2307 return this; 2308 } 2309 2310 /** 2311 * @return {@link #idempotent} (Operations that are idempotent (see [HTTP specification definition of idempotent](http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html)) may be invoked by performing an HTTP GET operation instead of a POST.). This is the underlying object with id, value and extensions. The accessor "getIdempotent" gives direct access to the value 2312 */ 2313 public BooleanType getIdempotentElement() { 2314 if (this.idempotent == null) 2315 if (Configuration.errorOnAutoCreate()) 2316 throw new Error("Attempt to auto-create OperationDefinition.idempotent"); 2317 else if (Configuration.doAutoCreate()) 2318 this.idempotent = new BooleanType(); // bb 2319 return this.idempotent; 2320 } 2321 2322 public boolean hasIdempotentElement() { 2323 return this.idempotent != null && !this.idempotent.isEmpty(); 2324 } 2325 2326 public boolean hasIdempotent() { 2327 return this.idempotent != null && !this.idempotent.isEmpty(); 2328 } 2329 2330 /** 2331 * @param value {@link #idempotent} (Operations that are idempotent (see [HTTP specification definition of idempotent](http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html)) may be invoked by performing an HTTP GET operation instead of a POST.). This is the underlying object with id, value and extensions. The accessor "getIdempotent" gives direct access to the value 2332 */ 2333 public OperationDefinition setIdempotentElement(BooleanType value) { 2334 this.idempotent = value; 2335 return this; 2336 } 2337 2338 /** 2339 * @return Operations that are idempotent (see [HTTP specification definition of idempotent](http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html)) may be invoked by performing an HTTP GET operation instead of a POST. 2340 */ 2341 public boolean getIdempotent() { 2342 return this.idempotent == null || this.idempotent.isEmpty() ? false : this.idempotent.getValue(); 2343 } 2344 2345 /** 2346 * @param value Operations that are idempotent (see [HTTP specification definition of idempotent](http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html)) may be invoked by performing an HTTP GET operation instead of a POST. 2347 */ 2348 public OperationDefinition setIdempotent(boolean value) { 2349 if (this.idempotent == null) 2350 this.idempotent = new BooleanType(); 2351 this.idempotent.setValue(value); 2352 return this; 2353 } 2354 2355 /** 2356 * @return {@link #code} (The name used to invoke the operation.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 2357 */ 2358 public CodeType getCodeElement() { 2359 if (this.code == null) 2360 if (Configuration.errorOnAutoCreate()) 2361 throw new Error("Attempt to auto-create OperationDefinition.code"); 2362 else if (Configuration.doAutoCreate()) 2363 this.code = new CodeType(); // bb 2364 return this.code; 2365 } 2366 2367 public boolean hasCodeElement() { 2368 return this.code != null && !this.code.isEmpty(); 2369 } 2370 2371 public boolean hasCode() { 2372 return this.code != null && !this.code.isEmpty(); 2373 } 2374 2375 /** 2376 * @param value {@link #code} (The name used to invoke the operation.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 2377 */ 2378 public OperationDefinition setCodeElement(CodeType value) { 2379 this.code = value; 2380 return this; 2381 } 2382 2383 /** 2384 * @return The name used to invoke the operation. 2385 */ 2386 public String getCode() { 2387 return this.code == null ? null : this.code.getValue(); 2388 } 2389 2390 /** 2391 * @param value The name used to invoke the operation. 2392 */ 2393 public OperationDefinition setCode(String value) { 2394 if (this.code == null) 2395 this.code = new CodeType(); 2396 this.code.setValue(value); 2397 return this; 2398 } 2399 2400 /** 2401 * @return {@link #comment} (Additional information about how to use this operation or named query.). This is the underlying object with id, value and extensions. The accessor "getComment" gives direct access to the value 2402 */ 2403 public StringType getCommentElement() { 2404 if (this.comment == null) 2405 if (Configuration.errorOnAutoCreate()) 2406 throw new Error("Attempt to auto-create OperationDefinition.comment"); 2407 else if (Configuration.doAutoCreate()) 2408 this.comment = new StringType(); // bb 2409 return this.comment; 2410 } 2411 2412 public boolean hasCommentElement() { 2413 return this.comment != null && !this.comment.isEmpty(); 2414 } 2415 2416 public boolean hasComment() { 2417 return this.comment != null && !this.comment.isEmpty(); 2418 } 2419 2420 /** 2421 * @param value {@link #comment} (Additional information about how to use this operation or named query.). This is the underlying object with id, value and extensions. The accessor "getComment" gives direct access to the value 2422 */ 2423 public OperationDefinition setCommentElement(StringType value) { 2424 this.comment = value; 2425 return this; 2426 } 2427 2428 /** 2429 * @return Additional information about how to use this operation or named query. 2430 */ 2431 public String getComment() { 2432 return this.comment == null ? null : this.comment.getValue(); 2433 } 2434 2435 /** 2436 * @param value Additional information about how to use this operation or named query. 2437 */ 2438 public OperationDefinition setComment(String value) { 2439 if (Utilities.noString(value)) 2440 this.comment = null; 2441 else { 2442 if (this.comment == null) 2443 this.comment = new StringType(); 2444 this.comment.setValue(value); 2445 } 2446 return this; 2447 } 2448 2449 /** 2450 * @return {@link #base} (Indicates that this operation definition is a constraining profile on the base.) 2451 */ 2452 public Reference getBase() { 2453 if (this.base == null) 2454 if (Configuration.errorOnAutoCreate()) 2455 throw new Error("Attempt to auto-create OperationDefinition.base"); 2456 else if (Configuration.doAutoCreate()) 2457 this.base = new Reference(); // cc 2458 return this.base; 2459 } 2460 2461 public boolean hasBase() { 2462 return this.base != null && !this.base.isEmpty(); 2463 } 2464 2465 /** 2466 * @param value {@link #base} (Indicates that this operation definition is a constraining profile on the base.) 2467 */ 2468 public OperationDefinition setBase(Reference value) { 2469 this.base = value; 2470 return this; 2471 } 2472 2473 /** 2474 * @return {@link #base} 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. (Indicates that this operation definition is a constraining profile on the base.) 2475 */ 2476 public OperationDefinition getBaseTarget() { 2477 if (this.baseTarget == null) 2478 if (Configuration.errorOnAutoCreate()) 2479 throw new Error("Attempt to auto-create OperationDefinition.base"); 2480 else if (Configuration.doAutoCreate()) 2481 this.baseTarget = new OperationDefinition(); // aa 2482 return this.baseTarget; 2483 } 2484 2485 /** 2486 * @param value {@link #base} 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. (Indicates that this operation definition is a constraining profile on the base.) 2487 */ 2488 public OperationDefinition setBaseTarget(OperationDefinition value) { 2489 this.baseTarget = value; 2490 return this; 2491 } 2492 2493 /** 2494 * @return {@link #resource} (The types on which this operation can be executed.) 2495 */ 2496 public List<CodeType> getResource() { 2497 if (this.resource == null) 2498 this.resource = new ArrayList<CodeType>(); 2499 return this.resource; 2500 } 2501 2502 /** 2503 * @return Returns a reference to <code>this</code> for easy method chaining 2504 */ 2505 public OperationDefinition setResource(List<CodeType> theResource) { 2506 this.resource = theResource; 2507 return this; 2508 } 2509 2510 public boolean hasResource() { 2511 if (this.resource == null) 2512 return false; 2513 for (CodeType item : this.resource) 2514 if (!item.isEmpty()) 2515 return true; 2516 return false; 2517 } 2518 2519 /** 2520 * @return {@link #resource} (The types on which this operation can be executed.) 2521 */ 2522 public CodeType addResourceElement() {//2 2523 CodeType t = new CodeType(); 2524 if (this.resource == null) 2525 this.resource = new ArrayList<CodeType>(); 2526 this.resource.add(t); 2527 return t; 2528 } 2529 2530 /** 2531 * @param value {@link #resource} (The types on which this operation can be executed.) 2532 */ 2533 public OperationDefinition addResource(String value) { //1 2534 CodeType t = new CodeType(); 2535 t.setValue(value); 2536 if (this.resource == null) 2537 this.resource = new ArrayList<CodeType>(); 2538 this.resource.add(t); 2539 return this; 2540 } 2541 2542 /** 2543 * @param value {@link #resource} (The types on which this operation can be executed.) 2544 */ 2545 public boolean hasResource(String value) { 2546 if (this.resource == null) 2547 return false; 2548 for (CodeType v : this.resource) 2549 if (v.getValue().equals(value)) // code 2550 return true; 2551 return false; 2552 } 2553 2554 /** 2555 * @return {@link #system} (Indicates whether this operation or named query can be invoked at the system level (e.g. without needing to choose a resource type for the context).). This is the underlying object with id, value and extensions. The accessor "getSystem" gives direct access to the value 2556 */ 2557 public BooleanType getSystemElement() { 2558 if (this.system == null) 2559 if (Configuration.errorOnAutoCreate()) 2560 throw new Error("Attempt to auto-create OperationDefinition.system"); 2561 else if (Configuration.doAutoCreate()) 2562 this.system = new BooleanType(); // bb 2563 return this.system; 2564 } 2565 2566 public boolean hasSystemElement() { 2567 return this.system != null && !this.system.isEmpty(); 2568 } 2569 2570 public boolean hasSystem() { 2571 return this.system != null && !this.system.isEmpty(); 2572 } 2573 2574 /** 2575 * @param value {@link #system} (Indicates whether this operation or named query can be invoked at the system level (e.g. without needing to choose a resource type for the context).). This is the underlying object with id, value and extensions. The accessor "getSystem" gives direct access to the value 2576 */ 2577 public OperationDefinition setSystemElement(BooleanType value) { 2578 this.system = value; 2579 return this; 2580 } 2581 2582 /** 2583 * @return Indicates whether this operation or named query can be invoked at the system level (e.g. without needing to choose a resource type for the context). 2584 */ 2585 public boolean getSystem() { 2586 return this.system == null || this.system.isEmpty() ? false : this.system.getValue(); 2587 } 2588 2589 /** 2590 * @param value Indicates whether this operation or named query can be invoked at the system level (e.g. without needing to choose a resource type for the context). 2591 */ 2592 public OperationDefinition setSystem(boolean value) { 2593 if (this.system == null) 2594 this.system = new BooleanType(); 2595 this.system.setValue(value); 2596 return this; 2597 } 2598 2599 /** 2600 * @return {@link #type} (Indicates whether this operation or named query can be invoked at the resource type level for any given resource type level (e.g. without needing to choose a specific resource id for the context).). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value 2601 */ 2602 public BooleanType getTypeElement() { 2603 if (this.type == null) 2604 if (Configuration.errorOnAutoCreate()) 2605 throw new Error("Attempt to auto-create OperationDefinition.type"); 2606 else if (Configuration.doAutoCreate()) 2607 this.type = new BooleanType(); // bb 2608 return this.type; 2609 } 2610 2611 public boolean hasTypeElement() { 2612 return this.type != null && !this.type.isEmpty(); 2613 } 2614 2615 public boolean hasType() { 2616 return this.type != null && !this.type.isEmpty(); 2617 } 2618 2619 /** 2620 * @param value {@link #type} (Indicates whether this operation or named query can be invoked at the resource type level for any given resource type level (e.g. without needing to choose a specific resource id for the context).). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value 2621 */ 2622 public OperationDefinition setTypeElement(BooleanType value) { 2623 this.type = value; 2624 return this; 2625 } 2626 2627 /** 2628 * @return Indicates whether this operation or named query can be invoked at the resource type level for any given resource type level (e.g. without needing to choose a specific resource id for the context). 2629 */ 2630 public boolean getType() { 2631 return this.type == null || this.type.isEmpty() ? false : this.type.getValue(); 2632 } 2633 2634 /** 2635 * @param value Indicates whether this operation or named query can be invoked at the resource type level for any given resource type level (e.g. without needing to choose a specific resource id for the context). 2636 */ 2637 public OperationDefinition setType(boolean value) { 2638 if (this.type == null) 2639 this.type = new BooleanType(); 2640 this.type.setValue(value); 2641 return this; 2642 } 2643 2644 /** 2645 * @return {@link #instance} (Indicates whether this operation can be invoked on a particular instance of one of the given types.). This is the underlying object with id, value and extensions. The accessor "getInstance" gives direct access to the value 2646 */ 2647 public BooleanType getInstanceElement() { 2648 if (this.instance == null) 2649 if (Configuration.errorOnAutoCreate()) 2650 throw new Error("Attempt to auto-create OperationDefinition.instance"); 2651 else if (Configuration.doAutoCreate()) 2652 this.instance = new BooleanType(); // bb 2653 return this.instance; 2654 } 2655 2656 public boolean hasInstanceElement() { 2657 return this.instance != null && !this.instance.isEmpty(); 2658 } 2659 2660 public boolean hasInstance() { 2661 return this.instance != null && !this.instance.isEmpty(); 2662 } 2663 2664 /** 2665 * @param value {@link #instance} (Indicates whether this operation can be invoked on a particular instance of one of the given types.). This is the underlying object with id, value and extensions. The accessor "getInstance" gives direct access to the value 2666 */ 2667 public OperationDefinition setInstanceElement(BooleanType value) { 2668 this.instance = value; 2669 return this; 2670 } 2671 2672 /** 2673 * @return Indicates whether this operation can be invoked on a particular instance of one of the given types. 2674 */ 2675 public boolean getInstance() { 2676 return this.instance == null || this.instance.isEmpty() ? false : this.instance.getValue(); 2677 } 2678 2679 /** 2680 * @param value Indicates whether this operation can be invoked on a particular instance of one of the given types. 2681 */ 2682 public OperationDefinition setInstance(boolean value) { 2683 if (this.instance == null) 2684 this.instance = new BooleanType(); 2685 this.instance.setValue(value); 2686 return this; 2687 } 2688 2689 /** 2690 * @return {@link #parameter} (The parameters for the operation/query.) 2691 */ 2692 public List<OperationDefinitionParameterComponent> getParameter() { 2693 if (this.parameter == null) 2694 this.parameter = new ArrayList<OperationDefinitionParameterComponent>(); 2695 return this.parameter; 2696 } 2697 2698 /** 2699 * @return Returns a reference to <code>this</code> for easy method chaining 2700 */ 2701 public OperationDefinition setParameter(List<OperationDefinitionParameterComponent> theParameter) { 2702 this.parameter = theParameter; 2703 return this; 2704 } 2705 2706 public boolean hasParameter() { 2707 if (this.parameter == null) 2708 return false; 2709 for (OperationDefinitionParameterComponent item : this.parameter) 2710 if (!item.isEmpty()) 2711 return true; 2712 return false; 2713 } 2714 2715 public OperationDefinitionParameterComponent addParameter() { //3 2716 OperationDefinitionParameterComponent t = new OperationDefinitionParameterComponent(); 2717 if (this.parameter == null) 2718 this.parameter = new ArrayList<OperationDefinitionParameterComponent>(); 2719 this.parameter.add(t); 2720 return t; 2721 } 2722 2723 public OperationDefinition addParameter(OperationDefinitionParameterComponent t) { //3 2724 if (t == null) 2725 return this; 2726 if (this.parameter == null) 2727 this.parameter = new ArrayList<OperationDefinitionParameterComponent>(); 2728 this.parameter.add(t); 2729 return this; 2730 } 2731 2732 /** 2733 * @return The first repetition of repeating field {@link #parameter}, creating it if it does not already exist 2734 */ 2735 public OperationDefinitionParameterComponent getParameterFirstRep() { 2736 if (getParameter().isEmpty()) { 2737 addParameter(); 2738 } 2739 return getParameter().get(0); 2740 } 2741 2742 /** 2743 * @return {@link #overload} (Defines an appropriate combination of parameters to use when invoking this operation, to help code generators when generating overloaded parameter sets for this operation.) 2744 */ 2745 public List<OperationDefinitionOverloadComponent> getOverload() { 2746 if (this.overload == null) 2747 this.overload = new ArrayList<OperationDefinitionOverloadComponent>(); 2748 return this.overload; 2749 } 2750 2751 /** 2752 * @return Returns a reference to <code>this</code> for easy method chaining 2753 */ 2754 public OperationDefinition setOverload(List<OperationDefinitionOverloadComponent> theOverload) { 2755 this.overload = theOverload; 2756 return this; 2757 } 2758 2759 public boolean hasOverload() { 2760 if (this.overload == null) 2761 return false; 2762 for (OperationDefinitionOverloadComponent item : this.overload) 2763 if (!item.isEmpty()) 2764 return true; 2765 return false; 2766 } 2767 2768 public OperationDefinitionOverloadComponent addOverload() { //3 2769 OperationDefinitionOverloadComponent t = new OperationDefinitionOverloadComponent(); 2770 if (this.overload == null) 2771 this.overload = new ArrayList<OperationDefinitionOverloadComponent>(); 2772 this.overload.add(t); 2773 return t; 2774 } 2775 2776 public OperationDefinition addOverload(OperationDefinitionOverloadComponent t) { //3 2777 if (t == null) 2778 return this; 2779 if (this.overload == null) 2780 this.overload = new ArrayList<OperationDefinitionOverloadComponent>(); 2781 this.overload.add(t); 2782 return this; 2783 } 2784 2785 /** 2786 * @return The first repetition of repeating field {@link #overload}, creating it if it does not already exist 2787 */ 2788 public OperationDefinitionOverloadComponent getOverloadFirstRep() { 2789 if (getOverload().isEmpty()) { 2790 addOverload(); 2791 } 2792 return getOverload().get(0); 2793 } 2794 2795 protected void listChildren(List<Property> children) { 2796 super.listChildren(children); 2797 children.add(new Property("url", "uri", "An absolute URI that is used to identify this operation definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this operation definition is (or will be) published. The URL SHOULD include the major version of the operation definition. For more information see [Technical and Business Versions](resource.html#versions).", 0, 1, url)); 2798 children.add(new Property("version", "string", "The identifier that is used to identify this version of the operation definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the operation definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version)); 2799 children.add(new Property("name", "string", "A natural language name identifying the operation definition. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name)); 2800 children.add(new Property("status", "code", "The status of this operation definition. Enables tracking the life-cycle of the content.", 0, 1, status)); 2801 children.add(new Property("kind", "code", "Whether this is an operation or a named query.", 0, 1, kind)); 2802 children.add(new Property("experimental", "boolean", "A boolean value to indicate that this operation definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.", 0, 1, experimental)); 2803 children.add(new Property("date", "dateTime", "The date (and optionally time) when the operation definition was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the operation definition changes.", 0, 1, date)); 2804 children.add(new Property("publisher", "string", "The name of the individual or organization that published the operation definition.", 0, 1, publisher)); 2805 children.add(new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact)); 2806 children.add(new Property("description", "markdown", "A free text natural language description of the operation definition from a consumer's perspective.", 0, 1, description)); 2807 children.add(new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate operation definition instances.", 0, java.lang.Integer.MAX_VALUE, useContext)); 2808 children.add(new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the operation definition is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction)); 2809 children.add(new Property("purpose", "markdown", "Explaination of why this operation definition is needed and why it has been designed as it has.", 0, 1, purpose)); 2810 children.add(new Property("idempotent", "boolean", "Operations that are idempotent (see [HTTP specification definition of idempotent](http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html)) may be invoked by performing an HTTP GET operation instead of a POST.", 0, 1, idempotent)); 2811 children.add(new Property("code", "code", "The name used to invoke the operation.", 0, 1, code)); 2812 children.add(new Property("comment", "string", "Additional information about how to use this operation or named query.", 0, 1, comment)); 2813 children.add(new Property("base", "Reference(OperationDefinition)", "Indicates that this operation definition is a constraining profile on the base.", 0, 1, base)); 2814 children.add(new Property("resource", "code", "The types on which this operation can be executed.", 0, java.lang.Integer.MAX_VALUE, resource)); 2815 children.add(new Property("system", "boolean", "Indicates whether this operation or named query can be invoked at the system level (e.g. without needing to choose a resource type for the context).", 0, 1, system)); 2816 children.add(new Property("type", "boolean", "Indicates whether this operation or named query can be invoked at the resource type level for any given resource type level (e.g. without needing to choose a specific resource id for the context).", 0, 1, type)); 2817 children.add(new Property("instance", "boolean", "Indicates whether this operation can be invoked on a particular instance of one of the given types.", 0, 1, instance)); 2818 children.add(new Property("parameter", "", "The parameters for the operation/query.", 0, java.lang.Integer.MAX_VALUE, parameter)); 2819 children.add(new Property("overload", "", "Defines an appropriate combination of parameters to use when invoking this operation, to help code generators when generating overloaded parameter sets for this operation.", 0, java.lang.Integer.MAX_VALUE, overload)); 2820 } 2821 2822 @Override 2823 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 2824 switch (_hash) { 2825 case 116079: /*url*/ return new Property("url", "uri", "An absolute URI that is used to identify this operation definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this operation definition is (or will be) published. The URL SHOULD include the major version of the operation definition. For more information see [Technical and Business Versions](resource.html#versions).", 0, 1, url); 2826 case 351608024: /*version*/ return new Property("version", "string", "The identifier that is used to identify this version of the operation definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the operation definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version); 2827 case 3373707: /*name*/ return new Property("name", "string", "A natural language name identifying the operation definition. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name); 2828 case -892481550: /*status*/ return new Property("status", "code", "The status of this operation definition. Enables tracking the life-cycle of the content.", 0, 1, status); 2829 case 3292052: /*kind*/ return new Property("kind", "code", "Whether this is an operation or a named query.", 0, 1, kind); 2830 case -404562712: /*experimental*/ return new Property("experimental", "boolean", "A boolean value to indicate that this operation definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.", 0, 1, experimental); 2831 case 3076014: /*date*/ return new Property("date", "dateTime", "The date (and optionally time) when the operation definition was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the operation definition changes.", 0, 1, date); 2832 case 1447404028: /*publisher*/ return new Property("publisher", "string", "The name of the individual or organization that published the operation definition.", 0, 1, publisher); 2833 case 951526432: /*contact*/ return new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact); 2834 case -1724546052: /*description*/ return new Property("description", "markdown", "A free text natural language description of the operation definition from a consumer's perspective.", 0, 1, description); 2835 case -669707736: /*useContext*/ return new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate operation definition instances.", 0, java.lang.Integer.MAX_VALUE, useContext); 2836 case -507075711: /*jurisdiction*/ return new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the operation definition is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction); 2837 case -220463842: /*purpose*/ return new Property("purpose", "markdown", "Explaination of why this operation definition is needed and why it has been designed as it has.", 0, 1, purpose); 2838 case 1680468793: /*idempotent*/ return new Property("idempotent", "boolean", "Operations that are idempotent (see [HTTP specification definition of idempotent](http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html)) may be invoked by performing an HTTP GET operation instead of a POST.", 0, 1, idempotent); 2839 case 3059181: /*code*/ return new Property("code", "code", "The name used to invoke the operation.", 0, 1, code); 2840 case 950398559: /*comment*/ return new Property("comment", "string", "Additional information about how to use this operation or named query.", 0, 1, comment); 2841 case 3016401: /*base*/ return new Property("base", "Reference(OperationDefinition)", "Indicates that this operation definition is a constraining profile on the base.", 0, 1, base); 2842 case -341064690: /*resource*/ return new Property("resource", "code", "The types on which this operation can be executed.", 0, java.lang.Integer.MAX_VALUE, resource); 2843 case -887328209: /*system*/ return new Property("system", "boolean", "Indicates whether this operation or named query can be invoked at the system level (e.g. without needing to choose a resource type for the context).", 0, 1, system); 2844 case 3575610: /*type*/ return new Property("type", "boolean", "Indicates whether this operation or named query can be invoked at the resource type level for any given resource type level (e.g. without needing to choose a specific resource id for the context).", 0, 1, type); 2845 case 555127957: /*instance*/ return new Property("instance", "boolean", "Indicates whether this operation can be invoked on a particular instance of one of the given types.", 0, 1, instance); 2846 case 1954460585: /*parameter*/ return new Property("parameter", "", "The parameters for the operation/query.", 0, java.lang.Integer.MAX_VALUE, parameter); 2847 case 529823674: /*overload*/ return new Property("overload", "", "Defines an appropriate combination of parameters to use when invoking this operation, to help code generators when generating overloaded parameter sets for this operation.", 0, java.lang.Integer.MAX_VALUE, overload); 2848 default: return super.getNamedProperty(_hash, _name, _checkValid); 2849 } 2850 2851 } 2852 2853 @Override 2854 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 2855 switch (hash) { 2856 case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType 2857 case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType 2858 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType 2859 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<PublicationStatus> 2860 case 3292052: /*kind*/ return this.kind == null ? new Base[0] : new Base[] {this.kind}; // Enumeration<OperationKind> 2861 case -404562712: /*experimental*/ return this.experimental == null ? new Base[0] : new Base[] {this.experimental}; // BooleanType 2862 case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType 2863 case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // StringType 2864 case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail 2865 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType 2866 case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext 2867 case -507075711: /*jurisdiction*/ return this.jurisdiction == null ? new Base[0] : this.jurisdiction.toArray(new Base[this.jurisdiction.size()]); // CodeableConcept 2868 case -220463842: /*purpose*/ return this.purpose == null ? new Base[0] : new Base[] {this.purpose}; // MarkdownType 2869 case 1680468793: /*idempotent*/ return this.idempotent == null ? new Base[0] : new Base[] {this.idempotent}; // BooleanType 2870 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeType 2871 case 950398559: /*comment*/ return this.comment == null ? new Base[0] : new Base[] {this.comment}; // StringType 2872 case 3016401: /*base*/ return this.base == null ? new Base[0] : new Base[] {this.base}; // Reference 2873 case -341064690: /*resource*/ return this.resource == null ? new Base[0] : this.resource.toArray(new Base[this.resource.size()]); // CodeType 2874 case -887328209: /*system*/ return this.system == null ? new Base[0] : new Base[] {this.system}; // BooleanType 2875 case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // BooleanType 2876 case 555127957: /*instance*/ return this.instance == null ? new Base[0] : new Base[] {this.instance}; // BooleanType 2877 case 1954460585: /*parameter*/ return this.parameter == null ? new Base[0] : this.parameter.toArray(new Base[this.parameter.size()]); // OperationDefinitionParameterComponent 2878 case 529823674: /*overload*/ return this.overload == null ? new Base[0] : this.overload.toArray(new Base[this.overload.size()]); // OperationDefinitionOverloadComponent 2879 default: return super.getProperty(hash, name, checkValid); 2880 } 2881 2882 } 2883 2884 @Override 2885 public Base setProperty(int hash, String name, Base value) throws FHIRException { 2886 switch (hash) { 2887 case 116079: // url 2888 this.url = castToUri(value); // UriType 2889 return value; 2890 case 351608024: // version 2891 this.version = castToString(value); // StringType 2892 return value; 2893 case 3373707: // name 2894 this.name = castToString(value); // StringType 2895 return value; 2896 case -892481550: // status 2897 value = new PublicationStatusEnumFactory().fromType(castToCode(value)); 2898 this.status = (Enumeration) value; // Enumeration<PublicationStatus> 2899 return value; 2900 case 3292052: // kind 2901 value = new OperationKindEnumFactory().fromType(castToCode(value)); 2902 this.kind = (Enumeration) value; // Enumeration<OperationKind> 2903 return value; 2904 case -404562712: // experimental 2905 this.experimental = castToBoolean(value); // BooleanType 2906 return value; 2907 case 3076014: // date 2908 this.date = castToDateTime(value); // DateTimeType 2909 return value; 2910 case 1447404028: // publisher 2911 this.publisher = castToString(value); // StringType 2912 return value; 2913 case 951526432: // contact 2914 this.getContact().add(castToContactDetail(value)); // ContactDetail 2915 return value; 2916 case -1724546052: // description 2917 this.description = castToMarkdown(value); // MarkdownType 2918 return value; 2919 case -669707736: // useContext 2920 this.getUseContext().add(castToUsageContext(value)); // UsageContext 2921 return value; 2922 case -507075711: // jurisdiction 2923 this.getJurisdiction().add(castToCodeableConcept(value)); // CodeableConcept 2924 return value; 2925 case -220463842: // purpose 2926 this.purpose = castToMarkdown(value); // MarkdownType 2927 return value; 2928 case 1680468793: // idempotent 2929 this.idempotent = castToBoolean(value); // BooleanType 2930 return value; 2931 case 3059181: // code 2932 this.code = castToCode(value); // CodeType 2933 return value; 2934 case 950398559: // comment 2935 this.comment = castToString(value); // StringType 2936 return value; 2937 case 3016401: // base 2938 this.base = castToReference(value); // Reference 2939 return value; 2940 case -341064690: // resource 2941 this.getResource().add(castToCode(value)); // CodeType 2942 return value; 2943 case -887328209: // system 2944 this.system = castToBoolean(value); // BooleanType 2945 return value; 2946 case 3575610: // type 2947 this.type = castToBoolean(value); // BooleanType 2948 return value; 2949 case 555127957: // instance 2950 this.instance = castToBoolean(value); // BooleanType 2951 return value; 2952 case 1954460585: // parameter 2953 this.getParameter().add((OperationDefinitionParameterComponent) value); // OperationDefinitionParameterComponent 2954 return value; 2955 case 529823674: // overload 2956 this.getOverload().add((OperationDefinitionOverloadComponent) value); // OperationDefinitionOverloadComponent 2957 return value; 2958 default: return super.setProperty(hash, name, value); 2959 } 2960 2961 } 2962 2963 @Override 2964 public Base setProperty(String name, Base value) throws FHIRException { 2965 if (name.equals("url")) { 2966 this.url = castToUri(value); // UriType 2967 } else if (name.equals("version")) { 2968 this.version = castToString(value); // StringType 2969 } else if (name.equals("name")) { 2970 this.name = castToString(value); // StringType 2971 } else if (name.equals("status")) { 2972 value = new PublicationStatusEnumFactory().fromType(castToCode(value)); 2973 this.status = (Enumeration) value; // Enumeration<PublicationStatus> 2974 } else if (name.equals("kind")) { 2975 value = new OperationKindEnumFactory().fromType(castToCode(value)); 2976 this.kind = (Enumeration) value; // Enumeration<OperationKind> 2977 } else if (name.equals("experimental")) { 2978 this.experimental = castToBoolean(value); // BooleanType 2979 } else if (name.equals("date")) { 2980 this.date = castToDateTime(value); // DateTimeType 2981 } else if (name.equals("publisher")) { 2982 this.publisher = castToString(value); // StringType 2983 } else if (name.equals("contact")) { 2984 this.getContact().add(castToContactDetail(value)); 2985 } else if (name.equals("description")) { 2986 this.description = castToMarkdown(value); // MarkdownType 2987 } else if (name.equals("useContext")) { 2988 this.getUseContext().add(castToUsageContext(value)); 2989 } else if (name.equals("jurisdiction")) { 2990 this.getJurisdiction().add(castToCodeableConcept(value)); 2991 } else if (name.equals("purpose")) { 2992 this.purpose = castToMarkdown(value); // MarkdownType 2993 } else if (name.equals("idempotent")) { 2994 this.idempotent = castToBoolean(value); // BooleanType 2995 } else if (name.equals("code")) { 2996 this.code = castToCode(value); // CodeType 2997 } else if (name.equals("comment")) { 2998 this.comment = castToString(value); // StringType 2999 } else if (name.equals("base")) { 3000 this.base = castToReference(value); // Reference 3001 } else if (name.equals("resource")) { 3002 this.getResource().add(castToCode(value)); 3003 } else if (name.equals("system")) { 3004 this.system = castToBoolean(value); // BooleanType 3005 } else if (name.equals("type")) { 3006 this.type = castToBoolean(value); // BooleanType 3007 } else if (name.equals("instance")) { 3008 this.instance = castToBoolean(value); // BooleanType 3009 } else if (name.equals("parameter")) { 3010 this.getParameter().add((OperationDefinitionParameterComponent) value); 3011 } else if (name.equals("overload")) { 3012 this.getOverload().add((OperationDefinitionOverloadComponent) value); 3013 } else 3014 return super.setProperty(name, value); 3015 return value; 3016 } 3017 3018 @Override 3019 public Base makeProperty(int hash, String name) throws FHIRException { 3020 switch (hash) { 3021 case 116079: return getUrlElement(); 3022 case 351608024: return getVersionElement(); 3023 case 3373707: return getNameElement(); 3024 case -892481550: return getStatusElement(); 3025 case 3292052: return getKindElement(); 3026 case -404562712: return getExperimentalElement(); 3027 case 3076014: return getDateElement(); 3028 case 1447404028: return getPublisherElement(); 3029 case 951526432: return addContact(); 3030 case -1724546052: return getDescriptionElement(); 3031 case -669707736: return addUseContext(); 3032 case -507075711: return addJurisdiction(); 3033 case -220463842: return getPurposeElement(); 3034 case 1680468793: return getIdempotentElement(); 3035 case 3059181: return getCodeElement(); 3036 case 950398559: return getCommentElement(); 3037 case 3016401: return getBase(); 3038 case -341064690: return addResourceElement(); 3039 case -887328209: return getSystemElement(); 3040 case 3575610: return getTypeElement(); 3041 case 555127957: return getInstanceElement(); 3042 case 1954460585: return addParameter(); 3043 case 529823674: return addOverload(); 3044 default: return super.makeProperty(hash, name); 3045 } 3046 3047 } 3048 3049 @Override 3050 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 3051 switch (hash) { 3052 case 116079: /*url*/ return new String[] {"uri"}; 3053 case 351608024: /*version*/ return new String[] {"string"}; 3054 case 3373707: /*name*/ return new String[] {"string"}; 3055 case -892481550: /*status*/ return new String[] {"code"}; 3056 case 3292052: /*kind*/ return new String[] {"code"}; 3057 case -404562712: /*experimental*/ return new String[] {"boolean"}; 3058 case 3076014: /*date*/ return new String[] {"dateTime"}; 3059 case 1447404028: /*publisher*/ return new String[] {"string"}; 3060 case 951526432: /*contact*/ return new String[] {"ContactDetail"}; 3061 case -1724546052: /*description*/ return new String[] {"markdown"}; 3062 case -669707736: /*useContext*/ return new String[] {"UsageContext"}; 3063 case -507075711: /*jurisdiction*/ return new String[] {"CodeableConcept"}; 3064 case -220463842: /*purpose*/ return new String[] {"markdown"}; 3065 case 1680468793: /*idempotent*/ return new String[] {"boolean"}; 3066 case 3059181: /*code*/ return new String[] {"code"}; 3067 case 950398559: /*comment*/ return new String[] {"string"}; 3068 case 3016401: /*base*/ return new String[] {"Reference"}; 3069 case -341064690: /*resource*/ return new String[] {"code"}; 3070 case -887328209: /*system*/ return new String[] {"boolean"}; 3071 case 3575610: /*type*/ return new String[] {"boolean"}; 3072 case 555127957: /*instance*/ return new String[] {"boolean"}; 3073 case 1954460585: /*parameter*/ return new String[] {}; 3074 case 529823674: /*overload*/ return new String[] {}; 3075 default: return super.getTypesForProperty(hash, name); 3076 } 3077 3078 } 3079 3080 @Override 3081 public Base addChild(String name) throws FHIRException { 3082 if (name.equals("url")) { 3083 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.url"); 3084 } 3085 else if (name.equals("version")) { 3086 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.version"); 3087 } 3088 else if (name.equals("name")) { 3089 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.name"); 3090 } 3091 else if (name.equals("status")) { 3092 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.status"); 3093 } 3094 else if (name.equals("kind")) { 3095 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.kind"); 3096 } 3097 else if (name.equals("experimental")) { 3098 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.experimental"); 3099 } 3100 else if (name.equals("date")) { 3101 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.date"); 3102 } 3103 else if (name.equals("publisher")) { 3104 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.publisher"); 3105 } 3106 else if (name.equals("contact")) { 3107 return addContact(); 3108 } 3109 else if (name.equals("description")) { 3110 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.description"); 3111 } 3112 else if (name.equals("useContext")) { 3113 return addUseContext(); 3114 } 3115 else if (name.equals("jurisdiction")) { 3116 return addJurisdiction(); 3117 } 3118 else if (name.equals("purpose")) { 3119 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.purpose"); 3120 } 3121 else if (name.equals("idempotent")) { 3122 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.idempotent"); 3123 } 3124 else if (name.equals("code")) { 3125 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.code"); 3126 } 3127 else if (name.equals("comment")) { 3128 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.comment"); 3129 } 3130 else if (name.equals("base")) { 3131 this.base = new Reference(); 3132 return this.base; 3133 } 3134 else if (name.equals("resource")) { 3135 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.resource"); 3136 } 3137 else if (name.equals("system")) { 3138 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.system"); 3139 } 3140 else if (name.equals("type")) { 3141 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.type"); 3142 } 3143 else if (name.equals("instance")) { 3144 throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.instance"); 3145 } 3146 else if (name.equals("parameter")) { 3147 return addParameter(); 3148 } 3149 else if (name.equals("overload")) { 3150 return addOverload(); 3151 } 3152 else 3153 return super.addChild(name); 3154 } 3155 3156 public String fhirType() { 3157 return "OperationDefinition"; 3158 3159 } 3160 3161 public OperationDefinition copy() { 3162 OperationDefinition dst = new OperationDefinition(); 3163 copyValues(dst); 3164 dst.url = url == null ? null : url.copy(); 3165 dst.version = version == null ? null : version.copy(); 3166 dst.name = name == null ? null : name.copy(); 3167 dst.status = status == null ? null : status.copy(); 3168 dst.kind = kind == null ? null : kind.copy(); 3169 dst.experimental = experimental == null ? null : experimental.copy(); 3170 dst.date = date == null ? null : date.copy(); 3171 dst.publisher = publisher == null ? null : publisher.copy(); 3172 if (contact != null) { 3173 dst.contact = new ArrayList<ContactDetail>(); 3174 for (ContactDetail i : contact) 3175 dst.contact.add(i.copy()); 3176 }; 3177 dst.description = description == null ? null : description.copy(); 3178 if (useContext != null) { 3179 dst.useContext = new ArrayList<UsageContext>(); 3180 for (UsageContext i : useContext) 3181 dst.useContext.add(i.copy()); 3182 }; 3183 if (jurisdiction != null) { 3184 dst.jurisdiction = new ArrayList<CodeableConcept>(); 3185 for (CodeableConcept i : jurisdiction) 3186 dst.jurisdiction.add(i.copy()); 3187 }; 3188 dst.purpose = purpose == null ? null : purpose.copy(); 3189 dst.idempotent = idempotent == null ? null : idempotent.copy(); 3190 dst.code = code == null ? null : code.copy(); 3191 dst.comment = comment == null ? null : comment.copy(); 3192 dst.base = base == null ? null : base.copy(); 3193 if (resource != null) { 3194 dst.resource = new ArrayList<CodeType>(); 3195 for (CodeType i : resource) 3196 dst.resource.add(i.copy()); 3197 }; 3198 dst.system = system == null ? null : system.copy(); 3199 dst.type = type == null ? null : type.copy(); 3200 dst.instance = instance == null ? null : instance.copy(); 3201 if (parameter != null) { 3202 dst.parameter = new ArrayList<OperationDefinitionParameterComponent>(); 3203 for (OperationDefinitionParameterComponent i : parameter) 3204 dst.parameter.add(i.copy()); 3205 }; 3206 if (overload != null) { 3207 dst.overload = new ArrayList<OperationDefinitionOverloadComponent>(); 3208 for (OperationDefinitionOverloadComponent i : overload) 3209 dst.overload.add(i.copy()); 3210 }; 3211 return dst; 3212 } 3213 3214 protected OperationDefinition typedCopy() { 3215 return copy(); 3216 } 3217 3218 @Override 3219 public boolean equalsDeep(Base other_) { 3220 if (!super.equalsDeep(other_)) 3221 return false; 3222 if (!(other_ instanceof OperationDefinition)) 3223 return false; 3224 OperationDefinition o = (OperationDefinition) other_; 3225 return compareDeep(kind, o.kind, true) && compareDeep(purpose, o.purpose, true) && compareDeep(idempotent, o.idempotent, true) 3226 && compareDeep(code, o.code, true) && compareDeep(comment, o.comment, true) && compareDeep(base, o.base, true) 3227 && compareDeep(resource, o.resource, true) && compareDeep(system, o.system, true) && compareDeep(type, o.type, true) 3228 && compareDeep(instance, o.instance, true) && compareDeep(parameter, o.parameter, true) && compareDeep(overload, o.overload, true) 3229 ; 3230 } 3231 3232 @Override 3233 public boolean equalsShallow(Base other_) { 3234 if (!super.equalsShallow(other_)) 3235 return false; 3236 if (!(other_ instanceof OperationDefinition)) 3237 return false; 3238 OperationDefinition o = (OperationDefinition) other_; 3239 return compareValues(kind, o.kind, true) && compareValues(purpose, o.purpose, true) && compareValues(idempotent, o.idempotent, true) 3240 && compareValues(code, o.code, true) && compareValues(comment, o.comment, true) && compareValues(resource, o.resource, true) 3241 && compareValues(system, o.system, true) && compareValues(type, o.type, true) && compareValues(instance, o.instance, true) 3242 ; 3243 } 3244 3245 public boolean isEmpty() { 3246 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(kind, purpose, idempotent 3247 , code, comment, base, resource, system, type, instance, parameter, overload 3248 ); 3249 } 3250 3251 @Override 3252 public ResourceType getResourceType() { 3253 return ResourceType.OperationDefinition; 3254 } 3255 3256 /** 3257 * Search parameter: <b>date</b> 3258 * <p> 3259 * Description: <b>The operation definition publication date</b><br> 3260 * Type: <b>date</b><br> 3261 * Path: <b>OperationDefinition.date</b><br> 3262 * </p> 3263 */ 3264 @SearchParamDefinition(name="date", path="OperationDefinition.date", description="The operation definition publication date", type="date" ) 3265 public static final String SP_DATE = "date"; 3266 /** 3267 * <b>Fluent Client</b> search parameter constant for <b>date</b> 3268 * <p> 3269 * Description: <b>The operation definition publication date</b><br> 3270 * Type: <b>date</b><br> 3271 * Path: <b>OperationDefinition.date</b><br> 3272 * </p> 3273 */ 3274 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 3275 3276 /** 3277 * Search parameter: <b>code</b> 3278 * <p> 3279 * Description: <b>Name used to invoke the operation</b><br> 3280 * Type: <b>token</b><br> 3281 * Path: <b>OperationDefinition.code</b><br> 3282 * </p> 3283 */ 3284 @SearchParamDefinition(name="code", path="OperationDefinition.code", description="Name used to invoke the operation", type="token" ) 3285 public static final String SP_CODE = "code"; 3286 /** 3287 * <b>Fluent Client</b> search parameter constant for <b>code</b> 3288 * <p> 3289 * Description: <b>Name used to invoke the operation</b><br> 3290 * Type: <b>token</b><br> 3291 * Path: <b>OperationDefinition.code</b><br> 3292 * </p> 3293 */ 3294 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); 3295 3296 /** 3297 * Search parameter: <b>instance</b> 3298 * <p> 3299 * Description: <b>Invoke on an instance?</b><br> 3300 * Type: <b>token</b><br> 3301 * Path: <b>OperationDefinition.instance</b><br> 3302 * </p> 3303 */ 3304 @SearchParamDefinition(name="instance", path="OperationDefinition.instance", description="Invoke on an instance?", type="token" ) 3305 public static final String SP_INSTANCE = "instance"; 3306 /** 3307 * <b>Fluent Client</b> search parameter constant for <b>instance</b> 3308 * <p> 3309 * Description: <b>Invoke on an instance?</b><br> 3310 * Type: <b>token</b><br> 3311 * Path: <b>OperationDefinition.instance</b><br> 3312 * </p> 3313 */ 3314 public static final ca.uhn.fhir.rest.gclient.TokenClientParam INSTANCE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_INSTANCE); 3315 3316 /** 3317 * Search parameter: <b>kind</b> 3318 * <p> 3319 * Description: <b>operation | query</b><br> 3320 * Type: <b>token</b><br> 3321 * Path: <b>OperationDefinition.kind</b><br> 3322 * </p> 3323 */ 3324 @SearchParamDefinition(name="kind", path="OperationDefinition.kind", description="operation | query", type="token" ) 3325 public static final String SP_KIND = "kind"; 3326 /** 3327 * <b>Fluent Client</b> search parameter constant for <b>kind</b> 3328 * <p> 3329 * Description: <b>operation | query</b><br> 3330 * Type: <b>token</b><br> 3331 * Path: <b>OperationDefinition.kind</b><br> 3332 * </p> 3333 */ 3334 public static final ca.uhn.fhir.rest.gclient.TokenClientParam KIND = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_KIND); 3335 3336 /** 3337 * Search parameter: <b>jurisdiction</b> 3338 * <p> 3339 * Description: <b>Intended jurisdiction for the operation definition</b><br> 3340 * Type: <b>token</b><br> 3341 * Path: <b>OperationDefinition.jurisdiction</b><br> 3342 * </p> 3343 */ 3344 @SearchParamDefinition(name="jurisdiction", path="OperationDefinition.jurisdiction", description="Intended jurisdiction for the operation definition", type="token" ) 3345 public static final String SP_JURISDICTION = "jurisdiction"; 3346 /** 3347 * <b>Fluent Client</b> search parameter constant for <b>jurisdiction</b> 3348 * <p> 3349 * Description: <b>Intended jurisdiction for the operation definition</b><br> 3350 * Type: <b>token</b><br> 3351 * Path: <b>OperationDefinition.jurisdiction</b><br> 3352 * </p> 3353 */ 3354 public static final ca.uhn.fhir.rest.gclient.TokenClientParam JURISDICTION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_JURISDICTION); 3355 3356 /** 3357 * Search parameter: <b>description</b> 3358 * <p> 3359 * Description: <b>The description of the operation definition</b><br> 3360 * Type: <b>string</b><br> 3361 * Path: <b>OperationDefinition.description</b><br> 3362 * </p> 3363 */ 3364 @SearchParamDefinition(name="description", path="OperationDefinition.description", description="The description of the operation definition", type="string" ) 3365 public static final String SP_DESCRIPTION = "description"; 3366 /** 3367 * <b>Fluent Client</b> search parameter constant for <b>description</b> 3368 * <p> 3369 * Description: <b>The description of the operation definition</b><br> 3370 * Type: <b>string</b><br> 3371 * Path: <b>OperationDefinition.description</b><br> 3372 * </p> 3373 */ 3374 public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION); 3375 3376 /** 3377 * Search parameter: <b>type</b> 3378 * <p> 3379 * Description: <b>Invole at the type level?</b><br> 3380 * Type: <b>token</b><br> 3381 * Path: <b>OperationDefinition.type</b><br> 3382 * </p> 3383 */ 3384 @SearchParamDefinition(name="type", path="OperationDefinition.type", description="Invole at the type level?", type="token" ) 3385 public static final String SP_TYPE = "type"; 3386 /** 3387 * <b>Fluent Client</b> search parameter constant for <b>type</b> 3388 * <p> 3389 * Description: <b>Invole at the type level?</b><br> 3390 * Type: <b>token</b><br> 3391 * Path: <b>OperationDefinition.type</b><br> 3392 * </p> 3393 */ 3394 public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); 3395 3396 /** 3397 * Search parameter: <b>version</b> 3398 * <p> 3399 * Description: <b>The business version of the operation definition</b><br> 3400 * Type: <b>token</b><br> 3401 * Path: <b>OperationDefinition.version</b><br> 3402 * </p> 3403 */ 3404 @SearchParamDefinition(name="version", path="OperationDefinition.version", description="The business version of the operation definition", type="token" ) 3405 public static final String SP_VERSION = "version"; 3406 /** 3407 * <b>Fluent Client</b> search parameter constant for <b>version</b> 3408 * <p> 3409 * Description: <b>The business version of the operation definition</b><br> 3410 * Type: <b>token</b><br> 3411 * Path: <b>OperationDefinition.version</b><br> 3412 * </p> 3413 */ 3414 public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); 3415 3416 /** 3417 * Search parameter: <b>url</b> 3418 * <p> 3419 * Description: <b>The uri that identifies the operation definition</b><br> 3420 * Type: <b>uri</b><br> 3421 * Path: <b>OperationDefinition.url</b><br> 3422 * </p> 3423 */ 3424 @SearchParamDefinition(name="url", path="OperationDefinition.url", description="The uri that identifies the operation definition", type="uri" ) 3425 public static final String SP_URL = "url"; 3426 /** 3427 * <b>Fluent Client</b> search parameter constant for <b>url</b> 3428 * <p> 3429 * Description: <b>The uri that identifies the operation definition</b><br> 3430 * Type: <b>uri</b><br> 3431 * Path: <b>OperationDefinition.url</b><br> 3432 * </p> 3433 */ 3434 public static final ca.uhn.fhir.rest.gclient.UriClientParam URL = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_URL); 3435 3436 /** 3437 * Search parameter: <b>system</b> 3438 * <p> 3439 * Description: <b>Invoke at the system level?</b><br> 3440 * Type: <b>token</b><br> 3441 * Path: <b>OperationDefinition.system</b><br> 3442 * </p> 3443 */ 3444 @SearchParamDefinition(name="system", path="OperationDefinition.system", description="Invoke at the system level?", type="token" ) 3445 public static final String SP_SYSTEM = "system"; 3446 /** 3447 * <b>Fluent Client</b> search parameter constant for <b>system</b> 3448 * <p> 3449 * Description: <b>Invoke at the system level?</b><br> 3450 * Type: <b>token</b><br> 3451 * Path: <b>OperationDefinition.system</b><br> 3452 * </p> 3453 */ 3454 public static final ca.uhn.fhir.rest.gclient.TokenClientParam SYSTEM = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SYSTEM); 3455 3456 /** 3457 * Search parameter: <b>name</b> 3458 * <p> 3459 * Description: <b>Computationally friendly name of the operation definition</b><br> 3460 * Type: <b>string</b><br> 3461 * Path: <b>OperationDefinition.name</b><br> 3462 * </p> 3463 */ 3464 @SearchParamDefinition(name="name", path="OperationDefinition.name", description="Computationally friendly name of the operation definition", type="string" ) 3465 public static final String SP_NAME = "name"; 3466 /** 3467 * <b>Fluent Client</b> search parameter constant for <b>name</b> 3468 * <p> 3469 * Description: <b>Computationally friendly name of the operation definition</b><br> 3470 * Type: <b>string</b><br> 3471 * Path: <b>OperationDefinition.name</b><br> 3472 * </p> 3473 */ 3474 public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); 3475 3476 /** 3477 * Search parameter: <b>publisher</b> 3478 * <p> 3479 * Description: <b>Name of the publisher of the operation definition</b><br> 3480 * Type: <b>string</b><br> 3481 * Path: <b>OperationDefinition.publisher</b><br> 3482 * </p> 3483 */ 3484 @SearchParamDefinition(name="publisher", path="OperationDefinition.publisher", description="Name of the publisher of the operation definition", type="string" ) 3485 public static final String SP_PUBLISHER = "publisher"; 3486 /** 3487 * <b>Fluent Client</b> search parameter constant for <b>publisher</b> 3488 * <p> 3489 * Description: <b>Name of the publisher of the operation definition</b><br> 3490 * Type: <b>string</b><br> 3491 * Path: <b>OperationDefinition.publisher</b><br> 3492 * </p> 3493 */ 3494 public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER); 3495 3496 /** 3497 * Search parameter: <b>param-profile</b> 3498 * <p> 3499 * Description: <b>Profile on the type</b><br> 3500 * Type: <b>reference</b><br> 3501 * Path: <b>OperationDefinition.parameter.profile</b><br> 3502 * </p> 3503 */ 3504 @SearchParamDefinition(name="param-profile", path="OperationDefinition.parameter.profile", description="Profile on the type", type="reference", target={StructureDefinition.class } ) 3505 public static final String SP_PARAM_PROFILE = "param-profile"; 3506 /** 3507 * <b>Fluent Client</b> search parameter constant for <b>param-profile</b> 3508 * <p> 3509 * Description: <b>Profile on the type</b><br> 3510 * Type: <b>reference</b><br> 3511 * Path: <b>OperationDefinition.parameter.profile</b><br> 3512 * </p> 3513 */ 3514 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PARAM_PROFILE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PARAM_PROFILE); 3515 3516/** 3517 * Constant for fluent queries to be used to add include statements. Specifies 3518 * the path value of "<b>OperationDefinition:param-profile</b>". 3519 */ 3520 public static final ca.uhn.fhir.model.api.Include INCLUDE_PARAM_PROFILE = new ca.uhn.fhir.model.api.Include("OperationDefinition:param-profile").toLocked(); 3521 3522 /** 3523 * Search parameter: <b>status</b> 3524 * <p> 3525 * Description: <b>The current status of the operation definition</b><br> 3526 * Type: <b>token</b><br> 3527 * Path: <b>OperationDefinition.status</b><br> 3528 * </p> 3529 */ 3530 @SearchParamDefinition(name="status", path="OperationDefinition.status", description="The current status of the operation definition", type="token" ) 3531 public static final String SP_STATUS = "status"; 3532 /** 3533 * <b>Fluent Client</b> search parameter constant for <b>status</b> 3534 * <p> 3535 * Description: <b>The current status of the operation definition</b><br> 3536 * Type: <b>token</b><br> 3537 * Path: <b>OperationDefinition.status</b><br> 3538 * </p> 3539 */ 3540 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 3541 3542 /** 3543 * Search parameter: <b>base</b> 3544 * <p> 3545 * Description: <b>Marks this as a profile of the base</b><br> 3546 * Type: <b>reference</b><br> 3547 * Path: <b>OperationDefinition.base</b><br> 3548 * </p> 3549 */ 3550 @SearchParamDefinition(name="base", path="OperationDefinition.base", description="Marks this as a profile of the base", type="reference", target={OperationDefinition.class } ) 3551 public static final String SP_BASE = "base"; 3552 /** 3553 * <b>Fluent Client</b> search parameter constant for <b>base</b> 3554 * <p> 3555 * Description: <b>Marks this as a profile of the base</b><br> 3556 * Type: <b>reference</b><br> 3557 * Path: <b>OperationDefinition.base</b><br> 3558 * </p> 3559 */ 3560 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam BASE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_BASE); 3561 3562/** 3563 * Constant for fluent queries to be used to add include statements. Specifies 3564 * the path value of "<b>OperationDefinition:base</b>". 3565 */ 3566 public static final ca.uhn.fhir.model.api.Include INCLUDE_BASE = new ca.uhn.fhir.model.api.Include("OperationDefinition:base").toLocked(); 3567 3568 3569} 3570