A doctor writing a prescription in a clinic system or a telemedicine app knows what they want: a brand, or a generic, in one strength and form. The software’s job is to find that medicine quickly and record exactly which one was picked. This guide covers the data and the screen. It gives no clinical advice: what to prescribe, and how much, is the prescriber’s decision.
Can a doctor search by brand and by generic?
Yes, with the same call. GET /v1/medicines/search matches each word typed against the start of a word in the brand, an alternate name, the generic and the manufacturer, and every word must match. So napa finds the brand Napa, and paracetamol finds the medicines whose generic is paracetamol, whatever their brand.
| Match on | Weight |
|---|---|
| Brand | Highest |
| Alternate name | Second |
| Generic | Third |
| Manufacturer | Lowest |
A brand equal to what was typed comes first, then brands that start with it, then the rest by these weights: napa lists every Napa first, then other brands that start with it, such as Napasin, Napatrim and Napa Extend, then the mebhydrolin brands whose alternate name holds napadisylate. A doctor who types a generic sees its brands, in a fixed order, since ties always go the same way. The POS search guide covers waiting for a pause in typing, and the Search reference has the rest.
How does the doctor pick the strength and form?
From the list. Strength is not searched: typing 500 does not narrow the list. But each result is one medicine, which is one brand in one strength and dosage form, so the strengths and forms are already rows. Group them by brand and maker, and let the doctor pick the row:
// oushodh() is the small server-side client from "adding the API to your software"
const { items, total } = await oushodh("/medicines/search", { q, limit: 50 });
const byBrand = Map.groupBy(items, (m) => `${m.brand} (${m.manufacturer?.name})`);
// each group lists its rows: m.product_name, m.strength, m.dosage_form, m.generic_name
Show generic_name on every row. A generic word also matches combinations, such as a medicine with two generics, and the full name is how the doctor tells them apart. Show medicine_type too, so an ayurvedic or unani medicine is never mistaken for an allopathic one with a similar name.
What if the list is longer than the screen?
Search returns up to 50 medicines and a total of every match. When total is larger than the list, ask for one more word: the maker’s name, or a second word of the generic. Every word must match, so the list narrows fast. A screen that needs every match can page through List medicines with the same q, as listing every brand of a generic shows.
What should the prescription store?
The medicine’s uuid and id, next to what the doctor wrote: the dose, the directions, the duration. Those are the doctor’s words, not Oushodh data. The terms of use let you keep data that has become part of your own records, and a prescription is one of them, so the name printed on it stays as it was.
The uuid never changes and the id is never given to another medicine. Medicines are never deleted, so a prescription from today still opens the right medicine next year with GET /v1/medicines/{ref}.
Can the app show the medicine’s text?
Get a medicine returns monograph: indications, dosage, interactions, contraindications, side effects and more, as its source wrote them. It is information for professionals, not medical advice. Show its source with it, and show it as reference, not as a suggestion.
Oushodh describes medicines. It never suggests a dose, a treatment or a substitute, and an app built on it should not present the data as if it did. The prescriber decides.
Where does the API key go in a telemedicine app?
On your server, never in the patient’s or the doctor’s app. Anyone who has the key can use your plan, and a key in a phone app can be copied out of it. The app calls your server, your server calls Oushodh. Adding the API to your software shows that client in PHP, Node and Python.