Skip to main content

Bundes-Klinik-Atlas API

Project description

klinikatlas

Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://bundes-klinik-atlas.de

Requirements.

Python >= 3.6

Installation & Usage

pip install

pip install deutschland[klinikatlas]

poetry install

poetry add deutschland -E klinikatlas

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 klinikatlas

Getting Started

Please follow the installation procedure and then run the following:

import time
from deutschland import klinikatlas
from pprint import pprint
from deutschland.klinikatlas.api import default_api
from deutschland.klinikatlas.model.fileadmin_json_german_places_json_get200_response_inner import FileadminJsonGermanPlacesJsonGet200ResponseInner
from deutschland.klinikatlas.model.fileadmin_json_german_states_json_get200_response_inner import FileadminJsonGermanStatesJsonGet200ResponseInner
from deutschland.klinikatlas.model.fileadmin_json_icd_codes_json_get200_response_inner import FileadminJsonIcdCodesJsonGet200ResponseInner
from deutschland.klinikatlas.model.fileadmin_json_locations_json_get200_response_inner import FileadminJsonLocationsJsonGet200ResponseInner
from deutschland.klinikatlas.model.fileadmin_json_ops_codes_json_get200_response_inner import FileadminJsonOpsCodesJsonGet200ResponseInner
from deutschland.klinikatlas.model.fileadmin_json_states_json_get200_response_inner import FileadminJsonStatesJsonGet200ResponseInner
from deutschland.klinikatlas.model.searchresults_get200_response import SearchresultsGet200Response
# Defining the host is optional and defaults to https://bundes-klinik-atlas.de
# See configuration.py for a list of all supported configuration parameters.
configuration = klinikatlas.Configuration(
    host = "https://bundes-klinik-atlas.de"
)



# Enter a context with an instance of the API client
with klinikatlas.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = default_api.DefaultApi(api_client)

    try:
        # Liste deutscher Orte abrufen
        api_response = api_instance.fileadmin_json_german_places_json_get()
        pprint(api_response)
    except klinikatlas.ApiException as e:
        print("Exception when calling DefaultApi->fileadmin_json_german_places_json_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://bundes-klinik-atlas.de

Class Method HTTP request Description
DefaultApi fileadmin_json_german_places_json_get GET /fileadmin/json/german-places.json Liste deutscher Orte abrufen
DefaultApi fileadmin_json_german_states_json_get GET /fileadmin/json/german-states.json Liste deutscher Bundesländer mit Koordinaten abrufen
DefaultApi fileadmin_json_icd_codes_json_get GET /fileadmin/json/icd_codes.json Liste der ICD-Codes abrufen
DefaultApi fileadmin_json_locations_json_get GET /fileadmin/json/locations.json Liste deutscher Kliniken abrufen
DefaultApi fileadmin_json_ops_codes_json_get GET /fileadmin/json/ops_codes.json Liste der OPS-Codes abrufen
DefaultApi fileadmin_json_states_json_get GET /fileadmin/json/states.json Liste deutscher Bundesländer abrufen
DefaultApi krankenhaussuche_krankenhaus_id_get GET /krankenhaussuche/krankenhaus/{id}/ Details zu einem spezifischen Krankenhaus abrufen
DefaultApi searchresults_get GET /searchresults/ Suche nach Krankenhäusern basierend auf spezifischen Kriterien

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

poststelle@bmg.bund.de

Notes for Large OpenAPI documents

If the OpenAPI document is large, imports in klinikatlas.apis and klinikatlas.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.klinikatlas.api.default_api import DefaultApi
  • from deutschland.klinikatlas.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 klinikatlas
from deutschland.klinikatlas.apis import *
from deutschland.klinikatlas.models import *

Project details


Download files

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

Source Distribution

de_klinikatlas-1.0.0.tar.gz (47.4 kB view hashes)

Uploaded Source

Built Distribution

de_klinikatlas-1.0.0-py3-none-any.whl (96.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page