django-labportalen
django-labportalen is a Django app to communicate with swedish Labportalen service. Suitable till eRemiss version 3.1.0.
Features
Configure several analyses for different health checks.
Create remiss for a patient against a health check type.
Fetch analyses reports from SFTP server.
Quick start
Install django-labportalen like this:
pip install django-labportalen
Add “labportalen” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'labportalen', ]Include the labportalen URLconf in your project urls.py like this:
path('labportalen/', include('labportalen.urls')),Run python manage.py migrate to create the labportalen models.
Configure LABPORTALEN_SETTINGS with required values in your project’s settings.py:
LABPORTALEN_SETTINGS = { 'base_dir': BASE_DIR, ## -> project's base directory: (required for all services) 'sftp_host': env('SFTP_HOSTNAME'), ## -> SFTP server where XML reports will be uploaded: (required to use SFTP service) 'sftp_username': env('SFTP_USERNAME'), ## -> SFTP server where XML reports will be uploaded: (required to use SFTP service) 'sftp_password': env('SFTP_PASSWORD'), ## -> SFTP server where XML reports will be uploaded: (required to use SFTP service) 'sftp_file_prefix': env('SFTP_FILE_PREFIX'), ## -> SFTP server where XML reports will be uploaded: (required to use SFTP service) 'production_env_name': 'PRODUCTION', ## -> production server name: (required for all services) 'current_env_name': 'DEV', ## -> current server name where this code base is going to be executed: (required for all services) 'soap_service_wsdl_url': env('SERVICE_URL'), ## -> WSDL url where remiss creation request will be posted: (required to use remiss creation service) 'customer_code': env('CUSTOMER_CODE'), ## -> customer code provided by labportalen: (required to use remiss creation service) 'requnitcode': env('REQUNITCODE'), ## -> requnitcode provided by labportalen: (required to use remiss creation service) 'company_name': env('COMPANY_NAME'), ## -> company name provided by labportalen: (required to use remiss creation service) 'contact_person': env('CONTACT_PERSON'), ## -> contact person name provided by labportalen: (required to use remiss creation service) 'user_guid': os.environ.get('USER_GUID',''), ## -> user guid provided by labportalen: (optional) 'department_id': env('DEPARTMENTID'), ## -> department id provided by labportalen: (required to use remiss creation service) 'reservenumber_prefix': env('RESERVENUMBER_PREFIX'), ## -> reservenumber prefix provided by labportalen: (optional) 'case_model': 'case.Case', ## -> case model against which remisses will be created: (required) 'rid_mapping_models': ['case.CaseRid', 'patient_tests.BloodTest'], ## -> if you want to map rids against cases to trace which rid belongs to which case. } ## should be many to one relation: (optional) ## It is recommended to take the credentials from a .env file.Start the development server and visit http://127.0.0.1:8000/labportalen/api/ to see available labportalen end-points.
Contributing
If you face any issues with project, please create and submit an issue, detailing the problem and providing examples to reproduce the problem.
If you wish to contribute to the project via enhancements, please submit an issue outlining how your suggested changes improves the project and the scope of the change.
Metadata
Release files for django-labportalen 0.0.33
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 |
|---|---|---|---|---|
| django-labportalen-0.0.33.tar.gz | 16.1 kB | Without provenance | Details for django-labportalen-0.0.33.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_labportalen-0.0.33-py3-none-any.whl | Python 3 | none | any | Details for django_labportalen-0.0.33-py3-none-any.whl |
Total release size: 36.4 kB
Release files / django-labportalen-0.0.33.tar.gz
| Download URL | django-labportalen-0.0.33.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6da46737a01dfc7dd9ee138729421054379c1d3b4e0e7ce8be0b5064f6488ffb
|
|
BLAKE2b-256 checksum How to use checksums |
6a47b54f7df8a0d5bb3a5a5a1bacd4b012f680471400a7957a02a73318fb9086
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7
|
Release files / django_labportalen-0.0.33-py3-none-any.whl
| Download URL | django_labportalen-0.0.33-py3-none-any.whl |
|---|---|
| Size | 20.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c1d04c983a0e34020537969903d99597b222575a3f7672777181fc0a86ee3002
|
|
BLAKE2b-256 checksum How to use checksums |
11a48bde13bc6fd78e3386487650abdb69a06b4742676e382ee53582e86e6b3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7
|
Security for django-labportalen 0.0.33
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.