|
@@ -274,7 +274,7 @@ public class ConsentCreateParam {
|
|
|
|
|
|
}
|
|
|
|
|
|
- String dataString = getEmrDataString(pid,inDd, cretNo);
|
|
|
+ String dataString = getEmrDataString(pid,inDd, cretNo, consentFormListVO.getFormCd());
|
|
|
map.put("parEMRINFO_A01", dataString);
|
|
|
|
|
|
return map;
|
|
@@ -360,7 +360,7 @@ public class ConsentCreateParam {
|
|
|
* @author jksong
|
|
|
* @since 2020-05-06 오전 10:08
|
|
|
**/
|
|
|
- public HashMap<String, String> setMultiGlobalParam(PatientInfoVO patientInfoVO){
|
|
|
+ public HashMap<String, String> setMultiGlobalParam(PatientInfoVO patientInfoVO, String formCd) {
|
|
|
HashMap<String, String> map = new HashMap<String, String>();
|
|
|
String loginUserId = Util.getStringPreference(mContext, "userInfo", "userId");
|
|
|
String loginUserDeptCd = Util.getStringPreference(mContext, "userInfo", "deptCd");
|
|
@@ -452,7 +452,7 @@ public class ConsentCreateParam {
|
|
|
map.put("parNUR_Fast_HospitalroomNo", ward + '/' + roomCd);
|
|
|
}
|
|
|
|
|
|
- String dataString = getEmrDataString(pid,inDd, cretNo);
|
|
|
+ String dataString = getEmrDataString(pid,inDd, cretNo, formCd);
|
|
|
map.put("parEMRINFO_A01", dataString);
|
|
|
|
|
|
return map;
|
|
@@ -731,7 +731,7 @@ public class ConsentCreateParam {
|
|
|
return userVO;
|
|
|
}
|
|
|
|
|
|
- private String getEmrDataString(String pid, String inDd, String cretNo) {
|
|
|
+ private String getEmrDataString(String pid, String inDd, String cretNo, String formCd) {
|
|
|
String result = "";
|
|
|
HashMap<String, String> mData = new HashMap<String, String>();
|
|
|
mData.put("flag", "A01");
|
|
@@ -739,10 +739,15 @@ public class ConsentCreateParam {
|
|
|
mData.put("pid", pid);
|
|
|
mData.put("indd", inDd);
|
|
|
mData.put("cretno", cretNo);
|
|
|
- HttpSoapConnection connection = new HttpSoapConnection(ConsentConfig.HOST_HOSPITAL, ConsentConfig.GET_USER_INFO, mData);
|
|
|
+ mData.put("formCd", formCd);
|
|
|
+ Log.e(TAG, "mData -- > " + mData);
|
|
|
+ HttpSoapConnection connection = new HttpSoapConnection(ConsentConfig.HOST_HOSPITAL, ConsentConfig.GET_EMR_DATA_STRING, mData);
|
|
|
try {
|
|
|
SoapObject object = connection.execute().get();
|
|
|
+ Log.e(TAG, "getEmrDataString object -- > " + object);
|
|
|
result = object.getProperty("responseData").toString().trim();
|
|
|
+
|
|
|
+ result = result.equals(ConsentConfig.RETURN_NULL) ? "" : result;
|
|
|
} catch (ExecutionException e) {
|
|
|
e.printStackTrace();
|
|
|
} catch (InterruptedException e) {
|