วันพฤหัสบดีที่ 14 ธันวาคม พ.ศ. 2566

วันศุกร์ที่ 8 ธันวาคม พ.ศ. 2566

Yii2 Spinner

html

<div id="loading-spinner" style="display: none;">

    <!-- Add your spinner image or loading text here -->

    Loading...

</div>

หรือ

<div id="loading-spinner" style="display: none; color: purple; font-size: 20px;">

    <!-- Customize the text and style as needed -->

    <strong>Loading...</strong>

</div>


<javascript>

<script>

$(document).ready(function() {

    $('.popup-link').click(function(e) {

        e.preventDefault();

        var url = $(this).data('url');

        openModalWithData(url);

    });

    $('#selectAll').click(function() {

        // Show the spinner when the button is clicked

        $('#loading-spinner').show();

    });


    // Assuming you have a form with the class 'your-form-class'

    $(document).on('beforeSubmit', 'form[name="frmMain"]', function() {

        // Show the spinner before form submission

        $('#loading-spinner').show();

        return true;

    });

    // If you're using Pjax, hide the spinner on successful Pjax response

    $(document).on('pjax:success', function() {

        $('#loading-spinner').hide();

    });


    // If you're not using Pjax, hide the spinner on any AJAX request completion

    $(document).ajaxStop(function() {

        $('#loading-spinner').hide();

    });

});

function openModalWithData(url) {

    $.ajax({

        url: url,

        method: 'GET',

        success: function(response) {

            $('#myModal .modal-body').html(response);

            $('#myModal').modal('show');

        },

        error: function() {

            alert('An error occurred while fetching data.');

        }

    });

}

</script>


วันพุธที่ 6 ธันวาคม พ.ศ. 2566

Smart Refer EMR

 git clone https://gitlab.com/smartrefer-ubonratchathani/docker-server/smartrefer-client.git

https://gitlab.com/smartrefer/smartemr-web.git

https://gitlab.com/smartrefer/smartemr-api.git

 npm i -g typescript

npm i -g ts-node

npm i -g nodemon

npm i --force

http://localhost:10021/services/visit/2023-10-01/2023-10-01


แจ้งหน่วยบริการทุกแห่งที่ใช้ smart refer

ขณะนี้ทางทีมพัฒนา ได้พัฒนาเวอร์ชั่น 5.1 (เวอร์ชั่นนี้แยกออกจากเขต8) เสร็จเรียบร้อยแล้ว 

*หมายเหตุ ให้ทุกแห่ง down server docker smart refer client และ smart emr ก่อน

แล้วจึงทำตามขั้นตอนการติดตั้งด้านล่างค่ะ


การติดตั้งโปรแกรม R10 Smart Platform

1. cd smartrefer-client 

2. docker-compose down

3. cd ..

4. remane smartrefer-client เป็น  smartrefer-client_old

5. git clone https://gitlab.com/smartrefer-ubonratchathani/docker-server/smartrefer-client.git

6.  cd smartrefer-client

7. แก้ไข ไฟล์ config.api , config.emr , config.pharmacy การเชื่อมต่อ ฐาน his รพ.

8. สั่ง docker system prune -a  แล้วตอบ y 

9. docker-compose  up แล้วลองเข้าระบบ เช่น http://192.168.1.2:8080/    , http://192.168.1.2:8080/smartemr/ ,http://192.168.1.2:8080/coc/

   9.1 ถ้าสั่ง docker-compose  up แล้ว ERROR: Network kong-network declared as external, but could not be found. Please create the network manually using docker network create kong-network and try again. **ให้สั่ง docker network create kong-network ใหม่ครับ

10. ระบบเข้าได้ปกติ ให้กดคีย์บอร์ด Ctrl + C

11. docker-compose  up -d

วันศุกร์ที่ 1 ธันวาคม พ.ศ. 2566

HAIT

 thcc.or.th/index  หนังสือ
http://thcc.or.th/ebook_shelf.html  Ebook
https://drive.google.com/drive/folders/1fWBOu9mff8O463-fiPt9BW1NqQvUmxIF///TMI
การขอรับการตรวจเยี่ยมและตรวจประเมินHAIT รบกวนศึกษาจาก file ใน folder  https://fileserv.moph.go.th/index.php/s/NN3hTcgPocIubgi  

https://tmi.or.th/wp-content/uploads/2023/12/HAIT_Plus_Guideline.pdf
https://drive.google.com/drive/folders/1rvfYS7Io7agyqYgOqbsPgv4987D_tGoE?usp=sharing?? รพ.มะเร็ง
https://pdpa.moph.go.th/pdpa/law_ict.php
https://drive.google.com/drive/folders/1CYZ2sh6LhIUjRuToCZ9pGR_aeEb-Lwj1?usp=sharing?50พรรษา
https://docs.google.com/forms/u/0/d/e/1FAIpQLScqTJbgHvzNL662lhvQ6yGXJJCKkcMEounqRS2eA61Z_jbu-g/formResponse??ประเมิน HAIT ระดับเขต

Proxmox

 https://blog.limitrack.com/proxmox-basic/