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 TerminologyCapabilities resource documents a set of capabilities (behaviors) of a FHIR Terminology Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation. 071 */ 072@ResourceDef(name="TerminologyCapabilities", profile="http://hl7.org/fhir/StructureDefinition/TerminologyCapabilities") 073@ChildOrder(names={"url", "version", "name", "title", "status", "experimental", "date", "publisher", "contact", "description", "useContext", "jurisdiction", "purpose", "copyright", "kind", "software", "implementation", "lockedDate", "codeSystem", "expansion", "codeSearch", "validateCode", "translation", "closure"}) 074public class TerminologyCapabilities extends MetadataResource { 075 076 public enum CapabilityStatementKind { 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 CapabilityStatementKind 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 CapabilityStatementKind 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 CapabilityStatementKindEnumFactory implements EnumFactory<CapabilityStatementKind> { 142 public CapabilityStatementKind 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 CapabilityStatementKind.INSTANCE; 148 if ("capability".equals(codeString)) 149 return CapabilityStatementKind.CAPABILITY; 150 if ("requirements".equals(codeString)) 151 return CapabilityStatementKind.REQUIREMENTS; 152 throw new IllegalArgumentException("Unknown CapabilityStatementKind code '"+codeString+"'"); 153 } 154 public Enumeration<CapabilityStatementKind> fromType(Base code) throws FHIRException { 155 if (code == null) 156 return null; 157 if (code.isEmpty()) 158 return new Enumeration<CapabilityStatementKind>(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<CapabilityStatementKind>(this, CapabilityStatementKind.INSTANCE); 164 if ("capability".equals(codeString)) 165 return new Enumeration<CapabilityStatementKind>(this, CapabilityStatementKind.CAPABILITY); 166 if ("requirements".equals(codeString)) 167 return new Enumeration<CapabilityStatementKind>(this, CapabilityStatementKind.REQUIREMENTS); 168 throw new FHIRException("Unknown CapabilityStatementKind code '"+codeString+"'"); 169 } 170 public String toCode(CapabilityStatementKind code) { 171 if (code == CapabilityStatementKind.INSTANCE) 172 return "instance"; 173 if (code == CapabilityStatementKind.CAPABILITY) 174 return "capability"; 175 if (code == CapabilityStatementKind.REQUIREMENTS) 176 return "requirements"; 177 return "?"; 178 } 179 public String toSystem(CapabilityStatementKind code) { 180 return code.getSystem(); 181 } 182 } 183 184 public enum CodeSearchSupport { 185 /** 186 * The search for code on ValueSet only includes codes explicitly detailed on includes or expansions. 187 */ 188 EXPLICIT, 189 /** 190 * The search for code on ValueSet only includes all codes based on the expansion of the value set. 191 */ 192 ALL, 193 /** 194 * added to help the parsers with the generic types 195 */ 196 NULL; 197 public static CodeSearchSupport fromCode(String codeString) throws FHIRException { 198 if (codeString == null || "".equals(codeString)) 199 return null; 200 if ("explicit".equals(codeString)) 201 return EXPLICIT; 202 if ("all".equals(codeString)) 203 return ALL; 204 if (Configuration.isAcceptInvalidEnums()) 205 return null; 206 else 207 throw new FHIRException("Unknown CodeSearchSupport code '"+codeString+"'"); 208 } 209 public String toCode() { 210 switch (this) { 211 case EXPLICIT: return "explicit"; 212 case ALL: return "all"; 213 default: return "?"; 214 } 215 } 216 public String getSystem() { 217 switch (this) { 218 case EXPLICIT: return "http://hl7.org/fhir/code-search-support"; 219 case ALL: return "http://hl7.org/fhir/code-search-support"; 220 default: return "?"; 221 } 222 } 223 public String getDefinition() { 224 switch (this) { 225 case EXPLICIT: return "The search for code on ValueSet only includes codes explicitly detailed on includes or expansions."; 226 case ALL: return "The search for code on ValueSet only includes all codes based on the expansion of the value set."; 227 default: return "?"; 228 } 229 } 230 public String getDisplay() { 231 switch (this) { 232 case EXPLICIT: return "Explicit Codes"; 233 case ALL: return "Implicit Codes"; 234 default: return "?"; 235 } 236 } 237 } 238 239 public static class CodeSearchSupportEnumFactory implements EnumFactory<CodeSearchSupport> { 240 public CodeSearchSupport fromCode(String codeString) throws IllegalArgumentException { 241 if (codeString == null || "".equals(codeString)) 242 if (codeString == null || "".equals(codeString)) 243 return null; 244 if ("explicit".equals(codeString)) 245 return CodeSearchSupport.EXPLICIT; 246 if ("all".equals(codeString)) 247 return CodeSearchSupport.ALL; 248 throw new IllegalArgumentException("Unknown CodeSearchSupport code '"+codeString+"'"); 249 } 250 public Enumeration<CodeSearchSupport> fromType(Base code) throws FHIRException { 251 if (code == null) 252 return null; 253 if (code.isEmpty()) 254 return new Enumeration<CodeSearchSupport>(this); 255 String codeString = ((PrimitiveType) code).asStringValue(); 256 if (codeString == null || "".equals(codeString)) 257 return null; 258 if ("explicit".equals(codeString)) 259 return new Enumeration<CodeSearchSupport>(this, CodeSearchSupport.EXPLICIT); 260 if ("all".equals(codeString)) 261 return new Enumeration<CodeSearchSupport>(this, CodeSearchSupport.ALL); 262 throw new FHIRException("Unknown CodeSearchSupport code '"+codeString+"'"); 263 } 264 public String toCode(CodeSearchSupport code) { 265 if (code == CodeSearchSupport.EXPLICIT) 266 return "explicit"; 267 if (code == CodeSearchSupport.ALL) 268 return "all"; 269 return "?"; 270 } 271 public String toSystem(CodeSearchSupport code) { 272 return code.getSystem(); 273 } 274 } 275 276 @Block() 277 public static class TerminologyCapabilitiesSoftwareComponent extends BackboneElement implements IBaseBackboneElement { 278 /** 279 * Name the software is known by. 280 */ 281 @Child(name = "name", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=true) 282 @Description(shortDefinition="A name the software is known by", formalDefinition="Name the software is known by." ) 283 protected StringType name; 284 285 /** 286 * The version identifier for the software covered by this statement. 287 */ 288 @Child(name = "version", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=true) 289 @Description(shortDefinition="Version covered by this statement", formalDefinition="The version identifier for the software covered by this statement." ) 290 protected StringType version; 291 292 private static final long serialVersionUID = -790299911L; 293 294 /** 295 * Constructor 296 */ 297 public TerminologyCapabilitiesSoftwareComponent() { 298 super(); 299 } 300 301 /** 302 * Constructor 303 */ 304 public TerminologyCapabilitiesSoftwareComponent(StringType name) { 305 super(); 306 this.name = name; 307 } 308 309 /** 310 * @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 311 */ 312 public StringType getNameElement() { 313 if (this.name == null) 314 if (Configuration.errorOnAutoCreate()) 315 throw new Error("Attempt to auto-create TerminologyCapabilitiesSoftwareComponent.name"); 316 else if (Configuration.doAutoCreate()) 317 this.name = new StringType(); // bb 318 return this.name; 319 } 320 321 public boolean hasNameElement() { 322 return this.name != null && !this.name.isEmpty(); 323 } 324 325 public boolean hasName() { 326 return this.name != null && !this.name.isEmpty(); 327 } 328 329 /** 330 * @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 331 */ 332 public TerminologyCapabilitiesSoftwareComponent setNameElement(StringType value) { 333 this.name = value; 334 return this; 335 } 336 337 /** 338 * @return Name the software is known by. 339 */ 340 public String getName() { 341 return this.name == null ? null : this.name.getValue(); 342 } 343 344 /** 345 * @param value Name the software is known by. 346 */ 347 public TerminologyCapabilitiesSoftwareComponent setName(String value) { 348 if (this.name == null) 349 this.name = new StringType(); 350 this.name.setValue(value); 351 return this; 352 } 353 354 /** 355 * @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 356 */ 357 public StringType getVersionElement() { 358 if (this.version == null) 359 if (Configuration.errorOnAutoCreate()) 360 throw new Error("Attempt to auto-create TerminologyCapabilitiesSoftwareComponent.version"); 361 else if (Configuration.doAutoCreate()) 362 this.version = new StringType(); // bb 363 return this.version; 364 } 365 366 public boolean hasVersionElement() { 367 return this.version != null && !this.version.isEmpty(); 368 } 369 370 public boolean hasVersion() { 371 return this.version != null && !this.version.isEmpty(); 372 } 373 374 /** 375 * @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 376 */ 377 public TerminologyCapabilitiesSoftwareComponent setVersionElement(StringType value) { 378 this.version = value; 379 return this; 380 } 381 382 /** 383 * @return The version identifier for the software covered by this statement. 384 */ 385 public String getVersion() { 386 return this.version == null ? null : this.version.getValue(); 387 } 388 389 /** 390 * @param value The version identifier for the software covered by this statement. 391 */ 392 public TerminologyCapabilitiesSoftwareComponent setVersion(String value) { 393 if (Utilities.noString(value)) 394 this.version = null; 395 else { 396 if (this.version == null) 397 this.version = new StringType(); 398 this.version.setValue(value); 399 } 400 return this; 401 } 402 403 protected void listChildren(List<Property> children) { 404 super.listChildren(children); 405 children.add(new Property("name", "string", "Name the software is known by.", 0, 1, name)); 406 children.add(new Property("version", "string", "The version identifier for the software covered by this statement.", 0, 1, version)); 407 } 408 409 @Override 410 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 411 switch (_hash) { 412 case 3373707: /*name*/ return new Property("name", "string", "Name the software is known by.", 0, 1, name); 413 case 351608024: /*version*/ return new Property("version", "string", "The version identifier for the software covered by this statement.", 0, 1, version); 414 default: return super.getNamedProperty(_hash, _name, _checkValid); 415 } 416 417 } 418 419 @Override 420 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 421 switch (hash) { 422 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType 423 case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType 424 default: return super.getProperty(hash, name, checkValid); 425 } 426 427 } 428 429 @Override 430 public Base setProperty(int hash, String name, Base value) throws FHIRException { 431 switch (hash) { 432 case 3373707: // name 433 this.name = castToString(value); // StringType 434 return value; 435 case 351608024: // version 436 this.version = castToString(value); // StringType 437 return value; 438 default: return super.setProperty(hash, name, value); 439 } 440 441 } 442 443 @Override 444 public Base setProperty(String name, Base value) throws FHIRException { 445 if (name.equals("name")) { 446 this.name = castToString(value); // StringType 447 } else if (name.equals("version")) { 448 this.version = castToString(value); // StringType 449 } else 450 return super.setProperty(name, value); 451 return value; 452 } 453 454 @Override 455 public Base makeProperty(int hash, String name) throws FHIRException { 456 switch (hash) { 457 case 3373707: return getNameElement(); 458 case 351608024: return getVersionElement(); 459 default: return super.makeProperty(hash, name); 460 } 461 462 } 463 464 @Override 465 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 466 switch (hash) { 467 case 3373707: /*name*/ return new String[] {"string"}; 468 case 351608024: /*version*/ return new String[] {"string"}; 469 default: return super.getTypesForProperty(hash, name); 470 } 471 472 } 473 474 @Override 475 public Base addChild(String name) throws FHIRException { 476 if (name.equals("name")) { 477 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.name"); 478 } 479 else if (name.equals("version")) { 480 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.version"); 481 } 482 else 483 return super.addChild(name); 484 } 485 486 public TerminologyCapabilitiesSoftwareComponent copy() { 487 TerminologyCapabilitiesSoftwareComponent dst = new TerminologyCapabilitiesSoftwareComponent(); 488 copyValues(dst); 489 return dst; 490 } 491 492 public void copyValues(TerminologyCapabilitiesSoftwareComponent dst) { 493 super.copyValues(dst); 494 dst.name = name == null ? null : name.copy(); 495 dst.version = version == null ? null : version.copy(); 496 } 497 498 @Override 499 public boolean equalsDeep(Base other_) { 500 if (!super.equalsDeep(other_)) 501 return false; 502 if (!(other_ instanceof TerminologyCapabilitiesSoftwareComponent)) 503 return false; 504 TerminologyCapabilitiesSoftwareComponent o = (TerminologyCapabilitiesSoftwareComponent) other_; 505 return compareDeep(name, o.name, true) && compareDeep(version, o.version, true); 506 } 507 508 @Override 509 public boolean equalsShallow(Base other_) { 510 if (!super.equalsShallow(other_)) 511 return false; 512 if (!(other_ instanceof TerminologyCapabilitiesSoftwareComponent)) 513 return false; 514 TerminologyCapabilitiesSoftwareComponent o = (TerminologyCapabilitiesSoftwareComponent) other_; 515 return compareValues(name, o.name, true) && compareValues(version, o.version, true); 516 } 517 518 public boolean isEmpty() { 519 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, version); 520 } 521 522 public String fhirType() { 523 return "TerminologyCapabilities.software"; 524 525 } 526 527 } 528 529 @Block() 530 public static class TerminologyCapabilitiesImplementationComponent extends BackboneElement implements IBaseBackboneElement { 531 /** 532 * Information about the specific installation that this terminology capability statement relates to. 533 */ 534 @Child(name = "description", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=true) 535 @Description(shortDefinition="Describes this specific instance", formalDefinition="Information about the specific installation that this terminology capability statement relates to." ) 536 protected StringType description; 537 538 /** 539 * An absolute base URL for the implementation. 540 */ 541 @Child(name = "url", type = {UrlType.class}, order=2, min=0, max=1, modifier=false, summary=true) 542 @Description(shortDefinition="Base URL for the implementation", formalDefinition="An absolute base URL for the implementation." ) 543 protected UrlType url; 544 545 private static final long serialVersionUID = 98009649L; 546 547 /** 548 * Constructor 549 */ 550 public TerminologyCapabilitiesImplementationComponent() { 551 super(); 552 } 553 554 /** 555 * Constructor 556 */ 557 public TerminologyCapabilitiesImplementationComponent(StringType description) { 558 super(); 559 this.description = description; 560 } 561 562 /** 563 * @return {@link #description} (Information about the specific installation that this terminology capability statement relates to.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 564 */ 565 public StringType getDescriptionElement() { 566 if (this.description == null) 567 if (Configuration.errorOnAutoCreate()) 568 throw new Error("Attempt to auto-create TerminologyCapabilitiesImplementationComponent.description"); 569 else if (Configuration.doAutoCreate()) 570 this.description = new StringType(); // bb 571 return this.description; 572 } 573 574 public boolean hasDescriptionElement() { 575 return this.description != null && !this.description.isEmpty(); 576 } 577 578 public boolean hasDescription() { 579 return this.description != null && !this.description.isEmpty(); 580 } 581 582 /** 583 * @param value {@link #description} (Information about the specific installation that this terminology capability statement relates to.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 584 */ 585 public TerminologyCapabilitiesImplementationComponent setDescriptionElement(StringType value) { 586 this.description = value; 587 return this; 588 } 589 590 /** 591 * @return Information about the specific installation that this terminology capability statement relates to. 592 */ 593 public String getDescription() { 594 return this.description == null ? null : this.description.getValue(); 595 } 596 597 /** 598 * @param value Information about the specific installation that this terminology capability statement relates to. 599 */ 600 public TerminologyCapabilitiesImplementationComponent setDescription(String value) { 601 if (this.description == null) 602 this.description = new StringType(); 603 this.description.setValue(value); 604 return this; 605 } 606 607 /** 608 * @return {@link #url} (An absolute base URL for the implementation.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 609 */ 610 public UrlType getUrlElement() { 611 if (this.url == null) 612 if (Configuration.errorOnAutoCreate()) 613 throw new Error("Attempt to auto-create TerminologyCapabilitiesImplementationComponent.url"); 614 else if (Configuration.doAutoCreate()) 615 this.url = new UrlType(); // bb 616 return this.url; 617 } 618 619 public boolean hasUrlElement() { 620 return this.url != null && !this.url.isEmpty(); 621 } 622 623 public boolean hasUrl() { 624 return this.url != null && !this.url.isEmpty(); 625 } 626 627 /** 628 * @param value {@link #url} (An absolute base URL for the implementation.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 629 */ 630 public TerminologyCapabilitiesImplementationComponent setUrlElement(UrlType value) { 631 this.url = value; 632 return this; 633 } 634 635 /** 636 * @return An absolute base URL for the implementation. 637 */ 638 public String getUrl() { 639 return this.url == null ? null : this.url.getValue(); 640 } 641 642 /** 643 * @param value An absolute base URL for the implementation. 644 */ 645 public TerminologyCapabilitiesImplementationComponent setUrl(String value) { 646 if (Utilities.noString(value)) 647 this.url = null; 648 else { 649 if (this.url == null) 650 this.url = new UrlType(); 651 this.url.setValue(value); 652 } 653 return this; 654 } 655 656 protected void listChildren(List<Property> children) { 657 super.listChildren(children); 658 children.add(new Property("description", "string", "Information about the specific installation that this terminology capability statement relates to.", 0, 1, description)); 659 children.add(new Property("url", "url", "An absolute base URL for the implementation.", 0, 1, url)); 660 } 661 662 @Override 663 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 664 switch (_hash) { 665 case -1724546052: /*description*/ return new Property("description", "string", "Information about the specific installation that this terminology capability statement relates to.", 0, 1, description); 666 case 116079: /*url*/ return new Property("url", "url", "An absolute base URL for the implementation.", 0, 1, url); 667 default: return super.getNamedProperty(_hash, _name, _checkValid); 668 } 669 670 } 671 672 @Override 673 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 674 switch (hash) { 675 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType 676 case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UrlType 677 default: return super.getProperty(hash, name, checkValid); 678 } 679 680 } 681 682 @Override 683 public Base setProperty(int hash, String name, Base value) throws FHIRException { 684 switch (hash) { 685 case -1724546052: // description 686 this.description = castToString(value); // StringType 687 return value; 688 case 116079: // url 689 this.url = castToUrl(value); // UrlType 690 return value; 691 default: return super.setProperty(hash, name, value); 692 } 693 694 } 695 696 @Override 697 public Base setProperty(String name, Base value) throws FHIRException { 698 if (name.equals("description")) { 699 this.description = castToString(value); // StringType 700 } else if (name.equals("url")) { 701 this.url = castToUrl(value); // UrlType 702 } else 703 return super.setProperty(name, value); 704 return value; 705 } 706 707 @Override 708 public Base makeProperty(int hash, String name) throws FHIRException { 709 switch (hash) { 710 case -1724546052: return getDescriptionElement(); 711 case 116079: return getUrlElement(); 712 default: return super.makeProperty(hash, name); 713 } 714 715 } 716 717 @Override 718 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 719 switch (hash) { 720 case -1724546052: /*description*/ return new String[] {"string"}; 721 case 116079: /*url*/ return new String[] {"url"}; 722 default: return super.getTypesForProperty(hash, name); 723 } 724 725 } 726 727 @Override 728 public Base addChild(String name) throws FHIRException { 729 if (name.equals("description")) { 730 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.description"); 731 } 732 else if (name.equals("url")) { 733 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.url"); 734 } 735 else 736 return super.addChild(name); 737 } 738 739 public TerminologyCapabilitiesImplementationComponent copy() { 740 TerminologyCapabilitiesImplementationComponent dst = new TerminologyCapabilitiesImplementationComponent(); 741 copyValues(dst); 742 return dst; 743 } 744 745 public void copyValues(TerminologyCapabilitiesImplementationComponent dst) { 746 super.copyValues(dst); 747 dst.description = description == null ? null : description.copy(); 748 dst.url = url == null ? null : url.copy(); 749 } 750 751 @Override 752 public boolean equalsDeep(Base other_) { 753 if (!super.equalsDeep(other_)) 754 return false; 755 if (!(other_ instanceof TerminologyCapabilitiesImplementationComponent)) 756 return false; 757 TerminologyCapabilitiesImplementationComponent o = (TerminologyCapabilitiesImplementationComponent) other_; 758 return compareDeep(description, o.description, true) && compareDeep(url, o.url, true); 759 } 760 761 @Override 762 public boolean equalsShallow(Base other_) { 763 if (!super.equalsShallow(other_)) 764 return false; 765 if (!(other_ instanceof TerminologyCapabilitiesImplementationComponent)) 766 return false; 767 TerminologyCapabilitiesImplementationComponent o = (TerminologyCapabilitiesImplementationComponent) other_; 768 return compareValues(description, o.description, true) && compareValues(url, o.url, true); 769 } 770 771 public boolean isEmpty() { 772 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(description, url); 773 } 774 775 public String fhirType() { 776 return "TerminologyCapabilities.implementation"; 777 778 } 779 780 } 781 782 @Block() 783 public static class TerminologyCapabilitiesCodeSystemComponent extends BackboneElement implements IBaseBackboneElement { 784 /** 785 * URI for the Code System. 786 */ 787 @Child(name = "uri", type = {CanonicalType.class}, order=1, min=0, max=1, modifier=false, summary=false) 788 @Description(shortDefinition="URI for the Code System", formalDefinition="URI for the Code System." ) 789 protected CanonicalType uri; 790 791 /** 792 * For the code system, a list of versions that are supported by the server. 793 */ 794 @Child(name = "version", type = {}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 795 @Description(shortDefinition="Version of Code System supported", formalDefinition="For the code system, a list of versions that are supported by the server." ) 796 protected List<TerminologyCapabilitiesCodeSystemVersionComponent> version; 797 798 /** 799 * True if subsumption is supported for this version of the code system. 800 */ 801 @Child(name = "subsumption", type = {BooleanType.class}, order=3, min=0, max=1, modifier=false, summary=false) 802 @Description(shortDefinition="Whether subsumption is supported", formalDefinition="True if subsumption is supported for this version of the code system." ) 803 protected BooleanType subsumption; 804 805 private static final long serialVersionUID = -1593622817L; 806 807 /** 808 * Constructor 809 */ 810 public TerminologyCapabilitiesCodeSystemComponent() { 811 super(); 812 } 813 814 /** 815 * @return {@link #uri} (URI for the Code System.). This is the underlying object with id, value and extensions. The accessor "getUri" gives direct access to the value 816 */ 817 public CanonicalType getUriElement() { 818 if (this.uri == null) 819 if (Configuration.errorOnAutoCreate()) 820 throw new Error("Attempt to auto-create TerminologyCapabilitiesCodeSystemComponent.uri"); 821 else if (Configuration.doAutoCreate()) 822 this.uri = new CanonicalType(); // bb 823 return this.uri; 824 } 825 826 public boolean hasUriElement() { 827 return this.uri != null && !this.uri.isEmpty(); 828 } 829 830 public boolean hasUri() { 831 return this.uri != null && !this.uri.isEmpty(); 832 } 833 834 /** 835 * @param value {@link #uri} (URI for the Code System.). This is the underlying object with id, value and extensions. The accessor "getUri" gives direct access to the value 836 */ 837 public TerminologyCapabilitiesCodeSystemComponent setUriElement(CanonicalType value) { 838 this.uri = value; 839 return this; 840 } 841 842 /** 843 * @return URI for the Code System. 844 */ 845 public String getUri() { 846 return this.uri == null ? null : this.uri.getValue(); 847 } 848 849 /** 850 * @param value URI for the Code System. 851 */ 852 public TerminologyCapabilitiesCodeSystemComponent setUri(String value) { 853 if (Utilities.noString(value)) 854 this.uri = null; 855 else { 856 if (this.uri == null) 857 this.uri = new CanonicalType(); 858 this.uri.setValue(value); 859 } 860 return this; 861 } 862 863 /** 864 * @return {@link #version} (For the code system, a list of versions that are supported by the server.) 865 */ 866 public List<TerminologyCapabilitiesCodeSystemVersionComponent> getVersion() { 867 if (this.version == null) 868 this.version = new ArrayList<TerminologyCapabilitiesCodeSystemVersionComponent>(); 869 return this.version; 870 } 871 872 /** 873 * @return Returns a reference to <code>this</code> for easy method chaining 874 */ 875 public TerminologyCapabilitiesCodeSystemComponent setVersion(List<TerminologyCapabilitiesCodeSystemVersionComponent> theVersion) { 876 this.version = theVersion; 877 return this; 878 } 879 880 public boolean hasVersion() { 881 if (this.version == null) 882 return false; 883 for (TerminologyCapabilitiesCodeSystemVersionComponent item : this.version) 884 if (!item.isEmpty()) 885 return true; 886 return false; 887 } 888 889 public TerminologyCapabilitiesCodeSystemVersionComponent addVersion() { //3 890 TerminologyCapabilitiesCodeSystemVersionComponent t = new TerminologyCapabilitiesCodeSystemVersionComponent(); 891 if (this.version == null) 892 this.version = new ArrayList<TerminologyCapabilitiesCodeSystemVersionComponent>(); 893 this.version.add(t); 894 return t; 895 } 896 897 public TerminologyCapabilitiesCodeSystemComponent addVersion(TerminologyCapabilitiesCodeSystemVersionComponent t) { //3 898 if (t == null) 899 return this; 900 if (this.version == null) 901 this.version = new ArrayList<TerminologyCapabilitiesCodeSystemVersionComponent>(); 902 this.version.add(t); 903 return this; 904 } 905 906 /** 907 * @return The first repetition of repeating field {@link #version}, creating it if it does not already exist 908 */ 909 public TerminologyCapabilitiesCodeSystemVersionComponent getVersionFirstRep() { 910 if (getVersion().isEmpty()) { 911 addVersion(); 912 } 913 return getVersion().get(0); 914 } 915 916 /** 917 * @return {@link #subsumption} (True if subsumption is supported for this version of the code system.). This is the underlying object with id, value and extensions. The accessor "getSubsumption" gives direct access to the value 918 */ 919 public BooleanType getSubsumptionElement() { 920 if (this.subsumption == null) 921 if (Configuration.errorOnAutoCreate()) 922 throw new Error("Attempt to auto-create TerminologyCapabilitiesCodeSystemComponent.subsumption"); 923 else if (Configuration.doAutoCreate()) 924 this.subsumption = new BooleanType(); // bb 925 return this.subsumption; 926 } 927 928 public boolean hasSubsumptionElement() { 929 return this.subsumption != null && !this.subsumption.isEmpty(); 930 } 931 932 public boolean hasSubsumption() { 933 return this.subsumption != null && !this.subsumption.isEmpty(); 934 } 935 936 /** 937 * @param value {@link #subsumption} (True if subsumption is supported for this version of the code system.). This is the underlying object with id, value and extensions. The accessor "getSubsumption" gives direct access to the value 938 */ 939 public TerminologyCapabilitiesCodeSystemComponent setSubsumptionElement(BooleanType value) { 940 this.subsumption = value; 941 return this; 942 } 943 944 /** 945 * @return True if subsumption is supported for this version of the code system. 946 */ 947 public boolean getSubsumption() { 948 return this.subsumption == null || this.subsumption.isEmpty() ? false : this.subsumption.getValue(); 949 } 950 951 /** 952 * @param value True if subsumption is supported for this version of the code system. 953 */ 954 public TerminologyCapabilitiesCodeSystemComponent setSubsumption(boolean value) { 955 if (this.subsumption == null) 956 this.subsumption = new BooleanType(); 957 this.subsumption.setValue(value); 958 return this; 959 } 960 961 protected void listChildren(List<Property> children) { 962 super.listChildren(children); 963 children.add(new Property("uri", "canonical(CodeSystem)", "URI for the Code System.", 0, 1, uri)); 964 children.add(new Property("version", "", "For the code system, a list of versions that are supported by the server.", 0, java.lang.Integer.MAX_VALUE, version)); 965 children.add(new Property("subsumption", "boolean", "True if subsumption is supported for this version of the code system.", 0, 1, subsumption)); 966 } 967 968 @Override 969 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 970 switch (_hash) { 971 case 116076: /*uri*/ return new Property("uri", "canonical(CodeSystem)", "URI for the Code System.", 0, 1, uri); 972 case 351608024: /*version*/ return new Property("version", "", "For the code system, a list of versions that are supported by the server.", 0, java.lang.Integer.MAX_VALUE, version); 973 case -499084711: /*subsumption*/ return new Property("subsumption", "boolean", "True if subsumption is supported for this version of the code system.", 0, 1, subsumption); 974 default: return super.getNamedProperty(_hash, _name, _checkValid); 975 } 976 977 } 978 979 @Override 980 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 981 switch (hash) { 982 case 116076: /*uri*/ return this.uri == null ? new Base[0] : new Base[] {this.uri}; // CanonicalType 983 case 351608024: /*version*/ return this.version == null ? new Base[0] : this.version.toArray(new Base[this.version.size()]); // TerminologyCapabilitiesCodeSystemVersionComponent 984 case -499084711: /*subsumption*/ return this.subsumption == null ? new Base[0] : new Base[] {this.subsumption}; // BooleanType 985 default: return super.getProperty(hash, name, checkValid); 986 } 987 988 } 989 990 @Override 991 public Base setProperty(int hash, String name, Base value) throws FHIRException { 992 switch (hash) { 993 case 116076: // uri 994 this.uri = castToCanonical(value); // CanonicalType 995 return value; 996 case 351608024: // version 997 this.getVersion().add((TerminologyCapabilitiesCodeSystemVersionComponent) value); // TerminologyCapabilitiesCodeSystemVersionComponent 998 return value; 999 case -499084711: // subsumption 1000 this.subsumption = castToBoolean(value); // BooleanType 1001 return value; 1002 default: return super.setProperty(hash, name, value); 1003 } 1004 1005 } 1006 1007 @Override 1008 public Base setProperty(String name, Base value) throws FHIRException { 1009 if (name.equals("uri")) { 1010 this.uri = castToCanonical(value); // CanonicalType 1011 } else if (name.equals("version")) { 1012 this.getVersion().add((TerminologyCapabilitiesCodeSystemVersionComponent) value); 1013 } else if (name.equals("subsumption")) { 1014 this.subsumption = castToBoolean(value); // BooleanType 1015 } else 1016 return super.setProperty(name, value); 1017 return value; 1018 } 1019 1020 @Override 1021 public Base makeProperty(int hash, String name) throws FHIRException { 1022 switch (hash) { 1023 case 116076: return getUriElement(); 1024 case 351608024: return addVersion(); 1025 case -499084711: return getSubsumptionElement(); 1026 default: return super.makeProperty(hash, name); 1027 } 1028 1029 } 1030 1031 @Override 1032 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1033 switch (hash) { 1034 case 116076: /*uri*/ return new String[] {"canonical"}; 1035 case 351608024: /*version*/ return new String[] {}; 1036 case -499084711: /*subsumption*/ return new String[] {"boolean"}; 1037 default: return super.getTypesForProperty(hash, name); 1038 } 1039 1040 } 1041 1042 @Override 1043 public Base addChild(String name) throws FHIRException { 1044 if (name.equals("uri")) { 1045 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.uri"); 1046 } 1047 else if (name.equals("version")) { 1048 return addVersion(); 1049 } 1050 else if (name.equals("subsumption")) { 1051 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.subsumption"); 1052 } 1053 else 1054 return super.addChild(name); 1055 } 1056 1057 public TerminologyCapabilitiesCodeSystemComponent copy() { 1058 TerminologyCapabilitiesCodeSystemComponent dst = new TerminologyCapabilitiesCodeSystemComponent(); 1059 copyValues(dst); 1060 return dst; 1061 } 1062 1063 public void copyValues(TerminologyCapabilitiesCodeSystemComponent dst) { 1064 super.copyValues(dst); 1065 dst.uri = uri == null ? null : uri.copy(); 1066 if (version != null) { 1067 dst.version = new ArrayList<TerminologyCapabilitiesCodeSystemVersionComponent>(); 1068 for (TerminologyCapabilitiesCodeSystemVersionComponent i : version) 1069 dst.version.add(i.copy()); 1070 }; 1071 dst.subsumption = subsumption == null ? null : subsumption.copy(); 1072 } 1073 1074 @Override 1075 public boolean equalsDeep(Base other_) { 1076 if (!super.equalsDeep(other_)) 1077 return false; 1078 if (!(other_ instanceof TerminologyCapabilitiesCodeSystemComponent)) 1079 return false; 1080 TerminologyCapabilitiesCodeSystemComponent o = (TerminologyCapabilitiesCodeSystemComponent) other_; 1081 return compareDeep(uri, o.uri, true) && compareDeep(version, o.version, true) && compareDeep(subsumption, o.subsumption, true) 1082 ; 1083 } 1084 1085 @Override 1086 public boolean equalsShallow(Base other_) { 1087 if (!super.equalsShallow(other_)) 1088 return false; 1089 if (!(other_ instanceof TerminologyCapabilitiesCodeSystemComponent)) 1090 return false; 1091 TerminologyCapabilitiesCodeSystemComponent o = (TerminologyCapabilitiesCodeSystemComponent) other_; 1092 return compareValues(subsumption, o.subsumption, true); 1093 } 1094 1095 public boolean isEmpty() { 1096 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(uri, version, subsumption 1097 ); 1098 } 1099 1100 public String fhirType() { 1101 return "TerminologyCapabilities.codeSystem"; 1102 1103 } 1104 1105 } 1106 1107 @Block() 1108 public static class TerminologyCapabilitiesCodeSystemVersionComponent extends BackboneElement implements IBaseBackboneElement { 1109 /** 1110 * For version-less code systems, there should be a single version with no identifier. 1111 */ 1112 @Child(name = "code", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=true) 1113 @Description(shortDefinition="Version identifier for this version", formalDefinition="For version-less code systems, there should be a single version with no identifier." ) 1114 protected StringType code; 1115 1116 /** 1117 * If this is the default version for this code system. 1118 */ 1119 @Child(name = "isDefault", type = {BooleanType.class}, order=2, min=0, max=1, modifier=false, summary=true) 1120 @Description(shortDefinition="If this is the default version for this code system", formalDefinition="If this is the default version for this code system." ) 1121 protected BooleanType isDefault; 1122 1123 /** 1124 * If the compositional grammar defined by the code system is supported. 1125 */ 1126 @Child(name = "compositional", type = {BooleanType.class}, order=3, min=0, max=1, modifier=false, summary=false) 1127 @Description(shortDefinition="If compositional grammar is supported", formalDefinition="If the compositional grammar defined by the code system is supported." ) 1128 protected BooleanType compositional; 1129 1130 /** 1131 * Language Displays supported. 1132 */ 1133 @Child(name = "language", type = {CodeType.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1134 @Description(shortDefinition="Language Displays supported", formalDefinition="Language Displays supported." ) 1135 protected List<CodeType> language; 1136 1137 /** 1138 * Filter Properties supported. 1139 */ 1140 @Child(name = "filter", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1141 @Description(shortDefinition="Filter Properties supported", formalDefinition="Filter Properties supported." ) 1142 protected List<TerminologyCapabilitiesCodeSystemVersionFilterComponent> filter; 1143 1144 /** 1145 * Properties supported for $lookup. 1146 */ 1147 @Child(name = "property", type = {CodeType.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1148 @Description(shortDefinition="Properties supported for $lookup", formalDefinition="Properties supported for $lookup." ) 1149 protected List<CodeType> property; 1150 1151 private static final long serialVersionUID = 1857571343L; 1152 1153 /** 1154 * Constructor 1155 */ 1156 public TerminologyCapabilitiesCodeSystemVersionComponent() { 1157 super(); 1158 } 1159 1160 /** 1161 * @return {@link #code} (For version-less code systems, there should be a single version with no identifier.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 1162 */ 1163 public StringType getCodeElement() { 1164 if (this.code == null) 1165 if (Configuration.errorOnAutoCreate()) 1166 throw new Error("Attempt to auto-create TerminologyCapabilitiesCodeSystemVersionComponent.code"); 1167 else if (Configuration.doAutoCreate()) 1168 this.code = new StringType(); // bb 1169 return this.code; 1170 } 1171 1172 public boolean hasCodeElement() { 1173 return this.code != null && !this.code.isEmpty(); 1174 } 1175 1176 public boolean hasCode() { 1177 return this.code != null && !this.code.isEmpty(); 1178 } 1179 1180 /** 1181 * @param value {@link #code} (For version-less code systems, there should be a single version with no identifier.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 1182 */ 1183 public TerminologyCapabilitiesCodeSystemVersionComponent setCodeElement(StringType value) { 1184 this.code = value; 1185 return this; 1186 } 1187 1188 /** 1189 * @return For version-less code systems, there should be a single version with no identifier. 1190 */ 1191 public String getCode() { 1192 return this.code == null ? null : this.code.getValue(); 1193 } 1194 1195 /** 1196 * @param value For version-less code systems, there should be a single version with no identifier. 1197 */ 1198 public TerminologyCapabilitiesCodeSystemVersionComponent setCode(String value) { 1199 if (Utilities.noString(value)) 1200 this.code = null; 1201 else { 1202 if (this.code == null) 1203 this.code = new StringType(); 1204 this.code.setValue(value); 1205 } 1206 return this; 1207 } 1208 1209 /** 1210 * @return {@link #isDefault} (If this is the default version for this code system.). This is the underlying object with id, value and extensions. The accessor "getIsDefault" gives direct access to the value 1211 */ 1212 public BooleanType getIsDefaultElement() { 1213 if (this.isDefault == null) 1214 if (Configuration.errorOnAutoCreate()) 1215 throw new Error("Attempt to auto-create TerminologyCapabilitiesCodeSystemVersionComponent.isDefault"); 1216 else if (Configuration.doAutoCreate()) 1217 this.isDefault = new BooleanType(); // bb 1218 return this.isDefault; 1219 } 1220 1221 public boolean hasIsDefaultElement() { 1222 return this.isDefault != null && !this.isDefault.isEmpty(); 1223 } 1224 1225 public boolean hasIsDefault() { 1226 return this.isDefault != null && !this.isDefault.isEmpty(); 1227 } 1228 1229 /** 1230 * @param value {@link #isDefault} (If this is the default version for this code system.). This is the underlying object with id, value and extensions. The accessor "getIsDefault" gives direct access to the value 1231 */ 1232 public TerminologyCapabilitiesCodeSystemVersionComponent setIsDefaultElement(BooleanType value) { 1233 this.isDefault = value; 1234 return this; 1235 } 1236 1237 /** 1238 * @return If this is the default version for this code system. 1239 */ 1240 public boolean getIsDefault() { 1241 return this.isDefault == null || this.isDefault.isEmpty() ? false : this.isDefault.getValue(); 1242 } 1243 1244 /** 1245 * @param value If this is the default version for this code system. 1246 */ 1247 public TerminologyCapabilitiesCodeSystemVersionComponent setIsDefault(boolean value) { 1248 if (this.isDefault == null) 1249 this.isDefault = new BooleanType(); 1250 this.isDefault.setValue(value); 1251 return this; 1252 } 1253 1254 /** 1255 * @return {@link #compositional} (If the compositional grammar defined by the code system is supported.). This is the underlying object with id, value and extensions. The accessor "getCompositional" gives direct access to the value 1256 */ 1257 public BooleanType getCompositionalElement() { 1258 if (this.compositional == null) 1259 if (Configuration.errorOnAutoCreate()) 1260 throw new Error("Attempt to auto-create TerminologyCapabilitiesCodeSystemVersionComponent.compositional"); 1261 else if (Configuration.doAutoCreate()) 1262 this.compositional = new BooleanType(); // bb 1263 return this.compositional; 1264 } 1265 1266 public boolean hasCompositionalElement() { 1267 return this.compositional != null && !this.compositional.isEmpty(); 1268 } 1269 1270 public boolean hasCompositional() { 1271 return this.compositional != null && !this.compositional.isEmpty(); 1272 } 1273 1274 /** 1275 * @param value {@link #compositional} (If the compositional grammar defined by the code system is supported.). This is the underlying object with id, value and extensions. The accessor "getCompositional" gives direct access to the value 1276 */ 1277 public TerminologyCapabilitiesCodeSystemVersionComponent setCompositionalElement(BooleanType value) { 1278 this.compositional = value; 1279 return this; 1280 } 1281 1282 /** 1283 * @return If the compositional grammar defined by the code system is supported. 1284 */ 1285 public boolean getCompositional() { 1286 return this.compositional == null || this.compositional.isEmpty() ? false : this.compositional.getValue(); 1287 } 1288 1289 /** 1290 * @param value If the compositional grammar defined by the code system is supported. 1291 */ 1292 public TerminologyCapabilitiesCodeSystemVersionComponent setCompositional(boolean value) { 1293 if (this.compositional == null) 1294 this.compositional = new BooleanType(); 1295 this.compositional.setValue(value); 1296 return this; 1297 } 1298 1299 /** 1300 * @return {@link #language} (Language Displays supported.) 1301 */ 1302 public List<CodeType> getLanguage() { 1303 if (this.language == null) 1304 this.language = new ArrayList<CodeType>(); 1305 return this.language; 1306 } 1307 1308 /** 1309 * @return Returns a reference to <code>this</code> for easy method chaining 1310 */ 1311 public TerminologyCapabilitiesCodeSystemVersionComponent setLanguage(List<CodeType> theLanguage) { 1312 this.language = theLanguage; 1313 return this; 1314 } 1315 1316 public boolean hasLanguage() { 1317 if (this.language == null) 1318 return false; 1319 for (CodeType item : this.language) 1320 if (!item.isEmpty()) 1321 return true; 1322 return false; 1323 } 1324 1325 /** 1326 * @return {@link #language} (Language Displays supported.) 1327 */ 1328 public CodeType addLanguageElement() {//2 1329 CodeType t = new CodeType(); 1330 if (this.language == null) 1331 this.language = new ArrayList<CodeType>(); 1332 this.language.add(t); 1333 return t; 1334 } 1335 1336 /** 1337 * @param value {@link #language} (Language Displays supported.) 1338 */ 1339 public TerminologyCapabilitiesCodeSystemVersionComponent addLanguage(String value) { //1 1340 CodeType t = new CodeType(); 1341 t.setValue(value); 1342 if (this.language == null) 1343 this.language = new ArrayList<CodeType>(); 1344 this.language.add(t); 1345 return this; 1346 } 1347 1348 /** 1349 * @param value {@link #language} (Language Displays supported.) 1350 */ 1351 public boolean hasLanguage(String value) { 1352 if (this.language == null) 1353 return false; 1354 for (CodeType v : this.language) 1355 if (v.getValue().equals(value)) // code 1356 return true; 1357 return false; 1358 } 1359 1360 /** 1361 * @return {@link #filter} (Filter Properties supported.) 1362 */ 1363 public List<TerminologyCapabilitiesCodeSystemVersionFilterComponent> getFilter() { 1364 if (this.filter == null) 1365 this.filter = new ArrayList<TerminologyCapabilitiesCodeSystemVersionFilterComponent>(); 1366 return this.filter; 1367 } 1368 1369 /** 1370 * @return Returns a reference to <code>this</code> for easy method chaining 1371 */ 1372 public TerminologyCapabilitiesCodeSystemVersionComponent setFilter(List<TerminologyCapabilitiesCodeSystemVersionFilterComponent> theFilter) { 1373 this.filter = theFilter; 1374 return this; 1375 } 1376 1377 public boolean hasFilter() { 1378 if (this.filter == null) 1379 return false; 1380 for (TerminologyCapabilitiesCodeSystemVersionFilterComponent item : this.filter) 1381 if (!item.isEmpty()) 1382 return true; 1383 return false; 1384 } 1385 1386 public TerminologyCapabilitiesCodeSystemVersionFilterComponent addFilter() { //3 1387 TerminologyCapabilitiesCodeSystemVersionFilterComponent t = new TerminologyCapabilitiesCodeSystemVersionFilterComponent(); 1388 if (this.filter == null) 1389 this.filter = new ArrayList<TerminologyCapabilitiesCodeSystemVersionFilterComponent>(); 1390 this.filter.add(t); 1391 return t; 1392 } 1393 1394 public TerminologyCapabilitiesCodeSystemVersionComponent addFilter(TerminologyCapabilitiesCodeSystemVersionFilterComponent t) { //3 1395 if (t == null) 1396 return this; 1397 if (this.filter == null) 1398 this.filter = new ArrayList<TerminologyCapabilitiesCodeSystemVersionFilterComponent>(); 1399 this.filter.add(t); 1400 return this; 1401 } 1402 1403 /** 1404 * @return The first repetition of repeating field {@link #filter}, creating it if it does not already exist 1405 */ 1406 public TerminologyCapabilitiesCodeSystemVersionFilterComponent getFilterFirstRep() { 1407 if (getFilter().isEmpty()) { 1408 addFilter(); 1409 } 1410 return getFilter().get(0); 1411 } 1412 1413 /** 1414 * @return {@link #property} (Properties supported for $lookup.) 1415 */ 1416 public List<CodeType> getProperty() { 1417 if (this.property == null) 1418 this.property = new ArrayList<CodeType>(); 1419 return this.property; 1420 } 1421 1422 /** 1423 * @return Returns a reference to <code>this</code> for easy method chaining 1424 */ 1425 public TerminologyCapabilitiesCodeSystemVersionComponent setProperty(List<CodeType> theProperty) { 1426 this.property = theProperty; 1427 return this; 1428 } 1429 1430 public boolean hasProperty() { 1431 if (this.property == null) 1432 return false; 1433 for (CodeType item : this.property) 1434 if (!item.isEmpty()) 1435 return true; 1436 return false; 1437 } 1438 1439 /** 1440 * @return {@link #property} (Properties supported for $lookup.) 1441 */ 1442 public CodeType addPropertyElement() {//2 1443 CodeType t = new CodeType(); 1444 if (this.property == null) 1445 this.property = new ArrayList<CodeType>(); 1446 this.property.add(t); 1447 return t; 1448 } 1449 1450 /** 1451 * @param value {@link #property} (Properties supported for $lookup.) 1452 */ 1453 public TerminologyCapabilitiesCodeSystemVersionComponent addProperty(String value) { //1 1454 CodeType t = new CodeType(); 1455 t.setValue(value); 1456 if (this.property == null) 1457 this.property = new ArrayList<CodeType>(); 1458 this.property.add(t); 1459 return this; 1460 } 1461 1462 /** 1463 * @param value {@link #property} (Properties supported for $lookup.) 1464 */ 1465 public boolean hasProperty(String value) { 1466 if (this.property == null) 1467 return false; 1468 for (CodeType v : this.property) 1469 if (v.getValue().equals(value)) // code 1470 return true; 1471 return false; 1472 } 1473 1474 protected void listChildren(List<Property> children) { 1475 super.listChildren(children); 1476 children.add(new Property("code", "string", "For version-less code systems, there should be a single version with no identifier.", 0, 1, code)); 1477 children.add(new Property("isDefault", "boolean", "If this is the default version for this code system.", 0, 1, isDefault)); 1478 children.add(new Property("compositional", "boolean", "If the compositional grammar defined by the code system is supported.", 0, 1, compositional)); 1479 children.add(new Property("language", "code", "Language Displays supported.", 0, java.lang.Integer.MAX_VALUE, language)); 1480 children.add(new Property("filter", "", "Filter Properties supported.", 0, java.lang.Integer.MAX_VALUE, filter)); 1481 children.add(new Property("property", "code", "Properties supported for $lookup.", 0, java.lang.Integer.MAX_VALUE, property)); 1482 } 1483 1484 @Override 1485 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1486 switch (_hash) { 1487 case 3059181: /*code*/ return new Property("code", "string", "For version-less code systems, there should be a single version with no identifier.", 0, 1, code); 1488 case 965025207: /*isDefault*/ return new Property("isDefault", "boolean", "If this is the default version for this code system.", 0, 1, isDefault); 1489 case 1248023381: /*compositional*/ return new Property("compositional", "boolean", "If the compositional grammar defined by the code system is supported.", 0, 1, compositional); 1490 case -1613589672: /*language*/ return new Property("language", "code", "Language Displays supported.", 0, java.lang.Integer.MAX_VALUE, language); 1491 case -1274492040: /*filter*/ return new Property("filter", "", "Filter Properties supported.", 0, java.lang.Integer.MAX_VALUE, filter); 1492 case -993141291: /*property*/ return new Property("property", "code", "Properties supported for $lookup.", 0, java.lang.Integer.MAX_VALUE, property); 1493 default: return super.getNamedProperty(_hash, _name, _checkValid); 1494 } 1495 1496 } 1497 1498 @Override 1499 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1500 switch (hash) { 1501 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // StringType 1502 case 965025207: /*isDefault*/ return this.isDefault == null ? new Base[0] : new Base[] {this.isDefault}; // BooleanType 1503 case 1248023381: /*compositional*/ return this.compositional == null ? new Base[0] : new Base[] {this.compositional}; // BooleanType 1504 case -1613589672: /*language*/ return this.language == null ? new Base[0] : this.language.toArray(new Base[this.language.size()]); // CodeType 1505 case -1274492040: /*filter*/ return this.filter == null ? new Base[0] : this.filter.toArray(new Base[this.filter.size()]); // TerminologyCapabilitiesCodeSystemVersionFilterComponent 1506 case -993141291: /*property*/ return this.property == null ? new Base[0] : this.property.toArray(new Base[this.property.size()]); // CodeType 1507 default: return super.getProperty(hash, name, checkValid); 1508 } 1509 1510 } 1511 1512 @Override 1513 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1514 switch (hash) { 1515 case 3059181: // code 1516 this.code = castToString(value); // StringType 1517 return value; 1518 case 965025207: // isDefault 1519 this.isDefault = castToBoolean(value); // BooleanType 1520 return value; 1521 case 1248023381: // compositional 1522 this.compositional = castToBoolean(value); // BooleanType 1523 return value; 1524 case -1613589672: // language 1525 this.getLanguage().add(castToCode(value)); // CodeType 1526 return value; 1527 case -1274492040: // filter 1528 this.getFilter().add((TerminologyCapabilitiesCodeSystemVersionFilterComponent) value); // TerminologyCapabilitiesCodeSystemVersionFilterComponent 1529 return value; 1530 case -993141291: // property 1531 this.getProperty().add(castToCode(value)); // CodeType 1532 return value; 1533 default: return super.setProperty(hash, name, value); 1534 } 1535 1536 } 1537 1538 @Override 1539 public Base setProperty(String name, Base value) throws FHIRException { 1540 if (name.equals("code")) { 1541 this.code = castToString(value); // StringType 1542 } else if (name.equals("isDefault")) { 1543 this.isDefault = castToBoolean(value); // BooleanType 1544 } else if (name.equals("compositional")) { 1545 this.compositional = castToBoolean(value); // BooleanType 1546 } else if (name.equals("language")) { 1547 this.getLanguage().add(castToCode(value)); 1548 } else if (name.equals("filter")) { 1549 this.getFilter().add((TerminologyCapabilitiesCodeSystemVersionFilterComponent) value); 1550 } else if (name.equals("property")) { 1551 this.getProperty().add(castToCode(value)); 1552 } else 1553 return super.setProperty(name, value); 1554 return value; 1555 } 1556 1557 @Override 1558 public Base makeProperty(int hash, String name) throws FHIRException { 1559 switch (hash) { 1560 case 3059181: return getCodeElement(); 1561 case 965025207: return getIsDefaultElement(); 1562 case 1248023381: return getCompositionalElement(); 1563 case -1613589672: return addLanguageElement(); 1564 case -1274492040: return addFilter(); 1565 case -993141291: return addPropertyElement(); 1566 default: return super.makeProperty(hash, name); 1567 } 1568 1569 } 1570 1571 @Override 1572 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1573 switch (hash) { 1574 case 3059181: /*code*/ return new String[] {"string"}; 1575 case 965025207: /*isDefault*/ return new String[] {"boolean"}; 1576 case 1248023381: /*compositional*/ return new String[] {"boolean"}; 1577 case -1613589672: /*language*/ return new String[] {"code"}; 1578 case -1274492040: /*filter*/ return new String[] {}; 1579 case -993141291: /*property*/ return new String[] {"code"}; 1580 default: return super.getTypesForProperty(hash, name); 1581 } 1582 1583 } 1584 1585 @Override 1586 public Base addChild(String name) throws FHIRException { 1587 if (name.equals("code")) { 1588 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.code"); 1589 } 1590 else if (name.equals("isDefault")) { 1591 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.isDefault"); 1592 } 1593 else if (name.equals("compositional")) { 1594 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.compositional"); 1595 } 1596 else if (name.equals("language")) { 1597 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.language"); 1598 } 1599 else if (name.equals("filter")) { 1600 return addFilter(); 1601 } 1602 else if (name.equals("property")) { 1603 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.property"); 1604 } 1605 else 1606 return super.addChild(name); 1607 } 1608 1609 public TerminologyCapabilitiesCodeSystemVersionComponent copy() { 1610 TerminologyCapabilitiesCodeSystemVersionComponent dst = new TerminologyCapabilitiesCodeSystemVersionComponent(); 1611 copyValues(dst); 1612 return dst; 1613 } 1614 1615 public void copyValues(TerminologyCapabilitiesCodeSystemVersionComponent dst) { 1616 super.copyValues(dst); 1617 dst.code = code == null ? null : code.copy(); 1618 dst.isDefault = isDefault == null ? null : isDefault.copy(); 1619 dst.compositional = compositional == null ? null : compositional.copy(); 1620 if (language != null) { 1621 dst.language = new ArrayList<CodeType>(); 1622 for (CodeType i : language) 1623 dst.language.add(i.copy()); 1624 }; 1625 if (filter != null) { 1626 dst.filter = new ArrayList<TerminologyCapabilitiesCodeSystemVersionFilterComponent>(); 1627 for (TerminologyCapabilitiesCodeSystemVersionFilterComponent i : filter) 1628 dst.filter.add(i.copy()); 1629 }; 1630 if (property != null) { 1631 dst.property = new ArrayList<CodeType>(); 1632 for (CodeType i : property) 1633 dst.property.add(i.copy()); 1634 }; 1635 } 1636 1637 @Override 1638 public boolean equalsDeep(Base other_) { 1639 if (!super.equalsDeep(other_)) 1640 return false; 1641 if (!(other_ instanceof TerminologyCapabilitiesCodeSystemVersionComponent)) 1642 return false; 1643 TerminologyCapabilitiesCodeSystemVersionComponent o = (TerminologyCapabilitiesCodeSystemVersionComponent) other_; 1644 return compareDeep(code, o.code, true) && compareDeep(isDefault, o.isDefault, true) && compareDeep(compositional, o.compositional, true) 1645 && compareDeep(language, o.language, true) && compareDeep(filter, o.filter, true) && compareDeep(property, o.property, true) 1646 ; 1647 } 1648 1649 @Override 1650 public boolean equalsShallow(Base other_) { 1651 if (!super.equalsShallow(other_)) 1652 return false; 1653 if (!(other_ instanceof TerminologyCapabilitiesCodeSystemVersionComponent)) 1654 return false; 1655 TerminologyCapabilitiesCodeSystemVersionComponent o = (TerminologyCapabilitiesCodeSystemVersionComponent) other_; 1656 return compareValues(code, o.code, true) && compareValues(isDefault, o.isDefault, true) && compareValues(compositional, o.compositional, true) 1657 && compareValues(language, o.language, true) && compareValues(property, o.property, true); 1658 } 1659 1660 public boolean isEmpty() { 1661 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, isDefault, compositional 1662 , language, filter, property); 1663 } 1664 1665 public String fhirType() { 1666 return "TerminologyCapabilities.codeSystem.version"; 1667 1668 } 1669 1670 } 1671 1672 @Block() 1673 public static class TerminologyCapabilitiesCodeSystemVersionFilterComponent extends BackboneElement implements IBaseBackboneElement { 1674 /** 1675 * Code of the property supported. 1676 */ 1677 @Child(name = "code", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false) 1678 @Description(shortDefinition="Code of the property supported", formalDefinition="Code of the property supported." ) 1679 protected CodeType code; 1680 1681 /** 1682 * Operations supported for the property. 1683 */ 1684 @Child(name = "op", type = {CodeType.class}, order=2, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1685 @Description(shortDefinition="Operations supported for the property", formalDefinition="Operations supported for the property." ) 1686 protected List<CodeType> op; 1687 1688 private static final long serialVersionUID = -489160282L; 1689 1690 /** 1691 * Constructor 1692 */ 1693 public TerminologyCapabilitiesCodeSystemVersionFilterComponent() { 1694 super(); 1695 } 1696 1697 /** 1698 * Constructor 1699 */ 1700 public TerminologyCapabilitiesCodeSystemVersionFilterComponent(CodeType code) { 1701 super(); 1702 this.code = code; 1703 } 1704 1705 /** 1706 * @return {@link #code} (Code of the property supported.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 1707 */ 1708 public CodeType getCodeElement() { 1709 if (this.code == null) 1710 if (Configuration.errorOnAutoCreate()) 1711 throw new Error("Attempt to auto-create TerminologyCapabilitiesCodeSystemVersionFilterComponent.code"); 1712 else if (Configuration.doAutoCreate()) 1713 this.code = new CodeType(); // bb 1714 return this.code; 1715 } 1716 1717 public boolean hasCodeElement() { 1718 return this.code != null && !this.code.isEmpty(); 1719 } 1720 1721 public boolean hasCode() { 1722 return this.code != null && !this.code.isEmpty(); 1723 } 1724 1725 /** 1726 * @param value {@link #code} (Code of the property supported.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value 1727 */ 1728 public TerminologyCapabilitiesCodeSystemVersionFilterComponent setCodeElement(CodeType value) { 1729 this.code = value; 1730 return this; 1731 } 1732 1733 /** 1734 * @return Code of the property supported. 1735 */ 1736 public String getCode() { 1737 return this.code == null ? null : this.code.getValue(); 1738 } 1739 1740 /** 1741 * @param value Code of the property supported. 1742 */ 1743 public TerminologyCapabilitiesCodeSystemVersionFilterComponent setCode(String value) { 1744 if (this.code == null) 1745 this.code = new CodeType(); 1746 this.code.setValue(value); 1747 return this; 1748 } 1749 1750 /** 1751 * @return {@link #op} (Operations supported for the property.) 1752 */ 1753 public List<CodeType> getOp() { 1754 if (this.op == null) 1755 this.op = new ArrayList<CodeType>(); 1756 return this.op; 1757 } 1758 1759 /** 1760 * @return Returns a reference to <code>this</code> for easy method chaining 1761 */ 1762 public TerminologyCapabilitiesCodeSystemVersionFilterComponent setOp(List<CodeType> theOp) { 1763 this.op = theOp; 1764 return this; 1765 } 1766 1767 public boolean hasOp() { 1768 if (this.op == null) 1769 return false; 1770 for (CodeType item : this.op) 1771 if (!item.isEmpty()) 1772 return true; 1773 return false; 1774 } 1775 1776 /** 1777 * @return {@link #op} (Operations supported for the property.) 1778 */ 1779 public CodeType addOpElement() {//2 1780 CodeType t = new CodeType(); 1781 if (this.op == null) 1782 this.op = new ArrayList<CodeType>(); 1783 this.op.add(t); 1784 return t; 1785 } 1786 1787 /** 1788 * @param value {@link #op} (Operations supported for the property.) 1789 */ 1790 public TerminologyCapabilitiesCodeSystemVersionFilterComponent addOp(String value) { //1 1791 CodeType t = new CodeType(); 1792 t.setValue(value); 1793 if (this.op == null) 1794 this.op = new ArrayList<CodeType>(); 1795 this.op.add(t); 1796 return this; 1797 } 1798 1799 /** 1800 * @param value {@link #op} (Operations supported for the property.) 1801 */ 1802 public boolean hasOp(String value) { 1803 if (this.op == null) 1804 return false; 1805 for (CodeType v : this.op) 1806 if (v.getValue().equals(value)) // code 1807 return true; 1808 return false; 1809 } 1810 1811 protected void listChildren(List<Property> children) { 1812 super.listChildren(children); 1813 children.add(new Property("code", "code", "Code of the property supported.", 0, 1, code)); 1814 children.add(new Property("op", "code", "Operations supported for the property.", 0, java.lang.Integer.MAX_VALUE, op)); 1815 } 1816 1817 @Override 1818 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1819 switch (_hash) { 1820 case 3059181: /*code*/ return new Property("code", "code", "Code of the property supported.", 0, 1, code); 1821 case 3553: /*op*/ return new Property("op", "code", "Operations supported for the property.", 0, java.lang.Integer.MAX_VALUE, op); 1822 default: return super.getNamedProperty(_hash, _name, _checkValid); 1823 } 1824 1825 } 1826 1827 @Override 1828 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1829 switch (hash) { 1830 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeType 1831 case 3553: /*op*/ return this.op == null ? new Base[0] : this.op.toArray(new Base[this.op.size()]); // CodeType 1832 default: return super.getProperty(hash, name, checkValid); 1833 } 1834 1835 } 1836 1837 @Override 1838 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1839 switch (hash) { 1840 case 3059181: // code 1841 this.code = castToCode(value); // CodeType 1842 return value; 1843 case 3553: // op 1844 this.getOp().add(castToCode(value)); // CodeType 1845 return value; 1846 default: return super.setProperty(hash, name, value); 1847 } 1848 1849 } 1850 1851 @Override 1852 public Base setProperty(String name, Base value) throws FHIRException { 1853 if (name.equals("code")) { 1854 this.code = castToCode(value); // CodeType 1855 } else if (name.equals("op")) { 1856 this.getOp().add(castToCode(value)); 1857 } else 1858 return super.setProperty(name, value); 1859 return value; 1860 } 1861 1862 @Override 1863 public Base makeProperty(int hash, String name) throws FHIRException { 1864 switch (hash) { 1865 case 3059181: return getCodeElement(); 1866 case 3553: return addOpElement(); 1867 default: return super.makeProperty(hash, name); 1868 } 1869 1870 } 1871 1872 @Override 1873 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1874 switch (hash) { 1875 case 3059181: /*code*/ return new String[] {"code"}; 1876 case 3553: /*op*/ return new String[] {"code"}; 1877 default: return super.getTypesForProperty(hash, name); 1878 } 1879 1880 } 1881 1882 @Override 1883 public Base addChild(String name) throws FHIRException { 1884 if (name.equals("code")) { 1885 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.code"); 1886 } 1887 else if (name.equals("op")) { 1888 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.op"); 1889 } 1890 else 1891 return super.addChild(name); 1892 } 1893 1894 public TerminologyCapabilitiesCodeSystemVersionFilterComponent copy() { 1895 TerminologyCapabilitiesCodeSystemVersionFilterComponent dst = new TerminologyCapabilitiesCodeSystemVersionFilterComponent(); 1896 copyValues(dst); 1897 return dst; 1898 } 1899 1900 public void copyValues(TerminologyCapabilitiesCodeSystemVersionFilterComponent dst) { 1901 super.copyValues(dst); 1902 dst.code = code == null ? null : code.copy(); 1903 if (op != null) { 1904 dst.op = new ArrayList<CodeType>(); 1905 for (CodeType i : op) 1906 dst.op.add(i.copy()); 1907 }; 1908 } 1909 1910 @Override 1911 public boolean equalsDeep(Base other_) { 1912 if (!super.equalsDeep(other_)) 1913 return false; 1914 if (!(other_ instanceof TerminologyCapabilitiesCodeSystemVersionFilterComponent)) 1915 return false; 1916 TerminologyCapabilitiesCodeSystemVersionFilterComponent o = (TerminologyCapabilitiesCodeSystemVersionFilterComponent) other_; 1917 return compareDeep(code, o.code, true) && compareDeep(op, o.op, true); 1918 } 1919 1920 @Override 1921 public boolean equalsShallow(Base other_) { 1922 if (!super.equalsShallow(other_)) 1923 return false; 1924 if (!(other_ instanceof TerminologyCapabilitiesCodeSystemVersionFilterComponent)) 1925 return false; 1926 TerminologyCapabilitiesCodeSystemVersionFilterComponent o = (TerminologyCapabilitiesCodeSystemVersionFilterComponent) other_; 1927 return compareValues(code, o.code, true) && compareValues(op, o.op, true); 1928 } 1929 1930 public boolean isEmpty() { 1931 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, op); 1932 } 1933 1934 public String fhirType() { 1935 return "TerminologyCapabilities.codeSystem.version.filter"; 1936 1937 } 1938 1939 } 1940 1941 @Block() 1942 public static class TerminologyCapabilitiesExpansionComponent extends BackboneElement implements IBaseBackboneElement { 1943 /** 1944 * Whether the server can return nested value sets. 1945 */ 1946 @Child(name = "hierarchical", type = {BooleanType.class}, order=1, min=0, max=1, modifier=false, summary=false) 1947 @Description(shortDefinition="Whether the server can return nested value sets", formalDefinition="Whether the server can return nested value sets." ) 1948 protected BooleanType hierarchical; 1949 1950 /** 1951 * Whether the server supports paging on expansion. 1952 */ 1953 @Child(name = "paging", type = {BooleanType.class}, order=2, min=0, max=1, modifier=false, summary=false) 1954 @Description(shortDefinition="Whether the server supports paging on expansion", formalDefinition="Whether the server supports paging on expansion." ) 1955 protected BooleanType paging; 1956 1957 /** 1958 * Allow request for incomplete expansions? 1959 */ 1960 @Child(name = "incomplete", type = {BooleanType.class}, order=3, min=0, max=1, modifier=false, summary=false) 1961 @Description(shortDefinition="Allow request for incomplete expansions?", formalDefinition="Allow request for incomplete expansions?" ) 1962 protected BooleanType incomplete; 1963 1964 /** 1965 * Supported expansion parameter. 1966 */ 1967 @Child(name = "parameter", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1968 @Description(shortDefinition="Supported expansion parameter", formalDefinition="Supported expansion parameter." ) 1969 protected List<TerminologyCapabilitiesExpansionParameterComponent> parameter; 1970 1971 /** 1972 * Documentation about text searching works. 1973 */ 1974 @Child(name = "textFilter", type = {MarkdownType.class}, order=5, min=0, max=1, modifier=false, summary=false) 1975 @Description(shortDefinition="Documentation about text searching works", formalDefinition="Documentation about text searching works." ) 1976 protected MarkdownType textFilter; 1977 1978 private static final long serialVersionUID = -1011350616L; 1979 1980 /** 1981 * Constructor 1982 */ 1983 public TerminologyCapabilitiesExpansionComponent() { 1984 super(); 1985 } 1986 1987 /** 1988 * @return {@link #hierarchical} (Whether the server can return nested value sets.). This is the underlying object with id, value and extensions. The accessor "getHierarchical" gives direct access to the value 1989 */ 1990 public BooleanType getHierarchicalElement() { 1991 if (this.hierarchical == null) 1992 if (Configuration.errorOnAutoCreate()) 1993 throw new Error("Attempt to auto-create TerminologyCapabilitiesExpansionComponent.hierarchical"); 1994 else if (Configuration.doAutoCreate()) 1995 this.hierarchical = new BooleanType(); // bb 1996 return this.hierarchical; 1997 } 1998 1999 public boolean hasHierarchicalElement() { 2000 return this.hierarchical != null && !this.hierarchical.isEmpty(); 2001 } 2002 2003 public boolean hasHierarchical() { 2004 return this.hierarchical != null && !this.hierarchical.isEmpty(); 2005 } 2006 2007 /** 2008 * @param value {@link #hierarchical} (Whether the server can return nested value sets.). This is the underlying object with id, value and extensions. The accessor "getHierarchical" gives direct access to the value 2009 */ 2010 public TerminologyCapabilitiesExpansionComponent setHierarchicalElement(BooleanType value) { 2011 this.hierarchical = value; 2012 return this; 2013 } 2014 2015 /** 2016 * @return Whether the server can return nested value sets. 2017 */ 2018 public boolean getHierarchical() { 2019 return this.hierarchical == null || this.hierarchical.isEmpty() ? false : this.hierarchical.getValue(); 2020 } 2021 2022 /** 2023 * @param value Whether the server can return nested value sets. 2024 */ 2025 public TerminologyCapabilitiesExpansionComponent setHierarchical(boolean value) { 2026 if (this.hierarchical == null) 2027 this.hierarchical = new BooleanType(); 2028 this.hierarchical.setValue(value); 2029 return this; 2030 } 2031 2032 /** 2033 * @return {@link #paging} (Whether the server supports paging on expansion.). This is the underlying object with id, value and extensions. The accessor "getPaging" gives direct access to the value 2034 */ 2035 public BooleanType getPagingElement() { 2036 if (this.paging == null) 2037 if (Configuration.errorOnAutoCreate()) 2038 throw new Error("Attempt to auto-create TerminologyCapabilitiesExpansionComponent.paging"); 2039 else if (Configuration.doAutoCreate()) 2040 this.paging = new BooleanType(); // bb 2041 return this.paging; 2042 } 2043 2044 public boolean hasPagingElement() { 2045 return this.paging != null && !this.paging.isEmpty(); 2046 } 2047 2048 public boolean hasPaging() { 2049 return this.paging != null && !this.paging.isEmpty(); 2050 } 2051 2052 /** 2053 * @param value {@link #paging} (Whether the server supports paging on expansion.). This is the underlying object with id, value and extensions. The accessor "getPaging" gives direct access to the value 2054 */ 2055 public TerminologyCapabilitiesExpansionComponent setPagingElement(BooleanType value) { 2056 this.paging = value; 2057 return this; 2058 } 2059 2060 /** 2061 * @return Whether the server supports paging on expansion. 2062 */ 2063 public boolean getPaging() { 2064 return this.paging == null || this.paging.isEmpty() ? false : this.paging.getValue(); 2065 } 2066 2067 /** 2068 * @param value Whether the server supports paging on expansion. 2069 */ 2070 public TerminologyCapabilitiesExpansionComponent setPaging(boolean value) { 2071 if (this.paging == null) 2072 this.paging = new BooleanType(); 2073 this.paging.setValue(value); 2074 return this; 2075 } 2076 2077 /** 2078 * @return {@link #incomplete} (Allow request for incomplete expansions?). This is the underlying object with id, value and extensions. The accessor "getIncomplete" gives direct access to the value 2079 */ 2080 public BooleanType getIncompleteElement() { 2081 if (this.incomplete == null) 2082 if (Configuration.errorOnAutoCreate()) 2083 throw new Error("Attempt to auto-create TerminologyCapabilitiesExpansionComponent.incomplete"); 2084 else if (Configuration.doAutoCreate()) 2085 this.incomplete = new BooleanType(); // bb 2086 return this.incomplete; 2087 } 2088 2089 public boolean hasIncompleteElement() { 2090 return this.incomplete != null && !this.incomplete.isEmpty(); 2091 } 2092 2093 public boolean hasIncomplete() { 2094 return this.incomplete != null && !this.incomplete.isEmpty(); 2095 } 2096 2097 /** 2098 * @param value {@link #incomplete} (Allow request for incomplete expansions?). This is the underlying object with id, value and extensions. The accessor "getIncomplete" gives direct access to the value 2099 */ 2100 public TerminologyCapabilitiesExpansionComponent setIncompleteElement(BooleanType value) { 2101 this.incomplete = value; 2102 return this; 2103 } 2104 2105 /** 2106 * @return Allow request for incomplete expansions? 2107 */ 2108 public boolean getIncomplete() { 2109 return this.incomplete == null || this.incomplete.isEmpty() ? false : this.incomplete.getValue(); 2110 } 2111 2112 /** 2113 * @param value Allow request for incomplete expansions? 2114 */ 2115 public TerminologyCapabilitiesExpansionComponent setIncomplete(boolean value) { 2116 if (this.incomplete == null) 2117 this.incomplete = new BooleanType(); 2118 this.incomplete.setValue(value); 2119 return this; 2120 } 2121 2122 /** 2123 * @return {@link #parameter} (Supported expansion parameter.) 2124 */ 2125 public List<TerminologyCapabilitiesExpansionParameterComponent> getParameter() { 2126 if (this.parameter == null) 2127 this.parameter = new ArrayList<TerminologyCapabilitiesExpansionParameterComponent>(); 2128 return this.parameter; 2129 } 2130 2131 /** 2132 * @return Returns a reference to <code>this</code> for easy method chaining 2133 */ 2134 public TerminologyCapabilitiesExpansionComponent setParameter(List<TerminologyCapabilitiesExpansionParameterComponent> theParameter) { 2135 this.parameter = theParameter; 2136 return this; 2137 } 2138 2139 public boolean hasParameter() { 2140 if (this.parameter == null) 2141 return false; 2142 for (TerminologyCapabilitiesExpansionParameterComponent item : this.parameter) 2143 if (!item.isEmpty()) 2144 return true; 2145 return false; 2146 } 2147 2148 public TerminologyCapabilitiesExpansionParameterComponent addParameter() { //3 2149 TerminologyCapabilitiesExpansionParameterComponent t = new TerminologyCapabilitiesExpansionParameterComponent(); 2150 if (this.parameter == null) 2151 this.parameter = new ArrayList<TerminologyCapabilitiesExpansionParameterComponent>(); 2152 this.parameter.add(t); 2153 return t; 2154 } 2155 2156 public TerminologyCapabilitiesExpansionComponent addParameter(TerminologyCapabilitiesExpansionParameterComponent t) { //3 2157 if (t == null) 2158 return this; 2159 if (this.parameter == null) 2160 this.parameter = new ArrayList<TerminologyCapabilitiesExpansionParameterComponent>(); 2161 this.parameter.add(t); 2162 return this; 2163 } 2164 2165 /** 2166 * @return The first repetition of repeating field {@link #parameter}, creating it if it does not already exist 2167 */ 2168 public TerminologyCapabilitiesExpansionParameterComponent getParameterFirstRep() { 2169 if (getParameter().isEmpty()) { 2170 addParameter(); 2171 } 2172 return getParameter().get(0); 2173 } 2174 2175 /** 2176 * @return {@link #textFilter} (Documentation about text searching works.). This is the underlying object with id, value and extensions. The accessor "getTextFilter" gives direct access to the value 2177 */ 2178 public MarkdownType getTextFilterElement() { 2179 if (this.textFilter == null) 2180 if (Configuration.errorOnAutoCreate()) 2181 throw new Error("Attempt to auto-create TerminologyCapabilitiesExpansionComponent.textFilter"); 2182 else if (Configuration.doAutoCreate()) 2183 this.textFilter = new MarkdownType(); // bb 2184 return this.textFilter; 2185 } 2186 2187 public boolean hasTextFilterElement() { 2188 return this.textFilter != null && !this.textFilter.isEmpty(); 2189 } 2190 2191 public boolean hasTextFilter() { 2192 return this.textFilter != null && !this.textFilter.isEmpty(); 2193 } 2194 2195 /** 2196 * @param value {@link #textFilter} (Documentation about text searching works.). This is the underlying object with id, value and extensions. The accessor "getTextFilter" gives direct access to the value 2197 */ 2198 public TerminologyCapabilitiesExpansionComponent setTextFilterElement(MarkdownType value) { 2199 this.textFilter = value; 2200 return this; 2201 } 2202 2203 /** 2204 * @return Documentation about text searching works. 2205 */ 2206 public String getTextFilter() { 2207 return this.textFilter == null ? null : this.textFilter.getValue(); 2208 } 2209 2210 /** 2211 * @param value Documentation about text searching works. 2212 */ 2213 public TerminologyCapabilitiesExpansionComponent setTextFilter(String value) { 2214 if (value == null) 2215 this.textFilter = null; 2216 else { 2217 if (this.textFilter == null) 2218 this.textFilter = new MarkdownType(); 2219 this.textFilter.setValue(value); 2220 } 2221 return this; 2222 } 2223 2224 protected void listChildren(List<Property> children) { 2225 super.listChildren(children); 2226 children.add(new Property("hierarchical", "boolean", "Whether the server can return nested value sets.", 0, 1, hierarchical)); 2227 children.add(new Property("paging", "boolean", "Whether the server supports paging on expansion.", 0, 1, paging)); 2228 children.add(new Property("incomplete", "boolean", "Allow request for incomplete expansions?", 0, 1, incomplete)); 2229 children.add(new Property("parameter", "", "Supported expansion parameter.", 0, java.lang.Integer.MAX_VALUE, parameter)); 2230 children.add(new Property("textFilter", "markdown", "Documentation about text searching works.", 0, 1, textFilter)); 2231 } 2232 2233 @Override 2234 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 2235 switch (_hash) { 2236 case 857636745: /*hierarchical*/ return new Property("hierarchical", "boolean", "Whether the server can return nested value sets.", 0, 1, hierarchical); 2237 case -995747956: /*paging*/ return new Property("paging", "boolean", "Whether the server supports paging on expansion.", 0, 1, paging); 2238 case -1010022050: /*incomplete*/ return new Property("incomplete", "boolean", "Allow request for incomplete expansions?", 0, 1, incomplete); 2239 case 1954460585: /*parameter*/ return new Property("parameter", "", "Supported expansion parameter.", 0, java.lang.Integer.MAX_VALUE, parameter); 2240 case 1469359877: /*textFilter*/ return new Property("textFilter", "markdown", "Documentation about text searching works.", 0, 1, textFilter); 2241 default: return super.getNamedProperty(_hash, _name, _checkValid); 2242 } 2243 2244 } 2245 2246 @Override 2247 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 2248 switch (hash) { 2249 case 857636745: /*hierarchical*/ return this.hierarchical == null ? new Base[0] : new Base[] {this.hierarchical}; // BooleanType 2250 case -995747956: /*paging*/ return this.paging == null ? new Base[0] : new Base[] {this.paging}; // BooleanType 2251 case -1010022050: /*incomplete*/ return this.incomplete == null ? new Base[0] : new Base[] {this.incomplete}; // BooleanType 2252 case 1954460585: /*parameter*/ return this.parameter == null ? new Base[0] : this.parameter.toArray(new Base[this.parameter.size()]); // TerminologyCapabilitiesExpansionParameterComponent 2253 case 1469359877: /*textFilter*/ return this.textFilter == null ? new Base[0] : new Base[] {this.textFilter}; // MarkdownType 2254 default: return super.getProperty(hash, name, checkValid); 2255 } 2256 2257 } 2258 2259 @Override 2260 public Base setProperty(int hash, String name, Base value) throws FHIRException { 2261 switch (hash) { 2262 case 857636745: // hierarchical 2263 this.hierarchical = castToBoolean(value); // BooleanType 2264 return value; 2265 case -995747956: // paging 2266 this.paging = castToBoolean(value); // BooleanType 2267 return value; 2268 case -1010022050: // incomplete 2269 this.incomplete = castToBoolean(value); // BooleanType 2270 return value; 2271 case 1954460585: // parameter 2272 this.getParameter().add((TerminologyCapabilitiesExpansionParameterComponent) value); // TerminologyCapabilitiesExpansionParameterComponent 2273 return value; 2274 case 1469359877: // textFilter 2275 this.textFilter = castToMarkdown(value); // MarkdownType 2276 return value; 2277 default: return super.setProperty(hash, name, value); 2278 } 2279 2280 } 2281 2282 @Override 2283 public Base setProperty(String name, Base value) throws FHIRException { 2284 if (name.equals("hierarchical")) { 2285 this.hierarchical = castToBoolean(value); // BooleanType 2286 } else if (name.equals("paging")) { 2287 this.paging = castToBoolean(value); // BooleanType 2288 } else if (name.equals("incomplete")) { 2289 this.incomplete = castToBoolean(value); // BooleanType 2290 } else if (name.equals("parameter")) { 2291 this.getParameter().add((TerminologyCapabilitiesExpansionParameterComponent) value); 2292 } else if (name.equals("textFilter")) { 2293 this.textFilter = castToMarkdown(value); // MarkdownType 2294 } else 2295 return super.setProperty(name, value); 2296 return value; 2297 } 2298 2299 @Override 2300 public Base makeProperty(int hash, String name) throws FHIRException { 2301 switch (hash) { 2302 case 857636745: return getHierarchicalElement(); 2303 case -995747956: return getPagingElement(); 2304 case -1010022050: return getIncompleteElement(); 2305 case 1954460585: return addParameter(); 2306 case 1469359877: return getTextFilterElement(); 2307 default: return super.makeProperty(hash, name); 2308 } 2309 2310 } 2311 2312 @Override 2313 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 2314 switch (hash) { 2315 case 857636745: /*hierarchical*/ return new String[] {"boolean"}; 2316 case -995747956: /*paging*/ return new String[] {"boolean"}; 2317 case -1010022050: /*incomplete*/ return new String[] {"boolean"}; 2318 case 1954460585: /*parameter*/ return new String[] {}; 2319 case 1469359877: /*textFilter*/ return new String[] {"markdown"}; 2320 default: return super.getTypesForProperty(hash, name); 2321 } 2322 2323 } 2324 2325 @Override 2326 public Base addChild(String name) throws FHIRException { 2327 if (name.equals("hierarchical")) { 2328 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.hierarchical"); 2329 } 2330 else if (name.equals("paging")) { 2331 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.paging"); 2332 } 2333 else if (name.equals("incomplete")) { 2334 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.incomplete"); 2335 } 2336 else if (name.equals("parameter")) { 2337 return addParameter(); 2338 } 2339 else if (name.equals("textFilter")) { 2340 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.textFilter"); 2341 } 2342 else 2343 return super.addChild(name); 2344 } 2345 2346 public TerminologyCapabilitiesExpansionComponent copy() { 2347 TerminologyCapabilitiesExpansionComponent dst = new TerminologyCapabilitiesExpansionComponent(); 2348 copyValues(dst); 2349 return dst; 2350 } 2351 2352 public void copyValues(TerminologyCapabilitiesExpansionComponent dst) { 2353 super.copyValues(dst); 2354 dst.hierarchical = hierarchical == null ? null : hierarchical.copy(); 2355 dst.paging = paging == null ? null : paging.copy(); 2356 dst.incomplete = incomplete == null ? null : incomplete.copy(); 2357 if (parameter != null) { 2358 dst.parameter = new ArrayList<TerminologyCapabilitiesExpansionParameterComponent>(); 2359 for (TerminologyCapabilitiesExpansionParameterComponent i : parameter) 2360 dst.parameter.add(i.copy()); 2361 }; 2362 dst.textFilter = textFilter == null ? null : textFilter.copy(); 2363 } 2364 2365 @Override 2366 public boolean equalsDeep(Base other_) { 2367 if (!super.equalsDeep(other_)) 2368 return false; 2369 if (!(other_ instanceof TerminologyCapabilitiesExpansionComponent)) 2370 return false; 2371 TerminologyCapabilitiesExpansionComponent o = (TerminologyCapabilitiesExpansionComponent) other_; 2372 return compareDeep(hierarchical, o.hierarchical, true) && compareDeep(paging, o.paging, true) && compareDeep(incomplete, o.incomplete, true) 2373 && compareDeep(parameter, o.parameter, true) && compareDeep(textFilter, o.textFilter, true); 2374 } 2375 2376 @Override 2377 public boolean equalsShallow(Base other_) { 2378 if (!super.equalsShallow(other_)) 2379 return false; 2380 if (!(other_ instanceof TerminologyCapabilitiesExpansionComponent)) 2381 return false; 2382 TerminologyCapabilitiesExpansionComponent o = (TerminologyCapabilitiesExpansionComponent) other_; 2383 return compareValues(hierarchical, o.hierarchical, true) && compareValues(paging, o.paging, true) && compareValues(incomplete, o.incomplete, true) 2384 && compareValues(textFilter, o.textFilter, true); 2385 } 2386 2387 public boolean isEmpty() { 2388 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(hierarchical, paging, incomplete 2389 , parameter, textFilter); 2390 } 2391 2392 public String fhirType() { 2393 return "TerminologyCapabilities.expansion"; 2394 2395 } 2396 2397 } 2398 2399 @Block() 2400 public static class TerminologyCapabilitiesExpansionParameterComponent extends BackboneElement implements IBaseBackboneElement { 2401 /** 2402 * Expansion Parameter name. 2403 */ 2404 @Child(name = "name", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false) 2405 @Description(shortDefinition="Expansion Parameter name", formalDefinition="Expansion Parameter name." ) 2406 protected CodeType name; 2407 2408 /** 2409 * Description of support for parameter. 2410 */ 2411 @Child(name = "documentation", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) 2412 @Description(shortDefinition="Description of support for parameter", formalDefinition="Description of support for parameter." ) 2413 protected StringType documentation; 2414 2415 private static final long serialVersionUID = -1703372741L; 2416 2417 /** 2418 * Constructor 2419 */ 2420 public TerminologyCapabilitiesExpansionParameterComponent() { 2421 super(); 2422 } 2423 2424 /** 2425 * Constructor 2426 */ 2427 public TerminologyCapabilitiesExpansionParameterComponent(CodeType name) { 2428 super(); 2429 this.name = name; 2430 } 2431 2432 /** 2433 * @return {@link #name} (Expansion Parameter name.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 2434 */ 2435 public CodeType getNameElement() { 2436 if (this.name == null) 2437 if (Configuration.errorOnAutoCreate()) 2438 throw new Error("Attempt to auto-create TerminologyCapabilitiesExpansionParameterComponent.name"); 2439 else if (Configuration.doAutoCreate()) 2440 this.name = new CodeType(); // bb 2441 return this.name; 2442 } 2443 2444 public boolean hasNameElement() { 2445 return this.name != null && !this.name.isEmpty(); 2446 } 2447 2448 public boolean hasName() { 2449 return this.name != null && !this.name.isEmpty(); 2450 } 2451 2452 /** 2453 * @param value {@link #name} (Expansion Parameter name.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 2454 */ 2455 public TerminologyCapabilitiesExpansionParameterComponent setNameElement(CodeType value) { 2456 this.name = value; 2457 return this; 2458 } 2459 2460 /** 2461 * @return Expansion Parameter name. 2462 */ 2463 public String getName() { 2464 return this.name == null ? null : this.name.getValue(); 2465 } 2466 2467 /** 2468 * @param value Expansion Parameter name. 2469 */ 2470 public TerminologyCapabilitiesExpansionParameterComponent setName(String value) { 2471 if (this.name == null) 2472 this.name = new CodeType(); 2473 this.name.setValue(value); 2474 return this; 2475 } 2476 2477 /** 2478 * @return {@link #documentation} (Description of support for parameter.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value 2479 */ 2480 public StringType getDocumentationElement() { 2481 if (this.documentation == null) 2482 if (Configuration.errorOnAutoCreate()) 2483 throw new Error("Attempt to auto-create TerminologyCapabilitiesExpansionParameterComponent.documentation"); 2484 else if (Configuration.doAutoCreate()) 2485 this.documentation = new StringType(); // bb 2486 return this.documentation; 2487 } 2488 2489 public boolean hasDocumentationElement() { 2490 return this.documentation != null && !this.documentation.isEmpty(); 2491 } 2492 2493 public boolean hasDocumentation() { 2494 return this.documentation != null && !this.documentation.isEmpty(); 2495 } 2496 2497 /** 2498 * @param value {@link #documentation} (Description of support for parameter.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value 2499 */ 2500 public TerminologyCapabilitiesExpansionParameterComponent setDocumentationElement(StringType value) { 2501 this.documentation = value; 2502 return this; 2503 } 2504 2505 /** 2506 * @return Description of support for parameter. 2507 */ 2508 public String getDocumentation() { 2509 return this.documentation == null ? null : this.documentation.getValue(); 2510 } 2511 2512 /** 2513 * @param value Description of support for parameter. 2514 */ 2515 public TerminologyCapabilitiesExpansionParameterComponent setDocumentation(String value) { 2516 if (Utilities.noString(value)) 2517 this.documentation = null; 2518 else { 2519 if (this.documentation == null) 2520 this.documentation = new StringType(); 2521 this.documentation.setValue(value); 2522 } 2523 return this; 2524 } 2525 2526 protected void listChildren(List<Property> children) { 2527 super.listChildren(children); 2528 children.add(new Property("name", "code", "Expansion Parameter name.", 0, 1, name)); 2529 children.add(new Property("documentation", "string", "Description of support for parameter.", 0, 1, documentation)); 2530 } 2531 2532 @Override 2533 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 2534 switch (_hash) { 2535 case 3373707: /*name*/ return new Property("name", "code", "Expansion Parameter name.", 0, 1, name); 2536 case 1587405498: /*documentation*/ return new Property("documentation", "string", "Description of support for parameter.", 0, 1, documentation); 2537 default: return super.getNamedProperty(_hash, _name, _checkValid); 2538 } 2539 2540 } 2541 2542 @Override 2543 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 2544 switch (hash) { 2545 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // CodeType 2546 case 1587405498: /*documentation*/ return this.documentation == null ? new Base[0] : new Base[] {this.documentation}; // StringType 2547 default: return super.getProperty(hash, name, checkValid); 2548 } 2549 2550 } 2551 2552 @Override 2553 public Base setProperty(int hash, String name, Base value) throws FHIRException { 2554 switch (hash) { 2555 case 3373707: // name 2556 this.name = castToCode(value); // CodeType 2557 return value; 2558 case 1587405498: // documentation 2559 this.documentation = castToString(value); // StringType 2560 return value; 2561 default: return super.setProperty(hash, name, value); 2562 } 2563 2564 } 2565 2566 @Override 2567 public Base setProperty(String name, Base value) throws FHIRException { 2568 if (name.equals("name")) { 2569 this.name = castToCode(value); // CodeType 2570 } else if (name.equals("documentation")) { 2571 this.documentation = castToString(value); // StringType 2572 } else 2573 return super.setProperty(name, value); 2574 return value; 2575 } 2576 2577 @Override 2578 public Base makeProperty(int hash, String name) throws FHIRException { 2579 switch (hash) { 2580 case 3373707: return getNameElement(); 2581 case 1587405498: return getDocumentationElement(); 2582 default: return super.makeProperty(hash, name); 2583 } 2584 2585 } 2586 2587 @Override 2588 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 2589 switch (hash) { 2590 case 3373707: /*name*/ return new String[] {"code"}; 2591 case 1587405498: /*documentation*/ return new String[] {"string"}; 2592 default: return super.getTypesForProperty(hash, name); 2593 } 2594 2595 } 2596 2597 @Override 2598 public Base addChild(String name) throws FHIRException { 2599 if (name.equals("name")) { 2600 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.name"); 2601 } 2602 else if (name.equals("documentation")) { 2603 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.documentation"); 2604 } 2605 else 2606 return super.addChild(name); 2607 } 2608 2609 public TerminologyCapabilitiesExpansionParameterComponent copy() { 2610 TerminologyCapabilitiesExpansionParameterComponent dst = new TerminologyCapabilitiesExpansionParameterComponent(); 2611 copyValues(dst); 2612 return dst; 2613 } 2614 2615 public void copyValues(TerminologyCapabilitiesExpansionParameterComponent dst) { 2616 super.copyValues(dst); 2617 dst.name = name == null ? null : name.copy(); 2618 dst.documentation = documentation == null ? null : documentation.copy(); 2619 } 2620 2621 @Override 2622 public boolean equalsDeep(Base other_) { 2623 if (!super.equalsDeep(other_)) 2624 return false; 2625 if (!(other_ instanceof TerminologyCapabilitiesExpansionParameterComponent)) 2626 return false; 2627 TerminologyCapabilitiesExpansionParameterComponent o = (TerminologyCapabilitiesExpansionParameterComponent) other_; 2628 return compareDeep(name, o.name, true) && compareDeep(documentation, o.documentation, true); 2629 } 2630 2631 @Override 2632 public boolean equalsShallow(Base other_) { 2633 if (!super.equalsShallow(other_)) 2634 return false; 2635 if (!(other_ instanceof TerminologyCapabilitiesExpansionParameterComponent)) 2636 return false; 2637 TerminologyCapabilitiesExpansionParameterComponent o = (TerminologyCapabilitiesExpansionParameterComponent) other_; 2638 return compareValues(name, o.name, true) && compareValues(documentation, o.documentation, true); 2639 } 2640 2641 public boolean isEmpty() { 2642 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, documentation); 2643 } 2644 2645 public String fhirType() { 2646 return "TerminologyCapabilities.expansion.parameter"; 2647 2648 } 2649 2650 } 2651 2652 @Block() 2653 public static class TerminologyCapabilitiesValidateCodeComponent extends BackboneElement implements IBaseBackboneElement { 2654 /** 2655 * Whether translations are validated. 2656 */ 2657 @Child(name = "translations", type = {BooleanType.class}, order=1, min=1, max=1, modifier=false, summary=false) 2658 @Description(shortDefinition="Whether translations are validated", formalDefinition="Whether translations are validated." ) 2659 protected BooleanType translations; 2660 2661 private static final long serialVersionUID = -1212814906L; 2662 2663 /** 2664 * Constructor 2665 */ 2666 public TerminologyCapabilitiesValidateCodeComponent() { 2667 super(); 2668 } 2669 2670 /** 2671 * Constructor 2672 */ 2673 public TerminologyCapabilitiesValidateCodeComponent(BooleanType translations) { 2674 super(); 2675 this.translations = translations; 2676 } 2677 2678 /** 2679 * @return {@link #translations} (Whether translations are validated.). This is the underlying object with id, value and extensions. The accessor "getTranslations" gives direct access to the value 2680 */ 2681 public BooleanType getTranslationsElement() { 2682 if (this.translations == null) 2683 if (Configuration.errorOnAutoCreate()) 2684 throw new Error("Attempt to auto-create TerminologyCapabilitiesValidateCodeComponent.translations"); 2685 else if (Configuration.doAutoCreate()) 2686 this.translations = new BooleanType(); // bb 2687 return this.translations; 2688 } 2689 2690 public boolean hasTranslationsElement() { 2691 return this.translations != null && !this.translations.isEmpty(); 2692 } 2693 2694 public boolean hasTranslations() { 2695 return this.translations != null && !this.translations.isEmpty(); 2696 } 2697 2698 /** 2699 * @param value {@link #translations} (Whether translations are validated.). This is the underlying object with id, value and extensions. The accessor "getTranslations" gives direct access to the value 2700 */ 2701 public TerminologyCapabilitiesValidateCodeComponent setTranslationsElement(BooleanType value) { 2702 this.translations = value; 2703 return this; 2704 } 2705 2706 /** 2707 * @return Whether translations are validated. 2708 */ 2709 public boolean getTranslations() { 2710 return this.translations == null || this.translations.isEmpty() ? false : this.translations.getValue(); 2711 } 2712 2713 /** 2714 * @param value Whether translations are validated. 2715 */ 2716 public TerminologyCapabilitiesValidateCodeComponent setTranslations(boolean value) { 2717 if (this.translations == null) 2718 this.translations = new BooleanType(); 2719 this.translations.setValue(value); 2720 return this; 2721 } 2722 2723 protected void listChildren(List<Property> children) { 2724 super.listChildren(children); 2725 children.add(new Property("translations", "boolean", "Whether translations are validated.", 0, 1, translations)); 2726 } 2727 2728 @Override 2729 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 2730 switch (_hash) { 2731 case -1225497630: /*translations*/ return new Property("translations", "boolean", "Whether translations are validated.", 0, 1, translations); 2732 default: return super.getNamedProperty(_hash, _name, _checkValid); 2733 } 2734 2735 } 2736 2737 @Override 2738 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 2739 switch (hash) { 2740 case -1225497630: /*translations*/ return this.translations == null ? new Base[0] : new Base[] {this.translations}; // BooleanType 2741 default: return super.getProperty(hash, name, checkValid); 2742 } 2743 2744 } 2745 2746 @Override 2747 public Base setProperty(int hash, String name, Base value) throws FHIRException { 2748 switch (hash) { 2749 case -1225497630: // translations 2750 this.translations = castToBoolean(value); // BooleanType 2751 return value; 2752 default: return super.setProperty(hash, name, value); 2753 } 2754 2755 } 2756 2757 @Override 2758 public Base setProperty(String name, Base value) throws FHIRException { 2759 if (name.equals("translations")) { 2760 this.translations = castToBoolean(value); // BooleanType 2761 } else 2762 return super.setProperty(name, value); 2763 return value; 2764 } 2765 2766 @Override 2767 public Base makeProperty(int hash, String name) throws FHIRException { 2768 switch (hash) { 2769 case -1225497630: return getTranslationsElement(); 2770 default: return super.makeProperty(hash, name); 2771 } 2772 2773 } 2774 2775 @Override 2776 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 2777 switch (hash) { 2778 case -1225497630: /*translations*/ return new String[] {"boolean"}; 2779 default: return super.getTypesForProperty(hash, name); 2780 } 2781 2782 } 2783 2784 @Override 2785 public Base addChild(String name) throws FHIRException { 2786 if (name.equals("translations")) { 2787 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.translations"); 2788 } 2789 else 2790 return super.addChild(name); 2791 } 2792 2793 public TerminologyCapabilitiesValidateCodeComponent copy() { 2794 TerminologyCapabilitiesValidateCodeComponent dst = new TerminologyCapabilitiesValidateCodeComponent(); 2795 copyValues(dst); 2796 return dst; 2797 } 2798 2799 public void copyValues(TerminologyCapabilitiesValidateCodeComponent dst) { 2800 super.copyValues(dst); 2801 dst.translations = translations == null ? null : translations.copy(); 2802 } 2803 2804 @Override 2805 public boolean equalsDeep(Base other_) { 2806 if (!super.equalsDeep(other_)) 2807 return false; 2808 if (!(other_ instanceof TerminologyCapabilitiesValidateCodeComponent)) 2809 return false; 2810 TerminologyCapabilitiesValidateCodeComponent o = (TerminologyCapabilitiesValidateCodeComponent) other_; 2811 return compareDeep(translations, o.translations, true); 2812 } 2813 2814 @Override 2815 public boolean equalsShallow(Base other_) { 2816 if (!super.equalsShallow(other_)) 2817 return false; 2818 if (!(other_ instanceof TerminologyCapabilitiesValidateCodeComponent)) 2819 return false; 2820 TerminologyCapabilitiesValidateCodeComponent o = (TerminologyCapabilitiesValidateCodeComponent) other_; 2821 return compareValues(translations, o.translations, true); 2822 } 2823 2824 public boolean isEmpty() { 2825 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(translations); 2826 } 2827 2828 public String fhirType() { 2829 return "TerminologyCapabilities.validateCode"; 2830 2831 } 2832 2833 } 2834 2835 @Block() 2836 public static class TerminologyCapabilitiesTranslationComponent extends BackboneElement implements IBaseBackboneElement { 2837 /** 2838 * Whether the client must identify the map. 2839 */ 2840 @Child(name = "needsMap", type = {BooleanType.class}, order=1, min=1, max=1, modifier=false, summary=false) 2841 @Description(shortDefinition="Whether the client must identify the map", formalDefinition="Whether the client must identify the map." ) 2842 protected BooleanType needsMap; 2843 2844 private static final long serialVersionUID = -1727843575L; 2845 2846 /** 2847 * Constructor 2848 */ 2849 public TerminologyCapabilitiesTranslationComponent() { 2850 super(); 2851 } 2852 2853 /** 2854 * Constructor 2855 */ 2856 public TerminologyCapabilitiesTranslationComponent(BooleanType needsMap) { 2857 super(); 2858 this.needsMap = needsMap; 2859 } 2860 2861 /** 2862 * @return {@link #needsMap} (Whether the client must identify the map.). This is the underlying object with id, value and extensions. The accessor "getNeedsMap" gives direct access to the value 2863 */ 2864 public BooleanType getNeedsMapElement() { 2865 if (this.needsMap == null) 2866 if (Configuration.errorOnAutoCreate()) 2867 throw new Error("Attempt to auto-create TerminologyCapabilitiesTranslationComponent.needsMap"); 2868 else if (Configuration.doAutoCreate()) 2869 this.needsMap = new BooleanType(); // bb 2870 return this.needsMap; 2871 } 2872 2873 public boolean hasNeedsMapElement() { 2874 return this.needsMap != null && !this.needsMap.isEmpty(); 2875 } 2876 2877 public boolean hasNeedsMap() { 2878 return this.needsMap != null && !this.needsMap.isEmpty(); 2879 } 2880 2881 /** 2882 * @param value {@link #needsMap} (Whether the client must identify the map.). This is the underlying object with id, value and extensions. The accessor "getNeedsMap" gives direct access to the value 2883 */ 2884 public TerminologyCapabilitiesTranslationComponent setNeedsMapElement(BooleanType value) { 2885 this.needsMap = value; 2886 return this; 2887 } 2888 2889 /** 2890 * @return Whether the client must identify the map. 2891 */ 2892 public boolean getNeedsMap() { 2893 return this.needsMap == null || this.needsMap.isEmpty() ? false : this.needsMap.getValue(); 2894 } 2895 2896 /** 2897 * @param value Whether the client must identify the map. 2898 */ 2899 public TerminologyCapabilitiesTranslationComponent setNeedsMap(boolean value) { 2900 if (this.needsMap == null) 2901 this.needsMap = new BooleanType(); 2902 this.needsMap.setValue(value); 2903 return this; 2904 } 2905 2906 protected void listChildren(List<Property> children) { 2907 super.listChildren(children); 2908 children.add(new Property("needsMap", "boolean", "Whether the client must identify the map.", 0, 1, needsMap)); 2909 } 2910 2911 @Override 2912 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 2913 switch (_hash) { 2914 case 866566527: /*needsMap*/ return new Property("needsMap", "boolean", "Whether the client must identify the map.", 0, 1, needsMap); 2915 default: return super.getNamedProperty(_hash, _name, _checkValid); 2916 } 2917 2918 } 2919 2920 @Override 2921 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 2922 switch (hash) { 2923 case 866566527: /*needsMap*/ return this.needsMap == null ? new Base[0] : new Base[] {this.needsMap}; // BooleanType 2924 default: return super.getProperty(hash, name, checkValid); 2925 } 2926 2927 } 2928 2929 @Override 2930 public Base setProperty(int hash, String name, Base value) throws FHIRException { 2931 switch (hash) { 2932 case 866566527: // needsMap 2933 this.needsMap = castToBoolean(value); // BooleanType 2934 return value; 2935 default: return super.setProperty(hash, name, value); 2936 } 2937 2938 } 2939 2940 @Override 2941 public Base setProperty(String name, Base value) throws FHIRException { 2942 if (name.equals("needsMap")) { 2943 this.needsMap = castToBoolean(value); // BooleanType 2944 } else 2945 return super.setProperty(name, value); 2946 return value; 2947 } 2948 2949 @Override 2950 public Base makeProperty(int hash, String name) throws FHIRException { 2951 switch (hash) { 2952 case 866566527: return getNeedsMapElement(); 2953 default: return super.makeProperty(hash, name); 2954 } 2955 2956 } 2957 2958 @Override 2959 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 2960 switch (hash) { 2961 case 866566527: /*needsMap*/ return new String[] {"boolean"}; 2962 default: return super.getTypesForProperty(hash, name); 2963 } 2964 2965 } 2966 2967 @Override 2968 public Base addChild(String name) throws FHIRException { 2969 if (name.equals("needsMap")) { 2970 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.needsMap"); 2971 } 2972 else 2973 return super.addChild(name); 2974 } 2975 2976 public TerminologyCapabilitiesTranslationComponent copy() { 2977 TerminologyCapabilitiesTranslationComponent dst = new TerminologyCapabilitiesTranslationComponent(); 2978 copyValues(dst); 2979 return dst; 2980 } 2981 2982 public void copyValues(TerminologyCapabilitiesTranslationComponent dst) { 2983 super.copyValues(dst); 2984 dst.needsMap = needsMap == null ? null : needsMap.copy(); 2985 } 2986 2987 @Override 2988 public boolean equalsDeep(Base other_) { 2989 if (!super.equalsDeep(other_)) 2990 return false; 2991 if (!(other_ instanceof TerminologyCapabilitiesTranslationComponent)) 2992 return false; 2993 TerminologyCapabilitiesTranslationComponent o = (TerminologyCapabilitiesTranslationComponent) other_; 2994 return compareDeep(needsMap, o.needsMap, true); 2995 } 2996 2997 @Override 2998 public boolean equalsShallow(Base other_) { 2999 if (!super.equalsShallow(other_)) 3000 return false; 3001 if (!(other_ instanceof TerminologyCapabilitiesTranslationComponent)) 3002 return false; 3003 TerminologyCapabilitiesTranslationComponent o = (TerminologyCapabilitiesTranslationComponent) other_; 3004 return compareValues(needsMap, o.needsMap, true); 3005 } 3006 3007 public boolean isEmpty() { 3008 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(needsMap); 3009 } 3010 3011 public String fhirType() { 3012 return "TerminologyCapabilities.translation"; 3013 3014 } 3015 3016 } 3017 3018 @Block() 3019 public static class TerminologyCapabilitiesClosureComponent extends BackboneElement implements IBaseBackboneElement { 3020 /** 3021 * If cross-system closure is supported. 3022 */ 3023 @Child(name = "translation", type = {BooleanType.class}, order=1, min=0, max=1, modifier=false, summary=false) 3024 @Description(shortDefinition="If cross-system closure is supported", formalDefinition="If cross-system closure is supported." ) 3025 protected BooleanType translation; 3026 3027 private static final long serialVersionUID = 1900484343L; 3028 3029 /** 3030 * Constructor 3031 */ 3032 public TerminologyCapabilitiesClosureComponent() { 3033 super(); 3034 } 3035 3036 /** 3037 * @return {@link #translation} (If cross-system closure is supported.). This is the underlying object with id, value and extensions. The accessor "getTranslation" gives direct access to the value 3038 */ 3039 public BooleanType getTranslationElement() { 3040 if (this.translation == null) 3041 if (Configuration.errorOnAutoCreate()) 3042 throw new Error("Attempt to auto-create TerminologyCapabilitiesClosureComponent.translation"); 3043 else if (Configuration.doAutoCreate()) 3044 this.translation = new BooleanType(); // bb 3045 return this.translation; 3046 } 3047 3048 public boolean hasTranslationElement() { 3049 return this.translation != null && !this.translation.isEmpty(); 3050 } 3051 3052 public boolean hasTranslation() { 3053 return this.translation != null && !this.translation.isEmpty(); 3054 } 3055 3056 /** 3057 * @param value {@link #translation} (If cross-system closure is supported.). This is the underlying object with id, value and extensions. The accessor "getTranslation" gives direct access to the value 3058 */ 3059 public TerminologyCapabilitiesClosureComponent setTranslationElement(BooleanType value) { 3060 this.translation = value; 3061 return this; 3062 } 3063 3064 /** 3065 * @return If cross-system closure is supported. 3066 */ 3067 public boolean getTranslation() { 3068 return this.translation == null || this.translation.isEmpty() ? false : this.translation.getValue(); 3069 } 3070 3071 /** 3072 * @param value If cross-system closure is supported. 3073 */ 3074 public TerminologyCapabilitiesClosureComponent setTranslation(boolean value) { 3075 if (this.translation == null) 3076 this.translation = new BooleanType(); 3077 this.translation.setValue(value); 3078 return this; 3079 } 3080 3081 protected void listChildren(List<Property> children) { 3082 super.listChildren(children); 3083 children.add(new Property("translation", "boolean", "If cross-system closure is supported.", 0, 1, translation)); 3084 } 3085 3086 @Override 3087 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 3088 switch (_hash) { 3089 case -1840647503: /*translation*/ return new Property("translation", "boolean", "If cross-system closure is supported.", 0, 1, translation); 3090 default: return super.getNamedProperty(_hash, _name, _checkValid); 3091 } 3092 3093 } 3094 3095 @Override 3096 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 3097 switch (hash) { 3098 case -1840647503: /*translation*/ return this.translation == null ? new Base[0] : new Base[] {this.translation}; // BooleanType 3099 default: return super.getProperty(hash, name, checkValid); 3100 } 3101 3102 } 3103 3104 @Override 3105 public Base setProperty(int hash, String name, Base value) throws FHIRException { 3106 switch (hash) { 3107 case -1840647503: // translation 3108 this.translation = castToBoolean(value); // BooleanType 3109 return value; 3110 default: return super.setProperty(hash, name, value); 3111 } 3112 3113 } 3114 3115 @Override 3116 public Base setProperty(String name, Base value) throws FHIRException { 3117 if (name.equals("translation")) { 3118 this.translation = castToBoolean(value); // BooleanType 3119 } else 3120 return super.setProperty(name, value); 3121 return value; 3122 } 3123 3124 @Override 3125 public Base makeProperty(int hash, String name) throws FHIRException { 3126 switch (hash) { 3127 case -1840647503: return getTranslationElement(); 3128 default: return super.makeProperty(hash, name); 3129 } 3130 3131 } 3132 3133 @Override 3134 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 3135 switch (hash) { 3136 case -1840647503: /*translation*/ return new String[] {"boolean"}; 3137 default: return super.getTypesForProperty(hash, name); 3138 } 3139 3140 } 3141 3142 @Override 3143 public Base addChild(String name) throws FHIRException { 3144 if (name.equals("translation")) { 3145 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.translation"); 3146 } 3147 else 3148 return super.addChild(name); 3149 } 3150 3151 public TerminologyCapabilitiesClosureComponent copy() { 3152 TerminologyCapabilitiesClosureComponent dst = new TerminologyCapabilitiesClosureComponent(); 3153 copyValues(dst); 3154 return dst; 3155 } 3156 3157 public void copyValues(TerminologyCapabilitiesClosureComponent dst) { 3158 super.copyValues(dst); 3159 dst.translation = translation == null ? null : translation.copy(); 3160 } 3161 3162 @Override 3163 public boolean equalsDeep(Base other_) { 3164 if (!super.equalsDeep(other_)) 3165 return false; 3166 if (!(other_ instanceof TerminologyCapabilitiesClosureComponent)) 3167 return false; 3168 TerminologyCapabilitiesClosureComponent o = (TerminologyCapabilitiesClosureComponent) other_; 3169 return compareDeep(translation, o.translation, true); 3170 } 3171 3172 @Override 3173 public boolean equalsShallow(Base other_) { 3174 if (!super.equalsShallow(other_)) 3175 return false; 3176 if (!(other_ instanceof TerminologyCapabilitiesClosureComponent)) 3177 return false; 3178 TerminologyCapabilitiesClosureComponent o = (TerminologyCapabilitiesClosureComponent) other_; 3179 return compareValues(translation, o.translation, true); 3180 } 3181 3182 public boolean isEmpty() { 3183 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(translation); 3184 } 3185 3186 public String fhirType() { 3187 return "TerminologyCapabilities.closure"; 3188 3189 } 3190 3191 } 3192 3193 /** 3194 * Explanation of why this terminology capabilities is needed and why it has been designed as it has. 3195 */ 3196 @Child(name = "purpose", type = {MarkdownType.class}, order=0, min=0, max=1, modifier=false, summary=false) 3197 @Description(shortDefinition="Why this terminology capabilities is defined", formalDefinition="Explanation of why this terminology capabilities is needed and why it has been designed as it has." ) 3198 protected MarkdownType purpose; 3199 3200 /** 3201 * A copyright statement relating to the terminology capabilities and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the terminology capabilities. 3202 */ 3203 @Child(name = "copyright", type = {MarkdownType.class}, order=1, min=0, max=1, modifier=false, summary=true) 3204 @Description(shortDefinition="Use and/or publishing restrictions", formalDefinition="A copyright statement relating to the terminology capabilities and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the terminology capabilities." ) 3205 protected MarkdownType copyright; 3206 3207 /** 3208 * 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). 3209 */ 3210 @Child(name = "kind", type = {CodeType.class}, order=2, min=1, max=1, modifier=false, summary=true) 3211 @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)." ) 3212 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/capability-statement-kind") 3213 protected Enumeration<CapabilityStatementKind> kind; 3214 3215 /** 3216 * Software that is covered by this terminology capability statement. It is used when the statement describes the capabilities of a particular software version, independent of an installation. 3217 */ 3218 @Child(name = "software", type = {}, order=3, min=0, max=1, modifier=false, summary=true) 3219 @Description(shortDefinition="Software that is covered by this terminology capability statement", formalDefinition="Software that is covered by this terminology capability statement. It is used when the statement describes the capabilities of a particular software version, independent of an installation." ) 3220 protected TerminologyCapabilitiesSoftwareComponent software; 3221 3222 /** 3223 * Identifies a specific implementation instance that is described by the terminology capability statement - i.e. a particular installation, rather than the capabilities of a software program. 3224 */ 3225 @Child(name = "implementation", type = {}, order=4, min=0, max=1, modifier=false, summary=true) 3226 @Description(shortDefinition="If this describes a specific instance", formalDefinition="Identifies a specific implementation instance that is described by the terminology capability statement - i.e. a particular installation, rather than the capabilities of a software program." ) 3227 protected TerminologyCapabilitiesImplementationComponent implementation; 3228 3229 /** 3230 * Whether the server supports lockedDate. 3231 */ 3232 @Child(name = "lockedDate", type = {BooleanType.class}, order=5, min=0, max=1, modifier=false, summary=true) 3233 @Description(shortDefinition="Whether lockedDate is supported", formalDefinition="Whether the server supports lockedDate." ) 3234 protected BooleanType lockedDate; 3235 3236 /** 3237 * Identifies a code system that is supported by the server. If there is a no code system URL, then this declares the general assumptions a client can make about support for any CodeSystem resource. 3238 */ 3239 @Child(name = "codeSystem", type = {}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 3240 @Description(shortDefinition="A code system supported by the server", formalDefinition="Identifies a code system that is supported by the server. If there is a no code system URL, then this declares the general assumptions a client can make about support for any CodeSystem resource." ) 3241 protected List<TerminologyCapabilitiesCodeSystemComponent> codeSystem; 3242 3243 /** 3244 * Information about the [ValueSet/$expand](valueset-operation-expand.html) operation. 3245 */ 3246 @Child(name = "expansion", type = {}, order=7, min=0, max=1, modifier=false, summary=false) 3247 @Description(shortDefinition="Information about the [ValueSet/$expand](valueset-operation-expand.html) operation", formalDefinition="Information about the [ValueSet/$expand](valueset-operation-expand.html) operation." ) 3248 protected TerminologyCapabilitiesExpansionComponent expansion; 3249 3250 /** 3251 * The degree to which the server supports the code search parameter on ValueSet, if it is supported. 3252 */ 3253 @Child(name = "codeSearch", type = {CodeType.class}, order=8, min=0, max=1, modifier=false, summary=false) 3254 @Description(shortDefinition="explicit | all", formalDefinition="The degree to which the server supports the code search parameter on ValueSet, if it is supported." ) 3255 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/code-search-support") 3256 protected Enumeration<CodeSearchSupport> codeSearch; 3257 3258 /** 3259 * Information about the [ValueSet/$validate-code](valueset-operation-validate-code.html) operation. 3260 */ 3261 @Child(name = "validateCode", type = {}, order=9, min=0, max=1, modifier=false, summary=false) 3262 @Description(shortDefinition="Information about the [ValueSet/$validate-code](valueset-operation-validate-code.html) operation", formalDefinition="Information about the [ValueSet/$validate-code](valueset-operation-validate-code.html) operation." ) 3263 protected TerminologyCapabilitiesValidateCodeComponent validateCode; 3264 3265 /** 3266 * Information about the [ConceptMap/$translate](conceptmap-operation-translate.html) operation. 3267 */ 3268 @Child(name = "translation", type = {}, order=10, min=0, max=1, modifier=false, summary=false) 3269 @Description(shortDefinition="Information about the [ConceptMap/$translate](conceptmap-operation-translate.html) operation", formalDefinition="Information about the [ConceptMap/$translate](conceptmap-operation-translate.html) operation." ) 3270 protected TerminologyCapabilitiesTranslationComponent translation; 3271 3272 /** 3273 * Whether the $closure operation is supported. 3274 */ 3275 @Child(name = "closure", type = {}, order=11, min=0, max=1, modifier=false, summary=false) 3276 @Description(shortDefinition="Information about the [ConceptMap/$closure](conceptmap-operation-closure.html) operation", formalDefinition="Whether the $closure operation is supported." ) 3277 protected TerminologyCapabilitiesClosureComponent closure; 3278 3279 private static final long serialVersionUID = -1899106119L; 3280 3281 /** 3282 * Constructor 3283 */ 3284 public TerminologyCapabilities() { 3285 super(); 3286 } 3287 3288 /** 3289 * Constructor 3290 */ 3291 public TerminologyCapabilities(Enumeration<PublicationStatus> status, DateTimeType date, Enumeration<CapabilityStatementKind> kind) { 3292 super(); 3293 this.status = status; 3294 this.date = date; 3295 this.kind = kind; 3296 } 3297 3298 /** 3299 * @return {@link #url} (An absolute URI that is used to identify this terminology capabilities 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 terminology capabilities is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the terminology capabilities is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 3300 */ 3301 public UriType getUrlElement() { 3302 if (this.url == null) 3303 if (Configuration.errorOnAutoCreate()) 3304 throw new Error("Attempt to auto-create TerminologyCapabilities.url"); 3305 else if (Configuration.doAutoCreate()) 3306 this.url = new UriType(); // bb 3307 return this.url; 3308 } 3309 3310 public boolean hasUrlElement() { 3311 return this.url != null && !this.url.isEmpty(); 3312 } 3313 3314 public boolean hasUrl() { 3315 return this.url != null && !this.url.isEmpty(); 3316 } 3317 3318 /** 3319 * @param value {@link #url} (An absolute URI that is used to identify this terminology capabilities 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 terminology capabilities is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the terminology capabilities is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 3320 */ 3321 public TerminologyCapabilities setUrlElement(UriType value) { 3322 this.url = value; 3323 return this; 3324 } 3325 3326 /** 3327 * @return An absolute URI that is used to identify this terminology capabilities 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 terminology capabilities is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the terminology capabilities is stored on different servers. 3328 */ 3329 public String getUrl() { 3330 return this.url == null ? null : this.url.getValue(); 3331 } 3332 3333 /** 3334 * @param value An absolute URI that is used to identify this terminology capabilities 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 terminology capabilities is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the terminology capabilities is stored on different servers. 3335 */ 3336 public TerminologyCapabilities setUrl(String value) { 3337 if (Utilities.noString(value)) 3338 this.url = null; 3339 else { 3340 if (this.url == null) 3341 this.url = new UriType(); 3342 this.url.setValue(value); 3343 } 3344 return this; 3345 } 3346 3347 /** 3348 * @return {@link #version} (The identifier that is used to identify this version of the terminology capabilities when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the terminology capabilities 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 3349 */ 3350 public StringType getVersionElement() { 3351 if (this.version == null) 3352 if (Configuration.errorOnAutoCreate()) 3353 throw new Error("Attempt to auto-create TerminologyCapabilities.version"); 3354 else if (Configuration.doAutoCreate()) 3355 this.version = new StringType(); // bb 3356 return this.version; 3357 } 3358 3359 public boolean hasVersionElement() { 3360 return this.version != null && !this.version.isEmpty(); 3361 } 3362 3363 public boolean hasVersion() { 3364 return this.version != null && !this.version.isEmpty(); 3365 } 3366 3367 /** 3368 * @param value {@link #version} (The identifier that is used to identify this version of the terminology capabilities when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the terminology capabilities 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 3369 */ 3370 public TerminologyCapabilities setVersionElement(StringType value) { 3371 this.version = value; 3372 return this; 3373 } 3374 3375 /** 3376 * @return The identifier that is used to identify this version of the terminology capabilities when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the terminology capabilities 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. 3377 */ 3378 public String getVersion() { 3379 return this.version == null ? null : this.version.getValue(); 3380 } 3381 3382 /** 3383 * @param value The identifier that is used to identify this version of the terminology capabilities when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the terminology capabilities 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. 3384 */ 3385 public TerminologyCapabilities setVersion(String value) { 3386 if (Utilities.noString(value)) 3387 this.version = null; 3388 else { 3389 if (this.version == null) 3390 this.version = new StringType(); 3391 this.version.setValue(value); 3392 } 3393 return this; 3394 } 3395 3396 /** 3397 * @return {@link #name} (A natural language name identifying the terminology capabilities. 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 3398 */ 3399 public StringType getNameElement() { 3400 if (this.name == null) 3401 if (Configuration.errorOnAutoCreate()) 3402 throw new Error("Attempt to auto-create TerminologyCapabilities.name"); 3403 else if (Configuration.doAutoCreate()) 3404 this.name = new StringType(); // bb 3405 return this.name; 3406 } 3407 3408 public boolean hasNameElement() { 3409 return this.name != null && !this.name.isEmpty(); 3410 } 3411 3412 public boolean hasName() { 3413 return this.name != null && !this.name.isEmpty(); 3414 } 3415 3416 /** 3417 * @param value {@link #name} (A natural language name identifying the terminology capabilities. 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 3418 */ 3419 public TerminologyCapabilities setNameElement(StringType value) { 3420 this.name = value; 3421 return this; 3422 } 3423 3424 /** 3425 * @return A natural language name identifying the terminology capabilities. This name should be usable as an identifier for the module by machine processing applications such as code generation. 3426 */ 3427 public String getName() { 3428 return this.name == null ? null : this.name.getValue(); 3429 } 3430 3431 /** 3432 * @param value A natural language name identifying the terminology capabilities. This name should be usable as an identifier for the module by machine processing applications such as code generation. 3433 */ 3434 public TerminologyCapabilities setName(String value) { 3435 if (Utilities.noString(value)) 3436 this.name = null; 3437 else { 3438 if (this.name == null) 3439 this.name = new StringType(); 3440 this.name.setValue(value); 3441 } 3442 return this; 3443 } 3444 3445 /** 3446 * @return {@link #title} (A short, descriptive, user-friendly title for the terminology capabilities.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value 3447 */ 3448 public StringType getTitleElement() { 3449 if (this.title == null) 3450 if (Configuration.errorOnAutoCreate()) 3451 throw new Error("Attempt to auto-create TerminologyCapabilities.title"); 3452 else if (Configuration.doAutoCreate()) 3453 this.title = new StringType(); // bb 3454 return this.title; 3455 } 3456 3457 public boolean hasTitleElement() { 3458 return this.title != null && !this.title.isEmpty(); 3459 } 3460 3461 public boolean hasTitle() { 3462 return this.title != null && !this.title.isEmpty(); 3463 } 3464 3465 /** 3466 * @param value {@link #title} (A short, descriptive, user-friendly title for the terminology capabilities.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value 3467 */ 3468 public TerminologyCapabilities setTitleElement(StringType value) { 3469 this.title = value; 3470 return this; 3471 } 3472 3473 /** 3474 * @return A short, descriptive, user-friendly title for the terminology capabilities. 3475 */ 3476 public String getTitle() { 3477 return this.title == null ? null : this.title.getValue(); 3478 } 3479 3480 /** 3481 * @param value A short, descriptive, user-friendly title for the terminology capabilities. 3482 */ 3483 public TerminologyCapabilities setTitle(String value) { 3484 if (Utilities.noString(value)) 3485 this.title = null; 3486 else { 3487 if (this.title == null) 3488 this.title = new StringType(); 3489 this.title.setValue(value); 3490 } 3491 return this; 3492 } 3493 3494 /** 3495 * @return {@link #status} (The status of this terminology capabilities. 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 3496 */ 3497 public Enumeration<PublicationStatus> getStatusElement() { 3498 if (this.status == null) 3499 if (Configuration.errorOnAutoCreate()) 3500 throw new Error("Attempt to auto-create TerminologyCapabilities.status"); 3501 else if (Configuration.doAutoCreate()) 3502 this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); // bb 3503 return this.status; 3504 } 3505 3506 public boolean hasStatusElement() { 3507 return this.status != null && !this.status.isEmpty(); 3508 } 3509 3510 public boolean hasStatus() { 3511 return this.status != null && !this.status.isEmpty(); 3512 } 3513 3514 /** 3515 * @param value {@link #status} (The status of this terminology capabilities. 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 3516 */ 3517 public TerminologyCapabilities setStatusElement(Enumeration<PublicationStatus> value) { 3518 this.status = value; 3519 return this; 3520 } 3521 3522 /** 3523 * @return The status of this terminology capabilities. Enables tracking the life-cycle of the content. 3524 */ 3525 public PublicationStatus getStatus() { 3526 return this.status == null ? null : this.status.getValue(); 3527 } 3528 3529 /** 3530 * @param value The status of this terminology capabilities. Enables tracking the life-cycle of the content. 3531 */ 3532 public TerminologyCapabilities setStatus(PublicationStatus value) { 3533 if (this.status == null) 3534 this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); 3535 this.status.setValue(value); 3536 return this; 3537 } 3538 3539 /** 3540 * @return {@link #experimental} (A Boolean value to indicate that this terminology capabilities 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 3541 */ 3542 public BooleanType getExperimentalElement() { 3543 if (this.experimental == null) 3544 if (Configuration.errorOnAutoCreate()) 3545 throw new Error("Attempt to auto-create TerminologyCapabilities.experimental"); 3546 else if (Configuration.doAutoCreate()) 3547 this.experimental = new BooleanType(); // bb 3548 return this.experimental; 3549 } 3550 3551 public boolean hasExperimentalElement() { 3552 return this.experimental != null && !this.experimental.isEmpty(); 3553 } 3554 3555 public boolean hasExperimental() { 3556 return this.experimental != null && !this.experimental.isEmpty(); 3557 } 3558 3559 /** 3560 * @param value {@link #experimental} (A Boolean value to indicate that this terminology capabilities 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 3561 */ 3562 public TerminologyCapabilities setExperimentalElement(BooleanType value) { 3563 this.experimental = value; 3564 return this; 3565 } 3566 3567 /** 3568 * @return A Boolean value to indicate that this terminology capabilities is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage. 3569 */ 3570 public boolean getExperimental() { 3571 return this.experimental == null || this.experimental.isEmpty() ? false : this.experimental.getValue(); 3572 } 3573 3574 /** 3575 * @param value A Boolean value to indicate that this terminology capabilities is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage. 3576 */ 3577 public TerminologyCapabilities setExperimental(boolean value) { 3578 if (this.experimental == null) 3579 this.experimental = new BooleanType(); 3580 this.experimental.setValue(value); 3581 return this; 3582 } 3583 3584 /** 3585 * @return {@link #date} (The date (and optionally time) when the terminology capabilities 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 terminology capabilities changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 3586 */ 3587 public DateTimeType getDateElement() { 3588 if (this.date == null) 3589 if (Configuration.errorOnAutoCreate()) 3590 throw new Error("Attempt to auto-create TerminologyCapabilities.date"); 3591 else if (Configuration.doAutoCreate()) 3592 this.date = new DateTimeType(); // bb 3593 return this.date; 3594 } 3595 3596 public boolean hasDateElement() { 3597 return this.date != null && !this.date.isEmpty(); 3598 } 3599 3600 public boolean hasDate() { 3601 return this.date != null && !this.date.isEmpty(); 3602 } 3603 3604 /** 3605 * @param value {@link #date} (The date (and optionally time) when the terminology capabilities 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 terminology capabilities changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 3606 */ 3607 public TerminologyCapabilities setDateElement(DateTimeType value) { 3608 this.date = value; 3609 return this; 3610 } 3611 3612 /** 3613 * @return The date (and optionally time) when the terminology capabilities 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 terminology capabilities changes. 3614 */ 3615 public Date getDate() { 3616 return this.date == null ? null : this.date.getValue(); 3617 } 3618 3619 /** 3620 * @param value The date (and optionally time) when the terminology capabilities 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 terminology capabilities changes. 3621 */ 3622 public TerminologyCapabilities setDate(Date value) { 3623 if (this.date == null) 3624 this.date = new DateTimeType(); 3625 this.date.setValue(value); 3626 return this; 3627 } 3628 3629 /** 3630 * @return {@link #publisher} (The name of the organization or individual that published the terminology capabilities.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value 3631 */ 3632 public StringType getPublisherElement() { 3633 if (this.publisher == null) 3634 if (Configuration.errorOnAutoCreate()) 3635 throw new Error("Attempt to auto-create TerminologyCapabilities.publisher"); 3636 else if (Configuration.doAutoCreate()) 3637 this.publisher = new StringType(); // bb 3638 return this.publisher; 3639 } 3640 3641 public boolean hasPublisherElement() { 3642 return this.publisher != null && !this.publisher.isEmpty(); 3643 } 3644 3645 public boolean hasPublisher() { 3646 return this.publisher != null && !this.publisher.isEmpty(); 3647 } 3648 3649 /** 3650 * @param value {@link #publisher} (The name of the organization or individual that published the terminology capabilities.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value 3651 */ 3652 public TerminologyCapabilities setPublisherElement(StringType value) { 3653 this.publisher = value; 3654 return this; 3655 } 3656 3657 /** 3658 * @return The name of the organization or individual that published the terminology capabilities. 3659 */ 3660 public String getPublisher() { 3661 return this.publisher == null ? null : this.publisher.getValue(); 3662 } 3663 3664 /** 3665 * @param value The name of the organization or individual that published the terminology capabilities. 3666 */ 3667 public TerminologyCapabilities setPublisher(String value) { 3668 if (Utilities.noString(value)) 3669 this.publisher = null; 3670 else { 3671 if (this.publisher == null) 3672 this.publisher = new StringType(); 3673 this.publisher.setValue(value); 3674 } 3675 return this; 3676 } 3677 3678 /** 3679 * @return {@link #contact} (Contact details to assist a user in finding and communicating with the publisher.) 3680 */ 3681 public List<ContactDetail> getContact() { 3682 if (this.contact == null) 3683 this.contact = new ArrayList<ContactDetail>(); 3684 return this.contact; 3685 } 3686 3687 /** 3688 * @return Returns a reference to <code>this</code> for easy method chaining 3689 */ 3690 public TerminologyCapabilities setContact(List<ContactDetail> theContact) { 3691 this.contact = theContact; 3692 return this; 3693 } 3694 3695 public boolean hasContact() { 3696 if (this.contact == null) 3697 return false; 3698 for (ContactDetail item : this.contact) 3699 if (!item.isEmpty()) 3700 return true; 3701 return false; 3702 } 3703 3704 public ContactDetail addContact() { //3 3705 ContactDetail t = new ContactDetail(); 3706 if (this.contact == null) 3707 this.contact = new ArrayList<ContactDetail>(); 3708 this.contact.add(t); 3709 return t; 3710 } 3711 3712 public TerminologyCapabilities addContact(ContactDetail t) { //3 3713 if (t == null) 3714 return this; 3715 if (this.contact == null) 3716 this.contact = new ArrayList<ContactDetail>(); 3717 this.contact.add(t); 3718 return this; 3719 } 3720 3721 /** 3722 * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist 3723 */ 3724 public ContactDetail getContactFirstRep() { 3725 if (getContact().isEmpty()) { 3726 addContact(); 3727 } 3728 return getContact().get(0); 3729 } 3730 3731 /** 3732 * @return {@link #description} (A free text natural language description of the terminology capabilities 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 3733 */ 3734 public MarkdownType getDescriptionElement() { 3735 if (this.description == null) 3736 if (Configuration.errorOnAutoCreate()) 3737 throw new Error("Attempt to auto-create TerminologyCapabilities.description"); 3738 else if (Configuration.doAutoCreate()) 3739 this.description = new MarkdownType(); // bb 3740 return this.description; 3741 } 3742 3743 public boolean hasDescriptionElement() { 3744 return this.description != null && !this.description.isEmpty(); 3745 } 3746 3747 public boolean hasDescription() { 3748 return this.description != null && !this.description.isEmpty(); 3749 } 3750 3751 /** 3752 * @param value {@link #description} (A free text natural language description of the terminology capabilities 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 3753 */ 3754 public TerminologyCapabilities setDescriptionElement(MarkdownType value) { 3755 this.description = value; 3756 return this; 3757 } 3758 3759 /** 3760 * @return A free text natural language description of the terminology capabilities 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. 3761 */ 3762 public String getDescription() { 3763 return this.description == null ? null : this.description.getValue(); 3764 } 3765 3766 /** 3767 * @param value A free text natural language description of the terminology capabilities 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. 3768 */ 3769 public TerminologyCapabilities setDescription(String value) { 3770 if (value == null) 3771 this.description = null; 3772 else { 3773 if (this.description == null) 3774 this.description = new MarkdownType(); 3775 this.description.setValue(value); 3776 } 3777 return this; 3778 } 3779 3780 /** 3781 * @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 terminology capabilities instances.) 3782 */ 3783 public List<UsageContext> getUseContext() { 3784 if (this.useContext == null) 3785 this.useContext = new ArrayList<UsageContext>(); 3786 return this.useContext; 3787 } 3788 3789 /** 3790 * @return Returns a reference to <code>this</code> for easy method chaining 3791 */ 3792 public TerminologyCapabilities setUseContext(List<UsageContext> theUseContext) { 3793 this.useContext = theUseContext; 3794 return this; 3795 } 3796 3797 public boolean hasUseContext() { 3798 if (this.useContext == null) 3799 return false; 3800 for (UsageContext item : this.useContext) 3801 if (!item.isEmpty()) 3802 return true; 3803 return false; 3804 } 3805 3806 public UsageContext addUseContext() { //3 3807 UsageContext t = new UsageContext(); 3808 if (this.useContext == null) 3809 this.useContext = new ArrayList<UsageContext>(); 3810 this.useContext.add(t); 3811 return t; 3812 } 3813 3814 public TerminologyCapabilities addUseContext(UsageContext t) { //3 3815 if (t == null) 3816 return this; 3817 if (this.useContext == null) 3818 this.useContext = new ArrayList<UsageContext>(); 3819 this.useContext.add(t); 3820 return this; 3821 } 3822 3823 /** 3824 * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist 3825 */ 3826 public UsageContext getUseContextFirstRep() { 3827 if (getUseContext().isEmpty()) { 3828 addUseContext(); 3829 } 3830 return getUseContext().get(0); 3831 } 3832 3833 /** 3834 * @return {@link #jurisdiction} (A legal or geographic region in which the terminology capabilities is intended to be used.) 3835 */ 3836 public List<CodeableConcept> getJurisdiction() { 3837 if (this.jurisdiction == null) 3838 this.jurisdiction = new ArrayList<CodeableConcept>(); 3839 return this.jurisdiction; 3840 } 3841 3842 /** 3843 * @return Returns a reference to <code>this</code> for easy method chaining 3844 */ 3845 public TerminologyCapabilities setJurisdiction(List<CodeableConcept> theJurisdiction) { 3846 this.jurisdiction = theJurisdiction; 3847 return this; 3848 } 3849 3850 public boolean hasJurisdiction() { 3851 if (this.jurisdiction == null) 3852 return false; 3853 for (CodeableConcept item : this.jurisdiction) 3854 if (!item.isEmpty()) 3855 return true; 3856 return false; 3857 } 3858 3859 public CodeableConcept addJurisdiction() { //3 3860 CodeableConcept t = new CodeableConcept(); 3861 if (this.jurisdiction == null) 3862 this.jurisdiction = new ArrayList<CodeableConcept>(); 3863 this.jurisdiction.add(t); 3864 return t; 3865 } 3866 3867 public TerminologyCapabilities addJurisdiction(CodeableConcept t) { //3 3868 if (t == null) 3869 return this; 3870 if (this.jurisdiction == null) 3871 this.jurisdiction = new ArrayList<CodeableConcept>(); 3872 this.jurisdiction.add(t); 3873 return this; 3874 } 3875 3876 /** 3877 * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist 3878 */ 3879 public CodeableConcept getJurisdictionFirstRep() { 3880 if (getJurisdiction().isEmpty()) { 3881 addJurisdiction(); 3882 } 3883 return getJurisdiction().get(0); 3884 } 3885 3886 /** 3887 * @return {@link #purpose} (Explanation of why this terminology capabilities 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 3888 */ 3889 public MarkdownType getPurposeElement() { 3890 if (this.purpose == null) 3891 if (Configuration.errorOnAutoCreate()) 3892 throw new Error("Attempt to auto-create TerminologyCapabilities.purpose"); 3893 else if (Configuration.doAutoCreate()) 3894 this.purpose = new MarkdownType(); // bb 3895 return this.purpose; 3896 } 3897 3898 public boolean hasPurposeElement() { 3899 return this.purpose != null && !this.purpose.isEmpty(); 3900 } 3901 3902 public boolean hasPurpose() { 3903 return this.purpose != null && !this.purpose.isEmpty(); 3904 } 3905 3906 /** 3907 * @param value {@link #purpose} (Explanation of why this terminology capabilities 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 3908 */ 3909 public TerminologyCapabilities setPurposeElement(MarkdownType value) { 3910 this.purpose = value; 3911 return this; 3912 } 3913 3914 /** 3915 * @return Explanation of why this terminology capabilities is needed and why it has been designed as it has. 3916 */ 3917 public String getPurpose() { 3918 return this.purpose == null ? null : this.purpose.getValue(); 3919 } 3920 3921 /** 3922 * @param value Explanation of why this terminology capabilities is needed and why it has been designed as it has. 3923 */ 3924 public TerminologyCapabilities setPurpose(String value) { 3925 if (value == null) 3926 this.purpose = null; 3927 else { 3928 if (this.purpose == null) 3929 this.purpose = new MarkdownType(); 3930 this.purpose.setValue(value); 3931 } 3932 return this; 3933 } 3934 3935 /** 3936 * @return {@link #copyright} (A copyright statement relating to the terminology capabilities and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the terminology capabilities.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value 3937 */ 3938 public MarkdownType getCopyrightElement() { 3939 if (this.copyright == null) 3940 if (Configuration.errorOnAutoCreate()) 3941 throw new Error("Attempt to auto-create TerminologyCapabilities.copyright"); 3942 else if (Configuration.doAutoCreate()) 3943 this.copyright = new MarkdownType(); // bb 3944 return this.copyright; 3945 } 3946 3947 public boolean hasCopyrightElement() { 3948 return this.copyright != null && !this.copyright.isEmpty(); 3949 } 3950 3951 public boolean hasCopyright() { 3952 return this.copyright != null && !this.copyright.isEmpty(); 3953 } 3954 3955 /** 3956 * @param value {@link #copyright} (A copyright statement relating to the terminology capabilities and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the terminology capabilities.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value 3957 */ 3958 public TerminologyCapabilities setCopyrightElement(MarkdownType value) { 3959 this.copyright = value; 3960 return this; 3961 } 3962 3963 /** 3964 * @return A copyright statement relating to the terminology capabilities and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the terminology capabilities. 3965 */ 3966 public String getCopyright() { 3967 return this.copyright == null ? null : this.copyright.getValue(); 3968 } 3969 3970 /** 3971 * @param value A copyright statement relating to the terminology capabilities and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the terminology capabilities. 3972 */ 3973 public TerminologyCapabilities setCopyright(String value) { 3974 if (value == null) 3975 this.copyright = null; 3976 else { 3977 if (this.copyright == null) 3978 this.copyright = new MarkdownType(); 3979 this.copyright.setValue(value); 3980 } 3981 return this; 3982 } 3983 3984 /** 3985 * @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 3986 */ 3987 public Enumeration<CapabilityStatementKind> getKindElement() { 3988 if (this.kind == null) 3989 if (Configuration.errorOnAutoCreate()) 3990 throw new Error("Attempt to auto-create TerminologyCapabilities.kind"); 3991 else if (Configuration.doAutoCreate()) 3992 this.kind = new Enumeration<CapabilityStatementKind>(new CapabilityStatementKindEnumFactory()); // bb 3993 return this.kind; 3994 } 3995 3996 public boolean hasKindElement() { 3997 return this.kind != null && !this.kind.isEmpty(); 3998 } 3999 4000 public boolean hasKind() { 4001 return this.kind != null && !this.kind.isEmpty(); 4002 } 4003 4004 /** 4005 * @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 4006 */ 4007 public TerminologyCapabilities setKindElement(Enumeration<CapabilityStatementKind> value) { 4008 this.kind = value; 4009 return this; 4010 } 4011 4012 /** 4013 * @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). 4014 */ 4015 public CapabilityStatementKind getKind() { 4016 return this.kind == null ? null : this.kind.getValue(); 4017 } 4018 4019 /** 4020 * @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). 4021 */ 4022 public TerminologyCapabilities setKind(CapabilityStatementKind value) { 4023 if (this.kind == null) 4024 this.kind = new Enumeration<CapabilityStatementKind>(new CapabilityStatementKindEnumFactory()); 4025 this.kind.setValue(value); 4026 return this; 4027 } 4028 4029 /** 4030 * @return {@link #software} (Software that is covered by this terminology capability statement. It is used when the statement describes the capabilities of a particular software version, independent of an installation.) 4031 */ 4032 public TerminologyCapabilitiesSoftwareComponent getSoftware() { 4033 if (this.software == null) 4034 if (Configuration.errorOnAutoCreate()) 4035 throw new Error("Attempt to auto-create TerminologyCapabilities.software"); 4036 else if (Configuration.doAutoCreate()) 4037 this.software = new TerminologyCapabilitiesSoftwareComponent(); // cc 4038 return this.software; 4039 } 4040 4041 public boolean hasSoftware() { 4042 return this.software != null && !this.software.isEmpty(); 4043 } 4044 4045 /** 4046 * @param value {@link #software} (Software that is covered by this terminology capability statement. It is used when the statement describes the capabilities of a particular software version, independent of an installation.) 4047 */ 4048 public TerminologyCapabilities setSoftware(TerminologyCapabilitiesSoftwareComponent value) { 4049 this.software = value; 4050 return this; 4051 } 4052 4053 /** 4054 * @return {@link #implementation} (Identifies a specific implementation instance that is described by the terminology capability statement - i.e. a particular installation, rather than the capabilities of a software program.) 4055 */ 4056 public TerminologyCapabilitiesImplementationComponent getImplementation() { 4057 if (this.implementation == null) 4058 if (Configuration.errorOnAutoCreate()) 4059 throw new Error("Attempt to auto-create TerminologyCapabilities.implementation"); 4060 else if (Configuration.doAutoCreate()) 4061 this.implementation = new TerminologyCapabilitiesImplementationComponent(); // cc 4062 return this.implementation; 4063 } 4064 4065 public boolean hasImplementation() { 4066 return this.implementation != null && !this.implementation.isEmpty(); 4067 } 4068 4069 /** 4070 * @param value {@link #implementation} (Identifies a specific implementation instance that is described by the terminology capability statement - i.e. a particular installation, rather than the capabilities of a software program.) 4071 */ 4072 public TerminologyCapabilities setImplementation(TerminologyCapabilitiesImplementationComponent value) { 4073 this.implementation = value; 4074 return this; 4075 } 4076 4077 /** 4078 * @return {@link #lockedDate} (Whether the server supports lockedDate.). This is the underlying object with id, value and extensions. The accessor "getLockedDate" gives direct access to the value 4079 */ 4080 public BooleanType getLockedDateElement() { 4081 if (this.lockedDate == null) 4082 if (Configuration.errorOnAutoCreate()) 4083 throw new Error("Attempt to auto-create TerminologyCapabilities.lockedDate"); 4084 else if (Configuration.doAutoCreate()) 4085 this.lockedDate = new BooleanType(); // bb 4086 return this.lockedDate; 4087 } 4088 4089 public boolean hasLockedDateElement() { 4090 return this.lockedDate != null && !this.lockedDate.isEmpty(); 4091 } 4092 4093 public boolean hasLockedDate() { 4094 return this.lockedDate != null && !this.lockedDate.isEmpty(); 4095 } 4096 4097 /** 4098 * @param value {@link #lockedDate} (Whether the server supports lockedDate.). This is the underlying object with id, value and extensions. The accessor "getLockedDate" gives direct access to the value 4099 */ 4100 public TerminologyCapabilities setLockedDateElement(BooleanType value) { 4101 this.lockedDate = value; 4102 return this; 4103 } 4104 4105 /** 4106 * @return Whether the server supports lockedDate. 4107 */ 4108 public boolean getLockedDate() { 4109 return this.lockedDate == null || this.lockedDate.isEmpty() ? false : this.lockedDate.getValue(); 4110 } 4111 4112 /** 4113 * @param value Whether the server supports lockedDate. 4114 */ 4115 public TerminologyCapabilities setLockedDate(boolean value) { 4116 if (this.lockedDate == null) 4117 this.lockedDate = new BooleanType(); 4118 this.lockedDate.setValue(value); 4119 return this; 4120 } 4121 4122 /** 4123 * @return {@link #codeSystem} (Identifies a code system that is supported by the server. If there is a no code system URL, then this declares the general assumptions a client can make about support for any CodeSystem resource.) 4124 */ 4125 public List<TerminologyCapabilitiesCodeSystemComponent> getCodeSystem() { 4126 if (this.codeSystem == null) 4127 this.codeSystem = new ArrayList<TerminologyCapabilitiesCodeSystemComponent>(); 4128 return this.codeSystem; 4129 } 4130 4131 /** 4132 * @return Returns a reference to <code>this</code> for easy method chaining 4133 */ 4134 public TerminologyCapabilities setCodeSystem(List<TerminologyCapabilitiesCodeSystemComponent> theCodeSystem) { 4135 this.codeSystem = theCodeSystem; 4136 return this; 4137 } 4138 4139 public boolean hasCodeSystem() { 4140 if (this.codeSystem == null) 4141 return false; 4142 for (TerminologyCapabilitiesCodeSystemComponent item : this.codeSystem) 4143 if (!item.isEmpty()) 4144 return true; 4145 return false; 4146 } 4147 4148 public TerminologyCapabilitiesCodeSystemComponent addCodeSystem() { //3 4149 TerminologyCapabilitiesCodeSystemComponent t = new TerminologyCapabilitiesCodeSystemComponent(); 4150 if (this.codeSystem == null) 4151 this.codeSystem = new ArrayList<TerminologyCapabilitiesCodeSystemComponent>(); 4152 this.codeSystem.add(t); 4153 return t; 4154 } 4155 4156 public TerminologyCapabilities addCodeSystem(TerminologyCapabilitiesCodeSystemComponent t) { //3 4157 if (t == null) 4158 return this; 4159 if (this.codeSystem == null) 4160 this.codeSystem = new ArrayList<TerminologyCapabilitiesCodeSystemComponent>(); 4161 this.codeSystem.add(t); 4162 return this; 4163 } 4164 4165 /** 4166 * @return The first repetition of repeating field {@link #codeSystem}, creating it if it does not already exist 4167 */ 4168 public TerminologyCapabilitiesCodeSystemComponent getCodeSystemFirstRep() { 4169 if (getCodeSystem().isEmpty()) { 4170 addCodeSystem(); 4171 } 4172 return getCodeSystem().get(0); 4173 } 4174 4175 /** 4176 * @return {@link #expansion} (Information about the [ValueSet/$expand](valueset-operation-expand.html) operation.) 4177 */ 4178 public TerminologyCapabilitiesExpansionComponent getExpansion() { 4179 if (this.expansion == null) 4180 if (Configuration.errorOnAutoCreate()) 4181 throw new Error("Attempt to auto-create TerminologyCapabilities.expansion"); 4182 else if (Configuration.doAutoCreate()) 4183 this.expansion = new TerminologyCapabilitiesExpansionComponent(); // cc 4184 return this.expansion; 4185 } 4186 4187 public boolean hasExpansion() { 4188 return this.expansion != null && !this.expansion.isEmpty(); 4189 } 4190 4191 /** 4192 * @param value {@link #expansion} (Information about the [ValueSet/$expand](valueset-operation-expand.html) operation.) 4193 */ 4194 public TerminologyCapabilities setExpansion(TerminologyCapabilitiesExpansionComponent value) { 4195 this.expansion = value; 4196 return this; 4197 } 4198 4199 /** 4200 * @return {@link #codeSearch} (The degree to which the server supports the code search parameter on ValueSet, if it is supported.). This is the underlying object with id, value and extensions. The accessor "getCodeSearch" gives direct access to the value 4201 */ 4202 public Enumeration<CodeSearchSupport> getCodeSearchElement() { 4203 if (this.codeSearch == null) 4204 if (Configuration.errorOnAutoCreate()) 4205 throw new Error("Attempt to auto-create TerminologyCapabilities.codeSearch"); 4206 else if (Configuration.doAutoCreate()) 4207 this.codeSearch = new Enumeration<CodeSearchSupport>(new CodeSearchSupportEnumFactory()); // bb 4208 return this.codeSearch; 4209 } 4210 4211 public boolean hasCodeSearchElement() { 4212 return this.codeSearch != null && !this.codeSearch.isEmpty(); 4213 } 4214 4215 public boolean hasCodeSearch() { 4216 return this.codeSearch != null && !this.codeSearch.isEmpty(); 4217 } 4218 4219 /** 4220 * @param value {@link #codeSearch} (The degree to which the server supports the code search parameter on ValueSet, if it is supported.). This is the underlying object with id, value and extensions. The accessor "getCodeSearch" gives direct access to the value 4221 */ 4222 public TerminologyCapabilities setCodeSearchElement(Enumeration<CodeSearchSupport> value) { 4223 this.codeSearch = value; 4224 return this; 4225 } 4226 4227 /** 4228 * @return The degree to which the server supports the code search parameter on ValueSet, if it is supported. 4229 */ 4230 public CodeSearchSupport getCodeSearch() { 4231 return this.codeSearch == null ? null : this.codeSearch.getValue(); 4232 } 4233 4234 /** 4235 * @param value The degree to which the server supports the code search parameter on ValueSet, if it is supported. 4236 */ 4237 public TerminologyCapabilities setCodeSearch(CodeSearchSupport value) { 4238 if (value == null) 4239 this.codeSearch = null; 4240 else { 4241 if (this.codeSearch == null) 4242 this.codeSearch = new Enumeration<CodeSearchSupport>(new CodeSearchSupportEnumFactory()); 4243 this.codeSearch.setValue(value); 4244 } 4245 return this; 4246 } 4247 4248 /** 4249 * @return {@link #validateCode} (Information about the [ValueSet/$validate-code](valueset-operation-validate-code.html) operation.) 4250 */ 4251 public TerminologyCapabilitiesValidateCodeComponent getValidateCode() { 4252 if (this.validateCode == null) 4253 if (Configuration.errorOnAutoCreate()) 4254 throw new Error("Attempt to auto-create TerminologyCapabilities.validateCode"); 4255 else if (Configuration.doAutoCreate()) 4256 this.validateCode = new TerminologyCapabilitiesValidateCodeComponent(); // cc 4257 return this.validateCode; 4258 } 4259 4260 public boolean hasValidateCode() { 4261 return this.validateCode != null && !this.validateCode.isEmpty(); 4262 } 4263 4264 /** 4265 * @param value {@link #validateCode} (Information about the [ValueSet/$validate-code](valueset-operation-validate-code.html) operation.) 4266 */ 4267 public TerminologyCapabilities setValidateCode(TerminologyCapabilitiesValidateCodeComponent value) { 4268 this.validateCode = value; 4269 return this; 4270 } 4271 4272 /** 4273 * @return {@link #translation} (Information about the [ConceptMap/$translate](conceptmap-operation-translate.html) operation.) 4274 */ 4275 public TerminologyCapabilitiesTranslationComponent getTranslation() { 4276 if (this.translation == null) 4277 if (Configuration.errorOnAutoCreate()) 4278 throw new Error("Attempt to auto-create TerminologyCapabilities.translation"); 4279 else if (Configuration.doAutoCreate()) 4280 this.translation = new TerminologyCapabilitiesTranslationComponent(); // cc 4281 return this.translation; 4282 } 4283 4284 public boolean hasTranslation() { 4285 return this.translation != null && !this.translation.isEmpty(); 4286 } 4287 4288 /** 4289 * @param value {@link #translation} (Information about the [ConceptMap/$translate](conceptmap-operation-translate.html) operation.) 4290 */ 4291 public TerminologyCapabilities setTranslation(TerminologyCapabilitiesTranslationComponent value) { 4292 this.translation = value; 4293 return this; 4294 } 4295 4296 /** 4297 * @return {@link #closure} (Whether the $closure operation is supported.) 4298 */ 4299 public TerminologyCapabilitiesClosureComponent getClosure() { 4300 if (this.closure == null) 4301 if (Configuration.errorOnAutoCreate()) 4302 throw new Error("Attempt to auto-create TerminologyCapabilities.closure"); 4303 else if (Configuration.doAutoCreate()) 4304 this.closure = new TerminologyCapabilitiesClosureComponent(); // cc 4305 return this.closure; 4306 } 4307 4308 public boolean hasClosure() { 4309 return this.closure != null && !this.closure.isEmpty(); 4310 } 4311 4312 /** 4313 * @param value {@link #closure} (Whether the $closure operation is supported.) 4314 */ 4315 public TerminologyCapabilities setClosure(TerminologyCapabilitiesClosureComponent value) { 4316 this.closure = value; 4317 return this; 4318 } 4319 4320 protected void listChildren(List<Property> children) { 4321 super.listChildren(children); 4322 children.add(new Property("url", "uri", "An absolute URI that is used to identify this terminology capabilities 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 terminology capabilities is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the terminology capabilities is stored on different servers.", 0, 1, url)); 4323 children.add(new Property("version", "string", "The identifier that is used to identify this version of the terminology capabilities when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the terminology capabilities 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)); 4324 children.add(new Property("name", "string", "A natural language name identifying the terminology capabilities. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name)); 4325 children.add(new Property("title", "string", "A short, descriptive, user-friendly title for the terminology capabilities.", 0, 1, title)); 4326 children.add(new Property("status", "code", "The status of this terminology capabilities. Enables tracking the life-cycle of the content.", 0, 1, status)); 4327 children.add(new Property("experimental", "boolean", "A Boolean value to indicate that this terminology capabilities is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental)); 4328 children.add(new Property("date", "dateTime", "The date (and optionally time) when the terminology capabilities 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 terminology capabilities changes.", 0, 1, date)); 4329 children.add(new Property("publisher", "string", "The name of the organization or individual that published the terminology capabilities.", 0, 1, publisher)); 4330 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)); 4331 children.add(new Property("description", "markdown", "A free text natural language description of the terminology capabilities 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)); 4332 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 terminology capabilities instances.", 0, java.lang.Integer.MAX_VALUE, useContext)); 4333 children.add(new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the terminology capabilities is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction)); 4334 children.add(new Property("purpose", "markdown", "Explanation of why this terminology capabilities is needed and why it has been designed as it has.", 0, 1, purpose)); 4335 children.add(new Property("copyright", "markdown", "A copyright statement relating to the terminology capabilities and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the terminology capabilities.", 0, 1, copyright)); 4336 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)); 4337 children.add(new Property("software", "", "Software that is covered by this terminology capability statement. It is used when the statement describes the capabilities of a particular software version, independent of an installation.", 0, 1, software)); 4338 children.add(new Property("implementation", "", "Identifies a specific implementation instance that is described by the terminology capability statement - i.e. a particular installation, rather than the capabilities of a software program.", 0, 1, implementation)); 4339 children.add(new Property("lockedDate", "boolean", "Whether the server supports lockedDate.", 0, 1, lockedDate)); 4340 children.add(new Property("codeSystem", "", "Identifies a code system that is supported by the server. If there is a no code system URL, then this declares the general assumptions a client can make about support for any CodeSystem resource.", 0, java.lang.Integer.MAX_VALUE, codeSystem)); 4341 children.add(new Property("expansion", "", "Information about the [ValueSet/$expand](valueset-operation-expand.html) operation.", 0, 1, expansion)); 4342 children.add(new Property("codeSearch", "code", "The degree to which the server supports the code search parameter on ValueSet, if it is supported.", 0, 1, codeSearch)); 4343 children.add(new Property("validateCode", "", "Information about the [ValueSet/$validate-code](valueset-operation-validate-code.html) operation.", 0, 1, validateCode)); 4344 children.add(new Property("translation", "", "Information about the [ConceptMap/$translate](conceptmap-operation-translate.html) operation.", 0, 1, translation)); 4345 children.add(new Property("closure", "", "Whether the $closure operation is supported.", 0, 1, closure)); 4346 } 4347 4348 @Override 4349 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 4350 switch (_hash) { 4351 case 116079: /*url*/ return new Property("url", "uri", "An absolute URI that is used to identify this terminology capabilities 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 terminology capabilities is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the terminology capabilities is stored on different servers.", 0, 1, url); 4352 case 351608024: /*version*/ return new Property("version", "string", "The identifier that is used to identify this version of the terminology capabilities when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the terminology capabilities 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); 4353 case 3373707: /*name*/ return new Property("name", "string", "A natural language name identifying the terminology capabilities. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name); 4354 case 110371416: /*title*/ return new Property("title", "string", "A short, descriptive, user-friendly title for the terminology capabilities.", 0, 1, title); 4355 case -892481550: /*status*/ return new Property("status", "code", "The status of this terminology capabilities. Enables tracking the life-cycle of the content.", 0, 1, status); 4356 case -404562712: /*experimental*/ return new Property("experimental", "boolean", "A Boolean value to indicate that this terminology capabilities is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental); 4357 case 3076014: /*date*/ return new Property("date", "dateTime", "The date (and optionally time) when the terminology capabilities 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 terminology capabilities changes.", 0, 1, date); 4358 case 1447404028: /*publisher*/ return new Property("publisher", "string", "The name of the organization or individual that published the terminology capabilities.", 0, 1, publisher); 4359 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); 4360 case -1724546052: /*description*/ return new Property("description", "markdown", "A free text natural language description of the terminology capabilities 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); 4361 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 terminology capabilities instances.", 0, java.lang.Integer.MAX_VALUE, useContext); 4362 case -507075711: /*jurisdiction*/ return new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the terminology capabilities is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction); 4363 case -220463842: /*purpose*/ return new Property("purpose", "markdown", "Explanation of why this terminology capabilities is needed and why it has been designed as it has.", 0, 1, purpose); 4364 case 1522889671: /*copyright*/ return new Property("copyright", "markdown", "A copyright statement relating to the terminology capabilities and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the terminology capabilities.", 0, 1, copyright); 4365 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); 4366 case 1319330215: /*software*/ return new Property("software", "", "Software that is covered by this terminology capability statement. It is used when the statement describes the capabilities of a particular software version, independent of an installation.", 0, 1, software); 4367 case 1683336114: /*implementation*/ return new Property("implementation", "", "Identifies a specific implementation instance that is described by the terminology capability statement - i.e. a particular installation, rather than the capabilities of a software program.", 0, 1, implementation); 4368 case 1391591896: /*lockedDate*/ return new Property("lockedDate", "boolean", "Whether the server supports lockedDate.", 0, 1, lockedDate); 4369 case -916511108: /*codeSystem*/ return new Property("codeSystem", "", "Identifies a code system that is supported by the server. If there is a no code system URL, then this declares the general assumptions a client can make about support for any CodeSystem resource.", 0, java.lang.Integer.MAX_VALUE, codeSystem); 4370 case 17878207: /*expansion*/ return new Property("expansion", "", "Information about the [ValueSet/$expand](valueset-operation-expand.html) operation.", 0, 1, expansion); 4371 case -935519755: /*codeSearch*/ return new Property("codeSearch", "code", "The degree to which the server supports the code search parameter on ValueSet, if it is supported.", 0, 1, codeSearch); 4372 case 1080737827: /*validateCode*/ return new Property("validateCode", "", "Information about the [ValueSet/$validate-code](valueset-operation-validate-code.html) operation.", 0, 1, validateCode); 4373 case -1840647503: /*translation*/ return new Property("translation", "", "Information about the [ConceptMap/$translate](conceptmap-operation-translate.html) operation.", 0, 1, translation); 4374 case 866552379: /*closure*/ return new Property("closure", "", "Whether the $closure operation is supported.", 0, 1, closure); 4375 default: return super.getNamedProperty(_hash, _name, _checkValid); 4376 } 4377 4378 } 4379 4380 @Override 4381 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 4382 switch (hash) { 4383 case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType 4384 case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType 4385 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType 4386 case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType 4387 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<PublicationStatus> 4388 case -404562712: /*experimental*/ return this.experimental == null ? new Base[0] : new Base[] {this.experimental}; // BooleanType 4389 case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType 4390 case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // StringType 4391 case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail 4392 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType 4393 case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext 4394 case -507075711: /*jurisdiction*/ return this.jurisdiction == null ? new Base[0] : this.jurisdiction.toArray(new Base[this.jurisdiction.size()]); // CodeableConcept 4395 case -220463842: /*purpose*/ return this.purpose == null ? new Base[0] : new Base[] {this.purpose}; // MarkdownType 4396 case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // MarkdownType 4397 case 3292052: /*kind*/ return this.kind == null ? new Base[0] : new Base[] {this.kind}; // Enumeration<CapabilityStatementKind> 4398 case 1319330215: /*software*/ return this.software == null ? new Base[0] : new Base[] {this.software}; // TerminologyCapabilitiesSoftwareComponent 4399 case 1683336114: /*implementation*/ return this.implementation == null ? new Base[0] : new Base[] {this.implementation}; // TerminologyCapabilitiesImplementationComponent 4400 case 1391591896: /*lockedDate*/ return this.lockedDate == null ? new Base[0] : new Base[] {this.lockedDate}; // BooleanType 4401 case -916511108: /*codeSystem*/ return this.codeSystem == null ? new Base[0] : this.codeSystem.toArray(new Base[this.codeSystem.size()]); // TerminologyCapabilitiesCodeSystemComponent 4402 case 17878207: /*expansion*/ return this.expansion == null ? new Base[0] : new Base[] {this.expansion}; // TerminologyCapabilitiesExpansionComponent 4403 case -935519755: /*codeSearch*/ return this.codeSearch == null ? new Base[0] : new Base[] {this.codeSearch}; // Enumeration<CodeSearchSupport> 4404 case 1080737827: /*validateCode*/ return this.validateCode == null ? new Base[0] : new Base[] {this.validateCode}; // TerminologyCapabilitiesValidateCodeComponent 4405 case -1840647503: /*translation*/ return this.translation == null ? new Base[0] : new Base[] {this.translation}; // TerminologyCapabilitiesTranslationComponent 4406 case 866552379: /*closure*/ return this.closure == null ? new Base[0] : new Base[] {this.closure}; // TerminologyCapabilitiesClosureComponent 4407 default: return super.getProperty(hash, name, checkValid); 4408 } 4409 4410 } 4411 4412 @Override 4413 public Base setProperty(int hash, String name, Base value) throws FHIRException { 4414 switch (hash) { 4415 case 116079: // url 4416 this.url = castToUri(value); // UriType 4417 return value; 4418 case 351608024: // version 4419 this.version = castToString(value); // StringType 4420 return value; 4421 case 3373707: // name 4422 this.name = castToString(value); // StringType 4423 return value; 4424 case 110371416: // title 4425 this.title = castToString(value); // StringType 4426 return value; 4427 case -892481550: // status 4428 value = new PublicationStatusEnumFactory().fromType(castToCode(value)); 4429 this.status = (Enumeration) value; // Enumeration<PublicationStatus> 4430 return value; 4431 case -404562712: // experimental 4432 this.experimental = castToBoolean(value); // BooleanType 4433 return value; 4434 case 3076014: // date 4435 this.date = castToDateTime(value); // DateTimeType 4436 return value; 4437 case 1447404028: // publisher 4438 this.publisher = castToString(value); // StringType 4439 return value; 4440 case 951526432: // contact 4441 this.getContact().add(castToContactDetail(value)); // ContactDetail 4442 return value; 4443 case -1724546052: // description 4444 this.description = castToMarkdown(value); // MarkdownType 4445 return value; 4446 case -669707736: // useContext 4447 this.getUseContext().add(castToUsageContext(value)); // UsageContext 4448 return value; 4449 case -507075711: // jurisdiction 4450 this.getJurisdiction().add(castToCodeableConcept(value)); // CodeableConcept 4451 return value; 4452 case -220463842: // purpose 4453 this.purpose = castToMarkdown(value); // MarkdownType 4454 return value; 4455 case 1522889671: // copyright 4456 this.copyright = castToMarkdown(value); // MarkdownType 4457 return value; 4458 case 3292052: // kind 4459 value = new CapabilityStatementKindEnumFactory().fromType(castToCode(value)); 4460 this.kind = (Enumeration) value; // Enumeration<CapabilityStatementKind> 4461 return value; 4462 case 1319330215: // software 4463 this.software = (TerminologyCapabilitiesSoftwareComponent) value; // TerminologyCapabilitiesSoftwareComponent 4464 return value; 4465 case 1683336114: // implementation 4466 this.implementation = (TerminologyCapabilitiesImplementationComponent) value; // TerminologyCapabilitiesImplementationComponent 4467 return value; 4468 case 1391591896: // lockedDate 4469 this.lockedDate = castToBoolean(value); // BooleanType 4470 return value; 4471 case -916511108: // codeSystem 4472 this.getCodeSystem().add((TerminologyCapabilitiesCodeSystemComponent) value); // TerminologyCapabilitiesCodeSystemComponent 4473 return value; 4474 case 17878207: // expansion 4475 this.expansion = (TerminologyCapabilitiesExpansionComponent) value; // TerminologyCapabilitiesExpansionComponent 4476 return value; 4477 case -935519755: // codeSearch 4478 value = new CodeSearchSupportEnumFactory().fromType(castToCode(value)); 4479 this.codeSearch = (Enumeration) value; // Enumeration<CodeSearchSupport> 4480 return value; 4481 case 1080737827: // validateCode 4482 this.validateCode = (TerminologyCapabilitiesValidateCodeComponent) value; // TerminologyCapabilitiesValidateCodeComponent 4483 return value; 4484 case -1840647503: // translation 4485 this.translation = (TerminologyCapabilitiesTranslationComponent) value; // TerminologyCapabilitiesTranslationComponent 4486 return value; 4487 case 866552379: // closure 4488 this.closure = (TerminologyCapabilitiesClosureComponent) value; // TerminologyCapabilitiesClosureComponent 4489 return value; 4490 default: return super.setProperty(hash, name, value); 4491 } 4492 4493 } 4494 4495 @Override 4496 public Base setProperty(String name, Base value) throws FHIRException { 4497 if (name.equals("url")) { 4498 this.url = castToUri(value); // UriType 4499 } else if (name.equals("version")) { 4500 this.version = castToString(value); // StringType 4501 } else if (name.equals("name")) { 4502 this.name = castToString(value); // StringType 4503 } else if (name.equals("title")) { 4504 this.title = castToString(value); // StringType 4505 } else if (name.equals("status")) { 4506 value = new PublicationStatusEnumFactory().fromType(castToCode(value)); 4507 this.status = (Enumeration) value; // Enumeration<PublicationStatus> 4508 } else if (name.equals("experimental")) { 4509 this.experimental = castToBoolean(value); // BooleanType 4510 } else if (name.equals("date")) { 4511 this.date = castToDateTime(value); // DateTimeType 4512 } else if (name.equals("publisher")) { 4513 this.publisher = castToString(value); // StringType 4514 } else if (name.equals("contact")) { 4515 this.getContact().add(castToContactDetail(value)); 4516 } else if (name.equals("description")) { 4517 this.description = castToMarkdown(value); // MarkdownType 4518 } else if (name.equals("useContext")) { 4519 this.getUseContext().add(castToUsageContext(value)); 4520 } else if (name.equals("jurisdiction")) { 4521 this.getJurisdiction().add(castToCodeableConcept(value)); 4522 } else if (name.equals("purpose")) { 4523 this.purpose = castToMarkdown(value); // MarkdownType 4524 } else if (name.equals("copyright")) { 4525 this.copyright = castToMarkdown(value); // MarkdownType 4526 } else if (name.equals("kind")) { 4527 value = new CapabilityStatementKindEnumFactory().fromType(castToCode(value)); 4528 this.kind = (Enumeration) value; // Enumeration<CapabilityStatementKind> 4529 } else if (name.equals("software")) { 4530 this.software = (TerminologyCapabilitiesSoftwareComponent) value; // TerminologyCapabilitiesSoftwareComponent 4531 } else if (name.equals("implementation")) { 4532 this.implementation = (TerminologyCapabilitiesImplementationComponent) value; // TerminologyCapabilitiesImplementationComponent 4533 } else if (name.equals("lockedDate")) { 4534 this.lockedDate = castToBoolean(value); // BooleanType 4535 } else if (name.equals("codeSystem")) { 4536 this.getCodeSystem().add((TerminologyCapabilitiesCodeSystemComponent) value); 4537 } else if (name.equals("expansion")) { 4538 this.expansion = (TerminologyCapabilitiesExpansionComponent) value; // TerminologyCapabilitiesExpansionComponent 4539 } else if (name.equals("codeSearch")) { 4540 value = new CodeSearchSupportEnumFactory().fromType(castToCode(value)); 4541 this.codeSearch = (Enumeration) value; // Enumeration<CodeSearchSupport> 4542 } else if (name.equals("validateCode")) { 4543 this.validateCode = (TerminologyCapabilitiesValidateCodeComponent) value; // TerminologyCapabilitiesValidateCodeComponent 4544 } else if (name.equals("translation")) { 4545 this.translation = (TerminologyCapabilitiesTranslationComponent) value; // TerminologyCapabilitiesTranslationComponent 4546 } else if (name.equals("closure")) { 4547 this.closure = (TerminologyCapabilitiesClosureComponent) value; // TerminologyCapabilitiesClosureComponent 4548 } else 4549 return super.setProperty(name, value); 4550 return value; 4551 } 4552 4553 @Override 4554 public Base makeProperty(int hash, String name) throws FHIRException { 4555 switch (hash) { 4556 case 116079: return getUrlElement(); 4557 case 351608024: return getVersionElement(); 4558 case 3373707: return getNameElement(); 4559 case 110371416: return getTitleElement(); 4560 case -892481550: return getStatusElement(); 4561 case -404562712: return getExperimentalElement(); 4562 case 3076014: return getDateElement(); 4563 case 1447404028: return getPublisherElement(); 4564 case 951526432: return addContact(); 4565 case -1724546052: return getDescriptionElement(); 4566 case -669707736: return addUseContext(); 4567 case -507075711: return addJurisdiction(); 4568 case -220463842: return getPurposeElement(); 4569 case 1522889671: return getCopyrightElement(); 4570 case 3292052: return getKindElement(); 4571 case 1319330215: return getSoftware(); 4572 case 1683336114: return getImplementation(); 4573 case 1391591896: return getLockedDateElement(); 4574 case -916511108: return addCodeSystem(); 4575 case 17878207: return getExpansion(); 4576 case -935519755: return getCodeSearchElement(); 4577 case 1080737827: return getValidateCode(); 4578 case -1840647503: return getTranslation(); 4579 case 866552379: return getClosure(); 4580 default: return super.makeProperty(hash, name); 4581 } 4582 4583 } 4584 4585 @Override 4586 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 4587 switch (hash) { 4588 case 116079: /*url*/ return new String[] {"uri"}; 4589 case 351608024: /*version*/ return new String[] {"string"}; 4590 case 3373707: /*name*/ return new String[] {"string"}; 4591 case 110371416: /*title*/ return new String[] {"string"}; 4592 case -892481550: /*status*/ return new String[] {"code"}; 4593 case -404562712: /*experimental*/ return new String[] {"boolean"}; 4594 case 3076014: /*date*/ return new String[] {"dateTime"}; 4595 case 1447404028: /*publisher*/ return new String[] {"string"}; 4596 case 951526432: /*contact*/ return new String[] {"ContactDetail"}; 4597 case -1724546052: /*description*/ return new String[] {"markdown"}; 4598 case -669707736: /*useContext*/ return new String[] {"UsageContext"}; 4599 case -507075711: /*jurisdiction*/ return new String[] {"CodeableConcept"}; 4600 case -220463842: /*purpose*/ return new String[] {"markdown"}; 4601 case 1522889671: /*copyright*/ return new String[] {"markdown"}; 4602 case 3292052: /*kind*/ return new String[] {"code"}; 4603 case 1319330215: /*software*/ return new String[] {}; 4604 case 1683336114: /*implementation*/ return new String[] {}; 4605 case 1391591896: /*lockedDate*/ return new String[] {"boolean"}; 4606 case -916511108: /*codeSystem*/ return new String[] {}; 4607 case 17878207: /*expansion*/ return new String[] {}; 4608 case -935519755: /*codeSearch*/ return new String[] {"code"}; 4609 case 1080737827: /*validateCode*/ return new String[] {}; 4610 case -1840647503: /*translation*/ return new String[] {}; 4611 case 866552379: /*closure*/ return new String[] {}; 4612 default: return super.getTypesForProperty(hash, name); 4613 } 4614 4615 } 4616 4617 @Override 4618 public Base addChild(String name) throws FHIRException { 4619 if (name.equals("url")) { 4620 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.url"); 4621 } 4622 else if (name.equals("version")) { 4623 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.version"); 4624 } 4625 else if (name.equals("name")) { 4626 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.name"); 4627 } 4628 else if (name.equals("title")) { 4629 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.title"); 4630 } 4631 else if (name.equals("status")) { 4632 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.status"); 4633 } 4634 else if (name.equals("experimental")) { 4635 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.experimental"); 4636 } 4637 else if (name.equals("date")) { 4638 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.date"); 4639 } 4640 else if (name.equals("publisher")) { 4641 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.publisher"); 4642 } 4643 else if (name.equals("contact")) { 4644 return addContact(); 4645 } 4646 else if (name.equals("description")) { 4647 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.description"); 4648 } 4649 else if (name.equals("useContext")) { 4650 return addUseContext(); 4651 } 4652 else if (name.equals("jurisdiction")) { 4653 return addJurisdiction(); 4654 } 4655 else if (name.equals("purpose")) { 4656 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.purpose"); 4657 } 4658 else if (name.equals("copyright")) { 4659 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.copyright"); 4660 } 4661 else if (name.equals("kind")) { 4662 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.kind"); 4663 } 4664 else if (name.equals("software")) { 4665 this.software = new TerminologyCapabilitiesSoftwareComponent(); 4666 return this.software; 4667 } 4668 else if (name.equals("implementation")) { 4669 this.implementation = new TerminologyCapabilitiesImplementationComponent(); 4670 return this.implementation; 4671 } 4672 else if (name.equals("lockedDate")) { 4673 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.lockedDate"); 4674 } 4675 else if (name.equals("codeSystem")) { 4676 return addCodeSystem(); 4677 } 4678 else if (name.equals("expansion")) { 4679 this.expansion = new TerminologyCapabilitiesExpansionComponent(); 4680 return this.expansion; 4681 } 4682 else if (name.equals("codeSearch")) { 4683 throw new FHIRException("Cannot call addChild on a primitive type TerminologyCapabilities.codeSearch"); 4684 } 4685 else if (name.equals("validateCode")) { 4686 this.validateCode = new TerminologyCapabilitiesValidateCodeComponent(); 4687 return this.validateCode; 4688 } 4689 else if (name.equals("translation")) { 4690 this.translation = new TerminologyCapabilitiesTranslationComponent(); 4691 return this.translation; 4692 } 4693 else if (name.equals("closure")) { 4694 this.closure = new TerminologyCapabilitiesClosureComponent(); 4695 return this.closure; 4696 } 4697 else 4698 return super.addChild(name); 4699 } 4700 4701 public String fhirType() { 4702 return "TerminologyCapabilities"; 4703 4704 } 4705 4706 public TerminologyCapabilities copy() { 4707 TerminologyCapabilities dst = new TerminologyCapabilities(); 4708 copyValues(dst); 4709 return dst; 4710 } 4711 4712 public void copyValues(TerminologyCapabilities dst) { 4713 super.copyValues(dst); 4714 dst.url = url == null ? null : url.copy(); 4715 dst.version = version == null ? null : version.copy(); 4716 dst.name = name == null ? null : name.copy(); 4717 dst.title = title == null ? null : title.copy(); 4718 dst.status = status == null ? null : status.copy(); 4719 dst.experimental = experimental == null ? null : experimental.copy(); 4720 dst.date = date == null ? null : date.copy(); 4721 dst.publisher = publisher == null ? null : publisher.copy(); 4722 if (contact != null) { 4723 dst.contact = new ArrayList<ContactDetail>(); 4724 for (ContactDetail i : contact) 4725 dst.contact.add(i.copy()); 4726 }; 4727 dst.description = description == null ? null : description.copy(); 4728 if (useContext != null) { 4729 dst.useContext = new ArrayList<UsageContext>(); 4730 for (UsageContext i : useContext) 4731 dst.useContext.add(i.copy()); 4732 }; 4733 if (jurisdiction != null) { 4734 dst.jurisdiction = new ArrayList<CodeableConcept>(); 4735 for (CodeableConcept i : jurisdiction) 4736 dst.jurisdiction.add(i.copy()); 4737 }; 4738 dst.purpose = purpose == null ? null : purpose.copy(); 4739 dst.copyright = copyright == null ? null : copyright.copy(); 4740 dst.kind = kind == null ? null : kind.copy(); 4741 dst.software = software == null ? null : software.copy(); 4742 dst.implementation = implementation == null ? null : implementation.copy(); 4743 dst.lockedDate = lockedDate == null ? null : lockedDate.copy(); 4744 if (codeSystem != null) { 4745 dst.codeSystem = new ArrayList<TerminologyCapabilitiesCodeSystemComponent>(); 4746 for (TerminologyCapabilitiesCodeSystemComponent i : codeSystem) 4747 dst.codeSystem.add(i.copy()); 4748 }; 4749 dst.expansion = expansion == null ? null : expansion.copy(); 4750 dst.codeSearch = codeSearch == null ? null : codeSearch.copy(); 4751 dst.validateCode = validateCode == null ? null : validateCode.copy(); 4752 dst.translation = translation == null ? null : translation.copy(); 4753 dst.closure = closure == null ? null : closure.copy(); 4754 } 4755 4756 protected TerminologyCapabilities typedCopy() { 4757 return copy(); 4758 } 4759 4760 @Override 4761 public boolean equalsDeep(Base other_) { 4762 if (!super.equalsDeep(other_)) 4763 return false; 4764 if (!(other_ instanceof TerminologyCapabilities)) 4765 return false; 4766 TerminologyCapabilities o = (TerminologyCapabilities) other_; 4767 return compareDeep(purpose, o.purpose, true) && compareDeep(copyright, o.copyright, true) && compareDeep(kind, o.kind, true) 4768 && compareDeep(software, o.software, true) && compareDeep(implementation, o.implementation, true) 4769 && compareDeep(lockedDate, o.lockedDate, true) && compareDeep(codeSystem, o.codeSystem, true) && compareDeep(expansion, o.expansion, true) 4770 && compareDeep(codeSearch, o.codeSearch, true) && compareDeep(validateCode, o.validateCode, true) 4771 && compareDeep(translation, o.translation, true) && compareDeep(closure, o.closure, true); 4772 } 4773 4774 @Override 4775 public boolean equalsShallow(Base other_) { 4776 if (!super.equalsShallow(other_)) 4777 return false; 4778 if (!(other_ instanceof TerminologyCapabilities)) 4779 return false; 4780 TerminologyCapabilities o = (TerminologyCapabilities) other_; 4781 return compareValues(purpose, o.purpose, true) && compareValues(copyright, o.copyright, true) && compareValues(kind, o.kind, true) 4782 && compareValues(lockedDate, o.lockedDate, true) && compareValues(codeSearch, o.codeSearch, true); 4783 } 4784 4785 public boolean isEmpty() { 4786 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(purpose, copyright, kind 4787 , software, implementation, lockedDate, codeSystem, expansion, codeSearch, validateCode 4788 , translation, closure); 4789 } 4790 4791 @Override 4792 public ResourceType getResourceType() { 4793 return ResourceType.TerminologyCapabilities; 4794 } 4795 4796 /** 4797 * Search parameter: <b>date</b> 4798 * <p> 4799 * Description: <b>The terminology capabilities publication date</b><br> 4800 * Type: <b>date</b><br> 4801 * Path: <b>TerminologyCapabilities.date</b><br> 4802 * </p> 4803 */ 4804 @SearchParamDefinition(name="date", path="TerminologyCapabilities.date", description="The terminology capabilities publication date", type="date" ) 4805 public static final String SP_DATE = "date"; 4806 /** 4807 * <b>Fluent Client</b> search parameter constant for <b>date</b> 4808 * <p> 4809 * Description: <b>The terminology capabilities publication date</b><br> 4810 * Type: <b>date</b><br> 4811 * Path: <b>TerminologyCapabilities.date</b><br> 4812 * </p> 4813 */ 4814 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 4815 4816 /** 4817 * Search parameter: <b>context-type-value</b> 4818 * <p> 4819 * Description: <b>A use context type and value assigned to the terminology capabilities</b><br> 4820 * Type: <b>composite</b><br> 4821 * Path: <b></b><br> 4822 * </p> 4823 */ 4824 @SearchParamDefinition(name="context-type-value", path="TerminologyCapabilities.useContext", description="A use context type and value assigned to the terminology capabilities", type="composite", compositeOf={"context-type", "context"} ) 4825 public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; 4826 /** 4827 * <b>Fluent Client</b> search parameter constant for <b>context-type-value</b> 4828 * <p> 4829 * Description: <b>A use context type and value assigned to the terminology capabilities</b><br> 4830 * Type: <b>composite</b><br> 4831 * Path: <b></b><br> 4832 * </p> 4833 */ 4834 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); 4835 4836 /** 4837 * Search parameter: <b>jurisdiction</b> 4838 * <p> 4839 * Description: <b>Intended jurisdiction for the terminology capabilities</b><br> 4840 * Type: <b>token</b><br> 4841 * Path: <b>TerminologyCapabilities.jurisdiction</b><br> 4842 * </p> 4843 */ 4844 @SearchParamDefinition(name="jurisdiction", path="TerminologyCapabilities.jurisdiction", description="Intended jurisdiction for the terminology capabilities", type="token" ) 4845 public static final String SP_JURISDICTION = "jurisdiction"; 4846 /** 4847 * <b>Fluent Client</b> search parameter constant for <b>jurisdiction</b> 4848 * <p> 4849 * Description: <b>Intended jurisdiction for the terminology capabilities</b><br> 4850 * Type: <b>token</b><br> 4851 * Path: <b>TerminologyCapabilities.jurisdiction</b><br> 4852 * </p> 4853 */ 4854 public static final ca.uhn.fhir.rest.gclient.TokenClientParam JURISDICTION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_JURISDICTION); 4855 4856 /** 4857 * Search parameter: <b>description</b> 4858 * <p> 4859 * Description: <b>The description of the terminology capabilities</b><br> 4860 * Type: <b>string</b><br> 4861 * Path: <b>TerminologyCapabilities.description</b><br> 4862 * </p> 4863 */ 4864 @SearchParamDefinition(name="description", path="TerminologyCapabilities.description", description="The description of the terminology capabilities", type="string" ) 4865 public static final String SP_DESCRIPTION = "description"; 4866 /** 4867 * <b>Fluent Client</b> search parameter constant for <b>description</b> 4868 * <p> 4869 * Description: <b>The description of the terminology capabilities</b><br> 4870 * Type: <b>string</b><br> 4871 * Path: <b>TerminologyCapabilities.description</b><br> 4872 * </p> 4873 */ 4874 public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION); 4875 4876 /** 4877 * Search parameter: <b>context-type</b> 4878 * <p> 4879 * Description: <b>A type of use context assigned to the terminology capabilities</b><br> 4880 * Type: <b>token</b><br> 4881 * Path: <b>TerminologyCapabilities.useContext.code</b><br> 4882 * </p> 4883 */ 4884 @SearchParamDefinition(name="context-type", path="TerminologyCapabilities.useContext.code", description="A type of use context assigned to the terminology capabilities", type="token" ) 4885 public static final String SP_CONTEXT_TYPE = "context-type"; 4886 /** 4887 * <b>Fluent Client</b> search parameter constant for <b>context-type</b> 4888 * <p> 4889 * Description: <b>A type of use context assigned to the terminology capabilities</b><br> 4890 * Type: <b>token</b><br> 4891 * Path: <b>TerminologyCapabilities.useContext.code</b><br> 4892 * </p> 4893 */ 4894 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); 4895 4896 /** 4897 * Search parameter: <b>title</b> 4898 * <p> 4899 * Description: <b>The human-friendly name of the terminology capabilities</b><br> 4900 * Type: <b>string</b><br> 4901 * Path: <b>TerminologyCapabilities.title</b><br> 4902 * </p> 4903 */ 4904 @SearchParamDefinition(name="title", path="TerminologyCapabilities.title", description="The human-friendly name of the terminology capabilities", type="string" ) 4905 public static final String SP_TITLE = "title"; 4906 /** 4907 * <b>Fluent Client</b> search parameter constant for <b>title</b> 4908 * <p> 4909 * Description: <b>The human-friendly name of the terminology capabilities</b><br> 4910 * Type: <b>string</b><br> 4911 * Path: <b>TerminologyCapabilities.title</b><br> 4912 * </p> 4913 */ 4914 public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE); 4915 4916 /** 4917 * Search parameter: <b>version</b> 4918 * <p> 4919 * Description: <b>The business version of the terminology capabilities</b><br> 4920 * Type: <b>token</b><br> 4921 * Path: <b>TerminologyCapabilities.version</b><br> 4922 * </p> 4923 */ 4924 @SearchParamDefinition(name="version", path="TerminologyCapabilities.version", description="The business version of the terminology capabilities", type="token" ) 4925 public static final String SP_VERSION = "version"; 4926 /** 4927 * <b>Fluent Client</b> search parameter constant for <b>version</b> 4928 * <p> 4929 * Description: <b>The business version of the terminology capabilities</b><br> 4930 * Type: <b>token</b><br> 4931 * Path: <b>TerminologyCapabilities.version</b><br> 4932 * </p> 4933 */ 4934 public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); 4935 4936 /** 4937 * Search parameter: <b>url</b> 4938 * <p> 4939 * Description: <b>The uri that identifies the terminology capabilities</b><br> 4940 * Type: <b>uri</b><br> 4941 * Path: <b>TerminologyCapabilities.url</b><br> 4942 * </p> 4943 */ 4944 @SearchParamDefinition(name="url", path="TerminologyCapabilities.url", description="The uri that identifies the terminology capabilities", type="uri" ) 4945 public static final String SP_URL = "url"; 4946 /** 4947 * <b>Fluent Client</b> search parameter constant for <b>url</b> 4948 * <p> 4949 * Description: <b>The uri that identifies the terminology capabilities</b><br> 4950 * Type: <b>uri</b><br> 4951 * Path: <b>TerminologyCapabilities.url</b><br> 4952 * </p> 4953 */ 4954 public static final ca.uhn.fhir.rest.gclient.UriClientParam URL = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_URL); 4955 4956 /** 4957 * Search parameter: <b>context-quantity</b> 4958 * <p> 4959 * Description: <b>A quantity- or range-valued use context assigned to the terminology capabilities</b><br> 4960 * Type: <b>quantity</b><br> 4961 * Path: <b>TerminologyCapabilities.useContext.valueQuantity, TerminologyCapabilities.useContext.valueRange</b><br> 4962 * </p> 4963 */ 4964 @SearchParamDefinition(name="context-quantity", path="(TerminologyCapabilities.useContext.value as Quantity) | (TerminologyCapabilities.useContext.value as Range)", description="A quantity- or range-valued use context assigned to the terminology capabilities", type="quantity" ) 4965 public static final String SP_CONTEXT_QUANTITY = "context-quantity"; 4966 /** 4967 * <b>Fluent Client</b> search parameter constant for <b>context-quantity</b> 4968 * <p> 4969 * Description: <b>A quantity- or range-valued use context assigned to the terminology capabilities</b><br> 4970 * Type: <b>quantity</b><br> 4971 * Path: <b>TerminologyCapabilities.useContext.valueQuantity, TerminologyCapabilities.useContext.valueRange</b><br> 4972 * </p> 4973 */ 4974 public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); 4975 4976 /** 4977 * Search parameter: <b>name</b> 4978 * <p> 4979 * Description: <b>Computationally friendly name of the terminology capabilities</b><br> 4980 * Type: <b>string</b><br> 4981 * Path: <b>TerminologyCapabilities.name</b><br> 4982 * </p> 4983 */ 4984 @SearchParamDefinition(name="name", path="TerminologyCapabilities.name", description="Computationally friendly name of the terminology capabilities", type="string" ) 4985 public static final String SP_NAME = "name"; 4986 /** 4987 * <b>Fluent Client</b> search parameter constant for <b>name</b> 4988 * <p> 4989 * Description: <b>Computationally friendly name of the terminology capabilities</b><br> 4990 * Type: <b>string</b><br> 4991 * Path: <b>TerminologyCapabilities.name</b><br> 4992 * </p> 4993 */ 4994 public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); 4995 4996 /** 4997 * Search parameter: <b>context</b> 4998 * <p> 4999 * Description: <b>A use context assigned to the terminology capabilities</b><br> 5000 * Type: <b>token</b><br> 5001 * Path: <b>TerminologyCapabilities.useContext.valueCodeableConcept</b><br> 5002 * </p> 5003 */ 5004 @SearchParamDefinition(name="context", path="(TerminologyCapabilities.useContext.value as CodeableConcept)", description="A use context assigned to the terminology capabilities", type="token" ) 5005 public static final String SP_CONTEXT = "context"; 5006 /** 5007 * <b>Fluent Client</b> search parameter constant for <b>context</b> 5008 * <p> 5009 * Description: <b>A use context assigned to the terminology capabilities</b><br> 5010 * Type: <b>token</b><br> 5011 * Path: <b>TerminologyCapabilities.useContext.valueCodeableConcept</b><br> 5012 * </p> 5013 */ 5014 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); 5015 5016 /** 5017 * Search parameter: <b>publisher</b> 5018 * <p> 5019 * Description: <b>Name of the publisher of the terminology capabilities</b><br> 5020 * Type: <b>string</b><br> 5021 * Path: <b>TerminologyCapabilities.publisher</b><br> 5022 * </p> 5023 */ 5024 @SearchParamDefinition(name="publisher", path="TerminologyCapabilities.publisher", description="Name of the publisher of the terminology capabilities", type="string" ) 5025 public static final String SP_PUBLISHER = "publisher"; 5026 /** 5027 * <b>Fluent Client</b> search parameter constant for <b>publisher</b> 5028 * <p> 5029 * Description: <b>Name of the publisher of the terminology capabilities</b><br> 5030 * Type: <b>string</b><br> 5031 * Path: <b>TerminologyCapabilities.publisher</b><br> 5032 * </p> 5033 */ 5034 public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER); 5035 5036 /** 5037 * Search parameter: <b>context-type-quantity</b> 5038 * <p> 5039 * Description: <b>A use context type and quantity- or range-based value assigned to the terminology capabilities</b><br> 5040 * Type: <b>composite</b><br> 5041 * Path: <b></b><br> 5042 * </p> 5043 */ 5044 @SearchParamDefinition(name="context-type-quantity", path="TerminologyCapabilities.useContext", description="A use context type and quantity- or range-based value assigned to the terminology capabilities", type="composite", compositeOf={"context-type", "context-quantity"} ) 5045 public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; 5046 /** 5047 * <b>Fluent Client</b> search parameter constant for <b>context-type-quantity</b> 5048 * <p> 5049 * Description: <b>A use context type and quantity- or range-based value assigned to the terminology capabilities</b><br> 5050 * Type: <b>composite</b><br> 5051 * Path: <b></b><br> 5052 * </p> 5053 */ 5054 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); 5055 5056 /** 5057 * Search parameter: <b>status</b> 5058 * <p> 5059 * Description: <b>The current status of the terminology capabilities</b><br> 5060 * Type: <b>token</b><br> 5061 * Path: <b>TerminologyCapabilities.status</b><br> 5062 * </p> 5063 */ 5064 @SearchParamDefinition(name="status", path="TerminologyCapabilities.status", description="The current status of the terminology capabilities", type="token" ) 5065 public static final String SP_STATUS = "status"; 5066 /** 5067 * <b>Fluent Client</b> search parameter constant for <b>status</b> 5068 * <p> 5069 * Description: <b>The current status of the terminology capabilities</b><br> 5070 * Type: <b>token</b><br> 5071 * Path: <b>TerminologyCapabilities.status</b><br> 5072 * </p> 5073 */ 5074 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 5075 5076 5077} 5078