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