001package org.hl7.fhir.r5.model; 002 003/*- 004 * #%L 005 * org.hl7.fhir.r5 006 * %% 007 * Copyright (C) 2014 - 2019 Health Level 7 008 * %% 009 * Licensed under the Apache License, Version 2.0 (the "License"); 010 * you may not use this file except in compliance with the License. 011 * You may obtain a copy of the License at 012 * 013 * http://www.apache.org/licenses/LICENSE-2.0 014 * 015 * Unless required by applicable law or agreed to in writing, software 016 * distributed under the License is distributed on an "AS IS" BASIS, 017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 018 * See the License for the specific language governing permissions and 019 * limitations under the License. 020 * #L% 021 */ 022 023/* 024 Copyright (c) 2011+, HL7, Inc. 025 All rights reserved. 026 027 Redistribution and use in source and binary forms, with or without modification, 028 are permitted provided that the following conditions are met: 029 030 * Redistributions of source code must retain the above copyright notice, this 031 list of conditions and the following disclaimer. 032 * Redistributions in binary form must reproduce the above copyright notice, 033 this list of conditions and the following disclaimer in the documentation 034 and/or other materials provided with the distribution. 035 * Neither the name of HL7 nor the names of its contributors may be used to 036 endorse or promote products derived from this software without specific 037 prior written permission. 038 039 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 040 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 041 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 042 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 043 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 044 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 045 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 046 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 047 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 048 POSSIBILITY OF SUCH DAMAGE. 049 050*/ 051 052// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0 053import java.util.ArrayList; 054import java.util.Date; 055import java.util.List; 056import org.hl7.fhir.exceptions.FHIRException; 057import org.hl7.fhir.instance.model.api.ICompositeType; 058 059import java.math.*; 060import org.hl7.fhir.instance.model.api.IBaseDatatypeElement; 061import org.hl7.fhir.utilities.Utilities; 062import org.hl7.fhir.r5.model.Enumerations.*; 063import ca.uhn.fhir.model.api.annotation.ResourceDef; 064import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 065import org.hl7.fhir.instance.model.api.IBaseBackboneElement; 066import ca.uhn.fhir.model.api.annotation.Child; 067import ca.uhn.fhir.model.api.annotation.ChildOrder; 068import ca.uhn.fhir.model.api.annotation.Description; 069import ca.uhn.fhir.model.api.annotation.Block; 070/** 071 * The ChargeItemDefinition resource provides the properties that apply to the (billing) codes necessary to calculate costs and prices. The properties may differ largely depending on type and realm, therefore this resource gives only a rough structure and requires profiling for each type of billing code system. 072 */ 073@ResourceDef(name="ChargeItemDefinition", profile="http://hl7.org/fhir/StructureDefinition/ChargeItemDefinition") 074@ChildOrder(names={"url", "identifier", "version", "title", "derivedFromUri", "partOf", "replaces", "status", "experimental", "date", "publisher", "contact", "description", "useContext", "jurisdiction", "copyright", "approvalDate", "lastReviewDate", "effectivePeriod", "code", "instance", "applicability", "propertyGroup"}) 075public class ChargeItemDefinition extends MetadataResource { 076 077 public enum ChargeItemDefinitionPriceComponentType { 078 /** 079 * the amount is the base price used for calculating the total price before applying surcharges, discount or taxes. 080 */ 081 BASE, 082 /** 083 * the amount is a surcharge applied on the base price. 084 */ 085 SURCHARGE, 086 /** 087 * the amount is a deduction applied on the base price. 088 */ 089 DEDUCTION, 090 /** 091 * the amount is a discount applied on the base price. 092 */ 093 DISCOUNT, 094 /** 095 * the amount is the tax component of the total price. 096 */ 097 TAX, 098 /** 099 * the amount is of informational character, it has not been applied in the calculation of the total price. 100 */ 101 INFORMATIONAL, 102 /** 103 * added to help the parsers with the generic types 104 */ 105 NULL; 106 public static ChargeItemDefinitionPriceComponentType fromCode(String codeString) throws FHIRException { 107 if (codeString == null || "".equals(codeString)) 108 return null; 109 if ("base".equals(codeString)) 110 return BASE; 111 if ("surcharge".equals(codeString)) 112 return SURCHARGE; 113 if ("deduction".equals(codeString)) 114 return DEDUCTION; 115 if ("discount".equals(codeString)) 116 return DISCOUNT; 117 if ("tax".equals(codeString)) 118 return TAX; 119 if ("informational".equals(codeString)) 120 return INFORMATIONAL; 121 if (Configuration.isAcceptInvalidEnums()) 122 return null; 123 else 124 throw new FHIRException("Unknown ChargeItemDefinitionPriceComponentType code '"+codeString+"'"); 125 } 126 public String toCode() { 127 switch (this) { 128 case BASE: return "base"; 129 case SURCHARGE: return "surcharge"; 130 case DEDUCTION: return "deduction"; 131 case DISCOUNT: return "discount"; 132 case TAX: return "tax"; 133 case INFORMATIONAL: return "informational"; 134 default: return "?"; 135 } 136 } 137 public String getSystem() { 138 switch (this) { 139 case BASE: return "http://hl7.org/fhir/invoice-priceComponentType"; 140 case SURCHARGE: return "http://hl7.org/fhir/invoice-priceComponentType"; 141 case DEDUCTION: return "http://hl7.org/fhir/invoice-priceComponentType"; 142 case DISCOUNT: return "http://hl7.org/fhir/invoice-priceComponentType"; 143 case TAX: return "http://hl7.org/fhir/invoice-priceComponentType"; 144 case INFORMATIONAL: return "http://hl7.org/fhir/invoice-priceComponentType"; 145 default: return "?"; 146 } 147 } 148 public String getDefinition() { 149 switch (this) { 150 case BASE: return "the amount is the base price used for calculating the total price before applying surcharges, discount or taxes."; 151 case SURCHARGE: return "the amount is a surcharge applied on the base price."; 152 case DEDUCTION: return "the amount is a deduction applied on the base price."; 153 case DISCOUNT: return "the amount is a discount applied on the base price."; 154 case TAX: return "the amount is the tax component of the total price."; 155 case INFORMATIONAL: return "the amount is of informational character, it has not been applied in the calculation of the total price."; 156 default: return "?"; 157 } 158 } 159 public String getDisplay() { 160 switch (this) { 161 case BASE: return "base price"; 162 case SURCHARGE: return "surcharge"; 163 case DEDUCTION: return "deduction"; 164 case DISCOUNT: return "discount"; 165 case TAX: return "tax"; 166 case INFORMATIONAL: return "informational"; 167 default: return "?"; 168 } 169 } 170 } 171 172 public static class ChargeItemDefinitionPriceComponentTypeEnumFactory implements EnumFactory<ChargeItemDefinitionPriceComponentType> { 173 public ChargeItemDefinitionPriceComponentType fromCode(String codeString) throws IllegalArgumentException { 174 if (codeString == null || "".equals(codeString)) 175 if (codeString == null || "".equals(codeString)) 176 return null; 177 if ("base".equals(codeString)) 178 return ChargeItemDefinitionPriceComponentType.BASE; 179 if ("surcharge".equals(codeString)) 180 return ChargeItemDefinitionPriceComponentType.SURCHARGE; 181 if ("deduction".equals(codeString)) 182 return ChargeItemDefinitionPriceComponentType.DEDUCTION; 183 if ("discount".equals(codeString)) 184 return ChargeItemDefinitionPriceComponentType.DISCOUNT; 185 if ("tax".equals(codeString)) 186 return ChargeItemDefinitionPriceComponentType.TAX; 187 if ("informational".equals(codeString)) 188 return ChargeItemDefinitionPriceComponentType.INFORMATIONAL; 189 throw new IllegalArgumentException("Unknown ChargeItemDefinitionPriceComponentType code '"+codeString+"'"); 190 } 191 public Enumeration<ChargeItemDefinitionPriceComponentType> fromType(Base code) throws FHIRException { 192 if (code == null) 193 return null; 194 if (code.isEmpty()) 195 return new Enumeration<ChargeItemDefinitionPriceComponentType>(this); 196 String codeString = ((PrimitiveType) code).asStringValue(); 197 if (codeString == null || "".equals(codeString)) 198 return null; 199 if ("base".equals(codeString)) 200 return new Enumeration<ChargeItemDefinitionPriceComponentType>(this, ChargeItemDefinitionPriceComponentType.BASE); 201 if ("surcharge".equals(codeString)) 202 return new Enumeration<ChargeItemDefinitionPriceComponentType>(this, ChargeItemDefinitionPriceComponentType.SURCHARGE); 203 if ("deduction".equals(codeString)) 204 return new Enumeration<ChargeItemDefinitionPriceComponentType>(this, ChargeItemDefinitionPriceComponentType.DEDUCTION); 205 if ("discount".equals(codeString)) 206 return new Enumeration<ChargeItemDefinitionPriceComponentType>(this, ChargeItemDefinitionPriceComponentType.DISCOUNT); 207 if ("tax".equals(codeString)) 208 return new Enumeration<ChargeItemDefinitionPriceComponentType>(this, ChargeItemDefinitionPriceComponentType.TAX); 209 if ("informational".equals(codeString)) 210 return new Enumeration<ChargeItemDefinitionPriceComponentType>(this, ChargeItemDefinitionPriceComponentType.INFORMATIONAL); 211 throw new FHIRException("Unknown ChargeItemDefinitionPriceComponentType code '"+codeString+"'"); 212 } 213 public String toCode(ChargeItemDefinitionPriceComponentType code) { 214 if (code == ChargeItemDefinitionPriceComponentType.BASE) 215 return "base"; 216 if (code == ChargeItemDefinitionPriceComponentType.SURCHARGE) 217 return "surcharge"; 218 if (code == ChargeItemDefinitionPriceComponentType.DEDUCTION) 219 return "deduction"; 220 if (code == ChargeItemDefinitionPriceComponentType.DISCOUNT) 221 return "discount"; 222 if (code == ChargeItemDefinitionPriceComponentType.TAX) 223 return "tax"; 224 if (code == ChargeItemDefinitionPriceComponentType.INFORMATIONAL) 225 return "informational"; 226 return "?"; 227 } 228 public String toSystem(ChargeItemDefinitionPriceComponentType code) { 229 return code.getSystem(); 230 } 231 } 232 233 @Block() 234 public static class ChargeItemDefinitionApplicabilityComponent extends BackboneElement implements IBaseBackboneElement { 235 /** 236 * A brief, natural language description of the condition that effectively communicates the intended semantics. 237 */ 238 @Child(name = "description", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false) 239 @Description(shortDefinition="Natural language description of the condition", formalDefinition="A brief, natural language description of the condition that effectively communicates the intended semantics." ) 240 protected StringType description; 241 242 /** 243 * The media type of the language for the expression, e.g. "text/cql" for Clinical Query Language expressions or "text/fhirpath" for FHIRPath expressions. 244 */ 245 @Child(name = "language", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) 246 @Description(shortDefinition="Language of the expression", formalDefinition="The media type of the language for the expression, e.g. \"text/cql\" for Clinical Query Language expressions or \"text/fhirpath\" for FHIRPath expressions." ) 247 protected StringType language; 248 249 /** 250 * An expression that returns true or false, indicating whether the condition is satisfied. When using FHIRPath expressions, the %context environment variable must be replaced at runtime with the ChargeItem resource to which this definition is applied. 251 */ 252 @Child(name = "expression", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) 253 @Description(shortDefinition="Boolean-valued expression", formalDefinition="An expression that returns true or false, indicating whether the condition is satisfied. When using FHIRPath expressions, the %context environment variable must be replaced at runtime with the ChargeItem resource to which this definition is applied." ) 254 protected StringType expression; 255 256 private static final long serialVersionUID = 1354288281L; 257 258 /** 259 * Constructor 260 */ 261 public ChargeItemDefinitionApplicabilityComponent() { 262 super(); 263 } 264 265 /** 266 * @return {@link #description} (A brief, natural language description of the condition that effectively communicates the intended semantics.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 267 */ 268 public StringType getDescriptionElement() { 269 if (this.description == null) 270 if (Configuration.errorOnAutoCreate()) 271 throw new Error("Attempt to auto-create ChargeItemDefinitionApplicabilityComponent.description"); 272 else if (Configuration.doAutoCreate()) 273 this.description = new StringType(); // bb 274 return this.description; 275 } 276 277 public boolean hasDescriptionElement() { 278 return this.description != null && !this.description.isEmpty(); 279 } 280 281 public boolean hasDescription() { 282 return this.description != null && !this.description.isEmpty(); 283 } 284 285 /** 286 * @param value {@link #description} (A brief, natural language description of the condition that effectively communicates the intended semantics.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 287 */ 288 public ChargeItemDefinitionApplicabilityComponent setDescriptionElement(StringType value) { 289 this.description = value; 290 return this; 291 } 292 293 /** 294 * @return A brief, natural language description of the condition that effectively communicates the intended semantics. 295 */ 296 public String getDescription() { 297 return this.description == null ? null : this.description.getValue(); 298 } 299 300 /** 301 * @param value A brief, natural language description of the condition that effectively communicates the intended semantics. 302 */ 303 public ChargeItemDefinitionApplicabilityComponent setDescription(String value) { 304 if (Utilities.noString(value)) 305 this.description = null; 306 else { 307 if (this.description == null) 308 this.description = new StringType(); 309 this.description.setValue(value); 310 } 311 return this; 312 } 313 314 /** 315 * @return {@link #language} (The media type of the language for the expression, e.g. "text/cql" for Clinical Query Language expressions or "text/fhirpath" for FHIRPath expressions.). This is the underlying object with id, value and extensions. The accessor "getLanguage" gives direct access to the value 316 */ 317 public StringType getLanguageElement() { 318 if (this.language == null) 319 if (Configuration.errorOnAutoCreate()) 320 throw new Error("Attempt to auto-create ChargeItemDefinitionApplicabilityComponent.language"); 321 else if (Configuration.doAutoCreate()) 322 this.language = new StringType(); // bb 323 return this.language; 324 } 325 326 public boolean hasLanguageElement() { 327 return this.language != null && !this.language.isEmpty(); 328 } 329 330 public boolean hasLanguage() { 331 return this.language != null && !this.language.isEmpty(); 332 } 333 334 /** 335 * @param value {@link #language} (The media type of the language for the expression, e.g. "text/cql" for Clinical Query Language expressions or "text/fhirpath" for FHIRPath expressions.). This is the underlying object with id, value and extensions. The accessor "getLanguage" gives direct access to the value 336 */ 337 public ChargeItemDefinitionApplicabilityComponent setLanguageElement(StringType value) { 338 this.language = value; 339 return this; 340 } 341 342 /** 343 * @return The media type of the language for the expression, e.g. "text/cql" for Clinical Query Language expressions or "text/fhirpath" for FHIRPath expressions. 344 */ 345 public String getLanguage() { 346 return this.language == null ? null : this.language.getValue(); 347 } 348 349 /** 350 * @param value The media type of the language for the expression, e.g. "text/cql" for Clinical Query Language expressions or "text/fhirpath" for FHIRPath expressions. 351 */ 352 public ChargeItemDefinitionApplicabilityComponent setLanguage(String value) { 353 if (Utilities.noString(value)) 354 this.language = null; 355 else { 356 if (this.language == null) 357 this.language = new StringType(); 358 this.language.setValue(value); 359 } 360 return this; 361 } 362 363 /** 364 * @return {@link #expression} (An expression that returns true or false, indicating whether the condition is satisfied. When using FHIRPath expressions, the %context environment variable must be replaced at runtime with the ChargeItem resource to which this definition is applied.). This is the underlying object with id, value and extensions. The accessor "getExpression" gives direct access to the value 365 */ 366 public StringType getExpressionElement() { 367 if (this.expression == null) 368 if (Configuration.errorOnAutoCreate()) 369 throw new Error("Attempt to auto-create ChargeItemDefinitionApplicabilityComponent.expression"); 370 else if (Configuration.doAutoCreate()) 371 this.expression = new StringType(); // bb 372 return this.expression; 373 } 374 375 public boolean hasExpressionElement() { 376 return this.expression != null && !this.expression.isEmpty(); 377 } 378 379 public boolean hasExpression() { 380 return this.expression != null && !this.expression.isEmpty(); 381 } 382 383 /** 384 * @param value {@link #expression} (An expression that returns true or false, indicating whether the condition is satisfied. When using FHIRPath expressions, the %context environment variable must be replaced at runtime with the ChargeItem resource to which this definition is applied.). This is the underlying object with id, value and extensions. The accessor "getExpression" gives direct access to the value 385 */ 386 public ChargeItemDefinitionApplicabilityComponent setExpressionElement(StringType value) { 387 this.expression = value; 388 return this; 389 } 390 391 /** 392 * @return An expression that returns true or false, indicating whether the condition is satisfied. When using FHIRPath expressions, the %context environment variable must be replaced at runtime with the ChargeItem resource to which this definition is applied. 393 */ 394 public String getExpression() { 395 return this.expression == null ? null : this.expression.getValue(); 396 } 397 398 /** 399 * @param value An expression that returns true or false, indicating whether the condition is satisfied. When using FHIRPath expressions, the %context environment variable must be replaced at runtime with the ChargeItem resource to which this definition is applied. 400 */ 401 public ChargeItemDefinitionApplicabilityComponent setExpression(String value) { 402 if (Utilities.noString(value)) 403 this.expression = null; 404 else { 405 if (this.expression == null) 406 this.expression = new StringType(); 407 this.expression.setValue(value); 408 } 409 return this; 410 } 411 412 protected void listChildren(List<Property> children) { 413 super.listChildren(children); 414 children.add(new Property("description", "string", "A brief, natural language description of the condition that effectively communicates the intended semantics.", 0, 1, description)); 415 children.add(new Property("language", "string", "The media type of the language for the expression, e.g. \"text/cql\" for Clinical Query Language expressions or \"text/fhirpath\" for FHIRPath expressions.", 0, 1, language)); 416 children.add(new Property("expression", "string", "An expression that returns true or false, indicating whether the condition is satisfied. When using FHIRPath expressions, the %context environment variable must be replaced at runtime with the ChargeItem resource to which this definition is applied.", 0, 1, expression)); 417 } 418 419 @Override 420 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 421 switch (_hash) { 422 case -1724546052: /*description*/ return new Property("description", "string", "A brief, natural language description of the condition that effectively communicates the intended semantics.", 0, 1, description); 423 case -1613589672: /*language*/ return new Property("language", "string", "The media type of the language for the expression, e.g. \"text/cql\" for Clinical Query Language expressions or \"text/fhirpath\" for FHIRPath expressions.", 0, 1, language); 424 case -1795452264: /*expression*/ return new Property("expression", "string", "An expression that returns true or false, indicating whether the condition is satisfied. When using FHIRPath expressions, the %context environment variable must be replaced at runtime with the ChargeItem resource to which this definition is applied.", 0, 1, expression); 425 default: return super.getNamedProperty(_hash, _name, _checkValid); 426 } 427 428 } 429 430 @Override 431 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 432 switch (hash) { 433 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType 434 case -1613589672: /*language*/ return this.language == null ? new Base[0] : new Base[] {this.language}; // StringType 435 case -1795452264: /*expression*/ return this.expression == null ? new Base[0] : new Base[] {this.expression}; // StringType 436 default: return super.getProperty(hash, name, checkValid); 437 } 438 439 } 440 441 @Override 442 public Base setProperty(int hash, String name, Base value) throws FHIRException { 443 switch (hash) { 444 case -1724546052: // description 445 this.description = castToString(value); // StringType 446 return value; 447 case -1613589672: // language 448 this.language = castToString(value); // StringType 449 return value; 450 case -1795452264: // expression 451 this.expression = castToString(value); // StringType 452 return value; 453 default: return super.setProperty(hash, name, value); 454 } 455 456 } 457 458 @Override 459 public Base setProperty(String name, Base value) throws FHIRException { 460 if (name.equals("description")) { 461 this.description = castToString(value); // StringType 462 } else if (name.equals("language")) { 463 this.language = castToString(value); // StringType 464 } else if (name.equals("expression")) { 465 this.expression = castToString(value); // StringType 466 } else 467 return super.setProperty(name, value); 468 return value; 469 } 470 471 @Override 472 public Base makeProperty(int hash, String name) throws FHIRException { 473 switch (hash) { 474 case -1724546052: return getDescriptionElement(); 475 case -1613589672: return getLanguageElement(); 476 case -1795452264: return getExpressionElement(); 477 default: return super.makeProperty(hash, name); 478 } 479 480 } 481 482 @Override 483 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 484 switch (hash) { 485 case -1724546052: /*description*/ return new String[] {"string"}; 486 case -1613589672: /*language*/ return new String[] {"string"}; 487 case -1795452264: /*expression*/ return new String[] {"string"}; 488 default: return super.getTypesForProperty(hash, name); 489 } 490 491 } 492 493 @Override 494 public Base addChild(String name) throws FHIRException { 495 if (name.equals("description")) { 496 throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.description"); 497 } 498 else if (name.equals("language")) { 499 throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.language"); 500 } 501 else if (name.equals("expression")) { 502 throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.expression"); 503 } 504 else 505 return super.addChild(name); 506 } 507 508 public ChargeItemDefinitionApplicabilityComponent copy() { 509 ChargeItemDefinitionApplicabilityComponent dst = new ChargeItemDefinitionApplicabilityComponent(); 510 copyValues(dst); 511 return dst; 512 } 513 514 public void copyValues(ChargeItemDefinitionApplicabilityComponent dst) { 515 super.copyValues(dst); 516 dst.description = description == null ? null : description.copy(); 517 dst.language = language == null ? null : language.copy(); 518 dst.expression = expression == null ? null : expression.copy(); 519 } 520 521 @Override 522 public boolean equalsDeep(Base other_) { 523 if (!super.equalsDeep(other_)) 524 return false; 525 if (!(other_ instanceof ChargeItemDefinitionApplicabilityComponent)) 526 return false; 527 ChargeItemDefinitionApplicabilityComponent o = (ChargeItemDefinitionApplicabilityComponent) other_; 528 return compareDeep(description, o.description, true) && compareDeep(language, o.language, true) 529 && compareDeep(expression, o.expression, true); 530 } 531 532 @Override 533 public boolean equalsShallow(Base other_) { 534 if (!super.equalsShallow(other_)) 535 return false; 536 if (!(other_ instanceof ChargeItemDefinitionApplicabilityComponent)) 537 return false; 538 ChargeItemDefinitionApplicabilityComponent o = (ChargeItemDefinitionApplicabilityComponent) other_; 539 return compareValues(description, o.description, true) && compareValues(language, o.language, true) 540 && compareValues(expression, o.expression, true); 541 } 542 543 public boolean isEmpty() { 544 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(description, language, expression 545 ); 546 } 547 548 public String fhirType() { 549 return "ChargeItemDefinition.applicability"; 550 551 } 552 553 } 554 555 @Block() 556 public static class ChargeItemDefinitionPropertyGroupComponent extends BackboneElement implements IBaseBackboneElement { 557 /** 558 * Expressions that describe applicability criteria for the priceComponent. 559 */ 560 @Child(name = "applicability", type = {ChargeItemDefinitionApplicabilityComponent.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 561 @Description(shortDefinition="Conditions under which the priceComponent is applicable", formalDefinition="Expressions that describe applicability criteria for the priceComponent." ) 562 protected List<ChargeItemDefinitionApplicabilityComponent> applicability; 563 564 /** 565 * The price for a ChargeItem may be calculated as a base price with surcharges/deductions that apply in certain conditions. A ChargeItemDefinition resource that defines the prices, factors and conditions that apply to a billing code is currently under development. The priceComponent element can be used to offer transparency to the recipient of the Invoice of how the prices have been calculated. 566 */ 567 @Child(name = "priceComponent", type = {}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 568 @Description(shortDefinition="Components of total line item price", formalDefinition="The price for a ChargeItem may be calculated as a base price with surcharges/deductions that apply in certain conditions. A ChargeItemDefinition resource that defines the prices, factors and conditions that apply to a billing code is currently under development. The priceComponent element can be used to offer transparency to the recipient of the Invoice of how the prices have been calculated." ) 569 protected List<ChargeItemDefinitionPropertyGroupPriceComponentComponent> priceComponent; 570 571 private static final long serialVersionUID = 1723436176L; 572 573 /** 574 * Constructor 575 */ 576 public ChargeItemDefinitionPropertyGroupComponent() { 577 super(); 578 } 579 580 /** 581 * @return {@link #applicability} (Expressions that describe applicability criteria for the priceComponent.) 582 */ 583 public List<ChargeItemDefinitionApplicabilityComponent> getApplicability() { 584 if (this.applicability == null) 585 this.applicability = new ArrayList<ChargeItemDefinitionApplicabilityComponent>(); 586 return this.applicability; 587 } 588 589 /** 590 * @return Returns a reference to <code>this</code> for easy method chaining 591 */ 592 public ChargeItemDefinitionPropertyGroupComponent setApplicability(List<ChargeItemDefinitionApplicabilityComponent> theApplicability) { 593 this.applicability = theApplicability; 594 return this; 595 } 596 597 public boolean hasApplicability() { 598 if (this.applicability == null) 599 return false; 600 for (ChargeItemDefinitionApplicabilityComponent item : this.applicability) 601 if (!item.isEmpty()) 602 return true; 603 return false; 604 } 605 606 public ChargeItemDefinitionApplicabilityComponent addApplicability() { //3 607 ChargeItemDefinitionApplicabilityComponent t = new ChargeItemDefinitionApplicabilityComponent(); 608 if (this.applicability == null) 609 this.applicability = new ArrayList<ChargeItemDefinitionApplicabilityComponent>(); 610 this.applicability.add(t); 611 return t; 612 } 613 614 public ChargeItemDefinitionPropertyGroupComponent addApplicability(ChargeItemDefinitionApplicabilityComponent t) { //3 615 if (t == null) 616 return this; 617 if (this.applicability == null) 618 this.applicability = new ArrayList<ChargeItemDefinitionApplicabilityComponent>(); 619 this.applicability.add(t); 620 return this; 621 } 622 623 /** 624 * @return The first repetition of repeating field {@link #applicability}, creating it if it does not already exist 625 */ 626 public ChargeItemDefinitionApplicabilityComponent getApplicabilityFirstRep() { 627 if (getApplicability().isEmpty()) { 628 addApplicability(); 629 } 630 return getApplicability().get(0); 631 } 632 633 /** 634 * @return {@link #priceComponent} (The price for a ChargeItem may be calculated as a base price with surcharges/deductions that apply in certain conditions. A ChargeItemDefinition resource that defines the prices, factors and conditions that apply to a billing code is currently under development. The priceComponent element can be used to offer transparency to the recipient of the Invoice of how the prices have been calculated.) 635 */ 636 public List<ChargeItemDefinitionPropertyGroupPriceComponentComponent> getPriceComponent() { 637 if (this.priceComponent == null) 638 this.priceComponent = new ArrayList<ChargeItemDefinitionPropertyGroupPriceComponentComponent>(); 639 return this.priceComponent; 640 } 641 642 /** 643 * @return Returns a reference to <code>this</code> for easy method chaining 644 */ 645 public ChargeItemDefinitionPropertyGroupComponent setPriceComponent(List<ChargeItemDefinitionPropertyGroupPriceComponentComponent> thePriceComponent) { 646 this.priceComponent = thePriceComponent; 647 return this; 648 } 649 650 public boolean hasPriceComponent() { 651 if (this.priceComponent == null) 652 return false; 653 for (ChargeItemDefinitionPropertyGroupPriceComponentComponent item : this.priceComponent) 654 if (!item.isEmpty()) 655 return true; 656 return false; 657 } 658 659 public ChargeItemDefinitionPropertyGroupPriceComponentComponent addPriceComponent() { //3 660 ChargeItemDefinitionPropertyGroupPriceComponentComponent t = new ChargeItemDefinitionPropertyGroupPriceComponentComponent(); 661 if (this.priceComponent == null) 662 this.priceComponent = new ArrayList<ChargeItemDefinitionPropertyGroupPriceComponentComponent>(); 663 this.priceComponent.add(t); 664 return t; 665 } 666 667 public ChargeItemDefinitionPropertyGroupComponent addPriceComponent(ChargeItemDefinitionPropertyGroupPriceComponentComponent t) { //3 668 if (t == null) 669 return this; 670 if (this.priceComponent == null) 671 this.priceComponent = new ArrayList<ChargeItemDefinitionPropertyGroupPriceComponentComponent>(); 672 this.priceComponent.add(t); 673 return this; 674 } 675 676 /** 677 * @return The first repetition of repeating field {@link #priceComponent}, creating it if it does not already exist 678 */ 679 public ChargeItemDefinitionPropertyGroupPriceComponentComponent getPriceComponentFirstRep() { 680 if (getPriceComponent().isEmpty()) { 681 addPriceComponent(); 682 } 683 return getPriceComponent().get(0); 684 } 685 686 protected void listChildren(List<Property> children) { 687 super.listChildren(children); 688 children.add(new Property("applicability", "@ChargeItemDefinition.applicability", "Expressions that describe applicability criteria for the priceComponent.", 0, java.lang.Integer.MAX_VALUE, applicability)); 689 children.add(new Property("priceComponent", "", "The price for a ChargeItem may be calculated as a base price with surcharges/deductions that apply in certain conditions. A ChargeItemDefinition resource that defines the prices, factors and conditions that apply to a billing code is currently under development. The priceComponent element can be used to offer transparency to the recipient of the Invoice of how the prices have been calculated.", 0, java.lang.Integer.MAX_VALUE, priceComponent)); 690 } 691 692 @Override 693 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 694 switch (_hash) { 695 case -1526770491: /*applicability*/ return new Property("applicability", "@ChargeItemDefinition.applicability", "Expressions that describe applicability criteria for the priceComponent.", 0, java.lang.Integer.MAX_VALUE, applicability); 696 case 1219095988: /*priceComponent*/ return new Property("priceComponent", "", "The price for a ChargeItem may be calculated as a base price with surcharges/deductions that apply in certain conditions. A ChargeItemDefinition resource that defines the prices, factors and conditions that apply to a billing code is currently under development. The priceComponent element can be used to offer transparency to the recipient of the Invoice of how the prices have been calculated.", 0, java.lang.Integer.MAX_VALUE, priceComponent); 697 default: return super.getNamedProperty(_hash, _name, _checkValid); 698 } 699 700 } 701 702 @Override 703 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 704 switch (hash) { 705 case -1526770491: /*applicability*/ return this.applicability == null ? new Base[0] : this.applicability.toArray(new Base[this.applicability.size()]); // ChargeItemDefinitionApplicabilityComponent 706 case 1219095988: /*priceComponent*/ return this.priceComponent == null ? new Base[0] : this.priceComponent.toArray(new Base[this.priceComponent.size()]); // ChargeItemDefinitionPropertyGroupPriceComponentComponent 707 default: return super.getProperty(hash, name, checkValid); 708 } 709 710 } 711 712 @Override 713 public Base setProperty(int hash, String name, Base value) throws FHIRException { 714 switch (hash) { 715 case -1526770491: // applicability 716 this.getApplicability().add((ChargeItemDefinitionApplicabilityComponent) value); // ChargeItemDefinitionApplicabilityComponent 717 return value; 718 case 1219095988: // priceComponent 719 this.getPriceComponent().add((ChargeItemDefinitionPropertyGroupPriceComponentComponent) value); // ChargeItemDefinitionPropertyGroupPriceComponentComponent 720 return value; 721 default: return super.setProperty(hash, name, value); 722 } 723 724 } 725 726 @Override 727 public Base setProperty(String name, Base value) throws FHIRException { 728 if (name.equals("applicability")) { 729 this.getApplicability().add((ChargeItemDefinitionApplicabilityComponent) value); 730 } else if (name.equals("priceComponent")) { 731 this.getPriceComponent().add((ChargeItemDefinitionPropertyGroupPriceComponentComponent) value); 732 } else 733 return super.setProperty(name, value); 734 return value; 735 } 736 737 @Override 738 public Base makeProperty(int hash, String name) throws FHIRException { 739 switch (hash) { 740 case -1526770491: return addApplicability(); 741 case 1219095988: return addPriceComponent(); 742 default: return super.makeProperty(hash, name); 743 } 744 745 } 746 747 @Override 748 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 749 switch (hash) { 750 case -1526770491: /*applicability*/ return new String[] {"@ChargeItemDefinition.applicability"}; 751 case 1219095988: /*priceComponent*/ return new String[] {}; 752 default: return super.getTypesForProperty(hash, name); 753 } 754 755 } 756 757 @Override 758 public Base addChild(String name) throws FHIRException { 759 if (name.equals("applicability")) { 760 return addApplicability(); 761 } 762 else if (name.equals("priceComponent")) { 763 return addPriceComponent(); 764 } 765 else 766 return super.addChild(name); 767 } 768 769 public ChargeItemDefinitionPropertyGroupComponent copy() { 770 ChargeItemDefinitionPropertyGroupComponent dst = new ChargeItemDefinitionPropertyGroupComponent(); 771 copyValues(dst); 772 return dst; 773 } 774 775 public void copyValues(ChargeItemDefinitionPropertyGroupComponent dst) { 776 super.copyValues(dst); 777 if (applicability != null) { 778 dst.applicability = new ArrayList<ChargeItemDefinitionApplicabilityComponent>(); 779 for (ChargeItemDefinitionApplicabilityComponent i : applicability) 780 dst.applicability.add(i.copy()); 781 }; 782 if (priceComponent != null) { 783 dst.priceComponent = new ArrayList<ChargeItemDefinitionPropertyGroupPriceComponentComponent>(); 784 for (ChargeItemDefinitionPropertyGroupPriceComponentComponent i : priceComponent) 785 dst.priceComponent.add(i.copy()); 786 }; 787 } 788 789 @Override 790 public boolean equalsDeep(Base other_) { 791 if (!super.equalsDeep(other_)) 792 return false; 793 if (!(other_ instanceof ChargeItemDefinitionPropertyGroupComponent)) 794 return false; 795 ChargeItemDefinitionPropertyGroupComponent o = (ChargeItemDefinitionPropertyGroupComponent) other_; 796 return compareDeep(applicability, o.applicability, true) && compareDeep(priceComponent, o.priceComponent, true) 797 ; 798 } 799 800 @Override 801 public boolean equalsShallow(Base other_) { 802 if (!super.equalsShallow(other_)) 803 return false; 804 if (!(other_ instanceof ChargeItemDefinitionPropertyGroupComponent)) 805 return false; 806 ChargeItemDefinitionPropertyGroupComponent o = (ChargeItemDefinitionPropertyGroupComponent) other_; 807 return true; 808 } 809 810 public boolean isEmpty() { 811 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(applicability, priceComponent 812 ); 813 } 814 815 public String fhirType() { 816 return "ChargeItemDefinition.propertyGroup"; 817 818 } 819 820 } 821 822 @Block() 823 public static class ChargeItemDefinitionPropertyGroupPriceComponentComponent extends BackboneElement implements IBaseBackboneElement { 824 /** 825 * This code identifies the type of the component. 826 */ 827 @Child(name = "type", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false) 828 @Description(shortDefinition="base | surcharge | deduction | discount | tax | informational", formalDefinition="This code identifies the type of the component." ) 829 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/invoice-priceComponentType") 830 protected Enumeration<ChargeItemDefinitionPriceComponentType> type; 831 832 /** 833 * A code that identifies the component. Codes may be used to differentiate between kinds of taxes, surcharges, discounts etc. 834 */ 835 @Child(name = "code", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) 836 @Description(shortDefinition="Code identifying the specific component", formalDefinition="A code that identifies the component. Codes may be used to differentiate between kinds of taxes, surcharges, discounts etc." ) 837 protected CodeableConcept code; 838 839 /** 840 * The factor that has been applied on the base price for calculating this component. 841 */ 842 @Child(name = "factor", type = {DecimalType.class}, order=3, min=0, max=1, modifier=false, summary=false) 843 @Description(shortDefinition="Factor used for calculating this component", formalDefinition="The factor that has been applied on the base price for calculating this component." ) 844 protected DecimalType factor; 845 846 /** 847 * The amount calculated for this component. 848 */ 849 @Child(name = "amount", type = {Money.class}, order=4, min=0, max=1, modifier=false, summary=false) 850 @Description(shortDefinition="Monetary amount associated with this component", formalDefinition="The amount calculated for this component." ) 851 protected Money amount; 852 853 private static final long serialVersionUID = -841451335L; 854 855 /** 856 * Constructor 857 */ 858 public ChargeItemDefinitionPropertyGroupPriceComponentComponent() { 859 super(); 860 } 861 862 /** 863 * Constructor 864 */ 865 public ChargeItemDefinitionPropertyGroupPriceComponentComponent(Enumeration<ChargeItemDefinitionPriceComponentType> type) { 866 super(); 867 this.type = type; 868 } 869 870 /** 871 * @return {@link #type} (This code identifies the type of the component.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value 872 */ 873 public Enumeration<ChargeItemDefinitionPriceComponentType> getTypeElement() { 874 if (this.type == null) 875 if (Configuration.errorOnAutoCreate()) 876 throw new Error("Attempt to auto-create ChargeItemDefinitionPropertyGroupPriceComponentComponent.type"); 877 else if (Configuration.doAutoCreate()) 878 this.type = new Enumeration<ChargeItemDefinitionPriceComponentType>(new ChargeItemDefinitionPriceComponentTypeEnumFactory()); // bb 879 return this.type; 880 } 881 882 public boolean hasTypeElement() { 883 return this.type != null && !this.type.isEmpty(); 884 } 885 886 public boolean hasType() { 887 return this.type != null && !this.type.isEmpty(); 888 } 889 890 /** 891 * @param value {@link #type} (This code identifies the type of the component.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value 892 */ 893 public ChargeItemDefinitionPropertyGroupPriceComponentComponent setTypeElement(Enumeration<ChargeItemDefinitionPriceComponentType> value) { 894 this.type = value; 895 return this; 896 } 897 898 /** 899 * @return This code identifies the type of the component. 900 */ 901 public ChargeItemDefinitionPriceComponentType getType() { 902 return this.type == null ? null : this.type.getValue(); 903 } 904 905 /** 906 * @param value This code identifies the type of the component. 907 */ 908 public ChargeItemDefinitionPropertyGroupPriceComponentComponent setType(ChargeItemDefinitionPriceComponentType value) { 909 if (this.type == null) 910 this.type = new Enumeration<ChargeItemDefinitionPriceComponentType>(new ChargeItemDefinitionPriceComponentTypeEnumFactory()); 911 this.type.setValue(value); 912 return this; 913 } 914 915 /** 916 * @return {@link #code} (A code that identifies the component. Codes may be used to differentiate between kinds of taxes, surcharges, discounts etc.) 917 */ 918 public CodeableConcept getCode() { 919 if (this.code == null) 920 if (Configuration.errorOnAutoCreate()) 921 throw new Error("Attempt to auto-create ChargeItemDefinitionPropertyGroupPriceComponentComponent.code"); 922 else if (Configuration.doAutoCreate()) 923 this.code = new CodeableConcept(); // cc 924 return this.code; 925 } 926 927 public boolean hasCode() { 928 return this.code != null && !this.code.isEmpty(); 929 } 930 931 /** 932 * @param value {@link #code} (A code that identifies the component. Codes may be used to differentiate between kinds of taxes, surcharges, discounts etc.) 933 */ 934 public ChargeItemDefinitionPropertyGroupPriceComponentComponent setCode(CodeableConcept value) { 935 this.code = value; 936 return this; 937 } 938 939 /** 940 * @return {@link #factor} (The factor that has been applied on the base price for calculating this component.). This is the underlying object with id, value and extensions. The accessor "getFactor" gives direct access to the value 941 */ 942 public DecimalType getFactorElement() { 943 if (this.factor == null) 944 if (Configuration.errorOnAutoCreate()) 945 throw new Error("Attempt to auto-create ChargeItemDefinitionPropertyGroupPriceComponentComponent.factor"); 946 else if (Configuration.doAutoCreate()) 947 this.factor = new DecimalType(); // bb 948 return this.factor; 949 } 950 951 public boolean hasFactorElement() { 952 return this.factor != null && !this.factor.isEmpty(); 953 } 954 955 public boolean hasFactor() { 956 return this.factor != null && !this.factor.isEmpty(); 957 } 958 959 /** 960 * @param value {@link #factor} (The factor that has been applied on the base price for calculating this component.). This is the underlying object with id, value and extensions. The accessor "getFactor" gives direct access to the value 961 */ 962 public ChargeItemDefinitionPropertyGroupPriceComponentComponent setFactorElement(DecimalType value) { 963 this.factor = value; 964 return this; 965 } 966 967 /** 968 * @return The factor that has been applied on the base price for calculating this component. 969 */ 970 public BigDecimal getFactor() { 971 return this.factor == null ? null : this.factor.getValue(); 972 } 973 974 /** 975 * @param value The factor that has been applied on the base price for calculating this component. 976 */ 977 public ChargeItemDefinitionPropertyGroupPriceComponentComponent setFactor(BigDecimal value) { 978 if (value == null) 979 this.factor = null; 980 else { 981 if (this.factor == null) 982 this.factor = new DecimalType(); 983 this.factor.setValue(value); 984 } 985 return this; 986 } 987 988 /** 989 * @param value The factor that has been applied on the base price for calculating this component. 990 */ 991 public ChargeItemDefinitionPropertyGroupPriceComponentComponent setFactor(long value) { 992 this.factor = new DecimalType(); 993 this.factor.setValue(value); 994 return this; 995 } 996 997 /** 998 * @param value The factor that has been applied on the base price for calculating this component. 999 */ 1000 public ChargeItemDefinitionPropertyGroupPriceComponentComponent setFactor(double value) { 1001 this.factor = new DecimalType(); 1002 this.factor.setValue(value); 1003 return this; 1004 } 1005 1006 /** 1007 * @return {@link #amount} (The amount calculated for this component.) 1008 */ 1009 public Money getAmount() { 1010 if (this.amount == null) 1011 if (Configuration.errorOnAutoCreate()) 1012 throw new Error("Attempt to auto-create ChargeItemDefinitionPropertyGroupPriceComponentComponent.amount"); 1013 else if (Configuration.doAutoCreate()) 1014 this.amount = new Money(); // cc 1015 return this.amount; 1016 } 1017 1018 public boolean hasAmount() { 1019 return this.amount != null && !this.amount.isEmpty(); 1020 } 1021 1022 /** 1023 * @param value {@link #amount} (The amount calculated for this component.) 1024 */ 1025 public ChargeItemDefinitionPropertyGroupPriceComponentComponent setAmount(Money value) { 1026 this.amount = value; 1027 return this; 1028 } 1029 1030 protected void listChildren(List<Property> children) { 1031 super.listChildren(children); 1032 children.add(new Property("type", "code", "This code identifies the type of the component.", 0, 1, type)); 1033 children.add(new Property("code", "CodeableConcept", "A code that identifies the component. Codes may be used to differentiate between kinds of taxes, surcharges, discounts etc.", 0, 1, code)); 1034 children.add(new Property("factor", "decimal", "The factor that has been applied on the base price for calculating this component.", 0, 1, factor)); 1035 children.add(new Property("amount", "Money", "The amount calculated for this component.", 0, 1, amount)); 1036 } 1037 1038 @Override 1039 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1040 switch (_hash) { 1041 case 3575610: /*type*/ return new Property("type", "code", "This code identifies the type of the component.", 0, 1, type); 1042 case 3059181: /*code*/ return new Property("code", "CodeableConcept", "A code that identifies the component. Codes may be used to differentiate between kinds of taxes, surcharges, discounts etc.", 0, 1, code); 1043 case -1282148017: /*factor*/ return new Property("factor", "decimal", "The factor that has been applied on the base price for calculating this component.", 0, 1, factor); 1044 case -1413853096: /*amount*/ return new Property("amount", "Money", "The amount calculated for this component.", 0, 1, amount); 1045 default: return super.getNamedProperty(_hash, _name, _checkValid); 1046 } 1047 1048 } 1049 1050 @Override 1051 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1052 switch (hash) { 1053 case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // Enumeration<ChargeItemDefinitionPriceComponentType> 1054 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept 1055 case -1282148017: /*factor*/ return this.factor == null ? new Base[0] : new Base[] {this.factor}; // DecimalType 1056 case -1413853096: /*amount*/ return this.amount == null ? new Base[0] : new Base[] {this.amount}; // Money 1057 default: return super.getProperty(hash, name, checkValid); 1058 } 1059 1060 } 1061 1062 @Override 1063 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1064 switch (hash) { 1065 case 3575610: // type 1066 value = new ChargeItemDefinitionPriceComponentTypeEnumFactory().fromType(castToCode(value)); 1067 this.type = (Enumeration) value; // Enumeration<ChargeItemDefinitionPriceComponentType> 1068 return value; 1069 case 3059181: // code 1070 this.code = castToCodeableConcept(value); // CodeableConcept 1071 return value; 1072 case -1282148017: // factor 1073 this.factor = castToDecimal(value); // DecimalType 1074 return value; 1075 case -1413853096: // amount 1076 this.amount = castToMoney(value); // Money 1077 return value; 1078 default: return super.setProperty(hash, name, value); 1079 } 1080 1081 } 1082 1083 @Override 1084 public Base setProperty(String name, Base value) throws FHIRException { 1085 if (name.equals("type")) { 1086 value = new ChargeItemDefinitionPriceComponentTypeEnumFactory().fromType(castToCode(value)); 1087 this.type = (Enumeration) value; // Enumeration<ChargeItemDefinitionPriceComponentType> 1088 } else if (name.equals("code")) { 1089 this.code = castToCodeableConcept(value); // CodeableConcept 1090 } else if (name.equals("factor")) { 1091 this.factor = castToDecimal(value); // DecimalType 1092 } else if (name.equals("amount")) { 1093 this.amount = castToMoney(value); // Money 1094 } else 1095 return super.setProperty(name, value); 1096 return value; 1097 } 1098 1099 @Override 1100 public Base makeProperty(int hash, String name) throws FHIRException { 1101 switch (hash) { 1102 case 3575610: return getTypeElement(); 1103 case 3059181: return getCode(); 1104 case -1282148017: return getFactorElement(); 1105 case -1413853096: return getAmount(); 1106 default: return super.makeProperty(hash, name); 1107 } 1108 1109 } 1110 1111 @Override 1112 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1113 switch (hash) { 1114 case 3575610: /*type*/ return new String[] {"code"}; 1115 case 3059181: /*code*/ return new String[] {"CodeableConcept"}; 1116 case -1282148017: /*factor*/ return new String[] {"decimal"}; 1117 case -1413853096: /*amount*/ return new String[] {"Money"}; 1118 default: return super.getTypesForProperty(hash, name); 1119 } 1120 1121 } 1122 1123 @Override 1124 public Base addChild(String name) throws FHIRException { 1125 if (name.equals("type")) { 1126 throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.type"); 1127 } 1128 else if (name.equals("code")) { 1129 this.code = new CodeableConcept(); 1130 return this.code; 1131 } 1132 else if (name.equals("factor")) { 1133 throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.factor"); 1134 } 1135 else if (name.equals("amount")) { 1136 this.amount = new Money(); 1137 return this.amount; 1138 } 1139 else 1140 return super.addChild(name); 1141 } 1142 1143 public ChargeItemDefinitionPropertyGroupPriceComponentComponent copy() { 1144 ChargeItemDefinitionPropertyGroupPriceComponentComponent dst = new ChargeItemDefinitionPropertyGroupPriceComponentComponent(); 1145 copyValues(dst); 1146 return dst; 1147 } 1148 1149 public void copyValues(ChargeItemDefinitionPropertyGroupPriceComponentComponent dst) { 1150 super.copyValues(dst); 1151 dst.type = type == null ? null : type.copy(); 1152 dst.code = code == null ? null : code.copy(); 1153 dst.factor = factor == null ? null : factor.copy(); 1154 dst.amount = amount == null ? null : amount.copy(); 1155 } 1156 1157 @Override 1158 public boolean equalsDeep(Base other_) { 1159 if (!super.equalsDeep(other_)) 1160 return false; 1161 if (!(other_ instanceof ChargeItemDefinitionPropertyGroupPriceComponentComponent)) 1162 return false; 1163 ChargeItemDefinitionPropertyGroupPriceComponentComponent o = (ChargeItemDefinitionPropertyGroupPriceComponentComponent) other_; 1164 return compareDeep(type, o.type, true) && compareDeep(code, o.code, true) && compareDeep(factor, o.factor, true) 1165 && compareDeep(amount, o.amount, true); 1166 } 1167 1168 @Override 1169 public boolean equalsShallow(Base other_) { 1170 if (!super.equalsShallow(other_)) 1171 return false; 1172 if (!(other_ instanceof ChargeItemDefinitionPropertyGroupPriceComponentComponent)) 1173 return false; 1174 ChargeItemDefinitionPropertyGroupPriceComponentComponent o = (ChargeItemDefinitionPropertyGroupPriceComponentComponent) other_; 1175 return compareValues(type, o.type, true) && compareValues(factor, o.factor, true); 1176 } 1177 1178 public boolean isEmpty() { 1179 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, code, factor, amount 1180 ); 1181 } 1182 1183 public String fhirType() { 1184 return "ChargeItemDefinition.propertyGroup.priceComponent"; 1185 1186 } 1187 1188 } 1189 1190 /** 1191 * A formal identifier that is used to identify this charge item definition when it is represented in other formats, or referenced in a specification, model, design or an instance. 1192 */ 1193 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1194 @Description(shortDefinition="Additional identifier for the charge item definition", formalDefinition="A formal identifier that is used to identify this charge item definition when it is represented in other formats, or referenced in a specification, model, design or an instance." ) 1195 protected List<Identifier> identifier; 1196 1197 /** 1198 * The URL pointing to an externally-defined charge item definition that is adhered to in whole or in part by this definition. 1199 */ 1200 @Child(name = "derivedFromUri", type = {UriType.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1201 @Description(shortDefinition="Underlying externally-defined charge item definition", formalDefinition="The URL pointing to an externally-defined charge item definition that is adhered to in whole or in part by this definition." ) 1202 protected List<UriType> derivedFromUri; 1203 1204 /** 1205 * A larger definition of which this particular definition is a component or step. 1206 */ 1207 @Child(name = "partOf", type = {CanonicalType.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1208 @Description(shortDefinition="A larger definition of which this particular definition is a component or step", formalDefinition="A larger definition of which this particular definition is a component or step." ) 1209 protected List<CanonicalType> partOf; 1210 1211 /** 1212 * As new versions of a protocol or guideline are defined, allows identification of what versions are replaced by a new instance. 1213 */ 1214 @Child(name = "replaces", type = {CanonicalType.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1215 @Description(shortDefinition="Completed or terminated request(s) whose function is taken by this new request", formalDefinition="As new versions of a protocol or guideline are defined, allows identification of what versions are replaced by a new instance." ) 1216 protected List<CanonicalType> replaces; 1217 1218 /** 1219 * A copyright statement relating to the charge item definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the charge item definition. 1220 */ 1221 @Child(name = "copyright", type = {MarkdownType.class}, order=4, min=0, max=1, modifier=false, summary=false) 1222 @Description(shortDefinition="Use and/or publishing restrictions", formalDefinition="A copyright statement relating to the charge item definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the charge item definition." ) 1223 protected MarkdownType copyright; 1224 1225 /** 1226 * The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage. 1227 */ 1228 @Child(name = "approvalDate", type = {DateType.class}, order=5, min=0, max=1, modifier=false, summary=false) 1229 @Description(shortDefinition="When the charge item definition was approved by publisher", formalDefinition="The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage." ) 1230 protected DateType approvalDate; 1231 1232 /** 1233 * The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date. 1234 */ 1235 @Child(name = "lastReviewDate", type = {DateType.class}, order=6, min=0, max=1, modifier=false, summary=false) 1236 @Description(shortDefinition="When the charge item definition was last reviewed", formalDefinition="The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date." ) 1237 protected DateType lastReviewDate; 1238 1239 /** 1240 * The period during which the charge item definition content was or is planned to be in active use. 1241 */ 1242 @Child(name = "effectivePeriod", type = {Period.class}, order=7, min=0, max=1, modifier=false, summary=true) 1243 @Description(shortDefinition="When the charge item definition is expected to be used", formalDefinition="The period during which the charge item definition content was or is planned to be in active use." ) 1244 protected Period effectivePeriod; 1245 1246 /** 1247 * The defined billing details in this resource pertain to the given billing code. 1248 */ 1249 @Child(name = "code", type = {CodeableConcept.class}, order=8, min=0, max=1, modifier=false, summary=true) 1250 @Description(shortDefinition="Billing codes or product types this definition applies to", formalDefinition="The defined billing details in this resource pertain to the given billing code." ) 1251 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/chargeitem-billingcodes") 1252 protected CodeableConcept code; 1253 1254 /** 1255 * The defined billing details in this resource pertain to the given product instance(s). 1256 */ 1257 @Child(name = "instance", type = {Medication.class, Substance.class, Device.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1258 @Description(shortDefinition="Instances this definition applies to", formalDefinition="The defined billing details in this resource pertain to the given product instance(s)." ) 1259 protected List<Reference> instance; 1260 1261 /** 1262 * Expressions that describe applicability criteria for the billing code. 1263 */ 1264 @Child(name = "applicability", type = {}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1265 @Description(shortDefinition="Whether or not the billing code is applicable", formalDefinition="Expressions that describe applicability criteria for the billing code." ) 1266 protected List<ChargeItemDefinitionApplicabilityComponent> applicability; 1267 1268 /** 1269 * Group of properties which are applicable under the same conditions. If no applicability rules are established for the group, then all properties always apply. 1270 */ 1271 @Child(name = "propertyGroup", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1272 @Description(shortDefinition="Group of properties which are applicable under the same conditions", formalDefinition="Group of properties which are applicable under the same conditions. If no applicability rules are established for the group, then all properties always apply." ) 1273 protected List<ChargeItemDefinitionPropertyGroupComponent> propertyGroup; 1274 1275 private static final long serialVersionUID = -699176936L; 1276 1277 /** 1278 * Constructor 1279 */ 1280 public ChargeItemDefinition() { 1281 super(); 1282 } 1283 1284 /** 1285 * Constructor 1286 */ 1287 public ChargeItemDefinition(UriType url, Enumeration<PublicationStatus> status) { 1288 super(); 1289 this.url = url; 1290 this.status = status; 1291 } 1292 1293 /** 1294 * @return {@link #url} (An absolute URI that is used to identify this charge item definition when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this charge item definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the charge item definition is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 1295 */ 1296 public UriType getUrlElement() { 1297 if (this.url == null) 1298 if (Configuration.errorOnAutoCreate()) 1299 throw new Error("Attempt to auto-create ChargeItemDefinition.url"); 1300 else if (Configuration.doAutoCreate()) 1301 this.url = new UriType(); // bb 1302 return this.url; 1303 } 1304 1305 public boolean hasUrlElement() { 1306 return this.url != null && !this.url.isEmpty(); 1307 } 1308 1309 public boolean hasUrl() { 1310 return this.url != null && !this.url.isEmpty(); 1311 } 1312 1313 /** 1314 * @param value {@link #url} (An absolute URI that is used to identify this charge item definition when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this charge item definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the charge item definition is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 1315 */ 1316 public ChargeItemDefinition setUrlElement(UriType value) { 1317 this.url = value; 1318 return this; 1319 } 1320 1321 /** 1322 * @return An absolute URI that is used to identify this charge item definition when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this charge item definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the charge item definition is stored on different servers. 1323 */ 1324 public String getUrl() { 1325 return this.url == null ? null : this.url.getValue(); 1326 } 1327 1328 /** 1329 * @param value An absolute URI that is used to identify this charge item definition when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this charge item definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the charge item definition is stored on different servers. 1330 */ 1331 public ChargeItemDefinition setUrl(String value) { 1332 if (this.url == null) 1333 this.url = new UriType(); 1334 this.url.setValue(value); 1335 return this; 1336 } 1337 1338 /** 1339 * @return {@link #identifier} (A formal identifier that is used to identify this charge item definition when it is represented in other formats, or referenced in a specification, model, design or an instance.) 1340 */ 1341 public List<Identifier> getIdentifier() { 1342 if (this.identifier == null) 1343 this.identifier = new ArrayList<Identifier>(); 1344 return this.identifier; 1345 } 1346 1347 /** 1348 * @return Returns a reference to <code>this</code> for easy method chaining 1349 */ 1350 public ChargeItemDefinition setIdentifier(List<Identifier> theIdentifier) { 1351 this.identifier = theIdentifier; 1352 return this; 1353 } 1354 1355 public boolean hasIdentifier() { 1356 if (this.identifier == null) 1357 return false; 1358 for (Identifier item : this.identifier) 1359 if (!item.isEmpty()) 1360 return true; 1361 return false; 1362 } 1363 1364 public Identifier addIdentifier() { //3 1365 Identifier t = new Identifier(); 1366 if (this.identifier == null) 1367 this.identifier = new ArrayList<Identifier>(); 1368 this.identifier.add(t); 1369 return t; 1370 } 1371 1372 public ChargeItemDefinition addIdentifier(Identifier t) { //3 1373 if (t == null) 1374 return this; 1375 if (this.identifier == null) 1376 this.identifier = new ArrayList<Identifier>(); 1377 this.identifier.add(t); 1378 return this; 1379 } 1380 1381 /** 1382 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist 1383 */ 1384 public Identifier getIdentifierFirstRep() { 1385 if (getIdentifier().isEmpty()) { 1386 addIdentifier(); 1387 } 1388 return getIdentifier().get(0); 1389 } 1390 1391 /** 1392 * @return {@link #version} (The identifier that is used to identify this version of the charge item definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the charge item definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active assets.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value 1393 */ 1394 public StringType getVersionElement() { 1395 if (this.version == null) 1396 if (Configuration.errorOnAutoCreate()) 1397 throw new Error("Attempt to auto-create ChargeItemDefinition.version"); 1398 else if (Configuration.doAutoCreate()) 1399 this.version = new StringType(); // bb 1400 return this.version; 1401 } 1402 1403 public boolean hasVersionElement() { 1404 return this.version != null && !this.version.isEmpty(); 1405 } 1406 1407 public boolean hasVersion() { 1408 return this.version != null && !this.version.isEmpty(); 1409 } 1410 1411 /** 1412 * @param value {@link #version} (The identifier that is used to identify this version of the charge item definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the charge item definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active assets.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value 1413 */ 1414 public ChargeItemDefinition setVersionElement(StringType value) { 1415 this.version = value; 1416 return this; 1417 } 1418 1419 /** 1420 * @return The identifier that is used to identify this version of the charge item definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the charge item definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active assets. 1421 */ 1422 public String getVersion() { 1423 return this.version == null ? null : this.version.getValue(); 1424 } 1425 1426 /** 1427 * @param value The identifier that is used to identify this version of the charge item definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the charge item definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active assets. 1428 */ 1429 public ChargeItemDefinition setVersion(String value) { 1430 if (Utilities.noString(value)) 1431 this.version = null; 1432 else { 1433 if (this.version == null) 1434 this.version = new StringType(); 1435 this.version.setValue(value); 1436 } 1437 return this; 1438 } 1439 1440 /** 1441 * @return {@link #title} (A short, descriptive, user-friendly title for the charge item definition.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value 1442 */ 1443 public StringType getTitleElement() { 1444 if (this.title == null) 1445 if (Configuration.errorOnAutoCreate()) 1446 throw new Error("Attempt to auto-create ChargeItemDefinition.title"); 1447 else if (Configuration.doAutoCreate()) 1448 this.title = new StringType(); // bb 1449 return this.title; 1450 } 1451 1452 public boolean hasTitleElement() { 1453 return this.title != null && !this.title.isEmpty(); 1454 } 1455 1456 public boolean hasTitle() { 1457 return this.title != null && !this.title.isEmpty(); 1458 } 1459 1460 /** 1461 * @param value {@link #title} (A short, descriptive, user-friendly title for the charge item definition.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value 1462 */ 1463 public ChargeItemDefinition setTitleElement(StringType value) { 1464 this.title = value; 1465 return this; 1466 } 1467 1468 /** 1469 * @return A short, descriptive, user-friendly title for the charge item definition. 1470 */ 1471 public String getTitle() { 1472 return this.title == null ? null : this.title.getValue(); 1473 } 1474 1475 /** 1476 * @param value A short, descriptive, user-friendly title for the charge item definition. 1477 */ 1478 public ChargeItemDefinition setTitle(String value) { 1479 if (Utilities.noString(value)) 1480 this.title = null; 1481 else { 1482 if (this.title == null) 1483 this.title = new StringType(); 1484 this.title.setValue(value); 1485 } 1486 return this; 1487 } 1488 1489 /** 1490 * @return {@link #derivedFromUri} (The URL pointing to an externally-defined charge item definition that is adhered to in whole or in part by this definition.) 1491 */ 1492 public List<UriType> getDerivedFromUri() { 1493 if (this.derivedFromUri == null) 1494 this.derivedFromUri = new ArrayList<UriType>(); 1495 return this.derivedFromUri; 1496 } 1497 1498 /** 1499 * @return Returns a reference to <code>this</code> for easy method chaining 1500 */ 1501 public ChargeItemDefinition setDerivedFromUri(List<UriType> theDerivedFromUri) { 1502 this.derivedFromUri = theDerivedFromUri; 1503 return this; 1504 } 1505 1506 public boolean hasDerivedFromUri() { 1507 if (this.derivedFromUri == null) 1508 return false; 1509 for (UriType item : this.derivedFromUri) 1510 if (!item.isEmpty()) 1511 return true; 1512 return false; 1513 } 1514 1515 /** 1516 * @return {@link #derivedFromUri} (The URL pointing to an externally-defined charge item definition that is adhered to in whole or in part by this definition.) 1517 */ 1518 public UriType addDerivedFromUriElement() {//2 1519 UriType t = new UriType(); 1520 if (this.derivedFromUri == null) 1521 this.derivedFromUri = new ArrayList<UriType>(); 1522 this.derivedFromUri.add(t); 1523 return t; 1524 } 1525 1526 /** 1527 * @param value {@link #derivedFromUri} (The URL pointing to an externally-defined charge item definition that is adhered to in whole or in part by this definition.) 1528 */ 1529 public ChargeItemDefinition addDerivedFromUri(String value) { //1 1530 UriType t = new UriType(); 1531 t.setValue(value); 1532 if (this.derivedFromUri == null) 1533 this.derivedFromUri = new ArrayList<UriType>(); 1534 this.derivedFromUri.add(t); 1535 return this; 1536 } 1537 1538 /** 1539 * @param value {@link #derivedFromUri} (The URL pointing to an externally-defined charge item definition that is adhered to in whole or in part by this definition.) 1540 */ 1541 public boolean hasDerivedFromUri(String value) { 1542 if (this.derivedFromUri == null) 1543 return false; 1544 for (UriType v : this.derivedFromUri) 1545 if (v.getValue().equals(value)) // uri 1546 return true; 1547 return false; 1548 } 1549 1550 /** 1551 * @return {@link #partOf} (A larger definition of which this particular definition is a component or step.) 1552 */ 1553 public List<CanonicalType> getPartOf() { 1554 if (this.partOf == null) 1555 this.partOf = new ArrayList<CanonicalType>(); 1556 return this.partOf; 1557 } 1558 1559 /** 1560 * @return Returns a reference to <code>this</code> for easy method chaining 1561 */ 1562 public ChargeItemDefinition setPartOf(List<CanonicalType> thePartOf) { 1563 this.partOf = thePartOf; 1564 return this; 1565 } 1566 1567 public boolean hasPartOf() { 1568 if (this.partOf == null) 1569 return false; 1570 for (CanonicalType item : this.partOf) 1571 if (!item.isEmpty()) 1572 return true; 1573 return false; 1574 } 1575 1576 /** 1577 * @return {@link #partOf} (A larger definition of which this particular definition is a component or step.) 1578 */ 1579 public CanonicalType addPartOfElement() {//2 1580 CanonicalType t = new CanonicalType(); 1581 if (this.partOf == null) 1582 this.partOf = new ArrayList<CanonicalType>(); 1583 this.partOf.add(t); 1584 return t; 1585 } 1586 1587 /** 1588 * @param value {@link #partOf} (A larger definition of which this particular definition is a component or step.) 1589 */ 1590 public ChargeItemDefinition addPartOf(String value) { //1 1591 CanonicalType t = new CanonicalType(); 1592 t.setValue(value); 1593 if (this.partOf == null) 1594 this.partOf = new ArrayList<CanonicalType>(); 1595 this.partOf.add(t); 1596 return this; 1597 } 1598 1599 /** 1600 * @param value {@link #partOf} (A larger definition of which this particular definition is a component or step.) 1601 */ 1602 public boolean hasPartOf(String value) { 1603 if (this.partOf == null) 1604 return false; 1605 for (CanonicalType v : this.partOf) 1606 if (v.getValue().equals(value)) // canonical(ChargeItemDefinition) 1607 return true; 1608 return false; 1609 } 1610 1611 /** 1612 * @return {@link #replaces} (As new versions of a protocol or guideline are defined, allows identification of what versions are replaced by a new instance.) 1613 */ 1614 public List<CanonicalType> getReplaces() { 1615 if (this.replaces == null) 1616 this.replaces = new ArrayList<CanonicalType>(); 1617 return this.replaces; 1618 } 1619 1620 /** 1621 * @return Returns a reference to <code>this</code> for easy method chaining 1622 */ 1623 public ChargeItemDefinition setReplaces(List<CanonicalType> theReplaces) { 1624 this.replaces = theReplaces; 1625 return this; 1626 } 1627 1628 public boolean hasReplaces() { 1629 if (this.replaces == null) 1630 return false; 1631 for (CanonicalType item : this.replaces) 1632 if (!item.isEmpty()) 1633 return true; 1634 return false; 1635 } 1636 1637 /** 1638 * @return {@link #replaces} (As new versions of a protocol or guideline are defined, allows identification of what versions are replaced by a new instance.) 1639 */ 1640 public CanonicalType addReplacesElement() {//2 1641 CanonicalType t = new CanonicalType(); 1642 if (this.replaces == null) 1643 this.replaces = new ArrayList<CanonicalType>(); 1644 this.replaces.add(t); 1645 return t; 1646 } 1647 1648 /** 1649 * @param value {@link #replaces} (As new versions of a protocol or guideline are defined, allows identification of what versions are replaced by a new instance.) 1650 */ 1651 public ChargeItemDefinition addReplaces(String value) { //1 1652 CanonicalType t = new CanonicalType(); 1653 t.setValue(value); 1654 if (this.replaces == null) 1655 this.replaces = new ArrayList<CanonicalType>(); 1656 this.replaces.add(t); 1657 return this; 1658 } 1659 1660 /** 1661 * @param value {@link #replaces} (As new versions of a protocol or guideline are defined, allows identification of what versions are replaced by a new instance.) 1662 */ 1663 public boolean hasReplaces(String value) { 1664 if (this.replaces == null) 1665 return false; 1666 for (CanonicalType v : this.replaces) 1667 if (v.getValue().equals(value)) // canonical(ChargeItemDefinition) 1668 return true; 1669 return false; 1670 } 1671 1672 /** 1673 * @return {@link #status} (The current state of the ChargeItemDefinition.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 1674 */ 1675 public Enumeration<PublicationStatus> getStatusElement() { 1676 if (this.status == null) 1677 if (Configuration.errorOnAutoCreate()) 1678 throw new Error("Attempt to auto-create ChargeItemDefinition.status"); 1679 else if (Configuration.doAutoCreate()) 1680 this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); // bb 1681 return this.status; 1682 } 1683 1684 public boolean hasStatusElement() { 1685 return this.status != null && !this.status.isEmpty(); 1686 } 1687 1688 public boolean hasStatus() { 1689 return this.status != null && !this.status.isEmpty(); 1690 } 1691 1692 /** 1693 * @param value {@link #status} (The current state of the ChargeItemDefinition.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 1694 */ 1695 public ChargeItemDefinition setStatusElement(Enumeration<PublicationStatus> value) { 1696 this.status = value; 1697 return this; 1698 } 1699 1700 /** 1701 * @return The current state of the ChargeItemDefinition. 1702 */ 1703 public PublicationStatus getStatus() { 1704 return this.status == null ? null : this.status.getValue(); 1705 } 1706 1707 /** 1708 * @param value The current state of the ChargeItemDefinition. 1709 */ 1710 public ChargeItemDefinition setStatus(PublicationStatus value) { 1711 if (this.status == null) 1712 this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); 1713 this.status.setValue(value); 1714 return this; 1715 } 1716 1717 /** 1718 * @return {@link #experimental} (A Boolean value to indicate that this charge item definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value 1719 */ 1720 public BooleanType getExperimentalElement() { 1721 if (this.experimental == null) 1722 if (Configuration.errorOnAutoCreate()) 1723 throw new Error("Attempt to auto-create ChargeItemDefinition.experimental"); 1724 else if (Configuration.doAutoCreate()) 1725 this.experimental = new BooleanType(); // bb 1726 return this.experimental; 1727 } 1728 1729 public boolean hasExperimentalElement() { 1730 return this.experimental != null && !this.experimental.isEmpty(); 1731 } 1732 1733 public boolean hasExperimental() { 1734 return this.experimental != null && !this.experimental.isEmpty(); 1735 } 1736 1737 /** 1738 * @param value {@link #experimental} (A Boolean value to indicate that this charge item definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value 1739 */ 1740 public ChargeItemDefinition setExperimentalElement(BooleanType value) { 1741 this.experimental = value; 1742 return this; 1743 } 1744 1745 /** 1746 * @return A Boolean value to indicate that this charge item definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage. 1747 */ 1748 public boolean getExperimental() { 1749 return this.experimental == null || this.experimental.isEmpty() ? false : this.experimental.getValue(); 1750 } 1751 1752 /** 1753 * @param value A Boolean value to indicate that this charge item definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage. 1754 */ 1755 public ChargeItemDefinition setExperimental(boolean value) { 1756 if (this.experimental == null) 1757 this.experimental = new BooleanType(); 1758 this.experimental.setValue(value); 1759 return this; 1760 } 1761 1762 /** 1763 * @return {@link #date} (The date (and optionally time) when the charge item definition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the charge item definition changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 1764 */ 1765 public DateTimeType getDateElement() { 1766 if (this.date == null) 1767 if (Configuration.errorOnAutoCreate()) 1768 throw new Error("Attempt to auto-create ChargeItemDefinition.date"); 1769 else if (Configuration.doAutoCreate()) 1770 this.date = new DateTimeType(); // bb 1771 return this.date; 1772 } 1773 1774 public boolean hasDateElement() { 1775 return this.date != null && !this.date.isEmpty(); 1776 } 1777 1778 public boolean hasDate() { 1779 return this.date != null && !this.date.isEmpty(); 1780 } 1781 1782 /** 1783 * @param value {@link #date} (The date (and optionally time) when the charge item definition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the charge item definition changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 1784 */ 1785 public ChargeItemDefinition setDateElement(DateTimeType value) { 1786 this.date = value; 1787 return this; 1788 } 1789 1790 /** 1791 * @return The date (and optionally time) when the charge item definition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the charge item definition changes. 1792 */ 1793 public Date getDate() { 1794 return this.date == null ? null : this.date.getValue(); 1795 } 1796 1797 /** 1798 * @param value The date (and optionally time) when the charge item definition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the charge item definition changes. 1799 */ 1800 public ChargeItemDefinition setDate(Date value) { 1801 if (value == null) 1802 this.date = null; 1803 else { 1804 if (this.date == null) 1805 this.date = new DateTimeType(); 1806 this.date.setValue(value); 1807 } 1808 return this; 1809 } 1810 1811 /** 1812 * @return {@link #publisher} (The name of the organization or individual that published the charge item definition.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value 1813 */ 1814 public StringType getPublisherElement() { 1815 if (this.publisher == null) 1816 if (Configuration.errorOnAutoCreate()) 1817 throw new Error("Attempt to auto-create ChargeItemDefinition.publisher"); 1818 else if (Configuration.doAutoCreate()) 1819 this.publisher = new StringType(); // bb 1820 return this.publisher; 1821 } 1822 1823 public boolean hasPublisherElement() { 1824 return this.publisher != null && !this.publisher.isEmpty(); 1825 } 1826 1827 public boolean hasPublisher() { 1828 return this.publisher != null && !this.publisher.isEmpty(); 1829 } 1830 1831 /** 1832 * @param value {@link #publisher} (The name of the organization or individual that published the charge item definition.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value 1833 */ 1834 public ChargeItemDefinition setPublisherElement(StringType value) { 1835 this.publisher = value; 1836 return this; 1837 } 1838 1839 /** 1840 * @return The name of the organization or individual that published the charge item definition. 1841 */ 1842 public String getPublisher() { 1843 return this.publisher == null ? null : this.publisher.getValue(); 1844 } 1845 1846 /** 1847 * @param value The name of the organization or individual that published the charge item definition. 1848 */ 1849 public ChargeItemDefinition setPublisher(String value) { 1850 if (Utilities.noString(value)) 1851 this.publisher = null; 1852 else { 1853 if (this.publisher == null) 1854 this.publisher = new StringType(); 1855 this.publisher.setValue(value); 1856 } 1857 return this; 1858 } 1859 1860 /** 1861 * @return {@link #contact} (Contact details to assist a user in finding and communicating with the publisher.) 1862 */ 1863 public List<ContactDetail> getContact() { 1864 if (this.contact == null) 1865 this.contact = new ArrayList<ContactDetail>(); 1866 return this.contact; 1867 } 1868 1869 /** 1870 * @return Returns a reference to <code>this</code> for easy method chaining 1871 */ 1872 public ChargeItemDefinition setContact(List<ContactDetail> theContact) { 1873 this.contact = theContact; 1874 return this; 1875 } 1876 1877 public boolean hasContact() { 1878 if (this.contact == null) 1879 return false; 1880 for (ContactDetail item : this.contact) 1881 if (!item.isEmpty()) 1882 return true; 1883 return false; 1884 } 1885 1886 public ContactDetail addContact() { //3 1887 ContactDetail t = new ContactDetail(); 1888 if (this.contact == null) 1889 this.contact = new ArrayList<ContactDetail>(); 1890 this.contact.add(t); 1891 return t; 1892 } 1893 1894 public ChargeItemDefinition addContact(ContactDetail t) { //3 1895 if (t == null) 1896 return this; 1897 if (this.contact == null) 1898 this.contact = new ArrayList<ContactDetail>(); 1899 this.contact.add(t); 1900 return this; 1901 } 1902 1903 /** 1904 * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist 1905 */ 1906 public ContactDetail getContactFirstRep() { 1907 if (getContact().isEmpty()) { 1908 addContact(); 1909 } 1910 return getContact().get(0); 1911 } 1912 1913 /** 1914 * @return {@link #description} (A free text natural language description of the charge item definition from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 1915 */ 1916 public MarkdownType getDescriptionElement() { 1917 if (this.description == null) 1918 if (Configuration.errorOnAutoCreate()) 1919 throw new Error("Attempt to auto-create ChargeItemDefinition.description"); 1920 else if (Configuration.doAutoCreate()) 1921 this.description = new MarkdownType(); // bb 1922 return this.description; 1923 } 1924 1925 public boolean hasDescriptionElement() { 1926 return this.description != null && !this.description.isEmpty(); 1927 } 1928 1929 public boolean hasDescription() { 1930 return this.description != null && !this.description.isEmpty(); 1931 } 1932 1933 /** 1934 * @param value {@link #description} (A free text natural language description of the charge item definition from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 1935 */ 1936 public ChargeItemDefinition setDescriptionElement(MarkdownType value) { 1937 this.description = value; 1938 return this; 1939 } 1940 1941 /** 1942 * @return A free text natural language description of the charge item definition from a consumer's perspective. 1943 */ 1944 public String getDescription() { 1945 return this.description == null ? null : this.description.getValue(); 1946 } 1947 1948 /** 1949 * @param value A free text natural language description of the charge item definition from a consumer's perspective. 1950 */ 1951 public ChargeItemDefinition setDescription(String value) { 1952 if (value == null) 1953 this.description = null; 1954 else { 1955 if (this.description == null) 1956 this.description = new MarkdownType(); 1957 this.description.setValue(value); 1958 } 1959 return this; 1960 } 1961 1962 /** 1963 * @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate charge item definition instances.) 1964 */ 1965 public List<UsageContext> getUseContext() { 1966 if (this.useContext == null) 1967 this.useContext = new ArrayList<UsageContext>(); 1968 return this.useContext; 1969 } 1970 1971 /** 1972 * @return Returns a reference to <code>this</code> for easy method chaining 1973 */ 1974 public ChargeItemDefinition setUseContext(List<UsageContext> theUseContext) { 1975 this.useContext = theUseContext; 1976 return this; 1977 } 1978 1979 public boolean hasUseContext() { 1980 if (this.useContext == null) 1981 return false; 1982 for (UsageContext item : this.useContext) 1983 if (!item.isEmpty()) 1984 return true; 1985 return false; 1986 } 1987 1988 public UsageContext addUseContext() { //3 1989 UsageContext t = new UsageContext(); 1990 if (this.useContext == null) 1991 this.useContext = new ArrayList<UsageContext>(); 1992 this.useContext.add(t); 1993 return t; 1994 } 1995 1996 public ChargeItemDefinition addUseContext(UsageContext t) { //3 1997 if (t == null) 1998 return this; 1999 if (this.useContext == null) 2000 this.useContext = new ArrayList<UsageContext>(); 2001 this.useContext.add(t); 2002 return this; 2003 } 2004 2005 /** 2006 * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist 2007 */ 2008 public UsageContext getUseContextFirstRep() { 2009 if (getUseContext().isEmpty()) { 2010 addUseContext(); 2011 } 2012 return getUseContext().get(0); 2013 } 2014 2015 /** 2016 * @return {@link #jurisdiction} (A legal or geographic region in which the charge item definition is intended to be used.) 2017 */ 2018 public List<CodeableConcept> getJurisdiction() { 2019 if (this.jurisdiction == null) 2020 this.jurisdiction = new ArrayList<CodeableConcept>(); 2021 return this.jurisdiction; 2022 } 2023 2024 /** 2025 * @return Returns a reference to <code>this</code> for easy method chaining 2026 */ 2027 public ChargeItemDefinition setJurisdiction(List<CodeableConcept> theJurisdiction) { 2028 this.jurisdiction = theJurisdiction; 2029 return this; 2030 } 2031 2032 public boolean hasJurisdiction() { 2033 if (this.jurisdiction == null) 2034 return false; 2035 for (CodeableConcept item : this.jurisdiction) 2036 if (!item.isEmpty()) 2037 return true; 2038 return false; 2039 } 2040 2041 public CodeableConcept addJurisdiction() { //3 2042 CodeableConcept t = new CodeableConcept(); 2043 if (this.jurisdiction == null) 2044 this.jurisdiction = new ArrayList<CodeableConcept>(); 2045 this.jurisdiction.add(t); 2046 return t; 2047 } 2048 2049 public ChargeItemDefinition addJurisdiction(CodeableConcept t) { //3 2050 if (t == null) 2051 return this; 2052 if (this.jurisdiction == null) 2053 this.jurisdiction = new ArrayList<CodeableConcept>(); 2054 this.jurisdiction.add(t); 2055 return this; 2056 } 2057 2058 /** 2059 * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist 2060 */ 2061 public CodeableConcept getJurisdictionFirstRep() { 2062 if (getJurisdiction().isEmpty()) { 2063 addJurisdiction(); 2064 } 2065 return getJurisdiction().get(0); 2066 } 2067 2068 /** 2069 * @return {@link #copyright} (A copyright statement relating to the charge item definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the charge item definition.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value 2070 */ 2071 public MarkdownType getCopyrightElement() { 2072 if (this.copyright == null) 2073 if (Configuration.errorOnAutoCreate()) 2074 throw new Error("Attempt to auto-create ChargeItemDefinition.copyright"); 2075 else if (Configuration.doAutoCreate()) 2076 this.copyright = new MarkdownType(); // bb 2077 return this.copyright; 2078 } 2079 2080 public boolean hasCopyrightElement() { 2081 return this.copyright != null && !this.copyright.isEmpty(); 2082 } 2083 2084 public boolean hasCopyright() { 2085 return this.copyright != null && !this.copyright.isEmpty(); 2086 } 2087 2088 /** 2089 * @param value {@link #copyright} (A copyright statement relating to the charge item definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the charge item definition.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value 2090 */ 2091 public ChargeItemDefinition setCopyrightElement(MarkdownType value) { 2092 this.copyright = value; 2093 return this; 2094 } 2095 2096 /** 2097 * @return A copyright statement relating to the charge item definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the charge item definition. 2098 */ 2099 public String getCopyright() { 2100 return this.copyright == null ? null : this.copyright.getValue(); 2101 } 2102 2103 /** 2104 * @param value A copyright statement relating to the charge item definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the charge item definition. 2105 */ 2106 public ChargeItemDefinition setCopyright(String value) { 2107 if (value == null) 2108 this.copyright = null; 2109 else { 2110 if (this.copyright == null) 2111 this.copyright = new MarkdownType(); 2112 this.copyright.setValue(value); 2113 } 2114 return this; 2115 } 2116 2117 /** 2118 * @return {@link #approvalDate} (The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.). This is the underlying object with id, value and extensions. The accessor "getApprovalDate" gives direct access to the value 2119 */ 2120 public DateType getApprovalDateElement() { 2121 if (this.approvalDate == null) 2122 if (Configuration.errorOnAutoCreate()) 2123 throw new Error("Attempt to auto-create ChargeItemDefinition.approvalDate"); 2124 else if (Configuration.doAutoCreate()) 2125 this.approvalDate = new DateType(); // bb 2126 return this.approvalDate; 2127 } 2128 2129 public boolean hasApprovalDateElement() { 2130 return this.approvalDate != null && !this.approvalDate.isEmpty(); 2131 } 2132 2133 public boolean hasApprovalDate() { 2134 return this.approvalDate != null && !this.approvalDate.isEmpty(); 2135 } 2136 2137 /** 2138 * @param value {@link #approvalDate} (The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.). This is the underlying object with id, value and extensions. The accessor "getApprovalDate" gives direct access to the value 2139 */ 2140 public ChargeItemDefinition setApprovalDateElement(DateType value) { 2141 this.approvalDate = value; 2142 return this; 2143 } 2144 2145 /** 2146 * @return The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage. 2147 */ 2148 public Date getApprovalDate() { 2149 return this.approvalDate == null ? null : this.approvalDate.getValue(); 2150 } 2151 2152 /** 2153 * @param value The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage. 2154 */ 2155 public ChargeItemDefinition setApprovalDate(Date value) { 2156 if (value == null) 2157 this.approvalDate = null; 2158 else { 2159 if (this.approvalDate == null) 2160 this.approvalDate = new DateType(); 2161 this.approvalDate.setValue(value); 2162 } 2163 return this; 2164 } 2165 2166 /** 2167 * @return {@link #lastReviewDate} (The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.). This is the underlying object with id, value and extensions. The accessor "getLastReviewDate" gives direct access to the value 2168 */ 2169 public DateType getLastReviewDateElement() { 2170 if (this.lastReviewDate == null) 2171 if (Configuration.errorOnAutoCreate()) 2172 throw new Error("Attempt to auto-create ChargeItemDefinition.lastReviewDate"); 2173 else if (Configuration.doAutoCreate()) 2174 this.lastReviewDate = new DateType(); // bb 2175 return this.lastReviewDate; 2176 } 2177 2178 public boolean hasLastReviewDateElement() { 2179 return this.lastReviewDate != null && !this.lastReviewDate.isEmpty(); 2180 } 2181 2182 public boolean hasLastReviewDate() { 2183 return this.lastReviewDate != null && !this.lastReviewDate.isEmpty(); 2184 } 2185 2186 /** 2187 * @param value {@link #lastReviewDate} (The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.). This is the underlying object with id, value and extensions. The accessor "getLastReviewDate" gives direct access to the value 2188 */ 2189 public ChargeItemDefinition setLastReviewDateElement(DateType value) { 2190 this.lastReviewDate = value; 2191 return this; 2192 } 2193 2194 /** 2195 * @return The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date. 2196 */ 2197 public Date getLastReviewDate() { 2198 return this.lastReviewDate == null ? null : this.lastReviewDate.getValue(); 2199 } 2200 2201 /** 2202 * @param value The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date. 2203 */ 2204 public ChargeItemDefinition setLastReviewDate(Date value) { 2205 if (value == null) 2206 this.lastReviewDate = null; 2207 else { 2208 if (this.lastReviewDate == null) 2209 this.lastReviewDate = new DateType(); 2210 this.lastReviewDate.setValue(value); 2211 } 2212 return this; 2213 } 2214 2215 /** 2216 * @return {@link #effectivePeriod} (The period during which the charge item definition content was or is planned to be in active use.) 2217 */ 2218 public Period getEffectivePeriod() { 2219 if (this.effectivePeriod == null) 2220 if (Configuration.errorOnAutoCreate()) 2221 throw new Error("Attempt to auto-create ChargeItemDefinition.effectivePeriod"); 2222 else if (Configuration.doAutoCreate()) 2223 this.effectivePeriod = new Period(); // cc 2224 return this.effectivePeriod; 2225 } 2226 2227 public boolean hasEffectivePeriod() { 2228 return this.effectivePeriod != null && !this.effectivePeriod.isEmpty(); 2229 } 2230 2231 /** 2232 * @param value {@link #effectivePeriod} (The period during which the charge item definition content was or is planned to be in active use.) 2233 */ 2234 public ChargeItemDefinition setEffectivePeriod(Period value) { 2235 this.effectivePeriod = value; 2236 return this; 2237 } 2238 2239 /** 2240 * @return {@link #code} (The defined billing details in this resource pertain to the given billing code.) 2241 */ 2242 public CodeableConcept getCode() { 2243 if (this.code == null) 2244 if (Configuration.errorOnAutoCreate()) 2245 throw new Error("Attempt to auto-create ChargeItemDefinition.code"); 2246 else if (Configuration.doAutoCreate()) 2247 this.code = new CodeableConcept(); // cc 2248 return this.code; 2249 } 2250 2251 public boolean hasCode() { 2252 return this.code != null && !this.code.isEmpty(); 2253 } 2254 2255 /** 2256 * @param value {@link #code} (The defined billing details in this resource pertain to the given billing code.) 2257 */ 2258 public ChargeItemDefinition setCode(CodeableConcept value) { 2259 this.code = value; 2260 return this; 2261 } 2262 2263 /** 2264 * @return {@link #instance} (The defined billing details in this resource pertain to the given product instance(s).) 2265 */ 2266 public List<Reference> getInstance() { 2267 if (this.instance == null) 2268 this.instance = new ArrayList<Reference>(); 2269 return this.instance; 2270 } 2271 2272 /** 2273 * @return Returns a reference to <code>this</code> for easy method chaining 2274 */ 2275 public ChargeItemDefinition setInstance(List<Reference> theInstance) { 2276 this.instance = theInstance; 2277 return this; 2278 } 2279 2280 public boolean hasInstance() { 2281 if (this.instance == null) 2282 return false; 2283 for (Reference item : this.instance) 2284 if (!item.isEmpty()) 2285 return true; 2286 return false; 2287 } 2288 2289 public Reference addInstance() { //3 2290 Reference t = new Reference(); 2291 if (this.instance == null) 2292 this.instance = new ArrayList<Reference>(); 2293 this.instance.add(t); 2294 return t; 2295 } 2296 2297 public ChargeItemDefinition addInstance(Reference t) { //3 2298 if (t == null) 2299 return this; 2300 if (this.instance == null) 2301 this.instance = new ArrayList<Reference>(); 2302 this.instance.add(t); 2303 return this; 2304 } 2305 2306 /** 2307 * @return The first repetition of repeating field {@link #instance}, creating it if it does not already exist 2308 */ 2309 public Reference getInstanceFirstRep() { 2310 if (getInstance().isEmpty()) { 2311 addInstance(); 2312 } 2313 return getInstance().get(0); 2314 } 2315 2316 /** 2317 * @return {@link #applicability} (Expressions that describe applicability criteria for the billing code.) 2318 */ 2319 public List<ChargeItemDefinitionApplicabilityComponent> getApplicability() { 2320 if (this.applicability == null) 2321 this.applicability = new ArrayList<ChargeItemDefinitionApplicabilityComponent>(); 2322 return this.applicability; 2323 } 2324 2325 /** 2326 * @return Returns a reference to <code>this</code> for easy method chaining 2327 */ 2328 public ChargeItemDefinition setApplicability(List<ChargeItemDefinitionApplicabilityComponent> theApplicability) { 2329 this.applicability = theApplicability; 2330 return this; 2331 } 2332 2333 public boolean hasApplicability() { 2334 if (this.applicability == null) 2335 return false; 2336 for (ChargeItemDefinitionApplicabilityComponent item : this.applicability) 2337 if (!item.isEmpty()) 2338 return true; 2339 return false; 2340 } 2341 2342 public ChargeItemDefinitionApplicabilityComponent addApplicability() { //3 2343 ChargeItemDefinitionApplicabilityComponent t = new ChargeItemDefinitionApplicabilityComponent(); 2344 if (this.applicability == null) 2345 this.applicability = new ArrayList<ChargeItemDefinitionApplicabilityComponent>(); 2346 this.applicability.add(t); 2347 return t; 2348 } 2349 2350 public ChargeItemDefinition addApplicability(ChargeItemDefinitionApplicabilityComponent t) { //3 2351 if (t == null) 2352 return this; 2353 if (this.applicability == null) 2354 this.applicability = new ArrayList<ChargeItemDefinitionApplicabilityComponent>(); 2355 this.applicability.add(t); 2356 return this; 2357 } 2358 2359 /** 2360 * @return The first repetition of repeating field {@link #applicability}, creating it if it does not already exist 2361 */ 2362 public ChargeItemDefinitionApplicabilityComponent getApplicabilityFirstRep() { 2363 if (getApplicability().isEmpty()) { 2364 addApplicability(); 2365 } 2366 return getApplicability().get(0); 2367 } 2368 2369 /** 2370 * @return {@link #propertyGroup} (Group of properties which are applicable under the same conditions. If no applicability rules are established for the group, then all properties always apply.) 2371 */ 2372 public List<ChargeItemDefinitionPropertyGroupComponent> getPropertyGroup() { 2373 if (this.propertyGroup == null) 2374 this.propertyGroup = new ArrayList<ChargeItemDefinitionPropertyGroupComponent>(); 2375 return this.propertyGroup; 2376 } 2377 2378 /** 2379 * @return Returns a reference to <code>this</code> for easy method chaining 2380 */ 2381 public ChargeItemDefinition setPropertyGroup(List<ChargeItemDefinitionPropertyGroupComponent> thePropertyGroup) { 2382 this.propertyGroup = thePropertyGroup; 2383 return this; 2384 } 2385 2386 public boolean hasPropertyGroup() { 2387 if (this.propertyGroup == null) 2388 return false; 2389 for (ChargeItemDefinitionPropertyGroupComponent item : this.propertyGroup) 2390 if (!item.isEmpty()) 2391 return true; 2392 return false; 2393 } 2394 2395 public ChargeItemDefinitionPropertyGroupComponent addPropertyGroup() { //3 2396 ChargeItemDefinitionPropertyGroupComponent t = new ChargeItemDefinitionPropertyGroupComponent(); 2397 if (this.propertyGroup == null) 2398 this.propertyGroup = new ArrayList<ChargeItemDefinitionPropertyGroupComponent>(); 2399 this.propertyGroup.add(t); 2400 return t; 2401 } 2402 2403 public ChargeItemDefinition addPropertyGroup(ChargeItemDefinitionPropertyGroupComponent t) { //3 2404 if (t == null) 2405 return this; 2406 if (this.propertyGroup == null) 2407 this.propertyGroup = new ArrayList<ChargeItemDefinitionPropertyGroupComponent>(); 2408 this.propertyGroup.add(t); 2409 return this; 2410 } 2411 2412 /** 2413 * @return The first repetition of repeating field {@link #propertyGroup}, creating it if it does not already exist 2414 */ 2415 public ChargeItemDefinitionPropertyGroupComponent getPropertyGroupFirstRep() { 2416 if (getPropertyGroup().isEmpty()) { 2417 addPropertyGroup(); 2418 } 2419 return getPropertyGroup().get(0); 2420 } 2421 2422 protected void listChildren(List<Property> children) { 2423 super.listChildren(children); 2424 children.add(new Property("url", "uri", "An absolute URI that is used to identify this charge item definition when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this charge item definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the charge item definition is stored on different servers.", 0, 1, url)); 2425 children.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this charge item definition when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier)); 2426 children.add(new Property("version", "string", "The identifier that is used to identify this version of the charge item definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the charge item definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active assets.", 0, 1, version)); 2427 children.add(new Property("title", "string", "A short, descriptive, user-friendly title for the charge item definition.", 0, 1, title)); 2428 children.add(new Property("derivedFromUri", "uri", "The URL pointing to an externally-defined charge item definition that is adhered to in whole or in part by this definition.", 0, java.lang.Integer.MAX_VALUE, derivedFromUri)); 2429 children.add(new Property("partOf", "canonical(ChargeItemDefinition)", "A larger definition of which this particular definition is a component or step.", 0, java.lang.Integer.MAX_VALUE, partOf)); 2430 children.add(new Property("replaces", "canonical(ChargeItemDefinition)", "As new versions of a protocol or guideline are defined, allows identification of what versions are replaced by a new instance.", 0, java.lang.Integer.MAX_VALUE, replaces)); 2431 children.add(new Property("status", "code", "The current state of the ChargeItemDefinition.", 0, 1, status)); 2432 children.add(new Property("experimental", "boolean", "A Boolean value to indicate that this charge item definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental)); 2433 children.add(new Property("date", "dateTime", "The date (and optionally time) when the charge item definition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the charge item definition changes.", 0, 1, date)); 2434 children.add(new Property("publisher", "string", "The name of the organization or individual that published the charge item definition.", 0, 1, publisher)); 2435 children.add(new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact)); 2436 children.add(new Property("description", "markdown", "A free text natural language description of the charge item definition from a consumer's perspective.", 0, 1, description)); 2437 children.add(new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate charge item definition instances.", 0, java.lang.Integer.MAX_VALUE, useContext)); 2438 children.add(new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the charge item definition is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction)); 2439 children.add(new Property("copyright", "markdown", "A copyright statement relating to the charge item definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the charge item definition.", 0, 1, copyright)); 2440 children.add(new Property("approvalDate", "date", "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.", 0, 1, approvalDate)); 2441 children.add(new Property("lastReviewDate", "date", "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.", 0, 1, lastReviewDate)); 2442 children.add(new Property("effectivePeriod", "Period", "The period during which the charge item definition content was or is planned to be in active use.", 0, 1, effectivePeriod)); 2443 children.add(new Property("code", "CodeableConcept", "The defined billing details in this resource pertain to the given billing code.", 0, 1, code)); 2444 children.add(new Property("instance", "Reference(Medication|Substance|Device)", "The defined billing details in this resource pertain to the given product instance(s).", 0, java.lang.Integer.MAX_VALUE, instance)); 2445 children.add(new Property("applicability", "", "Expressions that describe applicability criteria for the billing code.", 0, java.lang.Integer.MAX_VALUE, applicability)); 2446 children.add(new Property("propertyGroup", "", "Group of properties which are applicable under the same conditions. If no applicability rules are established for the group, then all properties always apply.", 0, java.lang.Integer.MAX_VALUE, propertyGroup)); 2447 } 2448 2449 @Override 2450 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 2451 switch (_hash) { 2452 case 116079: /*url*/ return new Property("url", "uri", "An absolute URI that is used to identify this charge item definition when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this charge item definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the charge item definition is stored on different servers.", 0, 1, url); 2453 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A formal identifier that is used to identify this charge item definition when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier); 2454 case 351608024: /*version*/ return new Property("version", "string", "The identifier that is used to identify this version of the charge item definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the charge item definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active assets.", 0, 1, version); 2455 case 110371416: /*title*/ return new Property("title", "string", "A short, descriptive, user-friendly title for the charge item definition.", 0, 1, title); 2456 case -1076333435: /*derivedFromUri*/ return new Property("derivedFromUri", "uri", "The URL pointing to an externally-defined charge item definition that is adhered to in whole or in part by this definition.", 0, java.lang.Integer.MAX_VALUE, derivedFromUri); 2457 case -995410646: /*partOf*/ return new Property("partOf", "canonical(ChargeItemDefinition)", "A larger definition of which this particular definition is a component or step.", 0, java.lang.Integer.MAX_VALUE, partOf); 2458 case -430332865: /*replaces*/ return new Property("replaces", "canonical(ChargeItemDefinition)", "As new versions of a protocol or guideline are defined, allows identification of what versions are replaced by a new instance.", 0, java.lang.Integer.MAX_VALUE, replaces); 2459 case -892481550: /*status*/ return new Property("status", "code", "The current state of the ChargeItemDefinition.", 0, 1, status); 2460 case -404562712: /*experimental*/ return new Property("experimental", "boolean", "A Boolean value to indicate that this charge item definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental); 2461 case 3076014: /*date*/ return new Property("date", "dateTime", "The date (and optionally time) when the charge item definition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the charge item definition changes.", 0, 1, date); 2462 case 1447404028: /*publisher*/ return new Property("publisher", "string", "The name of the organization or individual that published the charge item definition.", 0, 1, publisher); 2463 case 951526432: /*contact*/ return new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact); 2464 case -1724546052: /*description*/ return new Property("description", "markdown", "A free text natural language description of the charge item definition from a consumer's perspective.", 0, 1, description); 2465 case -669707736: /*useContext*/ return new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate charge item definition instances.", 0, java.lang.Integer.MAX_VALUE, useContext); 2466 case -507075711: /*jurisdiction*/ return new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the charge item definition is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction); 2467 case 1522889671: /*copyright*/ return new Property("copyright", "markdown", "A copyright statement relating to the charge item definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the charge item definition.", 0, 1, copyright); 2468 case 223539345: /*approvalDate*/ return new Property("approvalDate", "date", "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.", 0, 1, approvalDate); 2469 case -1687512484: /*lastReviewDate*/ return new Property("lastReviewDate", "date", "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.", 0, 1, lastReviewDate); 2470 case -403934648: /*effectivePeriod*/ return new Property("effectivePeriod", "Period", "The period during which the charge item definition content was or is planned to be in active use.", 0, 1, effectivePeriod); 2471 case 3059181: /*code*/ return new Property("code", "CodeableConcept", "The defined billing details in this resource pertain to the given billing code.", 0, 1, code); 2472 case 555127957: /*instance*/ return new Property("instance", "Reference(Medication|Substance|Device)", "The defined billing details in this resource pertain to the given product instance(s).", 0, java.lang.Integer.MAX_VALUE, instance); 2473 case -1526770491: /*applicability*/ return new Property("applicability", "", "Expressions that describe applicability criteria for the billing code.", 0, java.lang.Integer.MAX_VALUE, applicability); 2474 case -1041594966: /*propertyGroup*/ return new Property("propertyGroup", "", "Group of properties which are applicable under the same conditions. If no applicability rules are established for the group, then all properties always apply.", 0, java.lang.Integer.MAX_VALUE, propertyGroup); 2475 default: return super.getNamedProperty(_hash, _name, _checkValid); 2476 } 2477 2478 } 2479 2480 @Override 2481 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 2482 switch (hash) { 2483 case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType 2484 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 2485 case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType 2486 case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType 2487 case -1076333435: /*derivedFromUri*/ return this.derivedFromUri == null ? new Base[0] : this.derivedFromUri.toArray(new Base[this.derivedFromUri.size()]); // UriType 2488 case -995410646: /*partOf*/ return this.partOf == null ? new Base[0] : this.partOf.toArray(new Base[this.partOf.size()]); // CanonicalType 2489 case -430332865: /*replaces*/ return this.replaces == null ? new Base[0] : this.replaces.toArray(new Base[this.replaces.size()]); // CanonicalType 2490 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<PublicationStatus> 2491 case -404562712: /*experimental*/ return this.experimental == null ? new Base[0] : new Base[] {this.experimental}; // BooleanType 2492 case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType 2493 case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // StringType 2494 case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail 2495 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType 2496 case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext 2497 case -507075711: /*jurisdiction*/ return this.jurisdiction == null ? new Base[0] : this.jurisdiction.toArray(new Base[this.jurisdiction.size()]); // CodeableConcept 2498 case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // MarkdownType 2499 case 223539345: /*approvalDate*/ return this.approvalDate == null ? new Base[0] : new Base[] {this.approvalDate}; // DateType 2500 case -1687512484: /*lastReviewDate*/ return this.lastReviewDate == null ? new Base[0] : new Base[] {this.lastReviewDate}; // DateType 2501 case -403934648: /*effectivePeriod*/ return this.effectivePeriod == null ? new Base[0] : new Base[] {this.effectivePeriod}; // Period 2502 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept 2503 case 555127957: /*instance*/ return this.instance == null ? new Base[0] : this.instance.toArray(new Base[this.instance.size()]); // Reference 2504 case -1526770491: /*applicability*/ return this.applicability == null ? new Base[0] : this.applicability.toArray(new Base[this.applicability.size()]); // ChargeItemDefinitionApplicabilityComponent 2505 case -1041594966: /*propertyGroup*/ return this.propertyGroup == null ? new Base[0] : this.propertyGroup.toArray(new Base[this.propertyGroup.size()]); // ChargeItemDefinitionPropertyGroupComponent 2506 default: return super.getProperty(hash, name, checkValid); 2507 } 2508 2509 } 2510 2511 @Override 2512 public Base setProperty(int hash, String name, Base value) throws FHIRException { 2513 switch (hash) { 2514 case 116079: // url 2515 this.url = castToUri(value); // UriType 2516 return value; 2517 case -1618432855: // identifier 2518 this.getIdentifier().add(castToIdentifier(value)); // Identifier 2519 return value; 2520 case 351608024: // version 2521 this.version = castToString(value); // StringType 2522 return value; 2523 case 110371416: // title 2524 this.title = castToString(value); // StringType 2525 return value; 2526 case -1076333435: // derivedFromUri 2527 this.getDerivedFromUri().add(castToUri(value)); // UriType 2528 return value; 2529 case -995410646: // partOf 2530 this.getPartOf().add(castToCanonical(value)); // CanonicalType 2531 return value; 2532 case -430332865: // replaces 2533 this.getReplaces().add(castToCanonical(value)); // CanonicalType 2534 return value; 2535 case -892481550: // status 2536 value = new PublicationStatusEnumFactory().fromType(castToCode(value)); 2537 this.status = (Enumeration) value; // Enumeration<PublicationStatus> 2538 return value; 2539 case -404562712: // experimental 2540 this.experimental = castToBoolean(value); // BooleanType 2541 return value; 2542 case 3076014: // date 2543 this.date = castToDateTime(value); // DateTimeType 2544 return value; 2545 case 1447404028: // publisher 2546 this.publisher = castToString(value); // StringType 2547 return value; 2548 case 951526432: // contact 2549 this.getContact().add(castToContactDetail(value)); // ContactDetail 2550 return value; 2551 case -1724546052: // description 2552 this.description = castToMarkdown(value); // MarkdownType 2553 return value; 2554 case -669707736: // useContext 2555 this.getUseContext().add(castToUsageContext(value)); // UsageContext 2556 return value; 2557 case -507075711: // jurisdiction 2558 this.getJurisdiction().add(castToCodeableConcept(value)); // CodeableConcept 2559 return value; 2560 case 1522889671: // copyright 2561 this.copyright = castToMarkdown(value); // MarkdownType 2562 return value; 2563 case 223539345: // approvalDate 2564 this.approvalDate = castToDate(value); // DateType 2565 return value; 2566 case -1687512484: // lastReviewDate 2567 this.lastReviewDate = castToDate(value); // DateType 2568 return value; 2569 case -403934648: // effectivePeriod 2570 this.effectivePeriod = castToPeriod(value); // Period 2571 return value; 2572 case 3059181: // code 2573 this.code = castToCodeableConcept(value); // CodeableConcept 2574 return value; 2575 case 555127957: // instance 2576 this.getInstance().add(castToReference(value)); // Reference 2577 return value; 2578 case -1526770491: // applicability 2579 this.getApplicability().add((ChargeItemDefinitionApplicabilityComponent) value); // ChargeItemDefinitionApplicabilityComponent 2580 return value; 2581 case -1041594966: // propertyGroup 2582 this.getPropertyGroup().add((ChargeItemDefinitionPropertyGroupComponent) value); // ChargeItemDefinitionPropertyGroupComponent 2583 return value; 2584 default: return super.setProperty(hash, name, value); 2585 } 2586 2587 } 2588 2589 @Override 2590 public Base setProperty(String name, Base value) throws FHIRException { 2591 if (name.equals("url")) { 2592 this.url = castToUri(value); // UriType 2593 } else if (name.equals("identifier")) { 2594 this.getIdentifier().add(castToIdentifier(value)); 2595 } else if (name.equals("version")) { 2596 this.version = castToString(value); // StringType 2597 } else if (name.equals("title")) { 2598 this.title = castToString(value); // StringType 2599 } else if (name.equals("derivedFromUri")) { 2600 this.getDerivedFromUri().add(castToUri(value)); 2601 } else if (name.equals("partOf")) { 2602 this.getPartOf().add(castToCanonical(value)); 2603 } else if (name.equals("replaces")) { 2604 this.getReplaces().add(castToCanonical(value)); 2605 } else if (name.equals("status")) { 2606 value = new PublicationStatusEnumFactory().fromType(castToCode(value)); 2607 this.status = (Enumeration) value; // Enumeration<PublicationStatus> 2608 } else if (name.equals("experimental")) { 2609 this.experimental = castToBoolean(value); // BooleanType 2610 } else if (name.equals("date")) { 2611 this.date = castToDateTime(value); // DateTimeType 2612 } else if (name.equals("publisher")) { 2613 this.publisher = castToString(value); // StringType 2614 } else if (name.equals("contact")) { 2615 this.getContact().add(castToContactDetail(value)); 2616 } else if (name.equals("description")) { 2617 this.description = castToMarkdown(value); // MarkdownType 2618 } else if (name.equals("useContext")) { 2619 this.getUseContext().add(castToUsageContext(value)); 2620 } else if (name.equals("jurisdiction")) { 2621 this.getJurisdiction().add(castToCodeableConcept(value)); 2622 } else if (name.equals("copyright")) { 2623 this.copyright = castToMarkdown(value); // MarkdownType 2624 } else if (name.equals("approvalDate")) { 2625 this.approvalDate = castToDate(value); // DateType 2626 } else if (name.equals("lastReviewDate")) { 2627 this.lastReviewDate = castToDate(value); // DateType 2628 } else if (name.equals("effectivePeriod")) { 2629 this.effectivePeriod = castToPeriod(value); // Period 2630 } else if (name.equals("code")) { 2631 this.code = castToCodeableConcept(value); // CodeableConcept 2632 } else if (name.equals("instance")) { 2633 this.getInstance().add(castToReference(value)); 2634 } else if (name.equals("applicability")) { 2635 this.getApplicability().add((ChargeItemDefinitionApplicabilityComponent) value); 2636 } else if (name.equals("propertyGroup")) { 2637 this.getPropertyGroup().add((ChargeItemDefinitionPropertyGroupComponent) value); 2638 } else 2639 return super.setProperty(name, value); 2640 return value; 2641 } 2642 2643 @Override 2644 public Base makeProperty(int hash, String name) throws FHIRException { 2645 switch (hash) { 2646 case 116079: return getUrlElement(); 2647 case -1618432855: return addIdentifier(); 2648 case 351608024: return getVersionElement(); 2649 case 110371416: return getTitleElement(); 2650 case -1076333435: return addDerivedFromUriElement(); 2651 case -995410646: return addPartOfElement(); 2652 case -430332865: return addReplacesElement(); 2653 case -892481550: return getStatusElement(); 2654 case -404562712: return getExperimentalElement(); 2655 case 3076014: return getDateElement(); 2656 case 1447404028: return getPublisherElement(); 2657 case 951526432: return addContact(); 2658 case -1724546052: return getDescriptionElement(); 2659 case -669707736: return addUseContext(); 2660 case -507075711: return addJurisdiction(); 2661 case 1522889671: return getCopyrightElement(); 2662 case 223539345: return getApprovalDateElement(); 2663 case -1687512484: return getLastReviewDateElement(); 2664 case -403934648: return getEffectivePeriod(); 2665 case 3059181: return getCode(); 2666 case 555127957: return addInstance(); 2667 case -1526770491: return addApplicability(); 2668 case -1041594966: return addPropertyGroup(); 2669 default: return super.makeProperty(hash, name); 2670 } 2671 2672 } 2673 2674 @Override 2675 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 2676 switch (hash) { 2677 case 116079: /*url*/ return new String[] {"uri"}; 2678 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 2679 case 351608024: /*version*/ return new String[] {"string"}; 2680 case 110371416: /*title*/ return new String[] {"string"}; 2681 case -1076333435: /*derivedFromUri*/ return new String[] {"uri"}; 2682 case -995410646: /*partOf*/ return new String[] {"canonical"}; 2683 case -430332865: /*replaces*/ return new String[] {"canonical"}; 2684 case -892481550: /*status*/ return new String[] {"code"}; 2685 case -404562712: /*experimental*/ return new String[] {"boolean"}; 2686 case 3076014: /*date*/ return new String[] {"dateTime"}; 2687 case 1447404028: /*publisher*/ return new String[] {"string"}; 2688 case 951526432: /*contact*/ return new String[] {"ContactDetail"}; 2689 case -1724546052: /*description*/ return new String[] {"markdown"}; 2690 case -669707736: /*useContext*/ return new String[] {"UsageContext"}; 2691 case -507075711: /*jurisdiction*/ return new String[] {"CodeableConcept"}; 2692 case 1522889671: /*copyright*/ return new String[] {"markdown"}; 2693 case 223539345: /*approvalDate*/ return new String[] {"date"}; 2694 case -1687512484: /*lastReviewDate*/ return new String[] {"date"}; 2695 case -403934648: /*effectivePeriod*/ return new String[] {"Period"}; 2696 case 3059181: /*code*/ return new String[] {"CodeableConcept"}; 2697 case 555127957: /*instance*/ return new String[] {"Reference"}; 2698 case -1526770491: /*applicability*/ return new String[] {}; 2699 case -1041594966: /*propertyGroup*/ return new String[] {}; 2700 default: return super.getTypesForProperty(hash, name); 2701 } 2702 2703 } 2704 2705 @Override 2706 public Base addChild(String name) throws FHIRException { 2707 if (name.equals("url")) { 2708 throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.url"); 2709 } 2710 else if (name.equals("identifier")) { 2711 return addIdentifier(); 2712 } 2713 else if (name.equals("version")) { 2714 throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.version"); 2715 } 2716 else if (name.equals("title")) { 2717 throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.title"); 2718 } 2719 else if (name.equals("derivedFromUri")) { 2720 throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.derivedFromUri"); 2721 } 2722 else if (name.equals("partOf")) { 2723 throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.partOf"); 2724 } 2725 else if (name.equals("replaces")) { 2726 throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.replaces"); 2727 } 2728 else if (name.equals("status")) { 2729 throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.status"); 2730 } 2731 else if (name.equals("experimental")) { 2732 throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.experimental"); 2733 } 2734 else if (name.equals("date")) { 2735 throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.date"); 2736 } 2737 else if (name.equals("publisher")) { 2738 throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.publisher"); 2739 } 2740 else if (name.equals("contact")) { 2741 return addContact(); 2742 } 2743 else if (name.equals("description")) { 2744 throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.description"); 2745 } 2746 else if (name.equals("useContext")) { 2747 return addUseContext(); 2748 } 2749 else if (name.equals("jurisdiction")) { 2750 return addJurisdiction(); 2751 } 2752 else if (name.equals("copyright")) { 2753 throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.copyright"); 2754 } 2755 else if (name.equals("approvalDate")) { 2756 throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.approvalDate"); 2757 } 2758 else if (name.equals("lastReviewDate")) { 2759 throw new FHIRException("Cannot call addChild on a primitive type ChargeItemDefinition.lastReviewDate"); 2760 } 2761 else if (name.equals("effectivePeriod")) { 2762 this.effectivePeriod = new Period(); 2763 return this.effectivePeriod; 2764 } 2765 else if (name.equals("code")) { 2766 this.code = new CodeableConcept(); 2767 return this.code; 2768 } 2769 else if (name.equals("instance")) { 2770 return addInstance(); 2771 } 2772 else if (name.equals("applicability")) { 2773 return addApplicability(); 2774 } 2775 else if (name.equals("propertyGroup")) { 2776 return addPropertyGroup(); 2777 } 2778 else 2779 return super.addChild(name); 2780 } 2781 2782 public String fhirType() { 2783 return "ChargeItemDefinition"; 2784 2785 } 2786 2787 public ChargeItemDefinition copy() { 2788 ChargeItemDefinition dst = new ChargeItemDefinition(); 2789 copyValues(dst); 2790 return dst; 2791 } 2792 2793 public void copyValues(ChargeItemDefinition dst) { 2794 super.copyValues(dst); 2795 dst.url = url == null ? null : url.copy(); 2796 if (identifier != null) { 2797 dst.identifier = new ArrayList<Identifier>(); 2798 for (Identifier i : identifier) 2799 dst.identifier.add(i.copy()); 2800 }; 2801 dst.version = version == null ? null : version.copy(); 2802 dst.title = title == null ? null : title.copy(); 2803 if (derivedFromUri != null) { 2804 dst.derivedFromUri = new ArrayList<UriType>(); 2805 for (UriType i : derivedFromUri) 2806 dst.derivedFromUri.add(i.copy()); 2807 }; 2808 if (partOf != null) { 2809 dst.partOf = new ArrayList<CanonicalType>(); 2810 for (CanonicalType i : partOf) 2811 dst.partOf.add(i.copy()); 2812 }; 2813 if (replaces != null) { 2814 dst.replaces = new ArrayList<CanonicalType>(); 2815 for (CanonicalType i : replaces) 2816 dst.replaces.add(i.copy()); 2817 }; 2818 dst.status = status == null ? null : status.copy(); 2819 dst.experimental = experimental == null ? null : experimental.copy(); 2820 dst.date = date == null ? null : date.copy(); 2821 dst.publisher = publisher == null ? null : publisher.copy(); 2822 if (contact != null) { 2823 dst.contact = new ArrayList<ContactDetail>(); 2824 for (ContactDetail i : contact) 2825 dst.contact.add(i.copy()); 2826 }; 2827 dst.description = description == null ? null : description.copy(); 2828 if (useContext != null) { 2829 dst.useContext = new ArrayList<UsageContext>(); 2830 for (UsageContext i : useContext) 2831 dst.useContext.add(i.copy()); 2832 }; 2833 if (jurisdiction != null) { 2834 dst.jurisdiction = new ArrayList<CodeableConcept>(); 2835 for (CodeableConcept i : jurisdiction) 2836 dst.jurisdiction.add(i.copy()); 2837 }; 2838 dst.copyright = copyright == null ? null : copyright.copy(); 2839 dst.approvalDate = approvalDate == null ? null : approvalDate.copy(); 2840 dst.lastReviewDate = lastReviewDate == null ? null : lastReviewDate.copy(); 2841 dst.effectivePeriod = effectivePeriod == null ? null : effectivePeriod.copy(); 2842 dst.code = code == null ? null : code.copy(); 2843 if (instance != null) { 2844 dst.instance = new ArrayList<Reference>(); 2845 for (Reference i : instance) 2846 dst.instance.add(i.copy()); 2847 }; 2848 if (applicability != null) { 2849 dst.applicability = new ArrayList<ChargeItemDefinitionApplicabilityComponent>(); 2850 for (ChargeItemDefinitionApplicabilityComponent i : applicability) 2851 dst.applicability.add(i.copy()); 2852 }; 2853 if (propertyGroup != null) { 2854 dst.propertyGroup = new ArrayList<ChargeItemDefinitionPropertyGroupComponent>(); 2855 for (ChargeItemDefinitionPropertyGroupComponent i : propertyGroup) 2856 dst.propertyGroup.add(i.copy()); 2857 }; 2858 } 2859 2860 protected ChargeItemDefinition typedCopy() { 2861 return copy(); 2862 } 2863 2864 @Override 2865 public boolean equalsDeep(Base other_) { 2866 if (!super.equalsDeep(other_)) 2867 return false; 2868 if (!(other_ instanceof ChargeItemDefinition)) 2869 return false; 2870 ChargeItemDefinition o = (ChargeItemDefinition) other_; 2871 return compareDeep(identifier, o.identifier, true) && compareDeep(derivedFromUri, o.derivedFromUri, true) 2872 && compareDeep(partOf, o.partOf, true) && compareDeep(replaces, o.replaces, true) && compareDeep(copyright, o.copyright, true) 2873 && compareDeep(approvalDate, o.approvalDate, true) && compareDeep(lastReviewDate, o.lastReviewDate, true) 2874 && compareDeep(effectivePeriod, o.effectivePeriod, true) && compareDeep(code, o.code, true) && compareDeep(instance, o.instance, true) 2875 && compareDeep(applicability, o.applicability, true) && compareDeep(propertyGroup, o.propertyGroup, true) 2876 ; 2877 } 2878 2879 @Override 2880 public boolean equalsShallow(Base other_) { 2881 if (!super.equalsShallow(other_)) 2882 return false; 2883 if (!(other_ instanceof ChargeItemDefinition)) 2884 return false; 2885 ChargeItemDefinition o = (ChargeItemDefinition) other_; 2886 return compareValues(derivedFromUri, o.derivedFromUri, true) && compareValues(copyright, o.copyright, true) 2887 && compareValues(approvalDate, o.approvalDate, true) && compareValues(lastReviewDate, o.lastReviewDate, true) 2888 ; 2889 } 2890 2891 public boolean isEmpty() { 2892 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, derivedFromUri 2893 , partOf, replaces, copyright, approvalDate, lastReviewDate, effectivePeriod, code 2894 , instance, applicability, propertyGroup); 2895 } 2896 2897 @Override 2898 public ResourceType getResourceType() { 2899 return ResourceType.ChargeItemDefinition; 2900 } 2901 2902 /** 2903 * Search parameter: <b>date</b> 2904 * <p> 2905 * Description: <b>The charge item definition publication date</b><br> 2906 * Type: <b>date</b><br> 2907 * Path: <b>ChargeItemDefinition.date</b><br> 2908 * </p> 2909 */ 2910 @SearchParamDefinition(name="date", path="ChargeItemDefinition.date", description="The charge item definition publication date", type="date" ) 2911 public static final String SP_DATE = "date"; 2912 /** 2913 * <b>Fluent Client</b> search parameter constant for <b>date</b> 2914 * <p> 2915 * Description: <b>The charge item definition publication date</b><br> 2916 * Type: <b>date</b><br> 2917 * Path: <b>ChargeItemDefinition.date</b><br> 2918 * </p> 2919 */ 2920 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 2921 2922 /** 2923 * Search parameter: <b>identifier</b> 2924 * <p> 2925 * Description: <b>External identifier for the charge item definition</b><br> 2926 * Type: <b>token</b><br> 2927 * Path: <b>ChargeItemDefinition.identifier</b><br> 2928 * </p> 2929 */ 2930 @SearchParamDefinition(name="identifier", path="ChargeItemDefinition.identifier", description="External identifier for the charge item definition", type="token" ) 2931 public static final String SP_IDENTIFIER = "identifier"; 2932 /** 2933 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 2934 * <p> 2935 * Description: <b>External identifier for the charge item definition</b><br> 2936 * Type: <b>token</b><br> 2937 * Path: <b>ChargeItemDefinition.identifier</b><br> 2938 * </p> 2939 */ 2940 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 2941 2942 /** 2943 * Search parameter: <b>context-type-value</b> 2944 * <p> 2945 * Description: <b>A use context type and value assigned to the charge item definition</b><br> 2946 * Type: <b>composite</b><br> 2947 * Path: <b></b><br> 2948 * </p> 2949 */ 2950 @SearchParamDefinition(name="context-type-value", path="ChargeItemDefinition.useContext", description="A use context type and value assigned to the charge item definition", type="composite", compositeOf={"context-type", "context"} ) 2951 public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; 2952 /** 2953 * <b>Fluent Client</b> search parameter constant for <b>context-type-value</b> 2954 * <p> 2955 * Description: <b>A use context type and value assigned to the charge item definition</b><br> 2956 * Type: <b>composite</b><br> 2957 * Path: <b></b><br> 2958 * </p> 2959 */ 2960 public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam> CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam>(SP_CONTEXT_TYPE_VALUE); 2961 2962 /** 2963 * Search parameter: <b>jurisdiction</b> 2964 * <p> 2965 * Description: <b>Intended jurisdiction for the charge item definition</b><br> 2966 * Type: <b>token</b><br> 2967 * Path: <b>ChargeItemDefinition.jurisdiction</b><br> 2968 * </p> 2969 */ 2970 @SearchParamDefinition(name="jurisdiction", path="ChargeItemDefinition.jurisdiction", description="Intended jurisdiction for the charge item definition", type="token" ) 2971 public static final String SP_JURISDICTION = "jurisdiction"; 2972 /** 2973 * <b>Fluent Client</b> search parameter constant for <b>jurisdiction</b> 2974 * <p> 2975 * Description: <b>Intended jurisdiction for the charge item definition</b><br> 2976 * Type: <b>token</b><br> 2977 * Path: <b>ChargeItemDefinition.jurisdiction</b><br> 2978 * </p> 2979 */ 2980 public static final ca.uhn.fhir.rest.gclient.TokenClientParam JURISDICTION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_JURISDICTION); 2981 2982 /** 2983 * Search parameter: <b>description</b> 2984 * <p> 2985 * Description: <b>The description of the charge item definition</b><br> 2986 * Type: <b>string</b><br> 2987 * Path: <b>ChargeItemDefinition.description</b><br> 2988 * </p> 2989 */ 2990 @SearchParamDefinition(name="description", path="ChargeItemDefinition.description", description="The description of the charge item definition", type="string" ) 2991 public static final String SP_DESCRIPTION = "description"; 2992 /** 2993 * <b>Fluent Client</b> search parameter constant for <b>description</b> 2994 * <p> 2995 * Description: <b>The description of the charge item definition</b><br> 2996 * Type: <b>string</b><br> 2997 * Path: <b>ChargeItemDefinition.description</b><br> 2998 * </p> 2999 */ 3000 public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION); 3001 3002 /** 3003 * Search parameter: <b>context-type</b> 3004 * <p> 3005 * Description: <b>A type of use context assigned to the charge item definition</b><br> 3006 * Type: <b>token</b><br> 3007 * Path: <b>ChargeItemDefinition.useContext.code</b><br> 3008 * </p> 3009 */ 3010 @SearchParamDefinition(name="context-type", path="ChargeItemDefinition.useContext.code", description="A type of use context assigned to the charge item definition", type="token" ) 3011 public static final String SP_CONTEXT_TYPE = "context-type"; 3012 /** 3013 * <b>Fluent Client</b> search parameter constant for <b>context-type</b> 3014 * <p> 3015 * Description: <b>A type of use context assigned to the charge item definition</b><br> 3016 * Type: <b>token</b><br> 3017 * Path: <b>ChargeItemDefinition.useContext.code</b><br> 3018 * </p> 3019 */ 3020 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); 3021 3022 /** 3023 * Search parameter: <b>title</b> 3024 * <p> 3025 * Description: <b>The human-friendly name of the charge item definition</b><br> 3026 * Type: <b>string</b><br> 3027 * Path: <b>ChargeItemDefinition.title</b><br> 3028 * </p> 3029 */ 3030 @SearchParamDefinition(name="title", path="ChargeItemDefinition.title", description="The human-friendly name of the charge item definition", type="string" ) 3031 public static final String SP_TITLE = "title"; 3032 /** 3033 * <b>Fluent Client</b> search parameter constant for <b>title</b> 3034 * <p> 3035 * Description: <b>The human-friendly name of the charge item definition</b><br> 3036 * Type: <b>string</b><br> 3037 * Path: <b>ChargeItemDefinition.title</b><br> 3038 * </p> 3039 */ 3040 public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE); 3041 3042 /** 3043 * Search parameter: <b>version</b> 3044 * <p> 3045 * Description: <b>The business version of the charge item definition</b><br> 3046 * Type: <b>token</b><br> 3047 * Path: <b>ChargeItemDefinition.version</b><br> 3048 * </p> 3049 */ 3050 @SearchParamDefinition(name="version", path="ChargeItemDefinition.version", description="The business version of the charge item definition", type="token" ) 3051 public static final String SP_VERSION = "version"; 3052 /** 3053 * <b>Fluent Client</b> search parameter constant for <b>version</b> 3054 * <p> 3055 * Description: <b>The business version of the charge item definition</b><br> 3056 * Type: <b>token</b><br> 3057 * Path: <b>ChargeItemDefinition.version</b><br> 3058 * </p> 3059 */ 3060 public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); 3061 3062 /** 3063 * Search parameter: <b>url</b> 3064 * <p> 3065 * Description: <b>The uri that identifies the charge item definition</b><br> 3066 * Type: <b>uri</b><br> 3067 * Path: <b>ChargeItemDefinition.url</b><br> 3068 * </p> 3069 */ 3070 @SearchParamDefinition(name="url", path="ChargeItemDefinition.url", description="The uri that identifies the charge item definition", type="uri" ) 3071 public static final String SP_URL = "url"; 3072 /** 3073 * <b>Fluent Client</b> search parameter constant for <b>url</b> 3074 * <p> 3075 * Description: <b>The uri that identifies the charge item definition</b><br> 3076 * Type: <b>uri</b><br> 3077 * Path: <b>ChargeItemDefinition.url</b><br> 3078 * </p> 3079 */ 3080 public static final ca.uhn.fhir.rest.gclient.UriClientParam URL = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_URL); 3081 3082 /** 3083 * Search parameter: <b>context-quantity</b> 3084 * <p> 3085 * Description: <b>A quantity- or range-valued use context assigned to the charge item definition</b><br> 3086 * Type: <b>quantity</b><br> 3087 * Path: <b>ChargeItemDefinition.useContext.valueQuantity, ChargeItemDefinition.useContext.valueRange</b><br> 3088 * </p> 3089 */ 3090 @SearchParamDefinition(name="context-quantity", path="(ChargeItemDefinition.useContext.value as Quantity) | (ChargeItemDefinition.useContext.value as Range)", description="A quantity- or range-valued use context assigned to the charge item definition", type="quantity" ) 3091 public static final String SP_CONTEXT_QUANTITY = "context-quantity"; 3092 /** 3093 * <b>Fluent Client</b> search parameter constant for <b>context-quantity</b> 3094 * <p> 3095 * Description: <b>A quantity- or range-valued use context assigned to the charge item definition</b><br> 3096 * Type: <b>quantity</b><br> 3097 * Path: <b>ChargeItemDefinition.useContext.valueQuantity, ChargeItemDefinition.useContext.valueRange</b><br> 3098 * </p> 3099 */ 3100 public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); 3101 3102 /** 3103 * Search parameter: <b>effective</b> 3104 * <p> 3105 * Description: <b>The time during which the charge item definition is intended to be in use</b><br> 3106 * Type: <b>date</b><br> 3107 * Path: <b>ChargeItemDefinition.effectivePeriod</b><br> 3108 * </p> 3109 */ 3110 @SearchParamDefinition(name="effective", path="ChargeItemDefinition.effectivePeriod", description="The time during which the charge item definition is intended to be in use", type="date" ) 3111 public static final String SP_EFFECTIVE = "effective"; 3112 /** 3113 * <b>Fluent Client</b> search parameter constant for <b>effective</b> 3114 * <p> 3115 * Description: <b>The time during which the charge item definition is intended to be in use</b><br> 3116 * Type: <b>date</b><br> 3117 * Path: <b>ChargeItemDefinition.effectivePeriod</b><br> 3118 * </p> 3119 */ 3120 public static final ca.uhn.fhir.rest.gclient.DateClientParam EFFECTIVE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_EFFECTIVE); 3121 3122 /** 3123 * Search parameter: <b>context</b> 3124 * <p> 3125 * Description: <b>A use context assigned to the charge item definition</b><br> 3126 * Type: <b>token</b><br> 3127 * Path: <b>ChargeItemDefinition.useContext.valueCodeableConcept</b><br> 3128 * </p> 3129 */ 3130 @SearchParamDefinition(name="context", path="(ChargeItemDefinition.useContext.value as CodeableConcept)", description="A use context assigned to the charge item definition", type="token" ) 3131 public static final String SP_CONTEXT = "context"; 3132 /** 3133 * <b>Fluent Client</b> search parameter constant for <b>context</b> 3134 * <p> 3135 * Description: <b>A use context assigned to the charge item definition</b><br> 3136 * Type: <b>token</b><br> 3137 * Path: <b>ChargeItemDefinition.useContext.valueCodeableConcept</b><br> 3138 * </p> 3139 */ 3140 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); 3141 3142 /** 3143 * Search parameter: <b>publisher</b> 3144 * <p> 3145 * Description: <b>Name of the publisher of the charge item definition</b><br> 3146 * Type: <b>string</b><br> 3147 * Path: <b>ChargeItemDefinition.publisher</b><br> 3148 * </p> 3149 */ 3150 @SearchParamDefinition(name="publisher", path="ChargeItemDefinition.publisher", description="Name of the publisher of the charge item definition", type="string" ) 3151 public static final String SP_PUBLISHER = "publisher"; 3152 /** 3153 * <b>Fluent Client</b> search parameter constant for <b>publisher</b> 3154 * <p> 3155 * Description: <b>Name of the publisher of the charge item definition</b><br> 3156 * Type: <b>string</b><br> 3157 * Path: <b>ChargeItemDefinition.publisher</b><br> 3158 * </p> 3159 */ 3160 public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER); 3161 3162 /** 3163 * Search parameter: <b>context-type-quantity</b> 3164 * <p> 3165 * Description: <b>A use context type and quantity- or range-based value assigned to the charge item definition</b><br> 3166 * Type: <b>composite</b><br> 3167 * Path: <b></b><br> 3168 * </p> 3169 */ 3170 @SearchParamDefinition(name="context-type-quantity", path="ChargeItemDefinition.useContext", description="A use context type and quantity- or range-based value assigned to the charge item definition", type="composite", compositeOf={"context-type", "context-quantity"} ) 3171 public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; 3172 /** 3173 * <b>Fluent Client</b> search parameter constant for <b>context-type-quantity</b> 3174 * <p> 3175 * Description: <b>A use context type and quantity- or range-based value assigned to the charge item definition</b><br> 3176 * Type: <b>composite</b><br> 3177 * Path: <b></b><br> 3178 * </p> 3179 */ 3180 public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam> CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam>(SP_CONTEXT_TYPE_QUANTITY); 3181 3182 /** 3183 * Search parameter: <b>status</b> 3184 * <p> 3185 * Description: <b>The current status of the charge item definition</b><br> 3186 * Type: <b>token</b><br> 3187 * Path: <b>ChargeItemDefinition.status</b><br> 3188 * </p> 3189 */ 3190 @SearchParamDefinition(name="status", path="ChargeItemDefinition.status", description="The current status of the charge item definition", type="token" ) 3191 public static final String SP_STATUS = "status"; 3192 /** 3193 * <b>Fluent Client</b> search parameter constant for <b>status</b> 3194 * <p> 3195 * Description: <b>The current status of the charge item definition</b><br> 3196 * Type: <b>token</b><br> 3197 * Path: <b>ChargeItemDefinition.status</b><br> 3198 * </p> 3199 */ 3200 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 3201 3202 3203} 3204