Medical
Module to generate plausible medical and healthcare related entries.
Overview
Generate plausible, non-clinical healthcare data for tests, demos, and fixtures: specialties, hospital departments, conditions, symptoms, procedures, allergens, blood types, and fictitious drug names.
All values are intentionally generic or invented. Real diagnosis codes (e.g. ICD-10), real medicine names, and correlated patient records are deliberately out of scope — this data must never be used for clinical purposes.
allergen
Returns a random allergen.
Available since v10.6.0
Returns: string
function allergen(): string;
Examples
faker.medical.allergen() // 'Penicillin'
Source
bloodType
Returns a random blood type.
Available since v10.6.0
Returns: string
function bloodType(): string;
Examples
faker.medical.bloodType() // 'O+'
Source
condition
Returns a random, plausible medical condition name (without any diagnosis code).
Available since v10.6.0
Returns: string
function condition(): string;
Examples
faker.medical.condition() // 'Type 2 Diabetes'
Source
department
Returns a random hospital department.
Available since v10.6.0
Returns: string
function department(): string;
Examples
faker.medical.department() // 'Emergency Department'
Source
drugName
Returns a fictitious, brand-style drug name.
All values are invented: they were generated from neutral morphemes and
screened against real brand names, WHO INN generic names, and INN class
stems (e.g. -statin, -pril), so they do not resolve to real medicines.
Available since v10.6.0
Returns: string
function drugName(): string;
Examples
faker.medical.drugName() // 'Zolpraxen'
Source
procedure
Returns a random medical procedure.
Available since v10.6.0
Returns: string
function procedure(): string;
Examples
faker.medical.procedure() // 'Appendectomy'
Source
specialty
Returns a random medical specialty.
Available since v10.6.0
Returns: string
function specialty(): string;
Examples
faker.medical.specialty() // 'Cardiology'
Source
symptom
Returns a random symptom.
Available since v10.6.0
Returns: string
function symptom(): string;
Examples
faker.medical.symptom() // 'Shortness of Breath'