A Django app to communicate with Swedish Labportalen.
Project description
django-labportalen is a Django app to communicate with swedish Labportalen service. Suitable till eRemiss version 3.1.0.
Features
Create remiss for a patient against a case.
Fetch analyses reports from SFTP server.
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 use SFTP service 'sftp_username': env('SFTP_USERNAME'), ## required to use SFTP service 'sftp_password': env('SFTP_PASSWORD'), ## required to use SFTP service 'sftp_file_prefix': env('SFTP_FILE_PREFIX'), ## required to use 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 } ## 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.
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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1f0e6e3c7db23cf91d4a0ddfbf6508a8cfc6675ee728a19cbcdd9d774c216af |
|
MD5 | 87a0aeb36ca697d2a805af630106e835 |
|
BLAKE2b-256 | 3a97cf4bcf79b3eede79afc91c7ad82ef857023867dc38846158d1e0c8fb3f3f |
Hashes for django_labportalen-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c98a445756fee55d5f09a803153d0a433712c0cab3e81149d1f08cd64cc3550 |
|
MD5 | 49f431fd457daa446a0a21dcd3c86023 |
|
BLAKE2b-256 | 1de8ceaaa108ac95d90946455a18229d35635ec1f4721ad38ee6036fca3bbc36 |