@awell-health/awell-extensions 2.0.72 → 2.0.73
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/extensions/elation/webhooks/appointmentCreatedOrUpdated.d.ts +4 -0
- package/dist/extensions/elation/webhooks/appointmentCreatedOrUpdated.js +8 -1
- package/dist/extensions/elation/webhooks/appointmentCreatedOrUpdated.js.map +1 -1
- package/dist/extensions/elation/webhooks/index.d.ts +1 -1
- package/dist/extensions/elation/webhooks/patientCreatedOrUpdated.d.ts +4 -0
- package/dist/extensions/elation/webhooks/patientCreatedOrUpdated.js +8 -1
- package/dist/extensions/elation/webhooks/patientCreatedOrUpdated.js.map +1 -1
- package/package.json +1 -1
@@ -5,6 +5,10 @@ declare const dataPoints: {
|
|
5
5
|
key: string;
|
6
6
|
valueType: "number";
|
7
7
|
};
|
8
|
+
appointment: {
|
9
|
+
key: string;
|
10
|
+
valueType: "json";
|
11
|
+
};
|
8
12
|
};
|
9
13
|
export declare const appointmentCreatedOrUpdated: Webhook<keyof typeof dataPoints, SubscriptionEvent>;
|
10
14
|
export type OnCreateOrUpdateAppointment = typeof appointmentCreatedOrUpdated;
|
@@ -8,6 +8,10 @@ const dataPoints = {
|
|
8
8
|
key: 'appointmentId',
|
9
9
|
valueType: 'number',
|
10
10
|
},
|
11
|
+
appointment: {
|
12
|
+
key: 'appointment',
|
13
|
+
valueType: 'json',
|
14
|
+
},
|
11
15
|
};
|
12
16
|
exports.appointmentCreatedOrUpdated = {
|
13
17
|
key: 'appointmentCreatedOrUpdated',
|
@@ -28,7 +32,10 @@ exports.appointmentCreatedOrUpdated = {
|
|
28
32
|
}
|
29
33
|
else {
|
30
34
|
await onSuccess({
|
31
|
-
data_points: {
|
35
|
+
data_points: {
|
36
|
+
appointmentId: String(appointmentId),
|
37
|
+
appointment: JSON.stringify(resource),
|
38
|
+
},
|
32
39
|
patient_identifier: {
|
33
40
|
system: constants_1.ELATION_SYSTEM,
|
34
41
|
value: String(patientId),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"appointmentCreatedOrUpdated.js","sourceRoot":"","sources":["../../../../extensions/elation/webhooks/appointmentCreatedOrUpdated.ts"],"names":[],"mappings":";;;AAIA,4CAA6C;AAE7C,iEAA0E;AAE1E,MAAM,UAAU,GAAG;IACjB,aAAa,EAAE;QACb,GAAG,EAAE,eAAe;QACpB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,2BAA2B,GAGpC;IACF,GAAG,EAAE,6BAA6B;IAClC,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QACrE,MAAM,EACJ,MAAM,EACN,QAAQ,EACR,IAAI,EAAE,EAAE,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,GAChD,GAAG,wCAAyB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;QAE5C,6CAA6C;QAC7C,IAAI,MAAM,KAAK,OAAO,EAAE;YACtB,OAAM;SACP;QAED,IAAI,QAAQ,KAAK,cAAc,EAAE;YAC/B,MAAM,OAAO,CAAC;gBACZ,QAAQ,EAAE;oBACR,UAAU,EAAE,GAAG;oBACf,OAAO,EAAE,gCAAgC;iBAC1C;aACF,CAAC,CAAA;SACH;aAAM;YACL,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE,
|
1
|
+
{"version":3,"file":"appointmentCreatedOrUpdated.js","sourceRoot":"","sources":["../../../../extensions/elation/webhooks/appointmentCreatedOrUpdated.ts"],"names":[],"mappings":";;;AAIA,4CAA6C;AAE7C,iEAA0E;AAE1E,MAAM,UAAU,GAAG;IACjB,aAAa,EAAE;QACb,GAAG,EAAE,eAAe;QACpB,SAAS,EAAE,QAAQ;KACpB;IACD,WAAW,EAAE;QACX,GAAG,EAAE,aAAa;QAClB,SAAS,EAAE,MAAM;KAClB;CAC4C,CAAA;AAElC,QAAA,2BAA2B,GAGpC;IACF,GAAG,EAAE,6BAA6B;IAClC,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QACrE,MAAM,EACJ,MAAM,EACN,QAAQ,EACR,IAAI,EAAE,EAAE,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,GAChD,GAAG,wCAAyB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;QAE5C,6CAA6C;QAC7C,IAAI,MAAM,KAAK,OAAO,EAAE;YACtB,OAAM;SACP;QAED,IAAI,QAAQ,KAAK,cAAc,EAAE;YAC/B,MAAM,OAAO,CAAC;gBACZ,QAAQ,EAAE;oBACR,UAAU,EAAE,GAAG;oBACf,OAAO,EAAE,gCAAgC;iBAC1C;aACF,CAAC,CAAA;SACH;aAAM;YACL,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC;oBACpC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;iBACtC;gBACD,kBAAkB,EAAE;oBAClB,MAAM,EAAE,0BAAc;oBACtB,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC;iBACzB;aACF,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
export declare const webhooks: (import("@awell-health/extensions-core").Webhook<"patientId", import("../types/subscription").SubscriptionEvent, Record<string, import("@awell-health/extensions-core").Setting>> | import("@awell-health/extensions-core").Webhook<"appointmentId", import("../types/subscription").SubscriptionEvent, Record<string, import("@awell-health/extensions-core").Setting>>)[];
|
1
|
+
export declare const webhooks: (import("@awell-health/extensions-core").Webhook<"patientId" | "patient", import("../types/subscription").SubscriptionEvent, Record<string, import("@awell-health/extensions-core").Setting>> | import("@awell-health/extensions-core").Webhook<"appointmentId" | "appointment", import("../types/subscription").SubscriptionEvent, Record<string, import("@awell-health/extensions-core").Setting>>)[];
|
@@ -5,6 +5,10 @@ declare const dataPoints: {
|
|
5
5
|
key: string;
|
6
6
|
valueType: "number";
|
7
7
|
};
|
8
|
+
patient: {
|
9
|
+
key: string;
|
10
|
+
valueType: "json";
|
11
|
+
};
|
8
12
|
};
|
9
13
|
export declare const patientCreatedOrUpdated: Webhook<keyof typeof dataPoints, SubscriptionEvent>;
|
10
14
|
export type OnCreatePatient = typeof patientCreatedOrUpdated;
|
@@ -6,6 +6,10 @@ const dataPoints = {
|
|
6
6
|
key: 'patientId',
|
7
7
|
valueType: 'number',
|
8
8
|
},
|
9
|
+
patient: {
|
10
|
+
key: 'patient',
|
11
|
+
valueType: 'json',
|
12
|
+
},
|
9
13
|
};
|
10
14
|
exports.patientCreatedOrUpdated = {
|
11
15
|
key: 'patientCreatedOrUpdated',
|
@@ -26,7 +30,10 @@ exports.patientCreatedOrUpdated = {
|
|
26
30
|
}
|
27
31
|
else {
|
28
32
|
await onSuccess({
|
29
|
-
data_points: {
|
33
|
+
data_points: {
|
34
|
+
patientId: String(data.id),
|
35
|
+
patient: JSON.stringify(resource),
|
36
|
+
},
|
30
37
|
// Review the system used for elation identifiers
|
31
38
|
patient_identifier: {
|
32
39
|
system: 'https://www.elationhealth.com/',
|
@@ -1 +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,
|
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;IACD,OAAO,EAAE;QACP,GAAG,EAAE,SAAS;QACd,SAAS,EAAE,MAAM;KAClB;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;oBACX,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC1B,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;iBAClC;gBACD,iDAAiD;gBACjD,kBAAkB,EAAE;oBAClB,MAAM,EAAE,gCAAgC;oBACxC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;iBACvB;aACF,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
|