npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@imedx/ics-imedx-intf-chs-serve-js-sdk

v0.0.1-beta.4

Published

医保接口SDK

Downloads

25

Readme

Usage

npm i @imedx/[email protected]

feature

0.0.1-beta.4   1.IMedx前端缓存信息传入  2.个人参保日期展示空
0.0.1-beta.3   1.code=-2 保持统一   2.businessCode、opFlag转为数字
0.0.1-beta.2   1.读卡抛出异常(用户取消:-2,其他:-1) 2.新增接口入参 orgId  3.参保地绑定值code
0.0.1-beta.1  增加查证接口、电子医保凭证测试通过
0.0.1 初始提供

Features

Importing library

You can import the generated bundle to use the whole library generated by this starter:

import Chs from '@imedx/ics-imedx-intf-chs-serve-js-sdk'
import IMedx from '@imedx/ics-imedx-core'
Chs.use(IcsRequest, IMedx) // IcsRequest传入  IMedx前端缓存信息传入

Chs

  /**
  * 医保读卡接口
  * @param param 医保读卡入参
  * @param param.visitId 患者就诊Id
  * @param param.businessCode 交易码
  * @param param.opFlag 门诊住院 1-门诊 4-住院
  * @param param.serviceMode 1-静默模式(自助/静默) 0-其他
  * @param param.readCardType  读卡方式 01电子凭证 02身份证 03社保卡 04刷脸
  * @param param.scene  使用刷卡组件时场景值按照1-16取值
  */
 ReadCard({ visitId, businessCode, opFlag, serviceMode, readCardType, scene}: 
 { visitId: string, businessCode: string, opFlag: string, serviceMode: string, readCardType: string, scene: number}): Promise<any>

  /**
   * 医保登记接口
   * @param param 医保读卡入参
   * @param param.chsTypeId 医保类型Id
   * @param param.chsPersonalNo 医保个人编号
   * @param param.visitId 患者就诊Id
   * @param param.businessCode 交易码
   * @param param.opFlag 门诊住院 1-门诊 2-住院
   * @param param.serviceMode 1-静默模式(自助/静默) 0-其他
   * @param param.FeeRegion 1-挂号 0-其它
   */
   Register({ chsTypeId, visitId, chsPersonalNo, businessCode, opFlag, serviceMode, FeeRegion}: 
   { chsTypeId: string, visitId: string, chsPersonalNo: string, businessCode: string, opFlag: string, serviceMode: string, FeeRegion: number}): 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-其他
   * @param param.FeeRegion 1-挂号 0-其它
   */
   RegisterCancel({ chsTypeId, visitId, chsVisitId, businessCode, opFlag, serviceMode, FeeRegion}: 
   { chsTypeId: string, visitId: string, chsVisitId: string, businessCode: string, opFlag: string, serviceMode: string, FeeRegion: number}): 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-其他
   * @param param.chargeSettleId his费用结算id
   * @param param.FeeRegion 1-挂号 0-其它
   */
 FeeTransfer({ chsTypeId, visitId, chsVisitId, businessCode, opFlag, serviceMode, chargeSettleId, FeeRegion}:
 { chsTypeId: string, visitId: string, chsVisitId: string, businessCode: string, opFlag: string, serviceMode: string, chargeSettleId: string, FeeRegion: number}): 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-其他
   * @param param.chargeSettleId his费用结算id
   * @param param.FeeRegion 1-挂号 0-其它
   */
 FeeTransferCancel({ chsTypeId, visitId, chsVisitId, businessCode, opFlag, serviceMode, chargeSettleId, FeeRegion}: 
 { chsTypeId: string, visitId: string, chsVisitId: string, businessCode: string, opFlag: string, serviceMode: string, chargeSettleId: string, FeeRegion: number}): 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-其他
   * @param param.chargeSettleId his费用结算id
   * @param param.FeeRegion 1-挂号 0-其它
   */
  PreSettle({ chsTypeId, visitId, chsVisitId, businessCode, opFlag, serviceMode, chargeSettleId, FeeRegion}:
  { chsTypeId: string, visitId: string, chsVisitId: string, businessCode: string, opFlag: string, serviceMode: string, chargeSettleId: string, FeeRegion: number}): Promise<any>

    /**
   * 医保预结算撤销接口--(假接口 返回true)
   * @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
   * @param param.FeeRegion 1-挂号 0-其它
   */
 PreSettleCancel({ chsTypeId, visitId, chsVisitId, businessCode, opFlag, serviceMode, chargeSettleId, FeeRegion}: 
 { chsTypeId: string, visitId: string, chsVisitId: string, businessCode: string, opFlag: string, serviceMode: string, chargeSettleId: string, FeeRegion: number}): 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-其他
   * @param param.chargeSettleId his费用结算id
   * @param param.FeeRegion 1-挂号 0-其它
   */
  Settle({ chsTypeId, visitId, chsVisitId, businessCode, opFlag, serviceMode, chargeSettleId, FeeRegion}: 
  { chsTypeId: string, visitId: string, chsVisitId: string, businessCode: string, opFlag: string, serviceMode: string, chargeSettleId: string, FeeRegion: number}): Promise<any>

 /**
   * 医保结算撤销接口
   * @param param 医保结算撤销入参
   * @param param.chsTypeId 医保类型Id
   * @param param.visitId 患者就诊Id
   * @param param.businessCode 交易码
   * @param param.opFlag 门诊住院 1-门诊 2-住院
   * @param param.serviceMode 1-静默模式(自助/静默) 0-其他
   * @param param.chargeSettleId his费用结算id
   * @param param.FeeRegion 1-挂号 0-其它
   */
 SettleCancel({ chsTypeId, visitId, businessCode, opFlag, serviceMode, chargeSettleId, FeeRegion}: 
 { chsTypeId: string, visitId: string, businessCode: string, opFlag: string, serviceMode: string, chargeSettleId: string, FeeRegion: number}): Promise<any>

 /**
   * 医保结算撤销接口
   * @param param 医保结算撤销入参
   * @param param.chsTypeId 医保类型Id
   * @param param.visitId 患者就诊Id
   * @param param.businessCode 交易码
   * @param param.opFlag 门诊住院 1-门诊 2-住院
   * @param param.serviceMode 1-静默模式(自助/静默) 0-其他
   * @param param.chargeSettleId his费用结算id
   * @param param.FeeRegion 1-挂号 0-其它
   */
 PreSettleCancel({ chsTypeId, visitId, businessCode, opFlag, serviceMode, chargeSettleId, FeeRegion}: 
 { chsTypeId: string, visitId: string, businessCode: string, opFlag: string, serviceMode: string, chargeSettleId: string, FeeRegion: number}): 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-其他
   * @param param.FeeRegion 1-挂号 0-其它
   */
 LeaveRegister({ chsTypeId, visitId, chsVisitId, businessCode, opFlag, serviceMode, FeeRegion}: 
 { chsTypeId: string, visitId: string, chsVisitId: string, businessCode: string, opFlag: string, serviceMode: string, FeeRegion: number}): 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-其他
   * @param param.FeeRegion 1-挂号 0-其它
   */
 LeaveRegisterCancel({ chsTypeId, visitId, chsVisitId, businessCode, opFlag, serviceMode, FeeRegion}: 
 { chsTypeId: string, visitId: string, chsVisitId: string, businessCode: string, opFlag: string, serviceMode: string, FeeRegion: number}): Promise<any>

  /**
   * 移动医保支付:预结算
   * @param param 预结算入参
   * @param param.idNo 患者身份证
   * @param param.patientId 患者唯一索引
   * @param param.patientName 患者姓名
   * @param param.visitId 患者就诊ID
   * @param param.chargeSettleId 医院订单号  每次交易唯一 调his挂号或缴费接口时需传入此参数(医保结算id)
   * @param param.payAuthNo 支付授权码
   * @param param.uldLatlnt 电子凭证线上渠道授权返回
   * @param param.total 总金额
   */
  MobilePreSettle({ idNo, patientId, patientName, visitId, chargeSettleId, payAuthNo, uldLatlnt, total}: 
  { idNo: string, patientId: string, patientName: string, visitId: string, chargeSettleId: string, payAuthNo: string, uldLatlnt: string, total: string}): Promise<any> 

  /**
   * 移动医保支付:结算
   * @param param 结算入参
   * @param param.payOrdId 支付订单号
   * @param param.channel WeChat:微信 Alipay:支付宝
   * @param param.payToken 支付token
   */
 MobileSettle({ payOrdId, channel, payToken}: 
 { payOrdId: string, channel: string, payToken: string}): Promise<any>

  /**
   * 结算信息查询
   * @param param 结算入参
   * @param param.chsTypeId 医保类型
   * @param param.visitId 就诊ID
   * @param param.chsVisitId 医保就诊ID
   * @param param.businessCode 交易码
   * @param param.chargeSettleId 结算单ID
   * @param param.FeeRegion 1-挂号 0-其它
   */
 SettleConfirm({ chsTypeId, visitId, chsVisitId, businessCode, chargeSettleId, FeeRegion}:
 { chsTypeId?: string, visitId?: string, chsVisitId: string, businessCode?: string, chargeSettleId: string, FeeRegion?: string}): Promise<any>