@headspace/protos-events 1.833.0 → 1.834.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 +868 -0
- package/lib/index.js +2650 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -260130,6 +260130,2656 @@ $root.HieDeliveryFailed = (function() {
|
|
|
260130
260130
|
return HieDeliveryFailed;
|
|
260131
260131
|
})();
|
|
260132
260132
|
|
|
260133
|
+
/**
|
|
260134
|
+
* GingerClinicalNoteType enum.
|
|
260135
|
+
* @name GingerClinicalNoteType
|
|
260136
|
+
* @enum {number}
|
|
260137
|
+
* @property {number} GINGER_CLINICAL_NOTE_TYPE_UNKNOWN=0 GINGER_CLINICAL_NOTE_TYPE_UNKNOWN value
|
|
260138
|
+
* @property {number} GINGER_CLINICAL_NOTE_TYPE_THERAPY_INTAKE=1 GINGER_CLINICAL_NOTE_TYPE_THERAPY_INTAKE value
|
|
260139
|
+
* @property {number} GINGER_CLINICAL_NOTE_TYPE_THERAPY_PROGRESS=2 GINGER_CLINICAL_NOTE_TYPE_THERAPY_PROGRESS value
|
|
260140
|
+
* @property {number} GINGER_CLINICAL_NOTE_TYPE_PSYCHIATRY_INTAKE=3 GINGER_CLINICAL_NOTE_TYPE_PSYCHIATRY_INTAKE value
|
|
260141
|
+
* @property {number} GINGER_CLINICAL_NOTE_TYPE_PSYCHIATRY_PROGRESS=4 GINGER_CLINICAL_NOTE_TYPE_PSYCHIATRY_PROGRESS value
|
|
260142
|
+
*/
|
|
260143
|
+
$root.GingerClinicalNoteType = (function() {
|
|
260144
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
260145
|
+
values[valuesById[0] = "GINGER_CLINICAL_NOTE_TYPE_UNKNOWN"] = 0;
|
|
260146
|
+
values[valuesById[1] = "GINGER_CLINICAL_NOTE_TYPE_THERAPY_INTAKE"] = 1;
|
|
260147
|
+
values[valuesById[2] = "GINGER_CLINICAL_NOTE_TYPE_THERAPY_PROGRESS"] = 2;
|
|
260148
|
+
values[valuesById[3] = "GINGER_CLINICAL_NOTE_TYPE_PSYCHIATRY_INTAKE"] = 3;
|
|
260149
|
+
values[valuesById[4] = "GINGER_CLINICAL_NOTE_TYPE_PSYCHIATRY_PROGRESS"] = 4;
|
|
260150
|
+
return values;
|
|
260151
|
+
})();
|
|
260152
|
+
|
|
260153
|
+
$root.ClinicalNotePatient = (function() {
|
|
260154
|
+
|
|
260155
|
+
/**
|
|
260156
|
+
* Properties of a ClinicalNotePatient.
|
|
260157
|
+
* @typedef {Object} ClinicalNotePatient.$Properties
|
|
260158
|
+
* @property {string|null} [givenName] ClinicalNotePatient givenName
|
|
260159
|
+
* @property {string|null} [lastName] ClinicalNotePatient lastName
|
|
260160
|
+
* @property {string|null} [gender] ClinicalNotePatient gender
|
|
260161
|
+
* @property {string|null} [emailAddress] ClinicalNotePatient emailAddress
|
|
260162
|
+
* @property {string|null} [phoneNumber] ClinicalNotePatient phoneNumber
|
|
260163
|
+
* @property {string|null} [birthDate] ClinicalNotePatient birthDate
|
|
260164
|
+
* @property {string|null} [country] ClinicalNotePatient country
|
|
260165
|
+
* @property {string|null} [state] ClinicalNotePatient state
|
|
260166
|
+
* @property {string|null} [city] ClinicalNotePatient city
|
|
260167
|
+
* @property {string|null} [postalCode] ClinicalNotePatient postalCode
|
|
260168
|
+
* @property {string|null} [streetAddress] ClinicalNotePatient streetAddress
|
|
260169
|
+
* @property {string|null} [streetAddress_2] ClinicalNotePatient streetAddress_2
|
|
260170
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
260171
|
+
*/
|
|
260172
|
+
|
|
260173
|
+
/**
|
|
260174
|
+
* Properties of a ClinicalNotePatient.
|
|
260175
|
+
* @name IClinicalNotePatient
|
|
260176
|
+
* @interface IClinicalNotePatient
|
|
260177
|
+
* @augments ClinicalNotePatient.$Properties
|
|
260178
|
+
* @deprecated Use ClinicalNotePatient.$Properties instead.
|
|
260179
|
+
*/
|
|
260180
|
+
|
|
260181
|
+
/**
|
|
260182
|
+
* Shape of a ClinicalNotePatient.
|
|
260183
|
+
* @typedef {ClinicalNotePatient.$Properties} ClinicalNotePatient.$Shape
|
|
260184
|
+
*/
|
|
260185
|
+
|
|
260186
|
+
/**
|
|
260187
|
+
* Constructs a new ClinicalNotePatient.
|
|
260188
|
+
* @name ClinicalNotePatient
|
|
260189
|
+
* @classdesc Represents a ClinicalNotePatient.
|
|
260190
|
+
* @constructor
|
|
260191
|
+
* @param {ClinicalNotePatient.$Properties=} [properties] Properties to set
|
|
260192
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
260193
|
+
*/
|
|
260194
|
+
function ClinicalNotePatient(properties) {
|
|
260195
|
+
if (properties)
|
|
260196
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
260197
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
260198
|
+
this[keys[i]] = properties[keys[i]];
|
|
260199
|
+
}
|
|
260200
|
+
|
|
260201
|
+
/**
|
|
260202
|
+
* ClinicalNotePatient givenName.
|
|
260203
|
+
* @member {string} givenName
|
|
260204
|
+
* @memberof ClinicalNotePatient
|
|
260205
|
+
* @instance
|
|
260206
|
+
*/
|
|
260207
|
+
ClinicalNotePatient.prototype.givenName = "";
|
|
260208
|
+
|
|
260209
|
+
/**
|
|
260210
|
+
* ClinicalNotePatient lastName.
|
|
260211
|
+
* @member {string} lastName
|
|
260212
|
+
* @memberof ClinicalNotePatient
|
|
260213
|
+
* @instance
|
|
260214
|
+
*/
|
|
260215
|
+
ClinicalNotePatient.prototype.lastName = "";
|
|
260216
|
+
|
|
260217
|
+
/**
|
|
260218
|
+
* ClinicalNotePatient gender.
|
|
260219
|
+
* @member {string} gender
|
|
260220
|
+
* @memberof ClinicalNotePatient
|
|
260221
|
+
* @instance
|
|
260222
|
+
*/
|
|
260223
|
+
ClinicalNotePatient.prototype.gender = "";
|
|
260224
|
+
|
|
260225
|
+
/**
|
|
260226
|
+
* ClinicalNotePatient emailAddress.
|
|
260227
|
+
* @member {string} emailAddress
|
|
260228
|
+
* @memberof ClinicalNotePatient
|
|
260229
|
+
* @instance
|
|
260230
|
+
*/
|
|
260231
|
+
ClinicalNotePatient.prototype.emailAddress = "";
|
|
260232
|
+
|
|
260233
|
+
/**
|
|
260234
|
+
* ClinicalNotePatient phoneNumber.
|
|
260235
|
+
* @member {string} phoneNumber
|
|
260236
|
+
* @memberof ClinicalNotePatient
|
|
260237
|
+
* @instance
|
|
260238
|
+
*/
|
|
260239
|
+
ClinicalNotePatient.prototype.phoneNumber = "";
|
|
260240
|
+
|
|
260241
|
+
/**
|
|
260242
|
+
* ClinicalNotePatient birthDate.
|
|
260243
|
+
* @member {string} birthDate
|
|
260244
|
+
* @memberof ClinicalNotePatient
|
|
260245
|
+
* @instance
|
|
260246
|
+
*/
|
|
260247
|
+
ClinicalNotePatient.prototype.birthDate = "";
|
|
260248
|
+
|
|
260249
|
+
/**
|
|
260250
|
+
* ClinicalNotePatient country.
|
|
260251
|
+
* @member {string} country
|
|
260252
|
+
* @memberof ClinicalNotePatient
|
|
260253
|
+
* @instance
|
|
260254
|
+
*/
|
|
260255
|
+
ClinicalNotePatient.prototype.country = "";
|
|
260256
|
+
|
|
260257
|
+
/**
|
|
260258
|
+
* ClinicalNotePatient state.
|
|
260259
|
+
* @member {string} state
|
|
260260
|
+
* @memberof ClinicalNotePatient
|
|
260261
|
+
* @instance
|
|
260262
|
+
*/
|
|
260263
|
+
ClinicalNotePatient.prototype.state = "";
|
|
260264
|
+
|
|
260265
|
+
/**
|
|
260266
|
+
* ClinicalNotePatient city.
|
|
260267
|
+
* @member {string} city
|
|
260268
|
+
* @memberof ClinicalNotePatient
|
|
260269
|
+
* @instance
|
|
260270
|
+
*/
|
|
260271
|
+
ClinicalNotePatient.prototype.city = "";
|
|
260272
|
+
|
|
260273
|
+
/**
|
|
260274
|
+
* ClinicalNotePatient postalCode.
|
|
260275
|
+
* @member {string} postalCode
|
|
260276
|
+
* @memberof ClinicalNotePatient
|
|
260277
|
+
* @instance
|
|
260278
|
+
*/
|
|
260279
|
+
ClinicalNotePatient.prototype.postalCode = "";
|
|
260280
|
+
|
|
260281
|
+
/**
|
|
260282
|
+
* ClinicalNotePatient streetAddress.
|
|
260283
|
+
* @member {string} streetAddress
|
|
260284
|
+
* @memberof ClinicalNotePatient
|
|
260285
|
+
* @instance
|
|
260286
|
+
*/
|
|
260287
|
+
ClinicalNotePatient.prototype.streetAddress = "";
|
|
260288
|
+
|
|
260289
|
+
/**
|
|
260290
|
+
* ClinicalNotePatient streetAddress_2.
|
|
260291
|
+
* @member {string} streetAddress_2
|
|
260292
|
+
* @memberof ClinicalNotePatient
|
|
260293
|
+
* @instance
|
|
260294
|
+
*/
|
|
260295
|
+
ClinicalNotePatient.prototype.streetAddress_2 = "";
|
|
260296
|
+
|
|
260297
|
+
/**
|
|
260298
|
+
* Creates a new ClinicalNotePatient instance using the specified properties.
|
|
260299
|
+
* @function create
|
|
260300
|
+
* @memberof ClinicalNotePatient
|
|
260301
|
+
* @static
|
|
260302
|
+
* @param {ClinicalNotePatient.$Properties=} [properties] Properties to set
|
|
260303
|
+
* @returns {ClinicalNotePatient} ClinicalNotePatient instance
|
|
260304
|
+
* @type {{
|
|
260305
|
+
* (properties: ClinicalNotePatient.$Shape): ClinicalNotePatient & ClinicalNotePatient.$Shape;
|
|
260306
|
+
* (properties?: ClinicalNotePatient.$Properties): ClinicalNotePatient;
|
|
260307
|
+
* }}
|
|
260308
|
+
*/
|
|
260309
|
+
ClinicalNotePatient.create = function create(properties) {
|
|
260310
|
+
return new ClinicalNotePatient(properties);
|
|
260311
|
+
};
|
|
260312
|
+
|
|
260313
|
+
/**
|
|
260314
|
+
* Encodes the specified ClinicalNotePatient message. Does not implicitly {@link ClinicalNotePatient.verify|verify} messages.
|
|
260315
|
+
* @function encode
|
|
260316
|
+
* @memberof ClinicalNotePatient
|
|
260317
|
+
* @static
|
|
260318
|
+
* @param {ClinicalNotePatient.$Properties} message ClinicalNotePatient message or plain object to encode
|
|
260319
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
260320
|
+
* @returns {$protobuf.Writer} Writer
|
|
260321
|
+
*/
|
|
260322
|
+
ClinicalNotePatient.encode = function encode(message, writer) {
|
|
260323
|
+
if (!writer)
|
|
260324
|
+
writer = $Writer.create();
|
|
260325
|
+
if (message.givenName != null && Object.hasOwnProperty.call(message, "givenName"))
|
|
260326
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.givenName);
|
|
260327
|
+
if (message.lastName != null && Object.hasOwnProperty.call(message, "lastName"))
|
|
260328
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.lastName);
|
|
260329
|
+
if (message.gender != null && Object.hasOwnProperty.call(message, "gender"))
|
|
260330
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.gender);
|
|
260331
|
+
if (message.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress"))
|
|
260332
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.emailAddress);
|
|
260333
|
+
if (message.phoneNumber != null && Object.hasOwnProperty.call(message, "phoneNumber"))
|
|
260334
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.phoneNumber);
|
|
260335
|
+
if (message.birthDate != null && Object.hasOwnProperty.call(message, "birthDate"))
|
|
260336
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.birthDate);
|
|
260337
|
+
if (message.country != null && Object.hasOwnProperty.call(message, "country"))
|
|
260338
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.country);
|
|
260339
|
+
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
260340
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.state);
|
|
260341
|
+
if (message.city != null && Object.hasOwnProperty.call(message, "city"))
|
|
260342
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.city);
|
|
260343
|
+
if (message.postalCode != null && Object.hasOwnProperty.call(message, "postalCode"))
|
|
260344
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.postalCode);
|
|
260345
|
+
if (message.streetAddress != null && Object.hasOwnProperty.call(message, "streetAddress"))
|
|
260346
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.streetAddress);
|
|
260347
|
+
if (message.streetAddress_2 != null && Object.hasOwnProperty.call(message, "streetAddress_2"))
|
|
260348
|
+
writer.uint32(/* id 12, wireType 2 =*/98).string(message.streetAddress_2);
|
|
260349
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
260350
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
260351
|
+
writer.raw(message.$unknowns[i]);
|
|
260352
|
+
return writer;
|
|
260353
|
+
};
|
|
260354
|
+
|
|
260355
|
+
/**
|
|
260356
|
+
* Encodes the specified ClinicalNotePatient message, length delimited. Does not implicitly {@link ClinicalNotePatient.verify|verify} messages.
|
|
260357
|
+
* @function encodeDelimited
|
|
260358
|
+
* @memberof ClinicalNotePatient
|
|
260359
|
+
* @static
|
|
260360
|
+
* @param {ClinicalNotePatient.$Properties} message ClinicalNotePatient message or plain object to encode
|
|
260361
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
260362
|
+
* @returns {$protobuf.Writer} Writer
|
|
260363
|
+
*/
|
|
260364
|
+
ClinicalNotePatient.encodeDelimited = function encodeDelimited(message, writer) {
|
|
260365
|
+
return this.encode(message, writer).ldelim();
|
|
260366
|
+
};
|
|
260367
|
+
|
|
260368
|
+
/**
|
|
260369
|
+
* Decodes a ClinicalNotePatient message from the specified reader or buffer.
|
|
260370
|
+
* @function decode
|
|
260371
|
+
* @memberof ClinicalNotePatient
|
|
260372
|
+
* @static
|
|
260373
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
260374
|
+
* @param {number} [length] Message length if known beforehand
|
|
260375
|
+
* @returns {ClinicalNotePatient & ClinicalNotePatient.$Shape} ClinicalNotePatient
|
|
260376
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
260377
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
260378
|
+
*/
|
|
260379
|
+
ClinicalNotePatient.decode = function decode(reader, length, _end, _depth, _target) {
|
|
260380
|
+
if (!(reader instanceof $Reader))
|
|
260381
|
+
reader = $Reader.create(reader);
|
|
260382
|
+
if (_depth === undefined)
|
|
260383
|
+
_depth = 0;
|
|
260384
|
+
if (_depth > $Reader.recursionLimit)
|
|
260385
|
+
throw Error("max depth exceeded");
|
|
260386
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.ClinicalNotePatient(), value;
|
|
260387
|
+
while (reader.pos < end) {
|
|
260388
|
+
var start = reader.pos;
|
|
260389
|
+
var tag = reader.tag();
|
|
260390
|
+
if (tag === _end) {
|
|
260391
|
+
_end = undefined;
|
|
260392
|
+
break;
|
|
260393
|
+
}
|
|
260394
|
+
var wireType = tag & 7;
|
|
260395
|
+
switch (tag >>>= 3) {
|
|
260396
|
+
case 1: {
|
|
260397
|
+
if (wireType !== 2)
|
|
260398
|
+
break;
|
|
260399
|
+
if ((value = reader.string()).length)
|
|
260400
|
+
message.givenName = value;
|
|
260401
|
+
else
|
|
260402
|
+
delete message.givenName;
|
|
260403
|
+
continue;
|
|
260404
|
+
}
|
|
260405
|
+
case 2: {
|
|
260406
|
+
if (wireType !== 2)
|
|
260407
|
+
break;
|
|
260408
|
+
if ((value = reader.string()).length)
|
|
260409
|
+
message.lastName = value;
|
|
260410
|
+
else
|
|
260411
|
+
delete message.lastName;
|
|
260412
|
+
continue;
|
|
260413
|
+
}
|
|
260414
|
+
case 3: {
|
|
260415
|
+
if (wireType !== 2)
|
|
260416
|
+
break;
|
|
260417
|
+
if ((value = reader.string()).length)
|
|
260418
|
+
message.gender = value;
|
|
260419
|
+
else
|
|
260420
|
+
delete message.gender;
|
|
260421
|
+
continue;
|
|
260422
|
+
}
|
|
260423
|
+
case 4: {
|
|
260424
|
+
if (wireType !== 2)
|
|
260425
|
+
break;
|
|
260426
|
+
if ((value = reader.string()).length)
|
|
260427
|
+
message.emailAddress = value;
|
|
260428
|
+
else
|
|
260429
|
+
delete message.emailAddress;
|
|
260430
|
+
continue;
|
|
260431
|
+
}
|
|
260432
|
+
case 5: {
|
|
260433
|
+
if (wireType !== 2)
|
|
260434
|
+
break;
|
|
260435
|
+
if ((value = reader.string()).length)
|
|
260436
|
+
message.phoneNumber = value;
|
|
260437
|
+
else
|
|
260438
|
+
delete message.phoneNumber;
|
|
260439
|
+
continue;
|
|
260440
|
+
}
|
|
260441
|
+
case 6: {
|
|
260442
|
+
if (wireType !== 2)
|
|
260443
|
+
break;
|
|
260444
|
+
if ((value = reader.string()).length)
|
|
260445
|
+
message.birthDate = value;
|
|
260446
|
+
else
|
|
260447
|
+
delete message.birthDate;
|
|
260448
|
+
continue;
|
|
260449
|
+
}
|
|
260450
|
+
case 7: {
|
|
260451
|
+
if (wireType !== 2)
|
|
260452
|
+
break;
|
|
260453
|
+
if ((value = reader.string()).length)
|
|
260454
|
+
message.country = value;
|
|
260455
|
+
else
|
|
260456
|
+
delete message.country;
|
|
260457
|
+
continue;
|
|
260458
|
+
}
|
|
260459
|
+
case 8: {
|
|
260460
|
+
if (wireType !== 2)
|
|
260461
|
+
break;
|
|
260462
|
+
if ((value = reader.string()).length)
|
|
260463
|
+
message.state = value;
|
|
260464
|
+
else
|
|
260465
|
+
delete message.state;
|
|
260466
|
+
continue;
|
|
260467
|
+
}
|
|
260468
|
+
case 9: {
|
|
260469
|
+
if (wireType !== 2)
|
|
260470
|
+
break;
|
|
260471
|
+
if ((value = reader.string()).length)
|
|
260472
|
+
message.city = value;
|
|
260473
|
+
else
|
|
260474
|
+
delete message.city;
|
|
260475
|
+
continue;
|
|
260476
|
+
}
|
|
260477
|
+
case 10: {
|
|
260478
|
+
if (wireType !== 2)
|
|
260479
|
+
break;
|
|
260480
|
+
if ((value = reader.string()).length)
|
|
260481
|
+
message.postalCode = value;
|
|
260482
|
+
else
|
|
260483
|
+
delete message.postalCode;
|
|
260484
|
+
continue;
|
|
260485
|
+
}
|
|
260486
|
+
case 11: {
|
|
260487
|
+
if (wireType !== 2)
|
|
260488
|
+
break;
|
|
260489
|
+
if ((value = reader.string()).length)
|
|
260490
|
+
message.streetAddress = value;
|
|
260491
|
+
else
|
|
260492
|
+
delete message.streetAddress;
|
|
260493
|
+
continue;
|
|
260494
|
+
}
|
|
260495
|
+
case 12: {
|
|
260496
|
+
if (wireType !== 2)
|
|
260497
|
+
break;
|
|
260498
|
+
if ((value = reader.string()).length)
|
|
260499
|
+
message.streetAddress_2 = value;
|
|
260500
|
+
else
|
|
260501
|
+
delete message.streetAddress_2;
|
|
260502
|
+
continue;
|
|
260503
|
+
}
|
|
260504
|
+
}
|
|
260505
|
+
reader.skipType(wireType, _depth, tag);
|
|
260506
|
+
$util.makeProp(message, "$unknowns", false);
|
|
260507
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
260508
|
+
}
|
|
260509
|
+
if (_end !== undefined)
|
|
260510
|
+
throw Error("missing end group");
|
|
260511
|
+
return message;
|
|
260512
|
+
};
|
|
260513
|
+
|
|
260514
|
+
/**
|
|
260515
|
+
* Decodes a ClinicalNotePatient message from the specified reader or buffer, length delimited.
|
|
260516
|
+
* @function decodeDelimited
|
|
260517
|
+
* @memberof ClinicalNotePatient
|
|
260518
|
+
* @static
|
|
260519
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
260520
|
+
* @returns {ClinicalNotePatient & ClinicalNotePatient.$Shape} ClinicalNotePatient
|
|
260521
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
260522
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
260523
|
+
*/
|
|
260524
|
+
ClinicalNotePatient.decodeDelimited = function decodeDelimited(reader) {
|
|
260525
|
+
if (!(reader instanceof $Reader))
|
|
260526
|
+
reader = new $Reader(reader);
|
|
260527
|
+
return this.decode(reader, reader.uint32());
|
|
260528
|
+
};
|
|
260529
|
+
|
|
260530
|
+
/**
|
|
260531
|
+
* Verifies a ClinicalNotePatient message.
|
|
260532
|
+
* @function verify
|
|
260533
|
+
* @memberof ClinicalNotePatient
|
|
260534
|
+
* @static
|
|
260535
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
260536
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
260537
|
+
*/
|
|
260538
|
+
ClinicalNotePatient.verify = function verify(message, _depth) {
|
|
260539
|
+
if (typeof message !== "object" || message === null)
|
|
260540
|
+
return "object expected";
|
|
260541
|
+
if (_depth === undefined)
|
|
260542
|
+
_depth = 0;
|
|
260543
|
+
if (_depth > $util.recursionLimit)
|
|
260544
|
+
return "max depth exceeded";
|
|
260545
|
+
if (message.givenName != null && message.hasOwnProperty("givenName"))
|
|
260546
|
+
if (!$util.isString(message.givenName))
|
|
260547
|
+
return "givenName: string expected";
|
|
260548
|
+
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
260549
|
+
if (!$util.isString(message.lastName))
|
|
260550
|
+
return "lastName: string expected";
|
|
260551
|
+
if (message.gender != null && message.hasOwnProperty("gender"))
|
|
260552
|
+
if (!$util.isString(message.gender))
|
|
260553
|
+
return "gender: string expected";
|
|
260554
|
+
if (message.emailAddress != null && message.hasOwnProperty("emailAddress"))
|
|
260555
|
+
if (!$util.isString(message.emailAddress))
|
|
260556
|
+
return "emailAddress: string expected";
|
|
260557
|
+
if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
|
|
260558
|
+
if (!$util.isString(message.phoneNumber))
|
|
260559
|
+
return "phoneNumber: string expected";
|
|
260560
|
+
if (message.birthDate != null && message.hasOwnProperty("birthDate"))
|
|
260561
|
+
if (!$util.isString(message.birthDate))
|
|
260562
|
+
return "birthDate: string expected";
|
|
260563
|
+
if (message.country != null && message.hasOwnProperty("country"))
|
|
260564
|
+
if (!$util.isString(message.country))
|
|
260565
|
+
return "country: string expected";
|
|
260566
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
260567
|
+
if (!$util.isString(message.state))
|
|
260568
|
+
return "state: string expected";
|
|
260569
|
+
if (message.city != null && message.hasOwnProperty("city"))
|
|
260570
|
+
if (!$util.isString(message.city))
|
|
260571
|
+
return "city: string expected";
|
|
260572
|
+
if (message.postalCode != null && message.hasOwnProperty("postalCode"))
|
|
260573
|
+
if (!$util.isString(message.postalCode))
|
|
260574
|
+
return "postalCode: string expected";
|
|
260575
|
+
if (message.streetAddress != null && message.hasOwnProperty("streetAddress"))
|
|
260576
|
+
if (!$util.isString(message.streetAddress))
|
|
260577
|
+
return "streetAddress: string expected";
|
|
260578
|
+
if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
|
|
260579
|
+
if (!$util.isString(message.streetAddress_2))
|
|
260580
|
+
return "streetAddress_2: string expected";
|
|
260581
|
+
return null;
|
|
260582
|
+
};
|
|
260583
|
+
|
|
260584
|
+
/**
|
|
260585
|
+
* Creates a ClinicalNotePatient message from a plain object. Also converts values to their respective internal types.
|
|
260586
|
+
* @function fromObject
|
|
260587
|
+
* @memberof ClinicalNotePatient
|
|
260588
|
+
* @static
|
|
260589
|
+
* @param {Object.<string,*>} object Plain object
|
|
260590
|
+
* @returns {ClinicalNotePatient} ClinicalNotePatient
|
|
260591
|
+
*/
|
|
260592
|
+
ClinicalNotePatient.fromObject = function fromObject(object, _depth) {
|
|
260593
|
+
if (object instanceof $root.ClinicalNotePatient)
|
|
260594
|
+
return object;
|
|
260595
|
+
if (_depth === undefined)
|
|
260596
|
+
_depth = 0;
|
|
260597
|
+
if (_depth > $util.recursionLimit)
|
|
260598
|
+
throw Error("max depth exceeded");
|
|
260599
|
+
var message = new $root.ClinicalNotePatient();
|
|
260600
|
+
if (object.givenName != null)
|
|
260601
|
+
if (typeof object.givenName !== "string" || object.givenName.length)
|
|
260602
|
+
message.givenName = String(object.givenName);
|
|
260603
|
+
if (object.lastName != null)
|
|
260604
|
+
if (typeof object.lastName !== "string" || object.lastName.length)
|
|
260605
|
+
message.lastName = String(object.lastName);
|
|
260606
|
+
if (object.gender != null)
|
|
260607
|
+
if (typeof object.gender !== "string" || object.gender.length)
|
|
260608
|
+
message.gender = String(object.gender);
|
|
260609
|
+
if (object.emailAddress != null)
|
|
260610
|
+
if (typeof object.emailAddress !== "string" || object.emailAddress.length)
|
|
260611
|
+
message.emailAddress = String(object.emailAddress);
|
|
260612
|
+
if (object.phoneNumber != null)
|
|
260613
|
+
if (typeof object.phoneNumber !== "string" || object.phoneNumber.length)
|
|
260614
|
+
message.phoneNumber = String(object.phoneNumber);
|
|
260615
|
+
if (object.birthDate != null)
|
|
260616
|
+
if (typeof object.birthDate !== "string" || object.birthDate.length)
|
|
260617
|
+
message.birthDate = String(object.birthDate);
|
|
260618
|
+
if (object.country != null)
|
|
260619
|
+
if (typeof object.country !== "string" || object.country.length)
|
|
260620
|
+
message.country = String(object.country);
|
|
260621
|
+
if (object.state != null)
|
|
260622
|
+
if (typeof object.state !== "string" || object.state.length)
|
|
260623
|
+
message.state = String(object.state);
|
|
260624
|
+
if (object.city != null)
|
|
260625
|
+
if (typeof object.city !== "string" || object.city.length)
|
|
260626
|
+
message.city = String(object.city);
|
|
260627
|
+
if (object.postalCode != null)
|
|
260628
|
+
if (typeof object.postalCode !== "string" || object.postalCode.length)
|
|
260629
|
+
message.postalCode = String(object.postalCode);
|
|
260630
|
+
if (object.streetAddress != null)
|
|
260631
|
+
if (typeof object.streetAddress !== "string" || object.streetAddress.length)
|
|
260632
|
+
message.streetAddress = String(object.streetAddress);
|
|
260633
|
+
if (object.streetAddress_2 != null)
|
|
260634
|
+
if (typeof object.streetAddress_2 !== "string" || object.streetAddress_2.length)
|
|
260635
|
+
message.streetAddress_2 = String(object.streetAddress_2);
|
|
260636
|
+
return message;
|
|
260637
|
+
};
|
|
260638
|
+
|
|
260639
|
+
/**
|
|
260640
|
+
* Creates a plain object from a ClinicalNotePatient message. Also converts values to other types if specified.
|
|
260641
|
+
* @function toObject
|
|
260642
|
+
* @memberof ClinicalNotePatient
|
|
260643
|
+
* @static
|
|
260644
|
+
* @param {ClinicalNotePatient} message ClinicalNotePatient
|
|
260645
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
260646
|
+
* @returns {Object.<string,*>} Plain object
|
|
260647
|
+
*/
|
|
260648
|
+
ClinicalNotePatient.toObject = function toObject(message, options) {
|
|
260649
|
+
if (!options)
|
|
260650
|
+
options = {};
|
|
260651
|
+
var object = {};
|
|
260652
|
+
if (options.defaults) {
|
|
260653
|
+
object.givenName = "";
|
|
260654
|
+
object.lastName = "";
|
|
260655
|
+
object.gender = "";
|
|
260656
|
+
object.emailAddress = "";
|
|
260657
|
+
object.phoneNumber = "";
|
|
260658
|
+
object.birthDate = "";
|
|
260659
|
+
object.country = "";
|
|
260660
|
+
object.state = "";
|
|
260661
|
+
object.city = "";
|
|
260662
|
+
object.postalCode = "";
|
|
260663
|
+
object.streetAddress = "";
|
|
260664
|
+
object.streetAddress_2 = "";
|
|
260665
|
+
}
|
|
260666
|
+
if (message.givenName != null && message.hasOwnProperty("givenName"))
|
|
260667
|
+
object.givenName = message.givenName;
|
|
260668
|
+
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
260669
|
+
object.lastName = message.lastName;
|
|
260670
|
+
if (message.gender != null && message.hasOwnProperty("gender"))
|
|
260671
|
+
object.gender = message.gender;
|
|
260672
|
+
if (message.emailAddress != null && message.hasOwnProperty("emailAddress"))
|
|
260673
|
+
object.emailAddress = message.emailAddress;
|
|
260674
|
+
if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
|
|
260675
|
+
object.phoneNumber = message.phoneNumber;
|
|
260676
|
+
if (message.birthDate != null && message.hasOwnProperty("birthDate"))
|
|
260677
|
+
object.birthDate = message.birthDate;
|
|
260678
|
+
if (message.country != null && message.hasOwnProperty("country"))
|
|
260679
|
+
object.country = message.country;
|
|
260680
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
260681
|
+
object.state = message.state;
|
|
260682
|
+
if (message.city != null && message.hasOwnProperty("city"))
|
|
260683
|
+
object.city = message.city;
|
|
260684
|
+
if (message.postalCode != null && message.hasOwnProperty("postalCode"))
|
|
260685
|
+
object.postalCode = message.postalCode;
|
|
260686
|
+
if (message.streetAddress != null && message.hasOwnProperty("streetAddress"))
|
|
260687
|
+
object.streetAddress = message.streetAddress;
|
|
260688
|
+
if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
|
|
260689
|
+
object.streetAddress_2 = message.streetAddress_2;
|
|
260690
|
+
return object;
|
|
260691
|
+
};
|
|
260692
|
+
|
|
260693
|
+
/**
|
|
260694
|
+
* Converts this ClinicalNotePatient to JSON.
|
|
260695
|
+
* @function toJSON
|
|
260696
|
+
* @memberof ClinicalNotePatient
|
|
260697
|
+
* @instance
|
|
260698
|
+
* @returns {Object.<string,*>} JSON object
|
|
260699
|
+
*/
|
|
260700
|
+
ClinicalNotePatient.prototype.toJSON = function toJSON() {
|
|
260701
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
260702
|
+
};
|
|
260703
|
+
|
|
260704
|
+
/**
|
|
260705
|
+
* Gets the type url for ClinicalNotePatient
|
|
260706
|
+
* @function getTypeUrl
|
|
260707
|
+
* @memberof ClinicalNotePatient
|
|
260708
|
+
* @static
|
|
260709
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
260710
|
+
* @returns {string} The type url
|
|
260711
|
+
*/
|
|
260712
|
+
ClinicalNotePatient.getTypeUrl = function getTypeUrl(prefix) {
|
|
260713
|
+
if (prefix === undefined)
|
|
260714
|
+
prefix = "type.googleapis.com";
|
|
260715
|
+
return prefix + "/ClinicalNotePatient";
|
|
260716
|
+
};
|
|
260717
|
+
|
|
260718
|
+
return ClinicalNotePatient;
|
|
260719
|
+
})();
|
|
260720
|
+
|
|
260721
|
+
$root.ClinicalNotePractitioner = (function() {
|
|
260722
|
+
|
|
260723
|
+
/**
|
|
260724
|
+
* Properties of a ClinicalNotePractitioner.
|
|
260725
|
+
* @typedef {Object} ClinicalNotePractitioner.$Properties
|
|
260726
|
+
* @property {string|null} [givenName] ClinicalNotePractitioner givenName
|
|
260727
|
+
* @property {string|null} [lastName] ClinicalNotePractitioner lastName
|
|
260728
|
+
* @property {string|null} [npiIdentifier] ClinicalNotePractitioner npiIdentifier
|
|
260729
|
+
* @property {string|null} [emailAddress] ClinicalNotePractitioner emailAddress
|
|
260730
|
+
* @property {string|null} [phoneNumber] ClinicalNotePractitioner phoneNumber
|
|
260731
|
+
* @property {string|null} [birthDate] ClinicalNotePractitioner birthDate
|
|
260732
|
+
* @property {string|null} [country] ClinicalNotePractitioner country
|
|
260733
|
+
* @property {string|null} [state] ClinicalNotePractitioner state
|
|
260734
|
+
* @property {string|null} [city] ClinicalNotePractitioner city
|
|
260735
|
+
* @property {string|null} [postalCode] ClinicalNotePractitioner postalCode
|
|
260736
|
+
* @property {string|null} [streetAddress] ClinicalNotePractitioner streetAddress
|
|
260737
|
+
* @property {string|null} [streetAddress_2] ClinicalNotePractitioner streetAddress_2
|
|
260738
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
260739
|
+
*/
|
|
260740
|
+
|
|
260741
|
+
/**
|
|
260742
|
+
* Properties of a ClinicalNotePractitioner.
|
|
260743
|
+
* @name IClinicalNotePractitioner
|
|
260744
|
+
* @interface IClinicalNotePractitioner
|
|
260745
|
+
* @augments ClinicalNotePractitioner.$Properties
|
|
260746
|
+
* @deprecated Use ClinicalNotePractitioner.$Properties instead.
|
|
260747
|
+
*/
|
|
260748
|
+
|
|
260749
|
+
/**
|
|
260750
|
+
* Shape of a ClinicalNotePractitioner.
|
|
260751
|
+
* @typedef {ClinicalNotePractitioner.$Properties} ClinicalNotePractitioner.$Shape
|
|
260752
|
+
*/
|
|
260753
|
+
|
|
260754
|
+
/**
|
|
260755
|
+
* Constructs a new ClinicalNotePractitioner.
|
|
260756
|
+
* @name ClinicalNotePractitioner
|
|
260757
|
+
* @classdesc Represents a ClinicalNotePractitioner.
|
|
260758
|
+
* @constructor
|
|
260759
|
+
* @param {ClinicalNotePractitioner.$Properties=} [properties] Properties to set
|
|
260760
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
260761
|
+
*/
|
|
260762
|
+
function ClinicalNotePractitioner(properties) {
|
|
260763
|
+
if (properties)
|
|
260764
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
260765
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
260766
|
+
this[keys[i]] = properties[keys[i]];
|
|
260767
|
+
}
|
|
260768
|
+
|
|
260769
|
+
/**
|
|
260770
|
+
* ClinicalNotePractitioner givenName.
|
|
260771
|
+
* @member {string} givenName
|
|
260772
|
+
* @memberof ClinicalNotePractitioner
|
|
260773
|
+
* @instance
|
|
260774
|
+
*/
|
|
260775
|
+
ClinicalNotePractitioner.prototype.givenName = "";
|
|
260776
|
+
|
|
260777
|
+
/**
|
|
260778
|
+
* ClinicalNotePractitioner lastName.
|
|
260779
|
+
* @member {string} lastName
|
|
260780
|
+
* @memberof ClinicalNotePractitioner
|
|
260781
|
+
* @instance
|
|
260782
|
+
*/
|
|
260783
|
+
ClinicalNotePractitioner.prototype.lastName = "";
|
|
260784
|
+
|
|
260785
|
+
/**
|
|
260786
|
+
* ClinicalNotePractitioner npiIdentifier.
|
|
260787
|
+
* @member {string} npiIdentifier
|
|
260788
|
+
* @memberof ClinicalNotePractitioner
|
|
260789
|
+
* @instance
|
|
260790
|
+
*/
|
|
260791
|
+
ClinicalNotePractitioner.prototype.npiIdentifier = "";
|
|
260792
|
+
|
|
260793
|
+
/**
|
|
260794
|
+
* ClinicalNotePractitioner emailAddress.
|
|
260795
|
+
* @member {string} emailAddress
|
|
260796
|
+
* @memberof ClinicalNotePractitioner
|
|
260797
|
+
* @instance
|
|
260798
|
+
*/
|
|
260799
|
+
ClinicalNotePractitioner.prototype.emailAddress = "";
|
|
260800
|
+
|
|
260801
|
+
/**
|
|
260802
|
+
* ClinicalNotePractitioner phoneNumber.
|
|
260803
|
+
* @member {string} phoneNumber
|
|
260804
|
+
* @memberof ClinicalNotePractitioner
|
|
260805
|
+
* @instance
|
|
260806
|
+
*/
|
|
260807
|
+
ClinicalNotePractitioner.prototype.phoneNumber = "";
|
|
260808
|
+
|
|
260809
|
+
/**
|
|
260810
|
+
* ClinicalNotePractitioner birthDate.
|
|
260811
|
+
* @member {string} birthDate
|
|
260812
|
+
* @memberof ClinicalNotePractitioner
|
|
260813
|
+
* @instance
|
|
260814
|
+
*/
|
|
260815
|
+
ClinicalNotePractitioner.prototype.birthDate = "";
|
|
260816
|
+
|
|
260817
|
+
/**
|
|
260818
|
+
* ClinicalNotePractitioner country.
|
|
260819
|
+
* @member {string} country
|
|
260820
|
+
* @memberof ClinicalNotePractitioner
|
|
260821
|
+
* @instance
|
|
260822
|
+
*/
|
|
260823
|
+
ClinicalNotePractitioner.prototype.country = "";
|
|
260824
|
+
|
|
260825
|
+
/**
|
|
260826
|
+
* ClinicalNotePractitioner state.
|
|
260827
|
+
* @member {string} state
|
|
260828
|
+
* @memberof ClinicalNotePractitioner
|
|
260829
|
+
* @instance
|
|
260830
|
+
*/
|
|
260831
|
+
ClinicalNotePractitioner.prototype.state = "";
|
|
260832
|
+
|
|
260833
|
+
/**
|
|
260834
|
+
* ClinicalNotePractitioner city.
|
|
260835
|
+
* @member {string} city
|
|
260836
|
+
* @memberof ClinicalNotePractitioner
|
|
260837
|
+
* @instance
|
|
260838
|
+
*/
|
|
260839
|
+
ClinicalNotePractitioner.prototype.city = "";
|
|
260840
|
+
|
|
260841
|
+
/**
|
|
260842
|
+
* ClinicalNotePractitioner postalCode.
|
|
260843
|
+
* @member {string} postalCode
|
|
260844
|
+
* @memberof ClinicalNotePractitioner
|
|
260845
|
+
* @instance
|
|
260846
|
+
*/
|
|
260847
|
+
ClinicalNotePractitioner.prototype.postalCode = "";
|
|
260848
|
+
|
|
260849
|
+
/**
|
|
260850
|
+
* ClinicalNotePractitioner streetAddress.
|
|
260851
|
+
* @member {string} streetAddress
|
|
260852
|
+
* @memberof ClinicalNotePractitioner
|
|
260853
|
+
* @instance
|
|
260854
|
+
*/
|
|
260855
|
+
ClinicalNotePractitioner.prototype.streetAddress = "";
|
|
260856
|
+
|
|
260857
|
+
/**
|
|
260858
|
+
* ClinicalNotePractitioner streetAddress_2.
|
|
260859
|
+
* @member {string} streetAddress_2
|
|
260860
|
+
* @memberof ClinicalNotePractitioner
|
|
260861
|
+
* @instance
|
|
260862
|
+
*/
|
|
260863
|
+
ClinicalNotePractitioner.prototype.streetAddress_2 = "";
|
|
260864
|
+
|
|
260865
|
+
/**
|
|
260866
|
+
* Creates a new ClinicalNotePractitioner instance using the specified properties.
|
|
260867
|
+
* @function create
|
|
260868
|
+
* @memberof ClinicalNotePractitioner
|
|
260869
|
+
* @static
|
|
260870
|
+
* @param {ClinicalNotePractitioner.$Properties=} [properties] Properties to set
|
|
260871
|
+
* @returns {ClinicalNotePractitioner} ClinicalNotePractitioner instance
|
|
260872
|
+
* @type {{
|
|
260873
|
+
* (properties: ClinicalNotePractitioner.$Shape): ClinicalNotePractitioner & ClinicalNotePractitioner.$Shape;
|
|
260874
|
+
* (properties?: ClinicalNotePractitioner.$Properties): ClinicalNotePractitioner;
|
|
260875
|
+
* }}
|
|
260876
|
+
*/
|
|
260877
|
+
ClinicalNotePractitioner.create = function create(properties) {
|
|
260878
|
+
return new ClinicalNotePractitioner(properties);
|
|
260879
|
+
};
|
|
260880
|
+
|
|
260881
|
+
/**
|
|
260882
|
+
* Encodes the specified ClinicalNotePractitioner message. Does not implicitly {@link ClinicalNotePractitioner.verify|verify} messages.
|
|
260883
|
+
* @function encode
|
|
260884
|
+
* @memberof ClinicalNotePractitioner
|
|
260885
|
+
* @static
|
|
260886
|
+
* @param {ClinicalNotePractitioner.$Properties} message ClinicalNotePractitioner message or plain object to encode
|
|
260887
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
260888
|
+
* @returns {$protobuf.Writer} Writer
|
|
260889
|
+
*/
|
|
260890
|
+
ClinicalNotePractitioner.encode = function encode(message, writer) {
|
|
260891
|
+
if (!writer)
|
|
260892
|
+
writer = $Writer.create();
|
|
260893
|
+
if (message.givenName != null && Object.hasOwnProperty.call(message, "givenName"))
|
|
260894
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.givenName);
|
|
260895
|
+
if (message.lastName != null && Object.hasOwnProperty.call(message, "lastName"))
|
|
260896
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.lastName);
|
|
260897
|
+
if (message.npiIdentifier != null && Object.hasOwnProperty.call(message, "npiIdentifier"))
|
|
260898
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.npiIdentifier);
|
|
260899
|
+
if (message.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress"))
|
|
260900
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.emailAddress);
|
|
260901
|
+
if (message.phoneNumber != null && Object.hasOwnProperty.call(message, "phoneNumber"))
|
|
260902
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.phoneNumber);
|
|
260903
|
+
if (message.birthDate != null && Object.hasOwnProperty.call(message, "birthDate"))
|
|
260904
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.birthDate);
|
|
260905
|
+
if (message.country != null && Object.hasOwnProperty.call(message, "country"))
|
|
260906
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.country);
|
|
260907
|
+
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
260908
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.state);
|
|
260909
|
+
if (message.city != null && Object.hasOwnProperty.call(message, "city"))
|
|
260910
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.city);
|
|
260911
|
+
if (message.postalCode != null && Object.hasOwnProperty.call(message, "postalCode"))
|
|
260912
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.postalCode);
|
|
260913
|
+
if (message.streetAddress != null && Object.hasOwnProperty.call(message, "streetAddress"))
|
|
260914
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.streetAddress);
|
|
260915
|
+
if (message.streetAddress_2 != null && Object.hasOwnProperty.call(message, "streetAddress_2"))
|
|
260916
|
+
writer.uint32(/* id 12, wireType 2 =*/98).string(message.streetAddress_2);
|
|
260917
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
260918
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
260919
|
+
writer.raw(message.$unknowns[i]);
|
|
260920
|
+
return writer;
|
|
260921
|
+
};
|
|
260922
|
+
|
|
260923
|
+
/**
|
|
260924
|
+
* Encodes the specified ClinicalNotePractitioner message, length delimited. Does not implicitly {@link ClinicalNotePractitioner.verify|verify} messages.
|
|
260925
|
+
* @function encodeDelimited
|
|
260926
|
+
* @memberof ClinicalNotePractitioner
|
|
260927
|
+
* @static
|
|
260928
|
+
* @param {ClinicalNotePractitioner.$Properties} message ClinicalNotePractitioner message or plain object to encode
|
|
260929
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
260930
|
+
* @returns {$protobuf.Writer} Writer
|
|
260931
|
+
*/
|
|
260932
|
+
ClinicalNotePractitioner.encodeDelimited = function encodeDelimited(message, writer) {
|
|
260933
|
+
return this.encode(message, writer).ldelim();
|
|
260934
|
+
};
|
|
260935
|
+
|
|
260936
|
+
/**
|
|
260937
|
+
* Decodes a ClinicalNotePractitioner message from the specified reader or buffer.
|
|
260938
|
+
* @function decode
|
|
260939
|
+
* @memberof ClinicalNotePractitioner
|
|
260940
|
+
* @static
|
|
260941
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
260942
|
+
* @param {number} [length] Message length if known beforehand
|
|
260943
|
+
* @returns {ClinicalNotePractitioner & ClinicalNotePractitioner.$Shape} ClinicalNotePractitioner
|
|
260944
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
260945
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
260946
|
+
*/
|
|
260947
|
+
ClinicalNotePractitioner.decode = function decode(reader, length, _end, _depth, _target) {
|
|
260948
|
+
if (!(reader instanceof $Reader))
|
|
260949
|
+
reader = $Reader.create(reader);
|
|
260950
|
+
if (_depth === undefined)
|
|
260951
|
+
_depth = 0;
|
|
260952
|
+
if (_depth > $Reader.recursionLimit)
|
|
260953
|
+
throw Error("max depth exceeded");
|
|
260954
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.ClinicalNotePractitioner(), value;
|
|
260955
|
+
while (reader.pos < end) {
|
|
260956
|
+
var start = reader.pos;
|
|
260957
|
+
var tag = reader.tag();
|
|
260958
|
+
if (tag === _end) {
|
|
260959
|
+
_end = undefined;
|
|
260960
|
+
break;
|
|
260961
|
+
}
|
|
260962
|
+
var wireType = tag & 7;
|
|
260963
|
+
switch (tag >>>= 3) {
|
|
260964
|
+
case 1: {
|
|
260965
|
+
if (wireType !== 2)
|
|
260966
|
+
break;
|
|
260967
|
+
if ((value = reader.string()).length)
|
|
260968
|
+
message.givenName = value;
|
|
260969
|
+
else
|
|
260970
|
+
delete message.givenName;
|
|
260971
|
+
continue;
|
|
260972
|
+
}
|
|
260973
|
+
case 2: {
|
|
260974
|
+
if (wireType !== 2)
|
|
260975
|
+
break;
|
|
260976
|
+
if ((value = reader.string()).length)
|
|
260977
|
+
message.lastName = value;
|
|
260978
|
+
else
|
|
260979
|
+
delete message.lastName;
|
|
260980
|
+
continue;
|
|
260981
|
+
}
|
|
260982
|
+
case 3: {
|
|
260983
|
+
if (wireType !== 2)
|
|
260984
|
+
break;
|
|
260985
|
+
if ((value = reader.string()).length)
|
|
260986
|
+
message.npiIdentifier = value;
|
|
260987
|
+
else
|
|
260988
|
+
delete message.npiIdentifier;
|
|
260989
|
+
continue;
|
|
260990
|
+
}
|
|
260991
|
+
case 4: {
|
|
260992
|
+
if (wireType !== 2)
|
|
260993
|
+
break;
|
|
260994
|
+
if ((value = reader.string()).length)
|
|
260995
|
+
message.emailAddress = value;
|
|
260996
|
+
else
|
|
260997
|
+
delete message.emailAddress;
|
|
260998
|
+
continue;
|
|
260999
|
+
}
|
|
261000
|
+
case 5: {
|
|
261001
|
+
if (wireType !== 2)
|
|
261002
|
+
break;
|
|
261003
|
+
if ((value = reader.string()).length)
|
|
261004
|
+
message.phoneNumber = value;
|
|
261005
|
+
else
|
|
261006
|
+
delete message.phoneNumber;
|
|
261007
|
+
continue;
|
|
261008
|
+
}
|
|
261009
|
+
case 6: {
|
|
261010
|
+
if (wireType !== 2)
|
|
261011
|
+
break;
|
|
261012
|
+
if ((value = reader.string()).length)
|
|
261013
|
+
message.birthDate = value;
|
|
261014
|
+
else
|
|
261015
|
+
delete message.birthDate;
|
|
261016
|
+
continue;
|
|
261017
|
+
}
|
|
261018
|
+
case 7: {
|
|
261019
|
+
if (wireType !== 2)
|
|
261020
|
+
break;
|
|
261021
|
+
if ((value = reader.string()).length)
|
|
261022
|
+
message.country = value;
|
|
261023
|
+
else
|
|
261024
|
+
delete message.country;
|
|
261025
|
+
continue;
|
|
261026
|
+
}
|
|
261027
|
+
case 8: {
|
|
261028
|
+
if (wireType !== 2)
|
|
261029
|
+
break;
|
|
261030
|
+
if ((value = reader.string()).length)
|
|
261031
|
+
message.state = value;
|
|
261032
|
+
else
|
|
261033
|
+
delete message.state;
|
|
261034
|
+
continue;
|
|
261035
|
+
}
|
|
261036
|
+
case 9: {
|
|
261037
|
+
if (wireType !== 2)
|
|
261038
|
+
break;
|
|
261039
|
+
if ((value = reader.string()).length)
|
|
261040
|
+
message.city = value;
|
|
261041
|
+
else
|
|
261042
|
+
delete message.city;
|
|
261043
|
+
continue;
|
|
261044
|
+
}
|
|
261045
|
+
case 10: {
|
|
261046
|
+
if (wireType !== 2)
|
|
261047
|
+
break;
|
|
261048
|
+
if ((value = reader.string()).length)
|
|
261049
|
+
message.postalCode = value;
|
|
261050
|
+
else
|
|
261051
|
+
delete message.postalCode;
|
|
261052
|
+
continue;
|
|
261053
|
+
}
|
|
261054
|
+
case 11: {
|
|
261055
|
+
if (wireType !== 2)
|
|
261056
|
+
break;
|
|
261057
|
+
if ((value = reader.string()).length)
|
|
261058
|
+
message.streetAddress = value;
|
|
261059
|
+
else
|
|
261060
|
+
delete message.streetAddress;
|
|
261061
|
+
continue;
|
|
261062
|
+
}
|
|
261063
|
+
case 12: {
|
|
261064
|
+
if (wireType !== 2)
|
|
261065
|
+
break;
|
|
261066
|
+
if ((value = reader.string()).length)
|
|
261067
|
+
message.streetAddress_2 = value;
|
|
261068
|
+
else
|
|
261069
|
+
delete message.streetAddress_2;
|
|
261070
|
+
continue;
|
|
261071
|
+
}
|
|
261072
|
+
}
|
|
261073
|
+
reader.skipType(wireType, _depth, tag);
|
|
261074
|
+
$util.makeProp(message, "$unknowns", false);
|
|
261075
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
261076
|
+
}
|
|
261077
|
+
if (_end !== undefined)
|
|
261078
|
+
throw Error("missing end group");
|
|
261079
|
+
return message;
|
|
261080
|
+
};
|
|
261081
|
+
|
|
261082
|
+
/**
|
|
261083
|
+
* Decodes a ClinicalNotePractitioner message from the specified reader or buffer, length delimited.
|
|
261084
|
+
* @function decodeDelimited
|
|
261085
|
+
* @memberof ClinicalNotePractitioner
|
|
261086
|
+
* @static
|
|
261087
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
261088
|
+
* @returns {ClinicalNotePractitioner & ClinicalNotePractitioner.$Shape} ClinicalNotePractitioner
|
|
261089
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
261090
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
261091
|
+
*/
|
|
261092
|
+
ClinicalNotePractitioner.decodeDelimited = function decodeDelimited(reader) {
|
|
261093
|
+
if (!(reader instanceof $Reader))
|
|
261094
|
+
reader = new $Reader(reader);
|
|
261095
|
+
return this.decode(reader, reader.uint32());
|
|
261096
|
+
};
|
|
261097
|
+
|
|
261098
|
+
/**
|
|
261099
|
+
* Verifies a ClinicalNotePractitioner message.
|
|
261100
|
+
* @function verify
|
|
261101
|
+
* @memberof ClinicalNotePractitioner
|
|
261102
|
+
* @static
|
|
261103
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
261104
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
261105
|
+
*/
|
|
261106
|
+
ClinicalNotePractitioner.verify = function verify(message, _depth) {
|
|
261107
|
+
if (typeof message !== "object" || message === null)
|
|
261108
|
+
return "object expected";
|
|
261109
|
+
if (_depth === undefined)
|
|
261110
|
+
_depth = 0;
|
|
261111
|
+
if (_depth > $util.recursionLimit)
|
|
261112
|
+
return "max depth exceeded";
|
|
261113
|
+
if (message.givenName != null && message.hasOwnProperty("givenName"))
|
|
261114
|
+
if (!$util.isString(message.givenName))
|
|
261115
|
+
return "givenName: string expected";
|
|
261116
|
+
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
261117
|
+
if (!$util.isString(message.lastName))
|
|
261118
|
+
return "lastName: string expected";
|
|
261119
|
+
if (message.npiIdentifier != null && message.hasOwnProperty("npiIdentifier"))
|
|
261120
|
+
if (!$util.isString(message.npiIdentifier))
|
|
261121
|
+
return "npiIdentifier: string expected";
|
|
261122
|
+
if (message.emailAddress != null && message.hasOwnProperty("emailAddress"))
|
|
261123
|
+
if (!$util.isString(message.emailAddress))
|
|
261124
|
+
return "emailAddress: string expected";
|
|
261125
|
+
if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
|
|
261126
|
+
if (!$util.isString(message.phoneNumber))
|
|
261127
|
+
return "phoneNumber: string expected";
|
|
261128
|
+
if (message.birthDate != null && message.hasOwnProperty("birthDate"))
|
|
261129
|
+
if (!$util.isString(message.birthDate))
|
|
261130
|
+
return "birthDate: string expected";
|
|
261131
|
+
if (message.country != null && message.hasOwnProperty("country"))
|
|
261132
|
+
if (!$util.isString(message.country))
|
|
261133
|
+
return "country: string expected";
|
|
261134
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
261135
|
+
if (!$util.isString(message.state))
|
|
261136
|
+
return "state: string expected";
|
|
261137
|
+
if (message.city != null && message.hasOwnProperty("city"))
|
|
261138
|
+
if (!$util.isString(message.city))
|
|
261139
|
+
return "city: string expected";
|
|
261140
|
+
if (message.postalCode != null && message.hasOwnProperty("postalCode"))
|
|
261141
|
+
if (!$util.isString(message.postalCode))
|
|
261142
|
+
return "postalCode: string expected";
|
|
261143
|
+
if (message.streetAddress != null && message.hasOwnProperty("streetAddress"))
|
|
261144
|
+
if (!$util.isString(message.streetAddress))
|
|
261145
|
+
return "streetAddress: string expected";
|
|
261146
|
+
if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
|
|
261147
|
+
if (!$util.isString(message.streetAddress_2))
|
|
261148
|
+
return "streetAddress_2: string expected";
|
|
261149
|
+
return null;
|
|
261150
|
+
};
|
|
261151
|
+
|
|
261152
|
+
/**
|
|
261153
|
+
* Creates a ClinicalNotePractitioner message from a plain object. Also converts values to their respective internal types.
|
|
261154
|
+
* @function fromObject
|
|
261155
|
+
* @memberof ClinicalNotePractitioner
|
|
261156
|
+
* @static
|
|
261157
|
+
* @param {Object.<string,*>} object Plain object
|
|
261158
|
+
* @returns {ClinicalNotePractitioner} ClinicalNotePractitioner
|
|
261159
|
+
*/
|
|
261160
|
+
ClinicalNotePractitioner.fromObject = function fromObject(object, _depth) {
|
|
261161
|
+
if (object instanceof $root.ClinicalNotePractitioner)
|
|
261162
|
+
return object;
|
|
261163
|
+
if (_depth === undefined)
|
|
261164
|
+
_depth = 0;
|
|
261165
|
+
if (_depth > $util.recursionLimit)
|
|
261166
|
+
throw Error("max depth exceeded");
|
|
261167
|
+
var message = new $root.ClinicalNotePractitioner();
|
|
261168
|
+
if (object.givenName != null)
|
|
261169
|
+
if (typeof object.givenName !== "string" || object.givenName.length)
|
|
261170
|
+
message.givenName = String(object.givenName);
|
|
261171
|
+
if (object.lastName != null)
|
|
261172
|
+
if (typeof object.lastName !== "string" || object.lastName.length)
|
|
261173
|
+
message.lastName = String(object.lastName);
|
|
261174
|
+
if (object.npiIdentifier != null)
|
|
261175
|
+
if (typeof object.npiIdentifier !== "string" || object.npiIdentifier.length)
|
|
261176
|
+
message.npiIdentifier = String(object.npiIdentifier);
|
|
261177
|
+
if (object.emailAddress != null)
|
|
261178
|
+
if (typeof object.emailAddress !== "string" || object.emailAddress.length)
|
|
261179
|
+
message.emailAddress = String(object.emailAddress);
|
|
261180
|
+
if (object.phoneNumber != null)
|
|
261181
|
+
if (typeof object.phoneNumber !== "string" || object.phoneNumber.length)
|
|
261182
|
+
message.phoneNumber = String(object.phoneNumber);
|
|
261183
|
+
if (object.birthDate != null)
|
|
261184
|
+
if (typeof object.birthDate !== "string" || object.birthDate.length)
|
|
261185
|
+
message.birthDate = String(object.birthDate);
|
|
261186
|
+
if (object.country != null)
|
|
261187
|
+
if (typeof object.country !== "string" || object.country.length)
|
|
261188
|
+
message.country = String(object.country);
|
|
261189
|
+
if (object.state != null)
|
|
261190
|
+
if (typeof object.state !== "string" || object.state.length)
|
|
261191
|
+
message.state = String(object.state);
|
|
261192
|
+
if (object.city != null)
|
|
261193
|
+
if (typeof object.city !== "string" || object.city.length)
|
|
261194
|
+
message.city = String(object.city);
|
|
261195
|
+
if (object.postalCode != null)
|
|
261196
|
+
if (typeof object.postalCode !== "string" || object.postalCode.length)
|
|
261197
|
+
message.postalCode = String(object.postalCode);
|
|
261198
|
+
if (object.streetAddress != null)
|
|
261199
|
+
if (typeof object.streetAddress !== "string" || object.streetAddress.length)
|
|
261200
|
+
message.streetAddress = String(object.streetAddress);
|
|
261201
|
+
if (object.streetAddress_2 != null)
|
|
261202
|
+
if (typeof object.streetAddress_2 !== "string" || object.streetAddress_2.length)
|
|
261203
|
+
message.streetAddress_2 = String(object.streetAddress_2);
|
|
261204
|
+
return message;
|
|
261205
|
+
};
|
|
261206
|
+
|
|
261207
|
+
/**
|
|
261208
|
+
* Creates a plain object from a ClinicalNotePractitioner message. Also converts values to other types if specified.
|
|
261209
|
+
* @function toObject
|
|
261210
|
+
* @memberof ClinicalNotePractitioner
|
|
261211
|
+
* @static
|
|
261212
|
+
* @param {ClinicalNotePractitioner} message ClinicalNotePractitioner
|
|
261213
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
261214
|
+
* @returns {Object.<string,*>} Plain object
|
|
261215
|
+
*/
|
|
261216
|
+
ClinicalNotePractitioner.toObject = function toObject(message, options) {
|
|
261217
|
+
if (!options)
|
|
261218
|
+
options = {};
|
|
261219
|
+
var object = {};
|
|
261220
|
+
if (options.defaults) {
|
|
261221
|
+
object.givenName = "";
|
|
261222
|
+
object.lastName = "";
|
|
261223
|
+
object.npiIdentifier = "";
|
|
261224
|
+
object.emailAddress = "";
|
|
261225
|
+
object.phoneNumber = "";
|
|
261226
|
+
object.birthDate = "";
|
|
261227
|
+
object.country = "";
|
|
261228
|
+
object.state = "";
|
|
261229
|
+
object.city = "";
|
|
261230
|
+
object.postalCode = "";
|
|
261231
|
+
object.streetAddress = "";
|
|
261232
|
+
object.streetAddress_2 = "";
|
|
261233
|
+
}
|
|
261234
|
+
if (message.givenName != null && message.hasOwnProperty("givenName"))
|
|
261235
|
+
object.givenName = message.givenName;
|
|
261236
|
+
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
261237
|
+
object.lastName = message.lastName;
|
|
261238
|
+
if (message.npiIdentifier != null && message.hasOwnProperty("npiIdentifier"))
|
|
261239
|
+
object.npiIdentifier = message.npiIdentifier;
|
|
261240
|
+
if (message.emailAddress != null && message.hasOwnProperty("emailAddress"))
|
|
261241
|
+
object.emailAddress = message.emailAddress;
|
|
261242
|
+
if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
|
|
261243
|
+
object.phoneNumber = message.phoneNumber;
|
|
261244
|
+
if (message.birthDate != null && message.hasOwnProperty("birthDate"))
|
|
261245
|
+
object.birthDate = message.birthDate;
|
|
261246
|
+
if (message.country != null && message.hasOwnProperty("country"))
|
|
261247
|
+
object.country = message.country;
|
|
261248
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
261249
|
+
object.state = message.state;
|
|
261250
|
+
if (message.city != null && message.hasOwnProperty("city"))
|
|
261251
|
+
object.city = message.city;
|
|
261252
|
+
if (message.postalCode != null && message.hasOwnProperty("postalCode"))
|
|
261253
|
+
object.postalCode = message.postalCode;
|
|
261254
|
+
if (message.streetAddress != null && message.hasOwnProperty("streetAddress"))
|
|
261255
|
+
object.streetAddress = message.streetAddress;
|
|
261256
|
+
if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
|
|
261257
|
+
object.streetAddress_2 = message.streetAddress_2;
|
|
261258
|
+
return object;
|
|
261259
|
+
};
|
|
261260
|
+
|
|
261261
|
+
/**
|
|
261262
|
+
* Converts this ClinicalNotePractitioner to JSON.
|
|
261263
|
+
* @function toJSON
|
|
261264
|
+
* @memberof ClinicalNotePractitioner
|
|
261265
|
+
* @instance
|
|
261266
|
+
* @returns {Object.<string,*>} JSON object
|
|
261267
|
+
*/
|
|
261268
|
+
ClinicalNotePractitioner.prototype.toJSON = function toJSON() {
|
|
261269
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
261270
|
+
};
|
|
261271
|
+
|
|
261272
|
+
/**
|
|
261273
|
+
* Gets the type url for ClinicalNotePractitioner
|
|
261274
|
+
* @function getTypeUrl
|
|
261275
|
+
* @memberof ClinicalNotePractitioner
|
|
261276
|
+
* @static
|
|
261277
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
261278
|
+
* @returns {string} The type url
|
|
261279
|
+
*/
|
|
261280
|
+
ClinicalNotePractitioner.getTypeUrl = function getTypeUrl(prefix) {
|
|
261281
|
+
if (prefix === undefined)
|
|
261282
|
+
prefix = "type.googleapis.com";
|
|
261283
|
+
return prefix + "/ClinicalNotePractitioner";
|
|
261284
|
+
};
|
|
261285
|
+
|
|
261286
|
+
return ClinicalNotePractitioner;
|
|
261287
|
+
})();
|
|
261288
|
+
|
|
261289
|
+
$root.ClinicalNoteOrganization = (function() {
|
|
261290
|
+
|
|
261291
|
+
/**
|
|
261292
|
+
* Properties of a ClinicalNoteOrganization.
|
|
261293
|
+
* @typedef {Object} ClinicalNoteOrganization.$Properties
|
|
261294
|
+
* @property {string|null} [name] ClinicalNoteOrganization name
|
|
261295
|
+
* @property {string|null} [npiIdentifier] ClinicalNoteOrganization npiIdentifier
|
|
261296
|
+
* @property {string|null} [phoneNumber] ClinicalNoteOrganization phoneNumber
|
|
261297
|
+
* @property {string|null} [emailAddress] ClinicalNoteOrganization emailAddress
|
|
261298
|
+
* @property {string|null} [country] ClinicalNoteOrganization country
|
|
261299
|
+
* @property {string|null} [state] ClinicalNoteOrganization state
|
|
261300
|
+
* @property {string|null} [city] ClinicalNoteOrganization city
|
|
261301
|
+
* @property {string|null} [postalCode] ClinicalNoteOrganization postalCode
|
|
261302
|
+
* @property {string|null} [streetAddress] ClinicalNoteOrganization streetAddress
|
|
261303
|
+
* @property {string|null} [streetAddress_2] ClinicalNoteOrganization streetAddress_2
|
|
261304
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
261305
|
+
*/
|
|
261306
|
+
|
|
261307
|
+
/**
|
|
261308
|
+
* Properties of a ClinicalNoteOrganization.
|
|
261309
|
+
* @name IClinicalNoteOrganization
|
|
261310
|
+
* @interface IClinicalNoteOrganization
|
|
261311
|
+
* @augments ClinicalNoteOrganization.$Properties
|
|
261312
|
+
* @deprecated Use ClinicalNoteOrganization.$Properties instead.
|
|
261313
|
+
*/
|
|
261314
|
+
|
|
261315
|
+
/**
|
|
261316
|
+
* Shape of a ClinicalNoteOrganization.
|
|
261317
|
+
* @typedef {ClinicalNoteOrganization.$Properties} ClinicalNoteOrganization.$Shape
|
|
261318
|
+
*/
|
|
261319
|
+
|
|
261320
|
+
/**
|
|
261321
|
+
* Constructs a new ClinicalNoteOrganization.
|
|
261322
|
+
* @name ClinicalNoteOrganization
|
|
261323
|
+
* @classdesc Represents a ClinicalNoteOrganization.
|
|
261324
|
+
* @constructor
|
|
261325
|
+
* @param {ClinicalNoteOrganization.$Properties=} [properties] Properties to set
|
|
261326
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
261327
|
+
*/
|
|
261328
|
+
function ClinicalNoteOrganization(properties) {
|
|
261329
|
+
if (properties)
|
|
261330
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
261331
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
261332
|
+
this[keys[i]] = properties[keys[i]];
|
|
261333
|
+
}
|
|
261334
|
+
|
|
261335
|
+
/**
|
|
261336
|
+
* ClinicalNoteOrganization name.
|
|
261337
|
+
* @member {string} name
|
|
261338
|
+
* @memberof ClinicalNoteOrganization
|
|
261339
|
+
* @instance
|
|
261340
|
+
*/
|
|
261341
|
+
ClinicalNoteOrganization.prototype.name = "";
|
|
261342
|
+
|
|
261343
|
+
/**
|
|
261344
|
+
* ClinicalNoteOrganization npiIdentifier.
|
|
261345
|
+
* @member {string} npiIdentifier
|
|
261346
|
+
* @memberof ClinicalNoteOrganization
|
|
261347
|
+
* @instance
|
|
261348
|
+
*/
|
|
261349
|
+
ClinicalNoteOrganization.prototype.npiIdentifier = "";
|
|
261350
|
+
|
|
261351
|
+
/**
|
|
261352
|
+
* ClinicalNoteOrganization phoneNumber.
|
|
261353
|
+
* @member {string} phoneNumber
|
|
261354
|
+
* @memberof ClinicalNoteOrganization
|
|
261355
|
+
* @instance
|
|
261356
|
+
*/
|
|
261357
|
+
ClinicalNoteOrganization.prototype.phoneNumber = "";
|
|
261358
|
+
|
|
261359
|
+
/**
|
|
261360
|
+
* ClinicalNoteOrganization emailAddress.
|
|
261361
|
+
* @member {string} emailAddress
|
|
261362
|
+
* @memberof ClinicalNoteOrganization
|
|
261363
|
+
* @instance
|
|
261364
|
+
*/
|
|
261365
|
+
ClinicalNoteOrganization.prototype.emailAddress = "";
|
|
261366
|
+
|
|
261367
|
+
/**
|
|
261368
|
+
* ClinicalNoteOrganization country.
|
|
261369
|
+
* @member {string} country
|
|
261370
|
+
* @memberof ClinicalNoteOrganization
|
|
261371
|
+
* @instance
|
|
261372
|
+
*/
|
|
261373
|
+
ClinicalNoteOrganization.prototype.country = "";
|
|
261374
|
+
|
|
261375
|
+
/**
|
|
261376
|
+
* ClinicalNoteOrganization state.
|
|
261377
|
+
* @member {string} state
|
|
261378
|
+
* @memberof ClinicalNoteOrganization
|
|
261379
|
+
* @instance
|
|
261380
|
+
*/
|
|
261381
|
+
ClinicalNoteOrganization.prototype.state = "";
|
|
261382
|
+
|
|
261383
|
+
/**
|
|
261384
|
+
* ClinicalNoteOrganization city.
|
|
261385
|
+
* @member {string} city
|
|
261386
|
+
* @memberof ClinicalNoteOrganization
|
|
261387
|
+
* @instance
|
|
261388
|
+
*/
|
|
261389
|
+
ClinicalNoteOrganization.prototype.city = "";
|
|
261390
|
+
|
|
261391
|
+
/**
|
|
261392
|
+
* ClinicalNoteOrganization postalCode.
|
|
261393
|
+
* @member {string} postalCode
|
|
261394
|
+
* @memberof ClinicalNoteOrganization
|
|
261395
|
+
* @instance
|
|
261396
|
+
*/
|
|
261397
|
+
ClinicalNoteOrganization.prototype.postalCode = "";
|
|
261398
|
+
|
|
261399
|
+
/**
|
|
261400
|
+
* ClinicalNoteOrganization streetAddress.
|
|
261401
|
+
* @member {string} streetAddress
|
|
261402
|
+
* @memberof ClinicalNoteOrganization
|
|
261403
|
+
* @instance
|
|
261404
|
+
*/
|
|
261405
|
+
ClinicalNoteOrganization.prototype.streetAddress = "";
|
|
261406
|
+
|
|
261407
|
+
/**
|
|
261408
|
+
* ClinicalNoteOrganization streetAddress_2.
|
|
261409
|
+
* @member {string} streetAddress_2
|
|
261410
|
+
* @memberof ClinicalNoteOrganization
|
|
261411
|
+
* @instance
|
|
261412
|
+
*/
|
|
261413
|
+
ClinicalNoteOrganization.prototype.streetAddress_2 = "";
|
|
261414
|
+
|
|
261415
|
+
/**
|
|
261416
|
+
* Creates a new ClinicalNoteOrganization instance using the specified properties.
|
|
261417
|
+
* @function create
|
|
261418
|
+
* @memberof ClinicalNoteOrganization
|
|
261419
|
+
* @static
|
|
261420
|
+
* @param {ClinicalNoteOrganization.$Properties=} [properties] Properties to set
|
|
261421
|
+
* @returns {ClinicalNoteOrganization} ClinicalNoteOrganization instance
|
|
261422
|
+
* @type {{
|
|
261423
|
+
* (properties: ClinicalNoteOrganization.$Shape): ClinicalNoteOrganization & ClinicalNoteOrganization.$Shape;
|
|
261424
|
+
* (properties?: ClinicalNoteOrganization.$Properties): ClinicalNoteOrganization;
|
|
261425
|
+
* }}
|
|
261426
|
+
*/
|
|
261427
|
+
ClinicalNoteOrganization.create = function create(properties) {
|
|
261428
|
+
return new ClinicalNoteOrganization(properties);
|
|
261429
|
+
};
|
|
261430
|
+
|
|
261431
|
+
/**
|
|
261432
|
+
* Encodes the specified ClinicalNoteOrganization message. Does not implicitly {@link ClinicalNoteOrganization.verify|verify} messages.
|
|
261433
|
+
* @function encode
|
|
261434
|
+
* @memberof ClinicalNoteOrganization
|
|
261435
|
+
* @static
|
|
261436
|
+
* @param {ClinicalNoteOrganization.$Properties} message ClinicalNoteOrganization message or plain object to encode
|
|
261437
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
261438
|
+
* @returns {$protobuf.Writer} Writer
|
|
261439
|
+
*/
|
|
261440
|
+
ClinicalNoteOrganization.encode = function encode(message, writer) {
|
|
261441
|
+
if (!writer)
|
|
261442
|
+
writer = $Writer.create();
|
|
261443
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
261444
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
261445
|
+
if (message.npiIdentifier != null && Object.hasOwnProperty.call(message, "npiIdentifier"))
|
|
261446
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.npiIdentifier);
|
|
261447
|
+
if (message.phoneNumber != null && Object.hasOwnProperty.call(message, "phoneNumber"))
|
|
261448
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.phoneNumber);
|
|
261449
|
+
if (message.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress"))
|
|
261450
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.emailAddress);
|
|
261451
|
+
if (message.country != null && Object.hasOwnProperty.call(message, "country"))
|
|
261452
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.country);
|
|
261453
|
+
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
261454
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.state);
|
|
261455
|
+
if (message.city != null && Object.hasOwnProperty.call(message, "city"))
|
|
261456
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.city);
|
|
261457
|
+
if (message.postalCode != null && Object.hasOwnProperty.call(message, "postalCode"))
|
|
261458
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.postalCode);
|
|
261459
|
+
if (message.streetAddress != null && Object.hasOwnProperty.call(message, "streetAddress"))
|
|
261460
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.streetAddress);
|
|
261461
|
+
if (message.streetAddress_2 != null && Object.hasOwnProperty.call(message, "streetAddress_2"))
|
|
261462
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.streetAddress_2);
|
|
261463
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
261464
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
261465
|
+
writer.raw(message.$unknowns[i]);
|
|
261466
|
+
return writer;
|
|
261467
|
+
};
|
|
261468
|
+
|
|
261469
|
+
/**
|
|
261470
|
+
* Encodes the specified ClinicalNoteOrganization message, length delimited. Does not implicitly {@link ClinicalNoteOrganization.verify|verify} messages.
|
|
261471
|
+
* @function encodeDelimited
|
|
261472
|
+
* @memberof ClinicalNoteOrganization
|
|
261473
|
+
* @static
|
|
261474
|
+
* @param {ClinicalNoteOrganization.$Properties} message ClinicalNoteOrganization message or plain object to encode
|
|
261475
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
261476
|
+
* @returns {$protobuf.Writer} Writer
|
|
261477
|
+
*/
|
|
261478
|
+
ClinicalNoteOrganization.encodeDelimited = function encodeDelimited(message, writer) {
|
|
261479
|
+
return this.encode(message, writer).ldelim();
|
|
261480
|
+
};
|
|
261481
|
+
|
|
261482
|
+
/**
|
|
261483
|
+
* Decodes a ClinicalNoteOrganization message from the specified reader or buffer.
|
|
261484
|
+
* @function decode
|
|
261485
|
+
* @memberof ClinicalNoteOrganization
|
|
261486
|
+
* @static
|
|
261487
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
261488
|
+
* @param {number} [length] Message length if known beforehand
|
|
261489
|
+
* @returns {ClinicalNoteOrganization & ClinicalNoteOrganization.$Shape} ClinicalNoteOrganization
|
|
261490
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
261491
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
261492
|
+
*/
|
|
261493
|
+
ClinicalNoteOrganization.decode = function decode(reader, length, _end, _depth, _target) {
|
|
261494
|
+
if (!(reader instanceof $Reader))
|
|
261495
|
+
reader = $Reader.create(reader);
|
|
261496
|
+
if (_depth === undefined)
|
|
261497
|
+
_depth = 0;
|
|
261498
|
+
if (_depth > $Reader.recursionLimit)
|
|
261499
|
+
throw Error("max depth exceeded");
|
|
261500
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.ClinicalNoteOrganization(), value;
|
|
261501
|
+
while (reader.pos < end) {
|
|
261502
|
+
var start = reader.pos;
|
|
261503
|
+
var tag = reader.tag();
|
|
261504
|
+
if (tag === _end) {
|
|
261505
|
+
_end = undefined;
|
|
261506
|
+
break;
|
|
261507
|
+
}
|
|
261508
|
+
var wireType = tag & 7;
|
|
261509
|
+
switch (tag >>>= 3) {
|
|
261510
|
+
case 1: {
|
|
261511
|
+
if (wireType !== 2)
|
|
261512
|
+
break;
|
|
261513
|
+
if ((value = reader.string()).length)
|
|
261514
|
+
message.name = value;
|
|
261515
|
+
else
|
|
261516
|
+
delete message.name;
|
|
261517
|
+
continue;
|
|
261518
|
+
}
|
|
261519
|
+
case 2: {
|
|
261520
|
+
if (wireType !== 2)
|
|
261521
|
+
break;
|
|
261522
|
+
if ((value = reader.string()).length)
|
|
261523
|
+
message.npiIdentifier = value;
|
|
261524
|
+
else
|
|
261525
|
+
delete message.npiIdentifier;
|
|
261526
|
+
continue;
|
|
261527
|
+
}
|
|
261528
|
+
case 3: {
|
|
261529
|
+
if (wireType !== 2)
|
|
261530
|
+
break;
|
|
261531
|
+
if ((value = reader.string()).length)
|
|
261532
|
+
message.phoneNumber = value;
|
|
261533
|
+
else
|
|
261534
|
+
delete message.phoneNumber;
|
|
261535
|
+
continue;
|
|
261536
|
+
}
|
|
261537
|
+
case 4: {
|
|
261538
|
+
if (wireType !== 2)
|
|
261539
|
+
break;
|
|
261540
|
+
if ((value = reader.string()).length)
|
|
261541
|
+
message.emailAddress = value;
|
|
261542
|
+
else
|
|
261543
|
+
delete message.emailAddress;
|
|
261544
|
+
continue;
|
|
261545
|
+
}
|
|
261546
|
+
case 5: {
|
|
261547
|
+
if (wireType !== 2)
|
|
261548
|
+
break;
|
|
261549
|
+
if ((value = reader.string()).length)
|
|
261550
|
+
message.country = value;
|
|
261551
|
+
else
|
|
261552
|
+
delete message.country;
|
|
261553
|
+
continue;
|
|
261554
|
+
}
|
|
261555
|
+
case 6: {
|
|
261556
|
+
if (wireType !== 2)
|
|
261557
|
+
break;
|
|
261558
|
+
if ((value = reader.string()).length)
|
|
261559
|
+
message.state = value;
|
|
261560
|
+
else
|
|
261561
|
+
delete message.state;
|
|
261562
|
+
continue;
|
|
261563
|
+
}
|
|
261564
|
+
case 7: {
|
|
261565
|
+
if (wireType !== 2)
|
|
261566
|
+
break;
|
|
261567
|
+
if ((value = reader.string()).length)
|
|
261568
|
+
message.city = value;
|
|
261569
|
+
else
|
|
261570
|
+
delete message.city;
|
|
261571
|
+
continue;
|
|
261572
|
+
}
|
|
261573
|
+
case 8: {
|
|
261574
|
+
if (wireType !== 2)
|
|
261575
|
+
break;
|
|
261576
|
+
if ((value = reader.string()).length)
|
|
261577
|
+
message.postalCode = value;
|
|
261578
|
+
else
|
|
261579
|
+
delete message.postalCode;
|
|
261580
|
+
continue;
|
|
261581
|
+
}
|
|
261582
|
+
case 9: {
|
|
261583
|
+
if (wireType !== 2)
|
|
261584
|
+
break;
|
|
261585
|
+
if ((value = reader.string()).length)
|
|
261586
|
+
message.streetAddress = value;
|
|
261587
|
+
else
|
|
261588
|
+
delete message.streetAddress;
|
|
261589
|
+
continue;
|
|
261590
|
+
}
|
|
261591
|
+
case 10: {
|
|
261592
|
+
if (wireType !== 2)
|
|
261593
|
+
break;
|
|
261594
|
+
if ((value = reader.string()).length)
|
|
261595
|
+
message.streetAddress_2 = value;
|
|
261596
|
+
else
|
|
261597
|
+
delete message.streetAddress_2;
|
|
261598
|
+
continue;
|
|
261599
|
+
}
|
|
261600
|
+
}
|
|
261601
|
+
reader.skipType(wireType, _depth, tag);
|
|
261602
|
+
$util.makeProp(message, "$unknowns", false);
|
|
261603
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
261604
|
+
}
|
|
261605
|
+
if (_end !== undefined)
|
|
261606
|
+
throw Error("missing end group");
|
|
261607
|
+
return message;
|
|
261608
|
+
};
|
|
261609
|
+
|
|
261610
|
+
/**
|
|
261611
|
+
* Decodes a ClinicalNoteOrganization message from the specified reader or buffer, length delimited.
|
|
261612
|
+
* @function decodeDelimited
|
|
261613
|
+
* @memberof ClinicalNoteOrganization
|
|
261614
|
+
* @static
|
|
261615
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
261616
|
+
* @returns {ClinicalNoteOrganization & ClinicalNoteOrganization.$Shape} ClinicalNoteOrganization
|
|
261617
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
261618
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
261619
|
+
*/
|
|
261620
|
+
ClinicalNoteOrganization.decodeDelimited = function decodeDelimited(reader) {
|
|
261621
|
+
if (!(reader instanceof $Reader))
|
|
261622
|
+
reader = new $Reader(reader);
|
|
261623
|
+
return this.decode(reader, reader.uint32());
|
|
261624
|
+
};
|
|
261625
|
+
|
|
261626
|
+
/**
|
|
261627
|
+
* Verifies a ClinicalNoteOrganization message.
|
|
261628
|
+
* @function verify
|
|
261629
|
+
* @memberof ClinicalNoteOrganization
|
|
261630
|
+
* @static
|
|
261631
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
261632
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
261633
|
+
*/
|
|
261634
|
+
ClinicalNoteOrganization.verify = function verify(message, _depth) {
|
|
261635
|
+
if (typeof message !== "object" || message === null)
|
|
261636
|
+
return "object expected";
|
|
261637
|
+
if (_depth === undefined)
|
|
261638
|
+
_depth = 0;
|
|
261639
|
+
if (_depth > $util.recursionLimit)
|
|
261640
|
+
return "max depth exceeded";
|
|
261641
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
261642
|
+
if (!$util.isString(message.name))
|
|
261643
|
+
return "name: string expected";
|
|
261644
|
+
if (message.npiIdentifier != null && message.hasOwnProperty("npiIdentifier"))
|
|
261645
|
+
if (!$util.isString(message.npiIdentifier))
|
|
261646
|
+
return "npiIdentifier: string expected";
|
|
261647
|
+
if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
|
|
261648
|
+
if (!$util.isString(message.phoneNumber))
|
|
261649
|
+
return "phoneNumber: string expected";
|
|
261650
|
+
if (message.emailAddress != null && message.hasOwnProperty("emailAddress"))
|
|
261651
|
+
if (!$util.isString(message.emailAddress))
|
|
261652
|
+
return "emailAddress: string expected";
|
|
261653
|
+
if (message.country != null && message.hasOwnProperty("country"))
|
|
261654
|
+
if (!$util.isString(message.country))
|
|
261655
|
+
return "country: string expected";
|
|
261656
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
261657
|
+
if (!$util.isString(message.state))
|
|
261658
|
+
return "state: string expected";
|
|
261659
|
+
if (message.city != null && message.hasOwnProperty("city"))
|
|
261660
|
+
if (!$util.isString(message.city))
|
|
261661
|
+
return "city: string expected";
|
|
261662
|
+
if (message.postalCode != null && message.hasOwnProperty("postalCode"))
|
|
261663
|
+
if (!$util.isString(message.postalCode))
|
|
261664
|
+
return "postalCode: string expected";
|
|
261665
|
+
if (message.streetAddress != null && message.hasOwnProperty("streetAddress"))
|
|
261666
|
+
if (!$util.isString(message.streetAddress))
|
|
261667
|
+
return "streetAddress: string expected";
|
|
261668
|
+
if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
|
|
261669
|
+
if (!$util.isString(message.streetAddress_2))
|
|
261670
|
+
return "streetAddress_2: string expected";
|
|
261671
|
+
return null;
|
|
261672
|
+
};
|
|
261673
|
+
|
|
261674
|
+
/**
|
|
261675
|
+
* Creates a ClinicalNoteOrganization message from a plain object. Also converts values to their respective internal types.
|
|
261676
|
+
* @function fromObject
|
|
261677
|
+
* @memberof ClinicalNoteOrganization
|
|
261678
|
+
* @static
|
|
261679
|
+
* @param {Object.<string,*>} object Plain object
|
|
261680
|
+
* @returns {ClinicalNoteOrganization} ClinicalNoteOrganization
|
|
261681
|
+
*/
|
|
261682
|
+
ClinicalNoteOrganization.fromObject = function fromObject(object, _depth) {
|
|
261683
|
+
if (object instanceof $root.ClinicalNoteOrganization)
|
|
261684
|
+
return object;
|
|
261685
|
+
if (_depth === undefined)
|
|
261686
|
+
_depth = 0;
|
|
261687
|
+
if (_depth > $util.recursionLimit)
|
|
261688
|
+
throw Error("max depth exceeded");
|
|
261689
|
+
var message = new $root.ClinicalNoteOrganization();
|
|
261690
|
+
if (object.name != null)
|
|
261691
|
+
if (typeof object.name !== "string" || object.name.length)
|
|
261692
|
+
message.name = String(object.name);
|
|
261693
|
+
if (object.npiIdentifier != null)
|
|
261694
|
+
if (typeof object.npiIdentifier !== "string" || object.npiIdentifier.length)
|
|
261695
|
+
message.npiIdentifier = String(object.npiIdentifier);
|
|
261696
|
+
if (object.phoneNumber != null)
|
|
261697
|
+
if (typeof object.phoneNumber !== "string" || object.phoneNumber.length)
|
|
261698
|
+
message.phoneNumber = String(object.phoneNumber);
|
|
261699
|
+
if (object.emailAddress != null)
|
|
261700
|
+
if (typeof object.emailAddress !== "string" || object.emailAddress.length)
|
|
261701
|
+
message.emailAddress = String(object.emailAddress);
|
|
261702
|
+
if (object.country != null)
|
|
261703
|
+
if (typeof object.country !== "string" || object.country.length)
|
|
261704
|
+
message.country = String(object.country);
|
|
261705
|
+
if (object.state != null)
|
|
261706
|
+
if (typeof object.state !== "string" || object.state.length)
|
|
261707
|
+
message.state = String(object.state);
|
|
261708
|
+
if (object.city != null)
|
|
261709
|
+
if (typeof object.city !== "string" || object.city.length)
|
|
261710
|
+
message.city = String(object.city);
|
|
261711
|
+
if (object.postalCode != null)
|
|
261712
|
+
if (typeof object.postalCode !== "string" || object.postalCode.length)
|
|
261713
|
+
message.postalCode = String(object.postalCode);
|
|
261714
|
+
if (object.streetAddress != null)
|
|
261715
|
+
if (typeof object.streetAddress !== "string" || object.streetAddress.length)
|
|
261716
|
+
message.streetAddress = String(object.streetAddress);
|
|
261717
|
+
if (object.streetAddress_2 != null)
|
|
261718
|
+
if (typeof object.streetAddress_2 !== "string" || object.streetAddress_2.length)
|
|
261719
|
+
message.streetAddress_2 = String(object.streetAddress_2);
|
|
261720
|
+
return message;
|
|
261721
|
+
};
|
|
261722
|
+
|
|
261723
|
+
/**
|
|
261724
|
+
* Creates a plain object from a ClinicalNoteOrganization message. Also converts values to other types if specified.
|
|
261725
|
+
* @function toObject
|
|
261726
|
+
* @memberof ClinicalNoteOrganization
|
|
261727
|
+
* @static
|
|
261728
|
+
* @param {ClinicalNoteOrganization} message ClinicalNoteOrganization
|
|
261729
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
261730
|
+
* @returns {Object.<string,*>} Plain object
|
|
261731
|
+
*/
|
|
261732
|
+
ClinicalNoteOrganization.toObject = function toObject(message, options) {
|
|
261733
|
+
if (!options)
|
|
261734
|
+
options = {};
|
|
261735
|
+
var object = {};
|
|
261736
|
+
if (options.defaults) {
|
|
261737
|
+
object.name = "";
|
|
261738
|
+
object.npiIdentifier = "";
|
|
261739
|
+
object.phoneNumber = "";
|
|
261740
|
+
object.emailAddress = "";
|
|
261741
|
+
object.country = "";
|
|
261742
|
+
object.state = "";
|
|
261743
|
+
object.city = "";
|
|
261744
|
+
object.postalCode = "";
|
|
261745
|
+
object.streetAddress = "";
|
|
261746
|
+
object.streetAddress_2 = "";
|
|
261747
|
+
}
|
|
261748
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
261749
|
+
object.name = message.name;
|
|
261750
|
+
if (message.npiIdentifier != null && message.hasOwnProperty("npiIdentifier"))
|
|
261751
|
+
object.npiIdentifier = message.npiIdentifier;
|
|
261752
|
+
if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
|
|
261753
|
+
object.phoneNumber = message.phoneNumber;
|
|
261754
|
+
if (message.emailAddress != null && message.hasOwnProperty("emailAddress"))
|
|
261755
|
+
object.emailAddress = message.emailAddress;
|
|
261756
|
+
if (message.country != null && message.hasOwnProperty("country"))
|
|
261757
|
+
object.country = message.country;
|
|
261758
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
261759
|
+
object.state = message.state;
|
|
261760
|
+
if (message.city != null && message.hasOwnProperty("city"))
|
|
261761
|
+
object.city = message.city;
|
|
261762
|
+
if (message.postalCode != null && message.hasOwnProperty("postalCode"))
|
|
261763
|
+
object.postalCode = message.postalCode;
|
|
261764
|
+
if (message.streetAddress != null && message.hasOwnProperty("streetAddress"))
|
|
261765
|
+
object.streetAddress = message.streetAddress;
|
|
261766
|
+
if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
|
|
261767
|
+
object.streetAddress_2 = message.streetAddress_2;
|
|
261768
|
+
return object;
|
|
261769
|
+
};
|
|
261770
|
+
|
|
261771
|
+
/**
|
|
261772
|
+
* Converts this ClinicalNoteOrganization to JSON.
|
|
261773
|
+
* @function toJSON
|
|
261774
|
+
* @memberof ClinicalNoteOrganization
|
|
261775
|
+
* @instance
|
|
261776
|
+
* @returns {Object.<string,*>} JSON object
|
|
261777
|
+
*/
|
|
261778
|
+
ClinicalNoteOrganization.prototype.toJSON = function toJSON() {
|
|
261779
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
261780
|
+
};
|
|
261781
|
+
|
|
261782
|
+
/**
|
|
261783
|
+
* Gets the type url for ClinicalNoteOrganization
|
|
261784
|
+
* @function getTypeUrl
|
|
261785
|
+
* @memberof ClinicalNoteOrganization
|
|
261786
|
+
* @static
|
|
261787
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
261788
|
+
* @returns {string} The type url
|
|
261789
|
+
*/
|
|
261790
|
+
ClinicalNoteOrganization.getTypeUrl = function getTypeUrl(prefix) {
|
|
261791
|
+
if (prefix === undefined)
|
|
261792
|
+
prefix = "type.googleapis.com";
|
|
261793
|
+
return prefix + "/ClinicalNoteOrganization";
|
|
261794
|
+
};
|
|
261795
|
+
|
|
261796
|
+
return ClinicalNoteOrganization;
|
|
261797
|
+
})();
|
|
261798
|
+
|
|
261799
|
+
$root.ClinicalNoteEncounter = (function() {
|
|
261800
|
+
|
|
261801
|
+
/**
|
|
261802
|
+
* Properties of a ClinicalNoteEncounter.
|
|
261803
|
+
* @typedef {Object} ClinicalNoteEncounter.$Properties
|
|
261804
|
+
* @property {Array.<string>|null} [cptCodes] ClinicalNoteEncounter cptCodes
|
|
261805
|
+
* @property {string|null} [encounterStatus] ClinicalNoteEncounter encounterStatus
|
|
261806
|
+
* @property {number|Long|null} [encounterStart] ClinicalNoteEncounter encounterStart
|
|
261807
|
+
* @property {number|Long|null} [encounterEnd] ClinicalNoteEncounter encounterEnd
|
|
261808
|
+
* @property {string|null} [appointmentId] ClinicalNoteEncounter appointmentId
|
|
261809
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
261810
|
+
*/
|
|
261811
|
+
|
|
261812
|
+
/**
|
|
261813
|
+
* Properties of a ClinicalNoteEncounter.
|
|
261814
|
+
* @name IClinicalNoteEncounter
|
|
261815
|
+
* @interface IClinicalNoteEncounter
|
|
261816
|
+
* @augments ClinicalNoteEncounter.$Properties
|
|
261817
|
+
* @deprecated Use ClinicalNoteEncounter.$Properties instead.
|
|
261818
|
+
*/
|
|
261819
|
+
|
|
261820
|
+
/**
|
|
261821
|
+
* Shape of a ClinicalNoteEncounter.
|
|
261822
|
+
* @typedef {ClinicalNoteEncounter.$Properties} ClinicalNoteEncounter.$Shape
|
|
261823
|
+
*/
|
|
261824
|
+
|
|
261825
|
+
/**
|
|
261826
|
+
* Constructs a new ClinicalNoteEncounter.
|
|
261827
|
+
* @name ClinicalNoteEncounter
|
|
261828
|
+
* @classdesc Represents a ClinicalNoteEncounter.
|
|
261829
|
+
* @constructor
|
|
261830
|
+
* @param {ClinicalNoteEncounter.$Properties=} [properties] Properties to set
|
|
261831
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
261832
|
+
*/
|
|
261833
|
+
function ClinicalNoteEncounter(properties) {
|
|
261834
|
+
this.cptCodes = [];
|
|
261835
|
+
if (properties)
|
|
261836
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
261837
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
261838
|
+
this[keys[i]] = properties[keys[i]];
|
|
261839
|
+
}
|
|
261840
|
+
|
|
261841
|
+
/**
|
|
261842
|
+
* ClinicalNoteEncounter cptCodes.
|
|
261843
|
+
* @member {Array.<string>} cptCodes
|
|
261844
|
+
* @memberof ClinicalNoteEncounter
|
|
261845
|
+
* @instance
|
|
261846
|
+
*/
|
|
261847
|
+
ClinicalNoteEncounter.prototype.cptCodes = $util.emptyArray;
|
|
261848
|
+
|
|
261849
|
+
/**
|
|
261850
|
+
* ClinicalNoteEncounter encounterStatus.
|
|
261851
|
+
* @member {string} encounterStatus
|
|
261852
|
+
* @memberof ClinicalNoteEncounter
|
|
261853
|
+
* @instance
|
|
261854
|
+
*/
|
|
261855
|
+
ClinicalNoteEncounter.prototype.encounterStatus = "";
|
|
261856
|
+
|
|
261857
|
+
/**
|
|
261858
|
+
* ClinicalNoteEncounter encounterStart.
|
|
261859
|
+
* @member {number|Long} encounterStart
|
|
261860
|
+
* @memberof ClinicalNoteEncounter
|
|
261861
|
+
* @instance
|
|
261862
|
+
*/
|
|
261863
|
+
ClinicalNoteEncounter.prototype.encounterStart = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
261864
|
+
|
|
261865
|
+
/**
|
|
261866
|
+
* ClinicalNoteEncounter encounterEnd.
|
|
261867
|
+
* @member {number|Long} encounterEnd
|
|
261868
|
+
* @memberof ClinicalNoteEncounter
|
|
261869
|
+
* @instance
|
|
261870
|
+
*/
|
|
261871
|
+
ClinicalNoteEncounter.prototype.encounterEnd = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
261872
|
+
|
|
261873
|
+
/**
|
|
261874
|
+
* ClinicalNoteEncounter appointmentId.
|
|
261875
|
+
* @member {string} appointmentId
|
|
261876
|
+
* @memberof ClinicalNoteEncounter
|
|
261877
|
+
* @instance
|
|
261878
|
+
*/
|
|
261879
|
+
ClinicalNoteEncounter.prototype.appointmentId = "";
|
|
261880
|
+
|
|
261881
|
+
/**
|
|
261882
|
+
* Creates a new ClinicalNoteEncounter instance using the specified properties.
|
|
261883
|
+
* @function create
|
|
261884
|
+
* @memberof ClinicalNoteEncounter
|
|
261885
|
+
* @static
|
|
261886
|
+
* @param {ClinicalNoteEncounter.$Properties=} [properties] Properties to set
|
|
261887
|
+
* @returns {ClinicalNoteEncounter} ClinicalNoteEncounter instance
|
|
261888
|
+
* @type {{
|
|
261889
|
+
* (properties: ClinicalNoteEncounter.$Shape): ClinicalNoteEncounter & ClinicalNoteEncounter.$Shape;
|
|
261890
|
+
* (properties?: ClinicalNoteEncounter.$Properties): ClinicalNoteEncounter;
|
|
261891
|
+
* }}
|
|
261892
|
+
*/
|
|
261893
|
+
ClinicalNoteEncounter.create = function create(properties) {
|
|
261894
|
+
return new ClinicalNoteEncounter(properties);
|
|
261895
|
+
};
|
|
261896
|
+
|
|
261897
|
+
/**
|
|
261898
|
+
* Encodes the specified ClinicalNoteEncounter message. Does not implicitly {@link ClinicalNoteEncounter.verify|verify} messages.
|
|
261899
|
+
* @function encode
|
|
261900
|
+
* @memberof ClinicalNoteEncounter
|
|
261901
|
+
* @static
|
|
261902
|
+
* @param {ClinicalNoteEncounter.$Properties} message ClinicalNoteEncounter message or plain object to encode
|
|
261903
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
261904
|
+
* @returns {$protobuf.Writer} Writer
|
|
261905
|
+
*/
|
|
261906
|
+
ClinicalNoteEncounter.encode = function encode(message, writer) {
|
|
261907
|
+
if (!writer)
|
|
261908
|
+
writer = $Writer.create();
|
|
261909
|
+
if (message.cptCodes != null && message.cptCodes.length)
|
|
261910
|
+
for (var i = 0; i < message.cptCodes.length; ++i)
|
|
261911
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.cptCodes[i]);
|
|
261912
|
+
if (message.encounterStatus != null && Object.hasOwnProperty.call(message, "encounterStatus"))
|
|
261913
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.encounterStatus);
|
|
261914
|
+
if (message.encounterStart != null && Object.hasOwnProperty.call(message, "encounterStart"))
|
|
261915
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.encounterStart);
|
|
261916
|
+
if (message.encounterEnd != null && Object.hasOwnProperty.call(message, "encounterEnd"))
|
|
261917
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.encounterEnd);
|
|
261918
|
+
if (message.appointmentId != null && Object.hasOwnProperty.call(message, "appointmentId"))
|
|
261919
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.appointmentId);
|
|
261920
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
261921
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
261922
|
+
writer.raw(message.$unknowns[i]);
|
|
261923
|
+
return writer;
|
|
261924
|
+
};
|
|
261925
|
+
|
|
261926
|
+
/**
|
|
261927
|
+
* Encodes the specified ClinicalNoteEncounter message, length delimited. Does not implicitly {@link ClinicalNoteEncounter.verify|verify} messages.
|
|
261928
|
+
* @function encodeDelimited
|
|
261929
|
+
* @memberof ClinicalNoteEncounter
|
|
261930
|
+
* @static
|
|
261931
|
+
* @param {ClinicalNoteEncounter.$Properties} message ClinicalNoteEncounter message or plain object to encode
|
|
261932
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
261933
|
+
* @returns {$protobuf.Writer} Writer
|
|
261934
|
+
*/
|
|
261935
|
+
ClinicalNoteEncounter.encodeDelimited = function encodeDelimited(message, writer) {
|
|
261936
|
+
return this.encode(message, writer).ldelim();
|
|
261937
|
+
};
|
|
261938
|
+
|
|
261939
|
+
/**
|
|
261940
|
+
* Decodes a ClinicalNoteEncounter message from the specified reader or buffer.
|
|
261941
|
+
* @function decode
|
|
261942
|
+
* @memberof ClinicalNoteEncounter
|
|
261943
|
+
* @static
|
|
261944
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
261945
|
+
* @param {number} [length] Message length if known beforehand
|
|
261946
|
+
* @returns {ClinicalNoteEncounter & ClinicalNoteEncounter.$Shape} ClinicalNoteEncounter
|
|
261947
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
261948
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
261949
|
+
*/
|
|
261950
|
+
ClinicalNoteEncounter.decode = function decode(reader, length, _end, _depth, _target) {
|
|
261951
|
+
if (!(reader instanceof $Reader))
|
|
261952
|
+
reader = $Reader.create(reader);
|
|
261953
|
+
if (_depth === undefined)
|
|
261954
|
+
_depth = 0;
|
|
261955
|
+
if (_depth > $Reader.recursionLimit)
|
|
261956
|
+
throw Error("max depth exceeded");
|
|
261957
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.ClinicalNoteEncounter(), value;
|
|
261958
|
+
while (reader.pos < end) {
|
|
261959
|
+
var start = reader.pos;
|
|
261960
|
+
var tag = reader.tag();
|
|
261961
|
+
if (tag === _end) {
|
|
261962
|
+
_end = undefined;
|
|
261963
|
+
break;
|
|
261964
|
+
}
|
|
261965
|
+
var wireType = tag & 7;
|
|
261966
|
+
switch (tag >>>= 3) {
|
|
261967
|
+
case 1: {
|
|
261968
|
+
if (wireType !== 2)
|
|
261969
|
+
break;
|
|
261970
|
+
if (!(message.cptCodes && message.cptCodes.length))
|
|
261971
|
+
message.cptCodes = [];
|
|
261972
|
+
message.cptCodes.push(reader.string());
|
|
261973
|
+
continue;
|
|
261974
|
+
}
|
|
261975
|
+
case 2: {
|
|
261976
|
+
if (wireType !== 2)
|
|
261977
|
+
break;
|
|
261978
|
+
if ((value = reader.string()).length)
|
|
261979
|
+
message.encounterStatus = value;
|
|
261980
|
+
else
|
|
261981
|
+
delete message.encounterStatus;
|
|
261982
|
+
continue;
|
|
261983
|
+
}
|
|
261984
|
+
case 3: {
|
|
261985
|
+
if (wireType !== 0)
|
|
261986
|
+
break;
|
|
261987
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
261988
|
+
message.encounterStart = value;
|
|
261989
|
+
else
|
|
261990
|
+
delete message.encounterStart;
|
|
261991
|
+
continue;
|
|
261992
|
+
}
|
|
261993
|
+
case 4: {
|
|
261994
|
+
if (wireType !== 0)
|
|
261995
|
+
break;
|
|
261996
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
261997
|
+
message.encounterEnd = value;
|
|
261998
|
+
else
|
|
261999
|
+
delete message.encounterEnd;
|
|
262000
|
+
continue;
|
|
262001
|
+
}
|
|
262002
|
+
case 5: {
|
|
262003
|
+
if (wireType !== 2)
|
|
262004
|
+
break;
|
|
262005
|
+
if ((value = reader.string()).length)
|
|
262006
|
+
message.appointmentId = value;
|
|
262007
|
+
else
|
|
262008
|
+
delete message.appointmentId;
|
|
262009
|
+
continue;
|
|
262010
|
+
}
|
|
262011
|
+
}
|
|
262012
|
+
reader.skipType(wireType, _depth, tag);
|
|
262013
|
+
$util.makeProp(message, "$unknowns", false);
|
|
262014
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
262015
|
+
}
|
|
262016
|
+
if (_end !== undefined)
|
|
262017
|
+
throw Error("missing end group");
|
|
262018
|
+
return message;
|
|
262019
|
+
};
|
|
262020
|
+
|
|
262021
|
+
/**
|
|
262022
|
+
* Decodes a ClinicalNoteEncounter message from the specified reader or buffer, length delimited.
|
|
262023
|
+
* @function decodeDelimited
|
|
262024
|
+
* @memberof ClinicalNoteEncounter
|
|
262025
|
+
* @static
|
|
262026
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
262027
|
+
* @returns {ClinicalNoteEncounter & ClinicalNoteEncounter.$Shape} ClinicalNoteEncounter
|
|
262028
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
262029
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
262030
|
+
*/
|
|
262031
|
+
ClinicalNoteEncounter.decodeDelimited = function decodeDelimited(reader) {
|
|
262032
|
+
if (!(reader instanceof $Reader))
|
|
262033
|
+
reader = new $Reader(reader);
|
|
262034
|
+
return this.decode(reader, reader.uint32());
|
|
262035
|
+
};
|
|
262036
|
+
|
|
262037
|
+
/**
|
|
262038
|
+
* Verifies a ClinicalNoteEncounter message.
|
|
262039
|
+
* @function verify
|
|
262040
|
+
* @memberof ClinicalNoteEncounter
|
|
262041
|
+
* @static
|
|
262042
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
262043
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
262044
|
+
*/
|
|
262045
|
+
ClinicalNoteEncounter.verify = function verify(message, _depth) {
|
|
262046
|
+
if (typeof message !== "object" || message === null)
|
|
262047
|
+
return "object expected";
|
|
262048
|
+
if (_depth === undefined)
|
|
262049
|
+
_depth = 0;
|
|
262050
|
+
if (_depth > $util.recursionLimit)
|
|
262051
|
+
return "max depth exceeded";
|
|
262052
|
+
if (message.cptCodes != null && message.hasOwnProperty("cptCodes")) {
|
|
262053
|
+
if (!Array.isArray(message.cptCodes))
|
|
262054
|
+
return "cptCodes: array expected";
|
|
262055
|
+
for (var i = 0; i < message.cptCodes.length; ++i)
|
|
262056
|
+
if (!$util.isString(message.cptCodes[i]))
|
|
262057
|
+
return "cptCodes: string[] expected";
|
|
262058
|
+
}
|
|
262059
|
+
if (message.encounterStatus != null && message.hasOwnProperty("encounterStatus"))
|
|
262060
|
+
if (!$util.isString(message.encounterStatus))
|
|
262061
|
+
return "encounterStatus: string expected";
|
|
262062
|
+
if (message.encounterStart != null && message.hasOwnProperty("encounterStart"))
|
|
262063
|
+
if (!$util.isInteger(message.encounterStart) && !(message.encounterStart && $util.isInteger(message.encounterStart.low) && $util.isInteger(message.encounterStart.high)))
|
|
262064
|
+
return "encounterStart: integer|Long expected";
|
|
262065
|
+
if (message.encounterEnd != null && message.hasOwnProperty("encounterEnd"))
|
|
262066
|
+
if (!$util.isInteger(message.encounterEnd) && !(message.encounterEnd && $util.isInteger(message.encounterEnd.low) && $util.isInteger(message.encounterEnd.high)))
|
|
262067
|
+
return "encounterEnd: integer|Long expected";
|
|
262068
|
+
if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
|
|
262069
|
+
if (!$util.isString(message.appointmentId))
|
|
262070
|
+
return "appointmentId: string expected";
|
|
262071
|
+
return null;
|
|
262072
|
+
};
|
|
262073
|
+
|
|
262074
|
+
/**
|
|
262075
|
+
* Creates a ClinicalNoteEncounter message from a plain object. Also converts values to their respective internal types.
|
|
262076
|
+
* @function fromObject
|
|
262077
|
+
* @memberof ClinicalNoteEncounter
|
|
262078
|
+
* @static
|
|
262079
|
+
* @param {Object.<string,*>} object Plain object
|
|
262080
|
+
* @returns {ClinicalNoteEncounter} ClinicalNoteEncounter
|
|
262081
|
+
*/
|
|
262082
|
+
ClinicalNoteEncounter.fromObject = function fromObject(object, _depth) {
|
|
262083
|
+
if (object instanceof $root.ClinicalNoteEncounter)
|
|
262084
|
+
return object;
|
|
262085
|
+
if (_depth === undefined)
|
|
262086
|
+
_depth = 0;
|
|
262087
|
+
if (_depth > $util.recursionLimit)
|
|
262088
|
+
throw Error("max depth exceeded");
|
|
262089
|
+
var message = new $root.ClinicalNoteEncounter();
|
|
262090
|
+
if (object.cptCodes) {
|
|
262091
|
+
if (!Array.isArray(object.cptCodes))
|
|
262092
|
+
throw TypeError(".ClinicalNoteEncounter.cptCodes: array expected");
|
|
262093
|
+
message.cptCodes = Array(object.cptCodes.length);
|
|
262094
|
+
for (var i = 0; i < object.cptCodes.length; ++i)
|
|
262095
|
+
message.cptCodes[i] = String(object.cptCodes[i]);
|
|
262096
|
+
}
|
|
262097
|
+
if (object.encounterStatus != null)
|
|
262098
|
+
if (typeof object.encounterStatus !== "string" || object.encounterStatus.length)
|
|
262099
|
+
message.encounterStatus = String(object.encounterStatus);
|
|
262100
|
+
if (object.encounterStart != null)
|
|
262101
|
+
if (typeof object.encounterStart === "object" ? object.encounterStart.low || object.encounterStart.high : Number(object.encounterStart) !== 0)
|
|
262102
|
+
if ($util.Long)
|
|
262103
|
+
(message.encounterStart = $util.Long.fromValue(object.encounterStart)).unsigned = true;
|
|
262104
|
+
else if (typeof object.encounterStart === "string")
|
|
262105
|
+
message.encounterStart = parseInt(object.encounterStart, 10);
|
|
262106
|
+
else if (typeof object.encounterStart === "number")
|
|
262107
|
+
message.encounterStart = object.encounterStart;
|
|
262108
|
+
else if (typeof object.encounterStart === "object")
|
|
262109
|
+
message.encounterStart = new $util.LongBits(object.encounterStart.low >>> 0, object.encounterStart.high >>> 0).toNumber(true);
|
|
262110
|
+
if (object.encounterEnd != null)
|
|
262111
|
+
if (typeof object.encounterEnd === "object" ? object.encounterEnd.low || object.encounterEnd.high : Number(object.encounterEnd) !== 0)
|
|
262112
|
+
if ($util.Long)
|
|
262113
|
+
(message.encounterEnd = $util.Long.fromValue(object.encounterEnd)).unsigned = true;
|
|
262114
|
+
else if (typeof object.encounterEnd === "string")
|
|
262115
|
+
message.encounterEnd = parseInt(object.encounterEnd, 10);
|
|
262116
|
+
else if (typeof object.encounterEnd === "number")
|
|
262117
|
+
message.encounterEnd = object.encounterEnd;
|
|
262118
|
+
else if (typeof object.encounterEnd === "object")
|
|
262119
|
+
message.encounterEnd = new $util.LongBits(object.encounterEnd.low >>> 0, object.encounterEnd.high >>> 0).toNumber(true);
|
|
262120
|
+
if (object.appointmentId != null)
|
|
262121
|
+
if (typeof object.appointmentId !== "string" || object.appointmentId.length)
|
|
262122
|
+
message.appointmentId = String(object.appointmentId);
|
|
262123
|
+
return message;
|
|
262124
|
+
};
|
|
262125
|
+
|
|
262126
|
+
/**
|
|
262127
|
+
* Creates a plain object from a ClinicalNoteEncounter message. Also converts values to other types if specified.
|
|
262128
|
+
* @function toObject
|
|
262129
|
+
* @memberof ClinicalNoteEncounter
|
|
262130
|
+
* @static
|
|
262131
|
+
* @param {ClinicalNoteEncounter} message ClinicalNoteEncounter
|
|
262132
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
262133
|
+
* @returns {Object.<string,*>} Plain object
|
|
262134
|
+
*/
|
|
262135
|
+
ClinicalNoteEncounter.toObject = function toObject(message, options) {
|
|
262136
|
+
if (!options)
|
|
262137
|
+
options = {};
|
|
262138
|
+
var object = {};
|
|
262139
|
+
if (options.arrays || options.defaults)
|
|
262140
|
+
object.cptCodes = [];
|
|
262141
|
+
if (options.defaults) {
|
|
262142
|
+
object.encounterStatus = "";
|
|
262143
|
+
if ($util.Long) {
|
|
262144
|
+
var long = new $util.Long(0, 0, true);
|
|
262145
|
+
object.encounterStart = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
262146
|
+
} else
|
|
262147
|
+
object.encounterStart = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
262148
|
+
if ($util.Long) {
|
|
262149
|
+
var long = new $util.Long(0, 0, true);
|
|
262150
|
+
object.encounterEnd = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
262151
|
+
} else
|
|
262152
|
+
object.encounterEnd = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
262153
|
+
object.appointmentId = "";
|
|
262154
|
+
}
|
|
262155
|
+
if (message.cptCodes && message.cptCodes.length) {
|
|
262156
|
+
object.cptCodes = Array(message.cptCodes.length);
|
|
262157
|
+
for (var j = 0; j < message.cptCodes.length; ++j)
|
|
262158
|
+
object.cptCodes[j] = message.cptCodes[j];
|
|
262159
|
+
}
|
|
262160
|
+
if (message.encounterStatus != null && message.hasOwnProperty("encounterStatus"))
|
|
262161
|
+
object.encounterStatus = message.encounterStatus;
|
|
262162
|
+
if (message.encounterStart != null && message.hasOwnProperty("encounterStart"))
|
|
262163
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
262164
|
+
object.encounterStart = typeof message.encounterStart === "number" ? BigInt(message.encounterStart) : $util.Long.fromBits(message.encounterStart.low >>> 0, message.encounterStart.high >>> 0, true).toBigInt();
|
|
262165
|
+
else if (typeof message.encounterStart === "number")
|
|
262166
|
+
object.encounterStart = options.longs === String ? String(message.encounterStart) : message.encounterStart;
|
|
262167
|
+
else
|
|
262168
|
+
object.encounterStart = options.longs === String ? $util.Long.prototype.toString.call(message.encounterStart) : options.longs === Number ? new $util.LongBits(message.encounterStart.low >>> 0, message.encounterStart.high >>> 0).toNumber(true) : message.encounterStart;
|
|
262169
|
+
if (message.encounterEnd != null && message.hasOwnProperty("encounterEnd"))
|
|
262170
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
262171
|
+
object.encounterEnd = typeof message.encounterEnd === "number" ? BigInt(message.encounterEnd) : $util.Long.fromBits(message.encounterEnd.low >>> 0, message.encounterEnd.high >>> 0, true).toBigInt();
|
|
262172
|
+
else if (typeof message.encounterEnd === "number")
|
|
262173
|
+
object.encounterEnd = options.longs === String ? String(message.encounterEnd) : message.encounterEnd;
|
|
262174
|
+
else
|
|
262175
|
+
object.encounterEnd = options.longs === String ? $util.Long.prototype.toString.call(message.encounterEnd) : options.longs === Number ? new $util.LongBits(message.encounterEnd.low >>> 0, message.encounterEnd.high >>> 0).toNumber(true) : message.encounterEnd;
|
|
262176
|
+
if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
|
|
262177
|
+
object.appointmentId = message.appointmentId;
|
|
262178
|
+
return object;
|
|
262179
|
+
};
|
|
262180
|
+
|
|
262181
|
+
/**
|
|
262182
|
+
* Converts this ClinicalNoteEncounter to JSON.
|
|
262183
|
+
* @function toJSON
|
|
262184
|
+
* @memberof ClinicalNoteEncounter
|
|
262185
|
+
* @instance
|
|
262186
|
+
* @returns {Object.<string,*>} JSON object
|
|
262187
|
+
*/
|
|
262188
|
+
ClinicalNoteEncounter.prototype.toJSON = function toJSON() {
|
|
262189
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
262190
|
+
};
|
|
262191
|
+
|
|
262192
|
+
/**
|
|
262193
|
+
* Gets the type url for ClinicalNoteEncounter
|
|
262194
|
+
* @function getTypeUrl
|
|
262195
|
+
* @memberof ClinicalNoteEncounter
|
|
262196
|
+
* @static
|
|
262197
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
262198
|
+
* @returns {string} The type url
|
|
262199
|
+
*/
|
|
262200
|
+
ClinicalNoteEncounter.getTypeUrl = function getTypeUrl(prefix) {
|
|
262201
|
+
if (prefix === undefined)
|
|
262202
|
+
prefix = "type.googleapis.com";
|
|
262203
|
+
return prefix + "/ClinicalNoteEncounter";
|
|
262204
|
+
};
|
|
262205
|
+
|
|
262206
|
+
return ClinicalNoteEncounter;
|
|
262207
|
+
})();
|
|
262208
|
+
|
|
262209
|
+
$root.GingerClinicalNotePayload = (function() {
|
|
262210
|
+
|
|
262211
|
+
/**
|
|
262212
|
+
* Properties of a GingerClinicalNotePayload.
|
|
262213
|
+
* @typedef {Object} GingerClinicalNotePayload.$Properties
|
|
262214
|
+
* @property {string|null} [noteId] GingerClinicalNotePayload noteId
|
|
262215
|
+
* @property {string|null} [hsUserId] GingerClinicalNotePayload hsUserId
|
|
262216
|
+
* @property {GingerClinicalNoteType|null} [noteType] GingerClinicalNotePayload noteType
|
|
262217
|
+
* @property {ClinicalNotePatient.$Properties|null} [patient] GingerClinicalNotePayload patient
|
|
262218
|
+
* @property {ClinicalNotePractitioner.$Properties|null} [practitioner] GingerClinicalNotePayload practitioner
|
|
262219
|
+
* @property {ClinicalNoteOrganization.$Properties|null} [organization] GingerClinicalNotePayload organization
|
|
262220
|
+
* @property {ClinicalNoteEncounter.$Properties|null} [encounter] GingerClinicalNotePayload encounter
|
|
262221
|
+
* @property {string|null} [content] GingerClinicalNotePayload content
|
|
262222
|
+
* @property {Array.<string>|null} [icd10Codes] GingerClinicalNotePayload icd10Codes
|
|
262223
|
+
* @property {Array.<string>|null} [ds4pCodes] GingerClinicalNotePayload ds4pCodes
|
|
262224
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
262225
|
+
*/
|
|
262226
|
+
|
|
262227
|
+
/**
|
|
262228
|
+
* Properties of a GingerClinicalNotePayload.
|
|
262229
|
+
* @name IGingerClinicalNotePayload
|
|
262230
|
+
* @interface IGingerClinicalNotePayload
|
|
262231
|
+
* @augments GingerClinicalNotePayload.$Properties
|
|
262232
|
+
* @deprecated Use GingerClinicalNotePayload.$Properties instead.
|
|
262233
|
+
*/
|
|
262234
|
+
|
|
262235
|
+
/**
|
|
262236
|
+
* Shape of a GingerClinicalNotePayload.
|
|
262237
|
+
* @typedef {GingerClinicalNotePayload.$Properties} GingerClinicalNotePayload.$Shape
|
|
262238
|
+
*/
|
|
262239
|
+
|
|
262240
|
+
/**
|
|
262241
|
+
* Constructs a new GingerClinicalNotePayload.
|
|
262242
|
+
* @name GingerClinicalNotePayload
|
|
262243
|
+
* @classdesc Represents a GingerClinicalNotePayload.
|
|
262244
|
+
* @constructor
|
|
262245
|
+
* @param {GingerClinicalNotePayload.$Properties=} [properties] Properties to set
|
|
262246
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
262247
|
+
*/
|
|
262248
|
+
function GingerClinicalNotePayload(properties) {
|
|
262249
|
+
this.icd10Codes = [];
|
|
262250
|
+
this.ds4pCodes = [];
|
|
262251
|
+
if (properties)
|
|
262252
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
262253
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
262254
|
+
this[keys[i]] = properties[keys[i]];
|
|
262255
|
+
}
|
|
262256
|
+
|
|
262257
|
+
/**
|
|
262258
|
+
* GingerClinicalNotePayload noteId.
|
|
262259
|
+
* @member {string} noteId
|
|
262260
|
+
* @memberof GingerClinicalNotePayload
|
|
262261
|
+
* @instance
|
|
262262
|
+
*/
|
|
262263
|
+
GingerClinicalNotePayload.prototype.noteId = "";
|
|
262264
|
+
|
|
262265
|
+
/**
|
|
262266
|
+
* GingerClinicalNotePayload hsUserId.
|
|
262267
|
+
* @member {string} hsUserId
|
|
262268
|
+
* @memberof GingerClinicalNotePayload
|
|
262269
|
+
* @instance
|
|
262270
|
+
*/
|
|
262271
|
+
GingerClinicalNotePayload.prototype.hsUserId = "";
|
|
262272
|
+
|
|
262273
|
+
/**
|
|
262274
|
+
* GingerClinicalNotePayload noteType.
|
|
262275
|
+
* @member {GingerClinicalNoteType} noteType
|
|
262276
|
+
* @memberof GingerClinicalNotePayload
|
|
262277
|
+
* @instance
|
|
262278
|
+
*/
|
|
262279
|
+
GingerClinicalNotePayload.prototype.noteType = 0;
|
|
262280
|
+
|
|
262281
|
+
/**
|
|
262282
|
+
* GingerClinicalNotePayload patient.
|
|
262283
|
+
* @member {ClinicalNotePatient.$Properties|null|undefined} patient
|
|
262284
|
+
* @memberof GingerClinicalNotePayload
|
|
262285
|
+
* @instance
|
|
262286
|
+
*/
|
|
262287
|
+
GingerClinicalNotePayload.prototype.patient = null;
|
|
262288
|
+
|
|
262289
|
+
/**
|
|
262290
|
+
* GingerClinicalNotePayload practitioner.
|
|
262291
|
+
* @member {ClinicalNotePractitioner.$Properties|null|undefined} practitioner
|
|
262292
|
+
* @memberof GingerClinicalNotePayload
|
|
262293
|
+
* @instance
|
|
262294
|
+
*/
|
|
262295
|
+
GingerClinicalNotePayload.prototype.practitioner = null;
|
|
262296
|
+
|
|
262297
|
+
/**
|
|
262298
|
+
* GingerClinicalNotePayload organization.
|
|
262299
|
+
* @member {ClinicalNoteOrganization.$Properties|null|undefined} organization
|
|
262300
|
+
* @memberof GingerClinicalNotePayload
|
|
262301
|
+
* @instance
|
|
262302
|
+
*/
|
|
262303
|
+
GingerClinicalNotePayload.prototype.organization = null;
|
|
262304
|
+
|
|
262305
|
+
/**
|
|
262306
|
+
* GingerClinicalNotePayload encounter.
|
|
262307
|
+
* @member {ClinicalNoteEncounter.$Properties|null|undefined} encounter
|
|
262308
|
+
* @memberof GingerClinicalNotePayload
|
|
262309
|
+
* @instance
|
|
262310
|
+
*/
|
|
262311
|
+
GingerClinicalNotePayload.prototype.encounter = null;
|
|
262312
|
+
|
|
262313
|
+
/**
|
|
262314
|
+
* GingerClinicalNotePayload content.
|
|
262315
|
+
* @member {string} content
|
|
262316
|
+
* @memberof GingerClinicalNotePayload
|
|
262317
|
+
* @instance
|
|
262318
|
+
*/
|
|
262319
|
+
GingerClinicalNotePayload.prototype.content = "";
|
|
262320
|
+
|
|
262321
|
+
/**
|
|
262322
|
+
* GingerClinicalNotePayload icd10Codes.
|
|
262323
|
+
* @member {Array.<string>} icd10Codes
|
|
262324
|
+
* @memberof GingerClinicalNotePayload
|
|
262325
|
+
* @instance
|
|
262326
|
+
*/
|
|
262327
|
+
GingerClinicalNotePayload.prototype.icd10Codes = $util.emptyArray;
|
|
262328
|
+
|
|
262329
|
+
/**
|
|
262330
|
+
* GingerClinicalNotePayload ds4pCodes.
|
|
262331
|
+
* @member {Array.<string>} ds4pCodes
|
|
262332
|
+
* @memberof GingerClinicalNotePayload
|
|
262333
|
+
* @instance
|
|
262334
|
+
*/
|
|
262335
|
+
GingerClinicalNotePayload.prototype.ds4pCodes = $util.emptyArray;
|
|
262336
|
+
|
|
262337
|
+
/**
|
|
262338
|
+
* Creates a new GingerClinicalNotePayload instance using the specified properties.
|
|
262339
|
+
* @function create
|
|
262340
|
+
* @memberof GingerClinicalNotePayload
|
|
262341
|
+
* @static
|
|
262342
|
+
* @param {GingerClinicalNotePayload.$Properties=} [properties] Properties to set
|
|
262343
|
+
* @returns {GingerClinicalNotePayload} GingerClinicalNotePayload instance
|
|
262344
|
+
* @type {{
|
|
262345
|
+
* (properties: GingerClinicalNotePayload.$Shape): GingerClinicalNotePayload & GingerClinicalNotePayload.$Shape;
|
|
262346
|
+
* (properties?: GingerClinicalNotePayload.$Properties): GingerClinicalNotePayload;
|
|
262347
|
+
* }}
|
|
262348
|
+
*/
|
|
262349
|
+
GingerClinicalNotePayload.create = function create(properties) {
|
|
262350
|
+
return new GingerClinicalNotePayload(properties);
|
|
262351
|
+
};
|
|
262352
|
+
|
|
262353
|
+
/**
|
|
262354
|
+
* Encodes the specified GingerClinicalNotePayload message. Does not implicitly {@link GingerClinicalNotePayload.verify|verify} messages.
|
|
262355
|
+
* @function encode
|
|
262356
|
+
* @memberof GingerClinicalNotePayload
|
|
262357
|
+
* @static
|
|
262358
|
+
* @param {GingerClinicalNotePayload.$Properties} message GingerClinicalNotePayload message or plain object to encode
|
|
262359
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
262360
|
+
* @returns {$protobuf.Writer} Writer
|
|
262361
|
+
*/
|
|
262362
|
+
GingerClinicalNotePayload.encode = function encode(message, writer) {
|
|
262363
|
+
if (!writer)
|
|
262364
|
+
writer = $Writer.create();
|
|
262365
|
+
if (message.noteId != null && Object.hasOwnProperty.call(message, "noteId"))
|
|
262366
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.noteId);
|
|
262367
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
262368
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
|
|
262369
|
+
if (message.noteType != null && Object.hasOwnProperty.call(message, "noteType"))
|
|
262370
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.noteType);
|
|
262371
|
+
if (message.patient != null && Object.hasOwnProperty.call(message, "patient"))
|
|
262372
|
+
$root.ClinicalNotePatient.encode(message.patient, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
262373
|
+
if (message.practitioner != null && Object.hasOwnProperty.call(message, "practitioner"))
|
|
262374
|
+
$root.ClinicalNotePractitioner.encode(message.practitioner, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
262375
|
+
if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
|
|
262376
|
+
$root.ClinicalNoteOrganization.encode(message.organization, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
262377
|
+
if (message.encounter != null && Object.hasOwnProperty.call(message, "encounter"))
|
|
262378
|
+
$root.ClinicalNoteEncounter.encode(message.encounter, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
262379
|
+
if (message.content != null && Object.hasOwnProperty.call(message, "content"))
|
|
262380
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.content);
|
|
262381
|
+
if (message.icd10Codes != null && message.icd10Codes.length)
|
|
262382
|
+
for (var i = 0; i < message.icd10Codes.length; ++i)
|
|
262383
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.icd10Codes[i]);
|
|
262384
|
+
if (message.ds4pCodes != null && message.ds4pCodes.length)
|
|
262385
|
+
for (var i = 0; i < message.ds4pCodes.length; ++i)
|
|
262386
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.ds4pCodes[i]);
|
|
262387
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
262388
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
262389
|
+
writer.raw(message.$unknowns[i]);
|
|
262390
|
+
return writer;
|
|
262391
|
+
};
|
|
262392
|
+
|
|
262393
|
+
/**
|
|
262394
|
+
* Encodes the specified GingerClinicalNotePayload message, length delimited. Does not implicitly {@link GingerClinicalNotePayload.verify|verify} messages.
|
|
262395
|
+
* @function encodeDelimited
|
|
262396
|
+
* @memberof GingerClinicalNotePayload
|
|
262397
|
+
* @static
|
|
262398
|
+
* @param {GingerClinicalNotePayload.$Properties} message GingerClinicalNotePayload message or plain object to encode
|
|
262399
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
262400
|
+
* @returns {$protobuf.Writer} Writer
|
|
262401
|
+
*/
|
|
262402
|
+
GingerClinicalNotePayload.encodeDelimited = function encodeDelimited(message, writer) {
|
|
262403
|
+
return this.encode(message, writer).ldelim();
|
|
262404
|
+
};
|
|
262405
|
+
|
|
262406
|
+
/**
|
|
262407
|
+
* Decodes a GingerClinicalNotePayload message from the specified reader or buffer.
|
|
262408
|
+
* @function decode
|
|
262409
|
+
* @memberof GingerClinicalNotePayload
|
|
262410
|
+
* @static
|
|
262411
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
262412
|
+
* @param {number} [length] Message length if known beforehand
|
|
262413
|
+
* @returns {GingerClinicalNotePayload & GingerClinicalNotePayload.$Shape} GingerClinicalNotePayload
|
|
262414
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
262415
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
262416
|
+
*/
|
|
262417
|
+
GingerClinicalNotePayload.decode = function decode(reader, length, _end, _depth, _target) {
|
|
262418
|
+
if (!(reader instanceof $Reader))
|
|
262419
|
+
reader = $Reader.create(reader);
|
|
262420
|
+
if (_depth === undefined)
|
|
262421
|
+
_depth = 0;
|
|
262422
|
+
if (_depth > $Reader.recursionLimit)
|
|
262423
|
+
throw Error("max depth exceeded");
|
|
262424
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.GingerClinicalNotePayload(), value;
|
|
262425
|
+
while (reader.pos < end) {
|
|
262426
|
+
var start = reader.pos;
|
|
262427
|
+
var tag = reader.tag();
|
|
262428
|
+
if (tag === _end) {
|
|
262429
|
+
_end = undefined;
|
|
262430
|
+
break;
|
|
262431
|
+
}
|
|
262432
|
+
var wireType = tag & 7;
|
|
262433
|
+
switch (tag >>>= 3) {
|
|
262434
|
+
case 1: {
|
|
262435
|
+
if (wireType !== 2)
|
|
262436
|
+
break;
|
|
262437
|
+
if ((value = reader.string()).length)
|
|
262438
|
+
message.noteId = value;
|
|
262439
|
+
else
|
|
262440
|
+
delete message.noteId;
|
|
262441
|
+
continue;
|
|
262442
|
+
}
|
|
262443
|
+
case 2: {
|
|
262444
|
+
if (wireType !== 2)
|
|
262445
|
+
break;
|
|
262446
|
+
if ((value = reader.string()).length)
|
|
262447
|
+
message.hsUserId = value;
|
|
262448
|
+
else
|
|
262449
|
+
delete message.hsUserId;
|
|
262450
|
+
continue;
|
|
262451
|
+
}
|
|
262452
|
+
case 3: {
|
|
262453
|
+
if (wireType !== 0)
|
|
262454
|
+
break;
|
|
262455
|
+
if (value = reader.int32())
|
|
262456
|
+
message.noteType = value;
|
|
262457
|
+
else
|
|
262458
|
+
delete message.noteType;
|
|
262459
|
+
continue;
|
|
262460
|
+
}
|
|
262461
|
+
case 4: {
|
|
262462
|
+
if (wireType !== 2)
|
|
262463
|
+
break;
|
|
262464
|
+
message.patient = $root.ClinicalNotePatient.decode(reader, reader.uint32(), undefined, _depth + 1, message.patient);
|
|
262465
|
+
continue;
|
|
262466
|
+
}
|
|
262467
|
+
case 5: {
|
|
262468
|
+
if (wireType !== 2)
|
|
262469
|
+
break;
|
|
262470
|
+
message.practitioner = $root.ClinicalNotePractitioner.decode(reader, reader.uint32(), undefined, _depth + 1, message.practitioner);
|
|
262471
|
+
continue;
|
|
262472
|
+
}
|
|
262473
|
+
case 6: {
|
|
262474
|
+
if (wireType !== 2)
|
|
262475
|
+
break;
|
|
262476
|
+
message.organization = $root.ClinicalNoteOrganization.decode(reader, reader.uint32(), undefined, _depth + 1, message.organization);
|
|
262477
|
+
continue;
|
|
262478
|
+
}
|
|
262479
|
+
case 7: {
|
|
262480
|
+
if (wireType !== 2)
|
|
262481
|
+
break;
|
|
262482
|
+
message.encounter = $root.ClinicalNoteEncounter.decode(reader, reader.uint32(), undefined, _depth + 1, message.encounter);
|
|
262483
|
+
continue;
|
|
262484
|
+
}
|
|
262485
|
+
case 8: {
|
|
262486
|
+
if (wireType !== 2)
|
|
262487
|
+
break;
|
|
262488
|
+
if ((value = reader.string()).length)
|
|
262489
|
+
message.content = value;
|
|
262490
|
+
else
|
|
262491
|
+
delete message.content;
|
|
262492
|
+
continue;
|
|
262493
|
+
}
|
|
262494
|
+
case 9: {
|
|
262495
|
+
if (wireType !== 2)
|
|
262496
|
+
break;
|
|
262497
|
+
if (!(message.icd10Codes && message.icd10Codes.length))
|
|
262498
|
+
message.icd10Codes = [];
|
|
262499
|
+
message.icd10Codes.push(reader.string());
|
|
262500
|
+
continue;
|
|
262501
|
+
}
|
|
262502
|
+
case 10: {
|
|
262503
|
+
if (wireType !== 2)
|
|
262504
|
+
break;
|
|
262505
|
+
if (!(message.ds4pCodes && message.ds4pCodes.length))
|
|
262506
|
+
message.ds4pCodes = [];
|
|
262507
|
+
message.ds4pCodes.push(reader.string());
|
|
262508
|
+
continue;
|
|
262509
|
+
}
|
|
262510
|
+
}
|
|
262511
|
+
reader.skipType(wireType, _depth, tag);
|
|
262512
|
+
$util.makeProp(message, "$unknowns", false);
|
|
262513
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
262514
|
+
}
|
|
262515
|
+
if (_end !== undefined)
|
|
262516
|
+
throw Error("missing end group");
|
|
262517
|
+
return message;
|
|
262518
|
+
};
|
|
262519
|
+
|
|
262520
|
+
/**
|
|
262521
|
+
* Decodes a GingerClinicalNotePayload message from the specified reader or buffer, length delimited.
|
|
262522
|
+
* @function decodeDelimited
|
|
262523
|
+
* @memberof GingerClinicalNotePayload
|
|
262524
|
+
* @static
|
|
262525
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
262526
|
+
* @returns {GingerClinicalNotePayload & GingerClinicalNotePayload.$Shape} GingerClinicalNotePayload
|
|
262527
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
262528
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
262529
|
+
*/
|
|
262530
|
+
GingerClinicalNotePayload.decodeDelimited = function decodeDelimited(reader) {
|
|
262531
|
+
if (!(reader instanceof $Reader))
|
|
262532
|
+
reader = new $Reader(reader);
|
|
262533
|
+
return this.decode(reader, reader.uint32());
|
|
262534
|
+
};
|
|
262535
|
+
|
|
262536
|
+
/**
|
|
262537
|
+
* Verifies a GingerClinicalNotePayload message.
|
|
262538
|
+
* @function verify
|
|
262539
|
+
* @memberof GingerClinicalNotePayload
|
|
262540
|
+
* @static
|
|
262541
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
262542
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
262543
|
+
*/
|
|
262544
|
+
GingerClinicalNotePayload.verify = function verify(message, _depth) {
|
|
262545
|
+
if (typeof message !== "object" || message === null)
|
|
262546
|
+
return "object expected";
|
|
262547
|
+
if (_depth === undefined)
|
|
262548
|
+
_depth = 0;
|
|
262549
|
+
if (_depth > $util.recursionLimit)
|
|
262550
|
+
return "max depth exceeded";
|
|
262551
|
+
if (message.noteId != null && message.hasOwnProperty("noteId"))
|
|
262552
|
+
if (!$util.isString(message.noteId))
|
|
262553
|
+
return "noteId: string expected";
|
|
262554
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
262555
|
+
if (!$util.isString(message.hsUserId))
|
|
262556
|
+
return "hsUserId: string expected";
|
|
262557
|
+
if (message.noteType != null && message.hasOwnProperty("noteType"))
|
|
262558
|
+
switch (message.noteType) {
|
|
262559
|
+
default:
|
|
262560
|
+
return "noteType: enum value expected";
|
|
262561
|
+
case 0:
|
|
262562
|
+
case 1:
|
|
262563
|
+
case 2:
|
|
262564
|
+
case 3:
|
|
262565
|
+
case 4:
|
|
262566
|
+
break;
|
|
262567
|
+
}
|
|
262568
|
+
if (message.patient != null && message.hasOwnProperty("patient")) {
|
|
262569
|
+
var error = $root.ClinicalNotePatient.verify(message.patient, _depth + 1);
|
|
262570
|
+
if (error)
|
|
262571
|
+
return "patient." + error;
|
|
262572
|
+
}
|
|
262573
|
+
if (message.practitioner != null && message.hasOwnProperty("practitioner")) {
|
|
262574
|
+
var error = $root.ClinicalNotePractitioner.verify(message.practitioner, _depth + 1);
|
|
262575
|
+
if (error)
|
|
262576
|
+
return "practitioner." + error;
|
|
262577
|
+
}
|
|
262578
|
+
if (message.organization != null && message.hasOwnProperty("organization")) {
|
|
262579
|
+
var error = $root.ClinicalNoteOrganization.verify(message.organization, _depth + 1);
|
|
262580
|
+
if (error)
|
|
262581
|
+
return "organization." + error;
|
|
262582
|
+
}
|
|
262583
|
+
if (message.encounter != null && message.hasOwnProperty("encounter")) {
|
|
262584
|
+
var error = $root.ClinicalNoteEncounter.verify(message.encounter, _depth + 1);
|
|
262585
|
+
if (error)
|
|
262586
|
+
return "encounter." + error;
|
|
262587
|
+
}
|
|
262588
|
+
if (message.content != null && message.hasOwnProperty("content"))
|
|
262589
|
+
if (!$util.isString(message.content))
|
|
262590
|
+
return "content: string expected";
|
|
262591
|
+
if (message.icd10Codes != null && message.hasOwnProperty("icd10Codes")) {
|
|
262592
|
+
if (!Array.isArray(message.icd10Codes))
|
|
262593
|
+
return "icd10Codes: array expected";
|
|
262594
|
+
for (var i = 0; i < message.icd10Codes.length; ++i)
|
|
262595
|
+
if (!$util.isString(message.icd10Codes[i]))
|
|
262596
|
+
return "icd10Codes: string[] expected";
|
|
262597
|
+
}
|
|
262598
|
+
if (message.ds4pCodes != null && message.hasOwnProperty("ds4pCodes")) {
|
|
262599
|
+
if (!Array.isArray(message.ds4pCodes))
|
|
262600
|
+
return "ds4pCodes: array expected";
|
|
262601
|
+
for (var i = 0; i < message.ds4pCodes.length; ++i)
|
|
262602
|
+
if (!$util.isString(message.ds4pCodes[i]))
|
|
262603
|
+
return "ds4pCodes: string[] expected";
|
|
262604
|
+
}
|
|
262605
|
+
return null;
|
|
262606
|
+
};
|
|
262607
|
+
|
|
262608
|
+
/**
|
|
262609
|
+
* Creates a GingerClinicalNotePayload message from a plain object. Also converts values to their respective internal types.
|
|
262610
|
+
* @function fromObject
|
|
262611
|
+
* @memberof GingerClinicalNotePayload
|
|
262612
|
+
* @static
|
|
262613
|
+
* @param {Object.<string,*>} object Plain object
|
|
262614
|
+
* @returns {GingerClinicalNotePayload} GingerClinicalNotePayload
|
|
262615
|
+
*/
|
|
262616
|
+
GingerClinicalNotePayload.fromObject = function fromObject(object, _depth) {
|
|
262617
|
+
if (object instanceof $root.GingerClinicalNotePayload)
|
|
262618
|
+
return object;
|
|
262619
|
+
if (_depth === undefined)
|
|
262620
|
+
_depth = 0;
|
|
262621
|
+
if (_depth > $util.recursionLimit)
|
|
262622
|
+
throw Error("max depth exceeded");
|
|
262623
|
+
var message = new $root.GingerClinicalNotePayload();
|
|
262624
|
+
if (object.noteId != null)
|
|
262625
|
+
if (typeof object.noteId !== "string" || object.noteId.length)
|
|
262626
|
+
message.noteId = String(object.noteId);
|
|
262627
|
+
if (object.hsUserId != null)
|
|
262628
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
262629
|
+
message.hsUserId = String(object.hsUserId);
|
|
262630
|
+
if (object.noteType !== 0 && (typeof object.noteType !== "string" || $root.GingerClinicalNoteType[object.noteType] !== 0))
|
|
262631
|
+
switch (object.noteType) {
|
|
262632
|
+
default:
|
|
262633
|
+
if (typeof object.noteType === "number") {
|
|
262634
|
+
message.noteType = object.noteType;
|
|
262635
|
+
break;
|
|
262636
|
+
}
|
|
262637
|
+
break;
|
|
262638
|
+
case "GINGER_CLINICAL_NOTE_TYPE_UNKNOWN":
|
|
262639
|
+
case 0:
|
|
262640
|
+
message.noteType = 0;
|
|
262641
|
+
break;
|
|
262642
|
+
case "GINGER_CLINICAL_NOTE_TYPE_THERAPY_INTAKE":
|
|
262643
|
+
case 1:
|
|
262644
|
+
message.noteType = 1;
|
|
262645
|
+
break;
|
|
262646
|
+
case "GINGER_CLINICAL_NOTE_TYPE_THERAPY_PROGRESS":
|
|
262647
|
+
case 2:
|
|
262648
|
+
message.noteType = 2;
|
|
262649
|
+
break;
|
|
262650
|
+
case "GINGER_CLINICAL_NOTE_TYPE_PSYCHIATRY_INTAKE":
|
|
262651
|
+
case 3:
|
|
262652
|
+
message.noteType = 3;
|
|
262653
|
+
break;
|
|
262654
|
+
case "GINGER_CLINICAL_NOTE_TYPE_PSYCHIATRY_PROGRESS":
|
|
262655
|
+
case 4:
|
|
262656
|
+
message.noteType = 4;
|
|
262657
|
+
break;
|
|
262658
|
+
}
|
|
262659
|
+
if (object.patient != null) {
|
|
262660
|
+
if (typeof object.patient !== "object")
|
|
262661
|
+
throw TypeError(".GingerClinicalNotePayload.patient: object expected");
|
|
262662
|
+
message.patient = $root.ClinicalNotePatient.fromObject(object.patient, _depth + 1);
|
|
262663
|
+
}
|
|
262664
|
+
if (object.practitioner != null) {
|
|
262665
|
+
if (typeof object.practitioner !== "object")
|
|
262666
|
+
throw TypeError(".GingerClinicalNotePayload.practitioner: object expected");
|
|
262667
|
+
message.practitioner = $root.ClinicalNotePractitioner.fromObject(object.practitioner, _depth + 1);
|
|
262668
|
+
}
|
|
262669
|
+
if (object.organization != null) {
|
|
262670
|
+
if (typeof object.organization !== "object")
|
|
262671
|
+
throw TypeError(".GingerClinicalNotePayload.organization: object expected");
|
|
262672
|
+
message.organization = $root.ClinicalNoteOrganization.fromObject(object.organization, _depth + 1);
|
|
262673
|
+
}
|
|
262674
|
+
if (object.encounter != null) {
|
|
262675
|
+
if (typeof object.encounter !== "object")
|
|
262676
|
+
throw TypeError(".GingerClinicalNotePayload.encounter: object expected");
|
|
262677
|
+
message.encounter = $root.ClinicalNoteEncounter.fromObject(object.encounter, _depth + 1);
|
|
262678
|
+
}
|
|
262679
|
+
if (object.content != null)
|
|
262680
|
+
if (typeof object.content !== "string" || object.content.length)
|
|
262681
|
+
message.content = String(object.content);
|
|
262682
|
+
if (object.icd10Codes) {
|
|
262683
|
+
if (!Array.isArray(object.icd10Codes))
|
|
262684
|
+
throw TypeError(".GingerClinicalNotePayload.icd10Codes: array expected");
|
|
262685
|
+
message.icd10Codes = Array(object.icd10Codes.length);
|
|
262686
|
+
for (var i = 0; i < object.icd10Codes.length; ++i)
|
|
262687
|
+
message.icd10Codes[i] = String(object.icd10Codes[i]);
|
|
262688
|
+
}
|
|
262689
|
+
if (object.ds4pCodes) {
|
|
262690
|
+
if (!Array.isArray(object.ds4pCodes))
|
|
262691
|
+
throw TypeError(".GingerClinicalNotePayload.ds4pCodes: array expected");
|
|
262692
|
+
message.ds4pCodes = Array(object.ds4pCodes.length);
|
|
262693
|
+
for (var i = 0; i < object.ds4pCodes.length; ++i)
|
|
262694
|
+
message.ds4pCodes[i] = String(object.ds4pCodes[i]);
|
|
262695
|
+
}
|
|
262696
|
+
return message;
|
|
262697
|
+
};
|
|
262698
|
+
|
|
262699
|
+
/**
|
|
262700
|
+
* Creates a plain object from a GingerClinicalNotePayload message. Also converts values to other types if specified.
|
|
262701
|
+
* @function toObject
|
|
262702
|
+
* @memberof GingerClinicalNotePayload
|
|
262703
|
+
* @static
|
|
262704
|
+
* @param {GingerClinicalNotePayload} message GingerClinicalNotePayload
|
|
262705
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
262706
|
+
* @returns {Object.<string,*>} Plain object
|
|
262707
|
+
*/
|
|
262708
|
+
GingerClinicalNotePayload.toObject = function toObject(message, options) {
|
|
262709
|
+
if (!options)
|
|
262710
|
+
options = {};
|
|
262711
|
+
var object = {};
|
|
262712
|
+
if (options.arrays || options.defaults) {
|
|
262713
|
+
object.icd10Codes = [];
|
|
262714
|
+
object.ds4pCodes = [];
|
|
262715
|
+
}
|
|
262716
|
+
if (options.defaults) {
|
|
262717
|
+
object.noteId = "";
|
|
262718
|
+
object.hsUserId = "";
|
|
262719
|
+
object.noteType = options.enums === String ? "GINGER_CLINICAL_NOTE_TYPE_UNKNOWN" : 0;
|
|
262720
|
+
object.patient = null;
|
|
262721
|
+
object.practitioner = null;
|
|
262722
|
+
object.organization = null;
|
|
262723
|
+
object.encounter = null;
|
|
262724
|
+
object.content = "";
|
|
262725
|
+
}
|
|
262726
|
+
if (message.noteId != null && message.hasOwnProperty("noteId"))
|
|
262727
|
+
object.noteId = message.noteId;
|
|
262728
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
262729
|
+
object.hsUserId = message.hsUserId;
|
|
262730
|
+
if (message.noteType != null && message.hasOwnProperty("noteType"))
|
|
262731
|
+
object.noteType = options.enums === String ? $root.GingerClinicalNoteType[message.noteType] === undefined ? message.noteType : $root.GingerClinicalNoteType[message.noteType] : message.noteType;
|
|
262732
|
+
if (message.patient != null && message.hasOwnProperty("patient"))
|
|
262733
|
+
object.patient = $root.ClinicalNotePatient.toObject(message.patient, options);
|
|
262734
|
+
if (message.practitioner != null && message.hasOwnProperty("practitioner"))
|
|
262735
|
+
object.practitioner = $root.ClinicalNotePractitioner.toObject(message.practitioner, options);
|
|
262736
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
262737
|
+
object.organization = $root.ClinicalNoteOrganization.toObject(message.organization, options);
|
|
262738
|
+
if (message.encounter != null && message.hasOwnProperty("encounter"))
|
|
262739
|
+
object.encounter = $root.ClinicalNoteEncounter.toObject(message.encounter, options);
|
|
262740
|
+
if (message.content != null && message.hasOwnProperty("content"))
|
|
262741
|
+
object.content = message.content;
|
|
262742
|
+
if (message.icd10Codes && message.icd10Codes.length) {
|
|
262743
|
+
object.icd10Codes = Array(message.icd10Codes.length);
|
|
262744
|
+
for (var j = 0; j < message.icd10Codes.length; ++j)
|
|
262745
|
+
object.icd10Codes[j] = message.icd10Codes[j];
|
|
262746
|
+
}
|
|
262747
|
+
if (message.ds4pCodes && message.ds4pCodes.length) {
|
|
262748
|
+
object.ds4pCodes = Array(message.ds4pCodes.length);
|
|
262749
|
+
for (var j = 0; j < message.ds4pCodes.length; ++j)
|
|
262750
|
+
object.ds4pCodes[j] = message.ds4pCodes[j];
|
|
262751
|
+
}
|
|
262752
|
+
return object;
|
|
262753
|
+
};
|
|
262754
|
+
|
|
262755
|
+
/**
|
|
262756
|
+
* Converts this GingerClinicalNotePayload to JSON.
|
|
262757
|
+
* @function toJSON
|
|
262758
|
+
* @memberof GingerClinicalNotePayload
|
|
262759
|
+
* @instance
|
|
262760
|
+
* @returns {Object.<string,*>} JSON object
|
|
262761
|
+
*/
|
|
262762
|
+
GingerClinicalNotePayload.prototype.toJSON = function toJSON() {
|
|
262763
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
262764
|
+
};
|
|
262765
|
+
|
|
262766
|
+
/**
|
|
262767
|
+
* Gets the type url for GingerClinicalNotePayload
|
|
262768
|
+
* @function getTypeUrl
|
|
262769
|
+
* @memberof GingerClinicalNotePayload
|
|
262770
|
+
* @static
|
|
262771
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
262772
|
+
* @returns {string} The type url
|
|
262773
|
+
*/
|
|
262774
|
+
GingerClinicalNotePayload.getTypeUrl = function getTypeUrl(prefix) {
|
|
262775
|
+
if (prefix === undefined)
|
|
262776
|
+
prefix = "type.googleapis.com";
|
|
262777
|
+
return prefix + "/GingerClinicalNotePayload";
|
|
262778
|
+
};
|
|
262779
|
+
|
|
262780
|
+
return GingerClinicalNotePayload;
|
|
262781
|
+
})();
|
|
262782
|
+
|
|
260133
262783
|
$root.InteractiveJournalingParticipant = (function() {
|
|
260134
262784
|
|
|
260135
262785
|
/**
|