-
Notifications
You must be signed in to change notification settings - Fork 2
Home
System of data visualization of the National Integrated Health System developed by DATA in agreement with the DGSNIS of the Ministry of Public Health with the support of the Latin American Initiative for Open Data ILDA.
-
Postgresql
- Installation
- $
apt-get -y install libpq-dev
-
Ruby 2.2.4
- RVM - Installation
- $
rvm install 2.2.4
- $
rvm use 2.2.4
-
Bundle
- $
gem install bundler --conservative
- $
-
NodeJS
- $
apt get install -y nodejs npm
- $
- $
git clone https://github.com/idatosabiertos/ATuServicio.git
- $
cd ATuServicio
- $
bundle install
- $
rake db:create db:migrate importer:all[year]
- $
bundle exec puma -C config/puma.rb
- Navigate to http://localhost:3000
Vagrant /vagrant
REQUIREMENTS: Vagrant && VirtualBox
- $
git clone https://github.com/idatosabiertos/ATuServicio.git
- $
cd ATuServicio/vagrant
- $
vagrant up
- Navigate to http://localhost:8080
PUMA server, more info
- PORT - default value is 3000.
- WEB_CONCURRENCY - default value is 2.
- MAX_THREADS - default value is 5.
RACK_ENV = production (default value is development)
- ATUSERVICIO_DB - name of the database.
- ATUSERVICIO_DB_USER - user name of the database server.
- ATUSERVICIO_DB_PASSWORD - password of the database server.
- ATUSERVICIO_DB_HOST - name or IP of the host where the database server is located.
Database Diagram /db/schema.rb
### Provider
Refers to the Health Service Provider (eg ASSE, Spanish, Casmu, etc.).
### Sites
Contains the sites of each health care provider.
### States
Contains the departments of Uruguay, which correspond to the location of each site.
## Provider Maximus
Maximum values of each provider for comparison on the homepage.
The data used is extracted annually from the open data catalog of Uruguay.
For more information about the meaning of each indicator, review the methodological guide.
- structure.csv Supplier structure data. Used to import providers (ASSE, Espanola, Casmu, etc.), maped to object Provider.
- host.csv Host data (id, address, department, locality, level, services), Data maped to object Site.
- goals.csv Assistance goals (percentage of affiliates, etc.). Data maped to object Provider.
- prices.csv Tickets prices for medicines, consultations, others. Data maped to object Provider.
- wait_times.csv Wait times. Maped object Provider.
- satisfaccion_derechos.csv Satisfaction of user rights (conformity with availability, evaluation of waiting times, etc.). Data maped to object Provider.
- rrhh.csv Human resources, general practitioners, family, etc. Data maped to object Provider.
- request_consultations.csv Request for consultations (reservation face-to-face, telephone, web). Data maped to object Provider.
Under /config/metadata.yml we find the mapping of the columns of each CSV to its corresponding table in the database, where for each file you have:
* title
- CSV file name (Example:" Structure "," Assistance Goals ").
* description
- Name of the column in the CSV.
* columns
- Name of the column in the object (and the DB).
* definition
- The types of each column (text, boolean, decimal, etc).
Under lib /
directory, there is a script convert.sh
that converts all CSV files from your encoding to an utf-8 encoding for Ruby. It is important to be careful with commas and / or semicolons that are used especially in column separators and decimals.
The CSV files used for each year are stored in /db/data, as well as the migration scripts used to contemplate the changes in that data for each year are in /db/migrate.
Logos must be stored into app/assets/images/logos
directory in the following format:
"# {provider.id} -only-lower-letters.png"
PNG files name only letters (without accents or symbols) and separated from the provider ID (for convenience).
Eg .: 1062-Circulo-Catolico.png
ATuServicio uses source code from the following projects:
Includes Sizzle.js
http://sizzlejs.com/
Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
Released under the MIT license
http://jquery.org/license
Copyright jQuery Foundation and other contributors
Released under the MIT license.
http://jquery.org/license
http://api.jqueryui.com/category/ui-core/
Copyright jQuery Foundation and other contributors
Released under the MIT license.
http://jquery.org/license
http://api.jqueryui.com/jQuery.widget/
Copyright jQuery Foundation and other contributors
Released under the MIT license.
http://jquery.org/license
http://api.jqueryui.com/position/
Copyright jQuery Foundation and other contributors
Released under the MIT license.
http://jquery.org/license
http://api.jqueryui.com/menu/
Copyright jQuery Foundation and other contributors
Released under the MIT license.
http://jquery.org/license
http://api.jqueryui.com/autocomplete/
https://github.com/usablica/intro.js
MIT licensed
Copyright (C) 2013 usabli.ca - A weekend project by Afshin Mehrabani (@afshinmeh)
Copyright 2011-2015 Twitter, Inc.
Licensed under the MIT license
Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors
Released under the MIT license
http://jquery.org/license
ATuServicio uses Travis CI, continuous integration to corroborate that the project is constructed correctly in each push.