| /** |
| */ |
| 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.Annotation; |
| import org.hl7.fhir.CareTeam; |
| import org.hl7.fhir.CareTeamParticipant; |
| import org.hl7.fhir.CareTeamStatus; |
| import org.hl7.fhir.CodeableConcept; |
| import org.hl7.fhir.ContactPoint; |
| import org.hl7.fhir.FhirPackage; |
| import org.hl7.fhir.Identifier; |
| import org.hl7.fhir.Period; |
| import org.hl7.fhir.Reference; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Care Team</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * </p> |
| * <ul> |
| * <li>{@link org.hl7.fhir.impl.CareTeamImpl#getIdentifier <em>Identifier</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.CareTeamImpl#getStatus <em>Status</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.CareTeamImpl#getCategory <em>Category</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.CareTeamImpl#getName <em>Name</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.CareTeamImpl#getSubject <em>Subject</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.CareTeamImpl#getEncounter <em>Encounter</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.CareTeamImpl#getPeriod <em>Period</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.CareTeamImpl#getParticipant <em>Participant</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.CareTeamImpl#getReasonCode <em>Reason Code</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.CareTeamImpl#getReasonReference <em>Reason Reference</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.CareTeamImpl#getManagingOrganization <em>Managing Organization</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.CareTeamImpl#getTelecom <em>Telecom</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.CareTeamImpl#getNote <em>Note</em>}</li> |
| * </ul> |
| * |
| * @generated |
| */ |
| public class CareTeamImpl extends DomainResourceImpl implements CareTeam { |
| /** |
| * 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 #getStatus() <em>Status</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getStatus() |
| * @generated |
| * @ordered |
| */ |
| protected CareTeamStatus status; |
| |
| /** |
| * The cached value of the '{@link #getCategory() <em>Category</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getCategory() |
| * @generated |
| * @ordered |
| */ |
| protected EList<CodeableConcept> category; |
| |
| /** |
| * The cached value of the '{@link #getName() <em>Name</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getName() |
| * @generated |
| * @ordered |
| */ |
| protected org.hl7.fhir.String name; |
| |
| /** |
| * 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 #getEncounter() <em>Encounter</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getEncounter() |
| * @generated |
| * @ordered |
| */ |
| protected Reference encounter; |
| |
| /** |
| * The cached value of the '{@link #getPeriod() <em>Period</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPeriod() |
| * @generated |
| * @ordered |
| */ |
| protected Period period; |
| |
| /** |
| * The cached value of the '{@link #getParticipant() <em>Participant</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getParticipant() |
| * @generated |
| * @ordered |
| */ |
| protected EList<CareTeamParticipant> participant; |
| |
| /** |
| * The cached value of the '{@link #getReasonCode() <em>Reason Code</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getReasonCode() |
| * @generated |
| * @ordered |
| */ |
| protected EList<CodeableConcept> reasonCode; |
| |
| /** |
| * The cached value of the '{@link #getReasonReference() <em>Reason Reference</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getReasonReference() |
| * @generated |
| * @ordered |
| */ |
| protected EList<Reference> reasonReference; |
| |
| /** |
| * The cached value of the '{@link #getManagingOrganization() <em>Managing Organization</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getManagingOrganization() |
| * @generated |
| * @ordered |
| */ |
| protected EList<Reference> managingOrganization; |
| |
| /** |
| * The cached value of the '{@link #getTelecom() <em>Telecom</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getTelecom() |
| * @generated |
| * @ordered |
| */ |
| protected EList<ContactPoint> telecom; |
| |
| /** |
| * The cached value of the '{@link #getNote() <em>Note</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getNote() |
| * @generated |
| * @ordered |
| */ |
| protected EList<Annotation> note; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected CareTeamImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return FhirPackage.eINSTANCE.getCareTeam(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<Identifier> getIdentifier() { |
| if (identifier == null) { |
| identifier = new EObjectContainmentEList<Identifier>(Identifier.class, this, FhirPackage.CARE_TEAM__IDENTIFIER); |
| } |
| return identifier; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public CareTeamStatus getStatus() { |
| return status; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetStatus(CareTeamStatus newStatus, NotificationChain msgs) { |
| CareTeamStatus oldStatus = status; |
| status = newStatus; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.CARE_TEAM__STATUS, oldStatus, newStatus); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setStatus(CareTeamStatus newStatus) { |
| if (newStatus != status) { |
| NotificationChain msgs = null; |
| if (status != null) |
| msgs = ((InternalEObject)status).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CARE_TEAM__STATUS, null, msgs); |
| if (newStatus != null) |
| msgs = ((InternalEObject)newStatus).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CARE_TEAM__STATUS, null, msgs); |
| msgs = basicSetStatus(newStatus, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CARE_TEAM__STATUS, newStatus, newStatus)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<CodeableConcept> getCategory() { |
| if (category == null) { |
| category = new EObjectContainmentEList<CodeableConcept>(CodeableConcept.class, this, FhirPackage.CARE_TEAM__CATEGORY); |
| } |
| return category; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public org.hl7.fhir.String getName() { |
| return name; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetName(org.hl7.fhir.String newName, NotificationChain msgs) { |
| org.hl7.fhir.String oldName = name; |
| name = newName; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.CARE_TEAM__NAME, oldName, newName); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setName(org.hl7.fhir.String newName) { |
| if (newName != name) { |
| NotificationChain msgs = null; |
| if (name != null) |
| msgs = ((InternalEObject)name).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CARE_TEAM__NAME, null, msgs); |
| if (newName != null) |
| msgs = ((InternalEObject)newName).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CARE_TEAM__NAME, null, msgs); |
| msgs = basicSetName(newName, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CARE_TEAM__NAME, newName, newName)); |
| } |
| |
| /** |
| * <!-- 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.CARE_TEAM__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.CARE_TEAM__SUBJECT, null, msgs); |
| if (newSubject != null) |
| msgs = ((InternalEObject)newSubject).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CARE_TEAM__SUBJECT, null, msgs); |
| msgs = basicSetSubject(newSubject, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CARE_TEAM__SUBJECT, newSubject, newSubject)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Reference getEncounter() { |
| return encounter; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetEncounter(Reference newEncounter, NotificationChain msgs) { |
| Reference oldEncounter = encounter; |
| encounter = newEncounter; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.CARE_TEAM__ENCOUNTER, oldEncounter, newEncounter); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setEncounter(Reference newEncounter) { |
| if (newEncounter != encounter) { |
| NotificationChain msgs = null; |
| if (encounter != null) |
| msgs = ((InternalEObject)encounter).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CARE_TEAM__ENCOUNTER, null, msgs); |
| if (newEncounter != null) |
| msgs = ((InternalEObject)newEncounter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CARE_TEAM__ENCOUNTER, null, msgs); |
| msgs = basicSetEncounter(newEncounter, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CARE_TEAM__ENCOUNTER, newEncounter, newEncounter)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Period getPeriod() { |
| return period; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetPeriod(Period newPeriod, NotificationChain msgs) { |
| Period oldPeriod = period; |
| period = newPeriod; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.CARE_TEAM__PERIOD, oldPeriod, newPeriod); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPeriod(Period newPeriod) { |
| if (newPeriod != period) { |
| NotificationChain msgs = null; |
| if (period != null) |
| msgs = ((InternalEObject)period).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CARE_TEAM__PERIOD, null, msgs); |
| if (newPeriod != null) |
| msgs = ((InternalEObject)newPeriod).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CARE_TEAM__PERIOD, null, msgs); |
| msgs = basicSetPeriod(newPeriod, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CARE_TEAM__PERIOD, newPeriod, newPeriod)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<CareTeamParticipant> getParticipant() { |
| if (participant == null) { |
| participant = new EObjectContainmentEList<CareTeamParticipant>(CareTeamParticipant.class, this, FhirPackage.CARE_TEAM__PARTICIPANT); |
| } |
| return participant; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<CodeableConcept> getReasonCode() { |
| if (reasonCode == null) { |
| reasonCode = new EObjectContainmentEList<CodeableConcept>(CodeableConcept.class, this, FhirPackage.CARE_TEAM__REASON_CODE); |
| } |
| return reasonCode; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<Reference> getReasonReference() { |
| if (reasonReference == null) { |
| reasonReference = new EObjectContainmentEList<Reference>(Reference.class, this, FhirPackage.CARE_TEAM__REASON_REFERENCE); |
| } |
| return reasonReference; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<Reference> getManagingOrganization() { |
| if (managingOrganization == null) { |
| managingOrganization = new EObjectContainmentEList<Reference>(Reference.class, this, FhirPackage.CARE_TEAM__MANAGING_ORGANIZATION); |
| } |
| return managingOrganization; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<ContactPoint> getTelecom() { |
| if (telecom == null) { |
| telecom = new EObjectContainmentEList<ContactPoint>(ContactPoint.class, this, FhirPackage.CARE_TEAM__TELECOM); |
| } |
| return telecom; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<Annotation> getNote() { |
| if (note == null) { |
| note = new EObjectContainmentEList<Annotation>(Annotation.class, this, FhirPackage.CARE_TEAM__NOTE); |
| } |
| return note; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
| switch (featureID) { |
| case FhirPackage.CARE_TEAM__IDENTIFIER: |
| return ((InternalEList<?>)getIdentifier()).basicRemove(otherEnd, msgs); |
| case FhirPackage.CARE_TEAM__STATUS: |
| return basicSetStatus(null, msgs); |
| case FhirPackage.CARE_TEAM__CATEGORY: |
| return ((InternalEList<?>)getCategory()).basicRemove(otherEnd, msgs); |
| case FhirPackage.CARE_TEAM__NAME: |
| return basicSetName(null, msgs); |
| case FhirPackage.CARE_TEAM__SUBJECT: |
| return basicSetSubject(null, msgs); |
| case FhirPackage.CARE_TEAM__ENCOUNTER: |
| return basicSetEncounter(null, msgs); |
| case FhirPackage.CARE_TEAM__PERIOD: |
| return basicSetPeriod(null, msgs); |
| case FhirPackage.CARE_TEAM__PARTICIPANT: |
| return ((InternalEList<?>)getParticipant()).basicRemove(otherEnd, msgs); |
| case FhirPackage.CARE_TEAM__REASON_CODE: |
| return ((InternalEList<?>)getReasonCode()).basicRemove(otherEnd, msgs); |
| case FhirPackage.CARE_TEAM__REASON_REFERENCE: |
| return ((InternalEList<?>)getReasonReference()).basicRemove(otherEnd, msgs); |
| case FhirPackage.CARE_TEAM__MANAGING_ORGANIZATION: |
| return ((InternalEList<?>)getManagingOrganization()).basicRemove(otherEnd, msgs); |
| case FhirPackage.CARE_TEAM__TELECOM: |
| return ((InternalEList<?>)getTelecom()).basicRemove(otherEnd, msgs); |
| case FhirPackage.CARE_TEAM__NOTE: |
| return ((InternalEList<?>)getNote()).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 FhirPackage.CARE_TEAM__IDENTIFIER: |
| return getIdentifier(); |
| case FhirPackage.CARE_TEAM__STATUS: |
| return getStatus(); |
| case FhirPackage.CARE_TEAM__CATEGORY: |
| return getCategory(); |
| case FhirPackage.CARE_TEAM__NAME: |
| return getName(); |
| case FhirPackage.CARE_TEAM__SUBJECT: |
| return getSubject(); |
| case FhirPackage.CARE_TEAM__ENCOUNTER: |
| return getEncounter(); |
| case FhirPackage.CARE_TEAM__PERIOD: |
| return getPeriod(); |
| case FhirPackage.CARE_TEAM__PARTICIPANT: |
| return getParticipant(); |
| case FhirPackage.CARE_TEAM__REASON_CODE: |
| return getReasonCode(); |
| case FhirPackage.CARE_TEAM__REASON_REFERENCE: |
| return getReasonReference(); |
| case FhirPackage.CARE_TEAM__MANAGING_ORGANIZATION: |
| return getManagingOrganization(); |
| case FhirPackage.CARE_TEAM__TELECOM: |
| return getTelecom(); |
| case FhirPackage.CARE_TEAM__NOTE: |
| return getNote(); |
| } |
| 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.CARE_TEAM__IDENTIFIER: |
| getIdentifier().clear(); |
| getIdentifier().addAll((Collection<? extends Identifier>)newValue); |
| return; |
| case FhirPackage.CARE_TEAM__STATUS: |
| setStatus((CareTeamStatus)newValue); |
| return; |
| case FhirPackage.CARE_TEAM__CATEGORY: |
| getCategory().clear(); |
| getCategory().addAll((Collection<? extends CodeableConcept>)newValue); |
| return; |
| case FhirPackage.CARE_TEAM__NAME: |
| setName((org.hl7.fhir.String)newValue); |
| return; |
| case FhirPackage.CARE_TEAM__SUBJECT: |
| setSubject((Reference)newValue); |
| return; |
| case FhirPackage.CARE_TEAM__ENCOUNTER: |
| setEncounter((Reference)newValue); |
| return; |
| case FhirPackage.CARE_TEAM__PERIOD: |
| setPeriod((Period)newValue); |
| return; |
| case FhirPackage.CARE_TEAM__PARTICIPANT: |
| getParticipant().clear(); |
| getParticipant().addAll((Collection<? extends CareTeamParticipant>)newValue); |
| return; |
| case FhirPackage.CARE_TEAM__REASON_CODE: |
| getReasonCode().clear(); |
| getReasonCode().addAll((Collection<? extends CodeableConcept>)newValue); |
| return; |
| case FhirPackage.CARE_TEAM__REASON_REFERENCE: |
| getReasonReference().clear(); |
| getReasonReference().addAll((Collection<? extends Reference>)newValue); |
| return; |
| case FhirPackage.CARE_TEAM__MANAGING_ORGANIZATION: |
| getManagingOrganization().clear(); |
| getManagingOrganization().addAll((Collection<? extends Reference>)newValue); |
| return; |
| case FhirPackage.CARE_TEAM__TELECOM: |
| getTelecom().clear(); |
| getTelecom().addAll((Collection<? extends ContactPoint>)newValue); |
| return; |
| case FhirPackage.CARE_TEAM__NOTE: |
| getNote().clear(); |
| getNote().addAll((Collection<? extends Annotation>)newValue); |
| return; |
| } |
| super.eSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case FhirPackage.CARE_TEAM__IDENTIFIER: |
| getIdentifier().clear(); |
| return; |
| case FhirPackage.CARE_TEAM__STATUS: |
| setStatus((CareTeamStatus)null); |
| return; |
| case FhirPackage.CARE_TEAM__CATEGORY: |
| getCategory().clear(); |
| return; |
| case FhirPackage.CARE_TEAM__NAME: |
| setName((org.hl7.fhir.String)null); |
| return; |
| case FhirPackage.CARE_TEAM__SUBJECT: |
| setSubject((Reference)null); |
| return; |
| case FhirPackage.CARE_TEAM__ENCOUNTER: |
| setEncounter((Reference)null); |
| return; |
| case FhirPackage.CARE_TEAM__PERIOD: |
| setPeriod((Period)null); |
| return; |
| case FhirPackage.CARE_TEAM__PARTICIPANT: |
| getParticipant().clear(); |
| return; |
| case FhirPackage.CARE_TEAM__REASON_CODE: |
| getReasonCode().clear(); |
| return; |
| case FhirPackage.CARE_TEAM__REASON_REFERENCE: |
| getReasonReference().clear(); |
| return; |
| case FhirPackage.CARE_TEAM__MANAGING_ORGANIZATION: |
| getManagingOrganization().clear(); |
| return; |
| case FhirPackage.CARE_TEAM__TELECOM: |
| getTelecom().clear(); |
| return; |
| case FhirPackage.CARE_TEAM__NOTE: |
| getNote().clear(); |
| return; |
| } |
| super.eUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case FhirPackage.CARE_TEAM__IDENTIFIER: |
| return identifier != null && !identifier.isEmpty(); |
| case FhirPackage.CARE_TEAM__STATUS: |
| return status != null; |
| case FhirPackage.CARE_TEAM__CATEGORY: |
| return category != null && !category.isEmpty(); |
| case FhirPackage.CARE_TEAM__NAME: |
| return name != null; |
| case FhirPackage.CARE_TEAM__SUBJECT: |
| return subject != null; |
| case FhirPackage.CARE_TEAM__ENCOUNTER: |
| return encounter != null; |
| case FhirPackage.CARE_TEAM__PERIOD: |
| return period != null; |
| case FhirPackage.CARE_TEAM__PARTICIPANT: |
| return participant != null && !participant.isEmpty(); |
| case FhirPackage.CARE_TEAM__REASON_CODE: |
| return reasonCode != null && !reasonCode.isEmpty(); |
| case FhirPackage.CARE_TEAM__REASON_REFERENCE: |
| return reasonReference != null && !reasonReference.isEmpty(); |
| case FhirPackage.CARE_TEAM__MANAGING_ORGANIZATION: |
| return managingOrganization != null && !managingOrganization.isEmpty(); |
| case FhirPackage.CARE_TEAM__TELECOM: |
| return telecom != null && !telecom.isEmpty(); |
| case FhirPackage.CARE_TEAM__NOTE: |
| return note != null && !note.isEmpty(); |
| } |
| return super.eIsSet(featureID); |
| } |
| |
| } //CareTeamImpl |