# Generated by ariadne-codegen
# Source: ./documents

from typing import Any, List, Optional

from pydantic import Field

from .base_model import BaseModel
from .enums import EntityState


class QueryMedicalContraindications(BaseModel):
    medical_contraindications: Optional[
        "QueryMedicalContraindicationsMedicalContraindications"
    ] = Field(alias="medicalContraindications")


class QueryMedicalContraindicationsMedicalContraindications(BaseModel):
    results: Optional[
        List[Optional["QueryMedicalContraindicationsMedicalContraindicationsResults"]]
    ]


class QueryMedicalContraindicationsMedicalContraindicationsResults(BaseModel):
    id: str
    name: str
    creation_date: Any = Field(alias="creationDate")
    modified_date: Optional[Any] = Field(alias="modifiedDate")
    relevance: Optional[float]
    owner: "QueryMedicalContraindicationsMedicalContraindicationsResultsOwner"
    state: EntityState
    alternate_names: Optional[List[Optional[str]]] = Field(alias="alternateNames")
    uri: Optional[Any]
    description: Optional[str]
    identifier: Optional[str]
    thing: Optional[str]
    feeds: Optional[
        List[
            Optional[
                "QueryMedicalContraindicationsMedicalContraindicationsResultsFeeds"
            ]
        ]
    ]


class QueryMedicalContraindicationsMedicalContraindicationsResultsOwner(BaseModel):
    id: str


class QueryMedicalContraindicationsMedicalContraindicationsResultsFeeds(BaseModel):
    id: str
    name: str


QueryMedicalContraindications.model_rebuild()
QueryMedicalContraindicationsMedicalContraindications.model_rebuild()
QueryMedicalContraindicationsMedicalContraindicationsResults.model_rebuild()
