001package org.hl7.fhir.r5.model;
002
003/*-
004 * #%L
005 * org.hl7.fhir.r5
006 * %%
007 * Copyright (C) 2014 - 2019 Health Level 7
008 * %%
009 * Licensed under the Apache License, Version 2.0 (the "License");
010 * you may not use this file except in compliance with the License.
011 * You may obtain a copy of the License at
012 * 
013 *      http://www.apache.org/licenses/LICENSE-2.0
014 * 
015 * Unless required by applicable law or agreed to in writing, software
016 * distributed under the License is distributed on an "AS IS" BASIS,
017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
018 * See the License for the specific language governing permissions and
019 * limitations under the License.
020 * #L%
021 */
022
023/*
024  Copyright (c) 2011+, HL7, Inc.
025  All rights reserved.
026  
027  Redistribution and use in source and binary forms, with or without modification, 
028  are permitted provided that the following conditions are met:
029  
030   * Redistributions of source code must retain the above copyright notice, this 
031     list of conditions and the following disclaimer.
032   * Redistributions in binary form must reproduce the above copyright notice, 
033     this list of conditions and the following disclaimer in the documentation 
034     and/or other materials provided with the distribution.
035   * Neither the name of HL7 nor the names of its contributors may be used to 
036     endorse or promote products derived from this software without specific 
037     prior written permission.
038  
039  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
040  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
041  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
042  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
043  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
044  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
045  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
046  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
047  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
048  POSSIBILITY OF SUCH DAMAGE.
049  
050*/
051
052// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
053import java.util.ArrayList;
054import java.util.Date;
055import java.util.List;
056import org.hl7.fhir.exceptions.FHIRException;
057import org.hl7.fhir.instance.model.api.ICompositeType;
058
059import org.hl7.fhir.instance.model.api.IBaseDatatypeElement;
060import org.hl7.fhir.utilities.Utilities;
061import org.hl7.fhir.r5.model.Enumerations.*;
062import ca.uhn.fhir.model.api.annotation.ResourceDef;
063import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
064import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
065import ca.uhn.fhir.model.api.annotation.Child;
066import ca.uhn.fhir.model.api.annotation.ChildOrder;
067import ca.uhn.fhir.model.api.annotation.Description;
068import ca.uhn.fhir.model.api.annotation.Block;
069/**
070 * This represents statistics, certainty, both the intended and actual population, and evidence variables.
071 */
072@ResourceDef(name="Evidence", profile="http://hl7.org/fhir/StructureDefinition/Evidence")
073@ChildOrder(names={"url", "identifier", "version", "title", "status", "useContext", "date", "approvalDate", "lastReviewDate", "contributor", "relatedArtifact", "description", "assertion", "note", "referentGroup", "variableDefinition", "synthesisType", "studyType", "statistic", "distribution", "certainty"})
074public class Evidence extends MetadataResource {
075
076    @Block()
077    public static class EvidenceReferentGroupComponent extends BackboneElement implements IBaseBackboneElement {
078        /**
079         * Textual description of referent group.
080         */
081        @Child(name = "description", type = {MarkdownType.class}, order=1, min=0, max=1, modifier=false, summary=false)
082        @Description(shortDefinition="Textual description of referent group", formalDefinition="Textual description of referent group." )
083        protected MarkdownType description;
084
085        /**
086         * Footnotes and/or explanatory notes.
087         */
088        @Child(name = "note", type = {Annotation.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
089        @Description(shortDefinition="Footnotes and/or explanatory notes", formalDefinition="Footnotes and/or explanatory notes." )
090        protected List<Annotation> note;
091
092        /**
093         * Various information categories of group.
094         */
095        @Child(name = "evidenceSource", type = {Group.class}, order=3, min=0, max=1, modifier=false, summary=false)
096        @Description(shortDefinition="Various information categories of group", formalDefinition="Various information categories of group." )
097        protected Reference evidenceSource;
098
099        /**
100         * Non-actual group that is a set of characteristics.
101         */
102        @Child(name = "intendedGroup", type = {Group.class}, order=4, min=0, max=1, modifier=false, summary=false)
103        @Description(shortDefinition="Non-actual group that is a set of characteristics", formalDefinition="Non-actual group that is a set of characteristics." )
104        protected Reference intendedGroup;
105
106        /**
107         * Indication of quality of match between intended group to actual group.
108         */
109        @Child(name = "directnessMatch", type = {CodeableConcept.class}, order=5, min=0, max=1, modifier=false, summary=false)
110        @Description(shortDefinition="low | moderate | high | exact", formalDefinition="Indication of quality of match between intended group to actual group." )
111        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/directness")
112        protected CodeableConcept directnessMatch;
113
114        private static final long serialVersionUID = -444548956L;
115
116    /**
117     * Constructor
118     */
119      public EvidenceReferentGroupComponent() {
120        super();
121      }
122
123        /**
124         * @return {@link #description} (Textual description of referent group.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
125         */
126        public MarkdownType getDescriptionElement() { 
127          if (this.description == null)
128            if (Configuration.errorOnAutoCreate())
129              throw new Error("Attempt to auto-create EvidenceReferentGroupComponent.description");
130            else if (Configuration.doAutoCreate())
131              this.description = new MarkdownType(); // bb
132          return this.description;
133        }
134
135        public boolean hasDescriptionElement() { 
136          return this.description != null && !this.description.isEmpty();
137        }
138
139        public boolean hasDescription() { 
140          return this.description != null && !this.description.isEmpty();
141        }
142
143        /**
144         * @param value {@link #description} (Textual description of referent group.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
145         */
146        public EvidenceReferentGroupComponent setDescriptionElement(MarkdownType value) { 
147          this.description = value;
148          return this;
149        }
150
151        /**
152         * @return Textual description of referent group.
153         */
154        public String getDescription() { 
155          return this.description == null ? null : this.description.getValue();
156        }
157
158        /**
159         * @param value Textual description of referent group.
160         */
161        public EvidenceReferentGroupComponent setDescription(String value) { 
162          if (value == null)
163            this.description = null;
164          else {
165            if (this.description == null)
166              this.description = new MarkdownType();
167            this.description.setValue(value);
168          }
169          return this;
170        }
171
172        /**
173         * @return {@link #note} (Footnotes and/or explanatory notes.)
174         */
175        public List<Annotation> getNote() { 
176          if (this.note == null)
177            this.note = new ArrayList<Annotation>();
178          return this.note;
179        }
180
181        /**
182         * @return Returns a reference to <code>this</code> for easy method chaining
183         */
184        public EvidenceReferentGroupComponent setNote(List<Annotation> theNote) { 
185          this.note = theNote;
186          return this;
187        }
188
189        public boolean hasNote() { 
190          if (this.note == null)
191            return false;
192          for (Annotation item : this.note)
193            if (!item.isEmpty())
194              return true;
195          return false;
196        }
197
198        public Annotation addNote() { //3
199          Annotation t = new Annotation();
200          if (this.note == null)
201            this.note = new ArrayList<Annotation>();
202          this.note.add(t);
203          return t;
204        }
205
206        public EvidenceReferentGroupComponent addNote(Annotation t) { //3
207          if (t == null)
208            return this;
209          if (this.note == null)
210            this.note = new ArrayList<Annotation>();
211          this.note.add(t);
212          return this;
213        }
214
215        /**
216         * @return The first repetition of repeating field {@link #note}, creating it if it does not already exist
217         */
218        public Annotation getNoteFirstRep() { 
219          if (getNote().isEmpty()) {
220            addNote();
221          }
222          return getNote().get(0);
223        }
224
225        /**
226         * @return {@link #evidenceSource} (Various information categories of group.)
227         */
228        public Reference getEvidenceSource() { 
229          if (this.evidenceSource == null)
230            if (Configuration.errorOnAutoCreate())
231              throw new Error("Attempt to auto-create EvidenceReferentGroupComponent.evidenceSource");
232            else if (Configuration.doAutoCreate())
233              this.evidenceSource = new Reference(); // cc
234          return this.evidenceSource;
235        }
236
237        public boolean hasEvidenceSource() { 
238          return this.evidenceSource != null && !this.evidenceSource.isEmpty();
239        }
240
241        /**
242         * @param value {@link #evidenceSource} (Various information categories of group.)
243         */
244        public EvidenceReferentGroupComponent setEvidenceSource(Reference value) { 
245          this.evidenceSource = value;
246          return this;
247        }
248
249        /**
250         * @return {@link #intendedGroup} (Non-actual group that is a set of characteristics.)
251         */
252        public Reference getIntendedGroup() { 
253          if (this.intendedGroup == null)
254            if (Configuration.errorOnAutoCreate())
255              throw new Error("Attempt to auto-create EvidenceReferentGroupComponent.intendedGroup");
256            else if (Configuration.doAutoCreate())
257              this.intendedGroup = new Reference(); // cc
258          return this.intendedGroup;
259        }
260
261        public boolean hasIntendedGroup() { 
262          return this.intendedGroup != null && !this.intendedGroup.isEmpty();
263        }
264
265        /**
266         * @param value {@link #intendedGroup} (Non-actual group that is a set of characteristics.)
267         */
268        public EvidenceReferentGroupComponent setIntendedGroup(Reference value) { 
269          this.intendedGroup = value;
270          return this;
271        }
272
273        /**
274         * @return {@link #directnessMatch} (Indication of quality of match between intended group to actual group.)
275         */
276        public CodeableConcept getDirectnessMatch() { 
277          if (this.directnessMatch == null)
278            if (Configuration.errorOnAutoCreate())
279              throw new Error("Attempt to auto-create EvidenceReferentGroupComponent.directnessMatch");
280            else if (Configuration.doAutoCreate())
281              this.directnessMatch = new CodeableConcept(); // cc
282          return this.directnessMatch;
283        }
284
285        public boolean hasDirectnessMatch() { 
286          return this.directnessMatch != null && !this.directnessMatch.isEmpty();
287        }
288
289        /**
290         * @param value {@link #directnessMatch} (Indication of quality of match between intended group to actual group.)
291         */
292        public EvidenceReferentGroupComponent setDirectnessMatch(CodeableConcept value) { 
293          this.directnessMatch = value;
294          return this;
295        }
296
297        protected void listChildren(List<Property> children) {
298          super.listChildren(children);
299          children.add(new Property("description", "markdown", "Textual description of referent group.", 0, 1, description));
300          children.add(new Property("note", "Annotation", "Footnotes and/or explanatory notes.", 0, java.lang.Integer.MAX_VALUE, note));
301          children.add(new Property("evidenceSource", "Reference(Group)", "Various information categories of group.", 0, 1, evidenceSource));
302          children.add(new Property("intendedGroup", "Reference(Group)", "Non-actual group that is a set of characteristics.", 0, 1, intendedGroup));
303          children.add(new Property("directnessMatch", "CodeableConcept", "Indication of quality of match between intended group to actual group.", 0, 1, directnessMatch));
304        }
305
306        @Override
307        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
308          switch (_hash) {
309          case -1724546052: /*description*/  return new Property("description", "markdown", "Textual description of referent group.", 0, 1, description);
310          case 3387378: /*note*/  return new Property("note", "Annotation", "Footnotes and/or explanatory notes.", 0, java.lang.Integer.MAX_VALUE, note);
311          case 324572498: /*evidenceSource*/  return new Property("evidenceSource", "Reference(Group)", "Various information categories of group.", 0, 1, evidenceSource);
312          case -777873132: /*intendedGroup*/  return new Property("intendedGroup", "Reference(Group)", "Non-actual group that is a set of characteristics.", 0, 1, intendedGroup);
313          case -2144864283: /*directnessMatch*/  return new Property("directnessMatch", "CodeableConcept", "Indication of quality of match between intended group to actual group.", 0, 1, directnessMatch);
314          default: return super.getNamedProperty(_hash, _name, _checkValid);
315          }
316
317        }
318
319      @Override
320      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
321        switch (hash) {
322        case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType
323        case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation
324        case 324572498: /*evidenceSource*/ return this.evidenceSource == null ? new Base[0] : new Base[] {this.evidenceSource}; // Reference
325        case -777873132: /*intendedGroup*/ return this.intendedGroup == null ? new Base[0] : new Base[] {this.intendedGroup}; // Reference
326        case -2144864283: /*directnessMatch*/ return this.directnessMatch == null ? new Base[0] : new Base[] {this.directnessMatch}; // CodeableConcept
327        default: return super.getProperty(hash, name, checkValid);
328        }
329
330      }
331
332      @Override
333      public Base setProperty(int hash, String name, Base value) throws FHIRException {
334        switch (hash) {
335        case -1724546052: // description
336          this.description = castToMarkdown(value); // MarkdownType
337          return value;
338        case 3387378: // note
339          this.getNote().add(castToAnnotation(value)); // Annotation
340          return value;
341        case 324572498: // evidenceSource
342          this.evidenceSource = castToReference(value); // Reference
343          return value;
344        case -777873132: // intendedGroup
345          this.intendedGroup = castToReference(value); // Reference
346          return value;
347        case -2144864283: // directnessMatch
348          this.directnessMatch = castToCodeableConcept(value); // CodeableConcept
349          return value;
350        default: return super.setProperty(hash, name, value);
351        }
352
353      }
354
355      @Override
356      public Base setProperty(String name, Base value) throws FHIRException {
357        if (name.equals("description")) {
358          this.description = castToMarkdown(value); // MarkdownType
359        } else if (name.equals("note")) {
360          this.getNote().add(castToAnnotation(value));
361        } else if (name.equals("evidenceSource")) {
362          this.evidenceSource = castToReference(value); // Reference
363        } else if (name.equals("intendedGroup")) {
364          this.intendedGroup = castToReference(value); // Reference
365        } else if (name.equals("directnessMatch")) {
366          this.directnessMatch = castToCodeableConcept(value); // CodeableConcept
367        } else
368          return super.setProperty(name, value);
369        return value;
370      }
371
372      @Override
373      public Base makeProperty(int hash, String name) throws FHIRException {
374        switch (hash) {
375        case -1724546052:  return getDescriptionElement();
376        case 3387378:  return addNote(); 
377        case 324572498:  return getEvidenceSource();
378        case -777873132:  return getIntendedGroup();
379        case -2144864283:  return getDirectnessMatch();
380        default: return super.makeProperty(hash, name);
381        }
382
383      }
384
385      @Override
386      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
387        switch (hash) {
388        case -1724546052: /*description*/ return new String[] {"markdown"};
389        case 3387378: /*note*/ return new String[] {"Annotation"};
390        case 324572498: /*evidenceSource*/ return new String[] {"Reference"};
391        case -777873132: /*intendedGroup*/ return new String[] {"Reference"};
392        case -2144864283: /*directnessMatch*/ return new String[] {"CodeableConcept"};
393        default: return super.getTypesForProperty(hash, name);
394        }
395
396      }
397
398      @Override
399      public Base addChild(String name) throws FHIRException {
400        if (name.equals("description")) {
401          throw new FHIRException("Cannot call addChild on a primitive type Evidence.description");
402        }
403        else if (name.equals("note")) {
404          return addNote();
405        }
406        else if (name.equals("evidenceSource")) {
407          this.evidenceSource = new Reference();
408          return this.evidenceSource;
409        }
410        else if (name.equals("intendedGroup")) {
411          this.intendedGroup = new Reference();
412          return this.intendedGroup;
413        }
414        else if (name.equals("directnessMatch")) {
415          this.directnessMatch = new CodeableConcept();
416          return this.directnessMatch;
417        }
418        else
419          return super.addChild(name);
420      }
421
422      public EvidenceReferentGroupComponent copy() {
423        EvidenceReferentGroupComponent dst = new EvidenceReferentGroupComponent();
424        copyValues(dst);
425        return dst;
426      }
427
428      public void copyValues(EvidenceReferentGroupComponent dst) {
429        super.copyValues(dst);
430        dst.description = description == null ? null : description.copy();
431        if (note != null) {
432          dst.note = new ArrayList<Annotation>();
433          for (Annotation i : note)
434            dst.note.add(i.copy());
435        };
436        dst.evidenceSource = evidenceSource == null ? null : evidenceSource.copy();
437        dst.intendedGroup = intendedGroup == null ? null : intendedGroup.copy();
438        dst.directnessMatch = directnessMatch == null ? null : directnessMatch.copy();
439      }
440
441      @Override
442      public boolean equalsDeep(Base other_) {
443        if (!super.equalsDeep(other_))
444          return false;
445        if (!(other_ instanceof EvidenceReferentGroupComponent))
446          return false;
447        EvidenceReferentGroupComponent o = (EvidenceReferentGroupComponent) other_;
448        return compareDeep(description, o.description, true) && compareDeep(note, o.note, true) && compareDeep(evidenceSource, o.evidenceSource, true)
449           && compareDeep(intendedGroup, o.intendedGroup, true) && compareDeep(directnessMatch, o.directnessMatch, true)
450          ;
451      }
452
453      @Override
454      public boolean equalsShallow(Base other_) {
455        if (!super.equalsShallow(other_))
456          return false;
457        if (!(other_ instanceof EvidenceReferentGroupComponent))
458          return false;
459        EvidenceReferentGroupComponent o = (EvidenceReferentGroupComponent) other_;
460        return compareValues(description, o.description, true);
461      }
462
463      public boolean isEmpty() {
464        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(description, note, evidenceSource
465          , intendedGroup, directnessMatch);
466      }
467
468  public String fhirType() {
469    return "Evidence.referentGroup";
470
471  }
472
473  }
474
475    @Block()
476    public static class EvidenceVariableDefinitionComponent extends BackboneElement implements IBaseBackboneElement {
477        /**
478         * Description of the variable.
479         */
480        @Child(name = "description", type = {MarkdownType.class}, order=1, min=0, max=1, modifier=false, summary=false)
481        @Description(shortDefinition="Description of the variable", formalDefinition="Description of the variable." )
482        protected MarkdownType description;
483
484        /**
485         * Footnotes and/or explanatory notes.
486         */
487        @Child(name = "note", type = {Annotation.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
488        @Description(shortDefinition="Footnotes and/or explanatory notes", formalDefinition="Footnotes and/or explanatory notes." )
489        protected List<Annotation> note;
490
491        /**
492         * exposure | referenceExposure | measuredVariable | confounder.
493         */
494        @Child(name = "variableRole", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=false)
495        @Description(shortDefinition="exposure | referenceExposure | measuredVariable | confounder", formalDefinition="exposure | referenceExposure | measuredVariable | confounder." )
496        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/variable-role")
497        protected CodeableConcept variableRole;
498
499        /**
500         * Definition of the actual variable related to the statistic(s).
501         */
502        @Child(name = "actualDefinition", type = {EvidenceVariable.class}, order=4, min=0, max=1, modifier=false, summary=true)
503        @Description(shortDefinition="Definition of the actual variable related to the statistic(s)", formalDefinition="Definition of the actual variable related to the statistic(s)." )
504        protected Reference actualDefinition;
505
506        /**
507         * Definition of the intended variable related to the Evidence.
508         */
509        @Child(name = "intendedDefinition", type = {EvidenceVariable.class}, order=5, min=0, max=1, modifier=false, summary=false)
510        @Description(shortDefinition="Definition of the intended variable related to the Evidence", formalDefinition="Definition of the intended variable related to the Evidence." )
511        protected Reference intendedDefinition;
512
513        /**
514         * Indication of quality of match between intended variable to actual variable.
515         */
516        @Child(name = "directnessMatch", type = {CodeableConcept.class}, order=6, min=0, max=1, modifier=false, summary=false)
517        @Description(shortDefinition="low | moderate | high | exact", formalDefinition="Indication of quality of match between intended variable to actual variable." )
518        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/directness")
519        protected CodeableConcept directnessMatch;
520
521        private static final long serialVersionUID = -1887907534L;
522
523    /**
524     * Constructor
525     */
526      public EvidenceVariableDefinitionComponent() {
527        super();
528      }
529
530        /**
531         * @return {@link #description} (Description of the variable.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
532         */
533        public MarkdownType getDescriptionElement() { 
534          if (this.description == null)
535            if (Configuration.errorOnAutoCreate())
536              throw new Error("Attempt to auto-create EvidenceVariableDefinitionComponent.description");
537            else if (Configuration.doAutoCreate())
538              this.description = new MarkdownType(); // bb
539          return this.description;
540        }
541
542        public boolean hasDescriptionElement() { 
543          return this.description != null && !this.description.isEmpty();
544        }
545
546        public boolean hasDescription() { 
547          return this.description != null && !this.description.isEmpty();
548        }
549
550        /**
551         * @param value {@link #description} (Description of the variable.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
552         */
553        public EvidenceVariableDefinitionComponent setDescriptionElement(MarkdownType value) { 
554          this.description = value;
555          return this;
556        }
557
558        /**
559         * @return Description of the variable.
560         */
561        public String getDescription() { 
562          return this.description == null ? null : this.description.getValue();
563        }
564
565        /**
566         * @param value Description of the variable.
567         */
568        public EvidenceVariableDefinitionComponent setDescription(String value) { 
569          if (value == null)
570            this.description = null;
571          else {
572            if (this.description == null)
573              this.description = new MarkdownType();
574            this.description.setValue(value);
575          }
576          return this;
577        }
578
579        /**
580         * @return {@link #note} (Footnotes and/or explanatory notes.)
581         */
582        public List<Annotation> getNote() { 
583          if (this.note == null)
584            this.note = new ArrayList<Annotation>();
585          return this.note;
586        }
587
588        /**
589         * @return Returns a reference to <code>this</code> for easy method chaining
590         */
591        public EvidenceVariableDefinitionComponent setNote(List<Annotation> theNote) { 
592          this.note = theNote;
593          return this;
594        }
595
596        public boolean hasNote() { 
597          if (this.note == null)
598            return false;
599          for (Annotation item : this.note)
600            if (!item.isEmpty())
601              return true;
602          return false;
603        }
604
605        public Annotation addNote() { //3
606          Annotation t = new Annotation();
607          if (this.note == null)
608            this.note = new ArrayList<Annotation>();
609          this.note.add(t);
610          return t;
611        }
612
613        public EvidenceVariableDefinitionComponent addNote(Annotation t) { //3
614          if (t == null)
615            return this;
616          if (this.note == null)
617            this.note = new ArrayList<Annotation>();
618          this.note.add(t);
619          return this;
620        }
621
622        /**
623         * @return The first repetition of repeating field {@link #note}, creating it if it does not already exist
624         */
625        public Annotation getNoteFirstRep() { 
626          if (getNote().isEmpty()) {
627            addNote();
628          }
629          return getNote().get(0);
630        }
631
632        /**
633         * @return {@link #variableRole} (exposure | referenceExposure | measuredVariable | confounder.)
634         */
635        public CodeableConcept getVariableRole() { 
636          if (this.variableRole == null)
637            if (Configuration.errorOnAutoCreate())
638              throw new Error("Attempt to auto-create EvidenceVariableDefinitionComponent.variableRole");
639            else if (Configuration.doAutoCreate())
640              this.variableRole = new CodeableConcept(); // cc
641          return this.variableRole;
642        }
643
644        public boolean hasVariableRole() { 
645          return this.variableRole != null && !this.variableRole.isEmpty();
646        }
647
648        /**
649         * @param value {@link #variableRole} (exposure | referenceExposure | measuredVariable | confounder.)
650         */
651        public EvidenceVariableDefinitionComponent setVariableRole(CodeableConcept value) { 
652          this.variableRole = value;
653          return this;
654        }
655
656        /**
657         * @return {@link #actualDefinition} (Definition of the actual variable related to the statistic(s).)
658         */
659        public Reference getActualDefinition() { 
660          if (this.actualDefinition == null)
661            if (Configuration.errorOnAutoCreate())
662              throw new Error("Attempt to auto-create EvidenceVariableDefinitionComponent.actualDefinition");
663            else if (Configuration.doAutoCreate())
664              this.actualDefinition = new Reference(); // cc
665          return this.actualDefinition;
666        }
667
668        public boolean hasActualDefinition() { 
669          return this.actualDefinition != null && !this.actualDefinition.isEmpty();
670        }
671
672        /**
673         * @param value {@link #actualDefinition} (Definition of the actual variable related to the statistic(s).)
674         */
675        public EvidenceVariableDefinitionComponent setActualDefinition(Reference value) { 
676          this.actualDefinition = value;
677          return this;
678        }
679
680        /**
681         * @return {@link #intendedDefinition} (Definition of the intended variable related to the Evidence.)
682         */
683        public Reference getIntendedDefinition() { 
684          if (this.intendedDefinition == null)
685            if (Configuration.errorOnAutoCreate())
686              throw new Error("Attempt to auto-create EvidenceVariableDefinitionComponent.intendedDefinition");
687            else if (Configuration.doAutoCreate())
688              this.intendedDefinition = new Reference(); // cc
689          return this.intendedDefinition;
690        }
691
692        public boolean hasIntendedDefinition() { 
693          return this.intendedDefinition != null && !this.intendedDefinition.isEmpty();
694        }
695
696        /**
697         * @param value {@link #intendedDefinition} (Definition of the intended variable related to the Evidence.)
698         */
699        public EvidenceVariableDefinitionComponent setIntendedDefinition(Reference value) { 
700          this.intendedDefinition = value;
701          return this;
702        }
703
704        /**
705         * @return {@link #directnessMatch} (Indication of quality of match between intended variable to actual variable.)
706         */
707        public CodeableConcept getDirectnessMatch() { 
708          if (this.directnessMatch == null)
709            if (Configuration.errorOnAutoCreate())
710              throw new Error("Attempt to auto-create EvidenceVariableDefinitionComponent.directnessMatch");
711            else if (Configuration.doAutoCreate())
712              this.directnessMatch = new CodeableConcept(); // cc
713          return this.directnessMatch;
714        }
715
716        public boolean hasDirectnessMatch() { 
717          return this.directnessMatch != null && !this.directnessMatch.isEmpty();
718        }
719
720        /**
721         * @param value {@link #directnessMatch} (Indication of quality of match between intended variable to actual variable.)
722         */
723        public EvidenceVariableDefinitionComponent setDirectnessMatch(CodeableConcept value) { 
724          this.directnessMatch = value;
725          return this;
726        }
727
728        protected void listChildren(List<Property> children) {
729          super.listChildren(children);
730          children.add(new Property("description", "markdown", "Description of the variable.", 0, 1, description));
731          children.add(new Property("note", "Annotation", "Footnotes and/or explanatory notes.", 0, java.lang.Integer.MAX_VALUE, note));
732          children.add(new Property("variableRole", "CodeableConcept", "exposure | referenceExposure | measuredVariable | confounder.", 0, 1, variableRole));
733          children.add(new Property("actualDefinition", "Reference(EvidenceVariable)", "Definition of the actual variable related to the statistic(s).", 0, 1, actualDefinition));
734          children.add(new Property("intendedDefinition", "Reference(EvidenceVariable)", "Definition of the intended variable related to the Evidence.", 0, 1, intendedDefinition));
735          children.add(new Property("directnessMatch", "CodeableConcept", "Indication of quality of match between intended variable to actual variable.", 0, 1, directnessMatch));
736        }
737
738        @Override
739        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
740          switch (_hash) {
741          case -1724546052: /*description*/  return new Property("description", "markdown", "Description of the variable.", 0, 1, description);
742          case 3387378: /*note*/  return new Property("note", "Annotation", "Footnotes and/or explanatory notes.", 0, java.lang.Integer.MAX_VALUE, note);
743          case -372889326: /*variableRole*/  return new Property("variableRole", "CodeableConcept", "exposure | referenceExposure | measuredVariable | confounder.", 0, 1, variableRole);
744          case -2019122815: /*actualDefinition*/  return new Property("actualDefinition", "Reference(EvidenceVariable)", "Definition of the actual variable related to the statistic(s).", 0, 1, actualDefinition);
745          case -1749096482: /*intendedDefinition*/  return new Property("intendedDefinition", "Reference(EvidenceVariable)", "Definition of the intended variable related to the Evidence.", 0, 1, intendedDefinition);
746          case -2144864283: /*directnessMatch*/  return new Property("directnessMatch", "CodeableConcept", "Indication of quality of match between intended variable to actual variable.", 0, 1, directnessMatch);
747          default: return super.getNamedProperty(_hash, _name, _checkValid);
748          }
749
750        }
751
752      @Override
753      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
754        switch (hash) {
755        case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType
756        case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation
757        case -372889326: /*variableRole*/ return this.variableRole == null ? new Base[0] : new Base[] {this.variableRole}; // CodeableConcept
758        case -2019122815: /*actualDefinition*/ return this.actualDefinition == null ? new Base[0] : new Base[] {this.actualDefinition}; // Reference
759        case -1749096482: /*intendedDefinition*/ return this.intendedDefinition == null ? new Base[0] : new Base[] {this.intendedDefinition}; // Reference
760        case -2144864283: /*directnessMatch*/ return this.directnessMatch == null ? new Base[0] : new Base[] {this.directnessMatch}; // CodeableConcept
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 -1724546052: // description
770          this.description = castToMarkdown(value); // MarkdownType
771          return value;
772        case 3387378: // note
773          this.getNote().add(castToAnnotation(value)); // Annotation
774          return value;
775        case -372889326: // variableRole
776          this.variableRole = castToCodeableConcept(value); // CodeableConcept
777          return value;
778        case -2019122815: // actualDefinition
779          this.actualDefinition = castToReference(value); // Reference
780          return value;
781        case -1749096482: // intendedDefinition
782          this.intendedDefinition = castToReference(value); // Reference
783          return value;
784        case -2144864283: // directnessMatch
785          this.directnessMatch = castToCodeableConcept(value); // CodeableConcept
786          return value;
787        default: return super.setProperty(hash, name, value);
788        }
789
790      }
791
792      @Override
793      public Base setProperty(String name, Base value) throws FHIRException {
794        if (name.equals("description")) {
795          this.description = castToMarkdown(value); // MarkdownType
796        } else if (name.equals("note")) {
797          this.getNote().add(castToAnnotation(value));
798        } else if (name.equals("variableRole")) {
799          this.variableRole = castToCodeableConcept(value); // CodeableConcept
800        } else if (name.equals("actualDefinition")) {
801          this.actualDefinition = castToReference(value); // Reference
802        } else if (name.equals("intendedDefinition")) {
803          this.intendedDefinition = castToReference(value); // Reference
804        } else if (name.equals("directnessMatch")) {
805          this.directnessMatch = castToCodeableConcept(value); // CodeableConcept
806        } else
807          return super.setProperty(name, value);
808        return value;
809      }
810
811      @Override
812      public Base makeProperty(int hash, String name) throws FHIRException {
813        switch (hash) {
814        case -1724546052:  return getDescriptionElement();
815        case 3387378:  return addNote(); 
816        case -372889326:  return getVariableRole();
817        case -2019122815:  return getActualDefinition();
818        case -1749096482:  return getIntendedDefinition();
819        case -2144864283:  return getDirectnessMatch();
820        default: return super.makeProperty(hash, name);
821        }
822
823      }
824
825      @Override
826      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
827        switch (hash) {
828        case -1724546052: /*description*/ return new String[] {"markdown"};
829        case 3387378: /*note*/ return new String[] {"Annotation"};
830        case -372889326: /*variableRole*/ return new String[] {"CodeableConcept"};
831        case -2019122815: /*actualDefinition*/ return new String[] {"Reference"};
832        case -1749096482: /*intendedDefinition*/ return new String[] {"Reference"};
833        case -2144864283: /*directnessMatch*/ return new String[] {"CodeableConcept"};
834        default: return super.getTypesForProperty(hash, name);
835        }
836
837      }
838
839      @Override
840      public Base addChild(String name) throws FHIRException {
841        if (name.equals("description")) {
842          throw new FHIRException("Cannot call addChild on a primitive type Evidence.description");
843        }
844        else if (name.equals("note")) {
845          return addNote();
846        }
847        else if (name.equals("variableRole")) {
848          this.variableRole = new CodeableConcept();
849          return this.variableRole;
850        }
851        else if (name.equals("actualDefinition")) {
852          this.actualDefinition = new Reference();
853          return this.actualDefinition;
854        }
855        else if (name.equals("intendedDefinition")) {
856          this.intendedDefinition = new Reference();
857          return this.intendedDefinition;
858        }
859        else if (name.equals("directnessMatch")) {
860          this.directnessMatch = new CodeableConcept();
861          return this.directnessMatch;
862        }
863        else
864          return super.addChild(name);
865      }
866
867      public EvidenceVariableDefinitionComponent copy() {
868        EvidenceVariableDefinitionComponent dst = new EvidenceVariableDefinitionComponent();
869        copyValues(dst);
870        return dst;
871      }
872
873      public void copyValues(EvidenceVariableDefinitionComponent dst) {
874        super.copyValues(dst);
875        dst.description = description == null ? null : description.copy();
876        if (note != null) {
877          dst.note = new ArrayList<Annotation>();
878          for (Annotation i : note)
879            dst.note.add(i.copy());
880        };
881        dst.variableRole = variableRole == null ? null : variableRole.copy();
882        dst.actualDefinition = actualDefinition == null ? null : actualDefinition.copy();
883        dst.intendedDefinition = intendedDefinition == null ? null : intendedDefinition.copy();
884        dst.directnessMatch = directnessMatch == null ? null : directnessMatch.copy();
885      }
886
887      @Override
888      public boolean equalsDeep(Base other_) {
889        if (!super.equalsDeep(other_))
890          return false;
891        if (!(other_ instanceof EvidenceVariableDefinitionComponent))
892          return false;
893        EvidenceVariableDefinitionComponent o = (EvidenceVariableDefinitionComponent) other_;
894        return compareDeep(description, o.description, true) && compareDeep(note, o.note, true) && compareDeep(variableRole, o.variableRole, true)
895           && compareDeep(actualDefinition, o.actualDefinition, true) && compareDeep(intendedDefinition, o.intendedDefinition, true)
896           && compareDeep(directnessMatch, o.directnessMatch, true);
897      }
898
899      @Override
900      public boolean equalsShallow(Base other_) {
901        if (!super.equalsShallow(other_))
902          return false;
903        if (!(other_ instanceof EvidenceVariableDefinitionComponent))
904          return false;
905        EvidenceVariableDefinitionComponent o = (EvidenceVariableDefinitionComponent) other_;
906        return compareValues(description, o.description, true);
907      }
908
909      public boolean isEmpty() {
910        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(description, note, variableRole
911          , actualDefinition, intendedDefinition, directnessMatch);
912      }
913
914  public String fhirType() {
915    return "Evidence.variableDefinition";
916
917  }
918
919  }
920
921    @Block()
922    public static class EvidenceCertaintyComponent extends BackboneElement implements IBaseBackboneElement {
923        /**
924         * Textual description of certainty.
925         */
926        @Child(name = "description", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false)
927        @Description(shortDefinition="Textual description of certainty", formalDefinition="Textual description of certainty." )
928        protected StringType description;
929
930        /**
931         * Footnotes and/or explanatory notes.
932         */
933        @Child(name = "note", type = {Annotation.class}, order=2, min=0, max=1, modifier=false, summary=false)
934        @Description(shortDefinition="Footnotes and/or explanatory notes", formalDefinition="Footnotes and/or explanatory notes." )
935        protected Annotation note;
936
937        /**
938         * Rating of certainty.
939         */
940        @Child(name = "rating", type = {CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
941        @Description(shortDefinition="Rating of certainty", formalDefinition="Rating of certainty." )
942        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/certainty-rating")
943        protected List<CodeableConcept> rating;
944
945        /**
946         * Subcomponent of certainty.
947         */
948        @Child(name = "certaintySubcomponent", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
949        @Description(shortDefinition="Subcomponent of certainty", formalDefinition="Subcomponent of certainty." )
950        protected List<EvidenceCertaintyCertaintySubcomponentComponent> certaintySubcomponent;
951
952        private static final long serialVersionUID = -1718011695L;
953
954    /**
955     * Constructor
956     */
957      public EvidenceCertaintyComponent() {
958        super();
959      }
960
961        /**
962         * @return {@link #description} (Textual description of certainty.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
963         */
964        public StringType getDescriptionElement() { 
965          if (this.description == null)
966            if (Configuration.errorOnAutoCreate())
967              throw new Error("Attempt to auto-create EvidenceCertaintyComponent.description");
968            else if (Configuration.doAutoCreate())
969              this.description = new StringType(); // bb
970          return this.description;
971        }
972
973        public boolean hasDescriptionElement() { 
974          return this.description != null && !this.description.isEmpty();
975        }
976
977        public boolean hasDescription() { 
978          return this.description != null && !this.description.isEmpty();
979        }
980
981        /**
982         * @param value {@link #description} (Textual description of certainty.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
983         */
984        public EvidenceCertaintyComponent setDescriptionElement(StringType value) { 
985          this.description = value;
986          return this;
987        }
988
989        /**
990         * @return Textual description of certainty.
991         */
992        public String getDescription() { 
993          return this.description == null ? null : this.description.getValue();
994        }
995
996        /**
997         * @param value Textual description of certainty.
998         */
999        public EvidenceCertaintyComponent setDescription(String value) { 
1000          if (Utilities.noString(value))
1001            this.description = null;
1002          else {
1003            if (this.description == null)
1004              this.description = new StringType();
1005            this.description.setValue(value);
1006          }
1007          return this;
1008        }
1009
1010        /**
1011         * @return {@link #note} (Footnotes and/or explanatory notes.)
1012         */
1013        public Annotation getNote() { 
1014          if (this.note == null)
1015            if (Configuration.errorOnAutoCreate())
1016              throw new Error("Attempt to auto-create EvidenceCertaintyComponent.note");
1017            else if (Configuration.doAutoCreate())
1018              this.note = new Annotation(); // cc
1019          return this.note;
1020        }
1021
1022        public boolean hasNote() { 
1023          return this.note != null && !this.note.isEmpty();
1024        }
1025
1026        /**
1027         * @param value {@link #note} (Footnotes and/or explanatory notes.)
1028         */
1029        public EvidenceCertaintyComponent setNote(Annotation value) { 
1030          this.note = value;
1031          return this;
1032        }
1033
1034        /**
1035         * @return {@link #rating} (Rating of certainty.)
1036         */
1037        public List<CodeableConcept> getRating() { 
1038          if (this.rating == null)
1039            this.rating = new ArrayList<CodeableConcept>();
1040          return this.rating;
1041        }
1042
1043        /**
1044         * @return Returns a reference to <code>this</code> for easy method chaining
1045         */
1046        public EvidenceCertaintyComponent setRating(List<CodeableConcept> theRating) { 
1047          this.rating = theRating;
1048          return this;
1049        }
1050
1051        public boolean hasRating() { 
1052          if (this.rating == null)
1053            return false;
1054          for (CodeableConcept item : this.rating)
1055            if (!item.isEmpty())
1056              return true;
1057          return false;
1058        }
1059
1060        public CodeableConcept addRating() { //3
1061          CodeableConcept t = new CodeableConcept();
1062          if (this.rating == null)
1063            this.rating = new ArrayList<CodeableConcept>();
1064          this.rating.add(t);
1065          return t;
1066        }
1067
1068        public EvidenceCertaintyComponent addRating(CodeableConcept t) { //3
1069          if (t == null)
1070            return this;
1071          if (this.rating == null)
1072            this.rating = new ArrayList<CodeableConcept>();
1073          this.rating.add(t);
1074          return this;
1075        }
1076
1077        /**
1078         * @return The first repetition of repeating field {@link #rating}, creating it if it does not already exist
1079         */
1080        public CodeableConcept getRatingFirstRep() { 
1081          if (getRating().isEmpty()) {
1082            addRating();
1083          }
1084          return getRating().get(0);
1085        }
1086
1087        /**
1088         * @return {@link #certaintySubcomponent} (Subcomponent of certainty.)
1089         */
1090        public List<EvidenceCertaintyCertaintySubcomponentComponent> getCertaintySubcomponent() { 
1091          if (this.certaintySubcomponent == null)
1092            this.certaintySubcomponent = new ArrayList<EvidenceCertaintyCertaintySubcomponentComponent>();
1093          return this.certaintySubcomponent;
1094        }
1095
1096        /**
1097         * @return Returns a reference to <code>this</code> for easy method chaining
1098         */
1099        public EvidenceCertaintyComponent setCertaintySubcomponent(List<EvidenceCertaintyCertaintySubcomponentComponent> theCertaintySubcomponent) { 
1100          this.certaintySubcomponent = theCertaintySubcomponent;
1101          return this;
1102        }
1103
1104        public boolean hasCertaintySubcomponent() { 
1105          if (this.certaintySubcomponent == null)
1106            return false;
1107          for (EvidenceCertaintyCertaintySubcomponentComponent item : this.certaintySubcomponent)
1108            if (!item.isEmpty())
1109              return true;
1110          return false;
1111        }
1112
1113        public EvidenceCertaintyCertaintySubcomponentComponent addCertaintySubcomponent() { //3
1114          EvidenceCertaintyCertaintySubcomponentComponent t = new EvidenceCertaintyCertaintySubcomponentComponent();
1115          if (this.certaintySubcomponent == null)
1116            this.certaintySubcomponent = new ArrayList<EvidenceCertaintyCertaintySubcomponentComponent>();
1117          this.certaintySubcomponent.add(t);
1118          return t;
1119        }
1120
1121        public EvidenceCertaintyComponent addCertaintySubcomponent(EvidenceCertaintyCertaintySubcomponentComponent t) { //3
1122          if (t == null)
1123            return this;
1124          if (this.certaintySubcomponent == null)
1125            this.certaintySubcomponent = new ArrayList<EvidenceCertaintyCertaintySubcomponentComponent>();
1126          this.certaintySubcomponent.add(t);
1127          return this;
1128        }
1129
1130        /**
1131         * @return The first repetition of repeating field {@link #certaintySubcomponent}, creating it if it does not already exist
1132         */
1133        public EvidenceCertaintyCertaintySubcomponentComponent getCertaintySubcomponentFirstRep() { 
1134          if (getCertaintySubcomponent().isEmpty()) {
1135            addCertaintySubcomponent();
1136          }
1137          return getCertaintySubcomponent().get(0);
1138        }
1139
1140        protected void listChildren(List<Property> children) {
1141          super.listChildren(children);
1142          children.add(new Property("description", "string", "Textual description of certainty.", 0, 1, description));
1143          children.add(new Property("note", "Annotation", "Footnotes and/or explanatory notes.", 0, 1, note));
1144          children.add(new Property("rating", "CodeableConcept", "Rating of certainty.", 0, java.lang.Integer.MAX_VALUE, rating));
1145          children.add(new Property("certaintySubcomponent", "", "Subcomponent of certainty.", 0, java.lang.Integer.MAX_VALUE, certaintySubcomponent));
1146        }
1147
1148        @Override
1149        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
1150          switch (_hash) {
1151          case -1724546052: /*description*/  return new Property("description", "string", "Textual description of certainty.", 0, 1, description);
1152          case 3387378: /*note*/  return new Property("note", "Annotation", "Footnotes and/or explanatory notes.", 0, 1, note);
1153          case -938102371: /*rating*/  return new Property("rating", "CodeableConcept", "Rating of certainty.", 0, java.lang.Integer.MAX_VALUE, rating);
1154          case 1806398212: /*certaintySubcomponent*/  return new Property("certaintySubcomponent", "", "Subcomponent of certainty.", 0, java.lang.Integer.MAX_VALUE, certaintySubcomponent);
1155          default: return super.getNamedProperty(_hash, _name, _checkValid);
1156          }
1157
1158        }
1159
1160      @Override
1161      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
1162        switch (hash) {
1163        case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType
1164        case 3387378: /*note*/ return this.note == null ? new Base[0] : new Base[] {this.note}; // Annotation
1165        case -938102371: /*rating*/ return this.rating == null ? new Base[0] : this.rating.toArray(new Base[this.rating.size()]); // CodeableConcept
1166        case 1806398212: /*certaintySubcomponent*/ return this.certaintySubcomponent == null ? new Base[0] : this.certaintySubcomponent.toArray(new Base[this.certaintySubcomponent.size()]); // EvidenceCertaintyCertaintySubcomponentComponent
1167        default: return super.getProperty(hash, name, checkValid);
1168        }
1169
1170      }
1171
1172      @Override
1173      public Base setProperty(int hash, String name, Base value) throws FHIRException {
1174        switch (hash) {
1175        case -1724546052: // description
1176          this.description = castToString(value); // StringType
1177          return value;
1178        case 3387378: // note
1179          this.note = castToAnnotation(value); // Annotation
1180          return value;
1181        case -938102371: // rating
1182          this.getRating().add(castToCodeableConcept(value)); // CodeableConcept
1183          return value;
1184        case 1806398212: // certaintySubcomponent
1185          this.getCertaintySubcomponent().add((EvidenceCertaintyCertaintySubcomponentComponent) value); // EvidenceCertaintyCertaintySubcomponentComponent
1186          return value;
1187        default: return super.setProperty(hash, name, value);
1188        }
1189
1190      }
1191
1192      @Override
1193      public Base setProperty(String name, Base value) throws FHIRException {
1194        if (name.equals("description")) {
1195          this.description = castToString(value); // StringType
1196        } else if (name.equals("note")) {
1197          this.note = castToAnnotation(value); // Annotation
1198        } else if (name.equals("rating")) {
1199          this.getRating().add(castToCodeableConcept(value));
1200        } else if (name.equals("certaintySubcomponent")) {
1201          this.getCertaintySubcomponent().add((EvidenceCertaintyCertaintySubcomponentComponent) value);
1202        } else
1203          return super.setProperty(name, value);
1204        return value;
1205      }
1206
1207      @Override
1208      public Base makeProperty(int hash, String name) throws FHIRException {
1209        switch (hash) {
1210        case -1724546052:  return getDescriptionElement();
1211        case 3387378:  return getNote();
1212        case -938102371:  return addRating(); 
1213        case 1806398212:  return addCertaintySubcomponent(); 
1214        default: return super.makeProperty(hash, name);
1215        }
1216
1217      }
1218
1219      @Override
1220      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
1221        switch (hash) {
1222        case -1724546052: /*description*/ return new String[] {"string"};
1223        case 3387378: /*note*/ return new String[] {"Annotation"};
1224        case -938102371: /*rating*/ return new String[] {"CodeableConcept"};
1225        case 1806398212: /*certaintySubcomponent*/ return new String[] {};
1226        default: return super.getTypesForProperty(hash, name);
1227        }
1228
1229      }
1230
1231      @Override
1232      public Base addChild(String name) throws FHIRException {
1233        if (name.equals("description")) {
1234          throw new FHIRException("Cannot call addChild on a primitive type Evidence.description");
1235        }
1236        else if (name.equals("note")) {
1237          this.note = new Annotation();
1238          return this.note;
1239        }
1240        else if (name.equals("rating")) {
1241          return addRating();
1242        }
1243        else if (name.equals("certaintySubcomponent")) {
1244          return addCertaintySubcomponent();
1245        }
1246        else
1247          return super.addChild(name);
1248      }
1249
1250      public EvidenceCertaintyComponent copy() {
1251        EvidenceCertaintyComponent dst = new EvidenceCertaintyComponent();
1252        copyValues(dst);
1253        return dst;
1254      }
1255
1256      public void copyValues(EvidenceCertaintyComponent dst) {
1257        super.copyValues(dst);
1258        dst.description = description == null ? null : description.copy();
1259        dst.note = note == null ? null : note.copy();
1260        if (rating != null) {
1261          dst.rating = new ArrayList<CodeableConcept>();
1262          for (CodeableConcept i : rating)
1263            dst.rating.add(i.copy());
1264        };
1265        if (certaintySubcomponent != null) {
1266          dst.certaintySubcomponent = new ArrayList<EvidenceCertaintyCertaintySubcomponentComponent>();
1267          for (EvidenceCertaintyCertaintySubcomponentComponent i : certaintySubcomponent)
1268            dst.certaintySubcomponent.add(i.copy());
1269        };
1270      }
1271
1272      @Override
1273      public boolean equalsDeep(Base other_) {
1274        if (!super.equalsDeep(other_))
1275          return false;
1276        if (!(other_ instanceof EvidenceCertaintyComponent))
1277          return false;
1278        EvidenceCertaintyComponent o = (EvidenceCertaintyComponent) other_;
1279        return compareDeep(description, o.description, true) && compareDeep(note, o.note, true) && compareDeep(rating, o.rating, true)
1280           && compareDeep(certaintySubcomponent, o.certaintySubcomponent, true);
1281      }
1282
1283      @Override
1284      public boolean equalsShallow(Base other_) {
1285        if (!super.equalsShallow(other_))
1286          return false;
1287        if (!(other_ instanceof EvidenceCertaintyComponent))
1288          return false;
1289        EvidenceCertaintyComponent o = (EvidenceCertaintyComponent) other_;
1290        return compareValues(description, o.description, true);
1291      }
1292
1293      public boolean isEmpty() {
1294        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(description, note, rating
1295          , certaintySubcomponent);
1296      }
1297
1298  public String fhirType() {
1299    return "Evidence.certainty";
1300
1301  }
1302
1303  }
1304
1305    @Block()
1306    public static class EvidenceCertaintyCertaintySubcomponentComponent extends BackboneElement implements IBaseBackboneElement {
1307        /**
1308         * Textual description of certainty subcomponent.
1309         */
1310        @Child(name = "description", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false)
1311        @Description(shortDefinition="Textual description of certainty subcomponent", formalDefinition="Textual description of certainty subcomponent." )
1312        protected StringType description;
1313
1314        /**
1315         * Textual note of certainty subcomponent.
1316         */
1317        @Child(name = "note", type = {Annotation.class}, order=2, min=0, max=1, modifier=false, summary=false)
1318        @Description(shortDefinition="Textual note of certainty subcomponent", formalDefinition="Textual note of certainty subcomponent." )
1319        protected Annotation note;
1320
1321        /**
1322         * Footnotes and/or explanatory notes.
1323         */
1324        @Child(name = "type", type = {CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1325        @Description(shortDefinition="Footnotes and/or explanatory notes", formalDefinition="Footnotes and/or explanatory notes." )
1326        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/certainty-subcomponent-type")
1327        protected List<CodeableConcept> type;
1328
1329        /**
1330         * Rating of certainty subcomponent.
1331         */
1332        @Child(name = "rating", type = {CodeableConcept.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1333        @Description(shortDefinition="Rating of certainty subcomponent", formalDefinition="Rating of certainty subcomponent." )
1334        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/certainty-subcomponent-rating")
1335        protected List<CodeableConcept> rating;
1336
1337        private static final long serialVersionUID = 2048436483L;
1338
1339    /**
1340     * Constructor
1341     */
1342      public EvidenceCertaintyCertaintySubcomponentComponent() {
1343        super();
1344      }
1345
1346        /**
1347         * @return {@link #description} (Textual description of certainty subcomponent.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
1348         */
1349        public StringType getDescriptionElement() { 
1350          if (this.description == null)
1351            if (Configuration.errorOnAutoCreate())
1352              throw new Error("Attempt to auto-create EvidenceCertaintyCertaintySubcomponentComponent.description");
1353            else if (Configuration.doAutoCreate())
1354              this.description = new StringType(); // bb
1355          return this.description;
1356        }
1357
1358        public boolean hasDescriptionElement() { 
1359          return this.description != null && !this.description.isEmpty();
1360        }
1361
1362        public boolean hasDescription() { 
1363          return this.description != null && !this.description.isEmpty();
1364        }
1365
1366        /**
1367         * @param value {@link #description} (Textual description of certainty subcomponent.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
1368         */
1369        public EvidenceCertaintyCertaintySubcomponentComponent setDescriptionElement(StringType value) { 
1370          this.description = value;
1371          return this;
1372        }
1373
1374        /**
1375         * @return Textual description of certainty subcomponent.
1376         */
1377        public String getDescription() { 
1378          return this.description == null ? null : this.description.getValue();
1379        }
1380
1381        /**
1382         * @param value Textual description of certainty subcomponent.
1383         */
1384        public EvidenceCertaintyCertaintySubcomponentComponent setDescription(String value) { 
1385          if (Utilities.noString(value))
1386            this.description = null;
1387          else {
1388            if (this.description == null)
1389              this.description = new StringType();
1390            this.description.setValue(value);
1391          }
1392          return this;
1393        }
1394
1395        /**
1396         * @return {@link #note} (Textual note of certainty subcomponent.)
1397         */
1398        public Annotation getNote() { 
1399          if (this.note == null)
1400            if (Configuration.errorOnAutoCreate())
1401              throw new Error("Attempt to auto-create EvidenceCertaintyCertaintySubcomponentComponent.note");
1402            else if (Configuration.doAutoCreate())
1403              this.note = new Annotation(); // cc
1404          return this.note;
1405        }
1406
1407        public boolean hasNote() { 
1408          return this.note != null && !this.note.isEmpty();
1409        }
1410
1411        /**
1412         * @param value {@link #note} (Textual note of certainty subcomponent.)
1413         */
1414        public EvidenceCertaintyCertaintySubcomponentComponent setNote(Annotation value) { 
1415          this.note = value;
1416          return this;
1417        }
1418
1419        /**
1420         * @return {@link #type} (Footnotes and/or explanatory notes.)
1421         */
1422        public List<CodeableConcept> getType() { 
1423          if (this.type == null)
1424            this.type = new ArrayList<CodeableConcept>();
1425          return this.type;
1426        }
1427
1428        /**
1429         * @return Returns a reference to <code>this</code> for easy method chaining
1430         */
1431        public EvidenceCertaintyCertaintySubcomponentComponent setType(List<CodeableConcept> theType) { 
1432          this.type = theType;
1433          return this;
1434        }
1435
1436        public boolean hasType() { 
1437          if (this.type == null)
1438            return false;
1439          for (CodeableConcept item : this.type)
1440            if (!item.isEmpty())
1441              return true;
1442          return false;
1443        }
1444
1445        public CodeableConcept addType() { //3
1446          CodeableConcept t = new CodeableConcept();
1447          if (this.type == null)
1448            this.type = new ArrayList<CodeableConcept>();
1449          this.type.add(t);
1450          return t;
1451        }
1452
1453        public EvidenceCertaintyCertaintySubcomponentComponent addType(CodeableConcept t) { //3
1454          if (t == null)
1455            return this;
1456          if (this.type == null)
1457            this.type = new ArrayList<CodeableConcept>();
1458          this.type.add(t);
1459          return this;
1460        }
1461
1462        /**
1463         * @return The first repetition of repeating field {@link #type}, creating it if it does not already exist
1464         */
1465        public CodeableConcept getTypeFirstRep() { 
1466          if (getType().isEmpty()) {
1467            addType();
1468          }
1469          return getType().get(0);
1470        }
1471
1472        /**
1473         * @return {@link #rating} (Rating of certainty subcomponent.)
1474         */
1475        public List<CodeableConcept> getRating() { 
1476          if (this.rating == null)
1477            this.rating = new ArrayList<CodeableConcept>();
1478          return this.rating;
1479        }
1480
1481        /**
1482         * @return Returns a reference to <code>this</code> for easy method chaining
1483         */
1484        public EvidenceCertaintyCertaintySubcomponentComponent setRating(List<CodeableConcept> theRating) { 
1485          this.rating = theRating;
1486          return this;
1487        }
1488
1489        public boolean hasRating() { 
1490          if (this.rating == null)
1491            return false;
1492          for (CodeableConcept item : this.rating)
1493            if (!item.isEmpty())
1494              return true;
1495          return false;
1496        }
1497
1498        public CodeableConcept addRating() { //3
1499          CodeableConcept t = new CodeableConcept();
1500          if (this.rating == null)
1501            this.rating = new ArrayList<CodeableConcept>();
1502          this.rating.add(t);
1503          return t;
1504        }
1505
1506        public EvidenceCertaintyCertaintySubcomponentComponent addRating(CodeableConcept t) { //3
1507          if (t == null)
1508            return this;
1509          if (this.rating == null)
1510            this.rating = new ArrayList<CodeableConcept>();
1511          this.rating.add(t);
1512          return this;
1513        }
1514
1515        /**
1516         * @return The first repetition of repeating field {@link #rating}, creating it if it does not already exist
1517         */
1518        public CodeableConcept getRatingFirstRep() { 
1519          if (getRating().isEmpty()) {
1520            addRating();
1521          }
1522          return getRating().get(0);
1523        }
1524
1525        protected void listChildren(List<Property> children) {
1526          super.listChildren(children);
1527          children.add(new Property("description", "string", "Textual description of certainty subcomponent.", 0, 1, description));
1528          children.add(new Property("note", "Annotation", "Textual note of certainty subcomponent.", 0, 1, note));
1529          children.add(new Property("type", "CodeableConcept", "Footnotes and/or explanatory notes.", 0, java.lang.Integer.MAX_VALUE, type));
1530          children.add(new Property("rating", "CodeableConcept", "Rating of certainty subcomponent.", 0, java.lang.Integer.MAX_VALUE, rating));
1531        }
1532
1533        @Override
1534        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
1535          switch (_hash) {
1536          case -1724546052: /*description*/  return new Property("description", "string", "Textual description of certainty subcomponent.", 0, 1, description);
1537          case 3387378: /*note*/  return new Property("note", "Annotation", "Textual note of certainty subcomponent.", 0, 1, note);
1538          case 3575610: /*type*/  return new Property("type", "CodeableConcept", "Footnotes and/or explanatory notes.", 0, java.lang.Integer.MAX_VALUE, type);
1539          case -938102371: /*rating*/  return new Property("rating", "CodeableConcept", "Rating of certainty subcomponent.", 0, java.lang.Integer.MAX_VALUE, rating);
1540          default: return super.getNamedProperty(_hash, _name, _checkValid);
1541          }
1542
1543        }
1544
1545      @Override
1546      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
1547        switch (hash) {
1548        case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType
1549        case 3387378: /*note*/ return this.note == null ? new Base[0] : new Base[] {this.note}; // Annotation
1550        case 3575610: /*type*/ return this.type == null ? new Base[0] : this.type.toArray(new Base[this.type.size()]); // CodeableConcept
1551        case -938102371: /*rating*/ return this.rating == null ? new Base[0] : this.rating.toArray(new Base[this.rating.size()]); // CodeableConcept
1552        default: return super.getProperty(hash, name, checkValid);
1553        }
1554
1555      }
1556
1557      @Override
1558      public Base setProperty(int hash, String name, Base value) throws FHIRException {
1559        switch (hash) {
1560        case -1724546052: // description
1561          this.description = castToString(value); // StringType
1562          return value;
1563        case 3387378: // note
1564          this.note = castToAnnotation(value); // Annotation
1565          return value;
1566        case 3575610: // type
1567          this.getType().add(castToCodeableConcept(value)); // CodeableConcept
1568          return value;
1569        case -938102371: // rating
1570          this.getRating().add(castToCodeableConcept(value)); // CodeableConcept
1571          return value;
1572        default: return super.setProperty(hash, name, value);
1573        }
1574
1575      }
1576
1577      @Override
1578      public Base setProperty(String name, Base value) throws FHIRException {
1579        if (name.equals("description")) {
1580          this.description = castToString(value); // StringType
1581        } else if (name.equals("note")) {
1582          this.note = castToAnnotation(value); // Annotation
1583        } else if (name.equals("type")) {
1584          this.getType().add(castToCodeableConcept(value));
1585        } else if (name.equals("rating")) {
1586          this.getRating().add(castToCodeableConcept(value));
1587        } else
1588          return super.setProperty(name, value);
1589        return value;
1590      }
1591
1592      @Override
1593      public Base makeProperty(int hash, String name) throws FHIRException {
1594        switch (hash) {
1595        case -1724546052:  return getDescriptionElement();
1596        case 3387378:  return getNote();
1597        case 3575610:  return addType(); 
1598        case -938102371:  return addRating(); 
1599        default: return super.makeProperty(hash, name);
1600        }
1601
1602      }
1603
1604      @Override
1605      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
1606        switch (hash) {
1607        case -1724546052: /*description*/ return new String[] {"string"};
1608        case 3387378: /*note*/ return new String[] {"Annotation"};
1609        case 3575610: /*type*/ return new String[] {"CodeableConcept"};
1610        case -938102371: /*rating*/ return new String[] {"CodeableConcept"};
1611        default: return super.getTypesForProperty(hash, name);
1612        }
1613
1614      }
1615
1616      @Override
1617      public Base addChild(String name) throws FHIRException {
1618        if (name.equals("description")) {
1619          throw new FHIRException("Cannot call addChild on a primitive type Evidence.description");
1620        }
1621        else if (name.equals("note")) {
1622          this.note = new Annotation();
1623          return this.note;
1624        }
1625        else if (name.equals("type")) {
1626          return addType();
1627        }
1628        else if (name.equals("rating")) {
1629          return addRating();
1630        }
1631        else
1632          return super.addChild(name);
1633      }
1634
1635      public EvidenceCertaintyCertaintySubcomponentComponent copy() {
1636        EvidenceCertaintyCertaintySubcomponentComponent dst = new EvidenceCertaintyCertaintySubcomponentComponent();
1637        copyValues(dst);
1638        return dst;
1639      }
1640
1641      public void copyValues(EvidenceCertaintyCertaintySubcomponentComponent dst) {
1642        super.copyValues(dst);
1643        dst.description = description == null ? null : description.copy();
1644        dst.note = note == null ? null : note.copy();
1645        if (type != null) {
1646          dst.type = new ArrayList<CodeableConcept>();
1647          for (CodeableConcept i : type)
1648            dst.type.add(i.copy());
1649        };
1650        if (rating != null) {
1651          dst.rating = new ArrayList<CodeableConcept>();
1652          for (CodeableConcept i : rating)
1653            dst.rating.add(i.copy());
1654        };
1655      }
1656
1657      @Override
1658      public boolean equalsDeep(Base other_) {
1659        if (!super.equalsDeep(other_))
1660          return false;
1661        if (!(other_ instanceof EvidenceCertaintyCertaintySubcomponentComponent))
1662          return false;
1663        EvidenceCertaintyCertaintySubcomponentComponent o = (EvidenceCertaintyCertaintySubcomponentComponent) other_;
1664        return compareDeep(description, o.description, true) && compareDeep(note, o.note, true) && compareDeep(type, o.type, true)
1665           && compareDeep(rating, o.rating, true);
1666      }
1667
1668      @Override
1669      public boolean equalsShallow(Base other_) {
1670        if (!super.equalsShallow(other_))
1671          return false;
1672        if (!(other_ instanceof EvidenceCertaintyCertaintySubcomponentComponent))
1673          return false;
1674        EvidenceCertaintyCertaintySubcomponentComponent o = (EvidenceCertaintyCertaintySubcomponentComponent) other_;
1675        return compareValues(description, o.description, true);
1676      }
1677
1678      public boolean isEmpty() {
1679        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(description, note, type
1680          , rating);
1681      }
1682
1683  public String fhirType() {
1684    return "Evidence.certainty.certaintySubcomponent";
1685
1686  }
1687
1688  }
1689
1690    /**
1691     * A formal identifier that is used to identify this summary when it is represented in other formats, or referenced in a specification, model, design or an instance.
1692     */
1693    @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
1694    @Description(shortDefinition="Additional identifier for the summary", formalDefinition="A formal identifier that is used to identify this summary when it is represented in other formats, or referenced in a specification, model, design or an instance." )
1695    protected List<Identifier> identifier;
1696
1697    /**
1698     * The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.
1699     */
1700    @Child(name = "approvalDate", type = {DateType.class}, order=1, min=0, max=1, modifier=false, summary=false)
1701    @Description(shortDefinition="When the summary was approved by publisher", formalDefinition="The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage." )
1702    protected DateType approvalDate;
1703
1704    /**
1705     * The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.
1706     */
1707    @Child(name = "lastReviewDate", type = {DateType.class}, order=2, min=0, max=1, modifier=false, summary=false)
1708    @Description(shortDefinition="When the summary was last reviewed", formalDefinition="The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date." )
1709    protected DateType lastReviewDate;
1710
1711    /**
1712     * Contact detail and role for contributor to summary.
1713     */
1714    @Child(name = "contributor", type = {Contributor.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1715    @Description(shortDefinition="Contact detail and role for contributor to summary", formalDefinition="Contact detail and role for contributor to summary." )
1716    protected List<Contributor> contributor;
1717
1718    /**
1719     * Link or citation to artifact associated with the summary.
1720     */
1721    @Child(name = "relatedArtifact", type = {RelatedArtifact.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1722    @Description(shortDefinition="Link or citation to artifact associated with the summary", formalDefinition="Link or citation to artifact associated with the summary." )
1723    protected List<RelatedArtifact> relatedArtifact;
1724
1725    /**
1726     * Declarative description of the Evidence.
1727     */
1728    @Child(name = "assertion", type = {MarkdownType.class}, order=5, min=0, max=1, modifier=false, summary=false)
1729    @Description(shortDefinition="Declarative description of the Evidence", formalDefinition="Declarative description of the Evidence." )
1730    protected MarkdownType assertion;
1731
1732    /**
1733     * Footnotes and/or explanatory notes.
1734     */
1735    @Child(name = "note", type = {Annotation.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1736    @Description(shortDefinition="Footnotes and/or explanatory notes", formalDefinition="Footnotes and/or explanatory notes." )
1737    protected List<Annotation> note;
1738
1739    /**
1740     * Group being referenced.
1741     */
1742    @Child(name = "referentGroup", type = {}, order=7, min=1, max=1, modifier=false, summary=true)
1743    @Description(shortDefinition="Group being referenced", formalDefinition="Group being referenced." )
1744    protected EvidenceReferentGroupComponent referentGroup;
1745
1746    /**
1747     * Evidence variable.
1748     */
1749    @Child(name = "variableDefinition", type = {}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1750    @Description(shortDefinition="Evidence variable", formalDefinition="Evidence variable." )
1751    protected List<EvidenceVariableDefinitionComponent> variableDefinition;
1752
1753    /**
1754     * The particular type of synthesis if this is a synthesis summary.
1755     */
1756    @Child(name = "synthesisType", type = {CodeableConcept.class}, order=9, min=0, max=1, modifier=false, summary=false)
1757    @Description(shortDefinition="The particular type of synthesis if this is a synthesis summary", formalDefinition="The particular type of synthesis if this is a synthesis summary." )
1758    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/synthesis-type")
1759    protected CodeableConcept synthesisType;
1760
1761    /**
1762     * The type of study that produced this summary.
1763     */
1764    @Child(name = "studyType", type = {CodeableConcept.class}, order=10, min=0, max=1, modifier=false, summary=false)
1765    @Description(shortDefinition="The type of study that produced this summary", formalDefinition="The type of study that produced this summary." )
1766    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/study-type")
1767    protected CodeableConcept studyType;
1768
1769    /**
1770     * The statistic value(s).
1771     */
1772    @Child(name = "statistic", type = {Statistic.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1773    @Description(shortDefinition="Values and parameters for a single statistic", formalDefinition="The statistic value(s)." )
1774    protected List<Statistic> statistic;
1775
1776    /**
1777     * Ordered distribution.
1778     */
1779    @Child(name = "distribution", type = {OrderedDistribution.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1780    @Description(shortDefinition="An ordered group of statistics", formalDefinition="Ordered distribution." )
1781    protected List<OrderedDistribution> distribution;
1782
1783    /**
1784     * Level of certainty.
1785     */
1786    @Child(name = "certainty", type = {}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1787    @Description(shortDefinition="Level of certainty", formalDefinition="Level of certainty." )
1788    protected List<EvidenceCertaintyComponent> certainty;
1789
1790    private static final long serialVersionUID = -1740041871L;
1791
1792  /**
1793   * Constructor
1794   */
1795    public Evidence() {
1796      super();
1797    }
1798
1799  /**
1800   * Constructor
1801   */
1802    public Evidence(Enumeration<PublicationStatus> status, EvidenceReferentGroupComponent referentGroup) {
1803      super();
1804      this.status = status;
1805      this.referentGroup = referentGroup;
1806    }
1807
1808    /**
1809     * @return {@link #url} (An absolute URI that is used to identify this evidence when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this summary is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the summary is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
1810     */
1811    public UriType getUrlElement() { 
1812      if (this.url == null)
1813        if (Configuration.errorOnAutoCreate())
1814          throw new Error("Attempt to auto-create Evidence.url");
1815        else if (Configuration.doAutoCreate())
1816          this.url = new UriType(); // bb
1817      return this.url;
1818    }
1819
1820    public boolean hasUrlElement() { 
1821      return this.url != null && !this.url.isEmpty();
1822    }
1823
1824    public boolean hasUrl() { 
1825      return this.url != null && !this.url.isEmpty();
1826    }
1827
1828    /**
1829     * @param value {@link #url} (An absolute URI that is used to identify this evidence when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this summary is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the summary is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
1830     */
1831    public Evidence setUrlElement(UriType value) { 
1832      this.url = value;
1833      return this;
1834    }
1835
1836    /**
1837     * @return An absolute URI that is used to identify this evidence when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this summary is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the summary is stored on different servers.
1838     */
1839    public String getUrl() { 
1840      return this.url == null ? null : this.url.getValue();
1841    }
1842
1843    /**
1844     * @param value An absolute URI that is used to identify this evidence when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this summary is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the summary is stored on different servers.
1845     */
1846    public Evidence setUrl(String value) { 
1847      if (Utilities.noString(value))
1848        this.url = null;
1849      else {
1850        if (this.url == null)
1851          this.url = new UriType();
1852        this.url.setValue(value);
1853      }
1854      return this;
1855    }
1856
1857    /**
1858     * @return {@link #identifier} (A formal identifier that is used to identify this summary when it is represented in other formats, or referenced in a specification, model, design or an instance.)
1859     */
1860    public List<Identifier> getIdentifier() { 
1861      if (this.identifier == null)
1862        this.identifier = new ArrayList<Identifier>();
1863      return this.identifier;
1864    }
1865
1866    /**
1867     * @return Returns a reference to <code>this</code> for easy method chaining
1868     */
1869    public Evidence setIdentifier(List<Identifier> theIdentifier) { 
1870      this.identifier = theIdentifier;
1871      return this;
1872    }
1873
1874    public boolean hasIdentifier() { 
1875      if (this.identifier == null)
1876        return false;
1877      for (Identifier item : this.identifier)
1878        if (!item.isEmpty())
1879          return true;
1880      return false;
1881    }
1882
1883    public Identifier addIdentifier() { //3
1884      Identifier t = new Identifier();
1885      if (this.identifier == null)
1886        this.identifier = new ArrayList<Identifier>();
1887      this.identifier.add(t);
1888      return t;
1889    }
1890
1891    public Evidence addIdentifier(Identifier t) { //3
1892      if (t == null)
1893        return this;
1894      if (this.identifier == null)
1895        this.identifier = new ArrayList<Identifier>();
1896      this.identifier.add(t);
1897      return this;
1898    }
1899
1900    /**
1901     * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist
1902     */
1903    public Identifier getIdentifierFirstRep() { 
1904      if (getIdentifier().isEmpty()) {
1905        addIdentifier();
1906      }
1907      return getIdentifier().get(0);
1908    }
1909
1910    /**
1911     * @return {@link #version} (The identifier that is used to identify this version of the summary when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the summary author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
1912     */
1913    public StringType getVersionElement() { 
1914      if (this.version == null)
1915        if (Configuration.errorOnAutoCreate())
1916          throw new Error("Attempt to auto-create Evidence.version");
1917        else if (Configuration.doAutoCreate())
1918          this.version = new StringType(); // bb
1919      return this.version;
1920    }
1921
1922    public boolean hasVersionElement() { 
1923      return this.version != null && !this.version.isEmpty();
1924    }
1925
1926    public boolean hasVersion() { 
1927      return this.version != null && !this.version.isEmpty();
1928    }
1929
1930    /**
1931     * @param value {@link #version} (The identifier that is used to identify this version of the summary when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the summary author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
1932     */
1933    public Evidence setVersionElement(StringType value) { 
1934      this.version = value;
1935      return this;
1936    }
1937
1938    /**
1939     * @return The identifier that is used to identify this version of the summary when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the summary author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.
1940     */
1941    public String getVersion() { 
1942      return this.version == null ? null : this.version.getValue();
1943    }
1944
1945    /**
1946     * @param value The identifier that is used to identify this version of the summary when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the summary author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.
1947     */
1948    public Evidence setVersion(String value) { 
1949      if (Utilities.noString(value))
1950        this.version = null;
1951      else {
1952        if (this.version == null)
1953          this.version = new StringType();
1954        this.version.setValue(value);
1955      }
1956      return this;
1957    }
1958
1959    /**
1960     * @return {@link #title} (A short, descriptive, user-friendly title for the summary.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
1961     */
1962    public StringType getTitleElement() { 
1963      if (this.title == null)
1964        if (Configuration.errorOnAutoCreate())
1965          throw new Error("Attempt to auto-create Evidence.title");
1966        else if (Configuration.doAutoCreate())
1967          this.title = new StringType(); // bb
1968      return this.title;
1969    }
1970
1971    public boolean hasTitleElement() { 
1972      return this.title != null && !this.title.isEmpty();
1973    }
1974
1975    public boolean hasTitle() { 
1976      return this.title != null && !this.title.isEmpty();
1977    }
1978
1979    /**
1980     * @param value {@link #title} (A short, descriptive, user-friendly title for the summary.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
1981     */
1982    public Evidence setTitleElement(StringType value) { 
1983      this.title = value;
1984      return this;
1985    }
1986
1987    /**
1988     * @return A short, descriptive, user-friendly title for the summary.
1989     */
1990    public String getTitle() { 
1991      return this.title == null ? null : this.title.getValue();
1992    }
1993
1994    /**
1995     * @param value A short, descriptive, user-friendly title for the summary.
1996     */
1997    public Evidence setTitle(String value) { 
1998      if (Utilities.noString(value))
1999        this.title = null;
2000      else {
2001        if (this.title == null)
2002          this.title = new StringType();
2003        this.title.setValue(value);
2004      }
2005      return this;
2006    }
2007
2008    /**
2009     * @return {@link #status} (The status of this summary. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
2010     */
2011    public Enumeration<PublicationStatus> getStatusElement() { 
2012      if (this.status == null)
2013        if (Configuration.errorOnAutoCreate())
2014          throw new Error("Attempt to auto-create Evidence.status");
2015        else if (Configuration.doAutoCreate())
2016          this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); // bb
2017      return this.status;
2018    }
2019
2020    public boolean hasStatusElement() { 
2021      return this.status != null && !this.status.isEmpty();
2022    }
2023
2024    public boolean hasStatus() { 
2025      return this.status != null && !this.status.isEmpty();
2026    }
2027
2028    /**
2029     * @param value {@link #status} (The status of this summary. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
2030     */
2031    public Evidence setStatusElement(Enumeration<PublicationStatus> value) { 
2032      this.status = value;
2033      return this;
2034    }
2035
2036    /**
2037     * @return The status of this summary. Enables tracking the life-cycle of the content.
2038     */
2039    public PublicationStatus getStatus() { 
2040      return this.status == null ? null : this.status.getValue();
2041    }
2042
2043    /**
2044     * @param value The status of this summary. Enables tracking the life-cycle of the content.
2045     */
2046    public Evidence setStatus(PublicationStatus value) { 
2047        if (this.status == null)
2048          this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory());
2049        this.status.setValue(value);
2050      return this;
2051    }
2052
2053    /**
2054     * @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate evidence instances.)
2055     */
2056    public List<UsageContext> getUseContext() { 
2057      if (this.useContext == null)
2058        this.useContext = new ArrayList<UsageContext>();
2059      return this.useContext;
2060    }
2061
2062    /**
2063     * @return Returns a reference to <code>this</code> for easy method chaining
2064     */
2065    public Evidence setUseContext(List<UsageContext> theUseContext) { 
2066      this.useContext = theUseContext;
2067      return this;
2068    }
2069
2070    public boolean hasUseContext() { 
2071      if (this.useContext == null)
2072        return false;
2073      for (UsageContext item : this.useContext)
2074        if (!item.isEmpty())
2075          return true;
2076      return false;
2077    }
2078
2079    public UsageContext addUseContext() { //3
2080      UsageContext t = new UsageContext();
2081      if (this.useContext == null)
2082        this.useContext = new ArrayList<UsageContext>();
2083      this.useContext.add(t);
2084      return t;
2085    }
2086
2087    public Evidence addUseContext(UsageContext t) { //3
2088      if (t == null)
2089        return this;
2090      if (this.useContext == null)
2091        this.useContext = new ArrayList<UsageContext>();
2092      this.useContext.add(t);
2093      return this;
2094    }
2095
2096    /**
2097     * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist
2098     */
2099    public UsageContext getUseContextFirstRep() { 
2100      if (getUseContext().isEmpty()) {
2101        addUseContext();
2102      }
2103      return getUseContext().get(0);
2104    }
2105
2106    /**
2107     * @return {@link #date} (The date  (and optionally time) when the summary was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the summary changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
2108     */
2109    public DateTimeType getDateElement() { 
2110      if (this.date == null)
2111        if (Configuration.errorOnAutoCreate())
2112          throw new Error("Attempt to auto-create Evidence.date");
2113        else if (Configuration.doAutoCreate())
2114          this.date = new DateTimeType(); // bb
2115      return this.date;
2116    }
2117
2118    public boolean hasDateElement() { 
2119      return this.date != null && !this.date.isEmpty();
2120    }
2121
2122    public boolean hasDate() { 
2123      return this.date != null && !this.date.isEmpty();
2124    }
2125
2126    /**
2127     * @param value {@link #date} (The date  (and optionally time) when the summary was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the summary changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
2128     */
2129    public Evidence setDateElement(DateTimeType value) { 
2130      this.date = value;
2131      return this;
2132    }
2133
2134    /**
2135     * @return The date  (and optionally time) when the summary was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the summary changes.
2136     */
2137    public Date getDate() { 
2138      return this.date == null ? null : this.date.getValue();
2139    }
2140
2141    /**
2142     * @param value The date  (and optionally time) when the summary was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the summary changes.
2143     */
2144    public Evidence setDate(Date value) { 
2145      if (value == null)
2146        this.date = null;
2147      else {
2148        if (this.date == null)
2149          this.date = new DateTimeType();
2150        this.date.setValue(value);
2151      }
2152      return this;
2153    }
2154
2155    /**
2156     * @return {@link #approvalDate} (The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.). This is the underlying object with id, value and extensions. The accessor "getApprovalDate" gives direct access to the value
2157     */
2158    public DateType getApprovalDateElement() { 
2159      if (this.approvalDate == null)
2160        if (Configuration.errorOnAutoCreate())
2161          throw new Error("Attempt to auto-create Evidence.approvalDate");
2162        else if (Configuration.doAutoCreate())
2163          this.approvalDate = new DateType(); // bb
2164      return this.approvalDate;
2165    }
2166
2167    public boolean hasApprovalDateElement() { 
2168      return this.approvalDate != null && !this.approvalDate.isEmpty();
2169    }
2170
2171    public boolean hasApprovalDate() { 
2172      return this.approvalDate != null && !this.approvalDate.isEmpty();
2173    }
2174
2175    /**
2176     * @param value {@link #approvalDate} (The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.). This is the underlying object with id, value and extensions. The accessor "getApprovalDate" gives direct access to the value
2177     */
2178    public Evidence setApprovalDateElement(DateType value) { 
2179      this.approvalDate = value;
2180      return this;
2181    }
2182
2183    /**
2184     * @return The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.
2185     */
2186    public Date getApprovalDate() { 
2187      return this.approvalDate == null ? null : this.approvalDate.getValue();
2188    }
2189
2190    /**
2191     * @param value The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.
2192     */
2193    public Evidence setApprovalDate(Date value) { 
2194      if (value == null)
2195        this.approvalDate = null;
2196      else {
2197        if (this.approvalDate == null)
2198          this.approvalDate = new DateType();
2199        this.approvalDate.setValue(value);
2200      }
2201      return this;
2202    }
2203
2204    /**
2205     * @return {@link #lastReviewDate} (The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.). This is the underlying object with id, value and extensions. The accessor "getLastReviewDate" gives direct access to the value
2206     */
2207    public DateType getLastReviewDateElement() { 
2208      if (this.lastReviewDate == null)
2209        if (Configuration.errorOnAutoCreate())
2210          throw new Error("Attempt to auto-create Evidence.lastReviewDate");
2211        else if (Configuration.doAutoCreate())
2212          this.lastReviewDate = new DateType(); // bb
2213      return this.lastReviewDate;
2214    }
2215
2216    public boolean hasLastReviewDateElement() { 
2217      return this.lastReviewDate != null && !this.lastReviewDate.isEmpty();
2218    }
2219
2220    public boolean hasLastReviewDate() { 
2221      return this.lastReviewDate != null && !this.lastReviewDate.isEmpty();
2222    }
2223
2224    /**
2225     * @param value {@link #lastReviewDate} (The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.). This is the underlying object with id, value and extensions. The accessor "getLastReviewDate" gives direct access to the value
2226     */
2227    public Evidence setLastReviewDateElement(DateType value) { 
2228      this.lastReviewDate = value;
2229      return this;
2230    }
2231
2232    /**
2233     * @return The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.
2234     */
2235    public Date getLastReviewDate() { 
2236      return this.lastReviewDate == null ? null : this.lastReviewDate.getValue();
2237    }
2238
2239    /**
2240     * @param value The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.
2241     */
2242    public Evidence setLastReviewDate(Date value) { 
2243      if (value == null)
2244        this.lastReviewDate = null;
2245      else {
2246        if (this.lastReviewDate == null)
2247          this.lastReviewDate = new DateType();
2248        this.lastReviewDate.setValue(value);
2249      }
2250      return this;
2251    }
2252
2253    /**
2254     * @return {@link #contributor} (Contact detail and role for contributor to summary.)
2255     */
2256    public List<Contributor> getContributor() { 
2257      if (this.contributor == null)
2258        this.contributor = new ArrayList<Contributor>();
2259      return this.contributor;
2260    }
2261
2262    /**
2263     * @return Returns a reference to <code>this</code> for easy method chaining
2264     */
2265    public Evidence setContributor(List<Contributor> theContributor) { 
2266      this.contributor = theContributor;
2267      return this;
2268    }
2269
2270    public boolean hasContributor() { 
2271      if (this.contributor == null)
2272        return false;
2273      for (Contributor item : this.contributor)
2274        if (!item.isEmpty())
2275          return true;
2276      return false;
2277    }
2278
2279    public Contributor addContributor() { //3
2280      Contributor t = new Contributor();
2281      if (this.contributor == null)
2282        this.contributor = new ArrayList<Contributor>();
2283      this.contributor.add(t);
2284      return t;
2285    }
2286
2287    public Evidence addContributor(Contributor t) { //3
2288      if (t == null)
2289        return this;
2290      if (this.contributor == null)
2291        this.contributor = new ArrayList<Contributor>();
2292      this.contributor.add(t);
2293      return this;
2294    }
2295
2296    /**
2297     * @return The first repetition of repeating field {@link #contributor}, creating it if it does not already exist
2298     */
2299    public Contributor getContributorFirstRep() { 
2300      if (getContributor().isEmpty()) {
2301        addContributor();
2302      }
2303      return getContributor().get(0);
2304    }
2305
2306    /**
2307     * @return {@link #relatedArtifact} (Link or citation to artifact associated with the summary.)
2308     */
2309    public List<RelatedArtifact> getRelatedArtifact() { 
2310      if (this.relatedArtifact == null)
2311        this.relatedArtifact = new ArrayList<RelatedArtifact>();
2312      return this.relatedArtifact;
2313    }
2314
2315    /**
2316     * @return Returns a reference to <code>this</code> for easy method chaining
2317     */
2318    public Evidence setRelatedArtifact(List<RelatedArtifact> theRelatedArtifact) { 
2319      this.relatedArtifact = theRelatedArtifact;
2320      return this;
2321    }
2322
2323    public boolean hasRelatedArtifact() { 
2324      if (this.relatedArtifact == null)
2325        return false;
2326      for (RelatedArtifact item : this.relatedArtifact)
2327        if (!item.isEmpty())
2328          return true;
2329      return false;
2330    }
2331
2332    public RelatedArtifact addRelatedArtifact() { //3
2333      RelatedArtifact t = new RelatedArtifact();
2334      if (this.relatedArtifact == null)
2335        this.relatedArtifact = new ArrayList<RelatedArtifact>();
2336      this.relatedArtifact.add(t);
2337      return t;
2338    }
2339
2340    public Evidence addRelatedArtifact(RelatedArtifact t) { //3
2341      if (t == null)
2342        return this;
2343      if (this.relatedArtifact == null)
2344        this.relatedArtifact = new ArrayList<RelatedArtifact>();
2345      this.relatedArtifact.add(t);
2346      return this;
2347    }
2348
2349    /**
2350     * @return The first repetition of repeating field {@link #relatedArtifact}, creating it if it does not already exist
2351     */
2352    public RelatedArtifact getRelatedArtifactFirstRep() { 
2353      if (getRelatedArtifact().isEmpty()) {
2354        addRelatedArtifact();
2355      }
2356      return getRelatedArtifact().get(0);
2357    }
2358
2359    /**
2360     * @return {@link #description} (A free text natural language description of the evidence from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
2361     */
2362    public MarkdownType getDescriptionElement() { 
2363      if (this.description == null)
2364        if (Configuration.errorOnAutoCreate())
2365          throw new Error("Attempt to auto-create Evidence.description");
2366        else if (Configuration.doAutoCreate())
2367          this.description = new MarkdownType(); // bb
2368      return this.description;
2369    }
2370
2371    public boolean hasDescriptionElement() { 
2372      return this.description != null && !this.description.isEmpty();
2373    }
2374
2375    public boolean hasDescription() { 
2376      return this.description != null && !this.description.isEmpty();
2377    }
2378
2379    /**
2380     * @param value {@link #description} (A free text natural language description of the evidence from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
2381     */
2382    public Evidence setDescriptionElement(MarkdownType value) { 
2383      this.description = value;
2384      return this;
2385    }
2386
2387    /**
2388     * @return A free text natural language description of the evidence from a consumer's perspective.
2389     */
2390    public String getDescription() { 
2391      return this.description == null ? null : this.description.getValue();
2392    }
2393
2394    /**
2395     * @param value A free text natural language description of the evidence from a consumer's perspective.
2396     */
2397    public Evidence setDescription(String value) { 
2398      if (value == null)
2399        this.description = null;
2400      else {
2401        if (this.description == null)
2402          this.description = new MarkdownType();
2403        this.description.setValue(value);
2404      }
2405      return this;
2406    }
2407
2408    /**
2409     * @return {@link #assertion} (Declarative description of the Evidence.). This is the underlying object with id, value and extensions. The accessor "getAssertion" gives direct access to the value
2410     */
2411    public MarkdownType getAssertionElement() { 
2412      if (this.assertion == null)
2413        if (Configuration.errorOnAutoCreate())
2414          throw new Error("Attempt to auto-create Evidence.assertion");
2415        else if (Configuration.doAutoCreate())
2416          this.assertion = new MarkdownType(); // bb
2417      return this.assertion;
2418    }
2419
2420    public boolean hasAssertionElement() { 
2421      return this.assertion != null && !this.assertion.isEmpty();
2422    }
2423
2424    public boolean hasAssertion() { 
2425      return this.assertion != null && !this.assertion.isEmpty();
2426    }
2427
2428    /**
2429     * @param value {@link #assertion} (Declarative description of the Evidence.). This is the underlying object with id, value and extensions. The accessor "getAssertion" gives direct access to the value
2430     */
2431    public Evidence setAssertionElement(MarkdownType value) { 
2432      this.assertion = value;
2433      return this;
2434    }
2435
2436    /**
2437     * @return Declarative description of the Evidence.
2438     */
2439    public String getAssertion() { 
2440      return this.assertion == null ? null : this.assertion.getValue();
2441    }
2442
2443    /**
2444     * @param value Declarative description of the Evidence.
2445     */
2446    public Evidence setAssertion(String value) { 
2447      if (value == null)
2448        this.assertion = null;
2449      else {
2450        if (this.assertion == null)
2451          this.assertion = new MarkdownType();
2452        this.assertion.setValue(value);
2453      }
2454      return this;
2455    }
2456
2457    /**
2458     * @return {@link #note} (Footnotes and/or explanatory notes.)
2459     */
2460    public List<Annotation> getNote() { 
2461      if (this.note == null)
2462        this.note = new ArrayList<Annotation>();
2463      return this.note;
2464    }
2465
2466    /**
2467     * @return Returns a reference to <code>this</code> for easy method chaining
2468     */
2469    public Evidence setNote(List<Annotation> theNote) { 
2470      this.note = theNote;
2471      return this;
2472    }
2473
2474    public boolean hasNote() { 
2475      if (this.note == null)
2476        return false;
2477      for (Annotation item : this.note)
2478        if (!item.isEmpty())
2479          return true;
2480      return false;
2481    }
2482
2483    public Annotation addNote() { //3
2484      Annotation t = new Annotation();
2485      if (this.note == null)
2486        this.note = new ArrayList<Annotation>();
2487      this.note.add(t);
2488      return t;
2489    }
2490
2491    public Evidence addNote(Annotation t) { //3
2492      if (t == null)
2493        return this;
2494      if (this.note == null)
2495        this.note = new ArrayList<Annotation>();
2496      this.note.add(t);
2497      return this;
2498    }
2499
2500    /**
2501     * @return The first repetition of repeating field {@link #note}, creating it if it does not already exist
2502     */
2503    public Annotation getNoteFirstRep() { 
2504      if (getNote().isEmpty()) {
2505        addNote();
2506      }
2507      return getNote().get(0);
2508    }
2509
2510    /**
2511     * @return {@link #referentGroup} (Group being referenced.)
2512     */
2513    public EvidenceReferentGroupComponent getReferentGroup() { 
2514      if (this.referentGroup == null)
2515        if (Configuration.errorOnAutoCreate())
2516          throw new Error("Attempt to auto-create Evidence.referentGroup");
2517        else if (Configuration.doAutoCreate())
2518          this.referentGroup = new EvidenceReferentGroupComponent(); // cc
2519      return this.referentGroup;
2520    }
2521
2522    public boolean hasReferentGroup() { 
2523      return this.referentGroup != null && !this.referentGroup.isEmpty();
2524    }
2525
2526    /**
2527     * @param value {@link #referentGroup} (Group being referenced.)
2528     */
2529    public Evidence setReferentGroup(EvidenceReferentGroupComponent value) { 
2530      this.referentGroup = value;
2531      return this;
2532    }
2533
2534    /**
2535     * @return {@link #variableDefinition} (Evidence variable.)
2536     */
2537    public List<EvidenceVariableDefinitionComponent> getVariableDefinition() { 
2538      if (this.variableDefinition == null)
2539        this.variableDefinition = new ArrayList<EvidenceVariableDefinitionComponent>();
2540      return this.variableDefinition;
2541    }
2542
2543    /**
2544     * @return Returns a reference to <code>this</code> for easy method chaining
2545     */
2546    public Evidence setVariableDefinition(List<EvidenceVariableDefinitionComponent> theVariableDefinition) { 
2547      this.variableDefinition = theVariableDefinition;
2548      return this;
2549    }
2550
2551    public boolean hasVariableDefinition() { 
2552      if (this.variableDefinition == null)
2553        return false;
2554      for (EvidenceVariableDefinitionComponent item : this.variableDefinition)
2555        if (!item.isEmpty())
2556          return true;
2557      return false;
2558    }
2559
2560    public EvidenceVariableDefinitionComponent addVariableDefinition() { //3
2561      EvidenceVariableDefinitionComponent t = new EvidenceVariableDefinitionComponent();
2562      if (this.variableDefinition == null)
2563        this.variableDefinition = new ArrayList<EvidenceVariableDefinitionComponent>();
2564      this.variableDefinition.add(t);
2565      return t;
2566    }
2567
2568    public Evidence addVariableDefinition(EvidenceVariableDefinitionComponent t) { //3
2569      if (t == null)
2570        return this;
2571      if (this.variableDefinition == null)
2572        this.variableDefinition = new ArrayList<EvidenceVariableDefinitionComponent>();
2573      this.variableDefinition.add(t);
2574      return this;
2575    }
2576
2577    /**
2578     * @return The first repetition of repeating field {@link #variableDefinition}, creating it if it does not already exist
2579     */
2580    public EvidenceVariableDefinitionComponent getVariableDefinitionFirstRep() { 
2581      if (getVariableDefinition().isEmpty()) {
2582        addVariableDefinition();
2583      }
2584      return getVariableDefinition().get(0);
2585    }
2586
2587    /**
2588     * @return {@link #synthesisType} (The particular type of synthesis if this is a synthesis summary.)
2589     */
2590    public CodeableConcept getSynthesisType() { 
2591      if (this.synthesisType == null)
2592        if (Configuration.errorOnAutoCreate())
2593          throw new Error("Attempt to auto-create Evidence.synthesisType");
2594        else if (Configuration.doAutoCreate())
2595          this.synthesisType = new CodeableConcept(); // cc
2596      return this.synthesisType;
2597    }
2598
2599    public boolean hasSynthesisType() { 
2600      return this.synthesisType != null && !this.synthesisType.isEmpty();
2601    }
2602
2603    /**
2604     * @param value {@link #synthesisType} (The particular type of synthesis if this is a synthesis summary.)
2605     */
2606    public Evidence setSynthesisType(CodeableConcept value) { 
2607      this.synthesisType = value;
2608      return this;
2609    }
2610
2611    /**
2612     * @return {@link #studyType} (The type of study that produced this summary.)
2613     */
2614    public CodeableConcept getStudyType() { 
2615      if (this.studyType == null)
2616        if (Configuration.errorOnAutoCreate())
2617          throw new Error("Attempt to auto-create Evidence.studyType");
2618        else if (Configuration.doAutoCreate())
2619          this.studyType = new CodeableConcept(); // cc
2620      return this.studyType;
2621    }
2622
2623    public boolean hasStudyType() { 
2624      return this.studyType != null && !this.studyType.isEmpty();
2625    }
2626
2627    /**
2628     * @param value {@link #studyType} (The type of study that produced this summary.)
2629     */
2630    public Evidence setStudyType(CodeableConcept value) { 
2631      this.studyType = value;
2632      return this;
2633    }
2634
2635    /**
2636     * @return {@link #statistic} (The statistic value(s).)
2637     */
2638    public List<Statistic> getStatistic() { 
2639      if (this.statistic == null)
2640        this.statistic = new ArrayList<Statistic>();
2641      return this.statistic;
2642    }
2643
2644    /**
2645     * @return Returns a reference to <code>this</code> for easy method chaining
2646     */
2647    public Evidence setStatistic(List<Statistic> theStatistic) { 
2648      this.statistic = theStatistic;
2649      return this;
2650    }
2651
2652    public boolean hasStatistic() { 
2653      if (this.statistic == null)
2654        return false;
2655      for (Statistic item : this.statistic)
2656        if (!item.isEmpty())
2657          return true;
2658      return false;
2659    }
2660
2661    public Statistic addStatistic() { //3
2662      Statistic t = new Statistic();
2663      if (this.statistic == null)
2664        this.statistic = new ArrayList<Statistic>();
2665      this.statistic.add(t);
2666      return t;
2667    }
2668
2669    public Evidence addStatistic(Statistic t) { //3
2670      if (t == null)
2671        return this;
2672      if (this.statistic == null)
2673        this.statistic = new ArrayList<Statistic>();
2674      this.statistic.add(t);
2675      return this;
2676    }
2677
2678    /**
2679     * @return The first repetition of repeating field {@link #statistic}, creating it if it does not already exist
2680     */
2681    public Statistic getStatisticFirstRep() { 
2682      if (getStatistic().isEmpty()) {
2683        addStatistic();
2684      }
2685      return getStatistic().get(0);
2686    }
2687
2688    /**
2689     * @return {@link #distribution} (Ordered distribution.)
2690     */
2691    public List<OrderedDistribution> getDistribution() { 
2692      if (this.distribution == null)
2693        this.distribution = new ArrayList<OrderedDistribution>();
2694      return this.distribution;
2695    }
2696
2697    /**
2698     * @return Returns a reference to <code>this</code> for easy method chaining
2699     */
2700    public Evidence setDistribution(List<OrderedDistribution> theDistribution) { 
2701      this.distribution = theDistribution;
2702      return this;
2703    }
2704
2705    public boolean hasDistribution() { 
2706      if (this.distribution == null)
2707        return false;
2708      for (OrderedDistribution item : this.distribution)
2709        if (!item.isEmpty())
2710          return true;
2711      return false;
2712    }
2713
2714    public OrderedDistribution addDistribution() { //3
2715      OrderedDistribution t = new OrderedDistribution();
2716      if (this.distribution == null)
2717        this.distribution = new ArrayList<OrderedDistribution>();
2718      this.distribution.add(t);
2719      return t;
2720    }
2721
2722    public Evidence addDistribution(OrderedDistribution t) { //3
2723      if (t == null)
2724        return this;
2725      if (this.distribution == null)
2726        this.distribution = new ArrayList<OrderedDistribution>();
2727      this.distribution.add(t);
2728      return this;
2729    }
2730
2731    /**
2732     * @return The first repetition of repeating field {@link #distribution}, creating it if it does not already exist
2733     */
2734    public OrderedDistribution getDistributionFirstRep() { 
2735      if (getDistribution().isEmpty()) {
2736        addDistribution();
2737      }
2738      return getDistribution().get(0);
2739    }
2740
2741    /**
2742     * @return {@link #certainty} (Level of certainty.)
2743     */
2744    public List<EvidenceCertaintyComponent> getCertainty() { 
2745      if (this.certainty == null)
2746        this.certainty = new ArrayList<EvidenceCertaintyComponent>();
2747      return this.certainty;
2748    }
2749
2750    /**
2751     * @return Returns a reference to <code>this</code> for easy method chaining
2752     */
2753    public Evidence setCertainty(List<EvidenceCertaintyComponent> theCertainty) { 
2754      this.certainty = theCertainty;
2755      return this;
2756    }
2757
2758    public boolean hasCertainty() { 
2759      if (this.certainty == null)
2760        return false;
2761      for (EvidenceCertaintyComponent item : this.certainty)
2762        if (!item.isEmpty())
2763          return true;
2764      return false;
2765    }
2766
2767    public EvidenceCertaintyComponent addCertainty() { //3
2768      EvidenceCertaintyComponent t = new EvidenceCertaintyComponent();
2769      if (this.certainty == null)
2770        this.certainty = new ArrayList<EvidenceCertaintyComponent>();
2771      this.certainty.add(t);
2772      return t;
2773    }
2774
2775    public Evidence addCertainty(EvidenceCertaintyComponent t) { //3
2776      if (t == null)
2777        return this;
2778      if (this.certainty == null)
2779        this.certainty = new ArrayList<EvidenceCertaintyComponent>();
2780      this.certainty.add(t);
2781      return this;
2782    }
2783
2784    /**
2785     * @return The first repetition of repeating field {@link #certainty}, creating it if it does not already exist
2786     */
2787    public EvidenceCertaintyComponent getCertaintyFirstRep() { 
2788      if (getCertainty().isEmpty()) {
2789        addCertainty();
2790      }
2791      return getCertainty().get(0);
2792    }
2793
2794      protected void listChildren(List<Property> children) {
2795        super.listChildren(children);
2796        children.add(new Property("url", "uri", "An absolute URI that is used to identify this evidence when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this summary is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the summary is stored on different servers.", 0, 1, url));
2797        children.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this summary when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier));
2798        children.add(new Property("version", "string", "The identifier that is used to identify this version of the summary when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the summary author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version));
2799        children.add(new Property("title", "string", "A short, descriptive, user-friendly title for the summary.", 0, 1, title));
2800        children.add(new Property("status", "code", "The status of this summary. Enables tracking the life-cycle of the content.", 0, 1, status));
2801        children.add(new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate evidence instances.", 0, java.lang.Integer.MAX_VALUE, useContext));
2802        children.add(new Property("date", "dateTime", "The date  (and optionally time) when the summary was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the summary changes.", 0, 1, date));
2803        children.add(new Property("approvalDate", "date", "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.", 0, 1, approvalDate));
2804        children.add(new Property("lastReviewDate", "date", "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.", 0, 1, lastReviewDate));
2805        children.add(new Property("contributor", "Contributor", "Contact detail and role for contributor to summary.", 0, java.lang.Integer.MAX_VALUE, contributor));
2806        children.add(new Property("relatedArtifact", "RelatedArtifact", "Link or citation to artifact associated with the summary.", 0, java.lang.Integer.MAX_VALUE, relatedArtifact));
2807        children.add(new Property("description", "markdown", "A free text natural language description of the evidence from a consumer's perspective.", 0, 1, description));
2808        children.add(new Property("assertion", "markdown", "Declarative description of the Evidence.", 0, 1, assertion));
2809        children.add(new Property("note", "Annotation", "Footnotes and/or explanatory notes.", 0, java.lang.Integer.MAX_VALUE, note));
2810        children.add(new Property("referentGroup", "", "Group being referenced.", 0, 1, referentGroup));
2811        children.add(new Property("variableDefinition", "", "Evidence variable.", 0, java.lang.Integer.MAX_VALUE, variableDefinition));
2812        children.add(new Property("synthesisType", "CodeableConcept", "The particular type of synthesis if this is a synthesis summary.", 0, 1, synthesisType));
2813        children.add(new Property("studyType", "CodeableConcept", "The type of study that produced this summary.", 0, 1, studyType));
2814        children.add(new Property("statistic", "Statistic", "The statistic value(s).", 0, java.lang.Integer.MAX_VALUE, statistic));
2815        children.add(new Property("distribution", "OrderedDistribution", "Ordered distribution.", 0, java.lang.Integer.MAX_VALUE, distribution));
2816        children.add(new Property("certainty", "", "Level of certainty.", 0, java.lang.Integer.MAX_VALUE, certainty));
2817      }
2818
2819      @Override
2820      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
2821        switch (_hash) {
2822        case 116079: /*url*/  return new Property("url", "uri", "An absolute URI that is used to identify this evidence when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this summary is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the summary is stored on different servers.", 0, 1, url);
2823        case -1618432855: /*identifier*/  return new Property("identifier", "Identifier", "A formal identifier that is used to identify this summary when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier);
2824        case 351608024: /*version*/  return new Property("version", "string", "The identifier that is used to identify this version of the summary when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the summary author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version);
2825        case 110371416: /*title*/  return new Property("title", "string", "A short, descriptive, user-friendly title for the summary.", 0, 1, title);
2826        case -892481550: /*status*/  return new Property("status", "code", "The status of this summary. Enables tracking the life-cycle of the content.", 0, 1, status);
2827        case -669707736: /*useContext*/  return new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate evidence instances.", 0, java.lang.Integer.MAX_VALUE, useContext);
2828        case 3076014: /*date*/  return new Property("date", "dateTime", "The date  (and optionally time) when the summary was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the summary changes.", 0, 1, date);
2829        case 223539345: /*approvalDate*/  return new Property("approvalDate", "date", "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.", 0, 1, approvalDate);
2830        case -1687512484: /*lastReviewDate*/  return new Property("lastReviewDate", "date", "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.", 0, 1, lastReviewDate);
2831        case -1895276325: /*contributor*/  return new Property("contributor", "Contributor", "Contact detail and role for contributor to summary.", 0, java.lang.Integer.MAX_VALUE, contributor);
2832        case 666807069: /*relatedArtifact*/  return new Property("relatedArtifact", "RelatedArtifact", "Link or citation to artifact associated with the summary.", 0, java.lang.Integer.MAX_VALUE, relatedArtifact);
2833        case -1724546052: /*description*/  return new Property("description", "markdown", "A free text natural language description of the evidence from a consumer's perspective.", 0, 1, description);
2834        case 1314395906: /*assertion*/  return new Property("assertion", "markdown", "Declarative description of the Evidence.", 0, 1, assertion);
2835        case 3387378: /*note*/  return new Property("note", "Annotation", "Footnotes and/or explanatory notes.", 0, java.lang.Integer.MAX_VALUE, note);
2836        case 2060829908: /*referentGroup*/  return new Property("referentGroup", "", "Group being referenced.", 0, 1, referentGroup);
2837        case -1807222545: /*variableDefinition*/  return new Property("variableDefinition", "", "Evidence variable.", 0, java.lang.Integer.MAX_VALUE, variableDefinition);
2838        case 672726254: /*synthesisType*/  return new Property("synthesisType", "CodeableConcept", "The particular type of synthesis if this is a synthesis summary.", 0, 1, synthesisType);
2839        case -1955265373: /*studyType*/  return new Property("studyType", "CodeableConcept", "The type of study that produced this summary.", 0, 1, studyType);
2840        case -2081261232: /*statistic*/  return new Property("statistic", "Statistic", "The statistic value(s).", 0, java.lang.Integer.MAX_VALUE, statistic);
2841        case -1580708220: /*distribution*/  return new Property("distribution", "OrderedDistribution", "Ordered distribution.", 0, java.lang.Integer.MAX_VALUE, distribution);
2842        case -1404142937: /*certainty*/  return new Property("certainty", "", "Level of certainty.", 0, java.lang.Integer.MAX_VALUE, certainty);
2843        default: return super.getNamedProperty(_hash, _name, _checkValid);
2844        }
2845
2846      }
2847
2848      @Override
2849      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
2850        switch (hash) {
2851        case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType
2852        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier
2853        case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType
2854        case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType
2855        case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<PublicationStatus>
2856        case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext
2857        case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType
2858        case 223539345: /*approvalDate*/ return this.approvalDate == null ? new Base[0] : new Base[] {this.approvalDate}; // DateType
2859        case -1687512484: /*lastReviewDate*/ return this.lastReviewDate == null ? new Base[0] : new Base[] {this.lastReviewDate}; // DateType
2860        case -1895276325: /*contributor*/ return this.contributor == null ? new Base[0] : this.contributor.toArray(new Base[this.contributor.size()]); // Contributor
2861        case 666807069: /*relatedArtifact*/ return this.relatedArtifact == null ? new Base[0] : this.relatedArtifact.toArray(new Base[this.relatedArtifact.size()]); // RelatedArtifact
2862        case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType
2863        case 1314395906: /*assertion*/ return this.assertion == null ? new Base[0] : new Base[] {this.assertion}; // MarkdownType
2864        case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation
2865        case 2060829908: /*referentGroup*/ return this.referentGroup == null ? new Base[0] : new Base[] {this.referentGroup}; // EvidenceReferentGroupComponent
2866        case -1807222545: /*variableDefinition*/ return this.variableDefinition == null ? new Base[0] : this.variableDefinition.toArray(new Base[this.variableDefinition.size()]); // EvidenceVariableDefinitionComponent
2867        case 672726254: /*synthesisType*/ return this.synthesisType == null ? new Base[0] : new Base[] {this.synthesisType}; // CodeableConcept
2868        case -1955265373: /*studyType*/ return this.studyType == null ? new Base[0] : new Base[] {this.studyType}; // CodeableConcept
2869        case -2081261232: /*statistic*/ return this.statistic == null ? new Base[0] : this.statistic.toArray(new Base[this.statistic.size()]); // Statistic
2870        case -1580708220: /*distribution*/ return this.distribution == null ? new Base[0] : this.distribution.toArray(new Base[this.distribution.size()]); // OrderedDistribution
2871        case -1404142937: /*certainty*/ return this.certainty == null ? new Base[0] : this.certainty.toArray(new Base[this.certainty.size()]); // EvidenceCertaintyComponent
2872        default: return super.getProperty(hash, name, checkValid);
2873        }
2874
2875      }
2876
2877      @Override
2878      public Base setProperty(int hash, String name, Base value) throws FHIRException {
2879        switch (hash) {
2880        case 116079: // url
2881          this.url = castToUri(value); // UriType
2882          return value;
2883        case -1618432855: // identifier
2884          this.getIdentifier().add(castToIdentifier(value)); // Identifier
2885          return value;
2886        case 351608024: // version
2887          this.version = castToString(value); // StringType
2888          return value;
2889        case 110371416: // title
2890          this.title = castToString(value); // StringType
2891          return value;
2892        case -892481550: // status
2893          value = new PublicationStatusEnumFactory().fromType(castToCode(value));
2894          this.status = (Enumeration) value; // Enumeration<PublicationStatus>
2895          return value;
2896        case -669707736: // useContext
2897          this.getUseContext().add(castToUsageContext(value)); // UsageContext
2898          return value;
2899        case 3076014: // date
2900          this.date = castToDateTime(value); // DateTimeType
2901          return value;
2902        case 223539345: // approvalDate
2903          this.approvalDate = castToDate(value); // DateType
2904          return value;
2905        case -1687512484: // lastReviewDate
2906          this.lastReviewDate = castToDate(value); // DateType
2907          return value;
2908        case -1895276325: // contributor
2909          this.getContributor().add(castToContributor(value)); // Contributor
2910          return value;
2911        case 666807069: // relatedArtifact
2912          this.getRelatedArtifact().add(castToRelatedArtifact(value)); // RelatedArtifact
2913          return value;
2914        case -1724546052: // description
2915          this.description = castToMarkdown(value); // MarkdownType
2916          return value;
2917        case 1314395906: // assertion
2918          this.assertion = castToMarkdown(value); // MarkdownType
2919          return value;
2920        case 3387378: // note
2921          this.getNote().add(castToAnnotation(value)); // Annotation
2922          return value;
2923        case 2060829908: // referentGroup
2924          this.referentGroup = (EvidenceReferentGroupComponent) value; // EvidenceReferentGroupComponent
2925          return value;
2926        case -1807222545: // variableDefinition
2927          this.getVariableDefinition().add((EvidenceVariableDefinitionComponent) value); // EvidenceVariableDefinitionComponent
2928          return value;
2929        case 672726254: // synthesisType
2930          this.synthesisType = castToCodeableConcept(value); // CodeableConcept
2931          return value;
2932        case -1955265373: // studyType
2933          this.studyType = castToCodeableConcept(value); // CodeableConcept
2934          return value;
2935        case -2081261232: // statistic
2936          this.getStatistic().add(castToStatistic(value)); // Statistic
2937          return value;
2938        case -1580708220: // distribution
2939          this.getDistribution().add(castToOrderedDistribution(value)); // OrderedDistribution
2940          return value;
2941        case -1404142937: // certainty
2942          this.getCertainty().add((EvidenceCertaintyComponent) value); // EvidenceCertaintyComponent
2943          return value;
2944        default: return super.setProperty(hash, name, value);
2945        }
2946
2947      }
2948
2949      @Override
2950      public Base setProperty(String name, Base value) throws FHIRException {
2951        if (name.equals("url")) {
2952          this.url = castToUri(value); // UriType
2953        } else if (name.equals("identifier")) {
2954          this.getIdentifier().add(castToIdentifier(value));
2955        } else if (name.equals("version")) {
2956          this.version = castToString(value); // StringType
2957        } else if (name.equals("title")) {
2958          this.title = castToString(value); // StringType
2959        } else if (name.equals("status")) {
2960          value = new PublicationStatusEnumFactory().fromType(castToCode(value));
2961          this.status = (Enumeration) value; // Enumeration<PublicationStatus>
2962        } else if (name.equals("useContext")) {
2963          this.getUseContext().add(castToUsageContext(value));
2964        } else if (name.equals("date")) {
2965          this.date = castToDateTime(value); // DateTimeType
2966        } else if (name.equals("approvalDate")) {
2967          this.approvalDate = castToDate(value); // DateType
2968        } else if (name.equals("lastReviewDate")) {
2969          this.lastReviewDate = castToDate(value); // DateType
2970        } else if (name.equals("contributor")) {
2971          this.getContributor().add(castToContributor(value));
2972        } else if (name.equals("relatedArtifact")) {
2973          this.getRelatedArtifact().add(castToRelatedArtifact(value));
2974        } else if (name.equals("description")) {
2975          this.description = castToMarkdown(value); // MarkdownType
2976        } else if (name.equals("assertion")) {
2977          this.assertion = castToMarkdown(value); // MarkdownType
2978        } else if (name.equals("note")) {
2979          this.getNote().add(castToAnnotation(value));
2980        } else if (name.equals("referentGroup")) {
2981          this.referentGroup = (EvidenceReferentGroupComponent) value; // EvidenceReferentGroupComponent
2982        } else if (name.equals("variableDefinition")) {
2983          this.getVariableDefinition().add((EvidenceVariableDefinitionComponent) value);
2984        } else if (name.equals("synthesisType")) {
2985          this.synthesisType = castToCodeableConcept(value); // CodeableConcept
2986        } else if (name.equals("studyType")) {
2987          this.studyType = castToCodeableConcept(value); // CodeableConcept
2988        } else if (name.equals("statistic")) {
2989          this.getStatistic().add(castToStatistic(value));
2990        } else if (name.equals("distribution")) {
2991          this.getDistribution().add(castToOrderedDistribution(value));
2992        } else if (name.equals("certainty")) {
2993          this.getCertainty().add((EvidenceCertaintyComponent) value);
2994        } else
2995          return super.setProperty(name, value);
2996        return value;
2997      }
2998
2999      @Override
3000      public Base makeProperty(int hash, String name) throws FHIRException {
3001        switch (hash) {
3002        case 116079:  return getUrlElement();
3003        case -1618432855:  return addIdentifier(); 
3004        case 351608024:  return getVersionElement();
3005        case 110371416:  return getTitleElement();
3006        case -892481550:  return getStatusElement();
3007        case -669707736:  return addUseContext(); 
3008        case 3076014:  return getDateElement();
3009        case 223539345:  return getApprovalDateElement();
3010        case -1687512484:  return getLastReviewDateElement();
3011        case -1895276325:  return addContributor(); 
3012        case 666807069:  return addRelatedArtifact(); 
3013        case -1724546052:  return getDescriptionElement();
3014        case 1314395906:  return getAssertionElement();
3015        case 3387378:  return addNote(); 
3016        case 2060829908:  return getReferentGroup();
3017        case -1807222545:  return addVariableDefinition(); 
3018        case 672726254:  return getSynthesisType();
3019        case -1955265373:  return getStudyType();
3020        case -2081261232:  return addStatistic(); 
3021        case -1580708220:  return addDistribution(); 
3022        case -1404142937:  return addCertainty(); 
3023        default: return super.makeProperty(hash, name);
3024        }
3025
3026      }
3027
3028      @Override
3029      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
3030        switch (hash) {
3031        case 116079: /*url*/ return new String[] {"uri"};
3032        case -1618432855: /*identifier*/ return new String[] {"Identifier"};
3033        case 351608024: /*version*/ return new String[] {"string"};
3034        case 110371416: /*title*/ return new String[] {"string"};
3035        case -892481550: /*status*/ return new String[] {"code"};
3036        case -669707736: /*useContext*/ return new String[] {"UsageContext"};
3037        case 3076014: /*date*/ return new String[] {"dateTime"};
3038        case 223539345: /*approvalDate*/ return new String[] {"date"};
3039        case -1687512484: /*lastReviewDate*/ return new String[] {"date"};
3040        case -1895276325: /*contributor*/ return new String[] {"Contributor"};
3041        case 666807069: /*relatedArtifact*/ return new String[] {"RelatedArtifact"};
3042        case -1724546052: /*description*/ return new String[] {"markdown"};
3043        case 1314395906: /*assertion*/ return new String[] {"markdown"};
3044        case 3387378: /*note*/ return new String[] {"Annotation"};
3045        case 2060829908: /*referentGroup*/ return new String[] {};
3046        case -1807222545: /*variableDefinition*/ return new String[] {};
3047        case 672726254: /*synthesisType*/ return new String[] {"CodeableConcept"};
3048        case -1955265373: /*studyType*/ return new String[] {"CodeableConcept"};
3049        case -2081261232: /*statistic*/ return new String[] {"Statistic"};
3050        case -1580708220: /*distribution*/ return new String[] {"OrderedDistribution"};
3051        case -1404142937: /*certainty*/ return new String[] {};
3052        default: return super.getTypesForProperty(hash, name);
3053        }
3054
3055      }
3056
3057      @Override
3058      public Base addChild(String name) throws FHIRException {
3059        if (name.equals("url")) {
3060          throw new FHIRException("Cannot call addChild on a primitive type Evidence.url");
3061        }
3062        else if (name.equals("identifier")) {
3063          return addIdentifier();
3064        }
3065        else if (name.equals("version")) {
3066          throw new FHIRException("Cannot call addChild on a primitive type Evidence.version");
3067        }
3068        else if (name.equals("title")) {
3069          throw new FHIRException("Cannot call addChild on a primitive type Evidence.title");
3070        }
3071        else if (name.equals("status")) {
3072          throw new FHIRException("Cannot call addChild on a primitive type Evidence.status");
3073        }
3074        else if (name.equals("useContext")) {
3075          return addUseContext();
3076        }
3077        else if (name.equals("date")) {
3078          throw new FHIRException("Cannot call addChild on a primitive type Evidence.date");
3079        }
3080        else if (name.equals("approvalDate")) {
3081          throw new FHIRException("Cannot call addChild on a primitive type Evidence.approvalDate");
3082        }
3083        else if (name.equals("lastReviewDate")) {
3084          throw new FHIRException("Cannot call addChild on a primitive type Evidence.lastReviewDate");
3085        }
3086        else if (name.equals("contributor")) {
3087          return addContributor();
3088        }
3089        else if (name.equals("relatedArtifact")) {
3090          return addRelatedArtifact();
3091        }
3092        else if (name.equals("description")) {
3093          throw new FHIRException("Cannot call addChild on a primitive type Evidence.description");
3094        }
3095        else if (name.equals("assertion")) {
3096          throw new FHIRException("Cannot call addChild on a primitive type Evidence.assertion");
3097        }
3098        else if (name.equals("note")) {
3099          return addNote();
3100        }
3101        else if (name.equals("referentGroup")) {
3102          this.referentGroup = new EvidenceReferentGroupComponent();
3103          return this.referentGroup;
3104        }
3105        else if (name.equals("variableDefinition")) {
3106          return addVariableDefinition();
3107        }
3108        else if (name.equals("synthesisType")) {
3109          this.synthesisType = new CodeableConcept();
3110          return this.synthesisType;
3111        }
3112        else if (name.equals("studyType")) {
3113          this.studyType = new CodeableConcept();
3114          return this.studyType;
3115        }
3116        else if (name.equals("statistic")) {
3117          return addStatistic();
3118        }
3119        else if (name.equals("distribution")) {
3120          return addDistribution();
3121        }
3122        else if (name.equals("certainty")) {
3123          return addCertainty();
3124        }
3125        else
3126          return super.addChild(name);
3127      }
3128
3129  public String fhirType() {
3130    return "Evidence";
3131
3132  }
3133
3134      public Evidence copy() {
3135        Evidence dst = new Evidence();
3136        copyValues(dst);
3137        return dst;
3138      }
3139
3140      public void copyValues(Evidence dst) {
3141        super.copyValues(dst);
3142        dst.url = url == null ? null : url.copy();
3143        if (identifier != null) {
3144          dst.identifier = new ArrayList<Identifier>();
3145          for (Identifier i : identifier)
3146            dst.identifier.add(i.copy());
3147        };
3148        dst.version = version == null ? null : version.copy();
3149        dst.title = title == null ? null : title.copy();
3150        dst.status = status == null ? null : status.copy();
3151        if (useContext != null) {
3152          dst.useContext = new ArrayList<UsageContext>();
3153          for (UsageContext i : useContext)
3154            dst.useContext.add(i.copy());
3155        };
3156        dst.date = date == null ? null : date.copy();
3157        dst.approvalDate = approvalDate == null ? null : approvalDate.copy();
3158        dst.lastReviewDate = lastReviewDate == null ? null : lastReviewDate.copy();
3159        if (contributor != null) {
3160          dst.contributor = new ArrayList<Contributor>();
3161          for (Contributor i : contributor)
3162            dst.contributor.add(i.copy());
3163        };
3164        if (relatedArtifact != null) {
3165          dst.relatedArtifact = new ArrayList<RelatedArtifact>();
3166          for (RelatedArtifact i : relatedArtifact)
3167            dst.relatedArtifact.add(i.copy());
3168        };
3169        dst.description = description == null ? null : description.copy();
3170        dst.assertion = assertion == null ? null : assertion.copy();
3171        if (note != null) {
3172          dst.note = new ArrayList<Annotation>();
3173          for (Annotation i : note)
3174            dst.note.add(i.copy());
3175        };
3176        dst.referentGroup = referentGroup == null ? null : referentGroup.copy();
3177        if (variableDefinition != null) {
3178          dst.variableDefinition = new ArrayList<EvidenceVariableDefinitionComponent>();
3179          for (EvidenceVariableDefinitionComponent i : variableDefinition)
3180            dst.variableDefinition.add(i.copy());
3181        };
3182        dst.synthesisType = synthesisType == null ? null : synthesisType.copy();
3183        dst.studyType = studyType == null ? null : studyType.copy();
3184        if (statistic != null) {
3185          dst.statistic = new ArrayList<Statistic>();
3186          for (Statistic i : statistic)
3187            dst.statistic.add(i.copy());
3188        };
3189        if (distribution != null) {
3190          dst.distribution = new ArrayList<OrderedDistribution>();
3191          for (OrderedDistribution i : distribution)
3192            dst.distribution.add(i.copy());
3193        };
3194        if (certainty != null) {
3195          dst.certainty = new ArrayList<EvidenceCertaintyComponent>();
3196          for (EvidenceCertaintyComponent i : certainty)
3197            dst.certainty.add(i.copy());
3198        };
3199      }
3200
3201      protected Evidence typedCopy() {
3202        return copy();
3203      }
3204
3205      @Override
3206      public boolean equalsDeep(Base other_) {
3207        if (!super.equalsDeep(other_))
3208          return false;
3209        if (!(other_ instanceof Evidence))
3210          return false;
3211        Evidence o = (Evidence) other_;
3212        return compareDeep(identifier, o.identifier, true) && compareDeep(approvalDate, o.approvalDate, true)
3213           && compareDeep(lastReviewDate, o.lastReviewDate, true) && compareDeep(contributor, o.contributor, true)
3214           && compareDeep(relatedArtifact, o.relatedArtifact, true) && compareDeep(assertion, o.assertion, true)
3215           && compareDeep(note, o.note, true) && compareDeep(referentGroup, o.referentGroup, true) && compareDeep(variableDefinition, o.variableDefinition, true)
3216           && compareDeep(synthesisType, o.synthesisType, true) && compareDeep(studyType, o.studyType, true)
3217           && compareDeep(statistic, o.statistic, true) && compareDeep(distribution, o.distribution, true)
3218           && compareDeep(certainty, o.certainty, true);
3219      }
3220
3221      @Override
3222      public boolean equalsShallow(Base other_) {
3223        if (!super.equalsShallow(other_))
3224          return false;
3225        if (!(other_ instanceof Evidence))
3226          return false;
3227        Evidence o = (Evidence) other_;
3228        return compareValues(approvalDate, o.approvalDate, true) && compareValues(lastReviewDate, o.lastReviewDate, true)
3229           && compareValues(assertion, o.assertion, true);
3230      }
3231
3232      public boolean isEmpty() {
3233        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, approvalDate, lastReviewDate
3234          , contributor, relatedArtifact, assertion, note, referentGroup, variableDefinition
3235          , synthesisType, studyType, statistic, distribution, certainty);
3236      }
3237
3238  @Override
3239  public ResourceType getResourceType() {
3240    return ResourceType.Evidence;
3241   }
3242
3243 /**
3244   * Search parameter: <b>date</b>
3245   * <p>
3246   * Description: <b>The evidence publication date</b><br>
3247   * Type: <b>date</b><br>
3248   * Path: <b>Evidence.date</b><br>
3249   * </p>
3250   */
3251  @SearchParamDefinition(name="date", path="Evidence.date", description="The evidence publication date", type="date" )
3252  public static final String SP_DATE = "date";
3253 /**
3254   * <b>Fluent Client</b> search parameter constant for <b>date</b>
3255   * <p>
3256   * Description: <b>The evidence publication date</b><br>
3257   * Type: <b>date</b><br>
3258   * Path: <b>Evidence.date</b><br>
3259   * </p>
3260   */
3261  public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE);
3262
3263 /**
3264   * Search parameter: <b>identifier</b>
3265   * <p>
3266   * Description: <b>External identifier for the evidence</b><br>
3267   * Type: <b>token</b><br>
3268   * Path: <b>Evidence.identifier</b><br>
3269   * </p>
3270   */
3271  @SearchParamDefinition(name="identifier", path="Evidence.identifier", description="External identifier for the evidence", type="token" )
3272  public static final String SP_IDENTIFIER = "identifier";
3273 /**
3274   * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
3275   * <p>
3276   * Description: <b>External identifier for the evidence</b><br>
3277   * Type: <b>token</b><br>
3278   * Path: <b>Evidence.identifier</b><br>
3279   * </p>
3280   */
3281  public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
3282
3283 /**
3284   * Search parameter: <b>context-quantity</b>
3285   * <p>
3286   * Description: <b>A quantity- or range-valued use context assigned to the evidence</b><br>
3287   * Type: <b>quantity</b><br>
3288   * Path: <b>Evidence.useContext.valueQuantity, Evidence.useContext.valueRange</b><br>
3289   * </p>
3290   */
3291  @SearchParamDefinition(name="context-quantity", path="(Evidence.useContext.value as Quantity) | (Evidence.useContext.value as Range)", description="A quantity- or range-valued use context assigned to the evidence", type="quantity" )
3292  public static final String SP_CONTEXT_QUANTITY = "context-quantity";
3293 /**
3294   * <b>Fluent Client</b> search parameter constant for <b>context-quantity</b>
3295   * <p>
3296   * Description: <b>A quantity- or range-valued use context assigned to the evidence</b><br>
3297   * Type: <b>quantity</b><br>
3298   * Path: <b>Evidence.useContext.valueQuantity, Evidence.useContext.valueRange</b><br>
3299   * </p>
3300   */
3301  public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY);
3302
3303 /**
3304   * Search parameter: <b>context-type-value</b>
3305   * <p>
3306   * Description: <b>A use context type and value assigned to the evidence</b><br>
3307   * Type: <b>composite</b><br>
3308   * Path: <b></b><br>
3309   * </p>
3310   */
3311  @SearchParamDefinition(name="context-type-value", path="Evidence.useContext", description="A use context type and value assigned to the evidence", type="composite", compositeOf={"context-type", "context"} )
3312  public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value";
3313 /**
3314   * <b>Fluent Client</b> search parameter constant for <b>context-type-value</b>
3315   * <p>
3316   * Description: <b>A use context type and value assigned to the evidence</b><br>
3317   * Type: <b>composite</b><br>
3318   * Path: <b></b><br>
3319   * </p>
3320   */
3321  public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam> CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam>(SP_CONTEXT_TYPE_VALUE);
3322
3323 /**
3324   * Search parameter: <b>context</b>
3325   * <p>
3326   * Description: <b>A use context assigned to the evidence</b><br>
3327   * Type: <b>token</b><br>
3328   * Path: <b>Evidence.useContext.valueCodeableConcept</b><br>
3329   * </p>
3330   */
3331  @SearchParamDefinition(name="context", path="(Evidence.useContext.value as CodeableConcept)", description="A use context assigned to the evidence", type="token" )
3332  public static final String SP_CONTEXT = "context";
3333 /**
3334   * <b>Fluent Client</b> search parameter constant for <b>context</b>
3335   * <p>
3336   * Description: <b>A use context assigned to the evidence</b><br>
3337   * Type: <b>token</b><br>
3338   * Path: <b>Evidence.useContext.valueCodeableConcept</b><br>
3339   * </p>
3340   */
3341  public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT);
3342
3343 /**
3344   * Search parameter: <b>description</b>
3345   * <p>
3346   * Description: <b>The description of the evidence</b><br>
3347   * Type: <b>string</b><br>
3348   * Path: <b>Evidence.description</b><br>
3349   * </p>
3350   */
3351  @SearchParamDefinition(name="description", path="Evidence.description", description="The description of the evidence", type="string" )
3352  public static final String SP_DESCRIPTION = "description";
3353 /**
3354   * <b>Fluent Client</b> search parameter constant for <b>description</b>
3355   * <p>
3356   * Description: <b>The description of the evidence</b><br>
3357   * Type: <b>string</b><br>
3358   * Path: <b>Evidence.description</b><br>
3359   * </p>
3360   */
3361  public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION);
3362
3363 /**
3364   * Search parameter: <b>context-type</b>
3365   * <p>
3366   * Description: <b>A type of use context assigned to the evidence</b><br>
3367   * Type: <b>token</b><br>
3368   * Path: <b>Evidence.useContext.code</b><br>
3369   * </p>
3370   */
3371  @SearchParamDefinition(name="context-type", path="Evidence.useContext.code", description="A type of use context assigned to the evidence", type="token" )
3372  public static final String SP_CONTEXT_TYPE = "context-type";
3373 /**
3374   * <b>Fluent Client</b> search parameter constant for <b>context-type</b>
3375   * <p>
3376   * Description: <b>A type of use context assigned to the evidence</b><br>
3377   * Type: <b>token</b><br>
3378   * Path: <b>Evidence.useContext.code</b><br>
3379   * </p>
3380   */
3381  public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE);
3382
3383 /**
3384   * Search parameter: <b>title</b>
3385   * <p>
3386   * Description: <b>The human-friendly name of the evidence</b><br>
3387   * Type: <b>string</b><br>
3388   * Path: <b>Evidence.title</b><br>
3389   * </p>
3390   */
3391  @SearchParamDefinition(name="title", path="Evidence.title", description="The human-friendly name of the evidence", type="string" )
3392  public static final String SP_TITLE = "title";
3393 /**
3394   * <b>Fluent Client</b> search parameter constant for <b>title</b>
3395   * <p>
3396   * Description: <b>The human-friendly name of the evidence</b><br>
3397   * Type: <b>string</b><br>
3398   * Path: <b>Evidence.title</b><br>
3399   * </p>
3400   */
3401  public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE);
3402
3403 /**
3404   * Search parameter: <b>version</b>
3405   * <p>
3406   * Description: <b>The business version of the evidence</b><br>
3407   * Type: <b>token</b><br>
3408   * Path: <b>Evidence.version</b><br>
3409   * </p>
3410   */
3411  @SearchParamDefinition(name="version", path="Evidence.version", description="The business version of the evidence", type="token" )
3412  public static final String SP_VERSION = "version";
3413 /**
3414   * <b>Fluent Client</b> search parameter constant for <b>version</b>
3415   * <p>
3416   * Description: <b>The business version of the evidence</b><br>
3417   * Type: <b>token</b><br>
3418   * Path: <b>Evidence.version</b><br>
3419   * </p>
3420   */
3421  public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION);
3422
3423 /**
3424   * Search parameter: <b>url</b>
3425   * <p>
3426   * Description: <b>The uri that identifies the evidence</b><br>
3427   * Type: <b>uri</b><br>
3428   * Path: <b>Evidence.url</b><br>
3429   * </p>
3430   */
3431  @SearchParamDefinition(name="url", path="Evidence.url", description="The uri that identifies the evidence", type="uri" )
3432  public static final String SP_URL = "url";
3433 /**
3434   * <b>Fluent Client</b> search parameter constant for <b>url</b>
3435   * <p>
3436   * Description: <b>The uri that identifies the evidence</b><br>
3437   * Type: <b>uri</b><br>
3438   * Path: <b>Evidence.url</b><br>
3439   * </p>
3440   */
3441  public static final ca.uhn.fhir.rest.gclient.UriClientParam URL = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_URL);
3442
3443 /**
3444   * Search parameter: <b>context-type-quantity</b>
3445   * <p>
3446   * Description: <b>A use context type and quantity- or range-based value assigned to the evidence</b><br>
3447   * Type: <b>composite</b><br>
3448   * Path: <b></b><br>
3449   * </p>
3450   */
3451  @SearchParamDefinition(name="context-type-quantity", path="Evidence.useContext", description="A use context type and quantity- or range-based value assigned to the evidence", type="composite", compositeOf={"context-type", "context-quantity"} )
3452  public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity";
3453 /**
3454   * <b>Fluent Client</b> search parameter constant for <b>context-type-quantity</b>
3455   * <p>
3456   * Description: <b>A use context type and quantity- or range-based value assigned to the evidence</b><br>
3457   * Type: <b>composite</b><br>
3458   * Path: <b></b><br>
3459   * </p>
3460   */
3461  public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam> CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam>(SP_CONTEXT_TYPE_QUANTITY);
3462
3463 /**
3464   * Search parameter: <b>status</b>
3465   * <p>
3466   * Description: <b>The current status of the evidence</b><br>
3467   * Type: <b>token</b><br>
3468   * Path: <b>Evidence.status</b><br>
3469   * </p>
3470   */
3471  @SearchParamDefinition(name="status", path="Evidence.status", description="The current status of the evidence", type="token" )
3472  public static final String SP_STATUS = "status";
3473 /**
3474   * <b>Fluent Client</b> search parameter constant for <b>status</b>
3475   * <p>
3476   * Description: <b>The current status of the evidence</b><br>
3477   * Type: <b>token</b><br>
3478   * Path: <b>Evidence.status</b><br>
3479   * </p>
3480   */
3481  public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS);
3482
3483
3484}
3485