@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.js CHANGED
@@ -20076,6 +20076,7 @@ var OrderState$3;
20076
20076
  OrderState2["Error"] = "ERROR";
20077
20077
  OrderState2["Pending"] = "PENDING";
20078
20078
  OrderState2["Placed"] = "PLACED";
20079
+ OrderState2["Routing"] = "ROUTING";
20079
20080
  })(OrderState$3 || (OrderState$3 = {}));
20080
20081
  var OrgType$2;
20081
20082
  (function(OrgType2) {
@@ -20114,6 +20115,16 @@ var SexType$2;
20114
20115
  SexType2["Male"] = "MALE";
20115
20116
  SexType2["Unknown"] = "UNKNOWN";
20116
20117
  })(SexType$2 || (SexType$2 = {}));
20118
+ var SortByDirection$1;
20119
+ (function(SortByDirection2) {
20120
+ SortByDirection2["Asc"] = "ASC";
20121
+ SortByDirection2["Desc"] = "DESC";
20122
+ })(SortByDirection$1 || (SortByDirection$1 = {}));
20123
+ var SortByOption$1;
20124
+ (function(SortByOption2) {
20125
+ SortByOption2["OrderCreatedAt"] = "ORDER_CREATED_AT";
20126
+ SortByOption2["OrderReadyByTime"] = "ORDER_READY_BY_TIME";
20127
+ })(SortByOption$1 || (SortByOption$1 = {}));
20117
20128
  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" } }] } }] };
20118
20129
  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" } }] } }] };
20119
20130
  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" } }] } }] } }] };
@@ -51823,11 +51834,11 @@ if (globalThis.__DEV__ !== false) {
51823
51834
  ApolloClient.prototype.getMemoryInternals = getApolloClientMemoryInternals;
51824
51835
  }
51825
51836
 
51826
- function formatDate(dateString) {
51827
- if (!dateString) {
51828
- return "";
51829
- }
51830
- return new Date(dateString).toLocaleDateString("en-US", { timeZone: "UTC" });
51837
+ function formatDate(date) {
51838
+ return date ? new Date(date)?.toLocaleDateString("en-US") : "";
51839
+ }
51840
+ function formatDateUTC(date) {
51841
+ return date ? new Date(date)?.toLocaleDateString("en-US", { timeZone: "UTC" }) : "";
51831
51842
  }
51832
51843
  const CALENDAR_DATE_FORMAT = "yyyy-MM-dd";
51833
51844
 
@@ -52138,7 +52149,7 @@ function RecentOrdersDuplicateDialog() {
52138
52149
  size: "sm",
52139
52150
  color: "gray",
52140
52151
  get children() {
52141
- return ["Written by ", memo$1(() => state?.duplicateFill?.prescription?.prescriber?.name?.full), " on", " ", memo$1(() => new Date(state?.duplicateFill?.prescription?.writtenAt).toLocaleDateString())];
52152
+ return ["Written by ", memo$1(() => state?.duplicateFill?.prescription?.prescriber?.name?.full), " on", " ", memo$1(() => formatDate(state?.duplicateFill?.prescription?.writtenAt))];
52142
52153
  }
52143
52154
  }), null);
52144
52155
  insert(_el$6, createComponent(Button, {
@@ -54388,7 +54399,7 @@ function PatientInfo(props) {
54388
54399
  },
54389
54400
  sampleLoadingText: "female",
54390
54401
  get children() {
54391
- return formatDate(patient()?.dateOfBirth || "N/A");
54402
+ return memo$1(() => !!patient()?.dateOfBirth)() ? formatDateUTC(patient()?.dateOfBirth) : "N/A";
54392
54403
  }
54393
54404
  });
54394
54405
  }
@@ -55897,6 +55908,7 @@ var OrderState;
55897
55908
  OrderState2["Error"] = "ERROR";
55898
55909
  OrderState2["Pending"] = "PENDING";
55899
55910
  OrderState2["Placed"] = "PLACED";
55911
+ OrderState2["Routing"] = "ROUTING";
55900
55912
  })(OrderState || (OrderState = {}));
55901
55913
  var OrgType;
55902
55914
  (function(OrgType2) {
@@ -55935,6 +55947,16 @@ var SexType;
55935
55947
  SexType2["Male"] = "MALE";
55936
55948
  SexType2["Unknown"] = "UNKNOWN";
55937
55949
  })(SexType || (SexType = {}));
55950
+ var SortByDirection;
55951
+ (function(SortByDirection2) {
55952
+ SortByDirection2["Asc"] = "ASC";
55953
+ SortByDirection2["Desc"] = "DESC";
55954
+ })(SortByDirection || (SortByDirection = {}));
55955
+ var SortByOption;
55956
+ (function(SortByOption2) {
55957
+ SortByOption2["OrderCreatedAt"] = "ORDER_CREATED_AT";
55958
+ SortByOption2["OrderReadyByTime"] = "ORDER_READY_BY_TIME";
55959
+ })(SortByOption || (SortByOption = {}));
55938
55960
  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" } }] } }] };
55939
55961
  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" } }] } }] };
55940
55962
  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" } }] } }] } }] };
@@ -57647,7 +57669,7 @@ const PatientSelect = (props) => {
57647
57669
  const PatientOption = (props) => (() => {
57648
57670
  var _el$ = _tmpl$$13(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
57649
57671
  insert(_el$2, () => props.value.name.full);
57650
- insert(_el$3, () => formatDate(props.value.dateOfBirth));
57672
+ insert(_el$3, () => formatDateUTC(props.value.dateOfBirth));
57651
57673
  createRenderEffect(() => className(_el$3, clsx("shrink-0", props.active ? "text-white" : "text-gray-500")));
57652
57674
  return _el$;
57653
57675
  })();
@@ -58404,7 +58426,7 @@ function checkHasPermission(subset, superset) {
58404
58426
  return subset.every((permission) => superset.includes(permission));
58405
58427
  }
58406
58428
 
58407
- const version$1 = "0.23.2";
58429
+ const version$1 = "0.23.3";
58408
58430
  const pkg = {
58409
58431
  version: version$1};
58410
58432