{
    "collection": "reports",
    "class": "schema",
    "_id": "reports/schema/reportipd",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Leprosy and TB",
    "type": "object",
    "properties": {
        "those_who_are_admitted_in_the_ward": {
            "line_number": "1",
            "sw": "Waliolazwa Wodini",
            "en": "Those who are admitted into the ward"
        },
        "acute_flacid_paralysis": {
            "line_number": "2",
            "sw": "Acute Flacid Paralysis",
            "en": "Acute Flacid Paralysis",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Acute Flacid Paralysis'"
        },
        "cholera": {
            "line_number": "3",
            "sw": "Cholera",
            "en": "Cholera",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Cholera'"
        },
        "dysentery": {
            "line_number": "4",
            "sw": "Dysentery",
            "en": "Dysentery",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Dysentery'"
        },
        "measles": {
            "line_number": "5",
            "sw": "Measles",
            "en": "Measles",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Measles'"
        },
        "meningitis": {
            "line_number": "6",
            "sw": "Meningitis",
            "en": "Meningitis",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Meningitis'"
        },
        "tetanus_neonatal": {
            "line_number": "7",
            "sw": "Tetanus. Neonatal",
            "en": "Tetanus. Neonatal",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Tetanus. Neonatal'"
        },
        "plague": {
            "line_number": "8",
            "sw": "Plague",
            "en": "Plague",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Plague'"
        },
        "relapsing_fever_louse_borne_typhus": {
            "line_number": "9",
            "sw": "Relapsing Fever Louse borne Typhus",
            "en": "Relapsing Fever Louse borne Typhus",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Relapsing Fever Louse borne Typhus'"
        },
        "typhoid": {
            "line_number": "10",
            "sw": "Typhoid",
            "en": "Typhoid",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Typhoid'"
        },
        "diarrhea_acute": {
            "line_number": "11",
            "sw": "Diarrhea Acute <14days",
            "en": "Diarrhea Acute <14days",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Diarrhea Acute <14days'"
        },
        "diarrhea_chronic": {
            "line_number": "1",
            "sw": "Diarrhea Chronic >or= 14days",
            "en": "Diarrhea Chronic >or= 14days",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Diarrhea Chronic >or= 14days'"
        },
        "malaria_severe_complicated_blood_side_positive": {
            "line_number": "13a",
            "sw": "Malaria Severe/Complicated Blood Side Positive",
            "en": "Maleria Severe/Complicated Blood Side Positive",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Maleria Severe/Complicated Blood Side Positive'"
        },
        "malaria_severe_complicated_mrdt_positive": {
            "line_number": "13b",
            "sw": "Malaria Severe/Complicated mRDT Positive",
            "en": "Maleria Severe/Complicated mRDT Positive",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Maleria Severe/Complicated mRDT Positive'"
        },
        "malaria_severe_complicated_clinical_no_test": {
            "line_number": "13c",
            "sw": "Malaria Severe/Complicated Clinical no test",
            "en": "Maleria Severe/Complicated Clinical no test",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Maleria Severe/Complicated Clinical no test'"
        },
        "schistosomiasis": {
            "line_number": "14",
            "sw": "Schistosomiasis",
            "en": "Schistosomiasis",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Schistosomiasis'"
        },
        "sti_genital_discharge_syndrome_gds": {
            "line_number": "15",
            "sw": "STI Genital Discharge Syndrome GDS",
            "en": "STI Genital Discharge Syndrome GDS",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'STI Genital Discharge Syndrome GDS'"
        },
        "sti_genital_ulcer_diseases_gud": {
            "line_number": "16",
            "sw": "STI Genital Ulcer Diseases GUD",
            "en": "STI Genital Ulcer Diseases GUD",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'STI Genital Ulcer Diseases GUD'"
        },
        "sti_pelvic_inflammatory_diseases": {
            "line_number": "17",
            "sw": "STI Pelvic Inflammatory diseases PID",
            "en": "STI Pelvic Inflammatory diseases PID",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'STI Pelvic Inflammatory diseases PID'"
        },
        "sexually_transmitted_infection_other": {
            "line_number": "18",
            "sw": "Sexually Transmitted Infection Other",
            "en": "Sexually Transmitted Infection Other",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Sexually Transmitted Infection Other'"
        },
        "gynaecological_diseases": {
            "line_number": "19",
            "sw": "Gynaecological diseases Other",
            "en": "Gynaecological diseases Other",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Gynaecological diseases Other'"
        },
        "tuberculosis": {
            "line_number": "20",
            "sw": "Tuberculosis",
            "en": "Tuberculosis",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Tuberculosis'"
        },
        "leprosy": {
            "line_number": "21",
            "sw": "Leprosy",
            "en": "Leprosy",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Leprosy'"
        },
        "diabetes_mellitus": {
            "line_number": "22",
            "sw": "Diabetes Mellitus",
            "en": "Diabetes Mellitus",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Diabetes Mellitus'"
        },
        "infant_of_diabetic_mother": {
            "line_number": "23",
            "sw": "Infant of Diabetic Mother",
            "en": "Infant of Diabetic Mother",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Infant of Diabetic Mother'"
        },
        "kwashiorkor": {
            "line_number": "24",
            "sw": "Kwashiorkor",
            "en": "Kwashiorkor",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Kwashiorkor'"
        },
        "marasmus": {
            "line_number": "25",
            "sw": "Marasmus",
            "en": "Marasmus",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Marasmus'"
        },
        "marasmic_kwashiorkor": {
            "line_number": "26",
            "sw": "Marasmic_kwashiorkor",
            "en": "Marasmic_kwashiorkor",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Marasmic_kwashiorkor'"
        },
        "moderate_malnutrition": {
            "line_number": "27",
            "sw": "Moderate Malnutrition",
            "en": "Moderate Malnutrition",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Moderate Malnutrition'"
        },
        "nutritional_disoders_other": {
            "line_number": "28",
            "sw": "Nutritional Disorders Other",
            "en": "Nutritional Disorders Other",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Nutritional Disorders Other'"
        },
        "thyroid_diseases": {
            "line_number": "29",
            "sw": "Thyroid Diseases",
            "en": "Thyroid Diseases",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Thyroid Diseases'"
        },
        "sickle_cell_disease": {
            "line_number": "30",
            "sw": "Sickle cell Disease",
            "en": "Sickle cell Disease",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Sickle cell Disease'"
        },
        "anaemia_mild_moderate": {
            "line_number": "31",
            "sw": "Anaemia Mild/Moderate",
            "en": "Anaemia Mild/Moderate",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Anaemia Mild/Moderate'"
        },
        "anaemia_severe": {
            "line_number": "32",
            "sw": "Anaemia Severe",
            "en": "Anaemia Severe",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Anaemia Severe'"
        },
        "psychoses": {
            "line_number": "33",
            "sw": "Psychoses",
            "en": "Psychoses",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Psychoses'"
        },
        "neuroses": {
            "line_number": "34",
            "sw": "Neuroses",
            "en": "Neuroses",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Neuroses'"
        },
        "cerebral_palsy": {
            "line_number": "35",
            "sw": "Cerebral Palsy",
            "en": "Cerebral Palsy",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Cerebral Palsy'"
        },
        "epilepsy": {
            "line_number": "36",
            "sw": "Epilepsy",
            "en": "Epilepsy",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Epilepsy'"
        },
        "ear_diseases_non_infectious": {
            "line_number": "37",
            "sw": "Ear Diseases non-infectious",
            "en": "Ear Diseases non-infectious",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Ear Diseases non-infectious'"
        },
        "ear_infection_acute": {
            "line_number": "38",
            "sw": "Ear infection Acute",
            "en": "Ear infection Acute",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Ear infection Acute'"
        },
        "ear_infection_chronic": {
            "line_number": "39",
            "sw": "Ear Infection Chronic",
            "en": "Ear Infection Chronic",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Ear Infection Chronic'"
        },
        "eye_infections_viral_keratoconjunctivitis": {
            "line_number": "40",
            "sw": "Eye Infections Viral Keratoconjunctivitis",
            "en": "Eye Infections Viral Keratoconjunctivitis",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Eye Infections Viral Keratoconjunctivitis'"
        },
        "eye_infections_other": {
            "line_number": "41",
            "sw": "Eye Infections Other",
            "en": "Eye Infections Other",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Eye Infections Other'"
        },
        "eye_diseases_non-infectious": {
            "line_number": "42",
            "sw": "Eye Diseases Non-infectious",
            "en": "Eye Diseases Non-infectious",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Eye Diseases Non-infectious'"
        },
        "cardiac_failure": {
            "line_number": "43",
            "sw": "Cardiac Failure",
            "en": "Cardiac Failure",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Cardiac Failure'"
        },
        "hypertension_severe": {
            "line_number": "44",
            "sw": "Hypertension severe",
            "en": "Hypertension severe",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Hypertension severe'"
        },
        "rheumatic_fever": {
            "line_number": "45",
            "sw": "Rheumatic Fever",
            "en": "Rheumatic Fever",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Rheumatic Fever'"
        },
        "cardiovascular_disorders_other": {
            "line_number": "46",
            "sw": "Cardiovascular Disorders Other",
            "en": "Cardiovascular Disorders Other",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Cardiovascular Disorders Other'"
        },
        "broncial_asthma_severe": {
            "line_number": "47",
            "sw": "Broncial Asthma Severe",
            "en": "Broncial Asthma Severe",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Broncial Asthma Severe'"
        },
        "upper_respiratory_infections_pharyngitis_tonsillitis_rhinitis": {
            "line_number": "48",
            "sw": "Upper Respiratory Infections Pharyngitis/Tonsillitis/Rhinitis",
            "en": "Upper Respiratory Infections Pharyngitis/Tonsillitis/Rhinitis",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Upper Respiratory Infections Pharyngitis/Tonsillitis/Rhinitis'"
        },
        "pneumonia": {
            "line_number": "49",
            "sw": "Pneumonia",
            "en": "Pneumonia",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Pneumonia'"
        },
        "pneumonia_severe": {
            "line_number": "50",
            "sw": "Pneumonia Severe",
            "en": "Pneumonia Severe",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Pneumonia Severe'"
        },
        "respiratory_system_disorders_other": {
            "line_number": "51",
            "sw": "Respiratory System disorders Other",
            "en": "Respiratory System disorders Other",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Respiratory System disorders Other'"
        },
        "peptic_ulcers": {
            "line_number": "52",
            "sw": "Peptic ulcers",
            "en": "Peptic ulcers",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Peptic ulcers'"
        },
        "liver_diseases_non_infectious": {
            "line_number": "53",
            "sw": "Liver diseases Non-infectious",
            "en": "Liver diseases Non-infectious",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Liver diseases Non-infectious'"
        },
        "gastrointestinal_disease_other_non_infectious": {
            "line_number": "54",
            "sw": "Gastrointestinal diseases Other non-infectious",
            "en": "Gastrointestinal diseases Other non-infectious",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Gastrointestinal diseases Other non-infectious'"
        },
        "urinary_tract_infections": {
            "line_number": "55",
            "sw": "Urinary Tract Infections UTI",
            "en": "Urinary Tract Infections UTI",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Urinary Tract Infections UTI'"
        },
        "nephrotic_syndrome": {
            "line_number": "56",
            "sw": "Nephrotic Syndrome",
            "en": "Nephrotic Syndrome",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Nephrotic Syndrome'"
        },
        "acute_glumerulonephritis": {
            "line_number": "57",
            "sw": "Acute glumerulonephritis",
            "en": "Acute glumerulonephritis",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Acute glumerulonephritis'"
        },
        "skin_infections": {
            "line_number": "58",
            "sw": "Skin Infections",
            "en": "Skin Infections",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Skin Infections'"
        },
        "skin_diseases_non_infectious": {
            "line_number": "59",
            "sw": "Skin diseases Non-infectious",
            "en": "Skin diseases Non-infectious",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Skin diseases Non-infectious'"
        },
        "osteomyelitis": {
            "line_number": "60",
            "sw": "Osteomyelitis",
            "en": "Osteomyelitis",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Osteomyelitis'"
        },
        "rheumatoid_and_joint_disease": {
            "line_number": "61",
            "sw": "Rheumatoid and Joint diseases",
            "en": "Rheumatoid and Joint diseases",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Rheumatoid and Joint diseases'"
        },
        "low_birth_weight_and_prematurity_complications": {
            "line_number": "62",
            "sw": "Low birth weight and Prematurity complications",
            "en": "Low birth weight and Prematurity complications",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Low birth weight and Prematurity complications'"
        },
        "birth_asphyxia": {
            "line_number": "63",
            "sw": "Birth asphyxia",
            "en": "Birth asphyxia",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Birth asphyxia'"
        },
        "neonatal_septicaemia_local_infections": {
            "line_number": "64",
            "sw": "Neonatal Septicaemia Local infections",
            "en": "Neonatal Septicaemia Local infections",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Neonatal Septicaemia Local infections'"
        },
        "road_traffic_accidents": {
            "line_number": "65",
            "sw": "Road Traffic Accidents",
            "en": "Road Traffic Accidents",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Road Traffic Accidents'"
        },
        "fractures": {
            "line_number": "66",
            "sw": "Fractures",
            "en": "Fractures",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Fractures'"
        },
        "poisoning": {
            "line_number": "67",
            "sw": "Poisoning",
            "en": "Poisoning",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Poisoning'"
        },
        "burns": {
            "line_number": "68",
            "sw": "Burns",
            "en": "Burns",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Burns'"
        },
        "animal_bites_suspected_rabies": {
            "line_number": "69",
            "sw": "Animal Bites Suspected Rabies",
            "en": "Animal Bites Suspected Rabies",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Animal Bites Suspected Rabies'"
        },
        "animal_bites_no_suspected_rabies": {
            "line_number": "70",
            "sw": "Animal Bites No suspected Rabies",
            "en": "Animal Bites No suspected Rabies",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Animal Bites No suspected Rabies'"
        },
        "hiv_infection_symptomatic": {
            "line_number": "71",
            "sw": "HIV infection Symptomatic",
            "en": "HIV infection Symptomatic",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'HIV infection Symptomatic'"
        },
        "congenital_disorders": {
            "line_number": "72",
            "sw": "Congenital Disorders",
            "en": "Congenital Disorders",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Congenital Disorders'"
        },
        "hepatitis": {
            "line_number": "73",
            "sw": "Hepatitis",
            "en": "Hepatitis",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Hepatitis'"
        },
        "neoplasm": {
            "line_number": "74",
            "sw": "Neoplasm",
            "en": "Neoplasm",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Neoplasm'"
        },
        "soil_transmitted_helminths": {
            "line_number": "75",
            "sw": "Soil transmitted helminths",
            "en": "Soil transmitted helminths",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Soil transmitted helminths'"
        },
        "lympatic_filairiasis": {
            "line_number": "76",
            "sw": "Lympatic filairiasis",
            "en": "Lympatic filairiasis",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Lympatic filairiasis'"
        },
        "anthrax": {
            "line_number": "77",
            "sw": "Anthrax",
            "en": "Anthrax",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Anthrax'"
        },
        "diagnoses_other": {
            "line_number": "78",
            "sw": "Diagnoses Other",
            "en": "Diagnoses Other",
            "condition": "disease_diagnosis.admission && disease_diagnosis.diagnosis == 'Diagnoses Other'"
        },
        "definitions": {
            "columns": {
                "lessthan1male": {
                    "title": "Males",
                    "condition": "FIXME && patient.gender == 'male'"
                },
                "lessthan1female": {
                    "title": "Less than 1 Month - Females",
                    "condition": "FIXME && patient.gender == 'female'"
                },
                "lessthan1total": {
                    "title": "Less than 1 Month - Total",
                    "condition": "FIXME"
                },
                "more1momale": {
                    "title": "More than 1 month and less than 1 Year - Male",
                    "condition": "FIXME && patient.gender == 'male'"
                },
                "more1mofemale": {
                    "title": "More than 1 month and less than 1 Year - Females",
                    "condition": "FIXME && patient.gender == 'female'"
                },
                "more1mototal": {
                    "title": "More than 1 month and less than 1 Year - Total",
                    "condition": "FIXME "
                },
                "above1below5male": {
                    "title": "More than 1 year and less than 5 Years - Male",
                    "condition": "patient.approxage > 1 && patient.approxage < 5 && patient.gender == 'male'"
                },
                "above1below5female": {
                    "title": "More than 1 year and less than 5 Years - Females",
                    "condition": "patient.approxage > 1 && patient.approxage < 5 && patient.gender == 'female'"
                },
                "above1below5total": {
                    "title": "More than 1 year and less than 5 Years - Total",
                    "condition": "patient.approxage > 1 && patient.approxage < 5"
                }
            }
        }
    }
}