@headspace/protos-events 1.738.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 +356 -0
  2. package/lib/index.js +1599 -340
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -171611,6 +171611,90 @@ $root.clinical = (function() {
171611
171611
  return values;
171612
171612
  })();
171613
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,44 +171999,38 @@ $root.clinical = (function() {
171915
171999
  return GuardianRelationship;
171916
172000
  })();
171917
172001
 
171918
- clinical.PartnerClinicianExported = (function() {
172002
+ clinical.PartnerAppointmentCreated = (function() {
171919
172003
 
171920
172004
  /**
171921
- * Properties of a PartnerClinicianExported.
172005
+ * Properties of a PartnerAppointmentCreated.
171922
172006
  * @memberof clinical
171923
- * @interface IPartnerClinicianExported
171924
- * @property {string|null} [id] PartnerClinicianExported id
171925
- * @property {clinical.ClinicalPartnerSource|null} [partnerSource] PartnerClinicianExported partnerSource
171926
- * @property {string|null} [externalId] PartnerClinicianExported externalId
171927
- * @property {string|null} [npi] PartnerClinicianExported npi
171928
- * @property {clinical.ClinicianType|null} [providerRole] PartnerClinicianExported providerRole
171929
- * @property {boolean|null} [hasPhysicalLocation] PartnerClinicianExported hasPhysicalLocation
171930
- * @property {string|null} [fullName] PartnerClinicianExported fullName
171931
- * @property {number|Long|null} [timeCreated] PartnerClinicianExported timeCreated
171932
- * @property {number|Long|null} [timeUpdated] PartnerClinicianExported timeUpdated
171933
- * @property {Array.<string>|null} [clinicalSpecialties] PartnerClinicianExported clinicalSpecialties
171934
- * @property {Array.<string>|null} [therapyModalities] PartnerClinicianExported therapyModalities
171935
- * @property {Array.<string>|null} [genders] PartnerClinicianExported genders
171936
- * @property {Array.<string>|null} [races] PartnerClinicianExported races
171937
- * @property {Array.<string>|null} [languageSpecialties] PartnerClinicianExported languageSpecialties
171938
- * @property {Array.<string>|null} [ageRangeSpecialties] PartnerClinicianExported ageRangeSpecialties
171939
- */
171940
-
171941
- /**
171942
- * Constructs a new PartnerClinicianExported.
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.
171943
172027
  * @memberof clinical
171944
- * @classdesc Represents a PartnerClinicianExported.
171945
- * @implements IPartnerClinicianExported
172028
+ * @classdesc Represents a PartnerAppointmentCreated.
172029
+ * @implements IPartnerAppointmentCreated
171946
172030
  * @constructor
171947
- * @param {clinical.IPartnerClinicianExported=} [properties] Properties to set
172031
+ * @param {clinical.IPartnerAppointmentCreated=} [properties] Properties to set
171948
172032
  */
171949
- function PartnerClinicianExported(properties) {
171950
- this.clinicalSpecialties = [];
171951
- this.therapyModalities = [];
171952
- this.genders = [];
171953
- this.races = [];
171954
- this.languageSpecialties = [];
171955
- this.ageRangeSpecialties = [];
172033
+ function PartnerAppointmentCreated(properties) {
171956
172034
  if (properties)
171957
172035
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
171958
172036
  if (properties[keys[i]] != null)
@@ -171960,147 +172038,147 @@ $root.clinical = (function() {
171960
172038
  }
171961
172039
 
171962
172040
  /**
171963
- * PartnerClinicianExported id.
172041
+ * PartnerAppointmentCreated id.
171964
172042
  * @member {string} id
171965
- * @memberof clinical.PartnerClinicianExported
172043
+ * @memberof clinical.PartnerAppointmentCreated
171966
172044
  * @instance
171967
172045
  */
171968
- PartnerClinicianExported.prototype.id = "";
172046
+ PartnerAppointmentCreated.prototype.id = "";
171969
172047
 
171970
172048
  /**
171971
- * PartnerClinicianExported partnerSource.
172049
+ * PartnerAppointmentCreated partnerSource.
171972
172050
  * @member {clinical.ClinicalPartnerSource} partnerSource
171973
- * @memberof clinical.PartnerClinicianExported
172051
+ * @memberof clinical.PartnerAppointmentCreated
171974
172052
  * @instance
171975
172053
  */
171976
- PartnerClinicianExported.prototype.partnerSource = 0;
172054
+ PartnerAppointmentCreated.prototype.partnerSource = 0;
171977
172055
 
171978
172056
  /**
171979
- * PartnerClinicianExported externalId.
172057
+ * PartnerAppointmentCreated externalId.
171980
172058
  * @member {string} externalId
171981
- * @memberof clinical.PartnerClinicianExported
172059
+ * @memberof clinical.PartnerAppointmentCreated
171982
172060
  * @instance
171983
172061
  */
171984
- PartnerClinicianExported.prototype.externalId = "";
172062
+ PartnerAppointmentCreated.prototype.externalId = "";
171985
172063
 
171986
172064
  /**
171987
- * PartnerClinicianExported npi.
171988
- * @member {string} npi
171989
- * @memberof clinical.PartnerClinicianExported
172065
+ * PartnerAppointmentCreated partnerProviderId.
172066
+ * @member {string} partnerProviderId
172067
+ * @memberof clinical.PartnerAppointmentCreated
171990
172068
  * @instance
171991
172069
  */
171992
- PartnerClinicianExported.prototype.npi = "";
172070
+ PartnerAppointmentCreated.prototype.partnerProviderId = "";
171993
172071
 
171994
172072
  /**
171995
- * PartnerClinicianExported providerRole.
171996
- * @member {clinical.ClinicianType} providerRole
171997
- * @memberof clinical.PartnerClinicianExported
172073
+ * PartnerAppointmentCreated gingerMemberId.
172074
+ * @member {number|Long} gingerMemberId
172075
+ * @memberof clinical.PartnerAppointmentCreated
171998
172076
  * @instance
171999
172077
  */
172000
- PartnerClinicianExported.prototype.providerRole = 0;
172078
+ PartnerAppointmentCreated.prototype.gingerMemberId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
172001
172079
 
172002
172080
  /**
172003
- * PartnerClinicianExported hasPhysicalLocation.
172004
- * @member {boolean} hasPhysicalLocation
172005
- * @memberof clinical.PartnerClinicianExported
172081
+ * PartnerAppointmentCreated appointmentStatus.
172082
+ * @member {clinical.ClinicalPartnerAppointmentStatus} appointmentStatus
172083
+ * @memberof clinical.PartnerAppointmentCreated
172006
172084
  * @instance
172007
172085
  */
172008
- PartnerClinicianExported.prototype.hasPhysicalLocation = false;
172086
+ PartnerAppointmentCreated.prototype.appointmentStatus = 0;
172009
172087
 
172010
172088
  /**
172011
- * PartnerClinicianExported fullName.
172012
- * @member {string} fullName
172013
- * @memberof clinical.PartnerClinicianExported
172089
+ * PartnerAppointmentCreated appointmentStartTime.
172090
+ * @member {number|Long} appointmentStartTime
172091
+ * @memberof clinical.PartnerAppointmentCreated
172014
172092
  * @instance
172015
172093
  */
172016
- PartnerClinicianExported.prototype.fullName = "";
172094
+ PartnerAppointmentCreated.prototype.appointmentStartTime = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
172017
172095
 
172018
172096
  /**
172019
- * PartnerClinicianExported timeCreated.
172020
- * @member {number|Long} timeCreated
172021
- * @memberof clinical.PartnerClinicianExported
172097
+ * PartnerAppointmentCreated appointmentEndTime.
172098
+ * @member {number|Long} appointmentEndTime
172099
+ * @memberof clinical.PartnerAppointmentCreated
172022
172100
  * @instance
172023
172101
  */
172024
- PartnerClinicianExported.prototype.timeCreated = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
172102
+ PartnerAppointmentCreated.prototype.appointmentEndTime = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
172025
172103
 
172026
172104
  /**
172027
- * PartnerClinicianExported timeUpdated.
172028
- * @member {number|Long} timeUpdated
172029
- * @memberof clinical.PartnerClinicianExported
172105
+ * PartnerAppointmentCreated durationMinutes.
172106
+ * @member {number} durationMinutes
172107
+ * @memberof clinical.PartnerAppointmentCreated
172030
172108
  * @instance
172031
172109
  */
172032
- PartnerClinicianExported.prototype.timeUpdated = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
172110
+ PartnerAppointmentCreated.prototype.durationMinutes = 0;
172033
172111
 
172034
172112
  /**
172035
- * PartnerClinicianExported clinicalSpecialties.
172036
- * @member {Array.<string>} clinicalSpecialties
172037
- * @memberof clinical.PartnerClinicianExported
172113
+ * PartnerAppointmentCreated locationType.
172114
+ * @member {clinical.ClinicalPartnerAppointmentLocationType} locationType
172115
+ * @memberof clinical.PartnerAppointmentCreated
172038
172116
  * @instance
172039
172117
  */
172040
- PartnerClinicianExported.prototype.clinicalSpecialties = $util.emptyArray;
172118
+ PartnerAppointmentCreated.prototype.locationType = 0;
172041
172119
 
172042
172120
  /**
172043
- * PartnerClinicianExported therapyModalities.
172044
- * @member {Array.<string>} therapyModalities
172045
- * @memberof clinical.PartnerClinicianExported
172121
+ * PartnerAppointmentCreated appointmentType.
172122
+ * @member {clinical.ClinicalPartnerAppointmentType} appointmentType
172123
+ * @memberof clinical.PartnerAppointmentCreated
172046
172124
  * @instance
172047
172125
  */
172048
- PartnerClinicianExported.prototype.therapyModalities = $util.emptyArray;
172126
+ PartnerAppointmentCreated.prototype.appointmentType = 0;
172049
172127
 
172050
172128
  /**
172051
- * PartnerClinicianExported genders.
172052
- * @member {Array.<string>} genders
172053
- * @memberof clinical.PartnerClinicianExported
172129
+ * PartnerAppointmentCreated sessionType.
172130
+ * @member {clinical.ClinicalPartnerAppointmentSessionType} sessionType
172131
+ * @memberof clinical.PartnerAppointmentCreated
172054
172132
  * @instance
172055
172133
  */
172056
- PartnerClinicianExported.prototype.genders = $util.emptyArray;
172134
+ PartnerAppointmentCreated.prototype.sessionType = 0;
172057
172135
 
172058
172136
  /**
172059
- * PartnerClinicianExported races.
172060
- * @member {Array.<string>} races
172061
- * @memberof clinical.PartnerClinicianExported
172137
+ * PartnerAppointmentCreated covered.
172138
+ * @member {boolean} covered
172139
+ * @memberof clinical.PartnerAppointmentCreated
172062
172140
  * @instance
172063
172141
  */
172064
- PartnerClinicianExported.prototype.races = $util.emptyArray;
172142
+ PartnerAppointmentCreated.prototype.covered = false;
172065
172143
 
172066
172144
  /**
172067
- * PartnerClinicianExported languageSpecialties.
172068
- * @member {Array.<string>} languageSpecialties
172069
- * @memberof clinical.PartnerClinicianExported
172145
+ * PartnerAppointmentCreated timeCreated.
172146
+ * @member {number|Long} timeCreated
172147
+ * @memberof clinical.PartnerAppointmentCreated
172070
172148
  * @instance
172071
172149
  */
172072
- PartnerClinicianExported.prototype.languageSpecialties = $util.emptyArray;
172150
+ PartnerAppointmentCreated.prototype.timeCreated = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
172073
172151
 
172074
172152
  /**
172075
- * PartnerClinicianExported ageRangeSpecialties.
172076
- * @member {Array.<string>} ageRangeSpecialties
172077
- * @memberof clinical.PartnerClinicianExported
172153
+ * PartnerAppointmentCreated timeUpdated.
172154
+ * @member {number|Long} timeUpdated
172155
+ * @memberof clinical.PartnerAppointmentCreated
172078
172156
  * @instance
172079
172157
  */
172080
- PartnerClinicianExported.prototype.ageRangeSpecialties = $util.emptyArray;
172158
+ PartnerAppointmentCreated.prototype.timeUpdated = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
172081
172159
 
172082
172160
  /**
172083
- * Creates a new PartnerClinicianExported instance using the specified properties.
172161
+ * Creates a new PartnerAppointmentCreated instance using the specified properties.
172084
172162
  * @function create
172085
- * @memberof clinical.PartnerClinicianExported
172163
+ * @memberof clinical.PartnerAppointmentCreated
172086
172164
  * @static
172087
- * @param {clinical.IPartnerClinicianExported=} [properties] Properties to set
172088
- * @returns {clinical.PartnerClinicianExported} PartnerClinicianExported instance
172165
+ * @param {clinical.IPartnerAppointmentCreated=} [properties] Properties to set
172166
+ * @returns {clinical.PartnerAppointmentCreated} PartnerAppointmentCreated instance
172089
172167
  */
172090
- PartnerClinicianExported.create = function create(properties) {
172091
- return new PartnerClinicianExported(properties);
172168
+ PartnerAppointmentCreated.create = function create(properties) {
172169
+ return new PartnerAppointmentCreated(properties);
172092
172170
  };
172093
172171
 
172094
172172
  /**
172095
- * Encodes the specified PartnerClinicianExported message. Does not implicitly {@link clinical.PartnerClinicianExported.verify|verify} messages.
172173
+ * Encodes the specified PartnerAppointmentCreated message. Does not implicitly {@link clinical.PartnerAppointmentCreated.verify|verify} messages.
172096
172174
  * @function encode
172097
- * @memberof clinical.PartnerClinicianExported
172175
+ * @memberof clinical.PartnerAppointmentCreated
172098
172176
  * @static
172099
- * @param {clinical.IPartnerClinicianExported} message PartnerClinicianExported message or plain object to encode
172177
+ * @param {clinical.IPartnerAppointmentCreated} message PartnerAppointmentCreated message or plain object to encode
172100
172178
  * @param {$protobuf.Writer} [writer] Writer to encode to
172101
172179
  * @returns {$protobuf.Writer} Writer
172102
172180
  */
172103
- PartnerClinicianExported.encode = function encode(message, writer) {
172181
+ PartnerAppointmentCreated.encode = function encode(message, writer) {
172104
172182
  if (!writer)
172105
172183
  writer = $Writer.create();
172106
172184
  if (message.id != null && message.hasOwnProperty("id"))
@@ -172109,67 +172187,61 @@ $root.clinical = (function() {
172109
172187
  writer.uint32(/* id 2, wireType 0 =*/16).int32(message.partnerSource);
172110
172188
  if (message.externalId != null && message.hasOwnProperty("externalId"))
172111
172189
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.externalId);
172112
- if (message.npi != null && message.hasOwnProperty("npi"))
172113
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.npi);
172114
- if (message.providerRole != null && message.hasOwnProperty("providerRole"))
172115
- writer.uint32(/* id 5, wireType 0 =*/40).int32(message.providerRole);
172116
- if (message.hasPhysicalLocation != null && message.hasOwnProperty("hasPhysicalLocation"))
172117
- writer.uint32(/* id 6, wireType 0 =*/48).bool(message.hasPhysicalLocation);
172118
- if (message.fullName != null && message.hasOwnProperty("fullName"))
172119
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.fullName);
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);
172120
172210
  if (message.timeCreated != null && message.hasOwnProperty("timeCreated"))
172121
- writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.timeCreated);
172211
+ writer.uint32(/* id 14, wireType 0 =*/112).uint64(message.timeCreated);
172122
172212
  if (message.timeUpdated != null && message.hasOwnProperty("timeUpdated"))
172123
- writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.timeUpdated);
172124
- if (message.clinicalSpecialties != null && message.clinicalSpecialties.length)
172125
- for (var i = 0; i < message.clinicalSpecialties.length; ++i)
172126
- writer.uint32(/* id 10, wireType 2 =*/82).string(message.clinicalSpecialties[i]);
172127
- if (message.therapyModalities != null && message.therapyModalities.length)
172128
- for (var i = 0; i < message.therapyModalities.length; ++i)
172129
- writer.uint32(/* id 11, wireType 2 =*/90).string(message.therapyModalities[i]);
172130
- if (message.genders != null && message.genders.length)
172131
- for (var i = 0; i < message.genders.length; ++i)
172132
- writer.uint32(/* id 12, wireType 2 =*/98).string(message.genders[i]);
172133
- if (message.races != null && message.races.length)
172134
- for (var i = 0; i < message.races.length; ++i)
172135
- writer.uint32(/* id 13, wireType 2 =*/106).string(message.races[i]);
172136
- if (message.languageSpecialties != null && message.languageSpecialties.length)
172137
- for (var i = 0; i < message.languageSpecialties.length; ++i)
172138
- writer.uint32(/* id 14, wireType 2 =*/114).string(message.languageSpecialties[i]);
172139
- if (message.ageRangeSpecialties != null && message.ageRangeSpecialties.length)
172140
- for (var i = 0; i < message.ageRangeSpecialties.length; ++i)
172141
- writer.uint32(/* id 15, wireType 2 =*/122).string(message.ageRangeSpecialties[i]);
172213
+ writer.uint32(/* id 15, wireType 0 =*/120).uint64(message.timeUpdated);
172142
172214
  return writer;
172143
172215
  };
172144
172216
 
172145
172217
  /**
172146
- * Encodes the specified PartnerClinicianExported message, length delimited. Does not implicitly {@link clinical.PartnerClinicianExported.verify|verify} messages.
172218
+ * Encodes the specified PartnerAppointmentCreated message, length delimited. Does not implicitly {@link clinical.PartnerAppointmentCreated.verify|verify} messages.
172147
172219
  * @function encodeDelimited
172148
- * @memberof clinical.PartnerClinicianExported
172220
+ * @memberof clinical.PartnerAppointmentCreated
172149
172221
  * @static
172150
- * @param {clinical.IPartnerClinicianExported} message PartnerClinicianExported message or plain object to encode
172222
+ * @param {clinical.IPartnerAppointmentCreated} message PartnerAppointmentCreated message or plain object to encode
172151
172223
  * @param {$protobuf.Writer} [writer] Writer to encode to
172152
172224
  * @returns {$protobuf.Writer} Writer
172153
172225
  */
172154
- PartnerClinicianExported.encodeDelimited = function encodeDelimited(message, writer) {
172226
+ PartnerAppointmentCreated.encodeDelimited = function encodeDelimited(message, writer) {
172155
172227
  return this.encode(message, writer).ldelim();
172156
172228
  };
172157
172229
 
172158
172230
  /**
172159
- * Decodes a PartnerClinicianExported message from the specified reader or buffer.
172231
+ * Decodes a PartnerAppointmentCreated message from the specified reader or buffer.
172160
172232
  * @function decode
172161
- * @memberof clinical.PartnerClinicianExported
172233
+ * @memberof clinical.PartnerAppointmentCreated
172162
172234
  * @static
172163
172235
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
172164
172236
  * @param {number} [length] Message length if known beforehand
172165
- * @returns {clinical.PartnerClinicianExported} PartnerClinicianExported
172237
+ * @returns {clinical.PartnerAppointmentCreated} PartnerAppointmentCreated
172166
172238
  * @throws {Error} If the payload is not a reader or valid buffer
172167
172239
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
172168
172240
  */
172169
- PartnerClinicianExported.decode = function decode(reader, length) {
172241
+ PartnerAppointmentCreated.decode = function decode(reader, length) {
172170
172242
  if (!(reader instanceof $Reader))
172171
172243
  reader = $Reader.create(reader);
172172
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.clinical.PartnerClinicianExported();
172244
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.clinical.PartnerAppointmentCreated();
172173
172245
  while (reader.pos < end) {
172174
172246
  var tag = reader.uint32();
172175
172247
  switch (tag >>> 3) {
@@ -172183,52 +172255,40 @@ $root.clinical = (function() {
172183
172255
  message.externalId = reader.string();
172184
172256
  break;
172185
172257
  case 4:
172186
- message.npi = reader.string();
172258
+ message.partnerProviderId = reader.string();
172187
172259
  break;
172188
172260
  case 5:
172189
- message.providerRole = reader.int32();
172261
+ message.gingerMemberId = reader.int64();
172190
172262
  break;
172191
172263
  case 6:
172192
- message.hasPhysicalLocation = reader.bool();
172264
+ message.appointmentStatus = reader.int32();
172193
172265
  break;
172194
172266
  case 7:
172195
- message.fullName = reader.string();
172267
+ message.appointmentStartTime = reader.uint64();
172196
172268
  break;
172197
172269
  case 8:
172198
- message.timeCreated = reader.uint64();
172270
+ message.appointmentEndTime = reader.uint64();
172199
172271
  break;
172200
172272
  case 9:
172201
- message.timeUpdated = reader.uint64();
172273
+ message.durationMinutes = reader.int32();
172202
172274
  break;
172203
172275
  case 10:
172204
- if (!(message.clinicalSpecialties && message.clinicalSpecialties.length))
172205
- message.clinicalSpecialties = [];
172206
- message.clinicalSpecialties.push(reader.string());
172276
+ message.locationType = reader.int32();
172207
172277
  break;
172208
172278
  case 11:
172209
- if (!(message.therapyModalities && message.therapyModalities.length))
172210
- message.therapyModalities = [];
172211
- message.therapyModalities.push(reader.string());
172279
+ message.appointmentType = reader.int32();
172212
172280
  break;
172213
172281
  case 12:
172214
- if (!(message.genders && message.genders.length))
172215
- message.genders = [];
172216
- message.genders.push(reader.string());
172282
+ message.sessionType = reader.int32();
172217
172283
  break;
172218
172284
  case 13:
172219
- if (!(message.races && message.races.length))
172220
- message.races = [];
172221
- message.races.push(reader.string());
172285
+ message.covered = reader.bool();
172222
172286
  break;
172223
172287
  case 14:
172224
- if (!(message.languageSpecialties && message.languageSpecialties.length))
172225
- message.languageSpecialties = [];
172226
- message.languageSpecialties.push(reader.string());
172288
+ message.timeCreated = reader.uint64();
172227
172289
  break;
172228
172290
  case 15:
172229
- if (!(message.ageRangeSpecialties && message.ageRangeSpecialties.length))
172230
- message.ageRangeSpecialties = [];
172231
- message.ageRangeSpecialties.push(reader.string());
172291
+ message.timeUpdated = reader.uint64();
172232
172292
  break;
172233
172293
  default:
172234
172294
  reader.skipType(tag & 7);
@@ -172239,30 +172299,30 @@ $root.clinical = (function() {
172239
172299
  };
172240
172300
 
172241
172301
  /**
172242
- * Decodes a PartnerClinicianExported message from the specified reader or buffer, length delimited.
172302
+ * Decodes a PartnerAppointmentCreated message from the specified reader or buffer, length delimited.
172243
172303
  * @function decodeDelimited
172244
- * @memberof clinical.PartnerClinicianExported
172304
+ * @memberof clinical.PartnerAppointmentCreated
172245
172305
  * @static
172246
172306
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
172247
- * @returns {clinical.PartnerClinicianExported} PartnerClinicianExported
172307
+ * @returns {clinical.PartnerAppointmentCreated} PartnerAppointmentCreated
172248
172308
  * @throws {Error} If the payload is not a reader or valid buffer
172249
172309
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
172250
172310
  */
172251
- PartnerClinicianExported.decodeDelimited = function decodeDelimited(reader) {
172311
+ PartnerAppointmentCreated.decodeDelimited = function decodeDelimited(reader) {
172252
172312
  if (!(reader instanceof $Reader))
172253
172313
  reader = new $Reader(reader);
172254
172314
  return this.decode(reader, reader.uint32());
172255
172315
  };
172256
172316
 
172257
172317
  /**
172258
- * Verifies a PartnerClinicianExported message.
172318
+ * Verifies a PartnerAppointmentCreated message.
172259
172319
  * @function verify
172260
- * @memberof clinical.PartnerClinicianExported
172320
+ * @memberof clinical.PartnerAppointmentCreated
172261
172321
  * @static
172262
172322
  * @param {Object.<string,*>} message Plain object to verify
172263
172323
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
172264
172324
  */
172265
- PartnerClinicianExported.verify = function verify(message) {
172325
+ PartnerAppointmentCreated.verify = function verify(message) {
172266
172326
  if (typeof message !== "object" || message === null)
172267
172327
  return "object expected";
172268
172328
  if (message.id != null && message.hasOwnProperty("id"))
@@ -172279,87 +172339,90 @@ $root.clinical = (function() {
172279
172339
  if (message.externalId != null && message.hasOwnProperty("externalId"))
172280
172340
  if (!$util.isString(message.externalId))
172281
172341
  return "externalId: string expected";
172282
- if (message.npi != null && message.hasOwnProperty("npi"))
172283
- if (!$util.isString(message.npi))
172284
- return "npi: string expected";
172285
- if (message.providerRole != null && message.hasOwnProperty("providerRole"))
172286
- switch (message.providerRole) {
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) {
172287
172350
  default:
172288
- return "providerRole: enum value expected";
172351
+ return "appointmentStatus: enum value expected";
172289
172352
  case 0:
172290
172353
  case 1:
172291
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:
172292
172364
  break;
172293
172365
  }
172294
- if (message.hasPhysicalLocation != null && message.hasOwnProperty("hasPhysicalLocation"))
172295
- if (typeof message.hasPhysicalLocation !== "boolean")
172296
- return "hasPhysicalLocation: boolean expected";
172297
- if (message.fullName != null && message.hasOwnProperty("fullName"))
172298
- if (!$util.isString(message.fullName))
172299
- return "fullName: string expected";
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";
172300
172405
  if (message.timeCreated != null && message.hasOwnProperty("timeCreated"))
172301
172406
  if (!$util.isInteger(message.timeCreated) && !(message.timeCreated && $util.isInteger(message.timeCreated.low) && $util.isInteger(message.timeCreated.high)))
172302
172407
  return "timeCreated: integer|Long expected";
172303
172408
  if (message.timeUpdated != null && message.hasOwnProperty("timeUpdated"))
172304
172409
  if (!$util.isInteger(message.timeUpdated) && !(message.timeUpdated && $util.isInteger(message.timeUpdated.low) && $util.isInteger(message.timeUpdated.high)))
172305
172410
  return "timeUpdated: integer|Long expected";
172306
- if (message.clinicalSpecialties != null && message.hasOwnProperty("clinicalSpecialties")) {
172307
- if (!Array.isArray(message.clinicalSpecialties))
172308
- return "clinicalSpecialties: array expected";
172309
- for (var i = 0; i < message.clinicalSpecialties.length; ++i)
172310
- if (!$util.isString(message.clinicalSpecialties[i]))
172311
- return "clinicalSpecialties: string[] expected";
172312
- }
172313
- if (message.therapyModalities != null && message.hasOwnProperty("therapyModalities")) {
172314
- if (!Array.isArray(message.therapyModalities))
172315
- return "therapyModalities: array expected";
172316
- for (var i = 0; i < message.therapyModalities.length; ++i)
172317
- if (!$util.isString(message.therapyModalities[i]))
172318
- return "therapyModalities: string[] expected";
172319
- }
172320
- if (message.genders != null && message.hasOwnProperty("genders")) {
172321
- if (!Array.isArray(message.genders))
172322
- return "genders: array expected";
172323
- for (var i = 0; i < message.genders.length; ++i)
172324
- if (!$util.isString(message.genders[i]))
172325
- return "genders: string[] expected";
172326
- }
172327
- if (message.races != null && message.hasOwnProperty("races")) {
172328
- if (!Array.isArray(message.races))
172329
- return "races: array expected";
172330
- for (var i = 0; i < message.races.length; ++i)
172331
- if (!$util.isString(message.races[i]))
172332
- return "races: string[] expected";
172333
- }
172334
- if (message.languageSpecialties != null && message.hasOwnProperty("languageSpecialties")) {
172335
- if (!Array.isArray(message.languageSpecialties))
172336
- return "languageSpecialties: array expected";
172337
- for (var i = 0; i < message.languageSpecialties.length; ++i)
172338
- if (!$util.isString(message.languageSpecialties[i]))
172339
- return "languageSpecialties: string[] expected";
172340
- }
172341
- if (message.ageRangeSpecialties != null && message.hasOwnProperty("ageRangeSpecialties")) {
172342
- if (!Array.isArray(message.ageRangeSpecialties))
172343
- return "ageRangeSpecialties: array expected";
172344
- for (var i = 0; i < message.ageRangeSpecialties.length; ++i)
172345
- if (!$util.isString(message.ageRangeSpecialties[i]))
172346
- return "ageRangeSpecialties: string[] expected";
172347
- }
172348
172411
  return null;
172349
172412
  };
172350
172413
 
172351
172414
  /**
172352
- * Creates a PartnerClinicianExported message from a plain object. Also converts values to their respective internal types.
172415
+ * Creates a PartnerAppointmentCreated message from a plain object. Also converts values to their respective internal types.
172353
172416
  * @function fromObject
172354
- * @memberof clinical.PartnerClinicianExported
172417
+ * @memberof clinical.PartnerAppointmentCreated
172355
172418
  * @static
172356
172419
  * @param {Object.<string,*>} object Plain object
172357
- * @returns {clinical.PartnerClinicianExported} PartnerClinicianExported
172420
+ * @returns {clinical.PartnerAppointmentCreated} PartnerAppointmentCreated
172358
172421
  */
172359
- PartnerClinicianExported.fromObject = function fromObject(object) {
172360
- if (object instanceof $root.clinical.PartnerClinicianExported)
172422
+ PartnerAppointmentCreated.fromObject = function fromObject(object) {
172423
+ if (object instanceof $root.clinical.PartnerAppointmentCreated)
172361
172424
  return object;
172362
- var message = new $root.clinical.PartnerClinicianExported();
172425
+ var message = new $root.clinical.PartnerAppointmentCreated();
172363
172426
  if (object.id != null)
172364
172427
  message.id = String(object.id);
172365
172428
  switch (object.partnerSource) {
@@ -172374,26 +172437,131 @@ $root.clinical = (function() {
172374
172437
  }
172375
172438
  if (object.externalId != null)
172376
172439
  message.externalId = String(object.externalId);
172377
- if (object.npi != null)
172378
- message.npi = String(object.npi);
172379
- switch (object.providerRole) {
172380
- case "CLINICIAN_TYPE_UNKNOWN":
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":
172381
172453
  case 0:
172382
- message.providerRole = 0;
172454
+ message.appointmentStatus = 0;
172383
172455
  break;
172384
- case "CLINICIAN_TYPE_THERAPIST":
172456
+ case "CLINICAL_PARTNER_APPOINTMENT_STATUS_TENTATIVE":
172385
172457
  case 1:
172386
- message.providerRole = 1;
172458
+ message.appointmentStatus = 1;
172387
172459
  break;
172388
- case "CLINICIAN_TYPE_PSYCHIATRIST":
172460
+ case "CLINICAL_PARTNER_APPOINTMENT_STATUS_SCHEDULED":
172389
172461
  case 2:
172390
- message.providerRole = 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;
172391
172499
  break;
172392
172500
  }
172393
- if (object.hasPhysicalLocation != null)
172394
- message.hasPhysicalLocation = Boolean(object.hasPhysicalLocation);
172395
- if (object.fullName != null)
172396
- message.fullName = String(object.fullName);
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);
172397
172565
  if (object.timeCreated != null)
172398
172566
  if ($util.Long)
172399
172567
  (message.timeCreated = $util.Long.fromValue(object.timeCreated)).unsigned = true;
@@ -172412,80 +172580,48 @@ $root.clinical = (function() {
172412
172580
  message.timeUpdated = object.timeUpdated;
172413
172581
  else if (typeof object.timeUpdated === "object")
172414
172582
  message.timeUpdated = new $util.LongBits(object.timeUpdated.low >>> 0, object.timeUpdated.high >>> 0).toNumber(true);
172415
- if (object.clinicalSpecialties) {
172416
- if (!Array.isArray(object.clinicalSpecialties))
172417
- throw TypeError(".clinical.PartnerClinicianExported.clinicalSpecialties: array expected");
172418
- message.clinicalSpecialties = [];
172419
- for (var i = 0; i < object.clinicalSpecialties.length; ++i)
172420
- message.clinicalSpecialties[i] = String(object.clinicalSpecialties[i]);
172421
- }
172422
- if (object.therapyModalities) {
172423
- if (!Array.isArray(object.therapyModalities))
172424
- throw TypeError(".clinical.PartnerClinicianExported.therapyModalities: array expected");
172425
- message.therapyModalities = [];
172426
- for (var i = 0; i < object.therapyModalities.length; ++i)
172427
- message.therapyModalities[i] = String(object.therapyModalities[i]);
172428
- }
172429
- if (object.genders) {
172430
- if (!Array.isArray(object.genders))
172431
- throw TypeError(".clinical.PartnerClinicianExported.genders: array expected");
172432
- message.genders = [];
172433
- for (var i = 0; i < object.genders.length; ++i)
172434
- message.genders[i] = String(object.genders[i]);
172435
- }
172436
- if (object.races) {
172437
- if (!Array.isArray(object.races))
172438
- throw TypeError(".clinical.PartnerClinicianExported.races: array expected");
172439
- message.races = [];
172440
- for (var i = 0; i < object.races.length; ++i)
172441
- message.races[i] = String(object.races[i]);
172442
- }
172443
- if (object.languageSpecialties) {
172444
- if (!Array.isArray(object.languageSpecialties))
172445
- throw TypeError(".clinical.PartnerClinicianExported.languageSpecialties: array expected");
172446
- message.languageSpecialties = [];
172447
- for (var i = 0; i < object.languageSpecialties.length; ++i)
172448
- message.languageSpecialties[i] = String(object.languageSpecialties[i]);
172449
- }
172450
- if (object.ageRangeSpecialties) {
172451
- if (!Array.isArray(object.ageRangeSpecialties))
172452
- throw TypeError(".clinical.PartnerClinicianExported.ageRangeSpecialties: array expected");
172453
- message.ageRangeSpecialties = [];
172454
- for (var i = 0; i < object.ageRangeSpecialties.length; ++i)
172455
- message.ageRangeSpecialties[i] = String(object.ageRangeSpecialties[i]);
172456
- }
172457
172583
  return message;
172458
172584
  };
172459
172585
 
172460
172586
  /**
172461
- * Creates a plain object from a PartnerClinicianExported message. Also converts values to other types if specified.
172587
+ * Creates a plain object from a PartnerAppointmentCreated message. Also converts values to other types if specified.
172462
172588
  * @function toObject
172463
- * @memberof clinical.PartnerClinicianExported
172589
+ * @memberof clinical.PartnerAppointmentCreated
172464
172590
  * @static
172465
- * @param {clinical.PartnerClinicianExported} message PartnerClinicianExported
172591
+ * @param {clinical.PartnerAppointmentCreated} message PartnerAppointmentCreated
172466
172592
  * @param {$protobuf.IConversionOptions} [options] Conversion options
172467
172593
  * @returns {Object.<string,*>} Plain object
172468
172594
  */
172469
- PartnerClinicianExported.toObject = function toObject(message, options) {
172595
+ PartnerAppointmentCreated.toObject = function toObject(message, options) {
172470
172596
  if (!options)
172471
172597
  options = {};
172472
172598
  var object = {};
172473
- if (options.arrays || options.defaults) {
172474
- object.clinicalSpecialties = [];
172475
- object.therapyModalities = [];
172476
- object.genders = [];
172477
- object.races = [];
172478
- object.languageSpecialties = [];
172479
- object.ageRangeSpecialties = [];
172480
- }
172481
172599
  if (options.defaults) {
172482
172600
  object.id = "";
172483
172601
  object.partnerSource = options.enums === String ? "CLINICAL_PARTNER_SOURCE_UNKNOWN" : 0;
172484
172602
  object.externalId = "";
172485
- object.npi = "";
172486
- object.providerRole = options.enums === String ? "CLINICIAN_TYPE_UNKNOWN" : 0;
172487
- object.hasPhysicalLocation = false;
172488
- object.fullName = "";
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;
172489
172625
  if ($util.Long) {
172490
172626
  var long = new $util.Long(0, 0, true);
172491
172627
  object.timeCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
@@ -172503,14 +172639,35 @@ $root.clinical = (function() {
172503
172639
  object.partnerSource = options.enums === String ? $root.clinical.ClinicalPartnerSource[message.partnerSource] : message.partnerSource;
172504
172640
  if (message.externalId != null && message.hasOwnProperty("externalId"))
172505
172641
  object.externalId = message.externalId;
172506
- if (message.npi != null && message.hasOwnProperty("npi"))
172507
- object.npi = message.npi;
172508
- if (message.providerRole != null && message.hasOwnProperty("providerRole"))
172509
- object.providerRole = options.enums === String ? $root.clinical.ClinicianType[message.providerRole] : message.providerRole;
172510
- if (message.hasPhysicalLocation != null && message.hasOwnProperty("hasPhysicalLocation"))
172511
- object.hasPhysicalLocation = message.hasPhysicalLocation;
172512
- if (message.fullName != null && message.hasOwnProperty("fullName"))
172513
- object.fullName = message.fullName;
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;
172514
172671
  if (message.timeCreated != null && message.hasOwnProperty("timeCreated"))
172515
172672
  if (typeof message.timeCreated === "number")
172516
172673
  object.timeCreated = options.longs === String ? String(message.timeCreated) : message.timeCreated;
@@ -172521,51 +172678,1153 @@ $root.clinical = (function() {
172521
172678
  object.timeUpdated = options.longs === String ? String(message.timeUpdated) : message.timeUpdated;
172522
172679
  else
172523
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;
172524
- if (message.clinicalSpecialties && message.clinicalSpecialties.length) {
172525
- object.clinicalSpecialties = [];
172526
- for (var j = 0; j < message.clinicalSpecialties.length; ++j)
172527
- object.clinicalSpecialties[j] = message.clinicalSpecialties[j];
172528
- }
172529
- if (message.therapyModalities && message.therapyModalities.length) {
172530
- object.therapyModalities = [];
172531
- for (var j = 0; j < message.therapyModalities.length; ++j)
172532
- object.therapyModalities[j] = message.therapyModalities[j];
172533
- }
172534
- if (message.genders && message.genders.length) {
172535
- object.genders = [];
172536
- for (var j = 0; j < message.genders.length; ++j)
172537
- object.genders[j] = message.genders[j];
172538
- }
172539
- if (message.races && message.races.length) {
172540
- object.races = [];
172541
- for (var j = 0; j < message.races.length; ++j)
172542
- object.races[j] = message.races[j];
172543
- }
172544
- if (message.languageSpecialties && message.languageSpecialties.length) {
172545
- object.languageSpecialties = [];
172546
- for (var j = 0; j < message.languageSpecialties.length; ++j)
172547
- object.languageSpecialties[j] = message.languageSpecialties[j];
172548
- }
172549
- if (message.ageRangeSpecialties && message.ageRangeSpecialties.length) {
172550
- object.ageRangeSpecialties = [];
172551
- for (var j = 0; j < message.ageRangeSpecialties.length; ++j)
172552
- object.ageRangeSpecialties[j] = message.ageRangeSpecialties[j];
172553
- }
172554
172681
  return object;
172555
172682
  };
172556
172683
 
172557
172684
  /**
172558
- * Converts this PartnerClinicianExported to JSON.
172685
+ * Converts this PartnerAppointmentCreated to JSON.
172559
172686
  * @function toJSON
172560
- * @memberof clinical.PartnerClinicianExported
172687
+ * @memberof clinical.PartnerAppointmentCreated
172561
172688
  * @instance
172562
172689
  * @returns {Object.<string,*>} JSON object
172563
172690
  */
172564
- PartnerClinicianExported.prototype.toJSON = function toJSON() {
172691
+ PartnerAppointmentCreated.prototype.toJSON = function toJSON() {
172565
172692
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
172566
172693
  };
172567
172694
 
172568
- return PartnerClinicianExported;
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;
172569
173828
  })();
172570
173829
 
172571
173830
  clinical.UnifiedAvailabilityOffered = (function() {