phenoml 0.0.7__py3-none-any.whl → 0.0.9__py3-none-any.whl

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.
Files changed (52) hide show
  1. phenoml/agent/client.py +38 -2
  2. phenoml/agent/raw_client.py +24 -0
  3. phenoml/client.py +7 -4
  4. phenoml/construe/__init__.py +2 -16
  5. phenoml/construe/client.py +0 -90
  6. phenoml/construe/raw_client.py +0 -180
  7. phenoml/construe/types/__init__.py +2 -20
  8. phenoml/construe/types/extract_request_config.py +33 -4
  9. phenoml/construe/types/extract_request_config_chunking_method.py +3 -1
  10. phenoml/construe/types/extract_request_config_validation_method.py +5 -0
  11. phenoml/construe/types/extract_request_system.py +2 -0
  12. phenoml/core/client_wrapper.py +8 -10
  13. phenoml/fhir/client.py +116 -14
  14. phenoml/fhir/raw_client.py +84 -0
  15. phenoml/fhir_provider/__init__.py +2 -0
  16. phenoml/fhir_provider/client.py +21 -4
  17. phenoml/fhir_provider/raw_client.py +23 -6
  18. phenoml/fhir_provider/types/__init__.py +2 -0
  19. phenoml/fhir_provider/types/auth_method.py +1 -1
  20. phenoml/fhir_provider/types/role.py +27 -0
  21. phenoml/summary/__init__.py +39 -0
  22. phenoml/summary/client.py +656 -0
  23. phenoml/summary/errors/__init__.py +11 -0
  24. phenoml/summary/errors/bad_request_error.py +10 -0
  25. phenoml/summary/errors/forbidden_error.py +10 -0
  26. phenoml/summary/errors/internal_server_error.py +10 -0
  27. phenoml/summary/errors/not_found_error.py +10 -0
  28. phenoml/summary/errors/unauthorized_error.py +10 -0
  29. phenoml/summary/raw_client.py +1190 -0
  30. phenoml/summary/types/__init__.py +31 -0
  31. phenoml/summary/types/create_summary_request_fhir_resources.py +8 -0
  32. phenoml/summary/types/create_summary_request_mode.py +5 -0
  33. phenoml/{construe/types/construe_cohort_response_queries_item_code_extract_results_item_codes_item.py → summary/types/create_summary_response.py} +7 -10
  34. phenoml/summary/types/create_summary_template_response.py +23 -0
  35. phenoml/summary/types/fhir_bundle.py +23 -0
  36. phenoml/{construe/types/bad_request_error_body.py → summary/types/fhir_bundle_entry_item.py} +3 -10
  37. phenoml/{construe/types/unauthorized_error_body.py → summary/types/fhir_resource.py} +5 -8
  38. phenoml/{construe/types/internal_server_error_body.py → summary/types/summary_delete_template_response.py} +3 -10
  39. phenoml/summary/types/summary_get_template_response.py +21 -0
  40. phenoml/summary/types/summary_list_templates_response.py +21 -0
  41. phenoml/summary/types/summary_template.py +41 -0
  42. phenoml/summary/types/summary_update_template_response.py +22 -0
  43. phenoml/tools/client.py +112 -6
  44. phenoml/tools/raw_client.py +82 -2
  45. {phenoml-0.0.7.dist-info → phenoml-0.0.9.dist-info}/METADATA +1 -1
  46. {phenoml-0.0.7.dist-info → phenoml-0.0.9.dist-info}/RECORD +48 -32
  47. phenoml/construe/types/construe_cohort_request_config.py +0 -37
  48. phenoml/construe/types/construe_cohort_response.py +0 -33
  49. phenoml/construe/types/construe_cohort_response_queries_item.py +0 -49
  50. phenoml/construe/types/construe_cohort_response_queries_item_code_extract_results_item.py +0 -31
  51. {phenoml-0.0.7.dist-info → phenoml-0.0.9.dist-info}/LICENSE +0 -0
  52. {phenoml-0.0.7.dist-info → phenoml-0.0.9.dist-info}/WHEEL +0 -0
@@ -0,0 +1,10 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ from ...core.api_error import ApiError
6
+
7
+
8
+ class ForbiddenError(ApiError):
9
+ def __init__(self, body: typing.Optional[typing.Any], headers: typing.Optional[typing.Dict[str, str]] = None):
10
+ super().__init__(status_code=403, headers=headers, body=body)
@@ -0,0 +1,10 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ from ...core.api_error import ApiError
6
+
7
+
8
+ class InternalServerError(ApiError):
9
+ def __init__(self, body: typing.Optional[typing.Any], headers: typing.Optional[typing.Dict[str, str]] = None):
10
+ super().__init__(status_code=500, headers=headers, body=body)
@@ -0,0 +1,10 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ from ...core.api_error import ApiError
6
+
7
+
8
+ class NotFoundError(ApiError):
9
+ def __init__(self, body: typing.Optional[typing.Any], headers: typing.Optional[typing.Dict[str, str]] = None):
10
+ super().__init__(status_code=404, headers=headers, body=body)
@@ -0,0 +1,10 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ from ...core.api_error import ApiError
6
+
7
+
8
+ class UnauthorizedError(ApiError):
9
+ def __init__(self, body: typing.Optional[typing.Any], headers: typing.Optional[typing.Dict[str, str]] = None):
10
+ super().__init__(status_code=401, headers=headers, body=body)