uhc-portal-components-react 0.1.21 → 0.1.22

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.22
4
+
5
+ - Preserve complete FHIR date and dateTime values in the shared clinical editor instead of silently truncating timezone-bearing values through an HTML calendar-date input.
6
+
3
7
  ## 0.1.21
4
8
 
5
9
  - Allow a host with a server-resolved clinical write capability to present the shared SOSChain health workspace as editable instead of showing a contradictory read-only badge.
@@ -151,7 +151,7 @@ function humanize(value) { return value ? value[0].toUpperCase() + value.slice(1
151
151
  function fieldInputType(parameter) {
152
152
  if (/(?:^|-)number$|frequency$|dose-sequence$/.test(parameter))
153
153
  return 'number';
154
- if (parameter === 'date' || parameter.endsWith('-date') || parameter.endsWith('-datetime'))
155
- return 'date';
154
+ // FHIR date/search fields may carry a partial date or a complete dateTime
155
+ // with timezone. HTML date inputs silently truncate or reject those values.
156
156
  return 'text';
157
157
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uhc-portal-components-react",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "Brand-neutral React portal shell, account preferences and protected-profile UI for UHC and VetChain portals.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",