@oystehr/sdk 3.0.0 → 3.0.1
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/client/client.d.ts +2 -2
- package/dist/cjs/index.cjs +5 -3
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.min.cjs +1 -1
- package/dist/cjs/index.min.cjs.map +1 -1
- package/dist/cjs/resources/classes/fhir-ext.d.ts +9 -33
- package/dist/cjs/resources/classes/index.d.ts +1 -0
- package/dist/cjs/resources/types/AccessPolicy.d.ts +1 -1
- package/dist/cjs/resources/types/ClaimCMS1500.d.ts +5 -5
- package/dist/cjs/resources/types/ConversationAddParticipantParams.d.ts +1 -1
- package/dist/cjs/resources/types/ErxMedicationSearchResponse.d.ts +3 -3
- package/dist/cjs/resources/types/Project.d.ts +1 -1
- package/dist/cjs/resources/types/VersionGetResponse.d.ts +2 -2
- package/dist/cjs/resources/types/Z3GetPresignedUrlParams.d.ts +1 -1
- package/dist/cjs/resources/types/ZambdaCreateParams.d.ts +1 -1
- package/dist/cjs/resources/types/ZambdaFunction.d.ts +2 -2
- package/dist/cjs/resources/types/ZambdaUpdateParams.d.ts +2 -2
- package/dist/cjs/resources/types/fhir.d.ts +34 -1
- package/dist/esm/client/client.d.ts +2 -2
- package/dist/esm/client/client.js.map +1 -1
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/resources/classes/fhir-ext.d.ts +9 -33
- package/dist/esm/resources/classes/fhir-ext.js +4 -3
- package/dist/esm/resources/classes/fhir-ext.js.map +1 -1
- package/dist/esm/resources/classes/index.d.ts +1 -0
- package/dist/esm/resources/classes/index.js +1 -0
- package/dist/esm/resources/classes/index.js.map +1 -1
- package/dist/esm/resources/types/AccessPolicy.d.ts +1 -1
- package/dist/esm/resources/types/ClaimCMS1500.d.ts +5 -5
- package/dist/esm/resources/types/ConversationAddParticipantParams.d.ts +1 -1
- package/dist/esm/resources/types/ErxMedicationSearchResponse.d.ts +3 -3
- package/dist/esm/resources/types/Project.d.ts +1 -1
- package/dist/esm/resources/types/VersionGetResponse.d.ts +2 -2
- package/dist/esm/resources/types/Z3GetPresignedUrlParams.d.ts +1 -1
- package/dist/esm/resources/types/ZambdaCreateParams.d.ts +1 -1
- package/dist/esm/resources/types/ZambdaFunction.d.ts +2 -2
- package/dist/esm/resources/types/ZambdaUpdateParams.d.ts +2 -2
- package/dist/esm/resources/types/fhir.d.ts +34 -1
- package/package.json +1 -1
- package/src/client/client.ts +2 -2
- package/src/resources/classes/fhir-ext.ts +28 -12
- package/src/resources/classes/index.ts +2 -0
- package/src/resources/types/AccessPolicy.ts +1 -1
- package/src/resources/types/ClaimCMS1500.ts +12 -5
- package/src/resources/types/ConversationAddParticipantParams.ts +1 -1
- package/src/resources/types/ErxMedicationSearchResponse.ts +3 -3
- package/src/resources/types/Project.ts +1 -1
- package/src/resources/types/VersionGetResponse.ts +2 -2
- package/src/resources/types/Z3GetPresignedUrlParams.ts +1 -1
- package/src/resources/types/ZambdaCreateParams.ts +1 -1
- package/src/resources/types/ZambdaFunction.ts +2 -2
- package/src/resources/types/ZambdaUpdateParams.ts +2 -2
- package/src/resources/types/fhir.ts +56 -2
|
@@ -31,8 +31,8 @@ export type FhirFetcherResponse<T extends FhirData<FhirResource> = any> = T;
|
|
|
31
31
|
export declare class SDKResource {
|
|
32
32
|
private readonly config;
|
|
33
33
|
constructor(config: OystehrConfig);
|
|
34
|
-
request(path: string, method: string): FetcherFunction;
|
|
35
|
-
fhirRequest<T extends FhirResource = any>(path: string, method: string): (params: any, request?: InternalClientRequest) => Promise<FhirFetcherResponse<T>>;
|
|
34
|
+
protected request(path: string, method: string): FetcherFunction;
|
|
35
|
+
protected fhirRequest<T extends FhirResource = any>(path: string, method: string): (params: any, request?: InternalClientRequest) => Promise<FhirFetcherResponse<T>>;
|
|
36
36
|
}
|
|
37
37
|
export type FetcherError = {
|
|
38
38
|
message: string;
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -576,11 +576,12 @@ class Erx extends SDKResource {
|
|
|
576
576
|
* @param request optional OystehrClientRequest object
|
|
577
577
|
* @returns FHIR Bundle resource
|
|
578
578
|
*/
|
|
579
|
-
function search(
|
|
579
|
+
function search(params, request) {
|
|
580
580
|
return __awaiter(this, void 0, void 0, function* () {
|
|
581
|
+
const { resourceType, params: searchParams } = params;
|
|
581
582
|
let paramMap;
|
|
582
|
-
if (
|
|
583
|
-
paramMap = Object.entries(
|
|
583
|
+
if (searchParams) {
|
|
584
|
+
paramMap = Object.entries(searchParams).reduce((acc, [_, param]) => {
|
|
584
585
|
if (!acc[param.name]) {
|
|
585
586
|
acc[param.name] = [];
|
|
586
587
|
}
|
|
@@ -1301,6 +1302,7 @@ class ZambdaLogStream extends SDKResource {
|
|
|
1301
1302
|
// AUTOGENERATED -- DO NOT EDIT
|
|
1302
1303
|
let Oystehr$1 = class Oystehr {
|
|
1303
1304
|
constructor(config) {
|
|
1305
|
+
this.config = config;
|
|
1304
1306
|
this.application = new Application(config);
|
|
1305
1307
|
this.developer = new Developer(config);
|
|
1306
1308
|
this.m2m = new M2m(config);
|