Socket
Socket
Sign inDemoInstall

@cnhis-frontend/cdss

Package Overview
Dependencies
Maintainers
5
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cnhis-frontend/cdss

将各个厂商的cdss服务聚合在一起,向业务端提供统一的接口进行调用


Version published
Weekly downloads
1
decreased by-50%
Maintainers
5
Weekly downloads
 
Created
Source

cdss-js-sdk

cdss决策分析技术方案,cdss-js-sdk属于前端打包部分的sdk。

cdss各个厂商对应关系

huimei(HM): 惠美科技 baidu(BAIDU): 百度灵医智惠科技

目前cdss所有的api集合

Cdss.factoryConfig:获取配置信息
Cdss.initAuth:初始化患者信息
Cdss.importData:上传业务数据
Cdss.listenEvent:监听事件数据回显

Cdss.hide:隐藏cdss弹窗
Cdss.show:展示cdss弹窗
Cdss.remove:移除cdss弹窗

如何使用

import Cdss from '@cnhis-frontend/cdss';

async function initWindow() {
  // 第一步
  const initData = await Cdss.factoryConfig(
    {
      // 可选参数
      baseUrl: '...',
      accessToken: '...',
    },
    async (isEnable) => {
      // 第二步
      await Cdss.initAuth({
        ...
      })
      // 第三步
      await Cdss.importData({
        ...
      })
      // 第四步
      Cdss.listenEvent((data) => {
        ...
      })
    }
  )
}

initWindow();

Cdss.hide();
Cdss.show();
Cdss.remove();

各个版本使用

1.0.1:兼容惠美和百度cdss的第一版
1.0.2:增加患者id与回显数据关联,方便AIGC团队跑数据

版本发布

# 版本同步
npm version 1.0.2-beta.12

# 打包
yarn run build

# 上传到npm(发布release版本时不需要--tag=beta)
npm publish --tag=beta --access publish

备注

cdss代码分支是单独的功能,不可与其他分支合并。

FAQs

Package last updated on 14 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc