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 * Prospective warnings of potential issues when providing care to the patient. 072 */ 073@ResourceDef(name="Flag", profile="http://hl7.org/fhir/StructureDefinition/Flag") 074public class Flag extends DomainResource { 075 076 public enum FlagStatus { 077 /** 078 * A current flag that should be displayed to a user. A system may use the category to determine which user roles should view the flag. 079 */ 080 ACTIVE, 081 /** 082 * The flag no longer needs to be displayed. 083 */ 084 INACTIVE, 085 /** 086 * The flag was added in error and should no longer be displayed. 087 */ 088 ENTEREDINERROR, 089 /** 090 * added to help the parsers with the generic types 091 */ 092 NULL; 093 public static FlagStatus fromCode(String codeString) throws FHIRException { 094 if (codeString == null || "".equals(codeString)) 095 return null; 096 if ("active".equals(codeString)) 097 return ACTIVE; 098 if ("inactive".equals(codeString)) 099 return INACTIVE; 100 if ("entered-in-error".equals(codeString)) 101 return ENTEREDINERROR; 102 if (Configuration.isAcceptInvalidEnums()) 103 return null; 104 else 105 throw new FHIRException("Unknown FlagStatus code '"+codeString+"'"); 106 } 107 public String toCode() { 108 switch (this) { 109 case ACTIVE: return "active"; 110 case INACTIVE: return "inactive"; 111 case ENTEREDINERROR: return "entered-in-error"; 112 default: return "?"; 113 } 114 } 115 public String getSystem() { 116 switch (this) { 117 case ACTIVE: return "http://hl7.org/fhir/flag-status"; 118 case INACTIVE: return "http://hl7.org/fhir/flag-status"; 119 case ENTEREDINERROR: return "http://hl7.org/fhir/flag-status"; 120 default: return "?"; 121 } 122 } 123 public String getDefinition() { 124 switch (this) { 125 case ACTIVE: return "A current flag that should be displayed to a user. A system may use the category to determine which user roles should view the flag."; 126 case INACTIVE: return "The flag no longer needs to be displayed."; 127 case ENTEREDINERROR: return "The flag was added in error and should no longer be displayed."; 128 default: return "?"; 129 } 130 } 131 public String getDisplay() { 132 switch (this) { 133 case ACTIVE: return "Active"; 134 case INACTIVE: return "Inactive"; 135 case ENTEREDINERROR: return "Entered in Error"; 136 default: return "?"; 137 } 138 } 139 } 140 141 public static class FlagStatusEnumFactory implements EnumFactory<FlagStatus> { 142 public FlagStatus fromCode(String codeString) throws IllegalArgumentException { 143 if (codeString == null || "".equals(codeString)) 144 if (codeString == null || "".equals(codeString)) 145 return null; 146 if ("active".equals(codeString)) 147 return FlagStatus.ACTIVE; 148 if ("inactive".equals(codeString)) 149 return FlagStatus.INACTIVE; 150 if ("entered-in-error".equals(codeString)) 151 return FlagStatus.ENTEREDINERROR; 152 throw new IllegalArgumentException("Unknown FlagStatus code '"+codeString+"'"); 153 } 154 public Enumeration<FlagStatus> fromType(Base code) throws FHIRException { 155 if (code == null) 156 return null; 157 if (code.isEmpty()) 158 return new Enumeration<FlagStatus>(this); 159 String codeString = ((PrimitiveType) code).asStringValue(); 160 if (codeString == null || "".equals(codeString)) 161 return null; 162 if ("active".equals(codeString)) 163 return new Enumeration<FlagStatus>(this, FlagStatus.ACTIVE); 164 if ("inactive".equals(codeString)) 165 return new Enumeration<FlagStatus>(this, FlagStatus.INACTIVE); 166 if ("entered-in-error".equals(codeString)) 167 return new Enumeration<FlagStatus>(this, FlagStatus.ENTEREDINERROR); 168 throw new FHIRException("Unknown FlagStatus code '"+codeString+"'"); 169 } 170 public String toCode(FlagStatus code) { 171 if (code == FlagStatus.ACTIVE) 172 return "active"; 173 if (code == FlagStatus.INACTIVE) 174 return "inactive"; 175 if (code == FlagStatus.ENTEREDINERROR) 176 return "entered-in-error"; 177 return "?"; 178 } 179 public String toSystem(FlagStatus code) { 180 return code.getSystem(); 181 } 182 } 183 184 /** 185 * Business identifiers assigned to this flag by the performer or other systems which remain constant as the resource is updated and propagates from server to server. 186 */ 187 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 188 @Description(shortDefinition="Business identifier", formalDefinition="Business identifiers assigned to this flag by the performer or other systems which remain constant as the resource is updated and propagates from server to server." ) 189 protected List<Identifier> identifier; 190 191 /** 192 * Supports basic workflow. 193 */ 194 @Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true) 195 @Description(shortDefinition="active | inactive | entered-in-error", formalDefinition="Supports basic workflow." ) 196 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/flag-status") 197 protected Enumeration<FlagStatus> status; 198 199 /** 200 * Allows a flag to be divided into different categories like clinical, administrative etc. Intended to be used as a means of filtering which flags are displayed to particular user or in a given context. 201 */ 202 @Child(name = "category", type = {CodeableConcept.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 203 @Description(shortDefinition="Clinical, administrative, etc.", formalDefinition="Allows a flag to be divided into different categories like clinical, administrative etc. Intended to be used as a means of filtering which flags are displayed to particular user or in a given context." ) 204 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/flag-category") 205 protected List<CodeableConcept> category; 206 207 /** 208 * The coded value or textual component of the flag to display to the user. 209 */ 210 @Child(name = "code", type = {CodeableConcept.class}, order=3, min=1, max=1, modifier=false, summary=true) 211 @Description(shortDefinition="Coded or textual message to display to user", formalDefinition="The coded value or textual component of the flag to display to the user." ) 212 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/flag-code") 213 protected CodeableConcept code; 214 215 /** 216 * The patient, location, group, organization, or practitioner etc. this is about record this flag is associated with. 217 */ 218 @Child(name = "subject", type = {Patient.class, Location.class, Group.class, Organization.class, Practitioner.class, PractitionerRole.class, PlanDefinition.class, Medication.class, Procedure.class}, order=4, min=1, max=1, modifier=false, summary=true) 219 @Description(shortDefinition="Who/What is flag about?", formalDefinition="The patient, location, group, organization, or practitioner etc. this is about record this flag is associated with." ) 220 protected Reference subject; 221 222 /** 223 * The period of time from the activation of the flag to inactivation of the flag. If the flag is active, the end of the period should be unspecified. 224 */ 225 @Child(name = "period", type = {Period.class}, order=5, min=0, max=1, modifier=false, summary=true) 226 @Description(shortDefinition="Time period when flag is active", formalDefinition="The period of time from the activation of the flag to inactivation of the flag. If the flag is active, the end of the period should be unspecified." ) 227 protected Period period; 228 229 /** 230 * This alert is only relevant during the encounter. 231 */ 232 @Child(name = "encounter", type = {Encounter.class}, order=6, min=0, max=1, modifier=false, summary=true) 233 @Description(shortDefinition="Alert relevant during encounter", formalDefinition="This alert is only relevant during the encounter." ) 234 protected Reference encounter; 235 236 /** 237 * The person, organization or device that created the flag. 238 */ 239 @Child(name = "author", type = {Device.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class}, order=7, min=0, max=1, modifier=false, summary=true) 240 @Description(shortDefinition="Flag creator", formalDefinition="The person, organization or device that created the flag." ) 241 protected Reference author; 242 243 private static final long serialVersionUID = -901823137L; 244 245 /** 246 * Constructor 247 */ 248 public Flag() { 249 super(); 250 } 251 252 /** 253 * Constructor 254 */ 255 public Flag(FlagStatus status, CodeableConcept code, Reference subject) { 256 super(); 257 this.setStatus(status); 258 this.setCode(code); 259 this.setSubject(subject); 260 } 261 262 /** 263 * @return {@link #identifier} (Business identifiers assigned to this flag by the performer or other systems which remain constant as the resource is updated and propagates from server to server.) 264 */ 265 public List<Identifier> getIdentifier() { 266 if (this.identifier == null) 267 this.identifier = new ArrayList<Identifier>(); 268 return this.identifier; 269 } 270 271 /** 272 * @return Returns a reference to <code>this</code> for easy method chaining 273 */ 274 public Flag setIdentifier(List<Identifier> theIdentifier) { 275 this.identifier = theIdentifier; 276 return this; 277 } 278 279 public boolean hasIdentifier() { 280 if (this.identifier == null) 281 return false; 282 for (Identifier item : this.identifier) 283 if (!item.isEmpty()) 284 return true; 285 return false; 286 } 287 288 public Identifier addIdentifier() { //3 289 Identifier t = new Identifier(); 290 if (this.identifier == null) 291 this.identifier = new ArrayList<Identifier>(); 292 this.identifier.add(t); 293 return t; 294 } 295 296 public Flag addIdentifier(Identifier t) { //3 297 if (t == null) 298 return this; 299 if (this.identifier == null) 300 this.identifier = new ArrayList<Identifier>(); 301 this.identifier.add(t); 302 return this; 303 } 304 305 /** 306 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} 307 */ 308 public Identifier getIdentifierFirstRep() { 309 if (getIdentifier().isEmpty()) { 310 addIdentifier(); 311 } 312 return getIdentifier().get(0); 313 } 314 315 /** 316 * @return {@link #status} (Supports basic workflow.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 317 */ 318 public Enumeration<FlagStatus> getStatusElement() { 319 if (this.status == null) 320 if (Configuration.errorOnAutoCreate()) 321 throw new Error("Attempt to auto-create Flag.status"); 322 else if (Configuration.doAutoCreate()) 323 this.status = new Enumeration<FlagStatus>(new FlagStatusEnumFactory()); // bb 324 return this.status; 325 } 326 327 public boolean hasStatusElement() { 328 return this.status != null && !this.status.isEmpty(); 329 } 330 331 public boolean hasStatus() { 332 return this.status != null && !this.status.isEmpty(); 333 } 334 335 /** 336 * @param value {@link #status} (Supports basic workflow.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 337 */ 338 public Flag setStatusElement(Enumeration<FlagStatus> value) { 339 this.status = value; 340 return this; 341 } 342 343 /** 344 * @return Supports basic workflow. 345 */ 346 public FlagStatus getStatus() { 347 return this.status == null ? null : this.status.getValue(); 348 } 349 350 /** 351 * @param value Supports basic workflow. 352 */ 353 public Flag setStatus(FlagStatus value) { 354 if (this.status == null) 355 this.status = new Enumeration<FlagStatus>(new FlagStatusEnumFactory()); 356 this.status.setValue(value); 357 return this; 358 } 359 360 /** 361 * @return {@link #category} (Allows a flag to be divided into different categories like clinical, administrative etc. Intended to be used as a means of filtering which flags are displayed to particular user or in a given context.) 362 */ 363 public List<CodeableConcept> getCategory() { 364 if (this.category == null) 365 this.category = new ArrayList<CodeableConcept>(); 366 return this.category; 367 } 368 369 /** 370 * @return Returns a reference to <code>this</code> for easy method chaining 371 */ 372 public Flag setCategory(List<CodeableConcept> theCategory) { 373 this.category = theCategory; 374 return this; 375 } 376 377 public boolean hasCategory() { 378 if (this.category == null) 379 return false; 380 for (CodeableConcept item : this.category) 381 if (!item.isEmpty()) 382 return true; 383 return false; 384 } 385 386 public CodeableConcept addCategory() { //3 387 CodeableConcept t = new CodeableConcept(); 388 if (this.category == null) 389 this.category = new ArrayList<CodeableConcept>(); 390 this.category.add(t); 391 return t; 392 } 393 394 public Flag addCategory(CodeableConcept t) { //3 395 if (t == null) 396 return this; 397 if (this.category == null) 398 this.category = new ArrayList<CodeableConcept>(); 399 this.category.add(t); 400 return this; 401 } 402 403 /** 404 * @return The first repetition of repeating field {@link #category}, creating it if it does not already exist {3} 405 */ 406 public CodeableConcept getCategoryFirstRep() { 407 if (getCategory().isEmpty()) { 408 addCategory(); 409 } 410 return getCategory().get(0); 411 } 412 413 /** 414 * @return {@link #code} (The coded value or textual component of the flag to display to the user.) 415 */ 416 public CodeableConcept getCode() { 417 if (this.code == null) 418 if (Configuration.errorOnAutoCreate()) 419 throw new Error("Attempt to auto-create Flag.code"); 420 else if (Configuration.doAutoCreate()) 421 this.code = new CodeableConcept(); // cc 422 return this.code; 423 } 424 425 public boolean hasCode() { 426 return this.code != null && !this.code.isEmpty(); 427 } 428 429 /** 430 * @param value {@link #code} (The coded value or textual component of the flag to display to the user.) 431 */ 432 public Flag setCode(CodeableConcept value) { 433 this.code = value; 434 return this; 435 } 436 437 /** 438 * @return {@link #subject} (The patient, location, group, organization, or practitioner etc. this is about record this flag is associated with.) 439 */ 440 public Reference getSubject() { 441 if (this.subject == null) 442 if (Configuration.errorOnAutoCreate()) 443 throw new Error("Attempt to auto-create Flag.subject"); 444 else if (Configuration.doAutoCreate()) 445 this.subject = new Reference(); // cc 446 return this.subject; 447 } 448 449 public boolean hasSubject() { 450 return this.subject != null && !this.subject.isEmpty(); 451 } 452 453 /** 454 * @param value {@link #subject} (The patient, location, group, organization, or practitioner etc. this is about record this flag is associated with.) 455 */ 456 public Flag setSubject(Reference value) { 457 this.subject = value; 458 return this; 459 } 460 461 /** 462 * @return {@link #period} (The period of time from the activation of the flag to inactivation of the flag. If the flag is active, the end of the period should be unspecified.) 463 */ 464 public Period getPeriod() { 465 if (this.period == null) 466 if (Configuration.errorOnAutoCreate()) 467 throw new Error("Attempt to auto-create Flag.period"); 468 else if (Configuration.doAutoCreate()) 469 this.period = new Period(); // cc 470 return this.period; 471 } 472 473 public boolean hasPeriod() { 474 return this.period != null && !this.period.isEmpty(); 475 } 476 477 /** 478 * @param value {@link #period} (The period of time from the activation of the flag to inactivation of the flag. If the flag is active, the end of the period should be unspecified.) 479 */ 480 public Flag setPeriod(Period value) { 481 this.period = value; 482 return this; 483 } 484 485 /** 486 * @return {@link #encounter} (This alert is only relevant during the encounter.) 487 */ 488 public Reference getEncounter() { 489 if (this.encounter == null) 490 if (Configuration.errorOnAutoCreate()) 491 throw new Error("Attempt to auto-create Flag.encounter"); 492 else if (Configuration.doAutoCreate()) 493 this.encounter = new Reference(); // cc 494 return this.encounter; 495 } 496 497 public boolean hasEncounter() { 498 return this.encounter != null && !this.encounter.isEmpty(); 499 } 500 501 /** 502 * @param value {@link #encounter} (This alert is only relevant during the encounter.) 503 */ 504 public Flag setEncounter(Reference value) { 505 this.encounter = value; 506 return this; 507 } 508 509 /** 510 * @return {@link #author} (The person, organization or device that created the flag.) 511 */ 512 public Reference getAuthor() { 513 if (this.author == null) 514 if (Configuration.errorOnAutoCreate()) 515 throw new Error("Attempt to auto-create Flag.author"); 516 else if (Configuration.doAutoCreate()) 517 this.author = new Reference(); // cc 518 return this.author; 519 } 520 521 public boolean hasAuthor() { 522 return this.author != null && !this.author.isEmpty(); 523 } 524 525 /** 526 * @param value {@link #author} (The person, organization or device that created the flag.) 527 */ 528 public Flag setAuthor(Reference value) { 529 this.author = value; 530 return this; 531 } 532 533 protected void listChildren(List<Property> children) { 534 super.listChildren(children); 535 children.add(new Property("identifier", "Identifier", "Business identifiers assigned to this flag by the performer or other systems which remain constant as the resource is updated and propagates from server to server.", 0, java.lang.Integer.MAX_VALUE, identifier)); 536 children.add(new Property("status", "code", "Supports basic workflow.", 0, 1, status)); 537 children.add(new Property("category", "CodeableConcept", "Allows a flag to be divided into different categories like clinical, administrative etc. Intended to be used as a means of filtering which flags are displayed to particular user or in a given context.", 0, java.lang.Integer.MAX_VALUE, category)); 538 children.add(new Property("code", "CodeableConcept", "The coded value or textual component of the flag to display to the user.", 0, 1, code)); 539 children.add(new Property("subject", "Reference(Patient|Location|Group|Organization|Practitioner|PractitionerRole|PlanDefinition|Medication|Procedure)", "The patient, location, group, organization, or practitioner etc. this is about record this flag is associated with.", 0, 1, subject)); 540 children.add(new Property("period", "Period", "The period of time from the activation of the flag to inactivation of the flag. If the flag is active, the end of the period should be unspecified.", 0, 1, period)); 541 children.add(new Property("encounter", "Reference(Encounter)", "This alert is only relevant during the encounter.", 0, 1, encounter)); 542 children.add(new Property("author", "Reference(Device|Organization|Patient|Practitioner|PractitionerRole)", "The person, organization or device that created the flag.", 0, 1, author)); 543 } 544 545 @Override 546 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 547 switch (_hash) { 548 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Business identifiers assigned to this flag by the performer or other systems which remain constant as the resource is updated and propagates from server to server.", 0, java.lang.Integer.MAX_VALUE, identifier); 549 case -892481550: /*status*/ return new Property("status", "code", "Supports basic workflow.", 0, 1, status); 550 case 50511102: /*category*/ return new Property("category", "CodeableConcept", "Allows a flag to be divided into different categories like clinical, administrative etc. Intended to be used as a means of filtering which flags are displayed to particular user or in a given context.", 0, java.lang.Integer.MAX_VALUE, category); 551 case 3059181: /*code*/ return new Property("code", "CodeableConcept", "The coded value or textual component of the flag to display to the user.", 0, 1, code); 552 case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Location|Group|Organization|Practitioner|PractitionerRole|PlanDefinition|Medication|Procedure)", "The patient, location, group, organization, or practitioner etc. this is about record this flag is associated with.", 0, 1, subject); 553 case -991726143: /*period*/ return new Property("period", "Period", "The period of time from the activation of the flag to inactivation of the flag. If the flag is active, the end of the period should be unspecified.", 0, 1, period); 554 case 1524132147: /*encounter*/ return new Property("encounter", "Reference(Encounter)", "This alert is only relevant during the encounter.", 0, 1, encounter); 555 case -1406328437: /*author*/ return new Property("author", "Reference(Device|Organization|Patient|Practitioner|PractitionerRole)", "The person, organization or device that created the flag.", 0, 1, author); 556 default: return super.getNamedProperty(_hash, _name, _checkValid); 557 } 558 559 } 560 561 @Override 562 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 563 switch (hash) { 564 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 565 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<FlagStatus> 566 case 50511102: /*category*/ return this.category == null ? new Base[0] : this.category.toArray(new Base[this.category.size()]); // CodeableConcept 567 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept 568 case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference 569 case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period 570 case 1524132147: /*encounter*/ return this.encounter == null ? new Base[0] : new Base[] {this.encounter}; // Reference 571 case -1406328437: /*author*/ return this.author == null ? new Base[0] : new Base[] {this.author}; // Reference 572 default: return super.getProperty(hash, name, checkValid); 573 } 574 575 } 576 577 @Override 578 public Base setProperty(int hash, String name, Base value) throws FHIRException { 579 switch (hash) { 580 case -1618432855: // identifier 581 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier 582 return value; 583 case -892481550: // status 584 value = new FlagStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 585 this.status = (Enumeration) value; // Enumeration<FlagStatus> 586 return value; 587 case 50511102: // category 588 this.getCategory().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 589 return value; 590 case 3059181: // code 591 this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 592 return value; 593 case -1867885268: // subject 594 this.subject = TypeConvertor.castToReference(value); // Reference 595 return value; 596 case -991726143: // period 597 this.period = TypeConvertor.castToPeriod(value); // Period 598 return value; 599 case 1524132147: // encounter 600 this.encounter = TypeConvertor.castToReference(value); // Reference 601 return value; 602 case -1406328437: // author 603 this.author = TypeConvertor.castToReference(value); // Reference 604 return value; 605 default: return super.setProperty(hash, name, value); 606 } 607 608 } 609 610 @Override 611 public Base setProperty(String name, Base value) throws FHIRException { 612 if (name.equals("identifier")) { 613 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); 614 } else if (name.equals("status")) { 615 value = new FlagStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 616 this.status = (Enumeration) value; // Enumeration<FlagStatus> 617 } else if (name.equals("category")) { 618 this.getCategory().add(TypeConvertor.castToCodeableConcept(value)); 619 } else if (name.equals("code")) { 620 this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 621 } else if (name.equals("subject")) { 622 this.subject = TypeConvertor.castToReference(value); // Reference 623 } else if (name.equals("period")) { 624 this.period = TypeConvertor.castToPeriod(value); // Period 625 } else if (name.equals("encounter")) { 626 this.encounter = TypeConvertor.castToReference(value); // Reference 627 } else if (name.equals("author")) { 628 this.author = TypeConvertor.castToReference(value); // Reference 629 } else 630 return super.setProperty(name, value); 631 return value; 632 } 633 634 @Override 635 public Base makeProperty(int hash, String name) throws FHIRException { 636 switch (hash) { 637 case -1618432855: return addIdentifier(); 638 case -892481550: return getStatusElement(); 639 case 50511102: return addCategory(); 640 case 3059181: return getCode(); 641 case -1867885268: return getSubject(); 642 case -991726143: return getPeriod(); 643 case 1524132147: return getEncounter(); 644 case -1406328437: return getAuthor(); 645 default: return super.makeProperty(hash, name); 646 } 647 648 } 649 650 @Override 651 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 652 switch (hash) { 653 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 654 case -892481550: /*status*/ return new String[] {"code"}; 655 case 50511102: /*category*/ return new String[] {"CodeableConcept"}; 656 case 3059181: /*code*/ return new String[] {"CodeableConcept"}; 657 case -1867885268: /*subject*/ return new String[] {"Reference"}; 658 case -991726143: /*period*/ return new String[] {"Period"}; 659 case 1524132147: /*encounter*/ return new String[] {"Reference"}; 660 case -1406328437: /*author*/ return new String[] {"Reference"}; 661 default: return super.getTypesForProperty(hash, name); 662 } 663 664 } 665 666 @Override 667 public Base addChild(String name) throws FHIRException { 668 if (name.equals("identifier")) { 669 return addIdentifier(); 670 } 671 else if (name.equals("status")) { 672 throw new FHIRException("Cannot call addChild on a primitive type Flag.status"); 673 } 674 else if (name.equals("category")) { 675 return addCategory(); 676 } 677 else if (name.equals("code")) { 678 this.code = new CodeableConcept(); 679 return this.code; 680 } 681 else if (name.equals("subject")) { 682 this.subject = new Reference(); 683 return this.subject; 684 } 685 else if (name.equals("period")) { 686 this.period = new Period(); 687 return this.period; 688 } 689 else if (name.equals("encounter")) { 690 this.encounter = new Reference(); 691 return this.encounter; 692 } 693 else if (name.equals("author")) { 694 this.author = new Reference(); 695 return this.author; 696 } 697 else 698 return super.addChild(name); 699 } 700 701 public String fhirType() { 702 return "Flag"; 703 704 } 705 706 public Flag copy() { 707 Flag dst = new Flag(); 708 copyValues(dst); 709 return dst; 710 } 711 712 public void copyValues(Flag dst) { 713 super.copyValues(dst); 714 if (identifier != null) { 715 dst.identifier = new ArrayList<Identifier>(); 716 for (Identifier i : identifier) 717 dst.identifier.add(i.copy()); 718 }; 719 dst.status = status == null ? null : status.copy(); 720 if (category != null) { 721 dst.category = new ArrayList<CodeableConcept>(); 722 for (CodeableConcept i : category) 723 dst.category.add(i.copy()); 724 }; 725 dst.code = code == null ? null : code.copy(); 726 dst.subject = subject == null ? null : subject.copy(); 727 dst.period = period == null ? null : period.copy(); 728 dst.encounter = encounter == null ? null : encounter.copy(); 729 dst.author = author == null ? null : author.copy(); 730 } 731 732 protected Flag typedCopy() { 733 return copy(); 734 } 735 736 @Override 737 public boolean equalsDeep(Base other_) { 738 if (!super.equalsDeep(other_)) 739 return false; 740 if (!(other_ instanceof Flag)) 741 return false; 742 Flag o = (Flag) other_; 743 return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(category, o.category, true) 744 && compareDeep(code, o.code, true) && compareDeep(subject, o.subject, true) && compareDeep(period, o.period, true) 745 && compareDeep(encounter, o.encounter, true) && compareDeep(author, o.author, true); 746 } 747 748 @Override 749 public boolean equalsShallow(Base other_) { 750 if (!super.equalsShallow(other_)) 751 return false; 752 if (!(other_ instanceof Flag)) 753 return false; 754 Flag o = (Flag) other_; 755 return compareValues(status, o.status, true); 756 } 757 758 public boolean isEmpty() { 759 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, category 760 , code, subject, period, encounter, author); 761 } 762 763 @Override 764 public ResourceType getResourceType() { 765 return ResourceType.Flag; 766 } 767 768 /** 769 * Search parameter: <b>author</b> 770 * <p> 771 * Description: <b>Flag creator</b><br> 772 * Type: <b>reference</b><br> 773 * Path: <b>Flag.author</b><br> 774 * </p> 775 */ 776 @SearchParamDefinition(name="author", path="Flag.author", description="Flag creator", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Device.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class } ) 777 public static final String SP_AUTHOR = "author"; 778 /** 779 * <b>Fluent Client</b> search parameter constant for <b>author</b> 780 * <p> 781 * Description: <b>Flag creator</b><br> 782 * Type: <b>reference</b><br> 783 * Path: <b>Flag.author</b><br> 784 * </p> 785 */ 786 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam AUTHOR = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_AUTHOR); 787 788/** 789 * Constant for fluent queries to be used to add include statements. Specifies 790 * the path value of "<b>Flag:author</b>". 791 */ 792 public static final ca.uhn.fhir.model.api.Include INCLUDE_AUTHOR = new ca.uhn.fhir.model.api.Include("Flag:author").toLocked(); 793 794 /** 795 * Search parameter: <b>identifier</b> 796 * <p> 797 * Description: <b>Business identifier</b><br> 798 * Type: <b>token</b><br> 799 * Path: <b>Flag.identifier</b><br> 800 * </p> 801 */ 802 @SearchParamDefinition(name="identifier", path="Flag.identifier", description="Business identifier", type="token" ) 803 public static final String SP_IDENTIFIER = "identifier"; 804 /** 805 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 806 * <p> 807 * Description: <b>Business identifier</b><br> 808 * Type: <b>token</b><br> 809 * Path: <b>Flag.identifier</b><br> 810 * </p> 811 */ 812 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 813 814 /** 815 * Search parameter: <b>status</b> 816 * <p> 817 * Description: <b>active | inactive | entered-in-error</b><br> 818 * Type: <b>token</b><br> 819 * Path: <b>Flag.status</b><br> 820 * </p> 821 */ 822 @SearchParamDefinition(name="status", path="Flag.status", description="active | inactive | entered-in-error", type="token" ) 823 public static final String SP_STATUS = "status"; 824 /** 825 * <b>Fluent Client</b> search parameter constant for <b>status</b> 826 * <p> 827 * Description: <b>active | inactive | entered-in-error</b><br> 828 * Type: <b>token</b><br> 829 * Path: <b>Flag.status</b><br> 830 * </p> 831 */ 832 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 833 834 /** 835 * Search parameter: <b>subject</b> 836 * <p> 837 * Description: <b>The identity of a subject to list flags for</b><br> 838 * Type: <b>reference</b><br> 839 * Path: <b>Flag.subject</b><br> 840 * </p> 841 */ 842 @SearchParamDefinition(name="subject", path="Flag.subject", description="The identity of a subject to list flags for", type="reference", target={Group.class, Location.class, Medication.class, Organization.class, Patient.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class } ) 843 public static final String SP_SUBJECT = "subject"; 844 /** 845 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 846 * <p> 847 * Description: <b>The identity of a subject to list flags for</b><br> 848 * Type: <b>reference</b><br> 849 * Path: <b>Flag.subject</b><br> 850 * </p> 851 */ 852 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); 853 854/** 855 * Constant for fluent queries to be used to add include statements. Specifies 856 * the path value of "<b>Flag:subject</b>". 857 */ 858 public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("Flag:subject").toLocked(); 859 860 /** 861 * Search parameter: <b>date</b> 862 * <p> 863 * Description: <b>Multiple Resources: 864 865* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded 866* [CarePlan](careplan.html): Time period plan covers 867* [CareTeam](careteam.html): A date within the coverage time period. 868* [ClinicalImpression](clinicalimpression.html): When the assessment was documented 869* [Composition](composition.html): Composition editing time 870* [Consent](consent.html): When consent was agreed to 871* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report 872* [Encounter](encounter.html): A date within the period the Encounter lasted 873* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period 874* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated 875* [Flag](flag.html): Time period when flag is active 876* [Immunization](immunization.html): Vaccination (non)-Administration Date 877* [List](list.html): When the list was prepared 878* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period 879* [Procedure](procedure.html): When the procedure occurred or is occurring 880* [RiskAssessment](riskassessment.html): When was assessment made? 881* [SupplyRequest](supplyrequest.html): When the request was made 882</b><br> 883 * Type: <b>date</b><br> 884 * 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> 885 * </p> 886 */ 887 @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" ) 888 public static final String SP_DATE = "date"; 889 /** 890 * <b>Fluent Client</b> search parameter constant for <b>date</b> 891 * <p> 892 * Description: <b>Multiple Resources: 893 894* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded 895* [CarePlan](careplan.html): Time period plan covers 896* [CareTeam](careteam.html): A date within the coverage time period. 897* [ClinicalImpression](clinicalimpression.html): When the assessment was documented 898* [Composition](composition.html): Composition editing time 899* [Consent](consent.html): When consent was agreed to 900* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report 901* [Encounter](encounter.html): A date within the period the Encounter lasted 902* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period 903* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated 904* [Flag](flag.html): Time period when flag is active 905* [Immunization](immunization.html): Vaccination (non)-Administration Date 906* [List](list.html): When the list was prepared 907* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period 908* [Procedure](procedure.html): When the procedure occurred or is occurring 909* [RiskAssessment](riskassessment.html): When was assessment made? 910* [SupplyRequest](supplyrequest.html): When the request was made 911</b><br> 912 * Type: <b>date</b><br> 913 * 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> 914 * </p> 915 */ 916 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 917 918 /** 919 * Search parameter: <b>encounter</b> 920 * <p> 921 * Description: <b>Multiple Resources: 922 923* [Composition](composition.html): Context of the Composition 924* [DeviceRequest](devicerequest.html): Encounter during which request was created 925* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made 926* [DocumentReference](documentreference.html): Context of the document content 927* [Flag](flag.html): Alert relevant during encounter 928* [List](list.html): Context in which list created 929* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier 930* [Observation](observation.html): Encounter related to the observation 931* [Procedure](procedure.html): The Encounter during which this Procedure was created 932* [RiskAssessment](riskassessment.html): Where was assessment performed? 933* [ServiceRequest](servicerequest.html): An encounter in which this request is made 934* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier 935</b><br> 936 * Type: <b>reference</b><br> 937 * 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> 938 * </p> 939 */ 940 @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", target={Encounter.class } ) 941 public static final String SP_ENCOUNTER = "encounter"; 942 /** 943 * <b>Fluent Client</b> search parameter constant for <b>encounter</b> 944 * <p> 945 * Description: <b>Multiple Resources: 946 947* [Composition](composition.html): Context of the Composition 948* [DeviceRequest](devicerequest.html): Encounter during which request was created 949* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made 950* [DocumentReference](documentreference.html): Context of the document content 951* [Flag](flag.html): Alert relevant during encounter 952* [List](list.html): Context in which list created 953* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier 954* [Observation](observation.html): Encounter related to the observation 955* [Procedure](procedure.html): The Encounter during which this Procedure was created 956* [RiskAssessment](riskassessment.html): Where was assessment performed? 957* [ServiceRequest](servicerequest.html): An encounter in which this request is made 958* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier 959</b><br> 960 * Type: <b>reference</b><br> 961 * 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> 962 * </p> 963 */ 964 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); 965 966/** 967 * Constant for fluent queries to be used to add include statements. Specifies 968 * the path value of "<b>Flag:encounter</b>". 969 */ 970 public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("Flag:encounter").toLocked(); 971 972 /** 973 * Search parameter: <b>patient</b> 974 * <p> 975 * Description: <b>Multiple Resources: 976 977* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for 978* [CarePlan](careplan.html): Who the care plan is for 979* [CareTeam](careteam.html): Who care team is for 980* [ClinicalImpression](clinicalimpression.html): Patient or group assessed 981* [Composition](composition.html): Who and/or what the composition is about 982* [Condition](condition.html): Who has the condition? 983* [Consent](consent.html): Who the consent applies to 984* [DetectedIssue](detectedissue.html): Associated patient 985* [DeviceRequest](devicerequest.html): Individual the service is ordered for 986* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient 987* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient 988* [DocumentManifest](documentmanifest.html): The subject of the set of documents 989* [DocumentReference](documentreference.html): Who/what is the subject of the document 990* [Encounter](encounter.html): The patient or group present at the encounter 991* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care 992* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for 993* [Flag](flag.html): The identity of a subject to list flags for 994* [Goal](goal.html): Who this goal is intended for 995* [ImagingStudy](imagingstudy.html): Who the study is about 996* [Immunization](immunization.html): The patient for the vaccination record 997* [List](list.html): If all resources have the same subject 998* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for 999* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for 1000* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient 1001* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. 1002* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement 1003* [Observation](observation.html): The subject that the observation is about (if patient) 1004* [Procedure](procedure.html): Search by subject - a patient 1005* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? 1006* [ServiceRequest](servicerequest.html): Search by subject - a patient 1007* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied 1008* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for 1009</b><br> 1010 * Type: <b>reference</b><br> 1011 * 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> 1012 * </p> 1013 */ 1014 @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 } ) 1015 public static final String SP_PATIENT = "patient"; 1016 /** 1017 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 1018 * <p> 1019 * Description: <b>Multiple Resources: 1020 1021* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for 1022* [CarePlan](careplan.html): Who the care plan is for 1023* [CareTeam](careteam.html): Who care team is for 1024* [ClinicalImpression](clinicalimpression.html): Patient or group assessed 1025* [Composition](composition.html): Who and/or what the composition is about 1026* [Condition](condition.html): Who has the condition? 1027* [Consent](consent.html): Who the consent applies to 1028* [DetectedIssue](detectedissue.html): Associated patient 1029* [DeviceRequest](devicerequest.html): Individual the service is ordered for 1030* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient 1031* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient 1032* [DocumentManifest](documentmanifest.html): The subject of the set of documents 1033* [DocumentReference](documentreference.html): Who/what is the subject of the document 1034* [Encounter](encounter.html): The patient or group present at the encounter 1035* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care 1036* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for 1037* [Flag](flag.html): The identity of a subject to list flags for 1038* [Goal](goal.html): Who this goal is intended for 1039* [ImagingStudy](imagingstudy.html): Who the study is about 1040* [Immunization](immunization.html): The patient for the vaccination record 1041* [List](list.html): If all resources have the same subject 1042* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for 1043* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for 1044* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient 1045* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. 1046* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement 1047* [Observation](observation.html): The subject that the observation is about (if patient) 1048* [Procedure](procedure.html): Search by subject - a patient 1049* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? 1050* [ServiceRequest](servicerequest.html): Search by subject - a patient 1051* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied 1052* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for 1053</b><br> 1054 * Type: <b>reference</b><br> 1055 * 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> 1056 * </p> 1057 */ 1058 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); 1059 1060/** 1061 * Constant for fluent queries to be used to add include statements. Specifies 1062 * the path value of "<b>Flag:patient</b>". 1063 */ 1064 public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Flag:patient").toLocked(); 1065 1066 1067} 1068