# TOBE 진료지원 ERD

```mermaid
erDiagram
    tb_proc_ord["tb_proc_ord<br/>(처치 오더)"] {
        string ord_no PK
    }
    tb_rx_ord["tb_rx_ord<br/>(투약 오더)"] {
        string ord_no PK
    }
    tb_spcm["tb_spcm<br/>(검체 정보)"] {
        string spcm_no PK
        string proc_ord_no FK
    }
    tb_lab_tst_mst["tb_lab_tst_mst<br/>(검사 항목 마스터)"] {
        string tst_cd PK
    }
    tb_lab_ord["tb_lab_ord<br/>(검사 오더)"] {
        string lab_ord_no PK
        string proc_ord_no FK
        string spcm_no FK
        string tst_cd FK
    }
    tb_lab_rslt["tb_lab_rslt<br/>(검사 결과)"] {
        string lab_ord_no PK
        int anl_seq PK
    }
    tb_img_exam_mst["tb_img_exam_mst<br/>(영상 검사 마스터)"] {
        string exam_cd PK
    }
    tb_img_ord["tb_img_ord<br/>(영상 오더)"] {
        string img_ord_no PK
        string proc_ord_no FK
        string exam_cd FK
    }
    tb_img_rslt["tb_img_rslt<br/>(영상 판독 결과)"] {
        string img_ord_no PK
    }
    tb_dsps["tb_dsps<br/>(조제 정보)"] {
        string dsps_no PK
        string rx_ord_no FK
    }

    tb_proc_ord ||--o{ tb_spcm : produces
    tb_spcm ||--o{ tb_lab_ord : sampled
    tb_lab_tst_mst ||--o{ tb_lab_ord : ordered
    tb_lab_ord ||--o{ tb_lab_rslt : results
    tb_img_exam_mst ||--o{ tb_img_ord : ordered
    tb_img_ord ||--o| tb_img_rslt : results
    tb_rx_ord ||--o{ tb_dsps : dispensed
```
