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