Terms of Service

English draft (attorney-review-package) · Pending attorney review · Not legal advice

# Terms of Service

> # ⚠️ DRAFT — Pending Attorney Review
>
> **This document is a draft and is NOT legal advice.** It must be reviewed and
> finalized by a licensed attorney before publication. Placeholders
> (`[to be completed]`) remain, and the interaction between these Terms and the
> License Agreement is **not yet settled by counsel**.
>
> **This draft was prepared by the Seller, not by an attorney.** It is written to
> be accurate about our current practices; it is not written to be a
> jurisdiction-specific, enforceable agreement. Only counsel can determine that.
>
> **Not yet published.** Related: [`./LICENSE.en.md`](./LICENSE.en.md),
> [`./DISCLAIMER.en.md`](./DISCLAIMER.en.md), [`./REFUND_POLICY.en.md`](./REFUND_POLICY.en.md),
> [`./PRIVACY_POLICY.en.md`](./PRIVACY_POLICY.en.md).

**Seller:** [Company / legal entity name — to be completed]
**Effective date:** [to be completed upon publication]
**Version:** Draft v0.1 · Last updated: 2026-10-02

---

## 1. What these Terms are, and how they relate to the License

These Terms govern your **use of the HIPAA-Ready SaaS Boilerplate** and your
**relationship with the Seller**. The **License Agreement**
([`./LICENSE.en.md`](./LICENSE.en.md)) grants you the right to use, modify, and deploy the source
code and sets out the intellectual property terms.

Both documents apply. **This is a known drafting issue:** the relationship
between the two — whether these Terms are a separate contract or a restatement
of part of the License, and which document controls in a conflict — has **not**
been determined by counsel and is raised as **Q5/Q9** in
[`./attorney-questions.md`](./attorney-questions.md).

Until counsel resolves this, treat both as binding and read them together.

---

## 2. ⚠️ No real PHI. Synthetic data only.

> **You must not submit real Protected Health Information (PHI), patient data,
> or any health information about an identifiable individual to this product in
> testing, development, demonstration, or evaluation.**

This is the single most important rule in this document.

**You must use synthetic or de-identified data only.** The Boilerplate is
designed to be run locally or in your own infrastructure precisely so that
testing never requires real patient data.

**Why this is absolute:** the Seller does not control your deployment's security
configuration, your access controls, your backups, or your subprocessor list.
We therefore cannot verify that real PHI in a test environment is protected —
and we could not see it if something went wrong.

**If you send us real PHI anyway** — in a support ticket, a screenshot, a log, a
demo request — we will:

1. Delete it as soon as practicable,
2. Ask you to stop, and
3. Decline to continue the support interaction.

We may also terminate the license under Section 12 for material breach.

> **Seller obligation:** the Seller likewise does not request, receive, store,
> process, or transmit PHI. See [`./DISCLAIMER.en.md`](./DISCLAIMER.en.md) §2.

---

## 3. The Seller is not a Business Associate

**The Seller is not a Business Associate under HIPAA.**

Because the Seller does not handle PHI, does not process PHI on your behalf,
and does not host PHI in your environment, the Seller is not a Business
Associate in your HIPAA compliance program. The Seller has **no obligation**
and, under the standard license, **will not** provide you with a Business
Associate Agreement (BAA).

**If your business requires a BAA, you must negotiate and execute it yourself**
with your Covered Entity, your cloud providers (such as AWS), and your other
subprocessors.

**You are responsible for:**

- Determining whether **you** are a Covered Entity or a Business Associate
- Executing all required BAAs
- All compliance obligations applicable to your deployment

---

## 4. HIPAA-ready foundation, not HIPAA compliance

The product is a **technical starting point**. It is **not**:

- A HIPAA compliance certification, attestation, or guarantee
- Legal, compliance, or audit services
- A hosting service or Business Associate service
- An Electronic Health Record (EHR) integration

A BAA being in force is **one necessary condition for compliance, not a
sufficient one.** Achieving compliance requires the complete set of
administrative, physical, and technical safeguards — plus your risk analysis,
policies, training, and incident response.

