@headspace/protos-events 1.861.0 → 1.862.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.
package/lib/index.d.mts CHANGED
@@ -91934,6 +91934,9 @@ export class GingerClinicalNotePayload {
91934
91934
  /** GingerClinicalNotePayload familyHistories. */
91935
91935
  familyHistories: ClinicalNoteFamilyHistory.$Properties[];
91936
91936
 
91937
+ /** GingerClinicalNotePayload diagnoses. */
91938
+ diagnoses: ClinicalNoteCodeableConcept.$Properties[];
91939
+
91937
91940
  /**
91938
91941
  * Creates a new GingerClinicalNotePayload instance using the specified properties.
91939
91942
  * @param [properties] Properties to set
@@ -92060,6 +92063,9 @@ export namespace GingerClinicalNotePayload {
92060
92063
  /** GingerClinicalNotePayload familyHistories */
92061
92064
  familyHistories?: (ClinicalNoteFamilyHistory.$Properties[]|null);
92062
92065
 
92066
+ /** GingerClinicalNotePayload diagnoses */
92067
+ diagnoses?: (ClinicalNoteCodeableConcept.$Properties[]|null);
92068
+
92063
92069
  /** Unknown fields preserved while decoding */
92064
92070
  $unknowns?: Uint8Array[];
92065
92071
  }
package/lib/index.d.ts CHANGED
@@ -91934,6 +91934,9 @@ export class GingerClinicalNotePayload {
91934
91934
  /** GingerClinicalNotePayload familyHistories. */
91935
91935
  familyHistories: ClinicalNoteFamilyHistory.$Properties[];
91936
91936
 
91937
+ /** GingerClinicalNotePayload diagnoses. */
91938
+ diagnoses: ClinicalNoteCodeableConcept.$Properties[];
91939
+
91937
91940
  /**
91938
91941
  * Creates a new GingerClinicalNotePayload instance using the specified properties.
91939
91942
  * @param [properties] Properties to set
@@ -92060,6 +92063,9 @@ export namespace GingerClinicalNotePayload {
92060
92063
  /** GingerClinicalNotePayload familyHistories */
92061
92064
  familyHistories?: (ClinicalNoteFamilyHistory.$Properties[]|null);
92062
92065
 
92066
+ /** GingerClinicalNotePayload diagnoses */
92067
+ diagnoses?: (ClinicalNoteCodeableConcept.$Properties[]|null);
92068
+
92063
92069
  /** Unknown fields preserved while decoding */
92064
92070
  $unknowns?: Uint8Array[];
92065
92071
  }
