Skip to contents

Introduction

This vignette is designed for the package developers to document what and how data are extracted from the UNAIDS Estimates Data pulled from the EDMS. This process is conducted annually around July when UNAIDS publishes new estimates. The data extracted from the system are largely what exist in the Excel file made available on AIDSInfo, but also have a few extra indicators such as ‘Total deaths to HIV Population’ and the calculated ‘Incidence mortality ratio (IMR)’

Extracting Data from EDMS

Access

In order to get access to the EDMS, you will need to be provisioned an account. The UNAIDS point of contact in OHA/SIEI will be able to make submit this request on your behalf.

Home

Once logged into the system, you will first need to select the Module for the given year, which runs vertically along the left hand side of the page. For example, the 2024 update is titled “O- HIV estimates - 2024 - Spectrum 6.35”.

Statistics/Indicators

From there, you will follow the blue tabs at the top of the screen, starting with “Statistics/Indicators”. Indicators are divided up into different categories, which can be selected from the drop down. With the category selected, you will then need to select a “Sub-category”, typically age groups or PMTCT. Finally you will need to select the relevant indicators from the list and move them over using the select arrow (‘>’). By default, when you select an indicator, it will also include the uncertainty bounds.

The table below details the full list of data elements you will need to include (the modual prefix has been removed):