---

## 5. License and acceptable use

The License Agreement grants you a **non-exclusive, non-transferable,
non-sublicensable** right to use, modify, and deploy the Deliverables. You may
use them to build and offer your own SaaS product, subject to your own
compliance.

**You agree not to:**

- Submit real PHI to the product in any circumstance (§2)
- Use the product in a way that violates applicable law
- Remove or alter the disclaimers, license notices, or audit-log statements
  (see License §4.2)
- Represent that the **Seller** is "HIPAA certified" or is a Business Associate
- Redistribute the complete unmodified source package as a competing open-source
  alternative (see License §4.1)

> ⚠️ **Known ambiguity:** License §3.1 permits building and selling a competing
> SaaS product, while §4.1 prohibits redistribution "as a competing open-source
> alternative." Whether these conflict is unresolved — see **Q5** in
> [`./attorney-questions.md`](./attorney-questions.md). Until resolved, do not assume
> either reading is safe.

---

## 6. Your responsibilities

You are solely responsible for:

- **Your deployment and its security** — configuration, hardening, patching,
  monitoring, access control, backups, and incident response
- **Executing all required BAAs**, including the AWS BAA (see
  [`../../04_evidence/baa-signing-guide.md`](../../04_evidence/baa-signing-guide.md))
- **All regulatory compliance** arising from your use of the product
- **Your own privacy policy** to the individuals whose data you process
- **Reasonable security in how you store the source code and any credentials**

The product is provided **as a starting point**. **Default configuration is not
production-ready**; you must complete hardening before processing any real data.

## 7. Fees, subscriptions, and refunds

Tiers: **Foundation $499** and **Audit-Ready $1,499** are **one-time purchases**;
**Compliance Ops is $199/month** (pricing subject to the sales page at the time
of purchase).

**Refunds are governed by [`./REFUND_POLICY.en.md`](./REFUND_POLICY.en.md).** As a general matter, digital
products are non-refundable once delivered, and each commenced subscription
period is non-refundable.

> ⚠️ **Open issues for counsel:** whether **automatic revocation of repository
> access** on refund requires additional notice or a dispute-resolution step,
> whether a **cancellation grace period** should be offered, and whether
> **auto-renewal disclosure plus affirmative consent** is required at checkout
> under state auto-renewal laws (California and others). See **Q3**.

## 8. Third-party services

The product may reference or include example configurations for third parties
such as AWS, Stripe, and email providers. Those third parties operate under
their own terms. We do not control their policies, and their availability and
security are their responsibility.

Your use of any third-party service is between you and that provider.

## 9. Confidentiality

Non-public portions of the Deliverables, including unpublished source code and
internal documentation, are the Seller's confidential information. You must
reasonably protect them and must not disclose them to unrelated third parties,
except as required by law.

This obligation survives termination.

## 10. No warranty; limitation of liability

**The product is provided "AS IS" and "AS AVAILABLE."** To the maximum extent
permitted by law, the Seller disclaims all warranties, including merchantability,
fitness for a particular purpose, non-infringement, and freedom from defects.

The Seller's total aggregate liability is capped at the amounts you paid in the
**twelve (12) months** preceding the claim. Consequential damages are excluded.

> ⚠️ **Open issues for counsel:** whether a 12-month fee cap is adequate given
> the potential downstream cost of a compliance incident; whether the complete
> absence of **indemnification** increases risk rather than reducing it; and
> whether a **super-cap** for gross negligence would improve enforceability.
> See **Q4**.

## 11. Intellectual property

We retain all rights in the Deliverables. You retain rights to your own
modifications, configurations, and data. See License §7.

Third-party open-source components remain under their own licenses.

## 12. Termination

You may stop using the Deliverables at any time.

The Seller may terminate the license for **material breach**, including
submitting real PHI to us (§2), breaching the acceptable use restrictions
(§5), or removing required disclaimers.

Upon termination you must cease use and delete our confidential materials.
Whether a lawfully deployed instance must be taken offline immediately is
**[to be determined by counsel]**.

