ConstThe compound's CID
The GHS classification, or undefined if PubChem has none
await getGhsClassification(180);
// Returns: { pictograms: [{ code: "GHS02", label: "Flammable", url: "https://..." }, ...],
// signal: "Danger", hazardStatements: ["H225: Highly Flammable liquid and vapor", ...] }
export const getGhsClassification: (cid: PubChemCID) => Promise<PubChemGhs | undefined> =
withTtlCache(getGhsClassificationUncached, { namespace: 'ghsByCid' });
Fetches a compound's GHS pictograms, signal word and hazard statements via PUG-View. Cached for three days.