001package org.hl7.fhir.dstu3.model;
002
003/*
004  Copyright (c) 2011+, HL7, Inc.
005  All rights reserved.
006  
007  Redistribution and use in source and binary forms, with or without modification, 
008  are permitted provided that the following conditions are met:
009  
010   * Redistributions of source code must retain the above copyright notice, this 
011     list of conditions and the following disclaimer.
012   * Redistributions in binary form must reproduce the above copyright notice, 
013     this list of conditions and the following disclaimer in the documentation 
014     and/or other materials provided with the distribution.
015   * Neither the name of HL7 nor the names of its contributors may be used to 
016     endorse or promote products derived from this software without specific 
017     prior written permission.
018  
019  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
020  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
021  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
022  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
023  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
024  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
025  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
026  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
027  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
028  POSSIBILITY OF SUCH DAMAGE.
029  
030*/
031
032// Generated on Fri, Mar 16, 2018 15:21+1100 for FHIR v3.0.1
033
034import java.util.*;
035
036import org.hl7.fhir.utilities.Utilities;
037import ca.uhn.fhir.model.api.annotation.ResourceDef;
038import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
039import ca.uhn.fhir.model.api.annotation.Child;
040import ca.uhn.fhir.model.api.annotation.ChildOrder;
041import ca.uhn.fhir.model.api.annotation.Description;
042import ca.uhn.fhir.model.api.annotation.Block;
043import org.hl7.fhir.instance.model.api.*;
044import org.hl7.fhir.exceptions.FHIRException;
045import org.hl7.fhir.exceptions.FHIRFormatError;
046/**
047 * A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern.
048 */
049@ResourceDef(name="Condition", profile="http://hl7.org/fhir/StructureDefinition/Condition")
050public class Condition extends DomainResource {
051
052    public enum ConditionClinicalStatus {
053        /**
054         * The subject is currently experiencing the symptoms of the condition or there is evidence of the condition.
055         */
056        ACTIVE, 
057        /**
058         * The subject is having a relapse or re-experiencing the condition after a period of remission or presumed resolution.
059         */
060        RECURRENCE, 
061        /**
062         * The subject is no longer experiencing the symptoms of the condition or there is no longer evidence of the condition.
063         */
064        INACTIVE, 
065        /**
066         * The subject is no longer experiencing the symptoms of the condition, but there is a risk of the symptoms returning.
067         */
068        REMISSION, 
069        /**
070         * The subject is no longer experiencing the symptoms of the condition and there is a negligible perceived risk of the symptoms returning.
071         */
072        RESOLVED, 
073        /**
074         * added to help the parsers with the generic types
075         */
076        NULL;
077        public static ConditionClinicalStatus fromCode(String codeString) throws FHIRException {
078            if (codeString == null || "".equals(codeString))
079                return null;
080        if ("active".equals(codeString))
081          return ACTIVE;
082        if ("recurrence".equals(codeString))
083          return RECURRENCE;
084        if ("inactive".equals(codeString))
085          return INACTIVE;
086        if ("remission".equals(codeString))
087          return REMISSION;
088        if ("resolved".equals(codeString))
089          return RESOLVED;
090        if (Configuration.isAcceptInvalidEnums())
091          return null;
092        else
093          throw new FHIRException("Unknown ConditionClinicalStatus code '"+codeString+"'");
094        }
095        public String toCode() {
096          switch (this) {
097            case ACTIVE: return "active";
098            case RECURRENCE: return "recurrence";
099            case INACTIVE: return "inactive";
100            case REMISSION: return "remission";
101            case RESOLVED: return "resolved";
102            default: return "?";
103          }
104        }
105        public String getSystem() {
106          switch (this) {
107            case ACTIVE: return "http://hl7.org/fhir/condition-clinical";
108            case RECURRENCE: return "http://hl7.org/fhir/condition-clinical";
109            case INACTIVE: return "http://hl7.org/fhir/condition-clinical";
110            case REMISSION: return "http://hl7.org/fhir/condition-clinical";
111            case RESOLVED: return "http://hl7.org/fhir/condition-clinical";
112            default: return "?";
113          }
114        }
115        public String getDefinition() {
116          switch (this) {
117            case ACTIVE: return "The subject is currently experiencing the symptoms of the condition or there is evidence of the condition.";
118            case RECURRENCE: return "The subject is having a relapse or re-experiencing the condition after a period of remission or presumed resolution.";
119            case INACTIVE: return "The subject is no longer experiencing the symptoms of the condition or there is no longer evidence of the condition.";
120            case REMISSION: return "The subject is no longer experiencing the symptoms of the condition, but there is a risk of the symptoms returning.";
121            case RESOLVED: return "The subject is no longer experiencing the symptoms of the condition and there is a negligible perceived risk of the symptoms returning.";
122            default: return "?";
123          }
124        }
125        public String getDisplay() {
126          switch (this) {
127            case ACTIVE: return "Active";
128            case RECURRENCE: return "Recurrence";
129            case INACTIVE: return "Inactive";
130            case REMISSION: return "Remission";
131            case RESOLVED: return "Resolved";
132            default: return "?";
133          }
134        }
135    }
136
137  public static class ConditionClinicalStatusEnumFactory implements EnumFactory<ConditionClinicalStatus> {
138    public ConditionClinicalStatus fromCode(String codeString) throws IllegalArgumentException {
139      if (codeString == null || "".equals(codeString))
140            if (codeString == null || "".equals(codeString))
141                return null;
142        if ("active".equals(codeString))
143          return ConditionClinicalStatus.ACTIVE;
144        if ("recurrence".equals(codeString))
145          return ConditionClinicalStatus.RECURRENCE;
146        if ("inactive".equals(codeString))
147          return ConditionClinicalStatus.INACTIVE;
148        if ("remission".equals(codeString))
149          return ConditionClinicalStatus.REMISSION;
150        if ("resolved".equals(codeString))
151          return ConditionClinicalStatus.RESOLVED;
152        throw new IllegalArgumentException("Unknown ConditionClinicalStatus code '"+codeString+"'");
153        }
154        public Enumeration<ConditionClinicalStatus> fromType(Base code) throws FHIRException {
155          if (code == null)
156            return null;
157          if (code.isEmpty())
158            return new Enumeration<ConditionClinicalStatus>(this);
159          String codeString = ((PrimitiveType) code).asStringValue();
160          if (codeString == null || "".equals(codeString))
161            return null;
162        if ("active".equals(codeString))
163          return new Enumeration<ConditionClinicalStatus>(this, ConditionClinicalStatus.ACTIVE);
164        if ("recurrence".equals(codeString))
165          return new Enumeration<ConditionClinicalStatus>(this, ConditionClinicalStatus.RECURRENCE);
166        if ("inactive".equals(codeString))
167          return new Enumeration<ConditionClinicalStatus>(this, ConditionClinicalStatus.INACTIVE);
168        if ("remission".equals(codeString))
169          return new Enumeration<ConditionClinicalStatus>(this, ConditionClinicalStatus.REMISSION);
170        if ("resolved".equals(codeString))
171          return new Enumeration<ConditionClinicalStatus>(this, ConditionClinicalStatus.RESOLVED);
172        throw new FHIRException("Unknown ConditionClinicalStatus code '"+codeString+"'");
173        }
174    public String toCode(ConditionClinicalStatus code) {
175      if (code == ConditionClinicalStatus.ACTIVE)
176        return "active";
177      if (code == ConditionClinicalStatus.RECURRENCE)
178        return "recurrence";
179      if (code == ConditionClinicalStatus.INACTIVE)
180        return "inactive";
181      if (code == ConditionClinicalStatus.REMISSION)
182        return "remission";
183      if (code == ConditionClinicalStatus.RESOLVED)
184        return "resolved";
185      return "?";
186      }
187    public String toSystem(ConditionClinicalStatus code) {
188      return code.getSystem();
189      }
190    }
191
192    public enum ConditionVerificationStatus {
193        /**
194         * This is a tentative diagnosis - still a candidate that is under consideration.
195         */
196        PROVISIONAL, 
197        /**
198         * One of a set of potential (and typically mutually exclusive) diagnoses asserted to further guide the diagnostic process and preliminary treatment.
199         */
200        DIFFERENTIAL, 
201        /**
202         * There is sufficient diagnostic and/or clinical evidence to treat this as a confirmed condition.
203         */
204        CONFIRMED, 
205        /**
206         * This condition has been ruled out by diagnostic and clinical evidence.
207         */
208        REFUTED, 
209        /**
210         * The statement was entered in error and is not valid.
211         */
212        ENTEREDINERROR, 
213        /**
214         * The condition status is unknown.  Note that "unknown" is a value of last resort and every attempt should be made to provide a meaningful value other than "unknown".
215         */
216        UNKNOWN, 
217        /**
218         * added to help the parsers with the generic types
219         */
220        NULL;
221        public static ConditionVerificationStatus fromCode(String codeString) throws FHIRException {
222            if (codeString == null || "".equals(codeString))
223                return null;
224        if ("provisional".equals(codeString))
225          return PROVISIONAL;
226        if ("differential".equals(codeString))
227          return DIFFERENTIAL;
228        if ("confirmed".equals(codeString))
229          return CONFIRMED;
230        if ("refuted".equals(codeString))
231          return REFUTED;
232        if ("entered-in-error".equals(codeString))
233          return ENTEREDINERROR;
234        if ("unknown".equals(codeString))
235          return UNKNOWN;
236        if (Configuration.isAcceptInvalidEnums())
237          return null;
238        else
239          throw new FHIRException("Unknown ConditionVerificationStatus code '"+codeString+"'");
240        }
241        public String toCode() {
242          switch (this) {
243            case PROVISIONAL: return "provisional";
244            case DIFFERENTIAL: return "differential";
245            case CONFIRMED: return "confirmed";
246            case REFUTED: return "refuted";
247            case ENTEREDINERROR: return "entered-in-error";
248            case UNKNOWN: return "unknown";
249            default: return "?";
250          }
251        }
252        public String getSystem() {
253          switch (this) {
254            case PROVISIONAL: return "http://hl7.org/fhir/condition-ver-status";
255            case DIFFERENTIAL: return "http://hl7.org/fhir/condition-ver-status";
256            case CONFIRMED: return "http://hl7.org/fhir/condition-ver-status";
257            case REFUTED: return "http://hl7.org/fhir/condition-ver-status";
258            case ENTEREDINERROR: return "http://hl7.org/fhir/condition-ver-status";
259            case UNKNOWN: return "http://hl7.org/fhir/condition-ver-status";
260            default: return "?";
261          }
262        }
263        public String getDefinition() {
264          switch (this) {
265            case PROVISIONAL: return "This is a tentative diagnosis - still a candidate that is under consideration.";
266            case DIFFERENTIAL: return "One of a set of potential (and typically mutually exclusive) diagnoses asserted to further guide the diagnostic process and preliminary treatment.";
267            case CONFIRMED: return "There is sufficient diagnostic and/or clinical evidence to treat this as a confirmed condition.";
268            case REFUTED: return "This condition has been ruled out by diagnostic and clinical evidence.";
269            case ENTEREDINERROR: return "The statement was entered in error and is not valid.";
270            case UNKNOWN: return "The condition status is unknown.  Note that \"unknown\" is a value of last resort and every attempt should be made to provide a meaningful value other than \"unknown\".";
271            default: return "?";
272          }
273        }
274        public String getDisplay() {
275          switch (this) {
276            case PROVISIONAL: return "Provisional";
277            case DIFFERENTIAL: return "Differential";
278            case CONFIRMED: return "Confirmed";
279            case REFUTED: return "Refuted";
280            case ENTEREDINERROR: return "Entered In Error";
281            case UNKNOWN: return "Unknown";
282            default: return "?";
283          }
284        }
285    }
286
287  public static class ConditionVerificationStatusEnumFactory implements EnumFactory<ConditionVerificationStatus> {
288    public ConditionVerificationStatus fromCode(String codeString) throws IllegalArgumentException {
289      if (codeString == null || "".equals(codeString))
290            if (codeString == null || "".equals(codeString))
291                return null;
292        if ("provisional".equals(codeString))
293          return ConditionVerificationStatus.PROVISIONAL;
294        if ("differential".equals(codeString))
295          return ConditionVerificationStatus.DIFFERENTIAL;
296        if ("confirmed".equals(codeString))
297          return ConditionVerificationStatus.CONFIRMED;
298        if ("refuted".equals(codeString))
299          return ConditionVerificationStatus.REFUTED;
300        if ("entered-in-error".equals(codeString))
301          return ConditionVerificationStatus.ENTEREDINERROR;
302        if ("unknown".equals(codeString))
303          return ConditionVerificationStatus.UNKNOWN;
304        throw new IllegalArgumentException("Unknown ConditionVerificationStatus code '"+codeString+"'");
305        }
306        public Enumeration<ConditionVerificationStatus> fromType(Base code) throws FHIRException {
307          if (code == null)
308            return null;
309          if (code.isEmpty())
310            return new Enumeration<ConditionVerificationStatus>(this);
311          String codeString = ((PrimitiveType) code).asStringValue();
312          if (codeString == null || "".equals(codeString))
313            return null;
314        if ("provisional".equals(codeString))
315          return new Enumeration<ConditionVerificationStatus>(this, ConditionVerificationStatus.PROVISIONAL);
316        if ("differential".equals(codeString))
317          return new Enumeration<ConditionVerificationStatus>(this, ConditionVerificationStatus.DIFFERENTIAL);
318        if ("confirmed".equals(codeString))
319          return new Enumeration<ConditionVerificationStatus>(this, ConditionVerificationStatus.CONFIRMED);
320        if ("refuted".equals(codeString))
321          return new Enumeration<ConditionVerificationStatus>(this, ConditionVerificationStatus.REFUTED);
322        if ("entered-in-error".equals(codeString))
323          return new Enumeration<ConditionVerificationStatus>(this, ConditionVerificationStatus.ENTEREDINERROR);
324        if ("unknown".equals(codeString))
325          return new Enumeration<ConditionVerificationStatus>(this, ConditionVerificationStatus.UNKNOWN);
326        throw new FHIRException("Unknown ConditionVerificationStatus code '"+codeString+"'");
327        }
328    public String toCode(ConditionVerificationStatus code) {
329      if (code == ConditionVerificationStatus.PROVISIONAL)
330        return "provisional";
331      if (code == ConditionVerificationStatus.DIFFERENTIAL)
332        return "differential";
333      if (code == ConditionVerificationStatus.CONFIRMED)
334        return "confirmed";
335      if (code == ConditionVerificationStatus.REFUTED)
336        return "refuted";
337      if (code == ConditionVerificationStatus.ENTEREDINERROR)
338        return "entered-in-error";
339      if (code == ConditionVerificationStatus.UNKNOWN)
340        return "unknown";
341      return "?";
342      }
343    public String toSystem(ConditionVerificationStatus code) {
344      return code.getSystem();
345      }
346    }
347
348    @Block()
349    public static class ConditionStageComponent extends BackboneElement implements IBaseBackboneElement {
350        /**
351         * A simple summary of the stage such as "Stage 3". The determination of the stage is disease-specific.
352         */
353        @Child(name = "summary", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false)
354        @Description(shortDefinition="Simple summary (disease specific)", formalDefinition="A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific." )
355        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/condition-stage")
356        protected CodeableConcept summary;
357
358        /**
359         * Reference to a formal record of the evidence on which the staging assessment is based.
360         */
361        @Child(name = "assessment", type = {ClinicalImpression.class, DiagnosticReport.class, Observation.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
362        @Description(shortDefinition="Formal record of assessment", formalDefinition="Reference to a formal record of the evidence on which the staging assessment is based." )
363        protected List<Reference> assessment;
364        /**
365         * The actual objects that are the target of the reference (Reference to a formal record of the evidence on which the staging assessment is based.)
366         */
367        protected List<Resource> assessmentTarget;
368
369
370        private static final long serialVersionUID = -1961530405L;
371
372    /**
373     * Constructor
374     */
375      public ConditionStageComponent() {
376        super();
377      }
378
379        /**
380         * @return {@link #summary} (A simple summary of the stage such as "Stage 3". The determination of the stage is disease-specific.)
381         */
382        public CodeableConcept getSummary() { 
383          if (this.summary == null)
384            if (Configuration.errorOnAutoCreate())
385              throw new Error("Attempt to auto-create ConditionStageComponent.summary");
386            else if (Configuration.doAutoCreate())
387              this.summary = new CodeableConcept(); // cc
388          return this.summary;
389        }
390
391        public boolean hasSummary() { 
392          return this.summary != null && !this.summary.isEmpty();
393        }
394
395        /**
396         * @param value {@link #summary} (A simple summary of the stage such as "Stage 3". The determination of the stage is disease-specific.)
397         */
398        public ConditionStageComponent setSummary(CodeableConcept value)  { 
399          this.summary = value;
400          return this;
401        }
402
403        /**
404         * @return {@link #assessment} (Reference to a formal record of the evidence on which the staging assessment is based.)
405         */
406        public List<Reference> getAssessment() { 
407          if (this.assessment == null)
408            this.assessment = new ArrayList<Reference>();
409          return this.assessment;
410        }
411
412        /**
413         * @return Returns a reference to <code>this</code> for easy method chaining
414         */
415        public ConditionStageComponent setAssessment(List<Reference> theAssessment) { 
416          this.assessment = theAssessment;
417          return this;
418        }
419
420        public boolean hasAssessment() { 
421          if (this.assessment == null)
422            return false;
423          for (Reference item : this.assessment)
424            if (!item.isEmpty())
425              return true;
426          return false;
427        }
428
429        public Reference addAssessment() { //3
430          Reference t = new Reference();
431          if (this.assessment == null)
432            this.assessment = new ArrayList<Reference>();
433          this.assessment.add(t);
434          return t;
435        }
436
437        public ConditionStageComponent addAssessment(Reference t) { //3
438          if (t == null)
439            return this;
440          if (this.assessment == null)
441            this.assessment = new ArrayList<Reference>();
442          this.assessment.add(t);
443          return this;
444        }
445
446        /**
447         * @return The first repetition of repeating field {@link #assessment}, creating it if it does not already exist
448         */
449        public Reference getAssessmentFirstRep() { 
450          if (getAssessment().isEmpty()) {
451            addAssessment();
452          }
453          return getAssessment().get(0);
454        }
455
456        /**
457         * @deprecated Use Reference#setResource(IBaseResource) instead
458         */
459        @Deprecated
460        public List<Resource> getAssessmentTarget() { 
461          if (this.assessmentTarget == null)
462            this.assessmentTarget = new ArrayList<Resource>();
463          return this.assessmentTarget;
464        }
465
466        protected void listChildren(List<Property> children) {
467          super.listChildren(children);
468          children.add(new Property("summary", "CodeableConcept", "A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific.", 0, 1, summary));
469          children.add(new Property("assessment", "Reference(ClinicalImpression|DiagnosticReport|Observation)", "Reference to a formal record of the evidence on which the staging assessment is based.", 0, java.lang.Integer.MAX_VALUE, assessment));
470        }
471
472        @Override
473        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
474          switch (_hash) {
475          case -1857640538: /*summary*/  return new Property("summary", "CodeableConcept", "A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific.", 0, 1, summary);
476          case 2119382722: /*assessment*/  return new Property("assessment", "Reference(ClinicalImpression|DiagnosticReport|Observation)", "Reference to a formal record of the evidence on which the staging assessment is based.", 0, java.lang.Integer.MAX_VALUE, assessment);
477          default: return super.getNamedProperty(_hash, _name, _checkValid);
478          }
479
480        }
481
482      @Override
483      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
484        switch (hash) {
485        case -1857640538: /*summary*/ return this.summary == null ? new Base[0] : new Base[] {this.summary}; // CodeableConcept
486        case 2119382722: /*assessment*/ return this.assessment == null ? new Base[0] : this.assessment.toArray(new Base[this.assessment.size()]); // Reference
487        default: return super.getProperty(hash, name, checkValid);
488        }
489
490      }
491
492      @Override
493      public Base setProperty(int hash, String name, Base value) throws FHIRException {
494        switch (hash) {
495        case -1857640538: // summary
496          this.summary = castToCodeableConcept(value); // CodeableConcept
497          return value;
498        case 2119382722: // assessment
499          this.getAssessment().add(castToReference(value)); // Reference
500          return value;
501        default: return super.setProperty(hash, name, value);
502        }
503
504      }
505
506      @Override
507      public Base setProperty(String name, Base value) throws FHIRException {
508        if (name.equals("summary")) {
509          this.summary = castToCodeableConcept(value); // CodeableConcept
510        } else if (name.equals("assessment")) {
511          this.getAssessment().add(castToReference(value));
512        } else
513          return super.setProperty(name, value);
514        return value;
515      }
516
517      @Override
518      public Base makeProperty(int hash, String name) throws FHIRException {
519        switch (hash) {
520        case -1857640538:  return getSummary(); 
521        case 2119382722:  return addAssessment(); 
522        default: return super.makeProperty(hash, name);
523        }
524
525      }
526
527      @Override
528      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
529        switch (hash) {
530        case -1857640538: /*summary*/ return new String[] {"CodeableConcept"};
531        case 2119382722: /*assessment*/ return new String[] {"Reference"};
532        default: return super.getTypesForProperty(hash, name);
533        }
534
535      }
536
537      @Override
538      public Base addChild(String name) throws FHIRException {
539        if (name.equals("summary")) {
540          this.summary = new CodeableConcept();
541          return this.summary;
542        }
543        else if (name.equals("assessment")) {
544          return addAssessment();
545        }
546        else
547          return super.addChild(name);
548      }
549
550      public ConditionStageComponent copy() {
551        ConditionStageComponent dst = new ConditionStageComponent();
552        copyValues(dst);
553        dst.summary = summary == null ? null : summary.copy();
554        if (assessment != null) {
555          dst.assessment = new ArrayList<Reference>();
556          for (Reference i : assessment)
557            dst.assessment.add(i.copy());
558        };
559        return dst;
560      }
561
562      @Override
563      public boolean equalsDeep(Base other_) {
564        if (!super.equalsDeep(other_))
565          return false;
566        if (!(other_ instanceof ConditionStageComponent))
567          return false;
568        ConditionStageComponent o = (ConditionStageComponent) other_;
569        return compareDeep(summary, o.summary, true) && compareDeep(assessment, o.assessment, true);
570      }
571
572      @Override
573      public boolean equalsShallow(Base other_) {
574        if (!super.equalsShallow(other_))
575          return false;
576        if (!(other_ instanceof ConditionStageComponent))
577          return false;
578        ConditionStageComponent o = (ConditionStageComponent) other_;
579        return true;
580      }
581
582      public boolean isEmpty() {
583        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(summary, assessment);
584      }
585
586  public String fhirType() {
587    return "Condition.stage";
588
589  }
590
591  }
592
593    @Block()
594    public static class ConditionEvidenceComponent extends BackboneElement implements IBaseBackboneElement {
595        /**
596         * A manifestation or symptom that led to the recording of this condition.
597         */
598        @Child(name = "code", type = {CodeableConcept.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
599        @Description(shortDefinition="Manifestation/symptom", formalDefinition="A manifestation or symptom that led to the recording of this condition." )
600        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/manifestation-or-symptom")
601        protected List<CodeableConcept> code;
602
603        /**
604         * Links to other relevant information, including pathology reports.
605         */
606        @Child(name = "detail", type = {Reference.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
607        @Description(shortDefinition="Supporting information found elsewhere", formalDefinition="Links to other relevant information, including pathology reports." )
608        protected List<Reference> detail;
609        /**
610         * The actual objects that are the target of the reference (Links to other relevant information, including pathology reports.)
611         */
612        protected List<Resource> detailTarget;
613
614
615        private static final long serialVersionUID = 1135831276L;
616
617    /**
618     * Constructor
619     */
620      public ConditionEvidenceComponent() {
621        super();
622      }
623
624        /**
625         * @return {@link #code} (A manifestation or symptom that led to the recording of this condition.)
626         */
627        public List<CodeableConcept> getCode() { 
628          if (this.code == null)
629            this.code = new ArrayList<CodeableConcept>();
630          return this.code;
631        }
632
633        /**
634         * @return Returns a reference to <code>this</code> for easy method chaining
635         */
636        public ConditionEvidenceComponent setCode(List<CodeableConcept> theCode) { 
637          this.code = theCode;
638          return this;
639        }
640
641        public boolean hasCode() { 
642          if (this.code == null)
643            return false;
644          for (CodeableConcept item : this.code)
645            if (!item.isEmpty())
646              return true;
647          return false;
648        }
649
650        public CodeableConcept addCode() { //3
651          CodeableConcept t = new CodeableConcept();
652          if (this.code == null)
653            this.code = new ArrayList<CodeableConcept>();
654          this.code.add(t);
655          return t;
656        }
657
658        public ConditionEvidenceComponent addCode(CodeableConcept t) { //3
659          if (t == null)
660            return this;
661          if (this.code == null)
662            this.code = new ArrayList<CodeableConcept>();
663          this.code.add(t);
664          return this;
665        }
666
667        /**
668         * @return The first repetition of repeating field {@link #code}, creating it if it does not already exist
669         */
670        public CodeableConcept getCodeFirstRep() { 
671          if (getCode().isEmpty()) {
672            addCode();
673          }
674          return getCode().get(0);
675        }
676
677        /**
678         * @return {@link #detail} (Links to other relevant information, including pathology reports.)
679         */
680        public List<Reference> getDetail() { 
681          if (this.detail == null)
682            this.detail = new ArrayList<Reference>();
683          return this.detail;
684        }
685
686        /**
687         * @return Returns a reference to <code>this</code> for easy method chaining
688         */
689        public ConditionEvidenceComponent setDetail(List<Reference> theDetail) { 
690          this.detail = theDetail;
691          return this;
692        }
693
694        public boolean hasDetail() { 
695          if (this.detail == null)
696            return false;
697          for (Reference item : this.detail)
698            if (!item.isEmpty())
699              return true;
700          return false;
701        }
702
703        public Reference addDetail() { //3
704          Reference t = new Reference();
705          if (this.detail == null)
706            this.detail = new ArrayList<Reference>();
707          this.detail.add(t);
708          return t;
709        }
710
711        public ConditionEvidenceComponent addDetail(Reference t) { //3
712          if (t == null)
713            return this;
714          if (this.detail == null)
715            this.detail = new ArrayList<Reference>();
716          this.detail.add(t);
717          return this;
718        }
719
720        /**
721         * @return The first repetition of repeating field {@link #detail}, creating it if it does not already exist
722         */
723        public Reference getDetailFirstRep() { 
724          if (getDetail().isEmpty()) {
725            addDetail();
726          }
727          return getDetail().get(0);
728        }
729
730        /**
731         * @deprecated Use Reference#setResource(IBaseResource) instead
732         */
733        @Deprecated
734        public List<Resource> getDetailTarget() { 
735          if (this.detailTarget == null)
736            this.detailTarget = new ArrayList<Resource>();
737          return this.detailTarget;
738        }
739
740        protected void listChildren(List<Property> children) {
741          super.listChildren(children);
742          children.add(new Property("code", "CodeableConcept", "A manifestation or symptom that led to the recording of this condition.", 0, java.lang.Integer.MAX_VALUE, code));
743          children.add(new Property("detail", "Reference(Any)", "Links to other relevant information, including pathology reports.", 0, java.lang.Integer.MAX_VALUE, detail));
744        }
745
746        @Override
747        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
748          switch (_hash) {
749          case 3059181: /*code*/  return new Property("code", "CodeableConcept", "A manifestation or symptom that led to the recording of this condition.", 0, java.lang.Integer.MAX_VALUE, code);
750          case -1335224239: /*detail*/  return new Property("detail", "Reference(Any)", "Links to other relevant information, including pathology reports.", 0, java.lang.Integer.MAX_VALUE, detail);
751          default: return super.getNamedProperty(_hash, _name, _checkValid);
752          }
753
754        }
755
756      @Override
757      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
758        switch (hash) {
759        case 3059181: /*code*/ return this.code == null ? new Base[0] : this.code.toArray(new Base[this.code.size()]); // CodeableConcept
760        case -1335224239: /*detail*/ return this.detail == null ? new Base[0] : this.detail.toArray(new Base[this.detail.size()]); // Reference
761        default: return super.getProperty(hash, name, checkValid);
762        }
763
764      }
765
766      @Override
767      public Base setProperty(int hash, String name, Base value) throws FHIRException {
768        switch (hash) {
769        case 3059181: // code
770          this.getCode().add(castToCodeableConcept(value)); // CodeableConcept
771          return value;
772        case -1335224239: // detail
773          this.getDetail().add(castToReference(value)); // Reference
774          return value;
775        default: return super.setProperty(hash, name, value);
776        }
777
778      }
779
780      @Override
781      public Base setProperty(String name, Base value) throws FHIRException {
782        if (name.equals("code")) {
783          this.getCode().add(castToCodeableConcept(value));
784        } else if (name.equals("detail")) {
785          this.getDetail().add(castToReference(value));
786        } else
787          return super.setProperty(name, value);
788        return value;
789      }
790
791      @Override
792      public Base makeProperty(int hash, String name) throws FHIRException {
793        switch (hash) {
794        case 3059181:  return addCode(); 
795        case -1335224239:  return addDetail(); 
796        default: return super.makeProperty(hash, name);
797        }
798
799      }
800
801      @Override
802      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
803        switch (hash) {
804        case 3059181: /*code*/ return new String[] {"CodeableConcept"};
805        case -1335224239: /*detail*/ return new String[] {"Reference"};
806        default: return super.getTypesForProperty(hash, name);
807        }
808
809      }
810
811      @Override
812      public Base addChild(String name) throws FHIRException {
813        if (name.equals("code")) {
814          return addCode();
815        }
816        else if (name.equals("detail")) {
817          return addDetail();
818        }
819        else
820          return super.addChild(name);
821      }
822
823      public ConditionEvidenceComponent copy() {
824        ConditionEvidenceComponent dst = new ConditionEvidenceComponent();
825        copyValues(dst);
826        if (code != null) {
827          dst.code = new ArrayList<CodeableConcept>();
828          for (CodeableConcept i : code)
829            dst.code.add(i.copy());
830        };
831        if (detail != null) {
832          dst.detail = new ArrayList<Reference>();
833          for (Reference i : detail)
834            dst.detail.add(i.copy());
835        };
836        return dst;
837      }
838
839      @Override
840      public boolean equalsDeep(Base other_) {
841        if (!super.equalsDeep(other_))
842          return false;
843        if (!(other_ instanceof ConditionEvidenceComponent))
844          return false;
845        ConditionEvidenceComponent o = (ConditionEvidenceComponent) other_;
846        return compareDeep(code, o.code, true) && compareDeep(detail, o.detail, true);
847      }
848
849      @Override
850      public boolean equalsShallow(Base other_) {
851        if (!super.equalsShallow(other_))
852          return false;
853        if (!(other_ instanceof ConditionEvidenceComponent))
854          return false;
855        ConditionEvidenceComponent o = (ConditionEvidenceComponent) other_;
856        return true;
857      }
858
859      public boolean isEmpty() {
860        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, detail);
861      }
862
863  public String fhirType() {
864    return "Condition.evidence";
865
866  }
867
868  }
869
870    /**
871     * This records identifiers associated with this condition that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).
872     */
873    @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
874    @Description(shortDefinition="External Ids for this condition", formalDefinition="This records identifiers associated with this condition that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)." )
875    protected List<Identifier> identifier;
876
877    /**
878     * The clinical status of the condition.
879     */
880    @Child(name = "clinicalStatus", type = {CodeType.class}, order=1, min=0, max=1, modifier=true, summary=true)
881    @Description(shortDefinition="active | recurrence | inactive | remission | resolved", formalDefinition="The clinical status of the condition." )
882    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/condition-clinical")
883    protected Enumeration<ConditionClinicalStatus> clinicalStatus;
884
885    /**
886     * The verification status to support the clinical status of the condition.
887     */
888    @Child(name = "verificationStatus", type = {CodeType.class}, order=2, min=0, max=1, modifier=true, summary=true)
889    @Description(shortDefinition="provisional | differential | confirmed | refuted | entered-in-error | unknown", formalDefinition="The verification status to support the clinical status of the condition." )
890    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/condition-ver-status")
891    protected Enumeration<ConditionVerificationStatus> verificationStatus;
892
893    /**
894     * A category assigned to the condition.
895     */
896    @Child(name = "category", type = {CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
897    @Description(shortDefinition="problem-list-item | encounter-diagnosis", formalDefinition="A category assigned to the condition." )
898    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/condition-category")
899    protected List<CodeableConcept> category;
900
901    /**
902     * A subjective assessment of the severity of the condition as evaluated by the clinician.
903     */
904    @Child(name = "severity", type = {CodeableConcept.class}, order=4, min=0, max=1, modifier=false, summary=false)
905    @Description(shortDefinition="Subjective severity of condition", formalDefinition="A subjective assessment of the severity of the condition as evaluated by the clinician." )
906    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/condition-severity")
907    protected CodeableConcept severity;
908
909    /**
910     * Identification of the condition, problem or diagnosis.
911     */
912    @Child(name = "code", type = {CodeableConcept.class}, order=5, min=0, max=1, modifier=false, summary=true)
913    @Description(shortDefinition="Identification of the condition, problem or diagnosis", formalDefinition="Identification of the condition, problem or diagnosis." )
914    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/condition-code")
915    protected CodeableConcept code;
916
917    /**
918     * The anatomical location where this condition manifests itself.
919     */
920    @Child(name = "bodySite", type = {CodeableConcept.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
921    @Description(shortDefinition="Anatomical location, if relevant", formalDefinition="The anatomical location where this condition manifests itself." )
922    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/body-site")
923    protected List<CodeableConcept> bodySite;
924
925    /**
926     * Indicates the patient or group who the condition record is associated with.
927     */
928    @Child(name = "subject", type = {Patient.class, Group.class}, order=7, min=1, max=1, modifier=false, summary=true)
929    @Description(shortDefinition="Who has the condition?", formalDefinition="Indicates the patient or group who the condition record is associated with." )
930    protected Reference subject;
931
932    /**
933     * The actual object that is the target of the reference (Indicates the patient or group who the condition record is associated with.)
934     */
935    protected Resource subjectTarget;
936
937    /**
938     * Encounter during which the condition was first asserted.
939     */
940    @Child(name = "context", type = {Encounter.class, EpisodeOfCare.class}, order=8, min=0, max=1, modifier=false, summary=true)
941    @Description(shortDefinition="Encounter or episode when condition first asserted", formalDefinition="Encounter during which the condition was first asserted." )
942    protected Reference context;
943
944    /**
945     * The actual object that is the target of the reference (Encounter during which the condition was first asserted.)
946     */
947    protected Resource contextTarget;
948
949    /**
950     * Estimated or actual date or date-time  the condition began, in the opinion of the clinician.
951     */
952    @Child(name = "onset", type = {DateTimeType.class, Age.class, Period.class, Range.class, StringType.class}, order=9, min=0, max=1, modifier=false, summary=true)
953    @Description(shortDefinition="Estimated or actual date,  date-time, or age", formalDefinition="Estimated or actual date or date-time  the condition began, in the opinion of the clinician." )
954    protected Type onset;
955
956    /**
957     * The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.
958     */
959    @Child(name = "abatement", type = {DateTimeType.class, Age.class, BooleanType.class, Period.class, Range.class, StringType.class}, order=10, min=0, max=1, modifier=false, summary=false)
960    @Description(shortDefinition="If/when in resolution/remission", formalDefinition="The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate." )
961    protected Type abatement;
962
963    /**
964     * The date on which the existance of the Condition was first asserted or acknowledged.
965     */
966    @Child(name = "assertedDate", type = {DateTimeType.class}, order=11, min=0, max=1, modifier=false, summary=true)
967    @Description(shortDefinition="Date record was believed accurate", formalDefinition="The date on which the existance of the Condition was first asserted or acknowledged." )
968    protected DateTimeType assertedDate;
969
970    /**
971     * Individual who is making the condition statement.
972     */
973    @Child(name = "asserter", type = {Practitioner.class, Patient.class, RelatedPerson.class}, order=12, min=0, max=1, modifier=false, summary=true)
974    @Description(shortDefinition="Person who asserts this condition", formalDefinition="Individual who is making the condition statement." )
975    protected Reference asserter;
976
977    /**
978     * The actual object that is the target of the reference (Individual who is making the condition statement.)
979     */
980    protected Resource asserterTarget;
981
982    /**
983     * Clinical stage or grade of a condition. May include formal severity assessments.
984     */
985    @Child(name = "stage", type = {}, order=13, min=0, max=1, modifier=false, summary=false)
986    @Description(shortDefinition="Stage/grade, usually assessed formally", formalDefinition="Clinical stage or grade of a condition. May include formal severity assessments." )
987    protected ConditionStageComponent stage;
988
989    /**
990     * Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed.
991     */
992    @Child(name = "evidence", type = {}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
993    @Description(shortDefinition="Supporting evidence", formalDefinition="Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed." )
994    protected List<ConditionEvidenceComponent> evidence;
995
996    /**
997     * Additional information about the Condition. This is a general notes/comments entry  for description of the Condition, its diagnosis and prognosis.
998     */
999    @Child(name = "note", type = {Annotation.class}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1000    @Description(shortDefinition="Additional information about the Condition", formalDefinition="Additional information about the Condition. This is a general notes/comments entry  for description of the Condition, its diagnosis and prognosis." )
1001    protected List<Annotation> note;
1002
1003    private static final long serialVersionUID = -585250376L;
1004
1005  /**
1006   * Constructor
1007   */
1008    public Condition() {
1009      super();
1010    }
1011
1012  /**
1013   * Constructor
1014   */
1015    public Condition(Reference subject) {
1016      super();
1017      this.subject = subject;
1018    }
1019
1020    /**
1021     * @return {@link #identifier} (This records identifiers associated with this condition that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).)
1022     */
1023    public List<Identifier> getIdentifier() { 
1024      if (this.identifier == null)
1025        this.identifier = new ArrayList<Identifier>();
1026      return this.identifier;
1027    }
1028
1029    /**
1030     * @return Returns a reference to <code>this</code> for easy method chaining
1031     */
1032    public Condition setIdentifier(List<Identifier> theIdentifier) { 
1033      this.identifier = theIdentifier;
1034      return this;
1035    }
1036
1037    public boolean hasIdentifier() { 
1038      if (this.identifier == null)
1039        return false;
1040      for (Identifier item : this.identifier)
1041        if (!item.isEmpty())
1042          return true;
1043      return false;
1044    }
1045
1046    public Identifier addIdentifier() { //3
1047      Identifier t = new Identifier();
1048      if (this.identifier == null)
1049        this.identifier = new ArrayList<Identifier>();
1050      this.identifier.add(t);
1051      return t;
1052    }
1053
1054    public Condition addIdentifier(Identifier t) { //3
1055      if (t == null)
1056        return this;
1057      if (this.identifier == null)
1058        this.identifier = new ArrayList<Identifier>();
1059      this.identifier.add(t);
1060      return this;
1061    }
1062
1063    /**
1064     * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist
1065     */
1066    public Identifier getIdentifierFirstRep() { 
1067      if (getIdentifier().isEmpty()) {
1068        addIdentifier();
1069      }
1070      return getIdentifier().get(0);
1071    }
1072
1073    /**
1074     * @return {@link #clinicalStatus} (The clinical status of the condition.). This is the underlying object with id, value and extensions. The accessor "getClinicalStatus" gives direct access to the value
1075     */
1076    public Enumeration<ConditionClinicalStatus> getClinicalStatusElement() { 
1077      if (this.clinicalStatus == null)
1078        if (Configuration.errorOnAutoCreate())
1079          throw new Error("Attempt to auto-create Condition.clinicalStatus");
1080        else if (Configuration.doAutoCreate())
1081          this.clinicalStatus = new Enumeration<ConditionClinicalStatus>(new ConditionClinicalStatusEnumFactory()); // bb
1082      return this.clinicalStatus;
1083    }
1084
1085    public boolean hasClinicalStatusElement() { 
1086      return this.clinicalStatus != null && !this.clinicalStatus.isEmpty();
1087    }
1088
1089    public boolean hasClinicalStatus() { 
1090      return this.clinicalStatus != null && !this.clinicalStatus.isEmpty();
1091    }
1092
1093    /**
1094     * @param value {@link #clinicalStatus} (The clinical status of the condition.). This is the underlying object with id, value and extensions. The accessor "getClinicalStatus" gives direct access to the value
1095     */
1096    public Condition setClinicalStatusElement(Enumeration<ConditionClinicalStatus> value) { 
1097      this.clinicalStatus = value;
1098      return this;
1099    }
1100
1101    /**
1102     * @return The clinical status of the condition.
1103     */
1104    public ConditionClinicalStatus getClinicalStatus() { 
1105      return this.clinicalStatus == null ? null : this.clinicalStatus.getValue();
1106    }
1107
1108    /**
1109     * @param value The clinical status of the condition.
1110     */
1111    public Condition setClinicalStatus(ConditionClinicalStatus value) { 
1112      if (value == null)
1113        this.clinicalStatus = null;
1114      else {
1115        if (this.clinicalStatus == null)
1116          this.clinicalStatus = new Enumeration<ConditionClinicalStatus>(new ConditionClinicalStatusEnumFactory());
1117        this.clinicalStatus.setValue(value);
1118      }
1119      return this;
1120    }
1121
1122    /**
1123     * @return {@link #verificationStatus} (The verification status to support the clinical status of the condition.). This is the underlying object with id, value and extensions. The accessor "getVerificationStatus" gives direct access to the value
1124     */
1125    public Enumeration<ConditionVerificationStatus> getVerificationStatusElement() { 
1126      if (this.verificationStatus == null)
1127        if (Configuration.errorOnAutoCreate())
1128          throw new Error("Attempt to auto-create Condition.verificationStatus");
1129        else if (Configuration.doAutoCreate())
1130          this.verificationStatus = new Enumeration<ConditionVerificationStatus>(new ConditionVerificationStatusEnumFactory()); // bb
1131      return this.verificationStatus;
1132    }
1133
1134    public boolean hasVerificationStatusElement() { 
1135      return this.verificationStatus != null && !this.verificationStatus.isEmpty();
1136    }
1137
1138    public boolean hasVerificationStatus() { 
1139      return this.verificationStatus != null && !this.verificationStatus.isEmpty();
1140    }
1141
1142    /**
1143     * @param value {@link #verificationStatus} (The verification status to support the clinical status of the condition.). This is the underlying object with id, value and extensions. The accessor "getVerificationStatus" gives direct access to the value
1144     */
1145    public Condition setVerificationStatusElement(Enumeration<ConditionVerificationStatus> value) { 
1146      this.verificationStatus = value;
1147      return this;
1148    }
1149
1150    /**
1151     * @return The verification status to support the clinical status of the condition.
1152     */
1153    public ConditionVerificationStatus getVerificationStatus() { 
1154      return this.verificationStatus == null ? null : this.verificationStatus.getValue();
1155    }
1156
1157    /**
1158     * @param value The verification status to support the clinical status of the condition.
1159     */
1160    public Condition setVerificationStatus(ConditionVerificationStatus value) { 
1161      if (value == null)
1162        this.verificationStatus = null;
1163      else {
1164        if (this.verificationStatus == null)
1165          this.verificationStatus = new Enumeration<ConditionVerificationStatus>(new ConditionVerificationStatusEnumFactory());
1166        this.verificationStatus.setValue(value);
1167      }
1168      return this;
1169    }
1170
1171    /**
1172     * @return {@link #category} (A category assigned to the condition.)
1173     */
1174    public List<CodeableConcept> getCategory() { 
1175      if (this.category == null)
1176        this.category = new ArrayList<CodeableConcept>();
1177      return this.category;
1178    }
1179
1180    /**
1181     * @return Returns a reference to <code>this</code> for easy method chaining
1182     */
1183    public Condition setCategory(List<CodeableConcept> theCategory) { 
1184      this.category = theCategory;
1185      return this;
1186    }
1187
1188    public boolean hasCategory() { 
1189      if (this.category == null)
1190        return false;
1191      for (CodeableConcept item : this.category)
1192        if (!item.isEmpty())
1193          return true;
1194      return false;
1195    }
1196
1197    public CodeableConcept addCategory() { //3
1198      CodeableConcept t = new CodeableConcept();
1199      if (this.category == null)
1200        this.category = new ArrayList<CodeableConcept>();
1201      this.category.add(t);
1202      return t;
1203    }
1204
1205    public Condition addCategory(CodeableConcept t) { //3
1206      if (t == null)
1207        return this;
1208      if (this.category == null)
1209        this.category = new ArrayList<CodeableConcept>();
1210      this.category.add(t);
1211      return this;
1212    }
1213
1214    /**
1215     * @return The first repetition of repeating field {@link #category}, creating it if it does not already exist
1216     */
1217    public CodeableConcept getCategoryFirstRep() { 
1218      if (getCategory().isEmpty()) {
1219        addCategory();
1220      }
1221      return getCategory().get(0);
1222    }
1223
1224    /**
1225     * @return {@link #severity} (A subjective assessment of the severity of the condition as evaluated by the clinician.)
1226     */
1227    public CodeableConcept getSeverity() { 
1228      if (this.severity == null)
1229        if (Configuration.errorOnAutoCreate())
1230          throw new Error("Attempt to auto-create Condition.severity");
1231        else if (Configuration.doAutoCreate())
1232          this.severity = new CodeableConcept(); // cc
1233      return this.severity;
1234    }
1235
1236    public boolean hasSeverity() { 
1237      return this.severity != null && !this.severity.isEmpty();
1238    }
1239
1240    /**
1241     * @param value {@link #severity} (A subjective assessment of the severity of the condition as evaluated by the clinician.)
1242     */
1243    public Condition setSeverity(CodeableConcept value)  { 
1244      this.severity = value;
1245      return this;
1246    }
1247
1248    /**
1249     * @return {@link #code} (Identification of the condition, problem or diagnosis.)
1250     */
1251    public CodeableConcept getCode() { 
1252      if (this.code == null)
1253        if (Configuration.errorOnAutoCreate())
1254          throw new Error("Attempt to auto-create Condition.code");
1255        else if (Configuration.doAutoCreate())
1256          this.code = new CodeableConcept(); // cc
1257      return this.code;
1258    }
1259
1260    public boolean hasCode() { 
1261      return this.code != null && !this.code.isEmpty();
1262    }
1263
1264    /**
1265     * @param value {@link #code} (Identification of the condition, problem or diagnosis.)
1266     */
1267    public Condition setCode(CodeableConcept value)  { 
1268      this.code = value;
1269      return this;
1270    }
1271
1272    /**
1273     * @return {@link #bodySite} (The anatomical location where this condition manifests itself.)
1274     */
1275    public List<CodeableConcept> getBodySite() { 
1276      if (this.bodySite == null)
1277        this.bodySite = new ArrayList<CodeableConcept>();
1278      return this.bodySite;
1279    }
1280
1281    /**
1282     * @return Returns a reference to <code>this</code> for easy method chaining
1283     */
1284    public Condition setBodySite(List<CodeableConcept> theBodySite) { 
1285      this.bodySite = theBodySite;
1286      return this;
1287    }
1288
1289    public boolean hasBodySite() { 
1290      if (this.bodySite == null)
1291        return false;
1292      for (CodeableConcept item : this.bodySite)
1293        if (!item.isEmpty())
1294          return true;
1295      return false;
1296    }
1297
1298    public CodeableConcept addBodySite() { //3
1299      CodeableConcept t = new CodeableConcept();
1300      if (this.bodySite == null)
1301        this.bodySite = new ArrayList<CodeableConcept>();
1302      this.bodySite.add(t);
1303      return t;
1304    }
1305
1306    public Condition addBodySite(CodeableConcept t) { //3
1307      if (t == null)
1308        return this;
1309      if (this.bodySite == null)
1310        this.bodySite = new ArrayList<CodeableConcept>();
1311      this.bodySite.add(t);
1312      return this;
1313    }
1314
1315    /**
1316     * @return The first repetition of repeating field {@link #bodySite}, creating it if it does not already exist
1317     */
1318    public CodeableConcept getBodySiteFirstRep() { 
1319      if (getBodySite().isEmpty()) {
1320        addBodySite();
1321      }
1322      return getBodySite().get(0);
1323    }
1324
1325    /**
1326     * @return {@link #subject} (Indicates the patient or group who the condition record is associated with.)
1327     */
1328    public Reference getSubject() { 
1329      if (this.subject == null)
1330        if (Configuration.errorOnAutoCreate())
1331          throw new Error("Attempt to auto-create Condition.subject");
1332        else if (Configuration.doAutoCreate())
1333          this.subject = new Reference(); // cc
1334      return this.subject;
1335    }
1336
1337    public boolean hasSubject() { 
1338      return this.subject != null && !this.subject.isEmpty();
1339    }
1340
1341    /**
1342     * @param value {@link #subject} (Indicates the patient or group who the condition record is associated with.)
1343     */
1344    public Condition setSubject(Reference value)  { 
1345      this.subject = value;
1346      return this;
1347    }
1348
1349    /**
1350     * @return {@link #subject} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Indicates the patient or group who the condition record is associated with.)
1351     */
1352    public Resource getSubjectTarget() { 
1353      return this.subjectTarget;
1354    }
1355
1356    /**
1357     * @param value {@link #subject} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Indicates the patient or group who the condition record is associated with.)
1358     */
1359    public Condition setSubjectTarget(Resource value) { 
1360      this.subjectTarget = value;
1361      return this;
1362    }
1363
1364    /**
1365     * @return {@link #context} (Encounter during which the condition was first asserted.)
1366     */
1367    public Reference getContext() { 
1368      if (this.context == null)
1369        if (Configuration.errorOnAutoCreate())
1370          throw new Error("Attempt to auto-create Condition.context");
1371        else if (Configuration.doAutoCreate())
1372          this.context = new Reference(); // cc
1373      return this.context;
1374    }
1375
1376    public boolean hasContext() { 
1377      return this.context != null && !this.context.isEmpty();
1378    }
1379
1380    /**
1381     * @param value {@link #context} (Encounter during which the condition was first asserted.)
1382     */
1383    public Condition setContext(Reference value)  { 
1384      this.context = value;
1385      return this;
1386    }
1387
1388    /**
1389     * @return {@link #context} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Encounter during which the condition was first asserted.)
1390     */
1391    public Resource getContextTarget() { 
1392      return this.contextTarget;
1393    }
1394
1395    /**
1396     * @param value {@link #context} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Encounter during which the condition was first asserted.)
1397     */
1398    public Condition setContextTarget(Resource value) { 
1399      this.contextTarget = value;
1400      return this;
1401    }
1402
1403    /**
1404     * @return {@link #onset} (Estimated or actual date or date-time  the condition began, in the opinion of the clinician.)
1405     */
1406    public Type getOnset() { 
1407      return this.onset;
1408    }
1409
1410    /**
1411     * @return {@link #onset} (Estimated or actual date or date-time  the condition began, in the opinion of the clinician.)
1412     */
1413    public DateTimeType getOnsetDateTimeType() throws FHIRException { 
1414      if (this.onset == null)
1415        return null;
1416      if (!(this.onset instanceof DateTimeType))
1417        throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.onset.getClass().getName()+" was encountered");
1418      return (DateTimeType) this.onset;
1419    }
1420
1421    public boolean hasOnsetDateTimeType() { 
1422      return this != null && this.onset instanceof DateTimeType;
1423    }
1424
1425    /**
1426     * @return {@link #onset} (Estimated or actual date or date-time  the condition began, in the opinion of the clinician.)
1427     */
1428    public Age getOnsetAge() throws FHIRException { 
1429      if (this.onset == null)
1430        return null;
1431      if (!(this.onset instanceof Age))
1432        throw new FHIRException("Type mismatch: the type Age was expected, but "+this.onset.getClass().getName()+" was encountered");
1433      return (Age) this.onset;
1434    }
1435
1436    public boolean hasOnsetAge() { 
1437      return this != null && this.onset instanceof Age;
1438    }
1439
1440    /**
1441     * @return {@link #onset} (Estimated or actual date or date-time  the condition began, in the opinion of the clinician.)
1442     */
1443    public Period getOnsetPeriod() throws FHIRException { 
1444      if (this.onset == null)
1445        return null;
1446      if (!(this.onset instanceof Period))
1447        throw new FHIRException("Type mismatch: the type Period was expected, but "+this.onset.getClass().getName()+" was encountered");
1448      return (Period) this.onset;
1449    }
1450
1451    public boolean hasOnsetPeriod() { 
1452      return this != null && this.onset instanceof Period;
1453    }
1454
1455    /**
1456     * @return {@link #onset} (Estimated or actual date or date-time  the condition began, in the opinion of the clinician.)
1457     */
1458    public Range getOnsetRange() throws FHIRException { 
1459      if (this.onset == null)
1460        return null;
1461      if (!(this.onset instanceof Range))
1462        throw new FHIRException("Type mismatch: the type Range was expected, but "+this.onset.getClass().getName()+" was encountered");
1463      return (Range) this.onset;
1464    }
1465
1466    public boolean hasOnsetRange() { 
1467      return this != null && this.onset instanceof Range;
1468    }
1469
1470    /**
1471     * @return {@link #onset} (Estimated or actual date or date-time  the condition began, in the opinion of the clinician.)
1472     */
1473    public StringType getOnsetStringType() throws FHIRException { 
1474      if (this.onset == null)
1475        return null;
1476      if (!(this.onset instanceof StringType))
1477        throw new FHIRException("Type mismatch: the type StringType was expected, but "+this.onset.getClass().getName()+" was encountered");
1478      return (StringType) this.onset;
1479    }
1480
1481    public boolean hasOnsetStringType() { 
1482      return this != null && this.onset instanceof StringType;
1483    }
1484
1485    public boolean hasOnset() { 
1486      return this.onset != null && !this.onset.isEmpty();
1487    }
1488
1489    /**
1490     * @param value {@link #onset} (Estimated or actual date or date-time  the condition began, in the opinion of the clinician.)
1491     */
1492    public Condition setOnset(Type value) throws FHIRFormatError { 
1493      if (value != null && !(value instanceof DateTimeType || value instanceof Age || value instanceof Period || value instanceof Range || value instanceof StringType))
1494        throw new FHIRFormatError("Not the right type for Condition.onset[x]: "+value.fhirType());
1495      this.onset = value;
1496      return this;
1497    }
1498
1499    /**
1500     * @return {@link #abatement} (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.)
1501     */
1502    public Type getAbatement() { 
1503      return this.abatement;
1504    }
1505
1506    /**
1507     * @return {@link #abatement} (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.)
1508     */
1509    public DateTimeType getAbatementDateTimeType() throws FHIRException { 
1510      if (this.abatement == null)
1511        return null;
1512      if (!(this.abatement instanceof DateTimeType))
1513        throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.abatement.getClass().getName()+" was encountered");
1514      return (DateTimeType) this.abatement;
1515    }
1516
1517    public boolean hasAbatementDateTimeType() { 
1518      return this != null && this.abatement instanceof DateTimeType;
1519    }
1520
1521    /**
1522     * @return {@link #abatement} (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.)
1523     */
1524    public Age getAbatementAge() throws FHIRException { 
1525      if (this.abatement == null)
1526        return null;
1527      if (!(this.abatement instanceof Age))
1528        throw new FHIRException("Type mismatch: the type Age was expected, but "+this.abatement.getClass().getName()+" was encountered");
1529      return (Age) this.abatement;
1530    }
1531
1532    public boolean hasAbatementAge() { 
1533      return this != null && this.abatement instanceof Age;
1534    }
1535
1536    /**
1537     * @return {@link #abatement} (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.)
1538     */
1539    public BooleanType getAbatementBooleanType() throws FHIRException { 
1540      if (this.abatement == null)
1541        return null;
1542      if (!(this.abatement instanceof BooleanType))
1543        throw new FHIRException("Type mismatch: the type BooleanType was expected, but "+this.abatement.getClass().getName()+" was encountered");
1544      return (BooleanType) this.abatement;
1545    }
1546
1547    public boolean hasAbatementBooleanType() { 
1548      return this != null && this.abatement instanceof BooleanType;
1549    }
1550
1551    /**
1552     * @return {@link #abatement} (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.)
1553     */
1554    public Period getAbatementPeriod() throws FHIRException { 
1555      if (this.abatement == null)
1556        return null;
1557      if (!(this.abatement instanceof Period))
1558        throw new FHIRException("Type mismatch: the type Period was expected, but "+this.abatement.getClass().getName()+" was encountered");
1559      return (Period) this.abatement;
1560    }
1561
1562    public boolean hasAbatementPeriod() { 
1563      return this != null && this.abatement instanceof Period;
1564    }
1565
1566    /**
1567     * @return {@link #abatement} (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.)
1568     */
1569    public Range getAbatementRange() throws FHIRException { 
1570      if (this.abatement == null)
1571        return null;
1572      if (!(this.abatement instanceof Range))
1573        throw new FHIRException("Type mismatch: the type Range was expected, but "+this.abatement.getClass().getName()+" was encountered");
1574      return (Range) this.abatement;
1575    }
1576
1577    public boolean hasAbatementRange() { 
1578      return this != null && this.abatement instanceof Range;
1579    }
1580
1581    /**
1582     * @return {@link #abatement} (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.)
1583     */
1584    public StringType getAbatementStringType() throws FHIRException { 
1585      if (this.abatement == null)
1586        return null;
1587      if (!(this.abatement instanceof StringType))
1588        throw new FHIRException("Type mismatch: the type StringType was expected, but "+this.abatement.getClass().getName()+" was encountered");
1589      return (StringType) this.abatement;
1590    }
1591
1592    public boolean hasAbatementStringType() { 
1593      return this != null && this.abatement instanceof StringType;
1594    }
1595
1596    public boolean hasAbatement() { 
1597      return this.abatement != null && !this.abatement.isEmpty();
1598    }
1599
1600    /**
1601     * @param value {@link #abatement} (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.)
1602     */
1603    public Condition setAbatement(Type value) throws FHIRFormatError { 
1604      if (value != null && !(value instanceof DateTimeType || value instanceof Age || value instanceof BooleanType || value instanceof Period || value instanceof Range || value instanceof StringType))
1605        throw new FHIRFormatError("Not the right type for Condition.abatement[x]: "+value.fhirType());
1606      this.abatement = value;
1607      return this;
1608    }
1609
1610    /**
1611     * @return {@link #assertedDate} (The date on which the existance of the Condition was first asserted or acknowledged.). This is the underlying object with id, value and extensions. The accessor "getAssertedDate" gives direct access to the value
1612     */
1613    public DateTimeType getAssertedDateElement() { 
1614      if (this.assertedDate == null)
1615        if (Configuration.errorOnAutoCreate())
1616          throw new Error("Attempt to auto-create Condition.assertedDate");
1617        else if (Configuration.doAutoCreate())
1618          this.assertedDate = new DateTimeType(); // bb
1619      return this.assertedDate;
1620    }
1621
1622    public boolean hasAssertedDateElement() { 
1623      return this.assertedDate != null && !this.assertedDate.isEmpty();
1624    }
1625
1626    public boolean hasAssertedDate() { 
1627      return this.assertedDate != null && !this.assertedDate.isEmpty();
1628    }
1629
1630    /**
1631     * @param value {@link #assertedDate} (The date on which the existance of the Condition was first asserted or acknowledged.). This is the underlying object with id, value and extensions. The accessor "getAssertedDate" gives direct access to the value
1632     */
1633    public Condition setAssertedDateElement(DateTimeType value) { 
1634      this.assertedDate = value;
1635      return this;
1636    }
1637
1638    /**
1639     * @return The date on which the existance of the Condition was first asserted or acknowledged.
1640     */
1641    public Date getAssertedDate() { 
1642      return this.assertedDate == null ? null : this.assertedDate.getValue();
1643    }
1644
1645    /**
1646     * @param value The date on which the existance of the Condition was first asserted or acknowledged.
1647     */
1648    public Condition setAssertedDate(Date value) { 
1649      if (value == null)
1650        this.assertedDate = null;
1651      else {
1652        if (this.assertedDate == null)
1653          this.assertedDate = new DateTimeType();
1654        this.assertedDate.setValue(value);
1655      }
1656      return this;
1657    }
1658
1659    /**
1660     * @return {@link #asserter} (Individual who is making the condition statement.)
1661     */
1662    public Reference getAsserter() { 
1663      if (this.asserter == null)
1664        if (Configuration.errorOnAutoCreate())
1665          throw new Error("Attempt to auto-create Condition.asserter");
1666        else if (Configuration.doAutoCreate())
1667          this.asserter = new Reference(); // cc
1668      return this.asserter;
1669    }
1670
1671    public boolean hasAsserter() { 
1672      return this.asserter != null && !this.asserter.isEmpty();
1673    }
1674
1675    /**
1676     * @param value {@link #asserter} (Individual who is making the condition statement.)
1677     */
1678    public Condition setAsserter(Reference value)  { 
1679      this.asserter = value;
1680      return this;
1681    }
1682
1683    /**
1684     * @return {@link #asserter} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Individual who is making the condition statement.)
1685     */
1686    public Resource getAsserterTarget() { 
1687      return this.asserterTarget;
1688    }
1689
1690    /**
1691     * @param value {@link #asserter} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Individual who is making the condition statement.)
1692     */
1693    public Condition setAsserterTarget(Resource value) { 
1694      this.asserterTarget = value;
1695      return this;
1696    }
1697
1698    /**
1699     * @return {@link #stage} (Clinical stage or grade of a condition. May include formal severity assessments.)
1700     */
1701    public ConditionStageComponent getStage() { 
1702      if (this.stage == null)
1703        if (Configuration.errorOnAutoCreate())
1704          throw new Error("Attempt to auto-create Condition.stage");
1705        else if (Configuration.doAutoCreate())
1706          this.stage = new ConditionStageComponent(); // cc
1707      return this.stage;
1708    }
1709
1710    public boolean hasStage() { 
1711      return this.stage != null && !this.stage.isEmpty();
1712    }
1713
1714    /**
1715     * @param value {@link #stage} (Clinical stage or grade of a condition. May include formal severity assessments.)
1716     */
1717    public Condition setStage(ConditionStageComponent value)  { 
1718      this.stage = value;
1719      return this;
1720    }
1721
1722    /**
1723     * @return {@link #evidence} (Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed.)
1724     */
1725    public List<ConditionEvidenceComponent> getEvidence() { 
1726      if (this.evidence == null)
1727        this.evidence = new ArrayList<ConditionEvidenceComponent>();
1728      return this.evidence;
1729    }
1730
1731    /**
1732     * @return Returns a reference to <code>this</code> for easy method chaining
1733     */
1734    public Condition setEvidence(List<ConditionEvidenceComponent> theEvidence) { 
1735      this.evidence = theEvidence;
1736      return this;
1737    }
1738
1739    public boolean hasEvidence() { 
1740      if (this.evidence == null)
1741        return false;
1742      for (ConditionEvidenceComponent item : this.evidence)
1743        if (!item.isEmpty())
1744          return true;
1745      return false;
1746    }
1747
1748    public ConditionEvidenceComponent addEvidence() { //3
1749      ConditionEvidenceComponent t = new ConditionEvidenceComponent();
1750      if (this.evidence == null)
1751        this.evidence = new ArrayList<ConditionEvidenceComponent>();
1752      this.evidence.add(t);
1753      return t;
1754    }
1755
1756    public Condition addEvidence(ConditionEvidenceComponent t) { //3
1757      if (t == null)
1758        return this;
1759      if (this.evidence == null)
1760        this.evidence = new ArrayList<ConditionEvidenceComponent>();
1761      this.evidence.add(t);
1762      return this;
1763    }
1764
1765    /**
1766     * @return The first repetition of repeating field {@link #evidence}, creating it if it does not already exist
1767     */
1768    public ConditionEvidenceComponent getEvidenceFirstRep() { 
1769      if (getEvidence().isEmpty()) {
1770        addEvidence();
1771      }
1772      return getEvidence().get(0);
1773    }
1774
1775    /**
1776     * @return {@link #note} (Additional information about the Condition. This is a general notes/comments entry  for description of the Condition, its diagnosis and prognosis.)
1777     */
1778    public List<Annotation> getNote() { 
1779      if (this.note == null)
1780        this.note = new ArrayList<Annotation>();
1781      return this.note;
1782    }
1783
1784    /**
1785     * @return Returns a reference to <code>this</code> for easy method chaining
1786     */
1787    public Condition setNote(List<Annotation> theNote) { 
1788      this.note = theNote;
1789      return this;
1790    }
1791
1792    public boolean hasNote() { 
1793      if (this.note == null)
1794        return false;
1795      for (Annotation item : this.note)
1796        if (!item.isEmpty())
1797          return true;
1798      return false;
1799    }
1800
1801    public Annotation addNote() { //3
1802      Annotation t = new Annotation();
1803      if (this.note == null)
1804        this.note = new ArrayList<Annotation>();
1805      this.note.add(t);
1806      return t;
1807    }
1808
1809    public Condition addNote(Annotation t) { //3
1810      if (t == null)
1811        return this;
1812      if (this.note == null)
1813        this.note = new ArrayList<Annotation>();
1814      this.note.add(t);
1815      return this;
1816    }
1817
1818    /**
1819     * @return The first repetition of repeating field {@link #note}, creating it if it does not already exist
1820     */
1821    public Annotation getNoteFirstRep() { 
1822      if (getNote().isEmpty()) {
1823        addNote();
1824      }
1825      return getNote().get(0);
1826    }
1827
1828      protected void listChildren(List<Property> children) {
1829        super.listChildren(children);
1830        children.add(new Property("identifier", "Identifier", "This records identifiers associated with this condition that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).", 0, java.lang.Integer.MAX_VALUE, identifier));
1831        children.add(new Property("clinicalStatus", "code", "The clinical status of the condition.", 0, 1, clinicalStatus));
1832        children.add(new Property("verificationStatus", "code", "The verification status to support the clinical status of the condition.", 0, 1, verificationStatus));
1833        children.add(new Property("category", "CodeableConcept", "A category assigned to the condition.", 0, java.lang.Integer.MAX_VALUE, category));
1834        children.add(new Property("severity", "CodeableConcept", "A subjective assessment of the severity of the condition as evaluated by the clinician.", 0, 1, severity));
1835        children.add(new Property("code", "CodeableConcept", "Identification of the condition, problem or diagnosis.", 0, 1, code));
1836        children.add(new Property("bodySite", "CodeableConcept", "The anatomical location where this condition manifests itself.", 0, java.lang.Integer.MAX_VALUE, bodySite));
1837        children.add(new Property("subject", "Reference(Patient|Group)", "Indicates the patient or group who the condition record is associated with.", 0, 1, subject));
1838        children.add(new Property("context", "Reference(Encounter|EpisodeOfCare)", "Encounter during which the condition was first asserted.", 0, 1, context));
1839        children.add(new Property("onset[x]", "dateTime|Age|Period|Range|string", "Estimated or actual date or date-time  the condition began, in the opinion of the clinician.", 0, 1, onset));
1840        children.add(new Property("abatement[x]", "dateTime|Age|boolean|Period|Range|string", "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate.", 0, 1, abatement));
1841        children.add(new Property("assertedDate", "dateTime", "The date on which the existance of the Condition was first asserted or acknowledged.", 0, 1, assertedDate));
1842        children.add(new Property("asserter", "Reference(Practitioner|Patient|RelatedPerson)", "Individual who is making the condition statement.", 0, 1, asserter));
1843        children.add(new Property("stage", "", "Clinical stage or grade of a condition. May include formal severity assessments.", 0, 1, stage));
1844        children.add(new Property("evidence", "", "Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed.", 0, java.lang.Integer.MAX_VALUE, evidence));
1845        children.add(new Property("note", "Annotation", "Additional information about the Condition. This is a general notes/comments entry  for description of the Condition, its diagnosis and prognosis.", 0, java.lang.Integer.MAX_VALUE, note));
1846      }
1847
1848      @Override
1849      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
1850        switch (_hash) {
1851        case -1618432855: /*identifier*/  return new Property("identifier", "Identifier", "This records identifiers associated with this condition that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).", 0, java.lang.Integer.MAX_VALUE, identifier);
1852        case -462853915: /*clinicalStatus*/  return new Property("clinicalStatus", "code", "The clinical status of the condition.", 0, 1, clinicalStatus);
1853        case -842509843: /*verificationStatus*/  return new Property("verificationStatus", "code", "The verification status to support the clinical status of the condition.", 0, 1, verificationStatus);
1854        case 50511102: /*category*/  return new Property("category", "CodeableConcept", "A category assigned to the condition.", 0, java.lang.Integer.MAX_VALUE, category);
1855        case 1478300413: /*severity*/  return new Property("severity", "CodeableConcept", "A subjective assessment of the severity of the condition as evaluated by the clinician.", 0, 1, severity);
1856        case 3059181: /*code*/  return new Property("code", "CodeableConcept", "Identification of the condition, problem or diagnosis.", 0, 1, code);
1857        case 1702620169: /*bodySite*/  return new Property("bodySite", "CodeableConcept", "The anatomical location where this condition manifests itself.", 0, java.lang.Integer.MAX_VALUE, bodySite);
1858        case -1867885268: /*subject*/  return new Property("subject", "Reference(Patient|Group)", "Indicates the patient or group who the condition record is associated with.", 0, 1, subject);
1859        case 951530927: /*context*/  return new Property("context", "Reference(Encounter|EpisodeOfCare)", "Encounter during which the condition was first asserted.", 0, 1, context);
1860        case -1886216323: /*onset[x]*/  return new Property("onset[x]", "dateTime|Age|Period|Range|string", "Estimated or actual date or date-time  the condition began, in the opinion of the clinician.", 0, 1, onset);
1861        case 105901603: /*onset*/  return new Property("onset[x]", "dateTime|Age|Period|Range|string", "Estimated or actual date or date-time  the condition began, in the opinion of the clinician.", 0, 1, onset);
1862        case -1701663010: /*onsetDateTime*/  return new Property("onset[x]", "dateTime|Age|Period|Range|string", "Estimated or actual date or date-time  the condition began, in the opinion of the clinician.", 0, 1, onset);
1863        case -1886241828: /*onsetAge*/  return new Property("onset[x]", "dateTime|Age|Period|Range|string", "Estimated or actual date or date-time  the condition began, in the opinion of the clinician.", 0, 1, onset);
1864        case -1545082428: /*onsetPeriod*/  return new Property("onset[x]", "dateTime|Age|Period|Range|string", "Estimated or actual date or date-time  the condition began, in the opinion of the clinician.", 0, 1, onset);
1865        case -186664742: /*onsetRange*/  return new Property("onset[x]", "dateTime|Age|Period|Range|string", "Estimated or actual date or date-time  the condition began, in the opinion of the clinician.", 0, 1, onset);
1866        case -1445342188: /*onsetString*/  return new Property("onset[x]", "dateTime|Age|Period|Range|string", "Estimated or actual date or date-time  the condition began, in the opinion of the clinician.", 0, 1, onset);
1867        case -584196495: /*abatement[x]*/  return new Property("abatement[x]", "dateTime|Age|boolean|Period|Range|string", "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate.", 0, 1, abatement);
1868        case -921554001: /*abatement*/  return new Property("abatement[x]", "dateTime|Age|boolean|Period|Range|string", "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate.", 0, 1, abatement);
1869        case 44869738: /*abatementDateTime*/  return new Property("abatement[x]", "dateTime|Age|boolean|Period|Range|string", "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate.", 0, 1, abatement);
1870        case -584222000: /*abatementAge*/  return new Property("abatement[x]", "dateTime|Age|boolean|Period|Range|string", "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate.", 0, 1, abatement);
1871        case -2069881479: /*abatementBoolean*/  return new Property("abatement[x]", "dateTime|Age|boolean|Period|Range|string", "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate.", 0, 1, abatement);
1872        case -922036656: /*abatementPeriod*/  return new Property("abatement[x]", "dateTime|Age|boolean|Period|Range|string", "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate.", 0, 1, abatement);
1873        case 1218906830: /*abatementRange*/  return new Property("abatement[x]", "dateTime|Age|boolean|Period|Range|string", "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate.", 0, 1, abatement);
1874        case -822296416: /*abatementString*/  return new Property("abatement[x]", "dateTime|Age|boolean|Period|Range|string", "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate.", 0, 1, abatement);
1875        case -174231629: /*assertedDate*/  return new Property("assertedDate", "dateTime", "The date on which the existance of the Condition was first asserted or acknowledged.", 0, 1, assertedDate);
1876        case -373242253: /*asserter*/  return new Property("asserter", "Reference(Practitioner|Patient|RelatedPerson)", "Individual who is making the condition statement.", 0, 1, asserter);
1877        case 109757182: /*stage*/  return new Property("stage", "", "Clinical stage or grade of a condition. May include formal severity assessments.", 0, 1, stage);
1878        case 382967383: /*evidence*/  return new Property("evidence", "", "Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed.", 0, java.lang.Integer.MAX_VALUE, evidence);
1879        case 3387378: /*note*/  return new Property("note", "Annotation", "Additional information about the Condition. This is a general notes/comments entry  for description of the Condition, its diagnosis and prognosis.", 0, java.lang.Integer.MAX_VALUE, note);
1880        default: return super.getNamedProperty(_hash, _name, _checkValid);
1881        }
1882
1883      }
1884
1885      @Override
1886      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
1887        switch (hash) {
1888        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier
1889        case -462853915: /*clinicalStatus*/ return this.clinicalStatus == null ? new Base[0] : new Base[] {this.clinicalStatus}; // Enumeration<ConditionClinicalStatus>
1890        case -842509843: /*verificationStatus*/ return this.verificationStatus == null ? new Base[0] : new Base[] {this.verificationStatus}; // Enumeration<ConditionVerificationStatus>
1891        case 50511102: /*category*/ return this.category == null ? new Base[0] : this.category.toArray(new Base[this.category.size()]); // CodeableConcept
1892        case 1478300413: /*severity*/ return this.severity == null ? new Base[0] : new Base[] {this.severity}; // CodeableConcept
1893        case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept
1894        case 1702620169: /*bodySite*/ return this.bodySite == null ? new Base[0] : this.bodySite.toArray(new Base[this.bodySite.size()]); // CodeableConcept
1895        case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference
1896        case 951530927: /*context*/ return this.context == null ? new Base[0] : new Base[] {this.context}; // Reference
1897        case 105901603: /*onset*/ return this.onset == null ? new Base[0] : new Base[] {this.onset}; // Type
1898        case -921554001: /*abatement*/ return this.abatement == null ? new Base[0] : new Base[] {this.abatement}; // Type
1899        case -174231629: /*assertedDate*/ return this.assertedDate == null ? new Base[0] : new Base[] {this.assertedDate}; // DateTimeType
1900        case -373242253: /*asserter*/ return this.asserter == null ? new Base[0] : new Base[] {this.asserter}; // Reference
1901        case 109757182: /*stage*/ return this.stage == null ? new Base[0] : new Base[] {this.stage}; // ConditionStageComponent
1902        case 382967383: /*evidence*/ return this.evidence == null ? new Base[0] : this.evidence.toArray(new Base[this.evidence.size()]); // ConditionEvidenceComponent
1903        case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation
1904        default: return super.getProperty(hash, name, checkValid);
1905        }
1906
1907      }
1908
1909      @Override
1910      public Base setProperty(int hash, String name, Base value) throws FHIRException {
1911        switch (hash) {
1912        case -1618432855: // identifier
1913          this.getIdentifier().add(castToIdentifier(value)); // Identifier
1914          return value;
1915        case -462853915: // clinicalStatus
1916          value = new ConditionClinicalStatusEnumFactory().fromType(castToCode(value));
1917          this.clinicalStatus = (Enumeration) value; // Enumeration<ConditionClinicalStatus>
1918          return value;
1919        case -842509843: // verificationStatus
1920          value = new ConditionVerificationStatusEnumFactory().fromType(castToCode(value));
1921          this.verificationStatus = (Enumeration) value; // Enumeration<ConditionVerificationStatus>
1922          return value;
1923        case 50511102: // category
1924          this.getCategory().add(castToCodeableConcept(value)); // CodeableConcept
1925          return value;
1926        case 1478300413: // severity
1927          this.severity = castToCodeableConcept(value); // CodeableConcept
1928          return value;
1929        case 3059181: // code
1930          this.code = castToCodeableConcept(value); // CodeableConcept
1931          return value;
1932        case 1702620169: // bodySite
1933          this.getBodySite().add(castToCodeableConcept(value)); // CodeableConcept
1934          return value;
1935        case -1867885268: // subject
1936          this.subject = castToReference(value); // Reference
1937          return value;
1938        case 951530927: // context
1939          this.context = castToReference(value); // Reference
1940          return value;
1941        case 105901603: // onset
1942          this.onset = castToType(value); // Type
1943          return value;
1944        case -921554001: // abatement
1945          this.abatement = castToType(value); // Type
1946          return value;
1947        case -174231629: // assertedDate
1948          this.assertedDate = castToDateTime(value); // DateTimeType
1949          return value;
1950        case -373242253: // asserter
1951          this.asserter = castToReference(value); // Reference
1952          return value;
1953        case 109757182: // stage
1954          this.stage = (ConditionStageComponent) value; // ConditionStageComponent
1955          return value;
1956        case 382967383: // evidence
1957          this.getEvidence().add((ConditionEvidenceComponent) value); // ConditionEvidenceComponent
1958          return value;
1959        case 3387378: // note
1960          this.getNote().add(castToAnnotation(value)); // Annotation
1961          return value;
1962        default: return super.setProperty(hash, name, value);
1963        }
1964
1965      }
1966
1967      @Override
1968      public Base setProperty(String name, Base value) throws FHIRException {
1969        if (name.equals("identifier")) {
1970          this.getIdentifier().add(castToIdentifier(value));
1971        } else if (name.equals("clinicalStatus")) {
1972          value = new ConditionClinicalStatusEnumFactory().fromType(castToCode(value));
1973          this.clinicalStatus = (Enumeration) value; // Enumeration<ConditionClinicalStatus>
1974        } else if (name.equals("verificationStatus")) {
1975          value = new ConditionVerificationStatusEnumFactory().fromType(castToCode(value));
1976          this.verificationStatus = (Enumeration) value; // Enumeration<ConditionVerificationStatus>
1977        } else if (name.equals("category")) {
1978          this.getCategory().add(castToCodeableConcept(value));
1979        } else if (name.equals("severity")) {
1980          this.severity = castToCodeableConcept(value); // CodeableConcept
1981        } else if (name.equals("code")) {
1982          this.code = castToCodeableConcept(value); // CodeableConcept
1983        } else if (name.equals("bodySite")) {
1984          this.getBodySite().add(castToCodeableConcept(value));
1985        } else if (name.equals("subject")) {
1986          this.subject = castToReference(value); // Reference
1987        } else if (name.equals("context")) {
1988          this.context = castToReference(value); // Reference
1989        } else if (name.equals("onset[x]")) {
1990          this.onset = castToType(value); // Type
1991        } else if (name.equals("abatement[x]")) {
1992          this.abatement = castToType(value); // Type
1993        } else if (name.equals("assertedDate")) {
1994          this.assertedDate = castToDateTime(value); // DateTimeType
1995        } else if (name.equals("asserter")) {
1996          this.asserter = castToReference(value); // Reference
1997        } else if (name.equals("stage")) {
1998          this.stage = (ConditionStageComponent) value; // ConditionStageComponent
1999        } else if (name.equals("evidence")) {
2000          this.getEvidence().add((ConditionEvidenceComponent) value);
2001        } else if (name.equals("note")) {
2002          this.getNote().add(castToAnnotation(value));
2003        } else
2004          return super.setProperty(name, value);
2005        return value;
2006      }
2007
2008      @Override
2009      public Base makeProperty(int hash, String name) throws FHIRException {
2010        switch (hash) {
2011        case -1618432855:  return addIdentifier(); 
2012        case -462853915:  return getClinicalStatusElement();
2013        case -842509843:  return getVerificationStatusElement();
2014        case 50511102:  return addCategory(); 
2015        case 1478300413:  return getSeverity(); 
2016        case 3059181:  return getCode(); 
2017        case 1702620169:  return addBodySite(); 
2018        case -1867885268:  return getSubject(); 
2019        case 951530927:  return getContext(); 
2020        case -1886216323:  return getOnset(); 
2021        case 105901603:  return getOnset(); 
2022        case -584196495:  return getAbatement(); 
2023        case -921554001:  return getAbatement(); 
2024        case -174231629:  return getAssertedDateElement();
2025        case -373242253:  return getAsserter(); 
2026        case 109757182:  return getStage(); 
2027        case 382967383:  return addEvidence(); 
2028        case 3387378:  return addNote(); 
2029        default: return super.makeProperty(hash, name);
2030        }
2031
2032      }
2033
2034      @Override
2035      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
2036        switch (hash) {
2037        case -1618432855: /*identifier*/ return new String[] {"Identifier"};
2038        case -462853915: /*clinicalStatus*/ return new String[] {"code"};
2039        case -842509843: /*verificationStatus*/ return new String[] {"code"};
2040        case 50511102: /*category*/ return new String[] {"CodeableConcept"};
2041        case 1478300413: /*severity*/ return new String[] {"CodeableConcept"};
2042        case 3059181: /*code*/ return new String[] {"CodeableConcept"};
2043        case 1702620169: /*bodySite*/ return new String[] {"CodeableConcept"};
2044        case -1867885268: /*subject*/ return new String[] {"Reference"};
2045        case 951530927: /*context*/ return new String[] {"Reference"};
2046        case 105901603: /*onset*/ return new String[] {"dateTime", "Age", "Period", "Range", "string"};
2047        case -921554001: /*abatement*/ return new String[] {"dateTime", "Age", "boolean", "Period", "Range", "string"};
2048        case -174231629: /*assertedDate*/ return new String[] {"dateTime"};
2049        case -373242253: /*asserter*/ return new String[] {"Reference"};
2050        case 109757182: /*stage*/ return new String[] {};
2051        case 382967383: /*evidence*/ return new String[] {};
2052        case 3387378: /*note*/ return new String[] {"Annotation"};
2053        default: return super.getTypesForProperty(hash, name);
2054        }
2055
2056      }
2057
2058      @Override
2059      public Base addChild(String name) throws FHIRException {
2060        if (name.equals("identifier")) {
2061          return addIdentifier();
2062        }
2063        else if (name.equals("clinicalStatus")) {
2064          throw new FHIRException("Cannot call addChild on a primitive type Condition.clinicalStatus");
2065        }
2066        else if (name.equals("verificationStatus")) {
2067          throw new FHIRException("Cannot call addChild on a primitive type Condition.verificationStatus");
2068        }
2069        else if (name.equals("category")) {
2070          return addCategory();
2071        }
2072        else if (name.equals("severity")) {
2073          this.severity = new CodeableConcept();
2074          return this.severity;
2075        }
2076        else if (name.equals("code")) {
2077          this.code = new CodeableConcept();
2078          return this.code;
2079        }
2080        else if (name.equals("bodySite")) {
2081          return addBodySite();
2082        }
2083        else if (name.equals("subject")) {
2084          this.subject = new Reference();
2085          return this.subject;
2086        }
2087        else if (name.equals("context")) {
2088          this.context = new Reference();
2089          return this.context;
2090        }
2091        else if (name.equals("onsetDateTime")) {
2092          this.onset = new DateTimeType();
2093          return this.onset;
2094        }
2095        else if (name.equals("onsetAge")) {
2096          this.onset = new Age();
2097          return this.onset;
2098        }
2099        else if (name.equals("onsetPeriod")) {
2100          this.onset = new Period();
2101          return this.onset;
2102        }
2103        else if (name.equals("onsetRange")) {
2104          this.onset = new Range();
2105          return this.onset;
2106        }
2107        else if (name.equals("onsetString")) {
2108          this.onset = new StringType();
2109          return this.onset;
2110        }
2111        else if (name.equals("abatementDateTime")) {
2112          this.abatement = new DateTimeType();
2113          return this.abatement;
2114        }
2115        else if (name.equals("abatementAge")) {
2116          this.abatement = new Age();
2117          return this.abatement;
2118        }
2119        else if (name.equals("abatementBoolean")) {
2120          this.abatement = new BooleanType();
2121          return this.abatement;
2122        }
2123        else if (name.equals("abatementPeriod")) {
2124          this.abatement = new Period();
2125          return this.abatement;
2126        }
2127        else if (name.equals("abatementRange")) {
2128          this.abatement = new Range();
2129          return this.abatement;
2130        }
2131        else if (name.equals("abatementString")) {
2132          this.abatement = new StringType();
2133          return this.abatement;
2134        }
2135        else if (name.equals("assertedDate")) {
2136          throw new FHIRException("Cannot call addChild on a primitive type Condition.assertedDate");
2137        }
2138        else if (name.equals("asserter")) {
2139          this.asserter = new Reference();
2140          return this.asserter;
2141        }
2142        else if (name.equals("stage")) {
2143          this.stage = new ConditionStageComponent();
2144          return this.stage;
2145        }
2146        else if (name.equals("evidence")) {
2147          return addEvidence();
2148        }
2149        else if (name.equals("note")) {
2150          return addNote();
2151        }
2152        else
2153          return super.addChild(name);
2154      }
2155
2156  public String fhirType() {
2157    return "Condition";
2158
2159  }
2160
2161      public Condition copy() {
2162        Condition dst = new Condition();
2163        copyValues(dst);
2164        if (identifier != null) {
2165          dst.identifier = new ArrayList<Identifier>();
2166          for (Identifier i : identifier)
2167            dst.identifier.add(i.copy());
2168        };
2169        dst.clinicalStatus = clinicalStatus == null ? null : clinicalStatus.copy();
2170        dst.verificationStatus = verificationStatus == null ? null : verificationStatus.copy();
2171        if (category != null) {
2172          dst.category = new ArrayList<CodeableConcept>();
2173          for (CodeableConcept i : category)
2174            dst.category.add(i.copy());
2175        };
2176        dst.severity = severity == null ? null : severity.copy();
2177        dst.code = code == null ? null : code.copy();
2178        if (bodySite != null) {
2179          dst.bodySite = new ArrayList<CodeableConcept>();
2180          for (CodeableConcept i : bodySite)
2181            dst.bodySite.add(i.copy());
2182        };
2183        dst.subject = subject == null ? null : subject.copy();
2184        dst.context = context == null ? null : context.copy();
2185        dst.onset = onset == null ? null : onset.copy();
2186        dst.abatement = abatement == null ? null : abatement.copy();
2187        dst.assertedDate = assertedDate == null ? null : assertedDate.copy();
2188        dst.asserter = asserter == null ? null : asserter.copy();
2189        dst.stage = stage == null ? null : stage.copy();
2190        if (evidence != null) {
2191          dst.evidence = new ArrayList<ConditionEvidenceComponent>();
2192          for (ConditionEvidenceComponent i : evidence)
2193            dst.evidence.add(i.copy());
2194        };
2195        if (note != null) {
2196          dst.note = new ArrayList<Annotation>();
2197          for (Annotation i : note)
2198            dst.note.add(i.copy());
2199        };
2200        return dst;
2201      }
2202
2203      protected Condition typedCopy() {
2204        return copy();
2205      }
2206
2207      @Override
2208      public boolean equalsDeep(Base other_) {
2209        if (!super.equalsDeep(other_))
2210          return false;
2211        if (!(other_ instanceof Condition))
2212          return false;
2213        Condition o = (Condition) other_;
2214        return compareDeep(identifier, o.identifier, true) && compareDeep(clinicalStatus, o.clinicalStatus, true)
2215           && compareDeep(verificationStatus, o.verificationStatus, true) && compareDeep(category, o.category, true)
2216           && compareDeep(severity, o.severity, true) && compareDeep(code, o.code, true) && compareDeep(bodySite, o.bodySite, true)
2217           && compareDeep(subject, o.subject, true) && compareDeep(context, o.context, true) && compareDeep(onset, o.onset, true)
2218           && compareDeep(abatement, o.abatement, true) && compareDeep(assertedDate, o.assertedDate, true)
2219           && compareDeep(asserter, o.asserter, true) && compareDeep(stage, o.stage, true) && compareDeep(evidence, o.evidence, true)
2220           && compareDeep(note, o.note, true);
2221      }
2222
2223      @Override
2224      public boolean equalsShallow(Base other_) {
2225        if (!super.equalsShallow(other_))
2226          return false;
2227        if (!(other_ instanceof Condition))
2228          return false;
2229        Condition o = (Condition) other_;
2230        return compareValues(clinicalStatus, o.clinicalStatus, true) && compareValues(verificationStatus, o.verificationStatus, true)
2231           && compareValues(assertedDate, o.assertedDate, true);
2232      }
2233
2234      public boolean isEmpty() {
2235        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, clinicalStatus
2236          , verificationStatus, category, severity, code, bodySite, subject, context, onset
2237          , abatement, assertedDate, asserter, stage, evidence, note);
2238      }
2239
2240  @Override
2241  public ResourceType getResourceType() {
2242    return ResourceType.Condition;
2243   }
2244
2245 /**
2246   * Search parameter: <b>severity</b>
2247   * <p>
2248   * Description: <b>The severity of the condition</b><br>
2249   * Type: <b>token</b><br>
2250   * Path: <b>Condition.severity</b><br>
2251   * </p>
2252   */
2253  @SearchParamDefinition(name="severity", path="Condition.severity", description="The severity of the condition", type="token" )
2254  public static final String SP_SEVERITY = "severity";
2255 /**
2256   * <b>Fluent Client</b> search parameter constant for <b>severity</b>
2257   * <p>
2258   * Description: <b>The severity of the condition</b><br>
2259   * Type: <b>token</b><br>
2260   * Path: <b>Condition.severity</b><br>
2261   * </p>
2262   */
2263  public static final ca.uhn.fhir.rest.gclient.TokenClientParam SEVERITY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SEVERITY);
2264
2265 /**
2266   * Search parameter: <b>evidence-detail</b>
2267   * <p>
2268   * Description: <b>Supporting information found elsewhere</b><br>
2269   * Type: <b>reference</b><br>
2270   * Path: <b>Condition.evidence.detail</b><br>
2271   * </p>
2272   */
2273  @SearchParamDefinition(name="evidence-detail", path="Condition.evidence.detail", description="Supporting information found elsewhere", type="reference" )
2274  public static final String SP_EVIDENCE_DETAIL = "evidence-detail";
2275 /**
2276   * <b>Fluent Client</b> search parameter constant for <b>evidence-detail</b>
2277   * <p>
2278   * Description: <b>Supporting information found elsewhere</b><br>
2279   * Type: <b>reference</b><br>
2280   * Path: <b>Condition.evidence.detail</b><br>
2281   * </p>
2282   */
2283  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam EVIDENCE_DETAIL = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_EVIDENCE_DETAIL);
2284
2285/**
2286   * Constant for fluent queries to be used to add include statements. Specifies
2287   * the path value of "<b>Condition:evidence-detail</b>".
2288   */
2289  public static final ca.uhn.fhir.model.api.Include INCLUDE_EVIDENCE_DETAIL = new ca.uhn.fhir.model.api.Include("Condition:evidence-detail").toLocked();
2290
2291 /**
2292   * Search parameter: <b>identifier</b>
2293   * <p>
2294   * Description: <b>A unique identifier of the condition record</b><br>
2295   * Type: <b>token</b><br>
2296   * Path: <b>Condition.identifier</b><br>
2297   * </p>
2298   */
2299  @SearchParamDefinition(name="identifier", path="Condition.identifier", description="A unique identifier of the condition record", type="token" )
2300  public static final String SP_IDENTIFIER = "identifier";
2301 /**
2302   * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
2303   * <p>
2304   * Description: <b>A unique identifier of the condition record</b><br>
2305   * Type: <b>token</b><br>
2306   * Path: <b>Condition.identifier</b><br>
2307   * </p>
2308   */
2309  public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
2310
2311 /**
2312   * Search parameter: <b>onset-info</b>
2313   * <p>
2314   * Description: <b>Onsets as a string</b><br>
2315   * Type: <b>string</b><br>
2316   * Path: <b>Condition.onset[x]</b><br>
2317   * </p>
2318   */
2319  @SearchParamDefinition(name="onset-info", path="Condition.onset.as(string)", description="Onsets as a string", type="string" )
2320  public static final String SP_ONSET_INFO = "onset-info";
2321 /**
2322   * <b>Fluent Client</b> search parameter constant for <b>onset-info</b>
2323   * <p>
2324   * Description: <b>Onsets as a string</b><br>
2325   * Type: <b>string</b><br>
2326   * Path: <b>Condition.onset[x]</b><br>
2327   * </p>
2328   */
2329  public static final ca.uhn.fhir.rest.gclient.StringClientParam ONSET_INFO = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ONSET_INFO);
2330
2331 /**
2332   * Search parameter: <b>code</b>
2333   * <p>
2334   * Description: <b>Code for the condition</b><br>
2335   * Type: <b>token</b><br>
2336   * Path: <b>Condition.code</b><br>
2337   * </p>
2338   */
2339  @SearchParamDefinition(name="code", path="Condition.code", description="Code for the condition", type="token" )
2340  public static final String SP_CODE = "code";
2341 /**
2342   * <b>Fluent Client</b> search parameter constant for <b>code</b>
2343   * <p>
2344   * Description: <b>Code for the condition</b><br>
2345   * Type: <b>token</b><br>
2346   * Path: <b>Condition.code</b><br>
2347   * </p>
2348   */
2349  public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE);
2350
2351 /**
2352   * Search parameter: <b>evidence</b>
2353   * <p>
2354   * Description: <b>Manifestation/symptom</b><br>
2355   * Type: <b>token</b><br>
2356   * Path: <b>Condition.evidence.code</b><br>
2357   * </p>
2358   */
2359  @SearchParamDefinition(name="evidence", path="Condition.evidence.code", description="Manifestation/symptom", type="token" )
2360  public static final String SP_EVIDENCE = "evidence";
2361 /**
2362   * <b>Fluent Client</b> search parameter constant for <b>evidence</b>
2363   * <p>
2364   * Description: <b>Manifestation/symptom</b><br>
2365   * Type: <b>token</b><br>
2366   * Path: <b>Condition.evidence.code</b><br>
2367   * </p>
2368   */
2369  public static final ca.uhn.fhir.rest.gclient.TokenClientParam EVIDENCE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_EVIDENCE);
2370
2371 /**
2372   * Search parameter: <b>subject</b>
2373   * <p>
2374   * Description: <b>Who has the condition?</b><br>
2375   * Type: <b>reference</b><br>
2376   * Path: <b>Condition.subject</b><br>
2377   * </p>
2378   */
2379  @SearchParamDefinition(name="subject", path="Condition.subject", description="Who has the condition?", type="reference", target={Group.class, Patient.class } )
2380  public static final String SP_SUBJECT = "subject";
2381 /**
2382   * <b>Fluent Client</b> search parameter constant for <b>subject</b>
2383   * <p>
2384   * Description: <b>Who has the condition?</b><br>
2385   * Type: <b>reference</b><br>
2386   * Path: <b>Condition.subject</b><br>
2387   * </p>
2388   */
2389  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT);
2390
2391/**
2392   * Constant for fluent queries to be used to add include statements. Specifies
2393   * the path value of "<b>Condition:subject</b>".
2394   */
2395  public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("Condition:subject").toLocked();
2396
2397 /**
2398   * Search parameter: <b>verification-status</b>
2399   * <p>
2400   * Description: <b>provisional | differential | confirmed | refuted | entered-in-error | unknown</b><br>
2401   * Type: <b>token</b><br>
2402   * Path: <b>Condition.verificationStatus</b><br>
2403   * </p>
2404   */
2405  @SearchParamDefinition(name="verification-status", path="Condition.verificationStatus", description="provisional | differential | confirmed | refuted | entered-in-error | unknown", type="token" )
2406  public static final String SP_VERIFICATION_STATUS = "verification-status";
2407 /**
2408   * <b>Fluent Client</b> search parameter constant for <b>verification-status</b>
2409   * <p>
2410   * Description: <b>provisional | differential | confirmed | refuted | entered-in-error | unknown</b><br>
2411   * Type: <b>token</b><br>
2412   * Path: <b>Condition.verificationStatus</b><br>
2413   * </p>
2414   */
2415  public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERIFICATION_STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERIFICATION_STATUS);
2416
2417 /**
2418   * Search parameter: <b>clinical-status</b>
2419   * <p>
2420   * Description: <b>The clinical status of the condition</b><br>
2421   * Type: <b>token</b><br>
2422   * Path: <b>Condition.clinicalStatus</b><br>
2423   * </p>
2424   */
2425  @SearchParamDefinition(name="clinical-status", path="Condition.clinicalStatus", description="The clinical status of the condition", type="token" )
2426  public static final String SP_CLINICAL_STATUS = "clinical-status";
2427 /**
2428   * <b>Fluent Client</b> search parameter constant for <b>clinical-status</b>
2429   * <p>
2430   * Description: <b>The clinical status of the condition</b><br>
2431   * Type: <b>token</b><br>
2432   * Path: <b>Condition.clinicalStatus</b><br>
2433   * </p>
2434   */
2435  public static final ca.uhn.fhir.rest.gclient.TokenClientParam CLINICAL_STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CLINICAL_STATUS);
2436
2437 /**
2438   * Search parameter: <b>encounter</b>
2439   * <p>
2440   * Description: <b>Encounter when condition first asserted</b><br>
2441   * Type: <b>reference</b><br>
2442   * Path: <b>Condition.context</b><br>
2443   * </p>
2444   */
2445  @SearchParamDefinition(name="encounter", path="Condition.context", description="Encounter when condition first asserted", type="reference", target={Encounter.class } )
2446  public static final String SP_ENCOUNTER = "encounter";
2447 /**
2448   * <b>Fluent Client</b> search parameter constant for <b>encounter</b>
2449   * <p>
2450   * Description: <b>Encounter when condition first asserted</b><br>
2451   * Type: <b>reference</b><br>
2452   * Path: <b>Condition.context</b><br>
2453   * </p>
2454   */
2455  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER);
2456
2457/**
2458   * Constant for fluent queries to be used to add include statements. Specifies
2459   * the path value of "<b>Condition:encounter</b>".
2460   */
2461  public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("Condition:encounter").toLocked();
2462
2463 /**
2464   * Search parameter: <b>abatement-boolean</b>
2465   * <p>
2466   * Description: <b>Abatement boolean (boolean is true or non-boolean values are present)</b><br>
2467   * Type: <b>token</b><br>
2468   * Path: <b>Condition.abatement[x]</b><br>
2469   * </p>
2470   */
2471  @SearchParamDefinition(name="abatement-boolean", path="Condition.abatement.as(boolean) | Condition.abatement.is(dateTime) | Condition.abatement.is(Age) | Condition.abatement.is(Period) | Condition.abatement.is(Range) | Condition.abatement.is(string)", description="Abatement boolean (boolean is true or non-boolean values are present)", type="token" )
2472  public static final String SP_ABATEMENT_BOOLEAN = "abatement-boolean";
2473 /**
2474   * <b>Fluent Client</b> search parameter constant for <b>abatement-boolean</b>
2475   * <p>
2476   * Description: <b>Abatement boolean (boolean is true or non-boolean values are present)</b><br>
2477   * Type: <b>token</b><br>
2478   * Path: <b>Condition.abatement[x]</b><br>
2479   * </p>
2480   */
2481  public static final ca.uhn.fhir.rest.gclient.TokenClientParam ABATEMENT_BOOLEAN = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ABATEMENT_BOOLEAN);
2482
2483 /**
2484   * Search parameter: <b>onset-date</b>
2485   * <p>
2486   * Description: <b>Date related onsets (dateTime and Period)</b><br>
2487   * Type: <b>date</b><br>
2488   * Path: <b>Condition.onset[x]</b><br>
2489   * </p>
2490   */
2491  @SearchParamDefinition(name="onset-date", path="Condition.onset.as(dateTime) | Condition.onset.as(Period)", description="Date related onsets (dateTime and Period)", type="date" )
2492  public static final String SP_ONSET_DATE = "onset-date";
2493 /**
2494   * <b>Fluent Client</b> search parameter constant for <b>onset-date</b>
2495   * <p>
2496   * Description: <b>Date related onsets (dateTime and Period)</b><br>
2497   * Type: <b>date</b><br>
2498   * Path: <b>Condition.onset[x]</b><br>
2499   * </p>
2500   */
2501  public static final ca.uhn.fhir.rest.gclient.DateClientParam ONSET_DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_ONSET_DATE);
2502
2503 /**
2504   * Search parameter: <b>abatement-date</b>
2505   * <p>
2506   * Description: <b>Date-related abatements (dateTime and period)</b><br>
2507   * Type: <b>date</b><br>
2508   * Path: <b>Condition.abatement[x]</b><br>
2509   * </p>
2510   */
2511  @SearchParamDefinition(name="abatement-date", path="Condition.abatement.as(dateTime) | Condition.abatement.as(Period)", description="Date-related abatements (dateTime and period)", type="date" )
2512  public static final String SP_ABATEMENT_DATE = "abatement-date";
2513 /**
2514   * <b>Fluent Client</b> search parameter constant for <b>abatement-date</b>
2515   * <p>
2516   * Description: <b>Date-related abatements (dateTime and period)</b><br>
2517   * Type: <b>date</b><br>
2518   * Path: <b>Condition.abatement[x]</b><br>
2519   * </p>
2520   */
2521  public static final ca.uhn.fhir.rest.gclient.DateClientParam ABATEMENT_DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_ABATEMENT_DATE);
2522
2523 /**
2524   * Search parameter: <b>asserter</b>
2525   * <p>
2526   * Description: <b>Person who asserts this condition</b><br>
2527   * Type: <b>reference</b><br>
2528   * Path: <b>Condition.asserter</b><br>
2529   * </p>
2530   */
2531  @SearchParamDefinition(name="asserter", path="Condition.asserter", description="Person who asserts this condition", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") }, target={Patient.class, Practitioner.class, RelatedPerson.class } )
2532  public static final String SP_ASSERTER = "asserter";
2533 /**
2534   * <b>Fluent Client</b> search parameter constant for <b>asserter</b>
2535   * <p>
2536   * Description: <b>Person who asserts this condition</b><br>
2537   * Type: <b>reference</b><br>
2538   * Path: <b>Condition.asserter</b><br>
2539   * </p>
2540   */
2541  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ASSERTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ASSERTER);
2542
2543/**
2544   * Constant for fluent queries to be used to add include statements. Specifies
2545   * the path value of "<b>Condition:asserter</b>".
2546   */
2547  public static final ca.uhn.fhir.model.api.Include INCLUDE_ASSERTER = new ca.uhn.fhir.model.api.Include("Condition:asserter").toLocked();
2548
2549 /**
2550   * Search parameter: <b>stage</b>
2551   * <p>
2552   * Description: <b>Simple summary (disease specific)</b><br>
2553   * Type: <b>token</b><br>
2554   * Path: <b>Condition.stage.summary</b><br>
2555   * </p>
2556   */
2557  @SearchParamDefinition(name="stage", path="Condition.stage.summary", description="Simple summary (disease specific)", type="token" )
2558  public static final String SP_STAGE = "stage";
2559 /**
2560   * <b>Fluent Client</b> search parameter constant for <b>stage</b>
2561   * <p>
2562   * Description: <b>Simple summary (disease specific)</b><br>
2563   * Type: <b>token</b><br>
2564   * Path: <b>Condition.stage.summary</b><br>
2565   * </p>
2566   */
2567  public static final ca.uhn.fhir.rest.gclient.TokenClientParam STAGE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STAGE);
2568
2569 /**
2570   * Search parameter: <b>abatement-string</b>
2571   * <p>
2572   * Description: <b>Abatement as a string</b><br>
2573   * Type: <b>string</b><br>
2574   * Path: <b>Condition.abatement[x]</b><br>
2575   * </p>
2576   */
2577  @SearchParamDefinition(name="abatement-string", path="Condition.abatement.as(string)", description="Abatement as a string", type="string" )
2578  public static final String SP_ABATEMENT_STRING = "abatement-string";
2579 /**
2580   * <b>Fluent Client</b> search parameter constant for <b>abatement-string</b>
2581   * <p>
2582   * Description: <b>Abatement as a string</b><br>
2583   * Type: <b>string</b><br>
2584   * Path: <b>Condition.abatement[x]</b><br>
2585   * </p>
2586   */
2587  public static final ca.uhn.fhir.rest.gclient.StringClientParam ABATEMENT_STRING = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ABATEMENT_STRING);
2588
2589 /**
2590   * Search parameter: <b>patient</b>
2591   * <p>
2592   * Description: <b>Who has the condition?</b><br>
2593   * Type: <b>reference</b><br>
2594   * Path: <b>Condition.subject</b><br>
2595   * </p>
2596   */
2597  @SearchParamDefinition(name="patient", path="Condition.subject", description="Who has the condition?", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") }, target={Patient.class } )
2598  public static final String SP_PATIENT = "patient";
2599 /**
2600   * <b>Fluent Client</b> search parameter constant for <b>patient</b>
2601   * <p>
2602   * Description: <b>Who has the condition?</b><br>
2603   * Type: <b>reference</b><br>
2604   * Path: <b>Condition.subject</b><br>
2605   * </p>
2606   */
2607  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT);
2608
2609/**
2610   * Constant for fluent queries to be used to add include statements. Specifies
2611   * the path value of "<b>Condition:patient</b>".
2612   */
2613  public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Condition:patient").toLocked();
2614
2615 /**
2616   * Search parameter: <b>context</b>
2617   * <p>
2618   * Description: <b>Encounter or episode when condition first asserted</b><br>
2619   * Type: <b>reference</b><br>
2620   * Path: <b>Condition.context</b><br>
2621   * </p>
2622   */
2623  @SearchParamDefinition(name="context", path="Condition.context", description="Encounter or episode when condition first asserted", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Encounter") }, target={Encounter.class, EpisodeOfCare.class } )
2624  public static final String SP_CONTEXT = "context";
2625 /**
2626   * <b>Fluent Client</b> search parameter constant for <b>context</b>
2627   * <p>
2628   * Description: <b>Encounter or episode when condition first asserted</b><br>
2629   * Type: <b>reference</b><br>
2630   * Path: <b>Condition.context</b><br>
2631   * </p>
2632   */
2633  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_CONTEXT);
2634
2635/**
2636   * Constant for fluent queries to be used to add include statements. Specifies
2637   * the path value of "<b>Condition:context</b>".
2638   */
2639  public static final ca.uhn.fhir.model.api.Include INCLUDE_CONTEXT = new ca.uhn.fhir.model.api.Include("Condition:context").toLocked();
2640
2641 /**
2642   * Search parameter: <b>onset-age</b>
2643   * <p>
2644   * Description: <b>Onsets as age or age range</b><br>
2645   * Type: <b>quantity</b><br>
2646   * Path: <b>Condition.onset[x]</b><br>
2647   * </p>
2648   */
2649  @SearchParamDefinition(name="onset-age", path="Condition.onset.as(Age) | Condition.onset.as(Range)", description="Onsets as age or age range", type="quantity" )
2650  public static final String SP_ONSET_AGE = "onset-age";
2651 /**
2652   * <b>Fluent Client</b> search parameter constant for <b>onset-age</b>
2653   * <p>
2654   * Description: <b>Onsets as age or age range</b><br>
2655   * Type: <b>quantity</b><br>
2656   * Path: <b>Condition.onset[x]</b><br>
2657   * </p>
2658   */
2659  public static final ca.uhn.fhir.rest.gclient.QuantityClientParam ONSET_AGE = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_ONSET_AGE);
2660
2661 /**
2662   * Search parameter: <b>abatement-age</b>
2663   * <p>
2664   * Description: <b>Abatement as age or age range</b><br>
2665   * Type: <b>quantity</b><br>
2666   * Path: <b>Condition.abatement[x]</b><br>
2667   * </p>
2668   */
2669  @SearchParamDefinition(name="abatement-age", path="Condition.abatement.as(Age) | Condition.abatement.as(Range) | Condition.abatement.as(Age)", description="Abatement as age or age range", type="quantity" )
2670  public static final String SP_ABATEMENT_AGE = "abatement-age";
2671 /**
2672   * <b>Fluent Client</b> search parameter constant for <b>abatement-age</b>
2673   * <p>
2674   * Description: <b>Abatement as age or age range</b><br>
2675   * Type: <b>quantity</b><br>
2676   * Path: <b>Condition.abatement[x]</b><br>
2677   * </p>
2678   */
2679  public static final ca.uhn.fhir.rest.gclient.QuantityClientParam ABATEMENT_AGE = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_ABATEMENT_AGE);
2680
2681 /**
2682   * Search parameter: <b>asserted-date</b>
2683   * <p>
2684   * Description: <b>Date record was believed accurate</b><br>
2685   * Type: <b>date</b><br>
2686   * Path: <b>Condition.assertedDate</b><br>
2687   * </p>
2688   */
2689  @SearchParamDefinition(name="asserted-date", path="Condition.assertedDate", description="Date record was believed accurate", type="date" )
2690  public static final String SP_ASSERTED_DATE = "asserted-date";
2691 /**
2692   * <b>Fluent Client</b> search parameter constant for <b>asserted-date</b>
2693   * <p>
2694   * Description: <b>Date record was believed accurate</b><br>
2695   * Type: <b>date</b><br>
2696   * Path: <b>Condition.assertedDate</b><br>
2697   * </p>
2698   */
2699  public static final ca.uhn.fhir.rest.gclient.DateClientParam ASSERTED_DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_ASSERTED_DATE);
2700
2701 /**
2702   * Search parameter: <b>category</b>
2703   * <p>
2704   * Description: <b>The category of the condition</b><br>
2705   * Type: <b>token</b><br>
2706   * Path: <b>Condition.category</b><br>
2707   * </p>
2708   */
2709  @SearchParamDefinition(name="category", path="Condition.category", description="The category of the condition", type="token" )
2710  public static final String SP_CATEGORY = "category";
2711 /**
2712   * <b>Fluent Client</b> search parameter constant for <b>category</b>
2713   * <p>
2714   * Description: <b>The category of the condition</b><br>
2715   * Type: <b>token</b><br>
2716   * Path: <b>Condition.category</b><br>
2717   * </p>
2718   */
2719  public static final ca.uhn.fhir.rest.gclient.TokenClientParam CATEGORY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CATEGORY);
2720
2721 /**
2722   * Search parameter: <b>body-site</b>
2723   * <p>
2724   * Description: <b>Anatomical location, if relevant</b><br>
2725   * Type: <b>token</b><br>
2726   * Path: <b>Condition.bodySite</b><br>
2727   * </p>
2728   */
2729  @SearchParamDefinition(name="body-site", path="Condition.bodySite", description="Anatomical location, if relevant", type="token" )
2730  public static final String SP_BODY_SITE = "body-site";
2731 /**
2732   * <b>Fluent Client</b> search parameter constant for <b>body-site</b>
2733   * <p>
2734   * Description: <b>Anatomical location, if relevant</b><br>
2735   * Type: <b>token</b><br>
2736   * Path: <b>Condition.bodySite</b><br>
2737   * </p>
2738   */
2739  public static final ca.uhn.fhir.rest.gclient.TokenClientParam BODY_SITE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_BODY_SITE);
2740
2741
2742}
2743