phenoml 2.1.0__py3-none-any.whl → 3.0.0__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.
- phenoml/core/client_wrapper.py +2 -2
- phenoml/lang2fhir/__init__.py +0 -2
- phenoml/lang2fhir/client.py +8 -15
- phenoml/lang2fhir/raw_client.py +6 -13
- phenoml/lang2fhir/types/__init__.py +0 -2
- {phenoml-2.1.0.dist-info → phenoml-3.0.0.dist-info}/METADATA +1 -1
- {phenoml-2.1.0.dist-info → phenoml-3.0.0.dist-info}/RECORD +9 -10
- phenoml/lang2fhir/types/document_request_file_type.py +0 -7
- {phenoml-2.1.0.dist-info → phenoml-3.0.0.dist-info}/LICENSE +0 -0
- {phenoml-2.1.0.dist-info → phenoml-3.0.0.dist-info}/WHEEL +0 -0
phenoml/core/client_wrapper.py
CHANGED
|
@@ -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/
|
|
25
|
+
"User-Agent": "phenoml/3.0.0",
|
|
26
26
|
"X-Fern-Language": "Python",
|
|
27
27
|
"X-Fern-SDK-Name": "phenoml",
|
|
28
|
-
"X-Fern-SDK-Version": "
|
|
28
|
+
"X-Fern-SDK-Version": "3.0.0",
|
|
29
29
|
**(self.get_custom_headers() or {}),
|
|
30
30
|
}
|
|
31
31
|
headers["Authorization"] = f"Bearer {self._get_token()}"
|
phenoml/lang2fhir/__init__.py
CHANGED
|
@@ -9,7 +9,6 @@ from .types import (
|
|
|
9
9
|
CreateMultiResponseBundleEntryItemRequest,
|
|
10
10
|
CreateMultiResponseResourcesItem,
|
|
11
11
|
CreateRequestResource,
|
|
12
|
-
DocumentRequestFileType,
|
|
13
12
|
DocumentRequestResource,
|
|
14
13
|
FhirResource,
|
|
15
14
|
Lang2FhirUploadProfileResponse,
|
|
@@ -26,7 +25,6 @@ __all__ = [
|
|
|
26
25
|
"CreateMultiResponseBundleEntryItemRequest",
|
|
27
26
|
"CreateMultiResponseResourcesItem",
|
|
28
27
|
"CreateRequestResource",
|
|
29
|
-
"DocumentRequestFileType",
|
|
30
28
|
"DocumentRequestResource",
|
|
31
29
|
"FailedDependencyError",
|
|
32
30
|
"FhirResource",
|
phenoml/lang2fhir/client.py
CHANGED
|
@@ -7,7 +7,6 @@ from ..core.request_options import RequestOptions
|
|
|
7
7
|
from .raw_client import AsyncRawLang2FhirClient, RawLang2FhirClient
|
|
8
8
|
from .types.create_multi_response import CreateMultiResponse
|
|
9
9
|
from .types.create_request_resource import CreateRequestResource
|
|
10
|
-
from .types.document_request_file_type import DocumentRequestFileType
|
|
11
10
|
from .types.document_request_resource import DocumentRequestResource
|
|
12
11
|
from .types.fhir_resource import FhirResource
|
|
13
12
|
from .types.lang2fhir_upload_profile_response import Lang2FhirUploadProfileResponse
|
|
@@ -223,7 +222,6 @@ class Lang2FhirClient:
|
|
|
223
222
|
version: str,
|
|
224
223
|
resource: DocumentRequestResource,
|
|
225
224
|
content: str,
|
|
226
|
-
file_type: DocumentRequestFileType,
|
|
227
225
|
request_options: typing.Optional[RequestOptions] = None,
|
|
228
226
|
) -> FhirResource:
|
|
229
227
|
"""
|
|
@@ -238,10 +236,9 @@ class Lang2FhirClient:
|
|
|
238
236
|
Type of FHIR resource to create (questionnaire and US Core questionnaireresponse profiles currently supported)
|
|
239
237
|
|
|
240
238
|
content : str
|
|
241
|
-
Base64 encoded file content
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
MIME type of the file
|
|
239
|
+
Base64 encoded file content.
|
|
240
|
+
Supported file types: PDF (application/pdf), PNG (image/png), JPEG (image/jpeg).
|
|
241
|
+
File type is auto-detected from content magic bytes.
|
|
245
242
|
|
|
246
243
|
request_options : typing.Optional[RequestOptions]
|
|
247
244
|
Request-specific configuration.
|
|
@@ -262,11 +259,10 @@ class Lang2FhirClient:
|
|
|
262
259
|
version="R4",
|
|
263
260
|
resource="questionnaire",
|
|
264
261
|
content="content",
|
|
265
|
-
file_type="application/pdf",
|
|
266
262
|
)
|
|
267
263
|
"""
|
|
268
264
|
_response = self._raw_client.document(
|
|
269
|
-
version=version, resource=resource, content=content,
|
|
265
|
+
version=version, resource=resource, content=content, request_options=request_options
|
|
270
266
|
)
|
|
271
267
|
return _response.data
|
|
272
268
|
|
|
@@ -509,7 +505,6 @@ class AsyncLang2FhirClient:
|
|
|
509
505
|
version: str,
|
|
510
506
|
resource: DocumentRequestResource,
|
|
511
507
|
content: str,
|
|
512
|
-
file_type: DocumentRequestFileType,
|
|
513
508
|
request_options: typing.Optional[RequestOptions] = None,
|
|
514
509
|
) -> FhirResource:
|
|
515
510
|
"""
|
|
@@ -524,10 +519,9 @@ class AsyncLang2FhirClient:
|
|
|
524
519
|
Type of FHIR resource to create (questionnaire and US Core questionnaireresponse profiles currently supported)
|
|
525
520
|
|
|
526
521
|
content : str
|
|
527
|
-
Base64 encoded file content
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
MIME type of the file
|
|
522
|
+
Base64 encoded file content.
|
|
523
|
+
Supported file types: PDF (application/pdf), PNG (image/png), JPEG (image/jpeg).
|
|
524
|
+
File type is auto-detected from content magic bytes.
|
|
531
525
|
|
|
532
526
|
request_options : typing.Optional[RequestOptions]
|
|
533
527
|
Request-specific configuration.
|
|
@@ -553,13 +547,12 @@ class AsyncLang2FhirClient:
|
|
|
553
547
|
version="R4",
|
|
554
548
|
resource="questionnaire",
|
|
555
549
|
content="content",
|
|
556
|
-
file_type="application/pdf",
|
|
557
550
|
)
|
|
558
551
|
|
|
559
552
|
|
|
560
553
|
asyncio.run(main())
|
|
561
554
|
"""
|
|
562
555
|
_response = await self._raw_client.document(
|
|
563
|
-
version=version, resource=resource, content=content,
|
|
556
|
+
version=version, resource=resource, content=content, request_options=request_options
|
|
564
557
|
)
|
|
565
558
|
return _response.data
|
phenoml/lang2fhir/raw_client.py
CHANGED
|
@@ -15,7 +15,6 @@ from .errors.internal_server_error import InternalServerError
|
|
|
15
15
|
from .errors.unauthorized_error import UnauthorizedError
|
|
16
16
|
from .types.create_multi_response import CreateMultiResponse
|
|
17
17
|
from .types.create_request_resource import CreateRequestResource
|
|
18
|
-
from .types.document_request_file_type import DocumentRequestFileType
|
|
19
18
|
from .types.document_request_resource import DocumentRequestResource
|
|
20
19
|
from .types.fhir_resource import FhirResource
|
|
21
20
|
from .types.lang2fhir_upload_profile_response import Lang2FhirUploadProfileResponse
|
|
@@ -424,7 +423,6 @@ class RawLang2FhirClient:
|
|
|
424
423
|
version: str,
|
|
425
424
|
resource: DocumentRequestResource,
|
|
426
425
|
content: str,
|
|
427
|
-
file_type: DocumentRequestFileType,
|
|
428
426
|
request_options: typing.Optional[RequestOptions] = None,
|
|
429
427
|
) -> HttpResponse[FhirResource]:
|
|
430
428
|
"""
|
|
@@ -439,10 +437,9 @@ class RawLang2FhirClient:
|
|
|
439
437
|
Type of FHIR resource to create (questionnaire and US Core questionnaireresponse profiles currently supported)
|
|
440
438
|
|
|
441
439
|
content : str
|
|
442
|
-
Base64 encoded file content
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
MIME type of the file
|
|
440
|
+
Base64 encoded file content.
|
|
441
|
+
Supported file types: PDF (application/pdf), PNG (image/png), JPEG (image/jpeg).
|
|
442
|
+
File type is auto-detected from content magic bytes.
|
|
446
443
|
|
|
447
444
|
request_options : typing.Optional[RequestOptions]
|
|
448
445
|
Request-specific configuration.
|
|
@@ -459,7 +456,6 @@ class RawLang2FhirClient:
|
|
|
459
456
|
"version": version,
|
|
460
457
|
"resource": resource,
|
|
461
458
|
"content": content,
|
|
462
|
-
"fileType": file_type,
|
|
463
459
|
},
|
|
464
460
|
headers={
|
|
465
461
|
"content-type": "application/json",
|
|
@@ -915,7 +911,6 @@ class AsyncRawLang2FhirClient:
|
|
|
915
911
|
version: str,
|
|
916
912
|
resource: DocumentRequestResource,
|
|
917
913
|
content: str,
|
|
918
|
-
file_type: DocumentRequestFileType,
|
|
919
914
|
request_options: typing.Optional[RequestOptions] = None,
|
|
920
915
|
) -> AsyncHttpResponse[FhirResource]:
|
|
921
916
|
"""
|
|
@@ -930,10 +925,9 @@ class AsyncRawLang2FhirClient:
|
|
|
930
925
|
Type of FHIR resource to create (questionnaire and US Core questionnaireresponse profiles currently supported)
|
|
931
926
|
|
|
932
927
|
content : str
|
|
933
|
-
Base64 encoded file content
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
MIME type of the file
|
|
928
|
+
Base64 encoded file content.
|
|
929
|
+
Supported file types: PDF (application/pdf), PNG (image/png), JPEG (image/jpeg).
|
|
930
|
+
File type is auto-detected from content magic bytes.
|
|
937
931
|
|
|
938
932
|
request_options : typing.Optional[RequestOptions]
|
|
939
933
|
Request-specific configuration.
|
|
@@ -950,7 +944,6 @@ class AsyncRawLang2FhirClient:
|
|
|
950
944
|
"version": version,
|
|
951
945
|
"resource": resource,
|
|
952
946
|
"content": content,
|
|
953
|
-
"fileType": file_type,
|
|
954
947
|
},
|
|
955
948
|
headers={
|
|
956
949
|
"content-type": "application/json",
|
|
@@ -8,7 +8,6 @@ from .create_multi_response_bundle_entry_item import CreateMultiResponseBundleEn
|
|
|
8
8
|
from .create_multi_response_bundle_entry_item_request import CreateMultiResponseBundleEntryItemRequest
|
|
9
9
|
from .create_multi_response_resources_item import CreateMultiResponseResourcesItem
|
|
10
10
|
from .create_request_resource import CreateRequestResource
|
|
11
|
-
from .document_request_file_type import DocumentRequestFileType
|
|
12
11
|
from .document_request_resource import DocumentRequestResource
|
|
13
12
|
from .fhir_resource import FhirResource
|
|
14
13
|
from .lang2fhir_upload_profile_response import Lang2FhirUploadProfileResponse
|
|
@@ -22,7 +21,6 @@ __all__ = [
|
|
|
22
21
|
"CreateMultiResponseBundleEntryItemRequest",
|
|
23
22
|
"CreateMultiResponseResourcesItem",
|
|
24
23
|
"CreateRequestResource",
|
|
25
|
-
"DocumentRequestFileType",
|
|
26
24
|
"DocumentRequestResource",
|
|
27
25
|
"FhirResource",
|
|
28
26
|
"Lang2FhirUploadProfileResponse",
|
|
@@ -94,7 +94,7 @@ phenoml/construe/types/text_search_result.py,sha256=FqHzcSBId9Pcp68gB10aJJYsHpsy
|
|
|
94
94
|
phenoml/construe/types/upload_request_format.py,sha256=5mJhMM7R7hn6gGQNDJT9lxPDsRpUkRzqNxtRU0Nnlls,158
|
|
95
95
|
phenoml/core/__init__.py,sha256=lTcqUPXcx4112yLDd70RAPeqq6tu3eFMe1pKOqkW9JQ,1562
|
|
96
96
|
phenoml/core/api_error.py,sha256=44vPoTyWN59gonCIZMdzw7M1uspygiLnr3GNFOoVL2Q,614
|
|
97
|
-
phenoml/core/client_wrapper.py,sha256=
|
|
97
|
+
phenoml/core/client_wrapper.py,sha256=E4mBwSZSzQZeuL75saNbghO1DublWXn8zrJdxUrP5WI,2641
|
|
98
98
|
phenoml/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
99
99
|
phenoml/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
100
100
|
phenoml/core/force_multipart.py,sha256=awxh5MtcRYe74ehY8U76jzv6fYM_w_D3Rur7KQQzSDk,429
|
|
@@ -156,23 +156,22 @@ phenoml/fhir_provider/types/role.py,sha256=Igag80s-KaGOc4nWfrGWyT81HU__c6_WJ-1oV
|
|
|
156
156
|
phenoml/fhir_provider/types/service_account_key.py,sha256=uup1Xl0HSc_B3278i0CS-ygCroShLS5_q0KtqXI96HY,1085
|
|
157
157
|
phenoml/fhir_provider/types/service_account_metadata.py,sha256=dNOWoWaAoi3dvoA0vhxKxV9k3pYm5ib_zDM1LVNiAxk,1170
|
|
158
158
|
phenoml/fhir_provider/types/smart_configuration.py,sha256=bG_J1yNFEWWo9kjxF0s2Ik9rXehB1JHcQ2fTn6dht6k,1174
|
|
159
|
-
phenoml/lang2fhir/__init__.py,sha256=
|
|
160
|
-
phenoml/lang2fhir/client.py,sha256=
|
|
159
|
+
phenoml/lang2fhir/__init__.py,sha256=SPx4QQvm1iMFOgmmM1Meb4rzoxLulxA9BV7K8Mc_f7M,1072
|
|
160
|
+
phenoml/lang2fhir/client.py,sha256=XaOfLKx6mSZ5_kHxV61o0Gw8LCJg3hClce9cccZIdik,18425
|
|
161
161
|
phenoml/lang2fhir/errors/__init__.py,sha256=nIzg981R3USgSar0WuuVrpDVg-H5vIp2AceEzbhphGw,458
|
|
162
162
|
phenoml/lang2fhir/errors/bad_request_error.py,sha256=nv0bK4gtOnTon6a2NdVxJxHBje_O_7wIoRtXLZHovUQ,339
|
|
163
163
|
phenoml/lang2fhir/errors/failed_dependency_error.py,sha256=eXiqG062inkUF7fs2Newhx9uAKReK6fosz29PMD4gVw,345
|
|
164
164
|
phenoml/lang2fhir/errors/forbidden_error.py,sha256=ek8-sffTy9gY3F0zyaSkcskDVvq9puXP_YvvB2BJYbA,338
|
|
165
165
|
phenoml/lang2fhir/errors/internal_server_error.py,sha256=biBHJfSP1_zWF5CJgxY4B8wrL1uC18RSccQ-BCKmYNs,343
|
|
166
166
|
phenoml/lang2fhir/errors/unauthorized_error.py,sha256=h8T6QhXuTo0GLL9MKfIM5p--wDqlB1-ZkMp3lY-aM3E,341
|
|
167
|
-
phenoml/lang2fhir/raw_client.py,sha256=
|
|
168
|
-
phenoml/lang2fhir/types/__init__.py,sha256=
|
|
167
|
+
phenoml/lang2fhir/raw_client.py,sha256=U_c06qriq4GA1e6WmvWW8Pk7XGPDftfoxyCMNvW6a1U,40514
|
|
168
|
+
phenoml/lang2fhir/types/__init__.py,sha256=TZWDi-tu34TRaCPsKqYGI3_rRjM_YdTVVMrN93DdChI,1216
|
|
169
169
|
phenoml/lang2fhir/types/create_multi_response.py,sha256=GrOBnwDp7pSmCRqaaG_4jL0P1lqXYMk5ioTabVaP2zg,1212
|
|
170
170
|
phenoml/lang2fhir/types/create_multi_response_bundle.py,sha256=os13oK7NULRoN647NBfE3QuKe2Gvi2qSa6KJpkWIHsA,994
|
|
171
171
|
phenoml/lang2fhir/types/create_multi_response_bundle_entry_item.py,sha256=1qvcTZuE_WzOzwGs6CrQOaU9cCFdtH2A7EGhMR8aqL4,970
|
|
172
172
|
phenoml/lang2fhir/types/create_multi_response_bundle_entry_item_request.py,sha256=R-qHcnHjFz8rSYYDlo2Yqi7_Ul4jZtleE0BYhFA0jnE,612
|
|
173
173
|
phenoml/lang2fhir/types/create_multi_response_resources_item.py,sha256=VFggDG3w6KpskIVeSKInNrcgCFmlYmz1IFNGvMJq7hk,1119
|
|
174
174
|
phenoml/lang2fhir/types/create_request_resource.py,sha256=JyfWUXGae-BMEvjtbDqQVNyIL4Qoh7nJwJyHOwP070Q,596
|
|
175
|
-
phenoml/lang2fhir/types/document_request_file_type.py,sha256=VgPYn7FB-5hgvNsyvQEGIsEQ6F4ruM4VN9TWxr_Tfv4,212
|
|
176
175
|
phenoml/lang2fhir/types/document_request_resource.py,sha256=keHsMn9UxgHd9VUNT54Atcj4Z4YI9uU0Fj9g1RwGUrg,189
|
|
177
176
|
phenoml/lang2fhir/types/fhir_resource.py,sha256=EprHErQgwP_MkaCrul94OhkOWQcbvUjMeerF2ISh9LU,141
|
|
178
177
|
phenoml/lang2fhir/types/lang2fhir_upload_profile_response.py,sha256=X41WiVztePQtZOcNRzNsder-h3rQTj94Y622HQ1izP8,721
|
|
@@ -266,7 +265,7 @@ phenoml/workflows/types/workflows_delete_response.py,sha256=izcubUOnSNOgThD9Ozo6
|
|
|
266
265
|
phenoml/workflows/types/workflows_get_response.py,sha256=gfNyUs14JSynprRwT-fuq4IDsGrPZmUSsK3WmgqIEi8,891
|
|
267
266
|
phenoml/workflows/types/workflows_update_response.py,sha256=FEvQpC9ZRk8dV1oaIAwV5bSDD2tkXZ5fG4mozRjibuQ,1046
|
|
268
267
|
phenoml/wrapper_client.py,sha256=JYTdhXgju4tOsata06wQY_ZbMsuMj3qaxkgvDzpY068,5022
|
|
269
|
-
phenoml-
|
|
270
|
-
phenoml-
|
|
271
|
-
phenoml-
|
|
272
|
-
phenoml-
|
|
268
|
+
phenoml-3.0.0.dist-info/LICENSE,sha256=Am1fNNveR2gcmOloSWQTsnUw2SQEF8HtowFqIvlagfk,1064
|
|
269
|
+
phenoml-3.0.0.dist-info/METADATA,sha256=_XGq4Xroo4mCMcZ0Xsc1Yj-6fQcuXgd4p2BGMHTj_xs,5330
|
|
270
|
+
phenoml-3.0.0.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
271
|
+
phenoml-3.0.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|