@awell-health/awell-extensions 2.1.140 → 2.1.141

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.
@@ -160,7 +160,7 @@
160
160
  "changelog": "# MessageBird changelog"
161
161
  },
162
162
  "metriport": {
163
- "readme": "---\ntitle: Metriport\ndescription: Metriport is Plaid for healthcare data.\n---\n# Metriport\n\nMetriport is Plaid for healthcare data. We help digital health companies access and manage patient health and medical data, through an open-source and universal API.\n\nThrough a single integration, our API enables modern health companies to get the comprehensive patient data they need from both HIEs and EHRs, as well as popular wearable devices.\n\nAs a developer-first interoperability solution, Metriport is powering the next wave of innovative companies, accelerating a revolution in digital health.\n\nTo learn more visit [https://www.metriport.com/](https://www.metriport.com/)\n# Extension settings\n\nIn order to set up this extension, **you will need to provide a Metriport API key**. You can obtain an API key via the Metriport dashboard by selecting the `Developers tab`. To learn more on how to get started with Metriport visit our [quick start docs](https://docs.metriport.com/medical-api/getting-started/quickstart) for our Medical API. Also, to better understand how our API keys work check out the [API Keys section](https://docs.metriport.com/home/api-info/api-keys) of our docs as well.\n\n# Custom Actions\n\n**GENERAL NOTE: Make sure to create Organizations and Facilities in Metriport before using this extension. A Patient must be associated with a Facility by providing the facilityId when stated in the actions.**\n\n## Create Patient\n\nCreates a Patient in Metriport for the specified Facility where the Patient is receiving care.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/patient/create-patient) for more info.\n\n## Update Patient\n\nUpdates the specified Patient.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/patient/update-patient) for more info.\n\n## Get Patient\n\nRetrieves the specified Patient.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/patient/get-patient) for more info.\n\n## Remove Patient\n\nRemoves a Patient at Metriport and at HIEs the Patient is linked to.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/patient/delete-patient) for more info.\n\n## List Documents\n\nLists all Documents that can be retrieved for a Patient.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/document/list-documents) for more info.\n\n**NOTE: It also returns the status of querying Document references across HIEs, indicating whether there is an asynchronous query in progress (status processing) or not (status completed). If the query is in progress, you will also receive the total number of Documents to be queried as well as the ones that have already been completed.**\n\n## Query Documents\n\nTriggers a Document query for the specified Patient across HIEs.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/document/start-document-query) for more info.\n\n**NOTE: When executed, this endpoint triggers an asynchronous Document query with HIEs and immediately returns the status of Document query, processing .**\n\n## Get Document Url\n\nGets a presigned URL for downloading the specified Document.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/document/get-document) for more info.\n\n**NOTE: This endpoint returns a URL which you can use to download the specified Document using the file name provided from the List Documents endpoint.**\n\n## More Info\n\nFor more information on how to integrate with Metriport please visit our [Medical API docs](https://docs.metriport.com/medical-api/getting-started/quickstart)\n",
163
+ "readme": "---\ntitle: Metriport\ndescription: Metriport is Plaid for healthcare data.\n---\n# Metriport\n\nMetriport is Plaid for healthcare data. We help digital health companies access and manage patient health and medical data, through an open-source and universal API.\n\nThrough a single integration, our API enables modern health companies to get the comprehensive patient data they need from both HIEs and EHRs, as well as popular wearable devices.\n\nAs a developer-first interoperability solution, Metriport is powering the next wave of innovative companies, accelerating a revolution in digital health.\n\nTo learn more visit [https://www.metriport.com/](https://www.metriport.com/)\n# Extension settings\n\nIn order to set up this extension, **you will need to provide a Metriport API key**. You can obtain an API key via the Metriport dashboard by selecting the `Developers tab`. To learn more on how to get started with Metriport visit our [quick start docs](https://docs.metriport.com/medical-api/getting-started/quickstart) for our Medical API. Also, to better understand how our API keys work check out the [API Keys section](https://docs.metriport.com/home/api-info/api-keys) of our docs as well.\n\n# Custom Actions\n\n**GENERAL NOTE: Make sure to create Organizations and Facilities in Metriport before using this extension. A Patient must be associated with a Facility by providing the facilityId when stated in the actions.**\n\n## Create Patient\n\nCreates a Patient in Metriport for the specified Facility where the Patient is receiving care.\n\nOptionally, providing a **Cohort** ID enrolls the Patient in real-time monitoring by adding them to that cohort. Note that enrolling a Patient in real-time monitoring has downstream consequences: once you start receiving updates about the Patient, you are expected to contribute data back to Metriport.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/patient/create-patient) for more info.\n\n## Update Patient\n\nUpdates the specified Patient.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/patient/update-patient) for more info.\n\n## Get Patient\n\nRetrieves the specified Patient.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/patient/get-patient) for more info.\n\n## Remove Patient\n\nRemoves a Patient at Metriport and at HIEs the Patient is linked to.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/patient/delete-patient) for more info.\n\n## List Documents\n\nLists all Documents that can be retrieved for a Patient.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/document/list-documents) for more info.\n\n**NOTE: It also returns the status of querying Document references across HIEs, indicating whether there is an asynchronous query in progress (status processing) or not (status completed). If the query is in progress, you will also receive the total number of Documents to be queried as well as the ones that have already been completed.**\n\n## Query Documents\n\nTriggers a Document query for the specified Patient across HIEs.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/document/start-document-query) for more info.\n\n**NOTE: When executed, this endpoint triggers an asynchronous Document query with HIEs and immediately returns the status of Document query, processing .**\n\n## Get Document Url\n\nGets a presigned URL for downloading the specified Document.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/document/get-document) for more info.\n\n**NOTE: This endpoint returns a URL which you can use to download the specified Document using the file name provided from the List Documents endpoint.**\n\n## More Info\n\nFor more information on how to integrate with Metriport please visit our [Medical API docs](https://docs.metriport.com/medical-api/getting-started/quickstart)\n",
164
164
  "changelog": "# Metriport changelog"
165
165
  },
