org.hl7.fhir.r5.model.Organization Maven / Gradle / Ivy
package org.hl7.fhir.r5.model;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, \
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this \
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, \
this list of conditions and the following disclaimer in the documentation \
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Thu, Mar 23, 2023 19:59+1100 for FHIR v5.0.0
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.r5.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.ICompositeType;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.ChildOrder;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
/**
* A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, payer/insurer, etc.
*/
@ResourceDef(name="Organization", profile="http://hl7.org/fhir/StructureDefinition/Organization")
public class Organization extends DomainResource {
@Block()
public static class OrganizationQualificationComponent extends BackboneElement implements IBaseBackboneElement {
/**
* An identifier allocated to this qualification for this organization.
*/
@Child(name = "identifier", type = {Identifier.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="An identifier for this qualification for the organization", formalDefinition="An identifier allocated to this qualification for this organization." )
protected List identifier;
/**
* Coded representation of the qualification.
*/
@Child(name = "code", type = {CodeableConcept.class}, order=2, min=1, max=1, modifier=false, summary=false)
@Description(shortDefinition="Coded representation of the qualification", formalDefinition="Coded representation of the qualification." )
protected CodeableConcept code;
/**
* Period during which the qualification is valid.
*/
@Child(name = "period", type = {Period.class}, order=3, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Period during which the qualification is valid", formalDefinition="Period during which the qualification is valid." )
protected Period period;
/**
* Organization that regulates and issues the qualification.
*/
@Child(name = "issuer", type = {Organization.class}, order=4, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Organization that regulates and issues the qualification", formalDefinition="Organization that regulates and issues the qualification." )
protected Reference issuer;
private static final long serialVersionUID = 1561812204L;
/**
* Constructor
*/
public OrganizationQualificationComponent() {
super();
}
/**
* Constructor
*/
public OrganizationQualificationComponent(CodeableConcept code) {
super();
this.setCode(code);
}
/**
* @return {@link #identifier} (An identifier allocated to this qualification for this organization.)
*/
public List getIdentifier() {
if (this.identifier == null)
this.identifier = new ArrayList();
return this.identifier;
}
/**
* @return Returns a reference to this for easy method chaining
*/
public OrganizationQualificationComponent setIdentifier(List theIdentifier) {
this.identifier = theIdentifier;
return this;
}
public boolean hasIdentifier() {
if (this.identifier == null)
return false;
for (Identifier item : this.identifier)
if (!item.isEmpty())
return true;
return false;
}
public Identifier addIdentifier() { //3
Identifier t = new Identifier();
if (this.identifier == null)
this.identifier = new ArrayList();
this.identifier.add(t);
return t;
}
public OrganizationQualificationComponent addIdentifier(Identifier t) { //3
if (t == null)
return this;
if (this.identifier == null)
this.identifier = new ArrayList();
this.identifier.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3}
*/
public Identifier getIdentifierFirstRep() {
if (getIdentifier().isEmpty()) {
addIdentifier();
}
return getIdentifier().get(0);
}
/**
* @return {@link #code} (Coded representation of the qualification.)
*/
public CodeableConcept getCode() {
if (this.code == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create OrganizationQualificationComponent.code");
else if (Configuration.doAutoCreate())
this.code = new CodeableConcept(); // cc
return this.code;
}
public boolean hasCode() {
return this.code != null && !this.code.isEmpty();
}
/**
* @param value {@link #code} (Coded representation of the qualification.)
*/
public OrganizationQualificationComponent setCode(CodeableConcept value) {
this.code = value;
return this;
}
/**
* @return {@link #period} (Period during which the qualification is valid.)
*/
public Period getPeriod() {
if (this.period == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create OrganizationQualificationComponent.period");
else if (Configuration.doAutoCreate())
this.period = new Period(); // cc
return this.period;
}
public boolean hasPeriod() {
return this.period != null && !this.period.isEmpty();
}
/**
* @param value {@link #period} (Period during which the qualification is valid.)
*/
public OrganizationQualificationComponent setPeriod(Period value) {
this.period = value;
return this;
}
/**
* @return {@link #issuer} (Organization that regulates and issues the qualification.)
*/
public Reference getIssuer() {
if (this.issuer == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create OrganizationQualificationComponent.issuer");
else if (Configuration.doAutoCreate())
this.issuer = new Reference(); // cc
return this.issuer;
}
public boolean hasIssuer() {
return this.issuer != null && !this.issuer.isEmpty();
}
/**
* @param value {@link #issuer} (Organization that regulates and issues the qualification.)
*/
public OrganizationQualificationComponent setIssuer(Reference value) {
this.issuer = value;
return this;
}
protected void listChildren(List children) {
super.listChildren(children);
children.add(new Property("identifier", "Identifier", "An identifier allocated to this qualification for this organization.", 0, java.lang.Integer.MAX_VALUE, identifier));
children.add(new Property("code", "CodeableConcept", "Coded representation of the qualification.", 0, 1, code));
children.add(new Property("period", "Period", "Period during which the qualification is valid.", 0, 1, period));
children.add(new Property("issuer", "Reference(Organization)", "Organization that regulates and issues the qualification.", 0, 1, issuer));
}
@Override
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
switch (_hash) {
case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "An identifier allocated to this qualification for this organization.", 0, java.lang.Integer.MAX_VALUE, identifier);
case 3059181: /*code*/ return new Property("code", "CodeableConcept", "Coded representation of the qualification.", 0, 1, code);
case -991726143: /*period*/ return new Property("period", "Period", "Period during which the qualification is valid.", 0, 1, period);
case -1179159879: /*issuer*/ return new Property("issuer", "Reference(Organization)", "Organization that regulates and issues the qualification.", 0, 1, issuer);
default: return super.getNamedProperty(_hash, _name, _checkValid);
}
}
@Override
public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
switch (hash) {
case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier
case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept
case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period
case -1179159879: /*issuer*/ return this.issuer == null ? new Base[0] : new Base[] {this.issuer}; // Reference
default: return super.getProperty(hash, name, checkValid);
}
}
@Override
public Base setProperty(int hash, String name, Base value) throws FHIRException {
switch (hash) {
case -1618432855: // identifier
this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier
return value;
case 3059181: // code
this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
return value;
case -991726143: // period
this.period = TypeConvertor.castToPeriod(value); // Period
return value;
case -1179159879: // issuer
this.issuer = TypeConvertor.castToReference(value); // Reference
return value;
default: return super.setProperty(hash, name, value);
}
}
@Override
public Base setProperty(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().add(TypeConvertor.castToIdentifier(value));
} else if (name.equals("code")) {
this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
} else if (name.equals("period")) {
this.period = TypeConvertor.castToPeriod(value); // Period
} else if (name.equals("issuer")) {
this.issuer = TypeConvertor.castToReference(value); // Reference
} else
return super.setProperty(name, value);
return value;
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(value);
} else if (name.equals("code")) {
this.code = null;
} else if (name.equals("period")) {
this.period = null;
} else if (name.equals("issuer")) {
this.issuer = null;
} else
super.removeChild(name, value);
}
@Override
public Base makeProperty(int hash, String name) throws FHIRException {
switch (hash) {
case -1618432855: return addIdentifier();
case 3059181: return getCode();
case -991726143: return getPeriod();
case -1179159879: return getIssuer();
default: return super.makeProperty(hash, name);
}
}
@Override
public String[] getTypesForProperty(int hash, String name) throws FHIRException {
switch (hash) {
case -1618432855: /*identifier*/ return new String[] {"Identifier"};
case 3059181: /*code*/ return new String[] {"CodeableConcept"};
case -991726143: /*period*/ return new String[] {"Period"};
case -1179159879: /*issuer*/ return new String[] {"Reference"};
default: return super.getTypesForProperty(hash, name);
}
}
@Override
public Base addChild(String name) throws FHIRException {
if (name.equals("identifier")) {
return addIdentifier();
}
else if (name.equals("code")) {
this.code = new CodeableConcept();
return this.code;
}
else if (name.equals("period")) {
this.period = new Period();
return this.period;
}
else if (name.equals("issuer")) {
this.issuer = new Reference();
return this.issuer;
}
else
return super.addChild(name);
}
public OrganizationQualificationComponent copy() {
OrganizationQualificationComponent dst = new OrganizationQualificationComponent();
copyValues(dst);
return dst;
}
public void copyValues(OrganizationQualificationComponent dst) {
super.copyValues(dst);
if (identifier != null) {
dst.identifier = new ArrayList();
for (Identifier i : identifier)
dst.identifier.add(i.copy());
};
dst.code = code == null ? null : code.copy();
dst.period = period == null ? null : period.copy();
dst.issuer = issuer == null ? null : issuer.copy();
}
@Override
public boolean equalsDeep(Base other_) {
if (!super.equalsDeep(other_))
return false;
if (!(other_ instanceof OrganizationQualificationComponent))
return false;
OrganizationQualificationComponent o = (OrganizationQualificationComponent) other_;
return compareDeep(identifier, o.identifier, true) && compareDeep(code, o.code, true) && compareDeep(period, o.period, true)
&& compareDeep(issuer, o.issuer, true);
}
@Override
public boolean equalsShallow(Base other_) {
if (!super.equalsShallow(other_))
return false;
if (!(other_ instanceof OrganizationQualificationComponent))
return false;
OrganizationQualificationComponent o = (OrganizationQualificationComponent) other_;
return true;
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, code, period
, issuer);
}
public String fhirType() {
return "Organization.qualification";
}
}
/**
* Identifier for the organization that is used to identify the organization across multiple disparate systems.
*/
@Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Identifies this organization across multiple systems", formalDefinition="Identifier for the organization that is used to identify the organization across multiple disparate systems." )
protected List identifier;
/**
* Whether the organization's record is still in active use.
*/
@Child(name = "active", type = {BooleanType.class}, order=1, min=0, max=1, modifier=true, summary=true)
@Description(shortDefinition="Whether the organization's record is still in active use", formalDefinition="Whether the organization's record is still in active use." )
protected BooleanType active;
/**
* The kind(s) of organization that this is.
*/
@Child(name = "type", type = {CodeableConcept.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Kind of organization", formalDefinition="The kind(s) of organization that this is." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/organization-type")
protected List type;
/**
* A name associated with the organization.
*/
@Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Name used for the organization", formalDefinition="A name associated with the organization." )
protected StringType name;
/**
* A list of alternate names that the organization is known as, or was known as in the past.
*/
@Child(name = "alias", type = {StringType.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="A list of alternate names that the organization is known as, or was known as in the past", formalDefinition="A list of alternate names that the organization is known as, or was known as in the past." )
protected List alias;
/**
* Description of the organization, which helps provide additional general context on the organization to ensure that the correct organization is selected.
*/
@Child(name = "description", type = {MarkdownType.class}, order=5, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Additional details about the Organization that could be displayed as further information to identify the Organization beyond its name", formalDefinition="Description of the organization, which helps provide additional general context on the organization to ensure that the correct organization is selected." )
protected MarkdownType description;
/**
* The contact details of communication devices available relevant to the specific Organization. This can include addresses, phone numbers, fax numbers, mobile numbers, email addresses and web sites.
*/
@Child(name = "contact", type = {ExtendedContactDetail.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Official contact details for the Organization", formalDefinition="The contact details of communication devices available relevant to the specific Organization. This can include addresses, phone numbers, fax numbers, mobile numbers, email addresses and web sites." )
protected List contact;
/**
* The organization of which this organization forms a part.
*/
@Child(name = "partOf", type = {Organization.class}, order=7, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="The organization of which this organization forms a part", formalDefinition="The organization of which this organization forms a part." )
protected Reference partOf;
/**
* Technical endpoints providing access to services operated for the organization.
*/
@Child(name = "endpoint", type = {Endpoint.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Technical endpoints providing access to services operated for the organization", formalDefinition="Technical endpoints providing access to services operated for the organization." )
protected List endpoint;
/**
* The official certifications, accreditations, training, designations and licenses that authorize and/or otherwise endorse the provision of care by the organization.
For example, an approval to provide a type of services issued by a certifying body (such as the US Joint Commission) to an organization.
*/
@Child(name = "qualification", type = {}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Qualifications, certifications, accreditations, licenses, training, etc. pertaining to the provision of care", formalDefinition="The official certifications, accreditations, training, designations and licenses that authorize and/or otherwise endorse the provision of care by the organization.\r\rFor example, an approval to provide a type of services issued by a certifying body (such as the US Joint Commission) to an organization." )
protected List qualification;
private static final long serialVersionUID = 1270045104L;
/**
* Constructor
*/
public Organization() {
super();
}
/**
* @return {@link #identifier} (Identifier for the organization that is used to identify the organization across multiple disparate systems.)
*/
public List getIdentifier() {
if (this.identifier == null)
this.identifier = new ArrayList();
return this.identifier;
}
/**
* @return Returns a reference to this for easy method chaining
*/
public Organization setIdentifier(List theIdentifier) {
this.identifier = theIdentifier;
return this;
}
public boolean hasIdentifier() {
if (this.identifier == null)
return false;
for (Identifier item : this.identifier)
if (!item.isEmpty())
return true;
return false;
}
public Identifier addIdentifier() { //3
Identifier t = new Identifier();
if (this.identifier == null)
this.identifier = new ArrayList();
this.identifier.add(t);
return t;
}
public Organization addIdentifier(Identifier t) { //3
if (t == null)
return this;
if (this.identifier == null)
this.identifier = new ArrayList();
this.identifier.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3}
*/
public Identifier getIdentifierFirstRep() {
if (getIdentifier().isEmpty()) {
addIdentifier();
}
return getIdentifier().get(0);
}
/**
* @return {@link #active} (Whether the organization's record is still in active use.). This is the underlying object with id, value and extensions. The accessor "getActive" gives direct access to the value
*/
public BooleanType getActiveElement() {
if (this.active == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Organization.active");
else if (Configuration.doAutoCreate())
this.active = new BooleanType(); // bb
return this.active;
}
public boolean hasActiveElement() {
return this.active != null && !this.active.isEmpty();
}
public boolean hasActive() {
return this.active != null && !this.active.isEmpty();
}
/**
* @param value {@link #active} (Whether the organization's record is still in active use.). This is the underlying object with id, value and extensions. The accessor "getActive" gives direct access to the value
*/
public Organization setActiveElement(BooleanType value) {
this.active = value;
return this;
}
/**
* @return Whether the organization's record is still in active use.
*/
public boolean getActive() {
return this.active == null || this.active.isEmpty() ? false : this.active.getValue();
}
/**
* @param value Whether the organization's record is still in active use.
*/
public Organization setActive(boolean value) {
if (this.active == null)
this.active = new BooleanType();
this.active.setValue(value);
return this;
}
/**
* @return {@link #type} (The kind(s) of organization that this is.)
*/
public List getType() {
if (this.type == null)
this.type = new ArrayList();
return this.type;
}
/**
* @return Returns a reference to this for easy method chaining
*/
public Organization setType(List theType) {
this.type = theType;
return this;
}
public boolean hasType() {
if (this.type == null)
return false;
for (CodeableConcept item : this.type)
if (!item.isEmpty())
return true;
return false;
}
public CodeableConcept addType() { //3
CodeableConcept t = new CodeableConcept();
if (this.type == null)
this.type = new ArrayList();
this.type.add(t);
return t;
}
public Organization addType(CodeableConcept t) { //3
if (t == null)
return this;
if (this.type == null)
this.type = new ArrayList();
this.type.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #type}, creating it if it does not already exist {3}
*/
public CodeableConcept getTypeFirstRep() {
if (getType().isEmpty()) {
addType();
}
return getType().get(0);
}
/**
* @return {@link #name} (A name associated with the organization.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
*/
public StringType getNameElement() {
if (this.name == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Organization.name");
else if (Configuration.doAutoCreate())
this.name = new StringType(); // bb
return this.name;
}
public boolean hasNameElement() {
return this.name != null && !this.name.isEmpty();
}
public boolean hasName() {
return this.name != null && !this.name.isEmpty();
}
/**
* @param value {@link #name} (A name associated with the organization.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
*/
public Organization setNameElement(StringType value) {
this.name = value;
return this;
}
/**
* @return A name associated with the organization.
*/
public String getName() {
return this.name == null ? null : this.name.getValue();
}
/**
* @param value A name associated with the organization.
*/
public Organization setName(String value) {
if (Utilities.noString(value))
this.name = null;
else {
if (this.name == null)
this.name = new StringType();
this.name.setValue(value);
}
return this;
}
/**
* @return {@link #alias} (A list of alternate names that the organization is known as, or was known as in the past.)
*/
public List getAlias() {
if (this.alias == null)
this.alias = new ArrayList();
return this.alias;
}
/**
* @return Returns a reference to this for easy method chaining
*/
public Organization setAlias(List theAlias) {
this.alias = theAlias;
return this;
}
public boolean hasAlias() {
if (this.alias == null)
return false;
for (StringType item : this.alias)
if (!item.isEmpty())
return true;
return false;
}
/**
* @return {@link #alias} (A list of alternate names that the organization is known as, or was known as in the past.)
*/
public StringType addAliasElement() {//2
StringType t = new StringType();
if (this.alias == null)
this.alias = new ArrayList();
this.alias.add(t);
return t;
}
/**
* @param value {@link #alias} (A list of alternate names that the organization is known as, or was known as in the past.)
*/
public Organization addAlias(String value) { //1
StringType t = new StringType();
t.setValue(value);
if (this.alias == null)
this.alias = new ArrayList();
this.alias.add(t);
return this;
}
/**
* @param value {@link #alias} (A list of alternate names that the organization is known as, or was known as in the past.)
*/
public boolean hasAlias(String value) {
if (this.alias == null)
return false;
for (StringType v : this.alias)
if (v.getValue().equals(value)) // string
return true;
return false;
}
/**
* @return {@link #description} (Description of the organization, which helps provide additional general context on the organization to ensure that the correct organization is selected.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
*/
public MarkdownType getDescriptionElement() {
if (this.description == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Organization.description");
else if (Configuration.doAutoCreate())
this.description = new MarkdownType(); // bb
return this.description;
}
public boolean hasDescriptionElement() {
return this.description != null && !this.description.isEmpty();
}
public boolean hasDescription() {
return this.description != null && !this.description.isEmpty();
}
/**
* @param value {@link #description} (Description of the organization, which helps provide additional general context on the organization to ensure that the correct organization is selected.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
*/
public Organization setDescriptionElement(MarkdownType value) {
this.description = value;
return this;
}
/**
* @return Description of the organization, which helps provide additional general context on the organization to ensure that the correct organization is selected.
*/
public String getDescription() {
return this.description == null ? null : this.description.getValue();
}
/**
* @param value Description of the organization, which helps provide additional general context on the organization to ensure that the correct organization is selected.
*/
public Organization setDescription(String value) {
if (Utilities.noString(value))
this.description = null;
else {
if (this.description == null)
this.description = new MarkdownType();
this.description.setValue(value);
}
return this;
}
/**
* @return {@link #contact} (The contact details of communication devices available relevant to the specific Organization. This can include addresses, phone numbers, fax numbers, mobile numbers, email addresses and web sites.)
*/
public List getContact() {
if (this.contact == null)
this.contact = new ArrayList();
return this.contact;
}
/**
* @return Returns a reference to this for easy method chaining
*/
public Organization setContact(List theContact) {
this.contact = theContact;
return this;
}
public boolean hasContact() {
if (this.contact == null)
return false;
for (ExtendedContactDetail item : this.contact)
if (!item.isEmpty())
return true;
return false;
}
public ExtendedContactDetail addContact() { //3
ExtendedContactDetail t = new ExtendedContactDetail();
if (this.contact == null)
this.contact = new ArrayList();
this.contact.add(t);
return t;
}
public Organization addContact(ExtendedContactDetail t) { //3
if (t == null)
return this;
if (this.contact == null)
this.contact = new ArrayList();
this.contact.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist {3}
*/
public ExtendedContactDetail getContactFirstRep() {
if (getContact().isEmpty()) {
addContact();
}
return getContact().get(0);
}
/**
* @return {@link #partOf} (The organization of which this organization forms a part.)
*/
public Reference getPartOf() {
if (this.partOf == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Organization.partOf");
else if (Configuration.doAutoCreate())
this.partOf = new Reference(); // cc
return this.partOf;
}
public boolean hasPartOf() {
return this.partOf != null && !this.partOf.isEmpty();
}
/**
* @param value {@link #partOf} (The organization of which this organization forms a part.)
*/
public Organization setPartOf(Reference value) {
this.partOf = value;
return this;
}
/**
* @return {@link #endpoint} (Technical endpoints providing access to services operated for the organization.)
*/
public List getEndpoint() {
if (this.endpoint == null)
this.endpoint = new ArrayList();
return this.endpoint;
}
/**
* @return Returns a reference to this for easy method chaining
*/
public Organization setEndpoint(List theEndpoint) {
this.endpoint = theEndpoint;
return this;
}
public boolean hasEndpoint() {
if (this.endpoint == null)
return false;
for (Reference item : this.endpoint)
if (!item.isEmpty())
return true;
return false;
}
public Reference addEndpoint() { //3
Reference t = new Reference();
if (this.endpoint == null)
this.endpoint = new ArrayList();
this.endpoint.add(t);
return t;
}
public Organization addEndpoint(Reference t) { //3
if (t == null)
return this;
if (this.endpoint == null)
this.endpoint = new ArrayList();
this.endpoint.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #endpoint}, creating it if it does not already exist {3}
*/
public Reference getEndpointFirstRep() {
if (getEndpoint().isEmpty()) {
addEndpoint();
}
return getEndpoint().get(0);
}
/**
* @return {@link #qualification} (The official certifications, accreditations, training, designations and licenses that authorize and/or otherwise endorse the provision of care by the organization.
For example, an approval to provide a type of services issued by a certifying body (such as the US Joint Commission) to an organization.)
*/
public List getQualification() {
if (this.qualification == null)
this.qualification = new ArrayList();
return this.qualification;
}
/**
* @return Returns a reference to this for easy method chaining
*/
public Organization setQualification(List theQualification) {
this.qualification = theQualification;
return this;
}
public boolean hasQualification() {
if (this.qualification == null)
return false;
for (OrganizationQualificationComponent item : this.qualification)
if (!item.isEmpty())
return true;
return false;
}
public OrganizationQualificationComponent addQualification() { //3
OrganizationQualificationComponent t = new OrganizationQualificationComponent();
if (this.qualification == null)
this.qualification = new ArrayList();
this.qualification.add(t);
return t;
}
public Organization addQualification(OrganizationQualificationComponent t) { //3
if (t == null)
return this;
if (this.qualification == null)
this.qualification = new ArrayList();
this.qualification.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #qualification}, creating it if it does not already exist {3}
*/
public OrganizationQualificationComponent getQualificationFirstRep() {
if (getQualification().isEmpty()) {
addQualification();
}
return getQualification().get(0);
}
protected void listChildren(List children) {
super.listChildren(children);
children.add(new Property("identifier", "Identifier", "Identifier for the organization that is used to identify the organization across multiple disparate systems.", 0, java.lang.Integer.MAX_VALUE, identifier));
children.add(new Property("active", "boolean", "Whether the organization's record is still in active use.", 0, 1, active));
children.add(new Property("type", "CodeableConcept", "The kind(s) of organization that this is.", 0, java.lang.Integer.MAX_VALUE, type));
children.add(new Property("name", "string", "A name associated with the organization.", 0, 1, name));
children.add(new Property("alias", "string", "A list of alternate names that the organization is known as, or was known as in the past.", 0, java.lang.Integer.MAX_VALUE, alias));
children.add(new Property("description", "markdown", "Description of the organization, which helps provide additional general context on the organization to ensure that the correct organization is selected.", 0, 1, description));
children.add(new Property("contact", "ExtendedContactDetail", "The contact details of communication devices available relevant to the specific Organization. This can include addresses, phone numbers, fax numbers, mobile numbers, email addresses and web sites.", 0, java.lang.Integer.MAX_VALUE, contact));
children.add(new Property("partOf", "Reference(Organization)", "The organization of which this organization forms a part.", 0, 1, partOf));
children.add(new Property("endpoint", "Reference(Endpoint)", "Technical endpoints providing access to services operated for the organization.", 0, java.lang.Integer.MAX_VALUE, endpoint));
children.add(new Property("qualification", "", "The official certifications, accreditations, training, designations and licenses that authorize and/or otherwise endorse the provision of care by the organization.\r\rFor example, an approval to provide a type of services issued by a certifying body (such as the US Joint Commission) to an organization.", 0, java.lang.Integer.MAX_VALUE, qualification));
}
@Override
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
switch (_hash) {
case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Identifier for the organization that is used to identify the organization across multiple disparate systems.", 0, java.lang.Integer.MAX_VALUE, identifier);
case -1422950650: /*active*/ return new Property("active", "boolean", "Whether the organization's record is still in active use.", 0, 1, active);
case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The kind(s) of organization that this is.", 0, java.lang.Integer.MAX_VALUE, type);
case 3373707: /*name*/ return new Property("name", "string", "A name associated with the organization.", 0, 1, name);
case 92902992: /*alias*/ return new Property("alias", "string", "A list of alternate names that the organization is known as, or was known as in the past.", 0, java.lang.Integer.MAX_VALUE, alias);
case -1724546052: /*description*/ return new Property("description", "markdown", "Description of the organization, which helps provide additional general context on the organization to ensure that the correct organization is selected.", 0, 1, description);
case 951526432: /*contact*/ return new Property("contact", "ExtendedContactDetail", "The contact details of communication devices available relevant to the specific Organization. This can include addresses, phone numbers, fax numbers, mobile numbers, email addresses and web sites.", 0, java.lang.Integer.MAX_VALUE, contact);
case -995410646: /*partOf*/ return new Property("partOf", "Reference(Organization)", "The organization of which this organization forms a part.", 0, 1, partOf);
case 1741102485: /*endpoint*/ return new Property("endpoint", "Reference(Endpoint)", "Technical endpoints providing access to services operated for the organization.", 0, java.lang.Integer.MAX_VALUE, endpoint);
case -631333393: /*qualification*/ return new Property("qualification", "", "The official certifications, accreditations, training, designations and licenses that authorize and/or otherwise endorse the provision of care by the organization.\r\rFor example, an approval to provide a type of services issued by a certifying body (such as the US Joint Commission) to an organization.", 0, java.lang.Integer.MAX_VALUE, qualification);
default: return super.getNamedProperty(_hash, _name, _checkValid);
}
}
@Override
public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
switch (hash) {
case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier
case -1422950650: /*active*/ return this.active == null ? new Base[0] : new Base[] {this.active}; // BooleanType
case 3575610: /*type*/ return this.type == null ? new Base[0] : this.type.toArray(new Base[this.type.size()]); // CodeableConcept
case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType
case 92902992: /*alias*/ return this.alias == null ? new Base[0] : this.alias.toArray(new Base[this.alias.size()]); // StringType
case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType
case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ExtendedContactDetail
case -995410646: /*partOf*/ return this.partOf == null ? new Base[0] : new Base[] {this.partOf}; // Reference
case 1741102485: /*endpoint*/ return this.endpoint == null ? new Base[0] : this.endpoint.toArray(new Base[this.endpoint.size()]); // Reference
case -631333393: /*qualification*/ return this.qualification == null ? new Base[0] : this.qualification.toArray(new Base[this.qualification.size()]); // OrganizationQualificationComponent
default: return super.getProperty(hash, name, checkValid);
}
}
@Override
public Base setProperty(int hash, String name, Base value) throws FHIRException {
switch (hash) {
case -1618432855: // identifier
this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier
return value;
case -1422950650: // active
this.active = TypeConvertor.castToBoolean(value); // BooleanType
return value;
case 3575610: // type
this.getType().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept
return value;
case 3373707: // name
this.name = TypeConvertor.castToString(value); // StringType
return value;
case 92902992: // alias
this.getAlias().add(TypeConvertor.castToString(value)); // StringType
return value;
case -1724546052: // description
this.description = TypeConvertor.castToMarkdown(value); // MarkdownType
return value;
case 951526432: // contact
this.getContact().add(TypeConvertor.castToExtendedContactDetail(value)); // ExtendedContactDetail
return value;
case -995410646: // partOf
this.partOf = TypeConvertor.castToReference(value); // Reference
return value;
case 1741102485: // endpoint
this.getEndpoint().add(TypeConvertor.castToReference(value)); // Reference
return value;
case -631333393: // qualification
this.getQualification().add((OrganizationQualificationComponent) value); // OrganizationQualificationComponent
return value;
default: return super.setProperty(hash, name, value);
}
}
@Override
public Base setProperty(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().add(TypeConvertor.castToIdentifier(value));
} else if (name.equals("active")) {
this.active = TypeConvertor.castToBoolean(value); // BooleanType
} else if (name.equals("type")) {
this.getType().add(TypeConvertor.castToCodeableConcept(value));
} else if (name.equals("name")) {
this.name = TypeConvertor.castToString(value); // StringType
} else if (name.equals("alias")) {
this.getAlias().add(TypeConvertor.castToString(value));
} else if (name.equals("description")) {
this.description = TypeConvertor.castToMarkdown(value); // MarkdownType
} else if (name.equals("contact")) {
this.getContact().add(TypeConvertor.castToExtendedContactDetail(value));
} else if (name.equals("partOf")) {
this.partOf = TypeConvertor.castToReference(value); // Reference
} else if (name.equals("endpoint")) {
this.getEndpoint().add(TypeConvertor.castToReference(value));
} else if (name.equals("qualification")) {
this.getQualification().add((OrganizationQualificationComponent) value);
} else
return super.setProperty(name, value);
return value;
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(value);
} else if (name.equals("active")) {
this.active = null;
} else if (name.equals("type")) {
this.getType().remove(value);
} else if (name.equals("name")) {
this.name = null;
} else if (name.equals("alias")) {
this.getAlias().remove(value);
} else if (name.equals("description")) {
this.description = null;
} else if (name.equals("contact")) {
this.getContact().remove(value);
} else if (name.equals("partOf")) {
this.partOf = null;
} else if (name.equals("endpoint")) {
this.getEndpoint().remove(value);
} else if (name.equals("qualification")) {
this.getQualification().remove((OrganizationQualificationComponent) value);
} else
super.removeChild(name, value);
}
@Override
public Base makeProperty(int hash, String name) throws FHIRException {
switch (hash) {
case -1618432855: return addIdentifier();
case -1422950650: return getActiveElement();
case 3575610: return addType();
case 3373707: return getNameElement();
case 92902992: return addAliasElement();
case -1724546052: return getDescriptionElement();
case 951526432: return addContact();
case -995410646: return getPartOf();
case 1741102485: return addEndpoint();
case -631333393: return addQualification();
default: return super.makeProperty(hash, name);
}
}
@Override
public String[] getTypesForProperty(int hash, String name) throws FHIRException {
switch (hash) {
case -1618432855: /*identifier*/ return new String[] {"Identifier"};
case -1422950650: /*active*/ return new String[] {"boolean"};
case 3575610: /*type*/ return new String[] {"CodeableConcept"};
case 3373707: /*name*/ return new String[] {"string"};
case 92902992: /*alias*/ return new String[] {"string"};
case -1724546052: /*description*/ return new String[] {"markdown"};
case 951526432: /*contact*/ return new String[] {"ExtendedContactDetail"};
case -995410646: /*partOf*/ return new String[] {"Reference"};
case 1741102485: /*endpoint*/ return new String[] {"Reference"};
case -631333393: /*qualification*/ return new String[] {};
default: return super.getTypesForProperty(hash, name);
}
}
@Override
public Base addChild(String name) throws FHIRException {
if (name.equals("identifier")) {
return addIdentifier();
}
else if (name.equals("active")) {
throw new FHIRException("Cannot call addChild on a singleton property Organization.active");
}
else if (name.equals("type")) {
return addType();
}
else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a singleton property Organization.name");
}
else if (name.equals("alias")) {
throw new FHIRException("Cannot call addChild on a singleton property Organization.alias");
}
else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a singleton property Organization.description");
}
else if (name.equals("contact")) {
return addContact();
}
else if (name.equals("partOf")) {
this.partOf = new Reference();
return this.partOf;
}
else if (name.equals("endpoint")) {
return addEndpoint();
}
else if (name.equals("qualification")) {
return addQualification();
}
else
return super.addChild(name);
}
public String fhirType() {
return "Organization";
}
public Organization copy() {
Organization dst = new Organization();
copyValues(dst);
return dst;
}
public void copyValues(Organization dst) {
super.copyValues(dst);
if (identifier != null) {
dst.identifier = new ArrayList();
for (Identifier i : identifier)
dst.identifier.add(i.copy());
};
dst.active = active == null ? null : active.copy();
if (type != null) {
dst.type = new ArrayList();
for (CodeableConcept i : type)
dst.type.add(i.copy());
};
dst.name = name == null ? null : name.copy();
if (alias != null) {
dst.alias = new ArrayList();
for (StringType i : alias)
dst.alias.add(i.copy());
};
dst.description = description == null ? null : description.copy();
if (contact != null) {
dst.contact = new ArrayList();
for (ExtendedContactDetail i : contact)
dst.contact.add(i.copy());
};
dst.partOf = partOf == null ? null : partOf.copy();
if (endpoint != null) {
dst.endpoint = new ArrayList();
for (Reference i : endpoint)
dst.endpoint.add(i.copy());
};
if (qualification != null) {
dst.qualification = new ArrayList();
for (OrganizationQualificationComponent i : qualification)
dst.qualification.add(i.copy());
};
}
protected Organization typedCopy() {
return copy();
}
@Override
public boolean equalsDeep(Base other_) {
if (!super.equalsDeep(other_))
return false;
if (!(other_ instanceof Organization))
return false;
Organization o = (Organization) other_;
return compareDeep(identifier, o.identifier, true) && compareDeep(active, o.active, true) && compareDeep(type, o.type, true)
&& compareDeep(name, o.name, true) && compareDeep(alias, o.alias, true) && compareDeep(description, o.description, true)
&& compareDeep(contact, o.contact, true) && compareDeep(partOf, o.partOf, true) && compareDeep(endpoint, o.endpoint, true)
&& compareDeep(qualification, o.qualification, true);
}
@Override
public boolean equalsShallow(Base other_) {
if (!super.equalsShallow(other_))
return false;
if (!(other_ instanceof Organization))
return false;
Organization o = (Organization) other_;
return compareValues(active, o.active, true) && compareValues(name, o.name, true) && compareValues(alias, o.alias, true)
&& compareValues(description, o.description, true);
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, active, type
, name, alias, description, contact, partOf, endpoint, qualification);
}
@Override
public ResourceType getResourceType() {
return ResourceType.Organization;
}
/**
* Search parameter: active
*
* Description: Is the Organization record active
* Type: token
* Path: Organization.active
*
*/
@SearchParamDefinition(name="active", path="Organization.active", description="Is the Organization record active", type="token" )
public static final String SP_ACTIVE = "active";
/**
* Fluent Client search parameter constant for active
*
* Description: Is the Organization record active
* Type: token
* Path: Organization.active
*
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACTIVE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ACTIVE);
/**
* Search parameter: address-city
*
* Description: A city specified in an address
* Type: string
* Path: Organization.contact.address.city
*
*/
@SearchParamDefinition(name="address-city", path="Organization.contact.address.city", description="A city specified in an address", type="string" )
public static final String SP_ADDRESS_CITY = "address-city";
/**
* Fluent Client search parameter constant for address-city
*
* Description: A city specified in an address
* Type: string
* Path: Organization.contact.address.city
*
*/
public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS_CITY = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS_CITY);
/**
* Search parameter: address-country
*
* Description: A country specified in an address
* Type: string
* Path: Organization.contact.address.country
*
*/
@SearchParamDefinition(name="address-country", path="Organization.contact.address.country", description="A country specified in an address", type="string" )
public static final String SP_ADDRESS_COUNTRY = "address-country";
/**
* Fluent Client search parameter constant for address-country
*
* Description: A country specified in an address
* Type: string
* Path: Organization.contact.address.country
*
*/
public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS_COUNTRY = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS_COUNTRY);
/**
* Search parameter: address-postalcode
*
* Description: A postal code specified in an address
* Type: string
* Path: Organization.contact.address.postalCode
*
*/
@SearchParamDefinition(name="address-postalcode", path="Organization.contact.address.postalCode", description="A postal code specified in an address", type="string" )
public static final String SP_ADDRESS_POSTALCODE = "address-postalcode";
/**
* Fluent Client search parameter constant for address-postalcode
*
* Description: A postal code specified in an address
* Type: string
* Path: Organization.contact.address.postalCode
*
*/
public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS_POSTALCODE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS_POSTALCODE);
/**
* Search parameter: address-state
*
* Description: A state specified in an address
* Type: string
* Path: Organization.contact.address.state
*
*/
@SearchParamDefinition(name="address-state", path="Organization.contact.address.state", description="A state specified in an address", type="string" )
public static final String SP_ADDRESS_STATE = "address-state";
/**
* Fluent Client search parameter constant for address-state
*
* Description: A state specified in an address
* Type: string
* Path: Organization.contact.address.state
*
*/
public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS_STATE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS_STATE);
/**
* Search parameter: address-use
*
* Description: A use code specified in an address
* Type: token
* Path: Organization.contact.address.use
*
*/
@SearchParamDefinition(name="address-use", path="Organization.contact.address.use", description="A use code specified in an address", type="token" )
public static final String SP_ADDRESS_USE = "address-use";
/**
* Fluent Client search parameter constant for address-use
*
* Description: A use code specified in an address
* Type: token
* Path: Organization.contact.address.use
*
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ADDRESS_USE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ADDRESS_USE);
/**
* Search parameter: address
*
* Description: A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text
* Type: string
* Path: Organization.contact.address
*
*/
@SearchParamDefinition(name="address", path="Organization.contact.address", description="A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text", type="string" )
public static final String SP_ADDRESS = "address";
/**
* Fluent Client search parameter constant for address
*
* Description: A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text
* Type: string
* Path: Organization.contact.address
*
*/
public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS);
/**
* Search parameter: endpoint
*
* Description: Technical endpoints providing access to services operated for the organization
* Type: reference
* Path: Organization.endpoint
*
*/
@SearchParamDefinition(name="endpoint", path="Organization.endpoint", description="Technical endpoints providing access to services operated for the organization", type="reference", target={Endpoint.class } )
public static final String SP_ENDPOINT = "endpoint";
/**
* Fluent Client search parameter constant for endpoint
*
* Description: Technical endpoints providing access to services operated for the organization
* Type: reference
* Path: Organization.endpoint
*
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENDPOINT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENDPOINT);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Organization:endpoint".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_ENDPOINT = new ca.uhn.fhir.model.api.Include("Organization:endpoint").toLocked();
/**
* Search parameter: identifier
*
* Description: Any identifier for the organization (not the accreditation issuer's identifier)
* Type: token
* Path: Organization.identifier | Organization.qualification.identifier
*
*/
@SearchParamDefinition(name="identifier", path="Organization.identifier | Organization.qualification.identifier", description="Any identifier for the organization (not the accreditation issuer's identifier)", type="token" )
public static final String SP_IDENTIFIER = "identifier";
/**
* Fluent Client search parameter constant for identifier
*
* Description: Any identifier for the organization (not the accreditation issuer's identifier)
* Type: token
* Path: Organization.identifier | Organization.qualification.identifier
*
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
/**
* Search parameter: name
*
* Description: A portion of the organization's name or alias
* Type: string
* Path: Organization.name | Organization.alias
*
*/
@SearchParamDefinition(name="name", path="Organization.name | Organization.alias", description="A portion of the organization's name or alias", type="string" )
public static final String SP_NAME = "name";
/**
* Fluent Client search parameter constant for name
*
* Description: A portion of the organization's name or alias
* Type: string
* Path: Organization.name | Organization.alias
*
*/
public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME);
/**
* Search parameter: partof
*
* Description: An organization of which this organization forms a part
* Type: reference
* Path: Organization.partOf
*
*/
@SearchParamDefinition(name="partof", path="Organization.partOf", description="An organization of which this organization forms a part", type="reference", target={Organization.class } )
public static final String SP_PARTOF = "partof";
/**
* Fluent Client search parameter constant for partof
*
* Description: An organization of which this organization forms a part
* Type: reference
* Path: Organization.partOf
*
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PARTOF = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PARTOF);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Organization:partof".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PARTOF = new ca.uhn.fhir.model.api.Include("Organization:partof").toLocked();
/**
* Search parameter: phonetic
*
* Description: A portion of the organization's name using some kind of phonetic matching algorithm
* Type: string
* Path: Organization.name
*
*/
@SearchParamDefinition(name="phonetic", path="Organization.name", description="A portion of the organization's name using some kind of phonetic matching algorithm", type="string" )
public static final String SP_PHONETIC = "phonetic";
/**
* Fluent Client search parameter constant for phonetic
*
* Description: A portion of the organization's name using some kind of phonetic matching algorithm
* Type: string
* Path: Organization.name
*
*/
public static final ca.uhn.fhir.rest.gclient.StringClientParam PHONETIC = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PHONETIC);
/**
* Search parameter: type
*
* Description: A code for the type of organization
* Type: token
* Path: Organization.type
*
*/
@SearchParamDefinition(name="type", path="Organization.type", description="A code for the type of organization", type="token" )
public static final String SP_TYPE = "type";
/**
* Fluent Client search parameter constant for type
*
* Description: A code for the type of organization
* Type: token
* Path: Organization.type
*
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE);
}