001package org.hl7.fhir.r5.model;
002
003
004/*
005  Copyright (c) 2011+, HL7, Inc.
006  All rights reserved.
007  
008  Redistribution and use in source and binary forms, with or without modification, \
009  are permitted provided that the following conditions are met:
010  
011   * Redistributions of source code must retain the above copyright notice, this \
012     list of conditions and the following disclaimer.
013   * Redistributions in binary form must reproduce the above copyright notice, \
014     this list of conditions and the following disclaimer in the documentation \
015     and/or other materials provided with the distribution.
016   * Neither the name of HL7 nor the names of its contributors may be used to 
017     endorse or promote products derived from this software without specific 
018     prior written permission.
019  
020  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \
021  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \
022  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \
023  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \
024  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \
025  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \
026  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \
027  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \
028  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \
029  POSSIBILITY OF SUCH DAMAGE.
030  */
031
032// Generated on Thu, Mar 23, 2023 19:59+1100 for FHIR v5.0.0
033
034import java.util.ArrayList;
035import java.util.Date;
036import java.util.List;
037import org.hl7.fhir.utilities.Utilities;
038import org.hl7.fhir.r5.model.Enumerations.*;
039import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
040import org.hl7.fhir.exceptions.FHIRException;
041import org.hl7.fhir.instance.model.api.ICompositeType;
042import ca.uhn.fhir.model.api.annotation.ResourceDef;
043import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
044import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
045import ca.uhn.fhir.model.api.annotation.Child;
046import ca.uhn.fhir.model.api.annotation.ChildOrder;
047import ca.uhn.fhir.model.api.annotation.Description;
048import ca.uhn.fhir.model.api.annotation.Block;
049
050/**
051 * A List is a curated collection of resources, for things such as problem lists, allergy lists, facility list, organization list, etc.
052 */
053@ResourceDef(name="List", profile="http://hl7.org/fhir/StructureDefinition/List")
054public class ListResource extends DomainResource {
055
056    public enum ListStatus {
057        /**
058         * The list is considered to be an active part of the patient's record.
059         */
060        CURRENT, 
061        /**
062         * The list is \"old\" and should no longer be considered accurate or relevant.
063         */
064        RETIRED, 
065        /**
066         * The list was never accurate.  It is retained for medico-legal purposes only.
067         */
068        ENTEREDINERROR, 
069        /**
070         * added to help the parsers with the generic types
071         */
072        NULL;
073        public static ListStatus fromCode(String codeString) throws FHIRException {
074            if (codeString == null || "".equals(codeString))
075                return null;
076        if ("current".equals(codeString))
077          return CURRENT;
078        if ("retired".equals(codeString))
079          return RETIRED;
080        if ("entered-in-error".equals(codeString))
081          return ENTEREDINERROR;
082        if (Configuration.isAcceptInvalidEnums())
083          return null;
084        else
085          throw new FHIRException("Unknown ListStatus code '"+codeString+"'");
086        }
087        public String toCode() {
088          switch (this) {
089            case CURRENT: return "current";
090            case RETIRED: return "retired";
091            case ENTEREDINERROR: return "entered-in-error";
092            case NULL: return null;
093            default: return "?";
094          }
095        }
096        public String getSystem() {
097          switch (this) {
098            case CURRENT: return "http://hl7.org/fhir/list-status";
099            case RETIRED: return "http://hl7.org/fhir/list-status";
100            case ENTEREDINERROR: return "http://hl7.org/fhir/list-status";
101            case NULL: return null;
102            default: return "?";
103          }
104        }
105        public String getDefinition() {
106          switch (this) {
107            case CURRENT: return "The list is considered to be an active part of the patient's record.";
108            case RETIRED: return "The list is \"old\" and should no longer be considered accurate or relevant.";
109            case ENTEREDINERROR: return "The list was never accurate.  It is retained for medico-legal purposes only.";
110            case NULL: return null;
111            default: return "?";
112          }
113        }
114        public String getDisplay() {
115          switch (this) {
116            case CURRENT: return "Current";
117            case RETIRED: return "Retired";
118            case ENTEREDINERROR: return "Entered In Error";
119            case NULL: return null;
120            default: return "?";
121          }
122        }
123    }
124
125  public static class ListStatusEnumFactory implements EnumFactory<ListStatus> {
126    public ListStatus fromCode(String codeString) throws IllegalArgumentException {
127      if (codeString == null || "".equals(codeString))
128            if (codeString == null || "".equals(codeString))
129                return null;
130        if ("current".equals(codeString))
131          return ListStatus.CURRENT;
132        if ("retired".equals(codeString))
133          return ListStatus.RETIRED;
134        if ("entered-in-error".equals(codeString))
135          return ListStatus.ENTEREDINERROR;
136        throw new IllegalArgumentException("Unknown ListStatus code '"+codeString+"'");
137        }
138        public Enumeration<ListStatus> fromType(PrimitiveType<?> code) throws FHIRException {
139          if (code == null)
140            return null;
141          if (code.isEmpty())
142            return new Enumeration<ListStatus>(this, ListStatus.NULL, code);
143          String codeString = ((PrimitiveType) code).asStringValue();
144          if (codeString == null || "".equals(codeString))
145            return new Enumeration<ListStatus>(this, ListStatus.NULL, code);
146        if ("current".equals(codeString))
147          return new Enumeration<ListStatus>(this, ListStatus.CURRENT, code);
148        if ("retired".equals(codeString))
149          return new Enumeration<ListStatus>(this, ListStatus.RETIRED, code);
150        if ("entered-in-error".equals(codeString))
151          return new Enumeration<ListStatus>(this, ListStatus.ENTEREDINERROR, code);
152        throw new FHIRException("Unknown ListStatus code '"+codeString+"'");
153        }
154    public String toCode(ListStatus code) {
155      if (code == ListStatus.CURRENT)
156        return "current";
157      if (code == ListStatus.RETIRED)
158        return "retired";
159      if (code == ListStatus.ENTEREDINERROR)
160        return "entered-in-error";
161      return "?";
162      }
163    public String toSystem(ListStatus code) {
164      return code.getSystem();
165      }
166    }
167
168    @Block()
169    public static class ListResourceEntryComponent extends BackboneElement implements IBaseBackboneElement {
170        /**
171         * The flag allows the system constructing the list to indicate the role and significance of the item in the list.
172         */
173        @Child(name = "flag", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false)
174        @Description(shortDefinition="Status/Workflow information about this item", formalDefinition="The flag allows the system constructing the list to indicate the role and significance of the item in the list." )
175        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/list-item-flag")
176        protected CodeableConcept flag;
177
178        /**
179         * True if this item is marked as deleted in the list.
180         */
181        @Child(name = "deleted", type = {BooleanType.class}, order=2, min=0, max=1, modifier=true, summary=false)
182        @Description(shortDefinition="If this item is actually marked as deleted", formalDefinition="True if this item is marked as deleted in the list." )
183        protected BooleanType deleted;
184
185        /**
186         * When this item was added to the list.
187         */
188        @Child(name = "date", type = {DateTimeType.class}, order=3, min=0, max=1, modifier=false, summary=false)
189        @Description(shortDefinition="When item added to list", formalDefinition="When this item was added to the list." )
190        protected DateTimeType date;
191
192        /**
193         * A reference to the actual resource from which data was derived.
194         */
195        @Child(name = "item", type = {Reference.class}, order=4, min=1, max=1, modifier=false, summary=false)
196        @Description(shortDefinition="Actual entry", formalDefinition="A reference to the actual resource from which data was derived." )
197        protected Reference item;
198
199        private static final long serialVersionUID = -872672029L;
200
201    /**
202     * Constructor
203     */
204      public ListResourceEntryComponent() {
205        super();
206      }
207
208    /**
209     * Constructor
210     */
211      public ListResourceEntryComponent(Reference item) {
212        super();
213        this.setItem(item);
214      }
215
216        /**
217         * @return {@link #flag} (The flag allows the system constructing the list to indicate the role and significance of the item in the list.)
218         */
219        public CodeableConcept getFlag() { 
220          if (this.flag == null)
221            if (Configuration.errorOnAutoCreate())
222              throw new Error("Attempt to auto-create ListResourceEntryComponent.flag");
223            else if (Configuration.doAutoCreate())
224              this.flag = new CodeableConcept(); // cc
225          return this.flag;
226        }
227
228        public boolean hasFlag() { 
229          return this.flag != null && !this.flag.isEmpty();
230        }
231
232        /**
233         * @param value {@link #flag} (The flag allows the system constructing the list to indicate the role and significance of the item in the list.)
234         */
235        public ListResourceEntryComponent setFlag(CodeableConcept value) { 
236          this.flag = value;
237          return this;
238        }
239
240        /**
241         * @return {@link #deleted} (True if this item is marked as deleted in the list.). This is the underlying object with id, value and extensions. The accessor "getDeleted" gives direct access to the value
242         */
243        public BooleanType getDeletedElement() { 
244          if (this.deleted == null)
245            if (Configuration.errorOnAutoCreate())
246              throw new Error("Attempt to auto-create ListResourceEntryComponent.deleted");
247            else if (Configuration.doAutoCreate())
248              this.deleted = new BooleanType(); // bb
249          return this.deleted;
250        }
251
252        public boolean hasDeletedElement() { 
253          return this.deleted != null && !this.deleted.isEmpty();
254        }
255
256        public boolean hasDeleted() { 
257          return this.deleted != null && !this.deleted.isEmpty();
258        }
259
260        /**
261         * @param value {@link #deleted} (True if this item is marked as deleted in the list.). This is the underlying object with id, value and extensions. The accessor "getDeleted" gives direct access to the value
262         */
263        public ListResourceEntryComponent setDeletedElement(BooleanType value) { 
264          this.deleted = value;
265          return this;
266        }
267
268        /**
269         * @return True if this item is marked as deleted in the list.
270         */
271        public boolean getDeleted() { 
272          return this.deleted == null || this.deleted.isEmpty() ? false : this.deleted.getValue();
273        }
274
275        /**
276         * @param value True if this item is marked as deleted in the list.
277         */
278        public ListResourceEntryComponent setDeleted(boolean value) { 
279            if (this.deleted == null)
280              this.deleted = new BooleanType();
281            this.deleted.setValue(value);
282          return this;
283        }
284
285        /**
286         * @return {@link #date} (When this item was added to the list.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
287         */
288        public DateTimeType getDateElement() { 
289          if (this.date == null)
290            if (Configuration.errorOnAutoCreate())
291              throw new Error("Attempt to auto-create ListResourceEntryComponent.date");
292            else if (Configuration.doAutoCreate())
293              this.date = new DateTimeType(); // bb
294          return this.date;
295        }
296
297        public boolean hasDateElement() { 
298          return this.date != null && !this.date.isEmpty();
299        }
300
301        public boolean hasDate() { 
302          return this.date != null && !this.date.isEmpty();
303        }
304
305        /**
306         * @param value {@link #date} (When this item was added to the list.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
307         */
308        public ListResourceEntryComponent setDateElement(DateTimeType value) { 
309          this.date = value;
310          return this;
311        }
312
313        /**
314         * @return When this item was added to the list.
315         */
316        public Date getDate() { 
317          return this.date == null ? null : this.date.getValue();
318        }
319
320        /**
321         * @param value When this item was added to the list.
322         */
323        public ListResourceEntryComponent setDate(Date value) { 
324          if (value == null)
325            this.date = null;
326          else {
327            if (this.date == null)
328              this.date = new DateTimeType();
329            this.date.setValue(value);
330          }
331          return this;
332        }
333
334        /**
335         * @return {@link #item} (A reference to the actual resource from which data was derived.)
336         */
337        public Reference getItem() { 
338          if (this.item == null)
339            if (Configuration.errorOnAutoCreate())
340              throw new Error("Attempt to auto-create ListResourceEntryComponent.item");
341            else if (Configuration.doAutoCreate())
342              this.item = new Reference(); // cc
343          return this.item;
344        }
345
346        public boolean hasItem() { 
347          return this.item != null && !this.item.isEmpty();
348        }
349
350        /**
351         * @param value {@link #item} (A reference to the actual resource from which data was derived.)
352         */
353        public ListResourceEntryComponent setItem(Reference value) { 
354          this.item = value;
355          return this;
356        }
357
358        protected void listChildren(List<Property> children) {
359          super.listChildren(children);
360          children.add(new Property("flag", "CodeableConcept", "The flag allows the system constructing the list to indicate the role and significance of the item in the list.", 0, 1, flag));
361          children.add(new Property("deleted", "boolean", "True if this item is marked as deleted in the list.", 0, 1, deleted));
362          children.add(new Property("date", "dateTime", "When this item was added to the list.", 0, 1, date));
363          children.add(new Property("item", "Reference(Any)", "A reference to the actual resource from which data was derived.", 0, 1, item));
364        }
365
366        @Override
367        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
368          switch (_hash) {
369          case 3145580: /*flag*/  return new Property("flag", "CodeableConcept", "The flag allows the system constructing the list to indicate the role and significance of the item in the list.", 0, 1, flag);
370          case 1550463001: /*deleted*/  return new Property("deleted", "boolean", "True if this item is marked as deleted in the list.", 0, 1, deleted);
371          case 3076014: /*date*/  return new Property("date", "dateTime", "When this item was added to the list.", 0, 1, date);
372          case 3242771: /*item*/  return new Property("item", "Reference(Any)", "A reference to the actual resource from which data was derived.", 0, 1, item);
373          default: return super.getNamedProperty(_hash, _name, _checkValid);
374          }
375
376        }
377
378      @Override
379      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
380        switch (hash) {
381        case 3145580: /*flag*/ return this.flag == null ? new Base[0] : new Base[] {this.flag}; // CodeableConcept
382        case 1550463001: /*deleted*/ return this.deleted == null ? new Base[0] : new Base[] {this.deleted}; // BooleanType
383        case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType
384        case 3242771: /*item*/ return this.item == null ? new Base[0] : new Base[] {this.item}; // Reference
385        default: return super.getProperty(hash, name, checkValid);
386        }
387
388      }
389
390      @Override
391      public Base setProperty(int hash, String name, Base value) throws FHIRException {
392        switch (hash) {
393        case 3145580: // flag
394          this.flag = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
395          return value;
396        case 1550463001: // deleted
397          this.deleted = TypeConvertor.castToBoolean(value); // BooleanType
398          return value;
399        case 3076014: // date
400          this.date = TypeConvertor.castToDateTime(value); // DateTimeType
401          return value;
402        case 3242771: // item
403          this.item = TypeConvertor.castToReference(value); // Reference
404          return value;
405        default: return super.setProperty(hash, name, value);
406        }
407
408      }
409
410      @Override
411      public Base setProperty(String name, Base value) throws FHIRException {
412        if (name.equals("flag")) {
413          this.flag = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
414        } else if (name.equals("deleted")) {
415          this.deleted = TypeConvertor.castToBoolean(value); // BooleanType
416        } else if (name.equals("date")) {
417          this.date = TypeConvertor.castToDateTime(value); // DateTimeType
418        } else if (name.equals("item")) {
419          this.item = TypeConvertor.castToReference(value); // Reference
420        } else
421          return super.setProperty(name, value);
422        return value;
423      }
424
425  @Override
426  public void removeChild(String name, Base value) throws FHIRException {
427        if (name.equals("flag")) {
428          this.flag = null;
429        } else if (name.equals("deleted")) {
430          this.deleted = null;
431        } else if (name.equals("date")) {
432          this.date = null;
433        } else if (name.equals("item")) {
434          this.item = null;
435        } else
436          super.removeChild(name, value);
437        
438      }
439
440      @Override
441      public Base makeProperty(int hash, String name) throws FHIRException {
442        switch (hash) {
443        case 3145580:  return getFlag();
444        case 1550463001:  return getDeletedElement();
445        case 3076014:  return getDateElement();
446        case 3242771:  return getItem();
447        default: return super.makeProperty(hash, name);
448        }
449
450      }
451
452      @Override
453      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
454        switch (hash) {
455        case 3145580: /*flag*/ return new String[] {"CodeableConcept"};
456        case 1550463001: /*deleted*/ return new String[] {"boolean"};
457        case 3076014: /*date*/ return new String[] {"dateTime"};
458        case 3242771: /*item*/ return new String[] {"Reference"};
459        default: return super.getTypesForProperty(hash, name);
460        }
461
462      }
463
464      @Override
465      public Base addChild(String name) throws FHIRException {
466        if (name.equals("flag")) {
467          this.flag = new CodeableConcept();
468          return this.flag;
469        }
470        else if (name.equals("deleted")) {
471          throw new FHIRException("Cannot call addChild on a singleton property List.entry.deleted");
472        }
473        else if (name.equals("date")) {
474          throw new FHIRException("Cannot call addChild on a singleton property List.entry.date");
475        }
476        else if (name.equals("item")) {
477          this.item = new Reference();
478          return this.item;
479        }
480        else
481          return super.addChild(name);
482      }
483
484      public ListResourceEntryComponent copy() {
485        ListResourceEntryComponent dst = new ListResourceEntryComponent();
486        copyValues(dst);
487        return dst;
488      }
489
490      public void copyValues(ListResourceEntryComponent dst) {
491        super.copyValues(dst);
492        dst.flag = flag == null ? null : flag.copy();
493        dst.deleted = deleted == null ? null : deleted.copy();
494        dst.date = date == null ? null : date.copy();
495        dst.item = item == null ? null : item.copy();
496      }
497
498      @Override
499      public boolean equalsDeep(Base other_) {
500        if (!super.equalsDeep(other_))
501          return false;
502        if (!(other_ instanceof ListResourceEntryComponent))
503          return false;
504        ListResourceEntryComponent o = (ListResourceEntryComponent) other_;
505        return compareDeep(flag, o.flag, true) && compareDeep(deleted, o.deleted, true) && compareDeep(date, o.date, true)
506           && compareDeep(item, o.item, true);
507      }
508
509      @Override
510      public boolean equalsShallow(Base other_) {
511        if (!super.equalsShallow(other_))
512          return false;
513        if (!(other_ instanceof ListResourceEntryComponent))
514          return false;
515        ListResourceEntryComponent o = (ListResourceEntryComponent) other_;
516        return compareValues(deleted, o.deleted, true) && compareValues(date, o.date, true);
517      }
518
519      public boolean isEmpty() {
520        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(flag, deleted, date, item
521          );
522      }
523
524  public String fhirType() {
525    return "List.entry";
526
527  }
528
529  }
530
531    /**
532     * Identifier for the List assigned for business purposes outside the context of FHIR.
533     */
534    @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
535    @Description(shortDefinition="Business identifier", formalDefinition="Identifier for the List assigned for business purposes outside the context of FHIR." )
536    protected List<Identifier> identifier;
537
538    /**
539     * Indicates the current state of this list.
540     */
541    @Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true)
542    @Description(shortDefinition="current | retired | entered-in-error", formalDefinition="Indicates the current state of this list." )
543    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/list-status")
544    protected Enumeration<ListStatus> status;
545
546    /**
547     * How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.
548     */
549    @Child(name = "mode", type = {CodeType.class}, order=2, min=1, max=1, modifier=true, summary=true)
550    @Description(shortDefinition="working | snapshot | changes", formalDefinition="How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted." )
551    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/list-mode")
552    protected Enumeration<ListMode> mode;
553
554    /**
555     * A label for the list assigned by the author.
556     */
557    @Child(name = "title", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true)
558    @Description(shortDefinition="Descriptive name for the list", formalDefinition="A label for the list assigned by the author." )
559    protected StringType title;
560
561    /**
562     * This code defines the purpose of the list - why it was created.
563     */
564    @Child(name = "code", type = {CodeableConcept.class}, order=4, min=0, max=1, modifier=false, summary=true)
565    @Description(shortDefinition="What the purpose of this list is", formalDefinition="This code defines the purpose of the list - why it was created." )
566    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/list-example-codes")
567    protected CodeableConcept code;
568
569    /**
570     * The common subject(s) (or patient(s)) of the resources that are in the list if there is one (or a set of subjects).
571     */
572    @Child(name = "subject", type = {Reference.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
573    @Description(shortDefinition="If all resources have the same subject(s)", formalDefinition="The common subject(s) (or patient(s)) of the resources that are in the list if there is one (or a set of subjects)." )
574    protected List<Reference> subject;
575
576    /**
577     * The encounter that is the context in which this list was created.
578     */
579    @Child(name = "encounter", type = {Encounter.class}, order=6, min=0, max=1, modifier=false, summary=false)
580    @Description(shortDefinition="Context in which list created", formalDefinition="The encounter that is the context in which this list was created." )
581    protected Reference encounter;
582
583    /**
584     * Date list was last reviewed/revised and determined to be 'current'.
585     */
586    @Child(name = "date", type = {DateTimeType.class}, order=7, min=0, max=1, modifier=false, summary=true)
587    @Description(shortDefinition="When the list was prepared", formalDefinition="Date list was last reviewed/revised and determined to be 'current'." )
588    protected DateTimeType date;
589
590    /**
591     * The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list.
592     */
593    @Child(name = "source", type = {Practitioner.class, PractitionerRole.class, Patient.class, Device.class, Organization.class, RelatedPerson.class, CareTeam.class}, order=8, min=0, max=1, modifier=false, summary=true)
594    @Description(shortDefinition="Who and/or what defined the list contents (aka Author)", formalDefinition="The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list." )
595    protected Reference source;
596
597    /**
598     * What order applies to the items in the list.
599     */
600    @Child(name = "orderedBy", type = {CodeableConcept.class}, order=9, min=0, max=1, modifier=false, summary=false)
601    @Description(shortDefinition="What order the list has", formalDefinition="What order applies to the items in the list." )
602    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/list-order")
603    protected CodeableConcept orderedBy;
604
605    /**
606     * Comments that apply to the overall list.
607     */
608    @Child(name = "note", type = {Annotation.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
609    @Description(shortDefinition="Comments about the list", formalDefinition="Comments that apply to the overall list." )
610    protected List<Annotation> note;
611
612    /**
613     * Entries in this list.
614     */
615    @Child(name = "entry", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
616    @Description(shortDefinition="Entries in the list", formalDefinition="Entries in this list." )
617    protected List<ListResourceEntryComponent> entry;
618
619    /**
620     * If the list is empty, why the list is empty.
621     */
622    @Child(name = "emptyReason", type = {CodeableConcept.class}, order=12, min=0, max=1, modifier=false, summary=false)
623    @Description(shortDefinition="Why list is empty", formalDefinition="If the list is empty, why the list is empty." )
624    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/list-empty-reason")
625    protected CodeableConcept emptyReason;
626
627    private static final long serialVersionUID = -2099967050L;
628
629  /**
630   * Constructor
631   */
632    public ListResource() {
633      super();
634    }
635
636  /**
637   * Constructor
638   */
639    public ListResource(ListStatus status, ListMode mode) {
640      super();
641      this.setStatus(status);
642      this.setMode(mode);
643    }
644
645    /**
646     * @return {@link #identifier} (Identifier for the List assigned for business purposes outside the context of FHIR.)
647     */
648    public List<Identifier> getIdentifier() { 
649      if (this.identifier == null)
650        this.identifier = new ArrayList<Identifier>();
651      return this.identifier;
652    }
653
654    /**
655     * @return Returns a reference to <code>this</code> for easy method chaining
656     */
657    public ListResource setIdentifier(List<Identifier> theIdentifier) { 
658      this.identifier = theIdentifier;
659      return this;
660    }
661
662    public boolean hasIdentifier() { 
663      if (this.identifier == null)
664        return false;
665      for (Identifier item : this.identifier)
666        if (!item.isEmpty())
667          return true;
668      return false;
669    }
670
671    public Identifier addIdentifier() { //3
672      Identifier t = new Identifier();
673      if (this.identifier == null)
674        this.identifier = new ArrayList<Identifier>();
675      this.identifier.add(t);
676      return t;
677    }
678
679    public ListResource addIdentifier(Identifier t) { //3
680      if (t == null)
681        return this;
682      if (this.identifier == null)
683        this.identifier = new ArrayList<Identifier>();
684      this.identifier.add(t);
685      return this;
686    }
687
688    /**
689     * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3}
690     */
691    public Identifier getIdentifierFirstRep() { 
692      if (getIdentifier().isEmpty()) {
693        addIdentifier();
694      }
695      return getIdentifier().get(0);
696    }
697
698    /**
699     * @return {@link #status} (Indicates the current state of this list.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
700     */
701    public Enumeration<ListStatus> getStatusElement() { 
702      if (this.status == null)
703        if (Configuration.errorOnAutoCreate())
704          throw new Error("Attempt to auto-create ListResource.status");
705        else if (Configuration.doAutoCreate())
706          this.status = new Enumeration<ListStatus>(new ListStatusEnumFactory()); // bb
707      return this.status;
708    }
709
710    public boolean hasStatusElement() { 
711      return this.status != null && !this.status.isEmpty();
712    }
713
714    public boolean hasStatus() { 
715      return this.status != null && !this.status.isEmpty();
716    }
717
718    /**
719     * @param value {@link #status} (Indicates the current state of this list.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
720     */
721    public ListResource setStatusElement(Enumeration<ListStatus> value) { 
722      this.status = value;
723      return this;
724    }
725
726    /**
727     * @return Indicates the current state of this list.
728     */
729    public ListStatus getStatus() { 
730      return this.status == null ? null : this.status.getValue();
731    }
732
733    /**
734     * @param value Indicates the current state of this list.
735     */
736    public ListResource setStatus(ListStatus value) { 
737        if (this.status == null)
738          this.status = new Enumeration<ListStatus>(new ListStatusEnumFactory());
739        this.status.setValue(value);
740      return this;
741    }
742
743    /**
744     * @return {@link #mode} (How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.). This is the underlying object with id, value and extensions. The accessor "getMode" gives direct access to the value
745     */
746    public Enumeration<ListMode> getModeElement() { 
747      if (this.mode == null)
748        if (Configuration.errorOnAutoCreate())
749          throw new Error("Attempt to auto-create ListResource.mode");
750        else if (Configuration.doAutoCreate())
751          this.mode = new Enumeration<ListMode>(new ListModeEnumFactory()); // bb
752      return this.mode;
753    }
754
755    public boolean hasModeElement() { 
756      return this.mode != null && !this.mode.isEmpty();
757    }
758
759    public boolean hasMode() { 
760      return this.mode != null && !this.mode.isEmpty();
761    }
762
763    /**
764     * @param value {@link #mode} (How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.). This is the underlying object with id, value and extensions. The accessor "getMode" gives direct access to the value
765     */
766    public ListResource setModeElement(Enumeration<ListMode> value) { 
767      this.mode = value;
768      return this;
769    }
770
771    /**
772     * @return How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.
773     */
774    public ListMode getMode() { 
775      return this.mode == null ? null : this.mode.getValue();
776    }
777
778    /**
779     * @param value How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.
780     */
781    public ListResource setMode(ListMode value) { 
782        if (this.mode == null)
783          this.mode = new Enumeration<ListMode>(new ListModeEnumFactory());
784        this.mode.setValue(value);
785      return this;
786    }
787
788    /**
789     * @return {@link #title} (A label for the list assigned by the author.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
790     */
791    public StringType getTitleElement() { 
792      if (this.title == null)
793        if (Configuration.errorOnAutoCreate())
794          throw new Error("Attempt to auto-create ListResource.title");
795        else if (Configuration.doAutoCreate())
796          this.title = new StringType(); // bb
797      return this.title;
798    }
799
800    public boolean hasTitleElement() { 
801      return this.title != null && !this.title.isEmpty();
802    }
803
804    public boolean hasTitle() { 
805      return this.title != null && !this.title.isEmpty();
806    }
807
808    /**
809     * @param value {@link #title} (A label for the list assigned by the author.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
810     */
811    public ListResource setTitleElement(StringType value) { 
812      this.title = value;
813      return this;
814    }
815
816    /**
817     * @return A label for the list assigned by the author.
818     */
819    public String getTitle() { 
820      return this.title == null ? null : this.title.getValue();
821    }
822
823    /**
824     * @param value A label for the list assigned by the author.
825     */
826    public ListResource setTitle(String value) { 
827      if (Utilities.noString(value))
828        this.title = null;
829      else {
830        if (this.title == null)
831          this.title = new StringType();
832        this.title.setValue(value);
833      }
834      return this;
835    }
836
837    /**
838     * @return {@link #code} (This code defines the purpose of the list - why it was created.)
839     */
840    public CodeableConcept getCode() { 
841      if (this.code == null)
842        if (Configuration.errorOnAutoCreate())
843          throw new Error("Attempt to auto-create ListResource.code");
844        else if (Configuration.doAutoCreate())
845          this.code = new CodeableConcept(); // cc
846      return this.code;
847    }
848
849    public boolean hasCode() { 
850      return this.code != null && !this.code.isEmpty();
851    }
852
853    /**
854     * @param value {@link #code} (This code defines the purpose of the list - why it was created.)
855     */
856    public ListResource setCode(CodeableConcept value) { 
857      this.code = value;
858      return this;
859    }
860
861    /**
862     * @return {@link #subject} (The common subject(s) (or patient(s)) of the resources that are in the list if there is one (or a set of subjects).)
863     */
864    public List<Reference> getSubject() { 
865      if (this.subject == null)
866        this.subject = new ArrayList<Reference>();
867      return this.subject;
868    }
869
870    /**
871     * @return Returns a reference to <code>this</code> for easy method chaining
872     */
873    public ListResource setSubject(List<Reference> theSubject) { 
874      this.subject = theSubject;
875      return this;
876    }
877
878    public boolean hasSubject() { 
879      if (this.subject == null)
880        return false;
881      for (Reference item : this.subject)
882        if (!item.isEmpty())
883          return true;
884      return false;
885    }
886
887    public Reference addSubject() { //3
888      Reference t = new Reference();
889      if (this.subject == null)
890        this.subject = new ArrayList<Reference>();
891      this.subject.add(t);
892      return t;
893    }
894
895    public ListResource addSubject(Reference t) { //3
896      if (t == null)
897        return this;
898      if (this.subject == null)
899        this.subject = new ArrayList<Reference>();
900      this.subject.add(t);
901      return this;
902    }
903
904    /**
905     * @return The first repetition of repeating field {@link #subject}, creating it if it does not already exist {3}
906     */
907    public Reference getSubjectFirstRep() { 
908      if (getSubject().isEmpty()) {
909        addSubject();
910      }
911      return getSubject().get(0);
912    }
913
914    /**
915     * @return {@link #encounter} (The encounter that is the context in which this list was created.)
916     */
917    public Reference getEncounter() { 
918      if (this.encounter == null)
919        if (Configuration.errorOnAutoCreate())
920          throw new Error("Attempt to auto-create ListResource.encounter");
921        else if (Configuration.doAutoCreate())
922          this.encounter = new Reference(); // cc
923      return this.encounter;
924    }
925
926    public boolean hasEncounter() { 
927      return this.encounter != null && !this.encounter.isEmpty();
928    }
929
930    /**
931     * @param value {@link #encounter} (The encounter that is the context in which this list was created.)
932     */
933    public ListResource setEncounter(Reference value) { 
934      this.encounter = value;
935      return this;
936    }
937
938    /**
939     * @return {@link #date} (Date list was last reviewed/revised and determined to be 'current'.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
940     */
941    public DateTimeType getDateElement() { 
942      if (this.date == null)
943        if (Configuration.errorOnAutoCreate())
944          throw new Error("Attempt to auto-create ListResource.date");
945        else if (Configuration.doAutoCreate())
946          this.date = new DateTimeType(); // bb
947      return this.date;
948    }
949
950    public boolean hasDateElement() { 
951      return this.date != null && !this.date.isEmpty();
952    }
953
954    public boolean hasDate() { 
955      return this.date != null && !this.date.isEmpty();
956    }
957
958    /**
959     * @param value {@link #date} (Date list was last reviewed/revised and determined to be 'current'.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
960     */
961    public ListResource setDateElement(DateTimeType value) { 
962      this.date = value;
963      return this;
964    }
965
966    /**
967     * @return Date list was last reviewed/revised and determined to be 'current'.
968     */
969    public Date getDate() { 
970      return this.date == null ? null : this.date.getValue();
971    }
972
973    /**
974     * @param value Date list was last reviewed/revised and determined to be 'current'.
975     */
976    public ListResource setDate(Date value) { 
977      if (value == null)
978        this.date = null;
979      else {
980        if (this.date == null)
981          this.date = new DateTimeType();
982        this.date.setValue(value);
983      }
984      return this;
985    }
986
987    /**
988     * @return {@link #source} (The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list.)
989     */
990    public Reference getSource() { 
991      if (this.source == null)
992        if (Configuration.errorOnAutoCreate())
993          throw new Error("Attempt to auto-create ListResource.source");
994        else if (Configuration.doAutoCreate())
995          this.source = new Reference(); // cc
996      return this.source;
997    }
998
999    public boolean hasSource() { 
1000      return this.source != null && !this.source.isEmpty();
1001    }
1002
1003    /**
1004     * @param value {@link #source} (The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list.)
1005     */
1006    public ListResource setSource(Reference value) { 
1007      this.source = value;
1008      return this;
1009    }
1010
1011    /**
1012     * @return {@link #orderedBy} (What order applies to the items in the list.)
1013     */
1014    public CodeableConcept getOrderedBy() { 
1015      if (this.orderedBy == null)
1016        if (Configuration.errorOnAutoCreate())
1017          throw new Error("Attempt to auto-create ListResource.orderedBy");
1018        else if (Configuration.doAutoCreate())
1019          this.orderedBy = new CodeableConcept(); // cc
1020      return this.orderedBy;
1021    }
1022
1023    public boolean hasOrderedBy() { 
1024      return this.orderedBy != null && !this.orderedBy.isEmpty();
1025    }
1026
1027    /**
1028     * @param value {@link #orderedBy} (What order applies to the items in the list.)
1029     */
1030    public ListResource setOrderedBy(CodeableConcept value) { 
1031      this.orderedBy = value;
1032      return this;
1033    }
1034
1035    /**
1036     * @return {@link #note} (Comments that apply to the overall list.)
1037     */
1038    public List<Annotation> getNote() { 
1039      if (this.note == null)
1040        this.note = new ArrayList<Annotation>();
1041      return this.note;
1042    }
1043
1044    /**
1045     * @return Returns a reference to <code>this</code> for easy method chaining
1046     */
1047    public ListResource setNote(List<Annotation> theNote) { 
1048      this.note = theNote;
1049      return this;
1050    }
1051
1052    public boolean hasNote() { 
1053      if (this.note == null)
1054        return false;
1055      for (Annotation item : this.note)
1056        if (!item.isEmpty())
1057          return true;
1058      return false;
1059    }
1060
1061    public Annotation addNote() { //3
1062      Annotation t = new Annotation();
1063      if (this.note == null)
1064        this.note = new ArrayList<Annotation>();
1065      this.note.add(t);
1066      return t;
1067    }
1068
1069    public ListResource addNote(Annotation t) { //3
1070      if (t == null)
1071        return this;
1072      if (this.note == null)
1073        this.note = new ArrayList<Annotation>();
1074      this.note.add(t);
1075      return this;
1076    }
1077
1078    /**
1079     * @return The first repetition of repeating field {@link #note}, creating it if it does not already exist {3}
1080     */
1081    public Annotation getNoteFirstRep() { 
1082      if (getNote().isEmpty()) {
1083        addNote();
1084      }
1085      return getNote().get(0);
1086    }
1087
1088    /**
1089     * @return {@link #entry} (Entries in this list.)
1090     */
1091    public List<ListResourceEntryComponent> getEntry() { 
1092      if (this.entry == null)
1093        this.entry = new ArrayList<ListResourceEntryComponent>();
1094      return this.entry;
1095    }
1096
1097    /**
1098     * @return Returns a reference to <code>this</code> for easy method chaining
1099     */
1100    public ListResource setEntry(List<ListResourceEntryComponent> theEntry) { 
1101      this.entry = theEntry;
1102      return this;
1103    }
1104
1105    public boolean hasEntry() { 
1106      if (this.entry == null)
1107        return false;
1108      for (ListResourceEntryComponent item : this.entry)
1109        if (!item.isEmpty())
1110          return true;
1111      return false;
1112    }
1113
1114    public ListResourceEntryComponent addEntry() { //3
1115      ListResourceEntryComponent t = new ListResourceEntryComponent();
1116      if (this.entry == null)
1117        this.entry = new ArrayList<ListResourceEntryComponent>();
1118      this.entry.add(t);
1119      return t;
1120    }
1121
1122    public ListResource addEntry(ListResourceEntryComponent t) { //3
1123      if (t == null)
1124        return this;
1125      if (this.entry == null)
1126        this.entry = new ArrayList<ListResourceEntryComponent>();
1127      this.entry.add(t);
1128      return this;
1129    }
1130
1131    /**
1132     * @return The first repetition of repeating field {@link #entry}, creating it if it does not already exist {3}
1133     */
1134    public ListResourceEntryComponent getEntryFirstRep() { 
1135      if (getEntry().isEmpty()) {
1136        addEntry();
1137      }
1138      return getEntry().get(0);
1139    }
1140
1141    /**
1142     * @return {@link #emptyReason} (If the list is empty, why the list is empty.)
1143     */
1144    public CodeableConcept getEmptyReason() { 
1145      if (this.emptyReason == null)
1146        if (Configuration.errorOnAutoCreate())
1147          throw new Error("Attempt to auto-create ListResource.emptyReason");
1148        else if (Configuration.doAutoCreate())
1149          this.emptyReason = new CodeableConcept(); // cc
1150      return this.emptyReason;
1151    }
1152
1153    public boolean hasEmptyReason() { 
1154      return this.emptyReason != null && !this.emptyReason.isEmpty();
1155    }
1156
1157    /**
1158     * @param value {@link #emptyReason} (If the list is empty, why the list is empty.)
1159     */
1160    public ListResource setEmptyReason(CodeableConcept value) { 
1161      this.emptyReason = value;
1162      return this;
1163    }
1164
1165      protected void listChildren(List<Property> children) {
1166        super.listChildren(children);
1167        children.add(new Property("identifier", "Identifier", "Identifier for the List assigned for business purposes outside the context of FHIR.", 0, java.lang.Integer.MAX_VALUE, identifier));
1168        children.add(new Property("status", "code", "Indicates the current state of this list.", 0, 1, status));
1169        children.add(new Property("mode", "code", "How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.", 0, 1, mode));
1170        children.add(new Property("title", "string", "A label for the list assigned by the author.", 0, 1, title));
1171        children.add(new Property("code", "CodeableConcept", "This code defines the purpose of the list - why it was created.", 0, 1, code));
1172        children.add(new Property("subject", "Reference(Any)", "The common subject(s) (or patient(s)) of the resources that are in the list if there is one (or a set of subjects).", 0, java.lang.Integer.MAX_VALUE, subject));
1173        children.add(new Property("encounter", "Reference(Encounter)", "The encounter that is the context in which this list was created.", 0, 1, encounter));
1174        children.add(new Property("date", "dateTime", "Date list was last reviewed/revised and determined to be 'current'.", 0, 1, date));
1175        children.add(new Property("source", "Reference(Practitioner|PractitionerRole|Patient|Device|Organization|RelatedPerson|CareTeam)", "The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list.", 0, 1, source));
1176        children.add(new Property("orderedBy", "CodeableConcept", "What order applies to the items in the list.", 0, 1, orderedBy));
1177        children.add(new Property("note", "Annotation", "Comments that apply to the overall list.", 0, java.lang.Integer.MAX_VALUE, note));
1178        children.add(new Property("entry", "", "Entries in this list.", 0, java.lang.Integer.MAX_VALUE, entry));
1179        children.add(new Property("emptyReason", "CodeableConcept", "If the list is empty, why the list is empty.", 0, 1, emptyReason));
1180      }
1181
1182      @Override
1183      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
1184        switch (_hash) {
1185        case -1618432855: /*identifier*/  return new Property("identifier", "Identifier", "Identifier for the List assigned for business purposes outside the context of FHIR.", 0, java.lang.Integer.MAX_VALUE, identifier);
1186        case -892481550: /*status*/  return new Property("status", "code", "Indicates the current state of this list.", 0, 1, status);
1187        case 3357091: /*mode*/  return new Property("mode", "code", "How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.", 0, 1, mode);
1188        case 110371416: /*title*/  return new Property("title", "string", "A label for the list assigned by the author.", 0, 1, title);
1189        case 3059181: /*code*/  return new Property("code", "CodeableConcept", "This code defines the purpose of the list - why it was created.", 0, 1, code);
1190        case -1867885268: /*subject*/  return new Property("subject", "Reference(Any)", "The common subject(s) (or patient(s)) of the resources that are in the list if there is one (or a set of subjects).", 0, java.lang.Integer.MAX_VALUE, subject);
1191        case 1524132147: /*encounter*/  return new Property("encounter", "Reference(Encounter)", "The encounter that is the context in which this list was created.", 0, 1, encounter);
1192        case 3076014: /*date*/  return new Property("date", "dateTime", "Date list was last reviewed/revised and determined to be 'current'.", 0, 1, date);
1193        case -896505829: /*source*/  return new Property("source", "Reference(Practitioner|PractitionerRole|Patient|Device|Organization|RelatedPerson|CareTeam)", "The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list.", 0, 1, source);
1194        case -391079516: /*orderedBy*/  return new Property("orderedBy", "CodeableConcept", "What order applies to the items in the list.", 0, 1, orderedBy);
1195        case 3387378: /*note*/  return new Property("note", "Annotation", "Comments that apply to the overall list.", 0, java.lang.Integer.MAX_VALUE, note);
1196        case 96667762: /*entry*/  return new Property("entry", "", "Entries in this list.", 0, java.lang.Integer.MAX_VALUE, entry);
1197        case 1140135409: /*emptyReason*/  return new Property("emptyReason", "CodeableConcept", "If the list is empty, why the list is empty.", 0, 1, emptyReason);
1198        default: return super.getNamedProperty(_hash, _name, _checkValid);
1199        }
1200
1201      }
1202
1203      @Override
1204      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
1205        switch (hash) {
1206        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier
1207        case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<ListStatus>
1208        case 3357091: /*mode*/ return this.mode == null ? new Base[0] : new Base[] {this.mode}; // Enumeration<ListMode>
1209        case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType
1210        case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept
1211        case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : this.subject.toArray(new Base[this.subject.size()]); // Reference
1212        case 1524132147: /*encounter*/ return this.encounter == null ? new Base[0] : new Base[] {this.encounter}; // Reference
1213        case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType
1214        case -896505829: /*source*/ return this.source == null ? new Base[0] : new Base[] {this.source}; // Reference
1215        case -391079516: /*orderedBy*/ return this.orderedBy == null ? new Base[0] : new Base[] {this.orderedBy}; // CodeableConcept
1216        case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation
1217        case 96667762: /*entry*/ return this.entry == null ? new Base[0] : this.entry.toArray(new Base[this.entry.size()]); // ListResourceEntryComponent
1218        case 1140135409: /*emptyReason*/ return this.emptyReason == null ? new Base[0] : new Base[] {this.emptyReason}; // CodeableConcept
1219        default: return super.getProperty(hash, name, checkValid);
1220        }
1221
1222      }
1223
1224      @Override
1225      public Base setProperty(int hash, String name, Base value) throws FHIRException {
1226        switch (hash) {
1227        case -1618432855: // identifier
1228          this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier
1229          return value;
1230        case -892481550: // status
1231          value = new ListStatusEnumFactory().fromType(TypeConvertor.castToCode(value));
1232          this.status = (Enumeration) value; // Enumeration<ListStatus>
1233          return value;
1234        case 3357091: // mode
1235          value = new ListModeEnumFactory().fromType(TypeConvertor.castToCode(value));
1236          this.mode = (Enumeration) value; // Enumeration<ListMode>
1237          return value;
1238        case 110371416: // title
1239          this.title = TypeConvertor.castToString(value); // StringType
1240          return value;
1241        case 3059181: // code
1242          this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
1243          return value;
1244        case -1867885268: // subject
1245          this.getSubject().add(TypeConvertor.castToReference(value)); // Reference
1246          return value;
1247        case 1524132147: // encounter
1248          this.encounter = TypeConvertor.castToReference(value); // Reference
1249          return value;
1250        case 3076014: // date
1251          this.date = TypeConvertor.castToDateTime(value); // DateTimeType
1252          return value;
1253        case -896505829: // source
1254          this.source = TypeConvertor.castToReference(value); // Reference
1255          return value;
1256        case -391079516: // orderedBy
1257          this.orderedBy = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
1258          return value;
1259        case 3387378: // note
1260          this.getNote().add(TypeConvertor.castToAnnotation(value)); // Annotation
1261          return value;
1262        case 96667762: // entry
1263          this.getEntry().add((ListResourceEntryComponent) value); // ListResourceEntryComponent
1264          return value;
1265        case 1140135409: // emptyReason
1266          this.emptyReason = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
1267          return value;
1268        default: return super.setProperty(hash, name, value);
1269        }
1270
1271      }
1272
1273      @Override
1274      public Base setProperty(String name, Base value) throws FHIRException {
1275        if (name.equals("identifier")) {
1276          this.getIdentifier().add(TypeConvertor.castToIdentifier(value));
1277        } else if (name.equals("status")) {
1278          value = new ListStatusEnumFactory().fromType(TypeConvertor.castToCode(value));
1279          this.status = (Enumeration) value; // Enumeration<ListStatus>
1280        } else if (name.equals("mode")) {
1281          value = new ListModeEnumFactory().fromType(TypeConvertor.castToCode(value));
1282          this.mode = (Enumeration) value; // Enumeration<ListMode>
1283        } else if (name.equals("title")) {
1284          this.title = TypeConvertor.castToString(value); // StringType
1285        } else if (name.equals("code")) {
1286          this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
1287        } else if (name.equals("subject")) {
1288          this.getSubject().add(TypeConvertor.castToReference(value));
1289        } else if (name.equals("encounter")) {
1290          this.encounter = TypeConvertor.castToReference(value); // Reference
1291        } else if (name.equals("date")) {
1292          this.date = TypeConvertor.castToDateTime(value); // DateTimeType
1293        } else if (name.equals("source")) {
1294          this.source = TypeConvertor.castToReference(value); // Reference
1295        } else if (name.equals("orderedBy")) {
1296          this.orderedBy = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
1297        } else if (name.equals("note")) {
1298          this.getNote().add(TypeConvertor.castToAnnotation(value));
1299        } else if (name.equals("entry")) {
1300          this.getEntry().add((ListResourceEntryComponent) value);
1301        } else if (name.equals("emptyReason")) {
1302          this.emptyReason = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
1303        } else
1304          return super.setProperty(name, value);
1305        return value;
1306      }
1307
1308  @Override
1309  public void removeChild(String name, Base value) throws FHIRException {
1310        if (name.equals("identifier")) {
1311          this.getIdentifier().remove(value);
1312        } else if (name.equals("status")) {
1313          value = new ListStatusEnumFactory().fromType(TypeConvertor.castToCode(value));
1314          this.status = (Enumeration) value; // Enumeration<ListStatus>
1315        } else if (name.equals("mode")) {
1316          value = new ListModeEnumFactory().fromType(TypeConvertor.castToCode(value));
1317          this.mode = (Enumeration) value; // Enumeration<ListMode>
1318        } else if (name.equals("title")) {
1319          this.title = null;
1320        } else if (name.equals("code")) {
1321          this.code = null;
1322        } else if (name.equals("subject")) {
1323          this.getSubject().remove(value);
1324        } else if (name.equals("encounter")) {
1325          this.encounter = null;
1326        } else if (name.equals("date")) {
1327          this.date = null;
1328        } else if (name.equals("source")) {
1329          this.source = null;
1330        } else if (name.equals("orderedBy")) {
1331          this.orderedBy = null;
1332        } else if (name.equals("note")) {
1333          this.getNote().remove(value);
1334        } else if (name.equals("entry")) {
1335          this.getEntry().remove((ListResourceEntryComponent) value);
1336        } else if (name.equals("emptyReason")) {
1337          this.emptyReason = null;
1338        } else
1339          super.removeChild(name, value);
1340        
1341      }
1342
1343      @Override
1344      public Base makeProperty(int hash, String name) throws FHIRException {
1345        switch (hash) {
1346        case -1618432855:  return addIdentifier(); 
1347        case -892481550:  return getStatusElement();
1348        case 3357091:  return getModeElement();
1349        case 110371416:  return getTitleElement();
1350        case 3059181:  return getCode();
1351        case -1867885268:  return addSubject(); 
1352        case 1524132147:  return getEncounter();
1353        case 3076014:  return getDateElement();
1354        case -896505829:  return getSource();
1355        case -391079516:  return getOrderedBy();
1356        case 3387378:  return addNote(); 
1357        case 96667762:  return addEntry(); 
1358        case 1140135409:  return getEmptyReason();
1359        default: return super.makeProperty(hash, name);
1360        }
1361
1362      }
1363
1364      @Override
1365      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
1366        switch (hash) {
1367        case -1618432855: /*identifier*/ return new String[] {"Identifier"};
1368        case -892481550: /*status*/ return new String[] {"code"};
1369        case 3357091: /*mode*/ return new String[] {"code"};
1370        case 110371416: /*title*/ return new String[] {"string"};
1371        case 3059181: /*code*/ return new String[] {"CodeableConcept"};
1372        case -1867885268: /*subject*/ return new String[] {"Reference"};
1373        case 1524132147: /*encounter*/ return new String[] {"Reference"};
1374        case 3076014: /*date*/ return new String[] {"dateTime"};
1375        case -896505829: /*source*/ return new String[] {"Reference"};
1376        case -391079516: /*orderedBy*/ return new String[] {"CodeableConcept"};
1377        case 3387378: /*note*/ return new String[] {"Annotation"};
1378        case 96667762: /*entry*/ return new String[] {};
1379        case 1140135409: /*emptyReason*/ return new String[] {"CodeableConcept"};
1380        default: return super.getTypesForProperty(hash, name);
1381        }
1382
1383      }
1384
1385      @Override
1386      public Base addChild(String name) throws FHIRException {
1387        if (name.equals("identifier")) {
1388          return addIdentifier();
1389        }
1390        else if (name.equals("status")) {
1391          throw new FHIRException("Cannot call addChild on a singleton property List.status");
1392        }
1393        else if (name.equals("mode")) {
1394          throw new FHIRException("Cannot call addChild on a singleton property List.mode");
1395        }
1396        else if (name.equals("title")) {
1397          throw new FHIRException("Cannot call addChild on a singleton property List.title");
1398        }
1399        else if (name.equals("code")) {
1400          this.code = new CodeableConcept();
1401          return this.code;
1402        }
1403        else if (name.equals("subject")) {
1404          return addSubject();
1405        }
1406        else if (name.equals("encounter")) {
1407          this.encounter = new Reference();
1408          return this.encounter;
1409        }
1410        else if (name.equals("date")) {
1411          throw new FHIRException("Cannot call addChild on a singleton property List.date");
1412        }
1413        else if (name.equals("source")) {
1414          this.source = new Reference();
1415          return this.source;
1416        }
1417        else if (name.equals("orderedBy")) {
1418          this.orderedBy = new CodeableConcept();
1419          return this.orderedBy;
1420        }
1421        else if (name.equals("note")) {
1422          return addNote();
1423        }
1424        else if (name.equals("entry")) {
1425          return addEntry();
1426        }
1427        else if (name.equals("emptyReason")) {
1428          this.emptyReason = new CodeableConcept();
1429          return this.emptyReason;
1430        }
1431        else
1432          return super.addChild(name);
1433      }
1434
1435  public String fhirType() {
1436    return "List";
1437
1438  }
1439
1440      public ListResource copy() {
1441        ListResource dst = new ListResource();
1442        copyValues(dst);
1443        return dst;
1444      }
1445
1446      public void copyValues(ListResource dst) {
1447        super.copyValues(dst);
1448        if (identifier != null) {
1449          dst.identifier = new ArrayList<Identifier>();
1450          for (Identifier i : identifier)
1451            dst.identifier.add(i.copy());
1452        };
1453        dst.status = status == null ? null : status.copy();
1454        dst.mode = mode == null ? null : mode.copy();
1455        dst.title = title == null ? null : title.copy();
1456        dst.code = code == null ? null : code.copy();
1457        if (subject != null) {
1458          dst.subject = new ArrayList<Reference>();
1459          for (Reference i : subject)
1460            dst.subject.add(i.copy());
1461        };
1462        dst.encounter = encounter == null ? null : encounter.copy();
1463        dst.date = date == null ? null : date.copy();
1464        dst.source = source == null ? null : source.copy();
1465        dst.orderedBy = orderedBy == null ? null : orderedBy.copy();
1466        if (note != null) {
1467          dst.note = new ArrayList<Annotation>();
1468          for (Annotation i : note)
1469            dst.note.add(i.copy());
1470        };
1471        if (entry != null) {
1472          dst.entry = new ArrayList<ListResourceEntryComponent>();
1473          for (ListResourceEntryComponent i : entry)
1474            dst.entry.add(i.copy());
1475        };
1476        dst.emptyReason = emptyReason == null ? null : emptyReason.copy();
1477      }
1478
1479      protected ListResource typedCopy() {
1480        return copy();
1481      }
1482
1483      @Override
1484      public boolean equalsDeep(Base other_) {
1485        if (!super.equalsDeep(other_))
1486          return false;
1487        if (!(other_ instanceof ListResource))
1488          return false;
1489        ListResource o = (ListResource) other_;
1490        return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(mode, o.mode, true)
1491           && compareDeep(title, o.title, true) && compareDeep(code, o.code, true) && compareDeep(subject, o.subject, true)
1492           && compareDeep(encounter, o.encounter, true) && compareDeep(date, o.date, true) && compareDeep(source, o.source, true)
1493           && compareDeep(orderedBy, o.orderedBy, true) && compareDeep(note, o.note, true) && compareDeep(entry, o.entry, true)
1494           && compareDeep(emptyReason, o.emptyReason, true);
1495      }
1496
1497      @Override
1498      public boolean equalsShallow(Base other_) {
1499        if (!super.equalsShallow(other_))
1500          return false;
1501        if (!(other_ instanceof ListResource))
1502          return false;
1503        ListResource o = (ListResource) other_;
1504        return compareValues(status, o.status, true) && compareValues(mode, o.mode, true) && compareValues(title, o.title, true)
1505           && compareValues(date, o.date, true);
1506      }
1507
1508      public boolean isEmpty() {
1509        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, mode
1510          , title, code, subject, encounter, date, source, orderedBy, note, entry, emptyReason
1511          );
1512      }
1513
1514  @Override
1515  public ResourceType getResourceType() {
1516    return ResourceType.List;
1517   }
1518
1519 /**
1520   * Search parameter: <b>empty-reason</b>
1521   * <p>
1522   * Description: <b>Why list is empty</b><br>
1523   * Type: <b>token</b><br>
1524   * Path: <b>List.emptyReason</b><br>
1525   * </p>
1526   */
1527  @SearchParamDefinition(name="empty-reason", path="List.emptyReason", description="Why list is empty", type="token" )
1528  public static final String SP_EMPTY_REASON = "empty-reason";
1529 /**
1530   * <b>Fluent Client</b> search parameter constant for <b>empty-reason</b>
1531   * <p>
1532   * Description: <b>Why list is empty</b><br>
1533   * Type: <b>token</b><br>
1534   * Path: <b>List.emptyReason</b><br>
1535   * </p>
1536   */
1537  public static final ca.uhn.fhir.rest.gclient.TokenClientParam EMPTY_REASON = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_EMPTY_REASON);
1538
1539 /**
1540   * Search parameter: <b>item</b>
1541   * <p>
1542   * Description: <b>Actual entry</b><br>
1543   * Type: <b>reference</b><br>
1544   * Path: <b>List.entry.item</b><br>
1545   * </p>
1546   */
1547  @SearchParamDefinition(name="item", path="List.entry.item", description="Actual entry", type="reference", target={Account.class, ActivityDefinition.class, ActorDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, ArtifactAssessment.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BiologicallyDerivedProductDispense.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CarePlan.class, CareTeam.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseDefinition.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceAssociation.class, DeviceDefinition.class, DeviceDispense.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentReference.class, Encounter.class, EncounterHistory.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, FormularyItem.class, GenomicStudy.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingSelection.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryItem.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationStatement.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Parameters.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestOrchestration.class, Requirements.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestPlan.class, TestReport.class, TestScript.class, Transport.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
1548  public static final String SP_ITEM = "item";
1549 /**
1550   * <b>Fluent Client</b> search parameter constant for <b>item</b>
1551   * <p>
1552   * Description: <b>Actual entry</b><br>
1553   * Type: <b>reference</b><br>
1554   * Path: <b>List.entry.item</b><br>
1555   * </p>
1556   */
1557  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ITEM = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ITEM);
1558
1559/**
1560   * Constant for fluent queries to be used to add include statements. Specifies
1561   * the path value of "<b>List:item</b>".
1562   */
1563  public static final ca.uhn.fhir.model.api.Include INCLUDE_ITEM = new ca.uhn.fhir.model.api.Include("List:item").toLocked();
1564
1565 /**
1566   * Search parameter: <b>notes</b>
1567   * <p>
1568   * Description: <b>The annotation  - text content (as markdown)</b><br>
1569   * Type: <b>string</b><br>
1570   * Path: <b>List.note.text</b><br>
1571   * </p>
1572   */
1573  @SearchParamDefinition(name="notes", path="List.note.text", description="The annotation  - text content (as markdown)", type="string" )
1574  public static final String SP_NOTES = "notes";
1575 /**
1576   * <b>Fluent Client</b> search parameter constant for <b>notes</b>
1577   * <p>
1578   * Description: <b>The annotation  - text content (as markdown)</b><br>
1579   * Type: <b>string</b><br>
1580   * Path: <b>List.note.text</b><br>
1581   * </p>
1582   */
1583  public static final ca.uhn.fhir.rest.gclient.StringClientParam NOTES = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NOTES);
1584
1585 /**
1586   * Search parameter: <b>source</b>
1587   * <p>
1588   * Description: <b>Who and/or what defined the list contents (aka Author)</b><br>
1589   * Type: <b>reference</b><br>
1590   * Path: <b>List.source</b><br>
1591   * </p>
1592   */
1593  @SearchParamDefinition(name="source", path="List.source", description="Who and/or what defined the list contents (aka Author)", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={CareTeam.class, Device.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } )
1594  public static final String SP_SOURCE = "source";
1595 /**
1596   * <b>Fluent Client</b> search parameter constant for <b>source</b>
1597   * <p>
1598   * Description: <b>Who and/or what defined the list contents (aka Author)</b><br>
1599   * Type: <b>reference</b><br>
1600   * Path: <b>List.source</b><br>
1601   * </p>
1602   */
1603  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SOURCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SOURCE);
1604
1605/**
1606   * Constant for fluent queries to be used to add include statements. Specifies
1607   * the path value of "<b>List:source</b>".
1608   */
1609  public static final ca.uhn.fhir.model.api.Include INCLUDE_SOURCE = new ca.uhn.fhir.model.api.Include("List:source").toLocked();
1610
1611 /**
1612   * Search parameter: <b>status</b>
1613   * <p>
1614   * Description: <b>current | retired | entered-in-error</b><br>
1615   * Type: <b>token</b><br>
1616   * Path: <b>List.status</b><br>
1617   * </p>
1618   */
1619  @SearchParamDefinition(name="status", path="List.status", description="current | retired | entered-in-error", type="token" )
1620  public static final String SP_STATUS = "status";
1621 /**
1622   * <b>Fluent Client</b> search parameter constant for <b>status</b>
1623   * <p>
1624   * Description: <b>current | retired | entered-in-error</b><br>
1625   * Type: <b>token</b><br>
1626   * Path: <b>List.status</b><br>
1627   * </p>
1628   */
1629  public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS);
1630
1631 /**
1632   * Search parameter: <b>subject</b>
1633   * <p>
1634   * Description: <b>If all resources have the same subject</b><br>
1635   * Type: <b>reference</b><br>
1636   * Path: <b>List.subject</b><br>
1637   * </p>
1638   */
1639  @SearchParamDefinition(name="subject", path="List.subject", description="If all resources have the same subject", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, ActorDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, ArtifactAssessment.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BiologicallyDerivedProductDispense.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CarePlan.class, CareTeam.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseDefinition.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceAssociation.class, DeviceDefinition.class, DeviceDispense.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentReference.class, Encounter.class, EncounterHistory.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, FormularyItem.class, GenomicStudy.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingSelection.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryItem.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationStatement.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Parameters.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestOrchestration.class, Requirements.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestPlan.class, TestReport.class, TestScript.class, Transport.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
1640  public static final String SP_SUBJECT = "subject";
1641 /**
1642   * <b>Fluent Client</b> search parameter constant for <b>subject</b>
1643   * <p>
1644   * Description: <b>If all resources have the same subject</b><br>
1645   * Type: <b>reference</b><br>
1646   * Path: <b>List.subject</b><br>
1647   * </p>
1648   */
1649  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT);
1650
1651/**
1652   * Constant for fluent queries to be used to add include statements. Specifies
1653   * the path value of "<b>List:subject</b>".
1654   */
1655  public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("List:subject").toLocked();
1656
1657 /**
1658   * Search parameter: <b>title</b>
1659   * <p>
1660   * Description: <b>Descriptive name for the list</b><br>
1661   * Type: <b>string</b><br>
1662   * Path: <b>List.title</b><br>
1663   * </p>
1664   */
1665  @SearchParamDefinition(name="title", path="List.title", description="Descriptive name for the list", type="string" )
1666  public static final String SP_TITLE = "title";
1667 /**
1668   * <b>Fluent Client</b> search parameter constant for <b>title</b>
1669   * <p>
1670   * Description: <b>Descriptive name for the list</b><br>
1671   * Type: <b>string</b><br>
1672   * Path: <b>List.title</b><br>
1673   * </p>
1674   */
1675  public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE);
1676
1677 /**
1678   * Search parameter: <b>code</b>
1679   * <p>
1680   * Description: <b>Multiple Resources: 
1681
1682* [AdverseEvent](adverseevent.html): Event or incident that occurred or was averted
1683* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance
1684* [AuditEvent](auditevent.html): More specific code for the event
1685* [Basic](basic.html): Kind of Resource
1686* [ChargeItem](chargeitem.html): A code that identifies the charge, like a billing code
1687* [Condition](condition.html): Code for the condition
1688* [DetectedIssue](detectedissue.html): Issue Type, e.g. drug-drug, duplicate therapy, etc.
1689* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered
1690* [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
1691* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code
1692* [ImagingSelection](imagingselection.html): The imaging selection status
1693* [List](list.html): What the purpose of this list is
1694* [Medication](medication.html): Returns medications for a specific code
1695* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code
1696* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code
1697* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code
1698* [MedicationStatement](medicationstatement.html): Return statements of this medication code
1699* [NutritionIntake](nutritionintake.html): Returns statements of this code of NutritionIntake
1700* [Observation](observation.html): The code of the observation type
1701* [Procedure](procedure.html): A code to identify a  procedure
1702* [RequestOrchestration](requestorchestration.html): The code of the request orchestration
1703* [Task](task.html): Search by task code
1704</b><br>
1705   * Type: <b>token</b><br>
1706   * Path: <b>AdverseEvent.code | AllergyIntolerance.code | AllergyIntolerance.reaction.substance | AuditEvent.code | Basic.code | ChargeItem.code | Condition.code | DetectedIssue.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | ImagingSelection.status | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationStatement.medication.concept | NutritionIntake.code | Observation.code | Procedure.code | RequestOrchestration.code | Task.code</b><br>
1707   * </p>
1708   */
1709  @SearchParamDefinition(name="code", path="AdverseEvent.code | AllergyIntolerance.code | AllergyIntolerance.reaction.substance | AuditEvent.code | Basic.code | ChargeItem.code | Condition.code | DetectedIssue.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | ImagingSelection.status | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationStatement.medication.concept | NutritionIntake.code | Observation.code | Procedure.code | RequestOrchestration.code | Task.code", description="Multiple Resources: \r\n\r\n* [AdverseEvent](adverseevent.html): Event or incident that occurred or was averted\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [AuditEvent](auditevent.html): More specific code for the event\r\n* [Basic](basic.html): Kind of Resource\r\n* [ChargeItem](chargeitem.html): A code that identifies the charge, like a billing code\r\n* [Condition](condition.html): Code for the condition\r\n* [DetectedIssue](detectedissue.html): Issue Type, e.g. drug-drug, duplicate therapy, etc.\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* [ImagingSelection](imagingselection.html): The imaging selection status\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* [MedicationStatement](medicationstatement.html): Return statements of this medication code\r\n* [NutritionIntake](nutritionintake.html): Returns statements of this code of NutritionIntake\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a  procedure\r\n* [RequestOrchestration](requestorchestration.html): The code of the request orchestration\r\n* [Task](task.html): Search by task code\r\n", type="token" )
1710  public static final String SP_CODE = "code";
1711 /**
1712   * <b>Fluent Client</b> search parameter constant for <b>code</b>
1713   * <p>
1714   * Description: <b>Multiple Resources: 
1715
1716* [AdverseEvent](adverseevent.html): Event or incident that occurred or was averted
1717* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance
1718* [AuditEvent](auditevent.html): More specific code for the event
1719* [Basic](basic.html): Kind of Resource
1720* [ChargeItem](chargeitem.html): A code that identifies the charge, like a billing code
1721* [Condition](condition.html): Code for the condition
1722* [DetectedIssue](detectedissue.html): Issue Type, e.g. drug-drug, duplicate therapy, etc.
1723* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered
1724* [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
1725* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code
1726* [ImagingSelection](imagingselection.html): The imaging selection status
1727* [List](list.html): What the purpose of this list is
1728* [Medication](medication.html): Returns medications for a specific code
1729* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code
1730* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code
1731* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code
1732* [MedicationStatement](medicationstatement.html): Return statements of this medication code
1733* [NutritionIntake](nutritionintake.html): Returns statements of this code of NutritionIntake
1734* [Observation](observation.html): The code of the observation type
1735* [Procedure](procedure.html): A code to identify a  procedure
1736* [RequestOrchestration](requestorchestration.html): The code of the request orchestration
1737* [Task](task.html): Search by task code
1738</b><br>
1739   * Type: <b>token</b><br>
1740   * Path: <b>AdverseEvent.code | AllergyIntolerance.code | AllergyIntolerance.reaction.substance | AuditEvent.code | Basic.code | ChargeItem.code | Condition.code | DetectedIssue.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | ImagingSelection.status | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationStatement.medication.concept | NutritionIntake.code | Observation.code | Procedure.code | RequestOrchestration.code | Task.code</b><br>
1741   * </p>
1742   */
1743  public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE);
1744
1745 /**
1746   * Search parameter: <b>date</b>
1747   * <p>
1748   * Description: <b>Multiple Resources: 
1749
1750* [AdverseEvent](adverseevent.html): When the event occurred
1751* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded
1752* [Appointment](appointment.html): Appointment date/time.
1753* [AuditEvent](auditevent.html): Time when the event was recorded
1754* [CarePlan](careplan.html): Time period plan covers
1755* [CareTeam](careteam.html): A date within the coverage time period.
1756* [ClinicalImpression](clinicalimpression.html): When the assessment was documented
1757* [Composition](composition.html): Composition editing time
1758* [Consent](consent.html): When consent was agreed to
1759* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report
1760* [DocumentReference](documentreference.html): When this document reference was created
1761* [Encounter](encounter.html): A date within the actualPeriod the Encounter lasted
1762* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period
1763* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated
1764* [Flag](flag.html): Time period when flag is active
1765* [Immunization](immunization.html): Vaccination  (non)-Administration Date
1766* [ImmunizationEvaluation](immunizationevaluation.html): Date the evaluation was generated
1767* [ImmunizationRecommendation](immunizationrecommendation.html): Date recommendation(s) created
1768* [Invoice](invoice.html): Invoice date / posting date
1769* [List](list.html): When the list was prepared
1770* [MeasureReport](measurereport.html): The date of the measure report
1771* [NutritionIntake](nutritionintake.html): Date when patient was taking (or not taking) the medication
1772* [Observation](observation.html): Clinically relevant time/time-period for observation
1773* [Procedure](procedure.html): When the procedure occurred or is occurring
1774* [ResearchSubject](researchsubject.html): Start and end of participation
1775* [RiskAssessment](riskassessment.html): When was assessment made?
1776* [SupplyRequest](supplyrequest.html): When the request was made
1777</b><br>
1778   * Type: <b>date</b><br>
1779   * Path: <b>AdverseEvent.occurrence.ofType(dateTime) | AdverseEvent.occurrence.ofType(Period) | AdverseEvent.occurrence.ofType(Timing) | AllergyIntolerance.recordedDate | (start | requestedPeriod.start).first() | AuditEvent.recorded | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.date | DiagnosticReport.effective.ofType(dateTime) | DiagnosticReport.effective.ofType(Period) | DocumentReference.date | Encounter.actualPeriod | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence.ofType(dateTime)) | ImmunizationEvaluation.date | ImmunizationRecommendation.date | Invoice.date | List.date | MeasureReport.date | NutritionIntake.occurrence.ofType(dateTime) | NutritionIntake.occurrence.ofType(Period) | Observation.effective.ofType(dateTime) | Observation.effective.ofType(Period) | Observation.effective.ofType(Timing) | Observation.effective.ofType(instant) | Procedure.occurrence.ofType(dateTime) | Procedure.occurrence.ofType(Period) | Procedure.occurrence.ofType(Timing) | ResearchSubject.period | (RiskAssessment.occurrence.ofType(dateTime)) | SupplyRequest.authoredOn</b><br>
1780   * </p>
1781   */
1782  @SearchParamDefinition(name="date", path="AdverseEvent.occurrence.ofType(dateTime) | AdverseEvent.occurrence.ofType(Period) | AdverseEvent.occurrence.ofType(Timing) | AllergyIntolerance.recordedDate | (start | requestedPeriod.start).first() | AuditEvent.recorded | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.date | DiagnosticReport.effective.ofType(dateTime) | DiagnosticReport.effective.ofType(Period) | DocumentReference.date | Encounter.actualPeriod | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence.ofType(dateTime)) | ImmunizationEvaluation.date | ImmunizationRecommendation.date | Invoice.date | List.date | MeasureReport.date | NutritionIntake.occurrence.ofType(dateTime) | NutritionIntake.occurrence.ofType(Period) | Observation.effective.ofType(dateTime) | Observation.effective.ofType(Period) | Observation.effective.ofType(Timing) | Observation.effective.ofType(instant) | Procedure.occurrence.ofType(dateTime) | Procedure.occurrence.ofType(Period) | Procedure.occurrence.ofType(Timing) | ResearchSubject.period | (RiskAssessment.occurrence.ofType(dateTime)) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AdverseEvent](adverseevent.html): When the event occurred\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [Appointment](appointment.html): Appointment date/time.\r\n* [AuditEvent](auditevent.html): Time when the event 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* [DocumentReference](documentreference.html): When this document reference was created\r\n* [Encounter](encounter.html): A date within the actualPeriod 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* [ImmunizationEvaluation](immunizationevaluation.html): Date the evaluation was generated\r\n* [ImmunizationRecommendation](immunizationrecommendation.html): Date recommendation(s) created\r\n* [Invoice](invoice.html): Invoice date / posting date\r\n* [List](list.html): When the list was prepared\r\n* [MeasureReport](measurereport.html): The date of the measure report\r\n* [NutritionIntake](nutritionintake.html): Date when patient was taking (or not taking) the medication\r\n* [Observation](observation.html): Clinically relevant time/time-period for observation\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [ResearchSubject](researchsubject.html): Start and end of participation\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" )
1783  public static final String SP_DATE = "date";
1784 /**
1785   * <b>Fluent Client</b> search parameter constant for <b>date</b>
1786   * <p>
1787   * Description: <b>Multiple Resources: 
1788
1789* [AdverseEvent](adverseevent.html): When the event occurred
1790* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded
1791* [Appointment](appointment.html): Appointment date/time.
1792* [AuditEvent](auditevent.html): Time when the event was recorded
1793* [CarePlan](careplan.html): Time period plan covers
1794* [CareTeam](careteam.html): A date within the coverage time period.
1795* [ClinicalImpression](clinicalimpression.html): When the assessment was documented
1796* [Composition](composition.html): Composition editing time
1797* [Consent](consent.html): When consent was agreed to
1798* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report
1799* [DocumentReference](documentreference.html): When this document reference was created
1800* [Encounter](encounter.html): A date within the actualPeriod the Encounter lasted
1801* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period
1802* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated
1803* [Flag](flag.html): Time period when flag is active
1804* [Immunization](immunization.html): Vaccination  (non)-Administration Date
1805* [ImmunizationEvaluation](immunizationevaluation.html): Date the evaluation was generated
1806* [ImmunizationRecommendation](immunizationrecommendation.html): Date recommendation(s) created
1807* [Invoice](invoice.html): Invoice date / posting date
1808* [List](list.html): When the list was prepared
1809* [MeasureReport](measurereport.html): The date of the measure report
1810* [NutritionIntake](nutritionintake.html): Date when patient was taking (or not taking) the medication
1811* [Observation](observation.html): Clinically relevant time/time-period for observation
1812* [Procedure](procedure.html): When the procedure occurred or is occurring
1813* [ResearchSubject](researchsubject.html): Start and end of participation
1814* [RiskAssessment](riskassessment.html): When was assessment made?
1815* [SupplyRequest](supplyrequest.html): When the request was made
1816</b><br>
1817   * Type: <b>date</b><br>
1818   * Path: <b>AdverseEvent.occurrence.ofType(dateTime) | AdverseEvent.occurrence.ofType(Period) | AdverseEvent.occurrence.ofType(Timing) | AllergyIntolerance.recordedDate | (start | requestedPeriod.start).first() | AuditEvent.recorded | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.date | DiagnosticReport.effective.ofType(dateTime) | DiagnosticReport.effective.ofType(Period) | DocumentReference.date | Encounter.actualPeriod | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence.ofType(dateTime)) | ImmunizationEvaluation.date | ImmunizationRecommendation.date | Invoice.date | List.date | MeasureReport.date | NutritionIntake.occurrence.ofType(dateTime) | NutritionIntake.occurrence.ofType(Period) | Observation.effective.ofType(dateTime) | Observation.effective.ofType(Period) | Observation.effective.ofType(Timing) | Observation.effective.ofType(instant) | Procedure.occurrence.ofType(dateTime) | Procedure.occurrence.ofType(Period) | Procedure.occurrence.ofType(Timing) | ResearchSubject.period | (RiskAssessment.occurrence.ofType(dateTime)) | SupplyRequest.authoredOn</b><br>
1819   * </p>
1820   */
1821  public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE);
1822
1823 /**
1824   * Search parameter: <b>encounter</b>
1825   * <p>
1826   * Description: <b>Multiple Resources: 
1827
1828* [AuditEvent](auditevent.html): Encounter related to the activity recorded in the AuditEvent
1829* [CarePlan](careplan.html): The Encounter during which this CarePlan was created
1830* [ChargeItem](chargeitem.html): Encounter associated with event
1831* [Claim](claim.html): Encounters associated with a billed line item
1832* [ClinicalImpression](clinicalimpression.html): The Encounter during which this ClinicalImpression was created
1833* [Communication](communication.html): The Encounter during which this Communication was created
1834* [CommunicationRequest](communicationrequest.html): The Encounter during which this CommunicationRequest was created
1835* [Composition](composition.html): Context of the Composition
1836* [Condition](condition.html): The Encounter during which this Condition was created
1837* [DeviceRequest](devicerequest.html): Encounter during which request was created
1838* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made
1839* [EncounterHistory](encounterhistory.html): The Encounter associated with this set of history values
1840* [ExplanationOfBenefit](explanationofbenefit.html): Encounters associated with a billed line item
1841* [Flag](flag.html): Alert relevant during encounter
1842* [ImagingStudy](imagingstudy.html): The context of the study
1843* [List](list.html): Context in which list created
1844* [MedicationDispense](medicationdispense.html): Returns dispenses with a specific encounter
1845* [MedicationStatement](medicationstatement.html): Returns statements for a specific encounter
1846* [NutritionIntake](nutritionintake.html): Returns statements for a specific encounter
1847* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier
1848* [Observation](observation.html): Encounter related to the observation
1849* [Procedure](procedure.html): The Encounter during which this Procedure was created
1850* [Provenance](provenance.html): Encounter related to the Provenance
1851* [QuestionnaireResponse](questionnaireresponse.html): Encounter associated with the questionnaire response
1852* [RequestOrchestration](requestorchestration.html): The encounter the request orchestration applies to
1853* [RiskAssessment](riskassessment.html): Where was assessment performed?
1854* [ServiceRequest](servicerequest.html): An encounter in which this request is made
1855* [Task](task.html): Search by encounter
1856* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier
1857</b><br>
1858   * Type: <b>reference</b><br>
1859   * Path: <b>AuditEvent.encounter | CarePlan.encounter | ChargeItem.encounter | Claim.item.encounter | ClinicalImpression.encounter | Communication.encounter | CommunicationRequest.encounter | Composition.encounter | Condition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | EncounterHistory.encounter | ExplanationOfBenefit.item.encounter | Flag.encounter | ImagingStudy.encounter | List.encounter | MedicationDispense.encounter | MedicationStatement.encounter | NutritionIntake.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | Provenance.encounter | QuestionnaireResponse.encounter | RequestOrchestration.encounter | RiskAssessment.encounter | ServiceRequest.encounter | Task.encounter | VisionPrescription.encounter</b><br>
1860   * </p>
1861   */
1862  @SearchParamDefinition(name="encounter", path="AuditEvent.encounter | CarePlan.encounter | ChargeItem.encounter | Claim.item.encounter | ClinicalImpression.encounter | Communication.encounter | CommunicationRequest.encounter | Composition.encounter | Condition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | EncounterHistory.encounter | ExplanationOfBenefit.item.encounter | Flag.encounter | ImagingStudy.encounter | List.encounter | MedicationDispense.encounter | MedicationStatement.encounter | NutritionIntake.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | Provenance.encounter | QuestionnaireResponse.encounter | RequestOrchestration.encounter | RiskAssessment.encounter | ServiceRequest.encounter | Task.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [AuditEvent](auditevent.html): Encounter related to the activity recorded in the AuditEvent\r\n* [CarePlan](careplan.html): The Encounter during which this CarePlan was created\r\n* [ChargeItem](chargeitem.html): Encounter associated with event\r\n* [Claim](claim.html): Encounters associated with a billed line item\r\n* [ClinicalImpression](clinicalimpression.html): The Encounter during which this ClinicalImpression was created\r\n* [Communication](communication.html): The Encounter during which this Communication was created\r\n* [CommunicationRequest](communicationrequest.html): The Encounter during which this CommunicationRequest was created\r\n* [Composition](composition.html): Context of the Composition\r\n* [Condition](condition.html): The Encounter during which this Condition was created\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* [EncounterHistory](encounterhistory.html): The Encounter associated with this set of history values\r\n* [ExplanationOfBenefit](explanationofbenefit.html): Encounters associated with a billed line item\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [ImagingStudy](imagingstudy.html): The context of the study\r\n* [List](list.html): Context in which list created\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with a specific encounter\r\n* [MedicationStatement](medicationstatement.html): Returns statements for a specific encounter\r\n* [NutritionIntake](nutritionintake.html): Returns statements for a specific encounter\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* [Provenance](provenance.html): Encounter related to the Provenance\r\n* [QuestionnaireResponse](questionnaireresponse.html): Encounter associated with the questionnaire response\r\n* [RequestOrchestration](requestorchestration.html): The encounter the request orchestration applies to\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [Task](task.html): Search by encounter\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", target={Encounter.class } )
1863  public static final String SP_ENCOUNTER = "encounter";
1864 /**
1865   * <b>Fluent Client</b> search parameter constant for <b>encounter</b>
1866   * <p>
1867   * Description: <b>Multiple Resources: 
1868
1869* [AuditEvent](auditevent.html): Encounter related to the activity recorded in the AuditEvent
1870* [CarePlan](careplan.html): The Encounter during which this CarePlan was created
1871* [ChargeItem](chargeitem.html): Encounter associated with event
1872* [Claim](claim.html): Encounters associated with a billed line item
1873* [ClinicalImpression](clinicalimpression.html): The Encounter during which this ClinicalImpression was created
1874* [Communication](communication.html): The Encounter during which this Communication was created
1875* [CommunicationRequest](communicationrequest.html): The Encounter during which this CommunicationRequest was created
1876* [Composition](composition.html): Context of the Composition
1877* [Condition](condition.html): The Encounter during which this Condition was created
1878* [DeviceRequest](devicerequest.html): Encounter during which request was created
1879* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made
1880* [EncounterHistory](encounterhistory.html): The Encounter associated with this set of history values
1881* [ExplanationOfBenefit](explanationofbenefit.html): Encounters associated with a billed line item
1882* [Flag](flag.html): Alert relevant during encounter
1883* [ImagingStudy](imagingstudy.html): The context of the study
1884* [List](list.html): Context in which list created
1885* [MedicationDispense](medicationdispense.html): Returns dispenses with a specific encounter
1886* [MedicationStatement](medicationstatement.html): Returns statements for a specific encounter
1887* [NutritionIntake](nutritionintake.html): Returns statements for a specific encounter
1888* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier
1889* [Observation](observation.html): Encounter related to the observation
1890* [Procedure](procedure.html): The Encounter during which this Procedure was created
1891* [Provenance](provenance.html): Encounter related to the Provenance
1892* [QuestionnaireResponse](questionnaireresponse.html): Encounter associated with the questionnaire response
1893* [RequestOrchestration](requestorchestration.html): The encounter the request orchestration applies to
1894* [RiskAssessment](riskassessment.html): Where was assessment performed?
1895* [ServiceRequest](servicerequest.html): An encounter in which this request is made
1896* [Task](task.html): Search by encounter
1897* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier
1898</b><br>
1899   * Type: <b>reference</b><br>
1900   * Path: <b>AuditEvent.encounter | CarePlan.encounter | ChargeItem.encounter | Claim.item.encounter | ClinicalImpression.encounter | Communication.encounter | CommunicationRequest.encounter | Composition.encounter | Condition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | EncounterHistory.encounter | ExplanationOfBenefit.item.encounter | Flag.encounter | ImagingStudy.encounter | List.encounter | MedicationDispense.encounter | MedicationStatement.encounter | NutritionIntake.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | Provenance.encounter | QuestionnaireResponse.encounter | RequestOrchestration.encounter | RiskAssessment.encounter | ServiceRequest.encounter | Task.encounter | VisionPrescription.encounter</b><br>
1901   * </p>
1902   */
1903  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER);
1904
1905/**
1906   * Constant for fluent queries to be used to add include statements. Specifies
1907   * the path value of "<b>List:encounter</b>".
1908   */
1909  public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("List:encounter").toLocked();
1910
1911 /**
1912   * Search parameter: <b>identifier</b>
1913   * <p>
1914   * Description: <b>Multiple Resources: 
1915
1916* [Account](account.html): Account number
1917* [AdverseEvent](adverseevent.html): Business identifier for the event
1918* [AllergyIntolerance](allergyintolerance.html): External ids for this item
1919* [Appointment](appointment.html): An Identifier of the Appointment
1920* [AppointmentResponse](appointmentresponse.html): An Identifier in this appointment response
1921* [Basic](basic.html): Business identifier
1922* [BodyStructure](bodystructure.html): Bodystructure identifier
1923* [CarePlan](careplan.html): External Ids for this plan
1924* [CareTeam](careteam.html): External Ids for this team
1925* [ChargeItem](chargeitem.html): Business Identifier for item
1926* [Claim](claim.html): The primary identifier of the financial resource
1927* [ClaimResponse](claimresponse.html): The identity of the ClaimResponse
1928* [ClinicalImpression](clinicalimpression.html): Business identifier
1929* [Communication](communication.html): Unique identifier
1930* [CommunicationRequest](communicationrequest.html): Unique identifier
1931* [Composition](composition.html): Version-independent identifier for the Composition
1932* [Condition](condition.html): A unique identifier of the condition record
1933* [Consent](consent.html): Identifier for this record (external references)
1934* [Contract](contract.html): The identity of the contract
1935* [Coverage](coverage.html): The primary identifier of the insured and the coverage
1936* [CoverageEligibilityRequest](coverageeligibilityrequest.html): The business identifier of the Eligibility
1937* [CoverageEligibilityResponse](coverageeligibilityresponse.html): The business identifier
1938* [DetectedIssue](detectedissue.html): Unique id for the detected issue
1939* [DeviceRequest](devicerequest.html): Business identifier for request/order
1940* [DeviceUsage](deviceusage.html): Search by identifier
1941* [DiagnosticReport](diagnosticreport.html): An identifier for the report
1942* [DocumentReference](documentreference.html): Identifier of the attachment binary
1943* [Encounter](encounter.html): Identifier(s) by which this encounter is known
1944* [EnrollmentRequest](enrollmentrequest.html): The business identifier of the Enrollment
1945* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare
1946* [ExplanationOfBenefit](explanationofbenefit.html): The business identifier of the Explanation of Benefit
1947* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier
1948* [Flag](flag.html): Business identifier
1949* [Goal](goal.html): External Ids for this goal
1950* [GuidanceResponse](guidanceresponse.html): The identifier of the guidance response
1951* [ImagingSelection](imagingselection.html): Identifiers for the imaging selection
1952* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID
1953* [Immunization](immunization.html): Business identifier
1954* [ImmunizationEvaluation](immunizationevaluation.html): ID of the evaluation
1955* [ImmunizationRecommendation](immunizationrecommendation.html): Business identifier
1956* [Invoice](invoice.html): Business Identifier for item
1957* [List](list.html): Business identifier
1958* [MeasureReport](measurereport.html): External identifier of the measure report to be returned
1959* [Medication](medication.html): Returns medications with this external identifier
1960* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier
1961* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier
1962* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier
1963* [MedicationStatement](medicationstatement.html): Return statements with this external identifier
1964* [MolecularSequence](molecularsequence.html): The unique identity for a particular sequence
1965* [NutritionIntake](nutritionintake.html): Return statements with this external identifier
1966* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier
1967* [Observation](observation.html): The unique id for a particular observation
1968* [Person](person.html): A person Identifier
1969* [Procedure](procedure.html): A unique identifier for a procedure
1970* [QuestionnaireResponse](questionnaireresponse.html): The unique identifier for the questionnaire response
1971* [RelatedPerson](relatedperson.html): An Identifier of the RelatedPerson
1972* [RequestOrchestration](requestorchestration.html): External identifiers for the request orchestration
1973* [ResearchSubject](researchsubject.html): Business Identifier for research subject in a study
1974* [RiskAssessment](riskassessment.html): Unique identifier for the assessment
1975* [ServiceRequest](servicerequest.html): Identifiers assigned to this order
1976* [Specimen](specimen.html): The unique identifier associated with the specimen
1977* [SupplyDelivery](supplydelivery.html): External identifier
1978* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest
1979* [Task](task.html): Search for a task instance by its business identifier
1980* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier
1981</b><br>
1982   * Type: <b>token</b><br>
1983   * Path: <b>Account.identifier | AdverseEvent.identifier | AllergyIntolerance.identifier | Appointment.identifier | AppointmentResponse.identifier | Basic.identifier | BodyStructure.identifier | CarePlan.identifier | CareTeam.identifier | ChargeItem.identifier | Claim.identifier | ClaimResponse.identifier | ClinicalImpression.identifier | Communication.identifier | CommunicationRequest.identifier | Composition.identifier | Condition.identifier | Consent.identifier | Contract.identifier | Coverage.identifier | CoverageEligibilityRequest.identifier | CoverageEligibilityResponse.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DeviceUsage.identifier | DiagnosticReport.identifier | DocumentReference.identifier | Encounter.identifier | EnrollmentRequest.identifier | EpisodeOfCare.identifier | ExplanationOfBenefit.identifier | FamilyMemberHistory.identifier | Flag.identifier | Goal.identifier | GuidanceResponse.identifier | ImagingSelection.identifier | ImagingStudy.identifier | Immunization.identifier | ImmunizationEvaluation.identifier | ImmunizationRecommendation.identifier | Invoice.identifier | List.identifier | MeasureReport.identifier | Medication.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | MolecularSequence.identifier | NutritionIntake.identifier | NutritionOrder.identifier | Observation.identifier | Person.identifier | Procedure.identifier | QuestionnaireResponse.identifier | RelatedPerson.identifier | RequestOrchestration.identifier | ResearchSubject.identifier | RiskAssessment.identifier | ServiceRequest.identifier | Specimen.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | Task.identifier | VisionPrescription.identifier</b><br>
1984   * </p>
1985   */
1986  @SearchParamDefinition(name="identifier", path="Account.identifier | AdverseEvent.identifier | AllergyIntolerance.identifier | Appointment.identifier | AppointmentResponse.identifier | Basic.identifier | BodyStructure.identifier | CarePlan.identifier | CareTeam.identifier | ChargeItem.identifier | Claim.identifier | ClaimResponse.identifier | ClinicalImpression.identifier | Communication.identifier | CommunicationRequest.identifier | Composition.identifier | Condition.identifier | Consent.identifier | Contract.identifier | Coverage.identifier | CoverageEligibilityRequest.identifier | CoverageEligibilityResponse.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DeviceUsage.identifier | DiagnosticReport.identifier | DocumentReference.identifier | Encounter.identifier | EnrollmentRequest.identifier | EpisodeOfCare.identifier | ExplanationOfBenefit.identifier | FamilyMemberHistory.identifier | Flag.identifier | Goal.identifier | GuidanceResponse.identifier | ImagingSelection.identifier | ImagingStudy.identifier | Immunization.identifier | ImmunizationEvaluation.identifier | ImmunizationRecommendation.identifier | Invoice.identifier | List.identifier | MeasureReport.identifier | Medication.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | MolecularSequence.identifier | NutritionIntake.identifier | NutritionOrder.identifier | Observation.identifier | Person.identifier | Procedure.identifier | QuestionnaireResponse.identifier | RelatedPerson.identifier | RequestOrchestration.identifier | ResearchSubject.identifier | RiskAssessment.identifier | ServiceRequest.identifier | Specimen.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | Task.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [Account](account.html): Account number\r\n* [AdverseEvent](adverseevent.html): Business identifier for the event\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [Appointment](appointment.html): An Identifier of the Appointment\r\n* [AppointmentResponse](appointmentresponse.html): An Identifier in this appointment response\r\n* [Basic](basic.html): Business identifier\r\n* [BodyStructure](bodystructure.html): Bodystructure identifier\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [ChargeItem](chargeitem.html): Business Identifier for item\r\n* [Claim](claim.html): The primary identifier of the financial resource\r\n* [ClaimResponse](claimresponse.html): The identity of the ClaimResponse\r\n* [ClinicalImpression](clinicalimpression.html): Business identifier\r\n* [Communication](communication.html): Unique identifier\r\n* [CommunicationRequest](communicationrequest.html): Unique identifier\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* [Contract](contract.html): The identity of the contract\r\n* [Coverage](coverage.html): The primary identifier of the insured and the coverage\r\n* [CoverageEligibilityRequest](coverageeligibilityrequest.html): The business identifier of the Eligibility\r\n* [CoverageEligibilityResponse](coverageeligibilityresponse.html): The business identifier\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DeviceUsage](deviceusage.html): Search by identifier\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EnrollmentRequest](enrollmentrequest.html): The business identifier of the Enrollment\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [ExplanationOfBenefit](explanationofbenefit.html): The business identifier of the Explanation of Benefit\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Flag](flag.html): Business identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [GuidanceResponse](guidanceresponse.html): The identifier of the guidance response\r\n* [ImagingSelection](imagingselection.html): Identifiers for the imaging selection\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [ImmunizationEvaluation](immunizationevaluation.html): ID of the evaluation\r\n* [ImmunizationRecommendation](immunizationrecommendation.html): Business identifier\r\n* [Invoice](invoice.html): Business Identifier for item\r\n* [List](list.html): Business identifier\r\n* [MeasureReport](measurereport.html): External identifier of the measure report to be returned\r\n* [Medication](medication.html): Returns medications with this external 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* [MedicationStatement](medicationstatement.html): Return statements with this external identifier\r\n* [MolecularSequence](molecularsequence.html): The unique identity for a particular sequence\r\n* [NutritionIntake](nutritionintake.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* [Person](person.html): A person Identifier\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [QuestionnaireResponse](questionnaireresponse.html): The unique identifier for the questionnaire response\r\n* [RelatedPerson](relatedperson.html): An Identifier of the RelatedPerson\r\n* [RequestOrchestration](requestorchestration.html): External identifiers for the request orchestration\r\n* [ResearchSubject](researchsubject.html): Business Identifier for research subject in a study\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [Specimen](specimen.html): The unique identifier associated with the specimen\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [Task](task.html): Search for a task instance by its business identifier\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" )
1987  public static final String SP_IDENTIFIER = "identifier";
1988 /**
1989   * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
1990   * <p>
1991   * Description: <b>Multiple Resources: 
1992
1993* [Account](account.html): Account number
1994* [AdverseEvent](adverseevent.html): Business identifier for the event
1995* [AllergyIntolerance](allergyintolerance.html): External ids for this item
1996* [Appointment](appointment.html): An Identifier of the Appointment
1997* [AppointmentResponse](appointmentresponse.html): An Identifier in this appointment response
1998* [Basic](basic.html): Business identifier
1999* [BodyStructure](bodystructure.html): Bodystructure identifier
2000* [CarePlan](careplan.html): External Ids for this plan
2001* [CareTeam](careteam.html): External Ids for this team
2002* [ChargeItem](chargeitem.html): Business Identifier for item
2003* [Claim](claim.html): The primary identifier of the financial resource
2004* [ClaimResponse](claimresponse.html): The identity of the ClaimResponse
2005* [ClinicalImpression](clinicalimpression.html): Business identifier
2006* [Communication](communication.html): Unique identifier
2007* [CommunicationRequest](communicationrequest.html): Unique identifier
2008* [Composition](composition.html): Version-independent identifier for the Composition
2009* [Condition](condition.html): A unique identifier of the condition record
2010* [Consent](consent.html): Identifier for this record (external references)
2011* [Contract](contract.html): The identity of the contract
2012* [Coverage](coverage.html): The primary identifier of the insured and the coverage
2013* [CoverageEligibilityRequest](coverageeligibilityrequest.html): The business identifier of the Eligibility
2014* [CoverageEligibilityResponse](coverageeligibilityresponse.html): The business identifier
2015* [DetectedIssue](detectedissue.html): Unique id for the detected issue
2016* [DeviceRequest](devicerequest.html): Business identifier for request/order
2017* [DeviceUsage](deviceusage.html): Search by identifier
2018* [DiagnosticReport](diagnosticreport.html): An identifier for the report
2019* [DocumentReference](documentreference.html): Identifier of the attachment binary
2020* [Encounter](encounter.html): Identifier(s) by which this encounter is known
2021* [EnrollmentRequest](enrollmentrequest.html): The business identifier of the Enrollment
2022* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare
2023* [ExplanationOfBenefit](explanationofbenefit.html): The business identifier of the Explanation of Benefit
2024* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier
2025* [Flag](flag.html): Business identifier
2026* [Goal](goal.html): External Ids for this goal
2027* [GuidanceResponse](guidanceresponse.html): The identifier of the guidance response
2028* [ImagingSelection](imagingselection.html): Identifiers for the imaging selection
2029* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID
2030* [Immunization](immunization.html): Business identifier
2031* [ImmunizationEvaluation](immunizationevaluation.html): ID of the evaluation
2032* [ImmunizationRecommendation](immunizationrecommendation.html): Business identifier
2033* [Invoice](invoice.html): Business Identifier for item
2034* [List](list.html): Business identifier
2035* [MeasureReport](measurereport.html): External identifier of the measure report to be returned
2036* [Medication](medication.html): Returns medications with this external identifier
2037* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier
2038* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier
2039* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier
2040* [MedicationStatement](medicationstatement.html): Return statements with this external identifier
2041* [MolecularSequence](molecularsequence.html): The unique identity for a particular sequence
2042* [NutritionIntake](nutritionintake.html): Return statements with this external identifier
2043* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier
2044* [Observation](observation.html): The unique id for a particular observation
2045* [Person](person.html): A person Identifier
2046* [Procedure](procedure.html): A unique identifier for a procedure
2047* [QuestionnaireResponse](questionnaireresponse.html): The unique identifier for the questionnaire response
2048* [RelatedPerson](relatedperson.html): An Identifier of the RelatedPerson
2049* [RequestOrchestration](requestorchestration.html): External identifiers for the request orchestration
2050* [ResearchSubject](researchsubject.html): Business Identifier for research subject in a study
2051* [RiskAssessment](riskassessment.html): Unique identifier for the assessment
2052* [ServiceRequest](servicerequest.html): Identifiers assigned to this order
2053* [Specimen](specimen.html): The unique identifier associated with the specimen
2054* [SupplyDelivery](supplydelivery.html): External identifier
2055* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest
2056* [Task](task.html): Search for a task instance by its business identifier
2057* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier
2058</b><br>
2059   * Type: <b>token</b><br>
2060   * Path: <b>Account.identifier | AdverseEvent.identifier | AllergyIntolerance.identifier | Appointment.identifier | AppointmentResponse.identifier | Basic.identifier | BodyStructure.identifier | CarePlan.identifier | CareTeam.identifier | ChargeItem.identifier | Claim.identifier | ClaimResponse.identifier | ClinicalImpression.identifier | Communication.identifier | CommunicationRequest.identifier | Composition.identifier | Condition.identifier | Consent.identifier | Contract.identifier | Coverage.identifier | CoverageEligibilityRequest.identifier | CoverageEligibilityResponse.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DeviceUsage.identifier | DiagnosticReport.identifier | DocumentReference.identifier | Encounter.identifier | EnrollmentRequest.identifier | EpisodeOfCare.identifier | ExplanationOfBenefit.identifier | FamilyMemberHistory.identifier | Flag.identifier | Goal.identifier | GuidanceResponse.identifier | ImagingSelection.identifier | ImagingStudy.identifier | Immunization.identifier | ImmunizationEvaluation.identifier | ImmunizationRecommendation.identifier | Invoice.identifier | List.identifier | MeasureReport.identifier | Medication.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | MolecularSequence.identifier | NutritionIntake.identifier | NutritionOrder.identifier | Observation.identifier | Person.identifier | Procedure.identifier | QuestionnaireResponse.identifier | RelatedPerson.identifier | RequestOrchestration.identifier | ResearchSubject.identifier | RiskAssessment.identifier | ServiceRequest.identifier | Specimen.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | Task.identifier | VisionPrescription.identifier</b><br>
2061   * </p>
2062   */
2063  public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
2064
2065 /**
2066   * Search parameter: <b>patient</b>
2067   * <p>
2068   * Description: <b>Multiple Resources: 
2069
2070* [Account](account.html): The entity that caused the expenses
2071* [AdverseEvent](adverseevent.html): Subject impacted by event
2072* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for
2073* [Appointment](appointment.html): One of the individuals of the appointment is this patient
2074* [AppointmentResponse](appointmentresponse.html): This Response is for this Patient
2075* [AuditEvent](auditevent.html): Where the activity involved patient data
2076* [Basic](basic.html): Identifies the focus of this resource
2077* [BodyStructure](bodystructure.html): Who this is about
2078* [CarePlan](careplan.html): Who the care plan is for
2079* [CareTeam](careteam.html): Who care team is for
2080* [ChargeItem](chargeitem.html): Individual service was done for/to
2081* [Claim](claim.html): Patient receiving the products or services
2082* [ClaimResponse](claimresponse.html): The subject of care
2083* [ClinicalImpression](clinicalimpression.html): Patient assessed
2084* [Communication](communication.html): Focus of message
2085* [CommunicationRequest](communicationrequest.html): Focus of message
2086* [Composition](composition.html): Who and/or what the composition is about
2087* [Condition](condition.html): Who has the condition?
2088* [Consent](consent.html): Who the consent applies to
2089* [Contract](contract.html): The identity of the subject of the contract (if a patient)
2090* [Coverage](coverage.html): Retrieve coverages for a patient
2091* [CoverageEligibilityRequest](coverageeligibilityrequest.html): The reference to the patient
2092* [CoverageEligibilityResponse](coverageeligibilityresponse.html): The reference to the patient
2093* [DetectedIssue](detectedissue.html): Associated patient
2094* [DeviceRequest](devicerequest.html): Individual the service is ordered for
2095* [DeviceUsage](deviceusage.html): Search by patient who used / uses the device
2096* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient
2097* [DocumentReference](documentreference.html): Who/what is the subject of the document
2098* [Encounter](encounter.html): The patient present at the encounter
2099* [EnrollmentRequest](enrollmentrequest.html): The party to be enrolled
2100* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care
2101* [ExplanationOfBenefit](explanationofbenefit.html): The reference to the patient
2102* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for
2103* [Flag](flag.html): The identity of a subject to list flags for
2104* [Goal](goal.html): Who this goal is intended for
2105* [GuidanceResponse](guidanceresponse.html): The identity of a patient to search for guidance response results
2106* [ImagingSelection](imagingselection.html): Who the study is about
2107* [ImagingStudy](imagingstudy.html): Who the study is about
2108* [Immunization](immunization.html): The patient for the vaccination record
2109* [ImmunizationEvaluation](immunizationevaluation.html): The patient being evaluated
2110* [ImmunizationRecommendation](immunizationrecommendation.html): Who this profile is for
2111* [Invoice](invoice.html): Recipient(s) of goods and services
2112* [List](list.html): If all resources have the same subject
2113* [MeasureReport](measurereport.html): The identity of a patient to search for individual measure report results for
2114* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations  for
2115* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses  for
2116* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient
2117* [MedicationStatement](medicationstatement.html): Returns statements for a specific patient.
2118* [MolecularSequence](molecularsequence.html): The subject that the sequence is about
2119* [NutritionIntake](nutritionintake.html): Returns statements for a specific patient.
2120* [NutritionOrder](nutritionorder.html): The identity of the individual or set of individuals who requires the diet, formula or nutritional supplement
2121* [Observation](observation.html): The subject that the observation is about (if patient)
2122* [Person](person.html): The Person links to this Patient
2123* [Procedure](procedure.html): Search by subject - a patient
2124* [Provenance](provenance.html): Where the activity involved patient data
2125* [QuestionnaireResponse](questionnaireresponse.html): The patient that is the subject of the questionnaire response
2126* [RelatedPerson](relatedperson.html): The patient this related person is related to
2127* [RequestOrchestration](requestorchestration.html): The identity of a patient to search for request orchestrations
2128* [ResearchSubject](researchsubject.html): Who or what is part of study
2129* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?
2130* [ServiceRequest](servicerequest.html): Search by subject - a patient
2131* [Specimen](specimen.html): The patient the specimen comes from
2132* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied
2133* [SupplyRequest](supplyrequest.html): The patient or subject for whom the supply is destined
2134* [Task](task.html): Search by patient
2135* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for
2136</b><br>
2137   * Type: <b>reference</b><br>
2138   * Path: <b>Account.subject.where(resolve() is Patient) | AdverseEvent.subject.where(resolve() is Patient) | AllergyIntolerance.patient | Appointment.participant.actor.where(resolve() is Patient) | Appointment.subject.where(resolve() is Patient) | AppointmentResponse.actor.where(resolve() is Patient) | AuditEvent.patient | Basic.subject.where(resolve() is Patient) | BodyStructure.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ChargeItem.subject.where(resolve() is Patient) | Claim.patient | ClaimResponse.patient | ClinicalImpression.subject.where(resolve() is Patient) | Communication.subject.where(resolve() is Patient) | CommunicationRequest.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | Contract.subject.where(resolve() is Patient) | Coverage.beneficiary | CoverageEligibilityRequest.patient | CoverageEligibilityResponse.patient | DetectedIssue.subject.where(resolve() is Patient) | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.patient | DiagnosticReport.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EnrollmentRequest.candidate | EpisodeOfCare.patient | ExplanationOfBenefit.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | GuidanceResponse.subject.where(resolve() is Patient) | ImagingSelection.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | ImmunizationEvaluation.patient | ImmunizationRecommendation.patient | Invoice.subject.where(resolve() is Patient) | List.subject.where(resolve() is Patient) | MeasureReport.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | MolecularSequence.subject.where(resolve() is Patient) | NutritionIntake.subject.where(resolve() is Patient) | NutritionOrder.subject.where(resolve() is Patient) | Observation.subject.where(resolve() is Patient) | Person.link.target.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | Provenance.patient | QuestionnaireResponse.subject.where(resolve() is Patient) | RelatedPerson.patient | RequestOrchestration.subject.where(resolve() is Patient) | ResearchSubject.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | Specimen.subject.where(resolve() is Patient) | SupplyDelivery.patient | SupplyRequest.deliverFor | Task.for.where(resolve() is Patient) | VisionPrescription.patient</b><br>
2139   * </p>
2140   */
2141  @SearchParamDefinition(name="patient", path="Account.subject.where(resolve() is Patient) | AdverseEvent.subject.where(resolve() is Patient) | AllergyIntolerance.patient | Appointment.participant.actor.where(resolve() is Patient) | Appointment.subject.where(resolve() is Patient) | AppointmentResponse.actor.where(resolve() is Patient) | AuditEvent.patient | Basic.subject.where(resolve() is Patient) | BodyStructure.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ChargeItem.subject.where(resolve() is Patient) | Claim.patient | ClaimResponse.patient | ClinicalImpression.subject.where(resolve() is Patient) | Communication.subject.where(resolve() is Patient) | CommunicationRequest.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | Contract.subject.where(resolve() is Patient) | Coverage.beneficiary | CoverageEligibilityRequest.patient | CoverageEligibilityResponse.patient | DetectedIssue.subject.where(resolve() is Patient) | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.patient | DiagnosticReport.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EnrollmentRequest.candidate | EpisodeOfCare.patient | ExplanationOfBenefit.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | GuidanceResponse.subject.where(resolve() is Patient) | ImagingSelection.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | ImmunizationEvaluation.patient | ImmunizationRecommendation.patient | Invoice.subject.where(resolve() is Patient) | List.subject.where(resolve() is Patient) | MeasureReport.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | MolecularSequence.subject.where(resolve() is Patient) | NutritionIntake.subject.where(resolve() is Patient) | NutritionOrder.subject.where(resolve() is Patient) | Observation.subject.where(resolve() is Patient) | Person.link.target.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | Provenance.patient | QuestionnaireResponse.subject.where(resolve() is Patient) | RelatedPerson.patient | RequestOrchestration.subject.where(resolve() is Patient) | ResearchSubject.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | Specimen.subject.where(resolve() is Patient) | SupplyDelivery.patient | SupplyRequest.deliverFor | Task.for.where(resolve() is Patient) | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [Account](account.html): The entity that caused the expenses\r\n* [AdverseEvent](adverseevent.html): Subject impacted by event\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [Appointment](appointment.html): One of the individuals of the appointment is this patient\r\n* [AppointmentResponse](appointmentresponse.html): This Response is for this Patient\r\n* [AuditEvent](auditevent.html): Where the activity involved patient data\r\n* [Basic](basic.html): Identifies the focus of this resource\r\n* [BodyStructure](bodystructure.html): Who this is about\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ChargeItem](chargeitem.html): Individual service was done for/to\r\n* [Claim](claim.html): Patient receiving the products or services\r\n* [ClaimResponse](claimresponse.html): The subject of care\r\n* [ClinicalImpression](clinicalimpression.html): Patient assessed\r\n* [Communication](communication.html): Focus of message\r\n* [CommunicationRequest](communicationrequest.html): Focus of message\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* [Contract](contract.html): The identity of the subject of the contract (if a patient)\r\n* [Coverage](coverage.html): Retrieve coverages for a patient\r\n* [CoverageEligibilityRequest](coverageeligibilityrequest.html): The reference to the patient\r\n* [CoverageEligibilityResponse](coverageeligibilityresponse.html): The reference to the patient\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by patient who used / uses the device\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient present at the encounter\r\n* [EnrollmentRequest](enrollmentrequest.html): The party to be enrolled\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [ExplanationOfBenefit](explanationofbenefit.html): The reference to the patient\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* [GuidanceResponse](guidanceresponse.html): The identity of a patient to search for guidance response results\r\n* [ImagingSelection](imagingselection.html): Who the study is about\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [ImmunizationEvaluation](immunizationevaluation.html): The patient being evaluated\r\n* [ImmunizationRecommendation](immunizationrecommendation.html): Who this profile is for\r\n* [Invoice](invoice.html): Recipient(s) of goods and services\r\n* [List](list.html): If all resources have the same subject\r\n* [MeasureReport](measurereport.html): The identity of a patient to search for individual measure report results for\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* [MedicationStatement](medicationstatement.html): Returns statements for a specific patient.\r\n* [MolecularSequence](molecularsequence.html): The subject that the sequence is about\r\n* [NutritionIntake](nutritionintake.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the individual or set of individuals who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Person](person.html): The Person links to this Patient\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [Provenance](provenance.html): Where the activity involved patient data\r\n* [QuestionnaireResponse](questionnaireresponse.html): The patient that is the subject of the questionnaire response\r\n* [RelatedPerson](relatedperson.html): The patient this related person is related to\r\n* [RequestOrchestration](requestorchestration.html): The identity of a patient to search for request orchestrations\r\n* [ResearchSubject](researchsubject.html): Who or what is part of study\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [Specimen](specimen.html): The patient the specimen comes from\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [SupplyRequest](supplyrequest.html): The patient or subject for whom the supply is destined\r\n* [Task](task.html): Search by patient\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Patient.class } )
2142  public static final String SP_PATIENT = "patient";
2143 /**
2144   * <b>Fluent Client</b> search parameter constant for <b>patient</b>
2145   * <p>
2146   * Description: <b>Multiple Resources: 
2147
2148* [Account](account.html): The entity that caused the expenses
2149* [AdverseEvent](adverseevent.html): Subject impacted by event
2150* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for
2151* [Appointment](appointment.html): One of the individuals of the appointment is this patient
2152* [AppointmentResponse](appointmentresponse.html): This Response is for this Patient
2153* [AuditEvent](auditevent.html): Where the activity involved patient data
2154* [Basic](basic.html): Identifies the focus of this resource
2155* [BodyStructure](bodystructure.html): Who this is about
2156* [CarePlan](careplan.html): Who the care plan is for
2157* [CareTeam](careteam.html): Who care team is for
2158* [ChargeItem](chargeitem.html): Individual service was done for/to
2159* [Claim](claim.html): Patient receiving the products or services
2160* [ClaimResponse](claimresponse.html): The subject of care
2161* [ClinicalImpression](clinicalimpression.html): Patient assessed
2162* [Communication](communication.html): Focus of message
2163* [CommunicationRequest](communicationrequest.html): Focus of message
2164* [Composition](composition.html): Who and/or what the composition is about
2165* [Condition](condition.html): Who has the condition?
2166* [Consent](consent.html): Who the consent applies to
2167* [Contract](contract.html): The identity of the subject of the contract (if a patient)
2168* [Coverage](coverage.html): Retrieve coverages for a patient
2169* [CoverageEligibilityRequest](coverageeligibilityrequest.html): The reference to the patient
2170* [CoverageEligibilityResponse](coverageeligibilityresponse.html): The reference to the patient
2171* [DetectedIssue](detectedissue.html): Associated patient
2172* [DeviceRequest](devicerequest.html): Individual the service is ordered for
2173* [DeviceUsage](deviceusage.html): Search by patient who used / uses the device
2174* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient
2175* [DocumentReference](documentreference.html): Who/what is the subject of the document
2176* [Encounter](encounter.html): The patient present at the encounter
2177* [EnrollmentRequest](enrollmentrequest.html): The party to be enrolled
2178* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care
2179* [ExplanationOfBenefit](explanationofbenefit.html): The reference to the patient
2180* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for
2181* [Flag](flag.html): The identity of a subject to list flags for
2182* [Goal](goal.html): Who this goal is intended for
2183* [GuidanceResponse](guidanceresponse.html): The identity of a patient to search for guidance response results
2184* [ImagingSelection](imagingselection.html): Who the study is about
2185* [ImagingStudy](imagingstudy.html): Who the study is about
2186* [Immunization](immunization.html): The patient for the vaccination record
2187* [ImmunizationEvaluation](immunizationevaluation.html): The patient being evaluated
2188* [ImmunizationRecommendation](immunizationrecommendation.html): Who this profile is for
2189* [Invoice](invoice.html): Recipient(s) of goods and services
2190* [List](list.html): If all resources have the same subject
2191* [MeasureReport](measurereport.html): The identity of a patient to search for individual measure report results for
2192* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations  for
2193* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses  for
2194* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient
2195* [MedicationStatement](medicationstatement.html): Returns statements for a specific patient.
2196* [MolecularSequence](molecularsequence.html): The subject that the sequence is about
2197* [NutritionIntake](nutritionintake.html): Returns statements for a specific patient.
2198* [NutritionOrder](nutritionorder.html): The identity of the individual or set of individuals who requires the diet, formula or nutritional supplement
2199* [Observation](observation.html): The subject that the observation is about (if patient)
2200* [Person](person.html): The Person links to this Patient
2201* [Procedure](procedure.html): Search by subject - a patient
2202* [Provenance](provenance.html): Where the activity involved patient data
2203* [QuestionnaireResponse](questionnaireresponse.html): The patient that is the subject of the questionnaire response
2204* [RelatedPerson](relatedperson.html): The patient this related person is related to
2205* [RequestOrchestration](requestorchestration.html): The identity of a patient to search for request orchestrations
2206* [ResearchSubject](researchsubject.html): Who or what is part of study
2207* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?
2208* [ServiceRequest](servicerequest.html): Search by subject - a patient
2209* [Specimen](specimen.html): The patient the specimen comes from
2210* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied
2211* [SupplyRequest](supplyrequest.html): The patient or subject for whom the supply is destined
2212* [Task](task.html): Search by patient
2213* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for
2214</b><br>
2215   * Type: <b>reference</b><br>
2216   * Path: <b>Account.subject.where(resolve() is Patient) | AdverseEvent.subject.where(resolve() is Patient) | AllergyIntolerance.patient | Appointment.participant.actor.where(resolve() is Patient) | Appointment.subject.where(resolve() is Patient) | AppointmentResponse.actor.where(resolve() is Patient) | AuditEvent.patient | Basic.subject.where(resolve() is Patient) | BodyStructure.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ChargeItem.subject.where(resolve() is Patient) | Claim.patient | ClaimResponse.patient | ClinicalImpression.subject.where(resolve() is Patient) | Communication.subject.where(resolve() is Patient) | CommunicationRequest.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | Contract.subject.where(resolve() is Patient) | Coverage.beneficiary | CoverageEligibilityRequest.patient | CoverageEligibilityResponse.patient | DetectedIssue.subject.where(resolve() is Patient) | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.patient | DiagnosticReport.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EnrollmentRequest.candidate | EpisodeOfCare.patient | ExplanationOfBenefit.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | GuidanceResponse.subject.where(resolve() is Patient) | ImagingSelection.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | ImmunizationEvaluation.patient | ImmunizationRecommendation.patient | Invoice.subject.where(resolve() is Patient) | List.subject.where(resolve() is Patient) | MeasureReport.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | MolecularSequence.subject.where(resolve() is Patient) | NutritionIntake.subject.where(resolve() is Patient) | NutritionOrder.subject.where(resolve() is Patient) | Observation.subject.where(resolve() is Patient) | Person.link.target.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | Provenance.patient | QuestionnaireResponse.subject.where(resolve() is Patient) | RelatedPerson.patient | RequestOrchestration.subject.where(resolve() is Patient) | ResearchSubject.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | Specimen.subject.where(resolve() is Patient) | SupplyDelivery.patient | SupplyRequest.deliverFor | Task.for.where(resolve() is Patient) | VisionPrescription.patient</b><br>
2217   * </p>
2218   */
2219  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT);
2220
2221/**
2222   * Constant for fluent queries to be used to add include statements. Specifies
2223   * the path value of "<b>List:patient</b>".
2224   */
2225  public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("List:patient").toLocked();
2226
2227
2228}
2229