Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

New JRC API #4

Merged
merged 8 commits into from
Jul 1, 2021
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions source-update/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# EU eHealthNetwork Digitial COVID Certificate RAT list update script

This repository contains scripts that could be used to update value set with common rapid antigen tests (RAT) referenced by the EU Digital COVID Certificate (DCC) [JSON Schema](https://github.com/ehn-dcc-development/ehn-dcc-schema).

Release: 1.3.0

Script `update-rat.sh` extracts information on all RAT test products and their manufacturers which are present on so called "HSC common list" from a [COVID-19 In Vitro Diagnostic Devices and Test Methods Database](https://covid-19-diagnostics.jrc.ec.europa.eu/devices) maintained by JRC.

Script extracts all items which are or has been included on the HSC common list and forms a JSON file according to the value set schema. Information about current status of each item is stored in the element `"active"`. Element `"version"` includes date of last update of the entry in the JRC database or date of removal from the HSC common list (in such case element `"active" == false`).
24 changes: 14 additions & 10 deletions source-update/update-rat.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
#!/bin/bash
curl --silent --show-error https://covid-19-diagnostics.jrc.ec.europa.eu/devices/hsc-common-recognition-rat |
jq '.extracted_on as $version | .deviceList | reduce .[] as $i
({};
.[$i.id_device] =
{ "display": ($i.manufacturer.name + ", " + $i.commercial_name),
"lang":"en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": $i.last_updated
}) | {"valueSetId": "covid-19-lab-test-manufacturer-and-name", "valueSetDate":$version[0:10], "valueSetValues": .}'
curl --silent --show-error https://covid-19-diagnostics.jrc.ec.europa.eu/devices/hsc-common-recognition-rat | jq \
'{
"valueSetId": "covid-19-lab-test-manufacturer-and-name",
"valueSetDate": .extracted_on[0:10],
"valueSetValues":
(reduce .deviceList[] as $i ({}; .[$i.id_device] =
($i.hsc_list_history | sort_by(.list_date)[-1]) as $latest |
{
"display": ($i.manufacturer.name + ", " + $i.commercial_name),
"lang": "en",
"active": $latest.in_common_list,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": (if $latest.in_common_list then $i.last_updated else $latest.list_date end) }))
}'
146 changes: 129 additions & 17 deletions test-manf.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"valueSetId": "covid-19-lab-test-manufacturer-and-name",
"valueSetDate": "2021-05-27",
"valueSetDate": "2021-06-30",
"valueSetValues": {
"1833": {
"display": "AAZ-LMB, COVID-VIRO",
Expand All @@ -23,12 +23,26 @@
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-10 20:07:30 CET"
},
"2108": {
"display": "AESKU.DIAGNOSTICS GmbH & Co. KG, AESKU.RAPID SARS-CoV-2",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-06-18 12:48:10 CET"
},
"2130": {
"display": "Affimedix, Inc., TestNOW® - COVID-19 Antigen Test",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-31 18:17:24 CET"
},
"1304": {
"display": "AMEDA Labordiagnostik GmbH, AMP Rapid Test SARS-CoV-2 Ag",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-10 13:04:00 CET"
"version": "2021-06-25 12:29:39 CET"
},
"1822": {
"display": "Anbio (Xiamen) Biotechnology Co., Ltd, Rapid COVID-19 Antigen Test(Colloidal Gold)",
Expand Down Expand Up @@ -72,13 +86,27 @@
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-11 09:29:55 CET"
},
"2101": {
"display": "AXIOM Gesellschaft für Diagnostica und Biochemica mbH, COVID-19 Antigen Rapid Test",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-06-03 11:31:32 CET"
},
"1906": {
"display": "Azure Biotech Inc, COVID-19 Antigen Rapid Test Device",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-19 17:14:21 CET"
},
"1065": {
"display": "Becton Dickinson, BD Veritor™ System for Rapid Detection of SARS CoV 2",
"lang": "en",
"active": false,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-11 00:00:00 CET"
},
"1870": {
"display": "Beijing Hotgen Biotech Co., Ltd, Novel Coronavirus 2019-nCoV Antigen Test (Colloidal Gold)",
"lang": "en",
Expand All @@ -100,6 +128,13 @@
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-10 13:04:00 CET"
},
"1242": {
"display": "Bionote, Inc, NowCheck COVID-19 Ag Test",
"lang": "en",
"active": false,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-11 00:00:00 CET"
},
"1223": {
"display": "BIOSYNEX S.A., BIOSYNEX COVID-19 Ag BSS",
"lang": "en",
Expand Down Expand Up @@ -150,11 +185,18 @@
"version": "2021-05-10 13:04:00 CET"
},
"1253": {
"display": "GenSure Biotech Inc, GenSure COVID-19 Antigen Rapid Kit (REF: P2004)",
"display": "GenSure Biotech Inc, GenSure COVID-19 Antigen Rapid Kit",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-10 19:40:14 CET"
"version": "2021-06-14 08:45:26 CET"
},
"2183": {
"display": "Getein Biotech, Inc., One Step Test for SARS-CoV-2 Antigen (Colloidal Gold)",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-06-16 15:21:59 CET"
},
"1144": {
"display": "Green Cross Medical Science Corp., GENEDIA W COVID-19 Ag",
Expand Down Expand Up @@ -184,12 +226,12 @@
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-10 20:07:30 CET"
},
"1256": {
"display": "Hangzhou AllTest Biotech Co., Ltd, COVID-19 and Influenza A+B Antigen Combo Rapid Test",
"1257": {
"display": "Hangzhou AllTest Biotech Co., Ltd, COVID-19 Antigen Rapid Test",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-10 19:40:14 CET"
"version": "2021-06-18 12:47:01 CET"
},
"1363": {
"display": "Hangzhou Clongene Biotech Co., Ltd, Covid-19 Antigen Rapid Test Kit",
Expand Down Expand Up @@ -219,6 +261,13 @@
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-10 19:40:13 CET"
},
"2139": {
"display": "HANGZHOU LYSUN BIOTECHNOLOGY CO., LTD., COVID-19 Antigen Rapid Test Device(Colloidal Gold)",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-06-01 13:28:00 CET"
},
"1392": {
"display": "Hangzhou Testsea Biotechnology Co., Ltd, COVID-19 Antigen Test Cassette",
"lang": "en",
Expand Down Expand Up @@ -261,6 +310,13 @@
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-10 19:40:14 CET"
},
"2128": {
"display": "Lumigenex (Suzhou) Co., Ltd, PocRoc®SARS-CoV-2 Antigen Rapid Test Kit (Colloidal Gold)",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-31 18:19:12 CET"
},
"1267": {
"display": "LumiQuick Diagnostics Inc, QuickProfile COVID-19 Antigen Test",
"lang": "en",
Expand All @@ -282,19 +338,33 @@
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-10 20:07:30 CET"
},
"2029": {
"display": "Merlin Biomedical (Xiamen) Co., Ltd., SARS-CoV-2 Antigen Rapid Test Cassette",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-06-16 15:22:59 CET"
},
"1190": {
"display": "möLab, COVID-19 Rapid Antigen Test",
"display": "möLab, mö-screen Corona Antigen Test",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-10 19:40:13 CET"
"version": "2021-06-15 14:53:05 CET"
},
"1481": {
"display": "MP Biomedicals, Rapid SARS-CoV-2 Antigen Test Card",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-10 20:07:30 CET"
"version": "2021-06-18 11:09:34 CET"
},
"2104": {
"display": "Nal von minden GmbH, NADAL COVID -19 Ag +Influenza A/B Test",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-31 18:20:02 CET"
},
"1162": {
"display": "Nal von minden GmbH, NADAL COVID-19 Ag Test",
Expand All @@ -308,7 +378,14 @@
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-10 19:40:14 CET"
"version": "2021-06-04 14:24:00 CET"
},
"1501": {
"display": "New Gene (Hangzhou) Bioengineering Co., Ltd, COVID-19 Antigen Detection Kit",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-06-16 15:23:40 CET"
},
"1199": {
"display": "Oncosem Onkolojik Sistemler San. ve Tic. A.S., CAT",
Expand All @@ -324,6 +401,13 @@
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-10 20:07:30 CET"
},
"2116": {
"display": "PerGrande BioTech Development Co., Ltd., SARS-CoV-2 Antigen Detection Kit (Colloidal Gold Immunochromatographic Assay)",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-31 18:21:03 CET"
},
"1271": {
"display": "Precision Biosensor, Inc, Exdia COVID-19 Ag",
"lang": "en",
Expand Down Expand Up @@ -353,11 +437,11 @@
"version": "2021-05-10 20:07:30 CET"
},
"1604": {
"display": "Roche (SD BIOSENSOR), SARS-CoV-2 Antigen Rapid Test",
"display": "Roche (SD BIOSENSOR), SARS-CoV-2 Rapid Antigen Test",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-10 20:07:30 CET"
"version": "2021-06-30 10:21:31 CET"
},
"1489": {
"display": "Safecare Biotech (Hangzhou) Co. Ltd, COVID-19 Antigen Rapid Test Kit (Swab)",
Expand All @@ -373,6 +457,13 @@
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-10 19:40:14 CET"
},
"1201": {
"display": "ScheBo Biotech AG, ScheBo SARS CoV-2 Quick Antigen",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-06-16 15:24:26 CET"
},
"344": {
"display": "SD BIOSENSOR Inc, STANDARD F COVID-19 Ag FIA",
"lang": "en",
Expand All @@ -394,6 +485,13 @@
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-10 19:40:14 CET"
},
"2109": {
"display": "Shenzhen Lvshiyuan Biotechnology Co., Ltd., Green Spring SARS-CoV-2 Antigen-Rapid test-Set",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-31 18:22:00 CET"
},
"2017": {
"display": "Shenzhen Ultra-Diagnostics Biotec.Co.,Ltd, SARS-CoV-2 Antigen Test Kit",
"lang": "en",
Expand Down Expand Up @@ -443,19 +541,33 @@
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-19 17:16:42 CET"
},
"2074": {
"display": "Triplex International Biosciences (China) Co., LTD., SARS-CoV-2 Antigen Rapid Test Kit",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-06-16 15:25:05 CET"
},
"1443": {
"display": "Vitrosens Biotechnology Co., Ltd, RapidFor SARS-CoV-2 Rapid Ag Test",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-10 19:40:14 CET"
},
"1246": {
"display": "VivaChek Biotech (Hangzhou) Co., Ltd, Vivadiag SARS CoV 2 Ag Rapid Test",
"2103": {
"display": "VivaChek Biotech (Hangzhou) Co., Ltd, VivaDiag Pro SARS-CoV-2 Ag Rapid Test",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-10 19:40:14 CET"
"version": "2021-05-31 18:22:37 CET"
},
"2098": {
"display": "Wuhan EasyDiagnosis Biomedicine Co., Ltd., COVID-19 (SARS-CoV-2) Antigen Test Kit",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-06-01 08:55:30 CET"
},
"1763": {
"display": "Xiamen AmonMed Biotechnology Co., Ltd, COVID-19 Antigen Rapid Test Kit (Colloidal Gold)",
Expand All @@ -469,7 +581,7 @@
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-05-10 13:04:00 CET"
"version": "2021-06-18 12:05:16 CET"
},
"1456": {
"display": "Xiamen Wiz Biotech Co., Ltd, SARS-CoV-2 Antigen Rapid Test",
Expand Down