@openmrs/esm-api 3.1.15-pre.693 → 3.1.15-pre.709

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 (34) hide show
  1. package/README.md +0 -2
  2. package/package.json +5 -6
  3. package/docs/API.md +0 -724
  4. package/docs/classes/OpenmrsFetchError.md +0 -186
  5. package/docs/enums/VisitMode.md +0 -41
  6. package/docs/enums/VisitStatus.md +0 -30
  7. package/docs/interfaces/CurrentPatientOptions.md +0 -27
  8. package/docs/interfaces/CurrentUserOptions.md +0 -27
  9. package/docs/interfaces/CurrentUserWithResponseOption.md +0 -29
  10. package/docs/interfaces/CurrentUserWithoutResponseOption.md +0 -29
  11. package/docs/interfaces/FHIRCode.md +0 -30
  12. package/docs/interfaces/FHIRRequestObj.md +0 -41
  13. package/docs/interfaces/FHIRResource.md +0 -46
  14. package/docs/interfaces/FetchHeaders.md +0 -7
  15. package/docs/interfaces/FetchResponse.md +0 -285
  16. package/docs/interfaces/Location.md +0 -41
  17. package/docs/interfaces/LoggedInUser.md +0 -133
  18. package/docs/interfaces/LoggedInUserFetchResponse.md +0 -281
  19. package/docs/interfaces/NewVisitPayload.md +0 -74
  20. package/docs/interfaces/OnlyThePatient.md +0 -29
  21. package/docs/interfaces/OpenmrsResource.md +0 -34
  22. package/docs/interfaces/PatientWithFullResponse.md +0 -29
  23. package/docs/interfaces/Person.md +0 -41
  24. package/docs/interfaces/Privilege.md +0 -41
  25. package/docs/interfaces/Role.md +0 -41
  26. package/docs/interfaces/SessionLocation.md +0 -41
  27. package/docs/interfaces/SessionUser.md +0 -92
  28. package/docs/interfaces/UnauthenticatedUser.md +0 -52
  29. package/docs/interfaces/User.md +0 -107
  30. package/docs/interfaces/Visit.md +0 -111
  31. package/docs/interfaces/VisitItem.md +0 -52
  32. package/docs/interfaces/VisitType.md +0 -41
  33. package/docs/interfaces/WorkspaceItem.md +0 -74
  34. package/typedoc.json +0 -7
