14.3.1.7
Treatment-Emergent Adverse Events by System Organ Class, Preferred Term and Maximum Severity
Made 2026-10-17 from simulated data.
ONCO-EX
Table 14.3.1.7
Treatment-Emergent Adverse Events by System Organ Class, Preferred Term and Maximum Severity
Safety Analysis Set
| Standard of Care (N=150) | Clinwrightinib 200 mg (N=150) | |||||
|---|---|---|---|---|---|---|
| Mild | Moderate | Severe | Mild | Moderate | Severe | |
| Subjects with any event | 48 (32.0%) | 74 (49.3%) | 20 (13.3%) | 24 (16.0%) | 96 (64.0%) | 26 (17.3%) |
| CARDIAC DISORDERS | 24 (16.0%) | 9 (6.0%) | 1 (0.7%) | 36 (24.0%) | 17 (11.3%) | 5 (3.3%) |
| SINUS BRADYCARDIA | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) | 15 (10.0%) | 6 (4.0%) | 3 (2.0%) |
| MYOCARDIAL INFARCTION | 5 (3.3%) | 2 (1.3%) | 1 (0.7%) | 8 (5.3%) | 5 (3.3%) | 1 (0.7%) |
| ATRIOVENTRICULAR BLOCK SECOND DEGREE | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) | 8 (5.3%) | 0 (0.0%) | 0 (0.0%) |
| ATRIAL FIBRILLATION | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 5 (3.3%) | 3 (2.0%) | 0 (0.0%) |
| ATRIAL FLUTTER | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 4 (2.7%) | 1 (0.7%) | 1 (0.7%) |
| ATRIAL HYPERTROPHY | 3 (2.0%) | 3 (2.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| SUPRAVENTRICULAR EXTRASYSTOLES | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) | 2 (1.3%) | 1 (0.7%) | 0 (0.0%) |
| BRADYCARDIA | 3 (2.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| TACHYCARDIA | 2 (1.3%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| ATRIOVENTRICULAR BLOCK FIRST DEGREE | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| BUNDLE BRANCH BLOCK LEFT | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| CARDIAC DISORDER | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) |
| VENTRICULAR HYPERTROPHY | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| BUNDLE BRANCH BLOCK RIGHT | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| CARDIAC FAILURE CONGESTIVE | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| VENTRICULAR EXTRASYSTOLES | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) |
| CONGENITAL, FAMILIAL AND GENETIC DISORDERS | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 5 (3.3%) | 1 (0.7%) | 0 (0.0%) |
| VENTRICULAR SEPTAL DEFECT | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 5 (3.3%) | 1 (0.7%) | 0 (0.0%) |
| EAR AND LABYRINTH DISORDERS | 2 (1.3%) | 1 (0.7%) | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) |
| EAR PAIN | 2 (1.3%) | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| VERTIGO | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) |
| EYE DISORDERS | 10 (6.7%) | 3 (2.0%) | 1 (0.7%) | 4 (2.7%) | 3 (2.0%) | 0 (0.0%) |
| CONJUNCTIVITIS | 5 (3.3%) | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| VISION BLURRED | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 4 (2.7%) | 3 (2.0%) | 0 (0.0%) |
| EYE ALLERGY | 1 (0.7%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| EYE SWELLING | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| GLAUCOMA | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| EYE PRURITUS | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| GASTROINTESTINAL DISORDERS | 22 (14.7%) | 18 (12.0%) | 1 (0.7%) | 29 (19.3%) | 23 (15.3%) | 3 (2.0%) |
| NAUSEA | 6 (4.0%) | 1 (0.7%) | 0 (0.0%) | 15 (10.0%) | 10 (6.7%) | 1 (0.7%) |
| DIARRHOEA | 9 (6.0%) | 8 (5.3%) | 1 (0.7%) | 5 (3.3%) | 1 (0.7%) | 0 (0.0%) |
| VOMITING | 3 (2.0%) | 0 (0.0%) | 0 (0.0%) | 5 (3.3%) | 6 (4.0%) | 1 (0.7%) |
| SALIVARY HYPERSECRETION | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 6 (4.0%) | 1 (0.7%) | 0 (0.0%) |
| ABDOMINAL PAIN | 0 (0.0%) | 3 (2.0%) | 0 (0.0%) | 1 (0.7%) | 2 (1.3%) | 0 (0.0%) |
| DYSPEPSIA | 2 (1.3%) | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) |
| ABDOMINAL DISCOMFORT | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 2 (1.3%) | 0 (0.0%) |
| FLATULENCE | 1 (0.7%) | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| GASTROINTESTINAL HAEMORRHAGE | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 2 (1.3%) | 0 (0.0%) | 1 (0.7%) |
| HIATUS HERNIA | 2 (1.3%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| STOMACH DISCOMFORT | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 3 (2.0%) | 0 (0.0%) | 0 (0.0%) |
| GASTROOESOPHAGEAL REFLUX DISEASE | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| GENERAL DISORDERS AND ADMINISTRATION SITE CONDITIONS | 44 (29.3%) | 15 (10.0%) | 5 (3.3%) | 53 (35.3%) | 49 (32.7%) | 5 (3.3%) |
| APPLICATION SITE PRURITUS | 3 (2.0%) | 1 (0.7%) | 0 (0.0%) | 32 (21.3%) | 14 (9.3%) | 0 (0.0%) |
| APPLICATION SITE ERYTHEMA | 5 (3.3%) | 2 (1.3%) | 2 (1.3%) | 29 (19.3%) | 9 (6.0%) | 1 (0.7%) |
| APPLICATION SITE IRRITATION | 6 (4.0%) | 4 (2.7%) | 0 (0.0%) | 20 (13.3%) | 12 (8.0%) | 2 (1.3%) |
| APPLICATION SITE DERMATITIS | 18 (12.0%) | 4 (2.7%) | 0 (0.0%) | 13 (8.7%) | 6 (4.0%) | 1 (0.7%) |
| APPLICATION SITE VESICLES | 1 (0.7%) | 2 (1.3%) | 0 (0.0%) | 8 (5.3%) | 6 (4.0%) | 0 (0.0%) |
| OEDEMA PERIPHERAL | 9 (6.0%) | 2 (1.3%) | 1 (0.7%) | 3 (2.0%) | 2 (1.3%) | 0 (0.0%) |
| FATIGUE | 4 (2.7%) | 0 (0.0%) | 0 (0.0%) | 9 (6.0%) | 1 (0.7%) | 0 (0.0%) |
| APPLICATION SITE REACTION | 5 (3.3%) | 1 (0.7%) | 1 (0.7%) | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) |
| APPLICATION SITE PERSPIRATION | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 4 (2.7%) | 2 (1.3%) | 0 (0.0%) |
| CHILLS | 2 (1.3%) | 2 (1.3%) | 0 (0.0%) | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) |
| ASTHENIA | 4 (2.7%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) |
| APPLICATION SITE PAIN | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 2 (1.3%) | 2 (1.3%) | 0 (0.0%) |
| APPLICATION SITE SWELLING | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 2 (1.3%) | 2 (1.3%) | 0 (0.0%) |
| APPLICATION SITE URTICARIA | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 2 (1.3%) | 2 (1.3%) | 0 (0.0%) |
| CHEST DISCOMFORT | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 3 (2.0%) | 0 (0.0%) | 1 (0.7%) |
| APPLICATION SITE INDURATION | 2 (1.3%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| PYREXIA | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) |
| FEELING COLD | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) |
| MALAISE | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 2 (1.3%) | 0 (0.0%) |
| APPLICATION SITE DISCHARGE | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) |
| CHEST PAIN | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) |
| FEELING ABNORMAL | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) |
| HEPATOBILIARY DISORDERS | 3 (2.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| HYPERBILIRUBINAEMIA | 3 (2.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| IMMUNE SYSTEM DISORDERS | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) |
| SEASONAL ALLERGY | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) |
| INFECTIONS AND INFESTATIONS | 29 (19.3%) | 18 (12.0%) | 2 (1.3%) | 21 (14.0%) | 7 (4.7%) | 3 (2.0%) |
| UPPER RESPIRATORY TRACT INFECTION | 18 (12.0%) | 7 (4.7%) | 1 (0.7%) | 8 (5.3%) | 1 (0.7%) | 1 (0.7%) |
| NASOPHARYNGITIS | 0 (0.0%) | 2 (1.3%) | 0 (0.0%) | 7 (4.7%) | 1 (0.7%) | 1 (0.7%) |
| EAR INFECTION | 2 (1.3%) | 6 (4.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| INFLUENZA | 4 (2.7%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 2 (1.3%) | 0 (0.0%) |
| URINARY TRACT INFECTION | 4 (2.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 2 (1.3%) | 0 (0.0%) |
| LOWER RESPIRATORY TRACT INFECTION | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 5 (3.3%) | 0 (0.0%) | 0 (0.0%) |
| CERVICITIS | 3 (2.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| BRONCHITIS | 2 (1.3%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| GASTROENTERITIS VIRAL | 2 (1.3%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| CYSTITIS | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) |
| LOCALISED INFECTION | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| PNEUMONIA | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) |
| RHINITIS | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) |
| HORDEOLUM | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) |
| VAGINAL MYCOSIS | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| INJURY, POISONING AND PROCEDURAL COMPLICATIONS | 7 (4.7%) | 1 (0.7%) | 1 (0.7%) | 7 (4.7%) | 9 (6.0%) | 1 (0.7%) |
| CONTUSION | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 5 (3.3%) | 8 (5.3%) | 0 (0.0%) |
| HIP FRACTURE | 4 (2.7%) | 0 (0.0%) | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) | 1 (0.7%) |
| EXCORIATION | 3 (2.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| FACIAL BONES FRACTURE | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) |
| SKIN LACERATION | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| FALL | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) |
| INVESTIGATIONS | 17 (11.3%) | 10 (6.7%) | 2 (1.3%) | 9 (6.0%) | 4 (2.7%) | 0 (0.0%) |
| HEART RATE IRREGULAR | 6 (4.0%) | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| ELECTROCARDIOGRAM T WAVE INVERSION | 3 (2.0%) | 0 (0.0%) | 0 (0.0%) | 2 (1.3%) | 1 (0.7%) | 0 (0.0%) |
| HEART RATE INCREASED | 3 (2.0%) | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| ELECTROCARDIOGRAM ST SEGMENT DEPRESSION | 2 (1.3%) | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| WEIGHT DECREASED | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 2 (1.3%) | 2 (1.3%) | 0 (0.0%) |
| BLOOD CREATINE PHOSPHOKINASE INCREASED | 2 (1.3%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| BLOOD GLUCOSE INCREASED | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 3 (2.0%) | 0 (0.0%) | 0 (0.0%) |
| BLOOD URINE PRESENT | 1 (0.7%) | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| BLOOD CHOLESTEROL INCREASED | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) |
| CYSTOSCOPY | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| ELECTROCARDIOGRAM T WAVE AMPLITUDE DECREASED | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| BIOPSY | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) |
| BIOPSY PROSTATE | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) |
| BLOOD ALKALINE PHOSPHATASE INCREASED | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| METABOLISM AND NUTRITION DISORDERS | 13 (8.7%) | 3 (2.0%) | 0 (0.0%) | 5 (3.3%) | 3 (2.0%) | 0 (0.0%) |
| INCREASED APPETITE | 7 (4.7%) | 1 (0.7%) | 0 (0.0%) | 2 (1.3%) | 2 (1.3%) | 0 (0.0%) |
| DECREASED APPETITE | 2 (1.3%) | 1 (0.7%) | 0 (0.0%) | 3 (2.0%) | 1 (0.7%) | 0 (0.0%) |
| DEHYDRATION | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| DIABETES MELLITUS | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| FOOD CRAVING | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| MUSCULOSKELETAL AND CONNECTIVE TISSUE DISORDERS | 9 (6.0%) | 3 (2.0%) | 0 (0.0%) | 8 (5.3%) | 5 (3.3%) | 1 (0.7%) |
| BACK PAIN | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) | 4 (2.7%) | 2 (1.3%) | 0 (0.0%) |
| SHOULDER PAIN | 4 (2.7%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| ARTHRITIS | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) |
| FLANK PAIN | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 2 (1.3%) | 0 (0.0%) |
| ARTHRALGIA | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) |
| MUSCLE SPASMS | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 1 (0.7%) |
| PAIN IN EXTREMITY | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| NEOPLASMS BENIGN, MALIGNANT AND UNSPECIFIED (INCL CYSTS AND POLYPS) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 1 (0.7%) |
| PROSTATE CANCER | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 1 (0.7%) |
| NERVOUS SYSTEM DISORDERS | 15 (10.0%) | 7 (4.7%) | 1 (0.7%) | 33 (22.0%) | 17 (11.3%) | 1 (0.7%) |
| DIZZINESS | 3 (2.0%) | 1 (0.7%) | 0 (0.0%) | 15 (10.0%) | 8 (5.3%) | 0 (0.0%) |
| HEADACHE | 10 (6.7%) | 3 (2.0%) | 0 (0.0%) | 7 (4.7%) | 4 (2.7%) | 0 (0.0%) |
| SOMNOLENCE | 3 (2.0%) | 1 (0.7%) | 1 (0.7%) | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) |
| PAROSMIA | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 3 (2.0%) | 3 (2.0%) | 0 (0.0%) |
| PARKINSON'S DISEASE | 3 (2.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| AMNESIA | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 3 (2.0%) | 0 (0.0%) | 0 (0.0%) |
| SYNCOPE | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 2 (1.3%) | 1 (0.7%) | 0 (0.0%) |
| SYNCOPE VASOVAGAL | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 2 (1.3%) | 1 (0.7%) | 0 (0.0%) |
| BURNING SENSATION | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) |
| HYPERSOMNIA | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) |
| PARTIAL SEIZURES WITH SECONDARY GENERALISATION | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 1 (0.7%) |
| COGNITIVE DISORDER | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) |
| LETHARGY | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) |
| PSYCHOMOTOR HYPERACTIVITY | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| PSYCHIATRIC DISORDERS | 9 (6.0%) | 5 (3.3%) | 3 (2.0%) | 5 (3.3%) | 5 (3.3%) | 1 (0.7%) |
| CONFUSIONAL STATE | 4 (2.7%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| INSOMNIA | 0 (0.0%) | 3 (2.0%) | 0 (0.0%) | 0 (0.0%) | 2 (1.3%) | 0 (0.0%) |
| HALLUCINATION, VISUAL | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 1 (0.7%) | 1 (0.7%) |
| IRRITABILITY | 2 (1.3%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| LIBIDO DECREASED | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 2 (1.3%) | 1 (0.7%) | 0 (0.0%) |
| AGITATION | 1 (0.7%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| ANXIETY | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| COMPLETED SUICIDE | 1 (0.7%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| DELIRIUM | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) |
| DELUSION | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| DEPRESSED MOOD | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) |
| DISORIENTATION | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| HALLUCINATION | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) |
| RENAL AND URINARY DISORDERS | 2 (1.3%) | 2 (1.3%) | 0 (0.0%) | 2 (1.3%) | 3 (2.0%) | 0 (0.0%) |
| POLLAKIURIA | 2 (1.3%) | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| NEPHROLITHIASIS | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 2 (1.3%) | 1 (0.7%) | 0 (0.0%) |
| CALCULUS URETHRAL | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 2 (1.3%) | 0 (0.0%) |
| REPRODUCTIVE SYSTEM AND BREAST DISORDERS | 4 (2.7%) | 2 (1.3%) | 0 (0.0%) | 3 (2.0%) | 0 (0.0%) | 0 (0.0%) |
| BENIGN PROSTATIC HYPERPLASIA | 3 (2.0%) | 1 (0.7%) | 0 (0.0%) | 3 (2.0%) | 0 (0.0%) | 0 (0.0%) |
| PELVIC PAIN | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| RESPIRATORY, THORACIC AND MEDIASTINAL DISORDERS | 15 (10.0%) | 7 (4.7%) | 2 (1.3%) | 19 (12.7%) | 8 (5.3%) | 0 (0.0%) |
| COUGH | 2 (1.3%) | 2 (1.3%) | 1 (0.7%) | 10 (6.7%) | 3 (2.0%) | 0 (0.0%) |
| NASAL CONGESTION | 5 (3.3%) | 3 (2.0%) | 0 (0.0%) | 5 (3.3%) | 0 (0.0%) | 0 (0.0%) |
| POSTNASAL DRIP | 3 (2.0%) | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| PRODUCTIVE COUGH | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 4 (2.7%) | 1 (0.7%) | 0 (0.0%) |
| EMPHYSEMA | 3 (2.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| PHARYNGEAL ERYTHEMA | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 2 (1.3%) | 0 (0.0%) |
| RALES | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| RESPIRATORY TRACT CONGESTION | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) |
| DYSPNOEA | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| EPISTAXIS | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) |
| RHINORRHOEA | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) |
| SKIN AND SUBCUTANEOUS TISSUE DISORDERS | 35 (23.3%) | 26 (17.3%) | 1 (0.7%) | 51 (34.0%) | 42 (28.0%) | 8 (5.3%) |
| PRURITUS | 7 (4.7%) | 8 (5.3%) | 0 (0.0%) | 30 (20.0%) | 20 (13.3%) | 1 (0.7%) |
| ERYTHEMA | 15 (10.0%) | 6 (4.0%) | 1 (0.7%) | 20 (13.3%) | 9 (6.0%) | 5 (3.3%) |
| RASH | 8 (5.3%) | 7 (4.7%) | 0 (0.0%) | 11 (7.3%) | 8 (5.3%) | 1 (0.7%) |
| SKIN IRRITATION | 6 (4.0%) | 3 (2.0%) | 0 (0.0%) | 6 (4.0%) | 4 (2.7%) | 0 (0.0%) |
| HYPERHIDROSIS | 3 (2.0%) | 0 (0.0%) | 0 (0.0%) | 7 (4.7%) | 3 (2.0%) | 1 (0.7%) |
| BLISTER | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 3 (2.0%) | 3 (2.0%) | 0 (0.0%) |
| COLD SWEAT | 4 (2.7%) | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| RASH MACULO-PAPULAR | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 2 (1.3%) | 2 (1.3%) | 0 (0.0%) |
| RASH PRURITIC | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 2 (1.3%) | 2 (1.3%) | 0 (0.0%) |
| PRURITUS GENERALISED | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 3 (2.0%) | 0 (0.0%) | 0 (0.0%) |
| RASH PAPULAR | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 3 (2.0%) | 0 (0.0%) | 0 (0.0%) |
| SKIN ULCER | 3 (2.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| DERMATITIS ATOPIC | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| URTICARIA | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 1 (0.7%) | 0 (0.0%) |
| ACTINIC KERATOSIS | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) |
| ALOPECIA | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| DRUG ERUPTION | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| SKIN ODOUR ABNORMAL | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) |
| SOCIAL CIRCUMSTANCES | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) |
| ALCOHOL USE | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) |
| SURGICAL AND MEDICAL PROCEDURES | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 3 (2.0%) | 0 (0.0%) | 0 (0.0%) |
| SKIN LESION EXCISION | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 3 (2.0%) | 0 (0.0%) | 0 (0.0%) |
| EYE LASER SURGERY | 0 (0.0%) | 1 (0.7%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| VASCULAR DISORDERS | 8 (5.3%) | 3 (2.0%) | 0 (0.0%) | 3 (2.0%) | 3 (2.0%) | 1 (0.7%) |
| HYPERTENSION | 3 (2.0%) | 1 (0.7%) | 0 (0.0%) | 2 (1.3%) | 2 (1.3%) | 0 (0.0%) |
| HYPOTENSION | 2 (1.3%) | 2 (1.3%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| ORTHOSTATIC HYPOTENSION | 3 (2.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| WOUND HAEMORRHAGE | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 1 (0.7%) | 1 (0.7%) | 1 (0.7%) |
n (%): subjects (percent of N) by the most severe of their events in the row: all events, the system organ class, the preferred term.
System organ classes in alphabetical order, preferred terms by decreasing frequency in the total.
Source: ADAE.
Program: t-14-3-1-7.sas
Program t-14-3-1-7.sas
Version 1, written from Clinwright's patterns, 2026-10-17, checks passed.
/*==== 00-header ====*/
/*----------------------------------------------------------------------------
Output : Table 14.3.1.7 / Treatment-Emergent Adverse Events by System Organ Class, Preferred Term and Maximum Severity / Safety Analysis Set
Program : t-14-3-1-7.sas Reporting effort : CSR
ADaM : /work/adam (ADSL, ADLBC, ADLBH, ADVS, ADAE, ADEG, ADCM, ADMH, ADEX, ADRS, ADTR, ADTTE)
The header and the report step follow from the shell. The sections between
them make WORK.FINAL, one record per row of the table, in order:
_page the page (1 unless the output is paged); _pagelbl its heading or empty
_ord the row's order; _indent the label's indentation (0 = flush left)
_rowid the uuid of the shell row it shows (WORK._SHELL); one shell row may
have several (a category per value); a blank row's is blank-<n>
_kind label | stat | blank
rowlabel the row's label, as text
col1 Mild
col2 Moderate
col3 Severe
col4 Mild
col5 Moderate
col6 Severe
and set the big N of the column headers:
&_bign1_3 Standard of Care|(N=xx)
&_bign4_6 Clinwrightinib 200 mg|(N=xx)
/work/_lib/clinwright.sas has %ls_bign, %ls_count, %ls_stats, %ls_npct, %ls_num.
----------------------------------------------------------------------------*/
libname adam "/work/adam" access=readonly;
%include "/work/_lib/clinwright.sas";
%ls_setup;
/* The shell's rows, in order, with each column's value pattern (_xx1-_xx6). */
data work._shell;
length _page 8 _pagelbl $200 _ord 8 _indent 8 _rowid $36 _kind $5 _var $32 rowlabel $200 _xx1 $40 _xx2 $40 _xx3 $40 _xx4 $40 _xx5 $40 _xx6 $40;
_page = 1; _pagelbl = '';
_ord=1; _indent=0; _rowid='1c19a23d-7565-4755-9131-e35246ff224c'; _kind='stat'; _var=''; rowlabel='Subjects with any event'; _xx1='xx (xx.x%)'; _xx2='xx (xx.x%)'; _xx3='xx (xx.x%)'; _xx4='xx (xx.x%)'; _xx5='xx (xx.x%)'; _xx6='xx (xx.x%)'; output;
_ord=2; _indent=0; _rowid='blank-2'; _kind='blank'; _var=''; rowlabel=''; _xx1=''; _xx2=''; _xx3=''; _xx4=''; _xx5=''; _xx6=''; output;
_ord=3; _indent=0; _rowid='a1b85a74-dd2f-44ab-9c89-262d2a4dbd79'; _kind='stat'; _var='AEBODSYS'; rowlabel='[System organ class]'; _xx1='xx (xx.x%)'; _xx2='xx (xx.x%)'; _xx3='xx (xx.x%)'; _xx4='xx (xx.x%)'; _xx5='xx (xx.x%)'; _xx6='xx (xx.x%)'; output;
_ord=4; _indent=1; _rowid='f23de119-1c30-44c9-877a-3c6cac9bfd7c'; _kind='stat'; _var='AEDECOD'; rowlabel='[Preferred term]'; _xx1='xx (xx.x%)'; _xx2='xx (xx.x%)'; _xx3='xx (xx.x%)'; _xx4='xx (xx.x%)'; _xx5='xx (xx.x%)'; _xx6='xx (xx.x%)'; output;
run;
/*==== 10-data ====*/
/* Made from the output's analysis: the records of ADAE with TRTEMFL = 'Y' of the subjects of ADSL with SAFFL = 'Y', by TRT01A. */
/* The population's subjects, in each column they count in. */
data work._popc;
set adam.adsl(where=(saffl = 'Y'));
if trt01a in ('Standard of Care') then do; _col = 1; output; end;
if trt01a in ('Standard of Care') then do; _col = 2; output; end;
if trt01a in ('Standard of Care') then do; _col = 3; output; end;
if trt01a in ('Clinwrightinib 200 mg') then do; _col = 4; output; end;
if trt01a in ('Clinwrightinib 200 mg') then do; _col = 5; output; end;
if trt01a in ('Clinwrightinib 200 mg') then do; _col = 6; output; end;
keep usubjid _col;
run;
data work._pop1; set adam.adsl(where=(saffl = 'Y')); keep usubjid trt01a; run;
proc sort data=work._pop1; by usubjid; run;
/* The records of ADAE with TRTEMFL = 'Y', of the population's subjects, in each column. */
proc sort data=adam.adae(keep=usubjid saffl aedecod aebodsys aesev trtemfl where=(TRTEMFL = 'Y')) out=work._rec; by usubjid; run;
/* Each record's rank in SEVERE, MODERATE, MILD of its AESEV (the worst first): each row counts a subject in its worst. */
data work._rec;
set work._rec;
_wo = 99;
if aesev = 'SEVERE' then _wo = 1;
else if aesev = 'MODERATE' then _wo = 2;
else if aesev = 'MILD' then _wo = 3;
run;
data work._an;
merge work._rec(in=_r) work._pop1(in=_p);
by usubjid;
if _r and _p;
if trt01a in ('Standard of Care') and aesev = 'MILD' then do; _col = 1; output; end;
if trt01a in ('Standard of Care') and aesev = 'MODERATE' then do; _col = 2; output; end;
if trt01a in ('Standard of Care') and aesev = 'SEVERE' then do; _col = 3; output; end;
if trt01a in ('Clinwrightinib 200 mg') and aesev = 'MILD' then do; _col = 4; output; end;
if trt01a in ('Clinwrightinib 200 mg') and aesev = 'MODERATE' then do; _col = 5; output; end;
if trt01a in ('Clinwrightinib 200 mg') and aesev = 'SEVERE' then do; _col = 6; output; end;
run;
data work._cols; do _col = 1 to 6; output; end; run;
%ls_bign(data=work._popc, trt=_col, values=1|2|3|4|5|6|1 2 3|4 5 6, names=_lsn1 _lsn2 _lsn3 _lsn4 _lsn5 _lsn6 _bign1_3 _bign4_6);
/* Subjects and records per column. */
proc sort data=work._an(keep=usubjid _col _wo) out=work._u; by usubjid _wo; run;
data work._u;
set work._u;
by usubjid;
retain _best;
if first.usubjid then _best = _wo;
if _wo = _best;
drop _best _wo;
run;
proc sort data=work._u; by _col usubjid; run;
data work._c;
set work._u;
by _col usubjid;
retain _n _e;
if first._col then do; _n = 0; _e = 0; end;
_e = _e + 1;
if first.usubjid then _n = _n + 1;
if last._col then output;
keep _col _n _e;
run;
proc transpose data=work._c out=work._tn(drop=_name_) prefix=_n; id _col; var _n; run;
proc transpose data=work._c out=work._te(drop=_name_) prefix=_e; id _col; var _e; run;
data work._z; _z = 1; run;
data work._g0;
merge work._z work._tn work._te;
array _nn{6} _n1-_n6;
array _ee{6} _e1-_e6;
do _i = 1 to 6; _nn{_i} = sum(_nn{_i}, 0); _ee{_i} = sum(_ee{_i}, 0); end;
_tot = sum(of _n1-_n6);
drop _i _z;
run;
/* Subjects with any event: any. */
data work._f; set work._g0; do _col = 1 to 6; output; end; run;
data work._k1;
length _rowid $36 _label _pagelbl $200 _v $200;
set work._f;
array _nn{6} _n1-_n6;
array _ee{6} _e1-_e6;
_rowid = '1c19a23d-7565-4755-9131-e35246ff224c';
_page = 1;
_pagelbl = '';
_k0 = 1;
_k1 = 0; _k2 = 0;
_k3 = 0; _k4 = 0;
_label = '';
_v = strip(ifc(missing(_nn{_col}), '-', %ls_num(_nn{_col}, 0))) || ' (' || strip(ifc(missing(ifn(input(symget(cats('_lsn', _col)), 8.) > 0, 100 * _nn{_col} / max(input(symget(cats('_lsn', _col)), 8.), 1), .)), '-', %ls_num(ifn(input(symget(cats('_lsn', _col)), 8.) > 0, 100 * _nn{_col} / max(input(symget(cats('_lsn', _col)), 8.), 1), .), 1))) || '%)';
keep _rowid _label _page _pagelbl _k0 _k1 _k2 _k3 _k4 _col _v;
run;
/* Per value of aebodsys: subjects and records per column. */
proc sort data=work._an(keep=usubjid _col aebodsys _wo where=(not missing(aebodsys))) out=work._u; by aebodsys usubjid _wo; run;
data work._u;
set work._u;
by aebodsys usubjid;
retain _best;
if first.usubjid then _best = _wo;
if _wo = _best;
drop _best _wo;
run;
proc sort data=work._u; by aebodsys _col usubjid; run;
data work._c;
set work._u;
by aebodsys _col usubjid;
retain _n _e;
if first._col then do; _n = 0; _e = 0; end;
_e = _e + 1;
if first.usubjid then _n = _n + 1;
if last._col then output;
keep aebodsys _col _n _e;
run;
proc transpose data=work._c out=work._tn(drop=_name_) prefix=_n; by aebodsys; id _col; var _n; run;
proc transpose data=work._c out=work._te(drop=_name_) prefix=_e; by aebodsys; id _col; var _e; run;
data work._g1;
merge work._tn work._te; by aebodsys;
array _nn{6} _n1-_n6;
array _ee{6} _e1-_e6;
do _i = 1 to 6; _nn{_i} = sum(_nn{_i}, 0); _ee{_i} = sum(_ee{_i}, 0); end;
_tot = sum(of _n1-_n6);
drop _i;
run;
proc sort data=work._g1; by aebodsys; run;
data work._g1;
set work._g1;
_o1 = _n_;
run;
/* [System organ class]: npct of AEBODSYS. */
data work._f; set work._g1; do _col = 1 to 6; output; end; run;
proc sort data=work._f; by aebodsys _col; run;
data work._k2;
length _rowid $36 _label _pagelbl $200 _v $200;
set work._f;
array _nn{6} _n1-_n6;
array _ee{6} _e1-_e6;
_rowid = 'a1b85a74-dd2f-44ab-9c89-262d2a4dbd79';
_page = 1;
_pagelbl = '';
_k0 = 3;
_k1 = _o1; _k2 = 0;
_k3 = 0; _k4 = 0;
_label = strip(aebodsys);
_v = strip(ifc(missing(_nn{_col}), '-', %ls_num(_nn{_col}, 0))) || ' (' || strip(ifc(missing(ifn(input(symget(cats('_lsn', _col)), 8.) > 0, 100 * _nn{_col} / max(input(symget(cats('_lsn', _col)), 8.), 1), .)), '-', %ls_num(ifn(input(symget(cats('_lsn', _col)), 8.) > 0, 100 * _nn{_col} / max(input(symget(cats('_lsn', _col)), 8.), 1), .), 1))) || '%)';
keep _rowid _label _page _pagelbl _k0 _k1 _k2 _k3 _k4 _col _v;
run;
/* Per value of aebodsys and aedecod: subjects and records per column. */
proc sort data=work._an(keep=usubjid _col aebodsys aedecod _wo where=(not missing(aebodsys) and not missing(aedecod))) out=work._u; by aebodsys aedecod usubjid _wo; run;
data work._u;
set work._u;
by aebodsys aedecod usubjid;
retain _best;
if first.usubjid then _best = _wo;
if _wo = _best;
drop _best _wo;
run;
proc sort data=work._u; by aebodsys aedecod _col usubjid; run;
data work._c;
set work._u;
by aebodsys aedecod _col usubjid;
retain _n _e;
if first._col then do; _n = 0; _e = 0; end;
_e = _e + 1;
if first.usubjid then _n = _n + 1;
if last._col then output;
keep aebodsys aedecod _col _n _e;
run;
proc transpose data=work._c out=work._tn(drop=_name_) prefix=_n; by aebodsys aedecod; id _col; var _n; run;
proc transpose data=work._c out=work._te(drop=_name_) prefix=_e; by aebodsys aedecod; id _col; var _e; run;
data work._g2;
merge work._tn work._te; by aebodsys aedecod;
array _nn{6} _n1-_n6;
array _ee{6} _e1-_e6;
do _i = 1 to 6; _nn{_i} = sum(_nn{_i}, 0); _ee{_i} = sum(_ee{_i}, 0); end;
_tot = sum(of _n1-_n6);
drop _i;
run;
proc sort data=work._g2; by aebodsys descending _tot aedecod; run;
data work._g2;
set work._g2;
by aebodsys;
retain _r;
if first.aebodsys then _r = 0;
_r = _r + 1;
_o2 = _r;
drop _r;
run;
proc sort data=work._g2; by aebodsys; run;
proc sort data=work._g1(keep=aebodsys _o1) out=work._gp; by aebodsys; run;
data work._g2; merge work._g2(in=_in) work._gp; by aebodsys; if _in; run;
/* [Preferred term]: npct of AEDECOD. */
data work._f; set work._g2; do _col = 1 to 6; output; end; run;
proc sort data=work._f; by aebodsys aedecod _col; run;
data work._k3;
length _rowid $36 _label _pagelbl $200 _v $200;
set work._f;
array _nn{6} _n1-_n6;
array _ee{6} _e1-_e6;
_rowid = 'f23de119-1c30-44c9-877a-3c6cac9bfd7c';
_page = 1;
_pagelbl = '';
_k0 = 3;
_k1 = _o1; _k2 = 4;
_k3 = _o2; _k4 = 0;
_label = strip(aedecod);
_v = strip(ifc(missing(_nn{_col}), '-', %ls_num(_nn{_col}, 0))) || ' (' || strip(ifc(missing(ifn(input(symget(cats('_lsn', _col)), 8.) > 0, 100 * _nn{_col} / max(input(symget(cats('_lsn', _col)), 8.), 1), .)), '-', %ls_num(ifn(input(symget(cats('_lsn', _col)), 8.) > 0, 100 * _nn{_col} / max(input(symget(cats('_lsn', _col)), 8.), 1), .), 1))) || '%)';
keep _rowid _label _page _pagelbl _k0 _k1 _k2 _k3 _k4 _col _v;
run;
data work._cells; set work._k1 work._k2 work._k3; run;
proc sort data=work._cells; by _page _pagelbl _k0 _k1 _k2 _k3 _k4 _rowid _label _col; run;
proc transpose data=work._cells out=work._wide(drop=_name_) prefix=col;
by _page _pagelbl _k0 _k1 _k2 _k3 _k4 _rowid _label;
id _col;
var _v;
run;
proc sort data=work._wide; by _rowid; run;
proc sort data=work._shell(drop=_page _pagelbl) out=work._rows; by _rowid; run;
data work._inst;
merge work._wide(in=_w) work._rows(in=_s);
by _rowid;
if _w and _s;
if _label ne '' then rowlabel = _label;
run;
data work._fixed;
set work._shell;
if _rowid not in ('1c19a23d-7565-4755-9131-e35246ff224c' 'a1b85a74-dd2f-44ab-9c89-262d2a4dbd79' 'f23de119-1c30-44c9-877a-3c6cac9bfd7c');
_k0 = _ord; _k1 = 0; _k2 = 0; _k3 = 0; _k4 = 0;
run;
data work.final;
length col1 col2 col3 col4 col5 col6 $200 _pagelbl $200;
set work._inst work._fixed;
run;
proc sort data=work.final; by _page _k0 _k1 _k2 _k3 _k4; run;
data work.final;
set work.final;
_ord = _n_;
keep _page _pagelbl _ord _indent _rowid _kind rowlabel col1 col2 col3 col4 col5 col6;
run;
/*==== 90-report ====*/
/* 90-report: from the shell; the titles, columns, headers and footnotes are not changed here. */
%ls_need(_bign1_3 _bign4_6);
%ls_final_check(columns=_page _pagelbl _ord _indent _rowid _kind rowlabel col1 col2 col3 col4 col5 col6);
proc sort data=work.final out=work._report; by _page _ord; run;
data work._report;
set work._report;
/* Two spaces per step of indentation: the label column keeps leading spaces (asis=on). */
if _indent > 0 then rowlabel = repeat(' ', 2 * _indent - 1) || rowlabel;
run;
%let _lspaged = 0;
proc sql noprint; select count(*) into :_lspaged trimmed from work._report where _pagelbl ne ''; quit;
options orientation=landscape;
ods listing close;
ods rtf file="/work/out/t-14-3-1-7.rtf" style=journal;
title1 j=l "ONCO-EX" j=r "Page ~{thispage} of ~{lastpage}";
title2 j=c "Table 14.3.1.7";
title3 j=c "Treatment-Emergent Adverse Events by System Organ Class, Preferred Term and Maximum Severity";
title4 j=c "Safety Analysis Set";
footnote1 j=l "n (%): subjects (percent of N) by the most severe of their events in the row: all events, the system organ class, the preferred term.";
footnote2 j=l "System organ classes in alphabetical order, preferred terms by decreasing frequency in the total.";
footnote3 j=l "Source: ADAE.";
footnote4 j=l "Program: t-14-3-1-7.sas";
%macro _ls_report;
proc report data=work._report nowd split='|' missing style(report)={width=100%};
column _page _pagelbl _ord _indent _kind rowlabel ("Standard of Care|(N=&_bign1_3.)" col1 col2 col3) ("Clinwrightinib 200 mg|(N=&_bign4_6.)" col4 col5 col6);
define _page / order order=internal noprint;
define _pagelbl / order noprint;
define _ord / order order=internal noprint;
define _indent / display noprint;
define _kind / display noprint;
define rowlabel / display "" style(column)={cellwidth=40% asis=on} style(header)={just=l};
define col1 / display "Mild" style(column)={cellwidth=10% just=c} style(header)={just=c};
define col2 / display "Moderate" style(column)={cellwidth=10% just=c} style(header)={just=c};
define col3 / display "Severe" style(column)={cellwidth=10% just=c} style(header)={just=c};
define col4 / display "Mild" style(column)={cellwidth=10% just=c} style(header)={just=c};
define col5 / display "Moderate" style(column)={cellwidth=10% just=c} style(header)={just=c};
define col6 / display "Severe" style(column)={cellwidth=10% just=c} style(header)={just=c};
%if &_lspaged > 0 %then %do;
compute before _pagelbl / style={just=l};
line _pagelbl $200.;
endcomp;
%end;
break after _page / page;
run;
%mend _ls_report;
%_ls_report;
ods rtf close;
ods listing;
%ls_final_export;