@awell-health/awell-extensions 2.0.145 → 2.0.146
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/extensions/epic/actions/createClinicalNote/__testdata__/CreateClinicalNote.mock.d.ts +8 -0
- package/dist/extensions/epic/actions/createClinicalNote/__testdata__/CreateClinicalNote.mock.js +12 -0
- package/dist/extensions/epic/actions/createClinicalNote/__testdata__/CreateClinicalNote.mock.js.map +1 -0
- package/dist/extensions/epic/actions/createClinicalNote/config/datapoints.d.ts +6 -1
- package/dist/extensions/epic/actions/createClinicalNote/config/datapoints.js +6 -1
- package/dist/extensions/epic/actions/createClinicalNote/config/datapoints.js.map +1 -1
- package/dist/extensions/epic/actions/createClinicalNote/config/fields.d.ts +66 -2
- package/dist/extensions/epic/actions/createClinicalNote/config/fields.js +56 -2
- package/dist/extensions/epic/actions/createClinicalNote/config/fields.js.map +1 -1
- package/dist/extensions/epic/actions/createClinicalNote/createClinicalNote.js +66 -1
- package/dist/extensions/epic/actions/createClinicalNote/createClinicalNote.js.map +1 -1
- package/dist/extensions/epic/actions/createPatient/__testdata__/CreateFhirPatient.mock.d.ts +8 -0
- package/dist/extensions/epic/actions/createPatient/__testdata__/CreateFhirPatient.mock.js +12 -0
- package/dist/extensions/epic/actions/createPatient/__testdata__/CreateFhirPatient.mock.js.map +1 -0
- package/dist/extensions/epic/actions/createPatient/config/datapoints.d.ts +6 -1
- package/dist/extensions/epic/actions/createPatient/config/datapoints.js +6 -1
- package/dist/extensions/epic/actions/createPatient/config/datapoints.js.map +1 -1
- package/dist/extensions/epic/actions/createPatient/config/fields.d.ts +70 -2
- package/dist/extensions/epic/actions/createPatient/config/fields.js +61 -2
- package/dist/extensions/epic/actions/createPatient/config/fields.js.map +1 -1
- package/dist/extensions/epic/actions/createPatient/createPatient.js +61 -1
- package/dist/extensions/epic/actions/createPatient/createPatient.js.map +1 -1
- package/dist/extensions/epic/actions/getAppointment/__testdata__/GetAppointment.mock.d.ts +52 -0
- package/dist/extensions/epic/actions/getAppointment/__testdata__/GetAppointment.mock.js +94 -0
- package/dist/extensions/epic/actions/getAppointment/__testdata__/GetAppointment.mock.js.map +1 -0
- package/dist/extensions/epic/actions/getAppointment/config/datapoints.d.ts +22 -1
- package/dist/extensions/epic/actions/getAppointment/config/datapoints.js +22 -1
- package/dist/extensions/epic/actions/getAppointment/config/datapoints.js.map +1 -1
- package/dist/extensions/epic/actions/getAppointment/config/fields.d.ts +17 -2
- package/dist/extensions/epic/actions/getAppointment/config/fields.js +13 -2
- package/dist/extensions/epic/actions/getAppointment/config/fields.js.map +1 -1
- package/dist/extensions/epic/actions/getAppointment/getAppointment.js +38 -1
- package/dist/extensions/epic/actions/getAppointment/getAppointment.js.map +1 -1
- package/dist/extensions/epic/actions/getPatient/__testdata__/FhirPatient.mock.d.ts +90 -0
- package/dist/extensions/epic/actions/getPatient/__testdata__/FhirPatient.mock.js +189 -0
- package/dist/extensions/epic/actions/getPatient/__testdata__/FhirPatient.mock.js.map +1 -0
- package/dist/extensions/epic/actions/getPatient/config/datapoints.d.ts +6 -1
- package/dist/extensions/epic/actions/getPatient/config/datapoints.js +6 -1
- package/dist/extensions/epic/actions/getPatient/config/datapoints.js.map +1 -1
- package/dist/extensions/epic/actions/getPatient/config/fields.d.ts +17 -2
- package/dist/extensions/epic/actions/getPatient/config/fields.js +13 -2
- package/dist/extensions/epic/actions/getPatient/config/fields.js.map +1 -1
- package/dist/extensions/epic/actions/getPatient/getPatient.js +31 -1
- package/dist/extensions/epic/actions/getPatient/getPatient.js.map +1 -1
- package/dist/extensions/epic/actions/index.d.ts +296 -4
- package/dist/extensions/epic/actions/index.js +2 -0
- package/dist/extensions/epic/actions/index.js.map +1 -1
- package/dist/extensions/epic/actions/matchPatient/__testdata__/FhirPatientMatch.mock.d.ts +114 -0
- package/dist/extensions/epic/actions/matchPatient/__testdata__/FhirPatientMatch.mock.js +221 -0
- package/dist/extensions/epic/actions/matchPatient/__testdata__/FhirPatientMatch.mock.js.map +1 -0
- package/dist/extensions/epic/actions/matchPatient/__testdata__/FhirPatientNoMatch.mock.d.ts +14 -0
- package/dist/extensions/epic/actions/matchPatient/__testdata__/FhirPatientNoMatch.mock.js +22 -0
- package/dist/extensions/epic/actions/matchPatient/__testdata__/FhirPatientNoMatch.mock.js.map +1 -0
- package/dist/extensions/epic/actions/matchPatient/__testdata__/index.d.ts +2 -0
- package/dist/extensions/epic/actions/matchPatient/__testdata__/index.js +19 -0
- package/dist/extensions/epic/actions/matchPatient/__testdata__/index.js.map +1 -0
- package/dist/extensions/epic/actions/matchPatient/config/datapoints.d.ts +6 -0
- package/dist/extensions/epic/actions/matchPatient/config/datapoints.js +10 -0
- package/dist/extensions/epic/actions/matchPatient/config/datapoints.js.map +1 -0
- package/dist/extensions/epic/actions/matchPatient/config/fields.d.ts +61 -0
- package/dist/extensions/epic/actions/matchPatient/config/fields.js +58 -0
- package/dist/extensions/epic/actions/matchPatient/config/fields.js.map +1 -0
- package/dist/extensions/epic/actions/matchPatient/config/index.d.ts +2 -0
- package/dist/extensions/epic/actions/matchPatient/config/index.js +9 -0
- package/dist/extensions/epic/actions/matchPatient/config/index.js.map +1 -0
- package/dist/extensions/epic/actions/matchPatient/index.d.ts +1 -0
- package/dist/extensions/epic/actions/matchPatient/index.js +6 -0
- package/dist/extensions/epic/actions/matchPatient/index.js.map +1 -0
- package/dist/extensions/epic/actions/matchPatient/matchPatient.d.ts +4 -0
- package/dist/extensions/epic/actions/matchPatient/matchPatient.js +87 -0
- package/dist/extensions/epic/actions/matchPatient/matchPatient.js.map +1 -0
- package/dist/extensions/epic/lib/api/FhirR4/FhirR4client.d.ts +26 -0
- package/dist/extensions/epic/lib/api/FhirR4/FhirR4client.js +121 -0
- package/dist/extensions/epic/lib/api/FhirR4/FhirR4client.js.map +1 -0
- package/dist/extensions/epic/lib/api/FhirR4/index.d.ts +1 -0
- package/dist/extensions/epic/lib/api/FhirR4/index.js +18 -0
- package/dist/extensions/epic/lib/api/FhirR4/index.js.map +1 -0
- package/dist/extensions/epic/lib/api/FhirR4/schema/AppointmentRead.schema.d.ts +9 -0
- package/dist/extensions/epic/lib/api/FhirR4/schema/AppointmentRead.schema.js +6 -0
- package/dist/extensions/epic/lib/api/FhirR4/schema/AppointmentRead.schema.js.map +1 -0
- package/dist/extensions/epic/lib/api/FhirR4/schema/DocumentReferenceCreate.schema.d.ts +7 -0
- package/dist/extensions/epic/lib/api/FhirR4/schema/DocumentReferenceCreate.schema.js +3 -0
- package/dist/extensions/epic/lib/api/FhirR4/schema/DocumentReferenceCreate.schema.js.map +1 -0
- package/dist/extensions/epic/lib/api/FhirR4/schema/PatientCreate.schema.d.ts +7 -0
- package/dist/extensions/epic/lib/api/FhirR4/schema/PatientCreate.schema.js +3 -0
- package/dist/extensions/epic/lib/api/FhirR4/schema/PatientCreate.schema.js.map +1 -0
- package/dist/extensions/epic/lib/api/FhirR4/schema/PatientMatch.schema.d.ts +37 -0
- package/dist/extensions/epic/lib/api/FhirR4/schema/PatientMatch.schema.js +3 -0
- package/dist/extensions/epic/lib/api/FhirR4/schema/PatientMatch.schema.js.map +1 -0
- package/dist/extensions/epic/lib/api/FhirR4/schema/PatientRead.schema.d.ts +9 -0
- package/dist/extensions/epic/lib/api/FhirR4/schema/PatientRead.schema.js +6 -0
- package/dist/extensions/epic/lib/api/FhirR4/schema/PatientRead.schema.js.map +1 -0
- package/dist/extensions/epic/lib/api/FhirR4/schema/index.d.ts +5 -0
- package/dist/extensions/epic/lib/api/FhirR4/schema/index.js +22 -0
- package/dist/extensions/epic/lib/api/FhirR4/schema/index.js.map +1 -0
- package/dist/extensions/epic/lib/api/auth/generateJWT/generateJWT.d.ts +8 -0
- package/dist/extensions/epic/lib/api/auth/generateJWT/generateJWT.js +38 -0
- package/dist/extensions/epic/lib/api/auth/generateJWT/generateJWT.js.map +1 -0
- package/dist/extensions/epic/lib/api/auth/generateJWT/index.d.ts +1 -0
- package/dist/extensions/epic/lib/api/auth/generateJWT/index.js +18 -0
- package/dist/extensions/epic/lib/api/auth/generateJWT/index.js.map +1 -0
- package/dist/extensions/epic/lib/api/schemas/Appointment/Status.schema.d.ts +2 -0
- package/dist/extensions/epic/lib/api/schemas/Appointment/Status.schema.js +17 -0
- package/dist/extensions/epic/lib/api/schemas/Appointment/Status.schema.js.map +1 -0
- package/dist/extensions/epic/lib/api/schemas/Appointment/index.d.ts +1 -0
- package/dist/extensions/epic/lib/api/schemas/Appointment/index.js +18 -0
- package/dist/extensions/epic/lib/api/schemas/Appointment/index.js.map +1 -0
- package/dist/extensions/epic/lib/api/schemas/DocumentReference/Status.schema.d.ts +2 -0
- package/dist/extensions/epic/lib/api/schemas/DocumentReference/Status.schema.js +6 -0
- package/dist/extensions/epic/lib/api/schemas/DocumentReference/Status.schema.js.map +1 -0
- package/dist/extensions/epic/lib/api/schemas/DocumentReference/Type.schema.d.ts +9 -0
- package/dist/extensions/epic/lib/api/schemas/DocumentReference/Type.schema.js +28 -0
- package/dist/extensions/epic/lib/api/schemas/DocumentReference/Type.schema.js.map +1 -0
- package/dist/extensions/epic/lib/api/schemas/DocumentReference/index.d.ts +2 -0
- package/dist/extensions/epic/lib/api/schemas/DocumentReference/index.js +19 -0
- package/dist/extensions/epic/lib/api/schemas/DocumentReference/index.js.map +1 -0
- package/dist/extensions/epic/lib/api/schemas/Patient/Gender.schema.d.ts +2 -0
- package/dist/extensions/epic/lib/api/schemas/Patient/Gender.schema.js +6 -0
- package/dist/extensions/epic/lib/api/schemas/Patient/Gender.schema.js.map +1 -0
- package/dist/extensions/epic/lib/api/schemas/Patient/index.d.ts +1 -0
- package/dist/extensions/epic/lib/api/schemas/Patient/index.js +18 -0
- package/dist/extensions/epic/lib/api/schemas/Patient/index.js.map +1 -0
- package/dist/extensions/epic/lib/validatePayloadAndCreateSdks.d.ts +18 -0
- package/dist/extensions/epic/lib/validatePayloadAndCreateSdks.js +31 -0
- package/dist/extensions/epic/lib/validatePayloadAndCreateSdks.js.map +1 -0
- package/dist/extensions/epic/settings.d.ts +46 -2
- package/dist/extensions/epic/settings.js +36 -2
- package/dist/extensions/epic/settings.js.map +1 -1
- package/package.json +3 -1
@@ -3,6 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getPatient = void 0;
|
4
4
|
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
5
|
const config_1 = require("./config");
|
6
|
+
const validatePayloadAndCreateSdks_1 = require("../../lib/validatePayloadAndCreateSdks");
|
7
|
+
const axios_1 = require("axios");
|
8
|
+
const awell_1 = require("../../../../src/lib/awell");
|
6
9
|
exports.getPatient = {
|
7
10
|
key: 'getPatient',
|
8
11
|
category: extensions_core_1.Category.EHR_INTEGRATIONS,
|
@@ -12,7 +15,34 @@ exports.getPatient = {
|
|
12
15
|
previewable: false,
|
13
16
|
dataPoints: config_1.dataPoints,
|
14
17
|
onEvent: async ({ payload, onComplete, onError }) => {
|
15
|
-
await
|
18
|
+
const { epicFhirR4Sdk, fields: { resourceId }, } = await (0, validatePayloadAndCreateSdks_1.validatePayloadAndCreateSdks)({
|
19
|
+
fieldsSchema: config_1.FieldsValidationSchema,
|
20
|
+
payload,
|
21
|
+
});
|
22
|
+
try {
|
23
|
+
const res = await epicFhirR4Sdk.getPatient(resourceId);
|
24
|
+
await onComplete({
|
25
|
+
data_points: {
|
26
|
+
patient: JSON.stringify(res.data),
|
27
|
+
},
|
28
|
+
});
|
29
|
+
}
|
30
|
+
catch (error) {
|
31
|
+
if (error instanceof axios_1.AxiosError) {
|
32
|
+
const err = error;
|
33
|
+
if (err.status === 404)
|
34
|
+
await onError({
|
35
|
+
events: [
|
36
|
+
(0, awell_1.addActivityEventLog)({
|
37
|
+
message: 'Patient not found',
|
38
|
+
}),
|
39
|
+
],
|
40
|
+
});
|
41
|
+
return;
|
42
|
+
}
|
43
|
+
// Throw all other errors
|
44
|
+
throw error;
|
45
|
+
}
|
16
46
|
},
|
17
47
|
};
|
18
48
|
//# sourceMappingURL=getPatient.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getPatient.js","sourceRoot":"","sources":["../../../../../extensions/epic/actions/getPatient/getPatient.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAErE,
|
1
|
+
{"version":3,"file":"getPatient.js","sourceRoot":"","sources":["../../../../../extensions/epic/actions/getPatient/getPatient.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAErE,qCAAqE;AACrE,yFAAqF;AACrF,iCAAkC;AAClC,qDAA+D;AAElD,QAAA,UAAU,GAInB;IACF,GAAG,EAAE,YAAY;IACjB,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,oCAAoC;IACjD,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,KAAK;IAClB,UAAU,EAAV,mBAAU;IACV,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,EAAiB,EAAE;QACjE,MAAM,EACJ,aAAa,EACb,MAAM,EAAE,EAAE,UAAU,EAAE,GACvB,GAAG,MAAM,IAAA,2DAA4B,EAAC;YACrC,YAAY,EAAE,+BAAsB;YACpC,OAAO;SACR,CAAC,CAAA;QAEF,IAAI,CAAC;YACH,MAAM,GAAG,GAAG,MAAM,aAAa,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;YAEtD,MAAM,UAAU,CAAC;gBACf,WAAW,EAAE;oBACX,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC;iBAClC;aACF,CAAC,CAAA;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,KAAK,YAAY,kBAAU,EAAE,CAAC;gBAChC,MAAM,GAAG,GAAG,KAAmB,CAAA;gBAE/B,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG;oBACpB,MAAM,OAAO,CAAC;wBACZ,MAAM,EAAE;4BACN,IAAA,2BAAmB,EAAC;gCAClB,OAAO,EAAE,mBAAmB;6BAC7B,CAAC;yBACH;qBACF,CAAC,CAAA;gBACJ,OAAM;YACR,CAAC;YAED,yBAAyB;YACzB,MAAM,KAAK,CAAA;QACb,CAAC;IACH,CAAC;CACF,CAAA"}
|
@@ -1,7 +1,299 @@
|
|
1
1
|
declare const actions: {
|
2
|
-
getPatient: import("@awell-health/extensions-core").Action<{
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
getPatient: import("@awell-health/extensions-core").Action<{
|
3
|
+
resourceId: {
|
4
|
+
id: string;
|
5
|
+
label: string;
|
6
|
+
description: string;
|
7
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
8
|
+
required: true;
|
9
|
+
};
|
10
|
+
}, {
|
11
|
+
baseUrl: {
|
12
|
+
key: string;
|
13
|
+
label: string;
|
14
|
+
required: true;
|
15
|
+
obfuscated: false;
|
16
|
+
description: string;
|
17
|
+
};
|
18
|
+
authUrl: {
|
19
|
+
key: string;
|
20
|
+
label: string;
|
21
|
+
required: true;
|
22
|
+
obfuscated: false;
|
23
|
+
description: string;
|
24
|
+
};
|
25
|
+
clientId: {
|
26
|
+
key: string;
|
27
|
+
label: string;
|
28
|
+
required: true;
|
29
|
+
obfuscated: false;
|
30
|
+
description: string;
|
31
|
+
};
|
32
|
+
privateKey: {
|
33
|
+
key: string;
|
34
|
+
label: string;
|
35
|
+
required: true;
|
36
|
+
obfuscated: true;
|
37
|
+
description: string;
|
38
|
+
};
|
39
|
+
}, "patient">;
|
40
|
+
getAppointment: import("@awell-health/extensions-core").Action<{
|
41
|
+
resourceId: {
|
42
|
+
id: string;
|
43
|
+
label: string;
|
44
|
+
description: string;
|
45
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
46
|
+
required: true;
|
47
|
+
};
|
48
|
+
}, {
|
49
|
+
baseUrl: {
|
50
|
+
key: string;
|
51
|
+
label: string;
|
52
|
+
required: true;
|
53
|
+
obfuscated: false;
|
54
|
+
description: string;
|
55
|
+
};
|
56
|
+
authUrl: {
|
57
|
+
key: string;
|
58
|
+
label: string;
|
59
|
+
required: true;
|
60
|
+
obfuscated: false;
|
61
|
+
description: string;
|
62
|
+
};
|
63
|
+
clientId: {
|
64
|
+
key: string;
|
65
|
+
label: string;
|
66
|
+
required: true;
|
67
|
+
obfuscated: false;
|
68
|
+
description: string;
|
69
|
+
};
|
70
|
+
privateKey: {
|
71
|
+
key: string;
|
72
|
+
label: string;
|
73
|
+
required: true;
|
74
|
+
obfuscated: true;
|
75
|
+
description: string;
|
76
|
+
};
|
77
|
+
}, "patientId" | "appointment" | "appointmentStatus" | "appointmentStartDateTime" | "appointmentTypeCode">;
|
78
|
+
createPatient: import("@awell-health/extensions-core").Action<{
|
79
|
+
ssn: {
|
80
|
+
id: string;
|
81
|
+
label: string;
|
82
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
83
|
+
description: string;
|
84
|
+
required: true;
|
85
|
+
};
|
86
|
+
familyName: {
|
87
|
+
id: string;
|
88
|
+
label: string;
|
89
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
90
|
+
description: string;
|
91
|
+
required: true;
|
92
|
+
};
|
93
|
+
givenName: {
|
94
|
+
id: string;
|
95
|
+
label: string;
|
96
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
97
|
+
description: string;
|
98
|
+
required: true;
|
99
|
+
};
|
100
|
+
birthDate: {
|
101
|
+
id: string;
|
102
|
+
label: string;
|
103
|
+
type: import("@awell-health/extensions-core").FieldType.DATE;
|
104
|
+
required: true;
|
105
|
+
};
|
106
|
+
gender: {
|
107
|
+
id: string;
|
108
|
+
label: string;
|
109
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
110
|
+
required: true;
|
111
|
+
options: {
|
112
|
+
dropdownOptions: {
|
113
|
+
value: "unknown" | "male" | "female" | "other";
|
114
|
+
label: string;
|
115
|
+
}[];
|
116
|
+
};
|
117
|
+
};
|
118
|
+
email: {
|
119
|
+
id: string;
|
120
|
+
label: string;
|
121
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
122
|
+
required: false;
|
123
|
+
};
|
124
|
+
}, {
|
125
|
+
baseUrl: {
|
126
|
+
key: string;
|
127
|
+
label: string;
|
128
|
+
required: true;
|
129
|
+
obfuscated: false;
|
130
|
+
description: string;
|
131
|
+
};
|
132
|
+
authUrl: {
|
133
|
+
key: string;
|
134
|
+
label: string;
|
135
|
+
required: true;
|
136
|
+
obfuscated: false;
|
137
|
+
description: string;
|
138
|
+
};
|
139
|
+
clientId: {
|
140
|
+
key: string;
|
141
|
+
label: string;
|
142
|
+
required: true;
|
143
|
+
obfuscated: false;
|
144
|
+
description: string;
|
145
|
+
};
|
146
|
+
privateKey: {
|
147
|
+
key: string;
|
148
|
+
label: string;
|
149
|
+
required: true;
|
150
|
+
obfuscated: true;
|
151
|
+
description: string;
|
152
|
+
};
|
153
|
+
}, "resourceId">;
|
154
|
+
createClinicalNote: import("@awell-health/extensions-core").Action<{
|
155
|
+
patientResourceId: {
|
156
|
+
id: string;
|
157
|
+
label: string;
|
158
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
159
|
+
description: string;
|
160
|
+
required: true;
|
161
|
+
};
|
162
|
+
encounterResourceId: {
|
163
|
+
id: string;
|
164
|
+
label: string;
|
165
|
+
description: string;
|
166
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
167
|
+
required: true;
|
168
|
+
};
|
169
|
+
status: {
|
170
|
+
id: string;
|
171
|
+
label: string;
|
172
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
173
|
+
required: true;
|
174
|
+
options: {
|
175
|
+
dropdownOptions: {
|
176
|
+
value: "final" | "preliminary";
|
177
|
+
label: string;
|
178
|
+
}[];
|
179
|
+
};
|
180
|
+
};
|
181
|
+
type: {
|
182
|
+
id: string;
|
183
|
+
label: string;
|
184
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
185
|
+
required: true;
|
186
|
+
options: {
|
187
|
+
dropdownOptions: {
|
188
|
+
value: "Progress Note" | "Consult Note" | "Procedure Note" | "H&P Note" | "Discharge Summary" | "ED Note" | "Patient Instructions" | "Nursing Note";
|
189
|
+
label: string;
|
190
|
+
}[];
|
191
|
+
};
|
192
|
+
};
|
193
|
+
note: {
|
194
|
+
id: string;
|
195
|
+
label: string;
|
196
|
+
type: import("@awell-health/extensions-core").FieldType.TEXT;
|
197
|
+
required: true;
|
198
|
+
};
|
199
|
+
}, {
|
200
|
+
baseUrl: {
|
201
|
+
key: string;
|
202
|
+
label: string;
|
203
|
+
required: true;
|
204
|
+
obfuscated: false;
|
205
|
+
description: string;
|
206
|
+
};
|
207
|
+
authUrl: {
|
208
|
+
key: string;
|
209
|
+
label: string;
|
210
|
+
required: true;
|
211
|
+
obfuscated: false;
|
212
|
+
description: string;
|
213
|
+
};
|
214
|
+
clientId: {
|
215
|
+
key: string;
|
216
|
+
label: string;
|
217
|
+
required: true;
|
218
|
+
obfuscated: false;
|
219
|
+
description: string;
|
220
|
+
};
|
221
|
+
privateKey: {
|
222
|
+
key: string;
|
223
|
+
label: string;
|
224
|
+
required: true;
|
225
|
+
obfuscated: true;
|
226
|
+
description: string;
|
227
|
+
};
|
228
|
+
}, "resourceId">;
|
229
|
+
matchPatient: import("@awell-health/extensions-core").Action<{
|
230
|
+
familyName: {
|
231
|
+
id: string;
|
232
|
+
label: string;
|
233
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
234
|
+
description: string;
|
235
|
+
required: true;
|
236
|
+
};
|
237
|
+
givenName: {
|
238
|
+
id: string;
|
239
|
+
label: string;
|
240
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
241
|
+
description: string;
|
242
|
+
required: true;
|
243
|
+
};
|
244
|
+
birthDate: {
|
245
|
+
id: string;
|
246
|
+
label: string;
|
247
|
+
type: import("@awell-health/extensions-core").FieldType.DATE;
|
248
|
+
required: true;
|
249
|
+
};
|
250
|
+
gender: {
|
251
|
+
id: string;
|
252
|
+
label: string;
|
253
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
254
|
+
required: true;
|
255
|
+
options: {
|
256
|
+
dropdownOptions: {
|
257
|
+
value: "unknown" | "male" | "female" | "other";
|
258
|
+
label: string;
|
259
|
+
}[];
|
260
|
+
};
|
261
|
+
};
|
262
|
+
email: {
|
263
|
+
id: string;
|
264
|
+
label: string;
|
265
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
266
|
+
required: true;
|
267
|
+
};
|
268
|
+
}, {
|
269
|
+
baseUrl: {
|
270
|
+
key: string;
|
271
|
+
label: string;
|
272
|
+
required: true;
|
273
|
+
obfuscated: false;
|
274
|
+
description: string;
|
275
|
+
};
|
276
|
+
authUrl: {
|
277
|
+
key: string;
|
278
|
+
label: string;
|
279
|
+
required: true;
|
280
|
+
obfuscated: false;
|
281
|
+
description: string;
|
282
|
+
};
|
283
|
+
clientId: {
|
284
|
+
key: string;
|
285
|
+
label: string;
|
286
|
+
required: true;
|
287
|
+
obfuscated: false;
|
288
|
+
description: string;
|
289
|
+
};
|
290
|
+
privateKey: {
|
291
|
+
key: string;
|
292
|
+
label: string;
|
293
|
+
required: true;
|
294
|
+
obfuscated: true;
|
295
|
+
description: string;
|
296
|
+
};
|
297
|
+
}, "resourceId">;
|
6
298
|
};
|
7
299
|
export default actions;
|
@@ -4,11 +4,13 @@ const createPatient_1 = require("./createPatient");
|
|
4
4
|
const getPatient_1 = require("./getPatient");
|
5
5
|
const getAppointment_1 = require("./getAppointment");
|
6
6
|
const createClinicalNote_1 = require("./createClinicalNote");
|
7
|
+
const matchPatient_1 = require("./matchPatient");
|
7
8
|
const actions = {
|
8
9
|
getPatient: getPatient_1.getPatient,
|
9
10
|
getAppointment: getAppointment_1.getAppointment,
|
10
11
|
createPatient: createPatient_1.createPatient,
|
11
12
|
createClinicalNote: createClinicalNote_1.createClinicalNote,
|
13
|
+
matchPatient: matchPatient_1.matchPatient,
|
12
14
|
};
|
13
15
|
exports.default = actions;
|
14
16
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/epic/actions/index.ts"],"names":[],"mappings":";;AAAA,mDAA+C;AAC/C,6CAAyC;AACzC,qDAAiD;AACjD,6DAAyD;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/epic/actions/index.ts"],"names":[],"mappings":";;AAAA,mDAA+C;AAC/C,6CAAyC;AACzC,qDAAiD;AACjD,6DAAyD;AACzD,iDAA6C;AAE7C,MAAM,OAAO,GAAG;IACd,UAAU,EAAV,uBAAU;IACV,cAAc,EAAd,+BAAc;IACd,aAAa,EAAb,6BAAa;IACb,kBAAkB,EAAlB,uCAAkB;IAClB,YAAY,EAAZ,2BAAY;CACb,CAAA;AAED,kBAAe,OAAO,CAAA"}
|
@@ -0,0 +1,114 @@
|
|
1
|
+
export declare const FhirPatientMatch: {
|
2
|
+
resourceType: string;
|
3
|
+
type: string;
|
4
|
+
total: number;
|
5
|
+
link: {
|
6
|
+
relation: string;
|
7
|
+
url: string;
|
8
|
+
}[];
|
9
|
+
entry: {
|
10
|
+
link: {
|
11
|
+
relation: string;
|
12
|
+
url: string;
|
13
|
+
}[];
|
14
|
+
fullUrl: string;
|
15
|
+
resource: {
|
16
|
+
resourceType: string;
|
17
|
+
id: string;
|
18
|
+
meta: {
|
19
|
+
security: {
|
20
|
+
system: string;
|
21
|
+
code: string;
|
22
|
+
display: string;
|
23
|
+
}[];
|
24
|
+
};
|
25
|
+
extension: ({
|
26
|
+
valueCodeableConcept: {
|
27
|
+
coding: {
|
28
|
+
system: string;
|
29
|
+
code: string;
|
30
|
+
display: string;
|
31
|
+
}[];
|
32
|
+
};
|
33
|
+
url: string;
|
34
|
+
extension?: undefined;
|
35
|
+
valueCode?: undefined;
|
36
|
+
} | {
|
37
|
+
extension: ({
|
38
|
+
valueCoding: {
|
39
|
+
system: string;
|
40
|
+
code: string;
|
41
|
+
display: string;
|
42
|
+
};
|
43
|
+
url: string;
|
44
|
+
valueString?: undefined;
|
45
|
+
} | {
|
46
|
+
valueString: string;
|
47
|
+
url: string;
|
48
|
+
valueCoding?: undefined;
|
49
|
+
})[];
|
50
|
+
url: string;
|
51
|
+
valueCodeableConcept?: undefined;
|
52
|
+
valueCode?: undefined;
|
53
|
+
} | {
|
54
|
+
valueCode: string;
|
55
|
+
url: string;
|
56
|
+
valueCodeableConcept?: undefined;
|
57
|
+
extension?: undefined;
|
58
|
+
})[];
|
59
|
+
identifier: ({
|
60
|
+
use: string;
|
61
|
+
type: {
|
62
|
+
text: string;
|
63
|
+
};
|
64
|
+
system: string;
|
65
|
+
value: string;
|
66
|
+
_value?: undefined;
|
67
|
+
} | {
|
68
|
+
use: string;
|
69
|
+
system: string;
|
70
|
+
_value: {
|
71
|
+
extension: {
|
72
|
+
valueString: string;
|
73
|
+
url: string;
|
74
|
+
}[];
|
75
|
+
};
|
76
|
+
type?: undefined;
|
77
|
+
value?: undefined;
|
78
|
+
})[];
|
79
|
+
active: boolean;
|
80
|
+
name: {
|
81
|
+
use: string;
|
82
|
+
text: string;
|
83
|
+
family: string;
|
84
|
+
given: string[];
|
85
|
+
}[];
|
86
|
+
telecom: {
|
87
|
+
system: string;
|
88
|
+
value: string;
|
89
|
+
rank: number;
|
90
|
+
}[];
|
91
|
+
gender: string;
|
92
|
+
birthDate: string;
|
93
|
+
deceasedBoolean: boolean;
|
94
|
+
address: {
|
95
|
+
use: string;
|
96
|
+
line: string[];
|
97
|
+
city: string;
|
98
|
+
state: string;
|
99
|
+
postalCode: string;
|
100
|
+
period: {
|
101
|
+
start: string;
|
102
|
+
};
|
103
|
+
}[];
|
104
|
+
};
|
105
|
+
search: {
|
106
|
+
extension: {
|
107
|
+
valueCode: string;
|
108
|
+
url: string;
|
109
|
+
}[];
|
110
|
+
mode: string;
|
111
|
+
score: number;
|
112
|
+
};
|
113
|
+
}[];
|
114
|
+
};
|