-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python: HealthLake examples for action (#7099)
- Loading branch information
1 parent
becbedb
commit b02e5c9
Showing
8 changed files
with
1,612 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
# zexi 0.4.0 | ||
healthlake_CreateFHIRDatastore: | ||
languages: | ||
Python: | ||
versions: | ||
- sdk_version: 3 | ||
github: python/example_code/healthlake | ||
excerpts: | ||
- description: | ||
snippet_tags: | ||
- python.example_code.healthlake.HealthLakeWrapper.decl | ||
- python.example_code.healthlake.CreateFHIRDatastore | ||
- description: > | ||
The following code shows an example of parameters for a SMART on | ||
FHIR-enabled HealthLake data store. | ||
snippet_tags: | ||
- python.example_code.healthlake.CreateFHIRDatastore.smart | ||
services: | ||
healthlake: {CreateFHIRDatastore} | ||
healthlake_DescribeFHIRDatastore: | ||
languages: | ||
Python: | ||
versions: | ||
- sdk_version: 3 | ||
github: python/example_code/healthlake | ||
excerpts: | ||
- description: | ||
snippet_tags: | ||
- python.example_code.healthlake.HealthLakeWrapper.decl | ||
- python.example_code.healthlake.DescribeFHIRDatastore | ||
services: | ||
healthlake: {DescribeFHIRDatastore} | ||
healthlake_ListFHIRDatastores: | ||
languages: | ||
Python: | ||
versions: | ||
- sdk_version: 3 | ||
github: python/example_code/healthlake | ||
excerpts: | ||
- description: | ||
snippet_tags: | ||
- python.example_code.healthlake.HealthLakeWrapper.decl | ||
- python.example_code.healthlake.ListFHIRDatastores | ||
services: | ||
healthlake: {ListFHIRDatastores} | ||
healthlake_DeleteFHIRDatastore: | ||
languages: | ||
Python: | ||
versions: | ||
- sdk_version: 3 | ||
github: python/example_code/healthlake | ||
excerpts: | ||
- description: | ||
snippet_tags: | ||
- python.example_code.healthlake.HealthLakeWrapper.decl | ||
- python.example_code.healthlake.DeleteFHIRDatastore | ||
services: | ||
healthlake: {DeleteFHIRDatastore} | ||
healthlake_StartFHIRImportJob: | ||
languages: | ||
Python: | ||
versions: | ||
- sdk_version: 3 | ||
github: python/example_code/healthlake | ||
excerpts: | ||
- description: | ||
snippet_tags: | ||
- python.example_code.healthlake.HealthLakeWrapper.decl | ||
- python.example_code.healthlake.StartFHIRImportJob | ||
services: | ||
healthlake: {StartFHIRImportJob} | ||
healthlake_DescribeFHIRImportJob: | ||
languages: | ||
Python: | ||
versions: | ||
- sdk_version: 3 | ||
github: python/example_code/healthlake | ||
excerpts: | ||
- description: | ||
snippet_tags: | ||
- python.example_code.healthlake.HealthLakeWrapper.decl | ||
- python.example_code.healthlake.DescribeFHIRImportJob | ||
services: | ||
healthlake: {DescribeFHIRImportJob} | ||
healthlake_ListFHIRDatastoreImportJobs: | ||
languages: | ||
Python: | ||
versions: | ||
- sdk_version: 3 | ||
github: python/example_code/healthlake | ||
excerpts: | ||
- description: | ||
snippet_tags: | ||
- python.example_code.healthlake.HealthLakeWrapper.decl | ||
- python.example_code.healthlake.ListFHIRDatastoreImportJobs | ||
services: | ||
healthlake: {ListFHIRDatastoreImportJobs} | ||
healthlake_StartFHIRExportJob: | ||
languages: | ||
Python: | ||
versions: | ||
- sdk_version: 3 | ||
github: python/example_code/healthlake | ||
excerpts: | ||
- description: | ||
snippet_tags: | ||
- python.example_code.healthlake.HealthLakeWrapper.decl | ||
- python.example_code.healthlake.StartFHIRExportJob | ||
services: | ||
healthlake: {StartFHIRExportJob} | ||
healthlake_DescribeFHIRExportJob: | ||
languages: | ||
Python: | ||
versions: | ||
- sdk_version: 3 | ||
github: python/example_code/healthlake | ||
excerpts: | ||
- description: | ||
snippet_tags: | ||
- python.example_code.healthlake.HealthLakeWrapper.decl | ||
- python.example_code.healthlake.DescribeFHIRExportJob | ||
services: | ||
healthlake: {DescribeFHIRExportJob} | ||
healthlake_ListFHIRExportJobs: | ||
languages: | ||
Python: | ||
versions: | ||
- sdk_version: 3 | ||
github: python/example_code/healthlake | ||
excerpts: | ||
- description: | ||
snippet_tags: | ||
- python.example_code.healthlake.HealthLakeWrapper.decl | ||
- python.example_code.healthlake.ListFHIRExportJobs | ||
services: | ||
healthlake: {ListFHIRExportJobs} | ||
healthlake_TagResource: | ||
languages: | ||
Python: | ||
versions: | ||
- sdk_version: 3 | ||
github: python/example_code/healthlake | ||
excerpts: | ||
- description: | ||
snippet_tags: | ||
- python.example_code.healthlake.HealthLakeWrapper.decl | ||
- python.example_code.healthlake.TagResource | ||
services: | ||
healthlake: {TagResource} | ||
healthlake_ListTagsForResource: | ||
languages: | ||
Python: | ||
versions: | ||
- sdk_version: 3 | ||
github: python/example_code/healthlake | ||
excerpts: | ||
- description: | ||
snippet_tags: | ||
- python.example_code.healthlake.HealthLakeWrapper.decl | ||
- python.example_code.healthlake.ListTagsForResource | ||
services: | ||
healthlake: {ListTagsForResource} | ||
healthlake_UntagResource: | ||
languages: | ||
Python: | ||
versions: | ||
- sdk_version: 3 | ||
github: python/example_code/healthlake | ||
excerpts: | ||
- description: | ||
snippet_tags: | ||
- python.example_code.healthlake.HealthLakeWrapper.decl | ||
- python.example_code.healthlake.UntagResource | ||
services: | ||
healthlake: {UntagResource} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
# HealthLake code examples for the SDK for Python | ||
|
||
## Overview | ||
|
||
Shows how to use the AWS SDK for Python (Boto3) to work with AWS HealthLake. | ||
|
||
<!--custom.overview.start--> | ||
<!--custom.overview.end--> | ||
|
||
_HealthLake _ | ||
|
||
## ⚠ Important | ||
|
||
* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/) and [Free Tier](https://aws.amazon.com/free/). | ||
* Running the tests might result in charges to your AWS account. | ||
* We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). | ||
* This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). | ||
|
||
<!--custom.important.start--> | ||
<!--custom.important.end--> | ||
|
||
## Code examples | ||
|
||
### Prerequisites | ||
|
||
For prerequisites, see the [README](../../README.md#Prerequisites) in the `python` folder. | ||
|
||
Install the packages required by these examples by running the following in a virtual environment: | ||
|
||
``` | ||
python -m pip install -r requirements.txt | ||
``` | ||
|
||
<!--custom.prerequisites.start--> | ||
<!--custom.prerequisites.end--> | ||
|
||
### Single actions | ||
|
||
Code excerpts that show you how to call individual service functions. | ||
|
||
- [CreateFHIRDatastore](health_lake_wrapper.py#L42) | ||
- [DeleteFHIRDatastore](health_lake_wrapper.py#L136) | ||
- [DescribeFHIRDatastore](health_lake_wrapper.py#L84) | ||
- [DescribeFHIRExportJob](health_lake_wrapper.py#L310) | ||
- [DescribeFHIRImportJob](health_lake_wrapper.py#L197) | ||
- [ListFHIRDatastoreImportJobs](health_lake_wrapper.py#L222) | ||
- [ListFHIRDatastores](health_lake_wrapper.py#L106) | ||
- [ListFHIRExportJobs](health_lake_wrapper.py#L335) | ||
- [ListTagsForResource](health_lake_wrapper.py#L404) | ||
- [StartFHIRExportJob](health_lake_wrapper.py#L272) | ||
- [StartFHIRImportJob](health_lake_wrapper.py#L154) | ||
- [TagResource](health_lake_wrapper.py#L385) | ||
- [UntagResource](health_lake_wrapper.py#L426) | ||
|
||
|
||
<!--custom.examples.start--> | ||
<!--custom.examples.end--> | ||
|
||
## Run the examples | ||
|
||
### Instructions | ||
|
||
|
||
<!--custom.instructions.start--> | ||
<!--custom.instructions.end--> | ||
|
||
|
||
|
||
### Tests | ||
|
||
⚠ Running tests might result in charges to your AWS account. | ||
|
||
|
||
To find instructions for running these tests, see the [README](../../README.md#Tests) | ||
in the `python` folder. | ||
|
||
|
||
|
||
<!--custom.tests.start--> | ||
<!--custom.tests.end--> | ||
|
||
## Additional resources | ||
|
||
- [HealthLake Developer Guide](https://docs.aws.amazon.com/healthlake/latest/devguide/what-is-amazon-health-lake.html) | ||
- [HealthLake API Reference](https://docs.aws.amazon.com/healthlake/latest/APIReference/Welcome.html) | ||
- [SDK for Python HealthLake reference](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/medical-imaging.html) | ||
|
||
<!--custom.resources.start--> | ||
<!--custom.resources.end--> | ||
|
||
--- | ||
|
||
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
|
||
SPDX-License-Identifier: Apache-2.0 |
Oops, something went wrong.