001package org.hl7.fhir.dstu3.model; 002 003/* 004 Copyright (c) 2011+, HL7, Inc. 005 All rights reserved. 006 007 Redistribution and use in source and binary forms, with or without modification, 008 are permitted provided that the following conditions are met: 009 010 * Redistributions of source code must retain the above copyright notice, this 011 list of conditions and the following disclaimer. 012 * Redistributions in binary form must reproduce the above copyright notice, 013 this list of conditions and the following disclaimer in the documentation 014 and/or other materials provided with the distribution. 015 * Neither the name of HL7 nor the names of its contributors may be used to 016 endorse or promote products derived from this software without specific 017 prior written permission. 018 019 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 020 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 021 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 022 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 023 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 024 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 025 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 026 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 027 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 028 POSSIBILITY OF SUCH DAMAGE. 029 030*/ 031 032// Generated on Fri, Mar 16, 2018 15:21+1100 for FHIR v3.0.1 033 034import java.util.*; 035 036import org.hl7.fhir.utilities.Utilities; 037import org.hl7.fhir.dstu3.model.Enumerations.*; 038import ca.uhn.fhir.model.api.annotation.ResourceDef; 039import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 040import ca.uhn.fhir.model.api.annotation.Child; 041import ca.uhn.fhir.model.api.annotation.ChildOrder; 042import ca.uhn.fhir.model.api.annotation.Description; 043import ca.uhn.fhir.model.api.annotation.Block; 044import org.hl7.fhir.instance.model.api.*; 045import org.hl7.fhir.exceptions.FHIRException; 046import org.hl7.fhir.exceptions.FHIRFormatError; 047/** 048 * The ServiceDefinition describes a unit of decision support functionality that is made available as a service, such as immunization modules or drug-drug interaction checking. 049 */ 050@ResourceDef(name="ServiceDefinition", profile="http://hl7.org/fhir/StructureDefinition/ServiceDefinition") 051@ChildOrder(names={"url", "identifier", "version", "name", "title", "status", "experimental", "date", "publisher", "description", "purpose", "usage", "approvalDate", "lastReviewDate", "effectivePeriod", "useContext", "jurisdiction", "topic", "contributor", "contact", "copyright", "relatedArtifact", "trigger", "dataRequirement", "operationDefinition"}) 052public class ServiceDefinition extends MetadataResource { 053 054 /** 055 * A formal identifier that is used to identify this service definition when it is represented in other formats, or referenced in a specification, model, design or an instance. This is used for CMS or NQF identifiers for a measure artifact. Note that at least one identifier is required for non-experimental active artifacts. 056 */ 057 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 058 @Description(shortDefinition="Additional identifier for the service definition", formalDefinition="A formal identifier that is used to identify this service definition when it is represented in other formats, or referenced in a specification, model, design or an instance. This is used for CMS or NQF identifiers for a measure artifact. Note that at least one identifier is required for non-experimental active artifacts." ) 059 protected List<Identifier> identifier; 060 061 /** 062 * Explaination of why this service definition is needed and why it has been designed as it has. 063 */ 064 @Child(name = "purpose", type = {MarkdownType.class}, order=1, min=0, max=1, modifier=false, summary=false) 065 @Description(shortDefinition="Why this service definition is defined", formalDefinition="Explaination of why this service definition is needed and why it has been designed as it has." ) 066 protected MarkdownType purpose; 067 068 /** 069 * A detailed description of how the module is used from a clinical perspective. 070 */ 071 @Child(name = "usage", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) 072 @Description(shortDefinition="Describes the clinical usage of the module", formalDefinition="A detailed description of how the module is used from a clinical perspective." ) 073 protected StringType usage; 074 075 /** 076 * The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage. 077 */ 078 @Child(name = "approvalDate", type = {DateType.class}, order=3, min=0, max=1, modifier=false, summary=false) 079 @Description(shortDefinition="When the service 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." ) 080 protected DateType approvalDate; 081 082 /** 083 * The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date. 084 */ 085 @Child(name = "lastReviewDate", type = {DateType.class}, order=4, min=0, max=1, modifier=false, summary=false) 086 @Description(shortDefinition="When the service definition was last reviewed", formalDefinition="The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date." ) 087 protected DateType lastReviewDate; 088 089 /** 090 * The period during which the service definition content was or is planned to be in active use. 091 */ 092 @Child(name = "effectivePeriod", type = {Period.class}, order=5, min=0, max=1, modifier=false, summary=true) 093 @Description(shortDefinition="When the service definition is expected to be used", formalDefinition="The period during which the service definition content was or is planned to be in active use." ) 094 protected Period effectivePeriod; 095 096 /** 097 * Descriptive topics related to the module. Topics provide a high-level categorization of the module that can be useful for filtering and searching. 098 */ 099 @Child(name = "topic", type = {CodeableConcept.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 100 @Description(shortDefinition="E.g. Education, Treatment, Assessment, etc", formalDefinition="Descriptive topics related to the module. Topics provide a high-level categorization of the module that can be useful for filtering and searching." ) 101 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/definition-topic") 102 protected List<CodeableConcept> topic; 103 104 /** 105 * A contributor to the content of the module, including authors, editors, reviewers, and endorsers. 106 */ 107 @Child(name = "contributor", type = {Contributor.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 108 @Description(shortDefinition="A content contributor", formalDefinition="A contributor to the content of the module, including authors, editors, reviewers, and endorsers." ) 109 protected List<Contributor> contributor; 110 111 /** 112 * A copyright statement relating to the service definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the service definition. 113 */ 114 @Child(name = "copyright", type = {MarkdownType.class}, order=8, min=0, max=1, modifier=false, summary=false) 115 @Description(shortDefinition="Use and/or publishing restrictions", formalDefinition="A copyright statement relating to the service definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the service definition." ) 116 protected MarkdownType copyright; 117 118 /** 119 * Related resources such as additional documentation, justification, or bibliographic references. 120 */ 121 @Child(name = "relatedArtifact", type = {RelatedArtifact.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 122 @Description(shortDefinition="Additional documentation, citations, etc", formalDefinition="Related resources such as additional documentation, justification, or bibliographic references." ) 123 protected List<RelatedArtifact> relatedArtifact; 124 125 /** 126 * The trigger element defines when the rule should be invoked. This information is used by consumers of the rule to determine how to integrate the rule into a specific workflow. 127 */ 128 @Child(name = "trigger", type = {TriggerDefinition.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 129 @Description(shortDefinition="\"when\" the module should be invoked", formalDefinition="The trigger element defines when the rule should be invoked. This information is used by consumers of the rule to determine how to integrate the rule into a specific workflow." ) 130 protected List<TriggerDefinition> trigger; 131 132 /** 133 * Data requirements are a machine processable description of the data required by the module in order to perform a successful evaluation. 134 */ 135 @Child(name = "dataRequirement", type = {DataRequirement.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 136 @Description(shortDefinition="What data is used by the module", formalDefinition="Data requirements are a machine processable description of the data required by the module in order to perform a successful evaluation." ) 137 protected List<DataRequirement> dataRequirement; 138 139 /** 140 * A reference to the operation that is used to invoke this service. 141 */ 142 @Child(name = "operationDefinition", type = {OperationDefinition.class}, order=12, min=0, max=1, modifier=false, summary=false) 143 @Description(shortDefinition="Operation to invoke", formalDefinition="A reference to the operation that is used to invoke this service." ) 144 protected Reference operationDefinition; 145 146 /** 147 * The actual object that is the target of the reference (A reference to the operation that is used to invoke this service.) 148 */ 149 protected OperationDefinition operationDefinitionTarget; 150 151 private static final long serialVersionUID = -1517933892L; 152 153 /** 154 * Constructor 155 */ 156 public ServiceDefinition() { 157 super(); 158 } 159 160 /** 161 * Constructor 162 */ 163 public ServiceDefinition(Enumeration<PublicationStatus> status) { 164 super(); 165 this.status = status; 166 } 167 168 /** 169 * @return {@link #url} (An absolute URI that is used to identify this service definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this service definition is (or will be) published. The URL SHOULD include the major version of the service definition. For more information see [Technical and Business Versions](resource.html#versions).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 170 */ 171 public UriType getUrlElement() { 172 if (this.url == null) 173 if (Configuration.errorOnAutoCreate()) 174 throw new Error("Attempt to auto-create ServiceDefinition.url"); 175 else if (Configuration.doAutoCreate()) 176 this.url = new UriType(); // bb 177 return this.url; 178 } 179 180 public boolean hasUrlElement() { 181 return this.url != null && !this.url.isEmpty(); 182 } 183 184 public boolean hasUrl() { 185 return this.url != null && !this.url.isEmpty(); 186 } 187 188 /** 189 * @param value {@link #url} (An absolute URI that is used to identify this service definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this service definition is (or will be) published. The URL SHOULD include the major version of the service definition. For more information see [Technical and Business Versions](resource.html#versions).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value 190 */ 191 public ServiceDefinition setUrlElement(UriType value) { 192 this.url = value; 193 return this; 194 } 195 196 /** 197 * @return An absolute URI that is used to identify this service definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this service definition is (or will be) published. The URL SHOULD include the major version of the service definition. For more information see [Technical and Business Versions](resource.html#versions). 198 */ 199 public String getUrl() { 200 return this.url == null ? null : this.url.getValue(); 201 } 202 203 /** 204 * @param value An absolute URI that is used to identify this service definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this service definition is (or will be) published. The URL SHOULD include the major version of the service definition. For more information see [Technical and Business Versions](resource.html#versions). 205 */ 206 public ServiceDefinition setUrl(String value) { 207 if (Utilities.noString(value)) 208 this.url = null; 209 else { 210 if (this.url == null) 211 this.url = new UriType(); 212 this.url.setValue(value); 213 } 214 return this; 215 } 216 217 /** 218 * @return {@link #identifier} (A formal identifier that is used to identify this service definition when it is represented in other formats, or referenced in a specification, model, design or an instance. This is used for CMS or NQF identifiers for a measure artifact. Note that at least one identifier is required for non-experimental active artifacts.) 219 */ 220 public List<Identifier> getIdentifier() { 221 if (this.identifier == null) 222 this.identifier = new ArrayList<Identifier>(); 223 return this.identifier; 224 } 225 226 /** 227 * @return Returns a reference to <code>this</code> for easy method chaining 228 */ 229 public ServiceDefinition setIdentifier(List<Identifier> theIdentifier) { 230 this.identifier = theIdentifier; 231 return this; 232 } 233 234 public boolean hasIdentifier() { 235 if (this.identifier == null) 236 return false; 237 for (Identifier item : this.identifier) 238 if (!item.isEmpty()) 239 return true; 240 return false; 241 } 242 243 public Identifier addIdentifier() { //3 244 Identifier t = new Identifier(); 245 if (this.identifier == null) 246 this.identifier = new ArrayList<Identifier>(); 247 this.identifier.add(t); 248 return t; 249 } 250 251 public ServiceDefinition addIdentifier(Identifier t) { //3 252 if (t == null) 253 return this; 254 if (this.identifier == null) 255 this.identifier = new ArrayList<Identifier>(); 256 this.identifier.add(t); 257 return this; 258 } 259 260 /** 261 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist 262 */ 263 public Identifier getIdentifierFirstRep() { 264 if (getIdentifier().isEmpty()) { 265 addIdentifier(); 266 } 267 return getIdentifier().get(0); 268 } 269 270 /** 271 * @return {@link #version} (The identifier that is used to identify this version of the service definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the service 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.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value 272 */ 273 public StringType getVersionElement() { 274 if (this.version == null) 275 if (Configuration.errorOnAutoCreate()) 276 throw new Error("Attempt to auto-create ServiceDefinition.version"); 277 else if (Configuration.doAutoCreate()) 278 this.version = new StringType(); // bb 279 return this.version; 280 } 281 282 public boolean hasVersionElement() { 283 return this.version != null && !this.version.isEmpty(); 284 } 285 286 public boolean hasVersion() { 287 return this.version != null && !this.version.isEmpty(); 288 } 289 290 /** 291 * @param value {@link #version} (The identifier that is used to identify this version of the service definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the service 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.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value 292 */ 293 public ServiceDefinition setVersionElement(StringType value) { 294 this.version = value; 295 return this; 296 } 297 298 /** 299 * @return The identifier that is used to identify this version of the service definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the service 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. 300 */ 301 public String getVersion() { 302 return this.version == null ? null : this.version.getValue(); 303 } 304 305 /** 306 * @param value The identifier that is used to identify this version of the service definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the service 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. 307 */ 308 public ServiceDefinition setVersion(String value) { 309 if (Utilities.noString(value)) 310 this.version = null; 311 else { 312 if (this.version == null) 313 this.version = new StringType(); 314 this.version.setValue(value); 315 } 316 return this; 317 } 318 319 /** 320 * @return {@link #name} (A natural language name identifying the service 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 321 */ 322 public StringType getNameElement() { 323 if (this.name == null) 324 if (Configuration.errorOnAutoCreate()) 325 throw new Error("Attempt to auto-create ServiceDefinition.name"); 326 else if (Configuration.doAutoCreate()) 327 this.name = new StringType(); // bb 328 return this.name; 329 } 330 331 public boolean hasNameElement() { 332 return this.name != null && !this.name.isEmpty(); 333 } 334 335 public boolean hasName() { 336 return this.name != null && !this.name.isEmpty(); 337 } 338 339 /** 340 * @param value {@link #name} (A natural language name identifying the service 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 341 */ 342 public ServiceDefinition setNameElement(StringType value) { 343 this.name = value; 344 return this; 345 } 346 347 /** 348 * @return A natural language name identifying the service definition. This name should be usable as an identifier for the module by machine processing applications such as code generation. 349 */ 350 public String getName() { 351 return this.name == null ? null : this.name.getValue(); 352 } 353 354 /** 355 * @param value A natural language name identifying the service definition. This name should be usable as an identifier for the module by machine processing applications such as code generation. 356 */ 357 public ServiceDefinition setName(String value) { 358 if (Utilities.noString(value)) 359 this.name = null; 360 else { 361 if (this.name == null) 362 this.name = new StringType(); 363 this.name.setValue(value); 364 } 365 return this; 366 } 367 368 /** 369 * @return {@link #title} (A short, descriptive, user-friendly title for the service definition.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value 370 */ 371 public StringType getTitleElement() { 372 if (this.title == null) 373 if (Configuration.errorOnAutoCreate()) 374 throw new Error("Attempt to auto-create ServiceDefinition.title"); 375 else if (Configuration.doAutoCreate()) 376 this.title = new StringType(); // bb 377 return this.title; 378 } 379 380 public boolean hasTitleElement() { 381 return this.title != null && !this.title.isEmpty(); 382 } 383 384 public boolean hasTitle() { 385 return this.title != null && !this.title.isEmpty(); 386 } 387 388 /** 389 * @param value {@link #title} (A short, descriptive, user-friendly title for the service definition.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value 390 */ 391 public ServiceDefinition setTitleElement(StringType value) { 392 this.title = value; 393 return this; 394 } 395 396 /** 397 * @return A short, descriptive, user-friendly title for the service definition. 398 */ 399 public String getTitle() { 400 return this.title == null ? null : this.title.getValue(); 401 } 402 403 /** 404 * @param value A short, descriptive, user-friendly title for the service definition. 405 */ 406 public ServiceDefinition setTitle(String value) { 407 if (Utilities.noString(value)) 408 this.title = null; 409 else { 410 if (this.title == null) 411 this.title = new StringType(); 412 this.title.setValue(value); 413 } 414 return this; 415 } 416 417 /** 418 * @return {@link #status} (The status of this service definition. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 419 */ 420 public Enumeration<PublicationStatus> getStatusElement() { 421 if (this.status == null) 422 if (Configuration.errorOnAutoCreate()) 423 throw new Error("Attempt to auto-create ServiceDefinition.status"); 424 else if (Configuration.doAutoCreate()) 425 this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); // bb 426 return this.status; 427 } 428 429 public boolean hasStatusElement() { 430 return this.status != null && !this.status.isEmpty(); 431 } 432 433 public boolean hasStatus() { 434 return this.status != null && !this.status.isEmpty(); 435 } 436 437 /** 438 * @param value {@link #status} (The status of this service definition. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 439 */ 440 public ServiceDefinition setStatusElement(Enumeration<PublicationStatus> value) { 441 this.status = value; 442 return this; 443 } 444 445 /** 446 * @return The status of this service definition. Enables tracking the life-cycle of the content. 447 */ 448 public PublicationStatus getStatus() { 449 return this.status == null ? null : this.status.getValue(); 450 } 451 452 /** 453 * @param value The status of this service definition. Enables tracking the life-cycle of the content. 454 */ 455 public ServiceDefinition setStatus(PublicationStatus value) { 456 if (this.status == null) 457 this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); 458 this.status.setValue(value); 459 return this; 460 } 461 462 /** 463 * @return {@link #experimental} (A boolean value to indicate that this service 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 464 */ 465 public BooleanType getExperimentalElement() { 466 if (this.experimental == null) 467 if (Configuration.errorOnAutoCreate()) 468 throw new Error("Attempt to auto-create ServiceDefinition.experimental"); 469 else if (Configuration.doAutoCreate()) 470 this.experimental = new BooleanType(); // bb 471 return this.experimental; 472 } 473 474 public boolean hasExperimentalElement() { 475 return this.experimental != null && !this.experimental.isEmpty(); 476 } 477 478 public boolean hasExperimental() { 479 return this.experimental != null && !this.experimental.isEmpty(); 480 } 481 482 /** 483 * @param value {@link #experimental} (A boolean value to indicate that this service 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 484 */ 485 public ServiceDefinition setExperimentalElement(BooleanType value) { 486 this.experimental = value; 487 return this; 488 } 489 490 /** 491 * @return A boolean value to indicate that this service definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage. 492 */ 493 public boolean getExperimental() { 494 return this.experimental == null || this.experimental.isEmpty() ? false : this.experimental.getValue(); 495 } 496 497 /** 498 * @param value A boolean value to indicate that this service definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage. 499 */ 500 public ServiceDefinition setExperimental(boolean value) { 501 if (this.experimental == null) 502 this.experimental = new BooleanType(); 503 this.experimental.setValue(value); 504 return this; 505 } 506 507 /** 508 * @return {@link #date} (The date (and optionally time) when the service definition was published. The date must change if and 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 service definition changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 509 */ 510 public DateTimeType getDateElement() { 511 if (this.date == null) 512 if (Configuration.errorOnAutoCreate()) 513 throw new Error("Attempt to auto-create ServiceDefinition.date"); 514 else if (Configuration.doAutoCreate()) 515 this.date = new DateTimeType(); // bb 516 return this.date; 517 } 518 519 public boolean hasDateElement() { 520 return this.date != null && !this.date.isEmpty(); 521 } 522 523 public boolean hasDate() { 524 return this.date != null && !this.date.isEmpty(); 525 } 526 527 /** 528 * @param value {@link #date} (The date (and optionally time) when the service definition was published. The date must change if and 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 service definition changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 529 */ 530 public ServiceDefinition setDateElement(DateTimeType value) { 531 this.date = value; 532 return this; 533 } 534 535 /** 536 * @return The date (and optionally time) when the service definition was published. The date must change if and 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 service definition changes. 537 */ 538 public Date getDate() { 539 return this.date == null ? null : this.date.getValue(); 540 } 541 542 /** 543 * @param value The date (and optionally time) when the service definition was published. The date must change if and 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 service definition changes. 544 */ 545 public ServiceDefinition setDate(Date value) { 546 if (value == null) 547 this.date = null; 548 else { 549 if (this.date == null) 550 this.date = new DateTimeType(); 551 this.date.setValue(value); 552 } 553 return this; 554 } 555 556 /** 557 * @return {@link #publisher} (The name of the individual or organization that published the service definition.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value 558 */ 559 public StringType getPublisherElement() { 560 if (this.publisher == null) 561 if (Configuration.errorOnAutoCreate()) 562 throw new Error("Attempt to auto-create ServiceDefinition.publisher"); 563 else if (Configuration.doAutoCreate()) 564 this.publisher = new StringType(); // bb 565 return this.publisher; 566 } 567 568 public boolean hasPublisherElement() { 569 return this.publisher != null && !this.publisher.isEmpty(); 570 } 571 572 public boolean hasPublisher() { 573 return this.publisher != null && !this.publisher.isEmpty(); 574 } 575 576 /** 577 * @param value {@link #publisher} (The name of the individual or organization that published the service definition.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value 578 */ 579 public ServiceDefinition setPublisherElement(StringType value) { 580 this.publisher = value; 581 return this; 582 } 583 584 /** 585 * @return The name of the individual or organization that published the service definition. 586 */ 587 public String getPublisher() { 588 return this.publisher == null ? null : this.publisher.getValue(); 589 } 590 591 /** 592 * @param value The name of the individual or organization that published the service definition. 593 */ 594 public ServiceDefinition setPublisher(String value) { 595 if (Utilities.noString(value)) 596 this.publisher = null; 597 else { 598 if (this.publisher == null) 599 this.publisher = new StringType(); 600 this.publisher.setValue(value); 601 } 602 return this; 603 } 604 605 /** 606 * @return {@link #description} (A free text natural language description of the service 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 607 */ 608 public MarkdownType getDescriptionElement() { 609 if (this.description == null) 610 if (Configuration.errorOnAutoCreate()) 611 throw new Error("Attempt to auto-create ServiceDefinition.description"); 612 else if (Configuration.doAutoCreate()) 613 this.description = new MarkdownType(); // bb 614 return this.description; 615 } 616 617 public boolean hasDescriptionElement() { 618 return this.description != null && !this.description.isEmpty(); 619 } 620 621 public boolean hasDescription() { 622 return this.description != null && !this.description.isEmpty(); 623 } 624 625 /** 626 * @param value {@link #description} (A free text natural language description of the service 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 627 */ 628 public ServiceDefinition setDescriptionElement(MarkdownType value) { 629 this.description = value; 630 return this; 631 } 632 633 /** 634 * @return A free text natural language description of the service definition from a consumer's perspective. 635 */ 636 public String getDescription() { 637 return this.description == null ? null : this.description.getValue(); 638 } 639 640 /** 641 * @param value A free text natural language description of the service definition from a consumer's perspective. 642 */ 643 public ServiceDefinition setDescription(String value) { 644 if (value == null) 645 this.description = null; 646 else { 647 if (this.description == null) 648 this.description = new MarkdownType(); 649 this.description.setValue(value); 650 } 651 return this; 652 } 653 654 /** 655 * @return {@link #purpose} (Explaination of why this service 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 656 */ 657 public MarkdownType getPurposeElement() { 658 if (this.purpose == null) 659 if (Configuration.errorOnAutoCreate()) 660 throw new Error("Attempt to auto-create ServiceDefinition.purpose"); 661 else if (Configuration.doAutoCreate()) 662 this.purpose = new MarkdownType(); // bb 663 return this.purpose; 664 } 665 666 public boolean hasPurposeElement() { 667 return this.purpose != null && !this.purpose.isEmpty(); 668 } 669 670 public boolean hasPurpose() { 671 return this.purpose != null && !this.purpose.isEmpty(); 672 } 673 674 /** 675 * @param value {@link #purpose} (Explaination of why this service 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 676 */ 677 public ServiceDefinition setPurposeElement(MarkdownType value) { 678 this.purpose = value; 679 return this; 680 } 681 682 /** 683 * @return Explaination of why this service definition is needed and why it has been designed as it has. 684 */ 685 public String getPurpose() { 686 return this.purpose == null ? null : this.purpose.getValue(); 687 } 688 689 /** 690 * @param value Explaination of why this service definition is needed and why it has been designed as it has. 691 */ 692 public ServiceDefinition setPurpose(String value) { 693 if (value == null) 694 this.purpose = null; 695 else { 696 if (this.purpose == null) 697 this.purpose = new MarkdownType(); 698 this.purpose.setValue(value); 699 } 700 return this; 701 } 702 703 /** 704 * @return {@link #usage} (A detailed description of how the module is used from a clinical perspective.). This is the underlying object with id, value and extensions. The accessor "getUsage" gives direct access to the value 705 */ 706 public StringType getUsageElement() { 707 if (this.usage == null) 708 if (Configuration.errorOnAutoCreate()) 709 throw new Error("Attempt to auto-create ServiceDefinition.usage"); 710 else if (Configuration.doAutoCreate()) 711 this.usage = new StringType(); // bb 712 return this.usage; 713 } 714 715 public boolean hasUsageElement() { 716 return this.usage != null && !this.usage.isEmpty(); 717 } 718 719 public boolean hasUsage() { 720 return this.usage != null && !this.usage.isEmpty(); 721 } 722 723 /** 724 * @param value {@link #usage} (A detailed description of how the module is used from a clinical perspective.). This is the underlying object with id, value and extensions. The accessor "getUsage" gives direct access to the value 725 */ 726 public ServiceDefinition setUsageElement(StringType value) { 727 this.usage = value; 728 return this; 729 } 730 731 /** 732 * @return A detailed description of how the module is used from a clinical perspective. 733 */ 734 public String getUsage() { 735 return this.usage == null ? null : this.usage.getValue(); 736 } 737 738 /** 739 * @param value A detailed description of how the module is used from a clinical perspective. 740 */ 741 public ServiceDefinition setUsage(String value) { 742 if (Utilities.noString(value)) 743 this.usage = null; 744 else { 745 if (this.usage == null) 746 this.usage = new StringType(); 747 this.usage.setValue(value); 748 } 749 return this; 750 } 751 752 /** 753 * @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 754 */ 755 public DateType getApprovalDateElement() { 756 if (this.approvalDate == null) 757 if (Configuration.errorOnAutoCreate()) 758 throw new Error("Attempt to auto-create ServiceDefinition.approvalDate"); 759 else if (Configuration.doAutoCreate()) 760 this.approvalDate = new DateType(); // bb 761 return this.approvalDate; 762 } 763 764 public boolean hasApprovalDateElement() { 765 return this.approvalDate != null && !this.approvalDate.isEmpty(); 766 } 767 768 public boolean hasApprovalDate() { 769 return this.approvalDate != null && !this.approvalDate.isEmpty(); 770 } 771 772 /** 773 * @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 774 */ 775 public ServiceDefinition setApprovalDateElement(DateType value) { 776 this.approvalDate = value; 777 return this; 778 } 779 780 /** 781 * @return The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage. 782 */ 783 public Date getApprovalDate() { 784 return this.approvalDate == null ? null : this.approvalDate.getValue(); 785 } 786 787 /** 788 * @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. 789 */ 790 public ServiceDefinition setApprovalDate(Date value) { 791 if (value == null) 792 this.approvalDate = null; 793 else { 794 if (this.approvalDate == null) 795 this.approvalDate = new DateType(); 796 this.approvalDate.setValue(value); 797 } 798 return this; 799 } 800 801 /** 802 * @return {@link #lastReviewDate} (The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date.). This is the underlying object with id, value and extensions. The accessor "getLastReviewDate" gives direct access to the value 803 */ 804 public DateType getLastReviewDateElement() { 805 if (this.lastReviewDate == null) 806 if (Configuration.errorOnAutoCreate()) 807 throw new Error("Attempt to auto-create ServiceDefinition.lastReviewDate"); 808 else if (Configuration.doAutoCreate()) 809 this.lastReviewDate = new DateType(); // bb 810 return this.lastReviewDate; 811 } 812 813 public boolean hasLastReviewDateElement() { 814 return this.lastReviewDate != null && !this.lastReviewDate.isEmpty(); 815 } 816 817 public boolean hasLastReviewDate() { 818 return this.lastReviewDate != null && !this.lastReviewDate.isEmpty(); 819 } 820 821 /** 822 * @param value {@link #lastReviewDate} (The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date.). This is the underlying object with id, value and extensions. The accessor "getLastReviewDate" gives direct access to the value 823 */ 824 public ServiceDefinition setLastReviewDateElement(DateType value) { 825 this.lastReviewDate = value; 826 return this; 827 } 828 829 /** 830 * @return The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date. 831 */ 832 public Date getLastReviewDate() { 833 return this.lastReviewDate == null ? null : this.lastReviewDate.getValue(); 834 } 835 836 /** 837 * @param value The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date. 838 */ 839 public ServiceDefinition setLastReviewDate(Date value) { 840 if (value == null) 841 this.lastReviewDate = null; 842 else { 843 if (this.lastReviewDate == null) 844 this.lastReviewDate = new DateType(); 845 this.lastReviewDate.setValue(value); 846 } 847 return this; 848 } 849 850 /** 851 * @return {@link #effectivePeriod} (The period during which the service definition content was or is planned to be in active use.) 852 */ 853 public Period getEffectivePeriod() { 854 if (this.effectivePeriod == null) 855 if (Configuration.errorOnAutoCreate()) 856 throw new Error("Attempt to auto-create ServiceDefinition.effectivePeriod"); 857 else if (Configuration.doAutoCreate()) 858 this.effectivePeriod = new Period(); // cc 859 return this.effectivePeriod; 860 } 861 862 public boolean hasEffectivePeriod() { 863 return this.effectivePeriod != null && !this.effectivePeriod.isEmpty(); 864 } 865 866 /** 867 * @param value {@link #effectivePeriod} (The period during which the service definition content was or is planned to be in active use.) 868 */ 869 public ServiceDefinition setEffectivePeriod(Period value) { 870 this.effectivePeriod = value; 871 return this; 872 } 873 874 /** 875 * @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate service definition instances.) 876 */ 877 public List<UsageContext> getUseContext() { 878 if (this.useContext == null) 879 this.useContext = new ArrayList<UsageContext>(); 880 return this.useContext; 881 } 882 883 /** 884 * @return Returns a reference to <code>this</code> for easy method chaining 885 */ 886 public ServiceDefinition setUseContext(List<UsageContext> theUseContext) { 887 this.useContext = theUseContext; 888 return this; 889 } 890 891 public boolean hasUseContext() { 892 if (this.useContext == null) 893 return false; 894 for (UsageContext item : this.useContext) 895 if (!item.isEmpty()) 896 return true; 897 return false; 898 } 899 900 public UsageContext addUseContext() { //3 901 UsageContext t = new UsageContext(); 902 if (this.useContext == null) 903 this.useContext = new ArrayList<UsageContext>(); 904 this.useContext.add(t); 905 return t; 906 } 907 908 public ServiceDefinition addUseContext(UsageContext t) { //3 909 if (t == null) 910 return this; 911 if (this.useContext == null) 912 this.useContext = new ArrayList<UsageContext>(); 913 this.useContext.add(t); 914 return this; 915 } 916 917 /** 918 * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist 919 */ 920 public UsageContext getUseContextFirstRep() { 921 if (getUseContext().isEmpty()) { 922 addUseContext(); 923 } 924 return getUseContext().get(0); 925 } 926 927 /** 928 * @return {@link #jurisdiction} (A legal or geographic region in which the service definition is intended to be used.) 929 */ 930 public List<CodeableConcept> getJurisdiction() { 931 if (this.jurisdiction == null) 932 this.jurisdiction = new ArrayList<CodeableConcept>(); 933 return this.jurisdiction; 934 } 935 936 /** 937 * @return Returns a reference to <code>this</code> for easy method chaining 938 */ 939 public ServiceDefinition setJurisdiction(List<CodeableConcept> theJurisdiction) { 940 this.jurisdiction = theJurisdiction; 941 return this; 942 } 943 944 public boolean hasJurisdiction() { 945 if (this.jurisdiction == null) 946 return false; 947 for (CodeableConcept item : this.jurisdiction) 948 if (!item.isEmpty()) 949 return true; 950 return false; 951 } 952 953 public CodeableConcept addJurisdiction() { //3 954 CodeableConcept t = new CodeableConcept(); 955 if (this.jurisdiction == null) 956 this.jurisdiction = new ArrayList<CodeableConcept>(); 957 this.jurisdiction.add(t); 958 return t; 959 } 960 961 public ServiceDefinition addJurisdiction(CodeableConcept t) { //3 962 if (t == null) 963 return this; 964 if (this.jurisdiction == null) 965 this.jurisdiction = new ArrayList<CodeableConcept>(); 966 this.jurisdiction.add(t); 967 return this; 968 } 969 970 /** 971 * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist 972 */ 973 public CodeableConcept getJurisdictionFirstRep() { 974 if (getJurisdiction().isEmpty()) { 975 addJurisdiction(); 976 } 977 return getJurisdiction().get(0); 978 } 979 980 /** 981 * @return {@link #topic} (Descriptive topics related to the module. Topics provide a high-level categorization of the module that can be useful for filtering and searching.) 982 */ 983 public List<CodeableConcept> getTopic() { 984 if (this.topic == null) 985 this.topic = new ArrayList<CodeableConcept>(); 986 return this.topic; 987 } 988 989 /** 990 * @return Returns a reference to <code>this</code> for easy method chaining 991 */ 992 public ServiceDefinition setTopic(List<CodeableConcept> theTopic) { 993 this.topic = theTopic; 994 return this; 995 } 996 997 public boolean hasTopic() { 998 if (this.topic == null) 999 return false; 1000 for (CodeableConcept item : this.topic) 1001 if (!item.isEmpty()) 1002 return true; 1003 return false; 1004 } 1005 1006 public CodeableConcept addTopic() { //3 1007 CodeableConcept t = new CodeableConcept(); 1008 if (this.topic == null) 1009 this.topic = new ArrayList<CodeableConcept>(); 1010 this.topic.add(t); 1011 return t; 1012 } 1013 1014 public ServiceDefinition addTopic(CodeableConcept t) { //3 1015 if (t == null) 1016 return this; 1017 if (this.topic == null) 1018 this.topic = new ArrayList<CodeableConcept>(); 1019 this.topic.add(t); 1020 return this; 1021 } 1022 1023 /** 1024 * @return The first repetition of repeating field {@link #topic}, creating it if it does not already exist 1025 */ 1026 public CodeableConcept getTopicFirstRep() { 1027 if (getTopic().isEmpty()) { 1028 addTopic(); 1029 } 1030 return getTopic().get(0); 1031 } 1032 1033 /** 1034 * @return {@link #contributor} (A contributor to the content of the module, including authors, editors, reviewers, and endorsers.) 1035 */ 1036 public List<Contributor> getContributor() { 1037 if (this.contributor == null) 1038 this.contributor = new ArrayList<Contributor>(); 1039 return this.contributor; 1040 } 1041 1042 /** 1043 * @return Returns a reference to <code>this</code> for easy method chaining 1044 */ 1045 public ServiceDefinition setContributor(List<Contributor> theContributor) { 1046 this.contributor = theContributor; 1047 return this; 1048 } 1049 1050 public boolean hasContributor() { 1051 if (this.contributor == null) 1052 return false; 1053 for (Contributor item : this.contributor) 1054 if (!item.isEmpty()) 1055 return true; 1056 return false; 1057 } 1058 1059 public Contributor addContributor() { //3 1060 Contributor t = new Contributor(); 1061 if (this.contributor == null) 1062 this.contributor = new ArrayList<Contributor>(); 1063 this.contributor.add(t); 1064 return t; 1065 } 1066 1067 public ServiceDefinition addContributor(Contributor t) { //3 1068 if (t == null) 1069 return this; 1070 if (this.contributor == null) 1071 this.contributor = new ArrayList<Contributor>(); 1072 this.contributor.add(t); 1073 return this; 1074 } 1075 1076 /** 1077 * @return The first repetition of repeating field {@link #contributor}, creating it if it does not already exist 1078 */ 1079 public Contributor getContributorFirstRep() { 1080 if (getContributor().isEmpty()) { 1081 addContributor(); 1082 } 1083 return getContributor().get(0); 1084 } 1085 1086 /** 1087 * @return {@link #contact} (Contact details to assist a user in finding and communicating with the publisher.) 1088 */ 1089 public List<ContactDetail> getContact() { 1090 if (this.contact == null) 1091 this.contact = new ArrayList<ContactDetail>(); 1092 return this.contact; 1093 } 1094 1095 /** 1096 * @return Returns a reference to <code>this</code> for easy method chaining 1097 */ 1098 public ServiceDefinition setContact(List<ContactDetail> theContact) { 1099 this.contact = theContact; 1100 return this; 1101 } 1102 1103 public boolean hasContact() { 1104 if (this.contact == null) 1105 return false; 1106 for (ContactDetail item : this.contact) 1107 if (!item.isEmpty()) 1108 return true; 1109 return false; 1110 } 1111 1112 public ContactDetail addContact() { //3 1113 ContactDetail t = new ContactDetail(); 1114 if (this.contact == null) 1115 this.contact = new ArrayList<ContactDetail>(); 1116 this.contact.add(t); 1117 return t; 1118 } 1119 1120 public ServiceDefinition addContact(ContactDetail t) { //3 1121 if (t == null) 1122 return this; 1123 if (this.contact == null) 1124 this.contact = new ArrayList<ContactDetail>(); 1125 this.contact.add(t); 1126 return this; 1127 } 1128 1129 /** 1130 * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist 1131 */ 1132 public ContactDetail getContactFirstRep() { 1133 if (getContact().isEmpty()) { 1134 addContact(); 1135 } 1136 return getContact().get(0); 1137 } 1138 1139 /** 1140 * @return {@link #copyright} (A copyright statement relating to the service definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the service definition.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value 1141 */ 1142 public MarkdownType getCopyrightElement() { 1143 if (this.copyright == null) 1144 if (Configuration.errorOnAutoCreate()) 1145 throw new Error("Attempt to auto-create ServiceDefinition.copyright"); 1146 else if (Configuration.doAutoCreate()) 1147 this.copyright = new MarkdownType(); // bb 1148 return this.copyright; 1149 } 1150 1151 public boolean hasCopyrightElement() { 1152 return this.copyright != null && !this.copyright.isEmpty(); 1153 } 1154 1155 public boolean hasCopyright() { 1156 return this.copyright != null && !this.copyright.isEmpty(); 1157 } 1158 1159 /** 1160 * @param value {@link #copyright} (A copyright statement relating to the service definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the service definition.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value 1161 */ 1162 public ServiceDefinition setCopyrightElement(MarkdownType value) { 1163 this.copyright = value; 1164 return this; 1165 } 1166 1167 /** 1168 * @return A copyright statement relating to the service definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the service definition. 1169 */ 1170 public String getCopyright() { 1171 return this.copyright == null ? null : this.copyright.getValue(); 1172 } 1173 1174 /** 1175 * @param value A copyright statement relating to the service definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the service definition. 1176 */ 1177 public ServiceDefinition setCopyright(String value) { 1178 if (value == null) 1179 this.copyright = null; 1180 else { 1181 if (this.copyright == null) 1182 this.copyright = new MarkdownType(); 1183 this.copyright.setValue(value); 1184 } 1185 return this; 1186 } 1187 1188 /** 1189 * @return {@link #relatedArtifact} (Related resources such as additional documentation, justification, or bibliographic references.) 1190 */ 1191 public List<RelatedArtifact> getRelatedArtifact() { 1192 if (this.relatedArtifact == null) 1193 this.relatedArtifact = new ArrayList<RelatedArtifact>(); 1194 return this.relatedArtifact; 1195 } 1196 1197 /** 1198 * @return Returns a reference to <code>this</code> for easy method chaining 1199 */ 1200 public ServiceDefinition setRelatedArtifact(List<RelatedArtifact> theRelatedArtifact) { 1201 this.relatedArtifact = theRelatedArtifact; 1202 return this; 1203 } 1204 1205 public boolean hasRelatedArtifact() { 1206 if (this.relatedArtifact == null) 1207 return false; 1208 for (RelatedArtifact item : this.relatedArtifact) 1209 if (!item.isEmpty()) 1210 return true; 1211 return false; 1212 } 1213 1214 public RelatedArtifact addRelatedArtifact() { //3 1215 RelatedArtifact t = new RelatedArtifact(); 1216 if (this.relatedArtifact == null) 1217 this.relatedArtifact = new ArrayList<RelatedArtifact>(); 1218 this.relatedArtifact.add(t); 1219 return t; 1220 } 1221 1222 public ServiceDefinition addRelatedArtifact(RelatedArtifact t) { //3 1223 if (t == null) 1224 return this; 1225 if (this.relatedArtifact == null) 1226 this.relatedArtifact = new ArrayList<RelatedArtifact>(); 1227 this.relatedArtifact.add(t); 1228 return this; 1229 } 1230 1231 /** 1232 * @return The first repetition of repeating field {@link #relatedArtifact}, creating it if it does not already exist 1233 */ 1234 public RelatedArtifact getRelatedArtifactFirstRep() { 1235 if (getRelatedArtifact().isEmpty()) { 1236 addRelatedArtifact(); 1237 } 1238 return getRelatedArtifact().get(0); 1239 } 1240 1241 /** 1242 * @return {@link #trigger} (The trigger element defines when the rule should be invoked. This information is used by consumers of the rule to determine how to integrate the rule into a specific workflow.) 1243 */ 1244 public List<TriggerDefinition> getTrigger() { 1245 if (this.trigger == null) 1246 this.trigger = new ArrayList<TriggerDefinition>(); 1247 return this.trigger; 1248 } 1249 1250 /** 1251 * @return Returns a reference to <code>this</code> for easy method chaining 1252 */ 1253 public ServiceDefinition setTrigger(List<TriggerDefinition> theTrigger) { 1254 this.trigger = theTrigger; 1255 return this; 1256 } 1257 1258 public boolean hasTrigger() { 1259 if (this.trigger == null) 1260 return false; 1261 for (TriggerDefinition item : this.trigger) 1262 if (!item.isEmpty()) 1263 return true; 1264 return false; 1265 } 1266 1267 public TriggerDefinition addTrigger() { //3 1268 TriggerDefinition t = new TriggerDefinition(); 1269 if (this.trigger == null) 1270 this.trigger = new ArrayList<TriggerDefinition>(); 1271 this.trigger.add(t); 1272 return t; 1273 } 1274 1275 public ServiceDefinition addTrigger(TriggerDefinition t) { //3 1276 if (t == null) 1277 return this; 1278 if (this.trigger == null) 1279 this.trigger = new ArrayList<TriggerDefinition>(); 1280 this.trigger.add(t); 1281 return this; 1282 } 1283 1284 /** 1285 * @return The first repetition of repeating field {@link #trigger}, creating it if it does not already exist 1286 */ 1287 public TriggerDefinition getTriggerFirstRep() { 1288 if (getTrigger().isEmpty()) { 1289 addTrigger(); 1290 } 1291 return getTrigger().get(0); 1292 } 1293 1294 /** 1295 * @return {@link #dataRequirement} (Data requirements are a machine processable description of the data required by the module in order to perform a successful evaluation.) 1296 */ 1297 public List<DataRequirement> getDataRequirement() { 1298 if (this.dataRequirement == null) 1299 this.dataRequirement = new ArrayList<DataRequirement>(); 1300 return this.dataRequirement; 1301 } 1302 1303 /** 1304 * @return Returns a reference to <code>this</code> for easy method chaining 1305 */ 1306 public ServiceDefinition setDataRequirement(List<DataRequirement> theDataRequirement) { 1307 this.dataRequirement = theDataRequirement; 1308 return this; 1309 } 1310 1311 public boolean hasDataRequirement() { 1312 if (this.dataRequirement == null) 1313 return false; 1314 for (DataRequirement item : this.dataRequirement) 1315 if (!item.isEmpty()) 1316 return true; 1317 return false; 1318 } 1319 1320 public DataRequirement addDataRequirement() { //3 1321 DataRequirement t = new DataRequirement(); 1322 if (this.dataRequirement == null) 1323 this.dataRequirement = new ArrayList<DataRequirement>(); 1324 this.dataRequirement.add(t); 1325 return t; 1326 } 1327 1328 public ServiceDefinition addDataRequirement(DataRequirement t) { //3 1329 if (t == null) 1330 return this; 1331 if (this.dataRequirement == null) 1332 this.dataRequirement = new ArrayList<DataRequirement>(); 1333 this.dataRequirement.add(t); 1334 return this; 1335 } 1336 1337 /** 1338 * @return The first repetition of repeating field {@link #dataRequirement}, creating it if it does not already exist 1339 */ 1340 public DataRequirement getDataRequirementFirstRep() { 1341 if (getDataRequirement().isEmpty()) { 1342 addDataRequirement(); 1343 } 1344 return getDataRequirement().get(0); 1345 } 1346 1347 /** 1348 * @return {@link #operationDefinition} (A reference to the operation that is used to invoke this service.) 1349 */ 1350 public Reference getOperationDefinition() { 1351 if (this.operationDefinition == null) 1352 if (Configuration.errorOnAutoCreate()) 1353 throw new Error("Attempt to auto-create ServiceDefinition.operationDefinition"); 1354 else if (Configuration.doAutoCreate()) 1355 this.operationDefinition = new Reference(); // cc 1356 return this.operationDefinition; 1357 } 1358 1359 public boolean hasOperationDefinition() { 1360 return this.operationDefinition != null && !this.operationDefinition.isEmpty(); 1361 } 1362 1363 /** 1364 * @param value {@link #operationDefinition} (A reference to the operation that is used to invoke this service.) 1365 */ 1366 public ServiceDefinition setOperationDefinition(Reference value) { 1367 this.operationDefinition = value; 1368 return this; 1369 } 1370 1371 /** 1372 * @return {@link #operationDefinition} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (A reference to the operation that is used to invoke this service.) 1373 */ 1374 public OperationDefinition getOperationDefinitionTarget() { 1375 if (this.operationDefinitionTarget == null) 1376 if (Configuration.errorOnAutoCreate()) 1377 throw new Error("Attempt to auto-create ServiceDefinition.operationDefinition"); 1378 else if (Configuration.doAutoCreate()) 1379 this.operationDefinitionTarget = new OperationDefinition(); // aa 1380 return this.operationDefinitionTarget; 1381 } 1382 1383 /** 1384 * @param value {@link #operationDefinition} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (A reference to the operation that is used to invoke this service.) 1385 */ 1386 public ServiceDefinition setOperationDefinitionTarget(OperationDefinition value) { 1387 this.operationDefinitionTarget = value; 1388 return this; 1389 } 1390 1391 protected void listChildren(List<Property> children) { 1392 super.listChildren(children); 1393 children.add(new Property("url", "uri", "An absolute URI that is used to identify this service definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this service definition is (or will be) published. The URL SHOULD include the major version of the service definition. For more information see [Technical and Business Versions](resource.html#versions).", 0, 1, url)); 1394 children.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this service definition when it is represented in other formats, or referenced in a specification, model, design or an instance. This is used for CMS or NQF identifiers for a measure artifact. Note that at least one identifier is required for non-experimental active artifacts.", 0, java.lang.Integer.MAX_VALUE, identifier)); 1395 children.add(new Property("version", "string", "The identifier that is used to identify this version of the service definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the service 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.", 0, 1, version)); 1396 children.add(new Property("name", "string", "A natural language name identifying the service definition. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name)); 1397 children.add(new Property("title", "string", "A short, descriptive, user-friendly title for the service definition.", 0, 1, title)); 1398 children.add(new Property("status", "code", "The status of this service definition. Enables tracking the life-cycle of the content.", 0, 1, status)); 1399 children.add(new Property("experimental", "boolean", "A boolean value to indicate that this service definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.", 0, 1, experimental)); 1400 children.add(new Property("date", "dateTime", "The date (and optionally time) when the service definition was published. The date must change if and 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 service definition changes.", 0, 1, date)); 1401 children.add(new Property("publisher", "string", "The name of the individual or organization that published the service definition.", 0, 1, publisher)); 1402 children.add(new Property("description", "markdown", "A free text natural language description of the service definition from a consumer's perspective.", 0, 1, description)); 1403 children.add(new Property("purpose", "markdown", "Explaination of why this service definition is needed and why it has been designed as it has.", 0, 1, purpose)); 1404 children.add(new Property("usage", "string", "A detailed description of how the module is used from a clinical perspective.", 0, 1, usage)); 1405 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)); 1406 children.add(new Property("lastReviewDate", "date", "The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date.", 0, 1, lastReviewDate)); 1407 children.add(new Property("effectivePeriod", "Period", "The period during which the service definition content was or is planned to be in active use.", 0, 1, effectivePeriod)); 1408 children.add(new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate service definition instances.", 0, java.lang.Integer.MAX_VALUE, useContext)); 1409 children.add(new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the service definition is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction)); 1410 children.add(new Property("topic", "CodeableConcept", "Descriptive topics related to the module. Topics provide a high-level categorization of the module that can be useful for filtering and searching.", 0, java.lang.Integer.MAX_VALUE, topic)); 1411 children.add(new Property("contributor", "Contributor", "A contributor to the content of the module, including authors, editors, reviewers, and endorsers.", 0, java.lang.Integer.MAX_VALUE, contributor)); 1412 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)); 1413 children.add(new Property("copyright", "markdown", "A copyright statement relating to the service definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the service definition.", 0, 1, copyright)); 1414 children.add(new Property("relatedArtifact", "RelatedArtifact", "Related resources such as additional documentation, justification, or bibliographic references.", 0, java.lang.Integer.MAX_VALUE, relatedArtifact)); 1415 children.add(new Property("trigger", "TriggerDefinition", "The trigger element defines when the rule should be invoked. This information is used by consumers of the rule to determine how to integrate the rule into a specific workflow.", 0, java.lang.Integer.MAX_VALUE, trigger)); 1416 children.add(new Property("dataRequirement", "DataRequirement", "Data requirements are a machine processable description of the data required by the module in order to perform a successful evaluation.", 0, java.lang.Integer.MAX_VALUE, dataRequirement)); 1417 children.add(new Property("operationDefinition", "Reference(OperationDefinition)", "A reference to the operation that is used to invoke this service.", 0, 1, operationDefinition)); 1418 } 1419 1420 @Override 1421 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1422 switch (_hash) { 1423 case 116079: /*url*/ return new Property("url", "uri", "An absolute URI that is used to identify this service definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this service definition is (or will be) published. The URL SHOULD include the major version of the service definition. For more information see [Technical and Business Versions](resource.html#versions).", 0, 1, url); 1424 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A formal identifier that is used to identify this service definition when it is represented in other formats, or referenced in a specification, model, design or an instance. This is used for CMS or NQF identifiers for a measure artifact. Note that at least one identifier is required for non-experimental active artifacts.", 0, java.lang.Integer.MAX_VALUE, identifier); 1425 case 351608024: /*version*/ return new Property("version", "string", "The identifier that is used to identify this version of the service definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the service 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.", 0, 1, version); 1426 case 3373707: /*name*/ return new Property("name", "string", "A natural language name identifying the service definition. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name); 1427 case 110371416: /*title*/ return new Property("title", "string", "A short, descriptive, user-friendly title for the service definition.", 0, 1, title); 1428 case -892481550: /*status*/ return new Property("status", "code", "The status of this service definition. Enables tracking the life-cycle of the content.", 0, 1, status); 1429 case -404562712: /*experimental*/ return new Property("experimental", "boolean", "A boolean value to indicate that this service definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.", 0, 1, experimental); 1430 case 3076014: /*date*/ return new Property("date", "dateTime", "The date (and optionally time) when the service definition was published. The date must change if and 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 service definition changes.", 0, 1, date); 1431 case 1447404028: /*publisher*/ return new Property("publisher", "string", "The name of the individual or organization that published the service definition.", 0, 1, publisher); 1432 case -1724546052: /*description*/ return new Property("description", "markdown", "A free text natural language description of the service definition from a consumer's perspective.", 0, 1, description); 1433 case -220463842: /*purpose*/ return new Property("purpose", "markdown", "Explaination of why this service definition is needed and why it has been designed as it has.", 0, 1, purpose); 1434 case 111574433: /*usage*/ return new Property("usage", "string", "A detailed description of how the module is used from a clinical perspective.", 0, 1, usage); 1435 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); 1436 case -1687512484: /*lastReviewDate*/ return new Property("lastReviewDate", "date", "The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date.", 0, 1, lastReviewDate); 1437 case -403934648: /*effectivePeriod*/ return new Property("effectivePeriod", "Period", "The period during which the service definition content was or is planned to be in active use.", 0, 1, effectivePeriod); 1438 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 terms may be used to assist with indexing and searching for appropriate service definition instances.", 0, java.lang.Integer.MAX_VALUE, useContext); 1439 case -507075711: /*jurisdiction*/ return new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the service definition is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction); 1440 case 110546223: /*topic*/ return new Property("topic", "CodeableConcept", "Descriptive topics related to the module. Topics provide a high-level categorization of the module that can be useful for filtering and searching.", 0, java.lang.Integer.MAX_VALUE, topic); 1441 case -1895276325: /*contributor*/ return new Property("contributor", "Contributor", "A contributor to the content of the module, including authors, editors, reviewers, and endorsers.", 0, java.lang.Integer.MAX_VALUE, contributor); 1442 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); 1443 case 1522889671: /*copyright*/ return new Property("copyright", "markdown", "A copyright statement relating to the service definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the service definition.", 0, 1, copyright); 1444 case 666807069: /*relatedArtifact*/ return new Property("relatedArtifact", "RelatedArtifact", "Related resources such as additional documentation, justification, or bibliographic references.", 0, java.lang.Integer.MAX_VALUE, relatedArtifact); 1445 case -1059891784: /*trigger*/ return new Property("trigger", "TriggerDefinition", "The trigger element defines when the rule should be invoked. This information is used by consumers of the rule to determine how to integrate the rule into a specific workflow.", 0, java.lang.Integer.MAX_VALUE, trigger); 1446 case 629147193: /*dataRequirement*/ return new Property("dataRequirement", "DataRequirement", "Data requirements are a machine processable description of the data required by the module in order to perform a successful evaluation.", 0, java.lang.Integer.MAX_VALUE, dataRequirement); 1447 case 900960794: /*operationDefinition*/ return new Property("operationDefinition", "Reference(OperationDefinition)", "A reference to the operation that is used to invoke this service.", 0, 1, operationDefinition); 1448 default: return super.getNamedProperty(_hash, _name, _checkValid); 1449 } 1450 1451 } 1452 1453 @Override 1454 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1455 switch (hash) { 1456 case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType 1457 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 1458 case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType 1459 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType 1460 case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType 1461 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<PublicationStatus> 1462 case -404562712: /*experimental*/ return this.experimental == null ? new Base[0] : new Base[] {this.experimental}; // BooleanType 1463 case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType 1464 case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // StringType 1465 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType 1466 case -220463842: /*purpose*/ return this.purpose == null ? new Base[0] : new Base[] {this.purpose}; // MarkdownType 1467 case 111574433: /*usage*/ return this.usage == null ? new Base[0] : new Base[] {this.usage}; // StringType 1468 case 223539345: /*approvalDate*/ return this.approvalDate == null ? new Base[0] : new Base[] {this.approvalDate}; // DateType 1469 case -1687512484: /*lastReviewDate*/ return this.lastReviewDate == null ? new Base[0] : new Base[] {this.lastReviewDate}; // DateType 1470 case -403934648: /*effectivePeriod*/ return this.effectivePeriod == null ? new Base[0] : new Base[] {this.effectivePeriod}; // Period 1471 case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext 1472 case -507075711: /*jurisdiction*/ return this.jurisdiction == null ? new Base[0] : this.jurisdiction.toArray(new Base[this.jurisdiction.size()]); // CodeableConcept 1473 case 110546223: /*topic*/ return this.topic == null ? new Base[0] : this.topic.toArray(new Base[this.topic.size()]); // CodeableConcept 1474 case -1895276325: /*contributor*/ return this.contributor == null ? new Base[0] : this.contributor.toArray(new Base[this.contributor.size()]); // Contributor 1475 case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail 1476 case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // MarkdownType 1477 case 666807069: /*relatedArtifact*/ return this.relatedArtifact == null ? new Base[0] : this.relatedArtifact.toArray(new Base[this.relatedArtifact.size()]); // RelatedArtifact 1478 case -1059891784: /*trigger*/ return this.trigger == null ? new Base[0] : this.trigger.toArray(new Base[this.trigger.size()]); // TriggerDefinition 1479 case 629147193: /*dataRequirement*/ return this.dataRequirement == null ? new Base[0] : this.dataRequirement.toArray(new Base[this.dataRequirement.size()]); // DataRequirement 1480 case 900960794: /*operationDefinition*/ return this.operationDefinition == null ? new Base[0] : new Base[] {this.operationDefinition}; // Reference 1481 default: return super.getProperty(hash, name, checkValid); 1482 } 1483 1484 } 1485 1486 @Override 1487 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1488 switch (hash) { 1489 case 116079: // url 1490 this.url = castToUri(value); // UriType 1491 return value; 1492 case -1618432855: // identifier 1493 this.getIdentifier().add(castToIdentifier(value)); // Identifier 1494 return value; 1495 case 351608024: // version 1496 this.version = castToString(value); // StringType 1497 return value; 1498 case 3373707: // name 1499 this.name = castToString(value); // StringType 1500 return value; 1501 case 110371416: // title 1502 this.title = castToString(value); // StringType 1503 return value; 1504 case -892481550: // status 1505 value = new PublicationStatusEnumFactory().fromType(castToCode(value)); 1506 this.status = (Enumeration) value; // Enumeration<PublicationStatus> 1507 return value; 1508 case -404562712: // experimental 1509 this.experimental = castToBoolean(value); // BooleanType 1510 return value; 1511 case 3076014: // date 1512 this.date = castToDateTime(value); // DateTimeType 1513 return value; 1514 case 1447404028: // publisher 1515 this.publisher = castToString(value); // StringType 1516 return value; 1517 case -1724546052: // description 1518 this.description = castToMarkdown(value); // MarkdownType 1519 return value; 1520 case -220463842: // purpose 1521 this.purpose = castToMarkdown(value); // MarkdownType 1522 return value; 1523 case 111574433: // usage 1524 this.usage = castToString(value); // StringType 1525 return value; 1526 case 223539345: // approvalDate 1527 this.approvalDate = castToDate(value); // DateType 1528 return value; 1529 case -1687512484: // lastReviewDate 1530 this.lastReviewDate = castToDate(value); // DateType 1531 return value; 1532 case -403934648: // effectivePeriod 1533 this.effectivePeriod = castToPeriod(value); // Period 1534 return value; 1535 case -669707736: // useContext 1536 this.getUseContext().add(castToUsageContext(value)); // UsageContext 1537 return value; 1538 case -507075711: // jurisdiction 1539 this.getJurisdiction().add(castToCodeableConcept(value)); // CodeableConcept 1540 return value; 1541 case 110546223: // topic 1542 this.getTopic().add(castToCodeableConcept(value)); // CodeableConcept 1543 return value; 1544 case -1895276325: // contributor 1545 this.getContributor().add(castToContributor(value)); // Contributor 1546 return value; 1547 case 951526432: // contact 1548 this.getContact().add(castToContactDetail(value)); // ContactDetail 1549 return value; 1550 case 1522889671: // copyright 1551 this.copyright = castToMarkdown(value); // MarkdownType 1552 return value; 1553 case 666807069: // relatedArtifact 1554 this.getRelatedArtifact().add(castToRelatedArtifact(value)); // RelatedArtifact 1555 return value; 1556 case -1059891784: // trigger 1557 this.getTrigger().add(castToTriggerDefinition(value)); // TriggerDefinition 1558 return value; 1559 case 629147193: // dataRequirement 1560 this.getDataRequirement().add(castToDataRequirement(value)); // DataRequirement 1561 return value; 1562 case 900960794: // operationDefinition 1563 this.operationDefinition = castToReference(value); // Reference 1564 return value; 1565 default: return super.setProperty(hash, name, value); 1566 } 1567 1568 } 1569 1570 @Override 1571 public Base setProperty(String name, Base value) throws FHIRException { 1572 if (name.equals("url")) { 1573 this.url = castToUri(value); // UriType 1574 } else if (name.equals("identifier")) { 1575 this.getIdentifier().add(castToIdentifier(value)); 1576 } else if (name.equals("version")) { 1577 this.version = castToString(value); // StringType 1578 } else if (name.equals("name")) { 1579 this.name = castToString(value); // StringType 1580 } else if (name.equals("title")) { 1581 this.title = castToString(value); // StringType 1582 } else if (name.equals("status")) { 1583 value = new PublicationStatusEnumFactory().fromType(castToCode(value)); 1584 this.status = (Enumeration) value; // Enumeration<PublicationStatus> 1585 } else if (name.equals("experimental")) { 1586 this.experimental = castToBoolean(value); // BooleanType 1587 } else if (name.equals("date")) { 1588 this.date = castToDateTime(value); // DateTimeType 1589 } else if (name.equals("publisher")) { 1590 this.publisher = castToString(value); // StringType 1591 } else if (name.equals("description")) { 1592 this.description = castToMarkdown(value); // MarkdownType 1593 } else if (name.equals("purpose")) { 1594 this.purpose = castToMarkdown(value); // MarkdownType 1595 } else if (name.equals("usage")) { 1596 this.usage = castToString(value); // StringType 1597 } else if (name.equals("approvalDate")) { 1598 this.approvalDate = castToDate(value); // DateType 1599 } else if (name.equals("lastReviewDate")) { 1600 this.lastReviewDate = castToDate(value); // DateType 1601 } else if (name.equals("effectivePeriod")) { 1602 this.effectivePeriod = castToPeriod(value); // Period 1603 } else if (name.equals("useContext")) { 1604 this.getUseContext().add(castToUsageContext(value)); 1605 } else if (name.equals("jurisdiction")) { 1606 this.getJurisdiction().add(castToCodeableConcept(value)); 1607 } else if (name.equals("topic")) { 1608 this.getTopic().add(castToCodeableConcept(value)); 1609 } else if (name.equals("contributor")) { 1610 this.getContributor().add(castToContributor(value)); 1611 } else if (name.equals("contact")) { 1612 this.getContact().add(castToContactDetail(value)); 1613 } else if (name.equals("copyright")) { 1614 this.copyright = castToMarkdown(value); // MarkdownType 1615 } else if (name.equals("relatedArtifact")) { 1616 this.getRelatedArtifact().add(castToRelatedArtifact(value)); 1617 } else if (name.equals("trigger")) { 1618 this.getTrigger().add(castToTriggerDefinition(value)); 1619 } else if (name.equals("dataRequirement")) { 1620 this.getDataRequirement().add(castToDataRequirement(value)); 1621 } else if (name.equals("operationDefinition")) { 1622 this.operationDefinition = castToReference(value); // Reference 1623 } else 1624 return super.setProperty(name, value); 1625 return value; 1626 } 1627 1628 @Override 1629 public Base makeProperty(int hash, String name) throws FHIRException { 1630 switch (hash) { 1631 case 116079: return getUrlElement(); 1632 case -1618432855: return addIdentifier(); 1633 case 351608024: return getVersionElement(); 1634 case 3373707: return getNameElement(); 1635 case 110371416: return getTitleElement(); 1636 case -892481550: return getStatusElement(); 1637 case -404562712: return getExperimentalElement(); 1638 case 3076014: return getDateElement(); 1639 case 1447404028: return getPublisherElement(); 1640 case -1724546052: return getDescriptionElement(); 1641 case -220463842: return getPurposeElement(); 1642 case 111574433: return getUsageElement(); 1643 case 223539345: return getApprovalDateElement(); 1644 case -1687512484: return getLastReviewDateElement(); 1645 case -403934648: return getEffectivePeriod(); 1646 case -669707736: return addUseContext(); 1647 case -507075711: return addJurisdiction(); 1648 case 110546223: return addTopic(); 1649 case -1895276325: return addContributor(); 1650 case 951526432: return addContact(); 1651 case 1522889671: return getCopyrightElement(); 1652 case 666807069: return addRelatedArtifact(); 1653 case -1059891784: return addTrigger(); 1654 case 629147193: return addDataRequirement(); 1655 case 900960794: return getOperationDefinition(); 1656 default: return super.makeProperty(hash, name); 1657 } 1658 1659 } 1660 1661 @Override 1662 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1663 switch (hash) { 1664 case 116079: /*url*/ return new String[] {"uri"}; 1665 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 1666 case 351608024: /*version*/ return new String[] {"string"}; 1667 case 3373707: /*name*/ return new String[] {"string"}; 1668 case 110371416: /*title*/ return new String[] {"string"}; 1669 case -892481550: /*status*/ return new String[] {"code"}; 1670 case -404562712: /*experimental*/ return new String[] {"boolean"}; 1671 case 3076014: /*date*/ return new String[] {"dateTime"}; 1672 case 1447404028: /*publisher*/ return new String[] {"string"}; 1673 case -1724546052: /*description*/ return new String[] {"markdown"}; 1674 case -220463842: /*purpose*/ return new String[] {"markdown"}; 1675 case 111574433: /*usage*/ return new String[] {"string"}; 1676 case 223539345: /*approvalDate*/ return new String[] {"date"}; 1677 case -1687512484: /*lastReviewDate*/ return new String[] {"date"}; 1678 case -403934648: /*effectivePeriod*/ return new String[] {"Period"}; 1679 case -669707736: /*useContext*/ return new String[] {"UsageContext"}; 1680 case -507075711: /*jurisdiction*/ return new String[] {"CodeableConcept"}; 1681 case 110546223: /*topic*/ return new String[] {"CodeableConcept"}; 1682 case -1895276325: /*contributor*/ return new String[] {"Contributor"}; 1683 case 951526432: /*contact*/ return new String[] {"ContactDetail"}; 1684 case 1522889671: /*copyright*/ return new String[] {"markdown"}; 1685 case 666807069: /*relatedArtifact*/ return new String[] {"RelatedArtifact"}; 1686 case -1059891784: /*trigger*/ return new String[] {"TriggerDefinition"}; 1687 case 629147193: /*dataRequirement*/ return new String[] {"DataRequirement"}; 1688 case 900960794: /*operationDefinition*/ return new String[] {"Reference"}; 1689 default: return super.getTypesForProperty(hash, name); 1690 } 1691 1692 } 1693 1694 @Override 1695 public Base addChild(String name) throws FHIRException { 1696 if (name.equals("url")) { 1697 throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.url"); 1698 } 1699 else if (name.equals("identifier")) { 1700 return addIdentifier(); 1701 } 1702 else if (name.equals("version")) { 1703 throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.version"); 1704 } 1705 else if (name.equals("name")) { 1706 throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.name"); 1707 } 1708 else if (name.equals("title")) { 1709 throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.title"); 1710 } 1711 else if (name.equals("status")) { 1712 throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.status"); 1713 } 1714 else if (name.equals("experimental")) { 1715 throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.experimental"); 1716 } 1717 else if (name.equals("date")) { 1718 throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.date"); 1719 } 1720 else if (name.equals("publisher")) { 1721 throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.publisher"); 1722 } 1723 else if (name.equals("description")) { 1724 throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.description"); 1725 } 1726 else if (name.equals("purpose")) { 1727 throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.purpose"); 1728 } 1729 else if (name.equals("usage")) { 1730 throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.usage"); 1731 } 1732 else if (name.equals("approvalDate")) { 1733 throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.approvalDate"); 1734 } 1735 else if (name.equals("lastReviewDate")) { 1736 throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.lastReviewDate"); 1737 } 1738 else if (name.equals("effectivePeriod")) { 1739 this.effectivePeriod = new Period(); 1740 return this.effectivePeriod; 1741 } 1742 else if (name.equals("useContext")) { 1743 return addUseContext(); 1744 } 1745 else if (name.equals("jurisdiction")) { 1746 return addJurisdiction(); 1747 } 1748 else if (name.equals("topic")) { 1749 return addTopic(); 1750 } 1751 else if (name.equals("contributor")) { 1752 return addContributor(); 1753 } 1754 else if (name.equals("contact")) { 1755 return addContact(); 1756 } 1757 else if (name.equals("copyright")) { 1758 throw new FHIRException("Cannot call addChild on a primitive type ServiceDefinition.copyright"); 1759 } 1760 else if (name.equals("relatedArtifact")) { 1761 return addRelatedArtifact(); 1762 } 1763 else if (name.equals("trigger")) { 1764 return addTrigger(); 1765 } 1766 else if (name.equals("dataRequirement")) { 1767 return addDataRequirement(); 1768 } 1769 else if (name.equals("operationDefinition")) { 1770 this.operationDefinition = new Reference(); 1771 return this.operationDefinition; 1772 } 1773 else 1774 return super.addChild(name); 1775 } 1776 1777 public String fhirType() { 1778 return "ServiceDefinition"; 1779 1780 } 1781 1782 public ServiceDefinition copy() { 1783 ServiceDefinition dst = new ServiceDefinition(); 1784 copyValues(dst); 1785 dst.url = url == null ? null : url.copy(); 1786 if (identifier != null) { 1787 dst.identifier = new ArrayList<Identifier>(); 1788 for (Identifier i : identifier) 1789 dst.identifier.add(i.copy()); 1790 }; 1791 dst.version = version == null ? null : version.copy(); 1792 dst.name = name == null ? null : name.copy(); 1793 dst.title = title == null ? null : title.copy(); 1794 dst.status = status == null ? null : status.copy(); 1795 dst.experimental = experimental == null ? null : experimental.copy(); 1796 dst.date = date == null ? null : date.copy(); 1797 dst.publisher = publisher == null ? null : publisher.copy(); 1798 dst.description = description == null ? null : description.copy(); 1799 dst.purpose = purpose == null ? null : purpose.copy(); 1800 dst.usage = usage == null ? null : usage.copy(); 1801 dst.approvalDate = approvalDate == null ? null : approvalDate.copy(); 1802 dst.lastReviewDate = lastReviewDate == null ? null : lastReviewDate.copy(); 1803 dst.effectivePeriod = effectivePeriod == null ? null : effectivePeriod.copy(); 1804 if (useContext != null) { 1805 dst.useContext = new ArrayList<UsageContext>(); 1806 for (UsageContext i : useContext) 1807 dst.useContext.add(i.copy()); 1808 }; 1809 if (jurisdiction != null) { 1810 dst.jurisdiction = new ArrayList<CodeableConcept>(); 1811 for (CodeableConcept i : jurisdiction) 1812 dst.jurisdiction.add(i.copy()); 1813 }; 1814 if (topic != null) { 1815 dst.topic = new ArrayList<CodeableConcept>(); 1816 for (CodeableConcept i : topic) 1817 dst.topic.add(i.copy()); 1818 }; 1819 if (contributor != null) { 1820 dst.contributor = new ArrayList<Contributor>(); 1821 for (Contributor i : contributor) 1822 dst.contributor.add(i.copy()); 1823 }; 1824 if (contact != null) { 1825 dst.contact = new ArrayList<ContactDetail>(); 1826 for (ContactDetail i : contact) 1827 dst.contact.add(i.copy()); 1828 }; 1829 dst.copyright = copyright == null ? null : copyright.copy(); 1830 if (relatedArtifact != null) { 1831 dst.relatedArtifact = new ArrayList<RelatedArtifact>(); 1832 for (RelatedArtifact i : relatedArtifact) 1833 dst.relatedArtifact.add(i.copy()); 1834 }; 1835 if (trigger != null) { 1836 dst.trigger = new ArrayList<TriggerDefinition>(); 1837 for (TriggerDefinition i : trigger) 1838 dst.trigger.add(i.copy()); 1839 }; 1840 if (dataRequirement != null) { 1841 dst.dataRequirement = new ArrayList<DataRequirement>(); 1842 for (DataRequirement i : dataRequirement) 1843 dst.dataRequirement.add(i.copy()); 1844 }; 1845 dst.operationDefinition = operationDefinition == null ? null : operationDefinition.copy(); 1846 return dst; 1847 } 1848 1849 protected ServiceDefinition typedCopy() { 1850 return copy(); 1851 } 1852 1853 @Override 1854 public boolean equalsDeep(Base other_) { 1855 if (!super.equalsDeep(other_)) 1856 return false; 1857 if (!(other_ instanceof ServiceDefinition)) 1858 return false; 1859 ServiceDefinition o = (ServiceDefinition) other_; 1860 return compareDeep(identifier, o.identifier, true) && compareDeep(purpose, o.purpose, true) && compareDeep(usage, o.usage, true) 1861 && compareDeep(approvalDate, o.approvalDate, true) && compareDeep(lastReviewDate, o.lastReviewDate, true) 1862 && compareDeep(effectivePeriod, o.effectivePeriod, true) && compareDeep(topic, o.topic, true) && compareDeep(contributor, o.contributor, true) 1863 && compareDeep(copyright, o.copyright, true) && compareDeep(relatedArtifact, o.relatedArtifact, true) 1864 && compareDeep(trigger, o.trigger, true) && compareDeep(dataRequirement, o.dataRequirement, true) 1865 && compareDeep(operationDefinition, o.operationDefinition, true); 1866 } 1867 1868 @Override 1869 public boolean equalsShallow(Base other_) { 1870 if (!super.equalsShallow(other_)) 1871 return false; 1872 if (!(other_ instanceof ServiceDefinition)) 1873 return false; 1874 ServiceDefinition o = (ServiceDefinition) other_; 1875 return compareValues(purpose, o.purpose, true) && compareValues(usage, o.usage, true) && compareValues(approvalDate, o.approvalDate, true) 1876 && compareValues(lastReviewDate, o.lastReviewDate, true) && compareValues(copyright, o.copyright, true) 1877 ; 1878 } 1879 1880 public boolean isEmpty() { 1881 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, purpose, usage 1882 , approvalDate, lastReviewDate, effectivePeriod, topic, contributor, copyright, relatedArtifact 1883 , trigger, dataRequirement, operationDefinition); 1884 } 1885 1886 @Override 1887 public ResourceType getResourceType() { 1888 return ResourceType.ServiceDefinition; 1889 } 1890 1891 /** 1892 * Search parameter: <b>date</b> 1893 * <p> 1894 * Description: <b>The service definition publication date</b><br> 1895 * Type: <b>date</b><br> 1896 * Path: <b>ServiceDefinition.date</b><br> 1897 * </p> 1898 */ 1899 @SearchParamDefinition(name="date", path="ServiceDefinition.date", description="The service definition publication date", type="date" ) 1900 public static final String SP_DATE = "date"; 1901 /** 1902 * <b>Fluent Client</b> search parameter constant for <b>date</b> 1903 * <p> 1904 * Description: <b>The service definition publication date</b><br> 1905 * Type: <b>date</b><br> 1906 * Path: <b>ServiceDefinition.date</b><br> 1907 * </p> 1908 */ 1909 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 1910 1911 /** 1912 * Search parameter: <b>identifier</b> 1913 * <p> 1914 * Description: <b>External identifier for the service definition</b><br> 1915 * Type: <b>token</b><br> 1916 * Path: <b>ServiceDefinition.identifier</b><br> 1917 * </p> 1918 */ 1919 @SearchParamDefinition(name="identifier", path="ServiceDefinition.identifier", description="External identifier for the service definition", type="token" ) 1920 public static final String SP_IDENTIFIER = "identifier"; 1921 /** 1922 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 1923 * <p> 1924 * Description: <b>External identifier for the service definition</b><br> 1925 * Type: <b>token</b><br> 1926 * Path: <b>ServiceDefinition.identifier</b><br> 1927 * </p> 1928 */ 1929 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 1930 1931 /** 1932 * Search parameter: <b>successor</b> 1933 * <p> 1934 * Description: <b>What resource is being referenced</b><br> 1935 * Type: <b>reference</b><br> 1936 * Path: <b>ServiceDefinition.relatedArtifact.resource</b><br> 1937 * </p> 1938 */ 1939 @SearchParamDefinition(name="successor", path="ServiceDefinition.relatedArtifact.where(type='successor').resource", description="What resource is being referenced", type="reference" ) 1940 public static final String SP_SUCCESSOR = "successor"; 1941 /** 1942 * <b>Fluent Client</b> search parameter constant for <b>successor</b> 1943 * <p> 1944 * Description: <b>What resource is being referenced</b><br> 1945 * Type: <b>reference</b><br> 1946 * Path: <b>ServiceDefinition.relatedArtifact.resource</b><br> 1947 * </p> 1948 */ 1949 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUCCESSOR = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUCCESSOR); 1950 1951/** 1952 * Constant for fluent queries to be used to add include statements. Specifies 1953 * the path value of "<b>ServiceDefinition:successor</b>". 1954 */ 1955 public static final ca.uhn.fhir.model.api.Include INCLUDE_SUCCESSOR = new ca.uhn.fhir.model.api.Include("ServiceDefinition:successor").toLocked(); 1956 1957 /** 1958 * Search parameter: <b>jurisdiction</b> 1959 * <p> 1960 * Description: <b>Intended jurisdiction for the service definition</b><br> 1961 * Type: <b>token</b><br> 1962 * Path: <b>ServiceDefinition.jurisdiction</b><br> 1963 * </p> 1964 */ 1965 @SearchParamDefinition(name="jurisdiction", path="ServiceDefinition.jurisdiction", description="Intended jurisdiction for the service definition", type="token" ) 1966 public static final String SP_JURISDICTION = "jurisdiction"; 1967 /** 1968 * <b>Fluent Client</b> search parameter constant for <b>jurisdiction</b> 1969 * <p> 1970 * Description: <b>Intended jurisdiction for the service definition</b><br> 1971 * Type: <b>token</b><br> 1972 * Path: <b>ServiceDefinition.jurisdiction</b><br> 1973 * </p> 1974 */ 1975 public static final ca.uhn.fhir.rest.gclient.TokenClientParam JURISDICTION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_JURISDICTION); 1976 1977 /** 1978 * Search parameter: <b>description</b> 1979 * <p> 1980 * Description: <b>The description of the service definition</b><br> 1981 * Type: <b>string</b><br> 1982 * Path: <b>ServiceDefinition.description</b><br> 1983 * </p> 1984 */ 1985 @SearchParamDefinition(name="description", path="ServiceDefinition.description", description="The description of the service definition", type="string" ) 1986 public static final String SP_DESCRIPTION = "description"; 1987 /** 1988 * <b>Fluent Client</b> search parameter constant for <b>description</b> 1989 * <p> 1990 * Description: <b>The description of the service definition</b><br> 1991 * Type: <b>string</b><br> 1992 * Path: <b>ServiceDefinition.description</b><br> 1993 * </p> 1994 */ 1995 public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION); 1996 1997 /** 1998 * Search parameter: <b>derived-from</b> 1999 * <p> 2000 * Description: <b>What resource is being referenced</b><br> 2001 * Type: <b>reference</b><br> 2002 * Path: <b>ServiceDefinition.relatedArtifact.resource</b><br> 2003 * </p> 2004 */ 2005 @SearchParamDefinition(name="derived-from", path="ServiceDefinition.relatedArtifact.where(type='derived-from').resource", description="What resource is being referenced", type="reference" ) 2006 public static final String SP_DERIVED_FROM = "derived-from"; 2007 /** 2008 * <b>Fluent Client</b> search parameter constant for <b>derived-from</b> 2009 * <p> 2010 * Description: <b>What resource is being referenced</b><br> 2011 * Type: <b>reference</b><br> 2012 * Path: <b>ServiceDefinition.relatedArtifact.resource</b><br> 2013 * </p> 2014 */ 2015 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DERIVED_FROM = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_DERIVED_FROM); 2016 2017/** 2018 * Constant for fluent queries to be used to add include statements. Specifies 2019 * the path value of "<b>ServiceDefinition:derived-from</b>". 2020 */ 2021 public static final ca.uhn.fhir.model.api.Include INCLUDE_DERIVED_FROM = new ca.uhn.fhir.model.api.Include("ServiceDefinition:derived-from").toLocked(); 2022 2023 /** 2024 * Search parameter: <b>predecessor</b> 2025 * <p> 2026 * Description: <b>What resource is being referenced</b><br> 2027 * Type: <b>reference</b><br> 2028 * Path: <b>ServiceDefinition.relatedArtifact.resource</b><br> 2029 * </p> 2030 */ 2031 @SearchParamDefinition(name="predecessor", path="ServiceDefinition.relatedArtifact.where(type='predecessor').resource", description="What resource is being referenced", type="reference" ) 2032 public static final String SP_PREDECESSOR = "predecessor"; 2033 /** 2034 * <b>Fluent Client</b> search parameter constant for <b>predecessor</b> 2035 * <p> 2036 * Description: <b>What resource is being referenced</b><br> 2037 * Type: <b>reference</b><br> 2038 * Path: <b>ServiceDefinition.relatedArtifact.resource</b><br> 2039 * </p> 2040 */ 2041 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PREDECESSOR = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PREDECESSOR); 2042 2043/** 2044 * Constant for fluent queries to be used to add include statements. Specifies 2045 * the path value of "<b>ServiceDefinition:predecessor</b>". 2046 */ 2047 public static final ca.uhn.fhir.model.api.Include INCLUDE_PREDECESSOR = new ca.uhn.fhir.model.api.Include("ServiceDefinition:predecessor").toLocked(); 2048 2049 /** 2050 * Search parameter: <b>title</b> 2051 * <p> 2052 * Description: <b>The human-friendly name of the service definition</b><br> 2053 * Type: <b>string</b><br> 2054 * Path: <b>ServiceDefinition.title</b><br> 2055 * </p> 2056 */ 2057 @SearchParamDefinition(name="title", path="ServiceDefinition.title", description="The human-friendly name of the service definition", type="string" ) 2058 public static final String SP_TITLE = "title"; 2059 /** 2060 * <b>Fluent Client</b> search parameter constant for <b>title</b> 2061 * <p> 2062 * Description: <b>The human-friendly name of the service definition</b><br> 2063 * Type: <b>string</b><br> 2064 * Path: <b>ServiceDefinition.title</b><br> 2065 * </p> 2066 */ 2067 public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE); 2068 2069 /** 2070 * Search parameter: <b>composed-of</b> 2071 * <p> 2072 * Description: <b>What resource is being referenced</b><br> 2073 * Type: <b>reference</b><br> 2074 * Path: <b>ServiceDefinition.relatedArtifact.resource</b><br> 2075 * </p> 2076 */ 2077 @SearchParamDefinition(name="composed-of", path="ServiceDefinition.relatedArtifact.where(type='composed-of').resource", description="What resource is being referenced", type="reference" ) 2078 public static final String SP_COMPOSED_OF = "composed-of"; 2079 /** 2080 * <b>Fluent Client</b> search parameter constant for <b>composed-of</b> 2081 * <p> 2082 * Description: <b>What resource is being referenced</b><br> 2083 * Type: <b>reference</b><br> 2084 * Path: <b>ServiceDefinition.relatedArtifact.resource</b><br> 2085 * </p> 2086 */ 2087 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam COMPOSED_OF = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_COMPOSED_OF); 2088 2089/** 2090 * Constant for fluent queries to be used to add include statements. Specifies 2091 * the path value of "<b>ServiceDefinition:composed-of</b>". 2092 */ 2093 public static final ca.uhn.fhir.model.api.Include INCLUDE_COMPOSED_OF = new ca.uhn.fhir.model.api.Include("ServiceDefinition:composed-of").toLocked(); 2094 2095 /** 2096 * Search parameter: <b>version</b> 2097 * <p> 2098 * Description: <b>The business version of the service definition</b><br> 2099 * Type: <b>token</b><br> 2100 * Path: <b>ServiceDefinition.version</b><br> 2101 * </p> 2102 */ 2103 @SearchParamDefinition(name="version", path="ServiceDefinition.version", description="The business version of the service definition", type="token" ) 2104 public static final String SP_VERSION = "version"; 2105 /** 2106 * <b>Fluent Client</b> search parameter constant for <b>version</b> 2107 * <p> 2108 * Description: <b>The business version of the service definition</b><br> 2109 * Type: <b>token</b><br> 2110 * Path: <b>ServiceDefinition.version</b><br> 2111 * </p> 2112 */ 2113 public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); 2114 2115 /** 2116 * Search parameter: <b>url</b> 2117 * <p> 2118 * Description: <b>The uri that identifies the service definition</b><br> 2119 * Type: <b>uri</b><br> 2120 * Path: <b>ServiceDefinition.url</b><br> 2121 * </p> 2122 */ 2123 @SearchParamDefinition(name="url", path="ServiceDefinition.url", description="The uri that identifies the service definition", type="uri" ) 2124 public static final String SP_URL = "url"; 2125 /** 2126 * <b>Fluent Client</b> search parameter constant for <b>url</b> 2127 * <p> 2128 * Description: <b>The uri that identifies the service definition</b><br> 2129 * Type: <b>uri</b><br> 2130 * Path: <b>ServiceDefinition.url</b><br> 2131 * </p> 2132 */ 2133 public static final ca.uhn.fhir.rest.gclient.UriClientParam URL = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_URL); 2134 2135 /** 2136 * Search parameter: <b>effective</b> 2137 * <p> 2138 * Description: <b>The time during which the service definition is intended to be in use</b><br> 2139 * Type: <b>date</b><br> 2140 * Path: <b>ServiceDefinition.effectivePeriod</b><br> 2141 * </p> 2142 */ 2143 @SearchParamDefinition(name="effective", path="ServiceDefinition.effectivePeriod", description="The time during which the service definition is intended to be in use", type="date" ) 2144 public static final String SP_EFFECTIVE = "effective"; 2145 /** 2146 * <b>Fluent Client</b> search parameter constant for <b>effective</b> 2147 * <p> 2148 * Description: <b>The time during which the service definition is intended to be in use</b><br> 2149 * Type: <b>date</b><br> 2150 * Path: <b>ServiceDefinition.effectivePeriod</b><br> 2151 * </p> 2152 */ 2153 public static final ca.uhn.fhir.rest.gclient.DateClientParam EFFECTIVE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_EFFECTIVE); 2154 2155 /** 2156 * Search parameter: <b>depends-on</b> 2157 * <p> 2158 * Description: <b>What resource is being referenced</b><br> 2159 * Type: <b>reference</b><br> 2160 * Path: <b>ServiceDefinition.relatedArtifact.resource</b><br> 2161 * </p> 2162 */ 2163 @SearchParamDefinition(name="depends-on", path="ServiceDefinition.relatedArtifact.where(type='depends-on').resource", description="What resource is being referenced", type="reference" ) 2164 public static final String SP_DEPENDS_ON = "depends-on"; 2165 /** 2166 * <b>Fluent Client</b> search parameter constant for <b>depends-on</b> 2167 * <p> 2168 * Description: <b>What resource is being referenced</b><br> 2169 * Type: <b>reference</b><br> 2170 * Path: <b>ServiceDefinition.relatedArtifact.resource</b><br> 2171 * </p> 2172 */ 2173 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DEPENDS_ON = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_DEPENDS_ON); 2174 2175/** 2176 * Constant for fluent queries to be used to add include statements. Specifies 2177 * the path value of "<b>ServiceDefinition:depends-on</b>". 2178 */ 2179 public static final ca.uhn.fhir.model.api.Include INCLUDE_DEPENDS_ON = new ca.uhn.fhir.model.api.Include("ServiceDefinition:depends-on").toLocked(); 2180 2181 /** 2182 * Search parameter: <b>name</b> 2183 * <p> 2184 * Description: <b>Computationally friendly name of the service definition</b><br> 2185 * Type: <b>string</b><br> 2186 * Path: <b>ServiceDefinition.name</b><br> 2187 * </p> 2188 */ 2189 @SearchParamDefinition(name="name", path="ServiceDefinition.name", description="Computationally friendly name of the service definition", type="string" ) 2190 public static final String SP_NAME = "name"; 2191 /** 2192 * <b>Fluent Client</b> search parameter constant for <b>name</b> 2193 * <p> 2194 * Description: <b>Computationally friendly name of the service definition</b><br> 2195 * Type: <b>string</b><br> 2196 * Path: <b>ServiceDefinition.name</b><br> 2197 * </p> 2198 */ 2199 public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); 2200 2201 /** 2202 * Search parameter: <b>publisher</b> 2203 * <p> 2204 * Description: <b>Name of the publisher of the service definition</b><br> 2205 * Type: <b>string</b><br> 2206 * Path: <b>ServiceDefinition.publisher</b><br> 2207 * </p> 2208 */ 2209 @SearchParamDefinition(name="publisher", path="ServiceDefinition.publisher", description="Name of the publisher of the service definition", type="string" ) 2210 public static final String SP_PUBLISHER = "publisher"; 2211 /** 2212 * <b>Fluent Client</b> search parameter constant for <b>publisher</b> 2213 * <p> 2214 * Description: <b>Name of the publisher of the service definition</b><br> 2215 * Type: <b>string</b><br> 2216 * Path: <b>ServiceDefinition.publisher</b><br> 2217 * </p> 2218 */ 2219 public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER); 2220 2221 /** 2222 * Search parameter: <b>topic</b> 2223 * <p> 2224 * Description: <b>Topics associated with the module</b><br> 2225 * Type: <b>token</b><br> 2226 * Path: <b>ServiceDefinition.topic</b><br> 2227 * </p> 2228 */ 2229 @SearchParamDefinition(name="topic", path="ServiceDefinition.topic", description="Topics associated with the module", type="token" ) 2230 public static final String SP_TOPIC = "topic"; 2231 /** 2232 * <b>Fluent Client</b> search parameter constant for <b>topic</b> 2233 * <p> 2234 * Description: <b>Topics associated with the module</b><br> 2235 * Type: <b>token</b><br> 2236 * Path: <b>ServiceDefinition.topic</b><br> 2237 * </p> 2238 */ 2239 public static final ca.uhn.fhir.rest.gclient.TokenClientParam TOPIC = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TOPIC); 2240 2241 /** 2242 * Search parameter: <b>status</b> 2243 * <p> 2244 * Description: <b>The current status of the service definition</b><br> 2245 * Type: <b>token</b><br> 2246 * Path: <b>ServiceDefinition.status</b><br> 2247 * </p> 2248 */ 2249 @SearchParamDefinition(name="status", path="ServiceDefinition.status", description="The current status of the service definition", type="token" ) 2250 public static final String SP_STATUS = "status"; 2251 /** 2252 * <b>Fluent Client</b> search parameter constant for <b>status</b> 2253 * <p> 2254 * Description: <b>The current status of the service definition</b><br> 2255 * Type: <b>token</b><br> 2256 * Path: <b>ServiceDefinition.status</b><br> 2257 * </p> 2258 */ 2259 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 2260 2261 2262} 2263