| /** |
| */ |
| 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>Diagnostic Report Status List</b></em>', |
| * and utility methods for working with them. |
| * <!-- end-user-doc --> |
| * @see org.hl7.fhir.FhirPackage#getDiagnosticReportStatusList() |
| * @model extendedMetaData="name='DiagnosticReportStatus-list'" |
| * @generated |
| */ |
| public enum DiagnosticReportStatusList implements Enumerator { |
| /** |
| * The '<em><b>Registered</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #REGISTERED_VALUE |
| * @generated |
| * @ordered |
| */ |
| REGISTERED(0, "registered", "registered"), |
| |
| /** |
| * The '<em><b>Partial</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #PARTIAL_VALUE |
| * @generated |
| * @ordered |
| */ |
| PARTIAL(1, "partial", "partial"), |
| |
| /** |
| * The '<em><b>Final</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #FINAL_VALUE |
| * @generated |
| * @ordered |
| */ |
| FINAL(2, "final", "final"), |
| |
| /** |
| * The '<em><b>Corrected</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #CORRECTED_VALUE |
| * @generated |
| * @ordered |
| */ |
| CORRECTED(3, "corrected", "corrected"), |
| |
| /** |
| * The '<em><b>Appended</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #APPENDED_VALUE |
| * @generated |
| * @ordered |
| */ |
| APPENDED(4, "appended", "appended"), |
| |
| /** |
| * 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>Entered In Error</b></em>' literal object. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #ENTERED_IN_ERROR_VALUE |
| * @generated |
| * @ordered |
| */ |
| ENTERED_IN_ERROR(6, "enteredInError", "entered-in-error"); |
| |
| /** |
| * The '<em><b>Registered</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The existence of the report is registered, but there is nothing yet available. |
| * <!-- end-model-doc --> |
| * @see #REGISTERED |
| * @model name="registered" |
| * @generated |
| * @ordered |
| */ |
| public static final int REGISTERED_VALUE = 0; |
| |
| /** |
| * The '<em><b>Partial</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * This is a partial (e.g. initial, interim or preliminary) report: data in the report may be incomplete or unverified. |
| * <!-- end-model-doc --> |
| * @see #PARTIAL |
| * @model name="partial" |
| * @generated |
| * @ordered |
| */ |
| public static final int PARTIAL_VALUE = 1; |
| |
| /** |
| * The '<em><b>Final</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The report is complete and verified by an authorized person. |
| * <!-- end-model-doc --> |
| * @see #FINAL |
| * @model name="final" |
| * @generated |
| * @ordered |
| */ |
| public static final int FINAL_VALUE = 2; |
| |
| /** |
| * The '<em><b>Corrected</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The report has been modified subsequent to being Final, and is complete and verified by an authorized person. New content has been added, but existing content hasn't changed |
| * <!-- end-model-doc --> |
| * @see #CORRECTED |
| * @model name="corrected" |
| * @generated |
| * @ordered |
| */ |
| public static final int CORRECTED_VALUE = 3; |
| |
| /** |
| * The '<em><b>Appended</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The report has been modified subsequent to being Final, and is complete and verified by an authorized person. New content has been added, but existing content hasn't changed. |
| * <!-- end-model-doc --> |
| * @see #APPENDED |
| * @model name="appended" |
| * @generated |
| * @ordered |
| */ |
| public static final int APPENDED_VALUE = 4; |
| |
| /** |
| * The '<em><b>Cancelled</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The report is unavailable because the measurement was not started or not completed (also sometimes called "aborted"). |
| * <!-- end-model-doc --> |
| * @see #CANCELLED |
| * @model name="cancelled" |
| * @generated |
| * @ordered |
| */ |
| public static final int CANCELLED_VALUE = 5; |
| |
| /** |
| * The '<em><b>Entered In Error</b></em>' literal value. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The report has been withdrawn following a previous final release. |
| * <!-- end-model-doc --> |
| * @see #ENTERED_IN_ERROR |
| * @model name="enteredInError" literal="entered-in-error" |
| * @generated |
| * @ordered |
| */ |
| public static final int ENTERED_IN_ERROR_VALUE = 6; |
| |
| /** |
| * An array of all the '<em><b>Diagnostic Report Status List</b></em>' enumerators. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private static final DiagnosticReportStatusList[] VALUES_ARRAY = |
| new DiagnosticReportStatusList[] { |
| REGISTERED, |
| PARTIAL, |
| FINAL, |
| CORRECTED, |
| APPENDED, |
| CANCELLED, |
| ENTERED_IN_ERROR, |
| }; |
| |
| /** |
| * A public read-only list of all the '<em><b>Diagnostic Report Status List</b></em>' enumerators. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public static final List<DiagnosticReportStatusList> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); |
| |
| /** |
| * Returns the '<em><b>Diagnostic Report 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 DiagnosticReportStatusList get(String literal) { |
| for (int i = 0; i < VALUES_ARRAY.length; ++i) { |
| DiagnosticReportStatusList result = VALUES_ARRAY[i]; |
| if (result.toString().equals(literal)) { |
| return result; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * Returns the '<em><b>Diagnostic Report 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 DiagnosticReportStatusList getByName(String name) { |
| for (int i = 0; i < VALUES_ARRAY.length; ++i) { |
| DiagnosticReportStatusList result = VALUES_ARRAY[i]; |
| if (result.getName().equals(name)) { |
| return result; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * Returns the '<em><b>Diagnostic Report 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 DiagnosticReportStatusList get(int value) { |
| switch (value) { |
| case REGISTERED_VALUE: return REGISTERED; |
| case PARTIAL_VALUE: return PARTIAL; |
| case FINAL_VALUE: return FINAL; |
| case CORRECTED_VALUE: return CORRECTED; |
| case APPENDED_VALUE: return APPENDED; |
| case CANCELLED_VALUE: return CANCELLED; |
| case ENTERED_IN_ERROR_VALUE: return ENTERED_IN_ERROR; |
| } |
| 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 DiagnosticReportStatusList(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; |
| } |
| |
| } //DiagnosticReportStatusList |