@oystehr/sdk 4.3.3 → 4.3.5
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/README.md +1 -1
- package/dist/cjs/config.d.ts +15 -0
- package/dist/cjs/index.min.cjs +1 -1
- package/dist/cjs/index.min.cjs.map +1 -1
- package/dist/cjs/resources/classes/fhir-ext.cjs +294 -19
- package/dist/cjs/resources/classes/fhir-ext.cjs.map +1 -1
- package/dist/cjs/resources/classes/fhir-ext.d.ts +2 -1
- package/dist/cjs/resources/classes/fhir.cjs +1 -0
- package/dist/cjs/resources/classes/fhir.cjs.map +1 -1
- package/dist/cjs/resources/classes/fhir.d.ts +1 -0
- package/dist/cjs/resources/classes/index.cjs +7 -0
- package/dist/cjs/resources/classes/index.cjs.map +1 -1
- package/dist/cjs/resources/types/RcmListPayersParams.d.ts +4 -0
- package/dist/cjs/resources/types/RcmListPayersResponse.d.ts +9 -1
- package/dist/cjs/resources/types/TelemedCreateMeetingParams.d.ts +4 -0
- package/dist/cjs/resources/types/fhir.d.ts +16 -3
- package/dist/esm/config.d.ts +15 -0
- 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 +2 -1
- package/dist/esm/resources/classes/fhir-ext.js +294 -20
- package/dist/esm/resources/classes/fhir-ext.js.map +1 -1
- package/dist/esm/resources/classes/fhir.d.ts +1 -0
- package/dist/esm/resources/classes/fhir.js +2 -1
- package/dist/esm/resources/classes/fhir.js.map +1 -1
- package/dist/esm/resources/classes/index.js +7 -0
- package/dist/esm/resources/classes/index.js.map +1 -1
- package/dist/esm/resources/types/RcmListPayersParams.d.ts +4 -0
- package/dist/esm/resources/types/RcmListPayersResponse.d.ts +9 -1
- package/dist/esm/resources/types/TelemedCreateMeetingParams.d.ts +4 -0
- package/dist/esm/resources/types/fhir.d.ts +16 -3
- package/package.json +1 -1
- package/src/config.ts +16 -0
- package/src/resources/classes/fhir-ext.ts +331 -19
- package/src/resources/classes/fhir.ts +1 -0
- package/src/resources/classes/index.ts +7 -0
- package/src/resources/types/RcmListPayersParams.ts +4 -0
- package/src/resources/types/RcmListPayersResponse.ts +9 -1
- package/src/resources/types/TelemedCreateMeetingParams.ts +4 -0
- package/src/resources/types/fhir.ts +20 -0
|
@@ -4,4 +4,12 @@ import { Organization } from 'fhir/r4b';
|
|
|
4
4
|
/**
|
|
5
5
|
* List of payers matching the search criteria.
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export interface RcmListPayersResponse {
|
|
8
|
+
data: Organization[];
|
|
9
|
+
metadata: {
|
|
10
|
+
/**
|
|
11
|
+
* Cursor to fetch the next page of results. Null if there are no further pages.
|
|
12
|
+
*/
|
|
13
|
+
nextCursor: string | null;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -7,4 +7,8 @@ export interface TelemedCreateMeetingParams {
|
|
|
7
7
|
* Well formed Encounter with the https://extensions.fhir.oystehr.com/encounter-other-participants extension specified optionally.
|
|
8
8
|
*/
|
|
9
9
|
encounter: Encounter;
|
|
10
|
+
/**
|
|
11
|
+
* If true, audio from the meeting will be recorded and stored as an MP4 file in Z3. Defaults to false.
|
|
12
|
+
*/
|
|
13
|
+
recordAudio?: boolean;
|
|
10
14
|
}
|
|
@@ -3,15 +3,19 @@ import type {
|
|
|
3
3
|
Binary as BinaryR4B,
|
|
4
4
|
Bundle as BundleR4B,
|
|
5
5
|
BundleEntry as BundleEntryR4B,
|
|
6
|
+
Coding as CodingR4B,
|
|
6
7
|
FhirResource as FhirResourceR4B,
|
|
7
8
|
OperationOutcome as OperationOutcomeR4B,
|
|
9
|
+
Resource as ResourceR4B,
|
|
8
10
|
} from 'fhir/r4b';
|
|
9
11
|
import type {
|
|
10
12
|
Binary as BinaryR5,
|
|
11
13
|
Bundle as BundleR5,
|
|
12
14
|
BundleEntry as BundleEntryR5,
|
|
15
|
+
Coding as CodingR5,
|
|
13
16
|
FhirResource as FhirResourceR5,
|
|
14
17
|
OperationOutcome as OperationOutcomeR5,
|
|
18
|
+
Resource as ResourceR5,
|
|
15
19
|
} from 'fhir/r5';
|
|
16
20
|
|
|
17
21
|
export type FhirResource = FhirResourceR4B | FhirResourceR5;
|
|
@@ -46,6 +50,8 @@ export type TransactionBundle<F extends FhirResource> = EntrylessFhirBundle<F> &
|
|
|
46
50
|
export type BundleEntry<F extends FhirResource> = F extends FhirResourceR4B ? BundleEntryR4B<F> : BundleEntryR5<F>;
|
|
47
51
|
export type Binary<F extends FhirResource> = F extends FhirResourceR4B ? BinaryR4B : BinaryR5;
|
|
48
52
|
export type OperationOutcome = OperationOutcomeR4B | OperationOutcomeR5;
|
|
53
|
+
export type Coding = CodingR4B | CodingR5;
|
|
54
|
+
export type Resource = ResourceR4B | ResourceR5;
|
|
49
55
|
|
|
50
56
|
export type SearchParam = { name: string; value: string | number };
|
|
51
57
|
|
|
@@ -78,6 +84,10 @@ export interface FhirDeleteParams<T extends FhirResource> {
|
|
|
78
84
|
id: string;
|
|
79
85
|
}
|
|
80
86
|
|
|
87
|
+
export interface GenerateFriendlyPatientIdParams {
|
|
88
|
+
id: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
81
91
|
export interface FhirHistorySearchParams<T extends FhirResource> {
|
|
82
92
|
resourceType: T['resourceType'];
|
|
83
93
|
id: string;
|
|
@@ -119,6 +129,15 @@ export interface BatchInputPostRequest<F extends FhirResource> extends BatchInpu
|
|
|
119
129
|
fullUrl?: string;
|
|
120
130
|
}
|
|
121
131
|
|
|
132
|
+
/**
|
|
133
|
+
* A batch POST to a `_search` endpoint (e.g. `Patient/_search`). Search parameters
|
|
134
|
+
* may be appended to the URL as query parameters. Unlike a create POST there is no
|
|
135
|
+
* resource body.
|
|
136
|
+
*/
|
|
137
|
+
export interface BatchInputSearchPostRequest extends BatchInputBaseRequest {
|
|
138
|
+
method: 'POST';
|
|
139
|
+
}
|
|
140
|
+
|
|
122
141
|
export interface BatchInputBinaryPatchRequest<F extends FhirResource> extends BatchInputBaseRequest {
|
|
123
142
|
method: 'PATCH';
|
|
124
143
|
ifMatch?: string;
|
|
@@ -141,6 +160,7 @@ export type BatchInputRequest<F extends FhirResource> =
|
|
|
141
160
|
| BatchInputPutRequest<F>
|
|
142
161
|
| BatchInputPatchRequest<F>
|
|
143
162
|
| BatchInputPostRequest<F>
|
|
163
|
+
| BatchInputSearchPostRequest
|
|
144
164
|
| BatchInputDeleteRequest;
|
|
145
165
|
|
|
146
166
|
export interface BatchInput<F extends FhirResource> {
|