diga
API zum DiGA-Verzeichnis https://diga.bfarm.de/de/ des Bundesinstituts für Arzneimittel und Medizinprodukte BfArM. Das Verzeichnis bietet eine Auswahl an digitalen Gesundheitsanwendungen (DiGA), die vom BfArM gemäß § 139e SGB V bewertet wurden.
Anfragen sind als GET-requests zu stellen, wobei zur Authorisierung ein Bearer Token im Header "authorization" anzugeben ist, der wiederum einem GET-request an https://diga.bfarm.de/de/verzeichnis zu entnehmen ist (Im contetn von meta name="host-app/config/environment" unter "APP"/"fhir"/"token").
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 2.0.0
- Package version: 0.1.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://github.com/AndreasFischer1985/diga-api
Requirements.
Python >= 3.6
Installation & Usage
pip install
pip install deutschland[diga]
poetry install
poetry add deutschland -E diga
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Usage
Import the package:
from deutschland import diga
Getting Started
Please follow the installation procedure and then run the following:
import time
from deutschland import diga
from pprint import pprint
from deutschland.diga.api import default_api
# Defining the host is optional and defaults to https://diga.bfarm.de/api/fhir/v2.0
# See configuration.py for a list of all supported configuration parameters.
configuration = diga.Configuration(
host = "https://diga.bfarm.de/api/fhir/v2.0"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
configuration = diga.Configuration(
access_token = 'YOUR_BEARER_TOKEN'
)
# Enter a context with an instance of the API client
with diga.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = default_api.DefaultApi(api_client)
count = 1000 # int |
profile = "https%3A%2F%2Ffhir.bfarm.de%2FStructureDefinition%2FHealthAppCatalogEntry" # str |
try:
# CatalogEntry
api_instance.catalog_entry_get(count, profile)
except diga.ApiException as e:
print("Exception when calling DefaultApi->catalog_entry_get: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://diga.bfarm.de/api/fhir/v2.0
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DefaultApi | catalog_entry_get | GET /CatalogEntry | CatalogEntry |
| DefaultApi | charge_item_definition_get | GET /ChargeItemDefinition | ChargeItemDefinition |
| DefaultApi | device_definition_get | GET /DeviceDefinition | DeviceDefinition |
| DefaultApi | organization_get | GET /Organization | Organization |
| DefaultApi | questionnaire_get | GET /Questionnaire | Questionnaire |
| DefaultApi | questionnaire_response_get | GET /QuestionnaireResponse | Questionnaire |
Documentation For Models
Documentation For Authorization
bearerAuth
- Type: Bearer authentication
Author
Notes for Large OpenAPI documents
If the OpenAPI document is large, imports in diga.apis and diga.models may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
Solution 1: Use specific imports for apis and models like:
from deutschland.diga.api.default_api import DefaultApifrom deutschland.diga.model.pet import Pet
Solution 2: Before importing the package, adjust the maximum recursion limit as shown below:
import sys
sys.setrecursionlimit(1500)
from deutschland import diga
from deutschland.diga.apis import *
from deutschland.diga.models import *
Metadata
Release files for de-diga 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| de_diga-0.1.0.tar.gz | 39.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| de_diga-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 82.7 kB
Release files / de_diga-0.1.0.tar.gz
| Download URL | de_diga-0.1.0.tar.gz |
|---|---|
| Size | 39.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f8269f7776428c38353578e96e579b26271450e6e2c92d80e8051e98db568e1
|
|
BLAKE2b-256 checksum How to use checksums |
3e9a139df5bafcfd70534e4c8c93a70b22a562615cb0aa29987147be68302af9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / de_diga-0.1.0-py3-none-any.whl
| Download URL | de_diga-0.1.0-py3-none-any.whl |
|---|---|
| Size | 43.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6530a8432b090f135dde75dbb2b4d06084a104f7b2878e54f93299073b3e4b4c
|
|
BLAKE2b-256 checksum How to use checksums |
b66a861f9dce79909660fad22db4ae92d292b7c31fc5c2d092d8e75bed275da7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|