// 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.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** An inference made by the Trial Matcher model regarding a patient. */
@Immutable
public final class TrialMatcherInference {
    /*
     * The type of the Trial Matcher inference.
     */
    @JsonProperty(value = "type", required = true)
    private TrialMatcherInferenceType type;

    /*
     * The value of the inference, as relevant for the given inference type.
     */
    @JsonProperty(value = "value", required = true)
    private String value;

    /*
     * The description corresponding to the inference value.
     */
    @JsonProperty(value = "description")
    private String description;

    /*
     * Confidence score for this inference.
     */
    @JsonProperty(value = "confidenceScore")
    private Double confidenceScore;

    /*
     * The evidence corresponding to the inference value.
     */
    @JsonProperty(value = "evidence")
    private List<TrialMatcherInferenceEvidence> evidence;

    /*
     * The identifier of the clinical trial.
     */
    @JsonProperty(value = "id")
    private String id;

    /*
     * Possible sources of a clinical trial.
     */
    @JsonProperty(value = "source")
    private ClinicalTrialSource source;

    /*
     * Trial data which is of interest to the potential participant.
     */
    @JsonProperty(value = "metadata")
    private ClinicalTrialMetadata metadata;

    /**
     * Creates an instance of TrialMatcherInference class.
     *
     * @param type the type value to set.
     * @param value the value value to set.
     */
    @JsonCreator
    private TrialMatcherInference(
            @JsonProperty(value = "type", required = true) TrialMatcherInferenceType type,
            @JsonProperty(value = "value", required = true) String value) {
        this.type = type;
        this.value = value;
    }

    /**
     * Get the type property: The type of the Trial Matcher inference.
     *
     * @return the type value.
     */
    public TrialMatcherInferenceType getType() {
        return this.type;
    }

    /**
     * Get the value property: The value of the inference, as relevant for the given inference type.
     *
     * @return the value value.
     */
    public String getValue() {
        return this.value;
    }

    /**
     * Get the description property: The description corresponding to the inference value.
     *
     * @return the description value.
     */
    public String getDescription() {
        return this.description;
    }

    /**
     * Get the confidenceScore property: Confidence score for this inference.
     *
     * @return the confidenceScore value.
     */
    public Double getConfidenceScore() {
        return this.confidenceScore;
    }

    /**
     * Get the evidence property: The evidence corresponding to the inference value.
     *
     * @return the evidence value.
     */
    public List<TrialMatcherInferenceEvidence> getEvidence() {
        return this.evidence;
    }

    /**
     * Get the id property: The identifier of the clinical trial.
     *
     * @return the id value.
     */
    public String getId() {
        return this.id;
    }

    /**
     * Get the source property: Possible sources of a clinical trial.
     *
     * @return the source value.
     */
    public ClinicalTrialSource getSource() {
        return this.source;
    }

    /**
     * Get the metadata property: Trial data which is of interest to the potential participant.
     *
     * @return the metadata value.
     */
    public ClinicalTrialMetadata getMetadata() {
        return this.metadata;
    }
}
