@imedx/ics-imedx-intf-chs-js-sdk
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -1,5 +0,64 @@ | ||
import IntfPlatform from '@imedx/ics-imedx-chromely-plugin-intf-platform'; | ||
import { IntfPlatform } from '@imedx/ics-imedx-chromely-plugin-intf-platform'; | ||
import Vue from 'vue'; | ||
/****************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
function __awaiter(thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
} | ||
function __generator(thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
function step(op) { | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [op[0] & 2, t.value]; | ||
switch (op[0]) { | ||
case 0: case 1: t = op; break; | ||
case 4: _.label++; return { value: op[1], done: false }; | ||
case 5: _.label++; y = op[1]; op = [0]; continue; | ||
case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
default: | ||
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
if (t[2]) _.ops.pop(); | ||
_.trys.pop(); continue; | ||
} | ||
op = body.call(thisArg, _); | ||
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
} | ||
} | ||
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { | ||
var e = new Error(message); | ||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; | ||
}; | ||
var constants = { | ||
CHS_INTERFACE_CORE: 'ChsInterfaceCore', | ||
CHS_INTERFACE_CORE: 'Interface.CHS.Core', | ||
Init: '2000', | ||
@@ -17,109 +76,679 @@ ReadCard: '2100', | ||
LeaveRegister: '2601', | ||
LeaveRegisterCancel: '2650' | ||
LeaveRegisterCancel: '2650', | ||
DataProcess: '2701', | ||
SettleReportPrint: '2601' | ||
}; | ||
// @ts-ignore | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
var script = { | ||
data: function data() { | ||
return { | ||
dialogVisible: false, | ||
chsType: null | ||
}; | ||
}, | ||
props: { | ||
resolve: { | ||
type: Function, | ||
required: true | ||
}, | ||
reject: { | ||
type: Function, | ||
required: true | ||
}, | ||
chsTypeList: { | ||
type: Object, | ||
required: true | ||
} | ||
}, | ||
mounted: function mounted() { | ||
var _this$chsTypeList; | ||
this.dialogVisible = true; | ||
// 默认第一个 | ||
if (((_this$chsTypeList = this.chsTypeList) === null || _this$chsTypeList === void 0 ? void 0 : _this$chsTypeList.length) > 0) { | ||
this.chsType = this.chsTypeList[0].code; | ||
} | ||
}, | ||
methods: { | ||
handleClose: function handleClose(done) { | ||
this.dialogVisible = false; | ||
done(); | ||
this.reject('用户关闭'); | ||
}, | ||
handleCancel: function handleCancel() { | ||
this.dialogVisible = false; | ||
this.reject('用户取消'); | ||
}, | ||
handleConfirm: function handleConfirm() { | ||
if (this.chsType) { | ||
this.dialogVisible = false; | ||
this.resolve(this === null || this === void 0 ? void 0 : this.chsType); | ||
} else { | ||
this.$toast({ | ||
message: '请选择医保类型!' | ||
}); | ||
} | ||
} | ||
} | ||
}; | ||
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) { | ||
if (typeof shadowMode !== 'boolean') { | ||
createInjectorSSR = createInjector; | ||
createInjector = shadowMode; | ||
shadowMode = false; | ||
} | ||
// Vue.extend constructor export interop. | ||
const options = typeof script === 'function' ? script.options : script; | ||
// render functions | ||
if (template && template.render) { | ||
options.render = template.render; | ||
options.staticRenderFns = template.staticRenderFns; | ||
options._compiled = true; | ||
// functional template | ||
if (isFunctionalTemplate) { | ||
options.functional = true; | ||
} | ||
} | ||
// scopedId | ||
if (scopeId) { | ||
options._scopeId = scopeId; | ||
} | ||
let hook; | ||
if (moduleIdentifier) { | ||
// server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__; | ||
} | ||
// inject component styles | ||
if (style) { | ||
style.call(this, createInjectorSSR(context)); | ||
} | ||
// register component module identifier for async chunk inference | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier); | ||
} | ||
}; | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook; | ||
} | ||
else if (style) { | ||
hook = shadowMode | ||
? function (context) { | ||
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot)); | ||
} | ||
: function (context) { | ||
style.call(this, createInjector(context)); | ||
}; | ||
} | ||
if (hook) { | ||
if (options.functional) { | ||
// register for functional component in vue file | ||
const originalRender = options.render; | ||
options.render = function renderWithStyleInjection(h, context) { | ||
hook.call(context); | ||
return originalRender(h, context); | ||
}; | ||
} | ||
else { | ||
// inject component registration as beforeCreate hook | ||
const existing = options.beforeCreate; | ||
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]; | ||
} | ||
} | ||
return script; | ||
} | ||
const isOldIE = typeof navigator !== 'undefined' && | ||
/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase()); | ||
function createInjector(context) { | ||
return (id, style) => addStyle(id, style); | ||
} | ||
let HEAD; | ||
const styles = {}; | ||
function addStyle(id, css) { | ||
const group = isOldIE ? css.media || 'default' : id; | ||
const style = styles[group] || (styles[group] = { ids: new Set(), styles: [] }); | ||
if (!style.ids.has(id)) { | ||
style.ids.add(id); | ||
let code = css.source; | ||
if (css.map) { | ||
// https://developer.chrome.com/devtools/docs/javascript-debugging | ||
// this makes source maps inside style tags work properly in Chrome | ||
code += '\n/*# sourceURL=' + css.map.sources[0] + ' */'; | ||
// http://stackoverflow.com/a/26603875 | ||
code += | ||
'\n/*# sourceMappingURL=data:application/json;base64,' + | ||
btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) + | ||
' */'; | ||
} | ||
if (!style.element) { | ||
style.element = document.createElement('style'); | ||
style.element.type = 'text/css'; | ||
if (css.media) | ||
style.element.setAttribute('media', css.media); | ||
if (HEAD === undefined) { | ||
HEAD = document.head || document.getElementsByTagName('head')[0]; | ||
} | ||
HEAD.appendChild(style.element); | ||
} | ||
if ('styleSheet' in style.element) { | ||
style.styles.push(code); | ||
style.element.styleSheet.cssText = style.styles | ||
.filter(Boolean) | ||
.join('\n'); | ||
} | ||
else { | ||
const index = style.ids.size - 1; | ||
const textNode = document.createTextNode(code); | ||
const nodes = style.element.childNodes; | ||
if (nodes[index]) | ||
style.element.removeChild(nodes[index]); | ||
if (nodes.length) | ||
style.element.insertBefore(textNode, nodes[index]); | ||
else | ||
style.element.appendChild(textNode); | ||
} | ||
} | ||
} | ||
/* script */ | ||
const __vue_script__ = script; | ||
/* template */ | ||
var __vue_render__ = function() { | ||
var _vm = this; | ||
var _h = _vm.$createElement; | ||
var _c = _vm._self._c || _h; | ||
return _c( | ||
"ics-dialog", | ||
{ | ||
attrs: { | ||
title: "请选择医保类型", | ||
visible: _vm.dialogVisible, | ||
width: "500px", | ||
"before-close": _vm.handleClose | ||
}, | ||
on: { | ||
"update:visible": function($event) { | ||
_vm.dialogVisible = $event; | ||
} | ||
} | ||
}, | ||
[ | ||
_c( | ||
"ics-radio-group", | ||
{ | ||
model: { | ||
value: _vm.chsType, | ||
callback: function($$v) { | ||
_vm.chsType = $$v; | ||
}, | ||
expression: "chsType" | ||
} | ||
}, | ||
_vm._l(_vm.chsTypeList, function(item) { | ||
return _c( | ||
"ics-radio", | ||
{ key: item.id, attrs: { label: item.code, card: "", border: "" } }, | ||
[ | ||
_c("span", { staticClass: "chs-name" }, [ | ||
_vm._v( | ||
"【" + _vm._s(item.code || "") + "】" + _vm._s(item.name) | ||
) | ||
]), | ||
_vm._v(" "), | ||
_c("span", { staticClass: "chs-kind" }, [ | ||
_vm._v(_vm._s(item.chsKindName)) | ||
]) | ||
] | ||
) | ||
}), | ||
1 | ||
), | ||
_vm._v(" "), | ||
_c( | ||
"span", | ||
{ | ||
staticClass: "dialog-footer", | ||
attrs: { slot: "footer" }, | ||
slot: "footer" | ||
}, | ||
[ | ||
_c("ics-button", { on: { click: _vm.handleCancel } }, [ | ||
_vm._v("取 消") | ||
]), | ||
_vm._v(" "), | ||
_c( | ||
"ics-button", | ||
{ attrs: { type: "primary" }, on: { click: _vm.handleConfirm } }, | ||
[_vm._v("确 定")] | ||
) | ||
], | ||
1 | ||
) | ||
], | ||
1 | ||
) | ||
}; | ||
var __vue_staticRenderFns__ = []; | ||
__vue_render__._withStripped = true; | ||
/* style */ | ||
const __vue_inject_styles__ = function (inject) { | ||
if (!inject) return | ||
inject("data-v-b8fb675e_0", { source: "[data-v-b8fb675e] .el-radio-group {\n width: 100%;\n}\n[data-v-b8fb675e] .el-radio {\n display: block;\n margin: 10px 0;\n width: 100%;\n}\n[data-v-b8fb675e] .el-radio.is-bordered + .el-radio.is-bordered {\n margin-left: 0px;\n}\n[data-v-b8fb675e] .el-radio .chs-name {\n color: #182140;\n}\n[data-v-b8fb675e] .el-radio .chs-kind {\n float: right;\n color: rgba(24, 33, 64, 0.7);\n}\n\n/*# sourceMappingURL=ChsTypeDialog.vue.map */", map: {"version":3,"sources":["D:\\Work\\Src\\V7\\Program\\接口管理\\js\\ics-imedx-intf-chs-js-sdk\\src\\components\\chs-type-dialog\\ChsTypeDialog.vue","ChsTypeDialog.vue"],"names":[],"mappings":"AA+EA;EACA,WAAA;AC9EA;ADgFA;EACA,cAAA;EACA,cAAA;EACA,WAAA;AC7EA;AD8EA;EACA,gBAAA;AC5EA;AD8EA;EACA,cAAA;AC5EA;AD8EA;EACA,YAAA;EACA,4BAAA;AC5EA;;AAEA,4CAA4C","file":"ChsTypeDialog.vue","sourcesContent":["\r\n<template>\r\n <ics-dialog\r\n title=\"请选择医保类型\"\r\n :visible.sync=\"dialogVisible\"\r\n width=\"500px\"\r\n :before-close=\"handleClose\"\r\n >\r\n <ics-radio-group v-model=\"chsType\">\r\n <ics-radio\r\n v-for=\"item in chsTypeList\"\r\n :key=\"item.id\"\r\n :label=\"item.code\"\r\n card\r\n border\r\n >\r\n <span class=\"chs-name\">【{{ item.code || '' }}】{{ item.name }}</span>\r\n <span class=\"chs-kind\">{{ item.chsKindName }}</span></ics-radio\r\n >\r\n </ics-radio-group>\r\n <span slot=\"footer\" class=\"dialog-footer\">\r\n <ics-button @click=\"handleCancel\">取 消</ics-button>\r\n <ics-button type=\"primary\" @click=\"handleConfirm\">确 定</ics-button>\r\n </span>\r\n </ics-dialog>\r\n</template>\r\n<script>\r\nexport default {\r\n data() {\r\n return {\r\n dialogVisible: false,\r\n chsType: null,\r\n }\r\n },\r\n props: {\r\n resolve: {\r\n type: Function,\r\n required: true,\r\n },\r\n reject: {\r\n type: Function,\r\n required: true,\r\n },\r\n chsTypeList: {\r\n type: Object,\r\n required: true,\r\n },\r\n },\r\n mounted() {\r\n this.dialogVisible = true\r\n // 默认第一个\r\n if (this.chsTypeList?.length > 0) {\r\n this.chsType = this.chsTypeList[0].code\r\n }\r\n },\r\n methods: {\r\n handleClose(done) {\r\n this.dialogVisible = false\r\n done()\r\n this.reject('用户关闭')\r\n },\r\n handleCancel() {\r\n this.dialogVisible = false\r\n this.reject('用户取消')\r\n },\r\n handleConfirm() {\r\n if (this.chsType) {\r\n this.dialogVisible = false\r\n this.resolve(this?.chsType)\r\n } else {\r\n this.$toast({\r\n message: '请选择医保类型!',\r\n })\r\n }\r\n },\r\n },\r\n}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n::v-deep .el-radio-group {\r\n width: 100%;\r\n}\r\n::v-deep .el-radio {\r\n display: block;\r\n margin: 10px 0;\r\n width: 100%;\r\n &.is-bordered + .el-radio.is-bordered {\r\n margin-left: 0px;\r\n }\r\n .chs-name {\r\n color: #182140;\r\n }\r\n .chs-kind {\r\n float: right;\r\n color: rgba(24, 33, 64, 0.7);\r\n }\r\n}\r\n</style>\r\n","::v-deep .el-radio-group {\n width: 100%;\n}\n\n::v-deep .el-radio {\n display: block;\n margin: 10px 0;\n width: 100%;\n}\n::v-deep .el-radio.is-bordered + .el-radio.is-bordered {\n margin-left: 0px;\n}\n::v-deep .el-radio .chs-name {\n color: #182140;\n}\n::v-deep .el-radio .chs-kind {\n float: right;\n color: rgba(24, 33, 64, 0.7);\n}\n\n/*# sourceMappingURL=ChsTypeDialog.vue.map */"]}, media: undefined }); | ||
}; | ||
/* scoped */ | ||
const __vue_scope_id__ = "data-v-b8fb675e"; | ||
/* module identifier */ | ||
const __vue_module_identifier__ = undefined; | ||
/* functional template */ | ||
const __vue_is_functional_template__ = false; | ||
/* style inject SSR */ | ||
/* style inject shadow dom */ | ||
const __vue_component__ = /*#__PURE__*/normalizeComponent( | ||
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, | ||
__vue_inject_styles__, | ||
__vue_script__, | ||
__vue_scope_id__, | ||
__vue_is_functional_template__, | ||
__vue_module_identifier__, | ||
false, | ||
createInjector, | ||
undefined, | ||
undefined | ||
); | ||
/** | ||
* 弹出医保类型对话框 | ||
*/ | ||
function showChsTypeDialog(chsTypeList) { | ||
return new Promise(function (resolve, reject) { | ||
var chsTypeDialog = Vue.extend(__vue_component__); | ||
// 创建一个Vue实例 | ||
new chsTypeDialog({ | ||
propsData: { resolve: resolve, reject: reject, chsTypeList: chsTypeList } | ||
}).$mount(); | ||
}); | ||
} | ||
var IcsImedxIntfChsPlatformJsSdk = /** @class */ (function () { | ||
/** | ||
* | ||
* @param mode 参数 | ||
* 构造函数 | ||
*/ | ||
function IcsImedxIntfChsPlatformJsSdk(mode) { | ||
this._mode = mode; | ||
function IcsImedxIntfChsPlatformJsSdk() { | ||
} | ||
IcsImedxIntfChsPlatformJsSdk.use = function (_a) { | ||
var request = _a.request; | ||
this.Request = request; | ||
}; | ||
/** | ||
* 医保接口初始化 | ||
* @returns 初始化函数 | ||
* 医保初始化接口 | ||
* @param param 医保初始化入参 | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Init = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Init, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Init = function (_a) { | ||
var visitId = _a.visitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Init, { | ||
visitId: visitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保读卡接口 | ||
* @returns 读卡函数 | ||
* @param param 医保读卡入参 | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.ReadCard = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.ReadCard, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.ReadCard = function (_a) { | ||
var visitId = _a.visitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var res, chsTypeId; | ||
return __generator(this, function (_b) { | ||
switch (_b.label) { | ||
case 0: return [4 /*yield*/, IcsImedxIntfChsPlatformJsSdk.Request({ | ||
url: 'chs-basic/chs-type/list/by/status', | ||
method: 'post', | ||
data: { status: 1 } | ||
})]; | ||
case 1: | ||
res = _b.sent(); | ||
return [4 /*yield*/, showChsTypeDialog(res.data)]; | ||
case 2: | ||
chsTypeId = _b.sent(); | ||
return [2 /*return*/, IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.ReadCard, { | ||
visitId: visitId, | ||
chsTypeId: chsTypeId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
})]; | ||
} | ||
}); | ||
}); | ||
}; | ||
/** | ||
* 医保登记接口 | ||
* @returns 登记函数 | ||
* @param param 医保读卡入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Register = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Register, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Register = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Register, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保登记修改接口 | ||
* @returns 登记修改函数 | ||
* @param param 医保登记修改入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.RegisterUpdate = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.RegisterUpdate, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.RegisterUpdate = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.RegisterUpdate, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保登记撤销接口 | ||
* @returns 登记撤销函数 | ||
* @param param 医保登记撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.RegisterCancel = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.RegisterCancel, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.RegisterCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.RegisterCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保费用上传接口 | ||
* @returns 费用上传函数 | ||
* @param param 医保费用上传入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.FeeTransfer = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.FeeTransfer, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.FeeTransfer = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.FeeTransfer, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保费用上传撤销接口 | ||
* @returns 费用上传撤销函数 | ||
* @param param 医保费用上传撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.FeeTransferCancel = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.FeeTransferCancel, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.FeeTransferCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.FeeTransferCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保预结算接口 | ||
* @returns 预结算函数 | ||
* @param param 医保预结算入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.PreSettle = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.PreSettle, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.PreSettle = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.PreSettle, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保预结算撤销接口 | ||
* @returns 预结算撤销函数 | ||
* @param param 医保预结算撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.PreSettleCancel = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.PreSettleCancel, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.PreSettleCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.PreSettleCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保结算接口 | ||
* @returns 结算函数 | ||
* @param param 医保结算入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Settle = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Settle, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Settle = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Settle, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保结算撤销接口 | ||
* @returns 结算撤销函数 | ||
* @param param 医保结算撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.SettleCancel = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.SettleCancel, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.SettleCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.SettleCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保出院登记接口 | ||
* @returns 出院登记函数 | ||
* @param param 出院登记入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.LeaveRegister = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.LeaveRegister, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.LeaveRegister = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.LeaveRegister, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保出院登记撤销接口 | ||
* @returns 出院登记撤销 | ||
* @param param 出院登记撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.LeaveRegisterCancel = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.LeaveRegisterCancel, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.LeaveRegisterCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.LeaveRegisterCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保目录数据下载接口 | ||
* @param param 医保录数据下载入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.businessCode 交易码 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.DataProcess = function (_a) { | ||
var chsTypeId = _a.chsTypeId, businessCode = _a.businessCode; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.DataProcess, { | ||
chsTypeId: chsTypeId, | ||
businessCode: businessCode | ||
}); | ||
}; | ||
/** | ||
* 医保打印接口 | ||
* @param param 医保打印入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 2601 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Report = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag; | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.SettleReportPrint, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag | ||
}); | ||
}; | ||
return IcsImedxIntfChsPlatformJsSdk; | ||
}()); | ||
export default IcsImedxIntfChsPlatformJsSdk; | ||
//# sourceMappingURL=ics-imedx-intf-chs-js-sdk.es5.js.map | ||
export { IcsImedxIntfChsPlatformJsSdk as default }; | ||
//# sourceMappingURL=ics-imedx-Intf-chs-js-sdk.es5.js.map |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@imedx/ics-imedx-chromely-plugin-intf-platform')) : | ||
typeof define === 'function' && define.amd ? define(['@imedx/ics-imedx-chromely-plugin-intf-platform'], factory) : | ||
(global.icsImedxIntfChsJsSdk = factory(global.IntfPlatform)); | ||
}(this, (function (IntfPlatform) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@imedx/ics-imedx-chromely-plugin-intf-platform'), require('vue')) : | ||
typeof define === 'function' && define.amd ? define(['@imedx/ics-imedx-chromely-plugin-intf-platform', 'vue'], factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.icsImedxIntfChsJsSdk = factory(global.IcsImedxChromelyPluginIntfPlatform, global.Vue)); | ||
})(this, (function (icsImedxChromelyPluginIntfPlatform, Vue) { 'use strict'; | ||
IntfPlatform = IntfPlatform && IntfPlatform.hasOwnProperty('default') ? IntfPlatform['default'] : IntfPlatform; | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var constants = { | ||
CHS_INTERFACE_CORE: 'ChsInterfaceCore', | ||
Init: '2000', | ||
ReadCard: '2100', | ||
Register: '2201', | ||
RegisterUpdate: '2202', | ||
RegisterCancel: '2250', | ||
FeeTransfer: '2301', | ||
FeeTransferCancel: '2350', | ||
PreSettle: '2401', | ||
PreSettleCancel: '2450', | ||
Settle: '2501', | ||
SettleCancel: '2550', | ||
LeaveRegister: '2601', | ||
LeaveRegisterCancel: '2650' | ||
}; | ||
var Vue__default = /*#__PURE__*/_interopDefaultLegacy(Vue); | ||
// @ts-ignore | ||
var IcsImedxIntfChsPlatformJsSdk = /** @class */ (function () { | ||
/** | ||
* | ||
* @param mode 参数 | ||
*/ | ||
function IcsImedxIntfChsPlatformJsSdk(mode) { | ||
this._mode = mode; | ||
/****************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
function __awaiter(thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
} | ||
function __generator(thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
function step(op) { | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [op[0] & 2, t.value]; | ||
switch (op[0]) { | ||
case 0: case 1: t = op; break; | ||
case 4: _.label++; return { value: op[1], done: false }; | ||
case 5: _.label++; y = op[1]; op = [0]; continue; | ||
case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
default: | ||
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
if (t[2]) _.ops.pop(); | ||
_.trys.pop(); continue; | ||
} | ||
op = body.call(thisArg, _); | ||
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
} | ||
} | ||
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { | ||
var e = new Error(message); | ||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; | ||
}; | ||
var constants = { | ||
CHS_INTERFACE_CORE: 'Interface.CHS.Core', | ||
Init: '2000', | ||
ReadCard: '2100', | ||
Register: '2201', | ||
RegisterUpdate: '2202', | ||
RegisterCancel: '2250', | ||
FeeTransfer: '2301', | ||
FeeTransferCancel: '2350', | ||
PreSettle: '2401', | ||
PreSettleCancel: '2450', | ||
Settle: '2501', | ||
SettleCancel: '2550', | ||
LeaveRegister: '2601', | ||
LeaveRegisterCancel: '2650', | ||
DataProcess: '2701', | ||
SettleReportPrint: '2601' | ||
}; | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
var script = { | ||
data: function data() { | ||
return { | ||
dialogVisible: false, | ||
chsType: null | ||
}; | ||
}, | ||
props: { | ||
resolve: { | ||
type: Function, | ||
required: true | ||
}, | ||
reject: { | ||
type: Function, | ||
required: true | ||
}, | ||
chsTypeList: { | ||
type: Object, | ||
required: true | ||
} | ||
}, | ||
mounted: function mounted() { | ||
var _this$chsTypeList; | ||
this.dialogVisible = true; | ||
// 默认第一个 | ||
if (((_this$chsTypeList = this.chsTypeList) === null || _this$chsTypeList === void 0 ? void 0 : _this$chsTypeList.length) > 0) { | ||
this.chsType = this.chsTypeList[0].code; | ||
} | ||
}, | ||
methods: { | ||
handleClose: function handleClose(done) { | ||
this.dialogVisible = false; | ||
done(); | ||
this.reject('用户关闭'); | ||
}, | ||
handleCancel: function handleCancel() { | ||
this.dialogVisible = false; | ||
this.reject('用户取消'); | ||
}, | ||
handleConfirm: function handleConfirm() { | ||
if (this.chsType) { | ||
this.dialogVisible = false; | ||
this.resolve(this === null || this === void 0 ? void 0 : this.chsType); | ||
} else { | ||
this.$toast({ | ||
message: '请选择医保类型!' | ||
}); | ||
} | ||
} | ||
} | ||
/** | ||
* 医保接口初始化 | ||
* @returns 初始化函数 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Init = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Init, param); | ||
}; | ||
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) { | ||
if (typeof shadowMode !== 'boolean') { | ||
createInjectorSSR = createInjector; | ||
createInjector = shadowMode; | ||
shadowMode = false; | ||
} | ||
// Vue.extend constructor export interop. | ||
const options = typeof script === 'function' ? script.options : script; | ||
// render functions | ||
if (template && template.render) { | ||
options.render = template.render; | ||
options.staticRenderFns = template.staticRenderFns; | ||
options._compiled = true; | ||
// functional template | ||
if (isFunctionalTemplate) { | ||
options.functional = true; | ||
} | ||
} | ||
// scopedId | ||
if (scopeId) { | ||
options._scopeId = scopeId; | ||
} | ||
let hook; | ||
if (moduleIdentifier) { | ||
// server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__; | ||
} | ||
// inject component styles | ||
if (style) { | ||
style.call(this, createInjectorSSR(context)); | ||
} | ||
// register component module identifier for async chunk inference | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier); | ||
} | ||
}; | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook; | ||
} | ||
else if (style) { | ||
hook = shadowMode | ||
? function (context) { | ||
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot)); | ||
} | ||
: function (context) { | ||
style.call(this, createInjector(context)); | ||
}; | ||
} | ||
if (hook) { | ||
if (options.functional) { | ||
// register for functional component in vue file | ||
const originalRender = options.render; | ||
options.render = function renderWithStyleInjection(h, context) { | ||
hook.call(context); | ||
return originalRender(h, context); | ||
}; | ||
} | ||
else { | ||
// inject component registration as beforeCreate hook | ||
const existing = options.beforeCreate; | ||
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]; | ||
} | ||
} | ||
return script; | ||
} | ||
const isOldIE = typeof navigator !== 'undefined' && | ||
/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase()); | ||
function createInjector(context) { | ||
return (id, style) => addStyle(id, style); | ||
} | ||
let HEAD; | ||
const styles = {}; | ||
function addStyle(id, css) { | ||
const group = isOldIE ? css.media || 'default' : id; | ||
const style = styles[group] || (styles[group] = { ids: new Set(), styles: [] }); | ||
if (!style.ids.has(id)) { | ||
style.ids.add(id); | ||
let code = css.source; | ||
if (css.map) { | ||
// https://developer.chrome.com/devtools/docs/javascript-debugging | ||
// this makes source maps inside style tags work properly in Chrome | ||
code += '\n/*# sourceURL=' + css.map.sources[0] + ' */'; | ||
// http://stackoverflow.com/a/26603875 | ||
code += | ||
'\n/*# sourceMappingURL=data:application/json;base64,' + | ||
btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) + | ||
' */'; | ||
} | ||
if (!style.element) { | ||
style.element = document.createElement('style'); | ||
style.element.type = 'text/css'; | ||
if (css.media) | ||
style.element.setAttribute('media', css.media); | ||
if (HEAD === undefined) { | ||
HEAD = document.head || document.getElementsByTagName('head')[0]; | ||
} | ||
HEAD.appendChild(style.element); | ||
} | ||
if ('styleSheet' in style.element) { | ||
style.styles.push(code); | ||
style.element.styleSheet.cssText = style.styles | ||
.filter(Boolean) | ||
.join('\n'); | ||
} | ||
else { | ||
const index = style.ids.size - 1; | ||
const textNode = document.createTextNode(code); | ||
const nodes = style.element.childNodes; | ||
if (nodes[index]) | ||
style.element.removeChild(nodes[index]); | ||
if (nodes.length) | ||
style.element.insertBefore(textNode, nodes[index]); | ||
else | ||
style.element.appendChild(textNode); | ||
} | ||
} | ||
} | ||
/* script */ | ||
const __vue_script__ = script; | ||
/* template */ | ||
var __vue_render__ = function() { | ||
var _vm = this; | ||
var _h = _vm.$createElement; | ||
var _c = _vm._self._c || _h; | ||
return _c( | ||
"ics-dialog", | ||
{ | ||
attrs: { | ||
title: "请选择医保类型", | ||
visible: _vm.dialogVisible, | ||
width: "500px", | ||
"before-close": _vm.handleClose | ||
}, | ||
on: { | ||
"update:visible": function($event) { | ||
_vm.dialogVisible = $event; | ||
} | ||
} | ||
}, | ||
[ | ||
_c( | ||
"ics-radio-group", | ||
{ | ||
model: { | ||
value: _vm.chsType, | ||
callback: function($$v) { | ||
_vm.chsType = $$v; | ||
}, | ||
expression: "chsType" | ||
} | ||
}, | ||
_vm._l(_vm.chsTypeList, function(item) { | ||
return _c( | ||
"ics-radio", | ||
{ key: item.id, attrs: { label: item.code, card: "", border: "" } }, | ||
[ | ||
_c("span", { staticClass: "chs-name" }, [ | ||
_vm._v( | ||
"【" + _vm._s(item.code || "") + "】" + _vm._s(item.name) | ||
) | ||
]), | ||
_vm._v(" "), | ||
_c("span", { staticClass: "chs-kind" }, [ | ||
_vm._v(_vm._s(item.chsKindName)) | ||
]) | ||
] | ||
) | ||
}), | ||
1 | ||
), | ||
_vm._v(" "), | ||
_c( | ||
"span", | ||
{ | ||
staticClass: "dialog-footer", | ||
attrs: { slot: "footer" }, | ||
slot: "footer" | ||
}, | ||
[ | ||
_c("ics-button", { on: { click: _vm.handleCancel } }, [ | ||
_vm._v("取 消") | ||
]), | ||
_vm._v(" "), | ||
_c( | ||
"ics-button", | ||
{ attrs: { type: "primary" }, on: { click: _vm.handleConfirm } }, | ||
[_vm._v("确 定")] | ||
) | ||
], | ||
1 | ||
) | ||
], | ||
1 | ||
) | ||
}; | ||
var __vue_staticRenderFns__ = []; | ||
__vue_render__._withStripped = true; | ||
/* style */ | ||
const __vue_inject_styles__ = function (inject) { | ||
if (!inject) return | ||
inject("data-v-b8fb675e_0", { source: "[data-v-b8fb675e] .el-radio-group {\n width: 100%;\n}\n[data-v-b8fb675e] .el-radio {\n display: block;\n margin: 10px 0;\n width: 100%;\n}\n[data-v-b8fb675e] .el-radio.is-bordered + .el-radio.is-bordered {\n margin-left: 0px;\n}\n[data-v-b8fb675e] .el-radio .chs-name {\n color: #182140;\n}\n[data-v-b8fb675e] .el-radio .chs-kind {\n float: right;\n color: rgba(24, 33, 64, 0.7);\n}\n\n/*# sourceMappingURL=ChsTypeDialog.vue.map */", map: {"version":3,"sources":["D:\\Work\\Src\\V7\\Program\\接口管理\\js\\ics-imedx-intf-chs-js-sdk\\src\\components\\chs-type-dialog\\ChsTypeDialog.vue","ChsTypeDialog.vue"],"names":[],"mappings":"AA+EA;EACA,WAAA;AC9EA;ADgFA;EACA,cAAA;EACA,cAAA;EACA,WAAA;AC7EA;AD8EA;EACA,gBAAA;AC5EA;AD8EA;EACA,cAAA;AC5EA;AD8EA;EACA,YAAA;EACA,4BAAA;AC5EA;;AAEA,4CAA4C","file":"ChsTypeDialog.vue","sourcesContent":["\r\n<template>\r\n <ics-dialog\r\n title=\"请选择医保类型\"\r\n :visible.sync=\"dialogVisible\"\r\n width=\"500px\"\r\n :before-close=\"handleClose\"\r\n >\r\n <ics-radio-group v-model=\"chsType\">\r\n <ics-radio\r\n v-for=\"item in chsTypeList\"\r\n :key=\"item.id\"\r\n :label=\"item.code\"\r\n card\r\n border\r\n >\r\n <span class=\"chs-name\">【{{ item.code || '' }}】{{ item.name }}</span>\r\n <span class=\"chs-kind\">{{ item.chsKindName }}</span></ics-radio\r\n >\r\n </ics-radio-group>\r\n <span slot=\"footer\" class=\"dialog-footer\">\r\n <ics-button @click=\"handleCancel\">取 消</ics-button>\r\n <ics-button type=\"primary\" @click=\"handleConfirm\">确 定</ics-button>\r\n </span>\r\n </ics-dialog>\r\n</template>\r\n<script>\r\nexport default {\r\n data() {\r\n return {\r\n dialogVisible: false,\r\n chsType: null,\r\n }\r\n },\r\n props: {\r\n resolve: {\r\n type: Function,\r\n required: true,\r\n },\r\n reject: {\r\n type: Function,\r\n required: true,\r\n },\r\n chsTypeList: {\r\n type: Object,\r\n required: true,\r\n },\r\n },\r\n mounted() {\r\n this.dialogVisible = true\r\n // 默认第一个\r\n if (this.chsTypeList?.length > 0) {\r\n this.chsType = this.chsTypeList[0].code\r\n }\r\n },\r\n methods: {\r\n handleClose(done) {\r\n this.dialogVisible = false\r\n done()\r\n this.reject('用户关闭')\r\n },\r\n handleCancel() {\r\n this.dialogVisible = false\r\n this.reject('用户取消')\r\n },\r\n handleConfirm() {\r\n if (this.chsType) {\r\n this.dialogVisible = false\r\n this.resolve(this?.chsType)\r\n } else {\r\n this.$toast({\r\n message: '请选择医保类型!',\r\n })\r\n }\r\n },\r\n },\r\n}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n::v-deep .el-radio-group {\r\n width: 100%;\r\n}\r\n::v-deep .el-radio {\r\n display: block;\r\n margin: 10px 0;\r\n width: 100%;\r\n &.is-bordered + .el-radio.is-bordered {\r\n margin-left: 0px;\r\n }\r\n .chs-name {\r\n color: #182140;\r\n }\r\n .chs-kind {\r\n float: right;\r\n color: rgba(24, 33, 64, 0.7);\r\n }\r\n}\r\n</style>\r\n","::v-deep .el-radio-group {\n width: 100%;\n}\n\n::v-deep .el-radio {\n display: block;\n margin: 10px 0;\n width: 100%;\n}\n::v-deep .el-radio.is-bordered + .el-radio.is-bordered {\n margin-left: 0px;\n}\n::v-deep .el-radio .chs-name {\n color: #182140;\n}\n::v-deep .el-radio .chs-kind {\n float: right;\n color: rgba(24, 33, 64, 0.7);\n}\n\n/*# sourceMappingURL=ChsTypeDialog.vue.map */"]}, media: undefined }); | ||
}; | ||
/** | ||
* 医保读卡接口 | ||
* @returns 读卡函数 | ||
/* scoped */ | ||
const __vue_scope_id__ = "data-v-b8fb675e"; | ||
/* module identifier */ | ||
const __vue_module_identifier__ = undefined; | ||
/* functional template */ | ||
const __vue_is_functional_template__ = false; | ||
/* style inject SSR */ | ||
/* style inject shadow dom */ | ||
const __vue_component__ = /*#__PURE__*/normalizeComponent( | ||
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, | ||
__vue_inject_styles__, | ||
__vue_script__, | ||
__vue_scope_id__, | ||
__vue_is_functional_template__, | ||
__vue_module_identifier__, | ||
false, | ||
createInjector, | ||
undefined, | ||
undefined | ||
); | ||
/** | ||
* 弹出医保类型对话框 | ||
*/ | ||
function showChsTypeDialog(chsTypeList) { | ||
return new Promise(function (resolve, reject) { | ||
var chsTypeDialog = Vue__default["default"].extend(__vue_component__); | ||
// 创建一个Vue实例 | ||
new chsTypeDialog({ | ||
propsData: { resolve: resolve, reject: reject, chsTypeList: chsTypeList } | ||
}).$mount(); | ||
}); | ||
} | ||
var IcsImedxIntfChsPlatformJsSdk = /** @class */ (function () { | ||
/** | ||
* 构造函数 | ||
*/ | ||
function IcsImedxIntfChsPlatformJsSdk() { | ||
} | ||
IcsImedxIntfChsPlatformJsSdk.use = function (_a) { | ||
var request = _a.request; | ||
this.Request = request; | ||
}; | ||
/** | ||
* 医保初始化接口 | ||
* @param param 医保初始化入参 | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Init = function (_a) { | ||
var visitId = _a.visitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Init, { | ||
visitId: visitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保读卡接口 | ||
* @param param 医保读卡入参 | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.ReadCard = function (_a) { | ||
var visitId = _a.visitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var res, chsTypeId; | ||
return __generator(this, function (_b) { | ||
switch (_b.label) { | ||
case 0: return [4 /*yield*/, IcsImedxIntfChsPlatformJsSdk.Request({ | ||
url: 'chs-basic/chs-type/list/by/status', | ||
method: 'post', | ||
data: { status: 1 } | ||
})]; | ||
case 1: | ||
res = _b.sent(); | ||
return [4 /*yield*/, showChsTypeDialog(res.data)]; | ||
case 2: | ||
chsTypeId = _b.sent(); | ||
return [2 /*return*/, icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.ReadCard, { | ||
visitId: visitId, | ||
chsTypeId: chsTypeId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
})]; | ||
} | ||
}); | ||
}); | ||
}; | ||
/** | ||
* 医保登记接口 | ||
* @param param 医保读卡入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Register = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Register, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保登记修改接口 | ||
* @param param 医保登记修改入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.RegisterUpdate = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.RegisterUpdate, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保登记撤销接口 | ||
* @param param 医保登记撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.RegisterCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.RegisterCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保费用上传接口 | ||
* @param param 医保费用上传入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.FeeTransfer = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.FeeTransfer, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保费用上传撤销接口 | ||
* @param param 医保费用上传撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.FeeTransferCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.FeeTransferCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保预结算接口 | ||
* @param param 医保预结算入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.PreSettle = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.PreSettle, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保预结算撤销接口 | ||
* @param param 医保预结算撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.PreSettleCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.PreSettleCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保结算接口 | ||
* @param param 医保结算入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Settle = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Settle, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保结算撤销接口 | ||
* @param param 医保结算撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.SettleCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.SettleCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保出院登记接口 | ||
* @param param 出院登记入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.LeaveRegister = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.LeaveRegister, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保出院登记撤销接口 | ||
* @param param 出院登记撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.LeaveRegisterCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.LeaveRegisterCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保目录数据下载接口 | ||
* @param param 医保录数据下载入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.businessCode 交易码 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.DataProcess = function (_a) { | ||
var chsTypeId = _a.chsTypeId, businessCode = _a.businessCode; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.DataProcess, { | ||
chsTypeId: chsTypeId, | ||
businessCode: businessCode | ||
}); | ||
}; | ||
/** | ||
* 医保打印接口 | ||
* @param param 医保打印入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 2601 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.ReadCard = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.ReadCard, param); | ||
}; | ||
/** | ||
* 医保登记接口 | ||
* @returns 登记函数 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Register = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Register, param); | ||
}; | ||
/** | ||
* 医保登记修改接口 | ||
* @returns 登记修改函数 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.RegisterUpdate = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.RegisterUpdate, param); | ||
}; | ||
/** | ||
* 医保登记撤销接口 | ||
* @returns 登记撤销函数 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.RegisterCancel = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.RegisterCancel, param); | ||
}; | ||
/** | ||
* 医保费用上传接口 | ||
* @returns 费用上传函数 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.FeeTransfer = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.FeeTransfer, param); | ||
}; | ||
/** | ||
* 医保费用上传撤销接口 | ||
* @returns 费用上传撤销函数 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.FeeTransferCancel = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.FeeTransferCancel, param); | ||
}; | ||
/** | ||
* 医保预结算接口 | ||
* @returns 预结算函数 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.PreSettle = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.PreSettle, param); | ||
}; | ||
/** | ||
* 医保预结算撤销接口 | ||
* @returns 预结算撤销函数 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.PreSettleCancel = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.PreSettleCancel, param); | ||
}; | ||
/** | ||
* 医保结算接口 | ||
* @returns 结算函数 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Settle = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.Settle, param); | ||
}; | ||
/** | ||
* 医保结算撤销接口 | ||
* @returns 结算撤销函数 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.SettleCancel = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.SettleCancel, param); | ||
}; | ||
/** | ||
* 医保出院登记接口 | ||
* @returns 出院登记函数 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.LeaveRegister = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.LeaveRegister, param); | ||
}; | ||
/** | ||
* 医保出院登记撤销接口 | ||
* @returns 出院登记撤销 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.LeaveRegisterCancel = function (param) { | ||
return IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.LeaveRegisterCancel, param); | ||
}; | ||
return IcsImedxIntfChsPlatformJsSdk; | ||
}()); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Report = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag; | ||
return icsImedxChromelyPluginIntfPlatform.IntfPlatform.bussiness(constants.CHS_INTERFACE_CORE, constants.SettleReportPrint, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag | ||
}); | ||
}; | ||
return IcsImedxIntfChsPlatformJsSdk; | ||
}()); | ||
return IcsImedxIntfChsPlatformJsSdk; | ||
return IcsImedxIntfChsPlatformJsSdk; | ||
}))); | ||
//# sourceMappingURL=ics-imedx-intf-chs-js-sdk.umd.js.map | ||
})); | ||
//# sourceMappingURL=ics-imedx-Intf-chs-js-sdk.umd.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = { | ||
CHS_INTERFACE_CORE: 'ChsInterfaceCore', | ||
CHS_INTERFACE_CORE: 'Interface.CHS.Core', | ||
Init: '2000', | ||
@@ -17,4 +17,6 @@ ReadCard: '2100', | ||
LeaveRegister: '2601', | ||
LeaveRegisterCancel: '2650' | ||
LeaveRegisterCancel: '2650', | ||
DataProcess: '2701', | ||
SettleReportPrint: '2601' | ||
}; | ||
//# sourceMappingURL=constants.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
// @ts-ignore | ||
var ics_imedx_chromely_plugin_intf_platform_1 = require("@imedx/ics-imedx-chromely-plugin-intf-platform"); | ||
var constants_1 = require("./constants"); | ||
var chs_type_dialog_1 = require("./components/chs-type-dialog"); | ||
var IcsImedxIntfChsPlatformJsSdk = /** @class */ (function () { | ||
/** | ||
* | ||
* @param mode 参数 | ||
* 构造函数 | ||
*/ | ||
function IcsImedxIntfChsPlatformJsSdk(mode) { | ||
this._mode = mode; | ||
function IcsImedxIntfChsPlatformJsSdk() { | ||
} | ||
IcsImedxIntfChsPlatformJsSdk.use = function (_a) { | ||
var request = _a.request; | ||
this.Request = request; | ||
}; | ||
/** | ||
* 医保接口初始化 | ||
* @returns 初始化函数 | ||
* 医保初始化接口 | ||
* @param param 医保初始化入参 | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Init = function (param) { | ||
return ics_imedx_chromely_plugin_intf_platform_1.default.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.Init, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Init = function (_a) { | ||
var visitId = _a.visitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return ics_imedx_chromely_plugin_intf_platform_1.IntfPlatform.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.Init, { | ||
visitId: visitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保读卡接口 | ||
* @returns 读卡函数 | ||
* @param param 医保读卡入参 | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.ReadCard = function (param) { | ||
return ics_imedx_chromely_plugin_intf_platform_1.default.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.ReadCard, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.ReadCard = function (_a) { | ||
var visitId = _a.visitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var res, chsTypeId; | ||
return tslib_1.__generator(this, function (_b) { | ||
switch (_b.label) { | ||
case 0: return [4 /*yield*/, IcsImedxIntfChsPlatformJsSdk.Request({ | ||
url: 'chs-basic/chs-type/list/by/status', | ||
method: 'post', | ||
data: { status: 1 } | ||
})]; | ||
case 1: | ||
res = _b.sent(); | ||
return [4 /*yield*/, (0, chs_type_dialog_1.showChsTypeDialog)(res.data)]; | ||
case 2: | ||
chsTypeId = _b.sent(); | ||
return [2 /*return*/, ics_imedx_chromely_plugin_intf_platform_1.IntfPlatform.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.ReadCard, { | ||
visitId: visitId, | ||
chsTypeId: chsTypeId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
})]; | ||
} | ||
}); | ||
}); | ||
}; | ||
/** | ||
* 医保登记接口 | ||
* @returns 登记函数 | ||
* @param param 医保读卡入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Register = function (param) { | ||
return ics_imedx_chromely_plugin_intf_platform_1.default.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.Register, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Register = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return ics_imedx_chromely_plugin_intf_platform_1.IntfPlatform.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.Register, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保登记修改接口 | ||
* @returns 登记修改函数 | ||
* @param param 医保登记修改入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.RegisterUpdate = function (param) { | ||
return ics_imedx_chromely_plugin_intf_platform_1.default.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.RegisterUpdate, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.RegisterUpdate = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return ics_imedx_chromely_plugin_intf_platform_1.IntfPlatform.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.RegisterUpdate, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保登记撤销接口 | ||
* @returns 登记撤销函数 | ||
* @param param 医保登记撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.RegisterCancel = function (param) { | ||
return ics_imedx_chromely_plugin_intf_platform_1.default.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.RegisterCancel, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.RegisterCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return ics_imedx_chromely_plugin_intf_platform_1.IntfPlatform.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.RegisterCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保费用上传接口 | ||
* @returns 费用上传函数 | ||
* @param param 医保费用上传入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.FeeTransfer = function (param) { | ||
return ics_imedx_chromely_plugin_intf_platform_1.default.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.FeeTransfer, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.FeeTransfer = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return ics_imedx_chromely_plugin_intf_platform_1.IntfPlatform.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.FeeTransfer, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保费用上传撤销接口 | ||
* @returns 费用上传撤销函数 | ||
* @param param 医保费用上传撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.FeeTransferCancel = function (param) { | ||
return ics_imedx_chromely_plugin_intf_platform_1.default.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.FeeTransferCancel, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.FeeTransferCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return ics_imedx_chromely_plugin_intf_platform_1.IntfPlatform.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.FeeTransferCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保预结算接口 | ||
* @returns 预结算函数 | ||
* @param param 医保预结算入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.PreSettle = function (param) { | ||
return ics_imedx_chromely_plugin_intf_platform_1.default.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.PreSettle, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.PreSettle = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return ics_imedx_chromely_plugin_intf_platform_1.IntfPlatform.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.PreSettle, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保预结算撤销接口 | ||
* @returns 预结算撤销函数 | ||
* @param param 医保预结算撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.PreSettleCancel = function (param) { | ||
return ics_imedx_chromely_plugin_intf_platform_1.default.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.PreSettleCancel, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.PreSettleCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return ics_imedx_chromely_plugin_intf_platform_1.IntfPlatform.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.PreSettleCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保结算接口 | ||
* @returns 结算函数 | ||
* @param param 医保结算入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Settle = function (param) { | ||
return ics_imedx_chromely_plugin_intf_platform_1.default.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.Settle, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Settle = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return ics_imedx_chromely_plugin_intf_platform_1.IntfPlatform.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.Settle, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保结算撤销接口 | ||
* @returns 结算撤销函数 | ||
* @param param 医保结算撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.SettleCancel = function (param) { | ||
return ics_imedx_chromely_plugin_intf_platform_1.default.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.SettleCancel, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.SettleCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode, chargeSettleId = _a.chargeSettleId; | ||
return ics_imedx_chromely_plugin_intf_platform_1.IntfPlatform.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.SettleCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode, | ||
chargeSettleId: chargeSettleId | ||
}); | ||
}; | ||
/** | ||
* 医保出院登记接口 | ||
* @returns 出院登记函数 | ||
* @param param 出院登记入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.LeaveRegister = function (param) { | ||
return ics_imedx_chromely_plugin_intf_platform_1.default.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.LeaveRegister, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.LeaveRegister = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return ics_imedx_chromely_plugin_intf_platform_1.IntfPlatform.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.LeaveRegister, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保出院登记撤销接口 | ||
* @returns 出院登记撤销 | ||
* @param param 出院登记撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.LeaveRegisterCancel = function (param) { | ||
return ics_imedx_chromely_plugin_intf_platform_1.default.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.LeaveRegisterCancel, param); | ||
IcsImedxIntfChsPlatformJsSdk.prototype.LeaveRegisterCancel = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag, serviceMode = _a.serviceMode; | ||
return ics_imedx_chromely_plugin_intf_platform_1.IntfPlatform.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.LeaveRegisterCancel, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag, | ||
serviceMode: serviceMode | ||
}); | ||
}; | ||
/** | ||
* 医保目录数据下载接口 | ||
* @param param 医保录数据下载入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.businessCode 交易码 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.DataProcess = function (_a) { | ||
var chsTypeId = _a.chsTypeId, businessCode = _a.businessCode; | ||
return ics_imedx_chromely_plugin_intf_platform_1.IntfPlatform.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.DataProcess, { | ||
chsTypeId: chsTypeId, | ||
businessCode: businessCode | ||
}); | ||
}; | ||
/** | ||
* 医保打印接口 | ||
* @param param 医保打印入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 2601 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
*/ | ||
IcsImedxIntfChsPlatformJsSdk.prototype.Report = function (_a) { | ||
var chsTypeId = _a.chsTypeId, visitId = _a.visitId, chsVisitId = _a.chsVisitId, businessCode = _a.businessCode, oPFlag = _a.oPFlag; | ||
return ics_imedx_chromely_plugin_intf_platform_1.IntfPlatform.bussiness(constants_1.default.CHS_INTERFACE_CORE, constants_1.default.SettleReportPrint, { | ||
chsTypeId: chsTypeId, | ||
visitId: visitId, | ||
chsVisitId: chsVisitId, | ||
businessCode: businessCode, | ||
oPFlag: oPFlag | ||
}); | ||
}; | ||
return IcsImedxIntfChsPlatformJsSdk; | ||
}()); | ||
exports.default = IcsImedxIntfChsPlatformJsSdk; | ||
//# sourceMappingURL=ics-imedx-intf-chs-js-sdk.js.map | ||
//# sourceMappingURL=ics-imedx-Intf-chs-js-sdk.js.map |
@@ -16,3 +16,5 @@ declare const _default: { | ||
LeaveRegisterCancel: string; | ||
DataProcess: string; | ||
SettleReportPrint: string; | ||
}; | ||
export default _default; |
export default class IcsImedxIntfChsPlatformJsSdk { | ||
private readonly _mode; | ||
/** | ||
* | ||
* @param mode 参数 | ||
* 传过来的axios实例 | ||
*/ | ||
constructor(mode: string); | ||
private static Request; | ||
static use({ request }: { | ||
request: any; | ||
}): void; | ||
/** | ||
* 医保接口初始化 | ||
* @returns 初始化函数 | ||
* 构造函数 | ||
*/ | ||
Init(param: string): Promise<any>; | ||
constructor(); | ||
/** | ||
* 医保初始化接口 | ||
* @param param 医保初始化入参 | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
Init({ visitId, businessCode, oPFlag, serviceMode }: { | ||
visitId: string; | ||
businessCode: string; | ||
oPFlag: string; | ||
serviceMode: string; | ||
}): Promise<any>; | ||
/** | ||
* 医保读卡接口 | ||
* @returns 读卡函数 | ||
* @param param 医保读卡入参 | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
ReadCard(param: string): Promise<any>; | ||
ReadCard({ visitId, businessCode, oPFlag, serviceMode }: { | ||
visitId: string; | ||
businessCode: string; | ||
oPFlag: string; | ||
serviceMode: string; | ||
}): Promise<any>; | ||
/** | ||
* 医保登记接口 | ||
* @returns 登记函数 | ||
* @param param 医保读卡入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
Register(param: string): Promise<any>; | ||
Register({ chsTypeId, visitId, businessCode, oPFlag, serviceMode }: { | ||
chsTypeId: string; | ||
visitId: string; | ||
businessCode: string; | ||
oPFlag: string; | ||
serviceMode: string; | ||
}): Promise<any>; | ||
/** | ||
* 医保登记修改接口 | ||
* @returns 登记修改函数 | ||
* @param param 医保登记修改入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
RegisterUpdate(param: string): Promise<any>; | ||
RegisterUpdate({ chsTypeId, visitId, chsVisitId, businessCode, oPFlag, serviceMode }: { | ||
chsTypeId: string; | ||
visitId: string; | ||
chsVisitId: string; | ||
businessCode: string; | ||
oPFlag: string; | ||
serviceMode: string; | ||
}): Promise<any>; | ||
/** | ||
* 医保登记撤销接口 | ||
* @returns 登记撤销函数 | ||
* @param param 医保登记撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
RegisterCancel(param: string): Promise<any>; | ||
RegisterCancel({ chsTypeId, visitId, chsVisitId, businessCode, oPFlag, serviceMode }: { | ||
chsTypeId: string; | ||
visitId: string; | ||
chsVisitId: string; | ||
businessCode: string; | ||
oPFlag: string; | ||
serviceMode: string; | ||
}): Promise<any>; | ||
/** | ||
* 医保费用上传接口 | ||
* @returns 费用上传函数 | ||
* @param param 医保费用上传入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
FeeTransfer(param: string): Promise<any>; | ||
FeeTransfer({ chsTypeId, visitId, chsVisitId, businessCode, oPFlag, serviceMode, chargeSettleId }: { | ||
chsTypeId: string; | ||
visitId: string; | ||
chsVisitId: string; | ||
businessCode: string; | ||
oPFlag: string; | ||
serviceMode: string; | ||
chargeSettleId: string; | ||
}): Promise<any>; | ||
/** | ||
* 医保费用上传撤销接口 | ||
* @returns 费用上传撤销函数 | ||
* @param param 医保费用上传撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
FeeTransferCancel(param: string): Promise<any>; | ||
FeeTransferCancel({ chsTypeId, visitId, chsVisitId, businessCode, oPFlag, serviceMode, chargeSettleId }: { | ||
chsTypeId: string; | ||
visitId: string; | ||
chsVisitId: string; | ||
businessCode: string; | ||
oPFlag: string; | ||
serviceMode: string; | ||
chargeSettleId: string; | ||
}): Promise<any>; | ||
/** | ||
* 医保预结算接口 | ||
* @returns 预结算函数 | ||
* @param param 医保预结算入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
PreSettle(param: string): Promise<any>; | ||
PreSettle({ chsTypeId, visitId, chsVisitId, businessCode, oPFlag, serviceMode, chargeSettleId }: { | ||
chsTypeId: string; | ||
visitId: string; | ||
chsVisitId: string; | ||
businessCode: string; | ||
oPFlag: string; | ||
serviceMode: string; | ||
chargeSettleId: string; | ||
}): Promise<any>; | ||
/** | ||
* 医保预结算撤销接口 | ||
* @returns 预结算撤销函数 | ||
* @param param 医保预结算撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
PreSettleCancel(param: string): Promise<any>; | ||
PreSettleCancel({ chsTypeId, visitId, chsVisitId, businessCode, oPFlag, serviceMode, chargeSettleId }: { | ||
chsTypeId: string; | ||
visitId: string; | ||
chsVisitId: string; | ||
businessCode: string; | ||
oPFlag: string; | ||
serviceMode: string; | ||
chargeSettleId: string; | ||
}): Promise<any>; | ||
/** | ||
* 医保结算接口 | ||
* @returns 结算函数 | ||
* @param param 医保结算入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
Settle(param: string): Promise<any>; | ||
Settle({ chsTypeId, visitId, chsVisitId, businessCode, oPFlag, serviceMode, chargeSettleId }: { | ||
chsTypeId: string; | ||
visitId: string; | ||
chsVisitId: string; | ||
businessCode: string; | ||
oPFlag: string; | ||
serviceMode: string; | ||
chargeSettleId: string; | ||
}): Promise<any>; | ||
/** | ||
* 医保结算撤销接口 | ||
* @returns 结算撤销函数 | ||
* @param param 医保结算撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
* @param param.chargeSettleId his费用结算id | ||
*/ | ||
SettleCancel(param: string): Promise<any>; | ||
SettleCancel({ chsTypeId, visitId, chsVisitId, businessCode, oPFlag, serviceMode, chargeSettleId }: { | ||
chsTypeId: string; | ||
visitId: string; | ||
chsVisitId: string; | ||
businessCode: string; | ||
oPFlag: string; | ||
serviceMode: string; | ||
chargeSettleId: string; | ||
}): Promise<any>; | ||
/** | ||
* 医保出院登记接口 | ||
* @returns 出院登记函数 | ||
* @param param 出院登记入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
LeaveRegister(param: string): Promise<any>; | ||
LeaveRegister({ chsTypeId, visitId, chsVisitId, businessCode, oPFlag, serviceMode }: { | ||
chsTypeId: string; | ||
visitId: string; | ||
chsVisitId: string; | ||
businessCode: string; | ||
oPFlag: string; | ||
serviceMode: string; | ||
}): Promise<any>; | ||
/** | ||
* 医保出院登记撤销接口 | ||
* @returns 出院登记撤销 | ||
* @param param 出院登记撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
LeaveRegisterCancel(param: string): Promise<any>; | ||
LeaveRegisterCancel({ chsTypeId, visitId, chsVisitId, businessCode, oPFlag, serviceMode }: { | ||
chsTypeId: string; | ||
visitId: string; | ||
chsVisitId: string; | ||
businessCode: string; | ||
oPFlag: string; | ||
serviceMode: string; | ||
}): Promise<any>; | ||
/** | ||
* 医保目录数据下载接口 | ||
* @param param 医保录数据下载入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.businessCode 交易码 | ||
*/ | ||
DataProcess({ chsTypeId, businessCode }: { | ||
chsTypeId: string; | ||
businessCode: string; | ||
}): Promise<any>; | ||
/** | ||
* 医保打印接口 | ||
* @param param 医保打印入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsVisitId 医保就诊Id | ||
* @param param.businessCode 交易码 2601 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
*/ | ||
Report({ chsTypeId, visitId, chsVisitId, businessCode, oPFlag }: { | ||
chsTypeId: string; | ||
visitId: string; | ||
chsVisitId: string; | ||
businessCode: string; | ||
oPFlag: string; | ||
}): Promise<any>; | ||
} |
{ | ||
"name": "@imedx/ics-imedx-intf-chs-js-sdk", | ||
"version": "0.0.1", | ||
"description": "梁栋", | ||
"version": "0.0.2", | ||
"description": "两定医保接口js-sdk", | ||
"keywords": [], | ||
"main": "dist/ics-imedx-intf-chs-js-sdk.umd.js", | ||
"module": "dist/ics-imedx-intf-chs-js-sdk.es5.js", | ||
"typings": "dist/types/ics-imedx-intf-chs-js-sdk.d.ts", | ||
"main": "dist/ics-imedx-Intf-chs-js-sdk.umd.js", | ||
"module": "dist/ics-imedx-Intf-chs-js-sdk.es5.js", | ||
"typings": "dist/types/ics-imedx-Intf-chs-js-sdk.d.ts", | ||
"files": [ | ||
@@ -85,8 +85,9 @@ "dist" | ||
"prettier": "^1.14.3", | ||
"rollup": "^0.67.0", | ||
"rollup-plugin-commonjs": "^9.1.8", | ||
"rollup": "^2.28.2", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-json": "^3.1.0", | ||
"rollup-plugin-node-resolve": "^3.4.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
"rollup-plugin-typescript2": "^0.18.0", | ||
"rollup-plugin-typescript2": "^0.32.1", | ||
"rollup-plugin-vue": "^5.1.9", | ||
"ts-jest": "^23.10.2", | ||
@@ -97,6 +98,6 @@ "ts-node": "^7.0.1", | ||
"tslint-config-standard": "^8.0.1", | ||
"typescript": "^3.0.3" | ||
}, | ||
"dependencies": { | ||
"typescript": "^4.0.3", | ||
"vue": "^2.6.11", | ||
"vue-template-compiler": "^2.6.11" | ||
} | ||
} |
157
README.md
@@ -26,6 +26,155 @@ ### Usage | ||
```javascript | ||
// 测试返回Promise函数 | ||
testA(data: any): Promise<String> | ||
// 测试返回字符串函数 | ||
testB(data: any): String | ||
/** | ||
* 医保初始化接口 | ||
* @param param 医保初始化入参 | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
Init({ visitId, businessCode, oPFlag, serviceMode }: { visitId: string, businessCode: string, oPFlag: string, serviceMode: string }): Promise<any> | ||
/** | ||
* 医保读卡接口 | ||
* @param param 医保读卡入参 | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
ReadCard({ visitId, businessCode, oPFlag, serviceMode }: { visitId: string, businessCode: string, oPFlag: string, serviceMode: string }): Promise<any> | ||
/** | ||
* 医保登记接口 | ||
* @param param 医保读卡入参 | ||
* @param param.visitId 患者就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
Register({ visitId, businessCode, oPFlag, serviceMode }: { visitId: string, businessCode: string, oPFlag: string, serviceMode: string }): Promise < any > | ||
/** | ||
* 医保登记修改接口 | ||
* @param param 医保登记修改入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsvisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
RegisterUpdate({ chsTypeId, visitId, chsvisitId, businessCode, oPFlag, serviceMode }: { chsTypeId: string, visitId: string, chsvisitId: string, businessCode: string, oPFlag: string, serviceMode: string }): Promise < any > | ||
/** | ||
* 医保登记撤销接口 | ||
* @param param 医保登记撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsvisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
RegisterCancel({ chsTypeId, visitId, chsvisitId, businessCode, oPFlag, serviceMode }: { chsTypeId: string, visitId: string, chsvisitId: string, businessCode: string, oPFlag: string, serviceMode: string }): Promise < any > | ||
/** | ||
* 医保费用上传接口 | ||
* @param param 医保费用上传入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsvisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
FeeTransfer({ chsTypeId, visitId, chsvisitId, businessCode, oPFlag, serviceMode }: { chsTypeId: string, visitId: string, chsvisitId: string, businessCode: string, oPFlag: string, serviceMode: string }): Promise < any > | ||
/** | ||
* 医保费用上传撤销接口 | ||
* @param param 医保费用上传撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsvisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
FeeTransferCancel({ chsTypeId, visitId, chsvisitId, businessCode, oPFlag, serviceMode }: { chsTypeId: string, visitId: string, chsvisitId: string, businessCode: string, oPFlag: string, serviceMode: string }): Promise < any > | ||
/** | ||
* 医保预结算接口 | ||
* @param param 医保预结算入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsvisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
PreSettle({ chsTypeId, visitId, chsvisitId, businessCode, oPFlag, serviceMode }: { chsTypeId: string, visitId: string, chsvisitId: string, businessCode: string, oPFlag: string, serviceMode: string }): Promise < any > | ||
/** | ||
* 医保预结算撤销接口 | ||
* @param param 医保预结算撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsvisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
PreSettleCancel({ chsTypeId, visitId, chsvisitId, businessCode, oPFlag, serviceMode }: { chsTypeId: string, visitId: string, chsvisitId: string, businessCode: string, oPFlag: string, serviceMode: string }): Promise < any > | ||
/** | ||
* 医保结算接口 | ||
* @param param 医保结算入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsvisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
Settle( | ||
{ chsTypeId, visitId, chsvisitId, businessCode, oPFlag, serviceMode }: { chsTypeId: string, visitId: string, chsvisitId: string, businessCode: string, oPFlag: string, serviceMode: string }): Promise < any > | ||
/** | ||
* 医保结算撤销接口 | ||
* @param param 医保结算撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsvisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
SettleCancel( | ||
{ chsTypeId, visitId, chsvisitId, businessCode, oPFlag, serviceMode }: { chsTypeId: string, visitId: string, chsvisitId: string, businessCode: string, oPFlag: string, serviceMode: string }): Promise < any > | ||
/** | ||
* 医保出院登记接口 | ||
* @param param 出院登记入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsvisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
LeaveRegister( | ||
{ chsTypeId, visitId, chsvisitId, businessCode, oPFlag, serviceMode }: { chsTypeId: string, visitId: string, chsvisitId: string, businessCode: string, oPFlag: string, serviceMode: string } | ||
): Promise < any > | ||
/** | ||
* 医保出院登记撤销接口 | ||
* @param param 出院登记撤销入参 | ||
* @param param.chsTypeId 医保类型Id | ||
* @param param.visitId 患者就诊Id | ||
* @param param.chsvisitId 医保就诊Id | ||
* @param param.businessCode 交易码 | ||
* @param param.oPFlag 门诊住院 1-门诊 2-住院 | ||
* @param param.serviceMode 1-静默模式(自助/静默) 0-其他 | ||
*/ | ||
LeaveRegisterCancel( | ||
{ chsTypeId, visitId, chsvisitId, businessCode, oPFlag, serviceMode }: { chsTypeId: string, visitId: string, chsvisitId: string, businessCode: string, oPFlag: string, serviceMode: string } | ||
): Promise < any > | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
177456
2236
180
24
3
1