Dastur avtomatlashtirish jarayoni 33


FOYDALANILGAN ADABIYOTLAR RO’YHATI



Download 4,59 Mb.
bet37/37
Sana18.07.2022
Hajmi4,59 Mb.
#823818
1   ...   29   30   31   32   33   34   35   36   37
Bog'liq
Boburjon diplom

FOYDALANILGAN ADABIYOTLAR RO’YHATI


  1. Ўзбекистон Республикаси Президентининг 2017 йил 7 февралдаги «Ўзбекистон Республикасини янада ривожлантириш бўйича ҳаракатлар стратегияси тўғрисида» ги ПФ-4947-сон Фармони. https://lex.uz/docs/3107036

  2. Ўзбекистон Республикаси Президентининг «Ўзбекистон Республикасида маъмурий ислоҳотлар концепциясини тасдиқлаш тўғрисида»ги ПФ-5185 сонли Фармони 2 банди, “а” қисми, 4-сўзбоши;

  3. Карла Поппер, Открытое общество и его враги (The Open Society and Its Enemies), т. 1, — 1945, Вена, (Открытое общество и его враги. Т. 1: Чары Платона. Пер. с англ. под ред. В. Н. Садовского. — М.: Феникс, Международный фонд «Культурная инициатива», 1992. — 448 с)

  4. 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

  5. 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. Шабров О.Ф. Реформа государственной службы: открытость или эффективность? // Социология власти: №6, 2005.

  7. Ҳ. Зайниддинов, М. Якубов, Ж. Қорабоев. “Электрон ҳукумат” Т-2014, “Академия” 23-бет.

  8. А.Усмонов “Бошқарув ахборот тизимлари ва технологиялари асослари”. “Академия” 7-бет.

  9. Jason Hawke. 2011. Writing Authority: Elite Competition and Written Law in Early Greece. pg. 171–172.

  10. Henri Bergson, The Two Sources of Morality and Religion (New York: Henry Holt and company, 1935). Pg. 22

  11. Popper, K.R., (1962) The Spell of Plato, Volume I, Routledge & Kegan Paul, Fourth Edition, London, pg. 199

  12. Richard Chapman. Open Government: A Study Of The Prospects Of Open Government Within The Limitations Of The British Political System. 1987. pg. 11

  13. «Давлат ҳокимияти ва бошқарув органлари фаолиятининг очиқлиги тўғрисида»ги ЎРҚ-369, 05.05.2014 й.

  14. 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.

  15. 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)

  16. 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.

  17. Белл Д. Третья технологическая революция и ее возможные социо-экономические последствия // Информационная революция: наука, экономика, технология. – Москва: ИНИОН РАН, 1993. – С. 29

  18. Мелюхин И. С. Информационное общество: истоки, проблемы, тенденции развития. – Москва: Издательство МГУ, 1999. – С. 156.

  19. Атаманов Г. А. Информационная безопасность: сущность и содержание // Бизнес и безопасность в России. – 2007. – № 47. – С. 106.

  20. Поппер К.Р. Открытое общество и его враги. – М.: Феникс, 1992.;

  21. Шабров О.Ф. Реформа государственной службы: открытость или эффективность? // Социология власти: №6, 2005;

  22. 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;

  23. Jason Hawke. 2011. Writing Authority: Elite Competition and Written Law in Early Greece;

  24. 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};


Download 4,59 Mb.

Do'stlaringiz bilan baham:
1   ...   29   30   31   32   33   34   35   36   37




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish