phenoml 0.0.6__py3-none-any.whl → 0.0.8__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 (54) hide show
  1. phenoml/client.py +3 -0
  2. phenoml/core/client_wrapper.py +2 -2
  3. phenoml/summary/__init__.py +39 -0
  4. phenoml/summary/client.py +656 -0
  5. phenoml/summary/errors/__init__.py +11 -0
  6. phenoml/summary/errors/bad_request_error.py +10 -0
  7. phenoml/summary/errors/forbidden_error.py +10 -0
  8. phenoml/summary/errors/internal_server_error.py +10 -0
  9. phenoml/summary/errors/not_found_error.py +10 -0
  10. phenoml/summary/errors/unauthorized_error.py +10 -0
  11. phenoml/{workflows/workflows → summary}/raw_client.py +236 -312
  12. phenoml/summary/types/__init__.py +31 -0
  13. phenoml/summary/types/create_summary_request_fhir_resources.py +8 -0
  14. phenoml/summary/types/create_summary_request_mode.py +5 -0
  15. phenoml/summary/types/create_summary_response.py +29 -0
  16. phenoml/summary/types/create_summary_template_response.py +23 -0
  17. phenoml/summary/types/fhir_bundle.py +23 -0
  18. phenoml/summary/types/fhir_bundle_entry_item.py +20 -0
  19. phenoml/summary/types/fhir_resource.py +24 -0
  20. phenoml/summary/types/summary_delete_template_response.py +20 -0
  21. phenoml/summary/types/summary_get_template_response.py +21 -0
  22. phenoml/summary/types/summary_list_templates_response.py +21 -0
  23. phenoml/summary/types/summary_template.py +41 -0
  24. phenoml/summary/types/summary_update_template_response.py +22 -0
  25. phenoml/workflows/__init__.py +3 -8
  26. phenoml/workflows/client.py +517 -33
  27. phenoml/workflows/raw_client.py +1129 -32
  28. phenoml/workflows/types/__init__.py +10 -0
  29. phenoml/workflows/{workflows/types → types}/workflows_delete_response.py +1 -1
  30. phenoml/workflows/{workflows/types → types}/workflows_get_response.py +3 -3
  31. phenoml/workflows/{workflows/types → types}/workflows_update_response.py +3 -3
  32. {phenoml-0.0.6.dist-info → phenoml-0.0.8.dist-info}/METADATA +1 -1
  33. {phenoml-0.0.6.dist-info → phenoml-0.0.8.dist-info}/RECORD +37 -33
  34. phenoml/types/__init__.py +0 -21
  35. phenoml/types/cohort_response.py +0 -5
  36. phenoml/types/lang2fhir_and_create_response.py +0 -5
  37. phenoml/types/lang2fhir_and_search_response.py +0 -5
  38. phenoml/types/mcp_server_response.py +0 -5
  39. phenoml/types/mcp_server_tool_call_response.py +0 -5
  40. phenoml/types/mcp_server_tool_response.py +0 -5
  41. phenoml/types/search_concept.py +0 -5
  42. phenoml/workflows/mcp_server/__init__.py +0 -7
  43. phenoml/workflows/mcp_server/client.py +0 -274
  44. phenoml/workflows/mcp_server/raw_client.py +0 -226
  45. phenoml/workflows/mcp_server/tools/__init__.py +0 -4
  46. phenoml/workflows/mcp_server/tools/client.py +0 -287
  47. phenoml/workflows/mcp_server/tools/raw_client.py +0 -244
  48. phenoml/workflows/workflows/__init__.py +0 -19
  49. phenoml/workflows/workflows/client.py +0 -694
  50. phenoml/workflows/workflows/types/__init__.py +0 -17
  51. /phenoml/workflows/{workflows/types → types}/create_workflow_request_fhir_provider_id.py +0 -0
  52. /phenoml/workflows/{workflows/types → types}/update_workflow_request_fhir_provider_id.py +0 -0
  53. {phenoml-0.0.6.dist-info → phenoml-0.0.8.dist-info}/LICENSE +0 -0
  54. {phenoml-0.0.6.dist-info → phenoml-0.0.8.dist-info}/WHEEL +0 -0
