本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
获取 FHIR 导出任务属性
DescribeFHIRExportJob用于从 HealthLake 数据存储中获取导出任务属性。以下菜单提供了操作步骤 AWS Management Console 和 AWS CLI 和的代码示例 AWS SDKs。有关更多信息,请参阅 AWS HealthLake API 参考中的 DescribeFHIRExportJob。
HealthLake 支持用于医疗保健数据交换的 FHIR R4 规范。因此,所有健康数据都以 FHIR R4 格式导出。
描述 FHIR 导出作业
根据您的访问偏好选择菜单 AWS HealthLake。
- CLI
-
- AWS CLI
-
描述 FHIR 导出作业
以下describe-fhir-export-job示例说明如何在中查找 FHIR 导出任务的 AWS HealthLake属性。
aws healthlake describe-fhir-export-job \
--datastore-id (Data store ID) \
--job-id 9b9a51943afaedd0a8c0c26c49135a31
输出:
{
"ExportJobProperties": {
"DataAccessRoleArn": "arn:aws:iam::(AWS Account ID):role/(Role Name)",
"JobStatus": "IN_PROGRESS",
"JobId": "9009813e9d69ba7cf79bcb3468780f16",
"SubmitTime": "2024-11-20T11:31:46.672000-05:00",
"EndTime": "2024-11-20T11:34:01.636000-05:00",
"OutputDataConfig": {
"S3Configuration": {
"S3Uri": "s3://(Bucket Name)/(Prefix Name)/",
"KmsKeyId": "arn:aws:kms:us-east-1:012345678910:key/d330e7fc-b56c-4216-a250-f4c43ef46e83"
}
},
"DatastoreId": "(Data store ID)"
}
}
有关更多信息,请参阅《AWS HealthLake 开发人员指南》中的从 FHIR 数据存储中导出文件。
- Python
-
- 适用于 Python 的 SDK (Boto3)
-
@classmethod
def from_client(cls) -> "HealthLakeWrapper":
"""
Creates a HealthLakeWrapper instance with a default AWS HealthLake client.
:return: An instance of HealthLakeWrapper initialized with the default HealthLake client.
"""
health_lake_client = boto3.client("healthlake")
return cls(health_lake_client)
def describe_fhir_export_job(
self, datastore_id: str, job_id: str
) -> dict[str, any]:
"""
Describes a HealthLake export job.
:param datastore_id: The data store ID.
:param job_id: The export job ID.
:return: The export job description.
"""
try:
response = self.health_lake_client.describe_fhir_export_job(
DatastoreId=datastore_id, JobId=job_id
)
return response["ExportJobProperties"]
except ClientError as err:
logger.exception(
"Couldn't describe export job with ID %s. Here's why %s",
job_id,
err.response["Error"]["Message"],
)
raise
找不到所需的内容? 使用本页右侧边栏上的 “提供反馈” 链接请求代码示例。
HealthLake 控制台上没有 FHIR 导出任务信息。相反, AWS CLI
使用wit DescribeFHIRExportJob h来请求导出任务属性,例如JobStatus。有关更多信息,请参阅本页上的 AWS CLI 示例。