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