| /** |
| */ |
| 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.Canonical; |
| import org.hl7.fhir.CodeableConcept; |
| import org.hl7.fhir.DateTime; |
| import org.hl7.fhir.Dosage; |
| import org.hl7.fhir.FhirPackage; |
| import org.hl7.fhir.Identifier; |
| import org.hl7.fhir.MedicationRequest; |
| import org.hl7.fhir.MedicationRequestDispenseRequest; |
| import org.hl7.fhir.MedicationRequestIntent; |
| import org.hl7.fhir.MedicationRequestSubstitution; |
| import org.hl7.fhir.MedicationrequestStatus; |
| import org.hl7.fhir.Reference; |
| import org.hl7.fhir.RequestPriority; |
| import org.hl7.fhir.Uri; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Medication Request</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * </p> |
| * <ul> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getIdentifier <em>Identifier</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getStatus <em>Status</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getStatusReason <em>Status Reason</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getIntent <em>Intent</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getCategory <em>Category</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getPriority <em>Priority</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getDoNotPerform <em>Do Not Perform</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getReportedBoolean <em>Reported Boolean</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getReportedReference <em>Reported Reference</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getMedicationCodeableConcept <em>Medication Codeable Concept</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getMedicationReference <em>Medication Reference</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getSubject <em>Subject</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getEncounter <em>Encounter</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getSupportingInformation <em>Supporting Information</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getAuthoredOn <em>Authored On</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getRequester <em>Requester</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getPerformer <em>Performer</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getPerformerType <em>Performer Type</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getRecorder <em>Recorder</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getReasonCode <em>Reason Code</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getReasonReference <em>Reason Reference</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getInstantiatesCanonical <em>Instantiates Canonical</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getInstantiatesUri <em>Instantiates Uri</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getBasedOn <em>Based On</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getGroupIdentifier <em>Group Identifier</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getCourseOfTherapyType <em>Course Of Therapy Type</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getInsurance <em>Insurance</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getNote <em>Note</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getDosageInstruction <em>Dosage Instruction</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getDispenseRequest <em>Dispense Request</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getSubstitution <em>Substitution</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getPriorPrescription <em>Prior Prescription</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getDetectedIssue <em>Detected Issue</em>}</li> |
| * <li>{@link org.hl7.fhir.impl.MedicationRequestImpl#getEventHistory <em>Event History</em>}</li> |
| * </ul> |
| * |
| * @generated |
| */ |
| public class MedicationRequestImpl extends DomainResourceImpl implements MedicationRequest { |
| /** |
| * 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 MedicationrequestStatus status; |
| |
| /** |
| * The cached value of the '{@link #getStatusReason() <em>Status Reason</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getStatusReason() |
| * @generated |
| * @ordered |
| */ |
| protected CodeableConcept statusReason; |
| |
| /** |
| * The cached value of the '{@link #getIntent() <em>Intent</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getIntent() |
| * @generated |
| * @ordered |
| */ |
| protected MedicationRequestIntent intent; |
| |
| /** |
| * 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 #getPriority() <em>Priority</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPriority() |
| * @generated |
| * @ordered |
| */ |
| protected RequestPriority priority; |
| |
| /** |
| * The cached value of the '{@link #getDoNotPerform() <em>Do Not Perform</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDoNotPerform() |
| * @generated |
| * @ordered |
| */ |
| protected org.hl7.fhir.Boolean doNotPerform; |
| |
| /** |
| * The cached value of the '{@link #getReportedBoolean() <em>Reported Boolean</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getReportedBoolean() |
| * @generated |
| * @ordered |
| */ |
| protected org.hl7.fhir.Boolean reportedBoolean; |
| |
| /** |
| * The cached value of the '{@link #getReportedReference() <em>Reported Reference</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getReportedReference() |
| * @generated |
| * @ordered |
| */ |
| protected Reference reportedReference; |
| |
| /** |
| * The cached value of the '{@link #getMedicationCodeableConcept() <em>Medication Codeable Concept</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMedicationCodeableConcept() |
| * @generated |
| * @ordered |
| */ |
| protected CodeableConcept medicationCodeableConcept; |
| |
| /** |
| * The cached value of the '{@link #getMedicationReference() <em>Medication Reference</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMedicationReference() |
| * @generated |
| * @ordered |
| */ |
| protected Reference medicationReference; |
| |
| /** |
| * 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 #getSupportingInformation() <em>Supporting Information</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSupportingInformation() |
| * @generated |
| * @ordered |
| */ |
| protected EList<Reference> supportingInformation; |
| |
| /** |
| * The cached value of the '{@link #getAuthoredOn() <em>Authored On</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getAuthoredOn() |
| * @generated |
| * @ordered |
| */ |
| protected DateTime authoredOn; |
| |
| /** |
| * The cached value of the '{@link #getRequester() <em>Requester</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getRequester() |
| * @generated |
| * @ordered |
| */ |
| protected Reference requester; |
| |
| /** |
| * The cached value of the '{@link #getPerformer() <em>Performer</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPerformer() |
| * @generated |
| * @ordered |
| */ |
| protected Reference performer; |
| |
| /** |
| * The cached value of the '{@link #getPerformerType() <em>Performer Type</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPerformerType() |
| * @generated |
| * @ordered |
| */ |
| protected CodeableConcept performerType; |
| |
| /** |
| * The cached value of the '{@link #getRecorder() <em>Recorder</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getRecorder() |
| * @generated |
| * @ordered |
| */ |
| protected Reference recorder; |
| |
| /** |
| * 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 #getInstantiatesCanonical() <em>Instantiates Canonical</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getInstantiatesCanonical() |
| * @generated |
| * @ordered |
| */ |
| protected EList<Canonical> instantiatesCanonical; |
| |
| /** |
| * The cached value of the '{@link #getInstantiatesUri() <em>Instantiates Uri</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getInstantiatesUri() |
| * @generated |
| * @ordered |
| */ |
| protected EList<Uri> instantiatesUri; |
| |
| /** |
| * The cached value of the '{@link #getBasedOn() <em>Based On</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getBasedOn() |
| * @generated |
| * @ordered |
| */ |
| protected EList<Reference> basedOn; |
| |
| /** |
| * The cached value of the '{@link #getGroupIdentifier() <em>Group Identifier</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getGroupIdentifier() |
| * @generated |
| * @ordered |
| */ |
| protected Identifier groupIdentifier; |
| |
| /** |
| * The cached value of the '{@link #getCourseOfTherapyType() <em>Course Of Therapy Type</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getCourseOfTherapyType() |
| * @generated |
| * @ordered |
| */ |
| protected CodeableConcept courseOfTherapyType; |
| |
| /** |
| * The cached value of the '{@link #getInsurance() <em>Insurance</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getInsurance() |
| * @generated |
| * @ordered |
| */ |
| protected EList<Reference> insurance; |
| |
| /** |
| * 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; |
| |
| /** |
| * The cached value of the '{@link #getDosageInstruction() <em>Dosage Instruction</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDosageInstruction() |
| * @generated |
| * @ordered |
| */ |
| protected EList<Dosage> dosageInstruction; |
| |
| /** |
| * The cached value of the '{@link #getDispenseRequest() <em>Dispense Request</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDispenseRequest() |
| * @generated |
| * @ordered |
| */ |
| protected MedicationRequestDispenseRequest dispenseRequest; |
| |
| /** |
| * The cached value of the '{@link #getSubstitution() <em>Substitution</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSubstitution() |
| * @generated |
| * @ordered |
| */ |
| protected MedicationRequestSubstitution substitution; |
| |
| /** |
| * The cached value of the '{@link #getPriorPrescription() <em>Prior Prescription</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPriorPrescription() |
| * @generated |
| * @ordered |
| */ |
| protected Reference priorPrescription; |
| |
| /** |
| * The cached value of the '{@link #getDetectedIssue() <em>Detected Issue</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDetectedIssue() |
| * @generated |
| * @ordered |
| */ |
| protected EList<Reference> detectedIssue; |
| |
| /** |
| * The cached value of the '{@link #getEventHistory() <em>Event History</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getEventHistory() |
| * @generated |
| * @ordered |
| */ |
| protected EList<Reference> eventHistory; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected MedicationRequestImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return FhirPackage.eINSTANCE.getMedicationRequest(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<Identifier> getIdentifier() { |
| if (identifier == null) { |
| identifier = new EObjectContainmentEList<Identifier>(Identifier.class, this, FhirPackage.MEDICATION_REQUEST__IDENTIFIER); |
| } |
| return identifier; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public MedicationrequestStatus getStatus() { |
| return status; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetStatus(MedicationrequestStatus newStatus, NotificationChain msgs) { |
| MedicationrequestStatus oldStatus = status; |
| status = newStatus; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__STATUS, oldStatus, newStatus); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setStatus(MedicationrequestStatus newStatus) { |
| if (newStatus != status) { |
| NotificationChain msgs = null; |
| if (status != null) |
| msgs = ((InternalEObject)status).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__STATUS, null, msgs); |
| if (newStatus != null) |
| msgs = ((InternalEObject)newStatus).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__STATUS, null, msgs); |
| msgs = basicSetStatus(newStatus, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__STATUS, newStatus, newStatus)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public CodeableConcept getStatusReason() { |
| return statusReason; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetStatusReason(CodeableConcept newStatusReason, NotificationChain msgs) { |
| CodeableConcept oldStatusReason = statusReason; |
| statusReason = newStatusReason; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__STATUS_REASON, oldStatusReason, newStatusReason); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setStatusReason(CodeableConcept newStatusReason) { |
| if (newStatusReason != statusReason) { |
| NotificationChain msgs = null; |
| if (statusReason != null) |
| msgs = ((InternalEObject)statusReason).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__STATUS_REASON, null, msgs); |
| if (newStatusReason != null) |
| msgs = ((InternalEObject)newStatusReason).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__STATUS_REASON, null, msgs); |
| msgs = basicSetStatusReason(newStatusReason, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__STATUS_REASON, newStatusReason, newStatusReason)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public MedicationRequestIntent getIntent() { |
| return intent; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetIntent(MedicationRequestIntent newIntent, NotificationChain msgs) { |
| MedicationRequestIntent oldIntent = intent; |
| intent = newIntent; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__INTENT, oldIntent, newIntent); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setIntent(MedicationRequestIntent newIntent) { |
| if (newIntent != intent) { |
| NotificationChain msgs = null; |
| if (intent != null) |
| msgs = ((InternalEObject)intent).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__INTENT, null, msgs); |
| if (newIntent != null) |
| msgs = ((InternalEObject)newIntent).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__INTENT, null, msgs); |
| msgs = basicSetIntent(newIntent, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__INTENT, newIntent, newIntent)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<CodeableConcept> getCategory() { |
| if (category == null) { |
| category = new EObjectContainmentEList<CodeableConcept>(CodeableConcept.class, this, FhirPackage.MEDICATION_REQUEST__CATEGORY); |
| } |
| return category; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public RequestPriority getPriority() { |
| return priority; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetPriority(RequestPriority newPriority, NotificationChain msgs) { |
| RequestPriority oldPriority = priority; |
| priority = newPriority; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__PRIORITY, oldPriority, newPriority); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPriority(RequestPriority newPriority) { |
| if (newPriority != priority) { |
| NotificationChain msgs = null; |
| if (priority != null) |
| msgs = ((InternalEObject)priority).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__PRIORITY, null, msgs); |
| if (newPriority != null) |
| msgs = ((InternalEObject)newPriority).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__PRIORITY, null, msgs); |
| msgs = basicSetPriority(newPriority, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__PRIORITY, newPriority, newPriority)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public org.hl7.fhir.Boolean getDoNotPerform() { |
| return doNotPerform; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetDoNotPerform(org.hl7.fhir.Boolean newDoNotPerform, NotificationChain msgs) { |
| org.hl7.fhir.Boolean oldDoNotPerform = doNotPerform; |
| doNotPerform = newDoNotPerform; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__DO_NOT_PERFORM, oldDoNotPerform, newDoNotPerform); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setDoNotPerform(org.hl7.fhir.Boolean newDoNotPerform) { |
| if (newDoNotPerform != doNotPerform) { |
| NotificationChain msgs = null; |
| if (doNotPerform != null) |
| msgs = ((InternalEObject)doNotPerform).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__DO_NOT_PERFORM, null, msgs); |
| if (newDoNotPerform != null) |
| msgs = ((InternalEObject)newDoNotPerform).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__DO_NOT_PERFORM, null, msgs); |
| msgs = basicSetDoNotPerform(newDoNotPerform, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__DO_NOT_PERFORM, newDoNotPerform, newDoNotPerform)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public org.hl7.fhir.Boolean getReportedBoolean() { |
| return reportedBoolean; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetReportedBoolean(org.hl7.fhir.Boolean newReportedBoolean, NotificationChain msgs) { |
| org.hl7.fhir.Boolean oldReportedBoolean = reportedBoolean; |
| reportedBoolean = newReportedBoolean; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__REPORTED_BOOLEAN, oldReportedBoolean, newReportedBoolean); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setReportedBoolean(org.hl7.fhir.Boolean newReportedBoolean) { |
| if (newReportedBoolean != reportedBoolean) { |
| NotificationChain msgs = null; |
| if (reportedBoolean != null) |
| msgs = ((InternalEObject)reportedBoolean).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__REPORTED_BOOLEAN, null, msgs); |
| if (newReportedBoolean != null) |
| msgs = ((InternalEObject)newReportedBoolean).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__REPORTED_BOOLEAN, null, msgs); |
| msgs = basicSetReportedBoolean(newReportedBoolean, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__REPORTED_BOOLEAN, newReportedBoolean, newReportedBoolean)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Reference getReportedReference() { |
| return reportedReference; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetReportedReference(Reference newReportedReference, NotificationChain msgs) { |
| Reference oldReportedReference = reportedReference; |
| reportedReference = newReportedReference; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__REPORTED_REFERENCE, oldReportedReference, newReportedReference); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setReportedReference(Reference newReportedReference) { |
| if (newReportedReference != reportedReference) { |
| NotificationChain msgs = null; |
| if (reportedReference != null) |
| msgs = ((InternalEObject)reportedReference).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__REPORTED_REFERENCE, null, msgs); |
| if (newReportedReference != null) |
| msgs = ((InternalEObject)newReportedReference).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__REPORTED_REFERENCE, null, msgs); |
| msgs = basicSetReportedReference(newReportedReference, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__REPORTED_REFERENCE, newReportedReference, newReportedReference)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public CodeableConcept getMedicationCodeableConcept() { |
| return medicationCodeableConcept; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetMedicationCodeableConcept(CodeableConcept newMedicationCodeableConcept, NotificationChain msgs) { |
| CodeableConcept oldMedicationCodeableConcept = medicationCodeableConcept; |
| medicationCodeableConcept = newMedicationCodeableConcept; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__MEDICATION_CODEABLE_CONCEPT, oldMedicationCodeableConcept, newMedicationCodeableConcept); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setMedicationCodeableConcept(CodeableConcept newMedicationCodeableConcept) { |
| if (newMedicationCodeableConcept != medicationCodeableConcept) { |
| NotificationChain msgs = null; |
| if (medicationCodeableConcept != null) |
| msgs = ((InternalEObject)medicationCodeableConcept).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__MEDICATION_CODEABLE_CONCEPT, null, msgs); |
| if (newMedicationCodeableConcept != null) |
| msgs = ((InternalEObject)newMedicationCodeableConcept).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__MEDICATION_CODEABLE_CONCEPT, null, msgs); |
| msgs = basicSetMedicationCodeableConcept(newMedicationCodeableConcept, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__MEDICATION_CODEABLE_CONCEPT, newMedicationCodeableConcept, newMedicationCodeableConcept)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Reference getMedicationReference() { |
| return medicationReference; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetMedicationReference(Reference newMedicationReference, NotificationChain msgs) { |
| Reference oldMedicationReference = medicationReference; |
| medicationReference = newMedicationReference; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__MEDICATION_REFERENCE, oldMedicationReference, newMedicationReference); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setMedicationReference(Reference newMedicationReference) { |
| if (newMedicationReference != medicationReference) { |
| NotificationChain msgs = null; |
| if (medicationReference != null) |
| msgs = ((InternalEObject)medicationReference).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__MEDICATION_REFERENCE, null, msgs); |
| if (newMedicationReference != null) |
| msgs = ((InternalEObject)newMedicationReference).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__MEDICATION_REFERENCE, null, msgs); |
| msgs = basicSetMedicationReference(newMedicationReference, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__MEDICATION_REFERENCE, newMedicationReference, newMedicationReference)); |
| } |
| |
| /** |
| * <!-- 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.MEDICATION_REQUEST__SUBJECT, oldSubject, newSubject); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setSubject(Reference newSubject) { |
| if (newSubject != subject) { |
| NotificationChain msgs = null; |
| if (subject != null) |
| msgs = ((InternalEObject)subject).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__SUBJECT, null, msgs); |
| if (newSubject != null) |
| msgs = ((InternalEObject)newSubject).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__SUBJECT, null, msgs); |
| msgs = basicSetSubject(newSubject, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__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.MEDICATION_REQUEST__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.MEDICATION_REQUEST__ENCOUNTER, null, msgs); |
| if (newEncounter != null) |
| msgs = ((InternalEObject)newEncounter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__ENCOUNTER, null, msgs); |
| msgs = basicSetEncounter(newEncounter, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__ENCOUNTER, newEncounter, newEncounter)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<Reference> getSupportingInformation() { |
| if (supportingInformation == null) { |
| supportingInformation = new EObjectContainmentEList<Reference>(Reference.class, this, FhirPackage.MEDICATION_REQUEST__SUPPORTING_INFORMATION); |
| } |
| return supportingInformation; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public DateTime getAuthoredOn() { |
| return authoredOn; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetAuthoredOn(DateTime newAuthoredOn, NotificationChain msgs) { |
| DateTime oldAuthoredOn = authoredOn; |
| authoredOn = newAuthoredOn; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__AUTHORED_ON, oldAuthoredOn, newAuthoredOn); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setAuthoredOn(DateTime newAuthoredOn) { |
| if (newAuthoredOn != authoredOn) { |
| NotificationChain msgs = null; |
| if (authoredOn != null) |
| msgs = ((InternalEObject)authoredOn).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__AUTHORED_ON, null, msgs); |
| if (newAuthoredOn != null) |
| msgs = ((InternalEObject)newAuthoredOn).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__AUTHORED_ON, null, msgs); |
| msgs = basicSetAuthoredOn(newAuthoredOn, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__AUTHORED_ON, newAuthoredOn, newAuthoredOn)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Reference getRequester() { |
| return requester; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetRequester(Reference newRequester, NotificationChain msgs) { |
| Reference oldRequester = requester; |
| requester = newRequester; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__REQUESTER, oldRequester, newRequester); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setRequester(Reference newRequester) { |
| if (newRequester != requester) { |
| NotificationChain msgs = null; |
| if (requester != null) |
| msgs = ((InternalEObject)requester).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__REQUESTER, null, msgs); |
| if (newRequester != null) |
| msgs = ((InternalEObject)newRequester).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__REQUESTER, null, msgs); |
| msgs = basicSetRequester(newRequester, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__REQUESTER, newRequester, newRequester)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Reference getPerformer() { |
| return performer; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetPerformer(Reference newPerformer, NotificationChain msgs) { |
| Reference oldPerformer = performer; |
| performer = newPerformer; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__PERFORMER, oldPerformer, newPerformer); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPerformer(Reference newPerformer) { |
| if (newPerformer != performer) { |
| NotificationChain msgs = null; |
| if (performer != null) |
| msgs = ((InternalEObject)performer).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__PERFORMER, null, msgs); |
| if (newPerformer != null) |
| msgs = ((InternalEObject)newPerformer).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__PERFORMER, null, msgs); |
| msgs = basicSetPerformer(newPerformer, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__PERFORMER, newPerformer, newPerformer)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public CodeableConcept getPerformerType() { |
| return performerType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetPerformerType(CodeableConcept newPerformerType, NotificationChain msgs) { |
| CodeableConcept oldPerformerType = performerType; |
| performerType = newPerformerType; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__PERFORMER_TYPE, oldPerformerType, newPerformerType); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPerformerType(CodeableConcept newPerformerType) { |
| if (newPerformerType != performerType) { |
| NotificationChain msgs = null; |
| if (performerType != null) |
| msgs = ((InternalEObject)performerType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__PERFORMER_TYPE, null, msgs); |
| if (newPerformerType != null) |
| msgs = ((InternalEObject)newPerformerType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__PERFORMER_TYPE, null, msgs); |
| msgs = basicSetPerformerType(newPerformerType, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__PERFORMER_TYPE, newPerformerType, newPerformerType)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Reference getRecorder() { |
| return recorder; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetRecorder(Reference newRecorder, NotificationChain msgs) { |
| Reference oldRecorder = recorder; |
| recorder = newRecorder; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__RECORDER, oldRecorder, newRecorder); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setRecorder(Reference newRecorder) { |
| if (newRecorder != recorder) { |
| NotificationChain msgs = null; |
| if (recorder != null) |
| msgs = ((InternalEObject)recorder).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__RECORDER, null, msgs); |
| if (newRecorder != null) |
| msgs = ((InternalEObject)newRecorder).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__RECORDER, null, msgs); |
| msgs = basicSetRecorder(newRecorder, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__RECORDER, newRecorder, newRecorder)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<CodeableConcept> getReasonCode() { |
| if (reasonCode == null) { |
| reasonCode = new EObjectContainmentEList<CodeableConcept>(CodeableConcept.class, this, FhirPackage.MEDICATION_REQUEST__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.MEDICATION_REQUEST__REASON_REFERENCE); |
| } |
| return reasonReference; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<Canonical> getInstantiatesCanonical() { |
| if (instantiatesCanonical == null) { |
| instantiatesCanonical = new EObjectContainmentEList<Canonical>(Canonical.class, this, FhirPackage.MEDICATION_REQUEST__INSTANTIATES_CANONICAL); |
| } |
| return instantiatesCanonical; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<Uri> getInstantiatesUri() { |
| if (instantiatesUri == null) { |
| instantiatesUri = new EObjectContainmentEList<Uri>(Uri.class, this, FhirPackage.MEDICATION_REQUEST__INSTANTIATES_URI); |
| } |
| return instantiatesUri; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<Reference> getBasedOn() { |
| if (basedOn == null) { |
| basedOn = new EObjectContainmentEList<Reference>(Reference.class, this, FhirPackage.MEDICATION_REQUEST__BASED_ON); |
| } |
| return basedOn; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Identifier getGroupIdentifier() { |
| return groupIdentifier; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetGroupIdentifier(Identifier newGroupIdentifier, NotificationChain msgs) { |
| Identifier oldGroupIdentifier = groupIdentifier; |
| groupIdentifier = newGroupIdentifier; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__GROUP_IDENTIFIER, oldGroupIdentifier, newGroupIdentifier); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setGroupIdentifier(Identifier newGroupIdentifier) { |
| if (newGroupIdentifier != groupIdentifier) { |
| NotificationChain msgs = null; |
| if (groupIdentifier != null) |
| msgs = ((InternalEObject)groupIdentifier).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__GROUP_IDENTIFIER, null, msgs); |
| if (newGroupIdentifier != null) |
| msgs = ((InternalEObject)newGroupIdentifier).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__GROUP_IDENTIFIER, null, msgs); |
| msgs = basicSetGroupIdentifier(newGroupIdentifier, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__GROUP_IDENTIFIER, newGroupIdentifier, newGroupIdentifier)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public CodeableConcept getCourseOfTherapyType() { |
| return courseOfTherapyType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetCourseOfTherapyType(CodeableConcept newCourseOfTherapyType, NotificationChain msgs) { |
| CodeableConcept oldCourseOfTherapyType = courseOfTherapyType; |
| courseOfTherapyType = newCourseOfTherapyType; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__COURSE_OF_THERAPY_TYPE, oldCourseOfTherapyType, newCourseOfTherapyType); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setCourseOfTherapyType(CodeableConcept newCourseOfTherapyType) { |
| if (newCourseOfTherapyType != courseOfTherapyType) { |
| NotificationChain msgs = null; |
| if (courseOfTherapyType != null) |
| msgs = ((InternalEObject)courseOfTherapyType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__COURSE_OF_THERAPY_TYPE, null, msgs); |
| if (newCourseOfTherapyType != null) |
| msgs = ((InternalEObject)newCourseOfTherapyType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__COURSE_OF_THERAPY_TYPE, null, msgs); |
| msgs = basicSetCourseOfTherapyType(newCourseOfTherapyType, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__COURSE_OF_THERAPY_TYPE, newCourseOfTherapyType, newCourseOfTherapyType)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<Reference> getInsurance() { |
| if (insurance == null) { |
| insurance = new EObjectContainmentEList<Reference>(Reference.class, this, FhirPackage.MEDICATION_REQUEST__INSURANCE); |
| } |
| return insurance; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<Annotation> getNote() { |
| if (note == null) { |
| note = new EObjectContainmentEList<Annotation>(Annotation.class, this, FhirPackage.MEDICATION_REQUEST__NOTE); |
| } |
| return note; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<Dosage> getDosageInstruction() { |
| if (dosageInstruction == null) { |
| dosageInstruction = new EObjectContainmentEList<Dosage>(Dosage.class, this, FhirPackage.MEDICATION_REQUEST__DOSAGE_INSTRUCTION); |
| } |
| return dosageInstruction; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public MedicationRequestDispenseRequest getDispenseRequest() { |
| return dispenseRequest; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetDispenseRequest(MedicationRequestDispenseRequest newDispenseRequest, NotificationChain msgs) { |
| MedicationRequestDispenseRequest oldDispenseRequest = dispenseRequest; |
| dispenseRequest = newDispenseRequest; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__DISPENSE_REQUEST, oldDispenseRequest, newDispenseRequest); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setDispenseRequest(MedicationRequestDispenseRequest newDispenseRequest) { |
| if (newDispenseRequest != dispenseRequest) { |
| NotificationChain msgs = null; |
| if (dispenseRequest != null) |
| msgs = ((InternalEObject)dispenseRequest).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__DISPENSE_REQUEST, null, msgs); |
| if (newDispenseRequest != null) |
| msgs = ((InternalEObject)newDispenseRequest).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__DISPENSE_REQUEST, null, msgs); |
| msgs = basicSetDispenseRequest(newDispenseRequest, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__DISPENSE_REQUEST, newDispenseRequest, newDispenseRequest)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public MedicationRequestSubstitution getSubstitution() { |
| return substitution; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetSubstitution(MedicationRequestSubstitution newSubstitution, NotificationChain msgs) { |
| MedicationRequestSubstitution oldSubstitution = substitution; |
| substitution = newSubstitution; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__SUBSTITUTION, oldSubstitution, newSubstitution); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setSubstitution(MedicationRequestSubstitution newSubstitution) { |
| if (newSubstitution != substitution) { |
| NotificationChain msgs = null; |
| if (substitution != null) |
| msgs = ((InternalEObject)substitution).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__SUBSTITUTION, null, msgs); |
| if (newSubstitution != null) |
| msgs = ((InternalEObject)newSubstitution).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__SUBSTITUTION, null, msgs); |
| msgs = basicSetSubstitution(newSubstitution, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__SUBSTITUTION, newSubstitution, newSubstitution)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Reference getPriorPrescription() { |
| return priorPrescription; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetPriorPrescription(Reference newPriorPrescription, NotificationChain msgs) { |
| Reference oldPriorPrescription = priorPrescription; |
| priorPrescription = newPriorPrescription; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__PRIOR_PRESCRIPTION, oldPriorPrescription, newPriorPrescription); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPriorPrescription(Reference newPriorPrescription) { |
| if (newPriorPrescription != priorPrescription) { |
| NotificationChain msgs = null; |
| if (priorPrescription != null) |
| msgs = ((InternalEObject)priorPrescription).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__PRIOR_PRESCRIPTION, null, msgs); |
| if (newPriorPrescription != null) |
| msgs = ((InternalEObject)newPriorPrescription).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.MEDICATION_REQUEST__PRIOR_PRESCRIPTION, null, msgs); |
| msgs = basicSetPriorPrescription(newPriorPrescription, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.MEDICATION_REQUEST__PRIOR_PRESCRIPTION, newPriorPrescription, newPriorPrescription)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<Reference> getDetectedIssue() { |
| if (detectedIssue == null) { |
| detectedIssue = new EObjectContainmentEList<Reference>(Reference.class, this, FhirPackage.MEDICATION_REQUEST__DETECTED_ISSUE); |
| } |
| return detectedIssue; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<Reference> getEventHistory() { |
| if (eventHistory == null) { |
| eventHistory = new EObjectContainmentEList<Reference>(Reference.class, this, FhirPackage.MEDICATION_REQUEST__EVENT_HISTORY); |
| } |
| return eventHistory; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
| switch (featureID) { |
| case FhirPackage.MEDICATION_REQUEST__IDENTIFIER: |
| return ((InternalEList<?>)getIdentifier()).basicRemove(otherEnd, msgs); |
| case FhirPackage.MEDICATION_REQUEST__STATUS: |
| return basicSetStatus(null, msgs); |
| case FhirPackage.MEDICATION_REQUEST__STATUS_REASON: |
| return basicSetStatusReason(null, msgs); |
| case FhirPackage.MEDICATION_REQUEST__INTENT: |
| return basicSetIntent(null, msgs); |
| case FhirPackage.MEDICATION_REQUEST__CATEGORY: |
| return ((InternalEList<?>)getCategory()).basicRemove(otherEnd, msgs); |
| case FhirPackage.MEDICATION_REQUEST__PRIORITY: |
| return basicSetPriority(null, msgs); |
| case FhirPackage.MEDICATION_REQUEST__DO_NOT_PERFORM: |
| return basicSetDoNotPerform(null, msgs); |
| case FhirPackage.MEDICATION_REQUEST__REPORTED_BOOLEAN: |
| return basicSetReportedBoolean(null, msgs); |
| case FhirPackage.MEDICATION_REQUEST__REPORTED_REFERENCE: |
| return basicSetReportedReference(null, msgs); |
| case FhirPackage.MEDICATION_REQUEST__MEDICATION_CODEABLE_CONCEPT: |
| return basicSetMedicationCodeableConcept(null, msgs); |
| case FhirPackage.MEDICATION_REQUEST__MEDICATION_REFERENCE: |
| return basicSetMedicationReference(null, msgs); |
| case FhirPackage.MEDICATION_REQUEST__SUBJECT: |
| return basicSetSubject(null, msgs); |
| case FhirPackage.MEDICATION_REQUEST__ENCOUNTER: |
| return basicSetEncounter(null, msgs); |
| case FhirPackage.MEDICATION_REQUEST__SUPPORTING_INFORMATION: |
| return ((InternalEList<?>)getSupportingInformation()).basicRemove(otherEnd, msgs); |
| case FhirPackage.MEDICATION_REQUEST__AUTHORED_ON: |
| return basicSetAuthoredOn(null, msgs); |
| case FhirPackage.MEDICATION_REQUEST__REQUESTER: |
| return basicSetRequester(null, msgs); |
| case FhirPackage.MEDICATION_REQUEST__PERFORMER: |
| return basicSetPerformer(null, msgs); |
| case FhirPackage.MEDICATION_REQUEST__PERFORMER_TYPE: |
| return basicSetPerformerType(null, msgs); |
| case FhirPackage.MEDICATION_REQUEST__RECORDER: |
| return basicSetRecorder(null, msgs); |
| case FhirPackage.MEDICATION_REQUEST__REASON_CODE: |
| return ((InternalEList<?>)getReasonCode()).basicRemove(otherEnd, msgs); |
| case FhirPackage.MEDICATION_REQUEST__REASON_REFERENCE: |
| return ((InternalEList<?>)getReasonReference()).basicRemove(otherEnd, msgs); |
| case FhirPackage.MEDICATION_REQUEST__INSTANTIATES_CANONICAL: |
| return ((InternalEList<?>)getInstantiatesCanonical()).basicRemove(otherEnd, msgs); |
| case FhirPackage.MEDICATION_REQUEST__INSTANTIATES_URI: |
| return ((InternalEList<?>)getInstantiatesUri()).basicRemove(otherEnd, msgs); |
| case FhirPackage.MEDICATION_REQUEST__BASED_ON: |
| return ((InternalEList<?>)getBasedOn()).basicRemove(otherEnd, msgs); |
| case FhirPackage.MEDICATION_REQUEST__GROUP_IDENTIFIER: |
| return basicSetGroupIdentifier(null, msgs); |
| case FhirPackage.MEDICATION_REQUEST__COURSE_OF_THERAPY_TYPE: |
| return basicSetCourseOfTherapyType(null, msgs); |
| case FhirPackage.MEDICATION_REQUEST__INSURANCE: |
| return ((InternalEList<?>)getInsurance()).basicRemove(otherEnd, msgs); |
| case FhirPackage.MEDICATION_REQUEST__NOTE: |
| return ((InternalEList<?>)getNote()).basicRemove(otherEnd, msgs); |
| case FhirPackage.MEDICATION_REQUEST__DOSAGE_INSTRUCTION: |
| return ((InternalEList<?>)getDosageInstruction()).basicRemove(otherEnd, msgs); |
| case FhirPackage.MEDICATION_REQUEST__DISPENSE_REQUEST: |
| return basicSetDispenseRequest(null, msgs); |
| case FhirPackage.MEDICATION_REQUEST__SUBSTITUTION: |
| return basicSetSubstitution(null, msgs); |
| case FhirPackage.MEDICATION_REQUEST__PRIOR_PRESCRIPTION: |
| return basicSetPriorPrescription(null, msgs); |
| case FhirPackage.MEDICATION_REQUEST__DETECTED_ISSUE: |
| return ((InternalEList<?>)getDetectedIssue()).basicRemove(otherEnd, msgs); |
| case FhirPackage.MEDICATION_REQUEST__EVENT_HISTORY: |
| return ((InternalEList<?>)getEventHistory()).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.MEDICATION_REQUEST__IDENTIFIER: |
| return getIdentifier(); |
| case FhirPackage.MEDICATION_REQUEST__STATUS: |
| return getStatus(); |
| case FhirPackage.MEDICATION_REQUEST__STATUS_REASON: |
| return getStatusReason(); |
| case FhirPackage.MEDICATION_REQUEST__INTENT: |
| return getIntent(); |
| case FhirPackage.MEDICATION_REQUEST__CATEGORY: |
| return getCategory(); |
| case FhirPackage.MEDICATION_REQUEST__PRIORITY: |
| return getPriority(); |
| case FhirPackage.MEDICATION_REQUEST__DO_NOT_PERFORM: |
| return getDoNotPerform(); |
| case FhirPackage.MEDICATION_REQUEST__REPORTED_BOOLEAN: |
| return getReportedBoolean(); |
| case FhirPackage.MEDICATION_REQUEST__REPORTED_REFERENCE: |
| return getReportedReference(); |
| case FhirPackage.MEDICATION_REQUEST__MEDICATION_CODEABLE_CONCEPT: |
| return getMedicationCodeableConcept(); |
| case FhirPackage.MEDICATION_REQUEST__MEDICATION_REFERENCE: |
| return getMedicationReference(); |
| case FhirPackage.MEDICATION_REQUEST__SUBJECT: |
| return getSubject(); |
| case FhirPackage.MEDICATION_REQUEST__ENCOUNTER: |
| return getEncounter(); |
| case FhirPackage.MEDICATION_REQUEST__SUPPORTING_INFORMATION: |
| return getSupportingInformation(); |
| case FhirPackage.MEDICATION_REQUEST__AUTHORED_ON: |
| return getAuthoredOn(); |
| case FhirPackage.MEDICATION_REQUEST__REQUESTER: |
| return getRequester(); |
| case FhirPackage.MEDICATION_REQUEST__PERFORMER: |
| return getPerformer(); |
| case FhirPackage.MEDICATION_REQUEST__PERFORMER_TYPE: |
| return getPerformerType(); |
| case FhirPackage.MEDICATION_REQUEST__RECORDER: |
| return getRecorder(); |
| case FhirPackage.MEDICATION_REQUEST__REASON_CODE: |
| return getReasonCode(); |
| case FhirPackage.MEDICATION_REQUEST__REASON_REFERENCE: |
| return getReasonReference(); |
| case FhirPackage.MEDICATION_REQUEST__INSTANTIATES_CANONICAL: |
| return getInstantiatesCanonical(); |
| case FhirPackage.MEDICATION_REQUEST__INSTANTIATES_URI: |
| return getInstantiatesUri(); |
| case FhirPackage.MEDICATION_REQUEST__BASED_ON: |
| return getBasedOn(); |
| case FhirPackage.MEDICATION_REQUEST__GROUP_IDENTIFIER: |
| return getGroupIdentifier(); |
| case FhirPackage.MEDICATION_REQUEST__COURSE_OF_THERAPY_TYPE: |
| return getCourseOfTherapyType(); |
| case FhirPackage.MEDICATION_REQUEST__INSURANCE: |
| return getInsurance(); |
| case FhirPackage.MEDICATION_REQUEST__NOTE: |
| return getNote(); |
| case FhirPackage.MEDICATION_REQUEST__DOSAGE_INSTRUCTION: |
| return getDosageInstruction(); |
| case FhirPackage.MEDICATION_REQUEST__DISPENSE_REQUEST: |
| return getDispenseRequest(); |
| case FhirPackage.MEDICATION_REQUEST__SUBSTITUTION: |
| return getSubstitution(); |
| case FhirPackage.MEDICATION_REQUEST__PRIOR_PRESCRIPTION: |
| return getPriorPrescription(); |
| case FhirPackage.MEDICATION_REQUEST__DETECTED_ISSUE: |
| return getDetectedIssue(); |
| case FhirPackage.MEDICATION_REQUEST__EVENT_HISTORY: |
| return getEventHistory(); |
| } |
| 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.MEDICATION_REQUEST__IDENTIFIER: |
| getIdentifier().clear(); |
| getIdentifier().addAll((Collection<? extends Identifier>)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__STATUS: |
| setStatus((MedicationrequestStatus)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__STATUS_REASON: |
| setStatusReason((CodeableConcept)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__INTENT: |
| setIntent((MedicationRequestIntent)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__CATEGORY: |
| getCategory().clear(); |
| getCategory().addAll((Collection<? extends CodeableConcept>)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__PRIORITY: |
| setPriority((RequestPriority)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__DO_NOT_PERFORM: |
| setDoNotPerform((org.hl7.fhir.Boolean)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__REPORTED_BOOLEAN: |
| setReportedBoolean((org.hl7.fhir.Boolean)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__REPORTED_REFERENCE: |
| setReportedReference((Reference)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__MEDICATION_CODEABLE_CONCEPT: |
| setMedicationCodeableConcept((CodeableConcept)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__MEDICATION_REFERENCE: |
| setMedicationReference((Reference)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__SUBJECT: |
| setSubject((Reference)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__ENCOUNTER: |
| setEncounter((Reference)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__SUPPORTING_INFORMATION: |
| getSupportingInformation().clear(); |
| getSupportingInformation().addAll((Collection<? extends Reference>)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__AUTHORED_ON: |
| setAuthoredOn((DateTime)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__REQUESTER: |
| setRequester((Reference)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__PERFORMER: |
| setPerformer((Reference)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__PERFORMER_TYPE: |
| setPerformerType((CodeableConcept)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__RECORDER: |
| setRecorder((Reference)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__REASON_CODE: |
| getReasonCode().clear(); |
| getReasonCode().addAll((Collection<? extends CodeableConcept>)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__REASON_REFERENCE: |
| getReasonReference().clear(); |
| getReasonReference().addAll((Collection<? extends Reference>)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__INSTANTIATES_CANONICAL: |
| getInstantiatesCanonical().clear(); |
| getInstantiatesCanonical().addAll((Collection<? extends Canonical>)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__INSTANTIATES_URI: |
| getInstantiatesUri().clear(); |
| getInstantiatesUri().addAll((Collection<? extends Uri>)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__BASED_ON: |
| getBasedOn().clear(); |
| getBasedOn().addAll((Collection<? extends Reference>)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__GROUP_IDENTIFIER: |
| setGroupIdentifier((Identifier)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__COURSE_OF_THERAPY_TYPE: |
| setCourseOfTherapyType((CodeableConcept)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__INSURANCE: |
| getInsurance().clear(); |
| getInsurance().addAll((Collection<? extends Reference>)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__NOTE: |
| getNote().clear(); |
| getNote().addAll((Collection<? extends Annotation>)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__DOSAGE_INSTRUCTION: |
| getDosageInstruction().clear(); |
| getDosageInstruction().addAll((Collection<? extends Dosage>)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__DISPENSE_REQUEST: |
| setDispenseRequest((MedicationRequestDispenseRequest)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__SUBSTITUTION: |
| setSubstitution((MedicationRequestSubstitution)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__PRIOR_PRESCRIPTION: |
| setPriorPrescription((Reference)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__DETECTED_ISSUE: |
| getDetectedIssue().clear(); |
| getDetectedIssue().addAll((Collection<? extends Reference>)newValue); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__EVENT_HISTORY: |
| getEventHistory().clear(); |
| getEventHistory().addAll((Collection<? extends Reference>)newValue); |
| return; |
| } |
| super.eSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case FhirPackage.MEDICATION_REQUEST__IDENTIFIER: |
| getIdentifier().clear(); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__STATUS: |
| setStatus((MedicationrequestStatus)null); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__STATUS_REASON: |
| setStatusReason((CodeableConcept)null); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__INTENT: |
| setIntent((MedicationRequestIntent)null); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__CATEGORY: |
| getCategory().clear(); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__PRIORITY: |
| setPriority((RequestPriority)null); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__DO_NOT_PERFORM: |
| setDoNotPerform((org.hl7.fhir.Boolean)null); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__REPORTED_BOOLEAN: |
| setReportedBoolean((org.hl7.fhir.Boolean)null); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__REPORTED_REFERENCE: |
| setReportedReference((Reference)null); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__MEDICATION_CODEABLE_CONCEPT: |
| setMedicationCodeableConcept((CodeableConcept)null); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__MEDICATION_REFERENCE: |
| setMedicationReference((Reference)null); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__SUBJECT: |
| setSubject((Reference)null); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__ENCOUNTER: |
| setEncounter((Reference)null); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__SUPPORTING_INFORMATION: |
| getSupportingInformation().clear(); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__AUTHORED_ON: |
| setAuthoredOn((DateTime)null); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__REQUESTER: |
| setRequester((Reference)null); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__PERFORMER: |
| setPerformer((Reference)null); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__PERFORMER_TYPE: |
| setPerformerType((CodeableConcept)null); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__RECORDER: |
| setRecorder((Reference)null); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__REASON_CODE: |
| getReasonCode().clear(); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__REASON_REFERENCE: |
| getReasonReference().clear(); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__INSTANTIATES_CANONICAL: |
| getInstantiatesCanonical().clear(); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__INSTANTIATES_URI: |
| getInstantiatesUri().clear(); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__BASED_ON: |
| getBasedOn().clear(); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__GROUP_IDENTIFIER: |
| setGroupIdentifier((Identifier)null); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__COURSE_OF_THERAPY_TYPE: |
| setCourseOfTherapyType((CodeableConcept)null); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__INSURANCE: |
| getInsurance().clear(); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__NOTE: |
| getNote().clear(); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__DOSAGE_INSTRUCTION: |
| getDosageInstruction().clear(); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__DISPENSE_REQUEST: |
| setDispenseRequest((MedicationRequestDispenseRequest)null); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__SUBSTITUTION: |
| setSubstitution((MedicationRequestSubstitution)null); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__PRIOR_PRESCRIPTION: |
| setPriorPrescription((Reference)null); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__DETECTED_ISSUE: |
| getDetectedIssue().clear(); |
| return; |
| case FhirPackage.MEDICATION_REQUEST__EVENT_HISTORY: |
| getEventHistory().clear(); |
| return; |
| } |
| super.eUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case FhirPackage.MEDICATION_REQUEST__IDENTIFIER: |
| return identifier != null && !identifier.isEmpty(); |
| case FhirPackage.MEDICATION_REQUEST__STATUS: |
| return status != null; |
| case FhirPackage.MEDICATION_REQUEST__STATUS_REASON: |
| return statusReason != null; |
| case FhirPackage.MEDICATION_REQUEST__INTENT: |
| return intent != null; |
| case FhirPackage.MEDICATION_REQUEST__CATEGORY: |
| return category != null && !category.isEmpty(); |
| case FhirPackage.MEDICATION_REQUEST__PRIORITY: |
| return priority != null; |
| case FhirPackage.MEDICATION_REQUEST__DO_NOT_PERFORM: |
| return doNotPerform != null; |
| case FhirPackage.MEDICATION_REQUEST__REPORTED_BOOLEAN: |
| return reportedBoolean != null; |
| case FhirPackage.MEDICATION_REQUEST__REPORTED_REFERENCE: |
| return reportedReference != null; |
| case FhirPackage.MEDICATION_REQUEST__MEDICATION_CODEABLE_CONCEPT: |
| return medicationCodeableConcept != null; |
| case FhirPackage.MEDICATION_REQUEST__MEDICATION_REFERENCE: |
| return medicationReference != null; |
| case FhirPackage.MEDICATION_REQUEST__SUBJECT: |
| return subject != null; |
| case FhirPackage.MEDICATION_REQUEST__ENCOUNTER: |
| return encounter != null; |
| case FhirPackage.MEDICATION_REQUEST__SUPPORTING_INFORMATION: |
| return supportingInformation != null && !supportingInformation.isEmpty(); |
| case FhirPackage.MEDICATION_REQUEST__AUTHORED_ON: |
| return authoredOn != null; |
| case FhirPackage.MEDICATION_REQUEST__REQUESTER: |
| return requester != null; |
| case FhirPackage.MEDICATION_REQUEST__PERFORMER: |
| return performer != null; |
| case FhirPackage.MEDICATION_REQUEST__PERFORMER_TYPE: |
| return performerType != null; |
| case FhirPackage.MEDICATION_REQUEST__RECORDER: |
| return recorder != null; |
| case FhirPackage.MEDICATION_REQUEST__REASON_CODE: |
| return reasonCode != null && !reasonCode.isEmpty(); |
| case FhirPackage.MEDICATION_REQUEST__REASON_REFERENCE: |
| return reasonReference != null && !reasonReference.isEmpty(); |
| case FhirPackage.MEDICATION_REQUEST__INSTANTIATES_CANONICAL: |
| return instantiatesCanonical != null && !instantiatesCanonical.isEmpty(); |
| case FhirPackage.MEDICATION_REQUEST__INSTANTIATES_URI: |
| return instantiatesUri != null && !instantiatesUri.isEmpty(); |
| case FhirPackage.MEDICATION_REQUEST__BASED_ON: |
| return basedOn != null && !basedOn.isEmpty(); |
| case FhirPackage.MEDICATION_REQUEST__GROUP_IDENTIFIER: |
| return groupIdentifier != null; |
| case FhirPackage.MEDICATION_REQUEST__COURSE_OF_THERAPY_TYPE: |
| return courseOfTherapyType != null; |
| case FhirPackage.MEDICATION_REQUEST__INSURANCE: |
| return insurance != null && !insurance.isEmpty(); |
| case FhirPackage.MEDICATION_REQUEST__NOTE: |
| return note != null && !note.isEmpty(); |
| case FhirPackage.MEDICATION_REQUEST__DOSAGE_INSTRUCTION: |
| return dosageInstruction != null && !dosageInstruction.isEmpty(); |
| case FhirPackage.MEDICATION_REQUEST__DISPENSE_REQUEST: |
| return dispenseRequest != null; |
| case FhirPackage.MEDICATION_REQUEST__SUBSTITUTION: |
| return substitution != null; |
| case FhirPackage.MEDICATION_REQUEST__PRIOR_PRESCRIPTION: |
| return priorPrescription != null; |
| case FhirPackage.MEDICATION_REQUEST__DETECTED_ISSUE: |
| return detectedIssue != null && !detectedIssue.isEmpty(); |
| case FhirPackage.MEDICATION_REQUEST__EVENT_HISTORY: |
| return eventHistory != null && !eventHistory.isEmpty(); |
| } |
| return super.eIsSet(featureID); |
| } |
| |
| } //MedicationRequestImpl |