166
166
  "nexuzhealth": {
@@ -36,6 +36,12 @@ export declare const actions: {
36
36
  description: string;
37
37
  type: import("@awell-health/extensions-core").FieldType.STRING;
38
38
  };
39
+ cohort: {
40
+ id: string;
41
+ label: string;
42
+ description: string;
43
+ type: import("@awell-health/extensions-core").FieldType.STRING;
44
+ };
39
45
  addressLine1: {
40
46
  id: string;
41
47
  label: string;
@@ -153,6 +159,12 @@ export declare const actions: {
153
159
  description: string;
154
160
  type: import("@awell-health/extensions-core").FieldType.STRING;
155
161
  };
162
+ cohort: {
163
+ id: string;
164
+ label: string;
165
+ description: string;
166
+ type: import("@awell-health/extensions-core").FieldType.STRING;
167
+ };
156
168
  addressLine1: {
157
169
  id: string;
158
170
  label: string;
@@ -14,9 +14,10 @@ exports.createPatient = {
14
14
  key: 'createPatient',
15
15
  category: extensions_core_1.Category.EHR_INTEGRATIONS,
16
16
  title: 'Create Patient',
17
- description: 'Creates a Patient in Metriport for the specified Facility where the Patient is receiving care.',
17
+ description: 'Creates a Patient in Metriport for the specified Facility where the Patient is receiving care. Passing in a cohort ID will register that patient for real-time monitoring.',
18
18
  fields: fields_1.createFields,
19
19
  previewable: true,
20
+ supports_automated_retries: true,
20
21
  dataPoints: dataPoints_1.patientIdDataPoint,
21
22
  onActivityCreated: async (payload, onComplete, onError) => {
22
23
  try {
@@ -56,6 +57,9 @@ const convertToMetriportPatient = (patient) => {
56
57
  phone: patient.phone,
57
58
  email: patient.email,
58
59
  },
60
+ cohorts: patient.cohort !== undefined && patient.cohort.length > 0
61
+ ? [patient.cohort]
62
+ : [],
59
63
  };
60
64
  if (patient.driversLicenseState !== undefined &&
61
65
  patient.driversLicenseValue === undefined) {
@@ -1 +1 @@
1
- {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/patient/create.ts"],"names":[],"mappings":";;;AAAA,gDAG2B;AAC3B,uEAAkD;AAElD,mEAAwD;AAExD,yCAAiD;AACjD,4DAA8D;AAC9D,qCAAuC;AACvC,8DAAuD;AACvD,6CAAsE;AACtE,6CAAiD;AAEpC,QAAA,aAAa,GAItB;IACF,GAAG,EAAE,eAAe;IACpB,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK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6BA2DrC"}
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/patient/create.ts"],"names":[],"mappings":";;;AAAA,gDAG2B;AAC3B,uEAAkD;AAElD,mEAAwD;AAExD,yCAAiD;AACjD,4DAA8D;AAC9D,qCAAuC;AACvC,8DAAuD;AACvD,6CAAsE;AACtE,6CAAiD;AAEpC,QAAA,aAAa,GAItB;IACF,GAAG,EAAE,eAAe;IACpB,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,gBAAgB;IACvB,WAAW,EACT,4KAA4K;IAC9K,MAAM,EAAE,qBAAY;IACpB,WAAW,EAAE,IAAI;IACjB,0BAA0B,EAAE,IAAI;IAChC,UAAU,EAAE,+BAAkB;IAC9B,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAiB,EAAE;QACvE,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,gCAAmB,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;YAEzD,MAAM,UAAU,GAAG,sBAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;YAE5D,MAAM,gBAAgB,GAAG,IAAA,iCAAyB,EAAC,OAAO,CAAC,CAAA;YAE3D,MAAM,GAAG,GAAG,IAAA,2BAAkB,EAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;YAEhD,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,GAAG,CAAC,aAAa,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAA;YAEpE,MAAM,UAAU,CAAC;gBACf,WAAW,EAAE;oBACX,SAAS,EAAE,MAAM,CAAC,EAAE,CAAC;iBACtB;aACF,CAAC,CAAA;QACJ,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,MAAM,IAAA,iCAAkB,EAAC,GAAG,EAAE,OAAO,CAAC,CAAA;QACxC,CAAC;IACH,CAAC;CACF,CAAA;A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AC,MAAM,GAAG,CAAC,EACtC,CAAC;QACD,MAAM,KAAK,GAAG,IAAA,kCAAO,EAAC,OAAO,CAAC,mBAAmB,EAAE;YACjD,MAAM,EAAE,OAAO,CAAC,mBAAmB;SACpC,CAAC,CAAA;QAEF,IAAI,KAAK,EAAE,CAAC;YACV,CAAC;YAAA,CAAC,MAAA,gBAAgB,CAAC,mBAAmB,mCAAI,EAAE,CAAC,CAAC,IAAI,CAAC;gBACjD,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,OAAO,CAAC,mBAAmB;gBAClC,KAAK,EAAE,uBAAa,CAAC,KAAK,CAAC,OAAO,CAAC,mBAAmB,CAAC;aACxD,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;IAED,OAAO,gBAAgB,CAAA;AACzB,CAAC,CAAA;AA/DY,QAAA,yBAAyB,6BA+DrC"}
@@ -12,6 +12,12 @@ export declare const createFields: {
12
12
  description: string;
13
13
  type: FieldType.STRING;
14
14
  };
15
+ cohort: {
16
+ id: string;
17
+ label: string;
18
+ description: string;
19
+ type: FieldType.STRING;
20
+ };
15
21
  addressLine1: {
16
22
  id: string;
17
23
  label: string;
@@ -114,6 +120,12 @@ export declare const updateFields: {
114
120
  description: string;
115
121
  type: FieldType.STRING;
116
122
  };
123
+ cohort: {
124
+ id: string;
125
+ label: string;
126
+ description: string;
127
+ type: FieldType.STRING;
128
+ };
117
129
  addressLine1: {
118
130
  id: string;
119
131
  label: string;
@@ -64,6 +64,12 @@ exports.createFields = {
64
64
  description: `The Patient's email address`,
65
65
  type: extensions_core_1.FieldType.STRING,
66
66
  },
67
+ cohort: {
68
+ id: 'cohort',
69
+ label: 'Cohort',
70
+ description: `The ID (UUID) of the cohort to enroll the Patient in for real-time monitoring`,
71
+ type: extensions_core_1.FieldType.STRING,
72
+ },
67
73
  };
68
74
  exports.updateFields = {
69
75
  id: {
@@ -1 +1 @@
1
- {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/patient/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AAO;QACd,WAAW,EAAE,2DAA2D;QACxE,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,OAAO;QACd,WAAW,EAAE,6BAA6B;QAC1C,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;CAC8B,CAAA;AAEpB,QAAA,YAAY,GAAG;IAC1B,EAAE,EAAE;QACF,EAAE,EAAE,IAAI;QACR,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,iCAAiC;QAC9C,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,GAAG,oBAAY;CACgB,CAAA;AAEpB,QAAA,SAAS,GAAG;IACvB,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,YAAY,GAAG;IAC1B,GAAG,iBAAS;IACZ,UAAU,EAAE;QACV,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CACF,CAAA"}
1
+ {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/patient/fields.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AACrE,gDAA6C;AAEhC,QAAA,YAAY,GAAG;IAC1B,UAAU,EAAE;QACV,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,iDAAiD;QAC9D,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,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AS,CAAC,MAAM;KACvB;CAC8B,CAAA;AAEpB,QAAA,YAAY,GAAG;IAC1B,EAAE,EAAE;QACF,EAAE,EAAE,IAAI;QACR,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,iCAAiC;QAC9C,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,GAAG,oBAAY;CACgB,CAAA;AAEpB,QAAA,SAAS,GAAG;IACvB,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,YAAY,GAAG;IAC1B,GAAG,iBAAS;IACZ,UAAU,EAAE;QACV,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CACF,CAAA"}
@@ -66,6 +66,7 @@ export declare const patientCreateSchema: z.ZodObject<{
66
66
  driversLicenseValue: z.ZodOptional<z.ZodString>;
67
67
  phone: z.ZodOptional<z.ZodString>;
68
68
  email: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
69
+ cohort: z.ZodOptional<z.ZodString>;
69
70
  }, "strip", z.ZodTypeAny, {
70
71
  firstName: string;
71
72
  lastName: string;
@@ -81,6 +82,7 @@ export declare const patientCreateSchema: z.ZodObject<{
81
82
  addressLine2?: string | undefined;
82
83
  driversLicenseValue?: string | undefined;
83
84
  driversLicenseState?: string | undefined;
85
+ cohort?: string | undefined;
84
86
  }, {
85
87
  firstName: string;
86
88
  lastName: string;
@@ -96,6 +98,7 @@ export declare const patientCreateSchema: z.ZodObject<{
96
98
  addressLine2?: string | undefined;
97
99
  driversLicenseValue?: string | undefined;
98
100
  driversLicenseState?: string | undefined;
101
+ cohort?: string | undefined;
99
102
  }>;
100
103
  export type PatientCreate = z.infer<typeof patientCreateSchema>;
101
104
  export declare const patientUpdateSchema: z.ZodObject<{
@@ -167,6 +170,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
167
170
  driversLicenseValue: z.ZodOptional<z.ZodString>;
168
171
  phone: z.ZodOptional<z.ZodString>;
169
172
  email: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
173
+ cohort: z.ZodOptional<z.ZodString>;
170
174
  }, "strip", z.ZodTypeAny, {
171
175
  firstName: string;
172
176
  lastName: string;
@@ -183,6 +187,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
183
187
  addressLine2?: string | undefined;
184
188
  driversLicenseValue?: string | undefined;
185
189
  driversLicenseState?: string | undefined;
190
+ cohort?: string | undefined;
186
191
  }, {
187
192
  firstName: string;
188
193
  lastName: string;
@@ -199,4 +204,5 @@ export declare const patientUpdateSchema: z.ZodObject<{
199
204
  addressLine2?: string | undefined;
200
205
  driversLicenseValue?: string | undefined;
201
206
  driversLicenseState?: string | undefined;
207
+ cohort?: string | undefined;
202
208
  }>;
@@ -52,6 +52,7 @@ exports.patientCreateSchema = z.object({
52
52
  driversLicenseValue: z.string().optional(),
53
53
  phone: z.string().optional(),
54
54
  email: emailValidation_1.optionalEmailSchema,
55
+ cohort: z.string().optional(),
55
56
  });
56
57
  exports.patientUpdateSchema = z
57
58
  .object({
@@ -1 +1 @@
1
- {"version":3,"file":"validation.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/patient/validation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAwB;AACxB,2EAA2E;AAC3E,gDAI2B;AAEd,QAAA,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,QAAQ,EAAE,CAAC,CAAC,MAAM,EA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AC5B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;IAC1B,aAAa,EAAE,6BAAmB;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,KAAK,EAAE,iCAAuB;IAC9B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACtB,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IACxC,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,KAAK,EAAE,qCAAmB;IAC1B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAA;AAIW,QAAA,mBAAmB,GAAG,CAAC;KACjC,MAAM,CAAC;IACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACtB,CAAC;KACD,KAAK,CAAC,2BAAmB,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/awell-extensions",
3
- "version": "2.1.140",
3
+ "version": "2.1.141",
4
4
  "packageManager": "yarn@4.5.3",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": {