###
# ENUMS
###
# api urls
#' @export
mdl_enum_api_url <- list(
production = "https://microdata.unhcr.org/index.php/api",
uat = "https://microdata-uat.unhcr.org/index.php/api",
dev = "https://microdata-dev.unhcr.org/index.php/api"
)
# repository code for creating dataset
#' @export
mdl_enum_collection <- list(
Europe = "EURO",
Americas = "SA",
Asia = "ASIA",
MENA = "MENA",
WestAfrica = "WA",
EastAfrica = "EHA",
SouthernAfrica = "SAO",
WorldBank = "WBG",
PDM = "PDM",
LIS = "LIS",
EIS = "EIS",
ProtectionMonitoring = "PRM",
VulnerabilityAssessments = "VUL",
NeedsAssessments = "NAS",
KAP_WASH = "KAP",
SENS = "SENS",
ReturnandMovementIntentionsSurvey = "MIS",
IDP_Profiling = "IDP",
StatelessnessSurveys = "STA",
COVID19 = "C19",
UNHCR_WFP_JointAssessment = "JAM",
SocioEconomicAssessments = "SEA",
RMS = "RMS",
ExternalDatasets = "EXT",
FAO_FoodAgricultureMicrodataCatalogue = "FAO",
HDX_HumanitarianDataExchange = "HDX"
)
# list of possible ways to publish the data files
#' @export
mdl_enum_survey_access_policy <- list(
"Licensed use files" = "licensed",
"Public use file" = "public",
"Data available from external repository (link)" = "remote",
"Direct access" = "direct",
"Open access" = "open",
"Data accessible only in enclave" = "enclave",
"Data not avaialable" = "data_na"
)
# study type for survey metadata
#' @export
mdl_enum_survey_study_type <- list(
"1-2-3 Survey, phase 1 [hh/123-1]" = "1-2-3 Survey, phase 1 [hh/123-1]",
"1-2-3 Survey, phase 2 [hh/123-2]" = "1-2-3 Survey, phase 2 [hh/123-2]",
"1-2-3 Survey, phase 3 [hh/123-3]" = "1-2-3 Survey, phase 3 [hh/123-3]",
"Administrative Records, Health (ad/hea]" = "Administrative Records, Health (ad/hea]",
"Administrative Records, Education (ad/edu]" = "Administrative Records, Education (ad/edu]",
"Administrative Records, Other (ad/oth]" = "Administrative Records, Other (ad/oth]",
"Agricultural Census [ag/census]" = "Agricultural Census [ag/census]",
"Agricultural Survey [ag/oth]" = "Agricultural Survey [ag/oth]",
"Child Labor Survey [hh/cls]" = "Child Labor Survey [hh/cls]",
"Core Welfare Indicators Questionnaire [hh/cwiq]" = "Core Welfare Indicators Questionnaire [hh/cwiq]",
"Demographic and Health Survey [hh/dhs]" = "Demographic and Health Survey [hh/dhs]",
"Demographic and Health Survey, Round 1 [hh/dhs-1]" = "Demographic and Health Survey, Round 1 [hh/dhs-1]",
"Demographic and Health Survey, Round 2 [hh/dhs-2]" = "Demographic and Health Survey, Round 2 [hh/dhs-2]",
"Demographic and Health Survey, Round 3 [hh/dhs-3]" = "Demographic and Health Survey, Round 3 [hh/dhs-3]",
"Demographic and Health Survey, Round 4 [hh/dhs-4]" = "Demographic and Health Survey, Round 4 [hh/dhs-4]",
"Demographic and Health Survey, Interim [hh/dhs-int]" = "Demographic and Health Survey, Interim [hh/dhs-int]",
"Demographic and Health Survey, Special [hh/dhs-sp]" = "Demographic and Health Survey, Special [hh/dhs-sp]",
"Enterprise Survey [en/oth]" = "Enterprise Survey [en/oth]",
"Enterprise Census [en/census]" = "Enterprise Census [en/census]",
"Income/Expenditure/Household Survey [hh/ies]" = "Income/Expenditure/Household Survey [hh/ies]",
"Informal Sector Survey [hh/iss]" = "Informal Sector Survey [hh/iss]",
"Integrated Survey (non-LSMS) [hh/is]" = "Integrated Survey (non-LSMS) [hh/is]",
"Multiple Indicator Cluster Survey - Round 1 [hh/mics-1]" = "Multiple Indicator Cluster Survey - Round 1 [hh/mics-1]",
"Multiple Indicator Cluster Survey - Round 2 [hh/mics-2]" = "Multiple Indicator Cluster Survey - Round 2 [hh/mics-2]",
"Multiple Indicator Cluster Survey - Round 3 [hh/mics-3]" = "Multiple Indicator Cluster Survey - Round 3 [hh/mics-3]",
"Labor Force Survey [hh/lfs]" = "Labor Force Survey [hh/lfs]",
"Living Standards Measurement Study [hh/lsms]" = "Living Standards Measurement Study [hh/lsms]",
"Other Household Health Survey [hh/hea]" = "Other Household Health Survey [hh/hea]",
"Other Household Survey [hh/oth]" = "Other Household Survey [hh/oth]",
"Price Survey [hh/prc]" = "Price Survey [hh/prc]",
"Priority Survey (hh/ps]" = "Priority Survey (hh/ps]",
"Population and Housing Census [hh/popcen]" = "Population and Housing Census [hh/popcen]",
"Sample Frame, Households [sf/hh]" = "Sample Frame, Households [sf/hh]",
"Sample Frame, Enterprises [sf/en]" = "Sample Frame, Enterprises [sf/en]",
"Service Provision Assessments [hh/spa]" = "Service Provision Assessments [hh/spa]",
"Socio-Economic/Monitoring Survey [hh/sems]" = "Socio-Economic/Monitoring Survey [hh/sems]",
"Statistical Info. & Monitoring Prog. [hh/simpoc]" = "Statistical Info. & Monitoring Prog. [hh/simpoc]",
"World Fertility Survey [hh/wfs]" = "World Fertility Survey [hh/wfs]",
"World Health Survey [hh/whs]" = "World Health Survey [hh/whs]"
)
# kind of data for survey metadata
#' @export
mdl_enum_survey_kind_of_data <- list(
"Sample survey data [ssd]" = "Sample survey data [ssd]",
"Census/enumeration data [cen]" = "Census/enumeration data [cen]",
"Administrative records data [adm]" = "Administrative records data [adm]",
"Aggregate data [agg]" = "Aggregate data [agg]",
"Clinical data [cli]" = "Clinical data [cli]",
"Event/transaction data [evn]" = "Event/transaction data [evn]",
"Observation data/ratings [obs]" = "Observation data/ratings [obs]",
"Process-produced data [pro]" = "Process-produced data [pro]",
"Time budget diaries [tbd]" = "Time budget diaries [tbd]"
)
# topics for survey metadata
#' @export
mdl_enum_survey_topics <- list(
"Health and Nutrition" = "Health and Nutrition",
"Health" = "Health",
"Water Sanitation Hygiene" = "Water Sanitation Hygiene",
"Protection" = "Protection",
"Food security" = "Food security",
"Emergency Shelter and NFI" = "Emergency Shelter and NFI",
"Community Services" = "Community Services",
"Education" = "Education",
"Environment" = "Environment",
"Livelihood and Social cohesion" = "Livelihood and Social cohesion",
"Core Relief items (CRIs)" = "Core Relief items (CRIs)",
"Registration" = "Registration",
"Gender Based Violence" = "Gender Based Violence",
"HIV/AIDS" = "HIV/AIDS",
"Logistics" = "Logistics",
"Child Protection" = "Child Protection",
"Agriculture" = "Agriculture",
"Telecom" = "Telecom",
"Coordination" = "Coordination",
"Transportation" = "Transportation",
"Return" = "Return",
"Reproductive Health" = "Reproductive Health",
"Mental Health and Psychosocial Support" = "Mental Health and Psychosocial Support",
"Information Management" = "Information Management",
"Cash Assistance" = "Cash Assistance",
"Mine Action" = "Mine Action",
"Disaster Risk Reduction" = "Disaster Risk Reduction",
"Camp Coordination and Camp Management (CCCM)" = "Camp Coordination and Camp Management (CCCM)",
"Governance" = "Governance",
"Peace Building/Conflict Prevention Sector" = "Peace Building/Conflict Prevention Sector",
"Early Recovery" = "Early Recovery",
"Legal Assistance" = "Legal Assistance",
"Food Distribution" = "Food Distribution",
"Mental Health" = "Mental Health",
"Malaria Prevention and Control" = "Malaria Prevention and Control",
"Emergency Telecommunications" = "Emergency Telecommunications",
"Housing, Land and Property" = "Housing, Land and Property",
"Legal Assistance/Protection" = "Legal Assistance/Protection",
"Shelter/Other Infrastructure" = "Shelter/Other Infrastructure",
"Transport/Logistics" = "Transport/Logistics",
"Health Care Referral Services" = "Health Care Referral Services",
"Domestic Needs/Household Support" = "Domestic Needs/Household Support",
"Crop Production" = "Crop Production",
"Livestock/Animal Husbandry" = "Livestock/Animal Husbandry",
"Fisheries" = "Fisheries",
"Forestry" = "Forestry",
"Income Generation" = "Income Generation",
"Agency Operational Support" = "Agency Operational Support",
"Other" = "Other",
"Outstanding Instalments" = "Outstanding Instalments",
"Settlement" = "Settlement",
"Capacity Building/Training" = "Capacity Building/Training",
"Access to Energy" = "Access to Energy",
"Elderly and Disabled" = "Elderly and Disabled",
"Connectivity" = "Connectivity",
"Solutions" = "Solutions",
"Basic Needs" = "Basic Needs"
)
# collection mode for survey metadata
#' @export
mdl_enum_survey_collection_mode <- list(
"Computer Assisted Personal Interview [capi]" = "Computer Assisted Personal Interview [capi]",
"Computer Assisted Telephone Interview [cati]" = "Computer Assisted Telephone Interview [cati]",
"Face-to-face [f2f]" = "Face-to-face [f2f]",
"Mail Questionnaire [mail]" = "Mail Questionnaire [mail]",
"Focus Group [foc]" = "Focus Group [foc]",
"Internet [int]" = "Internet [int]",
"Other [oth]" = "Other [oth]"
)
# list of possible types of resources
#' @export
mdl_enum_resource_type <- list(
doc_administrative = "doc/adm",
doc_analytical = "doc/anl",
doc_questionnaire = "doc/qst",
doc_reference = "doc/ref",
doc_report = "doc/rep",
doc_technical = "doc/tec",
doc_other = "doc/oth",
microdata = "dat/micro"
)
# list of possible formats of resources
#' @export
mdl_enum_resource_format <- list(
Compressed_Generic = "application/x-compressed",
Compressed_ZIP = "application/zip",
Data_CSPro = "application/x-cspro",
Data_dBase = "application/dbase",
Data_Microsoft_Access = "application/msaccess",
Data_SAS = "application/x-sas",
Data_SPSS = "application/x-spss",
Data_Stata = "application/x-stata",
Document_Generic = "text",
Document_HTML = "text/html",
Document_Microsoft_Excel = "application/msexcel",
Document_Microsoft_PowerPoint = "application/mspowerpoint",
Document_Microsoft_Word = "application/msword",
Document_PDF = "application/pdf",
Document_Postscript = "application/postscript",
Document_Plain = "text/plain",
Document_WordPerfect = "text/wordperfect",
Image_GIF = "image/gif",
Image_JPEG = "image/jpeg",
Image_PNG = "image/png",
Image_TIFF = "image/tiff"
)
# list of country names given ISO code
#' @export
mdl_enum_country <- list(
AFG = "Afghanistan",
ALB = "Albania",
DZA = "Algeria",
ASM = "American Samoa",
AND = "Andorra",
AGO = "Angola",
AIA = "Anguilla",
ATA = "Antartica",
ATG = "Antigua and Barbuda",
ARG = "Argentina",
ARM = "Armenia",
ABW = "Aruba",
AUS = "Australia",
AUT = "Austria",
AZE = "Azerbaijan",
BHS = "Bahamas",
BHR = "Bahrain",
BGD = "Bangladesh",
BRB = "Barbados",
BLR = "Belarus",
BEL = "Belgium",
BLZ = "Belize",
BEN = "Benin",
BMU = "Bermuda",
BTN = "Bhutan",
BOL = "Bolivia",
BIH = "Bosnia-Herzegovina",
BWA = "Botswana",
BVT = "Bouvet Island",
BRA = "Brazil",
IOT = "British Indian Ocean Territory",
BRN = "Brunei",
BGR = "Bulgaria",
BFA = "Burkina Faso",
BDI = "Burundi",
KHM = "Cambodia",
CMR = "Cameroon",
CAN = "Canada",
CPV = "Cape Verde",
CYM = "Cayman Islands",
CAF = "Central African Republic",
TCD = "Chad",
CHL = "Chile",
CHN = "China",
CXR = "Christmas Island",
CCK = "Cocos Isld.",
COL = "Colombia",
COM = "Comoros",
COD = "Congo, Dem. Rep.",
COG = "Congo, Rep.",
COK = "Cook Island",
CRI = "Costa Rica",
CIV = "Cote d'Ivoire",
HRV = "Croatia",
CUB = "Cuba",
CYP = "Cyprus",
CZE = "Czech Republic",
DNK = "Denmark",
DJI = "Djibouti",
DMA = "Dominica",
DOM = "Dominican Republic",
ECU = "Ecuador",
EGY = "Egypt, Arab Rep.",
SLV = "El Salvador",
GNQ = "Equatorial Guinea",
ERI = "Eritrea",
EST = "Estonia",
ETH = "Ethiopia",
FRO = "Faeroe Isld.",
FLK = "Falkland Isld.",
FJI = "Fiji",
FIN = "Finland",
FRA = "France",
FXX = "France, Metrop.",
GUF = "French Guiana",
PYF = "French Polynesia",
ATF = "French S.T.",
GAB = "Gabon",
GMB = "Gambia",
GEO = "Georgia",
DEU = "Germany",
GHA = "Ghana",
GIB = "Gibraltar",
GRC = "Greece",
GRL = "Greenland",
GRD = "Grenada",
GLP = "Guadeloupe",
GUM = "Guam",
GTM = "Guatemala",
GIN = "Guinea",
GNB = "Guinea Bissau",
GUY = "Guyana",
HTI = "Haiti",
HMD = "Heard / McDonald Isld",
VAT = "Holy See",
HND = "Honduras",
HUN = "Hungary",
ISL = "Iceland",
IND = "India",
IDN = "Indonesia",
IRN = "Iran, Islamic Rep.",
IRQ = "Iraq",
IRL = "Ireland",
ISR = "Israel",
ITA = "Italy",
JAM = "Jamaica",
JPN = "Japan",
JER = "Jerusalem",
JOR = "Jordan",
KAZ = "Kazakhstan",
KEN = "Kenya",
KIR = "Kiribati",
PRK = "Korea, Dem. Rep.",
KOR = "Korea, Rep.",
KWT = "Kuwait",
KGZ = "Kyrgyz Republic",
LAO = "Lao PDR",
LVA = "Latvia",
LBN = "Lebanon",
LSO = "Lesotho",
LBR = "Liberia",
LBY = "Libya",
LIE = "Liechtenstein",
LTU = "Lithuania",
LUX = "Luxembourg",
MAC = "Macao",
MKD = "Macedonia, FYR",
MDG = "Madagascar",
MWI = "Malawi",
MYS = "Malaysia",
MDV = "Maldives",
MLI = "Mali",
MLT = "Malta",
MHL = "Marshall Isld.",
MTQ = "Martinique",
MRT = "Mauritania",
MUS = "Mauritius",
MYT = "Mayotte",
MEX = "Mexico",
FSM = "Micronesia",
MDA = "Moldova",
MCO = "Monaco",
MNG = "Mongolia",
MSR = "Montserrat",
MAR = "Morocco",
MOZ = "Mozambique",
MMR = "Myanmar",
MNP = "N. Mariana Isld.",
NAM = "Namibia",
NRU = "Nauru",
NPL = "Nepal",
ANT = "Neth.Antilles",
NLD = "Netherlands",
NCL = "New Caledonia",
NZL = "New Zealand",
NIC = "Nicaragua",
NER = "Niger",
NGA = "Nigeria",
NIU = "Niue",
NFK = "Norfolk Isld.",
NOR = "Norway",
OMN = "Oman",
PAK = "Pakistan",
PLW = "Palau",
PAN = "Panama",
PNG = "Papua New Guinea",
PRY = "Paraguay",
PER = "Peru",
PHL = "Philippines",
PCN = "Pitcairn Island",
POL = "Poland",
PRT = "Portugal",
PRI = "Puerto Rico",
QAT = "Qatar",
ROU = "Romania",
RUS = "Russian Federation",
RWA = "Rwanda",
SGS = "S. Georgia & S. Sandwich Isld.",
WSM = "Samoa",
SMR = "San Marino",
STP = "São Tomé and Príncipe",
SAU = "Saudi Arabia",
SEN = "Senegal",
#SCG = "Serbia and Montenegro",
MNE = "Montenegro",
SRB = "Serbia",
SYC = "Seychelles",
SLE = "Sierra Leone",
SGP = "Singapore",
SVK = "Slovak Republic",
SVN = "Slovenia",
SLB = "Solomon Islands",
SOM = "Somalia",
ZAF = "South Africa",
SSD = "South Sudan",
ESP = "Spain",
LKA = "Sri Lanka",
SHN = "St. Helena",
LCA = "St. Lucia",
SPM = "St. Pierre and Miquelon",
VCT = "St. Vincent and Grenadines",
KNA = "St.Kitts and Nevis",
SDN = "Sudan",
SUR = "Suriname",
SJM = "Svalbard and Jan Mayen Islands",
SWZ = "Swaziland",
SWE = "Sweden",
CHE = "Switzerland",
SYR = "Syrian Arab Republic",
TWN = "Taiwan",
TJK = "Tajikistan",
TZA = "Tanzania",
THA = "Thailand",
TLS = "Timor-Leste",
TGO = "Togo",
TKL = "Tokelau",
TON = "Tonga",
TTO = "Trinidad and Tobago",
TUN = "Tunisia",
TUR = "Turkey",
TKM = "Turkmenistan",
TCA = "Turks and Caicos Islands",
TUV = "Tuvalu",
UGA = "Uganda",
UKR = "Ukraine",
ARE = "United Arab Emirates",
GBR = "United Kingdom",
USA = "United States",
URY = "Uruguay",
UMI = "US minor outlying Islands",
UZB = "Uzbekistan",
VUT = "Vanuatu",
VEN = "Venezuela, RB",
VNM = "Viet Nam",
VIR = "Virgin Islands, U.S.",
VGB = "Virgin Isld. (British)",
WLF = "Wallis and Futuna",
PSE = "West Bank and Gaza",
ESH = "West. Sahara",
WBG = "Westbank and Gaza",
YEM = "Yemen",
ZMB = "Zambia",
ZWE = "Zimbabwe"
)
# list of region codes given country ISO code
#' @export
mdl_enum_country_region_code <- list(
AFG = "ASIA",
ALB = "EURO",
DZA = "MENA",
ASM = "ASIA",
AND = "EURO",
AGO = "SAO",
ATG = "SA",
ARG = "SA",
ARM = "EURO",
ABW = "SA",
AUS = "ASIA",
AUT = "EURO",
AZE = "EURO",
BHS = "SA",
BHR = "MENA",
BGD = "ASIA",
BRB = "SA",
BLR = "EURO",
BEL = "EURO",
BLZ = "SA",
BEN = "WA",
BMU = "SA",
BTN = "ASIA",
BOL = "SA",
BIH = "EURO",
BWA = "SAO",
BRA = "SA",
BRN = "ASIA",
BGR = "EURO",
BFA = "WA",
BDI = "EHA",
KHM = "ASIA",
CMR = "WA",
CAN = "SA",
CPV = "WA",
CYM = "SA",
CAF = "WA",
TCD = "WA",
CHL = "SA",
CHN = "ASIA",
COL = "SA",
COM = "SAO",
COD = "SAO",
COG = "SAO",
COK = "ASIA",
CRI = "SA",
CIV = "WA",
HRV = "EURO",
CUB = "SA",
CYP = "EURO",
CZE = "EURO",
DNK = "EURO",
DJI = "EHA",
DMA = "SA",
DOM = "SA",
ECU = "SA",
EGY = "MENA",
SLV = "SA",
GNQ = "WA",
ERI = "EHA",
EST = "EURO",
ETH = "EHA",
FRO = "EURO",
FLK = "SA",
FJI = "ASIA",
FIN = "EURO",
FRA = "EURO",
GUF = "SA",
PYF = "ASIA",
GAB = "WA",
GMB = "WA",
GEO = "EURO",
DEU = "EURO",
GHA = "WA",
GRC = "EURO",
GRL = "EURO",
GRD = "SA",
GLP = "SA",
GTM = "SA",
GIN = "WA",
GNB = "WA",
GUY = "SA",
HTI = "SA",
VAT = "EURO",
HND = "SA",
HUN = "EURO",
ISL = "EURO",
IND = "ASIA",
IDN = "ASIA",
IRN = "ASIA",
IRQ = "MENA",
IRL = "EURO",
ISR = "MENA",
ITA = "EURO",
JAM = "SA",
JPN = "ASIA",
JER = "MENA",
JOR = "MENA",
KAZ = "ASIA",
KEN = "EHA",
KIR = "ASIA",
PRK = "ASIA",
KOR = "ASIA",
KWT = "MENA",
KGZ = "ASIA",
LAO = "ASIA",
LVA = "EURO",
LBN = "MENA",
LSO = "SAO",
LBR = "WA",
LBY = "MENA",
LIE = "EURO",
LTU = "EURO",
LUX = "EURO",
MAC = "ASIA",
MKD = "EURO",
MDG = "SAO",
MWI = "SAO",
MYS = "ASIA",
MDV = "ASIA",
MLI = "WA",
MLT = "EURO",
MHL = "ASIA",
MTQ = "SA",
MRT = "MENA",
MUS = "SAO",
MEX = "SA",
FSM = "ASIA",
MDA = "EURO",
MCO = "EURO",
MNG = "ASIA",
MSR = "SA",
MAR = "MENA",
MOZ = "SAO",
MMR = "ASIA",
MNP = "ASIA",
NAM = "SAO",
NRU = "ASIA",
NPL = "ASIA",
NLD = "EURO",
NCL = "ASIA",
NZL = "ASIA",
NIC = "SA",
NER = "WA",
NGA = "WA",
NIU = "ASIA",
NOR = "EURO",
OMN = "MENA",
PAK = "ASIA",
PLW = "ASIA",
PAN = "SA",
PNG = "ASIA",
PRY = "SA",
PER = "SA",
PHL = "ASIA",
POL = "EURO",
PRT = "EURO",
PRI = "SA",
QAT = "MENA",
ROU = "EURO",
RUS = "EURO",
RWA = "EHA",
SGS = "SA",
WSM = "ASIA",
SMR = "EURO",
STP = "WA",
SAU = "MENA",
SEN = "WA",
#SCG = "EURO",
MNE = "EURO",
SRB = "EURO",
SYC = "SAO",
SLE = "WA",
SGP = "ASIA",
SVK = "EURO",
SVN = "EURO",
SLB = "ASIA",
SOM = "EHA",
ZAF = "SAO",
SSD = "EHA",
ESP = "EURO",
LKA = "ASIA",
LCA = "SA",
VCT = "SA",
KNA = "SA",
SDN = "EHA",
SUR = "SA",
SJM = "EURO",
SWZ = "SAO",
SWE = "EURO",
CHE = "EURO",
SYR = "MENA",
TWN = "ASIA",
TJK = "ASIA",
TZA = "EHA",
THA = "ASIA",
TLS = "ASIA",
TGO = "WA",
TON = "ASIA",
TTO = "SA",
TUN = "MENA",
TUR = "EURO",
TKM = "ASIA",
TCA = "SA",
TUV = "ASIA",
UGA = "EHA",
UKR = "EURO",
ARE = "MENA",
GBR = "EURO",
USA = "SA",
URY = "SA",
UZB = "ASIA",
VUT = "ASIA",
VEN = "SA",
VNM = "ASIA",
VGB = "SA",
PSE = "MENA",
ESH = "MENA",
WBG = "MENA",
YEM = "MENA",
ZMB = "SAO",
ZWE = "SAO"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.