medmij-python
Python implementation of de MedMij ZAL, OCL, Whitelist and GNL
Installation
$ pip install medmij-lists
Usage
Whitelist
import urllib.request
import medmij_lists
WHITELIST_URL = "https://afsprakenstelsel.medmij.nl/download/attachments/22348803/MedMij_Whitelist_example.xml"
with urllib.request.urlopen(WHITELIST_URL) as u:
whitelist_xml = u.read()
whitelist = medmij_lists.Whitelist(xmldata=whitelist_xml)
print('rcf-rso.nl' in whitelist)
print('example.com' in whitelist)
Run whitelist.py:
(env) $ python whitelist.py
True
False
ZAL
import urllib.request
import medmij_lists
ZAL_URL = "https://afsprakenstelsel.medmij.nl/download/attachments/22348803/MedMij_Zorgaanbiederslijst_example.xml"
with urllib.request.urlopen(ZAL_URL) as u:
zal_xml = u.read()
zal = medmij_lists.ZAL(xmldata=zal_xml)
za = zal["umcharderwijk@medmij"]
print(za.gegevensdiensten["4"].authorization_endpoint_uri)
Run zal.py:
(env) $ python zal.py
https://medmij.za982.xisbridge.net/oauth/authorize
OCL
import urllib.request
import medmij_lists
OCL_URL = "https://afsprakenstelsel.medmij.nl/download/attachments/22348803/MedMij_OAuthclientlist_example.xml"
with urllib.request.urlopen(OCL_URL) as u:
ocl_xml = u.read()
ocl = medmij_lists.OAuthclientList(xmldata=ocl_xml)
client = ocl["medmij.deenigeechtepgo.nl"]
print(client.organisatienaam)
Run ocl.py:
(env) $ python ocl.py
De Enige Echte PGO
GNL
import urllib.request
import medmij_lists
GNL_URL = "https://afsprakenstelsel.medmij.nl/download/attachments/22348803/MedMij_Gegevensdienstnamenlijst_example.xml"
with urllib.request.urlopen(GNL_URL) as u:
gnl_xml = u.read()
gnl = medmij_lists.GNL(xmldata=gnl_xml)
gd = gnl["1"]
print(gd.weergavenaam)
Run gnl.py:
(env) $ python gnl.py
Basisgegevens Zorg
Version Guidance
This library follows Semantic Versioning. The versions of the Afsprakenset are mapped to the versions of the library as follows:
| Version Afsprakenset | Status | Version library |
|---|---|---|
| Afsprakenset release 1.1 | Latest | 0.1.* |
Metadata
Release files for medmij-lists 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 | Provenance | Actions |
|---|---|---|---|---|
| medmij-lists-0.1.0.tar.gz | 6.5 kB | Without provenance | Details for medmij-lists-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| medmij_lists-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for medmij_lists-0.1.0-py3-none-any.whl |
Total release size: 36.4 kB
Release files / medmij-lists-0.1.0.tar.gz
| Download URL | medmij-lists-0.1.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd08c7fb2d5cac275200e0778db53038fb8f4952b8c2a50ad68e7eda95b75c08
|
|
BLAKE2b-256 checksum How to use checksums |
9f2a2a8a37b3b8eb70464397c3df63e3e33f2495aa13430bdf40f250662580eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
|
Release files / medmij_lists-0.1.0-py3-none-any.whl
| Download URL | medmij_lists-0.1.0-py3-none-any.whl |
|---|---|
| Size | 29.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b06be3745e7171aaa14f71b658325e2bde7c765e411c8bb616c160e10925be43
|
|
BLAKE2b-256 checksum How to use checksums |
e2d01cb8f2a583aad61feebdb66d9d263fd0136ad8750f0076f0c2f9fd2168ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
|
Security for medmij-lists 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.