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

@cnhis-frontend/cdss

Package Overview
Dependencies
Maintainers
0
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-release.0
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-60%
Maintainers
0
Weekly downloads
 
Created
Source

cdss-js-sdk

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

cdss各个厂商对应关系

huimei(HM): 惠美科技 baidu(BAIDU): 百度灵医智惠科技 aybt(AYBT): 爱医博通(帮医) dashu(DASHU): 瑞慈大数

目前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, obj) => {
      // 在以下结构中:enable判断cdss后端是否开启了服务,tag用来判断厂商标识:
      // {"appId": "1347067098022678529","appSecret": "...","enable": true,"tag": "DASHU","sdkUrl": "https://cdss.rich-hosp.com/doctor","hospitalGuid": "2","hospitalName": "南通瑞慈医院","dashuCdss": {},"isListen": true}
      console.log('返回厂商的配置信息>>>>>', obj);
      // 第二步
      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代码分支是单独的功能,不可与其他分支合并。

仓库地址

  • 内网npm环境: "http://120.25.59.85:14873"
  • npm环境: "https://registry.npmjs.org/"

FAQs

Package last updated on 17 Jul 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