001package org.hl7.fhir.dstu3.model;
002
003/*
004  Copyright (c) 2011+, HL7, Inc.
005  All rights reserved.
006  
007  Redistribution and use in source and binary forms, with or without modification, 
008  are permitted provided that the following conditions are met:
009  
010   * Redistributions of source code must retain the above copyright notice, this 
011     list of conditions and the following disclaimer.
012   * Redistributions in binary form must reproduce the above copyright notice, 
013     this list of conditions and the following disclaimer in the documentation 
014     and/or other materials provided with the distribution.
015   * Neither the name of HL7 nor the names of its contributors may be used to 
016     endorse or promote products derived from this software without specific 
017     prior written permission.
018  
019  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
020  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
021  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
022  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
023  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
024  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
025  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
026  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
027  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
028  POSSIBILITY OF SUCH DAMAGE.
029  
030*/
031
032// Generated on Fri, Mar 16, 2018 15:21+1100 for FHIR v3.0.1
033
034import java.util.*;
035
036import org.hl7.fhir.utilities.Utilities;
037import org.hl7.fhir.dstu3.model.Enumerations.*;
038import ca.uhn.fhir.model.api.annotation.ResourceDef;
039import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
040import ca.uhn.fhir.model.api.annotation.Child;
041import ca.uhn.fhir.model.api.annotation.ChildOrder;
042import ca.uhn.fhir.model.api.annotation.Description;
043import ca.uhn.fhir.model.api.annotation.Block;
044import org.hl7.fhir.instance.model.api.*;
045import org.hl7.fhir.exceptions.FHIRException;
046import org.hl7.fhir.exceptions.FHIRFormatError;
047/**
048 * The Measure resource provides the definition of a quality measure.
049 */
050@ResourceDef(name="Measure", profile="http://hl7.org/fhir/StructureDefinition/Measure")
051@ChildOrder(names={"url", "identifier", "version", "name", "title", "status", "experimental", "date", "publisher", "description", "purpose", "usage", "approvalDate", "lastReviewDate", "effectivePeriod", "useContext", "jurisdiction", "topic", "contributor", "contact", "copyright", "relatedArtifact", "library", "disclaimer", "scoring", "compositeScoring", "type", "riskAdjustment", "rateAggregation", "rationale", "clinicalRecommendationStatement", "improvementNotation", "definition", "guidance", "set", "group", "supplementalData"})
052public class Measure extends MetadataResource {
053
054    @Block()
055    public static class MeasureGroupComponent extends BackboneElement implements IBaseBackboneElement {
056        /**
057         * A unique identifier for the group. This identifier will used to report data for the group in the measure report.
058         */
059        @Child(name = "identifier", type = {Identifier.class}, order=1, min=1, max=1, modifier=false, summary=false)
060        @Description(shortDefinition="Unique identifier", formalDefinition="A unique identifier for the group. This identifier will used to report data for the group in the measure report." )
061        protected Identifier identifier;
062
063        /**
064         * Optional name or short description of this group.
065         */
066        @Child(name = "name", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false)
067        @Description(shortDefinition="Short name", formalDefinition="Optional name or short description of this group." )
068        protected StringType name;
069
070        /**
071         * The human readable description of this population group.
072         */
073        @Child(name = "description", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false)
074        @Description(shortDefinition="Summary description", formalDefinition="The human readable description of this population group." )
075        protected StringType description;
076
077        /**
078         * A population criteria for the measure.
079         */
080        @Child(name = "population", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
081        @Description(shortDefinition="Population criteria", formalDefinition="A population criteria for the measure." )
082        protected List<MeasureGroupPopulationComponent> population;
083
084        /**
085         * The stratifier criteria for the measure report, specified as either the name of a valid CQL expression defined within a referenced library, or a valid FHIR Resource Path.
086         */
087        @Child(name = "stratifier", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
088        @Description(shortDefinition="Stratifier criteria for the measure", formalDefinition="The stratifier criteria for the measure report, specified as either the name of a valid CQL expression defined within a referenced library, or a valid FHIR Resource Path." )
089        protected List<MeasureGroupStratifierComponent> stratifier;
090
091        private static final long serialVersionUID = 1287622059L;
092
093    /**
094     * Constructor
095     */
096      public MeasureGroupComponent() {
097        super();
098      }
099
100    /**
101     * Constructor
102     */
103      public MeasureGroupComponent(Identifier identifier) {
104        super();
105        this.identifier = identifier;
106      }
107
108        /**
109         * @return {@link #identifier} (A unique identifier for the group. This identifier will used to report data for the group in the measure report.)
110         */
111        public Identifier getIdentifier() { 
112          if (this.identifier == null)
113            if (Configuration.errorOnAutoCreate())
114              throw new Error("Attempt to auto-create MeasureGroupComponent.identifier");
115            else if (Configuration.doAutoCreate())
116              this.identifier = new Identifier(); // cc
117          return this.identifier;
118        }
119
120        public boolean hasIdentifier() { 
121          return this.identifier != null && !this.identifier.isEmpty();
122        }
123
124        /**
125         * @param value {@link #identifier} (A unique identifier for the group. This identifier will used to report data for the group in the measure report.)
126         */
127        public MeasureGroupComponent setIdentifier(Identifier value)  { 
128          this.identifier = value;
129          return this;
130        }
131
132        /**
133         * @return {@link #name} (Optional name or short description of this group.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
134         */
135        public StringType getNameElement() { 
136          if (this.name == null)
137            if (Configuration.errorOnAutoCreate())
138              throw new Error("Attempt to auto-create MeasureGroupComponent.name");
139            else if (Configuration.doAutoCreate())
140              this.name = new StringType(); // bb
141          return this.name;
142        }
143
144        public boolean hasNameElement() { 
145          return this.name != null && !this.name.isEmpty();
146        }
147
148        public boolean hasName() { 
149          return this.name != null && !this.name.isEmpty();
150        }
151
152        /**
153         * @param value {@link #name} (Optional name or short description of this group.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
154         */
155        public MeasureGroupComponent setNameElement(StringType value) { 
156          this.name = value;
157          return this;
158        }
159
160        /**
161         * @return Optional name or short description of this group.
162         */
163        public String getName() { 
164          return this.name == null ? null : this.name.getValue();
165        }
166
167        /**
168         * @param value Optional name or short description of this group.
169         */
170        public MeasureGroupComponent setName(String value) { 
171          if (Utilities.noString(value))
172            this.name = null;
173          else {
174            if (this.name == null)
175              this.name = new StringType();
176            this.name.setValue(value);
177          }
178          return this;
179        }
180
181        /**
182         * @return {@link #description} (The human readable description of this population group.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
183         */
184        public StringType getDescriptionElement() { 
185          if (this.description == null)
186            if (Configuration.errorOnAutoCreate())
187              throw new Error("Attempt to auto-create MeasureGroupComponent.description");
188            else if (Configuration.doAutoCreate())
189              this.description = new StringType(); // bb
190          return this.description;
191        }
192
193        public boolean hasDescriptionElement() { 
194          return this.description != null && !this.description.isEmpty();
195        }
196
197        public boolean hasDescription() { 
198          return this.description != null && !this.description.isEmpty();
199        }
200
201        /**
202         * @param value {@link #description} (The human readable description of this population group.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
203         */
204        public MeasureGroupComponent setDescriptionElement(StringType value) { 
205          this.description = value;
206          return this;
207        }
208
209        /**
210         * @return The human readable description of this population group.
211         */
212        public String getDescription() { 
213          return this.description == null ? null : this.description.getValue();
214        }
215
216        /**
217         * @param value The human readable description of this population group.
218         */
219        public MeasureGroupComponent setDescription(String value) { 
220          if (Utilities.noString(value))
221            this.description = null;
222          else {
223            if (this.description == null)
224              this.description = new StringType();
225            this.description.setValue(value);
226          }
227          return this;
228        }
229
230        /**
231         * @return {@link #population} (A population criteria for the measure.)
232         */
233        public List<MeasureGroupPopulationComponent> getPopulation() { 
234          if (this.population == null)
235            this.population = new ArrayList<MeasureGroupPopulationComponent>();
236          return this.population;
237        }
238
239        /**
240         * @return Returns a reference to <code>this</code> for easy method chaining
241         */
242        public MeasureGroupComponent setPopulation(List<MeasureGroupPopulationComponent> thePopulation) { 
243          this.population = thePopulation;
244          return this;
245        }
246
247        public boolean hasPopulation() { 
248          if (this.population == null)
249            return false;
250          for (MeasureGroupPopulationComponent item : this.population)
251            if (!item.isEmpty())
252              return true;
253          return false;
254        }
255
256        public MeasureGroupPopulationComponent addPopulation() { //3
257          MeasureGroupPopulationComponent t = new MeasureGroupPopulationComponent();
258          if (this.population == null)
259            this.population = new ArrayList<MeasureGroupPopulationComponent>();
260          this.population.add(t);
261          return t;
262        }
263
264        public MeasureGroupComponent addPopulation(MeasureGroupPopulationComponent t) { //3
265          if (t == null)
266            return this;
267          if (this.population == null)
268            this.population = new ArrayList<MeasureGroupPopulationComponent>();
269          this.population.add(t);
270          return this;
271        }
272
273        /**
274         * @return The first repetition of repeating field {@link #population}, creating it if it does not already exist
275         */
276        public MeasureGroupPopulationComponent getPopulationFirstRep() { 
277          if (getPopulation().isEmpty()) {
278            addPopulation();
279          }
280          return getPopulation().get(0);
281        }
282
283        /**
284         * @return {@link #stratifier} (The stratifier criteria for the measure report, specified as either the name of a valid CQL expression defined within a referenced library, or a valid FHIR Resource Path.)
285         */
286        public List<MeasureGroupStratifierComponent> getStratifier() { 
287          if (this.stratifier == null)
288            this.stratifier = new ArrayList<MeasureGroupStratifierComponent>();
289          return this.stratifier;
290        }
291
292        /**
293         * @return Returns a reference to <code>this</code> for easy method chaining
294         */
295        public MeasureGroupComponent setStratifier(List<MeasureGroupStratifierComponent> theStratifier) { 
296          this.stratifier = theStratifier;
297          return this;
298        }
299
300        public boolean hasStratifier() { 
301          if (this.stratifier == null)
302            return false;
303          for (MeasureGroupStratifierComponent item : this.stratifier)
304            if (!item.isEmpty())
305              return true;
306          return false;
307        }
308
309        public MeasureGroupStratifierComponent addStratifier() { //3
310          MeasureGroupStratifierComponent t = new MeasureGroupStratifierComponent();
311          if (this.stratifier == null)
312            this.stratifier = new ArrayList<MeasureGroupStratifierComponent>();
313          this.stratifier.add(t);
314          return t;
315        }
316
317        public MeasureGroupComponent addStratifier(MeasureGroupStratifierComponent t) { //3
318          if (t == null)
319            return this;
320          if (this.stratifier == null)
321            this.stratifier = new ArrayList<MeasureGroupStratifierComponent>();
322          this.stratifier.add(t);
323          return this;
324        }
325
326        /**
327         * @return The first repetition of repeating field {@link #stratifier}, creating it if it does not already exist
328         */
329        public MeasureGroupStratifierComponent getStratifierFirstRep() { 
330          if (getStratifier().isEmpty()) {
331            addStratifier();
332          }
333          return getStratifier().get(0);
334        }
335
336        protected void listChildren(List<Property> children) {
337          super.listChildren(children);
338          children.add(new Property("identifier", "Identifier", "A unique identifier for the group. This identifier will used to report data for the group in the measure report.", 0, 1, identifier));
339          children.add(new Property("name", "string", "Optional name or short description of this group.", 0, 1, name));
340          children.add(new Property("description", "string", "The human readable description of this population group.", 0, 1, description));
341          children.add(new Property("population", "", "A population criteria for the measure.", 0, java.lang.Integer.MAX_VALUE, population));
342          children.add(new Property("stratifier", "", "The stratifier criteria for the measure report, specified as either the name of a valid CQL expression defined within a referenced library, or a valid FHIR Resource Path.", 0, java.lang.Integer.MAX_VALUE, stratifier));
343        }
344
345        @Override
346        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
347          switch (_hash) {
348          case -1618432855: /*identifier*/  return new Property("identifier", "Identifier", "A unique identifier for the group. This identifier will used to report data for the group in the measure report.", 0, 1, identifier);
349          case 3373707: /*name*/  return new Property("name", "string", "Optional name or short description of this group.", 0, 1, name);
350          case -1724546052: /*description*/  return new Property("description", "string", "The human readable description of this population group.", 0, 1, description);
351          case -2023558323: /*population*/  return new Property("population", "", "A population criteria for the measure.", 0, java.lang.Integer.MAX_VALUE, population);
352          case 90983669: /*stratifier*/  return new Property("stratifier", "", "The stratifier criteria for the measure report, specified as either the name of a valid CQL expression defined within a referenced library, or a valid FHIR Resource Path.", 0, java.lang.Integer.MAX_VALUE, stratifier);
353          default: return super.getNamedProperty(_hash, _name, _checkValid);
354          }
355
356        }
357
358      @Override
359      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
360        switch (hash) {
361        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : new Base[] {this.identifier}; // Identifier
362        case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType
363        case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType
364        case -2023558323: /*population*/ return this.population == null ? new Base[0] : this.population.toArray(new Base[this.population.size()]); // MeasureGroupPopulationComponent
365        case 90983669: /*stratifier*/ return this.stratifier == null ? new Base[0] : this.stratifier.toArray(new Base[this.stratifier.size()]); // MeasureGroupStratifierComponent
366        default: return super.getProperty(hash, name, checkValid);
367        }
368
369      }
370
371      @Override
372      public Base setProperty(int hash, String name, Base value) throws FHIRException {
373        switch (hash) {
374        case -1618432855: // identifier
375          this.identifier = castToIdentifier(value); // Identifier
376          return value;
377        case 3373707: // name
378          this.name = castToString(value); // StringType
379          return value;
380        case -1724546052: // description
381          this.description = castToString(value); // StringType
382          return value;
383        case -2023558323: // population
384          this.getPopulation().add((MeasureGroupPopulationComponent) value); // MeasureGroupPopulationComponent
385          return value;
386        case 90983669: // stratifier
387          this.getStratifier().add((MeasureGroupStratifierComponent) value); // MeasureGroupStratifierComponent
388          return value;
389        default: return super.setProperty(hash, name, value);
390        }
391
392      }
393
394      @Override
395      public Base setProperty(String name, Base value) throws FHIRException {
396        if (name.equals("identifier")) {
397          this.identifier = castToIdentifier(value); // Identifier
398        } else if (name.equals("name")) {
399          this.name = castToString(value); // StringType
400        } else if (name.equals("description")) {
401          this.description = castToString(value); // StringType
402        } else if (name.equals("population")) {
403          this.getPopulation().add((MeasureGroupPopulationComponent) value);
404        } else if (name.equals("stratifier")) {
405          this.getStratifier().add((MeasureGroupStratifierComponent) value);
406        } else
407          return super.setProperty(name, value);
408        return value;
409      }
410
411      @Override
412      public Base makeProperty(int hash, String name) throws FHIRException {
413        switch (hash) {
414        case -1618432855:  return getIdentifier(); 
415        case 3373707:  return getNameElement();
416        case -1724546052:  return getDescriptionElement();
417        case -2023558323:  return addPopulation(); 
418        case 90983669:  return addStratifier(); 
419        default: return super.makeProperty(hash, name);
420        }
421
422      }
423
424      @Override
425      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
426        switch (hash) {
427        case -1618432855: /*identifier*/ return new String[] {"Identifier"};
428        case 3373707: /*name*/ return new String[] {"string"};
429        case -1724546052: /*description*/ return new String[] {"string"};
430        case -2023558323: /*population*/ return new String[] {};
431        case 90983669: /*stratifier*/ return new String[] {};
432        default: return super.getTypesForProperty(hash, name);
433        }
434
435      }
436
437      @Override
438      public Base addChild(String name) throws FHIRException {
439        if (name.equals("identifier")) {
440          this.identifier = new Identifier();
441          return this.identifier;
442        }
443        else if (name.equals("name")) {
444          throw new FHIRException("Cannot call addChild on a primitive type Measure.name");
445        }
446        else if (name.equals("description")) {
447          throw new FHIRException("Cannot call addChild on a primitive type Measure.description");
448        }
449        else if (name.equals("population")) {
450          return addPopulation();
451        }
452        else if (name.equals("stratifier")) {
453          return addStratifier();
454        }
455        else
456          return super.addChild(name);
457      }
458
459      public MeasureGroupComponent copy() {
460        MeasureGroupComponent dst = new MeasureGroupComponent();
461        copyValues(dst);
462        dst.identifier = identifier == null ? null : identifier.copy();
463        dst.name = name == null ? null : name.copy();
464        dst.description = description == null ? null : description.copy();
465        if (population != null) {
466          dst.population = new ArrayList<MeasureGroupPopulationComponent>();
467          for (MeasureGroupPopulationComponent i : population)
468            dst.population.add(i.copy());
469        };
470        if (stratifier != null) {
471          dst.stratifier = new ArrayList<MeasureGroupStratifierComponent>();
472          for (MeasureGroupStratifierComponent i : stratifier)
473            dst.stratifier.add(i.copy());
474        };
475        return dst;
476      }
477
478      @Override
479      public boolean equalsDeep(Base other_) {
480        if (!super.equalsDeep(other_))
481          return false;
482        if (!(other_ instanceof MeasureGroupComponent))
483          return false;
484        MeasureGroupComponent o = (MeasureGroupComponent) other_;
485        return compareDeep(identifier, o.identifier, true) && compareDeep(name, o.name, true) && compareDeep(description, o.description, true)
486           && compareDeep(population, o.population, true) && compareDeep(stratifier, o.stratifier, true);
487      }
488
489      @Override
490      public boolean equalsShallow(Base other_) {
491        if (!super.equalsShallow(other_))
492          return false;
493        if (!(other_ instanceof MeasureGroupComponent))
494          return false;
495        MeasureGroupComponent o = (MeasureGroupComponent) other_;
496        return compareValues(name, o.name, true) && compareValues(description, o.description, true);
497      }
498
499      public boolean isEmpty() {
500        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, name, description
501          , population, stratifier);
502      }
503
504  public String fhirType() {
505    return "Measure.group";
506
507  }
508
509  }
510
511    @Block()
512    public static class MeasureGroupPopulationComponent extends BackboneElement implements IBaseBackboneElement {
513        /**
514         * A unique identifier for the population criteria. This identifier is used to report data against this criteria within the measure report.
515         */
516        @Child(name = "identifier", type = {Identifier.class}, order=1, min=0, max=1, modifier=false, summary=false)
517        @Description(shortDefinition="Unique identifier", formalDefinition="A unique identifier for the population criteria. This identifier is used to report data against this criteria within the measure report." )
518        protected Identifier identifier;
519
520        /**
521         * The type of population criteria.
522         */
523        @Child(name = "code", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false)
524        @Description(shortDefinition="initial-population | numerator | numerator-exclusion | denominator | denominator-exclusion | denominator-exception | measure-population | measure-population-exclusion | measure-observation", formalDefinition="The type of population criteria." )
525        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-population")
526        protected CodeableConcept code;
527
528        /**
529         * Optional name or short description of this population.
530         */
531        @Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false)
532        @Description(shortDefinition="Short name", formalDefinition="Optional name or short description of this population." )
533        protected StringType name;
534
535        /**
536         * The human readable description of this population criteria.
537         */
538        @Child(name = "description", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false)
539        @Description(shortDefinition="The human readable description of this population criteria", formalDefinition="The human readable description of this population criteria." )
540        protected StringType description;
541
542        /**
543         * The name of a valid referenced CQL expression (may be namespaced) that defines this population criteria.
544         */
545        @Child(name = "criteria", type = {StringType.class}, order=5, min=1, max=1, modifier=false, summary=false)
546        @Description(shortDefinition="The name of a valid referenced CQL expression (may be namespaced) that defines this population criteria", formalDefinition="The name of a valid referenced CQL expression (may be namespaced) that defines this population criteria." )
547        protected StringType criteria;
548
549        private static final long serialVersionUID = -561575429L;
550
551    /**
552     * Constructor
553     */
554      public MeasureGroupPopulationComponent() {
555        super();
556      }
557
558    /**
559     * Constructor
560     */
561      public MeasureGroupPopulationComponent(StringType criteria) {
562        super();
563        this.criteria = criteria;
564      }
565
566        /**
567         * @return {@link #identifier} (A unique identifier for the population criteria. This identifier is used to report data against this criteria within the measure report.)
568         */
569        public Identifier getIdentifier() { 
570          if (this.identifier == null)
571            if (Configuration.errorOnAutoCreate())
572              throw new Error("Attempt to auto-create MeasureGroupPopulationComponent.identifier");
573            else if (Configuration.doAutoCreate())
574              this.identifier = new Identifier(); // cc
575          return this.identifier;
576        }
577
578        public boolean hasIdentifier() { 
579          return this.identifier != null && !this.identifier.isEmpty();
580        }
581
582        /**
583         * @param value {@link #identifier} (A unique identifier for the population criteria. This identifier is used to report data against this criteria within the measure report.)
584         */
585        public MeasureGroupPopulationComponent setIdentifier(Identifier value)  { 
586          this.identifier = value;
587          return this;
588        }
589
590        /**
591         * @return {@link #code} (The type of population criteria.)
592         */
593        public CodeableConcept getCode() { 
594          if (this.code == null)
595            if (Configuration.errorOnAutoCreate())
596              throw new Error("Attempt to auto-create MeasureGroupPopulationComponent.code");
597            else if (Configuration.doAutoCreate())
598              this.code = new CodeableConcept(); // cc
599          return this.code;
600        }
601
602        public boolean hasCode() { 
603          return this.code != null && !this.code.isEmpty();
604        }
605
606        /**
607         * @param value {@link #code} (The type of population criteria.)
608         */
609        public MeasureGroupPopulationComponent setCode(CodeableConcept value)  { 
610          this.code = value;
611          return this;
612        }
613
614        /**
615         * @return {@link #name} (Optional name or short description of this population.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
616         */
617        public StringType getNameElement() { 
618          if (this.name == null)
619            if (Configuration.errorOnAutoCreate())
620              throw new Error("Attempt to auto-create MeasureGroupPopulationComponent.name");
621            else if (Configuration.doAutoCreate())
622              this.name = new StringType(); // bb
623          return this.name;
624        }
625
626        public boolean hasNameElement() { 
627          return this.name != null && !this.name.isEmpty();
628        }
629
630        public boolean hasName() { 
631          return this.name != null && !this.name.isEmpty();
632        }
633
634        /**
635         * @param value {@link #name} (Optional name or short description of this population.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
636         */
637        public MeasureGroupPopulationComponent setNameElement(StringType value) { 
638          this.name = value;
639          return this;
640        }
641
642        /**
643         * @return Optional name or short description of this population.
644         */
645        public String getName() { 
646          return this.name == null ? null : this.name.getValue();
647        }
648
649        /**
650         * @param value Optional name or short description of this population.
651         */
652        public MeasureGroupPopulationComponent setName(String value) { 
653          if (Utilities.noString(value))
654            this.name = null;
655          else {
656            if (this.name == null)
657              this.name = new StringType();
658            this.name.setValue(value);
659          }
660          return this;
661        }
662
663        /**
664         * @return {@link #description} (The human readable description of this population criteria.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
665         */
666        public StringType getDescriptionElement() { 
667          if (this.description == null)
668            if (Configuration.errorOnAutoCreate())
669              throw new Error("Attempt to auto-create MeasureGroupPopulationComponent.description");
670            else if (Configuration.doAutoCreate())
671              this.description = new StringType(); // bb
672          return this.description;
673        }
674
675        public boolean hasDescriptionElement() { 
676          return this.description != null && !this.description.isEmpty();
677        }
678
679        public boolean hasDescription() { 
680          return this.description != null && !this.description.isEmpty();
681        }
682
683        /**
684         * @param value {@link #description} (The human readable description of this population criteria.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
685         */
686        public MeasureGroupPopulationComponent setDescriptionElement(StringType value) { 
687          this.description = value;
688          return this;
689        }
690
691        /**
692         * @return The human readable description of this population criteria.
693         */
694        public String getDescription() { 
695          return this.description == null ? null : this.description.getValue();
696        }
697
698        /**
699         * @param value The human readable description of this population criteria.
700         */
701        public MeasureGroupPopulationComponent setDescription(String value) { 
702          if (Utilities.noString(value))
703            this.description = null;
704          else {
705            if (this.description == null)
706              this.description = new StringType();
707            this.description.setValue(value);
708          }
709          return this;
710        }
711
712        /**
713         * @return {@link #criteria} (The name of a valid referenced CQL expression (may be namespaced) that defines this population criteria.). This is the underlying object with id, value and extensions. The accessor "getCriteria" gives direct access to the value
714         */
715        public StringType getCriteriaElement() { 
716          if (this.criteria == null)
717            if (Configuration.errorOnAutoCreate())
718              throw new Error("Attempt to auto-create MeasureGroupPopulationComponent.criteria");
719            else if (Configuration.doAutoCreate())
720              this.criteria = new StringType(); // bb
721          return this.criteria;
722        }
723
724        public boolean hasCriteriaElement() { 
725          return this.criteria != null && !this.criteria.isEmpty();
726        }
727
728        public boolean hasCriteria() { 
729          return this.criteria != null && !this.criteria.isEmpty();
730        }
731
732        /**
733         * @param value {@link #criteria} (The name of a valid referenced CQL expression (may be namespaced) that defines this population criteria.). This is the underlying object with id, value and extensions. The accessor "getCriteria" gives direct access to the value
734         */
735        public MeasureGroupPopulationComponent setCriteriaElement(StringType value) { 
736          this.criteria = value;
737          return this;
738        }
739
740        /**
741         * @return The name of a valid referenced CQL expression (may be namespaced) that defines this population criteria.
742         */
743        public String getCriteria() { 
744          return this.criteria == null ? null : this.criteria.getValue();
745        }
746
747        /**
748         * @param value The name of a valid referenced CQL expression (may be namespaced) that defines this population criteria.
749         */
750        public MeasureGroupPopulationComponent setCriteria(String value) { 
751            if (this.criteria == null)
752              this.criteria = new StringType();
753            this.criteria.setValue(value);
754          return this;
755        }
756
757        protected void listChildren(List<Property> children) {
758          super.listChildren(children);
759          children.add(new Property("identifier", "Identifier", "A unique identifier for the population criteria. This identifier is used to report data against this criteria within the measure report.", 0, 1, identifier));
760          children.add(new Property("code", "CodeableConcept", "The type of population criteria.", 0, 1, code));
761          children.add(new Property("name", "string", "Optional name or short description of this population.", 0, 1, name));
762          children.add(new Property("description", "string", "The human readable description of this population criteria.", 0, 1, description));
763          children.add(new Property("criteria", "string", "The name of a valid referenced CQL expression (may be namespaced) that defines this population criteria.", 0, 1, criteria));
764        }
765
766        @Override
767        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
768          switch (_hash) {
769          case -1618432855: /*identifier*/  return new Property("identifier", "Identifier", "A unique identifier for the population criteria. This identifier is used to report data against this criteria within the measure report.", 0, 1, identifier);
770          case 3059181: /*code*/  return new Property("code", "CodeableConcept", "The type of population criteria.", 0, 1, code);
771          case 3373707: /*name*/  return new Property("name", "string", "Optional name or short description of this population.", 0, 1, name);
772          case -1724546052: /*description*/  return new Property("description", "string", "The human readable description of this population criteria.", 0, 1, description);
773          case 1952046943: /*criteria*/  return new Property("criteria", "string", "The name of a valid referenced CQL expression (may be namespaced) that defines this population criteria.", 0, 1, criteria);
774          default: return super.getNamedProperty(_hash, _name, _checkValid);
775          }
776
777        }
778
779      @Override
780      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
781        switch (hash) {
782        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : new Base[] {this.identifier}; // Identifier
783        case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept
784        case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType
785        case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType
786        case 1952046943: /*criteria*/ return this.criteria == null ? new Base[0] : new Base[] {this.criteria}; // StringType
787        default: return super.getProperty(hash, name, checkValid);
788        }
789
790      }
791
792      @Override
793      public Base setProperty(int hash, String name, Base value) throws FHIRException {
794        switch (hash) {
795        case -1618432855: // identifier
796          this.identifier = castToIdentifier(value); // Identifier
797          return value;
798        case 3059181: // code
799          this.code = castToCodeableConcept(value); // CodeableConcept
800          return value;
801        case 3373707: // name
802          this.name = castToString(value); // StringType
803          return value;
804        case -1724546052: // description
805          this.description = castToString(value); // StringType
806          return value;
807        case 1952046943: // criteria
808          this.criteria = castToString(value); // StringType
809          return value;
810        default: return super.setProperty(hash, name, value);
811        }
812
813      }
814
815      @Override
816      public Base setProperty(String name, Base value) throws FHIRException {
817        if (name.equals("identifier")) {
818          this.identifier = castToIdentifier(value); // Identifier
819        } else if (name.equals("code")) {
820          this.code = castToCodeableConcept(value); // CodeableConcept
821        } else if (name.equals("name")) {
822          this.name = castToString(value); // StringType
823        } else if (name.equals("description")) {
824          this.description = castToString(value); // StringType
825        } else if (name.equals("criteria")) {
826          this.criteria = castToString(value); // StringType
827        } else
828          return super.setProperty(name, value);
829        return value;
830      }
831
832      @Override
833      public Base makeProperty(int hash, String name) throws FHIRException {
834        switch (hash) {
835        case -1618432855:  return getIdentifier(); 
836        case 3059181:  return getCode(); 
837        case 3373707:  return getNameElement();
838        case -1724546052:  return getDescriptionElement();
839        case 1952046943:  return getCriteriaElement();
840        default: return super.makeProperty(hash, name);
841        }
842
843      }
844
845      @Override
846      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
847        switch (hash) {
848        case -1618432855: /*identifier*/ return new String[] {"Identifier"};
849        case 3059181: /*code*/ return new String[] {"CodeableConcept"};
850        case 3373707: /*name*/ return new String[] {"string"};
851        case -1724546052: /*description*/ return new String[] {"string"};
852        case 1952046943: /*criteria*/ return new String[] {"string"};
853        default: return super.getTypesForProperty(hash, name);
854        }
855
856      }
857
858      @Override
859      public Base addChild(String name) throws FHIRException {
860        if (name.equals("identifier")) {
861          this.identifier = new Identifier();
862          return this.identifier;
863        }
864        else if (name.equals("code")) {
865          this.code = new CodeableConcept();
866          return this.code;
867        }
868        else if (name.equals("name")) {
869          throw new FHIRException("Cannot call addChild on a primitive type Measure.name");
870        }
871        else if (name.equals("description")) {
872          throw new FHIRException("Cannot call addChild on a primitive type Measure.description");
873        }
874        else if (name.equals("criteria")) {
875          throw new FHIRException("Cannot call addChild on a primitive type Measure.criteria");
876        }
877        else
878          return super.addChild(name);
879      }
880
881      public MeasureGroupPopulationComponent copy() {
882        MeasureGroupPopulationComponent dst = new MeasureGroupPopulationComponent();
883        copyValues(dst);
884        dst.identifier = identifier == null ? null : identifier.copy();
885        dst.code = code == null ? null : code.copy();
886        dst.name = name == null ? null : name.copy();
887        dst.description = description == null ? null : description.copy();
888        dst.criteria = criteria == null ? null : criteria.copy();
889        return dst;
890      }
891
892      @Override
893      public boolean equalsDeep(Base other_) {
894        if (!super.equalsDeep(other_))
895          return false;
896        if (!(other_ instanceof MeasureGroupPopulationComponent))
897          return false;
898        MeasureGroupPopulationComponent o = (MeasureGroupPopulationComponent) other_;
899        return compareDeep(identifier, o.identifier, true) && compareDeep(code, o.code, true) && compareDeep(name, o.name, true)
900           && compareDeep(description, o.description, true) && compareDeep(criteria, o.criteria, true);
901      }
902
903      @Override
904      public boolean equalsShallow(Base other_) {
905        if (!super.equalsShallow(other_))
906          return false;
907        if (!(other_ instanceof MeasureGroupPopulationComponent))
908          return false;
909        MeasureGroupPopulationComponent o = (MeasureGroupPopulationComponent) other_;
910        return compareValues(name, o.name, true) && compareValues(description, o.description, true) && compareValues(criteria, o.criteria, true)
911          ;
912      }
913
914      public boolean isEmpty() {
915        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, code, name, description
916          , criteria);
917      }
918
919  public String fhirType() {
920    return "Measure.group.population";
921
922  }
923
924  }
925
926    @Block()
927    public static class MeasureGroupStratifierComponent extends BackboneElement implements IBaseBackboneElement {
928        /**
929         * The identifier for the stratifier used to coordinate the reported data back to this stratifier.
930         */
931        @Child(name = "identifier", type = {Identifier.class}, order=1, min=0, max=1, modifier=false, summary=false)
932        @Description(shortDefinition="The identifier for the stratifier used to coordinate the reported data back to this stratifier", formalDefinition="The identifier for the stratifier used to coordinate the reported data back to this stratifier." )
933        protected Identifier identifier;
934
935        /**
936         * The criteria for the stratifier. This must be the name of an expression defined within a referenced library.
937         */
938        @Child(name = "criteria", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false)
939        @Description(shortDefinition="How the measure should be stratified", formalDefinition="The criteria for the stratifier. This must be the name of an expression defined within a referenced library." )
940        protected StringType criteria;
941
942        /**
943         * The path to an element that defines the stratifier, specified as a valid FHIR resource path.
944         */
945        @Child(name = "path", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false)
946        @Description(shortDefinition="Path to the stratifier", formalDefinition="The path to an element that defines the stratifier, specified as a valid FHIR resource path." )
947        protected StringType path;
948
949        private static final long serialVersionUID = -196134448L;
950
951    /**
952     * Constructor
953     */
954      public MeasureGroupStratifierComponent() {
955        super();
956      }
957
958        /**
959         * @return {@link #identifier} (The identifier for the stratifier used to coordinate the reported data back to this stratifier.)
960         */
961        public Identifier getIdentifier() { 
962          if (this.identifier == null)
963            if (Configuration.errorOnAutoCreate())
964              throw new Error("Attempt to auto-create MeasureGroupStratifierComponent.identifier");
965            else if (Configuration.doAutoCreate())
966              this.identifier = new Identifier(); // cc
967          return this.identifier;
968        }
969
970        public boolean hasIdentifier() { 
971          return this.identifier != null && !this.identifier.isEmpty();
972        }
973
974        /**
975         * @param value {@link #identifier} (The identifier for the stratifier used to coordinate the reported data back to this stratifier.)
976         */
977        public MeasureGroupStratifierComponent setIdentifier(Identifier value)  { 
978          this.identifier = value;
979          return this;
980        }
981
982        /**
983         * @return {@link #criteria} (The criteria for the stratifier. This must be the name of an expression defined within a referenced library.). This is the underlying object with id, value and extensions. The accessor "getCriteria" gives direct access to the value
984         */
985        public StringType getCriteriaElement() { 
986          if (this.criteria == null)
987            if (Configuration.errorOnAutoCreate())
988              throw new Error("Attempt to auto-create MeasureGroupStratifierComponent.criteria");
989            else if (Configuration.doAutoCreate())
990              this.criteria = new StringType(); // bb
991          return this.criteria;
992        }
993
994        public boolean hasCriteriaElement() { 
995          return this.criteria != null && !this.criteria.isEmpty();
996        }
997
998        public boolean hasCriteria() { 
999          return this.criteria != null && !this.criteria.isEmpty();
1000        }
1001
1002        /**
1003         * @param value {@link #criteria} (The criteria for the stratifier. This must be the name of an expression defined within a referenced library.). This is the underlying object with id, value and extensions. The accessor "getCriteria" gives direct access to the value
1004         */
1005        public MeasureGroupStratifierComponent setCriteriaElement(StringType value) { 
1006          this.criteria = value;
1007          return this;
1008        }
1009
1010        /**
1011         * @return The criteria for the stratifier. This must be the name of an expression defined within a referenced library.
1012         */
1013        public String getCriteria() { 
1014          return this.criteria == null ? null : this.criteria.getValue();
1015        }
1016
1017        /**
1018         * @param value The criteria for the stratifier. This must be the name of an expression defined within a referenced library.
1019         */
1020        public MeasureGroupStratifierComponent setCriteria(String value) { 
1021          if (Utilities.noString(value))
1022            this.criteria = null;
1023          else {
1024            if (this.criteria == null)
1025              this.criteria = new StringType();
1026            this.criteria.setValue(value);
1027          }
1028          return this;
1029        }
1030
1031        /**
1032         * @return {@link #path} (The path to an element that defines the stratifier, specified as a valid FHIR resource path.). This is the underlying object with id, value and extensions. The accessor "getPath" gives direct access to the value
1033         */
1034        public StringType getPathElement() { 
1035          if (this.path == null)
1036            if (Configuration.errorOnAutoCreate())
1037              throw new Error("Attempt to auto-create MeasureGroupStratifierComponent.path");
1038            else if (Configuration.doAutoCreate())
1039              this.path = new StringType(); // bb
1040          return this.path;
1041        }
1042
1043        public boolean hasPathElement() { 
1044          return this.path != null && !this.path.isEmpty();
1045        }
1046
1047        public boolean hasPath() { 
1048          return this.path != null && !this.path.isEmpty();
1049        }
1050
1051        /**
1052         * @param value {@link #path} (The path to an element that defines the stratifier, specified as a valid FHIR resource path.). This is the underlying object with id, value and extensions. The accessor "getPath" gives direct access to the value
1053         */
1054        public MeasureGroupStratifierComponent setPathElement(StringType value) { 
1055          this.path = value;
1056          return this;
1057        }
1058
1059        /**
1060         * @return The path to an element that defines the stratifier, specified as a valid FHIR resource path.
1061         */
1062        public String getPath() { 
1063          return this.path == null ? null : this.path.getValue();
1064        }
1065
1066        /**
1067         * @param value The path to an element that defines the stratifier, specified as a valid FHIR resource path.
1068         */
1069        public MeasureGroupStratifierComponent setPath(String value) { 
1070          if (Utilities.noString(value))
1071            this.path = null;
1072          else {
1073            if (this.path == null)
1074              this.path = new StringType();
1075            this.path.setValue(value);
1076          }
1077          return this;
1078        }
1079
1080        protected void listChildren(List<Property> children) {
1081          super.listChildren(children);
1082          children.add(new Property("identifier", "Identifier", "The identifier for the stratifier used to coordinate the reported data back to this stratifier.", 0, 1, identifier));
1083          children.add(new Property("criteria", "string", "The criteria for the stratifier. This must be the name of an expression defined within a referenced library.", 0, 1, criteria));
1084          children.add(new Property("path", "string", "The path to an element that defines the stratifier, specified as a valid FHIR resource path.", 0, 1, path));
1085        }
1086
1087        @Override
1088        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
1089          switch (_hash) {
1090          case -1618432855: /*identifier*/  return new Property("identifier", "Identifier", "The identifier for the stratifier used to coordinate the reported data back to this stratifier.", 0, 1, identifier);
1091          case 1952046943: /*criteria*/  return new Property("criteria", "string", "The criteria for the stratifier. This must be the name of an expression defined within a referenced library.", 0, 1, criteria);
1092          case 3433509: /*path*/  return new Property("path", "string", "The path to an element that defines the stratifier, specified as a valid FHIR resource path.", 0, 1, path);
1093          default: return super.getNamedProperty(_hash, _name, _checkValid);
1094          }
1095
1096        }
1097
1098      @Override
1099      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
1100        switch (hash) {
1101        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : new Base[] {this.identifier}; // Identifier
1102        case 1952046943: /*criteria*/ return this.criteria == null ? new Base[0] : new Base[] {this.criteria}; // StringType
1103        case 3433509: /*path*/ return this.path == null ? new Base[0] : new Base[] {this.path}; // StringType
1104        default: return super.getProperty(hash, name, checkValid);
1105        }
1106
1107      }
1108
1109      @Override
1110      public Base setProperty(int hash, String name, Base value) throws FHIRException {
1111        switch (hash) {
1112        case -1618432855: // identifier
1113          this.identifier = castToIdentifier(value); // Identifier
1114          return value;
1115        case 1952046943: // criteria
1116          this.criteria = castToString(value); // StringType
1117          return value;
1118        case 3433509: // path
1119          this.path = castToString(value); // StringType
1120          return value;
1121        default: return super.setProperty(hash, name, value);
1122        }
1123
1124      }
1125
1126      @Override
1127      public Base setProperty(String name, Base value) throws FHIRException {
1128        if (name.equals("identifier")) {
1129          this.identifier = castToIdentifier(value); // Identifier
1130        } else if (name.equals("criteria")) {
1131          this.criteria = castToString(value); // StringType
1132        } else if (name.equals("path")) {
1133          this.path = castToString(value); // StringType
1134        } else
1135          return super.setProperty(name, value);
1136        return value;
1137      }
1138
1139      @Override
1140      public Base makeProperty(int hash, String name) throws FHIRException {
1141        switch (hash) {
1142        case -1618432855:  return getIdentifier(); 
1143        case 1952046943:  return getCriteriaElement();
1144        case 3433509:  return getPathElement();
1145        default: return super.makeProperty(hash, name);
1146        }
1147
1148      }
1149
1150      @Override
1151      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
1152        switch (hash) {
1153        case -1618432855: /*identifier*/ return new String[] {"Identifier"};
1154        case 1952046943: /*criteria*/ return new String[] {"string"};
1155        case 3433509: /*path*/ return new String[] {"string"};
1156        default: return super.getTypesForProperty(hash, name);
1157        }
1158
1159      }
1160
1161      @Override
1162      public Base addChild(String name) throws FHIRException {
1163        if (name.equals("identifier")) {
1164          this.identifier = new Identifier();
1165          return this.identifier;
1166        }
1167        else if (name.equals("criteria")) {
1168          throw new FHIRException("Cannot call addChild on a primitive type Measure.criteria");
1169        }
1170        else if (name.equals("path")) {
1171          throw new FHIRException("Cannot call addChild on a primitive type Measure.path");
1172        }
1173        else
1174          return super.addChild(name);
1175      }
1176
1177      public MeasureGroupStratifierComponent copy() {
1178        MeasureGroupStratifierComponent dst = new MeasureGroupStratifierComponent();
1179        copyValues(dst);
1180        dst.identifier = identifier == null ? null : identifier.copy();
1181        dst.criteria = criteria == null ? null : criteria.copy();
1182        dst.path = path == null ? null : path.copy();
1183        return dst;
1184      }
1185
1186      @Override
1187      public boolean equalsDeep(Base other_) {
1188        if (!super.equalsDeep(other_))
1189          return false;
1190        if (!(other_ instanceof MeasureGroupStratifierComponent))
1191          return false;
1192        MeasureGroupStratifierComponent o = (MeasureGroupStratifierComponent) other_;
1193        return compareDeep(identifier, o.identifier, true) && compareDeep(criteria, o.criteria, true) && compareDeep(path, o.path, true)
1194          ;
1195      }
1196
1197      @Override
1198      public boolean equalsShallow(Base other_) {
1199        if (!super.equalsShallow(other_))
1200          return false;
1201        if (!(other_ instanceof MeasureGroupStratifierComponent))
1202          return false;
1203        MeasureGroupStratifierComponent o = (MeasureGroupStratifierComponent) other_;
1204        return compareValues(criteria, o.criteria, true) && compareValues(path, o.path, true);
1205      }
1206
1207      public boolean isEmpty() {
1208        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, criteria, path
1209          );
1210      }
1211
1212  public String fhirType() {
1213    return "Measure.group.stratifier";
1214
1215  }
1216
1217  }
1218
1219    @Block()
1220    public static class MeasureSupplementalDataComponent extends BackboneElement implements IBaseBackboneElement {
1221        /**
1222         * An identifier for the supplemental data.
1223         */
1224        @Child(name = "identifier", type = {Identifier.class}, order=1, min=0, max=1, modifier=false, summary=false)
1225        @Description(shortDefinition="Identifier, unique within the measure", formalDefinition="An identifier for the supplemental data." )
1226        protected Identifier identifier;
1227
1228        /**
1229         * An indicator of the intended usage for the supplemental data element. Supplemental data indicates the data is additional information requested to augment the measure information. Risk adjustment factor indicates the data is additional information used to calculate risk adjustment factors when applying a risk model to the measure calculation.
1230         */
1231        @Child(name = "usage", type = {CodeableConcept.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1232        @Description(shortDefinition="supplemental-data | risk-adjustment-factor", formalDefinition="An indicator of the intended usage for the supplemental data element. Supplemental data indicates the data is additional information requested to augment the measure information. Risk adjustment factor indicates the data is additional information used to calculate risk adjustment factors when applying a risk model to the measure calculation." )
1233        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-data-usage")
1234        protected List<CodeableConcept> usage;
1235
1236        /**
1237         * The criteria for the supplemental data. This must be the name of a valid expression defined within a referenced library, and defines the data to be returned for this element.
1238         */
1239        @Child(name = "criteria", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false)
1240        @Description(shortDefinition="Expression describing additional data to be reported", formalDefinition="The criteria for the supplemental data. This must be the name of a valid expression defined within a referenced library, and defines the data to be returned for this element." )
1241        protected StringType criteria;
1242
1243        /**
1244         * The supplemental data to be supplied as part of the measure response, specified as a valid FHIR Resource Path.
1245         */
1246        @Child(name = "path", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false)
1247        @Description(shortDefinition="Path to the supplemental data element", formalDefinition="The supplemental data to be supplied as part of the measure response, specified as a valid FHIR Resource Path." )
1248        protected StringType path;
1249
1250        private static final long serialVersionUID = -101576770L;
1251
1252    /**
1253     * Constructor
1254     */
1255      public MeasureSupplementalDataComponent() {
1256        super();
1257      }
1258
1259        /**
1260         * @return {@link #identifier} (An identifier for the supplemental data.)
1261         */
1262        public Identifier getIdentifier() { 
1263          if (this.identifier == null)
1264            if (Configuration.errorOnAutoCreate())
1265              throw new Error("Attempt to auto-create MeasureSupplementalDataComponent.identifier");
1266            else if (Configuration.doAutoCreate())
1267              this.identifier = new Identifier(); // cc
1268          return this.identifier;
1269        }
1270
1271        public boolean hasIdentifier() { 
1272          return this.identifier != null && !this.identifier.isEmpty();
1273        }
1274
1275        /**
1276         * @param value {@link #identifier} (An identifier for the supplemental data.)
1277         */
1278        public MeasureSupplementalDataComponent setIdentifier(Identifier value)  { 
1279          this.identifier = value;
1280          return this;
1281        }
1282
1283        /**
1284         * @return {@link #usage} (An indicator of the intended usage for the supplemental data element. Supplemental data indicates the data is additional information requested to augment the measure information. Risk adjustment factor indicates the data is additional information used to calculate risk adjustment factors when applying a risk model to the measure calculation.)
1285         */
1286        public List<CodeableConcept> getUsage() { 
1287          if (this.usage == null)
1288            this.usage = new ArrayList<CodeableConcept>();
1289          return this.usage;
1290        }
1291
1292        /**
1293         * @return Returns a reference to <code>this</code> for easy method chaining
1294         */
1295        public MeasureSupplementalDataComponent setUsage(List<CodeableConcept> theUsage) { 
1296          this.usage = theUsage;
1297          return this;
1298        }
1299
1300        public boolean hasUsage() { 
1301          if (this.usage == null)
1302            return false;
1303          for (CodeableConcept item : this.usage)
1304            if (!item.isEmpty())
1305              return true;
1306          return false;
1307        }
1308
1309        public CodeableConcept addUsage() { //3
1310          CodeableConcept t = new CodeableConcept();
1311          if (this.usage == null)
1312            this.usage = new ArrayList<CodeableConcept>();
1313          this.usage.add(t);
1314          return t;
1315        }
1316
1317        public MeasureSupplementalDataComponent addUsage(CodeableConcept t) { //3
1318          if (t == null)
1319            return this;
1320          if (this.usage == null)
1321            this.usage = new ArrayList<CodeableConcept>();
1322          this.usage.add(t);
1323          return this;
1324        }
1325
1326        /**
1327         * @return The first repetition of repeating field {@link #usage}, creating it if it does not already exist
1328         */
1329        public CodeableConcept getUsageFirstRep() { 
1330          if (getUsage().isEmpty()) {
1331            addUsage();
1332          }
1333          return getUsage().get(0);
1334        }
1335
1336        /**
1337         * @return {@link #criteria} (The criteria for the supplemental data. This must be the name of a valid expression defined within a referenced library, and defines the data to be returned for this element.). This is the underlying object with id, value and extensions. The accessor "getCriteria" gives direct access to the value
1338         */
1339        public StringType getCriteriaElement() { 
1340          if (this.criteria == null)
1341            if (Configuration.errorOnAutoCreate())
1342              throw new Error("Attempt to auto-create MeasureSupplementalDataComponent.criteria");
1343            else if (Configuration.doAutoCreate())
1344              this.criteria = new StringType(); // bb
1345          return this.criteria;
1346        }
1347
1348        public boolean hasCriteriaElement() { 
1349          return this.criteria != null && !this.criteria.isEmpty();
1350        }
1351
1352        public boolean hasCriteria() { 
1353          return this.criteria != null && !this.criteria.isEmpty();
1354        }
1355
1356        /**
1357         * @param value {@link #criteria} (The criteria for the supplemental data. This must be the name of a valid expression defined within a referenced library, and defines the data to be returned for this element.). This is the underlying object with id, value and extensions. The accessor "getCriteria" gives direct access to the value
1358         */
1359        public MeasureSupplementalDataComponent setCriteriaElement(StringType value) { 
1360          this.criteria = value;
1361          return this;
1362        }
1363
1364        /**
1365         * @return The criteria for the supplemental data. This must be the name of a valid expression defined within a referenced library, and defines the data to be returned for this element.
1366         */
1367        public String getCriteria() { 
1368          return this.criteria == null ? null : this.criteria.getValue();
1369        }
1370
1371        /**
1372         * @param value The criteria for the supplemental data. This must be the name of a valid expression defined within a referenced library, and defines the data to be returned for this element.
1373         */
1374        public MeasureSupplementalDataComponent setCriteria(String value) { 
1375          if (Utilities.noString(value))
1376            this.criteria = null;
1377          else {
1378            if (this.criteria == null)
1379              this.criteria = new StringType();
1380            this.criteria.setValue(value);
1381          }
1382          return this;
1383        }
1384
1385        /**
1386         * @return {@link #path} (The supplemental data to be supplied as part of the measure response, specified as a valid FHIR Resource Path.). This is the underlying object with id, value and extensions. The accessor "getPath" gives direct access to the value
1387         */
1388        public StringType getPathElement() { 
1389          if (this.path == null)
1390            if (Configuration.errorOnAutoCreate())
1391              throw new Error("Attempt to auto-create MeasureSupplementalDataComponent.path");
1392            else if (Configuration.doAutoCreate())
1393              this.path = new StringType(); // bb
1394          return this.path;
1395        }
1396
1397        public boolean hasPathElement() { 
1398          return this.path != null && !this.path.isEmpty();
1399        }
1400
1401        public boolean hasPath() { 
1402          return this.path != null && !this.path.isEmpty();
1403        }
1404
1405        /**
1406         * @param value {@link #path} (The supplemental data to be supplied as part of the measure response, specified as a valid FHIR Resource Path.). This is the underlying object with id, value and extensions. The accessor "getPath" gives direct access to the value
1407         */
1408        public MeasureSupplementalDataComponent setPathElement(StringType value) { 
1409          this.path = value;
1410          return this;
1411        }
1412
1413        /**
1414         * @return The supplemental data to be supplied as part of the measure response, specified as a valid FHIR Resource Path.
1415         */
1416        public String getPath() { 
1417          return this.path == null ? null : this.path.getValue();
1418        }
1419
1420        /**
1421         * @param value The supplemental data to be supplied as part of the measure response, specified as a valid FHIR Resource Path.
1422         */
1423        public MeasureSupplementalDataComponent setPath(String value) { 
1424          if (Utilities.noString(value))
1425            this.path = null;
1426          else {
1427            if (this.path == null)
1428              this.path = new StringType();
1429            this.path.setValue(value);
1430          }
1431          return this;
1432        }
1433
1434        protected void listChildren(List<Property> children) {
1435          super.listChildren(children);
1436          children.add(new Property("identifier", "Identifier", "An identifier for the supplemental data.", 0, 1, identifier));
1437          children.add(new Property("usage", "CodeableConcept", "An indicator of the intended usage for the supplemental data element. Supplemental data indicates the data is additional information requested to augment the measure information. Risk adjustment factor indicates the data is additional information used to calculate risk adjustment factors when applying a risk model to the measure calculation.", 0, java.lang.Integer.MAX_VALUE, usage));
1438          children.add(new Property("criteria", "string", "The criteria for the supplemental data. This must be the name of a valid expression defined within a referenced library, and defines the data to be returned for this element.", 0, 1, criteria));
1439          children.add(new Property("path", "string", "The supplemental data to be supplied as part of the measure response, specified as a valid FHIR Resource Path.", 0, 1, path));
1440        }
1441
1442        @Override
1443        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
1444          switch (_hash) {
1445          case -1618432855: /*identifier*/  return new Property("identifier", "Identifier", "An identifier for the supplemental data.", 0, 1, identifier);
1446          case 111574433: /*usage*/  return new Property("usage", "CodeableConcept", "An indicator of the intended usage for the supplemental data element. Supplemental data indicates the data is additional information requested to augment the measure information. Risk adjustment factor indicates the data is additional information used to calculate risk adjustment factors when applying a risk model to the measure calculation.", 0, java.lang.Integer.MAX_VALUE, usage);
1447          case 1952046943: /*criteria*/  return new Property("criteria", "string", "The criteria for the supplemental data. This must be the name of a valid expression defined within a referenced library, and defines the data to be returned for this element.", 0, 1, criteria);
1448          case 3433509: /*path*/  return new Property("path", "string", "The supplemental data to be supplied as part of the measure response, specified as a valid FHIR Resource Path.", 0, 1, path);
1449          default: return super.getNamedProperty(_hash, _name, _checkValid);
1450          }
1451
1452        }
1453
1454      @Override
1455      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
1456        switch (hash) {
1457        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : new Base[] {this.identifier}; // Identifier
1458        case 111574433: /*usage*/ return this.usage == null ? new Base[0] : this.usage.toArray(new Base[this.usage.size()]); // CodeableConcept
1459        case 1952046943: /*criteria*/ return this.criteria == null ? new Base[0] : new Base[] {this.criteria}; // StringType
1460        case 3433509: /*path*/ return this.path == null ? new Base[0] : new Base[] {this.path}; // StringType
1461        default: return super.getProperty(hash, name, checkValid);
1462        }
1463
1464      }
1465
1466      @Override
1467      public Base setProperty(int hash, String name, Base value) throws FHIRException {
1468        switch (hash) {
1469        case -1618432855: // identifier
1470          this.identifier = castToIdentifier(value); // Identifier
1471          return value;
1472        case 111574433: // usage
1473          this.getUsage().add(castToCodeableConcept(value)); // CodeableConcept
1474          return value;
1475        case 1952046943: // criteria
1476          this.criteria = castToString(value); // StringType
1477          return value;
1478        case 3433509: // path
1479          this.path = castToString(value); // StringType
1480          return value;
1481        default: return super.setProperty(hash, name, value);
1482        }
1483
1484      }
1485
1486      @Override
1487      public Base setProperty(String name, Base value) throws FHIRException {
1488        if (name.equals("identifier")) {
1489          this.identifier = castToIdentifier(value); // Identifier
1490        } else if (name.equals("usage")) {
1491          this.getUsage().add(castToCodeableConcept(value));
1492        } else if (name.equals("criteria")) {
1493          this.criteria = castToString(value); // StringType
1494        } else if (name.equals("path")) {
1495          this.path = castToString(value); // StringType
1496        } else
1497          return super.setProperty(name, value);
1498        return value;
1499      }
1500
1501      @Override
1502      public Base makeProperty(int hash, String name) throws FHIRException {
1503        switch (hash) {
1504        case -1618432855:  return getIdentifier(); 
1505        case 111574433:  return addUsage(); 
1506        case 1952046943:  return getCriteriaElement();
1507        case 3433509:  return getPathElement();
1508        default: return super.makeProperty(hash, name);
1509        }
1510
1511      }
1512
1513      @Override
1514      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
1515        switch (hash) {
1516        case -1618432855: /*identifier*/ return new String[] {"Identifier"};
1517        case 111574433: /*usage*/ return new String[] {"CodeableConcept"};
1518        case 1952046943: /*criteria*/ return new String[] {"string"};
1519        case 3433509: /*path*/ return new String[] {"string"};
1520        default: return super.getTypesForProperty(hash, name);
1521        }
1522
1523      }
1524
1525      @Override
1526      public Base addChild(String name) throws FHIRException {
1527        if (name.equals("identifier")) {
1528          this.identifier = new Identifier();
1529          return this.identifier;
1530        }
1531        else if (name.equals("usage")) {
1532          return addUsage();
1533        }
1534        else if (name.equals("criteria")) {
1535          throw new FHIRException("Cannot call addChild on a primitive type Measure.criteria");
1536        }
1537        else if (name.equals("path")) {
1538          throw new FHIRException("Cannot call addChild on a primitive type Measure.path");
1539        }
1540        else
1541          return super.addChild(name);
1542      }
1543
1544      public MeasureSupplementalDataComponent copy() {
1545        MeasureSupplementalDataComponent dst = new MeasureSupplementalDataComponent();
1546        copyValues(dst);
1547        dst.identifier = identifier == null ? null : identifier.copy();
1548        if (usage != null) {
1549          dst.usage = new ArrayList<CodeableConcept>();
1550          for (CodeableConcept i : usage)
1551            dst.usage.add(i.copy());
1552        };
1553        dst.criteria = criteria == null ? null : criteria.copy();
1554        dst.path = path == null ? null : path.copy();
1555        return dst;
1556      }
1557
1558      @Override
1559      public boolean equalsDeep(Base other_) {
1560        if (!super.equalsDeep(other_))
1561          return false;
1562        if (!(other_ instanceof MeasureSupplementalDataComponent))
1563          return false;
1564        MeasureSupplementalDataComponent o = (MeasureSupplementalDataComponent) other_;
1565        return compareDeep(identifier, o.identifier, true) && compareDeep(usage, o.usage, true) && compareDeep(criteria, o.criteria, true)
1566           && compareDeep(path, o.path, true);
1567      }
1568
1569      @Override
1570      public boolean equalsShallow(Base other_) {
1571        if (!super.equalsShallow(other_))
1572          return false;
1573        if (!(other_ instanceof MeasureSupplementalDataComponent))
1574          return false;
1575        MeasureSupplementalDataComponent o = (MeasureSupplementalDataComponent) other_;
1576        return compareValues(criteria, o.criteria, true) && compareValues(path, o.path, true);
1577      }
1578
1579      public boolean isEmpty() {
1580        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, usage, criteria
1581          , path);
1582      }
1583
1584  public String fhirType() {
1585    return "Measure.supplementalData";
1586
1587  }
1588
1589  }
1590
1591    /**
1592     * A formal identifier that is used to identify this measure when it is represented in other formats, or referenced in a specification, model, design or an instance.
1593     */
1594    @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
1595    @Description(shortDefinition="Additional identifier for the measure", formalDefinition="A formal identifier that is used to identify this measure when it is represented in other formats, or referenced in a specification, model, design or an instance." )
1596    protected List<Identifier> identifier;
1597
1598    /**
1599     * Explaination of why this measure is needed and why it has been designed as it has.
1600     */
1601    @Child(name = "purpose", type = {MarkdownType.class}, order=1, min=0, max=1, modifier=false, summary=false)
1602    @Description(shortDefinition="Why this measure is defined", formalDefinition="Explaination of why this measure is needed and why it has been designed as it has." )
1603    protected MarkdownType purpose;
1604
1605    /**
1606     * A detailed description of how the measure is used from a clinical perspective.
1607     */
1608    @Child(name = "usage", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false)
1609    @Description(shortDefinition="Describes the clinical usage of the measure", formalDefinition="A detailed description of how the measure is used from a clinical perspective." )
1610    protected StringType usage;
1611
1612    /**
1613     * The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.
1614     */
1615    @Child(name = "approvalDate", type = {DateType.class}, order=3, min=0, max=1, modifier=false, summary=false)
1616    @Description(shortDefinition="When the measure 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." )
1617    protected DateType approvalDate;
1618
1619    /**
1620     * The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date.
1621     */
1622    @Child(name = "lastReviewDate", type = {DateType.class}, order=4, min=0, max=1, modifier=false, summary=false)
1623    @Description(shortDefinition="When the measure was last reviewed", formalDefinition="The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date." )
1624    protected DateType lastReviewDate;
1625
1626    /**
1627     * The period during which the measure content was or is planned to be in active use.
1628     */
1629    @Child(name = "effectivePeriod", type = {Period.class}, order=5, min=0, max=1, modifier=false, summary=true)
1630    @Description(shortDefinition="When the measure is expected to be used", formalDefinition="The period during which the measure content was or is planned to be in active use." )
1631    protected Period effectivePeriod;
1632
1633    /**
1634     * Descriptive topics related to the content of the measure. Topics provide a high-level categorization of the type of the measure that can be useful for filtering and searching.
1635     */
1636    @Child(name = "topic", type = {CodeableConcept.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1637    @Description(shortDefinition="E.g. Education, Treatment, Assessment, etc", formalDefinition="Descriptive topics related to the content of the measure. Topics provide a high-level categorization of the type of the measure that can be useful for filtering and searching." )
1638    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/definition-topic")
1639    protected List<CodeableConcept> topic;
1640
1641    /**
1642     * A contributor to the content of the measure, including authors, editors, reviewers, and endorsers.
1643     */
1644    @Child(name = "contributor", type = {Contributor.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1645    @Description(shortDefinition="A content contributor", formalDefinition="A contributor to the content of the measure, including authors, editors, reviewers, and endorsers." )
1646    protected List<Contributor> contributor;
1647
1648    /**
1649     * A copyright statement relating to the measure and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the measure.
1650     */
1651    @Child(name = "copyright", type = {MarkdownType.class}, order=8, min=0, max=1, modifier=false, summary=false)
1652    @Description(shortDefinition="Use and/or publishing restrictions", formalDefinition="A copyright statement relating to the measure and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the measure." )
1653    protected MarkdownType copyright;
1654
1655    /**
1656     * Related artifacts such as additional documentation, justification, or bibliographic references.
1657     */
1658    @Child(name = "relatedArtifact", type = {RelatedArtifact.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1659    @Description(shortDefinition="Additional documentation, citations, etc", formalDefinition="Related artifacts such as additional documentation, justification, or bibliographic references." )
1660    protected List<RelatedArtifact> relatedArtifact;
1661
1662    /**
1663     * A reference to a Library resource containing the formal logic used by the measure.
1664     */
1665    @Child(name = "library", type = {Library.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1666    @Description(shortDefinition="Logic used by the measure", formalDefinition="A reference to a Library resource containing the formal logic used by the measure." )
1667    protected List<Reference> library;
1668    /**
1669     * The actual objects that are the target of the reference (A reference to a Library resource containing the formal logic used by the measure.)
1670     */
1671    protected List<Library> libraryTarget;
1672
1673
1674    /**
1675     * Notices and disclaimers regarding the use of the measure, or related to intellectual property (such as code systems) referenced by the measure.
1676     */
1677    @Child(name = "disclaimer", type = {MarkdownType.class}, order=11, min=0, max=1, modifier=false, summary=true)
1678    @Description(shortDefinition="Disclaimer for use of the measure or its referenced content", formalDefinition="Notices and disclaimers regarding the use of the measure, or related to intellectual property (such as code systems) referenced by the measure." )
1679    protected MarkdownType disclaimer;
1680
1681    /**
1682     * Indicates how the calculation is performed for the measure, including proportion, ratio, continuous variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented.
1683     */
1684    @Child(name = "scoring", type = {CodeableConcept.class}, order=12, min=0, max=1, modifier=false, summary=true)
1685    @Description(shortDefinition="proportion | ratio | continuous-variable | cohort", formalDefinition="Indicates how the calculation is performed for the measure, including proportion, ratio, continuous variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented." )
1686    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-scoring")
1687    protected CodeableConcept scoring;
1688
1689    /**
1690     * If this is a composite measure, the scoring method used to combine the component measures to determine the composite score.
1691     */
1692    @Child(name = "compositeScoring", type = {CodeableConcept.class}, order=13, min=0, max=1, modifier=false, summary=true)
1693    @Description(shortDefinition="opportunity | all-or-nothing | linear | weighted", formalDefinition="If this is a composite measure, the scoring method used to combine the component measures to determine the composite score." )
1694    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/composite-measure-scoring")
1695    protected CodeableConcept compositeScoring;
1696
1697    /**
1698     * Indicates whether the measure is used to examine a process, an outcome over time, a patient-reported outcome, or a structure measure such as utilization.
1699     */
1700    @Child(name = "type", type = {CodeableConcept.class}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
1701    @Description(shortDefinition="process | outcome | structure | patient-reported-outcome | composite", formalDefinition="Indicates whether the measure is used to examine a process, an outcome over time, a patient-reported outcome, or a structure measure such as utilization." )
1702    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-type")
1703    protected List<CodeableConcept> type;
1704
1705    /**
1706     * A description of the risk adjustment factors that may impact the resulting score for the measure and how they may be accounted for when computing and reporting measure results.
1707     */
1708    @Child(name = "riskAdjustment", type = {StringType.class}, order=15, min=0, max=1, modifier=false, summary=true)
1709    @Description(shortDefinition="How is risk adjustment applied for this measure", formalDefinition="A description of the risk adjustment factors that may impact the resulting score for the measure and how they may be accounted for when computing and reporting measure results." )
1710    protected StringType riskAdjustment;
1711
1712    /**
1713     * Describes how to combine the information calculated, based on logic in each of several populations, into one summarized result.
1714     */
1715    @Child(name = "rateAggregation", type = {StringType.class}, order=16, min=0, max=1, modifier=false, summary=true)
1716    @Description(shortDefinition="How is rate aggregation performed for this measure", formalDefinition="Describes how to combine the information calculated, based on logic in each of several populations, into one summarized result." )
1717    protected StringType rateAggregation;
1718
1719    /**
1720     * Provides a succint statement of the need for the measure. Usually includes statements pertaining to importance criterion: impact, gap in care, and evidence.
1721     */
1722    @Child(name = "rationale", type = {MarkdownType.class}, order=17, min=0, max=1, modifier=false, summary=true)
1723    @Description(shortDefinition="Why does this measure exist", formalDefinition="Provides a succint statement of the need for the measure. Usually includes statements pertaining to importance criterion: impact, gap in care, and evidence." )
1724    protected MarkdownType rationale;
1725
1726    /**
1727     * Provides a summary of relevant clinical guidelines or other clinical recommendations supporting the measure.
1728     */
1729    @Child(name = "clinicalRecommendationStatement", type = {MarkdownType.class}, order=18, min=0, max=1, modifier=false, summary=true)
1730    @Description(shortDefinition="Summary of clinical guidelines", formalDefinition="Provides a summary of relevant clinical guidelines or other clinical recommendations supporting the measure." )
1731    protected MarkdownType clinicalRecommendationStatement;
1732
1733    /**
1734     * Information on whether an increase or decrease in score is the preferred result (e.g., a higher score indicates better quality OR a lower score indicates better quality OR quality is whthin a range).
1735     */
1736    @Child(name = "improvementNotation", type = {StringType.class}, order=19, min=0, max=1, modifier=false, summary=true)
1737    @Description(shortDefinition="Improvement notation for the measure, e.g. higher score indicates better quality", formalDefinition="Information on whether an increase or decrease in score is the preferred result (e.g., a higher score indicates better quality OR a lower score indicates better quality OR quality is whthin a range)." )
1738    protected StringType improvementNotation;
1739
1740    /**
1741     * Provides a description of an individual term used within the measure.
1742     */
1743    @Child(name = "definition", type = {MarkdownType.class}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
1744    @Description(shortDefinition="Defined terms used in the measure documentation", formalDefinition="Provides a description of an individual term used within the measure." )
1745    protected List<MarkdownType> definition;
1746
1747    /**
1748     * Additional guidance for the measure including how it can be used in a clinical context, and the intent of the measure.
1749     */
1750    @Child(name = "guidance", type = {MarkdownType.class}, order=21, min=0, max=1, modifier=false, summary=true)
1751    @Description(shortDefinition="Additional guidance for implementers", formalDefinition="Additional guidance for the measure including how it can be used in a clinical context, and the intent of the measure." )
1752    protected MarkdownType guidance;
1753
1754    /**
1755     * The measure set, e.g. Preventive Care and Screening.
1756     */
1757    @Child(name = "set", type = {StringType.class}, order=22, min=0, max=1, modifier=false, summary=true)
1758    @Description(shortDefinition="The measure set, e.g. Preventive Care and Screening", formalDefinition="The measure set, e.g. Preventive Care and Screening." )
1759    protected StringType set;
1760
1761    /**
1762     * A group of population criteria for the measure.
1763     */
1764    @Child(name = "group", type = {}, order=23, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1765    @Description(shortDefinition="Population criteria group", formalDefinition="A group of population criteria for the measure." )
1766    protected List<MeasureGroupComponent> group;
1767
1768    /**
1769     * The supplemental data criteria for the measure report, specified as either the name of a valid CQL expression within a referenced library, or a valid FHIR Resource Path.
1770     */
1771    @Child(name = "supplementalData", type = {}, order=24, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
1772    @Description(shortDefinition="What other data should be reported with the measure", formalDefinition="The supplemental data criteria for the measure report, specified as either the name of a valid CQL expression within a referenced library, or a valid FHIR Resource Path." )
1773    protected List<MeasureSupplementalDataComponent> supplementalData;
1774
1775    private static final long serialVersionUID = -875918689L;
1776
1777  /**
1778   * Constructor
1779   */
1780    public Measure() {
1781      super();
1782    }
1783
1784  /**
1785   * Constructor
1786   */
1787    public Measure(Enumeration<PublicationStatus> status) {
1788      super();
1789      this.status = status;
1790    }
1791
1792    /**
1793     * @return {@link #url} (An absolute URI that is used to identify this measure when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this measure is (or will be) published. The URL SHOULD include the major version of the measure. For more information see [Technical and Business Versions](resource.html#versions).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
1794     */
1795    public UriType getUrlElement() { 
1796      if (this.url == null)
1797        if (Configuration.errorOnAutoCreate())
1798          throw new Error("Attempt to auto-create Measure.url");
1799        else if (Configuration.doAutoCreate())
1800          this.url = new UriType(); // bb
1801      return this.url;
1802    }
1803
1804    public boolean hasUrlElement() { 
1805      return this.url != null && !this.url.isEmpty();
1806    }
1807
1808    public boolean hasUrl() { 
1809      return this.url != null && !this.url.isEmpty();
1810    }
1811
1812    /**
1813     * @param value {@link #url} (An absolute URI that is used to identify this measure when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this measure is (or will be) published. The URL SHOULD include the major version of the measure. For more information see [Technical and Business Versions](resource.html#versions).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
1814     */
1815    public Measure setUrlElement(UriType value) { 
1816      this.url = value;
1817      return this;
1818    }
1819
1820    /**
1821     * @return An absolute URI that is used to identify this measure when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this measure is (or will be) published. The URL SHOULD include the major version of the measure. For more information see [Technical and Business Versions](resource.html#versions).
1822     */
1823    public String getUrl() { 
1824      return this.url == null ? null : this.url.getValue();
1825    }
1826
1827    /**
1828     * @param value An absolute URI that is used to identify this measure when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this measure is (or will be) published. The URL SHOULD include the major version of the measure. For more information see [Technical and Business Versions](resource.html#versions).
1829     */
1830    public Measure setUrl(String value) { 
1831      if (Utilities.noString(value))
1832        this.url = null;
1833      else {
1834        if (this.url == null)
1835          this.url = new UriType();
1836        this.url.setValue(value);
1837      }
1838      return this;
1839    }
1840
1841    /**
1842     * @return {@link #identifier} (A formal identifier that is used to identify this measure when it is represented in other formats, or referenced in a specification, model, design or an instance.)
1843     */
1844    public List<Identifier> getIdentifier() { 
1845      if (this.identifier == null)
1846        this.identifier = new ArrayList<Identifier>();
1847      return this.identifier;
1848    }
1849
1850    /**
1851     * @return Returns a reference to <code>this</code> for easy method chaining
1852     */
1853    public Measure setIdentifier(List<Identifier> theIdentifier) { 
1854      this.identifier = theIdentifier;
1855      return this;
1856    }
1857
1858    public boolean hasIdentifier() { 
1859      if (this.identifier == null)
1860        return false;
1861      for (Identifier item : this.identifier)
1862        if (!item.isEmpty())
1863          return true;
1864      return false;
1865    }
1866
1867    public Identifier addIdentifier() { //3
1868      Identifier t = new Identifier();
1869      if (this.identifier == null)
1870        this.identifier = new ArrayList<Identifier>();
1871      this.identifier.add(t);
1872      return t;
1873    }
1874
1875    public Measure addIdentifier(Identifier t) { //3
1876      if (t == null)
1877        return this;
1878      if (this.identifier == null)
1879        this.identifier = new ArrayList<Identifier>();
1880      this.identifier.add(t);
1881      return this;
1882    }
1883
1884    /**
1885     * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist
1886     */
1887    public Identifier getIdentifierFirstRep() { 
1888      if (getIdentifier().isEmpty()) {
1889        addIdentifier();
1890      }
1891      return getIdentifier().get(0);
1892    }
1893
1894    /**
1895     * @return {@link #version} (The identifier that is used to identify this version of the measure when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the measure 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. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
1896     */
1897    public StringType getVersionElement() { 
1898      if (this.version == null)
1899        if (Configuration.errorOnAutoCreate())
1900          throw new Error("Attempt to auto-create Measure.version");
1901        else if (Configuration.doAutoCreate())
1902          this.version = new StringType(); // bb
1903      return this.version;
1904    }
1905
1906    public boolean hasVersionElement() { 
1907      return this.version != null && !this.version.isEmpty();
1908    }
1909
1910    public boolean hasVersion() { 
1911      return this.version != null && !this.version.isEmpty();
1912    }
1913
1914    /**
1915     * @param value {@link #version} (The identifier that is used to identify this version of the measure when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the measure 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. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
1916     */
1917    public Measure setVersionElement(StringType value) { 
1918      this.version = value;
1919      return this;
1920    }
1921
1922    /**
1923     * @return The identifier that is used to identify this version of the measure when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the measure 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. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts.
1924     */
1925    public String getVersion() { 
1926      return this.version == null ? null : this.version.getValue();
1927    }
1928
1929    /**
1930     * @param value The identifier that is used to identify this version of the measure when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the measure 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. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts.
1931     */
1932    public Measure setVersion(String value) { 
1933      if (Utilities.noString(value))
1934        this.version = null;
1935      else {
1936        if (this.version == null)
1937          this.version = new StringType();
1938        this.version.setValue(value);
1939      }
1940      return this;
1941    }
1942
1943    /**
1944     * @return {@link #name} (A natural language name identifying the measure. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
1945     */
1946    public StringType getNameElement() { 
1947      if (this.name == null)
1948        if (Configuration.errorOnAutoCreate())
1949          throw new Error("Attempt to auto-create Measure.name");
1950        else if (Configuration.doAutoCreate())
1951          this.name = new StringType(); // bb
1952      return this.name;
1953    }
1954
1955    public boolean hasNameElement() { 
1956      return this.name != null && !this.name.isEmpty();
1957    }
1958
1959    public boolean hasName() { 
1960      return this.name != null && !this.name.isEmpty();
1961    }
1962
1963    /**
1964     * @param value {@link #name} (A natural language name identifying the measure. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
1965     */
1966    public Measure setNameElement(StringType value) { 
1967      this.name = value;
1968      return this;
1969    }
1970
1971    /**
1972     * @return A natural language name identifying the measure. This name should be usable as an identifier for the module by machine processing applications such as code generation.
1973     */
1974    public String getName() { 
1975      return this.name == null ? null : this.name.getValue();
1976    }
1977
1978    /**
1979     * @param value A natural language name identifying the measure. This name should be usable as an identifier for the module by machine processing applications such as code generation.
1980     */
1981    public Measure setName(String value) { 
1982      if (Utilities.noString(value))
1983        this.name = null;
1984      else {
1985        if (this.name == null)
1986          this.name = new StringType();
1987        this.name.setValue(value);
1988      }
1989      return this;
1990    }
1991
1992    /**
1993     * @return {@link #title} (A short, descriptive, user-friendly title for the measure.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
1994     */
1995    public StringType getTitleElement() { 
1996      if (this.title == null)
1997        if (Configuration.errorOnAutoCreate())
1998          throw new Error("Attempt to auto-create Measure.title");
1999        else if (Configuration.doAutoCreate())
2000          this.title = new StringType(); // bb
2001      return this.title;
2002    }
2003
2004    public boolean hasTitleElement() { 
2005      return this.title != null && !this.title.isEmpty();
2006    }
2007
2008    public boolean hasTitle() { 
2009      return this.title != null && !this.title.isEmpty();
2010    }
2011
2012    /**
2013     * @param value {@link #title} (A short, descriptive, user-friendly title for the measure.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
2014     */
2015    public Measure setTitleElement(StringType value) { 
2016      this.title = value;
2017      return this;
2018    }
2019
2020    /**
2021     * @return A short, descriptive, user-friendly title for the measure.
2022     */
2023    public String getTitle() { 
2024      return this.title == null ? null : this.title.getValue();
2025    }
2026
2027    /**
2028     * @param value A short, descriptive, user-friendly title for the measure.
2029     */
2030    public Measure setTitle(String value) { 
2031      if (Utilities.noString(value))
2032        this.title = null;
2033      else {
2034        if (this.title == null)
2035          this.title = new StringType();
2036        this.title.setValue(value);
2037      }
2038      return this;
2039    }
2040
2041    /**
2042     * @return {@link #status} (The status of this measure. 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
2043     */
2044    public Enumeration<PublicationStatus> getStatusElement() { 
2045      if (this.status == null)
2046        if (Configuration.errorOnAutoCreate())
2047          throw new Error("Attempt to auto-create Measure.status");
2048        else if (Configuration.doAutoCreate())
2049          this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); // bb
2050      return this.status;
2051    }
2052
2053    public boolean hasStatusElement() { 
2054      return this.status != null && !this.status.isEmpty();
2055    }
2056
2057    public boolean hasStatus() { 
2058      return this.status != null && !this.status.isEmpty();
2059    }
2060
2061    /**
2062     * @param value {@link #status} (The status of this measure. 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
2063     */
2064    public Measure setStatusElement(Enumeration<PublicationStatus> value) { 
2065      this.status = value;
2066      return this;
2067    }
2068
2069    /**
2070     * @return The status of this measure. Enables tracking the life-cycle of the content.
2071     */
2072    public PublicationStatus getStatus() { 
2073      return this.status == null ? null : this.status.getValue();
2074    }
2075
2076    /**
2077     * @param value The status of this measure. Enables tracking the life-cycle of the content.
2078     */
2079    public Measure setStatus(PublicationStatus value) { 
2080        if (this.status == null)
2081          this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory());
2082        this.status.setValue(value);
2083      return this;
2084    }
2085
2086    /**
2087     * @return {@link #experimental} (A boolean value to indicate that this measure is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value
2088     */
2089    public BooleanType getExperimentalElement() { 
2090      if (this.experimental == null)
2091        if (Configuration.errorOnAutoCreate())
2092          throw new Error("Attempt to auto-create Measure.experimental");
2093        else if (Configuration.doAutoCreate())
2094          this.experimental = new BooleanType(); // bb
2095      return this.experimental;
2096    }
2097
2098    public boolean hasExperimentalElement() { 
2099      return this.experimental != null && !this.experimental.isEmpty();
2100    }
2101
2102    public boolean hasExperimental() { 
2103      return this.experimental != null && !this.experimental.isEmpty();
2104    }
2105
2106    /**
2107     * @param value {@link #experimental} (A boolean value to indicate that this measure is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value
2108     */
2109    public Measure setExperimentalElement(BooleanType value) { 
2110      this.experimental = value;
2111      return this;
2112    }
2113
2114    /**
2115     * @return A boolean value to indicate that this measure is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.
2116     */
2117    public boolean getExperimental() { 
2118      return this.experimental == null || this.experimental.isEmpty() ? false : this.experimental.getValue();
2119    }
2120
2121    /**
2122     * @param value A boolean value to indicate that this measure is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.
2123     */
2124    public Measure setExperimental(boolean value) { 
2125        if (this.experimental == null)
2126          this.experimental = new BooleanType();
2127        this.experimental.setValue(value);
2128      return this;
2129    }
2130
2131    /**
2132     * @return {@link #date} (The date  (and optionally time) when the measure was published. The date must change if and 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 measure changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
2133     */
2134    public DateTimeType getDateElement() { 
2135      if (this.date == null)
2136        if (Configuration.errorOnAutoCreate())
2137          throw new Error("Attempt to auto-create Measure.date");
2138        else if (Configuration.doAutoCreate())
2139          this.date = new DateTimeType(); // bb
2140      return this.date;
2141    }
2142
2143    public boolean hasDateElement() { 
2144      return this.date != null && !this.date.isEmpty();
2145    }
2146
2147    public boolean hasDate() { 
2148      return this.date != null && !this.date.isEmpty();
2149    }
2150
2151    /**
2152     * @param value {@link #date} (The date  (and optionally time) when the measure was published. The date must change if and 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 measure changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
2153     */
2154    public Measure setDateElement(DateTimeType value) { 
2155      this.date = value;
2156      return this;
2157    }
2158
2159    /**
2160     * @return The date  (and optionally time) when the measure was published. The date must change if and 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 measure changes.
2161     */
2162    public Date getDate() { 
2163      return this.date == null ? null : this.date.getValue();
2164    }
2165
2166    /**
2167     * @param value The date  (and optionally time) when the measure was published. The date must change if and 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 measure changes.
2168     */
2169    public Measure setDate(Date value) { 
2170      if (value == null)
2171        this.date = null;
2172      else {
2173        if (this.date == null)
2174          this.date = new DateTimeType();
2175        this.date.setValue(value);
2176      }
2177      return this;
2178    }
2179
2180    /**
2181     * @return {@link #publisher} (The name of the individual or organization that published the measure.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value
2182     */
2183    public StringType getPublisherElement() { 
2184      if (this.publisher == null)
2185        if (Configuration.errorOnAutoCreate())
2186          throw new Error("Attempt to auto-create Measure.publisher");
2187        else if (Configuration.doAutoCreate())
2188          this.publisher = new StringType(); // bb
2189      return this.publisher;
2190    }
2191
2192    public boolean hasPublisherElement() { 
2193      return this.publisher != null && !this.publisher.isEmpty();
2194    }
2195
2196    public boolean hasPublisher() { 
2197      return this.publisher != null && !this.publisher.isEmpty();
2198    }
2199
2200    /**
2201     * @param value {@link #publisher} (The name of the individual or organization that published the measure.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value
2202     */
2203    public Measure setPublisherElement(StringType value) { 
2204      this.publisher = value;
2205      return this;
2206    }
2207
2208    /**
2209     * @return The name of the individual or organization that published the measure.
2210     */
2211    public String getPublisher() { 
2212      return this.publisher == null ? null : this.publisher.getValue();
2213    }
2214
2215    /**
2216     * @param value The name of the individual or organization that published the measure.
2217     */
2218    public Measure setPublisher(String value) { 
2219      if (Utilities.noString(value))
2220        this.publisher = null;
2221      else {
2222        if (this.publisher == null)
2223          this.publisher = new StringType();
2224        this.publisher.setValue(value);
2225      }
2226      return this;
2227    }
2228
2229    /**
2230     * @return {@link #description} (A free text natural language description of the measure from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
2231     */
2232    public MarkdownType getDescriptionElement() { 
2233      if (this.description == null)
2234        if (Configuration.errorOnAutoCreate())
2235          throw new Error("Attempt to auto-create Measure.description");
2236        else if (Configuration.doAutoCreate())
2237          this.description = new MarkdownType(); // bb
2238      return this.description;
2239    }
2240
2241    public boolean hasDescriptionElement() { 
2242      return this.description != null && !this.description.isEmpty();
2243    }
2244
2245    public boolean hasDescription() { 
2246      return this.description != null && !this.description.isEmpty();
2247    }
2248
2249    /**
2250     * @param value {@link #description} (A free text natural language description of the measure from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
2251     */
2252    public Measure setDescriptionElement(MarkdownType value) { 
2253      this.description = value;
2254      return this;
2255    }
2256
2257    /**
2258     * @return A free text natural language description of the measure from a consumer's perspective.
2259     */
2260    public String getDescription() { 
2261      return this.description == null ? null : this.description.getValue();
2262    }
2263
2264    /**
2265     * @param value A free text natural language description of the measure from a consumer's perspective.
2266     */
2267    public Measure setDescription(String value) { 
2268      if (value == null)
2269        this.description = null;
2270      else {
2271        if (this.description == null)
2272          this.description = new MarkdownType();
2273        this.description.setValue(value);
2274      }
2275      return this;
2276    }
2277
2278    /**
2279     * @return {@link #purpose} (Explaination of why this measure is needed and why it has been designed as it has.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value
2280     */
2281    public MarkdownType getPurposeElement() { 
2282      if (this.purpose == null)
2283        if (Configuration.errorOnAutoCreate())
2284          throw new Error("Attempt to auto-create Measure.purpose");
2285        else if (Configuration.doAutoCreate())
2286          this.purpose = new MarkdownType(); // bb
2287      return this.purpose;
2288    }
2289
2290    public boolean hasPurposeElement() { 
2291      return this.purpose != null && !this.purpose.isEmpty();
2292    }
2293
2294    public boolean hasPurpose() { 
2295      return this.purpose != null && !this.purpose.isEmpty();
2296    }
2297
2298    /**
2299     * @param value {@link #purpose} (Explaination of why this measure is needed and why it has been designed as it has.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value
2300     */
2301    public Measure setPurposeElement(MarkdownType value) { 
2302      this.purpose = value;
2303      return this;
2304    }
2305
2306    /**
2307     * @return Explaination of why this measure is needed and why it has been designed as it has.
2308     */
2309    public String getPurpose() { 
2310      return this.purpose == null ? null : this.purpose.getValue();
2311    }
2312
2313    /**
2314     * @param value Explaination of why this measure is needed and why it has been designed as it has.
2315     */
2316    public Measure setPurpose(String value) { 
2317      if (value == null)
2318        this.purpose = null;
2319      else {
2320        if (this.purpose == null)
2321          this.purpose = new MarkdownType();
2322        this.purpose.setValue(value);
2323      }
2324      return this;
2325    }
2326
2327    /**
2328     * @return {@link #usage} (A detailed description of how the measure is used from a clinical perspective.). This is the underlying object with id, value and extensions. The accessor "getUsage" gives direct access to the value
2329     */
2330    public StringType getUsageElement() { 
2331      if (this.usage == null)
2332        if (Configuration.errorOnAutoCreate())
2333          throw new Error("Attempt to auto-create Measure.usage");
2334        else if (Configuration.doAutoCreate())
2335          this.usage = new StringType(); // bb
2336      return this.usage;
2337    }
2338
2339    public boolean hasUsageElement() { 
2340      return this.usage != null && !this.usage.isEmpty();
2341    }
2342
2343    public boolean hasUsage() { 
2344      return this.usage != null && !this.usage.isEmpty();
2345    }
2346
2347    /**
2348     * @param value {@link #usage} (A detailed description of how the measure is used from a clinical perspective.). This is the underlying object with id, value and extensions. The accessor "getUsage" gives direct access to the value
2349     */
2350    public Measure setUsageElement(StringType value) { 
2351      this.usage = value;
2352      return this;
2353    }
2354
2355    /**
2356     * @return A detailed description of how the measure is used from a clinical perspective.
2357     */
2358    public String getUsage() { 
2359      return this.usage == null ? null : this.usage.getValue();
2360    }
2361
2362    /**
2363     * @param value A detailed description of how the measure is used from a clinical perspective.
2364     */
2365    public Measure setUsage(String value) { 
2366      if (Utilities.noString(value))
2367        this.usage = null;
2368      else {
2369        if (this.usage == null)
2370          this.usage = new StringType();
2371        this.usage.setValue(value);
2372      }
2373      return this;
2374    }
2375
2376    /**
2377     * @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
2378     */
2379    public DateType getApprovalDateElement() { 
2380      if (this.approvalDate == null)
2381        if (Configuration.errorOnAutoCreate())
2382          throw new Error("Attempt to auto-create Measure.approvalDate");
2383        else if (Configuration.doAutoCreate())
2384          this.approvalDate = new DateType(); // bb
2385      return this.approvalDate;
2386    }
2387
2388    public boolean hasApprovalDateElement() { 
2389      return this.approvalDate != null && !this.approvalDate.isEmpty();
2390    }
2391
2392    public boolean hasApprovalDate() { 
2393      return this.approvalDate != null && !this.approvalDate.isEmpty();
2394    }
2395
2396    /**
2397     * @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
2398     */
2399    public Measure setApprovalDateElement(DateType value) { 
2400      this.approvalDate = value;
2401      return this;
2402    }
2403
2404    /**
2405     * @return The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.
2406     */
2407    public Date getApprovalDate() { 
2408      return this.approvalDate == null ? null : this.approvalDate.getValue();
2409    }
2410
2411    /**
2412     * @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.
2413     */
2414    public Measure setApprovalDate(Date value) { 
2415      if (value == null)
2416        this.approvalDate = null;
2417      else {
2418        if (this.approvalDate == null)
2419          this.approvalDate = new DateType();
2420        this.approvalDate.setValue(value);
2421      }
2422      return this;
2423    }
2424
2425    /**
2426     * @return {@link #lastReviewDate} (The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date.). This is the underlying object with id, value and extensions. The accessor "getLastReviewDate" gives direct access to the value
2427     */
2428    public DateType getLastReviewDateElement() { 
2429      if (this.lastReviewDate == null)
2430        if (Configuration.errorOnAutoCreate())
2431          throw new Error("Attempt to auto-create Measure.lastReviewDate");
2432        else if (Configuration.doAutoCreate())
2433          this.lastReviewDate = new DateType(); // bb
2434      return this.lastReviewDate;
2435    }
2436
2437    public boolean hasLastReviewDateElement() { 
2438      return this.lastReviewDate != null && !this.lastReviewDate.isEmpty();
2439    }
2440
2441    public boolean hasLastReviewDate() { 
2442      return this.lastReviewDate != null && !this.lastReviewDate.isEmpty();
2443    }
2444
2445    /**
2446     * @param value {@link #lastReviewDate} (The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date.). This is the underlying object with id, value and extensions. The accessor "getLastReviewDate" gives direct access to the value
2447     */
2448    public Measure setLastReviewDateElement(DateType value) { 
2449      this.lastReviewDate = value;
2450      return this;
2451    }
2452
2453    /**
2454     * @return The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date.
2455     */
2456    public Date getLastReviewDate() { 
2457      return this.lastReviewDate == null ? null : this.lastReviewDate.getValue();
2458    }
2459
2460    /**
2461     * @param value The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date.
2462     */
2463    public Measure setLastReviewDate(Date value) { 
2464      if (value == null)
2465        this.lastReviewDate = null;
2466      else {
2467        if (this.lastReviewDate == null)
2468          this.lastReviewDate = new DateType();
2469        this.lastReviewDate.setValue(value);
2470      }
2471      return this;
2472    }
2473
2474    /**
2475     * @return {@link #effectivePeriod} (The period during which the measure content was or is planned to be in active use.)
2476     */
2477    public Period getEffectivePeriod() { 
2478      if (this.effectivePeriod == null)
2479        if (Configuration.errorOnAutoCreate())
2480          throw new Error("Attempt to auto-create Measure.effectivePeriod");
2481        else if (Configuration.doAutoCreate())
2482          this.effectivePeriod = new Period(); // cc
2483      return this.effectivePeriod;
2484    }
2485
2486    public boolean hasEffectivePeriod() { 
2487      return this.effectivePeriod != null && !this.effectivePeriod.isEmpty();
2488    }
2489
2490    /**
2491     * @param value {@link #effectivePeriod} (The period during which the measure content was or is planned to be in active use.)
2492     */
2493    public Measure setEffectivePeriod(Period value)  { 
2494      this.effectivePeriod = value;
2495      return this;
2496    }
2497
2498    /**
2499     * @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate measure instances.)
2500     */
2501    public List<UsageContext> getUseContext() { 
2502      if (this.useContext == null)
2503        this.useContext = new ArrayList<UsageContext>();
2504      return this.useContext;
2505    }
2506
2507    /**
2508     * @return Returns a reference to <code>this</code> for easy method chaining
2509     */
2510    public Measure setUseContext(List<UsageContext> theUseContext) { 
2511      this.useContext = theUseContext;
2512      return this;
2513    }
2514
2515    public boolean hasUseContext() { 
2516      if (this.useContext == null)
2517        return false;
2518      for (UsageContext item : this.useContext)
2519        if (!item.isEmpty())
2520          return true;
2521      return false;
2522    }
2523
2524    public UsageContext addUseContext() { //3
2525      UsageContext t = new UsageContext();
2526      if (this.useContext == null)
2527        this.useContext = new ArrayList<UsageContext>();
2528      this.useContext.add(t);
2529      return t;
2530    }
2531
2532    public Measure addUseContext(UsageContext t) { //3
2533      if (t == null)
2534        return this;
2535      if (this.useContext == null)
2536        this.useContext = new ArrayList<UsageContext>();
2537      this.useContext.add(t);
2538      return this;
2539    }
2540
2541    /**
2542     * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist
2543     */
2544    public UsageContext getUseContextFirstRep() { 
2545      if (getUseContext().isEmpty()) {
2546        addUseContext();
2547      }
2548      return getUseContext().get(0);
2549    }
2550
2551    /**
2552     * @return {@link #jurisdiction} (A legal or geographic region in which the measure is intended to be used.)
2553     */
2554    public List<CodeableConcept> getJurisdiction() { 
2555      if (this.jurisdiction == null)
2556        this.jurisdiction = new ArrayList<CodeableConcept>();
2557      return this.jurisdiction;
2558    }
2559
2560    /**
2561     * @return Returns a reference to <code>this</code> for easy method chaining
2562     */
2563    public Measure setJurisdiction(List<CodeableConcept> theJurisdiction) { 
2564      this.jurisdiction = theJurisdiction;
2565      return this;
2566    }
2567
2568    public boolean hasJurisdiction() { 
2569      if (this.jurisdiction == null)
2570        return false;
2571      for (CodeableConcept item : this.jurisdiction)
2572        if (!item.isEmpty())
2573          return true;
2574      return false;
2575    }
2576
2577    public CodeableConcept addJurisdiction() { //3
2578      CodeableConcept t = new CodeableConcept();
2579      if (this.jurisdiction == null)
2580        this.jurisdiction = new ArrayList<CodeableConcept>();
2581      this.jurisdiction.add(t);
2582      return t;
2583    }
2584
2585    public Measure addJurisdiction(CodeableConcept t) { //3
2586      if (t == null)
2587        return this;
2588      if (this.jurisdiction == null)
2589        this.jurisdiction = new ArrayList<CodeableConcept>();
2590      this.jurisdiction.add(t);
2591      return this;
2592    }
2593
2594    /**
2595     * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist
2596     */
2597    public CodeableConcept getJurisdictionFirstRep() { 
2598      if (getJurisdiction().isEmpty()) {
2599        addJurisdiction();
2600      }
2601      return getJurisdiction().get(0);
2602    }
2603
2604    /**
2605     * @return {@link #topic} (Descriptive topics related to the content of the measure. Topics provide a high-level categorization of the type of the measure that can be useful for filtering and searching.)
2606     */
2607    public List<CodeableConcept> getTopic() { 
2608      if (this.topic == null)
2609        this.topic = new ArrayList<CodeableConcept>();
2610      return this.topic;
2611    }
2612
2613    /**
2614     * @return Returns a reference to <code>this</code> for easy method chaining
2615     */
2616    public Measure setTopic(List<CodeableConcept> theTopic) { 
2617      this.topic = theTopic;
2618      return this;
2619    }
2620
2621    public boolean hasTopic() { 
2622      if (this.topic == null)
2623        return false;
2624      for (CodeableConcept item : this.topic)
2625        if (!item.isEmpty())
2626          return true;
2627      return false;
2628    }
2629
2630    public CodeableConcept addTopic() { //3
2631      CodeableConcept t = new CodeableConcept();
2632      if (this.topic == null)
2633        this.topic = new ArrayList<CodeableConcept>();
2634      this.topic.add(t);
2635      return t;
2636    }
2637
2638    public Measure addTopic(CodeableConcept t) { //3
2639      if (t == null)
2640        return this;
2641      if (this.topic == null)
2642        this.topic = new ArrayList<CodeableConcept>();
2643      this.topic.add(t);
2644      return this;
2645    }
2646
2647    /**
2648     * @return The first repetition of repeating field {@link #topic}, creating it if it does not already exist
2649     */
2650    public CodeableConcept getTopicFirstRep() { 
2651      if (getTopic().isEmpty()) {
2652        addTopic();
2653      }
2654      return getTopic().get(0);
2655    }
2656
2657    /**
2658     * @return {@link #contributor} (A contributor to the content of the measure, including authors, editors, reviewers, and endorsers.)
2659     */
2660    public List<Contributor> getContributor() { 
2661      if (this.contributor == null)
2662        this.contributor = new ArrayList<Contributor>();
2663      return this.contributor;
2664    }
2665
2666    /**
2667     * @return Returns a reference to <code>this</code> for easy method chaining
2668     */
2669    public Measure setContributor(List<Contributor> theContributor) { 
2670      this.contributor = theContributor;
2671      return this;
2672    }
2673
2674    public boolean hasContributor() { 
2675      if (this.contributor == null)
2676        return false;
2677      for (Contributor item : this.contributor)
2678        if (!item.isEmpty())
2679          return true;
2680      return false;
2681    }
2682
2683    public Contributor addContributor() { //3
2684      Contributor t = new Contributor();
2685      if (this.contributor == null)
2686        this.contributor = new ArrayList<Contributor>();
2687      this.contributor.add(t);
2688      return t;
2689    }
2690
2691    public Measure addContributor(Contributor t) { //3
2692      if (t == null)
2693        return this;
2694      if (this.contributor == null)
2695        this.contributor = new ArrayList<Contributor>();
2696      this.contributor.add(t);
2697      return this;
2698    }
2699
2700    /**
2701     * @return The first repetition of repeating field {@link #contributor}, creating it if it does not already exist
2702     */
2703    public Contributor getContributorFirstRep() { 
2704      if (getContributor().isEmpty()) {
2705        addContributor();
2706      }
2707      return getContributor().get(0);
2708    }
2709
2710    /**
2711     * @return {@link #contact} (Contact details to assist a user in finding and communicating with the publisher.)
2712     */
2713    public List<ContactDetail> getContact() { 
2714      if (this.contact == null)
2715        this.contact = new ArrayList<ContactDetail>();
2716      return this.contact;
2717    }
2718
2719    /**
2720     * @return Returns a reference to <code>this</code> for easy method chaining
2721     */
2722    public Measure setContact(List<ContactDetail> theContact) { 
2723      this.contact = theContact;
2724      return this;
2725    }
2726
2727    public boolean hasContact() { 
2728      if (this.contact == null)
2729        return false;
2730      for (ContactDetail item : this.contact)
2731        if (!item.isEmpty())
2732          return true;
2733      return false;
2734    }
2735
2736    public ContactDetail addContact() { //3
2737      ContactDetail t = new ContactDetail();
2738      if (this.contact == null)
2739        this.contact = new ArrayList<ContactDetail>();
2740      this.contact.add(t);
2741      return t;
2742    }
2743
2744    public Measure addContact(ContactDetail t) { //3
2745      if (t == null)
2746        return this;
2747      if (this.contact == null)
2748        this.contact = new ArrayList<ContactDetail>();
2749      this.contact.add(t);
2750      return this;
2751    }
2752
2753    /**
2754     * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist
2755     */
2756    public ContactDetail getContactFirstRep() { 
2757      if (getContact().isEmpty()) {
2758        addContact();
2759      }
2760      return getContact().get(0);
2761    }
2762
2763    /**
2764     * @return {@link #copyright} (A copyright statement relating to the measure and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the measure.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value
2765     */
2766    public MarkdownType getCopyrightElement() { 
2767      if (this.copyright == null)
2768        if (Configuration.errorOnAutoCreate())
2769          throw new Error("Attempt to auto-create Measure.copyright");
2770        else if (Configuration.doAutoCreate())
2771          this.copyright = new MarkdownType(); // bb
2772      return this.copyright;
2773    }
2774
2775    public boolean hasCopyrightElement() { 
2776      return this.copyright != null && !this.copyright.isEmpty();
2777    }
2778
2779    public boolean hasCopyright() { 
2780      return this.copyright != null && !this.copyright.isEmpty();
2781    }
2782
2783    /**
2784     * @param value {@link #copyright} (A copyright statement relating to the measure and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the measure.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value
2785     */
2786    public Measure setCopyrightElement(MarkdownType value) { 
2787      this.copyright = value;
2788      return this;
2789    }
2790
2791    /**
2792     * @return A copyright statement relating to the measure and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the measure.
2793     */
2794    public String getCopyright() { 
2795      return this.copyright == null ? null : this.copyright.getValue();
2796    }
2797
2798    /**
2799     * @param value A copyright statement relating to the measure and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the measure.
2800     */
2801    public Measure setCopyright(String value) { 
2802      if (value == null)
2803        this.copyright = null;
2804      else {
2805        if (this.copyright == null)
2806          this.copyright = new MarkdownType();
2807        this.copyright.setValue(value);
2808      }
2809      return this;
2810    }
2811
2812    /**
2813     * @return {@link #relatedArtifact} (Related artifacts such as additional documentation, justification, or bibliographic references.)
2814     */
2815    public List<RelatedArtifact> getRelatedArtifact() { 
2816      if (this.relatedArtifact == null)
2817        this.relatedArtifact = new ArrayList<RelatedArtifact>();
2818      return this.relatedArtifact;
2819    }
2820
2821    /**
2822     * @return Returns a reference to <code>this</code> for easy method chaining
2823     */
2824    public Measure setRelatedArtifact(List<RelatedArtifact> theRelatedArtifact) { 
2825      this.relatedArtifact = theRelatedArtifact;
2826      return this;
2827    }
2828
2829    public boolean hasRelatedArtifact() { 
2830      if (this.relatedArtifact == null)
2831        return false;
2832      for (RelatedArtifact item : this.relatedArtifact)
2833        if (!item.isEmpty())
2834          return true;
2835      return false;
2836    }
2837
2838    public RelatedArtifact addRelatedArtifact() { //3
2839      RelatedArtifact t = new RelatedArtifact();
2840      if (this.relatedArtifact == null)
2841        this.relatedArtifact = new ArrayList<RelatedArtifact>();
2842      this.relatedArtifact.add(t);
2843      return t;
2844    }
2845
2846    public Measure addRelatedArtifact(RelatedArtifact t) { //3
2847      if (t == null)
2848        return this;
2849      if (this.relatedArtifact == null)
2850        this.relatedArtifact = new ArrayList<RelatedArtifact>();
2851      this.relatedArtifact.add(t);
2852      return this;
2853    }
2854
2855    /**
2856     * @return The first repetition of repeating field {@link #relatedArtifact}, creating it if it does not already exist
2857     */
2858    public RelatedArtifact getRelatedArtifactFirstRep() { 
2859      if (getRelatedArtifact().isEmpty()) {
2860        addRelatedArtifact();
2861      }
2862      return getRelatedArtifact().get(0);
2863    }
2864
2865    /**
2866     * @return {@link #library} (A reference to a Library resource containing the formal logic used by the measure.)
2867     */
2868    public List<Reference> getLibrary() { 
2869      if (this.library == null)
2870        this.library = new ArrayList<Reference>();
2871      return this.library;
2872    }
2873
2874    /**
2875     * @return Returns a reference to <code>this</code> for easy method chaining
2876     */
2877    public Measure setLibrary(List<Reference> theLibrary) { 
2878      this.library = theLibrary;
2879      return this;
2880    }
2881
2882    public boolean hasLibrary() { 
2883      if (this.library == null)
2884        return false;
2885      for (Reference item : this.library)
2886        if (!item.isEmpty())
2887          return true;
2888      return false;
2889    }
2890
2891    public Reference addLibrary() { //3
2892      Reference t = new Reference();
2893      if (this.library == null)
2894        this.library = new ArrayList<Reference>();
2895      this.library.add(t);
2896      return t;
2897    }
2898
2899    public Measure addLibrary(Reference t) { //3
2900      if (t == null)
2901        return this;
2902      if (this.library == null)
2903        this.library = new ArrayList<Reference>();
2904      this.library.add(t);
2905      return this;
2906    }
2907
2908    /**
2909     * @return The first repetition of repeating field {@link #library}, creating it if it does not already exist
2910     */
2911    public Reference getLibraryFirstRep() { 
2912      if (getLibrary().isEmpty()) {
2913        addLibrary();
2914      }
2915      return getLibrary().get(0);
2916    }
2917
2918    /**
2919     * @deprecated Use Reference#setResource(IBaseResource) instead
2920     */
2921    @Deprecated
2922    public List<Library> getLibraryTarget() { 
2923      if (this.libraryTarget == null)
2924        this.libraryTarget = new ArrayList<Library>();
2925      return this.libraryTarget;
2926    }
2927
2928    /**
2929     * @deprecated Use Reference#setResource(IBaseResource) instead
2930     */
2931    @Deprecated
2932    public Library addLibraryTarget() { 
2933      Library r = new Library();
2934      if (this.libraryTarget == null)
2935        this.libraryTarget = new ArrayList<Library>();
2936      this.libraryTarget.add(r);
2937      return r;
2938    }
2939
2940    /**
2941     * @return {@link #disclaimer} (Notices and disclaimers regarding the use of the measure, or related to intellectual property (such as code systems) referenced by the measure.). This is the underlying object with id, value and extensions. The accessor "getDisclaimer" gives direct access to the value
2942     */
2943    public MarkdownType getDisclaimerElement() { 
2944      if (this.disclaimer == null)
2945        if (Configuration.errorOnAutoCreate())
2946          throw new Error("Attempt to auto-create Measure.disclaimer");
2947        else if (Configuration.doAutoCreate())
2948          this.disclaimer = new MarkdownType(); // bb
2949      return this.disclaimer;
2950    }
2951
2952    public boolean hasDisclaimerElement() { 
2953      return this.disclaimer != null && !this.disclaimer.isEmpty();
2954    }
2955
2956    public boolean hasDisclaimer() { 
2957      return this.disclaimer != null && !this.disclaimer.isEmpty();
2958    }
2959
2960    /**
2961     * @param value {@link #disclaimer} (Notices and disclaimers regarding the use of the measure, or related to intellectual property (such as code systems) referenced by the measure.). This is the underlying object with id, value and extensions. The accessor "getDisclaimer" gives direct access to the value
2962     */
2963    public Measure setDisclaimerElement(MarkdownType value) { 
2964      this.disclaimer = value;
2965      return this;
2966    }
2967
2968    /**
2969     * @return Notices and disclaimers regarding the use of the measure, or related to intellectual property (such as code systems) referenced by the measure.
2970     */
2971    public String getDisclaimer() { 
2972      return this.disclaimer == null ? null : this.disclaimer.getValue();
2973    }
2974
2975    /**
2976     * @param value Notices and disclaimers regarding the use of the measure, or related to intellectual property (such as code systems) referenced by the measure.
2977     */
2978    public Measure setDisclaimer(String value) { 
2979      if (value == null)
2980        this.disclaimer = null;
2981      else {
2982        if (this.disclaimer == null)
2983          this.disclaimer = new MarkdownType();
2984        this.disclaimer.setValue(value);
2985      }
2986      return this;
2987    }
2988
2989    /**
2990     * @return {@link #scoring} (Indicates how the calculation is performed for the measure, including proportion, ratio, continuous variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented.)
2991     */
2992    public CodeableConcept getScoring() { 
2993      if (this.scoring == null)
2994        if (Configuration.errorOnAutoCreate())
2995          throw new Error("Attempt to auto-create Measure.scoring");
2996        else if (Configuration.doAutoCreate())
2997          this.scoring = new CodeableConcept(); // cc
2998      return this.scoring;
2999    }
3000
3001    public boolean hasScoring() { 
3002      return this.scoring != null && !this.scoring.isEmpty();
3003    }
3004
3005    /**
3006     * @param value {@link #scoring} (Indicates how the calculation is performed for the measure, including proportion, ratio, continuous variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented.)
3007     */
3008    public Measure setScoring(CodeableConcept value)  { 
3009      this.scoring = value;
3010      return this;
3011    }
3012
3013    /**
3014     * @return {@link #compositeScoring} (If this is a composite measure, the scoring method used to combine the component measures to determine the composite score.)
3015     */
3016    public CodeableConcept getCompositeScoring() { 
3017      if (this.compositeScoring == null)
3018        if (Configuration.errorOnAutoCreate())
3019          throw new Error("Attempt to auto-create Measure.compositeScoring");
3020        else if (Configuration.doAutoCreate())
3021          this.compositeScoring = new CodeableConcept(); // cc
3022      return this.compositeScoring;
3023    }
3024
3025    public boolean hasCompositeScoring() { 
3026      return this.compositeScoring != null && !this.compositeScoring.isEmpty();
3027    }
3028
3029    /**
3030     * @param value {@link #compositeScoring} (If this is a composite measure, the scoring method used to combine the component measures to determine the composite score.)
3031     */
3032    public Measure setCompositeScoring(CodeableConcept value)  { 
3033      this.compositeScoring = value;
3034      return this;
3035    }
3036
3037    /**
3038     * @return {@link #type} (Indicates whether the measure is used to examine a process, an outcome over time, a patient-reported outcome, or a structure measure such as utilization.)
3039     */
3040    public List<CodeableConcept> getType() { 
3041      if (this.type == null)
3042        this.type = new ArrayList<CodeableConcept>();
3043      return this.type;
3044    }
3045
3046    /**
3047     * @return Returns a reference to <code>this</code> for easy method chaining
3048     */
3049    public Measure setType(List<CodeableConcept> theType) { 
3050      this.type = theType;
3051      return this;
3052    }
3053
3054    public boolean hasType() { 
3055      if (this.type == null)
3056        return false;
3057      for (CodeableConcept item : this.type)
3058        if (!item.isEmpty())
3059          return true;
3060      return false;
3061    }
3062
3063    public CodeableConcept addType() { //3
3064      CodeableConcept t = new CodeableConcept();
3065      if (this.type == null)
3066        this.type = new ArrayList<CodeableConcept>();
3067      this.type.add(t);
3068      return t;
3069    }
3070
3071    public Measure addType(CodeableConcept t) { //3
3072      if (t == null)
3073        return this;
3074      if (this.type == null)
3075        this.type = new ArrayList<CodeableConcept>();
3076      this.type.add(t);
3077      return this;
3078    }
3079
3080    /**
3081     * @return The first repetition of repeating field {@link #type}, creating it if it does not already exist
3082     */
3083    public CodeableConcept getTypeFirstRep() { 
3084      if (getType().isEmpty()) {
3085        addType();
3086      }
3087      return getType().get(0);
3088    }
3089
3090    /**
3091     * @return {@link #riskAdjustment} (A description of the risk adjustment factors that may impact the resulting score for the measure and how they may be accounted for when computing and reporting measure results.). This is the underlying object with id, value and extensions. The accessor "getRiskAdjustment" gives direct access to the value
3092     */
3093    public StringType getRiskAdjustmentElement() { 
3094      if (this.riskAdjustment == null)
3095        if (Configuration.errorOnAutoCreate())
3096          throw new Error("Attempt to auto-create Measure.riskAdjustment");
3097        else if (Configuration.doAutoCreate())
3098          this.riskAdjustment = new StringType(); // bb
3099      return this.riskAdjustment;
3100    }
3101
3102    public boolean hasRiskAdjustmentElement() { 
3103      return this.riskAdjustment != null && !this.riskAdjustment.isEmpty();
3104    }
3105
3106    public boolean hasRiskAdjustment() { 
3107      return this.riskAdjustment != null && !this.riskAdjustment.isEmpty();
3108    }
3109
3110    /**
3111     * @param value {@link #riskAdjustment} (A description of the risk adjustment factors that may impact the resulting score for the measure and how they may be accounted for when computing and reporting measure results.). This is the underlying object with id, value and extensions. The accessor "getRiskAdjustment" gives direct access to the value
3112     */
3113    public Measure setRiskAdjustmentElement(StringType value) { 
3114      this.riskAdjustment = value;
3115      return this;
3116    }
3117
3118    /**
3119     * @return A description of the risk adjustment factors that may impact the resulting score for the measure and how they may be accounted for when computing and reporting measure results.
3120     */
3121    public String getRiskAdjustment() { 
3122      return this.riskAdjustment == null ? null : this.riskAdjustment.getValue();
3123    }
3124
3125    /**
3126     * @param value A description of the risk adjustment factors that may impact the resulting score for the measure and how they may be accounted for when computing and reporting measure results.
3127     */
3128    public Measure setRiskAdjustment(String value) { 
3129      if (Utilities.noString(value))
3130        this.riskAdjustment = null;
3131      else {
3132        if (this.riskAdjustment == null)
3133          this.riskAdjustment = new StringType();
3134        this.riskAdjustment.setValue(value);
3135      }
3136      return this;
3137    }
3138
3139    /**
3140     * @return {@link #rateAggregation} (Describes how to combine the information calculated, based on logic in each of several populations, into one summarized result.). This is the underlying object with id, value and extensions. The accessor "getRateAggregation" gives direct access to the value
3141     */
3142    public StringType getRateAggregationElement() { 
3143      if (this.rateAggregation == null)
3144        if (Configuration.errorOnAutoCreate())
3145          throw new Error("Attempt to auto-create Measure.rateAggregation");
3146        else if (Configuration.doAutoCreate())
3147          this.rateAggregation = new StringType(); // bb
3148      return this.rateAggregation;
3149    }
3150
3151    public boolean hasRateAggregationElement() { 
3152      return this.rateAggregation != null && !this.rateAggregation.isEmpty();
3153    }
3154
3155    public boolean hasRateAggregation() { 
3156      return this.rateAggregation != null && !this.rateAggregation.isEmpty();
3157    }
3158
3159    /**
3160     * @param value {@link #rateAggregation} (Describes how to combine the information calculated, based on logic in each of several populations, into one summarized result.). This is the underlying object with id, value and extensions. The accessor "getRateAggregation" gives direct access to the value
3161     */
3162    public Measure setRateAggregationElement(StringType value) { 
3163      this.rateAggregation = value;
3164      return this;
3165    }
3166
3167    /**
3168     * @return Describes how to combine the information calculated, based on logic in each of several populations, into one summarized result.
3169     */
3170    public String getRateAggregation() { 
3171      return this.rateAggregation == null ? null : this.rateAggregation.getValue();
3172    }
3173
3174    /**
3175     * @param value Describes how to combine the information calculated, based on logic in each of several populations, into one summarized result.
3176     */
3177    public Measure setRateAggregation(String value) { 
3178      if (Utilities.noString(value))
3179        this.rateAggregation = null;
3180      else {
3181        if (this.rateAggregation == null)
3182          this.rateAggregation = new StringType();
3183        this.rateAggregation.setValue(value);
3184      }
3185      return this;
3186    }
3187
3188    /**
3189     * @return {@link #rationale} (Provides a succint statement of the need for the measure. Usually includes statements pertaining to importance criterion: impact, gap in care, and evidence.). This is the underlying object with id, value and extensions. The accessor "getRationale" gives direct access to the value
3190     */
3191    public MarkdownType getRationaleElement() { 
3192      if (this.rationale == null)
3193        if (Configuration.errorOnAutoCreate())
3194          throw new Error("Attempt to auto-create Measure.rationale");
3195        else if (Configuration.doAutoCreate())
3196          this.rationale = new MarkdownType(); // bb
3197      return this.rationale;
3198    }
3199
3200    public boolean hasRationaleElement() { 
3201      return this.rationale != null && !this.rationale.isEmpty();
3202    }
3203
3204    public boolean hasRationale() { 
3205      return this.rationale != null && !this.rationale.isEmpty();
3206    }
3207
3208    /**
3209     * @param value {@link #rationale} (Provides a succint statement of the need for the measure. Usually includes statements pertaining to importance criterion: impact, gap in care, and evidence.). This is the underlying object with id, value and extensions. The accessor "getRationale" gives direct access to the value
3210     */
3211    public Measure setRationaleElement(MarkdownType value) { 
3212      this.rationale = value;
3213      return this;
3214    }
3215
3216    /**
3217     * @return Provides a succint statement of the need for the measure. Usually includes statements pertaining to importance criterion: impact, gap in care, and evidence.
3218     */
3219    public String getRationale() { 
3220      return this.rationale == null ? null : this.rationale.getValue();
3221    }
3222
3223    /**
3224     * @param value Provides a succint statement of the need for the measure. Usually includes statements pertaining to importance criterion: impact, gap in care, and evidence.
3225     */
3226    public Measure setRationale(String value) { 
3227      if (value == null)
3228        this.rationale = null;
3229      else {
3230        if (this.rationale == null)
3231          this.rationale = new MarkdownType();
3232        this.rationale.setValue(value);
3233      }
3234      return this;
3235    }
3236
3237    /**
3238     * @return {@link #clinicalRecommendationStatement} (Provides a summary of relevant clinical guidelines or other clinical recommendations supporting the measure.). This is the underlying object with id, value and extensions. The accessor "getClinicalRecommendationStatement" gives direct access to the value
3239     */
3240    public MarkdownType getClinicalRecommendationStatementElement() { 
3241      if (this.clinicalRecommendationStatement == null)
3242        if (Configuration.errorOnAutoCreate())
3243          throw new Error("Attempt to auto-create Measure.clinicalRecommendationStatement");
3244        else if (Configuration.doAutoCreate())
3245          this.clinicalRecommendationStatement = new MarkdownType(); // bb
3246      return this.clinicalRecommendationStatement;
3247    }
3248
3249    public boolean hasClinicalRecommendationStatementElement() { 
3250      return this.clinicalRecommendationStatement != null && !this.clinicalRecommendationStatement.isEmpty();
3251    }
3252
3253    public boolean hasClinicalRecommendationStatement() { 
3254      return this.clinicalRecommendationStatement != null && !this.clinicalRecommendationStatement.isEmpty();
3255    }
3256
3257    /**
3258     * @param value {@link #clinicalRecommendationStatement} (Provides a summary of relevant clinical guidelines or other clinical recommendations supporting the measure.). This is the underlying object with id, value and extensions. The accessor "getClinicalRecommendationStatement" gives direct access to the value
3259     */
3260    public Measure setClinicalRecommendationStatementElement(MarkdownType value) { 
3261      this.clinicalRecommendationStatement = value;
3262      return this;
3263    }
3264
3265    /**
3266     * @return Provides a summary of relevant clinical guidelines or other clinical recommendations supporting the measure.
3267     */
3268    public String getClinicalRecommendationStatement() { 
3269      return this.clinicalRecommendationStatement == null ? null : this.clinicalRecommendationStatement.getValue();
3270    }
3271
3272    /**
3273     * @param value Provides a summary of relevant clinical guidelines or other clinical recommendations supporting the measure.
3274     */
3275    public Measure setClinicalRecommendationStatement(String value) { 
3276      if (value == null)
3277        this.clinicalRecommendationStatement = null;
3278      else {
3279        if (this.clinicalRecommendationStatement == null)
3280          this.clinicalRecommendationStatement = new MarkdownType();
3281        this.clinicalRecommendationStatement.setValue(value);
3282      }
3283      return this;
3284    }
3285
3286    /**
3287     * @return {@link #improvementNotation} (Information on whether an increase or decrease in score is the preferred result (e.g., a higher score indicates better quality OR a lower score indicates better quality OR quality is whthin a range).). This is the underlying object with id, value and extensions. The accessor "getImprovementNotation" gives direct access to the value
3288     */
3289    public StringType getImprovementNotationElement() { 
3290      if (this.improvementNotation == null)
3291        if (Configuration.errorOnAutoCreate())
3292          throw new Error("Attempt to auto-create Measure.improvementNotation");
3293        else if (Configuration.doAutoCreate())
3294          this.improvementNotation = new StringType(); // bb
3295      return this.improvementNotation;
3296    }
3297
3298    public boolean hasImprovementNotationElement() { 
3299      return this.improvementNotation != null && !this.improvementNotation.isEmpty();
3300    }
3301
3302    public boolean hasImprovementNotation() { 
3303      return this.improvementNotation != null && !this.improvementNotation.isEmpty();
3304    }
3305
3306    /**
3307     * @param value {@link #improvementNotation} (Information on whether an increase or decrease in score is the preferred result (e.g., a higher score indicates better quality OR a lower score indicates better quality OR quality is whthin a range).). This is the underlying object with id, value and extensions. The accessor "getImprovementNotation" gives direct access to the value
3308     */
3309    public Measure setImprovementNotationElement(StringType value) { 
3310      this.improvementNotation = value;
3311      return this;
3312    }
3313
3314    /**
3315     * @return Information on whether an increase or decrease in score is the preferred result (e.g., a higher score indicates better quality OR a lower score indicates better quality OR quality is whthin a range).
3316     */
3317    public String getImprovementNotation() { 
3318      return this.improvementNotation == null ? null : this.improvementNotation.getValue();
3319    }
3320
3321    /**
3322     * @param value Information on whether an increase or decrease in score is the preferred result (e.g., a higher score indicates better quality OR a lower score indicates better quality OR quality is whthin a range).
3323     */
3324    public Measure setImprovementNotation(String value) { 
3325      if (Utilities.noString(value))
3326        this.improvementNotation = null;
3327      else {
3328        if (this.improvementNotation == null)
3329          this.improvementNotation = new StringType();
3330        this.improvementNotation.setValue(value);
3331      }
3332      return this;
3333    }
3334
3335    /**
3336     * @return {@link #definition} (Provides a description of an individual term used within the measure.)
3337     */
3338    public List<MarkdownType> getDefinition() { 
3339      if (this.definition == null)
3340        this.definition = new ArrayList<MarkdownType>();
3341      return this.definition;
3342    }
3343
3344    /**
3345     * @return Returns a reference to <code>this</code> for easy method chaining
3346     */
3347    public Measure setDefinition(List<MarkdownType> theDefinition) { 
3348      this.definition = theDefinition;
3349      return this;
3350    }
3351
3352    public boolean hasDefinition() { 
3353      if (this.definition == null)
3354        return false;
3355      for (MarkdownType item : this.definition)
3356        if (!item.isEmpty())
3357          return true;
3358      return false;
3359    }
3360
3361    /**
3362     * @return {@link #definition} (Provides a description of an individual term used within the measure.)
3363     */
3364    public MarkdownType addDefinitionElement() {//2 
3365      MarkdownType t = new MarkdownType();
3366      if (this.definition == null)
3367        this.definition = new ArrayList<MarkdownType>();
3368      this.definition.add(t);
3369      return t;
3370    }
3371
3372    /**
3373     * @param value {@link #definition} (Provides a description of an individual term used within the measure.)
3374     */
3375    public Measure addDefinition(String value) { //1
3376      MarkdownType t = new MarkdownType();
3377      t.setValue(value);
3378      if (this.definition == null)
3379        this.definition = new ArrayList<MarkdownType>();
3380      this.definition.add(t);
3381      return this;
3382    }
3383
3384    /**
3385     * @param value {@link #definition} (Provides a description of an individual term used within the measure.)
3386     */
3387    public boolean hasDefinition(String value) { 
3388      if (this.definition == null)
3389        return false;
3390      for (MarkdownType v : this.definition)
3391        if (v.getValue().equals(value)) // markdown
3392          return true;
3393      return false;
3394    }
3395
3396    /**
3397     * @return {@link #guidance} (Additional guidance for the measure including how it can be used in a clinical context, and the intent of the measure.). This is the underlying object with id, value and extensions. The accessor "getGuidance" gives direct access to the value
3398     */
3399    public MarkdownType getGuidanceElement() { 
3400      if (this.guidance == null)
3401        if (Configuration.errorOnAutoCreate())
3402          throw new Error("Attempt to auto-create Measure.guidance");
3403        else if (Configuration.doAutoCreate())
3404          this.guidance = new MarkdownType(); // bb
3405      return this.guidance;
3406    }
3407
3408    public boolean hasGuidanceElement() { 
3409      return this.guidance != null && !this.guidance.isEmpty();
3410    }
3411
3412    public boolean hasGuidance() { 
3413      return this.guidance != null && !this.guidance.isEmpty();
3414    }
3415
3416    /**
3417     * @param value {@link #guidance} (Additional guidance for the measure including how it can be used in a clinical context, and the intent of the measure.). This is the underlying object with id, value and extensions. The accessor "getGuidance" gives direct access to the value
3418     */
3419    public Measure setGuidanceElement(MarkdownType value) { 
3420      this.guidance = value;
3421      return this;
3422    }
3423
3424    /**
3425     * @return Additional guidance for the measure including how it can be used in a clinical context, and the intent of the measure.
3426     */
3427    public String getGuidance() { 
3428      return this.guidance == null ? null : this.guidance.getValue();
3429    }
3430
3431    /**
3432     * @param value Additional guidance for the measure including how it can be used in a clinical context, and the intent of the measure.
3433     */
3434    public Measure setGuidance(String value) { 
3435      if (value == null)
3436        this.guidance = null;
3437      else {
3438        if (this.guidance == null)
3439          this.guidance = new MarkdownType();
3440        this.guidance.setValue(value);
3441      }
3442      return this;
3443    }
3444
3445    /**
3446     * @return {@link #set} (The measure set, e.g. Preventive Care and Screening.). This is the underlying object with id, value and extensions. The accessor "getSet" gives direct access to the value
3447     */
3448    public StringType getSetElement() { 
3449      if (this.set == null)
3450        if (Configuration.errorOnAutoCreate())
3451          throw new Error("Attempt to auto-create Measure.set");
3452        else if (Configuration.doAutoCreate())
3453          this.set = new StringType(); // bb
3454      return this.set;
3455    }
3456
3457    public boolean hasSetElement() { 
3458      return this.set != null && !this.set.isEmpty();
3459    }
3460
3461    public boolean hasSet() { 
3462      return this.set != null && !this.set.isEmpty();
3463    }
3464
3465    /**
3466     * @param value {@link #set} (The measure set, e.g. Preventive Care and Screening.). This is the underlying object with id, value and extensions. The accessor "getSet" gives direct access to the value
3467     */
3468    public Measure setSetElement(StringType value) { 
3469      this.set = value;
3470      return this;
3471    }
3472
3473    /**
3474     * @return The measure set, e.g. Preventive Care and Screening.
3475     */
3476    public String getSet() { 
3477      return this.set == null ? null : this.set.getValue();
3478    }
3479
3480    /**
3481     * @param value The measure set, e.g. Preventive Care and Screening.
3482     */
3483    public Measure setSet(String value) { 
3484      if (Utilities.noString(value))
3485        this.set = null;
3486      else {
3487        if (this.set == null)
3488          this.set = new StringType();
3489        this.set.setValue(value);
3490      }
3491      return this;
3492    }
3493
3494    /**
3495     * @return {@link #group} (A group of population criteria for the measure.)
3496     */
3497    public List<MeasureGroupComponent> getGroup() { 
3498      if (this.group == null)
3499        this.group = new ArrayList<MeasureGroupComponent>();
3500      return this.group;
3501    }
3502
3503    /**
3504     * @return Returns a reference to <code>this</code> for easy method chaining
3505     */
3506    public Measure setGroup(List<MeasureGroupComponent> theGroup) { 
3507      this.group = theGroup;
3508      return this;
3509    }
3510
3511    public boolean hasGroup() { 
3512      if (this.group == null)
3513        return false;
3514      for (MeasureGroupComponent item : this.group)
3515        if (!item.isEmpty())
3516          return true;
3517      return false;
3518    }
3519
3520    public MeasureGroupComponent addGroup() { //3
3521      MeasureGroupComponent t = new MeasureGroupComponent();
3522      if (this.group == null)
3523        this.group = new ArrayList<MeasureGroupComponent>();
3524      this.group.add(t);
3525      return t;
3526    }
3527
3528    public Measure addGroup(MeasureGroupComponent t) { //3
3529      if (t == null)
3530        return this;
3531      if (this.group == null)
3532        this.group = new ArrayList<MeasureGroupComponent>();
3533      this.group.add(t);
3534      return this;
3535    }
3536
3537    /**
3538     * @return The first repetition of repeating field {@link #group}, creating it if it does not already exist
3539     */
3540    public MeasureGroupComponent getGroupFirstRep() { 
3541      if (getGroup().isEmpty()) {
3542        addGroup();
3543      }
3544      return getGroup().get(0);
3545    }
3546
3547    /**
3548     * @return {@link #supplementalData} (The supplemental data criteria for the measure report, specified as either the name of a valid CQL expression within a referenced library, or a valid FHIR Resource Path.)
3549     */
3550    public List<MeasureSupplementalDataComponent> getSupplementalData() { 
3551      if (this.supplementalData == null)
3552        this.supplementalData = new ArrayList<MeasureSupplementalDataComponent>();
3553      return this.supplementalData;
3554    }
3555
3556    /**
3557     * @return Returns a reference to <code>this</code> for easy method chaining
3558     */
3559    public Measure setSupplementalData(List<MeasureSupplementalDataComponent> theSupplementalData) { 
3560      this.supplementalData = theSupplementalData;
3561      return this;
3562    }
3563
3564    public boolean hasSupplementalData() { 
3565      if (this.supplementalData == null)
3566        return false;
3567      for (MeasureSupplementalDataComponent item : this.supplementalData)
3568        if (!item.isEmpty())
3569          return true;
3570      return false;
3571    }
3572
3573    public MeasureSupplementalDataComponent addSupplementalData() { //3
3574      MeasureSupplementalDataComponent t = new MeasureSupplementalDataComponent();
3575      if (this.supplementalData == null)
3576        this.supplementalData = new ArrayList<MeasureSupplementalDataComponent>();
3577      this.supplementalData.add(t);
3578      return t;
3579    }
3580
3581    public Measure addSupplementalData(MeasureSupplementalDataComponent t) { //3
3582      if (t == null)
3583        return this;
3584      if (this.supplementalData == null)
3585        this.supplementalData = new ArrayList<MeasureSupplementalDataComponent>();
3586      this.supplementalData.add(t);
3587      return this;
3588    }
3589
3590    /**
3591     * @return The first repetition of repeating field {@link #supplementalData}, creating it if it does not already exist
3592     */
3593    public MeasureSupplementalDataComponent getSupplementalDataFirstRep() { 
3594      if (getSupplementalData().isEmpty()) {
3595        addSupplementalData();
3596      }
3597      return getSupplementalData().get(0);
3598    }
3599
3600      protected void listChildren(List<Property> children) {
3601        super.listChildren(children);
3602        children.add(new Property("url", "uri", "An absolute URI that is used to identify this measure when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this measure is (or will be) published. The URL SHOULD include the major version of the measure. For more information see [Technical and Business Versions](resource.html#versions).", 0, 1, url));
3603        children.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this measure when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier));
3604        children.add(new Property("version", "string", "The identifier that is used to identify this version of the measure when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the measure 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. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts.", 0, 1, version));
3605        children.add(new Property("name", "string", "A natural language name identifying the measure. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name));
3606        children.add(new Property("title", "string", "A short, descriptive, user-friendly title for the measure.", 0, 1, title));
3607        children.add(new Property("status", "code", "The status of this measure. Enables tracking the life-cycle of the content.", 0, 1, status));
3608        children.add(new Property("experimental", "boolean", "A boolean value to indicate that this measure is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.", 0, 1, experimental));
3609        children.add(new Property("date", "dateTime", "The date  (and optionally time) when the measure was published. The date must change if and 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 measure changes.", 0, 1, date));
3610        children.add(new Property("publisher", "string", "The name of the individual or organization that published the measure.", 0, 1, publisher));
3611        children.add(new Property("description", "markdown", "A free text natural language description of the measure from a consumer's perspective.", 0, 1, description));
3612        children.add(new Property("purpose", "markdown", "Explaination of why this measure is needed and why it has been designed as it has.", 0, 1, purpose));
3613        children.add(new Property("usage", "string", "A detailed description of how the measure is used from a clinical perspective.", 0, 1, usage));
3614        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));
3615        children.add(new Property("lastReviewDate", "date", "The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date.", 0, 1, lastReviewDate));
3616        children.add(new Property("effectivePeriod", "Period", "The period during which the measure content was or is planned to be in active use.", 0, 1, effectivePeriod));
3617        children.add(new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate measure instances.", 0, java.lang.Integer.MAX_VALUE, useContext));
3618        children.add(new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the measure is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction));
3619        children.add(new Property("topic", "CodeableConcept", "Descriptive topics related to the content of the measure. Topics provide a high-level categorization of the type of the measure that can be useful for filtering and searching.", 0, java.lang.Integer.MAX_VALUE, topic));
3620        children.add(new Property("contributor", "Contributor", "A contributor to the content of the measure, including authors, editors, reviewers, and endorsers.", 0, java.lang.Integer.MAX_VALUE, contributor));
3621        children.add(new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact));
3622        children.add(new Property("copyright", "markdown", "A copyright statement relating to the measure and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the measure.", 0, 1, copyright));
3623        children.add(new Property("relatedArtifact", "RelatedArtifact", "Related artifacts such as additional documentation, justification, or bibliographic references.", 0, java.lang.Integer.MAX_VALUE, relatedArtifact));
3624        children.add(new Property("library", "Reference(Library)", "A reference to a Library resource containing the formal logic used by the measure.", 0, java.lang.Integer.MAX_VALUE, library));
3625        children.add(new Property("disclaimer", "markdown", "Notices and disclaimers regarding the use of the measure, or related to intellectual property (such as code systems) referenced by the measure.", 0, 1, disclaimer));
3626        children.add(new Property("scoring", "CodeableConcept", "Indicates how the calculation is performed for the measure, including proportion, ratio, continuous variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented.", 0, 1, scoring));
3627        children.add(new Property("compositeScoring", "CodeableConcept", "If this is a composite measure, the scoring method used to combine the component measures to determine the composite score.", 0, 1, compositeScoring));
3628        children.add(new Property("type", "CodeableConcept", "Indicates whether the measure is used to examine a process, an outcome over time, a patient-reported outcome, or a structure measure such as utilization.", 0, java.lang.Integer.MAX_VALUE, type));
3629        children.add(new Property("riskAdjustment", "string", "A description of the risk adjustment factors that may impact the resulting score for the measure and how they may be accounted for when computing and reporting measure results.", 0, 1, riskAdjustment));
3630        children.add(new Property("rateAggregation", "string", "Describes how to combine the information calculated, based on logic in each of several populations, into one summarized result.", 0, 1, rateAggregation));
3631        children.add(new Property("rationale", "markdown", "Provides a succint statement of the need for the measure. Usually includes statements pertaining to importance criterion: impact, gap in care, and evidence.", 0, 1, rationale));
3632        children.add(new Property("clinicalRecommendationStatement", "markdown", "Provides a summary of relevant clinical guidelines or other clinical recommendations supporting the measure.", 0, 1, clinicalRecommendationStatement));
3633        children.add(new Property("improvementNotation", "string", "Information on whether an increase or decrease in score is the preferred result (e.g., a higher score indicates better quality OR a lower score indicates better quality OR quality is whthin a range).", 0, 1, improvementNotation));
3634        children.add(new Property("definition", "markdown", "Provides a description of an individual term used within the measure.", 0, java.lang.Integer.MAX_VALUE, definition));
3635        children.add(new Property("guidance", "markdown", "Additional guidance for the measure including how it can be used in a clinical context, and the intent of the measure.", 0, 1, guidance));
3636        children.add(new Property("set", "string", "The measure set, e.g. Preventive Care and Screening.", 0, 1, set));
3637        children.add(new Property("group", "", "A group of population criteria for the measure.", 0, java.lang.Integer.MAX_VALUE, group));
3638        children.add(new Property("supplementalData", "", "The supplemental data criteria for the measure report, specified as either the name of a valid CQL expression within a referenced library, or a valid FHIR Resource Path.", 0, java.lang.Integer.MAX_VALUE, supplementalData));
3639      }
3640
3641      @Override
3642      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
3643        switch (_hash) {
3644        case 116079: /*url*/  return new Property("url", "uri", "An absolute URI that is used to identify this measure when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this measure is (or will be) published. The URL SHOULD include the major version of the measure. For more information see [Technical and Business Versions](resource.html#versions).", 0, 1, url);
3645        case -1618432855: /*identifier*/  return new Property("identifier", "Identifier", "A formal identifier that is used to identify this measure when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier);
3646        case 351608024: /*version*/  return new Property("version", "string", "The identifier that is used to identify this version of the measure when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the measure 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. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts.", 0, 1, version);
3647        case 3373707: /*name*/  return new Property("name", "string", "A natural language name identifying the measure. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name);
3648        case 110371416: /*title*/  return new Property("title", "string", "A short, descriptive, user-friendly title for the measure.", 0, 1, title);
3649        case -892481550: /*status*/  return new Property("status", "code", "The status of this measure. Enables tracking the life-cycle of the content.", 0, 1, status);
3650        case -404562712: /*experimental*/  return new Property("experimental", "boolean", "A boolean value to indicate that this measure is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.", 0, 1, experimental);
3651        case 3076014: /*date*/  return new Property("date", "dateTime", "The date  (and optionally time) when the measure was published. The date must change if and 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 measure changes.", 0, 1, date);
3652        case 1447404028: /*publisher*/  return new Property("publisher", "string", "The name of the individual or organization that published the measure.", 0, 1, publisher);
3653        case -1724546052: /*description*/  return new Property("description", "markdown", "A free text natural language description of the measure from a consumer's perspective.", 0, 1, description);
3654        case -220463842: /*purpose*/  return new Property("purpose", "markdown", "Explaination of why this measure is needed and why it has been designed as it has.", 0, 1, purpose);
3655        case 111574433: /*usage*/  return new Property("usage", "string", "A detailed description of how the measure is used from a clinical perspective.", 0, 1, usage);
3656        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);
3657        case -1687512484: /*lastReviewDate*/  return new Property("lastReviewDate", "date", "The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date.", 0, 1, lastReviewDate);
3658        case -403934648: /*effectivePeriod*/  return new Property("effectivePeriod", "Period", "The period during which the measure content was or is planned to be in active use.", 0, 1, effectivePeriod);
3659        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 terms may be used to assist with indexing and searching for appropriate measure instances.", 0, java.lang.Integer.MAX_VALUE, useContext);
3660        case -507075711: /*jurisdiction*/  return new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the measure is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction);
3661        case 110546223: /*topic*/  return new Property("topic", "CodeableConcept", "Descriptive topics related to the content of the measure. Topics provide a high-level categorization of the type of the measure that can be useful for filtering and searching.", 0, java.lang.Integer.MAX_VALUE, topic);
3662        case -1895276325: /*contributor*/  return new Property("contributor", "Contributor", "A contributor to the content of the measure, including authors, editors, reviewers, and endorsers.", 0, java.lang.Integer.MAX_VALUE, contributor);
3663        case 951526432: /*contact*/  return new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact);
3664        case 1522889671: /*copyright*/  return new Property("copyright", "markdown", "A copyright statement relating to the measure and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the measure.", 0, 1, copyright);
3665        case 666807069: /*relatedArtifact*/  return new Property("relatedArtifact", "RelatedArtifact", "Related artifacts such as additional documentation, justification, or bibliographic references.", 0, java.lang.Integer.MAX_VALUE, relatedArtifact);
3666        case 166208699: /*library*/  return new Property("library", "Reference(Library)", "A reference to a Library resource containing the formal logic used by the measure.", 0, java.lang.Integer.MAX_VALUE, library);
3667        case 432371099: /*disclaimer*/  return new Property("disclaimer", "markdown", "Notices and disclaimers regarding the use of the measure, or related to intellectual property (such as code systems) referenced by the measure.", 0, 1, disclaimer);
3668        case 1924005583: /*scoring*/  return new Property("scoring", "CodeableConcept", "Indicates how the calculation is performed for the measure, including proportion, ratio, continuous variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented.", 0, 1, scoring);
3669        case 569347656: /*compositeScoring*/  return new Property("compositeScoring", "CodeableConcept", "If this is a composite measure, the scoring method used to combine the component measures to determine the composite score.", 0, 1, compositeScoring);
3670        case 3575610: /*type*/  return new Property("type", "CodeableConcept", "Indicates whether the measure is used to examine a process, an outcome over time, a patient-reported outcome, or a structure measure such as utilization.", 0, java.lang.Integer.MAX_VALUE, type);
3671        case 93273500: /*riskAdjustment*/  return new Property("riskAdjustment", "string", "A description of the risk adjustment factors that may impact the resulting score for the measure and how they may be accounted for when computing and reporting measure results.", 0, 1, riskAdjustment);
3672        case 1254503906: /*rateAggregation*/  return new Property("rateAggregation", "string", "Describes how to combine the information calculated, based on logic in each of several populations, into one summarized result.", 0, 1, rateAggregation);
3673        case 345689335: /*rationale*/  return new Property("rationale", "markdown", "Provides a succint statement of the need for the measure. Usually includes statements pertaining to importance criterion: impact, gap in care, and evidence.", 0, 1, rationale);
3674        case -18631389: /*clinicalRecommendationStatement*/  return new Property("clinicalRecommendationStatement", "markdown", "Provides a summary of relevant clinical guidelines or other clinical recommendations supporting the measure.", 0, 1, clinicalRecommendationStatement);
3675        case -2085456136: /*improvementNotation*/  return new Property("improvementNotation", "string", "Information on whether an increase or decrease in score is the preferred result (e.g., a higher score indicates better quality OR a lower score indicates better quality OR quality is whthin a range).", 0, 1, improvementNotation);
3676        case -1014418093: /*definition*/  return new Property("definition", "markdown", "Provides a description of an individual term used within the measure.", 0, java.lang.Integer.MAX_VALUE, definition);
3677        case -1314002088: /*guidance*/  return new Property("guidance", "markdown", "Additional guidance for the measure including how it can be used in a clinical context, and the intent of the measure.", 0, 1, guidance);
3678        case 113762: /*set*/  return new Property("set", "string", "The measure set, e.g. Preventive Care and Screening.", 0, 1, set);
3679        case 98629247: /*group*/  return new Property("group", "", "A group of population criteria for the measure.", 0, java.lang.Integer.MAX_VALUE, group);
3680        case 1447496814: /*supplementalData*/  return new Property("supplementalData", "", "The supplemental data criteria for the measure report, specified as either the name of a valid CQL expression within a referenced library, or a valid FHIR Resource Path.", 0, java.lang.Integer.MAX_VALUE, supplementalData);
3681        default: return super.getNamedProperty(_hash, _name, _checkValid);
3682        }
3683
3684      }
3685
3686      @Override
3687      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
3688        switch (hash) {
3689        case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType
3690        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier
3691        case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType
3692        case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType
3693        case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType
3694        case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<PublicationStatus>
3695        case -404562712: /*experimental*/ return this.experimental == null ? new Base[0] : new Base[] {this.experimental}; // BooleanType
3696        case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType
3697        case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // StringType
3698        case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType
3699        case -220463842: /*purpose*/ return this.purpose == null ? new Base[0] : new Base[] {this.purpose}; // MarkdownType
3700        case 111574433: /*usage*/ return this.usage == null ? new Base[0] : new Base[] {this.usage}; // StringType
3701        case 223539345: /*approvalDate*/ return this.approvalDate == null ? new Base[0] : new Base[] {this.approvalDate}; // DateType
3702        case -1687512484: /*lastReviewDate*/ return this.lastReviewDate == null ? new Base[0] : new Base[] {this.lastReviewDate}; // DateType
3703        case -403934648: /*effectivePeriod*/ return this.effectivePeriod == null ? new Base[0] : new Base[] {this.effectivePeriod}; // Period
3704        case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext
3705        case -507075711: /*jurisdiction*/ return this.jurisdiction == null ? new Base[0] : this.jurisdiction.toArray(new Base[this.jurisdiction.size()]); // CodeableConcept
3706        case 110546223: /*topic*/ return this.topic == null ? new Base[0] : this.topic.toArray(new Base[this.topic.size()]); // CodeableConcept
3707        case -1895276325: /*contributor*/ return this.contributor == null ? new Base[0] : this.contributor.toArray(new Base[this.contributor.size()]); // Contributor
3708        case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail
3709        case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // MarkdownType
3710        case 666807069: /*relatedArtifact*/ return this.relatedArtifact == null ? new Base[0] : this.relatedArtifact.toArray(new Base[this.relatedArtifact.size()]); // RelatedArtifact
3711        case 166208699: /*library*/ return this.library == null ? new Base[0] : this.library.toArray(new Base[this.library.size()]); // Reference
3712        case 432371099: /*disclaimer*/ return this.disclaimer == null ? new Base[0] : new Base[] {this.disclaimer}; // MarkdownType
3713        case 1924005583: /*scoring*/ return this.scoring == null ? new Base[0] : new Base[] {this.scoring}; // CodeableConcept
3714        case 569347656: /*compositeScoring*/ return this.compositeScoring == null ? new Base[0] : new Base[] {this.compositeScoring}; // CodeableConcept
3715        case 3575610: /*type*/ return this.type == null ? new Base[0] : this.type.toArray(new Base[this.type.size()]); // CodeableConcept
3716        case 93273500: /*riskAdjustment*/ return this.riskAdjustment == null ? new Base[0] : new Base[] {this.riskAdjustment}; // StringType
3717        case 1254503906: /*rateAggregation*/ return this.rateAggregation == null ? new Base[0] : new Base[] {this.rateAggregation}; // StringType
3718        case 345689335: /*rationale*/ return this.rationale == null ? new Base[0] : new Base[] {this.rationale}; // MarkdownType
3719        case -18631389: /*clinicalRecommendationStatement*/ return this.clinicalRecommendationStatement == null ? new Base[0] : new Base[] {this.clinicalRecommendationStatement}; // MarkdownType
3720        case -2085456136: /*improvementNotation*/ return this.improvementNotation == null ? new Base[0] : new Base[] {this.improvementNotation}; // StringType
3721        case -1014418093: /*definition*/ return this.definition == null ? new Base[0] : this.definition.toArray(new Base[this.definition.size()]); // MarkdownType
3722        case -1314002088: /*guidance*/ return this.guidance == null ? new Base[0] : new Base[] {this.guidance}; // MarkdownType
3723        case 113762: /*set*/ return this.set == null ? new Base[0] : new Base[] {this.set}; // StringType
3724        case 98629247: /*group*/ return this.group == null ? new Base[0] : this.group.toArray(new Base[this.group.size()]); // MeasureGroupComponent
3725        case 1447496814: /*supplementalData*/ return this.supplementalData == null ? new Base[0] : this.supplementalData.toArray(new Base[this.supplementalData.size()]); // MeasureSupplementalDataComponent
3726        default: return super.getProperty(hash, name, checkValid);
3727        }
3728
3729      }
3730
3731      @Override
3732      public Base setProperty(int hash, String name, Base value) throws FHIRException {
3733        switch (hash) {
3734        case 116079: // url
3735          this.url = castToUri(value); // UriType
3736          return value;
3737        case -1618432855: // identifier
3738          this.getIdentifier().add(castToIdentifier(value)); // Identifier
3739          return value;
3740        case 351608024: // version
3741          this.version = castToString(value); // StringType
3742          return value;
3743        case 3373707: // name
3744          this.name = castToString(value); // StringType
3745          return value;
3746        case 110371416: // title
3747          this.title = castToString(value); // StringType
3748          return value;
3749        case -892481550: // status
3750          value = new PublicationStatusEnumFactory().fromType(castToCode(value));
3751          this.status = (Enumeration) value; // Enumeration<PublicationStatus>
3752          return value;
3753        case -404562712: // experimental
3754          this.experimental = castToBoolean(value); // BooleanType
3755          return value;
3756        case 3076014: // date
3757          this.date = castToDateTime(value); // DateTimeType
3758          return value;
3759        case 1447404028: // publisher
3760          this.publisher = castToString(value); // StringType
3761          return value;
3762        case -1724546052: // description
3763          this.description = castToMarkdown(value); // MarkdownType
3764          return value;
3765        case -220463842: // purpose
3766          this.purpose = castToMarkdown(value); // MarkdownType
3767          return value;
3768        case 111574433: // usage
3769          this.usage = castToString(value); // StringType
3770          return value;
3771        case 223539345: // approvalDate
3772          this.approvalDate = castToDate(value); // DateType
3773          return value;
3774        case -1687512484: // lastReviewDate
3775          this.lastReviewDate = castToDate(value); // DateType
3776          return value;
3777        case -403934648: // effectivePeriod
3778          this.effectivePeriod = castToPeriod(value); // Period
3779          return value;
3780        case -669707736: // useContext
3781          this.getUseContext().add(castToUsageContext(value)); // UsageContext
3782          return value;
3783        case -507075711: // jurisdiction
3784          this.getJurisdiction().add(castToCodeableConcept(value)); // CodeableConcept
3785          return value;
3786        case 110546223: // topic
3787          this.getTopic().add(castToCodeableConcept(value)); // CodeableConcept
3788          return value;
3789        case -1895276325: // contributor
3790          this.getContributor().add(castToContributor(value)); // Contributor
3791          return value;
3792        case 951526432: // contact
3793          this.getContact().add(castToContactDetail(value)); // ContactDetail
3794          return value;
3795        case 1522889671: // copyright
3796          this.copyright = castToMarkdown(value); // MarkdownType
3797          return value;
3798        case 666807069: // relatedArtifact
3799          this.getRelatedArtifact().add(castToRelatedArtifact(value)); // RelatedArtifact
3800          return value;
3801        case 166208699: // library
3802          this.getLibrary().add(castToReference(value)); // Reference
3803          return value;
3804        case 432371099: // disclaimer
3805          this.disclaimer = castToMarkdown(value); // MarkdownType
3806          return value;
3807        case 1924005583: // scoring
3808          this.scoring = castToCodeableConcept(value); // CodeableConcept
3809          return value;
3810        case 569347656: // compositeScoring
3811          this.compositeScoring = castToCodeableConcept(value); // CodeableConcept
3812          return value;
3813        case 3575610: // type
3814          this.getType().add(castToCodeableConcept(value)); // CodeableConcept
3815          return value;
3816        case 93273500: // riskAdjustment
3817          this.riskAdjustment = castToString(value); // StringType
3818          return value;
3819        case 1254503906: // rateAggregation
3820          this.rateAggregation = castToString(value); // StringType
3821          return value;
3822        case 345689335: // rationale
3823          this.rationale = castToMarkdown(value); // MarkdownType
3824          return value;
3825        case -18631389: // clinicalRecommendationStatement
3826          this.clinicalRecommendationStatement = castToMarkdown(value); // MarkdownType
3827          return value;
3828        case -2085456136: // improvementNotation
3829          this.improvementNotation = castToString(value); // StringType
3830          return value;
3831        case -1014418093: // definition
3832          this.getDefinition().add(castToMarkdown(value)); // MarkdownType
3833          return value;
3834        case -1314002088: // guidance
3835          this.guidance = castToMarkdown(value); // MarkdownType
3836          return value;
3837        case 113762: // set
3838          this.set = castToString(value); // StringType
3839          return value;
3840        case 98629247: // group
3841          this.getGroup().add((MeasureGroupComponent) value); // MeasureGroupComponent
3842          return value;
3843        case 1447496814: // supplementalData
3844          this.getSupplementalData().add((MeasureSupplementalDataComponent) value); // MeasureSupplementalDataComponent
3845          return value;
3846        default: return super.setProperty(hash, name, value);
3847        }
3848
3849      }
3850
3851      @Override
3852      public Base setProperty(String name, Base value) throws FHIRException {
3853        if (name.equals("url")) {
3854          this.url = castToUri(value); // UriType
3855        } else if (name.equals("identifier")) {
3856          this.getIdentifier().add(castToIdentifier(value));
3857        } else if (name.equals("version")) {
3858          this.version = castToString(value); // StringType
3859        } else if (name.equals("name")) {
3860          this.name = castToString(value); // StringType
3861        } else if (name.equals("title")) {
3862          this.title = castToString(value); // StringType
3863        } else if (name.equals("status")) {
3864          value = new PublicationStatusEnumFactory().fromType(castToCode(value));
3865          this.status = (Enumeration) value; // Enumeration<PublicationStatus>
3866        } else if (name.equals("experimental")) {
3867          this.experimental = castToBoolean(value); // BooleanType
3868        } else if (name.equals("date")) {
3869          this.date = castToDateTime(value); // DateTimeType
3870        } else if (name.equals("publisher")) {
3871          this.publisher = castToString(value); // StringType
3872        } else if (name.equals("description")) {
3873          this.description = castToMarkdown(value); // MarkdownType
3874        } else if (name.equals("purpose")) {
3875          this.purpose = castToMarkdown(value); // MarkdownType
3876        } else if (name.equals("usage")) {
3877          this.usage = castToString(value); // StringType
3878        } else if (name.equals("approvalDate")) {
3879          this.approvalDate = castToDate(value); // DateType
3880        } else if (name.equals("lastReviewDate")) {
3881          this.lastReviewDate = castToDate(value); // DateType
3882        } else if (name.equals("effectivePeriod")) {
3883          this.effectivePeriod = castToPeriod(value); // Period
3884        } else if (name.equals("useContext")) {
3885          this.getUseContext().add(castToUsageContext(value));
3886        } else if (name.equals("jurisdiction")) {
3887          this.getJurisdiction().add(castToCodeableConcept(value));
3888        } else if (name.equals("topic")) {
3889          this.getTopic().add(castToCodeableConcept(value));
3890        } else if (name.equals("contributor")) {
3891          this.getContributor().add(castToContributor(value));
3892        } else if (name.equals("contact")) {
3893          this.getContact().add(castToContactDetail(value));
3894        } else if (name.equals("copyright")) {
3895          this.copyright = castToMarkdown(value); // MarkdownType
3896        } else if (name.equals("relatedArtifact")) {
3897          this.getRelatedArtifact().add(castToRelatedArtifact(value));
3898        } else if (name.equals("library")) {
3899          this.getLibrary().add(castToReference(value));
3900        } else if (name.equals("disclaimer")) {
3901          this.disclaimer = castToMarkdown(value); // MarkdownType
3902        } else if (name.equals("scoring")) {
3903          this.scoring = castToCodeableConcept(value); // CodeableConcept
3904        } else if (name.equals("compositeScoring")) {
3905          this.compositeScoring = castToCodeableConcept(value); // CodeableConcept
3906        } else if (name.equals("type")) {
3907          this.getType().add(castToCodeableConcept(value));
3908        } else if (name.equals("riskAdjustment")) {
3909          this.riskAdjustment = castToString(value); // StringType
3910        } else if (name.equals("rateAggregation")) {
3911          this.rateAggregation = castToString(value); // StringType
3912        } else if (name.equals("rationale")) {
3913          this.rationale = castToMarkdown(value); // MarkdownType
3914        } else if (name.equals("clinicalRecommendationStatement")) {
3915          this.clinicalRecommendationStatement = castToMarkdown(value); // MarkdownType
3916        } else if (name.equals("improvementNotation")) {
3917          this.improvementNotation = castToString(value); // StringType
3918        } else if (name.equals("definition")) {
3919          this.getDefinition().add(castToMarkdown(value));
3920        } else if (name.equals("guidance")) {
3921          this.guidance = castToMarkdown(value); // MarkdownType
3922        } else if (name.equals("set")) {
3923          this.set = castToString(value); // StringType
3924        } else if (name.equals("group")) {
3925          this.getGroup().add((MeasureGroupComponent) value);
3926        } else if (name.equals("supplementalData")) {
3927          this.getSupplementalData().add((MeasureSupplementalDataComponent) value);
3928        } else
3929          return super.setProperty(name, value);
3930        return value;
3931      }
3932
3933      @Override
3934      public Base makeProperty(int hash, String name) throws FHIRException {
3935        switch (hash) {
3936        case 116079:  return getUrlElement();
3937        case -1618432855:  return addIdentifier(); 
3938        case 351608024:  return getVersionElement();
3939        case 3373707:  return getNameElement();
3940        case 110371416:  return getTitleElement();
3941        case -892481550:  return getStatusElement();
3942        case -404562712:  return getExperimentalElement();
3943        case 3076014:  return getDateElement();
3944        case 1447404028:  return getPublisherElement();
3945        case -1724546052:  return getDescriptionElement();
3946        case -220463842:  return getPurposeElement();
3947        case 111574433:  return getUsageElement();
3948        case 223539345:  return getApprovalDateElement();
3949        case -1687512484:  return getLastReviewDateElement();
3950        case -403934648:  return getEffectivePeriod(); 
3951        case -669707736:  return addUseContext(); 
3952        case -507075711:  return addJurisdiction(); 
3953        case 110546223:  return addTopic(); 
3954        case -1895276325:  return addContributor(); 
3955        case 951526432:  return addContact(); 
3956        case 1522889671:  return getCopyrightElement();
3957        case 666807069:  return addRelatedArtifact(); 
3958        case 166208699:  return addLibrary(); 
3959        case 432371099:  return getDisclaimerElement();
3960        case 1924005583:  return getScoring(); 
3961        case 569347656:  return getCompositeScoring(); 
3962        case 3575610:  return addType(); 
3963        case 93273500:  return getRiskAdjustmentElement();
3964        case 1254503906:  return getRateAggregationElement();
3965        case 345689335:  return getRationaleElement();
3966        case -18631389:  return getClinicalRecommendationStatementElement();
3967        case -2085456136:  return getImprovementNotationElement();
3968        case -1014418093:  return addDefinitionElement();
3969        case -1314002088:  return getGuidanceElement();
3970        case 113762:  return getSetElement();
3971        case 98629247:  return addGroup(); 
3972        case 1447496814:  return addSupplementalData(); 
3973        default: return super.makeProperty(hash, name);
3974        }
3975
3976      }
3977
3978      @Override
3979      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
3980        switch (hash) {
3981        case 116079: /*url*/ return new String[] {"uri"};
3982        case -1618432855: /*identifier*/ return new String[] {"Identifier"};
3983        case 351608024: /*version*/ return new String[] {"string"};
3984        case 3373707: /*name*/ return new String[] {"string"};
3985        case 110371416: /*title*/ return new String[] {"string"};
3986        case -892481550: /*status*/ return new String[] {"code"};
3987        case -404562712: /*experimental*/ return new String[] {"boolean"};
3988        case 3076014: /*date*/ return new String[] {"dateTime"};
3989        case 1447404028: /*publisher*/ return new String[] {"string"};
3990        case -1724546052: /*description*/ return new String[] {"markdown"};
3991        case -220463842: /*purpose*/ return new String[] {"markdown"};
3992        case 111574433: /*usage*/ return new String[] {"string"};
3993        case 223539345: /*approvalDate*/ return new String[] {"date"};
3994        case -1687512484: /*lastReviewDate*/ return new String[] {"date"};
3995        case -403934648: /*effectivePeriod*/ return new String[] {"Period"};
3996        case -669707736: /*useContext*/ return new String[] {"UsageContext"};
3997        case -507075711: /*jurisdiction*/ return new String[] {"CodeableConcept"};
3998        case 110546223: /*topic*/ return new String[] {"CodeableConcept"};
3999        case -1895276325: /*contributor*/ return new String[] {"Contributor"};
4000        case 951526432: /*contact*/ return new String[] {"ContactDetail"};
4001        case 1522889671: /*copyright*/ return new String[] {"markdown"};
4002        case 666807069: /*relatedArtifact*/ return new String[] {"RelatedArtifact"};
4003        case 166208699: /*library*/ return new String[] {"Reference"};
4004        case 432371099: /*disclaimer*/ return new String[] {"markdown"};
4005        case 1924005583: /*scoring*/ return new String[] {"CodeableConcept"};
4006        case 569347656: /*compositeScoring*/ return new String[] {"CodeableConcept"};
4007        case 3575610: /*type*/ return new String[] {"CodeableConcept"};
4008        case 93273500: /*riskAdjustment*/ return new String[] {"string"};
4009        case 1254503906: /*rateAggregation*/ return new String[] {"string"};
4010        case 345689335: /*rationale*/ return new String[] {"markdown"};
4011        case -18631389: /*clinicalRecommendationStatement*/ return new String[] {"markdown"};
4012        case -2085456136: /*improvementNotation*/ return new String[] {"string"};
4013        case -1014418093: /*definition*/ return new String[] {"markdown"};
4014        case -1314002088: /*guidance*/ return new String[] {"markdown"};
4015        case 113762: /*set*/ return new String[] {"string"};
4016        case 98629247: /*group*/ return new String[] {};
4017        case 1447496814: /*supplementalData*/ return new String[] {};
4018        default: return super.getTypesForProperty(hash, name);
4019        }
4020
4021      }
4022
4023      @Override
4024      public Base addChild(String name) throws FHIRException {
4025        if (name.equals("url")) {
4026          throw new FHIRException("Cannot call addChild on a primitive type Measure.url");
4027        }
4028        else if (name.equals("identifier")) {
4029          return addIdentifier();
4030        }
4031        else if (name.equals("version")) {
4032          throw new FHIRException("Cannot call addChild on a primitive type Measure.version");
4033        }
4034        else if (name.equals("name")) {
4035          throw new FHIRException("Cannot call addChild on a primitive type Measure.name");
4036        }
4037        else if (name.equals("title")) {
4038          throw new FHIRException("Cannot call addChild on a primitive type Measure.title");
4039        }
4040        else if (name.equals("status")) {
4041          throw new FHIRException("Cannot call addChild on a primitive type Measure.status");
4042        }
4043        else if (name.equals("experimental")) {
4044          throw new FHIRException("Cannot call addChild on a primitive type Measure.experimental");
4045        }
4046        else if (name.equals("date")) {
4047          throw new FHIRException("Cannot call addChild on a primitive type Measure.date");
4048        }
4049        else if (name.equals("publisher")) {
4050          throw new FHIRException("Cannot call addChild on a primitive type Measure.publisher");
4051        }
4052        else if (name.equals("description")) {
4053          throw new FHIRException("Cannot call addChild on a primitive type Measure.description");
4054        }
4055        else if (name.equals("purpose")) {
4056          throw new FHIRException("Cannot call addChild on a primitive type Measure.purpose");
4057        }
4058        else if (name.equals("usage")) {
4059          throw new FHIRException("Cannot call addChild on a primitive type Measure.usage");
4060        }
4061        else if (name.equals("approvalDate")) {
4062          throw new FHIRException("Cannot call addChild on a primitive type Measure.approvalDate");
4063        }
4064        else if (name.equals("lastReviewDate")) {
4065          throw new FHIRException("Cannot call addChild on a primitive type Measure.lastReviewDate");
4066        }
4067        else if (name.equals("effectivePeriod")) {
4068          this.effectivePeriod = new Period();
4069          return this.effectivePeriod;
4070        }
4071        else if (name.equals("useContext")) {
4072          return addUseContext();
4073        }
4074        else if (name.equals("jurisdiction")) {
4075          return addJurisdiction();
4076        }
4077        else if (name.equals("topic")) {
4078          return addTopic();
4079        }
4080        else if (name.equals("contributor")) {
4081          return addContributor();
4082        }
4083        else if (name.equals("contact")) {
4084          return addContact();
4085        }
4086        else if (name.equals("copyright")) {
4087          throw new FHIRException("Cannot call addChild on a primitive type Measure.copyright");
4088        }
4089        else if (name.equals("relatedArtifact")) {
4090          return addRelatedArtifact();
4091        }
4092        else if (name.equals("library")) {
4093          return addLibrary();
4094        }
4095        else if (name.equals("disclaimer")) {
4096          throw new FHIRException("Cannot call addChild on a primitive type Measure.disclaimer");
4097        }
4098        else if (name.equals("scoring")) {
4099          this.scoring = new CodeableConcept();
4100          return this.scoring;
4101        }
4102        else if (name.equals("compositeScoring")) {
4103          this.compositeScoring = new CodeableConcept();
4104          return this.compositeScoring;
4105        }
4106        else if (name.equals("type")) {
4107          return addType();
4108        }
4109        else if (name.equals("riskAdjustment")) {
4110          throw new FHIRException("Cannot call addChild on a primitive type Measure.riskAdjustment");
4111        }
4112        else if (name.equals("rateAggregation")) {
4113          throw new FHIRException("Cannot call addChild on a primitive type Measure.rateAggregation");
4114        }
4115        else if (name.equals("rationale")) {
4116          throw new FHIRException("Cannot call addChild on a primitive type Measure.rationale");
4117        }
4118        else if (name.equals("clinicalRecommendationStatement")) {
4119          throw new FHIRException("Cannot call addChild on a primitive type Measure.clinicalRecommendationStatement");
4120        }
4121        else if (name.equals("improvementNotation")) {
4122          throw new FHIRException("Cannot call addChild on a primitive type Measure.improvementNotation");
4123        }
4124        else if (name.equals("definition")) {
4125          throw new FHIRException("Cannot call addChild on a primitive type Measure.definition");
4126        }
4127        else if (name.equals("guidance")) {
4128          throw new FHIRException("Cannot call addChild on a primitive type Measure.guidance");
4129        }
4130        else if (name.equals("set")) {
4131          throw new FHIRException("Cannot call addChild on a primitive type Measure.set");
4132        }
4133        else if (name.equals("group")) {
4134          return addGroup();
4135        }
4136        else if (name.equals("supplementalData")) {
4137          return addSupplementalData();
4138        }
4139        else
4140          return super.addChild(name);
4141      }
4142
4143  public String fhirType() {
4144    return "Measure";
4145
4146  }
4147
4148      public Measure copy() {
4149        Measure dst = new Measure();
4150        copyValues(dst);
4151        dst.url = url == null ? null : url.copy();
4152        if (identifier != null) {
4153          dst.identifier = new ArrayList<Identifier>();
4154          for (Identifier i : identifier)
4155            dst.identifier.add(i.copy());
4156        };
4157        dst.version = version == null ? null : version.copy();
4158        dst.name = name == null ? null : name.copy();
4159        dst.title = title == null ? null : title.copy();
4160        dst.status = status == null ? null : status.copy();
4161        dst.experimental = experimental == null ? null : experimental.copy();
4162        dst.date = date == null ? null : date.copy();
4163        dst.publisher = publisher == null ? null : publisher.copy();
4164        dst.description = description == null ? null : description.copy();
4165        dst.purpose = purpose == null ? null : purpose.copy();
4166        dst.usage = usage == null ? null : usage.copy();
4167        dst.approvalDate = approvalDate == null ? null : approvalDate.copy();
4168        dst.lastReviewDate = lastReviewDate == null ? null : lastReviewDate.copy();
4169        dst.effectivePeriod = effectivePeriod == null ? null : effectivePeriod.copy();
4170        if (useContext != null) {
4171          dst.useContext = new ArrayList<UsageContext>();
4172          for (UsageContext i : useContext)
4173            dst.useContext.add(i.copy());
4174        };
4175        if (jurisdiction != null) {
4176          dst.jurisdiction = new ArrayList<CodeableConcept>();
4177          for (CodeableConcept i : jurisdiction)
4178            dst.jurisdiction.add(i.copy());
4179        };
4180        if (topic != null) {
4181          dst.topic = new ArrayList<CodeableConcept>();
4182          for (CodeableConcept i : topic)
4183            dst.topic.add(i.copy());
4184        };
4185        if (contributor != null) {
4186          dst.contributor = new ArrayList<Contributor>();
4187          for (Contributor i : contributor)
4188            dst.contributor.add(i.copy());
4189        };
4190        if (contact != null) {
4191          dst.contact = new ArrayList<ContactDetail>();
4192          for (ContactDetail i : contact)
4193            dst.contact.add(i.copy());
4194        };
4195        dst.copyright = copyright == null ? null : copyright.copy();
4196        if (relatedArtifact != null) {
4197          dst.relatedArtifact = new ArrayList<RelatedArtifact>();
4198          for (RelatedArtifact i : relatedArtifact)
4199            dst.relatedArtifact.add(i.copy());
4200        };
4201        if (library != null) {
4202          dst.library = new ArrayList<Reference>();
4203          for (Reference i : library)
4204            dst.library.add(i.copy());
4205        };
4206        dst.disclaimer = disclaimer == null ? null : disclaimer.copy();
4207        dst.scoring = scoring == null ? null : scoring.copy();
4208        dst.compositeScoring = compositeScoring == null ? null : compositeScoring.copy();
4209        if (type != null) {
4210          dst.type = new ArrayList<CodeableConcept>();
4211          for (CodeableConcept i : type)
4212            dst.type.add(i.copy());
4213        };
4214        dst.riskAdjustment = riskAdjustment == null ? null : riskAdjustment.copy();
4215        dst.rateAggregation = rateAggregation == null ? null : rateAggregation.copy();
4216        dst.rationale = rationale == null ? null : rationale.copy();
4217        dst.clinicalRecommendationStatement = clinicalRecommendationStatement == null ? null : clinicalRecommendationStatement.copy();
4218        dst.improvementNotation = improvementNotation == null ? null : improvementNotation.copy();
4219        if (definition != null) {
4220          dst.definition = new ArrayList<MarkdownType>();
4221          for (MarkdownType i : definition)
4222            dst.definition.add(i.copy());
4223        };
4224        dst.guidance = guidance == null ? null : guidance.copy();
4225        dst.set = set == null ? null : set.copy();
4226        if (group != null) {
4227          dst.group = new ArrayList<MeasureGroupComponent>();
4228          for (MeasureGroupComponent i : group)
4229            dst.group.add(i.copy());
4230        };
4231        if (supplementalData != null) {
4232          dst.supplementalData = new ArrayList<MeasureSupplementalDataComponent>();
4233          for (MeasureSupplementalDataComponent i : supplementalData)
4234            dst.supplementalData.add(i.copy());
4235        };
4236        return dst;
4237      }
4238
4239      protected Measure typedCopy() {
4240        return copy();
4241      }
4242
4243      @Override
4244      public boolean equalsDeep(Base other_) {
4245        if (!super.equalsDeep(other_))
4246          return false;
4247        if (!(other_ instanceof Measure))
4248          return false;
4249        Measure o = (Measure) other_;
4250        return compareDeep(identifier, o.identifier, true) && compareDeep(purpose, o.purpose, true) && compareDeep(usage, o.usage, true)
4251           && compareDeep(approvalDate, o.approvalDate, true) && compareDeep(lastReviewDate, o.lastReviewDate, true)
4252           && compareDeep(effectivePeriod, o.effectivePeriod, true) && compareDeep(topic, o.topic, true) && compareDeep(contributor, o.contributor, true)
4253           && compareDeep(copyright, o.copyright, true) && compareDeep(relatedArtifact, o.relatedArtifact, true)
4254           && compareDeep(library, o.library, true) && compareDeep(disclaimer, o.disclaimer, true) && compareDeep(scoring, o.scoring, true)
4255           && compareDeep(compositeScoring, o.compositeScoring, true) && compareDeep(type, o.type, true) && compareDeep(riskAdjustment, o.riskAdjustment, true)
4256           && compareDeep(rateAggregation, o.rateAggregation, true) && compareDeep(rationale, o.rationale, true)
4257           && compareDeep(clinicalRecommendationStatement, o.clinicalRecommendationStatement, true) && compareDeep(improvementNotation, o.improvementNotation, true)
4258           && compareDeep(definition, o.definition, true) && compareDeep(guidance, o.guidance, true) && compareDeep(set, o.set, true)
4259           && compareDeep(group, o.group, true) && compareDeep(supplementalData, o.supplementalData, true)
4260          ;
4261      }
4262
4263      @Override
4264      public boolean equalsShallow(Base other_) {
4265        if (!super.equalsShallow(other_))
4266          return false;
4267        if (!(other_ instanceof Measure))
4268          return false;
4269        Measure o = (Measure) other_;
4270        return compareValues(purpose, o.purpose, true) && compareValues(usage, o.usage, true) && compareValues(approvalDate, o.approvalDate, true)
4271           && compareValues(lastReviewDate, o.lastReviewDate, true) && compareValues(copyright, o.copyright, true)
4272           && compareValues(disclaimer, o.disclaimer, true) && compareValues(riskAdjustment, o.riskAdjustment, true)
4273           && compareValues(rateAggregation, o.rateAggregation, true) && compareValues(rationale, o.rationale, true)
4274           && compareValues(clinicalRecommendationStatement, o.clinicalRecommendationStatement, true) && compareValues(improvementNotation, o.improvementNotation, true)
4275           && compareValues(definition, o.definition, true) && compareValues(guidance, o.guidance, true) && compareValues(set, o.set, true)
4276          ;
4277      }
4278
4279      public boolean isEmpty() {
4280        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, purpose, usage
4281          , approvalDate, lastReviewDate, effectivePeriod, topic, contributor, copyright, relatedArtifact
4282          , library, disclaimer, scoring, compositeScoring, type, riskAdjustment, rateAggregation
4283          , rationale, clinicalRecommendationStatement, improvementNotation, definition, guidance
4284          , set, group, supplementalData);
4285      }
4286
4287  @Override
4288  public ResourceType getResourceType() {
4289    return ResourceType.Measure;
4290   }
4291
4292 /**
4293   * Search parameter: <b>date</b>
4294   * <p>
4295   * Description: <b>The measure publication date</b><br>
4296   * Type: <b>date</b><br>
4297   * Path: <b>Measure.date</b><br>
4298   * </p>
4299   */
4300  @SearchParamDefinition(name="date", path="Measure.date", description="The measure publication date", type="date" )
4301  public static final String SP_DATE = "date";
4302 /**
4303   * <b>Fluent Client</b> search parameter constant for <b>date</b>
4304   * <p>
4305   * Description: <b>The measure publication date</b><br>
4306   * Type: <b>date</b><br>
4307   * Path: <b>Measure.date</b><br>
4308   * </p>
4309   */
4310  public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE);
4311
4312 /**
4313   * Search parameter: <b>identifier</b>
4314   * <p>
4315   * Description: <b>External identifier for the measure</b><br>
4316   * Type: <b>token</b><br>
4317   * Path: <b>Measure.identifier</b><br>
4318   * </p>
4319   */
4320  @SearchParamDefinition(name="identifier", path="Measure.identifier", description="External identifier for the measure", type="token" )
4321  public static final String SP_IDENTIFIER = "identifier";
4322 /**
4323   * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
4324   * <p>
4325   * Description: <b>External identifier for the measure</b><br>
4326   * Type: <b>token</b><br>
4327   * Path: <b>Measure.identifier</b><br>
4328   * </p>
4329   */
4330  public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
4331
4332 /**
4333   * Search parameter: <b>successor</b>
4334   * <p>
4335   * Description: <b>What resource is being referenced</b><br>
4336   * Type: <b>reference</b><br>
4337   * Path: <b>Measure.relatedArtifact.resource</b><br>
4338   * </p>
4339   */
4340  @SearchParamDefinition(name="successor", path="Measure.relatedArtifact.where(type='successor').resource", description="What resource is being referenced", type="reference" )
4341  public static final String SP_SUCCESSOR = "successor";
4342 /**
4343   * <b>Fluent Client</b> search parameter constant for <b>successor</b>
4344   * <p>
4345   * Description: <b>What resource is being referenced</b><br>
4346   * Type: <b>reference</b><br>
4347   * Path: <b>Measure.relatedArtifact.resource</b><br>
4348   * </p>
4349   */
4350  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUCCESSOR = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUCCESSOR);
4351
4352/**
4353   * Constant for fluent queries to be used to add include statements. Specifies
4354   * the path value of "<b>Measure:successor</b>".
4355   */
4356  public static final ca.uhn.fhir.model.api.Include INCLUDE_SUCCESSOR = new ca.uhn.fhir.model.api.Include("Measure:successor").toLocked();
4357
4358 /**
4359   * Search parameter: <b>jurisdiction</b>
4360   * <p>
4361   * Description: <b>Intended jurisdiction for the measure</b><br>
4362   * Type: <b>token</b><br>
4363   * Path: <b>Measure.jurisdiction</b><br>
4364   * </p>
4365   */
4366  @SearchParamDefinition(name="jurisdiction", path="Measure.jurisdiction", description="Intended jurisdiction for the measure", type="token" )
4367  public static final String SP_JURISDICTION = "jurisdiction";
4368 /**
4369   * <b>Fluent Client</b> search parameter constant for <b>jurisdiction</b>
4370   * <p>
4371   * Description: <b>Intended jurisdiction for the measure</b><br>
4372   * Type: <b>token</b><br>
4373   * Path: <b>Measure.jurisdiction</b><br>
4374   * </p>
4375   */
4376  public static final ca.uhn.fhir.rest.gclient.TokenClientParam JURISDICTION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_JURISDICTION);
4377
4378 /**
4379   * Search parameter: <b>description</b>
4380   * <p>
4381   * Description: <b>The description of the measure</b><br>
4382   * Type: <b>string</b><br>
4383   * Path: <b>Measure.description</b><br>
4384   * </p>
4385   */
4386  @SearchParamDefinition(name="description", path="Measure.description", description="The description of the measure", type="string" )
4387  public static final String SP_DESCRIPTION = "description";
4388 /**
4389   * <b>Fluent Client</b> search parameter constant for <b>description</b>
4390   * <p>
4391   * Description: <b>The description of the measure</b><br>
4392   * Type: <b>string</b><br>
4393   * Path: <b>Measure.description</b><br>
4394   * </p>
4395   */
4396  public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION);
4397
4398 /**
4399   * Search parameter: <b>derived-from</b>
4400   * <p>
4401   * Description: <b>What resource is being referenced</b><br>
4402   * Type: <b>reference</b><br>
4403   * Path: <b>Measure.relatedArtifact.resource</b><br>
4404   * </p>
4405   */
4406  @SearchParamDefinition(name="derived-from", path="Measure.relatedArtifact.where(type='derived-from').resource", description="What resource is being referenced", type="reference" )
4407  public static final String SP_DERIVED_FROM = "derived-from";
4408 /**
4409   * <b>Fluent Client</b> search parameter constant for <b>derived-from</b>
4410   * <p>
4411   * Description: <b>What resource is being referenced</b><br>
4412   * Type: <b>reference</b><br>
4413   * Path: <b>Measure.relatedArtifact.resource</b><br>
4414   * </p>
4415   */
4416  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DERIVED_FROM = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_DERIVED_FROM);
4417
4418/**
4419   * Constant for fluent queries to be used to add include statements. Specifies
4420   * the path value of "<b>Measure:derived-from</b>".
4421   */
4422  public static final ca.uhn.fhir.model.api.Include INCLUDE_DERIVED_FROM = new ca.uhn.fhir.model.api.Include("Measure:derived-from").toLocked();
4423
4424 /**
4425   * Search parameter: <b>predecessor</b>
4426   * <p>
4427   * Description: <b>What resource is being referenced</b><br>
4428   * Type: <b>reference</b><br>
4429   * Path: <b>Measure.relatedArtifact.resource</b><br>
4430   * </p>
4431   */
4432  @SearchParamDefinition(name="predecessor", path="Measure.relatedArtifact.where(type='predecessor').resource", description="What resource is being referenced", type="reference" )
4433  public static final String SP_PREDECESSOR = "predecessor";
4434 /**
4435   * <b>Fluent Client</b> search parameter constant for <b>predecessor</b>
4436   * <p>
4437   * Description: <b>What resource is being referenced</b><br>
4438   * Type: <b>reference</b><br>
4439   * Path: <b>Measure.relatedArtifact.resource</b><br>
4440   * </p>
4441   */
4442  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PREDECESSOR = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PREDECESSOR);
4443
4444/**
4445   * Constant for fluent queries to be used to add include statements. Specifies
4446   * the path value of "<b>Measure:predecessor</b>".
4447   */
4448  public static final ca.uhn.fhir.model.api.Include INCLUDE_PREDECESSOR = new ca.uhn.fhir.model.api.Include("Measure:predecessor").toLocked();
4449
4450 /**
4451   * Search parameter: <b>title</b>
4452   * <p>
4453   * Description: <b>The human-friendly name of the measure</b><br>
4454   * Type: <b>string</b><br>
4455   * Path: <b>Measure.title</b><br>
4456   * </p>
4457   */
4458  @SearchParamDefinition(name="title", path="Measure.title", description="The human-friendly name of the measure", type="string" )
4459  public static final String SP_TITLE = "title";
4460 /**
4461   * <b>Fluent Client</b> search parameter constant for <b>title</b>
4462   * <p>
4463   * Description: <b>The human-friendly name of the measure</b><br>
4464   * Type: <b>string</b><br>
4465   * Path: <b>Measure.title</b><br>
4466   * </p>
4467   */
4468  public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE);
4469
4470 /**
4471   * Search parameter: <b>composed-of</b>
4472   * <p>
4473   * Description: <b>What resource is being referenced</b><br>
4474   * Type: <b>reference</b><br>
4475   * Path: <b>Measure.relatedArtifact.resource</b><br>
4476   * </p>
4477   */
4478  @SearchParamDefinition(name="composed-of", path="Measure.relatedArtifact.where(type='composed-of').resource", description="What resource is being referenced", type="reference" )
4479  public static final String SP_COMPOSED_OF = "composed-of";
4480 /**
4481   * <b>Fluent Client</b> search parameter constant for <b>composed-of</b>
4482   * <p>
4483   * Description: <b>What resource is being referenced</b><br>
4484   * Type: <b>reference</b><br>
4485   * Path: <b>Measure.relatedArtifact.resource</b><br>
4486   * </p>
4487   */
4488  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam COMPOSED_OF = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_COMPOSED_OF);
4489
4490/**
4491   * Constant for fluent queries to be used to add include statements. Specifies
4492   * the path value of "<b>Measure:composed-of</b>".
4493   */
4494  public static final ca.uhn.fhir.model.api.Include INCLUDE_COMPOSED_OF = new ca.uhn.fhir.model.api.Include("Measure:composed-of").toLocked();
4495
4496 /**
4497   * Search parameter: <b>version</b>
4498   * <p>
4499   * Description: <b>The business version of the measure</b><br>
4500   * Type: <b>token</b><br>
4501   * Path: <b>Measure.version</b><br>
4502   * </p>
4503   */
4504  @SearchParamDefinition(name="version", path="Measure.version", description="The business version of the measure", type="token" )
4505  public static final String SP_VERSION = "version";
4506 /**
4507   * <b>Fluent Client</b> search parameter constant for <b>version</b>
4508   * <p>
4509   * Description: <b>The business version of the measure</b><br>
4510   * Type: <b>token</b><br>
4511   * Path: <b>Measure.version</b><br>
4512   * </p>
4513   */
4514  public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION);
4515
4516 /**
4517   * Search parameter: <b>url</b>
4518   * <p>
4519   * Description: <b>The uri that identifies the measure</b><br>
4520   * Type: <b>uri</b><br>
4521   * Path: <b>Measure.url</b><br>
4522   * </p>
4523   */
4524  @SearchParamDefinition(name="url", path="Measure.url", description="The uri that identifies the measure", type="uri" )
4525  public static final String SP_URL = "url";
4526 /**
4527   * <b>Fluent Client</b> search parameter constant for <b>url</b>
4528   * <p>
4529   * Description: <b>The uri that identifies the measure</b><br>
4530   * Type: <b>uri</b><br>
4531   * Path: <b>Measure.url</b><br>
4532   * </p>
4533   */
4534  public static final ca.uhn.fhir.rest.gclient.UriClientParam URL = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_URL);
4535
4536 /**
4537   * Search parameter: <b>effective</b>
4538   * <p>
4539   * Description: <b>The time during which the measure is intended to be in use</b><br>
4540   * Type: <b>date</b><br>
4541   * Path: <b>Measure.effectivePeriod</b><br>
4542   * </p>
4543   */
4544  @SearchParamDefinition(name="effective", path="Measure.effectivePeriod", description="The time during which the measure is intended to be in use", type="date" )
4545  public static final String SP_EFFECTIVE = "effective";
4546 /**
4547   * <b>Fluent Client</b> search parameter constant for <b>effective</b>
4548   * <p>
4549   * Description: <b>The time during which the measure is intended to be in use</b><br>
4550   * Type: <b>date</b><br>
4551   * Path: <b>Measure.effectivePeriod</b><br>
4552   * </p>
4553   */
4554  public static final ca.uhn.fhir.rest.gclient.DateClientParam EFFECTIVE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_EFFECTIVE);
4555
4556 /**
4557   * Search parameter: <b>depends-on</b>
4558   * <p>
4559   * Description: <b>What resource is being referenced</b><br>
4560   * Type: <b>reference</b><br>
4561   * Path: <b>Measure.relatedArtifact.resource, Measure.library</b><br>
4562   * </p>
4563   */
4564  @SearchParamDefinition(name="depends-on", path="Measure.relatedArtifact.where(type='depends-on').resource | Measure.library", description="What resource is being referenced", type="reference" )
4565  public static final String SP_DEPENDS_ON = "depends-on";
4566 /**
4567   * <b>Fluent Client</b> search parameter constant for <b>depends-on</b>
4568   * <p>
4569   * Description: <b>What resource is being referenced</b><br>
4570   * Type: <b>reference</b><br>
4571   * Path: <b>Measure.relatedArtifact.resource, Measure.library</b><br>
4572   * </p>
4573   */
4574  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DEPENDS_ON = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_DEPENDS_ON);
4575
4576/**
4577   * Constant for fluent queries to be used to add include statements. Specifies
4578   * the path value of "<b>Measure:depends-on</b>".
4579   */
4580  public static final ca.uhn.fhir.model.api.Include INCLUDE_DEPENDS_ON = new ca.uhn.fhir.model.api.Include("Measure:depends-on").toLocked();
4581
4582 /**
4583   * Search parameter: <b>name</b>
4584   * <p>
4585   * Description: <b>Computationally friendly name of the measure</b><br>
4586   * Type: <b>string</b><br>
4587   * Path: <b>Measure.name</b><br>
4588   * </p>
4589   */
4590  @SearchParamDefinition(name="name", path="Measure.name", description="Computationally friendly name of the measure", type="string" )
4591  public static final String SP_NAME = "name";
4592 /**
4593   * <b>Fluent Client</b> search parameter constant for <b>name</b>
4594   * <p>
4595   * Description: <b>Computationally friendly name of the measure</b><br>
4596   * Type: <b>string</b><br>
4597   * Path: <b>Measure.name</b><br>
4598   * </p>
4599   */
4600  public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME);
4601
4602 /**
4603   * Search parameter: <b>publisher</b>
4604   * <p>
4605   * Description: <b>Name of the publisher of the measure</b><br>
4606   * Type: <b>string</b><br>
4607   * Path: <b>Measure.publisher</b><br>
4608   * </p>
4609   */
4610  @SearchParamDefinition(name="publisher", path="Measure.publisher", description="Name of the publisher of the measure", type="string" )
4611  public static final String SP_PUBLISHER = "publisher";
4612 /**
4613   * <b>Fluent Client</b> search parameter constant for <b>publisher</b>
4614   * <p>
4615   * Description: <b>Name of the publisher of the measure</b><br>
4616   * Type: <b>string</b><br>
4617   * Path: <b>Measure.publisher</b><br>
4618   * </p>
4619   */
4620  public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER);
4621
4622 /**
4623   * Search parameter: <b>topic</b>
4624   * <p>
4625   * Description: <b>Topics associated with the module</b><br>
4626   * Type: <b>token</b><br>
4627   * Path: <b>Measure.topic</b><br>
4628   * </p>
4629   */
4630  @SearchParamDefinition(name="topic", path="Measure.topic", description="Topics associated with the module", type="token" )
4631  public static final String SP_TOPIC = "topic";
4632 /**
4633   * <b>Fluent Client</b> search parameter constant for <b>topic</b>
4634   * <p>
4635   * Description: <b>Topics associated with the module</b><br>
4636   * Type: <b>token</b><br>
4637   * Path: <b>Measure.topic</b><br>
4638   * </p>
4639   */
4640  public static final ca.uhn.fhir.rest.gclient.TokenClientParam TOPIC = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TOPIC);
4641
4642 /**
4643   * Search parameter: <b>status</b>
4644   * <p>
4645   * Description: <b>The current status of the measure</b><br>
4646   * Type: <b>token</b><br>
4647   * Path: <b>Measure.status</b><br>
4648   * </p>
4649   */
4650  @SearchParamDefinition(name="status", path="Measure.status", description="The current status of the measure", type="token" )
4651  public static final String SP_STATUS = "status";
4652 /**
4653   * <b>Fluent Client</b> search parameter constant for <b>status</b>
4654   * <p>
4655   * Description: <b>The current status of the measure</b><br>
4656   * Type: <b>token</b><br>
4657   * Path: <b>Measure.status</b><br>
4658   * </p>
4659   */
4660  public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS);
4661
4662
4663}
4664