001package org.hl7.fhir.r5.model; 002 003 004/* 005 * #%L 006 * org.hl7.fhir.r5 007 * %% 008 * Copyright (C) 2014 - 2019 Health Level 7 009 * %% 010 * Licensed under the Apache License, Version 2.0 (the \"License\"); 011 * you may not use this file except in compliance with the License. 012 * You may obtain a copy of the License at 013 * 014 * http://www.apache.org/licenses/LICENSE-2.0 015 * 016 * Unless required by applicable law or agreed to in writing, software 017 * distributed under the License is distributed on an \"AS IS\" BASIS, 018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 019 * See the License for the specific language governing permissions and 020 * limitations under the License. 021 * #L% 022 */ 023 024/* 025 Copyright (c) 2011+, HL7, Inc. 026 All rights reserved. 027 028 Redistribution and use in source and binary forms, with or without modification, \ 029 are permitted provided that the following conditions are met: 030 031 * Redistributions of source code must retain the above copyright notice, this \ 032 list of conditions and the following disclaimer. 033 * Redistributions in binary form must reproduce the above copyright notice, \ 034 this list of conditions and the following disclaimer in the documentation \ 035 and/or other materials provided with the distribution. 036 * Neither the name of HL7 nor the names of its contributors may be used to 037 endorse or promote products derived from this software without specific 038 prior written permission. 039 040 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \ 041 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \ 042 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \ 043 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \ 044 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \ 045 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \ 046 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \ 047 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \ 048 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \ 049 POSSIBILITY OF SUCH DAMAGE. 050 */ 051 052// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent 053 054import java.util.ArrayList; 055import java.util.Date; 056import java.util.List; 057import org.hl7.fhir.utilities.Utilities; 058import org.hl7.fhir.r5.model.Enumerations.*; 059import org.hl7.fhir.instance.model.api.IBaseBackboneElement; 060import org.hl7.fhir.exceptions.FHIRException; 061import org.hl7.fhir.instance.model.api.ICompositeType; 062import ca.uhn.fhir.model.api.annotation.ResourceDef; 063import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 064import org.hl7.fhir.instance.model.api.IBaseBackboneElement; 065import ca.uhn.fhir.model.api.annotation.Child; 066import ca.uhn.fhir.model.api.annotation.ChildOrder; 067import ca.uhn.fhir.model.api.annotation.Description; 068import ca.uhn.fhir.model.api.annotation.Block; 069 070/** 071 * The CoverageEligibilityRequest provides patient and insurance coverage information to an insurer for them to respond, in the form of an CoverageEligibilityResponse, with information regarding whether the stated coverage is valid and in-force and optionally to provide the insurance details of the policy. 072 */ 073@ResourceDef(name="CoverageEligibilityRequest", profile="http://hl7.org/fhir/StructureDefinition/CoverageEligibilityRequest") 074public class CoverageEligibilityRequest extends DomainResource { 075 076 public enum EligibilityRequestPurpose { 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 EligibilityRequestPurpose 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 EligibilityRequestPurpose 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/eligibilityrequest-purpose"; 125 case BENEFITS: return "http://hl7.org/fhir/eligibilityrequest-purpose"; 126 case DISCOVERY: return "http://hl7.org/fhir/eligibilityrequest-purpose"; 127 case VALIDATION: return "http://hl7.org/fhir/eligibilityrequest-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 EligibilityRequestPurposeEnumFactory implements EnumFactory<EligibilityRequestPurpose> { 152 public EligibilityRequestPurpose 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 EligibilityRequestPurpose.AUTHREQUIREMENTS; 158 if ("benefits".equals(codeString)) 159 return EligibilityRequestPurpose.BENEFITS; 160 if ("discovery".equals(codeString)) 161 return EligibilityRequestPurpose.DISCOVERY; 162 if ("validation".equals(codeString)) 163 return EligibilityRequestPurpose.VALIDATION; 164 throw new IllegalArgumentException("Unknown EligibilityRequestPurpose code '"+codeString+"'"); 165 } 166 public Enumeration<EligibilityRequestPurpose> fromType(Base code) throws FHIRException { 167 if (code == null) 168 return null; 169 if (code.isEmpty()) 170 return new Enumeration<EligibilityRequestPurpose>(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<EligibilityRequestPurpose>(this, EligibilityRequestPurpose.AUTHREQUIREMENTS); 176 if ("benefits".equals(codeString)) 177 return new Enumeration<EligibilityRequestPurpose>(this, EligibilityRequestPurpose.BENEFITS); 178 if ("discovery".equals(codeString)) 179 return new Enumeration<EligibilityRequestPurpose>(this, EligibilityRequestPurpose.DISCOVERY); 180 if ("validation".equals(codeString)) 181 return new Enumeration<EligibilityRequestPurpose>(this, EligibilityRequestPurpose.VALIDATION); 182 throw new FHIRException("Unknown EligibilityRequestPurpose code '"+codeString+"'"); 183 } 184 public String toCode(EligibilityRequestPurpose code) { 185 if (code == EligibilityRequestPurpose.AUTHREQUIREMENTS) 186 return "auth-requirements"; 187 if (code == EligibilityRequestPurpose.BENEFITS) 188 return "benefits"; 189 if (code == EligibilityRequestPurpose.DISCOVERY) 190 return "discovery"; 191 if (code == EligibilityRequestPurpose.VALIDATION) 192 return "validation"; 193 return "?"; 194 } 195 public String toSystem(EligibilityRequestPurpose code) { 196 return code.getSystem(); 197 } 198 } 199 200 @Block() 201 public static class SupportingInformationComponent extends BackboneElement implements IBaseBackboneElement { 202 /** 203 * A number to uniquely identify supporting information entries. 204 */ 205 @Child(name = "sequence", type = {PositiveIntType.class}, order=1, min=1, max=1, modifier=false, summary=false) 206 @Description(shortDefinition="Information instance identifier", formalDefinition="A number to uniquely identify supporting information entries." ) 207 protected PositiveIntType sequence; 208 209 /** 210 * Additional data or information such as resources, documents, images etc. including references to the data or the actual inclusion of the data. 211 */ 212 @Child(name = "information", type = {Reference.class}, order=2, min=1, max=1, modifier=false, summary=false) 213 @Description(shortDefinition="Data to be provided", formalDefinition="Additional data or information such as resources, documents, images etc. including references to the data or the actual inclusion of the data." ) 214 protected Reference information; 215 216 /** 217 * The supporting materials are applicable for all detail items, product/servce categories and specific billing codes. 218 */ 219 @Child(name = "appliesToAll", type = {BooleanType.class}, order=3, min=0, max=1, modifier=false, summary=false) 220 @Description(shortDefinition="Applies to all items", formalDefinition="The supporting materials are applicable for all detail items, product/servce categories and specific billing codes." ) 221 protected BooleanType appliesToAll; 222 223 private static final long serialVersionUID = -1430960090L; 224 225 /** 226 * Constructor 227 */ 228 public SupportingInformationComponent() { 229 super(); 230 } 231 232 /** 233 * Constructor 234 */ 235 public SupportingInformationComponent(int sequence, Reference information) { 236 super(); 237 this.setSequence(sequence); 238 this.setInformation(information); 239 } 240 241 /** 242 * @return {@link #sequence} (A number to uniquely identify supporting information entries.). This is the underlying object with id, value and extensions. The accessor "getSequence" gives direct access to the value 243 */ 244 public PositiveIntType getSequenceElement() { 245 if (this.sequence == null) 246 if (Configuration.errorOnAutoCreate()) 247 throw new Error("Attempt to auto-create SupportingInformationComponent.sequence"); 248 else if (Configuration.doAutoCreate()) 249 this.sequence = new PositiveIntType(); // bb 250 return this.sequence; 251 } 252 253 public boolean hasSequenceElement() { 254 return this.sequence != null && !this.sequence.isEmpty(); 255 } 256 257 public boolean hasSequence() { 258 return this.sequence != null && !this.sequence.isEmpty(); 259 } 260 261 /** 262 * @param value {@link #sequence} (A number to uniquely identify supporting information entries.). This is the underlying object with id, value and extensions. The accessor "getSequence" gives direct access to the value 263 */ 264 public SupportingInformationComponent setSequenceElement(PositiveIntType value) { 265 this.sequence = value; 266 return this; 267 } 268 269 /** 270 * @return A number to uniquely identify supporting information entries. 271 */ 272 public int getSequence() { 273 return this.sequence == null || this.sequence.isEmpty() ? 0 : this.sequence.getValue(); 274 } 275 276 /** 277 * @param value A number to uniquely identify supporting information entries. 278 */ 279 public SupportingInformationComponent setSequence(int value) { 280 if (this.sequence == null) 281 this.sequence = new PositiveIntType(); 282 this.sequence.setValue(value); 283 return this; 284 } 285 286 /** 287 * @return {@link #information} (Additional data or information such as resources, documents, images etc. including references to the data or the actual inclusion of the data.) 288 */ 289 public Reference getInformation() { 290 if (this.information == null) 291 if (Configuration.errorOnAutoCreate()) 292 throw new Error("Attempt to auto-create SupportingInformationComponent.information"); 293 else if (Configuration.doAutoCreate()) 294 this.information = new Reference(); // cc 295 return this.information; 296 } 297 298 public boolean hasInformation() { 299 return this.information != null && !this.information.isEmpty(); 300 } 301 302 /** 303 * @param value {@link #information} (Additional data or information such as resources, documents, images etc. including references to the data or the actual inclusion of the data.) 304 */ 305 public SupportingInformationComponent setInformation(Reference value) { 306 this.information = value; 307 return this; 308 } 309 310 /** 311 * @return {@link #appliesToAll} (The supporting materials are applicable for all detail items, product/servce categories and specific billing codes.). This is the underlying object with id, value and extensions. The accessor "getAppliesToAll" gives direct access to the value 312 */ 313 public BooleanType getAppliesToAllElement() { 314 if (this.appliesToAll == null) 315 if (Configuration.errorOnAutoCreate()) 316 throw new Error("Attempt to auto-create SupportingInformationComponent.appliesToAll"); 317 else if (Configuration.doAutoCreate()) 318 this.appliesToAll = new BooleanType(); // bb 319 return this.appliesToAll; 320 } 321 322 public boolean hasAppliesToAllElement() { 323 return this.appliesToAll != null && !this.appliesToAll.isEmpty(); 324 } 325 326 public boolean hasAppliesToAll() { 327 return this.appliesToAll != null && !this.appliesToAll.isEmpty(); 328 } 329 330 /** 331 * @param value {@link #appliesToAll} (The supporting materials are applicable for all detail items, product/servce categories and specific billing codes.). This is the underlying object with id, value and extensions. The accessor "getAppliesToAll" gives direct access to the value 332 */ 333 public SupportingInformationComponent setAppliesToAllElement(BooleanType value) { 334 this.appliesToAll = value; 335 return this; 336 } 337 338 /** 339 * @return The supporting materials are applicable for all detail items, product/servce categories and specific billing codes. 340 */ 341 public boolean getAppliesToAll() { 342 return this.appliesToAll == null || this.appliesToAll.isEmpty() ? false : this.appliesToAll.getValue(); 343 } 344 345 /** 346 * @param value The supporting materials are applicable for all detail items, product/servce categories and specific billing codes. 347 */ 348 public SupportingInformationComponent setAppliesToAll(boolean value) { 349 if (this.appliesToAll == null) 350 this.appliesToAll = new BooleanType(); 351 this.appliesToAll.setValue(value); 352 return this; 353 } 354 355 protected void listChildren(List<Property> children) { 356 super.listChildren(children); 357 children.add(new Property("sequence", "positiveInt", "A number to uniquely identify supporting information entries.", 0, 1, sequence)); 358 children.add(new Property("information", "Reference(Any)", "Additional data or information such as resources, documents, images etc. including references to the data or the actual inclusion of the data.", 0, 1, information)); 359 children.add(new Property("appliesToAll", "boolean", "The supporting materials are applicable for all detail items, product/servce categories and specific billing codes.", 0, 1, appliesToAll)); 360 } 361 362 @Override 363 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 364 switch (_hash) { 365 case 1349547969: /*sequence*/ return new Property("sequence", "positiveInt", "A number to uniquely identify supporting information entries.", 0, 1, sequence); 366 case 1968600364: /*information*/ return new Property("information", "Reference(Any)", "Additional data or information such as resources, documents, images etc. including references to the data or the actual inclusion of the data.", 0, 1, information); 367 case -1096846342: /*appliesToAll*/ return new Property("appliesToAll", "boolean", "The supporting materials are applicable for all detail items, product/servce categories and specific billing codes.", 0, 1, appliesToAll); 368 default: return super.getNamedProperty(_hash, _name, _checkValid); 369 } 370 371 } 372 373 @Override 374 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 375 switch (hash) { 376 case 1349547969: /*sequence*/ return this.sequence == null ? new Base[0] : new Base[] {this.sequence}; // PositiveIntType 377 case 1968600364: /*information*/ return this.information == null ? new Base[0] : new Base[] {this.information}; // Reference 378 case -1096846342: /*appliesToAll*/ return this.appliesToAll == null ? new Base[0] : new Base[] {this.appliesToAll}; // BooleanType 379 default: return super.getProperty(hash, name, checkValid); 380 } 381 382 } 383 384 @Override 385 public Base setProperty(int hash, String name, Base value) throws FHIRException { 386 switch (hash) { 387 case 1349547969: // sequence 388 this.sequence = TypeConvertor.castToPositiveInt(value); // PositiveIntType 389 return value; 390 case 1968600364: // information 391 this.information = TypeConvertor.castToReference(value); // Reference 392 return value; 393 case -1096846342: // appliesToAll 394 this.appliesToAll = TypeConvertor.castToBoolean(value); // BooleanType 395 return value; 396 default: return super.setProperty(hash, name, value); 397 } 398 399 } 400 401 @Override 402 public Base setProperty(String name, Base value) throws FHIRException { 403 if (name.equals("sequence")) { 404 this.sequence = TypeConvertor.castToPositiveInt(value); // PositiveIntType 405 } else if (name.equals("information")) { 406 this.information = TypeConvertor.castToReference(value); // Reference 407 } else if (name.equals("appliesToAll")) { 408 this.appliesToAll = TypeConvertor.castToBoolean(value); // BooleanType 409 } else 410 return super.setProperty(name, value); 411 return value; 412 } 413 414 @Override 415 public Base makeProperty(int hash, String name) throws FHIRException { 416 switch (hash) { 417 case 1349547969: return getSequenceElement(); 418 case 1968600364: return getInformation(); 419 case -1096846342: return getAppliesToAllElement(); 420 default: return super.makeProperty(hash, name); 421 } 422 423 } 424 425 @Override 426 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 427 switch (hash) { 428 case 1349547969: /*sequence*/ return new String[] {"positiveInt"}; 429 case 1968600364: /*information*/ return new String[] {"Reference"}; 430 case -1096846342: /*appliesToAll*/ return new String[] {"boolean"}; 431 default: return super.getTypesForProperty(hash, name); 432 } 433 434 } 435 436 @Override 437 public Base addChild(String name) throws FHIRException { 438 if (name.equals("sequence")) { 439 throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.supportingInfo.sequence"); 440 } 441 else if (name.equals("information")) { 442 this.information = new Reference(); 443 return this.information; 444 } 445 else if (name.equals("appliesToAll")) { 446 throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.supportingInfo.appliesToAll"); 447 } 448 else 449 return super.addChild(name); 450 } 451 452 public SupportingInformationComponent copy() { 453 SupportingInformationComponent dst = new SupportingInformationComponent(); 454 copyValues(dst); 455 return dst; 456 } 457 458 public void copyValues(SupportingInformationComponent dst) { 459 super.copyValues(dst); 460 dst.sequence = sequence == null ? null : sequence.copy(); 461 dst.information = information == null ? null : information.copy(); 462 dst.appliesToAll = appliesToAll == null ? null : appliesToAll.copy(); 463 } 464 465 @Override 466 public boolean equalsDeep(Base other_) { 467 if (!super.equalsDeep(other_)) 468 return false; 469 if (!(other_ instanceof SupportingInformationComponent)) 470 return false; 471 SupportingInformationComponent o = (SupportingInformationComponent) other_; 472 return compareDeep(sequence, o.sequence, true) && compareDeep(information, o.information, true) 473 && compareDeep(appliesToAll, o.appliesToAll, true); 474 } 475 476 @Override 477 public boolean equalsShallow(Base other_) { 478 if (!super.equalsShallow(other_)) 479 return false; 480 if (!(other_ instanceof SupportingInformationComponent)) 481 return false; 482 SupportingInformationComponent o = (SupportingInformationComponent) other_; 483 return compareValues(sequence, o.sequence, true) && compareValues(appliesToAll, o.appliesToAll, true) 484 ; 485 } 486 487 public boolean isEmpty() { 488 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(sequence, information, appliesToAll 489 ); 490 } 491 492 public String fhirType() { 493 return "CoverageEligibilityRequest.supportingInfo"; 494 495 } 496 497 } 498 499 @Block() 500 public static class InsuranceComponent extends BackboneElement implements IBaseBackboneElement { 501 /** 502 * A flag to indicate that this Coverage is to be used for evaluation of this request when set to true. 503 */ 504 @Child(name = "focal", type = {BooleanType.class}, order=1, min=0, max=1, modifier=false, summary=false) 505 @Description(shortDefinition="Applicable coverage", formalDefinition="A flag to indicate that this Coverage is to be used for evaluation of this request when set to true." ) 506 protected BooleanType focal; 507 508 /** 509 * 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. 510 */ 511 @Child(name = "coverage", type = {Coverage.class}, order=2, min=1, max=1, modifier=false, summary=false) 512 @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." ) 513 protected Reference coverage; 514 515 /** 516 * A business agreement number established between the provider and the insurer for special business processing purposes. 517 */ 518 @Child(name = "businessArrangement", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) 519 @Description(shortDefinition="Additional provider contract number", formalDefinition="A business agreement number established between the provider and the insurer for special business processing purposes." ) 520 protected StringType businessArrangement; 521 522 private static final long serialVersionUID = -1656150261L; 523 524 /** 525 * Constructor 526 */ 527 public InsuranceComponent() { 528 super(); 529 } 530 531 /** 532 * Constructor 533 */ 534 public InsuranceComponent(Reference coverage) { 535 super(); 536 this.setCoverage(coverage); 537 } 538 539 /** 540 * @return {@link #focal} (A flag to indicate that this Coverage is to be used for evaluation of this request when set to true.). This is the underlying object with id, value and extensions. The accessor "getFocal" gives direct access to the value 541 */ 542 public BooleanType getFocalElement() { 543 if (this.focal == null) 544 if (Configuration.errorOnAutoCreate()) 545 throw new Error("Attempt to auto-create InsuranceComponent.focal"); 546 else if (Configuration.doAutoCreate()) 547 this.focal = new BooleanType(); // bb 548 return this.focal; 549 } 550 551 public boolean hasFocalElement() { 552 return this.focal != null && !this.focal.isEmpty(); 553 } 554 555 public boolean hasFocal() { 556 return this.focal != null && !this.focal.isEmpty(); 557 } 558 559 /** 560 * @param value {@link #focal} (A flag to indicate that this Coverage is to be used for evaluation of this request when set to true.). This is the underlying object with id, value and extensions. The accessor "getFocal" gives direct access to the value 561 */ 562 public InsuranceComponent setFocalElement(BooleanType value) { 563 this.focal = value; 564 return this; 565 } 566 567 /** 568 * @return A flag to indicate that this Coverage is to be used for evaluation of this request when set to true. 569 */ 570 public boolean getFocal() { 571 return this.focal == null || this.focal.isEmpty() ? false : this.focal.getValue(); 572 } 573 574 /** 575 * @param value A flag to indicate that this Coverage is to be used for evaluation of this request when set to true. 576 */ 577 public InsuranceComponent setFocal(boolean value) { 578 if (this.focal == null) 579 this.focal = new BooleanType(); 580 this.focal.setValue(value); 581 return this; 582 } 583 584 /** 585 * @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.) 586 */ 587 public Reference getCoverage() { 588 if (this.coverage == null) 589 if (Configuration.errorOnAutoCreate()) 590 throw new Error("Attempt to auto-create InsuranceComponent.coverage"); 591 else if (Configuration.doAutoCreate()) 592 this.coverage = new Reference(); // cc 593 return this.coverage; 594 } 595 596 public boolean hasCoverage() { 597 return this.coverage != null && !this.coverage.isEmpty(); 598 } 599 600 /** 601 * @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.) 602 */ 603 public InsuranceComponent setCoverage(Reference value) { 604 this.coverage = value; 605 return this; 606 } 607 608 /** 609 * @return {@link #businessArrangement} (A business agreement number established between the provider and the insurer for special business processing purposes.). This is the underlying object with id, value and extensions. The accessor "getBusinessArrangement" gives direct access to the value 610 */ 611 public StringType getBusinessArrangementElement() { 612 if (this.businessArrangement == null) 613 if (Configuration.errorOnAutoCreate()) 614 throw new Error("Attempt to auto-create InsuranceComponent.businessArrangement"); 615 else if (Configuration.doAutoCreate()) 616 this.businessArrangement = new StringType(); // bb 617 return this.businessArrangement; 618 } 619 620 public boolean hasBusinessArrangementElement() { 621 return this.businessArrangement != null && !this.businessArrangement.isEmpty(); 622 } 623 624 public boolean hasBusinessArrangement() { 625 return this.businessArrangement != null && !this.businessArrangement.isEmpty(); 626 } 627 628 /** 629 * @param value {@link #businessArrangement} (A business agreement number established between the provider and the insurer for special business processing purposes.). This is the underlying object with id, value and extensions. The accessor "getBusinessArrangement" gives direct access to the value 630 */ 631 public InsuranceComponent setBusinessArrangementElement(StringType value) { 632 this.businessArrangement = value; 633 return this; 634 } 635 636 /** 637 * @return A business agreement number established between the provider and the insurer for special business processing purposes. 638 */ 639 public String getBusinessArrangement() { 640 return this.businessArrangement == null ? null : this.businessArrangement.getValue(); 641 } 642 643 /** 644 * @param value A business agreement number established between the provider and the insurer for special business processing purposes. 645 */ 646 public InsuranceComponent setBusinessArrangement(String value) { 647 if (Utilities.noString(value)) 648 this.businessArrangement = null; 649 else { 650 if (this.businessArrangement == null) 651 this.businessArrangement = new StringType(); 652 this.businessArrangement.setValue(value); 653 } 654 return this; 655 } 656 657 protected void listChildren(List<Property> children) { 658 super.listChildren(children); 659 children.add(new Property("focal", "boolean", "A flag to indicate that this Coverage is to be used for evaluation of this request when set to true.", 0, 1, focal)); 660 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)); 661 children.add(new Property("businessArrangement", "string", "A business agreement number established between the provider and the insurer for special business processing purposes.", 0, 1, businessArrangement)); 662 } 663 664 @Override 665 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 666 switch (_hash) { 667 case 97604197: /*focal*/ return new Property("focal", "boolean", "A flag to indicate that this Coverage is to be used for evaluation of this request when set to true.", 0, 1, focal); 668 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); 669 case 259920682: /*businessArrangement*/ return new Property("businessArrangement", "string", "A business agreement number established between the provider and the insurer for special business processing purposes.", 0, 1, businessArrangement); 670 default: return super.getNamedProperty(_hash, _name, _checkValid); 671 } 672 673 } 674 675 @Override 676 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 677 switch (hash) { 678 case 97604197: /*focal*/ return this.focal == null ? new Base[0] : new Base[] {this.focal}; // BooleanType 679 case -351767064: /*coverage*/ return this.coverage == null ? new Base[0] : new Base[] {this.coverage}; // Reference 680 case 259920682: /*businessArrangement*/ return this.businessArrangement == null ? new Base[0] : new Base[] {this.businessArrangement}; // StringType 681 default: return super.getProperty(hash, name, checkValid); 682 } 683 684 } 685 686 @Override 687 public Base setProperty(int hash, String name, Base value) throws FHIRException { 688 switch (hash) { 689 case 97604197: // focal 690 this.focal = TypeConvertor.castToBoolean(value); // BooleanType 691 return value; 692 case -351767064: // coverage 693 this.coverage = TypeConvertor.castToReference(value); // Reference 694 return value; 695 case 259920682: // businessArrangement 696 this.businessArrangement = TypeConvertor.castToString(value); // StringType 697 return value; 698 default: return super.setProperty(hash, name, value); 699 } 700 701 } 702 703 @Override 704 public Base setProperty(String name, Base value) throws FHIRException { 705 if (name.equals("focal")) { 706 this.focal = TypeConvertor.castToBoolean(value); // BooleanType 707 } else if (name.equals("coverage")) { 708 this.coverage = TypeConvertor.castToReference(value); // Reference 709 } else if (name.equals("businessArrangement")) { 710 this.businessArrangement = TypeConvertor.castToString(value); // StringType 711 } else 712 return super.setProperty(name, value); 713 return value; 714 } 715 716 @Override 717 public Base makeProperty(int hash, String name) throws FHIRException { 718 switch (hash) { 719 case 97604197: return getFocalElement(); 720 case -351767064: return getCoverage(); 721 case 259920682: return getBusinessArrangementElement(); 722 default: return super.makeProperty(hash, name); 723 } 724 725 } 726 727 @Override 728 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 729 switch (hash) { 730 case 97604197: /*focal*/ return new String[] {"boolean"}; 731 case -351767064: /*coverage*/ return new String[] {"Reference"}; 732 case 259920682: /*businessArrangement*/ return new String[] {"string"}; 733 default: return super.getTypesForProperty(hash, name); 734 } 735 736 } 737 738 @Override 739 public Base addChild(String name) throws FHIRException { 740 if (name.equals("focal")) { 741 throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.insurance.focal"); 742 } 743 else if (name.equals("coverage")) { 744 this.coverage = new Reference(); 745 return this.coverage; 746 } 747 else if (name.equals("businessArrangement")) { 748 throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.insurance.businessArrangement"); 749 } 750 else 751 return super.addChild(name); 752 } 753 754 public InsuranceComponent copy() { 755 InsuranceComponent dst = new InsuranceComponent(); 756 copyValues(dst); 757 return dst; 758 } 759 760 public void copyValues(InsuranceComponent dst) { 761 super.copyValues(dst); 762 dst.focal = focal == null ? null : focal.copy(); 763 dst.coverage = coverage == null ? null : coverage.copy(); 764 dst.businessArrangement = businessArrangement == null ? null : businessArrangement.copy(); 765 } 766 767 @Override 768 public boolean equalsDeep(Base other_) { 769 if (!super.equalsDeep(other_)) 770 return false; 771 if (!(other_ instanceof InsuranceComponent)) 772 return false; 773 InsuranceComponent o = (InsuranceComponent) other_; 774 return compareDeep(focal, o.focal, true) && compareDeep(coverage, o.coverage, true) && compareDeep(businessArrangement, o.businessArrangement, true) 775 ; 776 } 777 778 @Override 779 public boolean equalsShallow(Base other_) { 780 if (!super.equalsShallow(other_)) 781 return false; 782 if (!(other_ instanceof InsuranceComponent)) 783 return false; 784 InsuranceComponent o = (InsuranceComponent) other_; 785 return compareValues(focal, o.focal, true) && compareValues(businessArrangement, o.businessArrangement, true) 786 ; 787 } 788 789 public boolean isEmpty() { 790 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(focal, coverage, businessArrangement 791 ); 792 } 793 794 public String fhirType() { 795 return "CoverageEligibilityRequest.insurance"; 796 797 } 798 799 } 800 801 @Block() 802 public static class DetailsComponent extends BackboneElement implements IBaseBackboneElement { 803 /** 804 * Exceptions, special conditions and supporting information applicable for this service or product line. 805 */ 806 @Child(name = "supportingInfoSequence", type = {PositiveIntType.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 807 @Description(shortDefinition="Applicable exception or supporting information", formalDefinition="Exceptions, special conditions and supporting information applicable for this service or product line." ) 808 protected List<PositiveIntType> supportingInfoSequence; 809 810 /** 811 * Code to identify the general type of benefits under which products and services are provided. 812 */ 813 @Child(name = "category", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) 814 @Description(shortDefinition="Benefit classification", formalDefinition="Code to identify the general type of benefits under which products and services are provided." ) 815 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/ex-benefitcategory") 816 protected CodeableConcept category; 817 818 /** 819 * This contains the product, service, drug or other billing code for the item. 820 */ 821 @Child(name = "productOrService", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=false) 822 @Description(shortDefinition="Billing, service, product, or drug code", formalDefinition="This contains the product, service, drug or other billing code for the item." ) 823 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/service-uscls") 824 protected CodeableConcept productOrService; 825 826 /** 827 * Item typification or modifiers codes to convey additional context for the product or service. 828 */ 829 @Child(name = "modifier", type = {CodeableConcept.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 830 @Description(shortDefinition="Product or service billing modifiers", formalDefinition="Item typification or modifiers codes to convey additional context for the product or service." ) 831 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/claim-modifiers") 832 protected List<CodeableConcept> modifier; 833 834 /** 835 * The practitioner who is responsible for the product or service to be rendered to the patient. 836 */ 837 @Child(name = "provider", type = {Practitioner.class, PractitionerRole.class}, order=5, min=0, max=1, modifier=false, summary=false) 838 @Description(shortDefinition="Perfoming practitioner", formalDefinition="The practitioner who is responsible for the product or service to be rendered to the patient." ) 839 protected Reference provider; 840 841 /** 842 * The number of repetitions of a service or product. 843 */ 844 @Child(name = "quantity", type = {Quantity.class}, order=6, min=0, max=1, modifier=false, summary=false) 845 @Description(shortDefinition="Count of products or services", formalDefinition="The number of repetitions of a service or product." ) 846 protected Quantity quantity; 847 848 /** 849 * The amount charged to the patient by the provider for a single unit. 850 */ 851 @Child(name = "unitPrice", type = {Money.class}, order=7, min=0, max=1, modifier=false, summary=false) 852 @Description(shortDefinition="Fee, charge or cost per item", formalDefinition="The amount charged to the patient by the provider for a single unit." ) 853 protected Money unitPrice; 854 855 /** 856 * Facility where the services will be provided. 857 */ 858 @Child(name = "facility", type = {Location.class, Organization.class}, order=8, min=0, max=1, modifier=false, summary=false) 859 @Description(shortDefinition="Servicing facility", formalDefinition="Facility where the services will be provided." ) 860 protected Reference facility; 861 862 /** 863 * Patient diagnosis for which care is sought. 864 */ 865 @Child(name = "diagnosis", type = {}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 866 @Description(shortDefinition="Applicable diagnosis", formalDefinition="Patient diagnosis for which care is sought." ) 867 protected List<DiagnosisComponent> diagnosis; 868 869 /** 870 * The plan/proposal/order describing the proposed service in detail. 871 */ 872 @Child(name = "detail", type = {Reference.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 873 @Description(shortDefinition="Product or service details", formalDefinition="The plan/proposal/order describing the proposed service in detail." ) 874 protected List<Reference> detail; 875 876 private static final long serialVersionUID = 1615052611L; 877 878 /** 879 * Constructor 880 */ 881 public DetailsComponent() { 882 super(); 883 } 884 885 /** 886 * @return {@link #supportingInfoSequence} (Exceptions, special conditions and supporting information applicable for this service or product line.) 887 */ 888 public List<PositiveIntType> getSupportingInfoSequence() { 889 if (this.supportingInfoSequence == null) 890 this.supportingInfoSequence = new ArrayList<PositiveIntType>(); 891 return this.supportingInfoSequence; 892 } 893 894 /** 895 * @return Returns a reference to <code>this</code> for easy method chaining 896 */ 897 public DetailsComponent setSupportingInfoSequence(List<PositiveIntType> theSupportingInfoSequence) { 898 this.supportingInfoSequence = theSupportingInfoSequence; 899 return this; 900 } 901 902 public boolean hasSupportingInfoSequence() { 903 if (this.supportingInfoSequence == null) 904 return false; 905 for (PositiveIntType item : this.supportingInfoSequence) 906 if (!item.isEmpty()) 907 return true; 908 return false; 909 } 910 911 /** 912 * @return {@link #supportingInfoSequence} (Exceptions, special conditions and supporting information applicable for this service or product line.) 913 */ 914 public PositiveIntType addSupportingInfoSequenceElement() {//2 915 PositiveIntType t = new PositiveIntType(); 916 if (this.supportingInfoSequence == null) 917 this.supportingInfoSequence = new ArrayList<PositiveIntType>(); 918 this.supportingInfoSequence.add(t); 919 return t; 920 } 921 922 /** 923 * @param value {@link #supportingInfoSequence} (Exceptions, special conditions and supporting information applicable for this service or product line.) 924 */ 925 public DetailsComponent addSupportingInfoSequence(int value) { //1 926 PositiveIntType t = new PositiveIntType(); 927 t.setValue(value); 928 if (this.supportingInfoSequence == null) 929 this.supportingInfoSequence = new ArrayList<PositiveIntType>(); 930 this.supportingInfoSequence.add(t); 931 return this; 932 } 933 934 /** 935 * @param value {@link #supportingInfoSequence} (Exceptions, special conditions and supporting information applicable for this service or product line.) 936 */ 937 public boolean hasSupportingInfoSequence(int value) { 938 if (this.supportingInfoSequence == null) 939 return false; 940 for (PositiveIntType v : this.supportingInfoSequence) 941 if (v.getValue().equals(value)) // positiveInt 942 return true; 943 return false; 944 } 945 946 /** 947 * @return {@link #category} (Code to identify the general type of benefits under which products and services are provided.) 948 */ 949 public CodeableConcept getCategory() { 950 if (this.category == null) 951 if (Configuration.errorOnAutoCreate()) 952 throw new Error("Attempt to auto-create DetailsComponent.category"); 953 else if (Configuration.doAutoCreate()) 954 this.category = new CodeableConcept(); // cc 955 return this.category; 956 } 957 958 public boolean hasCategory() { 959 return this.category != null && !this.category.isEmpty(); 960 } 961 962 /** 963 * @param value {@link #category} (Code to identify the general type of benefits under which products and services are provided.) 964 */ 965 public DetailsComponent setCategory(CodeableConcept value) { 966 this.category = value; 967 return this; 968 } 969 970 /** 971 * @return {@link #productOrService} (This contains the product, service, drug or other billing code for the item.) 972 */ 973 public CodeableConcept getProductOrService() { 974 if (this.productOrService == null) 975 if (Configuration.errorOnAutoCreate()) 976 throw new Error("Attempt to auto-create DetailsComponent.productOrService"); 977 else if (Configuration.doAutoCreate()) 978 this.productOrService = new CodeableConcept(); // cc 979 return this.productOrService; 980 } 981 982 public boolean hasProductOrService() { 983 return this.productOrService != null && !this.productOrService.isEmpty(); 984 } 985 986 /** 987 * @param value {@link #productOrService} (This contains the product, service, drug or other billing code for the item.) 988 */ 989 public DetailsComponent setProductOrService(CodeableConcept value) { 990 this.productOrService = value; 991 return this; 992 } 993 994 /** 995 * @return {@link #modifier} (Item typification or modifiers codes to convey additional context for the product or service.) 996 */ 997 public List<CodeableConcept> getModifier() { 998 if (this.modifier == null) 999 this.modifier = new ArrayList<CodeableConcept>(); 1000 return this.modifier; 1001 } 1002 1003 /** 1004 * @return Returns a reference to <code>this</code> for easy method chaining 1005 */ 1006 public DetailsComponent setModifier(List<CodeableConcept> theModifier) { 1007 this.modifier = theModifier; 1008 return this; 1009 } 1010 1011 public boolean hasModifier() { 1012 if (this.modifier == null) 1013 return false; 1014 for (CodeableConcept item : this.modifier) 1015 if (!item.isEmpty()) 1016 return true; 1017 return false; 1018 } 1019 1020 public CodeableConcept addModifier() { //3 1021 CodeableConcept t = new CodeableConcept(); 1022 if (this.modifier == null) 1023 this.modifier = new ArrayList<CodeableConcept>(); 1024 this.modifier.add(t); 1025 return t; 1026 } 1027 1028 public DetailsComponent addModifier(CodeableConcept t) { //3 1029 if (t == null) 1030 return this; 1031 if (this.modifier == null) 1032 this.modifier = new ArrayList<CodeableConcept>(); 1033 this.modifier.add(t); 1034 return this; 1035 } 1036 1037 /** 1038 * @return The first repetition of repeating field {@link #modifier}, creating it if it does not already exist {3} 1039 */ 1040 public CodeableConcept getModifierFirstRep() { 1041 if (getModifier().isEmpty()) { 1042 addModifier(); 1043 } 1044 return getModifier().get(0); 1045 } 1046 1047 /** 1048 * @return {@link #provider} (The practitioner who is responsible for the product or service to be rendered to the patient.) 1049 */ 1050 public Reference getProvider() { 1051 if (this.provider == null) 1052 if (Configuration.errorOnAutoCreate()) 1053 throw new Error("Attempt to auto-create DetailsComponent.provider"); 1054 else if (Configuration.doAutoCreate()) 1055 this.provider = new Reference(); // cc 1056 return this.provider; 1057 } 1058 1059 public boolean hasProvider() { 1060 return this.provider != null && !this.provider.isEmpty(); 1061 } 1062 1063 /** 1064 * @param value {@link #provider} (The practitioner who is responsible for the product or service to be rendered to the patient.) 1065 */ 1066 public DetailsComponent setProvider(Reference value) { 1067 this.provider = value; 1068 return this; 1069 } 1070 1071 /** 1072 * @return {@link #quantity} (The number of repetitions of a service or product.) 1073 */ 1074 public Quantity getQuantity() { 1075 if (this.quantity == null) 1076 if (Configuration.errorOnAutoCreate()) 1077 throw new Error("Attempt to auto-create DetailsComponent.quantity"); 1078 else if (Configuration.doAutoCreate()) 1079 this.quantity = new Quantity(); // cc 1080 return this.quantity; 1081 } 1082 1083 public boolean hasQuantity() { 1084 return this.quantity != null && !this.quantity.isEmpty(); 1085 } 1086 1087 /** 1088 * @param value {@link #quantity} (The number of repetitions of a service or product.) 1089 */ 1090 public DetailsComponent setQuantity(Quantity value) { 1091 this.quantity = value; 1092 return this; 1093 } 1094 1095 /** 1096 * @return {@link #unitPrice} (The amount charged to the patient by the provider for a single unit.) 1097 */ 1098 public Money getUnitPrice() { 1099 if (this.unitPrice == null) 1100 if (Configuration.errorOnAutoCreate()) 1101 throw new Error("Attempt to auto-create DetailsComponent.unitPrice"); 1102 else if (Configuration.doAutoCreate()) 1103 this.unitPrice = new Money(); // cc 1104 return this.unitPrice; 1105 } 1106 1107 public boolean hasUnitPrice() { 1108 return this.unitPrice != null && !this.unitPrice.isEmpty(); 1109 } 1110 1111 /** 1112 * @param value {@link #unitPrice} (The amount charged to the patient by the provider for a single unit.) 1113 */ 1114 public DetailsComponent setUnitPrice(Money value) { 1115 this.unitPrice = value; 1116 return this; 1117 } 1118 1119 /** 1120 * @return {@link #facility} (Facility where the services will be provided.) 1121 */ 1122 public Reference getFacility() { 1123 if (this.facility == null) 1124 if (Configuration.errorOnAutoCreate()) 1125 throw new Error("Attempt to auto-create DetailsComponent.facility"); 1126 else if (Configuration.doAutoCreate()) 1127 this.facility = new Reference(); // cc 1128 return this.facility; 1129 } 1130 1131 public boolean hasFacility() { 1132 return this.facility != null && !this.facility.isEmpty(); 1133 } 1134 1135 /** 1136 * @param value {@link #facility} (Facility where the services will be provided.) 1137 */ 1138 public DetailsComponent setFacility(Reference value) { 1139 this.facility = value; 1140 return this; 1141 } 1142 1143 /** 1144 * @return {@link #diagnosis} (Patient diagnosis for which care is sought.) 1145 */ 1146 public List<DiagnosisComponent> getDiagnosis() { 1147 if (this.diagnosis == null) 1148 this.diagnosis = new ArrayList<DiagnosisComponent>(); 1149 return this.diagnosis; 1150 } 1151 1152 /** 1153 * @return Returns a reference to <code>this</code> for easy method chaining 1154 */ 1155 public DetailsComponent setDiagnosis(List<DiagnosisComponent> theDiagnosis) { 1156 this.diagnosis = theDiagnosis; 1157 return this; 1158 } 1159 1160 public boolean hasDiagnosis() { 1161 if (this.diagnosis == null) 1162 return false; 1163 for (DiagnosisComponent item : this.diagnosis) 1164 if (!item.isEmpty()) 1165 return true; 1166 return false; 1167 } 1168 1169 public DiagnosisComponent addDiagnosis() { //3 1170 DiagnosisComponent t = new DiagnosisComponent(); 1171 if (this.diagnosis == null) 1172 this.diagnosis = new ArrayList<DiagnosisComponent>(); 1173 this.diagnosis.add(t); 1174 return t; 1175 } 1176 1177 public DetailsComponent addDiagnosis(DiagnosisComponent t) { //3 1178 if (t == null) 1179 return this; 1180 if (this.diagnosis == null) 1181 this.diagnosis = new ArrayList<DiagnosisComponent>(); 1182 this.diagnosis.add(t); 1183 return this; 1184 } 1185 1186 /** 1187 * @return The first repetition of repeating field {@link #diagnosis}, creating it if it does not already exist {3} 1188 */ 1189 public DiagnosisComponent getDiagnosisFirstRep() { 1190 if (getDiagnosis().isEmpty()) { 1191 addDiagnosis(); 1192 } 1193 return getDiagnosis().get(0); 1194 } 1195 1196 /** 1197 * @return {@link #detail} (The plan/proposal/order describing the proposed service in detail.) 1198 */ 1199 public List<Reference> getDetail() { 1200 if (this.detail == null) 1201 this.detail = new ArrayList<Reference>(); 1202 return this.detail; 1203 } 1204 1205 /** 1206 * @return Returns a reference to <code>this</code> for easy method chaining 1207 */ 1208 public DetailsComponent setDetail(List<Reference> theDetail) { 1209 this.detail = theDetail; 1210 return this; 1211 } 1212 1213 public boolean hasDetail() { 1214 if (this.detail == null) 1215 return false; 1216 for (Reference item : this.detail) 1217 if (!item.isEmpty()) 1218 return true; 1219 return false; 1220 } 1221 1222 public Reference addDetail() { //3 1223 Reference t = new Reference(); 1224 if (this.detail == null) 1225 this.detail = new ArrayList<Reference>(); 1226 this.detail.add(t); 1227 return t; 1228 } 1229 1230 public DetailsComponent addDetail(Reference t) { //3 1231 if (t == null) 1232 return this; 1233 if (this.detail == null) 1234 this.detail = new ArrayList<Reference>(); 1235 this.detail.add(t); 1236 return this; 1237 } 1238 1239 /** 1240 * @return The first repetition of repeating field {@link #detail}, creating it if it does not already exist {3} 1241 */ 1242 public Reference getDetailFirstRep() { 1243 if (getDetail().isEmpty()) { 1244 addDetail(); 1245 } 1246 return getDetail().get(0); 1247 } 1248 1249 protected void listChildren(List<Property> children) { 1250 super.listChildren(children); 1251 children.add(new Property("supportingInfoSequence", "positiveInt", "Exceptions, special conditions and supporting information applicable for this service or product line.", 0, java.lang.Integer.MAX_VALUE, supportingInfoSequence)); 1252 children.add(new Property("category", "CodeableConcept", "Code to identify the general type of benefits under which products and services are provided.", 0, 1, category)); 1253 children.add(new Property("productOrService", "CodeableConcept", "This contains the product, service, drug or other billing code for the item.", 0, 1, productOrService)); 1254 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)); 1255 children.add(new Property("provider", "Reference(Practitioner|PractitionerRole)", "The practitioner who is responsible for the product or service to be rendered to the patient.", 0, 1, provider)); 1256 children.add(new Property("quantity", "Quantity", "The number of repetitions of a service or product.", 0, 1, quantity)); 1257 children.add(new Property("unitPrice", "Money", "The amount charged to the patient by the provider for a single unit.", 0, 1, unitPrice)); 1258 children.add(new Property("facility", "Reference(Location|Organization)", "Facility where the services will be provided.", 0, 1, facility)); 1259 children.add(new Property("diagnosis", "", "Patient diagnosis for which care is sought.", 0, java.lang.Integer.MAX_VALUE, diagnosis)); 1260 children.add(new Property("detail", "Reference(Any)", "The plan/proposal/order describing the proposed service in detail.", 0, java.lang.Integer.MAX_VALUE, detail)); 1261 } 1262 1263 @Override 1264 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1265 switch (_hash) { 1266 case -595860510: /*supportingInfoSequence*/ return new Property("supportingInfoSequence", "positiveInt", "Exceptions, special conditions and supporting information applicable for this service or product line.", 0, java.lang.Integer.MAX_VALUE, supportingInfoSequence); 1267 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); 1268 case 1957227299: /*productOrService*/ return new Property("productOrService", "CodeableConcept", "This contains the product, service, drug or other billing code for the item.", 0, 1, productOrService); 1269 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); 1270 case -987494927: /*provider*/ return new Property("provider", "Reference(Practitioner|PractitionerRole)", "The practitioner who is responsible for the product or service to be rendered to the patient.", 0, 1, provider); 1271 case -1285004149: /*quantity*/ return new Property("quantity", "Quantity", "The number of repetitions of a service or product.", 0, 1, quantity); 1272 case -486196699: /*unitPrice*/ return new Property("unitPrice", "Money", "The amount charged to the patient by the provider for a single unit.", 0, 1, unitPrice); 1273 case 501116579: /*facility*/ return new Property("facility", "Reference(Location|Organization)", "Facility where the services will be provided.", 0, 1, facility); 1274 case 1196993265: /*diagnosis*/ return new Property("diagnosis", "", "Patient diagnosis for which care is sought.", 0, java.lang.Integer.MAX_VALUE, diagnosis); 1275 case -1335224239: /*detail*/ return new Property("detail", "Reference(Any)", "The plan/proposal/order describing the proposed service in detail.", 0, java.lang.Integer.MAX_VALUE, detail); 1276 default: return super.getNamedProperty(_hash, _name, _checkValid); 1277 } 1278 1279 } 1280 1281 @Override 1282 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1283 switch (hash) { 1284 case -595860510: /*supportingInfoSequence*/ return this.supportingInfoSequence == null ? new Base[0] : this.supportingInfoSequence.toArray(new Base[this.supportingInfoSequence.size()]); // PositiveIntType 1285 case 50511102: /*category*/ return this.category == null ? new Base[0] : new Base[] {this.category}; // CodeableConcept 1286 case 1957227299: /*productOrService*/ return this.productOrService == null ? new Base[0] : new Base[] {this.productOrService}; // CodeableConcept 1287 case -615513385: /*modifier*/ return this.modifier == null ? new Base[0] : this.modifier.toArray(new Base[this.modifier.size()]); // CodeableConcept 1288 case -987494927: /*provider*/ return this.provider == null ? new Base[0] : new Base[] {this.provider}; // Reference 1289 case -1285004149: /*quantity*/ return this.quantity == null ? new Base[0] : new Base[] {this.quantity}; // Quantity 1290 case -486196699: /*unitPrice*/ return this.unitPrice == null ? new Base[0] : new Base[] {this.unitPrice}; // Money 1291 case 501116579: /*facility*/ return this.facility == null ? new Base[0] : new Base[] {this.facility}; // Reference 1292 case 1196993265: /*diagnosis*/ return this.diagnosis == null ? new Base[0] : this.diagnosis.toArray(new Base[this.diagnosis.size()]); // DiagnosisComponent 1293 case -1335224239: /*detail*/ return this.detail == null ? new Base[0] : this.detail.toArray(new Base[this.detail.size()]); // Reference 1294 default: return super.getProperty(hash, name, checkValid); 1295 } 1296 1297 } 1298 1299 @Override 1300 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1301 switch (hash) { 1302 case -595860510: // supportingInfoSequence 1303 this.getSupportingInfoSequence().add(TypeConvertor.castToPositiveInt(value)); // PositiveIntType 1304 return value; 1305 case 50511102: // category 1306 this.category = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1307 return value; 1308 case 1957227299: // productOrService 1309 this.productOrService = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1310 return value; 1311 case -615513385: // modifier 1312 this.getModifier().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 1313 return value; 1314 case -987494927: // provider 1315 this.provider = TypeConvertor.castToReference(value); // Reference 1316 return value; 1317 case -1285004149: // quantity 1318 this.quantity = TypeConvertor.castToQuantity(value); // Quantity 1319 return value; 1320 case -486196699: // unitPrice 1321 this.unitPrice = TypeConvertor.castToMoney(value); // Money 1322 return value; 1323 case 501116579: // facility 1324 this.facility = TypeConvertor.castToReference(value); // Reference 1325 return value; 1326 case 1196993265: // diagnosis 1327 this.getDiagnosis().add((DiagnosisComponent) value); // DiagnosisComponent 1328 return value; 1329 case -1335224239: // detail 1330 this.getDetail().add(TypeConvertor.castToReference(value)); // Reference 1331 return value; 1332 default: return super.setProperty(hash, name, value); 1333 } 1334 1335 } 1336 1337 @Override 1338 public Base setProperty(String name, Base value) throws FHIRException { 1339 if (name.equals("supportingInfoSequence")) { 1340 this.getSupportingInfoSequence().add(TypeConvertor.castToPositiveInt(value)); 1341 } else if (name.equals("category")) { 1342 this.category = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1343 } else if (name.equals("productOrService")) { 1344 this.productOrService = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1345 } else if (name.equals("modifier")) { 1346 this.getModifier().add(TypeConvertor.castToCodeableConcept(value)); 1347 } else if (name.equals("provider")) { 1348 this.provider = TypeConvertor.castToReference(value); // Reference 1349 } else if (name.equals("quantity")) { 1350 this.quantity = TypeConvertor.castToQuantity(value); // Quantity 1351 } else if (name.equals("unitPrice")) { 1352 this.unitPrice = TypeConvertor.castToMoney(value); // Money 1353 } else if (name.equals("facility")) { 1354 this.facility = TypeConvertor.castToReference(value); // Reference 1355 } else if (name.equals("diagnosis")) { 1356 this.getDiagnosis().add((DiagnosisComponent) value); 1357 } else if (name.equals("detail")) { 1358 this.getDetail().add(TypeConvertor.castToReference(value)); 1359 } else 1360 return super.setProperty(name, value); 1361 return value; 1362 } 1363 1364 @Override 1365 public Base makeProperty(int hash, String name) throws FHIRException { 1366 switch (hash) { 1367 case -595860510: return addSupportingInfoSequenceElement(); 1368 case 50511102: return getCategory(); 1369 case 1957227299: return getProductOrService(); 1370 case -615513385: return addModifier(); 1371 case -987494927: return getProvider(); 1372 case -1285004149: return getQuantity(); 1373 case -486196699: return getUnitPrice(); 1374 case 501116579: return getFacility(); 1375 case 1196993265: return addDiagnosis(); 1376 case -1335224239: return addDetail(); 1377 default: return super.makeProperty(hash, name); 1378 } 1379 1380 } 1381 1382 @Override 1383 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1384 switch (hash) { 1385 case -595860510: /*supportingInfoSequence*/ return new String[] {"positiveInt"}; 1386 case 50511102: /*category*/ return new String[] {"CodeableConcept"}; 1387 case 1957227299: /*productOrService*/ return new String[] {"CodeableConcept"}; 1388 case -615513385: /*modifier*/ return new String[] {"CodeableConcept"}; 1389 case -987494927: /*provider*/ return new String[] {"Reference"}; 1390 case -1285004149: /*quantity*/ return new String[] {"Quantity"}; 1391 case -486196699: /*unitPrice*/ return new String[] {"Money"}; 1392 case 501116579: /*facility*/ return new String[] {"Reference"}; 1393 case 1196993265: /*diagnosis*/ return new String[] {}; 1394 case -1335224239: /*detail*/ return new String[] {"Reference"}; 1395 default: return super.getTypesForProperty(hash, name); 1396 } 1397 1398 } 1399 1400 @Override 1401 public Base addChild(String name) throws FHIRException { 1402 if (name.equals("supportingInfoSequence")) { 1403 throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.item.supportingInfoSequence"); 1404 } 1405 else if (name.equals("category")) { 1406 this.category = new CodeableConcept(); 1407 return this.category; 1408 } 1409 else if (name.equals("productOrService")) { 1410 this.productOrService = new CodeableConcept(); 1411 return this.productOrService; 1412 } 1413 else if (name.equals("modifier")) { 1414 return addModifier(); 1415 } 1416 else if (name.equals("provider")) { 1417 this.provider = new Reference(); 1418 return this.provider; 1419 } 1420 else if (name.equals("quantity")) { 1421 this.quantity = new Quantity(); 1422 return this.quantity; 1423 } 1424 else if (name.equals("unitPrice")) { 1425 this.unitPrice = new Money(); 1426 return this.unitPrice; 1427 } 1428 else if (name.equals("facility")) { 1429 this.facility = new Reference(); 1430 return this.facility; 1431 } 1432 else if (name.equals("diagnosis")) { 1433 return addDiagnosis(); 1434 } 1435 else if (name.equals("detail")) { 1436 return addDetail(); 1437 } 1438 else 1439 return super.addChild(name); 1440 } 1441 1442 public DetailsComponent copy() { 1443 DetailsComponent dst = new DetailsComponent(); 1444 copyValues(dst); 1445 return dst; 1446 } 1447 1448 public void copyValues(DetailsComponent dst) { 1449 super.copyValues(dst); 1450 if (supportingInfoSequence != null) { 1451 dst.supportingInfoSequence = new ArrayList<PositiveIntType>(); 1452 for (PositiveIntType i : supportingInfoSequence) 1453 dst.supportingInfoSequence.add(i.copy()); 1454 }; 1455 dst.category = category == null ? null : category.copy(); 1456 dst.productOrService = productOrService == null ? null : productOrService.copy(); 1457 if (modifier != null) { 1458 dst.modifier = new ArrayList<CodeableConcept>(); 1459 for (CodeableConcept i : modifier) 1460 dst.modifier.add(i.copy()); 1461 }; 1462 dst.provider = provider == null ? null : provider.copy(); 1463 dst.quantity = quantity == null ? null : quantity.copy(); 1464 dst.unitPrice = unitPrice == null ? null : unitPrice.copy(); 1465 dst.facility = facility == null ? null : facility.copy(); 1466 if (diagnosis != null) { 1467 dst.diagnosis = new ArrayList<DiagnosisComponent>(); 1468 for (DiagnosisComponent i : diagnosis) 1469 dst.diagnosis.add(i.copy()); 1470 }; 1471 if (detail != null) { 1472 dst.detail = new ArrayList<Reference>(); 1473 for (Reference i : detail) 1474 dst.detail.add(i.copy()); 1475 }; 1476 } 1477 1478 @Override 1479 public boolean equalsDeep(Base other_) { 1480 if (!super.equalsDeep(other_)) 1481 return false; 1482 if (!(other_ instanceof DetailsComponent)) 1483 return false; 1484 DetailsComponent o = (DetailsComponent) other_; 1485 return compareDeep(supportingInfoSequence, o.supportingInfoSequence, true) && compareDeep(category, o.category, true) 1486 && compareDeep(productOrService, o.productOrService, true) && compareDeep(modifier, o.modifier, true) 1487 && compareDeep(provider, o.provider, true) && compareDeep(quantity, o.quantity, true) && compareDeep(unitPrice, o.unitPrice, true) 1488 && compareDeep(facility, o.facility, true) && compareDeep(diagnosis, o.diagnosis, true) && compareDeep(detail, o.detail, true) 1489 ; 1490 } 1491 1492 @Override 1493 public boolean equalsShallow(Base other_) { 1494 if (!super.equalsShallow(other_)) 1495 return false; 1496 if (!(other_ instanceof DetailsComponent)) 1497 return false; 1498 DetailsComponent o = (DetailsComponent) other_; 1499 return compareValues(supportingInfoSequence, o.supportingInfoSequence, true); 1500 } 1501 1502 public boolean isEmpty() { 1503 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(supportingInfoSequence, category 1504 , productOrService, modifier, provider, quantity, unitPrice, facility, diagnosis 1505 , detail); 1506 } 1507 1508 public String fhirType() { 1509 return "CoverageEligibilityRequest.item"; 1510 1511 } 1512 1513 } 1514 1515 @Block() 1516 public static class DiagnosisComponent extends BackboneElement implements IBaseBackboneElement { 1517 /** 1518 * The nature of illness or problem in a coded form or as a reference to an external defined Condition. 1519 */ 1520 @Child(name = "diagnosis", type = {CodeableConcept.class, Condition.class}, order=1, min=0, max=1, modifier=false, summary=false) 1521 @Description(shortDefinition="Nature of illness or problem", formalDefinition="The nature of illness or problem in a coded form or as a reference to an external defined Condition." ) 1522 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/icd-10") 1523 protected DataType diagnosis; 1524 1525 private static final long serialVersionUID = 947131409L; 1526 1527 /** 1528 * Constructor 1529 */ 1530 public DiagnosisComponent() { 1531 super(); 1532 } 1533 1534 /** 1535 * @return {@link #diagnosis} (The nature of illness or problem in a coded form or as a reference to an external defined Condition.) 1536 */ 1537 public DataType getDiagnosis() { 1538 return this.diagnosis; 1539 } 1540 1541 /** 1542 * @return {@link #diagnosis} (The nature of illness or problem in a coded form or as a reference to an external defined Condition.) 1543 */ 1544 public CodeableConcept getDiagnosisCodeableConcept() throws FHIRException { 1545 if (this.diagnosis == null) 1546 this.diagnosis = new CodeableConcept(); 1547 if (!(this.diagnosis instanceof CodeableConcept)) 1548 throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.diagnosis.getClass().getName()+" was encountered"); 1549 return (CodeableConcept) this.diagnosis; 1550 } 1551 1552 public boolean hasDiagnosisCodeableConcept() { 1553 return this != null && this.diagnosis instanceof CodeableConcept; 1554 } 1555 1556 /** 1557 * @return {@link #diagnosis} (The nature of illness or problem in a coded form or as a reference to an external defined Condition.) 1558 */ 1559 public Reference getDiagnosisReference() throws FHIRException { 1560 if (this.diagnosis == null) 1561 this.diagnosis = new Reference(); 1562 if (!(this.diagnosis instanceof Reference)) 1563 throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.diagnosis.getClass().getName()+" was encountered"); 1564 return (Reference) this.diagnosis; 1565 } 1566 1567 public boolean hasDiagnosisReference() { 1568 return this != null && this.diagnosis instanceof Reference; 1569 } 1570 1571 public boolean hasDiagnosis() { 1572 return this.diagnosis != null && !this.diagnosis.isEmpty(); 1573 } 1574 1575 /** 1576 * @param value {@link #diagnosis} (The nature of illness or problem in a coded form or as a reference to an external defined Condition.) 1577 */ 1578 public DiagnosisComponent setDiagnosis(DataType value) { 1579 if (value != null && !(value instanceof CodeableConcept || value instanceof Reference)) 1580 throw new Error("Not the right type for CoverageEligibilityRequest.item.diagnosis.diagnosis[x]: "+value.fhirType()); 1581 this.diagnosis = value; 1582 return this; 1583 } 1584 1585 protected void listChildren(List<Property> children) { 1586 super.listChildren(children); 1587 children.add(new Property("diagnosis[x]", "CodeableConcept|Reference(Condition)", "The nature of illness or problem in a coded form or as a reference to an external defined Condition.", 0, 1, diagnosis)); 1588 } 1589 1590 @Override 1591 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1592 switch (_hash) { 1593 case -1487009809: /*diagnosis[x]*/ return new Property("diagnosis[x]", "CodeableConcept|Reference(Condition)", "The nature of illness or problem in a coded form or as a reference to an external defined Condition.", 0, 1, diagnosis); 1594 case 1196993265: /*diagnosis*/ return new Property("diagnosis[x]", "CodeableConcept|Reference(Condition)", "The nature of illness or problem in a coded form or as a reference to an external defined Condition.", 0, 1, diagnosis); 1595 case 277781616: /*diagnosisCodeableConcept*/ return new Property("diagnosis[x]", "CodeableConcept", "The nature of illness or problem in a coded form or as a reference to an external defined Condition.", 0, 1, diagnosis); 1596 case 2050454362: /*diagnosisReference*/ return new Property("diagnosis[x]", "Reference(Condition)", "The nature of illness or problem in a coded form or as a reference to an external defined Condition.", 0, 1, diagnosis); 1597 default: return super.getNamedProperty(_hash, _name, _checkValid); 1598 } 1599 1600 } 1601 1602 @Override 1603 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1604 switch (hash) { 1605 case 1196993265: /*diagnosis*/ return this.diagnosis == null ? new Base[0] : new Base[] {this.diagnosis}; // DataType 1606 default: return super.getProperty(hash, name, checkValid); 1607 } 1608 1609 } 1610 1611 @Override 1612 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1613 switch (hash) { 1614 case 1196993265: // diagnosis 1615 this.diagnosis = TypeConvertor.castToType(value); // DataType 1616 return value; 1617 default: return super.setProperty(hash, name, value); 1618 } 1619 1620 } 1621 1622 @Override 1623 public Base setProperty(String name, Base value) throws FHIRException { 1624 if (name.equals("diagnosis[x]")) { 1625 this.diagnosis = TypeConvertor.castToType(value); // DataType 1626 } else 1627 return super.setProperty(name, value); 1628 return value; 1629 } 1630 1631 @Override 1632 public Base makeProperty(int hash, String name) throws FHIRException { 1633 switch (hash) { 1634 case -1487009809: return getDiagnosis(); 1635 case 1196993265: return getDiagnosis(); 1636 default: return super.makeProperty(hash, name); 1637 } 1638 1639 } 1640 1641 @Override 1642 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1643 switch (hash) { 1644 case 1196993265: /*diagnosis*/ return new String[] {"CodeableConcept", "Reference"}; 1645 default: return super.getTypesForProperty(hash, name); 1646 } 1647 1648 } 1649 1650 @Override 1651 public Base addChild(String name) throws FHIRException { 1652 if (name.equals("diagnosisCodeableConcept")) { 1653 this.diagnosis = new CodeableConcept(); 1654 return this.diagnosis; 1655 } 1656 else if (name.equals("diagnosisReference")) { 1657 this.diagnosis = new Reference(); 1658 return this.diagnosis; 1659 } 1660 else 1661 return super.addChild(name); 1662 } 1663 1664 public DiagnosisComponent copy() { 1665 DiagnosisComponent dst = new DiagnosisComponent(); 1666 copyValues(dst); 1667 return dst; 1668 } 1669 1670 public void copyValues(DiagnosisComponent dst) { 1671 super.copyValues(dst); 1672 dst.diagnosis = diagnosis == null ? null : diagnosis.copy(); 1673 } 1674 1675 @Override 1676 public boolean equalsDeep(Base other_) { 1677 if (!super.equalsDeep(other_)) 1678 return false; 1679 if (!(other_ instanceof DiagnosisComponent)) 1680 return false; 1681 DiagnosisComponent o = (DiagnosisComponent) other_; 1682 return compareDeep(diagnosis, o.diagnosis, true); 1683 } 1684 1685 @Override 1686 public boolean equalsShallow(Base other_) { 1687 if (!super.equalsShallow(other_)) 1688 return false; 1689 if (!(other_ instanceof DiagnosisComponent)) 1690 return false; 1691 DiagnosisComponent o = (DiagnosisComponent) other_; 1692 return true; 1693 } 1694 1695 public boolean isEmpty() { 1696 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(diagnosis); 1697 } 1698 1699 public String fhirType() { 1700 return "CoverageEligibilityRequest.item.diagnosis"; 1701 1702 } 1703 1704 } 1705 1706 /** 1707 * A unique identifier assigned to this coverage eligiblity request. 1708 */ 1709 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1710 @Description(shortDefinition="Business Identifier for coverage eligiblity request", formalDefinition="A unique identifier assigned to this coverage eligiblity request." ) 1711 protected List<Identifier> identifier; 1712 1713 /** 1714 * The status of the resource instance. 1715 */ 1716 @Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true) 1717 @Description(shortDefinition="active | cancelled | draft | entered-in-error", formalDefinition="The status of the resource instance." ) 1718 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/fm-status") 1719 protected Enumeration<FinancialResourceStatusCodes> status; 1720 1721 /** 1722 * When the requestor expects the processor to complete processing. 1723 */ 1724 @Child(name = "priority", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) 1725 @Description(shortDefinition="Desired processing priority", formalDefinition="When the requestor expects the processor to complete processing." ) 1726 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/process-priority") 1727 protected CodeableConcept priority; 1728 1729 /** 1730 * 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. 1731 */ 1732 @Child(name = "purpose", type = {CodeType.class}, order=3, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1733 @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." ) 1734 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/eligibilityrequest-purpose") 1735 protected List<Enumeration<EligibilityRequestPurpose>> purpose; 1736 1737 /** 1738 * The party who is the beneficiary of the supplied coverage and for whom eligibility is sought. 1739 */ 1740 @Child(name = "patient", type = {Patient.class}, order=4, min=1, max=1, modifier=false, summary=true) 1741 @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." ) 1742 protected Reference patient; 1743 1744 /** 1745 * The date or dates when the enclosed suite of services were performed or completed. 1746 */ 1747 @Child(name = "serviced", type = {DateType.class, Period.class}, order=5, min=0, max=1, modifier=false, summary=false) 1748 @Description(shortDefinition="Estimated date or dates of service", formalDefinition="The date or dates when the enclosed suite of services were performed or completed." ) 1749 protected DataType serviced; 1750 1751 /** 1752 * The date when this resource was created. 1753 */ 1754 @Child(name = "created", type = {DateTimeType.class}, order=6, min=1, max=1, modifier=false, summary=true) 1755 @Description(shortDefinition="Creation date", formalDefinition="The date when this resource was created." ) 1756 protected DateTimeType created; 1757 1758 /** 1759 * Person who created the request. 1760 */ 1761 @Child(name = "enterer", type = {Practitioner.class, PractitionerRole.class}, order=7, min=0, max=1, modifier=false, summary=false) 1762 @Description(shortDefinition="Author", formalDefinition="Person who created the request." ) 1763 protected Reference enterer; 1764 1765 /** 1766 * The provider which is responsible for the request. 1767 */ 1768 @Child(name = "provider", type = {Practitioner.class, PractitionerRole.class, Organization.class}, order=8, min=0, max=1, modifier=false, summary=false) 1769 @Description(shortDefinition="Party responsible for the request", formalDefinition="The provider which is responsible for the request." ) 1770 protected Reference provider; 1771 1772 /** 1773 * The Insurer who issued the coverage in question and is the recipient of the request. 1774 */ 1775 @Child(name = "insurer", type = {Organization.class}, order=9, min=1, max=1, modifier=false, summary=true) 1776 @Description(shortDefinition="Coverage issuer", formalDefinition="The Insurer who issued the coverage in question and is the recipient of the request." ) 1777 protected Reference insurer; 1778 1779 /** 1780 * Facility where the services are intended to be provided. 1781 */ 1782 @Child(name = "facility", type = {Location.class}, order=10, min=0, max=1, modifier=false, summary=false) 1783 @Description(shortDefinition="Servicing facility", formalDefinition="Facility where the services are intended to be provided." ) 1784 protected Reference facility; 1785 1786 /** 1787 * Additional information codes regarding exceptions, special considerations, the condition, situation, prior or concurrent issues. 1788 */ 1789 @Child(name = "supportingInfo", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1790 @Description(shortDefinition="Supporting information", formalDefinition="Additional information codes regarding exceptions, special considerations, the condition, situation, prior or concurrent issues." ) 1791 protected List<SupportingInformationComponent> supportingInfo; 1792 1793 /** 1794 * Financial instruments for reimbursement for the health care products and services. 1795 */ 1796 @Child(name = "insurance", type = {}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1797 @Description(shortDefinition="Patient insurance information", formalDefinition="Financial instruments for reimbursement for the health care products and services." ) 1798 protected List<InsuranceComponent> insurance; 1799 1800 /** 1801 * Service categories or billable services for which benefit details and/or an authorization prior to service delivery may be required by the payor. 1802 */ 1803 @Child(name = "item", type = {}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1804 @Description(shortDefinition="Item to be evaluated for eligibiity", formalDefinition="Service categories or billable services for which benefit details and/or an authorization prior to service delivery may be required by the payor." ) 1805 protected List<DetailsComponent> item; 1806 1807 private static final long serialVersionUID = -1573933127L; 1808 1809 /** 1810 * Constructor 1811 */ 1812 public CoverageEligibilityRequest() { 1813 super(); 1814 } 1815 1816 /** 1817 * Constructor 1818 */ 1819 public CoverageEligibilityRequest(FinancialResourceStatusCodes status, EligibilityRequestPurpose purpose, Reference patient, Date created, Reference insurer) { 1820 super(); 1821 this.setStatus(status); 1822 this.addPurpose(purpose); 1823 this.setPatient(patient); 1824 this.setCreated(created); 1825 this.setInsurer(insurer); 1826 } 1827 1828 /** 1829 * @return {@link #identifier} (A unique identifier assigned to this coverage eligiblity request.) 1830 */ 1831 public List<Identifier> getIdentifier() { 1832 if (this.identifier == null) 1833 this.identifier = new ArrayList<Identifier>(); 1834 return this.identifier; 1835 } 1836 1837 /** 1838 * @return Returns a reference to <code>this</code> for easy method chaining 1839 */ 1840 public CoverageEligibilityRequest setIdentifier(List<Identifier> theIdentifier) { 1841 this.identifier = theIdentifier; 1842 return this; 1843 } 1844 1845 public boolean hasIdentifier() { 1846 if (this.identifier == null) 1847 return false; 1848 for (Identifier item : this.identifier) 1849 if (!item.isEmpty()) 1850 return true; 1851 return false; 1852 } 1853 1854 public Identifier addIdentifier() { //3 1855 Identifier t = new Identifier(); 1856 if (this.identifier == null) 1857 this.identifier = new ArrayList<Identifier>(); 1858 this.identifier.add(t); 1859 return t; 1860 } 1861 1862 public CoverageEligibilityRequest addIdentifier(Identifier t) { //3 1863 if (t == null) 1864 return this; 1865 if (this.identifier == null) 1866 this.identifier = new ArrayList<Identifier>(); 1867 this.identifier.add(t); 1868 return this; 1869 } 1870 1871 /** 1872 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} 1873 */ 1874 public Identifier getIdentifierFirstRep() { 1875 if (getIdentifier().isEmpty()) { 1876 addIdentifier(); 1877 } 1878 return getIdentifier().get(0); 1879 } 1880 1881 /** 1882 * @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 1883 */ 1884 public Enumeration<FinancialResourceStatusCodes> getStatusElement() { 1885 if (this.status == null) 1886 if (Configuration.errorOnAutoCreate()) 1887 throw new Error("Attempt to auto-create CoverageEligibilityRequest.status"); 1888 else if (Configuration.doAutoCreate()) 1889 this.status = new Enumeration<FinancialResourceStatusCodes>(new FinancialResourceStatusCodesEnumFactory()); // bb 1890 return this.status; 1891 } 1892 1893 public boolean hasStatusElement() { 1894 return this.status != null && !this.status.isEmpty(); 1895 } 1896 1897 public boolean hasStatus() { 1898 return this.status != null && !this.status.isEmpty(); 1899 } 1900 1901 /** 1902 * @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 1903 */ 1904 public CoverageEligibilityRequest setStatusElement(Enumeration<FinancialResourceStatusCodes> value) { 1905 this.status = value; 1906 return this; 1907 } 1908 1909 /** 1910 * @return The status of the resource instance. 1911 */ 1912 public FinancialResourceStatusCodes getStatus() { 1913 return this.status == null ? null : this.status.getValue(); 1914 } 1915 1916 /** 1917 * @param value The status of the resource instance. 1918 */ 1919 public CoverageEligibilityRequest setStatus(FinancialResourceStatusCodes value) { 1920 if (this.status == null) 1921 this.status = new Enumeration<FinancialResourceStatusCodes>(new FinancialResourceStatusCodesEnumFactory()); 1922 this.status.setValue(value); 1923 return this; 1924 } 1925 1926 /** 1927 * @return {@link #priority} (When the requestor expects the processor to complete processing.) 1928 */ 1929 public CodeableConcept getPriority() { 1930 if (this.priority == null) 1931 if (Configuration.errorOnAutoCreate()) 1932 throw new Error("Attempt to auto-create CoverageEligibilityRequest.priority"); 1933 else if (Configuration.doAutoCreate()) 1934 this.priority = new CodeableConcept(); // cc 1935 return this.priority; 1936 } 1937 1938 public boolean hasPriority() { 1939 return this.priority != null && !this.priority.isEmpty(); 1940 } 1941 1942 /** 1943 * @param value {@link #priority} (When the requestor expects the processor to complete processing.) 1944 */ 1945 public CoverageEligibilityRequest setPriority(CodeableConcept value) { 1946 this.priority = value; 1947 return this; 1948 } 1949 1950 /** 1951 * @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.) 1952 */ 1953 public List<Enumeration<EligibilityRequestPurpose>> getPurpose() { 1954 if (this.purpose == null) 1955 this.purpose = new ArrayList<Enumeration<EligibilityRequestPurpose>>(); 1956 return this.purpose; 1957 } 1958 1959 /** 1960 * @return Returns a reference to <code>this</code> for easy method chaining 1961 */ 1962 public CoverageEligibilityRequest setPurpose(List<Enumeration<EligibilityRequestPurpose>> thePurpose) { 1963 this.purpose = thePurpose; 1964 return this; 1965 } 1966 1967 public boolean hasPurpose() { 1968 if (this.purpose == null) 1969 return false; 1970 for (Enumeration<EligibilityRequestPurpose> item : this.purpose) 1971 if (!item.isEmpty()) 1972 return true; 1973 return false; 1974 } 1975 1976 /** 1977 * @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.) 1978 */ 1979 public Enumeration<EligibilityRequestPurpose> addPurposeElement() {//2 1980 Enumeration<EligibilityRequestPurpose> t = new Enumeration<EligibilityRequestPurpose>(new EligibilityRequestPurposeEnumFactory()); 1981 if (this.purpose == null) 1982 this.purpose = new ArrayList<Enumeration<EligibilityRequestPurpose>>(); 1983 this.purpose.add(t); 1984 return t; 1985 } 1986 1987 /** 1988 * @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.) 1989 */ 1990 public CoverageEligibilityRequest addPurpose(EligibilityRequestPurpose value) { //1 1991 Enumeration<EligibilityRequestPurpose> t = new Enumeration<EligibilityRequestPurpose>(new EligibilityRequestPurposeEnumFactory()); 1992 t.setValue(value); 1993 if (this.purpose == null) 1994 this.purpose = new ArrayList<Enumeration<EligibilityRequestPurpose>>(); 1995 this.purpose.add(t); 1996 return this; 1997 } 1998 1999 /** 2000 * @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.) 2001 */ 2002 public boolean hasPurpose(EligibilityRequestPurpose value) { 2003 if (this.purpose == null) 2004 return false; 2005 for (Enumeration<EligibilityRequestPurpose> v : this.purpose) 2006 if (v.getValue().equals(value)) // code 2007 return true; 2008 return false; 2009 } 2010 2011 /** 2012 * @return {@link #patient} (The party who is the beneficiary of the supplied coverage and for whom eligibility is sought.) 2013 */ 2014 public Reference getPatient() { 2015 if (this.patient == null) 2016 if (Configuration.errorOnAutoCreate()) 2017 throw new Error("Attempt to auto-create CoverageEligibilityRequest.patient"); 2018 else if (Configuration.doAutoCreate()) 2019 this.patient = new Reference(); // cc 2020 return this.patient; 2021 } 2022 2023 public boolean hasPatient() { 2024 return this.patient != null && !this.patient.isEmpty(); 2025 } 2026 2027 /** 2028 * @param value {@link #patient} (The party who is the beneficiary of the supplied coverage and for whom eligibility is sought.) 2029 */ 2030 public CoverageEligibilityRequest setPatient(Reference value) { 2031 this.patient = value; 2032 return this; 2033 } 2034 2035 /** 2036 * @return {@link #serviced} (The date or dates when the enclosed suite of services were performed or completed.) 2037 */ 2038 public DataType getServiced() { 2039 return this.serviced; 2040 } 2041 2042 /** 2043 * @return {@link #serviced} (The date or dates when the enclosed suite of services were performed or completed.) 2044 */ 2045 public DateType getServicedDateType() throws FHIRException { 2046 if (this.serviced == null) 2047 this.serviced = new DateType(); 2048 if (!(this.serviced instanceof DateType)) 2049 throw new FHIRException("Type mismatch: the type DateType was expected, but "+this.serviced.getClass().getName()+" was encountered"); 2050 return (DateType) this.serviced; 2051 } 2052 2053 public boolean hasServicedDateType() { 2054 return this != null && this.serviced instanceof DateType; 2055 } 2056 2057 /** 2058 * @return {@link #serviced} (The date or dates when the enclosed suite of services were performed or completed.) 2059 */ 2060 public Period getServicedPeriod() throws FHIRException { 2061 if (this.serviced == null) 2062 this.serviced = new Period(); 2063 if (!(this.serviced instanceof Period)) 2064 throw new FHIRException("Type mismatch: the type Period was expected, but "+this.serviced.getClass().getName()+" was encountered"); 2065 return (Period) this.serviced; 2066 } 2067 2068 public boolean hasServicedPeriod() { 2069 return this != null && this.serviced instanceof Period; 2070 } 2071 2072 public boolean hasServiced() { 2073 return this.serviced != null && !this.serviced.isEmpty(); 2074 } 2075 2076 /** 2077 * @param value {@link #serviced} (The date or dates when the enclosed suite of services were performed or completed.) 2078 */ 2079 public CoverageEligibilityRequest setServiced(DataType value) { 2080 if (value != null && !(value instanceof DateType || value instanceof Period)) 2081 throw new Error("Not the right type for CoverageEligibilityRequest.serviced[x]: "+value.fhirType()); 2082 this.serviced = value; 2083 return this; 2084 } 2085 2086 /** 2087 * @return {@link #created} (The date when this resource was created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value 2088 */ 2089 public DateTimeType getCreatedElement() { 2090 if (this.created == null) 2091 if (Configuration.errorOnAutoCreate()) 2092 throw new Error("Attempt to auto-create CoverageEligibilityRequest.created"); 2093 else if (Configuration.doAutoCreate()) 2094 this.created = new DateTimeType(); // bb 2095 return this.created; 2096 } 2097 2098 public boolean hasCreatedElement() { 2099 return this.created != null && !this.created.isEmpty(); 2100 } 2101 2102 public boolean hasCreated() { 2103 return this.created != null && !this.created.isEmpty(); 2104 } 2105 2106 /** 2107 * @param value {@link #created} (The date when this resource was created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value 2108 */ 2109 public CoverageEligibilityRequest setCreatedElement(DateTimeType value) { 2110 this.created = value; 2111 return this; 2112 } 2113 2114 /** 2115 * @return The date when this resource was created. 2116 */ 2117 public Date getCreated() { 2118 return this.created == null ? null : this.created.getValue(); 2119 } 2120 2121 /** 2122 * @param value The date when this resource was created. 2123 */ 2124 public CoverageEligibilityRequest setCreated(Date value) { 2125 if (this.created == null) 2126 this.created = new DateTimeType(); 2127 this.created.setValue(value); 2128 return this; 2129 } 2130 2131 /** 2132 * @return {@link #enterer} (Person who created the request.) 2133 */ 2134 public Reference getEnterer() { 2135 if (this.enterer == null) 2136 if (Configuration.errorOnAutoCreate()) 2137 throw new Error("Attempt to auto-create CoverageEligibilityRequest.enterer"); 2138 else if (Configuration.doAutoCreate()) 2139 this.enterer = new Reference(); // cc 2140 return this.enterer; 2141 } 2142 2143 public boolean hasEnterer() { 2144 return this.enterer != null && !this.enterer.isEmpty(); 2145 } 2146 2147 /** 2148 * @param value {@link #enterer} (Person who created the request.) 2149 */ 2150 public CoverageEligibilityRequest setEnterer(Reference value) { 2151 this.enterer = value; 2152 return this; 2153 } 2154 2155 /** 2156 * @return {@link #provider} (The provider which is responsible for the request.) 2157 */ 2158 public Reference getProvider() { 2159 if (this.provider == null) 2160 if (Configuration.errorOnAutoCreate()) 2161 throw new Error("Attempt to auto-create CoverageEligibilityRequest.provider"); 2162 else if (Configuration.doAutoCreate()) 2163 this.provider = new Reference(); // cc 2164 return this.provider; 2165 } 2166 2167 public boolean hasProvider() { 2168 return this.provider != null && !this.provider.isEmpty(); 2169 } 2170 2171 /** 2172 * @param value {@link #provider} (The provider which is responsible for the request.) 2173 */ 2174 public CoverageEligibilityRequest setProvider(Reference value) { 2175 this.provider = value; 2176 return this; 2177 } 2178 2179 /** 2180 * @return {@link #insurer} (The Insurer who issued the coverage in question and is the recipient of the request.) 2181 */ 2182 public Reference getInsurer() { 2183 if (this.insurer == null) 2184 if (Configuration.errorOnAutoCreate()) 2185 throw new Error("Attempt to auto-create CoverageEligibilityRequest.insurer"); 2186 else if (Configuration.doAutoCreate()) 2187 this.insurer = new Reference(); // cc 2188 return this.insurer; 2189 } 2190 2191 public boolean hasInsurer() { 2192 return this.insurer != null && !this.insurer.isEmpty(); 2193 } 2194 2195 /** 2196 * @param value {@link #insurer} (The Insurer who issued the coverage in question and is the recipient of the request.) 2197 */ 2198 public CoverageEligibilityRequest setInsurer(Reference value) { 2199 this.insurer = value; 2200 return this; 2201 } 2202 2203 /** 2204 * @return {@link #facility} (Facility where the services are intended to be provided.) 2205 */ 2206 public Reference getFacility() { 2207 if (this.facility == null) 2208 if (Configuration.errorOnAutoCreate()) 2209 throw new Error("Attempt to auto-create CoverageEligibilityRequest.facility"); 2210 else if (Configuration.doAutoCreate()) 2211 this.facility = new Reference(); // cc 2212 return this.facility; 2213 } 2214 2215 public boolean hasFacility() { 2216 return this.facility != null && !this.facility.isEmpty(); 2217 } 2218 2219 /** 2220 * @param value {@link #facility} (Facility where the services are intended to be provided.) 2221 */ 2222 public CoverageEligibilityRequest setFacility(Reference value) { 2223 this.facility = value; 2224 return this; 2225 } 2226 2227 /** 2228 * @return {@link #supportingInfo} (Additional information codes regarding exceptions, special considerations, the condition, situation, prior or concurrent issues.) 2229 */ 2230 public List<SupportingInformationComponent> getSupportingInfo() { 2231 if (this.supportingInfo == null) 2232 this.supportingInfo = new ArrayList<SupportingInformationComponent>(); 2233 return this.supportingInfo; 2234 } 2235 2236 /** 2237 * @return Returns a reference to <code>this</code> for easy method chaining 2238 */ 2239 public CoverageEligibilityRequest setSupportingInfo(List<SupportingInformationComponent> theSupportingInfo) { 2240 this.supportingInfo = theSupportingInfo; 2241 return this; 2242 } 2243 2244 public boolean hasSupportingInfo() { 2245 if (this.supportingInfo == null) 2246 return false; 2247 for (SupportingInformationComponent item : this.supportingInfo) 2248 if (!item.isEmpty()) 2249 return true; 2250 return false; 2251 } 2252 2253 public SupportingInformationComponent addSupportingInfo() { //3 2254 SupportingInformationComponent t = new SupportingInformationComponent(); 2255 if (this.supportingInfo == null) 2256 this.supportingInfo = new ArrayList<SupportingInformationComponent>(); 2257 this.supportingInfo.add(t); 2258 return t; 2259 } 2260 2261 public CoverageEligibilityRequest addSupportingInfo(SupportingInformationComponent t) { //3 2262 if (t == null) 2263 return this; 2264 if (this.supportingInfo == null) 2265 this.supportingInfo = new ArrayList<SupportingInformationComponent>(); 2266 this.supportingInfo.add(t); 2267 return this; 2268 } 2269 2270 /** 2271 * @return The first repetition of repeating field {@link #supportingInfo}, creating it if it does not already exist {3} 2272 */ 2273 public SupportingInformationComponent getSupportingInfoFirstRep() { 2274 if (getSupportingInfo().isEmpty()) { 2275 addSupportingInfo(); 2276 } 2277 return getSupportingInfo().get(0); 2278 } 2279 2280 /** 2281 * @return {@link #insurance} (Financial instruments for reimbursement for the health care products and services.) 2282 */ 2283 public List<InsuranceComponent> getInsurance() { 2284 if (this.insurance == null) 2285 this.insurance = new ArrayList<InsuranceComponent>(); 2286 return this.insurance; 2287 } 2288 2289 /** 2290 * @return Returns a reference to <code>this</code> for easy method chaining 2291 */ 2292 public CoverageEligibilityRequest setInsurance(List<InsuranceComponent> theInsurance) { 2293 this.insurance = theInsurance; 2294 return this; 2295 } 2296 2297 public boolean hasInsurance() { 2298 if (this.insurance == null) 2299 return false; 2300 for (InsuranceComponent item : this.insurance) 2301 if (!item.isEmpty()) 2302 return true; 2303 return false; 2304 } 2305 2306 public InsuranceComponent addInsurance() { //3 2307 InsuranceComponent t = new InsuranceComponent(); 2308 if (this.insurance == null) 2309 this.insurance = new ArrayList<InsuranceComponent>(); 2310 this.insurance.add(t); 2311 return t; 2312 } 2313 2314 public CoverageEligibilityRequest addInsurance(InsuranceComponent t) { //3 2315 if (t == null) 2316 return this; 2317 if (this.insurance == null) 2318 this.insurance = new ArrayList<InsuranceComponent>(); 2319 this.insurance.add(t); 2320 return this; 2321 } 2322 2323 /** 2324 * @return The first repetition of repeating field {@link #insurance}, creating it if it does not already exist {3} 2325 */ 2326 public InsuranceComponent getInsuranceFirstRep() { 2327 if (getInsurance().isEmpty()) { 2328 addInsurance(); 2329 } 2330 return getInsurance().get(0); 2331 } 2332 2333 /** 2334 * @return {@link #item} (Service categories or billable services for which benefit details and/or an authorization prior to service delivery may be required by the payor.) 2335 */ 2336 public List<DetailsComponent> getItem() { 2337 if (this.item == null) 2338 this.item = new ArrayList<DetailsComponent>(); 2339 return this.item; 2340 } 2341 2342 /** 2343 * @return Returns a reference to <code>this</code> for easy method chaining 2344 */ 2345 public CoverageEligibilityRequest setItem(List<DetailsComponent> theItem) { 2346 this.item = theItem; 2347 return this; 2348 } 2349 2350 public boolean hasItem() { 2351 if (this.item == null) 2352 return false; 2353 for (DetailsComponent item : this.item) 2354 if (!item.isEmpty()) 2355 return true; 2356 return false; 2357 } 2358 2359 public DetailsComponent addItem() { //3 2360 DetailsComponent t = new DetailsComponent(); 2361 if (this.item == null) 2362 this.item = new ArrayList<DetailsComponent>(); 2363 this.item.add(t); 2364 return t; 2365 } 2366 2367 public CoverageEligibilityRequest addItem(DetailsComponent t) { //3 2368 if (t == null) 2369 return this; 2370 if (this.item == null) 2371 this.item = new ArrayList<DetailsComponent>(); 2372 this.item.add(t); 2373 return this; 2374 } 2375 2376 /** 2377 * @return The first repetition of repeating field {@link #item}, creating it if it does not already exist {3} 2378 */ 2379 public DetailsComponent getItemFirstRep() { 2380 if (getItem().isEmpty()) { 2381 addItem(); 2382 } 2383 return getItem().get(0); 2384 } 2385 2386 protected void listChildren(List<Property> children) { 2387 super.listChildren(children); 2388 children.add(new Property("identifier", "Identifier", "A unique identifier assigned to this coverage eligiblity request.", 0, java.lang.Integer.MAX_VALUE, identifier)); 2389 children.add(new Property("status", "code", "The status of the resource instance.", 0, 1, status)); 2390 children.add(new Property("priority", "CodeableConcept", "When the requestor expects the processor to complete processing.", 0, 1, priority)); 2391 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)); 2392 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)); 2393 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)); 2394 children.add(new Property("created", "dateTime", "The date when this resource was created.", 0, 1, created)); 2395 children.add(new Property("enterer", "Reference(Practitioner|PractitionerRole)", "Person who created the request.", 0, 1, enterer)); 2396 children.add(new Property("provider", "Reference(Practitioner|PractitionerRole|Organization)", "The provider which is responsible for the request.", 0, 1, provider)); 2397 children.add(new Property("insurer", "Reference(Organization)", "The Insurer who issued the coverage in question and is the recipient of the request.", 0, 1, insurer)); 2398 children.add(new Property("facility", "Reference(Location)", "Facility where the services are intended to be provided.", 0, 1, facility)); 2399 children.add(new Property("supportingInfo", "", "Additional information codes regarding exceptions, special considerations, the condition, situation, prior or concurrent issues.", 0, java.lang.Integer.MAX_VALUE, supportingInfo)); 2400 children.add(new Property("insurance", "", "Financial instruments for reimbursement for the health care products and services.", 0, java.lang.Integer.MAX_VALUE, insurance)); 2401 children.add(new Property("item", "", "Service categories or billable services for which benefit details and/or an authorization prior to service delivery may be required by the payor.", 0, java.lang.Integer.MAX_VALUE, item)); 2402 } 2403 2404 @Override 2405 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 2406 switch (_hash) { 2407 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A unique identifier assigned to this coverage eligiblity request.", 0, java.lang.Integer.MAX_VALUE, identifier); 2408 case -892481550: /*status*/ return new Property("status", "code", "The status of the resource instance.", 0, 1, status); 2409 case -1165461084: /*priority*/ return new Property("priority", "CodeableConcept", "When the requestor expects the processor to complete processing.", 0, 1, priority); 2410 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); 2411 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); 2412 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); 2413 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); 2414 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); 2415 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); 2416 case 1028554472: /*created*/ return new Property("created", "dateTime", "The date when this resource was created.", 0, 1, created); 2417 case -1591951995: /*enterer*/ return new Property("enterer", "Reference(Practitioner|PractitionerRole)", "Person who created the request.", 0, 1, enterer); 2418 case -987494927: /*provider*/ return new Property("provider", "Reference(Practitioner|PractitionerRole|Organization)", "The provider which is responsible for the request.", 0, 1, provider); 2419 case 1957615864: /*insurer*/ return new Property("insurer", "Reference(Organization)", "The Insurer who issued the coverage in question and is the recipient of the request.", 0, 1, insurer); 2420 case 501116579: /*facility*/ return new Property("facility", "Reference(Location)", "Facility where the services are intended to be provided.", 0, 1, facility); 2421 case 1922406657: /*supportingInfo*/ return new Property("supportingInfo", "", "Additional information codes regarding exceptions, special considerations, the condition, situation, prior or concurrent issues.", 0, java.lang.Integer.MAX_VALUE, supportingInfo); 2422 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); 2423 case 3242771: /*item*/ return new Property("item", "", "Service categories or billable services for which benefit details and/or an authorization prior to service delivery may be required by the payor.", 0, java.lang.Integer.MAX_VALUE, item); 2424 default: return super.getNamedProperty(_hash, _name, _checkValid); 2425 } 2426 2427 } 2428 2429 @Override 2430 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 2431 switch (hash) { 2432 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 2433 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<FinancialResourceStatusCodes> 2434 case -1165461084: /*priority*/ return this.priority == null ? new Base[0] : new Base[] {this.priority}; // CodeableConcept 2435 case -220463842: /*purpose*/ return this.purpose == null ? new Base[0] : this.purpose.toArray(new Base[this.purpose.size()]); // Enumeration<EligibilityRequestPurpose> 2436 case -791418107: /*patient*/ return this.patient == null ? new Base[0] : new Base[] {this.patient}; // Reference 2437 case 1379209295: /*serviced*/ return this.serviced == null ? new Base[0] : new Base[] {this.serviced}; // DataType 2438 case 1028554472: /*created*/ return this.created == null ? new Base[0] : new Base[] {this.created}; // DateTimeType 2439 case -1591951995: /*enterer*/ return this.enterer == null ? new Base[0] : new Base[] {this.enterer}; // Reference 2440 case -987494927: /*provider*/ return this.provider == null ? new Base[0] : new Base[] {this.provider}; // Reference 2441 case 1957615864: /*insurer*/ return this.insurer == null ? new Base[0] : new Base[] {this.insurer}; // Reference 2442 case 501116579: /*facility*/ return this.facility == null ? new Base[0] : new Base[] {this.facility}; // Reference 2443 case 1922406657: /*supportingInfo*/ return this.supportingInfo == null ? new Base[0] : this.supportingInfo.toArray(new Base[this.supportingInfo.size()]); // SupportingInformationComponent 2444 case 73049818: /*insurance*/ return this.insurance == null ? new Base[0] : this.insurance.toArray(new Base[this.insurance.size()]); // InsuranceComponent 2445 case 3242771: /*item*/ return this.item == null ? new Base[0] : this.item.toArray(new Base[this.item.size()]); // DetailsComponent 2446 default: return super.getProperty(hash, name, checkValid); 2447 } 2448 2449 } 2450 2451 @Override 2452 public Base setProperty(int hash, String name, Base value) throws FHIRException { 2453 switch (hash) { 2454 case -1618432855: // identifier 2455 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier 2456 return value; 2457 case -892481550: // status 2458 value = new FinancialResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); 2459 this.status = (Enumeration) value; // Enumeration<FinancialResourceStatusCodes> 2460 return value; 2461 case -1165461084: // priority 2462 this.priority = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2463 return value; 2464 case -220463842: // purpose 2465 value = new EligibilityRequestPurposeEnumFactory().fromType(TypeConvertor.castToCode(value)); 2466 this.getPurpose().add((Enumeration) value); // Enumeration<EligibilityRequestPurpose> 2467 return value; 2468 case -791418107: // patient 2469 this.patient = TypeConvertor.castToReference(value); // Reference 2470 return value; 2471 case 1379209295: // serviced 2472 this.serviced = TypeConvertor.castToType(value); // DataType 2473 return value; 2474 case 1028554472: // created 2475 this.created = TypeConvertor.castToDateTime(value); // DateTimeType 2476 return value; 2477 case -1591951995: // enterer 2478 this.enterer = TypeConvertor.castToReference(value); // Reference 2479 return value; 2480 case -987494927: // provider 2481 this.provider = TypeConvertor.castToReference(value); // Reference 2482 return value; 2483 case 1957615864: // insurer 2484 this.insurer = TypeConvertor.castToReference(value); // Reference 2485 return value; 2486 case 501116579: // facility 2487 this.facility = TypeConvertor.castToReference(value); // Reference 2488 return value; 2489 case 1922406657: // supportingInfo 2490 this.getSupportingInfo().add((SupportingInformationComponent) value); // SupportingInformationComponent 2491 return value; 2492 case 73049818: // insurance 2493 this.getInsurance().add((InsuranceComponent) value); // InsuranceComponent 2494 return value; 2495 case 3242771: // item 2496 this.getItem().add((DetailsComponent) value); // DetailsComponent 2497 return value; 2498 default: return super.setProperty(hash, name, value); 2499 } 2500 2501 } 2502 2503 @Override 2504 public Base setProperty(String name, Base value) throws FHIRException { 2505 if (name.equals("identifier")) { 2506 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); 2507 } else if (name.equals("status")) { 2508 value = new FinancialResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); 2509 this.status = (Enumeration) value; // Enumeration<FinancialResourceStatusCodes> 2510 } else if (name.equals("priority")) { 2511 this.priority = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 2512 } else if (name.equals("purpose")) { 2513 value = new EligibilityRequestPurposeEnumFactory().fromType(TypeConvertor.castToCode(value)); 2514 this.getPurpose().add((Enumeration) value); 2515 } else if (name.equals("patient")) { 2516 this.patient = TypeConvertor.castToReference(value); // Reference 2517 } else if (name.equals("serviced[x]")) { 2518 this.serviced = TypeConvertor.castToType(value); // DataType 2519 } else if (name.equals("created")) { 2520 this.created = TypeConvertor.castToDateTime(value); // DateTimeType 2521 } else if (name.equals("enterer")) { 2522 this.enterer = TypeConvertor.castToReference(value); // Reference 2523 } else if (name.equals("provider")) { 2524 this.provider = TypeConvertor.castToReference(value); // Reference 2525 } else if (name.equals("insurer")) { 2526 this.insurer = TypeConvertor.castToReference(value); // Reference 2527 } else if (name.equals("facility")) { 2528 this.facility = TypeConvertor.castToReference(value); // Reference 2529 } else if (name.equals("supportingInfo")) { 2530 this.getSupportingInfo().add((SupportingInformationComponent) value); 2531 } else if (name.equals("insurance")) { 2532 this.getInsurance().add((InsuranceComponent) value); 2533 } else if (name.equals("item")) { 2534 this.getItem().add((DetailsComponent) value); 2535 } else 2536 return super.setProperty(name, value); 2537 return value; 2538 } 2539 2540 @Override 2541 public Base makeProperty(int hash, String name) throws FHIRException { 2542 switch (hash) { 2543 case -1618432855: return addIdentifier(); 2544 case -892481550: return getStatusElement(); 2545 case -1165461084: return getPriority(); 2546 case -220463842: return addPurposeElement(); 2547 case -791418107: return getPatient(); 2548 case -1927922223: return getServiced(); 2549 case 1379209295: return getServiced(); 2550 case 1028554472: return getCreatedElement(); 2551 case -1591951995: return getEnterer(); 2552 case -987494927: return getProvider(); 2553 case 1957615864: return getInsurer(); 2554 case 501116579: return getFacility(); 2555 case 1922406657: return addSupportingInfo(); 2556 case 73049818: return addInsurance(); 2557 case 3242771: return addItem(); 2558 default: return super.makeProperty(hash, name); 2559 } 2560 2561 } 2562 2563 @Override 2564 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 2565 switch (hash) { 2566 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 2567 case -892481550: /*status*/ return new String[] {"code"}; 2568 case -1165461084: /*priority*/ return new String[] {"CodeableConcept"}; 2569 case -220463842: /*purpose*/ return new String[] {"code"}; 2570 case -791418107: /*patient*/ return new String[] {"Reference"}; 2571 case 1379209295: /*serviced*/ return new String[] {"date", "Period"}; 2572 case 1028554472: /*created*/ return new String[] {"dateTime"}; 2573 case -1591951995: /*enterer*/ return new String[] {"Reference"}; 2574 case -987494927: /*provider*/ return new String[] {"Reference"}; 2575 case 1957615864: /*insurer*/ return new String[] {"Reference"}; 2576 case 501116579: /*facility*/ return new String[] {"Reference"}; 2577 case 1922406657: /*supportingInfo*/ return new String[] {}; 2578 case 73049818: /*insurance*/ return new String[] {}; 2579 case 3242771: /*item*/ return new String[] {}; 2580 default: return super.getTypesForProperty(hash, name); 2581 } 2582 2583 } 2584 2585 @Override 2586 public Base addChild(String name) throws FHIRException { 2587 if (name.equals("identifier")) { 2588 return addIdentifier(); 2589 } 2590 else if (name.equals("status")) { 2591 throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.status"); 2592 } 2593 else if (name.equals("priority")) { 2594 this.priority = new CodeableConcept(); 2595 return this.priority; 2596 } 2597 else if (name.equals("purpose")) { 2598 throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.purpose"); 2599 } 2600 else if (name.equals("patient")) { 2601 this.patient = new Reference(); 2602 return this.patient; 2603 } 2604 else if (name.equals("servicedDate")) { 2605 this.serviced = new DateType(); 2606 return this.serviced; 2607 } 2608 else if (name.equals("servicedPeriod")) { 2609 this.serviced = new Period(); 2610 return this.serviced; 2611 } 2612 else if (name.equals("created")) { 2613 throw new FHIRException("Cannot call addChild on a primitive type CoverageEligibilityRequest.created"); 2614 } 2615 else if (name.equals("enterer")) { 2616 this.enterer = new Reference(); 2617 return this.enterer; 2618 } 2619 else if (name.equals("provider")) { 2620 this.provider = new Reference(); 2621 return this.provider; 2622 } 2623 else if (name.equals("insurer")) { 2624 this.insurer = new Reference(); 2625 return this.insurer; 2626 } 2627 else if (name.equals("facility")) { 2628 this.facility = new Reference(); 2629 return this.facility; 2630 } 2631 else if (name.equals("supportingInfo")) { 2632 return addSupportingInfo(); 2633 } 2634 else if (name.equals("insurance")) { 2635 return addInsurance(); 2636 } 2637 else if (name.equals("item")) { 2638 return addItem(); 2639 } 2640 else 2641 return super.addChild(name); 2642 } 2643 2644 public String fhirType() { 2645 return "CoverageEligibilityRequest"; 2646 2647 } 2648 2649 public CoverageEligibilityRequest copy() { 2650 CoverageEligibilityRequest dst = new CoverageEligibilityRequest(); 2651 copyValues(dst); 2652 return dst; 2653 } 2654 2655 public void copyValues(CoverageEligibilityRequest dst) { 2656 super.copyValues(dst); 2657 if (identifier != null) { 2658 dst.identifier = new ArrayList<Identifier>(); 2659 for (Identifier i : identifier) 2660 dst.identifier.add(i.copy()); 2661 }; 2662 dst.status = status == null ? null : status.copy(); 2663 dst.priority = priority == null ? null : priority.copy(); 2664 if (purpose != null) { 2665 dst.purpose = new ArrayList<Enumeration<EligibilityRequestPurpose>>(); 2666 for (Enumeration<EligibilityRequestPurpose> i : purpose) 2667 dst.purpose.add(i.copy()); 2668 }; 2669 dst.patient = patient == null ? null : patient.copy(); 2670 dst.serviced = serviced == null ? null : serviced.copy(); 2671 dst.created = created == null ? null : created.copy(); 2672 dst.enterer = enterer == null ? null : enterer.copy(); 2673 dst.provider = provider == null ? null : provider.copy(); 2674 dst.insurer = insurer == null ? null : insurer.copy(); 2675 dst.facility = facility == null ? null : facility.copy(); 2676 if (supportingInfo != null) { 2677 dst.supportingInfo = new ArrayList<SupportingInformationComponent>(); 2678 for (SupportingInformationComponent i : supportingInfo) 2679 dst.supportingInfo.add(i.copy()); 2680 }; 2681 if (insurance != null) { 2682 dst.insurance = new ArrayList<InsuranceComponent>(); 2683 for (InsuranceComponent i : insurance) 2684 dst.insurance.add(i.copy()); 2685 }; 2686 if (item != null) { 2687 dst.item = new ArrayList<DetailsComponent>(); 2688 for (DetailsComponent i : item) 2689 dst.item.add(i.copy()); 2690 }; 2691 } 2692 2693 protected CoverageEligibilityRequest typedCopy() { 2694 return copy(); 2695 } 2696 2697 @Override 2698 public boolean equalsDeep(Base other_) { 2699 if (!super.equalsDeep(other_)) 2700 return false; 2701 if (!(other_ instanceof CoverageEligibilityRequest)) 2702 return false; 2703 CoverageEligibilityRequest o = (CoverageEligibilityRequest) other_; 2704 return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(priority, o.priority, true) 2705 && compareDeep(purpose, o.purpose, true) && compareDeep(patient, o.patient, true) && compareDeep(serviced, o.serviced, true) 2706 && compareDeep(created, o.created, true) && compareDeep(enterer, o.enterer, true) && compareDeep(provider, o.provider, true) 2707 && compareDeep(insurer, o.insurer, true) && compareDeep(facility, o.facility, true) && compareDeep(supportingInfo, o.supportingInfo, true) 2708 && compareDeep(insurance, o.insurance, true) && compareDeep(item, o.item, true); 2709 } 2710 2711 @Override 2712 public boolean equalsShallow(Base other_) { 2713 if (!super.equalsShallow(other_)) 2714 return false; 2715 if (!(other_ instanceof CoverageEligibilityRequest)) 2716 return false; 2717 CoverageEligibilityRequest o = (CoverageEligibilityRequest) other_; 2718 return compareValues(status, o.status, true) && compareValues(purpose, o.purpose, true) && compareValues(created, o.created, true) 2719 ; 2720 } 2721 2722 public boolean isEmpty() { 2723 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, priority 2724 , purpose, patient, serviced, created, enterer, provider, insurer, facility 2725 , supportingInfo, insurance, item); 2726 } 2727 2728 @Override 2729 public ResourceType getResourceType() { 2730 return ResourceType.CoverageEligibilityRequest; 2731 } 2732 2733 /** 2734 * Search parameter: <b>created</b> 2735 * <p> 2736 * Description: <b>The creation date for the EOB</b><br> 2737 * Type: <b>date</b><br> 2738 * Path: <b>CoverageEligibilityRequest.created</b><br> 2739 * </p> 2740 */ 2741 @SearchParamDefinition(name="created", path="CoverageEligibilityRequest.created", description="The creation date for the EOB", type="date" ) 2742 public static final String SP_CREATED = "created"; 2743 /** 2744 * <b>Fluent Client</b> search parameter constant for <b>created</b> 2745 * <p> 2746 * Description: <b>The creation date for the EOB</b><br> 2747 * Type: <b>date</b><br> 2748 * Path: <b>CoverageEligibilityRequest.created</b><br> 2749 * </p> 2750 */ 2751 public static final ca.uhn.fhir.rest.gclient.DateClientParam CREATED = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_CREATED); 2752 2753 /** 2754 * Search parameter: <b>enterer</b> 2755 * <p> 2756 * Description: <b>The party who is responsible for the request</b><br> 2757 * Type: <b>reference</b><br> 2758 * Path: <b>CoverageEligibilityRequest.enterer</b><br> 2759 * </p> 2760 */ 2761 @SearchParamDefinition(name="enterer", path="CoverageEligibilityRequest.enterer", description="The party who is responsible for the request", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Practitioner.class, PractitionerRole.class } ) 2762 public static final String SP_ENTERER = "enterer"; 2763 /** 2764 * <b>Fluent Client</b> search parameter constant for <b>enterer</b> 2765 * <p> 2766 * Description: <b>The party who is responsible for the request</b><br> 2767 * Type: <b>reference</b><br> 2768 * Path: <b>CoverageEligibilityRequest.enterer</b><br> 2769 * </p> 2770 */ 2771 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENTERER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENTERER); 2772 2773/** 2774 * Constant for fluent queries to be used to add include statements. Specifies 2775 * the path value of "<b>CoverageEligibilityRequest:enterer</b>". 2776 */ 2777 public static final ca.uhn.fhir.model.api.Include INCLUDE_ENTERER = new ca.uhn.fhir.model.api.Include("CoverageEligibilityRequest:enterer").toLocked(); 2778 2779 /** 2780 * Search parameter: <b>facility</b> 2781 * <p> 2782 * Description: <b>Facility responsible for the goods and services</b><br> 2783 * Type: <b>reference</b><br> 2784 * Path: <b>CoverageEligibilityRequest.facility</b><br> 2785 * </p> 2786 */ 2787 @SearchParamDefinition(name="facility", path="CoverageEligibilityRequest.facility", description="Facility responsible for the goods and services", type="reference", target={Location.class } ) 2788 public static final String SP_FACILITY = "facility"; 2789 /** 2790 * <b>Fluent Client</b> search parameter constant for <b>facility</b> 2791 * <p> 2792 * Description: <b>Facility responsible for the goods and services</b><br> 2793 * Type: <b>reference</b><br> 2794 * Path: <b>CoverageEligibilityRequest.facility</b><br> 2795 * </p> 2796 */ 2797 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam FACILITY = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_FACILITY); 2798 2799/** 2800 * Constant for fluent queries to be used to add include statements. Specifies 2801 * the path value of "<b>CoverageEligibilityRequest:facility</b>". 2802 */ 2803 public static final ca.uhn.fhir.model.api.Include INCLUDE_FACILITY = new ca.uhn.fhir.model.api.Include("CoverageEligibilityRequest:facility").toLocked(); 2804 2805 /** 2806 * Search parameter: <b>identifier</b> 2807 * <p> 2808 * Description: <b>The business identifier of the Eligibility</b><br> 2809 * Type: <b>token</b><br> 2810 * Path: <b>CoverageEligibilityRequest.identifier</b><br> 2811 * </p> 2812 */ 2813 @SearchParamDefinition(name="identifier", path="CoverageEligibilityRequest.identifier", description="The business identifier of the Eligibility", type="token" ) 2814 public static final String SP_IDENTIFIER = "identifier"; 2815 /** 2816 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 2817 * <p> 2818 * Description: <b>The business identifier of the Eligibility</b><br> 2819 * Type: <b>token</b><br> 2820 * Path: <b>CoverageEligibilityRequest.identifier</b><br> 2821 * </p> 2822 */ 2823 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 2824 2825 /** 2826 * Search parameter: <b>patient</b> 2827 * <p> 2828 * Description: <b>The reference to the patient</b><br> 2829 * Type: <b>reference</b><br> 2830 * Path: <b>CoverageEligibilityRequest.patient</b><br> 2831 * </p> 2832 */ 2833 @SearchParamDefinition(name="patient", path="CoverageEligibilityRequest.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 } ) 2834 public static final String SP_PATIENT = "patient"; 2835 /** 2836 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 2837 * <p> 2838 * Description: <b>The reference to the patient</b><br> 2839 * Type: <b>reference</b><br> 2840 * Path: <b>CoverageEligibilityRequest.patient</b><br> 2841 * </p> 2842 */ 2843 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); 2844 2845/** 2846 * Constant for fluent queries to be used to add include statements. Specifies 2847 * the path value of "<b>CoverageEligibilityRequest:patient</b>". 2848 */ 2849 public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("CoverageEligibilityRequest:patient").toLocked(); 2850 2851 /** 2852 * Search parameter: <b>provider</b> 2853 * <p> 2854 * Description: <b>The reference to the provider</b><br> 2855 * Type: <b>reference</b><br> 2856 * Path: <b>CoverageEligibilityRequest.provider</b><br> 2857 * </p> 2858 */ 2859 @SearchParamDefinition(name="provider", path="CoverageEligibilityRequest.provider", description="The reference to the 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 } ) 2860 public static final String SP_PROVIDER = "provider"; 2861 /** 2862 * <b>Fluent Client</b> search parameter constant for <b>provider</b> 2863 * <p> 2864 * Description: <b>The reference to the provider</b><br> 2865 * Type: <b>reference</b><br> 2866 * Path: <b>CoverageEligibilityRequest.provider</b><br> 2867 * </p> 2868 */ 2869 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PROVIDER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PROVIDER); 2870 2871/** 2872 * Constant for fluent queries to be used to add include statements. Specifies 2873 * the path value of "<b>CoverageEligibilityRequest:provider</b>". 2874 */ 2875 public static final ca.uhn.fhir.model.api.Include INCLUDE_PROVIDER = new ca.uhn.fhir.model.api.Include("CoverageEligibilityRequest:provider").toLocked(); 2876 2877 /** 2878 * Search parameter: <b>status</b> 2879 * <p> 2880 * Description: <b>The status of the EligibilityRequest</b><br> 2881 * Type: <b>token</b><br> 2882 * Path: <b>CoverageEligibilityRequest.status</b><br> 2883 * </p> 2884 */ 2885 @SearchParamDefinition(name="status", path="CoverageEligibilityRequest.status", description="The status of the EligibilityRequest", type="token" ) 2886 public static final String SP_STATUS = "status"; 2887 /** 2888 * <b>Fluent Client</b> search parameter constant for <b>status</b> 2889 * <p> 2890 * Description: <b>The status of the EligibilityRequest</b><br> 2891 * Type: <b>token</b><br> 2892 * Path: <b>CoverageEligibilityRequest.status</b><br> 2893 * </p> 2894 */ 2895 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 2896 2897 2898} 2899