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 request to convey information; e.g. the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition. 072 */ 073@ResourceDef(name="CommunicationRequest", profile="http://hl7.org/fhir/StructureDefinition/CommunicationRequest") 074public class CommunicationRequest extends DomainResource { 075 076 @Block() 077 public static class CommunicationRequestPayloadComponent extends BackboneElement implements IBaseBackboneElement { 078 /** 079 * The communicated content (or for multi-part communications, one portion of the communication). 080 */ 081 @Child(name = "content", type = {Attachment.class, Reference.class, CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=false) 082 @Description(shortDefinition="Message part content", formalDefinition="The communicated content (or for multi-part communications, one portion of the communication)." ) 083 protected DataType content; 084 085 private static final long serialVersionUID = -1954179063L; 086 087 /** 088 * Constructor 089 */ 090 public CommunicationRequestPayloadComponent() { 091 super(); 092 } 093 094 /** 095 * Constructor 096 */ 097 public CommunicationRequestPayloadComponent(DataType content) { 098 super(); 099 this.setContent(content); 100 } 101 102 /** 103 * @return {@link #content} (The communicated content (or for multi-part communications, one portion of the communication).) 104 */ 105 public DataType getContent() { 106 return this.content; 107 } 108 109 /** 110 * @return {@link #content} (The communicated content (or for multi-part communications, one portion of the communication).) 111 */ 112 public Attachment getContentAttachment() throws FHIRException { 113 if (this.content == null) 114 this.content = new Attachment(); 115 if (!(this.content instanceof Attachment)) 116 throw new FHIRException("Type mismatch: the type Attachment was expected, but "+this.content.getClass().getName()+" was encountered"); 117 return (Attachment) this.content; 118 } 119 120 public boolean hasContentAttachment() { 121 return this != null && this.content instanceof Attachment; 122 } 123 124 /** 125 * @return {@link #content} (The communicated content (or for multi-part communications, one portion of the communication).) 126 */ 127 public Reference getContentReference() throws FHIRException { 128 if (this.content == null) 129 this.content = new Reference(); 130 if (!(this.content instanceof Reference)) 131 throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.content.getClass().getName()+" was encountered"); 132 return (Reference) this.content; 133 } 134 135 public boolean hasContentReference() { 136 return this != null && this.content instanceof Reference; 137 } 138 139 /** 140 * @return {@link #content} (The communicated content (or for multi-part communications, one portion of the communication).) 141 */ 142 public CodeableConcept getContentCodeableConcept() throws FHIRException { 143 if (this.content == null) 144 this.content = new CodeableConcept(); 145 if (!(this.content instanceof CodeableConcept)) 146 throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.content.getClass().getName()+" was encountered"); 147 return (CodeableConcept) this.content; 148 } 149 150 public boolean hasContentCodeableConcept() { 151 return this != null && this.content instanceof CodeableConcept; 152 } 153 154 public boolean hasContent() { 155 return this.content != null && !this.content.isEmpty(); 156 } 157 158 /** 159 * @param value {@link #content} (The communicated content (or for multi-part communications, one portion of the communication).) 160 */ 161 public CommunicationRequestPayloadComponent setContent(DataType value) { 162 if (value != null && !(value instanceof Attachment || value instanceof Reference || value instanceof CodeableConcept)) 163 throw new Error("Not the right type for CommunicationRequest.payload.content[x]: "+value.fhirType()); 164 this.content = value; 165 return this; 166 } 167 168 protected void listChildren(List<Property> children) { 169 super.listChildren(children); 170 children.add(new Property("content[x]", "Attachment|Reference(Any)|CodeableConcept", "The communicated content (or for multi-part communications, one portion of the communication).", 0, 1, content)); 171 } 172 173 @Override 174 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 175 switch (_hash) { 176 case 264548711: /*content[x]*/ return new Property("content[x]", "Attachment|Reference(Any)|CodeableConcept", "The communicated content (or for multi-part communications, one portion of the communication).", 0, 1, content); 177 case 951530617: /*content*/ return new Property("content[x]", "Attachment|Reference(Any)|CodeableConcept", "The communicated content (or for multi-part communications, one portion of the communication).", 0, 1, content); 178 case -702028164: /*contentAttachment*/ return new Property("content[x]", "Attachment", "The communicated content (or for multi-part communications, one portion of the communication).", 0, 1, content); 179 case 1193747154: /*contentReference*/ return new Property("content[x]", "Reference(Any)", "The communicated content (or for multi-part communications, one portion of the communication).", 0, 1, content); 180 case 1554698728: /*contentCodeableConcept*/ return new Property("content[x]", "CodeableConcept", "The communicated content (or for multi-part communications, one portion of the communication).", 0, 1, content); 181 default: return super.getNamedProperty(_hash, _name, _checkValid); 182 } 183 184 } 185 186 @Override 187 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 188 switch (hash) { 189 case 951530617: /*content*/ return this.content == null ? new Base[0] : new Base[] {this.content}; // DataType 190 default: return super.getProperty(hash, name, checkValid); 191 } 192 193 } 194 195 @Override 196 public Base setProperty(int hash, String name, Base value) throws FHIRException { 197 switch (hash) { 198 case 951530617: // content 199 this.content = TypeConvertor.castToType(value); // DataType 200 return value; 201 default: return super.setProperty(hash, name, value); 202 } 203 204 } 205 206 @Override 207 public Base setProperty(String name, Base value) throws FHIRException { 208 if (name.equals("content[x]")) { 209 this.content = TypeConvertor.castToType(value); // DataType 210 } else 211 return super.setProperty(name, value); 212 return value; 213 } 214 215 @Override 216 public Base makeProperty(int hash, String name) throws FHIRException { 217 switch (hash) { 218 case 264548711: return getContent(); 219 case 951530617: return getContent(); 220 default: return super.makeProperty(hash, name); 221 } 222 223 } 224 225 @Override 226 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 227 switch (hash) { 228 case 951530617: /*content*/ return new String[] {"Attachment", "Reference", "CodeableConcept"}; 229 default: return super.getTypesForProperty(hash, name); 230 } 231 232 } 233 234 @Override 235 public Base addChild(String name) throws FHIRException { 236 if (name.equals("contentAttachment")) { 237 this.content = new Attachment(); 238 return this.content; 239 } 240 else if (name.equals("contentReference")) { 241 this.content = new Reference(); 242 return this.content; 243 } 244 else if (name.equals("contentCodeableConcept")) { 245 this.content = new CodeableConcept(); 246 return this.content; 247 } 248 else 249 return super.addChild(name); 250 } 251 252 public CommunicationRequestPayloadComponent copy() { 253 CommunicationRequestPayloadComponent dst = new CommunicationRequestPayloadComponent(); 254 copyValues(dst); 255 return dst; 256 } 257 258 public void copyValues(CommunicationRequestPayloadComponent dst) { 259 super.copyValues(dst); 260 dst.content = content == null ? null : content.copy(); 261 } 262 263 @Override 264 public boolean equalsDeep(Base other_) { 265 if (!super.equalsDeep(other_)) 266 return false; 267 if (!(other_ instanceof CommunicationRequestPayloadComponent)) 268 return false; 269 CommunicationRequestPayloadComponent o = (CommunicationRequestPayloadComponent) other_; 270 return compareDeep(content, o.content, true); 271 } 272 273 @Override 274 public boolean equalsShallow(Base other_) { 275 if (!super.equalsShallow(other_)) 276 return false; 277 if (!(other_ instanceof CommunicationRequestPayloadComponent)) 278 return false; 279 CommunicationRequestPayloadComponent o = (CommunicationRequestPayloadComponent) other_; 280 return true; 281 } 282 283 public boolean isEmpty() { 284 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(content); 285 } 286 287 public String fhirType() { 288 return "CommunicationRequest.payload"; 289 290 } 291 292 } 293 294 /** 295 * Business identifiers assigned to this communication request by the performer or other systems which remain constant as the resource is updated and propagates from server to server. 296 */ 297 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 298 @Description(shortDefinition="Unique identifier", formalDefinition="Business identifiers assigned to this communication request by the performer or other systems which remain constant as the resource is updated and propagates from server to server." ) 299 protected List<Identifier> identifier; 300 301 /** 302 * A plan or proposal that is fulfilled in whole or in part by this request. 303 */ 304 @Child(name = "basedOn", type = {Reference.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 305 @Description(shortDefinition="Fulfills plan or proposal", formalDefinition="A plan or proposal that is fulfilled in whole or in part by this request." ) 306 protected List<Reference> basedOn; 307 308 /** 309 * Completed or terminated request(s) whose function is taken by this new request. 310 */ 311 @Child(name = "replaces", type = {CommunicationRequest.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 312 @Description(shortDefinition="Request(s) replaced by this request", formalDefinition="Completed or terminated request(s) whose function is taken by this new request." ) 313 protected List<Reference> replaces; 314 315 /** 316 * A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition, prescription or similar form. 317 */ 318 @Child(name = "groupIdentifier", type = {Identifier.class}, order=3, min=0, max=1, modifier=false, summary=true) 319 @Description(shortDefinition="Composite request this is part of", formalDefinition="A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition, prescription or similar form." ) 320 protected Identifier groupIdentifier; 321 322 /** 323 * The status of the proposal or order. 324 */ 325 @Child(name = "status", type = {CodeType.class}, order=4, min=1, max=1, modifier=true, summary=true) 326 @Description(shortDefinition="draft | active | on-hold | revoked | completed | entered-in-error | unknown", formalDefinition="The status of the proposal or order." ) 327 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/request-status") 328 protected Enumeration<RequestStatus> status; 329 330 /** 331 * Captures the reason for the current state of the CommunicationRequest. 332 */ 333 @Child(name = "statusReason", type = {CodeableConcept.class}, order=5, min=0, max=1, modifier=false, summary=false) 334 @Description(shortDefinition="Reason for current status", formalDefinition="Captures the reason for the current state of the CommunicationRequest." ) 335 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/communication-request-status-reason") 336 protected CodeableConcept statusReason; 337 338 /** 339 * The type of message to be sent such as alert, notification, reminder, instruction, etc. 340 */ 341 @Child(name = "category", type = {CodeableConcept.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 342 @Description(shortDefinition="Message category", formalDefinition="The type of message to be sent such as alert, notification, reminder, instruction, etc." ) 343 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/communication-category") 344 protected List<CodeableConcept> category; 345 346 /** 347 * Characterizes how quickly the proposed act must be initiated. Includes concepts such as stat, urgent, routine. 348 */ 349 @Child(name = "priority", type = {CodeType.class}, order=7, min=0, max=1, modifier=false, summary=true) 350 @Description(shortDefinition="routine | urgent | asap | stat", formalDefinition="Characterizes how quickly the proposed act must be initiated. Includes concepts such as stat, urgent, routine." ) 351 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/request-priority") 352 protected Enumeration<RequestPriority> priority; 353 354 /** 355 * If true indicates that the CommunicationRequest is asking for the specified action to *not* occur. 356 */ 357 @Child(name = "doNotPerform", type = {BooleanType.class}, order=8, min=0, max=1, modifier=true, summary=true) 358 @Description(shortDefinition="True if request is prohibiting action", formalDefinition="If true indicates that the CommunicationRequest is asking for the specified action to *not* occur." ) 359 protected BooleanType doNotPerform; 360 361 /** 362 * A channel that was used for this communication (e.g. email, fax). 363 */ 364 @Child(name = "medium", type = {CodeableConcept.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 365 @Description(shortDefinition="A channel of communication", formalDefinition="A channel that was used for this communication (e.g. email, fax)." ) 366 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://terminology.hl7.org/ValueSet/v3-ParticipationMode") 367 protected List<CodeableConcept> medium; 368 369 /** 370 * The patient or group that is the focus of this communication request. 371 */ 372 @Child(name = "subject", type = {Patient.class, Group.class}, order=10, min=0, max=1, modifier=false, summary=false) 373 @Description(shortDefinition="Focus of message", formalDefinition="The patient or group that is the focus of this communication request." ) 374 protected Reference subject; 375 376 /** 377 * Other resources that pertain to this communication request and to which this communication request should be associated. 378 */ 379 @Child(name = "about", type = {Reference.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 380 @Description(shortDefinition="Resources that pertain to this communication request", formalDefinition="Other resources that pertain to this communication request and to which this communication request should be associated." ) 381 protected List<Reference> about; 382 383 /** 384 * The Encounter during which this CommunicationRequest was created or to which the creation of this record is tightly associated. 385 */ 386 @Child(name = "encounter", type = {Encounter.class}, order=12, min=0, max=1, modifier=false, summary=true) 387 @Description(shortDefinition="The Encounter during which this CommunicationRequest was created", formalDefinition="The Encounter during which this CommunicationRequest was created or to which the creation of this record is tightly associated." ) 388 protected Reference encounter; 389 390 /** 391 * Text, attachment(s), or resource(s) to be communicated to the recipient. 392 */ 393 @Child(name = "payload", type = {}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 394 @Description(shortDefinition="Message payload", formalDefinition="Text, attachment(s), or resource(s) to be communicated to the recipient." ) 395 protected List<CommunicationRequestPayloadComponent> payload; 396 397 /** 398 * The time when this communication is to occur. 399 */ 400 @Child(name = "occurrence", type = {DateTimeType.class, Period.class}, order=14, min=0, max=1, modifier=false, summary=true) 401 @Description(shortDefinition="When scheduled", formalDefinition="The time when this communication is to occur." ) 402 protected DataType occurrence; 403 404 /** 405 * For draft requests, indicates the date of initial creation. For requests with other statuses, indicates the date of activation. 406 */ 407 @Child(name = "authoredOn", type = {DateTimeType.class}, order=15, min=0, max=1, modifier=false, summary=true) 408 @Description(shortDefinition="When request transitioned to being actionable", formalDefinition="For draft requests, indicates the date of initial creation. For requests with other statuses, indicates the date of activation." ) 409 protected DateTimeType authoredOn; 410 411 /** 412 * The device, individual, or organization who asks for the information to be shared. 413 */ 414 @Child(name = "requester", type = {Practitioner.class, PractitionerRole.class, Organization.class, Patient.class, RelatedPerson.class, Device.class}, order=16, min=0, max=1, modifier=false, summary=true) 415 @Description(shortDefinition="Who asks for the information to be shared", formalDefinition="The device, individual, or organization who asks for the information to be shared." ) 416 protected Reference requester; 417 418 /** 419 * The entity (e.g. person, organization, clinical information system, device, group, or care team) which is the intended target of the communication. 420 */ 421 @Child(name = "recipient", type = {Device.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class, Group.class, CareTeam.class, HealthcareService.class, Endpoint.class}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 422 @Description(shortDefinition="Who to share the information with", formalDefinition="The entity (e.g. person, organization, clinical information system, device, group, or care team) which is the intended target of the communication." ) 423 protected List<Reference> recipient; 424 425 /** 426 * The entity (e.g. person, organization, clinical information system, or device) which is to be the source of the communication. 427 */ 428 @Child(name = "informationProvider", type = {Device.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class, HealthcareService.class, Endpoint.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 429 @Description(shortDefinition="Who should share the information", formalDefinition="The entity (e.g. person, organization, clinical information system, or device) which is to be the source of the communication." ) 430 protected List<Reference> informationProvider; 431 432 /** 433 * Describes why the request is being made in coded or textual form. 434 */ 435 @Child(name = "reason", type = {CodeableReference.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 436 @Description(shortDefinition="Why is communication needed?", formalDefinition="Describes why the request is being made in coded or textual form." ) 437 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://terminology.hl7.org/ValueSet/v3-ActReason") 438 protected List<CodeableReference> reason; 439 440 /** 441 * Comments made about the request by the requester, sender, recipient, subject or other participants. 442 */ 443 @Child(name = "note", type = {Annotation.class}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 444 @Description(shortDefinition="Comments made about communication request", formalDefinition="Comments made about the request by the requester, sender, recipient, subject or other participants." ) 445 protected List<Annotation> note; 446 447 private static final long serialVersionUID = 239948247L; 448 449 /** 450 * Constructor 451 */ 452 public CommunicationRequest() { 453 super(); 454 } 455 456 /** 457 * Constructor 458 */ 459 public CommunicationRequest(RequestStatus status) { 460 super(); 461 this.setStatus(status); 462 } 463 464 /** 465 * @return {@link #identifier} (Business identifiers assigned to this communication request by the performer or other systems which remain constant as the resource is updated and propagates from server to server.) 466 */ 467 public List<Identifier> getIdentifier() { 468 if (this.identifier == null) 469 this.identifier = new ArrayList<Identifier>(); 470 return this.identifier; 471 } 472 473 /** 474 * @return Returns a reference to <code>this</code> for easy method chaining 475 */ 476 public CommunicationRequest setIdentifier(List<Identifier> theIdentifier) { 477 this.identifier = theIdentifier; 478 return this; 479 } 480 481 public boolean hasIdentifier() { 482 if (this.identifier == null) 483 return false; 484 for (Identifier item : this.identifier) 485 if (!item.isEmpty()) 486 return true; 487 return false; 488 } 489 490 public Identifier addIdentifier() { //3 491 Identifier t = new Identifier(); 492 if (this.identifier == null) 493 this.identifier = new ArrayList<Identifier>(); 494 this.identifier.add(t); 495 return t; 496 } 497 498 public CommunicationRequest addIdentifier(Identifier t) { //3 499 if (t == null) 500 return this; 501 if (this.identifier == null) 502 this.identifier = new ArrayList<Identifier>(); 503 this.identifier.add(t); 504 return this; 505 } 506 507 /** 508 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} 509 */ 510 public Identifier getIdentifierFirstRep() { 511 if (getIdentifier().isEmpty()) { 512 addIdentifier(); 513 } 514 return getIdentifier().get(0); 515 } 516 517 /** 518 * @return {@link #basedOn} (A plan or proposal that is fulfilled in whole or in part by this request.) 519 */ 520 public List<Reference> getBasedOn() { 521 if (this.basedOn == null) 522 this.basedOn = new ArrayList<Reference>(); 523 return this.basedOn; 524 } 525 526 /** 527 * @return Returns a reference to <code>this</code> for easy method chaining 528 */ 529 public CommunicationRequest setBasedOn(List<Reference> theBasedOn) { 530 this.basedOn = theBasedOn; 531 return this; 532 } 533 534 public boolean hasBasedOn() { 535 if (this.basedOn == null) 536 return false; 537 for (Reference item : this.basedOn) 538 if (!item.isEmpty()) 539 return true; 540 return false; 541 } 542 543 public Reference addBasedOn() { //3 544 Reference t = new Reference(); 545 if (this.basedOn == null) 546 this.basedOn = new ArrayList<Reference>(); 547 this.basedOn.add(t); 548 return t; 549 } 550 551 public CommunicationRequest addBasedOn(Reference t) { //3 552 if (t == null) 553 return this; 554 if (this.basedOn == null) 555 this.basedOn = new ArrayList<Reference>(); 556 this.basedOn.add(t); 557 return this; 558 } 559 560 /** 561 * @return The first repetition of repeating field {@link #basedOn}, creating it if it does not already exist {3} 562 */ 563 public Reference getBasedOnFirstRep() { 564 if (getBasedOn().isEmpty()) { 565 addBasedOn(); 566 } 567 return getBasedOn().get(0); 568 } 569 570 /** 571 * @return {@link #replaces} (Completed or terminated request(s) whose function is taken by this new request.) 572 */ 573 public List<Reference> getReplaces() { 574 if (this.replaces == null) 575 this.replaces = new ArrayList<Reference>(); 576 return this.replaces; 577 } 578 579 /** 580 * @return Returns a reference to <code>this</code> for easy method chaining 581 */ 582 public CommunicationRequest setReplaces(List<Reference> theReplaces) { 583 this.replaces = theReplaces; 584 return this; 585 } 586 587 public boolean hasReplaces() { 588 if (this.replaces == null) 589 return false; 590 for (Reference item : this.replaces) 591 if (!item.isEmpty()) 592 return true; 593 return false; 594 } 595 596 public Reference addReplaces() { //3 597 Reference t = new Reference(); 598 if (this.replaces == null) 599 this.replaces = new ArrayList<Reference>(); 600 this.replaces.add(t); 601 return t; 602 } 603 604 public CommunicationRequest addReplaces(Reference t) { //3 605 if (t == null) 606 return this; 607 if (this.replaces == null) 608 this.replaces = new ArrayList<Reference>(); 609 this.replaces.add(t); 610 return this; 611 } 612 613 /** 614 * @return The first repetition of repeating field {@link #replaces}, creating it if it does not already exist {3} 615 */ 616 public Reference getReplacesFirstRep() { 617 if (getReplaces().isEmpty()) { 618 addReplaces(); 619 } 620 return getReplaces().get(0); 621 } 622 623 /** 624 * @return {@link #groupIdentifier} (A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition, prescription or similar form.) 625 */ 626 public Identifier getGroupIdentifier() { 627 if (this.groupIdentifier == null) 628 if (Configuration.errorOnAutoCreate()) 629 throw new Error("Attempt to auto-create CommunicationRequest.groupIdentifier"); 630 else if (Configuration.doAutoCreate()) 631 this.groupIdentifier = new Identifier(); // cc 632 return this.groupIdentifier; 633 } 634 635 public boolean hasGroupIdentifier() { 636 return this.groupIdentifier != null && !this.groupIdentifier.isEmpty(); 637 } 638 639 /** 640 * @param value {@link #groupIdentifier} (A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition, prescription or similar form.) 641 */ 642 public CommunicationRequest setGroupIdentifier(Identifier value) { 643 this.groupIdentifier = value; 644 return this; 645 } 646 647 /** 648 * @return {@link #status} (The status of the proposal or order.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 649 */ 650 public Enumeration<RequestStatus> getStatusElement() { 651 if (this.status == null) 652 if (Configuration.errorOnAutoCreate()) 653 throw new Error("Attempt to auto-create CommunicationRequest.status"); 654 else if (Configuration.doAutoCreate()) 655 this.status = new Enumeration<RequestStatus>(new RequestStatusEnumFactory()); // bb 656 return this.status; 657 } 658 659 public boolean hasStatusElement() { 660 return this.status != null && !this.status.isEmpty(); 661 } 662 663 public boolean hasStatus() { 664 return this.status != null && !this.status.isEmpty(); 665 } 666 667 /** 668 * @param value {@link #status} (The status of the proposal or order.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 669 */ 670 public CommunicationRequest setStatusElement(Enumeration<RequestStatus> value) { 671 this.status = value; 672 return this; 673 } 674 675 /** 676 * @return The status of the proposal or order. 677 */ 678 public RequestStatus getStatus() { 679 return this.status == null ? null : this.status.getValue(); 680 } 681 682 /** 683 * @param value The status of the proposal or order. 684 */ 685 public CommunicationRequest setStatus(RequestStatus value) { 686 if (this.status == null) 687 this.status = new Enumeration<RequestStatus>(new RequestStatusEnumFactory()); 688 this.status.setValue(value); 689 return this; 690 } 691 692 /** 693 * @return {@link #statusReason} (Captures the reason for the current state of the CommunicationRequest.) 694 */ 695 public CodeableConcept getStatusReason() { 696 if (this.statusReason == null) 697 if (Configuration.errorOnAutoCreate()) 698 throw new Error("Attempt to auto-create CommunicationRequest.statusReason"); 699 else if (Configuration.doAutoCreate()) 700 this.statusReason = new CodeableConcept(); // cc 701 return this.statusReason; 702 } 703 704 public boolean hasStatusReason() { 705 return this.statusReason != null && !this.statusReason.isEmpty(); 706 } 707 708 /** 709 * @param value {@link #statusReason} (Captures the reason for the current state of the CommunicationRequest.) 710 */ 711 public CommunicationRequest setStatusReason(CodeableConcept value) { 712 this.statusReason = value; 713 return this; 714 } 715 716 /** 717 * @return {@link #category} (The type of message to be sent such as alert, notification, reminder, instruction, etc.) 718 */ 719 public List<CodeableConcept> getCategory() { 720 if (this.category == null) 721 this.category = new ArrayList<CodeableConcept>(); 722 return this.category; 723 } 724 725 /** 726 * @return Returns a reference to <code>this</code> for easy method chaining 727 */ 728 public CommunicationRequest setCategory(List<CodeableConcept> theCategory) { 729 this.category = theCategory; 730 return this; 731 } 732 733 public boolean hasCategory() { 734 if (this.category == null) 735 return false; 736 for (CodeableConcept item : this.category) 737 if (!item.isEmpty()) 738 return true; 739 return false; 740 } 741 742 public CodeableConcept addCategory() { //3 743 CodeableConcept t = new CodeableConcept(); 744 if (this.category == null) 745 this.category = new ArrayList<CodeableConcept>(); 746 this.category.add(t); 747 return t; 748 } 749 750 public CommunicationRequest addCategory(CodeableConcept t) { //3 751 if (t == null) 752 return this; 753 if (this.category == null) 754 this.category = new ArrayList<CodeableConcept>(); 755 this.category.add(t); 756 return this; 757 } 758 759 /** 760 * @return The first repetition of repeating field {@link #category}, creating it if it does not already exist {3} 761 */ 762 public CodeableConcept getCategoryFirstRep() { 763 if (getCategory().isEmpty()) { 764 addCategory(); 765 } 766 return getCategory().get(0); 767 } 768 769 /** 770 * @return {@link #priority} (Characterizes how quickly the proposed act must be initiated. Includes concepts such as stat, urgent, routine.). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value 771 */ 772 public Enumeration<RequestPriority> getPriorityElement() { 773 if (this.priority == null) 774 if (Configuration.errorOnAutoCreate()) 775 throw new Error("Attempt to auto-create CommunicationRequest.priority"); 776 else if (Configuration.doAutoCreate()) 777 this.priority = new Enumeration<RequestPriority>(new RequestPriorityEnumFactory()); // bb 778 return this.priority; 779 } 780 781 public boolean hasPriorityElement() { 782 return this.priority != null && !this.priority.isEmpty(); 783 } 784 785 public boolean hasPriority() { 786 return this.priority != null && !this.priority.isEmpty(); 787 } 788 789 /** 790 * @param value {@link #priority} (Characterizes how quickly the proposed act must be initiated. Includes concepts such as stat, urgent, routine.). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value 791 */ 792 public CommunicationRequest setPriorityElement(Enumeration<RequestPriority> value) { 793 this.priority = value; 794 return this; 795 } 796 797 /** 798 * @return Characterizes how quickly the proposed act must be initiated. Includes concepts such as stat, urgent, routine. 799 */ 800 public RequestPriority getPriority() { 801 return this.priority == null ? null : this.priority.getValue(); 802 } 803 804 /** 805 * @param value Characterizes how quickly the proposed act must be initiated. Includes concepts such as stat, urgent, routine. 806 */ 807 public CommunicationRequest setPriority(RequestPriority value) { 808 if (value == null) 809 this.priority = null; 810 else { 811 if (this.priority == null) 812 this.priority = new Enumeration<RequestPriority>(new RequestPriorityEnumFactory()); 813 this.priority.setValue(value); 814 } 815 return this; 816 } 817 818 /** 819 * @return {@link #doNotPerform} (If true indicates that the CommunicationRequest is asking for the specified action to *not* occur.). This is the underlying object with id, value and extensions. The accessor "getDoNotPerform" gives direct access to the value 820 */ 821 public BooleanType getDoNotPerformElement() { 822 if (this.doNotPerform == null) 823 if (Configuration.errorOnAutoCreate()) 824 throw new Error("Attempt to auto-create CommunicationRequest.doNotPerform"); 825 else if (Configuration.doAutoCreate()) 826 this.doNotPerform = new BooleanType(); // bb 827 return this.doNotPerform; 828 } 829 830 public boolean hasDoNotPerformElement() { 831 return this.doNotPerform != null && !this.doNotPerform.isEmpty(); 832 } 833 834 public boolean hasDoNotPerform() { 835 return this.doNotPerform != null && !this.doNotPerform.isEmpty(); 836 } 837 838 /** 839 * @param value {@link #doNotPerform} (If true indicates that the CommunicationRequest is asking for the specified action to *not* occur.). This is the underlying object with id, value and extensions. The accessor "getDoNotPerform" gives direct access to the value 840 */ 841 public CommunicationRequest setDoNotPerformElement(BooleanType value) { 842 this.doNotPerform = value; 843 return this; 844 } 845 846 /** 847 * @return If true indicates that the CommunicationRequest is asking for the specified action to *not* occur. 848 */ 849 public boolean getDoNotPerform() { 850 return this.doNotPerform == null || this.doNotPerform.isEmpty() ? false : this.doNotPerform.getValue(); 851 } 852 853 /** 854 * @param value If true indicates that the CommunicationRequest is asking for the specified action to *not* occur. 855 */ 856 public CommunicationRequest setDoNotPerform(boolean value) { 857 if (this.doNotPerform == null) 858 this.doNotPerform = new BooleanType(); 859 this.doNotPerform.setValue(value); 860 return this; 861 } 862 863 /** 864 * @return {@link #medium} (A channel that was used for this communication (e.g. email, fax).) 865 */ 866 public List<CodeableConcept> getMedium() { 867 if (this.medium == null) 868 this.medium = new ArrayList<CodeableConcept>(); 869 return this.medium; 870 } 871 872 /** 873 * @return Returns a reference to <code>this</code> for easy method chaining 874 */ 875 public CommunicationRequest setMedium(List<CodeableConcept> theMedium) { 876 this.medium = theMedium; 877 return this; 878 } 879 880 public boolean hasMedium() { 881 if (this.medium == null) 882 return false; 883 for (CodeableConcept item : this.medium) 884 if (!item.isEmpty()) 885 return true; 886 return false; 887 } 888 889 public CodeableConcept addMedium() { //3 890 CodeableConcept t = new CodeableConcept(); 891 if (this.medium == null) 892 this.medium = new ArrayList<CodeableConcept>(); 893 this.medium.add(t); 894 return t; 895 } 896 897 public CommunicationRequest addMedium(CodeableConcept t) { //3 898 if (t == null) 899 return this; 900 if (this.medium == null) 901 this.medium = new ArrayList<CodeableConcept>(); 902 this.medium.add(t); 903 return this; 904 } 905 906 /** 907 * @return The first repetition of repeating field {@link #medium}, creating it if it does not already exist {3} 908 */ 909 public CodeableConcept getMediumFirstRep() { 910 if (getMedium().isEmpty()) { 911 addMedium(); 912 } 913 return getMedium().get(0); 914 } 915 916 /** 917 * @return {@link #subject} (The patient or group that is the focus of this communication request.) 918 */ 919 public Reference getSubject() { 920 if (this.subject == null) 921 if (Configuration.errorOnAutoCreate()) 922 throw new Error("Attempt to auto-create CommunicationRequest.subject"); 923 else if (Configuration.doAutoCreate()) 924 this.subject = new Reference(); // cc 925 return this.subject; 926 } 927 928 public boolean hasSubject() { 929 return this.subject != null && !this.subject.isEmpty(); 930 } 931 932 /** 933 * @param value {@link #subject} (The patient or group that is the focus of this communication request.) 934 */ 935 public CommunicationRequest setSubject(Reference value) { 936 this.subject = value; 937 return this; 938 } 939 940 /** 941 * @return {@link #about} (Other resources that pertain to this communication request and to which this communication request should be associated.) 942 */ 943 public List<Reference> getAbout() { 944 if (this.about == null) 945 this.about = new ArrayList<Reference>(); 946 return this.about; 947 } 948 949 /** 950 * @return Returns a reference to <code>this</code> for easy method chaining 951 */ 952 public CommunicationRequest setAbout(List<Reference> theAbout) { 953 this.about = theAbout; 954 return this; 955 } 956 957 public boolean hasAbout() { 958 if (this.about == null) 959 return false; 960 for (Reference item : this.about) 961 if (!item.isEmpty()) 962 return true; 963 return false; 964 } 965 966 public Reference addAbout() { //3 967 Reference t = new Reference(); 968 if (this.about == null) 969 this.about = new ArrayList<Reference>(); 970 this.about.add(t); 971 return t; 972 } 973 974 public CommunicationRequest addAbout(Reference t) { //3 975 if (t == null) 976 return this; 977 if (this.about == null) 978 this.about = new ArrayList<Reference>(); 979 this.about.add(t); 980 return this; 981 } 982 983 /** 984 * @return The first repetition of repeating field {@link #about}, creating it if it does not already exist {3} 985 */ 986 public Reference getAboutFirstRep() { 987 if (getAbout().isEmpty()) { 988 addAbout(); 989 } 990 return getAbout().get(0); 991 } 992 993 /** 994 * @return {@link #encounter} (The Encounter during which this CommunicationRequest was created or to which the creation of this record is tightly associated.) 995 */ 996 public Reference getEncounter() { 997 if (this.encounter == null) 998 if (Configuration.errorOnAutoCreate()) 999 throw new Error("Attempt to auto-create CommunicationRequest.encounter"); 1000 else if (Configuration.doAutoCreate()) 1001 this.encounter = new Reference(); // cc 1002 return this.encounter; 1003 } 1004 1005 public boolean hasEncounter() { 1006 return this.encounter != null && !this.encounter.isEmpty(); 1007 } 1008 1009 /** 1010 * @param value {@link #encounter} (The Encounter during which this CommunicationRequest was created or to which the creation of this record is tightly associated.) 1011 */ 1012 public CommunicationRequest setEncounter(Reference value) { 1013 this.encounter = value; 1014 return this; 1015 } 1016 1017 /** 1018 * @return {@link #payload} (Text, attachment(s), or resource(s) to be communicated to the recipient.) 1019 */ 1020 public List<CommunicationRequestPayloadComponent> getPayload() { 1021 if (this.payload == null) 1022 this.payload = new ArrayList<CommunicationRequestPayloadComponent>(); 1023 return this.payload; 1024 } 1025 1026 /** 1027 * @return Returns a reference to <code>this</code> for easy method chaining 1028 */ 1029 public CommunicationRequest setPayload(List<CommunicationRequestPayloadComponent> thePayload) { 1030 this.payload = thePayload; 1031 return this; 1032 } 1033 1034 public boolean hasPayload() { 1035 if (this.payload == null) 1036 return false; 1037 for (CommunicationRequestPayloadComponent item : this.payload) 1038 if (!item.isEmpty()) 1039 return true; 1040 return false; 1041 } 1042 1043 public CommunicationRequestPayloadComponent addPayload() { //3 1044 CommunicationRequestPayloadComponent t = new CommunicationRequestPayloadComponent(); 1045 if (this.payload == null) 1046 this.payload = new ArrayList<CommunicationRequestPayloadComponent>(); 1047 this.payload.add(t); 1048 return t; 1049 } 1050 1051 public CommunicationRequest addPayload(CommunicationRequestPayloadComponent t) { //3 1052 if (t == null) 1053 return this; 1054 if (this.payload == null) 1055 this.payload = new ArrayList<CommunicationRequestPayloadComponent>(); 1056 this.payload.add(t); 1057 return this; 1058 } 1059 1060 /** 1061 * @return The first repetition of repeating field {@link #payload}, creating it if it does not already exist {3} 1062 */ 1063 public CommunicationRequestPayloadComponent getPayloadFirstRep() { 1064 if (getPayload().isEmpty()) { 1065 addPayload(); 1066 } 1067 return getPayload().get(0); 1068 } 1069 1070 /** 1071 * @return {@link #occurrence} (The time when this communication is to occur.) 1072 */ 1073 public DataType getOccurrence() { 1074 return this.occurrence; 1075 } 1076 1077 /** 1078 * @return {@link #occurrence} (The time when this communication is to occur.) 1079 */ 1080 public DateTimeType getOccurrenceDateTimeType() throws FHIRException { 1081 if (this.occurrence == null) 1082 this.occurrence = new DateTimeType(); 1083 if (!(this.occurrence instanceof DateTimeType)) 1084 throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.occurrence.getClass().getName()+" was encountered"); 1085 return (DateTimeType) this.occurrence; 1086 } 1087 1088 public boolean hasOccurrenceDateTimeType() { 1089 return this != null && this.occurrence instanceof DateTimeType; 1090 } 1091 1092 /** 1093 * @return {@link #occurrence} (The time when this communication is to occur.) 1094 */ 1095 public Period getOccurrencePeriod() throws FHIRException { 1096 if (this.occurrence == null) 1097 this.occurrence = new Period(); 1098 if (!(this.occurrence instanceof Period)) 1099 throw new FHIRException("Type mismatch: the type Period was expected, but "+this.occurrence.getClass().getName()+" was encountered"); 1100 return (Period) this.occurrence; 1101 } 1102 1103 public boolean hasOccurrencePeriod() { 1104 return this != null && this.occurrence instanceof Period; 1105 } 1106 1107 public boolean hasOccurrence() { 1108 return this.occurrence != null && !this.occurrence.isEmpty(); 1109 } 1110 1111 /** 1112 * @param value {@link #occurrence} (The time when this communication is to occur.) 1113 */ 1114 public CommunicationRequest setOccurrence(DataType value) { 1115 if (value != null && !(value instanceof DateTimeType || value instanceof Period)) 1116 throw new Error("Not the right type for CommunicationRequest.occurrence[x]: "+value.fhirType()); 1117 this.occurrence = value; 1118 return this; 1119 } 1120 1121 /** 1122 * @return {@link #authoredOn} (For draft requests, indicates the date of initial creation. For requests with other statuses, indicates the date of activation.). This is the underlying object with id, value and extensions. The accessor "getAuthoredOn" gives direct access to the value 1123 */ 1124 public DateTimeType getAuthoredOnElement() { 1125 if (this.authoredOn == null) 1126 if (Configuration.errorOnAutoCreate()) 1127 throw new Error("Attempt to auto-create CommunicationRequest.authoredOn"); 1128 else if (Configuration.doAutoCreate()) 1129 this.authoredOn = new DateTimeType(); // bb 1130 return this.authoredOn; 1131 } 1132 1133 public boolean hasAuthoredOnElement() { 1134 return this.authoredOn != null && !this.authoredOn.isEmpty(); 1135 } 1136 1137 public boolean hasAuthoredOn() { 1138 return this.authoredOn != null && !this.authoredOn.isEmpty(); 1139 } 1140 1141 /** 1142 * @param value {@link #authoredOn} (For draft requests, indicates the date of initial creation. For requests with other statuses, indicates the date of activation.). This is the underlying object with id, value and extensions. The accessor "getAuthoredOn" gives direct access to the value 1143 */ 1144 public CommunicationRequest setAuthoredOnElement(DateTimeType value) { 1145 this.authoredOn = value; 1146 return this; 1147 } 1148 1149 /** 1150 * @return For draft requests, indicates the date of initial creation. For requests with other statuses, indicates the date of activation. 1151 */ 1152 public Date getAuthoredOn() { 1153 return this.authoredOn == null ? null : this.authoredOn.getValue(); 1154 } 1155 1156 /** 1157 * @param value For draft requests, indicates the date of initial creation. For requests with other statuses, indicates the date of activation. 1158 */ 1159 public CommunicationRequest setAuthoredOn(Date value) { 1160 if (value == null) 1161 this.authoredOn = null; 1162 else { 1163 if (this.authoredOn == null) 1164 this.authoredOn = new DateTimeType(); 1165 this.authoredOn.setValue(value); 1166 } 1167 return this; 1168 } 1169 1170 /** 1171 * @return {@link #requester} (The device, individual, or organization who asks for the information to be shared.) 1172 */ 1173 public Reference getRequester() { 1174 if (this.requester == null) 1175 if (Configuration.errorOnAutoCreate()) 1176 throw new Error("Attempt to auto-create CommunicationRequest.requester"); 1177 else if (Configuration.doAutoCreate()) 1178 this.requester = new Reference(); // cc 1179 return this.requester; 1180 } 1181 1182 public boolean hasRequester() { 1183 return this.requester != null && !this.requester.isEmpty(); 1184 } 1185 1186 /** 1187 * @param value {@link #requester} (The device, individual, or organization who asks for the information to be shared.) 1188 */ 1189 public CommunicationRequest setRequester(Reference value) { 1190 this.requester = value; 1191 return this; 1192 } 1193 1194 /** 1195 * @return {@link #recipient} (The entity (e.g. person, organization, clinical information system, device, group, or care team) which is the intended target of the communication.) 1196 */ 1197 public List<Reference> getRecipient() { 1198 if (this.recipient == null) 1199 this.recipient = new ArrayList<Reference>(); 1200 return this.recipient; 1201 } 1202 1203 /** 1204 * @return Returns a reference to <code>this</code> for easy method chaining 1205 */ 1206 public CommunicationRequest setRecipient(List<Reference> theRecipient) { 1207 this.recipient = theRecipient; 1208 return this; 1209 } 1210 1211 public boolean hasRecipient() { 1212 if (this.recipient == null) 1213 return false; 1214 for (Reference item : this.recipient) 1215 if (!item.isEmpty()) 1216 return true; 1217 return false; 1218 } 1219 1220 public Reference addRecipient() { //3 1221 Reference t = new Reference(); 1222 if (this.recipient == null) 1223 this.recipient = new ArrayList<Reference>(); 1224 this.recipient.add(t); 1225 return t; 1226 } 1227 1228 public CommunicationRequest addRecipient(Reference t) { //3 1229 if (t == null) 1230 return this; 1231 if (this.recipient == null) 1232 this.recipient = new ArrayList<Reference>(); 1233 this.recipient.add(t); 1234 return this; 1235 } 1236 1237 /** 1238 * @return The first repetition of repeating field {@link #recipient}, creating it if it does not already exist {3} 1239 */ 1240 public Reference getRecipientFirstRep() { 1241 if (getRecipient().isEmpty()) { 1242 addRecipient(); 1243 } 1244 return getRecipient().get(0); 1245 } 1246 1247 /** 1248 * @return {@link #informationProvider} (The entity (e.g. person, organization, clinical information system, or device) which is to be the source of the communication.) 1249 */ 1250 public List<Reference> getInformationProvider() { 1251 if (this.informationProvider == null) 1252 this.informationProvider = new ArrayList<Reference>(); 1253 return this.informationProvider; 1254 } 1255 1256 /** 1257 * @return Returns a reference to <code>this</code> for easy method chaining 1258 */ 1259 public CommunicationRequest setInformationProvider(List<Reference> theInformationProvider) { 1260 this.informationProvider = theInformationProvider; 1261 return this; 1262 } 1263 1264 public boolean hasInformationProvider() { 1265 if (this.informationProvider == null) 1266 return false; 1267 for (Reference item : this.informationProvider) 1268 if (!item.isEmpty()) 1269 return true; 1270 return false; 1271 } 1272 1273 public Reference addInformationProvider() { //3 1274 Reference t = new Reference(); 1275 if (this.informationProvider == null) 1276 this.informationProvider = new ArrayList<Reference>(); 1277 this.informationProvider.add(t); 1278 return t; 1279 } 1280 1281 public CommunicationRequest addInformationProvider(Reference t) { //3 1282 if (t == null) 1283 return this; 1284 if (this.informationProvider == null) 1285 this.informationProvider = new ArrayList<Reference>(); 1286 this.informationProvider.add(t); 1287 return this; 1288 } 1289 1290 /** 1291 * @return The first repetition of repeating field {@link #informationProvider}, creating it if it does not already exist {3} 1292 */ 1293 public Reference getInformationProviderFirstRep() { 1294 if (getInformationProvider().isEmpty()) { 1295 addInformationProvider(); 1296 } 1297 return getInformationProvider().get(0); 1298 } 1299 1300 /** 1301 * @return {@link #reason} (Describes why the request is being made in coded or textual form.) 1302 */ 1303 public List<CodeableReference> getReason() { 1304 if (this.reason == null) 1305 this.reason = new ArrayList<CodeableReference>(); 1306 return this.reason; 1307 } 1308 1309 /** 1310 * @return Returns a reference to <code>this</code> for easy method chaining 1311 */ 1312 public CommunicationRequest setReason(List<CodeableReference> theReason) { 1313 this.reason = theReason; 1314 return this; 1315 } 1316 1317 public boolean hasReason() { 1318 if (this.reason == null) 1319 return false; 1320 for (CodeableReference item : this.reason) 1321 if (!item.isEmpty()) 1322 return true; 1323 return false; 1324 } 1325 1326 public CodeableReference addReason() { //3 1327 CodeableReference t = new CodeableReference(); 1328 if (this.reason == null) 1329 this.reason = new ArrayList<CodeableReference>(); 1330 this.reason.add(t); 1331 return t; 1332 } 1333 1334 public CommunicationRequest addReason(CodeableReference t) { //3 1335 if (t == null) 1336 return this; 1337 if (this.reason == null) 1338 this.reason = new ArrayList<CodeableReference>(); 1339 this.reason.add(t); 1340 return this; 1341 } 1342 1343 /** 1344 * @return The first repetition of repeating field {@link #reason}, creating it if it does not already exist {3} 1345 */ 1346 public CodeableReference getReasonFirstRep() { 1347 if (getReason().isEmpty()) { 1348 addReason(); 1349 } 1350 return getReason().get(0); 1351 } 1352 1353 /** 1354 * @return {@link #note} (Comments made about the request by the requester, sender, recipient, subject or other participants.) 1355 */ 1356 public List<Annotation> getNote() { 1357 if (this.note == null) 1358 this.note = new ArrayList<Annotation>(); 1359 return this.note; 1360 } 1361 1362 /** 1363 * @return Returns a reference to <code>this</code> for easy method chaining 1364 */ 1365 public CommunicationRequest setNote(List<Annotation> theNote) { 1366 this.note = theNote; 1367 return this; 1368 } 1369 1370 public boolean hasNote() { 1371 if (this.note == null) 1372 return false; 1373 for (Annotation item : this.note) 1374 if (!item.isEmpty()) 1375 return true; 1376 return false; 1377 } 1378 1379 public Annotation addNote() { //3 1380 Annotation t = new Annotation(); 1381 if (this.note == null) 1382 this.note = new ArrayList<Annotation>(); 1383 this.note.add(t); 1384 return t; 1385 } 1386 1387 public CommunicationRequest addNote(Annotation t) { //3 1388 if (t == null) 1389 return this; 1390 if (this.note == null) 1391 this.note = new ArrayList<Annotation>(); 1392 this.note.add(t); 1393 return this; 1394 } 1395 1396 /** 1397 * @return The first repetition of repeating field {@link #note}, creating it if it does not already exist {3} 1398 */ 1399 public Annotation getNoteFirstRep() { 1400 if (getNote().isEmpty()) { 1401 addNote(); 1402 } 1403 return getNote().get(0); 1404 } 1405 1406 protected void listChildren(List<Property> children) { 1407 super.listChildren(children); 1408 children.add(new Property("identifier", "Identifier", "Business identifiers assigned to this communication request by the performer or other systems which remain constant as the resource is updated and propagates from server to server.", 0, java.lang.Integer.MAX_VALUE, identifier)); 1409 children.add(new Property("basedOn", "Reference(Any)", "A plan or proposal that is fulfilled in whole or in part by this request.", 0, java.lang.Integer.MAX_VALUE, basedOn)); 1410 children.add(new Property("replaces", "Reference(CommunicationRequest)", "Completed or terminated request(s) whose function is taken by this new request.", 0, java.lang.Integer.MAX_VALUE, replaces)); 1411 children.add(new Property("groupIdentifier", "Identifier", "A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition, prescription or similar form.", 0, 1, groupIdentifier)); 1412 children.add(new Property("status", "code", "The status of the proposal or order.", 0, 1, status)); 1413 children.add(new Property("statusReason", "CodeableConcept", "Captures the reason for the current state of the CommunicationRequest.", 0, 1, statusReason)); 1414 children.add(new Property("category", "CodeableConcept", "The type of message to be sent such as alert, notification, reminder, instruction, etc.", 0, java.lang.Integer.MAX_VALUE, category)); 1415 children.add(new Property("priority", "code", "Characterizes how quickly the proposed act must be initiated. Includes concepts such as stat, urgent, routine.", 0, 1, priority)); 1416 children.add(new Property("doNotPerform", "boolean", "If true indicates that the CommunicationRequest is asking for the specified action to *not* occur.", 0, 1, doNotPerform)); 1417 children.add(new Property("medium", "CodeableConcept", "A channel that was used for this communication (e.g. email, fax).", 0, java.lang.Integer.MAX_VALUE, medium)); 1418 children.add(new Property("subject", "Reference(Patient|Group)", "The patient or group that is the focus of this communication request.", 0, 1, subject)); 1419 children.add(new Property("about", "Reference(Any)", "Other resources that pertain to this communication request and to which this communication request should be associated.", 0, java.lang.Integer.MAX_VALUE, about)); 1420 children.add(new Property("encounter", "Reference(Encounter)", "The Encounter during which this CommunicationRequest was created or to which the creation of this record is tightly associated.", 0, 1, encounter)); 1421 children.add(new Property("payload", "", "Text, attachment(s), or resource(s) to be communicated to the recipient.", 0, java.lang.Integer.MAX_VALUE, payload)); 1422 children.add(new Property("occurrence[x]", "dateTime|Period", "The time when this communication is to occur.", 0, 1, occurrence)); 1423 children.add(new Property("authoredOn", "dateTime", "For draft requests, indicates the date of initial creation. For requests with other statuses, indicates the date of activation.", 0, 1, authoredOn)); 1424 children.add(new Property("requester", "Reference(Practitioner|PractitionerRole|Organization|Patient|RelatedPerson|Device)", "The device, individual, or organization who asks for the information to be shared.", 0, 1, requester)); 1425 children.add(new Property("recipient", "Reference(Device|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson|Group|CareTeam|HealthcareService|Endpoint)", "The entity (e.g. person, organization, clinical information system, device, group, or care team) which is the intended target of the communication.", 0, java.lang.Integer.MAX_VALUE, recipient)); 1426 children.add(new Property("informationProvider", "Reference(Device|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson|HealthcareService|Endpoint)", "The entity (e.g. person, organization, clinical information system, or device) which is to be the source of the communication.", 0, java.lang.Integer.MAX_VALUE, informationProvider)); 1427 children.add(new Property("reason", "CodeableReference(Any)", "Describes why the request is being made in coded or textual form.", 0, java.lang.Integer.MAX_VALUE, reason)); 1428 children.add(new Property("note", "Annotation", "Comments made about the request by the requester, sender, recipient, subject or other participants.", 0, java.lang.Integer.MAX_VALUE, note)); 1429 } 1430 1431 @Override 1432 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1433 switch (_hash) { 1434 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Business identifiers assigned to this communication request by the performer or other systems which remain constant as the resource is updated and propagates from server to server.", 0, java.lang.Integer.MAX_VALUE, identifier); 1435 case -332612366: /*basedOn*/ return new Property("basedOn", "Reference(Any)", "A plan or proposal that is fulfilled in whole or in part by this request.", 0, java.lang.Integer.MAX_VALUE, basedOn); 1436 case -430332865: /*replaces*/ return new Property("replaces", "Reference(CommunicationRequest)", "Completed or terminated request(s) whose function is taken by this new request.", 0, java.lang.Integer.MAX_VALUE, replaces); 1437 case -445338488: /*groupIdentifier*/ return new Property("groupIdentifier", "Identifier", "A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition, prescription or similar form.", 0, 1, groupIdentifier); 1438 case -892481550: /*status*/ return new Property("status", "code", "The status of the proposal or order.", 0, 1, status); 1439 case 2051346646: /*statusReason*/ return new Property("statusReason", "CodeableConcept", "Captures the reason for the current state of the CommunicationRequest.", 0, 1, statusReason); 1440 case 50511102: /*category*/ return new Property("category", "CodeableConcept", "The type of message to be sent such as alert, notification, reminder, instruction, etc.", 0, java.lang.Integer.MAX_VALUE, category); 1441 case -1165461084: /*priority*/ return new Property("priority", "code", "Characterizes how quickly the proposed act must be initiated. Includes concepts such as stat, urgent, routine.", 0, 1, priority); 1442 case -1788508167: /*doNotPerform*/ return new Property("doNotPerform", "boolean", "If true indicates that the CommunicationRequest is asking for the specified action to *not* occur.", 0, 1, doNotPerform); 1443 case -1078030475: /*medium*/ return new Property("medium", "CodeableConcept", "A channel that was used for this communication (e.g. email, fax).", 0, java.lang.Integer.MAX_VALUE, medium); 1444 case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Group)", "The patient or group that is the focus of this communication request.", 0, 1, subject); 1445 case 92611469: /*about*/ return new Property("about", "Reference(Any)", "Other resources that pertain to this communication request and to which this communication request should be associated.", 0, java.lang.Integer.MAX_VALUE, about); 1446 case 1524132147: /*encounter*/ return new Property("encounter", "Reference(Encounter)", "The Encounter during which this CommunicationRequest was created or to which the creation of this record is tightly associated.", 0, 1, encounter); 1447 case -786701938: /*payload*/ return new Property("payload", "", "Text, attachment(s), or resource(s) to be communicated to the recipient.", 0, java.lang.Integer.MAX_VALUE, payload); 1448 case -2022646513: /*occurrence[x]*/ return new Property("occurrence[x]", "dateTime|Period", "The time when this communication is to occur.", 0, 1, occurrence); 1449 case 1687874001: /*occurrence*/ return new Property("occurrence[x]", "dateTime|Period", "The time when this communication is to occur.", 0, 1, occurrence); 1450 case -298443636: /*occurrenceDateTime*/ return new Property("occurrence[x]", "dateTime", "The time when this communication is to occur.", 0, 1, occurrence); 1451 case 1397156594: /*occurrencePeriod*/ return new Property("occurrence[x]", "Period", "The time when this communication is to occur.", 0, 1, occurrence); 1452 case -1500852503: /*authoredOn*/ return new Property("authoredOn", "dateTime", "For draft requests, indicates the date of initial creation. For requests with other statuses, indicates the date of activation.", 0, 1, authoredOn); 1453 case 693933948: /*requester*/ return new Property("requester", "Reference(Practitioner|PractitionerRole|Organization|Patient|RelatedPerson|Device)", "The device, individual, or organization who asks for the information to be shared.", 0, 1, requester); 1454 case 820081177: /*recipient*/ return new Property("recipient", "Reference(Device|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson|Group|CareTeam|HealthcareService|Endpoint)", "The entity (e.g. person, organization, clinical information system, device, group, or care team) which is the intended target of the communication.", 0, java.lang.Integer.MAX_VALUE, recipient); 1455 case 1255338813: /*informationProvider*/ return new Property("informationProvider", "Reference(Device|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson|HealthcareService|Endpoint)", "The entity (e.g. person, organization, clinical information system, or device) which is to be the source of the communication.", 0, java.lang.Integer.MAX_VALUE, informationProvider); 1456 case -934964668: /*reason*/ return new Property("reason", "CodeableReference(Any)", "Describes why the request is being made in coded or textual form.", 0, java.lang.Integer.MAX_VALUE, reason); 1457 case 3387378: /*note*/ return new Property("note", "Annotation", "Comments made about the request by the requester, sender, recipient, subject or other participants.", 0, java.lang.Integer.MAX_VALUE, note); 1458 default: return super.getNamedProperty(_hash, _name, _checkValid); 1459 } 1460 1461 } 1462 1463 @Override 1464 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1465 switch (hash) { 1466 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 1467 case -332612366: /*basedOn*/ return this.basedOn == null ? new Base[0] : this.basedOn.toArray(new Base[this.basedOn.size()]); // Reference 1468 case -430332865: /*replaces*/ return this.replaces == null ? new Base[0] : this.replaces.toArray(new Base[this.replaces.size()]); // Reference 1469 case -445338488: /*groupIdentifier*/ return this.groupIdentifier == null ? new Base[0] : new Base[] {this.groupIdentifier}; // Identifier 1470 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<RequestStatus> 1471 case 2051346646: /*statusReason*/ return this.statusReason == null ? new Base[0] : new Base[] {this.statusReason}; // CodeableConcept 1472 case 50511102: /*category*/ return this.category == null ? new Base[0] : this.category.toArray(new Base[this.category.size()]); // CodeableConcept 1473 case -1165461084: /*priority*/ return this.priority == null ? new Base[0] : new Base[] {this.priority}; // Enumeration<RequestPriority> 1474 case -1788508167: /*doNotPerform*/ return this.doNotPerform == null ? new Base[0] : new Base[] {this.doNotPerform}; // BooleanType 1475 case -1078030475: /*medium*/ return this.medium == null ? new Base[0] : this.medium.toArray(new Base[this.medium.size()]); // CodeableConcept 1476 case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference 1477 case 92611469: /*about*/ return this.about == null ? new Base[0] : this.about.toArray(new Base[this.about.size()]); // Reference 1478 case 1524132147: /*encounter*/ return this.encounter == null ? new Base[0] : new Base[] {this.encounter}; // Reference 1479 case -786701938: /*payload*/ return this.payload == null ? new Base[0] : this.payload.toArray(new Base[this.payload.size()]); // CommunicationRequestPayloadComponent 1480 case 1687874001: /*occurrence*/ return this.occurrence == null ? new Base[0] : new Base[] {this.occurrence}; // DataType 1481 case -1500852503: /*authoredOn*/ return this.authoredOn == null ? new Base[0] : new Base[] {this.authoredOn}; // DateTimeType 1482 case 693933948: /*requester*/ return this.requester == null ? new Base[0] : new Base[] {this.requester}; // Reference 1483 case 820081177: /*recipient*/ return this.recipient == null ? new Base[0] : this.recipient.toArray(new Base[this.recipient.size()]); // Reference 1484 case 1255338813: /*informationProvider*/ return this.informationProvider == null ? new Base[0] : this.informationProvider.toArray(new Base[this.informationProvider.size()]); // Reference 1485 case -934964668: /*reason*/ return this.reason == null ? new Base[0] : this.reason.toArray(new Base[this.reason.size()]); // CodeableReference 1486 case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation 1487 default: return super.getProperty(hash, name, checkValid); 1488 } 1489 1490 } 1491 1492 @Override 1493 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1494 switch (hash) { 1495 case -1618432855: // identifier 1496 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier 1497 return value; 1498 case -332612366: // basedOn 1499 this.getBasedOn().add(TypeConvertor.castToReference(value)); // Reference 1500 return value; 1501 case -430332865: // replaces 1502 this.getReplaces().add(TypeConvertor.castToReference(value)); // Reference 1503 return value; 1504 case -445338488: // groupIdentifier 1505 this.groupIdentifier = TypeConvertor.castToIdentifier(value); // Identifier 1506 return value; 1507 case -892481550: // status 1508 value = new RequestStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 1509 this.status = (Enumeration) value; // Enumeration<RequestStatus> 1510 return value; 1511 case 2051346646: // statusReason 1512 this.statusReason = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1513 return value; 1514 case 50511102: // category 1515 this.getCategory().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 1516 return value; 1517 case -1165461084: // priority 1518 value = new RequestPriorityEnumFactory().fromType(TypeConvertor.castToCode(value)); 1519 this.priority = (Enumeration) value; // Enumeration<RequestPriority> 1520 return value; 1521 case -1788508167: // doNotPerform 1522 this.doNotPerform = TypeConvertor.castToBoolean(value); // BooleanType 1523 return value; 1524 case -1078030475: // medium 1525 this.getMedium().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 1526 return value; 1527 case -1867885268: // subject 1528 this.subject = TypeConvertor.castToReference(value); // Reference 1529 return value; 1530 case 92611469: // about 1531 this.getAbout().add(TypeConvertor.castToReference(value)); // Reference 1532 return value; 1533 case 1524132147: // encounter 1534 this.encounter = TypeConvertor.castToReference(value); // Reference 1535 return value; 1536 case -786701938: // payload 1537 this.getPayload().add((CommunicationRequestPayloadComponent) value); // CommunicationRequestPayloadComponent 1538 return value; 1539 case 1687874001: // occurrence 1540 this.occurrence = TypeConvertor.castToType(value); // DataType 1541 return value; 1542 case -1500852503: // authoredOn 1543 this.authoredOn = TypeConvertor.castToDateTime(value); // DateTimeType 1544 return value; 1545 case 693933948: // requester 1546 this.requester = TypeConvertor.castToReference(value); // Reference 1547 return value; 1548 case 820081177: // recipient 1549 this.getRecipient().add(TypeConvertor.castToReference(value)); // Reference 1550 return value; 1551 case 1255338813: // informationProvider 1552 this.getInformationProvider().add(TypeConvertor.castToReference(value)); // Reference 1553 return value; 1554 case -934964668: // reason 1555 this.getReason().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference 1556 return value; 1557 case 3387378: // note 1558 this.getNote().add(TypeConvertor.castToAnnotation(value)); // Annotation 1559 return value; 1560 default: return super.setProperty(hash, name, value); 1561 } 1562 1563 } 1564 1565 @Override 1566 public Base setProperty(String name, Base value) throws FHIRException { 1567 if (name.equals("identifier")) { 1568 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); 1569 } else if (name.equals("basedOn")) { 1570 this.getBasedOn().add(TypeConvertor.castToReference(value)); 1571 } else if (name.equals("replaces")) { 1572 this.getReplaces().add(TypeConvertor.castToReference(value)); 1573 } else if (name.equals("groupIdentifier")) { 1574 this.groupIdentifier = TypeConvertor.castToIdentifier(value); // Identifier 1575 } else if (name.equals("status")) { 1576 value = new RequestStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 1577 this.status = (Enumeration) value; // Enumeration<RequestStatus> 1578 } else if (name.equals("statusReason")) { 1579 this.statusReason = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1580 } else if (name.equals("category")) { 1581 this.getCategory().add(TypeConvertor.castToCodeableConcept(value)); 1582 } else if (name.equals("priority")) { 1583 value = new RequestPriorityEnumFactory().fromType(TypeConvertor.castToCode(value)); 1584 this.priority = (Enumeration) value; // Enumeration<RequestPriority> 1585 } else if (name.equals("doNotPerform")) { 1586 this.doNotPerform = TypeConvertor.castToBoolean(value); // BooleanType 1587 } else if (name.equals("medium")) { 1588 this.getMedium().add(TypeConvertor.castToCodeableConcept(value)); 1589 } else if (name.equals("subject")) { 1590 this.subject = TypeConvertor.castToReference(value); // Reference 1591 } else if (name.equals("about")) { 1592 this.getAbout().add(TypeConvertor.castToReference(value)); 1593 } else if (name.equals("encounter")) { 1594 this.encounter = TypeConvertor.castToReference(value); // Reference 1595 } else if (name.equals("payload")) { 1596 this.getPayload().add((CommunicationRequestPayloadComponent) value); 1597 } else if (name.equals("occurrence[x]")) { 1598 this.occurrence = TypeConvertor.castToType(value); // DataType 1599 } else if (name.equals("authoredOn")) { 1600 this.authoredOn = TypeConvertor.castToDateTime(value); // DateTimeType 1601 } else if (name.equals("requester")) { 1602 this.requester = TypeConvertor.castToReference(value); // Reference 1603 } else if (name.equals("recipient")) { 1604 this.getRecipient().add(TypeConvertor.castToReference(value)); 1605 } else if (name.equals("informationProvider")) { 1606 this.getInformationProvider().add(TypeConvertor.castToReference(value)); 1607 } else if (name.equals("reason")) { 1608 this.getReason().add(TypeConvertor.castToCodeableReference(value)); 1609 } else if (name.equals("note")) { 1610 this.getNote().add(TypeConvertor.castToAnnotation(value)); 1611 } else 1612 return super.setProperty(name, value); 1613 return value; 1614 } 1615 1616 @Override 1617 public Base makeProperty(int hash, String name) throws FHIRException { 1618 switch (hash) { 1619 case -1618432855: return addIdentifier(); 1620 case -332612366: return addBasedOn(); 1621 case -430332865: return addReplaces(); 1622 case -445338488: return getGroupIdentifier(); 1623 case -892481550: return getStatusElement(); 1624 case 2051346646: return getStatusReason(); 1625 case 50511102: return addCategory(); 1626 case -1165461084: return getPriorityElement(); 1627 case -1788508167: return getDoNotPerformElement(); 1628 case -1078030475: return addMedium(); 1629 case -1867885268: return getSubject(); 1630 case 92611469: return addAbout(); 1631 case 1524132147: return getEncounter(); 1632 case -786701938: return addPayload(); 1633 case -2022646513: return getOccurrence(); 1634 case 1687874001: return getOccurrence(); 1635 case -1500852503: return getAuthoredOnElement(); 1636 case 693933948: return getRequester(); 1637 case 820081177: return addRecipient(); 1638 case 1255338813: return addInformationProvider(); 1639 case -934964668: return addReason(); 1640 case 3387378: return addNote(); 1641 default: return super.makeProperty(hash, name); 1642 } 1643 1644 } 1645 1646 @Override 1647 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1648 switch (hash) { 1649 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 1650 case -332612366: /*basedOn*/ return new String[] {"Reference"}; 1651 case -430332865: /*replaces*/ return new String[] {"Reference"}; 1652 case -445338488: /*groupIdentifier*/ return new String[] {"Identifier"}; 1653 case -892481550: /*status*/ return new String[] {"code"}; 1654 case 2051346646: /*statusReason*/ return new String[] {"CodeableConcept"}; 1655 case 50511102: /*category*/ return new String[] {"CodeableConcept"}; 1656 case -1165461084: /*priority*/ return new String[] {"code"}; 1657 case -1788508167: /*doNotPerform*/ return new String[] {"boolean"}; 1658 case -1078030475: /*medium*/ return new String[] {"CodeableConcept"}; 1659 case -1867885268: /*subject*/ return new String[] {"Reference"}; 1660 case 92611469: /*about*/ return new String[] {"Reference"}; 1661 case 1524132147: /*encounter*/ return new String[] {"Reference"}; 1662 case -786701938: /*payload*/ return new String[] {}; 1663 case 1687874001: /*occurrence*/ return new String[] {"dateTime", "Period"}; 1664 case -1500852503: /*authoredOn*/ return new String[] {"dateTime"}; 1665 case 693933948: /*requester*/ return new String[] {"Reference"}; 1666 case 820081177: /*recipient*/ return new String[] {"Reference"}; 1667 case 1255338813: /*informationProvider*/ return new String[] {"Reference"}; 1668 case -934964668: /*reason*/ return new String[] {"CodeableReference"}; 1669 case 3387378: /*note*/ return new String[] {"Annotation"}; 1670 default: return super.getTypesForProperty(hash, name); 1671 } 1672 1673 } 1674 1675 @Override 1676 public Base addChild(String name) throws FHIRException { 1677 if (name.equals("identifier")) { 1678 return addIdentifier(); 1679 } 1680 else if (name.equals("basedOn")) { 1681 return addBasedOn(); 1682 } 1683 else if (name.equals("replaces")) { 1684 return addReplaces(); 1685 } 1686 else if (name.equals("groupIdentifier")) { 1687 this.groupIdentifier = new Identifier(); 1688 return this.groupIdentifier; 1689 } 1690 else if (name.equals("status")) { 1691 throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.status"); 1692 } 1693 else if (name.equals("statusReason")) { 1694 this.statusReason = new CodeableConcept(); 1695 return this.statusReason; 1696 } 1697 else if (name.equals("category")) { 1698 return addCategory(); 1699 } 1700 else if (name.equals("priority")) { 1701 throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.priority"); 1702 } 1703 else if (name.equals("doNotPerform")) { 1704 throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.doNotPerform"); 1705 } 1706 else if (name.equals("medium")) { 1707 return addMedium(); 1708 } 1709 else if (name.equals("subject")) { 1710 this.subject = new Reference(); 1711 return this.subject; 1712 } 1713 else if (name.equals("about")) { 1714 return addAbout(); 1715 } 1716 else if (name.equals("encounter")) { 1717 this.encounter = new Reference(); 1718 return this.encounter; 1719 } 1720 else if (name.equals("payload")) { 1721 return addPayload(); 1722 } 1723 else if (name.equals("occurrenceDateTime")) { 1724 this.occurrence = new DateTimeType(); 1725 return this.occurrence; 1726 } 1727 else if (name.equals("occurrencePeriod")) { 1728 this.occurrence = new Period(); 1729 return this.occurrence; 1730 } 1731 else if (name.equals("authoredOn")) { 1732 throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.authoredOn"); 1733 } 1734 else if (name.equals("requester")) { 1735 this.requester = new Reference(); 1736 return this.requester; 1737 } 1738 else if (name.equals("recipient")) { 1739 return addRecipient(); 1740 } 1741 else if (name.equals("informationProvider")) { 1742 return addInformationProvider(); 1743 } 1744 else if (name.equals("reason")) { 1745 return addReason(); 1746 } 1747 else if (name.equals("note")) { 1748 return addNote(); 1749 } 1750 else 1751 return super.addChild(name); 1752 } 1753 1754 public String fhirType() { 1755 return "CommunicationRequest"; 1756 1757 } 1758 1759 public CommunicationRequest copy() { 1760 CommunicationRequest dst = new CommunicationRequest(); 1761 copyValues(dst); 1762 return dst; 1763 } 1764 1765 public void copyValues(CommunicationRequest dst) { 1766 super.copyValues(dst); 1767 if (identifier != null) { 1768 dst.identifier = new ArrayList<Identifier>(); 1769 for (Identifier i : identifier) 1770 dst.identifier.add(i.copy()); 1771 }; 1772 if (basedOn != null) { 1773 dst.basedOn = new ArrayList<Reference>(); 1774 for (Reference i : basedOn) 1775 dst.basedOn.add(i.copy()); 1776 }; 1777 if (replaces != null) { 1778 dst.replaces = new ArrayList<Reference>(); 1779 for (Reference i : replaces) 1780 dst.replaces.add(i.copy()); 1781 }; 1782 dst.groupIdentifier = groupIdentifier == null ? null : groupIdentifier.copy(); 1783 dst.status = status == null ? null : status.copy(); 1784 dst.statusReason = statusReason == null ? null : statusReason.copy(); 1785 if (category != null) { 1786 dst.category = new ArrayList<CodeableConcept>(); 1787 for (CodeableConcept i : category) 1788 dst.category.add(i.copy()); 1789 }; 1790 dst.priority = priority == null ? null : priority.copy(); 1791 dst.doNotPerform = doNotPerform == null ? null : doNotPerform.copy(); 1792 if (medium != null) { 1793 dst.medium = new ArrayList<CodeableConcept>(); 1794 for (CodeableConcept i : medium) 1795 dst.medium.add(i.copy()); 1796 }; 1797 dst.subject = subject == null ? null : subject.copy(); 1798 if (about != null) { 1799 dst.about = new ArrayList<Reference>(); 1800 for (Reference i : about) 1801 dst.about.add(i.copy()); 1802 }; 1803 dst.encounter = encounter == null ? null : encounter.copy(); 1804 if (payload != null) { 1805 dst.payload = new ArrayList<CommunicationRequestPayloadComponent>(); 1806 for (CommunicationRequestPayloadComponent i : payload) 1807 dst.payload.add(i.copy()); 1808 }; 1809 dst.occurrence = occurrence == null ? null : occurrence.copy(); 1810 dst.authoredOn = authoredOn == null ? null : authoredOn.copy(); 1811 dst.requester = requester == null ? null : requester.copy(); 1812 if (recipient != null) { 1813 dst.recipient = new ArrayList<Reference>(); 1814 for (Reference i : recipient) 1815 dst.recipient.add(i.copy()); 1816 }; 1817 if (informationProvider != null) { 1818 dst.informationProvider = new ArrayList<Reference>(); 1819 for (Reference i : informationProvider) 1820 dst.informationProvider.add(i.copy()); 1821 }; 1822 if (reason != null) { 1823 dst.reason = new ArrayList<CodeableReference>(); 1824 for (CodeableReference i : reason) 1825 dst.reason.add(i.copy()); 1826 }; 1827 if (note != null) { 1828 dst.note = new ArrayList<Annotation>(); 1829 for (Annotation i : note) 1830 dst.note.add(i.copy()); 1831 }; 1832 } 1833 1834 protected CommunicationRequest typedCopy() { 1835 return copy(); 1836 } 1837 1838 @Override 1839 public boolean equalsDeep(Base other_) { 1840 if (!super.equalsDeep(other_)) 1841 return false; 1842 if (!(other_ instanceof CommunicationRequest)) 1843 return false; 1844 CommunicationRequest o = (CommunicationRequest) other_; 1845 return compareDeep(identifier, o.identifier, true) && compareDeep(basedOn, o.basedOn, true) && compareDeep(replaces, o.replaces, true) 1846 && compareDeep(groupIdentifier, o.groupIdentifier, true) && compareDeep(status, o.status, true) 1847 && compareDeep(statusReason, o.statusReason, true) && compareDeep(category, o.category, true) && compareDeep(priority, o.priority, true) 1848 && compareDeep(doNotPerform, o.doNotPerform, true) && compareDeep(medium, o.medium, true) && compareDeep(subject, o.subject, true) 1849 && compareDeep(about, o.about, true) && compareDeep(encounter, o.encounter, true) && compareDeep(payload, o.payload, true) 1850 && compareDeep(occurrence, o.occurrence, true) && compareDeep(authoredOn, o.authoredOn, true) && compareDeep(requester, o.requester, true) 1851 && compareDeep(recipient, o.recipient, true) && compareDeep(informationProvider, o.informationProvider, true) 1852 && compareDeep(reason, o.reason, true) && compareDeep(note, o.note, true); 1853 } 1854 1855 @Override 1856 public boolean equalsShallow(Base other_) { 1857 if (!super.equalsShallow(other_)) 1858 return false; 1859 if (!(other_ instanceof CommunicationRequest)) 1860 return false; 1861 CommunicationRequest o = (CommunicationRequest) other_; 1862 return compareValues(status, o.status, true) && compareValues(priority, o.priority, true) && compareValues(doNotPerform, o.doNotPerform, true) 1863 && compareValues(authoredOn, o.authoredOn, true); 1864 } 1865 1866 public boolean isEmpty() { 1867 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, basedOn, replaces 1868 , groupIdentifier, status, statusReason, category, priority, doNotPerform, medium 1869 , subject, about, encounter, payload, occurrence, authoredOn, requester, recipient 1870 , informationProvider, reason, note); 1871 } 1872 1873 @Override 1874 public ResourceType getResourceType() { 1875 return ResourceType.CommunicationRequest; 1876 } 1877 1878 /** 1879 * Search parameter: <b>authored</b> 1880 * <p> 1881 * Description: <b>When request transitioned to being actionable</b><br> 1882 * Type: <b>date</b><br> 1883 * Path: <b>CommunicationRequest.authoredOn</b><br> 1884 * </p> 1885 */ 1886 @SearchParamDefinition(name="authored", path="CommunicationRequest.authoredOn", description="When request transitioned to being actionable", type="date" ) 1887 public static final String SP_AUTHORED = "authored"; 1888 /** 1889 * <b>Fluent Client</b> search parameter constant for <b>authored</b> 1890 * <p> 1891 * Description: <b>When request transitioned to being actionable</b><br> 1892 * Type: <b>date</b><br> 1893 * Path: <b>CommunicationRequest.authoredOn</b><br> 1894 * </p> 1895 */ 1896 public static final ca.uhn.fhir.rest.gclient.DateClientParam AUTHORED = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_AUTHORED); 1897 1898 /** 1899 * Search parameter: <b>based-on</b> 1900 * <p> 1901 * Description: <b>Fulfills plan or proposal</b><br> 1902 * Type: <b>reference</b><br> 1903 * Path: <b>CommunicationRequest.basedOn</b><br> 1904 * </p> 1905 */ 1906 @SearchParamDefinition(name="based-on", path="CommunicationRequest.basedOn", description="Fulfills plan or proposal", 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 } ) 1907 public static final String SP_BASED_ON = "based-on"; 1908 /** 1909 * <b>Fluent Client</b> search parameter constant for <b>based-on</b> 1910 * <p> 1911 * Description: <b>Fulfills plan or proposal</b><br> 1912 * Type: <b>reference</b><br> 1913 * Path: <b>CommunicationRequest.basedOn</b><br> 1914 * </p> 1915 */ 1916 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam BASED_ON = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_BASED_ON); 1917 1918/** 1919 * Constant for fluent queries to be used to add include statements. Specifies 1920 * the path value of "<b>CommunicationRequest:based-on</b>". 1921 */ 1922 public static final ca.uhn.fhir.model.api.Include INCLUDE_BASED_ON = new ca.uhn.fhir.model.api.Include("CommunicationRequest:based-on").toLocked(); 1923 1924 /** 1925 * Search parameter: <b>category</b> 1926 * <p> 1927 * Description: <b>Message category</b><br> 1928 * Type: <b>token</b><br> 1929 * Path: <b>CommunicationRequest.category</b><br> 1930 * </p> 1931 */ 1932 @SearchParamDefinition(name="category", path="CommunicationRequest.category", description="Message category", type="token" ) 1933 public static final String SP_CATEGORY = "category"; 1934 /** 1935 * <b>Fluent Client</b> search parameter constant for <b>category</b> 1936 * <p> 1937 * Description: <b>Message category</b><br> 1938 * Type: <b>token</b><br> 1939 * Path: <b>CommunicationRequest.category</b><br> 1940 * </p> 1941 */ 1942 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CATEGORY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CATEGORY); 1943 1944 /** 1945 * Search parameter: <b>encounter</b> 1946 * <p> 1947 * Description: <b>The Encounter during which this CommunicationRequest was created</b><br> 1948 * Type: <b>reference</b><br> 1949 * Path: <b>CommunicationRequest.encounter</b><br> 1950 * </p> 1951 */ 1952 @SearchParamDefinition(name="encounter", path="CommunicationRequest.encounter", description="The Encounter during which this CommunicationRequest was created", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) 1953 public static final String SP_ENCOUNTER = "encounter"; 1954 /** 1955 * <b>Fluent Client</b> search parameter constant for <b>encounter</b> 1956 * <p> 1957 * Description: <b>The Encounter during which this CommunicationRequest was created</b><br> 1958 * Type: <b>reference</b><br> 1959 * Path: <b>CommunicationRequest.encounter</b><br> 1960 * </p> 1961 */ 1962 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); 1963 1964/** 1965 * Constant for fluent queries to be used to add include statements. Specifies 1966 * the path value of "<b>CommunicationRequest:encounter</b>". 1967 */ 1968 public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("CommunicationRequest:encounter").toLocked(); 1969 1970 /** 1971 * Search parameter: <b>group-identifier</b> 1972 * <p> 1973 * Description: <b>Composite request this is part of</b><br> 1974 * Type: <b>token</b><br> 1975 * Path: <b>CommunicationRequest.groupIdentifier</b><br> 1976 * </p> 1977 */ 1978 @SearchParamDefinition(name="group-identifier", path="CommunicationRequest.groupIdentifier", description="Composite request this is part of", type="token" ) 1979 public static final String SP_GROUP_IDENTIFIER = "group-identifier"; 1980 /** 1981 * <b>Fluent Client</b> search parameter constant for <b>group-identifier</b> 1982 * <p> 1983 * Description: <b>Composite request this is part of</b><br> 1984 * Type: <b>token</b><br> 1985 * Path: <b>CommunicationRequest.groupIdentifier</b><br> 1986 * </p> 1987 */ 1988 public static final ca.uhn.fhir.rest.gclient.TokenClientParam GROUP_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_GROUP_IDENTIFIER); 1989 1990 /** 1991 * Search parameter: <b>identifier</b> 1992 * <p> 1993 * Description: <b>Unique identifier</b><br> 1994 * Type: <b>token</b><br> 1995 * Path: <b>CommunicationRequest.identifier</b><br> 1996 * </p> 1997 */ 1998 @SearchParamDefinition(name="identifier", path="CommunicationRequest.identifier", description="Unique identifier", type="token" ) 1999 public static final String SP_IDENTIFIER = "identifier"; 2000 /** 2001 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 2002 * <p> 2003 * Description: <b>Unique identifier</b><br> 2004 * Type: <b>token</b><br> 2005 * Path: <b>CommunicationRequest.identifier</b><br> 2006 * </p> 2007 */ 2008 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 2009 2010 /** 2011 * Search parameter: <b>information-provider</b> 2012 * <p> 2013 * Description: <b>Who should share the information</b><br> 2014 * Type: <b>reference</b><br> 2015 * Path: <b>CommunicationRequest.informationProvider</b><br> 2016 * </p> 2017 */ 2018 @SearchParamDefinition(name="information-provider", path="CommunicationRequest.informationProvider", description="Who should share the information", 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, Endpoint.class, HealthcareService.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) 2019 public static final String SP_INFORMATION_PROVIDER = "information-provider"; 2020 /** 2021 * <b>Fluent Client</b> search parameter constant for <b>information-provider</b> 2022 * <p> 2023 * Description: <b>Who should share the information</b><br> 2024 * Type: <b>reference</b><br> 2025 * Path: <b>CommunicationRequest.informationProvider</b><br> 2026 * </p> 2027 */ 2028 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam INFORMATION_PROVIDER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_INFORMATION_PROVIDER); 2029 2030/** 2031 * Constant for fluent queries to be used to add include statements. Specifies 2032 * the path value of "<b>CommunicationRequest:information-provider</b>". 2033 */ 2034 public static final ca.uhn.fhir.model.api.Include INCLUDE_INFORMATION_PROVIDER = new ca.uhn.fhir.model.api.Include("CommunicationRequest:information-provider").toLocked(); 2035 2036 /** 2037 * Search parameter: <b>medium</b> 2038 * <p> 2039 * Description: <b>A channel of communication</b><br> 2040 * Type: <b>token</b><br> 2041 * Path: <b>CommunicationRequest.medium</b><br> 2042 * </p> 2043 */ 2044 @SearchParamDefinition(name="medium", path="CommunicationRequest.medium", description="A channel of communication", type="token" ) 2045 public static final String SP_MEDIUM = "medium"; 2046 /** 2047 * <b>Fluent Client</b> search parameter constant for <b>medium</b> 2048 * <p> 2049 * Description: <b>A channel of communication</b><br> 2050 * Type: <b>token</b><br> 2051 * Path: <b>CommunicationRequest.medium</b><br> 2052 * </p> 2053 */ 2054 public static final ca.uhn.fhir.rest.gclient.TokenClientParam MEDIUM = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_MEDIUM); 2055 2056 /** 2057 * Search parameter: <b>occurrence</b> 2058 * <p> 2059 * Description: <b>When scheduled</b><br> 2060 * Type: <b>date</b><br> 2061 * Path: <b>CommunicationRequest.occurrence.as(dateTime) | CommunicationRequest.occurrence.as(Period)</b><br> 2062 * </p> 2063 */ 2064 @SearchParamDefinition(name="occurrence", path="CommunicationRequest.occurrence.as(dateTime) | CommunicationRequest.occurrence.as(Period)", description="When scheduled", type="date" ) 2065 public static final String SP_OCCURRENCE = "occurrence"; 2066 /** 2067 * <b>Fluent Client</b> search parameter constant for <b>occurrence</b> 2068 * <p> 2069 * Description: <b>When scheduled</b><br> 2070 * Type: <b>date</b><br> 2071 * Path: <b>CommunicationRequest.occurrence.as(dateTime) | CommunicationRequest.occurrence.as(Period)</b><br> 2072 * </p> 2073 */ 2074 public static final ca.uhn.fhir.rest.gclient.DateClientParam OCCURRENCE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_OCCURRENCE); 2075 2076 /** 2077 * Search parameter: <b>patient</b> 2078 * <p> 2079 * Description: <b>Focus of message</b><br> 2080 * Type: <b>reference</b><br> 2081 * Path: <b>CommunicationRequest.subject.where(resolve() is Patient)</b><br> 2082 * </p> 2083 */ 2084 @SearchParamDefinition(name="patient", path="CommunicationRequest.subject.where(resolve() is Patient)", description="Focus of message", type="reference", target={Patient.class } ) 2085 public static final String SP_PATIENT = "patient"; 2086 /** 2087 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 2088 * <p> 2089 * Description: <b>Focus of message</b><br> 2090 * Type: <b>reference</b><br> 2091 * Path: <b>CommunicationRequest.subject.where(resolve() is Patient)</b><br> 2092 * </p> 2093 */ 2094 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); 2095 2096/** 2097 * Constant for fluent queries to be used to add include statements. Specifies 2098 * the path value of "<b>CommunicationRequest:patient</b>". 2099 */ 2100 public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("CommunicationRequest:patient").toLocked(); 2101 2102 /** 2103 * Search parameter: <b>priority</b> 2104 * <p> 2105 * Description: <b>routine | urgent | asap | stat</b><br> 2106 * Type: <b>token</b><br> 2107 * Path: <b>CommunicationRequest.priority</b><br> 2108 * </p> 2109 */ 2110 @SearchParamDefinition(name="priority", path="CommunicationRequest.priority", description="routine | urgent | asap | stat", type="token" ) 2111 public static final String SP_PRIORITY = "priority"; 2112 /** 2113 * <b>Fluent Client</b> search parameter constant for <b>priority</b> 2114 * <p> 2115 * Description: <b>routine | urgent | asap | stat</b><br> 2116 * Type: <b>token</b><br> 2117 * Path: <b>CommunicationRequest.priority</b><br> 2118 * </p> 2119 */ 2120 public static final ca.uhn.fhir.rest.gclient.TokenClientParam PRIORITY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PRIORITY); 2121 2122 /** 2123 * Search parameter: <b>recipient</b> 2124 * <p> 2125 * Description: <b>Who to share the information with</b><br> 2126 * Type: <b>reference</b><br> 2127 * Path: <b>CommunicationRequest.recipient</b><br> 2128 * </p> 2129 */ 2130 @SearchParamDefinition(name="recipient", path="CommunicationRequest.recipient", description="Who to share the information with", 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"), @ca.uhn.fhir.model.api.annotation.Compartment(name="EXAMPLE") }, target={CareTeam.class, Device.class, Endpoint.class, Group.class, HealthcareService.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) 2131 public static final String SP_RECIPIENT = "recipient"; 2132 /** 2133 * <b>Fluent Client</b> search parameter constant for <b>recipient</b> 2134 * <p> 2135 * Description: <b>Who to share the information with</b><br> 2136 * Type: <b>reference</b><br> 2137 * Path: <b>CommunicationRequest.recipient</b><br> 2138 * </p> 2139 */ 2140 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam RECIPIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_RECIPIENT); 2141 2142/** 2143 * Constant for fluent queries to be used to add include statements. Specifies 2144 * the path value of "<b>CommunicationRequest:recipient</b>". 2145 */ 2146 public static final ca.uhn.fhir.model.api.Include INCLUDE_RECIPIENT = new ca.uhn.fhir.model.api.Include("CommunicationRequest:recipient").toLocked(); 2147 2148 /** 2149 * Search parameter: <b>replaces</b> 2150 * <p> 2151 * Description: <b>Request(s) replaced by this request</b><br> 2152 * Type: <b>reference</b><br> 2153 * Path: <b>CommunicationRequest.replaces</b><br> 2154 * </p> 2155 */ 2156 @SearchParamDefinition(name="replaces", path="CommunicationRequest.replaces", description="Request(s) replaced by this request", type="reference", target={CommunicationRequest.class } ) 2157 public static final String SP_REPLACES = "replaces"; 2158 /** 2159 * <b>Fluent Client</b> search parameter constant for <b>replaces</b> 2160 * <p> 2161 * Description: <b>Request(s) replaced by this request</b><br> 2162 * Type: <b>reference</b><br> 2163 * Path: <b>CommunicationRequest.replaces</b><br> 2164 * </p> 2165 */ 2166 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REPLACES = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REPLACES); 2167 2168/** 2169 * Constant for fluent queries to be used to add include statements. Specifies 2170 * the path value of "<b>CommunicationRequest:replaces</b>". 2171 */ 2172 public static final ca.uhn.fhir.model.api.Include INCLUDE_REPLACES = new ca.uhn.fhir.model.api.Include("CommunicationRequest:replaces").toLocked(); 2173 2174 /** 2175 * Search parameter: <b>requester</b> 2176 * <p> 2177 * Description: <b>Who asks for the information to be shared</b><br> 2178 * Type: <b>reference</b><br> 2179 * Path: <b>CommunicationRequest.requester</b><br> 2180 * </p> 2181 */ 2182 @SearchParamDefinition(name="requester", path="CommunicationRequest.requester", description="Who asks for the information to be shared", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={Device.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) 2183 public static final String SP_REQUESTER = "requester"; 2184 /** 2185 * <b>Fluent Client</b> search parameter constant for <b>requester</b> 2186 * <p> 2187 * Description: <b>Who asks for the information to be shared</b><br> 2188 * Type: <b>reference</b><br> 2189 * Path: <b>CommunicationRequest.requester</b><br> 2190 * </p> 2191 */ 2192 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REQUESTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REQUESTER); 2193 2194/** 2195 * Constant for fluent queries to be used to add include statements. Specifies 2196 * the path value of "<b>CommunicationRequest:requester</b>". 2197 */ 2198 public static final ca.uhn.fhir.model.api.Include INCLUDE_REQUESTER = new ca.uhn.fhir.model.api.Include("CommunicationRequest:requester").toLocked(); 2199 2200 /** 2201 * Search parameter: <b>status</b> 2202 * <p> 2203 * Description: <b>draft | active | on-hold | revoked | completed | entered-in-error | unknown</b><br> 2204 * Type: <b>token</b><br> 2205 * Path: <b>CommunicationRequest.status</b><br> 2206 * </p> 2207 */ 2208 @SearchParamDefinition(name="status", path="CommunicationRequest.status", description="draft | active | on-hold | revoked | completed | entered-in-error | unknown", type="token" ) 2209 public static final String SP_STATUS = "status"; 2210 /** 2211 * <b>Fluent Client</b> search parameter constant for <b>status</b> 2212 * <p> 2213 * Description: <b>draft | active | on-hold | revoked | completed | entered-in-error | unknown</b><br> 2214 * Type: <b>token</b><br> 2215 * Path: <b>CommunicationRequest.status</b><br> 2216 * </p> 2217 */ 2218 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 2219 2220 /** 2221 * Search parameter: <b>subject</b> 2222 * <p> 2223 * Description: <b>Focus of message</b><br> 2224 * Type: <b>reference</b><br> 2225 * Path: <b>CommunicationRequest.subject</b><br> 2226 * </p> 2227 */ 2228 @SearchParamDefinition(name="subject", path="CommunicationRequest.subject", description="Focus of message", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) 2229 public static final String SP_SUBJECT = "subject"; 2230 /** 2231 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 2232 * <p> 2233 * Description: <b>Focus of message</b><br> 2234 * Type: <b>reference</b><br> 2235 * Path: <b>CommunicationRequest.subject</b><br> 2236 * </p> 2237 */ 2238 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); 2239 2240/** 2241 * Constant for fluent queries to be used to add include statements. Specifies 2242 * the path value of "<b>CommunicationRequest:subject</b>". 2243 */ 2244 public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("CommunicationRequest:subject").toLocked(); 2245 2246 2247} 2248