

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

# FHIR R4 操作适用于 `$attribution-status` HealthLake
<a name="reference-fhir-operations-attribution-status"></a>

检索特定成员的归因状态，返回包含与患者相关的所有归因资源的捆绑包。此操作是 [FHIR 成员归因 (ATR) 名单 IG 2.1.0](https://build.fhir.org/ig/HL7/davinci-atr/spec.html) 实施的一部分。

## 端点
<a name="attribution-status-endpoint"></a>

```
POST [base]/Group/[id]/$attribution-status
```

## 请求参数
<a name="attribution-status-parameters"></a>

该操作接受以下可选参数：


| 参数 | 类型 | 说明 | 
| --- | --- | --- | 
| memberId | 标识符 | 申请归因状态的成员的 MemberId  | 
| 患者参考 | 参考 | 引用制作人系统中的患者资源 | 

**注意**  
`patientReference`可以提供`memberId`或之一，或者两者兼而有之，用于验证目的。

## 示例请求
<a name="attribution-status-request-example"></a>

```
{
  "resourceType": "Parameters",
  "parameter": [
    {
      "name": "memberId",
      "valueIdentifier": {
        "system": "http://example.org",
        "value": "MBR123456789"
      }
    },
    {
      "name": "patientReference",
      "valueReference": {
        "reference": "Patient/patient-123",
        "display": "John Doe"
      }
    }
  ]
}
```

## 响应
<a name="attribution-status-response"></a>

返回包含与患者相关的归因资源的捆绑包：


| 资源 | 基数 | 位置 | 
| --- | --- | --- | 
| 病人 | 1..1 | 群组成员实体 | 
| 涵盖 | 0.. 1 | Group.member.extension: co | 
| Organization/Practitioner/PractitionerRole | 0.. 1 | Group.member.extensions: | 
| 任何资源 | 0.. 1 | Group.member. 扩展：关联数据 | 

### 示例响应
<a name="attribution-status-response-example"></a>

```
{
  "resourceType": "Bundle",
  "id": "bundle-response",
  "meta": {
    "lastUpdated": "2014-08-18T01:43:33Z"
  },
  "type": "collection",
  "entry": [
    {
      "fullUrl": "http://example.org/fhir/Patient/12423",
      "resource": {
        "resourceType": "Patient",
        "id": "12423",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2014-08-18T01:43:31Z"
        },
        "active": true,
        "name": [
          {
            "use": "official",
            "family": "Chalmers",
            "given": ["Peter", "James"]
          }
        ],
        "gender": "male",
        "birthDate": "1974-12-25"
      }
    },
    {
      "fullUrl": "http://example.org/fhir/Coverage/123456",
      "resource": {
        "resourceType": "Coverage",
        "id": "1"
        // ... additional Coverage resource details
      }
    },
    {
      "fullUrl": "http://example.org/fhir/Organization/666666",
      "resource": {
        "resourceType": "Organization",
        "id": "2"
        // ... additional Organization resource details
      }
    }
  ]
}
```

## 错误处理
<a name="attribution-status-error-handling"></a>

该操作处理以下错误情况：


| 错误 | HTTP 状态 | 说明 | 
| --- | --- | --- | 
| 操作请求无效 | 400 | 不符合要求的请求参数或结构 | 
| 未找到群组资源 | 404 | 指定的群组 ID 不存在 | 
| 未找到患者资源 | 404 | 指定的患者参考文献不存在 | 

## 授权和安全
<a name="attribution-status-authorization"></a>

智能瞄准镜要求  
客户必须具有相应的权限才能读取群组资源和相关归因资源  
标准的 FHIR 授权机制适用于所有操作