@photonhealth/elements 0.23.2 → 0.23.3

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.mjs CHANGED
@@ -20074,6 +20074,7 @@ var OrderState$3;
20074
20074
  OrderState2["Error"] = "ERROR";
20075
20075
  OrderState2["Pending"] = "PENDING";
20076
20076
  OrderState2["Placed"] = "PLACED";
20077
+ OrderState2["Routing"] = "ROUTING";
20077
20078
  })(OrderState$3 || (OrderState$3 = {}));
20078
20079
  var OrgType$2;
20079
20080
  (function(OrgType2) {
@@ -20112,6 +20113,16 @@ var SexType$2;
20112
20113
  SexType2["Male"] = "MALE";
20113
20114
  SexType2["Unknown"] = "UNKNOWN";
20114
20115
  })(SexType$2 || (SexType$2 = {}));
20116
+ var SortByDirection$1;
20117
+ (function(SortByDirection2) {
20118
+ SortByDirection2["Asc"] = "ASC";
20119
+ SortByDirection2["Desc"] = "DESC";
20120
+ })(SortByDirection$1 || (SortByDirection$1 = {}));
20121
+ var SortByOption$1;
20122
+ (function(SortByOption2) {
20123
+ SortByOption2["OrderCreatedAt"] = "ORDER_CREATED_AT";
20124
+ SortByOption2["OrderReadyByTime"] = "ORDER_READY_BY_TIME";
20125
+ })(SortByOption$1 || (SortByOption$1 = {}));
20115
20126
  const SupervisorCardFragmentDoc$1 = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "SupervisorCard" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "Supervisor" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "firstName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "lastName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "npi" } }] } }] };
20116
20127
  const CreateSupervisorMutationDocument$1 = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "CreateSupervisorMutation" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "firstName" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "lastName" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "npi" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "createSupervisor" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "input" }, "value": { "kind": "ObjectValue", "fields": [{ "kind": "ObjectField", "name": { "kind": "Name", "value": "firstName" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "firstName" } } }, { "kind": "ObjectField", "name": { "kind": "Name", "value": "lastName" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "lastName" } } }, { "kind": "ObjectField", "name": { "kind": "Name", "value": "npi" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "npi" } } }] } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "SupervisorCard" } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "SupervisorCard" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "Supervisor" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "firstName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "lastName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "npi" } }] } }] };
20117
20128
  const SearchTreatmentsDocument$1 = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "SearchTreatments" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "filter" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "TreatmentFilter" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "treatments" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "filter" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "filter" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }] } }] } }] };
@@ -51821,11 +51832,11 @@ if (globalThis.__DEV__ !== false) {
51821
51832
  ApolloClient.prototype.getMemoryInternals = getApolloClientMemoryInternals;
51822
51833
  }
51823
51834
 
51824
- function formatDate(dateString) {
51825
- if (!dateString) {
51826
- return "";
51827
- }
51828
- return new Date(dateString).toLocaleDateString("en-US", { timeZone: "UTC" });
51835
+ function formatDate(date) {
51836
+ return date ? new Date(date)?.toLocaleDateString("en-US") : "";
51837
+ }
51838
+ function formatDateUTC(date) {
51839
+ return date ? new Date(date)?.toLocaleDateString("en-US", { timeZone: "UTC" }) : "";
51829
51840
  }
51830
51841
  const CALENDAR_DATE_FORMAT = "yyyy-MM-dd";
51831
51842
 
@@ -52136,7 +52147,7 @@ function RecentOrdersDuplicateDialog() {
52136
52147
  size: "sm",
52137
52148
  color: "gray",
52138
52149
  get children() {
52139
- return ["Written by ", memo$1(() => state?.duplicateFill?.prescription?.prescriber?.name?.full), " on", " ", memo$1(() => new Date(state?.duplicateFill?.prescription?.writtenAt).toLocaleDateString())];
52150
+ return ["Written by ", memo$1(() => state?.duplicateFill?.prescription?.prescriber?.name?.full), " on", " ", memo$1(() => formatDate(state?.duplicateFill?.prescription?.writtenAt))];
52140
52151
  }
52141
52152
  }), null);
