@awell-health/awell-extensions 1.0.185 → 1.0.187

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ describe('Athena - Cancel appointment', () => {
18
18
  patientId: '1',
19
19
  practiceId: '1',
20
20
  note: 'Hello world',
21
- startDate: '2024-01-01',
21
+ onsetDate: '2024-01-01',
22
22
  },
23
23
  settings,
24
24
  });
@@ -22,11 +22,11 @@ export declare const fields: {
22
22
  type: FieldType.TEXT;
23
23
  required: true;
24
24
  };
25
- startDate: {
25
+ onsetDate: {
26
26
  id: string;
27
27
  label: string;
28
28
  description: string;
29
- type: FieldType.TEXT;
29
+ type: FieldType.DATE;
30
30
  required: true;
31
31
  };
32
32
  };
@@ -34,15 +34,15 @@ export declare const FieldsValidationSchema: z.ZodObject<{
34
34
  patientId: z.ZodString;
35
35
  practiceId: z.ZodString;
36
36
  note: z.ZodString;
37
- startDate: z.ZodEffects<z.ZodDate, string, Date>;
37
+ onsetDate: z.ZodEffects<z.ZodDate, string, Date>;
38
38
  }, "strip", z.ZodTypeAny, {
39
39
  note: string;
40
40
  patientId: string;
41
41
  practiceId: string;
42
- startDate: string;
42
+ onsetDate: string;
43
43
  }, {
44
44
  note: string;
45
45
  patientId: string;
46
46
  practiceId: string;
47
- startDate: Date;
47
+ onsetDate: Date;
48
48
  }>;
@@ -28,11 +28,11 @@ exports.fields = {
28
28
  type: extensions_core_1.FieldType.TEXT,
29
29
  required: true,
30
30
  },
31
- startDate: {
32
- id: 'startDate',
33
- label: 'Start date',
31
+ onsetDate: {
32
+ id: 'onsetDate',
33
+ label: 'Onset date',
34
34
  description: 'The onset date to be updated for this problem',
35
- type: extensions_core_1.FieldType.TEXT,
35
+ type: extensions_core_1.FieldType.DATE,
36
36
  required: true,
37
37
  },
38
38
  };
@@ -40,6 +40,6 @@ exports.FieldsValidationSchema = zod_1.default.object({
40
40
  patientId: zod_1.default.string(),
41
41
  practiceId: zod_1.default.string(),
42
42
  note: zod_1.default.string(),
43
- startDate: extensions_core_1.DateOnlySchema,
43
+ onsetDate: extensions_core_1.DateOnlySchema,
44
44
  });
45
45
  //# sourceMappingURL=fields.js.map
@@ -177,11 +177,11 @@ declare const actions: {
177
177
  type: import("@awell-health/extensions-core").FieldType.TEXT;
178
178
  required: true;
179
179
  };
180
- startDate: {
180
+ onsetDate: {
181
181
  id: string;
182
182
  label: string;
183
183
  description: string;
184
- type: import("@awell-health/extensions-core").FieldType.TEXT;
184
+ type: import("@awell-health/extensions-core").FieldType.DATE;
185
185
  required: true;
186
186
  };
187
187
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/awell-extensions",
3
- "version": "1.0.185",
3
+ "version": "1.0.187",
4
4
  "packageManager": "yarn@3.4.1",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": {