fountain-life-service-clients 3.40.0__py3-none-any.whl → 3.42.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.
- fountain_life_service_clients/genomic_ingestion_service.py +30 -0
- fountain_life_service_clients/genomics_service.py +39 -0
- {fountain_life_service_clients-3.40.0.dist-info → fountain_life_service_clients-3.42.0.dist-info}/METADATA +1 -1
- {fountain_life_service_clients-3.40.0.dist-info → fountain_life_service_clients-3.42.0.dist-info}/RECORD +5 -4
- {fountain_life_service_clients-3.40.0.dist-info → fountain_life_service_clients-3.42.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
# This file was generated automatically. Do not edit it directly.
|
2
|
+
from typing import TypedDict, Unpack, cast
|
3
|
+
from urllib.parse import quote
|
4
|
+
|
5
|
+
from fountain_life_service_clients._base_client import (
|
6
|
+
AlphaConfig,
|
7
|
+
AlphaResponse,
|
8
|
+
BaseClient,
|
9
|
+
)
|
10
|
+
|
11
|
+
|
12
|
+
class GetBroadInfoByGenomicsFileIdResponse(TypedDict):
|
13
|
+
orderId: str
|
14
|
+
sampleId: str
|
15
|
+
|
16
|
+
|
17
|
+
class GenomicIngestionServiceClient(BaseClient):
|
18
|
+
def __init__(self, **cfg: Unpack[AlphaConfig]):
|
19
|
+
kwargs = {
|
20
|
+
"target": "lambda://genomic-ingestion-service:deployed",
|
21
|
+
**(cfg or {}),
|
22
|
+
}
|
23
|
+
super().__init__(**kwargs)
|
24
|
+
|
25
|
+
async def get_broad_info_by_genomics_file_id(self, file_id: str):
|
26
|
+
"""Provide any genomics file id related to a patients broad genomic ingestion and get info to the originating Broad order"""
|
27
|
+
res = await self.client.request(
|
28
|
+
path=f"/v1/genomic-ingestion/broad/order/{quote(file_id)}", method="GET"
|
29
|
+
)
|
30
|
+
return cast(AlphaResponse[GetBroadInfoByGenomicsFileIdResponse], res)
|
@@ -9,6 +9,7 @@ from typing import (
|
|
9
9
|
Unpack,
|
10
10
|
cast,
|
11
11
|
)
|
12
|
+
from urllib.parse import quote
|
12
13
|
|
13
14
|
from fountain_life_service_clients._base_client import (
|
14
15
|
AlphaConfig,
|
@@ -145,6 +146,36 @@ class SearchVariantsResponse(TypedDict):
|
|
145
146
|
invalid: NotRequired[Invalid]
|
146
147
|
|
147
148
|
|
149
|
+
class Set(TypedDict):
|
150
|
+
id: str
|
151
|
+
fileId: NotRequired[str]
|
152
|
+
sequenceId: NotRequired[str]
|
153
|
+
name: NotRequired[str]
|
154
|
+
setType: NotRequired[str]
|
155
|
+
status: NotRequired[str]
|
156
|
+
sequenceType: NotRequired[str]
|
157
|
+
|
158
|
+
|
159
|
+
class item(TypedDict):
|
160
|
+
id: str
|
161
|
+
datasetId: NotRequired[str]
|
162
|
+
name: NotRequired[str]
|
163
|
+
patientId: NotRequired[str]
|
164
|
+
reportFileId: NotRequired[str]
|
165
|
+
indexedDate: NotRequired[str]
|
166
|
+
testType: NotRequired[str]
|
167
|
+
referenceSetId: NotRequired[str]
|
168
|
+
sourceFileId: NotRequired[str]
|
169
|
+
ingestFileId: NotRequired[str]
|
170
|
+
status: NotRequired[str]
|
171
|
+
createdDate: NotRequired[str]
|
172
|
+
sets: List[Set]
|
173
|
+
|
174
|
+
|
175
|
+
class GetSubjectTestsResponse(TypedDict):
|
176
|
+
items: List[item]
|
177
|
+
|
178
|
+
|
148
179
|
class GenomicsServiceClient(BaseClient):
|
149
180
|
def __init__(self, **cfg: Unpack[AlphaConfig]):
|
150
181
|
kwargs = {"target": "lambda://genomics-service:deployed", **(cfg or {})}
|
@@ -156,3 +187,11 @@ class GenomicsServiceClient(BaseClient):
|
|
156
187
|
path="/v1/genomics/variants/_search", method="POST", body=cast(dict, body)
|
157
188
|
)
|
158
189
|
return cast(AlphaResponse[SearchVariantsResponse], res)
|
190
|
+
|
191
|
+
async def get_subject_tests(self, project_id: str, subject_id: str):
|
192
|
+
"""Get subject tests"""
|
193
|
+
res = await self.client.request(
|
194
|
+
path=f"/v1/genomics/projects/{quote(project_id)}/subjects/{quote(subject_id)}/tests",
|
195
|
+
method="GET",
|
196
|
+
)
|
197
|
+
return cast(AlphaResponse[GetSubjectTestsResponse], res)
|
@@ -14,8 +14,9 @@ fountain_life_service_clients/fhir_post_processor_service.py,sha256=4IsyyRoCIzSN
|
|
14
14
|
fountain_life_service_clients/fhir_search_service.py,sha256=O_y8YrOjvKj_Tfs5Pj4MM4X6RvV1E2s762lRH5U8ji8,6014
|
15
15
|
fountain_life_service_clients/file_service.py,sha256=CY36fpvCAi17npAKAWkFDDaNhwbvTC5hx-sGZmPfyBM,4046
|
16
16
|
fountain_life_service_clients/ga4gh_service.py,sha256=SSFdYM_oW2ZATUOaZT_xjp3jlEJt7rR_ai2US6HolgI,989
|
17
|
+
fountain_life_service_clients/genomic_ingestion_service.py,sha256=rQ9lv2ezCjMxgc8P4jYl3xNeSV6DwZOQOLg_Fe2u9PE,1025
|
17
18
|
fountain_life_service_clients/genomics_report_service.py,sha256=d2w16pZ3ZaakX0pYkidWT7buY-RB_GRzLf0R6lbIvw0,993
|
18
|
-
fountain_life_service_clients/genomics_service.py,sha256=
|
19
|
+
fountain_life_service_clients/genomics_service.py,sha256=p6fvhf6i3FJVXnLDAFNJgS2IVTYjbkSNX-osy-rRYjo,5305
|
19
20
|
fountain_life_service_clients/invitation_service.py,sha256=tKWgb-bGIwT4x3MWSLiVChQRaZURj43S6Uyrg3Lt7HA,2596
|
20
21
|
fountain_life_service_clients/medical_results_service_results.py,sha256=L0clTifU4LWWKgBsIzEfelmkaICxG1_q8sHyrdA5es4,4876
|
21
22
|
fountain_life_service_clients/member_notification_service.py,sha256=wRkgmUqAV59BV81c3Iwz7JxSTuOLagHrcJcXvMbdBco,1814
|
@@ -27,6 +28,6 @@ fountain_life_service_clients/rules_service.py,sha256=VxPYboYQmw--6Kn78RKu6_9as1
|
|
27
28
|
fountain_life_service_clients/scheduler_service.py,sha256=IkwRns_QHh6fx1IZWEXZ35DeRiW7OHaROM5wjWubZm4,4440
|
28
29
|
fountain_life_service_clients/survey_service.py,sha256=RPpPBhXqmvYZ-T4n1BFX9TUSAfnnjfVcUo3k76a91PQ,14206
|
29
30
|
fountain_life_service_clients/user_service.py,sha256=rM9xcF-VzdLp9aDOhg1UbecX2VPPMxH9PlgpNpGdC18,4253
|
30
|
-
fountain_life_service_clients-3.
|
31
|
-
fountain_life_service_clients-3.
|
32
|
-
fountain_life_service_clients-3.
|
31
|
+
fountain_life_service_clients-3.42.0.dist-info/METADATA,sha256=dojuCCsN5-4obmg-6BgBhdeyy6288zYUSJlkfdI1trk,1405
|
32
|
+
fountain_life_service_clients-3.42.0.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
|
33
|
+
fountain_life_service_clients-3.42.0.dist-info/RECORD,,
|
File without changes
|