001package org.hl7.fhir.r5.patterns;
002
003/*-
004 * #%L
005 * org.hl7.fhir.r5
006 * %%
007 * Copyright (C) 2014 - 2019 Health Level 7
008 * %%
009 * Licensed under the Apache License, Version 2.0 (the "License");
010 * you may not use this file except in compliance with the License.
011 * You may obtain a copy of the License at
012 * 
013 *      http://www.apache.org/licenses/LICENSE-2.0
014 * 
015 * Unless required by applicable law or agreed to in writing, software
016 * distributed under the License is distributed on an "AS IS" BASIS,
017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
018 * See the License for the specific language governing permissions and
019 * limitations under the License.
020 * #L%
021 */
022
023
024/*
025  Copyright (c) 2011+, HL7, Inc.
026  All rights reserved.
027  
028  Redistribution and use in source and binary forms, with or without modification, 
029  are permitted provided that the following conditions are met:
030  
031   * Redistributions of source code must retain the above copyright notice, this 
032     list of conditions and the following disclaimer.
033   * Redistributions in binary form must reproduce the above copyright notice, 
034     this list of conditions and the following disclaimer in the documentation 
035     and/or other materials provided with the distribution.
036   * Neither the name of HL7 nor the names of its contributors may be used to 
037     endorse or promote products derived from this software without specific 
038     prior written permission.
039  
040  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
041  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
042  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
043  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
044  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
045  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
046  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
047  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
048  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
049  POSSIBILITY OF SUCH DAMAGE.
050  
051*/
052
053// Generated on Wed, May 8, 2019 10:40+1000 for FHIR v4.1.0
054
055import java.util.*;
056
057import org.hl7.fhir.utilities.Utilities;
058import org.hl7.fhir.r5.model.Enumerations.*;
059import org.hl7.fhir.r5.model.*;
060import org.hl7.fhir.r5.model.Enumeration;
061import org.hl7.fhir.exceptions.FHIRException;
062
063public class ActivityDefinitionDefinitionImpl extends PatternBaseImpl implements Definition {
064
065  private ActivityDefinition wrapped;
066
067  public ActivityDefinitionDefinitionImpl(ActivityDefinition wrapped) {
068    super(wrapped);
069    this.wrapped = wrapped;
070  }
071
072    public int getUrlMin() {
073      return 0;
074    }
075
076    public int getUrlMax() {
077      return 1;
078    }
079
080    public UriType getUrlElement() throws FHIRException {
081      return wrapped.getUrlElement();
082    }
083
084
085    public boolean hasUrlElement() {
086      return wrapped.hasUrlElement();
087    }
088
089
090    public boolean hasUrl() {
091      return wrapped.hasUrl();
092    }
093
094
095    public Definition setUrlElement(UriType value) throws FHIRException {
096      wrapped.setUrlElement(value);
097      return this;
098
099    }
100
101
102    public String getUrl() throws FHIRException {
103      return wrapped.getUrl();
104    }
105
106    public Definition setUrl(String value) throws FHIRException {
107      wrapped.setUrl(value);
108      return this;
109
110}
111
112    public int getIdentifierMin() {
113      return 0;
114    }
115
116    public int getIdentifierMax() {
117      return 2147483647;
118    }
119
120    public Identifier getIdentifier() throws FHIRException {
121      return wrapped.getIdentifierFirstRep();
122    }
123
124    public boolean hasIdentifier() {
125      return wrapped.hasIdentifier();
126    }
127
128    public Definition setIdentifier(Identifier value) throws FHIRException {
129      wrapped.getIdentifier().clear();
130      if (value != null)
131        wrapped.getIdentifier().add(value);
132      return this;
133
134    }
135
136    public int getVersionMin() {
137      return 0;
138    }
139
140    public int getVersionMax() {
141      return 1;
142    }
143
144    public StringType getVersionElement() throws FHIRException {
145      return wrapped.getVersionElement();
146    }
147
148
149    public boolean hasVersionElement() {
150      return wrapped.hasVersionElement();
151    }
152
153
154    public boolean hasVersion() {
155      return wrapped.hasVersion();
156    }
157
158
159    public Definition setVersionElement(StringType value) throws FHIRException {
160      wrapped.setVersionElement(value);
161      return this;
162
163    }
164
165
166    public String getVersion() throws FHIRException {
167      return wrapped.getVersion();
168    }
169
170    public Definition setVersion(String value) throws FHIRException {
171      wrapped.setVersion(value);
172      return this;
173
174}
175
176    public int getTitleMin() {
177      return 0;
178    }
179
180    public int getTitleMax() {
181      return 1;
182    }
183
184    public StringType getTitleElement() throws FHIRException {
185      return wrapped.getTitleElement();
186    }
187
188
189    public boolean hasTitleElement() {
190      return wrapped.hasTitleElement();
191    }
192
193
194    public boolean hasTitle() {
195      return wrapped.hasTitle();
196    }
197
198
199    public Definition setTitleElement(StringType value) throws FHIRException {
200      wrapped.setTitleElement(value);
201      return this;
202
203    }
204
205
206    public String getTitle() throws FHIRException {
207      return wrapped.getTitle();
208    }
209
210    public Definition setTitle(String value) throws FHIRException {
211      wrapped.setTitle(value);
212      return this;
213
214}
215
216    public int getDerivedFromCanonicalMin() {
217      return 0;
218    }
219
220    public int getDerivedFromCanonicalMax() {
221      return 0;
222    }
223
224    public List<CanonicalType> getDerivedFromCanonical() throws FHIRException {
225      throw new FHIRException("The pattern property 'derivedFromCanonical' is not supported in 'ActivityDefinition'");
226    }
227
228    public Definition setDerivedFromCanonical(List<CanonicalType> theDerivedFromCanonical) throws FHIRException {
229
230      throw new FHIRException("The pattern property 'derivedFromCanonical' is not supported in 'ActivityDefinition'");
231    }
232
233    public boolean hasDerivedFromCanonical() {
234      return false;
235    }
236
237
238    public CanonicalType addDerivedFromCanonicalElement() throws FHIRException {
239      throw new FHIRException("The pattern property 'derivedFromCanonical' is not supported in 'ActivityDefinition'");
240    }
241
242
243    public Definition addDerivedFromCanonical(String value) throws FHIRException {
244      throw new FHIRException("The pattern property 'derivedFromCanonical' is not supported in 'ActivityDefinition'");
245    }
246
247
248    public boolean hasDerivedFromCanonical(String value) {
249      return false;
250    }
251
252
253    public int getDerivedFromUriMin() {
254      return 0;
255    }
256
257    public int getDerivedFromUriMax() {
258      return 0;
259    }
260
261    public List<UriType> getDerivedFromUri() throws FHIRException {
262      throw new FHIRException("The pattern property 'derivedFromUri' is not supported in 'ActivityDefinition'");
263    }
264
265    public Definition setDerivedFromUri(List<UriType> theDerivedFromUri) throws FHIRException {
266
267      throw new FHIRException("The pattern property 'derivedFromUri' is not supported in 'ActivityDefinition'");
268    }
269
270    public boolean hasDerivedFromUri() {
271      return false;
272    }
273
274
275    public UriType addDerivedFromUriElement() throws FHIRException {
276      throw new FHIRException("The pattern property 'derivedFromUri' is not supported in 'ActivityDefinition'");
277    }
278
279
280    public Definition addDerivedFromUri(String value) throws FHIRException {
281      throw new FHIRException("The pattern property 'derivedFromUri' is not supported in 'ActivityDefinition'");
282    }
283
284
285    public boolean hasDerivedFromUri(String value) {
286      return false;
287    }
288
289
290    public int getPartOfMin() {
291      return 0;
292    }
293
294    public int getPartOfMax() {
295      return 0;
296    }
297
298    public List<CanonicalType> getPartOf() throws FHIRException {
299      throw new FHIRException("The pattern property 'partOf' is not supported in 'ActivityDefinition'");
300    }
301
302    public Definition setPartOf(List<CanonicalType> thePartOf) throws FHIRException {
303
304      throw new FHIRException("The pattern property 'partOf' is not supported in 'ActivityDefinition'");
305    }
306
307    public boolean hasPartOf() {
308      return false;
309    }
310
311
312    public CanonicalType addPartOfElement() throws FHIRException {
313      throw new FHIRException("The pattern property 'partOf' is not supported in 'ActivityDefinition'");
314    }
315
316
317    public Definition addPartOf(String value) throws FHIRException {
318      throw new FHIRException("The pattern property 'partOf' is not supported in 'ActivityDefinition'");
319    }
320
321
322    public boolean hasPartOf(String value) {
323      return false;
324    }
325
326
327    public int getReplacesMin() {
328      return 0;
329    }
330
331    public int getReplacesMax() {
332      return 0;
333    }
334
335    public List<CanonicalType> getReplaces() throws FHIRException {
336      throw new FHIRException("The pattern property 'replaces' is not supported in 'ActivityDefinition'");
337    }
338
339    public Definition setReplaces(List<CanonicalType> theReplaces) throws FHIRException {
340
341      throw new FHIRException("The pattern property 'replaces' is not supported in 'ActivityDefinition'");
342    }
343
344    public boolean hasReplaces() {
345      return false;
346    }
347
348
349    public CanonicalType addReplacesElement() throws FHIRException {
350      throw new FHIRException("The pattern property 'replaces' is not supported in 'ActivityDefinition'");
351    }
352
353
354    public Definition addReplaces(String value) throws FHIRException {
355      throw new FHIRException("The pattern property 'replaces' is not supported in 'ActivityDefinition'");
356    }
357
358
359    public boolean hasReplaces(String value) {
360      return false;
361    }
362
363
364    public int getStatusMin() {
365      return 0;
366    }
367
368    public int getStatusMax() {
369      return 0;
370    }
371
372    public Enumeration<PublicationStatus> getStatusElement() throws FHIRException {
373      throw new FHIRException("The pattern property 'status' is not supported in 'ActivityDefinition'");
374    }
375
376
377    public boolean hasStatusElement() {
378      return false;
379    }
380
381
382    public boolean hasStatus() {
383      return false;
384    }
385
386
387    public Definition setStatusElement(Enumeration<PublicationStatus> value) throws FHIRException {
388      throw new FHIRException("The pattern property 'status' is not supported in 'ActivityDefinition'");
389    }
390
391
392    public PublicationStatus getStatus() throws FHIRException {
393      throw new FHIRException("The pattern property 'status' is not supported in 'ActivityDefinition'");
394    }
395
396    public Definition setStatus(PublicationStatus value) throws FHIRException {
397      throw new FHIRException("The pattern property 'status' is not supported in 'ActivityDefinition'");
398}
399
400    public int getExperimentalMin() {
401      return 0;
402    }
403
404    public int getExperimentalMax() {
405      return 1;
406    }
407
408    public BooleanType getExperimentalElement() throws FHIRException {
409      return wrapped.getExperimentalElement();
410    }
411
412
413    public boolean hasExperimentalElement() {
414      return wrapped.hasExperimentalElement();
415    }
416
417
418    public boolean hasExperimental() {
419      return wrapped.hasExperimental();
420    }
421
422
423    public Definition setExperimentalElement(BooleanType value) throws FHIRException {
424      wrapped.setExperimentalElement(value);
425      return this;
426
427    }
428
429
430    public boolean getExperimental() throws FHIRException {
431      return wrapped.getExperimental();
432    }
433
434    public Definition setExperimental(boolean value) throws FHIRException {
435      wrapped.setExperimental(value);
436      return this;
437
438}
439
440    public int getSubjectMin() {
441      return 0;
442    }
443
444    public int getSubjectMax() {
445      return 0;
446    }
447
448    public Type getSubject() throws FHIRException {
449      throw new FHIRException("The pattern property 'subject[x]' is not supported in 'ActivityDefinition'");
450    }
451
452    public CodeableConcept getSubjectCodeableConcept() throws FHIRException {
453      throw new FHIRException("The pattern property 'subject[x]' is not supported in 'ActivityDefinition'");
454    }
455
456    public boolean hasSubjectCodeableConcept() { 
457      return false;
458    }
459
460    public Reference getSubjectReference() throws FHIRException {
461      throw new FHIRException("The pattern property 'subject[x]' is not supported in 'ActivityDefinition'");
462    }
463
464    public boolean hasSubjectReference() { 
465      return false;
466    }
467
468    public boolean hasSubject() {
469      return false;
470    }
471
472    public Definition setSubject(Type value) throws FHIRException {
473      throw new FHIRException("The pattern property 'subject[x]' is not supported in 'ActivityDefinition'");
474    }
475
476    public int getDateMin() {
477      return 0;
478    }
479
480    public int getDateMax() {
481      return 1;
482    }
483
484    public DateTimeType getDateElement() throws FHIRException {
485      return wrapped.getDateElement();
486    }
487
488
489    public boolean hasDateElement() {
490      return wrapped.hasDateElement();
491    }
492
493
494    public boolean hasDate() {
495      return wrapped.hasDate();
496    }
497
498
499    public Definition setDateElement(DateTimeType value) throws FHIRException {
500      wrapped.setDateElement(value);
501      return this;
502
503    }
504
505
506    public Date getDate() throws FHIRException {
507      return wrapped.getDate();
508    }
509
510    public Definition setDate(Date value) throws FHIRException {
511      wrapped.setDate(value);
512      return this;
513
514}
515
516    public int getPublisherMin() {
517      return 0;
518    }
519
520    public int getPublisherMax() {
521      return 0;
522    }
523
524    public Reference getPublisher() throws FHIRException {
525      throw new FHIRException("The pattern property 'publisher' is not supported in 'ActivityDefinition'");
526    }
527
528    public boolean hasPublisher() {
529      return false;
530    }
531
532    public Definition setPublisher(Reference value) throws FHIRException {
533      throw new FHIRException("The pattern property 'publisher' is not supported in 'ActivityDefinition'");
534    }
535
536    public int getContactMin() {
537      return 0;
538    }
539
540    public int getContactMax() {
541      return 2147483647;
542    }
543
544    public List<ContactDetail> getContact() throws FHIRException {
545      return wrapped.getContact();
546    }
547
548    public Definition setContact(List<ContactDetail> theContact) throws FHIRException {
549
550      wrapped.setContact(theContact);
551      return this;
552
553    }
554
555    public boolean hasContact() {
556      return wrapped.hasContact();
557    }
558
559
560    public ContactDetail addContact() throws FHIRException {
561      throw new FHIRException("The pattern property 'contact' is not supported in 'ActivityDefinition'");
562    }
563
564
565    public Definition addContact(ContactDetail t) throws FHIRException {
566      throw new FHIRException("The pattern property 'contact' is not supported in 'ActivityDefinition'");
567    }
568
569
570    public ContactDetail getContactFirstRep() throws FHIRException {
571
572      return wrapped.getContactFirstRep();
573    }
574
575    public int getDescriptionMin() {
576      return 0;
577    }
578
579    public int getDescriptionMax() {
580      return 1;
581    }
582
583    public MarkdownType getDescriptionElement() throws FHIRException {
584      return wrapped.getDescriptionElement();
585    }
586
587
588    public boolean hasDescriptionElement() {
589      return wrapped.hasDescriptionElement();
590    }
591
592
593    public boolean hasDescription() {
594      return wrapped.hasDescription();
595    }
596
597
598    public Definition setDescriptionElement(MarkdownType value) throws FHIRException {
599      wrapped.setDescriptionElement(value);
600      return this;
601
602    }
603
604
605    public String getDescription() throws FHIRException {
606      return wrapped.getDescription();
607    }
608
609    public Definition setDescription(String value) throws FHIRException {
610      wrapped.setDescription(value);
611      return this;
612
613}
614
615    public int getUseContextMin() {
616      return 0;
617    }
618
619    public int getUseContextMax() {
620      return 2147483647;
621    }
622
623    public List<UsageContext> getUseContext() throws FHIRException {
624      return wrapped.getUseContext();
625    }
626
627    public Definition setUseContext(List<UsageContext> theUseContext) throws FHIRException {
628
629      wrapped.setUseContext(theUseContext);
630      return this;
631
632    }
633
634    public boolean hasUseContext() {
635      return wrapped.hasUseContext();
636    }
637
638
639    public UsageContext addUseContext() throws FHIRException {
640      throw new FHIRException("The pattern property 'useContext' is not supported in 'ActivityDefinition'");
641    }
642
643
644    public Definition addUseContext(UsageContext t) throws FHIRException {
645      throw new FHIRException("The pattern property 'useContext' is not supported in 'ActivityDefinition'");
646    }
647
648
649    public UsageContext getUseContextFirstRep() throws FHIRException {
650
651      return wrapped.getUseContextFirstRep();
652    }
653
654    public int getJurisdictionMin() {
655      return 0;
656    }
657
658    public int getJurisdictionMax() {
659      return 2147483647;
660    }
661
662    public List<CodeableConcept> getJurisdiction() throws FHIRException {
663      return wrapped.getJurisdiction();
664    }
665
666    public Definition setJurisdiction(List<CodeableConcept> theJurisdiction) throws FHIRException {
667
668      wrapped.setJurisdiction(theJurisdiction);
669      return this;
670
671    }
672
673    public boolean hasJurisdiction() {
674      return wrapped.hasJurisdiction();
675    }
676
677
678    public CodeableConcept addJurisdiction() throws FHIRException {
679      throw new FHIRException("The pattern property 'jurisdiction' is not supported in 'ActivityDefinition'");
680    }
681
682
683    public Definition addJurisdiction(CodeableConcept t) throws FHIRException {
684      throw new FHIRException("The pattern property 'jurisdiction' is not supported in 'ActivityDefinition'");
685    }
686
687
688    public CodeableConcept getJurisdictionFirstRep() throws FHIRException {
689
690      return wrapped.getJurisdictionFirstRep();
691    }
692
693    public int getPurposeMin() {
694      return 0;
695    }
696
697    public int getPurposeMax() {
698      return 1;
699    }
700
701    public MarkdownType getPurposeElement() throws FHIRException {
702      return wrapped.getPurposeElement();
703    }
704
705
706    public boolean hasPurposeElement() {
707      return wrapped.hasPurposeElement();
708    }
709
710
711    public boolean hasPurpose() {
712      return wrapped.hasPurpose();
713    }
714
715
716    public Definition setPurposeElement(MarkdownType value) throws FHIRException {
717      wrapped.setPurposeElement(value);
718      return this;
719
720    }
721
722
723    public String getPurpose() throws FHIRException {
724      return wrapped.getPurpose();
725    }
726
727    public Definition setPurpose(String value) throws FHIRException {
728      wrapped.setPurpose(value);
729      return this;
730
731}
732
733    public int getCopyrightMin() {
734      return 0;
735    }
736
737    public int getCopyrightMax() {
738      return 1;
739    }
740
741    public MarkdownType getCopyrightElement() throws FHIRException {
742      return wrapped.getCopyrightElement();
743    }
744
745
746    public boolean hasCopyrightElement() {
747      return wrapped.hasCopyrightElement();
748    }
749
750
751    public boolean hasCopyright() {
752      return wrapped.hasCopyright();
753    }
754
755
756    public Definition setCopyrightElement(MarkdownType value) throws FHIRException {
757      wrapped.setCopyrightElement(value);
758      return this;
759
760    }
761
762
763    public String getCopyright() throws FHIRException {
764      return wrapped.getCopyright();
765    }
766
767    public Definition setCopyright(String value) throws FHIRException {
768      wrapped.setCopyright(value);
769      return this;
770
771}
772
773    public int getApprovalDateMin() {
774      return 0;
775    }
776
777    public int getApprovalDateMax() {
778      return 1;
779    }
780
781    public DateType getApprovalDateElement() throws FHIRException {
782      return wrapped.getApprovalDateElement();
783    }
784
785
786    public boolean hasApprovalDateElement() {
787      return wrapped.hasApprovalDateElement();
788    }
789
790
791    public boolean hasApprovalDate() {
792      return wrapped.hasApprovalDate();
793    }
794
795
796    public Definition setApprovalDateElement(DateType value) throws FHIRException {
797      wrapped.setApprovalDateElement(value);
798      return this;
799
800    }
801
802
803    public Date getApprovalDate() throws FHIRException {
804      return wrapped.getApprovalDate();
805    }
806
807    public Definition setApprovalDate(Date value) throws FHIRException {
808      wrapped.setApprovalDate(value);
809      return this;
810
811}
812
813    public int getLastReviewDateMin() {
814      return 0;
815    }
816
817    public int getLastReviewDateMax() {
818      return 1;
819    }
820
821    public DateType getLastReviewDateElement() throws FHIRException {
822      return wrapped.getLastReviewDateElement();
823    }
824
825
826    public boolean hasLastReviewDateElement() {
827      return wrapped.hasLastReviewDateElement();
828    }
829
830
831    public boolean hasLastReviewDate() {
832      return wrapped.hasLastReviewDate();
833    }
834
835
836    public Definition setLastReviewDateElement(DateType value) throws FHIRException {
837      wrapped.setLastReviewDateElement(value);
838      return this;
839
840    }
841
842
843    public Date getLastReviewDate() throws FHIRException {
844      return wrapped.getLastReviewDate();
845    }
846
847    public Definition setLastReviewDate(Date value) throws FHIRException {
848      wrapped.setLastReviewDate(value);
849      return this;
850
851}
852
853    public int getEffectivePeriodMin() {
854      return 0;
855    }
856
857    public int getEffectivePeriodMax() {
858      return 1;
859    }
860
861    public Period getEffectivePeriod() throws FHIRException {
862      return wrapped.getEffectivePeriod();
863    }
864
865    public boolean hasEffectivePeriod() {
866      return wrapped.hasEffectivePeriod();
867    }
868
869    public Definition setEffectivePeriod(Period value) throws FHIRException {
870      wrapped.setEffectivePeriod(value);
871      return this;
872
873    }
874
875    public int getPerformerTypeMin() {
876      return 0;
877    }
878
879    public int getPerformerTypeMax() {
880      return 0;
881    }
882
883    public CodeableConcept getPerformerType() throws FHIRException {
884      throw new FHIRException("The pattern property 'performerType' is not supported in 'ActivityDefinition'");
885    }
886
887    public boolean hasPerformerType() {
888      return false;
889    }
890
891    public Definition setPerformerType(CodeableConcept value) throws FHIRException {
892      throw new FHIRException("The pattern property 'performerType' is not supported in 'ActivityDefinition'");
893    }
894
895  public String fhirType() {
896     return "ActivityDefinition";
897}
898
899
900}
901