@@ -1,186 +0,0 @@
1
- [@openmrs/esm-api](../API.md) / OpenmrsFetchError
2
-
3
- # Class: OpenmrsFetchError
4
-
5
- ## Hierarchy
6
-
7
- - `Error`
8
-
9
- ↳ **`OpenmrsFetchError`**
10
-
11
- ## Table of contents
12
-
13
- ### Constructors
14
-
15
- - [constructor](OpenmrsFetchError.md#constructor)
16
-
17
- ### Properties
18
-
19
- - [message](OpenmrsFetchError.md#message)
20
- - [name](OpenmrsFetchError.md#name)
21
- - [response](OpenmrsFetchError.md#response)
22
- - [responseBody](OpenmrsFetchError.md#responsebody)
23
- - [stack](OpenmrsFetchError.md#stack)
24
- - [prepareStackTrace](OpenmrsFetchError.md#preparestacktrace)
25
- - [stackTraceLimit](OpenmrsFetchError.md#stacktracelimit)
26
-
27
- ### Methods
28
-
29
- - [captureStackTrace](OpenmrsFetchError.md#capturestacktrace)
30
-
31
- ## Constructors
32
-
33
- ### constructor
34
-
35
- • **new OpenmrsFetchError**(`url`, `response`, `responseBody`, `requestStacktrace`)
36
-
37
- #### Parameters
38
-
39
- | Name | Type |
40
- | :------ | :------ |
41
- | `url` | `string` |
42
- | `response` | `Response` |
43
- | `responseBody` | ``null`` \| `ResponseBody` |
44
- | `requestStacktrace` | `Error` |
45
-
46
- #### Overrides
47
-
48
- Error.constructor
49
-
50
- #### Defined in
51
-
52
- [packages/framework/esm-api/src/openmrs-fetch.ts:270](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/openmrs-fetch.ts#L270)
53
-
54
- ## Properties
55
-
56
- ### message
57
-
58
- • **message**: `string`
59
-
60
- #### Inherited from
61
-
62
- Error.message
63
-
64
- #### Defined in
65
-
66
- node_modules/typescript/lib/lib.es5.d.ts:1023
67
-
68
- ___
69
-
70
- ### name
71
-
72
- • **name**: `string`
73
-
74
- #### Inherited from
75
-
76
- Error.name
77
-
78
- #### Defined in
79
-
80
- node_modules/typescript/lib/lib.es5.d.ts:1022
81
-
82
- ___
83
-
84
- ### response
85
-
86
- • **response**: `Response`
87
-
88
- #### Defined in
89
-
90
- [packages/framework/esm-api/src/openmrs-fetch.ts:283](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/openmrs-fetch.ts#L283)
91
-
92
- ___
93
-
94
- ### responseBody
95
-
96
- • **responseBody**: ``null`` \| `string` \| `FetchResponseJson`
97
-
98
- #### Defined in
99
-
100
- [packages/framework/esm-api/src/openmrs-fetch.ts:284](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/openmrs-fetch.ts#L284)
101
-
102
- ___
103
-
104
- ### stack
105
-
106
- • `Optional` **stack**: `string`
107
-
108
- #### Inherited from
109
-
110
- Error.stack
111
-
112
- #### Defined in
113
-
114
- node_modules/typescript/lib/lib.es5.d.ts:1024
115
-
116
- ___
117
-
118
- ### prepareStackTrace
119
-
120
- ▪ `Static` `Optional` **prepareStackTrace**: (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any`
121
-
122
- #### Type declaration
123
-
124
- ▸ (`err`, `stackTraces`): `any`
125
-
126
- Optional override for formatting stack traces
127
-
128
- ##### Parameters
129
-
130
- | Name | Type |
131
- | :------ | :------ |
132
- | `err` | `Error` |
133
- | `stackTraces` | `CallSite`[] |
134
-
135
- ##### Returns
136
-
137
- `any`
138
-
139
- #### Inherited from
140
-
141
- Error.prepareStackTrace
142
-
143
- #### Defined in
144
-
145
- node_modules/@types/node/globals.d.ts:11
146
-
147
- ___
148
-
149
- ### stackTraceLimit
150
-
151
- ▪ `Static` **stackTraceLimit**: `number`
152
-
153
- #### Inherited from
154
-
155
- Error.stackTraceLimit
156
-
157
- #### Defined in
158
-
159
- node_modules/@types/node/globals.d.ts:13
160
-
161
- ## Methods
162
-
163
- ### captureStackTrace
164
-
165
- ▸ `Static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
166
-
167
- Create .stack property on a target object
168
-
169
- #### Parameters
170
-
171
- | Name | Type |
172
- | :------ | :------ |
173
- | `targetObject` | `object` |
174
- | `constructorOpt?` | `Function` |
175
-
176
- #### Returns
177
-
178
- `void`
179
-
180
- #### Inherited from
181
-
182
- Error.captureStackTrace
183
-
184
- #### Defined in
185
-
186
- node_modules/@types/node/globals.d.ts:4
@@ -1,41 +0,0 @@
1
- [@openmrs/esm-api](../API.md) / VisitMode
2
-
3
- # Enumeration: VisitMode
4
-
5
- ## Table of contents
6
-
7
- ### Enumeration members
8
-
9
- - [EDITVISIT](VisitMode.md#editvisit)
10
- - [LOADING](VisitMode.md#loading)
11
- - [NEWVISIT](VisitMode.md#newvisit)
12
-
13
- ## Enumeration members
14
-
15
- ### EDITVISIT
16
-
17
- • **EDITVISIT** = `"editVisit"`
18
-
19
- #### Defined in
20
-
21
- [packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:95](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L95)
22
-
23
- ___
24
-
25
- ### LOADING
26
-
27
- • **LOADING** = `"loadingVisit"`
28
-
29
- #### Defined in
30
-
31
- [packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:96](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L96)
32
-
33
- ___
34
-
35
- ### NEWVISIT
36
-
37
- • **NEWVISIT** = `"startVisit"`
38
-
39
- #### Defined in
40
-
41
- [packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:94](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L94)
@@ -1,30 +0,0 @@
1
- [@openmrs/esm-api](../API.md) / VisitStatus
2
-
3
- # Enumeration: VisitStatus
4
-
5
- ## Table of contents
6
-
7
- ### Enumeration members
8
-
9
- - [NOTSTARTED](VisitStatus.md#notstarted)
10
- - [ONGOING](VisitStatus.md#ongoing)
11
-
12
- ## Enumeration members
13
-
14
- ### NOTSTARTED
15
-
16
- • **NOTSTARTED** = `"notStarted"`
17
-
18
- #### Defined in
19
-
20
- [packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:100](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L100)
21
-
22
- ___
23
-
24
- ### ONGOING
25
-
26
- • **ONGOING** = `"ongoing"`
27
-
28
- #### Defined in
29
-
30
- [packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:101](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L101)
@@ -1,27 +0,0 @@
1
- [@openmrs/esm-api](../API.md) / CurrentPatientOptions
2
-
3
- # Interface: CurrentPatientOptions
4
-
5
- ## Hierarchy
6
-
7
- - **`CurrentPatientOptions`**
8
-
9
- ↳ [`PatientWithFullResponse`](PatientWithFullResponse.md)
10
-
11
- ↳ [`OnlyThePatient`](OnlyThePatient.md)
12
-
13
- ## Table of contents
14
-
15
- ### Properties
16
-
17
- - [includeConfig](CurrentPatientOptions.md#includeconfig)
18
-
19
- ## Properties
20
-
21
- ### includeConfig
22
-
23
- • `Optional` **includeConfig**: `boolean`
24
-
25
- #### Defined in
26
-
27
- [packages/framework/esm-api/src/shared-api-objects/current-patient.ts:7](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/shared-api-objects/current-patient.ts#L7)
@@ -1,27 +0,0 @@
1
- [@openmrs/esm-api](../API.md) / CurrentUserOptions
2
-
3
- # Interface: CurrentUserOptions
4
-
5
- ## Hierarchy
6
-
7
- - **`CurrentUserOptions`**
8
-
9
- ↳ [`CurrentUserWithResponseOption`](CurrentUserWithResponseOption.md)
10
-
11
- ↳ [`CurrentUserWithoutResponseOption`](CurrentUserWithoutResponseOption.md)
12
-
13
- ## Table of contents
14
-
15
- ### Properties
16
-
17
- - [includeAuthStatus](CurrentUserOptions.md#includeauthstatus)
18
-
19
- ## Properties
20
-
21
- ### includeAuthStatus
22
-
23
- • `Optional` **includeAuthStatus**: `boolean`
24
-
25
- #### Defined in
26
-
27
- [packages/framework/esm-api/src/types/user-resource.ts:2](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L2)
@@ -1,29 +0,0 @@
1
- [@openmrs/esm-api](../API.md) / CurrentUserWithResponseOption
2
-
3
- # Interface: CurrentUserWithResponseOption
4
-
5
- ## Hierarchy
6
-
7
- - [`CurrentUserOptions`](CurrentUserOptions.md)
8
-
9
- ↳ **`CurrentUserWithResponseOption`**
10
-
11
- ## Table of contents
12
-
13
- ### Properties
14
-
15
- - [includeAuthStatus](CurrentUserWithResponseOption.md#includeauthstatus)
16
-
17
- ## Properties
18
-
19
- ### includeAuthStatus
20
-
21
- • **includeAuthStatus**: ``true``
22
-
23
- #### Overrides
24
-
25
- [CurrentUserOptions](CurrentUserOptions.md).[includeAuthStatus](CurrentUserOptions.md#includeauthstatus)
26
-
27
- #### Defined in
28
-
29
- [packages/framework/esm-api/src/types/user-resource.ts:6](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L6)
@@ -1,29 +0,0 @@
1
- [@openmrs/esm-api](../API.md) / CurrentUserWithoutResponseOption
2
-
3
- # Interface: CurrentUserWithoutResponseOption
4
-
5
- ## Hierarchy
6
-
7
- - [`CurrentUserOptions`](CurrentUserOptions.md)
8
-
9
- ↳ **`CurrentUserWithoutResponseOption`**
10
-
11
- ## Table of contents
12
-
13
- ### Properties
14
-
15
- - [includeAuthStatus](CurrentUserWithoutResponseOption.md#includeauthstatus)
16
-
17
- ## Properties
18
-
19
- ### includeAuthStatus
20
-
21
- • **includeAuthStatus**: ``false``
22
-
23
- #### Overrides
24
-
25
- [CurrentUserOptions](CurrentUserOptions.md).[includeAuthStatus](CurrentUserOptions.md#includeauthstatus)
26
-
27
- #### Defined in
28
-
29
- [packages/framework/esm-api/src/types/user-resource.ts:10](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L10)
@@ -1,30 +0,0 @@
1
- [@openmrs/esm-api](../API.md) / FHIRCode
2
-
3
- # Interface: FHIRCode
4
-
5
- ## Table of contents
6
-
7
- ### Properties
8
-
9
- - [code](FHIRCode.md#code)
10
- - [system](FHIRCode.md#system)
11
-
12
- ## Properties
13
-
14
- ### code
15
-
16
- • **code**: `string`
17
-
18
- #### Defined in
19
-
20
- [packages/framework/esm-api/src/types/fhir-resource.ts:27](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/fhir-resource.ts#L27)
21
-
22
- ___
23
-
24
- ### system
25
-
26
- • **system**: `string`
27
-
28
- #### Defined in
29
-
30
- [packages/framework/esm-api/src/types/fhir-resource.ts:28](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/fhir-resource.ts#L28)
@@ -1,41 +0,0 @@
1
- [@openmrs/esm-api](../API.md) / FHIRRequestObj
2
-
3
- # Interface: FHIRRequestObj
4
-
5
- ## Table of contents
6
-
7
- ### Properties
8
-
9
- - [headers](FHIRRequestObj.md#headers)
10
- - [method](FHIRRequestObj.md#method)
11
- - [url](FHIRRequestObj.md#url)
12
-
13
- ## Properties
14
-
15
- ### headers
16
-
17
- • **headers**: [`FetchHeaders`](FetchHeaders.md)
18
-
19
- #### Defined in
20
-
21
- [packages/framework/esm-api/src/fhir.ts:49](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/fhir.ts#L49)
22
-
23
- ___
24
-
25
- ### method
26
-
27
- • **method**: `string`
28
-
29
- #### Defined in
30
-
31
- [packages/framework/esm-api/src/fhir.ts:48](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/fhir.ts#L48)
32
-
33
- ___
34
-
35
- ### url
36
-
37
- • **url**: `string`
38
-
39
- #### Defined in
40
-
41
- [packages/framework/esm-api/src/fhir.ts:47](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/fhir.ts#L47)
@@ -1,46 +0,0 @@
1
- [@openmrs/esm-api](../API.md) / FHIRResource
2
-
3
- # Interface: FHIRResource
4
-
5
- ## Table of contents
6
-
7
- ### Properties
8
-
9
- - [resource](FHIRResource.md#resource)
10
-
11
- ## Properties
12
-
13
- ### resource
14
-
15
- • **resource**: `Object`
16
-
17
- #### Type declaration
18
-
19
- | Name | Type |
20
- | :------ | :------ |
21
- | `code` | `Object` |
22
- | `code.coding` | [`FHIRCode`](FHIRCode.md)[] |
23
- | `effectiveDateTime` | `Date` |
24
- | `encounter` | `Object` |
25
- | `encounter.reference` | `string` |
26
- | `encounter.type` | `string` |
27
- | `id` | `string` |
28
- | `issued` | `Date` |
29
- | `referenceRange` | `any` |
30
- | `resourceType` | `string` |
31
- | `status` | `string` |
32
- | `subject` | `Object` |
33
- | `subject.display` | `string` |
34
- | `subject.identifier` | `Object` |
35
- | `subject.identifier.id` | `string` |
36
- | `subject.identifier.system` | `string` |
37
- | `subject.identifier.use` | `string` |
38
- | `subject.identifier.value` | `string` |
39
- | `subject.reference` | `string` |
40
- | `subject.type` | `string` |
41
- | `valueQuantity` | `Object` |
42
- | `valueQuantity.value` | `number` |
43
-
44
- #### Defined in
45
-
46
- [packages/framework/esm-api/src/types/fhir-resource.ts:2](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/fhir-resource.ts#L2)
@@ -1,7 +0,0 @@
1
- [@openmrs/esm-api](../API.md) / FetchHeaders
2
-
3
- # Interface: FetchHeaders
4
-
5
- ## Indexable
6
-
7
- ▪ [key: `string`]: `string` \| ``null``