helix.fhir.client.sdk 4.2.15__tar.gz → 4.2.17__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {helix_fhir_client_sdk-4.2.15/helix.fhir.client.sdk.egg-info → helix_fhir_client_sdk-4.2.17}/PKG-INFO +39 -2
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/README.md +38 -1
- helix_fhir_client_sdk-4.2.17/VERSION +1 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17/helix.fhir.client.sdk.egg-info}/PKG-INFO +39 -2
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix.fhir.client.sdk.egg-info/SOURCES.txt +1 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/fhir_auth_mixin.py +4 -2
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/fhir_client.py +36 -8
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/fhir_delete_mixin.py +61 -44
- helix_fhir_client_sdk-4.2.17/helix_fhir_client_sdk/fhir_merge_mixin.py +332 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/fhir_merge_resources_mixin.py +8 -4
- helix_fhir_client_sdk-4.2.17/helix_fhir_client_sdk/fhir_patch_mixin.py +146 -0
- helix_fhir_client_sdk-4.2.17/helix_fhir_client_sdk/fhir_update_mixin.py +153 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/open_telemetry/attribute_names.py +3 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/open_telemetry/span_names.py +4 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/queue/request_queue_mixin.py +4 -2
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/retryable_aiohttp_client.py +34 -5
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/validators/async_fhir_validator.py +3 -0
- helix_fhir_client_sdk-4.2.17/tests/async/test_retryable_client_session_management.py +159 -0
- helix_fhir_client_sdk-4.2.15/VERSION +0 -1
- helix_fhir_client_sdk-4.2.15/helix_fhir_client_sdk/fhir_merge_mixin.py +0 -307
- helix_fhir_client_sdk-4.2.15/helix_fhir_client_sdk/fhir_patch_mixin.py +0 -130
- helix_fhir_client_sdk-4.2.15/helix_fhir_client_sdk/fhir_update_mixin.py +0 -136
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/LICENSE +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/MANIFEST.in +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/Makefile +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix.fhir.client.sdk.egg-info/dependency_links.txt +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix.fhir.client.sdk.egg-info/not-zip-safe +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix.fhir.client.sdk.egg-info/requires.txt +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix.fhir.client.sdk.egg-info/top_level.txt +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/dictionary_parser.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/dictionary_writer.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/exceptions/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/exceptions/fhir_get_exception.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/exceptions/fhir_sender_exception.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/exceptions/fhir_validation_exception.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/fhir_bundle_appender.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/filters/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/filters/base_filter.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/filters/identifier_filter.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/filters/last_updated_filter.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/filters/property_filter.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/filters/property_missing_filter.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/filters/security_access_filter.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/filters/security_owner_filter.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/filters/sort_field.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/filters/source_filter.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/filters/version_filter.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/function_types.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/graph/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/graph/fhir_graph_mixin.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/graph/graph_definition.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/graph/graph_link_parameters.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/graph/graph_target_parameters.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/graph/simulated_graph_processor_mixin.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/graph/test/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/graph/test/test_graph_mixin.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/graph/test/test_simulate_graph_processor_mixin.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/graph/test/test_simulate_graph_processor_mixin_caching.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/open_telemetry/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/py.typed +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/queue/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/bundle_expander.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/fhir_client_protocol.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/fhir_delete_response.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/fhir_get_response.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/fhir_merge_response.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/fhir_response_processor.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/fhir_update_response.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/get/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/get/fhir_get_bundle_response.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/get/fhir_get_error_response.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/get/fhir_get_list_by_resource_type_response.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/get/fhir_get_list_response.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/get/fhir_get_response_factory.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/get/fhir_get_single_response.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/get/test/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/get/test/test_get_bundle_response.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/get/test/test_get_error_response.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/get/test/test_get_list_by_resource_type_response.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/get/test/test_get_list_response.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/get/test/test_get_response_factory.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/get/test/test_get_single_response.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/get_result.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/merge/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/merge/base_fhir_merge_resource_response_entry.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/merge/fhir_merge_resource_response.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/merge/fhir_merge_resource_response_entry.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/merge/fhir_merge_response_entry_issue.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/paging_result.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/resource_separator.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/test/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/test/fhir_response_processor/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/test/fhir_response_processor/test_expand_or_separate_bundle_async.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/test/fhir_response_processor/test_handle_response_200.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/test/fhir_response_processor/test_handle_response_200_non_streaming.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/test/fhir_response_processor/test_handle_response_200_non_streaming_separate_bundle.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/test/fhir_response_processor/test_handle_response_200_streaming.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/test/fhir_response_processor/test_handle_response_200_streaming_separate_bundle.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/test/fhir_response_processor/test_handle_response_200_streaming_separate_bundle_ndjson.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/test/fhir_response_processor/test_handle_response_404.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/test/test_bundle_expander.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/test/test_fhir_get_response.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/responses/test/test_resource_separator.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/structures/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/structures/get_access_token_result.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/test/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/test/test_delete_mixin.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/test/test_fhir_auth_mixin.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/test/test_fhir_bundle_appender.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/test/test_merge_mixin.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/test/test_merge_mixin_resources.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/async_parallel_processor/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/async_parallel_processor/v1/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/async_parallel_processor/v1/async_parallel_processor.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/async_runner.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/cache/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/cache/request_cache.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/cache/request_cache_entry.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/fhir_client_logger.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/fhir_helper.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/fhir_scope_parser.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/fhir_scope_parser_result.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/fhir_server_helpers.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/hash_util.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/list_chunker.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/ndjson_chunk_streaming_parser.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/practitioner_generator.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/retryable_aiohttp_response.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/retryable_aiohttp_url_result.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/size_calculator/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/size_calculator/size_calculator.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/test/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/test/test_async_runner.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/test/test_fhir_scope_parser.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/test/test_fhir_scope_parser_can_parse_scopes.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/test/test_fhir_scope_parser_correct_allow.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/test/test_json_helpers.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/test/test_list_chunker.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/test/test_ndjson_chunk_streaming_parser.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/test/test_retryable_aiohttp_client.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/utilities/url_checker.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/validators/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/validators/fhir_validator.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/validators/test/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/validators/test/test_async_fhir_validator.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/well_known_configuration.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/pyproject.toml +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/setup.cfg +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/setup.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/fhir_server/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/fhir_server/test_async_real_fhir_server_get_graph_large.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/fhir_server/test_async_real_fhir_server_get_patients_large.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/graph/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/graph/test_fhir_graph.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/graph/test_fhir_graph_multiple_ids.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/graph/test_fhir_graph_multiple_ids_in_batches.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/simulated_graph/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/simulated_graph/test_fhir_simulated_graph_async.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/simulated_graph/test_fhir_simulated_graph_caching_async.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/simulated_graph/test_fhir_simulated_graph_caching_input_cache_async.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/simulated_graph/test_fhir_simulated_graph_caching_input_cache_if_modified_since_async.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/simulated_graph/test_fhir_simulated_graph_caching_scope_parser_async.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/simulated_graph/test_fhir_simulated_graph_separate_resources_async.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/simulated_graph/test_fhir_simulated_graph_with_errors_async.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/simulated_graph/test_fhir_simulated_graph_with_operation_outcomes_async.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/simulated_graph/test_fhir_simulated_graph_with_url_column_async.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/simulated_graph_practitioner/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/simulated_graph_practitioner/test_fhir_simulated_graph_multiple_practitioner_async.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/simulated_graph_practitioner/test_fhir_simulated_graph_multiple_practitioner_in_one_call_async.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/simulated_graph_practitioner/test_fhir_simulated_graph_multiple_practitioner_in_one_call_async_with_request_size.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/simulated_graph_practitioner/test_fhir_simulated_graph_practitioner_async.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/simulated_graph_practitioner/test_fhir_simulated_graph_practitioner_separate_resources_async.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_async_fhir_client_bundle/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_async_fhir_client_bundle/not_expanded/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_async_fhir_client_bundle/not_expanded/test_fhir_client_bundle_not_expanded.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_async_fhir_client_bundle/not_separated/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_async_fhir_client_bundle/not_separated/test_fhir_client_bundle_not_separated.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_async_fhir_client_bundle/separated/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_async_fhir_client_bundle/separated/test_fhir_client_bundle_separated.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_async_fhir_client_fetch_response_in_chunks.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_async_fhir_client_patient_by_id.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_async_fhir_client_patient_by_identifier_missing.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_async_fhir_client_patient_delete.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_async_fhir_client_patient_list.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_async_fhir_client_patient_list_auth_fail.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_async_fhir_client_patient_list_auth_fail_retry.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_async_fhir_client_patient_list_auth_fail_retry_custom_refresh_function.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_async_fhir_client_patient_list_resource_streaming.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_async_fhir_client_patient_list_streaming.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_async_fhir_client_patient_merge.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_async_fhir_client_patient_merge_with_validate.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_async_fhir_client_patient_update.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_async_real_fhir_server_get_patients.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_async_real_fhir_server_get_patients_error.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_benchmark_compress.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/async/test_benchmark_merge.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/logger_for_test.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/sync/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/sync/graph/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/sync/graph/test_fhir_graph.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/sync/test_fhir_client_bundle/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/sync/test_fhir_client_bundle/not_expanded/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/sync/test_fhir_client_bundle/not_expanded/test_fhir_client_bundle_not_expanded.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/sync/test_fhir_client_bundle/not_separated/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/sync/test_fhir_client_bundle/not_separated/test_fhir_client_bundle_not_separated.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/sync/test_fhir_client_bundle/separated/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/sync/test_fhir_client_bundle/separated/test_fhir_client_bundle_separated.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/sync/test_fhir_client_logs_not_contains_secret_information.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/sync/test_fhir_client_patient_by_id.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/sync/test_fhir_client_patient_delete.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/sync/test_fhir_client_patient_list.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/sync/test_fhir_client_patient_list_auth_fail.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/sync/test_fhir_client_patient_list_auth_fail_retry.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/sync/test_fhir_client_patient_merge.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/sync/test_fhir_client_patient_update.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/sync/test_fhir_client_patient_update_patch.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/test_fhir_client_clone.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests/test_get_nested_property.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests_integration/__init__.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests_integration/test_aetna_server_auth.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests_integration/test_aetna_server_auth_aiohttp.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests_integration/test_aetna_server_auth_httpx.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests_integration/test_dev_server_auth.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests_integration/test_dev_server_no_auth.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests_integration/test_emr_server_auth.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests_integration/test_firely_fhir.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests_integration/test_merge_vs_smart_merge_behavior.py +0 -0
- {helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/tests_integration/test_staging_server_graph.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: helix.fhir.client.sdk
|
|
3
|
-
Version: 4.2.
|
|
3
|
+
Version: 4.2.17
|
|
4
4
|
Summary: helix.fhir.client.sdk
|
|
5
5
|
Home-page: https://github.com/icanbwell/helix.fhir.client.sdk
|
|
6
6
|
Author: Imran Qureshi
|
|
@@ -111,9 +111,46 @@ response: Optional[FhirGetResponse] = await FhirGetResponse.from_async_generator
|
|
|
111
111
|
```
|
|
112
112
|
|
|
113
113
|
# Data Streaming
|
|
114
|
-
For FHIR servers that support data streaming (e.g., b.well FHIR server), you can just set the `use_data_streaming` parameter to stream the data as it
|
|
114
|
+
For FHIR servers that support data streaming (e.g., b.well FHIR server), you can just set the `use_data_streaming` parameter to stream the data as it is received.
|
|
115
115
|
The data will be streamed in AsyncGenerators as described above.
|
|
116
116
|
|
|
117
|
+
# Persistent Sessions (Connection Reuse)
|
|
118
|
+
By default, the SDK creates a new HTTP session for each request. For better performance (~4× faster),
|
|
119
|
+
you can use persistent sessions to reuse connections across multiple requests.
|
|
120
|
+
|
|
121
|
+
**Important**: When you provide a custom session factory using `use_http_session()`, YOU are responsible
|
|
122
|
+
for managing the session lifecycle, including closing it when done. The SDK will NOT automatically close
|
|
123
|
+
user-provided sessions.
|
|
124
|
+
|
|
125
|
+
```python
|
|
126
|
+
import aiohttp
|
|
127
|
+
from helix_fhir_client_sdk.fhir_client import FhirClient
|
|
128
|
+
|
|
129
|
+
# Create a persistent session for connection reuse
|
|
130
|
+
session = aiohttp.ClientSession()
|
|
131
|
+
|
|
132
|
+
try:
|
|
133
|
+
# Configure FhirClient to use persistent session
|
|
134
|
+
fhir_client = (
|
|
135
|
+
FhirClient()
|
|
136
|
+
.url("https://fhir.example.com")
|
|
137
|
+
.resource("Patient")
|
|
138
|
+
.use_http_session(lambda: session) # User provides session factory
|
|
139
|
+
)
|
|
140
|
+
|
|
141
|
+
# Multiple requests reuse the same connection (~4× performance boost)
|
|
142
|
+
response1 = await fhir_client.get_async()
|
|
143
|
+
response2 = await fhir_client.clone().resource("Observation").get_async()
|
|
144
|
+
|
|
145
|
+
finally:
|
|
146
|
+
# User must close the session when done
|
|
147
|
+
await session.close()
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
**Session Lifecycle Rules**:
|
|
151
|
+
- **No custom factory** (default): SDK creates and closes the session automatically
|
|
152
|
+
- **Custom factory provided**: User is responsible for closing the session
|
|
153
|
+
|
|
117
154
|
# Storage Compression
|
|
118
155
|
The FHIR client SDK supports two types of compression:
|
|
119
156
|
|
|
@@ -75,9 +75,46 @@ response: Optional[FhirGetResponse] = await FhirGetResponse.from_async_generator
|
|
|
75
75
|
```
|
|
76
76
|
|
|
77
77
|
# Data Streaming
|
|
78
|
-
For FHIR servers that support data streaming (e.g., b.well FHIR server), you can just set the `use_data_streaming` parameter to stream the data as it
|
|
78
|
+
For FHIR servers that support data streaming (e.g., b.well FHIR server), you can just set the `use_data_streaming` parameter to stream the data as it is received.
|
|
79
79
|
The data will be streamed in AsyncGenerators as described above.
|
|
80
80
|
|
|
81
|
+
# Persistent Sessions (Connection Reuse)
|
|
82
|
+
By default, the SDK creates a new HTTP session for each request. For better performance (~4× faster),
|
|
83
|
+
you can use persistent sessions to reuse connections across multiple requests.
|
|
84
|
+
|
|
85
|
+
**Important**: When you provide a custom session factory using `use_http_session()`, YOU are responsible
|
|
86
|
+
for managing the session lifecycle, including closing it when done. The SDK will NOT automatically close
|
|
87
|
+
user-provided sessions.
|
|
88
|
+
|
|
89
|
+
```python
|
|
90
|
+
import aiohttp
|
|
91
|
+
from helix_fhir_client_sdk.fhir_client import FhirClient
|
|
92
|
+
|
|
93
|
+
# Create a persistent session for connection reuse
|
|
94
|
+
session = aiohttp.ClientSession()
|
|
95
|
+
|
|
96
|
+
try:
|
|
97
|
+
# Configure FhirClient to use persistent session
|
|
98
|
+
fhir_client = (
|
|
99
|
+
FhirClient()
|
|
100
|
+
.url("https://fhir.example.com")
|
|
101
|
+
.resource("Patient")
|
|
102
|
+
.use_http_session(lambda: session) # User provides session factory
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
# Multiple requests reuse the same connection (~4× performance boost)
|
|
106
|
+
response1 = await fhir_client.get_async()
|
|
107
|
+
response2 = await fhir_client.clone().resource("Observation").get_async()
|
|
108
|
+
|
|
109
|
+
finally:
|
|
110
|
+
# User must close the session when done
|
|
111
|
+
await session.close()
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
**Session Lifecycle Rules**:
|
|
115
|
+
- **No custom factory** (default): SDK creates and closes the session automatically
|
|
116
|
+
- **Custom factory provided**: User is responsible for closing the session
|
|
117
|
+
|
|
81
118
|
# Storage Compression
|
|
82
119
|
The FHIR client SDK supports two types of compression:
|
|
83
120
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4.2.17
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: helix.fhir.client.sdk
|
|
3
|
-
Version: 4.2.
|
|
3
|
+
Version: 4.2.17
|
|
4
4
|
Summary: helix.fhir.client.sdk
|
|
5
5
|
Home-page: https://github.com/icanbwell/helix.fhir.client.sdk
|
|
6
6
|
Author: Imran Qureshi
|
|
@@ -111,9 +111,46 @@ response: Optional[FhirGetResponse] = await FhirGetResponse.from_async_generator
|
|
|
111
111
|
```
|
|
112
112
|
|
|
113
113
|
# Data Streaming
|
|
114
|
-
For FHIR servers that support data streaming (e.g., b.well FHIR server), you can just set the `use_data_streaming` parameter to stream the data as it
|
|
114
|
+
For FHIR servers that support data streaming (e.g., b.well FHIR server), you can just set the `use_data_streaming` parameter to stream the data as it is received.
|
|
115
115
|
The data will be streamed in AsyncGenerators as described above.
|
|
116
116
|
|
|
117
|
+
# Persistent Sessions (Connection Reuse)
|
|
118
|
+
By default, the SDK creates a new HTTP session for each request. For better performance (~4× faster),
|
|
119
|
+
you can use persistent sessions to reuse connections across multiple requests.
|
|
120
|
+
|
|
121
|
+
**Important**: When you provide a custom session factory using `use_http_session()`, YOU are responsible
|
|
122
|
+
for managing the session lifecycle, including closing it when done. The SDK will NOT automatically close
|
|
123
|
+
user-provided sessions.
|
|
124
|
+
|
|
125
|
+
```python
|
|
126
|
+
import aiohttp
|
|
127
|
+
from helix_fhir_client_sdk.fhir_client import FhirClient
|
|
128
|
+
|
|
129
|
+
# Create a persistent session for connection reuse
|
|
130
|
+
session = aiohttp.ClientSession()
|
|
131
|
+
|
|
132
|
+
try:
|
|
133
|
+
# Configure FhirClient to use persistent session
|
|
134
|
+
fhir_client = (
|
|
135
|
+
FhirClient()
|
|
136
|
+
.url("https://fhir.example.com")
|
|
137
|
+
.resource("Patient")
|
|
138
|
+
.use_http_session(lambda: session) # User provides session factory
|
|
139
|
+
)
|
|
140
|
+
|
|
141
|
+
# Multiple requests reuse the same connection (~4× performance boost)
|
|
142
|
+
response1 = await fhir_client.get_async()
|
|
143
|
+
response2 = await fhir_client.clone().resource("Observation").get_async()
|
|
144
|
+
|
|
145
|
+
finally:
|
|
146
|
+
# User must close the session when done
|
|
147
|
+
await session.close()
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
**Session Lifecycle Rules**:
|
|
151
|
+
- **No custom factory** (default): SDK creates and closes the session automatically
|
|
152
|
+
- **Custom factory provided**: User is responsible for closing the session
|
|
153
|
+
|
|
117
154
|
# Storage Compression
|
|
118
155
|
The FHIR client SDK supports two types of compression:
|
|
119
156
|
|
|
@@ -166,6 +166,7 @@ tests/async/test_async_real_fhir_server_get_patients.py
|
|
|
166
166
|
tests/async/test_async_real_fhir_server_get_patients_error.py
|
|
167
167
|
tests/async/test_benchmark_compress.py
|
|
168
168
|
tests/async/test_benchmark_merge.py
|
|
169
|
+
tests/async/test_retryable_client_session_management.py
|
|
169
170
|
tests/async/fhir_server/__init__.py
|
|
170
171
|
tests/async/fhir_server/test_async_real_fhir_server_get_graph_large.py
|
|
171
172
|
tests/async/fhir_server/test_async_real_fhir_server_get_patients_large.py
|
|
@@ -170,7 +170,8 @@ class FhirAuthMixin(FhirClientProtocol):
|
|
|
170
170
|
:return: auth server url or None
|
|
171
171
|
"""
|
|
172
172
|
async with RetryableAioHttpClient(
|
|
173
|
-
fn_get_session=
|
|
173
|
+
fn_get_session=self._fn_create_http_session or self.create_http_session,
|
|
174
|
+
caller_managed_session=self._fn_create_http_session is not None,
|
|
174
175
|
exclude_status_codes_from_retry=[404],
|
|
175
176
|
throw_exception_on_error=False,
|
|
176
177
|
use_data_streaming=False,
|
|
@@ -272,7 +273,8 @@ class FhirAuthMixin(FhirClientProtocol):
|
|
|
272
273
|
}
|
|
273
274
|
|
|
274
275
|
async with RetryableAioHttpClient(
|
|
275
|
-
fn_get_session=
|
|
276
|
+
fn_get_session=self._fn_create_http_session or self.create_http_session,
|
|
277
|
+
caller_managed_session=self._fn_create_http_session is not None,
|
|
276
278
|
use_data_streaming=False,
|
|
277
279
|
compress=False,
|
|
278
280
|
exclude_status_codes_from_retry=None,
|
{helix_fhir_client_sdk-4.2.15 → helix_fhir_client_sdk-4.2.17}/helix_fhir_client_sdk/fhir_client.py
RENAMED
|
@@ -488,6 +488,37 @@ class FhirClient(
|
|
|
488
488
|
implementation. This allows for custom session management, connection pooling,
|
|
489
489
|
or persistent session support.
|
|
490
490
|
|
|
491
|
+
**Important**: When you provide a custom session factory, YOU are responsible
|
|
492
|
+
for managing the session lifecycle, including closing it when done. The SDK
|
|
493
|
+
will NOT automatically close user-provided sessions.
|
|
494
|
+
|
|
495
|
+
Example with a persistent session for connection reuse (~4× performance boost):
|
|
496
|
+
|
|
497
|
+
.. code-block:: python
|
|
498
|
+
|
|
499
|
+
import aiohttp
|
|
500
|
+
from helix_fhir_client_sdk.fhir_client import FhirClient
|
|
501
|
+
|
|
502
|
+
# Create persistent session
|
|
503
|
+
session = aiohttp.ClientSession()
|
|
504
|
+
|
|
505
|
+
try:
|
|
506
|
+
# Configure FhirClient to use persistent session
|
|
507
|
+
fhir_client = (
|
|
508
|
+
FhirClient()
|
|
509
|
+
.url("http://fhir.example.com")
|
|
510
|
+
.resource("Patient")
|
|
511
|
+
.use_http_session(lambda: session) # User provides session
|
|
512
|
+
)
|
|
513
|
+
|
|
514
|
+
# Multiple requests reuse the same connection
|
|
515
|
+
response1 = await fhir_client.get_async()
|
|
516
|
+
response2 = await fhir_client.clone().resource("Observation").get_async()
|
|
517
|
+
|
|
518
|
+
finally:
|
|
519
|
+
# User must close the session when done
|
|
520
|
+
await session.close()
|
|
521
|
+
|
|
491
522
|
:param fn_create_http_session: callable that returns a ClientSession, or None to use default
|
|
492
523
|
"""
|
|
493
524
|
self._fn_create_http_session = fn_create_http_session
|
|
@@ -815,16 +846,13 @@ class FhirClient(
|
|
|
815
846
|
|
|
816
847
|
def create_http_session(self) -> ClientSession:
|
|
817
848
|
"""
|
|
818
|
-
Creates
|
|
849
|
+
Creates the SDK's default HTTP Session.
|
|
819
850
|
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
"""
|
|
823
|
-
# Use a custom session factory if provided
|
|
824
|
-
if self._fn_create_http_session is not None:
|
|
825
|
-
return self._fn_create_http_session()
|
|
851
|
+
This method always creates a new aiohttp ClientSession with standard configuration.
|
|
852
|
+
The SDK manages the lifecycle of sessions created by this method.
|
|
826
853
|
|
|
827
|
-
|
|
854
|
+
Note: If you want to provide your own session factory, use use_http_session() instead.
|
|
855
|
+
"""
|
|
828
856
|
trace_config = aiohttp.TraceConfig()
|
|
829
857
|
# trace_config.on_request_start.append(on_request_start)
|
|
830
858
|
if self._log_level == "DEBUG":
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import json
|
|
2
2
|
|
|
3
3
|
from furl import furl
|
|
4
|
+
from opentelemetry import trace
|
|
5
|
+
from opentelemetry.trace import Status, StatusCode
|
|
4
6
|
|
|
7
|
+
from helix_fhir_client_sdk.open_telemetry.attribute_names import FhirClientSdkOpenTelemetryAttributeNames
|
|
8
|
+
from helix_fhir_client_sdk.open_telemetry.span_names import FhirClientSdkOpenTelemetrySpanNames
|
|
5
9
|
from helix_fhir_client_sdk.responses.fhir_client_protocol import FhirClientProtocol
|
|
6
10
|
from helix_fhir_client_sdk.responses.fhir_delete_response import FhirDeleteResponse
|
|
7
11
|
from helix_fhir_client_sdk.structures.get_access_token_result import (
|
|
@@ -15,6 +19,8 @@ from helix_fhir_client_sdk.utilities.retryable_aiohttp_response import (
|
|
|
15
19
|
RetryableAioHttpResponse,
|
|
16
20
|
)
|
|
17
21
|
|
|
22
|
+
TRACER = trace.get_tracer(__name__)
|
|
23
|
+
|
|
18
24
|
|
|
19
25
|
class FhirDeleteMixin(FhirClientProtocol):
|
|
20
26
|
async def delete_async(self) -> FhirDeleteResponse:
|
|
@@ -29,50 +35,60 @@ class FhirDeleteMixin(FhirClientProtocol):
|
|
|
29
35
|
raise ValueError("delete requires the ID of FHIR object to delete")
|
|
30
36
|
if not self._resource:
|
|
31
37
|
raise ValueError("delete requires a FHIR resource type")
|
|
32
|
-
full_uri: furl = furl(self._url)
|
|
33
|
-
full_uri /= self._resource
|
|
34
|
-
full_uri /= id_list
|
|
35
|
-
# setup retry
|
|
36
|
-
# set up headers
|
|
37
|
-
headers: dict[str, str] = {}
|
|
38
|
-
headers.update(self._additional_request_headers)
|
|
39
|
-
self._internal_logger.debug(f"Request headers: {headers}")
|
|
40
|
-
|
|
41
|
-
access_token_result: GetAccessTokenResult = await self.get_access_token_async()
|
|
42
|
-
access_token: str | None = access_token_result.access_token
|
|
43
|
-
# set access token in request if present
|
|
44
|
-
if access_token:
|
|
45
|
-
headers["Authorization"] = f"Bearer {access_token}"
|
|
46
38
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
39
|
+
with TRACER.start_as_current_span(FhirClientSdkOpenTelemetrySpanNames.DELETE) as span:
|
|
40
|
+
span.set_attribute(FhirClientSdkOpenTelemetryAttributeNames.URL, self._url or "")
|
|
41
|
+
span.set_attribute(FhirClientSdkOpenTelemetryAttributeNames.RESOURCE, self._resource or "")
|
|
42
|
+
try:
|
|
43
|
+
full_uri: furl = furl(self._url)
|
|
44
|
+
full_uri /= self._resource
|
|
45
|
+
full_uri /= id_list
|
|
46
|
+
# setup retry
|
|
47
|
+
# set up headers
|
|
48
|
+
headers: dict[str, str] = {}
|
|
49
|
+
headers.update(self._additional_request_headers)
|
|
50
|
+
self._internal_logger.debug(f"Request headers: {headers}")
|
|
51
|
+
|
|
52
|
+
access_token_result: GetAccessTokenResult = await self.get_access_token_async()
|
|
53
|
+
access_token: str | None = access_token_result.access_token
|
|
54
|
+
# set access token in request if present
|
|
55
|
+
if access_token:
|
|
56
|
+
headers["Authorization"] = f"Bearer {access_token}"
|
|
57
|
+
|
|
58
|
+
async with RetryableAioHttpClient(
|
|
59
|
+
fn_get_session=self._fn_create_http_session or self.create_http_session,
|
|
60
|
+
caller_managed_session=self._fn_create_http_session is not None,
|
|
61
|
+
refresh_token_func=self._refresh_token_function,
|
|
62
|
+
retries=self._retry_count,
|
|
63
|
+
exclude_status_codes_from_retry=self._exclude_status_codes_from_retry,
|
|
64
|
+
use_data_streaming=self._use_data_streaming,
|
|
65
|
+
compress=False,
|
|
66
|
+
throw_exception_on_error=self._throw_exception_on_error,
|
|
67
|
+
log_all_url_results=self._log_all_response_urls,
|
|
68
|
+
access_token=self._access_token,
|
|
69
|
+
access_token_expiry_date=self._access_token_expiry_date,
|
|
70
|
+
tracer_request_func=self._trace_request_function,
|
|
71
|
+
) as client:
|
|
72
|
+
response: RetryableAioHttpResponse = await client.delete(url=full_uri.tostr(), headers=headers)
|
|
73
|
+
request_id = response.response_headers.get("X-Request-ID", None)
|
|
74
|
+
self._internal_logger.debug(f"X-Request-ID={request_id}")
|
|
75
|
+
if response.status == 200:
|
|
76
|
+
if self._logger:
|
|
77
|
+
self._logger.info(f"Successfully deleted: {full_uri}")
|
|
78
|
+
|
|
79
|
+
return FhirDeleteResponse(
|
|
80
|
+
request_id=request_id,
|
|
81
|
+
url=full_uri.tostr(),
|
|
82
|
+
responses=await response.get_text_async(),
|
|
83
|
+
error=f"{response.status}" if not response.status == 200 else None,
|
|
84
|
+
access_token=access_token,
|
|
85
|
+
status=response.status,
|
|
86
|
+
resource_type=self._resource,
|
|
87
|
+
)
|
|
88
|
+
except Exception as e:
|
|
89
|
+
span.record_exception(e)
|
|
90
|
+
span.set_status(Status(StatusCode.ERROR, str(e)))
|
|
91
|
+
raise
|
|
76
92
|
|
|
77
93
|
def delete(self) -> FhirDeleteResponse:
|
|
78
94
|
"""
|
|
@@ -114,7 +130,8 @@ class FhirDeleteMixin(FhirClientProtocol):
|
|
|
114
130
|
headers["Authorization"] = f"Bearer {access_token}"
|
|
115
131
|
|
|
116
132
|
async with RetryableAioHttpClient(
|
|
117
|
-
fn_get_session=
|
|
133
|
+
fn_get_session=self._fn_create_http_session or self.create_http_session,
|
|
134
|
+
caller_managed_session=self._fn_create_http_session is not None,
|
|
118
135
|
refresh_token_func=self._refresh_token_function,
|
|
119
136
|
retries=self._retry_count,
|
|
120
137
|
exclude_status_codes_from_retry=self._exclude_status_codes_from_retry,
|