@headspace/protos-events 1.858.0 → 1.859.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 +6 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +48 -1
- package/lib/index.mjs +48 -1
- package/package.json +1 -1
package/lib/index.d.mts
CHANGED
|
@@ -90321,6 +90321,9 @@ export class ClinicalNoteEncounter {
|
|
|
90321
90321
|
/** ClinicalNoteEncounter appointmentId. */
|
|
90322
90322
|
appointmentId: string;
|
|
90323
90323
|
|
|
90324
|
+
/** ClinicalNoteEncounter reasons. */
|
|
90325
|
+
reasons: ClinicalNoteCodeableConcept.$Properties[];
|
|
90326
|
+
|
|
90324
90327
|
/**
|
|
90325
90328
|
* Creates a new ClinicalNoteEncounter instance using the specified properties.
|
|
90326
90329
|
* @param [properties] Properties to set
|
|
@@ -90420,6 +90423,9 @@ export namespace ClinicalNoteEncounter {
|
|
|
90420
90423
|
/** ClinicalNoteEncounter appointmentId */
|
|
90421
90424
|
appointmentId?: (string|null);
|
|
90422
90425
|
|
|
90426
|
+
/** ClinicalNoteEncounter reasons */
|
|
90427
|
+
reasons?: (ClinicalNoteCodeableConcept.$Properties[]|null);
|
|
90428
|
+
|
|
90423
90429
|
/** Unknown fields preserved while decoding */
|
|
90424
90430
|
$unknowns?: Uint8Array[];
|
|
90425
90431
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -90321,6 +90321,9 @@ export class ClinicalNoteEncounter {
|
|
|
90321
90321
|
/** ClinicalNoteEncounter appointmentId. */
|
|
90322
90322
|
appointmentId: string;
|
|
90323
90323
|
|
|
90324
|
+
/** ClinicalNoteEncounter reasons. */
|
|
90325
|
+
reasons: ClinicalNoteCodeableConcept.$Properties[];
|
|
90326
|
+
|
|
90324
90327
|
/**
|
|
90325
90328
|
* Creates a new ClinicalNoteEncounter instance using the specified properties.
|
|
90326
90329
|
* @param [properties] Properties to set
|
|
@@ -90420,6 +90423,9 @@ export namespace ClinicalNoteEncounter {
|
|
|
90420
90423
|
/** ClinicalNoteEncounter appointmentId */
|
|
90421
90424
|
appointmentId?: (string|null);
|
|
90422
90425
|
|
|
90426
|
+
/** ClinicalNoteEncounter reasons */
|
|
90427
|
+
reasons?: (ClinicalNoteCodeableConcept.$Properties[]|null);
|
|
90428
|
+
|
|
90423
90429
|
/** Unknown fields preserved while decoding */
|
|
90424
90430
|
$unknowns?: Uint8Array[];
|
|
90425
90431
|
}
|
package/lib/index.js
CHANGED
|
@@ -266577,6 +266577,7 @@ $root.ClinicalNoteEncounter = (function() {
|
|
|
266577
266577
|
* @property {number|Long|null} [encounterStart] ClinicalNoteEncounter encounterStart
|
|
266578
266578
|
* @property {number|Long|null} [encounterEnd] ClinicalNoteEncounter encounterEnd
|
|
266579
266579
|
* @property {string|null} [appointmentId] ClinicalNoteEncounter appointmentId
|
|
266580
|
+
* @property {Array.<ClinicalNoteCodeableConcept.$Properties>|null} [reasons] ClinicalNoteEncounter reasons
|
|
266580
266581
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
266581
266582
|
*/
|
|
266582
266583
|
|
|
@@ -266603,6 +266604,7 @@ $root.ClinicalNoteEncounter = (function() {
|
|
|
266603
266604
|
*/
|
|
266604
266605
|
function ClinicalNoteEncounter(properties) {
|
|
266605
266606
|
this.cptCodes = [];
|
|
266607
|
+
this.reasons = [];
|
|
266606
266608
|
if (properties)
|
|
266607
266609
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
266608
266610
|
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
@@ -266649,6 +266651,14 @@ $root.ClinicalNoteEncounter = (function() {
|
|
|
266649
266651
|
*/
|
|
266650
266652
|
ClinicalNoteEncounter.prototype.appointmentId = "";
|
|
266651
266653
|
|
|
266654
|
+
/**
|
|
266655
|
+
* ClinicalNoteEncounter reasons.
|
|
266656
|
+
* @member {Array.<ClinicalNoteCodeableConcept.$Properties>} reasons
|
|
266657
|
+
* @memberof ClinicalNoteEncounter
|
|
266658
|
+
* @instance
|
|
266659
|
+
*/
|
|
266660
|
+
ClinicalNoteEncounter.prototype.reasons = $util.emptyArray;
|
|
266661
|
+
|
|
266652
266662
|
/**
|
|
266653
266663
|
* Creates a new ClinicalNoteEncounter instance using the specified properties.
|
|
266654
266664
|
* @function create
|
|
@@ -266688,6 +266698,9 @@ $root.ClinicalNoteEncounter = (function() {
|
|
|
266688
266698
|
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.encounterEnd);
|
|
266689
266699
|
if (message.appointmentId != null && Object.hasOwnProperty.call(message, "appointmentId"))
|
|
266690
266700
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.appointmentId);
|
|
266701
|
+
if (message.reasons != null && message.reasons.length)
|
|
266702
|
+
for (var i = 0; i < message.reasons.length; ++i)
|
|
266703
|
+
$root.ClinicalNoteCodeableConcept.encode(message.reasons[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
266691
266704
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
266692
266705
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
266693
266706
|
writer.raw(message.$unknowns[i]);
|
|
@@ -266779,6 +266792,14 @@ $root.ClinicalNoteEncounter = (function() {
|
|
|
266779
266792
|
delete message.appointmentId;
|
|
266780
266793
|
continue;
|
|
266781
266794
|
}
|
|
266795
|
+
case 6: {
|
|
266796
|
+
if (wireType !== 2)
|
|
266797
|
+
break;
|
|
266798
|
+
if (!(message.reasons && message.reasons.length))
|
|
266799
|
+
message.reasons = [];
|
|
266800
|
+
message.reasons.push($root.ClinicalNoteCodeableConcept.decode(reader, reader.uint32(), undefined, _depth + 1));
|
|
266801
|
+
continue;
|
|
266802
|
+
}
|
|
266782
266803
|
}
|
|
266783
266804
|
reader.skipType(wireType, _depth, tag);
|
|
266784
266805
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -266839,6 +266860,15 @@ $root.ClinicalNoteEncounter = (function() {
|
|
|
266839
266860
|
if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
|
|
266840
266861
|
if (!$util.isString(message.appointmentId))
|
|
266841
266862
|
return "appointmentId: string expected";
|
|
266863
|
+
if (message.reasons != null && message.hasOwnProperty("reasons")) {
|
|
266864
|
+
if (!Array.isArray(message.reasons))
|
|
266865
|
+
return "reasons: array expected";
|
|
266866
|
+
for (var i = 0; i < message.reasons.length; ++i) {
|
|
266867
|
+
var error = $root.ClinicalNoteCodeableConcept.verify(message.reasons[i], _depth + 1);
|
|
266868
|
+
if (error)
|
|
266869
|
+
return "reasons." + error;
|
|
266870
|
+
}
|
|
266871
|
+
}
|
|
266842
266872
|
return null;
|
|
266843
266873
|
};
|
|
266844
266874
|
|
|
@@ -266891,6 +266921,16 @@ $root.ClinicalNoteEncounter = (function() {
|
|
|
266891
266921
|
if (object.appointmentId != null)
|
|
266892
266922
|
if (typeof object.appointmentId !== "string" || object.appointmentId.length)
|
|
266893
266923
|
message.appointmentId = String(object.appointmentId);
|
|
266924
|
+
if (object.reasons) {
|
|
266925
|
+
if (!Array.isArray(object.reasons))
|
|
266926
|
+
throw TypeError(".ClinicalNoteEncounter.reasons: array expected");
|
|
266927
|
+
message.reasons = Array(object.reasons.length);
|
|
266928
|
+
for (var i = 0; i < object.reasons.length; ++i) {
|
|
266929
|
+
if (typeof object.reasons[i] !== "object")
|
|
266930
|
+
throw TypeError(".ClinicalNoteEncounter.reasons: object expected");
|
|
266931
|
+
message.reasons[i] = $root.ClinicalNoteCodeableConcept.fromObject(object.reasons[i], _depth + 1);
|
|
266932
|
+
}
|
|
266933
|
+
}
|
|
266894
266934
|
return message;
|
|
266895
266935
|
};
|
|
266896
266936
|
|
|
@@ -266907,8 +266947,10 @@ $root.ClinicalNoteEncounter = (function() {
|
|
|
266907
266947
|
if (!options)
|
|
266908
266948
|
options = {};
|
|
266909
266949
|
var object = {};
|
|
266910
|
-
if (options.arrays || options.defaults)
|
|
266950
|
+
if (options.arrays || options.defaults) {
|
|
266911
266951
|
object.cptCodes = [];
|
|
266952
|
+
object.reasons = [];
|
|
266953
|
+
}
|
|
266912
266954
|
if (options.defaults) {
|
|
266913
266955
|
object.encounterStatus = "";
|
|
266914
266956
|
if ($util.Long) {
|
|
@@ -266946,6 +266988,11 @@ $root.ClinicalNoteEncounter = (function() {
|
|
|
266946
266988
|
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;
|
|
266947
266989
|
if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
|
|
266948
266990
|
object.appointmentId = message.appointmentId;
|
|
266991
|
+
if (message.reasons && message.reasons.length) {
|
|
266992
|
+
object.reasons = Array(message.reasons.length);
|
|
266993
|
+
for (var j = 0; j < message.reasons.length; ++j)
|
|
266994
|
+
object.reasons[j] = $root.ClinicalNoteCodeableConcept.toObject(message.reasons[j], options);
|
|
266995
|
+
}
|
|
266949
266996
|
return object;
|
|
266950
266997
|
};
|
|
266951
266998
|
|
package/lib/index.mjs
CHANGED
|
@@ -266575,6 +266575,7 @@ export const ClinicalNoteEncounter = $root.ClinicalNoteEncounter = (() => {
|
|
|
266575
266575
|
* @property {number|Long|null} [encounterStart] ClinicalNoteEncounter encounterStart
|
|
266576
266576
|
* @property {number|Long|null} [encounterEnd] ClinicalNoteEncounter encounterEnd
|
|
266577
266577
|
* @property {string|null} [appointmentId] ClinicalNoteEncounter appointmentId
|
|
266578
|
+
* @property {Array.<ClinicalNoteCodeableConcept.$Properties>|null} [reasons] ClinicalNoteEncounter reasons
|
|
266578
266579
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
266579
266580
|
*/
|
|
266580
266581
|
|
|
@@ -266601,6 +266602,7 @@ export const ClinicalNoteEncounter = $root.ClinicalNoteEncounter = (() => {
|
|
|
266601
266602
|
*/
|
|
266602
266603
|
function ClinicalNoteEncounter(properties) {
|
|
266603
266604
|
this.cptCodes = [];
|
|
266605
|
+
this.reasons = [];
|
|
266604
266606
|
if (properties)
|
|
266605
266607
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
266606
266608
|
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
@@ -266647,6 +266649,14 @@ export const ClinicalNoteEncounter = $root.ClinicalNoteEncounter = (() => {
|
|
|
266647
266649
|
*/
|
|
266648
266650
|
ClinicalNoteEncounter.prototype.appointmentId = "";
|
|
266649
266651
|
|
|
266652
|
+
/**
|
|
266653
|
+
* ClinicalNoteEncounter reasons.
|
|
266654
|
+
* @member {Array.<ClinicalNoteCodeableConcept.$Properties>} reasons
|
|
266655
|
+
* @memberof ClinicalNoteEncounter
|
|
266656
|
+
* @instance
|
|
266657
|
+
*/
|
|
266658
|
+
ClinicalNoteEncounter.prototype.reasons = $util.emptyArray;
|
|
266659
|
+
|
|
266650
266660
|
/**
|
|
266651
266661
|
* Creates a new ClinicalNoteEncounter instance using the specified properties.
|
|
266652
266662
|
* @function create
|
|
@@ -266686,6 +266696,9 @@ export const ClinicalNoteEncounter = $root.ClinicalNoteEncounter = (() => {
|
|
|
266686
266696
|
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.encounterEnd);
|
|
266687
266697
|
if (message.appointmentId != null && Object.hasOwnProperty.call(message, "appointmentId"))
|
|
266688
266698
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.appointmentId);
|
|
266699
|
+
if (message.reasons != null && message.reasons.length)
|
|
266700
|
+
for (let i = 0; i < message.reasons.length; ++i)
|
|
266701
|
+
$root.ClinicalNoteCodeableConcept.encode(message.reasons[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
266689
266702
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
266690
266703
|
for (let i = 0; i < message.$unknowns.length; ++i)
|
|
266691
266704
|
writer.raw(message.$unknowns[i]);
|
|
@@ -266777,6 +266790,14 @@ export const ClinicalNoteEncounter = $root.ClinicalNoteEncounter = (() => {
|
|
|
266777
266790
|
delete message.appointmentId;
|
|
266778
266791
|
continue;
|
|
266779
266792
|
}
|
|
266793
|
+
case 6: {
|
|
266794
|
+
if (wireType !== 2)
|
|
266795
|
+
break;
|
|
266796
|
+
if (!(message.reasons && message.reasons.length))
|
|
266797
|
+
message.reasons = [];
|
|
266798
|
+
message.reasons.push($root.ClinicalNoteCodeableConcept.decode(reader, reader.uint32(), undefined, _depth + 1));
|
|
266799
|
+
continue;
|
|
266800
|
+
}
|
|
266780
266801
|
}
|
|
266781
266802
|
reader.skipType(wireType, _depth, tag);
|
|
266782
266803
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -266837,6 +266858,15 @@ export const ClinicalNoteEncounter = $root.ClinicalNoteEncounter = (() => {
|
|
|
266837
266858
|
if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
|
|
266838
266859
|
if (!$util.isString(message.appointmentId))
|
|
266839
266860
|
return "appointmentId: string expected";
|
|
266861
|
+
if (message.reasons != null && message.hasOwnProperty("reasons")) {
|
|
266862
|
+
if (!Array.isArray(message.reasons))
|
|
266863
|
+
return "reasons: array expected";
|
|
266864
|
+
for (let i = 0; i < message.reasons.length; ++i) {
|
|
266865
|
+
let error = $root.ClinicalNoteCodeableConcept.verify(message.reasons[i], _depth + 1);
|
|
266866
|
+
if (error)
|
|
266867
|
+
return "reasons." + error;
|
|
266868
|
+
}
|
|
266869
|
+
}
|
|
266840
266870
|
return null;
|
|
266841
266871
|
};
|
|
266842
266872
|
|
|
@@ -266889,6 +266919,16 @@ export const ClinicalNoteEncounter = $root.ClinicalNoteEncounter = (() => {
|
|
|
266889
266919
|
if (object.appointmentId != null)
|
|
266890
266920
|
if (typeof object.appointmentId !== "string" || object.appointmentId.length)
|
|
266891
266921
|
message.appointmentId = String(object.appointmentId);
|
|
266922
|
+
if (object.reasons) {
|
|
266923
|
+
if (!Array.isArray(object.reasons))
|
|
266924
|
+
throw TypeError(".ClinicalNoteEncounter.reasons: array expected");
|
|
266925
|
+
message.reasons = Array(object.reasons.length);
|
|
266926
|
+
for (let i = 0; i < object.reasons.length; ++i) {
|
|
266927
|
+
if (typeof object.reasons[i] !== "object")
|
|
266928
|
+
throw TypeError(".ClinicalNoteEncounter.reasons: object expected");
|
|
266929
|
+
message.reasons[i] = $root.ClinicalNoteCodeableConcept.fromObject(object.reasons[i], _depth + 1);
|
|
266930
|
+
}
|
|
266931
|
+
}
|
|
266892
266932
|
return message;
|
|
266893
266933
|
};
|
|
266894
266934
|
|
|
@@ -266905,8 +266945,10 @@ export const ClinicalNoteEncounter = $root.ClinicalNoteEncounter = (() => {
|
|
|
266905
266945
|
if (!options)
|
|
266906
266946
|
options = {};
|
|
266907
266947
|
let object = {};
|
|
266908
|
-
if (options.arrays || options.defaults)
|
|
266948
|
+
if (options.arrays || options.defaults) {
|
|
266909
266949
|
object.cptCodes = [];
|
|
266950
|
+
object.reasons = [];
|
|
266951
|
+
}
|
|
266910
266952
|
if (options.defaults) {
|
|
266911
266953
|
object.encounterStatus = "";
|
|
266912
266954
|
if ($util.Long) {
|
|
@@ -266944,6 +266986,11 @@ export const ClinicalNoteEncounter = $root.ClinicalNoteEncounter = (() => {
|
|
|
266944
266986
|
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;
|
|
266945
266987
|
if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
|
|
266946
266988
|
object.appointmentId = message.appointmentId;
|
|
266989
|
+
if (message.reasons && message.reasons.length) {
|
|
266990
|
+
object.reasons = Array(message.reasons.length);
|
|
266991
|
+
for (let j = 0; j < message.reasons.length; ++j)
|
|
266992
|
+
object.reasons[j] = $root.ClinicalNoteCodeableConcept.toObject(message.reasons[j], options);
|
|
266993
|
+
}
|
|
266947
266994
|
return object;
|
|
266948
266995
|
};
|
|
266949
266996
|
|