Refund consequences of termination are governed by [`./REFUND_POLICY.en.md`](./REFUND_POLICY.en.md).

## 13. Changes to these Terms

We may update these Terms. Material changes will be notified before taking
effect. **Orders already placed** are governed by the version in effect on the
purchase date, or by any more favorable version required by law.

## 14. Governing law

**[To be completed by counsel: governing law, forum, and whether disputes are
resolved by arbitration or court.]** See **Q10**.

## 15. Contact

**[Support email and legal notice address: zsl2006819@gmail.com]**

---

## 16. Assumptions requiring attorney validation

This draft was written by the Seller. Unverified assumptions that must be
confirmed before publication:

1. **Relationship to the License is unresolved** (§1) — separate contract vs.
   part of the same agreement, and conflict precedence.
2. **Termination consequences** for deployed instances are a placeholder (§12).
3. **Governing law and dispute resolution** are entirely unset (§14).
4. **Seller entity identity** is a placeholder, which several terms depend on.
5. Whether these Terms should **exist separately at all**, or whether the
   License should be expanded to cover them.
6. **Refund-related enforceability** questions (§7) are unresolved.
7. Whether **mandatory consumer-protection law** in any customer jurisdiction
   overrides any term here.

---

## Disclaimer

**This is a draft prepared by the Seller and is not legal advice.** It must be
reviewed and finalized by a licensed attorney before publication. The Seller is
**not** a Business Associate and does not handle PHI. This product is a
**HIPAA-ready foundation, not HIPAA compliance**. See [`./DISCLAIMER.en.md`](./DISCLAIMER.en.md).
中文免责与许可说明(LICENSE / DISCLAIMER)

许可协议 (License)

# 软件许可协议(初稿,待律师审核)

**生效说明:** 本文件为内部销售与交付用初稿,**在经持牌律师审核并定稿前,不得对外作为具有法律约束力的最终版本使用。**

**产品名称:** HIPAA-Ready SaaS Boilerplate(以下简称「本产品」或「交付物」)  
**许可方(卖方):** [公司名称 / 法律实体名称,待填写](以下简称「卖方」)  
**被许可方(买方):** 购买并完成付款的个人或法律实体(以下简称「买方」或「客户」)

---

## 1. 定义

1.1 **交付物**:卖方以数字形式提供的源代码、配置文件、文档、脚本、模板及随附更新(如有),不含卖方托管的运行环境或买方生产数据。

1.2 **PHI(Protected Health Information)**:具有美国 HIPAA 及相关法规下「受保护健康信息」含义的信息;本协议中亦指任何可识别个人身份的健康相关信息。

1.3 **Business Associate(业务伙伴,BA)**:在 HIPAA 含义下代表 Covered Entity 处理 PHI 的实体;**卖方明确不是 Business Associate**。

1.4 **HIPAA-Ready Foundation**:指为便于买方在自行选择的合规架构上构建应用而提供的**技术基础与文档框架**,**不构成** HIPAA 合规认证、保证或法律意见。

---

## 2. 卖方声明与合规边界(重要)

2.1 **卖方不接触 PHI。** 卖方在提供、交付、支持本产品的过程中,**不请求、不接收、不存储、不处理、不传输**买方的真实 PHI。买方不得向卖方提交真实患者或成员数据用于演示、调试或支持(除非未来双方另行签署经律师审核的书面协议且该协议明确允许——当前标准交付不包含此项)。

2.2 **卖方不是 Business Associate。** 因卖方不接触 PHI、不代买方处理 PHI、不托管买方生产环境中的 PHI,卖方**不是**买方 HIPAA 合规计划下的 Business Associate,**无需**亦**不会**因本标准许可而向买方提供 BAA(Business Associate Agreement)。若买方业务需要 BAA,买方应与其 Covered Entity、云服务商(如 AWS)及其他 subprocessors **自行**洽谈并签署。

2.3 **卖方不托管 PHI。** 本产品为可自部署的软件与文档包;生产环境由买方自行搭建与运维,PHI 的存储与处理责任归属买方及其所选基础设施提供商。

