compare_basket
Card prices for several medicines at once: which pharmacy chain was seen pricing the whole list, and the sum there.
Use when the person names two or more medicines and asks what they cost
together, or which one pharmacy to use for all of them. ``drugs`` is two to
six names as typed or slugs; a dose and a pack size may ride in each name
("atorvastatin 40 mg 90"). ``zip`` is a 5-digit US ZIP — pass it only when
the person gave one; without it the host's approximate location is used
when there is one, else the chains are listed nationally.
Returns the package used for each medicine, then one row per chain: its
card price for each medicine with the observation date, and — only when
every medicine was seen with a price there — their sum with the dates the
prices were observed. When taking each medicine at a different chain comes
to less than every one-chain sum, that is given too. Names that matched no
medicine are counted and left out. A sum is an addition of observed card
prices, never a quote: the pharmacy sets the final price.
Next: read out the chains with a sum and its dates; then the card sentence
and codes. One medicine only: use compare_prices.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zip | No | ||
| drugs | Yes | ||
| locale | No | ||
| channel | No |