python008 Python-based hospital registration system

Collect and follow to avoid getting lost

Article directory

  • Preface
  • 1. Project introduction
  • 2. Development environment
  • 3. Function introduction
  • 4. Core code
  • 5. Effect drawing
  • 6. Article Table of Contents

Foreword

The hospital registration system has administrators, patients, and doctors. Administrator functions include personal center, patient management, doctor management, department type management, department information management, registration appointment management, and system management. Patients can register and log in to make registration appointments, and doctors can view patients’ registration appointments. The development of the hospital registration system is based on the needs of the operators. The interface is simple and beautiful, and the functional module layout is consistent with similar websites. While the program realizes the basic required functions, it also provides some practical solutions to the security issues faced by data information. . It can be said that this program not only helps managers handle work affairs efficiently, but also realizes the integration, standardization and automation of data information.

Keywords: hospital registration system; Python technology; Mysql; automation

1. Project introduction

Competitive pressure in various industries and fields in society is very high. With the informatization and scientific development of the current era, all industries and fields in society are scrambling to use new information technology to scientifically analyze various relevant data in the industry. Standardized management. Such an environment puts those companies that stand still and do not accept the information technology brought by the information reform at risk of being eliminated and replaced at any time. So today, various industries, whether it is the traditional education industry, catering industry, tourism industry, medical industry and other fields, will use new information technology to carry out information revolution, changing the traditional paper-based work that requires manual processing. Office environment. It is the development requirement of the times that software information technology can cover various industries and fields in society. The true electronicization of various data and documents is an irreversible and inevitable trend in the development of the information society. The hospital’s registration system also closely follows the development of science and technology, using today’s first-class software technology to realize the development of the software system, so that the furniture sales inventory management information can be completely managed through the management system to achieve scientific, standardized and programmed management. This helps information managers save transaction processing time, reduce the error rate of data processing, promotes the management level of basic data, and avoids random business management work to a certain extent. At the same time, the hospital registration system The various dynamic information stored in the database also provides a large amount of factual basis for upper-level managers to make major decisions. In short, the hospital registration system is a software system that can truly improve the office efficiency of managers.

2. Development environment

Development language: Python
Python framework: django
Software version: python3.7/python3.8
Database: mysql 5.7 or higher
Database tool: Navicat11
Development software: PyCharm/vs code
Front-end framework: vue.js

—————-

3. Function introduction

When the user’s functional requirements for the program are analyzed and obtained, program design can be carried out. Figure 4.2 shows the administrator function structure diagram.

Figure 4.2 Administrator function structure diagram

4. Core code

Part of the code:

def users_login(request):
    if request.method in ["POST", "GET"]:
        msg = {<!-- -->'code': normal_code, "msg": mes.normal_code}
        req_dict = request.session.get("req_dict")
        if req_dict.get('role')!=None:
            del req_dict['role']
        datas = users.getbyparams(users, users, req_dict)
        if not datas:
            msg['code'] = password_error_code
            msg['msg'] = mes.password_error_code
            return JsonResponse(msg)

        req_dict['id'] = datas[0].get('id')
        return Auth.authenticate(Auth, users, req_dict)


def users_register(request):
    if request.method in ["POST", "GET"]:
        msg = {<!-- -->'code': normal_code, "msg": mes.normal_code}
        req_dict = request.session.get("req_dict")

        error = users.createbyreq(users, users, req_dict)
        if error != None:
            msg['code'] = crud_error_code
            msg['msg'] = error
        return JsonResponse(msg)


def users_session(request):
    '''
    '''
    if request.method in ["POST", "GET"]:
        msg = {<!-- -->"code": normal_code,"msg":mes.normal_code, "data": {<!-- -->}}

        req_dict = {<!-- -->"id": request.session.get('params').get("id")}
        msg['data'] = users.getbyparams(users, users, req_dict)[0]

        return JsonResponse(msg)


def users_logout(request):
    if request.method in ["POST", "GET"]:
        msg = {<!-- -->
            "msg": "Exit successfully",
            "code": 0
        }

        return JsonResponse(msg)


def users_page(request):
    '''
    '''
    if request.method in ["POST", "GET"]:
        msg = {<!-- -->"code": normal_code, "msg": mes.normal_code,
               "data": {<!-- -->"currPage": 1, "totalPage": 1, "total": 1, "pageSize": 10, "list": []}}
        req_dict = request.session.get("req_dict")
        tablename = request.session.get("tablename")
        try:
            __hasMessage__ = users.__hasMessage__
        except:
            __hasMessage__ = None
        if __hasMessage__ and __hasMessage__ != "No":

            if tablename != "users":
                req_dict["userid"] = request.session.get("params").get("id")
        if tablename == "users":
            msg['data']['list'], msg['data']['currPage'], msg['data']['totalPage'], msg['data']['total'], \
            msg['data']['pageSize'] = users.page(users, users, req_dict)
        else:
            msg['data']['list'], msg['data']['currPage'], msg['data']['totalPage'], msg['data']['total'], \
            msg['data']['pageSize'] = [],1,0,0,10

        return JsonResponse(msg)


5. Renderings

Please add image description

Please add image description
Please add image description
Please add image description
Please add image description
Please add image description
Please add image description

6. Article directory

Table of contents
Catalog III
1 Introduction 1
1.1 Research background 1
1.2 Purpose and significance 1
1.3 Thesis structure arrangement 2
2 Related technologies 3
2.1 Introduction to B/S structure 3
2.2 Introduction to Mysql database 3
2.3 Python language 4
3 System Analysis 6
3.1 System Feasibility Analysis 6
3.1.1 Technical feasibility analysis 6
3.1.2 Economic feasibility analysis 6
3.1.3 Operation feasibility analysis 6
3.2 System performance analysis 7
3.2.1 Ease of use index 7
3.2.2 Scalability indicators 7
3.2.3 Robustness indicators 7
3.2.4 Security indicators 8
3.3 System process analysis 8
3.3.1 Operation process analysis 8
3.3.2 Login process analysis 9
3.3.3 Information addition process analysis 10
3.3.4 Analysis of information deletion process 11
4 System Design 12
4.1 System outline design 12
4.2 System functional structure design 12
4.3 Database design 13
4.3.1 Database E-R diagram design 13
4.3.2 Database table structure design 15
5 System Implementation 18
5.1 Patient information management 18
5.2 Department Type 18
5.3 Doctor Management 19
5.4 Announcement information management 20
5.5 Registration appointment management 20
5.6 Department information management 21
6 System Test 23
6.1? Characteristics of system testing? 23
6.2 Test result analysis 23
Conclusion 25
Acknowledgments 26
Reference 27