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