Jelajahi Sumber

1. 환자상세정보 개발

songjunekeun 5 tahun lalu
induk
melakukan
c45e0d3667

+ 1 - 1
.idea/misc.xml

@@ -1,4 +1,4 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
-  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="JDK" project-jdk-type="JavaSDK" />
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
 </project>

+ 1 - 0
app/src/main/java/com/dbs/mplus/knuh/MainActivity.java

@@ -15,6 +15,7 @@ import com.gun0912.tedpermission.PermissionListener;
 import com.gun0912.tedpermission.TedPermission;
 
 import java.util.ArrayList;
+import java.util.HashMap;
 
 public class MainActivity extends AppCompatActivity {
 

+ 26 - 7
app/src/main/java/com/dbs/mplus/knuh/activity/ConsentActivity.java

@@ -28,6 +28,7 @@ import android.widget.Toast;
 
 import com.dbs.mplus.knuh.BuildConfig;
 import com.dbs.mplus.knuh.R;
+import com.dbs.mplus.knuh.activity.activityEvent.CenterMenu;
 import com.dbs.mplus.knuh.activity.activityEvent.LeftMenu;
 import com.dbs.mplus.knuh.activity.activityEvent.RightMenu;
 import com.dbs.mplus.knuh.activity.activityEvent.TapMenu;
@@ -53,6 +54,7 @@ public class ConsentActivity extends AppCompatActivity {
   private TopMenu topMenu;
   private TapMenu tapMenu;
   private LeftMenu leftMenu;
+  public CenterMenu centerMenu;
   private RightMenu rightMenu;
 
   /** 상단 메뉴 **/
@@ -114,6 +116,14 @@ public class ConsentActivity extends AppCompatActivity {
   public CheckBox chkMyPatient;
   /** left Menu **/
 
+  /** Center Menu **/
+  public TextView tvPatientInfo;
+  public TextView tvAdmissionDay;
+  public TextView tvChargeDoctor;
+  public TextView tvDiagnosisName;
+  public TextView tvPatientAlert;
+  /** Center Meny **/
+
   /** Right Menu **/
   public LinearLayout historyLayout;
   public LinearLayout markerLayout;
@@ -155,7 +165,7 @@ public class ConsentActivity extends AppCompatActivity {
     setTopMenuLayout();
     setTapMenuLayout();
     setLeftLayout();
-
+    setCenterLayout();
     setRightLayout();
 
     setTopMenuEvent();
@@ -186,11 +196,12 @@ public class ConsentActivity extends AppCompatActivity {
 
   private void setLoadClass() {
     loadingProgress = new LoadingProgress(mContext);
-    csAlert = new CustomAlertDialog(mContext);
-    topMenu  = new TopMenu(mContext, mActivity);
-    tapMenu  = new TapMenu(mContext, mActivity);
-    leftMenu = new LeftMenu(mContext, mActivity);
-    rightMenu = new RightMenu(mContext, mActivity);
+    csAlert    = new CustomAlertDialog(mContext);
+    topMenu    = new TopMenu(mContext, mActivity);
+    tapMenu    = new TapMenu(mContext, mActivity);
+    leftMenu   = new LeftMenu(mContext, mActivity);
+    centerMenu = new CenterMenu(mContext, mActivity);
+    rightMenu  = new RightMenu(mContext, mActivity);
   }
 
   private void setTopMenuLayout() {
@@ -297,7 +308,15 @@ public class ConsentActivity extends AppCompatActivity {
     leftMenu.getDeptList();
   }
 
-  public void setRightLayout() {
+  private void setCenterLayout() {
+    tvPatientInfo   = (TextView) findViewById(R.id.tvPatientInfo);
+    tvAdmissionDay  = (TextView) findViewById(R.id.tvAdmissionDay);
+    tvChargeDoctor  = (TextView) findViewById(R.id.tvChargeDoctor);
+    tvDiagnosisName = (TextView) findViewById(R.id.tvDiagnosisName);
+    tvPatientAlert  = (TextView) findViewById(R.id.tvPatientAlert);
+  }
+
+  private void setRightLayout() {
     /** RightTab **/
     historyLayout = (LinearLayout) findViewById(R.id.historyLayout);
     markerLayout  = (LinearLayout) findViewById(R.id.markerLayout);

+ 2 - 1
app/src/main/java/com/dbs/mplus/knuh/activity/LoginActivity.java

@@ -222,7 +222,8 @@ public class LoginActivity extends AppCompatActivity {
           if (arrayList.size() == 0) {
             stop();
           } else {
-            loadingProgress.dismiss();
+            stop();
+//            loadingProgress.dismiss();
             SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmm");
             Date nowDate = new Date();
             String nowDateStr = dateFormat.format(nowDate);

+ 83 - 0
app/src/main/java/com/dbs/mplus/knuh/activity/activityEvent/CenterMenu.java

@@ -0,0 +1,83 @@
+package com.dbs.mplus.knuh.activity.activityEvent;
+
+import android.content.Context;
+import android.util.Log;
+
+import androidx.appcompat.app.AppCompatActivity;
+
+import com.dbs.mplus.knuh.activity.ConsentActivity;
+import com.dbs.mplus.knuh.httpTask.CallBack;
+import com.dbs.mplus.knuh.httpTask.HttpRunnable;
+import com.dbs.mplus.knuh.httpTask.SoapParser;
+import com.dbs.mplus.knuh.model.PatientInfoVO;
+import com.dbs.mplus.knuh.util.ConsentConfig;
+import com.dbs.mplus.knuh.util.Util;
+
+import org.ksoap2.serialization.SoapObject;
+
+import java.util.HashMap;
+
+public class CenterMenu {
+
+  private static final String TAG = "CenterMenu";
+  private AppCompatActivity mActivity;
+  private Context mContext;
+  private ConsentActivity instance;
+  public PatientInfoVO patientInfoVO;
+
+  public CenterMenu(Context mContext, AppCompatActivity mActivity) {
+    this.mActivity = mActivity;
+    this.mContext  = mContext;
+    this.instance  = (ConsentActivity) mContext;
+  }
+
+  public void getPatientInfo(HashMap<String, String> mData) {
+
+    CallBack callBack = new CallBack() {
+      @Override
+      public void result(SoapObject result) {
+        Log.e(TAG, "result -- > " + result);
+        patientInfoVO = SoapParser.getPatientInfo(result);
+        Log.e(TAG, "patientInfoVO" +  patientInfoVO);
+        setPatientInfo();
+      }
+
+      @Override
+      public void stop() {
+
+      }
+
+      @Override
+      public void error() {
+
+      }
+    };
+
+    Util.callHttp(mContext, ConsentConfig.HOST_HOSPITAL, ConsentConfig.GET_PATIENT_INFO, mData, callBack);
+  }
+
+  private void setPatientInfo() {
+    mActivity.runOnUiThread(new Runnable() {
+      @Override
+      public void run() {
+        String pid         = patientInfoVO.getPid();
+        String patientName = patientInfoVO.getPatientName();
+        String sa          = patientInfoVO.getSa();
+        String juminNo     = patientInfoVO.getJuminNo();
+        String inDd        = patientInfoVO.getInDd();
+        String mainDrName  = patientInfoVO.getMainDrName();
+        String dxNm        = patientInfoVO.getDxNm();
+        String alert       = patientInfoVO.getGbn();
+        String patientInfo = pid + " " + patientName + " " + sa + " " + juminNo.substring(0, 6);
+
+        instance.tvPatientInfo.setText(patientInfo);
+        instance.tvAdmissionDay.setText(inDd);
+        instance.tvChargeDoctor.setText(mainDrName);
+        instance.tvDiagnosisName.setText(dxNm);
+        instance.tvPatientAlert.setText(alert);
+      }
+    });
+
+  }
+
+}

+ 1 - 1
app/src/main/java/com/dbs/mplus/knuh/activity/activityEvent/LeftMenu.java

@@ -542,7 +542,7 @@ public class LeftMenu {
         if (patientListAdapter == null) {
           linearLayoutManager = new LinearLayoutManager(mActivity, LinearLayoutManager.VERTICAL, false);
           instance.patientRecyclerView.setLayoutManager(linearLayoutManager);
-          patientListAdapter = new PatientListAdapter(mActivity, arrayList, instance.indexPage);
+          patientListAdapter = new PatientListAdapter(mActivity, mContext, arrayList, instance.indexPage);
           instance.patientRecyclerView.setAdapter(patientListAdapter);
 //      patientListAdapter.setOnClickEvent(onClickEvent);
         } else {

+ 37 - 3
app/src/main/java/com/dbs/mplus/knuh/adapter/PatientListAdapter.java

@@ -1,5 +1,7 @@
 package com.dbs.mplus.knuh.adapter;
 
+import android.content.Context;
+import android.util.Log;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
@@ -12,20 +14,27 @@ import androidx.appcompat.widget.AppCompatRadioButton;
 import androidx.recyclerview.widget.RecyclerView;
 
 import com.dbs.mplus.knuh.R;
+import com.dbs.mplus.knuh.activity.ConsentActivity;
 import com.dbs.mplus.knuh.model.PatientListVO;
 
 import java.util.ArrayList;
+import java.util.HashMap;
 
 public class PatientListAdapter extends RecyclerView.Adapter<PatientListAdapter.ViewHolder> {
 
+  private static final String TAG = "PatientListAdapter";
   private AppCompatActivity mActivity;
+  private Context mContext;
+  private ConsentActivity instance;
   public ArrayList<PatientListVO> arrayList;
   private String indexPage = "";
   private int rowIndex = 0;
   private boolean click = false;
 
-  public PatientListAdapter(AppCompatActivity mActivity, ArrayList<PatientListVO> patientLists, String indexPage) {
+  public PatientListAdapter(AppCompatActivity mActivity, Context mContext, ArrayList<PatientListVO> patientLists, String indexPage) {
     this.mActivity = mActivity;
+    this.mContext  = mContext;
+    this.instance  = (ConsentActivity) mContext;
     this.arrayList = patientLists;
     this.indexPage = indexPage;
   }
@@ -111,12 +120,37 @@ public class PatientListAdapter extends RecyclerView.Adapter<PatientListAdapter.
     @Override
     public void onClick(View v) {
       ViewHolder holder = (ViewHolder) v.getTag();
+      int position = holder.getLayoutPosition();
+      PatientListVO patientListVO = arrayList.get(position);
+      String pid       = patientListVO.getPid();
+      String inDd      = patientListVO.getInDd();
+      String ordType   = indexPage;
+      String ordDeptCd = patientListVO.getOrdDeptCd();
+      String cretNo    = patientListVO.getCretNo();
+      String instCd    = patientListVO.getInstCd();
+      String opRsrvNo  = patientListVO.getOprsRvN();
+
+      Log.e(TAG, "pid       -- > " + pid      );
+      Log.e(TAG, "inDd      -- > " + inDd     );
+      Log.e(TAG, "ordType   -- > " + ordType  );
+      Log.e(TAG, "ordDeptCd -- > " + ordDeptCd);
+      Log.e(TAG, "cretNo    -- > " + cretNo   );
+      Log.e(TAG, "instCd    -- > " + instCd   );
+      Log.e(TAG, "opRsrvNo  -- > " + opRsrvNo );
 
       if (v == holder.listLayer) {
-        rowIndex = holder.position;
-//        holder.listLayer.setBackgroundColor(mActivity.getColor(R.color.patientInfo));
+        rowIndex = position;
         click = true;
         notifyDataSetChanged();
+        HashMap<String, String> mData = new HashMap<String, String>();
+        mData.put("pid", pid);
+        mData.put("inDd", inDd);
+        mData.put("ordType", ordType);
+        mData.put("ordDeptCd", ordDeptCd);
+        mData.put("cretNo", cretNo);
+        mData.put("instCd", instCd);
+        mData.put("opRsrvNo", opRsrvNo);
+        instance.centerMenu.getPatientInfo(mData);
       }
     }
   };

+ 214 - 0
app/src/main/java/com/dbs/mplus/knuh/httpTask/SoapParser.java

@@ -7,6 +7,7 @@ import com.dbs.mplus.knuh.model.CategoryVO;
 import com.dbs.mplus.knuh.model.ConsentFormListVO;
 import com.dbs.mplus.knuh.model.DeptListVO;
 import com.dbs.mplus.knuh.model.DoctorListVO;
+import com.dbs.mplus.knuh.model.PatientInfoVO;
 import com.dbs.mplus.knuh.model.PatientListVO;
 import com.dbs.mplus.knuh.model.UserLoginDeptList;
 import com.dbs.mplus.knuh.util.ConsentConfig;
@@ -276,5 +277,218 @@ public class SoapParser {
 
     return arrayList;
   }
+
+  public static PatientInfoVO getPatientInfo(SoapObject object) {
+    PatientInfoVO patientInfoVO = new PatientInfoVO();
+    int total = 0;
+    if (object != null) {
+      total = object.getPropertyCount();
+      if(total == 1) {
+        if(object.getProperty(0) == null) {
+          total = 0;
+        }
+      }
+    }
+
+    if(total == 0) {
+    } else {
+      for (int i = 0; i < total; i++) {
+        SoapObject so = (SoapObject) object.getProperty(i);
+
+        String ordDeptCd   = so.getProperty("ordDeptCd").toString().trim();
+        String ordDeptNm   = so.getProperty("ordDeptNm").toString().trim();
+        String pid         = so.getProperty("pid").toString().trim();
+        String cretNo      = so.getProperty("cretNo").toString().trim();
+        String roomCd      = so.getProperty("roomCd").toString().trim();
+        String inDd        = so.getProperty("inDd").toString().trim();
+        String dschDd      = so.getProperty("dschDd").toString().trim();
+        String ordType     = so.getProperty("ordType").toString().trim();
+        String instCd      = so.getProperty("instCd").toString().trim();
+        String mainDrId    = so.getProperty("mainDrId").toString().trim();
+        String mainDrName  = so.getProperty("mainDrName").toString().trim();
+        String erDrNm      = so.getProperty("erDrNm").toString().trim();
+        String firstRgstDt = so.getProperty("firstRgstDt").toString().trim();
+        String sa          = so.getProperty("sa").toString().trim();
+        String patientName = so.getProperty("patientName").toString().trim();
+        String juminNo     = so.getProperty("juminNo").toString().trim();
+        String zipCdAddr   = so.getProperty("zipCdAddr").toString().trim();
+        String telNum      = so.getProperty("telNum").toString().trim();
+        String insuKind    = so.getProperty("insuKind").toString().trim();
+        String ward        = so.getProperty("ward").toString().trim();
+        String dxCd        = so.getProperty("dxCd").toString().trim();
+        String dxNm        = so.getProperty("dxNm").toString().trim();
+        String gbn         = so.getProperty("gbn").toString().trim();
+        String opDeptCd    = so.getProperty("opDeptCd").toString().trim();
+        String opDeptNm    = so.getProperty("opDeptNm").toString().trim();
+        String opDrNm      = so.getProperty("opDrNm").toString().trim();
+        String opDrId      = so.getProperty("opDrId").toString().trim();
+        String opCnfmDd    = so.getProperty("opCnfmDd").toString().trim();
+        String perfDrNm    = so.getProperty("perfDrNm").toString().trim();
+        String perfDrFlag  = so.getProperty("perfDrFlag").toString().trim();
+        String opDiagNm    = so.getProperty("opDiagNm").toString().trim();
+        String opNm        = so.getProperty("opNm").toString().trim();
+        String anstDrNm1   = so.getProperty("anstDrNm1").toString().trim();
+        String anstDrFlag1 = so.getProperty("anstDrFlag1").toString().trim();
+        String anstDeptNm1 = so.getProperty("anstDeptNm1").toString().trim();
+        String anstDrNm2   = so.getProperty("anstDrNm2").toString().trim();
+        String anstDrFlag2 = so.getProperty("anstDrFlag2").toString().trim();
+        String anstDeptNm2 = so.getProperty("anstDeptNm2").toString().trim();
+        String anstDrNm3   = so.getProperty("anstDrNm3").toString().trim();
+        String anstDrFlag3 = so.getProperty("anstDrFlag3").toString().trim();
+        String anstDeptNm3 = so.getProperty("anstDeptNm3").toString().trim();
+        String opRsrvNo    = so.getProperty("opRsrvNo").toString().trim();
+        String orderNo     = so.getProperty("orderNo").toString().trim();
+        String printTime   = so.getProperty("printTime").toString().trim();
+        String ocrCd       = so.getProperty("ocrCd").toString().trim();
+        String inputId     = so.getProperty("inputId").toString().trim();
+        String inputNm     = so.getProperty("inputNm").toString().trim();
+        String signImg     = so.getProperty("signImg").toString().trim();
+        String bp          = so.getProperty("bp").toString().trim();
+        String dm          = so.getProperty("dm").toString().trim();
+        String heart       = so.getProperty("heart").toString().trim();
+        String kidney      = so.getProperty("kidney").toString().trim();
+        String respiration = so.getProperty("respiration").toString().trim();
+        String hx          = so.getProperty("hx").toString().trim();
+        String allergy     = so.getProperty("allergy").toString().trim();
+        String drug        = so.getProperty("drug").toString().trim();
+        String smoking     = so.getProperty("smoking").toString().trim();
+        String idio        = so.getProperty("idio").toString().trim();
+        String nacrotics   = so.getProperty("nacrotics").toString().trim();
+        String airway      = so.getProperty("airway").toString().trim();
+        String hemorrhage  = so.getProperty("hemorrhage").toString().trim();
+        String statusEtc   = so.getProperty("statusEtc").toString().trim();
+
+        ordDeptCd   = ordDeptCd.equals(ConsentConfig.RETURN_NULL) ? "" : ordDeptCd;
+        ordDeptNm   = ordDeptNm.equals(ConsentConfig.RETURN_NULL) ? "" : ordDeptNm;
+        pid         = pid.equals(ConsentConfig.RETURN_NULL) ? "" : pid;
+        cretNo      = cretNo.equals(ConsentConfig.RETURN_NULL) ? "" : cretNo;
+        roomCd      = roomCd.equals(ConsentConfig.RETURN_NULL) ? "" : roomCd;
+        inDd        = inDd .equals(ConsentConfig.RETURN_NULL) ? "" : inDd;
+        dschDd      = dschDd.equals(ConsentConfig.RETURN_NULL) ? "" : dschDd;
+        ordType     = ordType.equals(ConsentConfig.RETURN_NULL) ? "" : ordType;
+        instCd      = instCd.equals(ConsentConfig.RETURN_NULL) ? "" : instCd;
+        mainDrId    = mainDrId.equals(ConsentConfig.RETURN_NULL) ? "" : mainDrId;
+        mainDrName  = mainDrName.equals(ConsentConfig.RETURN_NULL) ? "" : mainDrName;
+        erDrNm      = erDrNm.equals(ConsentConfig.RETURN_NULL) ? "" : erDrNm;
+        firstRgstDt = firstRgstDt.equals(ConsentConfig.RETURN_NULL) ? "" : firstRgstDt;
+        sa          = sa.equals(ConsentConfig.RETURN_NULL) ? "" : sa;
+        patientName = patientName.equals(ConsentConfig.RETURN_NULL) ? "" : patientName;
+        juminNo     = juminNo.equals(ConsentConfig.RETURN_NULL) ? "" : juminNo;
+        zipCdAddr   = zipCdAddr.equals(ConsentConfig.RETURN_NULL) ? "" : zipCdAddr;
+        telNum      = telNum.equals(ConsentConfig.RETURN_NULL) ? "" : telNum;
+        insuKind    = insuKind.equals(ConsentConfig.RETURN_NULL) ? "" : insuKind;
+        ward        = ward.equals(ConsentConfig.RETURN_NULL) ? "" : ward;
+        dxCd        = dxCd.equals(ConsentConfig.RETURN_NULL) ? "" : dxCd;
+        dxNm        = dxNm.equals(ConsentConfig.RETURN_NULL) ? "" : dxNm;
+        gbn         = gbn.equals(ConsentConfig.RETURN_NULL) ? "" : gbn;
+        opDeptCd    = opDeptCd.equals(ConsentConfig.RETURN_NULL) ? "" : opDeptCd;
+        opDeptNm    = opDeptNm.equals(ConsentConfig.RETURN_NULL) ? "" : opDeptNm;
+        opDrNm      = opDrNm.equals(ConsentConfig.RETURN_NULL) ? "" : opDrNm;
+        opDrId      = opDrId.equals(ConsentConfig.RETURN_NULL) ? "" : opDrId;
+        opCnfmDd    = opCnfmDd.equals(ConsentConfig.RETURN_NULL) ? "" : opCnfmDd;
+        perfDrNm    = perfDrNm.equals(ConsentConfig.RETURN_NULL) ? "" : perfDrNm;
+        perfDrFlag  = perfDrFlag.equals(ConsentConfig.RETURN_NULL) ? "" : perfDrFlag;
+        opDiagNm    = opDiagNm.equals(ConsentConfig.RETURN_NULL) ? "" : opDiagNm;
+        opNm        = opNm.equals(ConsentConfig.RETURN_NULL) ? "" : opNm;
+        anstDrNm1   = anstDrNm1.equals(ConsentConfig.RETURN_NULL) ? "" : anstDrNm1;
+        anstDrFlag1 = anstDrFlag1.equals(ConsentConfig.RETURN_NULL) ? "" : anstDrFlag1;
+        anstDeptNm1 = anstDeptNm1.equals(ConsentConfig.RETURN_NULL) ? "" : anstDeptNm1;
+        anstDrNm2   = anstDrNm2.equals(ConsentConfig.RETURN_NULL) ? "" : anstDrNm2;
+        anstDrFlag2 = anstDrFlag2.equals(ConsentConfig.RETURN_NULL) ? "" : anstDrFlag2;
+        anstDeptNm2 = anstDeptNm2.equals(ConsentConfig.RETURN_NULL) ? "" : anstDeptNm2;
+        anstDrNm3   = anstDrNm3.equals(ConsentConfig.RETURN_NULL) ? "" : anstDrNm3;
+        anstDrFlag3 = anstDrFlag3.equals(ConsentConfig.RETURN_NULL) ? "" : anstDrFlag3;
+        anstDeptNm3 = anstDeptNm3.equals(ConsentConfig.RETURN_NULL) ? "" : anstDeptNm3;
+        opRsrvNo    = opRsrvNo.equals(ConsentConfig.RETURN_NULL) ? "" : opRsrvNo;
+        orderNo     = orderNo.equals(ConsentConfig.RETURN_NULL) ? "" : orderNo;
+        printTime   = printTime.equals(ConsentConfig.RETURN_NULL) ? "" : printTime;
+        ocrCd       = ocrCd.equals(ConsentConfig.RETURN_NULL) ? "" : ocrCd;
+        inputId     = inputId.equals(ConsentConfig.RETURN_NULL) ? "" : inputId;
+        inputNm     = inputNm.equals(ConsentConfig.RETURN_NULL) ? "" : inputNm;
+        signImg     = signImg.equals(ConsentConfig.RETURN_NULL) ? "" : signImg;
+        bp          = bp.equals(ConsentConfig.RETURN_NULL) ? "" : bp;
+        dm          = dm.equals(ConsentConfig.RETURN_NULL) ? "" : dm;
+        heart       = heart.equals(ConsentConfig.RETURN_NULL) ? "" : heart;
+        kidney      = kidney.equals(ConsentConfig.RETURN_NULL) ? "" : kidney;
+        respiration = respiration.equals(ConsentConfig.RETURN_NULL) ? "" : respiration;
+        hx          = hx.equals(ConsentConfig.RETURN_NULL) ? "" : hx;
+        allergy     = allergy.equals(ConsentConfig.RETURN_NULL) ? "" : allergy;
+        drug        = drug.equals(ConsentConfig.RETURN_NULL) ? "" : drug;
+        smoking     = smoking.equals(ConsentConfig.RETURN_NULL) ? "" : smoking;
+        idio        = idio.equals(ConsentConfig.RETURN_NULL) ? "" : idio;
+        nacrotics   = nacrotics.equals(ConsentConfig.RETURN_NULL) ? "" : nacrotics;
+        airway      = airway.equals(ConsentConfig.RETURN_NULL) ? "" : airway;
+        hemorrhage  = hemorrhage.equals(ConsentConfig.RETURN_NULL) ? "" : hemorrhage;
+        statusEtc   = statusEtc.equals(ConsentConfig.RETURN_NULL) ? "" : statusEtc;
+
+        patientInfoVO.setOrdDeptCd(ordDeptCd);
+        patientInfoVO.setOrdDeptNm(ordDeptNm);
+        patientInfoVO.setPid(pid);
+        patientInfoVO.setCretNo(cretNo);
+        patientInfoVO.setRoomCd(roomCd);
+        patientInfoVO.setInDd(inDd);
+        patientInfoVO.setDschDd(dschDd);
+        patientInfoVO.setOrdType(ordType);
+        patientInfoVO.setInstCd(instCd);
+        patientInfoVO.setMainDrId(mainDrId);
+        patientInfoVO.setMainDrName(mainDrName);
+        patientInfoVO.setErDrNm(erDrNm);
+        patientInfoVO.setFirstRgstDt(firstRgstDt);
+        patientInfoVO.setSa(sa);
+        patientInfoVO.setPatientName(patientName);
+        patientInfoVO.setJuminNo(juminNo);
+        patientInfoVO.setZipCdAddr(zipCdAddr);
+        patientInfoVO.setTelNum(telNum);
+        patientInfoVO.setInsuKind(insuKind);
+        patientInfoVO.setWard(ward);
+        patientInfoVO.setDxCd(dxCd);
+        patientInfoVO.setDxNm(dxNm);
+        patientInfoVO.setGbn(gbn);
+        patientInfoVO.setOpDeptCd(opDeptCd);
+        patientInfoVO.setOpDeptNm(opDeptNm);
+        patientInfoVO.setOpDrNm(opDrNm);
+        patientInfoVO.setOpDrId(opDrId);
+        patientInfoVO.setOpCnfmDd(opCnfmDd);
+        patientInfoVO.setPerfDrNm(perfDrNm);
+        patientInfoVO.setPerfDrFlag(perfDrFlag);
+        patientInfoVO.setOpDiagNm(opDiagNm);
+        patientInfoVO.setOpNm(opNm);
+        patientInfoVO.setAnstDrNm1(anstDrNm1);
+        patientInfoVO.setAnstDrFlag1(anstDrFlag1);
+        patientInfoVO.setAnstDeptNm1(anstDeptNm1);
+        patientInfoVO.setAnstDrNm2(anstDrNm2);
+        patientInfoVO.setAnstDrFlag2(anstDrFlag2);
+        patientInfoVO.setAnstDeptNm2(anstDeptNm2);
+        patientInfoVO.setAnstDrNm3(anstDrNm3);
+        patientInfoVO.setAnstDrFlag3(anstDrFlag3);
+        patientInfoVO.setAnstDeptNm3(anstDeptNm3);
+        patientInfoVO.setOpRsrvNo(opRsrvNo);
+        patientInfoVO.setOrderNo(orderNo);
+        patientInfoVO.setPrintTime(printTime);
+        patientInfoVO.setOcrCd(ocrCd);
+        patientInfoVO.setInputId(inputId);
+        patientInfoVO.setInputNm(inputNm);
+        patientInfoVO.setSignImg(signImg);
+        patientInfoVO.setBp(bp);
+        patientInfoVO.setDm(dm);
+        patientInfoVO.setHeart(heart);
+        patientInfoVO.setKidney(kidney);
+        patientInfoVO.setRespiration(respiration);
+        patientInfoVO.setHx(hx);
+        patientInfoVO.setAllergy(allergy);
+        patientInfoVO.setDrug(drug);
+        patientInfoVO.setSmoking(smoking);
+        patientInfoVO.setIdio(idio);
+        patientInfoVO.setNacrotics(nacrotics);
+        patientInfoVO.setAirway(airway);
+        patientInfoVO.setHemorrhage(hemorrhage);
+        patientInfoVO.setStatusEtc(statusEtc);
+
+      }
+    }
+
+    return patientInfoVO;
+  }
+
 }
 

+ 562 - 0
app/src/main/java/com/dbs/mplus/knuh/model/PatientInfoVO.java

@@ -0,0 +1,562 @@
+package com.dbs.mplus.knuh.model;
+
+public class PatientInfoVO {
+  private String ordDeptCd   = "";
+  private String ordDeptNm   = "";
+  private String pid         = "";
+  private String cretNo      = "";
+  private String roomCd      = "";
+  private String inDd        = "";
+  private String dschDd      = "";
+  private String ordType     = "";
+  private String instCd      = "";
+  private String mainDrId    = "";
+  private String mainDrName  = "";
+  private String erDrNm      = "";
+  private String firstRgstDt = "";
+  private String sa          = "";
+  private String patientName = "";
+  private String juminNo     = "";
+  private String zipCdAddr   = "";
+  private String telNum      = "";
+  private String insuKind    = "";
+  private String ward        = "";
+  private String dxCd        = "";
+  private String dxNm        = "";
+  private String gbn         = "";
+  private String opDeptCd    = "";
+  private String opDeptNm    = "";
+  private String opDrNm      = "";
+  private String opDrId      = "";
+  private String opCnfmDd    = "";
+  private String perfDrNm    = "";
+  private String perfDrFlag  = "";
+  private String opDiagNm    = "";
+  private String opNm        = "";
+  private String anstDrNm1   = "";
+  private String anstDrFlag1 = "";
+  private String anstDeptNm1 = "";
+  private String anstDrNm2   = "";
+  private String anstDrFlag2 = "";
+  private String anstDeptNm2 = "";
+  private String anstDrNm3   = "";
+  private String anstDrFlag3 = "";
+  private String anstDeptNm3 = "";
+  private String opRsrvNo    = "";
+  private String orderNo     = "";
+  private String printTime   = "";
+  private String ocrCd       = "";
+  private String inputId     = "";
+  private String inputNm     = "";
+  private String signImg     = "";
+  private String bp          = "";
+  private String dm          = "";
+  private String heart       = "";
+  private String kidney      = "";
+  private String respiration = "";
+  private String hx          = "";
+  private String allergy     = "";
+  private String drug        = "";
+  private String smoking     = "";
+  private String idio        = "";
+  private String nacrotics   = "";
+  private String airway      = "";
+  private String hemorrhage  = "";
+  private String statusEtc   = "";
+
+  public String getOrdDeptCd() {
+    return ordDeptCd;
+  }
+
+  public void setOrdDeptCd(String ordDeptCd) {
+    this.ordDeptCd = ordDeptCd;
+  }
+
+  public String getOrdDeptNm() {
+    return ordDeptNm;
+  }
+
+  public void setOrdDeptNm(String ordDeptNm) {
+    this.ordDeptNm = ordDeptNm;
+  }
+
+  public String getPid() {
+    return pid;
+  }
+
+  public void setPid(String pid) {
+    this.pid = pid;
+  }
+
+  public String getCretNo() {
+    return cretNo;
+  }
+
+  public void setCretNo(String cretNo) {
+    this.cretNo = cretNo;
+  }
+
+  public String getRoomCd() {
+    return roomCd;
+  }
+
+  public void setRoomCd(String roomCd) {
+    this.roomCd = roomCd;
+  }
+
+  public String getInDd() {
+    return inDd;
+  }
+
+  public void setInDd(String inDd) {
+    this.inDd = inDd;
+  }
+
+  public String getDschDd() {
+    return dschDd;
+  }
+
+  public void setDschDd(String dschDd) {
+    this.dschDd = dschDd;
+  }
+
+  public String getOrdType() {
+    return ordType;
+  }
+
+  public void setOrdType(String ordType) {
+    this.ordType = ordType;
+  }
+
+  public String getInstCd() {
+    return instCd;
+  }
+
+  public void setInstCd(String instCd) {
+    this.instCd = instCd;
+  }
+
+  public String getMainDrId() {
+    return mainDrId;
+  }
+
+  public void setMainDrId(String mainDrId) {
+    this.mainDrId = mainDrId;
+  }
+
+  public String getMainDrName() {
+    return mainDrName;
+  }
+
+  public void setMainDrName(String mainDrName) {
+    this.mainDrName = mainDrName;
+  }
+
+  public String getErDrNm() {
+    return erDrNm;
+  }
+
+  public void setErDrNm(String erDrNm) {
+    this.erDrNm = erDrNm;
+  }
+
+  public String getFirstRgstDt() {
+    return firstRgstDt;
+  }
+
+  public void setFirstRgstDt(String firstRgstDt) {
+    this.firstRgstDt = firstRgstDt;
+  }
+
+  public String getSa() {
+    return sa;
+  }
+
+  public void setSa(String sa) {
+    this.sa = sa;
+  }
+
+  public String getPatientName() {
+    return patientName;
+  }
+
+  public void setPatientName(String patientName) {
+    this.patientName = patientName;
+  }
+
+  public String getJuminNo() {
+    return juminNo;
+  }
+
+  public void setJuminNo(String juminNo) {
+    this.juminNo = juminNo;
+  }
+
+  public String getZipCdAddr() {
+    return zipCdAddr;
+  }
+
+  public void setZipCdAddr(String zipCdAddr) {
+    this.zipCdAddr = zipCdAddr;
+  }
+
+  public String getTelNum() {
+    return telNum;
+  }
+
+  public void setTelNum(String telNum) {
+    this.telNum = telNum;
+  }
+
+  public String getInsuKind() {
+    return insuKind;
+  }
+
+  public void setInsuKind(String insuKind) {
+    this.insuKind = insuKind;
+  }
+
+  public String getWard() {
+    return ward;
+  }
+
+  public void setWard(String ward) {
+    this.ward = ward;
+  }
+
+  public String getDxCd() {
+    return dxCd;
+  }
+
+  public void setDxCd(String dxCd) {
+    this.dxCd = dxCd;
+  }
+
+  public String getDxNm() {
+    return dxNm;
+  }
+
+  public void setDxNm(String dxNm) {
+    this.dxNm = dxNm;
+  }
+
+  public String getGbn() {
+    return gbn;
+  }
+
+  public void setGbn(String gbn) {
+    this.gbn = gbn;
+  }
+
+  public String getOpDeptCd() {
+    return opDeptCd;
+  }
+
+  public void setOpDeptCd(String opDeptCd) {
+    this.opDeptCd = opDeptCd;
+  }
+
+  public String getOpDeptNm() {
+    return opDeptNm;
+  }
+
+  public void setOpDeptNm(String opDeptNm) {
+    this.opDeptNm = opDeptNm;
+  }
+
+  public String getOpDrNm() {
+    return opDrNm;
+  }
+
+  public void setOpDrNm(String opDrNm) {
+    this.opDrNm = opDrNm;
+  }
+
+  public String getOpDrId() {
+    return opDrId;
+  }
+
+  public void setOpDrId(String opDrId) {
+    this.opDrId = opDrId;
+  }
+
+  public String getOpCnfmDd() {
+    return opCnfmDd;
+  }
+
+  public void setOpCnfmDd(String opCnfmDd) {
+    this.opCnfmDd = opCnfmDd;
+  }
+
+  public String getPerfDrNm() {
+    return perfDrNm;
+  }
+
+  public void setPerfDrNm(String perfDrNm) {
+    this.perfDrNm = perfDrNm;
+  }
+
+  public String getPerfDrFlag() {
+    return perfDrFlag;
+  }
+
+  public void setPerfDrFlag(String perfDrFlag) {
+    this.perfDrFlag = perfDrFlag;
+  }
+
+  public String getOpDiagNm() {
+    return opDiagNm;
+  }
+
+  public void setOpDiagNm(String opDiagNm) {
+    this.opDiagNm = opDiagNm;
+  }
+
+  public String getOpNm() {
+    return opNm;
+  }
+
+  public void setOpNm(String opNm) {
+    this.opNm = opNm;
+  }
+
+  public String getAnstDrNm1() {
+    return anstDrNm1;
+  }
+
+  public void setAnstDrNm1(String anstDrNm1) {
+    this.anstDrNm1 = anstDrNm1;
+  }
+
+  public String getAnstDrFlag1() {
+    return anstDrFlag1;
+  }
+
+  public void setAnstDrFlag1(String anstDrFlag1) {
+    this.anstDrFlag1 = anstDrFlag1;
+  }
+
+  public String getAnstDeptNm1() {
+    return anstDeptNm1;
+  }
+
+  public void setAnstDeptNm1(String anstDeptNm1) {
+    this.anstDeptNm1 = anstDeptNm1;
+  }
+
+  public String getAnstDrNm2() {
+    return anstDrNm2;
+  }
+
+  public void setAnstDrNm2(String anstDrNm2) {
+    this.anstDrNm2 = anstDrNm2;
+  }
+
+  public String getAnstDrFlag2() {
+    return anstDrFlag2;
+  }
+
+  public void setAnstDrFlag2(String anstDrFlag2) {
+    this.anstDrFlag2 = anstDrFlag2;
+  }
+
+  public String getAnstDeptNm2() {
+    return anstDeptNm2;
+  }
+
+  public void setAnstDeptNm2(String anstDeptNm2) {
+    this.anstDeptNm2 = anstDeptNm2;
+  }
+
+  public String getAnstDrNm3() {
+    return anstDrNm3;
+  }
+
+  public void setAnstDrNm3(String anstDrNm3) {
+    this.anstDrNm3 = anstDrNm3;
+  }
+
+  public String getAnstDrFlag3() {
+    return anstDrFlag3;
+  }
+
+  public void setAnstDrFlag3(String anstDrFlag3) {
+    this.anstDrFlag3 = anstDrFlag3;
+  }
+
+  public String getAnstDeptNm3() {
+    return anstDeptNm3;
+  }
+
+  public void setAnstDeptNm3(String anstDeptNm3) {
+    this.anstDeptNm3 = anstDeptNm3;
+  }
+
+  public String getOpRsrvNo() {
+    return opRsrvNo;
+  }
+
+  public void setOpRsrvNo(String opRsrvNo) {
+    this.opRsrvNo = opRsrvNo;
+  }
+
+  public String getOrderNo() {
+    return orderNo;
+  }
+
+  public void setOrderNo(String orderNo) {
+    this.orderNo = orderNo;
+  }
+
+  public String getPrintTime() {
+    return printTime;
+  }
+
+  public void setPrintTime(String printTime) {
+    this.printTime = printTime;
+  }
+
+  public String getOcrCd() {
+    return ocrCd;
+  }
+
+  public void setOcrCd(String ocrCd) {
+    this.ocrCd = ocrCd;
+  }
+
+  public String getInputId() {
+    return inputId;
+  }
+
+  public void setInputId(String inputId) {
+    this.inputId = inputId;
+  }
+
+  public String getInputNm() {
+    return inputNm;
+  }
+
+  public void setInputNm(String inputNm) {
+    this.inputNm = inputNm;
+  }
+
+  public String getSignImg() {
+    return signImg;
+  }
+
+  public void setSignImg(String signImg) {
+    this.signImg = signImg;
+  }
+
+  public String getBp() {
+    return bp;
+  }
+
+  public void setBp(String bp) {
+    this.bp = bp;
+  }
+
+  public String getDm() {
+    return dm;
+  }
+
+  public void setDm(String dm) {
+    this.dm = dm;
+  }
+
+  public String getHeart() {
+    return heart;
+  }
+
+  public void setHeart(String heart) {
+    this.heart = heart;
+  }
+
+  public String getKidney() {
+    return kidney;
+  }
+
+  public void setKidney(String kidney) {
+    this.kidney = kidney;
+  }
+
+  public String getRespiration() {
+    return respiration;
+  }
+
+  public void setRespiration(String respiration) {
+    this.respiration = respiration;
+  }
+
+  public String getHx() {
+    return hx;
+  }
+
+  public void setHx(String hx) {
+    this.hx = hx;
+  }
+
+  public String getAllergy() {
+    return allergy;
+  }
+
+  public void setAllergy(String allergy) {
+    this.allergy = allergy;
+  }
+
+  public String getDrug() {
+    return drug;
+  }
+
+  public void setDrug(String drug) {
+    this.drug = drug;
+  }
+
+  public String getSmoking() {
+    return smoking;
+  }
+
+  public void setSmoking(String smoking) {
+    this.smoking = smoking;
+  }
+
+  public String getIdio() {
+    return idio;
+  }
+
+  public void setIdio(String idio) {
+    this.idio = idio;
+  }
+
+  public String getNacrotics() {
+    return nacrotics;
+  }
+
+  public void setNacrotics(String nacrotics) {
+    this.nacrotics = nacrotics;
+  }
+
+  public String getAirway() {
+    return airway;
+  }
+
+  public void setAirway(String airway) {
+    this.airway = airway;
+  }
+
+  public String getHemorrhage() {
+    return hemorrhage;
+  }
+
+  public void setHemorrhage(String hemorrhage) {
+    this.hemorrhage = hemorrhage;
+  }
+
+  public String getStatusEtc() {
+    return statusEtc;
+  }
+
+  public void setStatusEtc(String statusEtc) {
+    this.statusEtc = statusEtc;
+  }
+}

+ 1 - 0
app/src/main/java/com/dbs/mplus/knuh/util/ConsentConfig.java

@@ -12,6 +12,7 @@ public class ConsentConfig {
   public static final String GET_DEPT_LIST    = "GetDeptList"; // 진료과 리스트
   public static final String GET_DOCTOR_LIST  = "GetDoctorList"; // 진료의 리스트
   public static final String GET_PATIENT_LIST = "GetPatientList"; // 환자 리스트 조회
+  public static final String GET_PATIENT_INFO = "GetPatientInfo"; // 환자 상세정보 조회
   public static final String GET_CONSENT_SET_LIST  = "GetConsentSetList"; // 사용자 동의서 즐겨찾기
   public static final String SET_USER_FORM_SET     = "SetUserFormSetList"; // 즐겨찾기 추가
   public static final String DEL_USER_FORM_SET     = "DelUserFormSetList"; // 즐겨찾기 삭제

+ 13 - 9
app/src/main/res/layout/activity_center.xml

@@ -81,7 +81,7 @@
                     android:background="@color/patientInfo">
 
                     <TextView
-                        android:id="@+id/patientInfo"
+                        android:id="@+id/tvPatientInfo"
                         android:layout_width="match_parent"
                         android:layout_height="wrap_content"
                         android:gravity="center"
@@ -89,7 +89,7 @@
                         android:text=""
                         android:textSize="20sp"
                         android:textStyle="bold"
-                        android:textColor="@android:color/holo_orange_light"/>
+                        android:textColor="@color/patientInfoColor"/>
                 </LinearLayout>
 
                 <LinearLayout
@@ -126,12 +126,13 @@
                                 android:textStyle="bold" />
 
                             <TextView
-                                android:id="@+id/admissionDay"
+                                android:id="@+id/tvAdmissionDay"
                                 android:layout_width="match_parent"
                                 android:layout_height="wrap_content"
                                 android:layout_weight="1"
                                 android:background="@xml/border"
                                 android:paddingVertical="8dp"
+                                android:paddingLeft="4dp"
                                 android:textColor="@color/black"
                                 android:textSize="18sp"
                                 android:textStyle="bold" />
@@ -155,14 +156,15 @@
                                 android:textStyle="bold" />
 
                             <TextView
-                                android:id="@+id/chargeDoctor"
+                                android:id="@+id/tvChargeDoctor"
                                 android:layout_width="match_parent"
                                 android:layout_height="wrap_content"
                                 android:layout_weight="1"
                                 android:background="@xml/border"
                                 android:paddingVertical="8dp"
+                                android:paddingLeft="4dp"
                                 android:textColor="@color/black"
-                                android:textSize="20sp"
+                                android:textSize="18sp"
                                 android:textStyle="bold" />
                         </LinearLayout>
 
@@ -184,14 +186,15 @@
                                 android:textStyle="bold" />
 
                             <TextView
-                                android:id="@+id/diagnosisName"
+                                android:id="@+id/tvDiagnosisName"
                                 android:layout_width="match_parent"
                                 android:layout_height="wrap_content"
                                 android:layout_weight="1"
                                 android:background="@xml/border"
                                 android:paddingVertical="8dp"
+                                android:paddingLeft="4dp"
                                 android:textColor="@color/black"
-                                android:textSize="20sp"
+                                android:textSize="18sp"
                                 android:textStyle="bold" />
                         </LinearLayout>
 
@@ -213,14 +216,15 @@
                                 android:textStyle="bold" />
 
                             <TextView
-                                android:id="@+id/patientAlert"
+                                android:id="@+id/tvPatientAlert"
                                 android:layout_width="match_parent"
                                 android:layout_height="wrap_content"
                                 android:layout_weight="1"
                                 android:background="@xml/border"
                                 android:paddingVertical="8dp"
+                                android:paddingLeft="4dp"
                                 android:textColor="@color/black"
-                                android:textSize="20sp"
+                                android:textSize="18sp"
                                 android:textStyle="bold" />
                         </LinearLayout>
                     </LinearLayout>

+ 1 - 0
app/src/main/res/values/colors.xml

@@ -25,6 +25,7 @@
     <color name="consentColor">#F89B10</color>
     <color name="userDeptColor">#1280D7</color>
     <color name="sexNAgeColor">#FB6D9D</color>
+    <color name="patientInfoColor">#FDFD00</color>
 
     <color name="leftBtnBgColor">#F4F8FB</color>
     <color name="leftBtnIvTvColor">#1975BA</color>

+ 1 - 1
app/src/main/res/values/strings.xml

@@ -41,7 +41,7 @@
     <string name="disease">진단명</string>
     <string name="alert">Alert</string>
     <string name="tempList">임시저장</string>
-    <string name="noWriteTempList">미작성 : 연동 &amp; 임시저장</string>
+    <string name="noWriteTempList">미작성 : 연동, 임시, 확인저장</string>
     <string name="certifySave">인증저장</string>
     <string name="logoutMsg">로그아웃 하시겠습니까?</string>
     <string name="doctorListEmpty">진료의(전체)</string>