@openmrs/esm-emr-api 8.0.1-pre.3585 → 8.0.1-pre.3600

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.
@@ -1,3 +1,3 @@
1
- [0] Successfully compiled: 17 files with swc (156.05ms)
1
+ [0] Successfully compiled: 19 files with swc (113.19ms)
2
2
  [0] swc --strip-leading-paths src -d dist exited with code 0
3
3
  [1] tsc --project tsconfig.build.json exited with code 0
@@ -0,0 +1,8 @@
1
+ import { type Concept, type OpenmrsResource } from '@openmrs/esm-api';
2
+ export interface Drug extends OpenmrsResource {
3
+ uuid: string;
4
+ strength: string;
5
+ concept: Concept;
6
+ dosageForm: OpenmrsResource;
7
+ display: string;
8
+ }
@@ -0,0 +1 @@
1
+ export { };
@@ -1,9 +1,11 @@
1
1
  export * from './attachments-types';
2
2
  export * from './diagnosis-resource';
3
+ export * from './drug-resource';
3
4
  export * from './encounter-resource';
4
5
  export * from './fhir';
5
6
  export * from './fhir-resource';
6
7
  export * from './location-resource';
7
8
  export * from './obs-resource';
9
+ export * from './order-resource';
8
10
  export * from './patient-resource';
9
11
  export * from './visit-resource';
@@ -1,9 +1,11 @@
1
1
  export * from "./attachments-types.js";
2
2
  export * from "./diagnosis-resource.js";
3
+ export * from "./drug-resource.js";
3
4
  export * from "./encounter-resource.js";
4
5
  export * from "./fhir.js";
5
6
  export * from "./fhir-resource.js";
6
7
  export * from "./location-resource.js";
7
8
  export * from "./obs-resource.js";
9
+ export * from "./order-resource.js";
8
10
  export * from "./patient-resource.js";
9
11
  export * from "./visit-resource.js";
@@ -0,0 +1,70 @@
1
+ import { type Concept, type OpenmrsResource } from '@openmrs/esm-api';
2
+ import { type Drug } from './drug-resource';
3
+ export type FulfillerStatus = 'RECEIVED' | 'IN_PROGRESS' | 'EXCEPTION' | 'ON_HOLD' | 'DECLINED' | 'COMPLETED' | 'DISCONINTUED';
4
+ export type OrderAction = 'NEW' | 'REVISE' | 'DISCONTINUE' | 'RENEW';
5
+ export type OrderUrgency = 'ROUTINE' | 'STAT' | 'ON_SCHEDULED_DATE';
6
+ export interface Order extends OpenmrsResource {
7
+ uuid: string;
8
+ action: OrderAction;
9
+ asNeeded: boolean;
10
+ asNeededCondition?: string;
11
+ autoExpireDate: string;
12
+ brandName?: string;
13
+ careSetting: OpenmrsResource;
14
+ commentToFulfiller: string;
15
+ concept: Concept;
16
+ dateActivated: string;
17
+ dateStopped?: string | null;
18
+ dispenseAsWritten: boolean;
19
+ dose: number;
20
+ doseUnits: OpenmrsResource;
21
+ dosingInstructions: string | null;
22
+ dosingType?: 'org.openmrs.FreeTextDosingInstructions' | 'org.openmrs.SimpleDosingInstructions';
23
+ drug: Drug;
24
+ duration: number;
25
+ durationUnits: OpenmrsResource;
26
+ encounter: OpenmrsResource;
27
+ frequency: OpenmrsResource;
28
+ instructions?: string | null;
29
+ numRefills: number;
30
+ orderNumber: string;
31
+ orderReason: string | null;
32
+ orderReasonNonCoded: string | null;
33
+ orderType: {
34
+ conceptClasses: Array<any>;
35
+ description: string;
36
+ display: string;
37
+ name: string;
38
+ parent: string | null;
39
+ retired: boolean;
40
+ uuid: string;
41
+ };
42
+ orderer: {
43
+ display: string;
44
+ person: {
45
+ display: string;
46
+ };
47
+ uuid: string;
48
+ };
49
+ patient: OpenmrsResource;
50
+ previousOrder: {
51
+ uuid: string;
52
+ type: string;
53
+ display: string;
54
+ } | null;
55
+ quantity: number;
56
+ quantityUnits: OpenmrsResource;
57
+ route: OpenmrsResource;
58
+ scheduleDate: null;
59
+ urgency: OrderUrgency;
60
+ accessionNumber: string;
61
+ scheduledDate: string;
62
+ display: string;
63
+ fulfillerStatus: FulfillerStatus;
64
+ fulfillerComment: string;
65
+ specimenSource: string;
66
+ laterality: string;
67
+ clinicalHistory: string;
68
+ numberOfRepeats: string;
69
+ type: string;
70
+ }
@@ -0,0 +1 @@
1
+ export { };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-emr-api",
3
- "version": "8.0.1-pre.3585",
3
+ "version": "8.0.1-pre.3600",
4
4
  "license": "MPL-2.0",
