phenoml 0.0.8 → 0.0.10

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 (94) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/agent/client/Client.d.ts +2 -0
  3. package/dist/cjs/api/resources/agent/client/Client.js +20 -2
  4. package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.d.ts +12 -0
  5. package/dist/cjs/api/resources/construe/client/Client.d.ts +0 -18
  6. package/dist/cjs/api/resources/construe/client/Client.js +0 -74
  7. package/dist/cjs/api/resources/construe/client/requests/index.d.ts +0 -1
  8. package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.d.ts +28 -2
  9. package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.js +14 -2
  10. package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.d.ts +2 -0
  11. package/dist/cjs/api/resources/construe/types/index.d.ts +0 -4
  12. package/dist/cjs/api/resources/construe/types/index.js +0 -4
  13. package/dist/cjs/api/resources/fhir/client/Client.d.ts +18 -9
  14. package/dist/cjs/api/resources/fhir/client/Client.js +30 -15
  15. package/dist/cjs/api/resources/fhir/client/requests/FhirCreateRequest.d.ts +11 -2
  16. package/dist/cjs/api/resources/fhir/client/requests/FhirDeleteRequest.d.ts +11 -2
  17. package/dist/cjs/api/resources/fhir/client/requests/FhirExecuteBundleRequest.d.ts +11 -2
  18. package/dist/cjs/api/resources/fhir/client/requests/FhirPatchRequest.d.ts +17 -5
  19. package/dist/cjs/api/resources/fhir/client/requests/FhirSearchRequest.d.ts +13 -3
  20. package/dist/cjs/api/resources/fhir/client/requests/FhirUpsertRequest.d.ts +11 -2
  21. package/dist/cjs/api/resources/fhirProvider/client/Client.js +2 -2
  22. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.d.ts +2 -1
  23. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.d.ts +2 -1
  24. package/dist/cjs/api/resources/fhirProvider/types/AuthMethod.d.ts +2 -1
  25. package/dist/cjs/api/resources/fhirProvider/types/AuthMethod.js +2 -1
  26. package/dist/cjs/api/resources/fhirProvider/types/Role.d.ts +22 -0
  27. package/dist/cjs/api/resources/fhirProvider/types/Role.js +25 -0
  28. package/dist/cjs/api/resources/fhirProvider/types/index.d.ts +1 -0
  29. package/dist/cjs/api/resources/fhirProvider/types/index.js +1 -0
  30. package/dist/cjs/api/resources/tools/client/Client.d.ts +6 -0
  31. package/dist/cjs/api/resources/tools/client/Client.js +38 -6
  32. package/dist/cjs/api/resources/tools/client/requests/CohortRequest.d.ts +12 -0
  33. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.ts +12 -0
  34. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.ts +12 -0
  35. package/dist/cjs/version.d.ts +1 -1
  36. package/dist/cjs/version.js +1 -1
  37. package/dist/esm/Client.mjs +2 -2
  38. package/dist/esm/api/resources/agent/client/Client.d.mts +2 -0
  39. package/dist/esm/api/resources/agent/client/Client.mjs +20 -2
  40. package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.d.mts +12 -0
  41. package/dist/esm/api/resources/construe/client/Client.d.mts +0 -18
  42. package/dist/esm/api/resources/construe/client/Client.mjs +0 -74
  43. package/dist/esm/api/resources/construe/client/requests/index.d.mts +0 -1
  44. package/dist/esm/api/resources/construe/types/ExtractRequestConfig.d.mts +28 -2
  45. package/dist/esm/api/resources/construe/types/ExtractRequestConfig.mjs +14 -2
  46. package/dist/esm/api/resources/construe/types/ExtractRequestSystem.d.mts +2 -0
  47. package/dist/esm/api/resources/construe/types/index.d.mts +0 -4
  48. package/dist/esm/api/resources/construe/types/index.mjs +0 -4
  49. package/dist/esm/api/resources/fhir/client/Client.d.mts +18 -9
  50. package/dist/esm/api/resources/fhir/client/Client.mjs +30 -15
  51. package/dist/esm/api/resources/fhir/client/requests/FhirCreateRequest.d.mts +11 -2
  52. package/dist/esm/api/resources/fhir/client/requests/FhirDeleteRequest.d.mts +11 -2
  53. package/dist/esm/api/resources/fhir/client/requests/FhirExecuteBundleRequest.d.mts +11 -2
  54. package/dist/esm/api/resources/fhir/client/requests/FhirPatchRequest.d.mts +17 -5
  55. package/dist/esm/api/resources/fhir/client/requests/FhirSearchRequest.d.mts +13 -3
  56. package/dist/esm/api/resources/fhir/client/requests/FhirUpsertRequest.d.mts +11 -2
  57. package/dist/esm/api/resources/fhirProvider/client/Client.mjs +2 -2
  58. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.d.mts +2 -1
  59. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.d.mts +2 -1
  60. package/dist/esm/api/resources/fhirProvider/types/AuthMethod.d.mts +2 -1
  61. package/dist/esm/api/resources/fhirProvider/types/AuthMethod.mjs +2 -1
  62. package/dist/esm/api/resources/fhirProvider/types/Role.d.mts +22 -0
  63. package/dist/esm/api/resources/fhirProvider/types/Role.mjs +22 -0
  64. package/dist/esm/api/resources/fhirProvider/types/index.d.mts +1 -0
  65. package/dist/esm/api/resources/fhirProvider/types/index.mjs +1 -0
  66. package/dist/esm/api/resources/tools/client/Client.d.mts +6 -0
  67. package/dist/esm/api/resources/tools/client/Client.mjs +38 -6
  68. package/dist/esm/api/resources/tools/client/requests/CohortRequest.d.mts +12 -0
  69. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.mts +12 -0
  70. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.mts +12 -0
  71. package/dist/esm/version.d.mts +1 -1
  72. package/dist/esm/version.mjs +1 -1
  73. package/package.json +1 -1
  74. package/reference.md +20 -72
  75. package/dist/cjs/api/resources/construe/client/requests/ConstrueCohortRequest.d.ts +0 -23
  76. package/dist/cjs/api/resources/construe/client/requests/ConstrueCohortRequest.js +0 -3
  77. package/dist/cjs/api/resources/construe/types/BadRequestErrorBody.d.ts +0 -6
  78. package/dist/cjs/api/resources/construe/types/BadRequestErrorBody.js +0 -3
  79. package/dist/cjs/api/resources/construe/types/ConstrueCohortResponse.d.ts +0 -46
  80. package/dist/cjs/api/resources/construe/types/ConstrueCohortResponse.js +0 -3
  81. package/dist/cjs/api/resources/construe/types/InternalServerErrorBody.d.ts +0 -6
  82. package/dist/cjs/api/resources/construe/types/InternalServerErrorBody.js +0 -3
  83. package/dist/cjs/api/resources/construe/types/UnauthorizedErrorBody.d.ts +0 -6
  84. package/dist/cjs/api/resources/construe/types/UnauthorizedErrorBody.js +0 -3
  85. package/dist/esm/api/resources/construe/client/requests/ConstrueCohortRequest.d.mts +0 -23
  86. package/dist/esm/api/resources/construe/client/requests/ConstrueCohortRequest.mjs +0 -2
  87. package/dist/esm/api/resources/construe/types/BadRequestErrorBody.d.mts +0 -6
  88. package/dist/esm/api/resources/construe/types/BadRequestErrorBody.mjs +0 -2
  89. package/dist/esm/api/resources/construe/types/ConstrueCohortResponse.d.mts +0 -46
  90. package/dist/esm/api/resources/construe/types/ConstrueCohortResponse.mjs +0 -2
  91. package/dist/esm/api/resources/construe/types/InternalServerErrorBody.d.mts +0 -6
  92. package/dist/esm/api/resources/construe/types/InternalServerErrorBody.mjs +0 -2
  93. package/dist/esm/api/resources/construe/types/UnauthorizedErrorBody.d.mts +0 -6
  94. package/dist/esm/api/resources/construe/types/UnauthorizedErrorBody.mjs +0 -2
