@awell-health/awell-extensions 1.0.80 → 1.0.82
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/extensions/canvasMedical/v1/actions/createQuestionnaireResponses/createQuestionnaireResponses.js +1 -1
- package/dist/extensions/canvasMedical/v1/actions/createQuestionnaireResponses/createQuestionnaireResponses.js.map +1 -1
- package/dist/extensions/canvasMedical/v1/validation/appointment.zod.d.ts +8 -8
- package/dist/extensions/canvasMedical/v1/validation/appointment.zod.js +3 -2
- package/dist/extensions/canvasMedical/v1/validation/appointment.zod.js.map +1 -1
- package/dist/extensions/canvasMedical/v1/validation/identifier.zod.d.ts +12 -12
- package/dist/extensions/canvasMedical/v1/validation/patient.zod.d.ts +32 -32
- package/dist/extensions/canvasMedical/v1/validation/period.zod.d.ts +4 -4
- package/dist/extensions/canvasMedical/v1/validation/period.zod.js +3 -3
- package/dist/extensions/canvasMedical/v1/validation/period.zod.js.map +1 -1
- package/dist/extensions/canvasMedical/v1/validation/questionnaireResponses.zod.d.ts +6 -6
- package/dist/extensions/canvasMedical/v1/validation/questionnaireResponses.zod.js +2 -1
- package/dist/extensions/canvasMedical/v1/validation/questionnaireResponses.zod.js.map +1 -1
- package/dist/extensions/canvasMedical/v1/validation/task.zod.d.ts +18 -18
- package/dist/extensions/canvasMedical/v1/validation/task.zod.js +4 -3
- package/dist/extensions/canvasMedical/v1/validation/task.zod.js.map +1 -1
- package/dist/extensions/elation/webhooks/index.d.ts +1 -1
- package/dist/extensions/elation/webhooks/index.js +2 -2
- package/dist/extensions/elation/webhooks/index.js.map +1 -1
- package/dist/extensions/elation/webhooks/{onCreatePatient.d.ts → patientCreatedOrUpdated.d.ts} +2 -2
- package/dist/extensions/elation/webhooks/{onCreatePatient.js → patientCreatedOrUpdated.js} +9 -5
- package/dist/extensions/elation/webhooks/patientCreatedOrUpdated.js.map +1 -0
- package/dist/extensions/markdown.json +1 -1
- package/package.json +1 -1
- package/dist/extensions/elation/webhooks/onCreatePatient.js.map +0 -1
@@ -63,7 +63,7 @@ const createPayload = (questionnaireId, subjectId, authored, authorId, item) =>
|
|
63
63
|
}
|
64
64
|
: undefined,
|
65
65
|
item,
|
66
|
-
authored,
|
66
|
+
authored: authored !== null && authored !== void 0 ? authored : new Date().toISOString(),
|
67
67
|
author: authorId !== undefined
|
68
68
|
? {
|
69
69
|
reference: `Practitioner/${authorId}`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createQuestionnaireResponses.js","sourceRoot":"","sources":["../../../../../../extensions/canvasMedical/v1/actions/createQuestionnaireResponses/createQuestionnaireResponses.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAErE,mEAAwD;AACxD,qCAAqE;AACrE,uCAMoB;AACpB,6BAAuB;AAEvB,yCAA4C;AAC5C,iDAAuE;AAE1D,QAAA,4BAA4B,GAGrC;IACF,GAAG,EAAE,8BAA8B;IACnC,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,sCAAsC;IAC7C,WAAW,EAAE,sCAAsC;IACnD,MAAM,EAAN,eAAM;IACN,UAAU,EAAV,mBAAU;IACV,WAAW,EAAE,IAAI;IACjB,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE;QACxD,IAAI;YACF,IAAA,0BAAQ,EAAC;gBACP,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC;oBACf,MAAM,EAAE,+BAAsB;iBAC/B,CAAC;gBACF,OAAO;aACR,CAAC,CAAA;YAEF,MAAM,EAAE,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,GAC5D,OAAO,CAAC,MAAM,CAAA;YAEhB,MAAM,sBAAsB,GAAG,iDAAoC,CAAC,KAAK,CACvE,aAAa,CACX,eAAyB,EACzB,SAAmB,EACnB,QAAQ,EACR,QAAQ,EACR,IAAI,CAAC,KAAK,CAAC,IAAc,CAAC,CAC3B,CACF,CAAA;YAED,MAAM,GAAG,GAAG,IAAA,sBAAa,EAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;YAC3C,MAAM,uBAAuB,GAAG,MAAM,GAAG,CAAC,4BAA4B,CACpE,sBAAsB,CACvB,CAAA;YAED,MAAM,UAAU,CAAC;gBACf,WAAW,EAAE;oBACX,uBAAuB;iBACxB;aACF,CAAC,CAAA;SACH;QAAC,OAAO,KAAK,EAAE;YACd,IAAI,WAAW,CAAA;YAEf,IAAI,IAAA,kBAAU,EAAC,KAAK,CAAC,EAAE;gBACrB,WAAW,GAAG,IAAA,qBAAa,EAAC,KAAK,CAAC,CAAA;aACnC;iBAAM,IAAI,IAAA,oBAAY,EAAC,KAAK,CAAC,EAAE;gBAC9B,WAAW,GAAG,IAAA,uBAAe,EAAC,KAAmB,CAAC,CAAA;aACnD;iBAAM;gBACL,WAAW,GAAG,IAAA,wBAAgB,EAAC,KAAc,CAAC,CAAA;aAC/C;YACD,MAAM,OAAO,CAAC;gBACZ,MAAM,EAAE,CAAC,WAAW,CAAC;aACtB,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA;AAED,MAAM,aAAa,GAAG,CACpB,eAAwB,EACxB,SAAkB,EAClB,QAAiB,EACjB,QAAiB,EACjB,IAAY,EACP,EAAE;IACP,MAAM,OAAO,GAAG;QACd,YAAY,EAAE,uBAAkD;QAChE,aAAa,EACX,eAAe,KAAK,SAAS;YAC3B,CAAC,CAAC,iBAAiB,eAAe,EAAE;YACpC,CAAC,CAAC,SAAS;QACf,OAAO,EACL,SAAS,KAAK,SAAS;YACrB,CAAC,CAAC;gBACE,SAAS,EAAE,WAAW,SAAS,EAAE;aAClC;YACH,CAAC,CAAC,SAAS;QACf,IAAI;QACJ,QAAQ;
|
1
|
+
{"version":3,"file":"createQuestionnaireResponses.js","sourceRoot":"","sources":["../../../../../../extensions/canvasMedical/v1/actions/createQuestionnaireResponses/createQuestionnaireResponses.ts"],"names":[],"mappings":";;;AAAA,mEAA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AA,oBAAY,EAAC,KAAK,CAAC,EAAE;gBAC9B,WAAW,GAAG,IAAA,uBAAe,EAAC,KAAmB,CAAC,CAAA;aACnD;iBAAM;gBACL,WAAW,GAAG,IAAA,wBAAgB,EAAC,KAAc,CAAC,CAAA;aAC/C;YACD,MAAM,OAAO,CAAC;gBACZ,MAAM,EAAE,CAAC,WAAW,CAAC;aACtB,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA;AAED,MAAM,aAAa,GAAG,CACpB,eAAwB,EACxB,SAAkB,EAClB,QAAiB,EACjB,QAAiB,EACjB,IAAY,EACP,EAAE;IACP,MAAM,OAAO,GAAG;QACd,YAAY,EAAE,uBAAkD;QAChE,aAAa,EACX,eAAe,KAAK,SAAS;YAC3B,CAAC,CAAC,iBAAiB,eAAe,EAAE;YACpC,CAAC,CAAC,SAAS;QACf,OAAO,EACL,SAAS,KAAK,SAAS;YACrB,CAAC,CAAC;gBACE,SAAS,EAAE,WAAW,SAAS,EAAE;aAClC;YACH,CAAC,CAAC,SAAS;QACf,IAAI;QACJ,QAAQ,EAAE,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QAC9C,MAAM,EACJ,QAAQ,KAAK,SAAS;YACpB,CAAC,CAAC;gBACE,SAAS,EAAE,gBAAgB,QAAQ,EAAE;aACtC;YACH,CAAC,CAAC,SAAS;KAChB,CAAA;IAED,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA"}
|
@@ -79,8 +79,8 @@ export declare const appointmentSchema: z.ZodObject<{
|
|
79
79
|
system: "http://snomed.info/sct";
|
80
80
|
}[];
|
81
81
|
}>;
|
82
|
-
start: z.
|
83
|
-
end: z.
|
82
|
+
start: z.ZodEffects<z.ZodDate, string, Date>;
|
83
|
+
end: z.ZodEffects<z.ZodDate, string, Date>;
|
84
84
|
supportingInformation: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
85
85
|
reference: z.ZodString;
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
@@ -202,8 +202,8 @@ export declare const appointmentSchema: z.ZodObject<{
|
|
202
202
|
}[] | undefined;
|
203
203
|
status?: "proposed" | undefined;
|
204
204
|
}, {
|
205
|
-
end:
|
206
|
-
start:
|
205
|
+
end: Date;
|
206
|
+
start: Date;
|
207
207
|
resourceType: "Appointment";
|
208
208
|
appointmentType: {
|
209
209
|
coding: {
|
@@ -250,8 +250,8 @@ export declare const appointmentSchema: z.ZodObject<{
|
|
250
250
|
status?: "proposed" | undefined;
|
251
251
|
}>;
|
252
252
|
export declare const appointmentWithIdSchema: z.ZodObject<{
|
253
|
-
end: z.
|
254
|
-
start: z.
|
253
|
+
end: z.ZodEffects<z.ZodDate, string, Date>;
|
254
|
+
start: z.ZodEffects<z.ZodDate, string, Date>;
|
255
255
|
description: z.ZodOptional<z.ZodString>;
|
256
256
|
status: z.ZodOptional<z.ZodLiteral<"proposed">>;
|
257
257
|
resourceType: z.ZodLiteral<"Appointment">;
|
@@ -455,8 +455,8 @@ export declare const appointmentWithIdSchema: z.ZodObject<{
|
|
455
455
|
}[] | undefined;
|
456
456
|
}, {
|
457
457
|
id: string;
|
458
|
-
end:
|
459
|
-
start:
|
458
|
+
end: Date;
|
459
|
+
start: Date;
|
460
460
|
resourceType: "Appointment";
|
461
461
|
appointmentType: {
|
462
462
|
coding: {
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.appointmentWithIdSchema = exports.appointmentSchema = void 0;
|
4
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
4
5
|
const zod_1 = require("zod");
|
5
6
|
const reference_zod_1 = require("./reference.zod");
|
6
7
|
const reasonCodeSchema = zod_1.z.object({
|
@@ -47,8 +48,8 @@ exports.appointmentSchema = zod_1.z.object({
|
|
47
48
|
display: zod_1.z.string(),
|
48
49
|
})),
|
49
50
|
}),
|
50
|
-
start:
|
51
|
-
end:
|
51
|
+
start: extensions_core_1.DateTimeSchema,
|
52
|
+
end: extensions_core_1.DateTimeSchema,
|
52
53
|
supportingInformation: zod_1.z.array(zod_1.z.union([
|
53
54
|
zod_1.z.object({
|
54
55
|
reference: (0, reference_zod_1.createReferenceSchema)('Location'),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"appointment.zod.js","sourceRoot":"","sources":["../../../../../extensions/canvasMedical/v1/validation/appointment.zod.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,mDAAuD;AAEvD,MAAM,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChC,MAAM,EAAE,OAAC,CAAC,KAAK,CACb,OAAC,CAAC,MAAM,CAAC;QACP,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,UAAU,CAAC;QAC7B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;QAChB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;IACD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAA;AAEF,MAAM,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACjC,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC;YACjB,IAAA,qCAAqB,EAAC,cAAc,CAAC;YACrC,IAAA,qCAAqB,EAAC,SAAS,CAAC;SACjC,CAAC;KACH,CAAC;IACF,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,UAAU,CAAC;CAC9B,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,YAAY,EAAE,OAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IACnC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,cAAc,EAAE,OAAC,CAAC,MAAM,CAAC;QACvB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;KACjB,CAAC;IACF,WAAW,EAAE,OAAC,CAAC,KAAK,CAClB,OAAC,CAAC,MAAM,CAAC;QACP,MAAM,EAAE,OAAC,CAAC,KAAK,CACb,OAAC,CAAC,MAAM,CAAC;YACP,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;SACjB,CAAC,CACH;KACF,CAAC,CACH;IACD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEW,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,YAAY,EAAE,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACtC,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE;IAChD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,QAAQ,EAAE;IAClD,eAAe,EAAE,OAAC,CAAC,MAAM,CAAC;QACxB,MAAM,EAAE,OAAC,CAAC,KAAK,CACb,OAAC,CAAC,MAAM,CAAC;YACP,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,wBAAwB,CAAC;YAC3C,qFAAqF;YACrF,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;YAChB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;SACpB,CAAC,CACH;KACF,CAAC;IACF,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"appointment.zod.js","sourceRoot":"","sources":["../../../../../extensions/canvasMedical/v1/validation/appointment.zod.ts"],"names":[],"mappings":";;;AAAA,mEAA8D;AAC9D,6BAAuB;AACvB,mDAAuD;AAEvD,MAAM,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChC,MAAM,EAAE,OAAC,CAAC,KAAK,CACb,OAAC,CAAC,MAAM,CAAC;QACP,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,UAAU,CAAC;QAC7B,IAAI,EAAE,OAA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ClC,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,QAAQ,EAAE;IAClD,eAAe,EAAE,OAAC,CAAC,MAAM,CAAC;QACxB,MAAM,EAAE,OAAC,CAAC,KAAK,CACb,OAAC,CAAC,MAAM,CAAC;YACP,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,wBAAwB,CAAC;YAC3C,qFAAqF;YACrF,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;YAChB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;SACpB,CAAC,CACH;KACF,CAAC;IACF,KAAK,EAAE,gCAAc;IACrB,GAAG,EAAE,gCAAc;IACnB,qBAAqB,EAAE,OAAC,CAAC,KAAK,CAC5B,OAAC,CAAC,KAAK,CAAC;QACN,OAAC,CAAC,MAAM,CAAC;YACP,SAAS,EAAE,IAAA,qCAAqB,EAAC,UAAU,CAAC;SAC7C,CAAC;QACF,OAAC,CAAC,MAAM,CAAC;YACP,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,+BAA+B,CAAC;YACrD,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,UAAU,CAAC;SAC5B,CAAC;KACH,CAAC,CACH;IACD,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,QAAQ,EAAE;IAC9C,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAA;AAEW,QAAA,uBAAuB,GAAG,yBAAiB,CAAC,MAAM,CAAC;IAC9D,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;CACf,CAAC,CAAA"}
|
@@ -4,23 +4,23 @@ export declare const identifierSchema: z.ZodObject<{
|
|
4
4
|
value: z.ZodOptional<z.ZodString>;
|
5
5
|
use: z.ZodOptional<z.ZodEnum<["usual", "official", "secondary", "temp", "old"]>>;
|
6
6
|
period: z.ZodOptional<z.ZodUnion<[z.ZodOptional<z.ZodArray<z.ZodObject<{
|
7
|
-
start: z.
|
8
|
-
end: z.ZodOptional<z.
|
7
|
+
start: z.ZodEffects<z.ZodDate, string, Date>;
|
8
|
+
end: z.ZodOptional<z.ZodEffects<z.ZodDate, string, Date>>;
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
10
10
|
start: string;
|
11
11
|
end?: string | undefined;
|
12
12
|
}, {
|
13
|
-
start:
|
14
|
-
end?:
|
13
|
+
start: Date;
|
14
|
+
end?: Date | undefined;
|
15
15
|
}>, "many">>, z.ZodObject<{
|
16
|
-
start: z.
|
17
|
-
end: z.ZodOptional<z.
|
16
|
+
start: z.ZodEffects<z.ZodDate, string, Date>;
|
17
|
+
end: z.ZodOptional<z.ZodEffects<z.ZodDate, string, Date>>;
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
19
19
|
start: string;
|
20
20
|
end?: string | undefined;
|
21
21
|
}, {
|
22
|
-
start:
|
23
|
-
end?:
|
22
|
+
start: Date;
|
23
|
+
end?: Date | undefined;
|
24
24
|
}>]>>;
|
25
25
|
type: z.ZodOptional<z.ZodObject<{
|
26
26
|
coding: z.ZodArray<z.ZodObject<{
|
@@ -82,11 +82,11 @@ export declare const identifierSchema: z.ZodObject<{
|
|
82
82
|
value?: string | undefined;
|
83
83
|
use?: "usual" | "official" | "secondary" | "temp" | "old" | undefined;
|
84
84
|
period?: {
|
85
|
-
start:
|
86
|
-
end?:
|
85
|
+
start: Date;
|
86
|
+
end?: Date | undefined;
|
87
87
|
} | {
|
88
|
-
start:
|
89
|
-
end?:
|
88
|
+
start: Date;
|
89
|
+
end?: Date | undefined;
|
90
90
|
}[] | undefined;
|
91
91
|
type?: {
|
92
92
|
coding: {
|
@@ -217,23 +217,23 @@ export declare const patientSchema: z.ZodObject<{
|
|
217
217
|
value: z.ZodOptional<z.ZodString>;
|
218
218
|
use: z.ZodOptional<z.ZodEnum<["usual", "official", "secondary", "temp", "old"]>>;
|
219
219
|
period: z.ZodOptional<z.ZodUnion<[z.ZodOptional<z.ZodArray<z.ZodObject<{
|
220
|
-
start: z.
|
221
|
-
end: z.ZodOptional<z.
|
220
|
+
start: z.ZodEffects<z.ZodDate, string, Date>;
|
221
|
+
end: z.ZodOptional<z.ZodEffects<z.ZodDate, string, Date>>;
|
222
222
|
}, "strip", z.ZodTypeAny, {
|
223
223
|
start: string;
|
224
224
|
end?: string | undefined;
|
225
225
|
}, {
|
226
|
-
start:
|
227
|
-
end?:
|
226
|
+
start: Date;
|
227
|
+
end?: Date | undefined;
|
228
228
|
}>, "many">>, z.ZodObject<{
|
229
|
-
start: z.
|
230
|
-
end: z.ZodOptional<z.
|
229
|
+
start: z.ZodEffects<z.ZodDate, string, Date>;
|
230
|
+
end: z.ZodOptional<z.ZodEffects<z.ZodDate, string, Date>>;
|
231
231
|
}, "strip", z.ZodTypeAny, {
|
232
232
|
start: string;
|
233
233
|
end?: string | undefined;
|
234
234
|
}, {
|
235
|
-
start:
|
236
|
-
end?:
|
235
|
+
start: Date;
|
236
|
+
end?: Date | undefined;
|
237
237
|
}>]>>;
|
238
238
|
type: z.ZodOptional<z.ZodObject<{
|
239
239
|
coding: z.ZodArray<z.ZodObject<{
|
@@ -295,11 +295,11 @@ export declare const patientSchema: z.ZodObject<{
|
|
295
295
|
value?: string | undefined;
|
296
296
|
use?: "usual" | "official" | "secondary" | "temp" | "old" | undefined;
|
297
297
|
period?: {
|
298
|
-
start:
|
299
|
-
end?:
|
298
|
+
start: Date;
|
299
|
+
end?: Date | undefined;
|
300
300
|
} | {
|
301
|
-
start:
|
302
|
-
end?:
|
301
|
+
start: Date;
|
302
|
+
end?: Date | undefined;
|
303
303
|
}[] | undefined;
|
304
304
|
type?: {
|
305
305
|
coding: {
|
@@ -661,11 +661,11 @@ export declare const patientSchema: z.ZodObject<{
|
|
661
661
|
value?: string | undefined;
|
662
662
|
use?: "usual" | "official" | "secondary" | "temp" | "old" | undefined;
|
663
663
|
period?: {
|
664
|
-
start:
|
665
|
-
end?:
|
664
|
+
start: Date;
|
665
|
+
end?: Date | undefined;
|
666
666
|
} | {
|
667
|
-
start:
|
668
|
-
end?:
|
667
|
+
start: Date;
|
668
|
+
end?: Date | undefined;
|
669
669
|
}[] | undefined;
|
670
670
|
type?: {
|
671
671
|
coding: {
|
@@ -1023,23 +1023,23 @@ export declare const patientWithIdSchema: z.ZodObject<{
|
|
1023
1023
|
value: z.ZodOptional<z.ZodString>;
|
1024
1024
|
use: z.ZodOptional<z.ZodEnum<["usual", "official", "secondary", "temp", "old"]>>;
|
1025
1025
|
period: z.ZodOptional<z.ZodUnion<[z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1026
|
-
start: z.
|
1027
|
-
end: z.ZodOptional<z.
|
1026
|
+
start: z.ZodEffects<z.ZodDate, string, Date>;
|
1027
|
+
end: z.ZodOptional<z.ZodEffects<z.ZodDate, string, Date>>;
|
1028
1028
|
}, "strip", z.ZodTypeAny, {
|
1029
1029
|
start: string;
|
1030
1030
|
end?: string | undefined;
|
1031
1031
|
}, {
|
1032
|
-
start:
|
1033
|
-
end?:
|
1032
|
+
start: Date;
|
1033
|
+
end?: Date | undefined;
|
1034
1034
|
}>, "many">>, z.ZodObject<{
|
1035
|
-
start: z.
|
1036
|
-
end: z.ZodOptional<z.
|
1035
|
+
start: z.ZodEffects<z.ZodDate, string, Date>;
|
1036
|
+
end: z.ZodOptional<z.ZodEffects<z.ZodDate, string, Date>>;
|
1037
1037
|
}, "strip", z.ZodTypeAny, {
|
1038
1038
|
start: string;
|
1039
1039
|
end?: string | undefined;
|
1040
1040
|
}, {
|
1041
|
-
start:
|
1042
|
-
end?:
|
1041
|
+
start: Date;
|
1042
|
+
end?: Date | undefined;
|
1043
1043
|
}>]>>;
|
1044
1044
|
type: z.ZodOptional<z.ZodObject<{
|
1045
1045
|
coding: z.ZodArray<z.ZodObject<{
|
@@ -1101,11 +1101,11 @@ export declare const patientWithIdSchema: z.ZodObject<{
|
|
1101
1101
|
value?: string | undefined;
|
1102
1102
|
use?: "usual" | "official" | "secondary" | "temp" | "old" | undefined;
|
1103
1103
|
period?: {
|
1104
|
-
start:
|
1105
|
-
end?:
|
1104
|
+
start: Date;
|
1105
|
+
end?: Date | undefined;
|
1106
1106
|
} | {
|
1107
|
-
start:
|
1108
|
-
end?:
|
1107
|
+
start: Date;
|
1108
|
+
end?: Date | undefined;
|
1109
1109
|
}[] | undefined;
|
1110
1110
|
type?: {
|
1111
1111
|
coding: {
|
@@ -1408,11 +1408,11 @@ export declare const patientWithIdSchema: z.ZodObject<{
|
|
1408
1408
|
value?: string | undefined;
|
1409
1409
|
use?: "usual" | "official" | "secondary" | "temp" | "old" | undefined;
|
1410
1410
|
period?: {
|
1411
|
-
start:
|
1412
|
-
end?:
|
1411
|
+
start: Date;
|
1412
|
+
end?: Date | undefined;
|
1413
1413
|
} | {
|
1414
|
-
start:
|
1415
|
-
end?:
|
1414
|
+
start: Date;
|
1415
|
+
end?: Date | undefined;
|
1416
1416
|
}[] | undefined;
|
1417
1417
|
type?: {
|
1418
1418
|
coding: {
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
export declare const periodSchema: z.ZodObject<{
|
3
|
-
start: z.
|
4
|
-
end: z.ZodOptional<z.
|
3
|
+
start: z.ZodEffects<z.ZodDate, string, Date>;
|
4
|
+
end: z.ZodOptional<z.ZodEffects<z.ZodDate, string, Date>>;
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
6
6
|
start: string;
|
7
7
|
end?: string | undefined;
|
8
8
|
}, {
|
9
|
-
start:
|
10
|
-
end?:
|
9
|
+
start: Date;
|
10
|
+
end?: Date | undefined;
|
11
11
|
}>;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.periodSchema = void 0;
|
4
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
4
5
|
const zod_1 = require("zod");
|
5
|
-
const dateTime_zod_1 = require("./dateTime.zod");
|
6
6
|
exports.periodSchema = zod_1.z.object({
|
7
|
-
start:
|
8
|
-
end:
|
7
|
+
start: extensions_core_1.DateTimeSchema,
|
8
|
+
end: extensions_core_1.DateTimeSchema.optional(),
|
9
9
|
});
|
10
10
|
//# sourceMappingURL=period.zod.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"period.zod.js","sourceRoot":"","sources":["../../../../../extensions/canvasMedical/v1/validation/period.zod.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"period.zod.js","sourceRoot":"","sources":["../../../../../extensions/canvasMedical/v1/validation/period.zod.ts"],"names":[],"mappings":";;;AAAA,mEAA8D;AAC9D,6BAAuB;AAEV,QAAA,YAAY,GAAG,OAAC,CAAC,MAAM,CAAC;IACnC,KAAK,EAAE,gCAAc;IACrB,GAAG,EAAE,gCAAc,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAA"}
|
@@ -9,7 +9,7 @@ export declare const creatingQuestionnaireResponsesSchema: z.ZodObject<{
|
|
9
9
|
}, {
|
10
10
|
reference: string;
|
11
11
|
}>;
|
12
|
-
authored: z.ZodOptional<z.
|
12
|
+
authored: z.ZodOptional<z.ZodEffects<z.ZodDate, string, Date>>;
|
13
13
|
author: z.ZodOptional<z.ZodObject<{
|
14
14
|
reference: z.ZodString;
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
@@ -36,7 +36,7 @@ export declare const creatingQuestionnaireResponsesSchema: z.ZodObject<{
|
|
36
36
|
};
|
37
37
|
resourceType: "QuestionnaireResponse";
|
38
38
|
questionnaire: string;
|
39
|
-
authored?:
|
39
|
+
authored?: Date | undefined;
|
40
40
|
author?: {
|
41
41
|
reference: string;
|
42
42
|
} | undefined;
|
@@ -52,7 +52,7 @@ export declare const questionnaireResponseSchema: z.ZodObject<{
|
|
52
52
|
}>;
|
53
53
|
resourceType: z.ZodLiteral<"QuestionnaireResponse">;
|
54
54
|
questionnaire: z.ZodString;
|
55
|
-
authored: z.ZodOptional<z.
|
55
|
+
authored: z.ZodOptional<z.ZodEffects<z.ZodDate, string, Date>>;
|
56
56
|
author: z.ZodOptional<z.ZodObject<{
|
57
57
|
reference: z.ZodString;
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
@@ -99,7 +99,7 @@ export declare const questionnaireResponseSchema: z.ZodObject<{
|
|
99
99
|
};
|
100
100
|
resourceType: "QuestionnaireResponse";
|
101
101
|
questionnaire: string;
|
102
|
-
authored?:
|
102
|
+
authored?: Date | undefined;
|
103
103
|
author?: {
|
104
104
|
reference: string;
|
105
105
|
} | undefined;
|
@@ -126,7 +126,7 @@ export declare const questionnaireResponseWithIdSchema: z.ZodObject<{
|
|
126
126
|
}>;
|
127
127
|
resourceType: z.ZodLiteral<"QuestionnaireResponse">;
|
128
128
|
questionnaire: z.ZodString;
|
129
|
-
authored: z.ZodOptional<z.
|
129
|
+
authored: z.ZodOptional<z.ZodEffects<z.ZodDate, string, Date>>;
|
130
130
|
author: z.ZodOptional<z.ZodObject<{
|
131
131
|
reference: z.ZodString;
|
132
132
|
}, "strip", z.ZodTypeAny, {
|
@@ -165,7 +165,7 @@ export declare const questionnaireResponseWithIdSchema: z.ZodObject<{
|
|
165
165
|
};
|
166
166
|
resourceType: "QuestionnaireResponse";
|
167
167
|
questionnaire: string;
|
168
|
-
authored?:
|
168
|
+
authored?: Date | undefined;
|
169
169
|
author?: {
|
170
170
|
reference: string;
|
171
171
|
} | undefined;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.questionnaireResponseWithIdSchema = exports.questionnaireResponseSchema = exports.creatingQuestionnaireResponsesSchema = void 0;
|
4
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
4
5
|
const zod_1 = require("zod");
|
5
6
|
const reference_zod_1 = require("./reference.zod");
|
6
7
|
exports.creatingQuestionnaireResponsesSchema = zod_1.z.object({
|
@@ -9,7 +10,7 @@ exports.creatingQuestionnaireResponsesSchema = zod_1.z.object({
|
|
9
10
|
subject: zod_1.z.object({
|
10
11
|
reference: (0, reference_zod_1.createReferenceSchema)('Patient'),
|
11
12
|
}),
|
12
|
-
authored:
|
13
|
+
authored: extensions_core_1.DateTimeSchema.optional(),
|
13
14
|
author: zod_1.z
|
14
15
|
.object({
|
15
16
|
reference: (0, reference_zod_1.createReferenceSchema)('Practitioner'),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"questionnaireResponses.zod.js","sourceRoot":"","sources":["../../../../../extensions/canvasMedical/v1/validation/questionnaireResponses.zod.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,mDAAuD;AAE1C,QAAA,oCAAoC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3D,YAAY,EAAE,OAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC;IAChD,aAAa,EAAE,IAAA,qCAAqB,EAAC,eAAe,CAAC;IACrD,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QAChB,SAAS,EAAE,IAAA,qCAAqB,EAAC,SAAS,CAAC;KAC5C,CAAC;IACF,QAAQ,EAAE,
|
1
|
+
{"version":3,"file":"questionnaireResponses.zod.js","sourceRoot":"","sources":["../../../../../extensions/canvasMedical/v1/validation/questionnaireResponses.zod.ts"],"names":[],"mappings":";;;AAAA,mEAA8D;AAC9D,6BAAuB;AACvB,mDAAuD;AAE1C,QAAA,oCAAoC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3D,YAAY,EAAE,OAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC;IAChD,aAAa,EAAE,IAAA,qCAAqB,EAAC,eAAe,CAAC;IACrD,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QAChB,SAAS,EAAE,IAAA,qCAAqB,EAAC,SAAS,CAAC;KAC5C,CAAC;IACF,QAAQ,EAAE,gCAAc,CAAC,QAAQ,EAAE;IACnC,MAAM,EAAE,OAAC;SACN,MAAM,CAAC;QACN,SAAS,EAAE,IAAA,qCAAqB,EAAC,cAAc,CAAC;KACjD,CAAC;SACD,QAAQ,EAAE;IACb,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,GAAG,EAAE,CAAC;CACvB,CAAC,CAAA;AAEW,QAAA,2BAA2B,GACtC,4CAAoC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;QACb,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;QACrB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;KACxB,CAAC;IACF,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAA;AAES,QAAA,iCAAiC,GAC5C,mCAA2B,CAAC,MAAM,CAAC;IACjC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;CACf,CAAC,CAAA"}
|
@@ -49,14 +49,14 @@ export declare const taskSchema: z.ZodObject<{
|
|
49
49
|
}, {
|
50
50
|
reference: string;
|
51
51
|
}>>;
|
52
|
-
authoredOn: z.ZodOptional<z.
|
52
|
+
authoredOn: z.ZodOptional<z.ZodEffects<z.ZodDate, string, Date>>;
|
53
53
|
restriction: z.ZodOptional<z.ZodObject<{
|
54
54
|
period: z.ZodObject<{
|
55
|
-
end: z.
|
55
|
+
end: z.ZodEffects<z.ZodDate, string, Date>;
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
57
57
|
end: string;
|
58
58
|
}, {
|
59
|
-
end:
|
59
|
+
end: Date;
|
60
60
|
}>;
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
62
62
|
period: {
|
@@ -64,12 +64,12 @@ export declare const taskSchema: z.ZodObject<{
|
|
64
64
|
};
|
65
65
|
}, {
|
66
66
|
period: {
|
67
|
-
end:
|
67
|
+
end: Date;
|
68
68
|
};
|
69
69
|
}>>;
|
70
70
|
note: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
71
71
|
text: z.ZodString;
|
72
|
-
time: z.
|
72
|
+
time: z.ZodEffects<z.ZodDate, string, Date>;
|
73
73
|
authorReference: z.ZodObject<{
|
74
74
|
reference: z.ZodString;
|
75
75
|
}, "strip", z.ZodTypeAny, {
|
@@ -84,7 +84,7 @@ export declare const taskSchema: z.ZodObject<{
|
|
84
84
|
reference: string;
|
85
85
|
};
|
86
86
|
}, {
|
87
|
-
time:
|
87
|
+
time: Date;
|
88
88
|
text: string;
|
89
89
|
authorReference: {
|
90
90
|
reference: string;
|
@@ -169,14 +169,14 @@ export declare const taskSchema: z.ZodObject<{
|
|
169
169
|
owner?: {
|
170
170
|
reference: string;
|
171
171
|
} | undefined;
|
172
|
-
authoredOn?:
|
172
|
+
authoredOn?: Date | undefined;
|
173
173
|
restriction?: {
|
174
174
|
period: {
|
175
|
-
end:
|
175
|
+
end: Date;
|
176
176
|
};
|
177
177
|
} | undefined;
|
178
178
|
note?: {
|
179
|
-
time:
|
179
|
+
time: Date;
|
180
180
|
text: string;
|
181
181
|
authorReference: {
|
182
182
|
reference: string;
|
@@ -259,14 +259,14 @@ export declare const taskWithIdSchema: z.ZodObject<{
|
|
259
259
|
}, {
|
260
260
|
reference: string;
|
261
261
|
}>>;
|
262
|
-
authoredOn: z.ZodOptional<z.
|
262
|
+
authoredOn: z.ZodOptional<z.ZodEffects<z.ZodDate, string, Date>>;
|
263
263
|
restriction: z.ZodOptional<z.ZodObject<{
|
264
264
|
period: z.ZodObject<{
|
265
|
-
end: z.
|
265
|
+
end: z.ZodEffects<z.ZodDate, string, Date>;
|
266
266
|
}, "strip", z.ZodTypeAny, {
|
267
267
|
end: string;
|
268
268
|
}, {
|
269
|
-
end:
|
269
|
+
end: Date;
|
270
270
|
}>;
|
271
271
|
}, "strip", z.ZodTypeAny, {
|
272
272
|
period: {
|
@@ -274,12 +274,12 @@ export declare const taskWithIdSchema: z.ZodObject<{
|
|
274
274
|
};
|
275
275
|
}, {
|
276
276
|
period: {
|
277
|
-
end:
|
277
|
+
end: Date;
|
278
278
|
};
|
279
279
|
}>>;
|
280
280
|
note: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
281
281
|
text: z.ZodString;
|
282
|
-
time: z.
|
282
|
+
time: z.ZodEffects<z.ZodDate, string, Date>;
|
283
283
|
authorReference: z.ZodObject<{
|
284
284
|
reference: z.ZodString;
|
285
285
|
}, "strip", z.ZodTypeAny, {
|
@@ -294,7 +294,7 @@ export declare const taskWithIdSchema: z.ZodObject<{
|
|
294
294
|
reference: string;
|
295
295
|
};
|
296
296
|
}, {
|
297
|
-
time:
|
297
|
+
time: Date;
|
298
298
|
text: string;
|
299
299
|
authorReference: {
|
300
300
|
reference: string;
|
@@ -368,14 +368,14 @@ export declare const taskWithIdSchema: z.ZodObject<{
|
|
368
368
|
owner?: {
|
369
369
|
reference: string;
|
370
370
|
} | undefined;
|
371
|
-
authoredOn?:
|
371
|
+
authoredOn?: Date | undefined;
|
372
372
|
restriction?: {
|
373
373
|
period: {
|
374
|
-
end:
|
374
|
+
end: Date;
|
375
375
|
};
|
376
376
|
} | undefined;
|
377
377
|
note?: {
|
378
|
-
time:
|
378
|
+
time: Date;
|
379
379
|
text: string;
|
380
380
|
authorReference: {
|
381
381
|
reference: string;
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.taskWithIdSchema = exports.taskSchema = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
5
|
const reference_zod_1 = require("./reference.zod");
|
6
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
6
7
|
const extensionSchema = zod_1.z.object({
|
7
8
|
url: zod_1.z.string(),
|
8
9
|
valueReference: zod_1.z.object({
|
@@ -39,18 +40,18 @@ exports.taskSchema = zod_1.z.object({
|
|
39
40
|
reference: (0, reference_zod_1.createReferenceSchema)('Practitioner'),
|
40
41
|
})
|
41
42
|
.optional(),
|
42
|
-
authoredOn:
|
43
|
+
authoredOn: extensions_core_1.DateTimeSchema.optional(),
|
43
44
|
restriction: zod_1.z
|
44
45
|
.object({
|
45
46
|
period: zod_1.z.object({
|
46
|
-
end:
|
47
|
+
end: extensions_core_1.DateTimeSchema,
|
47
48
|
}),
|
48
49
|
})
|
49
50
|
.optional(),
|
50
51
|
note: zod_1.z
|
51
52
|
.array(zod_1.z.object({
|
52
53
|
text: zod_1.z.string(),
|
53
|
-
time:
|
54
|
+
time: extensions_core_1.DateTimeSchema,
|
54
55
|
authorReference: zod_1.z.object({
|
55
56
|
reference: (0, reference_zod_1.createReferenceSchema)('Practitioner'),
|
56
57
|
}),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"task.zod.js","sourceRoot":"","sources":["../../../../../extensions/canvasMedical/v1/validation/task.zod.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,mDAAuD;
|
1
|
+
{"version":3,"file":"task.zod.js","sourceRoot":"","sources":["../../../../../extensions/canvasMedical/v1/validation/task.zod.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,mDAAuD;AACvD,mEAA8D;AAE9D,MAAM,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,cAAc,EAAE,OAAC,CAAC,MAAM,CAAC;QACvB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAChC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC/B,CAAC;CACH,CAAC,CAAA;AAEW,QAAA,UAAU,GAAG,OAAC,CAAC,MAAM,CAAC;IACjC,YAAY,EAAE,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,QAAQ,EAAE;IAC9C,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC;QACb,OAAO;QACP,WAAW;QACX,UAAU;QACV,UAAU;QACV,UAAU;QACV,OAAO;QACP,WAAW;QACX,aAAa;QACb,SAAS;QACT,QAAQ;QACR,WAAW;QACX,kBAAkB;KACnB,CAAC;IACF,SAAS,EAAE,OAAC,CAAC,M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
|
1
|
+
export type { OnCreatePatient } from './patientCreatedOrUpdated';
|
2
2
|
export declare const webhooks: import("@awell-health/extensions-core").Webhook<"patientId", import("../types/subscription").SubscriptionEvent>[];
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.webhooks = void 0;
|
4
|
-
const
|
5
|
-
exports.webhooks = [
|
4
|
+
const patientCreatedOrUpdated_1 = require("./patientCreatedOrUpdated");
|
5
|
+
exports.webhooks = [patientCreatedOrUpdated_1.patientCreatedOrUpdated];
|
6
6
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/elation/webhooks/index.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/elation/webhooks/index.ts"],"names":[],"mappings":";;;AAAA,uEAAmE;AAGtD,QAAA,QAAQ,GAAG,CAAC,iDAAuB,CAAC,CAAA"}
|
package/dist/extensions/elation/webhooks/{onCreatePatient.d.ts → patientCreatedOrUpdated.d.ts}
RENAMED
@@ -6,6 +6,6 @@ declare const dataPoints: {
|
|
6
6
|
valueType: "string";
|
7
7
|
};
|
8
8
|
};
|
9
|
-
export declare const
|
10
|
-
export type OnCreatePatient = typeof
|
9
|
+
export declare const patientCreatedOrUpdated: Webhook<keyof typeof dataPoints, SubscriptionEvent>;
|
10
|
+
export type OnCreatePatient = typeof patientCreatedOrUpdated;
|
11
11
|
export {};
|
@@ -1,17 +1,21 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.patientCreatedOrUpdated = void 0;
|
4
4
|
const dataPoints = {
|
5
5
|
patientId: {
|
6
6
|
key: 'patientId',
|
7
7
|
valueType: 'string',
|
8
8
|
},
|
9
9
|
};
|
10
|
-
exports.
|
11
|
-
key: '
|
10
|
+
exports.patientCreatedOrUpdated = {
|
11
|
+
key: 'patientCreatedOrUpdated',
|
12
12
|
dataPoints,
|
13
13
|
onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
|
14
|
-
const { data, resource } = payload;
|
14
|
+
const { data, resource, action } = payload;
|
15
|
+
// skip non 'saved' actions for that webhook
|
16
|
+
if (action !== 'saved') {
|
17
|
+
return;
|
18
|
+
}
|
15
19
|
if (resource !== 'patients') {
|
16
20
|
await onError({
|
17
21
|
response: {
|
@@ -27,4 +31,4 @@ exports.onCreatePatient = {
|
|
27
31
|
}
|
28
32
|
},
|
29
33
|
};
|
30
|
-
//# sourceMappingURL=
|
34
|
+
//# sourceMappingURL=patientCreatedOrUpdated.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"patientCreatedOrUpdated.js","sourceRoot":"","sources":["../../../../extensions/elation/webhooks/patientCreatedOrUpdated.ts"],"names":[],"mappings":";;;AAMA,MAAM,UAAU,GAAG;IACjB,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,uBAAuB,GAGhC;IACF,GAAG,EAAE,yBAAyB;IAC9B,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QACrE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;QAE1C,4CAA4C;QAC5C,IAAI,MAAM,KAAK,OAAO,EAAE;YACtB,OAAM;SACP;QAED,IAAI,QAAQ,KAAK,UAAU,EAAE;YAC3B,MAAM,OAAO,CAAC;gBACZ,QAAQ,EAAE;oBACR,UAAU,EAAE,GAAG;oBACf,OAAO,EAAE,2BAA2B;iBACrC;aACF,CAAC,CAAA;SACH;aAAM;YACL,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;aAC5C,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
|
@@ -33,7 +33,7 @@
|
|
33
33
|
},
|
34
34
|
"elation": {
|
35
35
|
"readme": "---\ntitle: Elation\ndescription: Elation is a cloud-based health record system designed for healthcare providers, clinics, and medical practices.\n---\n# Elation\n\nElation is a cloud-based health record system designed for healthcare providers, clinics, and medical practices. It offers a range of features including patient scheduling, charting, e-prescribing, billing, and telemedicine. Overall, Elation is designed to streamline the workflow of medical practices, improve patient care, and increase efficiency.\n\n## Extension settings\n\nIn order to use this extension you will need to provide the extension with the following settings:\n\n- Base URL / endpoint URL of the API\n- Authorization URL\n- Client ID for OAuth2 Password authentication\n- Client Secret for OAuth2 Password authentication\n- API Username for OAuth2 Password authentication\n- API Password for OAuth2 Password authentication\n\n## Actions\n\nThe following actions are supported with Elation today:\n\n### Create Patient\n\nCreate a patient in the EHR. **Does not look for duplicates**\n\nRequired fields include:\n- First Name\n- Last Name\n- Date of Birth (YYYY-MM-DD)\n- Sex (Male, Female, Other, Unknown)\n- Primary Physician (the ID of the physician, which you will be able to retrieve using the [Find Physicians](https://docs.elationhealth.com/reference/find-physicians) API call, or by using the `Find Physician` action)\n- Caregiver Practice (the ID of the practice. Again, you can find using the same API call or action as listed above)\n\nThere are also a number of optional fields.\n\n**NOTE: We currently do not support nested objects, so the entire patient object supported by elation's API is not yet exposed**. Please reach out to us if you're looking to add a particular field or set of fields.\n\n### Get Patient\n\nUsing a patient identifier, get a patient object that has all datapoints listed above in `Create Patient`.\n\n**NOTE: Because we don't yet support nested objects and arrays in extensions, we expose specifically the `mobile_phone` field, which is a search for the patient's mobile phone specifically.**\n\n### Update Patient\n\nUpdate a patient using any fields available in create patient.\n\nOddly enough, the following fields are always required by Elation:\n- first_name\n- last_name\n- dob\n- sex\n- primary_physician\n- caregiver_practice\n\n\n\n### Create Appointment\n\nCreate a patient appointment in your EHR for a given practice and physician.\n\nCreating an appointment requires a few strings to be well-formulated:\n- `Scheduled date` must be a datetime string (ISO-8601). For example, January 1, 2023 at noon, Pacific Time (-8 hours) would be shown as such: `2023-01-01T12:00:00.000-08:00`\n- `Reason` must not be free text. This value comes from the following list of appointment types (`Follow-Up`, `Office Visit`, `Physical Exam`, etc.):\n\n- `Patient` is the patient ID.\n- `Physician` is the physician ID (see `Find Physician`)\n- `Practice` is the practice ID (again, see `Find Physician`)\n\nYou can also include a duration (default to 15 minutes, or whatever has been set in your EHR)\n\n### Get Appointment\n\nGet an appointment using an appointment ID. View all of the fields supported by the API.\n\n### Create Non-Visit Note\n\nThe non-visit note is a special kind of note that, as the name suggests, is not associated with a visit. These notes, in their simplest form, provide a chronological account of information about the patient.\n\n### Update Non-Visit Note\n\nUpdates the non-visit note identified by an ID. Only ID is required by default, however editing any of `text`, `author` or `category` requires `Bullet ID` and both `text` and `author` to be provided.\n\n### Delete Non-Visit Note\n\nDeletes the non-visit note identified by an ID.\n\n### Get Non-Visit Note\n\nGets the non-visit note identified by an ID. Fields are saved as data points:\n- `authorId`\n- `text`\n- `chartDate`\n- `documentDate`\n- `patientId`\n- `practiceId`\n- `tags` (comma-separated list)",
|
36
|
-
"changelog": "# Elation Changelog\n\n## 2023-
|
36
|
+
"changelog": "# Elation Changelog\n\n## September 4, 2023\n\n- rename `onCreatePatient` webhook to `patientCreatedOrUpdated`\n- filter non `saved` actions for this webhook\n\n## August 21, 2023\n\n- make non-visit note text a large input (`StringType.TEXT`)\n"
|
37
37
|
},
|
38
38
|
"formsort": {
|
39
39
|
"readme": "---\ntitle: Formsort\ndescription: Formsort is a fully-managed form-building platform.\n---\n# Formsort\n\nFormsort is a fully-managed form-building platform. Team can use the online studio (a specialized content management system for forms) to create form content, modify styles, and configure integrations.\n\nFormsort hosts your fully-branded forms, either on one of your subdomains or embedded in a page on your site. When responders submit answers, Formsort sends the answers to a destination of your liking directly. Formsort doesn't store the responder's answers. \n\n## Flow settings\n\nIn order for the flows to work well with Awell care flows, make sure your flow settings are set as follows:\n\n- There should be no redirects\n- \"Start each session as a new responder\" should be checked\n- \"Enable URL navigation\" should be disabled\n- \"Enable restart once flow completed\" should be disabled\n- \"Enable close once flow completed\" should be disabled\n\n## Custom Actions\n\n### Complete flow\n\nLet a stakeholder complete a Formsort flow from within Awell Hosted Pages.\n\n**Limitations:**\nCurrently data from the flow is not ingested into Awell yet and cannot be used in your care flow as data points.\n",
|
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"onCreatePatient.js","sourceRoot":"","sources":["../../../../extensions/elation/webhooks/onCreatePatient.ts"],"names":[],"mappings":";;;AAMA,MAAM,UAAU,GAAG;IACjB,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,eAAe,GAGxB;IACF,GAAG,EAAE,iBAAiB;IACtB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QACrE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAA;QAClC,IAAI,QAAQ,KAAK,UAAU,EAAE;YAC3B,MAAM,OAAO,CAAC;gBACZ,QAAQ,EAAE;oBACR,UAAU,EAAE,GAAG;oBACf,OAAO,EAAE,2BAA2B;iBACrC;aACF,CAAC,CAAA;SACH;aAAM;YACL,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;aAC5C,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
|