blob: 1d746f630728bf5369e20833fe6d8c306fdb67df [file] [log] [blame]
/**
*/
package org.hl7.fhir.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
import org.hl7.fhir.Coding;
import org.hl7.fhir.DateTime;
import org.hl7.fhir.EnrollmentRequest;
import org.hl7.fhir.FhirPackage;
import org.hl7.fhir.Identifier;
import org.hl7.fhir.Reference;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Enrollment Request</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.hl7.fhir.impl.EnrollmentRequestImpl#getIdentifier <em>Identifier</em>}</li>
* <li>{@link org.hl7.fhir.impl.EnrollmentRequestImpl#getRuleset <em>Ruleset</em>}</li>
* <li>{@link org.hl7.fhir.impl.EnrollmentRequestImpl#getOriginalRuleset <em>Original Ruleset</em>}</li>
* <li>{@link org.hl7.fhir.impl.EnrollmentRequestImpl#getCreated <em>Created</em>}</li>
* <li>{@link org.hl7.fhir.impl.EnrollmentRequestImpl#getTarget <em>Target</em>}</li>
* <li>{@link org.hl7.fhir.impl.EnrollmentRequestImpl#getProvider <em>Provider</em>}</li>
* <li>{@link org.hl7.fhir.impl.EnrollmentRequestImpl#getOrganization <em>Organization</em>}</li>
* <li>{@link org.hl7.fhir.impl.EnrollmentRequestImpl#getSubject <em>Subject</em>}</li>
* <li>{@link org.hl7.fhir.impl.EnrollmentRequestImpl#getCoverage <em>Coverage</em>}</li>
* <li>{@link org.hl7.fhir.impl.EnrollmentRequestImpl#getRelationship <em>Relationship</em>}</li>
* </ul>
*
* @generated
*/
public class EnrollmentRequestImpl extends DomainResourceImpl implements EnrollmentRequest {
/**
* The cached value of the '{@link #getIdentifier() <em>Identifier</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getIdentifier()
* @generated
* @ordered
*/
protected EList<Identifier> identifier;
/**
* The cached value of the '{@link #getRuleset() <em>Ruleset</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getRuleset()
* @generated
* @ordered
*/
protected Coding ruleset;
/**
* The cached value of the '{@link #getOriginalRuleset() <em>Original Ruleset</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOriginalRuleset()
* @generated
* @ordered
*/
protected Coding originalRuleset;
/**
* The cached value of the '{@link #getCreated() <em>Created</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCreated()
* @generated
* @ordered
*/
protected DateTime created;
/**
* The cached value of the '{@link #getTarget() <em>Target</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTarget()
* @generated
* @ordered
*/
protected Reference target;
/**
* The cached value of the '{@link #getProvider() <em>Provider</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getProvider()
* @generated
* @ordered
*/
protected Reference provider;
/**
* The cached value of the '{@link #getOrganization() <em>Organization</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOrganization()
* @generated
* @ordered
*/
protected Reference organization;
/**
* The cached value of the '{@link #getSubject() <em>Subject</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getSubject()
* @generated
* @ordered
*/
protected Reference subject;
/**
* The cached value of the '{@link #getCoverage() <em>Coverage</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCoverage()
* @generated
* @ordered
*/
protected Reference coverage;
/**
* The cached value of the '{@link #getRelationship() <em>Relationship</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getRelationship()
* @generated
* @ordered
*/
protected Coding relationship;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected EnrollmentRequestImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FhirPackage.eINSTANCE.getEnrollmentRequest();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<Identifier> getIdentifier() {
if (identifier == null) {
identifier = new EObjectContainmentEList<Identifier>(Identifier.class, this, FhirPackage.ENROLLMENT_REQUEST__IDENTIFIER);
}
return identifier;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Coding getRuleset() {
return ruleset;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetRuleset(Coding newRuleset, NotificationChain msgs) {
Coding oldRuleset = ruleset;
ruleset = newRuleset;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_REQUEST__RULESET, oldRuleset, newRuleset);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setRuleset(Coding newRuleset) {
if (newRuleset != ruleset) {
NotificationChain msgs = null;
if (ruleset != null)
msgs = ((InternalEObject)ruleset).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_REQUEST__RULESET, null, msgs);
if (newRuleset != null)
msgs = ((InternalEObject)newRuleset).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_REQUEST__RULESET, null, msgs);
msgs = basicSetRuleset(newRuleset, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_REQUEST__RULESET, newRuleset, newRuleset));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Coding getOriginalRuleset() {
return originalRuleset;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetOriginalRuleset(Coding newOriginalRuleset, NotificationChain msgs) {
Coding oldOriginalRuleset = originalRuleset;
originalRuleset = newOriginalRuleset;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_REQUEST__ORIGINAL_RULESET, oldOriginalRuleset, newOriginalRuleset);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOriginalRuleset(Coding newOriginalRuleset) {
if (newOriginalRuleset != originalRuleset) {
NotificationChain msgs = null;
if (originalRuleset != null)
msgs = ((InternalEObject)originalRuleset).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_REQUEST__ORIGINAL_RULESET, null, msgs);
if (newOriginalRuleset != null)
msgs = ((InternalEObject)newOriginalRuleset).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_REQUEST__ORIGINAL_RULESET, null, msgs);
msgs = basicSetOriginalRuleset(newOriginalRuleset, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_REQUEST__ORIGINAL_RULESET, newOriginalRuleset, newOriginalRuleset));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DateTime getCreated() {
return created;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetCreated(DateTime newCreated, NotificationChain msgs) {
DateTime oldCreated = created;
created = newCreated;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_REQUEST__CREATED, oldCreated, newCreated);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setCreated(DateTime newCreated) {
if (newCreated != created) {
NotificationChain msgs = null;
if (created != null)
msgs = ((InternalEObject)created).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_REQUEST__CREATED, null, msgs);
if (newCreated != null)
msgs = ((InternalEObject)newCreated).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_REQUEST__CREATED, null, msgs);
msgs = basicSetCreated(newCreated, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_REQUEST__CREATED, newCreated, newCreated));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Reference getTarget() {
return target;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetTarget(Reference newTarget, NotificationChain msgs) {
Reference oldTarget = target;
target = newTarget;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_REQUEST__TARGET, oldTarget, newTarget);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTarget(Reference newTarget) {
if (newTarget != target) {
NotificationChain msgs = null;
if (target != null)
msgs = ((InternalEObject)target).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_REQUEST__TARGET, null, msgs);
if (newTarget != null)
msgs = ((InternalEObject)newTarget).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_REQUEST__TARGET, null, msgs);
msgs = basicSetTarget(newTarget, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_REQUEST__TARGET, newTarget, newTarget));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Reference getProvider() {
return provider;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetProvider(Reference newProvider, NotificationChain msgs) {
Reference oldProvider = provider;
provider = newProvider;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_REQUEST__PROVIDER, oldProvider, newProvider);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setProvider(Reference newProvider) {
if (newProvider != provider) {
NotificationChain msgs = null;
if (provider != null)
msgs = ((InternalEObject)provider).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_REQUEST__PROVIDER, null, msgs);
if (newProvider != null)
msgs = ((InternalEObject)newProvider).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_REQUEST__PROVIDER, null, msgs);
msgs = basicSetProvider(newProvider, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_REQUEST__PROVIDER, newProvider, newProvider));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Reference getOrganization() {
return organization;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetOrganization(Reference newOrganization, NotificationChain msgs) {
Reference oldOrganization = organization;
organization = newOrganization;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_REQUEST__ORGANIZATION, oldOrganization, newOrganization);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOrganization(Reference newOrganization) {
if (newOrganization != organization) {
NotificationChain msgs = null;
if (organization != null)
msgs = ((InternalEObject)organization).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_REQUEST__ORGANIZATION, null, msgs);
if (newOrganization != null)
msgs = ((InternalEObject)newOrganization).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_REQUEST__ORGANIZATION, null, msgs);
msgs = basicSetOrganization(newOrganization, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_REQUEST__ORGANIZATION, newOrganization, newOrganization));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Reference getSubject() {
return subject;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetSubject(Reference newSubject, NotificationChain msgs) {
Reference oldSubject = subject;
subject = newSubject;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_REQUEST__SUBJECT, oldSubject, newSubject);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSubject(Reference newSubject) {
if (newSubject != subject) {
NotificationChain msgs = null;
if (subject != null)
msgs = ((InternalEObject)subject).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_REQUEST__SUBJECT, null, msgs);
if (newSubject != null)
msgs = ((InternalEObject)newSubject).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_REQUEST__SUBJECT, null, msgs);
msgs = basicSetSubject(newSubject, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_REQUEST__SUBJECT, newSubject, newSubject));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Reference getCoverage() {
return coverage;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetCoverage(Reference newCoverage, NotificationChain msgs) {
Reference oldCoverage = coverage;
coverage = newCoverage;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_REQUEST__COVERAGE, oldCoverage, newCoverage);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setCoverage(Reference newCoverage) {
if (newCoverage != coverage) {
NotificationChain msgs = null;
if (coverage != null)
msgs = ((InternalEObject)coverage).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_REQUEST__COVERAGE, null, msgs);
if (newCoverage != null)
msgs = ((InternalEObject)newCoverage).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_REQUEST__COVERAGE, null, msgs);
msgs = basicSetCoverage(newCoverage, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_REQUEST__COVERAGE, newCoverage, newCoverage));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Coding getRelationship() {
return relationship;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetRelationship(Coding newRelationship, NotificationChain msgs) {
Coding oldRelationship = relationship;
relationship = newRelationship;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_REQUEST__RELATIONSHIP, oldRelationship, newRelationship);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setRelationship(Coding newRelationship) {
if (newRelationship != relationship) {
NotificationChain msgs = null;
if (relationship != null)
msgs = ((InternalEObject)relationship).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_REQUEST__RELATIONSHIP, null, msgs);
if (newRelationship != null)
msgs = ((InternalEObject)newRelationship).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_REQUEST__RELATIONSHIP, null, msgs);
msgs = basicSetRelationship(newRelationship, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_REQUEST__RELATIONSHIP, newRelationship, newRelationship));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case FhirPackage.ENROLLMENT_REQUEST__IDENTIFIER:
return ((InternalEList<?>)getIdentifier()).basicRemove(otherEnd, msgs);
case FhirPackage.ENROLLMENT_REQUEST__RULESET:
return basicSetRuleset(null, msgs);
case FhirPackage.ENROLLMENT_REQUEST__ORIGINAL_RULESET:
return basicSetOriginalRuleset(null, msgs);
case FhirPackage.ENROLLMENT_REQUEST__CREATED:
return basicSetCreated(null, msgs);
case FhirPackage.ENROLLMENT_REQUEST__TARGET:
return basicSetTarget(null, msgs);
case FhirPackage.ENROLLMENT_REQUEST__PROVIDER:
return basicSetProvider(null, msgs);
case FhirPackage.ENROLLMENT_REQUEST__ORGANIZATION:
return basicSetOrganization(null, msgs);
case FhirPackage.ENROLLMENT_REQUEST__SUBJECT:
return basicSetSubject(null, msgs);
case FhirPackage.ENROLLMENT_REQUEST__COVERAGE:
return basicSetCoverage(null, msgs);
case FhirPackage.ENROLLMENT_REQUEST__RELATIONSHIP:
return basicSetRelationship(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case FhirPackage.ENROLLMENT_REQUEST__IDENTIFIER:
return getIdentifier();
case FhirPackage.ENROLLMENT_REQUEST__RULESET:
return getRuleset();
case FhirPackage.ENROLLMENT_REQUEST__ORIGINAL_RULESET:
return getOriginalRuleset();
case FhirPackage.ENROLLMENT_REQUEST__CREATED:
return getCreated();
case FhirPackage.ENROLLMENT_REQUEST__TARGET:
return getTarget();
case FhirPackage.ENROLLMENT_REQUEST__PROVIDER:
return getProvider();
case FhirPackage.ENROLLMENT_REQUEST__ORGANIZATION:
return getOrganization();
case FhirPackage.ENROLLMENT_REQUEST__SUBJECT:
return getSubject();
case FhirPackage.ENROLLMENT_REQUEST__COVERAGE:
return getCoverage();
case FhirPackage.ENROLLMENT_REQUEST__RELATIONSHIP:
return getRelationship();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case FhirPackage.ENROLLMENT_REQUEST__IDENTIFIER:
getIdentifier().clear();
getIdentifier().addAll((Collection<? extends Identifier>)newValue);
return;
case FhirPackage.ENROLLMENT_REQUEST__RULESET:
setRuleset((Coding)newValue);
return;
case FhirPackage.ENROLLMENT_REQUEST__ORIGINAL_RULESET:
setOriginalRuleset((Coding)newValue);
return;
case FhirPackage.ENROLLMENT_REQUEST__CREATED:
setCreated((DateTime)newValue);
return;
case FhirPackage.ENROLLMENT_REQUEST__TARGET:
setTarget((Reference)newValue);
return;
case FhirPackage.ENROLLMENT_REQUEST__PROVIDER:
setProvider((Reference)newValue);
return;
case FhirPackage.ENROLLMENT_REQUEST__ORGANIZATION:
setOrganization((Reference)newValue);
return;
case FhirPackage.ENROLLMENT_REQUEST__SUBJECT:
setSubject((Reference)newValue);
return;
case FhirPackage.ENROLLMENT_REQUEST__COVERAGE:
setCoverage((Reference)newValue);
return;
case FhirPackage.ENROLLMENT_REQUEST__RELATIONSHIP:
setRelationship((Coding)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case FhirPackage.ENROLLMENT_REQUEST__IDENTIFIER:
getIdentifier().clear();
return;
case FhirPackage.ENROLLMENT_REQUEST__RULESET:
setRuleset((Coding)null);
return;
case FhirPackage.ENROLLMENT_REQUEST__ORIGINAL_RULESET:
setOriginalRuleset((Coding)null);
return;
case FhirPackage.ENROLLMENT_REQUEST__CREATED:
setCreated((DateTime)null);
return;
case FhirPackage.ENROLLMENT_REQUEST__TARGET:
setTarget((Reference)null);
return;
case FhirPackage.ENROLLMENT_REQUEST__PROVIDER:
setProvider((Reference)null);
return;
case FhirPackage.ENROLLMENT_REQUEST__ORGANIZATION:
setOrganization((Reference)null);
return;
case FhirPackage.ENROLLMENT_REQUEST__SUBJECT:
setSubject((Reference)null);
return;
case FhirPackage.ENROLLMENT_REQUEST__COVERAGE:
setCoverage((Reference)null);
return;
case FhirPackage.ENROLLMENT_REQUEST__RELATIONSHIP:
setRelationship((Coding)null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case FhirPackage.ENROLLMENT_REQUEST__IDENTIFIER:
return identifier != null && !identifier.isEmpty();
case FhirPackage.ENROLLMENT_REQUEST__RULESET:
return ruleset != null;
case FhirPackage.ENROLLMENT_REQUEST__ORIGINAL_RULESET:
return originalRuleset != null;
case FhirPackage.ENROLLMENT_REQUEST__CREATED:
return created != null;
case FhirPackage.ENROLLMENT_REQUEST__TARGET:
return target != null;
case FhirPackage.ENROLLMENT_REQUEST__PROVIDER:
return provider != null;
case FhirPackage.ENROLLMENT_REQUEST__ORGANIZATION:
return organization != null;
case FhirPackage.ENROLLMENT_REQUEST__SUBJECT:
return subject != null;
case FhirPackage.ENROLLMENT_REQUEST__COVERAGE:
return coverage != null;
case FhirPackage.ENROLLMENT_REQUEST__RELATIONSHIP:
return relationship != null;
}
return super.eIsSet(featureID);
}
} //EnrollmentRequestImpl