{"version":3,"sources":["webpack:///./src/moduleApi/Hssk831Api.js","webpack:///./src/service/ValidService.js"],"names":["moduleApi","moduleName","hostApi831","window","MyConfig","hostApi831PHR","hostApDkk","cosUrl","applicationCode831","token","MethodService","getToken","UrlApiPacs","UrlApiPHIS","ddnsUrl","chiTiet","data","api","method","url","params","checkTokenTichHop","ApplicationCode","message","success","error","ApiServiceAxios","chiTietEHR","chiTietPHR","getYeuToSucKhoe","module","type","c","ApiService","getDiUng","getBenhTat","getKhuyetTat","getVacxin","getHSSKCN","MaDangKyOrMaThe","updateHSSKCN","dataForm","updateHSSKCNGD","updateHSSKCNDC","updateBHYT","SaveHSSK_TT_LUC_SINH","SaveHSSK_YTSK","SaveHSSK_KTAT","SaveHSSK_PTHUAT","SaveHSSK_SKSS","SaveHSSK_VANDE_KHAC","SaveHSSK_DIUNG","SaveHSSK_DIUNG_GD","SaveHSSK_BENHTAT","SaveHSSK_BENHTATGD","SaveHSSK_TCHUNG_UVAN","getPTTT","id","IDDotKhamChuaBenh","LoadDMQuocGia","LoadDMDanToc","LoadDMGioiTinh","LoadDMCSKCB","LoadDMTonGiao","LoadDMKhuyetTat","LoadDMKhoa","LoadDMTinhThanh","LoadDMQuanHuyen","MaTinhThanh","LoadDMPhuongXa","MaQuanHuyen","getAllInForNguoiDan","cardCode","findByIdNguoiDan","listNguoiDan","dataFilter","value","getPacs","MasterPatientID","getPHIS_HSSKCN","body","tinh","MaTinhThanhSoYTe","getPHIS_HSSKCNBT","getPHIS_HSSKCNGD","getPHIS_HSSKCNDC","getPHIS_HSSK_TT_LUCSINH","getPHIS_HSSK_YTSK","getPHIS_HSSK_DIUNG","getPHIS_HSSK_BENHTAT","getPHIS_HSSK_KTAT","getPHIS_HSSK_PTHUAT","getPHIS_HSSK_DIUNG_GD","getPHIS_HSSK_BENHTAT_GD","getPHIS_HSSK_SKSS","getPHIS_HSSK_VANDE_KHAC","getPHIS_HSSK_TIEM_CHUNG","getPHIS_HSSK_TCHUNG_UVAN","requestOtp","validateOtp","otp","updateSdo","_ref","_asyncToGenerator","regeneratorRuntime","mark","_callee","dataDKKCheckCard","response","wrap","_context","prev","next","fetch","headers","TokenCode","JSON","stringify","sent","json","abrupt","t0","console","log","stop","_x","apply","arguments","dKKCheckCard","_ref2","_callee2","_context2","AppCode","_x2","GetHoSoBenhAn","hsskId","Token","hsskid","GetDataHSBA","hsid","GetHoSoBTDU","loaiHoSo","getHSSK_BHYTByHSSK_ID","ValidService","required","LanguageService","lang","valid_required","trigger","requiredChange","requiredChangeRoom","required_change","checkAz09","pattern","valid_az09","checkAz09Dot","valid_az09Dot","checkPhone","valid_phone","checkNumber","valid_number","checkNumberFloatNotNegative","valid_floatNegative","checkNumberInteger","valid_integer","checkPositiveNumberInteger","valid_integer_positive","checkNumberFloat","valid_float","checkEmail","valid_email","checkSign","valid_sign","checkSpace","valid_space","checkSpaceString","checkScript","valid_script","checkLink","valid_link","checkBloodPressure","valid_blood_pressure","checkTextFirst","valid_textFirst","checkDateTime","valid_dateTime","checkDate","valid_date","checkYear","valid_year","checkMonth","valid_month","checkPassword","valid_password","checkLength","start","end","mess","concat","valid_insert","valid_to","valid_character","valid_insertThan","valid_insertLess","RegExp","checkLengthCharacters","number","valid_insertEqua"],"mappings":"gLAIIA,EAAY,GACZC,EAAa,YACbC,EAAaC,OAAOC,SAASF,WAC7BG,EAAgBF,OAAOC,SAASC,cAChCC,EAAYH,OAAOC,SAASE,UAC5BC,EAASJ,OAAOC,SAASG,OACzBC,EAAqBL,OAAOC,SAASI,mBACrCC,EAAQC,OAAcC,WACtBC,EAAaT,OAAOC,SAASQ,WAC7BC,EAAaV,OAAOC,SAASS,WAC7BC,EAAUX,OAAOC,SAASU,QAC9Bd,EAAUe,QAAU,SAAAC,GAClB,IAAIC,EAAM,CACRC,OAAQ,OACRC,IAAKjB,EAAa,0BAClBc,KAAMA,EACNI,OAAQ,CACNX,MAAOC,OAAcW,kBAAkBZ,GACvCa,gBAAiBd,GAEnBe,QAAS,CACPC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EAAO,GAAHC,OAAMrD,OAAgBC,KAAK6D,iBAAgB,QAAAT,OAAOrD,OAAgBC,KAAKuD,iBAC/E,MAAO,CACLhD,QAAS,IAAImD,OAAOnD,GACpBlI,QAAS8K,EACTjD,QAAS,SAIEL","file":"js/chunk-3d4873b0.d41ababe.js","sourcesContent":["import ApiService from \"../service/ApiService\";\r\nimport ApiServiceAxios from \"../service/ApiServiceAxios\";\r\nimport MethodService from \"../service/MethodService\";\r\n\r\nlet moduleApi = {};\r\nlet moduleName = \"ho_so_831\";\r\nlet hostApi831 = window.MyConfig.hostApi831;\r\nlet hostApi831PHR = window.MyConfig.hostApi831PHR;\r\nlet hostApDkk = window.MyConfig.hostApDkk;\r\nlet cosUrl = window.MyConfig.cosUrl;\r\nlet applicationCode831 = window.MyConfig.applicationCode831;\r\nlet token = MethodService.getToken();\r\nlet UrlApiPacs = window.MyConfig.UrlApiPacs;\r\nlet UrlApiPHIS = window.MyConfig.UrlApiPHIS;\r\nlet ddnsUrl = window.MyConfig.ddnsUrl\r\nmoduleApi.chiTiet = data => {\r\n let api = {\r\n method: \"POST\",\r\n url: hostApi831 + \"GetHoSo831ByBoHanhChanh\",\r\n data: data,\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831,\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Chưa có thông tin hồ sơ sức khỏe cá nhân\",\r\n },\r\n };\r\n\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.chiTietEHR = data => {\r\n let api = {\r\n method: \"POST\",\r\n url: hostApi831 + \"GetHSSK_CNByBoHanhChanh\",\r\n data: data,\r\n params: {\r\n token: token,\r\n ApplicationCode: applicationCode831,\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Chưa có thông tin hồ sơ sức khỏe cá nhân\"\r\n }\r\n };\r\n\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.chiTietPHR = data => {\r\n let api = {\r\n method: \"POST\",\r\n url: hostApi831 + \"GetPHRByBoHanhChanh\",\r\n data: data,\r\n params: {\r\n token: token,\r\n ApplicationCode: applicationCode831,\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Chưa có thông tin hồ sơ sức khỏe cá nhân\"\r\n }\r\n };\r\n\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.getYeuToSucKhoe = () => {\r\n let api = {\r\n module: \"nguoi_dan\",\r\n type: \"get_index_831\",\r\n params: {\r\n c: \"ytsk\"\r\n }\r\n };\r\n return ApiService(api);\r\n};\r\nmoduleApi.getDiUng = () => {\r\n let api = {\r\n module: \"nguoi_dan\",\r\n type: \"get_index_831\",\r\n params: {\r\n c: \"diung\"\r\n }\r\n };\r\n return ApiService(api);\r\n};\r\nmoduleApi.getBenhTat = () => {\r\n let api = {\r\n module: \"nguoi_dan\",\r\n type: \"get_index_831\",\r\n params: {\r\n c: \"benhtat\"\r\n }\r\n };\r\n return ApiService(api);\r\n};\r\nmoduleApi.getKhuyetTat = () => {\r\n let api = {\r\n module: \"nguoi_dan\",\r\n type: \"get_index_831\",\r\n params: {\r\n c: \"khuyettat\"\r\n }\r\n };\r\n return ApiService(api);\r\n};\r\nmoduleApi.getVacxin = () => {\r\n let api = {\r\n module: \"nguoi_dan\",\r\n type: \"get_index_831\",\r\n params: {\r\n c: \"vacxin\"\r\n }\r\n };\r\n return ApiService(api);\r\n};\r\n\r\nmoduleApi.getHSSKCN = MaDangKyOrMaThe => {\r\n let api = {\r\n method: \"GET\",\r\n url: hostApi831 + \"GetHSSK_CN\",\r\n // data: {},\r\n params: {\r\n token: token,\r\n MaDangKyOrMaThe: MaDangKyOrMaThe,\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Chưa có thông tin hồ sơ sức khỏe cá nhân\"\r\n }\r\n };\r\n\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.updateHSSKCN = dataForm => {\r\n let api = {\r\n method: \"POST\",\r\n url: hostApi831PHR + \"SaveHSSK_CN_BANTHAN\",\r\n data: dataForm,\r\n params: {\r\n token: token,\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Cập nhật không thành công\"\r\n }\r\n };\r\n\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.updateHSSKCNGD = dataForm => {\r\n let api = {\r\n method: \"POST\",\r\n url: hostApi831PHR + \"SaveHSSK_CN_GIADINH\",\r\n data: dataForm,\r\n params: {\r\n token: token,\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Cập nhật không thành công\"\r\n }\r\n };\r\n\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.updateHSSKCNDC = dataForm => {\r\n let api = {\r\n method: \"POST\",\r\n url: hostApi831PHR + \"SaveHSSK_CN_DIACHI\",\r\n data: dataForm,\r\n params: {\r\n token: token,\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Cập nhật không thành công\"\r\n }\r\n };\r\n\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.updateBHYT = dataForm => {\r\n let api = {\r\n method: \"POST\",\r\n url: hostApi831 + \"SaveHSSK_BHYT\",\r\n data: dataForm,\r\n params: {\r\n token: token,\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Cập nhật không thành công\"\r\n }\r\n };\r\n\r\n return ApiServiceAxios(api);\r\n};\r\n\r\n//api save 831\r\nmoduleApi.SaveHSSK_TT_LUC_SINH = dataForm => {\r\n let api = {\r\n method: \"POST\",\r\n type: \"partialUpdate\",\r\n url: hostApi831 + \"SaveHSSK_TT_LUC_SINH\",\r\n data: dataForm,\r\n params: {\r\n token: token,\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"hidden\",\r\n error: \"Cập nhật không thành công\"\r\n }\r\n };\r\n\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.SaveHSSK_YTSK = dataForm => {\r\n let api = {\r\n method: \"POST\",\r\n type: \"partialUpdate\",\r\n url: hostApi831 + \"SaveHSSK_YTSK\",\r\n data: dataForm,\r\n // data: [{\r\n // HSSK_Id: \"id\",\r\n // YTSK_Id: \"id\",\r\n // MOTA: \"string\",\r\n // TAN_SUAT: \"string\",\r\n // DA_BO: \"boolean\"\r\n // }],\r\n params: {\r\n token: token,\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"hidden\",\r\n error: \"Cập nhật không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.SaveHSSK_KTAT = dataForm => {\r\n let api = {\r\n method: \"POST\",\r\n type: \"partialUpdate\",\r\n url: hostApi831 + \"SaveHSSK_KTAT\",\r\n data: dataForm,\r\n // data: [{\r\n // HSSK_Id: \"id\",\r\n // KTAT_Id: \"id\",\r\n // MOTA: \"string\",\r\n // }],\r\n params: {\r\n token: token,\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"hidden\",\r\n error: \"Cập nhật không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.SaveHSSK_PTHUAT = dataForm => {\r\n let api = {\r\n method: \"POST\",\r\n type: \"partialUpdate\",\r\n url: hostApi831 + \"SaveHSSK_PTHUAT\",\r\n data: dataForm,\r\n // data: [{\r\n // HSSK_Id: \"id\",\r\n // PTHUAT_Id: \"id\",\r\n // MOTA: \"string\",\r\n // }],\r\n params: {\r\n token: token,\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"hidden\",\r\n error: \"Cập nhật không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.SaveHSSK_SKSS = dataForm => {\r\n let api = {\r\n method: \"POST\",\r\n type: \"partialUpdate\",\r\n url: hostApi831 + \"SaveHSSK_SKSS\",\r\n data: dataForm,\r\n // data: {\r\n // HSSK_Id: \"id\",\r\n // BP_TRANH_THAI: \"string\",\r\n // KY_THAI_CUOI: \"string\",\r\n // SL_CO_THAI: \"string\",\r\n // SL_SAY_THAI: \"string\",\r\n // SL_PHA_THAI: \"string\",\r\n // SL_DE: \"string\",\r\n // SL_DE_THUONG: \"string\",\r\n // SL_DE_KHO: \"string\",\r\n // SL_DE_MO: \"string\",\r\n // SL_DE_DTHANG: \"string\",\r\n // SL_DE_NON: \"string\",\r\n // SO_CON: \"string\",\r\n // BENH_PSAN: \"string\",\r\n // },\r\n params: {\r\n token: token,\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"hidden\",\r\n error: \"Cập nhật không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.SaveHSSK_VANDE_KHAC = dataForm => {\r\n let api = {\r\n method: \"POST\",\r\n type: \"partialUpdate\",\r\n url: hostApi831 + \"SaveHSSK_VANDE_KHAC\",\r\n data: dataForm,\r\n // data: {\r\n // HSSK_Id: \"id\",\r\n // HSSK_VANDE_KHAC_Id: \"id\",\r\n // VAN_DE: \"string\"\r\n // }\r\n params: {\r\n token: token,\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"hidden\",\r\n error: \"Cập nhật không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.SaveHSSK_DIUNG = dataForm => {\r\n let api = {\r\n method: \"POST\",\r\n type: \"partialUpdate\",\r\n url: hostApi831 + \"SaveHSSK_DIUNG\",\r\n data: dataForm,\r\n // data: {\r\n // HSSK_Id: \"id\",\r\n // DIUNG_Id: \"id\",\r\n // MOTA: \"string\"\r\n // }\r\n params: {\r\n token: token,\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"hidden\",\r\n error: \"Cập nhật không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.SaveHSSK_DIUNG_GD = dataForm => {\r\n let api = {\r\n method: \"POST\",\r\n type: \"partialUpdate\",\r\n url: hostApi831 + \"SaveHSSK_DIUNG_GD\",\r\n data: dataForm,\r\n // data: {\r\n // HSSK_Id: \"id\",\r\n // LBENH_CN_Id: \"id\",\r\n // MOTA: \"string\",\r\n // NGUOI_MAC: \"string\",\r\n // }\r\n params: {\r\n token: token,\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"hidden\",\r\n error: \"Cập nhật không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.SaveHSSK_BENHTAT = dataForm => {\r\n let api = {\r\n method: \"POST\",\r\n type: \"partialUpdate\",\r\n url: hostApi831 + \"SaveHSSK_BENHTAT\",\r\n data: dataForm,\r\n // data: {\r\n // HSSK_Id: \"id\",\r\n // LBENH_CN_Id: \"id\",\r\n // MOTA: \"string\",\r\n // MAC_BENH: \"boolean\",\r\n // }\r\n params: {\r\n token: token,\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"hidden\",\r\n error: \"Cập nhật không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.SaveHSSK_BENHTATGD = dataForm => {\r\n let api = {\r\n method: \"POST\",\r\n type: \"partialUpdate\",\r\n url: hostApi831 + \"SaveHSSK_BENHTATGD\",\r\n data: dataForm,\r\n // data: {\r\n // HSSK_Id: \"id\",\r\n // LBENH_CN_Id: \"id\",\r\n // MOTA: \"string\",\r\n // MAC_BENH: \"boolean\",\r\n // NGUOI_MAC: \"string\",\r\n // }\r\n params: {\r\n token: token,\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"hidden\",\r\n error: \"Cập nhật không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.SaveHSSK_TCHUNG_UVAN = dataForm => {\r\n let api = {\r\n method: \"POST\",\r\n type: \"partialUpdate\",\r\n url: hostApi831 + \"SaveHSSK_TCHUNG_UVAN\",\r\n data: dataForm,\r\n params: {\r\n token: token,\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"hidden\",\r\n error: \"Cập nhật không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.getPTTT = id => {\r\n let api = {\r\n method: \"GET\",\r\n url: hostApi831 + \"GetPTTTByIDDotKhamChuaBenh\",\r\n params: {\r\n token: token,\r\n ApplicationCode: applicationCode831,\r\n IDDotKhamChuaBenh: id\r\n },\r\n message: {\r\n success: \"hidden\",\r\n error: \"Lỗi tải dữ liệu!\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.LoadDMQuocGia = () => {\r\n let api = {\r\n method: \"GET\",\r\n url: hostApi831 + \"LoadDMQuocGia\",\r\n // data: {},\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.LoadDMDanToc = () => {\r\n let api = {\r\n method: \"GET\",\r\n url: hostApi831 + \"LoadDMDanToc\",\r\n // data: {},\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.LoadDMGioiTinh = () => {\r\n let api = {\r\n method: \"GET\",\r\n url: hostApi831 + \"LoadDMGioiTinh\",\r\n // data: {},\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.LoadDMCSKCB = () => {\r\n let api = {\r\n method: \"GET\",\r\n url: hostApi831 + \"LoadDMCSKCB\",\r\n // data: {},\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.LoadDMTonGiao = () => {\r\n let api = {\r\n method: \"GET\",\r\n url: hostApi831 + \"LoadDMTonGiao\",\r\n // data: {},\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.LoadDMKhuyetTat = () => {\r\n let api = {\r\n method: \"GET\",\r\n url: hostApi831 + \"LoadDMKhuyetTat\",\r\n // data: {},\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.LoadDMKhoa = () => {\r\n let api = {\r\n method: \"GET\",\r\n url: hostApi831 + \"LoadDMKhoa\",\r\n // data: {},\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.LoadDMTinhThanh = () => {\r\n let api = {\r\n method: \"GET\",\r\n url: hostApi831 + \"LoadDMTinhThanh\",\r\n // data: {},\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.LoadDMQuanHuyen = MaTinhThanh => {\r\n let api = {\r\n method: \"GET\",\r\n url: hostApi831 + \"LoadDMQuanHuyen\",\r\n // data: {},\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n if (MaTinhThanh) {\r\n api.params.MaTinhThanh = MaTinhThanh;\r\n }\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.LoadDMPhuongXa = (MaTinhThanh, MaQuanHuyen) => {\r\n let api = {\r\n method: \"GET\",\r\n url: hostApi831 + \"LoadDMPhuongXa\",\r\n // data: {},\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n if (MaTinhThanh) {\r\n api.params.MaTinhThanh = MaTinhThanh;\r\n }\r\n if (MaQuanHuyen) {\r\n api.params.MaQuanHuyen = MaQuanHuyen;\r\n }\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.getAllInForNguoiDan = cardCode => {\r\n let api = {\r\n module: \"nguoi_dan\",\r\n type: \"getAllInFor\",\r\n params: {\r\n cardCode: cardCode\r\n }\r\n };\r\n return ApiService(api);\r\n};\r\n\r\nmoduleApi.findByIdNguoiDan = id => {\r\n let api = {\r\n module: \"nguoi_dan\",\r\n type: \"findById\",\r\n params: {\r\n id: id\r\n }\r\n };\r\n return ApiService(api);\r\n};\r\n\r\nmoduleApi.listNguoiDan = dataFilter => {\r\n let api = {\r\n module: \"nguoi_dan\",\r\n type: \"list\",\r\n value: dataFilter\r\n };\r\n return ApiService(api);\r\n};\r\n\r\nmoduleApi.getPacs = cardCode => {\r\n let api = {\r\n method: \"GET\",\r\n url: UrlApiPacs + \"GetDSCacLanChup\",\r\n // data: {},\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831,\r\n MasterPatientID: cardCode\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.getPHIS_HSSKCN = (body, tinh) => {\r\n let api = {\r\n method: \"POST\",\r\n url: UrlApiPHIS + \"GetLSHSSK_CNAsync\",\r\n data: body,\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831,\r\n MaTinhThanhSoYTe: tinh\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.getPHIS_HSSKCNBT = (body, tinh) => {\r\n let api = {\r\n method: \"POST\",\r\n url: UrlApiPHIS + \"GetFullLSHanhChanhBanThanAsync\",\r\n data: body,\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831,\r\n MaTinhThanhSoYTe: tinh\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.getPHIS_HSSKCNGD = (body, tinh) => {\r\n let api = {\r\n method: \"POST\",\r\n url: UrlApiPHIS + \"GetFullLSHanhChanhGiaDinhAsync\",\r\n data: body,\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831,\r\n MaTinhThanhSoYTe: tinh\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.getPHIS_HSSKCNDC = (body, tinh) => {\r\n let api = {\r\n method: \"POST\",\r\n url: UrlApiPHIS + \"GetFullLSHanhChanhDiaChiHK_KSAsync\",\r\n data: body,\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831,\r\n MaTinhThanhSoYTe: tinh\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.getPHIS_HSSK_TT_LUCSINH = (body, tinh) => {\r\n let api = {\r\n method: \"POST\",\r\n url: UrlApiPHIS + \"GetFullLSTinhTrangLucSinhAsync\",\r\n data: body,\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831,\r\n MaTinhThanhSoYTe: tinh\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.getPHIS_HSSK_YTSK = (body, tinh) => {\r\n let api = {\r\n method: \"POST\",\r\n url: UrlApiPHIS + \"GetFullLSYeuToSucKhoeAsync\",\r\n data: body,\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831,\r\n MaTinhThanhSoYTe: tinh\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.getPHIS_HSSK_DIUNG = (body, tinh) => {\r\n let api = {\r\n method: \"POST\",\r\n url: UrlApiPHIS + \"GetFullLSDiUngCaNhanAsync\",\r\n data: body,\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831,\r\n MaTinhThanhSoYTe: tinh\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.getPHIS_HSSK_BENHTAT = (body, tinh) => {\r\n let api = {\r\n method: \"POST\",\r\n url: UrlApiPHIS + \"GetFullLSBenhTatCaNhanAsync\",\r\n data: body,\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831,\r\n MaTinhThanhSoYTe: tinh\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.getPHIS_HSSK_KTAT = (body, tinh) => {\r\n let api = {\r\n method: \"POST\",\r\n url: UrlApiPHIS + \"GetFullLSKhuyetTatAsync\",\r\n data: body,\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831,\r\n MaTinhThanhSoYTe: tinh\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.getPHIS_HSSK_PTHUAT = (body, tinh) => {\r\n let api = {\r\n method: \"POST\",\r\n url: UrlApiPHIS + \"GetFullLSPhauThuatAsync\",\r\n data: body,\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831,\r\n MaTinhThanhSoYTe: tinh\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.getPHIS_HSSK_DIUNG_GD = (body, tinh) => {\r\n let api = {\r\n method: \"POST\",\r\n url: UrlApiPHIS + \"GetFullLSDiUngGiaDinhAsync\",\r\n data: body,\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831,\r\n MaTinhThanhSoYTe: tinh\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.getPHIS_HSSK_BENHTAT_GD = (body, tinh) => {\r\n let api = {\r\n method: \"POST\",\r\n url: UrlApiPHIS + \"GetFullLSBenhTatGiaDinhAsync\",\r\n data: body,\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831,\r\n MaTinhThanhSoYTe: tinh\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.getPHIS_HSSK_SKSS = (body, tinh) => {\r\n let api = {\r\n method: \"POST\",\r\n url: UrlApiPHIS + \"GetFullLSSKSSAsync\",\r\n data: body,\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831,\r\n MaTinhThanhSoYTe: tinh\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.getPHIS_HSSK_VANDE_KHAC = (body, tinh) => {\r\n let api = {\r\n method: \"POST\",\r\n url: UrlApiPHIS + \"GetFullLSVanDeKhacAsync\",\r\n data: body,\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831,\r\n MaTinhThanhSoYTe: tinh\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.getPHIS_HSSK_TIEM_CHUNG = cardCode => {\r\n let api = {\r\n method: \"GET\",\r\n url: UrlApiPHIS + \"GetHSSK_TIEM_CHUNG\",\r\n // data: {},\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831,\r\n MaTinhThanhSoYTe: \"\",\r\n MaDangKyOrMaThe: cardCode\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.getPHIS_HSSK_TCHUNG_UVAN = cardCode => {\r\n let api = {\r\n method: \"GET\",\r\n url: UrlApiPHIS + \"GetHSSK_TCHUNG_UVAN\",\r\n // data: {},\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n ApplicationCode: applicationCode831,\r\n MaTinhThanhSoYTe: \"\",\r\n MaDangKyOrMaThe: cardCode\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.requestOtp = cardCode => {\r\n let api = {\r\n module: moduleName,\r\n type: \"requestOtp\", //function mushroom\r\n value: {\r\n cardCode: cardCode\r\n }\r\n };\r\n return ApiService(api);\r\n};\r\n\r\nmoduleApi.validateOtp = (cardCode, otp) => {\r\n let api = {\r\n module: moduleName,\r\n type: \"validateOtp\",\r\n value: {\r\n cardCode: cardCode,\r\n otp: otp\r\n }\r\n };\r\n return ApiService(api);\r\n};\r\n\r\nmoduleApi.updateSdo = async dataDKKCheckCard => {\r\n try {\r\n const response = await fetch(cosUrl + \"CosBhyt/UpdateSdo\", {\r\n method: \"POST\",\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n ApplicationCode: \"THE\",\r\n TokenCode: token\r\n // TokenCode:\r\n // \"fa28f4c1e647efaf86f8f4277125f3213b24599b47b4f2c7d2cb8bd64a93ea1f56511199e6d56eb88bf8ac49f7a6e83b6485e02185650c8f3bbcb0b9a237e3fa\"\r\n },\r\n body: JSON.stringify(dataDKKCheckCard)\r\n });\r\n const data = await response.json();\r\n return data;\r\n } catch (e) {\r\n console.log(\"Error\", e);\r\n return false;\r\n }\r\n};\r\n\r\nmoduleApi.dKKCheckCard = async dataDKKCheckCard => {\r\n try {\r\n const response = await fetch(hostApDkk + \"DkkRegister/CheckHeinCard\", {\r\n method: \"POST\", // or 'PUT'\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n AppCode: \"THE\",\r\n TokenCode: token\r\n // TokenCode:\r\n // \"fa28f4c1e647efaf86f8f4277125f3213b24599b47b4f2c7d2cb8bd64a93ea1f56511199e6d56eb88bf8ac49f7a6e83b6485e02185650c8f3bbcb0b9a237e3fa\"\r\n },\r\n body: JSON.stringify(dataDKKCheckCard)\r\n });\r\n const data = await response.json();\r\n return data;\r\n } catch (e) {\r\n console.log(\"Error DkkRegister/CheckHeinCard\", e);\r\n return false;\r\n }\r\n};\r\n\r\nmoduleApi.GetHoSoBenhAn = (body,hsskId) => {\r\n let api = {\r\n method: \"POST\",\r\n url: ddnsUrl + \"api/HoSoBenhAnProviderController/GetListHSKBByHSSKID\",\r\n data: body,\r\n params: {\r\n Token: MethodService.checkTokenTichHop(token),\r\n hsskid: hsskId,\r\n ApplicationCode: applicationCode831,\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Không có dữ liệu\",\r\n },\r\n };\r\n\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.GetDataHSBA = (body,hsid, hsskId) => {\r\n console.log(\"abc123\", body,hsid, hsskId);\r\n \r\n let api = {\r\n method: \"POST\",\r\n url: ddnsUrl + \"api/HoSoBenhAnProviderController/GetDataHSBA\",\r\n data: body,\r\n params: {\r\n Token: MethodService.checkTokenTichHop(token),\r\n hsid: hsid,\r\n hsskid: hsskId,\r\n ApplicationCode: applicationCode831,\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Không có dữ liệu\",\r\n },\r\n };\r\n\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.GetHoSoBTDU = (body, hsskId, loaiHoSo) => {\r\n let api = {\r\n method: \"POST\",\r\n url: ddnsUrl + \"api/HoSoBTDUProviderController/GetListHSSKByID\",\r\n data: body,\r\n params: {\r\n Token: MethodService.checkTokenTichHop(token),\r\n hsskid: hsskId,\r\n loaiHoSo: loaiHoSo,\r\n ApplicationCode: applicationCode831,\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Không có dữ liệu\",\r\n },\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\n\r\nmoduleApi.getHSSK_BHYTByHSSK_ID = (hsskId) => {\r\n let api = {\r\n method: \"GET\",\r\n url: ddnsUrl + \"api/getHSSK_BHYTByHSSK_ID\",\r\n // data: {},\r\n params: {\r\n token: MethodService.checkTokenTichHop(token),\r\n hsskid: hsskId,\r\n ApplicationCode: applicationCode831,\r\n },\r\n message: {\r\n success: \"\",\r\n error: \"Tải dữ liệu danh mục không thành công\"\r\n }\r\n };\r\n return ApiServiceAxios(api);\r\n};\r\nexport default moduleApi;\r\n","import LanguageService from './LanguageService';\r\n\r\nlet ValidService = {};\r\nValidService.required = {\r\n required: true,\r\n message: LanguageService.lang.valid_required,\r\n trigger: \"blur\"\r\n};\r\nValidService.requiredChange = {\r\n required: true,\r\n message: LanguageService.lang.valid_required,\r\n trigger: \"change\"\r\n};\r\nValidService.requiredChangeRoom = {\r\n required: true,\r\n message: LanguageService.lang.required_change,\r\n trigger: \"change\"\r\n};\r\nValidService.checkAz09 = {\r\n pattern: /^[0-9a-zA-Z]+$/g,\r\n message: LanguageService.lang.valid_az09,\r\n trigger: \"blur\"\r\n};\r\nValidService.checkAz09Dot = {\r\n pattern: /^[\\d.\\.]$/g,\r\n message: LanguageService.lang.valid_az09Dot,\r\n trigger: \"blur\"\r\n};\r\nValidService.checkPhone = {\r\n pattern: /^(0|\\+?84|0084)\\d{9}$/,\r\n message: LanguageService.lang.valid_phone,\r\n trigger: [\"blur\", \"change\"],\r\n};\r\nValidService.checkNumber = {\r\n pattern: /^[0-9]+$/,\r\n message: LanguageService.lang.valid_number,\r\n trigger: [\"blur\", \"change\"]\r\n};\r\nValidService.checkNumberFloatNotNegative = {\r\n pattern: /^[\\d.]+$/,\r\n message: LanguageService.lang.valid_floatNegative,\r\n trigger: \"blur\"\r\n};\r\nValidService.checkNumberInteger = {\r\n pattern: /^[-]?[\\d]+$/,\r\n message: LanguageService.lang.valid_integer,\r\n trigger: \"blur\"\r\n};\r\nValidService.checkPositiveNumberInteger = {\r\n pattern: /^[\\d]+$/,\r\n message: LanguageService.lang.valid_integer_positive,\r\n trigger: \"blur\"\r\n};\r\nValidService.checkNumberFloat = {\r\n pattern: /^[-]?[\\d.]+$/,\r\n message: LanguageService.lang.valid_float,\r\n trigger: \"blur\"\r\n};\r\nValidService.checkEmail = {\r\n pattern: /^[a-zA-Z0-9.!$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$/g,\r\n message: LanguageService.lang.valid_email,\r\n trigger: \"blur\"\r\n};\r\nValidService.checkSign = {\r\n pattern: /^[^ÀÁÂÃÈÉÊÌÍÒÓÔÕÙÚĂĐĨŨƠàáâãèéêìíòóôõùúăđĩũơƯĂẠẢẤẦẨẪẬẮẰẲẴẶẸẺẼỀỀỂưăạảấầẩẫậắằẳẵặẹẻẽềềểỄỆỈỊỌỎỐỒỔỖỘỚỜỞỠỢỤỦỨỪễệỉịọỏốồổỗộớờởỡợụủứừỬỮỰỲỴÝỶỸửữựỳỵỷỹ]*$/g,\r\n message: LanguageService.lang.valid_sign,\r\n trigger: \"blur\"\r\n};\r\nValidService.checkSpace = {\r\n pattern: /^[^\\s]*$/g,\r\n message: LanguageService.lang.valid_space,\r\n trigger: \"blur\"\r\n};\r\nValidService.checkSpaceString = {\r\n pattern: /\\S/g,\r\n message: LanguageService.lang.valid_space,\r\n trigger: \"blur\"\r\n};\r\nValidService.checkScript = {\r\n pattern: /^[\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w\\_\\s]*$/g,\r\n message: LanguageService.lang.valid_script,\r\n trigger: \"blur\"\r\n};\r\nValidService.checkLink = {\r\n pattern: /^(?:http(s)?:\\/\\/)?[\\w.-]+(?:\\.[\\w\\.-]+)+[\\w\\-\\._~:/?#[\\]@!\\$&'\\(\\)\\*\\+,;=.]+$/,\r\n message: LanguageService.lang.valid_link,\r\n trigger: \"blur\"\r\n};\r\nValidService.checkBloodPressure = {\r\n pattern: /^((\\d){2,3}\\/(\\d){2,3})$/,\r\n message: LanguageService.lang.valid_blood_pressure,\r\n trigger: \"blur\"\r\n}\r\nValidService.checkTextFirst = {\r\n pattern: /^[a-zA-Z].*/g,\r\n message: LanguageService.lang.valid_textFirst,\r\n trigger: \"blur\"\r\n};\r\nValidService.checkDateTime = {\r\n pattern: /^([1-9]|([012][0-9])|(3[01]))[/]([0]{0,1}[1-9]|1[012])[/]\\d\\d\\d\\d [012]{0,1}[0-9]:[0-6][0-9]$/g,\r\n message: LanguageService.lang.valid_dateTime,\r\n trigger: \"blur\"\r\n};\r\nValidService.checkDate = {\r\n pattern: /^(?:(?:31(\\/|-|\\.)(?:0?[13578]|1[02]))\\1|(?:(?:29|30)(\\/|-|\\.)(?:0?[1,3-9]|1[0-2])\\2))(?:(?:1[1-9]|[1-9]\\d)?\\d{2})$|^(?:29(\\/|-|\\.)0?2\\3(?:(?:(?:1[6-9]|[2-9]\\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\\d|2[0-8])(\\/|-|\\.)(?:(?:0?[1-9])|(?:1[0-2]))\\4(?:(?:1[1-9]|[1-9]\\d)?\\d{2})$/g,\r\n message: LanguageService.lang.valid_date,\r\n trigger: [\"blur\", \"change\"]\r\n};\r\nValidService.checkYear = {\r\n pattern: /^\\d{4}$/g,\r\n message: LanguageService.lang.valid_year,\r\n trigger: \"blur\"\r\n};\r\nValidService.checkMonth = {\r\n pattern: /^\\d{2}[/]\\d{4}$/g,\r\n message: LanguageService.lang.valid_month,\r\n trigger: \"blur\"\r\n};\r\nValidService.checkPassword = {\r\n pattern: /^[a-z0-9_-]{6,18}$/,\r\n message: LanguageService.lang.valid_password,\r\n trigger: \"blur\"\r\n};\r\n\r\nValidService.checkLength = (start, end) => {\r\n var mess = \"\";\r\n var pattern = \"\";\r\n\r\n if (start && end) {\r\n\r\n mess = `${LanguageService.lang.valid_insert} ${start} ${LanguageService.lang.valid_to} ${end} ${LanguageService.lang.valid_character}`;\r\n pattern = `.{${start},${end}}$`;\r\n }\r\n else if (start) {\r\n mess = `${LanguageService.lang.valid_insertThan} ${start} ${LanguageService.lang.valid_character}`;\r\n pattern = `.{${start},}$`;\r\n }\r\n else if (end) {\r\n mess = `${LanguageService.lang.valid_insertLess} ${end} ${LanguageService.lang.valid_character}`;\r\n pattern = `.{,${end}}$`;\r\n }\r\n return {\r\n pattern: new RegExp(pattern),\r\n message: mess,\r\n trigger: \"blur\"\r\n }\r\n};\r\n\r\nValidService.checkLengthCharacters = (number) => {\r\n let pattern = `^\\\\d{${number}}$`;\r\n // /^\\d{16}$/\r\n let mess = `${LanguageService.lang.valid_insertEqua} 16 ${LanguageService.lang.valid_character}`;\r\n return {\r\n pattern: new RegExp(pattern),\r\n message: mess,\r\n trigger: \"blur\"\r\n }\r\n};\r\n\r\nexport default ValidService;\r\n"],"sourceRoot":""}