001package org.hl7.fhir.r5.model;
002
003/*-
004 * #%L
005 * org.hl7.fhir.r5
006 * %%
007 * Copyright (C) 2014 - 2019 Health Level 7
008 * %%
009 * Licensed under the Apache License, Version 2.0 (the "License");
010 * you may not use this file except in compliance with the License.
011 * You may obtain a copy of the License at
012 * 
013 *      http://www.apache.org/licenses/LICENSE-2.0
014 * 
015 * Unless required by applicable law or agreed to in writing, software
016 * distributed under the License is distributed on an "AS IS" BASIS,
017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
018 * See the License for the specific language governing permissions and
019 * limitations under the License.
020 * #L%
021 */
022
023/*
024  Copyright (c) 2011+, HL7, Inc.
025  All rights reserved.
026  
027  Redistribution and use in source and binary forms, with or without modification, 
028  are permitted provided that the following conditions are met:
029  
030   * Redistributions of source code must retain the above copyright notice, this 
031     list of conditions and the following disclaimer.
032   * Redistributions in binary form must reproduce the above copyright notice, 
033     this list of conditions and the following disclaimer in the documentation 
034     and/or other materials provided with the distribution.
035   * Neither the name of HL7 nor the names of its contributors may be used to 
036     endorse or promote products derived from this software without specific 
037     prior written permission.
038  
039  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
040  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
041  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
042  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
043  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
044  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
045  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
046  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
047  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
048  POSSIBILITY OF SUCH DAMAGE.
049  
050*/
051
052// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
053import java.util.ArrayList;
054import java.util.Date;
055import java.util.List;
056import org.hl7.fhir.exceptions.FHIRException;
057import org.hl7.fhir.instance.model.api.ICompositeType;
058
059import org.hl7.fhir.instance.model.api.IBaseDatatypeElement;
060import org.hl7.fhir.utilities.Utilities;
061import org.hl7.fhir.r5.model.Enumerations.*;
062import ca.uhn.fhir.model.api.annotation.ResourceDef;
063import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
064import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
065import ca.uhn.fhir.model.api.annotation.Child;
066import ca.uhn.fhir.model.api.annotation.ChildOrder;
067import ca.uhn.fhir.model.api.annotation.Description;
068import ca.uhn.fhir.model.api.annotation.Block;
069/**
070 * The technical details of an endpoint that can be used for electronic services, such as for web services providing XDS.b or a REST endpoint for another FHIR server. This may include any security context information.
071 */
072@ResourceDef(name="Endpoint", profile="http://hl7.org/fhir/StructureDefinition/Endpoint")
073public class Endpoint extends DomainResource {
074
075    public enum EndpointStatus {
076        /**
077         * This endpoint is expected to be active and can be used.
078         */
079        ACTIVE, 
080        /**
081         * This endpoint is temporarily unavailable.
082         */
083        SUSPENDED, 
084        /**
085         * This endpoint has exceeded connectivity thresholds and is considered in an error state and should no longer be attempted to connect to until corrective action is taken.
086         */
087        ERROR, 
088        /**
089         * This endpoint is no longer to be used.
090         */
091        OFF, 
092        /**
093         * This instance should not have been part of this patient's medical record.
094         */
095        ENTEREDINERROR, 
096        /**
097         * This endpoint is not intended for production usage.
098         */
099        TEST, 
100        /**
101         * added to help the parsers with the generic types
102         */
103        NULL;
104        public static EndpointStatus fromCode(String codeString) throws FHIRException {
105            if (codeString == null || "".equals(codeString))
106                return null;
107        if ("active".equals(codeString))
108          return ACTIVE;
109        if ("suspended".equals(codeString))
110          return SUSPENDED;
111        if ("error".equals(codeString))
112          return ERROR;
113        if ("off".equals(codeString))
114          return OFF;
115        if ("entered-in-error".equals(codeString))
116          return ENTEREDINERROR;
117        if ("test".equals(codeString))
118          return TEST;
119        if (Configuration.isAcceptInvalidEnums())
120          return null;
121        else
122          throw new FHIRException("Unknown EndpointStatus code '"+codeString+"'");
123        }
124        public String toCode() {
125          switch (this) {
126            case ACTIVE: return "active";
127            case SUSPENDED: return "suspended";
128            case ERROR: return "error";
129            case OFF: return "off";
130            case ENTEREDINERROR: return "entered-in-error";
131            case TEST: return "test";
132            default: return "?";
133          }
134        }
135        public String getSystem() {
136          switch (this) {
137            case ACTIVE: return "http://hl7.org/fhir/endpoint-status";
138            case SUSPENDED: return "http://hl7.org/fhir/endpoint-status";
139            case ERROR: return "http://hl7.org/fhir/endpoint-status";
140            case OFF: return "http://hl7.org/fhir/endpoint-status";
141            case ENTEREDINERROR: return "http://hl7.org/fhir/endpoint-status";
142            case TEST: return "http://hl7.org/fhir/endpoint-status";
143            default: return "?";
144          }
145        }
146        public String getDefinition() {
147          switch (this) {
148            case ACTIVE: return "This endpoint is expected to be active and can be used.";
149            case SUSPENDED: return "This endpoint is temporarily unavailable.";
150            case ERROR: return "This endpoint has exceeded connectivity thresholds and is considered in an error state and should no longer be attempted to connect to until corrective action is taken.";
151            case OFF: return "This endpoint is no longer to be used.";
152            case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record.";
153            case TEST: return "This endpoint is not intended for production usage.";
154            default: return "?";
155          }
156        }
157        public String getDisplay() {
158          switch (this) {
159            case ACTIVE: return "Active";
160            case SUSPENDED: return "Suspended";
161            case ERROR: return "Error";
162            case OFF: return "Off";
163            case ENTEREDINERROR: return "Entered in error";
164            case TEST: return "Test";
165            default: return "?";
166          }
167        }
168    }
169
170  public static class EndpointStatusEnumFactory implements EnumFactory<EndpointStatus> {
171    public EndpointStatus fromCode(String codeString) throws IllegalArgumentException {
172      if (codeString == null || "".equals(codeString))
173            if (codeString == null || "".equals(codeString))
174                return null;
175        if ("active".equals(codeString))
176          return EndpointStatus.ACTIVE;
177        if ("suspended".equals(codeString))
178          return EndpointStatus.SUSPENDED;
179        if ("error".equals(codeString))
180          return EndpointStatus.ERROR;
181        if ("off".equals(codeString))
182          return EndpointStatus.OFF;
183        if ("entered-in-error".equals(codeString))
184          return EndpointStatus.ENTEREDINERROR;
185        if ("test".equals(codeString))
186          return EndpointStatus.TEST;
187        throw new IllegalArgumentException("Unknown EndpointStatus code '"+codeString+"'");
188        }
189        public Enumeration<EndpointStatus> fromType(Base code) throws FHIRException {
190          if (code == null)
191            return null;
192          if (code.isEmpty())
193            return new Enumeration<EndpointStatus>(this);
194          String codeString = ((PrimitiveType) code).asStringValue();
195          if (codeString == null || "".equals(codeString))
196            return null;
197        if ("active".equals(codeString))
198          return new Enumeration<EndpointStatus>(this, EndpointStatus.ACTIVE);
199        if ("suspended".equals(codeString))
200          return new Enumeration<EndpointStatus>(this, EndpointStatus.SUSPENDED);
201        if ("error".equals(codeString))
202          return new Enumeration<EndpointStatus>(this, EndpointStatus.ERROR);
203        if ("off".equals(codeString))
204          return new Enumeration<EndpointStatus>(this, EndpointStatus.OFF);
205        if ("entered-in-error".equals(codeString))
206          return new Enumeration<EndpointStatus>(this, EndpointStatus.ENTEREDINERROR);
207        if ("test".equals(codeString))
208          return new Enumeration<EndpointStatus>(this, EndpointStatus.TEST);
209        throw new FHIRException("Unknown EndpointStatus code '"+codeString+"'");
210        }
211    public String toCode(EndpointStatus code) {
212      if (code == EndpointStatus.ACTIVE)
213        return "active";
214      if (code == EndpointStatus.SUSPENDED)
215        return "suspended";
216      if (code == EndpointStatus.ERROR)
217        return "error";
218      if (code == EndpointStatus.OFF)
219        return "off";
220      if (code == EndpointStatus.ENTEREDINERROR)
221        return "entered-in-error";
222      if (code == EndpointStatus.TEST)
223        return "test";
224      return "?";
225      }
226    public String toSystem(EndpointStatus code) {
227      return code.getSystem();
228      }
229    }
230
231    /**
232     * Identifier for the organization that is used to identify the endpoint across multiple disparate systems.
233     */
234    @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
235    @Description(shortDefinition="Identifies this endpoint across multiple systems", formalDefinition="Identifier for the organization that is used to identify the endpoint across multiple disparate systems." )
236    protected List<Identifier> identifier;
237
238    /**
239     * active | suspended | error | off | test.
240     */
241    @Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true)
242    @Description(shortDefinition="active | suspended | error | off | entered-in-error | test", formalDefinition="active | suspended | error | off | test." )
243    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/endpoint-status")
244    protected Enumeration<EndpointStatus> status;
245
246    /**
247     * A coded value that represents the technical details of the usage of this endpoint, such as what WSDLs should be used in what way. (e.g. XDS.b/DICOM/cds-hook).
248     */
249    @Child(name = "connectionType", type = {Coding.class}, order=2, min=1, max=1, modifier=false, summary=true)
250    @Description(shortDefinition="Protocol/Profile/Standard to be used with this endpoint connection", formalDefinition="A coded value that represents the technical details of the usage of this endpoint, such as what WSDLs should be used in what way. (e.g. XDS.b/DICOM/cds-hook)." )
251    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/endpoint-connection-type")
252    protected Coding connectionType;
253
254    /**
255     * A friendly name that this endpoint can be referred to with.
256     */
257    @Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true)
258    @Description(shortDefinition="A name that this endpoint can be identified by", formalDefinition="A friendly name that this endpoint can be referred to with." )
259    protected StringType name;
260
261    /**
262     * The organization that manages this endpoint (even if technically another organization is hosting this in the cloud, it is the organization associated with the data).
263     */
264    @Child(name = "managingOrganization", type = {Organization.class}, order=4, min=0, max=1, modifier=false, summary=true)
265    @Description(shortDefinition="Organization that manages this endpoint (might not be the organization that exposes the endpoint)", formalDefinition="The organization that manages this endpoint (even if technically another organization is hosting this in the cloud, it is the organization associated with the data)." )
266    protected Reference managingOrganization;
267
268    /**
269     * Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting.
270     */
271    @Child(name = "contact", type = {ContactPoint.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
272    @Description(shortDefinition="Contact details for source (e.g. troubleshooting)", formalDefinition="Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting." )
273    protected List<ContactPoint> contact;
274
275    /**
276     * The interval during which the endpoint is expected to be operational.
277     */
278    @Child(name = "period", type = {Period.class}, order=6, min=0, max=1, modifier=false, summary=true)
279    @Description(shortDefinition="Interval the endpoint is expected to be operational", formalDefinition="The interval during which the endpoint is expected to be operational." )
280    protected Period period;
281
282    /**
283     * The payload type describes the acceptable content that can be communicated on the endpoint.
284     */
285    @Child(name = "payloadType", type = {CodeableConcept.class}, order=7, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
286    @Description(shortDefinition="The type of content that may be used at this endpoint (e.g. XDS Discharge summaries)", formalDefinition="The payload type describes the acceptable content that can be communicated on the endpoint." )
287    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/endpoint-payload-type")
288    protected List<CodeableConcept> payloadType;
289
290    /**
291     * The mime type to send the payload in - e.g. application/fhir+xml, application/fhir+json. If the mime type is not specified, then the sender could send any content (including no content depending on the connectionType).
292     */
293    @Child(name = "payloadMimeType", type = {CodeType.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
294    @Description(shortDefinition="Mimetype to send. If not specified, the content could be anything (including no payload, if the connectionType defined this)", formalDefinition="The mime type to send the payload in - e.g. application/fhir+xml, application/fhir+json. If the mime type is not specified, then the sender could send any content (including no content depending on the connectionType)." )
295    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/mimetypes")
296    protected List<CodeType> payloadMimeType;
297
298    /**
299     * The uri that describes the actual end-point to connect to.
300     */
301    @Child(name = "address", type = {UrlType.class}, order=9, min=1, max=1, modifier=false, summary=true)
302    @Description(shortDefinition="The technical base address for connecting to this endpoint", formalDefinition="The uri that describes the actual end-point to connect to." )
303    protected UrlType address;
304
305    /**
306     * Additional headers / information to send as part of the notification.
307     */
308    @Child(name = "header", type = {StringType.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
309    @Description(shortDefinition="Usage depends on the channel type", formalDefinition="Additional headers / information to send as part of the notification." )
310    protected List<StringType> header;
311
312    private static final long serialVersionUID = 1528960001L;
313
314  /**
315   * Constructor
316   */
317    public Endpoint() {
318      super();
319    }
320
321  /**
322   * Constructor
323   */
324    public Endpoint(Enumeration<EndpointStatus> status, Coding connectionType, UrlType address) {
325      super();
326      this.status = status;
327      this.connectionType = connectionType;
328      this.address = address;
329    }
330
331    /**
332     * @return {@link #identifier} (Identifier for the organization that is used to identify the endpoint across multiple disparate systems.)
333     */
334    public List<Identifier> getIdentifier() { 
335      if (this.identifier == null)
336        this.identifier = new ArrayList<Identifier>();
337      return this.identifier;
338    }
339
340    /**
341     * @return Returns a reference to <code>this</code> for easy method chaining
342     */
343    public Endpoint setIdentifier(List<Identifier> theIdentifier) { 
344      this.identifier = theIdentifier;
345      return this;
346    }
347
348    public boolean hasIdentifier() { 
349      if (this.identifier == null)
350        return false;
351      for (Identifier item : this.identifier)
352        if (!item.isEmpty())
353          return true;
354      return false;
355    }
356
357    public Identifier addIdentifier() { //3
358      Identifier t = new Identifier();
359      if (this.identifier == null)
360        this.identifier = new ArrayList<Identifier>();
361      this.identifier.add(t);
362      return t;
363    }
364
365    public Endpoint addIdentifier(Identifier t) { //3
366      if (t == null)
367        return this;
368      if (this.identifier == null)
369        this.identifier = new ArrayList<Identifier>();
370      this.identifier.add(t);
371      return this;
372    }
373
374    /**
375     * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist
376     */
377    public Identifier getIdentifierFirstRep() { 
378      if (getIdentifier().isEmpty()) {
379        addIdentifier();
380      }
381      return getIdentifier().get(0);
382    }
383
384    /**
385     * @return {@link #status} (active | suspended | error | off | test.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
386     */
387    public Enumeration<EndpointStatus> getStatusElement() { 
388      if (this.status == null)
389        if (Configuration.errorOnAutoCreate())
390          throw new Error("Attempt to auto-create Endpoint.status");
391        else if (Configuration.doAutoCreate())
392          this.status = new Enumeration<EndpointStatus>(new EndpointStatusEnumFactory()); // bb
393      return this.status;
394    }
395
396    public boolean hasStatusElement() { 
397      return this.status != null && !this.status.isEmpty();
398    }
399
400    public boolean hasStatus() { 
401      return this.status != null && !this.status.isEmpty();
402    }
403
404    /**
405     * @param value {@link #status} (active | suspended | error | off | test.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
406     */
407    public Endpoint setStatusElement(Enumeration<EndpointStatus> value) { 
408      this.status = value;
409      return this;
410    }
411
412    /**
413     * @return active | suspended | error | off | test.
414     */
415    public EndpointStatus getStatus() { 
416      return this.status == null ? null : this.status.getValue();
417    }
418
419    /**
420     * @param value active | suspended | error | off | test.
421     */
422    public Endpoint setStatus(EndpointStatus value) { 
423        if (this.status == null)
424          this.status = new Enumeration<EndpointStatus>(new EndpointStatusEnumFactory());
425        this.status.setValue(value);
426      return this;
427    }
428
429    /**
430     * @return {@link #connectionType} (A coded value that represents the technical details of the usage of this endpoint, such as what WSDLs should be used in what way. (e.g. XDS.b/DICOM/cds-hook).)
431     */
432    public Coding getConnectionType() { 
433      if (this.connectionType == null)
434        if (Configuration.errorOnAutoCreate())
435          throw new Error("Attempt to auto-create Endpoint.connectionType");
436        else if (Configuration.doAutoCreate())
437          this.connectionType = new Coding(); // cc
438      return this.connectionType;
439    }
440
441    public boolean hasConnectionType() { 
442      return this.connectionType != null && !this.connectionType.isEmpty();
443    }
444
445    /**
446     * @param value {@link #connectionType} (A coded value that represents the technical details of the usage of this endpoint, such as what WSDLs should be used in what way. (e.g. XDS.b/DICOM/cds-hook).)
447     */
448    public Endpoint setConnectionType(Coding value) { 
449      this.connectionType = value;
450      return this;
451    }
452
453    /**
454     * @return {@link #name} (A friendly name that this endpoint can be referred to with.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
455     */
456    public StringType getNameElement() { 
457      if (this.name == null)
458        if (Configuration.errorOnAutoCreate())
459          throw new Error("Attempt to auto-create Endpoint.name");
460        else if (Configuration.doAutoCreate())
461          this.name = new StringType(); // bb
462      return this.name;
463    }
464
465    public boolean hasNameElement() { 
466      return this.name != null && !this.name.isEmpty();
467    }
468
469    public boolean hasName() { 
470      return this.name != null && !this.name.isEmpty();
471    }
472
473    /**
474     * @param value {@link #name} (A friendly name that this endpoint can be referred to with.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
475     */
476    public Endpoint setNameElement(StringType value) { 
477      this.name = value;
478      return this;
479    }
480
481    /**
482     * @return A friendly name that this endpoint can be referred to with.
483     */
484    public String getName() { 
485      return this.name == null ? null : this.name.getValue();
486    }
487
488    /**
489     * @param value A friendly name that this endpoint can be referred to with.
490     */
491    public Endpoint setName(String value) { 
492      if (Utilities.noString(value))
493        this.name = null;
494      else {
495        if (this.name == null)
496          this.name = new StringType();
497        this.name.setValue(value);
498      }
499      return this;
500    }
501
502    /**
503     * @return {@link #managingOrganization} (The organization that manages this endpoint (even if technically another organization is hosting this in the cloud, it is the organization associated with the data).)
504     */
505    public Reference getManagingOrganization() { 
506      if (this.managingOrganization == null)
507        if (Configuration.errorOnAutoCreate())
508          throw new Error("Attempt to auto-create Endpoint.managingOrganization");
509        else if (Configuration.doAutoCreate())
510          this.managingOrganization = new Reference(); // cc
511      return this.managingOrganization;
512    }
513
514    public boolean hasManagingOrganization() { 
515      return this.managingOrganization != null && !this.managingOrganization.isEmpty();
516    }
517
518    /**
519     * @param value {@link #managingOrganization} (The organization that manages this endpoint (even if technically another organization is hosting this in the cloud, it is the organization associated with the data).)
520     */
521    public Endpoint setManagingOrganization(Reference value) { 
522      this.managingOrganization = value;
523      return this;
524    }
525
526    /**
527     * @return {@link #contact} (Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting.)
528     */
529    public List<ContactPoint> getContact() { 
530      if (this.contact == null)
531        this.contact = new ArrayList<ContactPoint>();
532      return this.contact;
533    }
534
535    /**
536     * @return Returns a reference to <code>this</code> for easy method chaining
537     */
538    public Endpoint setContact(List<ContactPoint> theContact) { 
539      this.contact = theContact;
540      return this;
541    }
542
543    public boolean hasContact() { 
544      if (this.contact == null)
545        return false;
546      for (ContactPoint item : this.contact)
547        if (!item.isEmpty())
548          return true;
549      return false;
550    }
551
552    public ContactPoint addContact() { //3
553      ContactPoint t = new ContactPoint();
554      if (this.contact == null)
555        this.contact = new ArrayList<ContactPoint>();
556      this.contact.add(t);
557      return t;
558    }
559
560    public Endpoint addContact(ContactPoint t) { //3
561      if (t == null)
562        return this;
563      if (this.contact == null)
564        this.contact = new ArrayList<ContactPoint>();
565      this.contact.add(t);
566      return this;
567    }
568
569    /**
570     * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist
571     */
572    public ContactPoint getContactFirstRep() { 
573      if (getContact().isEmpty()) {
574        addContact();
575      }
576      return getContact().get(0);
577    }
578
579    /**
580     * @return {@link #period} (The interval during which the endpoint is expected to be operational.)
581     */
582    public Period getPeriod() { 
583      if (this.period == null)
584        if (Configuration.errorOnAutoCreate())
585          throw new Error("Attempt to auto-create Endpoint.period");
586        else if (Configuration.doAutoCreate())
587          this.period = new Period(); // cc
588      return this.period;
589    }
590
591    public boolean hasPeriod() { 
592      return this.period != null && !this.period.isEmpty();
593    }
594
595    /**
596     * @param value {@link #period} (The interval during which the endpoint is expected to be operational.)
597     */
598    public Endpoint setPeriod(Period value) { 
599      this.period = value;
600      return this;
601    }
602
603    /**
604     * @return {@link #payloadType} (The payload type describes the acceptable content that can be communicated on the endpoint.)
605     */
606    public List<CodeableConcept> getPayloadType() { 
607      if (this.payloadType == null)
608        this.payloadType = new ArrayList<CodeableConcept>();
609      return this.payloadType;
610    }
611
612    /**
613     * @return Returns a reference to <code>this</code> for easy method chaining
614     */
615    public Endpoint setPayloadType(List<CodeableConcept> thePayloadType) { 
616      this.payloadType = thePayloadType;
617      return this;
618    }
619
620    public boolean hasPayloadType() { 
621      if (this.payloadType == null)
622        return false;
623      for (CodeableConcept item : this.payloadType)
624        if (!item.isEmpty())
625          return true;
626      return false;
627    }
628
629    public CodeableConcept addPayloadType() { //3
630      CodeableConcept t = new CodeableConcept();
631      if (this.payloadType == null)
632        this.payloadType = new ArrayList<CodeableConcept>();
633      this.payloadType.add(t);
634      return t;
635    }
636
637    public Endpoint addPayloadType(CodeableConcept t) { //3
638      if (t == null)
639        return this;
640      if (this.payloadType == null)
641        this.payloadType = new ArrayList<CodeableConcept>();
642      this.payloadType.add(t);
643      return this;
644    }
645
646    /**
647     * @return The first repetition of repeating field {@link #payloadType}, creating it if it does not already exist
648     */
649    public CodeableConcept getPayloadTypeFirstRep() { 
650      if (getPayloadType().isEmpty()) {
651        addPayloadType();
652      }
653      return getPayloadType().get(0);
654    }
655
656    /**
657     * @return {@link #payloadMimeType} (The mime type to send the payload in - e.g. application/fhir+xml, application/fhir+json. If the mime type is not specified, then the sender could send any content (including no content depending on the connectionType).)
658     */
659    public List<CodeType> getPayloadMimeType() { 
660      if (this.payloadMimeType == null)
661        this.payloadMimeType = new ArrayList<CodeType>();
662      return this.payloadMimeType;
663    }
664
665    /**
666     * @return Returns a reference to <code>this</code> for easy method chaining
667     */
668    public Endpoint setPayloadMimeType(List<CodeType> thePayloadMimeType) { 
669      this.payloadMimeType = thePayloadMimeType;
670      return this;
671    }
672
673    public boolean hasPayloadMimeType() { 
674      if (this.payloadMimeType == null)
675        return false;
676      for (CodeType item : this.payloadMimeType)
677        if (!item.isEmpty())
678          return true;
679      return false;
680    }
681
682    /**
683     * @return {@link #payloadMimeType} (The mime type to send the payload in - e.g. application/fhir+xml, application/fhir+json. If the mime type is not specified, then the sender could send any content (including no content depending on the connectionType).)
684     */
685    public CodeType addPayloadMimeTypeElement() {//2 
686      CodeType t = new CodeType();
687      if (this.payloadMimeType == null)
688        this.payloadMimeType = new ArrayList<CodeType>();
689      this.payloadMimeType.add(t);
690      return t;
691    }
692
693    /**
694     * @param value {@link #payloadMimeType} (The mime type to send the payload in - e.g. application/fhir+xml, application/fhir+json. If the mime type is not specified, then the sender could send any content (including no content depending on the connectionType).)
695     */
696    public Endpoint addPayloadMimeType(String value) { //1
697      CodeType t = new CodeType();
698      t.setValue(value);
699      if (this.payloadMimeType == null)
700        this.payloadMimeType = new ArrayList<CodeType>();
701      this.payloadMimeType.add(t);
702      return this;
703    }
704
705    /**
706     * @param value {@link #payloadMimeType} (The mime type to send the payload in - e.g. application/fhir+xml, application/fhir+json. If the mime type is not specified, then the sender could send any content (including no content depending on the connectionType).)
707     */
708    public boolean hasPayloadMimeType(String value) { 
709      if (this.payloadMimeType == null)
710        return false;
711      for (CodeType v : this.payloadMimeType)
712        if (v.getValue().equals(value)) // code
713          return true;
714      return false;
715    }
716
717    /**
718     * @return {@link #address} (The uri that describes the actual end-point to connect to.). This is the underlying object with id, value and extensions. The accessor "getAddress" gives direct access to the value
719     */
720    public UrlType getAddressElement() { 
721      if (this.address == null)
722        if (Configuration.errorOnAutoCreate())
723          throw new Error("Attempt to auto-create Endpoint.address");
724        else if (Configuration.doAutoCreate())
725          this.address = new UrlType(); // bb
726      return this.address;
727    }
728
729    public boolean hasAddressElement() { 
730      return this.address != null && !this.address.isEmpty();
731    }
732
733    public boolean hasAddress() { 
734      return this.address != null && !this.address.isEmpty();
735    }
736
737    /**
738     * @param value {@link #address} (The uri that describes the actual end-point to connect to.). This is the underlying object with id, value and extensions. The accessor "getAddress" gives direct access to the value
739     */
740    public Endpoint setAddressElement(UrlType value) { 
741      this.address = value;
742      return this;
743    }
744
745    /**
746     * @return The uri that describes the actual end-point to connect to.
747     */
748    public String getAddress() { 
749      return this.address == null ? null : this.address.getValue();
750    }
751
752    /**
753     * @param value The uri that describes the actual end-point to connect to.
754     */
755    public Endpoint setAddress(String value) { 
756        if (this.address == null)
757          this.address = new UrlType();
758        this.address.setValue(value);
759      return this;
760    }
761
762    /**
763     * @return {@link #header} (Additional headers / information to send as part of the notification.)
764     */
765    public List<StringType> getHeader() { 
766      if (this.header == null)
767        this.header = new ArrayList<StringType>();
768      return this.header;
769    }
770
771    /**
772     * @return Returns a reference to <code>this</code> for easy method chaining
773     */
774    public Endpoint setHeader(List<StringType> theHeader) { 
775      this.header = theHeader;
776      return this;
777    }
778
779    public boolean hasHeader() { 
780      if (this.header == null)
781        return false;
782      for (StringType item : this.header)
783        if (!item.isEmpty())
784          return true;
785      return false;
786    }
787
788    /**
789     * @return {@link #header} (Additional headers / information to send as part of the notification.)
790     */
791    public StringType addHeaderElement() {//2 
792      StringType t = new StringType();
793      if (this.header == null)
794        this.header = new ArrayList<StringType>();
795      this.header.add(t);
796      return t;
797    }
798
799    /**
800     * @param value {@link #header} (Additional headers / information to send as part of the notification.)
801     */
802    public Endpoint addHeader(String value) { //1
803      StringType t = new StringType();
804      t.setValue(value);
805      if (this.header == null)
806        this.header = new ArrayList<StringType>();
807      this.header.add(t);
808      return this;
809    }
810
811    /**
812     * @param value {@link #header} (Additional headers / information to send as part of the notification.)
813     */
814    public boolean hasHeader(String value) { 
815      if (this.header == null)
816        return false;
817      for (StringType v : this.header)
818        if (v.getValue().equals(value)) // string
819          return true;
820      return false;
821    }
822
823      protected void listChildren(List<Property> children) {
824        super.listChildren(children);
825        children.add(new Property("identifier", "Identifier", "Identifier for the organization that is used to identify the endpoint across multiple disparate systems.", 0, java.lang.Integer.MAX_VALUE, identifier));
826        children.add(new Property("status", "code", "active | suspended | error | off | test.", 0, 1, status));
827        children.add(new Property("connectionType", "Coding", "A coded value that represents the technical details of the usage of this endpoint, such as what WSDLs should be used in what way. (e.g. XDS.b/DICOM/cds-hook).", 0, 1, connectionType));
828        children.add(new Property("name", "string", "A friendly name that this endpoint can be referred to with.", 0, 1, name));
829        children.add(new Property("managingOrganization", "Reference(Organization)", "The organization that manages this endpoint (even if technically another organization is hosting this in the cloud, it is the organization associated with the data).", 0, 1, managingOrganization));
830        children.add(new Property("contact", "ContactPoint", "Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting.", 0, java.lang.Integer.MAX_VALUE, contact));
831        children.add(new Property("period", "Period", "The interval during which the endpoint is expected to be operational.", 0, 1, period));
832        children.add(new Property("payloadType", "CodeableConcept", "The payload type describes the acceptable content that can be communicated on the endpoint.", 0, java.lang.Integer.MAX_VALUE, payloadType));
833        children.add(new Property("payloadMimeType", "code", "The mime type to send the payload in - e.g. application/fhir+xml, application/fhir+json. If the mime type is not specified, then the sender could send any content (including no content depending on the connectionType).", 0, java.lang.Integer.MAX_VALUE, payloadMimeType));
834        children.add(new Property("address", "url", "The uri that describes the actual end-point to connect to.", 0, 1, address));
835        children.add(new Property("header", "string", "Additional headers / information to send as part of the notification.", 0, java.lang.Integer.MAX_VALUE, header));
836      }
837
838      @Override
839      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
840        switch (_hash) {
841        case -1618432855: /*identifier*/  return new Property("identifier", "Identifier", "Identifier for the organization that is used to identify the endpoint across multiple disparate systems.", 0, java.lang.Integer.MAX_VALUE, identifier);
842        case -892481550: /*status*/  return new Property("status", "code", "active | suspended | error | off | test.", 0, 1, status);
843        case 1270211384: /*connectionType*/  return new Property("connectionType", "Coding", "A coded value that represents the technical details of the usage of this endpoint, such as what WSDLs should be used in what way. (e.g. XDS.b/DICOM/cds-hook).", 0, 1, connectionType);
844        case 3373707: /*name*/  return new Property("name", "string", "A friendly name that this endpoint can be referred to with.", 0, 1, name);
845        case -2058947787: /*managingOrganization*/  return new Property("managingOrganization", "Reference(Organization)", "The organization that manages this endpoint (even if technically another organization is hosting this in the cloud, it is the organization associated with the data).", 0, 1, managingOrganization);
846        case 951526432: /*contact*/  return new Property("contact", "ContactPoint", "Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting.", 0, java.lang.Integer.MAX_VALUE, contact);
847        case -991726143: /*period*/  return new Property("period", "Period", "The interval during which the endpoint is expected to be operational.", 0, 1, period);
848        case 909929960: /*payloadType*/  return new Property("payloadType", "CodeableConcept", "The payload type describes the acceptable content that can be communicated on the endpoint.", 0, java.lang.Integer.MAX_VALUE, payloadType);
849        case -1702836932: /*payloadMimeType*/  return new Property("payloadMimeType", "code", "The mime type to send the payload in - e.g. application/fhir+xml, application/fhir+json. If the mime type is not specified, then the sender could send any content (including no content depending on the connectionType).", 0, java.lang.Integer.MAX_VALUE, payloadMimeType);
850        case -1147692044: /*address*/  return new Property("address", "url", "The uri that describes the actual end-point to connect to.", 0, 1, address);
851        case -1221270899: /*header*/  return new Property("header", "string", "Additional headers / information to send as part of the notification.", 0, java.lang.Integer.MAX_VALUE, header);
852        default: return super.getNamedProperty(_hash, _name, _checkValid);
853        }
854
855      }
856
857      @Override
858      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
859        switch (hash) {
860        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier
861        case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<EndpointStatus>
862        case 1270211384: /*connectionType*/ return this.connectionType == null ? new Base[0] : new Base[] {this.connectionType}; // Coding
863        case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType
864        case -2058947787: /*managingOrganization*/ return this.managingOrganization == null ? new Base[0] : new Base[] {this.managingOrganization}; // Reference
865        case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactPoint
866        case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period
867        case 909929960: /*payloadType*/ return this.payloadType == null ? new Base[0] : this.payloadType.toArray(new Base[this.payloadType.size()]); // CodeableConcept
868        case -1702836932: /*payloadMimeType*/ return this.payloadMimeType == null ? new Base[0] : this.payloadMimeType.toArray(new Base[this.payloadMimeType.size()]); // CodeType
869        case -1147692044: /*address*/ return this.address == null ? new Base[0] : new Base[] {this.address}; // UrlType
870        case -1221270899: /*header*/ return this.header == null ? new Base[0] : this.header.toArray(new Base[this.header.size()]); // StringType
871        default: return super.getProperty(hash, name, checkValid);
872        }
873
874      }
875
876      @Override
877      public Base setProperty(int hash, String name, Base value) throws FHIRException {
878        switch (hash) {
879        case -1618432855: // identifier
880          this.getIdentifier().add(castToIdentifier(value)); // Identifier
881          return value;
882        case -892481550: // status
883          value = new EndpointStatusEnumFactory().fromType(castToCode(value));
884          this.status = (Enumeration) value; // Enumeration<EndpointStatus>
885          return value;
886        case 1270211384: // connectionType
887          this.connectionType = castToCoding(value); // Coding
888          return value;
889        case 3373707: // name
890          this.name = castToString(value); // StringType
891          return value;
892        case -2058947787: // managingOrganization
893          this.managingOrganization = castToReference(value); // Reference
894          return value;
895        case 951526432: // contact
896          this.getContact().add(castToContactPoint(value)); // ContactPoint
897          return value;
898        case -991726143: // period
899          this.period = castToPeriod(value); // Period
900          return value;
901        case 909929960: // payloadType
902          this.getPayloadType().add(castToCodeableConcept(value)); // CodeableConcept
903          return value;
904        case -1702836932: // payloadMimeType
905          this.getPayloadMimeType().add(castToCode(value)); // CodeType
906          return value;
907        case -1147692044: // address
908          this.address = castToUrl(value); // UrlType
909          return value;
910        case -1221270899: // header
911          this.getHeader().add(castToString(value)); // StringType
912          return value;
913        default: return super.setProperty(hash, name, value);
914        }
915
916      }
917
918      @Override
919      public Base setProperty(String name, Base value) throws FHIRException {
920        if (name.equals("identifier")) {
921          this.getIdentifier().add(castToIdentifier(value));
922        } else if (name.equals("status")) {
923          value = new EndpointStatusEnumFactory().fromType(castToCode(value));
924          this.status = (Enumeration) value; // Enumeration<EndpointStatus>
925        } else if (name.equals("connectionType")) {
926          this.connectionType = castToCoding(value); // Coding
927        } else if (name.equals("name")) {
928          this.name = castToString(value); // StringType
929        } else if (name.equals("managingOrganization")) {
930          this.managingOrganization = castToReference(value); // Reference
931        } else if (name.equals("contact")) {
932          this.getContact().add(castToContactPoint(value));
933        } else if (name.equals("period")) {
934          this.period = castToPeriod(value); // Period
935        } else if (name.equals("payloadType")) {
936          this.getPayloadType().add(castToCodeableConcept(value));
937        } else if (name.equals("payloadMimeType")) {
938          this.getPayloadMimeType().add(castToCode(value));
939        } else if (name.equals("address")) {
940          this.address = castToUrl(value); // UrlType
941        } else if (name.equals("header")) {
942          this.getHeader().add(castToString(value));
943        } else
944          return super.setProperty(name, value);
945        return value;
946      }
947
948      @Override
949      public Base makeProperty(int hash, String name) throws FHIRException {
950        switch (hash) {
951        case -1618432855:  return addIdentifier(); 
952        case -892481550:  return getStatusElement();
953        case 1270211384:  return getConnectionType();
954        case 3373707:  return getNameElement();
955        case -2058947787:  return getManagingOrganization();
956        case 951526432:  return addContact(); 
957        case -991726143:  return getPeriod();
958        case 909929960:  return addPayloadType(); 
959        case -1702836932:  return addPayloadMimeTypeElement();
960        case -1147692044:  return getAddressElement();
961        case -1221270899:  return addHeaderElement();
962        default: return super.makeProperty(hash, name);
963        }
964
965      }
966
967      @Override
968      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
969        switch (hash) {
970        case -1618432855: /*identifier*/ return new String[] {"Identifier"};
971        case -892481550: /*status*/ return new String[] {"code"};
972        case 1270211384: /*connectionType*/ return new String[] {"Coding"};
973        case 3373707: /*name*/ return new String[] {"string"};
974        case -2058947787: /*managingOrganization*/ return new String[] {"Reference"};
975        case 951526432: /*contact*/ return new String[] {"ContactPoint"};
976        case -991726143: /*period*/ return new String[] {"Period"};
977        case 909929960: /*payloadType*/ return new String[] {"CodeableConcept"};
978        case -1702836932: /*payloadMimeType*/ return new String[] {"code"};
979        case -1147692044: /*address*/ return new String[] {"url"};
980        case -1221270899: /*header*/ return new String[] {"string"};
981        default: return super.getTypesForProperty(hash, name);
982        }
983
984      }
985
986      @Override
987      public Base addChild(String name) throws FHIRException {
988        if (name.equals("identifier")) {
989          return addIdentifier();
990        }
991        else if (name.equals("status")) {
992          throw new FHIRException("Cannot call addChild on a primitive type Endpoint.status");
993        }
994        else if (name.equals("connectionType")) {
995          this.connectionType = new Coding();
996          return this.connectionType;
997        }
998        else if (name.equals("name")) {
999          throw new FHIRException("Cannot call addChild on a primitive type Endpoint.name");
1000        }
1001        else if (name.equals("managingOrganization")) {
1002          this.managingOrganization = new Reference();
1003          return this.managingOrganization;
1004        }
1005        else if (name.equals("contact")) {
1006          return addContact();
1007        }
1008        else if (name.equals("period")) {
1009          this.period = new Period();
1010          return this.period;
1011        }
1012        else if (name.equals("payloadType")) {
1013          return addPayloadType();
1014        }
1015        else if (name.equals("payloadMimeType")) {
1016          throw new FHIRException("Cannot call addChild on a primitive type Endpoint.payloadMimeType");
1017        }
1018        else if (name.equals("address")) {
1019          throw new FHIRException("Cannot call addChild on a primitive type Endpoint.address");
1020        }
1021        else if (name.equals("header")) {
1022          throw new FHIRException("Cannot call addChild on a primitive type Endpoint.header");
1023        }
1024        else
1025          return super.addChild(name);
1026      }
1027
1028  public String fhirType() {
1029    return "Endpoint";
1030
1031  }
1032
1033      public Endpoint copy() {
1034        Endpoint dst = new Endpoint();
1035        copyValues(dst);
1036        return dst;
1037      }
1038
1039      public void copyValues(Endpoint dst) {
1040        super.copyValues(dst);
1041        if (identifier != null) {
1042          dst.identifier = new ArrayList<Identifier>();
1043          for (Identifier i : identifier)
1044            dst.identifier.add(i.copy());
1045        };
1046        dst.status = status == null ? null : status.copy();
1047        dst.connectionType = connectionType == null ? null : connectionType.copy();
1048        dst.name = name == null ? null : name.copy();
1049        dst.managingOrganization = managingOrganization == null ? null : managingOrganization.copy();
1050        if (contact != null) {
1051          dst.contact = new ArrayList<ContactPoint>();
1052          for (ContactPoint i : contact)
1053            dst.contact.add(i.copy());
1054        };
1055        dst.period = period == null ? null : period.copy();
1056        if (payloadType != null) {
1057          dst.payloadType = new ArrayList<CodeableConcept>();
1058          for (CodeableConcept i : payloadType)
1059            dst.payloadType.add(i.copy());
1060        };
1061        if (payloadMimeType != null) {
1062          dst.payloadMimeType = new ArrayList<CodeType>();
1063          for (CodeType i : payloadMimeType)
1064            dst.payloadMimeType.add(i.copy());
1065        };
1066        dst.address = address == null ? null : address.copy();
1067        if (header != null) {
1068          dst.header = new ArrayList<StringType>();
1069          for (StringType i : header)
1070            dst.header.add(i.copy());
1071        };
1072      }
1073
1074      protected Endpoint typedCopy() {
1075        return copy();
1076      }
1077
1078      @Override
1079      public boolean equalsDeep(Base other_) {
1080        if (!super.equalsDeep(other_))
1081          return false;
1082        if (!(other_ instanceof Endpoint))
1083          return false;
1084        Endpoint o = (Endpoint) other_;
1085        return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(connectionType, o.connectionType, true)
1086           && compareDeep(name, o.name, true) && compareDeep(managingOrganization, o.managingOrganization, true)
1087           && compareDeep(contact, o.contact, true) && compareDeep(period, o.period, true) && compareDeep(payloadType, o.payloadType, true)
1088           && compareDeep(payloadMimeType, o.payloadMimeType, true) && compareDeep(address, o.address, true)
1089           && compareDeep(header, o.header, true);
1090      }
1091
1092      @Override
1093      public boolean equalsShallow(Base other_) {
1094        if (!super.equalsShallow(other_))
1095          return false;
1096        if (!(other_ instanceof Endpoint))
1097          return false;
1098        Endpoint o = (Endpoint) other_;
1099        return compareValues(status, o.status, true) && compareValues(name, o.name, true) && compareValues(payloadMimeType, o.payloadMimeType, true)
1100           && compareValues(address, o.address, true) && compareValues(header, o.header, true);
1101      }
1102
1103      public boolean isEmpty() {
1104        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, connectionType
1105          , name, managingOrganization, contact, period, payloadType, payloadMimeType, address
1106          , header);
1107      }
1108
1109  @Override
1110  public ResourceType getResourceType() {
1111    return ResourceType.Endpoint;
1112   }
1113
1114 /**
1115   * Search parameter: <b>payload-type</b>
1116   * <p>
1117   * Description: <b>The type of content that may be used at this endpoint (e.g. XDS Discharge summaries)</b><br>
1118   * Type: <b>token</b><br>
1119   * Path: <b>Endpoint.payloadType</b><br>
1120   * </p>
1121   */
1122  @SearchParamDefinition(name="payload-type", path="Endpoint.payloadType", description="The type of content that may be used at this endpoint (e.g. XDS Discharge summaries)", type="token" )
1123  public static final String SP_PAYLOAD_TYPE = "payload-type";
1124 /**
1125   * <b>Fluent Client</b> search parameter constant for <b>payload-type</b>
1126   * <p>
1127   * Description: <b>The type of content that may be used at this endpoint (e.g. XDS Discharge summaries)</b><br>
1128   * Type: <b>token</b><br>
1129   * Path: <b>Endpoint.payloadType</b><br>
1130   * </p>
1131   */
1132  public static final ca.uhn.fhir.rest.gclient.TokenClientParam PAYLOAD_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PAYLOAD_TYPE);
1133
1134 /**
1135   * Search parameter: <b>identifier</b>
1136   * <p>
1137   * Description: <b>Identifies this endpoint across multiple systems</b><br>
1138   * Type: <b>token</b><br>
1139   * Path: <b>Endpoint.identifier</b><br>
1140   * </p>
1141   */
1142  @SearchParamDefinition(name="identifier", path="Endpoint.identifier", description="Identifies this endpoint across multiple systems", type="token" )
1143  public static final String SP_IDENTIFIER = "identifier";
1144 /**
1145   * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
1146   * <p>
1147   * Description: <b>Identifies this endpoint across multiple systems</b><br>
1148   * Type: <b>token</b><br>
1149   * Path: <b>Endpoint.identifier</b><br>
1150   * </p>
1151   */
1152  public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
1153
1154 /**
1155   * Search parameter: <b>organization</b>
1156   * <p>
1157   * Description: <b>The organization that is managing the endpoint</b><br>
1158   * Type: <b>reference</b><br>
1159   * Path: <b>Endpoint.managingOrganization</b><br>
1160   * </p>
1161   */
1162  @SearchParamDefinition(name="organization", path="Endpoint.managingOrganization", description="The organization that is managing the endpoint", type="reference", target={Organization.class } )
1163  public static final String SP_ORGANIZATION = "organization";
1164 /**
1165   * <b>Fluent Client</b> search parameter constant for <b>organization</b>
1166   * <p>
1167   * Description: <b>The organization that is managing the endpoint</b><br>
1168   * Type: <b>reference</b><br>
1169   * Path: <b>Endpoint.managingOrganization</b><br>
1170   * </p>
1171   */
1172  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ORGANIZATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ORGANIZATION);
1173
1174/**
1175   * Constant for fluent queries to be used to add include statements. Specifies
1176   * the path value of "<b>Endpoint:organization</b>".
1177   */
1178  public static final ca.uhn.fhir.model.api.Include INCLUDE_ORGANIZATION = new ca.uhn.fhir.model.api.Include("Endpoint:organization").toLocked();
1179
1180 /**
1181   * Search parameter: <b>connection-type</b>
1182   * <p>
1183   * Description: <b>Protocol/Profile/Standard to be used with this endpoint connection</b><br>
1184   * Type: <b>token</b><br>
1185   * Path: <b>Endpoint.connectionType</b><br>
1186   * </p>
1187   */
1188  @SearchParamDefinition(name="connection-type", path="Endpoint.connectionType", description="Protocol/Profile/Standard to be used with this endpoint connection", type="token" )
1189  public static final String SP_CONNECTION_TYPE = "connection-type";
1190 /**
1191   * <b>Fluent Client</b> search parameter constant for <b>connection-type</b>
1192   * <p>
1193   * Description: <b>Protocol/Profile/Standard to be used with this endpoint connection</b><br>
1194   * Type: <b>token</b><br>
1195   * Path: <b>Endpoint.connectionType</b><br>
1196   * </p>
1197   */
1198  public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONNECTION_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONNECTION_TYPE);
1199
1200 /**
1201   * Search parameter: <b>name</b>
1202   * <p>
1203   * Description: <b>A name that this endpoint can be identified by</b><br>
1204   * Type: <b>string</b><br>
1205   * Path: <b>Endpoint.name</b><br>
1206   * </p>
1207   */
1208  @SearchParamDefinition(name="name", path="Endpoint.name", description="A name that this endpoint can be identified by", type="string" )
1209  public static final String SP_NAME = "name";
1210 /**
1211   * <b>Fluent Client</b> search parameter constant for <b>name</b>
1212   * <p>
1213   * Description: <b>A name that this endpoint can be identified by</b><br>
1214   * Type: <b>string</b><br>
1215   * Path: <b>Endpoint.name</b><br>
1216   * </p>
1217   */
1218  public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME);
1219
1220 /**
1221   * Search parameter: <b>status</b>
1222   * <p>
1223   * Description: <b>The current status of the Endpoint (usually expected to be active)</b><br>
1224   * Type: <b>token</b><br>
1225   * Path: <b>Endpoint.status</b><br>
1226   * </p>
1227   */
1228  @SearchParamDefinition(name="status", path="Endpoint.status", description="The current status of the Endpoint (usually expected to be active)", type="token" )
1229  public static final String SP_STATUS = "status";
1230 /**
1231   * <b>Fluent Client</b> search parameter constant for <b>status</b>
1232   * <p>
1233   * Description: <b>The current status of the Endpoint (usually expected to be active)</b><br>
1234   * Type: <b>token</b><br>
1235   * Path: <b>Endpoint.status</b><br>
1236   * </p>
1237   */
1238  public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS);
1239
1240
1241}
1242