All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hl7.fhir.r4.model.RelatedPerson Maven / Gradle / Ivy

The newest version!
package org.hl7.fhir.r4.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 Tue, May 12, 2020 07:26+1000 for FHIR v4.0.1
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
import org.hl7.fhir.r4.model.Enumerations.AdministrativeGender;
import org.hl7.fhir.r4.model.Enumerations.AdministrativeGenderEnumFactory;

import ca.uhn.fhir.model.api.annotation.Block;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;

/**
 * Information about a person that is involved in the care for a patient, but
 * who is not the target of healthcare, nor has a formal responsibility in the
 * care process.
 */
@ResourceDef(name = "RelatedPerson", profile = "http://hl7.org/fhir/StructureDefinition/RelatedPerson")
public class RelatedPerson extends DomainResource {

  @Block()
  public static class RelatedPersonCommunicationComponent extends BackboneElement implements IBaseBackboneElement {
    /**
     * The ISO-639-1 alpha 2 code in lower case for the language, optionally
     * followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper
     * case; e.g. "en" for English, or "en-US" for American English versus "en-EN"
     * for England English.
     */
    @Child(name = "language", type = {
        CodeableConcept.class }, order = 1, min = 1, max = 1, modifier = false, summary = false)
    @Description(shortDefinition = "The language which can be used to communicate with the patient about his or her health", formalDefinition = "The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. \"en\" for English, or \"en-US\" for American English versus \"en-EN\" for England English.")
    @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/languages")
    protected CodeableConcept language;

    /**
     * Indicates whether or not the patient prefers this language (over other
     * languages he masters up a certain level).
     */
    @Child(name = "preferred", type = {
        BooleanType.class }, order = 2, min = 0, max = 1, modifier = false, summary = false)
    @Description(shortDefinition = "Language preference indicator", formalDefinition = "Indicates whether or not the patient prefers this language (over other languages he masters up a certain level).")
    protected BooleanType preferred;

    private static final long serialVersionUID = 633792918L;

    /**
     * Constructor
     */
    public RelatedPersonCommunicationComponent() {
      super();
    }

    /**
     * Constructor
     */
    public RelatedPersonCommunicationComponent(CodeableConcept language) {
      super();
      this.language = language;
    }

    /**
     * @return {@link #language} (The ISO-639-1 alpha 2 code in lower case for the
     *         language, optionally followed by a hyphen and the ISO-3166-1 alpha 2
     *         code for the region in upper case; e.g. "en" for English, or "en-US"
     *         for American English versus "en-EN" for England English.)
     */
    public CodeableConcept getLanguage() {
      if (this.language == null)
        if (Configuration.errorOnAutoCreate())
          throw new Error("Attempt to auto-create RelatedPersonCommunicationComponent.language");
        else if (Configuration.doAutoCreate())
          this.language = new CodeableConcept(); // cc
      return this.language;
    }

    public boolean hasLanguage() {
      return this.language != null && !this.language.isEmpty();
    }

    /**
     * @param value {@link #language} (The ISO-639-1 alpha 2 code in lower case for
     *              the language, optionally followed by a hyphen and the ISO-3166-1
     *              alpha 2 code for the region in upper case; e.g. "en" for
     *              English, or "en-US" for American English versus "en-EN" for
     *              England English.)
     */
    public RelatedPersonCommunicationComponent setLanguage(CodeableConcept value) {
      this.language = value;
      return this;
    }

    /**
     * @return {@link #preferred} (Indicates whether or not the patient prefers this
     *         language (over other languages he masters up a certain level).). This
     *         is the underlying object with id, value and extensions. The accessor
     *         "getPreferred" gives direct access to the value
     */
    public BooleanType getPreferredElement() {
      if (this.preferred == null)
        if (Configuration.errorOnAutoCreate())
          throw new Error("Attempt to auto-create RelatedPersonCommunicationComponent.preferred");
        else if (Configuration.doAutoCreate())
          this.preferred = new BooleanType(); // bb
      return this.preferred;
    }

    public boolean hasPreferredElement() {
      return this.preferred != null && !this.preferred.isEmpty();
    }

    public boolean hasPreferred() {
      return this.preferred != null && !this.preferred.isEmpty();
    }

    /**
     * @param value {@link #preferred} (Indicates whether or not the patient prefers
     *              this language (over other languages he masters up a certain
     *              level).). This is the underlying object with id, value and
     *              extensions. The accessor "getPreferred" gives direct access to
     *              the value
     */
    public RelatedPersonCommunicationComponent setPreferredElement(BooleanType value) {
      this.preferred = value;
      return this;
    }

    /**
     * @return Indicates whether or not the patient prefers this language (over
     *         other languages he masters up a certain level).
     */
    public boolean getPreferred() {
      return this.preferred == null || this.preferred.isEmpty() ? false : this.preferred.getValue();
    }

    /**
     * @param value Indicates whether or not the patient prefers this language (over
     *              other languages he masters up a certain level).
     */
    public RelatedPersonCommunicationComponent setPreferred(boolean value) {
      if (this.preferred == null)
        this.preferred = new BooleanType();
      this.preferred.setValue(value);
      return this;
    }

    protected void listChildren(List children) {
      super.listChildren(children);
      children.add(new Property("language", "CodeableConcept",
          "The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. \"en\" for English, or \"en-US\" for American English versus \"en-EN\" for England English.",
          0, 1, language));
      children.add(new Property("preferred", "boolean",
          "Indicates whether or not the patient prefers this language (over other languages he masters up a certain level).",
          0, 1, preferred));
    }

