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 resource provides eligibility and plan details from the processing of an CoverageEligibilityRequest resource. 072 */ 073@ResourceDef(name="CoverageEligibilityResponse", profile="http://hl7.org/fhir/StructureDefinition/CoverageEligibilityResponse") 074public class CoverageEligibilityResponse extends DomainResource { 075 076 public enum EligibilityResponsePurpose { 077 /** 078 * The prior authorization requirements for the listed, or discovered if specified, converages for the categories of service and/or specifed biling codes are requested. 079 */ 080 AUTHREQUIREMENTS, 081 /** 082 * The plan benefits and optionally benefits consumed for the listed, or discovered if specified, converages are requested. 083 */ 084 BENEFITS, 085 /** 086 * The insurer is requested to report on any coverages which they are aware of in addition to any specifed. 087 */ 088 DISCOVERY, 089 /** 090 * A check that the specified coverages are in-force is requested. 091 */ 092 VALIDATION, 093 /** 094 * added to help the parsers with the generic types 095 */ 096 NULL; 097 public static EligibilityResponsePurpose fromCode(String codeString) throws FHIRException { 098 if (codeString == null || "".equals(codeString)) 099 return null; 100 if ("auth-requirements".equals(codeString)) 101 return AUTHREQUIREMENTS; 102 if ("benefits".equals(codeString)) 103 return BENEFITS; 104 if ("discovery".equals(codeString)) 105 return DISCOVERY; 106 if ("validation".equals(codeString)) 107 return VALIDATION; 108 if (Configuration.isAcceptInvalidEnums()) 109 return null; 110 else 111 throw new FHIRException("Unknown EligibilityResponsePurpose code '"+codeString+"'"); 112 } 113 public String toCode() { 114 switch (this) { 115 case AUTHREQUIREMENTS: return "auth-requirements"; 116 case BENEFITS: return "benefits"; 117 case DISCOVERY: return "discovery"; 118 case VALIDATION: return "validation"; 119 default: return "?"; 120 } 121 } 122 public String getSystem() { 123 switch (this) { 124 case AUTHREQUIREMENTS: return "http://hl7.org/fhir/eligibilityresponse-purpose"; 125 case BENEFITS: return "http://hl7.org/fhir/eligibilityresponse-purpose"; 126 case DISCOVERY: return "http://hl7.org/fhir/eligibilityresponse-purpose"; 127 case VALIDATION: return "http://hl7.org/fhir/eligibilityresponse-purpose"; 128 default: return "?"; 129 } 130 } 131 public String getDefinition() { 132 switch (this) { 133 case AUTHREQUIREMENTS: return "The prior authorization requirements for the listed, or discovered if specified, converages for the categories of service and/or specifed biling codes are requested."; 134 case BENEFITS: return "The plan benefits and optionally benefits consumed for the listed, or discovered if specified, converages are requested."; 135 case DISCOVERY: return "The insurer is requested to report on any coverages which they are aware of in addition to any specifed."; 136 case VALIDATION: return "A check that the specified coverages are in-force is requested."; 137 default: return "?"; 138 } 139 } 140 public String getDisplay() { 141 switch (this) { 142 case AUTHREQUIREMENTS: return "Coverage auth-requirements"; 143 case BENEFITS: return "Coverage benefits"; 144 case DISCOVERY: return "Coverage Discovery"; 145 case VALIDATION: return "Coverage Validation"; 146 default: return "?"; 147 } 148 } 149 } 150 151 public static class EligibilityResponsePurposeEnumFactory implements EnumFactory<EligibilityResponsePurpose> { 152 public EligibilityResponsePurpose fromCode(String codeString) throws IllegalArgumentException { 153 if (codeString == null || "".equals(codeString)) 154 if (codeString == null || "".equals(codeString)) 155 return null; 156 if ("auth-requirements".equals(codeString)) 157 return EligibilityResponsePurpose.AUTHREQUIREMENTS; 158 if ("benefits".equals(codeString)) 159 return EligibilityResponsePurpose.BENEFITS; 160 if ("discovery".equals(codeString)) 161 return EligibilityResponsePurpose.DISCOVERY; 162 if ("validation".equals(codeString)) 163 return EligibilityResponsePurpose.VALIDATION; 164 throw new IllegalArgumentException("Unknown EligibilityResponsePurpose code '"+codeString+"'"); 165 } 166 public Enumeration<EligibilityResponsePurpose> fromType(Base code) throws FHIRException { 167 if (code == null) 168 return null; 169 if (code.isEmpty()) 170 return new Enumeration<EligibilityResponsePurpose>(this); 171 String codeString = ((PrimitiveType) code).asStringValue(); 172 if (codeString == null || "".equals(codeString)) 173 return null; 174 if ("auth-requirements".equals(codeString)) 175 return new Enumeration<EligibilityResponsePurpose>(this, EligibilityResponsePurpose.AUTHREQUIREMENTS); 176 if ("benefits".equals(codeString)) 177 return new Enumeration<EligibilityResponsePurpose>(this, EligibilityResponsePurpose.BENEFITS); 178 if ("discovery".equals(codeString)) 179 return new Enumeration<EligibilityResponsePurpose>(this, EligibilityResponsePurpose.DISCOVERY); 180 if ("validation".equals(codeString)) 181 return new Enumeration<EligibilityResponsePurpose>(this, EligibilityResponsePurpose.VALIDATION); 182 throw new FHIRException("Unknown EligibilityResponsePurpose code '"+codeString+"'"); 183 } 184 public String toCode(EligibilityResponsePurpose code) { 185 if (code == EligibilityResponsePurpose.AUTHREQUIREMENTS) 186 return "auth-requirements"; 187 if (code == EligibilityResponsePurpose.BENEFITS) 188 return "benefits"; 189 if (code == EligibilityResponsePurpose.DISCOVERY) 190 return "discovery"; 191 if (code == EligibilityResponsePurpose.VALIDATION) 192 return "validation"; 193 return "?"; 194 } 195 public String toSystem(EligibilityResponsePurpose code) { 196 return code.getSystem(); 197 } 198 } 199 200 @Block() 201 public static class InsuranceComponent extends BackboneElement implements IBaseBackboneElement { 202 /** 203 * Reference to the insurance card level information contained in the Coverage resource. The coverage issuing insurer will use these details to locate the patient's actual coverage within the insurer's information system. 204 */ 205 @Child(name = "coverage", type = {Coverage.class}, order=1, min=1, max=1, modifier=false, summary=true) 206 @Description(shortDefinition="Insurance information", formalDefinition="Reference to the insurance card level information contained in the Coverage resource. The coverage issuing insurer will use these details to locate the patient's actual coverage within the insurer's information system." ) 207 protected Reference coverage; 208 209 /** 210 * Flag indicating if the coverage provided is inforce currently if no service date(s) specified or for the whole duration of the service dates. 211 */ 212 @Child(name = "inforce", type = {BooleanType.class}, order=2, min=0, max=1, modifier=false, summary=false) 213 @Description(shortDefinition="Coverage inforce indicator", formalDefinition="Flag indicating if the coverage provided is inforce currently if no service date(s) specified or for the whole duration of the service dates." ) 214 protected BooleanType inforce; 215 216 /** 217 * The term of the benefits documented in this response. 218 */ 219 @Child(name = "benefitPeriod", type = {Period.class}, order=3, min=0, max=1, modifier=false, summary=false) 220 @Description(shortDefinition="When the benefits are applicable", formalDefinition="The term of the benefits documented in this response." ) 221 protected Period benefitPeriod; 222 223 /** 224 * Benefits and optionally current balances, and authorization details by category or service. 225 */ 226 @Child(name = "item", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 227 @Description(shortDefinition="Benefits and authorization details", formalDefinition="Benefits and optionally current balances, and authorization details by category or service." ) 228 protected List<ItemsComponent> item; 229 230 private static final long serialVersionUID = 1473928476L; 231 232 /** 233 * Constructor 234 */ 235 public InsuranceComponent() { 236 super(); 237 } 238 239 /** 240 * Constructor 241 */ 242 public InsuranceComponent(Reference coverage) { 243 super(); 244 this.setCoverage(coverage); 245 } 246 247 /** 248 * @return {@link #coverage} (Reference to the insurance card level information contained in the Coverage resource. The coverage issuing insurer will use these details to locate the patient's actual coverage within the insurer's information system.) 249 */ 250 public Reference getCoverage() { 251 if (this.coverage == null) 252 if (Configuration.errorOnAutoCreate()) 253 throw new Error("Attempt to auto-create InsuranceComponent.coverage"); 254 else if (Configuration.doAutoCreate()) 255 this.coverage = new Reference(); // cc 256 return this.coverage; 257 } 258 259 public boolean hasCoverage() { 260 return this.coverage != null && !this.coverage.isEmpty(); 261 } 262 263 /** 264 * @param value {@link #coverage} (Reference to the insurance card level information contained in the Coverage resource. The coverage issuing insurer will use these details to locate the patient's actual coverage within the insurer's information system.) 265 */ 266 public InsuranceComponent setCoverage(Reference value) { 267 this.coverage = value; 268 return this; 269 } 270 271 /** 272 * @return {@link #inforce} (Flag indicating if the coverage provided is inforce currently if no service date(s) specified or for the whole duration of the service dates.). This is the underlying object with id, value and extensions. The accessor "getInforce" gives direct access to the value 273 */ 274 public BooleanType getInforceElement() { 275 if (this.inforce == null) 276 if (Configuration.errorOnAutoCreate()) 277 throw new Error("Attempt to auto-create InsuranceComponent.inforce"); 278 else if (Configuration.doAutoCreate()) 279 this.inforce = new BooleanType(); // bb 280 return this.inforce; 281 } 282 283 public boolean hasInforceElement() { 284 return this.inforce != null && !this.inforce.isEmpty(); 285 } 286 287 public boolean hasInforce() { 288 return this.inforce != null && !this.inforce.isEmpty(); 289 } 290 291 /** 292 * @param value {@link #inforce} (Flag indicating if the coverage provided is inforce currently if no service date(s) specified or for the whole duration of the service dates.). This is the underlying object with id, value and extensions. The accessor "getInforce" gives direct access to the value 293 */ 294 public InsuranceComponent setInforceElement(BooleanType value) { 295 this.inforce = value; 296 return this; 297 } 298 299 /** 300 * @return Flag indicating if the coverage provided is inforce currently if no service date(s) specified or for the whole duration of the service dates. 301 */ 302 public boolean getInforce() { 303 return this.inforce == null || this.inforce.isEmpty() ? false : this.inforce.getValue(); 304 } 305 306 /** 307 * @param value Flag indicating if the coverage provided is inforce currently if no service date(s) specified or for the whole duration of the service dates. 308 */ 309 public InsuranceComponent setInforce(boolean value) { 310 if (this.inforce == null) 311 this.inforce = new BooleanType(); 312 this.inforce.setValue(value); 313 return this; 314 } 315 316 /** 317 * @return {@link #benefitPeriod} (The term of the benefits documented in this response.) 318 */ 319 public Period getBenefitPeriod() { 320 if (this.benefitPeriod == null) 321 if (Configuration.errorOnAutoCreate()) 322 throw new Error("Attempt to auto-create InsuranceComponent.benefitPeriod"); 323 else if (Configuration.doAutoCreate()) 324 this.benefitPeriod = new Period(); // cc 325 return this.benefitPeriod; 326 } 327 328 public boolean hasBenefitPeriod() { 329 return this.benefitPeriod != null && !this.benefitPeriod.isEmpty(); 330 } 331 332 /** 333 * @param value {@link #benefitPeriod} (The term of the benefits documented in this response.) 334 */ 335 public InsuranceComponent setBenefitPeriod(Period value) { 336 this.benefitPeriod = value; 337 return this; 338 } 339 340 /** 341 * @return {@link #item} (Benefits and optionally current balances, and authorization details by category or service.) 342 */ 343 public List<ItemsComponent> getItem() { 344 if (this.item == null) 345 this.item = new ArrayList<ItemsComponent>(); 346 return this.item; 347 } 348 349 /** 350 * @return Returns a reference to <code>this</code> for easy method chaining 351 */ 352 public InsuranceComponent setItem(List<ItemsComponent> theItem) { 353 this.item = theItem; 354 return this; 355 } 356 357 public boolean hasItem() { 358 if (this.item == null) 359 return false; 360 for (ItemsComponent item : this.item) 361 if (!item.isEmpty()) 362 return true; 363 return false; 364 } 365 366 public ItemsComponent addItem() { //3 367 ItemsComponent t = new ItemsComponent(); 368 if (this.item == null) 369 this.item = new ArrayList<ItemsComponent>(); 370 this.item.add(t); 371 return t; 372 } 373 374 public InsuranceComponent addItem(ItemsComponent t) { //3 375 if (t == null) 376 return this; 377 if (this.item == null) 378 this.item = new ArrayList<ItemsComponent>(); 379 this.item.add(t); 380 return this; 381 } 382 383 /** 384 * @return The first repetition of repeating field {@link #item}, creating it if it does not already exist {3} 385 */ 386 public ItemsComponent getItemFirstRep() { 387 if (getItem().isEmpty()) { 388 addItem(); 389 } 390 return getItem().get(0); 391 } 392 393 protected void listChildren(List<Property> children) { 394 super.listChildren(children); 395 children.add(new Property("coverage", "Reference(Coverage)", "Reference to the insurance card level information contained in the Coverage resource. The coverage issuing insurer will use these details to locate the patient's actual coverage within the insurer's information system.", 0, 1, coverage)); 396 children.add(new Property("inforce", "boolean", "Flag indicating if the coverage provided is inforce currently if no service date(s) specified or for the whole duration of the service dates.", 0, 1, inforce)); 397 children.add(new Property("benefitPeriod", "Period", "The term of the benefits documented in this response.", 0, 1, benefitPeriod)); 398 children.add(new Property("item", "", "Benefits and optionally current balances, and authorization details by category or service.", 0, java.lang.Integer.MAX_VALUE, item)); 399 } 400 401 @Override 402 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 403 switch (_hash) { 404 case -351767064: /*coverage*/ return new Property("coverage", "Reference(Coverage)", "Reference to the insurance card level information contained in the Coverage resource. The coverage issuing insurer will use these details to locate the patient's actual coverage within the insurer's information system.", 0, 1, coverage); 405 case 1945431270: /*inforce*/ return new Property("inforce", "boolean", "Flag indicating if the coverage provided is inforce currently if no service date(s) specified or for the whole duration of the service dates.", 0, 1, inforce); 406 case -407369416: /*benefitPeriod*/ return new Property("benefitPeriod", "Period", "The term of the benefits documented in this response.", 0, 1, benefitPeriod); 407 case 3242771: /*item*/ return new Property("item", "", "Benefits and optionally current balances, and authorization details by category or service.", 0, java.lang.Integer.MAX_VALUE, item); 408 default: return super.getNamedProperty(_hash, _name, _checkValid); 409 } 410 411 } 412 413 @Override 414 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 415 switch (hash) { 416 case -351767064: /*coverage*/ return this.coverage == null ? new Base[0] : new Base[] {this.coverage}; // Reference 417 case 1945431270: /*inforce*/ return this.inforce == null ? new Base[0] : new Base[] {this.inforce}; // BooleanType 418 case -407369416: /*benefitPeriod*/ return this.benefitPeriod == null ? new Base[0] : new Base[] {this.benefitPeriod}; // Period 419 case 3242771: /*item*/ return this.item == null ? new Base[0] : this.item.toArray(new Base[this.item.size()]); // ItemsComponent 420 default: return super.getProperty(hash, name, checkValid); 421 } 422 423 } 424 425 @Override 426 public Base setProperty(int hash, String name, Base value) throws FHIRException { 427 switch (hash) { 428 case -351767064: // coverage 429 this.coverage = TypeConvertor.castToReference(value); // Reference 430 return value; 431 case 1945431270: // inforce 432 this.inforce = TypeConvertor.castToBoolean(value); // BooleanType 433 return value; 434 case -407369416: // benefitPeriod 435 this.benefitPeriod = TypeConvertor.castToPeriod(value); // Period 436 return value; 437 case 3242771: // item 438 this.getItem().add((ItemsComponent) value); // ItemsComponent 439 return value; 440 default: return super.setProperty(hash, name, value); 441 } 442 443 } 444 445 @Override 446 public Base setProperty(String name, Base value) throws FHIRException { 447 if (name.equals("coverage")) { 448 this.coverage = TypeConvertor.castToReference(value); // Reference 449 } else if (name.equals("inforce")) { 450 this.inforce = TypeConvertor.castToBoolean(value); // BooleanType 451 } else if (name.equals("benefitPeriod")) { 452 this.benefitPeriod = TypeConvertor.castToPeriod(value); // Period 453 } else if (name.equals("item")) { 454 this.getItem().add((ItemsComponent) value); 455 } else 456 return super.setProperty(name, value); 457 return value; 458 } 459 460 @Override 461 public Base makeProperty(int hash, String name) throws FHIRException { 462 switch (hash) { 463 case -351767064: return getCoverage(); 464 case 1945431270: return getInforceElement(); 465 case -407369416: return getBenefitPeriod(); 466 case 3242771: return addItem(); 467 default: return super.makeProperty(hash, name); 468 } 469 470 } 471 472 @Override 473 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 474 switch (hash) { 475 case -351767064: /*coverage*/ return new String[] {"Reference"}; 476 case 1945431270: /*inforce*/ return new String[] {"boolean"}; 477 case -407369416: /*benefitPeriod*/ return new String[] {"Period"}; 478 case 3242771: /*item*/ return new String[] {}; 479 default: return super.getTypesForProperty(hash, name); 480 } 481 482 } 483 484 @Override 485 public Base addChild(String name) throws FHIRException { 486 if (name.equals("coverage")) { 487 this.coverage = new Reference(); 488 return this.coverage; 489 } 490 else if (name.equals("inforce")) { 491 throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.insurance.inforce"); 492 } 493 else if (name.equals("benefitPeriod")) { 494 this.benefitPeriod = new Period(); 495 return this.benefitPeriod; 496 } 497 else if (name.equals("item")) { 498 return addItem(); 499 } 500 else 501 return super.addChild(name); 502 } 503 504 public InsuranceComponent copy() { 505 InsuranceComponent dst = new InsuranceComponent(); 506 copyValues(dst); 507 return dst; 508 } 509 510 public void copyValues(InsuranceComponent dst) { 511 super.copyValues(dst); 512 dst.coverage = coverage == null ? null : coverage.copy(); 513 dst.inforce = inforce == null ? null : inforce.copy(); 514 dst.benefitPeriod = benefitPeriod == null ? null : benefitPeriod.copy(); 515 if (item != null) { 516 dst.item = new ArrayList<ItemsComponent>(); 517 for (ItemsComponent i : item) 518 dst.item.add(i.copy()); 519 }; 520 } 521 522 @Override 523 public boolean equalsDeep(Base other_) { 524 if (!super.equalsDeep(other_)) 525 return false; 526 if (!(other_ instanceof InsuranceComponent)) 527 return false; 528 InsuranceComponent o = (InsuranceComponent) other_; 529 return compareDeep(coverage, o.coverage, true) && compareDeep(inforce, o.inforce, true) && compareDeep(benefitPeriod, o.benefitPeriod, true) 530 && compareDeep(item, o.item, true); 531 } 532 533 @Override 534 public boolean equalsShallow(Base other_) { 535 if (!super.equalsShallow(other_)) 536 return false; 537 if (!(other_ instanceof InsuranceComponent)) 538 return false; 539 InsuranceComponent o = (InsuranceComponent) other_; 540 return compareValues(inforce, o.inforce, true); 541 } 542 543 public boolean isEmpty() { 544 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(coverage, inforce, benefitPeriod 545 , item); 546 } 547 548 public String fhirType() { 549 return "CoverageEligibilityResponse.insurance"; 550 551 } 552 553 } 554 555 @Block() 556 public static class ItemsComponent extends BackboneElement implements IBaseBackboneElement { 557 /** 558 * Code to identify the general type of benefits under which products and services are provided. 559 */ 560 @Child(name = "category", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) 561 @Description(shortDefinition="Benefit classification", formalDefinition="Code to identify the general type of benefits under which products and services are provided." ) 562 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/ex-benefitcategory") 563 protected CodeableConcept category; 564 565 /** 566 * This contains the product, service, drug or other billing code for the item. 567 */ 568 @Child(name = "productOrService", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) 569 @Description(shortDefinition="Billing, service, product, or drug code", formalDefinition="This contains the product, service, drug or other billing code for the item." ) 570 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/service-uscls") 571 protected CodeableConcept productOrService; 572 573 /** 574 * Item typification or modifiers codes to convey additional context for the product or service. 575 */ 576 @Child(name = "modifier", type = {CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 577 @Description(shortDefinition="Product or service billing modifiers", formalDefinition="Item typification or modifiers codes to convey additional context for the product or service." ) 578 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/claim-modifiers") 579 protected List<CodeableConcept> modifier; 580 581 /** 582 * The practitioner who is eligible for the provision of the product or service. 583 */ 584 @Child(name = "provider", type = {Practitioner.class, PractitionerRole.class}, order=4, min=0, max=1, modifier=false, summary=false) 585 @Description(shortDefinition="Performing practitioner", formalDefinition="The practitioner who is eligible for the provision of the product or service." ) 586 protected Reference provider; 587 588 /** 589 * True if the indicated class of service is excluded from the plan, missing or False indicates the product or service is included in the coverage. 590 */ 591 @Child(name = "excluded", type = {BooleanType.class}, order=5, min=0, max=1, modifier=false, summary=false) 592 @Description(shortDefinition="Excluded from the plan", formalDefinition="True if the indicated class of service is excluded from the plan, missing or False indicates the product or service is included in the coverage." ) 593 protected BooleanType excluded; 594 595 /** 596 * A short name or tag for the benefit. 597 */ 598 @Child(name = "name", type = {StringType.class}, order=6, min=0, max=1, modifier=false, summary=false) 599 @Description(shortDefinition="Short name for the benefit", formalDefinition="A short name or tag for the benefit." ) 600 protected StringType name; 601 602 /** 603 * A richer description of the benefit or services covered. 604 */ 605 @Child(name = "description", type = {StringType.class}, order=7, min=0, max=1, modifier=false, summary=false) 606 @Description(shortDefinition="Description of the benefit or services covered", formalDefinition="A richer description of the benefit or services covered." ) 607 protected StringType description; 608 609 /** 610 * Is a flag to indicate whether the benefits refer to in-network providers or out-of-network providers. 611 */ 612 @Child(name = "network", type = {CodeableConcept.class}, order=8, min=0, max=1, modifier=false, summary=false) 613 @Description(shortDefinition="In or out of network", formalDefinition="Is a flag to indicate whether the benefits refer to in-network providers or out-of-network providers." ) 614 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/benefit-network") 615 protected CodeableConcept network; 616 617 /** 618 * Indicates if the benefits apply to an individual or to the family. 619 */ 620 @Child(name = "unit", type = {CodeableConcept.class}, order=9, min=0, max=1, modifier=false, summary=false) 621 @Description(shortDefinition="Individual or family", formalDefinition="Indicates if the benefits apply to an individual or to the family." ) 622 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/benefit-unit") 623 protected CodeableConcept unit; 624 625 /** 626 * The term or period of the values such as 'maximum lifetime benefit' or 'maximum annual visits'. 627 */ 628 @Child(name = "term", type = {CodeableConcept.class}, order=10, min=0, max=1, modifier=false, summary=false) 629 @Description(shortDefinition="Annual or lifetime", formalDefinition="The term or period of the values such as 'maximum lifetime benefit' or 'maximum annual visits'." ) 630 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/benefit-term") 631 protected CodeableConcept term; 632 633 /** 634 * Benefits used to date. 635 */ 636 @Child(name = "benefit", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 637 @Description(shortDefinition="Benefit Summary", formalDefinition="Benefits used to date." ) 638 protected List<BenefitComponent> benefit; 639 640 /** 641 * A boolean flag indicating whether a preauthorization is required prior to actual service delivery. 642 */ 643 @Child(name = "authorizationRequired", type = {BooleanType.class}, order=12, min=0, max=1, modifier=false, summary=false) 644 @Description(shortDefinition="Authorization required flag", formalDefinition="A boolean flag indicating whether a preauthorization is required prior to actual service delivery." ) 645 protected BooleanType authorizationRequired; 646 647 /** 648 * Codes or comments regarding information or actions associated with the preauthorization. 649 */ 650 @Child(name = "authorizationSupporting", type = {CodeableConcept.class}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 651 @Description(shortDefinition="Type of required supporting materials", formalDefinition="Codes or comments regarding information or actions associated with the preauthorization." ) 652 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/coverageeligibilityresponse-ex-auth-support") 653 protected List<CodeableConcept> authorizationSupporting; 654 655 /** 656 * A web location for obtaining requirements or descriptive information regarding the preauthorization. 657 */ 658 @Child(name = "authorizationUrl", type = {UriType.class}, order=14, min=0, max=1, modifier=false, summary=false) 659 @Description(shortDefinition="Preauthorization requirements endpoint", formalDefinition="A web location for obtaining requirements or descriptive information regarding the preauthorization." ) 660 protected UriType authorizationUrl; 661 662 private static final long serialVersionUID = 1706159945L; 663 664 /** 665 * Constructor 666 */ 667 public ItemsComponent() { 668 super(); 669 } 670 671 /** 672 * @return {@link #category} (Code to identify the general type of benefits under which products and services are provided.) 673 */ 674 public CodeableConcept getCategory() { 675 if (this.category == null) 676 if (Configuration.errorOnAutoCreate()) 677 throw new Error("Attempt to auto-create ItemsComponent.category"); 678 else if (Configuration.doAutoCreate()) 679 this.category = new CodeableConcept(); // cc 680 return this.category; 681 } 682 683 public boolean hasCategory() { 684 return this.category != null && !this.category.isEmpty(); 685 } 686 687 /** 688 * @param value {@link #category} (Code to identify the general type of benefits under which products and services are provided.) 689 */ 690 public ItemsComponent setCategory(CodeableConcept value) { 691 this.category = value; 692 return this; 693 } 694 695 /** 696 * @return {@link #productOrService} (This contains the product, service, drug or other billing code for the item.) 697 */ 698 public CodeableConcept getProductOrService() { 699 if (this.productOrService == null) 700 if (Configuration.errorOnAutoCreate()) 701 throw new Error("Attempt to auto-create ItemsComponent.productOrService"); 702 else if (Configuration.doAutoCreate()) 703 this.productOrService = new CodeableConcept(); // cc 704 return this.productOrService; 705 } 706 707 public boolean hasProductOrService() { 708 return this.productOrService != null && !this.productOrService.isEmpty(); 709 } 710 711 /** 712 * @param value {@link #productOrService} (This contains the product, service, drug or other billing code for the item.) 713 */ 714 public ItemsComponent setProductOrService(CodeableConcept value) { 715 this.productOrService = value; 716 return this; 717 } 718 719 /** 720 * @return {@link #modifier} (Item typification or modifiers codes to convey additional context for the product or service.) 721 */ 722 public List<CodeableConcept> getModifier() { 723 if (this.modifier == null) 724 this.modifier = new ArrayList<CodeableConcept>(); 725 return this.modifier; 726 } 727 728 /** 729 * @return Returns a reference to <code>this</code> for easy method chaining 730 */ 731 public ItemsComponent setModifier(List<CodeableConcept> theModifier) { 732 this.modifier = theModifier; 733 return this; 734 } 735 736 public boolean hasModifier() { 737 if (this.modifier == null) 738 return false; 739 for (CodeableConcept item : this.modifier) 740 if (!item.isEmpty()) 741 return true; 742 return false; 743 } 744 745 public CodeableConcept addModifier() { //3 746 CodeableConcept t = new CodeableConcept(); 747 if (this.modifier == null) 748 this.modifier = new ArrayList<CodeableConcept>(); 749 this.modifier.add(t); 750 return t; 751 } 752 753 public ItemsComponent addModifier(CodeableConcept t) { //3 754 if (t == null) 755 return this; 756 if (this.modifier == null) 757 this.modifier = new ArrayList<CodeableConcept>(); 758 this.modifier.add(t); 759 return this; 760 } 761 762 /** 763 * @return The first repetition of repeating field {@link #modifier}, creating it if it does not already exist {3} 764 */ 765 public CodeableConcept getModifierFirstRep() { 766 if (getModifier().isEmpty()) { 767 addModifier(); 768 } 769 return getModifier().get(0); 770 } 771 772 /** 773 * @return {@link #provider} (The practitioner who is eligible for the provision of the product or service.) 774 */ 775 public Reference getProvider() { 776 if (this.provider == null) 777 if (Configuration.errorOnAutoCreate()) 778 throw new Error("Attempt to auto-create ItemsComponent.provider"); 779 else if (Configuration.doAutoCreate()) 780 this.provider = new Reference(); // cc 781 return this.provider; 782 } 783 784 public boolean hasProvider() { 785 return this.provider != null && !this.provider.isEmpty(); 786 } 787 788 /** 789 * @param value {@link #provider} (The practitioner who is eligible for the provision of the product or service.) 790 */ 791 public ItemsComponent setProvider(Reference value) { 792 this.provider = value; 793 return this; 794 } 795 796 /** 797 * @return {@link #excluded} (True if the indicated class of service is excluded from the plan, missing or False indicates the product or service is included in the coverage.). This is the underlying object with id, value and extensions. The accessor "getExcluded" gives direct access to the value 798 */ 799 public BooleanType getExcludedElement() { 800 if (this.excluded == null) 801 if (Configuration.errorOnAutoCreate()) 802 throw new Error("Attempt to auto-create ItemsComponent.excluded"); 803 else if (Configuration.doAutoCreate()) 804 this.excluded = new BooleanType(); // bb 805 return this.excluded; 806 } 807 808 public boolean hasExcludedElement() { 809 return this.excluded != null && !this.excluded.isEmpty(); 810 } 811 812 public boolean hasExcluded() { 813 return this.excluded != null && !this.excluded.isEmpty(); 814 } 815 816 /** 817 * @param value {@link #excluded} (True if the indicated class of service is excluded from the plan, missing or False indicates the product or service is included in the coverage.). This is the underlying object with id, value and extensions. The accessor "getExcluded" gives direct access to the value 818 */ 819 public ItemsComponent setExcludedElement(BooleanType value) { 820 this.excluded = value; 821 return this; 822 } 823 824 /** 825 * @return True if the indicated class of service is excluded from the plan, missing or False indicates the product or service is included in the coverage. 826 */ 827 public boolean getExcluded() { 828 return this.excluded == null || this.excluded.isEmpty() ? false : this.excluded.getValue(); 829 } 830 831 /** 832 * @param value True if the indicated class of service is excluded from the plan, missing or False indicates the product or service is included in the coverage. 833 */ 834 public ItemsComponent setExcluded(boolean value) { 835 if (this.excluded == null) 836 this.excluded = new BooleanType(); 837 this.excluded.setValue(value); 838 return this; 839 } 840 841 /** 842 * @return {@link #name} (A short name or tag for the benefit.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 843 */ 844 public StringType getNameElement() { 845 if (this.name == null) 846 if (Configuration.errorOnAutoCreate()) 847 throw new Error("Attempt to auto-create ItemsComponent.name"); 848 else if (Configuration.doAutoCreate()) 849 this.name = new StringType(); // bb 850 return this.name; 851 } 852 853 public boolean hasNameElement() { 854 return this.name != null && !this.name.isEmpty(); 855 } 856 857 public boolean hasName() { 858 return this.name != null && !this.name.isEmpty(); 859 } 860 861 /** 862 * @param value {@link #name} (A short name or tag for the benefit.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 863 */ 864 public ItemsComponent setNameElement(StringType value) { 865 this.name = value; 866 return this; 867 } 868 869 /** 870 * @return A short name or tag for the benefit. 871 */ 872 public String getName() { 873 return this.name == null ? null : this.name.getValue(); 874 } 875 876 /** 877 * @param value A short name or tag for the benefit. 878 */ 879 public ItemsComponent setName(String value) { 880 if (Utilities.noString(value)) 881 this.name = null; 882 else { 883 if (this.name == null) 884 this.name = new StringType(); 885 this.name.setValue(value); 886 } 887 return this; 888 } 889 890 /** 891 * @return {@link #description} (A richer description of the benefit or services covered.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 892 */ 893 public StringType getDescriptionElement() { 894 if (this.description == null) 895 if (Configuration.errorOnAutoCreate()) 896 throw new Error("Attempt to auto-create ItemsComponent.description"); 897 else if (Configuration.doAutoCreate()) 898 this.description = new StringType(); // bb 899 return this.description; 900 } 901 902 public boolean hasDescriptionElement() { 903 return this.description != null && !this.description.isEmpty(); 904 } 905 906 public boolean hasDescription() { 907 return this.description != null && !this.description.isEmpty(); 908 } 909 910 /** 911 * @param value {@link #description} (A richer description of the benefit or services covered.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 912 */ 913 public ItemsComponent setDescriptionElement(StringType value) { 914 this.description = value; 915 return this; 916 } 917 918 /** 919 * @return A richer description of the benefit or services covered. 920 */ 921 public String getDescription() { 922 return this.description == null ? null : this.description.getValue(); 923 } 924 925 /** 926 * @param value A richer description of the benefit or services covered. 927 */ 928 public ItemsComponent setDescription(String value) { 929 if (Utilities.noString(value)) 930 this.description = null; 931 else { 932 if (this.description == null) 933 this.description = new StringType(); 934 this.description.setValue(value); 935 } 936 return this; 937 } 938 939 /** 940 * @return {@link #network} (Is a flag to indicate whether the benefits refer to in-network providers or out-of-network providers.) 941 */ 942 public CodeableConcept getNetwork() { 943 if (this.network == null) 944 if (Configuration.errorOnAutoCreate()) 945 throw new Error("Attempt to auto-create ItemsComponent.network"); 946 else if (Configuration.doAutoCreate()) 947 this.network = new CodeableConcept(); // cc 948 return this.network; 949 } 950 951 public boolean hasNetwork() { 952 return this.network != null && !this.network.isEmpty(); 953 } 954 955 /** 956 * @param value {@link #network} (Is a flag to indicate whether the benefits refer to in-network providers or out-of-network providers.) 957 */ 958 public ItemsComponent setNetwork(CodeableConcept value) { 959 this.network = value; 960 return this; 961 } 962 963 /** 964 * @return {@link #unit} (Indicates if the benefits apply to an individual or to the family.) 965 */ 966 public CodeableConcept getUnit() { 967 if (this.unit == null) 968 if (Configuration.errorOnAutoCreate()) 969 throw new Error("Attempt to auto-create ItemsComponent.unit"); 970 else if (Configuration.doAutoCreate()) 971 this.unit = new CodeableConcept(); // cc 972 return this.unit; 973 } 974 975 public boolean hasUnit() { 976 return this.unit != null && !this.unit.isEmpty(); 977 } 978 979 /** 980 * @param value {@link #unit} (Indicates if the benefits apply to an individual or to the family.) 981 */ 982 public ItemsComponent setUnit(CodeableConcept value) { 983 this.unit = value; 984 return this; 985 } 986 987 /** 988 * @return {@link #term} (The term or period of the values such as 'maximum lifetime benefit' or 'maximum annual visits'.) 989 */ 990 public CodeableConcept getTerm() { 991 if (this.term == null) 992 if (Configuration.errorOnAutoCreate()) 993 throw new Error("Attempt to auto-create ItemsComponent.term"); 994 else if (Configuration.doAutoCreate()) 995 this.term = new CodeableConcept(); // cc 996 return this.term; 997 } 998 999 public boolean hasTerm() { 1000 return this.term != null && !this.term.isEmpty(); 1001 } 1002 1003 /** 1004 * @param value {@link #term} (The term or period of the values such as 'maximum lifetime benefit' or 'maximum annual visits'.) 1005 */ 1006 public ItemsComponent setTerm(CodeableConcept value) { 1007 this.term = value; 1008 return this; 1009 } 1010 1011 /** 1012 * @return {@link #benefit} (Benefits used to date.) 1013 */ 1014 public List<BenefitComponent> getBenefit() { 1015 if (this.benefit == null) 1016 this.benefit = new ArrayList<BenefitComponent>(); 1017 return this.benefit; 1018 } 1019 1020 /** 1021 * @return Returns a reference to <code>this</code> for easy method chaining 1022 */ 1023 public ItemsComponent setBenefit(List<BenefitComponent> theBenefit) { 1024 this.benefit = theBenefit; 1025 return this; 1026 } 1027 1028 public boolean hasBenefit() { 1029 if (this.benefit == null) 1030 return false; 1031 for (BenefitComponent item : this.benefit) 1032 if (!item.isEmpty()) 1033 return true; 1034 return false; 1035 } 1036 1037 public BenefitComponent addBenefit() { //3 1038 BenefitComponent t = new BenefitComponent(); 1039 if (this.benefit == null) 1040 this.benefit = new ArrayList<BenefitComponent>(); 1041 this.benefit.add(t); 1042 return t; 1043 } 1044 1045 public ItemsComponent addBenefit(BenefitComponent t) { //3 1046 if (t == null) 1047 return this; 1048 if (this.benefit == null) 1049 this.benefit = new ArrayList<BenefitComponent>(); 1050 this.benefit.add(t); 1051 return this; 1052 } 1053 1054 /** 1055 * @return The first repetition of repeating field {@link #benefit}, creating it if it does not already exist {3} 1056 */ 1057 public BenefitComponent getBenefitFirstRep() { 1058 if (getBenefit().isEmpty()) { 1059 addBenefit(); 1060 } 1061 return getBenefit().get(0); 1062 } 1063 1064 /** 1065 * @return {@link #authorizationRequired} (A boolean flag indicating whether a preauthorization is required prior to actual service delivery.). This is the underlying object with id, value and extensions. The accessor "getAuthorizationRequired" gives direct access to the value 1066 */ 1067 public BooleanType getAuthorizationRequiredElement() { 1068 if (this.authorizationRequired == null) 1069 if (Configuration.errorOnAutoCreate()) 1070 throw new Error("Attempt to auto-create ItemsComponent.authorizationRequired"); 1071 else if (Configuration.doAutoCreate()) 1072 this.authorizationRequired = new BooleanType(); // bb 1073 return this.authorizationRequired; 1074 } 1075 1076 public boolean hasAuthorizationRequiredElement() { 1077 return this.authorizationRequired != null && !this.authorizationRequired.isEmpty(); 1078 } 1079 1080 public boolean hasAuthorizationRequired() { 1081 return this.authorizationRequired != null && !this.authorizationRequired.isEmpty(); 1082 } 1083 1084 /** 1085 * @param value {@link #authorizationRequired} (A boolean flag indicating whether a preauthorization is required prior to actual service delivery.). This is the underlying object with id, value and extensions. The accessor "getAuthorizationRequired" gives direct access to the value 1086 */ 1087 public ItemsComponent setAuthorizationRequiredElement(BooleanType value) { 1088 this.authorizationRequired = value; 1089 return this; 1090 } 1091 1092 /** 1093 * @return A boolean flag indicating whether a preauthorization is required prior to actual service delivery. 1094 */ 1095 public boolean getAuthorizationRequired() { 1096 return this.authorizationRequired == null || this.authorizationRequired.isEmpty() ? false : this.authorizationRequired.getValue(); 1097 } 1098 1099 /** 1100 * @param value A boolean flag indicating whether a preauthorization is required prior to actual service delivery. 1101 */ 1102 public ItemsComponent setAuthorizationRequired(boolean value) { 1103 if (this.authorizationRequired == null) 1104 this.authorizationRequired = new BooleanType(); 1105 this.authorizationRequired.setValue(value); 1106 return this; 1107 } 1108 1109 /** 1110 * @return {@link #authorizationSupporting} (Codes or comments regarding information or actions associated with the preauthorization.) 1111 */ 1112 public List<CodeableConcept> getAuthorizationSupporting() { 1113 if (this.authorizationSupporting == null) 1114 this.authorizationSupporting = new ArrayList<CodeableConcept>(); 1115 return this.authorizationSupporting; 1116 } 1117 1118 /** 1119 * @return Returns a reference to <code>this</code> for easy method chaining 1120 */ 1121 public ItemsComponent setAuthorizationSupporting(List<CodeableConcept> theAuthorizationSupporting) { 1122 this.authorizationSupporting = theAuthorizationSupporting; 1123 return this; 1124 } 1125 1126 public boolean hasAuthorizationSupporting() { 1127 if (this.authorizationSupporting == null) 1128 return false; 1129 for (CodeableConcept item : this.authorizationSupporting) 1130 if (!item.isEmpty()) 1131 return true; 1132 return false; 1133 } 1134 1135 public CodeableConcept addAuthorizationSupporting() { //3 1136 CodeableConcept t = new CodeableConcept(); 1137 if (this.authorizationSupporting == null) 1138 this.authorizationSupporting = new ArrayList<CodeableConcept>(); 1139 this.authorizationSupporting.add(t); 1140 return t; 1141 } 1142 1143 public ItemsComponent addAuthorizationSupporting(CodeableConcept t) { //3 1144 if (t == null) 1145 return this; 1146 if (this.authorizationSupporting == null) 1147 this.authorizationSupporting = new ArrayList<CodeableConcept>(); 1148 this.authorizationSupporting.add(t); 1149 return this; 1150 } 1151 1152 /** 1153 * @return The first repetition of repeating field {@link #authorizationSupporting}, creating it if it does not already exist {3} 1154 */ 1155 public CodeableConcept getAuthorizationSupportingFirstRep() { 1156 if (getAuthorizationSupporting().isEmpty()) { 1157 addAuthorizationSupporting(); 1158 } 1159 return getAuthorizationSupporting().get(0); 1160 } 1161 1162 /** 1163 * @return {@link #authorizationUrl} (A web location for obtaining requirements or descriptive information regarding the preauthorization.). This is the underlying object with id, value and extensions. The accessor "getAuthorizationUrl" gives direct access to the value 1164 */ 1165 public UriType getAuthorizationUrlElement() { 1166 if (this.authorizationUrl == null) 1167 if (Configuration.errorOnAutoCreate()) 1168 throw new Error("Attempt to auto-create ItemsComponent.authorizationUrl"); 1169 else if (Configuration.doAutoCreate()) 1170 this.authorizationUrl = new UriType(); // bb 1171 return this.authorizationUrl; 1172 } 1173 1174 public boolean hasAuthorizationUrlElement() { 1175 return this.authorizationUrl != null && !this.authorizationUrl.isEmpty(); 1176 } 1177 1178 public boolean hasAuthorizationUrl() { 1179 return this.authorizationUrl != null && !this.authorizationUrl.isEmpty(); 1180 } 1181 1182 /** 1183 * @param value {@link #authorizationUrl} (A web location for obtaining requirements or descriptive information regarding the preauthorization.). This is the underlying object with id, value and extensions. The accessor "getAuthorizationUrl" gives direct access to the value 1184 */ 1185 public ItemsComponent setAuthorizationUrlElement(UriType value) { 1186 this.authorizationUrl = value; 1187 return this; 1188 } 1189 1190 /** 1191 * @return A web location for obtaining requirements or descriptive information regarding the preauthorization. 1192 */ 1193 public String getAuthorizationUrl() { 1194 return this.authorizationUrl == null ? null : this.authorizationUrl.getValue(); 1195 } 1196 1197 /** 1198 * @param value A web location for obtaining requirements or descriptive information regarding the preauthorization. 1199 */ 1200 public ItemsComponent setAuthorizationUrl(String value) { 1201 if (Utilities.noString(value)) 1202 this.authorizationUrl = null; 1203 else { 1204 if (this.authorizationUrl == null) 1205 this.authorizationUrl = new UriType(); 1206 this.authorizationUrl.setValue(value); 1207 } 1208 return this; 1209 } 1210 1211 protected void listChildren(List<Property> children) { 1212 super.listChildren(children); 1213 children.add(new Property("category", "CodeableConcept", "Code to identify the general type of benefits under which products and services are provided.", 0, 1, category)); 1214 children.add(new Property("productOrService", "CodeableConcept", "This contains the product, service, drug or other billing code for the item.", 0, 1, productOrService)); 1215 children.add(new Property("modifier", "CodeableConcept", "Item typification or modifiers codes to convey additional context for the product or service.", 0, java.lang.Integer.MAX_VALUE, modifier)); 1216 children.add(new Property("provider", "Reference(Practitioner|PractitionerRole)", "The practitioner who is eligible for the provision of the product or service.", 0, 1, provider)); 1217 children.add(new Property("excluded", "boolean", "True if the indicated class of service is excluded from the plan, missing or False indicates the product or service is included in the coverage.", 0, 1, excluded)); 1218 children.add(new Property("name", "string", "A short name or tag for the benefit.", 0, 1, name)); 1219 children.add(new Property("description", "string", "A richer description of the benefit or services covered.", 0, 1, description)); 1220 children.add(new Property("network", "CodeableConcept", "Is a flag to indicate whether the benefits refer to in-network providers or out-of-network providers.", 0, 1, network)); 1221 children.add(new Property("unit", "CodeableConcept", "Indicates if the benefits apply to an individual or to the family.", 0, 1, unit)); 1222 children.add(new Property("term", "CodeableConcept", "The term or period of the values such as 'maximum lifetime benefit' or 'maximum annual visits'.", 0, 1, term)); 1223 children.add(new Property("benefit", "", "Benefits used to date.", 0, java.lang.Integer.MAX_VALUE, benefit)); 1224 children.add(new Property("authorizationRequired", "boolean", "A boolean flag indicating whether a preauthorization is required prior to actual service delivery.", 0, 1, authorizationRequired)); 1225 children.add(new Property("authorizationSupporting", "CodeableConcept", "Codes or comments regarding information or actions associated with the preauthorization.", 0, java.lang.Integer.MAX_VALUE, authorizationSupporting)); 1226 children.add(new Property("authorizationUrl", "uri", "A web location for obtaining requirements or descriptive information regarding the preauthorization.", 0, 1, authorizationUrl)); 1227 } 1228 1229 @Override 1230 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1231 switch (_hash) { 1232 case 50511102: /*category*/ return new Property("category", "CodeableConcept", "Code to identify the general type of benefits under which products and services are provided.", 0, 1, category); 1233 case 1957227299: /*productOrService*/ return new Property("productOrService", "CodeableConcept", "This contains the product, service, drug or other billing code for the item.", 0, 1, productOrService); 1234 case -615513385: /*modifier*/ return new Property("modifier", "CodeableConcept", "Item typification or modifiers codes to convey additional context for the product or service.", 0, java.lang.Integer.MAX_VALUE, modifier); 1235 case -987494927: /*provider*/ return new Property("provider", "Reference(Practitioner|PractitionerRole)", "The practitioner who is eligible for the provision of the product or service.", 0, 1, provider); 1236 case 1994055114: /*excluded*/ return new Property("excluded", "boolean", "True if the indicated class of service is excluded from the plan, missing or False indicates the product or service is included in the coverage.", 0, 1, excluded); 1237 case 3373707: /*name*/ return new Property("name", "string", "A short name or tag for the benefit.", 0, 1, name); 1238 case -1724546052: /*description*/ return new Property("description", "string", "A richer description of the benefit or services covered.", 0, 1, description); 1239 case 1843485230: /*network*/ return new Property("network", "CodeableConcept", "Is a flag to indicate whether the benefits refer to in-network providers or out-of-network providers.", 0, 1, network); 1240 case 3594628: /*unit*/ return new Property("unit", "CodeableConcept", "Indicates if the benefits apply to an individual or to the family.", 0, 1, unit); 1241 case 3556460: /*term*/ return new Property("term", "CodeableConcept", "The term or period of the values such as 'maximum lifetime benefit' or 'maximum annual visits'.", 0, 1, term); 1242 case -222710633: /*benefit*/ return new Property("benefit", "", "Benefits used to date.", 0, java.lang.Integer.MAX_VALUE, benefit); 1243 case 374204216: /*authorizationRequired*/ return new Property("authorizationRequired", "boolean", "A boolean flag indicating whether a preauthorization is required prior to actual service delivery.", 0, 1, authorizationRequired); 1244 case -1931146484: /*authorizationSupporting*/ return new Property("authorizationSupporting", "CodeableConcept", "Codes or comments regarding information or actions associated with the preauthorization.", 0, java.lang.Integer.MAX_VALUE, authorizationSupporting); 1245 case 1409445430: /*authorizationUrl*/ return new Property("authorizationUrl", "uri", "A web location for obtaining requirements or descriptive information regarding the preauthorization.", 0, 1, authorizationUrl); 1246 default: return super.getNamedProperty(_hash, _name, _checkValid); 1247 } 1248 1249 } 1250 1251 @Override 1252 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1253 switch (hash) { 1254 case 50511102: /*category*/ return this.category == null ? new Base[0] : new Base[] {this.category}; // CodeableConcept 1255 case 1957227299: /*productOrService*/ return this.productOrService == null ? new Base[0] : new Base[] {this.productOrService}; // CodeableConcept 1256 case -615513385: /*modifier*/ return this.modifier == null ? new Base[0] : this.modifier.toArray(new Base[this.modifier.size()]); // CodeableConcept 1257 case -987494927: /*provider*/ return this.provider == null ? new Base[0] : new Base[] {this.provider}; // Reference 1258 case 1994055114: /*excluded*/ return this.excluded == null ? new Base[0] : new Base[] {this.excluded}; // BooleanType 1259 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType 1260 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType 1261 case 1843485230: /*network*/ return this.network == null ? new Base[0] : new Base[] {this.network}; // CodeableConcept 1262 case 3594628: /*unit*/ return this.unit == null ? new Base[0] : new Base[] {this.unit}; // CodeableConcept 1263 case 3556460: /*term*/ return this.term == null ? new Base[0] : new Base[] {this.term}; // CodeableConcept 1264 case -222710633: /*benefit*/ return this.benefit == null ? new Base[0] : this.benefit.toArray(new Base[this.benefit.size()]); // BenefitComponent 1265 case 374204216: /*authorizationRequired*/ return this.authorizationRequired == null ? new Base[0] : new Base[] {this.authorizationRequired}; // BooleanType 1266 case -1931146484: /*authorizationSupporting*/ return this.authorizationSupporting == null ? new Base[0] : this.authorizationSupporting.toArray(new Base[this.authorizationSupporting.size()]); // CodeableConcept 1267 case 1409445430: /*authorizationUrl*/ return this.authorizationUrl == null ? new Base[0] : new Base[] {this.authorizationUrl}; // UriType 1268 default: return super.getProperty(hash, name, checkValid); 1269 } 1270 1271 } 1272 1273 @Override 1274 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1275 switch (hash) { 1276 case 50511102: // category 1277 this.category = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1278 return value; 1279 case 1957227299: // productOrService 1280 this.productOrService = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1281 return value; 1282 case -615513385: // modifier 1283 this.getModifier().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 1284 return value; 1285 case -987494927: // provider 1286 this.provider = TypeConvertor.castToReference(value); // Reference 1287 return value; 1288 case 1994055114: // excluded 1289 this.excluded = TypeConvertor.castToBoolean(value); // BooleanType 1290 return value; 1291 case 3373707: // name 1292 this.name = TypeConvertor.castToString(value); // StringType 1293 return value; 1294 case -1724546052: // description 1295 this.description = TypeConvertor.castToString(value); // StringType 1296 return value; 1297 case 1843485230: // network 1298 this.network = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1299 return value; 1300 case 3594628: // unit 1301 this.unit = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1302 return value; 1303 case 3556460: // term 1304 this.term = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1305 return value; 1306 case -222710633: // benefit 1307 this.getBenefit().add((BenefitComponent) value); // BenefitComponent 1308 return value; 1309 case 374204216: // authorizationRequired 1310 this.authorizationRequired = TypeConvertor.castToBoolean(value); // BooleanType 1311 return value; 1312 case -1931146484: // authorizationSupporting 1313 this.getAuthorizationSupporting().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 1314 return value; 1315 case 1409445430: // authorizationUrl 1316 this.authorizationUrl = TypeConvertor.castToUri(value); // UriType 1317 return value; 1318 default: return super.setProperty(hash, name, value); 1319 } 1320 1321 } 1322 1323 @Override 1324 public Base setProperty(String name, Base value) throws FHIRException { 1325 if (name.equals("category")) { 1326 this.category = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1327 } else if (name.equals("productOrService")) { 1328 this.productOrService = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1329 } else if (name.equals("modifier")) { 1330 this.getModifier().add(TypeConvertor.castToCodeableConcept(value)); 1331 } else if (name.equals("provider")) { 1332 this.provider = TypeConvertor.castToReference(value); // Reference 1333 } else if (name.equals("excluded")) { 1334 this.excluded = TypeConvertor.castToBoolean(value); // BooleanType 1335 } else if (name.equals("name")) { 1336 this.name = TypeConvertor.castToString(value); // StringType 1337 } else if (name.equals("description")) { 1338 this.description = TypeConvertor.castToString(value); // StringType 1339 } else if (name.equals("network")) { 1340 this.network = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1341 } else if (name.equals("unit")) { 1342 this.unit = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1343 } else if (name.equals("term")) { 1344 this.term = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1345 } else if (name.equals("benefit")) { 1346 this.getBenefit().add((BenefitComponent) value); 1347 } else if (name.equals("authorizationRequired")) { 1348 this.authorizationRequired = TypeConvertor.castToBoolean(value); // BooleanType 1349 } else if (name.equals("authorizationSupporting")) { 1350 this.getAuthorizationSupporting().add(TypeConvertor.castToCodeableConcept(value)); 1351 } else if (name.equals("authorizationUrl")) { 1352 this.authorizationUrl = TypeConvertor.castToUri(value); // UriType 1353 } else 1354 return super.setProperty(name, value); 1355 return value; 1356 } 1357 1358 @Override 1359 public Base makeProperty(int hash, String name) throws FHIRException { 1360 switch (hash) { 1361 case 50511102: return getCategory(); 1362 case 1957227299: return getProductOrService(); 1363 case -615513385: return addModifier(); 1364 case -987494927: return getProvider(); 1365 case 1994055114: return getExcludedElement(); 1366 case 3373707: return getNameElement(); 1367 case -1724546052: return getDescriptionElement(); 1368 case 1843485230: return getNetwork(); 1369 case 3594628: return getUnit(); 1370 case 3556460: return getTerm(); 1371 case -222710633: return addBenefit(); 1372 case 374204216: return getAuthorizationRequiredElement(); 1373 case -1931146484: return addAuthorizationSupporting(); 1374 case 1409445430: return getAuthorizationUrlElement(); 1375 default: return super.makeProperty(hash, name); 1376 } 1377 1378 } 1379 1380 @Override 1381 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1382 switch (hash) { 1383 case 50511102: /*category*/ return new String[] {"CodeableConcept"}; 1384 case 1957227299: /*productOrService*/ return new String[] {"CodeableConcept"}; 1385 case -615513385: /*modifier*/ return new String[] {"CodeableConcept"}; 1386 case -987494927: /*provider*/ return new String[] {"Reference"}; 1387 case 1994055114: /*excluded*/ return new String[] {"boolean"}; 1388 case 3373707: /*name*/ return new String[] {"string"}; 1389 case -1724546052: /*description*/ return new String[] {"string"}; 1390 case 1843485230: /*network*/ return new String[] {"CodeableConcept"}; 1391 case 3594628: /*unit*/ return new String[] {"CodeableConcept"}; 1392 case 3556460: /*term*/ return new String[] {"CodeableConcept"}; 1393 case -222710633: /*benefit*/ return new String[] {}; 1394 case 374204216: /*authorizationRequired*/ return new String[] {"boolean"}; 1395 case -1931146484: /*authorizationSupporting*/ return new String[] {"CodeableConcept"}; 1396 case 1409445430: /*authorizationUrl*/ return new String[] {"uri"}; 1397 default: return super.getTypesForProperty(hash, name); 1398 } 1399 1400 } 1401 1402 @Override 1403 public Base addChild(String name) throws FHIRException { 1404 if (name.equals("category")) { 1405 this.category = new CodeableConcept(); 1406 return this.category; 1407 } 1408 else if (name.equals("productOrService")) { 1409 this.productOrService = new CodeableConcept(); 1410 return this.productOrService; 1411 } 1412 else if (name.equals("modifier")) { 1413 return addModifier(); 1414 } 1415 else if (name.equals("provider")) { 1416 this.provider = new Reference(); 1417 return this.provider; 1418 } 1419 else if (name.equals("excluded")) { 1420 throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.insurance.item.excluded"); 1421 } 1422 else if (name.equals("name")) { 1423 throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.insurance.item.name"); 1424 } 1425 else if (name.equals("description")) { 1426 throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.insurance.item.description"); 1427 } 1428 else if (name.equals("network")) { 1429 this.network = new CodeableConcept(); 1430 return this.network; 1431 } 1432 else if (name.equals("unit")) { 1433 this.unit = new CodeableConcept(); 1434 return this.unit; 1435 } 1436 else if (name.equals("term")) { 1437 this.term = new CodeableConcept(); 1438 return this.term; 1439 } 1440 else if (name.equals("benefit")) { 1441 return addBenefit(); 1442 } 1443 else if (name.equals("authorizationRequired")) { 1444 throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.insurance.item.authorizationRequired"); 1445 } 1446 else if (name.equals("authorizationSupporting")) { 1447 return addAuthorizationSupporting(); 1448 } 1449 else if (name.equals("authorizationUrl")) { 1450 throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.insurance.item.authorizationUrl"); 1451 } 1452 else 1453 return super.addChild(name); 1454 } 1455 1456 public ItemsComponent copy() { 1457 ItemsComponent dst = new ItemsComponent(); 1458 copyValues(dst); 1459 return dst; 1460 } 1461 1462 public void copyValues(ItemsComponent dst) { 1463 super.copyValues(dst); 1464 dst.category = category == null ? null : category.copy(); 1465 dst.productOrService = productOrService == null ? null : productOrService.copy(); 1466 if (modifier != null) { 1467 dst.modifier = new ArrayList<CodeableConcept>(); 1468 for (CodeableConcept i : modifier) 1469 dst.modifier.add(i.copy()); 1470 }; 1471 dst.provider = provider == null ? null : provider.copy(); 1472 dst.excluded = excluded == null ? null : excluded.copy(); 1473 dst.name = name == null ? null : name.copy(); 1474 dst.description = description == null ? null : description.copy(); 1475 dst.network = network == null ? null : network.copy(); 1476 dst.unit = unit == null ? null : unit.copy(); 1477 dst.term = term == null ? null : term.copy(); 1478 if (benefit != null) { 1479 dst.benefit = new ArrayList<BenefitComponent>(); 1480 for (BenefitComponent i : benefit) 1481 dst.benefit.add(i.copy()); 1482 }; 1483 dst.authorizationRequired = authorizationRequired == null ? null : authorizationRequired.copy(); 1484 if (authorizationSupporting != null) { 1485 dst.authorizationSupporting = new ArrayList<CodeableConcept>(); 1486 for (CodeableConcept i : authorizationSupporting) 1487 dst.authorizationSupporting.add(i.copy()); 1488 }; 1489 dst.authorizationUrl = authorizationUrl == null ? null : authorizationUrl.copy(); 1490 } 1491 1492 @Override 1493 public boolean equalsDeep(Base other_) { 1494 if (!super.equalsDeep(other_)) 1495 return false; 1496 if (!(other_ instanceof ItemsComponent)) 1497 return false; 1498 ItemsComponent o = (ItemsComponent) other_; 1499 return compareDeep(category, o.category, true) && compareDeep(productOrService, o.productOrService, true) 1500 && compareDeep(modifier, o.modifier, true) && compareDeep(provider, o.provider, true) && compareDeep(excluded, o.excluded, true) 1501 && compareDeep(name, o.name, true) && compareDeep(description, o.description, true) && compareDeep(network, o.network, true) 1502 && compareDeep(unit, o.unit, true) && compareDeep(term, o.term, true) && compareDeep(benefit, o.benefit, true) 1503 && compareDeep(authorizationRequired, o.authorizationRequired, true) && compareDeep(authorizationSupporting, o.authorizationSupporting, true) 1504 && compareDeep(authorizationUrl, o.authorizationUrl, true); 1505 } 1506 1507 @Override 1508 public boolean equalsShallow(Base other_) { 1509 if (!super.equalsShallow(other_)) 1510 return false; 1511 if (!(other_ instanceof ItemsComponent)) 1512 return false; 1513 ItemsComponent o = (ItemsComponent) other_; 1514 return compareValues(excluded, o.excluded, true) && compareValues(name, o.name, true) && compareValues(description, o.description, true) 1515 && compareValues(authorizationRequired, o.authorizationRequired, true) && compareValues(authorizationUrl, o.authorizationUrl, true) 1516 ; 1517 } 1518 1519 public boolean isEmpty() { 1520 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(category, productOrService 1521 , modifier, provider, excluded, name, description, network, unit, term, benefit 1522 , authorizationRequired, authorizationSupporting, authorizationUrl); 1523 } 1524 1525 public String fhirType() { 1526 return "CoverageEligibilityResponse.insurance.item"; 1527 1528 } 1529 1530 } 1531 1532 @Block() 1533 public static class BenefitComponent extends BackboneElement implements IBaseBackboneElement { 1534 /** 1535 * Classification of benefit being provided. 1536 */ 1537 @Child(name = "type", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=false) 1538 @Description(shortDefinition="Benefit classification", formalDefinition="Classification of benefit being provided." ) 1539 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/benefit-type") 1540 protected CodeableConcept type; 1541 1542 /** 1543 * The quantity of the benefit which is permitted under the coverage. 1544 */ 1545 @Child(name = "allowed", type = {UnsignedIntType.class, StringType.class, Money.class}, order=2, min=0, max=1, modifier=false, summary=false) 1546 @Description(shortDefinition="Benefits allowed", formalDefinition="The quantity of the benefit which is permitted under the coverage." ) 1547 protected DataType allowed; 1548 1549 /** 1550 * The quantity of the benefit which have been consumed to date. 1551 */ 1552 @Child(name = "used", type = {UnsignedIntType.class, StringType.class, Money.class}, order=3, min=0, max=1, modifier=false, summary=false) 1553 @Description(shortDefinition="Benefits used", formalDefinition="The quantity of the benefit which have been consumed to date." ) 1554 protected DataType used; 1555 1556 private static final long serialVersionUID = 1900247614L; 1557 1558 /** 1559 * Constructor 1560 */ 1561 public BenefitComponent() { 1562 super(); 1563 } 1564 1565 /** 1566 * Constructor 1567 */ 1568 public BenefitComponent(CodeableConcept type) { 1569 super(); 1570 this.setType(type); 1571 } 1572 1573 /** 1574 * @return {@link #type} (Classification of benefit being provided.) 1575 */ 1576 public CodeableConcept getType() { 1577 if (this.type == null) 1578 if (Configuration.errorOnAutoCreate()) 1579 throw new Error("Attempt to auto-create BenefitComponent.type"); 1580 else if (Configuration.doAutoCreate()) 1581 this.type = new CodeableConcept(); // cc 1582 return this.type; 1583 } 1584 1585 public boolean hasType() { 1586 return this.type != null && !this.type.isEmpty(); 1587 } 1588 1589 /** 1590 * @param value {@link #type} (Classification of benefit being provided.) 1591 */ 1592 public BenefitComponent setType(CodeableConcept value) { 1593 this.type = value; 1594 return this; 1595 } 1596 1597 /** 1598 * @return {@link #allowed} (The quantity of the benefit which is permitted under the coverage.) 1599 */ 1600 public DataType getAllowed() { 1601 return this.allowed; 1602 } 1603 1604 /** 1605 * @return {@link #allowed} (The quantity of the benefit which is permitted under the coverage.) 1606 */ 1607 public UnsignedIntType getAllowedUnsignedIntType() throws FHIRException { 1608 if (this.allowed == null) 1609 this.allowed = new UnsignedIntType(); 1610 if (!(this.allowed instanceof UnsignedIntType)) 1611 throw new FHIRException("Type mismatch: the type UnsignedIntType was expected, but "+this.allowed.getClass().getName()+" was encountered"); 1612 return (UnsignedIntType) this.allowed; 1613 } 1614 1615 public boolean hasAllowedUnsignedIntType() { 1616 return this != null && this.allowed instanceof UnsignedIntType; 1617 } 1618 1619 /** 1620 * @return {@link #allowed} (The quantity of the benefit which is permitted under the coverage.) 1621 */ 1622 public StringType getAllowedStringType() throws FHIRException { 1623 if (this.allowed == null) 1624 this.allowed = new StringType(); 1625 if (!(this.allowed instanceof StringType)) 1626 throw new FHIRException("Type mismatch: the type StringType was expected, but "+this.allowed.getClass().getName()+" was encountered"); 1627 return (StringType) this.allowed; 1628 } 1629 1630 public boolean hasAllowedStringType() { 1631 return this != null && this.allowed instanceof StringType; 1632 } 1633 1634 /** 1635 * @return {@link #allowed} (The quantity of the benefit which is permitted under the coverage.) 1636 */ 1637 public Money getAllowedMoney() throws FHIRException { 1638 if (this.allowed == null) 1639 this.allowed = new Money(); 1640 if (!(this.allowed instanceof Money)) 1641 throw new FHIRException("Type mismatch: the type Money was expected, but "+this.allowed.getClass().getName()+" was encountered"); 1642 return (Money) this.allowed; 1643 } 1644 1645 public boolean hasAllowedMoney() { 1646 return this != null && this.allowed instanceof Money; 1647 } 1648 1649 public boolean hasAllowed() { 1650 return this.allowed != null && !this.allowed.isEmpty(); 1651 } 1652 1653 /** 1654 * @param value {@link #allowed} (The quantity of the benefit which is permitted under the coverage.) 1655 */ 1656 public BenefitComponent setAllowed(DataType value) { 1657 if (value != null && !(value instanceof UnsignedIntType || value instanceof StringType || value instanceof Money)) 1658 throw new Error("Not the right type for CoverageEligibilityResponse.insurance.item.benefit.allowed[x]: "+value.fhirType()); 1659 this.allowed = value; 1660 return this; 1661 } 1662 1663 /** 1664 * @return {@link #used} (The quantity of the benefit which have been consumed to date.) 1665 */ 1666 public DataType getUsed() { 1667 return this.used; 1668 } 1669 1670 /** 1671 * @return {@link #used} (The quantity of the benefit which have been consumed to date.) 1672 */ 1673 public UnsignedIntType getUsedUnsignedIntType() throws FHIRException { 1674 if (this.used == null) 1675 this.used = new UnsignedIntType(); 1676 if (!(this.used instanceof UnsignedIntType)) 1677 throw new FHIRException("Type mismatch: the type UnsignedIntType was expected, but "+this.used.getClass().getName()+" was encountered"); 1678 return (UnsignedIntType) this.used; 1679 } 1680 1681 public boolean hasUsedUnsignedIntType() { 1682 return this != null && this.used instanceof UnsignedIntType; 1683 } 1684 1685 /** 1686 * @return {@link #used} (The quantity of the benefit which have been consumed to date.) 1687 */ 1688 public StringType getUsedStringType() throws FHIRException { 1689 if (this.used == null) 1690 this.used = new StringType(); 1691 if (!(this.used instanceof StringType)) 1692 throw new FHIRException("Type mismatch: the type StringType was expected, but "+this.used.getClass().getName()+" was encountered"); 1693 return (StringType) this.used; 1694 } 1695 1696 public boolean hasUsedStringType() { 1697 return this != null && this.used instanceof StringType; 1698 } 1699 1700 /** 1701 * @return {@link #used} (The quantity of the benefit which have been consumed to date.) 1702 */ 1703 public Money getUsedMoney() throws FHIRException { 1704 if (this.used == null) 1705 this.used = new Money(); 1706 if (!(this.used instanceof Money)) 1707 throw new FHIRException("Type mismatch: the type Money was expected, but "+this.used.getClass().getName()+" was encountered"); 1708 return (Money) this.used; 1709 } 1710 1711 public boolean hasUsedMoney() { 1712 return this != null && this.used instanceof Money; 1713 } 1714 1715 public boolean hasUsed() { 1716 return this.used != null && !this.used.isEmpty(); 1717 } 1718 1719 /** 1720 * @param value {@link #used} (The quantity of the benefit which have been consumed to date.) 1721 */ 1722 public BenefitComponent setUsed(DataType value) { 1723 if (value != null && !(value instanceof UnsignedIntType || value instanceof StringType || value instanceof Money)) 1724 throw new Error("Not the right type for CoverageEligibilityResponse.insurance.item.benefit.used[x]: "+value.fhirType()); 1725 this.used = value; 1726 return this; 1727 } 1728 1729 protected void listChildren(List<Property> children) { 1730 super.listChildren(children); 1731 children.add(new Property("type", "CodeableConcept", "Classification of benefit being provided.", 0, 1, type)); 1732 children.add(new Property("allowed[x]", "unsignedInt|string|Money", "The quantity of the benefit which is permitted under the coverage.", 0, 1, allowed)); 1733 children.add(new Property("used[x]", "unsignedInt|string|Money", "The quantity of the benefit which have been consumed to date.", 0, 1, used)); 1734 } 1735 1736 @Override 1737 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1738 switch (_hash) { 1739 case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Classification of benefit being provided.", 0, 1, type); 1740 case -1336663592: /*allowed[x]*/ return new Property("allowed[x]", "unsignedInt|string|Money", "The quantity of the benefit which is permitted under the coverage.", 0, 1, allowed); 1741 case -911343192: /*allowed*/ return new Property("allowed[x]", "unsignedInt|string|Money", "The quantity of the benefit which is permitted under the coverage.", 0, 1, allowed); 1742 case 1668802034: /*allowedUnsignedInt*/ return new Property("allowed[x]", "unsignedInt", "The quantity of the benefit which is permitted under the coverage.", 0, 1, allowed); 1743 case -2135265319: /*allowedString*/ return new Property("allowed[x]", "string", "The quantity of the benefit which is permitted under the coverage.", 0, 1, allowed); 1744 case -351668232: /*allowedMoney*/ return new Property("allowed[x]", "Money", "The quantity of the benefit which is permitted under the coverage.", 0, 1, allowed); 1745 case -147553373: /*used[x]*/ return new Property("used[x]", "unsignedInt|string|Money", "The quantity of the benefit which have been consumed to date.", 0, 1, used); 1746 case 3599293: /*used*/ return new Property("used[x]", "unsignedInt|string|Money", "The quantity of the benefit which have been consumed to date.", 0, 1, used); 1747 case 1252740285: /*usedUnsignedInt*/ return new Property("used[x]", "unsignedInt", "The quantity of the benefit which have been consumed to date.", 0, 1, used); 1748 case 2051978798: /*usedString*/ return new Property("used[x]", "string", "The quantity of the benefit which have been consumed to date.", 0, 1, used); 1749 case -78048509: /*usedMoney*/ return new Property("used[x]", "Money", "The quantity of the benefit which have been consumed to date.", 0, 1, used); 1750 default: return super.getNamedProperty(_hash, _name, _checkValid); 1751 } 1752 1753 } 1754 1755 @Override 1756 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1757 switch (hash) { 1758 case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept 1759 case -911343192: /*allowed*/ return this.allowed == null ? new Base[0] : new Base[] {this.allowed}; // DataType 1760 case 3599293: /*used*/ return this.used == null ? new Base[0] : new Base[] {this.used}; // DataType 1761 default: return super.getProperty(hash, name, checkValid); 1762 } 1763 1764 } 1765 1766 @Override 1767 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1768 switch (hash) { 1769 case 3575610: // type 1770 this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1771 return value; 1772 case -911343192: // allowed 1773 this.allowed = TypeConvertor.castToType(value); // DataType 1774 return value; 1775 case 3599293: // used 1776 this.used = TypeConvertor.castToType(value); // DataType 1777 return value; 1778 default: return super.setProperty(hash, name, value); 1779 } 1780 1781 } 1782 1783 @Override 1784 public Base setProperty(String name, Base value) throws FHIRException { 1785 if (name.equals("type")) { 1786 this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1787 } else if (name.equals("allowed[x]")) { 1788 this.allowed = TypeConvertor.castToType(value); // DataType 1789 } else if (name.equals("used[x]")) { 1790 this.used = TypeConvertor.castToType(value); // DataType 1791 } else 1792 return super.setProperty(name, value); 1793 return value; 1794 } 1795 1796 @Override 1797 public Base makeProperty(int hash, String name) throws FHIRException { 1798 switch (hash) { 1799 case 3575610: return getType(); 1800 case -1336663592: return getAllowed(); 1801 case -911343192: return getAllowed(); 1802 case -147553373: return getUsed(); 1803 case 3599293: return getUsed(); 1804 default: return super.makeProperty(hash, name); 1805 } 1806 1807 } 1808 1809 @Override 1810 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1811 switch (hash) { 1812 case 3575610: /*type*/ return new String[] {"CodeableConcept"}; 1813 case -911343192: /*allowed*/ return new String[] {"unsignedInt", "string", "Money"}; 1814 case 3599293: /*used*/ return new String[] {"unsignedInt", "string", "Money"}; 1815 default: return super.getTypesForProperty(hash, name); 1816 } 1817 1818 } 1819 1820 @Override 1821 public Base addChild(String name) throws FHIRException { 1822 if (name.equals("type")) { 1823 this.type = new CodeableConcept(); 1824 return this.type; 1825 } 1826 else if (name.equals("allowedUnsignedInt")) { 1827 this.allowed = new UnsignedIntType(); 1828 return this.allowed; 1829 } 1830 else if (name.equals("allowedString")) { 1831 this.allowed = new StringType(); 1832 return this.allowed; 1833 } 1834 else if (name.equals("allowedMoney")) { 1835 this.allowed = new Money(); 1836 return this.allowed; 1837 } 1838 else if (name.equals("usedUnsignedInt")) { 1839 this.used = new UnsignedIntType(); 1840 return this.used; 1841 } 1842 else if (name.equals("usedString")) { 1843 this.used = new StringType(); 1844 return this.used; 1845 } 1846 else if (name.equals("usedMoney")) { 1847 this.used = new Money(); 1848 return this.used; 1849 } 1850 else 1851 return super.addChild(name); 1852 } 1853 1854 public BenefitComponent copy() { 1855 BenefitComponent dst = new BenefitComponent(); 1856 copyValues(dst); 1857 return dst; 1858 } 1859 1860 public void copyValues(BenefitComponent dst) { 1861 super.copyValues(dst); 1862 dst.type = type == null ? null : type.copy(); 1863 dst.allowed = allowed == null ? null : allowed.copy(); 1864 dst.used = used == null ? null : used.copy(); 1865 } 1866 1867 @Override 1868 public boolean equalsDeep(Base other_) { 1869 if (!super.equalsDeep(other_)) 1870 return false; 1871 if (!(other_ instanceof BenefitComponent)) 1872 return false; 1873 BenefitComponent o = (BenefitComponent) other_; 1874 return compareDeep(type, o.type, true) && compareDeep(allowed, o.allowed, true) && compareDeep(used, o.used, true) 1875 ; 1876 } 1877 1878 @Override 1879 public boolean equalsShallow(Base other_) { 1880 if (!super.equalsShallow(other_)) 1881 return false; 1882 if (!(other_ instanceof BenefitComponent)) 1883 return false; 1884 BenefitComponent o = (BenefitComponent) other_; 1885 return true; 1886 } 1887 1888 public boolean isEmpty() { 1889 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, allowed, used); 1890 } 1891 1892 public String fhirType() { 1893 return "CoverageEligibilityResponse.insurance.item.benefit"; 1894 1895 } 1896 1897 } 1898 1899 @Block() 1900 public static class ErrorsComponent extends BackboneElement implements IBaseBackboneElement { 1901 /** 1902 * An error code,from a specified code system, which details why the eligibility check could not be performed. 1903 */ 1904 @Child(name = "code", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=false) 1905 @Description(shortDefinition="Error code detailing processing issues", formalDefinition="An error code,from a specified code system, which details why the eligibility check could not be performed." ) 1906 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/adjudication-error") 1907 protected CodeableConcept code; 1908 1909 private static final long serialVersionUID = -1048343046L; 1910 1911 /** 1912 * Constructor 1913 */ 1914 public ErrorsComponent() { 1915 super(); 1916 } 1917 1918 /** 1919 * Constructor 1920 */ 1921 public ErrorsComponent(CodeableConcept code) { 1922 super(); 1923 this.setCode(code); 1924 } 1925 1926 /** 1927 * @return {@link #code} (An error code,from a specified code system, which details why the eligibility check could not be performed.) 1928 */ 1929 public CodeableConcept getCode() { 1930 if (this.code == null) 1931 if (Configuration.errorOnAutoCreate()) 1932 throw new Error("Attempt to auto-create ErrorsComponent.code"); 1933 else if (Configuration.doAutoCreate()) 1934 this.code = new CodeableConcept(); // cc 1935 return this.code; 1936 } 1937 1938 public boolean hasCode() { 1939 return this.code != null && !this.code.isEmpty(); 1940 } 1941 1942 /** 1943 * @param value {@link #code} (An error code,from a specified code system, which details why the eligibility check could not be performed.) 1944 */ 1945 public ErrorsComponent setCode(CodeableConcept value) { 1946 this.code = value; 1947 return this; 1948 } 1949 1950 protected void listChildren(List<Property> children) { 1951 super.listChildren(children); 1952 children.add(new Property("code", "CodeableConcept", "An error code,from a specified code system, which details why the eligibility check could not be performed.", 0, 1, code)); 1953 } 1954 1955 @Override 1956 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1957 switch (_hash) { 1958 case 3059181: /*code*/ return new Property("code", "CodeableConcept", "An error code,from a specified code system, which details why the eligibility check could not be performed.", 0, 1, code); 1959 default: return super.getNamedProperty(_hash, _name, _checkValid); 1960 } 1961 1962 } 1963 1964 @Override 1965 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1966 switch (hash) { 1967 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept 1968 default: return super.getProperty(hash, name, checkValid); 1969 } 1970 1971 } 1972 1973 @Override 1974 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1975 switch (hash) { 1976 case 3059181: // code 1977 this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1978 return value; 1979 default: return super.setProperty(hash, name, value); 1980 } 1981 1982 } 1983 1984 @Override 1985 public Base setProperty(String name, Base value) throws FHIRException { 1986 if (name.equals("code")) { 1987 this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1988 } else 1989 return super.setProperty(name, value); 1990 return value; 1991 } 1992 1993 @Override 1994 public Base makeProperty(int hash, String name) throws FHIRException { 1995 switch (hash) { 1996 case 3059181: return getCode(); 1997 default: return super.makeProperty(hash, name); 1998 } 1999 2000 } 2001 2002 @Override 2003 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 2004 switch (hash) { 2005 case 3059181: /*code*/ return new String[] {"CodeableConcept"}; 2006 default: return super.getTypesForProperty(hash, name); 2007 } 2008 2009 } 2010 2011 @Override 2012 public Base addChild(String name) throws FHIRException { 2013 if (name.equals("code")) { 2014 this.code = new CodeableConcept(); 2015 return this.code; 2016 } 2017 else 2018 return super.addChild(name); 2019 } 2020 2021 public ErrorsComponent copy() { 2022 ErrorsComponent dst = new ErrorsComponent(); 2023 copyValues(dst); 2024 return dst; 2025 } 2026 2027 public void copyValues(ErrorsComponent dst) { 2028 super.copyValues(dst); 2029 dst.code = code == null ? null : code.copy(); 2030 } 2031 2032 @Override 2033 public boolean equalsDeep(Base other_) { 2034 if (!super.equalsDeep(other_)) 2035 return false; 2036 if (!(other_ instanceof ErrorsComponent)) 2037 return false; 2038 ErrorsComponent o = (ErrorsComponent) other_; 2039 return compareDeep(code, o.code, true); 2040 } 2041 2042 @Override 2043 public boolean equalsShallow(Base other_) { 2044 if (!super.equalsShallow(other_)) 2045 return false; 2046 if (!(other_ instanceof ErrorsComponent)) 2047 return false; 2048 ErrorsComponent o = (ErrorsComponent) other_; 2049 return true; 2050 } 2051 2052 public boolean isEmpty() { 2053 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code); 2054 } 2055 2056 public String fhirType() { 2057 return "CoverageEligibilityResponse.error"; 2058 2059 } 2060 2061 } 2062 2063 /** 2064 * A unique identifier assigned to this coverage eligiblity request. 2065 */ 2066 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 2067 @Description(shortDefinition="Business Identifier for coverage eligiblity request", formalDefinition="A unique identifier assigned to this coverage eligiblity request." ) 2068 protected List<Identifier> identifier; 2069 2070 /** 2071 * The status of the resource instance. 2072 */ 2073 @Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true) 2074 @Description(shortDefinition="active | cancelled | draft | entered-in-error", formalDefinition="The status of the resource instance." ) 2075 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/fm-status") 2076 protected Enumeration<FinancialResourceStatusCodes> status; 2077 2078 /** 2079 * Code to specify whether requesting: prior authorization requirements for some service categories or billing codes; benefits for coverages specified or discovered; discovery and return of coverages for the patient; and/or validation that the specified coverage is in-force at the date/period specified or 'now' if not specified. 2080 */ 2081 @Child(name = "purpose", type = {CodeType.class}, order=2, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 2082 @Description(shortDefinition="auth-requirements | benefits | discovery | validation", formalDefinition="Code to specify whether requesting: prior authorization requirements for some service categories or billing codes; benefits for coverages specified or discovered; discovery and return of coverages for the patient; and/or validation that the specified coverage is in-force at the date/period specified or 'now' if not specified." ) 2083 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/eligibilityresponse-purpose") 2084 protected List<Enumeration<EligibilityResponsePurpose>> purpose; 2085 2086 /** 2087 * The party who is the beneficiary of the supplied coverage and for whom eligibility is sought. 2088 */ 2089 @Child(name = "patient", type = {Patient.class}, order=3, min=1, max=1, modifier=false, summary=true) 2090 @Description(shortDefinition="Intended recipient of products and services", formalDefinition="The party who is the beneficiary of the supplied coverage and for whom eligibility is sought." ) 2091 protected Reference patient; 2092 2093 /** 2094 * The date or dates when the enclosed suite of services were performed or completed. 2095 */ 2096 @Child(name = "serviced", type = {DateType.class, Period.class}, order=4, min=0, max=1, modifier=false, summary=false) 2097 @Description(shortDefinition="Estimated date or dates of service", formalDefinition="The date or dates when the enclosed suite of services were performed or completed." ) 2098 protected DataType serviced; 2099 2100 /** 2101 * The date this resource was created. 2102 */ 2103 @Child(name = "created", type = {DateTimeType.class}, order=5, min=1, max=1, modifier=false, summary=true) 2104 @Description(shortDefinition="Response creation date", formalDefinition="The date this resource was created." ) 2105 protected DateTimeType created; 2106 2107 /** 2108 * The provider which is responsible for the request. 2109 */ 2110 @Child(name = "requestor", type = {Practitioner.class, PractitionerRole.class, Organization.class}, order=6, min=0, max=1, modifier=false, summary=false) 2111 @Description(shortDefinition="Party responsible for the request", formalDefinition="The provider which is responsible for the request." ) 2112 protected Reference requestor; 2113 2114 /** 2115 * Reference to the original request resource. 2116 */ 2117 @Child(name = "request", type = {CoverageEligibilityRequest.class}, order=7, min=1, max=1, modifier=false, summary=true) 2118 @Description(shortDefinition="Eligibility request reference", formalDefinition="Reference to the original request resource." ) 2119 protected Reference request; 2120 2121 /** 2122 * The outcome of the request processing. 2123 */ 2124 @Child(name = "outcome", type = {CodeType.class}, order=8, min=1, max=1, modifier=false, summary=true) 2125 @Description(shortDefinition="queued | complete | error | partial", formalDefinition="The outcome of the request processing." ) 2126 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/remittance-outcome") 2127 protected Enumeration<ClaimProcessingCodes> outcome; 2128 2129 /** 2130 * A human readable description of the status of the adjudication. 2131 */ 2132 @Child(name = "disposition", type = {StringType.class}, order=9, min=0, max=1, modifier=false, summary=false) 2133 @Description(shortDefinition="Disposition Message", formalDefinition="A human readable description of the status of the adjudication." ) 2134 protected StringType disposition; 2135 2136 /** 2137 * The Insurer who issued the coverage in question and is the author of the response. 2138 */ 2139 @Child(name = "insurer", type = {Organization.class}, order=10, min=1, max=1, modifier=false, summary=true) 2140 @Description(shortDefinition="Coverage issuer", formalDefinition="The Insurer who issued the coverage in question and is the author of the response." ) 2141 protected Reference insurer; 2142 2143 /** 2144 * Financial instruments for reimbursement for the health care products and services. 2145 */ 2146 @Child(name = "insurance", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 2147 @Description(shortDefinition="Patient insurance information", formalDefinition="Financial instruments for reimbursement for the health care products and services." ) 2148 protected List<InsuranceComponent> insurance; 2149 2150 /** 2151 * A reference from the Insurer to which these services pertain to be used on further communication and as proof that the request occurred. 2152 */ 2153 @Child(name = "preAuthRef", type = {StringType.class}, order=12, min=0, max=1, modifier=false, summary=false) 2154 @Description(shortDefinition="Preauthorization reference", formalDefinition="A reference from the Insurer to which these services pertain to be used on further communication and as proof that the request occurred." ) 2155 protected StringType preAuthRef; 2156 2157 /** 2158 * A code for the form to be used for printing the content. 2159 */ 2160 @Child(name = "form", type = {CodeableConcept.class}, order=13, min=0, max=1, modifier=false, summary=false) 2161 @Description(shortDefinition="Printed form identifier", formalDefinition="A code for the form to be used for printing the content." ) 2162 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/forms") 2163 protected CodeableConcept form; 2164 2165 /** 2166 * Errors encountered during the processing of the request. 2167 */ 2168 @Child(name = "error", type = {}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 2169 @Description(shortDefinition="Processing errors", formalDefinition="Errors encountered during the processing of the request." ) 2170 protected List<ErrorsComponent> error; 2171 2172 private static final long serialVersionUID = 1048956296L; 2173 2174 /** 2175 * Constructor 2176 */ 2177 public CoverageEligibilityResponse() { 2178 super(); 2179 } 2180 2181 /** 2182 * Constructor 2183 */ 2184 public CoverageEligibilityResponse(FinancialResourceStatusCodes status, EligibilityResponsePurpose purpose, Reference patient, Date created, Reference request, ClaimProcessingCodes outcome, Reference insurer) { 2185 super(); 2186 this.setStatus(status); 2187 this.addPurpose(purpose); 2188 this.setPatient(patient); 2189 this.setCreated(created); 2190 this.setRequest(request); 2191 this.setOutcome(outcome); 2192 this.setInsurer(insurer); 2193 } 2194 2195 /** 2196 * @return {@link #identifier} (A unique identifier assigned to this coverage eligiblity request.) 2197 */ 2198 public List<Identifier> getIdentifier() { 2199 if (this.identifier == null) 2200 this.identifier = new ArrayList<Identifier>(); 2201 return this.identifier; 2202 } 2203 2204 /** 2205 * @return Returns a reference to <code>this</code> for easy method chaining 2206 */ 2207 public CoverageEligibilityResponse setIdentifier(List<Identifier> theIdentifier) { 2208 this.identifier = theIdentifier; 2209 return this; 2210 } 2211 2212 public boolean hasIdentifier() { 2213 if (this.identifier == null) 2214 return false; 2215 for (Identifier item : this.identifier) 2216 if (!item.isEmpty()) 2217 return true; 2218 return false; 2219 } 2220 2221 public Identifier addIdentifier() { //3 2222 Identifier t = new Identifier(); 2223 if (this.identifier == null) 2224 this.identifier = new ArrayList<Identifier>(); 2225 this.identifier.add(t); 2226 return t; 2227 } 2228 2229 public CoverageEligibilityResponse addIdentifier(Identifier t) { //3 2230 if (t == null) 2231 return this; 2232 if (this.identifier == null) 2233 this.identifier = new ArrayList<Identifier>(); 2234 this.identifier.add(t); 2235 return this; 2236 } 2237 2238 /** 2239 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} 2240 */ 2241 public Identifier getIdentifierFirstRep() { 2242 if (getIdentifier().isEmpty()) { 2243 addIdentifier(); 2244 } 2245 return getIdentifier().get(0); 2246 } 2247 2248 /** 2249 * @return {@link #status} (The status of the resource instance.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 2250 */ 2251 public Enumeration<FinancialResourceStatusCodes> getStatusElement() { 2252 if (this.status == null) 2253 if (Configuration.errorOnAutoCreate()) 2254 throw new Error("Attempt to auto-create CoverageEligibilityResponse.status"); 2255 else if (Configuration.doAutoCreate()) 2256 this.status = new Enumeration<FinancialResourceStatusCodes>(new FinancialResourceStatusCodesEnumFactory()); // bb 2257 return this.status; 2258 } 2259 2260 public boolean hasStatusElement() { 2261 return this.status != null && !this.status.isEmpty(); 2262 } 2263 2264 public boolean hasStatus() { 2265 return this.status != null && !this.status.isEmpty(); 2266 } 2267 2268 /** 2269 * @param value {@link #status} (The status of the resource instance.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 2270 */ 2271 public CoverageEligibilityResponse setStatusElement(Enumeration<FinancialResourceStatusCodes> value) { 2272 this.status = value; 2273 return this; 2274 } 2275 2276 /** 2277 * @return The status of the resource instance. 2278 */ 2279 public FinancialResourceStatusCodes getStatus() { 2280 return this.status == null ? null : this.status.getValue(); 2281 } 2282 2283 /** 2284 * @param value The status of the resource instance. 2285 */ 2286 public CoverageEligibilityResponse setStatus(FinancialResourceStatusCodes value) { 2287 if (this.status == null) 2288 this.status = new Enumeration<FinancialResourceStatusCodes>(new FinancialResourceStatusCodesEnumFactory()); 2289 this.status.setValue(value); 2290 return this; 2291 } 2292 2293 /** 2294 * @return {@link #purpose} (Code to specify whether requesting: prior authorization requirements for some service categories or billing codes; benefits for coverages specified or discovered; discovery and return of coverages for the patient; and/or validation that the specified coverage is in-force at the date/period specified or 'now' if not specified.) 2295 */ 2296 public List<Enumeration<EligibilityResponsePurpose>> getPurpose() { 2297 if (this.purpose == null) 2298 this.purpose = new ArrayList<Enumeration<EligibilityResponsePurpose>>(); 2299 return this.purpose; 2300 } 2301 2302 /** 2303 * @return Returns a reference to <code>this</code> for easy method chaining 2304 */ 2305 public CoverageEligibilityResponse setPurpose(List<Enumeration<EligibilityResponsePurpose>> thePurpose) { 2306 this.purpose = thePurpose; 2307 return this; 2308 } 2309 2310 public boolean hasPurpose() { 2311 if (this.purpose == null) 2312 return false; 2313 for (Enumeration<EligibilityResponsePurpose> item : this.purpose) 2314 if (!item.isEmpty()) 2315 return true; 2316 return false; 2317 } 2318 2319 /** 2320 * @return {@link #purpose} (Code to specify whether requesting: prior authorization requirements for some service categories or billing codes; benefits for coverages specified or discovered; discovery and return of coverages for the patient; and/or validation that the specified coverage is in-force at the date/period specified or 'now' if not specified.) 2321 */ 2322 public Enumeration<EligibilityResponsePurpose> addPurposeElement() {//2 2323 Enumeration<EligibilityResponsePurpose> t = new Enumeration<EligibilityResponsePurpose>(new EligibilityResponsePurposeEnumFactory()); 2324 if (this.purpose == null) 2325 this.purpose = new ArrayList<Enumeration<EligibilityResponsePurpose>>(); 2326 this.purpose.add(t); 2327 return t; 2328 } 2329 2330 /** 2331 * @param value {@link #purpose} (Code to specify whether requesting: prior authorization requirements for some service categories or billing codes; benefits for coverages specified or discovered; discovery and return of coverages for the patient; and/or validation that the specified coverage is in-force at the date/period specified or 'now' if not specified.) 2332 */ 2333 public CoverageEligibilityResponse addPurpose(EligibilityResponsePurpose value) { //1 2334 Enumeration<EligibilityResponsePurpose> t = new Enumeration<EligibilityResponsePurpose>(new EligibilityResponsePurposeEnumFactory()); 2335 t.setValue(value); 2336 if (this.purpose == null) 2337 this.purpose = new ArrayList<Enumeration<EligibilityResponsePurpose>>(); 2338 this.purpose.add(t); 2339 return this; 2340 } 2341 2342 /** 2343 * @param value {@link #purpose} (Code to specify whether requesting: prior authorization requirements for some service categories or billing codes; benefits for coverages specified or discovered; discovery and return of coverages for the patient; and/or validation that the specified coverage is in-force at the date/period specified or 'now' if not specified.) 2344 */ 2345 public boolean hasPurpose(EligibilityResponsePurpose value) { 2346 if (this.purpose == null) 2347 return false; 2348 for (Enumeration<EligibilityResponsePurpose> v : this.purpose) 2349 if (v.getValue().equals(value)) // code 2350 return true; 2351 return false; 2352 } 2353 2354 /** 2355 * @return {@link #patient} (The party who is the beneficiary of the supplied coverage and for whom eligibility is sought.) 2356 */ 2357 public Reference getPatient() { 2358 if (this.patient == null) 2359 if (Configuration.errorOnAutoCreate()) 2360 throw new Error("Attempt to auto-create CoverageEligibilityResponse.patient"); 2361 else if (Configuration.doAutoCreate()) 2362 this.patient = new Reference(); // cc 2363 return this.patient; 2364 } 2365 2366 public boolean hasPatient() { 2367 return this.patient != null && !this.patient.isEmpty(); 2368 } 2369 2370 /** 2371 * @param value {@link #patient} (The party who is the beneficiary of the supplied coverage and for whom eligibility is sought.) 2372 */ 2373 public CoverageEligibilityResponse setPatient(Reference value) { 2374 this.patient = value; 2375 return this; 2376 } 2377 2378 /** 2379 * @return {@link #serviced} (The date or dates when the enclosed suite of services were performed or completed.) 2380 */ 2381 public DataType getServiced() { 2382 return this.serviced; 2383 } 2384 2385 /** 2386 * @return {@link #serviced} (The date or dates when the enclosed suite of services were performed or completed.) 2387 */ 2388 public DateType getServicedDateType() throws FHIRException { 2389 if (this.serviced == null) 2390 this.serviced = new DateType(); 2391 if (!(this.serviced instanceof DateType)) 2392 throw new FHIRException("Type mismatch: the type DateType was expected, but "+this.serviced.getClass().getName()+" was encountered"); 2393 return (DateType) this.serviced; 2394 } 2395 2396 public boolean hasServicedDateType() { 2397 return this != null && this.serviced instanceof DateType; 2398 } 2399 2400 /** 2401 * @return {@link #serviced} (The date or dates when the enclosed suite of services were performed or completed.) 2402 */ 2403 public Period getServicedPeriod() throws FHIRException { 2404 if (this.serviced == null) 2405 this.serviced = new Period(); 2406 if (!(this.serviced instanceof Period)) 2407 throw new FHIRException("Type mismatch: the type Period was expected, but "+this.serviced.getClass().getName()+" was encountered"); 2408 return (Period) this.serviced; 2409 } 2410 2411 public boolean hasServicedPeriod() { 2412 return this != null && this.serviced instanceof Period; 2413 } 2414 2415 public boolean hasServiced() { 2416 return this.serviced != null && !this.serviced.isEmpty(); 2417 } 2418 2419 /** 2420 * @param value {@link #serviced} (The date or dates when the enclosed suite of services were performed or completed.) 2421 */ 2422 public CoverageEligibilityResponse setServiced(DataType value) { 2423 if (value != null && !(value instanceof DateType || value instanceof Period)) 2424 throw new Error("Not the right type for CoverageEligibilityResponse.serviced[x]: "+value.fhirType()); 2425 this.serviced = value; 2426 return this; 2427 } 2428 2429 /** 2430 * @return {@link #created} (The date this resource was created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value 2431 */ 2432 public DateTimeType getCreatedElement() { 2433 if (this.created == null) 2434 if (Configuration.errorOnAutoCreate()) 2435 throw new Error("Attempt to auto-create CoverageEligibilityResponse.created"); 2436 else if (Configuration.doAutoCreate()) 2437 this.created = new DateTimeType(); // bb 2438 return this.created; 2439 } 2440 2441 public boolean hasCreatedElement() { 2442 return this.created != null && !this.created.isEmpty(); 2443 } 2444 2445 public boolean hasCreated() { 2446 return this.created != null && !this.created.isEmpty(); 2447 } 2448 2449 /** 2450 * @param value {@link #created} (The date this resource was created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value 2451 */ 2452 public CoverageEligibilityResponse setCreatedElement(DateTimeType value) { 2453 this.created = value; 2454 return this; 2455 } 2456 2457 /** 2458 * @return The date this resource was created. 2459 */ 2460 public Date getCreated() { 2461 return this.created == null ? null : this.created.getValue(); 2462 } 2463 2464 /** 2465 * @param value The date this resource was created. 2466 */ 2467 public CoverageEligibilityResponse setCreated(Date value) { 2468 if (this.created == null) 2469 this.created = new DateTimeType(); 2470 this.created.setValue(value); 2471 return this; 2472 } 2473 2474 /** 2475 * @return {@link #requestor} (The provider which is responsible for the request.) 2476 */ 2477 public Reference getRequestor() { 2478 if (this.requestor == null) 2479 if (Configuration.errorOnAutoCreate()) 2480 throw new Error("Attempt to auto-create CoverageEligibilityResponse.requestor"); 2481 else if (Configuration.doAutoCreate()) 2482 this.requestor = new Reference(); // cc 2483 return this.requestor; 2484 } 2485 2486 public boolean hasRequestor() { 2487 return this.requestor != null && !this.requestor.isEmpty(); 2488 } 2489 2490 /** 2491 * @param value {@link #requestor} (The provider which is responsible for the request.) 2492 */ 2493 public CoverageEligibilityResponse setRequestor(Reference value) { 2494 this.requestor = value; 2495 return this; 2496 } 2497 2498 /** 2499 * @return {@link #request} (Reference to the original request resource.) 2500 */ 2501 public Reference getRequest() { 2502 if (this.request == null) 2503 if (Configuration.errorOnAutoCreate()) 2504 throw new Error("Attempt to auto-create CoverageEligibilityResponse.request"); 2505 else if (Configuration.doAutoCreate()) 2506 this.request = new Reference(); // cc 2507 return this.request; 2508 } 2509 2510 public boolean hasRequest() { 2511 return this.request != null && !this.request.isEmpty(); 2512 } 2513 2514 /** 2515 * @param value {@link #request} (Reference to the original request resource.) 2516 */ 2517 public CoverageEligibilityResponse setRequest(Reference value) { 2518 this.request = value; 2519 return this; 2520 } 2521 2522 /** 2523 * @return {@link #outcome} (The outcome of the request processing.). This is the underlying object with id, value and extensions. The accessor "getOutcome" gives direct access to the value 2524 */ 2525 public Enumeration<ClaimProcessingCodes> getOutcomeElement() { 2526 if (this.outcome == null) 2527 if (Configuration.errorOnAutoCreate()) 2528 throw new Error("Attempt to auto-create CoverageEligibilityResponse.outcome"); 2529 else if (Configuration.doAutoCreate()) 2530 this.outcome = new Enumeration<ClaimProcessingCodes>(new ClaimProcessingCodesEnumFactory()); // bb 2531 return this.outcome; 2532 } 2533 2534 public boolean hasOutcomeElement() { 2535 return this.outcome != null && !this.outcome.isEmpty(); 2536 } 2537 2538 public boolean hasOutcome() { 2539 return this.outcome != null && !this.outcome.isEmpty(); 2540 } 2541 2542 /** 2543 * @param value {@link #outcome} (The outcome of the request processing.). This is the underlying object with id, value and extensions. The accessor "getOutcome" gives direct access to the value 2544 */ 2545 public CoverageEligibilityResponse setOutcomeElement(Enumeration<ClaimProcessingCodes> value) { 2546 this.outcome = value; 2547 return this; 2548 } 2549 2550 /** 2551 * @return The outcome of the request processing. 2552 */ 2553 public ClaimProcessingCodes getOutcome() { 2554 return this.outcome == null ? null : this.outcome.getValue(); 2555 } 2556 2557 /** 2558 * @param value The outcome of the request processing. 2559 */ 2560 public CoverageEligibilityResponse setOutcome(ClaimProcessingCodes value) { 2561 if (this.outcome == null) 2562 this.outcome = new Enumeration<ClaimProcessingCodes>(new ClaimProcessingCodesEnumFactory()); 2563 this.outcome.setValue(value); 2564 return this; 2565 } 2566 2567 /** 2568 * @return {@link #disposition} (A human readable description of the status of the adjudication.). This is the underlying object with id, value and extensions. The accessor "getDisposition" gives direct access to the value 2569 */ 2570 public StringType getDispositionElement() { 2571 if (this.disposition == null) 2572 if (Configuration.errorOnAutoCreate()) 2573 throw new Error("Attempt to auto-create CoverageEligibilityResponse.disposition"); 2574 else if (Configuration.doAutoCreate()) 2575 this.disposition = new StringType(); // bb 2576 return this.disposition; 2577 } 2578 2579 public boolean hasDispositionElement() { 2580 return this.disposition != null && !this.disposition.isEmpty(); 2581 } 2582 2583 public boolean hasDisposition() { 2584 return this.disposition != null && !this.disposition.isEmpty(); 2585 } 2586 2587 /** 2588 * @param value {@link #disposition} (A human readable description of the status of the adjudication.). This is the underlying object with id, value and extensions. The accessor "getDisposition" gives direct access to the value 2589 */ 2590 public CoverageEligibilityResponse setDispositionElement(StringType value) { 2591 this.disposition = value; 2592 return this; 2593 } 2594 2595 /** 2596 * @return A human readable description of the status of the adjudication. 2597 */ 2598 public String getDisposition() { 2599 return this.disposition == null ? null : this.disposition.getValue(); 2600 } 2601 2602 /** 2603 * @param value A human readable description of the status of the adjudication. 2604 */ 2605 public CoverageEligibilityResponse setDisposition(String value) { 2606 if (Utilities.noString(value)) 2607 this.disposition = null; 2608 else { 2609 if (this.disposition == null) 2610 this.disposition = new StringType(); 2611 this.disposition.setValue(value); 2612 } 2613 return this; 2614 } 2615 2616 /** 2617 * @return {@link #insurer} (The Insurer who issued the coverage in question and is the author of the response.) 2618 */ 2619 public Reference getInsurer() { 2620 if (this.insurer == null) 2621 if (Configuration.errorOnAutoCreate()) 2622 throw new Error("Attempt to auto-create CoverageEligibilityResponse.insurer"); 2623 else if (Configuration.doAutoCreate()) 2624 this.insurer = new Reference(); // cc 2625 return this.insurer; 2626 } 2627 2628 public boolean hasInsurer() { 2629 return this.insurer != null && !this.insurer.isEmpty(); 2630 } 2631 2632 /** 2633 * @param value {@link #insurer} (The Insurer who issued the coverage in question and is the author of the response.) 2634 */ 2635 public CoverageEligibilityResponse setInsurer(Reference value) { 2636 this.insurer = value; 2637 return this; 2638 } 2639 2640 /** 2641 * @return {@link #insurance} (Financial instruments for reimbursement for the health care products and services.) 2642 */ 2643 public List<InsuranceComponent> getInsurance() { 2644 if (this.insurance == null) 2645 this.insurance = new ArrayList<InsuranceComponent>(); 2646 return this.insurance; 2647 } 2648 2649 /** 2650 * @return Returns a reference to <code>this</code> for easy method chaining 2651 */ 2652 public CoverageEligibilityResponse setInsurance(List<InsuranceComponent> theInsurance) { 2653 this.insurance = theInsurance; 2654 return this; 2655 } 2656 2657 public boolean hasInsurance() { 2658 if (this.insurance == null) 2659 return false; 2660 for (InsuranceComponent item : this.insurance) 2661 if (!item.isEmpty()) 2662 return true; 2663 return false; 2664 } 2665 2666 public InsuranceComponent addInsurance() { //3 2667 InsuranceComponent t = new InsuranceComponent(); 2668 if (this.insurance == null) 2669 this.insurance = new ArrayList<InsuranceComponent>(); 2670 this.insurance.add(t); 2671 return t; 2672 } 2673 2674 public CoverageEligibilityResponse addInsurance(InsuranceComponent t) { //3 2675 if (t == null) 2676 return this; 2677 if (this.insurance == null) 2678 this.insurance = new ArrayList<InsuranceComponent>(); 2679 this.insurance.add(t); 2680 return this; 2681 } 2682 2683 /** 2684 * @return The first repetition of repeating field {@link #insurance}, creating it if it does not already exist {3} 2685 */ 2686 public InsuranceComponent getInsuranceFirstRep() { 2687 if (getInsurance().isEmpty()) { 2688 addInsurance(); 2689 } 2690 return getInsurance().get(0); 2691 } 2692 2693 /** 2694 * @return {@link #preAuthRef} (A reference from the Insurer to which these services pertain to be used on further communication and as proof that the request occurred.). This is the underlying object with id, value and extensions. The accessor "getPreAuthRef" gives direct access to the value 2695 */ 2696 public StringType getPreAuthRefElement() { 2697 if (this.preAuthRef == null) 2698 if (Configuration.errorOnAutoCreate()) 2699 throw new Error("Attempt to auto-create CoverageEligibilityResponse.preAuthRef"); 2700 else if (Configuration.doAutoCreate()) 2701 this.preAuthRef = new StringType(); // bb 2702 return this.preAuthRef; 2703 } 2704 2705 public boolean hasPreAuthRefElement() { 2706 return this.preAuthRef != null && !this.preAuthRef.isEmpty(); 2707 } 2708 2709 public boolean hasPreAuthRef() { 2710 return this.preAuthRef != null && !this.preAuthRef.isEmpty(); 2711 } 2712 2713 /** 2714 * @param value {@link #preAuthRef} (A reference from the Insurer to which these services pertain to be used on further communication and as proof that the request occurred.). This is the underlying object with id, value and extensions. The accessor "getPreAuthRef" gives direct access to the value 2715 */ 2716 public CoverageEligibilityResponse setPreAuthRefElement(StringType value) { 2717 this.preAuthRef = value; 2718 return this; 2719 } 2720 2721 /** 2722 * @return A reference from the Insurer to which these services pertain to be used on further communication and as proof that the request occurred. 2723 */ 2724 public String getPreAuthRef() { 2725 return this.preAuthRef == null ? null : this.preAuthRef.getValue(); 2726 } 2727 2728 /** 2729 * @param value A reference from the Insurer to which these services pertain to be used on further communication and as proof that the request occurred. 2730 */ 2731 public CoverageEligibilityResponse setPreAuthRef(String value) { 2732 if (Utilities.noString(value)) 2733 this.preAuthRef = null; 2734 else { 2735 if (this.preAuthRef == null) 2736 this.preAuthRef = new StringType(); 2737 this.preAuthRef.setValue(value); 2738 } 2739 return this; 2740 } 2741 2742 /** 2743 * @return {@link #form} (A code for the form to be used for printing the content.) 2744 */ 2745 public CodeableConcept getForm() { 2746 if (this.form == null) 2747 if (Configuration.errorOnAutoCreate()) 2748 throw new Error("Attempt to auto-create CoverageEligibilityResponse.form"); 2749 else if (Configuration.doAutoCreate()) 2750 this.form = new CodeableConcept(); // cc 2751 return this.form; 2752 } 2753 2754 public boolean hasForm() { 2755 return this.form != null && !this.form.isEmpty(); 2756 } 2757 2758 /** 2759 * @param value {@link #form} (A code for the form to be used for printing the content.) 2760 */ 2761 public CoverageEligibilityResponse setForm(CodeableConcept value) { 2762 this.form = value; 2763 return this; 2764 } 2765 2766 /** 2767 * @return {@link #error} (Errors encountered during the processing of the request.) 2768 */ 2769 public List<ErrorsComponent> getError() { 2770 if (this.error == null) 2771 this.error = new ArrayList<ErrorsComponent>(); 2772 return this.error; 2773 } 2774 2775 /** 2776 * @return Returns a reference to <code>this</code> for easy method chaining 2777 */ 2778 public CoverageEligibilityResponse setError(List<ErrorsComponent> theError) { 2779 this.error = theError; 2780 return this; 2781 } 2782 2783 public boolean hasError() { 2784 if (this.error == null) 2785 return false; 2786 for (ErrorsComponent item : this.error) 2787 if (!item.isEmpty()) 2788 return true; 2789 return false; 2790 } 2791 2792 public ErrorsComponent addError() { //3 2793 ErrorsComponent t = new ErrorsComponent(); 2794 if (this.error == null) 2795 this.error = new ArrayList<ErrorsComponent>(); 2796 this.error.add(t); 2797 return t; 2798 } 2799 2800 public CoverageEligibilityResponse addError(ErrorsComponent t) { //3 2801 if (t == null) 2802 return this; 2803 if (this.error == null) 2804 this.error = new ArrayList<ErrorsComponent>(); 2805 this.error.add(t); 2806 return this; 2807 } 2808 2809 /** 2810 * @return The first repetition of repeating field {@link #error}, creating it if it does not already exist {3} 2811 */ 2812 public ErrorsComponent getErrorFirstRep() { 2813 if (getError().isEmpty()) { 2814 addError(); 2815 } 2816 return getError().get(0); 2817 } 2818 2819 protected void listChildren(List<Property> children) { 2820 super.listChildren(children); 2821 children.add(new Property("identifier", "Identifier", "A unique identifier assigned to this coverage eligiblity request.", 0, java.lang.Integer.MAX_VALUE, identifier)); 2822 children.add(new Property("status", "code", "The status of the resource instance.", 0, 1, status)); 2823 children.add(new Property("purpose", "code", "Code to specify whether requesting: prior authorization requirements for some service categories or billing codes; benefits for coverages specified or discovered; discovery and return of coverages for the patient; and/or validation that the specified coverage is in-force at the date/period specified or 'now' if not specified.", 0, java.lang.Integer.MAX_VALUE, purpose)); 2824 children.add(new Property("patient", "Reference(Patient)", "The party who is the beneficiary of the supplied coverage and for whom eligibility is sought.", 0, 1, patient)); 2825 children.add(new Property("serviced[x]", "date|Period", "The date or dates when the enclosed suite of services were performed or completed.", 0, 1, serviced)); 2826 children.add(new Property("created", "dateTime", "The date this resource was created.", 0, 1, created)); 2827 children.add(new Property("requestor", "Reference(Practitioner|PractitionerRole|Organization)", "The provider which is responsible for the request.", 0, 1, requestor)); 2828 children.add(new Property("request", "Reference(CoverageEligibilityRequest)", "Reference to the original request resource.", 0, 1, request)); 2829 children.add(new Property("outcome", "code", "The outcome of the request processing.", 0, 1, outcome)); 2830 children.add(new Property("disposition", "string", "A human readable description of the status of the adjudication.", 0, 1, disposition)); 2831 children.add(new Property("insurer", "Reference(Organization)", "The Insurer who issued the coverage in question and is the author of the response.", 0, 1, insurer)); 2832 children.add(new Property("insurance", "", "Financial instruments for reimbursement for the health care products and services.", 0, java.lang.Integer.MAX_VALUE, insurance)); 2833 children.add(new Property("preAuthRef", "string", "A reference from the Insurer to which these services pertain to be used on further communication and as proof that the request occurred.", 0, 1, preAuthRef)); 2834 children.add(new Property("form", "CodeableConcept", "A code for the form to be used for printing the content.", 0, 1, form)); 2835 children.add(new Property("error", "", "Errors encountered during the processing of the request.", 0, java.lang.Integer.MAX_VALUE, error)); 2836 } 2837 2838 @Override 2839 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 2840 switch (_hash) { 2841 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A unique identifier assigned to this coverage eligiblity request.", 0, java.lang.Integer.MAX_VALUE, identifier); 2842 case -892481550: /*status*/ return new Property("status", "code", "The status of the resource instance.", 0, 1, status); 2843 case -220463842: /*purpose*/ return new Property("purpose", "code", "Code to specify whether requesting: prior authorization requirements for some service categories or billing codes; benefits for coverages specified or discovered; discovery and return of coverages for the patient; and/or validation that the specified coverage is in-force at the date/period specified or 'now' if not specified.", 0, java.lang.Integer.MAX_VALUE, purpose); 2844 case -791418107: /*patient*/ return new Property("patient", "Reference(Patient)", "The party who is the beneficiary of the supplied coverage and for whom eligibility is sought.", 0, 1, patient); 2845 case -1927922223: /*serviced[x]*/ return new Property("serviced[x]", "date|Period", "The date or dates when the enclosed suite of services were performed or completed.", 0, 1, serviced); 2846 case 1379209295: /*serviced*/ return new Property("serviced[x]", "date|Period", "The date or dates when the enclosed suite of services were performed or completed.", 0, 1, serviced); 2847 case 363246749: /*servicedDate*/ return new Property("serviced[x]", "date", "The date or dates when the enclosed suite of services were performed or completed.", 0, 1, serviced); 2848 case 1534966512: /*servicedPeriod*/ return new Property("serviced[x]", "Period", "The date or dates when the enclosed suite of services were performed or completed.", 0, 1, serviced); 2849 case 1028554472: /*created*/ return new Property("created", "dateTime", "The date this resource was created.", 0, 1, created); 2850 case 693934258: /*requestor*/ return new Property("requestor", "Reference(Practitioner|PractitionerRole|Organization)", "The provider which is responsible for the request.", 0, 1, requestor); 2851 case 1095692943: /*request*/ return new Property("request", "Reference(CoverageEligibilityRequest)", "Reference to the original request resource.", 0, 1, request); 2852 case -1106507950: /*outcome*/ return new Property("outcome", "code", "The outcome of the request processing.", 0, 1, outcome); 2853 case 583380919: /*disposition*/ return new Property("disposition", "string", "A human readable description of the status of the adjudication.", 0, 1, disposition); 2854 case 1957615864: /*insurer*/ return new Property("insurer", "Reference(Organization)", "The Insurer who issued the coverage in question and is the author of the response.", 0, 1, insurer); 2855 case 73049818: /*insurance*/ return new Property("insurance", "", "Financial instruments for reimbursement for the health care products and services.", 0, java.lang.Integer.MAX_VALUE, insurance); 2856 case 522246568: /*preAuthRef*/ return new Property("preAuthRef", "string", "A reference from the Insurer to which these services pertain to be used on further communication and as proof that the request occurred.", 0, 1, preAuthRef); 2857 case 3148996: /*form*/ return new Property("form", "CodeableConcept", "A code for the form to be used for printing the content.", 0, 1, form); 2858 case 96784904: /*error*/ return new Property("error", "", "Errors encountered during the processing of the request.", 0, java.lang.Integer.MAX_VALUE, error); 2859 default: return super.getNamedProperty(_hash, _name, _checkValid); 2860 } 2861 2862 } 2863 2864 @Override 2865 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 2866 switch (hash) { 2867 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 2868 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<FinancialResourceStatusCodes> 2869 case -220463842: /*purpose*/ return this.purpose == null ? new Base[0] : this.purpose.toArray(new Base[this.purpose.size()]); // Enumeration<EligibilityResponsePurpose> 2870 case -791418107: /*patient*/ return this.patient == null ? new Base[0] : new Base[] {this.patient}; // Reference 2871 case 1379209295: /*serviced*/ return this.serviced == null ? new Base[0] : new Base[] {this.serviced}; // DataType 2872 case 1028554472: /*created*/ return this.created == null ? new Base[0] : new Base[] {this.created}; // DateTimeType 2873 case 693934258: /*requestor*/ return this.requestor == null ? new Base[0] : new Base[] {this.requestor}; // Reference 2874 case 1095692943: /*request*/ return this.request == null ? new Base[0] : new Base[] {this.request}; // Reference 2875 case -1106507950: /*outcome*/ return this.outcome == null ? new Base[0] : new Base[] {this.outcome}; // Enumeration<ClaimProcessingCodes> 2876 case 583380919: /*disposition*/ return this.disposition == null ? new Base[0] : new Base[] {this.disposition}; // StringType 2877 case 1957615864: /*insurer*/ return this.insurer == null ? new Base[0] : new Base[] {this.insurer}; // Reference 2878 case 73049818: /*insurance*/ return this.insurance == null ? new Base[0] : this.insurance.toArray(new Base[this.insurance.size()]); // InsuranceComponent 2879 case 522246568: /*preAuthRef*/ return this.preAuthRef == null ? new Base[0] : new Base[] {this.preAuthRef}; // StringType 2880 case 3148996: /*form*/ return this.form == null ? new Base[0] : new Base[] {this.form}; // CodeableConcept 2881 case 96784904: /*error*/ return this.error == null ? new Base[0] : this.error.toArray(new Base[this.error.size()]); // ErrorsComponent 2882 default: return super.getProperty(hash, name, checkValid); 2883 } 2884 2885 } 2886 2887 @Override 2888 public Base setProperty(int hash, String name, Base value) throws FHIRException { 2889 switch (hash) { 2890 case -1618432855: // identifier 2891 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier 2892 return value; 2893 case -892481550: // status 2894 value = new FinancialResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); 2895 this.status = (Enumeration) value; // Enumeration<FinancialResourceStatusCodes> 2896 return value; 2897 case -220463842: // purpose 2898 value = new EligibilityResponsePurposeEnumFactory().fromType(TypeConvertor.castToCode(value)); 2899 this.getPurpose().add((Enumeration) value); // Enumeration<EligibilityResponsePurpose> 2900 return value; 2901 case -791418107: // patient 2902 this.patient = TypeConvertor.castToReference(value); // Reference 2903 return value; 2904 case 1379209295: // serviced 2905 this.serviced = TypeConvertor.castToType(value); // DataType 2906 return value; 2907 case 1028554472: // created 2908 this.created = TypeConvertor.castToDateTime(value); // DateTimeType 2909 return value; 2910 case 693934258: // requestor 2911 this.requestor = TypeConvertor.castToReference(value); // Reference 2912 return value; 2913 case 1095692943: // request 2914 this.request = TypeConvertor.castToReference(value); // Reference 2915 return value; 2916 case -1106507950: // outcome 2917 value = new ClaimProcessingCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); 2918 this.outcome = (Enumeration) value; // Enumeration<ClaimProcessingCodes> 2919 return value; 2920 case 583380919: // disposition 2921 this.disposition = TypeConvertor.castToString(value); // StringType 2922 return value; 2923 case 1957615864: // insurer 2924 this.insurer = TypeConvertor.castToReference(value); // Reference 2925 return value; 2926 case 73049818: // insurance 2927 this.getInsurance().add((InsuranceComponent) value); // InsuranceComponent 2928 return value; 2929 case 522246568: // preAuthRef 2930 this.preAuthRef = TypeConvertor.castToString(value); // StringType 2931 return value; 2932 case 3148996: // form 2933 this.form = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2934 return value; 2935 case 96784904: // error 2936 this.getError().add((ErrorsComponent) value); // ErrorsComponent 2937 return value; 2938 default: return super.setProperty(hash, name, value); 2939 } 2940 2941 } 2942 2943 @Override 2944 public Base setProperty(String name, Base value) throws FHIRException { 2945 if (name.equals("identifier")) { 2946 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); 2947 } else if (name.equals("status")) { 2948 value = new FinancialResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); 2949 this.status = (Enumeration) value; // Enumeration<FinancialResourceStatusCodes> 2950 } else if (name.equals("purpose")) { 2951 value = new EligibilityResponsePurposeEnumFactory().fromType(TypeConvertor.castToCode(value)); 2952 this.getPurpose().add((Enumeration) value); 2953 } else if (name.equals("patient")) { 2954 this.patient = TypeConvertor.castToReference(value); // Reference 2955 } else if (name.equals("serviced[x]")) { 2956 this.serviced = TypeConvertor.castToType(value); // DataType 2957 } else if (name.equals("created")) { 2958 this.created = TypeConvertor.castToDateTime(value); // DateTimeType 2959 } else if (name.equals("requestor")) { 2960 this.requestor = TypeConvertor.castToReference(value); // Reference 2961 } else if (name.equals("request")) { 2962 this.request = TypeConvertor.castToReference(value); // Reference 2963 } else if (name.equals("outcome")) { 2964 value = new ClaimProcessingCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); 2965 this.outcome = (Enumeration) value; // Enumeration<ClaimProcessingCodes> 2966 } else if (name.equals("disposition")) { 2967 this.disposition = TypeConvertor.castToString(value); // StringType 2968 } else if (name.equals("insurer")) { 2969 this.insurer = TypeConvertor.castToReference(value); // Reference 2970 } else if (name.equals("insurance")) { 2971 this.getInsurance().add((InsuranceComponent) value); 2972 } else if (name.equals("preAuthRef")) { 2973 this.preAuthRef = TypeConvertor.castToString(value); // StringType 2974 } else if (name.equals("form")) { 2975 this.form = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2976 } else if (name.equals("error")) { 2977 this.getError().add((ErrorsComponent) value); 2978 } else 2979 return super.setProperty(name, value); 2980 return value; 2981 } 2982 2983 @Override 2984 public Base makeProperty(int hash, String name) throws FHIRException { 2985 switch (hash) { 2986 case -1618432855: return addIdentifier(); 2987 case -892481550: return getStatusElement(); 2988 case -220463842: return addPurposeElement(); 2989 case -791418107: return getPatient(); 2990 case -1927922223: return getServiced(); 2991 case 1379209295: return getServiced(); 2992 case 1028554472: return getCreatedElement(); 2993 case 693934258: return getRequestor(); 2994 case 1095692943: return getRequest(); 2995 case -1106507950: return getOutcomeElement(); 2996 case 583380919: return getDispositionElement(); 2997 case 1957615864: return getInsurer(); 2998 case 73049818: return addInsurance(); 2999 case 522246568: return getPreAuthRefElement(); 3000 case 3148996: return getForm(); 3001 case 96784904: return addError(); 3002 default: return super.makeProperty(hash, name); 3003 } 3004 3005 } 3006 3007 @Override 3008 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 3009 switch (hash) { 3010 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 3011 case -892481550: /*status*/ return new String[] {"code"}; 3012 case -220463842: /*purpose*/ return new String[] {"code"}; 3013 case -791418107: /*patient*/ return new String[] {"Reference"}; 3014 case 1379209295: /*serviced*/ return new String[] {"date", "Period"}; 3015 case 1028554472: /*created*/ return new String[] {"dateTime"}; 3016 case 693934258: /*requestor*/ return new String[] {"Reference"}; 3017 case 1095692943: /*request*/ return new String[] {"Reference"}; 3018 case -1106507950: /*outcome*/ return new String[] {"code"}; 3019 case 583380919: /*disposition*/ return new String[] {"string"}; 3020 case 1957615864: /*insurer*/ return new String[] {"Reference"}; 3021 case 73049818: /*insurance*/ return new String[] {}; 3022 case 522246568: /*preAuthRef*/ return new String[] {"string"}; 3023 case 3148996: /*form*/ return new String[] {"CodeableConcept"}; 3024 case 96784904: /*error*/ return new String[] {}; 3025 default: return super.getTypesForProperty(hash, name); 3026 } 3027 3028 } 3029 3030 @Override 3031 public Base addChild(String name) throws FHIRException { 3032 if (name.equals("identifier")) { 3033 return addIdentifier(); 3034 } 3035 else if (name.equals("status")) { 3036 throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.status"); 3037 } 3038 else if (name.equals("purpose")) { 3039 throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.purpose"); 3040 } 3041 else if (name.equals("patient")) { 3042 this.patient = new Reference(); 3043 return this.patient; 3044 } 3045 else if (name.equals("servicedDate")) { 3046 this.serviced = new DateType(); 3047 return this.serviced; 3048 } 3049 else if (name.equals("servicedPeriod")) { 3050 this.serviced = new Period(); 3051 return this.serviced; 3052 } 3053 else if (name.equals("created")) { 3054 throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.created"); 3055 } 3056 else if (name.equals("requestor")) { 3057 this.requestor = new Reference(); 3058 return this.requestor; 3059 } 3060 else if (name.equals("request")) { 3061 this.request = new Reference(); 3062 return this.request; 3063 } 3064 else if (name.equals("outcome")) { 3065 throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.outcome"); 3066 } 3067 else if (name.equals("disposition")) { 3068 throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.disposition"); 3069 } 3070 else if (name.equals("insurer")) { 3071 this.insurer = new Reference(); 3072 return this.insurer; 3073 } 3074 else if (name.equals("insurance")) { 3075 return addInsurance(); 3076 } 3077 else if (name.equals("preAuthRef")) { 3078 throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityResponse.preAuthRef"); 3079 } 3080 else if (name.equals("form")) { 3081 this.form = new CodeableConcept(); 3082 return this.form; 3083 } 3084 else if (name.equals("error")) { 3085 return addError(); 3086 } 3087 else 3088 return super.addChild(name); 3089 } 3090 3091 public String fhirType() { 3092 return "CoverageEligibilityResponse"; 3093 3094 } 3095 3096 public CoverageEligibilityResponse copy() { 3097 CoverageEligibilityResponse dst = new CoverageEligibilityResponse(); 3098 copyValues(dst); 3099 return dst; 3100 } 3101 3102 public void copyValues(CoverageEligibilityResponse dst) { 3103 super.copyValues(dst); 3104 if (identifier != null) { 3105 dst.identifier = new ArrayList<Identifier>(); 3106 for (Identifier i : identifier) 3107 dst.identifier.add(i.copy()); 3108 }; 3109 dst.status = status == null ? null : status.copy(); 3110 if (purpose != null) { 3111 dst.purpose = new ArrayList<Enumeration<EligibilityResponsePurpose>>(); 3112 for (Enumeration<EligibilityResponsePurpose> i : purpose) 3113 dst.purpose.add(i.copy()); 3114 }; 3115 dst.patient = patient == null ? null : patient.copy(); 3116 dst.serviced = serviced == null ? null : serviced.copy(); 3117 dst.created = created == null ? null : created.copy(); 3118 dst.requestor = requestor == null ? null : requestor.copy(); 3119 dst.request = request == null ? null : request.copy(); 3120 dst.outcome = outcome == null ? null : outcome.copy(); 3121 dst.disposition = disposition == null ? null : disposition.copy(); 3122 dst.insurer = insurer == null ? null : insurer.copy(); 3123 if (insurance != null) { 3124 dst.insurance = new ArrayList<InsuranceComponent>(); 3125 for (InsuranceComponent i : insurance) 3126 dst.insurance.add(i.copy()); 3127 }; 3128 dst.preAuthRef = preAuthRef == null ? null : preAuthRef.copy(); 3129 dst.form = form == null ? null : form.copy(); 3130 if (error != null) { 3131 dst.error = new ArrayList<ErrorsComponent>(); 3132 for (ErrorsComponent i : error) 3133 dst.error.add(i.copy()); 3134 }; 3135 } 3136 3137 protected CoverageEligibilityResponse typedCopy() { 3138 return copy(); 3139 } 3140 3141 @Override 3142 public boolean equalsDeep(Base other_) { 3143 if (!super.equalsDeep(other_)) 3144 return false; 3145 if (!(other_ instanceof CoverageEligibilityResponse)) 3146 return false; 3147 CoverageEligibilityResponse o = (CoverageEligibilityResponse) other_; 3148 return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(purpose, o.purpose, true) 3149 && compareDeep(patient, o.patient, true) && compareDeep(serviced, o.serviced, true) && compareDeep(created, o.created, true) 3150 && compareDeep(requestor, o.requestor, true) && compareDeep(request, o.request, true) && compareDeep(outcome, o.outcome, true) 3151 && compareDeep(disposition, o.disposition, true) && compareDeep(insurer, o.insurer, true) && compareDeep(insurance, o.insurance, true) 3152 && compareDeep(preAuthRef, o.preAuthRef, true) && compareDeep(form, o.form, true) && compareDeep(error, o.error, true) 3153 ; 3154 } 3155 3156 @Override 3157 public boolean equalsShallow(Base other_) { 3158 if (!super.equalsShallow(other_)) 3159 return false; 3160 if (!(other_ instanceof CoverageEligibilityResponse)) 3161 return false; 3162 CoverageEligibilityResponse o = (CoverageEligibilityResponse) other_; 3163 return compareValues(status, o.status, true) && compareValues(purpose, o.purpose, true) && compareValues(created, o.created, true) 3164 && compareValues(outcome, o.outcome, true) && compareValues(disposition, o.disposition, true) && compareValues(preAuthRef, o.preAuthRef, true) 3165 ; 3166 } 3167 3168 public boolean isEmpty() { 3169 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, purpose 3170 , patient, serviced, created, requestor, request, outcome, disposition, insurer 3171 , insurance, preAuthRef, form, error); 3172 } 3173 3174 @Override 3175 public ResourceType getResourceType() { 3176 return ResourceType.CoverageEligibilityResponse; 3177 } 3178 3179 /** 3180 * Search parameter: <b>created</b> 3181 * <p> 3182 * Description: <b>The creation date</b><br> 3183 * Type: <b>date</b><br> 3184 * Path: <b>CoverageEligibilityResponse.created</b><br> 3185 * </p> 3186 */ 3187 @SearchParamDefinition(name="created", path="CoverageEligibilityResponse.created", description="The creation date", type="date" ) 3188 public static final String SP_CREATED = "created"; 3189 /** 3190 * <b>Fluent Client</b> search parameter constant for <b>created</b> 3191 * <p> 3192 * Description: <b>The creation date</b><br> 3193 * Type: <b>date</b><br> 3194 * Path: <b>CoverageEligibilityResponse.created</b><br> 3195 * </p> 3196 */ 3197 public static final ca.uhn.fhir.rest.gclient.DateClientParam CREATED = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_CREATED); 3198 3199 /** 3200 * Search parameter: <b>disposition</b> 3201 * <p> 3202 * Description: <b>The contents of the disposition message</b><br> 3203 * Type: <b>string</b><br> 3204 * Path: <b>CoverageEligibilityResponse.disposition</b><br> 3205 * </p> 3206 */ 3207 @SearchParamDefinition(name="disposition", path="CoverageEligibilityResponse.disposition", description="The contents of the disposition message", type="string" ) 3208 public static final String SP_DISPOSITION = "disposition"; 3209 /** 3210 * <b>Fluent Client</b> search parameter constant for <b>disposition</b> 3211 * <p> 3212 * Description: <b>The contents of the disposition message</b><br> 3213 * Type: <b>string</b><br> 3214 * Path: <b>CoverageEligibilityResponse.disposition</b><br> 3215 * </p> 3216 */ 3217 public static final ca.uhn.fhir.rest.gclient.StringClientParam DISPOSITION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DISPOSITION); 3218 3219 /** 3220 * Search parameter: <b>identifier</b> 3221 * <p> 3222 * Description: <b>The business identifier</b><br> 3223 * Type: <b>token</b><br> 3224 * Path: <b>CoverageEligibilityResponse.identifier</b><br> 3225 * </p> 3226 */ 3227 @SearchParamDefinition(name="identifier", path="CoverageEligibilityResponse.identifier", description="The business identifier", type="token" ) 3228 public static final String SP_IDENTIFIER = "identifier"; 3229 /** 3230 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 3231 * <p> 3232 * Description: <b>The business identifier</b><br> 3233 * Type: <b>token</b><br> 3234 * Path: <b>CoverageEligibilityResponse.identifier</b><br> 3235 * </p> 3236 */ 3237 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 3238 3239 /** 3240 * Search parameter: <b>insurer</b> 3241 * <p> 3242 * Description: <b>The organization which generated this resource</b><br> 3243 * Type: <b>reference</b><br> 3244 * Path: <b>CoverageEligibilityResponse.insurer</b><br> 3245 * </p> 3246 */ 3247 @SearchParamDefinition(name="insurer", path="CoverageEligibilityResponse.insurer", description="The organization which generated this resource", type="reference", target={Organization.class } ) 3248 public static final String SP_INSURER = "insurer"; 3249 /** 3250 * <b>Fluent Client</b> search parameter constant for <b>insurer</b> 3251 * <p> 3252 * Description: <b>The organization which generated this resource</b><br> 3253 * Type: <b>reference</b><br> 3254 * Path: <b>CoverageEligibilityResponse.insurer</b><br> 3255 * </p> 3256 */ 3257 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam INSURER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_INSURER); 3258 3259/** 3260 * Constant for fluent queries to be used to add include statements. Specifies 3261 * the path value of "<b>CoverageEligibilityResponse:insurer</b>". 3262 */ 3263 public static final ca.uhn.fhir.model.api.Include INCLUDE_INSURER = new ca.uhn.fhir.model.api.Include("CoverageEligibilityResponse:insurer").toLocked(); 3264 3265 /** 3266 * Search parameter: <b>outcome</b> 3267 * <p> 3268 * Description: <b>The processing outcome</b><br> 3269 * Type: <b>token</b><br> 3270 * Path: <b>CoverageEligibilityResponse.outcome</b><br> 3271 * </p> 3272 */ 3273 @SearchParamDefinition(name="outcome", path="CoverageEligibilityResponse.outcome", description="The processing outcome", type="token" ) 3274 public static final String SP_OUTCOME = "outcome"; 3275 /** 3276 * <b>Fluent Client</b> search parameter constant for <b>outcome</b> 3277 * <p> 3278 * Description: <b>The processing outcome</b><br> 3279 * Type: <b>token</b><br> 3280 * Path: <b>CoverageEligibilityResponse.outcome</b><br> 3281 * </p> 3282 */ 3283 public static final ca.uhn.fhir.rest.gclient.TokenClientParam OUTCOME = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_OUTCOME); 3284 3285 /** 3286 * Search parameter: <b>patient</b> 3287 * <p> 3288 * Description: <b>The reference to the patient</b><br> 3289 * Type: <b>reference</b><br> 3290 * Path: <b>CoverageEligibilityResponse.patient</b><br> 3291 * </p> 3292 */ 3293 @SearchParamDefinition(name="patient", path="CoverageEligibilityResponse.patient", description="The reference to the patient", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Patient.class } ) 3294 public static final String SP_PATIENT = "patient"; 3295 /** 3296 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 3297 * <p> 3298 * Description: <b>The reference to the patient</b><br> 3299 * Type: <b>reference</b><br> 3300 * Path: <b>CoverageEligibilityResponse.patient</b><br> 3301 * </p> 3302 */ 3303 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); 3304 3305/** 3306 * Constant for fluent queries to be used to add include statements. Specifies 3307 * the path value of "<b>CoverageEligibilityResponse:patient</b>". 3308 */ 3309 public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("CoverageEligibilityResponse:patient").toLocked(); 3310 3311 /** 3312 * Search parameter: <b>request</b> 3313 * <p> 3314 * Description: <b>The EligibilityRequest reference</b><br> 3315 * Type: <b>reference</b><br> 3316 * Path: <b>CoverageEligibilityResponse.request</b><br> 3317 * </p> 3318 */ 3319 @SearchParamDefinition(name="request", path="CoverageEligibilityResponse.request", description="The EligibilityRequest reference", type="reference", target={CoverageEligibilityRequest.class } ) 3320 public static final String SP_REQUEST = "request"; 3321 /** 3322 * <b>Fluent Client</b> search parameter constant for <b>request</b> 3323 * <p> 3324 * Description: <b>The EligibilityRequest reference</b><br> 3325 * Type: <b>reference</b><br> 3326 * Path: <b>CoverageEligibilityResponse.request</b><br> 3327 * </p> 3328 */ 3329 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REQUEST = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REQUEST); 3330 3331/** 3332 * Constant for fluent queries to be used to add include statements. Specifies 3333 * the path value of "<b>CoverageEligibilityResponse:request</b>". 3334 */ 3335 public static final ca.uhn.fhir.model.api.Include INCLUDE_REQUEST = new ca.uhn.fhir.model.api.Include("CoverageEligibilityResponse:request").toLocked(); 3336 3337 /** 3338 * Search parameter: <b>requestor</b> 3339 * <p> 3340 * Description: <b>The EligibilityRequest provider</b><br> 3341 * Type: <b>reference</b><br> 3342 * Path: <b>CoverageEligibilityResponse.requestor</b><br> 3343 * </p> 3344 */ 3345 @SearchParamDefinition(name="requestor", path="CoverageEligibilityResponse.requestor", description="The EligibilityRequest provider", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Organization.class, Practitioner.class, PractitionerRole.class } ) 3346 public static final String SP_REQUESTOR = "requestor"; 3347 /** 3348 * <b>Fluent Client</b> search parameter constant for <b>requestor</b> 3349 * <p> 3350 * Description: <b>The EligibilityRequest provider</b><br> 3351 * Type: <b>reference</b><br> 3352 * Path: <b>CoverageEligibilityResponse.requestor</b><br> 3353 * </p> 3354 */ 3355 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REQUESTOR = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REQUESTOR); 3356 3357/** 3358 * Constant for fluent queries to be used to add include statements. Specifies 3359 * the path value of "<b>CoverageEligibilityResponse:requestor</b>". 3360 */ 3361 public static final ca.uhn.fhir.model.api.Include INCLUDE_REQUESTOR = new ca.uhn.fhir.model.api.Include("CoverageEligibilityResponse:requestor").toLocked(); 3362 3363 /** 3364 * Search parameter: <b>status</b> 3365 * <p> 3366 * Description: <b>The EligibilityRequest status</b><br> 3367 * Type: <b>token</b><br> 3368 * Path: <b>CoverageEligibilityResponse.status</b><br> 3369 * </p> 3370 */ 3371 @SearchParamDefinition(name="status", path="CoverageEligibilityResponse.status", description="The EligibilityRequest status", type="token" ) 3372 public static final String SP_STATUS = "status"; 3373 /** 3374 * <b>Fluent Client</b> search parameter constant for <b>status</b> 3375 * <p> 3376 * Description: <b>The EligibilityRequest status</b><br> 3377 * Type: <b>token</b><br> 3378 * Path: <b>CoverageEligibilityResponse.status</b><br> 3379 * </p> 3380 */ 3381 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 3382 3383 3384} 3385