% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/disease-formula.R
\name{search_formulas}
\alias{search_formulas}
\title{Search formulas in the Disease-Formula Atlas}
\usage{
search_formulas(
  q = NULL,
  level1 = NULL,
  level2 = NULL,
  level3 = NULL,
  level4 = NULL,
  book_sources = NULL,
  origin_sources = NULL,
  dosage_forms = NULL,
  mapping_confidence = NULL,
  page = 1L,
  page_size = 20L,
  all_pages = FALSE
)
}
\arguments{
\item{q}{Optional search query string.}

\item{level1, level2, level3, level4}{ICD-11 disease classification levels.}

\item{book_sources}{Book source filter (character vector).}

\item{origin_sources}{Origin source filter (character vector).}

\item{dosage_forms}{Dosage form filter (character vector).}

\item{mapping_confidence}{Mapping confidence filter (character vector).}

\item{page}{Page number (default 1).}

\item{page_size}{Results per page (default 20, max 100).}

\item{all_pages}{If \code{TRUE}, fetch all pages via auto-pagination.}
}
\value{
A \code{\link[tibble:tibble]{tibble::tibble()}} of formulas with attribute \code{"total"}.
}
\description{
Query the Disease-Formula Atlas with optional text search and ICD-11
disease classification filters. Multi-value parameters accept character
vectors and are collapsed to comma-separated strings internally.
}
\examples{
\dontrun{
search_formulas(q = "insomnia")
search_formulas(level1 = "Neoplasms", mapping_confidence = "high")
}
}
