001package org.hl7.fhir.r5.model;
002
003
004/*
005  Copyright (c) 2011+, HL7, Inc.
006  All rights reserved.
007  
008  Redistribution and use in source and binary forms, with or without modification, \
009  are permitted provided that the following conditions are met:
010  
011   * Redistributions of source code must retain the above copyright notice, this \
012     list of conditions and the following disclaimer.
013   * Redistributions in binary form must reproduce the above copyright notice, \
014     this list of conditions and the following disclaimer in the documentation \
015     and/or other materials provided with the distribution.
016   * Neither the name of HL7 nor the names of its contributors may be used to 
017     endorse or promote products derived from this software without specific 
018     prior written permission.
019  
020  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \
021  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \
022  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \
023  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \
024  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \
025  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \
026  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \
027  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \
028  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \
029  POSSIBILITY OF SUCH DAMAGE.
030  */
031
032// Generated on Tue, Dec 28, 2021 07:16+1100 for FHIR v5.0.0-snapshot1
033
034import java.util.ArrayList;
035import java.util.Date;
036import java.util.List;
037import org.hl7.fhir.r5.model.Enumerations.*;
038import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
039import org.hl7.fhir.exceptions.FHIRException;
040import org.hl7.fhir.instance.model.api.ICompositeType;
041import ca.uhn.fhir.model.api.annotation.ResourceDef;
042import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
043import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
044import ca.uhn.fhir.model.api.annotation.Child;
045import ca.uhn.fhir.model.api.annotation.ChildOrder;
046import ca.uhn.fhir.model.api.annotation.Description;
047import ca.uhn.fhir.model.api.annotation.Block;
048
049/**
050 * Defines an affiliation/assotiation/relationship between 2 distinct organizations, that is not a part-of relationship/sub-division relationship.
051 */
052@ResourceDef(name="OrganizationAffiliation", profile="http://hl7.org/fhir/StructureDefinition/OrganizationAffiliation")
053public class OrganizationAffiliation extends DomainResource {
054
055    /**
056     * Business identifiers that are specific to this role.
057     */
058    @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
059    @Description(shortDefinition="Business identifiers that are specific to this role", formalDefinition="Business identifiers that are specific to this role." )
060    protected List<Identifier> identifier;
061
062    /**
063     * Whether this organization affiliation record is in active use.
064     */
065    @Child(name = "active", type = {BooleanType.class}, order=1, min=0, max=1, modifier=false, summary=true)
066    @Description(shortDefinition="Whether this organization affiliation record is in active use", formalDefinition="Whether this organization affiliation record is in active use." )
067    protected BooleanType active;
068
069    /**
070     * The period during which the participatingOrganization is affiliated with the primary organization.
071     */
072    @Child(name = "period", type = {Period.class}, order=2, min=0, max=1, modifier=false, summary=true)
073    @Description(shortDefinition="The period during which the participatingOrganization is affiliated with the primary organization", formalDefinition="The period during which the participatingOrganization is affiliated with the primary organization." )
074    protected Period period;
075
076    /**
077     * Organization where the role is available (primary organization/has members).
078     */
079    @Child(name = "organization", type = {Organization.class}, order=3, min=0, max=1, modifier=false, summary=true)
080    @Description(shortDefinition="Organization where the role is available", formalDefinition="Organization where the role is available (primary organization/has members)." )
081    protected Reference organization;
082
083    /**
084     * The Participating Organization provides/performs the role(s) defined by the code to the Primary Organization (e.g. providing services or is a member of).
085     */
086    @Child(name = "participatingOrganization", type = {Organization.class}, order=4, min=0, max=1, modifier=false, summary=true)
087    @Description(shortDefinition="Organization that provides/performs the role (e.g. providing services or is a member of)", formalDefinition="The Participating Organization provides/performs the role(s) defined by the code to the Primary Organization (e.g. providing services or is a member of)." )
088    protected Reference participatingOrganization;
089
090    /**
091     * Health insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined).
092     */
093    @Child(name = "network", type = {Organization.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
094    @Description(shortDefinition="Health insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined)", formalDefinition="Health insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined)." )
095    protected List<Reference> network;
096
097    /**
098     * Definition of the role the participatingOrganization plays in the association.
099     */
100    @Child(name = "code", type = {CodeableConcept.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
101    @Description(shortDefinition="Definition of the role the participatingOrganization plays", formalDefinition="Definition of the role the participatingOrganization plays in the association." )
102    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/organization-role")
103    protected List<CodeableConcept> code;
104
105    /**
106     * Specific specialty of the participatingOrganization in the context of the role.
107     */
108    @Child(name = "specialty", type = {CodeableConcept.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
109    @Description(shortDefinition="Specific specialty of the participatingOrganization in the context of the role", formalDefinition="Specific specialty of the participatingOrganization in the context of the role." )
110    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/c80-practice-codes")
111    protected List<CodeableConcept> specialty;
112
113    /**
114     * The location(s) at which the role occurs.
115     */
116    @Child(name = "location", type = {Location.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
117    @Description(shortDefinition="The location(s) at which the role occurs", formalDefinition="The location(s) at which the role occurs." )
118    protected List<Reference> location;
119
120    /**
121     * Healthcare services provided through the role.
122     */
123    @Child(name = "healthcareService", type = {HealthcareService.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
124    @Description(shortDefinition="Healthcare services provided through the role", formalDefinition="Healthcare services provided through the role." )
125    protected List<Reference> healthcareService;
126
127    /**
128     * Contact details at the participatingOrganization relevant to this Affiliation.
129     */
130    @Child(name = "telecom", type = {ContactPoint.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
131    @Description(shortDefinition="Contact details at the participatingOrganization relevant to this Affiliation", formalDefinition="Contact details at the participatingOrganization relevant to this Affiliation." )
132    protected List<ContactPoint> telecom;
133
134    /**
135     * Technical endpoints providing access to services operated for this role.
136     */
137    @Child(name = "endpoint", type = {Endpoint.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
138    @Description(shortDefinition="Technical endpoints providing access to services operated for this role", formalDefinition="Technical endpoints providing access to services operated for this role." )
139    protected List<Reference> endpoint;
140
141    private static final long serialVersionUID = 522401879L;
142
143  /**
144   * Constructor
145   */
146    public OrganizationAffiliation() {
147      super();
148    }
149
150    /**
151     * @return {@link #identifier} (Business identifiers that are specific to this role.)
152     */
153    public List<Identifier> getIdentifier() { 
154      if (this.identifier == null)
155        this.identifier = new ArrayList<Identifier>();
156      return this.identifier;
157    }
158
159    /**
160     * @return Returns a reference to <code>this</code> for easy method chaining
161     */
162    public OrganizationAffiliation setIdentifier(List<Identifier> theIdentifier) { 
163      this.identifier = theIdentifier;
164      return this;
165    }
166
167    public boolean hasIdentifier() { 
168      if (this.identifier == null)
169        return false;
170      for (Identifier item : this.identifier)
171        if (!item.isEmpty())
172          return true;
173      return false;
174    }
175
176    public Identifier addIdentifier() { //3
177      Identifier t = new Identifier();
178      if (this.identifier == null)
179        this.identifier = new ArrayList<Identifier>();
180      this.identifier.add(t);
181      return t;
182    }
183
184    public OrganizationAffiliation addIdentifier(Identifier t) { //3
185      if (t == null)
186        return this;
187      if (this.identifier == null)
188        this.identifier = new ArrayList<Identifier>();
189      this.identifier.add(t);
190      return this;
191    }
192
193    /**
194     * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3}
195     */
196    public Identifier getIdentifierFirstRep() { 
197      if (getIdentifier().isEmpty()) {
198        addIdentifier();
199      }
200      return getIdentifier().get(0);
201    }
202
203    /**
204     * @return {@link #active} (Whether this organization affiliation record is in active use.). This is the underlying object with id, value and extensions. The accessor "getActive" gives direct access to the value
205     */
206    public BooleanType getActiveElement() { 
207      if (this.active == null)
208        if (Configuration.errorOnAutoCreate())
209          throw new Error("Attempt to auto-create OrganizationAffiliation.active");
210        else if (Configuration.doAutoCreate())
211          this.active = new BooleanType(); // bb
212      return this.active;
213    }
214
215    public boolean hasActiveElement() { 
216      return this.active != null && !this.active.isEmpty();
217    }
218
219    public boolean hasActive() { 
220      return this.active != null && !this.active.isEmpty();
221    }
222
223    /**
224     * @param value {@link #active} (Whether this organization affiliation record is in active use.). This is the underlying object with id, value and extensions. The accessor "getActive" gives direct access to the value
225     */
226    public OrganizationAffiliation setActiveElement(BooleanType value) { 
227      this.active = value;
228      return this;
229    }
230
231    /**
232     * @return Whether this organization affiliation record is in active use.
233     */
234    public boolean getActive() { 
235      return this.active == null || this.active.isEmpty() ? false : this.active.getValue();
236    }
237
238    /**
239     * @param value Whether this organization affiliation record is in active use.
240     */
241    public OrganizationAffiliation setActive(boolean value) { 
242        if (this.active == null)
243          this.active = new BooleanType();
244        this.active.setValue(value);
245      return this;
246    }
247
248    /**
249     * @return {@link #period} (The period during which the participatingOrganization is affiliated with the primary organization.)
250     */
251    public Period getPeriod() { 
252      if (this.period == null)
253        if (Configuration.errorOnAutoCreate())
254          throw new Error("Attempt to auto-create OrganizationAffiliation.period");
255        else if (Configuration.doAutoCreate())
256          this.period = new Period(); // cc
257      return this.period;
258    }
259
260    public boolean hasPeriod() { 
261      return this.period != null && !this.period.isEmpty();
262    }
263
264    /**
265     * @param value {@link #period} (The period during which the participatingOrganization is affiliated with the primary organization.)
266     */
267    public OrganizationAffiliation setPeriod(Period value) { 
268      this.period = value;
269      return this;
270    }
271
272    /**
273     * @return {@link #organization} (Organization where the role is available (primary organization/has members).)
274     */
275    public Reference getOrganization() { 
276      if (this.organization == null)
277        if (Configuration.errorOnAutoCreate())
278          throw new Error("Attempt to auto-create OrganizationAffiliation.organization");
279        else if (Configuration.doAutoCreate())
280          this.organization = new Reference(); // cc
281      return this.organization;
282    }
283
284    public boolean hasOrganization() { 
285      return this.organization != null && !this.organization.isEmpty();
286    }
287
288    /**
289     * @param value {@link #organization} (Organization where the role is available (primary organization/has members).)
290     */
291    public OrganizationAffiliation setOrganization(Reference value) { 
292      this.organization = value;
293      return this;
294    }
295
296    /**
297     * @return {@link #participatingOrganization} (The Participating Organization provides/performs the role(s) defined by the code to the Primary Organization (e.g. providing services or is a member of).)
298     */
299    public Reference getParticipatingOrganization() { 
300      if (this.participatingOrganization == null)
301        if (Configuration.errorOnAutoCreate())
302          throw new Error("Attempt to auto-create OrganizationAffiliation.participatingOrganization");
303        else if (Configuration.doAutoCreate())
304          this.participatingOrganization = new Reference(); // cc
305      return this.participatingOrganization;
306    }
307
308    public boolean hasParticipatingOrganization() { 
309      return this.participatingOrganization != null && !this.participatingOrganization.isEmpty();
310    }
311
312    /**
313     * @param value {@link #participatingOrganization} (The Participating Organization provides/performs the role(s) defined by the code to the Primary Organization (e.g. providing services or is a member of).)
314     */
315    public OrganizationAffiliation setParticipatingOrganization(Reference value) { 
316      this.participatingOrganization = value;
317      return this;
318    }
319
320    /**
321     * @return {@link #network} (Health insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined).)
322     */
323    public List<Reference> getNetwork() { 
324      if (this.network == null)
325        this.network = new ArrayList<Reference>();
326      return this.network;
327    }
328
329    /**
330     * @return Returns a reference to <code>this</code> for easy method chaining
331     */
332    public OrganizationAffiliation setNetwork(List<Reference> theNetwork) { 
333      this.network = theNetwork;
334      return this;
335    }
336
337    public boolean hasNetwork() { 
338      if (this.network == null)
339        return false;
340      for (Reference item : this.network)
341        if (!item.isEmpty())
342          return true;
343      return false;
344    }
345
346    public Reference addNetwork() { //3
347      Reference t = new Reference();
348      if (this.network == null)
349        this.network = new ArrayList<Reference>();
350      this.network.add(t);
351      return t;
352    }
353
354    public OrganizationAffiliation addNetwork(Reference t) { //3
355      if (t == null)
356        return this;
357      if (this.network == null)
358        this.network = new ArrayList<Reference>();
359      this.network.add(t);
360      return this;
361    }
362
363    /**
364     * @return The first repetition of repeating field {@link #network}, creating it if it does not already exist {3}
365     */
366    public Reference getNetworkFirstRep() { 
367      if (getNetwork().isEmpty()) {
368        addNetwork();
369      }
370      return getNetwork().get(0);
371    }
372
373    /**
374     * @return {@link #code} (Definition of the role the participatingOrganization plays in the association.)
375     */
376    public List<CodeableConcept> getCode() { 
377      if (this.code == null)
378        this.code = new ArrayList<CodeableConcept>();
379      return this.code;
380    }
381
382    /**
383     * @return Returns a reference to <code>this</code> for easy method chaining
384     */
385    public OrganizationAffiliation setCode(List<CodeableConcept> theCode) { 
386      this.code = theCode;
387      return this;
388    }
389
390    public boolean hasCode() { 
391      if (this.code == null)
392        return false;
393      for (CodeableConcept item : this.code)
394        if (!item.isEmpty())
395          return true;
396      return false;
397    }
398
399    public CodeableConcept addCode() { //3
400      CodeableConcept t = new CodeableConcept();
401      if (this.code == null)
402        this.code = new ArrayList<CodeableConcept>();
403      this.code.add(t);
404      return t;
405    }
406
407    public OrganizationAffiliation addCode(CodeableConcept t) { //3
408      if (t == null)
409        return this;
410      if (this.code == null)
411        this.code = new ArrayList<CodeableConcept>();
412      this.code.add(t);
413      return this;
414    }
415
416    /**
417     * @return The first repetition of repeating field {@link #code}, creating it if it does not already exist {3}
418     */
419    public CodeableConcept getCodeFirstRep() { 
420      if (getCode().isEmpty()) {
421        addCode();
422      }
423      return getCode().get(0);
424    }
425
426    /**
427     * @return {@link #specialty} (Specific specialty of the participatingOrganization in the context of the role.)
428     */
429    public List<CodeableConcept> getSpecialty() { 
430      if (this.specialty == null)
431        this.specialty = new ArrayList<CodeableConcept>();
432      return this.specialty;
433    }
434
435    /**
436     * @return Returns a reference to <code>this</code> for easy method chaining
437     */
438    public OrganizationAffiliation setSpecialty(List<CodeableConcept> theSpecialty) { 
439      this.specialty = theSpecialty;
440      return this;
441    }
442
443    public boolean hasSpecialty() { 
444      if (this.specialty == null)
445        return false;
446      for (CodeableConcept item : this.specialty)
447        if (!item.isEmpty())
448          return true;
449      return false;
450    }
451
452    public CodeableConcept addSpecialty() { //3
453      CodeableConcept t = new CodeableConcept();
454      if (this.specialty == null)
455        this.specialty = new ArrayList<CodeableConcept>();
456      this.specialty.add(t);
457      return t;
458    }
459
460    public OrganizationAffiliation addSpecialty(CodeableConcept t) { //3
461      if (t == null)
462        return this;
463      if (this.specialty == null)
464        this.specialty = new ArrayList<CodeableConcept>();
465      this.specialty.add(t);
466      return this;
467    }
468
469    /**
470     * @return The first repetition of repeating field {@link #specialty}, creating it if it does not already exist {3}
471     */
472    public CodeableConcept getSpecialtyFirstRep() { 
473      if (getSpecialty().isEmpty()) {
474        addSpecialty();
475      }
476      return getSpecialty().get(0);
477    }
478
479    /**
480     * @return {@link #location} (The location(s) at which the role occurs.)
481     */
482    public List<Reference> getLocation() { 
483      if (this.location == null)
484        this.location = new ArrayList<Reference>();
485      return this.location;
486    }
487
488    /**
489     * @return Returns a reference to <code>this</code> for easy method chaining
490     */
491    public OrganizationAffiliation setLocation(List<Reference> theLocation) { 
492      this.location = theLocation;
493      return this;
494    }
495
496    public boolean hasLocation() { 
497      if (this.location == null)
498        return false;
499      for (Reference item : this.location)
500        if (!item.isEmpty())
501          return true;
502      return false;
503    }
504
505    public Reference addLocation() { //3
506      Reference t = new Reference();
507      if (this.location == null)
508        this.location = new ArrayList<Reference>();
509      this.location.add(t);
510      return t;
511    }
512
513    public OrganizationAffiliation addLocation(Reference t) { //3
514      if (t == null)
515        return this;
516      if (this.location == null)
517        this.location = new ArrayList<Reference>();
518      this.location.add(t);
519      return this;
520    }
521
522    /**
523     * @return The first repetition of repeating field {@link #location}, creating it if it does not already exist {3}
524     */
525    public Reference getLocationFirstRep() { 
526      if (getLocation().isEmpty()) {
527        addLocation();
528      }
529      return getLocation().get(0);
530    }
531
532    /**
533     * @return {@link #healthcareService} (Healthcare services provided through the role.)
534     */
535    public List<Reference> getHealthcareService() { 
536      if (this.healthcareService == null)
537        this.healthcareService = new ArrayList<Reference>();
538      return this.healthcareService;
539    }
540
541    /**
542     * @return Returns a reference to <code>this</code> for easy method chaining
543     */
544    public OrganizationAffiliation setHealthcareService(List<Reference> theHealthcareService) { 
545      this.healthcareService = theHealthcareService;
546      return this;
547    }
548
549    public boolean hasHealthcareService() { 
550      if (this.healthcareService == null)
551        return false;
552      for (Reference item : this.healthcareService)
553        if (!item.isEmpty())
554          return true;
555      return false;
556    }
557
558    public Reference addHealthcareService() { //3
559      Reference t = new Reference();
560      if (this.healthcareService == null)
561        this.healthcareService = new ArrayList<Reference>();
562      this.healthcareService.add(t);
563      return t;
564    }
565
566    public OrganizationAffiliation addHealthcareService(Reference t) { //3
567      if (t == null)
568        return this;
569      if (this.healthcareService == null)
570        this.healthcareService = new ArrayList<Reference>();
571      this.healthcareService.add(t);
572      return this;
573    }
574
575    /**
576     * @return The first repetition of repeating field {@link #healthcareService}, creating it if it does not already exist {3}
577     */
578    public Reference getHealthcareServiceFirstRep() { 
579      if (getHealthcareService().isEmpty()) {
580        addHealthcareService();
581      }
582      return getHealthcareService().get(0);
583    }
584
585    /**
586     * @return {@link #telecom} (Contact details at the participatingOrganization relevant to this Affiliation.)
587     */
588    public List<ContactPoint> getTelecom() { 
589      if (this.telecom == null)
590        this.telecom = new ArrayList<ContactPoint>();
591      return this.telecom;
592    }
593
594    /**
595     * @return Returns a reference to <code>this</code> for easy method chaining
596     */
597    public OrganizationAffiliation setTelecom(List<ContactPoint> theTelecom) { 
598      this.telecom = theTelecom;
599      return this;
600    }
601
602    public boolean hasTelecom() { 
603      if (this.telecom == null)
604        return false;
605      for (ContactPoint item : this.telecom)
606        if (!item.isEmpty())
607          return true;
608      return false;
609    }
610
611    public ContactPoint addTelecom() { //3
612      ContactPoint t = new ContactPoint();
613      if (this.telecom == null)
614        this.telecom = new ArrayList<ContactPoint>();
615      this.telecom.add(t);
616      return t;
617    }
618
619    public OrganizationAffiliation addTelecom(ContactPoint t) { //3
620      if (t == null)
621        return this;
622      if (this.telecom == null)
623        this.telecom = new ArrayList<ContactPoint>();
624      this.telecom.add(t);
625      return this;
626    }
627
628    /**
629     * @return The first repetition of repeating field {@link #telecom}, creating it if it does not already exist {3}
630     */
631    public ContactPoint getTelecomFirstRep() { 
632      if (getTelecom().isEmpty()) {
633        addTelecom();
634      }
635      return getTelecom().get(0);
636    }
637
638    /**
639     * @return {@link #endpoint} (Technical endpoints providing access to services operated for this role.)
640     */
641    public List<Reference> getEndpoint() { 
642      if (this.endpoint == null)
643        this.endpoint = new ArrayList<Reference>();
644      return this.endpoint;
645    }
646
647    /**
648     * @return Returns a reference to <code>this</code> for easy method chaining
649     */
650    public OrganizationAffiliation setEndpoint(List<Reference> theEndpoint) { 
651      this.endpoint = theEndpoint;
652      return this;
653    }
654
655    public boolean hasEndpoint() { 
656      if (this.endpoint == null)
657        return false;
658      for (Reference item : this.endpoint)
659        if (!item.isEmpty())
660          return true;
661      return false;
662    }
663
664    public Reference addEndpoint() { //3
665      Reference t = new Reference();
666      if (this.endpoint == null)
667        this.endpoint = new ArrayList<Reference>();
668      this.endpoint.add(t);
669      return t;
670    }
671
672    public OrganizationAffiliation addEndpoint(Reference t) { //3
673      if (t == null)
674        return this;
675      if (this.endpoint == null)
676        this.endpoint = new ArrayList<Reference>();
677      this.endpoint.add(t);
678      return this;
679    }
680
681    /**
682     * @return The first repetition of repeating field {@link #endpoint}, creating it if it does not already exist {3}
683     */
684    public Reference getEndpointFirstRep() { 
685      if (getEndpoint().isEmpty()) {
686        addEndpoint();
687      }
688      return getEndpoint().get(0);
689    }
690
691      protected void listChildren(List<Property> children) {
692        super.listChildren(children);
693        children.add(new Property("identifier", "Identifier", "Business identifiers that are specific to this role.", 0, java.lang.Integer.MAX_VALUE, identifier));
694        children.add(new Property("active", "boolean", "Whether this organization affiliation record is in active use.", 0, 1, active));
695        children.add(new Property("period", "Period", "The period during which the participatingOrganization is affiliated with the primary organization.", 0, 1, period));
696        children.add(new Property("organization", "Reference(Organization)", "Organization where the role is available (primary organization/has members).", 0, 1, organization));
697        children.add(new Property("participatingOrganization", "Reference(Organization)", "The Participating Organization provides/performs the role(s) defined by the code to the Primary Organization (e.g. providing services or is a member of).", 0, 1, participatingOrganization));
698        children.add(new Property("network", "Reference(Organization)", "Health insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined).", 0, java.lang.Integer.MAX_VALUE, network));
699        children.add(new Property("code", "CodeableConcept", "Definition of the role the participatingOrganization plays in the association.", 0, java.lang.Integer.MAX_VALUE, code));
700        children.add(new Property("specialty", "CodeableConcept", "Specific specialty of the participatingOrganization in the context of the role.", 0, java.lang.Integer.MAX_VALUE, specialty));
701        children.add(new Property("location", "Reference(Location)", "The location(s) at which the role occurs.", 0, java.lang.Integer.MAX_VALUE, location));
702        children.add(new Property("healthcareService", "Reference(HealthcareService)", "Healthcare services provided through the role.", 0, java.lang.Integer.MAX_VALUE, healthcareService));
703        children.add(new Property("telecom", "ContactPoint", "Contact details at the participatingOrganization relevant to this Affiliation.", 0, java.lang.Integer.MAX_VALUE, telecom));
704        children.add(new Property("endpoint", "Reference(Endpoint)", "Technical endpoints providing access to services operated for this role.", 0, java.lang.Integer.MAX_VALUE, endpoint));
705      }
706
707      @Override
708      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
709        switch (_hash) {
710        case -1618432855: /*identifier*/  return new Property("identifier", "Identifier", "Business identifiers that are specific to this role.", 0, java.lang.Integer.MAX_VALUE, identifier);
711        case -1422950650: /*active*/  return new Property("active", "boolean", "Whether this organization affiliation record is in active use.", 0, 1, active);
712        case -991726143: /*period*/  return new Property("period", "Period", "The period during which the participatingOrganization is affiliated with the primary organization.", 0, 1, period);
713        case 1178922291: /*organization*/  return new Property("organization", "Reference(Organization)", "Organization where the role is available (primary organization/has members).", 0, 1, organization);
714        case 1593310702: /*participatingOrganization*/  return new Property("participatingOrganization", "Reference(Organization)", "The Participating Organization provides/performs the role(s) defined by the code to the Primary Organization (e.g. providing services or is a member of).", 0, 1, participatingOrganization);
715        case 1843485230: /*network*/  return new Property("network", "Reference(Organization)", "Health insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined).", 0, java.lang.Integer.MAX_VALUE, network);
716        case 3059181: /*code*/  return new Property("code", "CodeableConcept", "Definition of the role the participatingOrganization plays in the association.", 0, java.lang.Integer.MAX_VALUE, code);
717        case -1694759682: /*specialty*/  return new Property("specialty", "CodeableConcept", "Specific specialty of the participatingOrganization in the context of the role.", 0, java.lang.Integer.MAX_VALUE, specialty);
718        case 1901043637: /*location*/  return new Property("location", "Reference(Location)", "The location(s) at which the role occurs.", 0, java.lang.Integer.MAX_VALUE, location);
719        case 1289661064: /*healthcareService*/  return new Property("healthcareService", "Reference(HealthcareService)", "Healthcare services provided through the role.", 0, java.lang.Integer.MAX_VALUE, healthcareService);
720        case -1429363305: /*telecom*/  return new Property("telecom", "ContactPoint", "Contact details at the participatingOrganization relevant to this Affiliation.", 0, java.lang.Integer.MAX_VALUE, telecom);
721        case 1741102485: /*endpoint*/  return new Property("endpoint", "Reference(Endpoint)", "Technical endpoints providing access to services operated for this role.", 0, java.lang.Integer.MAX_VALUE, endpoint);
722        default: return super.getNamedProperty(_hash, _name, _checkValid);
723        }
724
725      }
726
727      @Override
728      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
729        switch (hash) {
730        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier
731        case -1422950650: /*active*/ return this.active == null ? new Base[0] : new Base[] {this.active}; // BooleanType
732        case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period
733        case 1178922291: /*organization*/ return this.organization == null ? new Base[0] : new Base[] {this.organization}; // Reference
734        case 1593310702: /*participatingOrganization*/ return this.participatingOrganization == null ? new Base[0] : new Base[] {this.participatingOrganization}; // Reference
735        case 1843485230: /*network*/ return this.network == null ? new Base[0] : this.network.toArray(new Base[this.network.size()]); // Reference
736        case 3059181: /*code*/ return this.code == null ? new Base[0] : this.code.toArray(new Base[this.code.size()]); // CodeableConcept
737        case -1694759682: /*specialty*/ return this.specialty == null ? new Base[0] : this.specialty.toArray(new Base[this.specialty.size()]); // CodeableConcept
738        case 1901043637: /*location*/ return this.location == null ? new Base[0] : this.location.toArray(new Base[this.location.size()]); // Reference
739        case 1289661064: /*healthcareService*/ return this.healthcareService == null ? new Base[0] : this.healthcareService.toArray(new Base[this.healthcareService.size()]); // Reference
740        case -1429363305: /*telecom*/ return this.telecom == null ? new Base[0] : this.telecom.toArray(new Base[this.telecom.size()]); // ContactPoint
741        case 1741102485: /*endpoint*/ return this.endpoint == null ? new Base[0] : this.endpoint.toArray(new Base[this.endpoint.size()]); // Reference
742        default: return super.getProperty(hash, name, checkValid);
743        }
744
745      }
746
747      @Override
748      public Base setProperty(int hash, String name, Base value) throws FHIRException {
749        switch (hash) {
750        case -1618432855: // identifier
751          this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier
752          return value;
753        case -1422950650: // active
754          this.active = TypeConvertor.castToBoolean(value); // BooleanType
755          return value;
756        case -991726143: // period
757          this.period = TypeConvertor.castToPeriod(value); // Period
758          return value;
759        case 1178922291: // organization
760          this.organization = TypeConvertor.castToReference(value); // Reference
761          return value;
762        case 1593310702: // participatingOrganization
763          this.participatingOrganization = TypeConvertor.castToReference(value); // Reference
764          return value;
765        case 1843485230: // network
766          this.getNetwork().add(TypeConvertor.castToReference(value)); // Reference
767          return value;
768        case 3059181: // code
769          this.getCode().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept
770          return value;
771        case -1694759682: // specialty
772          this.getSpecialty().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept
773          return value;
774        case 1901043637: // location
775          this.getLocation().add(TypeConvertor.castToReference(value)); // Reference
776          return value;
777        case 1289661064: // healthcareService
778          this.getHealthcareService().add(TypeConvertor.castToReference(value)); // Reference
779          return value;
780        case -1429363305: // telecom
781          this.getTelecom().add(TypeConvertor.castToContactPoint(value)); // ContactPoint
782          return value;
783        case 1741102485: // endpoint
784          this.getEndpoint().add(TypeConvertor.castToReference(value)); // Reference
785          return value;
786        default: return super.setProperty(hash, name, value);
787        }
788
789      }
790
791      @Override
792      public Base setProperty(String name, Base value) throws FHIRException {
793        if (name.equals("identifier")) {
794          this.getIdentifier().add(TypeConvertor.castToIdentifier(value));
795        } else if (name.equals("active")) {
796          this.active = TypeConvertor.castToBoolean(value); // BooleanType
797        } else if (name.equals("period")) {
798          this.period = TypeConvertor.castToPeriod(value); // Period
799        } else if (name.equals("organization")) {
800          this.organization = TypeConvertor.castToReference(value); // Reference
801        } else if (name.equals("participatingOrganization")) {
802          this.participatingOrganization = TypeConvertor.castToReference(value); // Reference
803        } else if (name.equals("network")) {
804          this.getNetwork().add(TypeConvertor.castToReference(value));
805        } else if (name.equals("code")) {
806          this.getCode().add(TypeConvertor.castToCodeableConcept(value));
807        } else if (name.equals("specialty")) {
808          this.getSpecialty().add(TypeConvertor.castToCodeableConcept(value));
809        } else if (name.equals("location")) {
810          this.getLocation().add(TypeConvertor.castToReference(value));
811        } else if (name.equals("healthcareService")) {
812          this.getHealthcareService().add(TypeConvertor.castToReference(value));
813        } else if (name.equals("telecom")) {
814          this.getTelecom().add(TypeConvertor.castToContactPoint(value));
815        } else if (name.equals("endpoint")) {
816          this.getEndpoint().add(TypeConvertor.castToReference(value));
817        } else
818          return super.setProperty(name, value);
819        return value;
820      }
821
822      @Override
823      public Base makeProperty(int hash, String name) throws FHIRException {
824        switch (hash) {
825        case -1618432855:  return addIdentifier(); 
826        case -1422950650:  return getActiveElement();
827        case -991726143:  return getPeriod();
828        case 1178922291:  return getOrganization();
829        case 1593310702:  return getParticipatingOrganization();
830        case 1843485230:  return addNetwork(); 
831        case 3059181:  return addCode(); 
832        case -1694759682:  return addSpecialty(); 
833        case 1901043637:  return addLocation(); 
834        case 1289661064:  return addHealthcareService(); 
835        case -1429363305:  return addTelecom(); 
836        case 1741102485:  return addEndpoint(); 
837        default: return super.makeProperty(hash, name);
838        }
839
840      }
841
842      @Override
843      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
844        switch (hash) {
845        case -1618432855: /*identifier*/ return new String[] {"Identifier"};
846        case -1422950650: /*active*/ return new String[] {"boolean"};
847        case -991726143: /*period*/ return new String[] {"Period"};
848        case 1178922291: /*organization*/ return new String[] {"Reference"};
849        case 1593310702: /*participatingOrganization*/ return new String[] {"Reference"};
850        case 1843485230: /*network*/ return new String[] {"Reference"};
851        case 3059181: /*code*/ return new String[] {"CodeableConcept"};
852        case -1694759682: /*specialty*/ return new String[] {"CodeableConcept"};
853        case 1901043637: /*location*/ return new String[] {"Reference"};
854        case 1289661064: /*healthcareService*/ return new String[] {"Reference"};
855        case -1429363305: /*telecom*/ return new String[] {"ContactPoint"};
856        case 1741102485: /*endpoint*/ return new String[] {"Reference"};
857        default: return super.getTypesForProperty(hash, name);
858        }
859
860      }
861
862      @Override
863      public Base addChild(String name) throws FHIRException {
864        if (name.equals("identifier")) {
865          return addIdentifier();
866        }
867        else if (name.equals("active")) {
868          throw new FHIRException("Cannot call addChild on a primitive type OrganizationAffiliation.active");
869        }
870        else if (name.equals("period")) {
871          this.period = new Period();
872          return this.period;
873        }
874        else if (name.equals("organization")) {
875          this.organization = new Reference();
876          return this.organization;
877        }
878        else if (name.equals("participatingOrganization")) {
879          this.participatingOrganization = new Reference();
880          return this.participatingOrganization;
881        }
882        else if (name.equals("network")) {
883          return addNetwork();
884        }
885        else if (name.equals("code")) {
886          return addCode();
887        }
888        else if (name.equals("specialty")) {
889          return addSpecialty();
890        }
891        else if (name.equals("location")) {
892          return addLocation();
893        }
894        else if (name.equals("healthcareService")) {
895          return addHealthcareService();
896        }
897        else if (name.equals("telecom")) {
898          return addTelecom();
899        }
900        else if (name.equals("endpoint")) {
901          return addEndpoint();
902        }
903        else
904          return super.addChild(name);
905      }
906
907  public String fhirType() {
908    return "OrganizationAffiliation";
909
910  }
911
912      public OrganizationAffiliation copy() {
913        OrganizationAffiliation dst = new OrganizationAffiliation();
914        copyValues(dst);
915        return dst;
916      }
917
918      public void copyValues(OrganizationAffiliation dst) {
919        super.copyValues(dst);
920        if (identifier != null) {
921          dst.identifier = new ArrayList<Identifier>();
922          for (Identifier i : identifier)
923            dst.identifier.add(i.copy());
924        };
925        dst.active = active == null ? null : active.copy();
926        dst.period = period == null ? null : period.copy();
927        dst.organization = organization == null ? null : organization.copy();
928        dst.participatingOrganization = participatingOrganization == null ? null : participatingOrganization.copy();
929        if (network != null) {
930          dst.network = new ArrayList<Reference>();
931          for (Reference i : network)
932            dst.network.add(i.copy());
933        };
934        if (code != null) {
935          dst.code = new ArrayList<CodeableConcept>();
936          for (CodeableConcept i : code)
937            dst.code.add(i.copy());
938        };
939        if (specialty != null) {
940          dst.specialty = new ArrayList<CodeableConcept>();
941          for (CodeableConcept i : specialty)
942            dst.specialty.add(i.copy());
943        };
944        if (location != null) {
945          dst.location = new ArrayList<Reference>();
946          for (Reference i : location)
947            dst.location.add(i.copy());
948        };
949        if (healthcareService != null) {
950          dst.healthcareService = new ArrayList<Reference>();
951          for (Reference i : healthcareService)
952            dst.healthcareService.add(i.copy());
953        };
954        if (telecom != null) {
955          dst.telecom = new ArrayList<ContactPoint>();
956          for (ContactPoint i : telecom)
957            dst.telecom.add(i.copy());
958        };
959        if (endpoint != null) {
960          dst.endpoint = new ArrayList<Reference>();
961          for (Reference i : endpoint)
962            dst.endpoint.add(i.copy());
963        };
964      }
965
966      protected OrganizationAffiliation typedCopy() {
967        return copy();
968      }
969
970      @Override
971      public boolean equalsDeep(Base other_) {
972        if (!super.equalsDeep(other_))
973          return false;
974        if (!(other_ instanceof OrganizationAffiliation))
975          return false;
976        OrganizationAffiliation o = (OrganizationAffiliation) other_;
977        return compareDeep(identifier, o.identifier, true) && compareDeep(active, o.active, true) && compareDeep(period, o.period, true)
978           && compareDeep(organization, o.organization, true) && compareDeep(participatingOrganization, o.participatingOrganization, true)
979           && compareDeep(network, o.network, true) && compareDeep(code, o.code, true) && compareDeep(specialty, o.specialty, true)
980           && compareDeep(location, o.location, true) && compareDeep(healthcareService, o.healthcareService, true)
981           && compareDeep(telecom, o.telecom, true) && compareDeep(endpoint, o.endpoint, true);
982      }
983
984      @Override
985      public boolean equalsShallow(Base other_) {
986        if (!super.equalsShallow(other_))
987          return false;
988        if (!(other_ instanceof OrganizationAffiliation))
989          return false;
990        OrganizationAffiliation o = (OrganizationAffiliation) other_;
991        return compareValues(active, o.active, true);
992      }
993
994      public boolean isEmpty() {
995        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, active, period
996          , organization, participatingOrganization, network, code, specialty, location, healthcareService
997          , telecom, endpoint);
998      }
999
1000  @Override
1001  public ResourceType getResourceType() {
1002    return ResourceType.OrganizationAffiliation;
1003   }
1004
1005 /**
1006   * Search parameter: <b>active</b>
1007   * <p>
1008   * Description: <b>Whether this organization affiliation record is in active use</b><br>
1009   * Type: <b>token</b><br>
1010   * Path: <b>OrganizationAffiliation.active</b><br>
1011   * </p>
1012   */
1013  @SearchParamDefinition(name="active", path="OrganizationAffiliation.active", description="Whether this organization affiliation record is in active use", type="token" )
1014  public static final String SP_ACTIVE = "active";
1015 /**
1016   * <b>Fluent Client</b> search parameter constant for <b>active</b>
1017   * <p>
1018   * Description: <b>Whether this organization affiliation record is in active use</b><br>
1019   * Type: <b>token</b><br>
1020   * Path: <b>OrganizationAffiliation.active</b><br>
1021   * </p>
1022   */
1023  public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACTIVE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ACTIVE);
1024
1025 /**
1026   * Search parameter: <b>date</b>
1027   * <p>
1028   * Description: <b>The period during which the participatingOrganization is affiliated with the primary organization</b><br>
1029   * Type: <b>date</b><br>
1030   * Path: <b>OrganizationAffiliation.period</b><br>
1031   * </p>
1032   */
1033  @SearchParamDefinition(name="date", path="OrganizationAffiliation.period", description="The period during which the participatingOrganization is affiliated with the primary organization", type="date" )
1034  public static final String SP_DATE = "date";
1035 /**
1036   * <b>Fluent Client</b> search parameter constant for <b>date</b>
1037   * <p>
1038   * Description: <b>The period during which the participatingOrganization is affiliated with the primary organization</b><br>
1039   * Type: <b>date</b><br>
1040   * Path: <b>OrganizationAffiliation.period</b><br>
1041   * </p>
1042   */
1043  public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE);
1044
1045 /**
1046   * Search parameter: <b>email</b>
1047   * <p>
1048   * Description: <b>A value in an email contact</b><br>
1049   * Type: <b>token</b><br>
1050   * Path: <b>OrganizationAffiliation.telecom.where(system='email')</b><br>
1051   * </p>
1052   */
1053  @SearchParamDefinition(name="email", path="OrganizationAffiliation.telecom.where(system='email')", description="A value in an email contact", type="token" )
1054  public static final String SP_EMAIL = "email";
1055 /**
1056   * <b>Fluent Client</b> search parameter constant for <b>email</b>
1057   * <p>
1058   * Description: <b>A value in an email contact</b><br>
1059   * Type: <b>token</b><br>
1060   * Path: <b>OrganizationAffiliation.telecom.where(system='email')</b><br>
1061   * </p>
1062   */
1063  public static final ca.uhn.fhir.rest.gclient.TokenClientParam EMAIL = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_EMAIL);
1064
1065 /**
1066   * Search parameter: <b>endpoint</b>
1067   * <p>
1068   * Description: <b>Technical endpoints providing access to services operated for this role</b><br>
1069   * Type: <b>reference</b><br>
1070   * Path: <b>OrganizationAffiliation.endpoint</b><br>
1071   * </p>
1072   */
1073  @SearchParamDefinition(name="endpoint", path="OrganizationAffiliation.endpoint", description="Technical endpoints providing access to services operated for this role", type="reference", target={Endpoint.class } )
1074  public static final String SP_ENDPOINT = "endpoint";
1075 /**
1076   * <b>Fluent Client</b> search parameter constant for <b>endpoint</b>
1077   * <p>
1078   * Description: <b>Technical endpoints providing access to services operated for this role</b><br>
1079   * Type: <b>reference</b><br>
1080   * Path: <b>OrganizationAffiliation.endpoint</b><br>
1081   * </p>
1082   */
1083  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENDPOINT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENDPOINT);
1084
1085/**
1086   * Constant for fluent queries to be used to add include statements. Specifies
1087   * the path value of "<b>OrganizationAffiliation:endpoint</b>".
1088   */
1089  public static final ca.uhn.fhir.model.api.Include INCLUDE_ENDPOINT = new ca.uhn.fhir.model.api.Include("OrganizationAffiliation:endpoint").toLocked();
1090
1091 /**
1092   * Search parameter: <b>identifier</b>
1093   * <p>
1094   * Description: <b>An organization affiliation's Identifier</b><br>
1095   * Type: <b>token</b><br>
1096   * Path: <b>OrganizationAffiliation.identifier</b><br>
1097   * </p>
1098   */
1099  @SearchParamDefinition(name="identifier", path="OrganizationAffiliation.identifier", description="An organization affiliation's Identifier", type="token" )
1100  public static final String SP_IDENTIFIER = "identifier";
1101 /**
1102   * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
1103   * <p>
1104   * Description: <b>An organization affiliation's Identifier</b><br>
1105   * Type: <b>token</b><br>
1106   * Path: <b>OrganizationAffiliation.identifier</b><br>
1107   * </p>
1108   */
1109  public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
1110
1111 /**
1112   * Search parameter: <b>location</b>
1113   * <p>
1114   * Description: <b>The location(s) at which the role occurs</b><br>
1115   * Type: <b>reference</b><br>
1116   * Path: <b>OrganizationAffiliation.location</b><br>
1117   * </p>
1118   */
1119  @SearchParamDefinition(name="location", path="OrganizationAffiliation.location", description="The location(s) at which the role occurs", type="reference", target={Location.class } )
1120  public static final String SP_LOCATION = "location";
1121 /**
1122   * <b>Fluent Client</b> search parameter constant for <b>location</b>
1123   * <p>
1124   * Description: <b>The location(s) at which the role occurs</b><br>
1125   * Type: <b>reference</b><br>
1126   * Path: <b>OrganizationAffiliation.location</b><br>
1127   * </p>
1128   */
1129  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam LOCATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_LOCATION);
1130
1131/**
1132   * Constant for fluent queries to be used to add include statements. Specifies
1133   * the path value of "<b>OrganizationAffiliation:location</b>".
1134   */
1135  public static final ca.uhn.fhir.model.api.Include INCLUDE_LOCATION = new ca.uhn.fhir.model.api.Include("OrganizationAffiliation:location").toLocked();
1136
1137 /**
1138   * Search parameter: <b>network</b>
1139   * <p>
1140   * Description: <b>Health insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined)</b><br>
1141   * Type: <b>reference</b><br>
1142   * Path: <b>OrganizationAffiliation.network</b><br>
1143   * </p>
1144   */
1145  @SearchParamDefinition(name="network", path="OrganizationAffiliation.network", description="Health insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined)", type="reference", target={Organization.class } )
1146  public static final String SP_NETWORK = "network";
1147 /**
1148   * <b>Fluent Client</b> search parameter constant for <b>network</b>
1149   * <p>
1150   * Description: <b>Health insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined)</b><br>
1151   * Type: <b>reference</b><br>
1152   * Path: <b>OrganizationAffiliation.network</b><br>
1153   * </p>
1154   */
1155  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam NETWORK = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_NETWORK);
1156
1157/**
1158   * Constant for fluent queries to be used to add include statements. Specifies
1159   * the path value of "<b>OrganizationAffiliation:network</b>".
1160   */
1161  public static final ca.uhn.fhir.model.api.Include INCLUDE_NETWORK = new ca.uhn.fhir.model.api.Include("OrganizationAffiliation:network").toLocked();
1162
1163 /**
1164   * Search parameter: <b>participating-organization</b>
1165   * <p>
1166   * Description: <b>The organization that provides services to the primary organization</b><br>
1167   * Type: <b>reference</b><br>
1168   * Path: <b>OrganizationAffiliation.participatingOrganization</b><br>
1169   * </p>
1170   */
1171  @SearchParamDefinition(name="participating-organization", path="OrganizationAffiliation.participatingOrganization", description="The organization that provides services to the primary organization", type="reference", target={Organization.class } )
1172  public static final String SP_PARTICIPATING_ORGANIZATION = "participating-organization";
1173 /**
1174   * <b>Fluent Client</b> search parameter constant for <b>participating-organization</b>
1175   * <p>
1176   * Description: <b>The organization that provides services to the primary organization</b><br>
1177   * Type: <b>reference</b><br>
1178   * Path: <b>OrganizationAffiliation.participatingOrganization</b><br>
1179   * </p>
1180   */
1181  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PARTICIPATING_ORGANIZATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PARTICIPATING_ORGANIZATION);
1182
1183/**
1184   * Constant for fluent queries to be used to add include statements. Specifies
1185   * the path value of "<b>OrganizationAffiliation:participating-organization</b>".
1186   */
1187  public static final ca.uhn.fhir.model.api.Include INCLUDE_PARTICIPATING_ORGANIZATION = new ca.uhn.fhir.model.api.Include("OrganizationAffiliation:participating-organization").toLocked();
1188
1189 /**
1190   * Search parameter: <b>phone</b>
1191   * <p>
1192   * Description: <b>A value in a phone contact</b><br>
1193   * Type: <b>token</b><br>
1194   * Path: <b>OrganizationAffiliation.telecom.where(system='phone')</b><br>
1195   * </p>
1196   */
1197  @SearchParamDefinition(name="phone", path="OrganizationAffiliation.telecom.where(system='phone')", description="A value in a phone contact", type="token" )
1198  public static final String SP_PHONE = "phone";
1199 /**
1200   * <b>Fluent Client</b> search parameter constant for <b>phone</b>
1201   * <p>
1202   * Description: <b>A value in a phone contact</b><br>
1203   * Type: <b>token</b><br>
1204   * Path: <b>OrganizationAffiliation.telecom.where(system='phone')</b><br>
1205   * </p>
1206   */
1207  public static final ca.uhn.fhir.rest.gclient.TokenClientParam PHONE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PHONE);
1208
1209 /**
1210   * Search parameter: <b>primary-organization</b>
1211   * <p>
1212   * Description: <b>The organization that receives the services from the participating organization</b><br>
1213   * Type: <b>reference</b><br>
1214   * Path: <b>OrganizationAffiliation.organization</b><br>
1215   * </p>
1216   */
1217  @SearchParamDefinition(name="primary-organization", path="OrganizationAffiliation.organization", description="The organization that receives the services from the participating organization", type="reference", target={Organization.class } )
1218  public static final String SP_PRIMARY_ORGANIZATION = "primary-organization";
1219 /**
1220   * <b>Fluent Client</b> search parameter constant for <b>primary-organization</b>
1221   * <p>
1222   * Description: <b>The organization that receives the services from the participating organization</b><br>
1223   * Type: <b>reference</b><br>
1224   * Path: <b>OrganizationAffiliation.organization</b><br>
1225   * </p>
1226   */
1227  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PRIMARY_ORGANIZATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PRIMARY_ORGANIZATION);
1228
1229/**
1230   * Constant for fluent queries to be used to add include statements. Specifies
1231   * the path value of "<b>OrganizationAffiliation:primary-organization</b>".
1232   */
1233  public static final ca.uhn.fhir.model.api.Include INCLUDE_PRIMARY_ORGANIZATION = new ca.uhn.fhir.model.api.Include("OrganizationAffiliation:primary-organization").toLocked();
1234
1235 /**
1236   * Search parameter: <b>role</b>
1237   * <p>
1238   * Description: <b>Definition of the role the participatingOrganization plays</b><br>
1239   * Type: <b>token</b><br>
1240   * Path: <b>OrganizationAffiliation.code</b><br>
1241   * </p>
1242   */
1243  @SearchParamDefinition(name="role", path="OrganizationAffiliation.code", description="Definition of the role the participatingOrganization plays", type="token" )
1244  public static final String SP_ROLE = "role";
1245 /**
1246   * <b>Fluent Client</b> search parameter constant for <b>role</b>
1247   * <p>
1248   * Description: <b>Definition of the role the participatingOrganization plays</b><br>
1249   * Type: <b>token</b><br>
1250   * Path: <b>OrganizationAffiliation.code</b><br>
1251   * </p>
1252   */
1253  public static final ca.uhn.fhir.rest.gclient.TokenClientParam ROLE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ROLE);
1254
1255 /**
1256   * Search parameter: <b>service</b>
1257   * <p>
1258   * Description: <b>Healthcare services provided through the role</b><br>
1259   * Type: <b>reference</b><br>
1260   * Path: <b>OrganizationAffiliation.healthcareService</b><br>
1261   * </p>
1262   */
1263  @SearchParamDefinition(name="service", path="OrganizationAffiliation.healthcareService", description="Healthcare services provided through the role", type="reference", target={HealthcareService.class } )
1264  public static final String SP_SERVICE = "service";
1265 /**
1266   * <b>Fluent Client</b> search parameter constant for <b>service</b>
1267   * <p>
1268   * Description: <b>Healthcare services provided through the role</b><br>
1269   * Type: <b>reference</b><br>
1270   * Path: <b>OrganizationAffiliation.healthcareService</b><br>
1271   * </p>
1272   */
1273  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SERVICE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SERVICE);
1274
1275/**
1276   * Constant for fluent queries to be used to add include statements. Specifies
1277   * the path value of "<b>OrganizationAffiliation:service</b>".
1278   */
1279  public static final ca.uhn.fhir.model.api.Include INCLUDE_SERVICE = new ca.uhn.fhir.model.api.Include("OrganizationAffiliation:service").toLocked();
1280
1281 /**
1282   * Search parameter: <b>specialty</b>
1283   * <p>
1284   * Description: <b>Specific specialty of the participatingOrganization in the context of the role</b><br>
1285   * Type: <b>token</b><br>
1286   * Path: <b>OrganizationAffiliation.specialty</b><br>
1287   * </p>
1288   */
1289  @SearchParamDefinition(name="specialty", path="OrganizationAffiliation.specialty", description="Specific specialty of the participatingOrganization in the context of the role", type="token" )
1290  public static final String SP_SPECIALTY = "specialty";
1291 /**
1292   * <b>Fluent Client</b> search parameter constant for <b>specialty</b>
1293   * <p>
1294   * Description: <b>Specific specialty of the participatingOrganization in the context of the role</b><br>
1295   * Type: <b>token</b><br>
1296   * Path: <b>OrganizationAffiliation.specialty</b><br>
1297   * </p>
1298   */
1299  public static final ca.uhn.fhir.rest.gclient.TokenClientParam SPECIALTY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SPECIALTY);
1300
1301 /**
1302   * Search parameter: <b>telecom</b>
1303   * <p>
1304   * Description: <b>The value in any kind of contact</b><br>
1305   * Type: <b>token</b><br>
1306   * Path: <b>OrganizationAffiliation.telecom</b><br>
1307   * </p>
1308   */
1309  @SearchParamDefinition(name="telecom", path="OrganizationAffiliation.telecom", description="The value in any kind of contact", type="token" )
1310  public static final String SP_TELECOM = "telecom";
1311 /**
1312   * <b>Fluent Client</b> search parameter constant for <b>telecom</b>
1313   * <p>
1314   * Description: <b>The value in any kind of contact</b><br>
1315   * Type: <b>token</b><br>
1316   * Path: <b>OrganizationAffiliation.telecom</b><br>
1317   * </p>
1318   */
1319  public static final ca.uhn.fhir.rest.gclient.TokenClientParam TELECOM = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TELECOM);
1320
1321
1322}
1323