@@ -1,46 +0,0 @@
1
- export interface ConstrueCohortResponse {
2
- queries?: ConstrueCohortResponse.Queries.Item[];
3
- /** Generated SQL query when `sql_syntax` is specified. Variables in curly braces need to be replaced with your actual table names. */
4
- sql?: string;
5
- /** Echo of the input text description for reference. */
6
- cohortDescription?: string;
7
- }
8
- export declare namespace ConstrueCohortResponse {
9
- type Queries = Queries.Item[];
10
- namespace Queries {
11
- interface Item {
12
- /** FHIR resource type (e.g., "Patient", "Condition"). */
13
- resource?: string;
14
- /** FHIR search parameters. */
15
- searchParams?: string;
16
- /** Indicates if this is an exclusion criteria. */
17
- exclude?: boolean;
18
- /** AI-generated explanation for the query component. */
19
- rationale?: string;
20
- codeExtractResults?: Item.CodeExtractResults.Item[];
21
- }
22
- namespace Item {
23
- type CodeExtractResults = CodeExtractResults.Item[];
24
- namespace CodeExtractResults {
25
- interface Item {
26
- /** Name of the coding system (e.g., "SNOMED_CT_US_LITE"). */
27
- systemName?: string;
28
- codes?: Item.Codes.Item[];
29
- }
30
- namespace Item {
31
- type Codes = Codes.Item[];
32
- namespace Codes {
33
- interface Item {
34
- /** Medical code. */
35
- code?: string;
36
- /** Description of the medical code. */
37
- description?: string;
38
- /** Reason for selecting the code. */
39
- reason?: string;
40
- }
41
- }
42
- }
43
- }
44
- }
45
- }
46
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- export interface InternalServerErrorBody {
2
- /** HTTP status code. */
3
- status?: number;
4
- /** Error message. */
5
- message?: string;
6
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- export interface UnauthorizedErrorBody {
2
- /** HTTP status code. */
3
- status?: number;
4
- /** Error message. */
5
- message?: string;
6
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,23 +0,0 @@
1
- /**
2
- * @example
3
- * {
4
- * text: "Between 20 and 40 years old with hyperlipidemia"
5
- * }
6
- */
7
- export interface ConstrueCohortRequest {
8
- config?: ConstrueCohortRequest.Config;
9
- /** Natural language description of the desired patient cohort. */
10
- text: string;
11
- }
12
- export declare namespace ConstrueCohortRequest {
13
- interface Config {
14
- /** When enabled, includes detailed information about medical codes extracted from the text. */
15
- include_extract_results?: boolean;
16
- /** When enabled, includes AI-generated explanations for each query component and code extraction. */
17
- include_rationale?: boolean;
18
- /** Controls whether deceased patients should be excluded from the cohort. */
19
- exclude_deceased?: boolean;
20
- /** Specifies the SQL dialect for query generation. Currently, only "bigquery" is supported. */
21
- sql_syntax?: "bigquery";
22
- }
23
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,6 +0,0 @@
1
- export interface BadRequestErrorBody {
2
- /** HTTP status code. */
3
- status?: number;
4
- /** Error message. */
5
- message?: string;
6
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,46 +0,0 @@
1
- export interface ConstrueCohortResponse {
2
- queries?: ConstrueCohortResponse.Queries.Item[];
3
- /** Generated SQL query when `sql_syntax` is specified. Variables in curly braces need to be replaced with your actual table names. */
4
- sql?: string;
5
- /** Echo of the input text description for reference. */
6
- cohortDescription?: string;
7
- }
8
- export declare namespace ConstrueCohortResponse {
9
- type Queries = Queries.Item[];
10
- namespace Queries {
11
- interface Item {
12
- /** FHIR resource type (e.g., "Patient", "Condition"). */
13
- resource?: string;
14
- /** FHIR search parameters. */
15
- searchParams?: string;
16
- /** Indicates if this is an exclusion criteria. */
17
- exclude?: boolean;
18
- /** AI-generated explanation for the query component. */
19
- rationale?: string;
20
- codeExtractResults?: Item.CodeExtractResults.Item[];
21
- }
22
- namespace Item {
23
- type CodeExtractResults = CodeExtractResults.Item[];
24
- namespace CodeExtractResults {
25
- interface Item {
26
- /** Name of the coding system (e.g., "SNOMED_CT_US_LITE"). */
27
- systemName?: string;
28
- codes?: Item.Codes.Item[];
29
- }
30
- namespace Item {
31
- type Codes = Codes.Item[];
32
- namespace Codes {
33
- interface Item {
34
- /** Medical code. */
35
- code?: string;
36
- /** Description of the medical code. */
37
- description?: string;
38
- /** Reason for selecting the code. */
39
- reason?: string;
40
- }
41
- }
42
- }
43
- }
44
- }
45
- }
46
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,6 +0,0 @@
1
- export interface InternalServerErrorBody {
2
- /** HTTP status code. */
3
- status?: number;
4
- /** Error message. */
5
- message?: string;
6
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,6 +0,0 @@
1
- export interface UnauthorizedErrorBody {
2
- /** HTTP status code. */
3
- status?: number;
4
- /** Error message. */
5
- message?: string;
6
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};