52142
52153
  insert(_el$6, createComponent(Button, {
@@ -54386,7 +54397,7 @@ function PatientInfo(props) {
54386
54397
  },
54387
54398
  sampleLoadingText: "female",
54388
54399
  get children() {
54389
- return formatDate(patient()?.dateOfBirth || "N/A");
54400
+ return memo$1(() => !!patient()?.dateOfBirth)() ? formatDateUTC(patient()?.dateOfBirth) : "N/A";
54390
54401
  }
54391
54402
  });
54392
54403
  }
@@ -55895,6 +55906,7 @@ var OrderState;
55895
55906
  OrderState2["Error"] = "ERROR";
55896
55907
  OrderState2["Pending"] = "PENDING";
55897
55908
  OrderState2["Placed"] = "PLACED";
55909
+ OrderState2["Routing"] = "ROUTING";
55898
55910
  })(OrderState || (OrderState = {}));
55899
55911
  var OrgType;
55900
55912
  (function(OrgType2) {
@@ -55933,6 +55945,16 @@ var SexType;
55933
55945
  SexType2["Male"] = "MALE";
55934
55946
  SexType2["Unknown"] = "UNKNOWN";
55935
55947
  })(SexType || (SexType = {}));
55948
+ var SortByDirection;
55949
+ (function(SortByDirection2) {
55950
+ SortByDirection2["Asc"] = "ASC";
55951
+ SortByDirection2["Desc"] = "DESC";
55952
+ })(SortByDirection || (SortByDirection = {}));
55953
+ var SortByOption;
55954
+ (function(SortByOption2) {
55955
+ SortByOption2["OrderCreatedAt"] = "ORDER_CREATED_AT";
55956
+ SortByOption2["OrderReadyByTime"] = "ORDER_READY_BY_TIME";
55957
+ })(SortByOption || (SortByOption = {}));
55936
55958
  const SupervisorCardFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "SupervisorCard" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "Supervisor" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "firstName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "lastName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "npi" } }] } }] };
55937
55959
  const CreateSupervisorMutationDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "CreateSupervisorMutation" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "firstName" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "lastName" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "npi" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "createSupervisor" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "input" }, "value": { "kind": "ObjectValue", "fields": [{ "kind": "ObjectField", "name": { "kind": "Name", "value": "firstName" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "firstName" } } }, { "kind": "ObjectField", "name": { "kind": "Name", "value": "lastName" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "lastName" } } }, { "kind": "ObjectField", "name": { "kind": "Name", "value": "npi" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "npi" } } }] } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "SupervisorCard" } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "SupervisorCard" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "Supervisor" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "firstName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "lastName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "npi" } }] } }] };
55938
55960
  const SearchTreatmentsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "SearchTreatments" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "filter" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "TreatmentFilter" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "treatments" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "filter" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "filter" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }] } }] } }] };
@@ -57645,7 +57667,7 @@ const PatientSelect = (props) => {
57645
57667
  const PatientOption = (props) => (() => {
57646
57668
  var _el$ = _tmpl$$13(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
57647
57669
  insert(_el$2, () => props.value.name.full);
57648
- insert(_el$3, () => formatDate(props.value.dateOfBirth));
57670
+ insert(_el$3, () => formatDateUTC(props.value.dateOfBirth));
57649
57671
  createRenderEffect(() => className(_el$3, clsx("shrink-0", props.active ? "text-white" : "text-gray-500")));
57650
57672
  return _el$;
57651
57673
  })();
@@ -58402,7 +58424,7 @@ function checkHasPermission(subset, superset) {
58402
58424
  return subset.every((permission) => superset.includes(permission));
58403
58425
  }
58404
58426
 
58405
- const version$1 = "0.23.2";
58427
+ const version$1 = "0.23.3";
58406
58428
  const pkg = {
58407
58429
  version: version$1};
58408
58430