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.r5.model.Enumerations.*;
058import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
059import org.hl7.fhir.exceptions.FHIRException;
060import org.hl7.fhir.instance.model.api.ICompositeType;
061import ca.uhn.fhir.model.api.annotation.ResourceDef;
062import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
063import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
064import ca.uhn.fhir.model.api.annotation.Child;
065import ca.uhn.fhir.model.api.annotation.ChildOrder;
066import ca.uhn.fhir.model.api.annotation.Description;
067import ca.uhn.fhir.model.api.annotation.Block;
068
069/**
070 * Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification.
071 */
072@ResourceDef(name="Basic", profile="http://hl7.org/fhir/StructureDefinition/Basic")
073public class Basic extends DomainResource {
074
075    /**
076     * Identifier assigned to the resource for business purposes, outside the context of FHIR.
077     */
078    @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
079    @Description(shortDefinition="Business identifier", formalDefinition="Identifier assigned to the resource for business purposes, outside the context of FHIR." )
080    protected List<Identifier> identifier;
081
082    /**
083     * Identifies the 'type' of resource - equivalent to the resource name for other resources.
084     */
085    @Child(name = "code", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=true, summary=true)
086    @Description(shortDefinition="Kind of Resource", formalDefinition="Identifies the 'type' of resource - equivalent to the resource name for other resources." )
087    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/basic-resource-type")
088    protected CodeableConcept code;
089
090    /**
091     * Identifies the patient, practitioner, device or any other resource that is the "focus" of this resource.
092     */
093    @Child(name = "subject", type = {Reference.class}, order=2, min=0, max=1, modifier=false, summary=true)
094    @Description(shortDefinition="Identifies the focus of this resource", formalDefinition="Identifies the patient, practitioner, device or any other resource that is the \"focus\" of this resource." )
095    protected Reference subject;
096
097    /**
098     * Identifies when the resource was first created.
099     */
100    @Child(name = "created", type = {DateType.class}, order=3, min=0, max=1, modifier=false, summary=true)
101    @Description(shortDefinition="When created", formalDefinition="Identifies when the resource was first created." )
102    protected DateType created;
103
104    /**
105     * Indicates who was responsible for creating the resource instance.
106     */
107    @Child(name = "author", type = {Practitioner.class, PractitionerRole.class, Patient.class, RelatedPerson.class, Organization.class}, order=4, min=0, max=1, modifier=false, summary=true)
108    @Description(shortDefinition="Who created", formalDefinition="Indicates who was responsible for creating the resource instance." )
109    protected Reference author;
110
111    private static final long serialVersionUID = 1468819397L;
112
113  /**
114   * Constructor
115   */
116    public Basic() {
117      super();
118    }
119
120  /**
121   * Constructor
122   */
123    public Basic(CodeableConcept code) {
124      super();
125      this.setCode(code);
126    }
127
128    /**
129     * @return {@link #identifier} (Identifier assigned to the resource for business purposes, outside the context of FHIR.)
130     */
131    public List<Identifier> getIdentifier() { 
132      if (this.identifier == null)
133        this.identifier = new ArrayList<Identifier>();
134      return this.identifier;
135    }
136
137    /**
138     * @return Returns a reference to <code>this</code> for easy method chaining
139     */
140    public Basic setIdentifier(List<Identifier> theIdentifier) { 
141      this.identifier = theIdentifier;
142      return this;
143    }
144
145    public boolean hasIdentifier() { 
146      if (this.identifier == null)
147        return false;
148      for (Identifier item : this.identifier)
149        if (!item.isEmpty())
150          return true;
151      return false;
152    }
153
154    public Identifier addIdentifier() { //3
155      Identifier t = new Identifier();
156      if (this.identifier == null)
157        this.identifier = new ArrayList<Identifier>();
158      this.identifier.add(t);
159      return t;
160    }
161
162    public Basic addIdentifier(Identifier t) { //3
163      if (t == null)
164        return this;
165      if (this.identifier == null)
166        this.identifier = new ArrayList<Identifier>();
167      this.identifier.add(t);
168      return this;
169    }
170
171    /**
172     * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3}
173     */
174    public Identifier getIdentifierFirstRep() { 
175      if (getIdentifier().isEmpty()) {
176        addIdentifier();
177      }
178      return getIdentifier().get(0);
179    }
180
181    /**
182     * @return {@link #code} (Identifies the 'type' of resource - equivalent to the resource name for other resources.)
183     */
184    public CodeableConcept getCode() { 
185      if (this.code == null)
186        if (Configuration.errorOnAutoCreate())
187          throw new Error("Attempt to auto-create Basic.code");
188        else if (Configuration.doAutoCreate())
189          this.code = new CodeableConcept(); // cc
190      return this.code;
191    }
192
193    public boolean hasCode() { 
194      return this.code != null && !this.code.isEmpty();
195    }
196
197    /**
198     * @param value {@link #code} (Identifies the 'type' of resource - equivalent to the resource name for other resources.)
199     */
200    public Basic setCode(CodeableConcept value) { 
201      this.code = value;
202      return this;
203    }
204
205    /**
206     * @return {@link #subject} (Identifies the patient, practitioner, device or any other resource that is the "focus" of this resource.)
207     */
208    public Reference getSubject() { 
209      if (this.subject == null)
210        if (Configuration.errorOnAutoCreate())
211          throw new Error("Attempt to auto-create Basic.subject");
212        else if (Configuration.doAutoCreate())
213          this.subject = new Reference(); // cc
214      return this.subject;
215    }
216
217    public boolean hasSubject() { 
218      return this.subject != null && !this.subject.isEmpty();
219    }
220
221    /**
222     * @param value {@link #subject} (Identifies the patient, practitioner, device or any other resource that is the "focus" of this resource.)
223     */
224    public Basic setSubject(Reference value) { 
225      this.subject = value;
226      return this;
227    }
228
229    /**
230     * @return {@link #created} (Identifies when the resource was first created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value
231     */
232    public DateType getCreatedElement() { 
233      if (this.created == null)
234        if (Configuration.errorOnAutoCreate())
235          throw new Error("Attempt to auto-create Basic.created");
236        else if (Configuration.doAutoCreate())
237          this.created = new DateType(); // bb
238      return this.created;
239    }
240
241    public boolean hasCreatedElement() { 
242      return this.created != null && !this.created.isEmpty();
243    }
244
245    public boolean hasCreated() { 
246      return this.created != null && !this.created.isEmpty();
247    }
248
249    /**
250     * @param value {@link #created} (Identifies when the resource was first created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value
251     */
252    public Basic setCreatedElement(DateType value) { 
253      this.created = value;
254      return this;
255    }
256
257    /**
258     * @return Identifies when the resource was first created.
259     */
260    public Date getCreated() { 
261      return this.created == null ? null : this.created.getValue();
262    }
263
264    /**
265     * @param value Identifies when the resource was first created.
266     */
267    public Basic setCreated(Date value) { 
268      if (value == null)
269        this.created = null;
270      else {
271        if (this.created == null)
272          this.created = new DateType();
273        this.created.setValue(value);
274      }
275      return this;
276    }
277
278    /**
279     * @return {@link #author} (Indicates who was responsible for creating the resource instance.)
280     */
281    public Reference getAuthor() { 
282      if (this.author == null)
283        if (Configuration.errorOnAutoCreate())
284          throw new Error("Attempt to auto-create Basic.author");
285        else if (Configuration.doAutoCreate())
286          this.author = new Reference(); // cc
287      return this.author;
288    }
289
290    public boolean hasAuthor() { 
291      return this.author != null && !this.author.isEmpty();
292    }
293
294    /**
295     * @param value {@link #author} (Indicates who was responsible for creating the resource instance.)
296     */
297    public Basic setAuthor(Reference value) { 
298      this.author = value;
299      return this;
300    }
301
302      protected void listChildren(List<Property> children) {
303        super.listChildren(children);
304        children.add(new Property("identifier", "Identifier", "Identifier assigned to the resource for business purposes, outside the context of FHIR.", 0, java.lang.Integer.MAX_VALUE, identifier));
305        children.add(new Property("code", "CodeableConcept", "Identifies the 'type' of resource - equivalent to the resource name for other resources.", 0, 1, code));
306        children.add(new Property("subject", "Reference(Any)", "Identifies the patient, practitioner, device or any other resource that is the \"focus\" of this resource.", 0, 1, subject));
307        children.add(new Property("created", "date", "Identifies when the resource was first created.", 0, 1, created));
308        children.add(new Property("author", "Reference(Practitioner|PractitionerRole|Patient|RelatedPerson|Organization)", "Indicates who was responsible for creating the resource instance.", 0, 1, author));
309      }
310
311      @Override
312      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
313        switch (_hash) {
314        case -1618432855: /*identifier*/  return new Property("identifier", "Identifier", "Identifier assigned to the resource for business purposes, outside the context of FHIR.", 0, java.lang.Integer.MAX_VALUE, identifier);
315        case 3059181: /*code*/  return new Property("code", "CodeableConcept", "Identifies the 'type' of resource - equivalent to the resource name for other resources.", 0, 1, code);
316        case -1867885268: /*subject*/  return new Property("subject", "Reference(Any)", "Identifies the patient, practitioner, device or any other resource that is the \"focus\" of this resource.", 0, 1, subject);
317        case 1028554472: /*created*/  return new Property("created", "date", "Identifies when the resource was first created.", 0, 1, created);
318        case -1406328437: /*author*/  return new Property("author", "Reference(Practitioner|PractitionerRole|Patient|RelatedPerson|Organization)", "Indicates who was responsible for creating the resource instance.", 0, 1, author);
319        default: return super.getNamedProperty(_hash, _name, _checkValid);
320        }
321
322      }
323
324      @Override
325      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
326        switch (hash) {
327        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier
328        case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept
329        case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference
330        case 1028554472: /*created*/ return this.created == null ? new Base[0] : new Base[] {this.created}; // DateType
331        case -1406328437: /*author*/ return this.author == null ? new Base[0] : new Base[] {this.author}; // Reference
332        default: return super.getProperty(hash, name, checkValid);
333        }
334
335      }
336
337      @Override
338      public Base setProperty(int hash, String name, Base value) throws FHIRException {
339        switch (hash) {
340        case -1618432855: // identifier
341          this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier
342          return value;
343        case 3059181: // code
344          this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
345          return value;
346        case -1867885268: // subject
347          this.subject = TypeConvertor.castToReference(value); // Reference
348          return value;
349        case 1028554472: // created
350          this.created = TypeConvertor.castToDate(value); // DateType
351          return value;
352        case -1406328437: // author
353          this.author = TypeConvertor.castToReference(value); // Reference
354          return value;
355        default: return super.setProperty(hash, name, value);
356        }
357
358      }
359
360      @Override
361      public Base setProperty(String name, Base value) throws FHIRException {
362        if (name.equals("identifier")) {
363          this.getIdentifier().add(TypeConvertor.castToIdentifier(value));
364        } else if (name.equals("code")) {
365          this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
366        } else if (name.equals("subject")) {
367          this.subject = TypeConvertor.castToReference(value); // Reference
368        } else if (name.equals("created")) {
369          this.created = TypeConvertor.castToDate(value); // DateType
370        } else if (name.equals("author")) {
371          this.author = TypeConvertor.castToReference(value); // Reference
372        } else
373          return super.setProperty(name, value);
374        return value;
375      }
376
377      @Override
378      public Base makeProperty(int hash, String name) throws FHIRException {
379        switch (hash) {
380        case -1618432855:  return addIdentifier(); 
381        case 3059181:  return getCode();
382        case -1867885268:  return getSubject();
383        case 1028554472:  return getCreatedElement();
384        case -1406328437:  return getAuthor();
385        default: return super.makeProperty(hash, name);
386        }
387
388      }
389
390      @Override
391      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
392        switch (hash) {
393        case -1618432855: /*identifier*/ return new String[] {"Identifier"};
394        case 3059181: /*code*/ return new String[] {"CodeableConcept"};
395        case -1867885268: /*subject*/ return new String[] {"Reference"};
396        case 1028554472: /*created*/ return new String[] {"date"};
397        case -1406328437: /*author*/ return new String[] {"Reference"};
398        default: return super.getTypesForProperty(hash, name);
399        }
400
401      }
402
403      @Override
404      public Base addChild(String name) throws FHIRException {
405        if (name.equals("identifier")) {
406          return addIdentifier();
407        }
408        else if (name.equals("code")) {
409          this.code = new CodeableConcept();
410          return this.code;
411        }
412        else if (name.equals("subject")) {
413          this.subject = new Reference();
414          return this.subject;
415        }
416        else if (name.equals("created")) {
417          throw new FHIRException("Cannot call addChild on a primitive type Basic.created");
418        }
419        else if (name.equals("author")) {
420          this.author = new Reference();
421          return this.author;
422        }
423        else
424          return super.addChild(name);
425      }
426
427  public String fhirType() {
428    return "Basic";
429
430  }
431
432      public Basic copy() {
433        Basic dst = new Basic();
434        copyValues(dst);
435        return dst;
436      }
437
438      public void copyValues(Basic dst) {
439        super.copyValues(dst);
440        if (identifier != null) {
441          dst.identifier = new ArrayList<Identifier>();
442          for (Identifier i : identifier)
443            dst.identifier.add(i.copy());
444        };
445        dst.code = code == null ? null : code.copy();
446        dst.subject = subject == null ? null : subject.copy();
447        dst.created = created == null ? null : created.copy();
448        dst.author = author == null ? null : author.copy();
449      }
450
451      protected Basic typedCopy() {
452        return copy();
453      }
454
455      @Override
456      public boolean equalsDeep(Base other_) {
457        if (!super.equalsDeep(other_))
458          return false;
459        if (!(other_ instanceof Basic))
460          return false;
461        Basic o = (Basic) other_;
462        return compareDeep(identifier, o.identifier, true) && compareDeep(code, o.code, true) && compareDeep(subject, o.subject, true)
463           && compareDeep(created, o.created, true) && compareDeep(author, o.author, true);
464      }
465
466      @Override
467      public boolean equalsShallow(Base other_) {
468        if (!super.equalsShallow(other_))
469          return false;
470        if (!(other_ instanceof Basic))
471          return false;
472        Basic o = (Basic) other_;
473        return compareValues(created, o.created, true);
474      }
475
476      public boolean isEmpty() {
477        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, code, subject
478          , created, author);
479      }
480
481  @Override
482  public ResourceType getResourceType() {
483    return ResourceType.Basic;
484   }
485
486 /**
487   * Search parameter: <b>author</b>
488   * <p>
489   * Description: <b>Who created</b><br>
490   * Type: <b>reference</b><br>
491   * Path: <b>Basic.author</b><br>
492   * </p>
493   */
494  @SearchParamDefinition(name="author", path="Basic.author", description="Who created", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } )
495  public static final String SP_AUTHOR = "author";
496 /**
497   * <b>Fluent Client</b> search parameter constant for <b>author</b>
498   * <p>
499   * Description: <b>Who created</b><br>
500   * Type: <b>reference</b><br>
501   * Path: <b>Basic.author</b><br>
502   * </p>
503   */
504  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam AUTHOR = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_AUTHOR);
505
506/**
507   * Constant for fluent queries to be used to add include statements. Specifies
508   * the path value of "<b>Basic:author</b>".
509   */
510  public static final ca.uhn.fhir.model.api.Include INCLUDE_AUTHOR = new ca.uhn.fhir.model.api.Include("Basic:author").toLocked();
511
512 /**
513   * Search parameter: <b>code</b>
514   * <p>
515   * Description: <b>Kind of Resource</b><br>
516   * Type: <b>token</b><br>
517   * Path: <b>Basic.code</b><br>
518   * </p>
519   */
520  @SearchParamDefinition(name="code", path="Basic.code", description="Kind of Resource", type="token" )
521  public static final String SP_CODE = "code";
522 /**
523   * <b>Fluent Client</b> search parameter constant for <b>code</b>
524   * <p>
525   * Description: <b>Kind of Resource</b><br>
526   * Type: <b>token</b><br>
527   * Path: <b>Basic.code</b><br>
528   * </p>
529   */
530  public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE);
531
532 /**
533   * Search parameter: <b>created</b>
534   * <p>
535   * Description: <b>When created</b><br>
536   * Type: <b>date</b><br>
537   * Path: <b>Basic.created</b><br>
538   * </p>
539   */
540  @SearchParamDefinition(name="created", path="Basic.created", description="When created", type="date" )
541  public static final String SP_CREATED = "created";
542 /**
543   * <b>Fluent Client</b> search parameter constant for <b>created</b>
544   * <p>
545   * Description: <b>When created</b><br>
546   * Type: <b>date</b><br>
547   * Path: <b>Basic.created</b><br>
548   * </p>
549   */
550  public static final ca.uhn.fhir.rest.gclient.DateClientParam CREATED = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_CREATED);
551
552 /**
553   * Search parameter: <b>identifier</b>
554   * <p>
555   * Description: <b>Business identifier</b><br>
556   * Type: <b>token</b><br>
557   * Path: <b>Basic.identifier</b><br>
558   * </p>
559   */
560  @SearchParamDefinition(name="identifier", path="Basic.identifier", description="Business identifier", type="token" )
561  public static final String SP_IDENTIFIER = "identifier";
562 /**
563   * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
564   * <p>
565   * Description: <b>Business identifier</b><br>
566   * Type: <b>token</b><br>
567   * Path: <b>Basic.identifier</b><br>
568   * </p>
569   */
570  public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
571
572 /**
573   * Search parameter: <b>patient</b>
574   * <p>
575   * Description: <b>Identifies the focus of this resource</b><br>
576   * Type: <b>reference</b><br>
577   * Path: <b>Basic.subject.where(resolve() is Patient)</b><br>
578   * </p>
579   */
580  @SearchParamDefinition(name="patient", path="Basic.subject.where(resolve() is Patient)", description="Identifies the focus of this resource", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Patient.class } )
581  public static final String SP_PATIENT = "patient";
582 /**
583   * <b>Fluent Client</b> search parameter constant for <b>patient</b>
584   * <p>
585   * Description: <b>Identifies the focus of this resource</b><br>
586   * Type: <b>reference</b><br>
587   * Path: <b>Basic.subject.where(resolve() is Patient)</b><br>
588   * </p>
589   */
590  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT);
591
592/**
593   * Constant for fluent queries to be used to add include statements. Specifies
594   * the path value of "<b>Basic:patient</b>".
595   */
596  public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Basic:patient").toLocked();
597
598 /**
599   * Search parameter: <b>subject</b>
600   * <p>
601   * Description: <b>Identifies the focus of this resource</b><br>
602   * Type: <b>reference</b><br>
603   * Path: <b>Basic.subject</b><br>
604   * </p>
605   */
606  @SearchParamDefinition(name="subject", path="Basic.subject", description="Identifies the focus of this resource", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, Topic.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
607  public static final String SP_SUBJECT = "subject";
608 /**
609   * <b>Fluent Client</b> search parameter constant for <b>subject</b>
610   * <p>
611   * Description: <b>Identifies the focus of this resource</b><br>
612   * Type: <b>reference</b><br>
613   * Path: <b>Basic.subject</b><br>
614   * </p>
615   */
616  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT);
617
618/**
619   * Constant for fluent queries to be used to add include statements. Specifies
620   * the path value of "<b>Basic:subject</b>".
621   */
622  public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("Basic:subject").toLocked();
623
624
625}
626