package/lib/index.js CHANGED
@@ -271610,6 +271610,7 @@ $root.GingerClinicalNotePayload = (function() {
271610
271610
  * @property {Array.<ClinicalNoteMedication.$Properties>|null} [medications] GingerClinicalNotePayload medications
271611
271611
  * @property {Array.<ClinicalNoteObservation.$Properties>|null} [observations] GingerClinicalNotePayload observations
271612
271612
  * @property {Array.<ClinicalNoteFamilyHistory.$Properties>|null} [familyHistories] GingerClinicalNotePayload familyHistories
271613
+ * @property {Array.<ClinicalNoteCodeableConcept.$Properties>|null} [diagnoses] GingerClinicalNotePayload diagnoses
271613
271614
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
271614
271615
  */
271615
271616
 
@@ -271641,6 +271642,7 @@ $root.GingerClinicalNotePayload = (function() {
271641
271642
  this.medications = [];
271642
271643
  this.observations = [];
271643
271644
  this.familyHistories = [];
271645
+ this.diagnoses = [];
271644
271646
  if (properties)
271645
271647
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
271646
271648
  if (properties[keys[i]] != null && keys[i] !== "__proto__")
@@ -271759,6 +271761,14 @@ $root.GingerClinicalNotePayload = (function() {
271759
271761
  */
271760
271762
  GingerClinicalNotePayload.prototype.familyHistories = $util.emptyArray;
271761
271763
 
271764
+ /**
271765
+ * GingerClinicalNotePayload diagnoses.
271766
+ * @member {Array.<ClinicalNoteCodeableConcept.$Properties>} diagnoses
271767
+ * @memberof GingerClinicalNotePayload
271768
+ * @instance
271769
+ */
271770
+ GingerClinicalNotePayload.prototype.diagnoses = $util.emptyArray;
271771
+
271762
271772
  /**
271763
271773
  * Creates a new GingerClinicalNotePayload instance using the specified properties.
271764
271774
  * @function create
@@ -271821,6 +271831,9 @@ $root.GingerClinicalNotePayload = (function() {
271821
271831
  if (message.familyHistories != null && message.familyHistories.length)
271822
271832
  for (var i = 0; i < message.familyHistories.length; ++i)
271823
271833
  $root.ClinicalNoteFamilyHistory.encode(message.familyHistories[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
271834
+ if (message.diagnoses != null && message.diagnoses.length)
271835
+ for (var i = 0; i < message.diagnoses.length; ++i)
271836
+ $root.ClinicalNoteCodeableConcept.encode(message.diagnoses[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
271824
271837
  if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
271825
271838
  for (var i = 0; i < message.$unknowns.length; ++i)
271826
271839
  writer.raw(message.$unknowns[i]);
@@ -271976,6 +271989,14 @@ $root.GingerClinicalNotePayload = (function() {
271976
271989
  message.familyHistories.push($root.ClinicalNoteFamilyHistory.decode(reader, reader.uint32(), undefined, _depth + 1));
271977
271990
  continue;
271978
271991
  }
271992
+ case 15: {
271993
+ if (wireType !== 2)
271994
+ break;
271995
+ if (!(message.diagnoses && message.diagnoses.length))
271996
+ message.diagnoses = [];
271997
+ message.diagnoses.push($root.ClinicalNoteCodeableConcept.decode(reader, reader.uint32(), undefined, _depth + 1));
271998
+ continue;
271999
+ }
271979
272000
  }
271980
272001
  reader.skipType(wireType, _depth, tag);
271981
272002
  $util.makeProp(message, "$unknowns", false);
@@ -272107,6 +272128,15 @@ $root.GingerClinicalNotePayload = (function() {
272107
272128
  return "familyHistories." + error;
272108
272129
  }
272109
272130
  }
272131
+ if (message.diagnoses != null && message.hasOwnProperty("diagnoses")) {
272132
+ if (!Array.isArray(message.diagnoses))
272133
+ return "diagnoses: array expected";
272134
+ for (var i = 0; i < message.diagnoses.length; ++i) {
272135
+ var error = $root.ClinicalNoteCodeableConcept.verify(message.diagnoses[i], _depth + 1);
272136
+ if (error)
272137
+ return "diagnoses." + error;
272138
+ }
272139
+ }
272110
272140
  return null;
272111
272141
  };
272112
272142
 
@@ -272238,6 +272268,16 @@ $root.GingerClinicalNotePayload = (function() {
272238
272268
  message.familyHistories[i] = $root.ClinicalNoteFamilyHistory.fromObject(object.familyHistories[i], _depth + 1);
272239
272269
  }
272240
272270
  }
272271
+ if (object.diagnoses) {
272272
+ if (!Array.isArray(object.diagnoses))
272273
+ throw TypeError(".GingerClinicalNotePayload.diagnoses: array expected");
272274
+ message.diagnoses = Array(object.diagnoses.length);
272275
+ for (var i = 0; i < object.diagnoses.length; ++i) {
272276
+ if (typeof object.diagnoses[i] !== "object")
272277
+ throw TypeError(".GingerClinicalNotePayload.diagnoses: object expected");
272278
+ message.diagnoses[i] = $root.ClinicalNoteCodeableConcept.fromObject(object.diagnoses[i], _depth + 1);
272279
+ }
272280
+ }
272241
272281
  return message;
272242
272282
  };
272243
272283
 
@@ -272261,6 +272301,7 @@ $root.GingerClinicalNotePayload = (function() {
272261
272301
  object.medications = [];
272262
272302
  object.observations = [];
272263
272303
  object.familyHistories = [];
272304
+ object.diagnoses = [];
272264
272305
  }
272265
272306
  if (options.defaults) {
272266
272307
  object.noteId = "";
@@ -272318,6 +272359,11 @@ $root.GingerClinicalNotePayload = (function() {
272318
272359
  for (var j = 0; j < message.familyHistories.length; ++j)
272319
272360
  object.familyHistories[j] = $root.ClinicalNoteFamilyHistory.toObject(message.familyHistories[j], options);
272320
272361
  }
272362
+ if (message.diagnoses && message.diagnoses.length) {
272363
+ object.diagnoses = Array(message.diagnoses.length);
272364
+ for (var j = 0; j < message.diagnoses.length; ++j)
272365
+ object.diagnoses[j] = $root.ClinicalNoteCodeableConcept.toObject(message.diagnoses[j], options);
272366
+ }
272321
272367
  return object;
272322
272368
  };
272323
272369
 
package/lib/index.mjs CHANGED
@@ -271608,6 +271608,7 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
271608
271608
  * @property {Array.<ClinicalNoteMedication.$Properties>|null} [medications] GingerClinicalNotePayload medications
271609
271609
  * @property {Array.<ClinicalNoteObservation.$Properties>|null} [observations] GingerClinicalNotePayload observations
271610
271610
  * @property {Array.<ClinicalNoteFamilyHistory.$Properties>|null} [familyHistories] GingerClinicalNotePayload familyHistories
271611
+ * @property {Array.<ClinicalNoteCodeableConcept.$Properties>|null} [diagnoses] GingerClinicalNotePayload diagnoses
271611
271612
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
271612
271613
  */
271613
271614
 
@@ -271639,6 +271640,7 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
271639
271640
  this.medications = [];
271640
271641
  this.observations = [];
271641
271642
  this.familyHistories = [];
271643
+ this.diagnoses = [];
271642
271644
  if (properties)
271643
271645
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
271644
271646
  if (properties[keys[i]] != null && keys[i] !== "__proto__")
@@ -271757,6 +271759,14 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
271757
271759
  */
271758
271760
  GingerClinicalNotePayload.prototype.familyHistories = $util.emptyArray;
271759
271761
 
271762
+ /**
271763
+ * GingerClinicalNotePayload diagnoses.
271764
+ * @member {Array.<ClinicalNoteCodeableConcept.$Properties>} diagnoses
271765
+ * @memberof GingerClinicalNotePayload
271766
+ * @instance
271767
+ */
271768
+ GingerClinicalNotePayload.prototype.diagnoses = $util.emptyArray;
271769
+
271760
271770
  /**
271761
271771
  * Creates a new GingerClinicalNotePayload instance using the specified properties.
271762
271772
  * @function create
@@ -271819,6 +271829,9 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
271819
271829
  if (message.familyHistories != null && message.familyHistories.length)
271820
271830
  for (let i = 0; i < message.familyHistories.length; ++i)
271821
271831
  $root.ClinicalNoteFamilyHistory.encode(message.familyHistories[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
271832
+ if (message.diagnoses != null && message.diagnoses.length)
271833
+ for (let i = 0; i < message.diagnoses.length; ++i)
271834
+ $root.ClinicalNoteCodeableConcept.encode(message.diagnoses[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
271822
271835
  if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
271823
271836
  for (let i = 0; i < message.$unknowns.length; ++i)
271824
271837
  writer.raw(message.$unknowns[i]);
@@ -271974,6 +271987,14 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
271974
271987
  message.familyHistories.push($root.ClinicalNoteFamilyHistory.decode(reader, reader.uint32(), undefined, _depth + 1));
271975
271988
  continue;
271976
271989
  }
271990
+ case 15: {
271991
+ if (wireType !== 2)
271992
+ break;
271993
+ if (!(message.diagnoses && message.diagnoses.length))
271994
+ message.diagnoses = [];
271995
+ message.diagnoses.push($root.ClinicalNoteCodeableConcept.decode(reader, reader.uint32(), undefined, _depth + 1));
271996
+ continue;
271997
+ }
271977
271998
  }
271978
271999
  reader.skipType(wireType, _depth, tag);
271979
272000
  $util.makeProp(message, "$unknowns", false);
@@ -272105,6 +272126,15 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
272105
272126
  return "familyHistories." + error;
272106
272127
  }
272107
272128
  }
272129
+ if (message.diagnoses != null && message.hasOwnProperty("diagnoses")) {
272130
+ if (!Array.isArray(message.diagnoses))
272131
+ return "diagnoses: array expected";
272132
+ for (let i = 0; i < message.diagnoses.length; ++i) {
272133
+ let error = $root.ClinicalNoteCodeableConcept.verify(message.diagnoses[i], _depth + 1);
272134
+ if (error)
272135
+ return "diagnoses." + error;
272136
+ }
272137
+ }
272108
272138
  return null;
272109
272139
  };
272110
272140
 
@@ -272236,6 +272266,16 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
272236
272266
  message.familyHistories[i] = $root.ClinicalNoteFamilyHistory.fromObject(object.familyHistories[i], _depth + 1);
272237
272267
  }
272238
272268
  }
272269
+ if (object.diagnoses) {
272270
+ if (!Array.isArray(object.diagnoses))
272271
+ throw TypeError(".GingerClinicalNotePayload.diagnoses: array expected");
272272
+ message.diagnoses = Array(object.diagnoses.length);
272273
+ for (let i = 0; i < object.diagnoses.length; ++i) {
272274
+ if (typeof object.diagnoses[i] !== "object")
272275
+ throw TypeError(".GingerClinicalNotePayload.diagnoses: object expected");
272276
+ message.diagnoses[i] = $root.ClinicalNoteCodeableConcept.fromObject(object.diagnoses[i], _depth + 1);
272277
+ }
272278
+ }
272239
272279
  return message;
272240
272280
  };
272241
272281
 
@@ -272259,6 +272299,7 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
272259
272299
  object.medications = [];
272260
272300
  object.observations = [];
272261
272301
  object.familyHistories = [];
272302
+ object.diagnoses = [];
272262
272303
  }
272263
272304
  if (options.defaults) {
272264
272305
  object.noteId = "";
@@ -272316,6 +272357,11 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
272316
272357
  for (let j = 0; j < message.familyHistories.length; ++j)
272317
272358
  object.familyHistories[j] = $root.ClinicalNoteFamilyHistory.toObject(message.familyHistories[j], options);
272318
272359
  }
272360
+ if (message.diagnoses && message.diagnoses.length) {
272361
+ object.diagnoses = Array(message.diagnoses.length);
272362
+ for (let j = 0; j < message.diagnoses.length; ++j)
272363
+ object.diagnoses[j] = $root.ClinicalNoteCodeableConcept.toObject(message.diagnoses[j], options);
272364
+ }
272319
272365
  return object;
272320
272366
  };
272321
272367
 
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.861.0",
19
+ "version": "1.862.0",
20
20
  "exports": {
21
21
  ".": {
22
22
  "import": {