    @Override
    public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
      switch (_hash) {
      case -1613589672:
        /* language */ return new Property("language", "CodeableConcept",
            "The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. \"en\" for English, or \"en-US\" for American English versus \"en-EN\" for England English.",
            0, 1, language);
      case -1294005119:
        /* preferred */ return new Property("preferred", "boolean",
            "Indicates whether or not the patient prefers this language (over other languages he masters up a certain level).",
            0, 1, preferred);
      default:
        return super.getNamedProperty(_hash, _name, _checkValid);
      }

    }

    @Override
    public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
      switch (hash) {
      case -1613589672:
        /* language */ return this.language == null ? new Base[0] : new Base[] { this.language }; // CodeableConcept
      case -1294005119:
        /* preferred */ return this.preferred == null ? new Base[0] : new Base[] { this.preferred }; // BooleanType
      default:
        return super.getProperty(hash, name, checkValid);
      }

    }

    @Override
    public Base setProperty(int hash, String name, Base value) throws FHIRException {
      switch (hash) {
      case -1613589672: // language
        this.language = castToCodeableConcept(value); // CodeableConcept
        return value;
      case -1294005119: // preferred
        this.preferred = castToBoolean(value); // BooleanType
        return value;
      default:
        return super.setProperty(hash, name, value);
      }

    }

    @Override
    public Base setProperty(String name, Base value) throws FHIRException {
      if (name.equals("language")) {
        this.language = castToCodeableConcept(value); // CodeableConcept
      } else if (name.equals("preferred")) {
        this.preferred = castToBoolean(value); // BooleanType
      } else
        return super.setProperty(name, value);
      return value;
    }

  @Override
  public void removeChild(String name, Base value) throws FHIRException {
      if (name.equals("language")) {
        this.language = null;
      } else if (name.equals("preferred")) {
        this.preferred = null;
      } else
        super.removeChild(name, value);
      
    }

    @Override
    public Base makeProperty(int hash, String name) throws FHIRException {
      switch (hash) {
      case -1613589672:
        return getLanguage();
      case -1294005119:
        return getPreferredElement();
      default:
        return super.makeProperty(hash, name);
      }

    }

    @Override
    public String[] getTypesForProperty(int hash, String name) throws FHIRException {
      switch (hash) {
      case -1613589672:
        /* language */ return new String[] { "CodeableConcept" };
      case -1294005119:
        /* preferred */ return new String[] { "boolean" };
      default:
        return super.getTypesForProperty(hash, name);
      }

    }

    @Override
    public Base addChild(String name) throws FHIRException {
      if (name.equals("language")) {
        this.language = new CodeableConcept();
        return this.language;
      } else if (name.equals("preferred")) {
        throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.preferred");
      } else
        return super.addChild(name);
    }

    public RelatedPersonCommunicationComponent copy() {
      RelatedPersonCommunicationComponent dst = new RelatedPersonCommunicationComponent();
      copyValues(dst);
      return dst;
    }

    public void copyValues(RelatedPersonCommunicationComponent dst) {
      super.copyValues(dst);
      dst.language = language == null ? null : language.copy();
      dst.preferred = preferred == null ? null : preferred.copy();
    }

    @Override
    public boolean equalsDeep(Base other_) {
      if (!super.equalsDeep(other_))
        return false;
      if (!(other_ instanceof RelatedPersonCommunicationComponent))
        return false;
      RelatedPersonCommunicationComponent o = (RelatedPersonCommunicationComponent) other_;
      return compareDeep(language, o.language, true) && compareDeep(preferred, o.preferred, true);
    }

    @Override
    public boolean equalsShallow(Base other_) {
      if (!super.equalsShallow(other_))
        return false;
      if (!(other_ instanceof RelatedPersonCommunicationComponent))
        return false;
      RelatedPersonCommunicationComponent o = (RelatedPersonCommunicationComponent) other_;
      return compareValues(preferred, o.preferred, true);
    }

    public boolean isEmpty() {
      return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(language, preferred);
    }

    public String fhirType() {
      return "RelatedPerson.communication";

    }

  }

  /**
   * Identifier for a person within a particular scope.
   */
  @Child(name = "identifier", type = {
      Identifier.class }, order = 0, min = 0, max = Child.MAX_UNLIMITED, modifier = false, summary = true)
  @Description(shortDefinition = "A human identifier for this person", formalDefinition = "Identifier for a person within a particular scope.")
  protected List identifier;

  /**
   * Whether this related person record is in active use.
   */
  @Child(name = "active", type = { BooleanType.class }, order = 1, min = 0, max = 1, modifier = true, summary = true)
  @Description(shortDefinition = "Whether this related person's record is in active use", formalDefinition = "Whether this related person record is in active use.")
  protected BooleanType active;

  /**
   * The patient this person is related to.
   */
  @Child(name = "patient", type = { Patient.class }, order = 2, min = 1, max = 1, modifier = false, summary = true)
  @Description(shortDefinition = "The patient this person is related to", formalDefinition = "The patient this person is related to.")
  protected Reference patient;

  /**
   * The actual object that is the target of the reference (The patient this
   * person is related to.)
   */
  protected Patient patientTarget;

  /**
   * The nature of the relationship between a patient and the related person.
   */
  @Child(name = "relationship", type = {
      CodeableConcept.class }, order = 3, min = 0, max = Child.MAX_UNLIMITED, modifier = false, summary = true)
  @Description(shortDefinition = "The nature of the relationship", formalDefinition = "The nature of the relationship between a patient and the related person.")
  @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype")
  protected List relationship;

  /**
   * A name associated with the person.
   */
  @Child(name = "name", type = {
      HumanName.class }, order = 4, min = 0, max = Child.MAX_UNLIMITED, modifier = false, summary = true)
  @Description(shortDefinition = "A name associated with the person", formalDefinition = "A name associated with the person.")
  protected List name;

  /**
   * A contact detail for the person, e.g. a telephone number or an email address.
   */
  @Child(name = "telecom", type = {
      ContactPoint.class }, order = 5, min = 0, max = Child.MAX_UNLIMITED, modifier = false, summary = true)
  @Description(shortDefinition = "A contact detail for the person", formalDefinition = "A contact detail for the person, e.g. a telephone number or an email address.")
  protected List telecom;

  /**
   * Administrative Gender - the gender that the person is considered to have for
   * administration and record keeping purposes.
   */
  @Child(name = "gender", type = { CodeType.class }, order = 6, min = 0, max = 1, modifier = false, summary = true)
  @Description(shortDefinition = "male | female | other | unknown", formalDefinition = "Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.")
  @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/administrative-gender")
  protected Enumeration gender;

  /**
   * The date on which the related person was born.
   */
  @Child(name = "birthDate", type = { DateType.class }, order = 7, min = 0, max = 1, modifier = false, summary = true)
  @Description(shortDefinition = "The date on which the related person was born", formalDefinition = "The date on which the related person was born.")
  protected DateType birthDate;

  /**
   * Address where the related person can be contacted or visited.
   */
  @Child(name = "address", type = {
      Address.class }, order = 8, min = 0, max = Child.MAX_UNLIMITED, modifier = false, summary = true)
  @Description(shortDefinition = "Address where the related person can be contacted or visited", formalDefinition = "Address where the related person can be contacted or visited.")
  protected List
