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