A Django app to communicate with Swedish Labportalen.
Project description
django-labportalen is a Django app to communicate with swedish Labportalen service. Suitable with eRemiss version 3.1.0.
Features
Create remiss for a patient against a case.
Fetch analyses reports from SFTP server.
Detailed documentation is in the “docs” directory.
Quick start
Install django-labportalen like this:
pip install --upgrade pip 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, ## required for all services 'sftp_host': env('SFTP_HOSTNAME'), ## required to user SFTP service 'sftp_username': env('SFTP_USERNAME'), ## required to user SFTP service 'sftp_password': env('SFTP_PASSWORD'), ## required to user SFTP service 'sftp_file_prefix': env('SFTP_FILE_PREFIX'), ## required to user SFTP service 'production_env_name': 'PRODUCTION', ## required for all services 'current_env_name': 'DEV', ## required for all services 'soap_service_wsdl_url': env('SERVICE_URL'), ## required to use remiss creation service 'customer_code': env('CUSTOMER_CODE'), ## required to use remiss creation service 'requnitcode': env('REQUNITCODE'), ## required to use remiss creation service 'company_name': env('COMPANY_NAME'), ## required to use remiss creation service 'contact_person': env('CONTACT_PERSON'), ## required to use remiss creation service 'user_guid': os.environ.get('USER_GUID',''), ## optional 'department_id': env('DEPARTMENTID'), ## required to use remiss creation service 'reservenumber_prefix': env('RESERVENUMBER_PREFIX'), ## optional 'case_model': 'case.Case', ## required 'rid_mapping_models': ['case.CaseRid', 'patient_tests.BloodTest'], ## optional }
Start the development server and visit http://127.0.0.1:8000/labportalen/api/ to see available labportalen end-points.
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
Hashes for django_labportalen-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da530c190e17ce8b4b6418b142511c2ac4483ee2eab0a6d35f45177165592420 |
|
MD5 | d17a22a8ab0abe2886a9b65ad816bda7 |
|
BLAKE2b-256 | b8072de0cc5a5d7cfee72797a33b4c59bc65012b4908396a94559633335bf652 |