| /** |
| */ |
| package org.hl7.fhir; |
| |
| import java.lang.String; |
| |
| import java.util.Arrays; |
| import java.util.Collections; |
| import java.util.List; |
| |
| import org.eclipse.emf.common.util.Enumerator; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * A representation of the literals of the enumeration '<em><b>Care Plan Activity Status List</b></em>', |
| * and utility methods for working with them. |
| * <!-- end-user-doc --> |
| * @see org.hl7.fhir.FhirPackage#getCarePlanActivityStatusList() |
| * @model extendedMetaData="name='CarePlanActivityStatus-list'" |
| * @generated |
| */ |
| public enum CarePlanActivityStatusList implements Enumerator { |
| /** |
| * The '<em><b>Not Started</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #NOT_STARTED_VALUE |
| * @generated |
| * @ordered |
| */ |
| NOT_STARTED(0, "notStarted", "not-started"), |
| |
| /** |
| * The '<em><b>Scheduled</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #SCHEDULED_VALUE |
| * @generated |
| * @ordered |
| */ |
| SCHEDULED(1, "scheduled", "scheduled"), |
| |
| /** |
| * The '<em><b>In Progress</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #IN_PROGRESS_VALUE |
| * @generated |
| * @ordered |
| */ |
| IN_PROGRESS(2, "inProgress", "in-progress"), |
| |
| /** |
| * The '<em><b>On Hold</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #ON_HOLD_VALUE |
| * @generated |
| * @ordered |
| */ |
| ON_HOLD(3, "onHold", "on-hold"), |
| |
| /** |
| * The '<em><b>Completed</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #COMPLETED_VALUE |
| * @generated |
| * @ordered |
| */ |
| COMPLETED(4, "completed", "completed"), |
| |
| /** |
| * The '<em><b>Cancelled</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #CANCELLED_VALUE |
| * @generated |
| * @ordered |
| */ |
| CANCELLED(5, "cancelled", "cancelled"); |
| |
| /** |
| * The '<em><b>Not Started</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Activity is planned but no action has yet been taken. |
| * <!-- end-model-doc --> |
| * @see #NOT_STARTED |
| * @model name="notStarted" literal="not-started" |
| * @generated |
| * @ordered |
| */ |
| public static final int NOT_STARTED_VALUE = 0; |
| |
| /** |
| * The '<em><b>Scheduled</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Appointment or other booking has occurred but activity has not yet begun. |
| * <!-- end-model-doc --> |
| * @see #SCHEDULED |
| * @model name="scheduled" |
| * @generated |
| * @ordered |
| */ |
| public static final int SCHEDULED_VALUE = 1; |
| |
| /** |
| * The '<em><b>In Progress</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Activity has been started but is not yet complete. |
| * <!-- end-model-doc --> |
| * @see #IN_PROGRESS |
| * @model name="inProgress" literal="in-progress" |
| * @generated |
| * @ordered |
| */ |
| public static final int IN_PROGRESS_VALUE = 2; |
| |
| /** |
| * The '<em><b>On Hold</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Activity was started but has temporarily ceased with an expectation of resumption at a future time. |
| * <!-- end-model-doc --> |
| * @see #ON_HOLD |
| * @model name="onHold" literal="on-hold" |
| * @generated |
| * @ordered |
| */ |
| public static final int ON_HOLD_VALUE = 3; |
| |
| /** |
| * The '<em><b>Completed</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The activities have been completed (more or less) as planned. |
| * <!-- end-model-doc --> |
| * @see #COMPLETED |
| * @model name="completed" |
| * @generated |
| * @ordered |
| */ |
| public static final int COMPLETED_VALUE = 4; |
| |
| /** |
| * The '<em><b>Cancelled</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The activities have been ended prior to completion (perhaps even before they were started). |
| * <!-- end-model-doc --> |
| * @see #CANCELLED |
| * @model name="cancelled" |
| * @generated |
| * @ordered |
| */ |
| public static final int CANCELLED_VALUE = 5; |
| |
| /** |
| * An array of all the '<em><b>Care Plan Activity Status List</b></em>' enumerators. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private static final CarePlanActivityStatusList[] VALUES_ARRAY = |
| new CarePlanActivityStatusList[] { |
| NOT_STARTED, |
| SCHEDULED, |
| IN_PROGRESS, |
| ON_HOLD, |
| COMPLETED, |
| CANCELLED, |
| }; |
| |
| /** |
| * A public read-only list of all the '<em><b>Care Plan Activity Status List</b></em>' enumerators. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public static final List<CarePlanActivityStatusList> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); |
| |
| /** |
| * Returns the '<em><b>Care Plan Activity Status List</b></em>' literal with the specified literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param literal the literal. |
| * @return the matching enumerator or <code>null</code>. |
| * @generated |
| */ |
| public static CarePlanActivityStatusList get(String literal) { |
| for (int i = 0; i < VALUES_ARRAY.length; ++i) { |
| CarePlanActivityStatusList result = VALUES_ARRAY[i]; |
| if (result.toString().equals(literal)) { |
| return result; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * Returns the '<em><b>Care Plan Activity Status List</b></em>' literal with the specified name. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param name the name. |
| * @return the matching enumerator or <code>null</code>. |
| * @generated |
| */ |
| public static CarePlanActivityStatusList getByName(String name) { |
| for (int i = 0; i < VALUES_ARRAY.length; ++i) { |
| CarePlanActivityStatusList result = VALUES_ARRAY[i]; |
| if (result.getName().equals(name)) { |
| return result; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * Returns the '<em><b>Care Plan Activity Status List</b></em>' literal with the specified integer value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the integer value. |
| * @return the matching enumerator or <code>null</code>. |
| * @generated |
| */ |
| public static CarePlanActivityStatusList get(int value) { |
| switch (value) { |
| case NOT_STARTED_VALUE: return NOT_STARTED; |
| case SCHEDULED_VALUE: return SCHEDULED; |
| case IN_PROGRESS_VALUE: return IN_PROGRESS; |
| case ON_HOLD_VALUE: return ON_HOLD; |
| case COMPLETED_VALUE: return COMPLETED; |
| case CANCELLED_VALUE: return CANCELLED; |
| } |
| return null; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private final int value; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private final String name; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private final String literal; |
| |
| /** |
| * Only this class can construct instances. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private CarePlanActivityStatusList(int value, String name, String literal) { |
| this.value = value; |
| this.name = name; |
| this.literal = literal; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public int getValue() { |
| return value; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getName() { |
| return name; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getLiteral() { |
| return literal; |
| } |
| |
| /** |
| * Returns the literal value of the enumerator, which is its string representation. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public String toString() { |
| return literal; |
| } |
| |
| } //CarePlanActivityStatusList |