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