@headspace/protos-events 1.829.0 → 1.830.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +396 -0
- package/lib/index.js +1209 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -260679,6 +260679,1215 @@ $root.HealthRecordAiNoteFeedbackSubmitted = (function() {
|
|
|
260679
260679
|
return HealthRecordAiNoteFeedbackSubmitted;
|
|
260680
260680
|
})();
|
|
260681
260681
|
|
|
260682
|
+
/**
|
|
260683
|
+
* HieDeliveryResourceType enum.
|
|
260684
|
+
* @name HieDeliveryResourceType
|
|
260685
|
+
* @enum {number}
|
|
260686
|
+
* @property {number} HIE_DELIVERY_RESOURCE_TYPE_UNKNOWN=0 HIE_DELIVERY_RESOURCE_TYPE_UNKNOWN value
|
|
260687
|
+
* @property {number} HIE_DELIVERY_RESOURCE_TYPE_OBSERVATION=1 HIE_DELIVERY_RESOURCE_TYPE_OBSERVATION value
|
|
260688
|
+
* @property {number} HIE_DELIVERY_RESOURCE_TYPE_CLINICAL_NOTE_BUNDLE=2 HIE_DELIVERY_RESOURCE_TYPE_CLINICAL_NOTE_BUNDLE value
|
|
260689
|
+
* @property {number} HIE_DELIVERY_RESOURCE_TYPE_ENCOUNTER=3 HIE_DELIVERY_RESOURCE_TYPE_ENCOUNTER value
|
|
260690
|
+
*/
|
|
260691
|
+
$root.HieDeliveryResourceType = (function() {
|
|
260692
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
260693
|
+
values[valuesById[0] = "HIE_DELIVERY_RESOURCE_TYPE_UNKNOWN"] = 0;
|
|
260694
|
+
values[valuesById[1] = "HIE_DELIVERY_RESOURCE_TYPE_OBSERVATION"] = 1;
|
|
260695
|
+
values[valuesById[2] = "HIE_DELIVERY_RESOURCE_TYPE_CLINICAL_NOTE_BUNDLE"] = 2;
|
|
260696
|
+
values[valuesById[3] = "HIE_DELIVERY_RESOURCE_TYPE_ENCOUNTER"] = 3;
|
|
260697
|
+
return values;
|
|
260698
|
+
})();
|
|
260699
|
+
|
|
260700
|
+
/**
|
|
260701
|
+
* HieDeliverySourceEvent enum.
|
|
260702
|
+
* @name HieDeliverySourceEvent
|
|
260703
|
+
* @enum {number}
|
|
260704
|
+
* @property {number} HIE_DELIVERY_SOURCE_EVENT_UNKNOWN=0 HIE_DELIVERY_SOURCE_EVENT_UNKNOWN value
|
|
260705
|
+
* @property {number} HIE_DELIVERY_SOURCE_EVENT_GINGER_CLINICAL_NOTE_EXPORTED=1 HIE_DELIVERY_SOURCE_EVENT_GINGER_CLINICAL_NOTE_EXPORTED value
|
|
260706
|
+
* @property {number} HIE_DELIVERY_SOURCE_EVENT_PHQ_ASSESSMENT_SCORED_COMPLETED=2 HIE_DELIVERY_SOURCE_EVENT_PHQ_ASSESSMENT_SCORED_COMPLETED value
|
|
260707
|
+
* @property {number} HIE_DELIVERY_SOURCE_EVENT_COACHING_ENCOUNTER_EXPORTED=3 HIE_DELIVERY_SOURCE_EVENT_COACHING_ENCOUNTER_EXPORTED value
|
|
260708
|
+
*/
|
|
260709
|
+
$root.HieDeliverySourceEvent = (function() {
|
|
260710
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
260711
|
+
values[valuesById[0] = "HIE_DELIVERY_SOURCE_EVENT_UNKNOWN"] = 0;
|
|
260712
|
+
values[valuesById[1] = "HIE_DELIVERY_SOURCE_EVENT_GINGER_CLINICAL_NOTE_EXPORTED"] = 1;
|
|
260713
|
+
values[valuesById[2] = "HIE_DELIVERY_SOURCE_EVENT_PHQ_ASSESSMENT_SCORED_COMPLETED"] = 2;
|
|
260714
|
+
values[valuesById[3] = "HIE_DELIVERY_SOURCE_EVENT_COACHING_ENCOUNTER_EXPORTED"] = 3;
|
|
260715
|
+
return values;
|
|
260716
|
+
})();
|
|
260717
|
+
|
|
260718
|
+
/**
|
|
260719
|
+
* HieDeliveryFailureReason enum.
|
|
260720
|
+
* @name HieDeliveryFailureReason
|
|
260721
|
+
* @enum {number}
|
|
260722
|
+
* @property {number} HIE_DELIVERY_FAILURE_REASON_UNKNOWN=0 HIE_DELIVERY_FAILURE_REASON_UNKNOWN value
|
|
260723
|
+
* @property {number} HIE_DELIVERY_FAILURE_REASON_BROKER_4XX=1 HIE_DELIVERY_FAILURE_REASON_BROKER_4XX value
|
|
260724
|
+
* @property {number} HIE_DELIVERY_FAILURE_REASON_BROKER_5XX=2 HIE_DELIVERY_FAILURE_REASON_BROKER_5XX value
|
|
260725
|
+
* @property {number} HIE_DELIVERY_FAILURE_REASON_CONSENT_INACTIVE=3 HIE_DELIVERY_FAILURE_REASON_CONSENT_INACTIVE value
|
|
260726
|
+
* @property {number} HIE_DELIVERY_FAILURE_REASON_PATIENT_NOT_REGISTERED=4 HIE_DELIVERY_FAILURE_REASON_PATIENT_NOT_REGISTERED value
|
|
260727
|
+
* @property {number} HIE_DELIVERY_FAILURE_REASON_S3_READ_FAILED=5 HIE_DELIVERY_FAILURE_REASON_S3_READ_FAILED value
|
|
260728
|
+
* @property {number} HIE_DELIVERY_FAILURE_REASON_BUNDLE_VALIDATION_FAILED=6 HIE_DELIVERY_FAILURE_REASON_BUNDLE_VALIDATION_FAILED value
|
|
260729
|
+
* @property {number} HIE_DELIVERY_FAILURE_REASON_RETRY_EXHAUSTED=7 HIE_DELIVERY_FAILURE_REASON_RETRY_EXHAUSTED value
|
|
260730
|
+
*/
|
|
260731
|
+
$root.HieDeliveryFailureReason = (function() {
|
|
260732
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
260733
|
+
values[valuesById[0] = "HIE_DELIVERY_FAILURE_REASON_UNKNOWN"] = 0;
|
|
260734
|
+
values[valuesById[1] = "HIE_DELIVERY_FAILURE_REASON_BROKER_4XX"] = 1;
|
|
260735
|
+
values[valuesById[2] = "HIE_DELIVERY_FAILURE_REASON_BROKER_5XX"] = 2;
|
|
260736
|
+
values[valuesById[3] = "HIE_DELIVERY_FAILURE_REASON_CONSENT_INACTIVE"] = 3;
|
|
260737
|
+
values[valuesById[4] = "HIE_DELIVERY_FAILURE_REASON_PATIENT_NOT_REGISTERED"] = 4;
|
|
260738
|
+
values[valuesById[5] = "HIE_DELIVERY_FAILURE_REASON_S3_READ_FAILED"] = 5;
|
|
260739
|
+
values[valuesById[6] = "HIE_DELIVERY_FAILURE_REASON_BUNDLE_VALIDATION_FAILED"] = 6;
|
|
260740
|
+
values[valuesById[7] = "HIE_DELIVERY_FAILURE_REASON_RETRY_EXHAUSTED"] = 7;
|
|
260741
|
+
return values;
|
|
260742
|
+
})();
|
|
260743
|
+
|
|
260744
|
+
$root.HieDeliverySucceeded = (function() {
|
|
260745
|
+
|
|
260746
|
+
/**
|
|
260747
|
+
* Properties of a HieDeliverySucceeded.
|
|
260748
|
+
* @typedef {Object} HieDeliverySucceeded.$Properties
|
|
260749
|
+
* @property {number|Long|null} [timestamp] HieDeliverySucceeded timestamp
|
|
260750
|
+
* @property {string|null} [hsUserId] HieDeliverySucceeded hsUserId
|
|
260751
|
+
* @property {HieDeliveryResourceType|null} [resourceType] HieDeliverySucceeded resourceType
|
|
260752
|
+
* @property {HieDeliverySourceEvent|null} [sourceEvent] HieDeliverySucceeded sourceEvent
|
|
260753
|
+
* @property {string|null} [sourceEventId] HieDeliverySucceeded sourceEventId
|
|
260754
|
+
* @property {string|null} [externalDeliveryId] HieDeliverySucceeded externalDeliveryId
|
|
260755
|
+
* @property {number|Long|null} [deliveredAt] HieDeliverySucceeded deliveredAt
|
|
260756
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
260757
|
+
*/
|
|
260758
|
+
|
|
260759
|
+
/**
|
|
260760
|
+
* Properties of a HieDeliverySucceeded.
|
|
260761
|
+
* @name IHieDeliverySucceeded
|
|
260762
|
+
* @interface IHieDeliverySucceeded
|
|
260763
|
+
* @augments HieDeliverySucceeded.$Properties
|
|
260764
|
+
* @deprecated Use HieDeliverySucceeded.$Properties instead.
|
|
260765
|
+
*/
|
|
260766
|
+
|
|
260767
|
+
/**
|
|
260768
|
+
* Shape of a HieDeliverySucceeded.
|
|
260769
|
+
* @typedef {HieDeliverySucceeded.$Properties} HieDeliverySucceeded.$Shape
|
|
260770
|
+
*/
|
|
260771
|
+
|
|
260772
|
+
/**
|
|
260773
|
+
* Constructs a new HieDeliverySucceeded.
|
|
260774
|
+
* @name HieDeliverySucceeded
|
|
260775
|
+
* @classdesc Published when hs-hie-service successfully submits a FHIR Bundle to the HIE
|
|
260776
|
+
* connectivity broker. One event is emitted for each upstream source delivery.
|
|
260777
|
+
* Contains no clinical content or PHI beyond opaque identifiers.
|
|
260778
|
+
* Used by hs-cms-access-service for delivery audit of Observation outcomes
|
|
260779
|
+
* (and later Observation-to-Goal ordering when CMS ACCESS Goal/CarePlan
|
|
260780
|
+
* pipelines are registered); other services may subscribe for delivery
|
|
260781
|
+
* confirmation without coupling to a broker.
|
|
260782
|
+
* Fired by: hs-hie-service
|
|
260783
|
+
* Responsible team: Commercial Platform
|
|
260784
|
+
* @constructor
|
|
260785
|
+
* @param {HieDeliverySucceeded.$Properties=} [properties] Properties to set
|
|
260786
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
260787
|
+
*/
|
|
260788
|
+
function HieDeliverySucceeded(properties) {
|
|
260789
|
+
if (properties)
|
|
260790
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
260791
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
260792
|
+
this[keys[i]] = properties[keys[i]];
|
|
260793
|
+
}
|
|
260794
|
+
|
|
260795
|
+
/**
|
|
260796
|
+
* HieDeliverySucceeded timestamp.
|
|
260797
|
+
* @member {number|Long} timestamp
|
|
260798
|
+
* @memberof HieDeliverySucceeded
|
|
260799
|
+
* @instance
|
|
260800
|
+
*/
|
|
260801
|
+
HieDeliverySucceeded.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
260802
|
+
|
|
260803
|
+
/**
|
|
260804
|
+
* HieDeliverySucceeded hsUserId.
|
|
260805
|
+
* @member {string} hsUserId
|
|
260806
|
+
* @memberof HieDeliverySucceeded
|
|
260807
|
+
* @instance
|
|
260808
|
+
*/
|
|
260809
|
+
HieDeliverySucceeded.prototype.hsUserId = "";
|
|
260810
|
+
|
|
260811
|
+
/**
|
|
260812
|
+
* HieDeliverySucceeded resourceType.
|
|
260813
|
+
* @member {HieDeliveryResourceType} resourceType
|
|
260814
|
+
* @memberof HieDeliverySucceeded
|
|
260815
|
+
* @instance
|
|
260816
|
+
*/
|
|
260817
|
+
HieDeliverySucceeded.prototype.resourceType = 0;
|
|
260818
|
+
|
|
260819
|
+
/**
|
|
260820
|
+
* HieDeliverySucceeded sourceEvent.
|
|
260821
|
+
* @member {HieDeliverySourceEvent} sourceEvent
|
|
260822
|
+
* @memberof HieDeliverySucceeded
|
|
260823
|
+
* @instance
|
|
260824
|
+
*/
|
|
260825
|
+
HieDeliverySucceeded.prototype.sourceEvent = 0;
|
|
260826
|
+
|
|
260827
|
+
/**
|
|
260828
|
+
* HieDeliverySucceeded sourceEventId.
|
|
260829
|
+
* @member {string} sourceEventId
|
|
260830
|
+
* @memberof HieDeliverySucceeded
|
|
260831
|
+
* @instance
|
|
260832
|
+
*/
|
|
260833
|
+
HieDeliverySucceeded.prototype.sourceEventId = "";
|
|
260834
|
+
|
|
260835
|
+
/**
|
|
260836
|
+
* HieDeliverySucceeded externalDeliveryId.
|
|
260837
|
+
* @member {string} externalDeliveryId
|
|
260838
|
+
* @memberof HieDeliverySucceeded
|
|
260839
|
+
* @instance
|
|
260840
|
+
*/
|
|
260841
|
+
HieDeliverySucceeded.prototype.externalDeliveryId = "";
|
|
260842
|
+
|
|
260843
|
+
/**
|
|
260844
|
+
* HieDeliverySucceeded deliveredAt.
|
|
260845
|
+
* @member {number|Long} deliveredAt
|
|
260846
|
+
* @memberof HieDeliverySucceeded
|
|
260847
|
+
* @instance
|
|
260848
|
+
*/
|
|
260849
|
+
HieDeliverySucceeded.prototype.deliveredAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
260850
|
+
|
|
260851
|
+
/**
|
|
260852
|
+
* Creates a new HieDeliverySucceeded instance using the specified properties.
|
|
260853
|
+
* @function create
|
|
260854
|
+
* @memberof HieDeliverySucceeded
|
|
260855
|
+
* @static
|
|
260856
|
+
* @param {HieDeliverySucceeded.$Properties=} [properties] Properties to set
|
|
260857
|
+
* @returns {HieDeliverySucceeded} HieDeliverySucceeded instance
|
|
260858
|
+
* @type {{
|
|
260859
|
+
* (properties: HieDeliverySucceeded.$Shape): HieDeliverySucceeded & HieDeliverySucceeded.$Shape;
|
|
260860
|
+
* (properties?: HieDeliverySucceeded.$Properties): HieDeliverySucceeded;
|
|
260861
|
+
* }}
|
|
260862
|
+
*/
|
|
260863
|
+
HieDeliverySucceeded.create = function create(properties) {
|
|
260864
|
+
return new HieDeliverySucceeded(properties);
|
|
260865
|
+
};
|
|
260866
|
+
|
|
260867
|
+
/**
|
|
260868
|
+
* Encodes the specified HieDeliverySucceeded message. Does not implicitly {@link HieDeliverySucceeded.verify|verify} messages.
|
|
260869
|
+
* @function encode
|
|
260870
|
+
* @memberof HieDeliverySucceeded
|
|
260871
|
+
* @static
|
|
260872
|
+
* @param {HieDeliverySucceeded.$Properties} message HieDeliverySucceeded message or plain object to encode
|
|
260873
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
260874
|
+
* @returns {$protobuf.Writer} Writer
|
|
260875
|
+
*/
|
|
260876
|
+
HieDeliverySucceeded.encode = function encode(message, writer) {
|
|
260877
|
+
if (!writer)
|
|
260878
|
+
writer = $Writer.create();
|
|
260879
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
260880
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
260881
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
260882
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
|
|
260883
|
+
if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType"))
|
|
260884
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.resourceType);
|
|
260885
|
+
if (message.sourceEvent != null && Object.hasOwnProperty.call(message, "sourceEvent"))
|
|
260886
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.sourceEvent);
|
|
260887
|
+
if (message.sourceEventId != null && Object.hasOwnProperty.call(message, "sourceEventId"))
|
|
260888
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.sourceEventId);
|
|
260889
|
+
if (message.externalDeliveryId != null && Object.hasOwnProperty.call(message, "externalDeliveryId"))
|
|
260890
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.externalDeliveryId);
|
|
260891
|
+
if (message.deliveredAt != null && Object.hasOwnProperty.call(message, "deliveredAt"))
|
|
260892
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.deliveredAt);
|
|
260893
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
260894
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
260895
|
+
writer.raw(message.$unknowns[i]);
|
|
260896
|
+
return writer;
|
|
260897
|
+
};
|
|
260898
|
+
|
|
260899
|
+
/**
|
|
260900
|
+
* Encodes the specified HieDeliverySucceeded message, length delimited. Does not implicitly {@link HieDeliverySucceeded.verify|verify} messages.
|
|
260901
|
+
* @function encodeDelimited
|
|
260902
|
+
* @memberof HieDeliverySucceeded
|
|
260903
|
+
* @static
|
|
260904
|
+
* @param {HieDeliverySucceeded.$Properties} message HieDeliverySucceeded message or plain object to encode
|
|
260905
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
260906
|
+
* @returns {$protobuf.Writer} Writer
|
|
260907
|
+
*/
|
|
260908
|
+
HieDeliverySucceeded.encodeDelimited = function encodeDelimited(message, writer) {
|
|
260909
|
+
return this.encode(message, writer).ldelim();
|
|
260910
|
+
};
|
|
260911
|
+
|
|
260912
|
+
/**
|
|
260913
|
+
* Decodes a HieDeliverySucceeded message from the specified reader or buffer.
|
|
260914
|
+
* @function decode
|
|
260915
|
+
* @memberof HieDeliverySucceeded
|
|
260916
|
+
* @static
|
|
260917
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
260918
|
+
* @param {number} [length] Message length if known beforehand
|
|
260919
|
+
* @returns {HieDeliverySucceeded & HieDeliverySucceeded.$Shape} HieDeliverySucceeded
|
|
260920
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
260921
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
260922
|
+
*/
|
|
260923
|
+
HieDeliverySucceeded.decode = function decode(reader, length, _end, _depth, _target) {
|
|
260924
|
+
if (!(reader instanceof $Reader))
|
|
260925
|
+
reader = $Reader.create(reader);
|
|
260926
|
+
if (_depth === undefined)
|
|
260927
|
+
_depth = 0;
|
|
260928
|
+
if (_depth > $Reader.recursionLimit)
|
|
260929
|
+
throw Error("max depth exceeded");
|
|
260930
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.HieDeliverySucceeded(), value;
|
|
260931
|
+
while (reader.pos < end) {
|
|
260932
|
+
var start = reader.pos;
|
|
260933
|
+
var tag = reader.tag();
|
|
260934
|
+
if (tag === _end) {
|
|
260935
|
+
_end = undefined;
|
|
260936
|
+
break;
|
|
260937
|
+
}
|
|
260938
|
+
var wireType = tag & 7;
|
|
260939
|
+
switch (tag >>>= 3) {
|
|
260940
|
+
case 1: {
|
|
260941
|
+
if (wireType !== 0)
|
|
260942
|
+
break;
|
|
260943
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
260944
|
+
message.timestamp = value;
|
|
260945
|
+
else
|
|
260946
|
+
delete message.timestamp;
|
|
260947
|
+
continue;
|
|
260948
|
+
}
|
|
260949
|
+
case 2: {
|
|
260950
|
+
if (wireType !== 2)
|
|
260951
|
+
break;
|
|
260952
|
+
if ((value = reader.string()).length)
|
|
260953
|
+
message.hsUserId = value;
|
|
260954
|
+
else
|
|
260955
|
+
delete message.hsUserId;
|
|
260956
|
+
continue;
|
|
260957
|
+
}
|
|
260958
|
+
case 3: {
|
|
260959
|
+
if (wireType !== 0)
|
|
260960
|
+
break;
|
|
260961
|
+
if (value = reader.int32())
|
|
260962
|
+
message.resourceType = value;
|
|
260963
|
+
else
|
|
260964
|
+
delete message.resourceType;
|
|
260965
|
+
continue;
|
|
260966
|
+
}
|
|
260967
|
+
case 4: {
|
|
260968
|
+
if (wireType !== 0)
|
|
260969
|
+
break;
|
|
260970
|
+
if (value = reader.int32())
|
|
260971
|
+
message.sourceEvent = value;
|
|
260972
|
+
else
|
|
260973
|
+
delete message.sourceEvent;
|
|
260974
|
+
continue;
|
|
260975
|
+
}
|
|
260976
|
+
case 5: {
|
|
260977
|
+
if (wireType !== 2)
|
|
260978
|
+
break;
|
|
260979
|
+
if ((value = reader.string()).length)
|
|
260980
|
+
message.sourceEventId = value;
|
|
260981
|
+
else
|
|
260982
|
+
delete message.sourceEventId;
|
|
260983
|
+
continue;
|
|
260984
|
+
}
|
|
260985
|
+
case 6: {
|
|
260986
|
+
if (wireType !== 2)
|
|
260987
|
+
break;
|
|
260988
|
+
if ((value = reader.string()).length)
|
|
260989
|
+
message.externalDeliveryId = value;
|
|
260990
|
+
else
|
|
260991
|
+
delete message.externalDeliveryId;
|
|
260992
|
+
continue;
|
|
260993
|
+
}
|
|
260994
|
+
case 7: {
|
|
260995
|
+
if (wireType !== 0)
|
|
260996
|
+
break;
|
|
260997
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
260998
|
+
message.deliveredAt = value;
|
|
260999
|
+
else
|
|
261000
|
+
delete message.deliveredAt;
|
|
261001
|
+
continue;
|
|
261002
|
+
}
|
|
261003
|
+
}
|
|
261004
|
+
reader.skipType(wireType, _depth, tag);
|
|
261005
|
+
$util.makeProp(message, "$unknowns", false);
|
|
261006
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
261007
|
+
}
|
|
261008
|
+
if (_end !== undefined)
|
|
261009
|
+
throw Error("missing end group");
|
|
261010
|
+
return message;
|
|
261011
|
+
};
|
|
261012
|
+
|
|
261013
|
+
/**
|
|
261014
|
+
* Decodes a HieDeliverySucceeded message from the specified reader or buffer, length delimited.
|
|
261015
|
+
* @function decodeDelimited
|
|
261016
|
+
* @memberof HieDeliverySucceeded
|
|
261017
|
+
* @static
|
|
261018
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
261019
|
+
* @returns {HieDeliverySucceeded & HieDeliverySucceeded.$Shape} HieDeliverySucceeded
|
|
261020
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
261021
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
261022
|
+
*/
|
|
261023
|
+
HieDeliverySucceeded.decodeDelimited = function decodeDelimited(reader) {
|
|
261024
|
+
if (!(reader instanceof $Reader))
|
|
261025
|
+
reader = new $Reader(reader);
|
|
261026
|
+
return this.decode(reader, reader.uint32());
|
|
261027
|
+
};
|
|
261028
|
+
|
|
261029
|
+
/**
|
|
261030
|
+
* Verifies a HieDeliverySucceeded message.
|
|
261031
|
+
* @function verify
|
|
261032
|
+
* @memberof HieDeliverySucceeded
|
|
261033
|
+
* @static
|
|
261034
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
261035
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
261036
|
+
*/
|
|
261037
|
+
HieDeliverySucceeded.verify = function verify(message, _depth) {
|
|
261038
|
+
if (typeof message !== "object" || message === null)
|
|
261039
|
+
return "object expected";
|
|
261040
|
+
if (_depth === undefined)
|
|
261041
|
+
_depth = 0;
|
|
261042
|
+
if (_depth > $util.recursionLimit)
|
|
261043
|
+
return "max depth exceeded";
|
|
261044
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
261045
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
261046
|
+
return "timestamp: integer|Long expected";
|
|
261047
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
261048
|
+
if (!$util.isString(message.hsUserId))
|
|
261049
|
+
return "hsUserId: string expected";
|
|
261050
|
+
if (message.resourceType != null && message.hasOwnProperty("resourceType"))
|
|
261051
|
+
switch (message.resourceType) {
|
|
261052
|
+
default:
|
|
261053
|
+
return "resourceType: enum value expected";
|
|
261054
|
+
case 0:
|
|
261055
|
+
case 1:
|
|
261056
|
+
case 2:
|
|
261057
|
+
case 3:
|
|
261058
|
+
break;
|
|
261059
|
+
}
|
|
261060
|
+
if (message.sourceEvent != null && message.hasOwnProperty("sourceEvent"))
|
|
261061
|
+
switch (message.sourceEvent) {
|
|
261062
|
+
default:
|
|
261063
|
+
return "sourceEvent: enum value expected";
|
|
261064
|
+
case 0:
|
|
261065
|
+
case 1:
|
|
261066
|
+
case 2:
|
|
261067
|
+
case 3:
|
|
261068
|
+
break;
|
|
261069
|
+
}
|
|
261070
|
+
if (message.sourceEventId != null && message.hasOwnProperty("sourceEventId"))
|
|
261071
|
+
if (!$util.isString(message.sourceEventId))
|
|
261072
|
+
return "sourceEventId: string expected";
|
|
261073
|
+
if (message.externalDeliveryId != null && message.hasOwnProperty("externalDeliveryId"))
|
|
261074
|
+
if (!$util.isString(message.externalDeliveryId))
|
|
261075
|
+
return "externalDeliveryId: string expected";
|
|
261076
|
+
if (message.deliveredAt != null && message.hasOwnProperty("deliveredAt"))
|
|
261077
|
+
if (!$util.isInteger(message.deliveredAt) && !(message.deliveredAt && $util.isInteger(message.deliveredAt.low) && $util.isInteger(message.deliveredAt.high)))
|
|
261078
|
+
return "deliveredAt: integer|Long expected";
|
|
261079
|
+
return null;
|
|
261080
|
+
};
|
|
261081
|
+
|
|
261082
|
+
/**
|
|
261083
|
+
* Creates a HieDeliverySucceeded message from a plain object. Also converts values to their respective internal types.
|
|
261084
|
+
* @function fromObject
|
|
261085
|
+
* @memberof HieDeliverySucceeded
|
|
261086
|
+
* @static
|
|
261087
|
+
* @param {Object.<string,*>} object Plain object
|
|
261088
|
+
* @returns {HieDeliverySucceeded} HieDeliverySucceeded
|
|
261089
|
+
*/
|
|
261090
|
+
HieDeliverySucceeded.fromObject = function fromObject(object, _depth) {
|
|
261091
|
+
if (object instanceof $root.HieDeliverySucceeded)
|
|
261092
|
+
return object;
|
|
261093
|
+
if (_depth === undefined)
|
|
261094
|
+
_depth = 0;
|
|
261095
|
+
if (_depth > $util.recursionLimit)
|
|
261096
|
+
throw Error("max depth exceeded");
|
|
261097
|
+
var message = new $root.HieDeliverySucceeded();
|
|
261098
|
+
if (object.timestamp != null)
|
|
261099
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
261100
|
+
if ($util.Long)
|
|
261101
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
261102
|
+
else if (typeof object.timestamp === "string")
|
|
261103
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
261104
|
+
else if (typeof object.timestamp === "number")
|
|
261105
|
+
message.timestamp = object.timestamp;
|
|
261106
|
+
else if (typeof object.timestamp === "object")
|
|
261107
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
261108
|
+
if (object.hsUserId != null)
|
|
261109
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
261110
|
+
message.hsUserId = String(object.hsUserId);
|
|
261111
|
+
if (object.resourceType !== 0 && (typeof object.resourceType !== "string" || $root.HieDeliveryResourceType[object.resourceType] !== 0))
|
|
261112
|
+
switch (object.resourceType) {
|
|
261113
|
+
default:
|
|
261114
|
+
if (typeof object.resourceType === "number") {
|
|
261115
|
+
message.resourceType = object.resourceType;
|
|
261116
|
+
break;
|
|
261117
|
+
}
|
|
261118
|
+
break;
|
|
261119
|
+
case "HIE_DELIVERY_RESOURCE_TYPE_UNKNOWN":
|
|
261120
|
+
case 0:
|
|
261121
|
+
message.resourceType = 0;
|
|
261122
|
+
break;
|
|
261123
|
+
case "HIE_DELIVERY_RESOURCE_TYPE_OBSERVATION":
|
|
261124
|
+
case 1:
|
|
261125
|
+
message.resourceType = 1;
|
|
261126
|
+
break;
|
|
261127
|
+
case "HIE_DELIVERY_RESOURCE_TYPE_CLINICAL_NOTE_BUNDLE":
|
|
261128
|
+
case 2:
|
|
261129
|
+
message.resourceType = 2;
|
|
261130
|
+
break;
|
|
261131
|
+
case "HIE_DELIVERY_RESOURCE_TYPE_ENCOUNTER":
|
|
261132
|
+
case 3:
|
|
261133
|
+
message.resourceType = 3;
|
|
261134
|
+
break;
|
|
261135
|
+
}
|
|
261136
|
+
if (object.sourceEvent !== 0 && (typeof object.sourceEvent !== "string" || $root.HieDeliverySourceEvent[object.sourceEvent] !== 0))
|
|
261137
|
+
switch (object.sourceEvent) {
|
|
261138
|
+
default:
|
|
261139
|
+
if (typeof object.sourceEvent === "number") {
|
|
261140
|
+
message.sourceEvent = object.sourceEvent;
|
|
261141
|
+
break;
|
|
261142
|
+
}
|
|
261143
|
+
break;
|
|
261144
|
+
case "HIE_DELIVERY_SOURCE_EVENT_UNKNOWN":
|
|
261145
|
+
case 0:
|
|
261146
|
+
message.sourceEvent = 0;
|
|
261147
|
+
break;
|
|
261148
|
+
case "HIE_DELIVERY_SOURCE_EVENT_GINGER_CLINICAL_NOTE_EXPORTED":
|
|
261149
|
+
case 1:
|
|
261150
|
+
message.sourceEvent = 1;
|
|
261151
|
+
break;
|
|
261152
|
+
case "HIE_DELIVERY_SOURCE_EVENT_PHQ_ASSESSMENT_SCORED_COMPLETED":
|
|
261153
|
+
case 2:
|
|
261154
|
+
message.sourceEvent = 2;
|
|
261155
|
+
break;
|
|
261156
|
+
case "HIE_DELIVERY_SOURCE_EVENT_COACHING_ENCOUNTER_EXPORTED":
|
|
261157
|
+
case 3:
|
|
261158
|
+
message.sourceEvent = 3;
|
|
261159
|
+
break;
|
|
261160
|
+
}
|
|
261161
|
+
if (object.sourceEventId != null)
|
|
261162
|
+
if (typeof object.sourceEventId !== "string" || object.sourceEventId.length)
|
|
261163
|
+
message.sourceEventId = String(object.sourceEventId);
|
|
261164
|
+
if (object.externalDeliveryId != null)
|
|
261165
|
+
if (typeof object.externalDeliveryId !== "string" || object.externalDeliveryId.length)
|
|
261166
|
+
message.externalDeliveryId = String(object.externalDeliveryId);
|
|
261167
|
+
if (object.deliveredAt != null)
|
|
261168
|
+
if (typeof object.deliveredAt === "object" ? object.deliveredAt.low || object.deliveredAt.high : Number(object.deliveredAt) !== 0)
|
|
261169
|
+
if ($util.Long)
|
|
261170
|
+
(message.deliveredAt = $util.Long.fromValue(object.deliveredAt)).unsigned = true;
|
|
261171
|
+
else if (typeof object.deliveredAt === "string")
|
|
261172
|
+
message.deliveredAt = parseInt(object.deliveredAt, 10);
|
|
261173
|
+
else if (typeof object.deliveredAt === "number")
|
|
261174
|
+
message.deliveredAt = object.deliveredAt;
|
|
261175
|
+
else if (typeof object.deliveredAt === "object")
|
|
261176
|
+
message.deliveredAt = new $util.LongBits(object.deliveredAt.low >>> 0, object.deliveredAt.high >>> 0).toNumber(true);
|
|
261177
|
+
return message;
|
|
261178
|
+
};
|
|
261179
|
+
|
|
261180
|
+
/**
|
|
261181
|
+
* Creates a plain object from a HieDeliverySucceeded message. Also converts values to other types if specified.
|
|
261182
|
+
* @function toObject
|
|
261183
|
+
* @memberof HieDeliverySucceeded
|
|
261184
|
+
* @static
|
|
261185
|
+
* @param {HieDeliverySucceeded} message HieDeliverySucceeded
|
|
261186
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
261187
|
+
* @returns {Object.<string,*>} Plain object
|
|
261188
|
+
*/
|
|
261189
|
+
HieDeliverySucceeded.toObject = function toObject(message, options) {
|
|
261190
|
+
if (!options)
|
|
261191
|
+
options = {};
|
|
261192
|
+
var object = {};
|
|
261193
|
+
if (options.defaults) {
|
|
261194
|
+
if ($util.Long) {
|
|
261195
|
+
var long = new $util.Long(0, 0, true);
|
|
261196
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
261197
|
+
} else
|
|
261198
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
261199
|
+
object.hsUserId = "";
|
|
261200
|
+
object.resourceType = options.enums === String ? "HIE_DELIVERY_RESOURCE_TYPE_UNKNOWN" : 0;
|
|
261201
|
+
object.sourceEvent = options.enums === String ? "HIE_DELIVERY_SOURCE_EVENT_UNKNOWN" : 0;
|
|
261202
|
+
object.sourceEventId = "";
|
|
261203
|
+
object.externalDeliveryId = "";
|
|
261204
|
+
if ($util.Long) {
|
|
261205
|
+
var long = new $util.Long(0, 0, true);
|
|
261206
|
+
object.deliveredAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
261207
|
+
} else
|
|
261208
|
+
object.deliveredAt = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
261209
|
+
}
|
|
261210
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
261211
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
261212
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
261213
|
+
else if (typeof message.timestamp === "number")
|
|
261214
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
261215
|
+
else
|
|
261216
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
261217
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
261218
|
+
object.hsUserId = message.hsUserId;
|
|
261219
|
+
if (message.resourceType != null && message.hasOwnProperty("resourceType"))
|
|
261220
|
+
object.resourceType = options.enums === String ? $root.HieDeliveryResourceType[message.resourceType] === undefined ? message.resourceType : $root.HieDeliveryResourceType[message.resourceType] : message.resourceType;
|
|
261221
|
+
if (message.sourceEvent != null && message.hasOwnProperty("sourceEvent"))
|
|
261222
|
+
object.sourceEvent = options.enums === String ? $root.HieDeliverySourceEvent[message.sourceEvent] === undefined ? message.sourceEvent : $root.HieDeliverySourceEvent[message.sourceEvent] : message.sourceEvent;
|
|
261223
|
+
if (message.sourceEventId != null && message.hasOwnProperty("sourceEventId"))
|
|
261224
|
+
object.sourceEventId = message.sourceEventId;
|
|
261225
|
+
if (message.externalDeliveryId != null && message.hasOwnProperty("externalDeliveryId"))
|
|
261226
|
+
object.externalDeliveryId = message.externalDeliveryId;
|
|
261227
|
+
if (message.deliveredAt != null && message.hasOwnProperty("deliveredAt"))
|
|
261228
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
261229
|
+
object.deliveredAt = typeof message.deliveredAt === "number" ? BigInt(message.deliveredAt) : $util.Long.fromBits(message.deliveredAt.low >>> 0, message.deliveredAt.high >>> 0, true).toBigInt();
|
|
261230
|
+
else if (typeof message.deliveredAt === "number")
|
|
261231
|
+
object.deliveredAt = options.longs === String ? String(message.deliveredAt) : message.deliveredAt;
|
|
261232
|
+
else
|
|
261233
|
+
object.deliveredAt = options.longs === String ? $util.Long.prototype.toString.call(message.deliveredAt) : options.longs === Number ? new $util.LongBits(message.deliveredAt.low >>> 0, message.deliveredAt.high >>> 0).toNumber(true) : message.deliveredAt;
|
|
261234
|
+
return object;
|
|
261235
|
+
};
|
|
261236
|
+
|
|
261237
|
+
/**
|
|
261238
|
+
* Converts this HieDeliverySucceeded to JSON.
|
|
261239
|
+
* @function toJSON
|
|
261240
|
+
* @memberof HieDeliverySucceeded
|
|
261241
|
+
* @instance
|
|
261242
|
+
* @returns {Object.<string,*>} JSON object
|
|
261243
|
+
*/
|
|
261244
|
+
HieDeliverySucceeded.prototype.toJSON = function toJSON() {
|
|
261245
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
261246
|
+
};
|
|
261247
|
+
|
|
261248
|
+
/**
|
|
261249
|
+
* Gets the type url for HieDeliverySucceeded
|
|
261250
|
+
* @function getTypeUrl
|
|
261251
|
+
* @memberof HieDeliverySucceeded
|
|
261252
|
+
* @static
|
|
261253
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
261254
|
+
* @returns {string} The type url
|
|
261255
|
+
*/
|
|
261256
|
+
HieDeliverySucceeded.getTypeUrl = function getTypeUrl(prefix) {
|
|
261257
|
+
if (prefix === undefined)
|
|
261258
|
+
prefix = "type.googleapis.com";
|
|
261259
|
+
return prefix + "/HieDeliverySucceeded";
|
|
261260
|
+
};
|
|
261261
|
+
|
|
261262
|
+
return HieDeliverySucceeded;
|
|
261263
|
+
})();
|
|
261264
|
+
|
|
261265
|
+
$root.HieDeliveryFailed = (function() {
|
|
261266
|
+
|
|
261267
|
+
/**
|
|
261268
|
+
* Properties of a HieDeliveryFailed.
|
|
261269
|
+
* @typedef {Object} HieDeliveryFailed.$Properties
|
|
261270
|
+
* @property {number|Long|null} [timestamp] HieDeliveryFailed timestamp
|
|
261271
|
+
* @property {string|null} [hsUserId] HieDeliveryFailed hsUserId
|
|
261272
|
+
* @property {HieDeliveryResourceType|null} [resourceType] HieDeliveryFailed resourceType
|
|
261273
|
+
* @property {HieDeliverySourceEvent|null} [sourceEvent] HieDeliveryFailed sourceEvent
|
|
261274
|
+
* @property {string|null} [sourceEventId] HieDeliveryFailed sourceEventId
|
|
261275
|
+
* @property {number|null} [attemptCount] HieDeliveryFailed attemptCount
|
|
261276
|
+
* @property {HieDeliveryFailureReason|null} [failureReason] HieDeliveryFailed failureReason
|
|
261277
|
+
* @property {string|null} [lastError] HieDeliveryFailed lastError
|
|
261278
|
+
* @property {number|Long|null} [failedAt] HieDeliveryFailed failedAt
|
|
261279
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
261280
|
+
*/
|
|
261281
|
+
|
|
261282
|
+
/**
|
|
261283
|
+
* Properties of a HieDeliveryFailed.
|
|
261284
|
+
* @name IHieDeliveryFailed
|
|
261285
|
+
* @interface IHieDeliveryFailed
|
|
261286
|
+
* @augments HieDeliveryFailed.$Properties
|
|
261287
|
+
* @deprecated Use HieDeliveryFailed.$Properties instead.
|
|
261288
|
+
*/
|
|
261289
|
+
|
|
261290
|
+
/**
|
|
261291
|
+
* Shape of a HieDeliveryFailed.
|
|
261292
|
+
* @typedef {HieDeliveryFailed.$Properties} HieDeliveryFailed.$Shape
|
|
261293
|
+
*/
|
|
261294
|
+
|
|
261295
|
+
/**
|
|
261296
|
+
* Constructs a new HieDeliveryFailed.
|
|
261297
|
+
* @name HieDeliveryFailed
|
|
261298
|
+
* @classdesc Published when hs-hie-service exhausts retries or encounters a non-retryable error
|
|
261299
|
+
* and will not deliver the upstream source event to the HIE connectivity broker.
|
|
261300
|
+
* Contains no clinical content or PHI beyond opaque identifiers. last_error is sanitized
|
|
261301
|
+
* and must not contain PII, PHI, a vendor product name, or broker response payload content.
|
|
261302
|
+
* Used by producer audit and alerting subscribers and hs-cms-access-service observability.
|
|
261303
|
+
* Fired by: hs-hie-service
|
|
261304
|
+
* Responsible team: Commercial Platform
|
|
261305
|
+
* @constructor
|
|
261306
|
+
* @param {HieDeliveryFailed.$Properties=} [properties] Properties to set
|
|
261307
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
261308
|
+
*/
|
|
261309
|
+
function HieDeliveryFailed(properties) {
|
|
261310
|
+
if (properties)
|
|
261311
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
261312
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
261313
|
+
this[keys[i]] = properties[keys[i]];
|
|
261314
|
+
}
|
|
261315
|
+
|
|
261316
|
+
/**
|
|
261317
|
+
* HieDeliveryFailed timestamp.
|
|
261318
|
+
* @member {number|Long} timestamp
|
|
261319
|
+
* @memberof HieDeliveryFailed
|
|
261320
|
+
* @instance
|
|
261321
|
+
*/
|
|
261322
|
+
HieDeliveryFailed.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
261323
|
+
|
|
261324
|
+
/**
|
|
261325
|
+
* HieDeliveryFailed hsUserId.
|
|
261326
|
+
* @member {string} hsUserId
|
|
261327
|
+
* @memberof HieDeliveryFailed
|
|
261328
|
+
* @instance
|
|
261329
|
+
*/
|
|
261330
|
+
HieDeliveryFailed.prototype.hsUserId = "";
|
|
261331
|
+
|
|
261332
|
+
/**
|
|
261333
|
+
* HieDeliveryFailed resourceType.
|
|
261334
|
+
* @member {HieDeliveryResourceType} resourceType
|
|
261335
|
+
* @memberof HieDeliveryFailed
|
|
261336
|
+
* @instance
|
|
261337
|
+
*/
|
|
261338
|
+
HieDeliveryFailed.prototype.resourceType = 0;
|
|
261339
|
+
|
|
261340
|
+
/**
|
|
261341
|
+
* HieDeliveryFailed sourceEvent.
|
|
261342
|
+
* @member {HieDeliverySourceEvent} sourceEvent
|
|
261343
|
+
* @memberof HieDeliveryFailed
|
|
261344
|
+
* @instance
|
|
261345
|
+
*/
|
|
261346
|
+
HieDeliveryFailed.prototype.sourceEvent = 0;
|
|
261347
|
+
|
|
261348
|
+
/**
|
|
261349
|
+
* HieDeliveryFailed sourceEventId.
|
|
261350
|
+
* @member {string} sourceEventId
|
|
261351
|
+
* @memberof HieDeliveryFailed
|
|
261352
|
+
* @instance
|
|
261353
|
+
*/
|
|
261354
|
+
HieDeliveryFailed.prototype.sourceEventId = "";
|
|
261355
|
+
|
|
261356
|
+
/**
|
|
261357
|
+
* HieDeliveryFailed attemptCount.
|
|
261358
|
+
* @member {number} attemptCount
|
|
261359
|
+
* @memberof HieDeliveryFailed
|
|
261360
|
+
* @instance
|
|
261361
|
+
*/
|
|
261362
|
+
HieDeliveryFailed.prototype.attemptCount = 0;
|
|
261363
|
+
|
|
261364
|
+
/**
|
|
261365
|
+
* HieDeliveryFailed failureReason.
|
|
261366
|
+
* @member {HieDeliveryFailureReason} failureReason
|
|
261367
|
+
* @memberof HieDeliveryFailed
|
|
261368
|
+
* @instance
|
|
261369
|
+
*/
|
|
261370
|
+
HieDeliveryFailed.prototype.failureReason = 0;
|
|
261371
|
+
|
|
261372
|
+
/**
|
|
261373
|
+
* HieDeliveryFailed lastError.
|
|
261374
|
+
* @member {string} lastError
|
|
261375
|
+
* @memberof HieDeliveryFailed
|
|
261376
|
+
* @instance
|
|
261377
|
+
*/
|
|
261378
|
+
HieDeliveryFailed.prototype.lastError = "";
|
|
261379
|
+
|
|
261380
|
+
/**
|
|
261381
|
+
* HieDeliveryFailed failedAt.
|
|
261382
|
+
* @member {number|Long} failedAt
|
|
261383
|
+
* @memberof HieDeliveryFailed
|
|
261384
|
+
* @instance
|
|
261385
|
+
*/
|
|
261386
|
+
HieDeliveryFailed.prototype.failedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
261387
|
+
|
|
261388
|
+
/**
|
|
261389
|
+
* Creates a new HieDeliveryFailed instance using the specified properties.
|
|
261390
|
+
* @function create
|
|
261391
|
+
* @memberof HieDeliveryFailed
|
|
261392
|
+
* @static
|
|
261393
|
+
* @param {HieDeliveryFailed.$Properties=} [properties] Properties to set
|
|
261394
|
+
* @returns {HieDeliveryFailed} HieDeliveryFailed instance
|
|
261395
|
+
* @type {{
|
|
261396
|
+
* (properties: HieDeliveryFailed.$Shape): HieDeliveryFailed & HieDeliveryFailed.$Shape;
|
|
261397
|
+
* (properties?: HieDeliveryFailed.$Properties): HieDeliveryFailed;
|
|
261398
|
+
* }}
|
|
261399
|
+
*/
|
|
261400
|
+
HieDeliveryFailed.create = function create(properties) {
|
|
261401
|
+
return new HieDeliveryFailed(properties);
|
|
261402
|
+
};
|
|
261403
|
+
|
|
261404
|
+
/**
|
|
261405
|
+
* Encodes the specified HieDeliveryFailed message. Does not implicitly {@link HieDeliveryFailed.verify|verify} messages.
|
|
261406
|
+
* @function encode
|
|
261407
|
+
* @memberof HieDeliveryFailed
|
|
261408
|
+
* @static
|
|
261409
|
+
* @param {HieDeliveryFailed.$Properties} message HieDeliveryFailed message or plain object to encode
|
|
261410
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
261411
|
+
* @returns {$protobuf.Writer} Writer
|
|
261412
|
+
*/
|
|
261413
|
+
HieDeliveryFailed.encode = function encode(message, writer) {
|
|
261414
|
+
if (!writer)
|
|
261415
|
+
writer = $Writer.create();
|
|
261416
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
261417
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
261418
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
261419
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
|
|
261420
|
+
if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType"))
|
|
261421
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.resourceType);
|
|
261422
|
+
if (message.sourceEvent != null && Object.hasOwnProperty.call(message, "sourceEvent"))
|
|
261423
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.sourceEvent);
|
|
261424
|
+
if (message.sourceEventId != null && Object.hasOwnProperty.call(message, "sourceEventId"))
|
|
261425
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.sourceEventId);
|
|
261426
|
+
if (message.attemptCount != null && Object.hasOwnProperty.call(message, "attemptCount"))
|
|
261427
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.attemptCount);
|
|
261428
|
+
if (message.failureReason != null && Object.hasOwnProperty.call(message, "failureReason"))
|
|
261429
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.failureReason);
|
|
261430
|
+
if (message.lastError != null && Object.hasOwnProperty.call(message, "lastError"))
|
|
261431
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.lastError);
|
|
261432
|
+
if (message.failedAt != null && Object.hasOwnProperty.call(message, "failedAt"))
|
|
261433
|
+
writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.failedAt);
|
|
261434
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
261435
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
261436
|
+
writer.raw(message.$unknowns[i]);
|
|
261437
|
+
return writer;
|
|
261438
|
+
};
|
|
261439
|
+
|
|
261440
|
+
/**
|
|
261441
|
+
* Encodes the specified HieDeliveryFailed message, length delimited. Does not implicitly {@link HieDeliveryFailed.verify|verify} messages.
|
|
261442
|
+
* @function encodeDelimited
|
|
261443
|
+
* @memberof HieDeliveryFailed
|
|
261444
|
+
* @static
|
|
261445
|
+
* @param {HieDeliveryFailed.$Properties} message HieDeliveryFailed message or plain object to encode
|
|
261446
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
261447
|
+
* @returns {$protobuf.Writer} Writer
|
|
261448
|
+
*/
|
|
261449
|
+
HieDeliveryFailed.encodeDelimited = function encodeDelimited(message, writer) {
|
|
261450
|
+
return this.encode(message, writer).ldelim();
|
|
261451
|
+
};
|
|
261452
|
+
|
|
261453
|
+
/**
|
|
261454
|
+
* Decodes a HieDeliveryFailed message from the specified reader or buffer.
|
|
261455
|
+
* @function decode
|
|
261456
|
+
* @memberof HieDeliveryFailed
|
|
261457
|
+
* @static
|
|
261458
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
261459
|
+
* @param {number} [length] Message length if known beforehand
|
|
261460
|
+
* @returns {HieDeliveryFailed & HieDeliveryFailed.$Shape} HieDeliveryFailed
|
|
261461
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
261462
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
261463
|
+
*/
|
|
261464
|
+
HieDeliveryFailed.decode = function decode(reader, length, _end, _depth, _target) {
|
|
261465
|
+
if (!(reader instanceof $Reader))
|
|
261466
|
+
reader = $Reader.create(reader);
|
|
261467
|
+
if (_depth === undefined)
|
|
261468
|
+
_depth = 0;
|
|
261469
|
+
if (_depth > $Reader.recursionLimit)
|
|
261470
|
+
throw Error("max depth exceeded");
|
|
261471
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.HieDeliveryFailed(), value;
|
|
261472
|
+
while (reader.pos < end) {
|
|
261473
|
+
var start = reader.pos;
|
|
261474
|
+
var tag = reader.tag();
|
|
261475
|
+
if (tag === _end) {
|
|
261476
|
+
_end = undefined;
|
|
261477
|
+
break;
|
|
261478
|
+
}
|
|
261479
|
+
var wireType = tag & 7;
|
|
261480
|
+
switch (tag >>>= 3) {
|
|
261481
|
+
case 1: {
|
|
261482
|
+
if (wireType !== 0)
|
|
261483
|
+
break;
|
|
261484
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
261485
|
+
message.timestamp = value;
|
|
261486
|
+
else
|
|
261487
|
+
delete message.timestamp;
|
|
261488
|
+
continue;
|
|
261489
|
+
}
|
|
261490
|
+
case 2: {
|
|
261491
|
+
if (wireType !== 2)
|
|
261492
|
+
break;
|
|
261493
|
+
if ((value = reader.string()).length)
|
|
261494
|
+
message.hsUserId = value;
|
|
261495
|
+
else
|
|
261496
|
+
delete message.hsUserId;
|
|
261497
|
+
continue;
|
|
261498
|
+
}
|
|
261499
|
+
case 3: {
|
|
261500
|
+
if (wireType !== 0)
|
|
261501
|
+
break;
|
|
261502
|
+
if (value = reader.int32())
|
|
261503
|
+
message.resourceType = value;
|
|
261504
|
+
else
|
|
261505
|
+
delete message.resourceType;
|
|
261506
|
+
continue;
|
|
261507
|
+
}
|
|
261508
|
+
case 4: {
|
|
261509
|
+
if (wireType !== 0)
|
|
261510
|
+
break;
|
|
261511
|
+
if (value = reader.int32())
|
|
261512
|
+
message.sourceEvent = value;
|
|
261513
|
+
else
|
|
261514
|
+
delete message.sourceEvent;
|
|
261515
|
+
continue;
|
|
261516
|
+
}
|
|
261517
|
+
case 5: {
|
|
261518
|
+
if (wireType !== 2)
|
|
261519
|
+
break;
|
|
261520
|
+
if ((value = reader.string()).length)
|
|
261521
|
+
message.sourceEventId = value;
|
|
261522
|
+
else
|
|
261523
|
+
delete message.sourceEventId;
|
|
261524
|
+
continue;
|
|
261525
|
+
}
|
|
261526
|
+
case 6: {
|
|
261527
|
+
if (wireType !== 0)
|
|
261528
|
+
break;
|
|
261529
|
+
if (value = reader.uint32())
|
|
261530
|
+
message.attemptCount = value;
|
|
261531
|
+
else
|
|
261532
|
+
delete message.attemptCount;
|
|
261533
|
+
continue;
|
|
261534
|
+
}
|
|
261535
|
+
case 7: {
|
|
261536
|
+
if (wireType !== 0)
|
|
261537
|
+
break;
|
|
261538
|
+
if (value = reader.int32())
|
|
261539
|
+
message.failureReason = value;
|
|
261540
|
+
else
|
|
261541
|
+
delete message.failureReason;
|
|
261542
|
+
continue;
|
|
261543
|
+
}
|
|
261544
|
+
case 8: {
|
|
261545
|
+
if (wireType !== 2)
|
|
261546
|
+
break;
|
|
261547
|
+
if ((value = reader.string()).length)
|
|
261548
|
+
message.lastError = value;
|
|
261549
|
+
else
|
|
261550
|
+
delete message.lastError;
|
|
261551
|
+
continue;
|
|
261552
|
+
}
|
|
261553
|
+
case 9: {
|
|
261554
|
+
if (wireType !== 0)
|
|
261555
|
+
break;
|
|
261556
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
261557
|
+
message.failedAt = value;
|
|
261558
|
+
else
|
|
261559
|
+
delete message.failedAt;
|
|
261560
|
+
continue;
|
|
261561
|
+
}
|
|
261562
|
+
}
|
|
261563
|
+
reader.skipType(wireType, _depth, tag);
|
|
261564
|
+
$util.makeProp(message, "$unknowns", false);
|
|
261565
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
261566
|
+
}
|
|
261567
|
+
if (_end !== undefined)
|
|
261568
|
+
throw Error("missing end group");
|
|
261569
|
+
return message;
|
|
261570
|
+
};
|
|
261571
|
+
|
|
261572
|
+
/**
|
|
261573
|
+
* Decodes a HieDeliveryFailed message from the specified reader or buffer, length delimited.
|
|
261574
|
+
* @function decodeDelimited
|
|
261575
|
+
* @memberof HieDeliveryFailed
|
|
261576
|
+
* @static
|
|
261577
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
261578
|
+
* @returns {HieDeliveryFailed & HieDeliveryFailed.$Shape} HieDeliveryFailed
|
|
261579
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
261580
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
261581
|
+
*/
|
|
261582
|
+
HieDeliveryFailed.decodeDelimited = function decodeDelimited(reader) {
|
|
261583
|
+
if (!(reader instanceof $Reader))
|
|
261584
|
+
reader = new $Reader(reader);
|
|
261585
|
+
return this.decode(reader, reader.uint32());
|
|
261586
|
+
};
|
|
261587
|
+
|
|
261588
|
+
/**
|
|
261589
|
+
* Verifies a HieDeliveryFailed message.
|
|
261590
|
+
* @function verify
|
|
261591
|
+
* @memberof HieDeliveryFailed
|
|
261592
|
+
* @static
|
|
261593
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
261594
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
261595
|
+
*/
|
|
261596
|
+
HieDeliveryFailed.verify = function verify(message, _depth) {
|
|
261597
|
+
if (typeof message !== "object" || message === null)
|
|
261598
|
+
return "object expected";
|
|
261599
|
+
if (_depth === undefined)
|
|
261600
|
+
_depth = 0;
|
|
261601
|
+
if (_depth > $util.recursionLimit)
|
|
261602
|
+
return "max depth exceeded";
|
|
261603
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
261604
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
261605
|
+
return "timestamp: integer|Long expected";
|
|
261606
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
261607
|
+
if (!$util.isString(message.hsUserId))
|
|
261608
|
+
return "hsUserId: string expected";
|
|
261609
|
+
if (message.resourceType != null && message.hasOwnProperty("resourceType"))
|
|
261610
|
+
switch (message.resourceType) {
|
|
261611
|
+
default:
|
|
261612
|
+
return "resourceType: enum value expected";
|
|
261613
|
+
case 0:
|
|
261614
|
+
case 1:
|
|
261615
|
+
case 2:
|
|
261616
|
+
case 3:
|
|
261617
|
+
break;
|
|
261618
|
+
}
|
|
261619
|
+
if (message.sourceEvent != null && message.hasOwnProperty("sourceEvent"))
|
|
261620
|
+
switch (message.sourceEvent) {
|
|
261621
|
+
default:
|
|
261622
|
+
return "sourceEvent: enum value expected";
|
|
261623
|
+
case 0:
|
|
261624
|
+
case 1:
|
|
261625
|
+
case 2:
|
|
261626
|
+
case 3:
|
|
261627
|
+
break;
|
|
261628
|
+
}
|
|
261629
|
+
if (message.sourceEventId != null && message.hasOwnProperty("sourceEventId"))
|
|
261630
|
+
if (!$util.isString(message.sourceEventId))
|
|
261631
|
+
return "sourceEventId: string expected";
|
|
261632
|
+
if (message.attemptCount != null && message.hasOwnProperty("attemptCount"))
|
|
261633
|
+
if (!$util.isInteger(message.attemptCount))
|
|
261634
|
+
return "attemptCount: integer expected";
|
|
261635
|
+
if (message.failureReason != null && message.hasOwnProperty("failureReason"))
|
|
261636
|
+
switch (message.failureReason) {
|
|
261637
|
+
default:
|
|
261638
|
+
return "failureReason: enum value expected";
|
|
261639
|
+
case 0:
|
|
261640
|
+
case 1:
|
|
261641
|
+
case 2:
|
|
261642
|
+
case 3:
|
|
261643
|
+
case 4:
|
|
261644
|
+
case 5:
|
|
261645
|
+
case 6:
|
|
261646
|
+
case 7:
|
|
261647
|
+
break;
|
|
261648
|
+
}
|
|
261649
|
+
if (message.lastError != null && message.hasOwnProperty("lastError"))
|
|
261650
|
+
if (!$util.isString(message.lastError))
|
|
261651
|
+
return "lastError: string expected";
|
|
261652
|
+
if (message.failedAt != null && message.hasOwnProperty("failedAt"))
|
|
261653
|
+
if (!$util.isInteger(message.failedAt) && !(message.failedAt && $util.isInteger(message.failedAt.low) && $util.isInteger(message.failedAt.high)))
|
|
261654
|
+
return "failedAt: integer|Long expected";
|
|
261655
|
+
return null;
|
|
261656
|
+
};
|
|
261657
|
+
|
|
261658
|
+
/**
|
|
261659
|
+
* Creates a HieDeliveryFailed message from a plain object. Also converts values to their respective internal types.
|
|
261660
|
+
* @function fromObject
|
|
261661
|
+
* @memberof HieDeliveryFailed
|
|
261662
|
+
* @static
|
|
261663
|
+
* @param {Object.<string,*>} object Plain object
|
|
261664
|
+
* @returns {HieDeliveryFailed} HieDeliveryFailed
|
|
261665
|
+
*/
|
|
261666
|
+
HieDeliveryFailed.fromObject = function fromObject(object, _depth) {
|
|
261667
|
+
if (object instanceof $root.HieDeliveryFailed)
|
|
261668
|
+
return object;
|
|
261669
|
+
if (_depth === undefined)
|
|
261670
|
+
_depth = 0;
|
|
261671
|
+
if (_depth > $util.recursionLimit)
|
|
261672
|
+
throw Error("max depth exceeded");
|
|
261673
|
+
var message = new $root.HieDeliveryFailed();
|
|
261674
|
+
if (object.timestamp != null)
|
|
261675
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
261676
|
+
if ($util.Long)
|
|
261677
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
261678
|
+
else if (typeof object.timestamp === "string")
|
|
261679
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
261680
|
+
else if (typeof object.timestamp === "number")
|
|
261681
|
+
message.timestamp = object.timestamp;
|
|
261682
|
+
else if (typeof object.timestamp === "object")
|
|
261683
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
261684
|
+
if (object.hsUserId != null)
|
|
261685
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
261686
|
+
message.hsUserId = String(object.hsUserId);
|
|
261687
|
+
if (object.resourceType !== 0 && (typeof object.resourceType !== "string" || $root.HieDeliveryResourceType[object.resourceType] !== 0))
|
|
261688
|
+
switch (object.resourceType) {
|
|
261689
|
+
default:
|
|
261690
|
+
if (typeof object.resourceType === "number") {
|
|
261691
|
+
message.resourceType = object.resourceType;
|
|
261692
|
+
break;
|
|
261693
|
+
}
|
|
261694
|
+
break;
|
|
261695
|
+
case "HIE_DELIVERY_RESOURCE_TYPE_UNKNOWN":
|
|
261696
|
+
case 0:
|
|
261697
|
+
message.resourceType = 0;
|
|
261698
|
+
break;
|
|
261699
|
+
case "HIE_DELIVERY_RESOURCE_TYPE_OBSERVATION":
|
|
261700
|
+
case 1:
|
|
261701
|
+
message.resourceType = 1;
|
|
261702
|
+
break;
|
|
261703
|
+
case "HIE_DELIVERY_RESOURCE_TYPE_CLINICAL_NOTE_BUNDLE":
|
|
261704
|
+
case 2:
|
|
261705
|
+
message.resourceType = 2;
|
|
261706
|
+
break;
|
|
261707
|
+
case "HIE_DELIVERY_RESOURCE_TYPE_ENCOUNTER":
|
|
261708
|
+
case 3:
|
|
261709
|
+
message.resourceType = 3;
|
|
261710
|
+
break;
|
|
261711
|
+
}
|
|
261712
|
+
if (object.sourceEvent !== 0 && (typeof object.sourceEvent !== "string" || $root.HieDeliverySourceEvent[object.sourceEvent] !== 0))
|
|
261713
|
+
switch (object.sourceEvent) {
|
|
261714
|
+
default:
|
|
261715
|
+
if (typeof object.sourceEvent === "number") {
|
|
261716
|
+
message.sourceEvent = object.sourceEvent;
|
|
261717
|
+
break;
|
|
261718
|
+
}
|
|
261719
|
+
break;
|
|
261720
|
+
case "HIE_DELIVERY_SOURCE_EVENT_UNKNOWN":
|
|
261721
|
+
case 0:
|
|
261722
|
+
message.sourceEvent = 0;
|
|
261723
|
+
break;
|
|
261724
|
+
case "HIE_DELIVERY_SOURCE_EVENT_GINGER_CLINICAL_NOTE_EXPORTED":
|
|
261725
|
+
case 1:
|
|
261726
|
+
message.sourceEvent = 1;
|
|
261727
|
+
break;
|
|
261728
|
+
case "HIE_DELIVERY_SOURCE_EVENT_PHQ_ASSESSMENT_SCORED_COMPLETED":
|
|
261729
|
+
case 2:
|
|
261730
|
+
message.sourceEvent = 2;
|
|
261731
|
+
break;
|
|
261732
|
+
case "HIE_DELIVERY_SOURCE_EVENT_COACHING_ENCOUNTER_EXPORTED":
|
|
261733
|
+
case 3:
|
|
261734
|
+
message.sourceEvent = 3;
|
|
261735
|
+
break;
|
|
261736
|
+
}
|
|
261737
|
+
if (object.sourceEventId != null)
|
|
261738
|
+
if (typeof object.sourceEventId !== "string" || object.sourceEventId.length)
|
|
261739
|
+
message.sourceEventId = String(object.sourceEventId);
|
|
261740
|
+
if (object.attemptCount != null)
|
|
261741
|
+
if (Number(object.attemptCount) !== 0)
|
|
261742
|
+
message.attemptCount = object.attemptCount >>> 0;
|
|
261743
|
+
if (object.failureReason !== 0 && (typeof object.failureReason !== "string" || $root.HieDeliveryFailureReason[object.failureReason] !== 0))
|
|
261744
|
+
switch (object.failureReason) {
|
|
261745
|
+
default:
|
|
261746
|
+
if (typeof object.failureReason === "number") {
|
|
261747
|
+
message.failureReason = object.failureReason;
|
|
261748
|
+
break;
|
|
261749
|
+
}
|
|
261750
|
+
break;
|
|
261751
|
+
case "HIE_DELIVERY_FAILURE_REASON_UNKNOWN":
|
|
261752
|
+
case 0:
|
|
261753
|
+
message.failureReason = 0;
|
|
261754
|
+
break;
|
|
261755
|
+
case "HIE_DELIVERY_FAILURE_REASON_BROKER_4XX":
|
|
261756
|
+
case 1:
|
|
261757
|
+
message.failureReason = 1;
|
|
261758
|
+
break;
|
|
261759
|
+
case "HIE_DELIVERY_FAILURE_REASON_BROKER_5XX":
|
|
261760
|
+
case 2:
|
|
261761
|
+
message.failureReason = 2;
|
|
261762
|
+
break;
|
|
261763
|
+
case "HIE_DELIVERY_FAILURE_REASON_CONSENT_INACTIVE":
|
|
261764
|
+
case 3:
|
|
261765
|
+
message.failureReason = 3;
|
|
261766
|
+
break;
|
|
261767
|
+
case "HIE_DELIVERY_FAILURE_REASON_PATIENT_NOT_REGISTERED":
|
|
261768
|
+
case 4:
|
|
261769
|
+
message.failureReason = 4;
|
|
261770
|
+
break;
|
|
261771
|
+
case "HIE_DELIVERY_FAILURE_REASON_S3_READ_FAILED":
|
|
261772
|
+
case 5:
|
|
261773
|
+
message.failureReason = 5;
|
|
261774
|
+
break;
|
|
261775
|
+
case "HIE_DELIVERY_FAILURE_REASON_BUNDLE_VALIDATION_FAILED":
|
|
261776
|
+
case 6:
|
|
261777
|
+
message.failureReason = 6;
|
|
261778
|
+
break;
|
|
261779
|
+
case "HIE_DELIVERY_FAILURE_REASON_RETRY_EXHAUSTED":
|
|
261780
|
+
case 7:
|
|
261781
|
+
message.failureReason = 7;
|
|
261782
|
+
break;
|
|
261783
|
+
}
|
|
261784
|
+
if (object.lastError != null)
|
|
261785
|
+
if (typeof object.lastError !== "string" || object.lastError.length)
|
|
261786
|
+
message.lastError = String(object.lastError);
|
|
261787
|
+
if (object.failedAt != null)
|
|
261788
|
+
if (typeof object.failedAt === "object" ? object.failedAt.low || object.failedAt.high : Number(object.failedAt) !== 0)
|
|
261789
|
+
if ($util.Long)
|
|
261790
|
+
(message.failedAt = $util.Long.fromValue(object.failedAt)).unsigned = true;
|
|
261791
|
+
else if (typeof object.failedAt === "string")
|
|
261792
|
+
message.failedAt = parseInt(object.failedAt, 10);
|
|
261793
|
+
else if (typeof object.failedAt === "number")
|
|
261794
|
+
message.failedAt = object.failedAt;
|
|
261795
|
+
else if (typeof object.failedAt === "object")
|
|
261796
|
+
message.failedAt = new $util.LongBits(object.failedAt.low >>> 0, object.failedAt.high >>> 0).toNumber(true);
|
|
261797
|
+
return message;
|
|
261798
|
+
};
|
|
261799
|
+
|
|
261800
|
+
/**
|
|
261801
|
+
* Creates a plain object from a HieDeliveryFailed message. Also converts values to other types if specified.
|
|
261802
|
+
* @function toObject
|
|
261803
|
+
* @memberof HieDeliveryFailed
|
|
261804
|
+
* @static
|
|
261805
|
+
* @param {HieDeliveryFailed} message HieDeliveryFailed
|
|
261806
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
261807
|
+
* @returns {Object.<string,*>} Plain object
|
|
261808
|
+
*/
|
|
261809
|
+
HieDeliveryFailed.toObject = function toObject(message, options) {
|
|
261810
|
+
if (!options)
|
|
261811
|
+
options = {};
|
|
261812
|
+
var object = {};
|
|
261813
|
+
if (options.defaults) {
|
|
261814
|
+
if ($util.Long) {
|
|
261815
|
+
var long = new $util.Long(0, 0, true);
|
|
261816
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
261817
|
+
} else
|
|
261818
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
261819
|
+
object.hsUserId = "";
|
|
261820
|
+
object.resourceType = options.enums === String ? "HIE_DELIVERY_RESOURCE_TYPE_UNKNOWN" : 0;
|
|
261821
|
+
object.sourceEvent = options.enums === String ? "HIE_DELIVERY_SOURCE_EVENT_UNKNOWN" : 0;
|
|
261822
|
+
object.sourceEventId = "";
|
|
261823
|
+
object.attemptCount = 0;
|
|
261824
|
+
object.failureReason = options.enums === String ? "HIE_DELIVERY_FAILURE_REASON_UNKNOWN" : 0;
|
|
261825
|
+
object.lastError = "";
|
|
261826
|
+
if ($util.Long) {
|
|
261827
|
+
var long = new $util.Long(0, 0, true);
|
|
261828
|
+
object.failedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
261829
|
+
} else
|
|
261830
|
+
object.failedAt = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
261831
|
+
}
|
|
261832
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
261833
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
261834
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
261835
|
+
else if (typeof message.timestamp === "number")
|
|
261836
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
261837
|
+
else
|
|
261838
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
261839
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
261840
|
+
object.hsUserId = message.hsUserId;
|
|
261841
|
+
if (message.resourceType != null && message.hasOwnProperty("resourceType"))
|
|
261842
|
+
object.resourceType = options.enums === String ? $root.HieDeliveryResourceType[message.resourceType] === undefined ? message.resourceType : $root.HieDeliveryResourceType[message.resourceType] : message.resourceType;
|
|
261843
|
+
if (message.sourceEvent != null && message.hasOwnProperty("sourceEvent"))
|
|
261844
|
+
object.sourceEvent = options.enums === String ? $root.HieDeliverySourceEvent[message.sourceEvent] === undefined ? message.sourceEvent : $root.HieDeliverySourceEvent[message.sourceEvent] : message.sourceEvent;
|
|
261845
|
+
if (message.sourceEventId != null && message.hasOwnProperty("sourceEventId"))
|
|
261846
|
+
object.sourceEventId = message.sourceEventId;
|
|
261847
|
+
if (message.attemptCount != null && message.hasOwnProperty("attemptCount"))
|
|
261848
|
+
object.attemptCount = message.attemptCount;
|
|
261849
|
+
if (message.failureReason != null && message.hasOwnProperty("failureReason"))
|
|
261850
|
+
object.failureReason = options.enums === String ? $root.HieDeliveryFailureReason[message.failureReason] === undefined ? message.failureReason : $root.HieDeliveryFailureReason[message.failureReason] : message.failureReason;
|
|
261851
|
+
if (message.lastError != null && message.hasOwnProperty("lastError"))
|
|
261852
|
+
object.lastError = message.lastError;
|
|
261853
|
+
if (message.failedAt != null && message.hasOwnProperty("failedAt"))
|
|
261854
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
261855
|
+
object.failedAt = typeof message.failedAt === "number" ? BigInt(message.failedAt) : $util.Long.fromBits(message.failedAt.low >>> 0, message.failedAt.high >>> 0, true).toBigInt();
|
|
261856
|
+
else if (typeof message.failedAt === "number")
|
|
261857
|
+
object.failedAt = options.longs === String ? String(message.failedAt) : message.failedAt;
|
|
261858
|
+
else
|
|
261859
|
+
object.failedAt = options.longs === String ? $util.Long.prototype.toString.call(message.failedAt) : options.longs === Number ? new $util.LongBits(message.failedAt.low >>> 0, message.failedAt.high >>> 0).toNumber(true) : message.failedAt;
|
|
261860
|
+
return object;
|
|
261861
|
+
};
|
|
261862
|
+
|
|
261863
|
+
/**
|
|
261864
|
+
* Converts this HieDeliveryFailed to JSON.
|
|
261865
|
+
* @function toJSON
|
|
261866
|
+
* @memberof HieDeliveryFailed
|
|
261867
|
+
* @instance
|
|
261868
|
+
* @returns {Object.<string,*>} JSON object
|
|
261869
|
+
*/
|
|
261870
|
+
HieDeliveryFailed.prototype.toJSON = function toJSON() {
|
|
261871
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
261872
|
+
};
|
|
261873
|
+
|
|
261874
|
+
/**
|
|
261875
|
+
* Gets the type url for HieDeliveryFailed
|
|
261876
|
+
* @function getTypeUrl
|
|
261877
|
+
* @memberof HieDeliveryFailed
|
|
261878
|
+
* @static
|
|
261879
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
261880
|
+
* @returns {string} The type url
|
|
261881
|
+
*/
|
|
261882
|
+
HieDeliveryFailed.getTypeUrl = function getTypeUrl(prefix) {
|
|
261883
|
+
if (prefix === undefined)
|
|
261884
|
+
prefix = "type.googleapis.com";
|
|
261885
|
+
return prefix + "/HieDeliveryFailed";
|
|
261886
|
+
};
|
|
261887
|
+
|
|
261888
|
+
return HieDeliveryFailed;
|
|
261889
|
+
})();
|
|
261890
|
+
|
|
260682
261891
|
$root.InteractiveJournalingParticipant = (function() {
|
|
260683
261892
|
|
|
260684
261893
|
/**
|