FOYDALANILGAN ADABIYOTLAR RO’YHATI
Ўзбекистон Республикаси Президентининг 2017 йил 7 февралдаги «Ўзбекистон Республикасини янада ривожлантириш бўйича ҳаракатлар стратегияси тўғрисида» ги ПФ-4947-сон Фармони. https://lex.uz/docs/3107036
Ўзбекистон Республикаси Президентининг «Ўзбекистон Республикасида маъмурий ислоҳотлар концепциясини тасдиқлаш тўғрисида»ги ПФ-5185 сонли Фармони 2 банди, “а” қисми, 4-сўзбоши;
Карла Поппер, Открытое общество и его враги (The Open Society and Its Enemies), т. 1, — 1945, Вена, (Открытое общество и его враги. Т. 1: Чары Платона. Пер. с англ. под ред. В. Н. Садовского. — М.: Феникс, Международный фонд «Культурная инициатива», 1992. — 448 с)
Roberts, Alasdair S., Structural Pluralism and the Right to Information (July 21, 2001). University of Toronto Law Journal, Vol. 51, No. 3, pp. 243-271, July 2001. Available at SSRN: https://ssrn.com/abstract=1305423
Roberts, Alasdair S., National Security and Open Government (July 1, 2004). Georgetown Public Policy Review, Vol. 9.2, pp. 69-85, Spring 2004. Available at SSRN: https://ssrn.com/abstract=1438084
Шабров О.Ф. Реформа государственной службы: открытость или эффективность? // Социология власти: №6, 2005.
Ҳ. Зайниддинов, М. Якубов, Ж. Қорабоев. “Электрон ҳукумат” Т-2014, “Академия” 23-бет.
А.Усмонов “Бошқарув ахборот тизимлари ва технологиялари асослари”. “Академия” 7-бет.
Jason Hawke. 2011. Writing Authority: Elite Competition and Written Law in Early Greece. pg. 171–172.
Henri Bergson, The Two Sources of Morality and Religion (New York: Henry Holt and company, 1935). Pg. 22
Popper, K.R., (1962) The Spell of Plato, Volume I, Routledge & Kegan Paul, Fourth Edition, London, pg. 199
Richard Chapman. Open Government: A Study Of The Prospects Of Open Government Within The Limitations Of The British Political System. 1987. pg. 11
«Давлат ҳокимияти ва бошқарув органлари фаолиятининг очиқлиги тўғрисида»ги ЎРҚ-369, 05.05.2014 й.
G8 Open Data Charter and Technical Annex [Electronic resource]. – Mode of access: https://www.gov.uk/government/ publications/open-data-charter/g8-open-data-charter-and-technical-annex#technical-annex. – Date of access: 19.04.2018.
Open data: Unlocking innovation and performance with liquid information. Available at: https://www.mckinsey. com/business-functions/digital-mckinsey/our-insights/open-data-unlocking-innovation-and-performance-with-liquidinformation (accessed: 19.04.2018)
Market value Open Data to reach 286 billion by 2020 [Electronic resource]. – Mode of access: https://www.consultancy. uk/news/3019/market-value-open-data-to-reach-286-billion-by-2020. – Date of access: 19.04.2018.
Белл Д. Третья технологическая революция и ее возможные социо-экономические последствия // Информационная революция: наука, экономика, технология. – Москва: ИНИОН РАН, 1993. – С. 29
Мелюхин И. С. Информационное общество: истоки, проблемы, тенденции развития. – Москва: Издательство МГУ, 1999. – С. 156.
Атаманов Г. А. Информационная безопасность: сущность и содержание // Бизнес и безопасность в России. – 2007. – № 47. – С. 106.
Поппер К.Р. Открытое общество и его враги. – М.: Феникс, 1992.;
Шабров О.Ф. Реформа государственной службы: открытость или эффективность? // Социология власти: №6, 2005;
Roberts, Alasdair S., Structural Pluralism and the Right to Information (July 21, 2001). University of Toronto Law Journal, Vol. 51, No. 3, pp. 243-271, July 2001;
Jason Hawke. 2011. Writing Authority: Elite Competition and Written Law in Early Greece;
Henri Bergson, The Two Sources of Morality and Religion (New York: Henry Holt and company, 1935)
ILOVA
const express = require('express');
const bodyParser = require('body-parser');
const _ = require('lodash');
const path = require('path');
const cookieParser = require('cookie-parser');
const exphbs = require('express-handlebars');
const expressValidator = require('express-validator');
const session = require('express-session');
const flash = require('connect-flash');
const passport = require('passport');
const LocalStrategy = require('passport-local').Strategy;
var {mongoose} = require('./server/db/mongoose.js');
var app = express();
app.use(express.static(__dirname + '/views'));
app.use(express.static(path.join(__dirname, '/public')));
app.engine('handlebars', exphbs({defaultLayout: 'layout'}));
app.set('view engine', 'handlebars');
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: true}));
app.use(cookieParser());
app.use(session({
secret: 'secret',
saveUninitialized: true,
resave: true
}));
app.use(passport.initialize());
app.use(passport.session());
app.use(expressValidator({
errorFormatter: function(param, msg, value) {
var namespace = param.split('.')
, root = namespace.shift()
, formParam = root;
while(namespace.length) {
formParam += '[' + namespace.shift() + ']';
}
return {
param : formParam,
msg : msg,
value : value
};
}
}));
app.use(flash());
app.use(function (req, res, next) {
res.locals.success_msg = req.flash('success_msg');
res.locals.error_msg = req.flash('error_msg');
res.locals.error = req.flash('error');
res.locals.user = req.user || null;
next();
});
/
app.use('/app', (req, res, next) => {
// check to be authentificated
if (req.isAuthenticated()) { // if yes, continue
return next();
} else { // if no, login
// req.flash('error_msg', 'You are not logged in');
res.redirect('/');
}
});
var login = require('./routes/login');
var users = require('./routes/users');
var appRoute = require('./routes/app');
var patients = require('./routes/patients');
var settings = require('./routes/settings');
var diseases = require('./routes/diseases');
var rooms = require('./routes/rooms');
app.use('/', login);
app.use('/', appRoute);
app.use('/', users);
app.use('/', patients);
app.use('/', settings);
app.use('/', diseases);
app.use('/', rooms);
app.use(require('morgan')('dev'))
var timestamp = new Date().getTime();
app.set('port', (process.env.PORT || 3000));
app.listen(app.get('port'), function() {
console.log('Server started on port '+ app.get('port'));
});
const mongoose = require('mongoose');
const _ = require('lodash');
var {scoreOfDisease, Disease} = require('./diseases.js');
var rooms = require('./rooms.js');
// User Schema
var PatientSchema = mongoose.Schema({
firstName: {
type: String,
required: true
},
issick: {
type: Boolean,
default: true
},
lastName: {
type: String,
required: true
},
dateOfBirth: {
type: String,
required: true,
},
sex: {
type: Boolean,
required: true,
default: true
},
hospitalNumber: {
type: String,
required: true,
unique: true
},
diseases: {
type: Array,
default: []
},
score: {
type: Number,
required: true,
default: 0
},
room: {
type: String,
required: true,
default: 'noroom'
},
lastUpdate: {
type: Number,
required: true
}
}, {
versionKey: false,
timestamps: true
});
/*
function to update the diseases and the score of a patient
*Requires the patient to have the diseases already saved in the databases
*/
PatientSchema.methods.updateScore = function () {
var patient = this;
// promise to get the patient object inside the diseases callback
var promise = new Promise(function(resolve, reject) {
resolve(patient);
reject(patient);
})
Promise.all([promise.then(function (patient) { return patient; }), Disease.find({})])
.then((data) => {
var patient = data[0];
var diseases = data[1];
var scoreOfDisease = {};
var score = 0;
if (! _.isEmpty(diseases) && _.isArray(diseases)) {
// create a hashmap with the diseases and their scores
for (var i = 0; i < diseases.length; ++i) {
scoreOfDisease[diseases[i].name] = diseases[i].score;
}
for (var i = 0; i < patient.diseases.length; ++i) {
if (scoreOfDisease[patient.diseases[i]] > score) {
score = scoreOfDisease[patient.diseases[i]];
}
}
}
patient.score = score;
patient.save().catch((err) => {
console.log(err);
});
}).catch((err) => {
console.log(err);
});
}
var Patient = mongoose.model('Patient', PatientSchema);
module.exports = {Patient};
Do'stlaringiz bilan baham: |