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

@cnhis-frontend/cdss

v1.0.2-release.2

Published

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

Downloads

41

Readme

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/"