@headspace/protos-events 1.737.0 → 1.739.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +537 -7
  2. package/lib/index.js +1928 -16
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -167768,22 +167768,6 @@ $root.clinical = (function() {
167768
167768
  return Clinician;
167769
167769
  })();
167770
167770
 
167771
- /**
167772
- * ClinicianType enum.
167773
- * @name clinical.ClinicianType
167774
- * @enum {string}
167775
- * @property {number} CLINICIAN_TYPE_UNKNOWN=0 CLINICIAN_TYPE_UNKNOWN value
167776
- * @property {number} CLINICIAN_TYPE_THERAPIST=1 CLINICIAN_TYPE_THERAPIST value
167777
- * @property {number} CLINICIAN_TYPE_PSYCHIATRIST=2 CLINICIAN_TYPE_PSYCHIATRIST value
167778
- */
167779
- clinical.ClinicianType = (function() {
167780
- var valuesById = {}, values = Object.create(valuesById);
167781
- values[valuesById[0] = "CLINICIAN_TYPE_UNKNOWN"] = 0;
167782
- values[valuesById[1] = "CLINICIAN_TYPE_THERAPIST"] = 1;
167783
- values[valuesById[2] = "CLINICIAN_TYPE_PSYCHIATRIST"] = 2;
167784
- return values;
167785
- })();
167786
-
167787
167771
  /**
167788
167772
  * ClinicianStatus enum.
167789
167773
  * @name clinical.ClinicianStatus
@@ -171611,6 +171595,106 @@ $root.clinical = (function() {
171611
171595
  return values;
171612
171596
  })();
171613
171597
 
171598
+ /**
171599
+ * ClinicianType enum.
171600
+ * @name clinical.ClinicianType
171601
+ * @enum {string}
171602
+ * @property {number} CLINICIAN_TYPE_UNKNOWN=0 CLINICIAN_TYPE_UNKNOWN value
171603
+ * @property {number} CLINICIAN_TYPE_THERAPIST=1 CLINICIAN_TYPE_THERAPIST value
171604
+ * @property {number} CLINICIAN_TYPE_PSYCHIATRIST=2 CLINICIAN_TYPE_PSYCHIATRIST value
171605
+ */
171606
+ clinical.ClinicianType = (function() {
171607
+ var valuesById = {}, values = Object.create(valuesById);
171608
+ values[valuesById[0] = "CLINICIAN_TYPE_UNKNOWN"] = 0;
171609
+ values[valuesById[1] = "CLINICIAN_TYPE_THERAPIST"] = 1;
171610
+ values[valuesById[2] = "CLINICIAN_TYPE_PSYCHIATRIST"] = 2;
171611
+ return values;
171612
+ })();
171613
+
171614
+ /**
171615
+ * SyncStatus enum.
171616
+ * @name clinical.SyncStatus
171617
+ * @enum {string}
171618
+ * @property {number} SYNC_STATUS__UNKNOWN=0 SYNC_STATUS__UNKNOWN value
171619
+ * @property {number} SYNC_STATUS_SYNCED=1 SYNC_STATUS_SYNCED value
171620
+ * @property {number} SYNC_STATUS_PENDING=2 SYNC_STATUS_PENDING value
171621
+ * @property {number} SYNC_STATUS_FAILED=3 SYNC_STATUS_FAILED value
171622
+ */
171623
+ clinical.SyncStatus = (function() {
171624
+ var valuesById = {}, values = Object.create(valuesById);
171625
+ values[valuesById[0] = "SYNC_STATUS__UNKNOWN"] = 0;
171626
+ values[valuesById[1] = "SYNC_STATUS_SYNCED"] = 1;
171627
+ values[valuesById[2] = "SYNC_STATUS_PENDING"] = 2;
171628
+ values[valuesById[3] = "SYNC_STATUS_FAILED"] = 3;
171629
+ return values;
171630
+ })();
171631
+
171632
+ /**
171633
+ * ClinicalPartnerAppointmentStatus enum.
171634
+ * @name clinical.ClinicalPartnerAppointmentStatus
171635
+ * @enum {string}
171636
+ * @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_UNKNOWN=0 CLINICAL_PARTNER_APPOINTMENT_STATUS_UNKNOWN value
171637
+ * @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_TENTATIVE=1 CLINICAL_PARTNER_APPOINTMENT_STATUS_TENTATIVE value
171638
+ * @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_SCHEDULED=2 CLINICAL_PARTNER_APPOINTMENT_STATUS_SCHEDULED value
171639
+ * @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_COMPLETED=3 CLINICAL_PARTNER_APPOINTMENT_STATUS_COMPLETED value
171640
+ * @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_CANCELLED=4 CLINICAL_PARTNER_APPOINTMENT_STATUS_CANCELLED value
171641
+ * @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_RESCHEDULED=5 CLINICAL_PARTNER_APPOINTMENT_STATUS_RESCHEDULED value
171642
+ * @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_MEMBER_NO_SHOW=6 CLINICAL_PARTNER_APPOINTMENT_STATUS_MEMBER_NO_SHOW value
171643
+ * @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_LATE_CANCELLED=7 CLINICAL_PARTNER_APPOINTMENT_STATUS_LATE_CANCELLED value
171644
+ * @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_RESCHEDULED=8 CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_RESCHEDULED value
171645
+ * @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_NO_SHOW=9 CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_NO_SHOW value
171646
+ * @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_CANCELLED=10 CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_CANCELLED value
171647
+ * @property {number} CLINICAL_PARTNER_APPOINTMENT_STATUS_PENDING=11 CLINICAL_PARTNER_APPOINTMENT_STATUS_PENDING value
171648
+ */
171649
+ clinical.ClinicalPartnerAppointmentStatus = (function() {
171650
+ var valuesById = {}, values = Object.create(valuesById);
171651
+ values[valuesById[0] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_UNKNOWN"] = 0;
171652
+ values[valuesById[1] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_TENTATIVE"] = 1;
171653
+ values[valuesById[2] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_SCHEDULED"] = 2;
171654
+ values[valuesById[3] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_COMPLETED"] = 3;
171655
+ values[valuesById[4] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_CANCELLED"] = 4;
171656
+ values[valuesById[5] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_RESCHEDULED"] = 5;
171657
+ values[valuesById[6] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_MEMBER_NO_SHOW"] = 6;
171658
+ values[valuesById[7] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_LATE_CANCELLED"] = 7;
171659
+ values[valuesById[8] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_RESCHEDULED"] = 8;
171660
+ values[valuesById[9] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_NO_SHOW"] = 9;
171661
+ values[valuesById[10] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_CANCELLED"] = 10;
171662
+ values[valuesById[11] = "CLINICAL_PARTNER_APPOINTMENT_STATUS_PENDING"] = 11;
171663
+ return values;
171664
+ })();
171665
+
171666
+ /**
171667
+ * ClinicalPartnerAppointmentType enum.
171668
+ * @name clinical.ClinicalPartnerAppointmentType
171669
+ * @enum {string}
171670
+ * @property {number} CLINICAL_PARTNER_APPOINTMENT_TYPE_UNKNOWN=0 CLINICAL_PARTNER_APPOINTMENT_TYPE_UNKNOWN value
171671
+ * @property {number} CLINICAL_PARTNER_APPOINTMENT_TYPE_THERAPY=1 CLINICAL_PARTNER_APPOINTMENT_TYPE_THERAPY value
171672
+ * @property {number} CLINICAL_PARTNER_APPOINTMENT_TYPE_PSYCHIATRY=2 CLINICAL_PARTNER_APPOINTMENT_TYPE_PSYCHIATRY value
171673
+ */
171674
+ clinical.ClinicalPartnerAppointmentType = (function() {
171675
+ var valuesById = {}, values = Object.create(valuesById);
171676
+ values[valuesById[0] = "CLINICAL_PARTNER_APPOINTMENT_TYPE_UNKNOWN"] = 0;
171677
+ values[valuesById[1] = "CLINICAL_PARTNER_APPOINTMENT_TYPE_THERAPY"] = 1;
171678
+ values[valuesById[2] = "CLINICAL_PARTNER_APPOINTMENT_TYPE_PSYCHIATRY"] = 2;
171679
+ return values;
171680
+ })();
171681
+
171682
+ /**
171683
+ * ClinicalPartnerAppointmentSessionType enum.
171684
+ * @name clinical.ClinicalPartnerAppointmentSessionType
171685
+ * @enum {string}
171686
+ * @property {number} CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_UNKNOWN=0 CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_UNKNOWN value
171687
+ * @property {number} CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_INTAKE=1 CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_INTAKE value
171688
+ * @property {number} CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_PROGRESS=2 CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_PROGRESS value
171689
+ */
171690
+ clinical.ClinicalPartnerAppointmentSessionType = (function() {
171691
+ var valuesById = {}, values = Object.create(valuesById);
171692
+ values[valuesById[0] = "CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_UNKNOWN"] = 0;
171693
+ values[valuesById[1] = "CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_INTAKE"] = 1;
171694
+ values[valuesById[2] = "CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_PROGRESS"] = 2;
171695
+ return values;
171696
+ })();
171697
+
171614
171698
  clinical.GuardianRelationship = (function() {
171615
171699
 
171616
171700
  /**
@@ -171915,6 +171999,1834 @@ $root.clinical = (function() {
171915
171999
  return GuardianRelationship;
171916
172000
  })();
171917
172001
 
172002
+ clinical.PartnerAppointmentCreated = (function() {
172003
+
172004
+ /**
172005
+ * Properties of a PartnerAppointmentCreated.
172006
+ * @memberof clinical
172007
+ * @interface IPartnerAppointmentCreated
172008
+ * @property {string|null} [id] PartnerAppointmentCreated id
172009
+ * @property {clinical.ClinicalPartnerSource|null} [partnerSource] PartnerAppointmentCreated partnerSource
172010
+ * @property {string|null} [externalId] PartnerAppointmentCreated externalId
172011
+ * @property {string|null} [partnerProviderId] PartnerAppointmentCreated partnerProviderId
172012
+ * @property {number|Long|null} [gingerMemberId] PartnerAppointmentCreated gingerMemberId
172013
+ * @property {clinical.ClinicalPartnerAppointmentStatus|null} [appointmentStatus] PartnerAppointmentCreated appointmentStatus
172014
+ * @property {number|Long|null} [appointmentStartTime] PartnerAppointmentCreated appointmentStartTime
172015
+ * @property {number|Long|null} [appointmentEndTime] PartnerAppointmentCreated appointmentEndTime
172016
+ * @property {number|null} [durationMinutes] PartnerAppointmentCreated durationMinutes
172017
+ * @property {clinical.ClinicalPartnerAppointmentLocationType|null} [locationType] PartnerAppointmentCreated locationType
172018
+ * @property {clinical.ClinicalPartnerAppointmentType|null} [appointmentType] PartnerAppointmentCreated appointmentType
172019
+ * @property {clinical.ClinicalPartnerAppointmentSessionType|null} [sessionType] PartnerAppointmentCreated sessionType
172020
+ * @property {boolean|null} [covered] PartnerAppointmentCreated covered
172021
+ * @property {number|Long|null} [timeCreated] PartnerAppointmentCreated timeCreated
172022
+ * @property {number|Long|null} [timeUpdated] PartnerAppointmentCreated timeUpdated
172023
+ */
172024
+
172025
+ /**
172026
+ * Constructs a new PartnerAppointmentCreated.
172027
+ * @memberof clinical
172028
+ * @classdesc Represents a PartnerAppointmentCreated.
172029
+ * @implements IPartnerAppointmentCreated
172030
+ * @constructor
172031
+ * @param {clinical.IPartnerAppointmentCreated=} [properties] Properties to set
172032
+ */
172033
+ function PartnerAppointmentCreated(properties) {
172034
+ if (properties)
172035
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
172036
+ if (properties[keys[i]] != null)
172037
+ this[keys[i]] = properties[keys[i]];
172038
+ }
172039
+
172040
+ /**
172041
+ * PartnerAppointmentCreated id.
172042
+ * @member {string} id
172043
+ * @memberof clinical.PartnerAppointmentCreated
172044
+ * @instance
172045
+ */
172046
+ PartnerAppointmentCreated.prototype.id = "";
172047
+
172048
+ /**
172049
+ * PartnerAppointmentCreated partnerSource.
172050
+ * @member {clinical.ClinicalPartnerSource} partnerSource
172051
+ * @memberof clinical.PartnerAppointmentCreated
172052
+ * @instance
172053
+ */
172054
+ PartnerAppointmentCreated.prototype.partnerSource = 0;
172055
+
172056
+ /**
172057
+ * PartnerAppointmentCreated externalId.
172058
+ * @member {string} externalId
172059
+ * @memberof clinical.PartnerAppointmentCreated
172060
+ * @instance
172061
+ */
172062
+ PartnerAppointmentCreated.prototype.externalId = "";
172063
+
172064
+ /**
172065
+ * PartnerAppointmentCreated partnerProviderId.
172066
+ * @member {string} partnerProviderId
172067
+ * @memberof clinical.PartnerAppointmentCreated
172068
+ * @instance
172069
+ */
172070
+ PartnerAppointmentCreated.prototype.partnerProviderId = "";
172071
+
172072
+ /**
172073
+ * PartnerAppointmentCreated gingerMemberId.
172074
+ * @member {number|Long} gingerMemberId
172075
+ * @memberof clinical.PartnerAppointmentCreated
172076
+ * @instance
172077
+ */
172078
+ PartnerAppointmentCreated.prototype.gingerMemberId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
172079
+
172080
+ /**
172081
+ * PartnerAppointmentCreated appointmentStatus.
172082
+ * @member {clinical.ClinicalPartnerAppointmentStatus} appointmentStatus
172083
+ * @memberof clinical.PartnerAppointmentCreated
172084
+ * @instance
172085
+ */
172086
+ PartnerAppointmentCreated.prototype.appointmentStatus = 0;
172087
+
172088
+ /**
172089
+ * PartnerAppointmentCreated appointmentStartTime.
172090
+ * @member {number|Long} appointmentStartTime
172091
+ * @memberof clinical.PartnerAppointmentCreated
172092
+ * @instance
172093
+ */
172094
+ PartnerAppointmentCreated.prototype.appointmentStartTime = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
172095
+
172096
+ /**
172097
+ * PartnerAppointmentCreated appointmentEndTime.
172098
+ * @member {number|Long} appointmentEndTime
172099
+ * @memberof clinical.PartnerAppointmentCreated
172100
+ * @instance
172101
+ */
172102
+ PartnerAppointmentCreated.prototype.appointmentEndTime = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
172103
+
172104
+ /**
172105
+ * PartnerAppointmentCreated durationMinutes.
172106
+ * @member {number} durationMinutes
172107
+ * @memberof clinical.PartnerAppointmentCreated
172108
+ * @instance
172109
+ */
172110
+ PartnerAppointmentCreated.prototype.durationMinutes = 0;
172111
+
172112
+ /**
172113
+ * PartnerAppointmentCreated locationType.
172114
+ * @member {clinical.ClinicalPartnerAppointmentLocationType} locationType
172115
+ * @memberof clinical.PartnerAppointmentCreated
172116
+ * @instance
172117
+ */
172118
+ PartnerAppointmentCreated.prototype.locationType = 0;
172119
+
172120
+ /**
172121
+ * PartnerAppointmentCreated appointmentType.
172122
+ * @member {clinical.ClinicalPartnerAppointmentType} appointmentType
172123
+ * @memberof clinical.PartnerAppointmentCreated
172124
+ * @instance
172125
+ */
172126
+ PartnerAppointmentCreated.prototype.appointmentType = 0;
172127
+
172128
+ /**
172129
+ * PartnerAppointmentCreated sessionType.
172130
+ * @member {clinical.ClinicalPartnerAppointmentSessionType} sessionType
172131
+ * @memberof clinical.PartnerAppointmentCreated
172132
+ * @instance
172133
+ */
172134
+ PartnerAppointmentCreated.prototype.sessionType = 0;
172135
+
172136
+ /**
172137
+ * PartnerAppointmentCreated covered.
172138
+ * @member {boolean} covered
172139
+ * @memberof clinical.PartnerAppointmentCreated
172140
+ * @instance
172141
+ */
172142
+ PartnerAppointmentCreated.prototype.covered = false;
172143
+
172144
+ /**
172145
+ * PartnerAppointmentCreated timeCreated.
172146
+ * @member {number|Long} timeCreated
172147
+ * @memberof clinical.PartnerAppointmentCreated
172148
+ * @instance
172149
+ */
172150
+ PartnerAppointmentCreated.prototype.timeCreated = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
172151
+
172152
+ /**
172153
+ * PartnerAppointmentCreated timeUpdated.
172154
+ * @member {number|Long} timeUpdated
172155
+ * @memberof clinical.PartnerAppointmentCreated
172156
+ * @instance
172157
+ */
172158
+ PartnerAppointmentCreated.prototype.timeUpdated = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
172159
+
172160
+ /**
172161
+ * Creates a new PartnerAppointmentCreated instance using the specified properties.
172162
+ * @function create
172163
+ * @memberof clinical.PartnerAppointmentCreated
172164
+ * @static
172165
+ * @param {clinical.IPartnerAppointmentCreated=} [properties] Properties to set
172166
+ * @returns {clinical.PartnerAppointmentCreated} PartnerAppointmentCreated instance
172167
+ */
172168
+ PartnerAppointmentCreated.create = function create(properties) {
172169
+ return new PartnerAppointmentCreated(properties);
172170
+ };
172171
+
172172
+ /**
172173
+ * Encodes the specified PartnerAppointmentCreated message. Does not implicitly {@link clinical.PartnerAppointmentCreated.verify|verify} messages.
172174
+ * @function encode
172175
+ * @memberof clinical.PartnerAppointmentCreated
172176
+ * @static
172177
+ * @param {clinical.IPartnerAppointmentCreated} message PartnerAppointmentCreated message or plain object to encode
172178
+ * @param {$protobuf.Writer} [writer] Writer to encode to
172179
+ * @returns {$protobuf.Writer} Writer
172180
+ */
172181
+ PartnerAppointmentCreated.encode = function encode(message, writer) {
172182
+ if (!writer)
172183
+ writer = $Writer.create();
172184
+ if (message.id != null && message.hasOwnProperty("id"))
172185
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
172186
+ if (message.partnerSource != null && message.hasOwnProperty("partnerSource"))
172187
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.partnerSource);
172188
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
172189
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.externalId);
172190
+ if (message.partnerProviderId != null && message.hasOwnProperty("partnerProviderId"))
172191
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.partnerProviderId);
172192
+ if (message.gingerMemberId != null && message.hasOwnProperty("gingerMemberId"))
172193
+ writer.uint32(/* id 5, wireType 0 =*/40).int64(message.gingerMemberId);
172194
+ if (message.appointmentStatus != null && message.hasOwnProperty("appointmentStatus"))
172195
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.appointmentStatus);
172196
+ if (message.appointmentStartTime != null && message.hasOwnProperty("appointmentStartTime"))
172197
+ writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.appointmentStartTime);
172198
+ if (message.appointmentEndTime != null && message.hasOwnProperty("appointmentEndTime"))
172199
+ writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.appointmentEndTime);
172200
+ if (message.durationMinutes != null && message.hasOwnProperty("durationMinutes"))
172201
+ writer.uint32(/* id 9, wireType 0 =*/72).int32(message.durationMinutes);
172202
+ if (message.locationType != null && message.hasOwnProperty("locationType"))
172203
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.locationType);
172204
+ if (message.appointmentType != null && message.hasOwnProperty("appointmentType"))
172205
+ writer.uint32(/* id 11, wireType 0 =*/88).int32(message.appointmentType);
172206
+ if (message.sessionType != null && message.hasOwnProperty("sessionType"))
172207
+ writer.uint32(/* id 12, wireType 0 =*/96).int32(message.sessionType);
172208
+ if (message.covered != null && message.hasOwnProperty("covered"))
172209
+ writer.uint32(/* id 13, wireType 0 =*/104).bool(message.covered);
172210
+ if (message.timeCreated != null && message.hasOwnProperty("timeCreated"))
172211
+ writer.uint32(/* id 14, wireType 0 =*/112).uint64(message.timeCreated);
172212
+ if (message.timeUpdated != null && message.hasOwnProperty("timeUpdated"))
172213
+ writer.uint32(/* id 15, wireType 0 =*/120).uint64(message.timeUpdated);
172214
+ return writer;
172215
+ };
172216
+
172217
+ /**
172218
+ * Encodes the specified PartnerAppointmentCreated message, length delimited. Does not implicitly {@link clinical.PartnerAppointmentCreated.verify|verify} messages.
172219
+ * @function encodeDelimited
172220
+ * @memberof clinical.PartnerAppointmentCreated
172221
+ * @static
172222
+ * @param {clinical.IPartnerAppointmentCreated} message PartnerAppointmentCreated message or plain object to encode
172223
+ * @param {$protobuf.Writer} [writer] Writer to encode to
172224
+ * @returns {$protobuf.Writer} Writer
172225
+ */
172226
+ PartnerAppointmentCreated.encodeDelimited = function encodeDelimited(message, writer) {
172227
+ return this.encode(message, writer).ldelim();
172228
+ };
172229
+
172230
+ /**
172231
+ * Decodes a PartnerAppointmentCreated message from the specified reader or buffer.
172232
+ * @function decode
172233
+ * @memberof clinical.PartnerAppointmentCreated
172234
+ * @static
172235
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
172236
+ * @param {number} [length] Message length if known beforehand
172237
+ * @returns {clinical.PartnerAppointmentCreated} PartnerAppointmentCreated
172238
+ * @throws {Error} If the payload is not a reader or valid buffer
172239
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
172240
+ */
172241
+ PartnerAppointmentCreated.decode = function decode(reader, length) {
172242
+ if (!(reader instanceof $Reader))
172243
+ reader = $Reader.create(reader);
172244
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.clinical.PartnerAppointmentCreated();
172245
+ while (reader.pos < end) {
172246
+ var tag = reader.uint32();
172247
+ switch (tag >>> 3) {
172248
+ case 1:
172249
+ message.id = reader.string();
172250
+ break;
172251
+ case 2:
172252
+ message.partnerSource = reader.int32();
172253
+ break;
172254
+ case 3:
172255
+ message.externalId = reader.string();
172256
+ break;
172257
+ case 4:
172258
+ message.partnerProviderId = reader.string();
172259
+ break;
172260
+ case 5:
172261
+ message.gingerMemberId = reader.int64();
172262
+ break;
172263
+ case 6:
172264
+ message.appointmentStatus = reader.int32();
172265
+ break;
172266
+ case 7:
172267
+ message.appointmentStartTime = reader.uint64();
172268
+ break;
172269
+ case 8:
172270
+ message.appointmentEndTime = reader.uint64();
172271
+ break;
172272
+ case 9:
172273
+ message.durationMinutes = reader.int32();
172274
+ break;
172275
+ case 10:
172276
+ message.locationType = reader.int32();
172277
+ break;
172278
+ case 11:
172279
+ message.appointmentType = reader.int32();
172280
+ break;
172281
+ case 12:
172282
+ message.sessionType = reader.int32();
172283
+ break;
172284
+ case 13:
172285
+ message.covered = reader.bool();
172286
+ break;
172287
+ case 14:
172288
+ message.timeCreated = reader.uint64();
172289
+ break;
172290
+ case 15:
172291
+ message.timeUpdated = reader.uint64();
172292
+ break;
172293
+ default:
172294
+ reader.skipType(tag & 7);
172295
+ break;
172296
+ }
172297
+ }
172298
+ return message;
172299
+ };
172300
+
172301
+ /**
172302
+ * Decodes a PartnerAppointmentCreated message from the specified reader or buffer, length delimited.
172303
+ * @function decodeDelimited
172304
+ * @memberof clinical.PartnerAppointmentCreated
172305
+ * @static
172306
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
172307
+ * @returns {clinical.PartnerAppointmentCreated} PartnerAppointmentCreated
172308
+ * @throws {Error} If the payload is not a reader or valid buffer
172309
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
172310
+ */
172311
+ PartnerAppointmentCreated.decodeDelimited = function decodeDelimited(reader) {
172312
+ if (!(reader instanceof $Reader))
172313
+ reader = new $Reader(reader);
172314
+ return this.decode(reader, reader.uint32());
172315
+ };
172316
+
172317
+ /**
172318
+ * Verifies a PartnerAppointmentCreated message.
172319
+ * @function verify
172320
+ * @memberof clinical.PartnerAppointmentCreated
172321
+ * @static
172322
+ * @param {Object.<string,*>} message Plain object to verify
172323
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
172324
+ */
172325
+ PartnerAppointmentCreated.verify = function verify(message) {
172326
+ if (typeof message !== "object" || message === null)
172327
+ return "object expected";
172328
+ if (message.id != null && message.hasOwnProperty("id"))
172329
+ if (!$util.isString(message.id))
172330
+ return "id: string expected";
172331
+ if (message.partnerSource != null && message.hasOwnProperty("partnerSource"))
172332
+ switch (message.partnerSource) {
172333
+ default:
172334
+ return "partnerSource: enum value expected";
172335
+ case 0:
172336
+ case 1:
172337
+ break;
172338
+ }
172339
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
172340
+ if (!$util.isString(message.externalId))
172341
+ return "externalId: string expected";
172342
+ if (message.partnerProviderId != null && message.hasOwnProperty("partnerProviderId"))
172343
+ if (!$util.isString(message.partnerProviderId))
172344
+ return "partnerProviderId: string expected";
172345
+ if (message.gingerMemberId != null && message.hasOwnProperty("gingerMemberId"))
172346
+ if (!$util.isInteger(message.gingerMemberId) && !(message.gingerMemberId && $util.isInteger(message.gingerMemberId.low) && $util.isInteger(message.gingerMemberId.high)))
172347
+ return "gingerMemberId: integer|Long expected";
172348
+ if (message.appointmentStatus != null && message.hasOwnProperty("appointmentStatus"))
172349
+ switch (message.appointmentStatus) {
172350
+ default:
172351
+ return "appointmentStatus: enum value expected";
172352
+ case 0:
172353
+ case 1:
172354
+ case 2:
172355
+ case 3:
172356
+ case 4:
172357
+ case 5:
172358
+ case 6:
172359
+ case 7:
172360
+ case 8:
172361
+ case 9:
172362
+ case 10:
172363
+ case 11:
172364
+ break;
172365
+ }
172366
+ if (message.appointmentStartTime != null && message.hasOwnProperty("appointmentStartTime"))
172367
+ if (!$util.isInteger(message.appointmentStartTime) && !(message.appointmentStartTime && $util.isInteger(message.appointmentStartTime.low) && $util.isInteger(message.appointmentStartTime.high)))
172368
+ return "appointmentStartTime: integer|Long expected";
172369
+ if (message.appointmentEndTime != null && message.hasOwnProperty("appointmentEndTime"))
172370
+ if (!$util.isInteger(message.appointmentEndTime) && !(message.appointmentEndTime && $util.isInteger(message.appointmentEndTime.low) && $util.isInteger(message.appointmentEndTime.high)))
172371
+ return "appointmentEndTime: integer|Long expected";
172372
+ if (message.durationMinutes != null && message.hasOwnProperty("durationMinutes"))
172373
+ if (!$util.isInteger(message.durationMinutes))
172374
+ return "durationMinutes: integer expected";
172375
+ if (message.locationType != null && message.hasOwnProperty("locationType"))
172376
+ switch (message.locationType) {
172377
+ default:
172378
+ return "locationType: enum value expected";
172379
+ case 0:
172380
+ case 1:
172381
+ case 2:
172382
+ break;
172383
+ }
172384
+ if (message.appointmentType != null && message.hasOwnProperty("appointmentType"))
172385
+ switch (message.appointmentType) {
172386
+ default:
172387
+ return "appointmentType: enum value expected";
172388
+ case 0:
172389
+ case 1:
172390
+ case 2:
172391
+ break;
172392
+ }
172393
+ if (message.sessionType != null && message.hasOwnProperty("sessionType"))
172394
+ switch (message.sessionType) {
172395
+ default:
172396
+ return "sessionType: enum value expected";
172397
+ case 0:
172398
+ case 1:
172399
+ case 2:
172400
+ break;
172401
+ }
172402
+ if (message.covered != null && message.hasOwnProperty("covered"))
172403
+ if (typeof message.covered !== "boolean")
172404
+ return "covered: boolean expected";
172405
+ if (message.timeCreated != null && message.hasOwnProperty("timeCreated"))
172406
+ if (!$util.isInteger(message.timeCreated) && !(message.timeCreated && $util.isInteger(message.timeCreated.low) && $util.isInteger(message.timeCreated.high)))
172407
+ return "timeCreated: integer|Long expected";
172408
+ if (message.timeUpdated != null && message.hasOwnProperty("timeUpdated"))
172409
+ if (!$util.isInteger(message.timeUpdated) && !(message.timeUpdated && $util.isInteger(message.timeUpdated.low) && $util.isInteger(message.timeUpdated.high)))
172410
+ return "timeUpdated: integer|Long expected";
172411
+ return null;
172412
+ };
172413
+
172414
+ /**
172415
+ * Creates a PartnerAppointmentCreated message from a plain object. Also converts values to their respective internal types.
172416
+ * @function fromObject
172417
+ * @memberof clinical.PartnerAppointmentCreated
172418
+ * @static
172419
+ * @param {Object.<string,*>} object Plain object
172420
+ * @returns {clinical.PartnerAppointmentCreated} PartnerAppointmentCreated
172421
+ */
172422
+ PartnerAppointmentCreated.fromObject = function fromObject(object) {
172423
+ if (object instanceof $root.clinical.PartnerAppointmentCreated)
172424
+ return object;
172425
+ var message = new $root.clinical.PartnerAppointmentCreated();
172426
+ if (object.id != null)
172427
+ message.id = String(object.id);
172428
+ switch (object.partnerSource) {
172429
+ case "CLINICAL_PARTNER_SOURCE_UNKNOWN":
172430
+ case 0:
172431
+ message.partnerSource = 0;
172432
+ break;
172433
+ case "CLINICAL_PARTNER_SOURCE_SONDERMIND":
172434
+ case 1:
172435
+ message.partnerSource = 1;
172436
+ break;
172437
+ }
172438
+ if (object.externalId != null)
172439
+ message.externalId = String(object.externalId);
172440
+ if (object.partnerProviderId != null)
172441
+ message.partnerProviderId = String(object.partnerProviderId);
172442
+ if (object.gingerMemberId != null)
172443
+ if ($util.Long)
172444
+ (message.gingerMemberId = $util.Long.fromValue(object.gingerMemberId)).unsigned = false;
172445
+ else if (typeof object.gingerMemberId === "string")
172446
+ message.gingerMemberId = parseInt(object.gingerMemberId, 10);
172447
+ else if (typeof object.gingerMemberId === "number")
172448
+ message.gingerMemberId = object.gingerMemberId;
172449
+ else if (typeof object.gingerMemberId === "object")
172450
+ message.gingerMemberId = new $util.LongBits(object.gingerMemberId.low >>> 0, object.gingerMemberId.high >>> 0).toNumber();
172451
+ switch (object.appointmentStatus) {
172452
+ case "CLINICAL_PARTNER_APPOINTMENT_STATUS_UNKNOWN":
172453
+ case 0:
172454
+ message.appointmentStatus = 0;
172455
+ break;
172456
+ case "CLINICAL_PARTNER_APPOINTMENT_STATUS_TENTATIVE":
172457
+ case 1:
172458
+ message.appointmentStatus = 1;
172459
+ break;
172460
+ case "CLINICAL_PARTNER_APPOINTMENT_STATUS_SCHEDULED":
172461
+ case 2:
172462
+ message.appointmentStatus = 2;
172463
+ break;
172464
+ case "CLINICAL_PARTNER_APPOINTMENT_STATUS_COMPLETED":
172465
+ case 3:
172466
+ message.appointmentStatus = 3;
172467
+ break;
172468
+ case "CLINICAL_PARTNER_APPOINTMENT_STATUS_CANCELLED":
172469
+ case 4:
172470
+ message.appointmentStatus = 4;
172471
+ break;
172472
+ case "CLINICAL_PARTNER_APPOINTMENT_STATUS_RESCHEDULED":
172473
+ case 5:
172474
+ message.appointmentStatus = 5;
172475
+ break;
172476
+ case "CLINICAL_PARTNER_APPOINTMENT_STATUS_MEMBER_NO_SHOW":
172477
+ case 6:
172478
+ message.appointmentStatus = 6;
172479
+ break;
172480
+ case "CLINICAL_PARTNER_APPOINTMENT_STATUS_LATE_CANCELLED":
172481
+ case 7:
172482
+ message.appointmentStatus = 7;
172483
+ break;
172484
+ case "CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_RESCHEDULED":
172485
+ case 8:
172486
+ message.appointmentStatus = 8;
172487
+ break;
172488
+ case "CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_NO_SHOW":
172489
+ case 9:
172490
+ message.appointmentStatus = 9;
172491
+ break;
172492
+ case "CLINICAL_PARTNER_APPOINTMENT_STATUS_PROVIDER_CANCELLED":
172493
+ case 10:
172494
+ message.appointmentStatus = 10;
172495
+ break;
172496
+ case "CLINICAL_PARTNER_APPOINTMENT_STATUS_PENDING":
172497
+ case 11:
172498
+ message.appointmentStatus = 11;
172499
+ break;
172500
+ }
172501
+ if (object.appointmentStartTime != null)
172502
+ if ($util.Long)
172503
+ (message.appointmentStartTime = $util.Long.fromValue(object.appointmentStartTime)).unsigned = true;
172504
+ else if (typeof object.appointmentStartTime === "string")
172505
+ message.appointmentStartTime = parseInt(object.appointmentStartTime, 10);
172506
+ else if (typeof object.appointmentStartTime === "number")
172507
+ message.appointmentStartTime = object.appointmentStartTime;
172508
+ else if (typeof object.appointmentStartTime === "object")
172509
+ message.appointmentStartTime = new $util.LongBits(object.appointmentStartTime.low >>> 0, object.appointmentStartTime.high >>> 0).toNumber(true);
172510
+ if (object.appointmentEndTime != null)
172511
+ if ($util.Long)
172512
+ (message.appointmentEndTime = $util.Long.fromValue(object.appointmentEndTime)).unsigned = true;
172513
+ else if (typeof object.appointmentEndTime === "string")
172514
+ message.appointmentEndTime = parseInt(object.appointmentEndTime, 10);
172515
+ else if (typeof object.appointmentEndTime === "number")
172516
+ message.appointmentEndTime = object.appointmentEndTime;
172517
+ else if (typeof object.appointmentEndTime === "object")
172518
+ message.appointmentEndTime = new $util.LongBits(object.appointmentEndTime.low >>> 0, object.appointmentEndTime.high >>> 0).toNumber(true);
172519
+ if (object.durationMinutes != null)
172520
+ message.durationMinutes = object.durationMinutes | 0;
172521
+ switch (object.locationType) {
172522
+ case "CLINICAL_PARTNER_APPOINTMENT_LOCATION_TYPE_UNKNOWN":
172523
+ case 0:
172524
+ message.locationType = 0;
172525
+ break;
172526
+ case "CLINICAL_PARTNER_APPOINTMENT_LOCATION_TYPE_TELEMEDICINE":
172527
+ case 1:
172528
+ message.locationType = 1;
172529
+ break;
172530
+ case "CLINICAL_PARTNER_APPOINTMENT_LOCATION_TYPE_IN_PERSON":
172531
+ case 2:
172532
+ message.locationType = 2;
172533
+ break;
172534
+ }
172535
+ switch (object.appointmentType) {
172536
+ case "CLINICAL_PARTNER_APPOINTMENT_TYPE_UNKNOWN":
172537
+ case 0:
172538
+ message.appointmentType = 0;
172539
+ break;
172540
+ case "CLINICAL_PARTNER_APPOINTMENT_TYPE_THERAPY":
172541
+ case 1:
172542
+ message.appointmentType = 1;
172543
+ break;
172544
+ case "CLINICAL_PARTNER_APPOINTMENT_TYPE_PSYCHIATRY":
172545
+ case 2:
172546
+ message.appointmentType = 2;
172547
+ break;
172548
+ }
172549
+ switch (object.sessionType) {
172550
+ case "CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_UNKNOWN":
172551
+ case 0:
172552
+ message.sessionType = 0;
172553
+ break;
172554
+ case "CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_INTAKE":
172555
+ case 1:
172556
+ message.sessionType = 1;
172557
+ break;
172558
+ case "CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_PROGRESS":
172559
+ case 2:
172560
+ message.sessionType = 2;
172561
+ break;
172562
+ }
172563
+ if (object.covered != null)
172564
+ message.covered = Boolean(object.covered);
172565
+ if (object.timeCreated != null)
172566
+ if ($util.Long)
172567
+ (message.timeCreated = $util.Long.fromValue(object.timeCreated)).unsigned = true;
172568
+ else if (typeof object.timeCreated === "string")
172569
+ message.timeCreated = parseInt(object.timeCreated, 10);
172570
+ else if (typeof object.timeCreated === "number")
172571
+ message.timeCreated = object.timeCreated;
172572
+ else if (typeof object.timeCreated === "object")
172573
+ message.timeCreated = new $util.LongBits(object.timeCreated.low >>> 0, object.timeCreated.high >>> 0).toNumber(true);
172574
+ if (object.timeUpdated != null)
172575
+ if ($util.Long)
172576
+ (message.timeUpdated = $util.Long.fromValue(object.timeUpdated)).unsigned = true;
172577
+ else if (typeof object.timeUpdated === "string")
172578
+ message.timeUpdated = parseInt(object.timeUpdated, 10);
172579
+ else if (typeof object.timeUpdated === "number")
172580
+ message.timeUpdated = object.timeUpdated;
172581
+ else if (typeof object.timeUpdated === "object")
172582
+ message.timeUpdated = new $util.LongBits(object.timeUpdated.low >>> 0, object.timeUpdated.high >>> 0).toNumber(true);
172583
+ return message;
172584
+ };
172585
+
172586
+ /**
172587
+ * Creates a plain object from a PartnerAppointmentCreated message. Also converts values to other types if specified.
172588
+ * @function toObject
172589
+ * @memberof clinical.PartnerAppointmentCreated
172590
+ * @static
172591
+ * @param {clinical.PartnerAppointmentCreated} message PartnerAppointmentCreated
172592
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
172593
+ * @returns {Object.<string,*>} Plain object
172594
+ */
172595
+ PartnerAppointmentCreated.toObject = function toObject(message, options) {
172596
+ if (!options)
172597
+ options = {};
172598
+ var object = {};
172599
+ if (options.defaults) {
172600
+ object.id = "";
172601
+ object.partnerSource = options.enums === String ? "CLINICAL_PARTNER_SOURCE_UNKNOWN" : 0;
172602
+ object.externalId = "";
172603
+ object.partnerProviderId = "";
172604
+ if ($util.Long) {
172605
+ var long = new $util.Long(0, 0, false);
172606
+ object.gingerMemberId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
172607
+ } else
172608
+ object.gingerMemberId = options.longs === String ? "0" : 0;
172609
+ object.appointmentStatus = options.enums === String ? "CLINICAL_PARTNER_APPOINTMENT_STATUS_UNKNOWN" : 0;
172610
+ if ($util.Long) {
172611
+ var long = new $util.Long(0, 0, true);
172612
+ object.appointmentStartTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
172613
+ } else
172614
+ object.appointmentStartTime = options.longs === String ? "0" : 0;
172615
+ if ($util.Long) {
172616
+ var long = new $util.Long(0, 0, true);
172617
+ object.appointmentEndTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
172618
+ } else
172619
+ object.appointmentEndTime = options.longs === String ? "0" : 0;
172620
+ object.durationMinutes = 0;
172621
+ object.locationType = options.enums === String ? "CLINICAL_PARTNER_APPOINTMENT_LOCATION_TYPE_UNKNOWN" : 0;
172622
+ object.appointmentType = options.enums === String ? "CLINICAL_PARTNER_APPOINTMENT_TYPE_UNKNOWN" : 0;
172623
+ object.sessionType = options.enums === String ? "CLINICAL_PARTNER_APPOINTMENT_SESSION_TYPE_UNKNOWN" : 0;
172624
+ object.covered = false;
172625
+ if ($util.Long) {
172626
+ var long = new $util.Long(0, 0, true);
172627
+ object.timeCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
172628
+ } else
172629
+ object.timeCreated = options.longs === String ? "0" : 0;
172630
+ if ($util.Long) {
172631
+ var long = new $util.Long(0, 0, true);
172632
+ object.timeUpdated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
172633
+ } else
172634
+ object.timeUpdated = options.longs === String ? "0" : 0;
172635
+ }
172636
+ if (message.id != null && message.hasOwnProperty("id"))
172637
+ object.id = message.id;
172638
+ if (message.partnerSource != null && message.hasOwnProperty("partnerSource"))
172639
+ object.partnerSource = options.enums === String ? $root.clinical.ClinicalPartnerSource[message.partnerSource] : message.partnerSource;
172640
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
172641
+ object.externalId = message.externalId;
172642
+ if (message.partnerProviderId != null && message.hasOwnProperty("partnerProviderId"))
172643
+ object.partnerProviderId = message.partnerProviderId;
172644
+ if (message.gingerMemberId != null && message.hasOwnProperty("gingerMemberId"))
172645
+ if (typeof message.gingerMemberId === "number")
172646
+ object.gingerMemberId = options.longs === String ? String(message.gingerMemberId) : message.gingerMemberId;
172647
+ else
172648
+ object.gingerMemberId = options.longs === String ? $util.Long.prototype.toString.call(message.gingerMemberId) : options.longs === Number ? new $util.LongBits(message.gingerMemberId.low >>> 0, message.gingerMemberId.high >>> 0).toNumber() : message.gingerMemberId;
172649
+ if (message.appointmentStatus != null && message.hasOwnProperty("appointmentStatus"))
172650
+ object.appointmentStatus = options.enums === String ? $root.clinical.ClinicalPartnerAppointmentStatus[message.appointmentStatus] : message.appointmentStatus;
172651
+ if (message.appointmentStartTime != null && message.hasOwnProperty("appointmentStartTime"))
172652
+ if (typeof message.appointmentStartTime === "number")
172653
+ object.appointmentStartTime = options.longs === String ? String(message.appointmentStartTime) : message.appointmentStartTime;
172654
+ else
172655
+ object.appointmentStartTime = options.longs === String ? $util.Long.prototype.toString.call(message.appointmentStartTime) : options.longs === Number ? new $util.LongBits(message.appointmentStartTime.low >>> 0, message.appointmentStartTime.high >>> 0).toNumber(true) : message.appointmentStartTime;
172656
+ if (message.appointmentEndTime != null && message.hasOwnProperty("appointmentEndTime"))
172657
+ if (typeof message.appointmentEndTime === "number")
172658
+ object.appointmentEndTime = options.longs === String ? String(message.appointmentEndTime) : message.appointmentEndTime;
172659
+ else
172660
+ object.appointmentEndTime = options.longs === String ? $util.Long.prototype.toString.call(message.appointmentEndTime) : options.longs === Number ? new $util.LongBits(message.appointmentEndTime.low >>> 0, message.appointmentEndTime.high >>> 0).toNumber(true) : message.appointmentEndTime;
172661
+ if (message.durationMinutes != null && message.hasOwnProperty("durationMinutes"))
172662
+ object.durationMinutes = message.durationMinutes;
172663
+ if (message.locationType != null && message.hasOwnProperty("locationType"))
172664
+ object.locationType = options.enums === String ? $root.clinical.ClinicalPartnerAppointmentLocationType[message.locationType] : message.locationType;
172665
+ if (message.appointmentType != null && message.hasOwnProperty("appointmentType"))
172666
+ object.appointmentType = options.enums === String ? $root.clinical.ClinicalPartnerAppointmentType[message.appointmentType] : message.appointmentType;
172667
+ if (message.sessionType != null && message.hasOwnProperty("sessionType"))
172668
+ object.sessionType = options.enums === String ? $root.clinical.ClinicalPartnerAppointmentSessionType[message.sessionType] : message.sessionType;
172669
+ if (message.covered != null && message.hasOwnProperty("covered"))
172670
+ object.covered = message.covered;
172671
+ if (message.timeCreated != null && message.hasOwnProperty("timeCreated"))
172672
+ if (typeof message.timeCreated === "number")
172673
+ object.timeCreated = options.longs === String ? String(message.timeCreated) : message.timeCreated;
172674
+ else
172675
+ object.timeCreated = options.longs === String ? $util.Long.prototype.toString.call(message.timeCreated) : options.longs === Number ? new $util.LongBits(message.timeCreated.low >>> 0, message.timeCreated.high >>> 0).toNumber(true) : message.timeCreated;
172676
+ if (message.timeUpdated != null && message.hasOwnProperty("timeUpdated"))
172677
+ if (typeof message.timeUpdated === "number")
172678
+ object.timeUpdated = options.longs === String ? String(message.timeUpdated) : message.timeUpdated;
172679
+ else
172680
+ object.timeUpdated = options.longs === String ? $util.Long.prototype.toString.call(message.timeUpdated) : options.longs === Number ? new $util.LongBits(message.timeUpdated.low >>> 0, message.timeUpdated.high >>> 0).toNumber(true) : message.timeUpdated;
172681
+ return object;
172682
+ };
172683
+
172684
+ /**
172685
+ * Converts this PartnerAppointmentCreated to JSON.
172686
+ * @function toJSON
172687
+ * @memberof clinical.PartnerAppointmentCreated
172688
+ * @instance
172689
+ * @returns {Object.<string,*>} JSON object
172690
+ */
172691
+ PartnerAppointmentCreated.prototype.toJSON = function toJSON() {
172692
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
172693
+ };
172694
+
172695
+ return PartnerAppointmentCreated;
172696
+ })();
172697
+
172698
+ clinical.PartnerClinicianExported = (function() {
172699
+
172700
+ /**
172701
+ * Properties of a PartnerClinicianExported.
172702
+ * @memberof clinical
172703
+ * @interface IPartnerClinicianExported
172704
+ * @property {string|null} [id] PartnerClinicianExported id
172705
+ * @property {clinical.ClinicalPartnerSource|null} [partnerSource] PartnerClinicianExported partnerSource
172706
+ * @property {string|null} [externalId] PartnerClinicianExported externalId
172707
+ * @property {string|null} [npi] PartnerClinicianExported npi
172708
+ * @property {clinical.ClinicianType|null} [providerRole] PartnerClinicianExported providerRole
172709
+ * @property {boolean|null} [hasPhysicalLocation] PartnerClinicianExported hasPhysicalLocation
172710
+ * @property {string|null} [fullName] PartnerClinicianExported fullName
172711
+ * @property {number|Long|null} [timeCreated] PartnerClinicianExported timeCreated
172712
+ * @property {number|Long|null} [timeUpdated] PartnerClinicianExported timeUpdated
172713
+ * @property {Array.<string>|null} [clinicalSpecialties] PartnerClinicianExported clinicalSpecialties
172714
+ * @property {Array.<string>|null} [therapyModalities] PartnerClinicianExported therapyModalities
172715
+ * @property {Array.<string>|null} [genders] PartnerClinicianExported genders
172716
+ * @property {Array.<string>|null} [races] PartnerClinicianExported races
172717
+ * @property {Array.<string>|null} [languageSpecialties] PartnerClinicianExported languageSpecialties
172718
+ * @property {Array.<string>|null} [ageRangeSpecialties] PartnerClinicianExported ageRangeSpecialties
172719
+ */
172720
+
172721
+ /**
172722
+ * Constructs a new PartnerClinicianExported.
172723
+ * @memberof clinical
172724
+ * @classdesc Represents a PartnerClinicianExported.
172725
+ * @implements IPartnerClinicianExported
172726
+ * @constructor
172727
+ * @param {clinical.IPartnerClinicianExported=} [properties] Properties to set
172728
+ */
172729
+ function PartnerClinicianExported(properties) {
172730
+ this.clinicalSpecialties = [];
172731
+ this.therapyModalities = [];
172732
+ this.genders = [];
172733
+ this.races = [];
172734
+ this.languageSpecialties = [];
172735
+ this.ageRangeSpecialties = [];
172736
+ if (properties)
172737
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
172738
+ if (properties[keys[i]] != null)
172739
+ this[keys[i]] = properties[keys[i]];
172740
+ }
172741
+
172742
+ /**
172743
+ * PartnerClinicianExported id.
172744
+ * @member {string} id
172745
+ * @memberof clinical.PartnerClinicianExported
172746
+ * @instance
172747
+ */
172748
+ PartnerClinicianExported.prototype.id = "";
172749
+
172750
+ /**
172751
+ * PartnerClinicianExported partnerSource.
172752
+ * @member {clinical.ClinicalPartnerSource} partnerSource
172753
+ * @memberof clinical.PartnerClinicianExported
172754
+ * @instance
172755
+ */
172756
+ PartnerClinicianExported.prototype.partnerSource = 0;
172757
+
172758
+ /**
172759
+ * PartnerClinicianExported externalId.
172760
+ * @member {string} externalId
172761
+ * @memberof clinical.PartnerClinicianExported
172762
+ * @instance
172763
+ */
172764
+ PartnerClinicianExported.prototype.externalId = "";
172765
+
172766
+ /**
172767
+ * PartnerClinicianExported npi.
172768
+ * @member {string} npi
172769
+ * @memberof clinical.PartnerClinicianExported
172770
+ * @instance
172771
+ */
172772
+ PartnerClinicianExported.prototype.npi = "";
172773
+
172774
+ /**
172775
+ * PartnerClinicianExported providerRole.
172776
+ * @member {clinical.ClinicianType} providerRole
172777
+ * @memberof clinical.PartnerClinicianExported
172778
+ * @instance
172779
+ */
172780
+ PartnerClinicianExported.prototype.providerRole = 0;
172781
+
172782
+ /**
172783
+ * PartnerClinicianExported hasPhysicalLocation.
172784
+ * @member {boolean} hasPhysicalLocation
172785
+ * @memberof clinical.PartnerClinicianExported
172786
+ * @instance
172787
+ */
172788
+ PartnerClinicianExported.prototype.hasPhysicalLocation = false;
172789
+
172790
+ /**
172791
+ * PartnerClinicianExported fullName.
172792
+ * @member {string} fullName
172793
+ * @memberof clinical.PartnerClinicianExported
172794
+ * @instance
172795
+ */
172796
+ PartnerClinicianExported.prototype.fullName = "";
172797
+
172798
+ /**
172799
+ * PartnerClinicianExported timeCreated.
172800
+ * @member {number|Long} timeCreated
172801
+ * @memberof clinical.PartnerClinicianExported
172802
+ * @instance
172803
+ */
172804
+ PartnerClinicianExported.prototype.timeCreated = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
172805
+
172806
+ /**
172807
+ * PartnerClinicianExported timeUpdated.
172808
+ * @member {number|Long} timeUpdated
172809
+ * @memberof clinical.PartnerClinicianExported
172810
+ * @instance
172811
+ */
172812
+ PartnerClinicianExported.prototype.timeUpdated = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
172813
+
172814
+ /**
172815
+ * PartnerClinicianExported clinicalSpecialties.
172816
+ * @member {Array.<string>} clinicalSpecialties
172817
+ * @memberof clinical.PartnerClinicianExported
172818
+ * @instance
172819
+ */
172820
+ PartnerClinicianExported.prototype.clinicalSpecialties = $util.emptyArray;
172821
+
172822
+ /**
172823
+ * PartnerClinicianExported therapyModalities.
172824
+ * @member {Array.<string>} therapyModalities
172825
+ * @memberof clinical.PartnerClinicianExported
172826
+ * @instance
172827
+ */
172828
+ PartnerClinicianExported.prototype.therapyModalities = $util.emptyArray;
172829
+
172830
+ /**
172831
+ * PartnerClinicianExported genders.
172832
+ * @member {Array.<string>} genders
172833
+ * @memberof clinical.PartnerClinicianExported
172834
+ * @instance
172835
+ */
172836
+ PartnerClinicianExported.prototype.genders = $util.emptyArray;
172837
+
172838
+ /**
172839
+ * PartnerClinicianExported races.
172840
+ * @member {Array.<string>} races
172841
+ * @memberof clinical.PartnerClinicianExported
172842
+ * @instance
172843
+ */
172844
+ PartnerClinicianExported.prototype.races = $util.emptyArray;
172845
+
172846
+ /**
172847
+ * PartnerClinicianExported languageSpecialties.
172848
+ * @member {Array.<string>} languageSpecialties
172849
+ * @memberof clinical.PartnerClinicianExported
172850
+ * @instance
172851
+ */
172852
+ PartnerClinicianExported.prototype.languageSpecialties = $util.emptyArray;
172853
+
172854
+ /**
172855
+ * PartnerClinicianExported ageRangeSpecialties.
172856
+ * @member {Array.<string>} ageRangeSpecialties
172857
+ * @memberof clinical.PartnerClinicianExported
172858
+ * @instance
172859
+ */
172860
+ PartnerClinicianExported.prototype.ageRangeSpecialties = $util.emptyArray;
172861
+
172862
+ /**
172863
+ * Creates a new PartnerClinicianExported instance using the specified properties.
172864
+ * @function create
172865
+ * @memberof clinical.PartnerClinicianExported
172866
+ * @static
172867
+ * @param {clinical.IPartnerClinicianExported=} [properties] Properties to set
172868
+ * @returns {clinical.PartnerClinicianExported} PartnerClinicianExported instance
172869
+ */
172870
+ PartnerClinicianExported.create = function create(properties) {
172871
+ return new PartnerClinicianExported(properties);
172872
+ };
172873
+
172874
+ /**
172875
+ * Encodes the specified PartnerClinicianExported message. Does not implicitly {@link clinical.PartnerClinicianExported.verify|verify} messages.
172876
+ * @function encode
172877
+ * @memberof clinical.PartnerClinicianExported
172878
+ * @static
172879
+ * @param {clinical.IPartnerClinicianExported} message PartnerClinicianExported message or plain object to encode
172880
+ * @param {$protobuf.Writer} [writer] Writer to encode to
172881
+ * @returns {$protobuf.Writer} Writer
172882
+ */
172883
+ PartnerClinicianExported.encode = function encode(message, writer) {
172884
+ if (!writer)
172885
+ writer = $Writer.create();
172886
+ if (message.id != null && message.hasOwnProperty("id"))
172887
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
172888
+ if (message.partnerSource != null && message.hasOwnProperty("partnerSource"))
172889
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.partnerSource);
172890
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
172891
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.externalId);
172892
+ if (message.npi != null && message.hasOwnProperty("npi"))
172893
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.npi);
172894
+ if (message.providerRole != null && message.hasOwnProperty("providerRole"))
172895
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.providerRole);
172896
+ if (message.hasPhysicalLocation != null && message.hasOwnProperty("hasPhysicalLocation"))
172897
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.hasPhysicalLocation);
172898
+ if (message.fullName != null && message.hasOwnProperty("fullName"))
172899
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.fullName);
172900
+ if (message.timeCreated != null && message.hasOwnProperty("timeCreated"))
172901
+ writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.timeCreated);
172902
+ if (message.timeUpdated != null && message.hasOwnProperty("timeUpdated"))
172903
+ writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.timeUpdated);
172904
+ if (message.clinicalSpecialties != null && message.clinicalSpecialties.length)
172905
+ for (var i = 0; i < message.clinicalSpecialties.length; ++i)
172906
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.clinicalSpecialties[i]);
172907
+ if (message.therapyModalities != null && message.therapyModalities.length)
172908
+ for (var i = 0; i < message.therapyModalities.length; ++i)
172909
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.therapyModalities[i]);
172910
+ if (message.genders != null && message.genders.length)
172911
+ for (var i = 0; i < message.genders.length; ++i)
172912
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.genders[i]);
172913
+ if (message.races != null && message.races.length)
172914
+ for (var i = 0; i < message.races.length; ++i)
172915
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.races[i]);
172916
+ if (message.languageSpecialties != null && message.languageSpecialties.length)
172917
+ for (var i = 0; i < message.languageSpecialties.length; ++i)
172918
+ writer.uint32(/* id 14, wireType 2 =*/114).string(message.languageSpecialties[i]);
172919
+ if (message.ageRangeSpecialties != null && message.ageRangeSpecialties.length)
172920
+ for (var i = 0; i < message.ageRangeSpecialties.length; ++i)
172921
+ writer.uint32(/* id 15, wireType 2 =*/122).string(message.ageRangeSpecialties[i]);
172922
+ return writer;
172923
+ };
172924
+
172925
+ /**
172926
+ * Encodes the specified PartnerClinicianExported message, length delimited. Does not implicitly {@link clinical.PartnerClinicianExported.verify|verify} messages.
172927
+ * @function encodeDelimited
172928
+ * @memberof clinical.PartnerClinicianExported
172929
+ * @static
172930
+ * @param {clinical.IPartnerClinicianExported} message PartnerClinicianExported message or plain object to encode
172931
+ * @param {$protobuf.Writer} [writer] Writer to encode to
172932
+ * @returns {$protobuf.Writer} Writer
172933
+ */
172934
+ PartnerClinicianExported.encodeDelimited = function encodeDelimited(message, writer) {
172935
+ return this.encode(message, writer).ldelim();
172936
+ };
172937
+
172938
+ /**
172939
+ * Decodes a PartnerClinicianExported message from the specified reader or buffer.
172940
+ * @function decode
172941
+ * @memberof clinical.PartnerClinicianExported
172942
+ * @static
172943
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
172944
+ * @param {number} [length] Message length if known beforehand
172945
+ * @returns {clinical.PartnerClinicianExported} PartnerClinicianExported
172946
+ * @throws {Error} If the payload is not a reader or valid buffer
172947
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
172948
+ */
172949
+ PartnerClinicianExported.decode = function decode(reader, length) {
172950
+ if (!(reader instanceof $Reader))
172951
+ reader = $Reader.create(reader);
172952
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.clinical.PartnerClinicianExported();
172953
+ while (reader.pos < end) {
172954
+ var tag = reader.uint32();
172955
+ switch (tag >>> 3) {
172956
+ case 1:
172957
+ message.id = reader.string();
172958
+ break;
172959
+ case 2:
172960
+ message.partnerSource = reader.int32();
172961
+ break;
172962
+ case 3:
172963
+ message.externalId = reader.string();
172964
+ break;
172965
+ case 4:
172966
+ message.npi = reader.string();
172967
+ break;
172968
+ case 5:
172969
+ message.providerRole = reader.int32();
172970
+ break;
172971
+ case 6:
172972
+ message.hasPhysicalLocation = reader.bool();
172973
+ break;
172974
+ case 7:
172975
+ message.fullName = reader.string();
172976
+ break;
172977
+ case 8:
172978
+ message.timeCreated = reader.uint64();
172979
+ break;
172980
+ case 9:
172981
+ message.timeUpdated = reader.uint64();
172982
+ break;
172983
+ case 10:
172984
+ if (!(message.clinicalSpecialties && message.clinicalSpecialties.length))
172985
+ message.clinicalSpecialties = [];
172986
+ message.clinicalSpecialties.push(reader.string());
172987
+ break;
172988
+ case 11:
172989
+ if (!(message.therapyModalities && message.therapyModalities.length))
172990
+ message.therapyModalities = [];
172991
+ message.therapyModalities.push(reader.string());
172992
+ break;
172993
+ case 12:
172994
+ if (!(message.genders && message.genders.length))
172995
+ message.genders = [];
172996
+ message.genders.push(reader.string());
172997
+ break;
172998
+ case 13:
172999
+ if (!(message.races && message.races.length))
173000
+ message.races = [];
173001
+ message.races.push(reader.string());
173002
+ break;
173003
+ case 14:
173004
+ if (!(message.languageSpecialties && message.languageSpecialties.length))
173005
+ message.languageSpecialties = [];
173006
+ message.languageSpecialties.push(reader.string());
173007
+ break;
173008
+ case 15:
173009
+ if (!(message.ageRangeSpecialties && message.ageRangeSpecialties.length))
173010
+ message.ageRangeSpecialties = [];
173011
+ message.ageRangeSpecialties.push(reader.string());
173012
+ break;
173013
+ default:
173014
+ reader.skipType(tag & 7);
173015
+ break;
173016
+ }
173017
+ }
173018
+ return message;
173019
+ };
173020
+
173021
+ /**
173022
+ * Decodes a PartnerClinicianExported message from the specified reader or buffer, length delimited.
173023
+ * @function decodeDelimited
173024
+ * @memberof clinical.PartnerClinicianExported
173025
+ * @static
173026
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
173027
+ * @returns {clinical.PartnerClinicianExported} PartnerClinicianExported
173028
+ * @throws {Error} If the payload is not a reader or valid buffer
173029
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
173030
+ */
173031
+ PartnerClinicianExported.decodeDelimited = function decodeDelimited(reader) {
173032
+ if (!(reader instanceof $Reader))
173033
+ reader = new $Reader(reader);
173034
+ return this.decode(reader, reader.uint32());
173035
+ };
173036
+
173037
+ /**
173038
+ * Verifies a PartnerClinicianExported message.
173039
+ * @function verify
173040
+ * @memberof clinical.PartnerClinicianExported
173041
+ * @static
173042
+ * @param {Object.<string,*>} message Plain object to verify
173043
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
173044
+ */
173045
+ PartnerClinicianExported.verify = function verify(message) {
173046
+ if (typeof message !== "object" || message === null)
173047
+ return "object expected";
173048
+ if (message.id != null && message.hasOwnProperty("id"))
173049
+ if (!$util.isString(message.id))
173050
+ return "id: string expected";
173051
+ if (message.partnerSource != null && message.hasOwnProperty("partnerSource"))
173052
+ switch (message.partnerSource) {
173053
+ default:
173054
+ return "partnerSource: enum value expected";
173055
+ case 0:
173056
+ case 1:
173057
+ break;
173058
+ }
173059
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
173060
+ if (!$util.isString(message.externalId))
173061
+ return "externalId: string expected";
173062
+ if (message.npi != null && message.hasOwnProperty("npi"))
173063
+ if (!$util.isString(message.npi))
173064
+ return "npi: string expected";
173065
+ if (message.providerRole != null && message.hasOwnProperty("providerRole"))
173066
+ switch (message.providerRole) {
173067
+ default:
173068
+ return "providerRole: enum value expected";
173069
+ case 0:
173070
+ case 1:
173071
+ case 2:
173072
+ break;
173073
+ }
173074
+ if (message.hasPhysicalLocation != null && message.hasOwnProperty("hasPhysicalLocation"))
173075
+ if (typeof message.hasPhysicalLocation !== "boolean")
173076
+ return "hasPhysicalLocation: boolean expected";
173077
+ if (message.fullName != null && message.hasOwnProperty("fullName"))
173078
+ if (!$util.isString(message.fullName))
173079
+ return "fullName: string expected";
173080
+ if (message.timeCreated != null && message.hasOwnProperty("timeCreated"))
173081
+ if (!$util.isInteger(message.timeCreated) && !(message.timeCreated && $util.isInteger(message.timeCreated.low) && $util.isInteger(message.timeCreated.high)))
173082
+ return "timeCreated: integer|Long expected";
173083
+ if (message.timeUpdated != null && message.hasOwnProperty("timeUpdated"))
173084
+ if (!$util.isInteger(message.timeUpdated) && !(message.timeUpdated && $util.isInteger(message.timeUpdated.low) && $util.isInteger(message.timeUpdated.high)))
173085
+ return "timeUpdated: integer|Long expected";
173086
+ if (message.clinicalSpecialties != null && message.hasOwnProperty("clinicalSpecialties")) {
173087
+ if (!Array.isArray(message.clinicalSpecialties))
173088
+ return "clinicalSpecialties: array expected";
173089
+ for (var i = 0; i < message.clinicalSpecialties.length; ++i)
173090
+ if (!$util.isString(message.clinicalSpecialties[i]))
173091
+ return "clinicalSpecialties: string[] expected";
173092
+ }
173093
+ if (message.therapyModalities != null && message.hasOwnProperty("therapyModalities")) {
173094
+ if (!Array.isArray(message.therapyModalities))
173095
+ return "therapyModalities: array expected";
173096
+ for (var i = 0; i < message.therapyModalities.length; ++i)
173097
+ if (!$util.isString(message.therapyModalities[i]))
173098
+ return "therapyModalities: string[] expected";
173099
+ }
173100
+ if (message.genders != null && message.hasOwnProperty("genders")) {
173101
+ if (!Array.isArray(message.genders))
173102
+ return "genders: array expected";
173103
+ for (var i = 0; i < message.genders.length; ++i)
173104
+ if (!$util.isString(message.genders[i]))
173105
+ return "genders: string[] expected";
173106
+ }
173107
+ if (message.races != null && message.hasOwnProperty("races")) {
173108
+ if (!Array.isArray(message.races))
173109
+ return "races: array expected";
173110
+ for (var i = 0; i < message.races.length; ++i)
173111
+ if (!$util.isString(message.races[i]))
173112
+ return "races: string[] expected";
173113
+ }
173114
+ if (message.languageSpecialties != null && message.hasOwnProperty("languageSpecialties")) {
173115
+ if (!Array.isArray(message.languageSpecialties))
173116
+ return "languageSpecialties: array expected";
173117
+ for (var i = 0; i < message.languageSpecialties.length; ++i)
173118
+ if (!$util.isString(message.languageSpecialties[i]))
173119
+ return "languageSpecialties: string[] expected";
173120
+ }
173121
+ if (message.ageRangeSpecialties != null && message.hasOwnProperty("ageRangeSpecialties")) {
173122
+ if (!Array.isArray(message.ageRangeSpecialties))
173123
+ return "ageRangeSpecialties: array expected";
173124
+ for (var i = 0; i < message.ageRangeSpecialties.length; ++i)
173125
+ if (!$util.isString(message.ageRangeSpecialties[i]))
173126
+ return "ageRangeSpecialties: string[] expected";
173127
+ }
173128
+ return null;
173129
+ };
173130
+
173131
+ /**
173132
+ * Creates a PartnerClinicianExported message from a plain object. Also converts values to their respective internal types.
173133
+ * @function fromObject
173134
+ * @memberof clinical.PartnerClinicianExported
173135
+ * @static
173136
+ * @param {Object.<string,*>} object Plain object
173137
+ * @returns {clinical.PartnerClinicianExported} PartnerClinicianExported
173138
+ */
173139
+ PartnerClinicianExported.fromObject = function fromObject(object) {
173140
+ if (object instanceof $root.clinical.PartnerClinicianExported)
173141
+ return object;
173142
+ var message = new $root.clinical.PartnerClinicianExported();
173143
+ if (object.id != null)
173144
+ message.id = String(object.id);
173145
+ switch (object.partnerSource) {
173146
+ case "CLINICAL_PARTNER_SOURCE_UNKNOWN":
173147
+ case 0:
173148
+ message.partnerSource = 0;
173149
+ break;
173150
+ case "CLINICAL_PARTNER_SOURCE_SONDERMIND":
173151
+ case 1:
173152
+ message.partnerSource = 1;
173153
+ break;
173154
+ }
173155
+ if (object.externalId != null)
173156
+ message.externalId = String(object.externalId);
173157
+ if (object.npi != null)
173158
+ message.npi = String(object.npi);
173159
+ switch (object.providerRole) {
173160
+ case "CLINICIAN_TYPE_UNKNOWN":
173161
+ case 0:
173162
+ message.providerRole = 0;
173163
+ break;
173164
+ case "CLINICIAN_TYPE_THERAPIST":
173165
+ case 1:
173166
+ message.providerRole = 1;
173167
+ break;
173168
+ case "CLINICIAN_TYPE_PSYCHIATRIST":
173169
+ case 2:
173170
+ message.providerRole = 2;
173171
+ break;
173172
+ }
173173
+ if (object.hasPhysicalLocation != null)
173174
+ message.hasPhysicalLocation = Boolean(object.hasPhysicalLocation);
173175
+ if (object.fullName != null)
173176
+ message.fullName = String(object.fullName);
173177
+ if (object.timeCreated != null)
173178
+ if ($util.Long)
173179
+ (message.timeCreated = $util.Long.fromValue(object.timeCreated)).unsigned = true;
173180
+ else if (typeof object.timeCreated === "string")
173181
+ message.timeCreated = parseInt(object.timeCreated, 10);
173182
+ else if (typeof object.timeCreated === "number")
173183
+ message.timeCreated = object.timeCreated;
173184
+ else if (typeof object.timeCreated === "object")
173185
+ message.timeCreated = new $util.LongBits(object.timeCreated.low >>> 0, object.timeCreated.high >>> 0).toNumber(true);
173186
+ if (object.timeUpdated != null)
173187
+ if ($util.Long)
173188
+ (message.timeUpdated = $util.Long.fromValue(object.timeUpdated)).unsigned = true;
173189
+ else if (typeof object.timeUpdated === "string")
173190
+ message.timeUpdated = parseInt(object.timeUpdated, 10);
173191
+ else if (typeof object.timeUpdated === "number")
173192
+ message.timeUpdated = object.timeUpdated;
173193
+ else if (typeof object.timeUpdated === "object")
173194
+ message.timeUpdated = new $util.LongBits(object.timeUpdated.low >>> 0, object.timeUpdated.high >>> 0).toNumber(true);
173195
+ if (object.clinicalSpecialties) {
173196
+ if (!Array.isArray(object.clinicalSpecialties))
173197
+ throw TypeError(".clinical.PartnerClinicianExported.clinicalSpecialties: array expected");
173198
+ message.clinicalSpecialties = [];
173199
+ for (var i = 0; i < object.clinicalSpecialties.length; ++i)
173200
+ message.clinicalSpecialties[i] = String(object.clinicalSpecialties[i]);
173201
+ }
173202
+ if (object.therapyModalities) {
173203
+ if (!Array.isArray(object.therapyModalities))
173204
+ throw TypeError(".clinical.PartnerClinicianExported.therapyModalities: array expected");
173205
+ message.therapyModalities = [];
173206
+ for (var i = 0; i < object.therapyModalities.length; ++i)
173207
+ message.therapyModalities[i] = String(object.therapyModalities[i]);
173208
+ }
173209
+ if (object.genders) {
173210
+ if (!Array.isArray(object.genders))
173211
+ throw TypeError(".clinical.PartnerClinicianExported.genders: array expected");
173212
+ message.genders = [];
173213
+ for (var i = 0; i < object.genders.length; ++i)
173214
+ message.genders[i] = String(object.genders[i]);
173215
+ }
173216
+ if (object.races) {
173217
+ if (!Array.isArray(object.races))
173218
+ throw TypeError(".clinical.PartnerClinicianExported.races: array expected");
173219
+ message.races = [];
173220
+ for (var i = 0; i < object.races.length; ++i)
173221
+ message.races[i] = String(object.races[i]);
173222
+ }
173223
+ if (object.languageSpecialties) {
173224
+ if (!Array.isArray(object.languageSpecialties))
173225
+ throw TypeError(".clinical.PartnerClinicianExported.languageSpecialties: array expected");
173226
+ message.languageSpecialties = [];
173227
+ for (var i = 0; i < object.languageSpecialties.length; ++i)
173228
+ message.languageSpecialties[i] = String(object.languageSpecialties[i]);
173229
+ }
173230
+ if (object.ageRangeSpecialties) {
173231
+ if (!Array.isArray(object.ageRangeSpecialties))
173232
+ throw TypeError(".clinical.PartnerClinicianExported.ageRangeSpecialties: array expected");
173233
+ message.ageRangeSpecialties = [];
173234
+ for (var i = 0; i < object.ageRangeSpecialties.length; ++i)
173235
+ message.ageRangeSpecialties[i] = String(object.ageRangeSpecialties[i]);
173236
+ }
173237
+ return message;
173238
+ };
173239
+
173240
+ /**
173241
+ * Creates a plain object from a PartnerClinicianExported message. Also converts values to other types if specified.
173242
+ * @function toObject
173243
+ * @memberof clinical.PartnerClinicianExported
173244
+ * @static
173245
+ * @param {clinical.PartnerClinicianExported} message PartnerClinicianExported
173246
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
173247
+ * @returns {Object.<string,*>} Plain object
173248
+ */
173249
+ PartnerClinicianExported.toObject = function toObject(message, options) {
173250
+ if (!options)
173251
+ options = {};
173252
+ var object = {};
173253
+ if (options.arrays || options.defaults) {
173254
+ object.clinicalSpecialties = [];
173255
+ object.therapyModalities = [];
173256
+ object.genders = [];
173257
+ object.races = [];
173258
+ object.languageSpecialties = [];
173259
+ object.ageRangeSpecialties = [];
173260
+ }
173261
+ if (options.defaults) {
173262
+ object.id = "";
173263
+ object.partnerSource = options.enums === String ? "CLINICAL_PARTNER_SOURCE_UNKNOWN" : 0;
173264
+ object.externalId = "";
173265
+ object.npi = "";
173266
+ object.providerRole = options.enums === String ? "CLINICIAN_TYPE_UNKNOWN" : 0;
173267
+ object.hasPhysicalLocation = false;
173268
+ object.fullName = "";
173269
+ if ($util.Long) {
173270
+ var long = new $util.Long(0, 0, true);
173271
+ object.timeCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
173272
+ } else
173273
+ object.timeCreated = options.longs === String ? "0" : 0;
173274
+ if ($util.Long) {
173275
+ var long = new $util.Long(0, 0, true);
173276
+ object.timeUpdated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
173277
+ } else
173278
+ object.timeUpdated = options.longs === String ? "0" : 0;
173279
+ }
173280
+ if (message.id != null && message.hasOwnProperty("id"))
173281
+ object.id = message.id;
173282
+ if (message.partnerSource != null && message.hasOwnProperty("partnerSource"))
173283
+ object.partnerSource = options.enums === String ? $root.clinical.ClinicalPartnerSource[message.partnerSource] : message.partnerSource;
173284
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
173285
+ object.externalId = message.externalId;
173286
+ if (message.npi != null && message.hasOwnProperty("npi"))
173287
+ object.npi = message.npi;
173288
+ if (message.providerRole != null && message.hasOwnProperty("providerRole"))
173289
+ object.providerRole = options.enums === String ? $root.clinical.ClinicianType[message.providerRole] : message.providerRole;
173290
+ if (message.hasPhysicalLocation != null && message.hasOwnProperty("hasPhysicalLocation"))
173291
+ object.hasPhysicalLocation = message.hasPhysicalLocation;
173292
+ if (message.fullName != null && message.hasOwnProperty("fullName"))
173293
+ object.fullName = message.fullName;
173294
+ if (message.timeCreated != null && message.hasOwnProperty("timeCreated"))
173295
+ if (typeof message.timeCreated === "number")
173296
+ object.timeCreated = options.longs === String ? String(message.timeCreated) : message.timeCreated;
173297
+ else
173298
+ object.timeCreated = options.longs === String ? $util.Long.prototype.toString.call(message.timeCreated) : options.longs === Number ? new $util.LongBits(message.timeCreated.low >>> 0, message.timeCreated.high >>> 0).toNumber(true) : message.timeCreated;
173299
+ if (message.timeUpdated != null && message.hasOwnProperty("timeUpdated"))
173300
+ if (typeof message.timeUpdated === "number")
173301
+ object.timeUpdated = options.longs === String ? String(message.timeUpdated) : message.timeUpdated;
173302
+ else
173303
+ object.timeUpdated = options.longs === String ? $util.Long.prototype.toString.call(message.timeUpdated) : options.longs === Number ? new $util.LongBits(message.timeUpdated.low >>> 0, message.timeUpdated.high >>> 0).toNumber(true) : message.timeUpdated;
173304
+ if (message.clinicalSpecialties && message.clinicalSpecialties.length) {
173305
+ object.clinicalSpecialties = [];
173306
+ for (var j = 0; j < message.clinicalSpecialties.length; ++j)
173307
+ object.clinicalSpecialties[j] = message.clinicalSpecialties[j];
173308
+ }
173309
+ if (message.therapyModalities && message.therapyModalities.length) {
173310
+ object.therapyModalities = [];
173311
+ for (var j = 0; j < message.therapyModalities.length; ++j)
173312
+ object.therapyModalities[j] = message.therapyModalities[j];
173313
+ }
173314
+ if (message.genders && message.genders.length) {
173315
+ object.genders = [];
173316
+ for (var j = 0; j < message.genders.length; ++j)
173317
+ object.genders[j] = message.genders[j];
173318
+ }
173319
+ if (message.races && message.races.length) {
173320
+ object.races = [];
173321
+ for (var j = 0; j < message.races.length; ++j)
173322
+ object.races[j] = message.races[j];
173323
+ }
173324
+ if (message.languageSpecialties && message.languageSpecialties.length) {
173325
+ object.languageSpecialties = [];
173326
+ for (var j = 0; j < message.languageSpecialties.length; ++j)
173327
+ object.languageSpecialties[j] = message.languageSpecialties[j];
173328
+ }
173329
+ if (message.ageRangeSpecialties && message.ageRangeSpecialties.length) {
173330
+ object.ageRangeSpecialties = [];
173331
+ for (var j = 0; j < message.ageRangeSpecialties.length; ++j)
173332
+ object.ageRangeSpecialties[j] = message.ageRangeSpecialties[j];
173333
+ }
173334
+ return object;
173335
+ };
173336
+
173337
+ /**
173338
+ * Converts this PartnerClinicianExported to JSON.
173339
+ * @function toJSON
173340
+ * @memberof clinical.PartnerClinicianExported
173341
+ * @instance
173342
+ * @returns {Object.<string,*>} JSON object
173343
+ */
173344
+ PartnerClinicianExported.prototype.toJSON = function toJSON() {
173345
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
173346
+ };
173347
+
173348
+ return PartnerClinicianExported;
173349
+ })();
173350
+
173351
+ clinical.PartnerPatientLinkExported = (function() {
173352
+
173353
+ /**
173354
+ * Properties of a PartnerPatientLinkExported.
173355
+ * @memberof clinical
173356
+ * @interface IPartnerPatientLinkExported
173357
+ * @property {string|null} [id] PartnerPatientLinkExported id
173358
+ * @property {string|null} [partnerSlug] PartnerPatientLinkExported partnerSlug
173359
+ * @property {number|Long|null} [memberId] PartnerPatientLinkExported memberId
173360
+ * @property {string|null} [memberSharedId] PartnerPatientLinkExported memberSharedId
173361
+ * @property {string|null} [externalId] PartnerPatientLinkExported externalId
173362
+ * @property {number|Long|null} [timeReferred] PartnerPatientLinkExported timeReferred
173363
+ * @property {number|Long|null} [timeLastSynced] PartnerPatientLinkExported timeLastSynced
173364
+ * @property {clinical.SyncStatus|null} [syncStatus] PartnerPatientLinkExported syncStatus
173365
+ * @property {number|Long|null} [timeCreated] PartnerPatientLinkExported timeCreated
173366
+ * @property {number|Long|null} [timeUpdated] PartnerPatientLinkExported timeUpdated
173367
+ */
173368
+
173369
+ /**
173370
+ * Constructs a new PartnerPatientLinkExported.
173371
+ * @memberof clinical
173372
+ * @classdesc Represents a PartnerPatientLinkExported.
173373
+ * @implements IPartnerPatientLinkExported
173374
+ * @constructor
173375
+ * @param {clinical.IPartnerPatientLinkExported=} [properties] Properties to set
173376
+ */
173377
+ function PartnerPatientLinkExported(properties) {
173378
+ if (properties)
173379
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
173380
+ if (properties[keys[i]] != null)
173381
+ this[keys[i]] = properties[keys[i]];
173382
+ }
173383
+
173384
+ /**
173385
+ * PartnerPatientLinkExported id.
173386
+ * @member {string} id
173387
+ * @memberof clinical.PartnerPatientLinkExported
173388
+ * @instance
173389
+ */
173390
+ PartnerPatientLinkExported.prototype.id = "";
173391
+
173392
+ /**
173393
+ * PartnerPatientLinkExported partnerSlug.
173394
+ * @member {string} partnerSlug
173395
+ * @memberof clinical.PartnerPatientLinkExported
173396
+ * @instance
173397
+ */
173398
+ PartnerPatientLinkExported.prototype.partnerSlug = "";
173399
+
173400
+ /**
173401
+ * PartnerPatientLinkExported memberId.
173402
+ * @member {number|Long} memberId
173403
+ * @memberof clinical.PartnerPatientLinkExported
173404
+ * @instance
173405
+ */
173406
+ PartnerPatientLinkExported.prototype.memberId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
173407
+
173408
+ /**
173409
+ * PartnerPatientLinkExported memberSharedId.
173410
+ * @member {string} memberSharedId
173411
+ * @memberof clinical.PartnerPatientLinkExported
173412
+ * @instance
173413
+ */
173414
+ PartnerPatientLinkExported.prototype.memberSharedId = "";
173415
+
173416
+ /**
173417
+ * PartnerPatientLinkExported externalId.
173418
+ * @member {string} externalId
173419
+ * @memberof clinical.PartnerPatientLinkExported
173420
+ * @instance
173421
+ */
173422
+ PartnerPatientLinkExported.prototype.externalId = "";
173423
+
173424
+ /**
173425
+ * PartnerPatientLinkExported timeReferred.
173426
+ * @member {number|Long} timeReferred
173427
+ * @memberof clinical.PartnerPatientLinkExported
173428
+ * @instance
173429
+ */
173430
+ PartnerPatientLinkExported.prototype.timeReferred = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
173431
+
173432
+ /**
173433
+ * PartnerPatientLinkExported timeLastSynced.
173434
+ * @member {number|Long} timeLastSynced
173435
+ * @memberof clinical.PartnerPatientLinkExported
173436
+ * @instance
173437
+ */
173438
+ PartnerPatientLinkExported.prototype.timeLastSynced = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
173439
+
173440
+ /**
173441
+ * PartnerPatientLinkExported syncStatus.
173442
+ * @member {clinical.SyncStatus} syncStatus
173443
+ * @memberof clinical.PartnerPatientLinkExported
173444
+ * @instance
173445
+ */
173446
+ PartnerPatientLinkExported.prototype.syncStatus = 0;
173447
+
173448
+ /**
173449
+ * PartnerPatientLinkExported timeCreated.
173450
+ * @member {number|Long} timeCreated
173451
+ * @memberof clinical.PartnerPatientLinkExported
173452
+ * @instance
173453
+ */
173454
+ PartnerPatientLinkExported.prototype.timeCreated = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
173455
+
173456
+ /**
173457
+ * PartnerPatientLinkExported timeUpdated.
173458
+ * @member {number|Long} timeUpdated
173459
+ * @memberof clinical.PartnerPatientLinkExported
173460
+ * @instance
173461
+ */
173462
+ PartnerPatientLinkExported.prototype.timeUpdated = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
173463
+
173464
+ /**
173465
+ * Creates a new PartnerPatientLinkExported instance using the specified properties.
173466
+ * @function create
173467
+ * @memberof clinical.PartnerPatientLinkExported
173468
+ * @static
173469
+ * @param {clinical.IPartnerPatientLinkExported=} [properties] Properties to set
173470
+ * @returns {clinical.PartnerPatientLinkExported} PartnerPatientLinkExported instance
173471
+ */
173472
+ PartnerPatientLinkExported.create = function create(properties) {
173473
+ return new PartnerPatientLinkExported(properties);
173474
+ };
173475
+
173476
+ /**
173477
+ * Encodes the specified PartnerPatientLinkExported message. Does not implicitly {@link clinical.PartnerPatientLinkExported.verify|verify} messages.
173478
+ * @function encode
173479
+ * @memberof clinical.PartnerPatientLinkExported
173480
+ * @static
173481
+ * @param {clinical.IPartnerPatientLinkExported} message PartnerPatientLinkExported message or plain object to encode
173482
+ * @param {$protobuf.Writer} [writer] Writer to encode to
173483
+ * @returns {$protobuf.Writer} Writer
173484
+ */
173485
+ PartnerPatientLinkExported.encode = function encode(message, writer) {
173486
+ if (!writer)
173487
+ writer = $Writer.create();
173488
+ if (message.id != null && message.hasOwnProperty("id"))
173489
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
173490
+ if (message.partnerSlug != null && message.hasOwnProperty("partnerSlug"))
173491
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.partnerSlug);
173492
+ if (message.memberId != null && message.hasOwnProperty("memberId"))
173493
+ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.memberId);
173494
+ if (message.memberSharedId != null && message.hasOwnProperty("memberSharedId"))
173495
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.memberSharedId);
173496
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
173497
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.externalId);
173498
+ if (message.timeReferred != null && message.hasOwnProperty("timeReferred"))
173499
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.timeReferred);
173500
+ if (message.timeLastSynced != null && message.hasOwnProperty("timeLastSynced"))
173501
+ writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.timeLastSynced);
173502
+ if (message.syncStatus != null && message.hasOwnProperty("syncStatus"))
173503
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.syncStatus);
173504
+ if (message.timeCreated != null && message.hasOwnProperty("timeCreated"))
173505
+ writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.timeCreated);
173506
+ if (message.timeUpdated != null && message.hasOwnProperty("timeUpdated"))
173507
+ writer.uint32(/* id 10, wireType 0 =*/80).uint64(message.timeUpdated);
173508
+ return writer;
173509
+ };
173510
+
173511
+ /**
173512
+ * Encodes the specified PartnerPatientLinkExported message, length delimited. Does not implicitly {@link clinical.PartnerPatientLinkExported.verify|verify} messages.
173513
+ * @function encodeDelimited
173514
+ * @memberof clinical.PartnerPatientLinkExported
173515
+ * @static
173516
+ * @param {clinical.IPartnerPatientLinkExported} message PartnerPatientLinkExported message or plain object to encode
173517
+ * @param {$protobuf.Writer} [writer] Writer to encode to
173518
+ * @returns {$protobuf.Writer} Writer
173519
+ */
173520
+ PartnerPatientLinkExported.encodeDelimited = function encodeDelimited(message, writer) {
173521
+ return this.encode(message, writer).ldelim();
173522
+ };
173523
+
173524
+ /**
173525
+ * Decodes a PartnerPatientLinkExported message from the specified reader or buffer.
173526
+ * @function decode
173527
+ * @memberof clinical.PartnerPatientLinkExported
173528
+ * @static
173529
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
173530
+ * @param {number} [length] Message length if known beforehand
173531
+ * @returns {clinical.PartnerPatientLinkExported} PartnerPatientLinkExported
173532
+ * @throws {Error} If the payload is not a reader or valid buffer
173533
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
173534
+ */
173535
+ PartnerPatientLinkExported.decode = function decode(reader, length) {
173536
+ if (!(reader instanceof $Reader))
173537
+ reader = $Reader.create(reader);
173538
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.clinical.PartnerPatientLinkExported();
173539
+ while (reader.pos < end) {
173540
+ var tag = reader.uint32();
173541
+ switch (tag >>> 3) {
173542
+ case 1:
173543
+ message.id = reader.string();
173544
+ break;
173545
+ case 2:
173546
+ message.partnerSlug = reader.string();
173547
+ break;
173548
+ case 3:
173549
+ message.memberId = reader.int64();
173550
+ break;
173551
+ case 4:
173552
+ message.memberSharedId = reader.string();
173553
+ break;
173554
+ case 5:
173555
+ message.externalId = reader.string();
173556
+ break;
173557
+ case 6:
173558
+ message.timeReferred = reader.uint64();
173559
+ break;
173560
+ case 7:
173561
+ message.timeLastSynced = reader.uint64();
173562
+ break;
173563
+ case 8:
173564
+ message.syncStatus = reader.int32();
173565
+ break;
173566
+ case 9:
173567
+ message.timeCreated = reader.uint64();
173568
+ break;
173569
+ case 10:
173570
+ message.timeUpdated = reader.uint64();
173571
+ break;
173572
+ default:
173573
+ reader.skipType(tag & 7);
173574
+ break;
173575
+ }
173576
+ }
173577
+ return message;
173578
+ };
173579
+
173580
+ /**
173581
+ * Decodes a PartnerPatientLinkExported message from the specified reader or buffer, length delimited.
173582
+ * @function decodeDelimited
173583
+ * @memberof clinical.PartnerPatientLinkExported
173584
+ * @static
173585
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
173586
+ * @returns {clinical.PartnerPatientLinkExported} PartnerPatientLinkExported
173587
+ * @throws {Error} If the payload is not a reader or valid buffer
173588
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
173589
+ */
173590
+ PartnerPatientLinkExported.decodeDelimited = function decodeDelimited(reader) {
173591
+ if (!(reader instanceof $Reader))
173592
+ reader = new $Reader(reader);
173593
+ return this.decode(reader, reader.uint32());
173594
+ };
173595
+
173596
+ /**
173597
+ * Verifies a PartnerPatientLinkExported message.
173598
+ * @function verify
173599
+ * @memberof clinical.PartnerPatientLinkExported
173600
+ * @static
173601
+ * @param {Object.<string,*>} message Plain object to verify
173602
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
173603
+ */
173604
+ PartnerPatientLinkExported.verify = function verify(message) {
173605
+ if (typeof message !== "object" || message === null)
173606
+ return "object expected";
173607
+ if (message.id != null && message.hasOwnProperty("id"))
173608
+ if (!$util.isString(message.id))
173609
+ return "id: string expected";
173610
+ if (message.partnerSlug != null && message.hasOwnProperty("partnerSlug"))
173611
+ if (!$util.isString(message.partnerSlug))
173612
+ return "partnerSlug: string expected";
173613
+ if (message.memberId != null && message.hasOwnProperty("memberId"))
173614
+ if (!$util.isInteger(message.memberId) && !(message.memberId && $util.isInteger(message.memberId.low) && $util.isInteger(message.memberId.high)))
173615
+ return "memberId: integer|Long expected";
173616
+ if (message.memberSharedId != null && message.hasOwnProperty("memberSharedId"))
173617
+ if (!$util.isString(message.memberSharedId))
173618
+ return "memberSharedId: string expected";
173619
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
173620
+ if (!$util.isString(message.externalId))
173621
+ return "externalId: string expected";
173622
+ if (message.timeReferred != null && message.hasOwnProperty("timeReferred"))
173623
+ if (!$util.isInteger(message.timeReferred) && !(message.timeReferred && $util.isInteger(message.timeReferred.low) && $util.isInteger(message.timeReferred.high)))
173624
+ return "timeReferred: integer|Long expected";
173625
+ if (message.timeLastSynced != null && message.hasOwnProperty("timeLastSynced"))
173626
+ if (!$util.isInteger(message.timeLastSynced) && !(message.timeLastSynced && $util.isInteger(message.timeLastSynced.low) && $util.isInteger(message.timeLastSynced.high)))
173627
+ return "timeLastSynced: integer|Long expected";
173628
+ if (message.syncStatus != null && message.hasOwnProperty("syncStatus"))
173629
+ switch (message.syncStatus) {
173630
+ default:
173631
+ return "syncStatus: enum value expected";
173632
+ case 0:
173633
+ case 1:
173634
+ case 2:
173635
+ case 3:
173636
+ break;
173637
+ }
173638
+ if (message.timeCreated != null && message.hasOwnProperty("timeCreated"))
173639
+ if (!$util.isInteger(message.timeCreated) && !(message.timeCreated && $util.isInteger(message.timeCreated.low) && $util.isInteger(message.timeCreated.high)))
173640
+ return "timeCreated: integer|Long expected";
173641
+ if (message.timeUpdated != null && message.hasOwnProperty("timeUpdated"))
173642
+ if (!$util.isInteger(message.timeUpdated) && !(message.timeUpdated && $util.isInteger(message.timeUpdated.low) && $util.isInteger(message.timeUpdated.high)))
173643
+ return "timeUpdated: integer|Long expected";
173644
+ return null;
173645
+ };
173646
+
173647
+ /**
173648
+ * Creates a PartnerPatientLinkExported message from a plain object. Also converts values to their respective internal types.
173649
+ * @function fromObject
173650
+ * @memberof clinical.PartnerPatientLinkExported
173651
+ * @static
173652
+ * @param {Object.<string,*>} object Plain object
173653
+ * @returns {clinical.PartnerPatientLinkExported} PartnerPatientLinkExported
173654
+ */
173655
+ PartnerPatientLinkExported.fromObject = function fromObject(object) {
173656
+ if (object instanceof $root.clinical.PartnerPatientLinkExported)
173657
+ return object;
173658
+ var message = new $root.clinical.PartnerPatientLinkExported();
173659
+ if (object.id != null)
173660
+ message.id = String(object.id);
173661
+ if (object.partnerSlug != null)
173662
+ message.partnerSlug = String(object.partnerSlug);
173663
+ if (object.memberId != null)
173664
+ if ($util.Long)
173665
+ (message.memberId = $util.Long.fromValue(object.memberId)).unsigned = false;
173666
+ else if (typeof object.memberId === "string")
173667
+ message.memberId = parseInt(object.memberId, 10);
173668
+ else if (typeof object.memberId === "number")
173669
+ message.memberId = object.memberId;
173670
+ else if (typeof object.memberId === "object")
173671
+ message.memberId = new $util.LongBits(object.memberId.low >>> 0, object.memberId.high >>> 0).toNumber();
173672
+ if (object.memberSharedId != null)
173673
+ message.memberSharedId = String(object.memberSharedId);
173674
+ if (object.externalId != null)
173675
+ message.externalId = String(object.externalId);
173676
+ if (object.timeReferred != null)
173677
+ if ($util.Long)
173678
+ (message.timeReferred = $util.Long.fromValue(object.timeReferred)).unsigned = true;
173679
+ else if (typeof object.timeReferred === "string")
173680
+ message.timeReferred = parseInt(object.timeReferred, 10);
173681
+ else if (typeof object.timeReferred === "number")
173682
+ message.timeReferred = object.timeReferred;
173683
+ else if (typeof object.timeReferred === "object")
173684
+ message.timeReferred = new $util.LongBits(object.timeReferred.low >>> 0, object.timeReferred.high >>> 0).toNumber(true);
173685
+ if (object.timeLastSynced != null)
173686
+ if ($util.Long)
173687
+ (message.timeLastSynced = $util.Long.fromValue(object.timeLastSynced)).unsigned = true;
173688
+ else if (typeof object.timeLastSynced === "string")
173689
+ message.timeLastSynced = parseInt(object.timeLastSynced, 10);
173690
+ else if (typeof object.timeLastSynced === "number")
173691
+ message.timeLastSynced = object.timeLastSynced;
173692
+ else if (typeof object.timeLastSynced === "object")
173693
+ message.timeLastSynced = new $util.LongBits(object.timeLastSynced.low >>> 0, object.timeLastSynced.high >>> 0).toNumber(true);
173694
+ switch (object.syncStatus) {
173695
+ case "SYNC_STATUS__UNKNOWN":
173696
+ case 0:
173697
+ message.syncStatus = 0;
173698
+ break;
173699
+ case "SYNC_STATUS_SYNCED":
173700
+ case 1:
173701
+ message.syncStatus = 1;
173702
+ break;
173703
+ case "SYNC_STATUS_PENDING":
173704
+ case 2:
173705
+ message.syncStatus = 2;
173706
+ break;
173707
+ case "SYNC_STATUS_FAILED":
173708
+ case 3:
173709
+ message.syncStatus = 3;
173710
+ break;
173711
+ }
173712
+ if (object.timeCreated != null)
173713
+ if ($util.Long)
173714
+ (message.timeCreated = $util.Long.fromValue(object.timeCreated)).unsigned = true;
173715
+ else if (typeof object.timeCreated === "string")
173716
+ message.timeCreated = parseInt(object.timeCreated, 10);
173717
+ else if (typeof object.timeCreated === "number")
173718
+ message.timeCreated = object.timeCreated;
173719
+ else if (typeof object.timeCreated === "object")
173720
+ message.timeCreated = new $util.LongBits(object.timeCreated.low >>> 0, object.timeCreated.high >>> 0).toNumber(true);
173721
+ if (object.timeUpdated != null)
173722
+ if ($util.Long)
173723
+ (message.timeUpdated = $util.Long.fromValue(object.timeUpdated)).unsigned = true;
173724
+ else if (typeof object.timeUpdated === "string")
173725
+ message.timeUpdated = parseInt(object.timeUpdated, 10);
173726
+ else if (typeof object.timeUpdated === "number")
173727
+ message.timeUpdated = object.timeUpdated;
173728
+ else if (typeof object.timeUpdated === "object")
173729
+ message.timeUpdated = new $util.LongBits(object.timeUpdated.low >>> 0, object.timeUpdated.high >>> 0).toNumber(true);
173730
+ return message;
173731
+ };
173732
+
173733
+ /**
173734
+ * Creates a plain object from a PartnerPatientLinkExported message. Also converts values to other types if specified.
173735
+ * @function toObject
173736
+ * @memberof clinical.PartnerPatientLinkExported
173737
+ * @static
173738
+ * @param {clinical.PartnerPatientLinkExported} message PartnerPatientLinkExported
173739
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
173740
+ * @returns {Object.<string,*>} Plain object
173741
+ */
173742
+ PartnerPatientLinkExported.toObject = function toObject(message, options) {
173743
+ if (!options)
173744
+ options = {};
173745
+ var object = {};
173746
+ if (options.defaults) {
173747
+ object.id = "";
173748
+ object.partnerSlug = "";
173749
+ if ($util.Long) {
173750
+ var long = new $util.Long(0, 0, false);
173751
+ object.memberId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
173752
+ } else
173753
+ object.memberId = options.longs === String ? "0" : 0;
173754
+ object.memberSharedId = "";
173755
+ object.externalId = "";
173756
+ if ($util.Long) {
173757
+ var long = new $util.Long(0, 0, true);
173758
+ object.timeReferred = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
173759
+ } else
173760
+ object.timeReferred = options.longs === String ? "0" : 0;
173761
+ if ($util.Long) {
173762
+ var long = new $util.Long(0, 0, true);
173763
+ object.timeLastSynced = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
173764
+ } else
173765
+ object.timeLastSynced = options.longs === String ? "0" : 0;
173766
+ object.syncStatus = options.enums === String ? "SYNC_STATUS__UNKNOWN" : 0;
173767
+ if ($util.Long) {
173768
+ var long = new $util.Long(0, 0, true);
173769
+ object.timeCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
173770
+ } else
173771
+ object.timeCreated = options.longs === String ? "0" : 0;
173772
+ if ($util.Long) {
173773
+ var long = new $util.Long(0, 0, true);
173774
+ object.timeUpdated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
173775
+ } else
173776
+ object.timeUpdated = options.longs === String ? "0" : 0;
173777
+ }
173778
+ if (message.id != null && message.hasOwnProperty("id"))
173779
+ object.id = message.id;
173780
+ if (message.partnerSlug != null && message.hasOwnProperty("partnerSlug"))
173781
+ object.partnerSlug = message.partnerSlug;
173782
+ if (message.memberId != null && message.hasOwnProperty("memberId"))
173783
+ if (typeof message.memberId === "number")
173784
+ object.memberId = options.longs === String ? String(message.memberId) : message.memberId;
173785
+ else
173786
+ object.memberId = options.longs === String ? $util.Long.prototype.toString.call(message.memberId) : options.longs === Number ? new $util.LongBits(message.memberId.low >>> 0, message.memberId.high >>> 0).toNumber() : message.memberId;
173787
+ if (message.memberSharedId != null && message.hasOwnProperty("memberSharedId"))
173788
+ object.memberSharedId = message.memberSharedId;
173789
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
173790
+ object.externalId = message.externalId;
173791
+ if (message.timeReferred != null && message.hasOwnProperty("timeReferred"))
173792
+ if (typeof message.timeReferred === "number")
173793
+ object.timeReferred = options.longs === String ? String(message.timeReferred) : message.timeReferred;
173794
+ else
173795
+ object.timeReferred = options.longs === String ? $util.Long.prototype.toString.call(message.timeReferred) : options.longs === Number ? new $util.LongBits(message.timeReferred.low >>> 0, message.timeReferred.high >>> 0).toNumber(true) : message.timeReferred;
173796
+ if (message.timeLastSynced != null && message.hasOwnProperty("timeLastSynced"))
173797
+ if (typeof message.timeLastSynced === "number")
173798
+ object.timeLastSynced = options.longs === String ? String(message.timeLastSynced) : message.timeLastSynced;
173799
+ else
173800
+ object.timeLastSynced = options.longs === String ? $util.Long.prototype.toString.call(message.timeLastSynced) : options.longs === Number ? new $util.LongBits(message.timeLastSynced.low >>> 0, message.timeLastSynced.high >>> 0).toNumber(true) : message.timeLastSynced;
173801
+ if (message.syncStatus != null && message.hasOwnProperty("syncStatus"))
173802
+ object.syncStatus = options.enums === String ? $root.clinical.SyncStatus[message.syncStatus] : message.syncStatus;
173803
+ if (message.timeCreated != null && message.hasOwnProperty("timeCreated"))
173804
+ if (typeof message.timeCreated === "number")
173805
+ object.timeCreated = options.longs === String ? String(message.timeCreated) : message.timeCreated;
173806
+ else
173807
+ object.timeCreated = options.longs === String ? $util.Long.prototype.toString.call(message.timeCreated) : options.longs === Number ? new $util.LongBits(message.timeCreated.low >>> 0, message.timeCreated.high >>> 0).toNumber(true) : message.timeCreated;
173808
+ if (message.timeUpdated != null && message.hasOwnProperty("timeUpdated"))
173809
+ if (typeof message.timeUpdated === "number")
173810
+ object.timeUpdated = options.longs === String ? String(message.timeUpdated) : message.timeUpdated;
173811
+ else
173812
+ object.timeUpdated = options.longs === String ? $util.Long.prototype.toString.call(message.timeUpdated) : options.longs === Number ? new $util.LongBits(message.timeUpdated.low >>> 0, message.timeUpdated.high >>> 0).toNumber(true) : message.timeUpdated;
173813
+ return object;
173814
+ };
173815
+
173816
+ /**
173817
+ * Converts this PartnerPatientLinkExported to JSON.
173818
+ * @function toJSON
173819
+ * @memberof clinical.PartnerPatientLinkExported
173820
+ * @instance
173821
+ * @returns {Object.<string,*>} JSON object
173822
+ */
173823
+ PartnerPatientLinkExported.prototype.toJSON = function toJSON() {
173824
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
173825
+ };
173826
+
173827
+ return PartnerPatientLinkExported;
173828
+ })();
173829
+
171918
173830
  clinical.UnifiedAvailabilityOffered = (function() {
171919
173831
 
171920
173832
  /**