001package org.hl7.fhir.r5.model; 002 003 004/* 005 * #%L 006 * org.hl7.fhir.r5 007 * %% 008 * Copyright (C) 2014 - 2019 Health Level 7 009 * %% 010 * Licensed under the Apache License, Version 2.0 (the \"License\"); 011 * you may not use this file except in compliance with the License. 012 * You may obtain a copy of the License at 013 * 014 * http://www.apache.org/licenses/LICENSE-2.0 015 * 016 * Unless required by applicable law or agreed to in writing, software 017 * distributed under the License is distributed on an \"AS IS\" BASIS, 018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 019 * See the License for the specific language governing permissions and 020 * limitations under the License. 021 * #L% 022 */ 023 024/* 025 Copyright (c) 2011+, HL7, Inc. 026 All rights reserved. 027 028 Redistribution and use in source and binary forms, with or without modification, \ 029 are permitted provided that the following conditions are met: 030 031 * Redistributions of source code must retain the above copyright notice, this \ 032 list of conditions and the following disclaimer. 033 * Redistributions in binary form must reproduce the above copyright notice, \ 034 this list of conditions and the following disclaimer in the documentation \ 035 and/or other materials provided with the distribution. 036 * Neither the name of HL7 nor the names of its contributors may be used to 037 endorse or promote products derived from this software without specific 038 prior written permission. 039 040 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \ 041 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \ 042 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \ 043 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \ 044 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \ 045 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \ 046 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \ 047 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \ 048 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \ 049 POSSIBILITY OF SUCH DAMAGE. 050 */ 051 052// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent 053 054import java.util.ArrayList; 055import java.util.Date; 056import java.util.List; 057import org.hl7.fhir.utilities.Utilities; 058import org.hl7.fhir.r5.model.Enumerations.*; 059import org.hl7.fhir.instance.model.api.IBaseBackboneElement; 060import org.hl7.fhir.exceptions.FHIRException; 061import org.hl7.fhir.instance.model.api.ICompositeType; 062import ca.uhn.fhir.model.api.annotation.ResourceDef; 063import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 064import org.hl7.fhir.instance.model.api.IBaseBackboneElement; 065import ca.uhn.fhir.model.api.annotation.Child; 066import ca.uhn.fhir.model.api.annotation.ChildOrder; 067import ca.uhn.fhir.model.api.annotation.Description; 068import ca.uhn.fhir.model.api.annotation.Block; 069 070/** 071 * A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s). 072 */ 073@ResourceDef(name="Appointment", profile="http://hl7.org/fhir/StructureDefinition/Appointment") 074public class Appointment extends DomainResource { 075 076 public enum AppointmentStatus { 077 /** 078 * None of the participant(s) have finalized their acceptance of the appointment request, and the start/end time might not be set yet. 079 */ 080 PROPOSED, 081 /** 082 * Some or all of the participant(s) have not finalized their acceptance of the appointment request. 083 */ 084 PENDING, 085 /** 086 * All participant(s) have been considered and the appointment is confirmed to go ahead at the date/times specified. 087 */ 088 BOOKED, 089 /** 090 * The patient/patients has/have arrived and is/are waiting to be seen. 091 */ 092 ARRIVED, 093 /** 094 * The planning stages of the appointment are now complete, the encounter resource will exist and will track further status changes. Note that an encounter may exist before the appointment status is fulfilled for many reasons. 095 */ 096 FULFILLED, 097 /** 098 * The appointment has been cancelled. 099 */ 100 CANCELLED, 101 /** 102 * Some or all of the participant(s) have not/did not appear for the appointment (usually the patient). 103 */ 104 NOSHOW, 105 /** 106 * This instance should not have been part of this patient's medical record. 107 */ 108 ENTEREDINERROR, 109 /** 110 * When checked in, all pre-encounter administrative work is complete, and the encounter may begin. (where multiple patients are involved, they are all present). 111 */ 112 CHECKEDIN, 113 /** 114 * The appointment has been placed on a waitlist, to be scheduled/confirmed in the future when a slot/service is available.\nA specific time might or might not be pre-allocated. 115 */ 116 WAITLIST, 117 /** 118 * added to help the parsers with the generic types 119 */ 120 NULL; 121 public static AppointmentStatus fromCode(String codeString) throws FHIRException { 122 if (codeString == null || "".equals(codeString)) 123 return null; 124 if ("proposed".equals(codeString)) 125 return PROPOSED; 126 if ("pending".equals(codeString)) 127 return PENDING; 128 if ("booked".equals(codeString)) 129 return BOOKED; 130 if ("arrived".equals(codeString)) 131 return ARRIVED; 132 if ("fulfilled".equals(codeString)) 133 return FULFILLED; 134 if ("cancelled".equals(codeString)) 135 return CANCELLED; 136 if ("noshow".equals(codeString)) 137 return NOSHOW; 138 if ("entered-in-error".equals(codeString)) 139 return ENTEREDINERROR; 140 if ("checked-in".equals(codeString)) 141 return CHECKEDIN; 142 if ("waitlist".equals(codeString)) 143 return WAITLIST; 144 if (Configuration.isAcceptInvalidEnums()) 145 return null; 146 else 147 throw new FHIRException("Unknown AppointmentStatus code '"+codeString+"'"); 148 } 149 public String toCode() { 150 switch (this) { 151 case PROPOSED: return "proposed"; 152 case PENDING: return "pending"; 153 case BOOKED: return "booked"; 154 case ARRIVED: return "arrived"; 155 case FULFILLED: return "fulfilled"; 156 case CANCELLED: return "cancelled"; 157 case NOSHOW: return "noshow"; 158 case ENTEREDINERROR: return "entered-in-error"; 159 case CHECKEDIN: return "checked-in"; 160 case WAITLIST: return "waitlist"; 161 default: return "?"; 162 } 163 } 164 public String getSystem() { 165 switch (this) { 166 case PROPOSED: return "http://hl7.org/fhir/appointmentstatus"; 167 case PENDING: return "http://hl7.org/fhir/appointmentstatus"; 168 case BOOKED: return "http://hl7.org/fhir/appointmentstatus"; 169 case ARRIVED: return "http://hl7.org/fhir/appointmentstatus"; 170 case FULFILLED: return "http://hl7.org/fhir/appointmentstatus"; 171 case CANCELLED: return "http://hl7.org/fhir/appointmentstatus"; 172 case NOSHOW: return "http://hl7.org/fhir/appointmentstatus"; 173 case ENTEREDINERROR: return "http://hl7.org/fhir/appointmentstatus"; 174 case CHECKEDIN: return "http://hl7.org/fhir/appointmentstatus"; 175 case WAITLIST: return "http://hl7.org/fhir/appointmentstatus"; 176 default: return "?"; 177 } 178 } 179 public String getDefinition() { 180 switch (this) { 181 case PROPOSED: return "None of the participant(s) have finalized their acceptance of the appointment request, and the start/end time might not be set yet."; 182 case PENDING: return "Some or all of the participant(s) have not finalized their acceptance of the appointment request."; 183 case BOOKED: return "All participant(s) have been considered and the appointment is confirmed to go ahead at the date/times specified."; 184 case ARRIVED: return "The patient/patients has/have arrived and is/are waiting to be seen."; 185 case FULFILLED: return "The planning stages of the appointment are now complete, the encounter resource will exist and will track further status changes. Note that an encounter may exist before the appointment status is fulfilled for many reasons."; 186 case CANCELLED: return "The appointment has been cancelled."; 187 case NOSHOW: return "Some or all of the participant(s) have not/did not appear for the appointment (usually the patient)."; 188 case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record."; 189 case CHECKEDIN: return "When checked in, all pre-encounter administrative work is complete, and the encounter may begin. (where multiple patients are involved, they are all present)."; 190 case WAITLIST: return "The appointment has been placed on a waitlist, to be scheduled/confirmed in the future when a slot/service is available.\nA specific time might or might not be pre-allocated."; 191 default: return "?"; 192 } 193 } 194 public String getDisplay() { 195 switch (this) { 196 case PROPOSED: return "Proposed"; 197 case PENDING: return "Pending"; 198 case BOOKED: return "Booked"; 199 case ARRIVED: return "Arrived"; 200 case FULFILLED: return "Fulfilled"; 201 case CANCELLED: return "Cancelled"; 202 case NOSHOW: return "No Show"; 203 case ENTEREDINERROR: return "Entered in error"; 204 case CHECKEDIN: return "Checked In"; 205 case WAITLIST: return "Waitlisted"; 206 default: return "?"; 207 } 208 } 209 } 210 211 public static class AppointmentStatusEnumFactory implements EnumFactory<AppointmentStatus> { 212 public AppointmentStatus fromCode(String codeString) throws IllegalArgumentException { 213 if (codeString == null || "".equals(codeString)) 214 if (codeString == null || "".equals(codeString)) 215 return null; 216 if ("proposed".equals(codeString)) 217 return AppointmentStatus.PROPOSED; 218 if ("pending".equals(codeString)) 219 return AppointmentStatus.PENDING; 220 if ("booked".equals(codeString)) 221 return AppointmentStatus.BOOKED; 222 if ("arrived".equals(codeString)) 223 return AppointmentStatus.ARRIVED; 224 if ("fulfilled".equals(codeString)) 225 return AppointmentStatus.FULFILLED; 226 if ("cancelled".equals(codeString)) 227 return AppointmentStatus.CANCELLED; 228 if ("noshow".equals(codeString)) 229 return AppointmentStatus.NOSHOW; 230 if ("entered-in-error".equals(codeString)) 231 return AppointmentStatus.ENTEREDINERROR; 232 if ("checked-in".equals(codeString)) 233 return AppointmentStatus.CHECKEDIN; 234 if ("waitlist".equals(codeString)) 235 return AppointmentStatus.WAITLIST; 236 throw new IllegalArgumentException("Unknown AppointmentStatus code '"+codeString+"'"); 237 } 238 public Enumeration<AppointmentStatus> fromType(Base code) throws FHIRException { 239 if (code == null) 240 return null; 241 if (code.isEmpty()) 242 return new Enumeration<AppointmentStatus>(this); 243 String codeString = ((PrimitiveType) code).asStringValue(); 244 if (codeString == null || "".equals(codeString)) 245 return null; 246 if ("proposed".equals(codeString)) 247 return new Enumeration<AppointmentStatus>(this, AppointmentStatus.PROPOSED); 248 if ("pending".equals(codeString)) 249 return new Enumeration<AppointmentStatus>(this, AppointmentStatus.PENDING); 250 if ("booked".equals(codeString)) 251 return new Enumeration<AppointmentStatus>(this, AppointmentStatus.BOOKED); 252 if ("arrived".equals(codeString)) 253 return new Enumeration<AppointmentStatus>(this, AppointmentStatus.ARRIVED); 254 if ("fulfilled".equals(codeString)) 255 return new Enumeration<AppointmentStatus>(this, AppointmentStatus.FULFILLED); 256 if ("cancelled".equals(codeString)) 257 return new Enumeration<AppointmentStatus>(this, AppointmentStatus.CANCELLED); 258 if ("noshow".equals(codeString)) 259 return new Enumeration<AppointmentStatus>(this, AppointmentStatus.NOSHOW); 260 if ("entered-in-error".equals(codeString)) 261 return new Enumeration<AppointmentStatus>(this, AppointmentStatus.ENTEREDINERROR); 262 if ("checked-in".equals(codeString)) 263 return new Enumeration<AppointmentStatus>(this, AppointmentStatus.CHECKEDIN); 264 if ("waitlist".equals(codeString)) 265 return new Enumeration<AppointmentStatus>(this, AppointmentStatus.WAITLIST); 266 throw new FHIRException("Unknown AppointmentStatus code '"+codeString+"'"); 267 } 268 public String toCode(AppointmentStatus code) { 269 if (code == AppointmentStatus.PROPOSED) 270 return "proposed"; 271 if (code == AppointmentStatus.PENDING) 272 return "pending"; 273 if (code == AppointmentStatus.BOOKED) 274 return "booked"; 275 if (code == AppointmentStatus.ARRIVED) 276 return "arrived"; 277 if (code == AppointmentStatus.FULFILLED) 278 return "fulfilled"; 279 if (code == AppointmentStatus.CANCELLED) 280 return "cancelled"; 281 if (code == AppointmentStatus.NOSHOW) 282 return "noshow"; 283 if (code == AppointmentStatus.ENTEREDINERROR) 284 return "entered-in-error"; 285 if (code == AppointmentStatus.CHECKEDIN) 286 return "checked-in"; 287 if (code == AppointmentStatus.WAITLIST) 288 return "waitlist"; 289 return "?"; 290 } 291 public String toSystem(AppointmentStatus code) { 292 return code.getSystem(); 293 } 294 } 295 296 public enum ParticipantRequired { 297 /** 298 * The participant is required to attend the appointment. 299 */ 300 REQUIRED, 301 /** 302 * The participant may optionally attend the appointment. 303 */ 304 OPTIONAL, 305 /** 306 * The participant is excluded from the appointment, and might not be informed of the appointment taking place. (Appointment is about them, not for them - such as 2 doctors discussing results about a patient's test). 307 */ 308 INFORMATIONONLY, 309 /** 310 * added to help the parsers with the generic types 311 */ 312 NULL; 313 public static ParticipantRequired fromCode(String codeString) throws FHIRException { 314 if (codeString == null || "".equals(codeString)) 315 return null; 316 if ("required".equals(codeString)) 317 return REQUIRED; 318 if ("optional".equals(codeString)) 319 return OPTIONAL; 320 if ("information-only".equals(codeString)) 321 return INFORMATIONONLY; 322 if (Configuration.isAcceptInvalidEnums()) 323 return null; 324 else 325 throw new FHIRException("Unknown ParticipantRequired code '"+codeString+"'"); 326 } 327 public String toCode() { 328 switch (this) { 329 case REQUIRED: return "required"; 330 case OPTIONAL: return "optional"; 331 case INFORMATIONONLY: return "information-only"; 332 default: return "?"; 333 } 334 } 335 public String getSystem() { 336 switch (this) { 337 case REQUIRED: return "http://hl7.org/fhir/participantrequired"; 338 case OPTIONAL: return "http://hl7.org/fhir/participantrequired"; 339 case INFORMATIONONLY: return "http://hl7.org/fhir/participantrequired"; 340 default: return "?"; 341 } 342 } 343 public String getDefinition() { 344 switch (this) { 345 case REQUIRED: return "The participant is required to attend the appointment."; 346 case OPTIONAL: return "The participant may optionally attend the appointment."; 347 case INFORMATIONONLY: return "The participant is excluded from the appointment, and might not be informed of the appointment taking place. (Appointment is about them, not for them - such as 2 doctors discussing results about a patient's test)."; 348 default: return "?"; 349 } 350 } 351 public String getDisplay() { 352 switch (this) { 353 case REQUIRED: return "Required"; 354 case OPTIONAL: return "Optional"; 355 case INFORMATIONONLY: return "Information Only"; 356 default: return "?"; 357 } 358 } 359 } 360 361 public static class ParticipantRequiredEnumFactory implements EnumFactory<ParticipantRequired> { 362 public ParticipantRequired fromCode(String codeString) throws IllegalArgumentException { 363 if (codeString == null || "".equals(codeString)) 364 if (codeString == null || "".equals(codeString)) 365 return null; 366 if ("required".equals(codeString)) 367 return ParticipantRequired.REQUIRED; 368 if ("optional".equals(codeString)) 369 return ParticipantRequired.OPTIONAL; 370 if ("information-only".equals(codeString)) 371 return ParticipantRequired.INFORMATIONONLY; 372 throw new IllegalArgumentException("Unknown ParticipantRequired code '"+codeString+"'"); 373 } 374 public Enumeration<ParticipantRequired> fromType(Base code) throws FHIRException { 375 if (code == null) 376 return null; 377 if (code.isEmpty()) 378 return new Enumeration<ParticipantRequired>(this); 379 String codeString = ((PrimitiveType) code).asStringValue(); 380 if (codeString == null || "".equals(codeString)) 381 return null; 382 if ("required".equals(codeString)) 383 return new Enumeration<ParticipantRequired>(this, ParticipantRequired.REQUIRED); 384 if ("optional".equals(codeString)) 385 return new Enumeration<ParticipantRequired>(this, ParticipantRequired.OPTIONAL); 386 if ("information-only".equals(codeString)) 387 return new Enumeration<ParticipantRequired>(this, ParticipantRequired.INFORMATIONONLY); 388 throw new FHIRException("Unknown ParticipantRequired code '"+codeString+"'"); 389 } 390 public String toCode(ParticipantRequired code) { 391 if (code == ParticipantRequired.REQUIRED) 392 return "required"; 393 if (code == ParticipantRequired.OPTIONAL) 394 return "optional"; 395 if (code == ParticipantRequired.INFORMATIONONLY) 396 return "information-only"; 397 return "?"; 398 } 399 public String toSystem(ParticipantRequired code) { 400 return code.getSystem(); 401 } 402 } 403 404 @Block() 405 public static class AppointmentParticipantComponent extends BackboneElement implements IBaseBackboneElement { 406 /** 407 * Role of participant in the appointment. 408 */ 409 @Child(name = "type", type = {CodeableConcept.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 410 @Description(shortDefinition="Role of participant in the appointment", formalDefinition="Role of participant in the appointment." ) 411 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/encounter-participant-type") 412 protected List<CodeableConcept> type; 413 414 /** 415 * A Person, Location/HealthcareService or Device that is participating in the appointment. 416 */ 417 @Child(name = "actor", type = {Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class, Device.class, HealthcareService.class, Location.class}, order=2, min=0, max=1, modifier=false, summary=true) 418 @Description(shortDefinition="Person, Location/HealthcareService or Device", formalDefinition="A Person, Location/HealthcareService or Device that is participating in the appointment." ) 419 protected Reference actor; 420 421 /** 422 * Whether this participant is required to be present at the meeting. This covers a use-case where two doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present. 423 */ 424 @Child(name = "required", type = {CodeType.class}, order=3, min=0, max=1, modifier=false, summary=true) 425 @Description(shortDefinition="required | optional | information-only", formalDefinition="Whether this participant is required to be present at the meeting. This covers a use-case where two doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present." ) 426 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/participantrequired") 427 protected Enumeration<ParticipantRequired> required; 428 429 /** 430 * Participation status of the actor. 431 */ 432 @Child(name = "status", type = {CodeType.class}, order=4, min=1, max=1, modifier=false, summary=true) 433 @Description(shortDefinition="accepted | declined | tentative | needs-action", formalDefinition="Participation status of the actor." ) 434 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/participationstatus") 435 protected Enumeration<ParticipationStatus> status; 436 437 /** 438 * Participation period of the actor. 439 */ 440 @Child(name = "period", type = {Period.class}, order=5, min=0, max=1, modifier=false, summary=false) 441 @Description(shortDefinition="Participation period of the actor", formalDefinition="Participation period of the actor." ) 442 protected Period period; 443 444 private static final long serialVersionUID = -1993862145L; 445 446 /** 447 * Constructor 448 */ 449 public AppointmentParticipantComponent() { 450 super(); 451 } 452 453 /** 454 * Constructor 455 */ 456 public AppointmentParticipantComponent(ParticipationStatus status) { 457 super(); 458 this.setStatus(status); 459 } 460 461 /** 462 * @return {@link #type} (Role of participant in the appointment.) 463 */ 464 public List<CodeableConcept> getType() { 465 if (this.type == null) 466 this.type = new ArrayList<CodeableConcept>(); 467 return this.type; 468 } 469 470 /** 471 * @return Returns a reference to <code>this</code> for easy method chaining 472 */ 473 public AppointmentParticipantComponent setType(List<CodeableConcept> theType) { 474 this.type = theType; 475 return this; 476 } 477 478 public boolean hasType() { 479 if (this.type == null) 480 return false; 481 for (CodeableConcept item : this.type) 482 if (!item.isEmpty()) 483 return true; 484 return false; 485 } 486 487 public CodeableConcept addType() { //3 488 CodeableConcept t = new CodeableConcept(); 489 if (this.type == null) 490 this.type = new ArrayList<CodeableConcept>(); 491 this.type.add(t); 492 return t; 493 } 494 495 public AppointmentParticipantComponent addType(CodeableConcept t) { //3 496 if (t == null) 497 return this; 498 if (this.type == null) 499 this.type = new ArrayList<CodeableConcept>(); 500 this.type.add(t); 501 return this; 502 } 503 504 /** 505 * @return The first repetition of repeating field {@link #type}, creating it if it does not already exist {3} 506 */ 507 public CodeableConcept getTypeFirstRep() { 508 if (getType().isEmpty()) { 509 addType(); 510 } 511 return getType().get(0); 512 } 513 514 /** 515 * @return {@link #actor} (A Person, Location/HealthcareService or Device that is participating in the appointment.) 516 */ 517 public Reference getActor() { 518 if (this.actor == null) 519 if (Configuration.errorOnAutoCreate()) 520 throw new Error("Attempt to auto-create AppointmentParticipantComponent.actor"); 521 else if (Configuration.doAutoCreate()) 522 this.actor = new Reference(); // cc 523 return this.actor; 524 } 525 526 public boolean hasActor() { 527 return this.actor != null && !this.actor.isEmpty(); 528 } 529 530 /** 531 * @param value {@link #actor} (A Person, Location/HealthcareService or Device that is participating in the appointment.) 532 */ 533 public AppointmentParticipantComponent setActor(Reference value) { 534 this.actor = value; 535 return this; 536 } 537 538 /** 539 * @return {@link #required} (Whether this participant is required to be present at the meeting. This covers a use-case where two doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present.). This is the underlying object with id, value and extensions. The accessor "getRequired" gives direct access to the value 540 */ 541 public Enumeration<ParticipantRequired> getRequiredElement() { 542 if (this.required == null) 543 if (Configuration.errorOnAutoCreate()) 544 throw new Error("Attempt to auto-create AppointmentParticipantComponent.required"); 545 else if (Configuration.doAutoCreate()) 546 this.required = new Enumeration<ParticipantRequired>(new ParticipantRequiredEnumFactory()); // bb 547 return this.required; 548 } 549 550 public boolean hasRequiredElement() { 551 return this.required != null && !this.required.isEmpty(); 552 } 553 554 public boolean hasRequired() { 555 return this.required != null && !this.required.isEmpty(); 556 } 557 558 /** 559 * @param value {@link #required} (Whether this participant is required to be present at the meeting. This covers a use-case where two doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present.). This is the underlying object with id, value and extensions. The accessor "getRequired" gives direct access to the value 560 */ 561 public AppointmentParticipantComponent setRequiredElement(Enumeration<ParticipantRequired> value) { 562 this.required = value; 563 return this; 564 } 565 566 /** 567 * @return Whether this participant is required to be present at the meeting. This covers a use-case where two doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present. 568 */ 569 public ParticipantRequired getRequired() { 570 return this.required == null ? null : this.required.getValue(); 571 } 572 573 /** 574 * @param value Whether this participant is required to be present at the meeting. This covers a use-case where two doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present. 575 */ 576 public AppointmentParticipantComponent setRequired(ParticipantRequired value) { 577 if (value == null) 578 this.required = null; 579 else { 580 if (this.required == null) 581 this.required = new Enumeration<ParticipantRequired>(new ParticipantRequiredEnumFactory()); 582 this.required.setValue(value); 583 } 584 return this; 585 } 586 587 /** 588 * @return {@link #status} (Participation status of the actor.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 589 */ 590 public Enumeration<ParticipationStatus> getStatusElement() { 591 if (this.status == null) 592 if (Configuration.errorOnAutoCreate()) 593 throw new Error("Attempt to auto-create AppointmentParticipantComponent.status"); 594 else if (Configuration.doAutoCreate()) 595 this.status = new Enumeration<ParticipationStatus>(new ParticipationStatusEnumFactory()); // bb 596 return this.status; 597 } 598 599 public boolean hasStatusElement() { 600 return this.status != null && !this.status.isEmpty(); 601 } 602 603 public boolean hasStatus() { 604 return this.status != null && !this.status.isEmpty(); 605 } 606 607 /** 608 * @param value {@link #status} (Participation status of the actor.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 609 */ 610 public AppointmentParticipantComponent setStatusElement(Enumeration<ParticipationStatus> value) { 611 this.status = value; 612 return this; 613 } 614 615 /** 616 * @return Participation status of the actor. 617 */ 618 public ParticipationStatus getStatus() { 619 return this.status == null ? null : this.status.getValue(); 620 } 621 622 /** 623 * @param value Participation status of the actor. 624 */ 625 public AppointmentParticipantComponent setStatus(ParticipationStatus value) { 626 if (this.status == null) 627 this.status = new Enumeration<ParticipationStatus>(new ParticipationStatusEnumFactory()); 628 this.status.setValue(value); 629 return this; 630 } 631 632 /** 633 * @return {@link #period} (Participation period of the actor.) 634 */ 635 public Period getPeriod() { 636 if (this.period == null) 637 if (Configuration.errorOnAutoCreate()) 638 throw new Error("Attempt to auto-create AppointmentParticipantComponent.period"); 639 else if (Configuration.doAutoCreate()) 640 this.period = new Period(); // cc 641 return this.period; 642 } 643 644 public boolean hasPeriod() { 645 return this.period != null && !this.period.isEmpty(); 646 } 647 648 /** 649 * @param value {@link #period} (Participation period of the actor.) 650 */ 651 public AppointmentParticipantComponent setPeriod(Period value) { 652 this.period = value; 653 return this; 654 } 655 656 protected void listChildren(List<Property> children) { 657 super.listChildren(children); 658 children.add(new Property("type", "CodeableConcept", "Role of participant in the appointment.", 0, java.lang.Integer.MAX_VALUE, type)); 659 children.add(new Property("actor", "Reference(Patient|Practitioner|PractitionerRole|RelatedPerson|Device|HealthcareService|Location)", "A Person, Location/HealthcareService or Device that is participating in the appointment.", 0, 1, actor)); 660 children.add(new Property("required", "code", "Whether this participant is required to be present at the meeting. This covers a use-case where two doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present.", 0, 1, required)); 661 children.add(new Property("status", "code", "Participation status of the actor.", 0, 1, status)); 662 children.add(new Property("period", "Period", "Participation period of the actor.", 0, 1, period)); 663 } 664 665 @Override 666 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 667 switch (_hash) { 668 case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Role of participant in the appointment.", 0, java.lang.Integer.MAX_VALUE, type); 669 case 92645877: /*actor*/ return new Property("actor", "Reference(Patient|Practitioner|PractitionerRole|RelatedPerson|Device|HealthcareService|Location)", "A Person, Location/HealthcareService or Device that is participating in the appointment.", 0, 1, actor); 670 case -393139297: /*required*/ return new Property("required", "code", "Whether this participant is required to be present at the meeting. This covers a use-case where two doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present.", 0, 1, required); 671 case -892481550: /*status*/ return new Property("status", "code", "Participation status of the actor.", 0, 1, status); 672 case -991726143: /*period*/ return new Property("period", "Period", "Participation period of the actor.", 0, 1, period); 673 default: return super.getNamedProperty(_hash, _name, _checkValid); 674 } 675 676 } 677 678 @Override 679 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 680 switch (hash) { 681 case 3575610: /*type*/ return this.type == null ? new Base[0] : this.type.toArray(new Base[this.type.size()]); // CodeableConcept 682 case 92645877: /*actor*/ return this.actor == null ? new Base[0] : new Base[] {this.actor}; // Reference 683 case -393139297: /*required*/ return this.required == null ? new Base[0] : new Base[] {this.required}; // Enumeration<ParticipantRequired> 684 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<ParticipationStatus> 685 case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period 686 default: return super.getProperty(hash, name, checkValid); 687 } 688 689 } 690 691 @Override 692 public Base setProperty(int hash, String name, Base value) throws FHIRException { 693 switch (hash) { 694 case 3575610: // type 695 this.getType().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 696 return value; 697 case 92645877: // actor 698 this.actor = TypeConvertor.castToReference(value); // Reference 699 return value; 700 case -393139297: // required 701 value = new ParticipantRequiredEnumFactory().fromType(TypeConvertor.castToCode(value)); 702 this.required = (Enumeration) value; // Enumeration<ParticipantRequired> 703 return value; 704 case -892481550: // status 705 value = new ParticipationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 706 this.status = (Enumeration) value; // Enumeration<ParticipationStatus> 707 return value; 708 case -991726143: // period 709 this.period = TypeConvertor.castToPeriod(value); // Period 710 return value; 711 default: return super.setProperty(hash, name, value); 712 } 713 714 } 715 716 @Override 717 public Base setProperty(String name, Base value) throws FHIRException { 718 if (name.equals("type")) { 719 this.getType().add(TypeConvertor.castToCodeableConcept(value)); 720 } else if (name.equals("actor")) { 721 this.actor = TypeConvertor.castToReference(value); // Reference 722 } else if (name.equals("required")) { 723 value = new ParticipantRequiredEnumFactory().fromType(TypeConvertor.castToCode(value)); 724 this.required = (Enumeration) value; // Enumeration<ParticipantRequired> 725 } else if (name.equals("status")) { 726 value = new ParticipationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 727 this.status = (Enumeration) value; // Enumeration<ParticipationStatus> 728 } else if (name.equals("period")) { 729 this.period = TypeConvertor.castToPeriod(value); // Period 730 } else 731 return super.setProperty(name, value); 732 return value; 733 } 734 735 @Override 736 public Base makeProperty(int hash, String name) throws FHIRException { 737 switch (hash) { 738 case 3575610: return addType(); 739 case 92645877: return getActor(); 740 case -393139297: return getRequiredElement(); 741 case -892481550: return getStatusElement(); 742 case -991726143: return getPeriod(); 743 default: return super.makeProperty(hash, name); 744 } 745 746 } 747 748 @Override 749 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 750 switch (hash) { 751 case 3575610: /*type*/ return new String[] {"CodeableConcept"}; 752 case 92645877: /*actor*/ return new String[] {"Reference"}; 753 case -393139297: /*required*/ return new String[] {"code"}; 754 case -892481550: /*status*/ return new String[] {"code"}; 755 case -991726143: /*period*/ return new String[] {"Period"}; 756 default: return super.getTypesForProperty(hash, name); 757 } 758 759 } 760 761 @Override 762 public Base addChild(String name) throws FHIRException { 763 if (name.equals("type")) { 764 return addType(); 765 } 766 else if (name.equals("actor")) { 767 this.actor = new Reference(); 768 return this.actor; 769 } 770 else if (name.equals("required")) { 771 throw new FHIRException("Cannot call addChild on a primitive type Appointment.participant.required"); 772 } 773 else if (name.equals("status")) { 774 throw new FHIRException("Cannot call addChild on a primitive type Appointment.participant.status"); 775 } 776 else if (name.equals("period")) { 777 this.period = new Period(); 778 return this.period; 779 } 780 else 781 return super.addChild(name); 782 } 783 784 public AppointmentParticipantComponent copy() { 785 AppointmentParticipantComponent dst = new AppointmentParticipantComponent(); 786 copyValues(dst); 787 return dst; 788 } 789 790 public void copyValues(AppointmentParticipantComponent dst) { 791 super.copyValues(dst); 792 if (type != null) { 793 dst.type = new ArrayList<CodeableConcept>(); 794 for (CodeableConcept i : type) 795 dst.type.add(i.copy()); 796 }; 797 dst.actor = actor == null ? null : actor.copy(); 798 dst.required = required == null ? null : required.copy(); 799 dst.status = status == null ? null : status.copy(); 800 dst.period = period == null ? null : period.copy(); 801 } 802 803 @Override 804 public boolean equalsDeep(Base other_) { 805 if (!super.equalsDeep(other_)) 806 return false; 807 if (!(other_ instanceof AppointmentParticipantComponent)) 808 return false; 809 AppointmentParticipantComponent o = (AppointmentParticipantComponent) other_; 810 return compareDeep(type, o.type, true) && compareDeep(actor, o.actor, true) && compareDeep(required, o.required, true) 811 && compareDeep(status, o.status, true) && compareDeep(period, o.period, true); 812 } 813 814 @Override 815 public boolean equalsShallow(Base other_) { 816 if (!super.equalsShallow(other_)) 817 return false; 818 if (!(other_ instanceof AppointmentParticipantComponent)) 819 return false; 820 AppointmentParticipantComponent o = (AppointmentParticipantComponent) other_; 821 return compareValues(required, o.required, true) && compareValues(status, o.status, true); 822 } 823 824 public boolean isEmpty() { 825 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, actor, required, status 826 , period); 827 } 828 829 public String fhirType() { 830 return "Appointment.participant"; 831 832 } 833 834 } 835 836 /** 837 * This records identifiers associated with this appointment concern that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation). 838 */ 839 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 840 @Description(shortDefinition="External Ids for this item", formalDefinition="This records identifiers associated with this appointment concern that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)." ) 841 protected List<Identifier> identifier; 842 843 /** 844 * The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status. 845 */ 846 @Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true) 847 @Description(shortDefinition="proposed | pending | booked | arrived | fulfilled | cancelled | noshow | entered-in-error | checked-in | waitlist", formalDefinition="The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status." ) 848 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/appointmentstatus") 849 protected Enumeration<AppointmentStatus> status; 850 851 /** 852 * The coded reason for the appointment being cancelled. This is often used in reporting/billing/futher processing to determine if further actions are required, or specific fees apply. 853 */ 854 @Child(name = "cancelationReason", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=true) 855 @Description(shortDefinition="The coded reason for the appointment being cancelled", formalDefinition="The coded reason for the appointment being cancelled. This is often used in reporting/billing/futher processing to determine if further actions are required, or specific fees apply." ) 856 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/appointment-cancellation-reason") 857 protected CodeableConcept cancelationReason; 858 859 /** 860 * A broad categorization of the service that is to be performed during this appointment. 861 */ 862 @Child(name = "serviceCategory", type = {CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 863 @Description(shortDefinition="A broad categorization of the service that is to be performed during this appointment", formalDefinition="A broad categorization of the service that is to be performed during this appointment." ) 864 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/service-category") 865 protected List<CodeableConcept> serviceCategory; 866 867 /** 868 * The specific service that is to be performed during this appointment. 869 */ 870 @Child(name = "serviceType", type = {CodeableConcept.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 871 @Description(shortDefinition="The specific service that is to be performed during this appointment", formalDefinition="The specific service that is to be performed during this appointment." ) 872 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/service-type") 873 protected List<CodeableConcept> serviceType; 874 875 /** 876 * The specialty of a practitioner that would be required to perform the service requested in this appointment. 877 */ 878 @Child(name = "specialty", type = {CodeableConcept.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 879 @Description(shortDefinition="The specialty of a practitioner that would be required to perform the service requested in this appointment", formalDefinition="The specialty of a practitioner that would be required to perform the service requested in this appointment." ) 880 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/c80-practice-codes") 881 protected List<CodeableConcept> specialty; 882 883 /** 884 * The style of appointment or patient that has been booked in the slot (not service type). 885 */ 886 @Child(name = "appointmentType", type = {CodeableConcept.class}, order=6, min=0, max=1, modifier=false, summary=true) 887 @Description(shortDefinition="The style of appointment or patient that has been booked in the slot (not service type)", formalDefinition="The style of appointment or patient that has been booked in the slot (not service type)." ) 888 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://terminology.hl7.org/ValueSet/v2-0276") 889 protected CodeableConcept appointmentType; 890 891 /** 892 * The reason that this appointment is being scheduled. This is more clinical than administrative. This can be coded, or as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure. 893 */ 894 @Child(name = "reason", type = {CodeableReference.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 895 @Description(shortDefinition="Reason this appointment is scheduled", formalDefinition="The reason that this appointment is being scheduled. This is more clinical than administrative. This can be coded, or as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure." ) 896 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/encounter-reason") 897 protected List<CodeableReference> reason; 898 899 /** 900 * The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority). 901 */ 902 @Child(name = "priority", type = {UnsignedIntType.class}, order=8, min=0, max=1, modifier=false, summary=false) 903 @Description(shortDefinition="Used to make informed decisions if needing to re-prioritize", formalDefinition="The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority)." ) 904 protected UnsignedIntType priority; 905 906 /** 907 * The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field. 908 */ 909 @Child(name = "description", type = {StringType.class}, order=9, min=0, max=1, modifier=false, summary=false) 910 @Description(shortDefinition="Shown on a subject line in a meeting request, or appointment list", formalDefinition="The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field." ) 911 protected StringType description; 912 913 /** 914 * Additional information to support the appointment provided when making the appointment. 915 */ 916 @Child(name = "supportingInformation", type = {Reference.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 917 @Description(shortDefinition="Additional information to support the appointment", formalDefinition="Additional information to support the appointment provided when making the appointment." ) 918 protected List<Reference> supportingInformation; 919 920 /** 921 * Date/Time that the appointment is to take place. 922 */ 923 @Child(name = "start", type = {InstantType.class}, order=11, min=0, max=1, modifier=false, summary=true) 924 @Description(shortDefinition="When appointment is to take place", formalDefinition="Date/Time that the appointment is to take place." ) 925 protected InstantType start; 926 927 /** 928 * Date/Time that the appointment is to conclude. 929 */ 930 @Child(name = "end", type = {InstantType.class}, order=12, min=0, max=1, modifier=false, summary=true) 931 @Description(shortDefinition="When appointment is to conclude", formalDefinition="Date/Time that the appointment is to conclude." ) 932 protected InstantType end; 933 934 /** 935 * Number of minutes that the appointment is to take. This can be less than the duration between the start and end times. For example, where the actual time of appointment is only an estimate or if a 30 minute appointment is being requested, but any time would work. Also, if there is, for example, a planned 15 minute break in the middle of a long appointment, the duration may be 15 minutes less than the difference between the start and end. 936 */ 937 @Child(name = "minutesDuration", type = {PositiveIntType.class}, order=13, min=0, max=1, modifier=false, summary=false) 938 @Description(shortDefinition="Can be less than start/end (e.g. estimate)", formalDefinition="Number of minutes that the appointment is to take. This can be less than the duration between the start and end times. For example, where the actual time of appointment is only an estimate or if a 30 minute appointment is being requested, but any time would work. Also, if there is, for example, a planned 15 minute break in the middle of a long appointment, the duration may be 15 minutes less than the difference between the start and end." ) 939 protected PositiveIntType minutesDuration; 940 941 /** 942 * The slots from the participants' schedules that will be filled by the appointment. 943 */ 944 @Child(name = "slot", type = {Slot.class}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 945 @Description(shortDefinition="The slots that this appointment is filling", formalDefinition="The slots from the participants' schedules that will be filled by the appointment." ) 946 protected List<Reference> slot; 947 948 /** 949 * The date that this appointment was initially created. This could be different to the meta.lastModified value on the initial entry, as this could have been before the resource was created on the FHIR server, and should remain unchanged over the lifespan of the appointment. 950 */ 951 @Child(name = "created", type = {DateTimeType.class}, order=15, min=0, max=1, modifier=false, summary=false) 952 @Description(shortDefinition="The date that this appointment was initially created", formalDefinition="The date that this appointment was initially created. This could be different to the meta.lastModified value on the initial entry, as this could have been before the resource was created on the FHIR server, and should remain unchanged over the lifespan of the appointment." ) 953 protected DateTimeType created; 954 955 /** 956 * Additional comments about the appointment. 957 */ 958 @Child(name = "comment", type = {StringType.class}, order=16, min=0, max=1, modifier=false, summary=false) 959 @Description(shortDefinition="Additional comments", formalDefinition="Additional comments about the appointment." ) 960 protected StringType comment; 961 962 /** 963 * While Appointment.comment contains information for internal use, Appointment.patientInstructions is used to capture patient facing information about the Appointment (e.g. please bring your referral or fast from 8pm night before). 964 */ 965 @Child(name = "patientInstruction", type = {StringType.class}, order=17, min=0, max=1, modifier=false, summary=false) 966 @Description(shortDefinition="Detailed information and instructions for the patient", formalDefinition="While Appointment.comment contains information for internal use, Appointment.patientInstructions is used to capture patient facing information about the Appointment (e.g. please bring your referral or fast from 8pm night before)." ) 967 protected StringType patientInstruction; 968 969 /** 970 * The service request this appointment is allocated to assess (e.g. incoming referral or procedure request). 971 */ 972 @Child(name = "basedOn", type = {ServiceRequest.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 973 @Description(shortDefinition="The service request this appointment is allocated to assess", formalDefinition="The service request this appointment is allocated to assess (e.g. incoming referral or procedure request)." ) 974 protected List<Reference> basedOn; 975 976 /** 977 * List of participants involved in the appointment. 978 */ 979 @Child(name = "participant", type = {}, order=19, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 980 @Description(shortDefinition="Participants involved in appointment", formalDefinition="List of participants involved in the appointment." ) 981 protected List<AppointmentParticipantComponent> participant; 982 983 /** 984 * A set of date ranges (potentially including times) that the appointment is preferred to be scheduled within. 985 986The duration (usually in minutes) could also be provided to indicate the length of the appointment to fill and populate the start/end times for the actual allocated time. However, in other situations the duration may be calculated by the scheduling system. 987 */ 988 @Child(name = "requestedPeriod", type = {Period.class}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 989 @Description(shortDefinition="Potential date/time interval(s) requested to allocate the appointment within", formalDefinition="A set of date ranges (potentially including times) that the appointment is preferred to be scheduled within.\n\nThe duration (usually in minutes) could also be provided to indicate the length of the appointment to fill and populate the start/end times for the actual allocated time. However, in other situations the duration may be calculated by the scheduling system." ) 990 protected List<Period> requestedPeriod; 991 992 private static final long serialVersionUID = 1849497415L; 993 994 /** 995 * Constructor 996 */ 997 public Appointment() { 998 super(); 999 } 1000 1001 /** 1002 * Constructor 1003 */ 1004 public Appointment(AppointmentStatus status, AppointmentParticipantComponent participant) { 1005 super(); 1006 this.setStatus(status); 1007 this.addParticipant(participant); 1008 } 1009 1010 /** 1011 * @return {@link #identifier} (This records identifiers associated with this appointment concern that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).) 1012 */ 1013 public List<Identifier> getIdentifier() { 1014 if (this.identifier == null) 1015 this.identifier = new ArrayList<Identifier>(); 1016 return this.identifier; 1017 } 1018 1019 /** 1020 * @return Returns a reference to <code>this</code> for easy method chaining 1021 */ 1022 public Appointment setIdentifier(List<Identifier> theIdentifier) { 1023 this.identifier = theIdentifier; 1024 return this; 1025 } 1026 1027 public boolean hasIdentifier() { 1028 if (this.identifier == null) 1029 return false; 1030 for (Identifier item : this.identifier) 1031 if (!item.isEmpty()) 1032 return true; 1033 return false; 1034 } 1035 1036 public Identifier addIdentifier() { //3 1037 Identifier t = new Identifier(); 1038 if (this.identifier == null) 1039 this.identifier = new ArrayList<Identifier>(); 1040 this.identifier.add(t); 1041 return t; 1042 } 1043 1044 public Appointment addIdentifier(Identifier t) { //3 1045 if (t == null) 1046 return this; 1047 if (this.identifier == null) 1048 this.identifier = new ArrayList<Identifier>(); 1049 this.identifier.add(t); 1050 return this; 1051 } 1052 1053 /** 1054 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} 1055 */ 1056 public Identifier getIdentifierFirstRep() { 1057 if (getIdentifier().isEmpty()) { 1058 addIdentifier(); 1059 } 1060 return getIdentifier().get(0); 1061 } 1062 1063 /** 1064 * @return {@link #status} (The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 1065 */ 1066 public Enumeration<AppointmentStatus> getStatusElement() { 1067 if (this.status == null) 1068 if (Configuration.errorOnAutoCreate()) 1069 throw new Error("Attempt to auto-create Appointment.status"); 1070 else if (Configuration.doAutoCreate()) 1071 this.status = new Enumeration<AppointmentStatus>(new AppointmentStatusEnumFactory()); // bb 1072 return this.status; 1073 } 1074 1075 public boolean hasStatusElement() { 1076 return this.status != null && !this.status.isEmpty(); 1077 } 1078 1079 public boolean hasStatus() { 1080 return this.status != null && !this.status.isEmpty(); 1081 } 1082 1083 /** 1084 * @param value {@link #status} (The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 1085 */ 1086 public Appointment setStatusElement(Enumeration<AppointmentStatus> value) { 1087 this.status = value; 1088 return this; 1089 } 1090 1091 /** 1092 * @return The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status. 1093 */ 1094 public AppointmentStatus getStatus() { 1095 return this.status == null ? null : this.status.getValue(); 1096 } 1097 1098 /** 1099 * @param value The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status. 1100 */ 1101 public Appointment setStatus(AppointmentStatus value) { 1102 if (this.status == null) 1103 this.status = new Enumeration<AppointmentStatus>(new AppointmentStatusEnumFactory()); 1104 this.status.setValue(value); 1105 return this; 1106 } 1107 1108 /** 1109 * @return {@link #cancelationReason} (The coded reason for the appointment being cancelled. This is often used in reporting/billing/futher processing to determine if further actions are required, or specific fees apply.) 1110 */ 1111 public CodeableConcept getCancelationReason() { 1112 if (this.cancelationReason == null) 1113 if (Configuration.errorOnAutoCreate()) 1114 throw new Error("Attempt to auto-create Appointment.cancelationReason"); 1115 else if (Configuration.doAutoCreate()) 1116 this.cancelationReason = new CodeableConcept(); // cc 1117 return this.cancelationReason; 1118 } 1119 1120 public boolean hasCancelationReason() { 1121 return this.cancelationReason != null && !this.cancelationReason.isEmpty(); 1122 } 1123 1124 /** 1125 * @param value {@link #cancelationReason} (The coded reason for the appointment being cancelled. This is often used in reporting/billing/futher processing to determine if further actions are required, or specific fees apply.) 1126 */ 1127 public Appointment setCancelationReason(CodeableConcept value) { 1128 this.cancelationReason = value; 1129 return this; 1130 } 1131 1132 /** 1133 * @return {@link #serviceCategory} (A broad categorization of the service that is to be performed during this appointment.) 1134 */ 1135 public List<CodeableConcept> getServiceCategory() { 1136 if (this.serviceCategory == null) 1137 this.serviceCategory = new ArrayList<CodeableConcept>(); 1138 return this.serviceCategory; 1139 } 1140 1141 /** 1142 * @return Returns a reference to <code>this</code> for easy method chaining 1143 */ 1144 public Appointment setServiceCategory(List<CodeableConcept> theServiceCategory) { 1145 this.serviceCategory = theServiceCategory; 1146 return this; 1147 } 1148 1149 public boolean hasServiceCategory() { 1150 if (this.serviceCategory == null) 1151 return false; 1152 for (CodeableConcept item : this.serviceCategory) 1153 if (!item.isEmpty()) 1154 return true; 1155 return false; 1156 } 1157 1158 public CodeableConcept addServiceCategory() { //3 1159 CodeableConcept t = new CodeableConcept(); 1160 if (this.serviceCategory == null) 1161 this.serviceCategory = new ArrayList<CodeableConcept>(); 1162 this.serviceCategory.add(t); 1163 return t; 1164 } 1165 1166 public Appointment addServiceCategory(CodeableConcept t) { //3 1167 if (t == null) 1168 return this; 1169 if (this.serviceCategory == null) 1170 this.serviceCategory = new ArrayList<CodeableConcept>(); 1171 this.serviceCategory.add(t); 1172 return this; 1173 } 1174 1175 /** 1176 * @return The first repetition of repeating field {@link #serviceCategory}, creating it if it does not already exist {3} 1177 */ 1178 public CodeableConcept getServiceCategoryFirstRep() { 1179 if (getServiceCategory().isEmpty()) { 1180 addServiceCategory(); 1181 } 1182 return getServiceCategory().get(0); 1183 } 1184 1185 /** 1186 * @return {@link #serviceType} (The specific service that is to be performed during this appointment.) 1187 */ 1188 public List<CodeableConcept> getServiceType() { 1189 if (this.serviceType == null) 1190 this.serviceType = new ArrayList<CodeableConcept>(); 1191 return this.serviceType; 1192 } 1193 1194 /** 1195 * @return Returns a reference to <code>this</code> for easy method chaining 1196 */ 1197 public Appointment setServiceType(List<CodeableConcept> theServiceType) { 1198 this.serviceType = theServiceType; 1199 return this; 1200 } 1201 1202 public boolean hasServiceType() { 1203 if (this.serviceType == null) 1204 return false; 1205 for (CodeableConcept item : this.serviceType) 1206 if (!item.isEmpty()) 1207 return true; 1208 return false; 1209 } 1210 1211 public CodeableConcept addServiceType() { //3 1212 CodeableConcept t = new CodeableConcept(); 1213 if (this.serviceType == null) 1214 this.serviceType = new ArrayList<CodeableConcept>(); 1215 this.serviceType.add(t); 1216 return t; 1217 } 1218 1219 public Appointment addServiceType(CodeableConcept t) { //3 1220 if (t == null) 1221 return this; 1222 if (this.serviceType == null) 1223 this.serviceType = new ArrayList<CodeableConcept>(); 1224 this.serviceType.add(t); 1225 return this; 1226 } 1227 1228 /** 1229 * @return The first repetition of repeating field {@link #serviceType}, creating it if it does not already exist {3} 1230 */ 1231 public CodeableConcept getServiceTypeFirstRep() { 1232 if (getServiceType().isEmpty()) { 1233 addServiceType(); 1234 } 1235 return getServiceType().get(0); 1236 } 1237 1238 /** 1239 * @return {@link #specialty} (The specialty of a practitioner that would be required to perform the service requested in this appointment.) 1240 */ 1241 public List<CodeableConcept> getSpecialty() { 1242 if (this.specialty == null) 1243 this.specialty = new ArrayList<CodeableConcept>(); 1244 return this.specialty; 1245 } 1246 1247 /** 1248 * @return Returns a reference to <code>this</code> for easy method chaining 1249 */ 1250 public Appointment setSpecialty(List<CodeableConcept> theSpecialty) { 1251 this.specialty = theSpecialty; 1252 return this; 1253 } 1254 1255 public boolean hasSpecialty() { 1256 if (this.specialty == null) 1257 return false; 1258 for (CodeableConcept item : this.specialty) 1259 if (!item.isEmpty()) 1260 return true; 1261 return false; 1262 } 1263 1264 public CodeableConcept addSpecialty() { //3 1265 CodeableConcept t = new CodeableConcept(); 1266 if (this.specialty == null) 1267 this.specialty = new ArrayList<CodeableConcept>(); 1268 this.specialty.add(t); 1269 return t; 1270 } 1271 1272 public Appointment addSpecialty(CodeableConcept t) { //3 1273 if (t == null) 1274 return this; 1275 if (this.specialty == null) 1276 this.specialty = new ArrayList<CodeableConcept>(); 1277 this.specialty.add(t); 1278 return this; 1279 } 1280 1281 /** 1282 * @return The first repetition of repeating field {@link #specialty}, creating it if it does not already exist {3} 1283 */ 1284 public CodeableConcept getSpecialtyFirstRep() { 1285 if (getSpecialty().isEmpty()) { 1286 addSpecialty(); 1287 } 1288 return getSpecialty().get(0); 1289 } 1290 1291 /** 1292 * @return {@link #appointmentType} (The style of appointment or patient that has been booked in the slot (not service type).) 1293 */ 1294 public CodeableConcept getAppointmentType() { 1295 if (this.appointmentType == null) 1296 if (Configuration.errorOnAutoCreate()) 1297 throw new Error("Attempt to auto-create Appointment.appointmentType"); 1298 else if (Configuration.doAutoCreate()) 1299 this.appointmentType = new CodeableConcept(); // cc 1300 return this.appointmentType; 1301 } 1302 1303 public boolean hasAppointmentType() { 1304 return this.appointmentType != null && !this.appointmentType.isEmpty(); 1305 } 1306 1307 /** 1308 * @param value {@link #appointmentType} (The style of appointment or patient that has been booked in the slot (not service type).) 1309 */ 1310 public Appointment setAppointmentType(CodeableConcept value) { 1311 this.appointmentType = value; 1312 return this; 1313 } 1314 1315 /** 1316 * @return {@link #reason} (The reason that this appointment is being scheduled. This is more clinical than administrative. This can be coded, or as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure.) 1317 */ 1318 public List<CodeableReference> getReason() { 1319 if (this.reason == null) 1320 this.reason = new ArrayList<CodeableReference>(); 1321 return this.reason; 1322 } 1323 1324 /** 1325 * @return Returns a reference to <code>this</code> for easy method chaining 1326 */ 1327 public Appointment setReason(List<CodeableReference> theReason) { 1328 this.reason = theReason; 1329 return this; 1330 } 1331 1332 public boolean hasReason() { 1333 if (this.reason == null) 1334 return false; 1335 for (CodeableReference item : this.reason) 1336 if (!item.isEmpty()) 1337 return true; 1338 return false; 1339 } 1340 1341 public CodeableReference addReason() { //3 1342 CodeableReference t = new CodeableReference(); 1343 if (this.reason == null) 1344 this.reason = new ArrayList<CodeableReference>(); 1345 this.reason.add(t); 1346 return t; 1347 } 1348 1349 public Appointment addReason(CodeableReference t) { //3 1350 if (t == null) 1351 return this; 1352 if (this.reason == null) 1353 this.reason = new ArrayList<CodeableReference>(); 1354 this.reason.add(t); 1355 return this; 1356 } 1357 1358 /** 1359 * @return The first repetition of repeating field {@link #reason}, creating it if it does not already exist {3} 1360 */ 1361 public CodeableReference getReasonFirstRep() { 1362 if (getReason().isEmpty()) { 1363 addReason(); 1364 } 1365 return getReason().get(0); 1366 } 1367 1368 /** 1369 * @return {@link #priority} (The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value 1370 */ 1371 public UnsignedIntType getPriorityElement() { 1372 if (this.priority == null) 1373 if (Configuration.errorOnAutoCreate()) 1374 throw new Error("Attempt to auto-create Appointment.priority"); 1375 else if (Configuration.doAutoCreate()) 1376 this.priority = new UnsignedIntType(); // bb 1377 return this.priority; 1378 } 1379 1380 public boolean hasPriorityElement() { 1381 return this.priority != null && !this.priority.isEmpty(); 1382 } 1383 1384 public boolean hasPriority() { 1385 return this.priority != null && !this.priority.isEmpty(); 1386 } 1387 1388 /** 1389 * @param value {@link #priority} (The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value 1390 */ 1391 public Appointment setPriorityElement(UnsignedIntType value) { 1392 this.priority = value; 1393 return this; 1394 } 1395 1396 /** 1397 * @return The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority). 1398 */ 1399 public int getPriority() { 1400 return this.priority == null || this.priority.isEmpty() ? 0 : this.priority.getValue(); 1401 } 1402 1403 /** 1404 * @param value The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority). 1405 */ 1406 public Appointment setPriority(int value) { 1407 if (this.priority == null) 1408 this.priority = new UnsignedIntType(); 1409 this.priority.setValue(value); 1410 return this; 1411 } 1412 1413 /** 1414 * @return {@link #description} (The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 1415 */ 1416 public StringType getDescriptionElement() { 1417 if (this.description == null) 1418 if (Configuration.errorOnAutoCreate()) 1419 throw new Error("Attempt to auto-create Appointment.description"); 1420 else if (Configuration.doAutoCreate()) 1421 this.description = new StringType(); // bb 1422 return this.description; 1423 } 1424 1425 public boolean hasDescriptionElement() { 1426 return this.description != null && !this.description.isEmpty(); 1427 } 1428 1429 public boolean hasDescription() { 1430 return this.description != null && !this.description.isEmpty(); 1431 } 1432 1433 /** 1434 * @param value {@link #description} (The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 1435 */ 1436 public Appointment setDescriptionElement(StringType value) { 1437 this.description = value; 1438 return this; 1439 } 1440 1441 /** 1442 * @return The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field. 1443 */ 1444 public String getDescription() { 1445 return this.description == null ? null : this.description.getValue(); 1446 } 1447 1448 /** 1449 * @param value The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field. 1450 */ 1451 public Appointment setDescription(String value) { 1452 if (Utilities.noString(value)) 1453 this.description = null; 1454 else { 1455 if (this.description == null) 1456 this.description = new StringType(); 1457 this.description.setValue(value); 1458 } 1459 return this; 1460 } 1461 1462 /** 1463 * @return {@link #supportingInformation} (Additional information to support the appointment provided when making the appointment.) 1464 */ 1465 public List<Reference> getSupportingInformation() { 1466 if (this.supportingInformation == null) 1467 this.supportingInformation = new ArrayList<Reference>(); 1468 return this.supportingInformation; 1469 } 1470 1471 /** 1472 * @return Returns a reference to <code>this</code> for easy method chaining 1473 */ 1474 public Appointment setSupportingInformation(List<Reference> theSupportingInformation) { 1475 this.supportingInformation = theSupportingInformation; 1476 return this; 1477 } 1478 1479 public boolean hasSupportingInformation() { 1480 if (this.supportingInformation == null) 1481 return false; 1482 for (Reference item : this.supportingInformation) 1483 if (!item.isEmpty()) 1484 return true; 1485 return false; 1486 } 1487 1488 public Reference addSupportingInformation() { //3 1489 Reference t = new Reference(); 1490 if (this.supportingInformation == null) 1491 this.supportingInformation = new ArrayList<Reference>(); 1492 this.supportingInformation.add(t); 1493 return t; 1494 } 1495 1496 public Appointment addSupportingInformation(Reference t) { //3 1497 if (t == null) 1498 return this; 1499 if (this.supportingInformation == null) 1500 this.supportingInformation = new ArrayList<Reference>(); 1501 this.supportingInformation.add(t); 1502 return this; 1503 } 1504 1505 /** 1506 * @return The first repetition of repeating field {@link #supportingInformation}, creating it if it does not already exist {3} 1507 */ 1508 public Reference getSupportingInformationFirstRep() { 1509 if (getSupportingInformation().isEmpty()) { 1510 addSupportingInformation(); 1511 } 1512 return getSupportingInformation().get(0); 1513 } 1514 1515 /** 1516 * @return {@link #start} (Date/Time that the appointment is to take place.). This is the underlying object with id, value and extensions. The accessor "getStart" gives direct access to the value 1517 */ 1518 public InstantType getStartElement() { 1519 if (this.start == null) 1520 if (Configuration.errorOnAutoCreate()) 1521 throw new Error("Attempt to auto-create Appointment.start"); 1522 else if (Configuration.doAutoCreate()) 1523 this.start = new InstantType(); // bb 1524 return this.start; 1525 } 1526 1527 public boolean hasStartElement() { 1528 return this.start != null && !this.start.isEmpty(); 1529 } 1530 1531 public boolean hasStart() { 1532 return this.start != null && !this.start.isEmpty(); 1533 } 1534 1535 /** 1536 * @param value {@link #start} (Date/Time that the appointment is to take place.). This is the underlying object with id, value and extensions. The accessor "getStart" gives direct access to the value 1537 */ 1538 public Appointment setStartElement(InstantType value) { 1539 this.start = value; 1540 return this; 1541 } 1542 1543 /** 1544 * @return Date/Time that the appointment is to take place. 1545 */ 1546 public Date getStart() { 1547 return this.start == null ? null : this.start.getValue(); 1548 } 1549 1550 /** 1551 * @param value Date/Time that the appointment is to take place. 1552 */ 1553 public Appointment setStart(Date value) { 1554 if (value == null) 1555 this.start = null; 1556 else { 1557 if (this.start == null) 1558 this.start = new InstantType(); 1559 this.start.setValue(value); 1560 } 1561 return this; 1562 } 1563 1564 /** 1565 * @return {@link #end} (Date/Time that the appointment is to conclude.). This is the underlying object with id, value and extensions. The accessor "getEnd" gives direct access to the value 1566 */ 1567 public InstantType getEndElement() { 1568 if (this.end == null) 1569 if (Configuration.errorOnAutoCreate()) 1570 throw new Error("Attempt to auto-create Appointment.end"); 1571 else if (Configuration.doAutoCreate()) 1572 this.end = new InstantType(); // bb 1573 return this.end; 1574 } 1575 1576 public boolean hasEndElement() { 1577 return this.end != null && !this.end.isEmpty(); 1578 } 1579 1580 public boolean hasEnd() { 1581 return this.end != null && !this.end.isEmpty(); 1582 } 1583 1584 /** 1585 * @param value {@link #end} (Date/Time that the appointment is to conclude.). This is the underlying object with id, value and extensions. The accessor "getEnd" gives direct access to the value 1586 */ 1587 public Appointment setEndElement(InstantType value) { 1588 this.end = value; 1589 return this; 1590 } 1591 1592 /** 1593 * @return Date/Time that the appointment is to conclude. 1594 */ 1595 public Date getEnd() { 1596 return this.end == null ? null : this.end.getValue(); 1597 } 1598 1599 /** 1600 * @param value Date/Time that the appointment is to conclude. 1601 */ 1602 public Appointment setEnd(Date value) { 1603 if (value == null) 1604 this.end = null; 1605 else { 1606 if (this.end == null) 1607 this.end = new InstantType(); 1608 this.end.setValue(value); 1609 } 1610 return this; 1611 } 1612 1613 /** 1614 * @return {@link #minutesDuration} (Number of minutes that the appointment is to take. This can be less than the duration between the start and end times. For example, where the actual time of appointment is only an estimate or if a 30 minute appointment is being requested, but any time would work. Also, if there is, for example, a planned 15 minute break in the middle of a long appointment, the duration may be 15 minutes less than the difference between the start and end.). This is the underlying object with id, value and extensions. The accessor "getMinutesDuration" gives direct access to the value 1615 */ 1616 public PositiveIntType getMinutesDurationElement() { 1617 if (this.minutesDuration == null) 1618 if (Configuration.errorOnAutoCreate()) 1619 throw new Error("Attempt to auto-create Appointment.minutesDuration"); 1620 else if (Configuration.doAutoCreate()) 1621 this.minutesDuration = new PositiveIntType(); // bb 1622 return this.minutesDuration; 1623 } 1624 1625 public boolean hasMinutesDurationElement() { 1626 return this.minutesDuration != null && !this.minutesDuration.isEmpty(); 1627 } 1628 1629 public boolean hasMinutesDuration() { 1630 return this.minutesDuration != null && !this.minutesDuration.isEmpty(); 1631 } 1632 1633 /** 1634 * @param value {@link #minutesDuration} (Number of minutes that the appointment is to take. This can be less than the duration between the start and end times. For example, where the actual time of appointment is only an estimate or if a 30 minute appointment is being requested, but any time would work. Also, if there is, for example, a planned 15 minute break in the middle of a long appointment, the duration may be 15 minutes less than the difference between the start and end.). This is the underlying object with id, value and extensions. The accessor "getMinutesDuration" gives direct access to the value 1635 */ 1636 public Appointment setMinutesDurationElement(PositiveIntType value) { 1637 this.minutesDuration = value; 1638 return this; 1639 } 1640 1641 /** 1642 * @return Number of minutes that the appointment is to take. This can be less than the duration between the start and end times. For example, where the actual time of appointment is only an estimate or if a 30 minute appointment is being requested, but any time would work. Also, if there is, for example, a planned 15 minute break in the middle of a long appointment, the duration may be 15 minutes less than the difference between the start and end. 1643 */ 1644 public int getMinutesDuration() { 1645 return this.minutesDuration == null || this.minutesDuration.isEmpty() ? 0 : this.minutesDuration.getValue(); 1646 } 1647 1648 /** 1649 * @param value Number of minutes that the appointment is to take. This can be less than the duration between the start and end times. For example, where the actual time of appointment is only an estimate or if a 30 minute appointment is being requested, but any time would work. Also, if there is, for example, a planned 15 minute break in the middle of a long appointment, the duration may be 15 minutes less than the difference between the start and end. 1650 */ 1651 public Appointment setMinutesDuration(int value) { 1652 if (this.minutesDuration == null) 1653 this.minutesDuration = new PositiveIntType(); 1654 this.minutesDuration.setValue(value); 1655 return this; 1656 } 1657 1658 /** 1659 * @return {@link #slot} (The slots from the participants' schedules that will be filled by the appointment.) 1660 */ 1661 public List<Reference> getSlot() { 1662 if (this.slot == null) 1663 this.slot = new ArrayList<Reference>(); 1664 return this.slot; 1665 } 1666 1667 /** 1668 * @return Returns a reference to <code>this</code> for easy method chaining 1669 */ 1670 public Appointment setSlot(List<Reference> theSlot) { 1671 this.slot = theSlot; 1672 return this; 1673 } 1674 1675 public boolean hasSlot() { 1676 if (this.slot == null) 1677 return false; 1678 for (Reference item : this.slot) 1679 if (!item.isEmpty()) 1680 return true; 1681 return false; 1682 } 1683 1684 public Reference addSlot() { //3 1685 Reference t = new Reference(); 1686 if (this.slot == null) 1687 this.slot = new ArrayList<Reference>(); 1688 this.slot.add(t); 1689 return t; 1690 } 1691 1692 public Appointment addSlot(Reference t) { //3 1693 if (t == null) 1694 return this; 1695 if (this.slot == null) 1696 this.slot = new ArrayList<Reference>(); 1697 this.slot.add(t); 1698 return this; 1699 } 1700 1701 /** 1702 * @return The first repetition of repeating field {@link #slot}, creating it if it does not already exist {3} 1703 */ 1704 public Reference getSlotFirstRep() { 1705 if (getSlot().isEmpty()) { 1706 addSlot(); 1707 } 1708 return getSlot().get(0); 1709 } 1710 1711 /** 1712 * @return {@link #created} (The date that this appointment was initially created. This could be different to the meta.lastModified value on the initial entry, as this could have been before the resource was created on the FHIR server, and should remain unchanged over the lifespan of the appointment.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value 1713 */ 1714 public DateTimeType getCreatedElement() { 1715 if (this.created == null) 1716 if (Configuration.errorOnAutoCreate()) 1717 throw new Error("Attempt to auto-create Appointment.created"); 1718 else if (Configuration.doAutoCreate()) 1719 this.created = new DateTimeType(); // bb 1720 return this.created; 1721 } 1722 1723 public boolean hasCreatedElement() { 1724 return this.created != null && !this.created.isEmpty(); 1725 } 1726 1727 public boolean hasCreated() { 1728 return this.created != null && !this.created.isEmpty(); 1729 } 1730 1731 /** 1732 * @param value {@link #created} (The date that this appointment was initially created. This could be different to the meta.lastModified value on the initial entry, as this could have been before the resource was created on the FHIR server, and should remain unchanged over the lifespan of the appointment.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value 1733 */ 1734 public Appointment setCreatedElement(DateTimeType value) { 1735 this.created = value; 1736 return this; 1737 } 1738 1739 /** 1740 * @return The date that this appointment was initially created. This could be different to the meta.lastModified value on the initial entry, as this could have been before the resource was created on the FHIR server, and should remain unchanged over the lifespan of the appointment. 1741 */ 1742 public Date getCreated() { 1743 return this.created == null ? null : this.created.getValue(); 1744 } 1745 1746 /** 1747 * @param value The date that this appointment was initially created. This could be different to the meta.lastModified value on the initial entry, as this could have been before the resource was created on the FHIR server, and should remain unchanged over the lifespan of the appointment. 1748 */ 1749 public Appointment setCreated(Date value) { 1750 if (value == null) 1751 this.created = null; 1752 else { 1753 if (this.created == null) 1754 this.created = new DateTimeType(); 1755 this.created.setValue(value); 1756 } 1757 return this; 1758 } 1759 1760 /** 1761 * @return {@link #comment} (Additional comments about the appointment.). This is the underlying object with id, value and extensions. The accessor "getComment" gives direct access to the value 1762 */ 1763 public StringType getCommentElement() { 1764 if (this.comment == null) 1765 if (Configuration.errorOnAutoCreate()) 1766 throw new Error("Attempt to auto-create Appointment.comment"); 1767 else if (Configuration.doAutoCreate()) 1768 this.comment = new StringType(); // bb 1769 return this.comment; 1770 } 1771 1772 public boolean hasCommentElement() { 1773 return this.comment != null && !this.comment.isEmpty(); 1774 } 1775 1776 public boolean hasComment() { 1777 return this.comment != null && !this.comment.isEmpty(); 1778 } 1779 1780 /** 1781 * @param value {@link #comment} (Additional comments about the appointment.). This is the underlying object with id, value and extensions. The accessor "getComment" gives direct access to the value 1782 */ 1783 public Appointment setCommentElement(StringType value) { 1784 this.comment = value; 1785 return this; 1786 } 1787 1788 /** 1789 * @return Additional comments about the appointment. 1790 */ 1791 public String getComment() { 1792 return this.comment == null ? null : this.comment.getValue(); 1793 } 1794 1795 /** 1796 * @param value Additional comments about the appointment. 1797 */ 1798 public Appointment setComment(String value) { 1799 if (Utilities.noString(value)) 1800 this.comment = null; 1801 else { 1802 if (this.comment == null) 1803 this.comment = new StringType(); 1804 this.comment.setValue(value); 1805 } 1806 return this; 1807 } 1808 1809 /** 1810 * @return {@link #patientInstruction} (While Appointment.comment contains information for internal use, Appointment.patientInstructions is used to capture patient facing information about the Appointment (e.g. please bring your referral or fast from 8pm night before).). This is the underlying object with id, value and extensions. The accessor "getPatientInstruction" gives direct access to the value 1811 */ 1812 public StringType getPatientInstructionElement() { 1813 if (this.patientInstruction == null) 1814 if (Configuration.errorOnAutoCreate()) 1815 throw new Error("Attempt to auto-create Appointment.patientInstruction"); 1816 else if (Configuration.doAutoCreate()) 1817 this.patientInstruction = new StringType(); // bb 1818 return this.patientInstruction; 1819 } 1820 1821 public boolean hasPatientInstructionElement() { 1822 return this.patientInstruction != null && !this.patientInstruction.isEmpty(); 1823 } 1824 1825 public boolean hasPatientInstruction() { 1826 return this.patientInstruction != null && !this.patientInstruction.isEmpty(); 1827 } 1828 1829 /** 1830 * @param value {@link #patientInstruction} (While Appointment.comment contains information for internal use, Appointment.patientInstructions is used to capture patient facing information about the Appointment (e.g. please bring your referral or fast from 8pm night before).). This is the underlying object with id, value and extensions. The accessor "getPatientInstruction" gives direct access to the value 1831 */ 1832 public Appointment setPatientInstructionElement(StringType value) { 1833 this.patientInstruction = value; 1834 return this; 1835 } 1836 1837 /** 1838 * @return While Appointment.comment contains information for internal use, Appointment.patientInstructions is used to capture patient facing information about the Appointment (e.g. please bring your referral or fast from 8pm night before). 1839 */ 1840 public String getPatientInstruction() { 1841 return this.patientInstruction == null ? null : this.patientInstruction.getValue(); 1842 } 1843 1844 /** 1845 * @param value While Appointment.comment contains information for internal use, Appointment.patientInstructions is used to capture patient facing information about the Appointment (e.g. please bring your referral or fast from 8pm night before). 1846 */ 1847 public Appointment setPatientInstruction(String value) { 1848 if (Utilities.noString(value)) 1849 this.patientInstruction = null; 1850 else { 1851 if (this.patientInstruction == null) 1852 this.patientInstruction = new StringType(); 1853 this.patientInstruction.setValue(value); 1854 } 1855 return this; 1856 } 1857 1858 /** 1859 * @return {@link #basedOn} (The service request this appointment is allocated to assess (e.g. incoming referral or procedure request).) 1860 */ 1861 public List<Reference> getBasedOn() { 1862 if (this.basedOn == null) 1863 this.basedOn = new ArrayList<Reference>(); 1864 return this.basedOn; 1865 } 1866 1867 /** 1868 * @return Returns a reference to <code>this</code> for easy method chaining 1869 */ 1870 public Appointment setBasedOn(List<Reference> theBasedOn) { 1871 this.basedOn = theBasedOn; 1872 return this; 1873 } 1874 1875 public boolean hasBasedOn() { 1876 if (this.basedOn == null) 1877 return false; 1878 for (Reference item : this.basedOn) 1879 if (!item.isEmpty()) 1880 return true; 1881 return false; 1882 } 1883 1884 public Reference addBasedOn() { //3 1885 Reference t = new Reference(); 1886 if (this.basedOn == null) 1887 this.basedOn = new ArrayList<Reference>(); 1888 this.basedOn.add(t); 1889 return t; 1890 } 1891 1892 public Appointment addBasedOn(Reference t) { //3 1893 if (t == null) 1894 return this; 1895 if (this.basedOn == null) 1896 this.basedOn = new ArrayList<Reference>(); 1897 this.basedOn.add(t); 1898 return this; 1899 } 1900 1901 /** 1902 * @return The first repetition of repeating field {@link #basedOn}, creating it if it does not already exist {3} 1903 */ 1904 public Reference getBasedOnFirstRep() { 1905 if (getBasedOn().isEmpty()) { 1906 addBasedOn(); 1907 } 1908 return getBasedOn().get(0); 1909 } 1910 1911 /** 1912 * @return {@link #participant} (List of participants involved in the appointment.) 1913 */ 1914 public List<AppointmentParticipantComponent> getParticipant() { 1915 if (this.participant == null) 1916 this.participant = new ArrayList<AppointmentParticipantComponent>(); 1917 return this.participant; 1918 } 1919 1920 /** 1921 * @return Returns a reference to <code>this</code> for easy method chaining 1922 */ 1923 public Appointment setParticipant(List<AppointmentParticipantComponent> theParticipant) { 1924 this.participant = theParticipant; 1925 return this; 1926 } 1927 1928 public boolean hasParticipant() { 1929 if (this.participant == null) 1930 return false; 1931 for (AppointmentParticipantComponent item : this.participant) 1932 if (!item.isEmpty()) 1933 return true; 1934 return false; 1935 } 1936 1937 public AppointmentParticipantComponent addParticipant() { //3 1938 AppointmentParticipantComponent t = new AppointmentParticipantComponent(); 1939 if (this.participant == null) 1940 this.participant = new ArrayList<AppointmentParticipantComponent>(); 1941 this.participant.add(t); 1942 return t; 1943 } 1944 1945 public Appointment addParticipant(AppointmentParticipantComponent t) { //3 1946 if (t == null) 1947 return this; 1948 if (this.participant == null) 1949 this.participant = new ArrayList<AppointmentParticipantComponent>(); 1950 this.participant.add(t); 1951 return this; 1952 } 1953 1954 /** 1955 * @return The first repetition of repeating field {@link #participant}, creating it if it does not already exist {3} 1956 */ 1957 public AppointmentParticipantComponent getParticipantFirstRep() { 1958 if (getParticipant().isEmpty()) { 1959 addParticipant(); 1960 } 1961 return getParticipant().get(0); 1962 } 1963 1964 /** 1965 * @return {@link #requestedPeriod} (A set of date ranges (potentially including times) that the appointment is preferred to be scheduled within. 1966 1967The duration (usually in minutes) could also be provided to indicate the length of the appointment to fill and populate the start/end times for the actual allocated time. However, in other situations the duration may be calculated by the scheduling system.) 1968 */ 1969 public List<Period> getRequestedPeriod() { 1970 if (this.requestedPeriod == null) 1971 this.requestedPeriod = new ArrayList<Period>(); 1972 return this.requestedPeriod; 1973 } 1974 1975 /** 1976 * @return Returns a reference to <code>this</code> for easy method chaining 1977 */ 1978 public Appointment setRequestedPeriod(List<Period> theRequestedPeriod) { 1979 this.requestedPeriod = theRequestedPeriod; 1980 return this; 1981 } 1982 1983 public boolean hasRequestedPeriod() { 1984 if (this.requestedPeriod == null) 1985 return false; 1986 for (Period item : this.requestedPeriod) 1987 if (!item.isEmpty()) 1988 return true; 1989 return false; 1990 } 1991 1992 public Period addRequestedPeriod() { //3 1993 Period t = new Period(); 1994 if (this.requestedPeriod == null) 1995 this.requestedPeriod = new ArrayList<Period>(); 1996 this.requestedPeriod.add(t); 1997 return t; 1998 } 1999 2000 public Appointment addRequestedPeriod(Period t) { //3 2001 if (t == null) 2002 return this; 2003 if (this.requestedPeriod == null) 2004 this.requestedPeriod = new ArrayList<Period>(); 2005 this.requestedPeriod.add(t); 2006 return this; 2007 } 2008 2009 /** 2010 * @return The first repetition of repeating field {@link #requestedPeriod}, creating it if it does not already exist {3} 2011 */ 2012 public Period getRequestedPeriodFirstRep() { 2013 if (getRequestedPeriod().isEmpty()) { 2014 addRequestedPeriod(); 2015 } 2016 return getRequestedPeriod().get(0); 2017 } 2018 2019 protected void listChildren(List<Property> children) { 2020 super.listChildren(children); 2021 children.add(new Property("identifier", "Identifier", "This records identifiers associated with this appointment concern that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).", 0, java.lang.Integer.MAX_VALUE, identifier)); 2022 children.add(new Property("status", "code", "The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status.", 0, 1, status)); 2023 children.add(new Property("cancelationReason", "CodeableConcept", "The coded reason for the appointment being cancelled. This is often used in reporting/billing/futher processing to determine if further actions are required, or specific fees apply.", 0, 1, cancelationReason)); 2024 children.add(new Property("serviceCategory", "CodeableConcept", "A broad categorization of the service that is to be performed during this appointment.", 0, java.lang.Integer.MAX_VALUE, serviceCategory)); 2025 children.add(new Property("serviceType", "CodeableConcept", "The specific service that is to be performed during this appointment.", 0, java.lang.Integer.MAX_VALUE, serviceType)); 2026 children.add(new Property("specialty", "CodeableConcept", "The specialty of a practitioner that would be required to perform the service requested in this appointment.", 0, java.lang.Integer.MAX_VALUE, specialty)); 2027 children.add(new Property("appointmentType", "CodeableConcept", "The style of appointment or patient that has been booked in the slot (not service type).", 0, 1, appointmentType)); 2028 children.add(new Property("reason", "CodeableReference(Condition|Procedure|Observation|ImmunizationRecommendation)", "The reason that this appointment is being scheduled. This is more clinical than administrative. This can be coded, or as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure.", 0, java.lang.Integer.MAX_VALUE, reason)); 2029 children.add(new Property("priority", "unsignedInt", "The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).", 0, 1, priority)); 2030 children.add(new Property("description", "string", "The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field.", 0, 1, description)); 2031 children.add(new Property("supportingInformation", "Reference(Any)", "Additional information to support the appointment provided when making the appointment.", 0, java.lang.Integer.MAX_VALUE, supportingInformation)); 2032 children.add(new Property("start", "instant", "Date/Time that the appointment is to take place.", 0, 1, start)); 2033 children.add(new Property("end", "instant", "Date/Time that the appointment is to conclude.", 0, 1, end)); 2034 children.add(new Property("minutesDuration", "positiveInt", "Number of minutes that the appointment is to take. This can be less than the duration between the start and end times. For example, where the actual time of appointment is only an estimate or if a 30 minute appointment is being requested, but any time would work. Also, if there is, for example, a planned 15 minute break in the middle of a long appointment, the duration may be 15 minutes less than the difference between the start and end.", 0, 1, minutesDuration)); 2035 children.add(new Property("slot", "Reference(Slot)", "The slots from the participants' schedules that will be filled by the appointment.", 0, java.lang.Integer.MAX_VALUE, slot)); 2036 children.add(new Property("created", "dateTime", "The date that this appointment was initially created. This could be different to the meta.lastModified value on the initial entry, as this could have been before the resource was created on the FHIR server, and should remain unchanged over the lifespan of the appointment.", 0, 1, created)); 2037 children.add(new Property("comment", "string", "Additional comments about the appointment.", 0, 1, comment)); 2038 children.add(new Property("patientInstruction", "string", "While Appointment.comment contains information for internal use, Appointment.patientInstructions is used to capture patient facing information about the Appointment (e.g. please bring your referral or fast from 8pm night before).", 0, 1, patientInstruction)); 2039 children.add(new Property("basedOn", "Reference(ServiceRequest)", "The service request this appointment is allocated to assess (e.g. incoming referral or procedure request).", 0, java.lang.Integer.MAX_VALUE, basedOn)); 2040 children.add(new Property("participant", "", "List of participants involved in the appointment.", 0, java.lang.Integer.MAX_VALUE, participant)); 2041 children.add(new Property("requestedPeriod", "Period", "A set of date ranges (potentially including times) that the appointment is preferred to be scheduled within.\n\nThe duration (usually in minutes) could also be provided to indicate the length of the appointment to fill and populate the start/end times for the actual allocated time. However, in other situations the duration may be calculated by the scheduling system.", 0, java.lang.Integer.MAX_VALUE, requestedPeriod)); 2042 } 2043 2044 @Override 2045 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 2046 switch (_hash) { 2047 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "This records identifiers associated with this appointment concern that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).", 0, java.lang.Integer.MAX_VALUE, identifier); 2048 case -892481550: /*status*/ return new Property("status", "code", "The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status.", 0, 1, status); 2049 case 987811551: /*cancelationReason*/ return new Property("cancelationReason", "CodeableConcept", "The coded reason for the appointment being cancelled. This is often used in reporting/billing/futher processing to determine if further actions are required, or specific fees apply.", 0, 1, cancelationReason); 2050 case 1281188563: /*serviceCategory*/ return new Property("serviceCategory", "CodeableConcept", "A broad categorization of the service that is to be performed during this appointment.", 0, java.lang.Integer.MAX_VALUE, serviceCategory); 2051 case -1928370289: /*serviceType*/ return new Property("serviceType", "CodeableConcept", "The specific service that is to be performed during this appointment.", 0, java.lang.Integer.MAX_VALUE, serviceType); 2052 case -1694759682: /*specialty*/ return new Property("specialty", "CodeableConcept", "The specialty of a practitioner that would be required to perform the service requested in this appointment.", 0, java.lang.Integer.MAX_VALUE, specialty); 2053 case -1596426375: /*appointmentType*/ return new Property("appointmentType", "CodeableConcept", "The style of appointment or patient that has been booked in the slot (not service type).", 0, 1, appointmentType); 2054 case -934964668: /*reason*/ return new Property("reason", "CodeableReference(Condition|Procedure|Observation|ImmunizationRecommendation)", "The reason that this appointment is being scheduled. This is more clinical than administrative. This can be coded, or as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure.", 0, java.lang.Integer.MAX_VALUE, reason); 2055 case -1165461084: /*priority*/ return new Property("priority", "unsignedInt", "The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).", 0, 1, priority); 2056 case -1724546052: /*description*/ return new Property("description", "string", "The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field.", 0, 1, description); 2057 case -1248768647: /*supportingInformation*/ return new Property("supportingInformation", "Reference(Any)", "Additional information to support the appointment provided when making the appointment.", 0, java.lang.Integer.MAX_VALUE, supportingInformation); 2058 case 109757538: /*start*/ return new Property("start", "instant", "Date/Time that the appointment is to take place.", 0, 1, start); 2059 case 100571: /*end*/ return new Property("end", "instant", "Date/Time that the appointment is to conclude.", 0, 1, end); 2060 case -413630573: /*minutesDuration*/ return new Property("minutesDuration", "positiveInt", "Number of minutes that the appointment is to take. This can be less than the duration between the start and end times. For example, where the actual time of appointment is only an estimate or if a 30 minute appointment is being requested, but any time would work. Also, if there is, for example, a planned 15 minute break in the middle of a long appointment, the duration may be 15 minutes less than the difference between the start and end.", 0, 1, minutesDuration); 2061 case 3533310: /*slot*/ return new Property("slot", "Reference(Slot)", "The slots from the participants' schedules that will be filled by the appointment.", 0, java.lang.Integer.MAX_VALUE, slot); 2062 case 1028554472: /*created*/ return new Property("created", "dateTime", "The date that this appointment was initially created. This could be different to the meta.lastModified value on the initial entry, as this could have been before the resource was created on the FHIR server, and should remain unchanged over the lifespan of the appointment.", 0, 1, created); 2063 case 950398559: /*comment*/ return new Property("comment", "string", "Additional comments about the appointment.", 0, 1, comment); 2064 case 737543241: /*patientInstruction*/ return new Property("patientInstruction", "string", "While Appointment.comment contains information for internal use, Appointment.patientInstructions is used to capture patient facing information about the Appointment (e.g. please bring your referral or fast from 8pm night before).", 0, 1, patientInstruction); 2065 case -332612366: /*basedOn*/ return new Property("basedOn", "Reference(ServiceRequest)", "The service request this appointment is allocated to assess (e.g. incoming referral or procedure request).", 0, java.lang.Integer.MAX_VALUE, basedOn); 2066 case 767422259: /*participant*/ return new Property("participant", "", "List of participants involved in the appointment.", 0, java.lang.Integer.MAX_VALUE, participant); 2067 case -897241393: /*requestedPeriod*/ return new Property("requestedPeriod", "Period", "A set of date ranges (potentially including times) that the appointment is preferred to be scheduled within.\n\nThe duration (usually in minutes) could also be provided to indicate the length of the appointment to fill and populate the start/end times for the actual allocated time. However, in other situations the duration may be calculated by the scheduling system.", 0, java.lang.Integer.MAX_VALUE, requestedPeriod); 2068 default: return super.getNamedProperty(_hash, _name, _checkValid); 2069 } 2070 2071 } 2072 2073 @Override 2074 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 2075 switch (hash) { 2076 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 2077 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<AppointmentStatus> 2078 case 987811551: /*cancelationReason*/ return this.cancelationReason == null ? new Base[0] : new Base[] {this.cancelationReason}; // CodeableConcept 2079 case 1281188563: /*serviceCategory*/ return this.serviceCategory == null ? new Base[0] : this.serviceCategory.toArray(new Base[this.serviceCategory.size()]); // CodeableConcept 2080 case -1928370289: /*serviceType*/ return this.serviceType == null ? new Base[0] : this.serviceType.toArray(new Base[this.serviceType.size()]); // CodeableConcept 2081 case -1694759682: /*specialty*/ return this.specialty == null ? new Base[0] : this.specialty.toArray(new Base[this.specialty.size()]); // CodeableConcept 2082 case -1596426375: /*appointmentType*/ return this.appointmentType == null ? new Base[0] : new Base[] {this.appointmentType}; // CodeableConcept 2083 case -934964668: /*reason*/ return this.reason == null ? new Base[0] : this.reason.toArray(new Base[this.reason.size()]); // CodeableReference 2084 case -1165461084: /*priority*/ return this.priority == null ? new Base[0] : new Base[] {this.priority}; // UnsignedIntType 2085 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType 2086 case -1248768647: /*supportingInformation*/ return this.supportingInformation == null ? new Base[0] : this.supportingInformation.toArray(new Base[this.supportingInformation.size()]); // Reference 2087 case 109757538: /*start*/ return this.start == null ? new Base[0] : new Base[] {this.start}; // InstantType 2088 case 100571: /*end*/ return this.end == null ? new Base[0] : new Base[] {this.end}; // InstantType 2089 case -413630573: /*minutesDuration*/ return this.minutesDuration == null ? new Base[0] : new Base[] {this.minutesDuration}; // PositiveIntType 2090 case 3533310: /*slot*/ return this.slot == null ? new Base[0] : this.slot.toArray(new Base[this.slot.size()]); // Reference 2091 case 1028554472: /*created*/ return this.created == null ? new Base[0] : new Base[] {this.created}; // DateTimeType 2092 case 950398559: /*comment*/ return this.comment == null ? new Base[0] : new Base[] {this.comment}; // StringType 2093 case 737543241: /*patientInstruction*/ return this.patientInstruction == null ? new Base[0] : new Base[] {this.patientInstruction}; // StringType 2094 case -332612366: /*basedOn*/ return this.basedOn == null ? new Base[0] : this.basedOn.toArray(new Base[this.basedOn.size()]); // Reference 2095 case 767422259: /*participant*/ return this.participant == null ? new Base[0] : this.participant.toArray(new Base[this.participant.size()]); // AppointmentParticipantComponent 2096 case -897241393: /*requestedPeriod*/ return this.requestedPeriod == null ? new Base[0] : this.requestedPeriod.toArray(new Base[this.requestedPeriod.size()]); // Period 2097 default: return super.getProperty(hash, name, checkValid); 2098 } 2099 2100 } 2101 2102 @Override 2103 public Base setProperty(int hash, String name, Base value) throws FHIRException { 2104 switch (hash) { 2105 case -1618432855: // identifier 2106 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier 2107 return value; 2108 case -892481550: // status 2109 value = new AppointmentStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 2110 this.status = (Enumeration) value; // Enumeration<AppointmentStatus> 2111 return value; 2112 case 987811551: // cancelationReason 2113 this.cancelationReason = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2114 return value; 2115 case 1281188563: // serviceCategory 2116 this.getServiceCategory().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 2117 return value; 2118 case -1928370289: // serviceType 2119 this.getServiceType().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 2120 return value; 2121 case -1694759682: // specialty 2122 this.getSpecialty().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 2123 return value; 2124 case -1596426375: // appointmentType 2125 this.appointmentType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2126 return value; 2127 case -934964668: // reason 2128 this.getReason().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference 2129 return value; 2130 case -1165461084: // priority 2131 this.priority = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType 2132 return value; 2133 case -1724546052: // description 2134 this.description = TypeConvertor.castToString(value); // StringType 2135 return value; 2136 case -1248768647: // supportingInformation 2137 this.getSupportingInformation().add(TypeConvertor.castToReference(value)); // Reference 2138 return value; 2139 case 109757538: // start 2140 this.start = TypeConvertor.castToInstant(value); // InstantType 2141 return value; 2142 case 100571: // end 2143 this.end = TypeConvertor.castToInstant(value); // InstantType 2144 return value; 2145 case -413630573: // minutesDuration 2146 this.minutesDuration = TypeConvertor.castToPositiveInt(value); // PositiveIntType 2147 return value; 2148 case 3533310: // slot 2149 this.getSlot().add(TypeConvertor.castToReference(value)); // Reference 2150 return value; 2151 case 1028554472: // created 2152 this.created = TypeConvertor.castToDateTime(value); // DateTimeType 2153 return value; 2154 case 950398559: // comment 2155 this.comment = TypeConvertor.castToString(value); // StringType 2156 return value; 2157 case 737543241: // patientInstruction 2158 this.patientInstruction = TypeConvertor.castToString(value); // StringType 2159 return value; 2160 case -332612366: // basedOn 2161 this.getBasedOn().add(TypeConvertor.castToReference(value)); // Reference 2162 return value; 2163 case 767422259: // participant 2164 this.getParticipant().add((AppointmentParticipantComponent) value); // AppointmentParticipantComponent 2165 return value; 2166 case -897241393: // requestedPeriod 2167 this.getRequestedPeriod().add(TypeConvertor.castToPeriod(value)); // Period 2168 return value; 2169 default: return super.setProperty(hash, name, value); 2170 } 2171 2172 } 2173 2174 @Override 2175 public Base setProperty(String name, Base value) throws FHIRException { 2176 if (name.equals("identifier")) { 2177 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); 2178 } else if (name.equals("status")) { 2179 value = new AppointmentStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 2180 this.status = (Enumeration) value; // Enumeration<AppointmentStatus> 2181 } else if (name.equals("cancelationReason")) { 2182 this.cancelationReason = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2183 } else if (name.equals("serviceCategory")) { 2184 this.getServiceCategory().add(TypeConvertor.castToCodeableConcept(value)); 2185 } else if (name.equals("serviceType")) { 2186 this.getServiceType().add(TypeConvertor.castToCodeableConcept(value)); 2187 } else if (name.equals("specialty")) { 2188 this.getSpecialty().add(TypeConvertor.castToCodeableConcept(value)); 2189 } else if (name.equals("appointmentType")) { 2190 this.appointmentType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2191 } else if (name.equals("reason")) { 2192 this.getReason().add(TypeConvertor.castToCodeableReference(value)); 2193 } else if (name.equals("priority")) { 2194 this.priority = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType 2195 } else if (name.equals("description")) { 2196 this.description = TypeConvertor.castToString(value); // StringType 2197 } else if (name.equals("supportingInformation")) { 2198 this.getSupportingInformation().add(TypeConvertor.castToReference(value)); 2199 } else if (name.equals("start")) { 2200 this.start = TypeConvertor.castToInstant(value); // InstantType 2201 } else if (name.equals("end")) { 2202 this.end = TypeConvertor.castToInstant(value); // InstantType 2203 } else if (name.equals("minutesDuration")) { 2204 this.minutesDuration = TypeConvertor.castToPositiveInt(value); // PositiveIntType 2205 } else if (name.equals("slot")) { 2206 this.getSlot().add(TypeConvertor.castToReference(value)); 2207 } else if (name.equals("created")) { 2208 this.created = TypeConvertor.castToDateTime(value); // DateTimeType 2209 } else if (name.equals("comment")) { 2210 this.comment = TypeConvertor.castToString(value); // StringType 2211 } else if (name.equals("patientInstruction")) { 2212 this.patientInstruction = TypeConvertor.castToString(value); // StringType 2213 } else if (name.equals("basedOn")) { 2214 this.getBasedOn().add(TypeConvertor.castToReference(value)); 2215 } else if (name.equals("participant")) { 2216 this.getParticipant().add((AppointmentParticipantComponent) value); 2217 } else if (name.equals("requestedPeriod")) { 2218 this.getRequestedPeriod().add(TypeConvertor.castToPeriod(value)); 2219 } else 2220 return super.setProperty(name, value); 2221 return value; 2222 } 2223 2224 @Override 2225 public Base makeProperty(int hash, String name) throws FHIRException { 2226 switch (hash) { 2227 case -1618432855: return addIdentifier(); 2228 case -892481550: return getStatusElement(); 2229 case 987811551: return getCancelationReason(); 2230 case 1281188563: return addServiceCategory(); 2231 case -1928370289: return addServiceType(); 2232 case -1694759682: return addSpecialty(); 2233 case -1596426375: return getAppointmentType(); 2234 case -934964668: return addReason(); 2235 case -1165461084: return getPriorityElement(); 2236 case -1724546052: return getDescriptionElement(); 2237 case -1248768647: return addSupportingInformation(); 2238 case 109757538: return getStartElement(); 2239 case 100571: return getEndElement(); 2240 case -413630573: return getMinutesDurationElement(); 2241 case 3533310: return addSlot(); 2242 case 1028554472: return getCreatedElement(); 2243 case 950398559: return getCommentElement(); 2244 case 737543241: return getPatientInstructionElement(); 2245 case -332612366: return addBasedOn(); 2246 case 767422259: return addParticipant(); 2247 case -897241393: return addRequestedPeriod(); 2248 default: return super.makeProperty(hash, name); 2249 } 2250 2251 } 2252 2253 @Override 2254 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 2255 switch (hash) { 2256 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 2257 case -892481550: /*status*/ return new String[] {"code"}; 2258 case 987811551: /*cancelationReason*/ return new String[] {"CodeableConcept"}; 2259 case 1281188563: /*serviceCategory*/ return new String[] {"CodeableConcept"}; 2260 case -1928370289: /*serviceType*/ return new String[] {"CodeableConcept"}; 2261 case -1694759682: /*specialty*/ return new String[] {"CodeableConcept"}; 2262 case -1596426375: /*appointmentType*/ return new String[] {"CodeableConcept"}; 2263 case -934964668: /*reason*/ return new String[] {"CodeableReference"}; 2264 case -1165461084: /*priority*/ return new String[] {"unsignedInt"}; 2265 case -1724546052: /*description*/ return new String[] {"string"}; 2266 case -1248768647: /*supportingInformation*/ return new String[] {"Reference"}; 2267 case 109757538: /*start*/ return new String[] {"instant"}; 2268 case 100571: /*end*/ return new String[] {"instant"}; 2269 case -413630573: /*minutesDuration*/ return new String[] {"positiveInt"}; 2270 case 3533310: /*slot*/ return new String[] {"Reference"}; 2271 case 1028554472: /*created*/ return new String[] {"dateTime"}; 2272 case 950398559: /*comment*/ return new String[] {"string"}; 2273 case 737543241: /*patientInstruction*/ return new String[] {"string"}; 2274 case -332612366: /*basedOn*/ return new String[] {"Reference"}; 2275 case 767422259: /*participant*/ return new String[] {}; 2276 case -897241393: /*requestedPeriod*/ return new String[] {"Period"}; 2277 default: return super.getTypesForProperty(hash, name); 2278 } 2279 2280 } 2281 2282 @Override 2283 public Base addChild(String name) throws FHIRException { 2284 if (name.equals("identifier")) { 2285 return addIdentifier(); 2286 } 2287 else if (name.equals("status")) { 2288 throw new FHIRException("Cannot call addChild on a primitive type Appointment.status"); 2289 } 2290 else if (name.equals("cancelationReason")) { 2291 this.cancelationReason = new CodeableConcept(); 2292 return this.cancelationReason; 2293 } 2294 else if (name.equals("serviceCategory")) { 2295 return addServiceCategory(); 2296 } 2297 else if (name.equals("serviceType")) { 2298 return addServiceType(); 2299 } 2300 else if (name.equals("specialty")) { 2301 return addSpecialty(); 2302 } 2303 else if (name.equals("appointmentType")) { 2304 this.appointmentType = new CodeableConcept(); 2305 return this.appointmentType; 2306 } 2307 else if (name.equals("reason")) { 2308 return addReason(); 2309 } 2310 else if (name.equals("priority")) { 2311 throw new FHIRException("Cannot call addChild on a primitive type Appointment.priority"); 2312 } 2313 else if (name.equals("description")) { 2314 throw new FHIRException("Cannot call addChild on a primitive type Appointment.description"); 2315 } 2316 else if (name.equals("supportingInformation")) { 2317 return addSupportingInformation(); 2318 } 2319 else if (name.equals("start")) { 2320 throw new FHIRException("Cannot call addChild on a primitive type Appointment.start"); 2321 } 2322 else if (name.equals("end")) { 2323 throw new FHIRException("Cannot call addChild on a primitive type Appointment.end"); 2324 } 2325 else if (name.equals("minutesDuration")) { 2326 throw new FHIRException("Cannot call addChild on a primitive type Appointment.minutesDuration"); 2327 } 2328 else if (name.equals("slot")) { 2329 return addSlot(); 2330 } 2331 else if (name.equals("created")) { 2332 throw new FHIRException("Cannot call addChild on a primitive type Appointment.created"); 2333 } 2334 else if (name.equals("comment")) { 2335 throw new FHIRException("Cannot call addChild on a primitive type Appointment.comment"); 2336 } 2337 else if (name.equals("patientInstruction")) { 2338 throw new FHIRException("Cannot call addChild on a primitive type Appointment.patientInstruction"); 2339 } 2340 else if (name.equals("basedOn")) { 2341 return addBasedOn(); 2342 } 2343 else if (name.equals("participant")) { 2344 return addParticipant(); 2345 } 2346 else if (name.equals("requestedPeriod")) { 2347 return addRequestedPeriod(); 2348 } 2349 else 2350 return super.addChild(name); 2351 } 2352 2353 public String fhirType() { 2354 return "Appointment"; 2355 2356 } 2357 2358 public Appointment copy() { 2359 Appointment dst = new Appointment(); 2360 copyValues(dst); 2361 return dst; 2362 } 2363 2364 public void copyValues(Appointment dst) { 2365 super.copyValues(dst); 2366 if (identifier != null) { 2367 dst.identifier = new ArrayList<Identifier>(); 2368 for (Identifier i : identifier) 2369 dst.identifier.add(i.copy()); 2370 }; 2371 dst.status = status == null ? null : status.copy(); 2372 dst.cancelationReason = cancelationReason == null ? null : cancelationReason.copy(); 2373 if (serviceCategory != null) { 2374 dst.serviceCategory = new ArrayList<CodeableConcept>(); 2375 for (CodeableConcept i : serviceCategory) 2376 dst.serviceCategory.add(i.copy()); 2377 }; 2378 if (serviceType != null) { 2379 dst.serviceType = new ArrayList<CodeableConcept>(); 2380 for (CodeableConcept i : serviceType) 2381 dst.serviceType.add(i.copy()); 2382 }; 2383 if (specialty != null) { 2384 dst.specialty = new ArrayList<CodeableConcept>(); 2385 for (CodeableConcept i : specialty) 2386 dst.specialty.add(i.copy()); 2387 }; 2388 dst.appointmentType = appointmentType == null ? null : appointmentType.copy(); 2389 if (reason != null) { 2390 dst.reason = new ArrayList<CodeableReference>(); 2391 for (CodeableReference i : reason) 2392 dst.reason.add(i.copy()); 2393 }; 2394 dst.priority = priority == null ? null : priority.copy(); 2395 dst.description = description == null ? null : description.copy(); 2396 if (supportingInformation != null) { 2397 dst.supportingInformation = new ArrayList<Reference>(); 2398 for (Reference i : supportingInformation) 2399 dst.supportingInformation.add(i.copy()); 2400 }; 2401 dst.start = start == null ? null : start.copy(); 2402 dst.end = end == null ? null : end.copy(); 2403 dst.minutesDuration = minutesDuration == null ? null : minutesDuration.copy(); 2404 if (slot != null) { 2405 dst.slot = new ArrayList<Reference>(); 2406 for (Reference i : slot) 2407 dst.slot.add(i.copy()); 2408 }; 2409 dst.created = created == null ? null : created.copy(); 2410 dst.comment = comment == null ? null : comment.copy(); 2411 dst.patientInstruction = patientInstruction == null ? null : patientInstruction.copy(); 2412 if (basedOn != null) { 2413 dst.basedOn = new ArrayList<Reference>(); 2414 for (Reference i : basedOn) 2415 dst.basedOn.add(i.copy()); 2416 }; 2417 if (participant != null) { 2418 dst.participant = new ArrayList<AppointmentParticipantComponent>(); 2419 for (AppointmentParticipantComponent i : participant) 2420 dst.participant.add(i.copy()); 2421 }; 2422 if (requestedPeriod != null) { 2423 dst.requestedPeriod = new ArrayList<Period>(); 2424 for (Period i : requestedPeriod) 2425 dst.requestedPeriod.add(i.copy()); 2426 }; 2427 } 2428 2429 protected Appointment typedCopy() { 2430 return copy(); 2431 } 2432 2433 @Override 2434 public boolean equalsDeep(Base other_) { 2435 if (!super.equalsDeep(other_)) 2436 return false; 2437 if (!(other_ instanceof Appointment)) 2438 return false; 2439 Appointment o = (Appointment) other_; 2440 return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(cancelationReason, o.cancelationReason, true) 2441 && compareDeep(serviceCategory, o.serviceCategory, true) && compareDeep(serviceType, o.serviceType, true) 2442 && compareDeep(specialty, o.specialty, true) && compareDeep(appointmentType, o.appointmentType, true) 2443 && compareDeep(reason, o.reason, true) && compareDeep(priority, o.priority, true) && compareDeep(description, o.description, true) 2444 && compareDeep(supportingInformation, o.supportingInformation, true) && compareDeep(start, o.start, true) 2445 && compareDeep(end, o.end, true) && compareDeep(minutesDuration, o.minutesDuration, true) && compareDeep(slot, o.slot, true) 2446 && compareDeep(created, o.created, true) && compareDeep(comment, o.comment, true) && compareDeep(patientInstruction, o.patientInstruction, true) 2447 && compareDeep(basedOn, o.basedOn, true) && compareDeep(participant, o.participant, true) && compareDeep(requestedPeriod, o.requestedPeriod, true) 2448 ; 2449 } 2450 2451 @Override 2452 public boolean equalsShallow(Base other_) { 2453 if (!super.equalsShallow(other_)) 2454 return false; 2455 if (!(other_ instanceof Appointment)) 2456 return false; 2457 Appointment o = (Appointment) other_; 2458 return compareValues(status, o.status, true) && compareValues(priority, o.priority, true) && compareValues(description, o.description, true) 2459 && compareValues(start, o.start, true) && compareValues(end, o.end, true) && compareValues(minutesDuration, o.minutesDuration, true) 2460 && compareValues(created, o.created, true) && compareValues(comment, o.comment, true) && compareValues(patientInstruction, o.patientInstruction, true) 2461 ; 2462 } 2463 2464 public boolean isEmpty() { 2465 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, cancelationReason 2466 , serviceCategory, serviceType, specialty, appointmentType, reason, priority, description 2467 , supportingInformation, start, end, minutesDuration, slot, created, comment, patientInstruction 2468 , basedOn, participant, requestedPeriod); 2469 } 2470 2471 @Override 2472 public ResourceType getResourceType() { 2473 return ResourceType.Appointment; 2474 } 2475 2476 /** 2477 * Search parameter: <b>actor</b> 2478 * <p> 2479 * Description: <b>Any one of the individuals participating in the appointment</b><br> 2480 * Type: <b>reference</b><br> 2481 * Path: <b>Appointment.participant.actor</b><br> 2482 * </p> 2483 */ 2484 @SearchParamDefinition(name="actor", path="Appointment.participant.actor", description="Any one of the individuals participating in the appointment", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={Device.class, HealthcareService.class, Location.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) 2485 public static final String SP_ACTOR = "actor"; 2486 /** 2487 * <b>Fluent Client</b> search parameter constant for <b>actor</b> 2488 * <p> 2489 * Description: <b>Any one of the individuals participating in the appointment</b><br> 2490 * Type: <b>reference</b><br> 2491 * Path: <b>Appointment.participant.actor</b><br> 2492 * </p> 2493 */ 2494 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ACTOR = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ACTOR); 2495 2496/** 2497 * Constant for fluent queries to be used to add include statements. Specifies 2498 * the path value of "<b>Appointment:actor</b>". 2499 */ 2500 public static final ca.uhn.fhir.model.api.Include INCLUDE_ACTOR = new ca.uhn.fhir.model.api.Include("Appointment:actor").toLocked(); 2501 2502 /** 2503 * Search parameter: <b>appointment-type</b> 2504 * <p> 2505 * Description: <b>The style of appointment or patient that has been booked in the slot (not service type)</b><br> 2506 * Type: <b>token</b><br> 2507 * Path: <b>Appointment.appointmentType</b><br> 2508 * </p> 2509 */ 2510 @SearchParamDefinition(name="appointment-type", path="Appointment.appointmentType", description="The style of appointment or patient that has been booked in the slot (not service type)", type="token" ) 2511 public static final String SP_APPOINTMENT_TYPE = "appointment-type"; 2512 /** 2513 * <b>Fluent Client</b> search parameter constant for <b>appointment-type</b> 2514 * <p> 2515 * Description: <b>The style of appointment or patient that has been booked in the slot (not service type)</b><br> 2516 * Type: <b>token</b><br> 2517 * Path: <b>Appointment.appointmentType</b><br> 2518 * </p> 2519 */ 2520 public static final ca.uhn.fhir.rest.gclient.TokenClientParam APPOINTMENT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_APPOINTMENT_TYPE); 2521 2522 /** 2523 * Search parameter: <b>based-on</b> 2524 * <p> 2525 * Description: <b>The service request this appointment is allocated to assess</b><br> 2526 * Type: <b>reference</b><br> 2527 * Path: <b>Appointment.basedOn</b><br> 2528 * </p> 2529 */ 2530 @SearchParamDefinition(name="based-on", path="Appointment.basedOn", description="The service request this appointment is allocated to assess", type="reference", target={ServiceRequest.class } ) 2531 public static final String SP_BASED_ON = "based-on"; 2532 /** 2533 * <b>Fluent Client</b> search parameter constant for <b>based-on</b> 2534 * <p> 2535 * Description: <b>The service request this appointment is allocated to assess</b><br> 2536 * Type: <b>reference</b><br> 2537 * Path: <b>Appointment.basedOn</b><br> 2538 * </p> 2539 */ 2540 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam BASED_ON = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_BASED_ON); 2541 2542/** 2543 * Constant for fluent queries to be used to add include statements. Specifies 2544 * the path value of "<b>Appointment:based-on</b>". 2545 */ 2546 public static final ca.uhn.fhir.model.api.Include INCLUDE_BASED_ON = new ca.uhn.fhir.model.api.Include("Appointment:based-on").toLocked(); 2547 2548 /** 2549 * Search parameter: <b>date</b> 2550 * <p> 2551 * Description: <b>Appointment date/time.</b><br> 2552 * Type: <b>date</b><br> 2553 * Path: <b>Appointment.start</b><br> 2554 * </p> 2555 */ 2556 @SearchParamDefinition(name="date", path="Appointment.start", description="Appointment date/time.", type="date" ) 2557 public static final String SP_DATE = "date"; 2558 /** 2559 * <b>Fluent Client</b> search parameter constant for <b>date</b> 2560 * <p> 2561 * Description: <b>Appointment date/time.</b><br> 2562 * Type: <b>date</b><br> 2563 * Path: <b>Appointment.start</b><br> 2564 * </p> 2565 */ 2566 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 2567 2568 /** 2569 * Search parameter: <b>identifier</b> 2570 * <p> 2571 * Description: <b>An Identifier of the Appointment</b><br> 2572 * Type: <b>token</b><br> 2573 * Path: <b>Appointment.identifier</b><br> 2574 * </p> 2575 */ 2576 @SearchParamDefinition(name="identifier", path="Appointment.identifier", description="An Identifier of the Appointment", type="token" ) 2577 public static final String SP_IDENTIFIER = "identifier"; 2578 /** 2579 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 2580 * <p> 2581 * Description: <b>An Identifier of the Appointment</b><br> 2582 * Type: <b>token</b><br> 2583 * Path: <b>Appointment.identifier</b><br> 2584 * </p> 2585 */ 2586 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 2587 2588 /** 2589 * Search parameter: <b>location</b> 2590 * <p> 2591 * Description: <b>This location is listed in the participants of the appointment</b><br> 2592 * Type: <b>reference</b><br> 2593 * Path: <b>Appointment.participant.actor.where(resolve() is Location)</b><br> 2594 * </p> 2595 */ 2596 @SearchParamDefinition(name="location", path="Appointment.participant.actor.where(resolve() is Location)", description="This location is listed in the participants of the appointment", type="reference", target={Location.class } ) 2597 public static final String SP_LOCATION = "location"; 2598 /** 2599 * <b>Fluent Client</b> search parameter constant for <b>location</b> 2600 * <p> 2601 * Description: <b>This location is listed in the participants of the appointment</b><br> 2602 * Type: <b>reference</b><br> 2603 * Path: <b>Appointment.participant.actor.where(resolve() is Location)</b><br> 2604 * </p> 2605 */ 2606 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam LOCATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_LOCATION); 2607 2608/** 2609 * Constant for fluent queries to be used to add include statements. Specifies 2610 * the path value of "<b>Appointment:location</b>". 2611 */ 2612 public static final ca.uhn.fhir.model.api.Include INCLUDE_LOCATION = new ca.uhn.fhir.model.api.Include("Appointment:location").toLocked(); 2613 2614 /** 2615 * Search parameter: <b>part-status</b> 2616 * <p> 2617 * Description: <b>The Participation status of the subject, or other participant on the appointment. Can be used to locate participants that have not responded to meeting requests.</b><br> 2618 * Type: <b>token</b><br> 2619 * Path: <b>Appointment.participant.status</b><br> 2620 * </p> 2621 */ 2622 @SearchParamDefinition(name="part-status", path="Appointment.participant.status", description="The Participation status of the subject, or other participant on the appointment. Can be used to locate participants that have not responded to meeting requests.", type="token" ) 2623 public static final String SP_PART_STATUS = "part-status"; 2624 /** 2625 * <b>Fluent Client</b> search parameter constant for <b>part-status</b> 2626 * <p> 2627 * Description: <b>The Participation status of the subject, or other participant on the appointment. Can be used to locate participants that have not responded to meeting requests.</b><br> 2628 * Type: <b>token</b><br> 2629 * Path: <b>Appointment.participant.status</b><br> 2630 * </p> 2631 */ 2632 public static final ca.uhn.fhir.rest.gclient.TokenClientParam PART_STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PART_STATUS); 2633 2634 /** 2635 * Search parameter: <b>patient</b> 2636 * <p> 2637 * Description: <b>One of the individuals of the appointment is this patient</b><br> 2638 * Type: <b>reference</b><br> 2639 * Path: <b>Appointment.participant.actor.where(resolve() is Patient)</b><br> 2640 * </p> 2641 */ 2642 @SearchParamDefinition(name="patient", path="Appointment.participant.actor.where(resolve() is Patient)", description="One of the individuals of the appointment is this patient", type="reference", target={Patient.class } ) 2643 public static final String SP_PATIENT = "patient"; 2644 /** 2645 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 2646 * <p> 2647 * Description: <b>One of the individuals of the appointment is this patient</b><br> 2648 * Type: <b>reference</b><br> 2649 * Path: <b>Appointment.participant.actor.where(resolve() is Patient)</b><br> 2650 * </p> 2651 */ 2652 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); 2653 2654/** 2655 * Constant for fluent queries to be used to add include statements. Specifies 2656 * the path value of "<b>Appointment:patient</b>". 2657 */ 2658 public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Appointment:patient").toLocked(); 2659 2660 /** 2661 * Search parameter: <b>practitioner</b> 2662 * <p> 2663 * Description: <b>One of the individuals of the appointment is this practitioner</b><br> 2664 * Type: <b>reference</b><br> 2665 * Path: <b>Appointment.participant.actor.where(resolve() is Practitioner)</b><br> 2666 * </p> 2667 */ 2668 @SearchParamDefinition(name="practitioner", path="Appointment.participant.actor.where(resolve() is Practitioner)", description="One of the individuals of the appointment is this practitioner", type="reference", target={Practitioner.class } ) 2669 public static final String SP_PRACTITIONER = "practitioner"; 2670 /** 2671 * <b>Fluent Client</b> search parameter constant for <b>practitioner</b> 2672 * <p> 2673 * Description: <b>One of the individuals of the appointment is this practitioner</b><br> 2674 * Type: <b>reference</b><br> 2675 * Path: <b>Appointment.participant.actor.where(resolve() is Practitioner)</b><br> 2676 * </p> 2677 */ 2678 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PRACTITIONER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PRACTITIONER); 2679 2680/** 2681 * Constant for fluent queries to be used to add include statements. Specifies 2682 * the path value of "<b>Appointment:practitioner</b>". 2683 */ 2684 public static final ca.uhn.fhir.model.api.Include INCLUDE_PRACTITIONER = new ca.uhn.fhir.model.api.Include("Appointment:practitioner").toLocked(); 2685 2686 /** 2687 * Search parameter: <b>reason-code</b> 2688 * <p> 2689 * Description: <b>Reference to a concept (by class)</b><br> 2690 * Type: <b>token</b><br> 2691 * Path: <b>Appointment.reason.concept</b><br> 2692 * </p> 2693 */ 2694 @SearchParamDefinition(name="reason-code", path="Appointment.reason.concept", description="Reference to a concept (by class)", type="token" ) 2695 public static final String SP_REASON_CODE = "reason-code"; 2696 /** 2697 * <b>Fluent Client</b> search parameter constant for <b>reason-code</b> 2698 * <p> 2699 * Description: <b>Reference to a concept (by class)</b><br> 2700 * Type: <b>token</b><br> 2701 * Path: <b>Appointment.reason.concept</b><br> 2702 * </p> 2703 */ 2704 public static final ca.uhn.fhir.rest.gclient.TokenClientParam REASON_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REASON_CODE); 2705 2706 /** 2707 * Search parameter: <b>reason-reference</b> 2708 * <p> 2709 * Description: <b>Reference to a resource (by instance)</b><br> 2710 * Type: <b>reference</b><br> 2711 * Path: <b>Appointment.reason.reference</b><br> 2712 * </p> 2713 */ 2714 @SearchParamDefinition(name="reason-reference", path="Appointment.reason.reference", description="Reference to a resource (by instance)", type="reference" ) 2715 public static final String SP_REASON_REFERENCE = "reason-reference"; 2716 /** 2717 * <b>Fluent Client</b> search parameter constant for <b>reason-reference</b> 2718 * <p> 2719 * Description: <b>Reference to a resource (by instance)</b><br> 2720 * Type: <b>reference</b><br> 2721 * Path: <b>Appointment.reason.reference</b><br> 2722 * </p> 2723 */ 2724 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REASON_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REASON_REFERENCE); 2725 2726/** 2727 * Constant for fluent queries to be used to add include statements. Specifies 2728 * the path value of "<b>Appointment:reason-reference</b>". 2729 */ 2730 public static final ca.uhn.fhir.model.api.Include INCLUDE_REASON_REFERENCE = new ca.uhn.fhir.model.api.Include("Appointment:reason-reference").toLocked(); 2731 2732 /** 2733 * Search parameter: <b>service-category</b> 2734 * <p> 2735 * Description: <b>A broad categorization of the service that is to be performed during this appointment</b><br> 2736 * Type: <b>token</b><br> 2737 * Path: <b>Appointment.serviceCategory</b><br> 2738 * </p> 2739 */ 2740 @SearchParamDefinition(name="service-category", path="Appointment.serviceCategory", description="A broad categorization of the service that is to be performed during this appointment", type="token" ) 2741 public static final String SP_SERVICE_CATEGORY = "service-category"; 2742 /** 2743 * <b>Fluent Client</b> search parameter constant for <b>service-category</b> 2744 * <p> 2745 * Description: <b>A broad categorization of the service that is to be performed during this appointment</b><br> 2746 * Type: <b>token</b><br> 2747 * Path: <b>Appointment.serviceCategory</b><br> 2748 * </p> 2749 */ 2750 public static final ca.uhn.fhir.rest.gclient.TokenClientParam SERVICE_CATEGORY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SERVICE_CATEGORY); 2751 2752 /** 2753 * Search parameter: <b>service-type</b> 2754 * <p> 2755 * Description: <b>The specific service that is to be performed during this appointment</b><br> 2756 * Type: <b>token</b><br> 2757 * Path: <b>Appointment.serviceType</b><br> 2758 * </p> 2759 */ 2760 @SearchParamDefinition(name="service-type", path="Appointment.serviceType", description="The specific service that is to be performed during this appointment", type="token" ) 2761 public static final String SP_SERVICE_TYPE = "service-type"; 2762 /** 2763 * <b>Fluent Client</b> search parameter constant for <b>service-type</b> 2764 * <p> 2765 * Description: <b>The specific service that is to be performed during this appointment</b><br> 2766 * Type: <b>token</b><br> 2767 * Path: <b>Appointment.serviceType</b><br> 2768 * </p> 2769 */ 2770 public static final ca.uhn.fhir.rest.gclient.TokenClientParam SERVICE_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SERVICE_TYPE); 2771 2772 /** 2773 * Search parameter: <b>slot</b> 2774 * <p> 2775 * Description: <b>The slots that this appointment is filling</b><br> 2776 * Type: <b>reference</b><br> 2777 * Path: <b>Appointment.slot</b><br> 2778 * </p> 2779 */ 2780 @SearchParamDefinition(name="slot", path="Appointment.slot", description="The slots that this appointment is filling", type="reference", target={Slot.class } ) 2781 public static final String SP_SLOT = "slot"; 2782 /** 2783 * <b>Fluent Client</b> search parameter constant for <b>slot</b> 2784 * <p> 2785 * Description: <b>The slots that this appointment is filling</b><br> 2786 * Type: <b>reference</b><br> 2787 * Path: <b>Appointment.slot</b><br> 2788 * </p> 2789 */ 2790 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SLOT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SLOT); 2791 2792/** 2793 * Constant for fluent queries to be used to add include statements. Specifies 2794 * the path value of "<b>Appointment:slot</b>". 2795 */ 2796 public static final ca.uhn.fhir.model.api.Include INCLUDE_SLOT = new ca.uhn.fhir.model.api.Include("Appointment:slot").toLocked(); 2797 2798 /** 2799 * Search parameter: <b>specialty</b> 2800 * <p> 2801 * Description: <b>The specialty of a practitioner that would be required to perform the service requested in this appointment</b><br> 2802 * Type: <b>token</b><br> 2803 * Path: <b>Appointment.specialty</b><br> 2804 * </p> 2805 */ 2806 @SearchParamDefinition(name="specialty", path="Appointment.specialty", description="The specialty of a practitioner that would be required to perform the service requested in this appointment", type="token" ) 2807 public static final String SP_SPECIALTY = "specialty"; 2808 /** 2809 * <b>Fluent Client</b> search parameter constant for <b>specialty</b> 2810 * <p> 2811 * Description: <b>The specialty of a practitioner that would be required to perform the service requested in this appointment</b><br> 2812 * Type: <b>token</b><br> 2813 * Path: <b>Appointment.specialty</b><br> 2814 * </p> 2815 */ 2816 public static final ca.uhn.fhir.rest.gclient.TokenClientParam SPECIALTY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SPECIALTY); 2817 2818 /** 2819 * Search parameter: <b>status</b> 2820 * <p> 2821 * Description: <b>The overall status of the appointment</b><br> 2822 * Type: <b>token</b><br> 2823 * Path: <b>Appointment.status</b><br> 2824 * </p> 2825 */ 2826 @SearchParamDefinition(name="status", path="Appointment.status", description="The overall status of the appointment", type="token" ) 2827 public static final String SP_STATUS = "status"; 2828 /** 2829 * <b>Fluent Client</b> search parameter constant for <b>status</b> 2830 * <p> 2831 * Description: <b>The overall status of the appointment</b><br> 2832 * Type: <b>token</b><br> 2833 * Path: <b>Appointment.status</b><br> 2834 * </p> 2835 */ 2836 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 2837 2838 /** 2839 * Search parameter: <b>supporting-info</b> 2840 * <p> 2841 * Description: <b>Additional information to support the appointment</b><br> 2842 * Type: <b>reference</b><br> 2843 * Path: <b>Appointment.supportingInformation</b><br> 2844 * </p> 2845 */ 2846 @SearchParamDefinition(name="supporting-info", path="Appointment.supportingInformation", description="Additional information to support the appointment", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, Topic.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) 2847 public static final String SP_SUPPORTING_INFO = "supporting-info"; 2848 /** 2849 * <b>Fluent Client</b> search parameter constant for <b>supporting-info</b> 2850 * <p> 2851 * Description: <b>Additional information to support the appointment</b><br> 2852 * Type: <b>reference</b><br> 2853 * Path: <b>Appointment.supportingInformation</b><br> 2854 * </p> 2855 */ 2856 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUPPORTING_INFO = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUPPORTING_INFO); 2857 2858/** 2859 * Constant for fluent queries to be used to add include statements. Specifies 2860 * the path value of "<b>Appointment:supporting-info</b>". 2861 */ 2862 public static final ca.uhn.fhir.model.api.Include INCLUDE_SUPPORTING_INFO = new ca.uhn.fhir.model.api.Include("Appointment:supporting-info").toLocked(); 2863 2864 2865} 2866