AIDS (AIM): Total Population
AIDS deaths M+F
Deaths averted by ART M+F
HIV population M+F
Incidence per 1000 M+F
New HIV infections M+F
Total deaths to HIV Population F
Total deaths to HIV Population M
Total deaths to HIV Population M+F
AIDS (AIM): Adults (15-49)
Adult HIV prevalence 15-49 M+F
AIDS (AIM): Adults (15+)
Annual AIDS deaths 15+ M+F
HIV population 15+ F
HIV population 15+ M+F
New HIV infections 15+ M+F
AIDS (AIM): Young People (15-24)
Adult prevalence 15-24 F
Adult prevalence 15-24 M
AIDS (AIM): Children (0-14)
Annual AIDS deaths 0-14 M+F
HIV population 0-14 M+F
New HIV infections 0-14 M+F
AIDS (AIM): PMTCT
Infections averted by PMTCT 0-14 M+F
Mothers needing PMTCT 15-49 F
Mothers receiving PMTCT 15-49 F
Derived: 95-95-95 (#)
Number on ART M+F
Number on ART 0-14 M+F
Number on ART 15+ F
Number on ART 15+ M
Number on ART 15+ M+F
Number who know their HIV status M+F
Number who know their HIV status 0-14 M+F
Number who know their HIV status 15+ F
Number who know their HIV status 15+ M
Number who know their HIV status 15+ M+F
Number with suppressed viral load M+F
Number with suppressed viral load 0-14 M+F
Number with suppressed viral load 15+ F
Number with suppressed viral load 15+ M
Number with suppressed viral load 15+ M+F
Derived: 95-95-95 (%) And 95-90-86 (%)
Among people living with HIV- the percent on ART M+F
Among people living with HIV- the percent on ART 0-14 M+F
Among people living with HIV- the percent on ART 15+ F
Among people living with HIV- the percent on ART 15+ M
Among people living with HIV- the percent on ART 15+ M+F
Among people living with HIV- the percent who know their status M+F
Among people living with HIV- the percent who know their status 0-14 M+F
Among people living with HIV- the percent who know their status 15+ F
Among people living with HIV- the percent who know their status 15+ M
Among people living with HIV- the percent who know their status 15+ M+F
Among people living with HIV- the percent with suppressed viral load M+F
Among people living with HIV- the percent with suppressed viral load 0-14 M+F
Among people living with HIV- the percent with suppressed viral load 15+ F
Among people living with HIV- the percent with suppressed viral load 15+ M
Among people living with HIV- the percent with suppressed viral load 15+ M+F
Among people on ART- the percent with suppressed viral load M+F
Among people on ART- the percent with suppressed viral load 0-14 M+F
Among people on ART- the percent with suppressed viral load 15+ F
Among people on ART- the percent with suppressed viral load 15+ M
Among people on ART- the percent with suppressed viral load 15+ M+F
Among people who know their HIV status- the percent on ART M+F
Among people who know their HIV status- the percent on ART 0-14 M+F
Among people who know their HIV status- the percent on ART 15+ F
Among people who know their HIV status- the percent on ART 15+ M
Among people who know their HIV status- the percent on ART 15+ M+F
Incidence mortality ratio M+F

Select Regions/Countries

Next up, you will need to navigate to the Regions/Countries tab and select the relevant geographies. For the annual pull, we select the following geographies, which includes all the regions at the top of the list in the first section (Global - Western and central Eurpoe and North America) and then the countries (Afghanistan - Saint Lucia, preceeding the non-Spectrum list),

Region
Global
Asia and the Pacific
Caribbean
Eastern Europe and central Asia
Eastern and southern Africa
Latin America
Middle East and North Africa
Western and central Africa
Western and central Europe and North America
Country
Afghanistan
Albania
Algeria
Angola
Argentina
Armenia
Australia
Austria
Azerbaijan
Bahamas
Bahrain
Bangladesh
Barbados
Belarus
Belgium
Belize
Benin
Bhutan
Bolivia
Bosnia and Herzegovina
Botswana
Brazil
Bulgaria
Burkina Faso
Burundi
Cambodia
Canada
Cape Verde
Central African Republic
Chad
Chile
China
Colombia
Comoros
Congo
Costa Rica
Cote dIvoire
Croatia
Cuba
Cyprus
Czech Republic
Democratic Republic of the Congo
Denmark
Djibouti
Dominican Republic
Ecuador
Egypt
El Salvador
Equatorial Guinea
Eritrea
Estonia
Eswatini
Ethiopia
Fiji
Finland
France
Gabon
Gambia
Georgia
Germany
Ghana
Greece
Guatemala
Guinea
Guinea-Bissau
Guyana
Haiti
Honduras
Hungary
Iceland
India
Indonesia
Iran (Islamic Republic of)
Iraq
Ireland
Israel
Italy
Jamaica
Japan
Jordan
Kazakhstan
Kenya
Kuwait
Kyrgyzstan
Lao People Democratic Republic
Latvia
Lebanon
Lesotho
Liberia
Libya
Lithuania
Luxembourg
Madagascar
Malawi
Malaysia
Mali
Malta
Mauritania
Mauritius
Mexico
Mongolia
Montenegro
Morocco
Mozambique
Myanmar
Namibia
Nepal
Netherlands
New Zealand
Nicaragua
Niger
Nigeria
North Macedonia
Norway
Oman
Pakistan
Panama
Papua New Guinea
Paraguay
Peru
Philippines
Poland
Portugal
Qatar
Republic of Korea
Republic of Moldova
Romania
Rwanda
Saint Kitts and Nevis
Saint Lucia
Saudi Arabia
Senegal
Serbia
Sierra Leone
Singapore
Slovakia
Slovenia
Somalia
South Africa
South Sudan
Spain
Sri Lanka
Sudan
Suriname
Switzerland
Syrian Arab Republic
Tajikistan
Thailand
Timor-Leste
Togo
Tunisia
Turkmenistan
Türkiye
Uganda
Ukraine
United Arab Emirates
United Kingdom
United Republic of Tanzania
United States of America
Uruguay
Uzbekistan
Venezuela
Viet Nam
Yemen
Zambia
Zimbabwe

Years

For the last selection, you will need to pick the years running from 1990 to the present. Note that the most recent year in the UNAIDS dataset is the year prior to the release. For example, the release in 2024 will cover data through 2023. We do not pull the projections for our annual pull.

Data/Information

At this point, you have done all the work and now it is time to export it. To do so, you will need to sleect the button the far right that is labeled “Data list” which will allow you to download the file as a csv.

It’s important while here to to also save your query, by clicking the button labeled “Save query”. You will enter a title and subject and then can access the again in the future (and amend if needed) from the “My Queries” tab.

My queries

This is the location of previously saved tabs. From here, you can click on the bottom right tab, “Copy chosen query to the next round” which will allow you to perform the same query for a future year/module.

Processing EDMS Output

With the dataset output from EDMS, you can process the csv file using munge_edms. This function will run throught a series of steps from importing to munging and summarizing. With the epi_95s_flag = TRUE, the function also added a number of additional columns to flag epidemic control status as well as achievement of the 95 targets. The mundge_edms can be used to process ad hoc outputs from the database

library(mindthegap)

edms_path <- "Data/DataList_9_19_2024-3_30_17-PM.csv"

df_unaids <- munge_edms(edms_path, epi_95s_flag = TRUE)

The processing of the dataset will go through a number validations as well which will flag any errors or warnings along the way with informative messages to help identify if something is missing from your pull or something is amiss.

Once the dataset has been processed, it can be uploaded as a GitHub release using the publish_release. This only needs to be preformed once a year when the new data are made available.

publish_release(df_unaids)

Users will now be able to access the tidied data from the release using load_unaids

df <- load_unaids()