Skip to main content

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:

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

andreasfischer1985@web.de

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 DefaultApi
  • from 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 *

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

de_diga-0.1.0.tar.gz (39.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

de_diga-0.1.0-py3-none-any.whl (43.5 kB view details)

Uploaded Python 3

File details

Details for the file de_diga-0.1.0.tar.gz.

File metadata

  • Download URL: de_diga-0.1.0.tar.gz
  • Upload date:
  • Size: 39.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for de_diga-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4f8269f7776428c38353578e96e579b26271450e6e2c92d80e8051e98db568e1
MD5 1ca44af51963086c0a9c02d964452a6d
BLAKE2b-256 3e9a139df5bafcfd70534e4c8c93a70b22a562615cb0aa29987147be68302af9

See more details on using hashes here.

File details

Details for the file de_diga-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: de_diga-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 43.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for de_diga-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6530a8432b090f135dde75dbb2b4d06084a104f7b2878e54f93299073b3e4b4c
MD5 4d2a953461f01629ad53b06d16806565
BLAKE2b-256 b66a861f9dce79909660fad22db4ae92d292b7c31fc5c2d092d8e75bed275da7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page