2.4 **不构成合规保证。** 卖方不保证买方部署后满足 HIPAA、HITECH、州法或其他任何法规要求。合规是买方与其法律顾问、审计方的责任。

2.5 **不提供法律意见。** 本交付物及随附文档为技术与运营参考,**不是**法律建议。

---

## 3. 许可授予

3.1 在买方已支付对应档位全部应付费用且未违反本协议的前提下,卖方授予买方一项**非独占、不可转让、不可再许可**(除非本协议第 4 条明确允许)的许可,以在买方拥有或控制的系统中**使用、修改、部署**交付物,用于买方内部业务或买方对外提供的 SaaS 产品(受买方自行合规约束)。

3.2 **Foundation / Audit-Ready(一次性购买档位):** 许可在买方合法持有副本期间持续有效,除非因违反本协议而终止。

3.3 **Compliance Ops(订阅档位):** 许可在订阅期内有效;订阅到期或未续费后,买方对已下载版本的继续使用受本协议第 6 条(更新与支持)及第 9 条(终止)约束。

3.4 本许可**不包含**:卖方 SaaS 托管服务、卖方代运维、卖方代处理 PHI、白标再销售权(将本产品作为模板原样转售给第三方),除非书面另行约定。

---

## 4. 限制

4.1 买方不得将交付物以「可竞争的开源替代品」形式**公开再分发**完整源码包(例如上传至公开仓库供公众免费获取),除非交付物中某组件本身为开源许可且该开源许可允许。

4.2 买方不得移除或篡改随附的免责声明、许可声明及审计日志相关说明(可在买方自有 UI 中追加买方声明,但不得暗示卖方提供 BA 或合规保证)。

4.3 买方不得代表卖方宣称「已 HIPAA 认证」或「卖方为 Business Associate」。

4.4 买方对在其环境中运行的修改、配置、第三方集成及数据处理**自行负责**。

---

## 5. 买方责任

5.1 **自行部署与运维:** 买方负责 AWS(或其他云)账户、网络、密钥、备份、监控、访问控制及 incident response。

5.2 **自行 BAA:** 买方负责与其云服务商(如 AWS)、支付、邮件、分析等 vendor 核实 BAA 需求并签署;参考 `00_admin/baa-vendor-matrix.md`,矩阵内容**待核实**,不构成卖方保证。

5.3 **测试数据:** 开发与测试应使用合成/脱敏数据;禁止在卖方支持渠道提交真实 PHI。

5.4 **审计日志:** 若买方启用交付物中的审计能力,买方负责保留策略(建议不少于 6–7 年)、访问控制及与组织政策的一致性。

5.5 **合规与隐私:** 买方应咨询法律顾问,确定其是否 Covered Entity、是否需要 BA 链、是否需额外 Safeguards。

---

## 6. 更新、支持与订阅(Compliance Ops)

6.1 **Foundation / Audit-Ready:** 包含购买日对应版本的一次性交付;是否包含有限期限的 bugfix 更新以销售页及订单为准(如无另行说明,以交付日快照为准)。

6.2 **Compliance Ops($199/月,价格以销售页为准):** 在订阅有效期间,买方可获得卖方发布的合规相关更新、依赖安全补丁指引、文档修订及约定渠道内的实施答疑(**非**代部署、**非**代审 PHI、**非**法律意见)。具体 SLA 以订单或附录为准。

6.3 卖方可在合理通知后调整订阅价格;续费周期适用新价格 unless 另有 grandfather 条款。

---

## 7. 知识产权

7.1 交付物中卖方保留的版权及知识产权归卖方所有;本协议仅授予第 3 条所述有限许可。

7.2 买方对其自行编写的修改、配置及买方数据保留权利;但不得因此主张对卖方核心交付物源码的所有权。

7.3 第三方开源组件受其各自许可约束;买方应遵守相应 NOTICE 文件。

---

## 8. 保密

