blob: 335889b137a79975ba9c722139025119e63bc814 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2016 David Carlson and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* David Carlson (Clinical Cloud Solutions, LLC) - initial API and implementation
*******************************************************************************/
/**
*/
package org.eclipse.mdht.uml.fhir.core.resource.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.EObjectResolvingEList;
import org.eclipse.emf.ecore.util.InternalEList;
import org.eclipse.mdht.uml.fhir.core.datatype.Code;
import org.eclipse.mdht.uml.fhir.core.datatype.Coding;
import org.eclipse.mdht.uml.fhir.core.datatype.DateTime;
import org.eclipse.mdht.uml.fhir.core.datatype.Identifier;
import org.eclipse.mdht.uml.fhir.core.datatype.Money;
import org.eclipse.mdht.uml.fhir.core.datatype.Period;
import org.eclipse.mdht.uml.fhir.core.resource.FhirResourcePackage;
import org.eclipse.mdht.uml.fhir.core.resource.Organization;
import org.eclipse.mdht.uml.fhir.core.resource.PaymentReconciliation;
import org.eclipse.mdht.uml.fhir.core.resource.PaymentReconciliationDetails;
import org.eclipse.mdht.uml.fhir.core.resource.PaymentReconciliationNotes;
import org.eclipse.mdht.uml.fhir.core.resource.Practitioner;
import org.eclipse.mdht.uml.fhir.core.resource.ProcessRequest;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Payment Reconciliation</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.PaymentReconciliationImpl#getIdentifiers <em>Identifier</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.PaymentReconciliationImpl#getRequest <em>Request</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.PaymentReconciliationImpl#getOutcome <em>Outcome</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.PaymentReconciliationImpl#getDisposition <em>Disposition</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.PaymentReconciliationImpl#getRuleset <em>Ruleset</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.PaymentReconciliationImpl#getOriginalRuleset <em>Original Ruleset</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.PaymentReconciliationImpl#getCreated <em>Created</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.PaymentReconciliationImpl#getPeriod <em>Period</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.PaymentReconciliationImpl#getOrganization <em>Organization</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.PaymentReconciliationImpl#getRequestProvider <em>Request Provider</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.PaymentReconciliationImpl#getRequestOrganization <em>Request Organization</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.PaymentReconciliationImpl#getDetails <em>Detail</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.PaymentReconciliationImpl#getForm <em>Form</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.PaymentReconciliationImpl#getTotal <em>Total</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.PaymentReconciliationImpl#getNotes <em>Note</em>}</li>
* </ul>
*
* @generated
*/
public class PaymentReconciliationImpl extends DomainResourceImpl implements PaymentReconciliation {
/**
* The cached value of the '{@link #getIdentifiers() <em>Identifier</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getIdentifiers()
* @generated
* @ordered
*/
protected EList<Identifier> identifiers;
/**
* The cached value of the '{@link #getRequest() <em>Request</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getRequest()
* @generated
* @ordered
*/
protected ProcessRequest request;
/**
* The cached value of the '{@link #getOutcome() <em>Outcome</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOutcome()
* @generated
* @ordered
*/
protected Code outcome;
/**
* The cached value of the '{@link #getDisposition() <em>Disposition</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDisposition()
* @generated
* @ordered
*/
protected org.eclipse.mdht.uml.fhir.core.datatype.String disposition;
/**
* The cached value of the '{@link #getRuleset() <em>Ruleset</em>}' 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>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOriginalRuleset()
* @generated
* @ordered
*/
protected Coding originalRuleset;
/**
* The cached value of the '{@link #getCreated() <em>Created</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCreated()
* @generated
* @ordered
*/
protected DateTime created;
/**
* The cached value of the '{@link #getPeriod() <em>Period</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getPeriod()
* @generated
* @ordered
*/
protected Period period;
/**
* The cached value of the '{@link #getOrganization() <em>Organization</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOrganization()
* @generated
* @ordered
*/
protected Organization organization;
/**
* The cached value of the '{@link #getRequestProvider() <em>Request Provider</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getRequestProvider()
* @generated
* @ordered
*/
protected Practitioner requestProvider;
/**
* The cached value of the '{@link #getRequestOrganization() <em>Request Organization</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getRequestOrganization()
* @generated
* @ordered
*/
protected Organization requestOrganization;
/**
* The cached value of the '{@link #getDetails() <em>Detail</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDetails()
* @generated
* @ordered
*/
protected EList<PaymentReconciliationDetails> details;
/**
* The cached value of the '{@link #getForm() <em>Form</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getForm()
* @generated
* @ordered
*/
protected Coding form;
/**
* The cached value of the '{@link #getTotal() <em>Total</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTotal()
* @generated
* @ordered
*/
protected Money total;
/**
* The cached value of the '{@link #getNotes() <em>Note</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNotes()
* @generated
* @ordered
*/
protected EList<PaymentReconciliationNotes> notes;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected PaymentReconciliationImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FhirResourcePackage.eINSTANCE.getPaymentReconciliation();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<Identifier> getIdentifiers() {
if (identifiers == null) {
identifiers = new EObjectResolvingEList<Identifier>(Identifier.class, this, FhirResourcePackage.PAYMENT_RECONCILIATION__IDENTIFIER);
}
return identifiers;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ProcessRequest getRequest() {
if (request != null && request.eIsProxy()) {
InternalEObject oldRequest = (InternalEObject)request;
request = (ProcessRequest)eResolveProxy(oldRequest);
if (request != oldRequest) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.PAYMENT_RECONCILIATION__REQUEST, oldRequest, request));
}
}
return request;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ProcessRequest basicGetRequest() {
return request;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setRequest(ProcessRequest newRequest) {
ProcessRequest oldRequest = request;
request = newRequest;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.PAYMENT_RECONCILIATION__REQUEST, oldRequest, request));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Code getOutcome() {
if (outcome != null && outcome.eIsProxy()) {
InternalEObject oldOutcome = (InternalEObject)outcome;
outcome = (Code)eResolveProxy(oldOutcome);
if (outcome != oldOutcome) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.PAYMENT_RECONCILIATION__OUTCOME, oldOutcome, outcome));
}
}
return outcome;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Code basicGetOutcome() {
return outcome;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOutcome(Code newOutcome) {
Code oldOutcome = outcome;
outcome = newOutcome;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.PAYMENT_RECONCILIATION__OUTCOME, oldOutcome, outcome));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.eclipse.mdht.uml.fhir.core.datatype.String getDisposition() {
if (disposition != null && disposition.eIsProxy()) {
InternalEObject oldDisposition = (InternalEObject)disposition;
disposition = (org.eclipse.mdht.uml.fhir.core.datatype.String)eResolveProxy(oldDisposition);
if (disposition != oldDisposition) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.PAYMENT_RECONCILIATION__DISPOSITION, oldDisposition, disposition));
}
}
return disposition;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.eclipse.mdht.uml.fhir.core.datatype.String basicGetDisposition() {
return disposition;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDisposition(org.eclipse.mdht.uml.fhir.core.datatype.String newDisposition) {
org.eclipse.mdht.uml.fhir.core.datatype.String oldDisposition = disposition;
disposition = newDisposition;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.PAYMENT_RECONCILIATION__DISPOSITION, oldDisposition, disposition));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Coding getRuleset() {
if (ruleset != null && ruleset.eIsProxy()) {
InternalEObject oldRuleset = (InternalEObject)ruleset;
ruleset = (Coding)eResolveProxy(oldRuleset);
if (ruleset != oldRuleset) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.PAYMENT_RECONCILIATION__RULESET, oldRuleset, ruleset));
}
}
return ruleset;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Coding basicGetRuleset() {
return ruleset;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setRuleset(Coding newRuleset) {
Coding oldRuleset = ruleset;
ruleset = newRuleset;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.PAYMENT_RECONCILIATION__RULESET, oldRuleset, ruleset));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Coding getOriginalRuleset() {
if (originalRuleset != null && originalRuleset.eIsProxy()) {
InternalEObject oldOriginalRuleset = (InternalEObject)originalRuleset;
originalRuleset = (Coding)eResolveProxy(oldOriginalRuleset);
if (originalRuleset != oldOriginalRuleset) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.PAYMENT_RECONCILIATION__ORIGINAL_RULESET, oldOriginalRuleset, originalRuleset));
}
}
return originalRuleset;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Coding basicGetOriginalRuleset() {
return originalRuleset;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOriginalRuleset(Coding newOriginalRuleset) {
Coding oldOriginalRuleset = originalRuleset;
originalRuleset = newOriginalRuleset;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.PAYMENT_RECONCILIATION__ORIGINAL_RULESET, oldOriginalRuleset, originalRuleset));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DateTime getCreated() {
if (created != null && created.eIsProxy()) {
InternalEObject oldCreated = (InternalEObject)created;
created = (DateTime)eResolveProxy(oldCreated);
if (created != oldCreated) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.PAYMENT_RECONCILIATION__CREATED, oldCreated, created));
}
}
return created;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DateTime basicGetCreated() {
return created;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setCreated(DateTime newCreated) {
DateTime oldCreated = created;
created = newCreated;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.PAYMENT_RECONCILIATION__CREATED, oldCreated, created));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Period getPeriod() {
if (period != null && period.eIsProxy()) {
InternalEObject oldPeriod = (InternalEObject)period;
period = (Period)eResolveProxy(oldPeriod);
if (period != oldPeriod) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.PAYMENT_RECONCILIATION__PERIOD, oldPeriod, period));
}
}
return period;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Period basicGetPeriod() {
return period;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setPeriod(Period newPeriod) {
Period oldPeriod = period;
period = newPeriod;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.PAYMENT_RECONCILIATION__PERIOD, oldPeriod, period));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Organization getOrganization() {
if (organization != null && organization.eIsProxy()) {
InternalEObject oldOrganization = (InternalEObject)organization;
organization = (Organization)eResolveProxy(oldOrganization);
if (organization != oldOrganization) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.PAYMENT_RECONCILIATION__ORGANIZATION, oldOrganization, organization));
}
}
return organization;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Organization basicGetOrganization() {
return organization;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOrganization(Organization newOrganization) {
Organization oldOrganization = organization;
organization = newOrganization;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.PAYMENT_RECONCILIATION__ORGANIZATION, oldOrganization, organization));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Practitioner getRequestProvider() {
if (requestProvider != null && requestProvider.eIsProxy()) {
InternalEObject oldRequestProvider = (InternalEObject)requestProvider;
requestProvider = (Practitioner)eResolveProxy(oldRequestProvider);
if (requestProvider != oldRequestProvider) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.PAYMENT_RECONCILIATION__REQUEST_PROVIDER, oldRequestProvider, requestProvider));
}
}
return requestProvider;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Practitioner basicGetRequestProvider() {
return requestProvider;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setRequestProvider(Practitioner newRequestProvider) {
Practitioner oldRequestProvider = requestProvider;
requestProvider = newRequestProvider;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.PAYMENT_RECONCILIATION__REQUEST_PROVIDER, oldRequestProvider, requestProvider));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Organization getRequestOrganization() {
if (requestOrganization != null && requestOrganization.eIsProxy()) {
InternalEObject oldRequestOrganization = (InternalEObject)requestOrganization;
requestOrganization = (Organization)eResolveProxy(oldRequestOrganization);
if (requestOrganization != oldRequestOrganization) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.PAYMENT_RECONCILIATION__REQUEST_ORGANIZATION, oldRequestOrganization, requestOrganization));
}
}
return requestOrganization;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Organization basicGetRequestOrganization() {
return requestOrganization;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setRequestOrganization(Organization newRequestOrganization) {
Organization oldRequestOrganization = requestOrganization;
requestOrganization = newRequestOrganization;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.PAYMENT_RECONCILIATION__REQUEST_ORGANIZATION, oldRequestOrganization, requestOrganization));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<PaymentReconciliationDetails> getDetails() {
if (details == null) {
details = new EObjectContainmentEList<PaymentReconciliationDetails>(PaymentReconciliationDetails.class, this, FhirResourcePackage.PAYMENT_RECONCILIATION__DETAIL);
}
return details;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Coding getForm() {
if (form != null && form.eIsProxy()) {
InternalEObject oldForm = (InternalEObject)form;
form = (Coding)eResolveProxy(oldForm);
if (form != oldForm) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.PAYMENT_RECONCILIATION__FORM, oldForm, form));
}
}
return form;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Coding basicGetForm() {
return form;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setForm(Coding newForm) {
Coding oldForm = form;
form = newForm;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.PAYMENT_RECONCILIATION__FORM, oldForm, form));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Money getTotal() {
if (total != null && total.eIsProxy()) {
InternalEObject oldTotal = (InternalEObject)total;
total = (Money)eResolveProxy(oldTotal);
if (total != oldTotal) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.PAYMENT_RECONCILIATION__TOTAL, oldTotal, total));
}
}
return total;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Money basicGetTotal() {
return total;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTotal(Money newTotal) {
Money oldTotal = total;
total = newTotal;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.PAYMENT_RECONCILIATION__TOTAL, oldTotal, total));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<PaymentReconciliationNotes> getNotes() {
if (notes == null) {
notes = new EObjectContainmentEList<PaymentReconciliationNotes>(PaymentReconciliationNotes.class, this, FhirResourcePackage.PAYMENT_RECONCILIATION__NOTE);
}
return notes;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case FhirResourcePackage.PAYMENT_RECONCILIATION__DETAIL:
return ((InternalEList<?>)getDetails()).basicRemove(otherEnd, msgs);
case FhirResourcePackage.PAYMENT_RECONCILIATION__NOTE:
return ((InternalEList<?>)getNotes()).basicRemove(otherEnd, 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 FhirResourcePackage.PAYMENT_RECONCILIATION__IDENTIFIER:
return getIdentifiers();
case FhirResourcePackage.PAYMENT_RECONCILIATION__REQUEST:
if (resolve) return getRequest();
return basicGetRequest();
case FhirResourcePackage.PAYMENT_RECONCILIATION__OUTCOME:
if (resolve) return getOutcome();
return basicGetOutcome();
case FhirResourcePackage.PAYMENT_RECONCILIATION__DISPOSITION:
if (resolve) return getDisposition();
return basicGetDisposition();
case FhirResourcePackage.PAYMENT_RECONCILIATION__RULESET:
if (resolve) return getRuleset();
return basicGetRuleset();
case FhirResourcePackage.PAYMENT_RECONCILIATION__ORIGINAL_RULESET:
if (resolve) return getOriginalRuleset();
return basicGetOriginalRuleset();
case FhirResourcePackage.PAYMENT_RECONCILIATION__CREATED:
if (resolve) return getCreated();
return basicGetCreated();
case FhirResourcePackage.PAYMENT_RECONCILIATION__PERIOD:
if (resolve) return getPeriod();
return basicGetPeriod();
case FhirResourcePackage.PAYMENT_RECONCILIATION__ORGANIZATION:
if (resolve) return getOrganization();
return basicGetOrganization();
case FhirResourcePackage.PAYMENT_RECONCILIATION__REQUEST_PROVIDER:
if (resolve) return getRequestProvider();
return basicGetRequestProvider();
case FhirResourcePackage.PAYMENT_RECONCILIATION__REQUEST_ORGANIZATION:
if (resolve) return getRequestOrganization();
return basicGetRequestOrganization();
case FhirResourcePackage.PAYMENT_RECONCILIATION__DETAIL:
return getDetails();
case FhirResourcePackage.PAYMENT_RECONCILIATION__FORM:
if (resolve) return getForm();
return basicGetForm();
case FhirResourcePackage.PAYMENT_RECONCILIATION__TOTAL:
if (resolve) return getTotal();
return basicGetTotal();
case FhirResourcePackage.PAYMENT_RECONCILIATION__NOTE:
return getNotes();
}
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 FhirResourcePackage.PAYMENT_RECONCILIATION__IDENTIFIER:
getIdentifiers().clear();
getIdentifiers().addAll((Collection<? extends Identifier>)newValue);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__REQUEST:
setRequest((ProcessRequest)newValue);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__OUTCOME:
setOutcome((Code)newValue);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__DISPOSITION:
setDisposition((org.eclipse.mdht.uml.fhir.core.datatype.String)newValue);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__RULESET:
setRuleset((Coding)newValue);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__ORIGINAL_RULESET:
setOriginalRuleset((Coding)newValue);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__CREATED:
setCreated((DateTime)newValue);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__PERIOD:
setPeriod((Period)newValue);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__ORGANIZATION:
setOrganization((Organization)newValue);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__REQUEST_PROVIDER:
setRequestProvider((Practitioner)newValue);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__REQUEST_ORGANIZATION:
setRequestOrganization((Organization)newValue);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__DETAIL:
getDetails().clear();
getDetails().addAll((Collection<? extends PaymentReconciliationDetails>)newValue);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__FORM:
setForm((Coding)newValue);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__TOTAL:
setTotal((Money)newValue);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__NOTE:
getNotes().clear();
getNotes().addAll((Collection<? extends PaymentReconciliationNotes>)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case FhirResourcePackage.PAYMENT_RECONCILIATION__IDENTIFIER:
getIdentifiers().clear();
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__REQUEST:
setRequest((ProcessRequest)null);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__OUTCOME:
setOutcome((Code)null);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__DISPOSITION:
setDisposition((org.eclipse.mdht.uml.fhir.core.datatype.String)null);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__RULESET:
setRuleset((Coding)null);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__ORIGINAL_RULESET:
setOriginalRuleset((Coding)null);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__CREATED:
setCreated((DateTime)null);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__PERIOD:
setPeriod((Period)null);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__ORGANIZATION:
setOrganization((Organization)null);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__REQUEST_PROVIDER:
setRequestProvider((Practitioner)null);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__REQUEST_ORGANIZATION:
setRequestOrganization((Organization)null);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__DETAIL:
getDetails().clear();
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__FORM:
setForm((Coding)null);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__TOTAL:
setTotal((Money)null);
return;
case FhirResourcePackage.PAYMENT_RECONCILIATION__NOTE:
getNotes().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case FhirResourcePackage.PAYMENT_RECONCILIATION__IDENTIFIER:
return identifiers != null && !identifiers.isEmpty();
case FhirResourcePackage.PAYMENT_RECONCILIATION__REQUEST:
return request != null;
case FhirResourcePackage.PAYMENT_RECONCILIATION__OUTCOME:
return outcome != null;
case FhirResourcePackage.PAYMENT_RECONCILIATION__DISPOSITION:
return disposition != null;
case FhirResourcePackage.PAYMENT_RECONCILIATION__RULESET:
return ruleset != null;
case FhirResourcePackage.PAYMENT_RECONCILIATION__ORIGINAL_RULESET:
return originalRuleset != null;
case FhirResourcePackage.PAYMENT_RECONCILIATION__CREATED:
return created != null;
case FhirResourcePackage.PAYMENT_RECONCILIATION__PERIOD:
return period != null;
case FhirResourcePackage.PAYMENT_RECONCILIATION__ORGANIZATION:
return organization != null;
case FhirResourcePackage.PAYMENT_RECONCILIATION__REQUEST_PROVIDER:
return requestProvider != null;
case FhirResourcePackage.PAYMENT_RECONCILIATION__REQUEST_ORGANIZATION:
return requestOrganization != null;
case FhirResourcePackage.PAYMENT_RECONCILIATION__DETAIL:
return details != null && !details.isEmpty();
case FhirResourcePackage.PAYMENT_RECONCILIATION__FORM:
return form != null;
case FhirResourcePackage.PAYMENT_RECONCILIATION__TOTAL:
return total != null;
case FhirResourcePackage.PAYMENT_RECONCILIATION__NOTE:
return notes != null && !notes.isEmpty();
}
return super.eIsSet(featureID);
}
} //PaymentReconciliationImpl