@headspace/protos-events 1.857.0 → 1.858.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.mts +580 -0
- package/lib/index.d.ts +580 -0
- package/lib/index.js +1598 -0
- package/lib/index.mjs +1598 -0
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -268101,6 +268101,1512 @@ export const ClinicalNoteMedication = $root.ClinicalNoteMedication = (() => {
|
|
|
268101
268101
|
return ClinicalNoteMedication;
|
|
268102
268102
|
})();
|
|
268103
268103
|
|
|
268104
|
+
export const ClinicalNoteCoding = $root.ClinicalNoteCoding = (() => {
|
|
268105
|
+
|
|
268106
|
+
/**
|
|
268107
|
+
* Properties of a ClinicalNoteCoding.
|
|
268108
|
+
* @typedef {Object} ClinicalNoteCoding.$Properties
|
|
268109
|
+
* @property {string|null} [system] ClinicalNoteCoding system
|
|
268110
|
+
* @property {string|null} [code] ClinicalNoteCoding code
|
|
268111
|
+
* @property {string|null} [display] ClinicalNoteCoding display
|
|
268112
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
268113
|
+
*/
|
|
268114
|
+
|
|
268115
|
+
/**
|
|
268116
|
+
* Properties of a ClinicalNoteCoding.
|
|
268117
|
+
* @name IClinicalNoteCoding
|
|
268118
|
+
* @interface IClinicalNoteCoding
|
|
268119
|
+
* @augments ClinicalNoteCoding.$Properties
|
|
268120
|
+
* @deprecated Use ClinicalNoteCoding.$Properties instead.
|
|
268121
|
+
*/
|
|
268122
|
+
|
|
268123
|
+
/**
|
|
268124
|
+
* Shape of a ClinicalNoteCoding.
|
|
268125
|
+
* @typedef {ClinicalNoteCoding.$Properties} ClinicalNoteCoding.$Shape
|
|
268126
|
+
*/
|
|
268127
|
+
|
|
268128
|
+
/**
|
|
268129
|
+
* Constructs a new ClinicalNoteCoding.
|
|
268130
|
+
* @name ClinicalNoteCoding
|
|
268131
|
+
* @classdesc Represents a ClinicalNoteCoding.
|
|
268132
|
+
* @constructor
|
|
268133
|
+
* @param {ClinicalNoteCoding.$Properties=} [properties] Properties to set
|
|
268134
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
268135
|
+
*/
|
|
268136
|
+
function ClinicalNoteCoding(properties) {
|
|
268137
|
+
if (properties)
|
|
268138
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
268139
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
268140
|
+
this[keys[i]] = properties[keys[i]];
|
|
268141
|
+
}
|
|
268142
|
+
|
|
268143
|
+
/**
|
|
268144
|
+
* ClinicalNoteCoding system.
|
|
268145
|
+
* @member {string} system
|
|
268146
|
+
* @memberof ClinicalNoteCoding
|
|
268147
|
+
* @instance
|
|
268148
|
+
*/
|
|
268149
|
+
ClinicalNoteCoding.prototype.system = "";
|
|
268150
|
+
|
|
268151
|
+
/**
|
|
268152
|
+
* ClinicalNoteCoding code.
|
|
268153
|
+
* @member {string} code
|
|
268154
|
+
* @memberof ClinicalNoteCoding
|
|
268155
|
+
* @instance
|
|
268156
|
+
*/
|
|
268157
|
+
ClinicalNoteCoding.prototype.code = "";
|
|
268158
|
+
|
|
268159
|
+
/**
|
|
268160
|
+
* ClinicalNoteCoding display.
|
|
268161
|
+
* @member {string} display
|
|
268162
|
+
* @memberof ClinicalNoteCoding
|
|
268163
|
+
* @instance
|
|
268164
|
+
*/
|
|
268165
|
+
ClinicalNoteCoding.prototype.display = "";
|
|
268166
|
+
|
|
268167
|
+
/**
|
|
268168
|
+
* Creates a new ClinicalNoteCoding instance using the specified properties.
|
|
268169
|
+
* @function create
|
|
268170
|
+
* @memberof ClinicalNoteCoding
|
|
268171
|
+
* @static
|
|
268172
|
+
* @param {ClinicalNoteCoding.$Properties=} [properties] Properties to set
|
|
268173
|
+
* @returns {ClinicalNoteCoding} ClinicalNoteCoding instance
|
|
268174
|
+
* @type {{
|
|
268175
|
+
* (properties: ClinicalNoteCoding.$Shape): ClinicalNoteCoding & ClinicalNoteCoding.$Shape;
|
|
268176
|
+
* (properties?: ClinicalNoteCoding.$Properties): ClinicalNoteCoding;
|
|
268177
|
+
* }}
|
|
268178
|
+
*/
|
|
268179
|
+
ClinicalNoteCoding.create = function create(properties) {
|
|
268180
|
+
return new ClinicalNoteCoding(properties);
|
|
268181
|
+
};
|
|
268182
|
+
|
|
268183
|
+
/**
|
|
268184
|
+
* Encodes the specified ClinicalNoteCoding message. Does not implicitly {@link ClinicalNoteCoding.verify|verify} messages.
|
|
268185
|
+
* @function encode
|
|
268186
|
+
* @memberof ClinicalNoteCoding
|
|
268187
|
+
* @static
|
|
268188
|
+
* @param {ClinicalNoteCoding.$Properties} message ClinicalNoteCoding message or plain object to encode
|
|
268189
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
268190
|
+
* @returns {$protobuf.Writer} Writer
|
|
268191
|
+
*/
|
|
268192
|
+
ClinicalNoteCoding.encode = function encode(message, writer) {
|
|
268193
|
+
if (!writer)
|
|
268194
|
+
writer = $Writer.create();
|
|
268195
|
+
if (message.system != null && Object.hasOwnProperty.call(message, "system"))
|
|
268196
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.system);
|
|
268197
|
+
if (message.code != null && Object.hasOwnProperty.call(message, "code"))
|
|
268198
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.code);
|
|
268199
|
+
if (message.display != null && Object.hasOwnProperty.call(message, "display"))
|
|
268200
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.display);
|
|
268201
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
268202
|
+
for (let i = 0; i < message.$unknowns.length; ++i)
|
|
268203
|
+
writer.raw(message.$unknowns[i]);
|
|
268204
|
+
return writer;
|
|
268205
|
+
};
|
|
268206
|
+
|
|
268207
|
+
/**
|
|
268208
|
+
* Encodes the specified ClinicalNoteCoding message, length delimited. Does not implicitly {@link ClinicalNoteCoding.verify|verify} messages.
|
|
268209
|
+
* @function encodeDelimited
|
|
268210
|
+
* @memberof ClinicalNoteCoding
|
|
268211
|
+
* @static
|
|
268212
|
+
* @param {ClinicalNoteCoding.$Properties} message ClinicalNoteCoding message or plain object to encode
|
|
268213
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
268214
|
+
* @returns {$protobuf.Writer} Writer
|
|
268215
|
+
*/
|
|
268216
|
+
ClinicalNoteCoding.encodeDelimited = function encodeDelimited(message, writer) {
|
|
268217
|
+
return this.encode(message, writer).ldelim();
|
|
268218
|
+
};
|
|
268219
|
+
|
|
268220
|
+
/**
|
|
268221
|
+
* Decodes a ClinicalNoteCoding message from the specified reader or buffer.
|
|
268222
|
+
* @function decode
|
|
268223
|
+
* @memberof ClinicalNoteCoding
|
|
268224
|
+
* @static
|
|
268225
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
268226
|
+
* @param {number} [length] Message length if known beforehand
|
|
268227
|
+
* @returns {ClinicalNoteCoding & ClinicalNoteCoding.$Shape} ClinicalNoteCoding
|
|
268228
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
268229
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
268230
|
+
*/
|
|
268231
|
+
ClinicalNoteCoding.decode = function decode(reader, length, _end, _depth, _target) {
|
|
268232
|
+
if (!(reader instanceof $Reader))
|
|
268233
|
+
reader = $Reader.create(reader);
|
|
268234
|
+
if (_depth === undefined)
|
|
268235
|
+
_depth = 0;
|
|
268236
|
+
if (_depth > $Reader.recursionLimit)
|
|
268237
|
+
throw Error("max depth exceeded");
|
|
268238
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.ClinicalNoteCoding(), value;
|
|
268239
|
+
while (reader.pos < end) {
|
|
268240
|
+
let start = reader.pos;
|
|
268241
|
+
let tag = reader.tag();
|
|
268242
|
+
if (tag === _end) {
|
|
268243
|
+
_end = undefined;
|
|
268244
|
+
break;
|
|
268245
|
+
}
|
|
268246
|
+
let wireType = tag & 7;
|
|
268247
|
+
switch (tag >>>= 3) {
|
|
268248
|
+
case 1: {
|
|
268249
|
+
if (wireType !== 2)
|
|
268250
|
+
break;
|
|
268251
|
+
if ((value = reader.string()).length)
|
|
268252
|
+
message.system = value;
|
|
268253
|
+
else
|
|
268254
|
+
delete message.system;
|
|
268255
|
+
continue;
|
|
268256
|
+
}
|
|
268257
|
+
case 2: {
|
|
268258
|
+
if (wireType !== 2)
|
|
268259
|
+
break;
|
|
268260
|
+
if ((value = reader.string()).length)
|
|
268261
|
+
message.code = value;
|
|
268262
|
+
else
|
|
268263
|
+
delete message.code;
|
|
268264
|
+
continue;
|
|
268265
|
+
}
|
|
268266
|
+
case 3: {
|
|
268267
|
+
if (wireType !== 2)
|
|
268268
|
+
break;
|
|
268269
|
+
if ((value = reader.string()).length)
|
|
268270
|
+
message.display = value;
|
|
268271
|
+
else
|
|
268272
|
+
delete message.display;
|
|
268273
|
+
continue;
|
|
268274
|
+
}
|
|
268275
|
+
}
|
|
268276
|
+
reader.skipType(wireType, _depth, tag);
|
|
268277
|
+
$util.makeProp(message, "$unknowns", false);
|
|
268278
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
268279
|
+
}
|
|
268280
|
+
if (_end !== undefined)
|
|
268281
|
+
throw Error("missing end group");
|
|
268282
|
+
return message;
|
|
268283
|
+
};
|
|
268284
|
+
|
|
268285
|
+
/**
|
|
268286
|
+
* Decodes a ClinicalNoteCoding message from the specified reader or buffer, length delimited.
|
|
268287
|
+
* @function decodeDelimited
|
|
268288
|
+
* @memberof ClinicalNoteCoding
|
|
268289
|
+
* @static
|
|
268290
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
268291
|
+
* @returns {ClinicalNoteCoding & ClinicalNoteCoding.$Shape} ClinicalNoteCoding
|
|
268292
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
268293
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
268294
|
+
*/
|
|
268295
|
+
ClinicalNoteCoding.decodeDelimited = function decodeDelimited(reader) {
|
|
268296
|
+
if (!(reader instanceof $Reader))
|
|
268297
|
+
reader = new $Reader(reader);
|
|
268298
|
+
return this.decode(reader, reader.uint32());
|
|
268299
|
+
};
|
|
268300
|
+
|
|
268301
|
+
/**
|
|
268302
|
+
* Verifies a ClinicalNoteCoding message.
|
|
268303
|
+
* @function verify
|
|
268304
|
+
* @memberof ClinicalNoteCoding
|
|
268305
|
+
* @static
|
|
268306
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
268307
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
268308
|
+
*/
|
|
268309
|
+
ClinicalNoteCoding.verify = function verify(message, _depth) {
|
|
268310
|
+
if (typeof message !== "object" || message === null)
|
|
268311
|
+
return "object expected";
|
|
268312
|
+
if (_depth === undefined)
|
|
268313
|
+
_depth = 0;
|
|
268314
|
+
if (_depth > $util.recursionLimit)
|
|
268315
|
+
return "max depth exceeded";
|
|
268316
|
+
if (message.system != null && message.hasOwnProperty("system"))
|
|
268317
|
+
if (!$util.isString(message.system))
|
|
268318
|
+
return "system: string expected";
|
|
268319
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
268320
|
+
if (!$util.isString(message.code))
|
|
268321
|
+
return "code: string expected";
|
|
268322
|
+
if (message.display != null && message.hasOwnProperty("display"))
|
|
268323
|
+
if (!$util.isString(message.display))
|
|
268324
|
+
return "display: string expected";
|
|
268325
|
+
return null;
|
|
268326
|
+
};
|
|
268327
|
+
|
|
268328
|
+
/**
|
|
268329
|
+
* Creates a ClinicalNoteCoding message from a plain object. Also converts values to their respective internal types.
|
|
268330
|
+
* @function fromObject
|
|
268331
|
+
* @memberof ClinicalNoteCoding
|
|
268332
|
+
* @static
|
|
268333
|
+
* @param {Object.<string,*>} object Plain object
|
|
268334
|
+
* @returns {ClinicalNoteCoding} ClinicalNoteCoding
|
|
268335
|
+
*/
|
|
268336
|
+
ClinicalNoteCoding.fromObject = function fromObject(object, _depth) {
|
|
268337
|
+
if (object instanceof $root.ClinicalNoteCoding)
|
|
268338
|
+
return object;
|
|
268339
|
+
if (_depth === undefined)
|
|
268340
|
+
_depth = 0;
|
|
268341
|
+
if (_depth > $util.recursionLimit)
|
|
268342
|
+
throw Error("max depth exceeded");
|
|
268343
|
+
let message = new $root.ClinicalNoteCoding();
|
|
268344
|
+
if (object.system != null)
|
|
268345
|
+
if (typeof object.system !== "string" || object.system.length)
|
|
268346
|
+
message.system = String(object.system);
|
|
268347
|
+
if (object.code != null)
|
|
268348
|
+
if (typeof object.code !== "string" || object.code.length)
|
|
268349
|
+
message.code = String(object.code);
|
|
268350
|
+
if (object.display != null)
|
|
268351
|
+
if (typeof object.display !== "string" || object.display.length)
|
|
268352
|
+
message.display = String(object.display);
|
|
268353
|
+
return message;
|
|
268354
|
+
};
|
|
268355
|
+
|
|
268356
|
+
/**
|
|
268357
|
+
* Creates a plain object from a ClinicalNoteCoding message. Also converts values to other types if specified.
|
|
268358
|
+
* @function toObject
|
|
268359
|
+
* @memberof ClinicalNoteCoding
|
|
268360
|
+
* @static
|
|
268361
|
+
* @param {ClinicalNoteCoding} message ClinicalNoteCoding
|
|
268362
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
268363
|
+
* @returns {Object.<string,*>} Plain object
|
|
268364
|
+
*/
|
|
268365
|
+
ClinicalNoteCoding.toObject = function toObject(message, options) {
|
|
268366
|
+
if (!options)
|
|
268367
|
+
options = {};
|
|
268368
|
+
let object = {};
|
|
268369
|
+
if (options.defaults) {
|
|
268370
|
+
object.system = "";
|
|
268371
|
+
object.code = "";
|
|
268372
|
+
object.display = "";
|
|
268373
|
+
}
|
|
268374
|
+
if (message.system != null && message.hasOwnProperty("system"))
|
|
268375
|
+
object.system = message.system;
|
|
268376
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
268377
|
+
object.code = message.code;
|
|
268378
|
+
if (message.display != null && message.hasOwnProperty("display"))
|
|
268379
|
+
object.display = message.display;
|
|
268380
|
+
return object;
|
|
268381
|
+
};
|
|
268382
|
+
|
|
268383
|
+
/**
|
|
268384
|
+
* Converts this ClinicalNoteCoding to JSON.
|
|
268385
|
+
* @function toJSON
|
|
268386
|
+
* @memberof ClinicalNoteCoding
|
|
268387
|
+
* @instance
|
|
268388
|
+
* @returns {Object.<string,*>} JSON object
|
|
268389
|
+
*/
|
|
268390
|
+
ClinicalNoteCoding.prototype.toJSON = function toJSON() {
|
|
268391
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
268392
|
+
};
|
|
268393
|
+
|
|
268394
|
+
/**
|
|
268395
|
+
* Gets the type url for ClinicalNoteCoding
|
|
268396
|
+
* @function getTypeUrl
|
|
268397
|
+
* @memberof ClinicalNoteCoding
|
|
268398
|
+
* @static
|
|
268399
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
268400
|
+
* @returns {string} The type url
|
|
268401
|
+
*/
|
|
268402
|
+
ClinicalNoteCoding.getTypeUrl = function getTypeUrl(prefix) {
|
|
268403
|
+
if (prefix === undefined)
|
|
268404
|
+
prefix = "type.googleapis.com";
|
|
268405
|
+
return prefix + "/ClinicalNoteCoding";
|
|
268406
|
+
};
|
|
268407
|
+
|
|
268408
|
+
return ClinicalNoteCoding;
|
|
268409
|
+
})();
|
|
268410
|
+
|
|
268411
|
+
export const ClinicalNoteCodeableConcept = $root.ClinicalNoteCodeableConcept = (() => {
|
|
268412
|
+
|
|
268413
|
+
/**
|
|
268414
|
+
* Properties of a ClinicalNoteCodeableConcept.
|
|
268415
|
+
* @typedef {Object} ClinicalNoteCodeableConcept.$Properties
|
|
268416
|
+
* @property {Array.<ClinicalNoteCoding.$Properties>|null} [codings] ClinicalNoteCodeableConcept codings
|
|
268417
|
+
* @property {string|null} [text] ClinicalNoteCodeableConcept text
|
|
268418
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
268419
|
+
*/
|
|
268420
|
+
|
|
268421
|
+
/**
|
|
268422
|
+
* Properties of a ClinicalNoteCodeableConcept.
|
|
268423
|
+
* @name IClinicalNoteCodeableConcept
|
|
268424
|
+
* @interface IClinicalNoteCodeableConcept
|
|
268425
|
+
* @augments ClinicalNoteCodeableConcept.$Properties
|
|
268426
|
+
* @deprecated Use ClinicalNoteCodeableConcept.$Properties instead.
|
|
268427
|
+
*/
|
|
268428
|
+
|
|
268429
|
+
/**
|
|
268430
|
+
* Shape of a ClinicalNoteCodeableConcept.
|
|
268431
|
+
* @typedef {ClinicalNoteCodeableConcept.$Properties} ClinicalNoteCodeableConcept.$Shape
|
|
268432
|
+
*/
|
|
268433
|
+
|
|
268434
|
+
/**
|
|
268435
|
+
* Constructs a new ClinicalNoteCodeableConcept.
|
|
268436
|
+
* @name ClinicalNoteCodeableConcept
|
|
268437
|
+
* @classdesc Represents a ClinicalNoteCodeableConcept.
|
|
268438
|
+
* @constructor
|
|
268439
|
+
* @param {ClinicalNoteCodeableConcept.$Properties=} [properties] Properties to set
|
|
268440
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
268441
|
+
*/
|
|
268442
|
+
function ClinicalNoteCodeableConcept(properties) {
|
|
268443
|
+
this.codings = [];
|
|
268444
|
+
if (properties)
|
|
268445
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
268446
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
268447
|
+
this[keys[i]] = properties[keys[i]];
|
|
268448
|
+
}
|
|
268449
|
+
|
|
268450
|
+
/**
|
|
268451
|
+
* ClinicalNoteCodeableConcept codings.
|
|
268452
|
+
* @member {Array.<ClinicalNoteCoding.$Properties>} codings
|
|
268453
|
+
* @memberof ClinicalNoteCodeableConcept
|
|
268454
|
+
* @instance
|
|
268455
|
+
*/
|
|
268456
|
+
ClinicalNoteCodeableConcept.prototype.codings = $util.emptyArray;
|
|
268457
|
+
|
|
268458
|
+
/**
|
|
268459
|
+
* ClinicalNoteCodeableConcept text.
|
|
268460
|
+
* @member {string} text
|
|
268461
|
+
* @memberof ClinicalNoteCodeableConcept
|
|
268462
|
+
* @instance
|
|
268463
|
+
*/
|
|
268464
|
+
ClinicalNoteCodeableConcept.prototype.text = "";
|
|
268465
|
+
|
|
268466
|
+
/**
|
|
268467
|
+
* Creates a new ClinicalNoteCodeableConcept instance using the specified properties.
|
|
268468
|
+
* @function create
|
|
268469
|
+
* @memberof ClinicalNoteCodeableConcept
|
|
268470
|
+
* @static
|
|
268471
|
+
* @param {ClinicalNoteCodeableConcept.$Properties=} [properties] Properties to set
|
|
268472
|
+
* @returns {ClinicalNoteCodeableConcept} ClinicalNoteCodeableConcept instance
|
|
268473
|
+
* @type {{
|
|
268474
|
+
* (properties: ClinicalNoteCodeableConcept.$Shape): ClinicalNoteCodeableConcept & ClinicalNoteCodeableConcept.$Shape;
|
|
268475
|
+
* (properties?: ClinicalNoteCodeableConcept.$Properties): ClinicalNoteCodeableConcept;
|
|
268476
|
+
* }}
|
|
268477
|
+
*/
|
|
268478
|
+
ClinicalNoteCodeableConcept.create = function create(properties) {
|
|
268479
|
+
return new ClinicalNoteCodeableConcept(properties);
|
|
268480
|
+
};
|
|
268481
|
+
|
|
268482
|
+
/**
|
|
268483
|
+
* Encodes the specified ClinicalNoteCodeableConcept message. Does not implicitly {@link ClinicalNoteCodeableConcept.verify|verify} messages.
|
|
268484
|
+
* @function encode
|
|
268485
|
+
* @memberof ClinicalNoteCodeableConcept
|
|
268486
|
+
* @static
|
|
268487
|
+
* @param {ClinicalNoteCodeableConcept.$Properties} message ClinicalNoteCodeableConcept message or plain object to encode
|
|
268488
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
268489
|
+
* @returns {$protobuf.Writer} Writer
|
|
268490
|
+
*/
|
|
268491
|
+
ClinicalNoteCodeableConcept.encode = function encode(message, writer) {
|
|
268492
|
+
if (!writer)
|
|
268493
|
+
writer = $Writer.create();
|
|
268494
|
+
if (message.codings != null && message.codings.length)
|
|
268495
|
+
for (let i = 0; i < message.codings.length; ++i)
|
|
268496
|
+
$root.ClinicalNoteCoding.encode(message.codings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
268497
|
+
if (message.text != null && Object.hasOwnProperty.call(message, "text"))
|
|
268498
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.text);
|
|
268499
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
268500
|
+
for (let i = 0; i < message.$unknowns.length; ++i)
|
|
268501
|
+
writer.raw(message.$unknowns[i]);
|
|
268502
|
+
return writer;
|
|
268503
|
+
};
|
|
268504
|
+
|
|
268505
|
+
/**
|
|
268506
|
+
* Encodes the specified ClinicalNoteCodeableConcept message, length delimited. Does not implicitly {@link ClinicalNoteCodeableConcept.verify|verify} messages.
|
|
268507
|
+
* @function encodeDelimited
|
|
268508
|
+
* @memberof ClinicalNoteCodeableConcept
|
|
268509
|
+
* @static
|
|
268510
|
+
* @param {ClinicalNoteCodeableConcept.$Properties} message ClinicalNoteCodeableConcept message or plain object to encode
|
|
268511
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
268512
|
+
* @returns {$protobuf.Writer} Writer
|
|
268513
|
+
*/
|
|
268514
|
+
ClinicalNoteCodeableConcept.encodeDelimited = function encodeDelimited(message, writer) {
|
|
268515
|
+
return this.encode(message, writer).ldelim();
|
|
268516
|
+
};
|
|
268517
|
+
|
|
268518
|
+
/**
|
|
268519
|
+
* Decodes a ClinicalNoteCodeableConcept message from the specified reader or buffer.
|
|
268520
|
+
* @function decode
|
|
268521
|
+
* @memberof ClinicalNoteCodeableConcept
|
|
268522
|
+
* @static
|
|
268523
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
268524
|
+
* @param {number} [length] Message length if known beforehand
|
|
268525
|
+
* @returns {ClinicalNoteCodeableConcept & ClinicalNoteCodeableConcept.$Shape} ClinicalNoteCodeableConcept
|
|
268526
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
268527
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
268528
|
+
*/
|
|
268529
|
+
ClinicalNoteCodeableConcept.decode = function decode(reader, length, _end, _depth, _target) {
|
|
268530
|
+
if (!(reader instanceof $Reader))
|
|
268531
|
+
reader = $Reader.create(reader);
|
|
268532
|
+
if (_depth === undefined)
|
|
268533
|
+
_depth = 0;
|
|
268534
|
+
if (_depth > $Reader.recursionLimit)
|
|
268535
|
+
throw Error("max depth exceeded");
|
|
268536
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.ClinicalNoteCodeableConcept(), value;
|
|
268537
|
+
while (reader.pos < end) {
|
|
268538
|
+
let start = reader.pos;
|
|
268539
|
+
let tag = reader.tag();
|
|
268540
|
+
if (tag === _end) {
|
|
268541
|
+
_end = undefined;
|
|
268542
|
+
break;
|
|
268543
|
+
}
|
|
268544
|
+
let wireType = tag & 7;
|
|
268545
|
+
switch (tag >>>= 3) {
|
|
268546
|
+
case 1: {
|
|
268547
|
+
if (wireType !== 2)
|
|
268548
|
+
break;
|
|
268549
|
+
if (!(message.codings && message.codings.length))
|
|
268550
|
+
message.codings = [];
|
|
268551
|
+
message.codings.push($root.ClinicalNoteCoding.decode(reader, reader.uint32(), undefined, _depth + 1));
|
|
268552
|
+
continue;
|
|
268553
|
+
}
|
|
268554
|
+
case 2: {
|
|
268555
|
+
if (wireType !== 2)
|
|
268556
|
+
break;
|
|
268557
|
+
if ((value = reader.string()).length)
|
|
268558
|
+
message.text = value;
|
|
268559
|
+
else
|
|
268560
|
+
delete message.text;
|
|
268561
|
+
continue;
|
|
268562
|
+
}
|
|
268563
|
+
}
|
|
268564
|
+
reader.skipType(wireType, _depth, tag);
|
|
268565
|
+
$util.makeProp(message, "$unknowns", false);
|
|
268566
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
268567
|
+
}
|
|
268568
|
+
if (_end !== undefined)
|
|
268569
|
+
throw Error("missing end group");
|
|
268570
|
+
return message;
|
|
268571
|
+
};
|
|
268572
|
+
|
|
268573
|
+
/**
|
|
268574
|
+
* Decodes a ClinicalNoteCodeableConcept message from the specified reader or buffer, length delimited.
|
|
268575
|
+
* @function decodeDelimited
|
|
268576
|
+
* @memberof ClinicalNoteCodeableConcept
|
|
268577
|
+
* @static
|
|
268578
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
268579
|
+
* @returns {ClinicalNoteCodeableConcept & ClinicalNoteCodeableConcept.$Shape} ClinicalNoteCodeableConcept
|
|
268580
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
268581
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
268582
|
+
*/
|
|
268583
|
+
ClinicalNoteCodeableConcept.decodeDelimited = function decodeDelimited(reader) {
|
|
268584
|
+
if (!(reader instanceof $Reader))
|
|
268585
|
+
reader = new $Reader(reader);
|
|
268586
|
+
return this.decode(reader, reader.uint32());
|
|
268587
|
+
};
|
|
268588
|
+
|
|
268589
|
+
/**
|
|
268590
|
+
* Verifies a ClinicalNoteCodeableConcept message.
|
|
268591
|
+
* @function verify
|
|
268592
|
+
* @memberof ClinicalNoteCodeableConcept
|
|
268593
|
+
* @static
|
|
268594
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
268595
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
268596
|
+
*/
|
|
268597
|
+
ClinicalNoteCodeableConcept.verify = function verify(message, _depth) {
|
|
268598
|
+
if (typeof message !== "object" || message === null)
|
|
268599
|
+
return "object expected";
|
|
268600
|
+
if (_depth === undefined)
|
|
268601
|
+
_depth = 0;
|
|
268602
|
+
if (_depth > $util.recursionLimit)
|
|
268603
|
+
return "max depth exceeded";
|
|
268604
|
+
if (message.codings != null && message.hasOwnProperty("codings")) {
|
|
268605
|
+
if (!Array.isArray(message.codings))
|
|
268606
|
+
return "codings: array expected";
|
|
268607
|
+
for (let i = 0; i < message.codings.length; ++i) {
|
|
268608
|
+
let error = $root.ClinicalNoteCoding.verify(message.codings[i], _depth + 1);
|
|
268609
|
+
if (error)
|
|
268610
|
+
return "codings." + error;
|
|
268611
|
+
}
|
|
268612
|
+
}
|
|
268613
|
+
if (message.text != null && message.hasOwnProperty("text"))
|
|
268614
|
+
if (!$util.isString(message.text))
|
|
268615
|
+
return "text: string expected";
|
|
268616
|
+
return null;
|
|
268617
|
+
};
|
|
268618
|
+
|
|
268619
|
+
/**
|
|
268620
|
+
* Creates a ClinicalNoteCodeableConcept message from a plain object. Also converts values to their respective internal types.
|
|
268621
|
+
* @function fromObject
|
|
268622
|
+
* @memberof ClinicalNoteCodeableConcept
|
|
268623
|
+
* @static
|
|
268624
|
+
* @param {Object.<string,*>} object Plain object
|
|
268625
|
+
* @returns {ClinicalNoteCodeableConcept} ClinicalNoteCodeableConcept
|
|
268626
|
+
*/
|
|
268627
|
+
ClinicalNoteCodeableConcept.fromObject = function fromObject(object, _depth) {
|
|
268628
|
+
if (object instanceof $root.ClinicalNoteCodeableConcept)
|
|
268629
|
+
return object;
|
|
268630
|
+
if (_depth === undefined)
|
|
268631
|
+
_depth = 0;
|
|
268632
|
+
if (_depth > $util.recursionLimit)
|
|
268633
|
+
throw Error("max depth exceeded");
|
|
268634
|
+
let message = new $root.ClinicalNoteCodeableConcept();
|
|
268635
|
+
if (object.codings) {
|
|
268636
|
+
if (!Array.isArray(object.codings))
|
|
268637
|
+
throw TypeError(".ClinicalNoteCodeableConcept.codings: array expected");
|
|
268638
|
+
message.codings = Array(object.codings.length);
|
|
268639
|
+
for (let i = 0; i < object.codings.length; ++i) {
|
|
268640
|
+
if (typeof object.codings[i] !== "object")
|
|
268641
|
+
throw TypeError(".ClinicalNoteCodeableConcept.codings: object expected");
|
|
268642
|
+
message.codings[i] = $root.ClinicalNoteCoding.fromObject(object.codings[i], _depth + 1);
|
|
268643
|
+
}
|
|
268644
|
+
}
|
|
268645
|
+
if (object.text != null)
|
|
268646
|
+
if (typeof object.text !== "string" || object.text.length)
|
|
268647
|
+
message.text = String(object.text);
|
|
268648
|
+
return message;
|
|
268649
|
+
};
|
|
268650
|
+
|
|
268651
|
+
/**
|
|
268652
|
+
* Creates a plain object from a ClinicalNoteCodeableConcept message. Also converts values to other types if specified.
|
|
268653
|
+
* @function toObject
|
|
268654
|
+
* @memberof ClinicalNoteCodeableConcept
|
|
268655
|
+
* @static
|
|
268656
|
+
* @param {ClinicalNoteCodeableConcept} message ClinicalNoteCodeableConcept
|
|
268657
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
268658
|
+
* @returns {Object.<string,*>} Plain object
|
|
268659
|
+
*/
|
|
268660
|
+
ClinicalNoteCodeableConcept.toObject = function toObject(message, options) {
|
|
268661
|
+
if (!options)
|
|
268662
|
+
options = {};
|
|
268663
|
+
let object = {};
|
|
268664
|
+
if (options.arrays || options.defaults)
|
|
268665
|
+
object.codings = [];
|
|
268666
|
+
if (options.defaults)
|
|
268667
|
+
object.text = "";
|
|
268668
|
+
if (message.codings && message.codings.length) {
|
|
268669
|
+
object.codings = Array(message.codings.length);
|
|
268670
|
+
for (let j = 0; j < message.codings.length; ++j)
|
|
268671
|
+
object.codings[j] = $root.ClinicalNoteCoding.toObject(message.codings[j], options);
|
|
268672
|
+
}
|
|
268673
|
+
if (message.text != null && message.hasOwnProperty("text"))
|
|
268674
|
+
object.text = message.text;
|
|
268675
|
+
return object;
|
|
268676
|
+
};
|
|
268677
|
+
|
|
268678
|
+
/**
|
|
268679
|
+
* Converts this ClinicalNoteCodeableConcept to JSON.
|
|
268680
|
+
* @function toJSON
|
|
268681
|
+
* @memberof ClinicalNoteCodeableConcept
|
|
268682
|
+
* @instance
|
|
268683
|
+
* @returns {Object.<string,*>} JSON object
|
|
268684
|
+
*/
|
|
268685
|
+
ClinicalNoteCodeableConcept.prototype.toJSON = function toJSON() {
|
|
268686
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
268687
|
+
};
|
|
268688
|
+
|
|
268689
|
+
/**
|
|
268690
|
+
* Gets the type url for ClinicalNoteCodeableConcept
|
|
268691
|
+
* @function getTypeUrl
|
|
268692
|
+
* @memberof ClinicalNoteCodeableConcept
|
|
268693
|
+
* @static
|
|
268694
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
268695
|
+
* @returns {string} The type url
|
|
268696
|
+
*/
|
|
268697
|
+
ClinicalNoteCodeableConcept.getTypeUrl = function getTypeUrl(prefix) {
|
|
268698
|
+
if (prefix === undefined)
|
|
268699
|
+
prefix = "type.googleapis.com";
|
|
268700
|
+
return prefix + "/ClinicalNoteCodeableConcept";
|
|
268701
|
+
};
|
|
268702
|
+
|
|
268703
|
+
return ClinicalNoteCodeableConcept;
|
|
268704
|
+
})();
|
|
268705
|
+
|
|
268706
|
+
/**
|
|
268707
|
+
* ClinicalNoteObservationCategory enum.
|
|
268708
|
+
* @name ClinicalNoteObservationCategory
|
|
268709
|
+
* @enum {number}
|
|
268710
|
+
* @property {number} CLINICAL_NOTE_OBSERVATION_CATEGORY_UNKNOWN=0 CLINICAL_NOTE_OBSERVATION_CATEGORY_UNKNOWN value
|
|
268711
|
+
* @property {number} CLINICAL_NOTE_OBSERVATION_CATEGORY_EXAM=1 CLINICAL_NOTE_OBSERVATION_CATEGORY_EXAM value
|
|
268712
|
+
* @property {number} CLINICAL_NOTE_OBSERVATION_CATEGORY_SOCIAL_HISTORY=2 CLINICAL_NOTE_OBSERVATION_CATEGORY_SOCIAL_HISTORY value
|
|
268713
|
+
* @property {number} CLINICAL_NOTE_OBSERVATION_CATEGORY_THERAPY=3 CLINICAL_NOTE_OBSERVATION_CATEGORY_THERAPY value
|
|
268714
|
+
*/
|
|
268715
|
+
export const ClinicalNoteObservationCategory = $root.ClinicalNoteObservationCategory = (() => {
|
|
268716
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
268717
|
+
values[valuesById[0] = "CLINICAL_NOTE_OBSERVATION_CATEGORY_UNKNOWN"] = 0;
|
|
268718
|
+
values[valuesById[1] = "CLINICAL_NOTE_OBSERVATION_CATEGORY_EXAM"] = 1;
|
|
268719
|
+
values[valuesById[2] = "CLINICAL_NOTE_OBSERVATION_CATEGORY_SOCIAL_HISTORY"] = 2;
|
|
268720
|
+
values[valuesById[3] = "CLINICAL_NOTE_OBSERVATION_CATEGORY_THERAPY"] = 3;
|
|
268721
|
+
return values;
|
|
268722
|
+
})();
|
|
268723
|
+
|
|
268724
|
+
export const ClinicalNoteObservation = $root.ClinicalNoteObservation = (() => {
|
|
268725
|
+
|
|
268726
|
+
/**
|
|
268727
|
+
* Properties of a ClinicalNoteObservation.
|
|
268728
|
+
* @typedef {Object} ClinicalNoteObservation.$Properties
|
|
268729
|
+
* @property {string|null} [key] ClinicalNoteObservation key
|
|
268730
|
+
* @property {string|null} [panelKey] ClinicalNoteObservation panelKey
|
|
268731
|
+
* @property {ClinicalNoteObservationCategory|null} [category] ClinicalNoteObservation category
|
|
268732
|
+
* @property {ClinicalNoteCodeableConcept.$Properties|null} [code] ClinicalNoteObservation code
|
|
268733
|
+
* @property {ClinicalNoteCodeableConcept.$Properties|null} [valueConcept] ClinicalNoteObservation valueConcept
|
|
268734
|
+
* @property {string|null} [valueString] ClinicalNoteObservation valueString
|
|
268735
|
+
* @property {boolean|null} [valueBoolean] ClinicalNoteObservation valueBoolean
|
|
268736
|
+
* @property {string|null} [note] ClinicalNoteObservation note
|
|
268737
|
+
* @property {Array.<string>|null} [ds4pCodes] ClinicalNoteObservation ds4pCodes
|
|
268738
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
268739
|
+
*/
|
|
268740
|
+
|
|
268741
|
+
/**
|
|
268742
|
+
* Properties of a ClinicalNoteObservation.
|
|
268743
|
+
* @name IClinicalNoteObservation
|
|
268744
|
+
* @interface IClinicalNoteObservation
|
|
268745
|
+
* @augments ClinicalNoteObservation.$Properties
|
|
268746
|
+
* @deprecated Use ClinicalNoteObservation.$Properties instead.
|
|
268747
|
+
*/
|
|
268748
|
+
|
|
268749
|
+
/**
|
|
268750
|
+
* Shape of a ClinicalNoteObservation.
|
|
268751
|
+
* @typedef {ClinicalNoteObservation.$Properties} ClinicalNoteObservation.$Shape
|
|
268752
|
+
*/
|
|
268753
|
+
|
|
268754
|
+
/**
|
|
268755
|
+
* Constructs a new ClinicalNoteObservation.
|
|
268756
|
+
* @name ClinicalNoteObservation
|
|
268757
|
+
* @classdesc Represents a ClinicalNoteObservation.
|
|
268758
|
+
* @constructor
|
|
268759
|
+
* @param {ClinicalNoteObservation.$Properties=} [properties] Properties to set
|
|
268760
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
268761
|
+
*/
|
|
268762
|
+
function ClinicalNoteObservation(properties) {
|
|
268763
|
+
this.ds4pCodes = [];
|
|
268764
|
+
if (properties)
|
|
268765
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
268766
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
268767
|
+
this[keys[i]] = properties[keys[i]];
|
|
268768
|
+
}
|
|
268769
|
+
|
|
268770
|
+
/**
|
|
268771
|
+
* ClinicalNoteObservation key.
|
|
268772
|
+
* @member {string} key
|
|
268773
|
+
* @memberof ClinicalNoteObservation
|
|
268774
|
+
* @instance
|
|
268775
|
+
*/
|
|
268776
|
+
ClinicalNoteObservation.prototype.key = "";
|
|
268777
|
+
|
|
268778
|
+
/**
|
|
268779
|
+
* ClinicalNoteObservation panelKey.
|
|
268780
|
+
* @member {string} panelKey
|
|
268781
|
+
* @memberof ClinicalNoteObservation
|
|
268782
|
+
* @instance
|
|
268783
|
+
*/
|
|
268784
|
+
ClinicalNoteObservation.prototype.panelKey = "";
|
|
268785
|
+
|
|
268786
|
+
/**
|
|
268787
|
+
* ClinicalNoteObservation category.
|
|
268788
|
+
* @member {ClinicalNoteObservationCategory} category
|
|
268789
|
+
* @memberof ClinicalNoteObservation
|
|
268790
|
+
* @instance
|
|
268791
|
+
*/
|
|
268792
|
+
ClinicalNoteObservation.prototype.category = 0;
|
|
268793
|
+
|
|
268794
|
+
/**
|
|
268795
|
+
* ClinicalNoteObservation code.
|
|
268796
|
+
* @member {ClinicalNoteCodeableConcept.$Properties|null|undefined} code
|
|
268797
|
+
* @memberof ClinicalNoteObservation
|
|
268798
|
+
* @instance
|
|
268799
|
+
*/
|
|
268800
|
+
ClinicalNoteObservation.prototype.code = null;
|
|
268801
|
+
|
|
268802
|
+
/**
|
|
268803
|
+
* ClinicalNoteObservation valueConcept.
|
|
268804
|
+
* @member {ClinicalNoteCodeableConcept.$Properties|null|undefined} valueConcept
|
|
268805
|
+
* @memberof ClinicalNoteObservation
|
|
268806
|
+
* @instance
|
|
268807
|
+
*/
|
|
268808
|
+
ClinicalNoteObservation.prototype.valueConcept = null;
|
|
268809
|
+
|
|
268810
|
+
/**
|
|
268811
|
+
* ClinicalNoteObservation valueString.
|
|
268812
|
+
* @member {string} valueString
|
|
268813
|
+
* @memberof ClinicalNoteObservation
|
|
268814
|
+
* @instance
|
|
268815
|
+
*/
|
|
268816
|
+
ClinicalNoteObservation.prototype.valueString = "";
|
|
268817
|
+
|
|
268818
|
+
/**
|
|
268819
|
+
* ClinicalNoteObservation valueBoolean.
|
|
268820
|
+
* @member {boolean|null|undefined} valueBoolean
|
|
268821
|
+
* @memberof ClinicalNoteObservation
|
|
268822
|
+
* @instance
|
|
268823
|
+
*/
|
|
268824
|
+
ClinicalNoteObservation.prototype.valueBoolean = null;
|
|
268825
|
+
|
|
268826
|
+
/**
|
|
268827
|
+
* ClinicalNoteObservation note.
|
|
268828
|
+
* @member {string} note
|
|
268829
|
+
* @memberof ClinicalNoteObservation
|
|
268830
|
+
* @instance
|
|
268831
|
+
*/
|
|
268832
|
+
ClinicalNoteObservation.prototype.note = "";
|
|
268833
|
+
|
|
268834
|
+
/**
|
|
268835
|
+
* ClinicalNoteObservation ds4pCodes.
|
|
268836
|
+
* @member {Array.<string>} ds4pCodes
|
|
268837
|
+
* @memberof ClinicalNoteObservation
|
|
268838
|
+
* @instance
|
|
268839
|
+
*/
|
|
268840
|
+
ClinicalNoteObservation.prototype.ds4pCodes = $util.emptyArray;
|
|
268841
|
+
|
|
268842
|
+
// OneOf field names bound to virtual getters and setters
|
|
268843
|
+
let $oneOfFields;
|
|
268844
|
+
|
|
268845
|
+
// Virtual OneOf for proto3 optional field
|
|
268846
|
+
Object.defineProperty(ClinicalNoteObservation.prototype, "_valueBoolean", {
|
|
268847
|
+
get: $util.oneOfGetter($oneOfFields = ["valueBoolean"]),
|
|
268848
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
268849
|
+
});
|
|
268850
|
+
|
|
268851
|
+
/**
|
|
268852
|
+
* Creates a new ClinicalNoteObservation instance using the specified properties.
|
|
268853
|
+
* @function create
|
|
268854
|
+
* @memberof ClinicalNoteObservation
|
|
268855
|
+
* @static
|
|
268856
|
+
* @param {ClinicalNoteObservation.$Properties=} [properties] Properties to set
|
|
268857
|
+
* @returns {ClinicalNoteObservation} ClinicalNoteObservation instance
|
|
268858
|
+
* @type {{
|
|
268859
|
+
* (properties: ClinicalNoteObservation.$Shape): ClinicalNoteObservation & ClinicalNoteObservation.$Shape;
|
|
268860
|
+
* (properties?: ClinicalNoteObservation.$Properties): ClinicalNoteObservation;
|
|
268861
|
+
* }}
|
|
268862
|
+
*/
|
|
268863
|
+
ClinicalNoteObservation.create = function create(properties) {
|
|
268864
|
+
return new ClinicalNoteObservation(properties);
|
|
268865
|
+
};
|
|
268866
|
+
|
|
268867
|
+
/**
|
|
268868
|
+
* Encodes the specified ClinicalNoteObservation message. Does not implicitly {@link ClinicalNoteObservation.verify|verify} messages.
|
|
268869
|
+
* @function encode
|
|
268870
|
+
* @memberof ClinicalNoteObservation
|
|
268871
|
+
* @static
|
|
268872
|
+
* @param {ClinicalNoteObservation.$Properties} message ClinicalNoteObservation message or plain object to encode
|
|
268873
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
268874
|
+
* @returns {$protobuf.Writer} Writer
|
|
268875
|
+
*/
|
|
268876
|
+
ClinicalNoteObservation.encode = function encode(message, writer) {
|
|
268877
|
+
if (!writer)
|
|
268878
|
+
writer = $Writer.create();
|
|
268879
|
+
if (message.key != null && Object.hasOwnProperty.call(message, "key"))
|
|
268880
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.key);
|
|
268881
|
+
if (message.panelKey != null && Object.hasOwnProperty.call(message, "panelKey"))
|
|
268882
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.panelKey);
|
|
268883
|
+
if (message.category != null && Object.hasOwnProperty.call(message, "category"))
|
|
268884
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.category);
|
|
268885
|
+
if (message.code != null && Object.hasOwnProperty.call(message, "code"))
|
|
268886
|
+
$root.ClinicalNoteCodeableConcept.encode(message.code, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
268887
|
+
if (message.valueConcept != null && Object.hasOwnProperty.call(message, "valueConcept"))
|
|
268888
|
+
$root.ClinicalNoteCodeableConcept.encode(message.valueConcept, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
268889
|
+
if (message.valueString != null && Object.hasOwnProperty.call(message, "valueString"))
|
|
268890
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.valueString);
|
|
268891
|
+
if (message.valueBoolean != null && Object.hasOwnProperty.call(message, "valueBoolean"))
|
|
268892
|
+
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.valueBoolean);
|
|
268893
|
+
if (message.note != null && Object.hasOwnProperty.call(message, "note"))
|
|
268894
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.note);
|
|
268895
|
+
if (message.ds4pCodes != null && message.ds4pCodes.length)
|
|
268896
|
+
for (let i = 0; i < message.ds4pCodes.length; ++i)
|
|
268897
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.ds4pCodes[i]);
|
|
268898
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
268899
|
+
for (let i = 0; i < message.$unknowns.length; ++i)
|
|
268900
|
+
writer.raw(message.$unknowns[i]);
|
|
268901
|
+
return writer;
|
|
268902
|
+
};
|
|
268903
|
+
|
|
268904
|
+
/**
|
|
268905
|
+
* Encodes the specified ClinicalNoteObservation message, length delimited. Does not implicitly {@link ClinicalNoteObservation.verify|verify} messages.
|
|
268906
|
+
* @function encodeDelimited
|
|
268907
|
+
* @memberof ClinicalNoteObservation
|
|
268908
|
+
* @static
|
|
268909
|
+
* @param {ClinicalNoteObservation.$Properties} message ClinicalNoteObservation message or plain object to encode
|
|
268910
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
268911
|
+
* @returns {$protobuf.Writer} Writer
|
|
268912
|
+
*/
|
|
268913
|
+
ClinicalNoteObservation.encodeDelimited = function encodeDelimited(message, writer) {
|
|
268914
|
+
return this.encode(message, writer).ldelim();
|
|
268915
|
+
};
|
|
268916
|
+
|
|
268917
|
+
/**
|
|
268918
|
+
* Decodes a ClinicalNoteObservation message from the specified reader or buffer.
|
|
268919
|
+
* @function decode
|
|
268920
|
+
* @memberof ClinicalNoteObservation
|
|
268921
|
+
* @static
|
|
268922
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
268923
|
+
* @param {number} [length] Message length if known beforehand
|
|
268924
|
+
* @returns {ClinicalNoteObservation & ClinicalNoteObservation.$Shape} ClinicalNoteObservation
|
|
268925
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
268926
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
268927
|
+
*/
|
|
268928
|
+
ClinicalNoteObservation.decode = function decode(reader, length, _end, _depth, _target) {
|
|
268929
|
+
if (!(reader instanceof $Reader))
|
|
268930
|
+
reader = $Reader.create(reader);
|
|
268931
|
+
if (_depth === undefined)
|
|
268932
|
+
_depth = 0;
|
|
268933
|
+
if (_depth > $Reader.recursionLimit)
|
|
268934
|
+
throw Error("max depth exceeded");
|
|
268935
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.ClinicalNoteObservation(), value;
|
|
268936
|
+
while (reader.pos < end) {
|
|
268937
|
+
let start = reader.pos;
|
|
268938
|
+
let tag = reader.tag();
|
|
268939
|
+
if (tag === _end) {
|
|
268940
|
+
_end = undefined;
|
|
268941
|
+
break;
|
|
268942
|
+
}
|
|
268943
|
+
let wireType = tag & 7;
|
|
268944
|
+
switch (tag >>>= 3) {
|
|
268945
|
+
case 1: {
|
|
268946
|
+
if (wireType !== 2)
|
|
268947
|
+
break;
|
|
268948
|
+
if ((value = reader.string()).length)
|
|
268949
|
+
message.key = value;
|
|
268950
|
+
else
|
|
268951
|
+
delete message.key;
|
|
268952
|
+
continue;
|
|
268953
|
+
}
|
|
268954
|
+
case 2: {
|
|
268955
|
+
if (wireType !== 2)
|
|
268956
|
+
break;
|
|
268957
|
+
if ((value = reader.string()).length)
|
|
268958
|
+
message.panelKey = value;
|
|
268959
|
+
else
|
|
268960
|
+
delete message.panelKey;
|
|
268961
|
+
continue;
|
|
268962
|
+
}
|
|
268963
|
+
case 3: {
|
|
268964
|
+
if (wireType !== 0)
|
|
268965
|
+
break;
|
|
268966
|
+
if (value = reader.int32())
|
|
268967
|
+
message.category = value;
|
|
268968
|
+
else
|
|
268969
|
+
delete message.category;
|
|
268970
|
+
continue;
|
|
268971
|
+
}
|
|
268972
|
+
case 4: {
|
|
268973
|
+
if (wireType !== 2)
|
|
268974
|
+
break;
|
|
268975
|
+
message.code = $root.ClinicalNoteCodeableConcept.decode(reader, reader.uint32(), undefined, _depth + 1, message.code);
|
|
268976
|
+
continue;
|
|
268977
|
+
}
|
|
268978
|
+
case 5: {
|
|
268979
|
+
if (wireType !== 2)
|
|
268980
|
+
break;
|
|
268981
|
+
message.valueConcept = $root.ClinicalNoteCodeableConcept.decode(reader, reader.uint32(), undefined, _depth + 1, message.valueConcept);
|
|
268982
|
+
continue;
|
|
268983
|
+
}
|
|
268984
|
+
case 6: {
|
|
268985
|
+
if (wireType !== 2)
|
|
268986
|
+
break;
|
|
268987
|
+
if ((value = reader.string()).length)
|
|
268988
|
+
message.valueString = value;
|
|
268989
|
+
else
|
|
268990
|
+
delete message.valueString;
|
|
268991
|
+
continue;
|
|
268992
|
+
}
|
|
268993
|
+
case 7: {
|
|
268994
|
+
if (wireType !== 0)
|
|
268995
|
+
break;
|
|
268996
|
+
message.valueBoolean = reader.bool();
|
|
268997
|
+
message._valueBoolean = "valueBoolean";
|
|
268998
|
+
continue;
|
|
268999
|
+
}
|
|
269000
|
+
case 8: {
|
|
269001
|
+
if (wireType !== 2)
|
|
269002
|
+
break;
|
|
269003
|
+
if ((value = reader.string()).length)
|
|
269004
|
+
message.note = value;
|
|
269005
|
+
else
|
|
269006
|
+
delete message.note;
|
|
269007
|
+
continue;
|
|
269008
|
+
}
|
|
269009
|
+
case 9: {
|
|
269010
|
+
if (wireType !== 2)
|
|
269011
|
+
break;
|
|
269012
|
+
if (!(message.ds4pCodes && message.ds4pCodes.length))
|
|
269013
|
+
message.ds4pCodes = [];
|
|
269014
|
+
message.ds4pCodes.push(reader.string());
|
|
269015
|
+
continue;
|
|
269016
|
+
}
|
|
269017
|
+
}
|
|
269018
|
+
reader.skipType(wireType, _depth, tag);
|
|
269019
|
+
$util.makeProp(message, "$unknowns", false);
|
|
269020
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
269021
|
+
}
|
|
269022
|
+
if (_end !== undefined)
|
|
269023
|
+
throw Error("missing end group");
|
|
269024
|
+
return message;
|
|
269025
|
+
};
|
|
269026
|
+
|
|
269027
|
+
/**
|
|
269028
|
+
* Decodes a ClinicalNoteObservation message from the specified reader or buffer, length delimited.
|
|
269029
|
+
* @function decodeDelimited
|
|
269030
|
+
* @memberof ClinicalNoteObservation
|
|
269031
|
+
* @static
|
|
269032
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
269033
|
+
* @returns {ClinicalNoteObservation & ClinicalNoteObservation.$Shape} ClinicalNoteObservation
|
|
269034
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
269035
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
269036
|
+
*/
|
|
269037
|
+
ClinicalNoteObservation.decodeDelimited = function decodeDelimited(reader) {
|
|
269038
|
+
if (!(reader instanceof $Reader))
|
|
269039
|
+
reader = new $Reader(reader);
|
|
269040
|
+
return this.decode(reader, reader.uint32());
|
|
269041
|
+
};
|
|
269042
|
+
|
|
269043
|
+
/**
|
|
269044
|
+
* Verifies a ClinicalNoteObservation message.
|
|
269045
|
+
* @function verify
|
|
269046
|
+
* @memberof ClinicalNoteObservation
|
|
269047
|
+
* @static
|
|
269048
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
269049
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
269050
|
+
*/
|
|
269051
|
+
ClinicalNoteObservation.verify = function verify(message, _depth) {
|
|
269052
|
+
if (typeof message !== "object" || message === null)
|
|
269053
|
+
return "object expected";
|
|
269054
|
+
if (_depth === undefined)
|
|
269055
|
+
_depth = 0;
|
|
269056
|
+
if (_depth > $util.recursionLimit)
|
|
269057
|
+
return "max depth exceeded";
|
|
269058
|
+
let properties = {};
|
|
269059
|
+
if (message.key != null && message.hasOwnProperty("key"))
|
|
269060
|
+
if (!$util.isString(message.key))
|
|
269061
|
+
return "key: string expected";
|
|
269062
|
+
if (message.panelKey != null && message.hasOwnProperty("panelKey"))
|
|
269063
|
+
if (!$util.isString(message.panelKey))
|
|
269064
|
+
return "panelKey: string expected";
|
|
269065
|
+
if (message.category != null && message.hasOwnProperty("category"))
|
|
269066
|
+
switch (message.category) {
|
|
269067
|
+
default:
|
|
269068
|
+
return "category: enum value expected";
|
|
269069
|
+
case 0:
|
|
269070
|
+
case 1:
|
|
269071
|
+
case 2:
|
|
269072
|
+
case 3:
|
|
269073
|
+
break;
|
|
269074
|
+
}
|
|
269075
|
+
if (message.code != null && message.hasOwnProperty("code")) {
|
|
269076
|
+
let error = $root.ClinicalNoteCodeableConcept.verify(message.code, _depth + 1);
|
|
269077
|
+
if (error)
|
|
269078
|
+
return "code." + error;
|
|
269079
|
+
}
|
|
269080
|
+
if (message.valueConcept != null && message.hasOwnProperty("valueConcept")) {
|
|
269081
|
+
let error = $root.ClinicalNoteCodeableConcept.verify(message.valueConcept, _depth + 1);
|
|
269082
|
+
if (error)
|
|
269083
|
+
return "valueConcept." + error;
|
|
269084
|
+
}
|
|
269085
|
+
if (message.valueString != null && message.hasOwnProperty("valueString"))
|
|
269086
|
+
if (!$util.isString(message.valueString))
|
|
269087
|
+
return "valueString: string expected";
|
|
269088
|
+
if (message.valueBoolean != null && message.hasOwnProperty("valueBoolean")) {
|
|
269089
|
+
properties._valueBoolean = 1;
|
|
269090
|
+
if (typeof message.valueBoolean !== "boolean")
|
|
269091
|
+
return "valueBoolean: boolean expected";
|
|
269092
|
+
}
|
|
269093
|
+
if (message.note != null && message.hasOwnProperty("note"))
|
|
269094
|
+
if (!$util.isString(message.note))
|
|
269095
|
+
return "note: string expected";
|
|
269096
|
+
if (message.ds4pCodes != null && message.hasOwnProperty("ds4pCodes")) {
|
|
269097
|
+
if (!Array.isArray(message.ds4pCodes))
|
|
269098
|
+
return "ds4pCodes: array expected";
|
|
269099
|
+
for (let i = 0; i < message.ds4pCodes.length; ++i)
|
|
269100
|
+
if (!$util.isString(message.ds4pCodes[i]))
|
|
269101
|
+
return "ds4pCodes: string[] expected";
|
|
269102
|
+
}
|
|
269103
|
+
return null;
|
|
269104
|
+
};
|
|
269105
|
+
|
|
269106
|
+
/**
|
|
269107
|
+
* Creates a ClinicalNoteObservation message from a plain object. Also converts values to their respective internal types.
|
|
269108
|
+
* @function fromObject
|
|
269109
|
+
* @memberof ClinicalNoteObservation
|
|
269110
|
+
* @static
|
|
269111
|
+
* @param {Object.<string,*>} object Plain object
|
|
269112
|
+
* @returns {ClinicalNoteObservation} ClinicalNoteObservation
|
|
269113
|
+
*/
|
|
269114
|
+
ClinicalNoteObservation.fromObject = function fromObject(object, _depth) {
|
|
269115
|
+
if (object instanceof $root.ClinicalNoteObservation)
|
|
269116
|
+
return object;
|
|
269117
|
+
if (_depth === undefined)
|
|
269118
|
+
_depth = 0;
|
|
269119
|
+
if (_depth > $util.recursionLimit)
|
|
269120
|
+
throw Error("max depth exceeded");
|
|
269121
|
+
let message = new $root.ClinicalNoteObservation();
|
|
269122
|
+
if (object.key != null)
|
|
269123
|
+
if (typeof object.key !== "string" || object.key.length)
|
|
269124
|
+
message.key = String(object.key);
|
|
269125
|
+
if (object.panelKey != null)
|
|
269126
|
+
if (typeof object.panelKey !== "string" || object.panelKey.length)
|
|
269127
|
+
message.panelKey = String(object.panelKey);
|
|
269128
|
+
if (object.category !== 0 && (typeof object.category !== "string" || $root.ClinicalNoteObservationCategory[object.category] !== 0))
|
|
269129
|
+
switch (object.category) {
|
|
269130
|
+
default:
|
|
269131
|
+
if (typeof object.category === "number") {
|
|
269132
|
+
message.category = object.category;
|
|
269133
|
+
break;
|
|
269134
|
+
}
|
|
269135
|
+
break;
|
|
269136
|
+
case "CLINICAL_NOTE_OBSERVATION_CATEGORY_UNKNOWN":
|
|
269137
|
+
case 0:
|
|
269138
|
+
message.category = 0;
|
|
269139
|
+
break;
|
|
269140
|
+
case "CLINICAL_NOTE_OBSERVATION_CATEGORY_EXAM":
|
|
269141
|
+
case 1:
|
|
269142
|
+
message.category = 1;
|
|
269143
|
+
break;
|
|
269144
|
+
case "CLINICAL_NOTE_OBSERVATION_CATEGORY_SOCIAL_HISTORY":
|
|
269145
|
+
case 2:
|
|
269146
|
+
message.category = 2;
|
|
269147
|
+
break;
|
|
269148
|
+
case "CLINICAL_NOTE_OBSERVATION_CATEGORY_THERAPY":
|
|
269149
|
+
case 3:
|
|
269150
|
+
message.category = 3;
|
|
269151
|
+
break;
|
|
269152
|
+
}
|
|
269153
|
+
if (object.code != null) {
|
|
269154
|
+
if (typeof object.code !== "object")
|
|
269155
|
+
throw TypeError(".ClinicalNoteObservation.code: object expected");
|
|
269156
|
+
message.code = $root.ClinicalNoteCodeableConcept.fromObject(object.code, _depth + 1);
|
|
269157
|
+
}
|
|
269158
|
+
if (object.valueConcept != null) {
|
|
269159
|
+
if (typeof object.valueConcept !== "object")
|
|
269160
|
+
throw TypeError(".ClinicalNoteObservation.valueConcept: object expected");
|
|
269161
|
+
message.valueConcept = $root.ClinicalNoteCodeableConcept.fromObject(object.valueConcept, _depth + 1);
|
|
269162
|
+
}
|
|
269163
|
+
if (object.valueString != null)
|
|
269164
|
+
if (typeof object.valueString !== "string" || object.valueString.length)
|
|
269165
|
+
message.valueString = String(object.valueString);
|
|
269166
|
+
if (object.valueBoolean != null)
|
|
269167
|
+
message.valueBoolean = Boolean(object.valueBoolean);
|
|
269168
|
+
if (object.note != null)
|
|
269169
|
+
if (typeof object.note !== "string" || object.note.length)
|
|
269170
|
+
message.note = String(object.note);
|
|
269171
|
+
if (object.ds4pCodes) {
|
|
269172
|
+
if (!Array.isArray(object.ds4pCodes))
|
|
269173
|
+
throw TypeError(".ClinicalNoteObservation.ds4pCodes: array expected");
|
|
269174
|
+
message.ds4pCodes = Array(object.ds4pCodes.length);
|
|
269175
|
+
for (let i = 0; i < object.ds4pCodes.length; ++i)
|
|
269176
|
+
message.ds4pCodes[i] = String(object.ds4pCodes[i]);
|
|
269177
|
+
}
|
|
269178
|
+
return message;
|
|
269179
|
+
};
|
|
269180
|
+
|
|
269181
|
+
/**
|
|
269182
|
+
* Creates a plain object from a ClinicalNoteObservation message. Also converts values to other types if specified.
|
|
269183
|
+
* @function toObject
|
|
269184
|
+
* @memberof ClinicalNoteObservation
|
|
269185
|
+
* @static
|
|
269186
|
+
* @param {ClinicalNoteObservation} message ClinicalNoteObservation
|
|
269187
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
269188
|
+
* @returns {Object.<string,*>} Plain object
|
|
269189
|
+
*/
|
|
269190
|
+
ClinicalNoteObservation.toObject = function toObject(message, options) {
|
|
269191
|
+
if (!options)
|
|
269192
|
+
options = {};
|
|
269193
|
+
let object = {};
|
|
269194
|
+
if (options.arrays || options.defaults)
|
|
269195
|
+
object.ds4pCodes = [];
|
|
269196
|
+
if (options.defaults) {
|
|
269197
|
+
object.key = "";
|
|
269198
|
+
object.panelKey = "";
|
|
269199
|
+
object.category = options.enums === String ? "CLINICAL_NOTE_OBSERVATION_CATEGORY_UNKNOWN" : 0;
|
|
269200
|
+
object.code = null;
|
|
269201
|
+
object.valueConcept = null;
|
|
269202
|
+
object.valueString = "";
|
|
269203
|
+
object.note = "";
|
|
269204
|
+
}
|
|
269205
|
+
if (message.key != null && message.hasOwnProperty("key"))
|
|
269206
|
+
object.key = message.key;
|
|
269207
|
+
if (message.panelKey != null && message.hasOwnProperty("panelKey"))
|
|
269208
|
+
object.panelKey = message.panelKey;
|
|
269209
|
+
if (message.category != null && message.hasOwnProperty("category"))
|
|
269210
|
+
object.category = options.enums === String ? $root.ClinicalNoteObservationCategory[message.category] === undefined ? message.category : $root.ClinicalNoteObservationCategory[message.category] : message.category;
|
|
269211
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
269212
|
+
object.code = $root.ClinicalNoteCodeableConcept.toObject(message.code, options);
|
|
269213
|
+
if (message.valueConcept != null && message.hasOwnProperty("valueConcept"))
|
|
269214
|
+
object.valueConcept = $root.ClinicalNoteCodeableConcept.toObject(message.valueConcept, options);
|
|
269215
|
+
if (message.valueString != null && message.hasOwnProperty("valueString"))
|
|
269216
|
+
object.valueString = message.valueString;
|
|
269217
|
+
if (message.valueBoolean != null && message.hasOwnProperty("valueBoolean")) {
|
|
269218
|
+
object.valueBoolean = message.valueBoolean;
|
|
269219
|
+
if (options.oneofs)
|
|
269220
|
+
object._valueBoolean = "valueBoolean";
|
|
269221
|
+
}
|
|
269222
|
+
if (message.note != null && message.hasOwnProperty("note"))
|
|
269223
|
+
object.note = message.note;
|
|
269224
|
+
if (message.ds4pCodes && message.ds4pCodes.length) {
|
|
269225
|
+
object.ds4pCodes = Array(message.ds4pCodes.length);
|
|
269226
|
+
for (let j = 0; j < message.ds4pCodes.length; ++j)
|
|
269227
|
+
object.ds4pCodes[j] = message.ds4pCodes[j];
|
|
269228
|
+
}
|
|
269229
|
+
return object;
|
|
269230
|
+
};
|
|
269231
|
+
|
|
269232
|
+
/**
|
|
269233
|
+
* Converts this ClinicalNoteObservation to JSON.
|
|
269234
|
+
* @function toJSON
|
|
269235
|
+
* @memberof ClinicalNoteObservation
|
|
269236
|
+
* @instance
|
|
269237
|
+
* @returns {Object.<string,*>} JSON object
|
|
269238
|
+
*/
|
|
269239
|
+
ClinicalNoteObservation.prototype.toJSON = function toJSON() {
|
|
269240
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
269241
|
+
};
|
|
269242
|
+
|
|
269243
|
+
/**
|
|
269244
|
+
* Gets the type url for ClinicalNoteObservation
|
|
269245
|
+
* @function getTypeUrl
|
|
269246
|
+
* @memberof ClinicalNoteObservation
|
|
269247
|
+
* @static
|
|
269248
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
269249
|
+
* @returns {string} The type url
|
|
269250
|
+
*/
|
|
269251
|
+
ClinicalNoteObservation.getTypeUrl = function getTypeUrl(prefix) {
|
|
269252
|
+
if (prefix === undefined)
|
|
269253
|
+
prefix = "type.googleapis.com";
|
|
269254
|
+
return prefix + "/ClinicalNoteObservation";
|
|
269255
|
+
};
|
|
269256
|
+
|
|
269257
|
+
return ClinicalNoteObservation;
|
|
269258
|
+
})();
|
|
269259
|
+
|
|
269260
|
+
export const ClinicalNoteFamilyHistory = $root.ClinicalNoteFamilyHistory = (() => {
|
|
269261
|
+
|
|
269262
|
+
/**
|
|
269263
|
+
* Properties of a ClinicalNoteFamilyHistory.
|
|
269264
|
+
* @typedef {Object} ClinicalNoteFamilyHistory.$Properties
|
|
269265
|
+
* @property {string|null} [key] ClinicalNoteFamilyHistory key
|
|
269266
|
+
* @property {ClinicalNoteCodeableConcept.$Properties|null} [relationship] ClinicalNoteFamilyHistory relationship
|
|
269267
|
+
* @property {string|null} [note] ClinicalNoteFamilyHistory note
|
|
269268
|
+
* @property {Array.<string>|null} [ds4pCodes] ClinicalNoteFamilyHistory ds4pCodes
|
|
269269
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
269270
|
+
*/
|
|
269271
|
+
|
|
269272
|
+
/**
|
|
269273
|
+
* Properties of a ClinicalNoteFamilyHistory.
|
|
269274
|
+
* @name IClinicalNoteFamilyHistory
|
|
269275
|
+
* @interface IClinicalNoteFamilyHistory
|
|
269276
|
+
* @augments ClinicalNoteFamilyHistory.$Properties
|
|
269277
|
+
* @deprecated Use ClinicalNoteFamilyHistory.$Properties instead.
|
|
269278
|
+
*/
|
|
269279
|
+
|
|
269280
|
+
/**
|
|
269281
|
+
* Shape of a ClinicalNoteFamilyHistory.
|
|
269282
|
+
* @typedef {ClinicalNoteFamilyHistory.$Properties} ClinicalNoteFamilyHistory.$Shape
|
|
269283
|
+
*/
|
|
269284
|
+
|
|
269285
|
+
/**
|
|
269286
|
+
* Constructs a new ClinicalNoteFamilyHistory.
|
|
269287
|
+
* @name ClinicalNoteFamilyHistory
|
|
269288
|
+
* @classdesc Represents a ClinicalNoteFamilyHistory.
|
|
269289
|
+
* @constructor
|
|
269290
|
+
* @param {ClinicalNoteFamilyHistory.$Properties=} [properties] Properties to set
|
|
269291
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
269292
|
+
*/
|
|
269293
|
+
function ClinicalNoteFamilyHistory(properties) {
|
|
269294
|
+
this.ds4pCodes = [];
|
|
269295
|
+
if (properties)
|
|
269296
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
269297
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
269298
|
+
this[keys[i]] = properties[keys[i]];
|
|
269299
|
+
}
|
|
269300
|
+
|
|
269301
|
+
/**
|
|
269302
|
+
* ClinicalNoteFamilyHistory key.
|
|
269303
|
+
* @member {string} key
|
|
269304
|
+
* @memberof ClinicalNoteFamilyHistory
|
|
269305
|
+
* @instance
|
|
269306
|
+
*/
|
|
269307
|
+
ClinicalNoteFamilyHistory.prototype.key = "";
|
|
269308
|
+
|
|
269309
|
+
/**
|
|
269310
|
+
* ClinicalNoteFamilyHistory relationship.
|
|
269311
|
+
* @member {ClinicalNoteCodeableConcept.$Properties|null|undefined} relationship
|
|
269312
|
+
* @memberof ClinicalNoteFamilyHistory
|
|
269313
|
+
* @instance
|
|
269314
|
+
*/
|
|
269315
|
+
ClinicalNoteFamilyHistory.prototype.relationship = null;
|
|
269316
|
+
|
|
269317
|
+
/**
|
|
269318
|
+
* ClinicalNoteFamilyHistory note.
|
|
269319
|
+
* @member {string} note
|
|
269320
|
+
* @memberof ClinicalNoteFamilyHistory
|
|
269321
|
+
* @instance
|
|
269322
|
+
*/
|
|
269323
|
+
ClinicalNoteFamilyHistory.prototype.note = "";
|
|
269324
|
+
|
|
269325
|
+
/**
|
|
269326
|
+
* ClinicalNoteFamilyHistory ds4pCodes.
|
|
269327
|
+
* @member {Array.<string>} ds4pCodes
|
|
269328
|
+
* @memberof ClinicalNoteFamilyHistory
|
|
269329
|
+
* @instance
|
|
269330
|
+
*/
|
|
269331
|
+
ClinicalNoteFamilyHistory.prototype.ds4pCodes = $util.emptyArray;
|
|
269332
|
+
|
|
269333
|
+
/**
|
|
269334
|
+
* Creates a new ClinicalNoteFamilyHistory instance using the specified properties.
|
|
269335
|
+
* @function create
|
|
269336
|
+
* @memberof ClinicalNoteFamilyHistory
|
|
269337
|
+
* @static
|
|
269338
|
+
* @param {ClinicalNoteFamilyHistory.$Properties=} [properties] Properties to set
|
|
269339
|
+
* @returns {ClinicalNoteFamilyHistory} ClinicalNoteFamilyHistory instance
|
|
269340
|
+
* @type {{
|
|
269341
|
+
* (properties: ClinicalNoteFamilyHistory.$Shape): ClinicalNoteFamilyHistory & ClinicalNoteFamilyHistory.$Shape;
|
|
269342
|
+
* (properties?: ClinicalNoteFamilyHistory.$Properties): ClinicalNoteFamilyHistory;
|
|
269343
|
+
* }}
|
|
269344
|
+
*/
|
|
269345
|
+
ClinicalNoteFamilyHistory.create = function create(properties) {
|
|
269346
|
+
return new ClinicalNoteFamilyHistory(properties);
|
|
269347
|
+
};
|
|
269348
|
+
|
|
269349
|
+
/**
|
|
269350
|
+
* Encodes the specified ClinicalNoteFamilyHistory message. Does not implicitly {@link ClinicalNoteFamilyHistory.verify|verify} messages.
|
|
269351
|
+
* @function encode
|
|
269352
|
+
* @memberof ClinicalNoteFamilyHistory
|
|
269353
|
+
* @static
|
|
269354
|
+
* @param {ClinicalNoteFamilyHistory.$Properties} message ClinicalNoteFamilyHistory message or plain object to encode
|
|
269355
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
269356
|
+
* @returns {$protobuf.Writer} Writer
|
|
269357
|
+
*/
|
|
269358
|
+
ClinicalNoteFamilyHistory.encode = function encode(message, writer) {
|
|
269359
|
+
if (!writer)
|
|
269360
|
+
writer = $Writer.create();
|
|
269361
|
+
if (message.key != null && Object.hasOwnProperty.call(message, "key"))
|
|
269362
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.key);
|
|
269363
|
+
if (message.relationship != null && Object.hasOwnProperty.call(message, "relationship"))
|
|
269364
|
+
$root.ClinicalNoteCodeableConcept.encode(message.relationship, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
269365
|
+
if (message.note != null && Object.hasOwnProperty.call(message, "note"))
|
|
269366
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.note);
|
|
269367
|
+
if (message.ds4pCodes != null && message.ds4pCodes.length)
|
|
269368
|
+
for (let i = 0; i < message.ds4pCodes.length; ++i)
|
|
269369
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.ds4pCodes[i]);
|
|
269370
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
269371
|
+
for (let i = 0; i < message.$unknowns.length; ++i)
|
|
269372
|
+
writer.raw(message.$unknowns[i]);
|
|
269373
|
+
return writer;
|
|
269374
|
+
};
|
|
269375
|
+
|
|
269376
|
+
/**
|
|
269377
|
+
* Encodes the specified ClinicalNoteFamilyHistory message, length delimited. Does not implicitly {@link ClinicalNoteFamilyHistory.verify|verify} messages.
|
|
269378
|
+
* @function encodeDelimited
|
|
269379
|
+
* @memberof ClinicalNoteFamilyHistory
|
|
269380
|
+
* @static
|
|
269381
|
+
* @param {ClinicalNoteFamilyHistory.$Properties} message ClinicalNoteFamilyHistory message or plain object to encode
|
|
269382
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
269383
|
+
* @returns {$protobuf.Writer} Writer
|
|
269384
|
+
*/
|
|
269385
|
+
ClinicalNoteFamilyHistory.encodeDelimited = function encodeDelimited(message, writer) {
|
|
269386
|
+
return this.encode(message, writer).ldelim();
|
|
269387
|
+
};
|
|
269388
|
+
|
|
269389
|
+
/**
|
|
269390
|
+
* Decodes a ClinicalNoteFamilyHistory message from the specified reader or buffer.
|
|
269391
|
+
* @function decode
|
|
269392
|
+
* @memberof ClinicalNoteFamilyHistory
|
|
269393
|
+
* @static
|
|
269394
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
269395
|
+
* @param {number} [length] Message length if known beforehand
|
|
269396
|
+
* @returns {ClinicalNoteFamilyHistory & ClinicalNoteFamilyHistory.$Shape} ClinicalNoteFamilyHistory
|
|
269397
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
269398
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
269399
|
+
*/
|
|
269400
|
+
ClinicalNoteFamilyHistory.decode = function decode(reader, length, _end, _depth, _target) {
|
|
269401
|
+
if (!(reader instanceof $Reader))
|
|
269402
|
+
reader = $Reader.create(reader);
|
|
269403
|
+
if (_depth === undefined)
|
|
269404
|
+
_depth = 0;
|
|
269405
|
+
if (_depth > $Reader.recursionLimit)
|
|
269406
|
+
throw Error("max depth exceeded");
|
|
269407
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.ClinicalNoteFamilyHistory(), value;
|
|
269408
|
+
while (reader.pos < end) {
|
|
269409
|
+
let start = reader.pos;
|
|
269410
|
+
let tag = reader.tag();
|
|
269411
|
+
if (tag === _end) {
|
|
269412
|
+
_end = undefined;
|
|
269413
|
+
break;
|
|
269414
|
+
}
|
|
269415
|
+
let wireType = tag & 7;
|
|
269416
|
+
switch (tag >>>= 3) {
|
|
269417
|
+
case 1: {
|
|
269418
|
+
if (wireType !== 2)
|
|
269419
|
+
break;
|
|
269420
|
+
if ((value = reader.string()).length)
|
|
269421
|
+
message.key = value;
|
|
269422
|
+
else
|
|
269423
|
+
delete message.key;
|
|
269424
|
+
continue;
|
|
269425
|
+
}
|
|
269426
|
+
case 2: {
|
|
269427
|
+
if (wireType !== 2)
|
|
269428
|
+
break;
|
|
269429
|
+
message.relationship = $root.ClinicalNoteCodeableConcept.decode(reader, reader.uint32(), undefined, _depth + 1, message.relationship);
|
|
269430
|
+
continue;
|
|
269431
|
+
}
|
|
269432
|
+
case 3: {
|
|
269433
|
+
if (wireType !== 2)
|
|
269434
|
+
break;
|
|
269435
|
+
if ((value = reader.string()).length)
|
|
269436
|
+
message.note = value;
|
|
269437
|
+
else
|
|
269438
|
+
delete message.note;
|
|
269439
|
+
continue;
|
|
269440
|
+
}
|
|
269441
|
+
case 4: {
|
|
269442
|
+
if (wireType !== 2)
|
|
269443
|
+
break;
|
|
269444
|
+
if (!(message.ds4pCodes && message.ds4pCodes.length))
|
|
269445
|
+
message.ds4pCodes = [];
|
|
269446
|
+
message.ds4pCodes.push(reader.string());
|
|
269447
|
+
continue;
|
|
269448
|
+
}
|
|
269449
|
+
}
|
|
269450
|
+
reader.skipType(wireType, _depth, tag);
|
|
269451
|
+
$util.makeProp(message, "$unknowns", false);
|
|
269452
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
269453
|
+
}
|
|
269454
|
+
if (_end !== undefined)
|
|
269455
|
+
throw Error("missing end group");
|
|
269456
|
+
return message;
|
|
269457
|
+
};
|
|
269458
|
+
|
|
269459
|
+
/**
|
|
269460
|
+
* Decodes a ClinicalNoteFamilyHistory message from the specified reader or buffer, length delimited.
|
|
269461
|
+
* @function decodeDelimited
|
|
269462
|
+
* @memberof ClinicalNoteFamilyHistory
|
|
269463
|
+
* @static
|
|
269464
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
269465
|
+
* @returns {ClinicalNoteFamilyHistory & ClinicalNoteFamilyHistory.$Shape} ClinicalNoteFamilyHistory
|
|
269466
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
269467
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
269468
|
+
*/
|
|
269469
|
+
ClinicalNoteFamilyHistory.decodeDelimited = function decodeDelimited(reader) {
|
|
269470
|
+
if (!(reader instanceof $Reader))
|
|
269471
|
+
reader = new $Reader(reader);
|
|
269472
|
+
return this.decode(reader, reader.uint32());
|
|
269473
|
+
};
|
|
269474
|
+
|
|
269475
|
+
/**
|
|
269476
|
+
* Verifies a ClinicalNoteFamilyHistory message.
|
|
269477
|
+
* @function verify
|
|
269478
|
+
* @memberof ClinicalNoteFamilyHistory
|
|
269479
|
+
* @static
|
|
269480
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
269481
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
269482
|
+
*/
|
|
269483
|
+
ClinicalNoteFamilyHistory.verify = function verify(message, _depth) {
|
|
269484
|
+
if (typeof message !== "object" || message === null)
|
|
269485
|
+
return "object expected";
|
|
269486
|
+
if (_depth === undefined)
|
|
269487
|
+
_depth = 0;
|
|
269488
|
+
if (_depth > $util.recursionLimit)
|
|
269489
|
+
return "max depth exceeded";
|
|
269490
|
+
if (message.key != null && message.hasOwnProperty("key"))
|
|
269491
|
+
if (!$util.isString(message.key))
|
|
269492
|
+
return "key: string expected";
|
|
269493
|
+
if (message.relationship != null && message.hasOwnProperty("relationship")) {
|
|
269494
|
+
let error = $root.ClinicalNoteCodeableConcept.verify(message.relationship, _depth + 1);
|
|
269495
|
+
if (error)
|
|
269496
|
+
return "relationship." + error;
|
|
269497
|
+
}
|
|
269498
|
+
if (message.note != null && message.hasOwnProperty("note"))
|
|
269499
|
+
if (!$util.isString(message.note))
|
|
269500
|
+
return "note: string expected";
|
|
269501
|
+
if (message.ds4pCodes != null && message.hasOwnProperty("ds4pCodes")) {
|
|
269502
|
+
if (!Array.isArray(message.ds4pCodes))
|
|
269503
|
+
return "ds4pCodes: array expected";
|
|
269504
|
+
for (let i = 0; i < message.ds4pCodes.length; ++i)
|
|
269505
|
+
if (!$util.isString(message.ds4pCodes[i]))
|
|
269506
|
+
return "ds4pCodes: string[] expected";
|
|
269507
|
+
}
|
|
269508
|
+
return null;
|
|
269509
|
+
};
|
|
269510
|
+
|
|
269511
|
+
/**
|
|
269512
|
+
* Creates a ClinicalNoteFamilyHistory message from a plain object. Also converts values to their respective internal types.
|
|
269513
|
+
* @function fromObject
|
|
269514
|
+
* @memberof ClinicalNoteFamilyHistory
|
|
269515
|
+
* @static
|
|
269516
|
+
* @param {Object.<string,*>} object Plain object
|
|
269517
|
+
* @returns {ClinicalNoteFamilyHistory} ClinicalNoteFamilyHistory
|
|
269518
|
+
*/
|
|
269519
|
+
ClinicalNoteFamilyHistory.fromObject = function fromObject(object, _depth) {
|
|
269520
|
+
if (object instanceof $root.ClinicalNoteFamilyHistory)
|
|
269521
|
+
return object;
|
|
269522
|
+
if (_depth === undefined)
|
|
269523
|
+
_depth = 0;
|
|
269524
|
+
if (_depth > $util.recursionLimit)
|
|
269525
|
+
throw Error("max depth exceeded");
|
|
269526
|
+
let message = new $root.ClinicalNoteFamilyHistory();
|
|
269527
|
+
if (object.key != null)
|
|
269528
|
+
if (typeof object.key !== "string" || object.key.length)
|
|
269529
|
+
message.key = String(object.key);
|
|
269530
|
+
if (object.relationship != null) {
|
|
269531
|
+
if (typeof object.relationship !== "object")
|
|
269532
|
+
throw TypeError(".ClinicalNoteFamilyHistory.relationship: object expected");
|
|
269533
|
+
message.relationship = $root.ClinicalNoteCodeableConcept.fromObject(object.relationship, _depth + 1);
|
|
269534
|
+
}
|
|
269535
|
+
if (object.note != null)
|
|
269536
|
+
if (typeof object.note !== "string" || object.note.length)
|
|
269537
|
+
message.note = String(object.note);
|
|
269538
|
+
if (object.ds4pCodes) {
|
|
269539
|
+
if (!Array.isArray(object.ds4pCodes))
|
|
269540
|
+
throw TypeError(".ClinicalNoteFamilyHistory.ds4pCodes: array expected");
|
|
269541
|
+
message.ds4pCodes = Array(object.ds4pCodes.length);
|
|
269542
|
+
for (let i = 0; i < object.ds4pCodes.length; ++i)
|
|
269543
|
+
message.ds4pCodes[i] = String(object.ds4pCodes[i]);
|
|
269544
|
+
}
|
|
269545
|
+
return message;
|
|
269546
|
+
};
|
|
269547
|
+
|
|
269548
|
+
/**
|
|
269549
|
+
* Creates a plain object from a ClinicalNoteFamilyHistory message. Also converts values to other types if specified.
|
|
269550
|
+
* @function toObject
|
|
269551
|
+
* @memberof ClinicalNoteFamilyHistory
|
|
269552
|
+
* @static
|
|
269553
|
+
* @param {ClinicalNoteFamilyHistory} message ClinicalNoteFamilyHistory
|
|
269554
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
269555
|
+
* @returns {Object.<string,*>} Plain object
|
|
269556
|
+
*/
|
|
269557
|
+
ClinicalNoteFamilyHistory.toObject = function toObject(message, options) {
|
|
269558
|
+
if (!options)
|
|
269559
|
+
options = {};
|
|
269560
|
+
let object = {};
|
|
269561
|
+
if (options.arrays || options.defaults)
|
|
269562
|
+
object.ds4pCodes = [];
|
|
269563
|
+
if (options.defaults) {
|
|
269564
|
+
object.key = "";
|
|
269565
|
+
object.relationship = null;
|
|
269566
|
+
object.note = "";
|
|
269567
|
+
}
|
|
269568
|
+
if (message.key != null && message.hasOwnProperty("key"))
|
|
269569
|
+
object.key = message.key;
|
|
269570
|
+
if (message.relationship != null && message.hasOwnProperty("relationship"))
|
|
269571
|
+
object.relationship = $root.ClinicalNoteCodeableConcept.toObject(message.relationship, options);
|
|
269572
|
+
if (message.note != null && message.hasOwnProperty("note"))
|
|
269573
|
+
object.note = message.note;
|
|
269574
|
+
if (message.ds4pCodes && message.ds4pCodes.length) {
|
|
269575
|
+
object.ds4pCodes = Array(message.ds4pCodes.length);
|
|
269576
|
+
for (let j = 0; j < message.ds4pCodes.length; ++j)
|
|
269577
|
+
object.ds4pCodes[j] = message.ds4pCodes[j];
|
|
269578
|
+
}
|
|
269579
|
+
return object;
|
|
269580
|
+
};
|
|
269581
|
+
|
|
269582
|
+
/**
|
|
269583
|
+
* Converts this ClinicalNoteFamilyHistory to JSON.
|
|
269584
|
+
* @function toJSON
|
|
269585
|
+
* @memberof ClinicalNoteFamilyHistory
|
|
269586
|
+
* @instance
|
|
269587
|
+
* @returns {Object.<string,*>} JSON object
|
|
269588
|
+
*/
|
|
269589
|
+
ClinicalNoteFamilyHistory.prototype.toJSON = function toJSON() {
|
|
269590
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
269591
|
+
};
|
|
269592
|
+
|
|
269593
|
+
/**
|
|
269594
|
+
* Gets the type url for ClinicalNoteFamilyHistory
|
|
269595
|
+
* @function getTypeUrl
|
|
269596
|
+
* @memberof ClinicalNoteFamilyHistory
|
|
269597
|
+
* @static
|
|
269598
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
269599
|
+
* @returns {string} The type url
|
|
269600
|
+
*/
|
|
269601
|
+
ClinicalNoteFamilyHistory.getTypeUrl = function getTypeUrl(prefix) {
|
|
269602
|
+
if (prefix === undefined)
|
|
269603
|
+
prefix = "type.googleapis.com";
|
|
269604
|
+
return prefix + "/ClinicalNoteFamilyHistory";
|
|
269605
|
+
};
|
|
269606
|
+
|
|
269607
|
+
return ClinicalNoteFamilyHistory;
|
|
269608
|
+
})();
|
|
269609
|
+
|
|
268104
269610
|
export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() => {
|
|
268105
269611
|
|
|
268106
269612
|
/**
|
|
@@ -268118,6 +269624,8 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
|
|
|
268118
269624
|
* @property {Array.<string>|null} [ds4pCodes] GingerClinicalNotePayload ds4pCodes
|
|
268119
269625
|
* @property {Array.<ClinicalNoteAllergy.$Properties>|null} [allergies] GingerClinicalNotePayload allergies
|
|
268120
269626
|
* @property {Array.<ClinicalNoteMedication.$Properties>|null} [medications] GingerClinicalNotePayload medications
|
|
269627
|
+
* @property {Array.<ClinicalNoteObservation.$Properties>|null} [observations] GingerClinicalNotePayload observations
|
|
269628
|
+
* @property {Array.<ClinicalNoteFamilyHistory.$Properties>|null} [familyHistories] GingerClinicalNotePayload familyHistories
|
|
268121
269629
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
268122
269630
|
*/
|
|
268123
269631
|
|
|
@@ -268147,6 +269655,8 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
|
|
|
268147
269655
|
this.ds4pCodes = [];
|
|
268148
269656
|
this.allergies = [];
|
|
268149
269657
|
this.medications = [];
|
|
269658
|
+
this.observations = [];
|
|
269659
|
+
this.familyHistories = [];
|
|
268150
269660
|
if (properties)
|
|
268151
269661
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
268152
269662
|
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
@@ -268249,6 +269759,22 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
|
|
|
268249
269759
|
*/
|
|
268250
269760
|
GingerClinicalNotePayload.prototype.medications = $util.emptyArray;
|
|
268251
269761
|
|
|
269762
|
+
/**
|
|
269763
|
+
* GingerClinicalNotePayload observations.
|
|
269764
|
+
* @member {Array.<ClinicalNoteObservation.$Properties>} observations
|
|
269765
|
+
* @memberof GingerClinicalNotePayload
|
|
269766
|
+
* @instance
|
|
269767
|
+
*/
|
|
269768
|
+
GingerClinicalNotePayload.prototype.observations = $util.emptyArray;
|
|
269769
|
+
|
|
269770
|
+
/**
|
|
269771
|
+
* GingerClinicalNotePayload familyHistories.
|
|
269772
|
+
* @member {Array.<ClinicalNoteFamilyHistory.$Properties>} familyHistories
|
|
269773
|
+
* @memberof GingerClinicalNotePayload
|
|
269774
|
+
* @instance
|
|
269775
|
+
*/
|
|
269776
|
+
GingerClinicalNotePayload.prototype.familyHistories = $util.emptyArray;
|
|
269777
|
+
|
|
268252
269778
|
/**
|
|
268253
269779
|
* Creates a new GingerClinicalNotePayload instance using the specified properties.
|
|
268254
269780
|
* @function create
|
|
@@ -268305,6 +269831,12 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
|
|
|
268305
269831
|
if (message.medications != null && message.medications.length)
|
|
268306
269832
|
for (let i = 0; i < message.medications.length; ++i)
|
|
268307
269833
|
$root.ClinicalNoteMedication.encode(message.medications[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
269834
|
+
if (message.observations != null && message.observations.length)
|
|
269835
|
+
for (let i = 0; i < message.observations.length; ++i)
|
|
269836
|
+
$root.ClinicalNoteObservation.encode(message.observations[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
269837
|
+
if (message.familyHistories != null && message.familyHistories.length)
|
|
269838
|
+
for (let i = 0; i < message.familyHistories.length; ++i)
|
|
269839
|
+
$root.ClinicalNoteFamilyHistory.encode(message.familyHistories[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
|
|
268308
269840
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
268309
269841
|
for (let i = 0; i < message.$unknowns.length; ++i)
|
|
268310
269842
|
writer.raw(message.$unknowns[i]);
|
|
@@ -268444,6 +269976,22 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
|
|
|
268444
269976
|
message.medications.push($root.ClinicalNoteMedication.decode(reader, reader.uint32(), undefined, _depth + 1));
|
|
268445
269977
|
continue;
|
|
268446
269978
|
}
|
|
269979
|
+
case 13: {
|
|
269980
|
+
if (wireType !== 2)
|
|
269981
|
+
break;
|
|
269982
|
+
if (!(message.observations && message.observations.length))
|
|
269983
|
+
message.observations = [];
|
|
269984
|
+
message.observations.push($root.ClinicalNoteObservation.decode(reader, reader.uint32(), undefined, _depth + 1));
|
|
269985
|
+
continue;
|
|
269986
|
+
}
|
|
269987
|
+
case 14: {
|
|
269988
|
+
if (wireType !== 2)
|
|
269989
|
+
break;
|
|
269990
|
+
if (!(message.familyHistories && message.familyHistories.length))
|
|
269991
|
+
message.familyHistories = [];
|
|
269992
|
+
message.familyHistories.push($root.ClinicalNoteFamilyHistory.decode(reader, reader.uint32(), undefined, _depth + 1));
|
|
269993
|
+
continue;
|
|
269994
|
+
}
|
|
268447
269995
|
}
|
|
268448
269996
|
reader.skipType(wireType, _depth, tag);
|
|
268449
269997
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -268557,6 +270105,24 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
|
|
|
268557
270105
|
return "medications." + error;
|
|
268558
270106
|
}
|
|
268559
270107
|
}
|
|
270108
|
+
if (message.observations != null && message.hasOwnProperty("observations")) {
|
|
270109
|
+
if (!Array.isArray(message.observations))
|
|
270110
|
+
return "observations: array expected";
|
|
270111
|
+
for (let i = 0; i < message.observations.length; ++i) {
|
|
270112
|
+
let error = $root.ClinicalNoteObservation.verify(message.observations[i], _depth + 1);
|
|
270113
|
+
if (error)
|
|
270114
|
+
return "observations." + error;
|
|
270115
|
+
}
|
|
270116
|
+
}
|
|
270117
|
+
if (message.familyHistories != null && message.hasOwnProperty("familyHistories")) {
|
|
270118
|
+
if (!Array.isArray(message.familyHistories))
|
|
270119
|
+
return "familyHistories: array expected";
|
|
270120
|
+
for (let i = 0; i < message.familyHistories.length; ++i) {
|
|
270121
|
+
let error = $root.ClinicalNoteFamilyHistory.verify(message.familyHistories[i], _depth + 1);
|
|
270122
|
+
if (error)
|
|
270123
|
+
return "familyHistories." + error;
|
|
270124
|
+
}
|
|
270125
|
+
}
|
|
268560
270126
|
return null;
|
|
268561
270127
|
};
|
|
268562
270128
|
|
|
@@ -268668,6 +270234,26 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
|
|
|
268668
270234
|
message.medications[i] = $root.ClinicalNoteMedication.fromObject(object.medications[i], _depth + 1);
|
|
268669
270235
|
}
|
|
268670
270236
|
}
|
|
270237
|
+
if (object.observations) {
|
|
270238
|
+
if (!Array.isArray(object.observations))
|
|
270239
|
+
throw TypeError(".GingerClinicalNotePayload.observations: array expected");
|
|
270240
|
+
message.observations = Array(object.observations.length);
|
|
270241
|
+
for (let i = 0; i < object.observations.length; ++i) {
|
|
270242
|
+
if (typeof object.observations[i] !== "object")
|
|
270243
|
+
throw TypeError(".GingerClinicalNotePayload.observations: object expected");
|
|
270244
|
+
message.observations[i] = $root.ClinicalNoteObservation.fromObject(object.observations[i], _depth + 1);
|
|
270245
|
+
}
|
|
270246
|
+
}
|
|
270247
|
+
if (object.familyHistories) {
|
|
270248
|
+
if (!Array.isArray(object.familyHistories))
|
|
270249
|
+
throw TypeError(".GingerClinicalNotePayload.familyHistories: array expected");
|
|
270250
|
+
message.familyHistories = Array(object.familyHistories.length);
|
|
270251
|
+
for (let i = 0; i < object.familyHistories.length; ++i) {
|
|
270252
|
+
if (typeof object.familyHistories[i] !== "object")
|
|
270253
|
+
throw TypeError(".GingerClinicalNotePayload.familyHistories: object expected");
|
|
270254
|
+
message.familyHistories[i] = $root.ClinicalNoteFamilyHistory.fromObject(object.familyHistories[i], _depth + 1);
|
|
270255
|
+
}
|
|
270256
|
+
}
|
|
268671
270257
|
return message;
|
|
268672
270258
|
};
|
|
268673
270259
|
|
|
@@ -268689,6 +270275,8 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
|
|
|
268689
270275
|
object.ds4pCodes = [];
|
|
268690
270276
|
object.allergies = [];
|
|
268691
270277
|
object.medications = [];
|
|
270278
|
+
object.observations = [];
|
|
270279
|
+
object.familyHistories = [];
|
|
268692
270280
|
}
|
|
268693
270281
|
if (options.defaults) {
|
|
268694
270282
|
object.noteId = "";
|
|
@@ -268736,6 +270324,16 @@ export const GingerClinicalNotePayload = $root.GingerClinicalNotePayload = (() =
|
|
|
268736
270324
|
for (let j = 0; j < message.medications.length; ++j)
|
|
268737
270325
|
object.medications[j] = $root.ClinicalNoteMedication.toObject(message.medications[j], options);
|
|
268738
270326
|
}
|
|
270327
|
+
if (message.observations && message.observations.length) {
|
|
270328
|
+
object.observations = Array(message.observations.length);
|
|
270329
|
+
for (let j = 0; j < message.observations.length; ++j)
|
|
270330
|
+
object.observations[j] = $root.ClinicalNoteObservation.toObject(message.observations[j], options);
|
|
270331
|
+
}
|
|
270332
|
+
if (message.familyHistories && message.familyHistories.length) {
|
|
270333
|
+
object.familyHistories = Array(message.familyHistories.length);
|
|
270334
|
+
for (let j = 0; j < message.familyHistories.length; ++j)
|
|
270335
|
+
object.familyHistories[j] = $root.ClinicalNoteFamilyHistory.toObject(message.familyHistories[j], options);
|
|
270336
|
+
}
|
|
268739
270337
|
return object;
|
|
268740
270338
|
};
|
|
268741
270339
|
|