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 MeasureReport resource contains the results of the calculation of a measure; and optionally a reference to the resources involved in that calculation. 072 */ 073@ResourceDef(name="MeasureReport", profile="http://hl7.org/fhir/StructureDefinition/MeasureReport") 074public class MeasureReport extends DomainResource { 075 076 public enum MeasureReportStatus { 077 /** 078 * The report is complete and ready for use. 079 */ 080 COMPLETE, 081 /** 082 * The report is currently being generated. 083 */ 084 PENDING, 085 /** 086 * An error occurred attempting to generate the report. 087 */ 088 ERROR, 089 /** 090 * added to help the parsers with the generic types 091 */ 092 NULL; 093 public static MeasureReportStatus fromCode(String codeString) throws FHIRException { 094 if (codeString == null || "".equals(codeString)) 095 return null; 096 if ("complete".equals(codeString)) 097 return COMPLETE; 098 if ("pending".equals(codeString)) 099 return PENDING; 100 if ("error".equals(codeString)) 101 return ERROR; 102 if (Configuration.isAcceptInvalidEnums()) 103 return null; 104 else 105 throw new FHIRException("Unknown MeasureReportStatus code '"+codeString+"'"); 106 } 107 public String toCode() { 108 switch (this) { 109 case COMPLETE: return "complete"; 110 case PENDING: return "pending"; 111 case ERROR: return "error"; 112 default: return "?"; 113 } 114 } 115 public String getSystem() { 116 switch (this) { 117 case COMPLETE: return "http://hl7.org/fhir/measure-report-status"; 118 case PENDING: return "http://hl7.org/fhir/measure-report-status"; 119 case ERROR: return "http://hl7.org/fhir/measure-report-status"; 120 default: return "?"; 121 } 122 } 123 public String getDefinition() { 124 switch (this) { 125 case COMPLETE: return "The report is complete and ready for use."; 126 case PENDING: return "The report is currently being generated."; 127 case ERROR: return "An error occurred attempting to generate the report."; 128 default: return "?"; 129 } 130 } 131 public String getDisplay() { 132 switch (this) { 133 case COMPLETE: return "Complete"; 134 case PENDING: return "Pending"; 135 case ERROR: return "Error"; 136 default: return "?"; 137 } 138 } 139 } 140 141 public static class MeasureReportStatusEnumFactory implements EnumFactory<MeasureReportStatus> { 142 public MeasureReportStatus fromCode(String codeString) throws IllegalArgumentException { 143 if (codeString == null || "".equals(codeString)) 144 if (codeString == null || "".equals(codeString)) 145 return null; 146 if ("complete".equals(codeString)) 147 return MeasureReportStatus.COMPLETE; 148 if ("pending".equals(codeString)) 149 return MeasureReportStatus.PENDING; 150 if ("error".equals(codeString)) 151 return MeasureReportStatus.ERROR; 152 throw new IllegalArgumentException("Unknown MeasureReportStatus code '"+codeString+"'"); 153 } 154 public Enumeration<MeasureReportStatus> fromType(Base code) throws FHIRException { 155 if (code == null) 156 return null; 157 if (code.isEmpty()) 158 return new Enumeration<MeasureReportStatus>(this); 159 String codeString = ((PrimitiveType) code).asStringValue(); 160 if (codeString == null || "".equals(codeString)) 161 return null; 162 if ("complete".equals(codeString)) 163 return new Enumeration<MeasureReportStatus>(this, MeasureReportStatus.COMPLETE); 164 if ("pending".equals(codeString)) 165 return new Enumeration<MeasureReportStatus>(this, MeasureReportStatus.PENDING); 166 if ("error".equals(codeString)) 167 return new Enumeration<MeasureReportStatus>(this, MeasureReportStatus.ERROR); 168 throw new FHIRException("Unknown MeasureReportStatus code '"+codeString+"'"); 169 } 170 public String toCode(MeasureReportStatus code) { 171 if (code == MeasureReportStatus.COMPLETE) 172 return "complete"; 173 if (code == MeasureReportStatus.PENDING) 174 return "pending"; 175 if (code == MeasureReportStatus.ERROR) 176 return "error"; 177 return "?"; 178 } 179 public String toSystem(MeasureReportStatus code) { 180 return code.getSystem(); 181 } 182 } 183 184 public enum MeasureReportType { 185 /** 186 * An individual report that provides information on the performance for a given measure with respect to a single subject. 187 */ 188 INDIVIDUAL, 189 /** 190 * A subject list report that includes a listing of subjects that satisfied each population criteria in the measure. 191 */ 192 SUBJECTLIST, 193 /** 194 * A summary report that returns the number of members in each population criteria for the measure. 195 */ 196 SUMMARY, 197 /** 198 * A data collection report that contains data-of-interest for the measure. 199 */ 200 DATACOLLECTION, 201 /** 202 * added to help the parsers with the generic types 203 */ 204 NULL; 205 public static MeasureReportType fromCode(String codeString) throws FHIRException { 206 if (codeString == null || "".equals(codeString)) 207 return null; 208 if ("individual".equals(codeString)) 209 return INDIVIDUAL; 210 if ("subject-list".equals(codeString)) 211 return SUBJECTLIST; 212 if ("summary".equals(codeString)) 213 return SUMMARY; 214 if ("data-collection".equals(codeString)) 215 return DATACOLLECTION; 216 if (Configuration.isAcceptInvalidEnums()) 217 return null; 218 else 219 throw new FHIRException("Unknown MeasureReportType code '"+codeString+"'"); 220 } 221 public String toCode() { 222 switch (this) { 223 case INDIVIDUAL: return "individual"; 224 case SUBJECTLIST: return "subject-list"; 225 case SUMMARY: return "summary"; 226 case DATACOLLECTION: return "data-collection"; 227 default: return "?"; 228 } 229 } 230 public String getSystem() { 231 switch (this) { 232 case INDIVIDUAL: return "http://hl7.org/fhir/measure-report-type"; 233 case SUBJECTLIST: return "http://hl7.org/fhir/measure-report-type"; 234 case SUMMARY: return "http://hl7.org/fhir/measure-report-type"; 235 case DATACOLLECTION: return "http://hl7.org/fhir/measure-report-type"; 236 default: return "?"; 237 } 238 } 239 public String getDefinition() { 240 switch (this) { 241 case INDIVIDUAL: return "An individual report that provides information on the performance for a given measure with respect to a single subject."; 242 case SUBJECTLIST: return "A subject list report that includes a listing of subjects that satisfied each population criteria in the measure."; 243 case SUMMARY: return "A summary report that returns the number of members in each population criteria for the measure."; 244 case DATACOLLECTION: return "A data collection report that contains data-of-interest for the measure."; 245 default: return "?"; 246 } 247 } 248 public String getDisplay() { 249 switch (this) { 250 case INDIVIDUAL: return "Individual"; 251 case SUBJECTLIST: return "Subject List"; 252 case SUMMARY: return "Summary"; 253 case DATACOLLECTION: return "Data Collection"; 254 default: return "?"; 255 } 256 } 257 } 258 259 public static class MeasureReportTypeEnumFactory implements EnumFactory<MeasureReportType> { 260 public MeasureReportType fromCode(String codeString) throws IllegalArgumentException { 261 if (codeString == null || "".equals(codeString)) 262 if (codeString == null || "".equals(codeString)) 263 return null; 264 if ("individual".equals(codeString)) 265 return MeasureReportType.INDIVIDUAL; 266 if ("subject-list".equals(codeString)) 267 return MeasureReportType.SUBJECTLIST; 268 if ("summary".equals(codeString)) 269 return MeasureReportType.SUMMARY; 270 if ("data-collection".equals(codeString)) 271 return MeasureReportType.DATACOLLECTION; 272 throw new IllegalArgumentException("Unknown MeasureReportType code '"+codeString+"'"); 273 } 274 public Enumeration<MeasureReportType> fromType(Base code) throws FHIRException { 275 if (code == null) 276 return null; 277 if (code.isEmpty()) 278 return new Enumeration<MeasureReportType>(this); 279 String codeString = ((PrimitiveType) code).asStringValue(); 280 if (codeString == null || "".equals(codeString)) 281 return null; 282 if ("individual".equals(codeString)) 283 return new Enumeration<MeasureReportType>(this, MeasureReportType.INDIVIDUAL); 284 if ("subject-list".equals(codeString)) 285 return new Enumeration<MeasureReportType>(this, MeasureReportType.SUBJECTLIST); 286 if ("summary".equals(codeString)) 287 return new Enumeration<MeasureReportType>(this, MeasureReportType.SUMMARY); 288 if ("data-collection".equals(codeString)) 289 return new Enumeration<MeasureReportType>(this, MeasureReportType.DATACOLLECTION); 290 throw new FHIRException("Unknown MeasureReportType code '"+codeString+"'"); 291 } 292 public String toCode(MeasureReportType code) { 293 if (code == MeasureReportType.INDIVIDUAL) 294 return "individual"; 295 if (code == MeasureReportType.SUBJECTLIST) 296 return "subject-list"; 297 if (code == MeasureReportType.SUMMARY) 298 return "summary"; 299 if (code == MeasureReportType.DATACOLLECTION) 300 return "data-collection"; 301 return "?"; 302 } 303 public String toSystem(MeasureReportType code) { 304 return code.getSystem(); 305 } 306 } 307 308 @Block() 309 public static class MeasureReportGroupComponent extends BackboneElement implements IBaseBackboneElement { 310 /** 311 * The meaning of the population group as defined in the measure definition. 312 */ 313 @Child(name = "code", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=true) 314 @Description(shortDefinition="Meaning of the group", formalDefinition="The meaning of the population group as defined in the measure definition." ) 315 protected CodeableConcept code; 316 317 /** 318 * The populations that make up the population group, one for each type of population appropriate for the measure. 319 */ 320 @Child(name = "population", type = {}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 321 @Description(shortDefinition="The populations in the group", formalDefinition="The populations that make up the population group, one for each type of population appropriate for the measure." ) 322 protected List<MeasureReportGroupPopulationComponent> population; 323 324 /** 325 * The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group. 326 */ 327 @Child(name = "measureScore", type = {Quantity.class}, order=3, min=0, max=1, modifier=false, summary=true) 328 @Description(shortDefinition="What score this group achieved", formalDefinition="The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group." ) 329 protected Quantity measureScore; 330 331 /** 332 * When a measure includes multiple stratifiers, there will be a stratifier group for each stratifier defined by the measure. 333 */ 334 @Child(name = "stratifier", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 335 @Description(shortDefinition="Stratification results", formalDefinition="When a measure includes multiple stratifiers, there will be a stratifier group for each stratifier defined by the measure." ) 336 protected List<MeasureReportGroupStratifierComponent> stratifier; 337 338 private static final long serialVersionUID = 1744426009L; 339 340 /** 341 * Constructor 342 */ 343 public MeasureReportGroupComponent() { 344 super(); 345 } 346 347 /** 348 * @return {@link #code} (The meaning of the population group as defined in the measure definition.) 349 */ 350 public CodeableConcept getCode() { 351 if (this.code == null) 352 if (Configuration.errorOnAutoCreate()) 353 throw new Error("Attempt to auto-create MeasureReportGroupComponent.code"); 354 else if (Configuration.doAutoCreate()) 355 this.code = new CodeableConcept(); // cc 356 return this.code; 357 } 358 359 public boolean hasCode() { 360 return this.code != null && !this.code.isEmpty(); 361 } 362 363 /** 364 * @param value {@link #code} (The meaning of the population group as defined in the measure definition.) 365 */ 366 public MeasureReportGroupComponent setCode(CodeableConcept value) { 367 this.code = value; 368 return this; 369 } 370 371 /** 372 * @return {@link #population} (The populations that make up the population group, one for each type of population appropriate for the measure.) 373 */ 374 public List<MeasureReportGroupPopulationComponent> getPopulation() { 375 if (this.population == null) 376 this.population = new ArrayList<MeasureReportGroupPopulationComponent>(); 377 return this.population; 378 } 379 380 /** 381 * @return Returns a reference to <code>this</code> for easy method chaining 382 */ 383 public MeasureReportGroupComponent setPopulation(List<MeasureReportGroupPopulationComponent> thePopulation) { 384 this.population = thePopulation; 385 return this; 386 } 387 388 public boolean hasPopulation() { 389 if (this.population == null) 390 return false; 391 for (MeasureReportGroupPopulationComponent item : this.population) 392 if (!item.isEmpty()) 393 return true; 394 return false; 395 } 396 397 public MeasureReportGroupPopulationComponent addPopulation() { //3 398 MeasureReportGroupPopulationComponent t = new MeasureReportGroupPopulationComponent(); 399 if (this.population == null) 400 this.population = new ArrayList<MeasureReportGroupPopulationComponent>(); 401 this.population.add(t); 402 return t; 403 } 404 405 public MeasureReportGroupComponent addPopulation(MeasureReportGroupPopulationComponent t) { //3 406 if (t == null) 407 return this; 408 if (this.population == null) 409 this.population = new ArrayList<MeasureReportGroupPopulationComponent>(); 410 this.population.add(t); 411 return this; 412 } 413 414 /** 415 * @return The first repetition of repeating field {@link #population}, creating it if it does not already exist {3} 416 */ 417 public MeasureReportGroupPopulationComponent getPopulationFirstRep() { 418 if (getPopulation().isEmpty()) { 419 addPopulation(); 420 } 421 return getPopulation().get(0); 422 } 423 424 /** 425 * @return {@link #measureScore} (The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.) 426 */ 427 public Quantity getMeasureScore() { 428 if (this.measureScore == null) 429 if (Configuration.errorOnAutoCreate()) 430 throw new Error("Attempt to auto-create MeasureReportGroupComponent.measureScore"); 431 else if (Configuration.doAutoCreate()) 432 this.measureScore = new Quantity(); // cc 433 return this.measureScore; 434 } 435 436 public boolean hasMeasureScore() { 437 return this.measureScore != null && !this.measureScore.isEmpty(); 438 } 439 440 /** 441 * @param value {@link #measureScore} (The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.) 442 */ 443 public MeasureReportGroupComponent setMeasureScore(Quantity value) { 444 this.measureScore = value; 445 return this; 446 } 447 448 /** 449 * @return {@link #stratifier} (When a measure includes multiple stratifiers, there will be a stratifier group for each stratifier defined by the measure.) 450 */ 451 public List<MeasureReportGroupStratifierComponent> getStratifier() { 452 if (this.stratifier == null) 453 this.stratifier = new ArrayList<MeasureReportGroupStratifierComponent>(); 454 return this.stratifier; 455 } 456 457 /** 458 * @return Returns a reference to <code>this</code> for easy method chaining 459 */ 460 public MeasureReportGroupComponent setStratifier(List<MeasureReportGroupStratifierComponent> theStratifier) { 461 this.stratifier = theStratifier; 462 return this; 463 } 464 465 public boolean hasStratifier() { 466 if (this.stratifier == null) 467 return false; 468 for (MeasureReportGroupStratifierComponent item : this.stratifier) 469 if (!item.isEmpty()) 470 return true; 471 return false; 472 } 473 474 public MeasureReportGroupStratifierComponent addStratifier() { //3 475 MeasureReportGroupStratifierComponent t = new MeasureReportGroupStratifierComponent(); 476 if (this.stratifier == null) 477 this.stratifier = new ArrayList<MeasureReportGroupStratifierComponent>(); 478 this.stratifier.add(t); 479 return t; 480 } 481 482 public MeasureReportGroupComponent addStratifier(MeasureReportGroupStratifierComponent t) { //3 483 if (t == null) 484 return this; 485 if (this.stratifier == null) 486 this.stratifier = new ArrayList<MeasureReportGroupStratifierComponent>(); 487 this.stratifier.add(t); 488 return this; 489 } 490 491 /** 492 * @return The first repetition of repeating field {@link #stratifier}, creating it if it does not already exist {3} 493 */ 494 public MeasureReportGroupStratifierComponent getStratifierFirstRep() { 495 if (getStratifier().isEmpty()) { 496 addStratifier(); 497 } 498 return getStratifier().get(0); 499 } 500 501 protected void listChildren(List<Property> children) { 502 super.listChildren(children); 503 children.add(new Property("code", "CodeableConcept", "The meaning of the population group as defined in the measure definition.", 0, 1, code)); 504 children.add(new Property("population", "", "The populations that make up the population group, one for each type of population appropriate for the measure.", 0, java.lang.Integer.MAX_VALUE, population)); 505 children.add(new Property("measureScore", "Quantity", "The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.", 0, 1, measureScore)); 506 children.add(new Property("stratifier", "", "When a measure includes multiple stratifiers, there will be a stratifier group for each stratifier defined by the measure.", 0, java.lang.Integer.MAX_VALUE, stratifier)); 507 } 508 509 @Override 510 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 511 switch (_hash) { 512 case 3059181: /*code*/ return new Property("code", "CodeableConcept", "The meaning of the population group as defined in the measure definition.", 0, 1, code); 513 case -2023558323: /*population*/ return new Property("population", "", "The populations that make up the population group, one for each type of population appropriate for the measure.", 0, java.lang.Integer.MAX_VALUE, population); 514 case -386313260: /*measureScore*/ return new Property("measureScore", "Quantity", "The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.", 0, 1, measureScore); 515 case 90983669: /*stratifier*/ return new Property("stratifier", "", "When a measure includes multiple stratifiers, there will be a stratifier group for each stratifier defined by the measure.", 0, java.lang.Integer.MAX_VALUE, stratifier); 516 default: return super.getNamedProperty(_hash, _name, _checkValid); 517 } 518 519 } 520 521 @Override 522 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 523 switch (hash) { 524 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept 525 case -2023558323: /*population*/ return this.population == null ? new Base[0] : this.population.toArray(new Base[this.population.size()]); // MeasureReportGroupPopulationComponent 526 case -386313260: /*measureScore*/ return this.measureScore == null ? new Base[0] : new Base[] {this.measureScore}; // Quantity 527 case 90983669: /*stratifier*/ return this.stratifier == null ? new Base[0] : this.stratifier.toArray(new Base[this.stratifier.size()]); // MeasureReportGroupStratifierComponent 528 default: return super.getProperty(hash, name, checkValid); 529 } 530 531 } 532 533 @Override 534 public Base setProperty(int hash, String name, Base value) throws FHIRException { 535 switch (hash) { 536 case 3059181: // code 537 this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 538 return value; 539 case -2023558323: // population 540 this.getPopulation().add((MeasureReportGroupPopulationComponent) value); // MeasureReportGroupPopulationComponent 541 return value; 542 case -386313260: // measureScore 543 this.measureScore = TypeConvertor.castToQuantity(value); // Quantity 544 return value; 545 case 90983669: // stratifier 546 this.getStratifier().add((MeasureReportGroupStratifierComponent) value); // MeasureReportGroupStratifierComponent 547 return value; 548 default: return super.setProperty(hash, name, value); 549 } 550 551 } 552 553 @Override 554 public Base setProperty(String name, Base value) throws FHIRException { 555 if (name.equals("code")) { 556 this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 557 } else if (name.equals("population")) { 558 this.getPopulation().add((MeasureReportGroupPopulationComponent) value); 559 } else if (name.equals("measureScore")) { 560 this.measureScore = TypeConvertor.castToQuantity(value); // Quantity 561 } else if (name.equals("stratifier")) { 562 this.getStratifier().add((MeasureReportGroupStratifierComponent) value); 563 } else 564 return super.setProperty(name, value); 565 return value; 566 } 567 568 @Override 569 public Base makeProperty(int hash, String name) throws FHIRException { 570 switch (hash) { 571 case 3059181: return getCode(); 572 case -2023558323: return addPopulation(); 573 case -386313260: return getMeasureScore(); 574 case 90983669: return addStratifier(); 575 default: return super.makeProperty(hash, name); 576 } 577 578 } 579 580 @Override 581 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 582 switch (hash) { 583 case 3059181: /*code*/ return new String[] {"CodeableConcept"}; 584 case -2023558323: /*population*/ return new String[] {}; 585 case -386313260: /*measureScore*/ return new String[] {"Quantity"}; 586 case 90983669: /*stratifier*/ return new String[] {}; 587 default: return super.getTypesForProperty(hash, name); 588 } 589 590 } 591 592 @Override 593 public Base addChild(String name) throws FHIRException { 594 if (name.equals("code")) { 595 this.code = new CodeableConcept(); 596 return this.code; 597 } 598 else if (name.equals("population")) { 599 return addPopulation(); 600 } 601 else if (name.equals("measureScore")) { 602 this.measureScore = new Quantity(); 603 return this.measureScore; 604 } 605 else if (name.equals("stratifier")) { 606 return addStratifier(); 607 } 608 else 609 return super.addChild(name); 610 } 611 612 public MeasureReportGroupComponent copy() { 613 MeasureReportGroupComponent dst = new MeasureReportGroupComponent(); 614 copyValues(dst); 615 return dst; 616 } 617 618 public void copyValues(MeasureReportGroupComponent dst) { 619 super.copyValues(dst); 620 dst.code = code == null ? null : code.copy(); 621 if (population != null) { 622 dst.population = new ArrayList<MeasureReportGroupPopulationComponent>(); 623 for (MeasureReportGroupPopulationComponent i : population) 624 dst.population.add(i.copy()); 625 }; 626 dst.measureScore = measureScore == null ? null : measureScore.copy(); 627 if (stratifier != null) { 628 dst.stratifier = new ArrayList<MeasureReportGroupStratifierComponent>(); 629 for (MeasureReportGroupStratifierComponent i : stratifier) 630 dst.stratifier.add(i.copy()); 631 }; 632 } 633 634 @Override 635 public boolean equalsDeep(Base other_) { 636 if (!super.equalsDeep(other_)) 637 return false; 638 if (!(other_ instanceof MeasureReportGroupComponent)) 639 return false; 640 MeasureReportGroupComponent o = (MeasureReportGroupComponent) other_; 641 return compareDeep(code, o.code, true) && compareDeep(population, o.population, true) && compareDeep(measureScore, o.measureScore, true) 642 && compareDeep(stratifier, o.stratifier, true); 643 } 644 645 @Override 646 public boolean equalsShallow(Base other_) { 647 if (!super.equalsShallow(other_)) 648 return false; 649 if (!(other_ instanceof MeasureReportGroupComponent)) 650 return false; 651 MeasureReportGroupComponent o = (MeasureReportGroupComponent) other_; 652 return true; 653 } 654 655 public boolean isEmpty() { 656 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, population, measureScore 657 , stratifier); 658 } 659 660 public String fhirType() { 661 return "MeasureReport.group"; 662 663 } 664 665 } 666 667 @Block() 668 public static class MeasureReportGroupPopulationComponent extends BackboneElement implements IBaseBackboneElement { 669 /** 670 * The type of the population. 671 */ 672 @Child(name = "code", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=true) 673 @Description(shortDefinition="initial-population | numerator | numerator-exclusion | denominator | denominator-exclusion | denominator-exception | measure-population | measure-population-exclusion | measure-observation", formalDefinition="The type of the population." ) 674 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-population") 675 protected CodeableConcept code; 676 677 /** 678 * The number of members of the population. 679 */ 680 @Child(name = "count", type = {IntegerType.class}, order=2, min=0, max=1, modifier=false, summary=false) 681 @Description(shortDefinition="Size of the population", formalDefinition="The number of members of the population." ) 682 protected IntegerType count; 683 684 /** 685 * This element refers to a List of subject level MeasureReport resources, one for each subject in this population. 686 */ 687 @Child(name = "subjectResults", type = {ListResource.class}, order=3, min=0, max=1, modifier=false, summary=false) 688 @Description(shortDefinition="For subject-list reports, the subject results in this population", formalDefinition="This element refers to a List of subject level MeasureReport resources, one for each subject in this population." ) 689 protected Reference subjectResults; 690 691 private static final long serialVersionUID = 1086153898L; 692 693 /** 694 * Constructor 695 */ 696 public MeasureReportGroupPopulationComponent() { 697 super(); 698 } 699 700 /** 701 * @return {@link #code} (The type of the population.) 702 */ 703 public CodeableConcept getCode() { 704 if (this.code == null) 705 if (Configuration.errorOnAutoCreate()) 706 throw new Error("Attempt to auto-create MeasureReportGroupPopulationComponent.code"); 707 else if (Configuration.doAutoCreate()) 708 this.code = new CodeableConcept(); // cc 709 return this.code; 710 } 711 712 public boolean hasCode() { 713 return this.code != null && !this.code.isEmpty(); 714 } 715 716 /** 717 * @param value {@link #code} (The type of the population.) 718 */ 719 public MeasureReportGroupPopulationComponent setCode(CodeableConcept value) { 720 this.code = value; 721 return this; 722 } 723 724 /** 725 * @return {@link #count} (The number of members of the population.). This is the underlying object with id, value and extensions. The accessor "getCount" gives direct access to the value 726 */ 727 public IntegerType getCountElement() { 728 if (this.count == null) 729 if (Configuration.errorOnAutoCreate()) 730 throw new Error("Attempt to auto-create MeasureReportGroupPopulationComponent.count"); 731 else if (Configuration.doAutoCreate()) 732 this.count = new IntegerType(); // bb 733 return this.count; 734 } 735 736 public boolean hasCountElement() { 737 return this.count != null && !this.count.isEmpty(); 738 } 739 740 public boolean hasCount() { 741 return this.count != null && !this.count.isEmpty(); 742 } 743 744 /** 745 * @param value {@link #count} (The number of members of the population.). This is the underlying object with id, value and extensions. The accessor "getCount" gives direct access to the value 746 */ 747 public MeasureReportGroupPopulationComponent setCountElement(IntegerType value) { 748 this.count = value; 749 return this; 750 } 751 752 /** 753 * @return The number of members of the population. 754 */ 755 public int getCount() { 756 return this.count == null || this.count.isEmpty() ? 0 : this.count.getValue(); 757 } 758 759 /** 760 * @param value The number of members of the population. 761 */ 762 public MeasureReportGroupPopulationComponent setCount(int value) { 763 if (this.count == null) 764 this.count = new IntegerType(); 765 this.count.setValue(value); 766 return this; 767 } 768 769 /** 770 * @return {@link #subjectResults} (This element refers to a List of subject level MeasureReport resources, one for each subject in this population.) 771 */ 772 public Reference getSubjectResults() { 773 if (this.subjectResults == null) 774 if (Configuration.errorOnAutoCreate()) 775 throw new Error("Attempt to auto-create MeasureReportGroupPopulationComponent.subjectResults"); 776 else if (Configuration.doAutoCreate()) 777 this.subjectResults = new Reference(); // cc 778 return this.subjectResults; 779 } 780 781 public boolean hasSubjectResults() { 782 return this.subjectResults != null && !this.subjectResults.isEmpty(); 783 } 784 785 /** 786 * @param value {@link #subjectResults} (This element refers to a List of subject level MeasureReport resources, one for each subject in this population.) 787 */ 788 public MeasureReportGroupPopulationComponent setSubjectResults(Reference value) { 789 this.subjectResults = value; 790 return this; 791 } 792 793 protected void listChildren(List<Property> children) { 794 super.listChildren(children); 795 children.add(new Property("code", "CodeableConcept", "The type of the population.", 0, 1, code)); 796 children.add(new Property("count", "integer", "The number of members of the population.", 0, 1, count)); 797 children.add(new Property("subjectResults", "Reference(List)", "This element refers to a List of subject level MeasureReport resources, one for each subject in this population.", 0, 1, subjectResults)); 798 } 799 800 @Override 801 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 802 switch (_hash) { 803 case 3059181: /*code*/ return new Property("code", "CodeableConcept", "The type of the population.", 0, 1, code); 804 case 94851343: /*count*/ return new Property("count", "integer", "The number of members of the population.", 0, 1, count); 805 case 2136184106: /*subjectResults*/ return new Property("subjectResults", "Reference(List)", "This element refers to a List of subject level MeasureReport resources, one for each subject in this population.", 0, 1, subjectResults); 806 default: return super.getNamedProperty(_hash, _name, _checkValid); 807 } 808 809 } 810 811 @Override 812 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 813 switch (hash) { 814 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept 815 case 94851343: /*count*/ return this.count == null ? new Base[0] : new Base[] {this.count}; // IntegerType 816 case 2136184106: /*subjectResults*/ return this.subjectResults == null ? new Base[0] : new Base[] {this.subjectResults}; // Reference 817 default: return super.getProperty(hash, name, checkValid); 818 } 819 820 } 821 822 @Override 823 public Base setProperty(int hash, String name, Base value) throws FHIRException { 824 switch (hash) { 825 case 3059181: // code 826 this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 827 return value; 828 case 94851343: // count 829 this.count = TypeConvertor.castToInteger(value); // IntegerType 830 return value; 831 case 2136184106: // subjectResults 832 this.subjectResults = TypeConvertor.castToReference(value); // Reference 833 return value; 834 default: return super.setProperty(hash, name, value); 835 } 836 837 } 838 839 @Override 840 public Base setProperty(String name, Base value) throws FHIRException { 841 if (name.equals("code")) { 842 this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 843 } else if (name.equals("count")) { 844 this.count = TypeConvertor.castToInteger(value); // IntegerType 845 } else if (name.equals("subjectResults")) { 846 this.subjectResults = TypeConvertor.castToReference(value); // Reference 847 } else 848 return super.setProperty(name, value); 849 return value; 850 } 851 852 @Override 853 public Base makeProperty(int hash, String name) throws FHIRException { 854 switch (hash) { 855 case 3059181: return getCode(); 856 case 94851343: return getCountElement(); 857 case 2136184106: return getSubjectResults(); 858 default: return super.makeProperty(hash, name); 859 } 860 861 } 862 863 @Override 864 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 865 switch (hash) { 866 case 3059181: /*code*/ return new String[] {"CodeableConcept"}; 867 case 94851343: /*count*/ return new String[] {"integer"}; 868 case 2136184106: /*subjectResults*/ return new String[] {"Reference"}; 869 default: return super.getTypesForProperty(hash, name); 870 } 871 872 } 873 874 @Override 875 public Base addChild(String name) throws FHIRException { 876 if (name.equals("code")) { 877 this.code = new CodeableConcept(); 878 return this.code; 879 } 880 else if (name.equals("count")) { 881 throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.group.population.count"); 882 } 883 else if (name.equals("subjectResults")) { 884 this.subjectResults = new Reference(); 885 return this.subjectResults; 886 } 887 else 888 return super.addChild(name); 889 } 890 891 public MeasureReportGroupPopulationComponent copy() { 892 MeasureReportGroupPopulationComponent dst = new MeasureReportGroupPopulationComponent(); 893 copyValues(dst); 894 return dst; 895 } 896 897 public void copyValues(MeasureReportGroupPopulationComponent dst) { 898 super.copyValues(dst); 899 dst.code = code == null ? null : code.copy(); 900 dst.count = count == null ? null : count.copy(); 901 dst.subjectResults = subjectResults == null ? null : subjectResults.copy(); 902 } 903 904 @Override 905 public boolean equalsDeep(Base other_) { 906 if (!super.equalsDeep(other_)) 907 return false; 908 if (!(other_ instanceof MeasureReportGroupPopulationComponent)) 909 return false; 910 MeasureReportGroupPopulationComponent o = (MeasureReportGroupPopulationComponent) other_; 911 return compareDeep(code, o.code, true) && compareDeep(count, o.count, true) && compareDeep(subjectResults, o.subjectResults, true) 912 ; 913 } 914 915 @Override 916 public boolean equalsShallow(Base other_) { 917 if (!super.equalsShallow(other_)) 918 return false; 919 if (!(other_ instanceof MeasureReportGroupPopulationComponent)) 920 return false; 921 MeasureReportGroupPopulationComponent o = (MeasureReportGroupPopulationComponent) other_; 922 return compareValues(count, o.count, true); 923 } 924 925 public boolean isEmpty() { 926 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, count, subjectResults 927 ); 928 } 929 930 public String fhirType() { 931 return "MeasureReport.group.population"; 932 933 } 934 935 } 936 937 @Block() 938 public static class MeasureReportGroupStratifierComponent extends BackboneElement implements IBaseBackboneElement { 939 /** 940 * The meaning of this stratifier, as defined in the measure definition. 941 */ 942 @Child(name = "code", type = {CodeableConcept.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 943 @Description(shortDefinition="What stratifier of the group", formalDefinition="The meaning of this stratifier, as defined in the measure definition." ) 944 protected List<CodeableConcept> code; 945 946 /** 947 * This element contains the results for a single stratum within the stratifier. For example, when stratifying on administrative gender, there will be four strata, one for each possible gender value. 948 */ 949 @Child(name = "stratum", type = {}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 950 @Description(shortDefinition="Stratum results, one for each unique value, or set of values, in the stratifier, or stratifier components", formalDefinition="This element contains the results for a single stratum within the stratifier. For example, when stratifying on administrative gender, there will be four strata, one for each possible gender value." ) 951 protected List<StratifierGroupComponent> stratum; 952 953 private static final long serialVersionUID = 259550185L; 954 955 /** 956 * Constructor 957 */ 958 public MeasureReportGroupStratifierComponent() { 959 super(); 960 } 961 962 /** 963 * @return {@link #code} (The meaning of this stratifier, as defined in the measure definition.) 964 */ 965 public List<CodeableConcept> getCode() { 966 if (this.code == null) 967 this.code = new ArrayList<CodeableConcept>(); 968 return this.code; 969 } 970 971 /** 972 * @return Returns a reference to <code>this</code> for easy method chaining 973 */ 974 public MeasureReportGroupStratifierComponent setCode(List<CodeableConcept> theCode) { 975 this.code = theCode; 976 return this; 977 } 978 979 public boolean hasCode() { 980 if (this.code == null) 981 return false; 982 for (CodeableConcept item : this.code) 983 if (!item.isEmpty()) 984 return true; 985 return false; 986 } 987 988 public CodeableConcept addCode() { //3 989 CodeableConcept t = new CodeableConcept(); 990 if (this.code == null) 991 this.code = new ArrayList<CodeableConcept>(); 992 this.code.add(t); 993 return t; 994 } 995 996 public MeasureReportGroupStratifierComponent addCode(CodeableConcept t) { //3 997 if (t == null) 998 return this; 999 if (this.code == null) 1000 this.code = new ArrayList<CodeableConcept>(); 1001 this.code.add(t); 1002 return this; 1003 } 1004 1005 /** 1006 * @return The first repetition of repeating field {@link #code}, creating it if it does not already exist {3} 1007 */ 1008 public CodeableConcept getCodeFirstRep() { 1009 if (getCode().isEmpty()) { 1010 addCode(); 1011 } 1012 return getCode().get(0); 1013 } 1014 1015 /** 1016 * @return {@link #stratum} (This element contains the results for a single stratum within the stratifier. For example, when stratifying on administrative gender, there will be four strata, one for each possible gender value.) 1017 */ 1018 public List<StratifierGroupComponent> getStratum() { 1019 if (this.stratum == null) 1020 this.stratum = new ArrayList<StratifierGroupComponent>(); 1021 return this.stratum; 1022 } 1023 1024 /** 1025 * @return Returns a reference to <code>this</code> for easy method chaining 1026 */ 1027 public MeasureReportGroupStratifierComponent setStratum(List<StratifierGroupComponent> theStratum) { 1028 this.stratum = theStratum; 1029 return this; 1030 } 1031 1032 public boolean hasStratum() { 1033 if (this.stratum == null) 1034 return false; 1035 for (StratifierGroupComponent item : this.stratum) 1036 if (!item.isEmpty()) 1037 return true; 1038 return false; 1039 } 1040 1041 public StratifierGroupComponent addStratum() { //3 1042 StratifierGroupComponent t = new StratifierGroupComponent(); 1043 if (this.stratum == null) 1044 this.stratum = new ArrayList<StratifierGroupComponent>(); 1045 this.stratum.add(t); 1046 return t; 1047 } 1048 1049 public MeasureReportGroupStratifierComponent addStratum(StratifierGroupComponent t) { //3 1050 if (t == null) 1051 return this; 1052 if (this.stratum == null) 1053 this.stratum = new ArrayList<StratifierGroupComponent>(); 1054 this.stratum.add(t); 1055 return this; 1056 } 1057 1058 /** 1059 * @return The first repetition of repeating field {@link #stratum}, creating it if it does not already exist {3} 1060 */ 1061 public StratifierGroupComponent getStratumFirstRep() { 1062 if (getStratum().isEmpty()) { 1063 addStratum(); 1064 } 1065 return getStratum().get(0); 1066 } 1067 1068 protected void listChildren(List<Property> children) { 1069 super.listChildren(children); 1070 children.add(new Property("code", "CodeableConcept", "The meaning of this stratifier, as defined in the measure definition.", 0, java.lang.Integer.MAX_VALUE, code)); 1071 children.add(new Property("stratum", "", "This element contains the results for a single stratum within the stratifier. For example, when stratifying on administrative gender, there will be four strata, one for each possible gender value.", 0, java.lang.Integer.MAX_VALUE, stratum)); 1072 } 1073 1074 @Override 1075 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1076 switch (_hash) { 1077 case 3059181: /*code*/ return new Property("code", "CodeableConcept", "The meaning of this stratifier, as defined in the measure definition.", 0, java.lang.Integer.MAX_VALUE, code); 1078 case -1881991236: /*stratum*/ return new Property("stratum", "", "This element contains the results for a single stratum within the stratifier. For example, when stratifying on administrative gender, there will be four strata, one for each possible gender value.", 0, java.lang.Integer.MAX_VALUE, stratum); 1079 default: return super.getNamedProperty(_hash, _name, _checkValid); 1080 } 1081 1082 } 1083 1084 @Override 1085 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1086 switch (hash) { 1087 case 3059181: /*code*/ return this.code == null ? new Base[0] : this.code.toArray(new Base[this.code.size()]); // CodeableConcept 1088 case -1881991236: /*stratum*/ return this.stratum == null ? new Base[0] : this.stratum.toArray(new Base[this.stratum.size()]); // StratifierGroupComponent 1089 default: return super.getProperty(hash, name, checkValid); 1090 } 1091 1092 } 1093 1094 @Override 1095 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1096 switch (hash) { 1097 case 3059181: // code 1098 this.getCode().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 1099 return value; 1100 case -1881991236: // stratum 1101 this.getStratum().add((StratifierGroupComponent) value); // StratifierGroupComponent 1102 return value; 1103 default: return super.setProperty(hash, name, value); 1104 } 1105 1106 } 1107 1108 @Override 1109 public Base setProperty(String name, Base value) throws FHIRException { 1110 if (name.equals("code")) { 1111 this.getCode().add(TypeConvertor.castToCodeableConcept(value)); 1112 } else if (name.equals("stratum")) { 1113 this.getStratum().add((StratifierGroupComponent) value); 1114 } else 1115 return super.setProperty(name, value); 1116 return value; 1117 } 1118 1119 @Override 1120 public Base makeProperty(int hash, String name) throws FHIRException { 1121 switch (hash) { 1122 case 3059181: return addCode(); 1123 case -1881991236: return addStratum(); 1124 default: return super.makeProperty(hash, name); 1125 } 1126 1127 } 1128 1129 @Override 1130 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1131 switch (hash) { 1132 case 3059181: /*code*/ return new String[] {"CodeableConcept"}; 1133 case -1881991236: /*stratum*/ return new String[] {}; 1134 default: return super.getTypesForProperty(hash, name); 1135 } 1136 1137 } 1138 1139 @Override 1140 public Base addChild(String name) throws FHIRException { 1141 if (name.equals("code")) { 1142 return addCode(); 1143 } 1144 else if (name.equals("stratum")) { 1145 return addStratum(); 1146 } 1147 else 1148 return super.addChild(name); 1149 } 1150 1151 public MeasureReportGroupStratifierComponent copy() { 1152 MeasureReportGroupStratifierComponent dst = new MeasureReportGroupStratifierComponent(); 1153 copyValues(dst); 1154 return dst; 1155 } 1156 1157 public void copyValues(MeasureReportGroupStratifierComponent dst) { 1158 super.copyValues(dst); 1159 if (code != null) { 1160 dst.code = new ArrayList<CodeableConcept>(); 1161 for (CodeableConcept i : code) 1162 dst.code.add(i.copy()); 1163 }; 1164 if (stratum != null) { 1165 dst.stratum = new ArrayList<StratifierGroupComponent>(); 1166 for (StratifierGroupComponent i : stratum) 1167 dst.stratum.add(i.copy()); 1168 }; 1169 } 1170 1171 @Override 1172 public boolean equalsDeep(Base other_) { 1173 if (!super.equalsDeep(other_)) 1174 return false; 1175 if (!(other_ instanceof MeasureReportGroupStratifierComponent)) 1176 return false; 1177 MeasureReportGroupStratifierComponent o = (MeasureReportGroupStratifierComponent) other_; 1178 return compareDeep(code, o.code, true) && compareDeep(stratum, o.stratum, true); 1179 } 1180 1181 @Override 1182 public boolean equalsShallow(Base other_) { 1183 if (!super.equalsShallow(other_)) 1184 return false; 1185 if (!(other_ instanceof MeasureReportGroupStratifierComponent)) 1186 return false; 1187 MeasureReportGroupStratifierComponent o = (MeasureReportGroupStratifierComponent) other_; 1188 return true; 1189 } 1190 1191 public boolean isEmpty() { 1192 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, stratum); 1193 } 1194 1195 public String fhirType() { 1196 return "MeasureReport.group.stratifier"; 1197 1198 } 1199 1200 } 1201 1202 @Block() 1203 public static class StratifierGroupComponent extends BackboneElement implements IBaseBackboneElement { 1204 /** 1205 * The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique. 1206 */ 1207 @Child(name = "value", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) 1208 @Description(shortDefinition="The stratum value, e.g. male", formalDefinition="The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique." ) 1209 protected CodeableConcept value; 1210 1211 /** 1212 * A stratifier component value. 1213 */ 1214 @Child(name = "component", type = {}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1215 @Description(shortDefinition="Stratifier component values", formalDefinition="A stratifier component value." ) 1216 protected List<StratifierGroupComponentComponent> component; 1217 1218 /** 1219 * The populations that make up the stratum, one for each type of population appropriate to the measure. 1220 */ 1221 @Child(name = "population", type = {}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1222 @Description(shortDefinition="Population results in this stratum", formalDefinition="The populations that make up the stratum, one for each type of population appropriate to the measure." ) 1223 protected List<StratifierGroupPopulationComponent> population; 1224 1225 /** 1226 * The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum. 1227 */ 1228 @Child(name = "measureScore", type = {Quantity.class}, order=4, min=0, max=1, modifier=false, summary=false) 1229 @Description(shortDefinition="What score this stratum achieved", formalDefinition="The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum." ) 1230 protected Quantity measureScore; 1231 1232 private static final long serialVersionUID = 892251179L; 1233 1234 /** 1235 * Constructor 1236 */ 1237 public StratifierGroupComponent() { 1238 super(); 1239 } 1240 1241 /** 1242 * @return {@link #value} (The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique.) 1243 */ 1244 public CodeableConcept getValue() { 1245 if (this.value == null) 1246 if (Configuration.errorOnAutoCreate()) 1247 throw new Error("Attempt to auto-create StratifierGroupComponent.value"); 1248 else if (Configuration.doAutoCreate()) 1249 this.value = new CodeableConcept(); // cc 1250 return this.value; 1251 } 1252 1253 public boolean hasValue() { 1254 return this.value != null && !this.value.isEmpty(); 1255 } 1256 1257 /** 1258 * @param value {@link #value} (The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique.) 1259 */ 1260 public StratifierGroupComponent setValue(CodeableConcept value) { 1261 this.value = value; 1262 return this; 1263 } 1264 1265 /** 1266 * @return {@link #component} (A stratifier component value.) 1267 */ 1268 public List<StratifierGroupComponentComponent> getComponent() { 1269 if (this.component == null) 1270 this.component = new ArrayList<StratifierGroupComponentComponent>(); 1271 return this.component; 1272 } 1273 1274 /** 1275 * @return Returns a reference to <code>this</code> for easy method chaining 1276 */ 1277 public StratifierGroupComponent setComponent(List<StratifierGroupComponentComponent> theComponent) { 1278 this.component = theComponent; 1279 return this; 1280 } 1281 1282 public boolean hasComponent() { 1283 if (this.component == null) 1284 return false; 1285 for (StratifierGroupComponentComponent item : this.component) 1286 if (!item.isEmpty()) 1287 return true; 1288 return false; 1289 } 1290 1291 public StratifierGroupComponentComponent addComponent() { //3 1292 StratifierGroupComponentComponent t = new StratifierGroupComponentComponent(); 1293 if (this.component == null) 1294 this.component = new ArrayList<StratifierGroupComponentComponent>(); 1295 this.component.add(t); 1296 return t; 1297 } 1298 1299 public StratifierGroupComponent addComponent(StratifierGroupComponentComponent t) { //3 1300 if (t == null) 1301 return this; 1302 if (this.component == null) 1303 this.component = new ArrayList<StratifierGroupComponentComponent>(); 1304 this.component.add(t); 1305 return this; 1306 } 1307 1308 /** 1309 * @return The first repetition of repeating field {@link #component}, creating it if it does not already exist {3} 1310 */ 1311 public StratifierGroupComponentComponent getComponentFirstRep() { 1312 if (getComponent().isEmpty()) { 1313 addComponent(); 1314 } 1315 return getComponent().get(0); 1316 } 1317 1318 /** 1319 * @return {@link #population} (The populations that make up the stratum, one for each type of population appropriate to the measure.) 1320 */ 1321 public List<StratifierGroupPopulationComponent> getPopulation() { 1322 if (this.population == null) 1323 this.population = new ArrayList<StratifierGroupPopulationComponent>(); 1324 return this.population; 1325 } 1326 1327 /** 1328 * @return Returns a reference to <code>this</code> for easy method chaining 1329 */ 1330 public StratifierGroupComponent setPopulation(List<StratifierGroupPopulationComponent> thePopulation) { 1331 this.population = thePopulation; 1332 return this; 1333 } 1334 1335 public boolean hasPopulation() { 1336 if (this.population == null) 1337 return false; 1338 for (StratifierGroupPopulationComponent item : this.population) 1339 if (!item.isEmpty()) 1340 return true; 1341 return false; 1342 } 1343 1344 public StratifierGroupPopulationComponent addPopulation() { //3 1345 StratifierGroupPopulationComponent t = new StratifierGroupPopulationComponent(); 1346 if (this.population == null) 1347 this.population = new ArrayList<StratifierGroupPopulationComponent>(); 1348 this.population.add(t); 1349 return t; 1350 } 1351 1352 public StratifierGroupComponent addPopulation(StratifierGroupPopulationComponent t) { //3 1353 if (t == null) 1354 return this; 1355 if (this.population == null) 1356 this.population = new ArrayList<StratifierGroupPopulationComponent>(); 1357 this.population.add(t); 1358 return this; 1359 } 1360 1361 /** 1362 * @return The first repetition of repeating field {@link #population}, creating it if it does not already exist {3} 1363 */ 1364 public StratifierGroupPopulationComponent getPopulationFirstRep() { 1365 if (getPopulation().isEmpty()) { 1366 addPopulation(); 1367 } 1368 return getPopulation().get(0); 1369 } 1370 1371 /** 1372 * @return {@link #measureScore} (The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.) 1373 */ 1374 public Quantity getMeasureScore() { 1375 if (this.measureScore == null) 1376 if (Configuration.errorOnAutoCreate()) 1377 throw new Error("Attempt to auto-create StratifierGroupComponent.measureScore"); 1378 else if (Configuration.doAutoCreate()) 1379 this.measureScore = new Quantity(); // cc 1380 return this.measureScore; 1381 } 1382 1383 public boolean hasMeasureScore() { 1384 return this.measureScore != null && !this.measureScore.isEmpty(); 1385 } 1386 1387 /** 1388 * @param value {@link #measureScore} (The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.) 1389 */ 1390 public StratifierGroupComponent setMeasureScore(Quantity value) { 1391 this.measureScore = value; 1392 return this; 1393 } 1394 1395 protected void listChildren(List<Property> children) { 1396 super.listChildren(children); 1397 children.add(new Property("value", "CodeableConcept", "The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique.", 0, 1, value)); 1398 children.add(new Property("component", "", "A stratifier component value.", 0, java.lang.Integer.MAX_VALUE, component)); 1399 children.add(new Property("population", "", "The populations that make up the stratum, one for each type of population appropriate to the measure.", 0, java.lang.Integer.MAX_VALUE, population)); 1400 children.add(new Property("measureScore", "Quantity", "The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.", 0, 1, measureScore)); 1401 } 1402 1403 @Override 1404 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1405 switch (_hash) { 1406 case 111972721: /*value*/ return new Property("value", "CodeableConcept", "The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique.", 0, 1, value); 1407 case -1399907075: /*component*/ return new Property("component", "", "A stratifier component value.", 0, java.lang.Integer.MAX_VALUE, component); 1408 case -2023558323: /*population*/ return new Property("population", "", "The populations that make up the stratum, one for each type of population appropriate to the measure.", 0, java.lang.Integer.MAX_VALUE, population); 1409 case -386313260: /*measureScore*/ return new Property("measureScore", "Quantity", "The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.", 0, 1, measureScore); 1410 default: return super.getNamedProperty(_hash, _name, _checkValid); 1411 } 1412 1413 } 1414 1415 @Override 1416 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1417 switch (hash) { 1418 case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // CodeableConcept 1419 case -1399907075: /*component*/ return this.component == null ? new Base[0] : this.component.toArray(new Base[this.component.size()]); // StratifierGroupComponentComponent 1420 case -2023558323: /*population*/ return this.population == null ? new Base[0] : this.population.toArray(new Base[this.population.size()]); // StratifierGroupPopulationComponent 1421 case -386313260: /*measureScore*/ return this.measureScore == null ? new Base[0] : new Base[] {this.measureScore}; // Quantity 1422 default: return super.getProperty(hash, name, checkValid); 1423 } 1424 1425 } 1426 1427 @Override 1428 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1429 switch (hash) { 1430 case 111972721: // value 1431 this.value = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1432 return value; 1433 case -1399907075: // component 1434 this.getComponent().add((StratifierGroupComponentComponent) value); // StratifierGroupComponentComponent 1435 return value; 1436 case -2023558323: // population 1437 this.getPopulation().add((StratifierGroupPopulationComponent) value); // StratifierGroupPopulationComponent 1438 return value; 1439 case -386313260: // measureScore 1440 this.measureScore = TypeConvertor.castToQuantity(value); // Quantity 1441 return value; 1442 default: return super.setProperty(hash, name, value); 1443 } 1444 1445 } 1446 1447 @Override 1448 public Base setProperty(String name, Base value) throws FHIRException { 1449 if (name.equals("value")) { 1450 this.value = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1451 } else if (name.equals("component")) { 1452 this.getComponent().add((StratifierGroupComponentComponent) value); 1453 } else if (name.equals("population")) { 1454 this.getPopulation().add((StratifierGroupPopulationComponent) value); 1455 } else if (name.equals("measureScore")) { 1456 this.measureScore = TypeConvertor.castToQuantity(value); // Quantity 1457 } else 1458 return super.setProperty(name, value); 1459 return value; 1460 } 1461 1462 @Override 1463 public Base makeProperty(int hash, String name) throws FHIRException { 1464 switch (hash) { 1465 case 111972721: return getValue(); 1466 case -1399907075: return addComponent(); 1467 case -2023558323: return addPopulation(); 1468 case -386313260: return getMeasureScore(); 1469 default: return super.makeProperty(hash, name); 1470 } 1471 1472 } 1473 1474 @Override 1475 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1476 switch (hash) { 1477 case 111972721: /*value*/ return new String[] {"CodeableConcept"}; 1478 case -1399907075: /*component*/ return new String[] {}; 1479 case -2023558323: /*population*/ return new String[] {}; 1480 case -386313260: /*measureScore*/ return new String[] {"Quantity"}; 1481 default: return super.getTypesForProperty(hash, name); 1482 } 1483 1484 } 1485 1486 @Override 1487 public Base addChild(String name) throws FHIRException { 1488 if (name.equals("value")) { 1489 this.value = new CodeableConcept(); 1490 return this.value; 1491 } 1492 else if (name.equals("component")) { 1493 return addComponent(); 1494 } 1495 else if (name.equals("population")) { 1496 return addPopulation(); 1497 } 1498 else if (name.equals("measureScore")) { 1499 this.measureScore = new Quantity(); 1500 return this.measureScore; 1501 } 1502 else 1503 return super.addChild(name); 1504 } 1505 1506 public StratifierGroupComponent copy() { 1507 StratifierGroupComponent dst = new StratifierGroupComponent(); 1508 copyValues(dst); 1509 return dst; 1510 } 1511 1512 public void copyValues(StratifierGroupComponent dst) { 1513 super.copyValues(dst); 1514 dst.value = value == null ? null : value.copy(); 1515 if (component != null) { 1516 dst.component = new ArrayList<StratifierGroupComponentComponent>(); 1517 for (StratifierGroupComponentComponent i : component) 1518 dst.component.add(i.copy()); 1519 }; 1520 if (population != null) { 1521 dst.population = new ArrayList<StratifierGroupPopulationComponent>(); 1522 for (StratifierGroupPopulationComponent i : population) 1523 dst.population.add(i.copy()); 1524 }; 1525 dst.measureScore = measureScore == null ? null : measureScore.copy(); 1526 } 1527 1528 @Override 1529 public boolean equalsDeep(Base other_) { 1530 if (!super.equalsDeep(other_)) 1531 return false; 1532 if (!(other_ instanceof StratifierGroupComponent)) 1533 return false; 1534 StratifierGroupComponent o = (StratifierGroupComponent) other_; 1535 return compareDeep(value, o.value, true) && compareDeep(component, o.component, true) && compareDeep(population, o.population, true) 1536 && compareDeep(measureScore, o.measureScore, true); 1537 } 1538 1539 @Override 1540 public boolean equalsShallow(Base other_) { 1541 if (!super.equalsShallow(other_)) 1542 return false; 1543 if (!(other_ instanceof StratifierGroupComponent)) 1544 return false; 1545 StratifierGroupComponent o = (StratifierGroupComponent) other_; 1546 return true; 1547 } 1548 1549 public boolean isEmpty() { 1550 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(value, component, population 1551 , measureScore); 1552 } 1553 1554 public String fhirType() { 1555 return "MeasureReport.group.stratifier.stratum"; 1556 1557 } 1558 1559 } 1560 1561 @Block() 1562 public static class StratifierGroupComponentComponent extends BackboneElement implements IBaseBackboneElement { 1563 /** 1564 * The code for the stratum component value. 1565 */ 1566 @Child(name = "code", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=false) 1567 @Description(shortDefinition="What stratifier component of the group", formalDefinition="The code for the stratum component value." ) 1568 protected CodeableConcept code; 1569 1570 /** 1571 * The stratum component value. 1572 */ 1573 @Child(name = "value", type = {CodeableConcept.class}, order=2, min=1, max=1, modifier=false, summary=false) 1574 @Description(shortDefinition="The stratum component value, e.g. male", formalDefinition="The stratum component value." ) 1575 protected CodeableConcept value; 1576 1577 private static final long serialVersionUID = 1750253426L; 1578 1579 /** 1580 * Constructor 1581 */ 1582 public StratifierGroupComponentComponent() { 1583 super(); 1584 } 1585 1586 /** 1587 * Constructor 1588 */ 1589 public StratifierGroupComponentComponent(CodeableConcept code, CodeableConcept value) { 1590 super(); 1591 this.setCode(code); 1592 this.setValue(value); 1593 } 1594 1595 /** 1596 * @return {@link #code} (The code for the stratum component value.) 1597 */ 1598 public CodeableConcept getCode() { 1599 if (this.code == null) 1600 if (Configuration.errorOnAutoCreate()) 1601 throw new Error("Attempt to auto-create StratifierGroupComponentComponent.code"); 1602 else if (Configuration.doAutoCreate()) 1603 this.code = new CodeableConcept(); // cc 1604 return this.code; 1605 } 1606 1607 public boolean hasCode() { 1608 return this.code != null && !this.code.isEmpty(); 1609 } 1610 1611 /** 1612 * @param value {@link #code} (The code for the stratum component value.) 1613 */ 1614 public StratifierGroupComponentComponent setCode(CodeableConcept value) { 1615 this.code = value; 1616 return this; 1617 } 1618 1619 /** 1620 * @return {@link #value} (The stratum component value.) 1621 */ 1622 public CodeableConcept getValue() { 1623 if (this.value == null) 1624 if (Configuration.errorOnAutoCreate()) 1625 throw new Error("Attempt to auto-create StratifierGroupComponentComponent.value"); 1626 else if (Configuration.doAutoCreate()) 1627 this.value = new CodeableConcept(); // cc 1628 return this.value; 1629 } 1630 1631 public boolean hasValue() { 1632 return this.value != null && !this.value.isEmpty(); 1633 } 1634 1635 /** 1636 * @param value {@link #value} (The stratum component value.) 1637 */ 1638 public StratifierGroupComponentComponent setValue(CodeableConcept value) { 1639 this.value = value; 1640 return this; 1641 } 1642 1643 protected void listChildren(List<Property> children) { 1644 super.listChildren(children); 1645 children.add(new Property("code", "CodeableConcept", "The code for the stratum component value.", 0, 1, code)); 1646 children.add(new Property("value", "CodeableConcept", "The stratum component value.", 0, 1, value)); 1647 } 1648 1649 @Override 1650 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1651 switch (_hash) { 1652 case 3059181: /*code*/ return new Property("code", "CodeableConcept", "The code for the stratum component value.", 0, 1, code); 1653 case 111972721: /*value*/ return new Property("value", "CodeableConcept", "The stratum component value.", 0, 1, value); 1654 default: return super.getNamedProperty(_hash, _name, _checkValid); 1655 } 1656 1657 } 1658 1659 @Override 1660 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1661 switch (hash) { 1662 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept 1663 case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // CodeableConcept 1664 default: return super.getProperty(hash, name, checkValid); 1665 } 1666 1667 } 1668 1669 @Override 1670 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1671 switch (hash) { 1672 case 3059181: // code 1673 this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1674 return value; 1675 case 111972721: // value 1676 this.value = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1677 return value; 1678 default: return super.setProperty(hash, name, value); 1679 } 1680 1681 } 1682 1683 @Override 1684 public Base setProperty(String name, Base value) throws FHIRException { 1685 if (name.equals("code")) { 1686 this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1687 } else if (name.equals("value")) { 1688 this.value = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1689 } else 1690 return super.setProperty(name, value); 1691 return value; 1692 } 1693 1694 @Override 1695 public Base makeProperty(int hash, String name) throws FHIRException { 1696 switch (hash) { 1697 case 3059181: return getCode(); 1698 case 111972721: return getValue(); 1699 default: return super.makeProperty(hash, name); 1700 } 1701 1702 } 1703 1704 @Override 1705 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1706 switch (hash) { 1707 case 3059181: /*code*/ return new String[] {"CodeableConcept"}; 1708 case 111972721: /*value*/ return new String[] {"CodeableConcept"}; 1709 default: return super.getTypesForProperty(hash, name); 1710 } 1711 1712 } 1713 1714 @Override 1715 public Base addChild(String name) throws FHIRException { 1716 if (name.equals("code")) { 1717 this.code = new CodeableConcept(); 1718 return this.code; 1719 } 1720 else if (name.equals("value")) { 1721 this.value = new CodeableConcept(); 1722 return this.value; 1723 } 1724 else 1725 return super.addChild(name); 1726 } 1727 1728 public StratifierGroupComponentComponent copy() { 1729 StratifierGroupComponentComponent dst = new StratifierGroupComponentComponent(); 1730 copyValues(dst); 1731 return dst; 1732 } 1733 1734 public void copyValues(StratifierGroupComponentComponent dst) { 1735 super.copyValues(dst); 1736 dst.code = code == null ? null : code.copy(); 1737 dst.value = value == null ? null : value.copy(); 1738 } 1739 1740 @Override 1741 public boolean equalsDeep(Base other_) { 1742 if (!super.equalsDeep(other_)) 1743 return false; 1744 if (!(other_ instanceof StratifierGroupComponentComponent)) 1745 return false; 1746 StratifierGroupComponentComponent o = (StratifierGroupComponentComponent) other_; 1747 return compareDeep(code, o.code, true) && compareDeep(value, o.value, true); 1748 } 1749 1750 @Override 1751 public boolean equalsShallow(Base other_) { 1752 if (!super.equalsShallow(other_)) 1753 return false; 1754 if (!(other_ instanceof StratifierGroupComponentComponent)) 1755 return false; 1756 StratifierGroupComponentComponent o = (StratifierGroupComponentComponent) other_; 1757 return true; 1758 } 1759 1760 public boolean isEmpty() { 1761 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, value); 1762 } 1763 1764 public String fhirType() { 1765 return "MeasureReport.group.stratifier.stratum.component"; 1766 1767 } 1768 1769 } 1770 1771 @Block() 1772 public static class StratifierGroupPopulationComponent extends BackboneElement implements IBaseBackboneElement { 1773 /** 1774 * The type of the population. 1775 */ 1776 @Child(name = "code", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) 1777 @Description(shortDefinition="initial-population | numerator | numerator-exclusion | denominator | denominator-exclusion | denominator-exception | measure-population | measure-population-exclusion | measure-observation", formalDefinition="The type of the population." ) 1778 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-population") 1779 protected CodeableConcept code; 1780 1781 /** 1782 * The number of members of the population in this stratum. 1783 */ 1784 @Child(name = "count", type = {IntegerType.class}, order=2, min=0, max=1, modifier=false, summary=false) 1785 @Description(shortDefinition="Size of the population", formalDefinition="The number of members of the population in this stratum." ) 1786 protected IntegerType count; 1787 1788 /** 1789 * This element refers to a List of subject level MeasureReport resources, one for each subject in this population in this stratum. 1790 */ 1791 @Child(name = "subjectResults", type = {ListResource.class}, order=3, min=0, max=1, modifier=false, summary=false) 1792 @Description(shortDefinition="For subject-list reports, the subject results in this population", formalDefinition="This element refers to a List of subject level MeasureReport resources, one for each subject in this population in this stratum." ) 1793 protected Reference subjectResults; 1794 1795 private static final long serialVersionUID = 1086153898L; 1796 1797 /** 1798 * Constructor 1799 */ 1800 public StratifierGroupPopulationComponent() { 1801 super(); 1802 } 1803 1804 /** 1805 * @return {@link #code} (The type of the population.) 1806 */ 1807 public CodeableConcept getCode() { 1808 if (this.code == null) 1809 if (Configuration.errorOnAutoCreate()) 1810 throw new Error("Attempt to auto-create StratifierGroupPopulationComponent.code"); 1811 else if (Configuration.doAutoCreate()) 1812 this.code = new CodeableConcept(); // cc 1813 return this.code; 1814 } 1815 1816 public boolean hasCode() { 1817 return this.code != null && !this.code.isEmpty(); 1818 } 1819 1820 /** 1821 * @param value {@link #code} (The type of the population.) 1822 */ 1823 public StratifierGroupPopulationComponent setCode(CodeableConcept value) { 1824 this.code = value; 1825 return this; 1826 } 1827 1828 /** 1829 * @return {@link #count} (The number of members of the population in this stratum.). This is the underlying object with id, value and extensions. The accessor "getCount" gives direct access to the value 1830 */ 1831 public IntegerType getCountElement() { 1832 if (this.count == null) 1833 if (Configuration.errorOnAutoCreate()) 1834 throw new Error("Attempt to auto-create StratifierGroupPopulationComponent.count"); 1835 else if (Configuration.doAutoCreate()) 1836 this.count = new IntegerType(); // bb 1837 return this.count; 1838 } 1839 1840 public boolean hasCountElement() { 1841 return this.count != null && !this.count.isEmpty(); 1842 } 1843 1844 public boolean hasCount() { 1845 return this.count != null && !this.count.isEmpty(); 1846 } 1847 1848 /** 1849 * @param value {@link #count} (The number of members of the population in this stratum.). This is the underlying object with id, value and extensions. The accessor "getCount" gives direct access to the value 1850 */ 1851 public StratifierGroupPopulationComponent setCountElement(IntegerType value) { 1852 this.count = value; 1853 return this; 1854 } 1855 1856 /** 1857 * @return The number of members of the population in this stratum. 1858 */ 1859 public int getCount() { 1860 return this.count == null || this.count.isEmpty() ? 0 : this.count.getValue(); 1861 } 1862 1863 /** 1864 * @param value The number of members of the population in this stratum. 1865 */ 1866 public StratifierGroupPopulationComponent setCount(int value) { 1867 if (this.count == null) 1868 this.count = new IntegerType(); 1869 this.count.setValue(value); 1870 return this; 1871 } 1872 1873 /** 1874 * @return {@link #subjectResults} (This element refers to a List of subject level MeasureReport resources, one for each subject in this population in this stratum.) 1875 */ 1876 public Reference getSubjectResults() { 1877 if (this.subjectResults == null) 1878 if (Configuration.errorOnAutoCreate()) 1879 throw new Error("Attempt to auto-create StratifierGroupPopulationComponent.subjectResults"); 1880 else if (Configuration.doAutoCreate()) 1881 this.subjectResults = new Reference(); // cc 1882 return this.subjectResults; 1883 } 1884 1885 public boolean hasSubjectResults() { 1886 return this.subjectResults != null && !this.subjectResults.isEmpty(); 1887 } 1888 1889 /** 1890 * @param value {@link #subjectResults} (This element refers to a List of subject level MeasureReport resources, one for each subject in this population in this stratum.) 1891 */ 1892 public StratifierGroupPopulationComponent setSubjectResults(Reference value) { 1893 this.subjectResults = value; 1894 return this; 1895 } 1896 1897 protected void listChildren(List<Property> children) { 1898 super.listChildren(children); 1899 children.add(new Property("code", "CodeableConcept", "The type of the population.", 0, 1, code)); 1900 children.add(new Property("count", "integer", "The number of members of the population in this stratum.", 0, 1, count)); 1901 children.add(new Property("subjectResults", "Reference(List)", "This element refers to a List of subject level MeasureReport resources, one for each subject in this population in this stratum.", 0, 1, subjectResults)); 1902 } 1903 1904 @Override 1905 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1906 switch (_hash) { 1907 case 3059181: /*code*/ return new Property("code", "CodeableConcept", "The type of the population.", 0, 1, code); 1908 case 94851343: /*count*/ return new Property("count", "integer", "The number of members of the population in this stratum.", 0, 1, count); 1909 case 2136184106: /*subjectResults*/ return new Property("subjectResults", "Reference(List)", "This element refers to a List of subject level MeasureReport resources, one for each subject in this population in this stratum.", 0, 1, subjectResults); 1910 default: return super.getNamedProperty(_hash, _name, _checkValid); 1911 } 1912 1913 } 1914 1915 @Override 1916 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1917 switch (hash) { 1918 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept 1919 case 94851343: /*count*/ return this.count == null ? new Base[0] : new Base[] {this.count}; // IntegerType 1920 case 2136184106: /*subjectResults*/ return this.subjectResults == null ? new Base[0] : new Base[] {this.subjectResults}; // Reference 1921 default: return super.getProperty(hash, name, checkValid); 1922 } 1923 1924 } 1925 1926 @Override 1927 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1928 switch (hash) { 1929 case 3059181: // code 1930 this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1931 return value; 1932 case 94851343: // count 1933 this.count = TypeConvertor.castToInteger(value); // IntegerType 1934 return value; 1935 case 2136184106: // subjectResults 1936 this.subjectResults = TypeConvertor.castToReference(value); // Reference 1937 return value; 1938 default: return super.setProperty(hash, name, value); 1939 } 1940 1941 } 1942 1943 @Override 1944 public Base setProperty(String name, Base value) throws FHIRException { 1945 if (name.equals("code")) { 1946 this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1947 } else if (name.equals("count")) { 1948 this.count = TypeConvertor.castToInteger(value); // IntegerType 1949 } else if (name.equals("subjectResults")) { 1950 this.subjectResults = TypeConvertor.castToReference(value); // Reference 1951 } else 1952 return super.setProperty(name, value); 1953 return value; 1954 } 1955 1956 @Override 1957 public Base makeProperty(int hash, String name) throws FHIRException { 1958 switch (hash) { 1959 case 3059181: return getCode(); 1960 case 94851343: return getCountElement(); 1961 case 2136184106: return getSubjectResults(); 1962 default: return super.makeProperty(hash, name); 1963 } 1964 1965 } 1966 1967 @Override 1968 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1969 switch (hash) { 1970 case 3059181: /*code*/ return new String[] {"CodeableConcept"}; 1971 case 94851343: /*count*/ return new String[] {"integer"}; 1972 case 2136184106: /*subjectResults*/ return new String[] {"Reference"}; 1973 default: return super.getTypesForProperty(hash, name); 1974 } 1975 1976 } 1977 1978 @Override 1979 public Base addChild(String name) throws FHIRException { 1980 if (name.equals("code")) { 1981 this.code = new CodeableConcept(); 1982 return this.code; 1983 } 1984 else if (name.equals("count")) { 1985 throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.group.stratifier.stratum.population.count"); 1986 } 1987 else if (name.equals("subjectResults")) { 1988 this.subjectResults = new Reference(); 1989 return this.subjectResults; 1990 } 1991 else 1992 return super.addChild(name); 1993 } 1994 1995 public StratifierGroupPopulationComponent copy() { 1996 StratifierGroupPopulationComponent dst = new StratifierGroupPopulationComponent(); 1997 copyValues(dst); 1998 return dst; 1999 } 2000 2001 public void copyValues(StratifierGroupPopulationComponent dst) { 2002 super.copyValues(dst); 2003 dst.code = code == null ? null : code.copy(); 2004 dst.count = count == null ? null : count.copy(); 2005 dst.subjectResults = subjectResults == null ? null : subjectResults.copy(); 2006 } 2007 2008 @Override 2009 public boolean equalsDeep(Base other_) { 2010 if (!super.equalsDeep(other_)) 2011 return false; 2012 if (!(other_ instanceof StratifierGroupPopulationComponent)) 2013 return false; 2014 StratifierGroupPopulationComponent o = (StratifierGroupPopulationComponent) other_; 2015 return compareDeep(code, o.code, true) && compareDeep(count, o.count, true) && compareDeep(subjectResults, o.subjectResults, true) 2016 ; 2017 } 2018 2019 @Override 2020 public boolean equalsShallow(Base other_) { 2021 if (!super.equalsShallow(other_)) 2022 return false; 2023 if (!(other_ instanceof StratifierGroupPopulationComponent)) 2024 return false; 2025 StratifierGroupPopulationComponent o = (StratifierGroupPopulationComponent) other_; 2026 return compareValues(count, o.count, true); 2027 } 2028 2029 public boolean isEmpty() { 2030 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, count, subjectResults 2031 ); 2032 } 2033 2034 public String fhirType() { 2035 return "MeasureReport.group.stratifier.stratum.population"; 2036 2037 } 2038 2039 } 2040 2041 /** 2042 * A formal identifier that is used to identify this MeasureReport when it is represented in other formats or referenced in a specification, model, design or an instance. 2043 */ 2044 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 2045 @Description(shortDefinition="Additional identifier for the MeasureReport", formalDefinition="A formal identifier that is used to identify this MeasureReport when it is represented in other formats or referenced in a specification, model, design or an instance." ) 2046 protected List<Identifier> identifier; 2047 2048 /** 2049 * The MeasureReport status. No data will be available until the MeasureReport status is complete. 2050 */ 2051 @Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true) 2052 @Description(shortDefinition="complete | pending | error", formalDefinition="The MeasureReport status. No data will be available until the MeasureReport status is complete." ) 2053 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-report-status") 2054 protected Enumeration<MeasureReportStatus> status; 2055 2056 /** 2057 * The type of measure report. This may be an individual report, which provides the score for the measure for an individual member of the population; a subject-listing, which returns the list of members that meet the various criteria in the measure; a summary report, which returns a population count for each of the criteria in the measure; or a data-collection, which enables the MeasureReport to be used to exchange the data-of-interest for a quality measure. 2058 */ 2059 @Child(name = "type", type = {CodeType.class}, order=2, min=1, max=1, modifier=false, summary=true) 2060 @Description(shortDefinition="individual | subject-list | summary | data-collection", formalDefinition="The type of measure report. This may be an individual report, which provides the score for the measure for an individual member of the population; a subject-listing, which returns the list of members that meet the various criteria in the measure; a summary report, which returns a population count for each of the criteria in the measure; or a data-collection, which enables the MeasureReport to be used to exchange the data-of-interest for a quality measure." ) 2061 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-report-type") 2062 protected Enumeration<MeasureReportType> type; 2063 2064 /** 2065 * A reference to the Measure that was calculated to produce this report. 2066 */ 2067 @Child(name = "measure", type = {CanonicalType.class}, order=3, min=1, max=1, modifier=false, summary=true) 2068 @Description(shortDefinition="What measure was calculated", formalDefinition="A reference to the Measure that was calculated to produce this report." ) 2069 protected CanonicalType measure; 2070 2071 /** 2072 * Optional subject identifying the individual or individuals the report is for. 2073 */ 2074 @Child(name = "subject", type = {Patient.class, Practitioner.class, PractitionerRole.class, Location.class, Device.class, RelatedPerson.class, Group.class}, order=4, min=0, max=1, modifier=false, summary=true) 2075 @Description(shortDefinition="What individual(s) the report is for", formalDefinition="Optional subject identifying the individual or individuals the report is for." ) 2076 protected Reference subject; 2077 2078 /** 2079 * The date this measure report was generated. 2080 */ 2081 @Child(name = "date", type = {DateTimeType.class}, order=5, min=0, max=1, modifier=false, summary=true) 2082 @Description(shortDefinition="When the report was generated", formalDefinition="The date this measure report was generated." ) 2083 protected DateTimeType date; 2084 2085 /** 2086 * The individual, location, or organization that is reporting the data. 2087 */ 2088 @Child(name = "reporter", type = {Practitioner.class, PractitionerRole.class, Location.class, Organization.class}, order=6, min=0, max=1, modifier=false, summary=true) 2089 @Description(shortDefinition="Who is reporting the data", formalDefinition="The individual, location, or organization that is reporting the data." ) 2090 protected Reference reporter; 2091 2092 /** 2093 * The reporting period for which the report was calculated. 2094 */ 2095 @Child(name = "period", type = {Period.class}, order=7, min=1, max=1, modifier=false, summary=true) 2096 @Description(shortDefinition="What period the report covers", formalDefinition="The reporting period for which the report was calculated." ) 2097 protected Period period; 2098 2099 /** 2100 * Whether improvement in the measure is noted by an increase or decrease in the measure score. 2101 */ 2102 @Child(name = "improvementNotation", type = {CodeableConcept.class}, order=8, min=0, max=1, modifier=true, summary=true) 2103 @Description(shortDefinition="increase | decrease", formalDefinition="Whether improvement in the measure is noted by an increase or decrease in the measure score." ) 2104 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-improvement-notation") 2105 protected CodeableConcept improvementNotation; 2106 2107 /** 2108 * The results of the calculation, one for each population group in the measure. 2109 */ 2110 @Child(name = "group", type = {}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 2111 @Description(shortDefinition="Measure results for each group", formalDefinition="The results of the calculation, one for each population group in the measure." ) 2112 protected List<MeasureReportGroupComponent> group; 2113 2114 /** 2115 * A reference to a Bundle containing the Resources that were used in the calculation of this measure. 2116 */ 2117 @Child(name = "evaluatedResource", type = {Reference.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 2118 @Description(shortDefinition="What data was used to calculate the measure score", formalDefinition="A reference to a Bundle containing the Resources that were used in the calculation of this measure." ) 2119 protected List<Reference> evaluatedResource; 2120 2121 private static final long serialVersionUID = 1801518514L; 2122 2123 /** 2124 * Constructor 2125 */ 2126 public MeasureReport() { 2127 super(); 2128 } 2129 2130 /** 2131 * Constructor 2132 */ 2133 public MeasureReport(MeasureReportStatus status, MeasureReportType type, String measure, Period period) { 2134 super(); 2135 this.setStatus(status); 2136 this.setType(type); 2137 this.setMeasure(measure); 2138 this.setPeriod(period); 2139 } 2140 2141 /** 2142 * @return {@link #identifier} (A formal identifier that is used to identify this MeasureReport when it is represented in other formats or referenced in a specification, model, design or an instance.) 2143 */ 2144 public List<Identifier> getIdentifier() { 2145 if (this.identifier == null) 2146 this.identifier = new ArrayList<Identifier>(); 2147 return this.identifier; 2148 } 2149 2150 /** 2151 * @return Returns a reference to <code>this</code> for easy method chaining 2152 */ 2153 public MeasureReport setIdentifier(List<Identifier> theIdentifier) { 2154 this.identifier = theIdentifier; 2155 return this; 2156 } 2157 2158 public boolean hasIdentifier() { 2159 if (this.identifier == null) 2160 return false; 2161 for (Identifier item : this.identifier) 2162 if (!item.isEmpty()) 2163 return true; 2164 return false; 2165 } 2166 2167 public Identifier addIdentifier() { //3 2168 Identifier t = new Identifier(); 2169 if (this.identifier == null) 2170 this.identifier = new ArrayList<Identifier>(); 2171 this.identifier.add(t); 2172 return t; 2173 } 2174 2175 public MeasureReport addIdentifier(Identifier t) { //3 2176 if (t == null) 2177 return this; 2178 if (this.identifier == null) 2179 this.identifier = new ArrayList<Identifier>(); 2180 this.identifier.add(t); 2181 return this; 2182 } 2183 2184 /** 2185 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} 2186 */ 2187 public Identifier getIdentifierFirstRep() { 2188 if (getIdentifier().isEmpty()) { 2189 addIdentifier(); 2190 } 2191 return getIdentifier().get(0); 2192 } 2193 2194 /** 2195 * @return {@link #status} (The MeasureReport status. No data will be available until the MeasureReport status is complete.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 2196 */ 2197 public Enumeration<MeasureReportStatus> getStatusElement() { 2198 if (this.status == null) 2199 if (Configuration.errorOnAutoCreate()) 2200 throw new Error("Attempt to auto-create MeasureReport.status"); 2201 else if (Configuration.doAutoCreate()) 2202 this.status = new Enumeration<MeasureReportStatus>(new MeasureReportStatusEnumFactory()); // bb 2203 return this.status; 2204 } 2205 2206 public boolean hasStatusElement() { 2207 return this.status != null && !this.status.isEmpty(); 2208 } 2209 2210 public boolean hasStatus() { 2211 return this.status != null && !this.status.isEmpty(); 2212 } 2213 2214 /** 2215 * @param value {@link #status} (The MeasureReport status. No data will be available until the MeasureReport status is complete.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 2216 */ 2217 public MeasureReport setStatusElement(Enumeration<MeasureReportStatus> value) { 2218 this.status = value; 2219 return this; 2220 } 2221 2222 /** 2223 * @return The MeasureReport status. No data will be available until the MeasureReport status is complete. 2224 */ 2225 public MeasureReportStatus getStatus() { 2226 return this.status == null ? null : this.status.getValue(); 2227 } 2228 2229 /** 2230 * @param value The MeasureReport status. No data will be available until the MeasureReport status is complete. 2231 */ 2232 public MeasureReport setStatus(MeasureReportStatus value) { 2233 if (this.status == null) 2234 this.status = new Enumeration<MeasureReportStatus>(new MeasureReportStatusEnumFactory()); 2235 this.status.setValue(value); 2236 return this; 2237 } 2238 2239 /** 2240 * @return {@link #type} (The type of measure report. This may be an individual report, which provides the score for the measure for an individual member of the population; a subject-listing, which returns the list of members that meet the various criteria in the measure; a summary report, which returns a population count for each of the criteria in the measure; or a data-collection, which enables the MeasureReport to be used to exchange the data-of-interest for a quality measure.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value 2241 */ 2242 public Enumeration<MeasureReportType> getTypeElement() { 2243 if (this.type == null) 2244 if (Configuration.errorOnAutoCreate()) 2245 throw new Error("Attempt to auto-create MeasureReport.type"); 2246 else if (Configuration.doAutoCreate()) 2247 this.type = new Enumeration<MeasureReportType>(new MeasureReportTypeEnumFactory()); // bb 2248 return this.type; 2249 } 2250 2251 public boolean hasTypeElement() { 2252 return this.type != null && !this.type.isEmpty(); 2253 } 2254 2255 public boolean hasType() { 2256 return this.type != null && !this.type.isEmpty(); 2257 } 2258 2259 /** 2260 * @param value {@link #type} (The type of measure report. This may be an individual report, which provides the score for the measure for an individual member of the population; a subject-listing, which returns the list of members that meet the various criteria in the measure; a summary report, which returns a population count for each of the criteria in the measure; or a data-collection, which enables the MeasureReport to be used to exchange the data-of-interest for a quality measure.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value 2261 */ 2262 public MeasureReport setTypeElement(Enumeration<MeasureReportType> value) { 2263 this.type = value; 2264 return this; 2265 } 2266 2267 /** 2268 * @return The type of measure report. This may be an individual report, which provides the score for the measure for an individual member of the population; a subject-listing, which returns the list of members that meet the various criteria in the measure; a summary report, which returns a population count for each of the criteria in the measure; or a data-collection, which enables the MeasureReport to be used to exchange the data-of-interest for a quality measure. 2269 */ 2270 public MeasureReportType getType() { 2271 return this.type == null ? null : this.type.getValue(); 2272 } 2273 2274 /** 2275 * @param value The type of measure report. This may be an individual report, which provides the score for the measure for an individual member of the population; a subject-listing, which returns the list of members that meet the various criteria in the measure; a summary report, which returns a population count for each of the criteria in the measure; or a data-collection, which enables the MeasureReport to be used to exchange the data-of-interest for a quality measure. 2276 */ 2277 public MeasureReport setType(MeasureReportType value) { 2278 if (this.type == null) 2279 this.type = new Enumeration<MeasureReportType>(new MeasureReportTypeEnumFactory()); 2280 this.type.setValue(value); 2281 return this; 2282 } 2283 2284 /** 2285 * @return {@link #measure} (A reference to the Measure that was calculated to produce this report.). This is the underlying object with id, value and extensions. The accessor "getMeasure" gives direct access to the value 2286 */ 2287 public CanonicalType getMeasureElement() { 2288 if (this.measure == null) 2289 if (Configuration.errorOnAutoCreate()) 2290 throw new Error("Attempt to auto-create MeasureReport.measure"); 2291 else if (Configuration.doAutoCreate()) 2292 this.measure = new CanonicalType(); // bb 2293 return this.measure; 2294 } 2295 2296 public boolean hasMeasureElement() { 2297 return this.measure != null && !this.measure.isEmpty(); 2298 } 2299 2300 public boolean hasMeasure() { 2301 return this.measure != null && !this.measure.isEmpty(); 2302 } 2303 2304 /** 2305 * @param value {@link #measure} (A reference to the Measure that was calculated to produce this report.). This is the underlying object with id, value and extensions. The accessor "getMeasure" gives direct access to the value 2306 */ 2307 public MeasureReport setMeasureElement(CanonicalType value) { 2308 this.measure = value; 2309 return this; 2310 } 2311 2312 /** 2313 * @return A reference to the Measure that was calculated to produce this report. 2314 */ 2315 public String getMeasure() { 2316 return this.measure == null ? null : this.measure.getValue(); 2317 } 2318 2319 /** 2320 * @param value A reference to the Measure that was calculated to produce this report. 2321 */ 2322 public MeasureReport setMeasure(String value) { 2323 if (this.measure == null) 2324 this.measure = new CanonicalType(); 2325 this.measure.setValue(value); 2326 return this; 2327 } 2328 2329 /** 2330 * @return {@link #subject} (Optional subject identifying the individual or individuals the report is for.) 2331 */ 2332 public Reference getSubject() { 2333 if (this.subject == null) 2334 if (Configuration.errorOnAutoCreate()) 2335 throw new Error("Attempt to auto-create MeasureReport.subject"); 2336 else if (Configuration.doAutoCreate()) 2337 this.subject = new Reference(); // cc 2338 return this.subject; 2339 } 2340 2341 public boolean hasSubject() { 2342 return this.subject != null && !this.subject.isEmpty(); 2343 } 2344 2345 /** 2346 * @param value {@link #subject} (Optional subject identifying the individual or individuals the report is for.) 2347 */ 2348 public MeasureReport setSubject(Reference value) { 2349 this.subject = value; 2350 return this; 2351 } 2352 2353 /** 2354 * @return {@link #date} (The date this measure report was generated.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 2355 */ 2356 public DateTimeType getDateElement() { 2357 if (this.date == null) 2358 if (Configuration.errorOnAutoCreate()) 2359 throw new Error("Attempt to auto-create MeasureReport.date"); 2360 else if (Configuration.doAutoCreate()) 2361 this.date = new DateTimeType(); // bb 2362 return this.date; 2363 } 2364 2365 public boolean hasDateElement() { 2366 return this.date != null && !this.date.isEmpty(); 2367 } 2368 2369 public boolean hasDate() { 2370 return this.date != null && !this.date.isEmpty(); 2371 } 2372 2373 /** 2374 * @param value {@link #date} (The date this measure report was generated.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 2375 */ 2376 public MeasureReport setDateElement(DateTimeType value) { 2377 this.date = value; 2378 return this; 2379 } 2380 2381 /** 2382 * @return The date this measure report was generated. 2383 */ 2384 public Date getDate() { 2385 return this.date == null ? null : this.date.getValue(); 2386 } 2387 2388 /** 2389 * @param value The date this measure report was generated. 2390 */ 2391 public MeasureReport setDate(Date value) { 2392 if (value == null) 2393 this.date = null; 2394 else { 2395 if (this.date == null) 2396 this.date = new DateTimeType(); 2397 this.date.setValue(value); 2398 } 2399 return this; 2400 } 2401 2402 /** 2403 * @return {@link #reporter} (The individual, location, or organization that is reporting the data.) 2404 */ 2405 public Reference getReporter() { 2406 if (this.reporter == null) 2407 if (Configuration.errorOnAutoCreate()) 2408 throw new Error("Attempt to auto-create MeasureReport.reporter"); 2409 else if (Configuration.doAutoCreate()) 2410 this.reporter = new Reference(); // cc 2411 return this.reporter; 2412 } 2413 2414 public boolean hasReporter() { 2415 return this.reporter != null && !this.reporter.isEmpty(); 2416 } 2417 2418 /** 2419 * @param value {@link #reporter} (The individual, location, or organization that is reporting the data.) 2420 */ 2421 public MeasureReport setReporter(Reference value) { 2422 this.reporter = value; 2423 return this; 2424 } 2425 2426 /** 2427 * @return {@link #period} (The reporting period for which the report was calculated.) 2428 */ 2429 public Period getPeriod() { 2430 if (this.period == null) 2431 if (Configuration.errorOnAutoCreate()) 2432 throw new Error("Attempt to auto-create MeasureReport.period"); 2433 else if (Configuration.doAutoCreate()) 2434 this.period = new Period(); // cc 2435 return this.period; 2436 } 2437 2438 public boolean hasPeriod() { 2439 return this.period != null && !this.period.isEmpty(); 2440 } 2441 2442 /** 2443 * @param value {@link #period} (The reporting period for which the report was calculated.) 2444 */ 2445 public MeasureReport setPeriod(Period value) { 2446 this.period = value; 2447 return this; 2448 } 2449 2450 /** 2451 * @return {@link #improvementNotation} (Whether improvement in the measure is noted by an increase or decrease in the measure score.) 2452 */ 2453 public CodeableConcept getImprovementNotation() { 2454 if (this.improvementNotation == null) 2455 if (Configuration.errorOnAutoCreate()) 2456 throw new Error("Attempt to auto-create MeasureReport.improvementNotation"); 2457 else if (Configuration.doAutoCreate()) 2458 this.improvementNotation = new CodeableConcept(); // cc 2459 return this.improvementNotation; 2460 } 2461 2462 public boolean hasImprovementNotation() { 2463 return this.improvementNotation != null && !this.improvementNotation.isEmpty(); 2464 } 2465 2466 /** 2467 * @param value {@link #improvementNotation} (Whether improvement in the measure is noted by an increase or decrease in the measure score.) 2468 */ 2469 public MeasureReport setImprovementNotation(CodeableConcept value) { 2470 this.improvementNotation = value; 2471 return this; 2472 } 2473 2474 /** 2475 * @return {@link #group} (The results of the calculation, one for each population group in the measure.) 2476 */ 2477 public List<MeasureReportGroupComponent> getGroup() { 2478 if (this.group == null) 2479 this.group = new ArrayList<MeasureReportGroupComponent>(); 2480 return this.group; 2481 } 2482 2483 /** 2484 * @return Returns a reference to <code>this</code> for easy method chaining 2485 */ 2486 public MeasureReport setGroup(List<MeasureReportGroupComponent> theGroup) { 2487 this.group = theGroup; 2488 return this; 2489 } 2490 2491 public boolean hasGroup() { 2492 if (this.group == null) 2493 return false; 2494 for (MeasureReportGroupComponent item : this.group) 2495 if (!item.isEmpty()) 2496 return true; 2497 return false; 2498 } 2499 2500 public MeasureReportGroupComponent addGroup() { //3 2501 MeasureReportGroupComponent t = new MeasureReportGroupComponent(); 2502 if (this.group == null) 2503 this.group = new ArrayList<MeasureReportGroupComponent>(); 2504 this.group.add(t); 2505 return t; 2506 } 2507 2508 public MeasureReport addGroup(MeasureReportGroupComponent t) { //3 2509 if (t == null) 2510 return this; 2511 if (this.group == null) 2512 this.group = new ArrayList<MeasureReportGroupComponent>(); 2513 this.group.add(t); 2514 return this; 2515 } 2516 2517 /** 2518 * @return The first repetition of repeating field {@link #group}, creating it if it does not already exist {3} 2519 */ 2520 public MeasureReportGroupComponent getGroupFirstRep() { 2521 if (getGroup().isEmpty()) { 2522 addGroup(); 2523 } 2524 return getGroup().get(0); 2525 } 2526 2527 /** 2528 * @return {@link #evaluatedResource} (A reference to a Bundle containing the Resources that were used in the calculation of this measure.) 2529 */ 2530 public List<Reference> getEvaluatedResource() { 2531 if (this.evaluatedResource == null) 2532 this.evaluatedResource = new ArrayList<Reference>(); 2533 return this.evaluatedResource; 2534 } 2535 2536 /** 2537 * @return Returns a reference to <code>this</code> for easy method chaining 2538 */ 2539 public MeasureReport setEvaluatedResource(List<Reference> theEvaluatedResource) { 2540 this.evaluatedResource = theEvaluatedResource; 2541 return this; 2542 } 2543 2544 public boolean hasEvaluatedResource() { 2545 if (this.evaluatedResource == null) 2546 return false; 2547 for (Reference item : this.evaluatedResource) 2548 if (!item.isEmpty()) 2549 return true; 2550 return false; 2551 } 2552 2553 public Reference addEvaluatedResource() { //3 2554 Reference t = new Reference(); 2555 if (this.evaluatedResource == null) 2556 this.evaluatedResource = new ArrayList<Reference>(); 2557 this.evaluatedResource.add(t); 2558 return t; 2559 } 2560 2561 public MeasureReport addEvaluatedResource(Reference t) { //3 2562 if (t == null) 2563 return this; 2564 if (this.evaluatedResource == null) 2565 this.evaluatedResource = new ArrayList<Reference>(); 2566 this.evaluatedResource.add(t); 2567 return this; 2568 } 2569 2570 /** 2571 * @return The first repetition of repeating field {@link #evaluatedResource}, creating it if it does not already exist {3} 2572 */ 2573 public Reference getEvaluatedResourceFirstRep() { 2574 if (getEvaluatedResource().isEmpty()) { 2575 addEvaluatedResource(); 2576 } 2577 return getEvaluatedResource().get(0); 2578 } 2579 2580 protected void listChildren(List<Property> children) { 2581 super.listChildren(children); 2582 children.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this MeasureReport when it is represented in other formats or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier)); 2583 children.add(new Property("status", "code", "The MeasureReport status. No data will be available until the MeasureReport status is complete.", 0, 1, status)); 2584 children.add(new Property("type", "code", "The type of measure report. This may be an individual report, which provides the score for the measure for an individual member of the population; a subject-listing, which returns the list of members that meet the various criteria in the measure; a summary report, which returns a population count for each of the criteria in the measure; or a data-collection, which enables the MeasureReport to be used to exchange the data-of-interest for a quality measure.", 0, 1, type)); 2585 children.add(new Property("measure", "canonical(Measure)", "A reference to the Measure that was calculated to produce this report.", 0, 1, measure)); 2586 children.add(new Property("subject", "Reference(Patient|Practitioner|PractitionerRole|Location|Device|RelatedPerson|Group)", "Optional subject identifying the individual or individuals the report is for.", 0, 1, subject)); 2587 children.add(new Property("date", "dateTime", "The date this measure report was generated.", 0, 1, date)); 2588 children.add(new Property("reporter", "Reference(Practitioner|PractitionerRole|Location|Organization)", "The individual, location, or organization that is reporting the data.", 0, 1, reporter)); 2589 children.add(new Property("period", "Period", "The reporting period for which the report was calculated.", 0, 1, period)); 2590 children.add(new Property("improvementNotation", "CodeableConcept", "Whether improvement in the measure is noted by an increase or decrease in the measure score.", 0, 1, improvementNotation)); 2591 children.add(new Property("group", "", "The results of the calculation, one for each population group in the measure.", 0, java.lang.Integer.MAX_VALUE, group)); 2592 children.add(new Property("evaluatedResource", "Reference(Any)", "A reference to a Bundle containing the Resources that were used in the calculation of this measure.", 0, java.lang.Integer.MAX_VALUE, evaluatedResource)); 2593 } 2594 2595 @Override 2596 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 2597 switch (_hash) { 2598 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A formal identifier that is used to identify this MeasureReport when it is represented in other formats or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier); 2599 case -892481550: /*status*/ return new Property("status", "code", "The MeasureReport status. No data will be available until the MeasureReport status is complete.", 0, 1, status); 2600 case 3575610: /*type*/ return new Property("type", "code", "The type of measure report. This may be an individual report, which provides the score for the measure for an individual member of the population; a subject-listing, which returns the list of members that meet the various criteria in the measure; a summary report, which returns a population count for each of the criteria in the measure; or a data-collection, which enables the MeasureReport to be used to exchange the data-of-interest for a quality measure.", 0, 1, type); 2601 case 938321246: /*measure*/ return new Property("measure", "canonical(Measure)", "A reference to the Measure that was calculated to produce this report.", 0, 1, measure); 2602 case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Practitioner|PractitionerRole|Location|Device|RelatedPerson|Group)", "Optional subject identifying the individual or individuals the report is for.", 0, 1, subject); 2603 case 3076014: /*date*/ return new Property("date", "dateTime", "The date this measure report was generated.", 0, 1, date); 2604 case -427039519: /*reporter*/ return new Property("reporter", "Reference(Practitioner|PractitionerRole|Location|Organization)", "The individual, location, or organization that is reporting the data.", 0, 1, reporter); 2605 case -991726143: /*period*/ return new Property("period", "Period", "The reporting period for which the report was calculated.", 0, 1, period); 2606 case -2085456136: /*improvementNotation*/ return new Property("improvementNotation", "CodeableConcept", "Whether improvement in the measure is noted by an increase or decrease in the measure score.", 0, 1, improvementNotation); 2607 case 98629247: /*group*/ return new Property("group", "", "The results of the calculation, one for each population group in the measure.", 0, java.lang.Integer.MAX_VALUE, group); 2608 case -1056771047: /*evaluatedResource*/ return new Property("evaluatedResource", "Reference(Any)", "A reference to a Bundle containing the Resources that were used in the calculation of this measure.", 0, java.lang.Integer.MAX_VALUE, evaluatedResource); 2609 default: return super.getNamedProperty(_hash, _name, _checkValid); 2610 } 2611 2612 } 2613 2614 @Override 2615 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 2616 switch (hash) { 2617 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 2618 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<MeasureReportStatus> 2619 case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // Enumeration<MeasureReportType> 2620 case 938321246: /*measure*/ return this.measure == null ? new Base[0] : new Base[] {this.measure}; // CanonicalType 2621 case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference 2622 case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType 2623 case -427039519: /*reporter*/ return this.reporter == null ? new Base[0] : new Base[] {this.reporter}; // Reference 2624 case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period 2625 case -2085456136: /*improvementNotation*/ return this.improvementNotation == null ? new Base[0] : new Base[] {this.improvementNotation}; // CodeableConcept 2626 case 98629247: /*group*/ return this.group == null ? new Base[0] : this.group.toArray(new Base[this.group.size()]); // MeasureReportGroupComponent 2627 case -1056771047: /*evaluatedResource*/ return this.evaluatedResource == null ? new Base[0] : this.evaluatedResource.toArray(new Base[this.evaluatedResource.size()]); // Reference 2628 default: return super.getProperty(hash, name, checkValid); 2629 } 2630 2631 } 2632 2633 @Override 2634 public Base setProperty(int hash, String name, Base value) throws FHIRException { 2635 switch (hash) { 2636 case -1618432855: // identifier 2637 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier 2638 return value; 2639 case -892481550: // status 2640 value = new MeasureReportStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 2641 this.status = (Enumeration) value; // Enumeration<MeasureReportStatus> 2642 return value; 2643 case 3575610: // type 2644 value = new MeasureReportTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); 2645 this.type = (Enumeration) value; // Enumeration<MeasureReportType> 2646 return value; 2647 case 938321246: // measure 2648 this.measure = TypeConvertor.castToCanonical(value); // CanonicalType 2649 return value; 2650 case -1867885268: // subject 2651 this.subject = TypeConvertor.castToReference(value); // Reference 2652 return value; 2653 case 3076014: // date 2654 this.date = TypeConvertor.castToDateTime(value); // DateTimeType 2655 return value; 2656 case -427039519: // reporter 2657 this.reporter = TypeConvertor.castToReference(value); // Reference 2658 return value; 2659 case -991726143: // period 2660 this.period = TypeConvertor.castToPeriod(value); // Period 2661 return value; 2662 case -2085456136: // improvementNotation 2663 this.improvementNotation = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2664 return value; 2665 case 98629247: // group 2666 this.getGroup().add((MeasureReportGroupComponent) value); // MeasureReportGroupComponent 2667 return value; 2668 case -1056771047: // evaluatedResource 2669 this.getEvaluatedResource().add(TypeConvertor.castToReference(value)); // Reference 2670 return value; 2671 default: return super.setProperty(hash, name, value); 2672 } 2673 2674 } 2675 2676 @Override 2677 public Base setProperty(String name, Base value) throws FHIRException { 2678 if (name.equals("identifier")) { 2679 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); 2680 } else if (name.equals("status")) { 2681 value = new MeasureReportStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 2682 this.status = (Enumeration) value; // Enumeration<MeasureReportStatus> 2683 } else if (name.equals("type")) { 2684 value = new MeasureReportTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); 2685 this.type = (Enumeration) value; // Enumeration<MeasureReportType> 2686 } else if (name.equals("measure")) { 2687 this.measure = TypeConvertor.castToCanonical(value); // CanonicalType 2688 } else if (name.equals("subject")) { 2689 this.subject = TypeConvertor.castToReference(value); // Reference 2690 } else if (name.equals("date")) { 2691 this.date = TypeConvertor.castToDateTime(value); // DateTimeType 2692 } else if (name.equals("reporter")) { 2693 this.reporter = TypeConvertor.castToReference(value); // Reference 2694 } else if (name.equals("period")) { 2695 this.period = TypeConvertor.castToPeriod(value); // Period 2696 } else if (name.equals("improvementNotation")) { 2697 this.improvementNotation = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2698 } else if (name.equals("group")) { 2699 this.getGroup().add((MeasureReportGroupComponent) value); 2700 } else if (name.equals("evaluatedResource")) { 2701 this.getEvaluatedResource().add(TypeConvertor.castToReference(value)); 2702 } else 2703 return super.setProperty(name, value); 2704 return value; 2705 } 2706 2707 @Override 2708 public Base makeProperty(int hash, String name) throws FHIRException { 2709 switch (hash) { 2710 case -1618432855: return addIdentifier(); 2711 case -892481550: return getStatusElement(); 2712 case 3575610: return getTypeElement(); 2713 case 938321246: return getMeasureElement(); 2714 case -1867885268: return getSubject(); 2715 case 3076014: return getDateElement(); 2716 case -427039519: return getReporter(); 2717 case -991726143: return getPeriod(); 2718 case -2085456136: return getImprovementNotation(); 2719 case 98629247: return addGroup(); 2720 case -1056771047: return addEvaluatedResource(); 2721 default: return super.makeProperty(hash, name); 2722 } 2723 2724 } 2725 2726 @Override 2727 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 2728 switch (hash) { 2729 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 2730 case -892481550: /*status*/ return new String[] {"code"}; 2731 case 3575610: /*type*/ return new String[] {"code"}; 2732 case 938321246: /*measure*/ return new String[] {"canonical"}; 2733 case -1867885268: /*subject*/ return new String[] {"Reference"}; 2734 case 3076014: /*date*/ return new String[] {"dateTime"}; 2735 case -427039519: /*reporter*/ return new String[] {"Reference"}; 2736 case -991726143: /*period*/ return new String[] {"Period"}; 2737 case -2085456136: /*improvementNotation*/ return new String[] {"CodeableConcept"}; 2738 case 98629247: /*group*/ return new String[] {}; 2739 case -1056771047: /*evaluatedResource*/ return new String[] {"Reference"}; 2740 default: return super.getTypesForProperty(hash, name); 2741 } 2742 2743 } 2744 2745 @Override 2746 public Base addChild(String name) throws FHIRException { 2747 if (name.equals("identifier")) { 2748 return addIdentifier(); 2749 } 2750 else if (name.equals("status")) { 2751 throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.status"); 2752 } 2753 else if (name.equals("type")) { 2754 throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.type"); 2755 } 2756 else if (name.equals("measure")) { 2757 throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.measure"); 2758 } 2759 else if (name.equals("subject")) { 2760 this.subject = new Reference(); 2761 return this.subject; 2762 } 2763 else if (name.equals("date")) { 2764 throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.date"); 2765 } 2766 else if (name.equals("reporter")) { 2767 this.reporter = new Reference(); 2768 return this.reporter; 2769 } 2770 else if (name.equals("period")) { 2771 this.period = new Period(); 2772 return this.period; 2773 } 2774 else if (name.equals("improvementNotation")) { 2775 this.improvementNotation = new CodeableConcept(); 2776 return this.improvementNotation; 2777 } 2778 else if (name.equals("group")) { 2779 return addGroup(); 2780 } 2781 else if (name.equals("evaluatedResource")) { 2782 return addEvaluatedResource(); 2783 } 2784 else 2785 return super.addChild(name); 2786 } 2787 2788 public String fhirType() { 2789 return "MeasureReport"; 2790 2791 } 2792 2793 public MeasureReport copy() { 2794 MeasureReport dst = new MeasureReport(); 2795 copyValues(dst); 2796 return dst; 2797 } 2798 2799 public void copyValues(MeasureReport dst) { 2800 super.copyValues(dst); 2801 if (identifier != null) { 2802 dst.identifier = new ArrayList<Identifier>(); 2803 for (Identifier i : identifier) 2804 dst.identifier.add(i.copy()); 2805 }; 2806 dst.status = status == null ? null : status.copy(); 2807 dst.type = type == null ? null : type.copy(); 2808 dst.measure = measure == null ? null : measure.copy(); 2809 dst.subject = subject == null ? null : subject.copy(); 2810 dst.date = date == null ? null : date.copy(); 2811 dst.reporter = reporter == null ? null : reporter.copy(); 2812 dst.period = period == null ? null : period.copy(); 2813 dst.improvementNotation = improvementNotation == null ? null : improvementNotation.copy(); 2814 if (group != null) { 2815 dst.group = new ArrayList<MeasureReportGroupComponent>(); 2816 for (MeasureReportGroupComponent i : group) 2817 dst.group.add(i.copy()); 2818 }; 2819 if (evaluatedResource != null) { 2820 dst.evaluatedResource = new ArrayList<Reference>(); 2821 for (Reference i : evaluatedResource) 2822 dst.evaluatedResource.add(i.copy()); 2823 }; 2824 } 2825 2826 protected MeasureReport typedCopy() { 2827 return copy(); 2828 } 2829 2830 @Override 2831 public boolean equalsDeep(Base other_) { 2832 if (!super.equalsDeep(other_)) 2833 return false; 2834 if (!(other_ instanceof MeasureReport)) 2835 return false; 2836 MeasureReport o = (MeasureReport) other_; 2837 return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(type, o.type, true) 2838 && compareDeep(measure, o.measure, true) && compareDeep(subject, o.subject, true) && compareDeep(date, o.date, true) 2839 && compareDeep(reporter, o.reporter, true) && compareDeep(period, o.period, true) && compareDeep(improvementNotation, o.improvementNotation, true) 2840 && compareDeep(group, o.group, true) && compareDeep(evaluatedResource, o.evaluatedResource, true) 2841 ; 2842 } 2843 2844 @Override 2845 public boolean equalsShallow(Base other_) { 2846 if (!super.equalsShallow(other_)) 2847 return false; 2848 if (!(other_ instanceof MeasureReport)) 2849 return false; 2850 MeasureReport o = (MeasureReport) other_; 2851 return compareValues(status, o.status, true) && compareValues(type, o.type, true) && compareValues(measure, o.measure, true) 2852 && compareValues(date, o.date, true); 2853 } 2854 2855 public boolean isEmpty() { 2856 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, type 2857 , measure, subject, date, reporter, period, improvementNotation, group, evaluatedResource 2858 ); 2859 } 2860 2861 @Override 2862 public ResourceType getResourceType() { 2863 return ResourceType.MeasureReport; 2864 } 2865 2866 /** 2867 * Search parameter: <b>date</b> 2868 * <p> 2869 * Description: <b>The date of the measure report</b><br> 2870 * Type: <b>date</b><br> 2871 * Path: <b>MeasureReport.date</b><br> 2872 * </p> 2873 */ 2874 @SearchParamDefinition(name="date", path="MeasureReport.date", description="The date of the measure report", type="date" ) 2875 public static final String SP_DATE = "date"; 2876 /** 2877 * <b>Fluent Client</b> search parameter constant for <b>date</b> 2878 * <p> 2879 * Description: <b>The date of the measure report</b><br> 2880 * Type: <b>date</b><br> 2881 * Path: <b>MeasureReport.date</b><br> 2882 * </p> 2883 */ 2884 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 2885 2886 /** 2887 * Search parameter: <b>evaluated-resource</b> 2888 * <p> 2889 * Description: <b>An evaluated resource referenced by the measure report</b><br> 2890 * Type: <b>reference</b><br> 2891 * Path: <b>MeasureReport.evaluatedResource</b><br> 2892 * </p> 2893 */ 2894 @SearchParamDefinition(name="evaluated-resource", path="MeasureReport.evaluatedResource", description="An evaluated resource referenced by the measure report", 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 } ) 2895 public static final String SP_EVALUATED_RESOURCE = "evaluated-resource"; 2896 /** 2897 * <b>Fluent Client</b> search parameter constant for <b>evaluated-resource</b> 2898 * <p> 2899 * Description: <b>An evaluated resource referenced by the measure report</b><br> 2900 * Type: <b>reference</b><br> 2901 * Path: <b>MeasureReport.evaluatedResource</b><br> 2902 * </p> 2903 */ 2904 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam EVALUATED_RESOURCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_EVALUATED_RESOURCE); 2905 2906/** 2907 * Constant for fluent queries to be used to add include statements. Specifies 2908 * the path value of "<b>MeasureReport:evaluated-resource</b>". 2909 */ 2910 public static final ca.uhn.fhir.model.api.Include INCLUDE_EVALUATED_RESOURCE = new ca.uhn.fhir.model.api.Include("MeasureReport:evaluated-resource").toLocked(); 2911 2912 /** 2913 * Search parameter: <b>identifier</b> 2914 * <p> 2915 * Description: <b>External identifier of the measure report to be returned</b><br> 2916 * Type: <b>token</b><br> 2917 * Path: <b>MeasureReport.identifier</b><br> 2918 * </p> 2919 */ 2920 @SearchParamDefinition(name="identifier", path="MeasureReport.identifier", description="External identifier of the measure report to be returned", type="token" ) 2921 public static final String SP_IDENTIFIER = "identifier"; 2922 /** 2923 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 2924 * <p> 2925 * Description: <b>External identifier of the measure report to be returned</b><br> 2926 * Type: <b>token</b><br> 2927 * Path: <b>MeasureReport.identifier</b><br> 2928 * </p> 2929 */ 2930 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 2931 2932 /** 2933 * Search parameter: <b>measure</b> 2934 * <p> 2935 * Description: <b>The measure to return measure report results for</b><br> 2936 * Type: <b>reference</b><br> 2937 * Path: <b>MeasureReport.measure</b><br> 2938 * </p> 2939 */ 2940 @SearchParamDefinition(name="measure", path="MeasureReport.measure", description="The measure to return measure report results for", type="reference", target={Measure.class } ) 2941 public static final String SP_MEASURE = "measure"; 2942 /** 2943 * <b>Fluent Client</b> search parameter constant for <b>measure</b> 2944 * <p> 2945 * Description: <b>The measure to return measure report results for</b><br> 2946 * Type: <b>reference</b><br> 2947 * Path: <b>MeasureReport.measure</b><br> 2948 * </p> 2949 */ 2950 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam MEASURE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_MEASURE); 2951 2952/** 2953 * Constant for fluent queries to be used to add include statements. Specifies 2954 * the path value of "<b>MeasureReport:measure</b>". 2955 */ 2956 public static final ca.uhn.fhir.model.api.Include INCLUDE_MEASURE = new ca.uhn.fhir.model.api.Include("MeasureReport:measure").toLocked(); 2957 2958 /** 2959 * Search parameter: <b>patient</b> 2960 * <p> 2961 * Description: <b>The identity of a patient to search for individual measure report results for</b><br> 2962 * Type: <b>reference</b><br> 2963 * Path: <b>MeasureReport.subject.where(resolve() is Patient)</b><br> 2964 * </p> 2965 */ 2966 @SearchParamDefinition(name="patient", path="MeasureReport.subject.where(resolve() is Patient)", description="The identity of a patient to search for individual measure report results for", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Patient.class } ) 2967 public static final String SP_PATIENT = "patient"; 2968 /** 2969 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 2970 * <p> 2971 * Description: <b>The identity of a patient to search for individual measure report results for</b><br> 2972 * Type: <b>reference</b><br> 2973 * Path: <b>MeasureReport.subject.where(resolve() is Patient)</b><br> 2974 * </p> 2975 */ 2976 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); 2977 2978/** 2979 * Constant for fluent queries to be used to add include statements. Specifies 2980 * the path value of "<b>MeasureReport:patient</b>". 2981 */ 2982 public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("MeasureReport:patient").toLocked(); 2983 2984 /** 2985 * Search parameter: <b>period</b> 2986 * <p> 2987 * Description: <b>The period of the measure report</b><br> 2988 * Type: <b>date</b><br> 2989 * Path: <b>MeasureReport.period</b><br> 2990 * </p> 2991 */ 2992 @SearchParamDefinition(name="period", path="MeasureReport.period", description="The period of the measure report", type="date" ) 2993 public static final String SP_PERIOD = "period"; 2994 /** 2995 * <b>Fluent Client</b> search parameter constant for <b>period</b> 2996 * <p> 2997 * Description: <b>The period of the measure report</b><br> 2998 * Type: <b>date</b><br> 2999 * Path: <b>MeasureReport.period</b><br> 3000 * </p> 3001 */ 3002 public static final ca.uhn.fhir.rest.gclient.DateClientParam PERIOD = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_PERIOD); 3003 3004 /** 3005 * Search parameter: <b>reporter</b> 3006 * <p> 3007 * Description: <b>The reporter to return measure report results for</b><br> 3008 * Type: <b>reference</b><br> 3009 * Path: <b>MeasureReport.reporter</b><br> 3010 * </p> 3011 */ 3012 @SearchParamDefinition(name="reporter", path="MeasureReport.reporter", description="The reporter to return measure report results for", type="reference", target={Location.class, Organization.class, Practitioner.class, PractitionerRole.class } ) 3013 public static final String SP_REPORTER = "reporter"; 3014 /** 3015 * <b>Fluent Client</b> search parameter constant for <b>reporter</b> 3016 * <p> 3017 * Description: <b>The reporter to return measure report results for</b><br> 3018 * Type: <b>reference</b><br> 3019 * Path: <b>MeasureReport.reporter</b><br> 3020 * </p> 3021 */ 3022 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REPORTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REPORTER); 3023 3024/** 3025 * Constant for fluent queries to be used to add include statements. Specifies 3026 * the path value of "<b>MeasureReport:reporter</b>". 3027 */ 3028 public static final ca.uhn.fhir.model.api.Include INCLUDE_REPORTER = new ca.uhn.fhir.model.api.Include("MeasureReport:reporter").toLocked(); 3029 3030 /** 3031 * Search parameter: <b>status</b> 3032 * <p> 3033 * Description: <b>The status of the measure report</b><br> 3034 * Type: <b>token</b><br> 3035 * Path: <b>MeasureReport.status</b><br> 3036 * </p> 3037 */ 3038 @SearchParamDefinition(name="status", path="MeasureReport.status", description="The status of the measure report", type="token" ) 3039 public static final String SP_STATUS = "status"; 3040 /** 3041 * <b>Fluent Client</b> search parameter constant for <b>status</b> 3042 * <p> 3043 * Description: <b>The status of the measure report</b><br> 3044 * Type: <b>token</b><br> 3045 * Path: <b>MeasureReport.status</b><br> 3046 * </p> 3047 */ 3048 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 3049 3050 /** 3051 * Search parameter: <b>subject</b> 3052 * <p> 3053 * Description: <b>The identity of a subject to search for individual measure report results for</b><br> 3054 * Type: <b>reference</b><br> 3055 * Path: <b>MeasureReport.subject</b><br> 3056 * </p> 3057 */ 3058 @SearchParamDefinition(name="subject", path="MeasureReport.subject", description="The identity of a subject to search for individual measure report results for", type="reference", target={Device.class, Group.class, Location.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) 3059 public static final String SP_SUBJECT = "subject"; 3060 /** 3061 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 3062 * <p> 3063 * Description: <b>The identity of a subject to search for individual measure report results for</b><br> 3064 * Type: <b>reference</b><br> 3065 * Path: <b>MeasureReport.subject</b><br> 3066 * </p> 3067 */ 3068 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); 3069 3070/** 3071 * Constant for fluent queries to be used to add include statements. Specifies 3072 * the path value of "<b>MeasureReport:subject</b>". 3073 */ 3074 public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("MeasureReport:subject").toLocked(); 3075 3076 3077} 3078