phenoml/client.py CHANGED
@@ -12,6 +12,7 @@ from .environment import phenomlEnvironment
12
12
  from .fhir.client import AsyncFhirClient, FhirClient
13
13
  from .fhir_provider.client import AsyncFhirProviderClient, FhirProviderClient
14
14
  from .lang2fhir.client import AsyncLang2FhirClient, Lang2FhirClient
15
+ from .summary.client import AsyncSummaryClient, SummaryClient
15
16
  from .tools.client import AsyncToolsClient, ToolsClient
16
17
  from .workflows.client import AsyncWorkflowsClient, WorkflowsClient
17
18
 
@@ -88,6 +89,7 @@ class phenoml:
88
89
  self.fhir = FhirClient(client_wrapper=self._client_wrapper)
89
90
  self.fhir_provider = FhirProviderClient(client_wrapper=self._client_wrapper)
90
91
  self.lang2fhir = Lang2FhirClient(client_wrapper=self._client_wrapper)
92
+ self.summary = SummaryClient(client_wrapper=self._client_wrapper)
91
93
  self.tools = ToolsClient(client_wrapper=self._client_wrapper)
92
94
  self.workflows = WorkflowsClient(client_wrapper=self._client_wrapper)
93
95
 
@@ -164,6 +166,7 @@ class Asyncphenoml:
164
166
  self.fhir = AsyncFhirClient(client_wrapper=self._client_wrapper)
165
167
  self.fhir_provider = AsyncFhirProviderClient(client_wrapper=self._client_wrapper)
166
168
  self.lang2fhir = AsyncLang2FhirClient(client_wrapper=self._client_wrapper)
169
+ self.summary = AsyncSummaryClient(client_wrapper=self._client_wrapper)
167
170
  self.tools = AsyncToolsClient(client_wrapper=self._client_wrapper)
168
171
  self.workflows = AsyncWorkflowsClient(client_wrapper=self._client_wrapper)
169
172
 
@@ -22,10 +22,10 @@ class BaseClientWrapper:
22
22
 
23
23
  def get_headers(self) -> typing.Dict[str, str]:
24
24
  headers: typing.Dict[str, str] = {
25
- "User-Agent": "phenoml/0.0.6",
25
+ "User-Agent": "phenoml/v0.0.8",
26
26
  "X-Fern-Language": "Python",
27
27
  "X-Fern-SDK-Name": "phenoml",
28
- "X-Fern-SDK-Version": "0.0.6",
28
+ "X-Fern-SDK-Version": "v0.0.8",
29
29
  **(self.get_custom_headers() or {}),
30
30
  }
31
31
  token = self._get_token()
@@ -0,0 +1,39 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ # isort: skip_file
4
+
5
+ from .types import (
6
+ CreateSummaryRequestFhirResources,
7
+ CreateSummaryRequestMode,
8
+ CreateSummaryResponse,
9
+ CreateSummaryTemplateResponse,
10
+ FhirBundle,
11
+ FhirBundleEntryItem,
12
+ FhirResource,
13
+ SummaryDeleteTemplateResponse,
14
+ SummaryGetTemplateResponse,
15
+ SummaryListTemplatesResponse,
16
+ SummaryTemplate,
17
+ SummaryUpdateTemplateResponse,
18
+ )
19
+ from .errors import BadRequestError, ForbiddenError, InternalServerError, NotFoundError, UnauthorizedError
20
+
21
+ __all__ = [
22
+ "BadRequestError",
23
+ "CreateSummaryRequestFhirResources",
24
+ "CreateSummaryRequestMode",
25
+ "CreateSummaryResponse",
26
+ "CreateSummaryTemplateResponse",
27
+ "FhirBundle",
28
+ "FhirBundleEntryItem",
29
+ "FhirResource",
30
+ "ForbiddenError",
31
+ "InternalServerError",
32
+ "NotFoundError",
33
+ "SummaryDeleteTemplateResponse",
34
+ "SummaryGetTemplateResponse",
35
+ "SummaryListTemplatesResponse",
36
+ "SummaryTemplate",
37
+ "SummaryUpdateTemplateResponse",
38
+ "UnauthorizedError",
39
+ ]