Code Monkey home page Code Monkey logo

incuratravel's Introduction

IncuraTravel Tool

This tool takes as input 2 CSV files, exported from Incura:

  1. Client list with addresses
  2. All visits made

Please make sure that there are no headers or empty lines in the these CSV files. These files can be exported in Incura under: Management > Overzichten.

With this data the tool produces 1 CSV output file:

  1. List all trips chronologically with distance in kilometers

Usage

This is how to call the tool:

java IncuraTravel <year> <therapist> <configfile> <importdir> <exportdir>

For example:

java IncuraTravel 2017 maria config.properties ./input ./output

Config File

The config file is not included in the content. Please create this file config.properties. It should have the following attributes:

practice.street=Hoofdstraat 1
practice.postalcode=1234AA
practice.city=Amsterdam

maria.match=Janssen, M. (Maria): Ergotherapeuten
maria.street=Hoofdstraat 1
maria.postalcode =1234AA
maria.city=Utrecht

john.match=Doe, J. (John): Ergotherapeuten
john.street=Hoofdstraat 1
john.postalcode=1234AA
john.city=Rotterdam

There can be multiple therapists defined. The prefix for the therapist refers to the command line parameter. The practice address is used for vists done at the practive office location.

Input

The tool expects the following files to be present in the import directory:

  • clients_<year>.csv for example: clients_2017.csv
  • visits_<year>_<therapist>.csv for example: visits_2017_maria.csv

Output

The tool output a file to the output directory

  • trips_<year>_<therapist>.csv for example: trips_2017_maria.csv

The output csv file contains the following columns:

  • Date (formatted as dd-mm-yyy)
  • Client id
  • From address (street, postal code and city)
  • To address (street, postal code and city)
  • Distance in kilometers

incuratravel's People

Contributors

kbouwmee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.