phenoml 0.0.2__py3-none-any.whl → 0.0.15__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 (137) hide show
  1. phenoml/agent/__init__.py +6 -8
  2. phenoml/agent/client.py +85 -67
  3. phenoml/agent/raw_client.py +61 -77
  4. phenoml/agent/types/__init__.py +6 -8
  5. phenoml/agent/types/agent_create_request.py +53 -0
  6. phenoml/agent/types/agent_create_request_provider.py +5 -0
  7. phenoml/agent/types/agent_template.py +3 -6
  8. phenoml/agent/types/agent_template_provider.py +5 -0
  9. phenoml/agent/types/json_patch_operation.py +5 -1
  10. phenoml/client.py +12 -0
  11. phenoml/construe/__init__.py +2 -16
  12. phenoml/construe/client.py +0 -90
  13. phenoml/construe/raw_client.py +0 -180
  14. phenoml/construe/types/__init__.py +2 -20
  15. phenoml/construe/types/extract_request_config.py +33 -4
  16. phenoml/construe/types/extract_request_config_chunking_method.py +3 -1
  17. phenoml/construe/types/extract_request_config_validation_method.py +5 -0
  18. phenoml/construe/types/extract_request_system.py +2 -0
  19. phenoml/core/client_wrapper.py +2 -2
  20. phenoml/fhir/__init__.py +36 -0
  21. phenoml/fhir/client.py +1072 -0
  22. phenoml/fhir/errors/__init__.py +10 -0
  23. phenoml/fhir/errors/bad_request_error.py +10 -0
  24. phenoml/fhir/errors/internal_server_error.py +10 -0
  25. phenoml/fhir/errors/not_found_error.py +10 -0
  26. phenoml/fhir/errors/unauthorized_error.py +10 -0
  27. phenoml/fhir/raw_client.py +1469 -0
  28. phenoml/fhir/types/__init__.py +29 -0
  29. phenoml/{agent/types/chat_fhir_client_config.py → fhir/types/error_response.py} +11 -6
  30. phenoml/fhir/types/fhir_bundle.py +43 -0
  31. phenoml/fhir/types/fhir_bundle_entry_item.py +34 -0
  32. phenoml/fhir/types/fhir_bundle_entry_item_request.py +25 -0
  33. phenoml/fhir/types/fhir_bundle_entry_item_request_method.py +5 -0
  34. phenoml/{construe/types/bad_request_error_body.py → fhir/types/fhir_bundle_entry_item_response.py} +4 -7
  35. phenoml/fhir/types/fhir_patch_request_body_item.py +40 -0
  36. phenoml/fhir/types/fhir_patch_request_body_item_op.py +7 -0
  37. phenoml/fhir/types/fhir_resource.py +40 -0
  38. phenoml/fhir/types/fhir_resource_meta.py +28 -0
  39. phenoml/fhir/types/fhir_search_response.py +8 -0
  40. phenoml/fhir_provider/__init__.py +45 -0
  41. phenoml/fhir_provider/client.py +748 -0
  42. phenoml/fhir_provider/errors/__init__.py +11 -0
  43. phenoml/fhir_provider/errors/bad_request_error.py +10 -0
  44. phenoml/fhir_provider/errors/forbidden_error.py +10 -0
  45. phenoml/fhir_provider/errors/internal_server_error.py +10 -0
  46. phenoml/fhir_provider/errors/not_found_error.py +10 -0
  47. phenoml/fhir_provider/errors/unauthorized_error.py +10 -0
  48. phenoml/fhir_provider/raw_client.py +1462 -0
  49. phenoml/fhir_provider/types/__init__.py +37 -0
  50. phenoml/fhir_provider/types/auth_method.py +7 -0
  51. phenoml/fhir_provider/types/fhir_provider_auth_config.py +53 -0
  52. phenoml/fhir_provider/types/fhir_provider_delete_response.py +20 -0
  53. phenoml/fhir_provider/types/fhir_provider_list_response.py +22 -0
  54. phenoml/fhir_provider/types/fhir_provider_remove_auth_config_response.py +22 -0
  55. phenoml/fhir_provider/types/fhir_provider_response.py +22 -0
  56. phenoml/fhir_provider/types/fhir_provider_set_active_auth_config_response.py +22 -0
  57. phenoml/fhir_provider/types/fhir_provider_template.py +66 -0
  58. phenoml/fhir_provider/types/fhir_query_response.py +27 -0
  59. phenoml/fhir_provider/types/fhir_query_response_data.py +5 -0
  60. phenoml/fhir_provider/types/json_web_key.py +51 -0
  61. phenoml/fhir_provider/types/provider.py +8 -0
  62. phenoml/fhir_provider/types/role.py +27 -0
  63. phenoml/fhir_provider/types/service_account_key.py +35 -0
  64. phenoml/fhir_provider/types/smart_configuration.py +46 -0
  65. phenoml/summary/__init__.py +39 -0
  66. phenoml/summary/client.py +656 -0
  67. phenoml/summary/errors/__init__.py +11 -0
  68. phenoml/summary/errors/bad_request_error.py +10 -0
  69. phenoml/summary/errors/forbidden_error.py +10 -0
  70. phenoml/summary/errors/internal_server_error.py +10 -0
  71. phenoml/summary/errors/not_found_error.py +10 -0
  72. phenoml/summary/errors/unauthorized_error.py +10 -0
  73. phenoml/summary/raw_client.py +1190 -0
  74. phenoml/summary/types/__init__.py +31 -0
  75. phenoml/summary/types/create_summary_request_fhir_resources.py +8 -0
  76. phenoml/summary/types/create_summary_request_mode.py +5 -0
  77. phenoml/{agent/types/agent_fhir_config.py → summary/types/create_summary_response.py} +7 -9
  78. phenoml/summary/types/create_summary_template_response.py +23 -0
  79. phenoml/summary/types/fhir_bundle.py +23 -0
  80. phenoml/summary/types/fhir_bundle_entry_item.py +20 -0
  81. phenoml/summary/types/fhir_resource.py +24 -0
  82. phenoml/summary/types/summary_delete_template_response.py +20 -0
  83. phenoml/summary/types/summary_get_template_response.py +21 -0
  84. phenoml/summary/types/summary_list_templates_response.py +21 -0
  85. phenoml/summary/types/summary_template.py +41 -0
  86. phenoml/summary/types/summary_update_template_response.py +22 -0
  87. phenoml/tools/__init__.py +0 -8
  88. phenoml/tools/client.py +114 -44
  89. phenoml/tools/raw_client.py +86 -55
  90. phenoml/tools/types/__init__.py +0 -8
  91. phenoml/workflows/__init__.py +61 -0
  92. phenoml/workflows/client.py +694 -0
  93. phenoml/workflows/errors/__init__.py +11 -0
  94. phenoml/workflows/errors/bad_request_error.py +10 -0
  95. phenoml/workflows/errors/forbidden_error.py +10 -0
  96. phenoml/workflows/errors/internal_server_error.py +10 -0
  97. phenoml/workflows/errors/not_found_error.py +10 -0
  98. phenoml/workflows/errors/unauthorized_error.py +10 -0
  99. phenoml/workflows/raw_client.py +1266 -0
  100. phenoml/workflows/types/__init__.py +53 -0
  101. phenoml/workflows/types/create_workflow_request_fhir_provider_id.py +5 -0
  102. phenoml/workflows/types/create_workflow_response.py +44 -0
  103. phenoml/{tools/types/fhir_client_config.py → workflows/types/decision_node_definition.py} +7 -6
  104. phenoml/workflows/types/execute_workflow_response.py +30 -0
  105. phenoml/{construe/types/unauthorized_error_body.py → workflows/types/execute_workflow_response_results.py} +3 -8
  106. phenoml/workflows/types/lang2fhir_create_definition.py +37 -0
  107. phenoml/workflows/types/lang2fhir_search_definition.py +42 -0
  108. phenoml/workflows/types/list_workflows_response.py +39 -0
  109. phenoml/workflows/types/step_operation.py +26 -0
  110. phenoml/{construe/types/construe_cohort_response_queries_item_code_extract_results_item_codes_item.py → workflows/types/sub_workflow_definition.py} +7 -7
  111. phenoml/workflows/types/update_workflow_request_fhir_provider_id.py +5 -0
  112. phenoml/workflows/types/workflow_config.py +27 -0
  113. phenoml/workflows/types/workflow_definition.py +57 -0
  114. phenoml/{construe/types/internal_server_error_body.py → workflows/types/workflow_graph.py} +4 -8
  115. phenoml/workflows/types/workflow_response.py +61 -0
  116. phenoml/workflows/types/workflow_response_graph.py +23 -0
  117. phenoml/workflows/types/workflow_step.py +55 -0
  118. phenoml/workflows/types/workflow_step_summary.py +47 -0
  119. phenoml/workflows/types/workflow_step_summary_type.py +5 -0
  120. phenoml/workflows/types/workflow_step_type.py +5 -0
  121. phenoml/workflows/types/workflows_delete_response.py +20 -0
  122. phenoml/workflows/types/workflows_get_response.py +26 -0
  123. phenoml/workflows/types/workflows_update_response.py +31 -0
  124. phenoml-0.0.15.dist-info/LICENSE +21 -0
  125. {phenoml-0.0.2.dist-info → phenoml-0.0.15.dist-info}/METADATA +1 -1
  126. phenoml-0.0.15.dist-info/RECORD +242 -0
  127. phenoml/agent/types/agent_provider.py +0 -7
  128. phenoml/agent/types/provider_type.py +0 -5
  129. phenoml/construe/types/construe_cohort_request_config.py +0 -37
  130. phenoml/construe/types/construe_cohort_response.py +0 -33
  131. phenoml/construe/types/construe_cohort_response_queries_item.py +0 -49
  132. phenoml/construe/types/construe_cohort_response_queries_item_code_extract_results_item.py +0 -31
  133. phenoml/tools/types/cohort_request_provider.py +0 -5
  134. phenoml/tools/types/lang2fhir_and_create_request_provider.py +0 -7
  135. phenoml/tools/types/lang2fhir_and_search_request_provider.py +0 -7
  136. phenoml-0.0.2.dist-info/RECORD +0 -153
  137. {phenoml-0.0.2.dist-info → phenoml-0.0.15.dist-info}/WHEEL +0 -0
@@ -0,0 +1,11 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ # isort: skip_file
4
+
5
+ from .bad_request_error import BadRequestError
6
+ from .forbidden_error import ForbiddenError
7
+ from .internal_server_error import InternalServerError
8
+ from .not_found_error import NotFoundError
9
+ from .unauthorized_error import UnauthorizedError
10
+
11
+ __all__ = ["BadRequestError", "ForbiddenError", "InternalServerError", "NotFoundError", "UnauthorizedError"]
@@ -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 BadRequestError(ApiError):
9
+ def __init__(self, body: typing.Optional[typing.Any], headers: typing.Optional[typing.Dict[str, str]] = None):
10
+ super().__init__(status_code=400, 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 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)