Skip to content

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

ts
function allergen(): string;

Examples

ts
faker.medical.allergen() // 'Penicillin'

bloodType

Returns a random blood type.

Available since v10.6.0

Returns: string

ts
function bloodType(): string;

Examples

ts
faker.medical.bloodType() // 'O+'

condition

Returns a random, plausible medical condition name (without any diagnosis code).

Available since v10.6.0

Returns: string

ts
function condition(): string;

Examples

ts
faker.medical.condition() // 'Type 2 Diabetes'

department

Returns a random hospital department.

Available since v10.6.0

Returns: string

ts
function department(): string;

Examples

ts
faker.medical.department() // 'Emergency Department'

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

ts
function drugName(): string;

Examples

ts
faker.medical.drugName() // 'Zolpraxen'

procedure

Returns a random medical procedure.

Available since v10.6.0

Returns: string

ts
function procedure(): string;

Examples

ts
faker.medical.procedure() // 'Appendectomy'

specialty

Returns a random medical specialty.

Available since v10.6.0

Returns: string

ts
function specialty(): string;

Examples

ts
faker.medical.specialty() // 'Cardiology'

symptom

Returns a random symptom.

Available since v10.6.0

Returns: string

ts
function symptom(): string;

Examples

ts
faker.medical.symptom() // 'Shortness of Breath'

Released under the MIT License.