-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat(medical): add a medical module #3949
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rodrigobnogueira
wants to merge
4
commits into
faker-js:next
Choose a base branch
from
rodrigobnogueira:feat/medical-module
base: next
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
1173e5c
feat(medical): add a medical module
rodrigobnogueira afba785
chore(medical): commit generated files and tighten en locale data
rodrigobnogueira b7a3ddf
refactor(medical): replace the runtime drug-name generator with a sta…
rodrigobnogueira 741c09a
Merge branch 'next' into feat/medical-module
rodrigobnogueira File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| import type { LocaleEntry } from './definitions'; | ||
|
|
||
| /** | ||
| * The possible definitions related to medical and healthcare data. | ||
| */ | ||
| export type MedicalDefinition = LocaleEntry<{ | ||
| /** | ||
| * Medical specialties, e.g. `'Cardiology'`. | ||
| */ | ||
| specialty: string[]; | ||
|
|
||
| /** | ||
| * Hospital departments, e.g. `'Emergency Department'`. | ||
| */ | ||
| department: string[]; | ||
|
|
||
| /** | ||
| * Plausible medical condition names (without diagnosis codes), e.g. `'Type 2 Diabetes'`. | ||
| */ | ||
| condition: string[]; | ||
|
|
||
| /** | ||
| * Symptoms, e.g. `'Shortness of Breath'`. | ||
| */ | ||
| symptom: string[]; | ||
|
|
||
| /** | ||
| * Medical procedures, e.g. `'Appendectomy'`. | ||
| */ | ||
| procedure: string[]; | ||
|
|
||
| /** | ||
| * Common allergens, e.g. `'Penicillin'`. | ||
| */ | ||
| allergen: string[]; | ||
|
|
||
| /** | ||
| * Blood types, e.g. `'O+'`. | ||
| */ | ||
| blood_type: string[]; | ||
|
|
||
| /** | ||
| * Fictitious, brand-style drug names, e.g. `'Zolpraxen'`. | ||
| */ | ||
| drug_name: string[]; | ||
| }>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| export default [ | ||
| 'Adhesive', | ||
| 'Anesthesia', | ||
| 'Aspirin', | ||
| 'Bee Sting', | ||
| 'Celery', | ||
| 'Cockroaches', | ||
| 'Codeine', | ||
| 'Contrast Dye', | ||
| 'Corn', | ||
| 'Dust Mites', | ||
| 'Eggs', | ||
| 'Fish', | ||
| 'Fragrance', | ||
| 'Fructose', | ||
| 'Gluten', | ||
| 'Grass', | ||
| 'Ibuprofen', | ||
| 'Insect Bites', | ||
|
ST-DDT marked this conversation as resolved.
|
||
| 'Lactose', | ||
| 'Latex', | ||
| 'Lupin', | ||
| 'MSG', | ||
| 'Milk', | ||
| 'Mold', | ||
| 'Morphine', | ||
| 'Mustard', | ||
| 'Nickel', | ||
| 'Peanuts', | ||
| 'Penicillin', | ||
|
ST-DDT marked this conversation as resolved.
|
||
| 'Pet Dander', | ||
| 'Pollen', | ||
| 'Ragweed', | ||
| 'Red Dye', | ||
| 'Sesame', | ||
| 'Shellfish', | ||
| 'Soy', | ||
| 'Sulfa Drugs', | ||
| 'Sulfites', | ||
|
ST-DDT marked this conversation as resolved.
|
||
| 'Tree Nuts', | ||
| 'Wheat', | ||
| ]; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export default ['A+', 'A-', 'AB+', 'AB-', 'B+', 'B-', 'O+', 'O-']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,160 @@ | ||
| export default [ | ||
| 'Acne Vulgaris', | ||
| 'Acute Bronchitis', | ||
| 'Acute Kidney Injury', | ||
| 'Acute Sinusitis', | ||
| 'Allergic Rhinitis', | ||
| "Alzheimer's Disease", | ||
| 'Anal Fissure', | ||
| 'Anemia', | ||
| 'Angina Pectoris', | ||
| 'Anxiety Disorder', | ||
| 'Aortic Aneurysm', | ||
| 'Appendicitis', | ||
| 'Asthma', | ||
| 'Atrial Fibrillation', | ||
| 'Attention Deficit Hyperactivity Disorder', | ||
| 'Autism Spectrum Disorder', | ||
| "Barrett's Esophagus", | ||
| 'Basal Cell Carcinoma', | ||
| 'Benign Prostatic Hyperplasia', | ||
| 'Bipolar Disorder', | ||
| 'Bladder Cancer', | ||
| 'Brain Tumor', | ||
| 'Breast Cancer', | ||
| 'Bronchiolitis', | ||
| 'COVID-19', | ||
| 'Cardiomyopathy', | ||
| 'Carpal Tunnel Syndrome', | ||
| 'Cataracts', | ||
| 'Celiac Disease', | ||
| 'Cellulitis', | ||
| 'Cholecystitis', | ||
| 'Chronic Kidney Disease', | ||
| 'Chronic Liver Disease', | ||
| 'Chronic Obstructive Pulmonary Disease', | ||
| 'Chronic Pain Syndrome', | ||
| 'Chronic Sinusitis', | ||
| 'Cirrhosis', | ||
| 'Colon Cancer', | ||
| 'Congenital Heart Disease', | ||
| 'Congestive Heart Failure', | ||
| 'Coronary Artery Disease', | ||
| "Crohn's Disease", | ||
| 'Croup', | ||
| 'Cystic Fibrosis', | ||
| 'Deep Vein Thrombosis', | ||
| 'Dengue Fever', | ||
| 'Depression', | ||
| 'Diabetic Retinopathy', | ||
| 'Diverticulitis', | ||
| 'Eczema', | ||
| 'Emphysema', | ||
| 'Endocarditis', | ||
| 'Endometrial Cancer', | ||
| 'Endometriosis', | ||
| 'Epilepsy', | ||
| 'Erectile Dysfunction', | ||
| 'Esophagitis', | ||
| 'Essential Hypertension', | ||
| 'Fecal Incontinence', | ||
| 'Fibromyalgia', | ||
| 'Gastritis', | ||
| 'Gastroesophageal Reflux Disease', | ||
| 'Gestational Diabetes', | ||
| 'Glaucoma', | ||
| 'Glomerulonephritis', | ||
| 'Gout', | ||
| 'HIV/AIDS', | ||
| 'Hearing Loss', | ||
| 'Hemophilia', | ||
| 'Hemorrhoids', | ||
| 'Hepatitis C', | ||
| 'Hiatal Hernia', | ||
| 'Hyperlipidemia', | ||
| 'Hypertensive Heart Disease', | ||
| 'Hyperthyroidism', | ||
| 'Hypothyroidism', | ||
| 'Infectious Mononucleosis', | ||
| 'Influenza', | ||
| 'Interstitial Cystitis', | ||
| 'Interstitial Lung Disease', | ||
| 'Iron Deficiency Anemia', | ||
| 'Irritable Bowel Syndrome', | ||
| 'Kidney Cancer', | ||
| 'Kidney Stones', | ||
| 'Laryngitis', | ||
| 'Leukemia', | ||
| 'Leukopenia', | ||
| 'Lung Cancer', | ||
| 'Lupus', | ||
| 'Lyme Disease', | ||
| 'Lymphoma', | ||
| 'Macular Degeneration', | ||
| 'Melanoma', | ||
| "Meniere's Disease", | ||
| 'Migraine', | ||
| 'Multiple Sclerosis', | ||
| 'Myeloma', | ||
| 'Myocardial Infarction', | ||
| 'Narcolepsy', | ||
| 'Nephrotic Syndrome', | ||
| 'Nonalcoholic Fatty Liver Disease', | ||
| 'Obesity', | ||
| 'Osteoarthritis', | ||
| 'Osteoporosis', | ||
| 'Otitis Externa', | ||
| 'Otitis Media', | ||
| 'Ovarian Cancer', | ||
| 'Overactive Bladder', | ||
| 'Pancreatic Cancer', | ||
| 'Pancreatitis', | ||
| "Parkinson's Disease", | ||
| 'Peptic Ulcer Disease', | ||
| 'Pericarditis', | ||
| 'Peripheral Artery Disease', | ||
| 'Peripheral Neuropathy', | ||
| 'Pernicious Anemia', | ||
| 'Pharyngitis', | ||
| 'Pleural Effusion', | ||
| 'Pneumonia', | ||
| 'Pneumothorax', | ||
| 'Polycystic Kidney Disease', | ||
| 'Polycystic Ovary Syndrome', | ||
| 'Post-Traumatic Stress Disorder', | ||
| 'Preeclampsia', | ||
| 'Prostate Cancer', | ||
| 'Psoriasis', | ||
| 'Pulmonary Embolism', | ||
| 'Pulmonary Hypertension', | ||
| 'Pyelonephritis', | ||
| 'Restless Leg Syndrome', | ||
| 'Rheumatoid Arthritis', | ||
| 'Rosacea', | ||
| 'Sarcoidosis', | ||
| 'Schizophrenia', | ||
| 'Scleroderma', | ||
| 'Seizure Disorder', | ||
| 'Sepsis', | ||
| 'Shingles', | ||
| 'Sickle Cell Disease', | ||
| "Sjögren's Syndrome", | ||
| 'Sleep Apnea', | ||
| 'Squamous Cell Carcinoma', | ||
| 'Stress Incontinence', | ||
| 'Stroke', | ||
| 'Substance Use Disorder', | ||
| 'Thrombocytopenia', | ||
| 'Thyroid Cancer', | ||
| 'Tonsillitis', | ||
| 'Tuberculosis', | ||
| 'Type 1 Diabetes', | ||
| 'Type 2 Diabetes', | ||
| 'Ulcerative Colitis', | ||
| 'Urge Incontinence', | ||
| 'Urinary Tract Infection', | ||
| 'Uterine Fibroids', | ||
| 'Valvular Heart Disease', | ||
| 'Viral Gastroenteritis', | ||
| 'Vitamin D Deficiency', | ||
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| export default [ | ||
| 'Burn Unit', | ||
| 'Cardiac Care Unit (CCU)', | ||
| 'Cardiology Unit', | ||
| 'Dialysis Unit', | ||
| 'Emergency Department', | ||
| 'Endoscopy Suite', | ||
| 'Infusion Center', | ||
| 'Inpatient Ward', | ||
| 'Intensive Care Unit (ICU)', | ||
| 'Labor and Delivery', | ||
| 'Laboratory', | ||
| 'Maternity Ward', | ||
| 'Medical Observation Unit', | ||
| 'Neonatal Intensive Care Unit (NICU)', | ||
| 'Neurology Unit', | ||
| 'Occupational Therapy', | ||
| 'Oncology', | ||
| 'Operating Room', | ||
| 'Outpatient Clinic', | ||
| 'Pediatrics', | ||
| 'Pharmacy', | ||
| 'Physical Therapy', | ||
| 'Post-Anesthesia Care Unit (PACU)', | ||
| 'Psychiatric Ward', | ||
| 'Radiology', | ||
| 'Rehabilitation Unit', | ||
| 'Respiratory Therapy', | ||
| 'Sleep Lab', | ||
| 'Surgery', | ||
| 'Wound Care Center', | ||
| ]; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.