Giter Site home page Giter Site logo

clinic's People

Contributors

ifew avatar kaweel avatar ladarat avatar phatpan avatar up1 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

clinic's Issues

Add

#10
Can Save with out validation

เขียน test สำหรับการสร้าง patient id

ซึ่งใช้ format P + เลข 6 หลัก ตัวอย่างเช่น
id =2 จะเป็น P000002

หลักการเป็นการสร้าง interface ขึ้นมาชื่อว่า Counter
มี 1 method คือ count

type Counter interface {
	count() (int, error)
}

ทำให้เราสามารถจำลองการดึง id จาก mongodb หรือ mock ได้ง่าย ๆ

Edit

#9
Can Update Data Patient With out Validation

Advance Search In Fee Page

ค้นหาข้อมูลเพิ่มเติมเมื่อกดปุ่มค้นหาในหน้าบันทึกค่ารักษา
รายละเอียด
แสดง fields ที่สามารถกรอกข้อมูลในการค้นหา ดังนี้

  • ชื่อ
  • นามสกุล
  • รหัสผู้ป่วย
    เมื่อค้นหาข้อมูลสำเร็จ จะแสดงข้อมูลในตารางซึ่งมีข้อมูลดังนี้
  • รหัสผู้ป่วย
  • ชื่อ - นามสกุล
    เมื่อแสดงข้อมูลในตาราง ผู้ใช้งานสามารถเลือกได้เพียงข้อมูลเดียว เมื่อเลือกแล้วข้อมูลจะไปแสดงยังหน้าบันทึกค่ารักษา ข้อมูลจะมีดังนี้
  • รหัสผู้ป่วย จะแสดงในช่องค้นหา
  • ชื่อ - นามสกุล

Save fee, Show message when data is successful or unsuccessful in modal

เมื่อเรียก api save fee จะแสดง modal
เมื่อ call success แสดงข้อความ
- Save successfully.
เมื่อ call fail แสดงข้อความ
- Failed to save data. Please try again. Or contact the system administrator.

SaveFee

จะสามารถบันทึกค่ารักษาได้ก็ต่อเมื่อมีการค้นหาข้อมูลสำเร็จ
แสดงหน้าจอบันทึกค่ารักษา เมื่อกรอกข้อมูล ดังนี้

  • กรอกค่าใช้จ่าย
  • กรอกราคาแต่ละรายการ

Api search patient

Api search patient
url : /patient/search/P2017062623181310
method: get
example response :
{
"id": "595133c5d967dc5d07162c85",
"idPatient": "P2017062623181310",
"firstname": "Phatcharaphan",
"lastname": "ananpreechakun",
"nickname": "kae",
"gender": "w",
"birthday": "21/02/1988",
"idCard": "",
"career": "",
"tel": "0923123123123",
"workAddress": "ddd",
"homeAddress": "dddddddd",
"requiredDocument": "",
"congenitalDisease": "",
"beAllergic": "",
"emergencyContact": {
"name": "aaaa",
"relationship": "father",
"tel": "09213213"
},
"createDateTime": "2017-06-26T23:18:13.635+07:00",
"updateDatetime": "0001-01-01T00:00:00Z"
}

Search In Fee Page

กรอกรหัสผู้ป่วย เพื่อค้นหาข้อมูล ซึ่งมีการทำงานดังนี้

  • กรอกรหัสผู้ป่วยและ onblur
  • ระบบจะดึงข้อมูล ชื่อ - นามสกุล มาแสดง
    ถ้าดึงข้อมูลสำเร็จ ระบบจะ enable
    - รายการค่าใช้จ่าย
    - ราคาค่าใช้จ่าย
    - ปุ่ม +
    - ปุ่ม บันทึก
    ถ้าดึงข้อมูลไม่สำเร็จ ระบบจะ Disable
    - รายการค่าใช้จ่าย
    - ราคาค่าใช้จ่าย
    - ปุ่ม +
    - ปุ่ม บันทึก

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.