phenoml 6.3.0 → 6.4.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.
Files changed (68) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/agent/client/Client.d.ts +8 -1
  3. package/dist/cjs/api/resources/agent/client/Client.js +82 -1
  4. package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.d.ts +2 -0
  5. package/dist/cjs/api/resources/agent/client/requests/AgentStreamChatRequest.d.ts +31 -0
  6. package/dist/cjs/api/resources/agent/client/requests/AgentStreamChatRequest.js +3 -0
  7. package/dist/cjs/api/resources/agent/client/requests/index.d.ts +1 -0
  8. package/dist/cjs/api/resources/agent/types/AgentChatStreamEvent.d.ts +36 -0
  9. package/dist/cjs/api/resources/agent/types/AgentChatStreamEvent.js +16 -0
  10. package/dist/cjs/api/resources/agent/types/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/agent/types/index.js +1 -0
  12. package/dist/cjs/api/resources/construe/client/Client.d.ts +2 -2
  13. package/dist/cjs/api/resources/construe/client/Client.js +6 -6
  14. package/dist/cjs/api/resources/fhir/client/Client.d.ts +49 -49
  15. package/dist/cjs/api/resources/fhir/client/Client.js +69 -69
  16. package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +10 -10
  17. package/dist/cjs/api/resources/fhirProvider/client/Client.js +25 -25
  18. package/dist/cjs/api/resources/fhirProvider/types/Provider.d.ts +1 -0
  19. package/dist/cjs/api/resources/fhirProvider/types/Provider.js +1 -0
  20. package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.d.ts +4 -4
  21. package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.js +10 -10
  22. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.ts +8 -8
  23. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +20 -20
  24. package/dist/cjs/core/fetcher/Fetcher.js +12 -6
  25. package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -1
  26. package/dist/cjs/core/index.d.ts +1 -0
  27. package/dist/cjs/core/index.js +1 -0
  28. package/dist/cjs/core/stream/Stream.d.ts +47 -0
  29. package/dist/cjs/core/stream/Stream.js +175 -0
  30. package/dist/cjs/core/stream/index.d.ts +1 -0
  31. package/dist/cjs/core/stream/index.js +5 -0
  32. package/dist/cjs/version.d.ts +1 -1
  33. package/dist/cjs/version.js +1 -1
  34. package/dist/esm/Client.mjs +2 -2
  35. package/dist/esm/api/resources/agent/client/Client.d.mts +8 -1
  36. package/dist/esm/api/resources/agent/client/Client.mjs +82 -1
  37. package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.d.mts +2 -0
  38. package/dist/esm/api/resources/agent/client/requests/AgentStreamChatRequest.d.mts +31 -0
  39. package/dist/esm/api/resources/agent/client/requests/AgentStreamChatRequest.mjs +2 -0
  40. package/dist/esm/api/resources/agent/client/requests/index.d.mts +1 -0
  41. package/dist/esm/api/resources/agent/types/AgentChatStreamEvent.d.mts +36 -0
  42. package/dist/esm/api/resources/agent/types/AgentChatStreamEvent.mjs +13 -0
  43. package/dist/esm/api/resources/agent/types/index.d.mts +1 -0
  44. package/dist/esm/api/resources/agent/types/index.mjs +1 -0
  45. package/dist/esm/api/resources/construe/client/Client.d.mts +2 -2
  46. package/dist/esm/api/resources/construe/client/Client.mjs +6 -6
  47. package/dist/esm/api/resources/fhir/client/Client.d.mts +49 -49
  48. package/dist/esm/api/resources/fhir/client/Client.mjs +69 -69
  49. package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +10 -10
  50. package/dist/esm/api/resources/fhirProvider/client/Client.mjs +25 -25
  51. package/dist/esm/api/resources/fhirProvider/types/Provider.d.mts +1 -0
  52. package/dist/esm/api/resources/fhirProvider/types/Provider.mjs +1 -0
  53. package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.d.mts +4 -4
  54. package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.mjs +10 -10
  55. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.mts +8 -8
  56. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +20 -20
  57. package/dist/esm/core/fetcher/Fetcher.mjs +12 -6
  58. package/dist/esm/core/fetcher/makeRequest.d.mts +1 -1
  59. package/dist/esm/core/index.d.mts +1 -0
  60. package/dist/esm/core/index.mjs +1 -0
  61. package/dist/esm/core/stream/Stream.d.mts +47 -0
  62. package/dist/esm/core/stream/Stream.mjs +170 -0
  63. package/dist/esm/core/stream/index.d.mts +1 -0
  64. package/dist/esm/core/stream/index.mjs +1 -0
  65. package/dist/esm/version.d.mts +1 -1
  66. package/dist/esm/version.mjs +1 -1
  67. package/package.json +1 -1
  68. package/reference.md +115 -42
