hl-CRUD-operations/python/hl_boto_delete.py [20:46]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
args_parser = argparse.ArgumentParser()
args_parser.add_argument(
    "data_store_endpoint", 
    help="The HealthLake Data Store Endpoint including the resource path. \
        Example: https://healthlake.<AWS Region>.amazonaws.com/datastore/<FHIR DATA STORE ID/r4/")
args_parser.add_argument(
    "resource_path", 
    help="The resource path. Example: Patient/<PATIENT ID>")
args_parser.add_argument(
    "region", 
    help="The AWS region in which this HealthLake Data Store Exists. Example: us-east-1")

# Parse the input arguments
input_args = args_parser.parse_args()

data_store_endpoint = input_args.data_store_endpoint
resource_path = input_args.resource_path
region = input_args.region

# Frame the resource endpoint
resource_endpoint = data_store_endpoint+resource_path

session = boto3.session.Session(region_name=region)
client = session.client("healthlake")

# Frame authorization
auth = AWSSigV4("healthlake", session=session)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



hl-CRUD-operations/python/hl_boto_get.py [19:45]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
args_parser = argparse.ArgumentParser()
args_parser.add_argument(
    "data_store_endpoint", 
    help="The HealthLake Data Store Endpoint including the resource path. \
        Example: https://healthlake.<AWS Region>.amazonaws.com/datastore/<FHIR DATA STORE ID/r4/")
args_parser.add_argument(
    "resource_path", 
    help="The resource path. Example: Patient/<PATIENT ID>")
args_parser.add_argument(
    "region", 
    help="The AWS region in which this HealthLake Data Store Exists. Example: us-east-1")

# Parse the input arguments
input_args = args_parser.parse_args()

data_store_endpoint = input_args.data_store_endpoint
resource_path = input_args.resource_path
region = input_args.region

# Frame the resource endpoint
resource_endpoint = data_store_endpoint+resource_path

session = boto3.session.Session(region_name=region)
client = session.client("healthlake")

# Frame authorization
auth = AWSSigV4("healthlake", session=session)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



