-
Notifications
You must be signed in to change notification settings - Fork 1
/
update_dehub_mdr.py
51 lines (43 loc) · 1.86 KB
/
update_dehub_mdr.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# miRacumDQA - The MIRACUM consortium's data quality assessment tool
# Copyright (C) 2019-2022 Universitätsklinikum Erlangen
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#!/usr/bin/python
__author__ = "Lorenz A. Kapsner, Moritz Stengel"
__copyright__ = "Universitätsklinikum Erlangen"
import logging
import os
from dqa_mdr_connector.update_mdr import UpdateMDR
from dqamdr_config import de_fhir_path_list
if __name__ == "__main__":
logging.basicConfig(level=logging.DEBUG)
um = UpdateMDR(
csv_file=os.path.join(
os.path.dirname(__file__),
"mdr.csv"
),
separator=";",
api_url="https://dehub-dev.miracum.org/rest/v1/",
api_auth_url="https://miracum-fas.unimedizin-mainz.de/auth/realms/miracum/protocol/openid-connect/token",
de_fhir_paths=de_fhir_path_list,
namespace_designation="miracum-DQA",
namespace_definition="Dev-Namespace für DQA-Tool."
)
um()
# https://auth.dev.osse-register.de/auth/realms/dehub-demo/protocol/openid-connect/token
# https://rest.demo.dataelementhub.de/v1/
# curl -X GET https://miracum-fas.unimedizin-mainz.de/auth/realms/miracum/.well-known/uma2-configuration
# https://jwt.io/
# Password setzen:
# https://miracum-fas.unimedizin-mainz.de/auth/realms/miracum/account/identity