Unverified Commit c8fe6bf4 authored by Gordon Grund's avatar Gordon Grund Committed by GitHub
Browse files

Feat/valueset from service (#102)



* get valuesets from service

* add appcontext;remove unused;rename

* add endpoint for testing

* add endpoint for testing

* .

* change countryCode select so valueSet

* add error case for missing valuesets

* log if no hash

* adjust endpoint
Co-authored-by: default avatarGordon Grund <gordon.grund@outlook.de>
parent e144d8f1
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
{
"valueSetId": "disease-agent-targeted",
"valueSetDate": "2021-04-27",
"valueSetValues": {
"840539006": {
"display": "COVID-19",
"lang": "en",
"active": true,
"version": "http://snomed.info/sct/900000000000207008/version/20210131",
"system": "http://snomed.info/sct"
}
}
}
{
"valueSetId": "covid-19-lab-test-manufacturer-and-name",
"valueSetDate": "2021-04-27",
"valueSetValues": {
"1232": {
"display": "Abbott Rapid Diagnostics, Panbio COVID-19 Ag Test",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 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-04-22 02:23:55 CET"
},
"1065": {
"display": "Becton Dickinson, Veritor System Rapid Detection of SARS-CoV-2",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
},
"1331": {
"display": "Beijing Lepu Medical Technology 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-04-22 02:23:55 CET"
},
"1484": {
"display": "Beijing Wantai Biological Pharmacy Enterprise Co., Ltd, Wantai SARS-CoV-2 Ag Rapid Test (FIA)",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
},
"1242": {
"display": "Bionote, Inc, NowCheck COVID-19 Ag Test",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
},
"1223": {
"display": "BIOSYNEX SWISS SA, BIOSYNEX COVID-19 Ag BSS",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
},
"1173": {
"display": "CerTest Biotec, S.L., CerTest SARS-CoV-2 Card test",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
},
"1244": {
"display": "GenBody, Inc, Genbody COVID-19 Ag Test",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
},
"1360": {
"display": "Guangdong Wesail Biotech Co., Ltd, COVID-19 Ag Test Kit",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
},
"1363": {
"display": "Hangzhou Clongene Biotech Co., Ltd, Covid-19 Antigen Rapid Test Kit",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
},
"1767": {
"display": "Healgen Scientific Limited Liability Company, Coronavirus Ag Rapid Test Cassette",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
},
"1333": {
"display": "Joinstar Biomedical Technology Co., Ltd, COVID-19 Rapid Antigen Test (Colloidal Gold)",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
},
"1268": {
"display": "LumiraDX UK Ltd, LumiraDx SARS-CoV-2 Ag Test",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
},
"1180": {
"display": "MEDsan GmbH, MEDsan SARS-CoV-2 Antigen Rapid Test",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
},
"1481": {
"display": "MP Biomedicals Germany GmbH, Rapid SARS-CoV-2 Antigen Test Card",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
},
"1162": {
"display": "Nal von minden GmbH, NADAL COVID-19 Ag Test",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
},
"1271": {
"display": "Precision Biosensor, Inc, Exdia COVID-19 Ag",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
},
"1341": {
"display": "Qingdao Hightop Biotech Co., Ltd, SARS-CoV-2 Antigen Rapid Test (Immunochromatography)",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
},
"1097": {
"display": "Quidel Corporation, Sofia SARS Antigen FIA",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
},
"1489": {
"display": "Safecare Biotech (Hangzhou) Co. Ltd, COVID-19 Antigen Rapid Test Kit (Swab)",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
},
"344": {
"display": "SD BIOSENSOR Inc, STANDARD F COVID-19 Ag FIA",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
},
"345": {
"display": "SD BIOSENSOR Inc, STANDARD Q COVID-19 Ag Test",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
},
"1218": {
"display": "Siemens Healthineers, CLINITEST Rapid Covid-19 Antigen Test",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
},
"1278": {
"display": "Xiamen Boson Biotech Co. Ltd, Rapid SARS-CoV-2 Antigen Test Card",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
},
"1343": {
"display": "Zhejiang Orient Gene Biotech, Coronavirus Ag Rapid Test Cassette (Swab)",
"lang": "en",
"active": true,
"system": "https://covid-19-diagnostics.jrc.ec.europa.eu/devices",
"version": "2021-04-22 02:23:55 CET"
}
}
}
{
"valueSetId": "covid-19-lab-result",
"valueSetDate": "2021-04-27",
"valueSetValues": {
"260415000": {
"display": "Not detected",
"lang": "en",
"active": true,
"version": "http://snomed.info/sct/900000000000207008/version/20210131",
"system": "http://snomed.info/sct"
},
"260373001": {
"display": "Detected",
"lang": "en",
"active": true,
"version": "http://snomed.info/sct/900000000000207008/version/20210131",
"system": "http://snomed.info/sct"
}
}
}
{
"valueSetId": "covid-19-lab-test-type",
"valueSetDate": "2021-04-27",
"valueSetValues": {
"LP6464-4": {
"display": "Nucleic acid amplification with probe detection",
"lang": "en",
"active": true,
"version": "2.69",
"system": "http://loinc.org"
},
"LP217198-3": {
"display": "Rapid immunoassay",
"lang": "en",
"active": true,
"version": "2.69",
"system": "http://loinc.org"
}
}
}
\ No newline at end of file
{
"valueSetId": "vaccines-covid-19-auth-holders",
"valueSetDate": "2021-04-27",
"valueSetValues": {
"ORG-100001699": {
"display": "AstraZeneca AB",
"lang": "en",
"active": true,
"version": "",
"system": "https://spor.ema.europa.eu/v1/organisations"
},
"ORG-100030215": {
"display": "Biontech Manufacturing GmbH",
"lang": "en",
"active": true,
"system": "https://spor.ema.europa.eu/v1/organisations",
"version": "",
"valueSetId": "vaccines-covid-19-auth-holders"
},
"ORG-100001417": {
"display": "Janssen-Cilag International",
"lang": "en",
"active": true,
"system": "https://spor.ema.europa.eu/v1/organisations",
"version": "",
"valueSetId": "vaccines-covid-19-auth-holders"
},
"ORG-100031184": {
"display": "Moderna Biotech Spain S.L.",
"lang": "en",
"active": true,
"system": "https://spor.ema.europa.eu/v1/organisations",
"version": "",
"valueSetId": "vaccines-covid-19-auth-holders"
},
"ORG-100006270": {
"display": "Curevac AG",
"lang": "en",
"active": true,
"system": "https://spor.ema.europa.eu/v1/organisations",
"version": "",
"valueSetId": "vaccines-covid-19-auth-holders"
},
"ORG-100013793": {
"display": "CanSino Biologics",
"lang": "en",
"active": true,
"system": "https://spor.ema.europa.eu/v1/organisations",
"version": "",
"valueSetId": "vaccines-covid-19-auth-holders"
},
"ORG-100020693": {
"display": "China Sinopharm International Corp. - Beijing location",
"lang": "en",
"active": true,
"system": "https://spor.ema.europa.eu/v1/organisations",
"version": "",
"valueSetId": "vaccines-covid-19-auth-holders"
},
"ORG-100010771": {
"display": "Sinopharm Weiqida Europe Pharmaceutical s.r.o. - Prague location",
"lang": "en",
"active": true,
"system": "https://spor.ema.europa.eu/v1/organisations",
"version": "",
"valueSetId": "vaccines-covid-19-auth-holders"
},
"ORG-100024420": {
"display": "Sinopharm Zhijun (Shenzhen) Pharmaceutical Co. Ltd. - Shenzhen location",
"lang": "en",
"active": true,
"system": "https://spor.ema.europa.eu/v1/organisations",
"version": "",
"valueSetId": "vaccines-covid-19-auth-holders"
},
"ORG-100032020": {
"display": "Novavax CZ AS",
"lang": "en",
"active": true,
"system": "https://spor.ema.europa.eu/v1/organisations",
"version": "",
"valueSetId": "vaccines-covid-19-auth-holders"
},
"Gamaleya-Research-Institute": {
"display": "Gamaleya Research Institute",
"lang": "en",
"active": true,
"system": "http://ec.europa.eu/temp/vaccinemanufacturer",
"version": "1.0",
"valueSetId": "vaccines-covid-19-auth-holders"
},
"Vector-Institute": {
"display": "Vector Institute",
"lang": "en",
"active": true,
"system": "http://ec.europa.eu/temp/vaccinemanufacturer",
"version": "1.0",
"valueSetId": "vaccines-covid-19-auth-holders"
},
"Sinovac-Biotech": {
"display": "Sinovac Biotech",
"lang": "en",
"active": true,
"system": "http://ec.europa.eu/temp/vaccinemanufacturer",
"version": "1.0",
"valueSetId": "vaccines-covid-19-auth-holders"
},
"Bharat-Biotech": {
"display": "Bharat Biotech",
"lang": "en",
"active": true,
"system": "http://ec.europa.eu/temp/vaccinemanufacturer",
"version": "1.0",
"valueSetId": "vaccines-covid-19-auth-holders"
}
}
}
{
"valueSetId": "vaccines-covid-19-names",
"valueSetDate": "2021-04-27",
"valueSetValues": {
"EU/1/20/1528": {
"display": "Comirnaty",
"lang": "en",
"active": true,
"system": "https://ec.europa.eu/health/documents/community-register/html/",
"version": ""
},
"EU/1/20/1507": {
"display": "COVID-19 Vaccine Moderna",
"lang": "en",
"active": true,
"system": "https://ec.europa.eu/health/documents/community-register/html/",
"version": ""
},
"EU/1/21/1529": {
"display": "Vaxzevria",
"lang": "en",
"active": true,
"system": "https://ec.europa.eu/health/documents/community-register/html/",
"version": ""
},
"EU/1/20/1525": {
"display": "COVID-19 Vaccine Janssen",
"lang": "en",
"active": true,
"system": "https://ec.europa.eu/health/documents/community-register/html/",
"version": ""
},
"CVnCoV": {
"display": "CVnCoV",
"lang": "en",
"active": true,
"system": "http://ec.europa.eu/temp/vaccineproductname",
"version": "1.0"
},
"Sputnik-V": {
"display": "Sputnik-V",
"lang": "en",
"active": true,
"system": "http://ec.europa.eu/temp/vaccineproductname",
"version": "1.0"
},
"Convidecia": {
"display": "Convidecia",
"lang": "en",
"active": true,
"system": "http://ec.europa.eu/temp/vaccineproductname",
"version": "1.0"
},
"EpiVacCorona": {
"display": "EpiVacCorona",
"lang": "en",
"active": true,
"system": "http://ec.europa.eu/temp/vaccineproductname",
"version": "1.0"
},
"BBIBP-CorV": {
"display": "BBIBP-CorV",
"lang": "en",
"active": true,
"system": "http://ec.europa.eu/temp/vaccineproductname",
"version": "1.0"
},
"Inactivated-SARS-CoV-2-Vero-Cell": {
"display": "Inactivated SARS-CoV-2 (Vero Cell)",
"lang": "en",
"active": true,
"system": "http://ec.europa.eu/temp/vaccineproductname",
"version": "1.0"
},
"CoronaVac": {
"display": "CoronaVac",
"lang": "en",
"active": true,
"system": "http://ec.europa.eu/temp/vaccineproductname",
"version": "1.0"
},
"Covaxin": {
"display": "Covaxin (also known as BBV152 A, B, C)",
"lang": "en",
"active": true,
"system": "http://ec.europa.eu/temp/vaccineproductname",
"version": "1.0"
}
}
}
{
"valueSetId": "sct-vaccines-covid-19",
"valueSetDate": "2021-04-27",
"valueSetValues": {
"1119349007": {
"display": "SARS-CoV-2 mRNA vaccine",
"lang": "en",
"active": true,
"version": "http://snomed.info/sct/900000000000207008/version/20210131",
"system": "http://snomed.info/sct"
},
"1119305005": {
"display": "SARS-CoV-2 antigen vaccine",
"lang": "en",
"active": true,
"version": "http://snomed.info/sct/900000000000207008/version/20210131",
"system": "http://snomed.info/sct"
},
"J07BX03": {
"display": "covid-19 vaccines",
"lang": "en",
"active": true,
"version": "http://snomed.info/sct/900000000000207008/version/20210131",
"system": "http://snomed.info/sct"
}
}
}
declare module 'browserify-zlib' {
export function deflateSync(buffer: Buffer) : Buffer;
export function deflateSync(buffer: Buffer): Buffer;
}
\ No newline at end of file
......@@ -34,7 +34,7 @@ const DataprivacyPage = (props: any) => {
React.useEffect(() => {
if (props)
setShow(props.show);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [props.show])
......@@ -60,17 +60,17 @@ const DataprivacyPage = (props: any) => {
</Col>
</Row>
</Modal.Header>
<hr className='mx-3 mb-0' />
<hr className='mx-3 mb-0' />
<Modal.Body className='px-3'>
<Container className='px-1 px-sm-2 px-md-3'>
<h5 className='text-justify'>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ornare rhoncus enim, sed tincidunt erat lobortis nec. Etiam ac erat vel sem mattis consequat. Pellentesque aliquam consequat tellus, eu sagittis neque laoreet vitae.
</h5>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ornare rhoncus enim, sed tincidunt erat lobortis nec. Etiam ac erat vel sem mattis consequat. Pellentesque aliquam consequat tellus, eu sagittis neque laoreet vitae.
</h5>
</Container>
</Modal.Body>
<hr className='mx-3 mt-0' />
<hr className='mx-3 mt-0' />
{/*
footer with ok button
......
......@@ -65,7 +65,7 @@ const ErrorPage = (props: any) => {
<hr />
<p className='text-center'>
<span className='font-weight-bold'>{t('translation:serverError')}</span>
<span>{props?.error?.message}</span>
<span>{props?.error ? props?.error?.message : props.message}</span>
</p>
<hr />
......
......@@ -25,30 +25,23 @@ import { Image, Container } from 'react-bootstrap'
import '../i18n';
import { useTranslation } from 'react-i18next';
import useNavigation from '../misc/navigation';
import EULogo from '../assets/images/Flag+EU.png'
const Header = (props: any) => {
const navigation = useNavigation();
const { t } = useTranslation();
const [isInit, setIsInit] = React.useState(false)
const [isInit] = React.useState(true);
React.useEffect(() => {
if (navigation)
setIsInit(true);
}, [navigation])
return (!isInit?<></>:
return (!isInit ? <></> :
<>
<Container className='bg-white px-0 position-relative'>
{/* simple header with logo */}
<Image src={EULogo} className='m-3' />
</Container>
<Container className='d-flex bg-gray-1 px-0 position-relative'>
<span className='header-title'>{t('translation:title')}</span>
</Container>
<Container className='bg-white px-0 position-relative'>
{/* simple header with logo */}
<Image src={EULogo} className='m-3' />
</Container>
<Container className='d-flex bg-gray-1 px-0 position-relative'>
<span className='header-title'>{t('translation:title')}</span>
</Container>
</>
)
}
......
......@@ -35,7 +35,7 @@ const ImprintPage = (props: any) => {
if (props)
setShow(props.show);
// eslint-disable-next-line react-hooks/exhaustive-deps
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [props.show])