001package org.hl7.fhir.r5.model; 002 003/*- 004 * #%L 005 * org.hl7.fhir.r5 006 * %% 007 * Copyright (C) 2014 - 2019 Health Level 7 008 * %% 009 * Licensed under the Apache License, Version 2.0 (the "License"); 010 * you may not use this file except in compliance with the License. 011 * You may obtain a copy of the License at 012 * 013 * http://www.apache.org/licenses/LICENSE-2.0 014 * 015 * Unless required by applicable law or agreed to in writing, software 016 * distributed under the License is distributed on an "AS IS" BASIS, 017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 018 * See the License for the specific language governing permissions and 019 * limitations under the License. 020 * #L% 021 */ 022 023/* 024 Copyright (c) 2011+, HL7, Inc. 025 All rights reserved. 026 027 Redistribution and use in source and binary forms, with or without modification, 028 are permitted provided that the following conditions are met: 029 030 * Redistributions of source code must retain the above copyright notice, this 031 list of conditions and the following disclaimer. 032 * Redistributions in binary form must reproduce the above copyright notice, 033 this list of conditions and the following disclaimer in the documentation 034 and/or other materials provided with the distribution. 035 * Neither the name of HL7 nor the names of its contributors may be used to 036 endorse or promote products derived from this software without specific 037 prior written permission. 038 039 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 040 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 041 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 042 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 043 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 044 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 045 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 046 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 047 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 048 POSSIBILITY OF SUCH DAMAGE. 049 050*/ 051 052// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0 053import java.util.ArrayList; 054import java.util.Date; 055import java.util.List; 056import org.hl7.fhir.exceptions.FHIRException; 057import org.hl7.fhir.instance.model.api.ICompositeType; 058 059import org.hl7.fhir.instance.model.api.IBaseDatatypeElement; 060import org.hl7.fhir.utilities.Utilities; 061import org.hl7.fhir.r5.model.Enumerations.*; 062import ca.uhn.fhir.model.api.annotation.ResourceDef; 063import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 064import org.hl7.fhir.instance.model.api.IBaseBackboneElement; 065import ca.uhn.fhir.model.api.annotation.Child; 066import ca.uhn.fhir.model.api.annotation.ChildOrder; 067import ca.uhn.fhir.model.api.annotation.Description; 068import ca.uhn.fhir.model.api.annotation.Block; 069/** 070 * A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation. 071 */ 072@ResourceDef(name="CapabilityStatement2", profile="http://hl7.org/fhir/StructureDefinition/CapabilityStatement2") 073@ChildOrder(names={"url", "version", "name", "title", "status", "experimental", "date", "publisher", "contact", "description", "useContext", "jurisdiction", "purpose", "copyright", "kind", "instantiates", "imports", "software", "implementation", "fhirVersion", "format", "patchFormat", "implementationGuide", "rest"}) 074public class CapabilityStatement2 extends MetadataResource { 075 076 public enum CapabilityStatement2Kind { 077 /** 078 * The CapabilityStatement instance represents the present capabilities of a specific system instance. This is the kind returned by /metadata for a FHIR server end-point. 079 */ 080 INSTANCE, 081 /** 082 * The CapabilityStatement instance represents the capabilities of a system or piece of software, independent of a particular installation. 083 */ 084 CAPABILITY, 085 /** 086 * The CapabilityStatement instance represents a set of requirements for other systems to meet; e.g. as part of an implementation guide or 'request for proposal'. 087 */ 088 REQUIREMENTS, 089 /** 090 * added to help the parsers with the generic types 091 */ 092 NULL; 093 public static CapabilityStatement2Kind fromCode(String codeString) throws FHIRException { 094 if (codeString == null || "".equals(codeString)) 095 return null; 096 if ("instance".equals(codeString)) 097 return INSTANCE; 098 if ("capability".equals(codeString)) 099 return CAPABILITY; 100 if ("requirements".equals(codeString)) 101 return REQUIREMENTS; 102 if (Configuration.isAcceptInvalidEnums()) 103 return null; 104 else 105 throw new FHIRException("Unknown CapabilityStatement2Kind code '"+codeString+"'"); 106 } 107 public String toCode() { 108 switch (this) { 109 case INSTANCE: return "instance"; 110 case CAPABILITY: return "capability"; 111 case REQUIREMENTS: return "requirements"; 112 default: return "?"; 113 } 114 } 115 public String getSystem() { 116 switch (this) { 117 case INSTANCE: return "http://hl7.org/fhir/capability-statement-kind"; 118 case CAPABILITY: return "http://hl7.org/fhir/capability-statement-kind"; 119 case REQUIREMENTS: return "http://hl7.org/fhir/capability-statement-kind"; 120 default: return "?"; 121 } 122 } 123 public String getDefinition() { 124 switch (this) { 125 case INSTANCE: return "The CapabilityStatement instance represents the present capabilities of a specific system instance. This is the kind returned by /metadata for a FHIR server end-point."; 126 case CAPABILITY: return "The CapabilityStatement instance represents the capabilities of a system or piece of software, independent of a particular installation."; 127 case REQUIREMENTS: return "The CapabilityStatement instance represents a set of requirements for other systems to meet; e.g. as part of an implementation guide or 'request for proposal'."; 128 default: return "?"; 129 } 130 } 131 public String getDisplay() { 132 switch (this) { 133 case INSTANCE: return "Instance"; 134 case CAPABILITY: return "Capability"; 135 case REQUIREMENTS: return "Requirements"; 136 default: return "?"; 137 } 138 } 139 } 140 141 public static class CapabilityStatement2KindEnumFactory implements EnumFactory<CapabilityStatement2Kind> { 142 public CapabilityStatement2Kind fromCode(String codeString) throws IllegalArgumentException { 143 if (codeString == null || "".equals(codeString)) 144 if (codeString == null || "".equals(codeString)) 145 return null; 146 if ("instance".equals(codeString)) 147 return CapabilityStatement2Kind.INSTANCE; 148 if ("capability".equals(codeString)) 149 return CapabilityStatement2Kind.CAPABILITY; 150 if ("requirements".equals(codeString)) 151 return CapabilityStatement2Kind.REQUIREMENTS; 152 throw new IllegalArgumentException("Unknown CapabilityStatement2Kind code '"+codeString+"'"); 153 } 154 public Enumeration<CapabilityStatement2Kind> fromType(Base code) throws FHIRException { 155 if (code == null) 156 return null; 157 if (code.isEmpty()) 158 return new Enumeration<CapabilityStatement2Kind>(this); 159 String codeString = ((PrimitiveType) code).asStringValue(); 160 if (codeString == null || "".equals(codeString)) 161 return null; 162 if ("instance".equals(codeString)) 163 return new Enumeration<CapabilityStatement2Kind>(this, CapabilityStatement2Kind.INSTANCE); 164 if ("capability".equals(codeString)) 165 return new Enumeration<CapabilityStatement2Kind>(this, CapabilityStatement2Kind.CAPABILITY); 166 if ("requirements".equals(codeString)) 167 return new Enumeration<CapabilityStatement2Kind>(this, CapabilityStatement2Kind.REQUIREMENTS); 168 throw new FHIRException("Unknown CapabilityStatement2Kind code '"+codeString+"'"); 169 } 170 public String toCode(CapabilityStatement2Kind code) { 171 if (code == CapabilityStatement2Kind.INSTANCE) 172 return "instance"; 173 if (code == CapabilityStatement2Kind.CAPABILITY) 174 return "capability"; 175 if (code == CapabilityStatement2Kind.REQUIREMENTS) 176 return "requirements"; 177 return "?"; 178 } 179 public String toSystem(CapabilityStatement2Kind code) { 180 return code.getSystem(); 181 } 182 } 183 184 public enum RestfulCapabilityMode { 185 /** 186 * The application acts as a client for this resource. 187 */ 188 CLIENT, 189 /** 190 * The application acts as a server for this resource. 191 */ 192 SERVER, 193 /** 194 * added to help the parsers with the generic types 195 */ 196 NULL; 197 public static RestfulCapabilityMode fromCode(String codeString) throws FHIRException { 198 if (codeString == null || "".equals(codeString)) 199 return null; 200 if ("client".equals(codeString)) 201 return CLIENT; 202 if ("server".equals(codeString)) 203 return SERVER; 204 if (Configuration.isAcceptInvalidEnums()) 205 return null; 206 else 207 throw new FHIRException("Unknown RestfulCapabilityMode code '"+codeString+"'"); 208 } 209 public String toCode() { 210 switch (this) { 211 case CLIENT: return "client"; 212 case SERVER: return "server"; 213 default: return "?"; 214 } 215 } 216 public String getSystem() { 217 switch (this) { 218 case CLIENT: return "http://hl7.org/fhir/restful-capability-mode"; 219 case SERVER: return "http://hl7.org/fhir/restful-capability-mode"; 220 default: return "?"; 221 } 222 } 223 public String getDefinition() { 224 switch (this) { 225 case CLIENT: return "The application acts as a client for this resource."; 226 case SERVER: return "The application acts as a server for this resource."; 227 default: return "?"; 228 } 229 } 230 public String getDisplay() { 231 switch (this) { 232 case CLIENT: return "Client"; 233 case SERVER: return "Server"; 234 default: return "?"; 235 } 236 } 237 } 238 239 public static class RestfulCapabilityModeEnumFactory implements EnumFactory<RestfulCapabilityMode> { 240 public RestfulCapabilityMode fromCode(String codeString) throws IllegalArgumentException { 241 if (codeString == null || "".equals(codeString)) 242 if (codeString == null || "".equals(codeString)) 243 return null; 244 if ("client".equals(codeString)) 245 return RestfulCapabilityMode.CLIENT; 246 if ("server".equals(codeString)) 247 return RestfulCapabilityMode.SERVER; 248 throw new IllegalArgumentException("Unknown RestfulCapabilityMode code '"+codeString+"'"); 249 } 250 public Enumeration<RestfulCapabilityMode> fromType(Base code) throws FHIRException { 251 if (code == null) 252 return null; 253 if (code.isEmpty()) 254 return new Enumeration<RestfulCapabilityMode>(this); 255 String codeString = ((PrimitiveType) code).asStringValue(); 256 if (codeString == null || "".equals(codeString)) 257 return null; 258 if ("client".equals(codeString)) 259 return new Enumeration<RestfulCapabilityMode>(this, RestfulCapabilityMode.CLIENT); 260 if ("server".equals(codeString)) 261 return new Enumeration<RestfulCapabilityMode>(this, RestfulCapabilityMode.SERVER); 262 throw new FHIRException("Unknown RestfulCapabilityMode code '"+codeString+"'"); 263 } 264 public String toCode(RestfulCapabilityMode code) { 265 if (code == RestfulCapabilityMode.CLIENT) 266 return "client"; 267 if (code == RestfulCapabilityMode.SERVER) 268 return "server"; 269 return "?"; 270 } 271 public String toSystem(RestfulCapabilityMode code) { 272 return code.getSystem(); 273 } 274 } 275 276 public enum TypeRestfulInteraction { 277 /** 278 * null 279 */ 280 READ, 281 /** 282 * null 283 */ 284 VREAD, 285 /** 286 * null 287 */ 288 UPDATE, 289 /** 290 * null 291 */ 292 PATCH, 293 /** 294 * null 295 */ 296 DELETE, 297 /** 298 * null 299 */ 300 HISTORYINSTANCE, 301 /** 302 * null 303 */ 304 HISTORYTYPE, 305 /** 306 * null 307 */ 308 CREATE, 309 /** 310 * null 311 */ 312 SEARCHTYPE, 313 /** 314 * added to help the parsers with the generic types 315 */ 316 NULL; 317 public static TypeRestfulInteraction fromCode(String codeString) throws FHIRException { 318 if (codeString == null || "".equals(codeString)) 319 return null; 320 if ("read".equals(codeString)) 321 return READ; 322 if ("vread".equals(codeString)) 323 return VREAD; 324 if ("update".equals(codeString)) 325 return UPDATE; 326 if ("patch".equals(codeString)) 327 return PATCH; 328 if ("delete".equals(codeString)) 329 return DELETE; 330 if ("history-instance".equals(codeString)) 331 return HISTORYINSTANCE; 332 if ("history-type".equals(codeString)) 333 return HISTORYTYPE; 334 if ("create".equals(codeString)) 335 return CREATE; 336 if ("search-type".equals(codeString)) 337 return SEARCHTYPE; 338 if (Configuration.isAcceptInvalidEnums()) 339 return null; 340 else 341 throw new FHIRException("Unknown TypeRestfulInteraction code '"+codeString+"'"); 342 } 343 public String toCode() { 344 switch (this) { 345 case READ: return "read"; 346 case VREAD: return "vread"; 347 case UPDATE: return "update"; 348 case PATCH: return "patch"; 349 case DELETE: return "delete"; 350 case HISTORYINSTANCE: return "history-instance"; 351 case HISTORYTYPE: return "history-type"; 352 case CREATE: return "create"; 353 case SEARCHTYPE: return "search-type"; 354 default: return "?"; 355 } 356 } 357 public String getSystem() { 358 switch (this) { 359 case READ: return "http://hl7.org/fhir/restful-interaction"; 360 case VREAD: return "http://hl7.org/fhir/restful-interaction"; 361 case UPDATE: return "http://hl7.org/fhir/restful-interaction"; 362 case PATCH: return "http://hl7.org/fhir/restful-interaction"; 363 case DELETE: return "http://hl7.org/fhir/restful-interaction"; 364 case HISTORYINSTANCE: return "http://hl7.org/fhir/restful-interaction"; 365 case HISTORYTYPE: return "http://hl7.org/fhir/restful-interaction"; 366 case CREATE: return "http://hl7.org/fhir/restful-interaction"; 367 case SEARCHTYPE: return "http://hl7.org/fhir/restful-interaction"; 368 default: return "?"; 369 } 370 } 371 public String getDefinition() { 372 switch (this) { 373 case READ: return ""; 374 case VREAD: return ""; 375 case UPDATE: return ""; 376 case PATCH: return ""; 377 case DELETE: return ""; 378 case HISTORYINSTANCE: return ""; 379 case HISTORYTYPE: return ""; 380 case CREATE: return ""; 381 case SEARCHTYPE: return ""; 382 default: return "?"; 383 } 384 } 385 public String getDisplay() { 386 switch (this) { 387 case READ: return "read"; 388 case VREAD: return "vread"; 389 case UPDATE: return "update"; 390 case PATCH: return "patch"; 391 case DELETE: return "delete"; 392 case HISTORYINSTANCE: return "history-instance"; 393 case HISTORYTYPE: return "history-type"; 394 case CREATE: return "create"; 395 case SEARCHTYPE: return "search-type"; 396 default: return "?"; 397 } 398 } 399 } 400 401 public static class TypeRestfulInteractionEnumFactory implements EnumFactory<TypeRestfulInteraction> { 402 public TypeRestfulInteraction fromCode(String codeString) throws IllegalArgumentException { 403 if (codeString == null || "".equals(codeString)) 404 if (codeString == null || "".equals(codeString)) 405 return null; 406 if ("read".equals(codeString)) 407 return TypeRestfulInteraction.READ; 408 if ("vread".equals(codeString)) 409 return TypeRestfulInteraction.VREAD; 410 if ("update".equals(codeString)) 411 return TypeRestfulInteraction.UPDATE; 412 if ("patch".equals(codeString)) 413 return TypeRestfulInteraction.PATCH; 414 if ("delete".equals(codeString)) 415 return TypeRestfulInteraction.DELETE; 416 if ("history-instance".equals(codeString)) 417 return TypeRestfulInteraction.HISTORYINSTANCE; 418 if ("history-type".equals(codeString)) 419 return TypeRestfulInteraction.HISTORYTYPE; 420 if ("create".equals(codeString)) 421 return TypeRestfulInteraction.CREATE; 422 if ("search-type".equals(codeString)) 423 return TypeRestfulInteraction.SEARCHTYPE; 424 throw new IllegalArgumentException("Unknown TypeRestfulInteraction code '"+codeString+"'"); 425 } 426 public Enumeration<TypeRestfulInteraction> fromType(Base code) throws FHIRException { 427 if (code == null) 428 return null; 429 if (code.isEmpty()) 430 return new Enumeration<TypeRestfulInteraction>(this); 431 String codeString = ((PrimitiveType) code).asStringValue(); 432 if (codeString == null || "".equals(codeString)) 433 return null; 434 if ("read".equals(codeString)) 435 return new Enumeration<TypeRestfulInteraction>(this, TypeRestfulInteraction.READ); 436 if ("vread".equals(codeString)) 437 return new Enumeration<TypeRestfulInteraction>(this, TypeRestfulInteraction.VREAD); 438 if ("update".equals(codeString)) 439 return new Enumeration<TypeRestfulInteraction>(this, TypeRestfulInteraction.UPDATE); 440 if ("patch".equals(codeString)) 441 return new Enumeration<TypeRestfulInteraction>(this, TypeRestfulInteraction.PATCH); 442 if ("delete".equals(codeString)) 443 return new Enumeration<TypeRestfulInteraction>(this, TypeRestfulInteraction.DELETE); 444 if ("history-instance".equals(codeString)) 445 return new Enumeration<TypeRestfulInteraction>(this, TypeRestfulInteraction.HISTORYINSTANCE); 446 if ("history-type".equals(codeString)) 447 return new Enumeration<TypeRestfulInteraction>(this, TypeRestfulInteraction.HISTORYTYPE); 448 if ("create".equals(codeString)) 449 return new Enumeration<TypeRestfulInteraction>(this, TypeRestfulInteraction.CREATE); 450 if ("search-type".equals(codeString)) 451 return new Enumeration<TypeRestfulInteraction>(this, TypeRestfulInteraction.SEARCHTYPE); 452 throw new FHIRException("Unknown TypeRestfulInteraction code '"+codeString+"'"); 453 } 454 public String toCode(TypeRestfulInteraction code) { 455 if (code == TypeRestfulInteraction.READ) 456 return "read"; 457 if (code == TypeRestfulInteraction.VREAD) 458 return "vread"; 459 if (code == TypeRestfulInteraction.UPDATE) 460 return "update"; 461 if (code == TypeRestfulInteraction.PATCH) 462 return "patch"; 463 if (code == TypeRestfulInteraction.DELETE) 464 return "delete"; 465 if (code == TypeRestfulInteraction.HISTORYINSTANCE) 466 return "history-instance"; 467 if (code == TypeRestfulInteraction.HISTORYTYPE) 468 return "history-type"; 469 if (code == TypeRestfulInteraction.CREATE) 470 return "create"; 471 if (code == TypeRestfulInteraction.SEARCHTYPE) 472 return "search-type"; 473 return "?"; 474 } 475 public String toSystem(TypeRestfulInteraction code) { 476 return code.getSystem(); 477 } 478 } 479 480 public enum SystemRestfulInteraction { 481 /** 482 * null 483 */ 484 TRANSACTION, 485 /** 486 * null 487 */ 488 BATCH, 489 /** 490 * null 491 */ 492 SEARCHSYSTEM, 493 /** 494 * null 495 */ 496 HISTORYSYSTEM, 497 /** 498 * added to help the parsers with the generic types 499 */ 500 NULL; 501 public static SystemRestfulInteraction fromCode(String codeString) throws FHIRException { 502 if (codeString == null || "".equals(codeString)) 503 return null; 504 if ("transaction".equals(codeString)) 505 return TRANSACTION; 506 if ("batch".equals(codeString)) 507 return BATCH; 508 if ("search-system".equals(codeString)) 509 return SEARCHSYSTEM; 510 if ("history-system".equals(codeString)) 511 return HISTORYSYSTEM; 512 if (Configuration.isAcceptInvalidEnums()) 513 return null; 514 else 515 throw new FHIRException("Unknown SystemRestfulInteraction code '"+codeString+"'"); 516 } 517 public String toCode() { 518 switch (this) { 519 case TRANSACTION: return "transaction"; 520 case BATCH: return "batch"; 521 case SEARCHSYSTEM: return "search-system"; 522 case HISTORYSYSTEM: return "history-system"; 523 default: return "?"; 524 } 525 } 526 public String getSystem() { 527 switch (this) { 528 case TRANSACTION: return "http://hl7.org/fhir/restful-interaction"; 529 case BATCH: return "http://hl7.org/fhir/restful-interaction"; 530 case SEARCHSYSTEM: return "http://hl7.org/fhir/restful-interaction"; 531 case HISTORYSYSTEM: return "http://hl7.org/fhir/restful-interaction"; 532 default: return "?"; 533 } 534 } 535 public String getDefinition() { 536 switch (this) { 537 case TRANSACTION: return ""; 538 case BATCH: return ""; 539 case SEARCHSYSTEM: return ""; 540 case HISTORYSYSTEM: return ""; 541 default: return "?"; 542 } 543 } 544 public String getDisplay() { 545 switch (this) { 546 case TRANSACTION: return "transaction"; 547 case BATCH: return "batch"; 548 case SEARCHSYSTEM: return "search-system"; 549 case HISTORYSYSTEM: return "history-system"; 550 default: return "?"; 551 } 552 } 553 } 554 555 public static class SystemRestfulInteractionEnumFactory implements EnumFactory<SystemRestfulInteraction> { 556 public SystemRestfulInteraction fromCode(String codeString) throws IllegalArgumentException { 557 if (codeString == null || "".equals(codeString)) 558 if (codeString == null || "".equals(codeString)) 559 return null; 560 if ("transaction".equals(codeString)) 561 return SystemRestfulInteraction.TRANSACTION; 562 if ("batch".equals(codeString)) 563 return SystemRestfulInteraction.BATCH; 564 if ("search-system".equals(codeString)) 565 return SystemRestfulInteraction.SEARCHSYSTEM; 566 if ("history-system".equals(codeString)) 567 return SystemRestfulInteraction.HISTORYSYSTEM; 568 throw new IllegalArgumentException("Unknown SystemRestfulInteraction code '"+codeString+"'"); 569 } 570 public Enumeration<SystemRestfulInteraction> fromType(Base code) throws FHIRException { 571 if (code == null) 572 return null; 573 if (code.isEmpty()) 574 return new Enumeration<SystemRestfulInteraction>(this); 575 String codeString = ((PrimitiveType) code).asStringValue(); 576 if (codeString == null || "".equals(codeString)) 577 return null; 578 if ("transaction".equals(codeString)) 579 return new Enumeration<SystemRestfulInteraction>(this, SystemRestfulInteraction.TRANSACTION); 580 if ("batch".equals(codeString)) 581 return new Enumeration<SystemRestfulInteraction>(this, SystemRestfulInteraction.BATCH); 582 if ("search-system".equals(codeString)) 583 return new Enumeration<SystemRestfulInteraction>(this, SystemRestfulInteraction.SEARCHSYSTEM); 584 if ("history-system".equals(codeString)) 585 return new Enumeration<SystemRestfulInteraction>(this, SystemRestfulInteraction.HISTORYSYSTEM); 586 throw new FHIRException("Unknown SystemRestfulInteraction code '"+codeString+"'"); 587 } 588 public String toCode(SystemRestfulInteraction code) { 589 if (code == SystemRestfulInteraction.TRANSACTION) 590 return "transaction"; 591 if (code == SystemRestfulInteraction.BATCH) 592 return "batch"; 593 if (code == SystemRestfulInteraction.SEARCHSYSTEM) 594 return "search-system"; 595 if (code == SystemRestfulInteraction.HISTORYSYSTEM) 596 return "history-system"; 597 return "?"; 598 } 599 public String toSystem(SystemRestfulInteraction code) { 600 return code.getSystem(); 601 } 602 } 603 604 @Block() 605 public static class CapabilityStatement2SoftwareComponent extends BackboneElement implements IBaseBackboneElement { 606 /** 607 * Name the software is known by. 608 */ 609 @Child(name = "name", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=true) 610 @Description(shortDefinition="A name the software is known by", formalDefinition="Name the software is known by." ) 611 protected StringType name; 612 613 /** 614 * The version identifier for the software covered by this statement. 615 */ 616 @Child(name = "version", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=true) 617 @Description(shortDefinition="Version covered by this statement", formalDefinition="The version identifier for the software covered by this statement." ) 618 protected StringType version; 619 620 /** 621 * Date this version of the software was released. 622 */ 623 @Child(name = "releaseDate", type = {DateTimeType.class}, order=3, min=0, max=1, modifier=false, summary=true) 624 @Description(shortDefinition="Date this version was released", formalDefinition="Date this version of the software was released." ) 625 protected DateTimeType releaseDate; 626 627 private static final long serialVersionUID = 1819769027L; 628 629 /** 630 * Constructor 631 */ 632 public CapabilityStatement2SoftwareComponent() { 633 super(); 634 } 635 636 /** 637 * Constructor 638 */ 639 public CapabilityStatement2SoftwareComponent(StringType name) { 640 super(); 641 this.name = name; 642 } 643 644 /** 645 * @return {@link #name} (Name the software is known by.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 646 */ 647 public StringType getNameElement() { 648 if (this.name == null) 649 if (Configuration.errorOnAutoCreate()) 650 throw new Error("Attempt to auto-create CapabilityStatement2SoftwareComponent.name"); 651 else if (Configuration.doAutoCreate()) 652 this.name = new StringType(); // bb 653 return this.name; 654 } 655 656 public boolean hasNameElement() { 657 return this.name != null && !this.name.isEmpty(); 658 } 659 660 public boolean hasName() { 661 return this.name != null && !this.name.isEmpty(); 662 } 663 664 /** 665 * @param value {@link #name} (Name the software is known by.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 666 */ 667 public CapabilityStatement2SoftwareComponent setNameElement(StringType value) { 668 this.name = value; 669 return this; 670 } 671 672 /** 673 * @return Name the software is known by. 674 */ 675 public String getName() { 676 return this.name == null ? null : this.name.getValue(); 677 } 678 679 /** 680 * @param value Name the software is known by. 681 */ 682 public CapabilityStatement2SoftwareComponent setName(String value) { 683 if (this.name == null) 684 this.name = new StringType(); 685 this.name.setValue(value); 686 return this; 687 } 688 689 /** 690 * @return {@link #version} (The version identifier for the software covered by this statement.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value 691 */ 692 public StringType getVersionElement() { 693 if (this.version == null) 694 if (Configuration.errorOnAutoCreate()) 695 throw new Error("Attempt to auto-create CapabilityStatement2SoftwareComponent.version"); 696 else if (Configuration.doAutoCreate()) 697 this.version = new StringType(); // bb 698 return this.version; 699 } 700 701 public boolean hasVersionElement() { 702 return this.version != null && !this.version.isEmpty(); 703 } 704 705 public boolean hasVersion() { 706 return this.version != null && !this.version.isEmpty(); 707 } 708 709 /** 710 * @param value {@link #version} (The version identifier for the software covered by this statement.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value 711 */ 712 public CapabilityStatement2SoftwareComponent setVersionElement(StringType value) { 713 this.version = value; 714 return this; 715 } 716 717 /** 718 * @return The version identifier for the software covered by this statement. 719 */ 720 public String getVersion() { 721 return this.version == null ? null : this.version.getValue(); 722 } 723 724 /** 725 * @param value The version identifier for the software covered by this statement. 726 */ 727 public CapabilityStatement2SoftwareComponent setVersion(String value) { 728 if (Utilities.noString(value)) 729 this.version = null; 730 else { 731 if (this.version == null) 732 this.version = new StringType(); 733 this.version.setValue(value); 734 } 735 return this; 736 } 737 738 /** 739 * @return {@link #releaseDate} (Date this version of the software was released.). This is the underlying object with id, value and extensions. The accessor "getReleaseDate" gives direct access to the value 740 */ 741 public DateTimeType getReleaseDateElement() { 742 if (this.releaseDate == null) 743 if (Configuration.errorOnAutoCreate()) 744 throw new Error("Attempt to auto-create CapabilityStatement2SoftwareComponent.releaseDate"); 745 else if (Configuration.doAutoCreate()) 746 this.releaseDate = new DateTimeType(); // bb 747 return this.releaseDate; 748 } 749 750 public boolean hasReleaseDateElement() { 751 return this.releaseDate != null && !this.releaseDate.isEmpty(); 752 } 753 754 public boolean hasReleaseDate() { 755 return this.releaseDate != null && !this.releaseDate.isEmpty(); 756 } 757 758 /** 759 * @param value {@link #releaseDate} (Date this version of the software was released.). This is the underlying object with id, value and extensions. The accessor "getReleaseDate" gives direct access to the value 760 */ 761 public CapabilityStatement2SoftwareComponent setReleaseDateElement(DateTimeType value) { 762 this.releaseDate = value; 763 return this; 764 } 765 766 /** 767 * @return Date this version of the software was released. 768 */ 769 public Date getReleaseDate() { 770 return this.releaseDate == null ? null : this.releaseDate.getValue(); 771 } 772 773 /** 774 * @param value Date this version of the software was released. 775 */ 776 public CapabilityStatement2SoftwareComponent setReleaseDate(Date value) { 777 if (value == null) 778 this.releaseDate = null; 779 else { 780 if (this.releaseDate == null) 781 this.releaseDate = new DateTimeType(); 782 this.releaseDate.setValue(value); 783 } 784 return this; 785 } 786 787 protected void listChildren(List<Property> children) { 788 super.listChildren(children); 789 children.add(new Property("name", "string", "Name the software is known by.", 0, 1, name)); 790 children.add(new Property("version", "string", "The version identifier for the software covered by this statement.", 0, 1, version)); 791 children.add(new Property("releaseDate", "dateTime", "Date this version of the software was released.", 0, 1, releaseDate)); 792 } 793 794 @Override 795 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 796 switch (_hash) { 797 case 3373707: /*name*/ return new Property("name", "string", "Name the software is known by.", 0, 1, name); 798 case 351608024: /*version*/ return new Property("version", "string", "The version identifier for the software covered by this statement.", 0, 1, version); 799 case 212873301: /*releaseDate*/ return new Property("releaseDate", "dateTime", "Date this version of the software was released.", 0, 1, releaseDate); 800 default: return super.getNamedProperty(_hash, _name, _checkValid); 801 } 802 803 } 804 805 @Override 806 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 807 switch (hash) { 808 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType 809 case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType 810 case 212873301: /*releaseDate*/ return this.releaseDate == null ? new Base[0] : new Base[] {this.releaseDate}; // DateTimeType 811 default: return super.getProperty(hash, name, checkValid); 812 } 813 814 } 815 816 @Override 817 public Base setProperty(int hash, String name, Base value) throws FHIRException { 818 switch (hash) { 819 case 3373707: // name 820 this.name = castToString(value); // StringType 821 return value; 822 case 351608024: // version 823 this.version = castToString(value); // StringType 824 return value; 825 case 212873301: // releaseDate 826 this.releaseDate = castToDateTime(value); // DateTimeType 827 return value; 828 default: return super.setProperty(hash, name, value); 829 } 830 831 } 832 833 @Override 834 public Base setProperty(String name, Base value) throws FHIRException { 835 if (name.equals("name")) { 836 this.name = castToString(value); // StringType 837 } else if (name.equals("version")) { 838 this.version = castToString(value); // StringType 839 } else if (name.equals("releaseDate")) { 840 this.releaseDate = castToDateTime(value); // DateTimeType 841 } else 842 return super.setProperty(name, value); 843 return value; 844 } 845 846 @Override 847 public Base makeProperty(int hash, String name) throws FHIRException { 848 switch (hash) { 849 case 3373707: return getNameElement(); 850 case 351608024: return getVersionElement(); 851 case 212873301: return getReleaseDateElement(); 852 default: return super.makeProperty(hash, name); 853 } 854 855 } 856 857 @Override 858 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 859 switch (hash) { 860 case 3373707: /*name*/ return new String[] {"string"}; 861 case 351608024: /*version*/ return new String[] {"string"}; 862 case 212873301: /*releaseDate*/ return new String[] {"dateTime"}; 863 default: return super.getTypesForProperty(hash, name); 864 } 865 866 } 867 868 @Override 869 public Base addChild(String name) throws FHIRException { 870 if (name.equals("name")) { 871 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.name"); 872 } 873 else if (name.equals("version")) { 874 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.version"); 875 } 876 else if (name.equals("releaseDate")) { 877 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.releaseDate"); 878 } 879 else 880 return super.addChild(name); 881 } 882 883 public CapabilityStatement2SoftwareComponent copy() { 884 CapabilityStatement2SoftwareComponent dst = new CapabilityStatement2SoftwareComponent(); 885 copyValues(dst); 886 return dst; 887 } 888 889 public void copyValues(CapabilityStatement2SoftwareComponent dst) { 890 super.copyValues(dst); 891 dst.name = name == null ? null : name.copy(); 892 dst.version = version == null ? null : version.copy(); 893 dst.releaseDate = releaseDate == null ? null : releaseDate.copy(); 894 } 895 896 @Override 897 public boolean equalsDeep(Base other_) { 898 if (!super.equalsDeep(other_)) 899 return false; 900 if (!(other_ instanceof CapabilityStatement2SoftwareComponent)) 901 return false; 902 CapabilityStatement2SoftwareComponent o = (CapabilityStatement2SoftwareComponent) other_; 903 return compareDeep(name, o.name, true) && compareDeep(version, o.version, true) && compareDeep(releaseDate, o.releaseDate, true) 904 ; 905 } 906 907 @Override 908 public boolean equalsShallow(Base other_) { 909 if (!super.equalsShallow(other_)) 910 return false; 911 if (!(other_ instanceof CapabilityStatement2SoftwareComponent)) 912 return false; 913 CapabilityStatement2SoftwareComponent o = (CapabilityStatement2SoftwareComponent) other_; 914 return compareValues(name, o.name, true) && compareValues(version, o.version, true) && compareValues(releaseDate, o.releaseDate, true) 915 ; 916 } 917 918 public boolean isEmpty() { 919 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, version, releaseDate 920 ); 921 } 922 923 public String fhirType() { 924 return "CapabilityStatement2.software"; 925 926 } 927 928 } 929 930 @Block() 931 public static class CapabilityStatement2ImplementationComponent extends BackboneElement implements IBaseBackboneElement { 932 /** 933 * Information about the specific installation that this capability statement relates to. 934 */ 935 @Child(name = "description", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=true) 936 @Description(shortDefinition="Describes this specific instance", formalDefinition="Information about the specific installation that this capability statement relates to." ) 937 protected StringType description; 938 939 /** 940 * An absolute base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces. 941 */ 942 @Child(name = "url", type = {UrlType.class}, order=2, min=0, max=1, modifier=false, summary=true) 943 @Description(shortDefinition="Base URL for the installation", formalDefinition="An absolute base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces." ) 944 protected UrlType url; 945 946 /** 947 * The organization responsible for the management of the instance and oversight of the data on the server at the specified URL. 948 */ 949 @Child(name = "custodian", type = {Organization.class}, order=3, min=0, max=1, modifier=false, summary=true) 950 @Description(shortDefinition="Organization that manages the data", formalDefinition="The organization responsible for the management of the instance and oversight of the data on the server at the specified URL." ) 951 protected Reference custodian; 952 953 private static final long serialVersionUID = 1681322786L; 954 955 /** 956 * Constructor 957 */ 958 public CapabilityStatement2ImplementationComponent() { 959 super(); 960 } 961 962 /** 963 * Constructor 964 */ 965 public CapabilityStatement2ImplementationComponent(StringType description) { 966 super(); 967 this.description = description; 968 } 969 970 /** 971 * @return {@link #description} (Information about the specific installation that this capability statement relates to.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 972 */ 973 public StringType getDescriptionElement() { 974 if (this.description == null) 975 if (Configuration.errorOnAutoCreate()) 976 throw new Error("Attempt to auto-create CapabilityStatement2ImplementationComponent.description"); 977 else if (Configuration.doAutoCreate()) 978 this.description = new StringType(); // bb 979 return this.description; 980 } 981 982 public boolean hasDescriptionElement() { 983 return this.description != null && !this.description.isEmpty(); 984 } 985 986 public boolean hasDescription() { 987 return this.description != null && !this.description.isEmpty(); 988 } 989 990 /** 991 * @param value {@link #description} (Information about the specific installation that this capability statement relates to.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 992 */ 993 public CapabilityStatement2ImplementationComponent setDescriptionElement(StringType value) { 994 this.description = value; 995 return this; 996 } 997 998 /** 999 * @return Information about the specific installation that this capability statement relates to. 1000 */ 1001 public String getDescription() { 1002 return this.description == null ? null : this.description.getValue(); 1003 } 1004 1005 /** 1006 * @param value Information about the specific installation that this capability statement relates to. 1007 */ 1008 public CapabilityStatement2ImplementationComponent setDescription(String value) { 1009 if (this.description == null) 1010 this.description = new StringType(); 1011 this.description.setValue(value); 1012 return this; 1013 } 1014 1015 /** 1016 * @return {@link #url} (An absolute base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 1017 */ 1018 public UrlType getUrlElement() { 1019 if (this.url == null) 1020 if (Configuration.errorOnAutoCreate()) 1021 throw new Error("Attempt to auto-create CapabilityStatement2ImplementationComponent.url"); 1022 else if (Configuration.doAutoCreate()) 1023 this.url = new UrlType(); // bb 1024 return this.url; 1025 } 1026 1027 public boolean hasUrlElement() { 1028 return this.url != null && !this.url.isEmpty(); 1029 } 1030 1031 public boolean hasUrl() { 1032 return this.url != null && !this.url.isEmpty(); 1033 } 1034 1035 /** 1036 * @param value {@link #url} (An absolute base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 1037 */ 1038 public CapabilityStatement2ImplementationComponent setUrlElement(UrlType value) { 1039 this.url = value; 1040 return this; 1041 } 1042 1043 /** 1044 * @return An absolute base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces. 1045 */ 1046 public String getUrl() { 1047 return this.url == null ? null : this.url.getValue(); 1048 } 1049 1050 /** 1051 * @param value An absolute base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces. 1052 */ 1053 public CapabilityStatement2ImplementationComponent setUrl(String value) { 1054 if (Utilities.noString(value)) 1055 this.url = null; 1056 else { 1057 if (this.url == null) 1058 this.url = new UrlType(); 1059 this.url.setValue(value); 1060 } 1061 return this; 1062 } 1063 1064 /** 1065 * @return {@link #custodian} (The organization responsible for the management of the instance and oversight of the data on the server at the specified URL.) 1066 */ 1067 public Reference getCustodian() { 1068 if (this.custodian == null) 1069 if (Configuration.errorOnAutoCreate()) 1070 throw new Error("Attempt to auto-create CapabilityStatement2ImplementationComponent.custodian"); 1071 else if (Configuration.doAutoCreate()) 1072 this.custodian = new Reference(); // cc 1073 return this.custodian; 1074 } 1075 1076 public boolean hasCustodian() { 1077 return this.custodian != null && !this.custodian.isEmpty(); 1078 } 1079 1080 /** 1081 * @param value {@link #custodian} (The organization responsible for the management of the instance and oversight of the data on the server at the specified URL.) 1082 */ 1083 public CapabilityStatement2ImplementationComponent setCustodian(Reference value) { 1084 this.custodian = value; 1085 return this; 1086 } 1087 1088 protected void listChildren(List<Property> children) { 1089 super.listChildren(children); 1090 children.add(new Property("description", "string", "Information about the specific installation that this capability statement relates to.", 0, 1, description)); 1091 children.add(new Property("url", "url", "An absolute base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces.", 0, 1, url)); 1092 children.add(new Property("custodian", "Reference(Organization)", "The organization responsible for the management of the instance and oversight of the data on the server at the specified URL.", 0, 1, custodian)); 1093 } 1094 1095 @Override 1096 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1097 switch (_hash) { 1098 case -1724546052: /*description*/ return new Property("description", "string", "Information about the specific installation that this capability statement relates to.", 0, 1, description); 1099 case 116079: /*url*/ return new Property("url", "url", "An absolute base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces.", 0, 1, url); 1100 case 1611297262: /*custodian*/ return new Property("custodian", "Reference(Organization)", "The organization responsible for the management of the instance and oversight of the data on the server at the specified URL.", 0, 1, custodian); 1101 default: return super.getNamedProperty(_hash, _name, _checkValid); 1102 } 1103 1104 } 1105 1106 @Override 1107 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1108 switch (hash) { 1109 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType 1110 case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UrlType 1111 case 1611297262: /*custodian*/ return this.custodian == null ? new Base[0] : new Base[] {this.custodian}; // Reference 1112 default: return super.getProperty(hash, name, checkValid); 1113 } 1114 1115 } 1116 1117 @Override 1118 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1119 switch (hash) { 1120 case -1724546052: // description 1121 this.description = castToString(value); // StringType 1122 return value; 1123 case 116079: // url 1124 this.url = castToUrl(value); // UrlType 1125 return value; 1126 case 1611297262: // custodian 1127 this.custodian = castToReference(value); // Reference 1128 return value; 1129 default: return super.setProperty(hash, name, value); 1130 } 1131 1132 } 1133 1134 @Override 1135 public Base setProperty(String name, Base value) throws FHIRException { 1136 if (name.equals("description")) { 1137 this.description = castToString(value); // StringType 1138 } else if (name.equals("url")) { 1139 this.url = castToUrl(value); // UrlType 1140 } else if (name.equals("custodian")) { 1141 this.custodian = castToReference(value); // Reference 1142 } else 1143 return super.setProperty(name, value); 1144 return value; 1145 } 1146 1147 @Override 1148 public Base makeProperty(int hash, String name) throws FHIRException { 1149 switch (hash) { 1150 case -1724546052: return getDescriptionElement(); 1151 case 116079: return getUrlElement(); 1152 case 1611297262: return getCustodian(); 1153 default: return super.makeProperty(hash, name); 1154 } 1155 1156 } 1157 1158 @Override 1159 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1160 switch (hash) { 1161 case -1724546052: /*description*/ return new String[] {"string"}; 1162 case 116079: /*url*/ return new String[] {"url"}; 1163 case 1611297262: /*custodian*/ return new String[] {"Reference"}; 1164 default: return super.getTypesForProperty(hash, name); 1165 } 1166 1167 } 1168 1169 @Override 1170 public Base addChild(String name) throws FHIRException { 1171 if (name.equals("description")) { 1172 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.description"); 1173 } 1174 else if (name.equals("url")) { 1175 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.url"); 1176 } 1177 else if (name.equals("custodian")) { 1178 this.custodian = new Reference(); 1179 return this.custodian; 1180 } 1181 else 1182 return super.addChild(name); 1183 } 1184 1185 public CapabilityStatement2ImplementationComponent copy() { 1186 CapabilityStatement2ImplementationComponent dst = new CapabilityStatement2ImplementationComponent(); 1187 copyValues(dst); 1188 return dst; 1189 } 1190 1191 public void copyValues(CapabilityStatement2ImplementationComponent dst) { 1192 super.copyValues(dst); 1193 dst.description = description == null ? null : description.copy(); 1194 dst.url = url == null ? null : url.copy(); 1195 dst.custodian = custodian == null ? null : custodian.copy(); 1196 } 1197 1198 @Override 1199 public boolean equalsDeep(Base other_) { 1200 if (!super.equalsDeep(other_)) 1201 return false; 1202 if (!(other_ instanceof CapabilityStatement2ImplementationComponent)) 1203 return false; 1204 CapabilityStatement2ImplementationComponent o = (CapabilityStatement2ImplementationComponent) other_; 1205 return compareDeep(description, o.description, true) && compareDeep(url, o.url, true) && compareDeep(custodian, o.custodian, true) 1206 ; 1207 } 1208 1209 @Override 1210 public boolean equalsShallow(Base other_) { 1211 if (!super.equalsShallow(other_)) 1212 return false; 1213 if (!(other_ instanceof CapabilityStatement2ImplementationComponent)) 1214 return false; 1215 CapabilityStatement2ImplementationComponent o = (CapabilityStatement2ImplementationComponent) other_; 1216 return compareValues(description, o.description, true) && compareValues(url, o.url, true); 1217 } 1218 1219 public boolean isEmpty() { 1220 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(description, url, custodian 1221 ); 1222 } 1223 1224 public String fhirType() { 1225 return "CapabilityStatement2.implementation"; 1226 1227 } 1228 1229 } 1230 1231 @Block() 1232 public static class CapabilityStatement2RestComponent extends BackboneElement implements IBaseBackboneElement { 1233 /** 1234 * Identifies whether this portion of the statement is describing the ability to initiate or receive restful operations. 1235 */ 1236 @Child(name = "mode", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=true) 1237 @Description(shortDefinition="client | server", formalDefinition="Identifies whether this portion of the statement is describing the ability to initiate or receive restful operations." ) 1238 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/restful-capability-mode") 1239 protected Enumeration<RestfulCapabilityMode> mode; 1240 1241 /** 1242 * Information about the system's restful capabilities that apply across all applications, such as security. 1243 */ 1244 @Child(name = "documentation", type = {MarkdownType.class}, order=2, min=0, max=1, modifier=false, summary=false) 1245 @Description(shortDefinition="General description of implementation", formalDefinition="Information about the system's restful capabilities that apply across all applications, such as security." ) 1246 protected MarkdownType documentation; 1247 1248 /** 1249 * A specification of the restful capabilities of the solution for a specific resource type. 1250 */ 1251 @Child(name = "resource", type = {}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1252 @Description(shortDefinition="Resource served on the REST interface", formalDefinition="A specification of the restful capabilities of the solution for a specific resource type." ) 1253 protected List<CapabilityStatement2RestResourceComponent> resource; 1254 1255 /** 1256 * A specification of restful operations supported by the system. 1257 */ 1258 @Child(name = "interaction", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1259 @Description(shortDefinition="What operations are supported?", formalDefinition="A specification of restful operations supported by the system." ) 1260 protected List<SystemInteractionComponent> interaction; 1261 1262 /** 1263 * Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation. 1264 */ 1265 @Child(name = "searchParam", type = {CapabilityStatement2RestResourceSearchParamComponent.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1266 @Description(shortDefinition="Search parameters for searching all resources", formalDefinition="Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation." ) 1267 protected List<CapabilityStatement2RestResourceSearchParamComponent> searchParam; 1268 1269 /** 1270 * Definition of an operation or a named query together with its parameters and their meaning and type. 1271 */ 1272 @Child(name = "operation", type = {CapabilityStatement2RestResourceOperationComponent.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1273 @Description(shortDefinition="Definition of a system level operation", formalDefinition="Definition of an operation or a named query together with its parameters and their meaning and type." ) 1274 protected List<CapabilityStatement2RestResourceOperationComponent> operation; 1275 1276 /** 1277 * An absolute URI which is a reference to the definition of a compartment that the system supports. The reference is to a CompartmentDefinition resource by its canonical URL . 1278 */ 1279 @Child(name = "compartment", type = {CanonicalType.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1280 @Description(shortDefinition="Compartments served/used by system", formalDefinition="An absolute URI which is a reference to the definition of a compartment that the system supports. The reference is to a CompartmentDefinition resource by its canonical URL ." ) 1281 protected List<CanonicalType> compartment; 1282 1283 private static final long serialVersionUID = -476653235L; 1284 1285 /** 1286 * Constructor 1287 */ 1288 public CapabilityStatement2RestComponent() { 1289 super(); 1290 } 1291 1292 /** 1293 * Constructor 1294 */ 1295 public CapabilityStatement2RestComponent(Enumeration<RestfulCapabilityMode> mode) { 1296 super(); 1297 this.mode = mode; 1298 } 1299 1300 /** 1301 * @return {@link #mode} (Identifies whether this portion of the statement is describing the ability to initiate or receive restful operations.). This is the underlying object with id, value and extensions. The accessor "getMode" gives direct access to the value 1302 */ 1303 public Enumeration<RestfulCapabilityMode> getModeElement() { 1304 if (this.mode == null) 1305 if (Configuration.errorOnAutoCreate()) 1306 throw new Error("Attempt to auto-create CapabilityStatement2RestComponent.mode"); 1307 else if (Configuration.doAutoCreate()) 1308 this.mode = new Enumeration<RestfulCapabilityMode>(new RestfulCapabilityModeEnumFactory()); // bb 1309 return this.mode; 1310 } 1311 1312 public boolean hasModeElement() { 1313 return this.mode != null && !this.mode.isEmpty(); 1314 } 1315 1316 public boolean hasMode() { 1317 return this.mode != null && !this.mode.isEmpty(); 1318 } 1319 1320 /** 1321 * @param value {@link #mode} (Identifies whether this portion of the statement is describing the ability to initiate or receive restful operations.). This is the underlying object with id, value and extensions. The accessor "getMode" gives direct access to the value 1322 */ 1323 public CapabilityStatement2RestComponent setModeElement(Enumeration<RestfulCapabilityMode> value) { 1324 this.mode = value; 1325 return this; 1326 } 1327 1328 /** 1329 * @return Identifies whether this portion of the statement is describing the ability to initiate or receive restful operations. 1330 */ 1331 public RestfulCapabilityMode getMode() { 1332 return this.mode == null ? null : this.mode.getValue(); 1333 } 1334 1335 /** 1336 * @param value Identifies whether this portion of the statement is describing the ability to initiate or receive restful operations. 1337 */ 1338 public CapabilityStatement2RestComponent setMode(RestfulCapabilityMode value) { 1339 if (this.mode == null) 1340 this.mode = new Enumeration<RestfulCapabilityMode>(new RestfulCapabilityModeEnumFactory()); 1341 this.mode.setValue(value); 1342 return this; 1343 } 1344 1345 /** 1346 * @return {@link #documentation} (Information about the system's restful capabilities that apply across all applications, such as security.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value 1347 */ 1348 public MarkdownType getDocumentationElement() { 1349 if (this.documentation == null) 1350 if (Configuration.errorOnAutoCreate()) 1351 throw new Error("Attempt to auto-create CapabilityStatement2RestComponent.documentation"); 1352 else if (Configuration.doAutoCreate()) 1353 this.documentation = new MarkdownType(); // bb 1354 return this.documentation; 1355 } 1356 1357 public boolean hasDocumentationElement() { 1358 return this.documentation != null && !this.documentation.isEmpty(); 1359 } 1360 1361 public boolean hasDocumentation() { 1362 return this.documentation != null && !this.documentation.isEmpty(); 1363 } 1364 1365 /** 1366 * @param value {@link #documentation} (Information about the system's restful capabilities that apply across all applications, such as security.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value 1367 */ 1368 public CapabilityStatement2RestComponent setDocumentationElement(MarkdownType value) { 1369 this.documentation = value; 1370 return this; 1371 } 1372 1373 /** 1374 * @return Information about the system's restful capabilities that apply across all applications, such as security. 1375 */ 1376 public String getDocumentation() { 1377 return this.documentation == null ? null : this.documentation.getValue(); 1378 } 1379 1380 /** 1381 * @param value Information about the system's restful capabilities that apply across all applications, such as security. 1382 */ 1383 public CapabilityStatement2RestComponent setDocumentation(String value) { 1384 if (value == null) 1385 this.documentation = null; 1386 else { 1387 if (this.documentation == null) 1388 this.documentation = new MarkdownType(); 1389 this.documentation.setValue(value); 1390 } 1391 return this; 1392 } 1393 1394 /** 1395 * @return {@link #resource} (A specification of the restful capabilities of the solution for a specific resource type.) 1396 */ 1397 public List<CapabilityStatement2RestResourceComponent> getResource() { 1398 if (this.resource == null) 1399 this.resource = new ArrayList<CapabilityStatement2RestResourceComponent>(); 1400 return this.resource; 1401 } 1402 1403 /** 1404 * @return Returns a reference to <code>this</code> for easy method chaining 1405 */ 1406 public CapabilityStatement2RestComponent setResource(List<CapabilityStatement2RestResourceComponent> theResource) { 1407 this.resource = theResource; 1408 return this; 1409 } 1410 1411 public boolean hasResource() { 1412 if (this.resource == null) 1413 return false; 1414 for (CapabilityStatement2RestResourceComponent item : this.resource) 1415 if (!item.isEmpty()) 1416 return true; 1417 return false; 1418 } 1419 1420 public CapabilityStatement2RestResourceComponent addResource() { //3 1421 CapabilityStatement2RestResourceComponent t = new CapabilityStatement2RestResourceComponent(); 1422 if (this.resource == null) 1423 this.resource = new ArrayList<CapabilityStatement2RestResourceComponent>(); 1424 this.resource.add(t); 1425 return t; 1426 } 1427 1428 public CapabilityStatement2RestComponent addResource(CapabilityStatement2RestResourceComponent t) { //3 1429 if (t == null) 1430 return this; 1431 if (this.resource == null) 1432 this.resource = new ArrayList<CapabilityStatement2RestResourceComponent>(); 1433 this.resource.add(t); 1434 return this; 1435 } 1436 1437 /** 1438 * @return The first repetition of repeating field {@link #resource}, creating it if it does not already exist 1439 */ 1440 public CapabilityStatement2RestResourceComponent getResourceFirstRep() { 1441 if (getResource().isEmpty()) { 1442 addResource(); 1443 } 1444 return getResource().get(0); 1445 } 1446 1447 /** 1448 * @return {@link #interaction} (A specification of restful operations supported by the system.) 1449 */ 1450 public List<SystemInteractionComponent> getInteraction() { 1451 if (this.interaction == null) 1452 this.interaction = new ArrayList<SystemInteractionComponent>(); 1453 return this.interaction; 1454 } 1455 1456 /** 1457 * @return Returns a reference to <code>this</code> for easy method chaining 1458 */ 1459 public CapabilityStatement2RestComponent setInteraction(List<SystemInteractionComponent> theInteraction) { 1460 this.interaction = theInteraction; 1461 return this; 1462 } 1463 1464 public boolean hasInteraction() { 1465 if (this.interaction == null) 1466 return false; 1467 for (SystemInteractionComponent item : this.interaction) 1468 if (!item.isEmpty()) 1469 return true; 1470 return false; 1471 } 1472 1473 public SystemInteractionComponent addInteraction() { //3 1474 SystemInteractionComponent t = new SystemInteractionComponent(); 1475 if (this.interaction == null) 1476 this.interaction = new ArrayList<SystemInteractionComponent>(); 1477 this.interaction.add(t); 1478 return t; 1479 } 1480 1481 public CapabilityStatement2RestComponent addInteraction(SystemInteractionComponent t) { //3 1482 if (t == null) 1483 return this; 1484 if (this.interaction == null) 1485 this.interaction = new ArrayList<SystemInteractionComponent>(); 1486 this.interaction.add(t); 1487 return this; 1488 } 1489 1490 /** 1491 * @return The first repetition of repeating field {@link #interaction}, creating it if it does not already exist 1492 */ 1493 public SystemInteractionComponent getInteractionFirstRep() { 1494 if (getInteraction().isEmpty()) { 1495 addInteraction(); 1496 } 1497 return getInteraction().get(0); 1498 } 1499 1500 /** 1501 * @return {@link #searchParam} (Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation.) 1502 */ 1503 public List<CapabilityStatement2RestResourceSearchParamComponent> getSearchParam() { 1504 if (this.searchParam == null) 1505 this.searchParam = new ArrayList<CapabilityStatement2RestResourceSearchParamComponent>(); 1506 return this.searchParam; 1507 } 1508 1509 /** 1510 * @return Returns a reference to <code>this</code> for easy method chaining 1511 */ 1512 public CapabilityStatement2RestComponent setSearchParam(List<CapabilityStatement2RestResourceSearchParamComponent> theSearchParam) { 1513 this.searchParam = theSearchParam; 1514 return this; 1515 } 1516 1517 public boolean hasSearchParam() { 1518 if (this.searchParam == null) 1519 return false; 1520 for (CapabilityStatement2RestResourceSearchParamComponent item : this.searchParam) 1521 if (!item.isEmpty()) 1522 return true; 1523 return false; 1524 } 1525 1526 public CapabilityStatement2RestResourceSearchParamComponent addSearchParam() { //3 1527 CapabilityStatement2RestResourceSearchParamComponent t = new CapabilityStatement2RestResourceSearchParamComponent(); 1528 if (this.searchParam == null) 1529 this.searchParam = new ArrayList<CapabilityStatement2RestResourceSearchParamComponent>(); 1530 this.searchParam.add(t); 1531 return t; 1532 } 1533 1534 public CapabilityStatement2RestComponent addSearchParam(CapabilityStatement2RestResourceSearchParamComponent t) { //3 1535 if (t == null) 1536 return this; 1537 if (this.searchParam == null) 1538 this.searchParam = new ArrayList<CapabilityStatement2RestResourceSearchParamComponent>(); 1539 this.searchParam.add(t); 1540 return this; 1541 } 1542 1543 /** 1544 * @return The first repetition of repeating field {@link #searchParam}, creating it if it does not already exist 1545 */ 1546 public CapabilityStatement2RestResourceSearchParamComponent getSearchParamFirstRep() { 1547 if (getSearchParam().isEmpty()) { 1548 addSearchParam(); 1549 } 1550 return getSearchParam().get(0); 1551 } 1552 1553 /** 1554 * @return {@link #operation} (Definition of an operation or a named query together with its parameters and their meaning and type.) 1555 */ 1556 public List<CapabilityStatement2RestResourceOperationComponent> getOperation() { 1557 if (this.operation == null) 1558 this.operation = new ArrayList<CapabilityStatement2RestResourceOperationComponent>(); 1559 return this.operation; 1560 } 1561 1562 /** 1563 * @return Returns a reference to <code>this</code> for easy method chaining 1564 */ 1565 public CapabilityStatement2RestComponent setOperation(List<CapabilityStatement2RestResourceOperationComponent> theOperation) { 1566 this.operation = theOperation; 1567 return this; 1568 } 1569 1570 public boolean hasOperation() { 1571 if (this.operation == null) 1572 return false; 1573 for (CapabilityStatement2RestResourceOperationComponent item : this.operation) 1574 if (!item.isEmpty()) 1575 return true; 1576 return false; 1577 } 1578 1579 public CapabilityStatement2RestResourceOperationComponent addOperation() { //3 1580 CapabilityStatement2RestResourceOperationComponent t = new CapabilityStatement2RestResourceOperationComponent(); 1581 if (this.operation == null) 1582 this.operation = new ArrayList<CapabilityStatement2RestResourceOperationComponent>(); 1583 this.operation.add(t); 1584 return t; 1585 } 1586 1587 public CapabilityStatement2RestComponent addOperation(CapabilityStatement2RestResourceOperationComponent t) { //3 1588 if (t == null) 1589 return this; 1590 if (this.operation == null) 1591 this.operation = new ArrayList<CapabilityStatement2RestResourceOperationComponent>(); 1592 this.operation.add(t); 1593 return this; 1594 } 1595 1596 /** 1597 * @return The first repetition of repeating field {@link #operation}, creating it if it does not already exist 1598 */ 1599 public CapabilityStatement2RestResourceOperationComponent getOperationFirstRep() { 1600 if (getOperation().isEmpty()) { 1601 addOperation(); 1602 } 1603 return getOperation().get(0); 1604 } 1605 1606 /** 1607 * @return {@link #compartment} (An absolute URI which is a reference to the definition of a compartment that the system supports. The reference is to a CompartmentDefinition resource by its canonical URL .) 1608 */ 1609 public List<CanonicalType> getCompartment() { 1610 if (this.compartment == null) 1611 this.compartment = new ArrayList<CanonicalType>(); 1612 return this.compartment; 1613 } 1614 1615 /** 1616 * @return Returns a reference to <code>this</code> for easy method chaining 1617 */ 1618 public CapabilityStatement2RestComponent setCompartment(List<CanonicalType> theCompartment) { 1619 this.compartment = theCompartment; 1620 return this; 1621 } 1622 1623 public boolean hasCompartment() { 1624 if (this.compartment == null) 1625 return false; 1626 for (CanonicalType item : this.compartment) 1627 if (!item.isEmpty()) 1628 return true; 1629 return false; 1630 } 1631 1632 /** 1633 * @return {@link #compartment} (An absolute URI which is a reference to the definition of a compartment that the system supports. The reference is to a CompartmentDefinition resource by its canonical URL .) 1634 */ 1635 public CanonicalType addCompartmentElement() {//2 1636 CanonicalType t = new CanonicalType(); 1637 if (this.compartment == null) 1638 this.compartment = new ArrayList<CanonicalType>(); 1639 this.compartment.add(t); 1640 return t; 1641 } 1642 1643 /** 1644 * @param value {@link #compartment} (An absolute URI which is a reference to the definition of a compartment that the system supports. The reference is to a CompartmentDefinition resource by its canonical URL .) 1645 */ 1646 public CapabilityStatement2RestComponent addCompartment(String value) { //1 1647 CanonicalType t = new CanonicalType(); 1648 t.setValue(value); 1649 if (this.compartment == null) 1650 this.compartment = new ArrayList<CanonicalType>(); 1651 this.compartment.add(t); 1652 return this; 1653 } 1654 1655 /** 1656 * @param value {@link #compartment} (An absolute URI which is a reference to the definition of a compartment that the system supports. The reference is to a CompartmentDefinition resource by its canonical URL .) 1657 */ 1658 public boolean hasCompartment(String value) { 1659 if (this.compartment == null) 1660 return false; 1661 for (CanonicalType v : this.compartment) 1662 if (v.getValue().equals(value)) // canonical(CompartmentDefinition) 1663 return true; 1664 return false; 1665 } 1666 1667 protected void listChildren(List<Property> children) { 1668 super.listChildren(children); 1669 children.add(new Property("mode", "code", "Identifies whether this portion of the statement is describing the ability to initiate or receive restful operations.", 0, 1, mode)); 1670 children.add(new Property("documentation", "markdown", "Information about the system's restful capabilities that apply across all applications, such as security.", 0, 1, documentation)); 1671 children.add(new Property("resource", "", "A specification of the restful capabilities of the solution for a specific resource type.", 0, java.lang.Integer.MAX_VALUE, resource)); 1672 children.add(new Property("interaction", "", "A specification of restful operations supported by the system.", 0, java.lang.Integer.MAX_VALUE, interaction)); 1673 children.add(new Property("searchParam", "@CapabilityStatement2.rest.resource.searchParam", "Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation.", 0, java.lang.Integer.MAX_VALUE, searchParam)); 1674 children.add(new Property("operation", "@CapabilityStatement2.rest.resource.operation", "Definition of an operation or a named query together with its parameters and their meaning and type.", 0, java.lang.Integer.MAX_VALUE, operation)); 1675 children.add(new Property("compartment", "canonical(CompartmentDefinition)", "An absolute URI which is a reference to the definition of a compartment that the system supports. The reference is to a CompartmentDefinition resource by its canonical URL .", 0, java.lang.Integer.MAX_VALUE, compartment)); 1676 } 1677 1678 @Override 1679 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1680 switch (_hash) { 1681 case 3357091: /*mode*/ return new Property("mode", "code", "Identifies whether this portion of the statement is describing the ability to initiate or receive restful operations.", 0, 1, mode); 1682 case 1587405498: /*documentation*/ return new Property("documentation", "markdown", "Information about the system's restful capabilities that apply across all applications, such as security.", 0, 1, documentation); 1683 case -341064690: /*resource*/ return new Property("resource", "", "A specification of the restful capabilities of the solution for a specific resource type.", 0, java.lang.Integer.MAX_VALUE, resource); 1684 case 1844104722: /*interaction*/ return new Property("interaction", "", "A specification of restful operations supported by the system.", 0, java.lang.Integer.MAX_VALUE, interaction); 1685 case -553645115: /*searchParam*/ return new Property("searchParam", "@CapabilityStatement2.rest.resource.searchParam", "Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation.", 0, java.lang.Integer.MAX_VALUE, searchParam); 1686 case 1662702951: /*operation*/ return new Property("operation", "@CapabilityStatement2.rest.resource.operation", "Definition of an operation or a named query together with its parameters and their meaning and type.", 0, java.lang.Integer.MAX_VALUE, operation); 1687 case -397756334: /*compartment*/ return new Property("compartment", "canonical(CompartmentDefinition)", "An absolute URI which is a reference to the definition of a compartment that the system supports. The reference is to a CompartmentDefinition resource by its canonical URL .", 0, java.lang.Integer.MAX_VALUE, compartment); 1688 default: return super.getNamedProperty(_hash, _name, _checkValid); 1689 } 1690 1691 } 1692 1693 @Override 1694 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1695 switch (hash) { 1696 case 3357091: /*mode*/ return this.mode == null ? new Base[0] : new Base[] {this.mode}; // Enumeration<RestfulCapabilityMode> 1697 case 1587405498: /*documentation*/ return this.documentation == null ? new Base[0] : new Base[] {this.documentation}; // MarkdownType 1698 case -341064690: /*resource*/ return this.resource == null ? new Base[0] : this.resource.toArray(new Base[this.resource.size()]); // CapabilityStatement2RestResourceComponent 1699 case 1844104722: /*interaction*/ return this.interaction == null ? new Base[0] : this.interaction.toArray(new Base[this.interaction.size()]); // SystemInteractionComponent 1700 case -553645115: /*searchParam*/ return this.searchParam == null ? new Base[0] : this.searchParam.toArray(new Base[this.searchParam.size()]); // CapabilityStatement2RestResourceSearchParamComponent 1701 case 1662702951: /*operation*/ return this.operation == null ? new Base[0] : this.operation.toArray(new Base[this.operation.size()]); // CapabilityStatement2RestResourceOperationComponent 1702 case -397756334: /*compartment*/ return this.compartment == null ? new Base[0] : this.compartment.toArray(new Base[this.compartment.size()]); // CanonicalType 1703 default: return super.getProperty(hash, name, checkValid); 1704 } 1705 1706 } 1707 1708 @Override 1709 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1710 switch (hash) { 1711 case 3357091: // mode 1712 value = new RestfulCapabilityModeEnumFactory().fromType(castToCode(value)); 1713 this.mode = (Enumeration) value; // Enumeration<RestfulCapabilityMode> 1714 return value; 1715 case 1587405498: // documentation 1716 this.documentation = castToMarkdown(value); // MarkdownType 1717 return value; 1718 case -341064690: // resource 1719 this.getResource().add((CapabilityStatement2RestResourceComponent) value); // CapabilityStatement2RestResourceComponent 1720 return value; 1721 case 1844104722: // interaction 1722 this.getInteraction().add((SystemInteractionComponent) value); // SystemInteractionComponent 1723 return value; 1724 case -553645115: // searchParam 1725 this.getSearchParam().add((CapabilityStatement2RestResourceSearchParamComponent) value); // CapabilityStatement2RestResourceSearchParamComponent 1726 return value; 1727 case 1662702951: // operation 1728 this.getOperation().add((CapabilityStatement2RestResourceOperationComponent) value); // CapabilityStatement2RestResourceOperationComponent 1729 return value; 1730 case -397756334: // compartment 1731 this.getCompartment().add(castToCanonical(value)); // CanonicalType 1732 return value; 1733 default: return super.setProperty(hash, name, value); 1734 } 1735 1736 } 1737 1738 @Override 1739 public Base setProperty(String name, Base value) throws FHIRException { 1740 if (name.equals("mode")) { 1741 value = new RestfulCapabilityModeEnumFactory().fromType(castToCode(value)); 1742 this.mode = (Enumeration) value; // Enumeration<RestfulCapabilityMode> 1743 } else if (name.equals("documentation")) { 1744 this.documentation = castToMarkdown(value); // MarkdownType 1745 } else if (name.equals("resource")) { 1746 this.getResource().add((CapabilityStatement2RestResourceComponent) value); 1747 } else if (name.equals("interaction")) { 1748 this.getInteraction().add((SystemInteractionComponent) value); 1749 } else if (name.equals("searchParam")) { 1750 this.getSearchParam().add((CapabilityStatement2RestResourceSearchParamComponent) value); 1751 } else if (name.equals("operation")) { 1752 this.getOperation().add((CapabilityStatement2RestResourceOperationComponent) value); 1753 } else if (name.equals("compartment")) { 1754 this.getCompartment().add(castToCanonical(value)); 1755 } else 1756 return super.setProperty(name, value); 1757 return value; 1758 } 1759 1760 @Override 1761 public Base makeProperty(int hash, String name) throws FHIRException { 1762 switch (hash) { 1763 case 3357091: return getModeElement(); 1764 case 1587405498: return getDocumentationElement(); 1765 case -341064690: return addResource(); 1766 case 1844104722: return addInteraction(); 1767 case -553645115: return addSearchParam(); 1768 case 1662702951: return addOperation(); 1769 case -397756334: return addCompartmentElement(); 1770 default: return super.makeProperty(hash, name); 1771 } 1772 1773 } 1774 1775 @Override 1776 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1777 switch (hash) { 1778 case 3357091: /*mode*/ return new String[] {"code"}; 1779 case 1587405498: /*documentation*/ return new String[] {"markdown"}; 1780 case -341064690: /*resource*/ return new String[] {}; 1781 case 1844104722: /*interaction*/ return new String[] {}; 1782 case -553645115: /*searchParam*/ return new String[] {"@CapabilityStatement2.rest.resource.searchParam"}; 1783 case 1662702951: /*operation*/ return new String[] {"@CapabilityStatement2.rest.resource.operation"}; 1784 case -397756334: /*compartment*/ return new String[] {"canonical"}; 1785 default: return super.getTypesForProperty(hash, name); 1786 } 1787 1788 } 1789 1790 @Override 1791 public Base addChild(String name) throws FHIRException { 1792 if (name.equals("mode")) { 1793 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.mode"); 1794 } 1795 else if (name.equals("documentation")) { 1796 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.documentation"); 1797 } 1798 else if (name.equals("resource")) { 1799 return addResource(); 1800 } 1801 else if (name.equals("interaction")) { 1802 return addInteraction(); 1803 } 1804 else if (name.equals("searchParam")) { 1805 return addSearchParam(); 1806 } 1807 else if (name.equals("operation")) { 1808 return addOperation(); 1809 } 1810 else if (name.equals("compartment")) { 1811 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.compartment"); 1812 } 1813 else 1814 return super.addChild(name); 1815 } 1816 1817 public CapabilityStatement2RestComponent copy() { 1818 CapabilityStatement2RestComponent dst = new CapabilityStatement2RestComponent(); 1819 copyValues(dst); 1820 return dst; 1821 } 1822 1823 public void copyValues(CapabilityStatement2RestComponent dst) { 1824 super.copyValues(dst); 1825 dst.mode = mode == null ? null : mode.copy(); 1826 dst.documentation = documentation == null ? null : documentation.copy(); 1827 if (resource != null) { 1828 dst.resource = new ArrayList<CapabilityStatement2RestResourceComponent>(); 1829 for (CapabilityStatement2RestResourceComponent i : resource) 1830 dst.resource.add(i.copy()); 1831 }; 1832 if (interaction != null) { 1833 dst.interaction = new ArrayList<SystemInteractionComponent>(); 1834 for (SystemInteractionComponent i : interaction) 1835 dst.interaction.add(i.copy()); 1836 }; 1837 if (searchParam != null) { 1838 dst.searchParam = new ArrayList<CapabilityStatement2RestResourceSearchParamComponent>(); 1839 for (CapabilityStatement2RestResourceSearchParamComponent i : searchParam) 1840 dst.searchParam.add(i.copy()); 1841 }; 1842 if (operation != null) { 1843 dst.operation = new ArrayList<CapabilityStatement2RestResourceOperationComponent>(); 1844 for (CapabilityStatement2RestResourceOperationComponent i : operation) 1845 dst.operation.add(i.copy()); 1846 }; 1847 if (compartment != null) { 1848 dst.compartment = new ArrayList<CanonicalType>(); 1849 for (CanonicalType i : compartment) 1850 dst.compartment.add(i.copy()); 1851 }; 1852 } 1853 1854 @Override 1855 public boolean equalsDeep(Base other_) { 1856 if (!super.equalsDeep(other_)) 1857 return false; 1858 if (!(other_ instanceof CapabilityStatement2RestComponent)) 1859 return false; 1860 CapabilityStatement2RestComponent o = (CapabilityStatement2RestComponent) other_; 1861 return compareDeep(mode, o.mode, true) && compareDeep(documentation, o.documentation, true) && compareDeep(resource, o.resource, true) 1862 && compareDeep(interaction, o.interaction, true) && compareDeep(searchParam, o.searchParam, true) 1863 && compareDeep(operation, o.operation, true) && compareDeep(compartment, o.compartment, true); 1864 } 1865 1866 @Override 1867 public boolean equalsShallow(Base other_) { 1868 if (!super.equalsShallow(other_)) 1869 return false; 1870 if (!(other_ instanceof CapabilityStatement2RestComponent)) 1871 return false; 1872 CapabilityStatement2RestComponent o = (CapabilityStatement2RestComponent) other_; 1873 return compareValues(mode, o.mode, true) && compareValues(documentation, o.documentation, true); 1874 } 1875 1876 public boolean isEmpty() { 1877 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(mode, documentation, resource 1878 , interaction, searchParam, operation, compartment); 1879 } 1880 1881 public String fhirType() { 1882 return "CapabilityStatement2.rest"; 1883 1884 } 1885 1886 } 1887 1888 @Block() 1889 public static class CapabilityStatement2RestResourceComponent extends BackboneElement implements IBaseBackboneElement { 1890 /** 1891 * A type of resource exposed via the restful interface. 1892 */ 1893 @Child(name = "type", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=true) 1894 @Description(shortDefinition="A resource type that is supported", formalDefinition="A type of resource exposed via the restful interface." ) 1895 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/resource-types") 1896 protected CodeType type; 1897 1898 /** 1899 * A specification of the profile that describes the solution's overall support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles](profiling.html#profile-uses). 1900 */ 1901 @Child(name = "profile", type = {CanonicalType.class}, order=2, min=0, max=1, modifier=false, summary=true) 1902 @Description(shortDefinition="Base System profile for all uses of resource", formalDefinition="A specification of the profile that describes the solution's overall support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles](profiling.html#profile-uses)." ) 1903 protected CanonicalType profile; 1904 1905 /** 1906 * A list of profiles that represent different use cases supported by the system. For a server, "supported by the system" means the system hosts/produces a set of resources that are conformant to a particular profile, and allows clients that use its services to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles](profiling.html#profile-uses). 1907 */ 1908 @Child(name = "supportedProfile", type = {CanonicalType.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1909 @Description(shortDefinition="Profiles for use cases supported", formalDefinition="A list of profiles that represent different use cases supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of resources that are conformant to a particular profile, and allows clients that use its services to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles](profiling.html#profile-uses)." ) 1910 protected List<CanonicalType> supportedProfile; 1911 1912 /** 1913 * Additional information about the resource type used by the system. 1914 */ 1915 @Child(name = "documentation", type = {MarkdownType.class}, order=4, min=0, max=1, modifier=false, summary=false) 1916 @Description(shortDefinition="Additional information about the use of the resource type", formalDefinition="Additional information about the resource type used by the system." ) 1917 protected MarkdownType documentation; 1918 1919 /** 1920 * Identifies a restful operation supported by the solution. 1921 */ 1922 @Child(name = "interaction", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1923 @Description(shortDefinition="What operations are supported?", formalDefinition="Identifies a restful operation supported by the solution." ) 1924 protected List<ResourceInteractionComponent> interaction; 1925 1926 /** 1927 * Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation. 1928 */ 1929 @Child(name = "searchParam", type = {}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1930 @Description(shortDefinition="Search parameters supported by implementation", formalDefinition="Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation." ) 1931 protected List<CapabilityStatement2RestResourceSearchParamComponent> searchParam; 1932 1933 /** 1934 * Definition of an operation or a named query together with its parameters and their meaning and type. Consult the definition of the operation for details about how to invoke the operation, and the parameters. 1935 */ 1936 @Child(name = "operation", type = {}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1937 @Description(shortDefinition="Definition of a resource operation", formalDefinition="Definition of an operation or a named query together with its parameters and their meaning and type. Consult the definition of the operation for details about how to invoke the operation, and the parameters." ) 1938 protected List<CapabilityStatement2RestResourceOperationComponent> operation; 1939 1940 private static final long serialVersionUID = 1394978037L; 1941 1942 /** 1943 * Constructor 1944 */ 1945 public CapabilityStatement2RestResourceComponent() { 1946 super(); 1947 } 1948 1949 /** 1950 * Constructor 1951 */ 1952 public CapabilityStatement2RestResourceComponent(CodeType type) { 1953 super(); 1954 this.type = type; 1955 } 1956 1957 /** 1958 * @return {@link #type} (A type of resource exposed via the restful interface.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value 1959 */ 1960 public CodeType getTypeElement() { 1961 if (this.type == null) 1962 if (Configuration.errorOnAutoCreate()) 1963 throw new Error("Attempt to auto-create CapabilityStatement2RestResourceComponent.type"); 1964 else if (Configuration.doAutoCreate()) 1965 this.type = new CodeType(); // bb 1966 return this.type; 1967 } 1968 1969 public boolean hasTypeElement() { 1970 return this.type != null && !this.type.isEmpty(); 1971 } 1972 1973 public boolean hasType() { 1974 return this.type != null && !this.type.isEmpty(); 1975 } 1976 1977 /** 1978 * @param value {@link #type} (A type of resource exposed via the restful interface.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value 1979 */ 1980 public CapabilityStatement2RestResourceComponent setTypeElement(CodeType value) { 1981 this.type = value; 1982 return this; 1983 } 1984 1985 /** 1986 * @return A type of resource exposed via the restful interface. 1987 */ 1988 public String getType() { 1989 return this.type == null ? null : this.type.getValue(); 1990 } 1991 1992 /** 1993 * @param value A type of resource exposed via the restful interface. 1994 */ 1995 public CapabilityStatement2RestResourceComponent setType(String value) { 1996 if (this.type == null) 1997 this.type = new CodeType(); 1998 this.type.setValue(value); 1999 return this; 2000 } 2001 2002 /** 2003 * @return {@link #profile} (A specification of the profile that describes the solution's overall support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles](profiling.html#profile-uses).). This is the underlying object with id, value and extensions. The accessor "getProfile" gives direct access to the value 2004 */ 2005 public CanonicalType getProfileElement() { 2006 if (this.profile == null) 2007 if (Configuration.errorOnAutoCreate()) 2008 throw new Error("Attempt to auto-create CapabilityStatement2RestResourceComponent.profile"); 2009 else if (Configuration.doAutoCreate()) 2010 this.profile = new CanonicalType(); // bb 2011 return this.profile; 2012 } 2013 2014 public boolean hasProfileElement() { 2015 return this.profile != null && !this.profile.isEmpty(); 2016 } 2017 2018 public boolean hasProfile() { 2019 return this.profile != null && !this.profile.isEmpty(); 2020 } 2021 2022 /** 2023 * @param value {@link #profile} (A specification of the profile that describes the solution's overall support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles](profiling.html#profile-uses).). This is the underlying object with id, value and extensions. The accessor "getProfile" gives direct access to the value 2024 */ 2025 public CapabilityStatement2RestResourceComponent setProfileElement(CanonicalType value) { 2026 this.profile = value; 2027 return this; 2028 } 2029 2030 /** 2031 * @return A specification of the profile that describes the solution's overall support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles](profiling.html#profile-uses). 2032 */ 2033 public String getProfile() { 2034 return this.profile == null ? null : this.profile.getValue(); 2035 } 2036 2037 /** 2038 * @param value A specification of the profile that describes the solution's overall support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles](profiling.html#profile-uses). 2039 */ 2040 public CapabilityStatement2RestResourceComponent setProfile(String value) { 2041 if (Utilities.noString(value)) 2042 this.profile = null; 2043 else { 2044 if (this.profile == null) 2045 this.profile = new CanonicalType(); 2046 this.profile.setValue(value); 2047 } 2048 return this; 2049 } 2050 2051 /** 2052 * @return {@link #supportedProfile} (A list of profiles that represent different use cases supported by the system. For a server, "supported by the system" means the system hosts/produces a set of resources that are conformant to a particular profile, and allows clients that use its services to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles](profiling.html#profile-uses).) 2053 */ 2054 public List<CanonicalType> getSupportedProfile() { 2055 if (this.supportedProfile == null) 2056 this.supportedProfile = new ArrayList<CanonicalType>(); 2057 return this.supportedProfile; 2058 } 2059 2060 /** 2061 * @return Returns a reference to <code>this</code> for easy method chaining 2062 */ 2063 public CapabilityStatement2RestResourceComponent setSupportedProfile(List<CanonicalType> theSupportedProfile) { 2064 this.supportedProfile = theSupportedProfile; 2065 return this; 2066 } 2067 2068 public boolean hasSupportedProfile() { 2069 if (this.supportedProfile == null) 2070 return false; 2071 for (CanonicalType item : this.supportedProfile) 2072 if (!item.isEmpty()) 2073 return true; 2074 return false; 2075 } 2076 2077 /** 2078 * @return {@link #supportedProfile} (A list of profiles that represent different use cases supported by the system. For a server, "supported by the system" means the system hosts/produces a set of resources that are conformant to a particular profile, and allows clients that use its services to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles](profiling.html#profile-uses).) 2079 */ 2080 public CanonicalType addSupportedProfileElement() {//2 2081 CanonicalType t = new CanonicalType(); 2082 if (this.supportedProfile == null) 2083 this.supportedProfile = new ArrayList<CanonicalType>(); 2084 this.supportedProfile.add(t); 2085 return t; 2086 } 2087 2088 /** 2089 * @param value {@link #supportedProfile} (A list of profiles that represent different use cases supported by the system. For a server, "supported by the system" means the system hosts/produces a set of resources that are conformant to a particular profile, and allows clients that use its services to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles](profiling.html#profile-uses).) 2090 */ 2091 public CapabilityStatement2RestResourceComponent addSupportedProfile(String value) { //1 2092 CanonicalType t = new CanonicalType(); 2093 t.setValue(value); 2094 if (this.supportedProfile == null) 2095 this.supportedProfile = new ArrayList<CanonicalType>(); 2096 this.supportedProfile.add(t); 2097 return this; 2098 } 2099 2100 /** 2101 * @param value {@link #supportedProfile} (A list of profiles that represent different use cases supported by the system. For a server, "supported by the system" means the system hosts/produces a set of resources that are conformant to a particular profile, and allows clients that use its services to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles](profiling.html#profile-uses).) 2102 */ 2103 public boolean hasSupportedProfile(String value) { 2104 if (this.supportedProfile == null) 2105 return false; 2106 for (CanonicalType v : this.supportedProfile) 2107 if (v.getValue().equals(value)) // canonical(StructureDefinition) 2108 return true; 2109 return false; 2110 } 2111 2112 /** 2113 * @return {@link #documentation} (Additional information about the resource type used by the system.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value 2114 */ 2115 public MarkdownType getDocumentationElement() { 2116 if (this.documentation == null) 2117 if (Configuration.errorOnAutoCreate()) 2118 throw new Error("Attempt to auto-create CapabilityStatement2RestResourceComponent.documentation"); 2119 else if (Configuration.doAutoCreate()) 2120 this.documentation = new MarkdownType(); // bb 2121 return this.documentation; 2122 } 2123 2124 public boolean hasDocumentationElement() { 2125 return this.documentation != null && !this.documentation.isEmpty(); 2126 } 2127 2128 public boolean hasDocumentation() { 2129 return this.documentation != null && !this.documentation.isEmpty(); 2130 } 2131 2132 /** 2133 * @param value {@link #documentation} (Additional information about the resource type used by the system.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value 2134 */ 2135 public CapabilityStatement2RestResourceComponent setDocumentationElement(MarkdownType value) { 2136 this.documentation = value; 2137 return this; 2138 } 2139 2140 /** 2141 * @return Additional information about the resource type used by the system. 2142 */ 2143 public String getDocumentation() { 2144 return this.documentation == null ? null : this.documentation.getValue(); 2145 } 2146 2147 /** 2148 * @param value Additional information about the resource type used by the system. 2149 */ 2150 public CapabilityStatement2RestResourceComponent setDocumentation(String value) { 2151 if (value == null) 2152 this.documentation = null; 2153 else { 2154 if (this.documentation == null) 2155 this.documentation = new MarkdownType(); 2156 this.documentation.setValue(value); 2157 } 2158 return this; 2159 } 2160 2161 /** 2162 * @return {@link #interaction} (Identifies a restful operation supported by the solution.) 2163 */ 2164 public List<ResourceInteractionComponent> getInteraction() { 2165 if (this.interaction == null) 2166 this.interaction = new ArrayList<ResourceInteractionComponent>(); 2167 return this.interaction; 2168 } 2169 2170 /** 2171 * @return Returns a reference to <code>this</code> for easy method chaining 2172 */ 2173 public CapabilityStatement2RestResourceComponent setInteraction(List<ResourceInteractionComponent> theInteraction) { 2174 this.interaction = theInteraction; 2175 return this; 2176 } 2177 2178 public boolean hasInteraction() { 2179 if (this.interaction == null) 2180 return false; 2181 for (ResourceInteractionComponent item : this.interaction) 2182 if (!item.isEmpty()) 2183 return true; 2184 return false; 2185 } 2186 2187 public ResourceInteractionComponent addInteraction() { //3 2188 ResourceInteractionComponent t = new ResourceInteractionComponent(); 2189 if (this.interaction == null) 2190 this.interaction = new ArrayList<ResourceInteractionComponent>(); 2191 this.interaction.add(t); 2192 return t; 2193 } 2194 2195 public CapabilityStatement2RestResourceComponent addInteraction(ResourceInteractionComponent t) { //3 2196 if (t == null) 2197 return this; 2198 if (this.interaction == null) 2199 this.interaction = new ArrayList<ResourceInteractionComponent>(); 2200 this.interaction.add(t); 2201 return this; 2202 } 2203 2204 /** 2205 * @return The first repetition of repeating field {@link #interaction}, creating it if it does not already exist 2206 */ 2207 public ResourceInteractionComponent getInteractionFirstRep() { 2208 if (getInteraction().isEmpty()) { 2209 addInteraction(); 2210 } 2211 return getInteraction().get(0); 2212 } 2213 2214 /** 2215 * @return {@link #searchParam} (Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation.) 2216 */ 2217 public List<CapabilityStatement2RestResourceSearchParamComponent> getSearchParam() { 2218 if (this.searchParam == null) 2219 this.searchParam = new ArrayList<CapabilityStatement2RestResourceSearchParamComponent>(); 2220 return this.searchParam; 2221 } 2222 2223 /** 2224 * @return Returns a reference to <code>this</code> for easy method chaining 2225 */ 2226 public CapabilityStatement2RestResourceComponent setSearchParam(List<CapabilityStatement2RestResourceSearchParamComponent> theSearchParam) { 2227 this.searchParam = theSearchParam; 2228 return this; 2229 } 2230 2231 public boolean hasSearchParam() { 2232 if (this.searchParam == null) 2233 return false; 2234 for (CapabilityStatement2RestResourceSearchParamComponent item : this.searchParam) 2235 if (!item.isEmpty()) 2236 return true; 2237 return false; 2238 } 2239 2240 public CapabilityStatement2RestResourceSearchParamComponent addSearchParam() { //3 2241 CapabilityStatement2RestResourceSearchParamComponent t = new CapabilityStatement2RestResourceSearchParamComponent(); 2242 if (this.searchParam == null) 2243 this.searchParam = new ArrayList<CapabilityStatement2RestResourceSearchParamComponent>(); 2244 this.searchParam.add(t); 2245 return t; 2246 } 2247 2248 public CapabilityStatement2RestResourceComponent addSearchParam(CapabilityStatement2RestResourceSearchParamComponent t) { //3 2249 if (t == null) 2250 return this; 2251 if (this.searchParam == null) 2252 this.searchParam = new ArrayList<CapabilityStatement2RestResourceSearchParamComponent>(); 2253 this.searchParam.add(t); 2254 return this; 2255 } 2256 2257 /** 2258 * @return The first repetition of repeating field {@link #searchParam}, creating it if it does not already exist 2259 */ 2260 public CapabilityStatement2RestResourceSearchParamComponent getSearchParamFirstRep() { 2261 if (getSearchParam().isEmpty()) { 2262 addSearchParam(); 2263 } 2264 return getSearchParam().get(0); 2265 } 2266 2267 /** 2268 * @return {@link #operation} (Definition of an operation or a named query together with its parameters and their meaning and type. Consult the definition of the operation for details about how to invoke the operation, and the parameters.) 2269 */ 2270 public List<CapabilityStatement2RestResourceOperationComponent> getOperation() { 2271 if (this.operation == null) 2272 this.operation = new ArrayList<CapabilityStatement2RestResourceOperationComponent>(); 2273 return this.operation; 2274 } 2275 2276 /** 2277 * @return Returns a reference to <code>this</code> for easy method chaining 2278 */ 2279 public CapabilityStatement2RestResourceComponent setOperation(List<CapabilityStatement2RestResourceOperationComponent> theOperation) { 2280 this.operation = theOperation; 2281 return this; 2282 } 2283 2284 public boolean hasOperation() { 2285 if (this.operation == null) 2286 return false; 2287 for (CapabilityStatement2RestResourceOperationComponent item : this.operation) 2288 if (!item.isEmpty()) 2289 return true; 2290 return false; 2291 } 2292 2293 public CapabilityStatement2RestResourceOperationComponent addOperation() { //3 2294 CapabilityStatement2RestResourceOperationComponent t = new CapabilityStatement2RestResourceOperationComponent(); 2295 if (this.operation == null) 2296 this.operation = new ArrayList<CapabilityStatement2RestResourceOperationComponent>(); 2297 this.operation.add(t); 2298 return t; 2299 } 2300 2301 public CapabilityStatement2RestResourceComponent addOperation(CapabilityStatement2RestResourceOperationComponent t) { //3 2302 if (t == null) 2303 return this; 2304 if (this.operation == null) 2305 this.operation = new ArrayList<CapabilityStatement2RestResourceOperationComponent>(); 2306 this.operation.add(t); 2307 return this; 2308 } 2309 2310 /** 2311 * @return The first repetition of repeating field {@link #operation}, creating it if it does not already exist 2312 */ 2313 public CapabilityStatement2RestResourceOperationComponent getOperationFirstRep() { 2314 if (getOperation().isEmpty()) { 2315 addOperation(); 2316 } 2317 return getOperation().get(0); 2318 } 2319 2320 protected void listChildren(List<Property> children) { 2321 super.listChildren(children); 2322 children.add(new Property("type", "code", "A type of resource exposed via the restful interface.", 0, 1, type)); 2323 children.add(new Property("profile", "canonical(StructureDefinition)", "A specification of the profile that describes the solution's overall support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles](profiling.html#profile-uses).", 0, 1, profile)); 2324 children.add(new Property("supportedProfile", "canonical(StructureDefinition)", "A list of profiles that represent different use cases supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of resources that are conformant to a particular profile, and allows clients that use its services to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles](profiling.html#profile-uses).", 0, java.lang.Integer.MAX_VALUE, supportedProfile)); 2325 children.add(new Property("documentation", "markdown", "Additional information about the resource type used by the system.", 0, 1, documentation)); 2326 children.add(new Property("interaction", "", "Identifies a restful operation supported by the solution.", 0, java.lang.Integer.MAX_VALUE, interaction)); 2327 children.add(new Property("searchParam", "", "Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation.", 0, java.lang.Integer.MAX_VALUE, searchParam)); 2328 children.add(new Property("operation", "", "Definition of an operation or a named query together with its parameters and their meaning and type. Consult the definition of the operation for details about how to invoke the operation, and the parameters.", 0, java.lang.Integer.MAX_VALUE, operation)); 2329 } 2330 2331 @Override 2332 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 2333 switch (_hash) { 2334 case 3575610: /*type*/ return new Property("type", "code", "A type of resource exposed via the restful interface.", 0, 1, type); 2335 case -309425751: /*profile*/ return new Property("profile", "canonical(StructureDefinition)", "A specification of the profile that describes the solution's overall support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles](profiling.html#profile-uses).", 0, 1, profile); 2336 case 1225477403: /*supportedProfile*/ return new Property("supportedProfile", "canonical(StructureDefinition)", "A list of profiles that represent different use cases supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of resources that are conformant to a particular profile, and allows clients that use its services to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles](profiling.html#profile-uses).", 0, java.lang.Integer.MAX_VALUE, supportedProfile); 2337 case 1587405498: /*documentation*/ return new Property("documentation", "markdown", "Additional information about the resource type used by the system.", 0, 1, documentation); 2338 case 1844104722: /*interaction*/ return new Property("interaction", "", "Identifies a restful operation supported by the solution.", 0, java.lang.Integer.MAX_VALUE, interaction); 2339 case -553645115: /*searchParam*/ return new Property("searchParam", "", "Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation.", 0, java.lang.Integer.MAX_VALUE, searchParam); 2340 case 1662702951: /*operation*/ return new Property("operation", "", "Definition of an operation or a named query together with its parameters and their meaning and type. Consult the definition of the operation for details about how to invoke the operation, and the parameters.", 0, java.lang.Integer.MAX_VALUE, operation); 2341 default: return super.getNamedProperty(_hash, _name, _checkValid); 2342 } 2343 2344 } 2345 2346 @Override 2347 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 2348 switch (hash) { 2349 case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeType 2350 case -309425751: /*profile*/ return this.profile == null ? new Base[0] : new Base[] {this.profile}; // CanonicalType 2351 case 1225477403: /*supportedProfile*/ return this.supportedProfile == null ? new Base[0] : this.supportedProfile.toArray(new Base[this.supportedProfile.size()]); // CanonicalType 2352 case 1587405498: /*documentation*/ return this.documentation == null ? new Base[0] : new Base[] {this.documentation}; // MarkdownType 2353 case 1844104722: /*interaction*/ return this.interaction == null ? new Base[0] : this.interaction.toArray(new Base[this.interaction.size()]); // ResourceInteractionComponent 2354 case -553645115: /*searchParam*/ return this.searchParam == null ? new Base[0] : this.searchParam.toArray(new Base[this.searchParam.size()]); // CapabilityStatement2RestResourceSearchParamComponent 2355 case 1662702951: /*operation*/ return this.operation == null ? new Base[0] : this.operation.toArray(new Base[this.operation.size()]); // CapabilityStatement2RestResourceOperationComponent 2356 default: return super.getProperty(hash, name, checkValid); 2357 } 2358 2359 } 2360 2361 @Override 2362 public Base setProperty(int hash, String name, Base value) throws FHIRException { 2363 switch (hash) { 2364 case 3575610: // type 2365 this.type = castToCode(value); // CodeType 2366 return value; 2367 case -309425751: // profile 2368 this.profile = castToCanonical(value); // CanonicalType 2369 return value; 2370 case 1225477403: // supportedProfile 2371 this.getSupportedProfile().add(castToCanonical(value)); // CanonicalType 2372 return value; 2373 case 1587405498: // documentation 2374 this.documentation = castToMarkdown(value); // MarkdownType 2375 return value; 2376 case 1844104722: // interaction 2377 this.getInteraction().add((ResourceInteractionComponent) value); // ResourceInteractionComponent 2378 return value; 2379 case -553645115: // searchParam 2380 this.getSearchParam().add((CapabilityStatement2RestResourceSearchParamComponent) value); // CapabilityStatement2RestResourceSearchParamComponent 2381 return value; 2382 case 1662702951: // operation 2383 this.getOperation().add((CapabilityStatement2RestResourceOperationComponent) value); // CapabilityStatement2RestResourceOperationComponent 2384 return value; 2385 default: return super.setProperty(hash, name, value); 2386 } 2387 2388 } 2389 2390 @Override 2391 public Base setProperty(String name, Base value) throws FHIRException { 2392 if (name.equals("type")) { 2393 this.type = castToCode(value); // CodeType 2394 } else if (name.equals("profile")) { 2395 this.profile = castToCanonical(value); // CanonicalType 2396 } else if (name.equals("supportedProfile")) { 2397 this.getSupportedProfile().add(castToCanonical(value)); 2398 } else if (name.equals("documentation")) { 2399 this.documentation = castToMarkdown(value); // MarkdownType 2400 } else if (name.equals("interaction")) { 2401 this.getInteraction().add((ResourceInteractionComponent) value); 2402 } else if (name.equals("searchParam")) { 2403 this.getSearchParam().add((CapabilityStatement2RestResourceSearchParamComponent) value); 2404 } else if (name.equals("operation")) { 2405 this.getOperation().add((CapabilityStatement2RestResourceOperationComponent) value); 2406 } else 2407 return super.setProperty(name, value); 2408 return value; 2409 } 2410 2411 @Override 2412 public Base makeProperty(int hash, String name) throws FHIRException { 2413 switch (hash) { 2414 case 3575610: return getTypeElement(); 2415 case -309425751: return getProfileElement(); 2416 case 1225477403: return addSupportedProfileElement(); 2417 case 1587405498: return getDocumentationElement(); 2418 case 1844104722: return addInteraction(); 2419 case -553645115: return addSearchParam(); 2420 case 1662702951: return addOperation(); 2421 default: return super.makeProperty(hash, name); 2422 } 2423 2424 } 2425 2426 @Override 2427 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 2428 switch (hash) { 2429 case 3575610: /*type*/ return new String[] {"code"}; 2430 case -309425751: /*profile*/ return new String[] {"canonical"}; 2431 case 1225477403: /*supportedProfile*/ return new String[] {"canonical"}; 2432 case 1587405498: /*documentation*/ return new String[] {"markdown"}; 2433 case 1844104722: /*interaction*/ return new String[] {}; 2434 case -553645115: /*searchParam*/ return new String[] {}; 2435 case 1662702951: /*operation*/ return new String[] {}; 2436 default: return super.getTypesForProperty(hash, name); 2437 } 2438 2439 } 2440 2441 @Override 2442 public Base addChild(String name) throws FHIRException { 2443 if (name.equals("type")) { 2444 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.type"); 2445 } 2446 else if (name.equals("profile")) { 2447 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.profile"); 2448 } 2449 else if (name.equals("supportedProfile")) { 2450 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.supportedProfile"); 2451 } 2452 else if (name.equals("documentation")) { 2453 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.documentation"); 2454 } 2455 else if (name.equals("interaction")) { 2456 return addInteraction(); 2457 } 2458 else if (name.equals("searchParam")) { 2459 return addSearchParam(); 2460 } 2461 else if (name.equals("operation")) { 2462 return addOperation(); 2463 } 2464 else 2465 return super.addChild(name); 2466 } 2467 2468 public CapabilityStatement2RestResourceComponent copy() { 2469 CapabilityStatement2RestResourceComponent dst = new CapabilityStatement2RestResourceComponent(); 2470 copyValues(dst); 2471 return dst; 2472 } 2473 2474 public void copyValues(CapabilityStatement2RestResourceComponent dst) { 2475 super.copyValues(dst); 2476 dst.type = type == null ? null : type.copy(); 2477 dst.profile = profile == null ? null : profile.copy(); 2478 if (supportedProfile != null) { 2479 dst.supportedProfile = new ArrayList<CanonicalType>(); 2480 for (CanonicalType i : supportedProfile) 2481 dst.supportedProfile.add(i.copy()); 2482 }; 2483 dst.documentation = documentation == null ? null : documentation.copy(); 2484 if (interaction != null) { 2485 dst.interaction = new ArrayList<ResourceInteractionComponent>(); 2486 for (ResourceInteractionComponent i : interaction) 2487 dst.interaction.add(i.copy()); 2488 }; 2489 if (searchParam != null) { 2490 dst.searchParam = new ArrayList<CapabilityStatement2RestResourceSearchParamComponent>(); 2491 for (CapabilityStatement2RestResourceSearchParamComponent i : searchParam) 2492 dst.searchParam.add(i.copy()); 2493 }; 2494 if (operation != null) { 2495 dst.operation = new ArrayList<CapabilityStatement2RestResourceOperationComponent>(); 2496 for (CapabilityStatement2RestResourceOperationComponent i : operation) 2497 dst.operation.add(i.copy()); 2498 }; 2499 } 2500 2501 @Override 2502 public boolean equalsDeep(Base other_) { 2503 if (!super.equalsDeep(other_)) 2504 return false; 2505 if (!(other_ instanceof CapabilityStatement2RestResourceComponent)) 2506 return false; 2507 CapabilityStatement2RestResourceComponent o = (CapabilityStatement2RestResourceComponent) other_; 2508 return compareDeep(type, o.type, true) && compareDeep(profile, o.profile, true) && compareDeep(supportedProfile, o.supportedProfile, true) 2509 && compareDeep(documentation, o.documentation, true) && compareDeep(interaction, o.interaction, true) 2510 && compareDeep(searchParam, o.searchParam, true) && compareDeep(operation, o.operation, true); 2511 } 2512 2513 @Override 2514 public boolean equalsShallow(Base other_) { 2515 if (!super.equalsShallow(other_)) 2516 return false; 2517 if (!(other_ instanceof CapabilityStatement2RestResourceComponent)) 2518 return false; 2519 CapabilityStatement2RestResourceComponent o = (CapabilityStatement2RestResourceComponent) other_; 2520 return compareValues(type, o.type, true) && compareValues(documentation, o.documentation, true); 2521 } 2522 2523 public boolean isEmpty() { 2524 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, profile, supportedProfile 2525 , documentation, interaction, searchParam, operation); 2526 } 2527 2528 public String fhirType() { 2529 return "CapabilityStatement2.rest.resource"; 2530 2531 } 2532 2533 } 2534 2535 @Block() 2536 public static class ResourceInteractionComponent extends BackboneElement implements IBaseBackboneElement { 2537 /** 2538 * Coded identifier of the operation, supported by the system resource. 2539 */ 2540 @Child(name = "code", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false) 2541 @Description(shortDefinition="read | vread | update | patch | delete | history-instance | history-type | create | search-type", formalDefinition="Coded identifier of the operation, supported by the system resource." ) 2542 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/type-restful-interaction") 2543 protected Enumeration<TypeRestfulInteraction> code; 2544 2545 /** 2546 * Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only'. 2547 */ 2548 @Child(name = "documentation", type = {MarkdownType.class}, order=2, min=0, max=1, modifier=false, summary=false) 2549 @Description(shortDefinition="Anything special about operation behavior", formalDefinition="Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only'." ) 2550 protected MarkdownType documentation; 2551 2552 private static final long serialVersionUID = 2128937796L; 2553 2554 /** 2555 * Constructor 2556 */ 2557 public ResourceInteractionComponent() { 2558 super(); 2559 } 2560 2561 /** 2562 * Constructor 2563 */ 2564 public ResourceInteractionComponent(Enumeration<TypeRestfulInteraction> code) { 2565 super(); 2566 this.code = code; 2567 } 2568 2569 /** 2570 * @return {@link #code} (Coded identifier of the operation, supported by the system resource.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 2571 */ 2572 public Enumeration<TypeRestfulInteraction> getCodeElement() { 2573 if (this.code == null) 2574 if (Configuration.errorOnAutoCreate()) 2575 throw new Error("Attempt to auto-create ResourceInteractionComponent.code"); 2576 else if (Configuration.doAutoCreate()) 2577 this.code = new Enumeration<TypeRestfulInteraction>(new TypeRestfulInteractionEnumFactory()); // bb 2578 return this.code; 2579 } 2580 2581 public boolean hasCodeElement() { 2582 return this.code != null && !this.code.isEmpty(); 2583 } 2584 2585 public boolean hasCode() { 2586 return this.code != null && !this.code.isEmpty(); 2587 } 2588 2589 /** 2590 * @param value {@link #code} (Coded identifier of the operation, supported by the system resource.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 2591 */ 2592 public ResourceInteractionComponent setCodeElement(Enumeration<TypeRestfulInteraction> value) { 2593 this.code = value; 2594 return this; 2595 } 2596 2597 /** 2598 * @return Coded identifier of the operation, supported by the system resource. 2599 */ 2600 public TypeRestfulInteraction getCode() { 2601 return this.code == null ? null : this.code.getValue(); 2602 } 2603 2604 /** 2605 * @param value Coded identifier of the operation, supported by the system resource. 2606 */ 2607 public ResourceInteractionComponent setCode(TypeRestfulInteraction value) { 2608 if (this.code == null) 2609 this.code = new Enumeration<TypeRestfulInteraction>(new TypeRestfulInteractionEnumFactory()); 2610 this.code.setValue(value); 2611 return this; 2612 } 2613 2614 /** 2615 * @return {@link #documentation} (Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only'.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value 2616 */ 2617 public MarkdownType getDocumentationElement() { 2618 if (this.documentation == null) 2619 if (Configuration.errorOnAutoCreate()) 2620 throw new Error("Attempt to auto-create ResourceInteractionComponent.documentation"); 2621 else if (Configuration.doAutoCreate()) 2622 this.documentation = new MarkdownType(); // bb 2623 return this.documentation; 2624 } 2625 2626 public boolean hasDocumentationElement() { 2627 return this.documentation != null && !this.documentation.isEmpty(); 2628 } 2629 2630 public boolean hasDocumentation() { 2631 return this.documentation != null && !this.documentation.isEmpty(); 2632 } 2633 2634 /** 2635 * @param value {@link #documentation} (Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only'.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value 2636 */ 2637 public ResourceInteractionComponent setDocumentationElement(MarkdownType value) { 2638 this.documentation = value; 2639 return this; 2640 } 2641 2642 /** 2643 * @return Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only'. 2644 */ 2645 public String getDocumentation() { 2646 return this.documentation == null ? null : this.documentation.getValue(); 2647 } 2648 2649 /** 2650 * @param value Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only'. 2651 */ 2652 public ResourceInteractionComponent setDocumentation(String value) { 2653 if (value == null) 2654 this.documentation = null; 2655 else { 2656 if (this.documentation == null) 2657 this.documentation = new MarkdownType(); 2658 this.documentation.setValue(value); 2659 } 2660 return this; 2661 } 2662 2663 protected void listChildren(List<Property> children) { 2664 super.listChildren(children); 2665 children.add(new Property("code", "code", "Coded identifier of the operation, supported by the system resource.", 0, 1, code)); 2666 children.add(new Property("documentation", "markdown", "Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only'.", 0, 1, documentation)); 2667 } 2668 2669 @Override 2670 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 2671 switch (_hash) { 2672 case 3059181: /*code*/ return new Property("code", "code", "Coded identifier of the operation, supported by the system resource.", 0, 1, code); 2673 case 1587405498: /*documentation*/ return new Property("documentation", "markdown", "Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only'.", 0, 1, documentation); 2674 default: return super.getNamedProperty(_hash, _name, _checkValid); 2675 } 2676 2677 } 2678 2679 @Override 2680 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 2681 switch (hash) { 2682 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // Enumeration<TypeRestfulInteraction> 2683 case 1587405498: /*documentation*/ return this.documentation == null ? new Base[0] : new Base[] {this.documentation}; // MarkdownType 2684 default: return super.getProperty(hash, name, checkValid); 2685 } 2686 2687 } 2688 2689 @Override 2690 public Base setProperty(int hash, String name, Base value) throws FHIRException { 2691 switch (hash) { 2692 case 3059181: // code 2693 value = new TypeRestfulInteractionEnumFactory().fromType(castToCode(value)); 2694 this.code = (Enumeration) value; // Enumeration<TypeRestfulInteraction> 2695 return value; 2696 case 1587405498: // documentation 2697 this.documentation = castToMarkdown(value); // MarkdownType 2698 return value; 2699 default: return super.setProperty(hash, name, value); 2700 } 2701 2702 } 2703 2704 @Override 2705 public Base setProperty(String name, Base value) throws FHIRException { 2706 if (name.equals("code")) { 2707 value = new TypeRestfulInteractionEnumFactory().fromType(castToCode(value)); 2708 this.code = (Enumeration) value; // Enumeration<TypeRestfulInteraction> 2709 } else if (name.equals("documentation")) { 2710 this.documentation = castToMarkdown(value); // MarkdownType 2711 } else 2712 return super.setProperty(name, value); 2713 return value; 2714 } 2715 2716 @Override 2717 public Base makeProperty(int hash, String name) throws FHIRException { 2718 switch (hash) { 2719 case 3059181: return getCodeElement(); 2720 case 1587405498: return getDocumentationElement(); 2721 default: return super.makeProperty(hash, name); 2722 } 2723 2724 } 2725 2726 @Override 2727 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 2728 switch (hash) { 2729 case 3059181: /*code*/ return new String[] {"code"}; 2730 case 1587405498: /*documentation*/ return new String[] {"markdown"}; 2731 default: return super.getTypesForProperty(hash, name); 2732 } 2733 2734 } 2735 2736 @Override 2737 public Base addChild(String name) throws FHIRException { 2738 if (name.equals("code")) { 2739 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.code"); 2740 } 2741 else if (name.equals("documentation")) { 2742 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.documentation"); 2743 } 2744 else 2745 return super.addChild(name); 2746 } 2747 2748 public ResourceInteractionComponent copy() { 2749 ResourceInteractionComponent dst = new ResourceInteractionComponent(); 2750 copyValues(dst); 2751 return dst; 2752 } 2753 2754 public void copyValues(ResourceInteractionComponent dst) { 2755 super.copyValues(dst); 2756 dst.code = code == null ? null : code.copy(); 2757 dst.documentation = documentation == null ? null : documentation.copy(); 2758 } 2759 2760 @Override 2761 public boolean equalsDeep(Base other_) { 2762 if (!super.equalsDeep(other_)) 2763 return false; 2764 if (!(other_ instanceof ResourceInteractionComponent)) 2765 return false; 2766 ResourceInteractionComponent o = (ResourceInteractionComponent) other_; 2767 return compareDeep(code, o.code, true) && compareDeep(documentation, o.documentation, true); 2768 } 2769 2770 @Override 2771 public boolean equalsShallow(Base other_) { 2772 if (!super.equalsShallow(other_)) 2773 return false; 2774 if (!(other_ instanceof ResourceInteractionComponent)) 2775 return false; 2776 ResourceInteractionComponent o = (ResourceInteractionComponent) other_; 2777 return compareValues(code, o.code, true) && compareValues(documentation, o.documentation, true); 2778 } 2779 2780 public boolean isEmpty() { 2781 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, documentation); 2782 } 2783 2784 public String fhirType() { 2785 return "CapabilityStatement2.rest.resource.interaction"; 2786 2787 } 2788 2789 } 2790 2791 @Block() 2792 public static class CapabilityStatement2RestResourceSearchParamComponent extends BackboneElement implements IBaseBackboneElement { 2793 /** 2794 * The name of the search parameter used in the interface. 2795 */ 2796 @Child(name = "name", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false) 2797 @Description(shortDefinition="Name of search parameter", formalDefinition="The name of the search parameter used in the interface." ) 2798 protected StringType name; 2799 2800 /** 2801 * An absolute URI that is a formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter (a reference to [[[SearchParameter.url]]]). This element SHALL be populated if the search parameter refers to a SearchParameter defined by the FHIR core specification or externally defined IGs. 2802 */ 2803 @Child(name = "definition", type = {CanonicalType.class}, order=2, min=0, max=1, modifier=false, summary=false) 2804 @Description(shortDefinition="Source of definition for parameter", formalDefinition="An absolute URI that is a formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter (a reference to [[[SearchParameter.url]]]). This element SHALL be populated if the search parameter refers to a SearchParameter defined by the FHIR core specification or externally defined IGs." ) 2805 protected CanonicalType definition; 2806 2807 /** 2808 * The type of value a search parameter refers to, and how the content is interpreted. 2809 */ 2810 @Child(name = "type", type = {CodeType.class}, order=3, min=1, max=1, modifier=false, summary=false) 2811 @Description(shortDefinition="number | date | string | token | reference | composite | quantity | uri | special", formalDefinition="The type of value a search parameter refers to, and how the content is interpreted." ) 2812 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/search-param-type") 2813 protected Enumeration<SearchParamType> type; 2814 2815 /** 2816 * This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms. 2817 */ 2818 @Child(name = "documentation", type = {MarkdownType.class}, order=4, min=0, max=1, modifier=false, summary=false) 2819 @Description(shortDefinition="Server-specific usage", formalDefinition="This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms." ) 2820 protected MarkdownType documentation; 2821 2822 private static final long serialVersionUID = -171123928L; 2823 2824 /** 2825 * Constructor 2826 */ 2827 public CapabilityStatement2RestResourceSearchParamComponent() { 2828 super(); 2829 } 2830 2831 /** 2832 * Constructor 2833 */ 2834 public CapabilityStatement2RestResourceSearchParamComponent(StringType name, Enumeration<SearchParamType> type) { 2835 super(); 2836 this.name = name; 2837 this.type = type; 2838 } 2839 2840 /** 2841 * @return {@link #name} (The name of the search parameter used in the interface.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 2842 */ 2843 public StringType getNameElement() { 2844 if (this.name == null) 2845 if (Configuration.errorOnAutoCreate()) 2846 throw new Error("Attempt to auto-create CapabilityStatement2RestResourceSearchParamComponent.name"); 2847 else if (Configuration.doAutoCreate()) 2848 this.name = new StringType(); // bb 2849 return this.name; 2850 } 2851 2852 public boolean hasNameElement() { 2853 return this.name != null && !this.name.isEmpty(); 2854 } 2855 2856 public boolean hasName() { 2857 return this.name != null && !this.name.isEmpty(); 2858 } 2859 2860 /** 2861 * @param value {@link #name} (The name of the search parameter used in the interface.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 2862 */ 2863 public CapabilityStatement2RestResourceSearchParamComponent setNameElement(StringType value) { 2864 this.name = value; 2865 return this; 2866 } 2867 2868 /** 2869 * @return The name of the search parameter used in the interface. 2870 */ 2871 public String getName() { 2872 return this.name == null ? null : this.name.getValue(); 2873 } 2874 2875 /** 2876 * @param value The name of the search parameter used in the interface. 2877 */ 2878 public CapabilityStatement2RestResourceSearchParamComponent setName(String value) { 2879 if (this.name == null) 2880 this.name = new StringType(); 2881 this.name.setValue(value); 2882 return this; 2883 } 2884 2885 /** 2886 * @return {@link #definition} (An absolute URI that is a formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter (a reference to [[[SearchParameter.url]]]). This element SHALL be populated if the search parameter refers to a SearchParameter defined by the FHIR core specification or externally defined IGs.). This is the underlying object with id, value and extensions. The accessor "getDefinition" gives direct access to the value 2887 */ 2888 public CanonicalType getDefinitionElement() { 2889 if (this.definition == null) 2890 if (Configuration.errorOnAutoCreate()) 2891 throw new Error("Attempt to auto-create CapabilityStatement2RestResourceSearchParamComponent.definition"); 2892 else if (Configuration.doAutoCreate()) 2893 this.definition = new CanonicalType(); // bb 2894 return this.definition; 2895 } 2896 2897 public boolean hasDefinitionElement() { 2898 return this.definition != null && !this.definition.isEmpty(); 2899 } 2900 2901 public boolean hasDefinition() { 2902 return this.definition != null && !this.definition.isEmpty(); 2903 } 2904 2905 /** 2906 * @param value {@link #definition} (An absolute URI that is a formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter (a reference to [[[SearchParameter.url]]]). This element SHALL be populated if the search parameter refers to a SearchParameter defined by the FHIR core specification or externally defined IGs.). This is the underlying object with id, value and extensions. The accessor "getDefinition" gives direct access to the value 2907 */ 2908 public CapabilityStatement2RestResourceSearchParamComponent setDefinitionElement(CanonicalType value) { 2909 this.definition = value; 2910 return this; 2911 } 2912 2913 /** 2914 * @return An absolute URI that is a formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter (a reference to [[[SearchParameter.url]]]). This element SHALL be populated if the search parameter refers to a SearchParameter defined by the FHIR core specification or externally defined IGs. 2915 */ 2916 public String getDefinition() { 2917 return this.definition == null ? null : this.definition.getValue(); 2918 } 2919 2920 /** 2921 * @param value An absolute URI that is a formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter (a reference to [[[SearchParameter.url]]]). This element SHALL be populated if the search parameter refers to a SearchParameter defined by the FHIR core specification or externally defined IGs. 2922 */ 2923 public CapabilityStatement2RestResourceSearchParamComponent setDefinition(String value) { 2924 if (Utilities.noString(value)) 2925 this.definition = null; 2926 else { 2927 if (this.definition == null) 2928 this.definition = new CanonicalType(); 2929 this.definition.setValue(value); 2930 } 2931 return this; 2932 } 2933 2934 /** 2935 * @return {@link #type} (The type of value a search parameter refers to, and how the content is interpreted.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value 2936 */ 2937 public Enumeration<SearchParamType> getTypeElement() { 2938 if (this.type == null) 2939 if (Configuration.errorOnAutoCreate()) 2940 throw new Error("Attempt to auto-create CapabilityStatement2RestResourceSearchParamComponent.type"); 2941 else if (Configuration.doAutoCreate()) 2942 this.type = new Enumeration<SearchParamType>(new SearchParamTypeEnumFactory()); // bb 2943 return this.type; 2944 } 2945 2946 public boolean hasTypeElement() { 2947 return this.type != null && !this.type.isEmpty(); 2948 } 2949 2950 public boolean hasType() { 2951 return this.type != null && !this.type.isEmpty(); 2952 } 2953 2954 /** 2955 * @param value {@link #type} (The type of value a search parameter refers to, and how the content is interpreted.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value 2956 */ 2957 public CapabilityStatement2RestResourceSearchParamComponent setTypeElement(Enumeration<SearchParamType> value) { 2958 this.type = value; 2959 return this; 2960 } 2961 2962 /** 2963 * @return The type of value a search parameter refers to, and how the content is interpreted. 2964 */ 2965 public SearchParamType getType() { 2966 return this.type == null ? null : this.type.getValue(); 2967 } 2968 2969 /** 2970 * @param value The type of value a search parameter refers to, and how the content is interpreted. 2971 */ 2972 public CapabilityStatement2RestResourceSearchParamComponent setType(SearchParamType value) { 2973 if (this.type == null) 2974 this.type = new Enumeration<SearchParamType>(new SearchParamTypeEnumFactory()); 2975 this.type.setValue(value); 2976 return this; 2977 } 2978 2979 /** 2980 * @return {@link #documentation} (This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value 2981 */ 2982 public MarkdownType getDocumentationElement() { 2983 if (this.documentation == null) 2984 if (Configuration.errorOnAutoCreate()) 2985 throw new Error("Attempt to auto-create CapabilityStatement2RestResourceSearchParamComponent.documentation"); 2986 else if (Configuration.doAutoCreate()) 2987 this.documentation = new MarkdownType(); // bb 2988 return this.documentation; 2989 } 2990 2991 public boolean hasDocumentationElement() { 2992 return this.documentation != null && !this.documentation.isEmpty(); 2993 } 2994 2995 public boolean hasDocumentation() { 2996 return this.documentation != null && !this.documentation.isEmpty(); 2997 } 2998 2999 /** 3000 * @param value {@link #documentation} (This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value 3001 */ 3002 public CapabilityStatement2RestResourceSearchParamComponent setDocumentationElement(MarkdownType value) { 3003 this.documentation = value; 3004 return this; 3005 } 3006 3007 /** 3008 * @return This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms. 3009 */ 3010 public String getDocumentation() { 3011 return this.documentation == null ? null : this.documentation.getValue(); 3012 } 3013 3014 /** 3015 * @param value This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms. 3016 */ 3017 public CapabilityStatement2RestResourceSearchParamComponent setDocumentation(String value) { 3018 if (value == null) 3019 this.documentation = null; 3020 else { 3021 if (this.documentation == null) 3022 this.documentation = new MarkdownType(); 3023 this.documentation.setValue(value); 3024 } 3025 return this; 3026 } 3027 3028 protected void listChildren(List<Property> children) { 3029 super.listChildren(children); 3030 children.add(new Property("name", "string", "The name of the search parameter used in the interface.", 0, 1, name)); 3031 children.add(new Property("definition", "canonical(SearchParameter)", "An absolute URI that is a formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter (a reference to [[[SearchParameter.url]]]). This element SHALL be populated if the search parameter refers to a SearchParameter defined by the FHIR core specification or externally defined IGs.", 0, 1, definition)); 3032 children.add(new Property("type", "code", "The type of value a search parameter refers to, and how the content is interpreted.", 0, 1, type)); 3033 children.add(new Property("documentation", "markdown", "This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms.", 0, 1, documentation)); 3034 } 3035 3036 @Override 3037 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 3038 switch (_hash) { 3039 case 3373707: /*name*/ return new Property("name", "string", "The name of the search parameter used in the interface.", 0, 1, name); 3040 case -1014418093: /*definition*/ return new Property("definition", "canonical(SearchParameter)", "An absolute URI that is a formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter (a reference to [[[SearchParameter.url]]]). This element SHALL be populated if the search parameter refers to a SearchParameter defined by the FHIR core specification or externally defined IGs.", 0, 1, definition); 3041 case 3575610: /*type*/ return new Property("type", "code", "The type of value a search parameter refers to, and how the content is interpreted.", 0, 1, type); 3042 case 1587405498: /*documentation*/ return new Property("documentation", "markdown", "This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms.", 0, 1, documentation); 3043 default: return super.getNamedProperty(_hash, _name, _checkValid); 3044 } 3045 3046 } 3047 3048 @Override 3049 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 3050 switch (hash) { 3051 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType 3052 case -1014418093: /*definition*/ return this.definition == null ? new Base[0] : new Base[] {this.definition}; // CanonicalType 3053 case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // Enumeration<SearchParamType> 3054 case 1587405498: /*documentation*/ return this.documentation == null ? new Base[0] : new Base[] {this.documentation}; // MarkdownType 3055 default: return super.getProperty(hash, name, checkValid); 3056 } 3057 3058 } 3059 3060 @Override 3061 public Base setProperty(int hash, String name, Base value) throws FHIRException { 3062 switch (hash) { 3063 case 3373707: // name 3064 this.name = castToString(value); // StringType 3065 return value; 3066 case -1014418093: // definition 3067 this.definition = castToCanonical(value); // CanonicalType 3068 return value; 3069 case 3575610: // type 3070 value = new SearchParamTypeEnumFactory().fromType(castToCode(value)); 3071 this.type = (Enumeration) value; // Enumeration<SearchParamType> 3072 return value; 3073 case 1587405498: // documentation 3074 this.documentation = castToMarkdown(value); // MarkdownType 3075 return value; 3076 default: return super.setProperty(hash, name, value); 3077 } 3078 3079 } 3080 3081 @Override 3082 public Base setProperty(String name, Base value) throws FHIRException { 3083 if (name.equals("name")) { 3084 this.name = castToString(value); // StringType 3085 } else if (name.equals("definition")) { 3086 this.definition = castToCanonical(value); // CanonicalType 3087 } else if (name.equals("type")) { 3088 value = new SearchParamTypeEnumFactory().fromType(castToCode(value)); 3089 this.type = (Enumeration) value; // Enumeration<SearchParamType> 3090 } else if (name.equals("documentation")) { 3091 this.documentation = castToMarkdown(value); // MarkdownType 3092 } else 3093 return super.setProperty(name, value); 3094 return value; 3095 } 3096 3097 @Override 3098 public Base makeProperty(int hash, String name) throws FHIRException { 3099 switch (hash) { 3100 case 3373707: return getNameElement(); 3101 case -1014418093: return getDefinitionElement(); 3102 case 3575610: return getTypeElement(); 3103 case 1587405498: return getDocumentationElement(); 3104 default: return super.makeProperty(hash, name); 3105 } 3106 3107 } 3108 3109 @Override 3110 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 3111 switch (hash) { 3112 case 3373707: /*name*/ return new String[] {"string"}; 3113 case -1014418093: /*definition*/ return new String[] {"canonical"}; 3114 case 3575610: /*type*/ return new String[] {"code"}; 3115 case 1587405498: /*documentation*/ return new String[] {"markdown"}; 3116 default: return super.getTypesForProperty(hash, name); 3117 } 3118 3119 } 3120 3121 @Override 3122 public Base addChild(String name) throws FHIRException { 3123 if (name.equals("name")) { 3124 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.name"); 3125 } 3126 else if (name.equals("definition")) { 3127 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.definition"); 3128 } 3129 else if (name.equals("type")) { 3130 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.type"); 3131 } 3132 else if (name.equals("documentation")) { 3133 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.documentation"); 3134 } 3135 else 3136 return super.addChild(name); 3137 } 3138 3139 public CapabilityStatement2RestResourceSearchParamComponent copy() { 3140 CapabilityStatement2RestResourceSearchParamComponent dst = new CapabilityStatement2RestResourceSearchParamComponent(); 3141 copyValues(dst); 3142 return dst; 3143 } 3144 3145 public void copyValues(CapabilityStatement2RestResourceSearchParamComponent dst) { 3146 super.copyValues(dst); 3147 dst.name = name == null ? null : name.copy(); 3148 dst.definition = definition == null ? null : definition.copy(); 3149 dst.type = type == null ? null : type.copy(); 3150 dst.documentation = documentation == null ? null : documentation.copy(); 3151 } 3152 3153 @Override 3154 public boolean equalsDeep(Base other_) { 3155 if (!super.equalsDeep(other_)) 3156 return false; 3157 if (!(other_ instanceof CapabilityStatement2RestResourceSearchParamComponent)) 3158 return false; 3159 CapabilityStatement2RestResourceSearchParamComponent o = (CapabilityStatement2RestResourceSearchParamComponent) other_; 3160 return compareDeep(name, o.name, true) && compareDeep(definition, o.definition, true) && compareDeep(type, o.type, true) 3161 && compareDeep(documentation, o.documentation, true); 3162 } 3163 3164 @Override 3165 public boolean equalsShallow(Base other_) { 3166 if (!super.equalsShallow(other_)) 3167 return false; 3168 if (!(other_ instanceof CapabilityStatement2RestResourceSearchParamComponent)) 3169 return false; 3170 CapabilityStatement2RestResourceSearchParamComponent o = (CapabilityStatement2RestResourceSearchParamComponent) other_; 3171 return compareValues(name, o.name, true) && compareValues(type, o.type, true) && compareValues(documentation, o.documentation, true) 3172 ; 3173 } 3174 3175 public boolean isEmpty() { 3176 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, definition, type, documentation 3177 ); 3178 } 3179 3180 public String fhirType() { 3181 return "CapabilityStatement2.rest.resource.searchParam"; 3182 3183 } 3184 3185 } 3186 3187 @Block() 3188 public static class CapabilityStatement2RestResourceOperationComponent extends BackboneElement implements IBaseBackboneElement { 3189 /** 3190 * The name of the operation or query. For an operation, this is the name prefixed with $ and used in the URL. For a query, this is the name used in the _query parameter when the query is called. 3191 */ 3192 @Child(name = "name", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=true) 3193 @Description(shortDefinition="Name by which the operation/query is invoked", formalDefinition="The name of the operation or query. For an operation, this is the name prefixed with $ and used in the URL. For a query, this is the name used in the _query parameter when the query is called." ) 3194 protected StringType name; 3195 3196 /** 3197 * Where the formal definition can be found. If a server references the base definition of an Operation (i.e. from the specification itself such as ```http://hl7.org/fhir/OperationDefinition/ValueSet-expand```), that means it supports the full capabilities of the operation - e.g. both GET and POST invocation. If it only supports a subset, it must define its own custom [[[OperationDefinition]]] with a 'base' of the original OperationDefinition. The custom definition would describe the specific subset of functionality supported. 3198 */ 3199 @Child(name = "definition", type = {CanonicalType.class}, order=2, min=1, max=1, modifier=false, summary=true) 3200 @Description(shortDefinition="The defined operation/query", formalDefinition="Where the formal definition can be found. If a server references the base definition of an Operation (i.e. from the specification itself such as ```http://hl7.org/fhir/OperationDefinition/ValueSet-expand```), that means it supports the full capabilities of the operation - e.g. both GET and POST invocation. If it only supports a subset, it must define its own custom [[[OperationDefinition]]] with a 'base' of the original OperationDefinition. The custom definition would describe the specific subset of functionality supported." ) 3201 protected CanonicalType definition; 3202 3203 /** 3204 * Documentation that describes anything special about the operation behavior, possibly detailing different behavior for system, type and instance-level invocation of the operation. 3205 */ 3206 @Child(name = "documentation", type = {MarkdownType.class}, order=3, min=0, max=1, modifier=false, summary=false) 3207 @Description(shortDefinition="Specific details about operation behavior", formalDefinition="Documentation that describes anything special about the operation behavior, possibly detailing different behavior for system, type and instance-level invocation of the operation." ) 3208 protected MarkdownType documentation; 3209 3210 private static final long serialVersionUID = -388608084L; 3211 3212 /** 3213 * Constructor 3214 */ 3215 public CapabilityStatement2RestResourceOperationComponent() { 3216 super(); 3217 } 3218 3219 /** 3220 * Constructor 3221 */ 3222 public CapabilityStatement2RestResourceOperationComponent(StringType name, CanonicalType definition) { 3223 super(); 3224 this.name = name; 3225 this.definition = definition; 3226 } 3227 3228 /** 3229 * @return {@link #name} (The name of the operation or query. For an operation, this is the name prefixed with $ and used in the URL. For a query, this is the name used in the _query parameter when the query is called.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 3230 */ 3231 public StringType getNameElement() { 3232 if (this.name == null) 3233 if (Configuration.errorOnAutoCreate()) 3234 throw new Error("Attempt to auto-create CapabilityStatement2RestResourceOperationComponent.name"); 3235 else if (Configuration.doAutoCreate()) 3236 this.name = new StringType(); // bb 3237 return this.name; 3238 } 3239 3240 public boolean hasNameElement() { 3241 return this.name != null && !this.name.isEmpty(); 3242 } 3243 3244 public boolean hasName() { 3245 return this.name != null && !this.name.isEmpty(); 3246 } 3247 3248 /** 3249 * @param value {@link #name} (The name of the operation or query. For an operation, this is the name prefixed with $ and used in the URL. For a query, this is the name used in the _query parameter when the query is called.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 3250 */ 3251 public CapabilityStatement2RestResourceOperationComponent setNameElement(StringType value) { 3252 this.name = value; 3253 return this; 3254 } 3255 3256 /** 3257 * @return The name of the operation or query. For an operation, this is the name prefixed with $ and used in the URL. For a query, this is the name used in the _query parameter when the query is called. 3258 */ 3259 public String getName() { 3260 return this.name == null ? null : this.name.getValue(); 3261 } 3262 3263 /** 3264 * @param value The name of the operation or query. For an operation, this is the name prefixed with $ and used in the URL. For a query, this is the name used in the _query parameter when the query is called. 3265 */ 3266 public CapabilityStatement2RestResourceOperationComponent setName(String value) { 3267 if (this.name == null) 3268 this.name = new StringType(); 3269 this.name.setValue(value); 3270 return this; 3271 } 3272 3273 /** 3274 * @return {@link #definition} (Where the formal definition can be found. If a server references the base definition of an Operation (i.e. from the specification itself such as ```http://hl7.org/fhir/OperationDefinition/ValueSet-expand```), that means it supports the full capabilities of the operation - e.g. both GET and POST invocation. If it only supports a subset, it must define its own custom [[[OperationDefinition]]] with a 'base' of the original OperationDefinition. The custom definition would describe the specific subset of functionality supported.). This is the underlying object with id, value and extensions. The accessor "getDefinition" gives direct access to the value 3275 */ 3276 public CanonicalType getDefinitionElement() { 3277 if (this.definition == null) 3278 if (Configuration.errorOnAutoCreate()) 3279 throw new Error("Attempt to auto-create CapabilityStatement2RestResourceOperationComponent.definition"); 3280 else if (Configuration.doAutoCreate()) 3281 this.definition = new CanonicalType(); // bb 3282 return this.definition; 3283 } 3284 3285 public boolean hasDefinitionElement() { 3286 return this.definition != null && !this.definition.isEmpty(); 3287 } 3288 3289 public boolean hasDefinition() { 3290 return this.definition != null && !this.definition.isEmpty(); 3291 } 3292 3293 /** 3294 * @param value {@link #definition} (Where the formal definition can be found. If a server references the base definition of an Operation (i.e. from the specification itself such as ```http://hl7.org/fhir/OperationDefinition/ValueSet-expand```), that means it supports the full capabilities of the operation - e.g. both GET and POST invocation. If it only supports a subset, it must define its own custom [[[OperationDefinition]]] with a 'base' of the original OperationDefinition. The custom definition would describe the specific subset of functionality supported.). This is the underlying object with id, value and extensions. The accessor "getDefinition" gives direct access to the value 3295 */ 3296 public CapabilityStatement2RestResourceOperationComponent setDefinitionElement(CanonicalType value) { 3297 this.definition = value; 3298 return this; 3299 } 3300 3301 /** 3302 * @return Where the formal definition can be found. If a server references the base definition of an Operation (i.e. from the specification itself such as ```http://hl7.org/fhir/OperationDefinition/ValueSet-expand```), that means it supports the full capabilities of the operation - e.g. both GET and POST invocation. If it only supports a subset, it must define its own custom [[[OperationDefinition]]] with a 'base' of the original OperationDefinition. The custom definition would describe the specific subset of functionality supported. 3303 */ 3304 public String getDefinition() { 3305 return this.definition == null ? null : this.definition.getValue(); 3306 } 3307 3308 /** 3309 * @param value Where the formal definition can be found. If a server references the base definition of an Operation (i.e. from the specification itself such as ```http://hl7.org/fhir/OperationDefinition/ValueSet-expand```), that means it supports the full capabilities of the operation - e.g. both GET and POST invocation. If it only supports a subset, it must define its own custom [[[OperationDefinition]]] with a 'base' of the original OperationDefinition. The custom definition would describe the specific subset of functionality supported. 3310 */ 3311 public CapabilityStatement2RestResourceOperationComponent setDefinition(String value) { 3312 if (this.definition == null) 3313 this.definition = new CanonicalType(); 3314 this.definition.setValue(value); 3315 return this; 3316 } 3317 3318 /** 3319 * @return {@link #documentation} (Documentation that describes anything special about the operation behavior, possibly detailing different behavior for system, type and instance-level invocation of the operation.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value 3320 */ 3321 public MarkdownType getDocumentationElement() { 3322 if (this.documentation == null) 3323 if (Configuration.errorOnAutoCreate()) 3324 throw new Error("Attempt to auto-create CapabilityStatement2RestResourceOperationComponent.documentation"); 3325 else if (Configuration.doAutoCreate()) 3326 this.documentation = new MarkdownType(); // bb 3327 return this.documentation; 3328 } 3329 3330 public boolean hasDocumentationElement() { 3331 return this.documentation != null && !this.documentation.isEmpty(); 3332 } 3333 3334 public boolean hasDocumentation() { 3335 return this.documentation != null && !this.documentation.isEmpty(); 3336 } 3337 3338 /** 3339 * @param value {@link #documentation} (Documentation that describes anything special about the operation behavior, possibly detailing different behavior for system, type and instance-level invocation of the operation.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value 3340 */ 3341 public CapabilityStatement2RestResourceOperationComponent setDocumentationElement(MarkdownType value) { 3342 this.documentation = value; 3343 return this; 3344 } 3345 3346 /** 3347 * @return Documentation that describes anything special about the operation behavior, possibly detailing different behavior for system, type and instance-level invocation of the operation. 3348 */ 3349 public String getDocumentation() { 3350 return this.documentation == null ? null : this.documentation.getValue(); 3351 } 3352 3353 /** 3354 * @param value Documentation that describes anything special about the operation behavior, possibly detailing different behavior for system, type and instance-level invocation of the operation. 3355 */ 3356 public CapabilityStatement2RestResourceOperationComponent setDocumentation(String value) { 3357 if (value == null) 3358 this.documentation = null; 3359 else { 3360 if (this.documentation == null) 3361 this.documentation = new MarkdownType(); 3362 this.documentation.setValue(value); 3363 } 3364 return this; 3365 } 3366 3367 protected void listChildren(List<Property> children) { 3368 super.listChildren(children); 3369 children.add(new Property("name", "string", "The name of the operation or query. For an operation, this is the name prefixed with $ and used in the URL. For a query, this is the name used in the _query parameter when the query is called.", 0, 1, name)); 3370 children.add(new Property("definition", "canonical(OperationDefinition)", "Where the formal definition can be found. If a server references the base definition of an Operation (i.e. from the specification itself such as ```http://hl7.org/fhir/OperationDefinition/ValueSet-expand```), that means it supports the full capabilities of the operation - e.g. both GET and POST invocation. If it only supports a subset, it must define its own custom [[[OperationDefinition]]] with a 'base' of the original OperationDefinition. The custom definition would describe the specific subset of functionality supported.", 0, 1, definition)); 3371 children.add(new Property("documentation", "markdown", "Documentation that describes anything special about the operation behavior, possibly detailing different behavior for system, type and instance-level invocation of the operation.", 0, 1, documentation)); 3372 } 3373 3374 @Override 3375 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 3376 switch (_hash) { 3377 case 3373707: /*name*/ return new Property("name", "string", "The name of the operation or query. For an operation, this is the name prefixed with $ and used in the URL. For a query, this is the name used in the _query parameter when the query is called.", 0, 1, name); 3378 case -1014418093: /*definition*/ return new Property("definition", "canonical(OperationDefinition)", "Where the formal definition can be found. If a server references the base definition of an Operation (i.e. from the specification itself such as ```http://hl7.org/fhir/OperationDefinition/ValueSet-expand```), that means it supports the full capabilities of the operation - e.g. both GET and POST invocation. If it only supports a subset, it must define its own custom [[[OperationDefinition]]] with a 'base' of the original OperationDefinition. The custom definition would describe the specific subset of functionality supported.", 0, 1, definition); 3379 case 1587405498: /*documentation*/ return new Property("documentation", "markdown", "Documentation that describes anything special about the operation behavior, possibly detailing different behavior for system, type and instance-level invocation of the operation.", 0, 1, documentation); 3380 default: return super.getNamedProperty(_hash, _name, _checkValid); 3381 } 3382 3383 } 3384 3385 @Override 3386 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 3387 switch (hash) { 3388 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType 3389 case -1014418093: /*definition*/ return this.definition == null ? new Base[0] : new Base[] {this.definition}; // CanonicalType 3390 case 1587405498: /*documentation*/ return this.documentation == null ? new Base[0] : new Base[] {this.documentation}; // MarkdownType 3391 default: return super.getProperty(hash, name, checkValid); 3392 } 3393 3394 } 3395 3396 @Override 3397 public Base setProperty(int hash, String name, Base value) throws FHIRException { 3398 switch (hash) { 3399 case 3373707: // name 3400 this.name = castToString(value); // StringType 3401 return value; 3402 case -1014418093: // definition 3403 this.definition = castToCanonical(value); // CanonicalType 3404 return value; 3405 case 1587405498: // documentation 3406 this.documentation = castToMarkdown(value); // MarkdownType 3407 return value; 3408 default: return super.setProperty(hash, name, value); 3409 } 3410 3411 } 3412 3413 @Override 3414 public Base setProperty(String name, Base value) throws FHIRException { 3415 if (name.equals("name")) { 3416 this.name = castToString(value); // StringType 3417 } else if (name.equals("definition")) { 3418 this.definition = castToCanonical(value); // CanonicalType 3419 } else if (name.equals("documentation")) { 3420 this.documentation = castToMarkdown(value); // MarkdownType 3421 } else 3422 return super.setProperty(name, value); 3423 return value; 3424 } 3425 3426 @Override 3427 public Base makeProperty(int hash, String name) throws FHIRException { 3428 switch (hash) { 3429 case 3373707: return getNameElement(); 3430 case -1014418093: return getDefinitionElement(); 3431 case 1587405498: return getDocumentationElement(); 3432 default: return super.makeProperty(hash, name); 3433 } 3434 3435 } 3436 3437 @Override 3438 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 3439 switch (hash) { 3440 case 3373707: /*name*/ return new String[] {"string"}; 3441 case -1014418093: /*definition*/ return new String[] {"canonical"}; 3442 case 1587405498: /*documentation*/ return new String[] {"markdown"}; 3443 default: return super.getTypesForProperty(hash, name); 3444 } 3445 3446 } 3447 3448 @Override 3449 public Base addChild(String name) throws FHIRException { 3450 if (name.equals("name")) { 3451 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.name"); 3452 } 3453 else if (name.equals("definition")) { 3454 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.definition"); 3455 } 3456 else if (name.equals("documentation")) { 3457 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.documentation"); 3458 } 3459 else 3460 return super.addChild(name); 3461 } 3462 3463 public CapabilityStatement2RestResourceOperationComponent copy() { 3464 CapabilityStatement2RestResourceOperationComponent dst = new CapabilityStatement2RestResourceOperationComponent(); 3465 copyValues(dst); 3466 return dst; 3467 } 3468 3469 public void copyValues(CapabilityStatement2RestResourceOperationComponent dst) { 3470 super.copyValues(dst); 3471 dst.name = name == null ? null : name.copy(); 3472 dst.definition = definition == null ? null : definition.copy(); 3473 dst.documentation = documentation == null ? null : documentation.copy(); 3474 } 3475 3476 @Override 3477 public boolean equalsDeep(Base other_) { 3478 if (!super.equalsDeep(other_)) 3479 return false; 3480 if (!(other_ instanceof CapabilityStatement2RestResourceOperationComponent)) 3481 return false; 3482 CapabilityStatement2RestResourceOperationComponent o = (CapabilityStatement2RestResourceOperationComponent) other_; 3483 return compareDeep(name, o.name, true) && compareDeep(definition, o.definition, true) && compareDeep(documentation, o.documentation, true) 3484 ; 3485 } 3486 3487 @Override 3488 public boolean equalsShallow(Base other_) { 3489 if (!super.equalsShallow(other_)) 3490 return false; 3491 if (!(other_ instanceof CapabilityStatement2RestResourceOperationComponent)) 3492 return false; 3493 CapabilityStatement2RestResourceOperationComponent o = (CapabilityStatement2RestResourceOperationComponent) other_; 3494 return compareValues(name, o.name, true) && compareValues(documentation, o.documentation, true); 3495 } 3496 3497 public boolean isEmpty() { 3498 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, definition, documentation 3499 ); 3500 } 3501 3502 public String fhirType() { 3503 return "CapabilityStatement2.rest.resource.operation"; 3504 3505 } 3506 3507 } 3508 3509 @Block() 3510 public static class SystemInteractionComponent extends BackboneElement implements IBaseBackboneElement { 3511 /** 3512 * A coded identifier of the operation, supported by the system. 3513 */ 3514 @Child(name = "code", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false) 3515 @Description(shortDefinition="transaction | batch | search-system | history-system", formalDefinition="A coded identifier of the operation, supported by the system." ) 3516 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/system-restful-interaction") 3517 protected Enumeration<SystemRestfulInteraction> code; 3518 3519 /** 3520 * Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented. 3521 */ 3522 @Child(name = "documentation", type = {MarkdownType.class}, order=2, min=0, max=1, modifier=false, summary=false) 3523 @Description(shortDefinition="Anything special about operation behavior", formalDefinition="Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented." ) 3524 protected MarkdownType documentation; 3525 3526 private static final long serialVersionUID = -1495143879L; 3527 3528 /** 3529 * Constructor 3530 */ 3531 public SystemInteractionComponent() { 3532 super(); 3533 } 3534 3535 /** 3536 * Constructor 3537 */ 3538 public SystemInteractionComponent(Enumeration<SystemRestfulInteraction> code) { 3539 super(); 3540 this.code = code; 3541 } 3542 3543 /** 3544 * @return {@link #code} (A coded identifier of the operation, supported by the system.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 3545 */ 3546 public Enumeration<SystemRestfulInteraction> getCodeElement() { 3547 if (this.code == null) 3548 if (Configuration.errorOnAutoCreate()) 3549 throw new Error("Attempt to auto-create SystemInteractionComponent.code"); 3550 else if (Configuration.doAutoCreate()) 3551 this.code = new Enumeration<SystemRestfulInteraction>(new SystemRestfulInteractionEnumFactory()); // bb 3552 return this.code; 3553 } 3554 3555 public boolean hasCodeElement() { 3556 return this.code != null && !this.code.isEmpty(); 3557 } 3558 3559 public boolean hasCode() { 3560 return this.code != null && !this.code.isEmpty(); 3561 } 3562 3563 /** 3564 * @param value {@link #code} (A coded identifier of the operation, supported by the system.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 3565 */ 3566 public SystemInteractionComponent setCodeElement(Enumeration<SystemRestfulInteraction> value) { 3567 this.code = value; 3568 return this; 3569 } 3570 3571 /** 3572 * @return A coded identifier of the operation, supported by the system. 3573 */ 3574 public SystemRestfulInteraction getCode() { 3575 return this.code == null ? null : this.code.getValue(); 3576 } 3577 3578 /** 3579 * @param value A coded identifier of the operation, supported by the system. 3580 */ 3581 public SystemInteractionComponent setCode(SystemRestfulInteraction value) { 3582 if (this.code == null) 3583 this.code = new Enumeration<SystemRestfulInteraction>(new SystemRestfulInteractionEnumFactory()); 3584 this.code.setValue(value); 3585 return this; 3586 } 3587 3588 /** 3589 * @return {@link #documentation} (Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value 3590 */ 3591 public MarkdownType getDocumentationElement() { 3592 if (this.documentation == null) 3593 if (Configuration.errorOnAutoCreate()) 3594 throw new Error("Attempt to auto-create SystemInteractionComponent.documentation"); 3595 else if (Configuration.doAutoCreate()) 3596 this.documentation = new MarkdownType(); // bb 3597 return this.documentation; 3598 } 3599 3600 public boolean hasDocumentationElement() { 3601 return this.documentation != null && !this.documentation.isEmpty(); 3602 } 3603 3604 public boolean hasDocumentation() { 3605 return this.documentation != null && !this.documentation.isEmpty(); 3606 } 3607 3608 /** 3609 * @param value {@link #documentation} (Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value 3610 */ 3611 public SystemInteractionComponent setDocumentationElement(MarkdownType value) { 3612 this.documentation = value; 3613 return this; 3614 } 3615 3616 /** 3617 * @return Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented. 3618 */ 3619 public String getDocumentation() { 3620 return this.documentation == null ? null : this.documentation.getValue(); 3621 } 3622 3623 /** 3624 * @param value Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented. 3625 */ 3626 public SystemInteractionComponent setDocumentation(String value) { 3627 if (value == null) 3628 this.documentation = null; 3629 else { 3630 if (this.documentation == null) 3631 this.documentation = new MarkdownType(); 3632 this.documentation.setValue(value); 3633 } 3634 return this; 3635 } 3636 3637 protected void listChildren(List<Property> children) { 3638 super.listChildren(children); 3639 children.add(new Property("code", "code", "A coded identifier of the operation, supported by the system.", 0, 1, code)); 3640 children.add(new Property("documentation", "markdown", "Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented.", 0, 1, documentation)); 3641 } 3642 3643 @Override 3644 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 3645 switch (_hash) { 3646 case 3059181: /*code*/ return new Property("code", "code", "A coded identifier of the operation, supported by the system.", 0, 1, code); 3647 case 1587405498: /*documentation*/ return new Property("documentation", "markdown", "Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented.", 0, 1, documentation); 3648 default: return super.getNamedProperty(_hash, _name, _checkValid); 3649 } 3650 3651 } 3652 3653 @Override 3654 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 3655 switch (hash) { 3656 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // Enumeration<SystemRestfulInteraction> 3657 case 1587405498: /*documentation*/ return this.documentation == null ? new Base[0] : new Base[] {this.documentation}; // MarkdownType 3658 default: return super.getProperty(hash, name, checkValid); 3659 } 3660 3661 } 3662 3663 @Override 3664 public Base setProperty(int hash, String name, Base value) throws FHIRException { 3665 switch (hash) { 3666 case 3059181: // code 3667 value = new SystemRestfulInteractionEnumFactory().fromType(castToCode(value)); 3668 this.code = (Enumeration) value; // Enumeration<SystemRestfulInteraction> 3669 return value; 3670 case 1587405498: // documentation 3671 this.documentation = castToMarkdown(value); // MarkdownType 3672 return value; 3673 default: return super.setProperty(hash, name, value); 3674 } 3675 3676 } 3677 3678 @Override 3679 public Base setProperty(String name, Base value) throws FHIRException { 3680 if (name.equals("code")) { 3681 value = new SystemRestfulInteractionEnumFactory().fromType(castToCode(value)); 3682 this.code = (Enumeration) value; // Enumeration<SystemRestfulInteraction> 3683 } else if (name.equals("documentation")) { 3684 this.documentation = castToMarkdown(value); // MarkdownType 3685 } else 3686 return super.setProperty(name, value); 3687 return value; 3688 } 3689 3690 @Override 3691 public Base makeProperty(int hash, String name) throws FHIRException { 3692 switch (hash) { 3693 case 3059181: return getCodeElement(); 3694 case 1587405498: return getDocumentationElement(); 3695 default: return super.makeProperty(hash, name); 3696 } 3697 3698 } 3699 3700 @Override 3701 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 3702 switch (hash) { 3703 case 3059181: /*code*/ return new String[] {"code"}; 3704 case 1587405498: /*documentation*/ return new String[] {"markdown"}; 3705 default: return super.getTypesForProperty(hash, name); 3706 } 3707 3708 } 3709 3710 @Override 3711 public Base addChild(String name) throws FHIRException { 3712 if (name.equals("code")) { 3713 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.code"); 3714 } 3715 else if (name.equals("documentation")) { 3716 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.documentation"); 3717 } 3718 else 3719 return super.addChild(name); 3720 } 3721 3722 public SystemInteractionComponent copy() { 3723 SystemInteractionComponent dst = new SystemInteractionComponent(); 3724 copyValues(dst); 3725 return dst; 3726 } 3727 3728 public void copyValues(SystemInteractionComponent dst) { 3729 super.copyValues(dst); 3730 dst.code = code == null ? null : code.copy(); 3731 dst.documentation = documentation == null ? null : documentation.copy(); 3732 } 3733 3734 @Override 3735 public boolean equalsDeep(Base other_) { 3736 if (!super.equalsDeep(other_)) 3737 return false; 3738 if (!(other_ instanceof SystemInteractionComponent)) 3739 return false; 3740 SystemInteractionComponent o = (SystemInteractionComponent) other_; 3741 return compareDeep(code, o.code, true) && compareDeep(documentation, o.documentation, true); 3742 } 3743 3744 @Override 3745 public boolean equalsShallow(Base other_) { 3746 if (!super.equalsShallow(other_)) 3747 return false; 3748 if (!(other_ instanceof SystemInteractionComponent)) 3749 return false; 3750 SystemInteractionComponent o = (SystemInteractionComponent) other_; 3751 return compareValues(code, o.code, true) && compareValues(documentation, o.documentation, true); 3752 } 3753 3754 public boolean isEmpty() { 3755 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, documentation); 3756 } 3757 3758 public String fhirType() { 3759 return "CapabilityStatement2.rest.interaction"; 3760 3761 } 3762 3763 } 3764 3765 /** 3766 * Explanation of why this capability statement2 is needed and why it has been designed as it has. 3767 */ 3768 @Child(name = "purpose", type = {MarkdownType.class}, order=0, min=0, max=1, modifier=false, summary=false) 3769 @Description(shortDefinition="Why this capability statement2 is defined", formalDefinition="Explanation of why this capability statement2 is needed and why it has been designed as it has." ) 3770 protected MarkdownType purpose; 3771 3772 /** 3773 * A copyright statement relating to the capability statement2 and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the capability statement2. 3774 */ 3775 @Child(name = "copyright", type = {MarkdownType.class}, order=1, min=0, max=1, modifier=false, summary=false) 3776 @Description(shortDefinition="Use and/or publishing restrictions", formalDefinition="A copyright statement relating to the capability statement2 and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the capability statement2." ) 3777 protected MarkdownType copyright; 3778 3779 /** 3780 * The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind, not instance of software) or a class of implementation (e.g. a desired purchase). 3781 */ 3782 @Child(name = "kind", type = {CodeType.class}, order=2, min=1, max=1, modifier=false, summary=true) 3783 @Description(shortDefinition="instance | capability | requirements", formalDefinition="The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind, not instance of software) or a class of implementation (e.g. a desired purchase)." ) 3784 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/capability-statement-kind") 3785 protected Enumeration<CapabilityStatement2Kind> kind; 3786 3787 /** 3788 * Reference to a canonical URL of another CapabilityStatement2 that this software implements. This capability statement is a published API description that corresponds to a business service. The server may actually implement a subset of the capability statement it claims to implement, so the capability statement must specify the full capability details. 3789 */ 3790 @Child(name = "instantiates", type = {CanonicalType.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 3791 @Description(shortDefinition="Canonical URL of another capability statement this implements", formalDefinition="Reference to a canonical URL of another CapabilityStatement2 that this software implements. This capability statement is a published API description that corresponds to a business service. The server may actually implement a subset of the capability statement it claims to implement, so the capability statement must specify the full capability details." ) 3792 protected List<CanonicalType> instantiates; 3793 3794 /** 3795 * Reference to a canonical URL of another CapabilityStatement2 that this software adds to. The capability statement automatically includes everything in the other statement, and it is not duplicated, though the server may repeat the same resources, interactions and operations to add additional details to them. 3796 */ 3797 @Child(name = "imports", type = {CanonicalType.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 3798 @Description(shortDefinition="Canonical URL of another capability statement this adds to", formalDefinition="Reference to a canonical URL of another CapabilityStatement2 that this software adds to. The capability statement automatically includes everything in the other statement, and it is not duplicated, though the server may repeat the same resources, interactions and operations to add additional details to them." ) 3799 protected List<CanonicalType> imports; 3800 3801 /** 3802 * Software that is covered by this capability statement. It is used when the capability statement describes the capabilities of a particular software version, independent of an installation. 3803 */ 3804 @Child(name = "software", type = {}, order=5, min=0, max=1, modifier=false, summary=true) 3805 @Description(shortDefinition="Software that is covered by this capability statement", formalDefinition="Software that is covered by this capability statement. It is used when the capability statement describes the capabilities of a particular software version, independent of an installation." ) 3806 protected CapabilityStatement2SoftwareComponent software; 3807 3808 /** 3809 * Identifies a specific implementation instance that is described by the capability statement - i.e. a particular installation, rather than the capabilities of a software program. 3810 */ 3811 @Child(name = "implementation", type = {}, order=6, min=0, max=1, modifier=false, summary=true) 3812 @Description(shortDefinition="If this describes a specific instance", formalDefinition="Identifies a specific implementation instance that is described by the capability statement - i.e. a particular installation, rather than the capabilities of a software program." ) 3813 protected CapabilityStatement2ImplementationComponent implementation; 3814 3815 /** 3816 * The version of the FHIR specification that this CapabilityStatement2 describes (which SHALL be the same as the FHIR version of the CapabilityStatement2 itself). There is no default value. 3817 */ 3818 @Child(name = "fhirVersion", type = {CodeType.class}, order=7, min=1, max=1, modifier=false, summary=true) 3819 @Description(shortDefinition="FHIR Version the system supports", formalDefinition="The version of the FHIR specification that this CapabilityStatement2 describes (which SHALL be the same as the FHIR version of the CapabilityStatement2 itself). There is no default value." ) 3820 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/FHIR-version") 3821 protected Enumeration<FHIRVersion> fhirVersion; 3822 3823 /** 3824 * A list of the formats supported by this implementation using their content types. 3825 */ 3826 @Child(name = "format", type = {CodeType.class}, order=8, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 3827 @Description(shortDefinition="formats supported (xml | json | ttl | mime type)", formalDefinition="A list of the formats supported by this implementation using their content types." ) 3828 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/mimetypes") 3829 protected List<CodeType> format; 3830 3831 /** 3832 * A list of the patch formats supported by this implementation using their content types. 3833 */ 3834 @Child(name = "patchFormat", type = {CodeType.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 3835 @Description(shortDefinition="Patch formats supported", formalDefinition="A list of the patch formats supported by this implementation using their content types." ) 3836 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/mimetypes") 3837 protected List<CodeType> patchFormat; 3838 3839 /** 3840 * A list of implementation guides that the server does (or should) support in their entirety. 3841 */ 3842 @Child(name = "implementationGuide", type = {CanonicalType.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 3843 @Description(shortDefinition="Implementation guides supported", formalDefinition="A list of implementation guides that the server does (or should) support in their entirety." ) 3844 protected List<CanonicalType> implementationGuide; 3845 3846 /** 3847 * A definition of the restful capabilities of the solution, if any. 3848 */ 3849 @Child(name = "rest", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 3850 @Description(shortDefinition="If the endpoint is a RESTful one", formalDefinition="A definition of the restful capabilities of the solution, if any." ) 3851 protected List<CapabilityStatement2RestComponent> rest; 3852 3853 private static final long serialVersionUID = 1310130385L; 3854 3855 /** 3856 * Constructor 3857 */ 3858 public CapabilityStatement2() { 3859 super(); 3860 } 3861 3862 /** 3863 * Constructor 3864 */ 3865 public CapabilityStatement2(Enumeration<PublicationStatus> status, DateTimeType date, Enumeration<CapabilityStatement2Kind> kind, Enumeration<FHIRVersion> fhirVersion) { 3866 super(); 3867 this.status = status; 3868 this.date = date; 3869 this.kind = kind; 3870 this.fhirVersion = fhirVersion; 3871 } 3872 3873 /** 3874 * @return {@link #url} (An absolute URI that is used to identify this capability statement2 when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this capability statement2 is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the capability statement2 is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 3875 */ 3876 public UriType getUrlElement() { 3877 if (this.url == null) 3878 if (Configuration.errorOnAutoCreate()) 3879 throw new Error("Attempt to auto-create CapabilityStatement2.url"); 3880 else if (Configuration.doAutoCreate()) 3881 this.url = new UriType(); // bb 3882 return this.url; 3883 } 3884 3885 public boolean hasUrlElement() { 3886 return this.url != null && !this.url.isEmpty(); 3887 } 3888 3889 public boolean hasUrl() { 3890 return this.url != null && !this.url.isEmpty(); 3891 } 3892 3893 /** 3894 * @param value {@link #url} (An absolute URI that is used to identify this capability statement2 when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this capability statement2 is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the capability statement2 is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 3895 */ 3896 public CapabilityStatement2 setUrlElement(UriType value) { 3897 this.url = value; 3898 return this; 3899 } 3900 3901 /** 3902 * @return An absolute URI that is used to identify this capability statement2 when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this capability statement2 is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the capability statement2 is stored on different servers. 3903 */ 3904 public String getUrl() { 3905 return this.url == null ? null : this.url.getValue(); 3906 } 3907 3908 /** 3909 * @param value An absolute URI that is used to identify this capability statement2 when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this capability statement2 is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the capability statement2 is stored on different servers. 3910 */ 3911 public CapabilityStatement2 setUrl(String value) { 3912 if (Utilities.noString(value)) 3913 this.url = null; 3914 else { 3915 if (this.url == null) 3916 this.url = new UriType(); 3917 this.url.setValue(value); 3918 } 3919 return this; 3920 } 3921 3922 /** 3923 * @return {@link #version} (The identifier that is used to identify this version of the capability statement2 when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the capability statement2 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 3924 */ 3925 public StringType getVersionElement() { 3926 if (this.version == null) 3927 if (Configuration.errorOnAutoCreate()) 3928 throw new Error("Attempt to auto-create CapabilityStatement2.version"); 3929 else if (Configuration.doAutoCreate()) 3930 this.version = new StringType(); // bb 3931 return this.version; 3932 } 3933 3934 public boolean hasVersionElement() { 3935 return this.version != null && !this.version.isEmpty(); 3936 } 3937 3938 public boolean hasVersion() { 3939 return this.version != null && !this.version.isEmpty(); 3940 } 3941 3942 /** 3943 * @param value {@link #version} (The identifier that is used to identify this version of the capability statement2 when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the capability statement2 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 3944 */ 3945 public CapabilityStatement2 setVersionElement(StringType value) { 3946 this.version = value; 3947 return this; 3948 } 3949 3950 /** 3951 * @return The identifier that is used to identify this version of the capability statement2 when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the capability statement2 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. 3952 */ 3953 public String getVersion() { 3954 return this.version == null ? null : this.version.getValue(); 3955 } 3956 3957 /** 3958 * @param value The identifier that is used to identify this version of the capability statement2 when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the capability statement2 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. 3959 */ 3960 public CapabilityStatement2 setVersion(String value) { 3961 if (Utilities.noString(value)) 3962 this.version = null; 3963 else { 3964 if (this.version == null) 3965 this.version = new StringType(); 3966 this.version.setValue(value); 3967 } 3968 return this; 3969 } 3970 3971 /** 3972 * @return {@link #name} (A natural language name identifying the capability statement2. 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 3973 */ 3974 public StringType getNameElement() { 3975 if (this.name == null) 3976 if (Configuration.errorOnAutoCreate()) 3977 throw new Error("Attempt to auto-create CapabilityStatement2.name"); 3978 else if (Configuration.doAutoCreate()) 3979 this.name = new StringType(); // bb 3980 return this.name; 3981 } 3982 3983 public boolean hasNameElement() { 3984 return this.name != null && !this.name.isEmpty(); 3985 } 3986 3987 public boolean hasName() { 3988 return this.name != null && !this.name.isEmpty(); 3989 } 3990 3991 /** 3992 * @param value {@link #name} (A natural language name identifying the capability statement2. 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 3993 */ 3994 public CapabilityStatement2 setNameElement(StringType value) { 3995 this.name = value; 3996 return this; 3997 } 3998 3999 /** 4000 * @return A natural language name identifying the capability statement2. This name should be usable as an identifier for the module by machine processing applications such as code generation. 4001 */ 4002 public String getName() { 4003 return this.name == null ? null : this.name.getValue(); 4004 } 4005 4006 /** 4007 * @param value A natural language name identifying the capability statement2. This name should be usable as an identifier for the module by machine processing applications such as code generation. 4008 */ 4009 public CapabilityStatement2 setName(String value) { 4010 if (Utilities.noString(value)) 4011 this.name = null; 4012 else { 4013 if (this.name == null) 4014 this.name = new StringType(); 4015 this.name.setValue(value); 4016 } 4017 return this; 4018 } 4019 4020 /** 4021 * @return {@link #title} (A short, descriptive, user-friendly title for the capability statement2.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value 4022 */ 4023 public StringType getTitleElement() { 4024 if (this.title == null) 4025 if (Configuration.errorOnAutoCreate()) 4026 throw new Error("Attempt to auto-create CapabilityStatement2.title"); 4027 else if (Configuration.doAutoCreate()) 4028 this.title = new StringType(); // bb 4029 return this.title; 4030 } 4031 4032 public boolean hasTitleElement() { 4033 return this.title != null && !this.title.isEmpty(); 4034 } 4035 4036 public boolean hasTitle() { 4037 return this.title != null && !this.title.isEmpty(); 4038 } 4039 4040 /** 4041 * @param value {@link #title} (A short, descriptive, user-friendly title for the capability statement2.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value 4042 */ 4043 public CapabilityStatement2 setTitleElement(StringType value) { 4044 this.title = value; 4045 return this; 4046 } 4047 4048 /** 4049 * @return A short, descriptive, user-friendly title for the capability statement2. 4050 */ 4051 public String getTitle() { 4052 return this.title == null ? null : this.title.getValue(); 4053 } 4054 4055 /** 4056 * @param value A short, descriptive, user-friendly title for the capability statement2. 4057 */ 4058 public CapabilityStatement2 setTitle(String value) { 4059 if (Utilities.noString(value)) 4060 this.title = null; 4061 else { 4062 if (this.title == null) 4063 this.title = new StringType(); 4064 this.title.setValue(value); 4065 } 4066 return this; 4067 } 4068 4069 /** 4070 * @return {@link #status} (The status of this capability statement2. 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 4071 */ 4072 public Enumeration<PublicationStatus> getStatusElement() { 4073 if (this.status == null) 4074 if (Configuration.errorOnAutoCreate()) 4075 throw new Error("Attempt to auto-create CapabilityStatement2.status"); 4076 else if (Configuration.doAutoCreate()) 4077 this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); // bb 4078 return this.status; 4079 } 4080 4081 public boolean hasStatusElement() { 4082 return this.status != null && !this.status.isEmpty(); 4083 } 4084 4085 public boolean hasStatus() { 4086 return this.status != null && !this.status.isEmpty(); 4087 } 4088 4089 /** 4090 * @param value {@link #status} (The status of this capability statement2. 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 4091 */ 4092 public CapabilityStatement2 setStatusElement(Enumeration<PublicationStatus> value) { 4093 this.status = value; 4094 return this; 4095 } 4096 4097 /** 4098 * @return The status of this capability statement2. Enables tracking the life-cycle of the content. 4099 */ 4100 public PublicationStatus getStatus() { 4101 return this.status == null ? null : this.status.getValue(); 4102 } 4103 4104 /** 4105 * @param value The status of this capability statement2. Enables tracking the life-cycle of the content. 4106 */ 4107 public CapabilityStatement2 setStatus(PublicationStatus value) { 4108 if (this.status == null) 4109 this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); 4110 this.status.setValue(value); 4111 return this; 4112 } 4113 4114 /** 4115 * @return {@link #experimental} (A Boolean value to indicate that this capability statement2 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 4116 */ 4117 public BooleanType getExperimentalElement() { 4118 if (this.experimental == null) 4119 if (Configuration.errorOnAutoCreate()) 4120 throw new Error("Attempt to auto-create CapabilityStatement2.experimental"); 4121 else if (Configuration.doAutoCreate()) 4122 this.experimental = new BooleanType(); // bb 4123 return this.experimental; 4124 } 4125 4126 public boolean hasExperimentalElement() { 4127 return this.experimental != null && !this.experimental.isEmpty(); 4128 } 4129 4130 public boolean hasExperimental() { 4131 return this.experimental != null && !this.experimental.isEmpty(); 4132 } 4133 4134 /** 4135 * @param value {@link #experimental} (A Boolean value to indicate that this capability statement2 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 4136 */ 4137 public CapabilityStatement2 setExperimentalElement(BooleanType value) { 4138 this.experimental = value; 4139 return this; 4140 } 4141 4142 /** 4143 * @return A Boolean value to indicate that this capability statement2 is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage. 4144 */ 4145 public boolean getExperimental() { 4146 return this.experimental == null || this.experimental.isEmpty() ? false : this.experimental.getValue(); 4147 } 4148 4149 /** 4150 * @param value A Boolean value to indicate that this capability statement2 is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage. 4151 */ 4152 public CapabilityStatement2 setExperimental(boolean value) { 4153 if (this.experimental == null) 4154 this.experimental = new BooleanType(); 4155 this.experimental.setValue(value); 4156 return this; 4157 } 4158 4159 /** 4160 * @return {@link #date} (The date (and optionally time) when the capability statement2 was published. The date must change 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 capability statement2 changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 4161 */ 4162 public DateTimeType getDateElement() { 4163 if (this.date == null) 4164 if (Configuration.errorOnAutoCreate()) 4165 throw new Error("Attempt to auto-create CapabilityStatement2.date"); 4166 else if (Configuration.doAutoCreate()) 4167 this.date = new DateTimeType(); // bb 4168 return this.date; 4169 } 4170 4171 public boolean hasDateElement() { 4172 return this.date != null && !this.date.isEmpty(); 4173 } 4174 4175 public boolean hasDate() { 4176 return this.date != null && !this.date.isEmpty(); 4177 } 4178 4179 /** 4180 * @param value {@link #date} (The date (and optionally time) when the capability statement2 was published. The date must change 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 capability statement2 changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 4181 */ 4182 public CapabilityStatement2 setDateElement(DateTimeType value) { 4183 this.date = value; 4184 return this; 4185 } 4186 4187 /** 4188 * @return The date (and optionally time) when the capability statement2 was published. The date must change 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 capability statement2 changes. 4189 */ 4190 public Date getDate() { 4191 return this.date == null ? null : this.date.getValue(); 4192 } 4193 4194 /** 4195 * @param value The date (and optionally time) when the capability statement2 was published. The date must change 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 capability statement2 changes. 4196 */ 4197 public CapabilityStatement2 setDate(Date value) { 4198 if (this.date == null) 4199 this.date = new DateTimeType(); 4200 this.date.setValue(value); 4201 return this; 4202 } 4203 4204 /** 4205 * @return {@link #publisher} (The name of the organization or individual that published the capability statement2.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value 4206 */ 4207 public StringType getPublisherElement() { 4208 if (this.publisher == null) 4209 if (Configuration.errorOnAutoCreate()) 4210 throw new Error("Attempt to auto-create CapabilityStatement2.publisher"); 4211 else if (Configuration.doAutoCreate()) 4212 this.publisher = new StringType(); // bb 4213 return this.publisher; 4214 } 4215 4216 public boolean hasPublisherElement() { 4217 return this.publisher != null && !this.publisher.isEmpty(); 4218 } 4219 4220 public boolean hasPublisher() { 4221 return this.publisher != null && !this.publisher.isEmpty(); 4222 } 4223 4224 /** 4225 * @param value {@link #publisher} (The name of the organization or individual that published the capability statement2.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value 4226 */ 4227 public CapabilityStatement2 setPublisherElement(StringType value) { 4228 this.publisher = value; 4229 return this; 4230 } 4231 4232 /** 4233 * @return The name of the organization or individual that published the capability statement2. 4234 */ 4235 public String getPublisher() { 4236 return this.publisher == null ? null : this.publisher.getValue(); 4237 } 4238 4239 /** 4240 * @param value The name of the organization or individual that published the capability statement2. 4241 */ 4242 public CapabilityStatement2 setPublisher(String value) { 4243 if (Utilities.noString(value)) 4244 this.publisher = null; 4245 else { 4246 if (this.publisher == null) 4247 this.publisher = new StringType(); 4248 this.publisher.setValue(value); 4249 } 4250 return this; 4251 } 4252 4253 /** 4254 * @return {@link #contact} (Contact details to assist a user in finding and communicating with the publisher.) 4255 */ 4256 public List<ContactDetail> getContact() { 4257 if (this.contact == null) 4258 this.contact = new ArrayList<ContactDetail>(); 4259 return this.contact; 4260 } 4261 4262 /** 4263 * @return Returns a reference to <code>this</code> for easy method chaining 4264 */ 4265 public CapabilityStatement2 setContact(List<ContactDetail> theContact) { 4266 this.contact = theContact; 4267 return this; 4268 } 4269 4270 public boolean hasContact() { 4271 if (this.contact == null) 4272 return false; 4273 for (ContactDetail item : this.contact) 4274 if (!item.isEmpty()) 4275 return true; 4276 return false; 4277 } 4278 4279 public ContactDetail addContact() { //3 4280 ContactDetail t = new ContactDetail(); 4281 if (this.contact == null) 4282 this.contact = new ArrayList<ContactDetail>(); 4283 this.contact.add(t); 4284 return t; 4285 } 4286 4287 public CapabilityStatement2 addContact(ContactDetail t) { //3 4288 if (t == null) 4289 return this; 4290 if (this.contact == null) 4291 this.contact = new ArrayList<ContactDetail>(); 4292 this.contact.add(t); 4293 return this; 4294 } 4295 4296 /** 4297 * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist 4298 */ 4299 public ContactDetail getContactFirstRep() { 4300 if (getContact().isEmpty()) { 4301 addContact(); 4302 } 4303 return getContact().get(0); 4304 } 4305 4306 /** 4307 * @return {@link #description} (A free text natural language description of the capability statement2 from a consumer's perspective. Typically, this is used when the capability statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 4308 */ 4309 public MarkdownType getDescriptionElement() { 4310 if (this.description == null) 4311 if (Configuration.errorOnAutoCreate()) 4312 throw new Error("Attempt to auto-create CapabilityStatement2.description"); 4313 else if (Configuration.doAutoCreate()) 4314 this.description = new MarkdownType(); // bb 4315 return this.description; 4316 } 4317 4318 public boolean hasDescriptionElement() { 4319 return this.description != null && !this.description.isEmpty(); 4320 } 4321 4322 public boolean hasDescription() { 4323 return this.description != null && !this.description.isEmpty(); 4324 } 4325 4326 /** 4327 * @param value {@link #description} (A free text natural language description of the capability statement2 from a consumer's perspective. Typically, this is used when the capability statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 4328 */ 4329 public CapabilityStatement2 setDescriptionElement(MarkdownType value) { 4330 this.description = value; 4331 return this; 4332 } 4333 4334 /** 4335 * @return A free text natural language description of the capability statement2 from a consumer's perspective. Typically, this is used when the capability statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP. 4336 */ 4337 public String getDescription() { 4338 return this.description == null ? null : this.description.getValue(); 4339 } 4340 4341 /** 4342 * @param value A free text natural language description of the capability statement2 from a consumer's perspective. Typically, this is used when the capability statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP. 4343 */ 4344 public CapabilityStatement2 setDescription(String value) { 4345 if (value == null) 4346 this.description = null; 4347 else { 4348 if (this.description == null) 4349 this.description = new MarkdownType(); 4350 this.description.setValue(value); 4351 } 4352 return this; 4353 } 4354 4355 /** 4356 * @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate capability statement2 instances.) 4357 */ 4358 public List<UsageContext> getUseContext() { 4359 if (this.useContext == null) 4360 this.useContext = new ArrayList<UsageContext>(); 4361 return this.useContext; 4362 } 4363 4364 /** 4365 * @return Returns a reference to <code>this</code> for easy method chaining 4366 */ 4367 public CapabilityStatement2 setUseContext(List<UsageContext> theUseContext) { 4368 this.useContext = theUseContext; 4369 return this; 4370 } 4371 4372 public boolean hasUseContext() { 4373 if (this.useContext == null) 4374 return false; 4375 for (UsageContext item : this.useContext) 4376 if (!item.isEmpty()) 4377 return true; 4378 return false; 4379 } 4380 4381 public UsageContext addUseContext() { //3 4382 UsageContext t = new UsageContext(); 4383 if (this.useContext == null) 4384 this.useContext = new ArrayList<UsageContext>(); 4385 this.useContext.add(t); 4386 return t; 4387 } 4388 4389 public CapabilityStatement2 addUseContext(UsageContext t) { //3 4390 if (t == null) 4391 return this; 4392 if (this.useContext == null) 4393 this.useContext = new ArrayList<UsageContext>(); 4394 this.useContext.add(t); 4395 return this; 4396 } 4397 4398 /** 4399 * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist 4400 */ 4401 public UsageContext getUseContextFirstRep() { 4402 if (getUseContext().isEmpty()) { 4403 addUseContext(); 4404 } 4405 return getUseContext().get(0); 4406 } 4407 4408 /** 4409 * @return {@link #jurisdiction} (A legal or geographic region in which the capability statement2 is intended to be used.) 4410 */ 4411 public List<CodeableConcept> getJurisdiction() { 4412 if (this.jurisdiction == null) 4413 this.jurisdiction = new ArrayList<CodeableConcept>(); 4414 return this.jurisdiction; 4415 } 4416 4417 /** 4418 * @return Returns a reference to <code>this</code> for easy method chaining 4419 */ 4420 public CapabilityStatement2 setJurisdiction(List<CodeableConcept> theJurisdiction) { 4421 this.jurisdiction = theJurisdiction; 4422 return this; 4423 } 4424 4425 public boolean hasJurisdiction() { 4426 if (this.jurisdiction == null) 4427 return false; 4428 for (CodeableConcept item : this.jurisdiction) 4429 if (!item.isEmpty()) 4430 return true; 4431 return false; 4432 } 4433 4434 public CodeableConcept addJurisdiction() { //3 4435 CodeableConcept t = new CodeableConcept(); 4436 if (this.jurisdiction == null) 4437 this.jurisdiction = new ArrayList<CodeableConcept>(); 4438 this.jurisdiction.add(t); 4439 return t; 4440 } 4441 4442 public CapabilityStatement2 addJurisdiction(CodeableConcept t) { //3 4443 if (t == null) 4444 return this; 4445 if (this.jurisdiction == null) 4446 this.jurisdiction = new ArrayList<CodeableConcept>(); 4447 this.jurisdiction.add(t); 4448 return this; 4449 } 4450 4451 /** 4452 * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist 4453 */ 4454 public CodeableConcept getJurisdictionFirstRep() { 4455 if (getJurisdiction().isEmpty()) { 4456 addJurisdiction(); 4457 } 4458 return getJurisdiction().get(0); 4459 } 4460 4461 /** 4462 * @return {@link #purpose} (Explanation of why this capability statement2 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 4463 */ 4464 public MarkdownType getPurposeElement() { 4465 if (this.purpose == null) 4466 if (Configuration.errorOnAutoCreate()) 4467 throw new Error("Attempt to auto-create CapabilityStatement2.purpose"); 4468 else if (Configuration.doAutoCreate()) 4469 this.purpose = new MarkdownType(); // bb 4470 return this.purpose; 4471 } 4472 4473 public boolean hasPurposeElement() { 4474 return this.purpose != null && !this.purpose.isEmpty(); 4475 } 4476 4477 public boolean hasPurpose() { 4478 return this.purpose != null && !this.purpose.isEmpty(); 4479 } 4480 4481 /** 4482 * @param value {@link #purpose} (Explanation of why this capability statement2 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 4483 */ 4484 public CapabilityStatement2 setPurposeElement(MarkdownType value) { 4485 this.purpose = value; 4486 return this; 4487 } 4488 4489 /** 4490 * @return Explanation of why this capability statement2 is needed and why it has been designed as it has. 4491 */ 4492 public String getPurpose() { 4493 return this.purpose == null ? null : this.purpose.getValue(); 4494 } 4495 4496 /** 4497 * @param value Explanation of why this capability statement2 is needed and why it has been designed as it has. 4498 */ 4499 public CapabilityStatement2 setPurpose(String value) { 4500 if (value == null) 4501 this.purpose = null; 4502 else { 4503 if (this.purpose == null) 4504 this.purpose = new MarkdownType(); 4505 this.purpose.setValue(value); 4506 } 4507 return this; 4508 } 4509 4510 /** 4511 * @return {@link #copyright} (A copyright statement relating to the capability statement2 and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the capability statement2.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value 4512 */ 4513 public MarkdownType getCopyrightElement() { 4514 if (this.copyright == null) 4515 if (Configuration.errorOnAutoCreate()) 4516 throw new Error("Attempt to auto-create CapabilityStatement2.copyright"); 4517 else if (Configuration.doAutoCreate()) 4518 this.copyright = new MarkdownType(); // bb 4519 return this.copyright; 4520 } 4521 4522 public boolean hasCopyrightElement() { 4523 return this.copyright != null && !this.copyright.isEmpty(); 4524 } 4525 4526 public boolean hasCopyright() { 4527 return this.copyright != null && !this.copyright.isEmpty(); 4528 } 4529 4530 /** 4531 * @param value {@link #copyright} (A copyright statement relating to the capability statement2 and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the capability statement2.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value 4532 */ 4533 public CapabilityStatement2 setCopyrightElement(MarkdownType value) { 4534 this.copyright = value; 4535 return this; 4536 } 4537 4538 /** 4539 * @return A copyright statement relating to the capability statement2 and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the capability statement2. 4540 */ 4541 public String getCopyright() { 4542 return this.copyright == null ? null : this.copyright.getValue(); 4543 } 4544 4545 /** 4546 * @param value A copyright statement relating to the capability statement2 and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the capability statement2. 4547 */ 4548 public CapabilityStatement2 setCopyright(String value) { 4549 if (value == null) 4550 this.copyright = null; 4551 else { 4552 if (this.copyright == null) 4553 this.copyright = new MarkdownType(); 4554 this.copyright.setValue(value); 4555 } 4556 return this; 4557 } 4558 4559 /** 4560 * @return {@link #kind} (The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind, not instance of software) or a class of implementation (e.g. a desired purchase).). This is the underlying object with id, value and extensions. The accessor "getKind" gives direct access to the value 4561 */ 4562 public Enumeration<CapabilityStatement2Kind> getKindElement() { 4563 if (this.kind == null) 4564 if (Configuration.errorOnAutoCreate()) 4565 throw new Error("Attempt to auto-create CapabilityStatement2.kind"); 4566 else if (Configuration.doAutoCreate()) 4567 this.kind = new Enumeration<CapabilityStatement2Kind>(new CapabilityStatement2KindEnumFactory()); // bb 4568 return this.kind; 4569 } 4570 4571 public boolean hasKindElement() { 4572 return this.kind != null && !this.kind.isEmpty(); 4573 } 4574 4575 public boolean hasKind() { 4576 return this.kind != null && !this.kind.isEmpty(); 4577 } 4578 4579 /** 4580 * @param value {@link #kind} (The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind, not instance of software) or a class of implementation (e.g. a desired purchase).). This is the underlying object with id, value and extensions. The accessor "getKind" gives direct access to the value 4581 */ 4582 public CapabilityStatement2 setKindElement(Enumeration<CapabilityStatement2Kind> value) { 4583 this.kind = value; 4584 return this; 4585 } 4586 4587 /** 4588 * @return The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind, not instance of software) or a class of implementation (e.g. a desired purchase). 4589 */ 4590 public CapabilityStatement2Kind getKind() { 4591 return this.kind == null ? null : this.kind.getValue(); 4592 } 4593 4594 /** 4595 * @param value The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind, not instance of software) or a class of implementation (e.g. a desired purchase). 4596 */ 4597 public CapabilityStatement2 setKind(CapabilityStatement2Kind value) { 4598 if (this.kind == null) 4599 this.kind = new Enumeration<CapabilityStatement2Kind>(new CapabilityStatement2KindEnumFactory()); 4600 this.kind.setValue(value); 4601 return this; 4602 } 4603 4604 /** 4605 * @return {@link #instantiates} (Reference to a canonical URL of another CapabilityStatement2 that this software implements. This capability statement is a published API description that corresponds to a business service. The server may actually implement a subset of the capability statement it claims to implement, so the capability statement must specify the full capability details.) 4606 */ 4607 public List<CanonicalType> getInstantiates() { 4608 if (this.instantiates == null) 4609 this.instantiates = new ArrayList<CanonicalType>(); 4610 return this.instantiates; 4611 } 4612 4613 /** 4614 * @return Returns a reference to <code>this</code> for easy method chaining 4615 */ 4616 public CapabilityStatement2 setInstantiates(List<CanonicalType> theInstantiates) { 4617 this.instantiates = theInstantiates; 4618 return this; 4619 } 4620 4621 public boolean hasInstantiates() { 4622 if (this.instantiates == null) 4623 return false; 4624 for (CanonicalType item : this.instantiates) 4625 if (!item.isEmpty()) 4626 return true; 4627 return false; 4628 } 4629 4630 /** 4631 * @return {@link #instantiates} (Reference to a canonical URL of another CapabilityStatement2 that this software implements. This capability statement is a published API description that corresponds to a business service. The server may actually implement a subset of the capability statement it claims to implement, so the capability statement must specify the full capability details.) 4632 */ 4633 public CanonicalType addInstantiatesElement() {//2 4634 CanonicalType t = new CanonicalType(); 4635 if (this.instantiates == null) 4636 this.instantiates = new ArrayList<CanonicalType>(); 4637 this.instantiates.add(t); 4638 return t; 4639 } 4640 4641 /** 4642 * @param value {@link #instantiates} (Reference to a canonical URL of another CapabilityStatement2 that this software implements. This capability statement is a published API description that corresponds to a business service. The server may actually implement a subset of the capability statement it claims to implement, so the capability statement must specify the full capability details.) 4643 */ 4644 public CapabilityStatement2 addInstantiates(String value) { //1 4645 CanonicalType t = new CanonicalType(); 4646 t.setValue(value); 4647 if (this.instantiates == null) 4648 this.instantiates = new ArrayList<CanonicalType>(); 4649 this.instantiates.add(t); 4650 return this; 4651 } 4652 4653 /** 4654 * @param value {@link #instantiates} (Reference to a canonical URL of another CapabilityStatement2 that this software implements. This capability statement is a published API description that corresponds to a business service. The server may actually implement a subset of the capability statement it claims to implement, so the capability statement must specify the full capability details.) 4655 */ 4656 public boolean hasInstantiates(String value) { 4657 if (this.instantiates == null) 4658 return false; 4659 for (CanonicalType v : this.instantiates) 4660 if (v.getValue().equals(value)) // canonical(CapabilityStatement2) 4661 return true; 4662 return false; 4663 } 4664 4665 /** 4666 * @return {@link #imports} (Reference to a canonical URL of another CapabilityStatement2 that this software adds to. The capability statement automatically includes everything in the other statement, and it is not duplicated, though the server may repeat the same resources, interactions and operations to add additional details to them.) 4667 */ 4668 public List<CanonicalType> getImports() { 4669 if (this.imports == null) 4670 this.imports = new ArrayList<CanonicalType>(); 4671 return this.imports; 4672 } 4673 4674 /** 4675 * @return Returns a reference to <code>this</code> for easy method chaining 4676 */ 4677 public CapabilityStatement2 setImports(List<CanonicalType> theImports) { 4678 this.imports = theImports; 4679 return this; 4680 } 4681 4682 public boolean hasImports() { 4683 if (this.imports == null) 4684 return false; 4685 for (CanonicalType item : this.imports) 4686 if (!item.isEmpty()) 4687 return true; 4688 return false; 4689 } 4690 4691 /** 4692 * @return {@link #imports} (Reference to a canonical URL of another CapabilityStatement2 that this software adds to. The capability statement automatically includes everything in the other statement, and it is not duplicated, though the server may repeat the same resources, interactions and operations to add additional details to them.) 4693 */ 4694 public CanonicalType addImportsElement() {//2 4695 CanonicalType t = new CanonicalType(); 4696 if (this.imports == null) 4697 this.imports = new ArrayList<CanonicalType>(); 4698 this.imports.add(t); 4699 return t; 4700 } 4701 4702 /** 4703 * @param value {@link #imports} (Reference to a canonical URL of another CapabilityStatement2 that this software adds to. The capability statement automatically includes everything in the other statement, and it is not duplicated, though the server may repeat the same resources, interactions and operations to add additional details to them.) 4704 */ 4705 public CapabilityStatement2 addImports(String value) { //1 4706 CanonicalType t = new CanonicalType(); 4707 t.setValue(value); 4708 if (this.imports == null) 4709 this.imports = new ArrayList<CanonicalType>(); 4710 this.imports.add(t); 4711 return this; 4712 } 4713 4714 /** 4715 * @param value {@link #imports} (Reference to a canonical URL of another CapabilityStatement2 that this software adds to. The capability statement automatically includes everything in the other statement, and it is not duplicated, though the server may repeat the same resources, interactions and operations to add additional details to them.) 4716 */ 4717 public boolean hasImports(String value) { 4718 if (this.imports == null) 4719 return false; 4720 for (CanonicalType v : this.imports) 4721 if (v.getValue().equals(value)) // canonical(CapabilityStatement2) 4722 return true; 4723 return false; 4724 } 4725 4726 /** 4727 * @return {@link #software} (Software that is covered by this capability statement. It is used when the capability statement describes the capabilities of a particular software version, independent of an installation.) 4728 */ 4729 public CapabilityStatement2SoftwareComponent getSoftware() { 4730 if (this.software == null) 4731 if (Configuration.errorOnAutoCreate()) 4732 throw new Error("Attempt to auto-create CapabilityStatement2.software"); 4733 else if (Configuration.doAutoCreate()) 4734 this.software = new CapabilityStatement2SoftwareComponent(); // cc 4735 return this.software; 4736 } 4737 4738 public boolean hasSoftware() { 4739 return this.software != null && !this.software.isEmpty(); 4740 } 4741 4742 /** 4743 * @param value {@link #software} (Software that is covered by this capability statement. It is used when the capability statement describes the capabilities of a particular software version, independent of an installation.) 4744 */ 4745 public CapabilityStatement2 setSoftware(CapabilityStatement2SoftwareComponent value) { 4746 this.software = value; 4747 return this; 4748 } 4749 4750 /** 4751 * @return {@link #implementation} (Identifies a specific implementation instance that is described by the capability statement - i.e. a particular installation, rather than the capabilities of a software program.) 4752 */ 4753 public CapabilityStatement2ImplementationComponent getImplementation() { 4754 if (this.implementation == null) 4755 if (Configuration.errorOnAutoCreate()) 4756 throw new Error("Attempt to auto-create CapabilityStatement2.implementation"); 4757 else if (Configuration.doAutoCreate()) 4758 this.implementation = new CapabilityStatement2ImplementationComponent(); // cc 4759 return this.implementation; 4760 } 4761 4762 public boolean hasImplementation() { 4763 return this.implementation != null && !this.implementation.isEmpty(); 4764 } 4765 4766 /** 4767 * @param value {@link #implementation} (Identifies a specific implementation instance that is described by the capability statement - i.e. a particular installation, rather than the capabilities of a software program.) 4768 */ 4769 public CapabilityStatement2 setImplementation(CapabilityStatement2ImplementationComponent value) { 4770 this.implementation = value; 4771 return this; 4772 } 4773 4774 /** 4775 * @return {@link #fhirVersion} (The version of the FHIR specification that this CapabilityStatement2 describes (which SHALL be the same as the FHIR version of the CapabilityStatement2 itself). There is no default value.). This is the underlying object with id, value and extensions. The accessor "getFhirVersion" gives direct access to the value 4776 */ 4777 public Enumeration<FHIRVersion> getFhirVersionElement() { 4778 if (this.fhirVersion == null) 4779 if (Configuration.errorOnAutoCreate()) 4780 throw new Error("Attempt to auto-create CapabilityStatement2.fhirVersion"); 4781 else if (Configuration.doAutoCreate()) 4782 this.fhirVersion = new Enumeration<FHIRVersion>(new FHIRVersionEnumFactory()); // bb 4783 return this.fhirVersion; 4784 } 4785 4786 public boolean hasFhirVersionElement() { 4787 return this.fhirVersion != null && !this.fhirVersion.isEmpty(); 4788 } 4789 4790 public boolean hasFhirVersion() { 4791 return this.fhirVersion != null && !this.fhirVersion.isEmpty(); 4792 } 4793 4794 /** 4795 * @param value {@link #fhirVersion} (The version of the FHIR specification that this CapabilityStatement2 describes (which SHALL be the same as the FHIR version of the CapabilityStatement2 itself). There is no default value.). This is the underlying object with id, value and extensions. The accessor "getFhirVersion" gives direct access to the value 4796 */ 4797 public CapabilityStatement2 setFhirVersionElement(Enumeration<FHIRVersion> value) { 4798 this.fhirVersion = value; 4799 return this; 4800 } 4801 4802 /** 4803 * @return The version of the FHIR specification that this CapabilityStatement2 describes (which SHALL be the same as the FHIR version of the CapabilityStatement2 itself). There is no default value. 4804 */ 4805 public FHIRVersion getFhirVersion() { 4806 return this.fhirVersion == null ? null : this.fhirVersion.getValue(); 4807 } 4808 4809 /** 4810 * @param value The version of the FHIR specification that this CapabilityStatement2 describes (which SHALL be the same as the FHIR version of the CapabilityStatement2 itself). There is no default value. 4811 */ 4812 public CapabilityStatement2 setFhirVersion(FHIRVersion value) { 4813 if (this.fhirVersion == null) 4814 this.fhirVersion = new Enumeration<FHIRVersion>(new FHIRVersionEnumFactory()); 4815 this.fhirVersion.setValue(value); 4816 return this; 4817 } 4818 4819 /** 4820 * @return {@link #format} (A list of the formats supported by this implementation using their content types.) 4821 */ 4822 public List<CodeType> getFormat() { 4823 if (this.format == null) 4824 this.format = new ArrayList<CodeType>(); 4825 return this.format; 4826 } 4827 4828 /** 4829 * @return Returns a reference to <code>this</code> for easy method chaining 4830 */ 4831 public CapabilityStatement2 setFormat(List<CodeType> theFormat) { 4832 this.format = theFormat; 4833 return this; 4834 } 4835 4836 public boolean hasFormat() { 4837 if (this.format == null) 4838 return false; 4839 for (CodeType item : this.format) 4840 if (!item.isEmpty()) 4841 return true; 4842 return false; 4843 } 4844 4845 /** 4846 * @return {@link #format} (A list of the formats supported by this implementation using their content types.) 4847 */ 4848 public CodeType addFormatElement() {//2 4849 CodeType t = new CodeType(); 4850 if (this.format == null) 4851 this.format = new ArrayList<CodeType>(); 4852 this.format.add(t); 4853 return t; 4854 } 4855 4856 /** 4857 * @param value {@link #format} (A list of the formats supported by this implementation using their content types.) 4858 */ 4859 public CapabilityStatement2 addFormat(String value) { //1 4860 CodeType t = new CodeType(); 4861 t.setValue(value); 4862 if (this.format == null) 4863 this.format = new ArrayList<CodeType>(); 4864 this.format.add(t); 4865 return this; 4866 } 4867 4868 /** 4869 * @param value {@link #format} (A list of the formats supported by this implementation using their content types.) 4870 */ 4871 public boolean hasFormat(String value) { 4872 if (this.format == null) 4873 return false; 4874 for (CodeType v : this.format) 4875 if (v.getValue().equals(value)) // code 4876 return true; 4877 return false; 4878 } 4879 4880 /** 4881 * @return {@link #patchFormat} (A list of the patch formats supported by this implementation using their content types.) 4882 */ 4883 public List<CodeType> getPatchFormat() { 4884 if (this.patchFormat == null) 4885 this.patchFormat = new ArrayList<CodeType>(); 4886 return this.patchFormat; 4887 } 4888 4889 /** 4890 * @return Returns a reference to <code>this</code> for easy method chaining 4891 */ 4892 public CapabilityStatement2 setPatchFormat(List<CodeType> thePatchFormat) { 4893 this.patchFormat = thePatchFormat; 4894 return this; 4895 } 4896 4897 public boolean hasPatchFormat() { 4898 if (this.patchFormat == null) 4899 return false; 4900 for (CodeType item : this.patchFormat) 4901 if (!item.isEmpty()) 4902 return true; 4903 return false; 4904 } 4905 4906 /** 4907 * @return {@link #patchFormat} (A list of the patch formats supported by this implementation using their content types.) 4908 */ 4909 public CodeType addPatchFormatElement() {//2 4910 CodeType t = new CodeType(); 4911 if (this.patchFormat == null) 4912 this.patchFormat = new ArrayList<CodeType>(); 4913 this.patchFormat.add(t); 4914 return t; 4915 } 4916 4917 /** 4918 * @param value {@link #patchFormat} (A list of the patch formats supported by this implementation using their content types.) 4919 */ 4920 public CapabilityStatement2 addPatchFormat(String value) { //1 4921 CodeType t = new CodeType(); 4922 t.setValue(value); 4923 if (this.patchFormat == null) 4924 this.patchFormat = new ArrayList<CodeType>(); 4925 this.patchFormat.add(t); 4926 return this; 4927 } 4928 4929 /** 4930 * @param value {@link #patchFormat} (A list of the patch formats supported by this implementation using their content types.) 4931 */ 4932 public boolean hasPatchFormat(String value) { 4933 if (this.patchFormat == null) 4934 return false; 4935 for (CodeType v : this.patchFormat) 4936 if (v.getValue().equals(value)) // code 4937 return true; 4938 return false; 4939 } 4940 4941 /** 4942 * @return {@link #implementationGuide} (A list of implementation guides that the server does (or should) support in their entirety.) 4943 */ 4944 public List<CanonicalType> getImplementationGuide() { 4945 if (this.implementationGuide == null) 4946 this.implementationGuide = new ArrayList<CanonicalType>(); 4947 return this.implementationGuide; 4948 } 4949 4950 /** 4951 * @return Returns a reference to <code>this</code> for easy method chaining 4952 */ 4953 public CapabilityStatement2 setImplementationGuide(List<CanonicalType> theImplementationGuide) { 4954 this.implementationGuide = theImplementationGuide; 4955 return this; 4956 } 4957 4958 public boolean hasImplementationGuide() { 4959 if (this.implementationGuide == null) 4960 return false; 4961 for (CanonicalType item : this.implementationGuide) 4962 if (!item.isEmpty()) 4963 return true; 4964 return false; 4965 } 4966 4967 /** 4968 * @return {@link #implementationGuide} (A list of implementation guides that the server does (or should) support in their entirety.) 4969 */ 4970 public CanonicalType addImplementationGuideElement() {//2 4971 CanonicalType t = new CanonicalType(); 4972 if (this.implementationGuide == null) 4973 this.implementationGuide = new ArrayList<CanonicalType>(); 4974 this.implementationGuide.add(t); 4975 return t; 4976 } 4977 4978 /** 4979 * @param value {@link #implementationGuide} (A list of implementation guides that the server does (or should) support in their entirety.) 4980 */ 4981 public CapabilityStatement2 addImplementationGuide(String value) { //1 4982 CanonicalType t = new CanonicalType(); 4983 t.setValue(value); 4984 if (this.implementationGuide == null) 4985 this.implementationGuide = new ArrayList<CanonicalType>(); 4986 this.implementationGuide.add(t); 4987 return this; 4988 } 4989 4990 /** 4991 * @param value {@link #implementationGuide} (A list of implementation guides that the server does (or should) support in their entirety.) 4992 */ 4993 public boolean hasImplementationGuide(String value) { 4994 if (this.implementationGuide == null) 4995 return false; 4996 for (CanonicalType v : this.implementationGuide) 4997 if (v.getValue().equals(value)) // canonical(ImplementationGuide) 4998 return true; 4999 return false; 5000 } 5001 5002 /** 5003 * @return {@link #rest} (A definition of the restful capabilities of the solution, if any.) 5004 */ 5005 public List<CapabilityStatement2RestComponent> getRest() { 5006 if (this.rest == null) 5007 this.rest = new ArrayList<CapabilityStatement2RestComponent>(); 5008 return this.rest; 5009 } 5010 5011 /** 5012 * @return Returns a reference to <code>this</code> for easy method chaining 5013 */ 5014 public CapabilityStatement2 setRest(List<CapabilityStatement2RestComponent> theRest) { 5015 this.rest = theRest; 5016 return this; 5017 } 5018 5019 public boolean hasRest() { 5020 if (this.rest == null) 5021 return false; 5022 for (CapabilityStatement2RestComponent item : this.rest) 5023 if (!item.isEmpty()) 5024 return true; 5025 return false; 5026 } 5027 5028 public CapabilityStatement2RestComponent addRest() { //3 5029 CapabilityStatement2RestComponent t = new CapabilityStatement2RestComponent(); 5030 if (this.rest == null) 5031 this.rest = new ArrayList<CapabilityStatement2RestComponent>(); 5032 this.rest.add(t); 5033 return t; 5034 } 5035 5036 public CapabilityStatement2 addRest(CapabilityStatement2RestComponent t) { //3 5037 if (t == null) 5038 return this; 5039 if (this.rest == null) 5040 this.rest = new ArrayList<CapabilityStatement2RestComponent>(); 5041 this.rest.add(t); 5042 return this; 5043 } 5044 5045 /** 5046 * @return The first repetition of repeating field {@link #rest}, creating it if it does not already exist 5047 */ 5048 public CapabilityStatement2RestComponent getRestFirstRep() { 5049 if (getRest().isEmpty()) { 5050 addRest(); 5051 } 5052 return getRest().get(0); 5053 } 5054 5055 protected void listChildren(List<Property> children) { 5056 super.listChildren(children); 5057 children.add(new Property("url", "uri", "An absolute URI that is used to identify this capability statement2 when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this capability statement2 is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the capability statement2 is stored on different servers.", 0, 1, url)); 5058 children.add(new Property("version", "string", "The identifier that is used to identify this version of the capability statement2 when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the capability statement2 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)); 5059 children.add(new Property("name", "string", "A natural language name identifying the capability statement2. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name)); 5060 children.add(new Property("title", "string", "A short, descriptive, user-friendly title for the capability statement2.", 0, 1, title)); 5061 children.add(new Property("status", "code", "The status of this capability statement2. Enables tracking the life-cycle of the content.", 0, 1, status)); 5062 children.add(new Property("experimental", "boolean", "A Boolean value to indicate that this capability statement2 is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental)); 5063 children.add(new Property("date", "dateTime", "The date (and optionally time) when the capability statement2 was published. The date must change 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 capability statement2 changes.", 0, 1, date)); 5064 children.add(new Property("publisher", "string", "The name of the organization or individual that published the capability statement2.", 0, 1, publisher)); 5065 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)); 5066 children.add(new Property("description", "markdown", "A free text natural language description of the capability statement2 from a consumer's perspective. Typically, this is used when the capability statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP.", 0, 1, description)); 5067 children.add(new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate capability statement2 instances.", 0, java.lang.Integer.MAX_VALUE, useContext)); 5068 children.add(new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the capability statement2 is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction)); 5069 children.add(new Property("purpose", "markdown", "Explanation of why this capability statement2 is needed and why it has been designed as it has.", 0, 1, purpose)); 5070 children.add(new Property("copyright", "markdown", "A copyright statement relating to the capability statement2 and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the capability statement2.", 0, 1, copyright)); 5071 children.add(new Property("kind", "code", "The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind, not instance of software) or a class of implementation (e.g. a desired purchase).", 0, 1, kind)); 5072 children.add(new Property("instantiates", "canonical(CapabilityStatement2)", "Reference to a canonical URL of another CapabilityStatement2 that this software implements. This capability statement is a published API description that corresponds to a business service. The server may actually implement a subset of the capability statement it claims to implement, so the capability statement must specify the full capability details.", 0, java.lang.Integer.MAX_VALUE, instantiates)); 5073 children.add(new Property("imports", "canonical(CapabilityStatement2)", "Reference to a canonical URL of another CapabilityStatement2 that this software adds to. The capability statement automatically includes everything in the other statement, and it is not duplicated, though the server may repeat the same resources, interactions and operations to add additional details to them.", 0, java.lang.Integer.MAX_VALUE, imports)); 5074 children.add(new Property("software", "", "Software that is covered by this capability statement. It is used when the capability statement describes the capabilities of a particular software version, independent of an installation.", 0, 1, software)); 5075 children.add(new Property("implementation", "", "Identifies a specific implementation instance that is described by the capability statement - i.e. a particular installation, rather than the capabilities of a software program.", 0, 1, implementation)); 5076 children.add(new Property("fhirVersion", "code", "The version of the FHIR specification that this CapabilityStatement2 describes (which SHALL be the same as the FHIR version of the CapabilityStatement2 itself). There is no default value.", 0, 1, fhirVersion)); 5077 children.add(new Property("format", "code", "A list of the formats supported by this implementation using their content types.", 0, java.lang.Integer.MAX_VALUE, format)); 5078 children.add(new Property("patchFormat", "code", "A list of the patch formats supported by this implementation using their content types.", 0, java.lang.Integer.MAX_VALUE, patchFormat)); 5079 children.add(new Property("implementationGuide", "canonical(ImplementationGuide)", "A list of implementation guides that the server does (or should) support in their entirety.", 0, java.lang.Integer.MAX_VALUE, implementationGuide)); 5080 children.add(new Property("rest", "", "A definition of the restful capabilities of the solution, if any.", 0, java.lang.Integer.MAX_VALUE, rest)); 5081 } 5082 5083 @Override 5084 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 5085 switch (_hash) { 5086 case 116079: /*url*/ return new Property("url", "uri", "An absolute URI that is used to identify this capability statement2 when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this capability statement2 is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the capability statement2 is stored on different servers.", 0, 1, url); 5087 case 351608024: /*version*/ return new Property("version", "string", "The identifier that is used to identify this version of the capability statement2 when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the capability statement2 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); 5088 case 3373707: /*name*/ return new Property("name", "string", "A natural language name identifying the capability statement2. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name); 5089 case 110371416: /*title*/ return new Property("title", "string", "A short, descriptive, user-friendly title for the capability statement2.", 0, 1, title); 5090 case -892481550: /*status*/ return new Property("status", "code", "The status of this capability statement2. Enables tracking the life-cycle of the content.", 0, 1, status); 5091 case -404562712: /*experimental*/ return new Property("experimental", "boolean", "A Boolean value to indicate that this capability statement2 is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental); 5092 case 3076014: /*date*/ return new Property("date", "dateTime", "The date (and optionally time) when the capability statement2 was published. The date must change 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 capability statement2 changes.", 0, 1, date); 5093 case 1447404028: /*publisher*/ return new Property("publisher", "string", "The name of the organization or individual that published the capability statement2.", 0, 1, publisher); 5094 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); 5095 case -1724546052: /*description*/ return new Property("description", "markdown", "A free text natural language description of the capability statement2 from a consumer's perspective. Typically, this is used when the capability statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP.", 0, 1, description); 5096 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 contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate capability statement2 instances.", 0, java.lang.Integer.MAX_VALUE, useContext); 5097 case -507075711: /*jurisdiction*/ return new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the capability statement2 is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction); 5098 case -220463842: /*purpose*/ return new Property("purpose", "markdown", "Explanation of why this capability statement2 is needed and why it has been designed as it has.", 0, 1, purpose); 5099 case 1522889671: /*copyright*/ return new Property("copyright", "markdown", "A copyright statement relating to the capability statement2 and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the capability statement2.", 0, 1, copyright); 5100 case 3292052: /*kind*/ return new Property("kind", "code", "The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind, not instance of software) or a class of implementation (e.g. a desired purchase).", 0, 1, kind); 5101 case -246883639: /*instantiates*/ return new Property("instantiates", "canonical(CapabilityStatement2)", "Reference to a canonical URL of another CapabilityStatement2 that this software implements. This capability statement is a published API description that corresponds to a business service. The server may actually implement a subset of the capability statement it claims to implement, so the capability statement must specify the full capability details.", 0, java.lang.Integer.MAX_VALUE, instantiates); 5102 case 1926037870: /*imports*/ return new Property("imports", "canonical(CapabilityStatement2)", "Reference to a canonical URL of another CapabilityStatement2 that this software adds to. The capability statement automatically includes everything in the other statement, and it is not duplicated, though the server may repeat the same resources, interactions and operations to add additional details to them.", 0, java.lang.Integer.MAX_VALUE, imports); 5103 case 1319330215: /*software*/ return new Property("software", "", "Software that is covered by this capability statement. It is used when the capability statement describes the capabilities of a particular software version, independent of an installation.", 0, 1, software); 5104 case 1683336114: /*implementation*/ return new Property("implementation", "", "Identifies a specific implementation instance that is described by the capability statement - i.e. a particular installation, rather than the capabilities of a software program.", 0, 1, implementation); 5105 case 461006061: /*fhirVersion*/ return new Property("fhirVersion", "code", "The version of the FHIR specification that this CapabilityStatement2 describes (which SHALL be the same as the FHIR version of the CapabilityStatement2 itself). There is no default value.", 0, 1, fhirVersion); 5106 case -1268779017: /*format*/ return new Property("format", "code", "A list of the formats supported by this implementation using their content types.", 0, java.lang.Integer.MAX_VALUE, format); 5107 case 172338783: /*patchFormat*/ return new Property("patchFormat", "code", "A list of the patch formats supported by this implementation using their content types.", 0, java.lang.Integer.MAX_VALUE, patchFormat); 5108 case 156966506: /*implementationGuide*/ return new Property("implementationGuide", "canonical(ImplementationGuide)", "A list of implementation guides that the server does (or should) support in their entirety.", 0, java.lang.Integer.MAX_VALUE, implementationGuide); 5109 case 3496916: /*rest*/ return new Property("rest", "", "A definition of the restful capabilities of the solution, if any.", 0, java.lang.Integer.MAX_VALUE, rest); 5110 default: return super.getNamedProperty(_hash, _name, _checkValid); 5111 } 5112 5113 } 5114 5115 @Override 5116 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 5117 switch (hash) { 5118 case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType 5119 case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType 5120 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType 5121 case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType 5122 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<PublicationStatus> 5123 case -404562712: /*experimental*/ return this.experimental == null ? new Base[0] : new Base[] {this.experimental}; // BooleanType 5124 case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType 5125 case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // StringType 5126 case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail 5127 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType 5128 case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext 5129 case -507075711: /*jurisdiction*/ return this.jurisdiction == null ? new Base[0] : this.jurisdiction.toArray(new Base[this.jurisdiction.size()]); // CodeableConcept 5130 case -220463842: /*purpose*/ return this.purpose == null ? new Base[0] : new Base[] {this.purpose}; // MarkdownType 5131 case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // MarkdownType 5132 case 3292052: /*kind*/ return this.kind == null ? new Base[0] : new Base[] {this.kind}; // Enumeration<CapabilityStatement2Kind> 5133 case -246883639: /*instantiates*/ return this.instantiates == null ? new Base[0] : this.instantiates.toArray(new Base[this.instantiates.size()]); // CanonicalType 5134 case 1926037870: /*imports*/ return this.imports == null ? new Base[0] : this.imports.toArray(new Base[this.imports.size()]); // CanonicalType 5135 case 1319330215: /*software*/ return this.software == null ? new Base[0] : new Base[] {this.software}; // CapabilityStatement2SoftwareComponent 5136 case 1683336114: /*implementation*/ return this.implementation == null ? new Base[0] : new Base[] {this.implementation}; // CapabilityStatement2ImplementationComponent 5137 case 461006061: /*fhirVersion*/ return this.fhirVersion == null ? new Base[0] : new Base[] {this.fhirVersion}; // Enumeration<FHIRVersion> 5138 case -1268779017: /*format*/ return this.format == null ? new Base[0] : this.format.toArray(new Base[this.format.size()]); // CodeType 5139 case 172338783: /*patchFormat*/ return this.patchFormat == null ? new Base[0] : this.patchFormat.toArray(new Base[this.patchFormat.size()]); // CodeType 5140 case 156966506: /*implementationGuide*/ return this.implementationGuide == null ? new Base[0] : this.implementationGuide.toArray(new Base[this.implementationGuide.size()]); // CanonicalType 5141 case 3496916: /*rest*/ return this.rest == null ? new Base[0] : this.rest.toArray(new Base[this.rest.size()]); // CapabilityStatement2RestComponent 5142 default: return super.getProperty(hash, name, checkValid); 5143 } 5144 5145 } 5146 5147 @Override 5148 public Base setProperty(int hash, String name, Base value) throws FHIRException { 5149 switch (hash) { 5150 case 116079: // url 5151 this.url = castToUri(value); // UriType 5152 return value; 5153 case 351608024: // version 5154 this.version = castToString(value); // StringType 5155 return value; 5156 case 3373707: // name 5157 this.name = castToString(value); // StringType 5158 return value; 5159 case 110371416: // title 5160 this.title = castToString(value); // StringType 5161 return value; 5162 case -892481550: // status 5163 value = new PublicationStatusEnumFactory().fromType(castToCode(value)); 5164 this.status = (Enumeration) value; // Enumeration<PublicationStatus> 5165 return value; 5166 case -404562712: // experimental 5167 this.experimental = castToBoolean(value); // BooleanType 5168 return value; 5169 case 3076014: // date 5170 this.date = castToDateTime(value); // DateTimeType 5171 return value; 5172 case 1447404028: // publisher 5173 this.publisher = castToString(value); // StringType 5174 return value; 5175 case 951526432: // contact 5176 this.getContact().add(castToContactDetail(value)); // ContactDetail 5177 return value; 5178 case -1724546052: // description 5179 this.description = castToMarkdown(value); // MarkdownType 5180 return value; 5181 case -669707736: // useContext 5182 this.getUseContext().add(castToUsageContext(value)); // UsageContext 5183 return value; 5184 case -507075711: // jurisdiction 5185 this.getJurisdiction().add(castToCodeableConcept(value)); // CodeableConcept 5186 return value; 5187 case -220463842: // purpose 5188 this.purpose = castToMarkdown(value); // MarkdownType 5189 return value; 5190 case 1522889671: // copyright 5191 this.copyright = castToMarkdown(value); // MarkdownType 5192 return value; 5193 case 3292052: // kind 5194 value = new CapabilityStatement2KindEnumFactory().fromType(castToCode(value)); 5195 this.kind = (Enumeration) value; // Enumeration<CapabilityStatement2Kind> 5196 return value; 5197 case -246883639: // instantiates 5198 this.getInstantiates().add(castToCanonical(value)); // CanonicalType 5199 return value; 5200 case 1926037870: // imports 5201 this.getImports().add(castToCanonical(value)); // CanonicalType 5202 return value; 5203 case 1319330215: // software 5204 this.software = (CapabilityStatement2SoftwareComponent) value; // CapabilityStatement2SoftwareComponent 5205 return value; 5206 case 1683336114: // implementation 5207 this.implementation = (CapabilityStatement2ImplementationComponent) value; // CapabilityStatement2ImplementationComponent 5208 return value; 5209 case 461006061: // fhirVersion 5210 value = new FHIRVersionEnumFactory().fromType(castToCode(value)); 5211 this.fhirVersion = (Enumeration) value; // Enumeration<FHIRVersion> 5212 return value; 5213 case -1268779017: // format 5214 this.getFormat().add(castToCode(value)); // CodeType 5215 return value; 5216 case 172338783: // patchFormat 5217 this.getPatchFormat().add(castToCode(value)); // CodeType 5218 return value; 5219 case 156966506: // implementationGuide 5220 this.getImplementationGuide().add(castToCanonical(value)); // CanonicalType 5221 return value; 5222 case 3496916: // rest 5223 this.getRest().add((CapabilityStatement2RestComponent) value); // CapabilityStatement2RestComponent 5224 return value; 5225 default: return super.setProperty(hash, name, value); 5226 } 5227 5228 } 5229 5230 @Override 5231 public Base setProperty(String name, Base value) throws FHIRException { 5232 if (name.equals("url")) { 5233 this.url = castToUri(value); // UriType 5234 } else if (name.equals("version")) { 5235 this.version = castToString(value); // StringType 5236 } else if (name.equals("name")) { 5237 this.name = castToString(value); // StringType 5238 } else if (name.equals("title")) { 5239 this.title = castToString(value); // StringType 5240 } else if (name.equals("status")) { 5241 value = new PublicationStatusEnumFactory().fromType(castToCode(value)); 5242 this.status = (Enumeration) value; // Enumeration<PublicationStatus> 5243 } else if (name.equals("experimental")) { 5244 this.experimental = castToBoolean(value); // BooleanType 5245 } else if (name.equals("date")) { 5246 this.date = castToDateTime(value); // DateTimeType 5247 } else if (name.equals("publisher")) { 5248 this.publisher = castToString(value); // StringType 5249 } else if (name.equals("contact")) { 5250 this.getContact().add(castToContactDetail(value)); 5251 } else if (name.equals("description")) { 5252 this.description = castToMarkdown(value); // MarkdownType 5253 } else if (name.equals("useContext")) { 5254 this.getUseContext().add(castToUsageContext(value)); 5255 } else if (name.equals("jurisdiction")) { 5256 this.getJurisdiction().add(castToCodeableConcept(value)); 5257 } else if (name.equals("purpose")) { 5258 this.purpose = castToMarkdown(value); // MarkdownType 5259 } else if (name.equals("copyright")) { 5260 this.copyright = castToMarkdown(value); // MarkdownType 5261 } else if (name.equals("kind")) { 5262 value = new CapabilityStatement2KindEnumFactory().fromType(castToCode(value)); 5263 this.kind = (Enumeration) value; // Enumeration<CapabilityStatement2Kind> 5264 } else if (name.equals("instantiates")) { 5265 this.getInstantiates().add(castToCanonical(value)); 5266 } else if (name.equals("imports")) { 5267 this.getImports().add(castToCanonical(value)); 5268 } else if (name.equals("software")) { 5269 this.software = (CapabilityStatement2SoftwareComponent) value; // CapabilityStatement2SoftwareComponent 5270 } else if (name.equals("implementation")) { 5271 this.implementation = (CapabilityStatement2ImplementationComponent) value; // CapabilityStatement2ImplementationComponent 5272 } else if (name.equals("fhirVersion")) { 5273 value = new FHIRVersionEnumFactory().fromType(castToCode(value)); 5274 this.fhirVersion = (Enumeration) value; // Enumeration<FHIRVersion> 5275 } else if (name.equals("format")) { 5276 this.getFormat().add(castToCode(value)); 5277 } else if (name.equals("patchFormat")) { 5278 this.getPatchFormat().add(castToCode(value)); 5279 } else if (name.equals("implementationGuide")) { 5280 this.getImplementationGuide().add(castToCanonical(value)); 5281 } else if (name.equals("rest")) { 5282 this.getRest().add((CapabilityStatement2RestComponent) value); 5283 } else 5284 return super.setProperty(name, value); 5285 return value; 5286 } 5287 5288 @Override 5289 public Base makeProperty(int hash, String name) throws FHIRException { 5290 switch (hash) { 5291 case 116079: return getUrlElement(); 5292 case 351608024: return getVersionElement(); 5293 case 3373707: return getNameElement(); 5294 case 110371416: return getTitleElement(); 5295 case -892481550: return getStatusElement(); 5296 case -404562712: return getExperimentalElement(); 5297 case 3076014: return getDateElement(); 5298 case 1447404028: return getPublisherElement(); 5299 case 951526432: return addContact(); 5300 case -1724546052: return getDescriptionElement(); 5301 case -669707736: return addUseContext(); 5302 case -507075711: return addJurisdiction(); 5303 case -220463842: return getPurposeElement(); 5304 case 1522889671: return getCopyrightElement(); 5305 case 3292052: return getKindElement(); 5306 case -246883639: return addInstantiatesElement(); 5307 case 1926037870: return addImportsElement(); 5308 case 1319330215: return getSoftware(); 5309 case 1683336114: return getImplementation(); 5310 case 461006061: return getFhirVersionElement(); 5311 case -1268779017: return addFormatElement(); 5312 case 172338783: return addPatchFormatElement(); 5313 case 156966506: return addImplementationGuideElement(); 5314 case 3496916: return addRest(); 5315 default: return super.makeProperty(hash, name); 5316 } 5317 5318 } 5319 5320 @Override 5321 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 5322 switch (hash) { 5323 case 116079: /*url*/ return new String[] {"uri"}; 5324 case 351608024: /*version*/ return new String[] {"string"}; 5325 case 3373707: /*name*/ return new String[] {"string"}; 5326 case 110371416: /*title*/ return new String[] {"string"}; 5327 case -892481550: /*status*/ return new String[] {"code"}; 5328 case -404562712: /*experimental*/ return new String[] {"boolean"}; 5329 case 3076014: /*date*/ return new String[] {"dateTime"}; 5330 case 1447404028: /*publisher*/ return new String[] {"string"}; 5331 case 951526432: /*contact*/ return new String[] {"ContactDetail"}; 5332 case -1724546052: /*description*/ return new String[] {"markdown"}; 5333 case -669707736: /*useContext*/ return new String[] {"UsageContext"}; 5334 case -507075711: /*jurisdiction*/ return new String[] {"CodeableConcept"}; 5335 case -220463842: /*purpose*/ return new String[] {"markdown"}; 5336 case 1522889671: /*copyright*/ return new String[] {"markdown"}; 5337 case 3292052: /*kind*/ return new String[] {"code"}; 5338 case -246883639: /*instantiates*/ return new String[] {"canonical"}; 5339 case 1926037870: /*imports*/ return new String[] {"canonical"}; 5340 case 1319330215: /*software*/ return new String[] {}; 5341 case 1683336114: /*implementation*/ return new String[] {}; 5342 case 461006061: /*fhirVersion*/ return new String[] {"code"}; 5343 case -1268779017: /*format*/ return new String[] {"code"}; 5344 case 172338783: /*patchFormat*/ return new String[] {"code"}; 5345 case 156966506: /*implementationGuide*/ return new String[] {"canonical"}; 5346 case 3496916: /*rest*/ return new String[] {}; 5347 default: return super.getTypesForProperty(hash, name); 5348 } 5349 5350 } 5351 5352 @Override 5353 public Base addChild(String name) throws FHIRException { 5354 if (name.equals("url")) { 5355 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.url"); 5356 } 5357 else if (name.equals("version")) { 5358 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.version"); 5359 } 5360 else if (name.equals("name")) { 5361 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.name"); 5362 } 5363 else if (name.equals("title")) { 5364 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.title"); 5365 } 5366 else if (name.equals("status")) { 5367 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.status"); 5368 } 5369 else if (name.equals("experimental")) { 5370 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.experimental"); 5371 } 5372 else if (name.equals("date")) { 5373 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.date"); 5374 } 5375 else if (name.equals("publisher")) { 5376 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.publisher"); 5377 } 5378 else if (name.equals("contact")) { 5379 return addContact(); 5380 } 5381 else if (name.equals("description")) { 5382 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.description"); 5383 } 5384 else if (name.equals("useContext")) { 5385 return addUseContext(); 5386 } 5387 else if (name.equals("jurisdiction")) { 5388 return addJurisdiction(); 5389 } 5390 else if (name.equals("purpose")) { 5391 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.purpose"); 5392 } 5393 else if (name.equals("copyright")) { 5394 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.copyright"); 5395 } 5396 else if (name.equals("kind")) { 5397 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.kind"); 5398 } 5399 else if (name.equals("instantiates")) { 5400 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.instantiates"); 5401 } 5402 else if (name.equals("imports")) { 5403 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.imports"); 5404 } 5405 else if (name.equals("software")) { 5406 this.software = new CapabilityStatement2SoftwareComponent(); 5407 return this.software; 5408 } 5409 else if (name.equals("implementation")) { 5410 this.implementation = new CapabilityStatement2ImplementationComponent(); 5411 return this.implementation; 5412 } 5413 else if (name.equals("fhirVersion")) { 5414 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.fhirVersion"); 5415 } 5416 else if (name.equals("format")) { 5417 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.format"); 5418 } 5419 else if (name.equals("patchFormat")) { 5420 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.patchFormat"); 5421 } 5422 else if (name.equals("implementationGuide")) { 5423 throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.implementationGuide"); 5424 } 5425 else if (name.equals("rest")) { 5426 return addRest(); 5427 } 5428 else 5429 return super.addChild(name); 5430 } 5431 5432 public String fhirType() { 5433 return "CapabilityStatement2"; 5434 5435 } 5436 5437 public CapabilityStatement2 copy() { 5438 CapabilityStatement2 dst = new CapabilityStatement2(); 5439 copyValues(dst); 5440 return dst; 5441 } 5442 5443 public void copyValues(CapabilityStatement2 dst) { 5444 super.copyValues(dst); 5445 dst.url = url == null ? null : url.copy(); 5446 dst.version = version == null ? null : version.copy(); 5447 dst.name = name == null ? null : name.copy(); 5448 dst.title = title == null ? null : title.copy(); 5449 dst.status = status == null ? null : status.copy(); 5450 dst.experimental = experimental == null ? null : experimental.copy(); 5451 dst.date = date == null ? null : date.copy(); 5452 dst.publisher = publisher == null ? null : publisher.copy(); 5453 if (contact != null) { 5454 dst.contact = new ArrayList<ContactDetail>(); 5455 for (ContactDetail i : contact) 5456 dst.contact.add(i.copy()); 5457 }; 5458 dst.description = description == null ? null : description.copy(); 5459 if (useContext != null) { 5460 dst.useContext = new ArrayList<UsageContext>(); 5461 for (UsageContext i : useContext) 5462 dst.useContext.add(i.copy()); 5463 }; 5464 if (jurisdiction != null) { 5465 dst.jurisdiction = new ArrayList<CodeableConcept>(); 5466 for (CodeableConcept i : jurisdiction) 5467 dst.jurisdiction.add(i.copy()); 5468 }; 5469 dst.purpose = purpose == null ? null : purpose.copy(); 5470 dst.copyright = copyright == null ? null : copyright.copy(); 5471 dst.kind = kind == null ? null : kind.copy(); 5472 if (instantiates != null) { 5473 dst.instantiates = new ArrayList<CanonicalType>(); 5474 for (CanonicalType i : instantiates) 5475 dst.instantiates.add(i.copy()); 5476 }; 5477 if (imports != null) { 5478 dst.imports = new ArrayList<CanonicalType>(); 5479 for (CanonicalType i : imports) 5480 dst.imports.add(i.copy()); 5481 }; 5482 dst.software = software == null ? null : software.copy(); 5483 dst.implementation = implementation == null ? null : implementation.copy(); 5484 dst.fhirVersion = fhirVersion == null ? null : fhirVersion.copy(); 5485 if (format != null) { 5486 dst.format = new ArrayList<CodeType>(); 5487 for (CodeType i : format) 5488 dst.format.add(i.copy()); 5489 }; 5490 if (patchFormat != null) { 5491 dst.patchFormat = new ArrayList<CodeType>(); 5492 for (CodeType i : patchFormat) 5493 dst.patchFormat.add(i.copy()); 5494 }; 5495 if (implementationGuide != null) { 5496 dst.implementationGuide = new ArrayList<CanonicalType>(); 5497 for (CanonicalType i : implementationGuide) 5498 dst.implementationGuide.add(i.copy()); 5499 }; 5500 if (rest != null) { 5501 dst.rest = new ArrayList<CapabilityStatement2RestComponent>(); 5502 for (CapabilityStatement2RestComponent i : rest) 5503 dst.rest.add(i.copy()); 5504 }; 5505 } 5506 5507 protected CapabilityStatement2 typedCopy() { 5508 return copy(); 5509 } 5510 5511 @Override 5512 public boolean equalsDeep(Base other_) { 5513 if (!super.equalsDeep(other_)) 5514 return false; 5515 if (!(other_ instanceof CapabilityStatement2)) 5516 return false; 5517 CapabilityStatement2 o = (CapabilityStatement2) other_; 5518 return compareDeep(purpose, o.purpose, true) && compareDeep(copyright, o.copyright, true) && compareDeep(kind, o.kind, true) 5519 && compareDeep(instantiates, o.instantiates, true) && compareDeep(imports, o.imports, true) && compareDeep(software, o.software, true) 5520 && compareDeep(implementation, o.implementation, true) && compareDeep(fhirVersion, o.fhirVersion, true) 5521 && compareDeep(format, o.format, true) && compareDeep(patchFormat, o.patchFormat, true) && compareDeep(implementationGuide, o.implementationGuide, true) 5522 && compareDeep(rest, o.rest, true); 5523 } 5524 5525 @Override 5526 public boolean equalsShallow(Base other_) { 5527 if (!super.equalsShallow(other_)) 5528 return false; 5529 if (!(other_ instanceof CapabilityStatement2)) 5530 return false; 5531 CapabilityStatement2 o = (CapabilityStatement2) other_; 5532 return compareValues(purpose, o.purpose, true) && compareValues(copyright, o.copyright, true) && compareValues(kind, o.kind, true) 5533 && compareValues(fhirVersion, o.fhirVersion, true) && compareValues(format, o.format, true) && compareValues(patchFormat, o.patchFormat, true) 5534 ; 5535 } 5536 5537 public boolean isEmpty() { 5538 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(purpose, copyright, kind 5539 , instantiates, imports, software, implementation, fhirVersion, format, patchFormat 5540 , implementationGuide, rest); 5541 } 5542 5543 @Override 5544 public ResourceType getResourceType() { 5545 return ResourceType.CapabilityStatement2; 5546 } 5547 5548 /** 5549 * Search parameter: <b>date</b> 5550 * <p> 5551 * Description: <b>The capability statement2 publication date</b><br> 5552 * Type: <b>date</b><br> 5553 * Path: <b>CapabilityStatement2.date</b><br> 5554 * </p> 5555 */ 5556 @SearchParamDefinition(name="date", path="CapabilityStatement2.date", description="The capability statement2 publication date", type="date" ) 5557 public static final String SP_DATE = "date"; 5558 /** 5559 * <b>Fluent Client</b> search parameter constant for <b>date</b> 5560 * <p> 5561 * Description: <b>The capability statement2 publication date</b><br> 5562 * Type: <b>date</b><br> 5563 * Path: <b>CapabilityStatement2.date</b><br> 5564 * </p> 5565 */ 5566 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 5567 5568 /** 5569 * Search parameter: <b>resource-profile</b> 5570 * <p> 5571 * Description: <b>A profile id invoked in a capability statement</b><br> 5572 * Type: <b>reference</b><br> 5573 * Path: <b>CapabilityStatement2.rest.resource.profile</b><br> 5574 * </p> 5575 */ 5576 @SearchParamDefinition(name="resource-profile", path="CapabilityStatement2.rest.resource.profile", description="A profile id invoked in a capability statement", type="reference", target={StructureDefinition.class } ) 5577 public static final String SP_RESOURCE_PROFILE = "resource-profile"; 5578 /** 5579 * <b>Fluent Client</b> search parameter constant for <b>resource-profile</b> 5580 * <p> 5581 * Description: <b>A profile id invoked in a capability statement</b><br> 5582 * Type: <b>reference</b><br> 5583 * Path: <b>CapabilityStatement2.rest.resource.profile</b><br> 5584 * </p> 5585 */ 5586 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam RESOURCE_PROFILE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_RESOURCE_PROFILE); 5587 5588/** 5589 * Constant for fluent queries to be used to add include statements. Specifies 5590 * the path value of "<b>CapabilityStatement2:resource-profile</b>". 5591 */ 5592 public static final ca.uhn.fhir.model.api.Include INCLUDE_RESOURCE_PROFILE = new ca.uhn.fhir.model.api.Include("CapabilityStatement2:resource-profile").toLocked(); 5593 5594 /** 5595 * Search parameter: <b>context-type-value</b> 5596 * <p> 5597 * Description: <b>A use context type and value assigned to the capability statement2</b><br> 5598 * Type: <b>composite</b><br> 5599 * Path: <b></b><br> 5600 * </p> 5601 */ 5602 @SearchParamDefinition(name="context-type-value", path="CapabilityStatement2.useContext", description="A use context type and value assigned to the capability statement2", type="composite", compositeOf={"context-type", "context"} ) 5603 public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; 5604 /** 5605 * <b>Fluent Client</b> search parameter constant for <b>context-type-value</b> 5606 * <p> 5607 * Description: <b>A use context type and value assigned to the capability statement2</b><br> 5608 * Type: <b>composite</b><br> 5609 * Path: <b></b><br> 5610 * </p> 5611 */ 5612 public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam> CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam>(SP_CONTEXT_TYPE_VALUE); 5613 5614 /** 5615 * Search parameter: <b>software</b> 5616 * <p> 5617 * Description: <b>Part of the name of a software application</b><br> 5618 * Type: <b>string</b><br> 5619 * Path: <b>CapabilityStatement2.software.name</b><br> 5620 * </p> 5621 */ 5622 @SearchParamDefinition(name="software", path="CapabilityStatement2.software.name", description="Part of the name of a software application", type="string" ) 5623 public static final String SP_SOFTWARE = "software"; 5624 /** 5625 * <b>Fluent Client</b> search parameter constant for <b>software</b> 5626 * <p> 5627 * Description: <b>Part of the name of a software application</b><br> 5628 * Type: <b>string</b><br> 5629 * Path: <b>CapabilityStatement2.software.name</b><br> 5630 * </p> 5631 */ 5632 public static final ca.uhn.fhir.rest.gclient.StringClientParam SOFTWARE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_SOFTWARE); 5633 5634 /** 5635 * Search parameter: <b>resource</b> 5636 * <p> 5637 * Description: <b>Name of a resource mentioned in a capability statement</b><br> 5638 * Type: <b>token</b><br> 5639 * Path: <b>CapabilityStatement2.rest.resource.type</b><br> 5640 * </p> 5641 */ 5642 @SearchParamDefinition(name="resource", path="CapabilityStatement2.rest.resource.type", description="Name of a resource mentioned in a capability statement", type="token" ) 5643 public static final String SP_RESOURCE = "resource"; 5644 /** 5645 * <b>Fluent Client</b> search parameter constant for <b>resource</b> 5646 * <p> 5647 * Description: <b>Name of a resource mentioned in a capability statement</b><br> 5648 * Type: <b>token</b><br> 5649 * Path: <b>CapabilityStatement2.rest.resource.type</b><br> 5650 * </p> 5651 */ 5652 public static final ca.uhn.fhir.rest.gclient.TokenClientParam RESOURCE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_RESOURCE); 5653 5654 /** 5655 * Search parameter: <b>jurisdiction</b> 5656 * <p> 5657 * Description: <b>Intended jurisdiction for the capability statement2</b><br> 5658 * Type: <b>token</b><br> 5659 * Path: <b>CapabilityStatement2.jurisdiction</b><br> 5660 * </p> 5661 */ 5662 @SearchParamDefinition(name="jurisdiction", path="CapabilityStatement2.jurisdiction", description="Intended jurisdiction for the capability statement2", type="token" ) 5663 public static final String SP_JURISDICTION = "jurisdiction"; 5664 /** 5665 * <b>Fluent Client</b> search parameter constant for <b>jurisdiction</b> 5666 * <p> 5667 * Description: <b>Intended jurisdiction for the capability statement2</b><br> 5668 * Type: <b>token</b><br> 5669 * Path: <b>CapabilityStatement2.jurisdiction</b><br> 5670 * </p> 5671 */ 5672 public static final ca.uhn.fhir.rest.gclient.TokenClientParam JURISDICTION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_JURISDICTION); 5673 5674 /** 5675 * Search parameter: <b>format</b> 5676 * <p> 5677 * Description: <b>formats supported (xml | json | ttl | mime type)</b><br> 5678 * Type: <b>token</b><br> 5679 * Path: <b>CapabilityStatement2.format</b><br> 5680 * </p> 5681 */ 5682 @SearchParamDefinition(name="format", path="CapabilityStatement2.format", description="formats supported (xml | json | ttl | mime type)", type="token" ) 5683 public static final String SP_FORMAT = "format"; 5684 /** 5685 * <b>Fluent Client</b> search parameter constant for <b>format</b> 5686 * <p> 5687 * Description: <b>formats supported (xml | json | ttl | mime type)</b><br> 5688 * Type: <b>token</b><br> 5689 * Path: <b>CapabilityStatement2.format</b><br> 5690 * </p> 5691 */ 5692 public static final ca.uhn.fhir.rest.gclient.TokenClientParam FORMAT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_FORMAT); 5693 5694 /** 5695 * Search parameter: <b>description</b> 5696 * <p> 5697 * Description: <b>The description of the capability statement2</b><br> 5698 * Type: <b>string</b><br> 5699 * Path: <b>CapabilityStatement2.description</b><br> 5700 * </p> 5701 */ 5702 @SearchParamDefinition(name="description", path="CapabilityStatement2.description", description="The description of the capability statement2", type="string" ) 5703 public static final String SP_DESCRIPTION = "description"; 5704 /** 5705 * <b>Fluent Client</b> search parameter constant for <b>description</b> 5706 * <p> 5707 * Description: <b>The description of the capability statement2</b><br> 5708 * Type: <b>string</b><br> 5709 * Path: <b>CapabilityStatement2.description</b><br> 5710 * </p> 5711 */ 5712 public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION); 5713 5714 /** 5715 * Search parameter: <b>context-type</b> 5716 * <p> 5717 * Description: <b>A type of use context assigned to the capability statement2</b><br> 5718 * Type: <b>token</b><br> 5719 * Path: <b>CapabilityStatement2.useContext.code</b><br> 5720 * </p> 5721 */ 5722 @SearchParamDefinition(name="context-type", path="CapabilityStatement2.useContext.code", description="A type of use context assigned to the capability statement2", type="token" ) 5723 public static final String SP_CONTEXT_TYPE = "context-type"; 5724 /** 5725 * <b>Fluent Client</b> search parameter constant for <b>context-type</b> 5726 * <p> 5727 * Description: <b>A type of use context assigned to the capability statement2</b><br> 5728 * Type: <b>token</b><br> 5729 * Path: <b>CapabilityStatement2.useContext.code</b><br> 5730 * </p> 5731 */ 5732 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); 5733 5734 /** 5735 * Search parameter: <b>title</b> 5736 * <p> 5737 * Description: <b>The human-friendly name of the capability statement2</b><br> 5738 * Type: <b>string</b><br> 5739 * Path: <b>CapabilityStatement2.title</b><br> 5740 * </p> 5741 */ 5742 @SearchParamDefinition(name="title", path="CapabilityStatement2.title", description="The human-friendly name of the capability statement2", type="string" ) 5743 public static final String SP_TITLE = "title"; 5744 /** 5745 * <b>Fluent Client</b> search parameter constant for <b>title</b> 5746 * <p> 5747 * Description: <b>The human-friendly name of the capability statement2</b><br> 5748 * Type: <b>string</b><br> 5749 * Path: <b>CapabilityStatement2.title</b><br> 5750 * </p> 5751 */ 5752 public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE); 5753 5754 /** 5755 * Search parameter: <b>fhirversion</b> 5756 * <p> 5757 * Description: <b>The version of FHIR</b><br> 5758 * Type: <b>token</b><br> 5759 * Path: <b>CapabilityStatement2.version</b><br> 5760 * </p> 5761 */ 5762 @SearchParamDefinition(name="fhirversion", path="CapabilityStatement2.version", description="The version of FHIR", type="token" ) 5763 public static final String SP_FHIRVERSION = "fhirversion"; 5764 /** 5765 * <b>Fluent Client</b> search parameter constant for <b>fhirversion</b> 5766 * <p> 5767 * Description: <b>The version of FHIR</b><br> 5768 * Type: <b>token</b><br> 5769 * Path: <b>CapabilityStatement2.version</b><br> 5770 * </p> 5771 */ 5772 public static final ca.uhn.fhir.rest.gclient.TokenClientParam FHIRVERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_FHIRVERSION); 5773 5774 /** 5775 * Search parameter: <b>version</b> 5776 * <p> 5777 * Description: <b>The business version of the capability statement2</b><br> 5778 * Type: <b>token</b><br> 5779 * Path: <b>CapabilityStatement2.version</b><br> 5780 * </p> 5781 */ 5782 @SearchParamDefinition(name="version", path="CapabilityStatement2.version", description="The business version of the capability statement2", type="token" ) 5783 public static final String SP_VERSION = "version"; 5784 /** 5785 * <b>Fluent Client</b> search parameter constant for <b>version</b> 5786 * <p> 5787 * Description: <b>The business version of the capability statement2</b><br> 5788 * Type: <b>token</b><br> 5789 * Path: <b>CapabilityStatement2.version</b><br> 5790 * </p> 5791 */ 5792 public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); 5793 5794 /** 5795 * Search parameter: <b>url</b> 5796 * <p> 5797 * Description: <b>The uri that identifies the capability statement2</b><br> 5798 * Type: <b>uri</b><br> 5799 * Path: <b>CapabilityStatement2.url</b><br> 5800 * </p> 5801 */ 5802 @SearchParamDefinition(name="url", path="CapabilityStatement2.url", description="The uri that identifies the capability statement2", type="uri" ) 5803 public static final String SP_URL = "url"; 5804 /** 5805 * <b>Fluent Client</b> search parameter constant for <b>url</b> 5806 * <p> 5807 * Description: <b>The uri that identifies the capability statement2</b><br> 5808 * Type: <b>uri</b><br> 5809 * Path: <b>CapabilityStatement2.url</b><br> 5810 * </p> 5811 */ 5812 public static final ca.uhn.fhir.rest.gclient.UriClientParam URL = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_URL); 5813 5814 /** 5815 * Search parameter: <b>supported-profile</b> 5816 * <p> 5817 * Description: <b>Profiles for use cases supported</b><br> 5818 * Type: <b>reference</b><br> 5819 * Path: <b>CapabilityStatement2.rest.resource.supportedProfile</b><br> 5820 * </p> 5821 */ 5822 @SearchParamDefinition(name="supported-profile", path="CapabilityStatement2.rest.resource.supportedProfile", description="Profiles for use cases supported", type="reference", target={StructureDefinition.class } ) 5823 public static final String SP_SUPPORTED_PROFILE = "supported-profile"; 5824 /** 5825 * <b>Fluent Client</b> search parameter constant for <b>supported-profile</b> 5826 * <p> 5827 * Description: <b>Profiles for use cases supported</b><br> 5828 * Type: <b>reference</b><br> 5829 * Path: <b>CapabilityStatement2.rest.resource.supportedProfile</b><br> 5830 * </p> 5831 */ 5832 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUPPORTED_PROFILE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUPPORTED_PROFILE); 5833 5834/** 5835 * Constant for fluent queries to be used to add include statements. Specifies 5836 * the path value of "<b>CapabilityStatement2:supported-profile</b>". 5837 */ 5838 public static final ca.uhn.fhir.model.api.Include INCLUDE_SUPPORTED_PROFILE = new ca.uhn.fhir.model.api.Include("CapabilityStatement2:supported-profile").toLocked(); 5839 5840 /** 5841 * Search parameter: <b>mode</b> 5842 * <p> 5843 * Description: <b>Mode - restful (server/client) or messaging (sender/receiver)</b><br> 5844 * Type: <b>token</b><br> 5845 * Path: <b>CapabilityStatement2.rest.mode</b><br> 5846 * </p> 5847 */ 5848 @SearchParamDefinition(name="mode", path="CapabilityStatement2.rest.mode", description="Mode - restful (server/client) or messaging (sender/receiver)", type="token" ) 5849 public static final String SP_MODE = "mode"; 5850 /** 5851 * <b>Fluent Client</b> search parameter constant for <b>mode</b> 5852 * <p> 5853 * Description: <b>Mode - restful (server/client) or messaging (sender/receiver)</b><br> 5854 * Type: <b>token</b><br> 5855 * Path: <b>CapabilityStatement2.rest.mode</b><br> 5856 * </p> 5857 */ 5858 public static final ca.uhn.fhir.rest.gclient.TokenClientParam MODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_MODE); 5859 5860 /** 5861 * Search parameter: <b>context-quantity</b> 5862 * <p> 5863 * Description: <b>A quantity- or range-valued use context assigned to the capability statement2</b><br> 5864 * Type: <b>quantity</b><br> 5865 * Path: <b>CapabilityStatement2.useContext.valueQuantity, CapabilityStatement2.useContext.valueRange</b><br> 5866 * </p> 5867 */ 5868 @SearchParamDefinition(name="context-quantity", path="(CapabilityStatement2.useContext.value as Quantity) | (CapabilityStatement2.useContext.value as Range)", description="A quantity- or range-valued use context assigned to the capability statement2", type="quantity" ) 5869 public static final String SP_CONTEXT_QUANTITY = "context-quantity"; 5870 /** 5871 * <b>Fluent Client</b> search parameter constant for <b>context-quantity</b> 5872 * <p> 5873 * Description: <b>A quantity- or range-valued use context assigned to the capability statement2</b><br> 5874 * Type: <b>quantity</b><br> 5875 * Path: <b>CapabilityStatement2.useContext.valueQuantity, CapabilityStatement2.useContext.valueRange</b><br> 5876 * </p> 5877 */ 5878 public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); 5879 5880 /** 5881 * Search parameter: <b>name</b> 5882 * <p> 5883 * Description: <b>Computationally friendly name of the capability statement2</b><br> 5884 * Type: <b>string</b><br> 5885 * Path: <b>CapabilityStatement2.name</b><br> 5886 * </p> 5887 */ 5888 @SearchParamDefinition(name="name", path="CapabilityStatement2.name", description="Computationally friendly name of the capability statement2", type="string" ) 5889 public static final String SP_NAME = "name"; 5890 /** 5891 * <b>Fluent Client</b> search parameter constant for <b>name</b> 5892 * <p> 5893 * Description: <b>Computationally friendly name of the capability statement2</b><br> 5894 * Type: <b>string</b><br> 5895 * Path: <b>CapabilityStatement2.name</b><br> 5896 * </p> 5897 */ 5898 public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); 5899 5900 /** 5901 * Search parameter: <b>context</b> 5902 * <p> 5903 * Description: <b>A use context assigned to the capability statement2</b><br> 5904 * Type: <b>token</b><br> 5905 * Path: <b>CapabilityStatement2.useContext.valueCodeableConcept</b><br> 5906 * </p> 5907 */ 5908 @SearchParamDefinition(name="context", path="(CapabilityStatement2.useContext.value as CodeableConcept)", description="A use context assigned to the capability statement2", type="token" ) 5909 public static final String SP_CONTEXT = "context"; 5910 /** 5911 * <b>Fluent Client</b> search parameter constant for <b>context</b> 5912 * <p> 5913 * Description: <b>A use context assigned to the capability statement2</b><br> 5914 * Type: <b>token</b><br> 5915 * Path: <b>CapabilityStatement2.useContext.valueCodeableConcept</b><br> 5916 * </p> 5917 */ 5918 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); 5919 5920 /** 5921 * Search parameter: <b>publisher</b> 5922 * <p> 5923 * Description: <b>Name of the publisher of the capability statement2</b><br> 5924 * Type: <b>string</b><br> 5925 * Path: <b>CapabilityStatement2.publisher</b><br> 5926 * </p> 5927 */ 5928 @SearchParamDefinition(name="publisher", path="CapabilityStatement2.publisher", description="Name of the publisher of the capability statement2", type="string" ) 5929 public static final String SP_PUBLISHER = "publisher"; 5930 /** 5931 * <b>Fluent Client</b> search parameter constant for <b>publisher</b> 5932 * <p> 5933 * Description: <b>Name of the publisher of the capability statement2</b><br> 5934 * Type: <b>string</b><br> 5935 * Path: <b>CapabilityStatement2.publisher</b><br> 5936 * </p> 5937 */ 5938 public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER); 5939 5940 /** 5941 * Search parameter: <b>context-type-quantity</b> 5942 * <p> 5943 * Description: <b>A use context type and quantity- or range-based value assigned to the capability statement2</b><br> 5944 * Type: <b>composite</b><br> 5945 * Path: <b></b><br> 5946 * </p> 5947 */ 5948 @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement2.useContext", description="A use context type and quantity- or range-based value assigned to the capability statement2", type="composite", compositeOf={"context-type", "context-quantity"} ) 5949 public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; 5950 /** 5951 * <b>Fluent Client</b> search parameter constant for <b>context-type-quantity</b> 5952 * <p> 5953 * Description: <b>A use context type and quantity- or range-based value assigned to the capability statement2</b><br> 5954 * Type: <b>composite</b><br> 5955 * Path: <b></b><br> 5956 * </p> 5957 */ 5958 public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam> CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam>(SP_CONTEXT_TYPE_QUANTITY); 5959 5960 /** 5961 * Search parameter: <b>guide</b> 5962 * <p> 5963 * Description: <b>Implementation guides supported</b><br> 5964 * Type: <b>reference</b><br> 5965 * Path: <b>CapabilityStatement2.implementationGuide</b><br> 5966 * </p> 5967 */ 5968 @SearchParamDefinition(name="guide", path="CapabilityStatement2.implementationGuide", description="Implementation guides supported", type="reference", target={ImplementationGuide.class } ) 5969 public static final String SP_GUIDE = "guide"; 5970 /** 5971 * <b>Fluent Client</b> search parameter constant for <b>guide</b> 5972 * <p> 5973 * Description: <b>Implementation guides supported</b><br> 5974 * Type: <b>reference</b><br> 5975 * Path: <b>CapabilityStatement2.implementationGuide</b><br> 5976 * </p> 5977 */ 5978 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam GUIDE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_GUIDE); 5979 5980/** 5981 * Constant for fluent queries to be used to add include statements. Specifies 5982 * the path value of "<b>CapabilityStatement2:guide</b>". 5983 */ 5984 public static final ca.uhn.fhir.model.api.Include INCLUDE_GUIDE = new ca.uhn.fhir.model.api.Include("CapabilityStatement2:guide").toLocked(); 5985 5986 /** 5987 * Search parameter: <b>status</b> 5988 * <p> 5989 * Description: <b>The current status of the capability statement2</b><br> 5990 * Type: <b>token</b><br> 5991 * Path: <b>CapabilityStatement2.status</b><br> 5992 * </p> 5993 */ 5994 @SearchParamDefinition(name="status", path="CapabilityStatement2.status", description="The current status of the capability statement2", type="token" ) 5995 public static final String SP_STATUS = "status"; 5996 /** 5997 * <b>Fluent Client</b> search parameter constant for <b>status</b> 5998 * <p> 5999 * Description: <b>The current status of the capability statement2</b><br> 6000 * Type: <b>token</b><br> 6001 * Path: <b>CapabilityStatement2.status</b><br> 6002 * </p> 6003 */ 6004 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 6005 6006 6007} 6008