Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cnhis-frontend/cdss

Package Overview
Dependencies
Maintainers
5
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cnhis-frontend/cdss

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

  • 1.0.2-beta.10
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-60%
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团队跑数据

备注

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

FAQs

Package last updated on 15 Nov 2023

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