

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# FHIR 个人资料验证 HealthLake
<a name="reference-fhir-profile-validations"></a>

AWS HealthLake 支持基本的 [FHIR R4 规范](https://hl7.org/fhir/R4)。基本的 FHIR R4 规范中包括 FHIR 配置文件。在 FHIR 资源类型上使用配置文件通过基本资源类型的约束 and/or 扩展来定义更具体的资源类型定义。例如，FHIR 配置文件可以识别必填字段，例如扩展名和值集。一个资源可以支持多个配置文件。所有 HealthLake 数据存储都支持使用 FHIR 配置文件。

**注意**  
向数据存储中添加数据时，*不需要*添加 FHIR 配置文件。 HealthLake如果在添加或更新资源时未指定 FHIR 配置文件，则仅根据基本 FHIR R4 架构对资源进行验证。  
FHIR 资源符合的 FHIR 配置文件在导入资源之前包含在资源中。 HealthLake因此，FHIR 配置文件将在导入 HealthLake 过程中通过进行验证。

FHIR 配置文件在实施指南中指定。FHIR 实施指南 (IG) 是一组说明，描述了如何将 FHIR 标准用于特定目的。 HealthLake 验证以下实施指南中定义的 FHIR 配置文件。


**支持的 FHIR 配置文件 AWS HealthLake**  

| Name | 版本 | 实施指南 | 能力 | 美国东部（俄亥俄州） | 美国东部（弗吉尼亚州北部） | 美国西部（俄勒冈州） | 亚太地区（孟买） | 亚太地区（悉尼） | 加拿大（中部） | 欧洲地区（爱尔兰） | 欧洲地区（伦敦） | 
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | 
| 美国核心 | 3.1.1 |  [http://hl7.org/fhir/us/core/STU3.1.1/](http://hl7.org/fhir/us/core/STU3.1.1/)  | 默认 | X | X | X | X | X | X | X | X | 
| 美国核心 | 4.0.0 |  [https://hl7.org/fhir/us/core/STU4/index.html](https://hl7.org/fhir/us/core/STU4/index.html)  | 支持 | X | X | X | X | X | X | X | X | 
| 美国核心 | 5.0.1 |  [https://hl7.org/fhir/us/core/STU5.0.1/index.html](https://hl7.org/fhir/us/core/STU5.0.1/index.html)  | 支持 | X | X | X | X | X | X | X | X | 
| 美国核心 | 6.1.0 |  [https://hl7.org/fhir/us/core/STU6.1/index.html](https://hl7.org/fhir/us/core/STU6.1/index.html)  | 支持 | X | X | X | X | X | X | X | X | 
| 美国核心 | 7.0.0 |  [https://hl7.org/fhir/us/core/STU7/](https://hl7.org/fhir/us/core/STU7/)  | 支持 | X | X | X | X | X | X | X | X | 
| 英国核心 | 2.0.1 |  [https://simplifier.net/guide/uk-core-implementation-guide-stu2/Home/ProfilesandExtensions/ProfilesIndex?version=2.0.1](https://simplifier.net/guide/uk-core-implementation-guide-stu2/Home/ProfilesandExtensions/ProfilesIndex?version=2.0.1)  | 支持 | X | X | X | X |  |  | X | X | 
| CARIN 蓝色按钮 | 1.1.0 |  [http://hl7.org/fhir/us/carin-bb/STU1.1/](http://hl7.org/fhir/us/carin-bb/STU1.1/)  | 默认 | X | X | X | X | X | X | X | X | 
| CARIN 蓝色按钮 | 1.0.0、2.0.0、2.1.0 |  [https://hl7.org/fhir/us/carin-bb/history.html](https://hl7.org/fhir/us/carin-bb/history.html)  | 支持 | X | X | X | X | X | X | X | X | 
| Da Vinci Payer Data Exchange | 1.0.0 |  [https://hl7.org/fhir/us/davinci-pdex/](https://hl7.org/fhir/us/davinci-pdex/)  | 默认 | X | X | X | X | X | X | X | X | 
| Da Vinci Payer Data Exchange | 2.0.0、2.1.0 |  [https://hl7.org/fhir/us/davinci-pdex/history.html](https://hl7.org/fhir/us/davinci-pdex/history.html)  | 支持 | X | X | X | X | X | X | X | X | 
| Da Vinci Health 记录交易所 () HRex | 0.2.0 |  [https://hl7.org/fhir/us/davinci-hrex/2020Sep/](https://hl7.org/fhir/us/davinci-hrex/2020Sep/)  | 默认 | X | X | X | X | X | X | X | X | 
| DaVinci PDEX Plan Net | 1.1.0 |  [https://hl7.org/fhir/us/davinci-pdex-plan-net/STU1.1/](https://hl7.org/fhir/us/davinci-pdex-plan-net/STU1.1/)  | 默认 | X | X | X | X | X | X | X | X | 
| DaVinci PDEX Plan Net | 1.0.0 |  [https://hl7.org/fhir/us/davinci-pdex-plan-net/STU1/](https://hl7.org/fhir/us/davinci-pdex-plan-net/STU1/)  | 支持 | X | X | X | X | X | X | X | X | 
| DaVinci Payer Data Exchange (PDex)《美国药品处方集》 | 1.1.0 |  [https://hl7.org/fhir/us/davinci-drug-formulary/STU1.1/](https://hl7.org/fhir/us/davinci-drug-formulary/STU1.1/)  | 默认 | X | X | X | X | X | X | X | X | 
| DaVinci Payer Data Exchange (PDex)《美国药品处方集》 | 1.0.1、2.0.1、2.1.0 |  [https://hl7.org/fhir/us/davinci-drug-formulary/history.html](https://hl7.org/fhir/us/davinci-drug-formulary/history.html)  | 支持 | X | X | X | X | X | X | X | X | 
| 达芬奇临床数据交换 () CDex | 2.1.0 |  [https://build.fhir.org/ig/HL7/davinci-ecdx/index.html](https://build.fhir.org/ig/HL7/davinci-ecdx/index.html)  | 默认 | X | X | X | X | X | X | X | X | 
| Da Vinci 事先授权支持 (PAS) FHIR IG | 2.1.0 |  [https://hl7.org/fhir/us/davinci-pas/](https://hl7.org/fhir/us/davinci-pas/)  | 默认 | X | X | X | X | X | X | X | X | 
| NCQA HEDIS® 实施指南 | 0.3.1 |  [https://www.ncqa.org/resources/hedis-ig-resource-page/](https://www.ncqa.org/resources/hedis-ig-resource-page/)  | 默认 | X | X | X | X |  |  | X | X | 
| 国际患者摘要 (IPS) | 2.0.0 选票 |  [https://hl7.org/fhir/uv/ips/2024Sep/](https://hl7.org/fhir/uv/ips/2024Sep/)  | 默认 | X | X | X | X | X | X | X | X | 
| 质量衡量标准 | 5.0.0 |  [https://registry.fhir.org/package/hl7.fhir.us.cqfmeasures%7C5.0.0](https://registry.fhir.org/package/hl7.fhir.us.cqfmeasures%7C5.0.0)  | 默认 | X | X | X | X |  |  | X | X | 
| 基因组学报告 | 3.0.0 |  [https://build.fhir.org/ig/HL7/genomics-reporting/index.html](https://build.fhir.org/ig/HL7/genomics-reporting/index.html)  | 默认 | X | X | X | X |  |  | X | X | 
| 国家卫生局的阿育什曼·巴拉特数字使命（ABDM） | 2.0 |  [https://www.nrces.in/ndhm/fhir/r4/index.html](https://www.nrces.in/ndhm/fhir/r4/index.html)  | 默认 | X | X | X | X |  |  | X | X | 
| CA Core\+ | 1.1.0 |  [https://simplifier.net/ca-core](https://simplifier.net/ca-core)  | 支持 |  |  |  |  |  | X |  |  | 
| ca: erec 泛加拿大电子推荐-eConsult | 1.1.0 |  [https://simplifier.net/CA-eReC/~introduction](https://simplifier.net/CA-eReC/~introduction)  | 支持 |  |  |  |  |  | X |  |  | 
| 加拿大版《患者摘要》-(PS-CA) | 2.1.1 |  [https://simplifier.net/PS-CA-R1/~introduction](https://simplifier.net/PS-CA-R1/~introduction)  | 支持 |  |  |  |  |  | X |  |  | 
| 安大略省数字健康药物库 | 4.0.3 |  [https://simplifier.net/ca-on-dhdr-r4/~introduction](https://simplifier.net/ca-on-dhdr-r4/~introduction)  | 支持 |  |  |  |  |  | X |  |  | 
| AU 核心 | 1.0.0 |  [https://hl7.org.au/fhir/core/](https://hl7.org.au/fhir/core/)  | 支持 |  |  |  |  | X |  |  |  | 
| Magentus 实践管理 | 1.2.16 |  [https://fhir-versions.dev.geniesolutions.io/1.2.16/downloads.html](https://fhir-versions.dev.geniesolutions.io/1.2.16/downloads.html)  | 支持 |  |  |  |  | X |  |  |  | 

## 验证资源中指定的 FHIR 配置文件
<a name="add-fhir-profile-validation"></a>

要验证 FHIR 配置文件，请使用实施指南中指定的配置文件 URL 将其添加到各个资源的`profile`元素中。

向数据存储中添加新资源时，会验证 FHIR 配置文件。要添加新资源，您可以使用 `StartFHIRImportJob` API 操作、`POST`请求添加新资源或请求更新现有资源。` PUT `

**Example — 查看资源中引用了哪个 FHIR 配置文件**  
配置文件网址将添加到`"meta" : "profile"`键值对中的`profile`元素中。为清楚起见，此资源已被截断。  

```
{
    "resourceType": "Patient",
    "id": "abcd1234efgh5678hijk9012",
    "meta": {
        "lastUpdated": "2023-05-30T00:48:07.8443764-07:00",
        "profile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"
        ]
    }
}
```

**Example — 如何引用非默认支持的 FHIR 配置文件**  
要根据支持的非默认配置文件（例如 carinBB 1.0.0）进行验证，请在元素中添加带有版本（用 “\|” 分隔）的配置文件网址和基本配置文件网址。`meta.profile`为清楚起见，此示例资源已被截断。  

```
{
    "resourceType": "ExplanationOfBenefit",
    "id": "sample-EOB",
    "meta": {
        "lastUpdated": "2024-02-02T05:56:09.4+00:00",
        "profile": [
            "http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-ExplanationOfBenefit-Pharmacy|1.0.0",
      "http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-ExplanationOfBenefit-Pharmacy“
        ]
    }
}
```