8.1 交付物中非公开部分(含未公开源码、内部文档)视为卖方保密信息;买方应合理保护,不得向无关第三方披露,法律要求除外。

8.2 买方环境内的 PHI 及业务数据**不属于**卖方接收范围;卖方无义务存储或备份该等数据。

---

## 9. 终止

9.1 买方严重违反第 2、4、5 条时,卖方可终止许可并要求买方停止使用与销毁卖方提供的保密材料(买方基于合法许可已部署的运行实例是否立即下线,以律师审核版本为准;本初稿建议:终止后不得再复制或分发卖方源码,已部署实例的处置由买方与法律顾问确定)。

9.2 订阅终止后,买方对终止日前已获得的材料的使用,受本协议及 REFUND_POLICY 约束。

---

## 10. 免责声明与责任限制

10.1 **按「现状」提供。** 除法律不允许排除的情形外,交付物不提供明示或默示保证,包括但不限于适销性、特定用途适用性、不侵权、持续无漏洞、通过任何特定审计。

10.2 **责任上限。** 在适用法律允许的最大范围内,卖方对因本协议或交付物引起的任何索赔的总责任不超过买方就引起索赔的档位在**过去十二(12)个月**内向卖方实际支付的金额。

10.3 间接损害、利润损失、监管罚款、数据泄露赔偿等,在适用法律允许范围内予以排除或限制。

10.4 完整免责声明见 `01_legal/DISCLAIMER.md`,其内容通过引用纳入本协议阅读范围(以律师定稿为准)。

---

## 11. 退款

退款规则以 `01_legal/REFUND_POLICY.md` 为准;数字产品原则上一经交付不可退款,例外情形见该文件。

---

## 12. 一般条款

12.1 **完整协议:** 本协议与订单、销售页披露的档位说明、免责声明及退款政策共同构成完整理解(律师定稿时可合并为单一文件)。

12.2 **适用法律与争议解决:** [待填写:如 Delaware / 买方所在州];争议解决方式 [待填写:仲裁或法院]。

12.3 **可分性:** 某条款无效不影响其余条款效力。

12.4 **转让:** 买方未经卖方书面同意不得转让本协议;卖方可向关联公司或收购方转让。

12.5 **联系:** [支持邮箱 / 法律通知地址,待填写]

---

## 13. 买方确认

购买或使用交付物即表示买方已阅读并理解:**卖方不接触 PHI,不是 Business Associate**;买方自行部署、自行签署 BAA、自行承担 HIPAA 及适用法规合规责任;本产品为 **HIPAA-ready foundation,不是 HIPAA compliance**。

---

*文档版本:初稿 v0.1 | 最后更新:2026-10-02 | 状态:待律师审核*

免责声明 (Disclaimer)

# 免责声明(初稿,待律师审核)

**放置要求(内部合规清单):** 本免责声明的实质内容须出现在 **(1)销售页 / 结账页 (2)项目 README (3)许可协议(LICENSE)** 三处。对外发布前须律师审核。

---

## 1. 产品定位

HIPAA-Ready SaaS Boilerplate(以下简称「本产品」)是一套供买方**自行下载、修改与部署**的软件基础架构、配置示例与配套文档,旨在帮助医疗相关 SaaS 团队在 **AWS 等可签署 BAA 的基础设施**上更快搭建系统。

**本产品不是:**

- 已完成的 HIPAA **合规**产品或认证;  
- 法律、合规或审计服务;  
- 托管服务或 Business Associate 服务;  
- 电子健康记录(EHR)集成或临床决策工具。

**正确表述:** 「HIPAA-**ready** foundation」——为合规实施提供技术起点,**不**等于「HIPAA **compliant**」。

---

## 2. 卖方不接触 PHI,不是 Business Associate

**Protected Health Information(PHI)** 指受美国 HIPAA 等法规保护的可识别个人健康信息。