5
5
  "description": "The javascript module for interacting with the OpenMRS API",
6
6
  "type": "module",
@@ -62,9 +62,9 @@
62
62
  "@openmrs/esm-state": "6.x"
63
63
  },
64
64
  "devDependencies": {
65
- "@openmrs/esm-api": "8.0.1-pre.3585",
66
- "@openmrs/esm-offline": "8.0.1-pre.3585",
67
- "@openmrs/esm-state": "8.0.1-pre.3585",
65
+ "@openmrs/esm-api": "8.0.1-pre.3600",
66
+ "@openmrs/esm-offline": "8.0.1-pre.3600",
67
+ "@openmrs/esm-state": "8.0.1-pre.3600",
68
68
  "@swc/cli": "^0.7.7",
69
69
  "@swc/core": "^1.11.29",
70
70
  "@vitest/coverage-v8": "^4.0.7",
@@ -0,0 +1,9 @@
1
+ import { type Concept, type OpenmrsResource } from '@openmrs/esm-api';
2
+
3
+ export interface Drug extends OpenmrsResource {
4
+ uuid: string;
5
+ strength: string;
6
+ concept: Concept;
7
+ dosageForm: OpenmrsResource;
8
+ display: string;
9
+ }
@@ -1,9 +1,11 @@
1
1
  export * from './attachments-types';
2
2
  export * from './diagnosis-resource';
3
+ export * from './drug-resource';
3
4
  export * from './encounter-resource';
4
5
  export * from './fhir';
5
6
  export * from './fhir-resource';
6
7
  export * from './location-resource';
7
8
  export * from './obs-resource';
9
+ export * from './order-resource';
8
10
  export * from './patient-resource';
9
11
  export * from './visit-resource';
@@ -0,0 +1,79 @@
1
+ import { type Concept, type OpenmrsResource } from '@openmrs/esm-api';
2
+ import { type Drug } from './drug-resource';
3
+
4
+ export type FulfillerStatus =
5
+ | 'RECEIVED'
6
+ | 'IN_PROGRESS'
7
+ | 'EXCEPTION'
8
+ | 'ON_HOLD'
9
+ | 'DECLINED'
10
+ | 'COMPLETED'
11
+ | 'DISCONINTUED';
12
+
13
+ export type OrderAction = 'NEW' | 'REVISE' | 'DISCONTINUE' | 'RENEW';
14
+
15
+ export type OrderUrgency = 'ROUTINE' | 'STAT' | 'ON_SCHEDULED_DATE';
16
+
17
+ export interface Order extends OpenmrsResource {
18
+ uuid: string;
19
+ action: OrderAction;
20
+ asNeeded: boolean;
21
+ asNeededCondition?: string;
22
+ autoExpireDate: string;
23
+ brandName?: string;
24
+ careSetting: OpenmrsResource;
25
+ commentToFulfiller: string;
26
+ concept: Concept;
27
+ dateActivated: string;
28
+ dateStopped?: string | null;
29
+ dispenseAsWritten: boolean;
30
+ dose: number;
31
+ doseUnits: OpenmrsResource;
32
+ dosingInstructions: string | null;
33
+ dosingType?: 'org.openmrs.FreeTextDosingInstructions' | 'org.openmrs.SimpleDosingInstructions';
34
+ drug: Drug;
35
+ duration: number;
36
+ durationUnits: OpenmrsResource;
37
+ encounter: OpenmrsResource;
38
+ frequency: OpenmrsResource;
39
+ instructions?: string | null;
40
+ numRefills: number;
41
+ orderNumber: string;
42
+ orderReason: string | null;
43
+ orderReasonNonCoded: string | null;
44
+ orderType: {
45
+ conceptClasses: Array<any>;
46
+ description: string;
47
+ display: string;
48
+ name: string;
49
+ parent: string | null;
50
+ retired: boolean;
51
+ uuid: string;
52
+ };
53
+ orderer: {
54
+ display: string;
55
+ person: {
56
+ display: string;
57
+ };
58
+ uuid: string;
59
+ };
60
+ patient: OpenmrsResource;
61
+ previousOrder: { uuid: string; type: string; display: string } | null;
62
+ quantity: number;
63
+ quantityUnits: OpenmrsResource;
64
+ route: OpenmrsResource;
65
+ scheduleDate: null;
66
+ urgency: OrderUrgency;
67
+
68
+ // additional properties
69
+ accessionNumber: string;
70
+ scheduledDate: string;
71
+ display: string;
72
+ fulfillerStatus: FulfillerStatus;
73
+ fulfillerComment: string;
74
+ specimenSource: string;
75
+ laterality: string;
76
+ clinicalHistory: string;
77
+ numberOfRepeats: string;
78
+ type: string;
79
+ }