address; /** * Image of the person. */ @Child(name = "photo", type = { Attachment.class }, order = 9, min = 0, max = Child.MAX_UNLIMITED, modifier = false, summary = false) @Description(shortDefinition = "Image of the person", formalDefinition = "Image of the person.") protected List photo; /** * The period of time during which this relationship is or was active. If there * are no dates defined, then the interval is unknown. */ @Child(name = "period", type = { Period.class }, order = 10, min = 0, max = 1, modifier = false, summary = false) @Description(shortDefinition = "Period of time that this relationship is considered valid", formalDefinition = "The period of time during which this relationship is or was active. If there are no dates defined, then the interval is unknown.") protected Period period; /** * A language which may be used to communicate with about the patient's health. */ @Child(name = "communication", type = {}, order = 11, min = 0, max = Child.MAX_UNLIMITED, modifier = false, summary = false) @Description(shortDefinition = "A language which may be used to communicate with about the patient's health", formalDefinition = "A language which may be used to communicate with about the patient's health.") protected List communication; private static final long serialVersionUID = -1396330390L; /** * Constructor */ public RelatedPerson() { super(); } /** * Constructor */ public RelatedPerson(Reference patient) { super(); this.patient = patient; } /** * @return {@link #identifier} (Identifier for a person within a particular * scope.) */ 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 RelatedPerson 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 RelatedPerson 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 */ public Identifier getIdentifierFirstRep() { if (getIdentifier().isEmpty()) { addIdentifier(); } return getIdentifier().get(0); } /** * @return {@link #active} (Whether this related person record is 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 RelatedPerson.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 this related person record is in active * use.). This is the underlying object with id, value and * extensions. The accessor "getActive" gives direct access to the * value */ public RelatedPerson setActiveElement(BooleanType value) { this.active = value; return this; } /** * @return Whether this related person record is in active use. */ public boolean getActive() { return this.active == null || this.active.isEmpty() ? false : this.active.getValue(); } /** * @param value Whether this related person record is in active use. */ public RelatedPerson setActive(boolean value) { if (this.active == null) this.active = new BooleanType(); this.active.setValue(value); return this; } /** * @return {@link #patient} (The patient this person is related to.) */ public Reference getPatient() { if (this.patient == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create RelatedPerson.patient"); else if (Configuration.doAutoCreate()) this.patient = new Reference(); // cc return this.patient; } public boolean hasPatient() { return this.patient != null && !this.patient.isEmpty(); } /** * @param value {@link #patient} (The patient this person is related to.) */ public RelatedPerson setPatient(Reference value) { this.patient = value; return this; } /** * @return {@link #patient} The actual object that is the target of the * reference. The reference library doesn't populate this, but you can * use it to hold the resource if you resolve it. (The patient this * person is related to.) */ public Patient getPatientTarget() { if (this.patientTarget == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create RelatedPerson.patient"); else if (Configuration.doAutoCreate()) this.patientTarget = new Patient(); // aa return this.patientTarget; } /** * @param value {@link #patient} The actual object that is the target of the * reference. The reference library doesn't use these, but you can * use it to hold the resource if you resolve it. (The patient this * person is related to.) */ public RelatedPerson setPatientTarget(Patient value) { this.patientTarget = value; return this; } /** * @return {@link #relationship} (The nature of the relationship between a * patient and the related person.) */ public List getRelationship() { if (this.relationship == null) this.relationship = new ArrayList(); return this.relationship; } /** * @return Returns a reference to this for easy method chaining */ public RelatedPerson setRelationship(List theRelationship) { this.relationship = theRelationship; return this; } public boolean hasRelationship() { if (this.relationship == null) return false; for (CodeableConcept item : this.relationship) if (!item.isEmpty()) return true; return false; } public CodeableConcept addRelationship() { // 3 CodeableConcept t = new CodeableConcept(); if (this.relationship == null) this.relationship = new ArrayList(); this.relationship.add(t); return t; } public RelatedPerson addRelationship(CodeableConcept t) { // 3 if (t == null) return this; if (this.relationship == null) this.relationship = new ArrayList(); this.relationship.add(t); return this; } /** * @return The first repetition of repeating field {@link #relationship}, * creating it if it does not already exist */ public CodeableConcept getRelationshipFirstRep() { if (getRelationship().isEmpty()) { addRelationship(); } return getRelationship().get(0); } /** * @return {@link #name} (A name associated with the person.) */ public List getName() { if (this.name == null) this.name = new ArrayList(); return this.name; } /** * @return Returns a reference to this for easy method chaining */ public RelatedPerson setName(List theName) { this.name = theName; return this; } public boolean hasName() { if (this.name == null) return false; for (HumanName item : this.name) if (!item.isEmpty()) return true; return false; } public HumanName addName() { // 3 HumanName t = new HumanName(); if (this.name == null) this.name = new ArrayList(); this.name.add(t); return t; } public RelatedPerson addName(HumanName t) { // 3 if (t == null) return this; if (this.name == null) this.name = new ArrayList(); this.name.add(t); return this; } /** * @return The first repetition of repeating field {@link #name}, creating it if * it does not already exist */ public HumanName getNameFirstRep() { if (getName().isEmpty()) { addName(); } return getName().get(0); } /** * @return {@link #telecom} (A contact detail for the person, e.g. a telephone * number or an email address.) */ public List getTelecom() { if (this.telecom == null) this.telecom = new ArrayList(); return this.telecom; } /** * @return Returns a reference to this for easy method chaining */ public RelatedPerson setTelecom(List theTelecom) { this.telecom = theTelecom; return this; } public boolean hasTelecom() { if (this.telecom == null) return false; for (ContactPoint item : this.telecom) if (!item.isEmpty()) return true; return false; } public ContactPoint addTelecom() { // 3 ContactPoint t = new ContactPoint(); if (this.telecom == null) this.telecom = new ArrayList(); this.telecom.add(t); return t; } public RelatedPerson addTelecom(ContactPoint t) { // 3 if (t == null) return this; if (this.telecom == null) this.telecom = new ArrayList(); this.telecom.add(t); return this; } /** * @return The first repetition of repeating field {@link #telecom}, creating it * if it does not already exist */ public ContactPoint getTelecomFirstRep() { if (getTelecom().isEmpty()) { addTelecom(); } return getTelecom().get(0); } /** * @return {@link #gender} (Administrative Gender - the gender that the person * is considered to have for administration and record keeping * purposes.). This is the underlying object with id, value and * extensions. The accessor "getGender" gives direct access to the value */ public Enumeration getGenderElement() { if (this.gender == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create RelatedPerson.gender"); else if (Configuration.doAutoCreate()) this.gender = new Enumeration(new AdministrativeGenderEnumFactory()); // bb return this.gender; } public boolean hasGenderElement() { return this.gender != null && !this.gender.isEmpty(); } public boolean hasGender() { return this.gender != null && !this.gender.isEmpty(); } /** * @param value {@link #gender} (Administrative Gender - the gender that the * person is considered to have for administration and record * keeping purposes.). This is the underlying object with id, value * and extensions. The accessor "getGender" gives direct access to * the value */ public RelatedPerson setGenderElement(Enumeration value) { this.gender = value; return this; } /** * @return Administrative Gender - the gender that the person is considered to * have for administration and record keeping purposes. */ public AdministrativeGender getGender() { return this.gender == null ? null : this.gender.getValue(); } /** * @param value Administrative Gender - the gender that the person is considered * to have for administration and record keeping purposes. */ public RelatedPerson setGender(AdministrativeGender value) { if (value == null) this.gender = null; else { if (this.gender == null) this.gender = new Enumeration(new AdministrativeGenderEnumFactory()); this.gender.setValue(value); } return this; } /** * @return {@link #birthDate} (The date on which the related person was born.). * This is the underlying object with id, value and extensions. The * accessor "getBirthDate" gives direct access to the value */ public DateType getBirthDateElement() { if (this.birthDate == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create RelatedPerson.birthDate"); else if (Configuration.doAutoCreate()) this.birthDate = new DateType(); // bb return this.birthDate; } public boolean hasBirthDateElement() { return this.birthDate != null && !this.birthDate.isEmpty(); } public boolean hasBirthDate() { return this.birthDate != null && !this.birthDate.isEmpty(); } /** * @param value {@link #birthDate} (The date on which the related person was * born.). This is the underlying object with id, value and * extensions. The accessor "getBirthDate" gives direct access to * the value */ public RelatedPerson setBirthDateElement(DateType value) { this.birthDate = value; return this; } /** * @return The date on which the related person was born. */ public Date getBirthDate() { return this.birthDate == null ? null : this.birthDate.getValue(); } /** * @param value The date on which the related person was born. */ public RelatedPerson setBirthDate(Date value) { if (value == null) this.birthDate = null; else { if (this.birthDate == null) this.birthDate = new DateType(); this.birthDate.setValue(value); } return this; } /** * @return {@link #address} (Address where the related person can be contacted * or visited.) */ public List
getAddress() { if (this.address == null) this.address = new ArrayList
(); return this.address; } /** * @return Returns a reference to this for easy method chaining */ public RelatedPerson setAddress(List
theAddress) { this.address = theAddress; return this; } public boolean hasAddress() { if (this.address == null) return false; for (Address item : this.address) if (!item.isEmpty()) return true; return false; } public Address addAddress() { // 3 Address t = new Address(); if (this.address == null) this.address = new ArrayList
(); this.address.add(t); return t; } public RelatedPerson addAddress(Address t) { // 3 if (t == null) return this; if (this.address == null) this.address = new ArrayList
(); this.address.add(t); return this; } /** * @return The first repetition of repeating field {@link #address}, creating it * if it does not already exist */ public Address getAddressFirstRep() { if (getAddress().isEmpty()) { addAddress(); } return getAddress().get(0); } /** * @return {@link #photo} (Image of the person.) */ public List getPhoto() { if (this.photo == null) this.photo = new ArrayList(); return this.photo; } /** * @return Returns a reference to this for easy method chaining */ public RelatedPerson setPhoto(List thePhoto) { this.photo = thePhoto; return this; } public boolean hasPhoto() { if (this.photo == null) return false; for (Attachment item : this.photo) if (!item.isEmpty()) return true; return false; } public Attachment addPhoto() { // 3 Attachment t = new Attachment(); if (this.photo == null) this.photo = new ArrayList(); this.photo.add(t); return t; } public RelatedPerson addPhoto(Attachment t) { // 3 if (t == null) return this; if (this.photo == null) this.photo = new ArrayList(); this.photo.add(t); return this; } /** * @return The first repetition of repeating field {@link #photo}, creating it * if it does not already exist */ public Attachment getPhotoFirstRep() { if (getPhoto().isEmpty()) { addPhoto(); } return getPhoto().get(0); } /** * @return {@link #period} (The period of time during which this relationship is * or was active. If there are no dates defined, then the interval is * unknown.) */ public Period getPeriod() { if (this.period == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create RelatedPerson.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} (The period of time during which this * relationship is or was active. If there are no dates defined, * then the interval is unknown.) */ public RelatedPerson setPeriod(Period value) { this.period = value; return this; } /** * @return {@link #communication} (A language which may be used to communicate * with about the patient's health.) */ public List getCommunication() { if (this.communication == null) this.communication = new ArrayList(); return this.communication; } /** * @return Returns a reference to this for easy method chaining */ public RelatedPerson setCommunication(List theCommunication) { this.communication = theCommunication; return this; } public boolean hasCommunication() { if (this.communication == null) return false; for (RelatedPersonCommunicationComponent item : this.communication) if (!item.isEmpty()) return true; return false; } public RelatedPersonCommunicationComponent addCommunication() { // 3 RelatedPersonCommunicationComponent t = new RelatedPersonCommunicationComponent(); if (this.communication == null) this.communication = new ArrayList(); this.communication.add(t); return t; } public RelatedPerson addCommunication(RelatedPersonCommunicationComponent t) { // 3 if (t == null) return this; if (this.communication == null) this.communication = new ArrayList(); this.communication.add(t); return this; } /** * @return The first repetition of repeating field {@link #communication}, * creating it if it does not already exist */ public RelatedPersonCommunicationComponent getCommunicationFirstRep() { if (getCommunication().isEmpty()) { addCommunication(); } return getCommunication().get(0); } protected void listChildren(List children) { super.listChildren(children); children.add(new Property("identifier", "Identifier", "Identifier for a person within a particular scope.", 0, java.lang.Integer.MAX_VALUE, identifier)); children .add(new Property("active", "boolean", "Whether this related person record is in active use.", 0, 1, active)); children .add(new Property("patient", "Reference(Patient)", "The patient this person is related to.", 0, 1, patient)); children.add(new Property("relationship", "CodeableConcept", "The nature of the relationship between a patient and the related person.", 0, java.lang.Integer.MAX_VALUE, relationship)); children.add( new Property("name", "HumanName", "A name associated with the person.", 0, java.lang.Integer.MAX_VALUE, name)); children.add(new Property("telecom", "ContactPoint", "A contact detail for the person, e.g. a telephone number or an email address.", 0, java.lang.Integer.MAX_VALUE, telecom)); children.add(new Property("gender", "code", "Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.", 0, 1, gender)); children.add(new Property("birthDate", "date", "The date on which the related person was born.", 0, 1, birthDate)); children.add(new Property("address", "Address", "Address where the related person can be contacted or visited.", 0, java.lang.Integer.MAX_VALUE, address)); children.add(new Property("photo", "Attachment", "Image of the person.", 0, java.lang.Integer.MAX_VALUE, photo)); children.add(new Property("period", "Period", "The period of time during which this relationship is or was active. If there are no dates defined, then the interval is unknown.", 0, 1, period)); children.add(new Property("communication", "", "A language which may be used to communicate with about the patient's health.", 0, java.lang.Integer.MAX_VALUE, communication)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case -1618432855: /* identifier */ return new Property("identifier", "Identifier", "Identifier for a person within a particular scope.", 0, java.lang.Integer.MAX_VALUE, identifier); case -1422950650: /* active */ return new Property("active", "boolean", "Whether this related person record is in active use.", 0, 1, active); case -791418107: /* patient */ return new Property("patient", "Reference(Patient)", "The patient this person is related to.", 0, 1, patient); case -261851592: /* relationship */ return new Property("relationship", "CodeableConcept", "The nature of the relationship between a patient and the related person.", 0, java.lang.Integer.MAX_VALUE, relationship); case 3373707: /* name */ return new Property("name", "HumanName", "A name associated with the person.", 0, java.lang.Integer.MAX_VALUE, name); case -1429363305: /* telecom */ return new Property("telecom", "ContactPoint", "A contact detail for the person, e.g. a telephone number or an email address.", 0, java.lang.Integer.MAX_VALUE, telecom); case -1249512767: /* gender */ return new Property("gender", "code", "Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.", 0, 1, gender); case -1210031859: /* birthDate */ return new Property("birthDate", "date", "The date on which the related person was born.", 0, 1, birthDate); case -1147692044: /* address */ return new Property("address", "Address", "Address where the related person can be contacted or visited.", 0, java.lang.Integer.MAX_VALUE, address); case 106642994: /* photo */ return new Property("photo", "Attachment", "Image of the person.", 0, java.lang.Integer.MAX_VALUE, photo); case -991726143: /* period */ return new Property("period", "Period", "The period of time during which this relationship is or was active. If there are no dates defined, then the interval is unknown.", 0, 1, period); case -1035284522: /* communication */ return new Property("communication", "", "A language which may be used to communicate with about the patient's health.", 0, java.lang.Integer.MAX_VALUE, communication); 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 -791418107: /* patient */ return this.patient == null ? new Base[0] : new Base[] { this.patient }; // Reference case -261851592: /* relationship */ return this.relationship == null ? new Base[0] : this.relationship.toArray(new Base[this.relationship.size()]); // CodeableConcept case 3373707: /* name */ return this.name == null ? new Base[0] : this.name.toArray(new Base[this.name.size()]); // HumanName case -1429363305: /* telecom */ return this.telecom == null ? new Base[0] : this.telecom.toArray(new Base[this.telecom.size()]); // ContactPoint case -1249512767: /* gender */ return this.gender == null ? new Base[0] : new Base[] { this.gender }; // Enumeration case -1210031859: /* birthDate */ return this.birthDate == null ? new Base[0] : new Base[] { this.birthDate }; // DateType case -1147692044: /* address */ return this.address == null ? new Base[0] : this.address.toArray(new Base[this.address.size()]); // Address case 106642994: /* photo */ return this.photo == null ? new Base[0] : this.photo.toArray(new Base[this.photo.size()]); // Attachment case -991726143: /* period */ return this.period == null ? new Base[0] : new Base[] { this.period }; // Period case -1035284522: /* communication */ return this.communication == null ? new Base[0] : this.communication.toArray(new Base[this.communication.size()]); // RelatedPersonCommunicationComponent 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(castToIdentifier(value)); // Identifier return value; case -1422950650: // active this.active = castToBoolean(value); // BooleanType return value; case -791418107: // patient this.patient = castToReference(value); // Reference return value; case -261851592: // relationship this.getRelationship().add(castToCodeableConcept(value)); // CodeableConcept return value; case 3373707: // name this.getName().add(castToHumanName(value)); // HumanName return value; case -1429363305: // telecom this.getTelecom().add(castToContactPoint(value)); // ContactPoint return value; case -1249512767: // gender value = new AdministrativeGenderEnumFactory().fromType(castToCode(value)); this.gender = (Enumeration) value; // Enumeration return value; case -1210031859: // birthDate this.birthDate = castToDate(value); // DateType return value; case -1147692044: // address this.getAddress().add(castToAddress(value)); // Address return value; case 106642994: // photo this.getPhoto().add(castToAttachment(value)); // Attachment return value; case -991726143: // period this.period = castToPeriod(value); // Period return value; case -1035284522: // communication this.getCommunication().add((RelatedPersonCommunicationComponent) value); // RelatedPersonCommunicationComponent 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(castToIdentifier(value)); } else if (name.equals("active")) { this.active = castToBoolean(value); // BooleanType } else if (name.equals("patient")) { this.patient = castToReference(value); // Reference } else if (name.equals("relationship")) { this.getRelationship().add(castToCodeableConcept(value)); } else if (name.equals("name")) { this.getName().add(castToHumanName(value)); } else if (name.equals("telecom")) { this.getTelecom().add(castToContactPoint(value)); } else if (name.equals("gender")) { value = new AdministrativeGenderEnumFactory().fromType(castToCode(value)); this.gender = (Enumeration) value; // Enumeration } else if (name.equals("birthDate")) { this.birthDate = castToDate(value); // DateType } else if (name.equals("address")) { this.getAddress().add(castToAddress(value)); } else if (name.equals("photo")) { this.getPhoto().add(castToAttachment(value)); } else if (name.equals("period")) { this.period = castToPeriod(value); // Period } else if (name.equals("communication")) { this.getCommunication().add((RelatedPersonCommunicationComponent) 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(castToIdentifier(value)); } else if (name.equals("active")) { this.active = null; } else if (name.equals("patient")) { this.patient = null; } else if (name.equals("relationship")) { this.getRelationship().remove(castToCodeableConcept(value)); } else if (name.equals("name")) { this.getName().remove(castToHumanName(value)); } else if (name.equals("telecom")) { this.getTelecom().remove(castToContactPoint(value)); } else if (name.equals("gender")) { this.gender = null; } else if (name.equals("birthDate")) { this.birthDate = null; } else if (name.equals("address")) { this.getAddress().remove(castToAddress(value)); } else if (name.equals("photo")) { this.getPhoto().remove(castToAttachment(value)); } else if (name.equals("period")) { this.period = null; } else if (name.equals("communication")) { this.getCommunication().remove((RelatedPersonCommunicationComponent) 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 -791418107: return getPatient(); case -261851592: return addRelationship(); case 3373707: return addName(); case -1429363305: return addTelecom(); case -1249512767: return getGenderElement(); case -1210031859: return getBirthDateElement(); case -1147692044: return addAddress(); case 106642994: return addPhoto(); case -991726143: return getPeriod(); case -1035284522: return addCommunication(); 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 -791418107: /* patient */ return new String[] { "Reference" }; case -261851592: /* relationship */ return new String[] { "CodeableConcept" }; case 3373707: /* name */ return new String[] { "HumanName" }; case -1429363305: /* telecom */ return new String[] { "ContactPoint" }; case -1249512767: /* gender */ return new String[] { "code" }; case -1210031859: /* birthDate */ return new String[] { "date" }; case -1147692044: /* address */ return new String[] { "Address" }; case 106642994: /* photo */ return new String[] { "Attachment" }; case -991726143: /* period */ return new String[] { "Period" }; case -1035284522: /* communication */ 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 RelatedPerson.active"); } else if (name.equals("patient")) { this.patient = new Reference(); return this.patient; } else if (name.equals("relationship")) { return addRelationship(); } else if (name.equals("name")) { return addName(); } else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("gender")) { throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.gender"); } else if (name.equals("birthDate")) { throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.birthDate"); } else if (name.equals("address")) { return addAddress(); } else if (name.equals("photo")) { return addPhoto(); } else if (name.equals("period")) { this.period = new Period(); return this.period; } else if (name.equals("communication")) { return addCommunication(); } else return super.addChild(name); } public String fhirType() { return "RelatedPerson"; } public RelatedPerson copy() { RelatedPerson dst = new RelatedPerson(); copyValues(dst); return dst; } public void copyValues(RelatedPerson 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(); dst.patient = patient == null ? null : patient.copy(); if (relationship != null) { dst.relationship = new ArrayList(); for (CodeableConcept i : relationship) dst.relationship.add(i.copy()); } ; if (name != null) { dst.name = new ArrayList(); for (HumanName i : name) dst.name.add(i.copy()); } ; if (telecom != null) { dst.telecom = new ArrayList(); for (ContactPoint i : telecom) dst.telecom.add(i.copy()); } ; dst.gender = gender == null ? null : gender.copy(); dst.birthDate = birthDate == null ? null : birthDate.copy(); if (address != null) { dst.address = new ArrayList
(); for (Address i : address) dst.address.add(i.copy()); } ; if (photo != null) { dst.photo = new ArrayList(); for (Attachment i : photo) dst.photo.add(i.copy()); } ; dst.period = period == null ? null : period.copy(); if (communication != null) { dst.communication = new ArrayList(); for (RelatedPersonCommunicationComponent i : communication) dst.communication.add(i.copy()); } ; } protected RelatedPerson typedCopy() { return copy(); } @Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; if (!(other_ instanceof RelatedPerson)) return false; RelatedPerson o = (RelatedPerson) other_; return compareDeep(identifier, o.identifier, true) && compareDeep(active, o.active, true) && compareDeep(patient, o.patient, true) && compareDeep(relationship, o.relationship, true) && compareDeep(name, o.name, true) && compareDeep(telecom, o.telecom, true) && compareDeep(gender, o.gender, true) && compareDeep(birthDate, o.birthDate, true) && compareDeep(address, o.address, true) && compareDeep(photo, o.photo, true) && compareDeep(period, o.period, true) && compareDeep(communication, o.communication, true); } @Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; if (!(other_ instanceof RelatedPerson)) return false; RelatedPerson o = (RelatedPerson) other_; return compareValues(active, o.active, true) && compareValues(gender, o.gender, true) && compareValues(birthDate, o.birthDate, true); } public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, active, patient, relationship, name, telecom, gender, birthDate, address, photo, period, communication); } @Override public ResourceType getResourceType() { return ResourceType.RelatedPerson; } /** * Search parameter: identifier *

* Description: An Identifier of the RelatedPerson
* Type: token
* Path: RelatedPerson.identifier
*

*/ @SearchParamDefinition(name = "identifier", path = "RelatedPerson.identifier", description = "An Identifier of the RelatedPerson", type = "token") public static final String SP_IDENTIFIER = "identifier"; /** * Fluent Client search parameter constant for identifier *

* Description: An Identifier of the RelatedPerson
* Type: token
* Path: RelatedPerson.identifier
*

*/ public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam( SP_IDENTIFIER); /** * 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: RelatedPerson.address
*

*/ @SearchParamDefinition(name = "address", path = "RelatedPerson.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: RelatedPerson.address
*

*/ public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS = new ca.uhn.fhir.rest.gclient.StringClientParam( SP_ADDRESS); /** * Search parameter: birthdate *

* Description: The Related Person's date of birth
* Type: date
* Path: RelatedPerson.birthDate
*

*/ @SearchParamDefinition(name = "birthdate", path = "RelatedPerson.birthDate", description = "The Related Person's date of birth", type = "date") public static final String SP_BIRTHDATE = "birthdate"; /** * Fluent Client search parameter constant for birthdate *

* Description: The Related Person's date of birth
* Type: date
* Path: RelatedPerson.birthDate
*

*/ public static final ca.uhn.fhir.rest.gclient.DateClientParam BIRTHDATE = new ca.uhn.fhir.rest.gclient.DateClientParam( SP_BIRTHDATE); /** * Search parameter: address-state *

* Description: A state specified in an address
* Type: string
* Path: RelatedPerson.address.state
*

*/ @SearchParamDefinition(name = "address-state", path = "RelatedPerson.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: RelatedPerson.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: gender *

* Description: Gender of the related person
* Type: token
* Path: RelatedPerson.gender
*

*/ @SearchParamDefinition(name = "gender", path = "RelatedPerson.gender", description = "Gender of the related person", type = "token") public static final String SP_GENDER = "gender"; /** * Fluent Client search parameter constant for gender *

* Description: Gender of the related person
* Type: token
* Path: RelatedPerson.gender
*

*/ public static final ca.uhn.fhir.rest.gclient.TokenClientParam GENDER = new ca.uhn.fhir.rest.gclient.TokenClientParam( SP_GENDER); /** * Search parameter: active *

* Description: Indicates if the related person record is active
* Type: token
* Path: RelatedPerson.active
*

*/ @SearchParamDefinition(name = "active", path = "RelatedPerson.active", description = "Indicates if the related person record is active", type = "token") public static final String SP_ACTIVE = "active"; /** * Fluent Client search parameter constant for active *

* Description: Indicates if the related person record is active
* Type: token
* Path: RelatedPerson.active
*

*/ public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACTIVE = new ca.uhn.fhir.rest.gclient.TokenClientParam( SP_ACTIVE); /** * Search parameter: address-postalcode *

* Description: A postal code specified in an address
* Type: string
* Path: RelatedPerson.address.postalCode
*

*/ @SearchParamDefinition(name = "address-postalcode", path = "RelatedPerson.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: RelatedPerson.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-country *

* Description: A country specified in an address
* Type: string
* Path: RelatedPerson.address.country
*

*/ @SearchParamDefinition(name = "address-country", path = "RelatedPerson.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: RelatedPerson.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: phonetic *

* Description: A portion of name using some kind of phonetic matching * algorithm
* Type: string
* Path: RelatedPerson.name
*

*/ @SearchParamDefinition(name = "phonetic", path = "RelatedPerson.name", description = "A portion of 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 name using some kind of phonetic matching * algorithm
* Type: string
* Path: RelatedPerson.name
*

*/ public static final ca.uhn.fhir.rest.gclient.StringClientParam PHONETIC = new ca.uhn.fhir.rest.gclient.StringClientParam( SP_PHONETIC); /** * Search parameter: phone *

* Description: A value in a phone contact
* Type: token
* Path: RelatedPerson.telecom(system=phone)
*

*/ @SearchParamDefinition(name = "phone", path = "RelatedPerson.telecom.where(system='phone')", description = "A value in a phone contact", type = "token") public static final String SP_PHONE = "phone"; /** * Fluent Client search parameter constant for phone *

* Description: A value in a phone contact
* Type: token
* Path: RelatedPerson.telecom(system=phone)
*

*/ public static final ca.uhn.fhir.rest.gclient.TokenClientParam PHONE = new ca.uhn.fhir.rest.gclient.TokenClientParam( SP_PHONE); /** * Search parameter: patient *

* Description: The patient this related person is related to
* Type: reference
* Path: RelatedPerson.patient
*

*/ @SearchParamDefinition(name = "patient", path = "RelatedPerson.patient", description = "The patient this related person is related to", type = "reference", providesMembershipIn = { @ca.uhn.fhir.model.api.annotation.Compartment(name = "Patient") }, target = { Patient.class }) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient *

* Description: The patient this related person is related to
* Type: reference
* Path: RelatedPerson.patient
*

*/ public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam( SP_PATIENT); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "RelatedPerson:patient". */ public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include( "RelatedPerson:patient").toLocked(); /** * Search parameter: name *

* Description: A server defined search that may match any of the string * fields in the HumanName, including family, give, prefix, suffix, suffix, * and/or text
* Type: string
* Path: RelatedPerson.name
*

*/ @SearchParamDefinition(name = "name", path = "RelatedPerson.name", description = "A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text", type = "string") public static final String SP_NAME = "name"; /** * Fluent Client search parameter constant for name *

* Description: A server defined search that may match any of the string * fields in the HumanName, including family, give, prefix, suffix, suffix, * and/or text
* Type: string
* Path: RelatedPerson.name
*

*/ public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam( SP_NAME); /** * Search parameter: address-use *

* Description: A use code specified in an address
* Type: token
* Path: RelatedPerson.address.use
*

*/ @SearchParamDefinition(name = "address-use", path = "RelatedPerson.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: RelatedPerson.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: telecom *

* Description: The value in any kind of contact
* Type: token
* Path: RelatedPerson.telecom
*

*/ @SearchParamDefinition(name = "telecom", path = "RelatedPerson.telecom", description = "The value in any kind of contact", type = "token") public static final String SP_TELECOM = "telecom"; /** * Fluent Client search parameter constant for telecom *

* Description: The value in any kind of contact
* Type: token
* Path: RelatedPerson.telecom
*

*/ public static final ca.uhn.fhir.rest.gclient.TokenClientParam TELECOM = new ca.uhn.fhir.rest.gclient.TokenClientParam( SP_TELECOM); /** * Search parameter: address-city *

* Description: A city specified in an address
* Type: string
* Path: RelatedPerson.address.city
*

*/ @SearchParamDefinition(name = "address-city", path = "RelatedPerson.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: RelatedPerson.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: relationship *

* Description: The relationship between the patient and the * relatedperson
* Type: token
* Path: RelatedPerson.relationship
*

*/ @SearchParamDefinition(name = "relationship", path = "RelatedPerson.relationship", description = "The relationship between the patient and the relatedperson", type = "token") public static final String SP_RELATIONSHIP = "relationship"; /** * Fluent Client search parameter constant for relationship *

* Description: The relationship between the patient and the * relatedperson
* Type: token
* Path: RelatedPerson.relationship
*

*/ public static final ca.uhn.fhir.rest.gclient.TokenClientParam RELATIONSHIP = new ca.uhn.fhir.rest.gclient.TokenClientParam( SP_RELATIONSHIP); /** * Search parameter: email *

* Description: A value in an email contact
* Type: token
* Path: RelatedPerson.telecom(system=email)
*

*/ @SearchParamDefinition(name = "email", path = "RelatedPerson.telecom.where(system='email')", description = "A value in an email contact", type = "token") public static final String SP_EMAIL = "email"; /** * Fluent Client search parameter constant for email *

* Description: A value in an email contact
* Type: token
* Path: RelatedPerson.telecom(system=email)
*

*/ public static final ca.uhn.fhir.rest.gclient.TokenClientParam EMAIL = new ca.uhn.fhir.rest.gclient.TokenClientParam( SP_EMAIL); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy