fountain-life-service-clients 3.40.0__py3-none-any.whl → 3.41.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.
@@ -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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fountain-life-service-clients
3
- Version: 3.40.0
3
+ Version: 3.41.0
4
4
  Summary:
5
5
  License: UNLICENSED
6
6
  Author: Fountain Life
@@ -15,7 +15,7 @@ fountain_life_service_clients/fhir_search_service.py,sha256=O_y8YrOjvKj_Tfs5Pj4M
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
17
  fountain_life_service_clients/genomics_report_service.py,sha256=d2w16pZ3ZaakX0pYkidWT7buY-RB_GRzLf0R6lbIvw0,993
18
- fountain_life_service_clients/genomics_service.py,sha256=Xx5rhgzjEJfdNA_g0Je4xDo26NKZQiIuNC88cUI-v-s,4225
18
+ fountain_life_service_clients/genomics_service.py,sha256=p6fvhf6i3FJVXnLDAFNJgS2IVTYjbkSNX-osy-rRYjo,5305
19
19
  fountain_life_service_clients/invitation_service.py,sha256=tKWgb-bGIwT4x3MWSLiVChQRaZURj43S6Uyrg3Lt7HA,2596
20
20
  fountain_life_service_clients/medical_results_service_results.py,sha256=L0clTifU4LWWKgBsIzEfelmkaICxG1_q8sHyrdA5es4,4876
21
21
  fountain_life_service_clients/member_notification_service.py,sha256=wRkgmUqAV59BV81c3Iwz7JxSTuOLagHrcJcXvMbdBco,1814
@@ -27,6 +27,6 @@ fountain_life_service_clients/rules_service.py,sha256=VxPYboYQmw--6Kn78RKu6_9as1
27
27
  fountain_life_service_clients/scheduler_service.py,sha256=IkwRns_QHh6fx1IZWEXZ35DeRiW7OHaROM5wjWubZm4,4440
28
28
  fountain_life_service_clients/survey_service.py,sha256=RPpPBhXqmvYZ-T4n1BFX9TUSAfnnjfVcUo3k76a91PQ,14206
29
29
  fountain_life_service_clients/user_service.py,sha256=rM9xcF-VzdLp9aDOhg1UbecX2VPPMxH9PlgpNpGdC18,4253
30
- fountain_life_service_clients-3.40.0.dist-info/METADATA,sha256=WertbNkjZNj4BvxauFze9QJDcB2-vGvRbE77vWFCfpY,1405
31
- fountain_life_service_clients-3.40.0.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
32
- fountain_life_service_clients-3.40.0.dist-info/RECORD,,
30
+ fountain_life_service_clients-3.41.0.dist-info/METADATA,sha256=71ITUL8x29LjkaesiEEJJ5fNW-x5Zd67Zetej8l7tCA,1405
31
+ fountain_life_service_clients-3.41.0.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
32
+ fountain_life_service_clients-3.41.0.dist-info/RECORD,,