JDBC-Hospital-Reservation

Updated:

JDBC-Hospital-Reservation

Korean
  • 프로젝트 주제

    병원 예약 시스템

  • 주제 정하는 과정

    JDBC 구조와 복습에 초점을 더 맞췄고 의료계에서 사용되는 실사용 데이터 구조를 가지고 왔다.

프로젝트 설계

주제 : 병원 예약 시스템

  1. MVC + DAO + DTO 적용

    DI

    JDBC_SQL_DB

  2. 사용하는 테이블 : 성형외과병원 테이블, 의료진 정보 테이블, 환자정보 테이블, 진단명 테이블
  3. 서비스 로직
    1. 모든 환자 검색
    2. 환자 예약번호로 하나의 환자정보만 검색(진료과 정보 포함)
    3. 저장
    4. 수정
    5. 삭제
  4. 클래스 설계 CustodianDTO.java - 의료기관, 의료진 정보 설정 (진료과번호코드,진료과명) CustodianDAO.java InformationRecipientDTO.java - 의뢰 및 예약 대상 의료기관 정보 InformationRecipientDAO.java ProblemDTO.java - 진단내역 설정 ProblemDAO.java - PatientDTO.java - 환자정보 설정(진료예약시간) PatientDAO.java StartView.java EndView.java Controller.java, service
프로젝트 시나리오

환자가 병원과 의사를 검색 및 예약하고 환자ID정보 확인 뒤 진단 내역 출력 되어 다음 병원 후 연계까지 기획

  1. 환자 ID로 검색
  2. 모든 의료기관 검색
  3. 모든 의사 검색
  4. 특정 의사 선택해서 예약
  5. 환자 ID로 예약 정보 확인
  6. 진단 내역 출력
프로젝트 로드맵

image

로그 데이터
  1. 로그 데이터 사진

Untitled

  1. 병원 예약 시스템의 로그를 데이터로 남기면 다음과 같은 정보를 알 수 있습니다.
    1. 어떤 병원을 많이 가는지
    2. 어떤 의사를 많이 선택하는지
    3. 어떤 진료 목적으로 병원에 왔는지
    4. 환자들이 어떤 시간대를 선호하는지
    5. 어떤 지역 사람들이 많이 오는지
    6. 등등
Happening

Happening

  • 기존 데이터에서 우리 팀 프로젝트에 필요한 데이터로 변경 및 테이블 간 관계 구조 변경
    • primary key 설정 및 각 데이터table에서의 고유 값의 중요성을 알게 되었음.

    (다 같이)

  • SQL 입력문 만들 때 스프레드시트의 함수를 사용하면 금방 만들 수 있음.

    (민영)

  • 자바 개발 환경이 달라 호환성 문제가 있었습니다.

    (왕현, 민영, 종욱)

    • DAO 를 만들고 import를 하려고 하면 the resource is not on the build path of a Java project. 라는 에러 메세지가 뜬다.
      • 자바 버전을 맞추어서 해결하였습니다.
  • JDBC드라이버 문제가 발생했었습니다. 자바 경로에 드라이버를 복사해 해결했습니다.

    (민영, 종욱)

  • git Happening
    • 동시에 같은 클래스를 수정하고 git pull을 하니 conflict이 일어나 강제로 pull을 했습니다. 다음부터는 개발할 코드를 클래스 별로 확실하게 나눠서 해야겠다고 느꼈습니다.

      (왕현, 종욱)

    • master branch를 main으로 merge하는 과정에서 문제가 생겼습니다.

      git branch -M main

      git push origin main 했는데 또 문제가 생겼습니다.

      그래서 git push origin main –force를 했습니다.

      (왕현, 종욱)

      그 이후에는 git push origin main만 해도 잘 푸쉬가 되었습니다.

    • git pull을 하는데 The following untracked working tree files would be overwritten by merge:라는 오류가 생겼습니다. 원격 저장소에 있는 파일을 로컬에서 tracking 하지 않아서 오류가 발생했습니다.

      강제로 merge했는데 conflict에러가 발생했습니다. 이 conflict 에러는

      git fetch —all

      git reset —hard origin/main

      git pull origin main로 해결했습니다.

      ___

      (왕현, 종욱)

  • 마지막으로 화면을 공유해서 다같이 코드리뷰를 진행했습니다.

    (다 같이)

English

JDBC Project

  • Project topic

    Hospital reservation

  • The process of setting topic

    we had focused more on JDBC structure and review and has brought practical data structures used in the medical community.

Project design

Topic : Hospital reservation

  1. The application of MVC and DAO and DTO

    DI

    JDBC_SQL_DB

  2. Using table : custodian, information recipient, patient, problem
  3. Service logic
    1. Search all patients
    2. Search only one patient information with the patient reservation number (including care and information)
    3. Create
    4. Update
    5. Delete
  4. Structure of class CustodianDTO.java
    CustodianDAO.java
    InformationRecipientDTO.java
    InformationRecipientDAO.java
    ProblemDTO.java
    ProblemDAO.java
    PatientDTO.java
    PatientDAO.java
    StartView.java
    EndView.java
    Controller.java, service
Project Scenario

Patients search and book hospitals and doctors, check patient ID information, print out diagnostic details, and plan after next hospital connection

  1. Search by Patient ID
  2. Search all medical institutions
  3. Search all doctors
  4. Select a specific doctor to schedule
  5. Verify information of reservation with Patient ID
  6. Output Diagnostic History
Project Roadmap

image

Log data

Untitled

  1. Leaving the log of the hospital reservation system as data provides the following information
    1. Which hospital do people go to a lot
    2. Which doctor do people select a lot?
    3. What kind of medical treatment did people come to the hospital for?
    4. What time zone do patients prefer?
    5. What kind of local people are coming?
    6. And so on
Happening

Happening

  • Change from existing data to the data needed for our team project and change the table-to-table relationship structure
    • We know the importance of the primary key setting and unique values in each data table.
  • When creating an SQL entry, use the function in the spreadsheet to create it quickly.

  • There was a compatibility problem because the Java development environment was different.

    • the resource is not on the build path of a Java project. The error message appears.
      • We fixed the Java version and solved it.
  • There was a problem with the JDBC driver. We solved the problem by copying the driver to the Java path.

  • git Happening
    • At the same time, we modified the same class and got a git pull, and the conflict occurred so we forced the pull. I felt that I should divide the code that I will develop into class from now on.

    • There was a problem in the process of merging the master branch into the main.
        git branch -M main 
      
        git push origin main // problem occured
      
        //So
        git push origin main --force
      
    • When git pull “The following untracked working tree files would be overwritten by merge:” occured. An error occurred because the files in the remote storage were not tracked locally.
        git fetch —all
      
        git reset —hard origin/main
      
        git pull origin main로 해결했습니다.
      

      ___

  • Lastly, we shared the screen and conducted a code review together.

Categories:

Updated: