@headspace/protos-events 1.596.0 → 1.598.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 +32 -4
- package/lib/index.js +95 -4
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -32138,6 +32138,9 @@ export interface IClinicalAppointment {
|
|
|
32138
32138
|
|
|
32139
32139
|
/** ClinicalAppointment clinicalNote */
|
|
32140
32140
|
clinicalNote?: (ClinicalAppointment.IClinicalAppointmentNote|null);
|
|
32141
|
+
|
|
32142
|
+
/** ClinicalAppointment availabilities */
|
|
32143
|
+
availabilities?: (clinical.IClinicalAvailability[]|null);
|
|
32141
32144
|
}
|
|
32142
32145
|
|
|
32143
32146
|
/** Represents a ClinicalAppointment. */
|
|
@@ -32242,6 +32245,9 @@ export class ClinicalAppointment implements IClinicalAppointment {
|
|
|
32242
32245
|
/** ClinicalAppointment clinicalNote. */
|
|
32243
32246
|
public clinicalNote?: (ClinicalAppointment.IClinicalAppointmentNote|null);
|
|
32244
32247
|
|
|
32248
|
+
/** ClinicalAppointment availabilities. */
|
|
32249
|
+
public availabilities: clinical.IClinicalAvailability[];
|
|
32250
|
+
|
|
32245
32251
|
/**
|
|
32246
32252
|
* Creates a new ClinicalAppointment instance using the specified properties.
|
|
32247
32253
|
* @param [properties] Properties to set
|
|
@@ -32426,10 +32432,18 @@ export namespace ClinicalAppointment {
|
|
|
32426
32432
|
/** Properties of a ClinicalAppointmentNote. */
|
|
32427
32433
|
interface IClinicalAppointmentNote {
|
|
32428
32434
|
|
|
32429
|
-
/**
|
|
32435
|
+
/**
|
|
32436
|
+
* Where the clinical note is stored. In practice, DrChrono notes are deprecated.
|
|
32437
|
+
* VAULT = "Vault"
|
|
32438
|
+
* DR_CHRONO = "Dr Chrono"
|
|
32439
|
+
*/
|
|
32430
32440
|
location?: (ClinicalAppointmentNoteLocation|null);
|
|
32431
32441
|
|
|
32432
|
-
/**
|
|
32442
|
+
/**
|
|
32443
|
+
* The status of the clinical note. If the note is signed and locked, it cannot be edited.
|
|
32444
|
+
* DRAFT = "Draft"
|
|
32445
|
+
* SIGNED_AND_LOCKED = "Signed & Locked"
|
|
32446
|
+
*/
|
|
32433
32447
|
status?: (ClinicalAppointmentNoteStatus|null);
|
|
32434
32448
|
|
|
32435
32449
|
/** ClinicalAppointmentNote statusUpdatedAt */
|
|
@@ -32441,6 +32455,9 @@ export namespace ClinicalAppointment {
|
|
|
32441
32455
|
/** ClinicalAppointmentNote cptCode */
|
|
32442
32456
|
cptCode?: (string|null);
|
|
32443
32457
|
|
|
32458
|
+
/** ClinicalAppointmentNote cptCodes */
|
|
32459
|
+
cptCodes?: (string[]|null);
|
|
32460
|
+
|
|
32444
32461
|
/** ClinicalAppointmentNote anticipatedNumberOfSessions */
|
|
32445
32462
|
anticipatedNumberOfSessions?: (number|null);
|
|
32446
32463
|
|
|
@@ -32472,10 +32489,18 @@ export namespace ClinicalAppointment {
|
|
|
32472
32489
|
*/
|
|
32473
32490
|
constructor(properties?: ClinicalAppointment.IClinicalAppointmentNote);
|
|
32474
32491
|
|
|
32475
|
-
/**
|
|
32492
|
+
/**
|
|
32493
|
+
* Where the clinical note is stored. In practice, DrChrono notes are deprecated.
|
|
32494
|
+
* VAULT = "Vault"
|
|
32495
|
+
* DR_CHRONO = "Dr Chrono"
|
|
32496
|
+
*/
|
|
32476
32497
|
public location: ClinicalAppointmentNoteLocation;
|
|
32477
32498
|
|
|
32478
|
-
/**
|
|
32499
|
+
/**
|
|
32500
|
+
* The status of the clinical note. If the note is signed and locked, it cannot be edited.
|
|
32501
|
+
* DRAFT = "Draft"
|
|
32502
|
+
* SIGNED_AND_LOCKED = "Signed & Locked"
|
|
32503
|
+
*/
|
|
32479
32504
|
public status: ClinicalAppointmentNoteStatus;
|
|
32480
32505
|
|
|
32481
32506
|
/** ClinicalAppointmentNote statusUpdatedAt. */
|
|
@@ -32487,6 +32512,9 @@ export namespace ClinicalAppointment {
|
|
|
32487
32512
|
/** ClinicalAppointmentNote cptCode. */
|
|
32488
32513
|
public cptCode: string;
|
|
32489
32514
|
|
|
32515
|
+
/** ClinicalAppointmentNote cptCodes. */
|
|
32516
|
+
public cptCodes: string[];
|
|
32517
|
+
|
|
32490
32518
|
/** ClinicalAppointmentNote anticipatedNumberOfSessions. */
|
|
32491
32519
|
public anticipatedNumberOfSessions: number;
|
|
32492
32520
|
|
package/lib/index.js
CHANGED
|
@@ -91237,6 +91237,7 @@ $root.ClinicalAppointment = (function() {
|
|
|
91237
91237
|
* @property {string|null} [userStateShort] ClinicalAppointment userStateShort
|
|
91238
91238
|
* @property {string|null} [userInsuranceId] ClinicalAppointment userInsuranceId
|
|
91239
91239
|
* @property {ClinicalAppointment.IClinicalAppointmentNote|null} [clinicalNote] ClinicalAppointment clinicalNote
|
|
91240
|
+
* @property {Array.<clinical.IClinicalAvailability>|null} [availabilities] ClinicalAppointment availabilities
|
|
91240
91241
|
*/
|
|
91241
91242
|
|
|
91242
91243
|
/**
|
|
@@ -91248,6 +91249,7 @@ $root.ClinicalAppointment = (function() {
|
|
|
91248
91249
|
* @param {IClinicalAppointment=} [properties] Properties to set
|
|
91249
91250
|
*/
|
|
91250
91251
|
function ClinicalAppointment(properties) {
|
|
91252
|
+
this.availabilities = [];
|
|
91251
91253
|
if (properties)
|
|
91252
91254
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
91253
91255
|
if (properties[keys[i]] != null)
|
|
@@ -91502,6 +91504,14 @@ $root.ClinicalAppointment = (function() {
|
|
|
91502
91504
|
*/
|
|
91503
91505
|
ClinicalAppointment.prototype.clinicalNote = null;
|
|
91504
91506
|
|
|
91507
|
+
/**
|
|
91508
|
+
* ClinicalAppointment availabilities.
|
|
91509
|
+
* @member {Array.<clinical.IClinicalAvailability>} availabilities
|
|
91510
|
+
* @memberof ClinicalAppointment
|
|
91511
|
+
* @instance
|
|
91512
|
+
*/
|
|
91513
|
+
ClinicalAppointment.prototype.availabilities = $util.emptyArray;
|
|
91514
|
+
|
|
91505
91515
|
/**
|
|
91506
91516
|
* Creates a new ClinicalAppointment instance using the specified properties.
|
|
91507
91517
|
* @function create
|
|
@@ -91588,6 +91598,9 @@ $root.ClinicalAppointment = (function() {
|
|
|
91588
91598
|
writer.uint32(/* id 42, wireType 2 =*/338).string(message.userInsuranceId);
|
|
91589
91599
|
if (message.clinicalNote != null && message.hasOwnProperty("clinicalNote"))
|
|
91590
91600
|
$root.ClinicalAppointment.ClinicalAppointmentNote.encode(message.clinicalNote, writer.uint32(/* id 43, wireType 2 =*/346).fork()).ldelim();
|
|
91601
|
+
if (message.availabilities != null && message.availabilities.length)
|
|
91602
|
+
for (var i = 0; i < message.availabilities.length; ++i)
|
|
91603
|
+
$root.clinical.ClinicalAvailability.encode(message.availabilities[i], writer.uint32(/* id 44, wireType 2 =*/354).fork()).ldelim();
|
|
91591
91604
|
return writer;
|
|
91592
91605
|
};
|
|
91593
91606
|
|
|
@@ -91715,6 +91728,11 @@ $root.ClinicalAppointment = (function() {
|
|
|
91715
91728
|
case 43:
|
|
91716
91729
|
message.clinicalNote = $root.ClinicalAppointment.ClinicalAppointmentNote.decode(reader, reader.uint32());
|
|
91717
91730
|
break;
|
|
91731
|
+
case 44:
|
|
91732
|
+
if (!(message.availabilities && message.availabilities.length))
|
|
91733
|
+
message.availabilities = [];
|
|
91734
|
+
message.availabilities.push($root.clinical.ClinicalAvailability.decode(reader, reader.uint32()));
|
|
91735
|
+
break;
|
|
91718
91736
|
default:
|
|
91719
91737
|
reader.skipType(tag & 7);
|
|
91720
91738
|
break;
|
|
@@ -91949,6 +91967,15 @@ $root.ClinicalAppointment = (function() {
|
|
|
91949
91967
|
if (error)
|
|
91950
91968
|
return "clinicalNote." + error;
|
|
91951
91969
|
}
|
|
91970
|
+
if (message.availabilities != null && message.hasOwnProperty("availabilities")) {
|
|
91971
|
+
if (!Array.isArray(message.availabilities))
|
|
91972
|
+
return "availabilities: array expected";
|
|
91973
|
+
for (var i = 0; i < message.availabilities.length; ++i) {
|
|
91974
|
+
var error = $root.clinical.ClinicalAvailability.verify(message.availabilities[i]);
|
|
91975
|
+
if (error)
|
|
91976
|
+
return "availabilities." + error;
|
|
91977
|
+
}
|
|
91978
|
+
}
|
|
91952
91979
|
return null;
|
|
91953
91980
|
};
|
|
91954
91981
|
|
|
@@ -92429,6 +92456,16 @@ $root.ClinicalAppointment = (function() {
|
|
|
92429
92456
|
throw TypeError(".ClinicalAppointment.clinicalNote: object expected");
|
|
92430
92457
|
message.clinicalNote = $root.ClinicalAppointment.ClinicalAppointmentNote.fromObject(object.clinicalNote);
|
|
92431
92458
|
}
|
|
92459
|
+
if (object.availabilities) {
|
|
92460
|
+
if (!Array.isArray(object.availabilities))
|
|
92461
|
+
throw TypeError(".ClinicalAppointment.availabilities: array expected");
|
|
92462
|
+
message.availabilities = [];
|
|
92463
|
+
for (var i = 0; i < object.availabilities.length; ++i) {
|
|
92464
|
+
if (typeof object.availabilities[i] !== "object")
|
|
92465
|
+
throw TypeError(".ClinicalAppointment.availabilities: object expected");
|
|
92466
|
+
message.availabilities[i] = $root.clinical.ClinicalAvailability.fromObject(object.availabilities[i]);
|
|
92467
|
+
}
|
|
92468
|
+
}
|
|
92432
92469
|
return message;
|
|
92433
92470
|
};
|
|
92434
92471
|
|
|
@@ -92445,6 +92482,8 @@ $root.ClinicalAppointment = (function() {
|
|
|
92445
92482
|
if (!options)
|
|
92446
92483
|
options = {};
|
|
92447
92484
|
var object = {};
|
|
92485
|
+
if (options.arrays || options.defaults)
|
|
92486
|
+
object.availabilities = [];
|
|
92448
92487
|
if (options.defaults) {
|
|
92449
92488
|
object.gingerMemberId = "";
|
|
92450
92489
|
object.clinicianId = "";
|
|
@@ -92589,6 +92628,11 @@ $root.ClinicalAppointment = (function() {
|
|
|
92589
92628
|
object.userInsuranceId = message.userInsuranceId;
|
|
92590
92629
|
if (message.clinicalNote != null && message.hasOwnProperty("clinicalNote"))
|
|
92591
92630
|
object.clinicalNote = $root.ClinicalAppointment.ClinicalAppointmentNote.toObject(message.clinicalNote, options);
|
|
92631
|
+
if (message.availabilities && message.availabilities.length) {
|
|
92632
|
+
object.availabilities = [];
|
|
92633
|
+
for (var j = 0; j < message.availabilities.length; ++j)
|
|
92634
|
+
object.availabilities[j] = $root.clinical.ClinicalAvailability.toObject(message.availabilities[j], options);
|
|
92635
|
+
}
|
|
92592
92636
|
return object;
|
|
92593
92637
|
};
|
|
92594
92638
|
|
|
@@ -92891,11 +92935,16 @@ $root.ClinicalAppointment = (function() {
|
|
|
92891
92935
|
* Properties of a ClinicalAppointmentNote.
|
|
92892
92936
|
* @memberof ClinicalAppointment
|
|
92893
92937
|
* @interface IClinicalAppointmentNote
|
|
92894
|
-
* @property {ClinicalAppointmentNoteLocation|null} [location]
|
|
92895
|
-
*
|
|
92938
|
+
* @property {ClinicalAppointmentNoteLocation|null} [location] Where the clinical note is stored. In practice, DrChrono notes are deprecated.
|
|
92939
|
+
* VAULT = "Vault"
|
|
92940
|
+
* DR_CHRONO = "Dr Chrono"
|
|
92941
|
+
* @property {ClinicalAppointmentNoteStatus|null} [status] The status of the clinical note. If the note is signed and locked, it cannot be edited.
|
|
92942
|
+
* DRAFT = "Draft"
|
|
92943
|
+
* SIGNED_AND_LOCKED = "Signed & Locked"
|
|
92896
92944
|
* @property {number|Long|null} [statusUpdatedAt] ClinicalAppointmentNote statusUpdatedAt
|
|
92897
92945
|
* @property {ClinicalAppointmentNoteType|null} [noteType] ClinicalAppointmentNote noteType
|
|
92898
92946
|
* @property {string|null} [cptCode] ClinicalAppointmentNote cptCode
|
|
92947
|
+
* @property {Array.<string>|null} [cptCodes] ClinicalAppointmentNote cptCodes
|
|
92899
92948
|
* @property {number|null} [anticipatedNumberOfSessions] ClinicalAppointmentNote anticipatedNumberOfSessions
|
|
92900
92949
|
* @property {string|null} [vaultMetadataId] ClinicalAppointmentNote vaultMetadataId
|
|
92901
92950
|
* @property {number|null} [frequency] ClinicalAppointmentNote frequency
|
|
@@ -92914,6 +92963,7 @@ $root.ClinicalAppointment = (function() {
|
|
|
92914
92963
|
* @param {ClinicalAppointment.IClinicalAppointmentNote=} [properties] Properties to set
|
|
92915
92964
|
*/
|
|
92916
92965
|
function ClinicalAppointmentNote(properties) {
|
|
92966
|
+
this.cptCodes = [];
|
|
92917
92967
|
if (properties)
|
|
92918
92968
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
92919
92969
|
if (properties[keys[i]] != null)
|
|
@@ -92921,7 +92971,9 @@ $root.ClinicalAppointment = (function() {
|
|
|
92921
92971
|
}
|
|
92922
92972
|
|
|
92923
92973
|
/**
|
|
92924
|
-
*
|
|
92974
|
+
* Where the clinical note is stored. In practice, DrChrono notes are deprecated.
|
|
92975
|
+
* VAULT = "Vault"
|
|
92976
|
+
* DR_CHRONO = "Dr Chrono"
|
|
92925
92977
|
* @member {ClinicalAppointmentNoteLocation} location
|
|
92926
92978
|
* @memberof ClinicalAppointment.ClinicalAppointmentNote
|
|
92927
92979
|
* @instance
|
|
@@ -92929,7 +92981,9 @@ $root.ClinicalAppointment = (function() {
|
|
|
92929
92981
|
ClinicalAppointmentNote.prototype.location = 0;
|
|
92930
92982
|
|
|
92931
92983
|
/**
|
|
92932
|
-
*
|
|
92984
|
+
* The status of the clinical note. If the note is signed and locked, it cannot be edited.
|
|
92985
|
+
* DRAFT = "Draft"
|
|
92986
|
+
* SIGNED_AND_LOCKED = "Signed & Locked"
|
|
92933
92987
|
* @member {ClinicalAppointmentNoteStatus} status
|
|
92934
92988
|
* @memberof ClinicalAppointment.ClinicalAppointmentNote
|
|
92935
92989
|
* @instance
|
|
@@ -92960,6 +93014,14 @@ $root.ClinicalAppointment = (function() {
|
|
|
92960
93014
|
*/
|
|
92961
93015
|
ClinicalAppointmentNote.prototype.cptCode = "";
|
|
92962
93016
|
|
|
93017
|
+
/**
|
|
93018
|
+
* ClinicalAppointmentNote cptCodes.
|
|
93019
|
+
* @member {Array.<string>} cptCodes
|
|
93020
|
+
* @memberof ClinicalAppointment.ClinicalAppointmentNote
|
|
93021
|
+
* @instance
|
|
93022
|
+
*/
|
|
93023
|
+
ClinicalAppointmentNote.prototype.cptCodes = $util.emptyArray;
|
|
93024
|
+
|
|
92963
93025
|
/**
|
|
92964
93026
|
* ClinicalAppointmentNote anticipatedNumberOfSessions.
|
|
92965
93027
|
* @member {number} anticipatedNumberOfSessions
|
|
@@ -93064,6 +93126,9 @@ $root.ClinicalAppointment = (function() {
|
|
|
93064
93126
|
writer.uint32(/* id 11, wireType 0 =*/88).bool(message.offeredAppointmentAccepted);
|
|
93065
93127
|
if (message.referralsToCareOutsideGingerNecessary != null && message.hasOwnProperty("referralsToCareOutsideGingerNecessary"))
|
|
93066
93128
|
writer.uint32(/* id 12, wireType 2 =*/98).string(message.referralsToCareOutsideGingerNecessary);
|
|
93129
|
+
if (message.cptCodes != null && message.cptCodes.length)
|
|
93130
|
+
for (var i = 0; i < message.cptCodes.length; ++i)
|
|
93131
|
+
writer.uint32(/* id 13, wireType 2 =*/106).string(message.cptCodes[i]);
|
|
93067
93132
|
return writer;
|
|
93068
93133
|
};
|
|
93069
93134
|
|
|
@@ -93113,6 +93178,11 @@ $root.ClinicalAppointment = (function() {
|
|
|
93113
93178
|
case 5:
|
|
93114
93179
|
message.cptCode = reader.string();
|
|
93115
93180
|
break;
|
|
93181
|
+
case 13:
|
|
93182
|
+
if (!(message.cptCodes && message.cptCodes.length))
|
|
93183
|
+
message.cptCodes = [];
|
|
93184
|
+
message.cptCodes.push(reader.string());
|
|
93185
|
+
break;
|
|
93116
93186
|
case 6:
|
|
93117
93187
|
message.anticipatedNumberOfSessions = reader.int32();
|
|
93118
93188
|
break;
|
|
@@ -93204,6 +93274,13 @@ $root.ClinicalAppointment = (function() {
|
|
|
93204
93274
|
if (message.cptCode != null && message.hasOwnProperty("cptCode"))
|
|
93205
93275
|
if (!$util.isString(message.cptCode))
|
|
93206
93276
|
return "cptCode: string expected";
|
|
93277
|
+
if (message.cptCodes != null && message.hasOwnProperty("cptCodes")) {
|
|
93278
|
+
if (!Array.isArray(message.cptCodes))
|
|
93279
|
+
return "cptCodes: array expected";
|
|
93280
|
+
for (var i = 0; i < message.cptCodes.length; ++i)
|
|
93281
|
+
if (!$util.isString(message.cptCodes[i]))
|
|
93282
|
+
return "cptCodes: string[] expected";
|
|
93283
|
+
}
|
|
93207
93284
|
if (message.anticipatedNumberOfSessions != null && message.hasOwnProperty("anticipatedNumberOfSessions"))
|
|
93208
93285
|
if (!$util.isInteger(message.anticipatedNumberOfSessions))
|
|
93209
93286
|
return "anticipatedNumberOfSessions: integer expected";
|
|
@@ -93301,6 +93378,13 @@ $root.ClinicalAppointment = (function() {
|
|
|
93301
93378
|
}
|
|
93302
93379
|
if (object.cptCode != null)
|
|
93303
93380
|
message.cptCode = String(object.cptCode);
|
|
93381
|
+
if (object.cptCodes) {
|
|
93382
|
+
if (!Array.isArray(object.cptCodes))
|
|
93383
|
+
throw TypeError(".ClinicalAppointment.ClinicalAppointmentNote.cptCodes: array expected");
|
|
93384
|
+
message.cptCodes = [];
|
|
93385
|
+
for (var i = 0; i < object.cptCodes.length; ++i)
|
|
93386
|
+
message.cptCodes[i] = String(object.cptCodes[i]);
|
|
93387
|
+
}
|
|
93304
93388
|
if (object.anticipatedNumberOfSessions != null)
|
|
93305
93389
|
message.anticipatedNumberOfSessions = object.anticipatedNumberOfSessions | 0;
|
|
93306
93390
|
if (object.vaultMetadataId != null)
|
|
@@ -93331,6 +93415,8 @@ $root.ClinicalAppointment = (function() {
|
|
|
93331
93415
|
if (!options)
|
|
93332
93416
|
options = {};
|
|
93333
93417
|
var object = {};
|
|
93418
|
+
if (options.arrays || options.defaults)
|
|
93419
|
+
object.cptCodes = [];
|
|
93334
93420
|
if (options.defaults) {
|
|
93335
93421
|
object.location = options.enums === String ? "CLINICAL_APPOINTMENT_NOTE_LOCATION_UNKNOWN" : 0;
|
|
93336
93422
|
object.status = options.enums === String ? "CLINICAL_APPOINTMENT_NOTE_STATUS_UNKNOWN" : 0;
|
|
@@ -93376,6 +93462,11 @@ $root.ClinicalAppointment = (function() {
|
|
|
93376
93462
|
object.offeredAppointmentAccepted = message.offeredAppointmentAccepted;
|
|
93377
93463
|
if (message.referralsToCareOutsideGingerNecessary != null && message.hasOwnProperty("referralsToCareOutsideGingerNecessary"))
|
|
93378
93464
|
object.referralsToCareOutsideGingerNecessary = message.referralsToCareOutsideGingerNecessary;
|
|
93465
|
+
if (message.cptCodes && message.cptCodes.length) {
|
|
93466
|
+
object.cptCodes = [];
|
|
93467
|
+
for (var j = 0; j < message.cptCodes.length; ++j)
|
|
93468
|
+
object.cptCodes[j] = message.cptCodes[j];
|
|
93469
|
+
}
|
|
93379
93470
|
return object;
|
|
93380
93471
|
};
|
|
93381
93472
|
|
package/package.json
CHANGED