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 ca.uhn.fhir.model.api.annotation.ResourceDef;
038import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
039import ca.uhn.fhir.model.api.annotation.Child;
040import ca.uhn.fhir.model.api.annotation.ChildOrder;
041import ca.uhn.fhir.model.api.annotation.Description;
042import ca.uhn.fhir.model.api.annotation.Block;
043import org.hl7.fhir.instance.model.api.*;
044import org.hl7.fhir.exceptions.FHIRException;
045import org.hl7.fhir.exceptions.FHIRFormatError;
046/**
047 * A text description of the DICOM SOP instances selected in the ImagingManifest; or the reason for, or significance of, the selection.
048 */
049@ResourceDef(name="ImagingManifest", profile="http://hl7.org/fhir/StructureDefinition/ImagingManifest")
050public class ImagingManifest extends DomainResource {
051
052    @Block()
053    public static class StudyComponent extends BackboneElement implements IBaseBackboneElement {
054        /**
055         * Study instance UID of the SOP instances in the selection.
056         */
057        @Child(name = "uid", type = {OidType.class}, order=1, min=1, max=1, modifier=false, summary=true)
058        @Description(shortDefinition="Study instance UID", formalDefinition="Study instance UID of the SOP instances in the selection." )
059        protected OidType uid;
060
061        /**
062         * Reference to the Imaging Study in FHIR form.
063         */
064        @Child(name = "imagingStudy", type = {ImagingStudy.class}, order=2, min=0, max=1, modifier=false, summary=true)
065        @Description(shortDefinition="Reference to ImagingStudy", formalDefinition="Reference to the Imaging Study in FHIR form." )
066        protected Reference imagingStudy;
067
068        /**
069         * The actual object that is the target of the reference (Reference to the Imaging Study in FHIR form.)
070         */
071        protected ImagingStudy imagingStudyTarget;
072
073        /**
074         * The network service providing access (e.g., query, view, or retrieval) for the study. See implementation notes for information about using DICOM endpoints. A study-level endpoint applies to each series in the study, unless overridden by a series-level endpoint with the same Endpoint.type.
075         */
076        @Child(name = "endpoint", type = {Endpoint.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
077        @Description(shortDefinition="Study access service endpoint", formalDefinition="The network service providing access (e.g., query, view, or retrieval) for the study. See implementation notes for information about using DICOM endpoints. A study-level endpoint applies to each series in the study, unless overridden by a series-level endpoint with the same Endpoint.type." )
078        protected List<Reference> endpoint;
079        /**
080         * The actual objects that are the target of the reference (The network service providing access (e.g., query, view, or retrieval) for the study. See implementation notes for information about using DICOM endpoints. A study-level endpoint applies to each series in the study, unless overridden by a series-level endpoint with the same Endpoint.type.)
081         */
082        protected List<Endpoint> endpointTarget;
083
084
085        /**
086         * Series identity and locating information of the DICOM SOP instances in the selection.
087         */
088        @Child(name = "series", type = {}, order=4, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
089        @Description(shortDefinition="Series identity of the selected instances", formalDefinition="Series identity and locating information of the DICOM SOP instances in the selection." )
090        protected List<SeriesComponent> series;
091
092        private static final long serialVersionUID = -538170921L;
093
094    /**
095     * Constructor
096     */
097      public StudyComponent() {
098        super();
099      }
100
101    /**
102     * Constructor
103     */
104      public StudyComponent(OidType uid) {
105        super();
106        this.uid = uid;
107      }
108
109        /**
110         * @return {@link #uid} (Study instance UID of the SOP instances in the selection.). This is the underlying object with id, value and extensions. The accessor "getUid" gives direct access to the value
111         */
112        public OidType getUidElement() { 
113          if (this.uid == null)
114            if (Configuration.errorOnAutoCreate())
115              throw new Error("Attempt to auto-create StudyComponent.uid");
116            else if (Configuration.doAutoCreate())
117              this.uid = new OidType(); // bb
118          return this.uid;
119        }
120
121        public boolean hasUidElement() { 
122          return this.uid != null && !this.uid.isEmpty();
123        }
124
125        public boolean hasUid() { 
126          return this.uid != null && !this.uid.isEmpty();
127        }
128
129        /**
130         * @param value {@link #uid} (Study instance UID of the SOP instances in the selection.). This is the underlying object with id, value and extensions. The accessor "getUid" gives direct access to the value
131         */
132        public StudyComponent setUidElement(OidType value) { 
133          this.uid = value;
134          return this;
135        }
136
137        /**
138         * @return Study instance UID of the SOP instances in the selection.
139         */
140        public String getUid() { 
141          return this.uid == null ? null : this.uid.getValue();
142        }
143
144        /**
145         * @param value Study instance UID of the SOP instances in the selection.
146         */
147        public StudyComponent setUid(String value) { 
148            if (this.uid == null)
149              this.uid = new OidType();
150            this.uid.setValue(value);
151          return this;
152        }
153
154        /**
155         * @return {@link #imagingStudy} (Reference to the Imaging Study in FHIR form.)
156         */
157        public Reference getImagingStudy() { 
158          if (this.imagingStudy == null)
159            if (Configuration.errorOnAutoCreate())
160              throw new Error("Attempt to auto-create StudyComponent.imagingStudy");
161            else if (Configuration.doAutoCreate())
162              this.imagingStudy = new Reference(); // cc
163          return this.imagingStudy;
164        }
165
166        public boolean hasImagingStudy() { 
167          return this.imagingStudy != null && !this.imagingStudy.isEmpty();
168        }
169
170        /**
171         * @param value {@link #imagingStudy} (Reference to the Imaging Study in FHIR form.)
172         */
173        public StudyComponent setImagingStudy(Reference value)  { 
174          this.imagingStudy = value;
175          return this;
176        }
177
178        /**
179         * @return {@link #imagingStudy} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Reference to the Imaging Study in FHIR form.)
180         */
181        public ImagingStudy getImagingStudyTarget() { 
182          if (this.imagingStudyTarget == null)
183            if (Configuration.errorOnAutoCreate())
184              throw new Error("Attempt to auto-create StudyComponent.imagingStudy");
185            else if (Configuration.doAutoCreate())
186              this.imagingStudyTarget = new ImagingStudy(); // aa
187          return this.imagingStudyTarget;
188        }
189
190        /**
191         * @param value {@link #imagingStudy} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Reference to the Imaging Study in FHIR form.)
192         */
193        public StudyComponent setImagingStudyTarget(ImagingStudy value) { 
194          this.imagingStudyTarget = value;
195          return this;
196        }
197
198        /**
199         * @return {@link #endpoint} (The network service providing access (e.g., query, view, or retrieval) for the study. See implementation notes for information about using DICOM endpoints. A study-level endpoint applies to each series in the study, unless overridden by a series-level endpoint with the same Endpoint.type.)
200         */
201        public List<Reference> getEndpoint() { 
202          if (this.endpoint == null)
203            this.endpoint = new ArrayList<Reference>();
204          return this.endpoint;
205        }
206
207        /**
208         * @return Returns a reference to <code>this</code> for easy method chaining
209         */
210        public StudyComponent setEndpoint(List<Reference> theEndpoint) { 
211          this.endpoint = theEndpoint;
212          return this;
213        }
214
215        public boolean hasEndpoint() { 
216          if (this.endpoint == null)
217            return false;
218          for (Reference item : this.endpoint)
219            if (!item.isEmpty())
220              return true;
221          return false;
222        }
223
224        public Reference addEndpoint() { //3
225          Reference t = new Reference();
226          if (this.endpoint == null)
227            this.endpoint = new ArrayList<Reference>();
228          this.endpoint.add(t);
229          return t;
230        }
231
232        public StudyComponent addEndpoint(Reference t) { //3
233          if (t == null)
234            return this;
235          if (this.endpoint == null)
236            this.endpoint = new ArrayList<Reference>();
237          this.endpoint.add(t);
238          return this;
239        }
240
241        /**
242         * @return The first repetition of repeating field {@link #endpoint}, creating it if it does not already exist
243         */
244        public Reference getEndpointFirstRep() { 
245          if (getEndpoint().isEmpty()) {
246            addEndpoint();
247          }
248          return getEndpoint().get(0);
249        }
250
251        /**
252         * @deprecated Use Reference#setResource(IBaseResource) instead
253         */
254        @Deprecated
255        public List<Endpoint> getEndpointTarget() { 
256          if (this.endpointTarget == null)
257            this.endpointTarget = new ArrayList<Endpoint>();
258          return this.endpointTarget;
259        }
260
261        /**
262         * @deprecated Use Reference#setResource(IBaseResource) instead
263         */
264        @Deprecated
265        public Endpoint addEndpointTarget() { 
266          Endpoint r = new Endpoint();
267          if (this.endpointTarget == null)
268            this.endpointTarget = new ArrayList<Endpoint>();
269          this.endpointTarget.add(r);
270          return r;
271        }
272
273        /**
274         * @return {@link #series} (Series identity and locating information of the DICOM SOP instances in the selection.)
275         */
276        public List<SeriesComponent> getSeries() { 
277          if (this.series == null)
278            this.series = new ArrayList<SeriesComponent>();
279          return this.series;
280        }
281
282        /**
283         * @return Returns a reference to <code>this</code> for easy method chaining
284         */
285        public StudyComponent setSeries(List<SeriesComponent> theSeries) { 
286          this.series = theSeries;
287          return this;
288        }
289
290        public boolean hasSeries() { 
291          if (this.series == null)
292            return false;
293          for (SeriesComponent item : this.series)
294            if (!item.isEmpty())
295              return true;
296          return false;
297        }
298
299        public SeriesComponent addSeries() { //3
300          SeriesComponent t = new SeriesComponent();
301          if (this.series == null)
302            this.series = new ArrayList<SeriesComponent>();
303          this.series.add(t);
304          return t;
305        }
306
307        public StudyComponent addSeries(SeriesComponent t) { //3
308          if (t == null)
309            return this;
310          if (this.series == null)
311            this.series = new ArrayList<SeriesComponent>();
312          this.series.add(t);
313          return this;
314        }
315
316        /**
317         * @return The first repetition of repeating field {@link #series}, creating it if it does not already exist
318         */
319        public SeriesComponent getSeriesFirstRep() { 
320          if (getSeries().isEmpty()) {
321            addSeries();
322          }
323          return getSeries().get(0);
324        }
325
326        protected void listChildren(List<Property> children) {
327          super.listChildren(children);
328          children.add(new Property("uid", "oid", "Study instance UID of the SOP instances in the selection.", 0, 1, uid));
329          children.add(new Property("imagingStudy", "Reference(ImagingStudy)", "Reference to the Imaging Study in FHIR form.", 0, 1, imagingStudy));
330          children.add(new Property("endpoint", "Reference(Endpoint)", "The network service providing access (e.g., query, view, or retrieval) for the study. See implementation notes for information about using DICOM endpoints. A study-level endpoint applies to each series in the study, unless overridden by a series-level endpoint with the same Endpoint.type.", 0, java.lang.Integer.MAX_VALUE, endpoint));
331          children.add(new Property("series", "", "Series identity and locating information of the DICOM SOP instances in the selection.", 0, java.lang.Integer.MAX_VALUE, series));
332        }
333
334        @Override
335        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
336          switch (_hash) {
337          case 115792: /*uid*/  return new Property("uid", "oid", "Study instance UID of the SOP instances in the selection.", 0, 1, uid);
338          case -814900911: /*imagingStudy*/  return new Property("imagingStudy", "Reference(ImagingStudy)", "Reference to the Imaging Study in FHIR form.", 0, 1, imagingStudy);
339          case 1741102485: /*endpoint*/  return new Property("endpoint", "Reference(Endpoint)", "The network service providing access (e.g., query, view, or retrieval) for the study. See implementation notes for information about using DICOM endpoints. A study-level endpoint applies to each series in the study, unless overridden by a series-level endpoint with the same Endpoint.type.", 0, java.lang.Integer.MAX_VALUE, endpoint);
340          case -905838985: /*series*/  return new Property("series", "", "Series identity and locating information of the DICOM SOP instances in the selection.", 0, java.lang.Integer.MAX_VALUE, series);
341          default: return super.getNamedProperty(_hash, _name, _checkValid);
342          }
343
344        }
345
346      @Override
347      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
348        switch (hash) {
349        case 115792: /*uid*/ return this.uid == null ? new Base[0] : new Base[] {this.uid}; // OidType
350        case -814900911: /*imagingStudy*/ return this.imagingStudy == null ? new Base[0] : new Base[] {this.imagingStudy}; // Reference
351        case 1741102485: /*endpoint*/ return this.endpoint == null ? new Base[0] : this.endpoint.toArray(new Base[this.endpoint.size()]); // Reference
352        case -905838985: /*series*/ return this.series == null ? new Base[0] : this.series.toArray(new Base[this.series.size()]); // SeriesComponent
353        default: return super.getProperty(hash, name, checkValid);
354        }
355
356      }
357
358      @Override
359      public Base setProperty(int hash, String name, Base value) throws FHIRException {
360        switch (hash) {
361        case 115792: // uid
362          this.uid = castToOid(value); // OidType
363          return value;
364        case -814900911: // imagingStudy
365          this.imagingStudy = castToReference(value); // Reference
366          return value;
367        case 1741102485: // endpoint
368          this.getEndpoint().add(castToReference(value)); // Reference
369          return value;
370        case -905838985: // series
371          this.getSeries().add((SeriesComponent) value); // SeriesComponent
372          return value;
373        default: return super.setProperty(hash, name, value);
374        }
375
376      }
377
378      @Override
379      public Base setProperty(String name, Base value) throws FHIRException {
380        if (name.equals("uid")) {
381          this.uid = castToOid(value); // OidType
382        } else if (name.equals("imagingStudy")) {
383          this.imagingStudy = castToReference(value); // Reference
384        } else if (name.equals("endpoint")) {
385          this.getEndpoint().add(castToReference(value));
386        } else if (name.equals("series")) {
387          this.getSeries().add((SeriesComponent) value);
388        } else
389          return super.setProperty(name, value);
390        return value;
391      }
392
393      @Override
394      public Base makeProperty(int hash, String name) throws FHIRException {
395        switch (hash) {
396        case 115792:  return getUidElement();
397        case -814900911:  return getImagingStudy(); 
398        case 1741102485:  return addEndpoint(); 
399        case -905838985:  return addSeries(); 
400        default: return super.makeProperty(hash, name);
401        }
402
403      }
404
405      @Override
406      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
407        switch (hash) {
408        case 115792: /*uid*/ return new String[] {"oid"};
409        case -814900911: /*imagingStudy*/ return new String[] {"Reference"};
410        case 1741102485: /*endpoint*/ return new String[] {"Reference"};
411        case -905838985: /*series*/ return new String[] {};
412        default: return super.getTypesForProperty(hash, name);
413        }
414
415      }
416
417      @Override
418      public Base addChild(String name) throws FHIRException {
419        if (name.equals("uid")) {
420          throw new FHIRException("Cannot call addChild on a primitive type ImagingManifest.uid");
421        }
422        else if (name.equals("imagingStudy")) {
423          this.imagingStudy = new Reference();
424          return this.imagingStudy;
425        }
426        else if (name.equals("endpoint")) {
427          return addEndpoint();
428        }
429        else if (name.equals("series")) {
430          return addSeries();
431        }
432        else
433          return super.addChild(name);
434      }
435
436      public StudyComponent copy() {
437        StudyComponent dst = new StudyComponent();
438        copyValues(dst);
439        dst.uid = uid == null ? null : uid.copy();
440        dst.imagingStudy = imagingStudy == null ? null : imagingStudy.copy();
441        if (endpoint != null) {
442          dst.endpoint = new ArrayList<Reference>();
443          for (Reference i : endpoint)
444            dst.endpoint.add(i.copy());
445        };
446        if (series != null) {
447          dst.series = new ArrayList<SeriesComponent>();
448          for (SeriesComponent i : series)
449            dst.series.add(i.copy());
450        };
451        return dst;
452      }
453
454      @Override
455      public boolean equalsDeep(Base other_) {
456        if (!super.equalsDeep(other_))
457          return false;
458        if (!(other_ instanceof StudyComponent))
459          return false;
460        StudyComponent o = (StudyComponent) other_;
461        return compareDeep(uid, o.uid, true) && compareDeep(imagingStudy, o.imagingStudy, true) && compareDeep(endpoint, o.endpoint, true)
462           && compareDeep(series, o.series, true);
463      }
464
465      @Override
466      public boolean equalsShallow(Base other_) {
467        if (!super.equalsShallow(other_))
468          return false;
469        if (!(other_ instanceof StudyComponent))
470          return false;
471        StudyComponent o = (StudyComponent) other_;
472        return compareValues(uid, o.uid, true);
473      }
474
475      public boolean isEmpty() {
476        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(uid, imagingStudy, endpoint
477          , series);
478      }
479
480  public String fhirType() {
481    return "ImagingManifest.study";
482
483  }
484
485  }
486
487    @Block()
488    public static class SeriesComponent extends BackboneElement implements IBaseBackboneElement {
489        /**
490         * Series instance UID of the SOP instances in the selection.
491         */
492        @Child(name = "uid", type = {OidType.class}, order=1, min=1, max=1, modifier=false, summary=true)
493        @Description(shortDefinition="Series instance UID", formalDefinition="Series instance UID of the SOP instances in the selection." )
494        protected OidType uid;
495
496        /**
497         * The network service providing access (e.g., query, view, or retrieval) for this series. See implementation notes for information about using DICOM endpoints. A series-level endpoint, if present, has precedence over a study-level endpoint with the same Endpoint.type.
498         */
499        @Child(name = "endpoint", type = {Endpoint.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
500        @Description(shortDefinition="Series access endpoint", formalDefinition="The network service providing access (e.g., query, view, or retrieval) for this series. See implementation notes for information about using DICOM endpoints. A series-level endpoint, if present, has precedence over a study-level endpoint with the same Endpoint.type." )
501        protected List<Reference> endpoint;
502        /**
503         * The actual objects that are the target of the reference (The network service providing access (e.g., query, view, or retrieval) for this series. See implementation notes for information about using DICOM endpoints. A series-level endpoint, if present, has precedence over a study-level endpoint with the same Endpoint.type.)
504         */
505        protected List<Endpoint> endpointTarget;
506
507
508        /**
509         * Identity and locating information of the selected DICOM SOP instances.
510         */
511        @Child(name = "instance", type = {}, order=3, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
512        @Description(shortDefinition="The selected instance", formalDefinition="Identity and locating information of the selected DICOM SOP instances." )
513        protected List<InstanceComponent> instance;
514
515        private static final long serialVersionUID = -1682136598L;
516
517    /**
518     * Constructor
519     */
520      public SeriesComponent() {
521        super();
522      }
523
524    /**
525     * Constructor
526     */
527      public SeriesComponent(OidType uid) {
528        super();
529        this.uid = uid;
530      }
531
532        /**
533         * @return {@link #uid} (Series instance UID of the SOP instances in the selection.). This is the underlying object with id, value and extensions. The accessor "getUid" gives direct access to the value
534         */
535        public OidType getUidElement() { 
536          if (this.uid == null)
537            if (Configuration.errorOnAutoCreate())
538              throw new Error("Attempt to auto-create SeriesComponent.uid");
539            else if (Configuration.doAutoCreate())
540              this.uid = new OidType(); // bb
541          return this.uid;
542        }
543
544        public boolean hasUidElement() { 
545          return this.uid != null && !this.uid.isEmpty();
546        }
547
548        public boolean hasUid() { 
549          return this.uid != null && !this.uid.isEmpty();
550        }
551
552        /**
553         * @param value {@link #uid} (Series instance UID of the SOP instances in the selection.). This is the underlying object with id, value and extensions. The accessor "getUid" gives direct access to the value
554         */
555        public SeriesComponent setUidElement(OidType value) { 
556          this.uid = value;
557          return this;
558        }
559
560        /**
561         * @return Series instance UID of the SOP instances in the selection.
562         */
563        public String getUid() { 
564          return this.uid == null ? null : this.uid.getValue();
565        }
566
567        /**
568         * @param value Series instance UID of the SOP instances in the selection.
569         */
570        public SeriesComponent setUid(String value) { 
571            if (this.uid == null)
572              this.uid = new OidType();
573            this.uid.setValue(value);
574          return this;
575        }
576
577        /**
578         * @return {@link #endpoint} (The network service providing access (e.g., query, view, or retrieval) for this series. See implementation notes for information about using DICOM endpoints. A series-level endpoint, if present, has precedence over a study-level endpoint with the same Endpoint.type.)
579         */
580        public List<Reference> getEndpoint() { 
581          if (this.endpoint == null)
582            this.endpoint = new ArrayList<Reference>();
583          return this.endpoint;
584        }
585
586        /**
587         * @return Returns a reference to <code>this</code> for easy method chaining
588         */
589        public SeriesComponent setEndpoint(List<Reference> theEndpoint) { 
590          this.endpoint = theEndpoint;
591          return this;
592        }
593
594        public boolean hasEndpoint() { 
595          if (this.endpoint == null)
596            return false;
597          for (Reference item : this.endpoint)
598            if (!item.isEmpty())
599              return true;
600          return false;
601        }
602
603        public Reference addEndpoint() { //3
604          Reference t = new Reference();
605          if (this.endpoint == null)
606            this.endpoint = new ArrayList<Reference>();
607          this.endpoint.add(t);
608          return t;
609        }
610
611        public SeriesComponent addEndpoint(Reference t) { //3
612          if (t == null)
613            return this;
614          if (this.endpoint == null)
615            this.endpoint = new ArrayList<Reference>();
616          this.endpoint.add(t);
617          return this;
618        }
619
620        /**
621         * @return The first repetition of repeating field {@link #endpoint}, creating it if it does not already exist
622         */
623        public Reference getEndpointFirstRep() { 
624          if (getEndpoint().isEmpty()) {
625            addEndpoint();
626          }
627          return getEndpoint().get(0);
628        }
629
630        /**
631         * @deprecated Use Reference#setResource(IBaseResource) instead
632         */
633        @Deprecated
634        public List<Endpoint> getEndpointTarget() { 
635          if (this.endpointTarget == null)
636            this.endpointTarget = new ArrayList<Endpoint>();
637          return this.endpointTarget;
638        }
639
640        /**
641         * @deprecated Use Reference#setResource(IBaseResource) instead
642         */
643        @Deprecated
644        public Endpoint addEndpointTarget() { 
645          Endpoint r = new Endpoint();
646          if (this.endpointTarget == null)
647            this.endpointTarget = new ArrayList<Endpoint>();
648          this.endpointTarget.add(r);
649          return r;
650        }
651
652        /**
653         * @return {@link #instance} (Identity and locating information of the selected DICOM SOP instances.)
654         */
655        public List<InstanceComponent> getInstance() { 
656          if (this.instance == null)
657            this.instance = new ArrayList<InstanceComponent>();
658          return this.instance;
659        }
660
661        /**
662         * @return Returns a reference to <code>this</code> for easy method chaining
663         */
664        public SeriesComponent setInstance(List<InstanceComponent> theInstance) { 
665          this.instance = theInstance;
666          return this;
667        }
668
669        public boolean hasInstance() { 
670          if (this.instance == null)
671            return false;
672          for (InstanceComponent item : this.instance)
673            if (!item.isEmpty())
674              return true;
675          return false;
676        }
677
678        public InstanceComponent addInstance() { //3
679          InstanceComponent t = new InstanceComponent();
680          if (this.instance == null)
681            this.instance = new ArrayList<InstanceComponent>();
682          this.instance.add(t);
683          return t;
684        }
685
686        public SeriesComponent addInstance(InstanceComponent t) { //3
687          if (t == null)
688            return this;
689          if (this.instance == null)
690            this.instance = new ArrayList<InstanceComponent>();
691          this.instance.add(t);
692          return this;
693        }
694
695        /**
696         * @return The first repetition of repeating field {@link #instance}, creating it if it does not already exist
697         */
698        public InstanceComponent getInstanceFirstRep() { 
699          if (getInstance().isEmpty()) {
700            addInstance();
701          }
702          return getInstance().get(0);
703        }
704
705        protected void listChildren(List<Property> children) {
706          super.listChildren(children);
707          children.add(new Property("uid", "oid", "Series instance UID of the SOP instances in the selection.", 0, 1, uid));
708          children.add(new Property("endpoint", "Reference(Endpoint)", "The network service providing access (e.g., query, view, or retrieval) for this series. See implementation notes for information about using DICOM endpoints. A series-level endpoint, if present, has precedence over a study-level endpoint with the same Endpoint.type.", 0, java.lang.Integer.MAX_VALUE, endpoint));
709          children.add(new Property("instance", "", "Identity and locating information of the selected DICOM SOP instances.", 0, java.lang.Integer.MAX_VALUE, instance));
710        }
711
712        @Override
713        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
714          switch (_hash) {
715          case 115792: /*uid*/  return new Property("uid", "oid", "Series instance UID of the SOP instances in the selection.", 0, 1, uid);
716          case 1741102485: /*endpoint*/  return new Property("endpoint", "Reference(Endpoint)", "The network service providing access (e.g., query, view, or retrieval) for this series. See implementation notes for information about using DICOM endpoints. A series-level endpoint, if present, has precedence over a study-level endpoint with the same Endpoint.type.", 0, java.lang.Integer.MAX_VALUE, endpoint);
717          case 555127957: /*instance*/  return new Property("instance", "", "Identity and locating information of the selected DICOM SOP instances.", 0, java.lang.Integer.MAX_VALUE, instance);
718          default: return super.getNamedProperty(_hash, _name, _checkValid);
719          }
720
721        }
722
723      @Override
724      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
725        switch (hash) {
726        case 115792: /*uid*/ return this.uid == null ? new Base[0] : new Base[] {this.uid}; // OidType
727        case 1741102485: /*endpoint*/ return this.endpoint == null ? new Base[0] : this.endpoint.toArray(new Base[this.endpoint.size()]); // Reference
728        case 555127957: /*instance*/ return this.instance == null ? new Base[0] : this.instance.toArray(new Base[this.instance.size()]); // InstanceComponent
729        default: return super.getProperty(hash, name, checkValid);
730        }
731
732      }
733
734      @Override
735      public Base setProperty(int hash, String name, Base value) throws FHIRException {
736        switch (hash) {
737        case 115792: // uid
738          this.uid = castToOid(value); // OidType
739          return value;
740        case 1741102485: // endpoint
741          this.getEndpoint().add(castToReference(value)); // Reference
742          return value;
743        case 555127957: // instance
744          this.getInstance().add((InstanceComponent) value); // InstanceComponent
745          return value;
746        default: return super.setProperty(hash, name, value);
747        }
748
749      }
750
751      @Override
752      public Base setProperty(String name, Base value) throws FHIRException {
753        if (name.equals("uid")) {
754          this.uid = castToOid(value); // OidType
755        } else if (name.equals("endpoint")) {
756          this.getEndpoint().add(castToReference(value));
757        } else if (name.equals("instance")) {
758          this.getInstance().add((InstanceComponent) value);
759        } else
760          return super.setProperty(name, value);
761        return value;
762      }
763
764      @Override
765      public Base makeProperty(int hash, String name) throws FHIRException {
766        switch (hash) {
767        case 115792:  return getUidElement();
768        case 1741102485:  return addEndpoint(); 
769        case 555127957:  return addInstance(); 
770        default: return super.makeProperty(hash, name);
771        }
772
773      }
774
775      @Override
776      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
777        switch (hash) {
778        case 115792: /*uid*/ return new String[] {"oid"};
779        case 1741102485: /*endpoint*/ return new String[] {"Reference"};
780        case 555127957: /*instance*/ return new String[] {};
781        default: return super.getTypesForProperty(hash, name);
782        }
783
784      }
785
786      @Override
787      public Base addChild(String name) throws FHIRException {
788        if (name.equals("uid")) {
789          throw new FHIRException("Cannot call addChild on a primitive type ImagingManifest.uid");
790        }
791        else if (name.equals("endpoint")) {
792          return addEndpoint();
793        }
794        else if (name.equals("instance")) {
795          return addInstance();
796        }
797        else
798          return super.addChild(name);
799      }
800
801      public SeriesComponent copy() {
802        SeriesComponent dst = new SeriesComponent();
803        copyValues(dst);
804        dst.uid = uid == null ? null : uid.copy();
805        if (endpoint != null) {
806          dst.endpoint = new ArrayList<Reference>();
807          for (Reference i : endpoint)
808            dst.endpoint.add(i.copy());
809        };
810        if (instance != null) {
811          dst.instance = new ArrayList<InstanceComponent>();
812          for (InstanceComponent i : instance)
813            dst.instance.add(i.copy());
814        };
815        return dst;
816      }
817
818      @Override
819      public boolean equalsDeep(Base other_) {
820        if (!super.equalsDeep(other_))
821          return false;
822        if (!(other_ instanceof SeriesComponent))
823          return false;
824        SeriesComponent o = (SeriesComponent) other_;
825        return compareDeep(uid, o.uid, true) && compareDeep(endpoint, o.endpoint, true) && compareDeep(instance, o.instance, true)
826          ;
827      }
828
829      @Override
830      public boolean equalsShallow(Base other_) {
831        if (!super.equalsShallow(other_))
832          return false;
833        if (!(other_ instanceof SeriesComponent))
834          return false;
835        SeriesComponent o = (SeriesComponent) other_;
836        return compareValues(uid, o.uid, true);
837      }
838
839      public boolean isEmpty() {
840        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(uid, endpoint, instance
841          );
842      }
843
844  public String fhirType() {
845    return "ImagingManifest.study.series";
846
847  }
848
849  }
850
851    @Block()
852    public static class InstanceComponent extends BackboneElement implements IBaseBackboneElement {
853        /**
854         * SOP class UID of the selected instance.
855         */
856        @Child(name = "sopClass", type = {OidType.class}, order=1, min=1, max=1, modifier=false, summary=true)
857        @Description(shortDefinition="SOP class UID of instance", formalDefinition="SOP class UID of the selected instance." )
858        protected OidType sopClass;
859
860        /**
861         * SOP Instance UID of the selected instance.
862         */
863        @Child(name = "uid", type = {OidType.class}, order=2, min=1, max=1, modifier=false, summary=true)
864        @Description(shortDefinition="Selected instance UID", formalDefinition="SOP Instance UID of the selected instance." )
865        protected OidType uid;
866
867        private static final long serialVersionUID = -885780004L;
868
869    /**
870     * Constructor
871     */
872      public InstanceComponent() {
873        super();
874      }
875
876    /**
877     * Constructor
878     */
879      public InstanceComponent(OidType sopClass, OidType uid) {
880        super();
881        this.sopClass = sopClass;
882        this.uid = uid;
883      }
884
885        /**
886         * @return {@link #sopClass} (SOP class UID of the selected instance.). This is the underlying object with id, value and extensions. The accessor "getSopClass" gives direct access to the value
887         */
888        public OidType getSopClassElement() { 
889          if (this.sopClass == null)
890            if (Configuration.errorOnAutoCreate())
891              throw new Error("Attempt to auto-create InstanceComponent.sopClass");
892            else if (Configuration.doAutoCreate())
893              this.sopClass = new OidType(); // bb
894          return this.sopClass;
895        }
896
897        public boolean hasSopClassElement() { 
898          return this.sopClass != null && !this.sopClass.isEmpty();
899        }
900
901        public boolean hasSopClass() { 
902          return this.sopClass != null && !this.sopClass.isEmpty();
903        }
904
905        /**
906         * @param value {@link #sopClass} (SOP class UID of the selected instance.). This is the underlying object with id, value and extensions. The accessor "getSopClass" gives direct access to the value
907         */
908        public InstanceComponent setSopClassElement(OidType value) { 
909          this.sopClass = value;
910          return this;
911        }
912
913        /**
914         * @return SOP class UID of the selected instance.
915         */
916        public String getSopClass() { 
917          return this.sopClass == null ? null : this.sopClass.getValue();
918        }
919
920        /**
921         * @param value SOP class UID of the selected instance.
922         */
923        public InstanceComponent setSopClass(String value) { 
924            if (this.sopClass == null)
925              this.sopClass = new OidType();
926            this.sopClass.setValue(value);
927          return this;
928        }
929
930        /**
931         * @return {@link #uid} (SOP Instance UID of the selected instance.). This is the underlying object with id, value and extensions. The accessor "getUid" gives direct access to the value
932         */
933        public OidType getUidElement() { 
934          if (this.uid == null)
935            if (Configuration.errorOnAutoCreate())
936              throw new Error("Attempt to auto-create InstanceComponent.uid");
937            else if (Configuration.doAutoCreate())
938              this.uid = new OidType(); // bb
939          return this.uid;
940        }
941
942        public boolean hasUidElement() { 
943          return this.uid != null && !this.uid.isEmpty();
944        }
945
946        public boolean hasUid() { 
947          return this.uid != null && !this.uid.isEmpty();
948        }
949
950        /**
951         * @param value {@link #uid} (SOP Instance UID of the selected instance.). This is the underlying object with id, value and extensions. The accessor "getUid" gives direct access to the value
952         */
953        public InstanceComponent setUidElement(OidType value) { 
954          this.uid = value;
955          return this;
956        }
957
958        /**
959         * @return SOP Instance UID of the selected instance.
960         */
961        public String getUid() { 
962          return this.uid == null ? null : this.uid.getValue();
963        }
964
965        /**
966         * @param value SOP Instance UID of the selected instance.
967         */
968        public InstanceComponent setUid(String value) { 
969            if (this.uid == null)
970              this.uid = new OidType();
971            this.uid.setValue(value);
972          return this;
973        }
974
975        protected void listChildren(List<Property> children) {
976          super.listChildren(children);
977          children.add(new Property("sopClass", "oid", "SOP class UID of the selected instance.", 0, 1, sopClass));
978          children.add(new Property("uid", "oid", "SOP Instance UID of the selected instance.", 0, 1, uid));
979        }
980
981        @Override
982        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
983          switch (_hash) {
984          case 1560041540: /*sopClass*/  return new Property("sopClass", "oid", "SOP class UID of the selected instance.", 0, 1, sopClass);
985          case 115792: /*uid*/  return new Property("uid", "oid", "SOP Instance UID of the selected instance.", 0, 1, uid);
986          default: return super.getNamedProperty(_hash, _name, _checkValid);
987          }
988
989        }
990
991      @Override
992      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
993        switch (hash) {
994        case 1560041540: /*sopClass*/ return this.sopClass == null ? new Base[0] : new Base[] {this.sopClass}; // OidType
995        case 115792: /*uid*/ return this.uid == null ? new Base[0] : new Base[] {this.uid}; // OidType
996        default: return super.getProperty(hash, name, checkValid);
997        }
998
999      }
1000
1001      @Override
1002      public Base setProperty(int hash, String name, Base value) throws FHIRException {
1003        switch (hash) {
1004        case 1560041540: // sopClass
1005          this.sopClass = castToOid(value); // OidType
1006          return value;
1007        case 115792: // uid
1008          this.uid = castToOid(value); // OidType
1009          return value;
1010        default: return super.setProperty(hash, name, value);
1011        }
1012
1013      }
1014
1015      @Override
1016      public Base setProperty(String name, Base value) throws FHIRException {
1017        if (name.equals("sopClass")) {
1018          this.sopClass = castToOid(value); // OidType
1019        } else if (name.equals("uid")) {
1020          this.uid = castToOid(value); // OidType
1021        } else
1022          return super.setProperty(name, value);
1023        return value;
1024      }
1025
1026      @Override
1027      public Base makeProperty(int hash, String name) throws FHIRException {
1028        switch (hash) {
1029        case 1560041540:  return getSopClassElement();
1030        case 115792:  return getUidElement();
1031        default: return super.makeProperty(hash, name);
1032        }
1033
1034      }
1035
1036      @Override
1037      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
1038        switch (hash) {
1039        case 1560041540: /*sopClass*/ return new String[] {"oid"};
1040        case 115792: /*uid*/ return new String[] {"oid"};
1041        default: return super.getTypesForProperty(hash, name);
1042        }
1043
1044      }
1045
1046      @Override
1047      public Base addChild(String name) throws FHIRException {
1048        if (name.equals("sopClass")) {
1049          throw new FHIRException("Cannot call addChild on a primitive type ImagingManifest.sopClass");
1050        }
1051        else if (name.equals("uid")) {
1052          throw new FHIRException("Cannot call addChild on a primitive type ImagingManifest.uid");
1053        }
1054        else
1055          return super.addChild(name);
1056      }
1057
1058      public InstanceComponent copy() {
1059        InstanceComponent dst = new InstanceComponent();
1060        copyValues(dst);
1061        dst.sopClass = sopClass == null ? null : sopClass.copy();
1062        dst.uid = uid == null ? null : uid.copy();
1063        return dst;
1064      }
1065
1066      @Override
1067      public boolean equalsDeep(Base other_) {
1068        if (!super.equalsDeep(other_))
1069          return false;
1070        if (!(other_ instanceof InstanceComponent))
1071          return false;
1072        InstanceComponent o = (InstanceComponent) other_;
1073        return compareDeep(sopClass, o.sopClass, true) && compareDeep(uid, o.uid, true);
1074      }
1075
1076      @Override
1077      public boolean equalsShallow(Base other_) {
1078        if (!super.equalsShallow(other_))
1079          return false;
1080        if (!(other_ instanceof InstanceComponent))
1081          return false;
1082        InstanceComponent o = (InstanceComponent) other_;
1083        return compareValues(sopClass, o.sopClass, true) && compareValues(uid, o.uid, true);
1084      }
1085
1086      public boolean isEmpty() {
1087        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(sopClass, uid);
1088      }
1089
1090  public String fhirType() {
1091    return "ImagingManifest.study.series.instance";
1092
1093  }
1094
1095  }
1096
1097    /**
1098     * Unique identifier of the DICOM Key Object Selection (KOS) that this resource represents.
1099     */
1100    @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=1, modifier=false, summary=true)
1101    @Description(shortDefinition="SOP Instance UID", formalDefinition="Unique identifier of the DICOM Key Object Selection (KOS) that this resource represents." )
1102    protected Identifier identifier;
1103
1104    /**
1105     * A patient resource reference which is the patient subject of all DICOM SOP Instances in this ImagingManifest.
1106     */
1107    @Child(name = "patient", type = {Patient.class}, order=1, min=1, max=1, modifier=false, summary=true)
1108    @Description(shortDefinition="Patient of the selected objects", formalDefinition="A patient resource reference which is the patient subject of all DICOM SOP Instances in this ImagingManifest." )
1109    protected Reference patient;
1110
1111    /**
1112     * The actual object that is the target of the reference (A patient resource reference which is the patient subject of all DICOM SOP Instances in this ImagingManifest.)
1113     */
1114    protected Patient patientTarget;
1115
1116    /**
1117     * Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).
1118     */
1119    @Child(name = "authoringTime", type = {DateTimeType.class}, order=2, min=0, max=1, modifier=false, summary=true)
1120    @Description(shortDefinition="Time when the selection of instances was made", formalDefinition="Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image)." )
1121    protected DateTimeType authoringTime;
1122
1123    /**
1124     * Author of ImagingManifest. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.
1125     */
1126    @Child(name = "author", type = {Practitioner.class, Device.class, Organization.class, Patient.class, RelatedPerson.class}, order=3, min=0, max=1, modifier=false, summary=true)
1127    @Description(shortDefinition="Author (human or machine)", formalDefinition="Author of ImagingManifest. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion." )
1128    protected Reference author;
1129
1130    /**
1131     * The actual object that is the target of the reference (Author of ImagingManifest. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.)
1132     */
1133    protected Resource authorTarget;
1134
1135    /**
1136     * Free text narrative description of the ImagingManifest.  
1137The value may be derived from the DICOM Standard Part 16, CID-7010 descriptions (e.g. Best in Set, Complete Study Content). Note that those values cover the wide range of uses of the DICOM Key Object Selection object, several of which are not supported by ImagingManifest. Specifically, there is no expected behavior associated with descriptions that suggest referenced images be removed or not used.
1138     */
1139    @Child(name = "description", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=true)
1140    @Description(shortDefinition="Description text", formalDefinition="Free text narrative description of the ImagingManifest.  \nThe value may be derived from the DICOM Standard Part 16, CID-7010 descriptions (e.g. Best in Set, Complete Study Content). Note that those values cover the wide range of uses of the DICOM Key Object Selection object, several of which are not supported by ImagingManifest. Specifically, there is no expected behavior associated with descriptions that suggest referenced images be removed or not used." )
1141    protected StringType description;
1142
1143    /**
1144     * Study identity and locating information of the DICOM SOP instances in the selection.
1145     */
1146    @Child(name = "study", type = {}, order=5, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
1147    @Description(shortDefinition="Study identity of the selected instances", formalDefinition="Study identity and locating information of the DICOM SOP instances in the selection." )
1148    protected List<StudyComponent> study;
1149
1150    private static final long serialVersionUID = 245941978L;
1151
1152  /**
1153   * Constructor
1154   */
1155    public ImagingManifest() {
1156      super();
1157    }
1158
1159  /**
1160   * Constructor
1161   */
1162    public ImagingManifest(Reference patient) {
1163      super();
1164      this.patient = patient;
1165    }
1166
1167    /**
1168     * @return {@link #identifier} (Unique identifier of the DICOM Key Object Selection (KOS) that this resource represents.)
1169     */
1170    public Identifier getIdentifier() { 
1171      if (this.identifier == null)
1172        if (Configuration.errorOnAutoCreate())
1173          throw new Error("Attempt to auto-create ImagingManifest.identifier");
1174        else if (Configuration.doAutoCreate())
1175          this.identifier = new Identifier(); // cc
1176      return this.identifier;
1177    }
1178
1179    public boolean hasIdentifier() { 
1180      return this.identifier != null && !this.identifier.isEmpty();
1181    }
1182
1183    /**
1184     * @param value {@link #identifier} (Unique identifier of the DICOM Key Object Selection (KOS) that this resource represents.)
1185     */
1186    public ImagingManifest setIdentifier(Identifier value)  { 
1187      this.identifier = value;
1188      return this;
1189    }
1190
1191    /**
1192     * @return {@link #patient} (A patient resource reference which is the patient subject of all DICOM SOP Instances in this ImagingManifest.)
1193     */
1194    public Reference getPatient() { 
1195      if (this.patient == null)
1196        if (Configuration.errorOnAutoCreate())
1197          throw new Error("Attempt to auto-create ImagingManifest.patient");
1198        else if (Configuration.doAutoCreate())
1199          this.patient = new Reference(); // cc
1200      return this.patient;
1201    }
1202
1203    public boolean hasPatient() { 
1204      return this.patient != null && !this.patient.isEmpty();
1205    }
1206
1207    /**
1208     * @param value {@link #patient} (A patient resource reference which is the patient subject of all DICOM SOP Instances in this ImagingManifest.)
1209     */
1210    public ImagingManifest setPatient(Reference value)  { 
1211      this.patient = value;
1212      return this;
1213    }
1214
1215    /**
1216     * @return {@link #patient} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (A patient resource reference which is the patient subject of all DICOM SOP Instances in this ImagingManifest.)
1217     */
1218    public Patient getPatientTarget() { 
1219      if (this.patientTarget == null)
1220        if (Configuration.errorOnAutoCreate())
1221          throw new Error("Attempt to auto-create ImagingManifest.patient");
1222        else if (Configuration.doAutoCreate())
1223          this.patientTarget = new Patient(); // aa
1224      return this.patientTarget;
1225    }
1226
1227    /**
1228     * @param value {@link #patient} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (A patient resource reference which is the patient subject of all DICOM SOP Instances in this ImagingManifest.)
1229     */
1230    public ImagingManifest setPatientTarget(Patient value) { 
1231      this.patientTarget = value;
1232      return this;
1233    }
1234
1235    /**
1236     * @return {@link #authoringTime} (Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).). This is the underlying object with id, value and extensions. The accessor "getAuthoringTime" gives direct access to the value
1237     */
1238    public DateTimeType getAuthoringTimeElement() { 
1239      if (this.authoringTime == null)
1240        if (Configuration.errorOnAutoCreate())
1241          throw new Error("Attempt to auto-create ImagingManifest.authoringTime");
1242        else if (Configuration.doAutoCreate())
1243          this.authoringTime = new DateTimeType(); // bb
1244      return this.authoringTime;
1245    }
1246
1247    public boolean hasAuthoringTimeElement() { 
1248      return this.authoringTime != null && !this.authoringTime.isEmpty();
1249    }
1250
1251    public boolean hasAuthoringTime() { 
1252      return this.authoringTime != null && !this.authoringTime.isEmpty();
1253    }
1254
1255    /**
1256     * @param value {@link #authoringTime} (Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).). This is the underlying object with id, value and extensions. The accessor "getAuthoringTime" gives direct access to the value
1257     */
1258    public ImagingManifest setAuthoringTimeElement(DateTimeType value) { 
1259      this.authoringTime = value;
1260      return this;
1261    }
1262
1263    /**
1264     * @return Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).
1265     */
1266    public Date getAuthoringTime() { 
1267      return this.authoringTime == null ? null : this.authoringTime.getValue();
1268    }
1269
1270    /**
1271     * @param value Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).
1272     */
1273    public ImagingManifest setAuthoringTime(Date value) { 
1274      if (value == null)
1275        this.authoringTime = null;
1276      else {
1277        if (this.authoringTime == null)
1278          this.authoringTime = new DateTimeType();
1279        this.authoringTime.setValue(value);
1280      }
1281      return this;
1282    }
1283
1284    /**
1285     * @return {@link #author} (Author of ImagingManifest. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.)
1286     */
1287    public Reference getAuthor() { 
1288      if (this.author == null)
1289        if (Configuration.errorOnAutoCreate())
1290          throw new Error("Attempt to auto-create ImagingManifest.author");
1291        else if (Configuration.doAutoCreate())
1292          this.author = new Reference(); // cc
1293      return this.author;
1294    }
1295
1296    public boolean hasAuthor() { 
1297      return this.author != null && !this.author.isEmpty();
1298    }
1299
1300    /**
1301     * @param value {@link #author} (Author of ImagingManifest. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.)
1302     */
1303    public ImagingManifest setAuthor(Reference value)  { 
1304      this.author = value;
1305      return this;
1306    }
1307
1308    /**
1309     * @return {@link #author} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Author of ImagingManifest. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.)
1310     */
1311    public Resource getAuthorTarget() { 
1312      return this.authorTarget;
1313    }
1314
1315    /**
1316     * @param value {@link #author} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Author of ImagingManifest. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.)
1317     */
1318    public ImagingManifest setAuthorTarget(Resource value) { 
1319      this.authorTarget = value;
1320      return this;
1321    }
1322
1323    /**
1324     * @return {@link #description} (Free text narrative description of the ImagingManifest.  
1325The value may be derived from the DICOM Standard Part 16, CID-7010 descriptions (e.g. Best in Set, Complete Study Content). Note that those values cover the wide range of uses of the DICOM Key Object Selection object, several of which are not supported by ImagingManifest. Specifically, there is no expected behavior associated with descriptions that suggest referenced images be removed or not used.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
1326     */
1327    public StringType getDescriptionElement() { 
1328      if (this.description == null)
1329        if (Configuration.errorOnAutoCreate())
1330          throw new Error("Attempt to auto-create ImagingManifest.description");
1331        else if (Configuration.doAutoCreate())
1332          this.description = new StringType(); // bb
1333      return this.description;
1334    }
1335
1336    public boolean hasDescriptionElement() { 
1337      return this.description != null && !this.description.isEmpty();
1338    }
1339
1340    public boolean hasDescription() { 
1341      return this.description != null && !this.description.isEmpty();
1342    }
1343
1344    /**
1345     * @param value {@link #description} (Free text narrative description of the ImagingManifest.  
1346The value may be derived from the DICOM Standard Part 16, CID-7010 descriptions (e.g. Best in Set, Complete Study Content). Note that those values cover the wide range of uses of the DICOM Key Object Selection object, several of which are not supported by ImagingManifest. Specifically, there is no expected behavior associated with descriptions that suggest referenced images be removed or not used.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
1347     */
1348    public ImagingManifest setDescriptionElement(StringType value) { 
1349      this.description = value;
1350      return this;
1351    }
1352
1353    /**
1354     * @return Free text narrative description of the ImagingManifest.  
1355The value may be derived from the DICOM Standard Part 16, CID-7010 descriptions (e.g. Best in Set, Complete Study Content). Note that those values cover the wide range of uses of the DICOM Key Object Selection object, several of which are not supported by ImagingManifest. Specifically, there is no expected behavior associated with descriptions that suggest referenced images be removed or not used.
1356     */
1357    public String getDescription() { 
1358      return this.description == null ? null : this.description.getValue();
1359    }
1360
1361    /**
1362     * @param value Free text narrative description of the ImagingManifest.  
1363The value may be derived from the DICOM Standard Part 16, CID-7010 descriptions (e.g. Best in Set, Complete Study Content). Note that those values cover the wide range of uses of the DICOM Key Object Selection object, several of which are not supported by ImagingManifest. Specifically, there is no expected behavior associated with descriptions that suggest referenced images be removed or not used.
1364     */
1365    public ImagingManifest setDescription(String value) { 
1366      if (Utilities.noString(value))
1367        this.description = null;
1368      else {
1369        if (this.description == null)
1370          this.description = new StringType();
1371        this.description.setValue(value);
1372      }
1373      return this;
1374    }
1375
1376    /**
1377     * @return {@link #study} (Study identity and locating information of the DICOM SOP instances in the selection.)
1378     */
1379    public List<StudyComponent> getStudy() { 
1380      if (this.study == null)
1381        this.study = new ArrayList<StudyComponent>();
1382      return this.study;
1383    }
1384
1385    /**
1386     * @return Returns a reference to <code>this</code> for easy method chaining
1387     */
1388    public ImagingManifest setStudy(List<StudyComponent> theStudy) { 
1389      this.study = theStudy;
1390      return this;
1391    }
1392
1393    public boolean hasStudy() { 
1394      if (this.study == null)
1395        return false;
1396      for (StudyComponent item : this.study)
1397        if (!item.isEmpty())
1398          return true;
1399      return false;
1400    }
1401
1402    public StudyComponent addStudy() { //3
1403      StudyComponent t = new StudyComponent();
1404      if (this.study == null)
1405        this.study = new ArrayList<StudyComponent>();
1406      this.study.add(t);
1407      return t;
1408    }
1409
1410    public ImagingManifest addStudy(StudyComponent t) { //3
1411      if (t == null)
1412        return this;
1413      if (this.study == null)
1414        this.study = new ArrayList<StudyComponent>();
1415      this.study.add(t);
1416      return this;
1417    }
1418
1419    /**
1420     * @return The first repetition of repeating field {@link #study}, creating it if it does not already exist
1421     */
1422    public StudyComponent getStudyFirstRep() { 
1423      if (getStudy().isEmpty()) {
1424        addStudy();
1425      }
1426      return getStudy().get(0);
1427    }
1428
1429      protected void listChildren(List<Property> children) {
1430        super.listChildren(children);
1431        children.add(new Property("identifier", "Identifier", "Unique identifier of the DICOM Key Object Selection (KOS) that this resource represents.", 0, 1, identifier));
1432        children.add(new Property("patient", "Reference(Patient)", "A patient resource reference which is the patient subject of all DICOM SOP Instances in this ImagingManifest.", 0, 1, patient));
1433        children.add(new Property("authoringTime", "dateTime", "Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).", 0, 1, authoringTime));
1434        children.add(new Property("author", "Reference(Practitioner|Device|Organization|Patient|RelatedPerson)", "Author of ImagingManifest. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.", 0, 1, author));
1435        children.add(new Property("description", "string", "Free text narrative description of the ImagingManifest.  \nThe value may be derived from the DICOM Standard Part 16, CID-7010 descriptions (e.g. Best in Set, Complete Study Content). Note that those values cover the wide range of uses of the DICOM Key Object Selection object, several of which are not supported by ImagingManifest. Specifically, there is no expected behavior associated with descriptions that suggest referenced images be removed or not used.", 0, 1, description));
1436        children.add(new Property("study", "", "Study identity and locating information of the DICOM SOP instances in the selection.", 0, java.lang.Integer.MAX_VALUE, study));
1437      }
1438
1439      @Override
1440      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
1441        switch (_hash) {
1442        case -1618432855: /*identifier*/  return new Property("identifier", "Identifier", "Unique identifier of the DICOM Key Object Selection (KOS) that this resource represents.", 0, 1, identifier);
1443        case -791418107: /*patient*/  return new Property("patient", "Reference(Patient)", "A patient resource reference which is the patient subject of all DICOM SOP Instances in this ImagingManifest.", 0, 1, patient);
1444        case -1724532252: /*authoringTime*/  return new Property("authoringTime", "dateTime", "Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).", 0, 1, authoringTime);
1445        case -1406328437: /*author*/  return new Property("author", "Reference(Practitioner|Device|Organization|Patient|RelatedPerson)", "Author of ImagingManifest. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.", 0, 1, author);
1446        case -1724546052: /*description*/  return new Property("description", "string", "Free text narrative description of the ImagingManifest.  \nThe value may be derived from the DICOM Standard Part 16, CID-7010 descriptions (e.g. Best in Set, Complete Study Content). Note that those values cover the wide range of uses of the DICOM Key Object Selection object, several of which are not supported by ImagingManifest. Specifically, there is no expected behavior associated with descriptions that suggest referenced images be removed or not used.", 0, 1, description);
1447        case 109776329: /*study*/  return new Property("study", "", "Study identity and locating information of the DICOM SOP instances in the selection.", 0, java.lang.Integer.MAX_VALUE, study);
1448        default: return super.getNamedProperty(_hash, _name, _checkValid);
1449        }
1450
1451      }
1452
1453      @Override
1454      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
1455        switch (hash) {
1456        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : new Base[] {this.identifier}; // Identifier
1457        case -791418107: /*patient*/ return this.patient == null ? new Base[0] : new Base[] {this.patient}; // Reference
1458        case -1724532252: /*authoringTime*/ return this.authoringTime == null ? new Base[0] : new Base[] {this.authoringTime}; // DateTimeType
1459        case -1406328437: /*author*/ return this.author == null ? new Base[0] : new Base[] {this.author}; // Reference
1460        case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType
1461        case 109776329: /*study*/ return this.study == null ? new Base[0] : this.study.toArray(new Base[this.study.size()]); // StudyComponent
1462        default: return super.getProperty(hash, name, checkValid);
1463        }
1464
1465      }
1466
1467      @Override
1468      public Base setProperty(int hash, String name, Base value) throws FHIRException {
1469        switch (hash) {
1470        case -1618432855: // identifier
1471          this.identifier = castToIdentifier(value); // Identifier
1472          return value;
1473        case -791418107: // patient
1474          this.patient = castToReference(value); // Reference
1475          return value;
1476        case -1724532252: // authoringTime
1477          this.authoringTime = castToDateTime(value); // DateTimeType
1478          return value;
1479        case -1406328437: // author
1480          this.author = castToReference(value); // Reference
1481          return value;
1482        case -1724546052: // description
1483          this.description = castToString(value); // StringType
1484          return value;
1485        case 109776329: // study
1486          this.getStudy().add((StudyComponent) value); // StudyComponent
1487          return value;
1488        default: return super.setProperty(hash, name, value);
1489        }
1490
1491      }
1492
1493      @Override
1494      public Base setProperty(String name, Base value) throws FHIRException {
1495        if (name.equals("identifier")) {
1496          this.identifier = castToIdentifier(value); // Identifier
1497        } else if (name.equals("patient")) {
1498          this.patient = castToReference(value); // Reference
1499        } else if (name.equals("authoringTime")) {
1500          this.authoringTime = castToDateTime(value); // DateTimeType
1501        } else if (name.equals("author")) {
1502          this.author = castToReference(value); // Reference
1503        } else if (name.equals("description")) {
1504          this.description = castToString(value); // StringType
1505        } else if (name.equals("study")) {
1506          this.getStudy().add((StudyComponent) value);
1507        } else
1508          return super.setProperty(name, value);
1509        return value;
1510      }
1511
1512      @Override
1513      public Base makeProperty(int hash, String name) throws FHIRException {
1514        switch (hash) {
1515        case -1618432855:  return getIdentifier(); 
1516        case -791418107:  return getPatient(); 
1517        case -1724532252:  return getAuthoringTimeElement();
1518        case -1406328437:  return getAuthor(); 
1519        case -1724546052:  return getDescriptionElement();
1520        case 109776329:  return addStudy(); 
1521        default: return super.makeProperty(hash, name);
1522        }
1523
1524      }
1525
1526      @Override
1527      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
1528        switch (hash) {
1529        case -1618432855: /*identifier*/ return new String[] {"Identifier"};
1530        case -791418107: /*patient*/ return new String[] {"Reference"};
1531        case -1724532252: /*authoringTime*/ return new String[] {"dateTime"};
1532        case -1406328437: /*author*/ return new String[] {"Reference"};
1533        case -1724546052: /*description*/ return new String[] {"string"};
1534        case 109776329: /*study*/ return new String[] {};
1535        default: return super.getTypesForProperty(hash, name);
1536        }
1537
1538      }
1539
1540      @Override
1541      public Base addChild(String name) throws FHIRException {
1542        if (name.equals("identifier")) {
1543          this.identifier = new Identifier();
1544          return this.identifier;
1545        }
1546        else if (name.equals("patient")) {
1547          this.patient = new Reference();
1548          return this.patient;
1549        }
1550        else if (name.equals("authoringTime")) {
1551          throw new FHIRException("Cannot call addChild on a primitive type ImagingManifest.authoringTime");
1552        }
1553        else if (name.equals("author")) {
1554          this.author = new Reference();
1555          return this.author;
1556        }
1557        else if (name.equals("description")) {
1558          throw new FHIRException("Cannot call addChild on a primitive type ImagingManifest.description");
1559        }
1560        else if (name.equals("study")) {
1561          return addStudy();
1562        }
1563        else
1564          return super.addChild(name);
1565      }
1566
1567  public String fhirType() {
1568    return "ImagingManifest";
1569
1570  }
1571
1572      public ImagingManifest copy() {
1573        ImagingManifest dst = new ImagingManifest();
1574        copyValues(dst);
1575        dst.identifier = identifier == null ? null : identifier.copy();
1576        dst.patient = patient == null ? null : patient.copy();
1577        dst.authoringTime = authoringTime == null ? null : authoringTime.copy();
1578        dst.author = author == null ? null : author.copy();
1579        dst.description = description == null ? null : description.copy();
1580        if (study != null) {
1581          dst.study = new ArrayList<StudyComponent>();
1582          for (StudyComponent i : study)
1583            dst.study.add(i.copy());
1584        };
1585        return dst;
1586      }
1587
1588      protected ImagingManifest typedCopy() {
1589        return copy();
1590      }
1591
1592      @Override
1593      public boolean equalsDeep(Base other_) {
1594        if (!super.equalsDeep(other_))
1595          return false;
1596        if (!(other_ instanceof ImagingManifest))
1597          return false;
1598        ImagingManifest o = (ImagingManifest) other_;
1599        return compareDeep(identifier, o.identifier, true) && compareDeep(patient, o.patient, true) && compareDeep(authoringTime, o.authoringTime, true)
1600           && compareDeep(author, o.author, true) && compareDeep(description, o.description, true) && compareDeep(study, o.study, true)
1601          ;
1602      }
1603
1604      @Override
1605      public boolean equalsShallow(Base other_) {
1606        if (!super.equalsShallow(other_))
1607          return false;
1608        if (!(other_ instanceof ImagingManifest))
1609          return false;
1610        ImagingManifest o = (ImagingManifest) other_;
1611        return compareValues(authoringTime, o.authoringTime, true) && compareValues(description, o.description, true)
1612          ;
1613      }
1614
1615      public boolean isEmpty() {
1616        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, patient, authoringTime
1617          , author, description, study);
1618      }
1619
1620  @Override
1621  public ResourceType getResourceType() {
1622    return ResourceType.ImagingManifest;
1623   }
1624
1625 /**
1626   * Search parameter: <b>identifier</b>
1627   * <p>
1628   * Description: <b>UID of the ImagingManifest (or a DICOM Key Object Selection which it represents)</b><br>
1629   * Type: <b>token</b><br>
1630   * Path: <b>ImagingManifest.identifier</b><br>
1631   * </p>
1632   */
1633  @SearchParamDefinition(name="identifier", path="ImagingManifest.identifier", description="UID of the ImagingManifest (or a DICOM Key Object Selection which it represents)", type="token" )
1634  public static final String SP_IDENTIFIER = "identifier";
1635 /**
1636   * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
1637   * <p>
1638   * Description: <b>UID of the ImagingManifest (or a DICOM Key Object Selection which it represents)</b><br>
1639   * Type: <b>token</b><br>
1640   * Path: <b>ImagingManifest.identifier</b><br>
1641   * </p>
1642   */
1643  public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
1644
1645 /**
1646   * Search parameter: <b>endpoint</b>
1647   * <p>
1648   * Description: <b>The endpoint for the study or series</b><br>
1649   * Type: <b>reference</b><br>
1650   * Path: <b>ImagingManifest.study.endpoint, ImagingManifest.study.series.endpoint</b><br>
1651   * </p>
1652   */
1653  @SearchParamDefinition(name="endpoint", path="ImagingManifest.study.endpoint | ImagingManifest.study.series.endpoint", description="The endpoint for the study or series", type="reference", target={Endpoint.class } )
1654  public static final String SP_ENDPOINT = "endpoint";
1655 /**
1656   * <b>Fluent Client</b> search parameter constant for <b>endpoint</b>
1657   * <p>
1658   * Description: <b>The endpoint for the study or series</b><br>
1659   * Type: <b>reference</b><br>
1660   * Path: <b>ImagingManifest.study.endpoint, ImagingManifest.study.series.endpoint</b><br>
1661   * </p>
1662   */
1663  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENDPOINT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENDPOINT);
1664
1665/**
1666   * Constant for fluent queries to be used to add include statements. Specifies
1667   * the path value of "<b>ImagingManifest:endpoint</b>".
1668   */
1669  public static final ca.uhn.fhir.model.api.Include INCLUDE_ENDPOINT = new ca.uhn.fhir.model.api.Include("ImagingManifest:endpoint").toLocked();
1670
1671 /**
1672   * Search parameter: <b>authoring-time</b>
1673   * <p>
1674   * Description: <b>Time of the ImagingManifest (or a DICOM Key Object Selection which it represents) authoring</b><br>
1675   * Type: <b>date</b><br>
1676   * Path: <b>ImagingManifest.authoringTime</b><br>
1677   * </p>
1678   */
1679  @SearchParamDefinition(name="authoring-time", path="ImagingManifest.authoringTime", description="Time of the ImagingManifest (or a DICOM Key Object Selection which it represents) authoring", type="date" )
1680  public static final String SP_AUTHORING_TIME = "authoring-time";
1681 /**
1682   * <b>Fluent Client</b> search parameter constant for <b>authoring-time</b>
1683   * <p>
1684   * Description: <b>Time of the ImagingManifest (or a DICOM Key Object Selection which it represents) authoring</b><br>
1685   * Type: <b>date</b><br>
1686   * Path: <b>ImagingManifest.authoringTime</b><br>
1687   * </p>
1688   */
1689  public static final ca.uhn.fhir.rest.gclient.DateClientParam AUTHORING_TIME = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_AUTHORING_TIME);
1690
1691 /**
1692   * Search parameter: <b>selected-study</b>
1693   * <p>
1694   * Description: <b>Study selected in the ImagingManifest (or a DICOM Key Object Selection which it represents)</b><br>
1695   * Type: <b>uri</b><br>
1696   * Path: <b>ImagingManifest.study.uid</b><br>
1697   * </p>
1698   */
1699  @SearchParamDefinition(name="selected-study", path="ImagingManifest.study.uid", description="Study selected in the ImagingManifest (or a DICOM Key Object Selection which it represents)", type="uri" )
1700  public static final String SP_SELECTED_STUDY = "selected-study";
1701 /**
1702   * <b>Fluent Client</b> search parameter constant for <b>selected-study</b>
1703   * <p>
1704   * Description: <b>Study selected in the ImagingManifest (or a DICOM Key Object Selection which it represents)</b><br>
1705   * Type: <b>uri</b><br>
1706   * Path: <b>ImagingManifest.study.uid</b><br>
1707   * </p>
1708   */
1709  public static final ca.uhn.fhir.rest.gclient.UriClientParam SELECTED_STUDY = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_SELECTED_STUDY);
1710
1711 /**
1712   * Search parameter: <b>author</b>
1713   * <p>
1714   * Description: <b>Author of the ImagingManifest (or a DICOM Key Object Selection which it represents)</b><br>
1715   * Type: <b>reference</b><br>
1716   * Path: <b>ImagingManifest.author</b><br>
1717   * </p>
1718   */
1719  @SearchParamDefinition(name="author", path="ImagingManifest.author", description="Author of the ImagingManifest (or a DICOM Key Object Selection which it represents)", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") }, target={Device.class, Organization.class, Patient.class, Practitioner.class, RelatedPerson.class } )
1720  public static final String SP_AUTHOR = "author";
1721 /**
1722   * <b>Fluent Client</b> search parameter constant for <b>author</b>
1723   * <p>
1724   * Description: <b>Author of the ImagingManifest (or a DICOM Key Object Selection which it represents)</b><br>
1725   * Type: <b>reference</b><br>
1726   * Path: <b>ImagingManifest.author</b><br>
1727   * </p>
1728   */
1729  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam AUTHOR = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_AUTHOR);
1730
1731/**
1732   * Constant for fluent queries to be used to add include statements. Specifies
1733   * the path value of "<b>ImagingManifest:author</b>".
1734   */
1735  public static final ca.uhn.fhir.model.api.Include INCLUDE_AUTHOR = new ca.uhn.fhir.model.api.Include("ImagingManifest:author").toLocked();
1736
1737 /**
1738   * Search parameter: <b>patient</b>
1739   * <p>
1740   * Description: <b>Subject of the ImagingManifest (or a DICOM Key Object Selection which it represents)</b><br>
1741   * Type: <b>reference</b><br>
1742   * Path: <b>ImagingManifest.patient</b><br>
1743   * </p>
1744   */
1745  @SearchParamDefinition(name="patient", path="ImagingManifest.patient", description="Subject of the ImagingManifest (or a DICOM Key Object Selection which it represents)", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") }, target={Patient.class } )
1746  public static final String SP_PATIENT = "patient";
1747 /**
1748   * <b>Fluent Client</b> search parameter constant for <b>patient</b>
1749   * <p>
1750   * Description: <b>Subject of the ImagingManifest (or a DICOM Key Object Selection which it represents)</b><br>
1751   * Type: <b>reference</b><br>
1752   * Path: <b>ImagingManifest.patient</b><br>
1753   * </p>
1754   */
1755  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT);
1756
1757/**
1758   * Constant for fluent queries to be used to add include statements. Specifies
1759   * the path value of "<b>ImagingManifest:patient</b>".
1760   */
1761  public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("ImagingManifest:patient").toLocked();
1762
1763 /**
1764   * Search parameter: <b>imaging-study</b>
1765   * <p>
1766   * Description: <b>ImagingStudy resource selected in the ImagingManifest (or a DICOM Key Object Selection which it represents)</b><br>
1767   * Type: <b>reference</b><br>
1768   * Path: <b>ImagingManifest.study.imagingStudy</b><br>
1769   * </p>
1770   */
1771  @SearchParamDefinition(name="imaging-study", path="ImagingManifest.study.imagingStudy", description="ImagingStudy resource selected in the ImagingManifest (or a DICOM Key Object Selection which it represents)", type="reference", target={ImagingStudy.class } )
1772  public static final String SP_IMAGING_STUDY = "imaging-study";
1773 /**
1774   * <b>Fluent Client</b> search parameter constant for <b>imaging-study</b>
1775   * <p>
1776   * Description: <b>ImagingStudy resource selected in the ImagingManifest (or a DICOM Key Object Selection which it represents)</b><br>
1777   * Type: <b>reference</b><br>
1778   * Path: <b>ImagingManifest.study.imagingStudy</b><br>
1779   * </p>
1780   */
1781  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam IMAGING_STUDY = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_IMAGING_STUDY);
1782
1783/**
1784   * Constant for fluent queries to be used to add include statements. Specifies
1785   * the path value of "<b>ImagingManifest:imaging-study</b>".
1786   */
1787  public static final ca.uhn.fhir.model.api.Include INCLUDE_IMAGING_STUDY = new ca.uhn.fhir.model.api.Include("ImagingManifest:imaging-study").toLocked();
1788
1789
1790}
1791