@aehrc/smart-forms-renderer

中文文档
1.5.0发布于 2026/09/10Apache-2.0TypeScriptCommonJS构建来源已验证近 30 天下载 9656

FHIR Structured Data Captured (SDC) rendering engine for Smart Forms

原始使用文档

Smart Forms Renderer

A React-based library that contains the Questionnaire renderer used in the Smart Forms app. It acts as a reference implementation for the SDC Form Filler.

Check out the documentation 📚

Check out Questionnaire examples in Storybook 📚

Entry points

ImportContains
@aehrc/smart-forms-rendererThe full renderer, including the Material UI component tree.
@aehrc/smart-forms-renderer/engineThe form engine only: the stores, buildForm, response traversal, repopulation and observation-based extraction. No UI package loads at runtime, so it suits a host that renders the form itself.

/engine is a strict subset of the root barrel, so nothing is public by virtue of appearing there alone. Both are bundler targets: the package ships ES modules with extensionless specifiers and does not set "type": "module", so it is not loadable by Node directly.

Deep imports of internal lib/... paths still resolve, but they are a compatibility surface rather than API. Prefer the root barrel or /engine.

View the changelog here.

We recently updated to v1.0.0 which includes some breaking changes. Please refer to the migration guide for more information.


Copyright © 2025, Commonwealth Scientific and Industrial Research Organisation (CSIRO) ABN 41 687 119 230. All rights reserved.

版本与发布记录

@aehrc/smart-forms-renderer 共发布 260 个版本,首次发布于 2023/08/30;过去 12 个月发布了 7 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.5.0latest2026/09/101 个月前
1.4.02026/07/034 个月前
1.3.12026/03/257 个月前
1.3.02026/03/117 个月前
1.2.142026/03/058 个月前
1.2.132026/02/128 个月前

其他发布通道:dev → 1.0.0-alpha.48.dev2,alpha → 1.0.0-alpha.110.dev1。

关于 @aehrc/smart-forms-renderer 的常见问题

@aehrc/smart-forms-renderer 是什么?

FHIR Structured Data Captured (SDC) rendering engine for Smart Forms

如何安装 @aehrc/smart-forms-renderer?

在项目目录运行 npm install @aehrc/smart-forms-renderer,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(^18.0.0 || ^19.0.0)、react-dom(^18.0.0 || ^19.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@aehrc/smart-forms-renderer 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@aehrc/smart-forms-renderer 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@aehrc/smart-forms-renderer 可以商用吗?

@aehrc/smart-forms-renderer 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@aehrc/smart-forms-renderer 的下载量有多少?

根据 npm 官方下载统计,@aehrc/smart-forms-renderer 在 2026/10/05 – 2026/11/03 这 30 天内被下载 9,656 次,日均约 322 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@aehrc/smart-forms-renderer 还在维护吗?

最新版本 1.5.0 发布于 2026/09/10(1 个月前);至今共发布 260 个版本,其中过去 12 个月发布了 7 个;首次发布于 2023/08/30。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。