001package org.hl7.fhir.r5.model;
002
003
004/*
005 * #%L
006 * org.hl7.fhir.r5
007 * %%
008 * Copyright (C) 2014 - 2019 Health Level 7
009 * %%
010 * Licensed under the Apache License, Version 2.0 (the \"License\");
011 * you may not use this file except in compliance with the License.
012 * You may obtain a copy of the License at
013 * 
014 *      http://www.apache.org/licenses/LICENSE-2.0
015 * 
016 * Unless required by applicable law or agreed to in writing, software
017 * distributed under the License is distributed on an \"AS IS\" BASIS,
018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
019 * See the License for the specific language governing permissions and
020 * limitations under the License.
021 * #L%
022 */
023
024/*
025  Copyright (c) 2011+, HL7, Inc.
026  All rights reserved.
027  
028  Redistribution and use in source and binary forms, with or without modification, \
029  are permitted provided that the following conditions are met:
030  
031   * Redistributions of source code must retain the above copyright notice, this \
032     list of conditions and the following disclaimer.
033   * Redistributions in binary form must reproduce the above copyright notice, \
034     this list of conditions and the following disclaimer in the documentation \
035     and/or other materials provided with the distribution.
036   * Neither the name of HL7 nor the names of its contributors may be used to 
037     endorse or promote products derived from this software without specific 
038     prior written permission.
039  
040  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \
041  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \
042  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \
043  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \
044  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \
045  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \
046  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \
047  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \
048  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \
049  POSSIBILITY OF SUCH DAMAGE.
050  */
051
052// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
053
054import java.util.ArrayList;
055import java.util.Date;
056import java.util.List;
057import org.hl7.fhir.utilities.Utilities;
058import org.hl7.fhir.r5.model.Enumerations.*;
059import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
060import org.hl7.fhir.exceptions.FHIRException;
061import org.hl7.fhir.instance.model.api.ICompositeType;
062import ca.uhn.fhir.model.api.annotation.ResourceDef;
063import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
064import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
065import ca.uhn.fhir.model.api.annotation.Child;
066import ca.uhn.fhir.model.api.annotation.ChildOrder;
067import ca.uhn.fhir.model.api.annotation.Description;
068import ca.uhn.fhir.model.api.annotation.Block;
069
070/**
071 * This resource provides the insurance enrollment details to the insurer regarding a specified coverage.
072 */
073@ResourceDef(name="EnrollmentRequest", profile="http://hl7.org/fhir/StructureDefinition/EnrollmentRequest")
074public class EnrollmentRequest extends DomainResource {
075
076    /**
077     * The Response business identifier.
078     */
079    @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
080    @Description(shortDefinition="Business Identifier", formalDefinition="The Response business identifier." )
081    protected List<Identifier> identifier;
082
083    /**
084     * The status of the resource instance.
085     */
086    @Child(name = "status", type = {CodeType.class}, order=1, min=0, max=1, modifier=true, summary=true)
087    @Description(shortDefinition="active | cancelled | draft | entered-in-error", formalDefinition="The status of the resource instance." )
088    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/fm-status")
089    protected Enumeration<FinancialResourceStatusCodes> status;
090
091    /**
092     * The date when this resource was created.
093     */
094    @Child(name = "created", type = {DateTimeType.class}, order=2, min=0, max=1, modifier=false, summary=false)
095    @Description(shortDefinition="Creation date", formalDefinition="The date when this resource was created." )
096    protected DateTimeType created;
097
098    /**
099     * The Insurer who is target  of the request.
100     */
101    @Child(name = "insurer", type = {Organization.class}, order=3, min=0, max=1, modifier=false, summary=false)
102    @Description(shortDefinition="Target", formalDefinition="The Insurer who is target  of the request." )
103    protected Reference insurer;
104
105    /**
106     * The practitioner who is responsible for the services rendered to the patient.
107     */
108    @Child(name = "provider", type = {Practitioner.class, PractitionerRole.class, Organization.class}, order=4, min=0, max=1, modifier=false, summary=false)
109    @Description(shortDefinition="Responsible practitioner", formalDefinition="The practitioner who is responsible for the services rendered to the patient." )
110    protected Reference provider;
111
112    /**
113     * Patient Resource.
114     */
115    @Child(name = "candidate", type = {Patient.class}, order=5, min=0, max=1, modifier=false, summary=false)
116    @Description(shortDefinition="The subject to be enrolled", formalDefinition="Patient Resource." )
117    protected Reference candidate;
118
119    /**
120     * Reference to the program or plan identification, underwriter or payor.
121     */
122    @Child(name = "coverage", type = {Coverage.class}, order=6, min=0, max=1, modifier=false, summary=false)
123    @Description(shortDefinition="Insurance information", formalDefinition="Reference to the program or plan identification, underwriter or payor." )
124    protected Reference coverage;
125
126    private static final long serialVersionUID = 1033959125L;
127
128  /**
129   * Constructor
130   */
131    public EnrollmentRequest() {
132      super();
133    }
134
135    /**
136     * @return {@link #identifier} (The Response business identifier.)
137     */
138    public List<Identifier> getIdentifier() { 
139      if (this.identifier == null)
140        this.identifier = new ArrayList<Identifier>();
141      return this.identifier;
142    }
143
144    /**
145     * @return Returns a reference to <code>this</code> for easy method chaining
146     */
147    public EnrollmentRequest setIdentifier(List<Identifier> theIdentifier) { 
148      this.identifier = theIdentifier;
149      return this;
150    }
151
152    public boolean hasIdentifier() { 
153      if (this.identifier == null)
154        return false;
155      for (Identifier item : this.identifier)
156        if (!item.isEmpty())
157          return true;
158      return false;
159    }
160
161    public Identifier addIdentifier() { //3
162      Identifier t = new Identifier();
163      if (this.identifier == null)
164        this.identifier = new ArrayList<Identifier>();
165      this.identifier.add(t);
166      return t;
167    }
168
169    public EnrollmentRequest addIdentifier(Identifier t) { //3
170      if (t == null)
171        return this;
172      if (this.identifier == null)
173        this.identifier = new ArrayList<Identifier>();
174      this.identifier.add(t);
175      return this;
176    }
177
178    /**
179     * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3}
180     */
181    public Identifier getIdentifierFirstRep() { 
182      if (getIdentifier().isEmpty()) {
183        addIdentifier();
184      }
185      return getIdentifier().get(0);
186    }
187
188    /**
189     * @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
190     */
191    public Enumeration<FinancialResourceStatusCodes> getStatusElement() { 
192      if (this.status == null)
193        if (Configuration.errorOnAutoCreate())
194          throw new Error("Attempt to auto-create EnrollmentRequest.status");
195        else if (Configuration.doAutoCreate())
196          this.status = new Enumeration<FinancialResourceStatusCodes>(new FinancialResourceStatusCodesEnumFactory()); // bb
197      return this.status;
198    }
199
200    public boolean hasStatusElement() { 
201      return this.status != null && !this.status.isEmpty();
202    }
203
204    public boolean hasStatus() { 
205      return this.status != null && !this.status.isEmpty();
206    }
207
208    /**
209     * @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
210     */
211    public EnrollmentRequest setStatusElement(Enumeration<FinancialResourceStatusCodes> value) { 
212      this.status = value;
213      return this;
214    }
215
216    /**
217     * @return The status of the resource instance.
218     */
219    public FinancialResourceStatusCodes getStatus() { 
220      return this.status == null ? null : this.status.getValue();
221    }
222
223    /**
224     * @param value The status of the resource instance.
225     */
226    public EnrollmentRequest setStatus(FinancialResourceStatusCodes value) { 
227      if (value == null)
228        this.status = null;
229      else {
230        if (this.status == null)
231          this.status = new Enumeration<FinancialResourceStatusCodes>(new FinancialResourceStatusCodesEnumFactory());
232        this.status.setValue(value);
233      }
234      return this;
235    }
236
237    /**
238     * @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
239     */
240    public DateTimeType getCreatedElement() { 
241      if (this.created == null)
242        if (Configuration.errorOnAutoCreate())
243          throw new Error("Attempt to auto-create EnrollmentRequest.created");
244        else if (Configuration.doAutoCreate())
245          this.created = new DateTimeType(); // bb
246      return this.created;
247    }
248
249    public boolean hasCreatedElement() { 
250      return this.created != null && !this.created.isEmpty();
251    }
252
253    public boolean hasCreated() { 
254      return this.created != null && !this.created.isEmpty();
255    }
256
257    /**
258     * @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
259     */
260    public EnrollmentRequest setCreatedElement(DateTimeType value) { 
261      this.created = value;
262      return this;
263    }
264
265    /**
266     * @return The date when this resource was created.
267     */
268    public Date getCreated() { 
269      return this.created == null ? null : this.created.getValue();
270    }
271
272    /**
273     * @param value The date when this resource was created.
274     */
275    public EnrollmentRequest setCreated(Date value) { 
276      if (value == null)
277        this.created = null;
278      else {
279        if (this.created == null)
280          this.created = new DateTimeType();
281        this.created.setValue(value);
282      }
283      return this;
284    }
285
286    /**
287     * @return {@link #insurer} (The Insurer who is target  of the request.)
288     */
289    public Reference getInsurer() { 
290      if (this.insurer == null)
291        if (Configuration.errorOnAutoCreate())
292          throw new Error("Attempt to auto-create EnrollmentRequest.insurer");
293        else if (Configuration.doAutoCreate())
294          this.insurer = new Reference(); // cc
295      return this.insurer;
296    }
297
298    public boolean hasInsurer() { 
299      return this.insurer != null && !this.insurer.isEmpty();
300    }
301
302    /**
303     * @param value {@link #insurer} (The Insurer who is target  of the request.)
304     */
305    public EnrollmentRequest setInsurer(Reference value) { 
306      this.insurer = value;
307      return this;
308    }
309
310    /**
311     * @return {@link #provider} (The practitioner who is responsible for the services rendered to the patient.)
312     */
313    public Reference getProvider() { 
314      if (this.provider == null)
315        if (Configuration.errorOnAutoCreate())
316          throw new Error("Attempt to auto-create EnrollmentRequest.provider");
317        else if (Configuration.doAutoCreate())
318          this.provider = new Reference(); // cc
319      return this.provider;
320    }
321
322    public boolean hasProvider() { 
323      return this.provider != null && !this.provider.isEmpty();
324    }
325
326    /**
327     * @param value {@link #provider} (The practitioner who is responsible for the services rendered to the patient.)
328     */
329    public EnrollmentRequest setProvider(Reference value) { 
330      this.provider = value;
331      return this;
332    }
333
334    /**
335     * @return {@link #candidate} (Patient Resource.)
336     */
337    public Reference getCandidate() { 
338      if (this.candidate == null)
339        if (Configuration.errorOnAutoCreate())
340          throw new Error("Attempt to auto-create EnrollmentRequest.candidate");
341        else if (Configuration.doAutoCreate())
342          this.candidate = new Reference(); // cc
343      return this.candidate;
344    }
345
346    public boolean hasCandidate() { 
347      return this.candidate != null && !this.candidate.isEmpty();
348    }
349
350    /**
351     * @param value {@link #candidate} (Patient Resource.)
352     */
353    public EnrollmentRequest setCandidate(Reference value) { 
354      this.candidate = value;
355      return this;
356    }
357
358    /**
359     * @return {@link #coverage} (Reference to the program or plan identification, underwriter or payor.)
360     */
361    public Reference getCoverage() { 
362      if (this.coverage == null)
363        if (Configuration.errorOnAutoCreate())
364          throw new Error("Attempt to auto-create EnrollmentRequest.coverage");
365        else if (Configuration.doAutoCreate())
366          this.coverage = new Reference(); // cc
367      return this.coverage;
368    }
369
370    public boolean hasCoverage() { 
371      return this.coverage != null && !this.coverage.isEmpty();
372    }
373
374    /**
375     * @param value {@link #coverage} (Reference to the program or plan identification, underwriter or payor.)
376     */
377    public EnrollmentRequest setCoverage(Reference value) { 
378      this.coverage = value;
379      return this;
380    }
381
382      protected void listChildren(List<Property> children) {
383        super.listChildren(children);
384        children.add(new Property("identifier", "Identifier", "The Response business identifier.", 0, java.lang.Integer.MAX_VALUE, identifier));
385        children.add(new Property("status", "code", "The status of the resource instance.", 0, 1, status));
386        children.add(new Property("created", "dateTime", "The date when this resource was created.", 0, 1, created));
387        children.add(new Property("insurer", "Reference(Organization)", "The Insurer who is target  of the request.", 0, 1, insurer));
388        children.add(new Property("provider", "Reference(Practitioner|PractitionerRole|Organization)", "The practitioner who is responsible for the services rendered to the patient.", 0, 1, provider));
389        children.add(new Property("candidate", "Reference(Patient)", "Patient Resource.", 0, 1, candidate));
390        children.add(new Property("coverage", "Reference(Coverage)", "Reference to the program or plan identification, underwriter or payor.", 0, 1, coverage));
391      }
392
393      @Override
394      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
395        switch (_hash) {
396        case -1618432855: /*identifier*/  return new Property("identifier", "Identifier", "The Response business identifier.", 0, java.lang.Integer.MAX_VALUE, identifier);
397        case -892481550: /*status*/  return new Property("status", "code", "The status of the resource instance.", 0, 1, status);
398        case 1028554472: /*created*/  return new Property("created", "dateTime", "The date when this resource was created.", 0, 1, created);
399        case 1957615864: /*insurer*/  return new Property("insurer", "Reference(Organization)", "The Insurer who is target  of the request.", 0, 1, insurer);
400        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);
401        case 508663171: /*candidate*/  return new Property("candidate", "Reference(Patient)", "Patient Resource.", 0, 1, candidate);
402        case -351767064: /*coverage*/  return new Property("coverage", "Reference(Coverage)", "Reference to the program or plan identification, underwriter or payor.", 0, 1, coverage);
403        default: return super.getNamedProperty(_hash, _name, _checkValid);
404        }
405
406      }
407
408      @Override
409      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
410        switch (hash) {
411        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier
412        case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<FinancialResourceStatusCodes>
413        case 1028554472: /*created*/ return this.created == null ? new Base[0] : new Base[] {this.created}; // DateTimeType
414        case 1957615864: /*insurer*/ return this.insurer == null ? new Base[0] : new Base[] {this.insurer}; // Reference
415        case -987494927: /*provider*/ return this.provider == null ? new Base[0] : new Base[] {this.provider}; // Reference
416        case 508663171: /*candidate*/ return this.candidate == null ? new Base[0] : new Base[] {this.candidate}; // Reference
417        case -351767064: /*coverage*/ return this.coverage == null ? new Base[0] : new Base[] {this.coverage}; // Reference
418        default: return super.getProperty(hash, name, checkValid);
419        }
420
421      }
422
423      @Override
424      public Base setProperty(int hash, String name, Base value) throws FHIRException {
425        switch (hash) {
426        case -1618432855: // identifier
427          this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier
428          return value;
429        case -892481550: // status
430          value = new FinancialResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value));
431          this.status = (Enumeration) value; // Enumeration<FinancialResourceStatusCodes>
432          return value;
433        case 1028554472: // created
434          this.created = TypeConvertor.castToDateTime(value); // DateTimeType
435          return value;
436        case 1957615864: // insurer
437          this.insurer = TypeConvertor.castToReference(value); // Reference
438          return value;
439        case -987494927: // provider
440          this.provider = TypeConvertor.castToReference(value); // Reference
441          return value;
442        case 508663171: // candidate
443          this.candidate = TypeConvertor.castToReference(value); // Reference
444          return value;
445        case -351767064: // coverage
446          this.coverage = TypeConvertor.castToReference(value); // Reference
447          return value;
448        default: return super.setProperty(hash, name, value);
449        }
450
451      }
452
453      @Override
454      public Base setProperty(String name, Base value) throws FHIRException {
455        if (name.equals("identifier")) {
456          this.getIdentifier().add(TypeConvertor.castToIdentifier(value));
457        } else if (name.equals("status")) {
458          value = new FinancialResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value));
459          this.status = (Enumeration) value; // Enumeration<FinancialResourceStatusCodes>
460        } else if (name.equals("created")) {
461          this.created = TypeConvertor.castToDateTime(value); // DateTimeType
462        } else if (name.equals("insurer")) {
463          this.insurer = TypeConvertor.castToReference(value); // Reference
464        } else if (name.equals("provider")) {
465          this.provider = TypeConvertor.castToReference(value); // Reference
466        } else if (name.equals("candidate")) {
467          this.candidate = TypeConvertor.castToReference(value); // Reference
468        } else if (name.equals("coverage")) {
469          this.coverage = TypeConvertor.castToReference(value); // Reference
470        } else
471          return super.setProperty(name, value);
472        return value;
473      }
474
475      @Override
476      public Base makeProperty(int hash, String name) throws FHIRException {
477        switch (hash) {
478        case -1618432855:  return addIdentifier(); 
479        case -892481550:  return getStatusElement();
480        case 1028554472:  return getCreatedElement();
481        case 1957615864:  return getInsurer();
482        case -987494927:  return getProvider();
483        case 508663171:  return getCandidate();
484        case -351767064:  return getCoverage();
485        default: return super.makeProperty(hash, name);
486        }
487
488      }
489
490      @Override
491      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
492        switch (hash) {
493        case -1618432855: /*identifier*/ return new String[] {"Identifier"};
494        case -892481550: /*status*/ return new String[] {"code"};
495        case 1028554472: /*created*/ return new String[] {"dateTime"};
496        case 1957615864: /*insurer*/ return new String[] {"Reference"};
497        case -987494927: /*provider*/ return new String[] {"Reference"};
498        case 508663171: /*candidate*/ return new String[] {"Reference"};
499        case -351767064: /*coverage*/ return new String[] {"Reference"};
500        default: return super.getTypesForProperty(hash, name);
501        }
502
503      }
504
505      @Override
506      public Base addChild(String name) throws FHIRException {
507        if (name.equals("identifier")) {
508          return addIdentifier();
509        }
510        else if (name.equals("status")) {
511          throw new FHIRException("Cannot call addChild on a primitive type EnrollmentRequest.status");
512        }
513        else if (name.equals("created")) {
514          throw new FHIRException("Cannot call addChild on a primitive type EnrollmentRequest.created");
515        }
516        else if (name.equals("insurer")) {
517          this.insurer = new Reference();
518          return this.insurer;
519        }
520        else if (name.equals("provider")) {
521          this.provider = new Reference();
522          return this.provider;
523        }
524        else if (name.equals("candidate")) {
525          this.candidate = new Reference();
526          return this.candidate;
527        }
528        else if (name.equals("coverage")) {
529          this.coverage = new Reference();
530          return this.coverage;
531        }
532        else
533          return super.addChild(name);
534      }
535
536  public String fhirType() {
537    return "EnrollmentRequest";
538
539  }
540
541      public EnrollmentRequest copy() {
542        EnrollmentRequest dst = new EnrollmentRequest();
543        copyValues(dst);
544        return dst;
545      }
546
547      public void copyValues(EnrollmentRequest dst) {
548        super.copyValues(dst);
549        if (identifier != null) {
550          dst.identifier = new ArrayList<Identifier>();
551          for (Identifier i : identifier)
552            dst.identifier.add(i.copy());
553        };
554        dst.status = status == null ? null : status.copy();
555        dst.created = created == null ? null : created.copy();
556        dst.insurer = insurer == null ? null : insurer.copy();
557        dst.provider = provider == null ? null : provider.copy();
558        dst.candidate = candidate == null ? null : candidate.copy();
559        dst.coverage = coverage == null ? null : coverage.copy();
560      }
561
562      protected EnrollmentRequest typedCopy() {
563        return copy();
564      }
565
566      @Override
567      public boolean equalsDeep(Base other_) {
568        if (!super.equalsDeep(other_))
569          return false;
570        if (!(other_ instanceof EnrollmentRequest))
571          return false;
572        EnrollmentRequest o = (EnrollmentRequest) other_;
573        return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(created, o.created, true)
574           && compareDeep(insurer, o.insurer, true) && compareDeep(provider, o.provider, true) && compareDeep(candidate, o.candidate, true)
575           && compareDeep(coverage, o.coverage, true);
576      }
577
578      @Override
579      public boolean equalsShallow(Base other_) {
580        if (!super.equalsShallow(other_))
581          return false;
582        if (!(other_ instanceof EnrollmentRequest))
583          return false;
584        EnrollmentRequest o = (EnrollmentRequest) other_;
585        return compareValues(status, o.status, true) && compareValues(created, o.created, true);
586      }
587
588      public boolean isEmpty() {
589        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, created
590          , insurer, provider, candidate, coverage);
591      }
592
593  @Override
594  public ResourceType getResourceType() {
595    return ResourceType.EnrollmentRequest;
596   }
597
598 /**
599   * Search parameter: <b>identifier</b>
600   * <p>
601   * Description: <b>The business identifier of the Enrollment</b><br>
602   * Type: <b>token</b><br>
603   * Path: <b>EnrollmentRequest.identifier</b><br>
604   * </p>
605   */
606  @SearchParamDefinition(name="identifier", path="EnrollmentRequest.identifier", description="The business identifier of the Enrollment", type="token" )
607  public static final String SP_IDENTIFIER = "identifier";
608 /**
609   * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
610   * <p>
611   * Description: <b>The business identifier of the Enrollment</b><br>
612   * Type: <b>token</b><br>
613   * Path: <b>EnrollmentRequest.identifier</b><br>
614   * </p>
615   */
616  public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
617
618 /**
619   * Search parameter: <b>patient</b>
620   * <p>
621   * Description: <b>The party to be enrolled</b><br>
622   * Type: <b>reference</b><br>
623   * Path: <b>EnrollmentRequest.candidate</b><br>
624   * </p>
625   */
626  @SearchParamDefinition(name="patient", path="EnrollmentRequest.candidate", description="The party to be enrolled", type="reference", target={Patient.class } )
627  public static final String SP_PATIENT = "patient";
628 /**
629   * <b>Fluent Client</b> search parameter constant for <b>patient</b>
630   * <p>
631   * Description: <b>The party to be enrolled</b><br>
632   * Type: <b>reference</b><br>
633   * Path: <b>EnrollmentRequest.candidate</b><br>
634   * </p>
635   */
636  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT);
637
638/**
639   * Constant for fluent queries to be used to add include statements. Specifies
640   * the path value of "<b>EnrollmentRequest:patient</b>".
641   */
642  public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("EnrollmentRequest:patient").toLocked();
643
644 /**
645   * Search parameter: <b>status</b>
646   * <p>
647   * Description: <b>The status of the enrollment</b><br>
648   * Type: <b>token</b><br>
649   * Path: <b>EnrollmentRequest.status</b><br>
650   * </p>
651   */
652  @SearchParamDefinition(name="status", path="EnrollmentRequest.status", description="The status of the enrollment", type="token" )
653  public static final String SP_STATUS = "status";
654 /**
655   * <b>Fluent Client</b> search parameter constant for <b>status</b>
656   * <p>
657   * Description: <b>The status of the enrollment</b><br>
658   * Type: <b>token</b><br>
659   * Path: <b>EnrollmentRequest.status</b><br>
660   * </p>
661   */
662  public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS);
663
664 /**
665   * Search parameter: <b>subject</b>
666   * <p>
667   * Description: <b>The party to be enrolled</b><br>
668   * Type: <b>reference</b><br>
669   * Path: <b>EnrollmentRequest.candidate</b><br>
670   * </p>
671   */
672  @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 } )
673  public static final String SP_SUBJECT = "subject";
674 /**
675   * <b>Fluent Client</b> search parameter constant for <b>subject</b>
676   * <p>
677   * Description: <b>The party to be enrolled</b><br>
678   * Type: <b>reference</b><br>
679   * Path: <b>EnrollmentRequest.candidate</b><br>
680   * </p>
681   */
682  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT);
683
684/**
685   * Constant for fluent queries to be used to add include statements. Specifies
686   * the path value of "<b>EnrollmentRequest:subject</b>".
687   */
688  public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("EnrollmentRequest:subject").toLocked();
689
690
691}
692