- **卖方不接触 PHI:** 卖方在销售、交付、标准技术支持过程中,不接收、不存储、不处理买方的真实 PHI。买方不得向卖方提交真实患者或成员数据。  
- **卖方不是 Business Associate(BA):** 卖方不代表买方处理 PHI,也不托管买方生产环境。因此,**标准交易下卖方不是买方的 Business Associate**,**不提供** Business Associate Agreement(BAA)。  
- **BAA 由买方自行完成:** 买方作为 Covered Entity 或 Business Associate(视其法律地位而定)须与其云提供商(如 AWS)、支付、通信等 subprocessors **自行**评估并签署所需 BAA。参考 `00_admin/baa-vendor-matrix.md`(状态多为「待核实」,不构成法律意见)。

---

## 3. 合规责任归属

3.1 **买方全权负责** 在其部署环境中满足 HIPAA、HITECH、州隐私法、FDA(如适用)及其他法规,包括但不限于:风险评估、政策与培训、访问控制、加密、审计、 breach 通知、BA 链条、最小必要原则等。

3.2 卖方**不保证** 买方通过任何第三方或监管审计。审计结果取决于买方实施、组织流程及所选 vendor。

3.3 交付物中的「Audit-Ready」等命名指**文档与日志设计便于买方收集证据**,**不**表示已通过官方审计或认证。

3.4 **不提供法律意见。** 买方应咨询持牌律师及合规顾问。

---

## 4. 技术免责声明

4.1 交付物按 **「现状(AS IS)」** 及 **「可用(AS AVAILABLE)」** 提供。

4.2 卖方不保证:无错误、无中断、无安全漏洞、与买方所有第三方系统兼容、或满足买方特定临床工作流。

4.3 安全依赖买方正确配置(IAM、KMS、网络、密钥轮换、补丁、监控等)。**默认配置不等于生产就绪**,买方须完成 hardening 与渗透测试(如适用)。

4.4 审计日志、保留期、防篡改等能力需买方正确启用并运维;日志**不能**替代组织级合规计划。

---

## 5. 数据与 PHI 边界

5.1 **不托管 PHI:** 卖方服务器上不运行买方生产 PHI(标准交付模型)。买方数据位于买方 AWS 账户或买方选择的环境。

5.2 **测试数据:** 文档与示例仅适用于**合成或脱敏**数据。在测试环境使用真实 PHI 的风险由买方承担。

5.3 **无 EHR 集成:** 不包含与 Epic、Cerner 等 EHR 的认证集成;若买方自行集成,须单独合规评估。

---

## 6. 第三方服务

6.1 本产品可能引用或示例配置 AWS、Stripe、邮件服务等第三方。第三方条款、BAA 可用性、 outages 由该第三方负责。

6.2 卖方不控制 AWS、Stripe 等厂商政策变更;买方应自行跟踪。

---

## 7. 责任限制(摘要)

在适用法律允许的最大范围内:

- 卖方不对间接、附带、特殊、惩罚性或后果性损害负责(包括利润损失、数据丢失、监管罚款、业务中断)。  
- 卖方对任何索赔的总责任上限,以买方在索赔前十二个月内向卖方支付的金额为限(详见 LICENSE 完整条款)。

部分司法辖区不允许排除某些保证或责任;在该等辖区,本免责声明仅在法律允许范围内生效。

---

## 8. 医疗与专业建议

本产品及文档**不构成**医疗建议、诊断或治疗建议。买方 SaaS 若涉及临床使用,须由具备资质的专业人员及监管路径(如 FDA SaMD)另行评估。

---

## 9. 文档与版本

9.1 随附政策模板、控制映射、证据清单等为**参考模板**,须由买方律师及合规团队定制后方可依赖。

9.2 法规与云厂商 BAA 政策会变化;文档「最后更新」日期不代表实时法律状态。

---

## 10. 买方确认语句(可用于结账勾选)

> 我理解本产品为 **HIPAA-ready foundation,不是 HIPAA compliance**;**卖方不接触 PHI,不是 Business Associate**;我自行部署、自行签署 BAA,并承担全部合规责任。我已阅读免责声明与许可协议。

---

*文档版本:初稿 v0.1 | 最后更新:2026-10-02 | 状态:待律师审核*