phenoml 12.0.1 → 12.2.0
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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/lang2Fhir/client/requests/CreateMultiRequest.d.ts +12 -0
- package/dist/cjs/api/resources/lang2Fhir/client/requests/CreateMultiRequest.js +9 -0
- package/dist/cjs/api/resources/lang2Fhir/client/requests/DocumentMultiRequest.d.ts +12 -0
- package/dist/cjs/api/resources/lang2Fhir/client/requests/DocumentMultiRequest.js +9 -0
- package/dist/cjs/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.d.ts +4 -0
- package/dist/cjs/api/resources/lang2Fhir/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/lang2Fhir/client/requests/index.js +5 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/lang2Fhir/client/requests/CreateMultiRequest.d.mts +12 -0
- package/dist/esm/api/resources/lang2Fhir/client/requests/CreateMultiRequest.mjs +8 -1
- package/dist/esm/api/resources/lang2Fhir/client/requests/DocumentMultiRequest.d.mts +12 -0
- package/dist/esm/api/resources/lang2Fhir/client/requests/DocumentMultiRequest.mjs +8 -1
- package/dist/esm/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.d.mts +4 -0
- package/dist/esm/api/resources/lang2Fhir/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/lang2Fhir/client/requests/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "phenoml",
|
|
46
|
-
"X-Fern-SDK-Version": "12.0
|
|
47
|
-
"User-Agent": "phenoml/12.0
|
|
46
|
+
"X-Fern-SDK-Version": "12.2.0",
|
|
47
|
+
"User-Agent": "phenoml/12.2.0",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -11,4 +11,16 @@ export interface CreateMultiRequest {
|
|
|
11
11
|
version?: string;
|
|
12
12
|
/** Optional FHIR provider name for provider-specific profiles */
|
|
13
13
|
provider?: string;
|
|
14
|
+
/** Custom Implementation Guide name. When specified, profiles from this IG are included alongside US Core profiles during resource detection. US Core is always the base layer; custom IG profiles are additive. */
|
|
15
|
+
implementation_guide?: string;
|
|
16
|
+
/** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
|
|
17
|
+
detection_effort?: CreateMultiRequest.DetectionEffort;
|
|
18
|
+
}
|
|
19
|
+
export declare namespace CreateMultiRequest {
|
|
20
|
+
/** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
|
|
21
|
+
const DetectionEffort: {
|
|
22
|
+
readonly Standard: "standard";
|
|
23
|
+
readonly Deep: "deep";
|
|
24
|
+
};
|
|
25
|
+
type DetectionEffort = (typeof DetectionEffort)[keyof typeof DetectionEffort];
|
|
14
26
|
}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CreateMultiRequest = void 0;
|
|
5
|
+
var CreateMultiRequest;
|
|
6
|
+
(function (CreateMultiRequest) {
|
|
7
|
+
/** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
|
|
8
|
+
CreateMultiRequest.DetectionEffort = {
|
|
9
|
+
Standard: "standard",
|
|
10
|
+
Deep: "deep",
|
|
11
|
+
};
|
|
12
|
+
})(CreateMultiRequest || (exports.CreateMultiRequest = CreateMultiRequest = {}));
|
|
@@ -16,4 +16,16 @@ export interface DocumentMultiRequest {
|
|
|
16
16
|
content: string;
|
|
17
17
|
/** Optional FHIR provider name for provider-specific profiles */
|
|
18
18
|
provider?: string;
|
|
19
|
+
/** Custom Implementation Guide name. When specified, profiles from this IG are included alongside US Core profiles during resource detection. US Core is always the base layer; custom IG profiles are additive. */
|
|
20
|
+
implementation_guide?: string;
|
|
21
|
+
/** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
|
|
22
|
+
detection_effort?: DocumentMultiRequest.DetectionEffort;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace DocumentMultiRequest {
|
|
25
|
+
/** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
|
|
26
|
+
const DetectionEffort: {
|
|
27
|
+
readonly Standard: "standard";
|
|
28
|
+
readonly Deep: "deep";
|
|
29
|
+
};
|
|
30
|
+
type DetectionEffort = (typeof DetectionEffort)[keyof typeof DetectionEffort];
|
|
19
31
|
}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.DocumentMultiRequest = void 0;
|
|
5
|
+
var DocumentMultiRequest;
|
|
6
|
+
(function (DocumentMultiRequest) {
|
|
7
|
+
/** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
|
|
8
|
+
DocumentMultiRequest.DetectionEffort = {
|
|
9
|
+
Standard: "standard",
|
|
10
|
+
Deep: "deep",
|
|
11
|
+
};
|
|
12
|
+
})(DocumentMultiRequest || (exports.DocumentMultiRequest = DocumentMultiRequest = {}));
|
|
@@ -7,4 +7,8 @@
|
|
|
7
7
|
export interface ProfileUploadRequest {
|
|
8
8
|
/** Base64 encoded JSON string of a FHIR StructureDefinition. The profile must include id, url, type, and a snapshot with elements. All metadata (version, resource type, identifier) is derived from the StructureDefinition itself. The lowercase id from the StructureDefinition becomes the profile's lookup key. */
|
|
9
9
|
profile: string;
|
|
10
|
+
/** Implementation Guide name to group this profile under. Defaults to "custom" if omitted. Cannot be "us_core" (reserved). Use this to organize custom profiles into named IGs that can be referenced when calling create/multi or document/multi endpoints. */
|
|
11
|
+
implementation_guide?: string;
|
|
12
|
+
/** Natural language context that helps the LLM select the right profiles from this implementation guide during resource detection. For example, "When the text mentions phenotypic features or abnormalities, prefer the hpo-observation profile over Condition." This is stored as IG-level metadata and injected into the LLM prompt. Max 2000 characters. Providing this field on any upload will update the context for the entire IG (last write wins). */
|
|
13
|
+
profile_context?: string;
|
|
10
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { CreateMultiRequest } from "./CreateMultiRequest.js";
|
|
2
2
|
export { CreateRequest } from "./CreateRequest.js";
|
|
3
|
-
export
|
|
3
|
+
export { DocumentMultiRequest } from "./DocumentMultiRequest.js";
|
|
4
4
|
export type { DocumentRequest } from "./DocumentRequest.js";
|
|
5
5
|
export type { ProfileUploadRequest } from "./ProfileUploadRequest.js";
|
|
6
6
|
export type { SearchRequest } from "./SearchRequest.js";
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateRequest = void 0;
|
|
3
|
+
exports.DocumentMultiRequest = exports.CreateRequest = exports.CreateMultiRequest = void 0;
|
|
4
|
+
var CreateMultiRequest_js_1 = require("./CreateMultiRequest.js");
|
|
5
|
+
Object.defineProperty(exports, "CreateMultiRequest", { enumerable: true, get: function () { return CreateMultiRequest_js_1.CreateMultiRequest; } });
|
|
4
6
|
var CreateRequest_js_1 = require("./CreateRequest.js");
|
|
5
7
|
Object.defineProperty(exports, "CreateRequest", { enumerable: true, get: function () { return CreateRequest_js_1.CreateRequest; } });
|
|
8
|
+
var DocumentMultiRequest_js_1 = require("./DocumentMultiRequest.js");
|
|
9
|
+
Object.defineProperty(exports, "DocumentMultiRequest", { enumerable: true, get: function () { return DocumentMultiRequest_js_1.DocumentMultiRequest; } });
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "12.0
|
|
1
|
+
export declare const SDK_VERSION = "12.2.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "phenoml",
|
|
9
|
-
"X-Fern-SDK-Version": "12.0
|
|
10
|
-
"User-Agent": "phenoml/12.0
|
|
9
|
+
"X-Fern-SDK-Version": "12.2.0",
|
|
10
|
+
"User-Agent": "phenoml/12.2.0",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -11,4 +11,16 @@ export interface CreateMultiRequest {
|
|
|
11
11
|
version?: string;
|
|
12
12
|
/** Optional FHIR provider name for provider-specific profiles */
|
|
13
13
|
provider?: string;
|
|
14
|
+
/** Custom Implementation Guide name. When specified, profiles from this IG are included alongside US Core profiles during resource detection. US Core is always the base layer; custom IG profiles are additive. */
|
|
15
|
+
implementation_guide?: string;
|
|
16
|
+
/** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
|
|
17
|
+
detection_effort?: CreateMultiRequest.DetectionEffort;
|
|
18
|
+
}
|
|
19
|
+
export declare namespace CreateMultiRequest {
|
|
20
|
+
/** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
|
|
21
|
+
const DetectionEffort: {
|
|
22
|
+
readonly Standard: "standard";
|
|
23
|
+
readonly Deep: "deep";
|
|
24
|
+
};
|
|
25
|
+
type DetectionEffort = (typeof DetectionEffort)[keyof typeof DetectionEffort];
|
|
14
26
|
}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export
|
|
2
|
+
export var CreateMultiRequest;
|
|
3
|
+
(function (CreateMultiRequest) {
|
|
4
|
+
/** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
|
|
5
|
+
CreateMultiRequest.DetectionEffort = {
|
|
6
|
+
Standard: "standard",
|
|
7
|
+
Deep: "deep",
|
|
8
|
+
};
|
|
9
|
+
})(CreateMultiRequest || (CreateMultiRequest = {}));
|
|
@@ -16,4 +16,16 @@ export interface DocumentMultiRequest {
|
|
|
16
16
|
content: string;
|
|
17
17
|
/** Optional FHIR provider name for provider-specific profiles */
|
|
18
18
|
provider?: string;
|
|
19
|
+
/** Custom Implementation Guide name. When specified, profiles from this IG are included alongside US Core profiles during resource detection. US Core is always the base layer; custom IG profiles are additive. */
|
|
20
|
+
implementation_guide?: string;
|
|
21
|
+
/** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
|
|
22
|
+
detection_effort?: DocumentMultiRequest.DetectionEffort;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace DocumentMultiRequest {
|
|
25
|
+
/** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
|
|
26
|
+
const DetectionEffort: {
|
|
27
|
+
readonly Standard: "standard";
|
|
28
|
+
readonly Deep: "deep";
|
|
29
|
+
};
|
|
30
|
+
type DetectionEffort = (typeof DetectionEffort)[keyof typeof DetectionEffort];
|
|
19
31
|
}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export
|
|
2
|
+
export var DocumentMultiRequest;
|
|
3
|
+
(function (DocumentMultiRequest) {
|
|
4
|
+
/** Detection effort. 'standard' runs detection once, 'deep' runs detection multiple times for higher recall. */
|
|
5
|
+
DocumentMultiRequest.DetectionEffort = {
|
|
6
|
+
Standard: "standard",
|
|
7
|
+
Deep: "deep",
|
|
8
|
+
};
|
|
9
|
+
})(DocumentMultiRequest || (DocumentMultiRequest = {}));
|
|
@@ -7,4 +7,8 @@
|
|
|
7
7
|
export interface ProfileUploadRequest {
|
|
8
8
|
/** Base64 encoded JSON string of a FHIR StructureDefinition. The profile must include id, url, type, and a snapshot with elements. All metadata (version, resource type, identifier) is derived from the StructureDefinition itself. The lowercase id from the StructureDefinition becomes the profile's lookup key. */
|
|
9
9
|
profile: string;
|
|
10
|
+
/** Implementation Guide name to group this profile under. Defaults to "custom" if omitted. Cannot be "us_core" (reserved). Use this to organize custom profiles into named IGs that can be referenced when calling create/multi or document/multi endpoints. */
|
|
11
|
+
implementation_guide?: string;
|
|
12
|
+
/** Natural language context that helps the LLM select the right profiles from this implementation guide during resource detection. For example, "When the text mentions phenotypic features or abnormalities, prefer the hpo-observation profile over Condition." This is stored as IG-level metadata and injected into the LLM prompt. Max 2000 characters. Providing this field on any upload will update the context for the entire IG (last write wins). */
|
|
13
|
+
profile_context?: string;
|
|
10
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { CreateMultiRequest } from "./CreateMultiRequest.mjs";
|
|
2
2
|
export { CreateRequest } from "./CreateRequest.mjs";
|
|
3
|
-
export
|
|
3
|
+
export { DocumentMultiRequest } from "./DocumentMultiRequest.mjs";
|
|
4
4
|
export type { DocumentRequest } from "./DocumentRequest.mjs";
|
|
5
5
|
export type { ProfileUploadRequest } from "./ProfileUploadRequest.mjs";
|
|
6
6
|
export type { SearchRequest } from "./SearchRequest.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "12.0
|
|
1
|
+
export declare const SDK_VERSION = "12.2.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "12.0
|
|
1
|
+
export const SDK_VERSION = "12.2.0";
|