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