

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# HealthLake 的 FHIR 設定檔驗證
<a name="reference-fhir-profile-validations"></a>

AWS HealthLake 支援基本 [FHIR R4 規格](https://hl7.org/fhir/R4)。基本 FHIR R4 規格中包含 FHIR 設定檔。設定檔用於 FHIR 資源類型，以使用基本資源類型的限制條件和/或延伸來定義更具體的資源類型定義。例如，FHIR 設定檔可以識別必要欄位，例如延伸項目和值集。資源可以支援多個設定檔。所有 HealthLake 資料存放區都支援使用 FHIR Profiles。

**注意**  
將資料新增至 HealthLake 資料存放區時，*不需要*新增 FHIR 設定檔。如果在新增或更新資源時未指定 FHIR 描述檔，則資源只會根據基本 FHIR R4 結構描述進行驗證。  
FHIR 資源符合的 FHIR 描述檔會在匯入 HealthLake 之前包含在資源中。因此，FHIR 設定檔會在匯入期間由 HealthLake 驗證。

FHIR 設定檔在實作指南中指定。FHIR 實作指南 (IG) 是一組說明，說明如何將 FHIR 標準用於特定用途。HealthLake 會驗證下列實作指南中定義的 FHIR 設定檔。


**支援的 FHIR 設定檔 AWS HealthLake**  

| 名稱 | 版本 | 實作指南 | 功能 | 美國東部 (俄亥俄) | 美國東部 (維吉尼亞北部) | 美國西部 (奧勒岡) | 亞太地區 (孟買) | 亞太地區 (悉尼) | 加拿大 (中部) | 歐洲 (愛爾蘭) | 歐洲 (倫敦) | 
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | 
| 美國核心 |  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 付款人資料交換 |  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 付款人資料交換 |  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 運作狀態記錄交換 (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 計畫淨額 |  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 計畫淨額 |  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 | 
| Da Vinci 臨床資料交換 (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 | 
|  國家衛生局的 Ayushman Bharat Digital Mission (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.1.0 |  [https://simplifier.net/ca-core](https://simplifier.net/ca-core)  | 支援 |  |  |  |  |  | X |  |  | 
| CA：eReC Pan-Canadian eReferral-eConsult | 1.1.0 |  [https://simplifier.net/CA-eReC/~introduction](https://simplifier.net/CA-eReC/~introduction)  | 支援 |  |  |  |  |  | X |  |  | 
| 病患摘要 加拿大版本 - (PS-CA) | 2.11 |  [https://simplifier.net/PS-CA-R1/~introduction](https://simplifier.net/PS-CA-R1/~introduction)  | 支援 |  |  |  |  |  | X |  |  | 
| Ontario Digital Health 藥物儲存庫 | 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 Practice Management | 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 設定檔**  
設定檔 URL 會新增至`"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`元素中新增具有版本 （以 '\$1' 分隔） 和基本設定檔 URL 的設定檔 URL。為了清楚起見，已截斷此範例資源。  

```
{
    "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“
        ]
    }
}
```