// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.health.insights.clinicalmatching.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Possible purposes of a clinical trial. */
public final class ClinicalTrialPurpose extends ExpandableStringEnum<ClinicalTrialPurpose> {
    /** Static value notApplicable for ClinicalTrialPurpose. */
    public static final ClinicalTrialPurpose NOT_APPLICABLE = fromString("notApplicable");

    /** Static value screening for ClinicalTrialPurpose. */
    public static final ClinicalTrialPurpose SCREENING = fromString("screening");

    /** Static value diagnostic for ClinicalTrialPurpose. */
    public static final ClinicalTrialPurpose DIAGNOSTIC = fromString("diagnostic");

    /** Static value prevention for ClinicalTrialPurpose. */
    public static final ClinicalTrialPurpose PREVENTION = fromString("prevention");

    /** Static value healthServicesResearch for ClinicalTrialPurpose. */
    public static final ClinicalTrialPurpose HEALTH_SERVICES_RESEARCH = fromString("healthServicesResearch");

    /** Static value treatment for ClinicalTrialPurpose. */
    public static final ClinicalTrialPurpose TREATMENT = fromString("treatment");

    /** Static value deviceFeasibility for ClinicalTrialPurpose. */
    public static final ClinicalTrialPurpose DEVICE_FEASIBILITY = fromString("deviceFeasibility");

    /** Static value supportiveCare for ClinicalTrialPurpose. */
    public static final ClinicalTrialPurpose SUPPORTIVE_CARE = fromString("supportiveCare");

    /** Static value basicScience for ClinicalTrialPurpose. */
    public static final ClinicalTrialPurpose BASIC_SCIENCE = fromString("basicScience");

    /** Static value other for ClinicalTrialPurpose. */
    public static final ClinicalTrialPurpose OTHER = fromString("other");

    /**
     * Creates a new instance of ClinicalTrialPurpose value.
     *
     * @deprecated Use the {@link #fromString(String)} factory method.
     */
    @Deprecated
    public ClinicalTrialPurpose() {}

    /**
     * Creates or finds a ClinicalTrialPurpose from its string representation.
     *
     * @param name a name to look for.
     * @return the corresponding ClinicalTrialPurpose.
     */
    @JsonCreator
    public static ClinicalTrialPurpose fromString(String name) {
        return fromString(name, ClinicalTrialPurpose.class);
    }

    /**
     * Gets known ClinicalTrialPurpose values.
     *
     * @return known ClinicalTrialPurpose values.
     */
    public static Collection<ClinicalTrialPurpose> values() {
        return values(ClinicalTrialPurpose.class);
    }
}
