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 * This resource provides the insurance enrollment details to the insurer regarding a specified coverage.
052 */
053@ResourceDef(name="EnrollmentRequest", profile="http://hl7.org/fhir/StructureDefinition/EnrollmentRequest")
054public class EnrollmentRequest extends DomainResource {
055
056    /**
057     * The Response business identifier.
058     */
059    @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
060    @Description(shortDefinition="Business Identifier", formalDefinition="The Response business identifier." )
061    protected List<Identifier> identifier;
062
063    /**
064     * The status of the resource instance.
065     */
066    @Child(name = "status", type = {CodeType.class}, order=1, min=0, max=1, modifier=true, summary=true)
067    @Description(shortDefinition="active | cancelled | draft | entered-in-error", formalDefinition="The status of the resource instance." )
068    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/fm-status")
069    protected Enumeration<FinancialResourceStatusCodes> status;
070
071    /**
072     * The date when this resource was created.
073     */
074    @Child(name = "created", type = {DateTimeType.class}, order=2, min=0, max=1, modifier=false, summary=false)
075    @Description(shortDefinition="Creation date", formalDefinition="The date when this resource was created." )
076    protected DateTimeType created;
077
078    /**
079     * The Insurer who is target  of the request.
080     */
081    @Child(name = "insurer", type = {Organization.class}, order=3, min=0, max=1, modifier=false, summary=false)
082    @Description(shortDefinition="Target", formalDefinition="The Insurer who is target  of the request." )
083    protected Reference insurer;
084
085    /**
086     * The practitioner who is responsible for the services rendered to the patient.
087     */
088    @Child(name = "provider", type = {Practitioner.class, PractitionerRole.class, Organization.class}, order=4, min=0, max=1, modifier=false, summary=false)
089    @Description(shortDefinition="Responsible practitioner", formalDefinition="The practitioner who is responsible for the services rendered to the patient." )
090    protected Reference provider;
091
092    /**
093     * Patient Resource.
094     */
095    @Child(name = "candidate", type = {Patient.class}, order=5, min=0, max=1, modifier=false, summary=false)
096    @Description(shortDefinition="The subject to be enrolled", formalDefinition="Patient Resource." )
097    protected Reference candidate;
098
099    /**
100     * Reference to the program or plan identification, underwriter or payor.
101     */
102    @Child(name = "coverage", type = {Coverage.class}, order=6, min=0, max=1, modifier=false, summary=false)
103    @Description(shortDefinition="Insurance information", formalDefinition="Reference to the program or plan identification, underwriter or payor." )
104    protected Reference coverage;
105
106    private static final long serialVersionUID = 1033959125L;
107
108  /**
109   * Constructor
110   */
111    public EnrollmentRequest() {
112      super();
113    }
114
115    /**
116     * @return {@link #identifier} (The Response business identifier.)
117     */
118    public List<Identifier> getIdentifier() { 
119      if (this.identifier == null)
120        this.identifier = new ArrayList<Identifier>();
121      return this.identifier;
122    }
123
124    /**
125     * @return Returns a reference to <code>this</code> for easy method chaining
126     */
127    public EnrollmentRequest setIdentifier(List<Identifier> theIdentifier) { 
128      this.identifier = theIdentifier;
129      return this;
130    }
131
132    public boolean hasIdentifier() { 
133      if (this.identifier == null)
134        return false;
135      for (Identifier item : this.identifier)
136        if (!item.isEmpty())
137          return true;
138      return false;
139    }
140
141    public Identifier addIdentifier() { //3
142      Identifier t = new Identifier();
143      if (this.identifier == null)
144        this.identifier = new ArrayList<Identifier>();
145      this.identifier.add(t);
146      return t;
147    }
148
149    public EnrollmentRequest addIdentifier(Identifier t) { //3
150      if (t == null)
151        return this;
152      if (this.identifier == null)
153        this.identifier = new ArrayList<Identifier>();
154      this.identifier.add(t);
155      return this;
156    }
157
158    /**
159     * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3}
160     */
161    public Identifier getIdentifierFirstRep() { 
162      if (getIdentifier().isEmpty()) {
163        addIdentifier();
164      }
165      return getIdentifier().get(0);
166    }
167
168    /**
169     * @return {@link #status} (The status of the resource instance.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
170     */
171    public Enumeration<FinancialResourceStatusCodes> getStatusElement() { 
172      if (this.status == null)
173        if (Configuration.errorOnAutoCreate())
174          throw new Error("Attempt to auto-create EnrollmentRequest.status");
175        else if (Configuration.doAutoCreate())
176          this.status = new Enumeration<FinancialResourceStatusCodes>(new FinancialResourceStatusCodesEnumFactory()); // bb
177      return this.status;
178    }
179
180    public boolean hasStatusElement() { 
181      return this.status != null && !this.status.isEmpty();
182    }
183
184    public boolean hasStatus() { 
185      return this.status != null && !this.status.isEmpty();
186    }
187
188    /**
189     * @param value {@link #status} (The status of the resource instance.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
190     */
191    public EnrollmentRequest setStatusElement(Enumeration<FinancialResourceStatusCodes> value) { 
192      this.status = value;
193      return this;
194    }
195
196    /**
197     * @return The status of the resource instance.
198     */
199    public FinancialResourceStatusCodes getStatus() { 
200      return this.status == null ? null : this.status.getValue();
201    }
202
203    /**
204     * @param value The status of the resource instance.
205     */
206    public EnrollmentRequest setStatus(FinancialResourceStatusCodes value) { 
207      if (value == null)
208        this.status = null;
209      else {
210        if (this.status == null)
211          this.status = new Enumeration<FinancialResourceStatusCodes>(new FinancialResourceStatusCodesEnumFactory());
212        this.status.setValue(value);
213      }
214      return this;
215    }
216
217    /**
218     * @return {@link #created} (The date when this resource was created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value
219     */
220    public DateTimeType getCreatedElement() { 
221      if (this.created == null)
222        if (Configuration.errorOnAutoCreate())
223          throw new Error("Attempt to auto-create EnrollmentRequest.created");
224        else if (Configuration.doAutoCreate())
225          this.created = new DateTimeType(); // bb
226      return this.created;
227    }
228
229    public boolean hasCreatedElement() { 
230      return this.created != null && !this.created.isEmpty();
231    }
232
233    public boolean hasCreated() { 
234      return this.created != null && !this.created.isEmpty();
235    }
236
237    /**
238     * @param value {@link #created} (The date when this resource was created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value
239     */
240    public EnrollmentRequest setCreatedElement(DateTimeType value) { 
241      this.created = value;
242      return this;
243    }
244
245    /**
246     * @return The date when this resource was created.
247     */
248    public Date getCreated() { 
249      return this.created == null ? null : this.created.getValue();
250    }
251
252    /**
253     * @param value The date when this resource was created.
254     */
255    public EnrollmentRequest setCreated(Date value) { 
256      if (value == null)
257        this.created = null;
258      else {
259        if (this.created == null)
260          this.created = new DateTimeType();
261        this.created.setValue(value);
262      }
263      return this;
264    }
265
266    /**
267     * @return {@link #insurer} (The Insurer who is target  of the request.)
268     */
269    public Reference getInsurer() { 
270      if (this.insurer == null)
271        if (Configuration.errorOnAutoCreate())
272          throw new Error("Attempt to auto-create EnrollmentRequest.insurer");
273        else if (Configuration.doAutoCreate())
274          this.insurer = new Reference(); // cc
275      return this.insurer;
276    }
277
278    public boolean hasInsurer() { 
279      return this.insurer != null && !this.insurer.isEmpty();
280    }
281
282    /**
283     * @param value {@link #insurer} (The Insurer who is target  of the request.)
284     */
285    public EnrollmentRequest setInsurer(Reference value) { 
286      this.insurer = value;
287      return this;
288    }
289
290    /**
291     * @return {@link #provider} (The practitioner who is responsible for the services rendered to the patient.)
292     */
293    public Reference getProvider() { 
294      if (this.provider == null)
295        if (Configuration.errorOnAutoCreate())
296          throw new Error("Attempt to auto-create EnrollmentRequest.provider");
297        else if (Configuration.doAutoCreate())
298          this.provider = new Reference(); // cc
299      return this.provider;
300    }
301
302    public boolean hasProvider() { 
303      return this.provider != null && !this.provider.isEmpty();
304    }
305
306    /**
307     * @param value {@link #provider} (The practitioner who is responsible for the services rendered to the patient.)
308     */
309    public EnrollmentRequest setProvider(Reference value) { 
310      this.provider = value;
311      return this;
312    }
313
314    /**
315     * @return {@link #candidate} (Patient Resource.)
316     */
317    public Reference getCandidate() { 
318      if (this.candidate == null)
319        if (Configuration.errorOnAutoCreate())
320          throw new Error("Attempt to auto-create EnrollmentRequest.candidate");
321        else if (Configuration.doAutoCreate())
322          this.candidate = new Reference(); // cc
323      return this.candidate;
324    }
325
326    public boolean hasCandidate() { 
327      return this.candidate != null && !this.candidate.isEmpty();
328    }
329
330    /**
331     * @param value {@link #candidate} (Patient Resource.)
332     */
333    public EnrollmentRequest setCandidate(Reference value) { 
334      this.candidate = value;
335      return this;
336    }
337
338    /**
339     * @return {@link #coverage} (Reference to the program or plan identification, underwriter or payor.)
340     */
341    public Reference getCoverage() { 
342      if (this.coverage == null)
343        if (Configuration.errorOnAutoCreate())
344          throw new Error("Attempt to auto-create EnrollmentRequest.coverage");
345        else if (Configuration.doAutoCreate())
346          this.coverage = new Reference(); // cc
347      return this.coverage;
348    }
349
350    public boolean hasCoverage() { 
351      return this.coverage != null && !this.coverage.isEmpty();
352    }
353
354    /**
355     * @param value {@link #coverage} (Reference to the program or plan identification, underwriter or payor.)
356     */
357    public EnrollmentRequest setCoverage(Reference value) { 
358      this.coverage = value;
359      return this;
360    }
361
362      protected void listChildren(List<Property> children) {
363        super.listChildren(children);
364        children.add(new Property("identifier", "Identifier", "The Response business identifier.", 0, java.lang.Integer.MAX_VALUE, identifier));
365        children.add(new Property("status", "code", "The status of the resource instance.", 0, 1, status));
366        children.add(new Property("created", "dateTime", "The date when this resource was created.", 0, 1, created));
367        children.add(new Property("insurer", "Reference(Organization)", "The Insurer who is target  of the request.", 0, 1, insurer));
368        children.add(new Property("provider", "Reference(Practitioner|PractitionerRole|Organization)", "The practitioner who is responsible for the services rendered to the patient.", 0, 1, provider));
369        children.add(new Property("candidate", "Reference(Patient)", "Patient Resource.", 0, 1, candidate));
370        children.add(new Property("coverage", "Reference(Coverage)", "Reference to the program or plan identification, underwriter or payor.", 0, 1, coverage));
371      }
372
373      @Override
374      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
375        switch (_hash) {
376        case -1618432855: /*identifier*/  return new Property("identifier", "Identifier", "The Response business identifier.", 0, java.lang.Integer.MAX_VALUE, identifier);
377        case -892481550: /*status*/  return new Property("status", "code", "The status of the resource instance.", 0, 1, status);
378        case 1028554472: /*created*/  return new Property("created", "dateTime", "The date when this resource was created.", 0, 1, created);
379        case 1957615864: /*insurer*/  return new Property("insurer", "Reference(Organization)", "The Insurer who is target  of the request.", 0, 1, insurer);
380        case -987494927: /*provider*/  return new Property("provider", "Reference(Practitioner|PractitionerRole|Organization)", "The practitioner who is responsible for the services rendered to the patient.", 0, 1, provider);
381        case 508663171: /*candidate*/  return new Property("candidate", "Reference(Patient)", "Patient Resource.", 0, 1, candidate);
382        case -351767064: /*coverage*/  return new Property("coverage", "Reference(Coverage)", "Reference to the program or plan identification, underwriter or payor.", 0, 1, coverage);
383        default: return super.getNamedProperty(_hash, _name, _checkValid);
384        }
385
386      }
387
388      @Override
389      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
390        switch (hash) {
391        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier
392        case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<FinancialResourceStatusCodes>
393        case 1028554472: /*created*/ return this.created == null ? new Base[0] : new Base[] {this.created}; // DateTimeType
394        case 1957615864: /*insurer*/ return this.insurer == null ? new Base[0] : new Base[] {this.insurer}; // Reference
395        case -987494927: /*provider*/ return this.provider == null ? new Base[0] : new Base[] {this.provider}; // Reference
396        case 508663171: /*candidate*/ return this.candidate == null ? new Base[0] : new Base[] {this.candidate}; // Reference
397        case -351767064: /*coverage*/ return this.coverage == null ? new Base[0] : new Base[] {this.coverage}; // Reference
398        default: return super.getProperty(hash, name, checkValid);
399        }
400
401      }
402
403      @Override
404      public Base setProperty(int hash, String name, Base value) throws FHIRException {
405        switch (hash) {
406        case -1618432855: // identifier
407          this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier
408          return value;
409        case -892481550: // status
410          value = new FinancialResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value));
411          this.status = (Enumeration) value; // Enumeration<FinancialResourceStatusCodes>
412          return value;
413        case 1028554472: // created
414          this.created = TypeConvertor.castToDateTime(value); // DateTimeType
415          return value;
416        case 1957615864: // insurer
417          this.insurer = TypeConvertor.castToReference(value); // Reference
418          return value;
419        case -987494927: // provider
420          this.provider = TypeConvertor.castToReference(value); // Reference
421          return value;
422        case 508663171: // candidate
423          this.candidate = TypeConvertor.castToReference(value); // Reference
424          return value;
425        case -351767064: // coverage
426          this.coverage = TypeConvertor.castToReference(value); // Reference
427          return value;
428        default: return super.setProperty(hash, name, value);
429        }
430
431      }
432
433      @Override
434      public Base setProperty(String name, Base value) throws FHIRException {
435        if (name.equals("identifier")) {
436          this.getIdentifier().add(TypeConvertor.castToIdentifier(value));
437        } else if (name.equals("status")) {
438          value = new FinancialResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value));
439          this.status = (Enumeration) value; // Enumeration<FinancialResourceStatusCodes>
440        } else if (name.equals("created")) {
441          this.created = TypeConvertor.castToDateTime(value); // DateTimeType
442        } else if (name.equals("insurer")) {
443          this.insurer = TypeConvertor.castToReference(value); // Reference
444        } else if (name.equals("provider")) {
445          this.provider = TypeConvertor.castToReference(value); // Reference
446        } else if (name.equals("candidate")) {
447          this.candidate = TypeConvertor.castToReference(value); // Reference
448        } else if (name.equals("coverage")) {
449          this.coverage = TypeConvertor.castToReference(value); // Reference
450        } else
451          return super.setProperty(name, value);
452        return value;
453      }
454
455  @Override
456  public void removeChild(String name, Base value) throws FHIRException {
457        if (name.equals("identifier")) {
458          this.getIdentifier().remove(value);
459        } else if (name.equals("status")) {
460          value = new FinancialResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value));
461          this.status = (Enumeration) value; // Enumeration<FinancialResourceStatusCodes>
462        } else if (name.equals("created")) {
463          this.created = null;
464        } else if (name.equals("insurer")) {
465          this.insurer = null;
466        } else if (name.equals("provider")) {
467          this.provider = null;
468        } else if (name.equals("candidate")) {
469          this.candidate = null;
470        } else if (name.equals("coverage")) {
471          this.coverage = null;
472        } else
473          super.removeChild(name, value);
474        
475      }
476
477      @Override
478      public Base makeProperty(int hash, String name) throws FHIRException {
479        switch (hash) {
480        case -1618432855:  return addIdentifier(); 
481        case -892481550:  return getStatusElement();
482        case 1028554472:  return getCreatedElement();
483        case 1957615864:  return getInsurer();
484        case -987494927:  return getProvider();
485        case 508663171:  return getCandidate();
486        case -351767064:  return getCoverage();
487        default: return super.makeProperty(hash, name);
488        }
489
490      }
491
492      @Override
493      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
494        switch (hash) {
495        case -1618432855: /*identifier*/ return new String[] {"Identifier"};
496        case -892481550: /*status*/ return new String[] {"code"};
497        case 1028554472: /*created*/ return new String[] {"dateTime"};
498        case 1957615864: /*insurer*/ return new String[] {"Reference"};
499        case -987494927: /*provider*/ return new String[] {"Reference"};
500        case 508663171: /*candidate*/ return new String[] {"Reference"};
501        case -351767064: /*coverage*/ return new String[] {"Reference"};
502        default: return super.getTypesForProperty(hash, name);
503        }
504
505      }
506
507      @Override
508      public Base addChild(String name) throws FHIRException {
509        if (name.equals("identifier")) {
510          return addIdentifier();
511        }
512        else if (name.equals("status")) {
513          throw new FHIRException("Cannot call addChild on a singleton property EnrollmentRequest.status");
514        }
515        else if (name.equals("created")) {
516          throw new FHIRException("Cannot call addChild on a singleton property EnrollmentRequest.created");
517        }
518        else if (name.equals("insurer")) {
519          this.insurer = new Reference();
520          return this.insurer;
521        }
522        else if (name.equals("provider")) {
523          this.provider = new Reference();
524          return this.provider;
525        }
526        else if (name.equals("candidate")) {
527          this.candidate = new Reference();
528          return this.candidate;
529        }
530        else if (name.equals("coverage")) {
531          this.coverage = new Reference();
532          return this.coverage;
533        }
534        else
535          return super.addChild(name);
536      }
537
538  public String fhirType() {
539    return "EnrollmentRequest";
540
541  }
542
543      public EnrollmentRequest copy() {
544        EnrollmentRequest dst = new EnrollmentRequest();
545        copyValues(dst);
546        return dst;
547      }
548
549      public void copyValues(EnrollmentRequest dst) {
550        super.copyValues(dst);
551        if (identifier != null) {
552          dst.identifier = new ArrayList<Identifier>();
553          for (Identifier i : identifier)
554            dst.identifier.add(i.copy());
555        };
556        dst.status = status == null ? null : status.copy();
557        dst.created = created == null ? null : created.copy();
558        dst.insurer = insurer == null ? null : insurer.copy();
559        dst.provider = provider == null ? null : provider.copy();
560        dst.candidate = candidate == null ? null : candidate.copy();
561        dst.coverage = coverage == null ? null : coverage.copy();
562      }
563
564      protected EnrollmentRequest typedCopy() {
565        return copy();
566      }
567
568      @Override
569      public boolean equalsDeep(Base other_) {
570        if (!super.equalsDeep(other_))
571          return false;
572        if (!(other_ instanceof EnrollmentRequest))
573          return false;
574        EnrollmentRequest o = (EnrollmentRequest) other_;
575        return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(created, o.created, true)
576           && compareDeep(insurer, o.insurer, true) && compareDeep(provider, o.provider, true) && compareDeep(candidate, o.candidate, true)
577           && compareDeep(coverage, o.coverage, true);
578      }
579
580      @Override
581      public boolean equalsShallow(Base other_) {
582        if (!super.equalsShallow(other_))
583          return false;
584        if (!(other_ instanceof EnrollmentRequest))
585          return false;
586        EnrollmentRequest o = (EnrollmentRequest) other_;
587        return compareValues(status, o.status, true) && compareValues(created, o.created, true);
588      }
589
590      public boolean isEmpty() {
591        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, created
592          , insurer, provider, candidate, coverage);
593      }
594
595  @Override
596  public ResourceType getResourceType() {
597    return ResourceType.EnrollmentRequest;
598   }
599
600 /**
601   * Search parameter: <b>status</b>
602   * <p>
603   * Description: <b>The status of the enrollment</b><br>
604   * Type: <b>token</b><br>
605   * Path: <b>EnrollmentRequest.status</b><br>
606   * </p>
607   */
608  @SearchParamDefinition(name="status", path="EnrollmentRequest.status", description="The status of the enrollment", type="token" )
609  public static final String SP_STATUS = "status";
610 /**
611   * <b>Fluent Client</b> search parameter constant for <b>status</b>
612   * <p>
613   * Description: <b>The status of the enrollment</b><br>
614   * Type: <b>token</b><br>
615   * Path: <b>EnrollmentRequest.status</b><br>
616   * </p>
617   */
618  public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS);
619
620 /**
621   * Search parameter: <b>subject</b>
622   * <p>
623   * Description: <b>The party to be enrolled</b><br>
624   * Type: <b>reference</b><br>
625   * Path: <b>EnrollmentRequest.candidate</b><br>
626   * </p>
627   */
628  @SearchParamDefinition(name="subject", path="EnrollmentRequest.candidate", description="The party to be enrolled", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Patient.class } )
629  public static final String SP_SUBJECT = "subject";
630 /**
631   * <b>Fluent Client</b> search parameter constant for <b>subject</b>
632   * <p>
633   * Description: <b>The party to be enrolled</b><br>
634   * Type: <b>reference</b><br>
635   * Path: <b>EnrollmentRequest.candidate</b><br>
636   * </p>
637   */
638  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT);
639
640/**
641   * Constant for fluent queries to be used to add include statements. Specifies
642   * the path value of "<b>EnrollmentRequest:subject</b>".
643   */
644  public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("EnrollmentRequest:subject").toLocked();
645
646 /**
647   * Search parameter: <b>identifier</b>
648   * <p>
649   * Description: <b>Multiple Resources: 
650
651* [Account](account.html): Account number
652* [AdverseEvent](adverseevent.html): Business identifier for the event
653* [AllergyIntolerance](allergyintolerance.html): External ids for this item
654* [Appointment](appointment.html): An Identifier of the Appointment
655* [AppointmentResponse](appointmentresponse.html): An Identifier in this appointment response
656* [Basic](basic.html): Business identifier
657* [BodyStructure](bodystructure.html): Bodystructure identifier
658* [CarePlan](careplan.html): External Ids for this plan
659* [CareTeam](careteam.html): External Ids for this team
660* [ChargeItem](chargeitem.html): Business Identifier for item
661* [Claim](claim.html): The primary identifier of the financial resource
662* [ClaimResponse](claimresponse.html): The identity of the ClaimResponse
663* [ClinicalImpression](clinicalimpression.html): Business identifier
664* [Communication](communication.html): Unique identifier
665* [CommunicationRequest](communicationrequest.html): Unique identifier
666* [Composition](composition.html): Version-independent identifier for the Composition
667* [Condition](condition.html): A unique identifier of the condition record
668* [Consent](consent.html): Identifier for this record (external references)
669* [Contract](contract.html): The identity of the contract
670* [Coverage](coverage.html): The primary identifier of the insured and the coverage
671* [CoverageEligibilityRequest](coverageeligibilityrequest.html): The business identifier of the Eligibility
672* [CoverageEligibilityResponse](coverageeligibilityresponse.html): The business identifier
673* [DetectedIssue](detectedissue.html): Unique id for the detected issue
674* [DeviceRequest](devicerequest.html): Business identifier for request/order
675* [DeviceUsage](deviceusage.html): Search by identifier
676* [DiagnosticReport](diagnosticreport.html): An identifier for the report
677* [DocumentReference](documentreference.html): Identifier of the attachment binary
678* [Encounter](encounter.html): Identifier(s) by which this encounter is known
679* [EnrollmentRequest](enrollmentrequest.html): The business identifier of the Enrollment
680* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare
681* [ExplanationOfBenefit](explanationofbenefit.html): The business identifier of the Explanation of Benefit
682* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier
683* [Flag](flag.html): Business identifier
684* [Goal](goal.html): External Ids for this goal
685* [GuidanceResponse](guidanceresponse.html): The identifier of the guidance response
686* [ImagingSelection](imagingselection.html): Identifiers for the imaging selection
687* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID
688* [Immunization](immunization.html): Business identifier
689* [ImmunizationEvaluation](immunizationevaluation.html): ID of the evaluation
690* [ImmunizationRecommendation](immunizationrecommendation.html): Business identifier
691* [Invoice](invoice.html): Business Identifier for item
692* [List](list.html): Business identifier
693* [MeasureReport](measurereport.html): External identifier of the measure report to be returned
694* [Medication](medication.html): Returns medications with this external identifier
695* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier
696* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier
697* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier
698* [MedicationStatement](medicationstatement.html): Return statements with this external identifier
699* [MolecularSequence](molecularsequence.html): The unique identity for a particular sequence
700* [NutritionIntake](nutritionintake.html): Return statements with this external identifier
701* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier
702* [Observation](observation.html): The unique id for a particular observation
703* [Person](person.html): A person Identifier
704* [Procedure](procedure.html): A unique identifier for a procedure
705* [QuestionnaireResponse](questionnaireresponse.html): The unique identifier for the questionnaire response
706* [RelatedPerson](relatedperson.html): An Identifier of the RelatedPerson
707* [RequestOrchestration](requestorchestration.html): External identifiers for the request orchestration
708* [ResearchSubject](researchsubject.html): Business Identifier for research subject in a study
709* [RiskAssessment](riskassessment.html): Unique identifier for the assessment
710* [ServiceRequest](servicerequest.html): Identifiers assigned to this order
711* [Specimen](specimen.html): The unique identifier associated with the specimen
712* [SupplyDelivery](supplydelivery.html): External identifier
713* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest
714* [Task](task.html): Search for a task instance by its business identifier
715* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier
716</b><br>
717   * Type: <b>token</b><br>
718   * 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>
719   * </p>
720   */
721  @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" )
722  public static final String SP_IDENTIFIER = "identifier";
723 /**
724   * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
725   * <p>
726   * Description: <b>Multiple Resources: 
727
728* [Account](account.html): Account number
729* [AdverseEvent](adverseevent.html): Business identifier for the event
730* [AllergyIntolerance](allergyintolerance.html): External ids for this item
731* [Appointment](appointment.html): An Identifier of the Appointment
732* [AppointmentResponse](appointmentresponse.html): An Identifier in this appointment response
733* [Basic](basic.html): Business identifier
734* [BodyStructure](bodystructure.html): Bodystructure identifier
735* [CarePlan](careplan.html): External Ids for this plan
736* [CareTeam](careteam.html): External Ids for this team
737* [ChargeItem](chargeitem.html): Business Identifier for item
738* [Claim](claim.html): The primary identifier of the financial resource
739* [ClaimResponse](claimresponse.html): The identity of the ClaimResponse
740* [ClinicalImpression](clinicalimpression.html): Business identifier
741* [Communication](communication.html): Unique identifier
742* [CommunicationRequest](communicationrequest.html): Unique identifier
743* [Composition](composition.html): Version-independent identifier for the Composition
744* [Condition](condition.html): A unique identifier of the condition record
745* [Consent](consent.html): Identifier for this record (external references)
746* [Contract](contract.html): The identity of the contract
747* [Coverage](coverage.html): The primary identifier of the insured and the coverage
748* [CoverageEligibilityRequest](coverageeligibilityrequest.html): The business identifier of the Eligibility
749* [CoverageEligibilityResponse](coverageeligibilityresponse.html): The business identifier
750* [DetectedIssue](detectedissue.html): Unique id for the detected issue
751* [DeviceRequest](devicerequest.html): Business identifier for request/order
752* [DeviceUsage](deviceusage.html): Search by identifier
753* [DiagnosticReport](diagnosticreport.html): An identifier for the report
754* [DocumentReference](documentreference.html): Identifier of the attachment binary
755* [Encounter](encounter.html): Identifier(s) by which this encounter is known
756* [EnrollmentRequest](enrollmentrequest.html): The business identifier of the Enrollment
757* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare
758* [ExplanationOfBenefit](explanationofbenefit.html): The business identifier of the Explanation of Benefit
759* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier
760* [Flag](flag.html): Business identifier
761* [Goal](goal.html): External Ids for this goal
762* [GuidanceResponse](guidanceresponse.html): The identifier of the guidance response
763* [ImagingSelection](imagingselection.html): Identifiers for the imaging selection
764* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID
765* [Immunization](immunization.html): Business identifier
766* [ImmunizationEvaluation](immunizationevaluation.html): ID of the evaluation
767* [ImmunizationRecommendation](immunizationrecommendation.html): Business identifier
768* [Invoice](invoice.html): Business Identifier for item
769* [List](list.html): Business identifier
770* [MeasureReport](measurereport.html): External identifier of the measure report to be returned
771* [Medication](medication.html): Returns medications with this external identifier
772* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier
773* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier
774* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier
775* [MedicationStatement](medicationstatement.html): Return statements with this external identifier
776* [MolecularSequence](molecularsequence.html): The unique identity for a particular sequence
777* [NutritionIntake](nutritionintake.html): Return statements with this external identifier
778* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier
779* [Observation](observation.html): The unique id for a particular observation
780* [Person](person.html): A person Identifier
781* [Procedure](procedure.html): A unique identifier for a procedure
782* [QuestionnaireResponse](questionnaireresponse.html): The unique identifier for the questionnaire response
783* [RelatedPerson](relatedperson.html): An Identifier of the RelatedPerson
784* [RequestOrchestration](requestorchestration.html): External identifiers for the request orchestration
785* [ResearchSubject](researchsubject.html): Business Identifier for research subject in a study
786* [RiskAssessment](riskassessment.html): Unique identifier for the assessment
787* [ServiceRequest](servicerequest.html): Identifiers assigned to this order
788* [Specimen](specimen.html): The unique identifier associated with the specimen
789* [SupplyDelivery](supplydelivery.html): External identifier
790* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest
791* [Task](task.html): Search for a task instance by its business identifier
792* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier
793</b><br>
794   * Type: <b>token</b><br>
795   * 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>
796   * </p>
797   */
798  public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
799
800 /**
801   * Search parameter: <b>patient</b>
802   * <p>
803   * Description: <b>Multiple Resources: 
804
805* [Account](account.html): The entity that caused the expenses
806* [AdverseEvent](adverseevent.html): Subject impacted by event
807* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for
808* [Appointment](appointment.html): One of the individuals of the appointment is this patient
809* [AppointmentResponse](appointmentresponse.html): This Response is for this Patient
810* [AuditEvent](auditevent.html): Where the activity involved patient data
811* [Basic](basic.html): Identifies the focus of this resource
812* [BodyStructure](bodystructure.html): Who this is about
813* [CarePlan](careplan.html): Who the care plan is for
814* [CareTeam](careteam.html): Who care team is for
815* [ChargeItem](chargeitem.html): Individual service was done for/to
816* [Claim](claim.html): Patient receiving the products or services
817* [ClaimResponse](claimresponse.html): The subject of care
818* [ClinicalImpression](clinicalimpression.html): Patient assessed
819* [Communication](communication.html): Focus of message
820* [CommunicationRequest](communicationrequest.html): Focus of message
821* [Composition](composition.html): Who and/or what the composition is about
822* [Condition](condition.html): Who has the condition?
823* [Consent](consent.html): Who the consent applies to
824* [Contract](contract.html): The identity of the subject of the contract (if a patient)
825* [Coverage](coverage.html): Retrieve coverages for a patient
826* [CoverageEligibilityRequest](coverageeligibilityrequest.html): The reference to the patient
827* [CoverageEligibilityResponse](coverageeligibilityresponse.html): The reference to the patient
828* [DetectedIssue](detectedissue.html): Associated patient
829* [DeviceRequest](devicerequest.html): Individual the service is ordered for
830* [DeviceUsage](deviceusage.html): Search by patient who used / uses the device
831* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient
832* [DocumentReference](documentreference.html): Who/what is the subject of the document
833* [Encounter](encounter.html): The patient present at the encounter
834* [EnrollmentRequest](enrollmentrequest.html): The party to be enrolled
835* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care
836* [ExplanationOfBenefit](explanationofbenefit.html): The reference to the patient
837* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for
838* [Flag](flag.html): The identity of a subject to list flags for
839* [Goal](goal.html): Who this goal is intended for
840* [GuidanceResponse](guidanceresponse.html): The identity of a patient to search for guidance response results
841* [ImagingSelection](imagingselection.html): Who the study is about
842* [ImagingStudy](imagingstudy.html): Who the study is about
843* [Immunization](immunization.html): The patient for the vaccination record
844* [ImmunizationEvaluation](immunizationevaluation.html): The patient being evaluated
845* [ImmunizationRecommendation](immunizationrecommendation.html): Who this profile is for
846* [Invoice](invoice.html): Recipient(s) of goods and services
847* [List](list.html): If all resources have the same subject
848* [MeasureReport](measurereport.html): The identity of a patient to search for individual measure report results for
849* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations  for
850* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses  for
851* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient
852* [MedicationStatement](medicationstatement.html): Returns statements for a specific patient.
853* [MolecularSequence](molecularsequence.html): The subject that the sequence is about
854* [NutritionIntake](nutritionintake.html): Returns statements for a specific patient.
855* [NutritionOrder](nutritionorder.html): The identity of the individual or set of individuals who requires the diet, formula or nutritional supplement
856* [Observation](observation.html): The subject that the observation is about (if patient)
857* [Person](person.html): The Person links to this Patient
858* [Procedure](procedure.html): Search by subject - a patient
859* [Provenance](provenance.html): Where the activity involved patient data
860* [QuestionnaireResponse](questionnaireresponse.html): The patient that is the subject of the questionnaire response
861* [RelatedPerson](relatedperson.html): The patient this related person is related to
862* [RequestOrchestration](requestorchestration.html): The identity of a patient to search for request orchestrations
863* [ResearchSubject](researchsubject.html): Who or what is part of study
864* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?
865* [ServiceRequest](servicerequest.html): Search by subject - a patient
866* [Specimen](specimen.html): The patient the specimen comes from
867* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied
868* [SupplyRequest](supplyrequest.html): The patient or subject for whom the supply is destined
869* [Task](task.html): Search by patient
870* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for
871</b><br>
872   * Type: <b>reference</b><br>
873   * 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>
874   * </p>
875   */
876  @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 } )
877  public static final String SP_PATIENT = "patient";
878 /**
879   * <b>Fluent Client</b> search parameter constant for <b>patient</b>
880   * <p>
881   * Description: <b>Multiple Resources: 
882
883* [Account](account.html): The entity that caused the expenses
884* [AdverseEvent](adverseevent.html): Subject impacted by event
885* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for
886* [Appointment](appointment.html): One of the individuals of the appointment is this patient
887* [AppointmentResponse](appointmentresponse.html): This Response is for this Patient
888* [AuditEvent](auditevent.html): Where the activity involved patient data
889* [Basic](basic.html): Identifies the focus of this resource
890* [BodyStructure](bodystructure.html): Who this is about
891* [CarePlan](careplan.html): Who the care plan is for
892* [CareTeam](careteam.html): Who care team is for
893* [ChargeItem](chargeitem.html): Individual service was done for/to
894* [Claim](claim.html): Patient receiving the products or services
895* [ClaimResponse](claimresponse.html): The subject of care
896* [ClinicalImpression](clinicalimpression.html): Patient assessed
897* [Communication](communication.html): Focus of message
898* [CommunicationRequest](communicationrequest.html): Focus of message
899* [Composition](composition.html): Who and/or what the composition is about
900* [Condition](condition.html): Who has the condition?
901* [Consent](consent.html): Who the consent applies to
902* [Contract](contract.html): The identity of the subject of the contract (if a patient)
903* [Coverage](coverage.html): Retrieve coverages for a patient
904* [CoverageEligibilityRequest](coverageeligibilityrequest.html): The reference to the patient
905* [CoverageEligibilityResponse](coverageeligibilityresponse.html): The reference to the patient
906* [DetectedIssue](detectedissue.html): Associated patient
907* [DeviceRequest](devicerequest.html): Individual the service is ordered for
908* [DeviceUsage](deviceusage.html): Search by patient who used / uses the device
909* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient
910* [DocumentReference](documentreference.html): Who/what is the subject of the document
911* [Encounter](encounter.html): The patient present at the encounter
912* [EnrollmentRequest](enrollmentrequest.html): The party to be enrolled
913* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care
914* [ExplanationOfBenefit](explanationofbenefit.html): The reference to the patient
915* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for
916* [Flag](flag.html): The identity of a subject to list flags for
917* [Goal](goal.html): Who this goal is intended for
918* [GuidanceResponse](guidanceresponse.html): The identity of a patient to search for guidance response results
919* [ImagingSelection](imagingselection.html): Who the study is about
920* [ImagingStudy](imagingstudy.html): Who the study is about
921* [Immunization](immunization.html): The patient for the vaccination record
922* [ImmunizationEvaluation](immunizationevaluation.html): The patient being evaluated
923* [ImmunizationRecommendation](immunizationrecommendation.html): Who this profile is for
924* [Invoice](invoice.html): Recipient(s) of goods and services
925* [List](list.html): If all resources have the same subject
926* [MeasureReport](measurereport.html): The identity of a patient to search for individual measure report results for
927* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations  for
928* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses  for
929* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient
930* [MedicationStatement](medicationstatement.html): Returns statements for a specific patient.
931* [MolecularSequence](molecularsequence.html): The subject that the sequence is about
932* [NutritionIntake](nutritionintake.html): Returns statements for a specific patient.
933* [NutritionOrder](nutritionorder.html): The identity of the individual or set of individuals who requires the diet, formula or nutritional supplement
934* [Observation](observation.html): The subject that the observation is about (if patient)
935* [Person](person.html): The Person links to this Patient
936* [Procedure](procedure.html): Search by subject - a patient
937* [Provenance](provenance.html): Where the activity involved patient data
938* [QuestionnaireResponse](questionnaireresponse.html): The patient that is the subject of the questionnaire response
939* [RelatedPerson](relatedperson.html): The patient this related person is related to
940* [RequestOrchestration](requestorchestration.html): The identity of a patient to search for request orchestrations
941* [ResearchSubject](researchsubject.html): Who or what is part of study
942* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?
943* [ServiceRequest](servicerequest.html): Search by subject - a patient
944* [Specimen](specimen.html): The patient the specimen comes from
945* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied
946* [SupplyRequest](supplyrequest.html): The patient or subject for whom the supply is destined
947* [Task](task.html): Search by patient
948* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for
949</b><br>
950   * Type: <b>reference</b><br>
951   * 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>
952   * </p>
953   */
954  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT);
955
956/**
957   * Constant for fluent queries to be used to add include statements. Specifies
958   * the path value of "<b>EnrollmentRequest:patient</b>".
959   */
960  public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("EnrollmentRequest:patient").toLocked();
961
962
963}
964