kookmin-sw / 2018-cap1-4

Oriental medical and Expert system convergence
5 stars 4 forks source link

설문지 연동 관련 (hospitalSurvey) #77

Closed WonYong-Jang closed 6 years ago

WonYong-Jang commented 6 years ago

@KimTaeWoo-CS / 대기자명단 디비테이블 추가됨 현재 대기자 명단에서 설문지를 클릭했을 때 해당 환자의 환자 번호를 가지고 설문지가 팝업창으로 열리게 됩니다. 설문은 기타 항목 전까지 현재 연동한 상태이며, 작성완료하고 저장을 눌르게 되면 map 으로 id 와 value 을 가진 리스트를 가지게 되면 SurveyVO 클래스를 수정해 주시면 될꺼같습니다. 아래는 SurveyVO 클래스에서 소스코드 일부이며 설문지 항목 head_1 일때 updateSymptom 테이블에 넣을 증상 이름인 symptom 를 입력해 주시고 테스트 해보시면 디비테이블에 항목이 들어갈것입니다. 또한 drools 연동을 위해서 rule 테이블, prescription 테이블을 같이 만들어 주시면 됩니다.

    ///////////////////////////////////////////////////////////////////////////////////////////////////////////
    public String fromSurveyToSymptom(String str)   {
        String symptom="";
        switch(str)
        {
            case "head_1": symptom = "head";
                            break;
            case "head_2": symptom = "head2";
                            break;
        }

        return symptom;