| /******************************************************************************* |
| * 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.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.EObjectResolvingEList; |
| |
| import org.eclipse.mdht.uml.fhir.core.datatype.Coding; |
| import org.eclipse.mdht.uml.fhir.core.datatype.DataType; |
| 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.resource.Coverage; |
| import org.eclipse.mdht.uml.fhir.core.resource.EligibilityRequest; |
| import org.eclipse.mdht.uml.fhir.core.resource.FhirResourcePackage; |
| import org.eclipse.mdht.uml.fhir.core.resource.Location; |
| import org.eclipse.mdht.uml.fhir.core.resource.Organization; |
| import org.eclipse.mdht.uml.fhir.core.resource.Patient; |
| import org.eclipse.mdht.uml.fhir.core.resource.Practitioner; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Eligibility Request</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * </p> |
| * <ul> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.EligibilityRequestImpl#getIdentifiers <em>Identifier</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.EligibilityRequestImpl#getRuleset <em>Ruleset</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.EligibilityRequestImpl#getOriginalRuleset <em>Original Ruleset</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.EligibilityRequestImpl#getCreated <em>Created</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.EligibilityRequestImpl#getTarget <em>Target</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.EligibilityRequestImpl#getProvider <em>Provider</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.EligibilityRequestImpl#getOrganization <em>Organization</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.EligibilityRequestImpl#getPriority <em>Priority</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.EligibilityRequestImpl#getEnterer <em>Enterer</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.EligibilityRequestImpl#getFacility <em>Facility</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.EligibilityRequestImpl#getPatient <em>Patient</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.EligibilityRequestImpl#getCoverage <em>Coverage</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.EligibilityRequestImpl#getBusinessArrangement <em>Business Arrangement</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.EligibilityRequestImpl#getRelationship <em>Relationship</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.EligibilityRequestImpl#getServicedx <em>Servicedx</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.EligibilityRequestImpl#getBenefitCategory <em>Benefit Category</em>}</li> |
| * <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.EligibilityRequestImpl#getBenefitSubCategory <em>Benefit Sub Category</em>}</li> |
| * </ul> |
| * |
| * @generated |
| */ |
| public class EligibilityRequestImpl extends DomainResourceImpl implements EligibilityRequest { |
| /** |
| * 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 #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 #getTarget() <em>Target</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getTarget() |
| * @generated |
| * @ordered |
| */ |
| protected Organization target; |
| |
| /** |
| * The cached value of the '{@link #getProvider() <em>Provider</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getProvider() |
| * @generated |
| * @ordered |
| */ |
| protected Practitioner provider; |
| |
| /** |
| * 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 #getPriority() <em>Priority</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPriority() |
| * @generated |
| * @ordered |
| */ |
| protected Coding priority; |
| |
| /** |
| * The cached value of the '{@link #getEnterer() <em>Enterer</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getEnterer() |
| * @generated |
| * @ordered |
| */ |
| protected Practitioner enterer; |
| |
| /** |
| * The cached value of the '{@link #getFacility() <em>Facility</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getFacility() |
| * @generated |
| * @ordered |
| */ |
| protected Location facility; |
| |
| /** |
| * The cached value of the '{@link #getPatient() <em>Patient</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPatient() |
| * @generated |
| * @ordered |
| */ |
| protected Patient patient; |
| |
| /** |
| * The cached value of the '{@link #getCoverage() <em>Coverage</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getCoverage() |
| * @generated |
| * @ordered |
| */ |
| protected Coverage coverage; |
| |
| /** |
| * The cached value of the '{@link #getBusinessArrangement() <em>Business Arrangement</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getBusinessArrangement() |
| * @generated |
| * @ordered |
| */ |
| protected org.eclipse.mdht.uml.fhir.core.datatype.String businessArrangement; |
| |
| /** |
| * The cached value of the '{@link #getRelationship() <em>Relationship</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getRelationship() |
| * @generated |
| * @ordered |
| */ |
| protected Coding relationship; |
| |
| /** |
| * The cached value of the '{@link #getServicedx() <em>Servicedx</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getServicedx() |
| * @generated |
| * @ordered |
| */ |
| protected DataType servicedx; |
| |
| /** |
| * The cached value of the '{@link #getBenefitCategory() <em>Benefit Category</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getBenefitCategory() |
| * @generated |
| * @ordered |
| */ |
| protected Coding benefitCategory; |
| |
| /** |
| * The cached value of the '{@link #getBenefitSubCategory() <em>Benefit Sub Category</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getBenefitSubCategory() |
| * @generated |
| * @ordered |
| */ |
| protected Coding benefitSubCategory; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected EligibilityRequestImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return FhirResourcePackage.eINSTANCE.getEligibilityRequest(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<Identifier> getIdentifiers() { |
| if (identifiers == null) { |
| identifiers = new EObjectResolvingEList<Identifier>(Identifier.class, this, FhirResourcePackage.ELIGIBILITY_REQUEST__IDENTIFIER); |
| } |
| return identifiers; |
| } |
| |
| /** |
| * <!-- 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.ELIGIBILITY_REQUEST__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.ELIGIBILITY_REQUEST__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.ELIGIBILITY_REQUEST__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.ELIGIBILITY_REQUEST__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.ELIGIBILITY_REQUEST__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.ELIGIBILITY_REQUEST__CREATED, oldCreated, created)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Organization getTarget() { |
| if (target != null && target.eIsProxy()) { |
| InternalEObject oldTarget = (InternalEObject)target; |
| target = (Organization)eResolveProxy(oldTarget); |
| if (target != oldTarget) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.ELIGIBILITY_REQUEST__TARGET, oldTarget, target)); |
| } |
| } |
| return target; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Organization basicGetTarget() { |
| return target; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setTarget(Organization newTarget) { |
| Organization oldTarget = target; |
| target = newTarget; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.ELIGIBILITY_REQUEST__TARGET, oldTarget, target)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Practitioner getProvider() { |
| if (provider != null && provider.eIsProxy()) { |
| InternalEObject oldProvider = (InternalEObject)provider; |
| provider = (Practitioner)eResolveProxy(oldProvider); |
| if (provider != oldProvider) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.ELIGIBILITY_REQUEST__PROVIDER, oldProvider, provider)); |
| } |
| } |
| return provider; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Practitioner basicGetProvider() { |
| return provider; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setProvider(Practitioner newProvider) { |
| Practitioner oldProvider = provider; |
| provider = newProvider; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.ELIGIBILITY_REQUEST__PROVIDER, oldProvider, provider)); |
| } |
| |
| /** |
| * <!-- 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.ELIGIBILITY_REQUEST__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.ELIGIBILITY_REQUEST__ORGANIZATION, oldOrganization, organization)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Coding getPriority() { |
| if (priority != null && priority.eIsProxy()) { |
| InternalEObject oldPriority = (InternalEObject)priority; |
| priority = (Coding)eResolveProxy(oldPriority); |
| if (priority != oldPriority) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.ELIGIBILITY_REQUEST__PRIORITY, oldPriority, priority)); |
| } |
| } |
| return priority; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Coding basicGetPriority() { |
| return priority; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPriority(Coding newPriority) { |
| Coding oldPriority = priority; |
| priority = newPriority; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.ELIGIBILITY_REQUEST__PRIORITY, oldPriority, priority)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Practitioner getEnterer() { |
| if (enterer != null && enterer.eIsProxy()) { |
| InternalEObject oldEnterer = (InternalEObject)enterer; |
| enterer = (Practitioner)eResolveProxy(oldEnterer); |
| if (enterer != oldEnterer) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.ELIGIBILITY_REQUEST__ENTERER, oldEnterer, enterer)); |
| } |
| } |
| return enterer; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Practitioner basicGetEnterer() { |
| return enterer; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setEnterer(Practitioner newEnterer) { |
| Practitioner oldEnterer = enterer; |
| enterer = newEnterer; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.ELIGIBILITY_REQUEST__ENTERER, oldEnterer, enterer)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Location getFacility() { |
| if (facility != null && facility.eIsProxy()) { |
| InternalEObject oldFacility = (InternalEObject)facility; |
| facility = (Location)eResolveProxy(oldFacility); |
| if (facility != oldFacility) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.ELIGIBILITY_REQUEST__FACILITY, oldFacility, facility)); |
| } |
| } |
| return facility; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Location basicGetFacility() { |
| return facility; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setFacility(Location newFacility) { |
| Location oldFacility = facility; |
| facility = newFacility; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.ELIGIBILITY_REQUEST__FACILITY, oldFacility, facility)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Patient getPatient() { |
| if (patient != null && patient.eIsProxy()) { |
| InternalEObject oldPatient = (InternalEObject)patient; |
| patient = (Patient)eResolveProxy(oldPatient); |
| if (patient != oldPatient) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.ELIGIBILITY_REQUEST__PATIENT, oldPatient, patient)); |
| } |
| } |
| return patient; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Patient basicGetPatient() { |
| return patient; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPatient(Patient newPatient) { |
| Patient oldPatient = patient; |
| patient = newPatient; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.ELIGIBILITY_REQUEST__PATIENT, oldPatient, patient)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Coverage getCoverage() { |
| if (coverage != null && coverage.eIsProxy()) { |
| InternalEObject oldCoverage = (InternalEObject)coverage; |
| coverage = (Coverage)eResolveProxy(oldCoverage); |
| if (coverage != oldCoverage) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.ELIGIBILITY_REQUEST__COVERAGE, oldCoverage, coverage)); |
| } |
| } |
| return coverage; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Coverage basicGetCoverage() { |
| return coverage; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setCoverage(Coverage newCoverage) { |
| Coverage oldCoverage = coverage; |
| coverage = newCoverage; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.ELIGIBILITY_REQUEST__COVERAGE, oldCoverage, coverage)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public org.eclipse.mdht.uml.fhir.core.datatype.String getBusinessArrangement() { |
| if (businessArrangement != null && businessArrangement.eIsProxy()) { |
| InternalEObject oldBusinessArrangement = (InternalEObject)businessArrangement; |
| businessArrangement = (org.eclipse.mdht.uml.fhir.core.datatype.String)eResolveProxy(oldBusinessArrangement); |
| if (businessArrangement != oldBusinessArrangement) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.ELIGIBILITY_REQUEST__BUSINESS_ARRANGEMENT, oldBusinessArrangement, businessArrangement)); |
| } |
| } |
| return businessArrangement; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public org.eclipse.mdht.uml.fhir.core.datatype.String basicGetBusinessArrangement() { |
| return businessArrangement; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setBusinessArrangement(org.eclipse.mdht.uml.fhir.core.datatype.String newBusinessArrangement) { |
| org.eclipse.mdht.uml.fhir.core.datatype.String oldBusinessArrangement = businessArrangement; |
| businessArrangement = newBusinessArrangement; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.ELIGIBILITY_REQUEST__BUSINESS_ARRANGEMENT, oldBusinessArrangement, businessArrangement)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Coding getRelationship() { |
| if (relationship != null && relationship.eIsProxy()) { |
| InternalEObject oldRelationship = (InternalEObject)relationship; |
| relationship = (Coding)eResolveProxy(oldRelationship); |
| if (relationship != oldRelationship) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.ELIGIBILITY_REQUEST__RELATIONSHIP, oldRelationship, relationship)); |
| } |
| } |
| return relationship; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Coding basicGetRelationship() { |
| return relationship; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setRelationship(Coding newRelationship) { |
| Coding oldRelationship = relationship; |
| relationship = newRelationship; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.ELIGIBILITY_REQUEST__RELATIONSHIP, oldRelationship, relationship)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public DataType getServicedx() { |
| if (servicedx != null && servicedx.eIsProxy()) { |
| InternalEObject oldServicedx = (InternalEObject)servicedx; |
| servicedx = (DataType)eResolveProxy(oldServicedx); |
| if (servicedx != oldServicedx) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.ELIGIBILITY_REQUEST__SERVICEDX, oldServicedx, servicedx)); |
| } |
| } |
| return servicedx; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public DataType basicGetServicedx() { |
| return servicedx; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setServicedx(DataType newServicedx) { |
| DataType oldServicedx = servicedx; |
| servicedx = newServicedx; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.ELIGIBILITY_REQUEST__SERVICEDX, oldServicedx, servicedx)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Coding getBenefitCategory() { |
| if (benefitCategory != null && benefitCategory.eIsProxy()) { |
| InternalEObject oldBenefitCategory = (InternalEObject)benefitCategory; |
| benefitCategory = (Coding)eResolveProxy(oldBenefitCategory); |
| if (benefitCategory != oldBenefitCategory) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.ELIGIBILITY_REQUEST__BENEFIT_CATEGORY, oldBenefitCategory, benefitCategory)); |
| } |
| } |
| return benefitCategory; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Coding basicGetBenefitCategory() { |
| return benefitCategory; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setBenefitCategory(Coding newBenefitCategory) { |
| Coding oldBenefitCategory = benefitCategory; |
| benefitCategory = newBenefitCategory; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.ELIGIBILITY_REQUEST__BENEFIT_CATEGORY, oldBenefitCategory, benefitCategory)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Coding getBenefitSubCategory() { |
| if (benefitSubCategory != null && benefitSubCategory.eIsProxy()) { |
| InternalEObject oldBenefitSubCategory = (InternalEObject)benefitSubCategory; |
| benefitSubCategory = (Coding)eResolveProxy(oldBenefitSubCategory); |
| if (benefitSubCategory != oldBenefitSubCategory) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.ELIGIBILITY_REQUEST__BENEFIT_SUB_CATEGORY, oldBenefitSubCategory, benefitSubCategory)); |
| } |
| } |
| return benefitSubCategory; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Coding basicGetBenefitSubCategory() { |
| return benefitSubCategory; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setBenefitSubCategory(Coding newBenefitSubCategory) { |
| Coding oldBenefitSubCategory = benefitSubCategory; |
| benefitSubCategory = newBenefitSubCategory; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.ELIGIBILITY_REQUEST__BENEFIT_SUB_CATEGORY, oldBenefitSubCategory, benefitSubCategory)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public Object eGet(int featureID, boolean resolve, boolean coreType) { |
| switch (featureID) { |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__IDENTIFIER: |
| return getIdentifiers(); |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__RULESET: |
| if (resolve) return getRuleset(); |
| return basicGetRuleset(); |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__ORIGINAL_RULESET: |
| if (resolve) return getOriginalRuleset(); |
| return basicGetOriginalRuleset(); |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__CREATED: |
| if (resolve) return getCreated(); |
| return basicGetCreated(); |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__TARGET: |
| if (resolve) return getTarget(); |
| return basicGetTarget(); |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__PROVIDER: |
| if (resolve) return getProvider(); |
| return basicGetProvider(); |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__ORGANIZATION: |
| if (resolve) return getOrganization(); |
| return basicGetOrganization(); |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__PRIORITY: |
| if (resolve) return getPriority(); |
| return basicGetPriority(); |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__ENTERER: |
| if (resolve) return getEnterer(); |
| return basicGetEnterer(); |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__FACILITY: |
| if (resolve) return getFacility(); |
| return basicGetFacility(); |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__PATIENT: |
| if (resolve) return getPatient(); |
| return basicGetPatient(); |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__COVERAGE: |
| if (resolve) return getCoverage(); |
| return basicGetCoverage(); |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__BUSINESS_ARRANGEMENT: |
| if (resolve) return getBusinessArrangement(); |
| return basicGetBusinessArrangement(); |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__RELATIONSHIP: |
| if (resolve) return getRelationship(); |
| return basicGetRelationship(); |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__SERVICEDX: |
| if (resolve) return getServicedx(); |
| return basicGetServicedx(); |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__BENEFIT_CATEGORY: |
| if (resolve) return getBenefitCategory(); |
| return basicGetBenefitCategory(); |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__BENEFIT_SUB_CATEGORY: |
| if (resolve) return getBenefitSubCategory(); |
| return basicGetBenefitSubCategory(); |
| } |
| 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.ELIGIBILITY_REQUEST__IDENTIFIER: |
| getIdentifiers().clear(); |
| getIdentifiers().addAll((Collection<? extends Identifier>)newValue); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__RULESET: |
| setRuleset((Coding)newValue); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__ORIGINAL_RULESET: |
| setOriginalRuleset((Coding)newValue); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__CREATED: |
| setCreated((DateTime)newValue); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__TARGET: |
| setTarget((Organization)newValue); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__PROVIDER: |
| setProvider((Practitioner)newValue); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__ORGANIZATION: |
| setOrganization((Organization)newValue); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__PRIORITY: |
| setPriority((Coding)newValue); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__ENTERER: |
| setEnterer((Practitioner)newValue); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__FACILITY: |
| setFacility((Location)newValue); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__PATIENT: |
| setPatient((Patient)newValue); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__COVERAGE: |
| setCoverage((Coverage)newValue); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__BUSINESS_ARRANGEMENT: |
| setBusinessArrangement((org.eclipse.mdht.uml.fhir.core.datatype.String)newValue); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__RELATIONSHIP: |
| setRelationship((Coding)newValue); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__SERVICEDX: |
| setServicedx((DataType)newValue); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__BENEFIT_CATEGORY: |
| setBenefitCategory((Coding)newValue); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__BENEFIT_SUB_CATEGORY: |
| setBenefitSubCategory((Coding)newValue); |
| return; |
| } |
| super.eSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__IDENTIFIER: |
| getIdentifiers().clear(); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__RULESET: |
| setRuleset((Coding)null); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__ORIGINAL_RULESET: |
| setOriginalRuleset((Coding)null); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__CREATED: |
| setCreated((DateTime)null); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__TARGET: |
| setTarget((Organization)null); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__PROVIDER: |
| setProvider((Practitioner)null); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__ORGANIZATION: |
| setOrganization((Organization)null); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__PRIORITY: |
| setPriority((Coding)null); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__ENTERER: |
| setEnterer((Practitioner)null); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__FACILITY: |
| setFacility((Location)null); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__PATIENT: |
| setPatient((Patient)null); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__COVERAGE: |
| setCoverage((Coverage)null); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__BUSINESS_ARRANGEMENT: |
| setBusinessArrangement((org.eclipse.mdht.uml.fhir.core.datatype.String)null); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__RELATIONSHIP: |
| setRelationship((Coding)null); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__SERVICEDX: |
| setServicedx((DataType)null); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__BENEFIT_CATEGORY: |
| setBenefitCategory((Coding)null); |
| return; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__BENEFIT_SUB_CATEGORY: |
| setBenefitSubCategory((Coding)null); |
| return; |
| } |
| super.eUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__IDENTIFIER: |
| return identifiers != null && !identifiers.isEmpty(); |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__RULESET: |
| return ruleset != null; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__ORIGINAL_RULESET: |
| return originalRuleset != null; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__CREATED: |
| return created != null; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__TARGET: |
| return target != null; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__PROVIDER: |
| return provider != null; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__ORGANIZATION: |
| return organization != null; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__PRIORITY: |
| return priority != null; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__ENTERER: |
| return enterer != null; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__FACILITY: |
| return facility != null; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__PATIENT: |
| return patient != null; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__COVERAGE: |
| return coverage != null; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__BUSINESS_ARRANGEMENT: |
| return businessArrangement != null; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__RELATIONSHIP: |
| return relationship != null; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__SERVICEDX: |
| return servicedx != null; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__BENEFIT_CATEGORY: |
| return benefitCategory != null; |
| case FhirResourcePackage.ELIGIBILITY_REQUEST__BENEFIT_SUB_CATEGORY: |
| return benefitSubCategory != null; |
| } |
| return super.eIsSet(featureID); |
| } |
| |
| } //EligibilityRequestImpl |