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