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