org.hl7.fhir.r5.model.Coverage 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;
/**
* Financial instrument which may be used to reimburse or pay for health care products and services. Includes both insurance and self-payment.
*/
@ResourceDef(name="Coverage", profile="http://hl7.org/fhir/StructureDefinition/Coverage")
public class Coverage extends DomainResource {
public enum Kind {
/**
* The Coverage provides the identifiers and card-level details of an insurance policy.
*/
INSURANCE,
/**
* One or more persons and/or organizations are paying for the services rendered.
*/
SELFPAY,
/**
* Some other organization is paying for the service.
*/
OTHER,
/**
* added to help the parsers with the generic types
*/
NULL;
public static Kind fromCode(String codeString) throws FHIRException {
if (codeString == null || "".equals(codeString))
return null;
if ("insurance".equals(codeString))
return INSURANCE;
if ("self-pay".equals(codeString))
return SELFPAY;
if ("other".equals(codeString))
return OTHER;
if (Configuration.isAcceptInvalidEnums())
return null;
else
throw new FHIRException("Unknown Kind code '"+codeString+"'");
}
public String toCode() {
switch (this) {
case INSURANCE: return "insurance";
case SELFPAY: return "self-pay";
case OTHER: return "other";
case NULL: return null;
default: return "?";
}
}
public String getSystem() {
switch (this) {
case INSURANCE: return "http://hl7.org/fhir/coverage-kind";
case SELFPAY: return "http://hl7.org/fhir/coverage-kind";
case OTHER: return "http://hl7.org/fhir/coverage-kind";
case NULL: return null;
default: return "?";
}
}
public String getDefinition() {
switch (this) {
case INSURANCE: return "The Coverage provides the identifiers and card-level details of an insurance policy.";
case SELFPAY: return "One or more persons and/or organizations are paying for the services rendered.";
case OTHER: return "Some other organization is paying for the service.";
case NULL: return null;
default: return "?";
}
}
public String getDisplay() {
switch (this) {
case INSURANCE: return "Insurance";
case SELFPAY: return "Self-pay";
case OTHER: return "Other";
case NULL: return null;
default: return "?";
}
}
}
public static class KindEnumFactory implements EnumFactory {
public Kind fromCode(String codeString) throws IllegalArgumentException {
if (codeString == null || "".equals(codeString))
if (codeString == null || "".equals(codeString))
return null;
if ("insurance".equals(codeString))
return Kind.INSURANCE;
if ("self-pay".equals(codeString))
return Kind.SELFPAY;
if ("other".equals(codeString))
return Kind.OTHER;
throw new IllegalArgumentException("Unknown Kind code '"+codeString+"'");
}
public Enumeration fromType(PrimitiveType> code) throws FHIRException {
if (code == null)
return null;
if (code.isEmpty())
return new Enumeration(this, Kind.NULL, code);
String codeString = ((PrimitiveType) code).asStringValue();
if (codeString == null || "".equals(codeString))
return new Enumeration(this, Kind.NULL, code);
if ("insurance".equals(codeString))
return new Enumeration(this, Kind.INSURANCE, code);
if ("self-pay".equals(codeString))
return new Enumeration(this, Kind.SELFPAY, code);
if ("other".equals(codeString))
return new Enumeration(this, Kind.OTHER, code);
throw new FHIRException("Unknown Kind code '"+codeString+"'");
}
public String toCode(Kind code) {
if (code == Kind.NULL)
return null;
if (code == Kind.INSURANCE)
return "insurance";
if (code == Kind.SELFPAY)
return "self-pay";
if (code == Kind.OTHER)
return "other";
return "?";
}
public String toSystem(Kind code) {
return code.getSystem();
}
}
@Block()
public static class CoveragePaymentByComponent extends BackboneElement implements IBaseBackboneElement {
/**
* The list of parties providing non-insurance payment for the treatment costs.
*/
@Child(name = "party", type = {Patient.class, RelatedPerson.class, Organization.class}, order=1, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="Parties performing self-payment", formalDefinition="The list of parties providing non-insurance payment for the treatment costs." )
protected Reference party;
/**
* Description of the financial responsibility.
*/
@Child(name = "responsibility", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Party's responsibility", formalDefinition=" Description of the financial responsibility." )
protected StringType responsibility;
private static final long serialVersionUID = -1279858336L;
/**
* Constructor
*/
public CoveragePaymentByComponent() {
super();
}
/**
* Constructor
*/
public CoveragePaymentByComponent(Reference party) {
super();
this.setParty(party);
}
/**
* @return {@link #party} (The list of parties providing non-insurance payment for the treatment costs.)
*/
public Reference getParty() {
if (this.party == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create CoveragePaymentByComponent.party");
else if (Configuration.doAutoCreate())
this.party = new Reference(); // cc
return this.party;
}
public boolean hasParty() {
return this.party != null && !this.party.isEmpty();
}
/**
* @param value {@link #party} (The list of parties providing non-insurance payment for the treatment costs.)
*/
public CoveragePaymentByComponent setParty(Reference value) {
this.party = value;
return this;
}
/**
* @return {@link #responsibility} ( Description of the financial responsibility.). This is the underlying object with id, value and extensions. The accessor "getResponsibility" gives direct access to the value
*/
public StringType getResponsibilityElement() {
if (this.responsibility == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create CoveragePaymentByComponent.responsibility");
else if (Configuration.doAutoCreate())
this.responsibility = new StringType(); // bb
return this.responsibility;
}
public boolean hasResponsibilityElement() {
return this.responsibility != null && !this.responsibility.isEmpty();
}
public boolean hasResponsibility() {
return this.responsibility != null && !this.responsibility.isEmpty();
}
/**
* @param value {@link #responsibility} ( Description of the financial responsibility.). This is the underlying object with id, value and extensions. The accessor "getResponsibility" gives direct access to the value
*/
public CoveragePaymentByComponent setResponsibilityElement(StringType value) {
this.responsibility = value;
return this;
}
/**
* @return Description of the financial responsibility.
*/
public String getResponsibility() {
return this.responsibility == null ? null : this.responsibility.getValue();
}
/**
* @param value Description of the financial responsibility.
*/
public CoveragePaymentByComponent setResponsibility(String value) {
if (Utilities.noString(value))
this.responsibility = null;
else {
if (this.responsibility == null)
this.responsibility = new StringType();
this.responsibility.setValue(value);
}
return this;
}
protected void listChildren(List children) {
super.listChildren(children);
children.add(new Property("party", "Reference(Patient|RelatedPerson|Organization)", "The list of parties providing non-insurance payment for the treatment costs.", 0, 1, party));
children.add(new Property("responsibility", "string", " Description of the financial responsibility.", 0, 1, responsibility));
}
@Override
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
switch (_hash) {
case 106437350: /*party*/ return new Property("party", "Reference(Patient|RelatedPerson|Organization)", "The list of parties providing non-insurance payment for the treatment costs.", 0, 1, party);
case -228897266: /*responsibility*/ return new Property("responsibility", "string", " Description of the financial responsibility.", 0, 1, responsibility);
default: return super.getNamedProperty(_hash, _name, _checkValid);
}
}
@Override
public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
switch (hash) {
case 106437350: /*party*/ return this.party == null ? new Base[0] : new Base[] {this.party}; // Reference
case -228897266: /*responsibility*/ return this.responsibility == null ? new Base[0] : new Base[] {this.responsibility}; // StringType
default: return super.getProperty(hash, name, checkValid);
}
}
@Override
public Base setProperty(int hash, String name, Base value) throws FHIRException {
switch (hash) {
case 106437350: // party
this.party = TypeConvertor.castToReference(value); // Reference
return value;
case -228897266: // responsibility
this.responsibility = TypeConvertor.castToString(value); // StringType
return value;
default: return super.setProperty(hash, name, value);
}
}
@Override
public Base setProperty(String name, Base value) throws FHIRException {
if (name.equals("party")) {
this.party = TypeConvertor.castToReference(value); // Reference
} else if (name.equals("responsibility")) {
this.responsibility = TypeConvertor.castToString(value); // StringType
} else
return super.setProperty(name, value);
return value;
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("party")) {
this.party = null;
} else if (name.equals("responsibility")) {
this.responsibility = null;
} else
super.removeChild(name, value);
}
@Override
public Base makeProperty(int hash, String name) throws FHIRException {
switch (hash) {
case 106437350: return getParty();
case -228897266: return getResponsibilityElement();
default: return super.makeProperty(hash, name);
}
}
@Override
public String[] getTypesForProperty(int hash, String name) throws FHIRException {
switch (hash) {
case 106437350: /*party*/ return new String[] {"Reference"};
case -228897266: /*responsibility*/ return new String[] {"string"};
default: return super.getTypesForProperty(hash, name);
}
}
@Override
public Base addChild(String name) throws FHIRException {
if (name.equals("party")) {
this.party = new Reference();
return this.party;
}
else if (name.equals("responsibility")) {
throw new FHIRException("Cannot call addChild on a singleton property Coverage.paymentBy.responsibility");
}
else
return super.addChild(name);
}
public CoveragePaymentByComponent copy() {
CoveragePaymentByComponent dst = new CoveragePaymentByComponent();
copyValues(dst);
return dst;
}
public void copyValues(CoveragePaymentByComponent dst) {
super.copyValues(dst);
dst.party = party == null ? null : party.copy();
dst.responsibility = responsibility == null ? null : responsibility.copy();
}
@Override
public boolean equalsDeep(Base other_) {
if (!super.equalsDeep(other_))
return false;
if (!(other_ instanceof CoveragePaymentByComponent))
return false;
CoveragePaymentByComponent o = (CoveragePaymentByComponent) other_;
return compareDeep(party, o.party, true) && compareDeep(responsibility, o.responsibility, true)
;
}
@Override
public boolean equalsShallow(Base other_) {
if (!super.equalsShallow(other_))
return false;
if (!(other_ instanceof CoveragePaymentByComponent))
return false;
CoveragePaymentByComponent o = (CoveragePaymentByComponent) other_;
return compareValues(responsibility, o.responsibility, true);
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(party, responsibility);
}
public String fhirType() {
return "Coverage.paymentBy";
}
}
@Block()
public static class ClassComponent extends BackboneElement implements IBaseBackboneElement {
/**
* The type of classification for which an insurer-specific class label or number and optional name is provided. For example, type may be used to identify a class of coverage or employer group, policy, or plan.
*/
@Child(name = "type", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="Type of class such as 'group' or 'plan'", formalDefinition="The type of classification for which an insurer-specific class label or number and optional name is provided. For example, type may be used to identify a class of coverage or employer group, policy, or plan." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/coverage-class")
protected CodeableConcept type;
/**
* The alphanumeric identifier associated with the insurer issued label.
*/
@Child(name = "value", type = {Identifier.class}, order=2, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="Value associated with the type", formalDefinition="The alphanumeric identifier associated with the insurer issued label." )
protected Identifier value;
/**
* A short description for the class.
*/
@Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Human readable description of the type and value", formalDefinition="A short description for the class." )
protected StringType name;
private static final long serialVersionUID = 1395172201L;
/**
* Constructor
*/
public ClassComponent() {
super();
}
/**
* Constructor
*/
public ClassComponent(CodeableConcept type, Identifier value) {
super();
this.setType(type);
this.setValue(value);
}
/**
* @return {@link #type} (The type of classification for which an insurer-specific class label or number and optional name is provided. For example, type may be used to identify a class of coverage or employer group, policy, or plan.)
*/
public CodeableConcept getType() {
if (this.type == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ClassComponent.type");
else if (Configuration.doAutoCreate())
this.type = new CodeableConcept(); // cc
return this.type;
}
public boolean hasType() {
return this.type != null && !this.type.isEmpty();
}
/**
* @param value {@link #type} (The type of classification for which an insurer-specific class label or number and optional name is provided. For example, type may be used to identify a class of coverage or employer group, policy, or plan.)
*/
public ClassComponent setType(CodeableConcept value) {
this.type = value;
return this;
}
/**
* @return {@link #value} (The alphanumeric identifier associated with the insurer issued label.)
*/
public Identifier getValue() {
if (this.value == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ClassComponent.value");
else if (Configuration.doAutoCreate())
this.value = new Identifier(); // cc
return this.value;
}
public boolean hasValue() {
return this.value != null && !this.value.isEmpty();
}
/**
* @param value {@link #value} (The alphanumeric identifier associated with the insurer issued label.)
*/
public ClassComponent setValue(Identifier value) {
this.value = value;
return this;
}
/**
* @return {@link #name} (A short description for the class.). 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 ClassComponent.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 short description for the class.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
*/
public ClassComponent setNameElement(StringType value) {
this.name = value;
return this;
}
/**
* @return A short description for the class.
*/
public String getName() {
return this.name == null ? null : this.name.getValue();
}
/**
* @param value A short description for the class.
*/
public ClassComponent 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;
}
protected void listChildren(List children) {
super.listChildren(children);
children.add(new Property("type", "CodeableConcept", "The type of classification for which an insurer-specific class label or number and optional name is provided. For example, type may be used to identify a class of coverage or employer group, policy, or plan.", 0, 1, type));
children.add(new Property("value", "Identifier", "The alphanumeric identifier associated with the insurer issued label.", 0, 1, value));
children.add(new Property("name", "string", "A short description for the class.", 0, 1, name));
}
@Override
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
switch (_hash) {
case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The type of classification for which an insurer-specific class label or number and optional name is provided. For example, type may be used to identify a class of coverage or employer group, policy, or plan.", 0, 1, type);
case 111972721: /*value*/ return new Property("value", "Identifier", "The alphanumeric identifier associated with the insurer issued label.", 0, 1, value);
case 3373707: /*name*/ return new Property("name", "string", "A short description for the class.", 0, 1, name);
default: return super.getNamedProperty(_hash, _name, _checkValid);
}
}
@Override
public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
switch (hash) {
case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept
case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // Identifier
case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType
default: return super.getProperty(hash, name, checkValid);
}
}
@Override
public Base setProperty(int hash, String name, Base value) throws FHIRException {
switch (hash) {
case 3575610: // type
this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
return value;
case 111972721: // value
this.value = TypeConvertor.castToIdentifier(value); // Identifier
return value;
case 3373707: // name
this.name = TypeConvertor.castToString(value); // StringType
return value;
default: return super.setProperty(hash, name, value);
}
}
@Override
public Base setProperty(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
} else if (name.equals("value")) {
this.value = TypeConvertor.castToIdentifier(value); // Identifier
} else if (name.equals("name")) {
this.name = TypeConvertor.castToString(value); // StringType
} else
return super.setProperty(name, value);
return value;
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
} else if (name.equals("value")) {
this.value = null;
} else if (name.equals("name")) {
this.name = null;
} else
super.removeChild(name, value);
}
@Override
public Base makeProperty(int hash, String name) throws FHIRException {
switch (hash) {
case 3575610: return getType();
case 111972721: return getValue();
case 3373707: return getNameElement();
default: return super.makeProperty(hash, name);
}
}
@Override
public String[] getTypesForProperty(int hash, String name) throws FHIRException {
switch (hash) {
case 3575610: /*type*/ return new String[] {"CodeableConcept"};
case 111972721: /*value*/ return new String[] {"Identifier"};
case 3373707: /*name*/ return new String[] {"string"};
default: return super.getTypesForProperty(hash, name);
}
}
@Override
public Base addChild(String name) throws FHIRException {
if (name.equals("type")) {
this.type = new CodeableConcept();
return this.type;
}
else if (name.equals("value")) {
this.value = new Identifier();
return this.value;
}
else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a singleton property Coverage.class.name");
}
else
return super.addChild(name);
}
public ClassComponent copy() {
ClassComponent dst = new ClassComponent();
copyValues(dst);
return dst;
}
public void copyValues(ClassComponent dst) {
super.copyValues(dst);
dst.type = type == null ? null : type.copy();
dst.value = value == null ? null : value.copy();
dst.name = name == null ? null : name.copy();
}
@Override
public boolean equalsDeep(Base other_) {
if (!super.equalsDeep(other_))
return false;
if (!(other_ instanceof ClassComponent))
return false;
ClassComponent o = (ClassComponent) other_;
return compareDeep(type, o.type, true) && compareDeep(value, o.value, true) && compareDeep(name, o.name, true)
;
}
@Override
public boolean equalsShallow(Base other_) {
if (!super.equalsShallow(other_))
return false;
if (!(other_ instanceof ClassComponent))
return false;
ClassComponent o = (ClassComponent) other_;
return compareValues(name, o.name, true);
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, value, name);
}
public String fhirType() {
return "Coverage.class";
}
}
@Block()
public static class CostToBeneficiaryComponent extends BackboneElement implements IBaseBackboneElement {
/**
* The category of patient centric costs associated with treatment.
*/
@Child(name = "type", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Cost category", formalDefinition="The category of patient centric costs associated with treatment." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/coverage-copay-type")
protected CodeableConcept type;
/**
* Code to identify the general type of benefits under which products and services are provided.
*/
@Child(name = "category", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Benefit classification", formalDefinition="Code to identify the general type of benefits under which products and services are provided." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/ex-benefitcategory")
protected CodeableConcept category;
/**
* Is a flag to indicate whether the benefits refer to in-network providers or out-of-network providers.
*/
@Child(name = "network", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="In or out of network", formalDefinition="Is a flag to indicate whether the benefits refer to in-network providers or out-of-network providers." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/benefit-network")
protected CodeableConcept network;
/**
* Indicates if the benefits apply to an individual or to the family.
*/
@Child(name = "unit", type = {CodeableConcept.class}, order=4, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Individual or family", formalDefinition="Indicates if the benefits apply to an individual or to the family." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/benefit-unit")
protected CodeableConcept unit;
/**
* The term or period of the values such as 'maximum lifetime benefit' or 'maximum annual visits'.
*/
@Child(name = "term", type = {CodeableConcept.class}, order=5, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Annual or lifetime", formalDefinition="The term or period of the values such as 'maximum lifetime benefit' or 'maximum annual visits'." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/benefit-term")
protected CodeableConcept term;
/**
* The amount due from the patient for the cost category.
*/
@Child(name = "value", type = {Quantity.class, Money.class}, order=6, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="The amount or percentage due from the beneficiary", formalDefinition="The amount due from the patient for the cost category." )
protected DataType value;
/**
* A suite of codes indicating exceptions or reductions to patient costs and their effective periods.
*/
@Child(name = "exception", type = {}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Exceptions for patient payments", formalDefinition="A suite of codes indicating exceptions or reductions to patient costs and their effective periods." )
protected List exception;
private static final long serialVersionUID = 472499753L;
/**
* Constructor
*/
public CostToBeneficiaryComponent() {
super();
}
/**
* @return {@link #type} (The category of patient centric costs associated with treatment.)
*/
public CodeableConcept getType() {
if (this.type == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create CostToBeneficiaryComponent.type");
else if (Configuration.doAutoCreate())
this.type = new CodeableConcept(); // cc
return this.type;
}
public boolean hasType() {
return this.type != null && !this.type.isEmpty();
}
/**
* @param value {@link #type} (The category of patient centric costs associated with treatment.)
*/
public CostToBeneficiaryComponent setType(CodeableConcept value) {
this.type = value;
return this;
}
/**
* @return {@link #category} (Code to identify the general type of benefits under which products and services are provided.)
*/
public CodeableConcept getCategory() {
if (this.category == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create CostToBeneficiaryComponent.category");
else if (Configuration.doAutoCreate())
this.category = new CodeableConcept(); // cc
return this.category;
}
public boolean hasCategory() {
return this.category != null && !this.category.isEmpty();
}
/**
* @param value {@link #category} (Code to identify the general type of benefits under which products and services are provided.)
*/
public CostToBeneficiaryComponent setCategory(CodeableConcept value) {
this.category = value;
return this;
}
/**
* @return {@link #network} (Is a flag to indicate whether the benefits refer to in-network providers or out-of-network providers.)
*/
public CodeableConcept getNetwork() {
if (this.network == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create CostToBeneficiaryComponent.network");
else if (Configuration.doAutoCreate())
this.network = new CodeableConcept(); // cc
return this.network;
}
public boolean hasNetwork() {
return this.network != null && !this.network.isEmpty();
}
/**
* @param value {@link #network} (Is a flag to indicate whether the benefits refer to in-network providers or out-of-network providers.)
*/
public CostToBeneficiaryComponent setNetwork(CodeableConcept value) {
this.network = value;
return this;
}
/**
* @return {@link #unit} (Indicates if the benefits apply to an individual or to the family.)
*/
public CodeableConcept getUnit() {
if (this.unit == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create CostToBeneficiaryComponent.unit");
else if (Configuration.doAutoCreate())
this.unit = new CodeableConcept(); // cc
return this.unit;
}
public boolean hasUnit() {
return this.unit != null && !this.unit.isEmpty();
}
/**
* @param value {@link #unit} (Indicates if the benefits apply to an individual or to the family.)
*/
public CostToBeneficiaryComponent setUnit(CodeableConcept value) {
this.unit = value;
return this;
}
/**
* @return {@link #term} (The term or period of the values such as 'maximum lifetime benefit' or 'maximum annual visits'.)
*/
public CodeableConcept getTerm() {
if (this.term == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create CostToBeneficiaryComponent.term");
else if (Configuration.doAutoCreate())
this.term = new CodeableConcept(); // cc
return this.term;
}
public boolean hasTerm() {
return this.term != null && !this.term.isEmpty();
}
/**
* @param value {@link #term} (The term or period of the values such as 'maximum lifetime benefit' or 'maximum annual visits'.)
*/
public CostToBeneficiaryComponent setTerm(CodeableConcept value) {
this.term = value;
return this;
}
/**
* @return {@link #value} (The amount due from the patient for the cost category.)
*/
public DataType getValue() {
return this.value;
}
/**
* @return {@link #value} (The amount due from the patient for the cost category.)
*/
public Quantity getValueQuantity() throws FHIRException {
if (this.value == null)
this.value = new Quantity();
if (!(this.value instanceof Quantity))
throw new FHIRException("Type mismatch: the type Quantity was expected, but "+this.value.getClass().getName()+" was encountered");
return (Quantity) this.value;
}
public boolean hasValueQuantity() {
return this != null && this.value instanceof Quantity;
}
/**
* @return {@link #value} (The amount due from the patient for the cost category.)
*/
public Money getValueMoney() throws FHIRException {
if (this.value == null)
this.value = new Money();
if (!(this.value instanceof Money))
throw new FHIRException("Type mismatch: the type Money was expected, but "+this.value.getClass().getName()+" was encountered");
return (Money) this.value;
}
public boolean hasValueMoney() {
return this != null && this.value instanceof Money;
}
public boolean hasValue() {
return this.value != null && !this.value.isEmpty();
}
/**
* @param value {@link #value} (The amount due from the patient for the cost category.)
*/
public CostToBeneficiaryComponent setValue(DataType value) {
if (value != null && !(value instanceof Quantity || value instanceof Money))
throw new FHIRException("Not the right type for Coverage.costToBeneficiary.value[x]: "+value.fhirType());
this.value = value;
return this;
}
/**
* @return {@link #exception} (A suite of codes indicating exceptions or reductions to patient costs and their effective periods.)
*/
public List getException() {
if (this.exception == null)
this.exception = new ArrayList();
return this.exception;
}
/**
* @return Returns a reference to this for easy method chaining
*/
public CostToBeneficiaryComponent setException(List theException) {
this.exception = theException;
return this;
}
public boolean hasException() {
if (this.exception == null)
return false;
for (ExemptionComponent item : this.exception)
if (!item.isEmpty())
return true;
return false;
}
public ExemptionComponent addException() { //3
ExemptionComponent t = new ExemptionComponent();
if (this.exception == null)
this.exception = new ArrayList();
this.exception.add(t);
return t;
}
public CostToBeneficiaryComponent addException(ExemptionComponent t) { //3
if (t == null)
return this;
if (this.exception == null)
this.exception = new ArrayList();
this.exception.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #exception}, creating it if it does not already exist {3}
*/
public ExemptionComponent getExceptionFirstRep() {
if (getException().isEmpty()) {
addException();
}
return getException().get(0);
}
protected void listChildren(List children) {
super.listChildren(children);
children.add(new Property("type", "CodeableConcept", "The category of patient centric costs associated with treatment.", 0, 1, type));
children.add(new Property("category", "CodeableConcept", "Code to identify the general type of benefits under which products and services are provided.", 0, 1, category));
children.add(new Property("network", "CodeableConcept", "Is a flag to indicate whether the benefits refer to in-network providers or out-of-network providers.", 0, 1, network));
children.add(new Property("unit", "CodeableConcept", "Indicates if the benefits apply to an individual or to the family.", 0, 1, unit));
children.add(new Property("term", "CodeableConcept", "The term or period of the values such as 'maximum lifetime benefit' or 'maximum annual visits'.", 0, 1, term));
children.add(new Property("value[x]", "Quantity|Money", "The amount due from the patient for the cost category.", 0, 1, value));
children.add(new Property("exception", "", "A suite of codes indicating exceptions or reductions to patient costs and their effective periods.", 0, java.lang.Integer.MAX_VALUE, exception));
}
@Override
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
switch (_hash) {
case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The category of patient centric costs associated with treatment.", 0, 1, type);
case 50511102: /*category*/ return new Property("category", "CodeableConcept", "Code to identify the general type of benefits under which products and services are provided.", 0, 1, category);
case 1843485230: /*network*/ return new Property("network", "CodeableConcept", "Is a flag to indicate whether the benefits refer to in-network providers or out-of-network providers.", 0, 1, network);
case 3594628: /*unit*/ return new Property("unit", "CodeableConcept", "Indicates if the benefits apply to an individual or to the family.", 0, 1, unit);
case 3556460: /*term*/ return new Property("term", "CodeableConcept", "The term or period of the values such as 'maximum lifetime benefit' or 'maximum annual visits'.", 0, 1, term);
case -1410166417: /*value[x]*/ return new Property("value[x]", "Quantity|Money", "The amount due from the patient for the cost category.", 0, 1, value);
case 111972721: /*value*/ return new Property("value[x]", "Quantity|Money", "The amount due from the patient for the cost category.", 0, 1, value);
case -2029823716: /*valueQuantity*/ return new Property("value[x]", "Quantity", "The amount due from the patient for the cost category.", 0, 1, value);
case 2026560975: /*valueMoney*/ return new Property("value[x]", "Money", "The amount due from the patient for the cost category.", 0, 1, value);
case 1481625679: /*exception*/ return new Property("exception", "", "A suite of codes indicating exceptions or reductions to patient costs and their effective periods.", 0, java.lang.Integer.MAX_VALUE, exception);
default: return super.getNamedProperty(_hash, _name, _checkValid);
}
}
@Override
public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
switch (hash) {
case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept
case 50511102: /*category*/ return this.category == null ? new Base[0] : new Base[] {this.category}; // CodeableConcept
case 1843485230: /*network*/ return this.network == null ? new Base[0] : new Base[] {this.network}; // CodeableConcept
case 3594628: /*unit*/ return this.unit == null ? new Base[0] : new Base[] {this.unit}; // CodeableConcept
case 3556460: /*term*/ return this.term == null ? new Base[0] : new Base[] {this.term}; // CodeableConcept
case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // DataType
case 1481625679: /*exception*/ return this.exception == null ? new Base[0] : this.exception.toArray(new Base[this.exception.size()]); // ExemptionComponent
default: return super.getProperty(hash, name, checkValid);
}
}
@Override
public Base setProperty(int hash, String name, Base value) throws FHIRException {
switch (hash) {
case 3575610: // type
this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
return value;
case 50511102: // category
this.category = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
return value;
case 1843485230: // network
this.network = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
return value;
case 3594628: // unit
this.unit = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
return value;
case 3556460: // term
this.term = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
return value;
case 111972721: // value
this.value = TypeConvertor.castToType(value); // DataType
return value;
case 1481625679: // exception
this.getException().add((ExemptionComponent) value); // ExemptionComponent
return value;
default: return super.setProperty(hash, name, value);
}
}
@Override
public Base setProperty(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
} else if (name.equals("category")) {
this.category = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
} else if (name.equals("network")) {
this.network = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
} else if (name.equals("unit")) {
this.unit = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
} else if (name.equals("term")) {
this.term = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
} else if (name.equals("value[x]")) {
this.value = TypeConvertor.castToType(value); // DataType
} else if (name.equals("exception")) {
this.getException().add((ExemptionComponent) value);
} else
return super.setProperty(name, value);
return value;
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
} else if (name.equals("category")) {
this.category = null;
} else if (name.equals("network")) {
this.network = null;
} else if (name.equals("unit")) {
this.unit = null;
} else if (name.equals("term")) {
this.term = null;
} else if (name.equals("value[x]")) {
this.value = null;
} else if (name.equals("exception")) {
this.getException().remove((ExemptionComponent) value);
} else
super.removeChild(name, value);
}
@Override
public Base makeProperty(int hash, String name) throws FHIRException {
switch (hash) {
case 3575610: return getType();
case 50511102: return getCategory();
case 1843485230: return getNetwork();
case 3594628: return getUnit();
case 3556460: return getTerm();
case -1410166417: return getValue();
case 111972721: return getValue();
case 1481625679: return addException();
default: return super.makeProperty(hash, name);
}
}
@Override
public String[] getTypesForProperty(int hash, String name) throws FHIRException {
switch (hash) {
case 3575610: /*type*/ return new String[] {"CodeableConcept"};
case 50511102: /*category*/ return new String[] {"CodeableConcept"};
case 1843485230: /*network*/ return new String[] {"CodeableConcept"};
case 3594628: /*unit*/ return new String[] {"CodeableConcept"};
case 3556460: /*term*/ return new String[] {"CodeableConcept"};
case 111972721: /*value*/ return new String[] {"Quantity", "Money"};
case 1481625679: /*exception*/ return new String[] {};
default: return super.getTypesForProperty(hash, name);
}
}
@Override
public Base addChild(String name) throws FHIRException {
if (name.equals("type")) {
this.type = new CodeableConcept();
return this.type;
}
else if (name.equals("category")) {
this.category = new CodeableConcept();
return this.category;
}
else if (name.equals("network")) {
this.network = new CodeableConcept();
return this.network;
}
else if (name.equals("unit")) {
this.unit = new CodeableConcept();
return this.unit;
}
else if (name.equals("term")) {
this.term = new CodeableConcept();
return this.term;
}
else if (name.equals("valueQuantity")) {
this.value = new Quantity();
return this.value;
}
else if (name.equals("valueMoney")) {
this.value = new Money();
return this.value;
}
else if (name.equals("exception")) {
return addException();
}
else
return super.addChild(name);
}
public CostToBeneficiaryComponent copy() {
CostToBeneficiaryComponent dst = new CostToBeneficiaryComponent();
copyValues(dst);
return dst;
}
public void copyValues(CostToBeneficiaryComponent dst) {
super.copyValues(dst);
dst.type = type == null ? null : type.copy();
dst.category = category == null ? null : category.copy();
dst.network = network == null ? null : network.copy();
dst.unit = unit == null ? null : unit.copy();
dst.term = term == null ? null : term.copy();
dst.value = value == null ? null : value.copy();
if (exception != null) {
dst.exception = new ArrayList();
for (ExemptionComponent i : exception)
dst.exception.add(i.copy());
};
}
@Override
public boolean equalsDeep(Base other_) {
if (!super.equalsDeep(other_))
return false;
if (!(other_ instanceof CostToBeneficiaryComponent))
return false;
CostToBeneficiaryComponent o = (CostToBeneficiaryComponent) other_;
return compareDeep(type, o.type, true) && compareDeep(category, o.category, true) && compareDeep(network, o.network, true)
&& compareDeep(unit, o.unit, true) && compareDeep(term, o.term, true) && compareDeep(value, o.value, true)
&& compareDeep(exception, o.exception, true);
}
@Override
public boolean equalsShallow(Base other_) {
if (!super.equalsShallow(other_))
return false;
if (!(other_ instanceof CostToBeneficiaryComponent))
return false;
CostToBeneficiaryComponent o = (CostToBeneficiaryComponent) other_;
return true;
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, category, network
, unit, term, value, exception);
}
public String fhirType() {
return "Coverage.costToBeneficiary";
}
}
@Block()
public static class ExemptionComponent extends BackboneElement implements IBaseBackboneElement {
/**
* The code for the specific exception.
*/
@Child(name = "type", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="Exception category", formalDefinition="The code for the specific exception." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/coverage-financial-exception")
protected CodeableConcept type;
/**
* The timeframe the exception is in force.
*/
@Child(name = "period", type = {Period.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="The effective period of the exception", formalDefinition="The timeframe the exception is in force." )
protected Period period;
private static final long serialVersionUID = 523191991L;
/**
* Constructor
*/
public ExemptionComponent() {
super();
}
/**
* Constructor
*/
public ExemptionComponent(CodeableConcept type) {
super();
this.setType(type);
}
/**
* @return {@link #type} (The code for the specific exception.)
*/
public CodeableConcept getType() {
if (this.type == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ExemptionComponent.type");
else if (Configuration.doAutoCreate())
this.type = new CodeableConcept(); // cc
return this.type;
}
public boolean hasType() {
return this.type != null && !this.type.isEmpty();
}
/**
* @param value {@link #type} (The code for the specific exception.)
*/
public ExemptionComponent setType(CodeableConcept value) {
this.type = value;
return this;
}
/**
* @return {@link #period} (The timeframe the exception is in force.)
*/
public Period getPeriod() {
if (this.period == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ExemptionComponent.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 timeframe the exception is in force.)
*/
public ExemptionComponent setPeriod(Period value) {
this.period = value;
return this;
}
protected void listChildren(List children) {
super.listChildren(children);
children.add(new Property("type", "CodeableConcept", "The code for the specific exception.", 0, 1, type));
children.add(new Property("period", "Period", "The timeframe the exception is in force.", 0, 1, period));
}
@Override
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
switch (_hash) {
case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The code for the specific exception.", 0, 1, type);
case -991726143: /*period*/ return new Property("period", "Period", "The timeframe the exception is in force.", 0, 1, period);
default: return super.getNamedProperty(_hash, _name, _checkValid);
}
}
@Override
public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
switch (hash) {
case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept
case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period
default: return super.getProperty(hash, name, checkValid);
}
}
@Override
public Base setProperty(int hash, String name, Base value) throws FHIRException {
switch (hash) {
case 3575610: // type
this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
return value;
case -991726143: // period
this.period = TypeConvertor.castToPeriod(value); // Period
return value;
default: return super.setProperty(hash, name, value);
}
}
@Override
public Base setProperty(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
} else if (name.equals("period")) {
this.period = TypeConvertor.castToPeriod(value); // Period
} else
return super.setProperty(name, value);
return value;
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
} else if (name.equals("period")) {
this.period = null;
} else
super.removeChild(name, value);
}
@Override
public Base makeProperty(int hash, String name) throws FHIRException {
switch (hash) {
case 3575610: return getType();
case -991726143: return getPeriod();
default: return super.makeProperty(hash, name);
}
}
@Override
public String[] getTypesForProperty(int hash, String name) throws FHIRException {
switch (hash) {
case 3575610: /*type*/ return new String[] {"CodeableConcept"};
case -991726143: /*period*/ return new String[] {"Period"};
default: return super.getTypesForProperty(hash, name);
}
}
@Override
public Base addChild(String name) throws FHIRException {
if (name.equals("type")) {
this.type = new CodeableConcept();
return this.type;
}
else if (name.equals("period")) {
this.period = new Period();
return this.period;
}
else
return super.addChild(name);
}
public ExemptionComponent copy() {
ExemptionComponent dst = new ExemptionComponent();
copyValues(dst);
return dst;
}
public void copyValues(ExemptionComponent dst) {
super.copyValues(dst);
dst.type = type == null ? null : type.copy();
dst.period = period == null ? null : period.copy();
}
@Override
public boolean equalsDeep(Base other_) {
if (!super.equalsDeep(other_))
return false;
if (!(other_ instanceof ExemptionComponent))
return false;
ExemptionComponent o = (ExemptionComponent) other_;
return compareDeep(type, o.type, true) && compareDeep(period, o.period, true);
}
@Override
public boolean equalsShallow(Base other_) {
if (!super.equalsShallow(other_))
return false;
if (!(other_ instanceof ExemptionComponent))
return false;
ExemptionComponent o = (ExemptionComponent) other_;
return true;
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, period);
}
public String fhirType() {
return "Coverage.costToBeneficiary.exception";
}
}
/**
* The identifier of the coverage as issued by the insurer.
*/
@Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Business identifier(s) for this coverage", formalDefinition="The identifier of the coverage as issued by the insurer." )
protected List identifier;
/**
* The status of the resource instance.
*/
@Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true)
@Description(shortDefinition="active | cancelled | draft | entered-in-error", formalDefinition="The status of the resource instance." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/fm-status")
protected Enumeration status;
/**
* The nature of the coverage be it insurance, or cash payment such as self-pay.
*/
@Child(name = "kind", type = {CodeType.class}, order=2, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="insurance | self-pay | other", formalDefinition="The nature of the coverage be it insurance, or cash payment such as self-pay." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/coverage-kind")
protected Enumeration kind;
/**
* Link to the paying party and optionally what specifically they will be responsible to pay.
*/
@Child(name = "paymentBy", type = {}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Self-pay parties and responsibility", formalDefinition="Link to the paying party and optionally what specifically they will be responsible to pay." )
protected List paymentBy;
/**
* The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health or payment by an individual or organization.
*/
@Child(name = "type", type = {CodeableConcept.class}, order=4, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Coverage category such as medical or accident", formalDefinition="The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health or payment by an individual or organization." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/coverage-type")
protected CodeableConcept type;
/**
* The party who 'owns' the insurance policy.
*/
@Child(name = "policyHolder", type = {Patient.class, RelatedPerson.class, Organization.class}, order=5, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Owner of the policy", formalDefinition="The party who 'owns' the insurance policy." )
protected Reference policyHolder;
/**
* The party who has signed-up for or 'owns' the contractual relationship to the policy or to whom the benefit of the policy for services rendered to them or their family is due.
*/
@Child(name = "subscriber", type = {Patient.class, RelatedPerson.class}, order=6, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Subscriber to the policy", formalDefinition="The party who has signed-up for or 'owns' the contractual relationship to the policy or to whom the benefit of the policy for services rendered to them or their family is due." )
protected Reference subscriber;
/**
* The insurer assigned ID for the Subscriber.
*/
@Child(name = "subscriberId", type = {Identifier.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="ID assigned to the subscriber", formalDefinition="The insurer assigned ID for the Subscriber." )
protected List subscriberId;
/**
* The party who benefits from the insurance coverage; the patient when products and/or services are provided.
*/
@Child(name = "beneficiary", type = {Patient.class}, order=8, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="Plan beneficiary", formalDefinition="The party who benefits from the insurance coverage; the patient when products and/or services are provided." )
protected Reference beneficiary;
/**
* A designator for a dependent under the coverage.
*/
@Child(name = "dependent", type = {StringType.class}, order=9, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Dependent number", formalDefinition="A designator for a dependent under the coverage." )
protected StringType dependent;
/**
* The relationship of beneficiary (patient) to the subscriber.
*/
@Child(name = "relationship", type = {CodeableConcept.class}, order=10, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Beneficiary relationship to the subscriber", formalDefinition="The relationship of beneficiary (patient) to the subscriber." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/subscriber-relationship")
protected CodeableConcept relationship;
/**
* Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force.
*/
@Child(name = "period", type = {Period.class}, order=11, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Coverage start and end dates", formalDefinition="Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force." )
protected Period period;
/**
* The program or plan underwriter, payor, insurance company.
*/
@Child(name = "insurer", type = {Organization.class}, order=12, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Issuer of the policy", formalDefinition="The program or plan underwriter, payor, insurance company." )
protected Reference insurer;
/**
* A suite of underwriter specific classifiers.
*/
@Child(name = "class", type = {}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Additional coverage classifications", formalDefinition="A suite of underwriter specific classifiers." )
protected List class_;
/**
* The order of applicability of this coverage relative to other coverages which are currently in force. Note, there may be gaps in the numbering and this does not imply primary, secondary etc. as the specific positioning of coverages depends upon the episode of care. For example; a patient might have (0) auto insurance (1) their own health insurance and (2) spouse's health insurance. When claiming for treatments which were not the result of an auto accident then only coverages (1) and (2) above would be applicatble and would apply in the order specified in parenthesis.
*/
@Child(name = "order", type = {PositiveIntType.class}, order=14, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Relative order of the coverage", formalDefinition="The order of applicability of this coverage relative to other coverages which are currently in force. Note, there may be gaps in the numbering and this does not imply primary, secondary etc. as the specific positioning of coverages depends upon the episode of care. For example; a patient might have (0) auto insurance (1) their own health insurance and (2) spouse's health insurance. When claiming for treatments which were not the result of an auto accident then only coverages (1) and (2) above would be applicatble and would apply in the order specified in parenthesis." )
protected PositiveIntType order;
/**
* The insurer-specific identifier for the insurer-defined network of providers to which the beneficiary may seek treatment which will be covered at the 'in-network' rate, otherwise 'out of network' terms and conditions apply.
*/
@Child(name = "network", type = {StringType.class}, order=15, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Insurer network", formalDefinition="The insurer-specific identifier for the insurer-defined network of providers to which the beneficiary may seek treatment which will be covered at the 'in-network' rate, otherwise 'out of network' terms and conditions apply." )
protected StringType network;
/**
* A suite of codes indicating the cost category and associated amount which have been detailed in the policy and may have been included on the health card.
*/
@Child(name = "costToBeneficiary", type = {}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Patient payments for services/products", formalDefinition="A suite of codes indicating the cost category and associated amount which have been detailed in the policy and may have been included on the health card." )
protected List costToBeneficiary;
/**
* When 'subrogation=true' this insurance instance has been included not for adjudication but to provide insurers with the details to recover costs.
*/
@Child(name = "subrogation", type = {BooleanType.class}, order=17, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Reimbursement to insurer", formalDefinition="When 'subrogation=true' this insurance instance has been included not for adjudication but to provide insurers with the details to recover costs." )
protected BooleanType subrogation;
/**
* The policy(s) which constitute this insurance coverage.
*/
@Child(name = "contract", type = {Contract.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Contract details", formalDefinition="The policy(s) which constitute this insurance coverage." )
protected List contract;
/**
* The insurance plan details, benefits and costs, which constitute this insurance coverage.
*/
@Child(name = "insurancePlan", type = {InsurancePlan.class}, order=19, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Insurance plan details", formalDefinition="The insurance plan details, benefits and costs, which constitute this insurance coverage." )
protected Reference insurancePlan;
private static final long serialVersionUID = -1129388911L;
/**
* Constructor
*/
public Coverage() {
super();
}
/**
* Constructor
*/
public Coverage(FinancialResourceStatusCodes status, Kind kind, Reference beneficiary) {
super();
this.setStatus(status);
this.setKind(kind);
this.setBeneficiary(beneficiary);
}
/**
* @return {@link #identifier} (The identifier of the coverage as issued by the insurer.)
*/
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 Coverage 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 Coverage 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 #status} (The status of the resource instance.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
*/
public Enumeration getStatusElement() {
if (this.status == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Coverage.status");
else if (Configuration.doAutoCreate())
this.status = new Enumeration(new FinancialResourceStatusCodesEnumFactory()); // bb
return this.status;
}
public boolean hasStatusElement() {
return this.status != null && !this.status.isEmpty();
}
public boolean hasStatus() {
return this.status != null && !this.status.isEmpty();
}
/**
* @param value {@link #status} (The status of the resource instance.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
*/
public Coverage setStatusElement(Enumeration value) {
this.status = value;
return this;
}
/**
* @return The status of the resource instance.
*/
public FinancialResourceStatusCodes getStatus() {
return this.status == null ? null : this.status.getValue();
}
/**
* @param value The status of the resource instance.
*/
public Coverage setStatus(FinancialResourceStatusCodes value) {
if (this.status == null)
this.status = new Enumeration(new FinancialResourceStatusCodesEnumFactory());
this.status.setValue(value);
return this;
}
/**
* @return {@link #kind} (The nature of the coverage be it insurance, or cash payment such as self-pay.). This is the underlying object with id, value and extensions. The accessor "getKind" gives direct access to the value
*/
public Enumeration getKindElement() {
if (this.kind == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Coverage.kind");
else if (Configuration.doAutoCreate())
this.kind = new Enumeration(new KindEnumFactory()); // bb
return this.kind;
}
public boolean hasKindElement() {
return this.kind != null && !this.kind.isEmpty();
}
public boolean hasKind() {
return this.kind != null && !this.kind.isEmpty();
}
/**
* @param value {@link #kind} (The nature of the coverage be it insurance, or cash payment such as self-pay.). This is the underlying object with id, value and extensions. The accessor "getKind" gives direct access to the value
*/
public Coverage setKindElement(Enumeration value) {
this.kind = value;
return this;
}
/**
* @return The nature of the coverage be it insurance, or cash payment such as self-pay.
*/
public Kind getKind() {
return this.kind == null ? null : this.kind.getValue();
}
/**
* @param value The nature of the coverage be it insurance, or cash payment such as self-pay.
*/
public Coverage setKind(Kind value) {
if (this.kind == null)
this.kind = new Enumeration(new KindEnumFactory());
this.kind.setValue(value);
return this;
}
/**
* @return {@link #paymentBy} (Link to the paying party and optionally what specifically they will be responsible to pay.)
*/
public List getPaymentBy() {
if (this.paymentBy == null)
this.paymentBy = new ArrayList();
return this.paymentBy;
}
/**
* @return Returns a reference to this for easy method chaining
*/
public Coverage setPaymentBy(List thePaymentBy) {
this.paymentBy = thePaymentBy;
return this;
}
public boolean hasPaymentBy() {
if (this.paymentBy == null)
return false;
for (CoveragePaymentByComponent item : this.paymentBy)
if (!item.isEmpty())
return true;
return false;
}
public CoveragePaymentByComponent addPaymentBy() { //3
CoveragePaymentByComponent t = new CoveragePaymentByComponent();
if (this.paymentBy == null)
this.paymentBy = new ArrayList();
this.paymentBy.add(t);
return t;
}
public Coverage addPaymentBy(CoveragePaymentByComponent t) { //3
if (t == null)
return this;
if (this.paymentBy == null)
this.paymentBy = new ArrayList();
this.paymentBy.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #paymentBy}, creating it if it does not already exist {3}
*/
public CoveragePaymentByComponent getPaymentByFirstRep() {
if (getPaymentBy().isEmpty()) {
addPaymentBy();
}
return getPaymentBy().get(0);
}
/**
* @return {@link #type} (The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health or payment by an individual or organization.)
*/
public CodeableConcept getType() {
if (this.type == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Coverage.type");
else if (Configuration.doAutoCreate())
this.type = new CodeableConcept(); // cc
return this.type;
}
public boolean hasType() {
return this.type != null && !this.type.isEmpty();
}
/**
* @param value {@link #type} (The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health or payment by an individual or organization.)
*/
public Coverage setType(CodeableConcept value) {
this.type = value;
return this;
}
/**
* @return {@link #policyHolder} (The party who 'owns' the insurance policy.)
*/
public Reference getPolicyHolder() {
if (this.policyHolder == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Coverage.policyHolder");
else if (Configuration.doAutoCreate())
this.policyHolder = new Reference(); // cc
return this.policyHolder;
}
public boolean hasPolicyHolder() {
return this.policyHolder != null && !this.policyHolder.isEmpty();
}
/**
* @param value {@link #policyHolder} (The party who 'owns' the insurance policy.)
*/
public Coverage setPolicyHolder(Reference value) {
this.policyHolder = value;
return this;
}
/**
* @return {@link #subscriber} (The party who has signed-up for or 'owns' the contractual relationship to the policy or to whom the benefit of the policy for services rendered to them or their family is due.)
*/
public Reference getSubscriber() {
if (this.subscriber == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Coverage.subscriber");
else if (Configuration.doAutoCreate())
this.subscriber = new Reference(); // cc
return this.subscriber;
}
public boolean hasSubscriber() {
return this.subscriber != null && !this.subscriber.isEmpty();
}
/**
* @param value {@link #subscriber} (The party who has signed-up for or 'owns' the contractual relationship to the policy or to whom the benefit of the policy for services rendered to them or their family is due.)
*/
public Coverage setSubscriber(Reference value) {
this.subscriber = value;
return this;
}
/**
* @return {@link #subscriberId} (The insurer assigned ID for the Subscriber.)
*/
public List getSubscriberId() {
if (this.subscriberId == null)
this.subscriberId = new ArrayList();
return this.subscriberId;
}
/**
* @return Returns a reference to this for easy method chaining
*/
public Coverage setSubscriberId(List theSubscriberId) {
this.subscriberId = theSubscriberId;
return this;
}
public boolean hasSubscriberId() {
if (this.subscriberId == null)
return false;
for (Identifier item : this.subscriberId)
if (!item.isEmpty())
return true;
return false;
}
public Identifier addSubscriberId() { //3
Identifier t = new Identifier();
if (this.subscriberId == null)
this.subscriberId = new ArrayList();
this.subscriberId.add(t);
return t;
}
public Coverage addSubscriberId(Identifier t) { //3
if (t == null)
return this;
if (this.subscriberId == null)
this.subscriberId = new ArrayList();
this.subscriberId.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #subscriberId}, creating it if it does not already exist {3}
*/
public Identifier getSubscriberIdFirstRep() {
if (getSubscriberId().isEmpty()) {
addSubscriberId();
}
return getSubscriberId().get(0);
}
/**
* @return {@link #beneficiary} (The party who benefits from the insurance coverage; the patient when products and/or services are provided.)
*/
public Reference getBeneficiary() {
if (this.beneficiary == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Coverage.beneficiary");
else if (Configuration.doAutoCreate())
this.beneficiary = new Reference(); // cc
return this.beneficiary;
}
public boolean hasBeneficiary() {
return this.beneficiary != null && !this.beneficiary.isEmpty();
}
/**
* @param value {@link #beneficiary} (The party who benefits from the insurance coverage; the patient when products and/or services are provided.)
*/
public Coverage setBeneficiary(Reference value) {
this.beneficiary = value;
return this;
}
/**
* @return {@link #dependent} (A designator for a dependent under the coverage.). This is the underlying object with id, value and extensions. The accessor "getDependent" gives direct access to the value
*/
public StringType getDependentElement() {
if (this.dependent == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Coverage.dependent");
else if (Configuration.doAutoCreate())
this.dependent = new StringType(); // bb
return this.dependent;
}
public boolean hasDependentElement() {
return this.dependent != null && !this.dependent.isEmpty();
}
public boolean hasDependent() {
return this.dependent != null && !this.dependent.isEmpty();
}
/**
* @param value {@link #dependent} (A designator for a dependent under the coverage.). This is the underlying object with id, value and extensions. The accessor "getDependent" gives direct access to the value
*/
public Coverage setDependentElement(StringType value) {
this.dependent = value;
return this;
}
/**
* @return A designator for a dependent under the coverage.
*/
public String getDependent() {
return this.dependent == null ? null : this.dependent.getValue();
}
/**
* @param value A designator for a dependent under the coverage.
*/
public Coverage setDependent(String value) {
if (Utilities.noString(value))
this.dependent = null;
else {
if (this.dependent == null)
this.dependent = new StringType();
this.dependent.setValue(value);
}
return this;
}
/**
* @return {@link #relationship} (The relationship of beneficiary (patient) to the subscriber.)
*/
public CodeableConcept getRelationship() {
if (this.relationship == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Coverage.relationship");
else if (Configuration.doAutoCreate())
this.relationship = new CodeableConcept(); // cc
return this.relationship;
}
public boolean hasRelationship() {
return this.relationship != null && !this.relationship.isEmpty();
}
/**
* @param value {@link #relationship} (The relationship of beneficiary (patient) to the subscriber.)
*/
public Coverage setRelationship(CodeableConcept value) {
this.relationship = value;
return this;
}
/**
* @return {@link #period} (Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force.)
*/
public Period getPeriod() {
if (this.period == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Coverage.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} (Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force.)
*/
public Coverage setPeriod(Period value) {
this.period = value;
return this;
}
/**
* @return {@link #insurer} (The program or plan underwriter, payor, insurance company.)
*/
public Reference getInsurer() {
if (this.insurer == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Coverage.insurer");
else if (Configuration.doAutoCreate())
this.insurer = new Reference(); // cc
return this.insurer;
}
public boolean hasInsurer() {
return this.insurer != null && !this.insurer.isEmpty();
}
/**
* @param value {@link #insurer} (The program or plan underwriter, payor, insurance company.)
*/
public Coverage setInsurer(Reference value) {
this.insurer = value;
return this;
}
/**
* @return {@link #class_} (A suite of underwriter specific classifiers.)
*/
public List getClass_() {
if (this.class_ == null)
this.class_ = new ArrayList();
return this.class_;
}
/**
* @return Returns a reference to this for easy method chaining
*/
public Coverage setClass_(List theClass_) {
this.class_ = theClass_;
return this;
}
public boolean hasClass_() {
if (this.class_ == null)
return false;
for (ClassComponent item : this.class_)
if (!item.isEmpty())
return true;
return false;
}
public ClassComponent addClass_() { //3
ClassComponent t = new ClassComponent();
if (this.class_ == null)
this.class_ = new ArrayList();
this.class_.add(t);
return t;
}
public Coverage addClass_(ClassComponent t) { //3
if (t == null)
return this;
if (this.class_ == null)
this.class_ = new ArrayList();
this.class_.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #class_}, creating it if it does not already exist {3}
*/
public ClassComponent getClass_FirstRep() {
if (getClass_().isEmpty()) {
addClass_();
}
return getClass_().get(0);
}
/**
* @return {@link #order} (The order of applicability of this coverage relative to other coverages which are currently in force. Note, there may be gaps in the numbering and this does not imply primary, secondary etc. as the specific positioning of coverages depends upon the episode of care. For example; a patient might have (0) auto insurance (1) their own health insurance and (2) spouse's health insurance. When claiming for treatments which were not the result of an auto accident then only coverages (1) and (2) above would be applicatble and would apply in the order specified in parenthesis.). This is the underlying object with id, value and extensions. The accessor "getOrder" gives direct access to the value
*/
public PositiveIntType getOrderElement() {
if (this.order == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Coverage.order");
else if (Configuration.doAutoCreate())
this.order = new PositiveIntType(); // bb
return this.order;
}
public boolean hasOrderElement() {
return this.order != null && !this.order.isEmpty();
}
public boolean hasOrder() {
return this.order != null && !this.order.isEmpty();
}
/**
* @param value {@link #order} (The order of applicability of this coverage relative to other coverages which are currently in force. Note, there may be gaps in the numbering and this does not imply primary, secondary etc. as the specific positioning of coverages depends upon the episode of care. For example; a patient might have (0) auto insurance (1) their own health insurance and (2) spouse's health insurance. When claiming for treatments which were not the result of an auto accident then only coverages (1) and (2) above would be applicatble and would apply in the order specified in parenthesis.). This is the underlying object with id, value and extensions. The accessor "getOrder" gives direct access to the value
*/
public Coverage setOrderElement(PositiveIntType value) {
this.order = value;
return this;
}
/**
* @return The order of applicability of this coverage relative to other coverages which are currently in force. Note, there may be gaps in the numbering and this does not imply primary, secondary etc. as the specific positioning of coverages depends upon the episode of care. For example; a patient might have (0) auto insurance (1) their own health insurance and (2) spouse's health insurance. When claiming for treatments which were not the result of an auto accident then only coverages (1) and (2) above would be applicatble and would apply in the order specified in parenthesis.
*/
public int getOrder() {
return this.order == null || this.order.isEmpty() ? 0 : this.order.getValue();
}
/**
* @param value The order of applicability of this coverage relative to other coverages which are currently in force. Note, there may be gaps in the numbering and this does not imply primary, secondary etc. as the specific positioning of coverages depends upon the episode of care. For example; a patient might have (0) auto insurance (1) their own health insurance and (2) spouse's health insurance. When claiming for treatments which were not the result of an auto accident then only coverages (1) and (2) above would be applicatble and would apply in the order specified in parenthesis.
*/
public Coverage setOrder(int value) {
if (this.order == null)
this.order = new PositiveIntType();
this.order.setValue(value);
return this;
}
/**
* @return {@link #network} (The insurer-specific identifier for the insurer-defined network of providers to which the beneficiary may seek treatment which will be covered at the 'in-network' rate, otherwise 'out of network' terms and conditions apply.). This is the underlying object with id, value and extensions. The accessor "getNetwork" gives direct access to the value
*/
public StringType getNetworkElement() {
if (this.network == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Coverage.network");
else if (Configuration.doAutoCreate())
this.network = new StringType(); // bb
return this.network;
}
public boolean hasNetworkElement() {
return this.network != null && !this.network.isEmpty();
}
public boolean hasNetwork() {
return this.network != null && !this.network.isEmpty();
}
/**
* @param value {@link #network} (The insurer-specific identifier for the insurer-defined network of providers to which the beneficiary may seek treatment which will be covered at the 'in-network' rate, otherwise 'out of network' terms and conditions apply.). This is the underlying object with id, value and extensions. The accessor "getNetwork" gives direct access to the value
*/
public Coverage setNetworkElement(StringType value) {
this.network = value;
return this;
}
/**
* @return The insurer-specific identifier for the insurer-defined network of providers to which the beneficiary may seek treatment which will be covered at the 'in-network' rate, otherwise 'out of network' terms and conditions apply.
*/
public String getNetwork() {
return this.network == null ? null : this.network.getValue();
}
/**
* @param value The insurer-specific identifier for the insurer-defined network of providers to which the beneficiary may seek treatment which will be covered at the 'in-network' rate, otherwise 'out of network' terms and conditions apply.
*/
public Coverage setNetwork(String value) {
if (Utilities.noString(value))
this.network = null;
else {
if (this.network == null)
this.network = new StringType();
this.network.setValue(value);
}
return this;
}
/**
* @return {@link #costToBeneficiary} (A suite of codes indicating the cost category and associated amount which have been detailed in the policy and may have been included on the health card.)
*/
public List getCostToBeneficiary() {
if (this.costToBeneficiary == null)
this.costToBeneficiary = new ArrayList();
return this.costToBeneficiary;
}
/**
* @return Returns a reference to this for easy method chaining
*/
public Coverage setCostToBeneficiary(List theCostToBeneficiary) {
this.costToBeneficiary = theCostToBeneficiary;
return this;
}
public boolean hasCostToBeneficiary() {
if (this.costToBeneficiary == null)
return false;
for (CostToBeneficiaryComponent item : this.costToBeneficiary)
if (!item.isEmpty())
return true;
return false;
}
public CostToBeneficiaryComponent addCostToBeneficiary() { //3
CostToBeneficiaryComponent t = new CostToBeneficiaryComponent();
if (this.costToBeneficiary == null)
this.costToBeneficiary = new ArrayList();
this.costToBeneficiary.add(t);
return t;
}
public Coverage addCostToBeneficiary(CostToBeneficiaryComponent t) { //3
if (t == null)
return this;
if (this.costToBeneficiary == null)
this.costToBeneficiary = new ArrayList();
this.costToBeneficiary.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #costToBeneficiary}, creating it if it does not already exist {3}
*/
public CostToBeneficiaryComponent getCostToBeneficiaryFirstRep() {
if (getCostToBeneficiary().isEmpty()) {
addCostToBeneficiary();
}
return getCostToBeneficiary().get(0);
}
/**
* @return {@link #subrogation} (When 'subrogation=true' this insurance instance has been included not for adjudication but to provide insurers with the details to recover costs.). This is the underlying object with id, value and extensions. The accessor "getSubrogation" gives direct access to the value
*/
public BooleanType getSubrogationElement() {
if (this.subrogation == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Coverage.subrogation");
else if (Configuration.doAutoCreate())
this.subrogation = new BooleanType(); // bb
return this.subrogation;
}
public boolean hasSubrogationElement() {
return this.subrogation != null && !this.subrogation.isEmpty();
}
public boolean hasSubrogation() {
return this.subrogation != null && !this.subrogation.isEmpty();
}
/**
* @param value {@link #subrogation} (When 'subrogation=true' this insurance instance has been included not for adjudication but to provide insurers with the details to recover costs.). This is the underlying object with id, value and extensions. The accessor "getSubrogation" gives direct access to the value
*/
public Coverage setSubrogationElement(BooleanType value) {
this.subrogation = value;
return this;
}
/**
* @return When 'subrogation=true' this insurance instance has been included not for adjudication but to provide insurers with the details to recover costs.
*/
public boolean getSubrogation() {
return this.subrogation == null || this.subrogation.isEmpty() ? false : this.subrogation.getValue();
}
/**
* @param value When 'subrogation=true' this insurance instance has been included not for adjudication but to provide insurers with the details to recover costs.
*/
public Coverage setSubrogation(boolean value) {
if (this.subrogation == null)
this.subrogation = new BooleanType();
this.subrogation.setValue(value);
return this;
}
/**
* @return {@link #contract} (The policy(s) which constitute this insurance coverage.)
*/
public List getContract() {
if (this.contract == null)
this.contract = new ArrayList();
return this.contract;
}
/**
* @return Returns a reference to this for easy method chaining
*/
public Coverage setContract(List theContract) {
this.contract = theContract;
return this;
}
public boolean hasContract() {
if (this.contract == null)
return false;
for (Reference item : this.contract)
if (!item.isEmpty())
return true;
return false;
}
public Reference addContract() { //3
Reference t = new Reference();
if (this.contract == null)
this.contract = new ArrayList();
this.contract.add(t);
return t;
}
public Coverage addContract(Reference t) { //3
if (t == null)
return this;
if (this.contract == null)
this.contract = new ArrayList();
this.contract.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #contract}, creating it if it does not already exist {3}
*/
public Reference getContractFirstRep() {
if (getContract().isEmpty()) {
addContract();
}
return getContract().get(0);
}
/**
* @return {@link #insurancePlan} (The insurance plan details, benefits and costs, which constitute this insurance coverage.)
*/
public Reference getInsurancePlan() {
if (this.insurancePlan == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Coverage.insurancePlan");
else if (Configuration.doAutoCreate())
this.insurancePlan = new Reference(); // cc
return this.insurancePlan;
}
public boolean hasInsurancePlan() {
return this.insurancePlan != null && !this.insurancePlan.isEmpty();
}
/**
* @param value {@link #insurancePlan} (The insurance plan details, benefits and costs, which constitute this insurance coverage.)
*/
public Coverage setInsurancePlan(Reference value) {
this.insurancePlan = value;
return this;
}
protected void listChildren(List children) {
super.listChildren(children);
children.add(new Property("identifier", "Identifier", "The identifier of the coverage as issued by the insurer.", 0, java.lang.Integer.MAX_VALUE, identifier));
children.add(new Property("status", "code", "The status of the resource instance.", 0, 1, status));
children.add(new Property("kind", "code", "The nature of the coverage be it insurance, or cash payment such as self-pay.", 0, 1, kind));
children.add(new Property("paymentBy", "", "Link to the paying party and optionally what specifically they will be responsible to pay.", 0, java.lang.Integer.MAX_VALUE, paymentBy));
children.add(new Property("type", "CodeableConcept", "The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health or payment by an individual or organization.", 0, 1, type));
children.add(new Property("policyHolder", "Reference(Patient|RelatedPerson|Organization)", "The party who 'owns' the insurance policy.", 0, 1, policyHolder));
children.add(new Property("subscriber", "Reference(Patient|RelatedPerson)", "The party who has signed-up for or 'owns' the contractual relationship to the policy or to whom the benefit of the policy for services rendered to them or their family is due.", 0, 1, subscriber));
children.add(new Property("subscriberId", "Identifier", "The insurer assigned ID for the Subscriber.", 0, java.lang.Integer.MAX_VALUE, subscriberId));
children.add(new Property("beneficiary", "Reference(Patient)", "The party who benefits from the insurance coverage; the patient when products and/or services are provided.", 0, 1, beneficiary));
children.add(new Property("dependent", "string", "A designator for a dependent under the coverage.", 0, 1, dependent));
children.add(new Property("relationship", "CodeableConcept", "The relationship of beneficiary (patient) to the subscriber.", 0, 1, relationship));
children.add(new Property("period", "Period", "Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force.", 0, 1, period));
children.add(new Property("insurer", "Reference(Organization)", "The program or plan underwriter, payor, insurance company.", 0, 1, insurer));
children.add(new Property("class", "", "A suite of underwriter specific classifiers.", 0, java.lang.Integer.MAX_VALUE, class_));
children.add(new Property("order", "positiveInt", "The order of applicability of this coverage relative to other coverages which are currently in force. Note, there may be gaps in the numbering and this does not imply primary, secondary etc. as the specific positioning of coverages depends upon the episode of care. For example; a patient might have (0) auto insurance (1) their own health insurance and (2) spouse's health insurance. When claiming for treatments which were not the result of an auto accident then only coverages (1) and (2) above would be applicatble and would apply in the order specified in parenthesis.", 0, 1, order));
children.add(new Property("network", "string", "The insurer-specific identifier for the insurer-defined network of providers to which the beneficiary may seek treatment which will be covered at the 'in-network' rate, otherwise 'out of network' terms and conditions apply.", 0, 1, network));
children.add(new Property("costToBeneficiary", "", "A suite of codes indicating the cost category and associated amount which have been detailed in the policy and may have been included on the health card.", 0, java.lang.Integer.MAX_VALUE, costToBeneficiary));
children.add(new Property("subrogation", "boolean", "When 'subrogation=true' this insurance instance has been included not for adjudication but to provide insurers with the details to recover costs.", 0, 1, subrogation));
children.add(new Property("contract", "Reference(Contract)", "The policy(s) which constitute this insurance coverage.", 0, java.lang.Integer.MAX_VALUE, contract));
children.add(new Property("insurancePlan", "Reference(InsurancePlan)", "The insurance plan details, benefits and costs, which constitute this insurance coverage.", 0, 1, insurancePlan));
}
@Override
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
switch (_hash) {
case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "The identifier of the coverage as issued by the insurer.", 0, java.lang.Integer.MAX_VALUE, identifier);
case -892481550: /*status*/ return new Property("status", "code", "The status of the resource instance.", 0, 1, status);
case 3292052: /*kind*/ return new Property("kind", "code", "The nature of the coverage be it insurance, or cash payment such as self-pay.", 0, 1, kind);
case -86519555: /*paymentBy*/ return new Property("paymentBy", "", "Link to the paying party and optionally what specifically they will be responsible to pay.", 0, java.lang.Integer.MAX_VALUE, paymentBy);
case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health or payment by an individual or organization.", 0, 1, type);
case 2046898558: /*policyHolder*/ return new Property("policyHolder", "Reference(Patient|RelatedPerson|Organization)", "The party who 'owns' the insurance policy.", 0, 1, policyHolder);
case -1219769240: /*subscriber*/ return new Property("subscriber", "Reference(Patient|RelatedPerson)", "The party who has signed-up for or 'owns' the contractual relationship to the policy or to whom the benefit of the policy for services rendered to them or their family is due.", 0, 1, subscriber);
case 327834531: /*subscriberId*/ return new Property("subscriberId", "Identifier", "The insurer assigned ID for the Subscriber.", 0, java.lang.Integer.MAX_VALUE, subscriberId);
case -565102875: /*beneficiary*/ return new Property("beneficiary", "Reference(Patient)", "The party who benefits from the insurance coverage; the patient when products and/or services are provided.", 0, 1, beneficiary);
case -1109226753: /*dependent*/ return new Property("dependent", "string", "A designator for a dependent under the coverage.", 0, 1, dependent);
case -261851592: /*relationship*/ return new Property("relationship", "CodeableConcept", "The relationship of beneficiary (patient) to the subscriber.", 0, 1, relationship);
case -991726143: /*period*/ return new Property("period", "Period", "Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force.", 0, 1, period);
case 1957615864: /*insurer*/ return new Property("insurer", "Reference(Organization)", "The program or plan underwriter, payor, insurance company.", 0, 1, insurer);
case 94742904: /*class*/ return new Property("class", "", "A suite of underwriter specific classifiers.", 0, java.lang.Integer.MAX_VALUE, class_);
case 106006350: /*order*/ return new Property("order", "positiveInt", "The order of applicability of this coverage relative to other coverages which are currently in force. Note, there may be gaps in the numbering and this does not imply primary, secondary etc. as the specific positioning of coverages depends upon the episode of care. For example; a patient might have (0) auto insurance (1) their own health insurance and (2) spouse's health insurance. When claiming for treatments which were not the result of an auto accident then only coverages (1) and (2) above would be applicatble and would apply in the order specified in parenthesis.", 0, 1, order);
case 1843485230: /*network*/ return new Property("network", "string", "The insurer-specific identifier for the insurer-defined network of providers to which the beneficiary may seek treatment which will be covered at the 'in-network' rate, otherwise 'out of network' terms and conditions apply.", 0, 1, network);
case -1866474851: /*costToBeneficiary*/ return new Property("costToBeneficiary", "", "A suite of codes indicating the cost category and associated amount which have been detailed in the policy and may have been included on the health card.", 0, java.lang.Integer.MAX_VALUE, costToBeneficiary);
case 837389739: /*subrogation*/ return new Property("subrogation", "boolean", "When 'subrogation=true' this insurance instance has been included not for adjudication but to provide insurers with the details to recover costs.", 0, 1, subrogation);
case -566947566: /*contract*/ return new Property("contract", "Reference(Contract)", "The policy(s) which constitute this insurance coverage.", 0, java.lang.Integer.MAX_VALUE, contract);
case 1992141091: /*insurancePlan*/ return new Property("insurancePlan", "Reference(InsurancePlan)", "The insurance plan details, benefits and costs, which constitute this insurance coverage.", 0, 1, insurancePlan);
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 -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration
case 3292052: /*kind*/ return this.kind == null ? new Base[0] : new Base[] {this.kind}; // Enumeration
case -86519555: /*paymentBy*/ return this.paymentBy == null ? new Base[0] : this.paymentBy.toArray(new Base[this.paymentBy.size()]); // CoveragePaymentByComponent
case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept
case 2046898558: /*policyHolder*/ return this.policyHolder == null ? new Base[0] : new Base[] {this.policyHolder}; // Reference
case -1219769240: /*subscriber*/ return this.subscriber == null ? new Base[0] : new Base[] {this.subscriber}; // Reference
case 327834531: /*subscriberId*/ return this.subscriberId == null ? new Base[0] : this.subscriberId.toArray(new Base[this.subscriberId.size()]); // Identifier
case -565102875: /*beneficiary*/ return this.beneficiary == null ? new Base[0] : new Base[] {this.beneficiary}; // Reference
case -1109226753: /*dependent*/ return this.dependent == null ? new Base[0] : new Base[] {this.dependent}; // StringType
case -261851592: /*relationship*/ return this.relationship == null ? new Base[0] : new Base[] {this.relationship}; // CodeableConcept
case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period
case 1957615864: /*insurer*/ return this.insurer == null ? new Base[0] : new Base[] {this.insurer}; // Reference
case 94742904: /*class*/ return this.class_ == null ? new Base[0] : this.class_.toArray(new Base[this.class_.size()]); // ClassComponent
case 106006350: /*order*/ return this.order == null ? new Base[0] : new Base[] {this.order}; // PositiveIntType
case 1843485230: /*network*/ return this.network == null ? new Base[0] : new Base[] {this.network}; // StringType
case -1866474851: /*costToBeneficiary*/ return this.costToBeneficiary == null ? new Base[0] : this.costToBeneficiary.toArray(new Base[this.costToBeneficiary.size()]); // CostToBeneficiaryComponent
case 837389739: /*subrogation*/ return this.subrogation == null ? new Base[0] : new Base[] {this.subrogation}; // BooleanType
case -566947566: /*contract*/ return this.contract == null ? new Base[0] : this.contract.toArray(new Base[this.contract.size()]); // Reference
case 1992141091: /*insurancePlan*/ return this.insurancePlan == null ? new Base[0] : new Base[] {this.insurancePlan}; // 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 -892481550: // status
value = new FinancialResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value));
this.status = (Enumeration) value; // Enumeration
return value;
case 3292052: // kind
value = new KindEnumFactory().fromType(TypeConvertor.castToCode(value));
this.kind = (Enumeration) value; // Enumeration
return value;
case -86519555: // paymentBy
this.getPaymentBy().add((CoveragePaymentByComponent) value); // CoveragePaymentByComponent
return value;
case 3575610: // type
this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
return value;
case 2046898558: // policyHolder
this.policyHolder = TypeConvertor.castToReference(value); // Reference
return value;
case -1219769240: // subscriber
this.subscriber = TypeConvertor.castToReference(value); // Reference
return value;
case 327834531: // subscriberId
this.getSubscriberId().add(TypeConvertor.castToIdentifier(value)); // Identifier
return value;
case -565102875: // beneficiary
this.beneficiary = TypeConvertor.castToReference(value); // Reference
return value;
case -1109226753: // dependent
this.dependent = TypeConvertor.castToString(value); // StringType
return value;
case -261851592: // relationship
this.relationship = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
return value;
case -991726143: // period
this.period = TypeConvertor.castToPeriod(value); // Period
return value;
case 1957615864: // insurer
this.insurer = TypeConvertor.castToReference(value); // Reference
return value;
case 94742904: // class
this.getClass_().add((ClassComponent) value); // ClassComponent
return value;
case 106006350: // order
this.order = TypeConvertor.castToPositiveInt(value); // PositiveIntType
return value;
case 1843485230: // network
this.network = TypeConvertor.castToString(value); // StringType
return value;
case -1866474851: // costToBeneficiary
this.getCostToBeneficiary().add((CostToBeneficiaryComponent) value); // CostToBeneficiaryComponent
return value;
case 837389739: // subrogation
this.subrogation = TypeConvertor.castToBoolean(value); // BooleanType
return value;
case -566947566: // contract
this.getContract().add(TypeConvertor.castToReference(value)); // Reference
return value;
case 1992141091: // insurancePlan
this.insurancePlan = 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("status")) {
value = new FinancialResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value));
this.status = (Enumeration) value; // Enumeration
} else if (name.equals("kind")) {
value = new KindEnumFactory().fromType(TypeConvertor.castToCode(value));
this.kind = (Enumeration) value; // Enumeration
} else if (name.equals("paymentBy")) {
this.getPaymentBy().add((CoveragePaymentByComponent) value);
} else if (name.equals("type")) {
this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
} else if (name.equals("policyHolder")) {
this.policyHolder = TypeConvertor.castToReference(value); // Reference
} else if (name.equals("subscriber")) {
this.subscriber = TypeConvertor.castToReference(value); // Reference
} else if (name.equals("subscriberId")) {
this.getSubscriberId().add(TypeConvertor.castToIdentifier(value));
} else if (name.equals("beneficiary")) {
this.beneficiary = TypeConvertor.castToReference(value); // Reference
} else if (name.equals("dependent")) {
this.dependent = TypeConvertor.castToString(value); // StringType
} else if (name.equals("relationship")) {
this.relationship = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
} else if (name.equals("period")) {
this.period = TypeConvertor.castToPeriod(value); // Period
} else if (name.equals("insurer")) {
this.insurer = TypeConvertor.castToReference(value); // Reference
} else if (name.equals("class")) {
this.getClass_().add((ClassComponent) value);
} else if (name.equals("order")) {
this.order = TypeConvertor.castToPositiveInt(value); // PositiveIntType
} else if (name.equals("network")) {
this.network = TypeConvertor.castToString(value); // StringType
} else if (name.equals("costToBeneficiary")) {
this.getCostToBeneficiary().add((CostToBeneficiaryComponent) value);
} else if (name.equals("subrogation")) {
this.subrogation = TypeConvertor.castToBoolean(value); // BooleanType
} else if (name.equals("contract")) {
this.getContract().add(TypeConvertor.castToReference(value));
} else if (name.equals("insurancePlan")) {
this.insurancePlan = 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("status")) {
value = new FinancialResourceStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value));
this.status = (Enumeration) value; // Enumeration
} else if (name.equals("kind")) {
value = new KindEnumFactory().fromType(TypeConvertor.castToCode(value));
this.kind = (Enumeration) value; // Enumeration
} else if (name.equals("paymentBy")) {
this.getPaymentBy().remove((CoveragePaymentByComponent) value);
} else if (name.equals("type")) {
this.type = null;
} else if (name.equals("policyHolder")) {
this.policyHolder = null;
} else if (name.equals("subscriber")) {
this.subscriber = null;
} else if (name.equals("subscriberId")) {
this.getSubscriberId().remove(value);
} else if (name.equals("beneficiary")) {
this.beneficiary = null;
} else if (name.equals("dependent")) {
this.dependent = null;
} else if (name.equals("relationship")) {
this.relationship = null;
} else if (name.equals("period")) {
this.period = null;
} else if (name.equals("insurer")) {
this.insurer = null;
} else if (name.equals("class")) {
this.getClass_().remove((ClassComponent) value);
} else if (name.equals("order")) {
this.order = null;
} else if (name.equals("network")) {
this.network = null;
} else if (name.equals("costToBeneficiary")) {
this.getCostToBeneficiary().remove((CostToBeneficiaryComponent) value);
} else if (name.equals("subrogation")) {
this.subrogation = null;
} else if (name.equals("contract")) {
this.getContract().remove(value);
} else if (name.equals("insurancePlan")) {
this.insurancePlan = null;
} else
super.removeChild(name, value);
}
@Override
public Base makeProperty(int hash, String name) throws FHIRException {
switch (hash) {
case -1618432855: return addIdentifier();
case -892481550: return getStatusElement();
case 3292052: return getKindElement();
case -86519555: return addPaymentBy();
case 3575610: return getType();
case 2046898558: return getPolicyHolder();
case -1219769240: return getSubscriber();
case 327834531: return addSubscriberId();
case -565102875: return getBeneficiary();
case -1109226753: return getDependentElement();
case -261851592: return getRelationship();
case -991726143: return getPeriod();
case 1957615864: return getInsurer();
case 94742904: return addClass_();
case 106006350: return getOrderElement();
case 1843485230: return getNetworkElement();
case -1866474851: return addCostToBeneficiary();
case 837389739: return getSubrogationElement();
case -566947566: return addContract();
case 1992141091: return getInsurancePlan();
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 -892481550: /*status*/ return new String[] {"code"};
case 3292052: /*kind*/ return new String[] {"code"};
case -86519555: /*paymentBy*/ return new String[] {};
case 3575610: /*type*/ return new String[] {"CodeableConcept"};
case 2046898558: /*policyHolder*/ return new String[] {"Reference"};
case -1219769240: /*subscriber*/ return new String[] {"Reference"};
case 327834531: /*subscriberId*/ return new String[] {"Identifier"};
case -565102875: /*beneficiary*/ return new String[] {"Reference"};
case -1109226753: /*dependent*/ return new String[] {"string"};
case -261851592: /*relationship*/ return new String[] {"CodeableConcept"};
case -991726143: /*period*/ return new String[] {"Period"};
case 1957615864: /*insurer*/ return new String[] {"Reference"};
case 94742904: /*class*/ return new String[] {};
case 106006350: /*order*/ return new String[] {"positiveInt"};
case 1843485230: /*network*/ return new String[] {"string"};
case -1866474851: /*costToBeneficiary*/ return new String[] {};
case 837389739: /*subrogation*/ return new String[] {"boolean"};
case -566947566: /*contract*/ return new String[] {"Reference"};
case 1992141091: /*insurancePlan*/ 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("status")) {
throw new FHIRException("Cannot call addChild on a singleton property Coverage.status");
}
else if (name.equals("kind")) {
throw new FHIRException("Cannot call addChild on a singleton property Coverage.kind");
}
else if (name.equals("paymentBy")) {
return addPaymentBy();
}
else if (name.equals("type")) {
this.type = new CodeableConcept();
return this.type;
}
else if (name.equals("policyHolder")) {
this.policyHolder = new Reference();
return this.policyHolder;
}
else if (name.equals("subscriber")) {
this.subscriber = new Reference();
return this.subscriber;
}
else if (name.equals("subscriberId")) {
return addSubscriberId();
}
else if (name.equals("beneficiary")) {
this.beneficiary = new Reference();
return this.beneficiary;
}
else if (name.equals("dependent")) {
throw new FHIRException("Cannot call addChild on a singleton property Coverage.dependent");
}
else if (name.equals("relationship")) {
this.relationship = new CodeableConcept();
return this.relationship;
}
else if (name.equals("period")) {
this.period = new Period();
return this.period;
}
else if (name.equals("insurer")) {
this.insurer = new Reference();
return this.insurer;
}
else if (name.equals("class")) {
return addClass_();
}
else if (name.equals("order")) {
throw new FHIRException("Cannot call addChild on a singleton property Coverage.order");
}
else if (name.equals("network")) {
throw new FHIRException("Cannot call addChild on a singleton property Coverage.network");
}
else if (name.equals("costToBeneficiary")) {
return addCostToBeneficiary();
}
else if (name.equals("subrogation")) {
throw new FHIRException("Cannot call addChild on a singleton property Coverage.subrogation");
}
else if (name.equals("contract")) {
return addContract();
}
else if (name.equals("insurancePlan")) {
this.insurancePlan = new Reference();
return this.insurancePlan;
}
else
return super.addChild(name);
}
public String fhirType() {
return "Coverage";
}
public Coverage copy() {
Coverage dst = new Coverage();
copyValues(dst);
return dst;
}
public void copyValues(Coverage dst) {
super.copyValues(dst);
if (identifier != null) {
dst.identifier = new ArrayList();
for (Identifier i : identifier)
dst.identifier.add(i.copy());
};
dst.status = status == null ? null : status.copy();
dst.kind = kind == null ? null : kind.copy();
if (paymentBy != null) {
dst.paymentBy = new ArrayList();
for (CoveragePaymentByComponent i : paymentBy)
dst.paymentBy.add(i.copy());
};
dst.type = type == null ? null : type.copy();
dst.policyHolder = policyHolder == null ? null : policyHolder.copy();
dst.subscriber = subscriber == null ? null : subscriber.copy();
if (subscriberId != null) {
dst.subscriberId = new ArrayList();
for (Identifier i : subscriberId)
dst.subscriberId.add(i.copy());
};
dst.beneficiary = beneficiary == null ? null : beneficiary.copy();
dst.dependent = dependent == null ? null : dependent.copy();
dst.relationship = relationship == null ? null : relationship.copy();
dst.period = period == null ? null : period.copy();
dst.insurer = insurer == null ? null : insurer.copy();
if (class_ != null) {
dst.class_ = new ArrayList();
for (ClassComponent i : class_)
dst.class_.add(i.copy());
};
dst.order = order == null ? null : order.copy();
dst.network = network == null ? null : network.copy();
if (costToBeneficiary != null) {
dst.costToBeneficiary = new ArrayList();
for (CostToBeneficiaryComponent i : costToBeneficiary)
dst.costToBeneficiary.add(i.copy());
};
dst.subrogation = subrogation == null ? null : subrogation.copy();
if (contract != null) {
dst.contract = new ArrayList();
for (Reference i : contract)
dst.contract.add(i.copy());
};
dst.insurancePlan = insurancePlan == null ? null : insurancePlan.copy();
}
protected Coverage typedCopy() {
return copy();
}
@Override
public boolean equalsDeep(Base other_) {
if (!super.equalsDeep(other_))
return false;
if (!(other_ instanceof Coverage))
return false;
Coverage o = (Coverage) other_;
return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(kind, o.kind, true)
&& compareDeep(paymentBy, o.paymentBy, true) && compareDeep(type, o.type, true) && compareDeep(policyHolder, o.policyHolder, true)
&& compareDeep(subscriber, o.subscriber, true) && compareDeep(subscriberId, o.subscriberId, true)
&& compareDeep(beneficiary, o.beneficiary, true) && compareDeep(dependent, o.dependent, true) && compareDeep(relationship, o.relationship, true)
&& compareDeep(period, o.period, true) && compareDeep(insurer, o.insurer, true) && compareDeep(class_, o.class_, true)
&& compareDeep(order, o.order, true) && compareDeep(network, o.network, true) && compareDeep(costToBeneficiary, o.costToBeneficiary, true)
&& compareDeep(subrogation, o.subrogation, true) && compareDeep(contract, o.contract, true) && compareDeep(insurancePlan, o.insurancePlan, true)
;
}
@Override
public boolean equalsShallow(Base other_) {
if (!super.equalsShallow(other_))
return false;
if (!(other_ instanceof Coverage))
return false;
Coverage o = (Coverage) other_;
return compareValues(status, o.status, true) && compareValues(kind, o.kind, true) && compareValues(dependent, o.dependent, true)
&& compareValues(order, o.order, true) && compareValues(network, o.network, true) && compareValues(subrogation, o.subrogation, true)
;
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, kind
, paymentBy, type, policyHolder, subscriber, subscriberId, beneficiary, dependent
, relationship, period, insurer, class_, order, network, costToBeneficiary, subrogation
, contract, insurancePlan);
}
@Override
public ResourceType getResourceType() {
return ResourceType.Coverage;
}
/**
* Search parameter: beneficiary
*
* Description: Covered party
* Type: reference
* Path: Coverage.beneficiary
*
*/
@SearchParamDefinition(name="beneficiary", path="Coverage.beneficiary", description="Covered party", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Patient.class } )
public static final String SP_BENEFICIARY = "beneficiary";
/**
* Fluent Client search parameter constant for beneficiary
*
* Description: Covered party
* Type: reference
* Path: Coverage.beneficiary
*
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam BENEFICIARY = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_BENEFICIARY);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Coverage:beneficiary".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_BENEFICIARY = new ca.uhn.fhir.model.api.Include("Coverage:beneficiary").toLocked();
/**
* Search parameter: class-type
*
* Description: Coverage class (e.g. plan, group)
* Type: token
* Path: Coverage.class.type
*
*/
@SearchParamDefinition(name="class-type", path="Coverage.class.type", description="Coverage class (e.g. plan, group)", type="token" )
public static final String SP_CLASS_TYPE = "class-type";
/**
* Fluent Client search parameter constant for class-type
*
* Description: Coverage class (e.g. plan, group)
* Type: token
* Path: Coverage.class.type
*
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CLASS_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CLASS_TYPE);
/**
* Search parameter: class-value
*
* Description: Value of the class (e.g. Plan number, group number)
* Type: token
* Path: Coverage.class.value
*
*/
@SearchParamDefinition(name="class-value", path="Coverage.class.value", description="Value of the class (e.g. Plan number, group number)", type="token" )
public static final String SP_CLASS_VALUE = "class-value";
/**
* Fluent Client search parameter constant for class-value
*
* Description: Value of the class (e.g. Plan number, group number)
* Type: token
* Path: Coverage.class.value
*
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CLASS_VALUE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CLASS_VALUE);
/**
* Search parameter: dependent
*
* Description: Dependent number
* Type: string
* Path: Coverage.dependent
*
*/
@SearchParamDefinition(name="dependent", path="Coverage.dependent", description="Dependent number", type="string" )
public static final String SP_DEPENDENT = "dependent";
/**
* Fluent Client search parameter constant for dependent
*
* Description: Dependent number
* Type: string
* Path: Coverage.dependent
*
*/
public static final ca.uhn.fhir.rest.gclient.StringClientParam DEPENDENT = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DEPENDENT);
/**
* Search parameter: insurer
*
* Description: The identity of the insurer
* Type: reference
* Path: Coverage.insurer
*
*/
@SearchParamDefinition(name="insurer", path="Coverage.insurer", description="The identity of the insurer", type="reference", target={Organization.class } )
public static final String SP_INSURER = "insurer";
/**
* Fluent Client search parameter constant for insurer
*
* Description: The identity of the insurer
* Type: reference
* Path: Coverage.insurer
*
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam INSURER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_INSURER);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Coverage:insurer".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_INSURER = new ca.uhn.fhir.model.api.Include("Coverage:insurer").toLocked();
/**
* Search parameter: paymentby-party
*
* Description: Parties who will pay for services
* Type: reference
* Path: Coverage.paymentBy.party
*
*/
@SearchParamDefinition(name="paymentby-party", path="Coverage.paymentBy.party", description="Parties who will pay for services", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={Organization.class, Patient.class, RelatedPerson.class } )
public static final String SP_PAYMENTBY_PARTY = "paymentby-party";
/**
* Fluent Client search parameter constant for paymentby-party
*
* Description: Parties who will pay for services
* Type: reference
* Path: Coverage.paymentBy.party
*
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PAYMENTBY_PARTY = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PAYMENTBY_PARTY);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Coverage:paymentby-party".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PAYMENTBY_PARTY = new ca.uhn.fhir.model.api.Include("Coverage:paymentby-party").toLocked();
/**
* Search parameter: policy-holder
*
* Description: Reference to the policyholder
* Type: reference
* Path: Coverage.policyHolder
*
*/
@SearchParamDefinition(name="policy-holder", path="Coverage.policyHolder", description="Reference to the policyholder", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={Organization.class, Patient.class, RelatedPerson.class } )
public static final String SP_POLICY_HOLDER = "policy-holder";
/**
* Fluent Client search parameter constant for policy-holder
*
* Description: Reference to the policyholder
* Type: reference
* Path: Coverage.policyHolder
*
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam POLICY_HOLDER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_POLICY_HOLDER);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Coverage:policy-holder".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_POLICY_HOLDER = new ca.uhn.fhir.model.api.Include("Coverage:policy-holder").toLocked();
/**
* Search parameter: status
*
* Description: The status of the Coverage
* Type: token
* Path: Coverage.status
*
*/
@SearchParamDefinition(name="status", path="Coverage.status", description="The status of the Coverage", type="token" )
public static final String SP_STATUS = "status";
/**
* Fluent Client search parameter constant for status
*
* Description: The status of the Coverage
* Type: token
* Path: Coverage.status
*
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS);
/**
* Search parameter: subscriber
*
* Description: Reference to the subscriber
* Type: reference
* Path: Coverage.subscriber
*
*/
@SearchParamDefinition(name="subscriber", path="Coverage.subscriber", description="Reference to the subscriber", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={Patient.class, RelatedPerson.class } )
public static final String SP_SUBSCRIBER = "subscriber";
/**
* Fluent Client search parameter constant for subscriber
*
* Description: Reference to the subscriber
* Type: reference
* Path: Coverage.subscriber
*
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBSCRIBER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBSCRIBER);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Coverage:subscriber".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBSCRIBER = new ca.uhn.fhir.model.api.Include("Coverage:subscriber").toLocked();
/**
* Search parameter: subscriberid
*
* Description: Identifier of the subscriber
* Type: token
* Path: Coverage.subscriberId
*
*/
@SearchParamDefinition(name="subscriberid", path="Coverage.subscriberId", description="Identifier of the subscriber", type="token" )
public static final String SP_SUBSCRIBERID = "subscriberid";
/**
* Fluent Client search parameter constant for subscriberid
*
* Description: Identifier of the subscriber
* Type: token
* Path: Coverage.subscriberId
*
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam SUBSCRIBERID = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SUBSCRIBERID);
/**
* Search parameter: identifier
*
* Description: Multiple Resources:
* [Account](account.html): Account number
* [AdverseEvent](adverseevent.html): Business identifier for the event
* [AllergyIntolerance](allergyintolerance.html): External ids for this item
* [Appointment](appointment.html): An Identifier of the Appointment
* [AppointmentResponse](appointmentresponse.html): An Identifier in this appointment response
* [Basic](basic.html): Business identifier
* [BodyStructure](bodystructure.html): Bodystructure identifier
* [CarePlan](careplan.html): External Ids for this plan
* [CareTeam](careteam.html): External Ids for this team
* [ChargeItem](chargeitem.html): Business Identifier for item
* [Claim](claim.html): The primary identifier of the financial resource
* [ClaimResponse](claimresponse.html): The identity of the ClaimResponse
* [ClinicalImpression](clinicalimpression.html): Business identifier
* [Communication](communication.html): Unique identifier
* [CommunicationRequest](communicationrequest.html): Unique identifier
* [Composition](composition.html): Version-independent identifier for the Composition
* [Condition](condition.html): A unique identifier of the condition record
* [Consent](consent.html): Identifier for this record (external references)
* [Contract](contract.html): The identity of the contract
* [Coverage](coverage.html): The primary identifier of the insured and the coverage
* [CoverageEligibilityRequest](coverageeligibilityrequest.html): The business identifier of the Eligibility
* [CoverageEligibilityResponse](coverageeligibilityresponse.html): The business identifier
* [DetectedIssue](detectedissue.html): Unique id for the detected issue
* [DeviceRequest](devicerequest.html): Business identifier for request/order
* [DeviceUsage](deviceusage.html): Search by identifier
* [DiagnosticReport](diagnosticreport.html): An identifier for the report
* [DocumentReference](documentreference.html): Identifier of the attachment binary
* [Encounter](encounter.html): Identifier(s) by which this encounter is known
* [EnrollmentRequest](enrollmentrequest.html): The business identifier of the Enrollment
* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare
* [ExplanationOfBenefit](explanationofbenefit.html): The business identifier of the Explanation of Benefit
* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier
* [Flag](flag.html): Business identifier
* [Goal](goal.html): External Ids for this goal
* [GuidanceResponse](guidanceresponse.html): The identifier of the guidance response
* [ImagingSelection](imagingselection.html): Identifiers for the imaging selection
* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID
* [Immunization](immunization.html): Business identifier
* [ImmunizationEvaluation](immunizationevaluation.html): ID of the evaluation
* [ImmunizationRecommendation](immunizationrecommendation.html): Business identifier
* [Invoice](invoice.html): Business Identifier for item
* [List](list.html): Business identifier
* [MeasureReport](measurereport.html): External identifier of the measure report to be returned
* [Medication](medication.html): Returns medications with this external identifier
* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier
* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier
* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier
* [MedicationStatement](medicationstatement.html): Return statements with this external identifier
* [MolecularSequence](molecularsequence.html): The unique identity for a particular sequence
* [NutritionIntake](nutritionintake.html): Return statements with this external identifier
* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier
* [Observation](observation.html): The unique id for a particular observation
* [Person](person.html): A person Identifier
* [Procedure](procedure.html): A unique identifier for a procedure
* [QuestionnaireResponse](questionnaireresponse.html): The unique identifier for the questionnaire response
* [RelatedPerson](relatedperson.html): An Identifier of the RelatedPerson
* [RequestOrchestration](requestorchestration.html): External identifiers for the request orchestration
* [ResearchSubject](researchsubject.html): Business Identifier for research subject in a study
* [RiskAssessment](riskassessment.html): Unique identifier for the assessment
* [ServiceRequest](servicerequest.html): Identifiers assigned to this order
* [Specimen](specimen.html): The unique identifier associated with the specimen
* [SupplyDelivery](supplydelivery.html): External identifier
* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest
* [Task](task.html): Search for a task instance by its business identifier
* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier
* Type: token
* Path: Account.identifier | AdverseEvent.identifier | AllergyIntolerance.identifier | Appointment.identifier | AppointmentResponse.identifier | Basic.identifier | BodyStructure.identifier | CarePlan.identifier | CareTeam.identifier | ChargeItem.identifier | Claim.identifier | ClaimResponse.identifier | ClinicalImpression.identifier | Communication.identifier | CommunicationRequest.identifier | Composition.identifier | Condition.identifier | Consent.identifier | Contract.identifier | Coverage.identifier | CoverageEligibilityRequest.identifier | CoverageEligibilityResponse.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DeviceUsage.identifier | DiagnosticReport.identifier | DocumentReference.identifier | Encounter.identifier | EnrollmentRequest.identifier | EpisodeOfCare.identifier | ExplanationOfBenefit.identifier | FamilyMemberHistory.identifier | Flag.identifier | Goal.identifier | GuidanceResponse.identifier | ImagingSelection.identifier | ImagingStudy.identifier | Immunization.identifier | ImmunizationEvaluation.identifier | ImmunizationRecommendation.identifier | Invoice.identifier | List.identifier | MeasureReport.identifier | Medication.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | MolecularSequence.identifier | NutritionIntake.identifier | NutritionOrder.identifier | Observation.identifier | Person.identifier | Procedure.identifier | QuestionnaireResponse.identifier | RelatedPerson.identifier | RequestOrchestration.identifier | ResearchSubject.identifier | RiskAssessment.identifier | ServiceRequest.identifier | Specimen.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | Task.identifier | VisionPrescription.identifier
*
*/
@SearchParamDefinition(name="identifier", path="Account.identifier | AdverseEvent.identifier | AllergyIntolerance.identifier | Appointment.identifier | AppointmentResponse.identifier | Basic.identifier | BodyStructure.identifier | CarePlan.identifier | CareTeam.identifier | ChargeItem.identifier | Claim.identifier | ClaimResponse.identifier | ClinicalImpression.identifier | Communication.identifier | CommunicationRequest.identifier | Composition.identifier | Condition.identifier | Consent.identifier | Contract.identifier | Coverage.identifier | CoverageEligibilityRequest.identifier | CoverageEligibilityResponse.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DeviceUsage.identifier | DiagnosticReport.identifier | DocumentReference.identifier | Encounter.identifier | EnrollmentRequest.identifier | EpisodeOfCare.identifier | ExplanationOfBenefit.identifier | FamilyMemberHistory.identifier | Flag.identifier | Goal.identifier | GuidanceResponse.identifier | ImagingSelection.identifier | ImagingStudy.identifier | Immunization.identifier | ImmunizationEvaluation.identifier | ImmunizationRecommendation.identifier | Invoice.identifier | List.identifier | MeasureReport.identifier | Medication.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | MolecularSequence.identifier | NutritionIntake.identifier | NutritionOrder.identifier | Observation.identifier | Person.identifier | Procedure.identifier | QuestionnaireResponse.identifier | RelatedPerson.identifier | RequestOrchestration.identifier | ResearchSubject.identifier | RiskAssessment.identifier | ServiceRequest.identifier | Specimen.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | Task.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [Account](account.html): Account number\r\n* [AdverseEvent](adverseevent.html): Business identifier for the event\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [Appointment](appointment.html): An Identifier of the Appointment\r\n* [AppointmentResponse](appointmentresponse.html): An Identifier in this appointment response\r\n* [Basic](basic.html): Business identifier\r\n* [BodyStructure](bodystructure.html): Bodystructure identifier\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [ChargeItem](chargeitem.html): Business Identifier for item\r\n* [Claim](claim.html): The primary identifier of the financial resource\r\n* [ClaimResponse](claimresponse.html): The identity of the ClaimResponse\r\n* [ClinicalImpression](clinicalimpression.html): Business identifier\r\n* [Communication](communication.html): Unique identifier\r\n* [CommunicationRequest](communicationrequest.html): Unique identifier\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [Contract](contract.html): The identity of the contract\r\n* [Coverage](coverage.html): The primary identifier of the insured and the coverage\r\n* [CoverageEligibilityRequest](coverageeligibilityrequest.html): The business identifier of the Eligibility\r\n* [CoverageEligibilityResponse](coverageeligibilityresponse.html): The business identifier\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DeviceUsage](deviceusage.html): Search by identifier\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EnrollmentRequest](enrollmentrequest.html): The business identifier of the Enrollment\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [ExplanationOfBenefit](explanationofbenefit.html): The business identifier of the Explanation of Benefit\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Flag](flag.html): Business identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [GuidanceResponse](guidanceresponse.html): The identifier of the guidance response\r\n* [ImagingSelection](imagingselection.html): Identifiers for the imaging selection\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [ImmunizationEvaluation](immunizationevaluation.html): ID of the evaluation\r\n* [ImmunizationRecommendation](immunizationrecommendation.html): Business identifier\r\n* [Invoice](invoice.html): Business Identifier for item\r\n* [List](list.html): Business identifier\r\n* [MeasureReport](measurereport.html): External identifier of the measure report to be returned\r\n* [Medication](medication.html): Returns medications with this external identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationStatement](medicationstatement.html): Return statements with this external identifier\r\n* [MolecularSequence](molecularsequence.html): The unique identity for a particular sequence\r\n* [NutritionIntake](nutritionintake.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Person](person.html): A person Identifier\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [QuestionnaireResponse](questionnaireresponse.html): The unique identifier for the questionnaire response\r\n* [RelatedPerson](relatedperson.html): An Identifier of the RelatedPerson\r\n* [RequestOrchestration](requestorchestration.html): External identifiers for the request orchestration\r\n* [ResearchSubject](researchsubject.html): Business Identifier for research subject in a study\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [Specimen](specimen.html): The unique identifier associated with the specimen\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [Task](task.html): Search for a task instance by its business identifier\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" )
public static final String SP_IDENTIFIER = "identifier";
/**
* Fluent Client search parameter constant for identifier
*
* Description: Multiple Resources:
* [Account](account.html): Account number
* [AdverseEvent](adverseevent.html): Business identifier for the event
* [AllergyIntolerance](allergyintolerance.html): External ids for this item
* [Appointment](appointment.html): An Identifier of the Appointment
* [AppointmentResponse](appointmentresponse.html): An Identifier in this appointment response
* [Basic](basic.html): Business identifier
* [BodyStructure](bodystructure.html): Bodystructure identifier
* [CarePlan](careplan.html): External Ids for this plan
* [CareTeam](careteam.html): External Ids for this team
* [ChargeItem](chargeitem.html): Business Identifier for item
* [Claim](claim.html): The primary identifier of the financial resource
* [ClaimResponse](claimresponse.html): The identity of the ClaimResponse
* [ClinicalImpression](clinicalimpression.html): Business identifier
* [Communication](communication.html): Unique identifier
* [CommunicationRequest](communicationrequest.html): Unique identifier
* [Composition](composition.html): Version-independent identifier for the Composition
* [Condition](condition.html): A unique identifier of the condition record
* [Consent](consent.html): Identifier for this record (external references)
* [Contract](contract.html): The identity of the contract
* [Coverage](coverage.html): The primary identifier of the insured and the coverage
* [CoverageEligibilityRequest](coverageeligibilityrequest.html): The business identifier of the Eligibility
* [CoverageEligibilityResponse](coverageeligibilityresponse.html): The business identifier
* [DetectedIssue](detectedissue.html): Unique id for the detected issue
* [DeviceRequest](devicerequest.html): Business identifier for request/order
* [DeviceUsage](deviceusage.html): Search by identifier
* [DiagnosticReport](diagnosticreport.html): An identifier for the report
* [DocumentReference](documentreference.html): Identifier of the attachment binary
* [Encounter](encounter.html): Identifier(s) by which this encounter is known
* [EnrollmentRequest](enrollmentrequest.html): The business identifier of the Enrollment
* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare
* [ExplanationOfBenefit](explanationofbenefit.html): The business identifier of the Explanation of Benefit
* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier
* [Flag](flag.html): Business identifier
* [Goal](goal.html): External Ids for this goal
* [GuidanceResponse](guidanceresponse.html): The identifier of the guidance response
* [ImagingSelection](imagingselection.html): Identifiers for the imaging selection
* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID
* [Immunization](immunization.html): Business identifier
* [ImmunizationEvaluation](immunizationevaluation.html): ID of the evaluation
* [ImmunizationRecommendation](immunizationrecommendation.html): Business identifier
* [Invoice](invoice.html): Business Identifier for item
* [List](list.html): Business identifier
* [MeasureReport](measurereport.html): External identifier of the measure report to be returned
* [Medication](medication.html): Returns medications with this external identifier
* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier
* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier
* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier
* [MedicationStatement](medicationstatement.html): Return statements with this external identifier
* [MolecularSequence](molecularsequence.html): The unique identity for a particular sequence
* [NutritionIntake](nutritionintake.html): Return statements with this external identifier
* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier
* [Observation](observation.html): The unique id for a particular observation
* [Person](person.html): A person Identifier
* [Procedure](procedure.html): A unique identifier for a procedure
* [QuestionnaireResponse](questionnaireresponse.html): The unique identifier for the questionnaire response
* [RelatedPerson](relatedperson.html): An Identifier of the RelatedPerson
* [RequestOrchestration](requestorchestration.html): External identifiers for the request orchestration
* [ResearchSubject](researchsubject.html): Business Identifier for research subject in a study
* [RiskAssessment](riskassessment.html): Unique identifier for the assessment
* [ServiceRequest](servicerequest.html): Identifiers assigned to this order
* [Specimen](specimen.html): The unique identifier associated with the specimen
* [SupplyDelivery](supplydelivery.html): External identifier
* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest
* [Task](task.html): Search for a task instance by its business identifier
* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier
* Type: token
* Path: Account.identifier | AdverseEvent.identifier | AllergyIntolerance.identifier | Appointment.identifier | AppointmentResponse.identifier | Basic.identifier | BodyStructure.identifier | CarePlan.identifier | CareTeam.identifier | ChargeItem.identifier | Claim.identifier | ClaimResponse.identifier | ClinicalImpression.identifier | Communication.identifier | CommunicationRequest.identifier | Composition.identifier | Condition.identifier | Consent.identifier | Contract.identifier | Coverage.identifier | CoverageEligibilityRequest.identifier | CoverageEligibilityResponse.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DeviceUsage.identifier | DiagnosticReport.identifier | DocumentReference.identifier | Encounter.identifier | EnrollmentRequest.identifier | EpisodeOfCare.identifier | ExplanationOfBenefit.identifier | FamilyMemberHistory.identifier | Flag.identifier | Goal.identifier | GuidanceResponse.identifier | ImagingSelection.identifier | ImagingStudy.identifier | Immunization.identifier | ImmunizationEvaluation.identifier | ImmunizationRecommendation.identifier | Invoice.identifier | List.identifier | MeasureReport.identifier | Medication.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationStatement.identifier | MolecularSequence.identifier | NutritionIntake.identifier | NutritionOrder.identifier | Observation.identifier | Person.identifier | Procedure.identifier | QuestionnaireResponse.identifier | RelatedPerson.identifier | RequestOrchestration.identifier | ResearchSubject.identifier | RiskAssessment.identifier | ServiceRequest.identifier | Specimen.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | Task.identifier | VisionPrescription.identifier
*
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
/**
* Search parameter: patient
*
* Description: Multiple Resources:
* [Account](account.html): The entity that caused the expenses
* [AdverseEvent](adverseevent.html): Subject impacted by event
* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for
* [Appointment](appointment.html): One of the individuals of the appointment is this patient
* [AppointmentResponse](appointmentresponse.html): This Response is for this Patient
* [AuditEvent](auditevent.html): Where the activity involved patient data
* [Basic](basic.html): Identifies the focus of this resource
* [BodyStructure](bodystructure.html): Who this is about
* [CarePlan](careplan.html): Who the care plan is for
* [CareTeam](careteam.html): Who care team is for
* [ChargeItem](chargeitem.html): Individual service was done for/to
* [Claim](claim.html): Patient receiving the products or services
* [ClaimResponse](claimresponse.html): The subject of care
* [ClinicalImpression](clinicalimpression.html): Patient assessed
* [Communication](communication.html): Focus of message
* [CommunicationRequest](communicationrequest.html): Focus of message
* [Composition](composition.html): Who and/or what the composition is about
* [Condition](condition.html): Who has the condition?
* [Consent](consent.html): Who the consent applies to
* [Contract](contract.html): The identity of the subject of the contract (if a patient)
* [Coverage](coverage.html): Retrieve coverages for a patient
* [CoverageEligibilityRequest](coverageeligibilityrequest.html): The reference to the patient
* [CoverageEligibilityResponse](coverageeligibilityresponse.html): The reference to the patient
* [DetectedIssue](detectedissue.html): Associated patient
* [DeviceRequest](devicerequest.html): Individual the service is ordered for
* [DeviceUsage](deviceusage.html): Search by patient who used / uses the device
* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient
* [DocumentReference](documentreference.html): Who/what is the subject of the document
* [Encounter](encounter.html): The patient present at the encounter
* [EnrollmentRequest](enrollmentrequest.html): The party to be enrolled
* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care
* [ExplanationOfBenefit](explanationofbenefit.html): The reference to the patient
* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for
* [Flag](flag.html): The identity of a subject to list flags for
* [Goal](goal.html): Who this goal is intended for
* [GuidanceResponse](guidanceresponse.html): The identity of a patient to search for guidance response results
* [ImagingSelection](imagingselection.html): Who the study is about
* [ImagingStudy](imagingstudy.html): Who the study is about
* [Immunization](immunization.html): The patient for the vaccination record
* [ImmunizationEvaluation](immunizationevaluation.html): The patient being evaluated
* [ImmunizationRecommendation](immunizationrecommendation.html): Who this profile is for
* [Invoice](invoice.html): Recipient(s) of goods and services
* [List](list.html): If all resources have the same subject
* [MeasureReport](measurereport.html): The identity of a patient to search for individual measure report results for
* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for
* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for
* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient
* [MedicationStatement](medicationstatement.html): Returns statements for a specific patient.
* [MolecularSequence](molecularsequence.html): The subject that the sequence is about
* [NutritionIntake](nutritionintake.html): Returns statements for a specific patient.
* [NutritionOrder](nutritionorder.html): The identity of the individual or set of individuals who requires the diet, formula or nutritional supplement
* [Observation](observation.html): The subject that the observation is about (if patient)
* [Person](person.html): The Person links to this Patient
* [Procedure](procedure.html): Search by subject - a patient
* [Provenance](provenance.html): Where the activity involved patient data
* [QuestionnaireResponse](questionnaireresponse.html): The patient that is the subject of the questionnaire response
* [RelatedPerson](relatedperson.html): The patient this related person is related to
* [RequestOrchestration](requestorchestration.html): The identity of a patient to search for request orchestrations
* [ResearchSubject](researchsubject.html): Who or what is part of study
* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?
* [ServiceRequest](servicerequest.html): Search by subject - a patient
* [Specimen](specimen.html): The patient the specimen comes from
* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied
* [SupplyRequest](supplyrequest.html): The patient or subject for whom the supply is destined
* [Task](task.html): Search by patient
* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for
* Type: reference
* Path: Account.subject.where(resolve() is Patient) | AdverseEvent.subject.where(resolve() is Patient) | AllergyIntolerance.patient | Appointment.participant.actor.where(resolve() is Patient) | Appointment.subject.where(resolve() is Patient) | AppointmentResponse.actor.where(resolve() is Patient) | AuditEvent.patient | Basic.subject.where(resolve() is Patient) | BodyStructure.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ChargeItem.subject.where(resolve() is Patient) | Claim.patient | ClaimResponse.patient | ClinicalImpression.subject.where(resolve() is Patient) | Communication.subject.where(resolve() is Patient) | CommunicationRequest.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | Contract.subject.where(resolve() is Patient) | Coverage.beneficiary | CoverageEligibilityRequest.patient | CoverageEligibilityResponse.patient | DetectedIssue.subject.where(resolve() is Patient) | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.patient | DiagnosticReport.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EnrollmentRequest.candidate | EpisodeOfCare.patient | ExplanationOfBenefit.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | GuidanceResponse.subject.where(resolve() is Patient) | ImagingSelection.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | ImmunizationEvaluation.patient | ImmunizationRecommendation.patient | Invoice.subject.where(resolve() is Patient) | List.subject.where(resolve() is Patient) | MeasureReport.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | MolecularSequence.subject.where(resolve() is Patient) | NutritionIntake.subject.where(resolve() is Patient) | NutritionOrder.subject.where(resolve() is Patient) | Observation.subject.where(resolve() is Patient) | Person.link.target.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | Provenance.patient | QuestionnaireResponse.subject.where(resolve() is Patient) | RelatedPerson.patient | RequestOrchestration.subject.where(resolve() is Patient) | ResearchSubject.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | Specimen.subject.where(resolve() is Patient) | SupplyDelivery.patient | SupplyRequest.deliverFor | Task.for.where(resolve() is Patient) | VisionPrescription.patient
*
*/
@SearchParamDefinition(name="patient", path="Account.subject.where(resolve() is Patient) | AdverseEvent.subject.where(resolve() is Patient) | AllergyIntolerance.patient | Appointment.participant.actor.where(resolve() is Patient) | Appointment.subject.where(resolve() is Patient) | AppointmentResponse.actor.where(resolve() is Patient) | AuditEvent.patient | Basic.subject.where(resolve() is Patient) | BodyStructure.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ChargeItem.subject.where(resolve() is Patient) | Claim.patient | ClaimResponse.patient | ClinicalImpression.subject.where(resolve() is Patient) | Communication.subject.where(resolve() is Patient) | CommunicationRequest.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | Contract.subject.where(resolve() is Patient) | Coverage.beneficiary | CoverageEligibilityRequest.patient | CoverageEligibilityResponse.patient | DetectedIssue.subject.where(resolve() is Patient) | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.patient | DiagnosticReport.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EnrollmentRequest.candidate | EpisodeOfCare.patient | ExplanationOfBenefit.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | GuidanceResponse.subject.where(resolve() is Patient) | ImagingSelection.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | ImmunizationEvaluation.patient | ImmunizationRecommendation.patient | Invoice.subject.where(resolve() is Patient) | List.subject.where(resolve() is Patient) | MeasureReport.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | MolecularSequence.subject.where(resolve() is Patient) | NutritionIntake.subject.where(resolve() is Patient) | NutritionOrder.subject.where(resolve() is Patient) | Observation.subject.where(resolve() is Patient) | Person.link.target.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | Provenance.patient | QuestionnaireResponse.subject.where(resolve() is Patient) | RelatedPerson.patient | RequestOrchestration.subject.where(resolve() is Patient) | ResearchSubject.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | Specimen.subject.where(resolve() is Patient) | SupplyDelivery.patient | SupplyRequest.deliverFor | Task.for.where(resolve() is Patient) | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [Account](account.html): The entity that caused the expenses\r\n* [AdverseEvent](adverseevent.html): Subject impacted by event\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [Appointment](appointment.html): One of the individuals of the appointment is this patient\r\n* [AppointmentResponse](appointmentresponse.html): This Response is for this Patient\r\n* [AuditEvent](auditevent.html): Where the activity involved patient data\r\n* [Basic](basic.html): Identifies the focus of this resource\r\n* [BodyStructure](bodystructure.html): Who this is about\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ChargeItem](chargeitem.html): Individual service was done for/to\r\n* [Claim](claim.html): Patient receiving the products or services\r\n* [ClaimResponse](claimresponse.html): The subject of care\r\n* [ClinicalImpression](clinicalimpression.html): Patient assessed\r\n* [Communication](communication.html): Focus of message\r\n* [CommunicationRequest](communicationrequest.html): Focus of message\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [Contract](contract.html): The identity of the subject of the contract (if a patient)\r\n* [Coverage](coverage.html): Retrieve coverages for a patient\r\n* [CoverageEligibilityRequest](coverageeligibilityrequest.html): The reference to the patient\r\n* [CoverageEligibilityResponse](coverageeligibilityresponse.html): The reference to the patient\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by patient who used / uses the device\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient present at the encounter\r\n* [EnrollmentRequest](enrollmentrequest.html): The party to be enrolled\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [ExplanationOfBenefit](explanationofbenefit.html): The reference to the patient\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [GuidanceResponse](guidanceresponse.html): The identity of a patient to search for guidance response results\r\n* [ImagingSelection](imagingselection.html): Who the study is about\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [ImmunizationEvaluation](immunizationevaluation.html): The patient being evaluated\r\n* [ImmunizationRecommendation](immunizationrecommendation.html): Who this profile is for\r\n* [Invoice](invoice.html): Recipient(s) of goods and services\r\n* [List](list.html): If all resources have the same subject\r\n* [MeasureReport](measurereport.html): The identity of a patient to search for individual measure report results for\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationStatement](medicationstatement.html): Returns statements for a specific patient.\r\n* [MolecularSequence](molecularsequence.html): The subject that the sequence is about\r\n* [NutritionIntake](nutritionintake.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the individual or set of individuals who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Person](person.html): The Person links to this Patient\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [Provenance](provenance.html): Where the activity involved patient data\r\n* [QuestionnaireResponse](questionnaireresponse.html): The patient that is the subject of the questionnaire response\r\n* [RelatedPerson](relatedperson.html): The patient this related person is related to\r\n* [RequestOrchestration](requestorchestration.html): The identity of a patient to search for request orchestrations\r\n* [ResearchSubject](researchsubject.html): Who or what is part of study\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [Specimen](specimen.html): The patient the specimen comes from\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [SupplyRequest](supplyrequest.html): The patient or subject for whom the supply is destined\r\n* [Task](task.html): Search by patient\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Patient.class } )
public static final String SP_PATIENT = "patient";
/**
* Fluent Client search parameter constant for patient
*
* Description: Multiple Resources:
* [Account](account.html): The entity that caused the expenses
* [AdverseEvent](adverseevent.html): Subject impacted by event
* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for
* [Appointment](appointment.html): One of the individuals of the appointment is this patient
* [AppointmentResponse](appointmentresponse.html): This Response is for this Patient
* [AuditEvent](auditevent.html): Where the activity involved patient data
* [Basic](basic.html): Identifies the focus of this resource
* [BodyStructure](bodystructure.html): Who this is about
* [CarePlan](careplan.html): Who the care plan is for
* [CareTeam](careteam.html): Who care team is for
* [ChargeItem](chargeitem.html): Individual service was done for/to
* [Claim](claim.html): Patient receiving the products or services
* [ClaimResponse](claimresponse.html): The subject of care
* [ClinicalImpression](clinicalimpression.html): Patient assessed
* [Communication](communication.html): Focus of message
* [CommunicationRequest](communicationrequest.html): Focus of message
* [Composition](composition.html): Who and/or what the composition is about
* [Condition](condition.html): Who has the condition?
* [Consent](consent.html): Who the consent applies to
* [Contract](contract.html): The identity of the subject of the contract (if a patient)
* [Coverage](coverage.html): Retrieve coverages for a patient
* [CoverageEligibilityRequest](coverageeligibilityrequest.html): The reference to the patient
* [CoverageEligibilityResponse](coverageeligibilityresponse.html): The reference to the patient
* [DetectedIssue](detectedissue.html): Associated patient
* [DeviceRequest](devicerequest.html): Individual the service is ordered for
* [DeviceUsage](deviceusage.html): Search by patient who used / uses the device
* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient
* [DocumentReference](documentreference.html): Who/what is the subject of the document
* [Encounter](encounter.html): The patient present at the encounter
* [EnrollmentRequest](enrollmentrequest.html): The party to be enrolled
* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care
* [ExplanationOfBenefit](explanationofbenefit.html): The reference to the patient
* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for
* [Flag](flag.html): The identity of a subject to list flags for
* [Goal](goal.html): Who this goal is intended for
* [GuidanceResponse](guidanceresponse.html): The identity of a patient to search for guidance response results
* [ImagingSelection](imagingselection.html): Who the study is about
* [ImagingStudy](imagingstudy.html): Who the study is about
* [Immunization](immunization.html): The patient for the vaccination record
* [ImmunizationEvaluation](immunizationevaluation.html): The patient being evaluated
* [ImmunizationRecommendation](immunizationrecommendation.html): Who this profile is for
* [Invoice](invoice.html): Recipient(s) of goods and services
* [List](list.html): If all resources have the same subject
* [MeasureReport](measurereport.html): The identity of a patient to search for individual measure report results for
* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for
* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for
* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient
* [MedicationStatement](medicationstatement.html): Returns statements for a specific patient.
* [MolecularSequence](molecularsequence.html): The subject that the sequence is about
* [NutritionIntake](nutritionintake.html): Returns statements for a specific patient.
* [NutritionOrder](nutritionorder.html): The identity of the individual or set of individuals who requires the diet, formula or nutritional supplement
* [Observation](observation.html): The subject that the observation is about (if patient)
* [Person](person.html): The Person links to this Patient
* [Procedure](procedure.html): Search by subject - a patient
* [Provenance](provenance.html): Where the activity involved patient data
* [QuestionnaireResponse](questionnaireresponse.html): The patient that is the subject of the questionnaire response
* [RelatedPerson](relatedperson.html): The patient this related person is related to
* [RequestOrchestration](requestorchestration.html): The identity of a patient to search for request orchestrations
* [ResearchSubject](researchsubject.html): Who or what is part of study
* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?
* [ServiceRequest](servicerequest.html): Search by subject - a patient
* [Specimen](specimen.html): The patient the specimen comes from
* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied
* [SupplyRequest](supplyrequest.html): The patient or subject for whom the supply is destined
* [Task](task.html): Search by patient
* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for
* Type: reference
* Path: Account.subject.where(resolve() is Patient) | AdverseEvent.subject.where(resolve() is Patient) | AllergyIntolerance.patient | Appointment.participant.actor.where(resolve() is Patient) | Appointment.subject.where(resolve() is Patient) | AppointmentResponse.actor.where(resolve() is Patient) | AuditEvent.patient | Basic.subject.where(resolve() is Patient) | BodyStructure.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ChargeItem.subject.where(resolve() is Patient) | Claim.patient | ClaimResponse.patient | ClinicalImpression.subject.where(resolve() is Patient) | Communication.subject.where(resolve() is Patient) | CommunicationRequest.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | Contract.subject.where(resolve() is Patient) | Coverage.beneficiary | CoverageEligibilityRequest.patient | CoverageEligibilityResponse.patient | DetectedIssue.subject.where(resolve() is Patient) | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.patient | DiagnosticReport.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EnrollmentRequest.candidate | EpisodeOfCare.patient | ExplanationOfBenefit.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | GuidanceResponse.subject.where(resolve() is Patient) | ImagingSelection.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | ImmunizationEvaluation.patient | ImmunizationRecommendation.patient | Invoice.subject.where(resolve() is Patient) | List.subject.where(resolve() is Patient) | MeasureReport.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationStatement.subject.where(resolve() is Patient) | MolecularSequence.subject.where(resolve() is Patient) | NutritionIntake.subject.where(resolve() is Patient) | NutritionOrder.subject.where(resolve() is Patient) | Observation.subject.where(resolve() is Patient) | Person.link.target.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | Provenance.patient | QuestionnaireResponse.subject.where(resolve() is Patient) | RelatedPerson.patient | RequestOrchestration.subject.where(resolve() is Patient) | ResearchSubject.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | Specimen.subject.where(resolve() is Patient) | SupplyDelivery.patient | SupplyRequest.deliverFor | Task.for.where(resolve() is Patient) | VisionPrescription.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 "Coverage:patient".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Coverage:patient").toLocked();
/**
* Search parameter: type
*
* Description: Multiple Resources:
* [Account](account.html): E.g. patient, expense, depreciation
* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known)
* [Composition](composition.html): Kind of composition (LOINC if possible)
* [Coverage](coverage.html): The kind of coverage (health plan, auto, Workers Compensation)
* [DocumentReference](documentreference.html): Kind of document (LOINC if possible)
* [Encounter](encounter.html): Specific type of encounter
* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management
* [Invoice](invoice.html): Type of Invoice
* [MedicationDispense](medicationdispense.html): Returns dispenses of a specific type
* [MolecularSequence](molecularsequence.html): Amino Acid Sequence/ DNA Sequence / RNA Sequence
* [Specimen](specimen.html): The specimen type
* Type: token
* Path: Account.type | AllergyIntolerance.type | Composition.type | Coverage.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type | Invoice.type | MedicationDispense.type | MolecularSequence.type | Specimen.type
*
*/
@SearchParamDefinition(name="type", path="Account.type | AllergyIntolerance.type | Composition.type | Coverage.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type | Invoice.type | MedicationDispense.type | MolecularSequence.type | Specimen.type", description="Multiple Resources: \r\n\r\n* [Account](account.html): E.g. patient, expense, depreciation\r\n* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known)\r\n* [Composition](composition.html): Kind of composition (LOINC if possible)\r\n* [Coverage](coverage.html): The kind of coverage (health plan, auto, Workers Compensation)\r\n* [DocumentReference](documentreference.html): Kind of document (LOINC if possible)\r\n* [Encounter](encounter.html): Specific type of encounter\r\n* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management\r\n* [Invoice](invoice.html): Type of Invoice\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of a specific type\r\n* [MolecularSequence](molecularsequence.html): Amino Acid Sequence/ DNA Sequence / RNA Sequence\r\n* [Specimen](specimen.html): The specimen type\r\n", type="token" )
public static final String SP_TYPE = "type";
/**
* Fluent Client search parameter constant for type
*
* Description: Multiple Resources:
* [Account](account.html): E.g. patient, expense, depreciation
* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known)
* [Composition](composition.html): Kind of composition (LOINC if possible)
* [Coverage](coverage.html): The kind of coverage (health plan, auto, Workers Compensation)
* [DocumentReference](documentreference.html): Kind of document (LOINC if possible)
* [Encounter](encounter.html): Specific type of encounter
* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management
* [Invoice](invoice.html): Type of Invoice
* [MedicationDispense](medicationdispense.html): Returns dispenses of a specific type
* [MolecularSequence](molecularsequence.html): Amino Acid Sequence/ DNA Sequence / RNA Sequence
* [Specimen](specimen.html): The specimen type
* Type: token
* Path: Account.type | AllergyIntolerance.type | Composition.type | Coverage.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type | Invoice.type | MedicationDispense.type | MolecularSequence.type | Specimen.type
*
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE);
}