001package org.hl7.fhir.dstu3.model; 002 003/* 004 Copyright (c) 2011+, HL7, Inc. 005 All rights reserved. 006 007 Redistribution and use in source and binary forms, with or without modification, 008 are permitted provided that the following conditions are met: 009 010 * Redistributions of source code must retain the above copyright notice, this 011 list of conditions and the following disclaimer. 012 * Redistributions in binary form must reproduce the above copyright notice, 013 this list of conditions and the following disclaimer in the documentation 014 and/or other materials provided with the distribution. 015 * Neither the name of HL7 nor the names of its contributors may be used to 016 endorse or promote products derived from this software without specific 017 prior written permission. 018 019 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 020 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 021 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 022 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 023 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 024 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 025 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 026 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 027 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 028 POSSIBILITY OF SUCH DAMAGE. 029 030*/ 031 032// Generated on Fri, Mar 16, 2018 15:21+1100 for FHIR v3.0.1 033 034import java.util.*; 035 036import org.hl7.fhir.utilities.Utilities; 037import ca.uhn.fhir.model.api.annotation.ResourceDef; 038import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 039import ca.uhn.fhir.model.api.annotation.Child; 040import ca.uhn.fhir.model.api.annotation.ChildOrder; 041import ca.uhn.fhir.model.api.annotation.Description; 042import ca.uhn.fhir.model.api.annotation.Block; 043import org.hl7.fhir.instance.model.api.*; 044import org.hl7.fhir.exceptions.FHIRException; 045import org.hl7.fhir.exceptions.FHIRFormatError; 046/** 047 * A set of information summarized from a list of other resources. 048 */ 049@ResourceDef(name="List", profile="http://hl7.org/fhir/StructureDefinition/ListResource") 050public class ListResource extends DomainResource { 051 052 public enum ListStatus { 053 /** 054 * The list is considered to be an active part of the patient's record. 055 */ 056 CURRENT, 057 /** 058 * The list is "old" and should no longer be considered accurate or relevant. 059 */ 060 RETIRED, 061 /** 062 * The list was never accurate. It is retained for medico-legal purposes only. 063 */ 064 ENTEREDINERROR, 065 /** 066 * added to help the parsers with the generic types 067 */ 068 NULL; 069 public static ListStatus fromCode(String codeString) throws FHIRException { 070 if (codeString == null || "".equals(codeString)) 071 return null; 072 if ("current".equals(codeString)) 073 return CURRENT; 074 if ("retired".equals(codeString)) 075 return RETIRED; 076 if ("entered-in-error".equals(codeString)) 077 return ENTEREDINERROR; 078 if (Configuration.isAcceptInvalidEnums()) 079 return null; 080 else 081 throw new FHIRException("Unknown ListStatus code '"+codeString+"'"); 082 } 083 public String toCode() { 084 switch (this) { 085 case CURRENT: return "current"; 086 case RETIRED: return "retired"; 087 case ENTEREDINERROR: return "entered-in-error"; 088 default: return "?"; 089 } 090 } 091 public String getSystem() { 092 switch (this) { 093 case CURRENT: return "http://hl7.org/fhir/list-status"; 094 case RETIRED: return "http://hl7.org/fhir/list-status"; 095 case ENTEREDINERROR: return "http://hl7.org/fhir/list-status"; 096 default: return "?"; 097 } 098 } 099 public String getDefinition() { 100 switch (this) { 101 case CURRENT: return "The list is considered to be an active part of the patient's record."; 102 case RETIRED: return "The list is \"old\" and should no longer be considered accurate or relevant."; 103 case ENTEREDINERROR: return "The list was never accurate. It is retained for medico-legal purposes only."; 104 default: return "?"; 105 } 106 } 107 public String getDisplay() { 108 switch (this) { 109 case CURRENT: return "Current"; 110 case RETIRED: return "Retired"; 111 case ENTEREDINERROR: return "Entered In Error"; 112 default: return "?"; 113 } 114 } 115 } 116 117 public static class ListStatusEnumFactory implements EnumFactory<ListStatus> { 118 public ListStatus fromCode(String codeString) throws IllegalArgumentException { 119 if (codeString == null || "".equals(codeString)) 120 if (codeString == null || "".equals(codeString)) 121 return null; 122 if ("current".equals(codeString)) 123 return ListStatus.CURRENT; 124 if ("retired".equals(codeString)) 125 return ListStatus.RETIRED; 126 if ("entered-in-error".equals(codeString)) 127 return ListStatus.ENTEREDINERROR; 128 throw new IllegalArgumentException("Unknown ListStatus code '"+codeString+"'"); 129 } 130 public Enumeration<ListStatus> fromType(Base code) throws FHIRException { 131 if (code == null) 132 return null; 133 if (code.isEmpty()) 134 return new Enumeration<ListStatus>(this); 135 String codeString = ((PrimitiveType) code).asStringValue(); 136 if (codeString == null || "".equals(codeString)) 137 return null; 138 if ("current".equals(codeString)) 139 return new Enumeration<ListStatus>(this, ListStatus.CURRENT); 140 if ("retired".equals(codeString)) 141 return new Enumeration<ListStatus>(this, ListStatus.RETIRED); 142 if ("entered-in-error".equals(codeString)) 143 return new Enumeration<ListStatus>(this, ListStatus.ENTEREDINERROR); 144 throw new FHIRException("Unknown ListStatus code '"+codeString+"'"); 145 } 146 public String toCode(ListStatus code) { 147 if (code == ListStatus.CURRENT) 148 return "current"; 149 if (code == ListStatus.RETIRED) 150 return "retired"; 151 if (code == ListStatus.ENTEREDINERROR) 152 return "entered-in-error"; 153 return "?"; 154 } 155 public String toSystem(ListStatus code) { 156 return code.getSystem(); 157 } 158 } 159 160 public enum ListMode { 161 /** 162 * This list is the master list, maintained in an ongoing fashion with regular updates as the real world list it is tracking changes 163 */ 164 WORKING, 165 /** 166 * This list was prepared as a snapshot. It should not be assumed to be current 167 */ 168 SNAPSHOT, 169 /** 170 * A list that indicates where changes have been made or recommended 171 */ 172 CHANGES, 173 /** 174 * added to help the parsers with the generic types 175 */ 176 NULL; 177 public static ListMode fromCode(String codeString) throws FHIRException { 178 if (codeString == null || "".equals(codeString)) 179 return null; 180 if ("working".equals(codeString)) 181 return WORKING; 182 if ("snapshot".equals(codeString)) 183 return SNAPSHOT; 184 if ("changes".equals(codeString)) 185 return CHANGES; 186 if (Configuration.isAcceptInvalidEnums()) 187 return null; 188 else 189 throw new FHIRException("Unknown ListMode code '"+codeString+"'"); 190 } 191 public String toCode() { 192 switch (this) { 193 case WORKING: return "working"; 194 case SNAPSHOT: return "snapshot"; 195 case CHANGES: return "changes"; 196 default: return "?"; 197 } 198 } 199 public String getSystem() { 200 switch (this) { 201 case WORKING: return "http://hl7.org/fhir/list-mode"; 202 case SNAPSHOT: return "http://hl7.org/fhir/list-mode"; 203 case CHANGES: return "http://hl7.org/fhir/list-mode"; 204 default: return "?"; 205 } 206 } 207 public String getDefinition() { 208 switch (this) { 209 case WORKING: return "This list is the master list, maintained in an ongoing fashion with regular updates as the real world list it is tracking changes"; 210 case SNAPSHOT: return "This list was prepared as a snapshot. It should not be assumed to be current"; 211 case CHANGES: return "A list that indicates where changes have been made or recommended"; 212 default: return "?"; 213 } 214 } 215 public String getDisplay() { 216 switch (this) { 217 case WORKING: return "Working List"; 218 case SNAPSHOT: return "Snapshot List"; 219 case CHANGES: return "Change List"; 220 default: return "?"; 221 } 222 } 223 } 224 225 public static class ListModeEnumFactory implements EnumFactory<ListMode> { 226 public ListMode fromCode(String codeString) throws IllegalArgumentException { 227 if (codeString == null || "".equals(codeString)) 228 if (codeString == null || "".equals(codeString)) 229 return null; 230 if ("working".equals(codeString)) 231 return ListMode.WORKING; 232 if ("snapshot".equals(codeString)) 233 return ListMode.SNAPSHOT; 234 if ("changes".equals(codeString)) 235 return ListMode.CHANGES; 236 throw new IllegalArgumentException("Unknown ListMode code '"+codeString+"'"); 237 } 238 public Enumeration<ListMode> fromType(Base code) throws FHIRException { 239 if (code == null) 240 return null; 241 if (code.isEmpty()) 242 return new Enumeration<ListMode>(this); 243 String codeString = ((PrimitiveType) code).asStringValue(); 244 if (codeString == null || "".equals(codeString)) 245 return null; 246 if ("working".equals(codeString)) 247 return new Enumeration<ListMode>(this, ListMode.WORKING); 248 if ("snapshot".equals(codeString)) 249 return new Enumeration<ListMode>(this, ListMode.SNAPSHOT); 250 if ("changes".equals(codeString)) 251 return new Enumeration<ListMode>(this, ListMode.CHANGES); 252 throw new FHIRException("Unknown ListMode code '"+codeString+"'"); 253 } 254 public String toCode(ListMode code) { 255 if (code == ListMode.WORKING) 256 return "working"; 257 if (code == ListMode.SNAPSHOT) 258 return "snapshot"; 259 if (code == ListMode.CHANGES) 260 return "changes"; 261 return "?"; 262 } 263 public String toSystem(ListMode code) { 264 return code.getSystem(); 265 } 266 } 267 268 @Block() 269 public static class ListEntryComponent extends BackboneElement implements IBaseBackboneElement { 270 /** 271 * The flag allows the system constructing the list to indicate the role and significance of the item in the list. 272 */ 273 @Child(name = "flag", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) 274 @Description(shortDefinition="Status/Workflow information about this item", formalDefinition="The flag allows the system constructing the list to indicate the role and significance of the item in the list." ) 275 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/list-item-flag") 276 protected CodeableConcept flag; 277 278 /** 279 * True if this item is marked as deleted in the list. 280 */ 281 @Child(name = "deleted", type = {BooleanType.class}, order=2, min=0, max=1, modifier=true, summary=false) 282 @Description(shortDefinition="If this item is actually marked as deleted", formalDefinition="True if this item is marked as deleted in the list." ) 283 protected BooleanType deleted; 284 285 /** 286 * When this item was added to the list. 287 */ 288 @Child(name = "date", type = {DateTimeType.class}, order=3, min=0, max=1, modifier=false, summary=false) 289 @Description(shortDefinition="When item added to list", formalDefinition="When this item was added to the list." ) 290 protected DateTimeType date; 291 292 /** 293 * A reference to the actual resource from which data was derived. 294 */ 295 @Child(name = "item", type = {Reference.class}, order=4, min=1, max=1, modifier=false, summary=false) 296 @Description(shortDefinition="Actual entry", formalDefinition="A reference to the actual resource from which data was derived." ) 297 protected Reference item; 298 299 /** 300 * The actual object that is the target of the reference (A reference to the actual resource from which data was derived.) 301 */ 302 protected Resource itemTarget; 303 304 private static final long serialVersionUID = -758164425L; 305 306 /** 307 * Constructor 308 */ 309 public ListEntryComponent() { 310 super(); 311 } 312 313 /** 314 * Constructor 315 */ 316 public ListEntryComponent(Reference item) { 317 super(); 318 this.item = item; 319 } 320 321 /** 322 * @return {@link #flag} (The flag allows the system constructing the list to indicate the role and significance of the item in the list.) 323 */ 324 public CodeableConcept getFlag() { 325 if (this.flag == null) 326 if (Configuration.errorOnAutoCreate()) 327 throw new Error("Attempt to auto-create ListEntryComponent.flag"); 328 else if (Configuration.doAutoCreate()) 329 this.flag = new CodeableConcept(); // cc 330 return this.flag; 331 } 332 333 public boolean hasFlag() { 334 return this.flag != null && !this.flag.isEmpty(); 335 } 336 337 /** 338 * @param value {@link #flag} (The flag allows the system constructing the list to indicate the role and significance of the item in the list.) 339 */ 340 public ListEntryComponent setFlag(CodeableConcept value) { 341 this.flag = value; 342 return this; 343 } 344 345 /** 346 * @return {@link #deleted} (True if this item is marked as deleted in the list.). This is the underlying object with id, value and extensions. The accessor "getDeleted" gives direct access to the value 347 */ 348 public BooleanType getDeletedElement() { 349 if (this.deleted == null) 350 if (Configuration.errorOnAutoCreate()) 351 throw new Error("Attempt to auto-create ListEntryComponent.deleted"); 352 else if (Configuration.doAutoCreate()) 353 this.deleted = new BooleanType(); // bb 354 return this.deleted; 355 } 356 357 public boolean hasDeletedElement() { 358 return this.deleted != null && !this.deleted.isEmpty(); 359 } 360 361 public boolean hasDeleted() { 362 return this.deleted != null && !this.deleted.isEmpty(); 363 } 364 365 /** 366 * @param value {@link #deleted} (True if this item is marked as deleted in the list.). This is the underlying object with id, value and extensions. The accessor "getDeleted" gives direct access to the value 367 */ 368 public ListEntryComponent setDeletedElement(BooleanType value) { 369 this.deleted = value; 370 return this; 371 } 372 373 /** 374 * @return True if this item is marked as deleted in the list. 375 */ 376 public boolean getDeleted() { 377 return this.deleted == null || this.deleted.isEmpty() ? false : this.deleted.getValue(); 378 } 379 380 /** 381 * @param value True if this item is marked as deleted in the list. 382 */ 383 public ListEntryComponent setDeleted(boolean value) { 384 if (this.deleted == null) 385 this.deleted = new BooleanType(); 386 this.deleted.setValue(value); 387 return this; 388 } 389 390 /** 391 * @return {@link #date} (When this item was added to the list.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 392 */ 393 public DateTimeType getDateElement() { 394 if (this.date == null) 395 if (Configuration.errorOnAutoCreate()) 396 throw new Error("Attempt to auto-create ListEntryComponent.date"); 397 else if (Configuration.doAutoCreate()) 398 this.date = new DateTimeType(); // bb 399 return this.date; 400 } 401 402 public boolean hasDateElement() { 403 return this.date != null && !this.date.isEmpty(); 404 } 405 406 public boolean hasDate() { 407 return this.date != null && !this.date.isEmpty(); 408 } 409 410 /** 411 * @param value {@link #date} (When this item was added to the list.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 412 */ 413 public ListEntryComponent setDateElement(DateTimeType value) { 414 this.date = value; 415 return this; 416 } 417 418 /** 419 * @return When this item was added to the list. 420 */ 421 public Date getDate() { 422 return this.date == null ? null : this.date.getValue(); 423 } 424 425 /** 426 * @param value When this item was added to the list. 427 */ 428 public ListEntryComponent setDate(Date value) { 429 if (value == null) 430 this.date = null; 431 else { 432 if (this.date == null) 433 this.date = new DateTimeType(); 434 this.date.setValue(value); 435 } 436 return this; 437 } 438 439 /** 440 * @return {@link #item} (A reference to the actual resource from which data was derived.) 441 */ 442 public Reference getItem() { 443 if (this.item == null) 444 if (Configuration.errorOnAutoCreate()) 445 throw new Error("Attempt to auto-create ListEntryComponent.item"); 446 else if (Configuration.doAutoCreate()) 447 this.item = new Reference(); // cc 448 return this.item; 449 } 450 451 public boolean hasItem() { 452 return this.item != null && !this.item.isEmpty(); 453 } 454 455 /** 456 * @param value {@link #item} (A reference to the actual resource from which data was derived.) 457 */ 458 public ListEntryComponent setItem(Reference value) { 459 this.item = value; 460 return this; 461 } 462 463 /** 464 * @return {@link #item} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (A reference to the actual resource from which data was derived.) 465 */ 466 public Resource getItemTarget() { 467 return this.itemTarget; 468 } 469 470 /** 471 * @param value {@link #item} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (A reference to the actual resource from which data was derived.) 472 */ 473 public ListEntryComponent setItemTarget(Resource value) { 474 this.itemTarget = value; 475 return this; 476 } 477 478 protected void listChildren(List<Property> children) { 479 super.listChildren(children); 480 children.add(new Property("flag", "CodeableConcept", "The flag allows the system constructing the list to indicate the role and significance of the item in the list.", 0, 1, flag)); 481 children.add(new Property("deleted", "boolean", "True if this item is marked as deleted in the list.", 0, 1, deleted)); 482 children.add(new Property("date", "dateTime", "When this item was added to the list.", 0, 1, date)); 483 children.add(new Property("item", "Reference(Any)", "A reference to the actual resource from which data was derived.", 0, 1, item)); 484 } 485 486 @Override 487 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 488 switch (_hash) { 489 case 3145580: /*flag*/ return new Property("flag", "CodeableConcept", "The flag allows the system constructing the list to indicate the role and significance of the item in the list.", 0, 1, flag); 490 case 1550463001: /*deleted*/ return new Property("deleted", "boolean", "True if this item is marked as deleted in the list.", 0, 1, deleted); 491 case 3076014: /*date*/ return new Property("date", "dateTime", "When this item was added to the list.", 0, 1, date); 492 case 3242771: /*item*/ return new Property("item", "Reference(Any)", "A reference to the actual resource from which data was derived.", 0, 1, item); 493 default: return super.getNamedProperty(_hash, _name, _checkValid); 494 } 495 496 } 497 498 @Override 499 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 500 switch (hash) { 501 case 3145580: /*flag*/ return this.flag == null ? new Base[0] : new Base[] {this.flag}; // CodeableConcept 502 case 1550463001: /*deleted*/ return this.deleted == null ? new Base[0] : new Base[] {this.deleted}; // BooleanType 503 case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType 504 case 3242771: /*item*/ return this.item == null ? new Base[0] : new Base[] {this.item}; // Reference 505 default: return super.getProperty(hash, name, checkValid); 506 } 507 508 } 509 510 @Override 511 public Base setProperty(int hash, String name, Base value) throws FHIRException { 512 switch (hash) { 513 case 3145580: // flag 514 this.flag = castToCodeableConcept(value); // CodeableConcept 515 return value; 516 case 1550463001: // deleted 517 this.deleted = castToBoolean(value); // BooleanType 518 return value; 519 case 3076014: // date 520 this.date = castToDateTime(value); // DateTimeType 521 return value; 522 case 3242771: // item 523 this.item = castToReference(value); // Reference 524 return value; 525 default: return super.setProperty(hash, name, value); 526 } 527 528 } 529 530 @Override 531 public Base setProperty(String name, Base value) throws FHIRException { 532 if (name.equals("flag")) { 533 this.flag = castToCodeableConcept(value); // CodeableConcept 534 } else if (name.equals("deleted")) { 535 this.deleted = castToBoolean(value); // BooleanType 536 } else if (name.equals("date")) { 537 this.date = castToDateTime(value); // DateTimeType 538 } else if (name.equals("item")) { 539 this.item = castToReference(value); // Reference 540 } else 541 return super.setProperty(name, value); 542 return value; 543 } 544 545 @Override 546 public Base makeProperty(int hash, String name) throws FHIRException { 547 switch (hash) { 548 case 3145580: return getFlag(); 549 case 1550463001: return getDeletedElement(); 550 case 3076014: return getDateElement(); 551 case 3242771: return getItem(); 552 default: return super.makeProperty(hash, name); 553 } 554 555 } 556 557 @Override 558 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 559 switch (hash) { 560 case 3145580: /*flag*/ return new String[] {"CodeableConcept"}; 561 case 1550463001: /*deleted*/ return new String[] {"boolean"}; 562 case 3076014: /*date*/ return new String[] {"dateTime"}; 563 case 3242771: /*item*/ return new String[] {"Reference"}; 564 default: return super.getTypesForProperty(hash, name); 565 } 566 567 } 568 569 @Override 570 public Base addChild(String name) throws FHIRException { 571 if (name.equals("flag")) { 572 this.flag = new CodeableConcept(); 573 return this.flag; 574 } 575 else if (name.equals("deleted")) { 576 throw new FHIRException("Cannot call addChild on a primitive type ListResource.deleted"); 577 } 578 else if (name.equals("date")) { 579 throw new FHIRException("Cannot call addChild on a primitive type ListResource.date"); 580 } 581 else if (name.equals("item")) { 582 this.item = new Reference(); 583 return this.item; 584 } 585 else 586 return super.addChild(name); 587 } 588 589 public ListEntryComponent copy() { 590 ListEntryComponent dst = new ListEntryComponent(); 591 copyValues(dst); 592 dst.flag = flag == null ? null : flag.copy(); 593 dst.deleted = deleted == null ? null : deleted.copy(); 594 dst.date = date == null ? null : date.copy(); 595 dst.item = item == null ? null : item.copy(); 596 return dst; 597 } 598 599 @Override 600 public boolean equalsDeep(Base other_) { 601 if (!super.equalsDeep(other_)) 602 return false; 603 if (!(other_ instanceof ListEntryComponent)) 604 return false; 605 ListEntryComponent o = (ListEntryComponent) other_; 606 return compareDeep(flag, o.flag, true) && compareDeep(deleted, o.deleted, true) && compareDeep(date, o.date, true) 607 && compareDeep(item, o.item, true); 608 } 609 610 @Override 611 public boolean equalsShallow(Base other_) { 612 if (!super.equalsShallow(other_)) 613 return false; 614 if (!(other_ instanceof ListEntryComponent)) 615 return false; 616 ListEntryComponent o = (ListEntryComponent) other_; 617 return compareValues(deleted, o.deleted, true) && compareValues(date, o.date, true); 618 } 619 620 public boolean isEmpty() { 621 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(flag, deleted, date, item 622 ); 623 } 624 625 public String fhirType() { 626 return "List.entry"; 627 628 } 629 630 } 631 632 /** 633 * Identifier for the List assigned for business purposes outside the context of FHIR. 634 */ 635 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 636 @Description(shortDefinition="Business identifier", formalDefinition="Identifier for the List assigned for business purposes outside the context of FHIR." ) 637 protected List<Identifier> identifier; 638 639 /** 640 * Indicates the current state of this list. 641 */ 642 @Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true) 643 @Description(shortDefinition="current | retired | entered-in-error", formalDefinition="Indicates the current state of this list." ) 644 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/list-status") 645 protected Enumeration<ListStatus> status; 646 647 /** 648 * How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted. 649 */ 650 @Child(name = "mode", type = {CodeType.class}, order=2, min=1, max=1, modifier=true, summary=true) 651 @Description(shortDefinition="working | snapshot | changes", formalDefinition="How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted." ) 652 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/list-mode") 653 protected Enumeration<ListMode> mode; 654 655 /** 656 * A label for the list assigned by the author. 657 */ 658 @Child(name = "title", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true) 659 @Description(shortDefinition="Descriptive name for the list", formalDefinition="A label for the list assigned by the author." ) 660 protected StringType title; 661 662 /** 663 * This code defines the purpose of the list - why it was created. 664 */ 665 @Child(name = "code", type = {CodeableConcept.class}, order=4, min=0, max=1, modifier=false, summary=true) 666 @Description(shortDefinition="What the purpose of this list is", formalDefinition="This code defines the purpose of the list - why it was created." ) 667 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/list-example-codes") 668 protected CodeableConcept code; 669 670 /** 671 * The common subject (or patient) of the resources that are in the list, if there is one. 672 */ 673 @Child(name = "subject", type = {Patient.class, Group.class, Device.class, Location.class}, order=5, min=0, max=1, modifier=false, summary=true) 674 @Description(shortDefinition="If all resources have the same subject", formalDefinition="The common subject (or patient) of the resources that are in the list, if there is one." ) 675 protected Reference subject; 676 677 /** 678 * The actual object that is the target of the reference (The common subject (or patient) of the resources that are in the list, if there is one.) 679 */ 680 protected Resource subjectTarget; 681 682 /** 683 * The encounter that is the context in which this list was created. 684 */ 685 @Child(name = "encounter", type = {Encounter.class}, order=6, min=0, max=1, modifier=false, summary=false) 686 @Description(shortDefinition="Context in which list created", formalDefinition="The encounter that is the context in which this list was created." ) 687 protected Reference encounter; 688 689 /** 690 * The actual object that is the target of the reference (The encounter that is the context in which this list was created.) 691 */ 692 protected Encounter encounterTarget; 693 694 /** 695 * The date that the list was prepared. 696 */ 697 @Child(name = "date", type = {DateTimeType.class}, order=7, min=0, max=1, modifier=false, summary=true) 698 @Description(shortDefinition="When the list was prepared", formalDefinition="The date that the list was prepared." ) 699 protected DateTimeType date; 700 701 /** 702 * The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list. 703 */ 704 @Child(name = "source", type = {Practitioner.class, Patient.class, Device.class}, order=8, min=0, max=1, modifier=false, summary=true) 705 @Description(shortDefinition="Who and/or what defined the list contents (aka Author)", formalDefinition="The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list." ) 706 protected Reference source; 707 708 /** 709 * The actual object that is the target of the reference (The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list.) 710 */ 711 protected Resource sourceTarget; 712 713 /** 714 * What order applies to the items in the list. 715 */ 716 @Child(name = "orderedBy", type = {CodeableConcept.class}, order=9, min=0, max=1, modifier=false, summary=false) 717 @Description(shortDefinition="What order the list has", formalDefinition="What order applies to the items in the list." ) 718 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/list-order") 719 protected CodeableConcept orderedBy; 720 721 /** 722 * Comments that apply to the overall list. 723 */ 724 @Child(name = "note", type = {Annotation.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 725 @Description(shortDefinition="Comments about the list", formalDefinition="Comments that apply to the overall list." ) 726 protected List<Annotation> note; 727 728 /** 729 * Entries in this list. 730 */ 731 @Child(name = "entry", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 732 @Description(shortDefinition="Entries in the list", formalDefinition="Entries in this list." ) 733 protected List<ListEntryComponent> entry; 734 735 /** 736 * If the list is empty, why the list is empty. 737 */ 738 @Child(name = "emptyReason", type = {CodeableConcept.class}, order=12, min=0, max=1, modifier=false, summary=false) 739 @Description(shortDefinition="Why list is empty", formalDefinition="If the list is empty, why the list is empty." ) 740 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/list-empty-reason") 741 protected CodeableConcept emptyReason; 742 743 private static final long serialVersionUID = 2071342704L; 744 745 /** 746 * Constructor 747 */ 748 public ListResource() { 749 super(); 750 } 751 752 /** 753 * Constructor 754 */ 755 public ListResource(Enumeration<ListStatus> status, Enumeration<ListMode> mode) { 756 super(); 757 this.status = status; 758 this.mode = mode; 759 } 760 761 /** 762 * @return {@link #identifier} (Identifier for the List assigned for business purposes outside the context of FHIR.) 763 */ 764 public List<Identifier> getIdentifier() { 765 if (this.identifier == null) 766 this.identifier = new ArrayList<Identifier>(); 767 return this.identifier; 768 } 769 770 /** 771 * @return Returns a reference to <code>this</code> for easy method chaining 772 */ 773 public ListResource setIdentifier(List<Identifier> theIdentifier) { 774 this.identifier = theIdentifier; 775 return this; 776 } 777 778 public boolean hasIdentifier() { 779 if (this.identifier == null) 780 return false; 781 for (Identifier item : this.identifier) 782 if (!item.isEmpty()) 783 return true; 784 return false; 785 } 786 787 public Identifier addIdentifier() { //3 788 Identifier t = new Identifier(); 789 if (this.identifier == null) 790 this.identifier = new ArrayList<Identifier>(); 791 this.identifier.add(t); 792 return t; 793 } 794 795 public ListResource addIdentifier(Identifier t) { //3 796 if (t == null) 797 return this; 798 if (this.identifier == null) 799 this.identifier = new ArrayList<Identifier>(); 800 this.identifier.add(t); 801 return this; 802 } 803 804 /** 805 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist 806 */ 807 public Identifier getIdentifierFirstRep() { 808 if (getIdentifier().isEmpty()) { 809 addIdentifier(); 810 } 811 return getIdentifier().get(0); 812 } 813 814 /** 815 * @return {@link #status} (Indicates the current state of this list.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 816 */ 817 public Enumeration<ListStatus> getStatusElement() { 818 if (this.status == null) 819 if (Configuration.errorOnAutoCreate()) 820 throw new Error("Attempt to auto-create ListResource.status"); 821 else if (Configuration.doAutoCreate()) 822 this.status = new Enumeration<ListStatus>(new ListStatusEnumFactory()); // bb 823 return this.status; 824 } 825 826 public boolean hasStatusElement() { 827 return this.status != null && !this.status.isEmpty(); 828 } 829 830 public boolean hasStatus() { 831 return this.status != null && !this.status.isEmpty(); 832 } 833 834 /** 835 * @param value {@link #status} (Indicates the current state of this list.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 836 */ 837 public ListResource setStatusElement(Enumeration<ListStatus> value) { 838 this.status = value; 839 return this; 840 } 841 842 /** 843 * @return Indicates the current state of this list. 844 */ 845 public ListStatus getStatus() { 846 return this.status == null ? null : this.status.getValue(); 847 } 848 849 /** 850 * @param value Indicates the current state of this list. 851 */ 852 public ListResource setStatus(ListStatus value) { 853 if (this.status == null) 854 this.status = new Enumeration<ListStatus>(new ListStatusEnumFactory()); 855 this.status.setValue(value); 856 return this; 857 } 858 859 /** 860 * @return {@link #mode} (How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.). This is the underlying object with id, value and extensions. The accessor "getMode" gives direct access to the value 861 */ 862 public Enumeration<ListMode> getModeElement() { 863 if (this.mode == null) 864 if (Configuration.errorOnAutoCreate()) 865 throw new Error("Attempt to auto-create ListResource.mode"); 866 else if (Configuration.doAutoCreate()) 867 this.mode = new Enumeration<ListMode>(new ListModeEnumFactory()); // bb 868 return this.mode; 869 } 870 871 public boolean hasModeElement() { 872 return this.mode != null && !this.mode.isEmpty(); 873 } 874 875 public boolean hasMode() { 876 return this.mode != null && !this.mode.isEmpty(); 877 } 878 879 /** 880 * @param value {@link #mode} (How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.). This is the underlying object with id, value and extensions. The accessor "getMode" gives direct access to the value 881 */ 882 public ListResource setModeElement(Enumeration<ListMode> value) { 883 this.mode = value; 884 return this; 885 } 886 887 /** 888 * @return How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted. 889 */ 890 public ListMode getMode() { 891 return this.mode == null ? null : this.mode.getValue(); 892 } 893 894 /** 895 * @param value How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted. 896 */ 897 public ListResource setMode(ListMode value) { 898 if (this.mode == null) 899 this.mode = new Enumeration<ListMode>(new ListModeEnumFactory()); 900 this.mode.setValue(value); 901 return this; 902 } 903 904 /** 905 * @return {@link #title} (A label for the list assigned by the author.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value 906 */ 907 public StringType getTitleElement() { 908 if (this.title == null) 909 if (Configuration.errorOnAutoCreate()) 910 throw new Error("Attempt to auto-create ListResource.title"); 911 else if (Configuration.doAutoCreate()) 912 this.title = new StringType(); // bb 913 return this.title; 914 } 915 916 public boolean hasTitleElement() { 917 return this.title != null && !this.title.isEmpty(); 918 } 919 920 public boolean hasTitle() { 921 return this.title != null && !this.title.isEmpty(); 922 } 923 924 /** 925 * @param value {@link #title} (A label for the list assigned by the author.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value 926 */ 927 public ListResource setTitleElement(StringType value) { 928 this.title = value; 929 return this; 930 } 931 932 /** 933 * @return A label for the list assigned by the author. 934 */ 935 public String getTitle() { 936 return this.title == null ? null : this.title.getValue(); 937 } 938 939 /** 940 * @param value A label for the list assigned by the author. 941 */ 942 public ListResource setTitle(String value) { 943 if (Utilities.noString(value)) 944 this.title = null; 945 else { 946 if (this.title == null) 947 this.title = new StringType(); 948 this.title.setValue(value); 949 } 950 return this; 951 } 952 953 /** 954 * @return {@link #code} (This code defines the purpose of the list - why it was created.) 955 */ 956 public CodeableConcept getCode() { 957 if (this.code == null) 958 if (Configuration.errorOnAutoCreate()) 959 throw new Error("Attempt to auto-create ListResource.code"); 960 else if (Configuration.doAutoCreate()) 961 this.code = new CodeableConcept(); // cc 962 return this.code; 963 } 964 965 public boolean hasCode() { 966 return this.code != null && !this.code.isEmpty(); 967 } 968 969 /** 970 * @param value {@link #code} (This code defines the purpose of the list - why it was created.) 971 */ 972 public ListResource setCode(CodeableConcept value) { 973 this.code = value; 974 return this; 975 } 976 977 /** 978 * @return {@link #subject} (The common subject (or patient) of the resources that are in the list, if there is one.) 979 */ 980 public Reference getSubject() { 981 if (this.subject == null) 982 if (Configuration.errorOnAutoCreate()) 983 throw new Error("Attempt to auto-create ListResource.subject"); 984 else if (Configuration.doAutoCreate()) 985 this.subject = new Reference(); // cc 986 return this.subject; 987 } 988 989 public boolean hasSubject() { 990 return this.subject != null && !this.subject.isEmpty(); 991 } 992 993 /** 994 * @param value {@link #subject} (The common subject (or patient) of the resources that are in the list, if there is one.) 995 */ 996 public ListResource setSubject(Reference value) { 997 this.subject = value; 998 return this; 999 } 1000 1001 /** 1002 * @return {@link #subject} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The common subject (or patient) of the resources that are in the list, if there is one.) 1003 */ 1004 public Resource getSubjectTarget() { 1005 return this.subjectTarget; 1006 } 1007 1008 /** 1009 * @param value {@link #subject} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The common subject (or patient) of the resources that are in the list, if there is one.) 1010 */ 1011 public ListResource setSubjectTarget(Resource value) { 1012 this.subjectTarget = value; 1013 return this; 1014 } 1015 1016 /** 1017 * @return {@link #encounter} (The encounter that is the context in which this list was created.) 1018 */ 1019 public Reference getEncounter() { 1020 if (this.encounter == null) 1021 if (Configuration.errorOnAutoCreate()) 1022 throw new Error("Attempt to auto-create ListResource.encounter"); 1023 else if (Configuration.doAutoCreate()) 1024 this.encounter = new Reference(); // cc 1025 return this.encounter; 1026 } 1027 1028 public boolean hasEncounter() { 1029 return this.encounter != null && !this.encounter.isEmpty(); 1030 } 1031 1032 /** 1033 * @param value {@link #encounter} (The encounter that is the context in which this list was created.) 1034 */ 1035 public ListResource setEncounter(Reference value) { 1036 this.encounter = value; 1037 return this; 1038 } 1039 1040 /** 1041 * @return {@link #encounter} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The encounter that is the context in which this list was created.) 1042 */ 1043 public Encounter getEncounterTarget() { 1044 if (this.encounterTarget == null) 1045 if (Configuration.errorOnAutoCreate()) 1046 throw new Error("Attempt to auto-create ListResource.encounter"); 1047 else if (Configuration.doAutoCreate()) 1048 this.encounterTarget = new Encounter(); // aa 1049 return this.encounterTarget; 1050 } 1051 1052 /** 1053 * @param value {@link #encounter} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The encounter that is the context in which this list was created.) 1054 */ 1055 public ListResource setEncounterTarget(Encounter value) { 1056 this.encounterTarget = value; 1057 return this; 1058 } 1059 1060 /** 1061 * @return {@link #date} (The date that the list was prepared.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 1062 */ 1063 public DateTimeType getDateElement() { 1064 if (this.date == null) 1065 if (Configuration.errorOnAutoCreate()) 1066 throw new Error("Attempt to auto-create ListResource.date"); 1067 else if (Configuration.doAutoCreate()) 1068 this.date = new DateTimeType(); // bb 1069 return this.date; 1070 } 1071 1072 public boolean hasDateElement() { 1073 return this.date != null && !this.date.isEmpty(); 1074 } 1075 1076 public boolean hasDate() { 1077 return this.date != null && !this.date.isEmpty(); 1078 } 1079 1080 /** 1081 * @param value {@link #date} (The date that the list was prepared.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 1082 */ 1083 public ListResource setDateElement(DateTimeType value) { 1084 this.date = value; 1085 return this; 1086 } 1087 1088 /** 1089 * @return The date that the list was prepared. 1090 */ 1091 public Date getDate() { 1092 return this.date == null ? null : this.date.getValue(); 1093 } 1094 1095 /** 1096 * @param value The date that the list was prepared. 1097 */ 1098 public ListResource setDate(Date value) { 1099 if (value == null) 1100 this.date = null; 1101 else { 1102 if (this.date == null) 1103 this.date = new DateTimeType(); 1104 this.date.setValue(value); 1105 } 1106 return this; 1107 } 1108 1109 /** 1110 * @return {@link #source} (The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list.) 1111 */ 1112 public Reference getSource() { 1113 if (this.source == null) 1114 if (Configuration.errorOnAutoCreate()) 1115 throw new Error("Attempt to auto-create ListResource.source"); 1116 else if (Configuration.doAutoCreate()) 1117 this.source = new Reference(); // cc 1118 return this.source; 1119 } 1120 1121 public boolean hasSource() { 1122 return this.source != null && !this.source.isEmpty(); 1123 } 1124 1125 /** 1126 * @param value {@link #source} (The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list.) 1127 */ 1128 public ListResource setSource(Reference value) { 1129 this.source = value; 1130 return this; 1131 } 1132 1133 /** 1134 * @return {@link #source} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list.) 1135 */ 1136 public Resource getSourceTarget() { 1137 return this.sourceTarget; 1138 } 1139 1140 /** 1141 * @param value {@link #source} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list.) 1142 */ 1143 public ListResource setSourceTarget(Resource value) { 1144 this.sourceTarget = value; 1145 return this; 1146 } 1147 1148 /** 1149 * @return {@link #orderedBy} (What order applies to the items in the list.) 1150 */ 1151 public CodeableConcept getOrderedBy() { 1152 if (this.orderedBy == null) 1153 if (Configuration.errorOnAutoCreate()) 1154 throw new Error("Attempt to auto-create ListResource.orderedBy"); 1155 else if (Configuration.doAutoCreate()) 1156 this.orderedBy = new CodeableConcept(); // cc 1157 return this.orderedBy; 1158 } 1159 1160 public boolean hasOrderedBy() { 1161 return this.orderedBy != null && !this.orderedBy.isEmpty(); 1162 } 1163 1164 /** 1165 * @param value {@link #orderedBy} (What order applies to the items in the list.) 1166 */ 1167 public ListResource setOrderedBy(CodeableConcept value) { 1168 this.orderedBy = value; 1169 return this; 1170 } 1171 1172 /** 1173 * @return {@link #note} (Comments that apply to the overall list.) 1174 */ 1175 public List<Annotation> getNote() { 1176 if (this.note == null) 1177 this.note = new ArrayList<Annotation>(); 1178 return this.note; 1179 } 1180 1181 /** 1182 * @return Returns a reference to <code>this</code> for easy method chaining 1183 */ 1184 public ListResource setNote(List<Annotation> theNote) { 1185 this.note = theNote; 1186 return this; 1187 } 1188 1189 public boolean hasNote() { 1190 if (this.note == null) 1191 return false; 1192 for (Annotation item : this.note) 1193 if (!item.isEmpty()) 1194 return true; 1195 return false; 1196 } 1197 1198 public Annotation addNote() { //3 1199 Annotation t = new Annotation(); 1200 if (this.note == null) 1201 this.note = new ArrayList<Annotation>(); 1202 this.note.add(t); 1203 return t; 1204 } 1205 1206 public ListResource addNote(Annotation t) { //3 1207 if (t == null) 1208 return this; 1209 if (this.note == null) 1210 this.note = new ArrayList<Annotation>(); 1211 this.note.add(t); 1212 return this; 1213 } 1214 1215 /** 1216 * @return The first repetition of repeating field {@link #note}, creating it if it does not already exist 1217 */ 1218 public Annotation getNoteFirstRep() { 1219 if (getNote().isEmpty()) { 1220 addNote(); 1221 } 1222 return getNote().get(0); 1223 } 1224 1225 /** 1226 * @return {@link #entry} (Entries in this list.) 1227 */ 1228 public List<ListEntryComponent> getEntry() { 1229 if (this.entry == null) 1230 this.entry = new ArrayList<ListEntryComponent>(); 1231 return this.entry; 1232 } 1233 1234 /** 1235 * @return Returns a reference to <code>this</code> for easy method chaining 1236 */ 1237 public ListResource setEntry(List<ListEntryComponent> theEntry) { 1238 this.entry = theEntry; 1239 return this; 1240 } 1241 1242 public boolean hasEntry() { 1243 if (this.entry == null) 1244 return false; 1245 for (ListEntryComponent item : this.entry) 1246 if (!item.isEmpty()) 1247 return true; 1248 return false; 1249 } 1250 1251 public ListEntryComponent addEntry() { //3 1252 ListEntryComponent t = new ListEntryComponent(); 1253 if (this.entry == null) 1254 this.entry = new ArrayList<ListEntryComponent>(); 1255 this.entry.add(t); 1256 return t; 1257 } 1258 1259 public ListResource addEntry(ListEntryComponent t) { //3 1260 if (t == null) 1261 return this; 1262 if (this.entry == null) 1263 this.entry = new ArrayList<ListEntryComponent>(); 1264 this.entry.add(t); 1265 return this; 1266 } 1267 1268 /** 1269 * @return The first repetition of repeating field {@link #entry}, creating it if it does not already exist 1270 */ 1271 public ListEntryComponent getEntryFirstRep() { 1272 if (getEntry().isEmpty()) { 1273 addEntry(); 1274 } 1275 return getEntry().get(0); 1276 } 1277 1278 /** 1279 * @return {@link #emptyReason} (If the list is empty, why the list is empty.) 1280 */ 1281 public CodeableConcept getEmptyReason() { 1282 if (this.emptyReason == null) 1283 if (Configuration.errorOnAutoCreate()) 1284 throw new Error("Attempt to auto-create ListResource.emptyReason"); 1285 else if (Configuration.doAutoCreate()) 1286 this.emptyReason = new CodeableConcept(); // cc 1287 return this.emptyReason; 1288 } 1289 1290 public boolean hasEmptyReason() { 1291 return this.emptyReason != null && !this.emptyReason.isEmpty(); 1292 } 1293 1294 /** 1295 * @param value {@link #emptyReason} (If the list is empty, why the list is empty.) 1296 */ 1297 public ListResource setEmptyReason(CodeableConcept value) { 1298 this.emptyReason = value; 1299 return this; 1300 } 1301 1302 protected void listChildren(List<Property> children) { 1303 super.listChildren(children); 1304 children.add(new Property("identifier", "Identifier", "Identifier for the List assigned for business purposes outside the context of FHIR.", 0, java.lang.Integer.MAX_VALUE, identifier)); 1305 children.add(new Property("status", "code", "Indicates the current state of this list.", 0, 1, status)); 1306 children.add(new Property("mode", "code", "How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.", 0, 1, mode)); 1307 children.add(new Property("title", "string", "A label for the list assigned by the author.", 0, 1, title)); 1308 children.add(new Property("code", "CodeableConcept", "This code defines the purpose of the list - why it was created.", 0, 1, code)); 1309 children.add(new Property("subject", "Reference(Patient|Group|Device|Location)", "The common subject (or patient) of the resources that are in the list, if there is one.", 0, 1, subject)); 1310 children.add(new Property("encounter", "Reference(Encounter)", "The encounter that is the context in which this list was created.", 0, 1, encounter)); 1311 children.add(new Property("date", "dateTime", "The date that the list was prepared.", 0, 1, date)); 1312 children.add(new Property("source", "Reference(Practitioner|Patient|Device)", "The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list.", 0, 1, source)); 1313 children.add(new Property("orderedBy", "CodeableConcept", "What order applies to the items in the list.", 0, 1, orderedBy)); 1314 children.add(new Property("note", "Annotation", "Comments that apply to the overall list.", 0, java.lang.Integer.MAX_VALUE, note)); 1315 children.add(new Property("entry", "", "Entries in this list.", 0, java.lang.Integer.MAX_VALUE, entry)); 1316 children.add(new Property("emptyReason", "CodeableConcept", "If the list is empty, why the list is empty.", 0, 1, emptyReason)); 1317 } 1318 1319 @Override 1320 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1321 switch (_hash) { 1322 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Identifier for the List assigned for business purposes outside the context of FHIR.", 0, java.lang.Integer.MAX_VALUE, identifier); 1323 case -892481550: /*status*/ return new Property("status", "code", "Indicates the current state of this list.", 0, 1, status); 1324 case 3357091: /*mode*/ return new Property("mode", "code", "How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.", 0, 1, mode); 1325 case 110371416: /*title*/ return new Property("title", "string", "A label for the list assigned by the author.", 0, 1, title); 1326 case 3059181: /*code*/ return new Property("code", "CodeableConcept", "This code defines the purpose of the list - why it was created.", 0, 1, code); 1327 case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Group|Device|Location)", "The common subject (or patient) of the resources that are in the list, if there is one.", 0, 1, subject); 1328 case 1524132147: /*encounter*/ return new Property("encounter", "Reference(Encounter)", "The encounter that is the context in which this list was created.", 0, 1, encounter); 1329 case 3076014: /*date*/ return new Property("date", "dateTime", "The date that the list was prepared.", 0, 1, date); 1330 case -896505829: /*source*/ return new Property("source", "Reference(Practitioner|Patient|Device)", "The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list.", 0, 1, source); 1331 case -391079516: /*orderedBy*/ return new Property("orderedBy", "CodeableConcept", "What order applies to the items in the list.", 0, 1, orderedBy); 1332 case 3387378: /*note*/ return new Property("note", "Annotation", "Comments that apply to the overall list.", 0, java.lang.Integer.MAX_VALUE, note); 1333 case 96667762: /*entry*/ return new Property("entry", "", "Entries in this list.", 0, java.lang.Integer.MAX_VALUE, entry); 1334 case 1140135409: /*emptyReason*/ return new Property("emptyReason", "CodeableConcept", "If the list is empty, why the list is empty.", 0, 1, emptyReason); 1335 default: return super.getNamedProperty(_hash, _name, _checkValid); 1336 } 1337 1338 } 1339 1340 @Override 1341 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1342 switch (hash) { 1343 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 1344 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<ListStatus> 1345 case 3357091: /*mode*/ return this.mode == null ? new Base[0] : new Base[] {this.mode}; // Enumeration<ListMode> 1346 case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType 1347 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept 1348 case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference 1349 case 1524132147: /*encounter*/ return this.encounter == null ? new Base[0] : new Base[] {this.encounter}; // Reference 1350 case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType 1351 case -896505829: /*source*/ return this.source == null ? new Base[0] : new Base[] {this.source}; // Reference 1352 case -391079516: /*orderedBy*/ return this.orderedBy == null ? new Base[0] : new Base[] {this.orderedBy}; // CodeableConcept 1353 case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation 1354 case 96667762: /*entry*/ return this.entry == null ? new Base[0] : this.entry.toArray(new Base[this.entry.size()]); // ListEntryComponent 1355 case 1140135409: /*emptyReason*/ return this.emptyReason == null ? new Base[0] : new Base[] {this.emptyReason}; // CodeableConcept 1356 default: return super.getProperty(hash, name, checkValid); 1357 } 1358 1359 } 1360 1361 @Override 1362 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1363 switch (hash) { 1364 case -1618432855: // identifier 1365 this.getIdentifier().add(castToIdentifier(value)); // Identifier 1366 return value; 1367 case -892481550: // status 1368 value = new ListStatusEnumFactory().fromType(castToCode(value)); 1369 this.status = (Enumeration) value; // Enumeration<ListStatus> 1370 return value; 1371 case 3357091: // mode 1372 value = new ListModeEnumFactory().fromType(castToCode(value)); 1373 this.mode = (Enumeration) value; // Enumeration<ListMode> 1374 return value; 1375 case 110371416: // title 1376 this.title = castToString(value); // StringType 1377 return value; 1378 case 3059181: // code 1379 this.code = castToCodeableConcept(value); // CodeableConcept 1380 return value; 1381 case -1867885268: // subject 1382 this.subject = castToReference(value); // Reference 1383 return value; 1384 case 1524132147: // encounter 1385 this.encounter = castToReference(value); // Reference 1386 return value; 1387 case 3076014: // date 1388 this.date = castToDateTime(value); // DateTimeType 1389 return value; 1390 case -896505829: // source 1391 this.source = castToReference(value); // Reference 1392 return value; 1393 case -391079516: // orderedBy 1394 this.orderedBy = castToCodeableConcept(value); // CodeableConcept 1395 return value; 1396 case 3387378: // note 1397 this.getNote().add(castToAnnotation(value)); // Annotation 1398 return value; 1399 case 96667762: // entry 1400 this.getEntry().add((ListEntryComponent) value); // ListEntryComponent 1401 return value; 1402 case 1140135409: // emptyReason 1403 this.emptyReason = castToCodeableConcept(value); // CodeableConcept 1404 return value; 1405 default: return super.setProperty(hash, name, value); 1406 } 1407 1408 } 1409 1410 @Override 1411 public Base setProperty(String name, Base value) throws FHIRException { 1412 if (name.equals("identifier")) { 1413 this.getIdentifier().add(castToIdentifier(value)); 1414 } else if (name.equals("status")) { 1415 value = new ListStatusEnumFactory().fromType(castToCode(value)); 1416 this.status = (Enumeration) value; // Enumeration<ListStatus> 1417 } else if (name.equals("mode")) { 1418 value = new ListModeEnumFactory().fromType(castToCode(value)); 1419 this.mode = (Enumeration) value; // Enumeration<ListMode> 1420 } else if (name.equals("title")) { 1421 this.title = castToString(value); // StringType 1422 } else if (name.equals("code")) { 1423 this.code = castToCodeableConcept(value); // CodeableConcept 1424 } else if (name.equals("subject")) { 1425 this.subject = castToReference(value); // Reference 1426 } else if (name.equals("encounter")) { 1427 this.encounter = castToReference(value); // Reference 1428 } else if (name.equals("date")) { 1429 this.date = castToDateTime(value); // DateTimeType 1430 } else if (name.equals("source")) { 1431 this.source = castToReference(value); // Reference 1432 } else if (name.equals("orderedBy")) { 1433 this.orderedBy = castToCodeableConcept(value); // CodeableConcept 1434 } else if (name.equals("note")) { 1435 this.getNote().add(castToAnnotation(value)); 1436 } else if (name.equals("entry")) { 1437 this.getEntry().add((ListEntryComponent) value); 1438 } else if (name.equals("emptyReason")) { 1439 this.emptyReason = castToCodeableConcept(value); // CodeableConcept 1440 } else 1441 return super.setProperty(name, value); 1442 return value; 1443 } 1444 1445 @Override 1446 public Base makeProperty(int hash, String name) throws FHIRException { 1447 switch (hash) { 1448 case -1618432855: return addIdentifier(); 1449 case -892481550: return getStatusElement(); 1450 case 3357091: return getModeElement(); 1451 case 110371416: return getTitleElement(); 1452 case 3059181: return getCode(); 1453 case -1867885268: return getSubject(); 1454 case 1524132147: return getEncounter(); 1455 case 3076014: return getDateElement(); 1456 case -896505829: return getSource(); 1457 case -391079516: return getOrderedBy(); 1458 case 3387378: return addNote(); 1459 case 96667762: return addEntry(); 1460 case 1140135409: return getEmptyReason(); 1461 default: return super.makeProperty(hash, name); 1462 } 1463 1464 } 1465 1466 @Override 1467 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1468 switch (hash) { 1469 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 1470 case -892481550: /*status*/ return new String[] {"code"}; 1471 case 3357091: /*mode*/ return new String[] {"code"}; 1472 case 110371416: /*title*/ return new String[] {"string"}; 1473 case 3059181: /*code*/ return new String[] {"CodeableConcept"}; 1474 case -1867885268: /*subject*/ return new String[] {"Reference"}; 1475 case 1524132147: /*encounter*/ return new String[] {"Reference"}; 1476 case 3076014: /*date*/ return new String[] {"dateTime"}; 1477 case -896505829: /*source*/ return new String[] {"Reference"}; 1478 case -391079516: /*orderedBy*/ return new String[] {"CodeableConcept"}; 1479 case 3387378: /*note*/ return new String[] {"Annotation"}; 1480 case 96667762: /*entry*/ return new String[] {}; 1481 case 1140135409: /*emptyReason*/ return new String[] {"CodeableConcept"}; 1482 default: return super.getTypesForProperty(hash, name); 1483 } 1484 1485 } 1486 1487 @Override 1488 public Base addChild(String name) throws FHIRException { 1489 if (name.equals("identifier")) { 1490 return addIdentifier(); 1491 } 1492 else if (name.equals("status")) { 1493 throw new FHIRException("Cannot call addChild on a primitive type ListResource.status"); 1494 } 1495 else if (name.equals("mode")) { 1496 throw new FHIRException("Cannot call addChild on a primitive type ListResource.mode"); 1497 } 1498 else if (name.equals("title")) { 1499 throw new FHIRException("Cannot call addChild on a primitive type ListResource.title"); 1500 } 1501 else if (name.equals("code")) { 1502 this.code = new CodeableConcept(); 1503 return this.code; 1504 } 1505 else if (name.equals("subject")) { 1506 this.subject = new Reference(); 1507 return this.subject; 1508 } 1509 else if (name.equals("encounter")) { 1510 this.encounter = new Reference(); 1511 return this.encounter; 1512 } 1513 else if (name.equals("date")) { 1514 throw new FHIRException("Cannot call addChild on a primitive type ListResource.date"); 1515 } 1516 else if (name.equals("source")) { 1517 this.source = new Reference(); 1518 return this.source; 1519 } 1520 else if (name.equals("orderedBy")) { 1521 this.orderedBy = new CodeableConcept(); 1522 return this.orderedBy; 1523 } 1524 else if (name.equals("note")) { 1525 return addNote(); 1526 } 1527 else if (name.equals("entry")) { 1528 return addEntry(); 1529 } 1530 else if (name.equals("emptyReason")) { 1531 this.emptyReason = new CodeableConcept(); 1532 return this.emptyReason; 1533 } 1534 else 1535 return super.addChild(name); 1536 } 1537 1538 public String fhirType() { 1539 return "List"; 1540 1541 } 1542 1543 public ListResource copy() { 1544 ListResource dst = new ListResource(); 1545 copyValues(dst); 1546 if (identifier != null) { 1547 dst.identifier = new ArrayList<Identifier>(); 1548 for (Identifier i : identifier) 1549 dst.identifier.add(i.copy()); 1550 }; 1551 dst.status = status == null ? null : status.copy(); 1552 dst.mode = mode == null ? null : mode.copy(); 1553 dst.title = title == null ? null : title.copy(); 1554 dst.code = code == null ? null : code.copy(); 1555 dst.subject = subject == null ? null : subject.copy(); 1556 dst.encounter = encounter == null ? null : encounter.copy(); 1557 dst.date = date == null ? null : date.copy(); 1558 dst.source = source == null ? null : source.copy(); 1559 dst.orderedBy = orderedBy == null ? null : orderedBy.copy(); 1560 if (note != null) { 1561 dst.note = new ArrayList<Annotation>(); 1562 for (Annotation i : note) 1563 dst.note.add(i.copy()); 1564 }; 1565 if (entry != null) { 1566 dst.entry = new ArrayList<ListEntryComponent>(); 1567 for (ListEntryComponent i : entry) 1568 dst.entry.add(i.copy()); 1569 }; 1570 dst.emptyReason = emptyReason == null ? null : emptyReason.copy(); 1571 return dst; 1572 } 1573 1574 protected ListResource typedCopy() { 1575 return copy(); 1576 } 1577 1578 @Override 1579 public boolean equalsDeep(Base other_) { 1580 if (!super.equalsDeep(other_)) 1581 return false; 1582 if (!(other_ instanceof ListResource)) 1583 return false; 1584 ListResource o = (ListResource) other_; 1585 return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(mode, o.mode, true) 1586 && compareDeep(title, o.title, true) && compareDeep(code, o.code, true) && compareDeep(subject, o.subject, true) 1587 && compareDeep(encounter, o.encounter, true) && compareDeep(date, o.date, true) && compareDeep(source, o.source, true) 1588 && compareDeep(orderedBy, o.orderedBy, true) && compareDeep(note, o.note, true) && compareDeep(entry, o.entry, true) 1589 && compareDeep(emptyReason, o.emptyReason, true); 1590 } 1591 1592 @Override 1593 public boolean equalsShallow(Base other_) { 1594 if (!super.equalsShallow(other_)) 1595 return false; 1596 if (!(other_ instanceof ListResource)) 1597 return false; 1598 ListResource o = (ListResource) other_; 1599 return compareValues(status, o.status, true) && compareValues(mode, o.mode, true) && compareValues(title, o.title, true) 1600 && compareValues(date, o.date, true); 1601 } 1602 1603 public boolean isEmpty() { 1604 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, mode 1605 , title, code, subject, encounter, date, source, orderedBy, note, entry, emptyReason 1606 ); 1607 } 1608 1609 @Override 1610 public ResourceType getResourceType() { 1611 return ResourceType.List; 1612 } 1613 1614 /** 1615 * Search parameter: <b>date</b> 1616 * <p> 1617 * Description: <b>When the list was prepared</b><br> 1618 * Type: <b>date</b><br> 1619 * Path: <b>List.date</b><br> 1620 * </p> 1621 */ 1622 @SearchParamDefinition(name="date", path="List.date", description="When the list was prepared", type="date" ) 1623 public static final String SP_DATE = "date"; 1624 /** 1625 * <b>Fluent Client</b> search parameter constant for <b>date</b> 1626 * <p> 1627 * Description: <b>When the list was prepared</b><br> 1628 * Type: <b>date</b><br> 1629 * Path: <b>List.date</b><br> 1630 * </p> 1631 */ 1632 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 1633 1634 /** 1635 * Search parameter: <b>identifier</b> 1636 * <p> 1637 * Description: <b>Business identifier</b><br> 1638 * Type: <b>token</b><br> 1639 * Path: <b>List.identifier</b><br> 1640 * </p> 1641 */ 1642 @SearchParamDefinition(name="identifier", path="List.identifier", description="Business identifier", type="token" ) 1643 public static final String SP_IDENTIFIER = "identifier"; 1644 /** 1645 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 1646 * <p> 1647 * Description: <b>Business identifier</b><br> 1648 * Type: <b>token</b><br> 1649 * Path: <b>List.identifier</b><br> 1650 * </p> 1651 */ 1652 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 1653 1654 /** 1655 * Search parameter: <b>item</b> 1656 * <p> 1657 * Description: <b>Actual entry</b><br> 1658 * Type: <b>reference</b><br> 1659 * Path: <b>List.entry.item</b><br> 1660 * </p> 1661 */ 1662 @SearchParamDefinition(name="item", path="List.entry.item", description="Actual entry", type="reference" ) 1663 public static final String SP_ITEM = "item"; 1664 /** 1665 * <b>Fluent Client</b> search parameter constant for <b>item</b> 1666 * <p> 1667 * Description: <b>Actual entry</b><br> 1668 * Type: <b>reference</b><br> 1669 * Path: <b>List.entry.item</b><br> 1670 * </p> 1671 */ 1672 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ITEM = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ITEM); 1673 1674/** 1675 * Constant for fluent queries to be used to add include statements. Specifies 1676 * the path value of "<b>ListResource:item</b>". 1677 */ 1678 public static final ca.uhn.fhir.model.api.Include INCLUDE_ITEM = new ca.uhn.fhir.model.api.Include("ListResource:item").toLocked(); 1679 1680 /** 1681 * Search parameter: <b>empty-reason</b> 1682 * <p> 1683 * Description: <b>Why list is empty</b><br> 1684 * Type: <b>token</b><br> 1685 * Path: <b>List.emptyReason</b><br> 1686 * </p> 1687 */ 1688 @SearchParamDefinition(name="empty-reason", path="List.emptyReason", description="Why list is empty", type="token" ) 1689 public static final String SP_EMPTY_REASON = "empty-reason"; 1690 /** 1691 * <b>Fluent Client</b> search parameter constant for <b>empty-reason</b> 1692 * <p> 1693 * Description: <b>Why list is empty</b><br> 1694 * Type: <b>token</b><br> 1695 * Path: <b>List.emptyReason</b><br> 1696 * </p> 1697 */ 1698 public static final ca.uhn.fhir.rest.gclient.TokenClientParam EMPTY_REASON = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_EMPTY_REASON); 1699 1700 /** 1701 * Search parameter: <b>code</b> 1702 * <p> 1703 * Description: <b>What the purpose of this list is</b><br> 1704 * Type: <b>token</b><br> 1705 * Path: <b>List.code</b><br> 1706 * </p> 1707 */ 1708 @SearchParamDefinition(name="code", path="List.code", description="What the purpose of this list is", type="token" ) 1709 public static final String SP_CODE = "code"; 1710 /** 1711 * <b>Fluent Client</b> search parameter constant for <b>code</b> 1712 * <p> 1713 * Description: <b>What the purpose of this list is</b><br> 1714 * Type: <b>token</b><br> 1715 * Path: <b>List.code</b><br> 1716 * </p> 1717 */ 1718 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); 1719 1720 /** 1721 * Search parameter: <b>notes</b> 1722 * <p> 1723 * Description: <b>The annotation - text content</b><br> 1724 * Type: <b>string</b><br> 1725 * Path: <b>List.note.text</b><br> 1726 * </p> 1727 */ 1728 @SearchParamDefinition(name="notes", path="List.note.text", description="The annotation - text content", type="string" ) 1729 public static final String SP_NOTES = "notes"; 1730 /** 1731 * <b>Fluent Client</b> search parameter constant for <b>notes</b> 1732 * <p> 1733 * Description: <b>The annotation - text content</b><br> 1734 * Type: <b>string</b><br> 1735 * Path: <b>List.note.text</b><br> 1736 * </p> 1737 */ 1738 public static final ca.uhn.fhir.rest.gclient.StringClientParam NOTES = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NOTES); 1739 1740 /** 1741 * Search parameter: <b>subject</b> 1742 * <p> 1743 * Description: <b>If all resources have the same subject</b><br> 1744 * Type: <b>reference</b><br> 1745 * Path: <b>List.subject</b><br> 1746 * </p> 1747 */ 1748 @SearchParamDefinition(name="subject", path="List.subject", description="If all resources have the same subject", type="reference", target={Device.class, Group.class, Location.class, Patient.class } ) 1749 public static final String SP_SUBJECT = "subject"; 1750 /** 1751 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 1752 * <p> 1753 * Description: <b>If all resources have the same subject</b><br> 1754 * Type: <b>reference</b><br> 1755 * Path: <b>List.subject</b><br> 1756 * </p> 1757 */ 1758 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); 1759 1760/** 1761 * Constant for fluent queries to be used to add include statements. Specifies 1762 * the path value of "<b>ListResource:subject</b>". 1763 */ 1764 public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("ListResource:subject").toLocked(); 1765 1766 /** 1767 * Search parameter: <b>patient</b> 1768 * <p> 1769 * Description: <b>If all resources have the same subject</b><br> 1770 * Type: <b>reference</b><br> 1771 * Path: <b>List.subject</b><br> 1772 * </p> 1773 */ 1774 @SearchParamDefinition(name="patient", path="List.subject", description="If all resources have the same subject", type="reference", target={Patient.class } ) 1775 public static final String SP_PATIENT = "patient"; 1776 /** 1777 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 1778 * <p> 1779 * Description: <b>If all resources have the same subject</b><br> 1780 * Type: <b>reference</b><br> 1781 * Path: <b>List.subject</b><br> 1782 * </p> 1783 */ 1784 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); 1785 1786/** 1787 * Constant for fluent queries to be used to add include statements. Specifies 1788 * the path value of "<b>ListResource:patient</b>". 1789 */ 1790 public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("ListResource:patient").toLocked(); 1791 1792 /** 1793 * Search parameter: <b>source</b> 1794 * <p> 1795 * Description: <b>Who and/or what defined the list contents (aka Author)</b><br> 1796 * Type: <b>reference</b><br> 1797 * Path: <b>List.source</b><br> 1798 * </p> 1799 */ 1800 @SearchParamDefinition(name="source", path="List.source", description="Who and/or what defined the list contents (aka Author)", type="reference", target={Device.class, Patient.class, Practitioner.class } ) 1801 public static final String SP_SOURCE = "source"; 1802 /** 1803 * <b>Fluent Client</b> search parameter constant for <b>source</b> 1804 * <p> 1805 * Description: <b>Who and/or what defined the list contents (aka Author)</b><br> 1806 * Type: <b>reference</b><br> 1807 * Path: <b>List.source</b><br> 1808 * </p> 1809 */ 1810 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SOURCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SOURCE); 1811 1812/** 1813 * Constant for fluent queries to be used to add include statements. Specifies 1814 * the path value of "<b>ListResource:source</b>". 1815 */ 1816 public static final ca.uhn.fhir.model.api.Include INCLUDE_SOURCE = new ca.uhn.fhir.model.api.Include("ListResource:source").toLocked(); 1817 1818 /** 1819 * Search parameter: <b>encounter</b> 1820 * <p> 1821 * Description: <b>Context in which list created</b><br> 1822 * Type: <b>reference</b><br> 1823 * Path: <b>List.encounter</b><br> 1824 * </p> 1825 */ 1826 @SearchParamDefinition(name="encounter", path="List.encounter", description="Context in which list created", type="reference", target={Encounter.class } ) 1827 public static final String SP_ENCOUNTER = "encounter"; 1828 /** 1829 * <b>Fluent Client</b> search parameter constant for <b>encounter</b> 1830 * <p> 1831 * Description: <b>Context in which list created</b><br> 1832 * Type: <b>reference</b><br> 1833 * Path: <b>List.encounter</b><br> 1834 * </p> 1835 */ 1836 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); 1837 1838/** 1839 * Constant for fluent queries to be used to add include statements. Specifies 1840 * the path value of "<b>ListResource:encounter</b>". 1841 */ 1842 public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("ListResource:encounter").toLocked(); 1843 1844 /** 1845 * Search parameter: <b>title</b> 1846 * <p> 1847 * Description: <b>Descriptive name for the list</b><br> 1848 * Type: <b>string</b><br> 1849 * Path: <b>List.title</b><br> 1850 * </p> 1851 */ 1852 @SearchParamDefinition(name="title", path="List.title", description="Descriptive name for the list", type="string" ) 1853 public static final String SP_TITLE = "title"; 1854 /** 1855 * <b>Fluent Client</b> search parameter constant for <b>title</b> 1856 * <p> 1857 * Description: <b>Descriptive name for the list</b><br> 1858 * Type: <b>string</b><br> 1859 * Path: <b>List.title</b><br> 1860 * </p> 1861 */ 1862 public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE); 1863 1864 /** 1865 * Search parameter: <b>status</b> 1866 * <p> 1867 * Description: <b>current | retired | entered-in-error</b><br> 1868 * Type: <b>token</b><br> 1869 * Path: <b>List.status</b><br> 1870 * </p> 1871 */ 1872 @SearchParamDefinition(name="status", path="List.status", description="current | retired | entered-in-error", type="token" ) 1873 public static final String SP_STATUS = "status"; 1874 /** 1875 * <b>Fluent Client</b> search parameter constant for <b>status</b> 1876 * <p> 1877 * Description: <b>current | retired | entered-in-error</b><br> 1878 * Type: <b>token</b><br> 1879 * Path: <b>List.status</b><br> 1880 * </p> 1881 */ 1882 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 1883 1884 1885} 1886