@@ -52,8 +52,8 @@ class phenomlClient {
52
52
  this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: (0, headers_js_1.mergeHeaders)({
53
53
  "X-Fern-Language": "JavaScript",
54
54
  "X-Fern-SDK-Name": "phenoml",
55
- "X-Fern-SDK-Version": "6.3.0",
56
- "User-Agent": "phenoml/auto",
55
+ "X-Fern-SDK-Version": "6.4.0",
56
+ "User-Agent": "phenoml/6.4.0",
57
57
  "X-Fern-Runtime": core.RUNTIME.type,
58
58
  "X-Fern-Runtime-Version": core.RUNTIME.version,
59
59
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -134,7 +134,7 @@ export declare class Agent {
134
134
  patch(id: string, request: phenoml.agent.JsonPatch, requestOptions?: Agent.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentResponse>;
135
135
  private __patch;
136
136
  /**
137
- * Send a message to an agent and receive a response
137
+ * Send a message to an agent and receive a JSON response.
138
138
  *
139
139
  * @param {phenoml.agent.AgentChatRequest} request
140
140
  * @param {Agent.RequestOptions} requestOptions - Request-specific configuration.
@@ -154,6 +154,13 @@ export declare class Agent {
154
154
  */
155
155
  chat(request: phenoml.agent.AgentChatRequest, requestOptions?: Agent.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentChatResponse>;
156
156
  private __chat;
157
+ /**
158
+ * Send a message to an agent and receive the response as a Server-Sent Events
159
+ * (SSE) stream. Events include message_start, content_delta, tool_use,
160
+ * tool_result, message_end, and error.
161
+ */
162
+ streamChat(request: phenoml.agent.AgentStreamChatRequest, requestOptions?: Agent.RequestOptions): core.HttpResponsePromise<core.Stream<phenoml.agent.AgentChatStreamEvent>>;
163
+ private __streamChat;
157
164
  /**
158
165
  * Retrieves a list of chat messages for a given chat session
159
166
  *
@@ -530,7 +530,7 @@ class Agent {
530
530
  });
531
531
  }
532
532
  /**
533
- * Send a message to an agent and receive a response
533
+ * Send a message to an agent and receive a JSON response.
534
534
  *
535
535
  * @param {phenoml.agent.AgentChatRequest} request
536
536
  * @param {Agent.RequestOptions} requestOptions - Request-specific configuration.
@@ -612,6 +612,87 @@ class Agent {
612
612
  }
613
613
  });
614
614
  }
615
+ /**
616
+ * Send a message to an agent and receive the response as a Server-Sent Events
617
+ * (SSE) stream. Events include message_start, content_delta, tool_use,
618
+ * tool_result, message_end, and error.
619
+ */
620
+ streamChat(request, requestOptions) {
621
+ return core.HttpResponsePromise.fromPromise(this.__streamChat(request, requestOptions));
622
+ }
623
+ __streamChat(request, requestOptions) {
624
+ return __awaiter(this, void 0, void 0, function* () {
625
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
626
+ const { "X-Phenoml-On-Behalf-Of": phenomlOnBehalfOf, "X-Phenoml-Fhir-Provider": phenomlFhirProvider } = request, _body = __rest(request, ["X-Phenoml-On-Behalf-Of", "X-Phenoml-Fhir-Provider"]);
627
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
628
+ Authorization: yield this._getAuthorizationHeader(),
629
+ "X-Phenoml-On-Behalf-Of": phenomlOnBehalfOf != null ? phenomlOnBehalfOf : undefined,
630
+ "X-Phenoml-Fhir-Provider": phenomlFhirProvider != null ? phenomlFhirProvider : undefined,
631
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
632
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
633
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, "agent/stream-chat"),
634
+ method: "POST",
635
+ headers: _headers,
636
+ contentType: "application/json",
637
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
638
+ requestType: "json",
639
+ body: _body,
640
+ responseType: "sse",
641
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
642
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
643
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
644
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
645
+ logging: this._options.logging,
646
+ });
647
+ if (_response.ok) {
648
+ return {
649
+ data: new core.Stream({
650
+ stream: _response.body,
651
+ parse: (data) => data,
652
+ signal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
653
+ eventShape: {
654
+ type: "sse",
655
+ streamTerminator: "[DONE]",
656
+ },
657
+ }),
658
+ rawResponse: _response.rawResponse,
659
+ };
660
+ }
661
+ if (_response.error.reason === "status-code") {
662
+ switch (_response.error.statusCode) {
663
+ case 400:
664
+ throw new phenoml.agent.BadRequestError(_response.error.body, _response.rawResponse);
665
+ case 401:
666
+ throw new phenoml.agent.UnauthorizedError(_response.error.body, _response.rawResponse);
667
+ case 403:
668
+ throw new phenoml.agent.ForbiddenError(_response.error.body, _response.rawResponse);
669
+ case 500:
670
+ throw new phenoml.agent.InternalServerError(_response.error.body, _response.rawResponse);
671
+ default:
672
+ throw new errors.phenomlError({
673
+ statusCode: _response.error.statusCode,
674
+ body: _response.error.body,
675
+ rawResponse: _response.rawResponse,
676
+ });
677
+ }
678
+ }
679
+ switch (_response.error.reason) {
680
+ case "non-json":
681
+ throw new errors.phenomlError({
682
+ statusCode: _response.error.statusCode,
683
+ body: _response.error.rawBody,
684
+ rawResponse: _response.rawResponse,
685
+ });
686
+ case "timeout":
687
+ throw new errors.phenomlTimeoutError("Timeout exceeded when calling POST /agent/stream-chat.");
688
+ case "unknown":
689
+ throw new errors.phenomlError({
690
+ message: _response.error.errorMessage,
691
+ rawResponse: _response.rawResponse,
692
+ });
693
+ }
694
+ });
695
+ }
615
696
  /**
616
697
  * Retrieves a list of chat messages for a given chat session
617
698
  *
@@ -26,4 +26,6 @@ export interface AgentChatRequest {
26
26
  session_id?: string;
27
27
  /** The ID of the agent to chat with */
28
28
  agent_id: string;
29
+ /** Enable enhanced reasoning capabilities, will increase latency but will also improve response quality and reliability. */
30
+ enhanced_reasoning?: boolean;
29
31
  }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
5
+ * "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
6
+ * message: "What is the patient's current condition?",
7
+ * agent_id: "agent-123"
8
+ * }
9
+ */
10
+ export interface AgentStreamChatRequest {
11
+ /**
12
+ * Optional header for on-behalf-of authentication. Used when making requests on behalf of another user or entity.
13
+ * Must be in the format: Patient/{uuid} or Practitioner/{uuid}
14
+ */
15
+ "X-Phenoml-On-Behalf-Of"?: string;
16
+ /**
17
+ * Optional header for FHIR provider authentication. Contains credentials in the format {fhir_provider_id}:{oauth2_token}.
18
+ * Multiple FHIR provider integrations can be provided as comma-separated values.
19
+ */
20
+ "X-Phenoml-Fhir-Provider"?: string;
21
+ /** The message to send to the agent */
22
+ message: string;
23
+ /** Optional context for the conversation */
24
+ context?: string;
25
+ /** Optional session ID for conversation continuity */
26
+ session_id?: string;
27
+ /** The ID of the agent to chat with */
28
+ agent_id: string;
29
+ /** Enable enhanced reasoning capabilities, will increase latency but will also improve response quality and reliability. */
30
+ enhanced_reasoning?: boolean;
31
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
1
  export type { AgentChatRequest } from "./AgentChatRequest.js";
2
2
  export type { AgentGetChatMessagesRequest } from "./AgentGetChatMessagesRequest.js";
3
3
  export type { AgentListRequest } from "./AgentListRequest.js";
4
+ export type { AgentStreamChatRequest } from "./AgentStreamChatRequest.js";
@@ -0,0 +1,36 @@
1
+ /**
2
+ * JSON payload sent in the `data:` line of a Server-Sent Event (SSE) frame for streaming chat responses.
3
+ * Each SSE frame uses the standard `event:` and `data:` lines; this schema describes the JSON object
4
+ * in the `data:` line. The event type is encoded in the top-level `type` property.
5
+ * Event types: message_start, content_delta, tool_use, tool_result, message_end, error.
6
+ */
7
+ export interface AgentChatStreamEvent {
8
+ /** The event type */
9
+ type?: AgentChatStreamEvent.Type;
10
+ /** Chat session ID */
11
+ session_id?: string;
12
+ /** Incremental text content (present in content_delta events) */
13
+ content?: string;
14
+ /** Whether the operation was successful */
15
+ success?: boolean;
16
+ /** Status message */
17
+ message?: string;
18
+ /** Tool/function name (present in tool_use and tool_result events) */
19
+ function_name?: string;
20
+ /** Tool arguments (present in tool_use events) */
21
+ function_args?: Record<string, unknown>;
22
+ /** Tool execution result (present in tool_result events) */
23
+ function_result?: Record<string, unknown>;
24
+ }
25
+ export declare namespace AgentChatStreamEvent {
26
+ /** The event type */
27
+ const Type: {
28
+ readonly MessageStart: "message_start";
29
+ readonly ContentDelta: "content_delta";
30
+ readonly ToolUse: "tool_use";
31
+ readonly ToolResult: "tool_result";
32
+ readonly MessageEnd: "message_end";
33
+ readonly Error: "error";
34
+ };
35
+ type Type = (typeof Type)[keyof typeof Type];
36
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AgentChatStreamEvent = void 0;
5
+ var AgentChatStreamEvent;
6
+ (function (AgentChatStreamEvent) {
7
+ /** The event type */
8
+ AgentChatStreamEvent.Type = {
9
+ MessageStart: "message_start",
10
+ ContentDelta: "content_delta",
11
+ ToolUse: "tool_use",
12
+ ToolResult: "tool_result",
13
+ MessageEnd: "message_end",
14
+ Error: "error",
15
+ };
16
+ })(AgentChatStreamEvent || (exports.AgentChatStreamEvent = AgentChatStreamEvent = {}));
@@ -1,4 +1,5 @@
1
1
  export * from "./AgentChatResponse.js";
2
+ export * from "./AgentChatStreamEvent.js";
2
3
  export * from "./AgentCreateRequest.js";
3
4
  export * from "./AgentDeleteResponse.js";
4
5
  export * from "./AgentGetChatMessagesRequestOrder.js";
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AgentChatResponse.js"), exports);
18
+ __exportStar(require("./AgentChatStreamEvent.js"), exports);
18
19
  __exportStar(require("./AgentCreateRequest.js"), exports);
19
20
  __exportStar(require("./AgentDeleteResponse.js"), exports);
20
21
  __exportStar(require("./AgentGetChatMessagesRequestOrder.js"), exports);
@@ -163,7 +163,7 @@ export declare class Construe {
163
163
  * Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
164
164
  *
165
165
  * @param {string} codesystem - Code system name
166
- * @param {string} codeId - The code identifier
166
+ * @param {string} codeID - The code identifier
167
167
  * @param {phenoml.construe.GetConstrueCodesCodesystemCodeIdRequest} request
168
168
  * @param {Construe.RequestOptions} requestOptions - Request-specific configuration.
169
169
  *
@@ -177,7 +177,7 @@ export declare class Construe {
177
177
  * version: "version"
178
178
  * })
179
179
  */
180
- getASpecificCode(codesystem: string, codeId: string, request?: phenoml.construe.GetConstrueCodesCodesystemCodeIdRequest, requestOptions?: Construe.RequestOptions): core.HttpResponsePromise<phenoml.construe.GetCodeResponse>;
180
+ getASpecificCode(codesystem: string, codeID: string, request?: phenoml.construe.GetConstrueCodesCodesystemCodeIdRequest, requestOptions?: Construe.RequestOptions): core.HttpResponsePromise<phenoml.construe.GetCodeResponse>;
181
181
  private __getASpecificCode;
182
182
  /**
183
183
  * Performs semantic similarity search using vector embeddings.
@@ -643,7 +643,7 @@ class Construe {
643
643
  * Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
644
644
  *
645
645
  * @param {string} codesystem - Code system name
646
- * @param {string} codeId - The code identifier
646
+ * @param {string} codeID - The code identifier
647
647
  * @param {phenoml.construe.GetConstrueCodesCodesystemCodeIdRequest} request
648
648
  * @param {Construe.RequestOptions} requestOptions - Request-specific configuration.
649
649
  *
@@ -657,11 +657,11 @@ class Construe {
657
657
  * version: "version"
658
658
  * })
659
659
  */
660
- getASpecificCode(codesystem, codeId, request = {}, requestOptions) {
661
- return core.HttpResponsePromise.fromPromise(this.__getASpecificCode(codesystem, codeId, request, requestOptions));
660
+ getASpecificCode(codesystem, codeID, request = {}, requestOptions) {
661
+ return core.HttpResponsePromise.fromPromise(this.__getASpecificCode(codesystem, codeID, request, requestOptions));
662
662
  }
663
- __getASpecificCode(codesystem_1, codeId_1) {
664
- return __awaiter(this, arguments, void 0, function* (codesystem, codeId, request = {}, requestOptions) {
663
+ __getASpecificCode(codesystem_1, codeID_1) {
664
+ return __awaiter(this, arguments, void 0, function* (codesystem, codeID, request = {}, requestOptions) {
665
665
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
666
666
  const { version } = request;
667
667
  const _queryParams = {};
@@ -670,7 +670,7 @@ class Construe {
670
670
  }
671
671
  const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
672
672
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
673
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `construe/codes/${core.url.encodePathParam(codesystem)}/${core.url.encodePathParam(codeId)}`),
673
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `construe/codes/${core.url.encodePathParam(codesystem)}/${core.url.encodePathParam(codeID)}`),
674
674
  method: "GET",
675
675
  headers: _headers,
676
676
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -15,14 +15,14 @@ export declare class Fhir {
15
15
  *
16
16
  * The request is proxied to the configured FHIR server with appropriate authentication headers.
17
17
  *
18
- * @param {string} fhirProviderId - The ID of the FHIR provider to use. Can be either:
19
- * - A UUID representing the provider ID
20
- * - A provider name (legacy support - will just use the most recently updated provider with this name)
21
- * @param {string} fhirPath - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
22
- * Examples:
23
- * - "Patient" (for resource type operations)
24
- * - "Patient/123" (for specific resource operations)
25
- * - "Patient/123/_history" (for history operations)
18
+ * @param {string} fhir_provider_id - The ID of the FHIR provider to use. Can be either:
19
+ * - A UUID representing the provider ID
20
+ * - A provider name (legacy support - will just use the most recently updated provider with this name)
21
+ * @param {string} fhir_path - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
22
+ * Examples:
23
+ * - "Patient" (for resource type operations)
24
+ * - "Patient/123" (for specific resource operations)
25
+ * - "Patient/123/_history" (for history operations)
26
26
  * @param {phenoml.fhir.FhirSearchRequest} request
27
27
  * @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
28
28
  *
@@ -38,21 +38,21 @@ export declare class Fhir {
38
38
  * "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c..."
39
39
  * })
40
40
  */
41
- search(fhirProviderId: string, fhirPath: string, request?: phenoml.fhir.FhirSearchRequest, requestOptions?: Fhir.RequestOptions): core.HttpResponsePromise<phenoml.fhir.FhirSearchResponse>;
41
+ search(fhir_provider_id: string, fhir_path: string, request?: phenoml.fhir.FhirSearchRequest, requestOptions?: Fhir.RequestOptions): core.HttpResponsePromise<phenoml.fhir.FhirSearchResponse>;
42
42
  private __search;
43
43
  /**
44
44
  * Creates a new FHIR resource on the specified provider. The request body should contain a valid FHIR resource in JSON format.
45
45
  *
46
46
  * The request is proxied to the configured FHIR server with appropriate authentication headers.
47
47
  *
48
- * @param {string} fhirProviderId - The ID of the FHIR provider to use. Can be either:
49
- * - A UUID representing the provider ID
50
- * - A provider name (legacy support - will just use the most recently updated provider with this name)
51
- * @param {string} fhirPath - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
52
- * Examples:
53
- * - "Patient" (for resource type operations)
54
- * - "Patient/123" (for specific resource operations)
55
- * - "Patient/123/_history" (for history operations)
48
+ * @param {string} fhir_provider_id - The ID of the FHIR provider to use. Can be either:
49
+ * - A UUID representing the provider ID
50
+ * - A provider name (legacy support - will just use the most recently updated provider with this name)
51
+ * @param {string} fhir_path - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
52
+ * Examples:
53
+ * - "Patient" (for resource type operations)
54
+ * - "Patient/123" (for specific resource operations)
55
+ * - "Patient/123/_history" (for history operations)
56
56
  * @param {phenoml.fhir.FhirCreateRequest} request
57
57
  * @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
58
58
  *
@@ -80,21 +80,21 @@ export declare class Fhir {
80
80
  * }
81
81
  * })
82
82
  */
83
- create(fhirProviderId: string, fhirPath: string, request: phenoml.fhir.FhirCreateRequest, requestOptions?: Fhir.RequestOptions): core.HttpResponsePromise<phenoml.fhir.FhirResource>;
83
+ create(fhir_provider_id: string, fhir_path: string, request: phenoml.fhir.FhirCreateRequest, requestOptions?: Fhir.RequestOptions): core.HttpResponsePromise<phenoml.fhir.FhirResource>;
84
84
  private __create;
85
85
  /**
86
86
  * Creates or updates a FHIR resource on the specified provider. If the resource exists, it will be updated; otherwise, it will be created.
87
87
  *
88
88
  * The request is proxied to the configured FHIR server with appropriate authentication headers.
89
89
  *
90
- * @param {string} fhirProviderId - The ID of the FHIR provider to use. Can be either:
91
- * - A UUID representing the provider ID
92
- * - A provider name (legacy support - will just use the most recently updated provider with this name)
93
- * @param {string} fhirPath - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
94
- * Examples:
95
- * - "Patient" (for resource type operations)
96
- * - "Patient/123" (for specific resource operations)
97
- * - "Patient/123/_history" (for history operations)
90
+ * @param {string} fhir_provider_id - The ID of the FHIR provider to use. Can be either:
91
+ * - A UUID representing the provider ID
92
+ * - A provider name (legacy support - will just use the most recently updated provider with this name)
93
+ * @param {string} fhir_path - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
94
+ * Examples:
95
+ * - "Patient" (for resource type operations)
96
+ * - "Patient/123" (for specific resource operations)
97
+ * - "Patient/123/_history" (for history operations)
98
98
  * @param {phenoml.fhir.FhirUpsertRequest} request
99
99
  * @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
100
100
  *
@@ -124,21 +124,21 @@ export declare class Fhir {
124
124
  * }
125
125
  * })
126
126
  */
127
- upsert(fhirProviderId: string, fhirPath: string, request: phenoml.fhir.FhirUpsertRequest, requestOptions?: Fhir.RequestOptions): core.HttpResponsePromise<phenoml.fhir.FhirResource>;
127
+ upsert(fhir_provider_id: string, fhir_path: string, request: phenoml.fhir.FhirUpsertRequest, requestOptions?: Fhir.RequestOptions): core.HttpResponsePromise<phenoml.fhir.FhirResource>;
128
128
  private __upsert;
129
129
  /**
130
130
  * Deletes a FHIR resource from the specified provider.
131
131
  *
132
132
  * The request is proxied to the configured FHIR server with appropriate authentication headers.
133
133
  *
134
- * @param {string} fhirProviderId - The ID of the FHIR provider to use. Can be either:
135
- * - A UUID representing the provider ID
136
- * - A provider name (legacy support - will just use the most recently updated provider with this name)
137
- * @param {string} fhirPath - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
138
- * Examples:
139
- * - "Patient" (for resource type operations)
140
- * - "Patient/123" (for specific resource operations)
141
- * - "Patient/123/_history" (for history operations)
134
+ * @param {string} fhir_provider_id - The ID of the FHIR provider to use. Can be either:
135
+ * - A UUID representing the provider ID
136
+ * - A provider name (legacy support - will just use the most recently updated provider with this name)
137
+ * @param {string} fhir_path - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
138
+ * Examples:
139
+ * - "Patient" (for resource type operations)
140
+ * - "Patient/123" (for specific resource operations)
141
+ * - "Patient/123/_history" (for history operations)
142
142
  * @param {phenoml.fhir.FhirDeleteRequest} request
143
143
  * @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
144
144
  *
@@ -154,7 +154,7 @@ export declare class Fhir {
154
154
  * "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c..."
155
155
  * })
156
156
  */
157
- delete(fhirProviderId: string, fhirPath: string, request?: phenoml.fhir.FhirDeleteRequest, requestOptions?: Fhir.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
157
+ delete(fhir_provider_id: string, fhir_path: string, request?: phenoml.fhir.FhirDeleteRequest, requestOptions?: Fhir.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
158
158
  private __delete;
159
159
  /**
160
160
  * Partially updates a FHIR resource on the specified provider using JSON Patch operations as defined in RFC 6902.
@@ -166,14 +166,14 @@ export declare class Fhir {
166
166
  *
167
167
  * The request is proxied to the configured FHIR server with appropriate authentication headers.
168
168
  *
169
- * @param {string} fhirProviderId - The ID of the FHIR provider to use. Can be either:
170
- * - A UUID representing the provider ID
171
- * - A provider name (legacy support - will just use the most recently updated provider with this name)
172
- * @param {string} fhirPath - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
173
- * Examples:
174
- * - "Patient" (for resource type operations)
175
- * - "Patient/123" (for specific resource operations)
176
- * - "Patient/123/_history" (for history operations)
169
+ * @param {string} fhir_provider_id - The ID of the FHIR provider to use. Can be either:
170
+ * - A UUID representing the provider ID
171
+ * - A provider name (legacy support - will just use the most recently updated provider with this name)
172
+ * @param {string} fhir_path - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
173
+ * Examples:
174
+ * - "Patient" (for resource type operations)
175
+ * - "Patient/123" (for specific resource operations)
176
+ * - "Patient/123/_history" (for history operations)
177
177
  * @param {phenoml.fhir.FhirPatchRequest} request
178
178
  * @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
179
179
  *
@@ -245,7 +245,7 @@ export declare class Fhir {
245
245
  * }]
246
246
  * })
247
247
  */
248
- patch(fhirProviderId: string, fhirPath: string, request: phenoml.fhir.FhirPatchRequest, requestOptions?: Fhir.RequestOptions): core.HttpResponsePromise<phenoml.fhir.FhirResource>;
248
+ patch(fhir_provider_id: string, fhir_path: string, request: phenoml.fhir.FhirPatchRequest, requestOptions?: Fhir.RequestOptions): core.HttpResponsePromise<phenoml.fhir.FhirResource>;
249
249
  private __patch;
250
250
  /**
251
251
  * Executes a FHIR Bundle transaction or batch operation on the specified provider. This allows multiple FHIR resources to be processed in a single request.
@@ -254,9 +254,9 @@ export declare class Fhir {
254
254
  *
255
255
  * The request is proxied to the configured FHIR server with appropriate authentication headers.
256
256
  *
257
- * @param {string} fhirProviderId - The ID of the FHIR provider to use. Can be either:
258
- * - A UUID representing the provider ID
259
- * - A provider name (legacy support - will just use the most recently updated provider with this name)
257
+ * @param {string} fhir_provider_id - The ID of the FHIR provider to use. Can be either:
258
+ * - A UUID representing the provider ID
259
+ * - A provider name (legacy support - will just use the most recently updated provider with this name)
260
260
  * @param {phenoml.fhir.FhirExecuteBundleRequest} request
261
261
  * @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
262
262
  *
@@ -303,7 +303,7 @@ export declare class Fhir {
303
303
  * }
304
304
  * })
305
305
  */
306
- executeBundle(fhirProviderId: string, request: phenoml.fhir.FhirExecuteBundleRequest, requestOptions?: Fhir.RequestOptions): core.HttpResponsePromise<phenoml.fhir.FhirBundle>;
306
+ executeBundle(fhir_provider_id: string, request: phenoml.fhir.FhirExecuteBundleRequest, requestOptions?: Fhir.RequestOptions): core.HttpResponsePromise<phenoml.fhir.FhirBundle>;
307
307
  private __executeBundle;
308
308
  protected _getAuthorizationHeader(): Promise<string>;
309
309
  }