@awell-health/ui-library 0.1.62 → 0.1.64

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/index.css CHANGED
@@ -10013,6 +10013,10 @@ html {
10013
10013
  margin: 0 auto;
10014
10014
  }
10015
10015
 
10016
+ .awell__collectMedication_label {
10017
+ margin-bottom: var(--awell-spacing-4);
10018
+ }
10019
+
10016
10020
  .awell__collectMedication_groupMedsListContainer {
10017
10021
  font-size: var(--awell-font-size-sm);
10018
10022
  display: flex;
package/dist/index.js CHANGED
@@ -16165,6 +16165,7 @@ Check the top-level render call using <` + t + ">.");
16165
16165
  DataPointSourceType["ApiCall"] = "API_CALL";
16166
16166
  DataPointSourceType["ApiCallStatus"] = "API_CALL_STATUS";
16167
16167
  DataPointSourceType["Calculation"] = "CALCULATION";
16168
+ DataPointSourceType["DataPoint"] = "DATA_POINT";
16168
16169
  DataPointSourceType["ExtensionAction"] = "EXTENSION_ACTION";
16169
16170
  DataPointSourceType["ExtensionWebhook"] = "EXTENSION_WEBHOOK";
16170
16171
  DataPointSourceType["Form"] = "FORM";
@@ -16178,6 +16179,7 @@ Check the top-level render call using <` + t + ">.");
16178
16179
  (function (DataPointValueType) {
16179
16180
  DataPointValueType["Boolean"] = "BOOLEAN";
16180
16181
  DataPointValueType["Date"] = "DATE";
16182
+ DataPointValueType["Json"] = "JSON";
16181
16183
  DataPointValueType["Number"] = "NUMBER";
16182
16184
  DataPointValueType["NumbersArray"] = "NUMBERS_ARRAY";
16183
16185
  DataPointValueType["String"] = "STRING";
@@ -51797,10 +51799,10 @@ Check the top-level render call using <` + t + ">.");
51797
51799
  };
51798
51800
  CloudinarySingleFileUpload.displayName = 'CloudinarySingleFileUpload';
51799
51801
 
51800
- var classes = {"container":"awell__collectMedication_container","groupMedsListContainer":"awell__collectMedication_groupMedsListContainer","singleMedsListContainer":"awell__collectMedication_singleMedsListContainer","addMedsButton":"awell__collectMedication_addMedsButton","deleteMedsButton":"awell__collectMedication_deleteMedsButton","icon":"awell__collectMedication_icon","button_wrapper":"awell__collectMedication_button_wrapper"};
51802
+ var classes = {"container":"awell__collectMedication_container","label":"awell__collectMedication_label","groupMedsListContainer":"awell__collectMedication_groupMedsListContainer","singleMedsListContainer":"awell__collectMedication_singleMedsListContainer","addMedsButton":"awell__collectMedication_addMedsButton","deleteMedsButton":"awell__collectMedication_deleteMedsButton","icon":"awell__collectMedication_icon","button_wrapper":"awell__collectMedication_button_wrapper"};
51801
51803
 
51802
51804
  var CollectMedication = function (_a) {
51803
- var text = _a.text,onSubmit = _a.onSubmit;
51805
+ var label = _a.label,text = _a.text,onSubmit = _a.onSubmit;
51804
51806
  var _b = React.useState([]),medications = _b[0],setMedications = _b[1];
51805
51807
  var _c = useTheme(),updateLayoutMode = _c.updateLayoutMode,resetLayoutMode = _c.resetLayoutMode;
51806
51808
  React.useEffect(function () {
@@ -51829,7 +51831,7 @@ Check the top-level render call using <` + t + ">.");
51829
51831
  var removeMedication = function (index) {
51830
51832
  setMedications(medications.filter(function (_, i) {return i !== index;}));
51831
51833
  };
51832
- return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, { children: [jsxRuntime.exports.jsxs("main", __assign({ id: "ahp_main_content_with_scroll_hint", className: layoutClasses.main_content }, { children: [jsxRuntime.exports.jsx("div", __assign({ className: "".concat(classes.container, " ").concat(classes.groupMedsListContainer) }, { children: medications.map(function (medication, index) {return jsxRuntime.exports.jsxs("div", __assign({ className: classes.singleMedsListContainer }, { children: [jsxRuntime.exports.jsx(InputField, { id: "name", label: text.medication_name, type: "text", value: medication.name, onChange: function (e) {
51834
+ return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, { children: [jsxRuntime.exports.jsxs("main", __assign({ id: "ahp_main_content_with_scroll_hint", className: layoutClasses.main_content }, { children: [!lodash.exports.isEmpty(label) && jsxRuntime.exports.jsx("div", __assign({ className: "".concat(classes.container, " ").concat(classes.label) }, { children: jsxRuntime.exports.jsx(QuestionLabel, { label: label !== null && label !== void 0 ? label : '' }) })), jsxRuntime.exports.jsx("div", __assign({ className: "".concat(classes.container, " ").concat(classes.groupMedsListContainer) }, { children: medications.map(function (medication, index) {return jsxRuntime.exports.jsxs("div", __assign({ className: classes.singleMedsListContainer }, { children: [jsxRuntime.exports.jsx(InputField, { id: "name", label: text.medication_name, type: "text", value: medication.name, onChange: function (e) {
51833
51835
  return updateMedication(index, 'name', e.target.value);
51834
51836
  }, placeholder: text.medication_name }), jsxRuntime.exports.jsx(InputField, { id: "dose", label: text.medication_dose, type: "text", value: medication.dose, onChange: function (e) {
51835
51837
  return updateMedication(index, 'dose', e.target.value);
@@ -5,6 +5,7 @@ export declare type Medication = {
5
5
  };
6
6
  export interface CollectMedicationProps {
7
7
  onSubmit: (data: Medication[]) => void;
8
+ label?: string;
8
9
  text: {
9
10
  medication_name: string;
10
11
  medication_dose: string;
@@ -19,6 +19,12 @@ export declare type Scalars = {
19
19
  Float: number;
20
20
  SafeDate: any;
21
21
  };
22
+ export declare type ActionComponent = {
23
+ __typename?: 'ActionComponent';
24
+ definition_id?: Maybe<Scalars['String']>;
25
+ release_id?: Maybe<Scalars['String']>;
26
+ title?: Maybe<Scalars['String']>;
27
+ };
22
28
  export declare type ActionPayload = Payload & {
23
29
  __typename?: 'ActionPayload';
24
30
  calculationId: Scalars['String'];
@@ -36,7 +42,7 @@ export declare enum ActionType {
36
42
  Plugin = "PLUGIN",
37
43
  PushToEmr = "PUSH_TO_EMR"
38
44
  }
39
- export declare type ActivitiesPayload = Payload & {
45
+ export declare type ActivitiesPayload = PaginationAndSortingPayload & {
40
46
  __typename?: 'ActivitiesPayload';
41
47
  activities: Array<Activity>;
42
48
  code: Scalars['String'];
@@ -48,6 +54,7 @@ export declare type ActivitiesPayload = Payload & {
48
54
  export declare type Activity = {
49
55
  __typename?: 'Activity';
50
56
  action: ActivityAction;
57
+ action_component?: Maybe<ActionComponent>;
51
58
  container_name?: Maybe<Scalars['String']>;
52
59
  context?: Maybe<PathwayContext>;
53
60
  date: Scalars['String'];
@@ -455,6 +462,7 @@ export declare enum DataPointSourceType {
455
462
  ApiCall = "API_CALL",
456
463
  ApiCallStatus = "API_CALL_STATUS",
457
464
  Calculation = "CALCULATION",
465
+ DataPoint = "DATA_POINT",
458
466
  ExtensionAction = "EXTENSION_ACTION",
459
467
  ExtensionWebhook = "EXTENSION_WEBHOOK",
460
468
  Form = "FORM",
@@ -467,6 +475,7 @@ export declare enum DataPointSourceType {
467
475
  export declare enum DataPointValueType {
468
476
  Boolean = "BOOLEAN",
469
477
  Date = "DATE",
478
+ Json = "JSON",
470
479
  Number = "NUMBER",
471
480
  NumbersArray = "NUMBERS_ARRAY",
472
481
  String = "STRING",
@@ -741,6 +750,7 @@ export declare type HostedSessionPayload = Payload & {
741
750
  __typename?: 'HostedSessionPayload';
742
751
  branding?: Maybe<BrandingSettings>;
743
752
  code: Scalars['String'];
753
+ metadata?: Maybe<SessionMetadata>;
744
754
  session: HostedSession;
745
755
  success: Scalars['Boolean'];
746
756
  };
@@ -994,7 +1004,7 @@ export declare type OrchestrationFact = {
994
1004
  level: Scalars['String'];
995
1005
  pathway_id: Scalars['String'];
996
1006
  };
997
- export declare type OrchestrationFactsPayload = Payload & {
1007
+ export declare type OrchestrationFactsPayload = PaginationAndSortingPayload & {
998
1008
  __typename?: 'OrchestrationFactsPayload';
999
1009
  code: Scalars['String'];
1000
1010
  facts: Array<OrchestrationFact>;
@@ -1008,22 +1018,29 @@ export declare type OrchestrationFactsPromptPayload = Payload & {
1008
1018
  response: Scalars['String'];
1009
1019
  success: Scalars['Boolean'];
1010
1020
  };
1021
+ export declare type PaginationAndSortingPayload = {
1022
+ code: Scalars['String'];
1023
+ pagination?: Maybe<PaginationOutput>;
1024
+ sorting?: Maybe<SortingOutput>;
1025
+ success: Scalars['Boolean'];
1026
+ };
1011
1027
  export declare type PaginationOutput = {
1012
1028
  __typename?: 'PaginationOutput';
1013
- count?: Maybe<Scalars['Float']>;
1014
- offset?: Maybe<Scalars['Float']>;
1015
- total_count?: Maybe<Scalars['Float']>;
1029
+ count?: Maybe<Scalars['Int']>;
1030
+ offset?: Maybe<Scalars['Int']>;
1031
+ total_count?: Maybe<Scalars['Int']>;
1016
1032
  };
1017
1033
  export declare type PaginationParams = {
1018
- count: Scalars['Float'];
1019
- offset: Scalars['Float'];
1034
+ count: Scalars['Int'];
1035
+ offset: Scalars['Int'];
1020
1036
  };
1021
1037
  export declare type Pathway = {
1022
1038
  __typename?: 'Pathway';
1023
- activities: Array<Activity>;
1039
+ activities?: Maybe<Array<Activity>>;
1024
1040
  complete_date?: Maybe<Scalars['SafeDate']>;
1025
1041
  dashboards?: Maybe<PathwayDashboard>;
1026
1042
  id: Scalars['ID'];
1043
+ latestActivities: Array<Activity>;
1027
1044
  pathway_definition_id: Scalars['String'];
1028
1045
  patient: User;
1029
1046
  patient_id: Scalars['String'];
@@ -1096,7 +1113,7 @@ export declare type PathwaySummary = {
1096
1113
  title: Scalars['String'];
1097
1114
  version?: Maybe<Scalars['Float']>;
1098
1115
  };
1099
- export declare type PathwaysPayload = Payload & {
1116
+ export declare type PathwaysPayload = PaginationAndSortingPayload & {
1100
1117
  __typename?: 'PathwaysPayload';
1101
1118
  code: Scalars['String'];
1102
1119
  pagination?: Maybe<PaginationOutput>;
@@ -1166,12 +1183,12 @@ export declare type PatientProfileInput = {
1166
1183
  preferred_language?: InputMaybe<Scalars['String']>;
1167
1184
  sex?: InputMaybe<Sex>;
1168
1185
  };
1169
- export declare type PatientsPayload = Payload & {
1186
+ export declare type PatientsPayload = PaginationAndSortingPayload & {
1170
1187
  __typename?: 'PatientsPayload';
1171
1188
  code: Scalars['String'];
1172
- pagination: PaginationOutput;
1189
+ pagination?: Maybe<PaginationOutput>;
1173
1190
  patients: Array<User>;
1174
- sorting: SortingOutput;
1191
+ sorting?: Maybe<SortingOutput>;
1175
1192
  success: Scalars['Boolean'];
1176
1193
  };
1177
1194
  export declare type Payload = {
@@ -1218,7 +1235,7 @@ export declare type PublishedPathwayDefinition = {
1218
1235
  track_definitions?: Maybe<Array<Track>>;
1219
1236
  version?: Maybe<Scalars['Float']>;
1220
1237
  };
1221
- export declare type PublishedPathwayDefinitionsPayload = Payload & {
1238
+ export declare type PublishedPathwayDefinitionsPayload = PaginationAndSortingPayload & {
1222
1239
  __typename?: 'PublishedPathwayDefinitionsPayload';
1223
1240
  code: Scalars['String'];
1224
1241
  pagination?: Maybe<PaginationOutput>;
@@ -1350,13 +1367,17 @@ export declare type QueryMessageArgs = {
1350
1367
  id: Scalars['String'];
1351
1368
  };
1352
1369
  export declare type QueryMyActivitiesArgs = {
1370
+ pagination?: InputMaybe<PaginationParams>;
1353
1371
  pathway_id: Scalars['String'];
1372
+ sorting?: InputMaybe<SortingParams>;
1354
1373
  };
1355
1374
  export declare type QueryPathwayArgs = {
1356
1375
  id: Scalars['String'];
1357
1376
  };
1358
1377
  export declare type QueryPathwayActivitiesArgs = {
1378
+ pagination?: InputMaybe<PaginationParams>;
1359
1379
  pathway_id: Scalars['String'];
1380
+ sorting?: InputMaybe<SortingParams>;
1360
1381
  };
1361
1382
  export declare type QueryPathwayDataPointDefinitionsArgs = {
1362
1383
  filters?: InputMaybe<FilterPathwayDataPointDefinitionsParams>;
@@ -1576,6 +1597,11 @@ export declare type SearchPatientsPayload = Payload & {
1576
1597
  patients: Array<User>;
1577
1598
  success: Scalars['Boolean'];
1578
1599
  };
1600
+ export declare type SessionMetadata = {
1601
+ __typename?: 'SessionMetadata';
1602
+ pathway_definition_id?: Maybe<Scalars['String']>;
1603
+ tenant_id?: Maybe<Scalars['String']>;
1604
+ };
1579
1605
  export declare enum Sex {
1580
1606
  Female = "FEMALE",
1581
1607
  Male = "MALE",
@@ -1669,6 +1695,7 @@ export declare type StartHostedPathwaySessionInput = {
1669
1695
  patient_id?: InputMaybe<Scalars['String']>;
1670
1696
  patient_identifier?: InputMaybe<IdentifierInput>;
1671
1697
  success_url?: InputMaybe<Scalars['String']>;
1698
+ ttl?: InputMaybe<Scalars['Float']>;
1672
1699
  };
1673
1700
  export declare type StartHostedPathwaySessionPayload = Payload & {
1674
1701
  __typename?: 'StartHostedPathwaySessionPayload';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/ui-library",
3
- "version": "0.1.62",
3
+ "version": "0.1.64",
4
4
  "private": false,
5
5
  "description": "UI components to integrate with Awell Health",
6
6
  "repository": {