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 * A group of related requests that can be used to capture intended activities that have inter-dependencies such as "give this medication after that one". 072 */ 073@ResourceDef(name="RequestGroup", profile="http://hl7.org/fhir/StructureDefinition/RequestGroup") 074public class RequestGroup extends DomainResource { 075 076 @Block() 077 public static class RequestGroupActionComponent extends BackboneElement implements IBaseBackboneElement { 078 /** 079 * A user-visible prefix for the action. 080 */ 081 @Child(name = "prefix", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false) 082 @Description(shortDefinition="User-visible prefix for the action (e.g. 1. or A.)", formalDefinition="A user-visible prefix for the action." ) 083 protected StringType prefix; 084 085 /** 086 * The title of the action displayed to a user. 087 */ 088 @Child(name = "title", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) 089 @Description(shortDefinition="User-visible title", formalDefinition="The title of the action displayed to a user." ) 090 protected StringType title; 091 092 /** 093 * A short description of the action used to provide a summary to display to the user. 094 */ 095 @Child(name = "description", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true) 096 @Description(shortDefinition="Short description of the action", formalDefinition="A short description of the action used to provide a summary to display to the user." ) 097 protected StringType description; 098 099 /** 100 * A text equivalent of the action to be performed. This provides a human-interpretable description of the action when the definition is consumed by a system that might not be capable of interpreting it dynamically. 101 */ 102 @Child(name = "textEquivalent", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=true) 103 @Description(shortDefinition="Static text equivalent of the action, used if the dynamic aspects cannot be interpreted by the receiving system", formalDefinition="A text equivalent of the action to be performed. This provides a human-interpretable description of the action when the definition is consumed by a system that might not be capable of interpreting it dynamically." ) 104 protected StringType textEquivalent; 105 106 /** 107 * Indicates how quickly the action should be addressed with respect to other actions. 108 */ 109 @Child(name = "priority", type = {CodeType.class}, order=5, min=0, max=1, modifier=false, summary=false) 110 @Description(shortDefinition="routine | urgent | asap | stat", formalDefinition="Indicates how quickly the action should be addressed with respect to other actions." ) 111 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/request-priority") 112 protected Enumeration<RequestPriority> priority; 113 114 /** 115 * A code that provides meaning for the action or action group. For example, a section may have a LOINC code for a section of a documentation template. 116 */ 117 @Child(name = "code", type = {CodeableConcept.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 118 @Description(shortDefinition="Code representing the meaning of the action or sub-actions", formalDefinition="A code that provides meaning for the action or action group. For example, a section may have a LOINC code for a section of a documentation template." ) 119 protected List<CodeableConcept> code; 120 121 /** 122 * Didactic or other informational resources associated with the action that can be provided to the CDS recipient. Information resources can include inline text commentary and links to web resources. 123 */ 124 @Child(name = "documentation", type = {RelatedArtifact.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 125 @Description(shortDefinition="Supporting documentation for the intended performer of the action", formalDefinition="Didactic or other informational resources associated with the action that can be provided to the CDS recipient. Information resources can include inline text commentary and links to web resources." ) 126 protected List<RelatedArtifact> documentation; 127 128 /** 129 * An expression that describes applicability criteria, or start/stop conditions for the action. 130 */ 131 @Child(name = "condition", type = {}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 132 @Description(shortDefinition="Whether or not the action is applicable", formalDefinition="An expression that describes applicability criteria, or start/stop conditions for the action." ) 133 protected List<RequestGroupActionConditionComponent> condition; 134 135 /** 136 * A relationship to another action such as "before" or "30-60 minutes after start of". 137 */ 138 @Child(name = "relatedAction", type = {}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 139 @Description(shortDefinition="Relationship to another action", formalDefinition="A relationship to another action such as \"before\" or \"30-60 minutes after start of\"." ) 140 protected List<RequestGroupActionRelatedActionComponent> relatedAction; 141 142 /** 143 * An optional value describing when the action should be performed. 144 */ 145 @Child(name = "timing", type = {DateTimeType.class, Age.class, Period.class, Duration.class, Range.class, Timing.class}, order=10, min=0, max=1, modifier=false, summary=false) 146 @Description(shortDefinition="When the action should take place", formalDefinition="An optional value describing when the action should be performed." ) 147 protected DataType timing; 148 149 /** 150 * The participant that should perform or be responsible for this action. 151 */ 152 @Child(name = "participant", type = {Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class, Device.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 153 @Description(shortDefinition="Who should perform the action", formalDefinition="The participant that should perform or be responsible for this action." ) 154 protected List<Reference> participant; 155 156 /** 157 * The type of action to perform (create, update, remove). 158 */ 159 @Child(name = "type", type = {CodeableConcept.class}, order=12, min=0, max=1, modifier=false, summary=false) 160 @Description(shortDefinition="create | update | remove | fire-event", formalDefinition="The type of action to perform (create, update, remove)." ) 161 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-type") 162 protected CodeableConcept type; 163 164 /** 165 * Defines the grouping behavior for the action and its children. 166 */ 167 @Child(name = "groupingBehavior", type = {CodeType.class}, order=13, min=0, max=1, modifier=false, summary=false) 168 @Description(shortDefinition="visual-group | logical-group | sentence-group", formalDefinition="Defines the grouping behavior for the action and its children." ) 169 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-grouping-behavior") 170 protected Enumeration<ActionGroupingBehavior> groupingBehavior; 171 172 /** 173 * Defines the selection behavior for the action and its children. 174 */ 175 @Child(name = "selectionBehavior", type = {CodeType.class}, order=14, min=0, max=1, modifier=false, summary=false) 176 @Description(shortDefinition="any | all | all-or-none | exactly-one | at-most-one | one-or-more", formalDefinition="Defines the selection behavior for the action and its children." ) 177 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-selection-behavior") 178 protected Enumeration<ActionSelectionBehavior> selectionBehavior; 179 180 /** 181 * Defines expectations around whether an action is required. 182 */ 183 @Child(name = "requiredBehavior", type = {CodeType.class}, order=15, min=0, max=1, modifier=false, summary=false) 184 @Description(shortDefinition="must | could | must-unless-documented", formalDefinition="Defines expectations around whether an action is required." ) 185 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-required-behavior") 186 protected Enumeration<ActionRequiredBehavior> requiredBehavior; 187 188 /** 189 * Defines whether the action should usually be preselected. 190 */ 191 @Child(name = "precheckBehavior", type = {CodeType.class}, order=16, min=0, max=1, modifier=false, summary=false) 192 @Description(shortDefinition="yes | no", formalDefinition="Defines whether the action should usually be preselected." ) 193 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-precheck-behavior") 194 protected Enumeration<ActionPrecheckBehavior> precheckBehavior; 195 196 /** 197 * Defines whether the action can be selected multiple times. 198 */ 199 @Child(name = "cardinalityBehavior", type = {CodeType.class}, order=17, min=0, max=1, modifier=false, summary=false) 200 @Description(shortDefinition="single | multiple", formalDefinition="Defines whether the action can be selected multiple times." ) 201 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-cardinality-behavior") 202 protected Enumeration<ActionCardinalityBehavior> cardinalityBehavior; 203 204 /** 205 * The resource that is the target of the action (e.g. CommunicationRequest). 206 */ 207 @Child(name = "resource", type = {Reference.class}, order=18, min=0, max=1, modifier=false, summary=false) 208 @Description(shortDefinition="The target of the action", formalDefinition="The resource that is the target of the action (e.g. CommunicationRequest)." ) 209 protected Reference resource; 210 211 /** 212 * Sub actions. 213 */ 214 @Child(name = "action", type = {RequestGroupActionComponent.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 215 @Description(shortDefinition="Sub action", formalDefinition="Sub actions." ) 216 protected List<RequestGroupActionComponent> action; 217 218 private static final long serialVersionUID = -919880448L; 219 220 /** 221 * Constructor 222 */ 223 public RequestGroupActionComponent() { 224 super(); 225 } 226 227 /** 228 * @return {@link #prefix} (A user-visible prefix for the action.). This is the underlying object with id, value and extensions. The accessor "getPrefix" gives direct access to the value 229 */ 230 public StringType getPrefixElement() { 231 if (this.prefix == null) 232 if (Configuration.errorOnAutoCreate()) 233 throw new Error("Attempt to auto-create RequestGroupActionComponent.prefix"); 234 else if (Configuration.doAutoCreate()) 235 this.prefix = new StringType(); // bb 236 return this.prefix; 237 } 238 239 public boolean hasPrefixElement() { 240 return this.prefix != null && !this.prefix.isEmpty(); 241 } 242 243 public boolean hasPrefix() { 244 return this.prefix != null && !this.prefix.isEmpty(); 245 } 246 247 /** 248 * @param value {@link #prefix} (A user-visible prefix for the action.). This is the underlying object with id, value and extensions. The accessor "getPrefix" gives direct access to the value 249 */ 250 public RequestGroupActionComponent setPrefixElement(StringType value) { 251 this.prefix = value; 252 return this; 253 } 254 255 /** 256 * @return A user-visible prefix for the action. 257 */ 258 public String getPrefix() { 259 return this.prefix == null ? null : this.prefix.getValue(); 260 } 261 262 /** 263 * @param value A user-visible prefix for the action. 264 */ 265 public RequestGroupActionComponent setPrefix(String value) { 266 if (Utilities.noString(value)) 267 this.prefix = null; 268 else { 269 if (this.prefix == null) 270 this.prefix = new StringType(); 271 this.prefix.setValue(value); 272 } 273 return this; 274 } 275 276 /** 277 * @return {@link #title} (The title of the action displayed to a user.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value 278 */ 279 public StringType getTitleElement() { 280 if (this.title == null) 281 if (Configuration.errorOnAutoCreate()) 282 throw new Error("Attempt to auto-create RequestGroupActionComponent.title"); 283 else if (Configuration.doAutoCreate()) 284 this.title = new StringType(); // bb 285 return this.title; 286 } 287 288 public boolean hasTitleElement() { 289 return this.title != null && !this.title.isEmpty(); 290 } 291 292 public boolean hasTitle() { 293 return this.title != null && !this.title.isEmpty(); 294 } 295 296 /** 297 * @param value {@link #title} (The title of the action displayed to a user.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value 298 */ 299 public RequestGroupActionComponent setTitleElement(StringType value) { 300 this.title = value; 301 return this; 302 } 303 304 /** 305 * @return The title of the action displayed to a user. 306 */ 307 public String getTitle() { 308 return this.title == null ? null : this.title.getValue(); 309 } 310 311 /** 312 * @param value The title of the action displayed to a user. 313 */ 314 public RequestGroupActionComponent setTitle(String value) { 315 if (Utilities.noString(value)) 316 this.title = null; 317 else { 318 if (this.title == null) 319 this.title = new StringType(); 320 this.title.setValue(value); 321 } 322 return this; 323 } 324 325 /** 326 * @return {@link #description} (A short description of the action used to provide a summary to display to the user.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 327 */ 328 public StringType getDescriptionElement() { 329 if (this.description == null) 330 if (Configuration.errorOnAutoCreate()) 331 throw new Error("Attempt to auto-create RequestGroupActionComponent.description"); 332 else if (Configuration.doAutoCreate()) 333 this.description = new StringType(); // bb 334 return this.description; 335 } 336 337 public boolean hasDescriptionElement() { 338 return this.description != null && !this.description.isEmpty(); 339 } 340 341 public boolean hasDescription() { 342 return this.description != null && !this.description.isEmpty(); 343 } 344 345 /** 346 * @param value {@link #description} (A short description of the action used to provide a summary to display to the user.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 347 */ 348 public RequestGroupActionComponent setDescriptionElement(StringType value) { 349 this.description = value; 350 return this; 351 } 352 353 /** 354 * @return A short description of the action used to provide a summary to display to the user. 355 */ 356 public String getDescription() { 357 return this.description == null ? null : this.description.getValue(); 358 } 359 360 /** 361 * @param value A short description of the action used to provide a summary to display to the user. 362 */ 363 public RequestGroupActionComponent setDescription(String value) { 364 if (Utilities.noString(value)) 365 this.description = null; 366 else { 367 if (this.description == null) 368 this.description = new StringType(); 369 this.description.setValue(value); 370 } 371 return this; 372 } 373 374 /** 375 * @return {@link #textEquivalent} (A text equivalent of the action to be performed. This provides a human-interpretable description of the action when the definition is consumed by a system that might not be capable of interpreting it dynamically.). This is the underlying object with id, value and extensions. The accessor "getTextEquivalent" gives direct access to the value 376 */ 377 public StringType getTextEquivalentElement() { 378 if (this.textEquivalent == null) 379 if (Configuration.errorOnAutoCreate()) 380 throw new Error("Attempt to auto-create RequestGroupActionComponent.textEquivalent"); 381 else if (Configuration.doAutoCreate()) 382 this.textEquivalent = new StringType(); // bb 383 return this.textEquivalent; 384 } 385 386 public boolean hasTextEquivalentElement() { 387 return this.textEquivalent != null && !this.textEquivalent.isEmpty(); 388 } 389 390 public boolean hasTextEquivalent() { 391 return this.textEquivalent != null && !this.textEquivalent.isEmpty(); 392 } 393 394 /** 395 * @param value {@link #textEquivalent} (A text equivalent of the action to be performed. This provides a human-interpretable description of the action when the definition is consumed by a system that might not be capable of interpreting it dynamically.). This is the underlying object with id, value and extensions. The accessor "getTextEquivalent" gives direct access to the value 396 */ 397 public RequestGroupActionComponent setTextEquivalentElement(StringType value) { 398 this.textEquivalent = value; 399 return this; 400 } 401 402 /** 403 * @return A text equivalent of the action to be performed. This provides a human-interpretable description of the action when the definition is consumed by a system that might not be capable of interpreting it dynamically. 404 */ 405 public String getTextEquivalent() { 406 return this.textEquivalent == null ? null : this.textEquivalent.getValue(); 407 } 408 409 /** 410 * @param value A text equivalent of the action to be performed. This provides a human-interpretable description of the action when the definition is consumed by a system that might not be capable of interpreting it dynamically. 411 */ 412 public RequestGroupActionComponent setTextEquivalent(String value) { 413 if (Utilities.noString(value)) 414 this.textEquivalent = null; 415 else { 416 if (this.textEquivalent == null) 417 this.textEquivalent = new StringType(); 418 this.textEquivalent.setValue(value); 419 } 420 return this; 421 } 422 423 /** 424 * @return {@link #priority} (Indicates how quickly the action should be addressed with respect to other actions.). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value 425 */ 426 public Enumeration<RequestPriority> getPriorityElement() { 427 if (this.priority == null) 428 if (Configuration.errorOnAutoCreate()) 429 throw new Error("Attempt to auto-create RequestGroupActionComponent.priority"); 430 else if (Configuration.doAutoCreate()) 431 this.priority = new Enumeration<RequestPriority>(new RequestPriorityEnumFactory()); // bb 432 return this.priority; 433 } 434 435 public boolean hasPriorityElement() { 436 return this.priority != null && !this.priority.isEmpty(); 437 } 438 439 public boolean hasPriority() { 440 return this.priority != null && !this.priority.isEmpty(); 441 } 442 443 /** 444 * @param value {@link #priority} (Indicates how quickly the action should be addressed with respect to other actions.). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value 445 */ 446 public RequestGroupActionComponent setPriorityElement(Enumeration<RequestPriority> value) { 447 this.priority = value; 448 return this; 449 } 450 451 /** 452 * @return Indicates how quickly the action should be addressed with respect to other actions. 453 */ 454 public RequestPriority getPriority() { 455 return this.priority == null ? null : this.priority.getValue(); 456 } 457 458 /** 459 * @param value Indicates how quickly the action should be addressed with respect to other actions. 460 */ 461 public RequestGroupActionComponent setPriority(RequestPriority value) { 462 if (value == null) 463 this.priority = null; 464 else { 465 if (this.priority == null) 466 this.priority = new Enumeration<RequestPriority>(new RequestPriorityEnumFactory()); 467 this.priority.setValue(value); 468 } 469 return this; 470 } 471 472 /** 473 * @return {@link #code} (A code that provides meaning for the action or action group. For example, a section may have a LOINC code for a section of a documentation template.) 474 */ 475 public List<CodeableConcept> getCode() { 476 if (this.code == null) 477 this.code = new ArrayList<CodeableConcept>(); 478 return this.code; 479 } 480 481 /** 482 * @return Returns a reference to <code>this</code> for easy method chaining 483 */ 484 public RequestGroupActionComponent setCode(List<CodeableConcept> theCode) { 485 this.code = theCode; 486 return this; 487 } 488 489 public boolean hasCode() { 490 if (this.code == null) 491 return false; 492 for (CodeableConcept item : this.code) 493 if (!item.isEmpty()) 494 return true; 495 return false; 496 } 497 498 public CodeableConcept addCode() { //3 499 CodeableConcept t = new CodeableConcept(); 500 if (this.code == null) 501 this.code = new ArrayList<CodeableConcept>(); 502 this.code.add(t); 503 return t; 504 } 505 506 public RequestGroupActionComponent addCode(CodeableConcept t) { //3 507 if (t == null) 508 return this; 509 if (this.code == null) 510 this.code = new ArrayList<CodeableConcept>(); 511 this.code.add(t); 512 return this; 513 } 514 515 /** 516 * @return The first repetition of repeating field {@link #code}, creating it if it does not already exist {3} 517 */ 518 public CodeableConcept getCodeFirstRep() { 519 if (getCode().isEmpty()) { 520 addCode(); 521 } 522 return getCode().get(0); 523 } 524 525 /** 526 * @return {@link #documentation} (Didactic or other informational resources associated with the action that can be provided to the CDS recipient. Information resources can include inline text commentary and links to web resources.) 527 */ 528 public List<RelatedArtifact> getDocumentation() { 529 if (this.documentation == null) 530 this.documentation = new ArrayList<RelatedArtifact>(); 531 return this.documentation; 532 } 533 534 /** 535 * @return Returns a reference to <code>this</code> for easy method chaining 536 */ 537 public RequestGroupActionComponent setDocumentation(List<RelatedArtifact> theDocumentation) { 538 this.documentation = theDocumentation; 539 return this; 540 } 541 542 public boolean hasDocumentation() { 543 if (this.documentation == null) 544 return false; 545 for (RelatedArtifact item : this.documentation) 546 if (!item.isEmpty()) 547 return true; 548 return false; 549 } 550 551 public RelatedArtifact addDocumentation() { //3 552 RelatedArtifact t = new RelatedArtifact(); 553 if (this.documentation == null) 554 this.documentation = new ArrayList<RelatedArtifact>(); 555 this.documentation.add(t); 556 return t; 557 } 558 559 public RequestGroupActionComponent addDocumentation(RelatedArtifact t) { //3 560 if (t == null) 561 return this; 562 if (this.documentation == null) 563 this.documentation = new ArrayList<RelatedArtifact>(); 564 this.documentation.add(t); 565 return this; 566 } 567 568 /** 569 * @return The first repetition of repeating field {@link #documentation}, creating it if it does not already exist {3} 570 */ 571 public RelatedArtifact getDocumentationFirstRep() { 572 if (getDocumentation().isEmpty()) { 573 addDocumentation(); 574 } 575 return getDocumentation().get(0); 576 } 577 578 /** 579 * @return {@link #condition} (An expression that describes applicability criteria, or start/stop conditions for the action.) 580 */ 581 public List<RequestGroupActionConditionComponent> getCondition() { 582 if (this.condition == null) 583 this.condition = new ArrayList<RequestGroupActionConditionComponent>(); 584 return this.condition; 585 } 586 587 /** 588 * @return Returns a reference to <code>this</code> for easy method chaining 589 */ 590 public RequestGroupActionComponent setCondition(List<RequestGroupActionConditionComponent> theCondition) { 591 this.condition = theCondition; 592 return this; 593 } 594 595 public boolean hasCondition() { 596 if (this.condition == null) 597 return false; 598 for (RequestGroupActionConditionComponent item : this.condition) 599 if (!item.isEmpty()) 600 return true; 601 return false; 602 } 603 604 public RequestGroupActionConditionComponent addCondition() { //3 605 RequestGroupActionConditionComponent t = new RequestGroupActionConditionComponent(); 606 if (this.condition == null) 607 this.condition = new ArrayList<RequestGroupActionConditionComponent>(); 608 this.condition.add(t); 609 return t; 610 } 611 612 public RequestGroupActionComponent addCondition(RequestGroupActionConditionComponent t) { //3 613 if (t == null) 614 return this; 615 if (this.condition == null) 616 this.condition = new ArrayList<RequestGroupActionConditionComponent>(); 617 this.condition.add(t); 618 return this; 619 } 620 621 /** 622 * @return The first repetition of repeating field {@link #condition}, creating it if it does not already exist {3} 623 */ 624 public RequestGroupActionConditionComponent getConditionFirstRep() { 625 if (getCondition().isEmpty()) { 626 addCondition(); 627 } 628 return getCondition().get(0); 629 } 630 631 /** 632 * @return {@link #relatedAction} (A relationship to another action such as "before" or "30-60 minutes after start of".) 633 */ 634 public List<RequestGroupActionRelatedActionComponent> getRelatedAction() { 635 if (this.relatedAction == null) 636 this.relatedAction = new ArrayList<RequestGroupActionRelatedActionComponent>(); 637 return this.relatedAction; 638 } 639 640 /** 641 * @return Returns a reference to <code>this</code> for easy method chaining 642 */ 643 public RequestGroupActionComponent setRelatedAction(List<RequestGroupActionRelatedActionComponent> theRelatedAction) { 644 this.relatedAction = theRelatedAction; 645 return this; 646 } 647 648 public boolean hasRelatedAction() { 649 if (this.relatedAction == null) 650 return false; 651 for (RequestGroupActionRelatedActionComponent item : this.relatedAction) 652 if (!item.isEmpty()) 653 return true; 654 return false; 655 } 656 657 public RequestGroupActionRelatedActionComponent addRelatedAction() { //3 658 RequestGroupActionRelatedActionComponent t = new RequestGroupActionRelatedActionComponent(); 659 if (this.relatedAction == null) 660 this.relatedAction = new ArrayList<RequestGroupActionRelatedActionComponent>(); 661 this.relatedAction.add(t); 662 return t; 663 } 664 665 public RequestGroupActionComponent addRelatedAction(RequestGroupActionRelatedActionComponent t) { //3 666 if (t == null) 667 return this; 668 if (this.relatedAction == null) 669 this.relatedAction = new ArrayList<RequestGroupActionRelatedActionComponent>(); 670 this.relatedAction.add(t); 671 return this; 672 } 673 674 /** 675 * @return The first repetition of repeating field {@link #relatedAction}, creating it if it does not already exist {3} 676 */ 677 public RequestGroupActionRelatedActionComponent getRelatedActionFirstRep() { 678 if (getRelatedAction().isEmpty()) { 679 addRelatedAction(); 680 } 681 return getRelatedAction().get(0); 682 } 683 684 /** 685 * @return {@link #timing} (An optional value describing when the action should be performed.) 686 */ 687 public DataType getTiming() { 688 return this.timing; 689 } 690 691 /** 692 * @return {@link #timing} (An optional value describing when the action should be performed.) 693 */ 694 public DateTimeType getTimingDateTimeType() throws FHIRException { 695 if (this.timing == null) 696 this.timing = new DateTimeType(); 697 if (!(this.timing instanceof DateTimeType)) 698 throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.timing.getClass().getName()+" was encountered"); 699 return (DateTimeType) this.timing; 700 } 701 702 public boolean hasTimingDateTimeType() { 703 return this != null && this.timing instanceof DateTimeType; 704 } 705 706 /** 707 * @return {@link #timing} (An optional value describing when the action should be performed.) 708 */ 709 public Age getTimingAge() throws FHIRException { 710 if (this.timing == null) 711 this.timing = new Age(); 712 if (!(this.timing instanceof Age)) 713 throw new FHIRException("Type mismatch: the type Age was expected, but "+this.timing.getClass().getName()+" was encountered"); 714 return (Age) this.timing; 715 } 716 717 public boolean hasTimingAge() { 718 return this != null && this.timing instanceof Age; 719 } 720 721 /** 722 * @return {@link #timing} (An optional value describing when the action should be performed.) 723 */ 724 public Period getTimingPeriod() throws FHIRException { 725 if (this.timing == null) 726 this.timing = new Period(); 727 if (!(this.timing instanceof Period)) 728 throw new FHIRException("Type mismatch: the type Period was expected, but "+this.timing.getClass().getName()+" was encountered"); 729 return (Period) this.timing; 730 } 731 732 public boolean hasTimingPeriod() { 733 return this != null && this.timing instanceof Period; 734 } 735 736 /** 737 * @return {@link #timing} (An optional value describing when the action should be performed.) 738 */ 739 public Duration getTimingDuration() throws FHIRException { 740 if (this.timing == null) 741 this.timing = new Duration(); 742 if (!(this.timing instanceof Duration)) 743 throw new FHIRException("Type mismatch: the type Duration was expected, but "+this.timing.getClass().getName()+" was encountered"); 744 return (Duration) this.timing; 745 } 746 747 public boolean hasTimingDuration() { 748 return this != null && this.timing instanceof Duration; 749 } 750 751 /** 752 * @return {@link #timing} (An optional value describing when the action should be performed.) 753 */ 754 public Range getTimingRange() throws FHIRException { 755 if (this.timing == null) 756 this.timing = new Range(); 757 if (!(this.timing instanceof Range)) 758 throw new FHIRException("Type mismatch: the type Range was expected, but "+this.timing.getClass().getName()+" was encountered"); 759 return (Range) this.timing; 760 } 761 762 public boolean hasTimingRange() { 763 return this != null && this.timing instanceof Range; 764 } 765 766 /** 767 * @return {@link #timing} (An optional value describing when the action should be performed.) 768 */ 769 public Timing getTimingTiming() throws FHIRException { 770 if (this.timing == null) 771 this.timing = new Timing(); 772 if (!(this.timing instanceof Timing)) 773 throw new FHIRException("Type mismatch: the type Timing was expected, but "+this.timing.getClass().getName()+" was encountered"); 774 return (Timing) this.timing; 775 } 776 777 public boolean hasTimingTiming() { 778 return this != null && this.timing instanceof Timing; 779 } 780 781 public boolean hasTiming() { 782 return this.timing != null && !this.timing.isEmpty(); 783 } 784 785 /** 786 * @param value {@link #timing} (An optional value describing when the action should be performed.) 787 */ 788 public RequestGroupActionComponent setTiming(DataType value) { 789 if (value != null && !(value instanceof DateTimeType || value instanceof Age || value instanceof Period || value instanceof Duration || value instanceof Range || value instanceof Timing)) 790 throw new Error("Not the right type for RequestGroup.action.timing[x]: "+value.fhirType()); 791 this.timing = value; 792 return this; 793 } 794 795 /** 796 * @return {@link #participant} (The participant that should perform or be responsible for this action.) 797 */ 798 public List<Reference> getParticipant() { 799 if (this.participant == null) 800 this.participant = new ArrayList<Reference>(); 801 return this.participant; 802 } 803 804 /** 805 * @return Returns a reference to <code>this</code> for easy method chaining 806 */ 807 public RequestGroupActionComponent setParticipant(List<Reference> theParticipant) { 808 this.participant = theParticipant; 809 return this; 810 } 811 812 public boolean hasParticipant() { 813 if (this.participant == null) 814 return false; 815 for (Reference item : this.participant) 816 if (!item.isEmpty()) 817 return true; 818 return false; 819 } 820 821 public Reference addParticipant() { //3 822 Reference t = new Reference(); 823 if (this.participant == null) 824 this.participant = new ArrayList<Reference>(); 825 this.participant.add(t); 826 return t; 827 } 828 829 public RequestGroupActionComponent addParticipant(Reference t) { //3 830 if (t == null) 831 return this; 832 if (this.participant == null) 833 this.participant = new ArrayList<Reference>(); 834 this.participant.add(t); 835 return this; 836 } 837 838 /** 839 * @return The first repetition of repeating field {@link #participant}, creating it if it does not already exist {3} 840 */ 841 public Reference getParticipantFirstRep() { 842 if (getParticipant().isEmpty()) { 843 addParticipant(); 844 } 845 return getParticipant().get(0); 846 } 847 848 /** 849 * @return {@link #type} (The type of action to perform (create, update, remove).) 850 */ 851 public CodeableConcept getType() { 852 if (this.type == null) 853 if (Configuration.errorOnAutoCreate()) 854 throw new Error("Attempt to auto-create RequestGroupActionComponent.type"); 855 else if (Configuration.doAutoCreate()) 856 this.type = new CodeableConcept(); // cc 857 return this.type; 858 } 859 860 public boolean hasType() { 861 return this.type != null && !this.type.isEmpty(); 862 } 863 864 /** 865 * @param value {@link #type} (The type of action to perform (create, update, remove).) 866 */ 867 public RequestGroupActionComponent setType(CodeableConcept value) { 868 this.type = value; 869 return this; 870 } 871 872 /** 873 * @return {@link #groupingBehavior} (Defines the grouping behavior for the action and its children.). This is the underlying object with id, value and extensions. The accessor "getGroupingBehavior" gives direct access to the value 874 */ 875 public Enumeration<ActionGroupingBehavior> getGroupingBehaviorElement() { 876 if (this.groupingBehavior == null) 877 if (Configuration.errorOnAutoCreate()) 878 throw new Error("Attempt to auto-create RequestGroupActionComponent.groupingBehavior"); 879 else if (Configuration.doAutoCreate()) 880 this.groupingBehavior = new Enumeration<ActionGroupingBehavior>(new ActionGroupingBehaviorEnumFactory()); // bb 881 return this.groupingBehavior; 882 } 883 884 public boolean hasGroupingBehaviorElement() { 885 return this.groupingBehavior != null && !this.groupingBehavior.isEmpty(); 886 } 887 888 public boolean hasGroupingBehavior() { 889 return this.groupingBehavior != null && !this.groupingBehavior.isEmpty(); 890 } 891 892 /** 893 * @param value {@link #groupingBehavior} (Defines the grouping behavior for the action and its children.). This is the underlying object with id, value and extensions. The accessor "getGroupingBehavior" gives direct access to the value 894 */ 895 public RequestGroupActionComponent setGroupingBehaviorElement(Enumeration<ActionGroupingBehavior> value) { 896 this.groupingBehavior = value; 897 return this; 898 } 899 900 /** 901 * @return Defines the grouping behavior for the action and its children. 902 */ 903 public ActionGroupingBehavior getGroupingBehavior() { 904 return this.groupingBehavior == null ? null : this.groupingBehavior.getValue(); 905 } 906 907 /** 908 * @param value Defines the grouping behavior for the action and its children. 909 */ 910 public RequestGroupActionComponent setGroupingBehavior(ActionGroupingBehavior value) { 911 if (value == null) 912 this.groupingBehavior = null; 913 else { 914 if (this.groupingBehavior == null) 915 this.groupingBehavior = new Enumeration<ActionGroupingBehavior>(new ActionGroupingBehaviorEnumFactory()); 916 this.groupingBehavior.setValue(value); 917 } 918 return this; 919 } 920 921 /** 922 * @return {@link #selectionBehavior} (Defines the selection behavior for the action and its children.). This is the underlying object with id, value and extensions. The accessor "getSelectionBehavior" gives direct access to the value 923 */ 924 public Enumeration<ActionSelectionBehavior> getSelectionBehaviorElement() { 925 if (this.selectionBehavior == null) 926 if (Configuration.errorOnAutoCreate()) 927 throw new Error("Attempt to auto-create RequestGroupActionComponent.selectionBehavior"); 928 else if (Configuration.doAutoCreate()) 929 this.selectionBehavior = new Enumeration<ActionSelectionBehavior>(new ActionSelectionBehaviorEnumFactory()); // bb 930 return this.selectionBehavior; 931 } 932 933 public boolean hasSelectionBehaviorElement() { 934 return this.selectionBehavior != null && !this.selectionBehavior.isEmpty(); 935 } 936 937 public boolean hasSelectionBehavior() { 938 return this.selectionBehavior != null && !this.selectionBehavior.isEmpty(); 939 } 940 941 /** 942 * @param value {@link #selectionBehavior} (Defines the selection behavior for the action and its children.). This is the underlying object with id, value and extensions. The accessor "getSelectionBehavior" gives direct access to the value 943 */ 944 public RequestGroupActionComponent setSelectionBehaviorElement(Enumeration<ActionSelectionBehavior> value) { 945 this.selectionBehavior = value; 946 return this; 947 } 948 949 /** 950 * @return Defines the selection behavior for the action and its children. 951 */ 952 public ActionSelectionBehavior getSelectionBehavior() { 953 return this.selectionBehavior == null ? null : this.selectionBehavior.getValue(); 954 } 955 956 /** 957 * @param value Defines the selection behavior for the action and its children. 958 */ 959 public RequestGroupActionComponent setSelectionBehavior(ActionSelectionBehavior value) { 960 if (value == null) 961 this.selectionBehavior = null; 962 else { 963 if (this.selectionBehavior == null) 964 this.selectionBehavior = new Enumeration<ActionSelectionBehavior>(new ActionSelectionBehaviorEnumFactory()); 965 this.selectionBehavior.setValue(value); 966 } 967 return this; 968 } 969 970 /** 971 * @return {@link #requiredBehavior} (Defines expectations around whether an action is required.). This is the underlying object with id, value and extensions. The accessor "getRequiredBehavior" gives direct access to the value 972 */ 973 public Enumeration<ActionRequiredBehavior> getRequiredBehaviorElement() { 974 if (this.requiredBehavior == null) 975 if (Configuration.errorOnAutoCreate()) 976 throw new Error("Attempt to auto-create RequestGroupActionComponent.requiredBehavior"); 977 else if (Configuration.doAutoCreate()) 978 this.requiredBehavior = new Enumeration<ActionRequiredBehavior>(new ActionRequiredBehaviorEnumFactory()); // bb 979 return this.requiredBehavior; 980 } 981 982 public boolean hasRequiredBehaviorElement() { 983 return this.requiredBehavior != null && !this.requiredBehavior.isEmpty(); 984 } 985 986 public boolean hasRequiredBehavior() { 987 return this.requiredBehavior != null && !this.requiredBehavior.isEmpty(); 988 } 989 990 /** 991 * @param value {@link #requiredBehavior} (Defines expectations around whether an action is required.). This is the underlying object with id, value and extensions. The accessor "getRequiredBehavior" gives direct access to the value 992 */ 993 public RequestGroupActionComponent setRequiredBehaviorElement(Enumeration<ActionRequiredBehavior> value) { 994 this.requiredBehavior = value; 995 return this; 996 } 997 998 /** 999 * @return Defines expectations around whether an action is required. 1000 */ 1001 public ActionRequiredBehavior getRequiredBehavior() { 1002 return this.requiredBehavior == null ? null : this.requiredBehavior.getValue(); 1003 } 1004 1005 /** 1006 * @param value Defines expectations around whether an action is required. 1007 */ 1008 public RequestGroupActionComponent setRequiredBehavior(ActionRequiredBehavior value) { 1009 if (value == null) 1010 this.requiredBehavior = null; 1011 else { 1012 if (this.requiredBehavior == null) 1013 this.requiredBehavior = new Enumeration<ActionRequiredBehavior>(new ActionRequiredBehaviorEnumFactory()); 1014 this.requiredBehavior.setValue(value); 1015 } 1016 return this; 1017 } 1018 1019 /** 1020 * @return {@link #precheckBehavior} (Defines whether the action should usually be preselected.). This is the underlying object with id, value and extensions. The accessor "getPrecheckBehavior" gives direct access to the value 1021 */ 1022 public Enumeration<ActionPrecheckBehavior> getPrecheckBehaviorElement() { 1023 if (this.precheckBehavior == null) 1024 if (Configuration.errorOnAutoCreate()) 1025 throw new Error("Attempt to auto-create RequestGroupActionComponent.precheckBehavior"); 1026 else if (Configuration.doAutoCreate()) 1027 this.precheckBehavior = new Enumeration<ActionPrecheckBehavior>(new ActionPrecheckBehaviorEnumFactory()); // bb 1028 return this.precheckBehavior; 1029 } 1030 1031 public boolean hasPrecheckBehaviorElement() { 1032 return this.precheckBehavior != null && !this.precheckBehavior.isEmpty(); 1033 } 1034 1035 public boolean hasPrecheckBehavior() { 1036 return this.precheckBehavior != null && !this.precheckBehavior.isEmpty(); 1037 } 1038 1039 /** 1040 * @param value {@link #precheckBehavior} (Defines whether the action should usually be preselected.). This is the underlying object with id, value and extensions. The accessor "getPrecheckBehavior" gives direct access to the value 1041 */ 1042 public RequestGroupActionComponent setPrecheckBehaviorElement(Enumeration<ActionPrecheckBehavior> value) { 1043 this.precheckBehavior = value; 1044 return this; 1045 } 1046 1047 /** 1048 * @return Defines whether the action should usually be preselected. 1049 */ 1050 public ActionPrecheckBehavior getPrecheckBehavior() { 1051 return this.precheckBehavior == null ? null : this.precheckBehavior.getValue(); 1052 } 1053 1054 /** 1055 * @param value Defines whether the action should usually be preselected. 1056 */ 1057 public RequestGroupActionComponent setPrecheckBehavior(ActionPrecheckBehavior value) { 1058 if (value == null) 1059 this.precheckBehavior = null; 1060 else { 1061 if (this.precheckBehavior == null) 1062 this.precheckBehavior = new Enumeration<ActionPrecheckBehavior>(new ActionPrecheckBehaviorEnumFactory()); 1063 this.precheckBehavior.setValue(value); 1064 } 1065 return this; 1066 } 1067 1068 /** 1069 * @return {@link #cardinalityBehavior} (Defines whether the action can be selected multiple times.). This is the underlying object with id, value and extensions. The accessor "getCardinalityBehavior" gives direct access to the value 1070 */ 1071 public Enumeration<ActionCardinalityBehavior> getCardinalityBehaviorElement() { 1072 if (this.cardinalityBehavior == null) 1073 if (Configuration.errorOnAutoCreate()) 1074 throw new Error("Attempt to auto-create RequestGroupActionComponent.cardinalityBehavior"); 1075 else if (Configuration.doAutoCreate()) 1076 this.cardinalityBehavior = new Enumeration<ActionCardinalityBehavior>(new ActionCardinalityBehaviorEnumFactory()); // bb 1077 return this.cardinalityBehavior; 1078 } 1079 1080 public boolean hasCardinalityBehaviorElement() { 1081 return this.cardinalityBehavior != null && !this.cardinalityBehavior.isEmpty(); 1082 } 1083 1084 public boolean hasCardinalityBehavior() { 1085 return this.cardinalityBehavior != null && !this.cardinalityBehavior.isEmpty(); 1086 } 1087 1088 /** 1089 * @param value {@link #cardinalityBehavior} (Defines whether the action can be selected multiple times.). This is the underlying object with id, value and extensions. The accessor "getCardinalityBehavior" gives direct access to the value 1090 */ 1091 public RequestGroupActionComponent setCardinalityBehaviorElement(Enumeration<ActionCardinalityBehavior> value) { 1092 this.cardinalityBehavior = value; 1093 return this; 1094 } 1095 1096 /** 1097 * @return Defines whether the action can be selected multiple times. 1098 */ 1099 public ActionCardinalityBehavior getCardinalityBehavior() { 1100 return this.cardinalityBehavior == null ? null : this.cardinalityBehavior.getValue(); 1101 } 1102 1103 /** 1104 * @param value Defines whether the action can be selected multiple times. 1105 */ 1106 public RequestGroupActionComponent setCardinalityBehavior(ActionCardinalityBehavior value) { 1107 if (value == null) 1108 this.cardinalityBehavior = null; 1109 else { 1110 if (this.cardinalityBehavior == null) 1111 this.cardinalityBehavior = new Enumeration<ActionCardinalityBehavior>(new ActionCardinalityBehaviorEnumFactory()); 1112 this.cardinalityBehavior.setValue(value); 1113 } 1114 return this; 1115 } 1116 1117 /** 1118 * @return {@link #resource} (The resource that is the target of the action (e.g. CommunicationRequest).) 1119 */ 1120 public Reference getResource() { 1121 if (this.resource == null) 1122 if (Configuration.errorOnAutoCreate()) 1123 throw new Error("Attempt to auto-create RequestGroupActionComponent.resource"); 1124 else if (Configuration.doAutoCreate()) 1125 this.resource = new Reference(); // cc 1126 return this.resource; 1127 } 1128 1129 public boolean hasResource() { 1130 return this.resource != null && !this.resource.isEmpty(); 1131 } 1132 1133 /** 1134 * @param value {@link #resource} (The resource that is the target of the action (e.g. CommunicationRequest).) 1135 */ 1136 public RequestGroupActionComponent setResource(Reference value) { 1137 this.resource = value; 1138 return this; 1139 } 1140 1141 /** 1142 * @return {@link #action} (Sub actions.) 1143 */ 1144 public List<RequestGroupActionComponent> getAction() { 1145 if (this.action == null) 1146 this.action = new ArrayList<RequestGroupActionComponent>(); 1147 return this.action; 1148 } 1149 1150 /** 1151 * @return Returns a reference to <code>this</code> for easy method chaining 1152 */ 1153 public RequestGroupActionComponent setAction(List<RequestGroupActionComponent> theAction) { 1154 this.action = theAction; 1155 return this; 1156 } 1157 1158 public boolean hasAction() { 1159 if (this.action == null) 1160 return false; 1161 for (RequestGroupActionComponent item : this.action) 1162 if (!item.isEmpty()) 1163 return true; 1164 return false; 1165 } 1166 1167 public RequestGroupActionComponent addAction() { //3 1168 RequestGroupActionComponent t = new RequestGroupActionComponent(); 1169 if (this.action == null) 1170 this.action = new ArrayList<RequestGroupActionComponent>(); 1171 this.action.add(t); 1172 return t; 1173 } 1174 1175 public RequestGroupActionComponent addAction(RequestGroupActionComponent t) { //3 1176 if (t == null) 1177 return this; 1178 if (this.action == null) 1179 this.action = new ArrayList<RequestGroupActionComponent>(); 1180 this.action.add(t); 1181 return this; 1182 } 1183 1184 /** 1185 * @return The first repetition of repeating field {@link #action}, creating it if it does not already exist {3} 1186 */ 1187 public RequestGroupActionComponent getActionFirstRep() { 1188 if (getAction().isEmpty()) { 1189 addAction(); 1190 } 1191 return getAction().get(0); 1192 } 1193 1194 protected void listChildren(List<Property> children) { 1195 super.listChildren(children); 1196 children.add(new Property("prefix", "string", "A user-visible prefix for the action.", 0, 1, prefix)); 1197 children.add(new Property("title", "string", "The title of the action displayed to a user.", 0, 1, title)); 1198 children.add(new Property("description", "string", "A short description of the action used to provide a summary to display to the user.", 0, 1, description)); 1199 children.add(new Property("textEquivalent", "string", "A text equivalent of the action to be performed. This provides a human-interpretable description of the action when the definition is consumed by a system that might not be capable of interpreting it dynamically.", 0, 1, textEquivalent)); 1200 children.add(new Property("priority", "code", "Indicates how quickly the action should be addressed with respect to other actions.", 0, 1, priority)); 1201 children.add(new Property("code", "CodeableConcept", "A code that provides meaning for the action or action group. For example, a section may have a LOINC code for a section of a documentation template.", 0, java.lang.Integer.MAX_VALUE, code)); 1202 children.add(new Property("documentation", "RelatedArtifact", "Didactic or other informational resources associated with the action that can be provided to the CDS recipient. Information resources can include inline text commentary and links to web resources.", 0, java.lang.Integer.MAX_VALUE, documentation)); 1203 children.add(new Property("condition", "", "An expression that describes applicability criteria, or start/stop conditions for the action.", 0, java.lang.Integer.MAX_VALUE, condition)); 1204 children.add(new Property("relatedAction", "", "A relationship to another action such as \"before\" or \"30-60 minutes after start of\".", 0, java.lang.Integer.MAX_VALUE, relatedAction)); 1205 children.add(new Property("timing[x]", "dateTime|Age|Period|Duration|Range|Timing", "An optional value describing when the action should be performed.", 0, 1, timing)); 1206 children.add(new Property("participant", "Reference(Patient|Practitioner|PractitionerRole|RelatedPerson|Device)", "The participant that should perform or be responsible for this action.", 0, java.lang.Integer.MAX_VALUE, participant)); 1207 children.add(new Property("type", "CodeableConcept", "The type of action to perform (create, update, remove).", 0, 1, type)); 1208 children.add(new Property("groupingBehavior", "code", "Defines the grouping behavior for the action and its children.", 0, 1, groupingBehavior)); 1209 children.add(new Property("selectionBehavior", "code", "Defines the selection behavior for the action and its children.", 0, 1, selectionBehavior)); 1210 children.add(new Property("requiredBehavior", "code", "Defines expectations around whether an action is required.", 0, 1, requiredBehavior)); 1211 children.add(new Property("precheckBehavior", "code", "Defines whether the action should usually be preselected.", 0, 1, precheckBehavior)); 1212 children.add(new Property("cardinalityBehavior", "code", "Defines whether the action can be selected multiple times.", 0, 1, cardinalityBehavior)); 1213 children.add(new Property("resource", "Reference(Any)", "The resource that is the target of the action (e.g. CommunicationRequest).", 0, 1, resource)); 1214 children.add(new Property("action", "@RequestGroup.action", "Sub actions.", 0, java.lang.Integer.MAX_VALUE, action)); 1215 } 1216 1217 @Override 1218 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1219 switch (_hash) { 1220 case -980110702: /*prefix*/ return new Property("prefix", "string", "A user-visible prefix for the action.", 0, 1, prefix); 1221 case 110371416: /*title*/ return new Property("title", "string", "The title of the action displayed to a user.", 0, 1, title); 1222 case -1724546052: /*description*/ return new Property("description", "string", "A short description of the action used to provide a summary to display to the user.", 0, 1, description); 1223 case -900391049: /*textEquivalent*/ return new Property("textEquivalent", "string", "A text equivalent of the action to be performed. This provides a human-interpretable description of the action when the definition is consumed by a system that might not be capable of interpreting it dynamically.", 0, 1, textEquivalent); 1224 case -1165461084: /*priority*/ return new Property("priority", "code", "Indicates how quickly the action should be addressed with respect to other actions.", 0, 1, priority); 1225 case 3059181: /*code*/ return new Property("code", "CodeableConcept", "A code that provides meaning for the action or action group. For example, a section may have a LOINC code for a section of a documentation template.", 0, java.lang.Integer.MAX_VALUE, code); 1226 case 1587405498: /*documentation*/ return new Property("documentation", "RelatedArtifact", "Didactic or other informational resources associated with the action that can be provided to the CDS recipient. Information resources can include inline text commentary and links to web resources.", 0, java.lang.Integer.MAX_VALUE, documentation); 1227 case -861311717: /*condition*/ return new Property("condition", "", "An expression that describes applicability criteria, or start/stop conditions for the action.", 0, java.lang.Integer.MAX_VALUE, condition); 1228 case -384107967: /*relatedAction*/ return new Property("relatedAction", "", "A relationship to another action such as \"before\" or \"30-60 minutes after start of\".", 0, java.lang.Integer.MAX_VALUE, relatedAction); 1229 case 164632566: /*timing[x]*/ return new Property("timing[x]", "dateTime|Age|Period|Duration|Range|Timing", "An optional value describing when the action should be performed.", 0, 1, timing); 1230 case -873664438: /*timing*/ return new Property("timing[x]", "dateTime|Age|Period|Duration|Range|Timing", "An optional value describing when the action should be performed.", 0, 1, timing); 1231 case -1837458939: /*timingDateTime*/ return new Property("timing[x]", "dateTime", "An optional value describing when the action should be performed.", 0, 1, timing); 1232 case 164607061: /*timingAge*/ return new Property("timing[x]", "Age", "An optional value describing when the action should be performed.", 0, 1, timing); 1233 case -615615829: /*timingPeriod*/ return new Property("timing[x]", "Period", "An optional value describing when the action should be performed.", 0, 1, timing); 1234 case -1327253506: /*timingDuration*/ return new Property("timing[x]", "Duration", "An optional value describing when the action should be performed.", 0, 1, timing); 1235 case -710871277: /*timingRange*/ return new Property("timing[x]", "Range", "An optional value describing when the action should be performed.", 0, 1, timing); 1236 case -497554124: /*timingTiming*/ return new Property("timing[x]", "Timing", "An optional value describing when the action should be performed.", 0, 1, timing); 1237 case 767422259: /*participant*/ return new Property("participant", "Reference(Patient|Practitioner|PractitionerRole|RelatedPerson|Device)", "The participant that should perform or be responsible for this action.", 0, java.lang.Integer.MAX_VALUE, participant); 1238 case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The type of action to perform (create, update, remove).", 0, 1, type); 1239 case 586678389: /*groupingBehavior*/ return new Property("groupingBehavior", "code", "Defines the grouping behavior for the action and its children.", 0, 1, groupingBehavior); 1240 case 168639486: /*selectionBehavior*/ return new Property("selectionBehavior", "code", "Defines the selection behavior for the action and its children.", 0, 1, selectionBehavior); 1241 case -1163906287: /*requiredBehavior*/ return new Property("requiredBehavior", "code", "Defines expectations around whether an action is required.", 0, 1, requiredBehavior); 1242 case -1174249033: /*precheckBehavior*/ return new Property("precheckBehavior", "code", "Defines whether the action should usually be preselected.", 0, 1, precheckBehavior); 1243 case -922577408: /*cardinalityBehavior*/ return new Property("cardinalityBehavior", "code", "Defines whether the action can be selected multiple times.", 0, 1, cardinalityBehavior); 1244 case -341064690: /*resource*/ return new Property("resource", "Reference(Any)", "The resource that is the target of the action (e.g. CommunicationRequest).", 0, 1, resource); 1245 case -1422950858: /*action*/ return new Property("action", "@RequestGroup.action", "Sub actions.", 0, java.lang.Integer.MAX_VALUE, action); 1246 default: return super.getNamedProperty(_hash, _name, _checkValid); 1247 } 1248 1249 } 1250 1251 @Override 1252 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1253 switch (hash) { 1254 case -980110702: /*prefix*/ return this.prefix == null ? new Base[0] : new Base[] {this.prefix}; // StringType 1255 case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType 1256 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType 1257 case -900391049: /*textEquivalent*/ return this.textEquivalent == null ? new Base[0] : new Base[] {this.textEquivalent}; // StringType 1258 case -1165461084: /*priority*/ return this.priority == null ? new Base[0] : new Base[] {this.priority}; // Enumeration<RequestPriority> 1259 case 3059181: /*code*/ return this.code == null ? new Base[0] : this.code.toArray(new Base[this.code.size()]); // CodeableConcept 1260 case 1587405498: /*documentation*/ return this.documentation == null ? new Base[0] : this.documentation.toArray(new Base[this.documentation.size()]); // RelatedArtifact 1261 case -861311717: /*condition*/ return this.condition == null ? new Base[0] : this.condition.toArray(new Base[this.condition.size()]); // RequestGroupActionConditionComponent 1262 case -384107967: /*relatedAction*/ return this.relatedAction == null ? new Base[0] : this.relatedAction.toArray(new Base[this.relatedAction.size()]); // RequestGroupActionRelatedActionComponent 1263 case -873664438: /*timing*/ return this.timing == null ? new Base[0] : new Base[] {this.timing}; // DataType 1264 case 767422259: /*participant*/ return this.participant == null ? new Base[0] : this.participant.toArray(new Base[this.participant.size()]); // Reference 1265 case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept 1266 case 586678389: /*groupingBehavior*/ return this.groupingBehavior == null ? new Base[0] : new Base[] {this.groupingBehavior}; // Enumeration<ActionGroupingBehavior> 1267 case 168639486: /*selectionBehavior*/ return this.selectionBehavior == null ? new Base[0] : new Base[] {this.selectionBehavior}; // Enumeration<ActionSelectionBehavior> 1268 case -1163906287: /*requiredBehavior*/ return this.requiredBehavior == null ? new Base[0] : new Base[] {this.requiredBehavior}; // Enumeration<ActionRequiredBehavior> 1269 case -1174249033: /*precheckBehavior*/ return this.precheckBehavior == null ? new Base[0] : new Base[] {this.precheckBehavior}; // Enumeration<ActionPrecheckBehavior> 1270 case -922577408: /*cardinalityBehavior*/ return this.cardinalityBehavior == null ? new Base[0] : new Base[] {this.cardinalityBehavior}; // Enumeration<ActionCardinalityBehavior> 1271 case -341064690: /*resource*/ return this.resource == null ? new Base[0] : new Base[] {this.resource}; // Reference 1272 case -1422950858: /*action*/ return this.action == null ? new Base[0] : this.action.toArray(new Base[this.action.size()]); // RequestGroupActionComponent 1273 default: return super.getProperty(hash, name, checkValid); 1274 } 1275 1276 } 1277 1278 @Override 1279 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1280 switch (hash) { 1281 case -980110702: // prefix 1282 this.prefix = TypeConvertor.castToString(value); // StringType 1283 return value; 1284 case 110371416: // title 1285 this.title = TypeConvertor.castToString(value); // StringType 1286 return value; 1287 case -1724546052: // description 1288 this.description = TypeConvertor.castToString(value); // StringType 1289 return value; 1290 case -900391049: // textEquivalent 1291 this.textEquivalent = TypeConvertor.castToString(value); // StringType 1292 return value; 1293 case -1165461084: // priority 1294 value = new RequestPriorityEnumFactory().fromType(TypeConvertor.castToCode(value)); 1295 this.priority = (Enumeration) value; // Enumeration<RequestPriority> 1296 return value; 1297 case 3059181: // code 1298 this.getCode().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 1299 return value; 1300 case 1587405498: // documentation 1301 this.getDocumentation().add(TypeConvertor.castToRelatedArtifact(value)); // RelatedArtifact 1302 return value; 1303 case -861311717: // condition 1304 this.getCondition().add((RequestGroupActionConditionComponent) value); // RequestGroupActionConditionComponent 1305 return value; 1306 case -384107967: // relatedAction 1307 this.getRelatedAction().add((RequestGroupActionRelatedActionComponent) value); // RequestGroupActionRelatedActionComponent 1308 return value; 1309 case -873664438: // timing 1310 this.timing = TypeConvertor.castToType(value); // DataType 1311 return value; 1312 case 767422259: // participant 1313 this.getParticipant().add(TypeConvertor.castToReference(value)); // Reference 1314 return value; 1315 case 3575610: // type 1316 this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1317 return value; 1318 case 586678389: // groupingBehavior 1319 value = new ActionGroupingBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); 1320 this.groupingBehavior = (Enumeration) value; // Enumeration<ActionGroupingBehavior> 1321 return value; 1322 case 168639486: // selectionBehavior 1323 value = new ActionSelectionBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); 1324 this.selectionBehavior = (Enumeration) value; // Enumeration<ActionSelectionBehavior> 1325 return value; 1326 case -1163906287: // requiredBehavior 1327 value = new ActionRequiredBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); 1328 this.requiredBehavior = (Enumeration) value; // Enumeration<ActionRequiredBehavior> 1329 return value; 1330 case -1174249033: // precheckBehavior 1331 value = new ActionPrecheckBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); 1332 this.precheckBehavior = (Enumeration) value; // Enumeration<ActionPrecheckBehavior> 1333 return value; 1334 case -922577408: // cardinalityBehavior 1335 value = new ActionCardinalityBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); 1336 this.cardinalityBehavior = (Enumeration) value; // Enumeration<ActionCardinalityBehavior> 1337 return value; 1338 case -341064690: // resource 1339 this.resource = TypeConvertor.castToReference(value); // Reference 1340 return value; 1341 case -1422950858: // action 1342 this.getAction().add((RequestGroupActionComponent) value); // RequestGroupActionComponent 1343 return value; 1344 default: return super.setProperty(hash, name, value); 1345 } 1346 1347 } 1348 1349 @Override 1350 public Base setProperty(String name, Base value) throws FHIRException { 1351 if (name.equals("prefix")) { 1352 this.prefix = TypeConvertor.castToString(value); // StringType 1353 } else if (name.equals("title")) { 1354 this.title = TypeConvertor.castToString(value); // StringType 1355 } else if (name.equals("description")) { 1356 this.description = TypeConvertor.castToString(value); // StringType 1357 } else if (name.equals("textEquivalent")) { 1358 this.textEquivalent = TypeConvertor.castToString(value); // StringType 1359 } else if (name.equals("priority")) { 1360 value = new RequestPriorityEnumFactory().fromType(TypeConvertor.castToCode(value)); 1361 this.priority = (Enumeration) value; // Enumeration<RequestPriority> 1362 } else if (name.equals("code")) { 1363 this.getCode().add(TypeConvertor.castToCodeableConcept(value)); 1364 } else if (name.equals("documentation")) { 1365 this.getDocumentation().add(TypeConvertor.castToRelatedArtifact(value)); 1366 } else if (name.equals("condition")) { 1367 this.getCondition().add((RequestGroupActionConditionComponent) value); 1368 } else if (name.equals("relatedAction")) { 1369 this.getRelatedAction().add((RequestGroupActionRelatedActionComponent) value); 1370 } else if (name.equals("timing[x]")) { 1371 this.timing = TypeConvertor.castToType(value); // DataType 1372 } else if (name.equals("participant")) { 1373 this.getParticipant().add(TypeConvertor.castToReference(value)); 1374 } else if (name.equals("type")) { 1375 this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1376 } else if (name.equals("groupingBehavior")) { 1377 value = new ActionGroupingBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); 1378 this.groupingBehavior = (Enumeration) value; // Enumeration<ActionGroupingBehavior> 1379 } else if (name.equals("selectionBehavior")) { 1380 value = new ActionSelectionBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); 1381 this.selectionBehavior = (Enumeration) value; // Enumeration<ActionSelectionBehavior> 1382 } else if (name.equals("requiredBehavior")) { 1383 value = new ActionRequiredBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); 1384 this.requiredBehavior = (Enumeration) value; // Enumeration<ActionRequiredBehavior> 1385 } else if (name.equals("precheckBehavior")) { 1386 value = new ActionPrecheckBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); 1387 this.precheckBehavior = (Enumeration) value; // Enumeration<ActionPrecheckBehavior> 1388 } else if (name.equals("cardinalityBehavior")) { 1389 value = new ActionCardinalityBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); 1390 this.cardinalityBehavior = (Enumeration) value; // Enumeration<ActionCardinalityBehavior> 1391 } else if (name.equals("resource")) { 1392 this.resource = TypeConvertor.castToReference(value); // Reference 1393 } else if (name.equals("action")) { 1394 this.getAction().add((RequestGroupActionComponent) value); 1395 } else 1396 return super.setProperty(name, value); 1397 return value; 1398 } 1399 1400 @Override 1401 public Base makeProperty(int hash, String name) throws FHIRException { 1402 switch (hash) { 1403 case -980110702: return getPrefixElement(); 1404 case 110371416: return getTitleElement(); 1405 case -1724546052: return getDescriptionElement(); 1406 case -900391049: return getTextEquivalentElement(); 1407 case -1165461084: return getPriorityElement(); 1408 case 3059181: return addCode(); 1409 case 1587405498: return addDocumentation(); 1410 case -861311717: return addCondition(); 1411 case -384107967: return addRelatedAction(); 1412 case 164632566: return getTiming(); 1413 case -873664438: return getTiming(); 1414 case 767422259: return addParticipant(); 1415 case 3575610: return getType(); 1416 case 586678389: return getGroupingBehaviorElement(); 1417 case 168639486: return getSelectionBehaviorElement(); 1418 case -1163906287: return getRequiredBehaviorElement(); 1419 case -1174249033: return getPrecheckBehaviorElement(); 1420 case -922577408: return getCardinalityBehaviorElement(); 1421 case -341064690: return getResource(); 1422 case -1422950858: return addAction(); 1423 default: return super.makeProperty(hash, name); 1424 } 1425 1426 } 1427 1428 @Override 1429 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1430 switch (hash) { 1431 case -980110702: /*prefix*/ return new String[] {"string"}; 1432 case 110371416: /*title*/ return new String[] {"string"}; 1433 case -1724546052: /*description*/ return new String[] {"string"}; 1434 case -900391049: /*textEquivalent*/ return new String[] {"string"}; 1435 case -1165461084: /*priority*/ return new String[] {"code"}; 1436 case 3059181: /*code*/ return new String[] {"CodeableConcept"}; 1437 case 1587405498: /*documentation*/ return new String[] {"RelatedArtifact"}; 1438 case -861311717: /*condition*/ return new String[] {}; 1439 case -384107967: /*relatedAction*/ return new String[] {}; 1440 case -873664438: /*timing*/ return new String[] {"dateTime", "Age", "Period", "Duration", "Range", "Timing"}; 1441 case 767422259: /*participant*/ return new String[] {"Reference"}; 1442 case 3575610: /*type*/ return new String[] {"CodeableConcept"}; 1443 case 586678389: /*groupingBehavior*/ return new String[] {"code"}; 1444 case 168639486: /*selectionBehavior*/ return new String[] {"code"}; 1445 case -1163906287: /*requiredBehavior*/ return new String[] {"code"}; 1446 case -1174249033: /*precheckBehavior*/ return new String[] {"code"}; 1447 case -922577408: /*cardinalityBehavior*/ return new String[] {"code"}; 1448 case -341064690: /*resource*/ return new String[] {"Reference"}; 1449 case -1422950858: /*action*/ return new String[] {"@RequestGroup.action"}; 1450 default: return super.getTypesForProperty(hash, name); 1451 } 1452 1453 } 1454 1455 @Override 1456 public Base addChild(String name) throws FHIRException { 1457 if (name.equals("prefix")) { 1458 throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.prefix"); 1459 } 1460 else if (name.equals("title")) { 1461 throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.title"); 1462 } 1463 else if (name.equals("description")) { 1464 throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.description"); 1465 } 1466 else if (name.equals("textEquivalent")) { 1467 throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.textEquivalent"); 1468 } 1469 else if (name.equals("priority")) { 1470 throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.priority"); 1471 } 1472 else if (name.equals("code")) { 1473 return addCode(); 1474 } 1475 else if (name.equals("documentation")) { 1476 return addDocumentation(); 1477 } 1478 else if (name.equals("condition")) { 1479 return addCondition(); 1480 } 1481 else if (name.equals("relatedAction")) { 1482 return addRelatedAction(); 1483 } 1484 else if (name.equals("timingDateTime")) { 1485 this.timing = new DateTimeType(); 1486 return this.timing; 1487 } 1488 else if (name.equals("timingAge")) { 1489 this.timing = new Age(); 1490 return this.timing; 1491 } 1492 else if (name.equals("timingPeriod")) { 1493 this.timing = new Period(); 1494 return this.timing; 1495 } 1496 else if (name.equals("timingDuration")) { 1497 this.timing = new Duration(); 1498 return this.timing; 1499 } 1500 else if (name.equals("timingRange")) { 1501 this.timing = new Range(); 1502 return this.timing; 1503 } 1504 else if (name.equals("timingTiming")) { 1505 this.timing = new Timing(); 1506 return this.timing; 1507 } 1508 else if (name.equals("participant")) { 1509 return addParticipant(); 1510 } 1511 else if (name.equals("type")) { 1512 this.type = new CodeableConcept(); 1513 return this.type; 1514 } 1515 else if (name.equals("groupingBehavior")) { 1516 throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.groupingBehavior"); 1517 } 1518 else if (name.equals("selectionBehavior")) { 1519 throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.selectionBehavior"); 1520 } 1521 else if (name.equals("requiredBehavior")) { 1522 throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.requiredBehavior"); 1523 } 1524 else if (name.equals("precheckBehavior")) { 1525 throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.precheckBehavior"); 1526 } 1527 else if (name.equals("cardinalityBehavior")) { 1528 throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.cardinalityBehavior"); 1529 } 1530 else if (name.equals("resource")) { 1531 this.resource = new Reference(); 1532 return this.resource; 1533 } 1534 else if (name.equals("action")) { 1535 return addAction(); 1536 } 1537 else 1538 return super.addChild(name); 1539 } 1540 1541 public RequestGroupActionComponent copy() { 1542 RequestGroupActionComponent dst = new RequestGroupActionComponent(); 1543 copyValues(dst); 1544 return dst; 1545 } 1546 1547 public void copyValues(RequestGroupActionComponent dst) { 1548 super.copyValues(dst); 1549 dst.prefix = prefix == null ? null : prefix.copy(); 1550 dst.title = title == null ? null : title.copy(); 1551 dst.description = description == null ? null : description.copy(); 1552 dst.textEquivalent = textEquivalent == null ? null : textEquivalent.copy(); 1553 dst.priority = priority == null ? null : priority.copy(); 1554 if (code != null) { 1555 dst.code = new ArrayList<CodeableConcept>(); 1556 for (CodeableConcept i : code) 1557 dst.code.add(i.copy()); 1558 }; 1559 if (documentation != null) { 1560 dst.documentation = new ArrayList<RelatedArtifact>(); 1561 for (RelatedArtifact i : documentation) 1562 dst.documentation.add(i.copy()); 1563 }; 1564 if (condition != null) { 1565 dst.condition = new ArrayList<RequestGroupActionConditionComponent>(); 1566 for (RequestGroupActionConditionComponent i : condition) 1567 dst.condition.add(i.copy()); 1568 }; 1569 if (relatedAction != null) { 1570 dst.relatedAction = new ArrayList<RequestGroupActionRelatedActionComponent>(); 1571 for (RequestGroupActionRelatedActionComponent i : relatedAction) 1572 dst.relatedAction.add(i.copy()); 1573 }; 1574 dst.timing = timing == null ? null : timing.copy(); 1575 if (participant != null) { 1576 dst.participant = new ArrayList<Reference>(); 1577 for (Reference i : participant) 1578 dst.participant.add(i.copy()); 1579 }; 1580 dst.type = type == null ? null : type.copy(); 1581 dst.groupingBehavior = groupingBehavior == null ? null : groupingBehavior.copy(); 1582 dst.selectionBehavior = selectionBehavior == null ? null : selectionBehavior.copy(); 1583 dst.requiredBehavior = requiredBehavior == null ? null : requiredBehavior.copy(); 1584 dst.precheckBehavior = precheckBehavior == null ? null : precheckBehavior.copy(); 1585 dst.cardinalityBehavior = cardinalityBehavior == null ? null : cardinalityBehavior.copy(); 1586 dst.resource = resource == null ? null : resource.copy(); 1587 if (action != null) { 1588 dst.action = new ArrayList<RequestGroupActionComponent>(); 1589 for (RequestGroupActionComponent i : action) 1590 dst.action.add(i.copy()); 1591 }; 1592 } 1593 1594 @Override 1595 public boolean equalsDeep(Base other_) { 1596 if (!super.equalsDeep(other_)) 1597 return false; 1598 if (!(other_ instanceof RequestGroupActionComponent)) 1599 return false; 1600 RequestGroupActionComponent o = (RequestGroupActionComponent) other_; 1601 return compareDeep(prefix, o.prefix, true) && compareDeep(title, o.title, true) && compareDeep(description, o.description, true) 1602 && compareDeep(textEquivalent, o.textEquivalent, true) && compareDeep(priority, o.priority, true) 1603 && compareDeep(code, o.code, true) && compareDeep(documentation, o.documentation, true) && compareDeep(condition, o.condition, true) 1604 && compareDeep(relatedAction, o.relatedAction, true) && compareDeep(timing, o.timing, true) && compareDeep(participant, o.participant, true) 1605 && compareDeep(type, o.type, true) && compareDeep(groupingBehavior, o.groupingBehavior, true) && compareDeep(selectionBehavior, o.selectionBehavior, true) 1606 && compareDeep(requiredBehavior, o.requiredBehavior, true) && compareDeep(precheckBehavior, o.precheckBehavior, true) 1607 && compareDeep(cardinalityBehavior, o.cardinalityBehavior, true) && compareDeep(resource, o.resource, true) 1608 && compareDeep(action, o.action, true); 1609 } 1610 1611 @Override 1612 public boolean equalsShallow(Base other_) { 1613 if (!super.equalsShallow(other_)) 1614 return false; 1615 if (!(other_ instanceof RequestGroupActionComponent)) 1616 return false; 1617 RequestGroupActionComponent o = (RequestGroupActionComponent) other_; 1618 return compareValues(prefix, o.prefix, true) && compareValues(title, o.title, true) && compareValues(description, o.description, true) 1619 && compareValues(textEquivalent, o.textEquivalent, true) && compareValues(priority, o.priority, true) 1620 && compareValues(groupingBehavior, o.groupingBehavior, true) && compareValues(selectionBehavior, o.selectionBehavior, true) 1621 && compareValues(requiredBehavior, o.requiredBehavior, true) && compareValues(precheckBehavior, o.precheckBehavior, true) 1622 && compareValues(cardinalityBehavior, o.cardinalityBehavior, true); 1623 } 1624 1625 public boolean isEmpty() { 1626 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(prefix, title, description 1627 , textEquivalent, priority, code, documentation, condition, relatedAction, timing 1628 , participant, type, groupingBehavior, selectionBehavior, requiredBehavior, precheckBehavior 1629 , cardinalityBehavior, resource, action); 1630 } 1631 1632 public String fhirType() { 1633 return "RequestGroup.action"; 1634 1635 } 1636 1637 } 1638 1639 @Block() 1640 public static class RequestGroupActionConditionComponent extends BackboneElement implements IBaseBackboneElement { 1641 /** 1642 * The kind of condition. 1643 */ 1644 @Child(name = "kind", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false) 1645 @Description(shortDefinition="applicability | start | stop", formalDefinition="The kind of condition." ) 1646 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-condition-kind") 1647 protected Enumeration<ActionConditionKind> kind; 1648 1649 /** 1650 * An expression that returns true or false, indicating whether or not the condition is satisfied. 1651 */ 1652 @Child(name = "expression", type = {Expression.class}, order=2, min=0, max=1, modifier=false, summary=false) 1653 @Description(shortDefinition="Boolean-valued expression", formalDefinition="An expression that returns true or false, indicating whether or not the condition is satisfied." ) 1654 protected Expression expression; 1655 1656 private static final long serialVersionUID = -455150438L; 1657 1658 /** 1659 * Constructor 1660 */ 1661 public RequestGroupActionConditionComponent() { 1662 super(); 1663 } 1664 1665 /** 1666 * Constructor 1667 */ 1668 public RequestGroupActionConditionComponent(ActionConditionKind kind) { 1669 super(); 1670 this.setKind(kind); 1671 } 1672 1673 /** 1674 * @return {@link #kind} (The kind of condition.). This is the underlying object with id, value and extensions. The accessor "getKind" gives direct access to the value 1675 */ 1676 public Enumeration<ActionConditionKind> getKindElement() { 1677 if (this.kind == null) 1678 if (Configuration.errorOnAutoCreate()) 1679 throw new Error("Attempt to auto-create RequestGroupActionConditionComponent.kind"); 1680 else if (Configuration.doAutoCreate()) 1681 this.kind = new Enumeration<ActionConditionKind>(new ActionConditionKindEnumFactory()); // bb 1682 return this.kind; 1683 } 1684 1685 public boolean hasKindElement() { 1686 return this.kind != null && !this.kind.isEmpty(); 1687 } 1688 1689 public boolean hasKind() { 1690 return this.kind != null && !this.kind.isEmpty(); 1691 } 1692 1693 /** 1694 * @param value {@link #kind} (The kind of condition.). This is the underlying object with id, value and extensions. The accessor "getKind" gives direct access to the value 1695 */ 1696 public RequestGroupActionConditionComponent setKindElement(Enumeration<ActionConditionKind> value) { 1697 this.kind = value; 1698 return this; 1699 } 1700 1701 /** 1702 * @return The kind of condition. 1703 */ 1704 public ActionConditionKind getKind() { 1705 return this.kind == null ? null : this.kind.getValue(); 1706 } 1707 1708 /** 1709 * @param value The kind of condition. 1710 */ 1711 public RequestGroupActionConditionComponent setKind(ActionConditionKind value) { 1712 if (this.kind == null) 1713 this.kind = new Enumeration<ActionConditionKind>(new ActionConditionKindEnumFactory()); 1714 this.kind.setValue(value); 1715 return this; 1716 } 1717 1718 /** 1719 * @return {@link #expression} (An expression that returns true or false, indicating whether or not the condition is satisfied.) 1720 */ 1721 public Expression getExpression() { 1722 if (this.expression == null) 1723 if (Configuration.errorOnAutoCreate()) 1724 throw new Error("Attempt to auto-create RequestGroupActionConditionComponent.expression"); 1725 else if (Configuration.doAutoCreate()) 1726 this.expression = new Expression(); // cc 1727 return this.expression; 1728 } 1729 1730 public boolean hasExpression() { 1731 return this.expression != null && !this.expression.isEmpty(); 1732 } 1733 1734 /** 1735 * @param value {@link #expression} (An expression that returns true or false, indicating whether or not the condition is satisfied.) 1736 */ 1737 public RequestGroupActionConditionComponent setExpression(Expression value) { 1738 this.expression = value; 1739 return this; 1740 } 1741 1742 protected void listChildren(List<Property> children) { 1743 super.listChildren(children); 1744 children.add(new Property("kind", "code", "The kind of condition.", 0, 1, kind)); 1745 children.add(new Property("expression", "Expression", "An expression that returns true or false, indicating whether or not the condition is satisfied.", 0, 1, expression)); 1746 } 1747 1748 @Override 1749 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1750 switch (_hash) { 1751 case 3292052: /*kind*/ return new Property("kind", "code", "The kind of condition.", 0, 1, kind); 1752 case -1795452264: /*expression*/ return new Property("expression", "Expression", "An expression that returns true or false, indicating whether or not the condition is satisfied.", 0, 1, expression); 1753 default: return super.getNamedProperty(_hash, _name, _checkValid); 1754 } 1755 1756 } 1757 1758 @Override 1759 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1760 switch (hash) { 1761 case 3292052: /*kind*/ return this.kind == null ? new Base[0] : new Base[] {this.kind}; // Enumeration<ActionConditionKind> 1762 case -1795452264: /*expression*/ return this.expression == null ? new Base[0] : new Base[] {this.expression}; // Expression 1763 default: return super.getProperty(hash, name, checkValid); 1764 } 1765 1766 } 1767 1768 @Override 1769 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1770 switch (hash) { 1771 case 3292052: // kind 1772 value = new ActionConditionKindEnumFactory().fromType(TypeConvertor.castToCode(value)); 1773 this.kind = (Enumeration) value; // Enumeration<ActionConditionKind> 1774 return value; 1775 case -1795452264: // expression 1776 this.expression = TypeConvertor.castToExpression(value); // Expression 1777 return value; 1778 default: return super.setProperty(hash, name, value); 1779 } 1780 1781 } 1782 1783 @Override 1784 public Base setProperty(String name, Base value) throws FHIRException { 1785 if (name.equals("kind")) { 1786 value = new ActionConditionKindEnumFactory().fromType(TypeConvertor.castToCode(value)); 1787 this.kind = (Enumeration) value; // Enumeration<ActionConditionKind> 1788 } else if (name.equals("expression")) { 1789 this.expression = TypeConvertor.castToExpression(value); // Expression 1790 } else 1791 return super.setProperty(name, value); 1792 return value; 1793 } 1794 1795 @Override 1796 public Base makeProperty(int hash, String name) throws FHIRException { 1797 switch (hash) { 1798 case 3292052: return getKindElement(); 1799 case -1795452264: return getExpression(); 1800 default: return super.makeProperty(hash, name); 1801 } 1802 1803 } 1804 1805 @Override 1806 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1807 switch (hash) { 1808 case 3292052: /*kind*/ return new String[] {"code"}; 1809 case -1795452264: /*expression*/ return new String[] {"Expression"}; 1810 default: return super.getTypesForProperty(hash, name); 1811 } 1812 1813 } 1814 1815 @Override 1816 public Base addChild(String name) throws FHIRException { 1817 if (name.equals("kind")) { 1818 throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.condition.kind"); 1819 } 1820 else if (name.equals("expression")) { 1821 this.expression = new Expression(); 1822 return this.expression; 1823 } 1824 else 1825 return super.addChild(name); 1826 } 1827 1828 public RequestGroupActionConditionComponent copy() { 1829 RequestGroupActionConditionComponent dst = new RequestGroupActionConditionComponent(); 1830 copyValues(dst); 1831 return dst; 1832 } 1833 1834 public void copyValues(RequestGroupActionConditionComponent dst) { 1835 super.copyValues(dst); 1836 dst.kind = kind == null ? null : kind.copy(); 1837 dst.expression = expression == null ? null : expression.copy(); 1838 } 1839 1840 @Override 1841 public boolean equalsDeep(Base other_) { 1842 if (!super.equalsDeep(other_)) 1843 return false; 1844 if (!(other_ instanceof RequestGroupActionConditionComponent)) 1845 return false; 1846 RequestGroupActionConditionComponent o = (RequestGroupActionConditionComponent) other_; 1847 return compareDeep(kind, o.kind, true) && compareDeep(expression, o.expression, true); 1848 } 1849 1850 @Override 1851 public boolean equalsShallow(Base other_) { 1852 if (!super.equalsShallow(other_)) 1853 return false; 1854 if (!(other_ instanceof RequestGroupActionConditionComponent)) 1855 return false; 1856 RequestGroupActionConditionComponent o = (RequestGroupActionConditionComponent) other_; 1857 return compareValues(kind, o.kind, true); 1858 } 1859 1860 public boolean isEmpty() { 1861 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(kind, expression); 1862 } 1863 1864 public String fhirType() { 1865 return "RequestGroup.action.condition"; 1866 1867 } 1868 1869 } 1870 1871 @Block() 1872 public static class RequestGroupActionRelatedActionComponent extends BackboneElement implements IBaseBackboneElement { 1873 /** 1874 * The element id of the action this is related to. 1875 */ 1876 @Child(name = "actionId", type = {IdType.class}, order=1, min=1, max=1, modifier=false, summary=false) 1877 @Description(shortDefinition="What action this is related to", formalDefinition="The element id of the action this is related to." ) 1878 protected IdType actionId; 1879 1880 /** 1881 * The relationship of this action to the related action. 1882 */ 1883 @Child(name = "relationship", type = {CodeType.class}, order=2, min=1, max=1, modifier=false, summary=false) 1884 @Description(shortDefinition="before-start | before | before-end | concurrent-with-start | concurrent | concurrent-with-end | after-start | after | after-end", formalDefinition="The relationship of this action to the related action." ) 1885 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-relationship-type") 1886 protected Enumeration<ActionRelationshipType> relationship; 1887 1888 /** 1889 * A duration or range of durations to apply to the relationship. For example, 30-60 minutes before. 1890 */ 1891 @Child(name = "offset", type = {Duration.class, Range.class}, order=3, min=0, max=1, modifier=false, summary=false) 1892 @Description(shortDefinition="Time offset for the relationship", formalDefinition="A duration or range of durations to apply to the relationship. For example, 30-60 minutes before." ) 1893 protected DataType offset; 1894 1895 private static final long serialVersionUID = 621784796L; 1896 1897 /** 1898 * Constructor 1899 */ 1900 public RequestGroupActionRelatedActionComponent() { 1901 super(); 1902 } 1903 1904 /** 1905 * Constructor 1906 */ 1907 public RequestGroupActionRelatedActionComponent(String actionId, ActionRelationshipType relationship) { 1908 super(); 1909 this.setActionId(actionId); 1910 this.setRelationship(relationship); 1911 } 1912 1913 /** 1914 * @return {@link #actionId} (The element id of the action this is related to.). This is the underlying object with id, value and extensions. The accessor "getActionId" gives direct access to the value 1915 */ 1916 public IdType getActionIdElement() { 1917 if (this.actionId == null) 1918 if (Configuration.errorOnAutoCreate()) 1919 throw new Error("Attempt to auto-create RequestGroupActionRelatedActionComponent.actionId"); 1920 else if (Configuration.doAutoCreate()) 1921 this.actionId = new IdType(); // bb 1922 return this.actionId; 1923 } 1924 1925 public boolean hasActionIdElement() { 1926 return this.actionId != null && !this.actionId.isEmpty(); 1927 } 1928 1929 public boolean hasActionId() { 1930 return this.actionId != null && !this.actionId.isEmpty(); 1931 } 1932 1933 /** 1934 * @param value {@link #actionId} (The element id of the action this is related to.). This is the underlying object with id, value and extensions. The accessor "getActionId" gives direct access to the value 1935 */ 1936 public RequestGroupActionRelatedActionComponent setActionIdElement(IdType value) { 1937 this.actionId = value; 1938 return this; 1939 } 1940 1941 /** 1942 * @return The element id of the action this is related to. 1943 */ 1944 public String getActionId() { 1945 return this.actionId == null ? null : this.actionId.getValue(); 1946 } 1947 1948 /** 1949 * @param value The element id of the action this is related to. 1950 */ 1951 public RequestGroupActionRelatedActionComponent setActionId(String value) { 1952 if (this.actionId == null) 1953 this.actionId = new IdType(); 1954 this.actionId.setValue(value); 1955 return this; 1956 } 1957 1958 /** 1959 * @return {@link #relationship} (The relationship of this action to the related action.). This is the underlying object with id, value and extensions. The accessor "getRelationship" gives direct access to the value 1960 */ 1961 public Enumeration<ActionRelationshipType> getRelationshipElement() { 1962 if (this.relationship == null) 1963 if (Configuration.errorOnAutoCreate()) 1964 throw new Error("Attempt to auto-create RequestGroupActionRelatedActionComponent.relationship"); 1965 else if (Configuration.doAutoCreate()) 1966 this.relationship = new Enumeration<ActionRelationshipType>(new ActionRelationshipTypeEnumFactory()); // bb 1967 return this.relationship; 1968 } 1969 1970 public boolean hasRelationshipElement() { 1971 return this.relationship != null && !this.relationship.isEmpty(); 1972 } 1973 1974 public boolean hasRelationship() { 1975 return this.relationship != null && !this.relationship.isEmpty(); 1976 } 1977 1978 /** 1979 * @param value {@link #relationship} (The relationship of this action to the related action.). This is the underlying object with id, value and extensions. The accessor "getRelationship" gives direct access to the value 1980 */ 1981 public RequestGroupActionRelatedActionComponent setRelationshipElement(Enumeration<ActionRelationshipType> value) { 1982 this.relationship = value; 1983 return this; 1984 } 1985 1986 /** 1987 * @return The relationship of this action to the related action. 1988 */ 1989 public ActionRelationshipType getRelationship() { 1990 return this.relationship == null ? null : this.relationship.getValue(); 1991 } 1992 1993 /** 1994 * @param value The relationship of this action to the related action. 1995 */ 1996 public RequestGroupActionRelatedActionComponent setRelationship(ActionRelationshipType value) { 1997 if (this.relationship == null) 1998 this.relationship = new Enumeration<ActionRelationshipType>(new ActionRelationshipTypeEnumFactory()); 1999 this.relationship.setValue(value); 2000 return this; 2001 } 2002 2003 /** 2004 * @return {@link #offset} (A duration or range of durations to apply to the relationship. For example, 30-60 minutes before.) 2005 */ 2006 public DataType getOffset() { 2007 return this.offset; 2008 } 2009 2010 /** 2011 * @return {@link #offset} (A duration or range of durations to apply to the relationship. For example, 30-60 minutes before.) 2012 */ 2013 public Duration getOffsetDuration() throws FHIRException { 2014 if (this.offset == null) 2015 this.offset = new Duration(); 2016 if (!(this.offset instanceof Duration)) 2017 throw new FHIRException("Type mismatch: the type Duration was expected, but "+this.offset.getClass().getName()+" was encountered"); 2018 return (Duration) this.offset; 2019 } 2020 2021 public boolean hasOffsetDuration() { 2022 return this != null && this.offset instanceof Duration; 2023 } 2024 2025 /** 2026 * @return {@link #offset} (A duration or range of durations to apply to the relationship. For example, 30-60 minutes before.) 2027 */ 2028 public Range getOffsetRange() throws FHIRException { 2029 if (this.offset == null) 2030 this.offset = new Range(); 2031 if (!(this.offset instanceof Range)) 2032 throw new FHIRException("Type mismatch: the type Range was expected, but "+this.offset.getClass().getName()+" was encountered"); 2033 return (Range) this.offset; 2034 } 2035 2036 public boolean hasOffsetRange() { 2037 return this != null && this.offset instanceof Range; 2038 } 2039 2040 public boolean hasOffset() { 2041 return this.offset != null && !this.offset.isEmpty(); 2042 } 2043 2044 /** 2045 * @param value {@link #offset} (A duration or range of durations to apply to the relationship. For example, 30-60 minutes before.) 2046 */ 2047 public RequestGroupActionRelatedActionComponent setOffset(DataType value) { 2048 if (value != null && !(value instanceof Duration || value instanceof Range)) 2049 throw new Error("Not the right type for RequestGroup.action.relatedAction.offset[x]: "+value.fhirType()); 2050 this.offset = value; 2051 return this; 2052 } 2053 2054 protected void listChildren(List<Property> children) { 2055 super.listChildren(children); 2056 children.add(new Property("actionId", "id", "The element id of the action this is related to.", 0, 1, actionId)); 2057 children.add(new Property("relationship", "code", "The relationship of this action to the related action.", 0, 1, relationship)); 2058 children.add(new Property("offset[x]", "Duration|Range", "A duration or range of durations to apply to the relationship. For example, 30-60 minutes before.", 0, 1, offset)); 2059 } 2060 2061 @Override 2062 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 2063 switch (_hash) { 2064 case -1656172047: /*actionId*/ return new Property("actionId", "id", "The element id of the action this is related to.", 0, 1, actionId); 2065 case -261851592: /*relationship*/ return new Property("relationship", "code", "The relationship of this action to the related action.", 0, 1, relationship); 2066 case -1960684787: /*offset[x]*/ return new Property("offset[x]", "Duration|Range", "A duration or range of durations to apply to the relationship. For example, 30-60 minutes before.", 0, 1, offset); 2067 case -1019779949: /*offset*/ return new Property("offset[x]", "Duration|Range", "A duration or range of durations to apply to the relationship. For example, 30-60 minutes before.", 0, 1, offset); 2068 case 134075207: /*offsetDuration*/ return new Property("offset[x]", "Duration", "A duration or range of durations to apply to the relationship. For example, 30-60 minutes before.", 0, 1, offset); 2069 case 1263585386: /*offsetRange*/ return new Property("offset[x]", "Range", "A duration or range of durations to apply to the relationship. For example, 30-60 minutes before.", 0, 1, offset); 2070 default: return super.getNamedProperty(_hash, _name, _checkValid); 2071 } 2072 2073 } 2074 2075 @Override 2076 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 2077 switch (hash) { 2078 case -1656172047: /*actionId*/ return this.actionId == null ? new Base[0] : new Base[] {this.actionId}; // IdType 2079 case -261851592: /*relationship*/ return this.relationship == null ? new Base[0] : new Base[] {this.relationship}; // Enumeration<ActionRelationshipType> 2080 case -1019779949: /*offset*/ return this.offset == null ? new Base[0] : new Base[] {this.offset}; // DataType 2081 default: return super.getProperty(hash, name, checkValid); 2082 } 2083 2084 } 2085 2086 @Override 2087 public Base setProperty(int hash, String name, Base value) throws FHIRException { 2088 switch (hash) { 2089 case -1656172047: // actionId 2090 this.actionId = TypeConvertor.castToId(value); // IdType 2091 return value; 2092 case -261851592: // relationship 2093 value = new ActionRelationshipTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); 2094 this.relationship = (Enumeration) value; // Enumeration<ActionRelationshipType> 2095 return value; 2096 case -1019779949: // offset 2097 this.offset = TypeConvertor.castToType(value); // DataType 2098 return value; 2099 default: return super.setProperty(hash, name, value); 2100 } 2101 2102 } 2103 2104 @Override 2105 public Base setProperty(String name, Base value) throws FHIRException { 2106 if (name.equals("actionId")) { 2107 this.actionId = TypeConvertor.castToId(value); // IdType 2108 } else if (name.equals("relationship")) { 2109 value = new ActionRelationshipTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); 2110 this.relationship = (Enumeration) value; // Enumeration<ActionRelationshipType> 2111 } else if (name.equals("offset[x]")) { 2112 this.offset = TypeConvertor.castToType(value); // DataType 2113 } else 2114 return super.setProperty(name, value); 2115 return value; 2116 } 2117 2118 @Override 2119 public Base makeProperty(int hash, String name) throws FHIRException { 2120 switch (hash) { 2121 case -1656172047: return getActionIdElement(); 2122 case -261851592: return getRelationshipElement(); 2123 case -1960684787: return getOffset(); 2124 case -1019779949: return getOffset(); 2125 default: return super.makeProperty(hash, name); 2126 } 2127 2128 } 2129 2130 @Override 2131 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 2132 switch (hash) { 2133 case -1656172047: /*actionId*/ return new String[] {"id"}; 2134 case -261851592: /*relationship*/ return new String[] {"code"}; 2135 case -1019779949: /*offset*/ return new String[] {"Duration", "Range"}; 2136 default: return super.getTypesForProperty(hash, name); 2137 } 2138 2139 } 2140 2141 @Override 2142 public Base addChild(String name) throws FHIRException { 2143 if (name.equals("actionId")) { 2144 throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.relatedAction.actionId"); 2145 } 2146 else if (name.equals("relationship")) { 2147 throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.relatedAction.relationship"); 2148 } 2149 else if (name.equals("offsetDuration")) { 2150 this.offset = new Duration(); 2151 return this.offset; 2152 } 2153 else if (name.equals("offsetRange")) { 2154 this.offset = new Range(); 2155 return this.offset; 2156 } 2157 else 2158 return super.addChild(name); 2159 } 2160 2161 public RequestGroupActionRelatedActionComponent copy() { 2162 RequestGroupActionRelatedActionComponent dst = new RequestGroupActionRelatedActionComponent(); 2163 copyValues(dst); 2164 return dst; 2165 } 2166 2167 public void copyValues(RequestGroupActionRelatedActionComponent dst) { 2168 super.copyValues(dst); 2169 dst.actionId = actionId == null ? null : actionId.copy(); 2170 dst.relationship = relationship == null ? null : relationship.copy(); 2171 dst.offset = offset == null ? null : offset.copy(); 2172 } 2173 2174 @Override 2175 public boolean equalsDeep(Base other_) { 2176 if (!super.equalsDeep(other_)) 2177 return false; 2178 if (!(other_ instanceof RequestGroupActionRelatedActionComponent)) 2179 return false; 2180 RequestGroupActionRelatedActionComponent o = (RequestGroupActionRelatedActionComponent) other_; 2181 return compareDeep(actionId, o.actionId, true) && compareDeep(relationship, o.relationship, true) 2182 && compareDeep(offset, o.offset, true); 2183 } 2184 2185 @Override 2186 public boolean equalsShallow(Base other_) { 2187 if (!super.equalsShallow(other_)) 2188 return false; 2189 if (!(other_ instanceof RequestGroupActionRelatedActionComponent)) 2190 return false; 2191 RequestGroupActionRelatedActionComponent o = (RequestGroupActionRelatedActionComponent) other_; 2192 return compareValues(actionId, o.actionId, true) && compareValues(relationship, o.relationship, true) 2193 ; 2194 } 2195 2196 public boolean isEmpty() { 2197 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(actionId, relationship, offset 2198 ); 2199 } 2200 2201 public String fhirType() { 2202 return "RequestGroup.action.relatedAction"; 2203 2204 } 2205 2206 } 2207 2208 /** 2209 * Allows a service to provide a unique, business identifier for the request. 2210 */ 2211 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 2212 @Description(shortDefinition="Business identifier", formalDefinition="Allows a service to provide a unique, business identifier for the request." ) 2213 protected List<Identifier> identifier; 2214 2215 /** 2216 * A canonical URL referencing a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request. 2217 */ 2218 @Child(name = "instantiatesCanonical", type = {CanonicalType.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 2219 @Description(shortDefinition="Instantiates FHIR protocol or definition", formalDefinition="A canonical URL referencing a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request." ) 2220 protected List<CanonicalType> instantiatesCanonical; 2221 2222 /** 2223 * A URL referencing an externally defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request. 2224 */ 2225 @Child(name = "instantiatesUri", type = {UriType.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 2226 @Description(shortDefinition="Instantiates external protocol or definition", formalDefinition="A URL referencing an externally defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request." ) 2227 protected List<UriType> instantiatesUri; 2228 2229 /** 2230 * A plan, proposal or order that is fulfilled in whole or in part by this request. 2231 */ 2232 @Child(name = "basedOn", type = {Reference.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 2233 @Description(shortDefinition="Fulfills plan, proposal, or order", formalDefinition="A plan, proposal or order that is fulfilled in whole or in part by this request." ) 2234 protected List<Reference> basedOn; 2235 2236 /** 2237 * Completed or terminated request(s) whose function is taken by this new request. 2238 */ 2239 @Child(name = "replaces", type = {Reference.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 2240 @Description(shortDefinition="Request(s) replaced by this request", formalDefinition="Completed or terminated request(s) whose function is taken by this new request." ) 2241 protected List<Reference> replaces; 2242 2243 /** 2244 * A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition, prescription or similar form. 2245 */ 2246 @Child(name = "groupIdentifier", type = {Identifier.class}, order=5, min=0, max=1, modifier=false, summary=true) 2247 @Description(shortDefinition="Composite request this is part of", formalDefinition="A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition, prescription or similar form." ) 2248 protected Identifier groupIdentifier; 2249 2250 /** 2251 * The current state of the request. For request groups, the status reflects the status of all the requests in the group. 2252 */ 2253 @Child(name = "status", type = {CodeType.class}, order=6, min=1, max=1, modifier=true, summary=true) 2254 @Description(shortDefinition="draft | active | on-hold | revoked | completed | entered-in-error | unknown", formalDefinition="The current state of the request. For request groups, the status reflects the status of all the requests in the group." ) 2255 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/request-status") 2256 protected Enumeration<RequestStatus> status; 2257 2258 /** 2259 * Indicates the level of authority/intentionality associated with the request and where the request fits into the workflow chain. 2260 */ 2261 @Child(name = "intent", type = {CodeType.class}, order=7, min=1, max=1, modifier=true, summary=true) 2262 @Description(shortDefinition="proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option", formalDefinition="Indicates the level of authority/intentionality associated with the request and where the request fits into the workflow chain." ) 2263 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/request-intent") 2264 protected Enumeration<RequestIntent> intent; 2265 2266 /** 2267 * Indicates how quickly the request should be addressed with respect to other requests. 2268 */ 2269 @Child(name = "priority", type = {CodeType.class}, order=8, min=0, max=1, modifier=false, summary=true) 2270 @Description(shortDefinition="routine | urgent | asap | stat", formalDefinition="Indicates how quickly the request should be addressed with respect to other requests." ) 2271 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/request-priority") 2272 protected Enumeration<RequestPriority> priority; 2273 2274 /** 2275 * A code that identifies what the overall request group is. 2276 */ 2277 @Child(name = "code", type = {CodeableConcept.class}, order=9, min=0, max=1, modifier=false, summary=true) 2278 @Description(shortDefinition="What's being requested/ordered", formalDefinition="A code that identifies what the overall request group is." ) 2279 protected CodeableConcept code; 2280 2281 /** 2282 * The subject for which the request group was created. 2283 */ 2284 @Child(name = "subject", type = {Patient.class, Group.class}, order=10, min=0, max=1, modifier=false, summary=false) 2285 @Description(shortDefinition="Who the request group is about", formalDefinition="The subject for which the request group was created." ) 2286 protected Reference subject; 2287 2288 /** 2289 * Describes the context of the request group, if any. 2290 */ 2291 @Child(name = "encounter", type = {Encounter.class}, order=11, min=0, max=1, modifier=false, summary=false) 2292 @Description(shortDefinition="Created as part of", formalDefinition="Describes the context of the request group, if any." ) 2293 protected Reference encounter; 2294 2295 /** 2296 * Indicates when the request group was created. 2297 */ 2298 @Child(name = "authoredOn", type = {DateTimeType.class}, order=12, min=0, max=1, modifier=false, summary=false) 2299 @Description(shortDefinition="When the request group was authored", formalDefinition="Indicates when the request group was created." ) 2300 protected DateTimeType authoredOn; 2301 2302 /** 2303 * Provides a reference to the author of the request group. 2304 */ 2305 @Child(name = "author", type = {Device.class, Practitioner.class, PractitionerRole.class}, order=13, min=0, max=1, modifier=false, summary=false) 2306 @Description(shortDefinition="Device or practitioner that authored the request group", formalDefinition="Provides a reference to the author of the request group." ) 2307 protected Reference author; 2308 2309 /** 2310 * Describes the reason for the request group in coded or textual form. 2311 */ 2312 @Child(name = "reason", type = {CodeableReference.class}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 2313 @Description(shortDefinition="Why the request group is needed", formalDefinition="Describes the reason for the request group in coded or textual form." ) 2314 protected List<CodeableReference> reason; 2315 2316 /** 2317 * Provides a mechanism to communicate additional information about the response. 2318 */ 2319 @Child(name = "note", type = {Annotation.class}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 2320 @Description(shortDefinition="Additional notes about the response", formalDefinition="Provides a mechanism to communicate additional information about the response." ) 2321 protected List<Annotation> note; 2322 2323 /** 2324 * The actions, if any, produced by the evaluation of the artifact. 2325 */ 2326 @Child(name = "action", type = {}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 2327 @Description(shortDefinition="Proposed actions, if any", formalDefinition="The actions, if any, produced by the evaluation of the artifact." ) 2328 protected List<RequestGroupActionComponent> action; 2329 2330 private static final long serialVersionUID = 1379590221L; 2331 2332 /** 2333 * Constructor 2334 */ 2335 public RequestGroup() { 2336 super(); 2337 } 2338 2339 /** 2340 * Constructor 2341 */ 2342 public RequestGroup(RequestStatus status, RequestIntent intent) { 2343 super(); 2344 this.setStatus(status); 2345 this.setIntent(intent); 2346 } 2347 2348 /** 2349 * @return {@link #identifier} (Allows a service to provide a unique, business identifier for the request.) 2350 */ 2351 public List<Identifier> getIdentifier() { 2352 if (this.identifier == null) 2353 this.identifier = new ArrayList<Identifier>(); 2354 return this.identifier; 2355 } 2356 2357 /** 2358 * @return Returns a reference to <code>this</code> for easy method chaining 2359 */ 2360 public RequestGroup setIdentifier(List<Identifier> theIdentifier) { 2361 this.identifier = theIdentifier; 2362 return this; 2363 } 2364 2365 public boolean hasIdentifier() { 2366 if (this.identifier == null) 2367 return false; 2368 for (Identifier item : this.identifier) 2369 if (!item.isEmpty()) 2370 return true; 2371 return false; 2372 } 2373 2374 public Identifier addIdentifier() { //3 2375 Identifier t = new Identifier(); 2376 if (this.identifier == null) 2377 this.identifier = new ArrayList<Identifier>(); 2378 this.identifier.add(t); 2379 return t; 2380 } 2381 2382 public RequestGroup addIdentifier(Identifier t) { //3 2383 if (t == null) 2384 return this; 2385 if (this.identifier == null) 2386 this.identifier = new ArrayList<Identifier>(); 2387 this.identifier.add(t); 2388 return this; 2389 } 2390 2391 /** 2392 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} 2393 */ 2394 public Identifier getIdentifierFirstRep() { 2395 if (getIdentifier().isEmpty()) { 2396 addIdentifier(); 2397 } 2398 return getIdentifier().get(0); 2399 } 2400 2401 /** 2402 * @return {@link #instantiatesCanonical} (A canonical URL referencing a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request.) 2403 */ 2404 public List<CanonicalType> getInstantiatesCanonical() { 2405 if (this.instantiatesCanonical == null) 2406 this.instantiatesCanonical = new ArrayList<CanonicalType>(); 2407 return this.instantiatesCanonical; 2408 } 2409 2410 /** 2411 * @return Returns a reference to <code>this</code> for easy method chaining 2412 */ 2413 public RequestGroup setInstantiatesCanonical(List<CanonicalType> theInstantiatesCanonical) { 2414 this.instantiatesCanonical = theInstantiatesCanonical; 2415 return this; 2416 } 2417 2418 public boolean hasInstantiatesCanonical() { 2419 if (this.instantiatesCanonical == null) 2420 return false; 2421 for (CanonicalType item : this.instantiatesCanonical) 2422 if (!item.isEmpty()) 2423 return true; 2424 return false; 2425 } 2426 2427 /** 2428 * @return {@link #instantiatesCanonical} (A canonical URL referencing a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request.) 2429 */ 2430 public CanonicalType addInstantiatesCanonicalElement() {//2 2431 CanonicalType t = new CanonicalType(); 2432 if (this.instantiatesCanonical == null) 2433 this.instantiatesCanonical = new ArrayList<CanonicalType>(); 2434 this.instantiatesCanonical.add(t); 2435 return t; 2436 } 2437 2438 /** 2439 * @param value {@link #instantiatesCanonical} (A canonical URL referencing a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request.) 2440 */ 2441 public RequestGroup addInstantiatesCanonical(String value) { //1 2442 CanonicalType t = new CanonicalType(); 2443 t.setValue(value); 2444 if (this.instantiatesCanonical == null) 2445 this.instantiatesCanonical = new ArrayList<CanonicalType>(); 2446 this.instantiatesCanonical.add(t); 2447 return this; 2448 } 2449 2450 /** 2451 * @param value {@link #instantiatesCanonical} (A canonical URL referencing a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request.) 2452 */ 2453 public boolean hasInstantiatesCanonical(String value) { 2454 if (this.instantiatesCanonical == null) 2455 return false; 2456 for (CanonicalType v : this.instantiatesCanonical) 2457 if (v.getValue().equals(value)) // canonical 2458 return true; 2459 return false; 2460 } 2461 2462 /** 2463 * @return {@link #instantiatesUri} (A URL referencing an externally defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request.) 2464 */ 2465 public List<UriType> getInstantiatesUri() { 2466 if (this.instantiatesUri == null) 2467 this.instantiatesUri = new ArrayList<UriType>(); 2468 return this.instantiatesUri; 2469 } 2470 2471 /** 2472 * @return Returns a reference to <code>this</code> for easy method chaining 2473 */ 2474 public RequestGroup setInstantiatesUri(List<UriType> theInstantiatesUri) { 2475 this.instantiatesUri = theInstantiatesUri; 2476 return this; 2477 } 2478 2479 public boolean hasInstantiatesUri() { 2480 if (this.instantiatesUri == null) 2481 return false; 2482 for (UriType item : this.instantiatesUri) 2483 if (!item.isEmpty()) 2484 return true; 2485 return false; 2486 } 2487 2488 /** 2489 * @return {@link #instantiatesUri} (A URL referencing an externally defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request.) 2490 */ 2491 public UriType addInstantiatesUriElement() {//2 2492 UriType t = new UriType(); 2493 if (this.instantiatesUri == null) 2494 this.instantiatesUri = new ArrayList<UriType>(); 2495 this.instantiatesUri.add(t); 2496 return t; 2497 } 2498 2499 /** 2500 * @param value {@link #instantiatesUri} (A URL referencing an externally defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request.) 2501 */ 2502 public RequestGroup addInstantiatesUri(String value) { //1 2503 UriType t = new UriType(); 2504 t.setValue(value); 2505 if (this.instantiatesUri == null) 2506 this.instantiatesUri = new ArrayList<UriType>(); 2507 this.instantiatesUri.add(t); 2508 return this; 2509 } 2510 2511 /** 2512 * @param value {@link #instantiatesUri} (A URL referencing an externally defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request.) 2513 */ 2514 public boolean hasInstantiatesUri(String value) { 2515 if (this.instantiatesUri == null) 2516 return false; 2517 for (UriType v : this.instantiatesUri) 2518 if (v.getValue().equals(value)) // uri 2519 return true; 2520 return false; 2521 } 2522 2523 /** 2524 * @return {@link #basedOn} (A plan, proposal or order that is fulfilled in whole or in part by this request.) 2525 */ 2526 public List<Reference> getBasedOn() { 2527 if (this.basedOn == null) 2528 this.basedOn = new ArrayList<Reference>(); 2529 return this.basedOn; 2530 } 2531 2532 /** 2533 * @return Returns a reference to <code>this</code> for easy method chaining 2534 */ 2535 public RequestGroup setBasedOn(List<Reference> theBasedOn) { 2536 this.basedOn = theBasedOn; 2537 return this; 2538 } 2539 2540 public boolean hasBasedOn() { 2541 if (this.basedOn == null) 2542 return false; 2543 for (Reference item : this.basedOn) 2544 if (!item.isEmpty()) 2545 return true; 2546 return false; 2547 } 2548 2549 public Reference addBasedOn() { //3 2550 Reference t = new Reference(); 2551 if (this.basedOn == null) 2552 this.basedOn = new ArrayList<Reference>(); 2553 this.basedOn.add(t); 2554 return t; 2555 } 2556 2557 public RequestGroup addBasedOn(Reference t) { //3 2558 if (t == null) 2559 return this; 2560 if (this.basedOn == null) 2561 this.basedOn = new ArrayList<Reference>(); 2562 this.basedOn.add(t); 2563 return this; 2564 } 2565 2566 /** 2567 * @return The first repetition of repeating field {@link #basedOn}, creating it if it does not already exist {3} 2568 */ 2569 public Reference getBasedOnFirstRep() { 2570 if (getBasedOn().isEmpty()) { 2571 addBasedOn(); 2572 } 2573 return getBasedOn().get(0); 2574 } 2575 2576 /** 2577 * @return {@link #replaces} (Completed or terminated request(s) whose function is taken by this new request.) 2578 */ 2579 public List<Reference> getReplaces() { 2580 if (this.replaces == null) 2581 this.replaces = new ArrayList<Reference>(); 2582 return this.replaces; 2583 } 2584 2585 /** 2586 * @return Returns a reference to <code>this</code> for easy method chaining 2587 */ 2588 public RequestGroup setReplaces(List<Reference> theReplaces) { 2589 this.replaces = theReplaces; 2590 return this; 2591 } 2592 2593 public boolean hasReplaces() { 2594 if (this.replaces == null) 2595 return false; 2596 for (Reference item : this.replaces) 2597 if (!item.isEmpty()) 2598 return true; 2599 return false; 2600 } 2601 2602 public Reference addReplaces() { //3 2603 Reference t = new Reference(); 2604 if (this.replaces == null) 2605 this.replaces = new ArrayList<Reference>(); 2606 this.replaces.add(t); 2607 return t; 2608 } 2609 2610 public RequestGroup addReplaces(Reference t) { //3 2611 if (t == null) 2612 return this; 2613 if (this.replaces == null) 2614 this.replaces = new ArrayList<Reference>(); 2615 this.replaces.add(t); 2616 return this; 2617 } 2618 2619 /** 2620 * @return The first repetition of repeating field {@link #replaces}, creating it if it does not already exist {3} 2621 */ 2622 public Reference getReplacesFirstRep() { 2623 if (getReplaces().isEmpty()) { 2624 addReplaces(); 2625 } 2626 return getReplaces().get(0); 2627 } 2628 2629 /** 2630 * @return {@link #groupIdentifier} (A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition, prescription or similar form.) 2631 */ 2632 public Identifier getGroupIdentifier() { 2633 if (this.groupIdentifier == null) 2634 if (Configuration.errorOnAutoCreate()) 2635 throw new Error("Attempt to auto-create RequestGroup.groupIdentifier"); 2636 else if (Configuration.doAutoCreate()) 2637 this.groupIdentifier = new Identifier(); // cc 2638 return this.groupIdentifier; 2639 } 2640 2641 public boolean hasGroupIdentifier() { 2642 return this.groupIdentifier != null && !this.groupIdentifier.isEmpty(); 2643 } 2644 2645 /** 2646 * @param value {@link #groupIdentifier} (A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition, prescription or similar form.) 2647 */ 2648 public RequestGroup setGroupIdentifier(Identifier value) { 2649 this.groupIdentifier = value; 2650 return this; 2651 } 2652 2653 /** 2654 * @return {@link #status} (The current state of the request. For request groups, the status reflects the status of all the requests in the group.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 2655 */ 2656 public Enumeration<RequestStatus> getStatusElement() { 2657 if (this.status == null) 2658 if (Configuration.errorOnAutoCreate()) 2659 throw new Error("Attempt to auto-create RequestGroup.status"); 2660 else if (Configuration.doAutoCreate()) 2661 this.status = new Enumeration<RequestStatus>(new RequestStatusEnumFactory()); // bb 2662 return this.status; 2663 } 2664 2665 public boolean hasStatusElement() { 2666 return this.status != null && !this.status.isEmpty(); 2667 } 2668 2669 public boolean hasStatus() { 2670 return this.status != null && !this.status.isEmpty(); 2671 } 2672 2673 /** 2674 * @param value {@link #status} (The current state of the request. For request groups, the status reflects the status of all the requests in the group.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 2675 */ 2676 public RequestGroup setStatusElement(Enumeration<RequestStatus> value) { 2677 this.status = value; 2678 return this; 2679 } 2680 2681 /** 2682 * @return The current state of the request. For request groups, the status reflects the status of all the requests in the group. 2683 */ 2684 public RequestStatus getStatus() { 2685 return this.status == null ? null : this.status.getValue(); 2686 } 2687 2688 /** 2689 * @param value The current state of the request. For request groups, the status reflects the status of all the requests in the group. 2690 */ 2691 public RequestGroup setStatus(RequestStatus value) { 2692 if (this.status == null) 2693 this.status = new Enumeration<RequestStatus>(new RequestStatusEnumFactory()); 2694 this.status.setValue(value); 2695 return this; 2696 } 2697 2698 /** 2699 * @return {@link #intent} (Indicates the level of authority/intentionality associated with the request and where the request fits into the workflow chain.). This is the underlying object with id, value and extensions. The accessor "getIntent" gives direct access to the value 2700 */ 2701 public Enumeration<RequestIntent> getIntentElement() { 2702 if (this.intent == null) 2703 if (Configuration.errorOnAutoCreate()) 2704 throw new Error("Attempt to auto-create RequestGroup.intent"); 2705 else if (Configuration.doAutoCreate()) 2706 this.intent = new Enumeration<RequestIntent>(new RequestIntentEnumFactory()); // bb 2707 return this.intent; 2708 } 2709 2710 public boolean hasIntentElement() { 2711 return this.intent != null && !this.intent.isEmpty(); 2712 } 2713 2714 public boolean hasIntent() { 2715 return this.intent != null && !this.intent.isEmpty(); 2716 } 2717 2718 /** 2719 * @param value {@link #intent} (Indicates the level of authority/intentionality associated with the request and where the request fits into the workflow chain.). This is the underlying object with id, value and extensions. The accessor "getIntent" gives direct access to the value 2720 */ 2721 public RequestGroup setIntentElement(Enumeration<RequestIntent> value) { 2722 this.intent = value; 2723 return this; 2724 } 2725 2726 /** 2727 * @return Indicates the level of authority/intentionality associated with the request and where the request fits into the workflow chain. 2728 */ 2729 public RequestIntent getIntent() { 2730 return this.intent == null ? null : this.intent.getValue(); 2731 } 2732 2733 /** 2734 * @param value Indicates the level of authority/intentionality associated with the request and where the request fits into the workflow chain. 2735 */ 2736 public RequestGroup setIntent(RequestIntent value) { 2737 if (this.intent == null) 2738 this.intent = new Enumeration<RequestIntent>(new RequestIntentEnumFactory()); 2739 this.intent.setValue(value); 2740 return this; 2741 } 2742 2743 /** 2744 * @return {@link #priority} (Indicates how quickly the request should be addressed with respect to other requests.). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value 2745 */ 2746 public Enumeration<RequestPriority> getPriorityElement() { 2747 if (this.priority == null) 2748 if (Configuration.errorOnAutoCreate()) 2749 throw new Error("Attempt to auto-create RequestGroup.priority"); 2750 else if (Configuration.doAutoCreate()) 2751 this.priority = new Enumeration<RequestPriority>(new RequestPriorityEnumFactory()); // bb 2752 return this.priority; 2753 } 2754 2755 public boolean hasPriorityElement() { 2756 return this.priority != null && !this.priority.isEmpty(); 2757 } 2758 2759 public boolean hasPriority() { 2760 return this.priority != null && !this.priority.isEmpty(); 2761 } 2762 2763 /** 2764 * @param value {@link #priority} (Indicates how quickly the request should be addressed with respect to other requests.). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value 2765 */ 2766 public RequestGroup setPriorityElement(Enumeration<RequestPriority> value) { 2767 this.priority = value; 2768 return this; 2769 } 2770 2771 /** 2772 * @return Indicates how quickly the request should be addressed with respect to other requests. 2773 */ 2774 public RequestPriority getPriority() { 2775 return this.priority == null ? null : this.priority.getValue(); 2776 } 2777 2778 /** 2779 * @param value Indicates how quickly the request should be addressed with respect to other requests. 2780 */ 2781 public RequestGroup setPriority(RequestPriority value) { 2782 if (value == null) 2783 this.priority = null; 2784 else { 2785 if (this.priority == null) 2786 this.priority = new Enumeration<RequestPriority>(new RequestPriorityEnumFactory()); 2787 this.priority.setValue(value); 2788 } 2789 return this; 2790 } 2791 2792 /** 2793 * @return {@link #code} (A code that identifies what the overall request group is.) 2794 */ 2795 public CodeableConcept getCode() { 2796 if (this.code == null) 2797 if (Configuration.errorOnAutoCreate()) 2798 throw new Error("Attempt to auto-create RequestGroup.code"); 2799 else if (Configuration.doAutoCreate()) 2800 this.code = new CodeableConcept(); // cc 2801 return this.code; 2802 } 2803 2804 public boolean hasCode() { 2805 return this.code != null && !this.code.isEmpty(); 2806 } 2807 2808 /** 2809 * @param value {@link #code} (A code that identifies what the overall request group is.) 2810 */ 2811 public RequestGroup setCode(CodeableConcept value) { 2812 this.code = value; 2813 return this; 2814 } 2815 2816 /** 2817 * @return {@link #subject} (The subject for which the request group was created.) 2818 */ 2819 public Reference getSubject() { 2820 if (this.subject == null) 2821 if (Configuration.errorOnAutoCreate()) 2822 throw new Error("Attempt to auto-create RequestGroup.subject"); 2823 else if (Configuration.doAutoCreate()) 2824 this.subject = new Reference(); // cc 2825 return this.subject; 2826 } 2827 2828 public boolean hasSubject() { 2829 return this.subject != null && !this.subject.isEmpty(); 2830 } 2831 2832 /** 2833 * @param value {@link #subject} (The subject for which the request group was created.) 2834 */ 2835 public RequestGroup setSubject(Reference value) { 2836 this.subject = value; 2837 return this; 2838 } 2839 2840 /** 2841 * @return {@link #encounter} (Describes the context of the request group, if any.) 2842 */ 2843 public Reference getEncounter() { 2844 if (this.encounter == null) 2845 if (Configuration.errorOnAutoCreate()) 2846 throw new Error("Attempt to auto-create RequestGroup.encounter"); 2847 else if (Configuration.doAutoCreate()) 2848 this.encounter = new Reference(); // cc 2849 return this.encounter; 2850 } 2851 2852 public boolean hasEncounter() { 2853 return this.encounter != null && !this.encounter.isEmpty(); 2854 } 2855 2856 /** 2857 * @param value {@link #encounter} (Describes the context of the request group, if any.) 2858 */ 2859 public RequestGroup setEncounter(Reference value) { 2860 this.encounter = value; 2861 return this; 2862 } 2863 2864 /** 2865 * @return {@link #authoredOn} (Indicates when the request group was created.). This is the underlying object with id, value and extensions. The accessor "getAuthoredOn" gives direct access to the value 2866 */ 2867 public DateTimeType getAuthoredOnElement() { 2868 if (this.authoredOn == null) 2869 if (Configuration.errorOnAutoCreate()) 2870 throw new Error("Attempt to auto-create RequestGroup.authoredOn"); 2871 else if (Configuration.doAutoCreate()) 2872 this.authoredOn = new DateTimeType(); // bb 2873 return this.authoredOn; 2874 } 2875 2876 public boolean hasAuthoredOnElement() { 2877 return this.authoredOn != null && !this.authoredOn.isEmpty(); 2878 } 2879 2880 public boolean hasAuthoredOn() { 2881 return this.authoredOn != null && !this.authoredOn.isEmpty(); 2882 } 2883 2884 /** 2885 * @param value {@link #authoredOn} (Indicates when the request group was created.). This is the underlying object with id, value and extensions. The accessor "getAuthoredOn" gives direct access to the value 2886 */ 2887 public RequestGroup setAuthoredOnElement(DateTimeType value) { 2888 this.authoredOn = value; 2889 return this; 2890 } 2891 2892 /** 2893 * @return Indicates when the request group was created. 2894 */ 2895 public Date getAuthoredOn() { 2896 return this.authoredOn == null ? null : this.authoredOn.getValue(); 2897 } 2898 2899 /** 2900 * @param value Indicates when the request group was created. 2901 */ 2902 public RequestGroup setAuthoredOn(Date value) { 2903 if (value == null) 2904 this.authoredOn = null; 2905 else { 2906 if (this.authoredOn == null) 2907 this.authoredOn = new DateTimeType(); 2908 this.authoredOn.setValue(value); 2909 } 2910 return this; 2911 } 2912 2913 /** 2914 * @return {@link #author} (Provides a reference to the author of the request group.) 2915 */ 2916 public Reference getAuthor() { 2917 if (this.author == null) 2918 if (Configuration.errorOnAutoCreate()) 2919 throw new Error("Attempt to auto-create RequestGroup.author"); 2920 else if (Configuration.doAutoCreate()) 2921 this.author = new Reference(); // cc 2922 return this.author; 2923 } 2924 2925 public boolean hasAuthor() { 2926 return this.author != null && !this.author.isEmpty(); 2927 } 2928 2929 /** 2930 * @param value {@link #author} (Provides a reference to the author of the request group.) 2931 */ 2932 public RequestGroup setAuthor(Reference value) { 2933 this.author = value; 2934 return this; 2935 } 2936 2937 /** 2938 * @return {@link #reason} (Describes the reason for the request group in coded or textual form.) 2939 */ 2940 public List<CodeableReference> getReason() { 2941 if (this.reason == null) 2942 this.reason = new ArrayList<CodeableReference>(); 2943 return this.reason; 2944 } 2945 2946 /** 2947 * @return Returns a reference to <code>this</code> for easy method chaining 2948 */ 2949 public RequestGroup setReason(List<CodeableReference> theReason) { 2950 this.reason = theReason; 2951 return this; 2952 } 2953 2954 public boolean hasReason() { 2955 if (this.reason == null) 2956 return false; 2957 for (CodeableReference item : this.reason) 2958 if (!item.isEmpty()) 2959 return true; 2960 return false; 2961 } 2962 2963 public CodeableReference addReason() { //3 2964 CodeableReference t = new CodeableReference(); 2965 if (this.reason == null) 2966 this.reason = new ArrayList<CodeableReference>(); 2967 this.reason.add(t); 2968 return t; 2969 } 2970 2971 public RequestGroup addReason(CodeableReference t) { //3 2972 if (t == null) 2973 return this; 2974 if (this.reason == null) 2975 this.reason = new ArrayList<CodeableReference>(); 2976 this.reason.add(t); 2977 return this; 2978 } 2979 2980 /** 2981 * @return The first repetition of repeating field {@link #reason}, creating it if it does not already exist {3} 2982 */ 2983 public CodeableReference getReasonFirstRep() { 2984 if (getReason().isEmpty()) { 2985 addReason(); 2986 } 2987 return getReason().get(0); 2988 } 2989 2990 /** 2991 * @return {@link #note} (Provides a mechanism to communicate additional information about the response.) 2992 */ 2993 public List<Annotation> getNote() { 2994 if (this.note == null) 2995 this.note = new ArrayList<Annotation>(); 2996 return this.note; 2997 } 2998 2999 /** 3000 * @return Returns a reference to <code>this</code> for easy method chaining 3001 */ 3002 public RequestGroup setNote(List<Annotation> theNote) { 3003 this.note = theNote; 3004 return this; 3005 } 3006 3007 public boolean hasNote() { 3008 if (this.note == null) 3009 return false; 3010 for (Annotation item : this.note) 3011 if (!item.isEmpty()) 3012 return true; 3013 return false; 3014 } 3015 3016 public Annotation addNote() { //3 3017 Annotation t = new Annotation(); 3018 if (this.note == null) 3019 this.note = new ArrayList<Annotation>(); 3020 this.note.add(t); 3021 return t; 3022 } 3023 3024 public RequestGroup addNote(Annotation t) { //3 3025 if (t == null) 3026 return this; 3027 if (this.note == null) 3028 this.note = new ArrayList<Annotation>(); 3029 this.note.add(t); 3030 return this; 3031 } 3032 3033 /** 3034 * @return The first repetition of repeating field {@link #note}, creating it if it does not already exist {3} 3035 */ 3036 public Annotation getNoteFirstRep() { 3037 if (getNote().isEmpty()) { 3038 addNote(); 3039 } 3040 return getNote().get(0); 3041 } 3042 3043 /** 3044 * @return {@link #action} (The actions, if any, produced by the evaluation of the artifact.) 3045 */ 3046 public List<RequestGroupActionComponent> getAction() { 3047 if (this.action == null) 3048 this.action = new ArrayList<RequestGroupActionComponent>(); 3049 return this.action; 3050 } 3051 3052 /** 3053 * @return Returns a reference to <code>this</code> for easy method chaining 3054 */ 3055 public RequestGroup setAction(List<RequestGroupActionComponent> theAction) { 3056 this.action = theAction; 3057 return this; 3058 } 3059 3060 public boolean hasAction() { 3061 if (this.action == null) 3062 return false; 3063 for (RequestGroupActionComponent item : this.action) 3064 if (!item.isEmpty()) 3065 return true; 3066 return false; 3067 } 3068 3069 public RequestGroupActionComponent addAction() { //3 3070 RequestGroupActionComponent t = new RequestGroupActionComponent(); 3071 if (this.action == null) 3072 this.action = new ArrayList<RequestGroupActionComponent>(); 3073 this.action.add(t); 3074 return t; 3075 } 3076 3077 public RequestGroup addAction(RequestGroupActionComponent t) { //3 3078 if (t == null) 3079 return this; 3080 if (this.action == null) 3081 this.action = new ArrayList<RequestGroupActionComponent>(); 3082 this.action.add(t); 3083 return this; 3084 } 3085 3086 /** 3087 * @return The first repetition of repeating field {@link #action}, creating it if it does not already exist {3} 3088 */ 3089 public RequestGroupActionComponent getActionFirstRep() { 3090 if (getAction().isEmpty()) { 3091 addAction(); 3092 } 3093 return getAction().get(0); 3094 } 3095 3096 protected void listChildren(List<Property> children) { 3097 super.listChildren(children); 3098 children.add(new Property("identifier", "Identifier", "Allows a service to provide a unique, business identifier for the request.", 0, java.lang.Integer.MAX_VALUE, identifier)); 3099 children.add(new Property("instantiatesCanonical", "canonical", "A canonical URL referencing a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request.", 0, java.lang.Integer.MAX_VALUE, instantiatesCanonical)); 3100 children.add(new Property("instantiatesUri", "uri", "A URL referencing an externally defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request.", 0, java.lang.Integer.MAX_VALUE, instantiatesUri)); 3101 children.add(new Property("basedOn", "Reference(Any)", "A plan, proposal or order that is fulfilled in whole or in part by this request.", 0, java.lang.Integer.MAX_VALUE, basedOn)); 3102 children.add(new Property("replaces", "Reference(Any)", "Completed or terminated request(s) whose function is taken by this new request.", 0, java.lang.Integer.MAX_VALUE, replaces)); 3103 children.add(new Property("groupIdentifier", "Identifier", "A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition, prescription or similar form.", 0, 1, groupIdentifier)); 3104 children.add(new Property("status", "code", "The current state of the request. For request groups, the status reflects the status of all the requests in the group.", 0, 1, status)); 3105 children.add(new Property("intent", "code", "Indicates the level of authority/intentionality associated with the request and where the request fits into the workflow chain.", 0, 1, intent)); 3106 children.add(new Property("priority", "code", "Indicates how quickly the request should be addressed with respect to other requests.", 0, 1, priority)); 3107 children.add(new Property("code", "CodeableConcept", "A code that identifies what the overall request group is.", 0, 1, code)); 3108 children.add(new Property("subject", "Reference(Patient|Group)", "The subject for which the request group was created.", 0, 1, subject)); 3109 children.add(new Property("encounter", "Reference(Encounter)", "Describes the context of the request group, if any.", 0, 1, encounter)); 3110 children.add(new Property("authoredOn", "dateTime", "Indicates when the request group was created.", 0, 1, authoredOn)); 3111 children.add(new Property("author", "Reference(Device|Practitioner|PractitionerRole)", "Provides a reference to the author of the request group.", 0, 1, author)); 3112 children.add(new Property("reason", "CodeableReference(Condition|Observation|DiagnosticReport|DocumentReference)", "Describes the reason for the request group in coded or textual form.", 0, java.lang.Integer.MAX_VALUE, reason)); 3113 children.add(new Property("note", "Annotation", "Provides a mechanism to communicate additional information about the response.", 0, java.lang.Integer.MAX_VALUE, note)); 3114 children.add(new Property("action", "", "The actions, if any, produced by the evaluation of the artifact.", 0, java.lang.Integer.MAX_VALUE, action)); 3115 } 3116 3117 @Override 3118 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 3119 switch (_hash) { 3120 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Allows a service to provide a unique, business identifier for the request.", 0, java.lang.Integer.MAX_VALUE, identifier); 3121 case 8911915: /*instantiatesCanonical*/ return new Property("instantiatesCanonical", "canonical", "A canonical URL referencing a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request.", 0, java.lang.Integer.MAX_VALUE, instantiatesCanonical); 3122 case -1926393373: /*instantiatesUri*/ return new Property("instantiatesUri", "uri", "A URL referencing an externally defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request.", 0, java.lang.Integer.MAX_VALUE, instantiatesUri); 3123 case -332612366: /*basedOn*/ return new Property("basedOn", "Reference(Any)", "A plan, proposal or order that is fulfilled in whole or in part by this request.", 0, java.lang.Integer.MAX_VALUE, basedOn); 3124 case -430332865: /*replaces*/ return new Property("replaces", "Reference(Any)", "Completed or terminated request(s) whose function is taken by this new request.", 0, java.lang.Integer.MAX_VALUE, replaces); 3125 case -445338488: /*groupIdentifier*/ return new Property("groupIdentifier", "Identifier", "A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition, prescription or similar form.", 0, 1, groupIdentifier); 3126 case -892481550: /*status*/ return new Property("status", "code", "The current state of the request. For request groups, the status reflects the status of all the requests in the group.", 0, 1, status); 3127 case -1183762788: /*intent*/ return new Property("intent", "code", "Indicates the level of authority/intentionality associated with the request and where the request fits into the workflow chain.", 0, 1, intent); 3128 case -1165461084: /*priority*/ return new Property("priority", "code", "Indicates how quickly the request should be addressed with respect to other requests.", 0, 1, priority); 3129 case 3059181: /*code*/ return new Property("code", "CodeableConcept", "A code that identifies what the overall request group is.", 0, 1, code); 3130 case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Group)", "The subject for which the request group was created.", 0, 1, subject); 3131 case 1524132147: /*encounter*/ return new Property("encounter", "Reference(Encounter)", "Describes the context of the request group, if any.", 0, 1, encounter); 3132 case -1500852503: /*authoredOn*/ return new Property("authoredOn", "dateTime", "Indicates when the request group was created.", 0, 1, authoredOn); 3133 case -1406328437: /*author*/ return new Property("author", "Reference(Device|Practitioner|PractitionerRole)", "Provides a reference to the author of the request group.", 0, 1, author); 3134 case -934964668: /*reason*/ return new Property("reason", "CodeableReference(Condition|Observation|DiagnosticReport|DocumentReference)", "Describes the reason for the request group in coded or textual form.", 0, java.lang.Integer.MAX_VALUE, reason); 3135 case 3387378: /*note*/ return new Property("note", "Annotation", "Provides a mechanism to communicate additional information about the response.", 0, java.lang.Integer.MAX_VALUE, note); 3136 case -1422950858: /*action*/ return new Property("action", "", "The actions, if any, produced by the evaluation of the artifact.", 0, java.lang.Integer.MAX_VALUE, action); 3137 default: return super.getNamedProperty(_hash, _name, _checkValid); 3138 } 3139 3140 } 3141 3142 @Override 3143 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 3144 switch (hash) { 3145 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 3146 case 8911915: /*instantiatesCanonical*/ return this.instantiatesCanonical == null ? new Base[0] : this.instantiatesCanonical.toArray(new Base[this.instantiatesCanonical.size()]); // CanonicalType 3147 case -1926393373: /*instantiatesUri*/ return this.instantiatesUri == null ? new Base[0] : this.instantiatesUri.toArray(new Base[this.instantiatesUri.size()]); // UriType 3148 case -332612366: /*basedOn*/ return this.basedOn == null ? new Base[0] : this.basedOn.toArray(new Base[this.basedOn.size()]); // Reference 3149 case -430332865: /*replaces*/ return this.replaces == null ? new Base[0] : this.replaces.toArray(new Base[this.replaces.size()]); // Reference 3150 case -445338488: /*groupIdentifier*/ return this.groupIdentifier == null ? new Base[0] : new Base[] {this.groupIdentifier}; // Identifier 3151 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<RequestStatus> 3152 case -1183762788: /*intent*/ return this.intent == null ? new Base[0] : new Base[] {this.intent}; // Enumeration<RequestIntent> 3153 case -1165461084: /*priority*/ return this.priority == null ? new Base[0] : new Base[] {this.priority}; // Enumeration<RequestPriority> 3154 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept 3155 case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference 3156 case 1524132147: /*encounter*/ return this.encounter == null ? new Base[0] : new Base[] {this.encounter}; // Reference 3157 case -1500852503: /*authoredOn*/ return this.authoredOn == null ? new Base[0] : new Base[] {this.authoredOn}; // DateTimeType 3158 case -1406328437: /*author*/ return this.author == null ? new Base[0] : new Base[] {this.author}; // Reference 3159 case -934964668: /*reason*/ return this.reason == null ? new Base[0] : this.reason.toArray(new Base[this.reason.size()]); // CodeableReference 3160 case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation 3161 case -1422950858: /*action*/ return this.action == null ? new Base[0] : this.action.toArray(new Base[this.action.size()]); // RequestGroupActionComponent 3162 default: return super.getProperty(hash, name, checkValid); 3163 } 3164 3165 } 3166 3167 @Override 3168 public Base setProperty(int hash, String name, Base value) throws FHIRException { 3169 switch (hash) { 3170 case -1618432855: // identifier 3171 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier 3172 return value; 3173 case 8911915: // instantiatesCanonical 3174 this.getInstantiatesCanonical().add(TypeConvertor.castToCanonical(value)); // CanonicalType 3175 return value; 3176 case -1926393373: // instantiatesUri 3177 this.getInstantiatesUri().add(TypeConvertor.castToUri(value)); // UriType 3178 return value; 3179 case -332612366: // basedOn 3180 this.getBasedOn().add(TypeConvertor.castToReference(value)); // Reference 3181 return value; 3182 case -430332865: // replaces 3183 this.getReplaces().add(TypeConvertor.castToReference(value)); // Reference 3184 return value; 3185 case -445338488: // groupIdentifier 3186 this.groupIdentifier = TypeConvertor.castToIdentifier(value); // Identifier 3187 return value; 3188 case -892481550: // status 3189 value = new RequestStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 3190 this.status = (Enumeration) value; // Enumeration<RequestStatus> 3191 return value; 3192 case -1183762788: // intent 3193 value = new RequestIntentEnumFactory().fromType(TypeConvertor.castToCode(value)); 3194 this.intent = (Enumeration) value; // Enumeration<RequestIntent> 3195 return value; 3196 case -1165461084: // priority 3197 value = new RequestPriorityEnumFactory().fromType(TypeConvertor.castToCode(value)); 3198 this.priority = (Enumeration) value; // Enumeration<RequestPriority> 3199 return value; 3200 case 3059181: // code 3201 this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 3202 return value; 3203 case -1867885268: // subject 3204 this.subject = TypeConvertor.castToReference(value); // Reference 3205 return value; 3206 case 1524132147: // encounter 3207 this.encounter = TypeConvertor.castToReference(value); // Reference 3208 return value; 3209 case -1500852503: // authoredOn 3210 this.authoredOn = TypeConvertor.castToDateTime(value); // DateTimeType 3211 return value; 3212 case -1406328437: // author 3213 this.author = TypeConvertor.castToReference(value); // Reference 3214 return value; 3215 case -934964668: // reason 3216 this.getReason().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference 3217 return value; 3218 case 3387378: // note 3219 this.getNote().add(TypeConvertor.castToAnnotation(value)); // Annotation 3220 return value; 3221 case -1422950858: // action 3222 this.getAction().add((RequestGroupActionComponent) value); // RequestGroupActionComponent 3223 return value; 3224 default: return super.setProperty(hash, name, value); 3225 } 3226 3227 } 3228 3229 @Override 3230 public Base setProperty(String name, Base value) throws FHIRException { 3231 if (name.equals("identifier")) { 3232 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); 3233 } else if (name.equals("instantiatesCanonical")) { 3234 this.getInstantiatesCanonical().add(TypeConvertor.castToCanonical(value)); 3235 } else if (name.equals("instantiatesUri")) { 3236 this.getInstantiatesUri().add(TypeConvertor.castToUri(value)); 3237 } else if (name.equals("basedOn")) { 3238 this.getBasedOn().add(TypeConvertor.castToReference(value)); 3239 } else if (name.equals("replaces")) { 3240 this.getReplaces().add(TypeConvertor.castToReference(value)); 3241 } else if (name.equals("groupIdentifier")) { 3242 this.groupIdentifier = TypeConvertor.castToIdentifier(value); // Identifier 3243 } else if (name.equals("status")) { 3244 value = new RequestStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 3245 this.status = (Enumeration) value; // Enumeration<RequestStatus> 3246 } else if (name.equals("intent")) { 3247 value = new RequestIntentEnumFactory().fromType(TypeConvertor.castToCode(value)); 3248 this.intent = (Enumeration) value; // Enumeration<RequestIntent> 3249 } else if (name.equals("priority")) { 3250 value = new RequestPriorityEnumFactory().fromType(TypeConvertor.castToCode(value)); 3251 this.priority = (Enumeration) value; // Enumeration<RequestPriority> 3252 } else if (name.equals("code")) { 3253 this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 3254 } else if (name.equals("subject")) { 3255 this.subject = TypeConvertor.castToReference(value); // Reference 3256 } else if (name.equals("encounter")) { 3257 this.encounter = TypeConvertor.castToReference(value); // Reference 3258 } else if (name.equals("authoredOn")) { 3259 this.authoredOn = TypeConvertor.castToDateTime(value); // DateTimeType 3260 } else if (name.equals("author")) { 3261 this.author = TypeConvertor.castToReference(value); // Reference 3262 } else if (name.equals("reason")) { 3263 this.getReason().add(TypeConvertor.castToCodeableReference(value)); 3264 } else if (name.equals("note")) { 3265 this.getNote().add(TypeConvertor.castToAnnotation(value)); 3266 } else if (name.equals("action")) { 3267 this.getAction().add((RequestGroupActionComponent) value); 3268 } else 3269 return super.setProperty(name, value); 3270 return value; 3271 } 3272 3273 @Override 3274 public Base makeProperty(int hash, String name) throws FHIRException { 3275 switch (hash) { 3276 case -1618432855: return addIdentifier(); 3277 case 8911915: return addInstantiatesCanonicalElement(); 3278 case -1926393373: return addInstantiatesUriElement(); 3279 case -332612366: return addBasedOn(); 3280 case -430332865: return addReplaces(); 3281 case -445338488: return getGroupIdentifier(); 3282 case -892481550: return getStatusElement(); 3283 case -1183762788: return getIntentElement(); 3284 case -1165461084: return getPriorityElement(); 3285 case 3059181: return getCode(); 3286 case -1867885268: return getSubject(); 3287 case 1524132147: return getEncounter(); 3288 case -1500852503: return getAuthoredOnElement(); 3289 case -1406328437: return getAuthor(); 3290 case -934964668: return addReason(); 3291 case 3387378: return addNote(); 3292 case -1422950858: return addAction(); 3293 default: return super.makeProperty(hash, name); 3294 } 3295 3296 } 3297 3298 @Override 3299 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 3300 switch (hash) { 3301 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 3302 case 8911915: /*instantiatesCanonical*/ return new String[] {"canonical"}; 3303 case -1926393373: /*instantiatesUri*/ return new String[] {"uri"}; 3304 case -332612366: /*basedOn*/ return new String[] {"Reference"}; 3305 case -430332865: /*replaces*/ return new String[] {"Reference"}; 3306 case -445338488: /*groupIdentifier*/ return new String[] {"Identifier"}; 3307 case -892481550: /*status*/ return new String[] {"code"}; 3308 case -1183762788: /*intent*/ return new String[] {"code"}; 3309 case -1165461084: /*priority*/ return new String[] {"code"}; 3310 case 3059181: /*code*/ return new String[] {"CodeableConcept"}; 3311 case -1867885268: /*subject*/ return new String[] {"Reference"}; 3312 case 1524132147: /*encounter*/ return new String[] {"Reference"}; 3313 case -1500852503: /*authoredOn*/ return new String[] {"dateTime"}; 3314 case -1406328437: /*author*/ return new String[] {"Reference"}; 3315 case -934964668: /*reason*/ return new String[] {"CodeableReference"}; 3316 case 3387378: /*note*/ return new String[] {"Annotation"}; 3317 case -1422950858: /*action*/ return new String[] {}; 3318 default: return super.getTypesForProperty(hash, name); 3319 } 3320 3321 } 3322 3323 @Override 3324 public Base addChild(String name) throws FHIRException { 3325 if (name.equals("identifier")) { 3326 return addIdentifier(); 3327 } 3328 else if (name.equals("instantiatesCanonical")) { 3329 throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.instantiatesCanonical"); 3330 } 3331 else if (name.equals("instantiatesUri")) { 3332 throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.instantiatesUri"); 3333 } 3334 else if (name.equals("basedOn")) { 3335 return addBasedOn(); 3336 } 3337 else if (name.equals("replaces")) { 3338 return addReplaces(); 3339 } 3340 else if (name.equals("groupIdentifier")) { 3341 this.groupIdentifier = new Identifier(); 3342 return this.groupIdentifier; 3343 } 3344 else if (name.equals("status")) { 3345 throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.status"); 3346 } 3347 else if (name.equals("intent")) { 3348 throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.intent"); 3349 } 3350 else if (name.equals("priority")) { 3351 throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.priority"); 3352 } 3353 else if (name.equals("code")) { 3354 this.code = new CodeableConcept(); 3355 return this.code; 3356 } 3357 else if (name.equals("subject")) { 3358 this.subject = new Reference(); 3359 return this.subject; 3360 } 3361 else if (name.equals("encounter")) { 3362 this.encounter = new Reference(); 3363 return this.encounter; 3364 } 3365 else if (name.equals("authoredOn")) { 3366 throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.authoredOn"); 3367 } 3368 else if (name.equals("author")) { 3369 this.author = new Reference(); 3370 return this.author; 3371 } 3372 else if (name.equals("reason")) { 3373 return addReason(); 3374 } 3375 else if (name.equals("note")) { 3376 return addNote(); 3377 } 3378 else if (name.equals("action")) { 3379 return addAction(); 3380 } 3381 else 3382 return super.addChild(name); 3383 } 3384 3385 public String fhirType() { 3386 return "RequestGroup"; 3387 3388 } 3389 3390 public RequestGroup copy() { 3391 RequestGroup dst = new RequestGroup(); 3392 copyValues(dst); 3393 return dst; 3394 } 3395 3396 public void copyValues(RequestGroup dst) { 3397 super.copyValues(dst); 3398 if (identifier != null) { 3399 dst.identifier = new ArrayList<Identifier>(); 3400 for (Identifier i : identifier) 3401 dst.identifier.add(i.copy()); 3402 }; 3403 if (instantiatesCanonical != null) { 3404 dst.instantiatesCanonical = new ArrayList<CanonicalType>(); 3405 for (CanonicalType i : instantiatesCanonical) 3406 dst.instantiatesCanonical.add(i.copy()); 3407 }; 3408 if (instantiatesUri != null) { 3409 dst.instantiatesUri = new ArrayList<UriType>(); 3410 for (UriType i : instantiatesUri) 3411 dst.instantiatesUri.add(i.copy()); 3412 }; 3413 if (basedOn != null) { 3414 dst.basedOn = new ArrayList<Reference>(); 3415 for (Reference i : basedOn) 3416 dst.basedOn.add(i.copy()); 3417 }; 3418 if (replaces != null) { 3419 dst.replaces = new ArrayList<Reference>(); 3420 for (Reference i : replaces) 3421 dst.replaces.add(i.copy()); 3422 }; 3423 dst.groupIdentifier = groupIdentifier == null ? null : groupIdentifier.copy(); 3424 dst.status = status == null ? null : status.copy(); 3425 dst.intent = intent == null ? null : intent.copy(); 3426 dst.priority = priority == null ? null : priority.copy(); 3427 dst.code = code == null ? null : code.copy(); 3428 dst.subject = subject == null ? null : subject.copy(); 3429 dst.encounter = encounter == null ? null : encounter.copy(); 3430 dst.authoredOn = authoredOn == null ? null : authoredOn.copy(); 3431 dst.author = author == null ? null : author.copy(); 3432 if (reason != null) { 3433 dst.reason = new ArrayList<CodeableReference>(); 3434 for (CodeableReference i : reason) 3435 dst.reason.add(i.copy()); 3436 }; 3437 if (note != null) { 3438 dst.note = new ArrayList<Annotation>(); 3439 for (Annotation i : note) 3440 dst.note.add(i.copy()); 3441 }; 3442 if (action != null) { 3443 dst.action = new ArrayList<RequestGroupActionComponent>(); 3444 for (RequestGroupActionComponent i : action) 3445 dst.action.add(i.copy()); 3446 }; 3447 } 3448 3449 protected RequestGroup typedCopy() { 3450 return copy(); 3451 } 3452 3453 @Override 3454 public boolean equalsDeep(Base other_) { 3455 if (!super.equalsDeep(other_)) 3456 return false; 3457 if (!(other_ instanceof RequestGroup)) 3458 return false; 3459 RequestGroup o = (RequestGroup) other_; 3460 return compareDeep(identifier, o.identifier, true) && compareDeep(instantiatesCanonical, o.instantiatesCanonical, true) 3461 && compareDeep(instantiatesUri, o.instantiatesUri, true) && compareDeep(basedOn, o.basedOn, true) 3462 && compareDeep(replaces, o.replaces, true) && compareDeep(groupIdentifier, o.groupIdentifier, true) 3463 && compareDeep(status, o.status, true) && compareDeep(intent, o.intent, true) && compareDeep(priority, o.priority, true) 3464 && compareDeep(code, o.code, true) && compareDeep(subject, o.subject, true) && compareDeep(encounter, o.encounter, true) 3465 && compareDeep(authoredOn, o.authoredOn, true) && compareDeep(author, o.author, true) && compareDeep(reason, o.reason, true) 3466 && compareDeep(note, o.note, true) && compareDeep(action, o.action, true); 3467 } 3468 3469 @Override 3470 public boolean equalsShallow(Base other_) { 3471 if (!super.equalsShallow(other_)) 3472 return false; 3473 if (!(other_ instanceof RequestGroup)) 3474 return false; 3475 RequestGroup o = (RequestGroup) other_; 3476 return compareValues(instantiatesCanonical, o.instantiatesCanonical, true) && compareValues(instantiatesUri, o.instantiatesUri, true) 3477 && compareValues(status, o.status, true) && compareValues(intent, o.intent, true) && compareValues(priority, o.priority, true) 3478 && compareValues(authoredOn, o.authoredOn, true); 3479 } 3480 3481 public boolean isEmpty() { 3482 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, instantiatesCanonical 3483 , instantiatesUri, basedOn, replaces, groupIdentifier, status, intent, priority 3484 , code, subject, encounter, authoredOn, author, reason, note, action); 3485 } 3486 3487 @Override 3488 public ResourceType getResourceType() { 3489 return ResourceType.RequestGroup; 3490 } 3491 3492 /** 3493 * Search parameter: <b>author</b> 3494 * <p> 3495 * Description: <b>The author of the request group</b><br> 3496 * Type: <b>reference</b><br> 3497 * Path: <b>RequestGroup.author</b><br> 3498 * </p> 3499 */ 3500 @SearchParamDefinition(name="author", path="RequestGroup.author", description="The author of the request group", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Device.class, Practitioner.class, PractitionerRole.class } ) 3501 public static final String SP_AUTHOR = "author"; 3502 /** 3503 * <b>Fluent Client</b> search parameter constant for <b>author</b> 3504 * <p> 3505 * Description: <b>The author of the request group</b><br> 3506 * Type: <b>reference</b><br> 3507 * Path: <b>RequestGroup.author</b><br> 3508 * </p> 3509 */ 3510 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam AUTHOR = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_AUTHOR); 3511 3512/** 3513 * Constant for fluent queries to be used to add include statements. Specifies 3514 * the path value of "<b>RequestGroup:author</b>". 3515 */ 3516 public static final ca.uhn.fhir.model.api.Include INCLUDE_AUTHOR = new ca.uhn.fhir.model.api.Include("RequestGroup:author").toLocked(); 3517 3518 /** 3519 * Search parameter: <b>authored</b> 3520 * <p> 3521 * Description: <b>The date the request group was authored</b><br> 3522 * Type: <b>date</b><br> 3523 * Path: <b>RequestGroup.authoredOn</b><br> 3524 * </p> 3525 */ 3526 @SearchParamDefinition(name="authored", path="RequestGroup.authoredOn", description="The date the request group was authored", type="date" ) 3527 public static final String SP_AUTHORED = "authored"; 3528 /** 3529 * <b>Fluent Client</b> search parameter constant for <b>authored</b> 3530 * <p> 3531 * Description: <b>The date the request group was authored</b><br> 3532 * Type: <b>date</b><br> 3533 * Path: <b>RequestGroup.authoredOn</b><br> 3534 * </p> 3535 */ 3536 public static final ca.uhn.fhir.rest.gclient.DateClientParam AUTHORED = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_AUTHORED); 3537 3538 /** 3539 * Search parameter: <b>code</b> 3540 * <p> 3541 * Description: <b>The code of the request group</b><br> 3542 * Type: <b>token</b><br> 3543 * Path: <b>RequestGroup.code</b><br> 3544 * </p> 3545 */ 3546 @SearchParamDefinition(name="code", path="RequestGroup.code", description="The code of the request group", type="token" ) 3547 public static final String SP_CODE = "code"; 3548 /** 3549 * <b>Fluent Client</b> search parameter constant for <b>code</b> 3550 * <p> 3551 * Description: <b>The code of the request group</b><br> 3552 * Type: <b>token</b><br> 3553 * Path: <b>RequestGroup.code</b><br> 3554 * </p> 3555 */ 3556 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); 3557 3558 /** 3559 * Search parameter: <b>encounter</b> 3560 * <p> 3561 * Description: <b>The encounter the request group applies to</b><br> 3562 * Type: <b>reference</b><br> 3563 * Path: <b>RequestGroup.encounter</b><br> 3564 * </p> 3565 */ 3566 @SearchParamDefinition(name="encounter", path="RequestGroup.encounter", description="The encounter the request group applies to", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) 3567 public static final String SP_ENCOUNTER = "encounter"; 3568 /** 3569 * <b>Fluent Client</b> search parameter constant for <b>encounter</b> 3570 * <p> 3571 * Description: <b>The encounter the request group applies to</b><br> 3572 * Type: <b>reference</b><br> 3573 * Path: <b>RequestGroup.encounter</b><br> 3574 * </p> 3575 */ 3576 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); 3577 3578/** 3579 * Constant for fluent queries to be used to add include statements. Specifies 3580 * the path value of "<b>RequestGroup:encounter</b>". 3581 */ 3582 public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("RequestGroup:encounter").toLocked(); 3583 3584 /** 3585 * Search parameter: <b>group-identifier</b> 3586 * <p> 3587 * Description: <b>The group identifier for the request group</b><br> 3588 * Type: <b>token</b><br> 3589 * Path: <b>RequestGroup.groupIdentifier</b><br> 3590 * </p> 3591 */ 3592 @SearchParamDefinition(name="group-identifier", path="RequestGroup.groupIdentifier", description="The group identifier for the request group", type="token" ) 3593 public static final String SP_GROUP_IDENTIFIER = "group-identifier"; 3594 /** 3595 * <b>Fluent Client</b> search parameter constant for <b>group-identifier</b> 3596 * <p> 3597 * Description: <b>The group identifier for the request group</b><br> 3598 * Type: <b>token</b><br> 3599 * Path: <b>RequestGroup.groupIdentifier</b><br> 3600 * </p> 3601 */ 3602 public static final ca.uhn.fhir.rest.gclient.TokenClientParam GROUP_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_GROUP_IDENTIFIER); 3603 3604 /** 3605 * Search parameter: <b>identifier</b> 3606 * <p> 3607 * Description: <b>External identifiers for the request group</b><br> 3608 * Type: <b>token</b><br> 3609 * Path: <b>RequestGroup.identifier</b><br> 3610 * </p> 3611 */ 3612 @SearchParamDefinition(name="identifier", path="RequestGroup.identifier", description="External identifiers for the request group", type="token" ) 3613 public static final String SP_IDENTIFIER = "identifier"; 3614 /** 3615 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 3616 * <p> 3617 * Description: <b>External identifiers for the request group</b><br> 3618 * Type: <b>token</b><br> 3619 * Path: <b>RequestGroup.identifier</b><br> 3620 * </p> 3621 */ 3622 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 3623 3624 /** 3625 * Search parameter: <b>instantiates-canonical</b> 3626 * <p> 3627 * Description: <b>The FHIR-based definition from which the request group is realized</b><br> 3628 * Type: <b>reference</b><br> 3629 * Path: <b>RequestGroup.instantiatesCanonical</b><br> 3630 * </p> 3631 */ 3632 @SearchParamDefinition(name="instantiates-canonical", path="RequestGroup.instantiatesCanonical", description="The FHIR-based definition from which the request group is realized", type="reference" ) 3633 public static final String SP_INSTANTIATES_CANONICAL = "instantiates-canonical"; 3634 /** 3635 * <b>Fluent Client</b> search parameter constant for <b>instantiates-canonical</b> 3636 * <p> 3637 * Description: <b>The FHIR-based definition from which the request group is realized</b><br> 3638 * Type: <b>reference</b><br> 3639 * Path: <b>RequestGroup.instantiatesCanonical</b><br> 3640 * </p> 3641 */ 3642 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam INSTANTIATES_CANONICAL = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_INSTANTIATES_CANONICAL); 3643 3644/** 3645 * Constant for fluent queries to be used to add include statements. Specifies 3646 * the path value of "<b>RequestGroup:instantiates-canonical</b>". 3647 */ 3648 public static final ca.uhn.fhir.model.api.Include INCLUDE_INSTANTIATES_CANONICAL = new ca.uhn.fhir.model.api.Include("RequestGroup:instantiates-canonical").toLocked(); 3649 3650 /** 3651 * Search parameter: <b>instantiates-uri</b> 3652 * <p> 3653 * Description: <b>The external definition from which the request group is realized</b><br> 3654 * Type: <b>uri</b><br> 3655 * Path: <b>RequestGroup.instantiatesUri</b><br> 3656 * </p> 3657 */ 3658 @SearchParamDefinition(name="instantiates-uri", path="RequestGroup.instantiatesUri", description="The external definition from which the request group is realized", type="uri" ) 3659 public static final String SP_INSTANTIATES_URI = "instantiates-uri"; 3660 /** 3661 * <b>Fluent Client</b> search parameter constant for <b>instantiates-uri</b> 3662 * <p> 3663 * Description: <b>The external definition from which the request group is realized</b><br> 3664 * Type: <b>uri</b><br> 3665 * Path: <b>RequestGroup.instantiatesUri</b><br> 3666 * </p> 3667 */ 3668 public static final ca.uhn.fhir.rest.gclient.UriClientParam INSTANTIATES_URI = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_INSTANTIATES_URI); 3669 3670 /** 3671 * Search parameter: <b>intent</b> 3672 * <p> 3673 * Description: <b>The intent of the request group</b><br> 3674 * Type: <b>token</b><br> 3675 * Path: <b>RequestGroup.intent</b><br> 3676 * </p> 3677 */ 3678 @SearchParamDefinition(name="intent", path="RequestGroup.intent", description="The intent of the request group", type="token" ) 3679 public static final String SP_INTENT = "intent"; 3680 /** 3681 * <b>Fluent Client</b> search parameter constant for <b>intent</b> 3682 * <p> 3683 * Description: <b>The intent of the request group</b><br> 3684 * Type: <b>token</b><br> 3685 * Path: <b>RequestGroup.intent</b><br> 3686 * </p> 3687 */ 3688 public static final ca.uhn.fhir.rest.gclient.TokenClientParam INTENT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_INTENT); 3689 3690 /** 3691 * Search parameter: <b>participant</b> 3692 * <p> 3693 * Description: <b>The participant in the requests in the group</b><br> 3694 * Type: <b>reference</b><br> 3695 * Path: <b>RequestGroup.action.participant</b><br> 3696 * </p> 3697 */ 3698 @SearchParamDefinition(name="participant", path="RequestGroup.action.participant", description="The participant in the requests in the group", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={Device.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) 3699 public static final String SP_PARTICIPANT = "participant"; 3700 /** 3701 * <b>Fluent Client</b> search parameter constant for <b>participant</b> 3702 * <p> 3703 * Description: <b>The participant in the requests in the group</b><br> 3704 * Type: <b>reference</b><br> 3705 * Path: <b>RequestGroup.action.participant</b><br> 3706 * </p> 3707 */ 3708 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PARTICIPANT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PARTICIPANT); 3709 3710/** 3711 * Constant for fluent queries to be used to add include statements. Specifies 3712 * the path value of "<b>RequestGroup:participant</b>". 3713 */ 3714 public static final ca.uhn.fhir.model.api.Include INCLUDE_PARTICIPANT = new ca.uhn.fhir.model.api.Include("RequestGroup:participant").toLocked(); 3715 3716 /** 3717 * Search parameter: <b>patient</b> 3718 * <p> 3719 * Description: <b>The identity of a patient to search for request groups</b><br> 3720 * Type: <b>reference</b><br> 3721 * Path: <b>RequestGroup.subject.where(resolve() is Patient)</b><br> 3722 * </p> 3723 */ 3724 @SearchParamDefinition(name="patient", path="RequestGroup.subject.where(resolve() is Patient)", description="The identity of a patient to search for request groups", type="reference", target={Patient.class } ) 3725 public static final String SP_PATIENT = "patient"; 3726 /** 3727 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 3728 * <p> 3729 * Description: <b>The identity of a patient to search for request groups</b><br> 3730 * Type: <b>reference</b><br> 3731 * Path: <b>RequestGroup.subject.where(resolve() is Patient)</b><br> 3732 * </p> 3733 */ 3734 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); 3735 3736/** 3737 * Constant for fluent queries to be used to add include statements. Specifies 3738 * the path value of "<b>RequestGroup:patient</b>". 3739 */ 3740 public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("RequestGroup:patient").toLocked(); 3741 3742 /** 3743 * Search parameter: <b>priority</b> 3744 * <p> 3745 * Description: <b>The priority of the request group</b><br> 3746 * Type: <b>token</b><br> 3747 * Path: <b>RequestGroup.priority</b><br> 3748 * </p> 3749 */ 3750 @SearchParamDefinition(name="priority", path="RequestGroup.priority", description="The priority of the request group", type="token" ) 3751 public static final String SP_PRIORITY = "priority"; 3752 /** 3753 * <b>Fluent Client</b> search parameter constant for <b>priority</b> 3754 * <p> 3755 * Description: <b>The priority of the request group</b><br> 3756 * Type: <b>token</b><br> 3757 * Path: <b>RequestGroup.priority</b><br> 3758 * </p> 3759 */ 3760 public static final ca.uhn.fhir.rest.gclient.TokenClientParam PRIORITY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PRIORITY); 3761 3762 /** 3763 * Search parameter: <b>status</b> 3764 * <p> 3765 * Description: <b>The status of the request group</b><br> 3766 * Type: <b>token</b><br> 3767 * Path: <b>RequestGroup.status</b><br> 3768 * </p> 3769 */ 3770 @SearchParamDefinition(name="status", path="RequestGroup.status", description="The status of the request group", type="token" ) 3771 public static final String SP_STATUS = "status"; 3772 /** 3773 * <b>Fluent Client</b> search parameter constant for <b>status</b> 3774 * <p> 3775 * Description: <b>The status of the request group</b><br> 3776 * Type: <b>token</b><br> 3777 * Path: <b>RequestGroup.status</b><br> 3778 * </p> 3779 */ 3780 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 3781 3782 /** 3783 * Search parameter: <b>subject</b> 3784 * <p> 3785 * Description: <b>The subject that the request group is about</b><br> 3786 * Type: <b>reference</b><br> 3787 * Path: <b>RequestGroup.subject</b><br> 3788 * </p> 3789 */ 3790 @SearchParamDefinition(name="subject", path="RequestGroup.subject", description="The subject that the request group is about", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) 3791 public static final String SP_SUBJECT = "subject"; 3792 /** 3793 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 3794 * <p> 3795 * Description: <b>The subject that the request group is about</b><br> 3796 * Type: <b>reference</b><br> 3797 * Path: <b>RequestGroup.subject</b><br> 3798 * </p> 3799 */ 3800 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); 3801 3802/** 3803 * Constant for fluent queries to be used to add include statements. Specifies 3804 * the path value of "<b>RequestGroup:subject</b>". 3805 */ 3806 public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("RequestGroup:subject").toLocked(); 3807 3808 3809} 3810