ChemPal Documentation - v1.17.0
    Preparing search index...

    Variable getGhsClassificationConst

    getGhsClassification: (cid: PubChemCID) => Promise<PubChemGhs | undefined> = ...

    Fetches a compound's GHS pictograms, signal word and hazard statements via PUG-View. Cached for three days.

    Type declaration

    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' });