Skip to main content

Warning: This code is for the so-called Koppeltaal-1 specification. As of Dec 31 2024 all Koppeltaal-1 technical infrastructure is decomissioned and this code base is obsolete. It is left here for historical purposes.

“Koppeltaal” (Ducth for “Connect language”) is a technical solution based on the international HL7/FHIR standard. It enables the exchange of e-health interventions. Koppeltaal enables organizations to connect e-health interventions from other providers to their own IT environment. With Koppeltaal organizations can more easily mix and match the best of the available e-health interventions and applications.

See https://koppeltaal.nl/

This connector acts as an intermediary or adapter between application and framework code and a Koppeltaal server. It is written in the Python programming language.

See https://python.org

This Koppeltaal connector was initially developed by Minddistrict Development B.V. for Stichting Koppeltaal.

Setting up for development

Previously buildout was used for setting up the package for development. We now rely on using a virtual env, pip and a requirements file instead.

Quick start:

`sh # inside the Koppeltaal-Python-Connector checkout $ python3.8 -m venv . $ ./bin/pip install -r requirements -e . `

Or if you use [pipenv](https://github.com/pypa/pipenv): `sh # inside the Koppeltaal-Python-Connector checkout $ pipenv install -r requirements -e . `

Tests

We use the [pytest] framework. The tests should be run against the Koppeltaal edge server, preferrably in a domain sepcifically setup for running the tests.

`sh $ bin/py.test --server=edge `

The –server=edge argument to the test command is the server to connect to when running tests. It is taken from ~/.koppeltaal.cfg. The format of ~/.koppeltaal.cfg looks like this:

` [edge] url = https://edgekoppeltaal.vhscloud.nl username = PA@PythonAdapterTesting4Edge password = <secret here> domain = PythonAdapterTesting `

The name of the configuration section in the ~/.koppeltaal.cfg file is the name passed to the –server argument.

Note how there’re two webdriver/selenium tests. They require a Firefox “driver” to be available on your system. For MacOS using brew, this can be installed like so:

`sh $ brew install geckodriver `

Tox is used for running the test suites for multiple Python versions including 2.7, 3.6, 3.7 and 3.8. Python 2 compatibility is supported throug [six].

Command line interface

To use the koppeltaal connector command line interface:

`sh $ bin/koppeltaal --help `

Arguments:

The first argument to the koppeltaal script is the server to connect to, for example edge. The username, password and domain can be passed in as arguments or taken from ~/.koppeltaal.cfg.

Metadata / Conformance statement

To retrieve the Conformance statement from the server:

`sh $ bin/koppeltaal [servername] metadata `

Activity definition

To get the activity definition from the server:

`sh $ bin/koppeltaal [servername] activities `

Messages

To get a list of messages in the mailbox:

`sh $ bin/koppeltaal [servername] messages `

You can filter on a patient (with –patient), or event (with –event) or status (with –status):

`sh $ bin/koppeltaal [servername] messages --status=New --event=CreateOrUpdateCarePlan `

To get a specific message:

`sh $ bin/koppeltaal [servername] message [message URL or id] `

Python API

Use the following API in your integration code to talk to a Koppeltaal server:

T.B.D.

[buildout]: http://www.buildout.org [pytest]: https://pytest.org [six]: http://six.readthedocs.io/

Release files for koppeltaal 1.3.5.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for koppeltaal 1.3.5.14
File Size Uploaded
koppeltaal-1.3.5.14.tar.gz 71.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for koppeltaal 1.3.5.14
File Interpreter ABI Platform
koppeltaal-1.3.5.14-py3-none-any.whl Python 3 none any Details

Total release size: 147.3 kB

Release files / koppeltaal-1.3.5.14.tar.gz

Download URL koppeltaal-1.3.5.14.tar.gz
Size 71.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dcc60b527a6bdb2aecbb848c68ccd23a18fc79376b5e7980a0f1cb9fff314273
BLAKE2b-256 checksum
How to use checksums
ba5f135063928e8ccd424336ba31fc4b57973f78876a58532a76448e347f5b82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release files / koppeltaal-1.3.5.14-py3-none-any.whl

Download URL koppeltaal-1.3.5.14-py3-none-any.whl
Size 75.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7fd5e8583922be1d5d9b7ffc607be6edd71b7958e6d54635ab28fc7dc65360b3
BLAKE2b-256 checksum
How to use checksums
07fd43a8b91950479117b6551f0eef227f1d0a1c7fae3200544a529c64e05811
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release history Release notifications | RSS feed

This release

1.3.5.14 This release

2 release files

1.3.5.9

1 release file

1.3.5.6

1 release file

1.3.5.5

1 release file

1.3.5.4

1 release file

1.3.5

1 release file

1.3.2.4

1 release file

1.3.2.3

1 release file

1.3.2.2

1 release file

1.3.2.1

1 release file

1.2.1

1 release file

1.2

1 release file

1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page