phenoml 0.0.17__py3-none-any.whl → 0.0.18__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.
@@ -16,7 +16,10 @@ class ExtractRequestConfig(UniversalBaseModel):
16
16
 
17
17
  max_codes_per_chunk: typing.Optional[int] = pydantic.Field(default=None)
18
18
  """
19
- Maximum number of codes to extract per chunk
19
+ Maximum number of codes to extract per chunk. If not specified, uses system-specific defaults:
20
+ * SNOMED: 10
21
+ * LOINC, HPO, RXNORM: 20
22
+ * All other systems: 5
20
23
  """
21
24
 
22
25
  code_similarity_filter: typing.Optional[float] = pydantic.Field(default=None)
@@ -42,6 +45,11 @@ class ExtractRequestConfig(UniversalBaseModel):
42
45
  Whether to include ancestor/parent codes in the results
43
46
  """
44
47
 
48
+ include_invalid: typing.Optional[bool] = pydantic.Field(default=None)
49
+ """
50
+ Whether to include codes that failed validation in the results
51
+ """
52
+
45
53
  if IS_PYDANTIC_V2:
46
54
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
47
55
  else:
@@ -19,6 +19,11 @@ class ExtractedCodeResult(UniversalBaseModel):
19
19
  Short description of the code
20
20
  """
21
21
 
22
+ valid: bool = pydantic.Field()
23
+ """
24
+ Whether the code passed validation. Always true unless include_invalid is set to true, in which case invalid codes will have this set to false.
25
+ """
26
+
22
27
  long_description: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="longDescription")] = (
23
28
  pydantic.Field(default=None)
24
29
  )
@@ -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/v0.0.17",
25
+ "User-Agent": "phenoml/v0.0.18",
26
26
  "X-Fern-Language": "Python",
27
27
  "X-Fern-SDK-Name": "phenoml",
28
- "X-Fern-SDK-Version": "v0.0.17",
28
+ "X-Fern-SDK-Version": "v0.0.18",
29
29
  **(self.get_custom_headers() or {}),
30
30
  }
31
31
  headers["Authorization"] = f"Bearer {self._get_token()}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: phenoml
3
- Version: 0.0.17
3
+ Version: 0.0.18
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -70,15 +70,15 @@ phenoml/construe/raw_client.py,sha256=xXhtTmLzDELw9TEXWSKk9ZK2UXYNKMfp3IAk2EKxzl
70
70
  phenoml/construe/types/__init__.py,sha256=Id0OJ58ZEQX9Ut-7iMwWEv49MTJLTTmNPH9es1ya8Cw,900
71
71
  phenoml/construe/types/construe_upload_code_system_response.py,sha256=s0m5EHpkhkp7hYiC5zLZeIeqQ4mrwXlPI1Msihb-ZGo,566
72
72
  phenoml/construe/types/extract_codes_result.py,sha256=DbVDLWqtmt9TyD5MC0q8grgnNXPnXq4eJnLDinTe0uc,701
73
- phenoml/construe/types/extract_request_config.py,sha256=-N_yPxXcWeuFx2JNOJIGHjtyJNSFMOGslmLbjYxMh18,1831
73
+ phenoml/construe/types/extract_request_config.py,sha256=2A22PNA1Hxq9qz1x89LvbySF-Hw8iB6oA2QqoSIrvg8,2112
74
74
  phenoml/construe/types/extract_request_config_chunking_method.py,sha256=AmVPPj0oT5r0pwWUoFxG_K8s5g8xaGYIRsPt3VvqSXQ,209
75
75
  phenoml/construe/types/extract_request_config_validation_method.py,sha256=6uUqKn8DXF34EDtNKPa6KLW07DsxgQF2aR5BGdG5Fd4,199
76
76
  phenoml/construe/types/extract_request_system.py,sha256=50qkxvinJKS5y1_glr-OFe5tQRyMWLYpeny1NZ9gFzw,1191
77
- phenoml/construe/types/extracted_code_result.py,sha256=LmhaQYFeLXBWR_NWcF1c-qt3OqwWQduefvInJRHcvio,1121
77
+ phenoml/construe/types/extracted_code_result.py,sha256=3mIHO952KjbMRBY_YvwBt75XOjqdflg9Odc-xBbURac,1321
78
78
  phenoml/construe/types/upload_request_format.py,sha256=5mJhMM7R7hn6gGQNDJT9lxPDsRpUkRzqNxtRU0Nnlls,158
79
79
  phenoml/core/__init__.py,sha256=lTcqUPXcx4112yLDd70RAPeqq6tu3eFMe1pKOqkW9JQ,1562
80
80
  phenoml/core/api_error.py,sha256=44vPoTyWN59gonCIZMdzw7M1uspygiLnr3GNFOoVL2Q,614
81
- phenoml/core/client_wrapper.py,sha256=xvK9FUbhC6oFKkrRf4axrjXvG-E3uIorhHjeCScgKcg,2645
81
+ phenoml/core/client_wrapper.py,sha256=z1oi8fHFvxZesnHRdmy1-aaGsidR3l0xTrlWWgY_50o,2645
82
82
  phenoml/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
83
83
  phenoml/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
84
84
  phenoml/core/force_multipart.py,sha256=awxh5MtcRYe74ehY8U76jzv6fYM_w_D3Rur7KQQzSDk,429
@@ -245,7 +245,7 @@ phenoml/workflows/types/workflows_delete_response.py,sha256=izcubUOnSNOgThD9Ozo6
245
245
  phenoml/workflows/types/workflows_get_response.py,sha256=gfNyUs14JSynprRwT-fuq4IDsGrPZmUSsK3WmgqIEi8,891
246
246
  phenoml/workflows/types/workflows_update_response.py,sha256=FEvQpC9ZRk8dV1oaIAwV5bSDD2tkXZ5fG4mozRjibuQ,1046
247
247
  phenoml/wrapper_client.py,sha256=JYTdhXgju4tOsata06wQY_ZbMsuMj3qaxkgvDzpY068,5022
248
- phenoml-0.0.17.dist-info/LICENSE,sha256=Am1fNNveR2gcmOloSWQTsnUw2SQEF8HtowFqIvlagfk,1064
249
- phenoml-0.0.17.dist-info/METADATA,sha256=WVLi0HVa9_Ocp7VY6Gy0g_QcqCOffiKSlzwuFDceVno,5331
250
- phenoml-0.0.17.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
251
- phenoml-0.0.17.dist-info/RECORD,,
248
+ phenoml-0.0.18.dist-info/LICENSE,sha256=Am1fNNveR2gcmOloSWQTsnUw2SQEF8HtowFqIvlagfk,1064
249
+ phenoml-0.0.18.dist-info/METADATA,sha256=Z1ieeoLMuZTCh90F_ExzmBFAU_0f9EJ74r7UOmrvfEE,5331
250
+ phenoml-0.0.18.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
251
+ phenoml-0.0.18.dist-info/RECORD,,