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
- FileadminJsonGermanPlacesJsonGet200ResponseInner
- FileadminJsonGermanStatesJsonGet200ResponseInner
- FileadminJsonIcdCodesJsonGet200ResponseInner
- FileadminJsonLocationsJsonGet200ResponseInner
- FileadminJsonOpsCodesJsonGet200ResponseInner
- FileadminJsonStatesJsonGet200ResponseInner
- SearchresultsGet200Response
- SearchresultsGet200ResponseFilters
- SearchresultsGet200ResponseFiltersFieldsInner
- SearchresultsGet200ResponseFiltersFieldsInnerOptionsInner
- SearchresultsGet200ResponseFiltersFieldsInnerSliderOptionsInner
- SearchresultsGet200ResponseMetaInfos
- SearchresultsGet200ResponseMetaInfosSearchArguments
- SearchresultsGet200ResponseResultsInner
- SearchresultsGet200ResponseResultsInnerContent
- SearchresultsGet200ResponseResultsInnerContentItemsInner
- SearchresultsGet200ResponseSortings
- SearchresultsGet200ResponseSortingsFieldsInner
- SearchresultsGet200ResponseSortingsFieldsInnerOptionsInner
Documentation For Authorization
All endpoints do not require authorization.
Author
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file de_klinikatlas-1.0.0.tar.gz
.
File metadata
- Download URL: de_klinikatlas-1.0.0.tar.gz
- Upload date:
- Size: 47.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 379d1e79a461171bfdaa2e6adc95703dd4d2f39e7da8ded7af3f92fea8d22e35 |
|
MD5 | 52c2e3e342da258d792ac217e46a93a1 |
|
BLAKE2b-256 | db95f0bca6a1e7ff7bfdc0486edb8ebdc88aa42c51333b32ab042dea75b4bcaa |
File details
Details for the file de_klinikatlas-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: de_klinikatlas-1.0.0-py3-none-any.whl
- Upload date:
- Size: 96.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1bff16a2496ec7b32a24cd65fe6df07b369364798c211fd6b2a7cd8ca6b2f77 |
|
MD5 | 4c6e2fb0eb12c97a76497357f2420772 |
|
BLAKE2b-256 | 6e67251dd95dac5daab1998d03e429dd34d909e0b710f59f69ff7b064d3104a8 |