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