@headspace/protos-events 1.596.0 → 1.597.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.ts CHANGED
@@ -32426,10 +32426,18 @@ export namespace ClinicalAppointment {
32426
32426
  /** Properties of a ClinicalAppointmentNote. */
32427
32427
  interface IClinicalAppointmentNote {
32428
32428
 
32429
- /** ClinicalAppointmentNote location */
32429
+ /**
32430
+ * Where the clinical note is stored. In practice, DrChrono notes are deprecated.
32431
+ * VAULT = "Vault"
32432
+ * DR_CHRONO = "Dr Chrono"
32433
+ */
32430
32434
  location?: (ClinicalAppointmentNoteLocation|null);
32431
32435
 
32432
- /** ClinicalAppointmentNote status */
32436
+ /**
32437
+ * The status of the clinical note. If the note is signed and locked, it cannot be edited.
32438
+ * DRAFT = "Draft"
32439
+ * SIGNED_AND_LOCKED = "Signed & Locked"
32440
+ */
32433
32441
  status?: (ClinicalAppointmentNoteStatus|null);
32434
32442
 
32435
32443
  /** ClinicalAppointmentNote statusUpdatedAt */
@@ -32441,6 +32449,9 @@ export namespace ClinicalAppointment {
32441
32449
  /** ClinicalAppointmentNote cptCode */
32442
32450
  cptCode?: (string|null);
32443
32451
 
32452
+ /** ClinicalAppointmentNote cptCodes */
32453
+ cptCodes?: (string[]|null);
32454
+
32444
32455
  /** ClinicalAppointmentNote anticipatedNumberOfSessions */
32445
32456
  anticipatedNumberOfSessions?: (number|null);
32446
32457
 
@@ -32472,10 +32483,18 @@ export namespace ClinicalAppointment {
32472
32483
  */
32473
32484
  constructor(properties?: ClinicalAppointment.IClinicalAppointmentNote);
32474
32485
 
32475
- /** ClinicalAppointmentNote location. */
32486
+ /**
32487
+ * Where the clinical note is stored. In practice, DrChrono notes are deprecated.
32488
+ * VAULT = "Vault"
32489
+ * DR_CHRONO = "Dr Chrono"
32490
+ */
32476
32491
  public location: ClinicalAppointmentNoteLocation;
32477
32492
 
32478
- /** ClinicalAppointmentNote status. */
32493
+ /**
32494
+ * The status of the clinical note. If the note is signed and locked, it cannot be edited.
32495
+ * DRAFT = "Draft"
32496
+ * SIGNED_AND_LOCKED = "Signed & Locked"
32497
+ */
32479
32498
  public status: ClinicalAppointmentNoteStatus;
32480
32499
 
32481
32500
  /** ClinicalAppointmentNote statusUpdatedAt. */
@@ -32487,6 +32506,9 @@ export namespace ClinicalAppointment {
32487
32506
  /** ClinicalAppointmentNote cptCode. */
32488
32507
  public cptCode: string;
32489
32508
 
32509
+ /** ClinicalAppointmentNote cptCodes. */
32510
+ public cptCodes: string[];
32511
+
32490
32512
  /** ClinicalAppointmentNote anticipatedNumberOfSessions. */
32491
32513
  public anticipatedNumberOfSessions: number;
32492
32514
 
package/lib/index.js CHANGED
@@ -92891,11 +92891,16 @@ $root.ClinicalAppointment = (function() {
92891
92891
  * Properties of a ClinicalAppointmentNote.
92892
92892
  * @memberof ClinicalAppointment
92893
92893
  * @interface IClinicalAppointmentNote
92894
- * @property {ClinicalAppointmentNoteLocation|null} [location] ClinicalAppointmentNote location
92895
- * @property {ClinicalAppointmentNoteStatus|null} [status] ClinicalAppointmentNote status
92894
+ * @property {ClinicalAppointmentNoteLocation|null} [location] Where the clinical note is stored. In practice, DrChrono notes are deprecated.
92895
+ * VAULT = "Vault"
92896
+ * DR_CHRONO = "Dr Chrono"
92897
+ * @property {ClinicalAppointmentNoteStatus|null} [status] The status of the clinical note. If the note is signed and locked, it cannot be edited.
92898
+ * DRAFT = "Draft"
92899
+ * SIGNED_AND_LOCKED = "Signed & Locked"
92896
92900
  * @property {number|Long|null} [statusUpdatedAt] ClinicalAppointmentNote statusUpdatedAt
92897
92901
  * @property {ClinicalAppointmentNoteType|null} [noteType] ClinicalAppointmentNote noteType
92898
92902
  * @property {string|null} [cptCode] ClinicalAppointmentNote cptCode
92903
+ * @property {Array.<string>|null} [cptCodes] ClinicalAppointmentNote cptCodes
92899
92904
  * @property {number|null} [anticipatedNumberOfSessions] ClinicalAppointmentNote anticipatedNumberOfSessions
92900
92905
  * @property {string|null} [vaultMetadataId] ClinicalAppointmentNote vaultMetadataId
92901
92906
  * @property {number|null} [frequency] ClinicalAppointmentNote frequency
@@ -92914,6 +92919,7 @@ $root.ClinicalAppointment = (function() {
92914
92919
  * @param {ClinicalAppointment.IClinicalAppointmentNote=} [properties] Properties to set
92915
92920
  */
92916
92921
  function ClinicalAppointmentNote(properties) {
92922
+ this.cptCodes = [];
92917
92923
  if (properties)
92918
92924
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
92919
92925
  if (properties[keys[i]] != null)
@@ -92921,7 +92927,9 @@ $root.ClinicalAppointment = (function() {
92921
92927
  }
92922
92928
 
92923
92929
  /**
92924
- * ClinicalAppointmentNote location.
92930
+ * Where the clinical note is stored. In practice, DrChrono notes are deprecated.
92931
+ * VAULT = "Vault"
92932
+ * DR_CHRONO = "Dr Chrono"
92925
92933
  * @member {ClinicalAppointmentNoteLocation} location
92926
92934
  * @memberof ClinicalAppointment.ClinicalAppointmentNote
92927
92935
  * @instance
@@ -92929,7 +92937,9 @@ $root.ClinicalAppointment = (function() {
92929
92937
  ClinicalAppointmentNote.prototype.location = 0;
92930
92938
 
92931
92939
  /**
92932
- * ClinicalAppointmentNote status.
92940
+ * The status of the clinical note. If the note is signed and locked, it cannot be edited.
92941
+ * DRAFT = "Draft"
92942
+ * SIGNED_AND_LOCKED = "Signed & Locked"
92933
92943
  * @member {ClinicalAppointmentNoteStatus} status
92934
92944
  * @memberof ClinicalAppointment.ClinicalAppointmentNote
92935
92945
  * @instance
@@ -92960,6 +92970,14 @@ $root.ClinicalAppointment = (function() {
92960
92970
  */
92961
92971
  ClinicalAppointmentNote.prototype.cptCode = "";
92962
92972
 
92973
+ /**
92974
+ * ClinicalAppointmentNote cptCodes.
92975
+ * @member {Array.<string>} cptCodes
92976
+ * @memberof ClinicalAppointment.ClinicalAppointmentNote
92977
+ * @instance
92978
+ */
92979
+ ClinicalAppointmentNote.prototype.cptCodes = $util.emptyArray;
92980
+
92963
92981
  /**
92964
92982
  * ClinicalAppointmentNote anticipatedNumberOfSessions.
92965
92983
  * @member {number} anticipatedNumberOfSessions
@@ -93064,6 +93082,9 @@ $root.ClinicalAppointment = (function() {
93064
93082
  writer.uint32(/* id 11, wireType 0 =*/88).bool(message.offeredAppointmentAccepted);
93065
93083
  if (message.referralsToCareOutsideGingerNecessary != null && message.hasOwnProperty("referralsToCareOutsideGingerNecessary"))
93066
93084
  writer.uint32(/* id 12, wireType 2 =*/98).string(message.referralsToCareOutsideGingerNecessary);
93085
+ if (message.cptCodes != null && message.cptCodes.length)
93086
+ for (var i = 0; i < message.cptCodes.length; ++i)
93087
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.cptCodes[i]);
93067
93088
  return writer;
93068
93089
  };
93069
93090
 
@@ -93113,6 +93134,11 @@ $root.ClinicalAppointment = (function() {
93113
93134
  case 5:
93114
93135
  message.cptCode = reader.string();
93115
93136
  break;
93137
+ case 13:
93138
+ if (!(message.cptCodes && message.cptCodes.length))
93139
+ message.cptCodes = [];
93140
+ message.cptCodes.push(reader.string());
93141
+ break;
93116
93142
  case 6:
93117
93143
  message.anticipatedNumberOfSessions = reader.int32();
93118
93144
  break;
@@ -93204,6 +93230,13 @@ $root.ClinicalAppointment = (function() {
93204
93230
  if (message.cptCode != null && message.hasOwnProperty("cptCode"))
93205
93231
  if (!$util.isString(message.cptCode))
93206
93232
  return "cptCode: string expected";
93233
+ if (message.cptCodes != null && message.hasOwnProperty("cptCodes")) {
93234
+ if (!Array.isArray(message.cptCodes))
93235
+ return "cptCodes: array expected";
93236
+ for (var i = 0; i < message.cptCodes.length; ++i)
93237
+ if (!$util.isString(message.cptCodes[i]))
93238
+ return "cptCodes: string[] expected";
93239
+ }
93207
93240
  if (message.anticipatedNumberOfSessions != null && message.hasOwnProperty("anticipatedNumberOfSessions"))
93208
93241
  if (!$util.isInteger(message.anticipatedNumberOfSessions))
93209
93242
  return "anticipatedNumberOfSessions: integer expected";
@@ -93301,6 +93334,13 @@ $root.ClinicalAppointment = (function() {
93301
93334
  }
93302
93335
  if (object.cptCode != null)
93303
93336
  message.cptCode = String(object.cptCode);
93337
+ if (object.cptCodes) {
93338
+ if (!Array.isArray(object.cptCodes))
93339
+ throw TypeError(".ClinicalAppointment.ClinicalAppointmentNote.cptCodes: array expected");
93340
+ message.cptCodes = [];
93341
+ for (var i = 0; i < object.cptCodes.length; ++i)
93342
+ message.cptCodes[i] = String(object.cptCodes[i]);
93343
+ }
93304
93344
  if (object.anticipatedNumberOfSessions != null)
93305
93345
  message.anticipatedNumberOfSessions = object.anticipatedNumberOfSessions | 0;
93306
93346
  if (object.vaultMetadataId != null)
@@ -93331,6 +93371,8 @@ $root.ClinicalAppointment = (function() {
93331
93371
  if (!options)
93332
93372
  options = {};
93333
93373
  var object = {};
93374
+ if (options.arrays || options.defaults)
93375
+ object.cptCodes = [];
93334
93376
  if (options.defaults) {
93335
93377
  object.location = options.enums === String ? "CLINICAL_APPOINTMENT_NOTE_LOCATION_UNKNOWN" : 0;
93336
93378
  object.status = options.enums === String ? "CLINICAL_APPOINTMENT_NOTE_STATUS_UNKNOWN" : 0;
@@ -93376,6 +93418,11 @@ $root.ClinicalAppointment = (function() {
93376
93418
  object.offeredAppointmentAccepted = message.offeredAppointmentAccepted;
93377
93419
  if (message.referralsToCareOutsideGingerNecessary != null && message.hasOwnProperty("referralsToCareOutsideGingerNecessary"))
93378
93420
  object.referralsToCareOutsideGingerNecessary = message.referralsToCareOutsideGingerNecessary;
93421
+ if (message.cptCodes && message.cptCodes.length) {
93422
+ object.cptCodes = [];
93423
+ for (var j = 0; j < message.cptCodes.length; ++j)
93424
+ object.cptCodes[j] = message.cptCodes[j];
93425
+ }
93379
93426
  return object;
93380
93427
  };
93381
93428
 
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.596.0"
19
+ "version": "1.597.0"
20
20
  }