from edc_base.preload_data import PreloadData
from edc_constants.constants import NOT_APPLICABLE, OTHER, DWTA, NONE, NOT_SURE
from bcpp_subject.constants import HEART_DISEASE, CANCER, TUBERCULOSIS, STI, ALONE


list_data = {
    'bcpp_subject.circumcisionbenefits': [
        ('Improved hygiene ', 'Improved hygiene '),
        ('Reduced risk of HIV ', 'Reduced risk of HIV '),
        ('Reduced risk of other sexually transmitted diseases',
         'Reduced risk of other sexually transmitted diseases'),
        ('Reduced risk of cancer', 'Reduced risk of cancer'),
        (OTHER, ' Other'),
        (NOT_SURE, 'I am not sure'),
        (DWTA, "Don't want to answer")],
    'bcpp_subject.diagnoses': [
        (HEART_DISEASE, 'Heart Disease or Stroke'),
        (CANCER, 'Cancer'),
        (TUBERCULOSIS, 'Tuberculosis'),
        (OTHER, 'Other serious infection'),
        (NONE, 'None'),
        (STI, 'STI (Sexually Transmitted Infection)')],
    'bcpp_subject.familyplanning': [
        ('Condoms, consistent use (male or female)',
         'Condoms, consistent use (male or female)'),
        ('Injectable contraceptive', 'Injectable contraceptive'),
        ('Oral contraceptive', 'Oral contraceptive'),
        ('IUD', 'IUD'),
        ('Diaphragm or cervical cap', 'Diaphragm or cervical cap'),
        ('Rhythm or menstrual cycle timing',
         'Rhythm or menstrual cycle timing'),
        ('Withdrawal', 'Withdrawal'),
        (OTHER, ' OTHER, specify'),
        (DWTA, " Don't want to answer"),
        (NOT_APPLICABLE, ' NOT APPLICABLE'),
        ('Condoms, in-consistent use (male or female)',
         'Condoms, in-consistent use (male or female)')],
    'bcpp_subject.medication_prescribed':[
        ('Antiretroviral medications', 'Antiretroviral medications'),
        ('Antituberculosis treatment', 'Antituberculosis treatment'),
        ('Isoniazid preventive therapy', 'Isoniazid preventive therapy'),
        ('Cotrimoxazole prophylaxis', 'Cotrimoxazole prophylaxis'),
        ('Antibiotic treatment', 'Antibiotic treatment'),
        ('Anthihypertensive', 'Anthihypertensive'),
        ('Diabetes treatment', 'Diabetes treatment'),
        ('Prenatal vitamin', 'Prenatal vitamin'),
        ('Paracetamol', 'Paracetamol, profen, or other medicine for treating pain'),
        (NOT_APPLICABLE, 'Not Applicable'),
        (OTHER, 'Other, specify')],
    'bcpp_subject.medication': [
        ("bisoprolol", "Bisoprolol"),
        ("carvedilol", "Carvedilol"),
        ("propranolol", "Propranolol"),
        ("atenolol", "Atenolol"),
        ("enalapril", "Enalapril"),
        ("captopril", "Captopril"),
        ("co_micardis", "Co-Micardis"),
        ("spirinolactone", "Spirinolactone "),
        ("hydrochlrothiazide", "Hydrochlrothiazide "),
        ("nifedipine", "Nifedipine"),
        ("amlodipine", "Amlodipine"),
        ("furosemide", "Furosemide"),
        ("doxazosin", "Doxazosin"),
        ("hydralazine", "Hydralazine"),
        (NOT_APPLICABLE, "Not Applicable"),
        (OTHER, " OTHER")],
    'bcpp_subject.heartdisease': [
        ('Myocardial infarction (heart attack)',
         'Myocardial infarction (heart attack)'),
        ('Congestive cardiac failure', 'Congestive cardiac failure'),
        ('Stroke (cerebrovascular accident, CVA)',
         'Stroke (cerebrovascular accident, CVA)'),
        (OTHER, ' OTHER, specify'),
        (DWTA, " Don't want to answer")],
    'bcpp_subject.livewith': [
        ('Partner or spouse', 'Partner or spouse'),
        ('Siblings', 'Siblings'),
        (ALONE, 'Alone'),
        ('Extended family', 'Extended family'),
        (OTHER, ' Other'),
        (DWTA, " Don't want to answer")],
    'bcpp_subject.medicalcareaccess': [
        ('Traditional, faith, or religious healer/doctor',
         'Traditional, faith, or religious healer/doctor'),
        ('Pharmacy', 'Pharmacy'),
        ('Public or government health facility or clinic',
         'Public or government health facility or clinic'),
        ('Private health facility or clinic',
         'Private health facility or clinic'),
        ('Community health worker', 'Community health worker'),
        (OTHER, ' OTHER, specify'),
        (DWTA, " Don't want to answer")],
    'bcpp_subject.neighbourhoodproblems': [
        ('Water', 'Water'),
        ('Sewer (sanitation)', 'Sewer (sanitation)'),
        ('Housing', 'Housing'),
        ('Roads', 'Roads'),
        ('Malaria', 'Malaria'),
        ('HIV/AIDS', 'HIV/AIDS'),
        ('Schools', 'Schools'),
        ('Unemployment', 'Unemployment'),
        (OTHER, ' OTHER, specify'),
        (DWTA, " Don't want to answer")],
    'bcpp_subject.partnerresidency': [
        ('inside_community', 'In this community'),
        ('outside_community', 'Outside this community'),
        ('farm_inside_community', 'Farm within this community'),
        ('farm_outside_community', 'Farm outside this community'),
        ('cattelepost_inside_community', 'Cattle post within this community'),
        ('cattlepost_outside_community', 'Cattle post outside this community')],
    'bcpp_subject.stiillnesses': [
        ('wasting',
         'Severe weight loss (wasting) - more than 10% of body weight'),
        ('diarrhoea', 'Unexplained diarrhoea for one month'),
        ('yeast_infection', 'Yeast infection of mouth or oesophagus'),
        ('pneumonia', 'Severe pneumonia or meningitis or sepsis'),
        ('PCP', 'PCP (Pneumocystis pneumonia)'),
        ('herpes', 'Herpes infection for more than one month'),
        (OTHER, ' OTHER, specify'),
        (NONE, ' None')],
    'bcpp_subject.testsordered': [
        ('Hematology', 'Hematology'),
        ('Chemistry', 'Chemistry'),
        ('CD4 count', 'CD4 count'),
        ('HIV-1 RNA (viral load)', 'HIV-1 RNA (viral load)'),
        ('Microbiology', 'Microbiology'),
        ('Radiology', 'Radiology'),
        ('Pathology', 'Pathology'),
        (NOT_APPLICABLE, 'Not Applicable'),
        (OTHER, 'Other (specify)')],
    'member.transportmode': [
        ('Motor vehicle (car,truck,taxi, etc)',
         'Motor vehicle (car,truck,taxi, etc)'),
        ('Tractor', 'Tractor'),
        ('Bicycle', 'Bicycle'),
        ('Motorcycle/scooter', 'Motorcycle/scooter'),
        ('Donkey or cow cart', 'Donkey or cow cart'),
        ('Donkey/horses', 'Donkey/horses'),
        (OTHER, " OTHER, specify"),
        (NONE, ' None')],
    'member.electricalappliances': [
        ('radio', 'Radio'),
        ('tv', 'TV'),
        ('landline_telephone', 'Landline telephone'),
        ('cellphone', 'Cell phone'),
        ('computer', 'Computer'),
        ('access_to_internet', 'Access to internet'),
        ('refrigerator', 'Refrigerator'),
        (DWTA, " Don't want to answer"), ],
    'bcpp_subject.arv': [
        (OTHER, ' OTHER drug not listed: specify below ...'),
        ('Efavirenz', 'EFV (Stocrin, Sustiva)'),
        ('Dolutegravir', 'DTG (Tivicay)'),
        ('Tenofovir/emtricitabine', 'TDF/FTC (Truvada)'),
        ('Nevirapine', 'NVP (Viramune)'),
        ('Zidovudine/lamivudine', 'ZDV/3TC or AZT/3TC (Combivir)'),
        ('Lopinavir/ritonavir', 'LPV/r (Aluvia, Kaletra)'),
        ('Abacavir/lamivudine', 'ABC/3TC (Epzicom)'),
        ('Abacavir', 'ABC (Ziagen)'),
        ('Zidovudine', 'ZDV or AZT (Retrovir)'),
        ('Lamivudine', '3TC (Epivir)'),
        ('Atazanavir', 'ATV (Reyataz)'),
        ('Raltegravir', 'RAL (Isentress)'),
        ('Didanosine', 'ddI (Videx)'),
        ('Stavudine', 'D4T (Zerit)'),
        ('Tenofovir', 'TDF (Viread)'),
        ('Darunavir', 'DRV (Prezista)'),
        ('Saquinavir', 'SQV (Invirase)'),
        ('Ritonavir', 'RTV or r (Norvir)')],
}


model_data = {
    'edc_lab.consignee': {
        'name': 'Botswana-Harvard Partnership',
        'contact_name': 'Dr Sikhulile Moyo',
        'address': 'Private Bag BO 320, Bontleng',
        'postal_code': 'Plot 1836, Gaborone',
        'city': 'Gaborone',
        'state': '',
        'country': 'Botswana',
        'telephone': '+267 3902671',
        'mobile': '',
        'fax': '+267 3901284',
        'email': ''}
}

unique_field_data = {
    'edc_lab.consignee': {
        'name': ('Botswana-Harvard Partnership',
                 'Botswana-Harvard AIDS Institute Partnership')
    }
}

preload_data = PreloadData(
    list_data=list_data,
    model_data=model_data,
    unique_field_data=unique_field_data)
