| /** |
| */ |
| 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>Encounter Location Status List</b></em>', |
| * and utility methods for working with them. |
| * <!-- end-user-doc --> |
| * @see org.hl7.fhir.FhirPackage#getEncounterLocationStatusList() |
| * @model extendedMetaData="name='EncounterLocationStatus-list'" |
| * @generated |
| */ |
| public enum EncounterLocationStatusList implements Enumerator { |
| /** |
| * The '<em><b>Planned</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #PLANNED_VALUE |
| * @generated |
| * @ordered |
| */ |
| PLANNED(0, "planned", "planned"), |
| |
| /** |
| * The '<em><b>Active</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #ACTIVE_VALUE |
| * @generated |
| * @ordered |
| */ |
| ACTIVE(1, "active", "active"), |
| |
| /** |
| * The '<em><b>Reserved</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #RESERVED_VALUE |
| * @generated |
| * @ordered |
| */ |
| RESERVED(2, "reserved", "reserved"), |
| |
| /** |
| * The '<em><b>Completed</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #COMPLETED_VALUE |
| * @generated |
| * @ordered |
| */ |
| COMPLETED(3, "completed", "completed"); |
| |
| /** |
| * The '<em><b>Planned</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The patient is planned to be moved to this location at some point in the future. |
| * <!-- end-model-doc --> |
| * @see #PLANNED |
| * @model name="planned" |
| * @generated |
| * @ordered |
| */ |
| public static final int PLANNED_VALUE = 0; |
| |
| /** |
| * The '<em><b>Active</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The patient is currently at this location, or was between the period specified. |
| * |
| * A system may update these records when the patient leaves the location to either reserved, or completed |
| * <!-- end-model-doc --> |
| * @see #ACTIVE |
| * @model name="active" |
| * @generated |
| * @ordered |
| */ |
| public static final int ACTIVE_VALUE = 1; |
| |
| /** |
| * The '<em><b>Reserved</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * This location is held empty for this patient. |
| * <!-- end-model-doc --> |
| * @see #RESERVED |
| * @model name="reserved" |
| * @generated |
| * @ordered |
| */ |
| public static final int RESERVED_VALUE = 2; |
| |
| /** |
| * The '<em><b>Completed</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The patient was at this location during the period specified. |
| * |
| * Not to be used when the patient is currently at the location |
| * <!-- end-model-doc --> |
| * @see #COMPLETED |
| * @model name="completed" |
| * @generated |
| * @ordered |
| */ |
| public static final int COMPLETED_VALUE = 3; |
| |
| /** |
| * An array of all the '<em><b>Encounter Location Status List</b></em>' enumerators. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private static final EncounterLocationStatusList[] VALUES_ARRAY = |
| new EncounterLocationStatusList[] { |
| PLANNED, |
| ACTIVE, |
| RESERVED, |
| COMPLETED, |
| }; |
| |
| /** |
| * A public read-only list of all the '<em><b>Encounter Location Status List</b></em>' enumerators. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public static final List<EncounterLocationStatusList> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); |
| |
| /** |
| * Returns the '<em><b>Encounter Location 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 EncounterLocationStatusList get(String literal) { |
| for (int i = 0; i < VALUES_ARRAY.length; ++i) { |
| EncounterLocationStatusList result = VALUES_ARRAY[i]; |
| if (result.toString().equals(literal)) { |
| return result; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * Returns the '<em><b>Encounter Location 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 EncounterLocationStatusList getByName(String name) { |
| for (int i = 0; i < VALUES_ARRAY.length; ++i) { |
| EncounterLocationStatusList result = VALUES_ARRAY[i]; |
| if (result.getName().equals(name)) { |
| return result; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * Returns the '<em><b>Encounter Location 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 EncounterLocationStatusList get(int value) { |
| switch (value) { |
| case PLANNED_VALUE: return PLANNED; |
| case ACTIVE_VALUE: return ACTIVE; |
| case RESERVED_VALUE: return RESERVED; |
| case COMPLETED_VALUE: return COMPLETED; |
| } |
| 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 EncounterLocationStatusList(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; |
| } |
| |
| } //EncounterLocationStatusList |