@icanbwell/bwell-sdk-ts 1.88.0 → 1.89.0

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.
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file is automatically generated. Please do not edit this file directly.
3
3
  */
4
- export declare const VERSION = "1.88.0";
4
+ export declare const VERSION = "1.89.0";
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file is automatically generated. Please do not edit this file directly.
3
3
  */
4
- export const VERSION = "1.88.0";
4
+ export const VERSION = "1.89.0";
@@ -37,9 +37,13 @@ _UpdateProfileRequestFactory_instances = new WeakSet(), _UpdateProfileRequestFac
37
37
  const name = {};
38
38
  if (isNotNullOrUndefined(firstName)) {
39
39
  includeName = true;
40
- name.given = isNotNullOrUndefined(middleName)
41
- ? [firstName, middleName]
42
- : [firstName];
40
+ // `middleName` is a single UI field but FHIR `HumanName.given` is 0..*.
41
+ // Splitting on whitespace lets records like "Quincy Adams" round-trip
42
+ // as `["Quincy", "Adams"]` instead of collapsing to one entry.
43
+ const middleParts = isNotNullOrUndefined(middleName)
44
+ ? middleName.trim().split(/\s+/).filter(Boolean)
45
+ : [];
46
+ name.given = [firstName, ...middleParts];
43
47
  }
44
48
  if (isNotNullOrUndefined(lastName)) {
45
49
  includeName = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/bwell-sdk-ts",
3
- "version": "1.88.0",
3
+ "version": "1.89.0",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",