Skip to main content

Generate realistic healthcare test data in 6 languages (en, es, pt, zh, fr, de): 150+ diseases, 300+ ICD-10 codes, 400+ medications, procedures, and more

Project description

faker-healthcare-provider

Generate realistic healthcare/medical test data in 6 languages: English, Spanish, Portuguese, Chinese, French, and German.

Installation

pip install faker-healthcare-provider

Supported Languages

  • 🇺🇸 English (en_US) - Default
  • 🇪🇸 Spanish (es_ES)
  • 🇧🇷 Portuguese (pt_BR - Brazil)
  • 🇨🇳 Chinese (zh_CN - Simplified)
  • 🇫🇷 French (fr_FR)
  • 🇩🇪 German (de_DE)

Usage

Basic Usage (English)

from faker import Faker
from faker_healthcare import HealthcareProvider

fake = Faker()
fake.add_provider(HealthcareProvider)

fake.diagnosis()          # 'Type 2 Diabetes (E11.9)'
fake.disease()            # 'Essential Hypertension'
fake.icd10_code()         # 'I10'
fake.generic_drug()       # 'Metformin'
fake.medical_specialty()  # 'Cardiology'
fake.blood_type()         # 'O+'

Multi-Language Support

from faker import Faker
from faker_healthcare import HealthcareProvider

# Spanish
fake_es = Faker('es_ES')
fake_es.add_provider(HealthcareProvider)
fake_es.disease()  # 'Diabetes Tipo 2'

# Portuguese (Brazil)
fake_pt = Faker('pt_BR')
fake_pt.add_provider(HealthcareProvider)
fake_pt.disease()  # 'Diabetes Tipo 2'

# Chinese (Simplified)
fake_zh = Faker('zh_CN')
fake_zh.add_provider(HealthcareProvider)
fake_zh.disease()  # '2型糖尿病'

# French
fake_fr = Faker('fr_FR')
fake_fr.add_provider(HealthcareProvider)
fake_fr.disease()  # 'Diabète de Type 2'

# German
fake_de = Faker('de_DE')
fake_de.add_provider(HealthcareProvider)
fake_de.disease()  # 'Typ-2-Diabetes'

Available Methods

Method Example
diagnosis() Type 2 Diabetes (E11.9)
disease() Essential Hypertension, Asthma
icd10_code() E11.9, I10, J45.909
medical_specialty() Cardiology, Neurology
hospital_department() Emergency, ICU, Radiology
generic_drug() Metformin, Lisinopril
brand_drug() Lipitor, Prozac, Ozempic
symptom() Fever, Headache, Fatigue
blood_type() A+, O-, AB+
allergy() Penicillin, Peanuts
medical_procedure() MRI Scan, Blood Test
insurance_plan() PPO, HMO, Medicare
vital_sign() Blood Pressure, Heart Rate

Locale-Specific Features

Each locale includes:

  • Translated medical terminology (diseases, symptoms, procedures)
  • Locale-specific insurance systems:
    • 🇺🇸 US: Medicare, PPO, HMO
    • 🇪🇸 Spain: Sistema Nacional de Salud, Sanitas, Adeslas
    • 🇧🇷 Brazil: SUS, Unimed, Amil
    • 🇨🇳 China: 城镇职工基本医疗保险, 商业医疗保险
    • 🇫🇷 France: Sécurité Sociale, Mutuelle
    • 🇩🇪 Germany: GKV, PKV

Universal data (same across all languages):

  • ICD-10 codes (international standard)
  • Blood types (universal notation)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

faker_healthcare_provider-2.0.0.tar.gz (44.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

faker_healthcare_provider-2.0.0-py3-none-any.whl (58.6 kB view details)

Uploaded Python 3

File details

Details for the file faker_healthcare_provider-2.0.0.tar.gz.

File metadata

File hashes

Hashes for faker_healthcare_provider-2.0.0.tar.gz
Algorithm Hash digest
SHA256 58baf3f4dd7a5f6f6449b432c97845ab29146c44d518b594e088a0581a9a36bd
MD5 0a8bb8cb93f6d7403bdb7e600d7df9d9
BLAKE2b-256 f6dafdaf44534dfe5700620394c7294488085dbc8e20f4e50755067d1af2df36

See more details on using hashes here.

File details

Details for the file faker_healthcare_provider-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for faker_healthcare_provider-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f77480f0fc7c9184394792ecbccecbd2842e5cffe32c7ab56bd7dcec8bd548ac
MD5 ed9bd13e90c1b160b7f2e9dd3c23fad9
BLAKE2b-256 2180e53d1d669f0fd545c4bf28ad4708a19285ea6a6d794335b02a4a841ec0ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page