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 * An action that is or was performed on or for a patient. This can be a physical intervention like an operation, or less invasive like long term services, counseling, or hypnotherapy. 072 */ 073@ResourceDef(name="Procedure", profile="http://hl7.org/fhir/StructureDefinition/Procedure") 074public class Procedure extends DomainResource { 075 076 @Block() 077 public static class ProcedurePerformerComponent extends BackboneElement implements IBaseBackboneElement { 078 /** 079 * Distinguishes the type of involvement of the performer in the procedure. For example, surgeon, anaesthetist, endoscopist. 080 */ 081 @Child(name = "function", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=true) 082 @Description(shortDefinition="Type of performance", formalDefinition="Distinguishes the type of involvement of the performer in the procedure. For example, surgeon, anaesthetist, endoscopist." ) 083 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/performer-role") 084 protected CodeableConcept function; 085 086 /** 087 * Indicates who or what performed the procedure. 088 */ 089 @Child(name = "actor", type = {Practitioner.class, PractitionerRole.class, Organization.class, Patient.class, RelatedPerson.class, Device.class, CareTeam.class, HealthcareService.class}, order=2, min=1, max=1, modifier=false, summary=true) 090 @Description(shortDefinition="Who performed the procedure", formalDefinition="Indicates who or what performed the procedure." ) 091 protected Reference actor; 092 093 /** 094 * The organization the device or practitioner was acting on behalf of. 095 */ 096 @Child(name = "onBehalfOf", type = {Organization.class}, order=3, min=0, max=1, modifier=false, summary=false) 097 @Description(shortDefinition="Organization the device or practitioner was acting for", formalDefinition="The organization the device or practitioner was acting on behalf of." ) 098 protected Reference onBehalfOf; 099 100 private static final long serialVersionUID = -1804820116L; 101 102 /** 103 * Constructor 104 */ 105 public ProcedurePerformerComponent() { 106 super(); 107 } 108 109 /** 110 * Constructor 111 */ 112 public ProcedurePerformerComponent(Reference actor) { 113 super(); 114 this.setActor(actor); 115 } 116 117 /** 118 * @return {@link #function} (Distinguishes the type of involvement of the performer in the procedure. For example, surgeon, anaesthetist, endoscopist.) 119 */ 120 public CodeableConcept getFunction() { 121 if (this.function == null) 122 if (Configuration.errorOnAutoCreate()) 123 throw new Error("Attempt to auto-create ProcedurePerformerComponent.function"); 124 else if (Configuration.doAutoCreate()) 125 this.function = new CodeableConcept(); // cc 126 return this.function; 127 } 128 129 public boolean hasFunction() { 130 return this.function != null && !this.function.isEmpty(); 131 } 132 133 /** 134 * @param value {@link #function} (Distinguishes the type of involvement of the performer in the procedure. For example, surgeon, anaesthetist, endoscopist.) 135 */ 136 public ProcedurePerformerComponent setFunction(CodeableConcept value) { 137 this.function = value; 138 return this; 139 } 140 141 /** 142 * @return {@link #actor} (Indicates who or what performed the procedure.) 143 */ 144 public Reference getActor() { 145 if (this.actor == null) 146 if (Configuration.errorOnAutoCreate()) 147 throw new Error("Attempt to auto-create ProcedurePerformerComponent.actor"); 148 else if (Configuration.doAutoCreate()) 149 this.actor = new Reference(); // cc 150 return this.actor; 151 } 152 153 public boolean hasActor() { 154 return this.actor != null && !this.actor.isEmpty(); 155 } 156 157 /** 158 * @param value {@link #actor} (Indicates who or what performed the procedure.) 159 */ 160 public ProcedurePerformerComponent setActor(Reference value) { 161 this.actor = value; 162 return this; 163 } 164 165 /** 166 * @return {@link #onBehalfOf} (The organization the device or practitioner was acting on behalf of.) 167 */ 168 public Reference getOnBehalfOf() { 169 if (this.onBehalfOf == null) 170 if (Configuration.errorOnAutoCreate()) 171 throw new Error("Attempt to auto-create ProcedurePerformerComponent.onBehalfOf"); 172 else if (Configuration.doAutoCreate()) 173 this.onBehalfOf = new Reference(); // cc 174 return this.onBehalfOf; 175 } 176 177 public boolean hasOnBehalfOf() { 178 return this.onBehalfOf != null && !this.onBehalfOf.isEmpty(); 179 } 180 181 /** 182 * @param value {@link #onBehalfOf} (The organization the device or practitioner was acting on behalf of.) 183 */ 184 public ProcedurePerformerComponent setOnBehalfOf(Reference value) { 185 this.onBehalfOf = value; 186 return this; 187 } 188 189 protected void listChildren(List<Property> children) { 190 super.listChildren(children); 191 children.add(new Property("function", "CodeableConcept", "Distinguishes the type of involvement of the performer in the procedure. For example, surgeon, anaesthetist, endoscopist.", 0, 1, function)); 192 children.add(new Property("actor", "Reference(Practitioner|PractitionerRole|Organization|Patient|RelatedPerson|Device|CareTeam|HealthcareService)", "Indicates who or what performed the procedure.", 0, 1, actor)); 193 children.add(new Property("onBehalfOf", "Reference(Organization)", "The organization the device or practitioner was acting on behalf of.", 0, 1, onBehalfOf)); 194 } 195 196 @Override 197 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 198 switch (_hash) { 199 case 1380938712: /*function*/ return new Property("function", "CodeableConcept", "Distinguishes the type of involvement of the performer in the procedure. For example, surgeon, anaesthetist, endoscopist.", 0, 1, function); 200 case 92645877: /*actor*/ return new Property("actor", "Reference(Practitioner|PractitionerRole|Organization|Patient|RelatedPerson|Device|CareTeam|HealthcareService)", "Indicates who or what performed the procedure.", 0, 1, actor); 201 case -14402964: /*onBehalfOf*/ return new Property("onBehalfOf", "Reference(Organization)", "The organization the device or practitioner was acting on behalf of.", 0, 1, onBehalfOf); 202 default: return super.getNamedProperty(_hash, _name, _checkValid); 203 } 204 205 } 206 207 @Override 208 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 209 switch (hash) { 210 case 1380938712: /*function*/ return this.function == null ? new Base[0] : new Base[] {this.function}; // CodeableConcept 211 case 92645877: /*actor*/ return this.actor == null ? new Base[0] : new Base[] {this.actor}; // Reference 212 case -14402964: /*onBehalfOf*/ return this.onBehalfOf == null ? new Base[0] : new Base[] {this.onBehalfOf}; // Reference 213 default: return super.getProperty(hash, name, checkValid); 214 } 215 216 } 217 218 @Override 219 public Base setProperty(int hash, String name, Base value) throws FHIRException { 220 switch (hash) { 221 case 1380938712: // function 222 this.function = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 223 return value; 224 case 92645877: // actor 225 this.actor = TypeConvertor.castToReference(value); // Reference 226 return value; 227 case -14402964: // onBehalfOf 228 this.onBehalfOf = TypeConvertor.castToReference(value); // Reference 229 return value; 230 default: return super.setProperty(hash, name, value); 231 } 232 233 } 234 235 @Override 236 public Base setProperty(String name, Base value) throws FHIRException { 237 if (name.equals("function")) { 238 this.function = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 239 } else if (name.equals("actor")) { 240 this.actor = TypeConvertor.castToReference(value); // Reference 241 } else if (name.equals("onBehalfOf")) { 242 this.onBehalfOf = TypeConvertor.castToReference(value); // Reference 243 } else 244 return super.setProperty(name, value); 245 return value; 246 } 247 248 @Override 249 public Base makeProperty(int hash, String name) throws FHIRException { 250 switch (hash) { 251 case 1380938712: return getFunction(); 252 case 92645877: return getActor(); 253 case -14402964: return getOnBehalfOf(); 254 default: return super.makeProperty(hash, name); 255 } 256 257 } 258 259 @Override 260 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 261 switch (hash) { 262 case 1380938712: /*function*/ return new String[] {"CodeableConcept"}; 263 case 92645877: /*actor*/ return new String[] {"Reference"}; 264 case -14402964: /*onBehalfOf*/ return new String[] {"Reference"}; 265 default: return super.getTypesForProperty(hash, name); 266 } 267 268 } 269 270 @Override 271 public Base addChild(String name) throws FHIRException { 272 if (name.equals("function")) { 273 this.function = new CodeableConcept(); 274 return this.function; 275 } 276 else if (name.equals("actor")) { 277 this.actor = new Reference(); 278 return this.actor; 279 } 280 else if (name.equals("onBehalfOf")) { 281 this.onBehalfOf = new Reference(); 282 return this.onBehalfOf; 283 } 284 else 285 return super.addChild(name); 286 } 287 288 public ProcedurePerformerComponent copy() { 289 ProcedurePerformerComponent dst = new ProcedurePerformerComponent(); 290 copyValues(dst); 291 return dst; 292 } 293 294 public void copyValues(ProcedurePerformerComponent dst) { 295 super.copyValues(dst); 296 dst.function = function == null ? null : function.copy(); 297 dst.actor = actor == null ? null : actor.copy(); 298 dst.onBehalfOf = onBehalfOf == null ? null : onBehalfOf.copy(); 299 } 300 301 @Override 302 public boolean equalsDeep(Base other_) { 303 if (!super.equalsDeep(other_)) 304 return false; 305 if (!(other_ instanceof ProcedurePerformerComponent)) 306 return false; 307 ProcedurePerformerComponent o = (ProcedurePerformerComponent) other_; 308 return compareDeep(function, o.function, true) && compareDeep(actor, o.actor, true) && compareDeep(onBehalfOf, o.onBehalfOf, true) 309 ; 310 } 311 312 @Override 313 public boolean equalsShallow(Base other_) { 314 if (!super.equalsShallow(other_)) 315 return false; 316 if (!(other_ instanceof ProcedurePerformerComponent)) 317 return false; 318 ProcedurePerformerComponent o = (ProcedurePerformerComponent) other_; 319 return true; 320 } 321 322 public boolean isEmpty() { 323 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(function, actor, onBehalfOf 324 ); 325 } 326 327 public String fhirType() { 328 return "Procedure.performer"; 329 330 } 331 332 } 333 334 @Block() 335 public static class ProcedureFocalDeviceComponent extends BackboneElement implements IBaseBackboneElement { 336 /** 337 * The kind of change that happened to the device during the procedure. 338 */ 339 @Child(name = "action", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) 340 @Description(shortDefinition="Kind of change to device", formalDefinition="The kind of change that happened to the device during the procedure." ) 341 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/device-action") 342 protected CodeableConcept action; 343 344 /** 345 * The device that was manipulated (changed) during the procedure. 346 */ 347 @Child(name = "manipulated", type = {Device.class}, order=2, min=1, max=1, modifier=false, summary=false) 348 @Description(shortDefinition="Device that was changed", formalDefinition="The device that was manipulated (changed) during the procedure." ) 349 protected Reference manipulated; 350 351 private static final long serialVersionUID = -217582010L; 352 353 /** 354 * Constructor 355 */ 356 public ProcedureFocalDeviceComponent() { 357 super(); 358 } 359 360 /** 361 * Constructor 362 */ 363 public ProcedureFocalDeviceComponent(Reference manipulated) { 364 super(); 365 this.setManipulated(manipulated); 366 } 367 368 /** 369 * @return {@link #action} (The kind of change that happened to the device during the procedure.) 370 */ 371 public CodeableConcept getAction() { 372 if (this.action == null) 373 if (Configuration.errorOnAutoCreate()) 374 throw new Error("Attempt to auto-create ProcedureFocalDeviceComponent.action"); 375 else if (Configuration.doAutoCreate()) 376 this.action = new CodeableConcept(); // cc 377 return this.action; 378 } 379 380 public boolean hasAction() { 381 return this.action != null && !this.action.isEmpty(); 382 } 383 384 /** 385 * @param value {@link #action} (The kind of change that happened to the device during the procedure.) 386 */ 387 public ProcedureFocalDeviceComponent setAction(CodeableConcept value) { 388 this.action = value; 389 return this; 390 } 391 392 /** 393 * @return {@link #manipulated} (The device that was manipulated (changed) during the procedure.) 394 */ 395 public Reference getManipulated() { 396 if (this.manipulated == null) 397 if (Configuration.errorOnAutoCreate()) 398 throw new Error("Attempt to auto-create ProcedureFocalDeviceComponent.manipulated"); 399 else if (Configuration.doAutoCreate()) 400 this.manipulated = new Reference(); // cc 401 return this.manipulated; 402 } 403 404 public boolean hasManipulated() { 405 return this.manipulated != null && !this.manipulated.isEmpty(); 406 } 407 408 /** 409 * @param value {@link #manipulated} (The device that was manipulated (changed) during the procedure.) 410 */ 411 public ProcedureFocalDeviceComponent setManipulated(Reference value) { 412 this.manipulated = value; 413 return this; 414 } 415 416 protected void listChildren(List<Property> children) { 417 super.listChildren(children); 418 children.add(new Property("action", "CodeableConcept", "The kind of change that happened to the device during the procedure.", 0, 1, action)); 419 children.add(new Property("manipulated", "Reference(Device)", "The device that was manipulated (changed) during the procedure.", 0, 1, manipulated)); 420 } 421 422 @Override 423 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 424 switch (_hash) { 425 case -1422950858: /*action*/ return new Property("action", "CodeableConcept", "The kind of change that happened to the device during the procedure.", 0, 1, action); 426 case 947372650: /*manipulated*/ return new Property("manipulated", "Reference(Device)", "The device that was manipulated (changed) during the procedure.", 0, 1, manipulated); 427 default: return super.getNamedProperty(_hash, _name, _checkValid); 428 } 429 430 } 431 432 @Override 433 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 434 switch (hash) { 435 case -1422950858: /*action*/ return this.action == null ? new Base[0] : new Base[] {this.action}; // CodeableConcept 436 case 947372650: /*manipulated*/ return this.manipulated == null ? new Base[0] : new Base[] {this.manipulated}; // Reference 437 default: return super.getProperty(hash, name, checkValid); 438 } 439 440 } 441 442 @Override 443 public Base setProperty(int hash, String name, Base value) throws FHIRException { 444 switch (hash) { 445 case -1422950858: // action 446 this.action = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 447 return value; 448 case 947372650: // manipulated 449 this.manipulated = TypeConvertor.castToReference(value); // Reference 450 return value; 451 default: return super.setProperty(hash, name, value); 452 } 453 454 } 455 456 @Override 457 public Base setProperty(String name, Base value) throws FHIRException { 458 if (name.equals("action")) { 459 this.action = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 460 } else if (name.equals("manipulated")) { 461 this.manipulated = TypeConvertor.castToReference(value); // Reference 462 } else 463 return super.setProperty(name, value); 464 return value; 465 } 466 467 @Override 468 public Base makeProperty(int hash, String name) throws FHIRException { 469 switch (hash) { 470 case -1422950858: return getAction(); 471 case 947372650: return getManipulated(); 472 default: return super.makeProperty(hash, name); 473 } 474 475 } 476 477 @Override 478 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 479 switch (hash) { 480 case -1422950858: /*action*/ return new String[] {"CodeableConcept"}; 481 case 947372650: /*manipulated*/ return new String[] {"Reference"}; 482 default: return super.getTypesForProperty(hash, name); 483 } 484 485 } 486 487 @Override 488 public Base addChild(String name) throws FHIRException { 489 if (name.equals("action")) { 490 this.action = new CodeableConcept(); 491 return this.action; 492 } 493 else if (name.equals("manipulated")) { 494 this.manipulated = new Reference(); 495 return this.manipulated; 496 } 497 else 498 return super.addChild(name); 499 } 500 501 public ProcedureFocalDeviceComponent copy() { 502 ProcedureFocalDeviceComponent dst = new ProcedureFocalDeviceComponent(); 503 copyValues(dst); 504 return dst; 505 } 506 507 public void copyValues(ProcedureFocalDeviceComponent dst) { 508 super.copyValues(dst); 509 dst.action = action == null ? null : action.copy(); 510 dst.manipulated = manipulated == null ? null : manipulated.copy(); 511 } 512 513 @Override 514 public boolean equalsDeep(Base other_) { 515 if (!super.equalsDeep(other_)) 516 return false; 517 if (!(other_ instanceof ProcedureFocalDeviceComponent)) 518 return false; 519 ProcedureFocalDeviceComponent o = (ProcedureFocalDeviceComponent) other_; 520 return compareDeep(action, o.action, true) && compareDeep(manipulated, o.manipulated, true); 521 } 522 523 @Override 524 public boolean equalsShallow(Base other_) { 525 if (!super.equalsShallow(other_)) 526 return false; 527 if (!(other_ instanceof ProcedureFocalDeviceComponent)) 528 return false; 529 ProcedureFocalDeviceComponent o = (ProcedureFocalDeviceComponent) other_; 530 return true; 531 } 532 533 public boolean isEmpty() { 534 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(action, manipulated); 535 } 536 537 public String fhirType() { 538 return "Procedure.focalDevice"; 539 540 } 541 542 } 543 544 /** 545 * Business identifiers assigned to this procedure by the performer or other systems which remain constant as the resource is updated and is propagated from server to server. 546 */ 547 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 548 @Description(shortDefinition="External Identifiers for this procedure", formalDefinition="Business identifiers assigned to this procedure by the performer or other systems which remain constant as the resource is updated and is propagated from server to server." ) 549 protected List<Identifier> identifier; 550 551 /** 552 * The URL pointing to a FHIR-defined protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure. 553 */ 554 @Child(name = "instantiatesCanonical", type = {CanonicalType.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 555 @Description(shortDefinition="Instantiates FHIR protocol or definition", formalDefinition="The URL pointing to a FHIR-defined protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure." ) 556 protected List<CanonicalType> instantiatesCanonical; 557 558 /** 559 * The URL pointing to an externally maintained protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure. 560 */ 561 @Child(name = "instantiatesUri", type = {UriType.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 562 @Description(shortDefinition="Instantiates external protocol or definition", formalDefinition="The URL pointing to an externally maintained protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure." ) 563 protected List<UriType> instantiatesUri; 564 565 /** 566 * A reference to a resource that contains details of the request for this procedure. 567 */ 568 @Child(name = "basedOn", type = {CarePlan.class, ServiceRequest.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 569 @Description(shortDefinition="A request for this procedure", formalDefinition="A reference to a resource that contains details of the request for this procedure." ) 570 protected List<Reference> basedOn; 571 572 /** 573 * A larger event of which this particular procedure is a component or step. 574 */ 575 @Child(name = "partOf", type = {Procedure.class, Observation.class, MedicationAdministration.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 576 @Description(shortDefinition="Part of referenced event", formalDefinition="A larger event of which this particular procedure is a component or step." ) 577 protected List<Reference> partOf; 578 579 /** 580 * A code specifying the state of the procedure. Generally, this will be the in-progress or completed state. 581 */ 582 @Child(name = "status", type = {CodeType.class}, order=5, min=1, max=1, modifier=true, summary=true) 583 @Description(shortDefinition="preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown", formalDefinition="A code specifying the state of the procedure. Generally, this will be the in-progress or completed state." ) 584 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/event-status") 585 protected Enumeration<EventStatus> status; 586 587 /** 588 * Captures the reason for the current state of the procedure. 589 */ 590 @Child(name = "statusReason", type = {CodeableConcept.class}, order=6, min=0, max=1, modifier=false, summary=true) 591 @Description(shortDefinition="Reason for current status", formalDefinition="Captures the reason for the current state of the procedure." ) 592 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/procedure-not-performed-reason") 593 protected CodeableConcept statusReason; 594 595 /** 596 * A code that classifies the procedure for searching, sorting and display purposes (e.g. "Surgical Procedure"). 597 */ 598 @Child(name = "category", type = {CodeableConcept.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 599 @Description(shortDefinition="Classification of the procedure", formalDefinition="A code that classifies the procedure for searching, sorting and display purposes (e.g. \"Surgical Procedure\")." ) 600 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/procedure-category") 601 protected List<CodeableConcept> category; 602 603 /** 604 * The specific procedure that is performed. Use text if the exact nature of the procedure cannot be coded (e.g. "Laparoscopic Appendectomy"). 605 */ 606 @Child(name = "code", type = {CodeableConcept.class}, order=8, min=0, max=1, modifier=false, summary=true) 607 @Description(shortDefinition="Identification of the procedure", formalDefinition="The specific procedure that is performed. Use text if the exact nature of the procedure cannot be coded (e.g. \"Laparoscopic Appendectomy\")." ) 608 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/procedure-code") 609 protected CodeableConcept code; 610 611 /** 612 * The person, animal or group on which the procedure was performed. 613 */ 614 @Child(name = "subject", type = {Patient.class, Group.class}, order=9, min=1, max=1, modifier=false, summary=true) 615 @Description(shortDefinition="Who the procedure was performed on", formalDefinition="The person, animal or group on which the procedure was performed." ) 616 protected Reference subject; 617 618 /** 619 * The Encounter during which this Procedure was created or performed or to which the creation of this record is tightly associated. 620 */ 621 @Child(name = "encounter", type = {Encounter.class}, order=10, min=0, max=1, modifier=false, summary=true) 622 @Description(shortDefinition="The Encounter during which this Procedure was created", formalDefinition="The Encounter during which this Procedure was created or performed or to which the creation of this record is tightly associated." ) 623 protected Reference encounter; 624 625 /** 626 * Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured. 627 */ 628 @Child(name = "occurrence", type = {DateTimeType.class, Period.class, StringType.class, Age.class, Range.class, Timing.class}, order=11, min=0, max=1, modifier=false, summary=true) 629 @Description(shortDefinition="When the procedure occurred or is occurring", formalDefinition="Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured." ) 630 protected DataType occurrence; 631 632 /** 633 * The date the occurrence of the procedure was first captured in the record - potentially significantly after the occurrence of the event. 634 */ 635 @Child(name = "recorded", type = {DateTimeType.class}, order=12, min=0, max=1, modifier=false, summary=true) 636 @Description(shortDefinition="When the procedure was first captured in the subject's record", formalDefinition="The date the occurrence of the procedure was first captured in the record - potentially significantly after the occurrence of the event." ) 637 protected DateTimeType recorded; 638 639 /** 640 * Individual who recorded the record and takes responsibility for its content. 641 */ 642 @Child(name = "recorder", type = {Patient.class, RelatedPerson.class, Practitioner.class, PractitionerRole.class}, order=13, min=0, max=1, modifier=false, summary=true) 643 @Description(shortDefinition="Who recorded the procedure", formalDefinition="Individual who recorded the record and takes responsibility for its content." ) 644 protected Reference recorder; 645 646 /** 647 * Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record. It may also indicate the source of the report. 648 */ 649 @Child(name = "reported", type = {BooleanType.class, Patient.class, RelatedPerson.class, Practitioner.class, PractitionerRole.class, Organization.class}, order=14, min=0, max=1, modifier=false, summary=true) 650 @Description(shortDefinition="Reported rather than primary record", formalDefinition="Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record. It may also indicate the source of the report." ) 651 protected DataType reported; 652 653 /** 654 * Limited to "real" people rather than equipment. 655 */ 656 @Child(name = "performer", type = {}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 657 @Description(shortDefinition="The people who performed the procedure", formalDefinition="Limited to \"real\" people rather than equipment." ) 658 protected List<ProcedurePerformerComponent> performer; 659 660 /** 661 * The location where the procedure actually happened. E.g. a newborn at home, a tracheostomy at a restaurant. 662 */ 663 @Child(name = "location", type = {Location.class}, order=16, min=0, max=1, modifier=false, summary=true) 664 @Description(shortDefinition="Where the procedure happened", formalDefinition="The location where the procedure actually happened. E.g. a newborn at home, a tracheostomy at a restaurant." ) 665 protected Reference location; 666 667 /** 668 * The coded reason or reference why the procedure was performed. This may be a coded entity of some type, or may simply be present as text, or may be a reference to one of several resources that justify the procedure. 669 */ 670 @Child(name = "reason", type = {CodeableReference.class}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 671 @Description(shortDefinition="The justification that the procedure was performed", formalDefinition="The coded reason or reference why the procedure was performed. This may be a coded entity of some type, or may simply be present as text, or may be a reference to one of several resources that justify the procedure." ) 672 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/procedure-reason") 673 protected List<CodeableReference> reason; 674 675 /** 676 * Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion. 677 */ 678 @Child(name = "bodySite", type = {CodeableConcept.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 679 @Description(shortDefinition="Target body sites", formalDefinition="Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion." ) 680 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/body-site") 681 protected List<CodeableConcept> bodySite; 682 683 /** 684 * The outcome of the procedure - did it resolve the reasons for the procedure being performed? 685 */ 686 @Child(name = "outcome", type = {CodeableConcept.class}, order=19, min=0, max=1, modifier=false, summary=true) 687 @Description(shortDefinition="The result of procedure", formalDefinition="The outcome of the procedure - did it resolve the reasons for the procedure being performed?" ) 688 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/procedure-outcome") 689 protected CodeableConcept outcome; 690 691 /** 692 * This could be a histology result, pathology report, surgical report, etc. 693 */ 694 @Child(name = "report", type = {DiagnosticReport.class, DocumentReference.class, Composition.class}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 695 @Description(shortDefinition="Any report resulting from the procedure", formalDefinition="This could be a histology result, pathology report, surgical report, etc." ) 696 protected List<Reference> report; 697 698 /** 699 * Any complications that occurred during the procedure, or in the immediate post-performance period. These are generally tracked separately from the notes, which will typically describe the procedure itself rather than any 'post procedure' issues. 700 */ 701 @Child(name = "complication", type = {CodeableConcept.class}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 702 @Description(shortDefinition="Complication following the procedure", formalDefinition="Any complications that occurred during the procedure, or in the immediate post-performance period. These are generally tracked separately from the notes, which will typically describe the procedure itself rather than any 'post procedure' issues." ) 703 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/condition-code") 704 protected List<CodeableConcept> complication; 705 706 /** 707 * Any complications that occurred during the procedure, or in the immediate post-performance period. 708 */ 709 @Child(name = "complicationDetail", type = {Condition.class}, order=22, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 710 @Description(shortDefinition="A condition that is a result of the procedure", formalDefinition="Any complications that occurred during the procedure, or in the immediate post-performance period." ) 711 protected List<Reference> complicationDetail; 712 713 /** 714 * If the procedure required specific follow up - e.g. removal of sutures. The follow up may be represented as a simple note or could potentially be more complex, in which case the CarePlan resource can be used. 715 */ 716 @Child(name = "followUp", type = {CodeableConcept.class}, order=23, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 717 @Description(shortDefinition="Instructions for follow up", formalDefinition="If the procedure required specific follow up - e.g. removal of sutures. The follow up may be represented as a simple note or could potentially be more complex, in which case the CarePlan resource can be used." ) 718 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/procedure-followup") 719 protected List<CodeableConcept> followUp; 720 721 /** 722 * Any other notes and comments about the procedure. 723 */ 724 @Child(name = "note", type = {Annotation.class}, order=24, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 725 @Description(shortDefinition="Additional information about the procedure", formalDefinition="Any other notes and comments about the procedure." ) 726 protected List<Annotation> note; 727 728 /** 729 * A device that is implanted, removed or otherwise manipulated (calibration, battery replacement, fitting a prosthesis, attaching a wound-vac, etc.) as a focal portion of the Procedure. 730 */ 731 @Child(name = "focalDevice", type = {}, order=25, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 732 @Description(shortDefinition="Manipulated, implanted, or removed device", formalDefinition="A device that is implanted, removed or otherwise manipulated (calibration, battery replacement, fitting a prosthesis, attaching a wound-vac, etc.) as a focal portion of the Procedure." ) 733 protected List<ProcedureFocalDeviceComponent> focalDevice; 734 735 /** 736 * Identifies medications, devices and any other substance used as part of the procedure. 737 */ 738 @Child(name = "used", type = {CodeableReference.class}, order=26, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 739 @Description(shortDefinition="Items used during procedure", formalDefinition="Identifies medications, devices and any other substance used as part of the procedure." ) 740 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/device-kind") 741 protected List<CodeableReference> used; 742 743 private static final long serialVersionUID = 1060230234L; 744 745 /** 746 * Constructor 747 */ 748 public Procedure() { 749 super(); 750 } 751 752 /** 753 * Constructor 754 */ 755 public Procedure(EventStatus status, Reference subject) { 756 super(); 757 this.setStatus(status); 758 this.setSubject(subject); 759 } 760 761 /** 762 * @return {@link #identifier} (Business identifiers assigned to this procedure by the performer or other systems which remain constant as the resource is updated and is propagated from server to server.) 763 */ 764 public List<Identifier> getIdentifier() { 765 if (this.identifier == null) 766 this.identifier = new ArrayList<Identifier>(); 767 return this.identifier; 768 } 769 770 /** 771 * @return Returns a reference to <code>this</code> for easy method chaining 772 */ 773 public Procedure setIdentifier(List<Identifier> theIdentifier) { 774 this.identifier = theIdentifier; 775 return this; 776 } 777 778 public boolean hasIdentifier() { 779 if (this.identifier == null) 780 return false; 781 for (Identifier item : this.identifier) 782 if (!item.isEmpty()) 783 return true; 784 return false; 785 } 786 787 public Identifier addIdentifier() { //3 788 Identifier t = new Identifier(); 789 if (this.identifier == null) 790 this.identifier = new ArrayList<Identifier>(); 791 this.identifier.add(t); 792 return t; 793 } 794 795 public Procedure addIdentifier(Identifier t) { //3 796 if (t == null) 797 return this; 798 if (this.identifier == null) 799 this.identifier = new ArrayList<Identifier>(); 800 this.identifier.add(t); 801 return this; 802 } 803 804 /** 805 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} 806 */ 807 public Identifier getIdentifierFirstRep() { 808 if (getIdentifier().isEmpty()) { 809 addIdentifier(); 810 } 811 return getIdentifier().get(0); 812 } 813 814 /** 815 * @return {@link #instantiatesCanonical} (The URL pointing to a FHIR-defined protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure.) 816 */ 817 public List<CanonicalType> getInstantiatesCanonical() { 818 if (this.instantiatesCanonical == null) 819 this.instantiatesCanonical = new ArrayList<CanonicalType>(); 820 return this.instantiatesCanonical; 821 } 822 823 /** 824 * @return Returns a reference to <code>this</code> for easy method chaining 825 */ 826 public Procedure setInstantiatesCanonical(List<CanonicalType> theInstantiatesCanonical) { 827 this.instantiatesCanonical = theInstantiatesCanonical; 828 return this; 829 } 830 831 public boolean hasInstantiatesCanonical() { 832 if (this.instantiatesCanonical == null) 833 return false; 834 for (CanonicalType item : this.instantiatesCanonical) 835 if (!item.isEmpty()) 836 return true; 837 return false; 838 } 839 840 /** 841 * @return {@link #instantiatesCanonical} (The URL pointing to a FHIR-defined protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure.) 842 */ 843 public CanonicalType addInstantiatesCanonicalElement() {//2 844 CanonicalType t = new CanonicalType(); 845 if (this.instantiatesCanonical == null) 846 this.instantiatesCanonical = new ArrayList<CanonicalType>(); 847 this.instantiatesCanonical.add(t); 848 return t; 849 } 850 851 /** 852 * @param value {@link #instantiatesCanonical} (The URL pointing to a FHIR-defined protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure.) 853 */ 854 public Procedure addInstantiatesCanonical(String value) { //1 855 CanonicalType t = new CanonicalType(); 856 t.setValue(value); 857 if (this.instantiatesCanonical == null) 858 this.instantiatesCanonical = new ArrayList<CanonicalType>(); 859 this.instantiatesCanonical.add(t); 860 return this; 861 } 862 863 /** 864 * @param value {@link #instantiatesCanonical} (The URL pointing to a FHIR-defined protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure.) 865 */ 866 public boolean hasInstantiatesCanonical(String value) { 867 if (this.instantiatesCanonical == null) 868 return false; 869 for (CanonicalType v : this.instantiatesCanonical) 870 if (v.getValue().equals(value)) // canonical 871 return true; 872 return false; 873 } 874 875 /** 876 * @return {@link #instantiatesUri} (The URL pointing to an externally maintained protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure.) 877 */ 878 public List<UriType> getInstantiatesUri() { 879 if (this.instantiatesUri == null) 880 this.instantiatesUri = new ArrayList<UriType>(); 881 return this.instantiatesUri; 882 } 883 884 /** 885 * @return Returns a reference to <code>this</code> for easy method chaining 886 */ 887 public Procedure setInstantiatesUri(List<UriType> theInstantiatesUri) { 888 this.instantiatesUri = theInstantiatesUri; 889 return this; 890 } 891 892 public boolean hasInstantiatesUri() { 893 if (this.instantiatesUri == null) 894 return false; 895 for (UriType item : this.instantiatesUri) 896 if (!item.isEmpty()) 897 return true; 898 return false; 899 } 900 901 /** 902 * @return {@link #instantiatesUri} (The URL pointing to an externally maintained protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure.) 903 */ 904 public UriType addInstantiatesUriElement() {//2 905 UriType t = new UriType(); 906 if (this.instantiatesUri == null) 907 this.instantiatesUri = new ArrayList<UriType>(); 908 this.instantiatesUri.add(t); 909 return t; 910 } 911 912 /** 913 * @param value {@link #instantiatesUri} (The URL pointing to an externally maintained protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure.) 914 */ 915 public Procedure addInstantiatesUri(String value) { //1 916 UriType t = new UriType(); 917 t.setValue(value); 918 if (this.instantiatesUri == null) 919 this.instantiatesUri = new ArrayList<UriType>(); 920 this.instantiatesUri.add(t); 921 return this; 922 } 923 924 /** 925 * @param value {@link #instantiatesUri} (The URL pointing to an externally maintained protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure.) 926 */ 927 public boolean hasInstantiatesUri(String value) { 928 if (this.instantiatesUri == null) 929 return false; 930 for (UriType v : this.instantiatesUri) 931 if (v.getValue().equals(value)) // uri 932 return true; 933 return false; 934 } 935 936 /** 937 * @return {@link #basedOn} (A reference to a resource that contains details of the request for this procedure.) 938 */ 939 public List<Reference> getBasedOn() { 940 if (this.basedOn == null) 941 this.basedOn = new ArrayList<Reference>(); 942 return this.basedOn; 943 } 944 945 /** 946 * @return Returns a reference to <code>this</code> for easy method chaining 947 */ 948 public Procedure setBasedOn(List<Reference> theBasedOn) { 949 this.basedOn = theBasedOn; 950 return this; 951 } 952 953 public boolean hasBasedOn() { 954 if (this.basedOn == null) 955 return false; 956 for (Reference item : this.basedOn) 957 if (!item.isEmpty()) 958 return true; 959 return false; 960 } 961 962 public Reference addBasedOn() { //3 963 Reference t = new Reference(); 964 if (this.basedOn == null) 965 this.basedOn = new ArrayList<Reference>(); 966 this.basedOn.add(t); 967 return t; 968 } 969 970 public Procedure addBasedOn(Reference t) { //3 971 if (t == null) 972 return this; 973 if (this.basedOn == null) 974 this.basedOn = new ArrayList<Reference>(); 975 this.basedOn.add(t); 976 return this; 977 } 978 979 /** 980 * @return The first repetition of repeating field {@link #basedOn}, creating it if it does not already exist {3} 981 */ 982 public Reference getBasedOnFirstRep() { 983 if (getBasedOn().isEmpty()) { 984 addBasedOn(); 985 } 986 return getBasedOn().get(0); 987 } 988 989 /** 990 * @return {@link #partOf} (A larger event of which this particular procedure is a component or step.) 991 */ 992 public List<Reference> getPartOf() { 993 if (this.partOf == null) 994 this.partOf = new ArrayList<Reference>(); 995 return this.partOf; 996 } 997 998 /** 999 * @return Returns a reference to <code>this</code> for easy method chaining 1000 */ 1001 public Procedure setPartOf(List<Reference> thePartOf) { 1002 this.partOf = thePartOf; 1003 return this; 1004 } 1005 1006 public boolean hasPartOf() { 1007 if (this.partOf == null) 1008 return false; 1009 for (Reference item : this.partOf) 1010 if (!item.isEmpty()) 1011 return true; 1012 return false; 1013 } 1014 1015 public Reference addPartOf() { //3 1016 Reference t = new Reference(); 1017 if (this.partOf == null) 1018 this.partOf = new ArrayList<Reference>(); 1019 this.partOf.add(t); 1020 return t; 1021 } 1022 1023 public Procedure addPartOf(Reference t) { //3 1024 if (t == null) 1025 return this; 1026 if (this.partOf == null) 1027 this.partOf = new ArrayList<Reference>(); 1028 this.partOf.add(t); 1029 return this; 1030 } 1031 1032 /** 1033 * @return The first repetition of repeating field {@link #partOf}, creating it if it does not already exist {3} 1034 */ 1035 public Reference getPartOfFirstRep() { 1036 if (getPartOf().isEmpty()) { 1037 addPartOf(); 1038 } 1039 return getPartOf().get(0); 1040 } 1041 1042 /** 1043 * @return {@link #status} (A code specifying the state of the procedure. Generally, this will be the in-progress or completed state.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 1044 */ 1045 public Enumeration<EventStatus> getStatusElement() { 1046 if (this.status == null) 1047 if (Configuration.errorOnAutoCreate()) 1048 throw new Error("Attempt to auto-create Procedure.status"); 1049 else if (Configuration.doAutoCreate()) 1050 this.status = new Enumeration<EventStatus>(new EventStatusEnumFactory()); // bb 1051 return this.status; 1052 } 1053 1054 public boolean hasStatusElement() { 1055 return this.status != null && !this.status.isEmpty(); 1056 } 1057 1058 public boolean hasStatus() { 1059 return this.status != null && !this.status.isEmpty(); 1060 } 1061 1062 /** 1063 * @param value {@link #status} (A code specifying the state of the procedure. Generally, this will be the in-progress or completed state.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 1064 */ 1065 public Procedure setStatusElement(Enumeration<EventStatus> value) { 1066 this.status = value; 1067 return this; 1068 } 1069 1070 /** 1071 * @return A code specifying the state of the procedure. Generally, this will be the in-progress or completed state. 1072 */ 1073 public EventStatus getStatus() { 1074 return this.status == null ? null : this.status.getValue(); 1075 } 1076 1077 /** 1078 * @param value A code specifying the state of the procedure. Generally, this will be the in-progress or completed state. 1079 */ 1080 public Procedure setStatus(EventStatus value) { 1081 if (this.status == null) 1082 this.status = new Enumeration<EventStatus>(new EventStatusEnumFactory()); 1083 this.status.setValue(value); 1084 return this; 1085 } 1086 1087 /** 1088 * @return {@link #statusReason} (Captures the reason for the current state of the procedure.) 1089 */ 1090 public CodeableConcept getStatusReason() { 1091 if (this.statusReason == null) 1092 if (Configuration.errorOnAutoCreate()) 1093 throw new Error("Attempt to auto-create Procedure.statusReason"); 1094 else if (Configuration.doAutoCreate()) 1095 this.statusReason = new CodeableConcept(); // cc 1096 return this.statusReason; 1097 } 1098 1099 public boolean hasStatusReason() { 1100 return this.statusReason != null && !this.statusReason.isEmpty(); 1101 } 1102 1103 /** 1104 * @param value {@link #statusReason} (Captures the reason for the current state of the procedure.) 1105 */ 1106 public Procedure setStatusReason(CodeableConcept value) { 1107 this.statusReason = value; 1108 return this; 1109 } 1110 1111 /** 1112 * @return {@link #category} (A code that classifies the procedure for searching, sorting and display purposes (e.g. "Surgical Procedure").) 1113 */ 1114 public List<CodeableConcept> getCategory() { 1115 if (this.category == null) 1116 this.category = new ArrayList<CodeableConcept>(); 1117 return this.category; 1118 } 1119 1120 /** 1121 * @return Returns a reference to <code>this</code> for easy method chaining 1122 */ 1123 public Procedure setCategory(List<CodeableConcept> theCategory) { 1124 this.category = theCategory; 1125 return this; 1126 } 1127 1128 public boolean hasCategory() { 1129 if (this.category == null) 1130 return false; 1131 for (CodeableConcept item : this.category) 1132 if (!item.isEmpty()) 1133 return true; 1134 return false; 1135 } 1136 1137 public CodeableConcept addCategory() { //3 1138 CodeableConcept t = new CodeableConcept(); 1139 if (this.category == null) 1140 this.category = new ArrayList<CodeableConcept>(); 1141 this.category.add(t); 1142 return t; 1143 } 1144 1145 public Procedure addCategory(CodeableConcept t) { //3 1146 if (t == null) 1147 return this; 1148 if (this.category == null) 1149 this.category = new ArrayList<CodeableConcept>(); 1150 this.category.add(t); 1151 return this; 1152 } 1153 1154 /** 1155 * @return The first repetition of repeating field {@link #category}, creating it if it does not already exist {3} 1156 */ 1157 public CodeableConcept getCategoryFirstRep() { 1158 if (getCategory().isEmpty()) { 1159 addCategory(); 1160 } 1161 return getCategory().get(0); 1162 } 1163 1164 /** 1165 * @return {@link #code} (The specific procedure that is performed. Use text if the exact nature of the procedure cannot be coded (e.g. "Laparoscopic Appendectomy").) 1166 */ 1167 public CodeableConcept getCode() { 1168 if (this.code == null) 1169 if (Configuration.errorOnAutoCreate()) 1170 throw new Error("Attempt to auto-create Procedure.code"); 1171 else if (Configuration.doAutoCreate()) 1172 this.code = new CodeableConcept(); // cc 1173 return this.code; 1174 } 1175 1176 public boolean hasCode() { 1177 return this.code != null && !this.code.isEmpty(); 1178 } 1179 1180 /** 1181 * @param value {@link #code} (The specific procedure that is performed. Use text if the exact nature of the procedure cannot be coded (e.g. "Laparoscopic Appendectomy").) 1182 */ 1183 public Procedure setCode(CodeableConcept value) { 1184 this.code = value; 1185 return this; 1186 } 1187 1188 /** 1189 * @return {@link #subject} (The person, animal or group on which the procedure was performed.) 1190 */ 1191 public Reference getSubject() { 1192 if (this.subject == null) 1193 if (Configuration.errorOnAutoCreate()) 1194 throw new Error("Attempt to auto-create Procedure.subject"); 1195 else if (Configuration.doAutoCreate()) 1196 this.subject = new Reference(); // cc 1197 return this.subject; 1198 } 1199 1200 public boolean hasSubject() { 1201 return this.subject != null && !this.subject.isEmpty(); 1202 } 1203 1204 /** 1205 * @param value {@link #subject} (The person, animal or group on which the procedure was performed.) 1206 */ 1207 public Procedure setSubject(Reference value) { 1208 this.subject = value; 1209 return this; 1210 } 1211 1212 /** 1213 * @return {@link #encounter} (The Encounter during which this Procedure was created or performed or to which the creation of this record is tightly associated.) 1214 */ 1215 public Reference getEncounter() { 1216 if (this.encounter == null) 1217 if (Configuration.errorOnAutoCreate()) 1218 throw new Error("Attempt to auto-create Procedure.encounter"); 1219 else if (Configuration.doAutoCreate()) 1220 this.encounter = new Reference(); // cc 1221 return this.encounter; 1222 } 1223 1224 public boolean hasEncounter() { 1225 return this.encounter != null && !this.encounter.isEmpty(); 1226 } 1227 1228 /** 1229 * @param value {@link #encounter} (The Encounter during which this Procedure was created or performed or to which the creation of this record is tightly associated.) 1230 */ 1231 public Procedure setEncounter(Reference value) { 1232 this.encounter = value; 1233 return this; 1234 } 1235 1236 /** 1237 * @return {@link #occurrence} (Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.) 1238 */ 1239 public DataType getOccurrence() { 1240 return this.occurrence; 1241 } 1242 1243 /** 1244 * @return {@link #occurrence} (Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.) 1245 */ 1246 public DateTimeType getOccurrenceDateTimeType() throws FHIRException { 1247 if (this.occurrence == null) 1248 this.occurrence = new DateTimeType(); 1249 if (!(this.occurrence instanceof DateTimeType)) 1250 throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.occurrence.getClass().getName()+" was encountered"); 1251 return (DateTimeType) this.occurrence; 1252 } 1253 1254 public boolean hasOccurrenceDateTimeType() { 1255 return this != null && this.occurrence instanceof DateTimeType; 1256 } 1257 1258 /** 1259 * @return {@link #occurrence} (Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.) 1260 */ 1261 public Period getOccurrencePeriod() throws FHIRException { 1262 if (this.occurrence == null) 1263 this.occurrence = new Period(); 1264 if (!(this.occurrence instanceof Period)) 1265 throw new FHIRException("Type mismatch: the type Period was expected, but "+this.occurrence.getClass().getName()+" was encountered"); 1266 return (Period) this.occurrence; 1267 } 1268 1269 public boolean hasOccurrencePeriod() { 1270 return this != null && this.occurrence instanceof Period; 1271 } 1272 1273 /** 1274 * @return {@link #occurrence} (Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.) 1275 */ 1276 public StringType getOccurrenceStringType() throws FHIRException { 1277 if (this.occurrence == null) 1278 this.occurrence = new StringType(); 1279 if (!(this.occurrence instanceof StringType)) 1280 throw new FHIRException("Type mismatch: the type StringType was expected, but "+this.occurrence.getClass().getName()+" was encountered"); 1281 return (StringType) this.occurrence; 1282 } 1283 1284 public boolean hasOccurrenceStringType() { 1285 return this != null && this.occurrence instanceof StringType; 1286 } 1287 1288 /** 1289 * @return {@link #occurrence} (Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.) 1290 */ 1291 public Age getOccurrenceAge() throws FHIRException { 1292 if (this.occurrence == null) 1293 this.occurrence = new Age(); 1294 if (!(this.occurrence instanceof Age)) 1295 throw new FHIRException("Type mismatch: the type Age was expected, but "+this.occurrence.getClass().getName()+" was encountered"); 1296 return (Age) this.occurrence; 1297 } 1298 1299 public boolean hasOccurrenceAge() { 1300 return this != null && this.occurrence instanceof Age; 1301 } 1302 1303 /** 1304 * @return {@link #occurrence} (Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.) 1305 */ 1306 public Range getOccurrenceRange() throws FHIRException { 1307 if (this.occurrence == null) 1308 this.occurrence = new Range(); 1309 if (!(this.occurrence instanceof Range)) 1310 throw new FHIRException("Type mismatch: the type Range was expected, but "+this.occurrence.getClass().getName()+" was encountered"); 1311 return (Range) this.occurrence; 1312 } 1313 1314 public boolean hasOccurrenceRange() { 1315 return this != null && this.occurrence instanceof Range; 1316 } 1317 1318 /** 1319 * @return {@link #occurrence} (Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.) 1320 */ 1321 public Timing getOccurrenceTiming() throws FHIRException { 1322 if (this.occurrence == null) 1323 this.occurrence = new Timing(); 1324 if (!(this.occurrence instanceof Timing)) 1325 throw new FHIRException("Type mismatch: the type Timing was expected, but "+this.occurrence.getClass().getName()+" was encountered"); 1326 return (Timing) this.occurrence; 1327 } 1328 1329 public boolean hasOccurrenceTiming() { 1330 return this != null && this.occurrence instanceof Timing; 1331 } 1332 1333 public boolean hasOccurrence() { 1334 return this.occurrence != null && !this.occurrence.isEmpty(); 1335 } 1336 1337 /** 1338 * @param value {@link #occurrence} (Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.) 1339 */ 1340 public Procedure setOccurrence(DataType value) { 1341 if (value != null && !(value instanceof DateTimeType || value instanceof Period || value instanceof StringType || value instanceof Age || value instanceof Range || value instanceof Timing)) 1342 throw new Error("Not the right type for Procedure.occurrence[x]: "+value.fhirType()); 1343 this.occurrence = value; 1344 return this; 1345 } 1346 1347 /** 1348 * @return {@link #recorded} (The date the occurrence of the procedure was first captured in the record - potentially significantly after the occurrence of the event.). This is the underlying object with id, value and extensions. The accessor "getRecorded" gives direct access to the value 1349 */ 1350 public DateTimeType getRecordedElement() { 1351 if (this.recorded == null) 1352 if (Configuration.errorOnAutoCreate()) 1353 throw new Error("Attempt to auto-create Procedure.recorded"); 1354 else if (Configuration.doAutoCreate()) 1355 this.recorded = new DateTimeType(); // bb 1356 return this.recorded; 1357 } 1358 1359 public boolean hasRecordedElement() { 1360 return this.recorded != null && !this.recorded.isEmpty(); 1361 } 1362 1363 public boolean hasRecorded() { 1364 return this.recorded != null && !this.recorded.isEmpty(); 1365 } 1366 1367 /** 1368 * @param value {@link #recorded} (The date the occurrence of the procedure was first captured in the record - potentially significantly after the occurrence of the event.). This is the underlying object with id, value and extensions. The accessor "getRecorded" gives direct access to the value 1369 */ 1370 public Procedure setRecordedElement(DateTimeType value) { 1371 this.recorded = value; 1372 return this; 1373 } 1374 1375 /** 1376 * @return The date the occurrence of the procedure was first captured in the record - potentially significantly after the occurrence of the event. 1377 */ 1378 public Date getRecorded() { 1379 return this.recorded == null ? null : this.recorded.getValue(); 1380 } 1381 1382 /** 1383 * @param value The date the occurrence of the procedure was first captured in the record - potentially significantly after the occurrence of the event. 1384 */ 1385 public Procedure setRecorded(Date value) { 1386 if (value == null) 1387 this.recorded = null; 1388 else { 1389 if (this.recorded == null) 1390 this.recorded = new DateTimeType(); 1391 this.recorded.setValue(value); 1392 } 1393 return this; 1394 } 1395 1396 /** 1397 * @return {@link #recorder} (Individual who recorded the record and takes responsibility for its content.) 1398 */ 1399 public Reference getRecorder() { 1400 if (this.recorder == null) 1401 if (Configuration.errorOnAutoCreate()) 1402 throw new Error("Attempt to auto-create Procedure.recorder"); 1403 else if (Configuration.doAutoCreate()) 1404 this.recorder = new Reference(); // cc 1405 return this.recorder; 1406 } 1407 1408 public boolean hasRecorder() { 1409 return this.recorder != null && !this.recorder.isEmpty(); 1410 } 1411 1412 /** 1413 * @param value {@link #recorder} (Individual who recorded the record and takes responsibility for its content.) 1414 */ 1415 public Procedure setRecorder(Reference value) { 1416 this.recorder = value; 1417 return this; 1418 } 1419 1420 /** 1421 * @return {@link #reported} (Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record. It may also indicate the source of the report.) 1422 */ 1423 public DataType getReported() { 1424 return this.reported; 1425 } 1426 1427 /** 1428 * @return {@link #reported} (Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record. It may also indicate the source of the report.) 1429 */ 1430 public BooleanType getReportedBooleanType() throws FHIRException { 1431 if (this.reported == null) 1432 this.reported = new BooleanType(); 1433 if (!(this.reported instanceof BooleanType)) 1434 throw new FHIRException("Type mismatch: the type BooleanType was expected, but "+this.reported.getClass().getName()+" was encountered"); 1435 return (BooleanType) this.reported; 1436 } 1437 1438 public boolean hasReportedBooleanType() { 1439 return this != null && this.reported instanceof BooleanType; 1440 } 1441 1442 /** 1443 * @return {@link #reported} (Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record. It may also indicate the source of the report.) 1444 */ 1445 public Reference getReportedReference() throws FHIRException { 1446 if (this.reported == null) 1447 this.reported = new Reference(); 1448 if (!(this.reported instanceof Reference)) 1449 throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.reported.getClass().getName()+" was encountered"); 1450 return (Reference) this.reported; 1451 } 1452 1453 public boolean hasReportedReference() { 1454 return this != null && this.reported instanceof Reference; 1455 } 1456 1457 public boolean hasReported() { 1458 return this.reported != null && !this.reported.isEmpty(); 1459 } 1460 1461 /** 1462 * @param value {@link #reported} (Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record. It may also indicate the source of the report.) 1463 */ 1464 public Procedure setReported(DataType value) { 1465 if (value != null && !(value instanceof BooleanType || value instanceof Reference)) 1466 throw new Error("Not the right type for Procedure.reported[x]: "+value.fhirType()); 1467 this.reported = value; 1468 return this; 1469 } 1470 1471 /** 1472 * @return {@link #performer} (Limited to "real" people rather than equipment.) 1473 */ 1474 public List<ProcedurePerformerComponent> getPerformer() { 1475 if (this.performer == null) 1476 this.performer = new ArrayList<ProcedurePerformerComponent>(); 1477 return this.performer; 1478 } 1479 1480 /** 1481 * @return Returns a reference to <code>this</code> for easy method chaining 1482 */ 1483 public Procedure setPerformer(List<ProcedurePerformerComponent> thePerformer) { 1484 this.performer = thePerformer; 1485 return this; 1486 } 1487 1488 public boolean hasPerformer() { 1489 if (this.performer == null) 1490 return false; 1491 for (ProcedurePerformerComponent item : this.performer) 1492 if (!item.isEmpty()) 1493 return true; 1494 return false; 1495 } 1496 1497 public ProcedurePerformerComponent addPerformer() { //3 1498 ProcedurePerformerComponent t = new ProcedurePerformerComponent(); 1499 if (this.performer == null) 1500 this.performer = new ArrayList<ProcedurePerformerComponent>(); 1501 this.performer.add(t); 1502 return t; 1503 } 1504 1505 public Procedure addPerformer(ProcedurePerformerComponent t) { //3 1506 if (t == null) 1507 return this; 1508 if (this.performer == null) 1509 this.performer = new ArrayList<ProcedurePerformerComponent>(); 1510 this.performer.add(t); 1511 return this; 1512 } 1513 1514 /** 1515 * @return The first repetition of repeating field {@link #performer}, creating it if it does not already exist {3} 1516 */ 1517 public ProcedurePerformerComponent getPerformerFirstRep() { 1518 if (getPerformer().isEmpty()) { 1519 addPerformer(); 1520 } 1521 return getPerformer().get(0); 1522 } 1523 1524 /** 1525 * @return {@link #location} (The location where the procedure actually happened. E.g. a newborn at home, a tracheostomy at a restaurant.) 1526 */ 1527 public Reference getLocation() { 1528 if (this.location == null) 1529 if (Configuration.errorOnAutoCreate()) 1530 throw new Error("Attempt to auto-create Procedure.location"); 1531 else if (Configuration.doAutoCreate()) 1532 this.location = new Reference(); // cc 1533 return this.location; 1534 } 1535 1536 public boolean hasLocation() { 1537 return this.location != null && !this.location.isEmpty(); 1538 } 1539 1540 /** 1541 * @param value {@link #location} (The location where the procedure actually happened. E.g. a newborn at home, a tracheostomy at a restaurant.) 1542 */ 1543 public Procedure setLocation(Reference value) { 1544 this.location = value; 1545 return this; 1546 } 1547 1548 /** 1549 * @return {@link #reason} (The coded reason or reference why the procedure was performed. This may be a coded entity of some type, or may simply be present as text, or may be a reference to one of several resources that justify the procedure.) 1550 */ 1551 public List<CodeableReference> getReason() { 1552 if (this.reason == null) 1553 this.reason = new ArrayList<CodeableReference>(); 1554 return this.reason; 1555 } 1556 1557 /** 1558 * @return Returns a reference to <code>this</code> for easy method chaining 1559 */ 1560 public Procedure setReason(List<CodeableReference> theReason) { 1561 this.reason = theReason; 1562 return this; 1563 } 1564 1565 public boolean hasReason() { 1566 if (this.reason == null) 1567 return false; 1568 for (CodeableReference item : this.reason) 1569 if (!item.isEmpty()) 1570 return true; 1571 return false; 1572 } 1573 1574 public CodeableReference addReason() { //3 1575 CodeableReference t = new CodeableReference(); 1576 if (this.reason == null) 1577 this.reason = new ArrayList<CodeableReference>(); 1578 this.reason.add(t); 1579 return t; 1580 } 1581 1582 public Procedure addReason(CodeableReference t) { //3 1583 if (t == null) 1584 return this; 1585 if (this.reason == null) 1586 this.reason = new ArrayList<CodeableReference>(); 1587 this.reason.add(t); 1588 return this; 1589 } 1590 1591 /** 1592 * @return The first repetition of repeating field {@link #reason}, creating it if it does not already exist {3} 1593 */ 1594 public CodeableReference getReasonFirstRep() { 1595 if (getReason().isEmpty()) { 1596 addReason(); 1597 } 1598 return getReason().get(0); 1599 } 1600 1601 /** 1602 * @return {@link #bodySite} (Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion.) 1603 */ 1604 public List<CodeableConcept> getBodySite() { 1605 if (this.bodySite == null) 1606 this.bodySite = new ArrayList<CodeableConcept>(); 1607 return this.bodySite; 1608 } 1609 1610 /** 1611 * @return Returns a reference to <code>this</code> for easy method chaining 1612 */ 1613 public Procedure setBodySite(List<CodeableConcept> theBodySite) { 1614 this.bodySite = theBodySite; 1615 return this; 1616 } 1617 1618 public boolean hasBodySite() { 1619 if (this.bodySite == null) 1620 return false; 1621 for (CodeableConcept item : this.bodySite) 1622 if (!item.isEmpty()) 1623 return true; 1624 return false; 1625 } 1626 1627 public CodeableConcept addBodySite() { //3 1628 CodeableConcept t = new CodeableConcept(); 1629 if (this.bodySite == null) 1630 this.bodySite = new ArrayList<CodeableConcept>(); 1631 this.bodySite.add(t); 1632 return t; 1633 } 1634 1635 public Procedure addBodySite(CodeableConcept t) { //3 1636 if (t == null) 1637 return this; 1638 if (this.bodySite == null) 1639 this.bodySite = new ArrayList<CodeableConcept>(); 1640 this.bodySite.add(t); 1641 return this; 1642 } 1643 1644 /** 1645 * @return The first repetition of repeating field {@link #bodySite}, creating it if it does not already exist {3} 1646 */ 1647 public CodeableConcept getBodySiteFirstRep() { 1648 if (getBodySite().isEmpty()) { 1649 addBodySite(); 1650 } 1651 return getBodySite().get(0); 1652 } 1653 1654 /** 1655 * @return {@link #outcome} (The outcome of the procedure - did it resolve the reasons for the procedure being performed?) 1656 */ 1657 public CodeableConcept getOutcome() { 1658 if (this.outcome == null) 1659 if (Configuration.errorOnAutoCreate()) 1660 throw new Error("Attempt to auto-create Procedure.outcome"); 1661 else if (Configuration.doAutoCreate()) 1662 this.outcome = new CodeableConcept(); // cc 1663 return this.outcome; 1664 } 1665 1666 public boolean hasOutcome() { 1667 return this.outcome != null && !this.outcome.isEmpty(); 1668 } 1669 1670 /** 1671 * @param value {@link #outcome} (The outcome of the procedure - did it resolve the reasons for the procedure being performed?) 1672 */ 1673 public Procedure setOutcome(CodeableConcept value) { 1674 this.outcome = value; 1675 return this; 1676 } 1677 1678 /** 1679 * @return {@link #report} (This could be a histology result, pathology report, surgical report, etc.) 1680 */ 1681 public List<Reference> getReport() { 1682 if (this.report == null) 1683 this.report = new ArrayList<Reference>(); 1684 return this.report; 1685 } 1686 1687 /** 1688 * @return Returns a reference to <code>this</code> for easy method chaining 1689 */ 1690 public Procedure setReport(List<Reference> theReport) { 1691 this.report = theReport; 1692 return this; 1693 } 1694 1695 public boolean hasReport() { 1696 if (this.report == null) 1697 return false; 1698 for (Reference item : this.report) 1699 if (!item.isEmpty()) 1700 return true; 1701 return false; 1702 } 1703 1704 public Reference addReport() { //3 1705 Reference t = new Reference(); 1706 if (this.report == null) 1707 this.report = new ArrayList<Reference>(); 1708 this.report.add(t); 1709 return t; 1710 } 1711 1712 public Procedure addReport(Reference t) { //3 1713 if (t == null) 1714 return this; 1715 if (this.report == null) 1716 this.report = new ArrayList<Reference>(); 1717 this.report.add(t); 1718 return this; 1719 } 1720 1721 /** 1722 * @return The first repetition of repeating field {@link #report}, creating it if it does not already exist {3} 1723 */ 1724 public Reference getReportFirstRep() { 1725 if (getReport().isEmpty()) { 1726 addReport(); 1727 } 1728 return getReport().get(0); 1729 } 1730 1731 /** 1732 * @return {@link #complication} (Any complications that occurred during the procedure, or in the immediate post-performance period. These are generally tracked separately from the notes, which will typically describe the procedure itself rather than any 'post procedure' issues.) 1733 */ 1734 public List<CodeableConcept> getComplication() { 1735 if (this.complication == null) 1736 this.complication = new ArrayList<CodeableConcept>(); 1737 return this.complication; 1738 } 1739 1740 /** 1741 * @return Returns a reference to <code>this</code> for easy method chaining 1742 */ 1743 public Procedure setComplication(List<CodeableConcept> theComplication) { 1744 this.complication = theComplication; 1745 return this; 1746 } 1747 1748 public boolean hasComplication() { 1749 if (this.complication == null) 1750 return false; 1751 for (CodeableConcept item : this.complication) 1752 if (!item.isEmpty()) 1753 return true; 1754 return false; 1755 } 1756 1757 public CodeableConcept addComplication() { //3 1758 CodeableConcept t = new CodeableConcept(); 1759 if (this.complication == null) 1760 this.complication = new ArrayList<CodeableConcept>(); 1761 this.complication.add(t); 1762 return t; 1763 } 1764 1765 public Procedure addComplication(CodeableConcept t) { //3 1766 if (t == null) 1767 return this; 1768 if (this.complication == null) 1769 this.complication = new ArrayList<CodeableConcept>(); 1770 this.complication.add(t); 1771 return this; 1772 } 1773 1774 /** 1775 * @return The first repetition of repeating field {@link #complication}, creating it if it does not already exist {3} 1776 */ 1777 public CodeableConcept getComplicationFirstRep() { 1778 if (getComplication().isEmpty()) { 1779 addComplication(); 1780 } 1781 return getComplication().get(0); 1782 } 1783 1784 /** 1785 * @return {@link #complicationDetail} (Any complications that occurred during the procedure, or in the immediate post-performance period.) 1786 */ 1787 public List<Reference> getComplicationDetail() { 1788 if (this.complicationDetail == null) 1789 this.complicationDetail = new ArrayList<Reference>(); 1790 return this.complicationDetail; 1791 } 1792 1793 /** 1794 * @return Returns a reference to <code>this</code> for easy method chaining 1795 */ 1796 public Procedure setComplicationDetail(List<Reference> theComplicationDetail) { 1797 this.complicationDetail = theComplicationDetail; 1798 return this; 1799 } 1800 1801 public boolean hasComplicationDetail() { 1802 if (this.complicationDetail == null) 1803 return false; 1804 for (Reference item : this.complicationDetail) 1805 if (!item.isEmpty()) 1806 return true; 1807 return false; 1808 } 1809 1810 public Reference addComplicationDetail() { //3 1811 Reference t = new Reference(); 1812 if (this.complicationDetail == null) 1813 this.complicationDetail = new ArrayList<Reference>(); 1814 this.complicationDetail.add(t); 1815 return t; 1816 } 1817 1818 public Procedure addComplicationDetail(Reference t) { //3 1819 if (t == null) 1820 return this; 1821 if (this.complicationDetail == null) 1822 this.complicationDetail = new ArrayList<Reference>(); 1823 this.complicationDetail.add(t); 1824 return this; 1825 } 1826 1827 /** 1828 * @return The first repetition of repeating field {@link #complicationDetail}, creating it if it does not already exist {3} 1829 */ 1830 public Reference getComplicationDetailFirstRep() { 1831 if (getComplicationDetail().isEmpty()) { 1832 addComplicationDetail(); 1833 } 1834 return getComplicationDetail().get(0); 1835 } 1836 1837 /** 1838 * @return {@link #followUp} (If the procedure required specific follow up - e.g. removal of sutures. The follow up may be represented as a simple note or could potentially be more complex, in which case the CarePlan resource can be used.) 1839 */ 1840 public List<CodeableConcept> getFollowUp() { 1841 if (this.followUp == null) 1842 this.followUp = new ArrayList<CodeableConcept>(); 1843 return this.followUp; 1844 } 1845 1846 /** 1847 * @return Returns a reference to <code>this</code> for easy method chaining 1848 */ 1849 public Procedure setFollowUp(List<CodeableConcept> theFollowUp) { 1850 this.followUp = theFollowUp; 1851 return this; 1852 } 1853 1854 public boolean hasFollowUp() { 1855 if (this.followUp == null) 1856 return false; 1857 for (CodeableConcept item : this.followUp) 1858 if (!item.isEmpty()) 1859 return true; 1860 return false; 1861 } 1862 1863 public CodeableConcept addFollowUp() { //3 1864 CodeableConcept t = new CodeableConcept(); 1865 if (this.followUp == null) 1866 this.followUp = new ArrayList<CodeableConcept>(); 1867 this.followUp.add(t); 1868 return t; 1869 } 1870 1871 public Procedure addFollowUp(CodeableConcept t) { //3 1872 if (t == null) 1873 return this; 1874 if (this.followUp == null) 1875 this.followUp = new ArrayList<CodeableConcept>(); 1876 this.followUp.add(t); 1877 return this; 1878 } 1879 1880 /** 1881 * @return The first repetition of repeating field {@link #followUp}, creating it if it does not already exist {3} 1882 */ 1883 public CodeableConcept getFollowUpFirstRep() { 1884 if (getFollowUp().isEmpty()) { 1885 addFollowUp(); 1886 } 1887 return getFollowUp().get(0); 1888 } 1889 1890 /** 1891 * @return {@link #note} (Any other notes and comments about the procedure.) 1892 */ 1893 public List<Annotation> getNote() { 1894 if (this.note == null) 1895 this.note = new ArrayList<Annotation>(); 1896 return this.note; 1897 } 1898 1899 /** 1900 * @return Returns a reference to <code>this</code> for easy method chaining 1901 */ 1902 public Procedure setNote(List<Annotation> theNote) { 1903 this.note = theNote; 1904 return this; 1905 } 1906 1907 public boolean hasNote() { 1908 if (this.note == null) 1909 return false; 1910 for (Annotation item : this.note) 1911 if (!item.isEmpty()) 1912 return true; 1913 return false; 1914 } 1915 1916 public Annotation addNote() { //3 1917 Annotation t = new Annotation(); 1918 if (this.note == null) 1919 this.note = new ArrayList<Annotation>(); 1920 this.note.add(t); 1921 return t; 1922 } 1923 1924 public Procedure addNote(Annotation t) { //3 1925 if (t == null) 1926 return this; 1927 if (this.note == null) 1928 this.note = new ArrayList<Annotation>(); 1929 this.note.add(t); 1930 return this; 1931 } 1932 1933 /** 1934 * @return The first repetition of repeating field {@link #note}, creating it if it does not already exist {3} 1935 */ 1936 public Annotation getNoteFirstRep() { 1937 if (getNote().isEmpty()) { 1938 addNote(); 1939 } 1940 return getNote().get(0); 1941 } 1942 1943 /** 1944 * @return {@link #focalDevice} (A device that is implanted, removed or otherwise manipulated (calibration, battery replacement, fitting a prosthesis, attaching a wound-vac, etc.) as a focal portion of the Procedure.) 1945 */ 1946 public List<ProcedureFocalDeviceComponent> getFocalDevice() { 1947 if (this.focalDevice == null) 1948 this.focalDevice = new ArrayList<ProcedureFocalDeviceComponent>(); 1949 return this.focalDevice; 1950 } 1951 1952 /** 1953 * @return Returns a reference to <code>this</code> for easy method chaining 1954 */ 1955 public Procedure setFocalDevice(List<ProcedureFocalDeviceComponent> theFocalDevice) { 1956 this.focalDevice = theFocalDevice; 1957 return this; 1958 } 1959 1960 public boolean hasFocalDevice() { 1961 if (this.focalDevice == null) 1962 return false; 1963 for (ProcedureFocalDeviceComponent item : this.focalDevice) 1964 if (!item.isEmpty()) 1965 return true; 1966 return false; 1967 } 1968 1969 public ProcedureFocalDeviceComponent addFocalDevice() { //3 1970 ProcedureFocalDeviceComponent t = new ProcedureFocalDeviceComponent(); 1971 if (this.focalDevice == null) 1972 this.focalDevice = new ArrayList<ProcedureFocalDeviceComponent>(); 1973 this.focalDevice.add(t); 1974 return t; 1975 } 1976 1977 public Procedure addFocalDevice(ProcedureFocalDeviceComponent t) { //3 1978 if (t == null) 1979 return this; 1980 if (this.focalDevice == null) 1981 this.focalDevice = new ArrayList<ProcedureFocalDeviceComponent>(); 1982 this.focalDevice.add(t); 1983 return this; 1984 } 1985 1986 /** 1987 * @return The first repetition of repeating field {@link #focalDevice}, creating it if it does not already exist {3} 1988 */ 1989 public ProcedureFocalDeviceComponent getFocalDeviceFirstRep() { 1990 if (getFocalDevice().isEmpty()) { 1991 addFocalDevice(); 1992 } 1993 return getFocalDevice().get(0); 1994 } 1995 1996 /** 1997 * @return {@link #used} (Identifies medications, devices and any other substance used as part of the procedure.) 1998 */ 1999 public List<CodeableReference> getUsed() { 2000 if (this.used == null) 2001 this.used = new ArrayList<CodeableReference>(); 2002 return this.used; 2003 } 2004 2005 /** 2006 * @return Returns a reference to <code>this</code> for easy method chaining 2007 */ 2008 public Procedure setUsed(List<CodeableReference> theUsed) { 2009 this.used = theUsed; 2010 return this; 2011 } 2012 2013 public boolean hasUsed() { 2014 if (this.used == null) 2015 return false; 2016 for (CodeableReference item : this.used) 2017 if (!item.isEmpty()) 2018 return true; 2019 return false; 2020 } 2021 2022 public CodeableReference addUsed() { //3 2023 CodeableReference t = new CodeableReference(); 2024 if (this.used == null) 2025 this.used = new ArrayList<CodeableReference>(); 2026 this.used.add(t); 2027 return t; 2028 } 2029 2030 public Procedure addUsed(CodeableReference t) { //3 2031 if (t == null) 2032 return this; 2033 if (this.used == null) 2034 this.used = new ArrayList<CodeableReference>(); 2035 this.used.add(t); 2036 return this; 2037 } 2038 2039 /** 2040 * @return The first repetition of repeating field {@link #used}, creating it if it does not already exist {3} 2041 */ 2042 public CodeableReference getUsedFirstRep() { 2043 if (getUsed().isEmpty()) { 2044 addUsed(); 2045 } 2046 return getUsed().get(0); 2047 } 2048 2049 protected void listChildren(List<Property> children) { 2050 super.listChildren(children); 2051 children.add(new Property("identifier", "Identifier", "Business identifiers assigned to this procedure by the performer or other systems which remain constant as the resource is updated and is propagated from server to server.", 0, java.lang.Integer.MAX_VALUE, identifier)); 2052 children.add(new Property("instantiatesCanonical", "canonical(PlanDefinition|ActivityDefinition|Measure|OperationDefinition|Questionnaire)", "The URL pointing to a FHIR-defined protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure.", 0, java.lang.Integer.MAX_VALUE, instantiatesCanonical)); 2053 children.add(new Property("instantiatesUri", "uri", "The URL pointing to an externally maintained protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure.", 0, java.lang.Integer.MAX_VALUE, instantiatesUri)); 2054 children.add(new Property("basedOn", "Reference(CarePlan|ServiceRequest)", "A reference to a resource that contains details of the request for this procedure.", 0, java.lang.Integer.MAX_VALUE, basedOn)); 2055 children.add(new Property("partOf", "Reference(Procedure|Observation|MedicationAdministration)", "A larger event of which this particular procedure is a component or step.", 0, java.lang.Integer.MAX_VALUE, partOf)); 2056 children.add(new Property("status", "code", "A code specifying the state of the procedure. Generally, this will be the in-progress or completed state.", 0, 1, status)); 2057 children.add(new Property("statusReason", "CodeableConcept", "Captures the reason for the current state of the procedure.", 0, 1, statusReason)); 2058 children.add(new Property("category", "CodeableConcept", "A code that classifies the procedure for searching, sorting and display purposes (e.g. \"Surgical Procedure\").", 0, java.lang.Integer.MAX_VALUE, category)); 2059 children.add(new Property("code", "CodeableConcept", "The specific procedure that is performed. Use text if the exact nature of the procedure cannot be coded (e.g. \"Laparoscopic Appendectomy\").", 0, 1, code)); 2060 children.add(new Property("subject", "Reference(Patient|Group)", "The person, animal or group on which the procedure was performed.", 0, 1, subject)); 2061 children.add(new Property("encounter", "Reference(Encounter)", "The Encounter during which this Procedure was created or performed or to which the creation of this record is tightly associated.", 0, 1, encounter)); 2062 children.add(new Property("occurrence[x]", "dateTime|Period|string|Age|Range|Timing", "Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.", 0, 1, occurrence)); 2063 children.add(new Property("recorded", "dateTime", "The date the occurrence of the procedure was first captured in the record - potentially significantly after the occurrence of the event.", 0, 1, recorded)); 2064 children.add(new Property("recorder", "Reference(Patient|RelatedPerson|Practitioner|PractitionerRole)", "Individual who recorded the record and takes responsibility for its content.", 0, 1, recorder)); 2065 children.add(new Property("reported[x]", "boolean|Reference(Patient|RelatedPerson|Practitioner|PractitionerRole|Organization)", "Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record. It may also indicate the source of the report.", 0, 1, reported)); 2066 children.add(new Property("performer", "", "Limited to \"real\" people rather than equipment.", 0, java.lang.Integer.MAX_VALUE, performer)); 2067 children.add(new Property("location", "Reference(Location)", "The location where the procedure actually happened. E.g. a newborn at home, a tracheostomy at a restaurant.", 0, 1, location)); 2068 children.add(new Property("reason", "CodeableReference(Condition|Observation|Procedure|DiagnosticReport|DocumentReference)", "The coded reason or reference why the procedure was performed. This may be a coded entity of some type, or may simply be present as text, or may be a reference to one of several resources that justify the procedure.", 0, java.lang.Integer.MAX_VALUE, reason)); 2069 children.add(new Property("bodySite", "CodeableConcept", "Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion.", 0, java.lang.Integer.MAX_VALUE, bodySite)); 2070 children.add(new Property("outcome", "CodeableConcept", "The outcome of the procedure - did it resolve the reasons for the procedure being performed?", 0, 1, outcome)); 2071 children.add(new Property("report", "Reference(DiagnosticReport|DocumentReference|Composition)", "This could be a histology result, pathology report, surgical report, etc.", 0, java.lang.Integer.MAX_VALUE, report)); 2072 children.add(new Property("complication", "CodeableConcept", "Any complications that occurred during the procedure, or in the immediate post-performance period. These are generally tracked separately from the notes, which will typically describe the procedure itself rather than any 'post procedure' issues.", 0, java.lang.Integer.MAX_VALUE, complication)); 2073 children.add(new Property("complicationDetail", "Reference(Condition)", "Any complications that occurred during the procedure, or in the immediate post-performance period.", 0, java.lang.Integer.MAX_VALUE, complicationDetail)); 2074 children.add(new Property("followUp", "CodeableConcept", "If the procedure required specific follow up - e.g. removal of sutures. The follow up may be represented as a simple note or could potentially be more complex, in which case the CarePlan resource can be used.", 0, java.lang.Integer.MAX_VALUE, followUp)); 2075 children.add(new Property("note", "Annotation", "Any other notes and comments about the procedure.", 0, java.lang.Integer.MAX_VALUE, note)); 2076 children.add(new Property("focalDevice", "", "A device that is implanted, removed or otherwise manipulated (calibration, battery replacement, fitting a prosthesis, attaching a wound-vac, etc.) as a focal portion of the Procedure.", 0, java.lang.Integer.MAX_VALUE, focalDevice)); 2077 children.add(new Property("used", "CodeableReference(Device|Medication|Substance|BiologicallyDerivedProduct)", "Identifies medications, devices and any other substance used as part of the procedure.", 0, java.lang.Integer.MAX_VALUE, used)); 2078 } 2079 2080 @Override 2081 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 2082 switch (_hash) { 2083 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Business identifiers assigned to this procedure by the performer or other systems which remain constant as the resource is updated and is propagated from server to server.", 0, java.lang.Integer.MAX_VALUE, identifier); 2084 case 8911915: /*instantiatesCanonical*/ return new Property("instantiatesCanonical", "canonical(PlanDefinition|ActivityDefinition|Measure|OperationDefinition|Questionnaire)", "The URL pointing to a FHIR-defined protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure.", 0, java.lang.Integer.MAX_VALUE, instantiatesCanonical); 2085 case -1926393373: /*instantiatesUri*/ return new Property("instantiatesUri", "uri", "The URL pointing to an externally maintained protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure.", 0, java.lang.Integer.MAX_VALUE, instantiatesUri); 2086 case -332612366: /*basedOn*/ return new Property("basedOn", "Reference(CarePlan|ServiceRequest)", "A reference to a resource that contains details of the request for this procedure.", 0, java.lang.Integer.MAX_VALUE, basedOn); 2087 case -995410646: /*partOf*/ return new Property("partOf", "Reference(Procedure|Observation|MedicationAdministration)", "A larger event of which this particular procedure is a component or step.", 0, java.lang.Integer.MAX_VALUE, partOf); 2088 case -892481550: /*status*/ return new Property("status", "code", "A code specifying the state of the procedure. Generally, this will be the in-progress or completed state.", 0, 1, status); 2089 case 2051346646: /*statusReason*/ return new Property("statusReason", "CodeableConcept", "Captures the reason for the current state of the procedure.", 0, 1, statusReason); 2090 case 50511102: /*category*/ return new Property("category", "CodeableConcept", "A code that classifies the procedure for searching, sorting and display purposes (e.g. \"Surgical Procedure\").", 0, java.lang.Integer.MAX_VALUE, category); 2091 case 3059181: /*code*/ return new Property("code", "CodeableConcept", "The specific procedure that is performed. Use text if the exact nature of the procedure cannot be coded (e.g. \"Laparoscopic Appendectomy\").", 0, 1, code); 2092 case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Group)", "The person, animal or group on which the procedure was performed.", 0, 1, subject); 2093 case 1524132147: /*encounter*/ return new Property("encounter", "Reference(Encounter)", "The Encounter during which this Procedure was created or performed or to which the creation of this record is tightly associated.", 0, 1, encounter); 2094 case -2022646513: /*occurrence[x]*/ return new Property("occurrence[x]", "dateTime|Period|string|Age|Range|Timing", "Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.", 0, 1, occurrence); 2095 case 1687874001: /*occurrence*/ return new Property("occurrence[x]", "dateTime|Period|string|Age|Range|Timing", "Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.", 0, 1, occurrence); 2096 case -298443636: /*occurrenceDateTime*/ return new Property("occurrence[x]", "dateTime", "Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.", 0, 1, occurrence); 2097 case 1397156594: /*occurrencePeriod*/ return new Property("occurrence[x]", "Period", "Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.", 0, 1, occurrence); 2098 case 1496896834: /*occurrenceString*/ return new Property("occurrence[x]", "string", "Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.", 0, 1, occurrence); 2099 case -2022672018: /*occurrenceAge*/ return new Property("occurrence[x]", "Age", "Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.", 0, 1, occurrence); 2100 case 1847908844: /*occurrenceRange*/ return new Property("occurrence[x]", "Range", "Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.", 0, 1, occurrence); 2101 case 1515218299: /*occurrenceTiming*/ return new Property("occurrence[x]", "Timing", "Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.", 0, 1, occurrence); 2102 case -799233872: /*recorded*/ return new Property("recorded", "dateTime", "The date the occurrence of the procedure was first captured in the record - potentially significantly after the occurrence of the event.", 0, 1, recorded); 2103 case -799233858: /*recorder*/ return new Property("recorder", "Reference(Patient|RelatedPerson|Practitioner|PractitionerRole)", "Individual who recorded the record and takes responsibility for its content.", 0, 1, recorder); 2104 case -241505587: /*reported[x]*/ return new Property("reported[x]", "boolean|Reference(Patient|RelatedPerson|Practitioner|PractitionerRole|Organization)", "Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record. It may also indicate the source of the report.", 0, 1, reported); 2105 case -427039533: /*reported*/ return new Property("reported[x]", "boolean|Reference(Patient|RelatedPerson|Practitioner|PractitionerRole|Organization)", "Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record. It may also indicate the source of the report.", 0, 1, reported); 2106 case 1219992533: /*reportedBoolean*/ return new Property("reported[x]", "boolean", "Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record. It may also indicate the source of the report.", 0, 1, reported); 2107 case 1198143416: /*reportedReference*/ return new Property("reported[x]", "Reference(Patient|RelatedPerson|Practitioner|PractitionerRole|Organization)", "Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record. It may also indicate the source of the report.", 0, 1, reported); 2108 case 481140686: /*performer*/ return new Property("performer", "", "Limited to \"real\" people rather than equipment.", 0, java.lang.Integer.MAX_VALUE, performer); 2109 case 1901043637: /*location*/ return new Property("location", "Reference(Location)", "The location where the procedure actually happened. E.g. a newborn at home, a tracheostomy at a restaurant.", 0, 1, location); 2110 case -934964668: /*reason*/ return new Property("reason", "CodeableReference(Condition|Observation|Procedure|DiagnosticReport|DocumentReference)", "The coded reason or reference why the procedure was performed. This may be a coded entity of some type, or may simply be present as text, or may be a reference to one of several resources that justify the procedure.", 0, java.lang.Integer.MAX_VALUE, reason); 2111 case 1702620169: /*bodySite*/ return new Property("bodySite", "CodeableConcept", "Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion.", 0, java.lang.Integer.MAX_VALUE, bodySite); 2112 case -1106507950: /*outcome*/ return new Property("outcome", "CodeableConcept", "The outcome of the procedure - did it resolve the reasons for the procedure being performed?", 0, 1, outcome); 2113 case -934521548: /*report*/ return new Property("report", "Reference(DiagnosticReport|DocumentReference|Composition)", "This could be a histology result, pathology report, surgical report, etc.", 0, java.lang.Integer.MAX_VALUE, report); 2114 case -1644401602: /*complication*/ return new Property("complication", "CodeableConcept", "Any complications that occurred during the procedure, or in the immediate post-performance period. These are generally tracked separately from the notes, which will typically describe the procedure itself rather than any 'post procedure' issues.", 0, java.lang.Integer.MAX_VALUE, complication); 2115 case -1685272017: /*complicationDetail*/ return new Property("complicationDetail", "Reference(Condition)", "Any complications that occurred during the procedure, or in the immediate post-performance period.", 0, java.lang.Integer.MAX_VALUE, complicationDetail); 2116 case 301801004: /*followUp*/ return new Property("followUp", "CodeableConcept", "If the procedure required specific follow up - e.g. removal of sutures. The follow up may be represented as a simple note or could potentially be more complex, in which case the CarePlan resource can be used.", 0, java.lang.Integer.MAX_VALUE, followUp); 2117 case 3387378: /*note*/ return new Property("note", "Annotation", "Any other notes and comments about the procedure.", 0, java.lang.Integer.MAX_VALUE, note); 2118 case -1129235173: /*focalDevice*/ return new Property("focalDevice", "", "A device that is implanted, removed or otherwise manipulated (calibration, battery replacement, fitting a prosthesis, attaching a wound-vac, etc.) as a focal portion of the Procedure.", 0, java.lang.Integer.MAX_VALUE, focalDevice); 2119 case 3599293: /*used*/ return new Property("used", "CodeableReference(Device|Medication|Substance|BiologicallyDerivedProduct)", "Identifies medications, devices and any other substance used as part of the procedure.", 0, java.lang.Integer.MAX_VALUE, used); 2120 default: return super.getNamedProperty(_hash, _name, _checkValid); 2121 } 2122 2123 } 2124 2125 @Override 2126 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 2127 switch (hash) { 2128 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 2129 case 8911915: /*instantiatesCanonical*/ return this.instantiatesCanonical == null ? new Base[0] : this.instantiatesCanonical.toArray(new Base[this.instantiatesCanonical.size()]); // CanonicalType 2130 case -1926393373: /*instantiatesUri*/ return this.instantiatesUri == null ? new Base[0] : this.instantiatesUri.toArray(new Base[this.instantiatesUri.size()]); // UriType 2131 case -332612366: /*basedOn*/ return this.basedOn == null ? new Base[0] : this.basedOn.toArray(new Base[this.basedOn.size()]); // Reference 2132 case -995410646: /*partOf*/ return this.partOf == null ? new Base[0] : this.partOf.toArray(new Base[this.partOf.size()]); // Reference 2133 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<EventStatus> 2134 case 2051346646: /*statusReason*/ return this.statusReason == null ? new Base[0] : new Base[] {this.statusReason}; // CodeableConcept 2135 case 50511102: /*category*/ return this.category == null ? new Base[0] : this.category.toArray(new Base[this.category.size()]); // CodeableConcept 2136 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept 2137 case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference 2138 case 1524132147: /*encounter*/ return this.encounter == null ? new Base[0] : new Base[] {this.encounter}; // Reference 2139 case 1687874001: /*occurrence*/ return this.occurrence == null ? new Base[0] : new Base[] {this.occurrence}; // DataType 2140 case -799233872: /*recorded*/ return this.recorded == null ? new Base[0] : new Base[] {this.recorded}; // DateTimeType 2141 case -799233858: /*recorder*/ return this.recorder == null ? new Base[0] : new Base[] {this.recorder}; // Reference 2142 case -427039533: /*reported*/ return this.reported == null ? new Base[0] : new Base[] {this.reported}; // DataType 2143 case 481140686: /*performer*/ return this.performer == null ? new Base[0] : this.performer.toArray(new Base[this.performer.size()]); // ProcedurePerformerComponent 2144 case 1901043637: /*location*/ return this.location == null ? new Base[0] : new Base[] {this.location}; // Reference 2145 case -934964668: /*reason*/ return this.reason == null ? new Base[0] : this.reason.toArray(new Base[this.reason.size()]); // CodeableReference 2146 case 1702620169: /*bodySite*/ return this.bodySite == null ? new Base[0] : this.bodySite.toArray(new Base[this.bodySite.size()]); // CodeableConcept 2147 case -1106507950: /*outcome*/ return this.outcome == null ? new Base[0] : new Base[] {this.outcome}; // CodeableConcept 2148 case -934521548: /*report*/ return this.report == null ? new Base[0] : this.report.toArray(new Base[this.report.size()]); // Reference 2149 case -1644401602: /*complication*/ return this.complication == null ? new Base[0] : this.complication.toArray(new Base[this.complication.size()]); // CodeableConcept 2150 case -1685272017: /*complicationDetail*/ return this.complicationDetail == null ? new Base[0] : this.complicationDetail.toArray(new Base[this.complicationDetail.size()]); // Reference 2151 case 301801004: /*followUp*/ return this.followUp == null ? new Base[0] : this.followUp.toArray(new Base[this.followUp.size()]); // CodeableConcept 2152 case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation 2153 case -1129235173: /*focalDevice*/ return this.focalDevice == null ? new Base[0] : this.focalDevice.toArray(new Base[this.focalDevice.size()]); // ProcedureFocalDeviceComponent 2154 case 3599293: /*used*/ return this.used == null ? new Base[0] : this.used.toArray(new Base[this.used.size()]); // CodeableReference 2155 default: return super.getProperty(hash, name, checkValid); 2156 } 2157 2158 } 2159 2160 @Override 2161 public Base setProperty(int hash, String name, Base value) throws FHIRException { 2162 switch (hash) { 2163 case -1618432855: // identifier 2164 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier 2165 return value; 2166 case 8911915: // instantiatesCanonical 2167 this.getInstantiatesCanonical().add(TypeConvertor.castToCanonical(value)); // CanonicalType 2168 return value; 2169 case -1926393373: // instantiatesUri 2170 this.getInstantiatesUri().add(TypeConvertor.castToUri(value)); // UriType 2171 return value; 2172 case -332612366: // basedOn 2173 this.getBasedOn().add(TypeConvertor.castToReference(value)); // Reference 2174 return value; 2175 case -995410646: // partOf 2176 this.getPartOf().add(TypeConvertor.castToReference(value)); // Reference 2177 return value; 2178 case -892481550: // status 2179 value = new EventStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 2180 this.status = (Enumeration) value; // Enumeration<EventStatus> 2181 return value; 2182 case 2051346646: // statusReason 2183 this.statusReason = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2184 return value; 2185 case 50511102: // category 2186 this.getCategory().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 2187 return value; 2188 case 3059181: // code 2189 this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2190 return value; 2191 case -1867885268: // subject 2192 this.subject = TypeConvertor.castToReference(value); // Reference 2193 return value; 2194 case 1524132147: // encounter 2195 this.encounter = TypeConvertor.castToReference(value); // Reference 2196 return value; 2197 case 1687874001: // occurrence 2198 this.occurrence = TypeConvertor.castToType(value); // DataType 2199 return value; 2200 case -799233872: // recorded 2201 this.recorded = TypeConvertor.castToDateTime(value); // DateTimeType 2202 return value; 2203 case -799233858: // recorder 2204 this.recorder = TypeConvertor.castToReference(value); // Reference 2205 return value; 2206 case -427039533: // reported 2207 this.reported = TypeConvertor.castToType(value); // DataType 2208 return value; 2209 case 481140686: // performer 2210 this.getPerformer().add((ProcedurePerformerComponent) value); // ProcedurePerformerComponent 2211 return value; 2212 case 1901043637: // location 2213 this.location = TypeConvertor.castToReference(value); // Reference 2214 return value; 2215 case -934964668: // reason 2216 this.getReason().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference 2217 return value; 2218 case 1702620169: // bodySite 2219 this.getBodySite().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 2220 return value; 2221 case -1106507950: // outcome 2222 this.outcome = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2223 return value; 2224 case -934521548: // report 2225 this.getReport().add(TypeConvertor.castToReference(value)); // Reference 2226 return value; 2227 case -1644401602: // complication 2228 this.getComplication().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 2229 return value; 2230 case -1685272017: // complicationDetail 2231 this.getComplicationDetail().add(TypeConvertor.castToReference(value)); // Reference 2232 return value; 2233 case 301801004: // followUp 2234 this.getFollowUp().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 2235 return value; 2236 case 3387378: // note 2237 this.getNote().add(TypeConvertor.castToAnnotation(value)); // Annotation 2238 return value; 2239 case -1129235173: // focalDevice 2240 this.getFocalDevice().add((ProcedureFocalDeviceComponent) value); // ProcedureFocalDeviceComponent 2241 return value; 2242 case 3599293: // used 2243 this.getUsed().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference 2244 return value; 2245 default: return super.setProperty(hash, name, value); 2246 } 2247 2248 } 2249 2250 @Override 2251 public Base setProperty(String name, Base value) throws FHIRException { 2252 if (name.equals("identifier")) { 2253 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); 2254 } else if (name.equals("instantiatesCanonical")) { 2255 this.getInstantiatesCanonical().add(TypeConvertor.castToCanonical(value)); 2256 } else if (name.equals("instantiatesUri")) { 2257 this.getInstantiatesUri().add(TypeConvertor.castToUri(value)); 2258 } else if (name.equals("basedOn")) { 2259 this.getBasedOn().add(TypeConvertor.castToReference(value)); 2260 } else if (name.equals("partOf")) { 2261 this.getPartOf().add(TypeConvertor.castToReference(value)); 2262 } else if (name.equals("status")) { 2263 value = new EventStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 2264 this.status = (Enumeration) value; // Enumeration<EventStatus> 2265 } else if (name.equals("statusReason")) { 2266 this.statusReason = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2267 } else if (name.equals("category")) { 2268 this.getCategory().add(TypeConvertor.castToCodeableConcept(value)); 2269 } else if (name.equals("code")) { 2270 this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2271 } else if (name.equals("subject")) { 2272 this.subject = TypeConvertor.castToReference(value); // Reference 2273 } else if (name.equals("encounter")) { 2274 this.encounter = TypeConvertor.castToReference(value); // Reference 2275 } else if (name.equals("occurrence[x]")) { 2276 this.occurrence = TypeConvertor.castToType(value); // DataType 2277 } else if (name.equals("recorded")) { 2278 this.recorded = TypeConvertor.castToDateTime(value); // DateTimeType 2279 } else if (name.equals("recorder")) { 2280 this.recorder = TypeConvertor.castToReference(value); // Reference 2281 } else if (name.equals("reported[x]")) { 2282 this.reported = TypeConvertor.castToType(value); // DataType 2283 } else if (name.equals("performer")) { 2284 this.getPerformer().add((ProcedurePerformerComponent) value); 2285 } else if (name.equals("location")) { 2286 this.location = TypeConvertor.castToReference(value); // Reference 2287 } else if (name.equals("reason")) { 2288 this.getReason().add(TypeConvertor.castToCodeableReference(value)); 2289 } else if (name.equals("bodySite")) { 2290 this.getBodySite().add(TypeConvertor.castToCodeableConcept(value)); 2291 } else if (name.equals("outcome")) { 2292 this.outcome = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2293 } else if (name.equals("report")) { 2294 this.getReport().add(TypeConvertor.castToReference(value)); 2295 } else if (name.equals("complication")) { 2296 this.getComplication().add(TypeConvertor.castToCodeableConcept(value)); 2297 } else if (name.equals("complicationDetail")) { 2298 this.getComplicationDetail().add(TypeConvertor.castToReference(value)); 2299 } else if (name.equals("followUp")) { 2300 this.getFollowUp().add(TypeConvertor.castToCodeableConcept(value)); 2301 } else if (name.equals("note")) { 2302 this.getNote().add(TypeConvertor.castToAnnotation(value)); 2303 } else if (name.equals("focalDevice")) { 2304 this.getFocalDevice().add((ProcedureFocalDeviceComponent) value); 2305 } else if (name.equals("used")) { 2306 this.getUsed().add(TypeConvertor.castToCodeableReference(value)); 2307 } else 2308 return super.setProperty(name, value); 2309 return value; 2310 } 2311 2312 @Override 2313 public Base makeProperty(int hash, String name) throws FHIRException { 2314 switch (hash) { 2315 case -1618432855: return addIdentifier(); 2316 case 8911915: return addInstantiatesCanonicalElement(); 2317 case -1926393373: return addInstantiatesUriElement(); 2318 case -332612366: return addBasedOn(); 2319 case -995410646: return addPartOf(); 2320 case -892481550: return getStatusElement(); 2321 case 2051346646: return getStatusReason(); 2322 case 50511102: return addCategory(); 2323 case 3059181: return getCode(); 2324 case -1867885268: return getSubject(); 2325 case 1524132147: return getEncounter(); 2326 case -2022646513: return getOccurrence(); 2327 case 1687874001: return getOccurrence(); 2328 case -799233872: return getRecordedElement(); 2329 case -799233858: return getRecorder(); 2330 case -241505587: return getReported(); 2331 case -427039533: return getReported(); 2332 case 481140686: return addPerformer(); 2333 case 1901043637: return getLocation(); 2334 case -934964668: return addReason(); 2335 case 1702620169: return addBodySite(); 2336 case -1106507950: return getOutcome(); 2337 case -934521548: return addReport(); 2338 case -1644401602: return addComplication(); 2339 case -1685272017: return addComplicationDetail(); 2340 case 301801004: return addFollowUp(); 2341 case 3387378: return addNote(); 2342 case -1129235173: return addFocalDevice(); 2343 case 3599293: return addUsed(); 2344 default: return super.makeProperty(hash, name); 2345 } 2346 2347 } 2348 2349 @Override 2350 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 2351 switch (hash) { 2352 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 2353 case 8911915: /*instantiatesCanonical*/ return new String[] {"canonical"}; 2354 case -1926393373: /*instantiatesUri*/ return new String[] {"uri"}; 2355 case -332612366: /*basedOn*/ return new String[] {"Reference"}; 2356 case -995410646: /*partOf*/ return new String[] {"Reference"}; 2357 case -892481550: /*status*/ return new String[] {"code"}; 2358 case 2051346646: /*statusReason*/ return new String[] {"CodeableConcept"}; 2359 case 50511102: /*category*/ return new String[] {"CodeableConcept"}; 2360 case 3059181: /*code*/ return new String[] {"CodeableConcept"}; 2361 case -1867885268: /*subject*/ return new String[] {"Reference"}; 2362 case 1524132147: /*encounter*/ return new String[] {"Reference"}; 2363 case 1687874001: /*occurrence*/ return new String[] {"dateTime", "Period", "string", "Age", "Range", "Timing"}; 2364 case -799233872: /*recorded*/ return new String[] {"dateTime"}; 2365 case -799233858: /*recorder*/ return new String[] {"Reference"}; 2366 case -427039533: /*reported*/ return new String[] {"boolean", "Reference"}; 2367 case 481140686: /*performer*/ return new String[] {}; 2368 case 1901043637: /*location*/ return new String[] {"Reference"}; 2369 case -934964668: /*reason*/ return new String[] {"CodeableReference"}; 2370 case 1702620169: /*bodySite*/ return new String[] {"CodeableConcept"}; 2371 case -1106507950: /*outcome*/ return new String[] {"CodeableConcept"}; 2372 case -934521548: /*report*/ return new String[] {"Reference"}; 2373 case -1644401602: /*complication*/ return new String[] {"CodeableConcept"}; 2374 case -1685272017: /*complicationDetail*/ return new String[] {"Reference"}; 2375 case 301801004: /*followUp*/ return new String[] {"CodeableConcept"}; 2376 case 3387378: /*note*/ return new String[] {"Annotation"}; 2377 case -1129235173: /*focalDevice*/ return new String[] {}; 2378 case 3599293: /*used*/ return new String[] {"CodeableReference"}; 2379 default: return super.getTypesForProperty(hash, name); 2380 } 2381 2382 } 2383 2384 @Override 2385 public Base addChild(String name) throws FHIRException { 2386 if (name.equals("identifier")) { 2387 return addIdentifier(); 2388 } 2389 else if (name.equals("instantiatesCanonical")) { 2390 throw new FHIRException("Cannot call addChild on a primitive type Procedure.instantiatesCanonical"); 2391 } 2392 else if (name.equals("instantiatesUri")) { 2393 throw new FHIRException("Cannot call addChild on a primitive type Procedure.instantiatesUri"); 2394 } 2395 else if (name.equals("basedOn")) { 2396 return addBasedOn(); 2397 } 2398 else if (name.equals("partOf")) { 2399 return addPartOf(); 2400 } 2401 else if (name.equals("status")) { 2402 throw new FHIRException("Cannot call addChild on a primitive type Procedure.status"); 2403 } 2404 else if (name.equals("statusReason")) { 2405 this.statusReason = new CodeableConcept(); 2406 return this.statusReason; 2407 } 2408 else if (name.equals("category")) { 2409 return addCategory(); 2410 } 2411 else if (name.equals("code")) { 2412 this.code = new CodeableConcept(); 2413 return this.code; 2414 } 2415 else if (name.equals("subject")) { 2416 this.subject = new Reference(); 2417 return this.subject; 2418 } 2419 else if (name.equals("encounter")) { 2420 this.encounter = new Reference(); 2421 return this.encounter; 2422 } 2423 else if (name.equals("occurrenceDateTime")) { 2424 this.occurrence = new DateTimeType(); 2425 return this.occurrence; 2426 } 2427 else if (name.equals("occurrencePeriod")) { 2428 this.occurrence = new Period(); 2429 return this.occurrence; 2430 } 2431 else if (name.equals("occurrenceString")) { 2432 this.occurrence = new StringType(); 2433 return this.occurrence; 2434 } 2435 else if (name.equals("occurrenceAge")) { 2436 this.occurrence = new Age(); 2437 return this.occurrence; 2438 } 2439 else if (name.equals("occurrenceRange")) { 2440 this.occurrence = new Range(); 2441 return this.occurrence; 2442 } 2443 else if (name.equals("occurrenceTiming")) { 2444 this.occurrence = new Timing(); 2445 return this.occurrence; 2446 } 2447 else if (name.equals("recorded")) { 2448 throw new FHIRException("Cannot call addChild on a primitive type Procedure.recorded"); 2449 } 2450 else if (name.equals("recorder")) { 2451 this.recorder = new Reference(); 2452 return this.recorder; 2453 } 2454 else if (name.equals("reportedBoolean")) { 2455 this.reported = new BooleanType(); 2456 return this.reported; 2457 } 2458 else if (name.equals("reportedReference")) { 2459 this.reported = new Reference(); 2460 return this.reported; 2461 } 2462 else if (name.equals("performer")) { 2463 return addPerformer(); 2464 } 2465 else if (name.equals("location")) { 2466 this.location = new Reference(); 2467 return this.location; 2468 } 2469 else if (name.equals("reason")) { 2470 return addReason(); 2471 } 2472 else if (name.equals("bodySite")) { 2473 return addBodySite(); 2474 } 2475 else if (name.equals("outcome")) { 2476 this.outcome = new CodeableConcept(); 2477 return this.outcome; 2478 } 2479 else if (name.equals("report")) { 2480 return addReport(); 2481 } 2482 else if (name.equals("complication")) { 2483 return addComplication(); 2484 } 2485 else if (name.equals("complicationDetail")) { 2486 return addComplicationDetail(); 2487 } 2488 else if (name.equals("followUp")) { 2489 return addFollowUp(); 2490 } 2491 else if (name.equals("note")) { 2492 return addNote(); 2493 } 2494 else if (name.equals("focalDevice")) { 2495 return addFocalDevice(); 2496 } 2497 else if (name.equals("used")) { 2498 return addUsed(); 2499 } 2500 else 2501 return super.addChild(name); 2502 } 2503 2504 public String fhirType() { 2505 return "Procedure"; 2506 2507 } 2508 2509 public Procedure copy() { 2510 Procedure dst = new Procedure(); 2511 copyValues(dst); 2512 return dst; 2513 } 2514 2515 public void copyValues(Procedure dst) { 2516 super.copyValues(dst); 2517 if (identifier != null) { 2518 dst.identifier = new ArrayList<Identifier>(); 2519 for (Identifier i : identifier) 2520 dst.identifier.add(i.copy()); 2521 }; 2522 if (instantiatesCanonical != null) { 2523 dst.instantiatesCanonical = new ArrayList<CanonicalType>(); 2524 for (CanonicalType i : instantiatesCanonical) 2525 dst.instantiatesCanonical.add(i.copy()); 2526 }; 2527 if (instantiatesUri != null) { 2528 dst.instantiatesUri = new ArrayList<UriType>(); 2529 for (UriType i : instantiatesUri) 2530 dst.instantiatesUri.add(i.copy()); 2531 }; 2532 if (basedOn != null) { 2533 dst.basedOn = new ArrayList<Reference>(); 2534 for (Reference i : basedOn) 2535 dst.basedOn.add(i.copy()); 2536 }; 2537 if (partOf != null) { 2538 dst.partOf = new ArrayList<Reference>(); 2539 for (Reference i : partOf) 2540 dst.partOf.add(i.copy()); 2541 }; 2542 dst.status = status == null ? null : status.copy(); 2543 dst.statusReason = statusReason == null ? null : statusReason.copy(); 2544 if (category != null) { 2545 dst.category = new ArrayList<CodeableConcept>(); 2546 for (CodeableConcept i : category) 2547 dst.category.add(i.copy()); 2548 }; 2549 dst.code = code == null ? null : code.copy(); 2550 dst.subject = subject == null ? null : subject.copy(); 2551 dst.encounter = encounter == null ? null : encounter.copy(); 2552 dst.occurrence = occurrence == null ? null : occurrence.copy(); 2553 dst.recorded = recorded == null ? null : recorded.copy(); 2554 dst.recorder = recorder == null ? null : recorder.copy(); 2555 dst.reported = reported == null ? null : reported.copy(); 2556 if (performer != null) { 2557 dst.performer = new ArrayList<ProcedurePerformerComponent>(); 2558 for (ProcedurePerformerComponent i : performer) 2559 dst.performer.add(i.copy()); 2560 }; 2561 dst.location = location == null ? null : location.copy(); 2562 if (reason != null) { 2563 dst.reason = new ArrayList<CodeableReference>(); 2564 for (CodeableReference i : reason) 2565 dst.reason.add(i.copy()); 2566 }; 2567 if (bodySite != null) { 2568 dst.bodySite = new ArrayList<CodeableConcept>(); 2569 for (CodeableConcept i : bodySite) 2570 dst.bodySite.add(i.copy()); 2571 }; 2572 dst.outcome = outcome == null ? null : outcome.copy(); 2573 if (report != null) { 2574 dst.report = new ArrayList<Reference>(); 2575 for (Reference i : report) 2576 dst.report.add(i.copy()); 2577 }; 2578 if (complication != null) { 2579 dst.complication = new ArrayList<CodeableConcept>(); 2580 for (CodeableConcept i : complication) 2581 dst.complication.add(i.copy()); 2582 }; 2583 if (complicationDetail != null) { 2584 dst.complicationDetail = new ArrayList<Reference>(); 2585 for (Reference i : complicationDetail) 2586 dst.complicationDetail.add(i.copy()); 2587 }; 2588 if (followUp != null) { 2589 dst.followUp = new ArrayList<CodeableConcept>(); 2590 for (CodeableConcept i : followUp) 2591 dst.followUp.add(i.copy()); 2592 }; 2593 if (note != null) { 2594 dst.note = new ArrayList<Annotation>(); 2595 for (Annotation i : note) 2596 dst.note.add(i.copy()); 2597 }; 2598 if (focalDevice != null) { 2599 dst.focalDevice = new ArrayList<ProcedureFocalDeviceComponent>(); 2600 for (ProcedureFocalDeviceComponent i : focalDevice) 2601 dst.focalDevice.add(i.copy()); 2602 }; 2603 if (used != null) { 2604 dst.used = new ArrayList<CodeableReference>(); 2605 for (CodeableReference i : used) 2606 dst.used.add(i.copy()); 2607 }; 2608 } 2609 2610 protected Procedure typedCopy() { 2611 return copy(); 2612 } 2613 2614 @Override 2615 public boolean equalsDeep(Base other_) { 2616 if (!super.equalsDeep(other_)) 2617 return false; 2618 if (!(other_ instanceof Procedure)) 2619 return false; 2620 Procedure o = (Procedure) other_; 2621 return compareDeep(identifier, o.identifier, true) && compareDeep(instantiatesCanonical, o.instantiatesCanonical, true) 2622 && compareDeep(instantiatesUri, o.instantiatesUri, true) && compareDeep(basedOn, o.basedOn, true) 2623 && compareDeep(partOf, o.partOf, true) && compareDeep(status, o.status, true) && compareDeep(statusReason, o.statusReason, true) 2624 && compareDeep(category, o.category, true) && compareDeep(code, o.code, true) && compareDeep(subject, o.subject, true) 2625 && compareDeep(encounter, o.encounter, true) && compareDeep(occurrence, o.occurrence, true) && compareDeep(recorded, o.recorded, true) 2626 && compareDeep(recorder, o.recorder, true) && compareDeep(reported, o.reported, true) && compareDeep(performer, o.performer, true) 2627 && compareDeep(location, o.location, true) && compareDeep(reason, o.reason, true) && compareDeep(bodySite, o.bodySite, true) 2628 && compareDeep(outcome, o.outcome, true) && compareDeep(report, o.report, true) && compareDeep(complication, o.complication, true) 2629 && compareDeep(complicationDetail, o.complicationDetail, true) && compareDeep(followUp, o.followUp, true) 2630 && compareDeep(note, o.note, true) && compareDeep(focalDevice, o.focalDevice, true) && compareDeep(used, o.used, true) 2631 ; 2632 } 2633 2634 @Override 2635 public boolean equalsShallow(Base other_) { 2636 if (!super.equalsShallow(other_)) 2637 return false; 2638 if (!(other_ instanceof Procedure)) 2639 return false; 2640 Procedure o = (Procedure) other_; 2641 return compareValues(instantiatesCanonical, o.instantiatesCanonical, true) && compareValues(instantiatesUri, o.instantiatesUri, true) 2642 && compareValues(status, o.status, true) && compareValues(recorded, o.recorded, true); 2643 } 2644 2645 public boolean isEmpty() { 2646 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, instantiatesCanonical 2647 , instantiatesUri, basedOn, partOf, status, statusReason, category, code, subject 2648 , encounter, occurrence, recorded, recorder, reported, performer, location, reason 2649 , bodySite, outcome, report, complication, complicationDetail, followUp, note 2650 , focalDevice, used); 2651 } 2652 2653 @Override 2654 public ResourceType getResourceType() { 2655 return ResourceType.Procedure; 2656 } 2657 2658 /** 2659 * Search parameter: <b>based-on</b> 2660 * <p> 2661 * Description: <b>A request for this procedure</b><br> 2662 * Type: <b>reference</b><br> 2663 * Path: <b>Procedure.basedOn</b><br> 2664 * </p> 2665 */ 2666 @SearchParamDefinition(name="based-on", path="Procedure.basedOn", description="A request for this procedure", type="reference", target={CarePlan.class, ServiceRequest.class } ) 2667 public static final String SP_BASED_ON = "based-on"; 2668 /** 2669 * <b>Fluent Client</b> search parameter constant for <b>based-on</b> 2670 * <p> 2671 * Description: <b>A request for this procedure</b><br> 2672 * Type: <b>reference</b><br> 2673 * Path: <b>Procedure.basedOn</b><br> 2674 * </p> 2675 */ 2676 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam BASED_ON = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_BASED_ON); 2677 2678/** 2679 * Constant for fluent queries to be used to add include statements. Specifies 2680 * the path value of "<b>Procedure:based-on</b>". 2681 */ 2682 public static final ca.uhn.fhir.model.api.Include INCLUDE_BASED_ON = new ca.uhn.fhir.model.api.Include("Procedure:based-on").toLocked(); 2683 2684 /** 2685 * Search parameter: <b>category</b> 2686 * <p> 2687 * Description: <b>Classification of the procedure</b><br> 2688 * Type: <b>token</b><br> 2689 * Path: <b>Procedure.category</b><br> 2690 * </p> 2691 */ 2692 @SearchParamDefinition(name="category", path="Procedure.category", description="Classification of the procedure", type="token" ) 2693 public static final String SP_CATEGORY = "category"; 2694 /** 2695 * <b>Fluent Client</b> search parameter constant for <b>category</b> 2696 * <p> 2697 * Description: <b>Classification of the procedure</b><br> 2698 * Type: <b>token</b><br> 2699 * Path: <b>Procedure.category</b><br> 2700 * </p> 2701 */ 2702 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CATEGORY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CATEGORY); 2703 2704 /** 2705 * Search parameter: <b>instantiates-canonical</b> 2706 * <p> 2707 * Description: <b>Instantiates FHIR protocol or definition</b><br> 2708 * Type: <b>reference</b><br> 2709 * Path: <b>Procedure.instantiatesCanonical</b><br> 2710 * </p> 2711 */ 2712 @SearchParamDefinition(name="instantiates-canonical", path="Procedure.instantiatesCanonical", description="Instantiates FHIR protocol or definition", type="reference", target={ActivityDefinition.class, Measure.class, OperationDefinition.class, PlanDefinition.class, Questionnaire.class } ) 2713 public static final String SP_INSTANTIATES_CANONICAL = "instantiates-canonical"; 2714 /** 2715 * <b>Fluent Client</b> search parameter constant for <b>instantiates-canonical</b> 2716 * <p> 2717 * Description: <b>Instantiates FHIR protocol or definition</b><br> 2718 * Type: <b>reference</b><br> 2719 * Path: <b>Procedure.instantiatesCanonical</b><br> 2720 * </p> 2721 */ 2722 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam INSTANTIATES_CANONICAL = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_INSTANTIATES_CANONICAL); 2723 2724/** 2725 * Constant for fluent queries to be used to add include statements. Specifies 2726 * the path value of "<b>Procedure:instantiates-canonical</b>". 2727 */ 2728 public static final ca.uhn.fhir.model.api.Include INCLUDE_INSTANTIATES_CANONICAL = new ca.uhn.fhir.model.api.Include("Procedure:instantiates-canonical").toLocked(); 2729 2730 /** 2731 * Search parameter: <b>instantiates-uri</b> 2732 * <p> 2733 * Description: <b>Instantiates external protocol or definition</b><br> 2734 * Type: <b>uri</b><br> 2735 * Path: <b>Procedure.instantiatesUri</b><br> 2736 * </p> 2737 */ 2738 @SearchParamDefinition(name="instantiates-uri", path="Procedure.instantiatesUri", description="Instantiates external protocol or definition", type="uri" ) 2739 public static final String SP_INSTANTIATES_URI = "instantiates-uri"; 2740 /** 2741 * <b>Fluent Client</b> search parameter constant for <b>instantiates-uri</b> 2742 * <p> 2743 * Description: <b>Instantiates external protocol or definition</b><br> 2744 * Type: <b>uri</b><br> 2745 * Path: <b>Procedure.instantiatesUri</b><br> 2746 * </p> 2747 */ 2748 public static final ca.uhn.fhir.rest.gclient.UriClientParam INSTANTIATES_URI = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_INSTANTIATES_URI); 2749 2750 /** 2751 * Search parameter: <b>location</b> 2752 * <p> 2753 * Description: <b>Where the procedure happened</b><br> 2754 * Type: <b>reference</b><br> 2755 * Path: <b>Procedure.location</b><br> 2756 * </p> 2757 */ 2758 @SearchParamDefinition(name="location", path="Procedure.location", description="Where the procedure happened", type="reference", target={Location.class } ) 2759 public static final String SP_LOCATION = "location"; 2760 /** 2761 * <b>Fluent Client</b> search parameter constant for <b>location</b> 2762 * <p> 2763 * Description: <b>Where the procedure happened</b><br> 2764 * Type: <b>reference</b><br> 2765 * Path: <b>Procedure.location</b><br> 2766 * </p> 2767 */ 2768 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam LOCATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_LOCATION); 2769 2770/** 2771 * Constant for fluent queries to be used to add include statements. Specifies 2772 * the path value of "<b>Procedure:location</b>". 2773 */ 2774 public static final ca.uhn.fhir.model.api.Include INCLUDE_LOCATION = new ca.uhn.fhir.model.api.Include("Procedure:location").toLocked(); 2775 2776 /** 2777 * Search parameter: <b>part-of</b> 2778 * <p> 2779 * Description: <b>Part of referenced event</b><br> 2780 * Type: <b>reference</b><br> 2781 * Path: <b>Procedure.partOf</b><br> 2782 * </p> 2783 */ 2784 @SearchParamDefinition(name="part-of", path="Procedure.partOf", description="Part of referenced event", type="reference", target={MedicationAdministration.class, Observation.class, Procedure.class } ) 2785 public static final String SP_PART_OF = "part-of"; 2786 /** 2787 * <b>Fluent Client</b> search parameter constant for <b>part-of</b> 2788 * <p> 2789 * Description: <b>Part of referenced event</b><br> 2790 * Type: <b>reference</b><br> 2791 * Path: <b>Procedure.partOf</b><br> 2792 * </p> 2793 */ 2794 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PART_OF = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PART_OF); 2795 2796/** 2797 * Constant for fluent queries to be used to add include statements. Specifies 2798 * the path value of "<b>Procedure:part-of</b>". 2799 */ 2800 public static final ca.uhn.fhir.model.api.Include INCLUDE_PART_OF = new ca.uhn.fhir.model.api.Include("Procedure:part-of").toLocked(); 2801 2802 /** 2803 * Search parameter: <b>performer</b> 2804 * <p> 2805 * Description: <b>Who performed the procedure</b><br> 2806 * Type: <b>reference</b><br> 2807 * Path: <b>Procedure.performer.actor</b><br> 2808 * </p> 2809 */ 2810 @SearchParamDefinition(name="performer", path="Procedure.performer.actor", description="Who performed the procedure", 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={CareTeam.class, Device.class, HealthcareService.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) 2811 public static final String SP_PERFORMER = "performer"; 2812 /** 2813 * <b>Fluent Client</b> search parameter constant for <b>performer</b> 2814 * <p> 2815 * Description: <b>Who performed the procedure</b><br> 2816 * Type: <b>reference</b><br> 2817 * Path: <b>Procedure.performer.actor</b><br> 2818 * </p> 2819 */ 2820 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PERFORMER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PERFORMER); 2821 2822/** 2823 * Constant for fluent queries to be used to add include statements. Specifies 2824 * the path value of "<b>Procedure:performer</b>". 2825 */ 2826 public static final ca.uhn.fhir.model.api.Include INCLUDE_PERFORMER = new ca.uhn.fhir.model.api.Include("Procedure:performer").toLocked(); 2827 2828 /** 2829 * Search parameter: <b>reason-code</b> 2830 * <p> 2831 * Description: <b>Reference to a concept (by class)</b><br> 2832 * Type: <b>token</b><br> 2833 * Path: <b>Procedure.reason.concept</b><br> 2834 * </p> 2835 */ 2836 @SearchParamDefinition(name="reason-code", path="Procedure.reason.concept", description="Reference to a concept (by class)", type="token" ) 2837 public static final String SP_REASON_CODE = "reason-code"; 2838 /** 2839 * <b>Fluent Client</b> search parameter constant for <b>reason-code</b> 2840 * <p> 2841 * Description: <b>Reference to a concept (by class)</b><br> 2842 * Type: <b>token</b><br> 2843 * Path: <b>Procedure.reason.concept</b><br> 2844 * </p> 2845 */ 2846 public static final ca.uhn.fhir.rest.gclient.TokenClientParam REASON_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REASON_CODE); 2847 2848 /** 2849 * Search parameter: <b>reason-reference</b> 2850 * <p> 2851 * Description: <b>Reference to a resource (by instance)</b><br> 2852 * Type: <b>reference</b><br> 2853 * Path: <b>Procedure.reason.reference</b><br> 2854 * </p> 2855 */ 2856 @SearchParamDefinition(name="reason-reference", path="Procedure.reason.reference", description="Reference to a resource (by instance)", type="reference" ) 2857 public static final String SP_REASON_REFERENCE = "reason-reference"; 2858 /** 2859 * <b>Fluent Client</b> search parameter constant for <b>reason-reference</b> 2860 * <p> 2861 * Description: <b>Reference to a resource (by instance)</b><br> 2862 * Type: <b>reference</b><br> 2863 * Path: <b>Procedure.reason.reference</b><br> 2864 * </p> 2865 */ 2866 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REASON_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REASON_REFERENCE); 2867 2868/** 2869 * Constant for fluent queries to be used to add include statements. Specifies 2870 * the path value of "<b>Procedure:reason-reference</b>". 2871 */ 2872 public static final ca.uhn.fhir.model.api.Include INCLUDE_REASON_REFERENCE = new ca.uhn.fhir.model.api.Include("Procedure:reason-reference").toLocked(); 2873 2874 /** 2875 * Search parameter: <b>status</b> 2876 * <p> 2877 * Description: <b>preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown</b><br> 2878 * Type: <b>token</b><br> 2879 * Path: <b>Procedure.status</b><br> 2880 * </p> 2881 */ 2882 @SearchParamDefinition(name="status", path="Procedure.status", description="preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown", type="token" ) 2883 public static final String SP_STATUS = "status"; 2884 /** 2885 * <b>Fluent Client</b> search parameter constant for <b>status</b> 2886 * <p> 2887 * Description: <b>preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown</b><br> 2888 * Type: <b>token</b><br> 2889 * Path: <b>Procedure.status</b><br> 2890 * </p> 2891 */ 2892 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 2893 2894 /** 2895 * Search parameter: <b>subject</b> 2896 * <p> 2897 * Description: <b>Search by subject</b><br> 2898 * Type: <b>reference</b><br> 2899 * Path: <b>Procedure.subject</b><br> 2900 * </p> 2901 */ 2902 @SearchParamDefinition(name="subject", path="Procedure.subject", description="Search by subject", type="reference", target={Group.class, Patient.class } ) 2903 public static final String SP_SUBJECT = "subject"; 2904 /** 2905 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 2906 * <p> 2907 * Description: <b>Search by subject</b><br> 2908 * Type: <b>reference</b><br> 2909 * Path: <b>Procedure.subject</b><br> 2910 * </p> 2911 */ 2912 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); 2913 2914/** 2915 * Constant for fluent queries to be used to add include statements. Specifies 2916 * the path value of "<b>Procedure:subject</b>". 2917 */ 2918 public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("Procedure:subject").toLocked(); 2919 2920 /** 2921 * Search parameter: <b>code</b> 2922 * <p> 2923 * Description: <b>Multiple Resources: 2924 2925* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance 2926* [Condition](condition.html): Code for the condition 2927* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered 2928* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result 2929* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code 2930* [List](list.html): What the purpose of this list is 2931* [Medication](medication.html): Returns medications for a specific code 2932* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code 2933* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code 2934* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code 2935* [MedicationUsage](medicationusage.html): Return statements of this medication code 2936* [Observation](observation.html): The code of the observation type 2937* [Procedure](procedure.html): A code to identify a procedure 2938* [ServiceRequest](servicerequest.html): What is being requested/ordered 2939</b><br> 2940 * Type: <b>token</b><br> 2941 * Path: <b>AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationUsage.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code</b><br> 2942 * </p> 2943 */ 2944 @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationUsage.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) 2945 public static final String SP_CODE = "code"; 2946 /** 2947 * <b>Fluent Client</b> search parameter constant for <b>code</b> 2948 * <p> 2949 * Description: <b>Multiple Resources: 2950 2951* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance 2952* [Condition](condition.html): Code for the condition 2953* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered 2954* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result 2955* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code 2956* [List](list.html): What the purpose of this list is 2957* [Medication](medication.html): Returns medications for a specific code 2958* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code 2959* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code 2960* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code 2961* [MedicationUsage](medicationusage.html): Return statements of this medication code 2962* [Observation](observation.html): The code of the observation type 2963* [Procedure](procedure.html): A code to identify a procedure 2964* [ServiceRequest](servicerequest.html): What is being requested/ordered 2965</b><br> 2966 * Type: <b>token</b><br> 2967 * Path: <b>AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | (DeviceRequest.code as CodeableConcept) | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | (MedicationAdministration.medication as CodeableConcept) | (MedicationDispense.medication as CodeableConcept) | (MedicationRequest.medication as CodeableConcept) | (MedicationUsage.medication as CodeableConcept) | Observation.code | Procedure.code | ServiceRequest.code</b><br> 2968 * </p> 2969 */ 2970 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); 2971 2972 /** 2973 * Search parameter: <b>date</b> 2974 * <p> 2975 * Description: <b>Multiple Resources: 2976 2977* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded 2978* [CarePlan](careplan.html): Time period plan covers 2979* [CareTeam](careteam.html): A date within the coverage time period. 2980* [ClinicalImpression](clinicalimpression.html): When the assessment was documented 2981* [Composition](composition.html): Composition editing time 2982* [Consent](consent.html): When consent was agreed to 2983* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report 2984* [Encounter](encounter.html): A date within the period the Encounter lasted 2985* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period 2986* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated 2987* [Flag](flag.html): Time period when flag is active 2988* [Immunization](immunization.html): Vaccination (non)-Administration Date 2989* [List](list.html): When the list was prepared 2990* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period 2991* [Procedure](procedure.html): When the procedure occurred or is occurring 2992* [RiskAssessment](riskassessment.html): When was assessment made? 2993* [SupplyRequest](supplyrequest.html): When the request was made 2994</b><br> 2995 * Type: <b>date</b><br> 2996 * Path: <b>AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn</b><br> 2997 * </p> 2998 */ 2999 @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) 3000 public static final String SP_DATE = "date"; 3001 /** 3002 * <b>Fluent Client</b> search parameter constant for <b>date</b> 3003 * <p> 3004 * Description: <b>Multiple Resources: 3005 3006* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded 3007* [CarePlan](careplan.html): Time period plan covers 3008* [CareTeam](careteam.html): A date within the coverage time period. 3009* [ClinicalImpression](clinicalimpression.html): When the assessment was documented 3010* [Composition](composition.html): Composition editing time 3011* [Consent](consent.html): When consent was agreed to 3012* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report 3013* [Encounter](encounter.html): A date within the period the Encounter lasted 3014* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period 3015* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated 3016* [Flag](flag.html): Time period when flag is active 3017* [Immunization](immunization.html): Vaccination (non)-Administration Date 3018* [List](list.html): When the list was prepared 3019* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period 3020* [Procedure](procedure.html): When the procedure occurred or is occurring 3021* [RiskAssessment](riskassessment.html): When was assessment made? 3022* [SupplyRequest](supplyrequest.html): When the request was made 3023</b><br> 3024 * Type: <b>date</b><br> 3025 * Path: <b>AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn</b><br> 3026 * </p> 3027 */ 3028 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 3029 3030 /** 3031 * Search parameter: <b>encounter</b> 3032 * <p> 3033 * Description: <b>Multiple Resources: 3034 3035* [Composition](composition.html): Context of the Composition 3036* [DeviceRequest](devicerequest.html): Encounter during which request was created 3037* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made 3038* [DocumentReference](documentreference.html): Context of the document content 3039* [Flag](flag.html): Alert relevant during encounter 3040* [List](list.html): Context in which list created 3041* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier 3042* [Observation](observation.html): Encounter related to the observation 3043* [Procedure](procedure.html): The Encounter during which this Procedure was created 3044* [RiskAssessment](riskassessment.html): Where was assessment performed? 3045* [ServiceRequest](servicerequest.html): An encounter in which this request is made 3046* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier 3047</b><br> 3048 * Type: <b>reference</b><br> 3049 * Path: <b>Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter</b><br> 3050 * </p> 3051 */ 3052 @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) 3053 public static final String SP_ENCOUNTER = "encounter"; 3054 /** 3055 * <b>Fluent Client</b> search parameter constant for <b>encounter</b> 3056 * <p> 3057 * Description: <b>Multiple Resources: 3058 3059* [Composition](composition.html): Context of the Composition 3060* [DeviceRequest](devicerequest.html): Encounter during which request was created 3061* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made 3062* [DocumentReference](documentreference.html): Context of the document content 3063* [Flag](flag.html): Alert relevant during encounter 3064* [List](list.html): Context in which list created 3065* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier 3066* [Observation](observation.html): Encounter related to the observation 3067* [Procedure](procedure.html): The Encounter during which this Procedure was created 3068* [RiskAssessment](riskassessment.html): Where was assessment performed? 3069* [ServiceRequest](servicerequest.html): An encounter in which this request is made 3070* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier 3071</b><br> 3072 * Type: <b>reference</b><br> 3073 * Path: <b>Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.context.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter</b><br> 3074 * </p> 3075 */ 3076 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); 3077 3078/** 3079 * Constant for fluent queries to be used to add include statements. Specifies 3080 * the path value of "<b>Procedure:encounter</b>". 3081 */ 3082 public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("Procedure:encounter").toLocked(); 3083 3084 /** 3085 * Search parameter: <b>identifier</b> 3086 * <p> 3087 * Description: <b>Multiple Resources: 3088 3089* [AllergyIntolerance](allergyintolerance.html): External ids for this item 3090* [CarePlan](careplan.html): External Ids for this plan 3091* [CareTeam](careteam.html): External Ids for this team 3092* [Composition](composition.html): Version-independent identifier for the Composition 3093* [Condition](condition.html): A unique identifier of the condition record 3094* [Consent](consent.html): Identifier for this record (external references) 3095* [DetectedIssue](detectedissue.html): Unique id for the detected issue 3096* [DeviceRequest](devicerequest.html): Business identifier for request/order 3097* [DiagnosticReport](diagnosticreport.html): An identifier for the report 3098* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents 3099* [DocumentReference](documentreference.html): Master Version Specific Identifier 3100* [Encounter](encounter.html): Identifier(s) by which this encounter is known 3101* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare 3102* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier 3103* [Goal](goal.html): External Ids for this goal 3104* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number 3105* [Immunization](immunization.html): Business identifier 3106* [List](list.html): Business identifier 3107* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier 3108* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier 3109* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier 3110* [MedicationUsage](medicationusage.html): Return statements with this external identifier 3111* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier 3112* [Observation](observation.html): The unique id for a particular observation 3113* [Procedure](procedure.html): A unique identifier for a procedure 3114* [RiskAssessment](riskassessment.html): Unique identifier for the assessment 3115* [ServiceRequest](servicerequest.html): Identifiers assigned to this order 3116* [SupplyDelivery](supplydelivery.html): External identifier 3117* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest 3118* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier 3119</b><br> 3120 * Type: <b>token</b><br> 3121 * Path: <b>AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier</b><br> 3122 * </p> 3123 */ 3124 @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Master Version Specific Identifier\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) 3125 public static final String SP_IDENTIFIER = "identifier"; 3126 /** 3127 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 3128 * <p> 3129 * Description: <b>Multiple Resources: 3130 3131* [AllergyIntolerance](allergyintolerance.html): External ids for this item 3132* [CarePlan](careplan.html): External Ids for this plan 3133* [CareTeam](careteam.html): External Ids for this team 3134* [Composition](composition.html): Version-independent identifier for the Composition 3135* [Condition](condition.html): A unique identifier of the condition record 3136* [Consent](consent.html): Identifier for this record (external references) 3137* [DetectedIssue](detectedissue.html): Unique id for the detected issue 3138* [DeviceRequest](devicerequest.html): Business identifier for request/order 3139* [DiagnosticReport](diagnosticreport.html): An identifier for the report 3140* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents 3141* [DocumentReference](documentreference.html): Master Version Specific Identifier 3142* [Encounter](encounter.html): Identifier(s) by which this encounter is known 3143* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare 3144* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier 3145* [Goal](goal.html): External Ids for this goal 3146* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number 3147* [Immunization](immunization.html): Business identifier 3148* [List](list.html): Business identifier 3149* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier 3150* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier 3151* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier 3152* [MedicationUsage](medicationusage.html): Return statements with this external identifier 3153* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier 3154* [Observation](observation.html): The unique id for a particular observation 3155* [Procedure](procedure.html): A unique identifier for a procedure 3156* [RiskAssessment](riskassessment.html): Unique identifier for the assessment 3157* [ServiceRequest](servicerequest.html): Identifiers assigned to this order 3158* [SupplyDelivery](supplydelivery.html): External identifier 3159* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest 3160* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier 3161</b><br> 3162 * Type: <b>token</b><br> 3163 * Path: <b>AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier</b><br> 3164 * </p> 3165 */ 3166 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 3167 3168 /** 3169 * Search parameter: <b>patient</b> 3170 * <p> 3171 * Description: <b>Multiple Resources: 3172 3173* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for 3174* [CarePlan](careplan.html): Who the care plan is for 3175* [CareTeam](careteam.html): Who care team is for 3176* [ClinicalImpression](clinicalimpression.html): Patient or group assessed 3177* [Composition](composition.html): Who and/or what the composition is about 3178* [Condition](condition.html): Who has the condition? 3179* [Consent](consent.html): Who the consent applies to 3180* [DetectedIssue](detectedissue.html): Associated patient 3181* [DeviceRequest](devicerequest.html): Individual the service is ordered for 3182* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient 3183* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient 3184* [DocumentManifest](documentmanifest.html): The subject of the set of documents 3185* [DocumentReference](documentreference.html): Who/what is the subject of the document 3186* [Encounter](encounter.html): The patient or group present at the encounter 3187* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care 3188* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for 3189* [Flag](flag.html): The identity of a subject to list flags for 3190* [Goal](goal.html): Who this goal is intended for 3191* [ImagingStudy](imagingstudy.html): Who the study is about 3192* [Immunization](immunization.html): The patient for the vaccination record 3193* [List](list.html): If all resources have the same subject 3194* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for 3195* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for 3196* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient 3197* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. 3198* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement 3199* [Observation](observation.html): The subject that the observation is about (if patient) 3200* [Procedure](procedure.html): Search by subject - a patient 3201* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? 3202* [ServiceRequest](servicerequest.html): Search by subject - a patient 3203* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied 3204* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for 3205</b><br> 3206 * Type: <b>reference</b><br> 3207 * Path: <b>AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient</b><br> 3208 * </p> 3209 */ 3210 @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) 3211 public static final String SP_PATIENT = "patient"; 3212 /** 3213 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 3214 * <p> 3215 * Description: <b>Multiple Resources: 3216 3217* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for 3218* [CarePlan](careplan.html): Who the care plan is for 3219* [CareTeam](careteam.html): Who care team is for 3220* [ClinicalImpression](clinicalimpression.html): Patient or group assessed 3221* [Composition](composition.html): Who and/or what the composition is about 3222* [Condition](condition.html): Who has the condition? 3223* [Consent](consent.html): Who the consent applies to 3224* [DetectedIssue](detectedissue.html): Associated patient 3225* [DeviceRequest](devicerequest.html): Individual the service is ordered for 3226* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient 3227* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient 3228* [DocumentManifest](documentmanifest.html): The subject of the set of documents 3229* [DocumentReference](documentreference.html): Who/what is the subject of the document 3230* [Encounter](encounter.html): The patient or group present at the encounter 3231* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care 3232* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for 3233* [Flag](flag.html): The identity of a subject to list flags for 3234* [Goal](goal.html): Who this goal is intended for 3235* [ImagingStudy](imagingstudy.html): Who the study is about 3236* [Immunization](immunization.html): The patient for the vaccination record 3237* [List](list.html): If all resources have the same subject 3238* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for 3239* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for 3240* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient 3241* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. 3242* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement 3243* [Observation](observation.html): The subject that the observation is about (if patient) 3244* [Procedure](procedure.html): Search by subject - a patient 3245* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? 3246* [ServiceRequest](servicerequest.html): Search by subject - a patient 3247* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied 3248* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for 3249</b><br> 3250 * Type: <b>reference</b><br> 3251 * Path: <b>AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient</b><br> 3252 * </p> 3253 */ 3254 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); 3255 3256/** 3257 * Constant for fluent queries to be used to add include statements. Specifies 3258 * the path value of "<b>Procedure:patient</b>". 3259 */ 3260 public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Procedure:patient").toLocked(); 3261 3262 3263} 3264