Parses data from the Medinet Scheduling system, developed by Medical Networks Scandinavia AB, for analysis in Python, aiding scheduling and follow up. This project is in no way connected to the developers of Medinet.
Prefer working in R? No problem! Check out Medinet ParsePy’s sister package Medinet ParseR.
The following steps describe how to install medinetparsepy
from GitHub.
pip install git+https://github.com/JonasEngstrom/medinetparsepy
The package is structured with one function per file, so a suggested way of importing them is as follows.
from medinetparsepy.load_tidy_schedule import load_tidy_schedule
The functions can be can then be accessed directly.
tidy_schedule = load_tidy_schedule('schedule.html')
If you choose to import all functions at once (not recommended).
from medinetparsepy import *
You must remember to add the module name when calling the function.
tidy_schedule = load_tidy_schedule.load_tidy_schedule('schedule.html')
Medinet ParsePy currently does not support scraping data directly from Medinet, as this would require handling login credentials. Therefore data must first be downloaded manually, by following the subsequent steps.
-
Go to the Medinet Website.
-
Log in.
-
If you work in several departments, you will be prompted to choose one at this point. If not, skip ahead to the next step.
-
Click Schema.
-
Make sure Schemavy is set to Vecka vs användare.
-
Choose the weeks you are interested in analyzing.
-
Use the web brower’s save command.
-
Save the page in HTML format. This will be your input file to Medinet ParsePy.