org.openhealthtools.mdht.uml.cda.impl.EntryImpl Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2009, 2011 IBM Corporation 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.openhealthtools.mdht.uml.cda.impl;
import java.util.Collection;
import java.util.Map;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.DiagnosticChain;
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.openhealthtools.mdht.uml.cda.Act;
import org.openhealthtools.mdht.uml.cda.CDAPackage;
import org.openhealthtools.mdht.uml.cda.Encounter;
import org.openhealthtools.mdht.uml.cda.Entry;
import org.openhealthtools.mdht.uml.cda.InfrastructureRootTypeId;
import org.openhealthtools.mdht.uml.cda.Observation;
import org.openhealthtools.mdht.uml.cda.ObservationMedia;
import org.openhealthtools.mdht.uml.cda.Organizer;
import org.openhealthtools.mdht.uml.cda.Procedure;
import org.openhealthtools.mdht.uml.cda.RegionOfInterest;
import org.openhealthtools.mdht.uml.cda.SubstanceAdministration;
import org.openhealthtools.mdht.uml.cda.Supply;
import org.openhealthtools.mdht.uml.cda.operations.EntryOperations;
import org.openhealthtools.mdht.uml.hl7.datatypes.CS;
import org.openhealthtools.mdht.uml.hl7.datatypes.II;
import org.openhealthtools.mdht.uml.hl7.rim.impl.ActRelationshipImpl;
import org.openhealthtools.mdht.uml.hl7.vocab.NullFlavor;
import org.openhealthtools.mdht.uml.hl7.vocab.x_ActRelationshipEntry;
/**
*
* An implementation of the model object 'Entry'.
*
*
* The following features are implemented:
*
* - {@link org.openhealthtools.mdht.uml.cda.impl.EntryImpl#getRealmCodes Realm Code}
* - {@link org.openhealthtools.mdht.uml.cda.impl.EntryImpl#getTypeId Type Id}
* - {@link org.openhealthtools.mdht.uml.cda.impl.EntryImpl#getTemplateIds Template Id}
* - {@link org.openhealthtools.mdht.uml.cda.impl.EntryImpl#getAct Act}
* - {@link org.openhealthtools.mdht.uml.cda.impl.EntryImpl#getEncounter Encounter}
* - {@link org.openhealthtools.mdht.uml.cda.impl.EntryImpl#getObservation Observation}
* - {@link org.openhealthtools.mdht.uml.cda.impl.EntryImpl#getObservationMedia Observation Media}
* - {@link org.openhealthtools.mdht.uml.cda.impl.EntryImpl#getOrganizer Organizer}
* - {@link org.openhealthtools.mdht.uml.cda.impl.EntryImpl#getProcedure Procedure}
* - {@link org.openhealthtools.mdht.uml.cda.impl.EntryImpl#getRegionOfInterest Region Of Interest}
* - {@link org.openhealthtools.mdht.uml.cda.impl.EntryImpl#getSubstanceAdministration Substance Administration}
* - {@link org.openhealthtools.mdht.uml.cda.impl.EntryImpl#getSupply Supply}
* - {@link org.openhealthtools.mdht.uml.cda.impl.EntryImpl#getNullFlavor Null Flavor}
* - {@link org.openhealthtools.mdht.uml.cda.impl.EntryImpl#getTypeCode Type Code}
* - {@link org.openhealthtools.mdht.uml.cda.impl.EntryImpl#getContextConductionInd Context Conduction Ind}
*
*
*
* @generated
*/
public class EntryImpl extends ActRelationshipImpl implements Entry {
/**
* The cached value of the '{@link #getRealmCodes() Realm Code}' containment reference list.
*
*
* @see #getRealmCodes()
* @generated
* @ordered
*/
protected EList realmCodes;
/**
* The cached value of the '{@link #getTypeId() Type Id}' containment reference.
*
*
* @see #getTypeId()
* @generated
* @ordered
*/
protected InfrastructureRootTypeId typeId;
/**
* The cached value of the '{@link #getTemplateIds() Template Id}' containment reference list.
*
*
* @see #getTemplateIds()
* @generated
* @ordered
*/
protected EList templateIds;
/**
* The cached value of the '{@link #getAct() Act}' containment reference.
*
*
* @see #getAct()
* @generated
* @ordered
*/
protected Act act;
/**
* The cached value of the '{@link #getEncounter() Encounter}' containment reference.
*
*
* @see #getEncounter()
* @generated
* @ordered
*/
protected Encounter encounter;
/**
* The cached value of the '{@link #getObservation() Observation}' containment reference.
*
*
* @see #getObservation()
* @generated
* @ordered
*/
protected Observation observation;
/**
* The cached value of the '{@link #getObservationMedia() Observation Media}' containment reference.
*
*
* @see #getObservationMedia()
* @generated
* @ordered
*/
protected ObservationMedia observationMedia;
/**
* The cached value of the '{@link #getOrganizer() Organizer}' containment reference.
*
*
* @see #getOrganizer()
* @generated
* @ordered
*/
protected Organizer organizer;
/**
* The cached value of the '{@link #getProcedure() Procedure}' containment reference.
*
*
* @see #getProcedure()
* @generated
* @ordered
*/
protected Procedure procedure;
/**
* The cached value of the '{@link #getRegionOfInterest() Region Of Interest}' containment reference.
*
*
* @see #getRegionOfInterest()
* @generated
* @ordered
*/
protected RegionOfInterest regionOfInterest;
/**
* The cached value of the '{@link #getSubstanceAdministration() Substance Administration}' containment reference.
*
*
* @see #getSubstanceAdministration()
* @generated
* @ordered
*/
protected SubstanceAdministration substanceAdministration;
/**
* The cached value of the '{@link #getSupply() Supply}' containment reference.
*
*
* @see #getSupply()
* @generated
* @ordered
*/
protected Supply supply;
/**
* The default value of the '{@link #getNullFlavor() Null Flavor}' attribute.
*
*
* @see #getNullFlavor()
* @generated
* @ordered
*/
protected static final NullFlavor NULL_FLAVOR_EDEFAULT = NullFlavor.ASKU;
/**
* The cached value of the '{@link #getNullFlavor() Null Flavor}' attribute.
*
*
* @see #getNullFlavor()
* @generated
* @ordered
*/
protected NullFlavor nullFlavor = NULL_FLAVOR_EDEFAULT;
/**
* This is true if the Null Flavor attribute has been set.
*
*
* @generated
* @ordered
*/
protected boolean nullFlavorESet;
/**
* The default value of the '{@link #getTypeCode() Type Code}' attribute.
*
*
* @see #getTypeCode()
* @generated
* @ordered
*/
protected static final x_ActRelationshipEntry TYPE_CODE_EDEFAULT = x_ActRelationshipEntry.COMP;
/**
* The cached value of the '{@link #getTypeCode() Type Code}' attribute.
*
*
* @see #getTypeCode()
* @generated
* @ordered
*/
protected x_ActRelationshipEntry typeCode = TYPE_CODE_EDEFAULT;
/**
* This is true if the Type Code attribute has been set.
*
*
* @generated
* @ordered
*/
protected boolean typeCodeESet;
/**
* The default value of the '{@link #getContextConductionInd() Context Conduction Ind}' attribute.
*
*
* @see #getContextConductionInd()
* @generated
* @ordered
*/
protected static final Boolean CONTEXT_CONDUCTION_IND_EDEFAULT = Boolean.TRUE;
/**
* The cached value of the '{@link #getContextConductionInd() Context Conduction Ind}' attribute.
*
*
* @see #getContextConductionInd()
* @generated
* @ordered
*/
protected Boolean contextConductionInd = CONTEXT_CONDUCTION_IND_EDEFAULT;
/**
* This is true if the Context Conduction Ind attribute has been set.
*
*
* @generated
* @ordered
*/
protected boolean contextConductionIndESet;
/**
*
*
* @generated
*/
protected EntryImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return CDAPackage.Literals.ENTRY;
}
/**
*
*
* @generated
*/
@Override
public EList getRealmCodes() {
if (realmCodes == null) {
realmCodes = new EObjectContainmentEList(CS.class, this, CDAPackage.ENTRY__REALM_CODE);
}
return realmCodes;
}
/**
*
*
* @generated
*/
@Override
public InfrastructureRootTypeId getTypeId() {
return typeId;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetTypeId(InfrastructureRootTypeId newTypeId, NotificationChain msgs) {
InfrastructureRootTypeId oldTypeId = typeId;
typeId = newTypeId;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(
this, Notification.SET, CDAPackage.ENTRY__TYPE_ID, oldTypeId, newTypeId);
if (msgs == null) {
msgs = notification;
} else {
msgs.add(notification);
}
}
return msgs;
}
/**
*
*
* @generated
*/
public void setTypeId(InfrastructureRootTypeId newTypeId) {
if (newTypeId != typeId) {
NotificationChain msgs = null;
if (typeId != null) {
msgs = ((InternalEObject) typeId).eInverseRemove(this, EOPPOSITE_FEATURE_BASE -
CDAPackage.ENTRY__TYPE_ID, null, msgs);
}
if (newTypeId != null) {
msgs = ((InternalEObject) newTypeId).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
CDAPackage.ENTRY__TYPE_ID, null, msgs);
}
msgs = basicSetTypeId(newTypeId, msgs);
if (msgs != null) {
msgs.dispatch();
}
} else if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, CDAPackage.ENTRY__TYPE_ID, newTypeId, newTypeId));
}
}
/**
*
*
* @generated
*/
@Override
public EList getTemplateIds() {
if (templateIds == null) {
templateIds = new EObjectContainmentEList(II.class, this, CDAPackage.ENTRY__TEMPLATE_ID);
}
return templateIds;
}
/**
*
*
* @generated
*/
public Act getAct() {
return act;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetAct(Act newAct, NotificationChain msgs) {
Act oldAct = act;
act = newAct;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(
this, Notification.SET, CDAPackage.ENTRY__ACT, oldAct, newAct);
if (msgs == null) {
msgs = notification;
} else {
msgs.add(notification);
}
}
return msgs;
}
/**
*
*
* @generated
*/
public void setAct(Act newAct) {
if (newAct != act) {
NotificationChain msgs = null;
if (act != null) {
msgs = ((InternalEObject) act).eInverseRemove(
this, EOPPOSITE_FEATURE_BASE - CDAPackage.ENTRY__ACT, null, msgs);
}
if (newAct != null) {
msgs = ((InternalEObject) newAct).eInverseAdd(
this, EOPPOSITE_FEATURE_BASE - CDAPackage.ENTRY__ACT, null, msgs);
}
msgs = basicSetAct(newAct, msgs);
if (msgs != null) {
msgs.dispatch();
}
} else if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, CDAPackage.ENTRY__ACT, newAct, newAct));
}
}
/**
*
*
* @generated
*/
public Encounter getEncounter() {
return encounter;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetEncounter(Encounter newEncounter, NotificationChain msgs) {
Encounter oldEncounter = encounter;
encounter = newEncounter;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(
this, Notification.SET, CDAPackage.ENTRY__ENCOUNTER, oldEncounter, newEncounter);
if (msgs == null) {
msgs = notification;
} else {
msgs.add(notification);
}
}
return msgs;
}
/**
*
*
* @generated
*/
public void setEncounter(Encounter newEncounter) {
if (newEncounter != encounter) {
NotificationChain msgs = null;
if (encounter != null) {
msgs = ((InternalEObject) encounter).eInverseRemove(this, EOPPOSITE_FEATURE_BASE -
CDAPackage.ENTRY__ENCOUNTER, null, msgs);
}
if (newEncounter != null) {
msgs = ((InternalEObject) newEncounter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
CDAPackage.ENTRY__ENCOUNTER, null, msgs);
}
msgs = basicSetEncounter(newEncounter, msgs);
if (msgs != null) {
msgs.dispatch();
}
} else if (eNotificationRequired()) {
eNotify(new ENotificationImpl(
this, Notification.SET, CDAPackage.ENTRY__ENCOUNTER, newEncounter, newEncounter));
}
}
/**
*
*
* @generated
*/
public Observation getObservation() {
return observation;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetObservation(Observation newObservation, NotificationChain msgs) {
Observation oldObservation = observation;
observation = newObservation;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(
this, Notification.SET, CDAPackage.ENTRY__OBSERVATION, oldObservation, newObservation);
if (msgs == null) {
msgs = notification;
} else {
msgs.add(notification);
}
}
return msgs;
}
/**
*
*
* @generated
*/
public void setObservation(Observation newObservation) {
if (newObservation != observation) {
NotificationChain msgs = null;
if (observation != null) {
msgs = ((InternalEObject) observation).eInverseRemove(this, EOPPOSITE_FEATURE_BASE -
CDAPackage.ENTRY__OBSERVATION, null, msgs);
}
if (newObservation != null) {
msgs = ((InternalEObject) newObservation).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
CDAPackage.ENTRY__OBSERVATION, null, msgs);
}
msgs = basicSetObservation(newObservation, msgs);
if (msgs != null) {
msgs.dispatch();
}
} else if (eNotificationRequired()) {
eNotify(new ENotificationImpl(
this, Notification.SET, CDAPackage.ENTRY__OBSERVATION, newObservation, newObservation));
}
}
/**
*
*
* @generated
*/
public ObservationMedia getObservationMedia() {
return observationMedia;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetObservationMedia(ObservationMedia newObservationMedia, NotificationChain msgs) {
ObservationMedia oldObservationMedia = observationMedia;
observationMedia = newObservationMedia;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(
this, Notification.SET, CDAPackage.ENTRY__OBSERVATION_MEDIA, oldObservationMedia, newObservationMedia);
if (msgs == null) {
msgs = notification;
} else {
msgs.add(notification);
}
}
return msgs;
}
/**
*
*
* @generated
*/
public void setObservationMedia(ObservationMedia newObservationMedia) {
if (newObservationMedia != observationMedia) {
NotificationChain msgs = null;
if (observationMedia != null) {
msgs = ((InternalEObject) observationMedia).eInverseRemove(this, EOPPOSITE_FEATURE_BASE -
CDAPackage.ENTRY__OBSERVATION_MEDIA, null, msgs);
}
if (newObservationMedia != null) {
msgs = ((InternalEObject) newObservationMedia).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
CDAPackage.ENTRY__OBSERVATION_MEDIA, null, msgs);
}
msgs = basicSetObservationMedia(newObservationMedia, msgs);
if (msgs != null) {
msgs.dispatch();
}
} else if (eNotificationRequired()) {
eNotify(new ENotificationImpl(
this, Notification.SET, CDAPackage.ENTRY__OBSERVATION_MEDIA, newObservationMedia, newObservationMedia));
}
}
/**
*
*
* @generated
*/
public Organizer getOrganizer() {
return organizer;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetOrganizer(Organizer newOrganizer, NotificationChain msgs) {
Organizer oldOrganizer = organizer;
organizer = newOrganizer;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(
this, Notification.SET, CDAPackage.ENTRY__ORGANIZER, oldOrganizer, newOrganizer);
if (msgs == null) {
msgs = notification;
} else {
msgs.add(notification);
}
}
return msgs;
}
/**
*
*
* @generated
*/
public void setOrganizer(Organizer newOrganizer) {
if (newOrganizer != organizer) {
NotificationChain msgs = null;
if (organizer != null) {
msgs = ((InternalEObject) organizer).eInverseRemove(this, EOPPOSITE_FEATURE_BASE -
CDAPackage.ENTRY__ORGANIZER, null, msgs);
}
if (newOrganizer != null) {
msgs = ((InternalEObject) newOrganizer).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
CDAPackage.ENTRY__ORGANIZER, null, msgs);
}
msgs = basicSetOrganizer(newOrganizer, msgs);
if (msgs != null) {
msgs.dispatch();
}
} else if (eNotificationRequired()) {
eNotify(new ENotificationImpl(
this, Notification.SET, CDAPackage.ENTRY__ORGANIZER, newOrganizer, newOrganizer));
}
}
/**
*
*
* @generated
*/
public Procedure getProcedure() {
return procedure;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetProcedure(Procedure newProcedure, NotificationChain msgs) {
Procedure oldProcedure = procedure;
procedure = newProcedure;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(
this, Notification.SET, CDAPackage.ENTRY__PROCEDURE, oldProcedure, newProcedure);
if (msgs == null) {
msgs = notification;
} else {
msgs.add(notification);
}
}
return msgs;
}
/**
*
*
* @generated
*/
public void setProcedure(Procedure newProcedure) {
if (newProcedure != procedure) {
NotificationChain msgs = null;
if (procedure != null) {
msgs = ((InternalEObject) procedure).eInverseRemove(this, EOPPOSITE_FEATURE_BASE -
CDAPackage.ENTRY__PROCEDURE, null, msgs);
}
if (newProcedure != null) {
msgs = ((InternalEObject) newProcedure).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
CDAPackage.ENTRY__PROCEDURE, null, msgs);
}
msgs = basicSetProcedure(newProcedure, msgs);
if (msgs != null) {
msgs.dispatch();
}
} else if (eNotificationRequired()) {
eNotify(new ENotificationImpl(
this, Notification.SET, CDAPackage.ENTRY__PROCEDURE, newProcedure, newProcedure));
}
}
/**
*
*
* @generated
*/
public RegionOfInterest getRegionOfInterest() {
return regionOfInterest;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetRegionOfInterest(RegionOfInterest newRegionOfInterest, NotificationChain msgs) {
RegionOfInterest oldRegionOfInterest = regionOfInterest;
regionOfInterest = newRegionOfInterest;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(
this, Notification.SET, CDAPackage.ENTRY__REGION_OF_INTEREST, oldRegionOfInterest, newRegionOfInterest);
if (msgs == null) {
msgs = notification;
} else {
msgs.add(notification);
}
}
return msgs;
}
/**
*
*
* @generated
*/
public void setRegionOfInterest(RegionOfInterest newRegionOfInterest) {
if (newRegionOfInterest != regionOfInterest) {
NotificationChain msgs = null;
if (regionOfInterest != null) {
msgs = ((InternalEObject) regionOfInterest).eInverseRemove(this, EOPPOSITE_FEATURE_BASE -
CDAPackage.ENTRY__REGION_OF_INTEREST, null, msgs);
}
if (newRegionOfInterest != null) {
msgs = ((InternalEObject) newRegionOfInterest).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
CDAPackage.ENTRY__REGION_OF_INTEREST, null, msgs);
}
msgs = basicSetRegionOfInterest(newRegionOfInterest, msgs);
if (msgs != null) {
msgs.dispatch();
}
} else if (eNotificationRequired()) {
eNotify(new ENotificationImpl(
this, Notification.SET, CDAPackage.ENTRY__REGION_OF_INTEREST, newRegionOfInterest, newRegionOfInterest));
}
}
/**
*
*
* @generated
*/
public SubstanceAdministration getSubstanceAdministration() {
return substanceAdministration;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetSubstanceAdministration(SubstanceAdministration newSubstanceAdministration,
NotificationChain msgs) {
SubstanceAdministration oldSubstanceAdministration = substanceAdministration;
substanceAdministration = newSubstanceAdministration;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(
this, Notification.SET, CDAPackage.ENTRY__SUBSTANCE_ADMINISTRATION, oldSubstanceAdministration,
newSubstanceAdministration);
if (msgs == null) {
msgs = notification;
} else {
msgs.add(notification);
}
}
return msgs;
}
/**
*
*
* @generated
*/
public void setSubstanceAdministration(SubstanceAdministration newSubstanceAdministration) {
if (newSubstanceAdministration != substanceAdministration) {
NotificationChain msgs = null;
if (substanceAdministration != null) {
msgs = ((InternalEObject) substanceAdministration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE -
CDAPackage.ENTRY__SUBSTANCE_ADMINISTRATION, null, msgs);
}
if (newSubstanceAdministration != null) {
msgs = ((InternalEObject) newSubstanceAdministration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
CDAPackage.ENTRY__SUBSTANCE_ADMINISTRATION, null, msgs);
}
msgs = basicSetSubstanceAdministration(newSubstanceAdministration, msgs);
if (msgs != null) {
msgs.dispatch();
}
} else if (eNotificationRequired()) {
eNotify(new ENotificationImpl(
this, Notification.SET, CDAPackage.ENTRY__SUBSTANCE_ADMINISTRATION, newSubstanceAdministration,
newSubstanceAdministration));
}
}
/**
*
*
* @generated
*/
public Supply getSupply() {
return supply;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetSupply(Supply newSupply, NotificationChain msgs) {
Supply oldSupply = supply;
supply = newSupply;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(
this, Notification.SET, CDAPackage.ENTRY__SUPPLY, oldSupply, newSupply);
if (msgs == null) {
msgs = notification;
} else {
msgs.add(notification);
}
}
return msgs;
}
/**
*
*
* @generated
*/
public void setSupply(Supply newSupply) {
if (newSupply != supply) {
NotificationChain msgs = null;
if (supply != null) {
msgs = ((InternalEObject) supply).eInverseRemove(this, EOPPOSITE_FEATURE_BASE -
CDAPackage.ENTRY__SUPPLY, null, msgs);
}
if (newSupply != null) {
msgs = ((InternalEObject) newSupply).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
CDAPackage.ENTRY__SUPPLY, null, msgs);
}
msgs = basicSetSupply(newSupply, msgs);
if (msgs != null) {
msgs.dispatch();
}
} else if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, CDAPackage.ENTRY__SUPPLY, newSupply, newSupply));
}
}
/**
*
*
* @generated
*/
@Override
public NullFlavor getNullFlavor() {
return nullFlavor;
}
/**
*
*
* @generated
*/
public void setNullFlavor(NullFlavor newNullFlavor) {
NullFlavor oldNullFlavor = nullFlavor;
nullFlavor = newNullFlavor == null
? NULL_FLAVOR_EDEFAULT
: newNullFlavor;
boolean oldNullFlavorESet = nullFlavorESet;
nullFlavorESet = true;
if (eNotificationRequired()) {
eNotify(new ENotificationImpl(
this, Notification.SET, CDAPackage.ENTRY__NULL_FLAVOR, oldNullFlavor, nullFlavor, !oldNullFlavorESet));
}
}
/**
*
*
* @generated
*/
public void unsetNullFlavor() {
NullFlavor oldNullFlavor = nullFlavor;
boolean oldNullFlavorESet = nullFlavorESet;
nullFlavor = NULL_FLAVOR_EDEFAULT;
nullFlavorESet = false;
if (eNotificationRequired()) {
eNotify(new ENotificationImpl(
this, Notification.UNSET, CDAPackage.ENTRY__NULL_FLAVOR, oldNullFlavor, NULL_FLAVOR_EDEFAULT,
oldNullFlavorESet));
}
}
/**
*
*
* @generated
*/
public boolean isSetNullFlavor() {
return nullFlavorESet;
}
/**
*
*
* @generated
*/
@Override
public x_ActRelationshipEntry getTypeCode() {
return typeCode;
}
/**
*
*
* @generated
*/
public void setTypeCode(x_ActRelationshipEntry newTypeCode) {
x_ActRelationshipEntry oldTypeCode = typeCode;
typeCode = newTypeCode == null
? TYPE_CODE_EDEFAULT
: newTypeCode;
boolean oldTypeCodeESet = typeCodeESet;
typeCodeESet = true;
if (eNotificationRequired()) {
eNotify(new ENotificationImpl(
this, Notification.SET, CDAPackage.ENTRY__TYPE_CODE, oldTypeCode, typeCode, !oldTypeCodeESet));
}
}
/**
*
*
* @generated
*/
public void unsetTypeCode() {
x_ActRelationshipEntry oldTypeCode = typeCode;
boolean oldTypeCodeESet = typeCodeESet;
typeCode = TYPE_CODE_EDEFAULT;
typeCodeESet = false;
if (eNotificationRequired()) {
eNotify(new ENotificationImpl(
this, Notification.UNSET, CDAPackage.ENTRY__TYPE_CODE, oldTypeCode, TYPE_CODE_EDEFAULT, oldTypeCodeESet));
}
}
/**
*
*
* @generated
*/
public boolean isSetTypeCode() {
return typeCodeESet;
}
/**
*
*
* @generated
*/
public Boolean getContextConductionInd() {
return contextConductionInd;
}
/**
*
*
* @generated
*/
public void setContextConductionInd(Boolean newContextConductionInd) {
Boolean oldContextConductionInd = contextConductionInd;
contextConductionInd = newContextConductionInd;
boolean oldContextConductionIndESet = contextConductionIndESet;
contextConductionIndESet = true;
if (eNotificationRequired()) {
eNotify(new ENotificationImpl(
this, Notification.SET, CDAPackage.ENTRY__CONTEXT_CONDUCTION_IND, oldContextConductionInd,
contextConductionInd, !oldContextConductionIndESet));
}
}
/**
*
*
* @generated
*/
public void unsetContextConductionInd() {
Boolean oldContextConductionInd = contextConductionInd;
boolean oldContextConductionIndESet = contextConductionIndESet;
contextConductionInd = CONTEXT_CONDUCTION_IND_EDEFAULT;
contextConductionIndESet = false;
if (eNotificationRequired()) {
eNotify(new ENotificationImpl(
this, Notification.UNSET, CDAPackage.ENTRY__CONTEXT_CONDUCTION_IND, oldContextConductionInd,
CONTEXT_CONDUCTION_IND_EDEFAULT, oldContextConductionIndESet));
}
}
/**
*
*
* @generated
*/
public boolean isSetContextConductionInd() {
return contextConductionIndESet;
}
/**
*
*
* @generated
*/
public boolean validateClinicalStatement(DiagnosticChain diagnostics, Map