|
@@ -274,6 +274,9 @@ public class ConsentCreateParam {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ String dataString = getEmrDataString(pid,inDd, cretNo);
|
|
|
+ map.put("parEMRINFO_A01", dataString);
|
|
|
+
|
|
|
return map;
|
|
|
}
|
|
|
|
|
@@ -449,6 +452,9 @@ public class ConsentCreateParam {
|
|
|
map.put("parNUR_Fast_HospitalroomNo", ward + '/' + roomCd);
|
|
|
}
|
|
|
|
|
|
+ String dataString = getEmrDataString(pid,inDd, cretNo);
|
|
|
+ map.put("parEMRINFO_A01", dataString);
|
|
|
+
|
|
|
return map;
|
|
|
}
|
|
|
|
|
@@ -724,4 +730,24 @@ public class ConsentCreateParam {
|
|
|
}
|
|
|
return userVO;
|
|
|
}
|
|
|
+
|
|
|
+ private String getEmrDataString(String pid, String inDd, String cretNo) {
|
|
|
+ String result = "";
|
|
|
+ HashMap<String, String> mData = new HashMap<String, String>();
|
|
|
+ mData.put("flag", "A01");
|
|
|
+ mData.put("instcd", BuildConfig.INST_CD);
|
|
|
+ mData.put("pid", pid);
|
|
|
+ mData.put("indd", inDd);
|
|
|
+ mData.put("cretno", cretNo);
|
|
|
+ HttpSoapConnection connection = new HttpSoapConnection(ConsentConfig.HOST_HOSPITAL, ConsentConfig.GET_USER_INFO, mData);
|
|
|
+ try {
|
|
|
+ SoapObject object = connection.execute().get();
|
|
|
+ result = object.getProperty("responseData").toString().trim();
|
|
|
+ } catch (ExecutionException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ } catch (InterruptedException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ }
|
|
|
}
|