@headspace/protos-events 1.742.0 → 1.743.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +234 -0
- package/lib/index.js +625 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -58442,6 +58442,12 @@ export namespace clinical {
|
|
|
58442
58442
|
|
|
58443
58443
|
/** List of clinician's gender identities. Exported from: ProviderAttribute model in ginger-web */
|
|
58444
58444
|
genders?: (clinical.ClinicianGender[]|null);
|
|
58445
|
+
|
|
58446
|
+
/**
|
|
58447
|
+
* List of clinician licenses. Exported from License model in HeadspaceMeditation/web.
|
|
58448
|
+
* Includes all licenses (not filtered for validity) since valid_start and valid_end dates are included.
|
|
58449
|
+
*/
|
|
58450
|
+
licenses?: (clinical.IClinicianLicenseExported[]|null);
|
|
58445
58451
|
}
|
|
58446
58452
|
|
|
58447
58453
|
/** Represents a Clinician. */
|
|
@@ -58543,6 +58549,12 @@ export namespace clinical {
|
|
|
58543
58549
|
/** List of clinician's gender identities. Exported from: ProviderAttribute model in ginger-web */
|
|
58544
58550
|
public genders: clinical.ClinicianGender[];
|
|
58545
58551
|
|
|
58552
|
+
/**
|
|
58553
|
+
* List of clinician licenses. Exported from License model in HeadspaceMeditation/web.
|
|
58554
|
+
* Includes all licenses (not filtered for validity) since valid_start and valid_end dates are included.
|
|
58555
|
+
*/
|
|
58556
|
+
public licenses: clinical.IClinicianLicenseExported[];
|
|
58557
|
+
|
|
58546
58558
|
/**
|
|
58547
58559
|
* Creates a new Clinician instance using the specified properties.
|
|
58548
58560
|
* @param [properties] Properties to set
|
|
@@ -58788,6 +58800,228 @@ export namespace clinical {
|
|
|
58788
58800
|
CLINICIAN_AGE_RANGE_SPECIALTY_ADULT = 2
|
|
58789
58801
|
}
|
|
58790
58802
|
|
|
58803
|
+
/** Properties of an InsuranceCarrierExported. */
|
|
58804
|
+
interface IInsuranceCarrierExported {
|
|
58805
|
+
|
|
58806
|
+
/** Primary key of the carrier */
|
|
58807
|
+
id?: (number|null);
|
|
58808
|
+
|
|
58809
|
+
/** Unique name of the carrier */
|
|
58810
|
+
name?: (string|null);
|
|
58811
|
+
|
|
58812
|
+
/** Whether this carrier is currently active */
|
|
58813
|
+
active?: (boolean|null);
|
|
58814
|
+
}
|
|
58815
|
+
|
|
58816
|
+
/** Represents an InsuranceCarrierExported. */
|
|
58817
|
+
class InsuranceCarrierExported implements IInsuranceCarrierExported {
|
|
58818
|
+
|
|
58819
|
+
/**
|
|
58820
|
+
* Constructs a new InsuranceCarrierExported.
|
|
58821
|
+
* @param [properties] Properties to set
|
|
58822
|
+
*/
|
|
58823
|
+
constructor(properties?: clinical.IInsuranceCarrierExported);
|
|
58824
|
+
|
|
58825
|
+
/** Primary key of the carrier */
|
|
58826
|
+
public id: number;
|
|
58827
|
+
|
|
58828
|
+
/** Unique name of the carrier */
|
|
58829
|
+
public name: string;
|
|
58830
|
+
|
|
58831
|
+
/** Whether this carrier is currently active */
|
|
58832
|
+
public active: boolean;
|
|
58833
|
+
|
|
58834
|
+
/**
|
|
58835
|
+
* Creates a new InsuranceCarrierExported instance using the specified properties.
|
|
58836
|
+
* @param [properties] Properties to set
|
|
58837
|
+
* @returns InsuranceCarrierExported instance
|
|
58838
|
+
*/
|
|
58839
|
+
public static create(properties?: clinical.IInsuranceCarrierExported): clinical.InsuranceCarrierExported;
|
|
58840
|
+
|
|
58841
|
+
/**
|
|
58842
|
+
* Encodes the specified InsuranceCarrierExported message. Does not implicitly {@link clinical.InsuranceCarrierExported.verify|verify} messages.
|
|
58843
|
+
* @param message InsuranceCarrierExported message or plain object to encode
|
|
58844
|
+
* @param [writer] Writer to encode to
|
|
58845
|
+
* @returns Writer
|
|
58846
|
+
*/
|
|
58847
|
+
public static encode(message: clinical.IInsuranceCarrierExported, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
58848
|
+
|
|
58849
|
+
/**
|
|
58850
|
+
* Encodes the specified InsuranceCarrierExported message, length delimited. Does not implicitly {@link clinical.InsuranceCarrierExported.verify|verify} messages.
|
|
58851
|
+
* @param message InsuranceCarrierExported message or plain object to encode
|
|
58852
|
+
* @param [writer] Writer to encode to
|
|
58853
|
+
* @returns Writer
|
|
58854
|
+
*/
|
|
58855
|
+
public static encodeDelimited(message: clinical.IInsuranceCarrierExported, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
58856
|
+
|
|
58857
|
+
/**
|
|
58858
|
+
* Decodes an InsuranceCarrierExported message from the specified reader or buffer.
|
|
58859
|
+
* @param reader Reader or buffer to decode from
|
|
58860
|
+
* @param [length] Message length if known beforehand
|
|
58861
|
+
* @returns InsuranceCarrierExported
|
|
58862
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58863
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58864
|
+
*/
|
|
58865
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): clinical.InsuranceCarrierExported;
|
|
58866
|
+
|
|
58867
|
+
/**
|
|
58868
|
+
* Decodes an InsuranceCarrierExported message from the specified reader or buffer, length delimited.
|
|
58869
|
+
* @param reader Reader or buffer to decode from
|
|
58870
|
+
* @returns InsuranceCarrierExported
|
|
58871
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58872
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58873
|
+
*/
|
|
58874
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): clinical.InsuranceCarrierExported;
|
|
58875
|
+
|
|
58876
|
+
/**
|
|
58877
|
+
* Verifies an InsuranceCarrierExported message.
|
|
58878
|
+
* @param message Plain object to verify
|
|
58879
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
58880
|
+
*/
|
|
58881
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
58882
|
+
|
|
58883
|
+
/**
|
|
58884
|
+
* Creates an InsuranceCarrierExported message from a plain object. Also converts values to their respective internal types.
|
|
58885
|
+
* @param object Plain object
|
|
58886
|
+
* @returns InsuranceCarrierExported
|
|
58887
|
+
*/
|
|
58888
|
+
public static fromObject(object: { [k: string]: any }): clinical.InsuranceCarrierExported;
|
|
58889
|
+
|
|
58890
|
+
/**
|
|
58891
|
+
* Creates a plain object from an InsuranceCarrierExported message. Also converts values to other types if specified.
|
|
58892
|
+
* @param message InsuranceCarrierExported
|
|
58893
|
+
* @param [options] Conversion options
|
|
58894
|
+
* @returns Plain object
|
|
58895
|
+
*/
|
|
58896
|
+
public static toObject(message: clinical.InsuranceCarrierExported, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
58897
|
+
|
|
58898
|
+
/**
|
|
58899
|
+
* Converts this InsuranceCarrierExported to JSON.
|
|
58900
|
+
* @returns JSON object
|
|
58901
|
+
*/
|
|
58902
|
+
public toJSON(): { [k: string]: any };
|
|
58903
|
+
}
|
|
58904
|
+
|
|
58905
|
+
/** Properties of a ClinicianLicenseExported. */
|
|
58906
|
+
interface IClinicianLicenseExported {
|
|
58907
|
+
|
|
58908
|
+
/** Primary key of the license */
|
|
58909
|
+
id?: (number|null);
|
|
58910
|
+
|
|
58911
|
+
/** State abbreviation where the license is issued (e.g., "CA", "NY") */
|
|
58912
|
+
stateLocation?: (string|null);
|
|
58913
|
+
|
|
58914
|
+
/** Whether intakes are enabled for this license */
|
|
58915
|
+
intakesEnabled?: (boolean|null);
|
|
58916
|
+
|
|
58917
|
+
/** List of insurance carriers associated with this license */
|
|
58918
|
+
carriers?: (clinical.IInsuranceCarrierExported[]|null);
|
|
58919
|
+
|
|
58920
|
+
/** UTC timestamp in milliseconds since epoch when the license becomes valid */
|
|
58921
|
+
validStart?: (number|Long|null);
|
|
58922
|
+
|
|
58923
|
+
/** UTC timestamp in milliseconds since epoch when the license expires */
|
|
58924
|
+
validEnd?: (number|Long|null);
|
|
58925
|
+
}
|
|
58926
|
+
|
|
58927
|
+
/** Represents a ClinicianLicenseExported. */
|
|
58928
|
+
class ClinicianLicenseExported implements IClinicianLicenseExported {
|
|
58929
|
+
|
|
58930
|
+
/**
|
|
58931
|
+
* Constructs a new ClinicianLicenseExported.
|
|
58932
|
+
* @param [properties] Properties to set
|
|
58933
|
+
*/
|
|
58934
|
+
constructor(properties?: clinical.IClinicianLicenseExported);
|
|
58935
|
+
|
|
58936
|
+
/** Primary key of the license */
|
|
58937
|
+
public id: number;
|
|
58938
|
+
|
|
58939
|
+
/** State abbreviation where the license is issued (e.g., "CA", "NY") */
|
|
58940
|
+
public stateLocation: string;
|
|
58941
|
+
|
|
58942
|
+
/** Whether intakes are enabled for this license */
|
|
58943
|
+
public intakesEnabled: boolean;
|
|
58944
|
+
|
|
58945
|
+
/** List of insurance carriers associated with this license */
|
|
58946
|
+
public carriers: clinical.IInsuranceCarrierExported[];
|
|
58947
|
+
|
|
58948
|
+
/** UTC timestamp in milliseconds since epoch when the license becomes valid */
|
|
58949
|
+
public validStart: (number|Long);
|
|
58950
|
+
|
|
58951
|
+
/** UTC timestamp in milliseconds since epoch when the license expires */
|
|
58952
|
+
public validEnd: (number|Long);
|
|
58953
|
+
|
|
58954
|
+
/**
|
|
58955
|
+
* Creates a new ClinicianLicenseExported instance using the specified properties.
|
|
58956
|
+
* @param [properties] Properties to set
|
|
58957
|
+
* @returns ClinicianLicenseExported instance
|
|
58958
|
+
*/
|
|
58959
|
+
public static create(properties?: clinical.IClinicianLicenseExported): clinical.ClinicianLicenseExported;
|
|
58960
|
+
|
|
58961
|
+
/**
|
|
58962
|
+
* Encodes the specified ClinicianLicenseExported message. Does not implicitly {@link clinical.ClinicianLicenseExported.verify|verify} messages.
|
|
58963
|
+
* @param message ClinicianLicenseExported message or plain object to encode
|
|
58964
|
+
* @param [writer] Writer to encode to
|
|
58965
|
+
* @returns Writer
|
|
58966
|
+
*/
|
|
58967
|
+
public static encode(message: clinical.IClinicianLicenseExported, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
58968
|
+
|
|
58969
|
+
/**
|
|
58970
|
+
* Encodes the specified ClinicianLicenseExported message, length delimited. Does not implicitly {@link clinical.ClinicianLicenseExported.verify|verify} messages.
|
|
58971
|
+
* @param message ClinicianLicenseExported message or plain object to encode
|
|
58972
|
+
* @param [writer] Writer to encode to
|
|
58973
|
+
* @returns Writer
|
|
58974
|
+
*/
|
|
58975
|
+
public static encodeDelimited(message: clinical.IClinicianLicenseExported, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
58976
|
+
|
|
58977
|
+
/**
|
|
58978
|
+
* Decodes a ClinicianLicenseExported message from the specified reader or buffer.
|
|
58979
|
+
* @param reader Reader or buffer to decode from
|
|
58980
|
+
* @param [length] Message length if known beforehand
|
|
58981
|
+
* @returns ClinicianLicenseExported
|
|
58982
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58983
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58984
|
+
*/
|
|
58985
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): clinical.ClinicianLicenseExported;
|
|
58986
|
+
|
|
58987
|
+
/**
|
|
58988
|
+
* Decodes a ClinicianLicenseExported message from the specified reader or buffer, length delimited.
|
|
58989
|
+
* @param reader Reader or buffer to decode from
|
|
58990
|
+
* @returns ClinicianLicenseExported
|
|
58991
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58992
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58993
|
+
*/
|
|
58994
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): clinical.ClinicianLicenseExported;
|
|
58995
|
+
|
|
58996
|
+
/**
|
|
58997
|
+
* Verifies a ClinicianLicenseExported message.
|
|
58998
|
+
* @param message Plain object to verify
|
|
58999
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
59000
|
+
*/
|
|
59001
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
59002
|
+
|
|
59003
|
+
/**
|
|
59004
|
+
* Creates a ClinicianLicenseExported message from a plain object. Also converts values to their respective internal types.
|
|
59005
|
+
* @param object Plain object
|
|
59006
|
+
* @returns ClinicianLicenseExported
|
|
59007
|
+
*/
|
|
59008
|
+
public static fromObject(object: { [k: string]: any }): clinical.ClinicianLicenseExported;
|
|
59009
|
+
|
|
59010
|
+
/**
|
|
59011
|
+
* Creates a plain object from a ClinicianLicenseExported message. Also converts values to other types if specified.
|
|
59012
|
+
* @param message ClinicianLicenseExported
|
|
59013
|
+
* @param [options] Conversion options
|
|
59014
|
+
* @returns Plain object
|
|
59015
|
+
*/
|
|
59016
|
+
public static toObject(message: clinical.ClinicianLicenseExported, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
59017
|
+
|
|
59018
|
+
/**
|
|
59019
|
+
* Converts this ClinicianLicenseExported to JSON.
|
|
59020
|
+
* @returns JSON object
|
|
59021
|
+
*/
|
|
59022
|
+
public toJSON(): { [k: string]: any };
|
|
59023
|
+
}
|
|
59024
|
+
|
|
58791
59025
|
/** Properties of a Coach. */
|
|
58792
59026
|
interface ICoach {
|
|
58793
59027
|
|
package/lib/index.js
CHANGED
|
@@ -166698,6 +166698,8 @@ $root.clinical = (function() {
|
|
|
166698
166698
|
* @property {Array.<clinical.ClinicianAgeRangeSpecialty>|null} [ageRangeSpecialties] List of clinician's age range specialties. Exported from: ProviderAttribute model in ginger-web
|
|
166699
166699
|
* @property {Array.<clinical.ClinicianRace>|null} [races] List of clinician's racial identities. Exported from: ProviderAttribute model in ginger-web
|
|
166700
166700
|
* @property {Array.<clinical.ClinicianGender>|null} [genders] List of clinician's gender identities. Exported from: ProviderAttribute model in ginger-web
|
|
166701
|
+
* @property {Array.<clinical.IClinicianLicenseExported>|null} [licenses] List of clinician licenses. Exported from License model in HeadspaceMeditation/web.
|
|
166702
|
+
* Includes all licenses (not filtered for validity) since valid_start and valid_end dates are included.
|
|
166701
166703
|
*/
|
|
166702
166704
|
|
|
166703
166705
|
/**
|
|
@@ -166718,6 +166720,7 @@ $root.clinical = (function() {
|
|
|
166718
166720
|
this.ageRangeSpecialties = [];
|
|
166719
166721
|
this.races = [];
|
|
166720
166722
|
this.genders = [];
|
|
166723
|
+
this.licenses = [];
|
|
166721
166724
|
if (properties)
|
|
166722
166725
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
166723
166726
|
if (properties[keys[i]] != null)
|
|
@@ -166943,6 +166946,15 @@ $root.clinical = (function() {
|
|
|
166943
166946
|
*/
|
|
166944
166947
|
Clinician.prototype.genders = $util.emptyArray;
|
|
166945
166948
|
|
|
166949
|
+
/**
|
|
166950
|
+
* List of clinician licenses. Exported from License model in HeadspaceMeditation/web.
|
|
166951
|
+
* Includes all licenses (not filtered for validity) since valid_start and valid_end dates are included.
|
|
166952
|
+
* @member {Array.<clinical.IClinicianLicenseExported>} licenses
|
|
166953
|
+
* @memberof clinical.Clinician
|
|
166954
|
+
* @instance
|
|
166955
|
+
*/
|
|
166956
|
+
Clinician.prototype.licenses = $util.emptyArray;
|
|
166957
|
+
|
|
166946
166958
|
/**
|
|
166947
166959
|
* Creates a new Clinician instance using the specified properties.
|
|
166948
166960
|
* @function create
|
|
@@ -167042,6 +167054,9 @@ $root.clinical = (function() {
|
|
|
167042
167054
|
writer.int32(message.genders[i]);
|
|
167043
167055
|
writer.ldelim();
|
|
167044
167056
|
}
|
|
167057
|
+
if (message.licenses != null && message.licenses.length)
|
|
167058
|
+
for (var i = 0; i < message.licenses.length; ++i)
|
|
167059
|
+
$root.clinical.ClinicianLicenseExported.encode(message.licenses[i], writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
|
|
167045
167060
|
return writer;
|
|
167046
167061
|
};
|
|
167047
167062
|
|
|
@@ -167195,6 +167210,11 @@ $root.clinical = (function() {
|
|
|
167195
167210
|
} else
|
|
167196
167211
|
message.genders.push(reader.int32());
|
|
167197
167212
|
break;
|
|
167213
|
+
case 28:
|
|
167214
|
+
if (!(message.licenses && message.licenses.length))
|
|
167215
|
+
message.licenses = [];
|
|
167216
|
+
message.licenses.push($root.clinical.ClinicianLicenseExported.decode(reader, reader.uint32()));
|
|
167217
|
+
break;
|
|
167198
167218
|
default:
|
|
167199
167219
|
reader.skipType(tag & 7);
|
|
167200
167220
|
break;
|
|
@@ -167426,6 +167446,15 @@ $root.clinical = (function() {
|
|
|
167426
167446
|
break;
|
|
167427
167447
|
}
|
|
167428
167448
|
}
|
|
167449
|
+
if (message.licenses != null && message.hasOwnProperty("licenses")) {
|
|
167450
|
+
if (!Array.isArray(message.licenses))
|
|
167451
|
+
return "licenses: array expected";
|
|
167452
|
+
for (var i = 0; i < message.licenses.length; ++i) {
|
|
167453
|
+
var error = $root.clinical.ClinicianLicenseExported.verify(message.licenses[i]);
|
|
167454
|
+
if (error)
|
|
167455
|
+
return "licenses." + error;
|
|
167456
|
+
}
|
|
167457
|
+
}
|
|
167429
167458
|
return null;
|
|
167430
167459
|
};
|
|
167431
167460
|
|
|
@@ -167748,6 +167777,16 @@ $root.clinical = (function() {
|
|
|
167748
167777
|
break;
|
|
167749
167778
|
}
|
|
167750
167779
|
}
|
|
167780
|
+
if (object.licenses) {
|
|
167781
|
+
if (!Array.isArray(object.licenses))
|
|
167782
|
+
throw TypeError(".clinical.Clinician.licenses: array expected");
|
|
167783
|
+
message.licenses = [];
|
|
167784
|
+
for (var i = 0; i < object.licenses.length; ++i) {
|
|
167785
|
+
if (typeof object.licenses[i] !== "object")
|
|
167786
|
+
throw TypeError(".clinical.Clinician.licenses: object expected");
|
|
167787
|
+
message.licenses[i] = $root.clinical.ClinicianLicenseExported.fromObject(object.licenses[i]);
|
|
167788
|
+
}
|
|
167789
|
+
}
|
|
167751
167790
|
return message;
|
|
167752
167791
|
};
|
|
167753
167792
|
|
|
@@ -167774,6 +167813,7 @@ $root.clinical = (function() {
|
|
|
167774
167813
|
object.ageRangeSpecialties = [];
|
|
167775
167814
|
object.races = [];
|
|
167776
167815
|
object.genders = [];
|
|
167816
|
+
object.licenses = [];
|
|
167777
167817
|
}
|
|
167778
167818
|
if (options.defaults) {
|
|
167779
167819
|
object.id = "";
|
|
@@ -167890,6 +167930,11 @@ $root.clinical = (function() {
|
|
|
167890
167930
|
for (var j = 0; j < message.genders.length; ++j)
|
|
167891
167931
|
object.genders[j] = options.enums === String ? $root.clinical.ClinicianGender[message.genders[j]] : message.genders[j];
|
|
167892
167932
|
}
|
|
167933
|
+
if (message.licenses && message.licenses.length) {
|
|
167934
|
+
object.licenses = [];
|
|
167935
|
+
for (var j = 0; j < message.licenses.length; ++j)
|
|
167936
|
+
object.licenses[j] = $root.clinical.ClinicianLicenseExported.toObject(message.licenses[j], options);
|
|
167937
|
+
}
|
|
167893
167938
|
return object;
|
|
167894
167939
|
};
|
|
167895
167940
|
|
|
@@ -168292,6 +168337,586 @@ $root.clinical = (function() {
|
|
|
168292
168337
|
return values;
|
|
168293
168338
|
})();
|
|
168294
168339
|
|
|
168340
|
+
clinical.InsuranceCarrierExported = (function() {
|
|
168341
|
+
|
|
168342
|
+
/**
|
|
168343
|
+
* Properties of an InsuranceCarrierExported.
|
|
168344
|
+
* @memberof clinical
|
|
168345
|
+
* @interface IInsuranceCarrierExported
|
|
168346
|
+
* @property {number|null} [id] Primary key of the carrier
|
|
168347
|
+
* @property {string|null} [name] Unique name of the carrier
|
|
168348
|
+
* @property {boolean|null} [active] Whether this carrier is currently active
|
|
168349
|
+
*/
|
|
168350
|
+
|
|
168351
|
+
/**
|
|
168352
|
+
* Constructs a new InsuranceCarrierExported.
|
|
168353
|
+
* @memberof clinical
|
|
168354
|
+
* @classdesc Represents an InsuranceCarrierExported.
|
|
168355
|
+
* @implements IInsuranceCarrierExported
|
|
168356
|
+
* @constructor
|
|
168357
|
+
* @param {clinical.IInsuranceCarrierExported=} [properties] Properties to set
|
|
168358
|
+
*/
|
|
168359
|
+
function InsuranceCarrierExported(properties) {
|
|
168360
|
+
if (properties)
|
|
168361
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
168362
|
+
if (properties[keys[i]] != null)
|
|
168363
|
+
this[keys[i]] = properties[keys[i]];
|
|
168364
|
+
}
|
|
168365
|
+
|
|
168366
|
+
/**
|
|
168367
|
+
* Primary key of the carrier
|
|
168368
|
+
* @member {number} id
|
|
168369
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
168370
|
+
* @instance
|
|
168371
|
+
*/
|
|
168372
|
+
InsuranceCarrierExported.prototype.id = 0;
|
|
168373
|
+
|
|
168374
|
+
/**
|
|
168375
|
+
* Unique name of the carrier
|
|
168376
|
+
* @member {string} name
|
|
168377
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
168378
|
+
* @instance
|
|
168379
|
+
*/
|
|
168380
|
+
InsuranceCarrierExported.prototype.name = "";
|
|
168381
|
+
|
|
168382
|
+
/**
|
|
168383
|
+
* Whether this carrier is currently active
|
|
168384
|
+
* @member {boolean} active
|
|
168385
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
168386
|
+
* @instance
|
|
168387
|
+
*/
|
|
168388
|
+
InsuranceCarrierExported.prototype.active = false;
|
|
168389
|
+
|
|
168390
|
+
/**
|
|
168391
|
+
* Creates a new InsuranceCarrierExported instance using the specified properties.
|
|
168392
|
+
* @function create
|
|
168393
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
168394
|
+
* @static
|
|
168395
|
+
* @param {clinical.IInsuranceCarrierExported=} [properties] Properties to set
|
|
168396
|
+
* @returns {clinical.InsuranceCarrierExported} InsuranceCarrierExported instance
|
|
168397
|
+
*/
|
|
168398
|
+
InsuranceCarrierExported.create = function create(properties) {
|
|
168399
|
+
return new InsuranceCarrierExported(properties);
|
|
168400
|
+
};
|
|
168401
|
+
|
|
168402
|
+
/**
|
|
168403
|
+
* Encodes the specified InsuranceCarrierExported message. Does not implicitly {@link clinical.InsuranceCarrierExported.verify|verify} messages.
|
|
168404
|
+
* @function encode
|
|
168405
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
168406
|
+
* @static
|
|
168407
|
+
* @param {clinical.IInsuranceCarrierExported} message InsuranceCarrierExported message or plain object to encode
|
|
168408
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
168409
|
+
* @returns {$protobuf.Writer} Writer
|
|
168410
|
+
*/
|
|
168411
|
+
InsuranceCarrierExported.encode = function encode(message, writer) {
|
|
168412
|
+
if (!writer)
|
|
168413
|
+
writer = $Writer.create();
|
|
168414
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
168415
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id);
|
|
168416
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
168417
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
|
|
168418
|
+
if (message.active != null && message.hasOwnProperty("active"))
|
|
168419
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.active);
|
|
168420
|
+
return writer;
|
|
168421
|
+
};
|
|
168422
|
+
|
|
168423
|
+
/**
|
|
168424
|
+
* Encodes the specified InsuranceCarrierExported message, length delimited. Does not implicitly {@link clinical.InsuranceCarrierExported.verify|verify} messages.
|
|
168425
|
+
* @function encodeDelimited
|
|
168426
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
168427
|
+
* @static
|
|
168428
|
+
* @param {clinical.IInsuranceCarrierExported} message InsuranceCarrierExported message or plain object to encode
|
|
168429
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
168430
|
+
* @returns {$protobuf.Writer} Writer
|
|
168431
|
+
*/
|
|
168432
|
+
InsuranceCarrierExported.encodeDelimited = function encodeDelimited(message, writer) {
|
|
168433
|
+
return this.encode(message, writer).ldelim();
|
|
168434
|
+
};
|
|
168435
|
+
|
|
168436
|
+
/**
|
|
168437
|
+
* Decodes an InsuranceCarrierExported message from the specified reader or buffer.
|
|
168438
|
+
* @function decode
|
|
168439
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
168440
|
+
* @static
|
|
168441
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
168442
|
+
* @param {number} [length] Message length if known beforehand
|
|
168443
|
+
* @returns {clinical.InsuranceCarrierExported} InsuranceCarrierExported
|
|
168444
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
168445
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
168446
|
+
*/
|
|
168447
|
+
InsuranceCarrierExported.decode = function decode(reader, length) {
|
|
168448
|
+
if (!(reader instanceof $Reader))
|
|
168449
|
+
reader = $Reader.create(reader);
|
|
168450
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.clinical.InsuranceCarrierExported();
|
|
168451
|
+
while (reader.pos < end) {
|
|
168452
|
+
var tag = reader.uint32();
|
|
168453
|
+
switch (tag >>> 3) {
|
|
168454
|
+
case 1:
|
|
168455
|
+
message.id = reader.int32();
|
|
168456
|
+
break;
|
|
168457
|
+
case 2:
|
|
168458
|
+
message.name = reader.string();
|
|
168459
|
+
break;
|
|
168460
|
+
case 3:
|
|
168461
|
+
message.active = reader.bool();
|
|
168462
|
+
break;
|
|
168463
|
+
default:
|
|
168464
|
+
reader.skipType(tag & 7);
|
|
168465
|
+
break;
|
|
168466
|
+
}
|
|
168467
|
+
}
|
|
168468
|
+
return message;
|
|
168469
|
+
};
|
|
168470
|
+
|
|
168471
|
+
/**
|
|
168472
|
+
* Decodes an InsuranceCarrierExported message from the specified reader or buffer, length delimited.
|
|
168473
|
+
* @function decodeDelimited
|
|
168474
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
168475
|
+
* @static
|
|
168476
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
168477
|
+
* @returns {clinical.InsuranceCarrierExported} InsuranceCarrierExported
|
|
168478
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
168479
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
168480
|
+
*/
|
|
168481
|
+
InsuranceCarrierExported.decodeDelimited = function decodeDelimited(reader) {
|
|
168482
|
+
if (!(reader instanceof $Reader))
|
|
168483
|
+
reader = new $Reader(reader);
|
|
168484
|
+
return this.decode(reader, reader.uint32());
|
|
168485
|
+
};
|
|
168486
|
+
|
|
168487
|
+
/**
|
|
168488
|
+
* Verifies an InsuranceCarrierExported message.
|
|
168489
|
+
* @function verify
|
|
168490
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
168491
|
+
* @static
|
|
168492
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
168493
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
168494
|
+
*/
|
|
168495
|
+
InsuranceCarrierExported.verify = function verify(message) {
|
|
168496
|
+
if (typeof message !== "object" || message === null)
|
|
168497
|
+
return "object expected";
|
|
168498
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
168499
|
+
if (!$util.isInteger(message.id))
|
|
168500
|
+
return "id: integer expected";
|
|
168501
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
168502
|
+
if (!$util.isString(message.name))
|
|
168503
|
+
return "name: string expected";
|
|
168504
|
+
if (message.active != null && message.hasOwnProperty("active"))
|
|
168505
|
+
if (typeof message.active !== "boolean")
|
|
168506
|
+
return "active: boolean expected";
|
|
168507
|
+
return null;
|
|
168508
|
+
};
|
|
168509
|
+
|
|
168510
|
+
/**
|
|
168511
|
+
* Creates an InsuranceCarrierExported message from a plain object. Also converts values to their respective internal types.
|
|
168512
|
+
* @function fromObject
|
|
168513
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
168514
|
+
* @static
|
|
168515
|
+
* @param {Object.<string,*>} object Plain object
|
|
168516
|
+
* @returns {clinical.InsuranceCarrierExported} InsuranceCarrierExported
|
|
168517
|
+
*/
|
|
168518
|
+
InsuranceCarrierExported.fromObject = function fromObject(object) {
|
|
168519
|
+
if (object instanceof $root.clinical.InsuranceCarrierExported)
|
|
168520
|
+
return object;
|
|
168521
|
+
var message = new $root.clinical.InsuranceCarrierExported();
|
|
168522
|
+
if (object.id != null)
|
|
168523
|
+
message.id = object.id | 0;
|
|
168524
|
+
if (object.name != null)
|
|
168525
|
+
message.name = String(object.name);
|
|
168526
|
+
if (object.active != null)
|
|
168527
|
+
message.active = Boolean(object.active);
|
|
168528
|
+
return message;
|
|
168529
|
+
};
|
|
168530
|
+
|
|
168531
|
+
/**
|
|
168532
|
+
* Creates a plain object from an InsuranceCarrierExported message. Also converts values to other types if specified.
|
|
168533
|
+
* @function toObject
|
|
168534
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
168535
|
+
* @static
|
|
168536
|
+
* @param {clinical.InsuranceCarrierExported} message InsuranceCarrierExported
|
|
168537
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
168538
|
+
* @returns {Object.<string,*>} Plain object
|
|
168539
|
+
*/
|
|
168540
|
+
InsuranceCarrierExported.toObject = function toObject(message, options) {
|
|
168541
|
+
if (!options)
|
|
168542
|
+
options = {};
|
|
168543
|
+
var object = {};
|
|
168544
|
+
if (options.defaults) {
|
|
168545
|
+
object.id = 0;
|
|
168546
|
+
object.name = "";
|
|
168547
|
+
object.active = false;
|
|
168548
|
+
}
|
|
168549
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
168550
|
+
object.id = message.id;
|
|
168551
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
168552
|
+
object.name = message.name;
|
|
168553
|
+
if (message.active != null && message.hasOwnProperty("active"))
|
|
168554
|
+
object.active = message.active;
|
|
168555
|
+
return object;
|
|
168556
|
+
};
|
|
168557
|
+
|
|
168558
|
+
/**
|
|
168559
|
+
* Converts this InsuranceCarrierExported to JSON.
|
|
168560
|
+
* @function toJSON
|
|
168561
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
168562
|
+
* @instance
|
|
168563
|
+
* @returns {Object.<string,*>} JSON object
|
|
168564
|
+
*/
|
|
168565
|
+
InsuranceCarrierExported.prototype.toJSON = function toJSON() {
|
|
168566
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
168567
|
+
};
|
|
168568
|
+
|
|
168569
|
+
return InsuranceCarrierExported;
|
|
168570
|
+
})();
|
|
168571
|
+
|
|
168572
|
+
clinical.ClinicianLicenseExported = (function() {
|
|
168573
|
+
|
|
168574
|
+
/**
|
|
168575
|
+
* Properties of a ClinicianLicenseExported.
|
|
168576
|
+
* @memberof clinical
|
|
168577
|
+
* @interface IClinicianLicenseExported
|
|
168578
|
+
* @property {number|null} [id] Primary key of the license
|
|
168579
|
+
* @property {string|null} [stateLocation] State abbreviation where the license is issued (e.g., "CA", "NY")
|
|
168580
|
+
* @property {boolean|null} [intakesEnabled] Whether intakes are enabled for this license
|
|
168581
|
+
* @property {Array.<clinical.IInsuranceCarrierExported>|null} [carriers] List of insurance carriers associated with this license
|
|
168582
|
+
* @property {number|Long|null} [validStart] UTC timestamp in milliseconds since epoch when the license becomes valid
|
|
168583
|
+
* @property {number|Long|null} [validEnd] UTC timestamp in milliseconds since epoch when the license expires
|
|
168584
|
+
*/
|
|
168585
|
+
|
|
168586
|
+
/**
|
|
168587
|
+
* Constructs a new ClinicianLicenseExported.
|
|
168588
|
+
* @memberof clinical
|
|
168589
|
+
* @classdesc Represents a ClinicianLicenseExported.
|
|
168590
|
+
* @implements IClinicianLicenseExported
|
|
168591
|
+
* @constructor
|
|
168592
|
+
* @param {clinical.IClinicianLicenseExported=} [properties] Properties to set
|
|
168593
|
+
*/
|
|
168594
|
+
function ClinicianLicenseExported(properties) {
|
|
168595
|
+
this.carriers = [];
|
|
168596
|
+
if (properties)
|
|
168597
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
168598
|
+
if (properties[keys[i]] != null)
|
|
168599
|
+
this[keys[i]] = properties[keys[i]];
|
|
168600
|
+
}
|
|
168601
|
+
|
|
168602
|
+
/**
|
|
168603
|
+
* Primary key of the license
|
|
168604
|
+
* @member {number} id
|
|
168605
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
168606
|
+
* @instance
|
|
168607
|
+
*/
|
|
168608
|
+
ClinicianLicenseExported.prototype.id = 0;
|
|
168609
|
+
|
|
168610
|
+
/**
|
|
168611
|
+
* State abbreviation where the license is issued (e.g., "CA", "NY")
|
|
168612
|
+
* @member {string} stateLocation
|
|
168613
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
168614
|
+
* @instance
|
|
168615
|
+
*/
|
|
168616
|
+
ClinicianLicenseExported.prototype.stateLocation = "";
|
|
168617
|
+
|
|
168618
|
+
/**
|
|
168619
|
+
* Whether intakes are enabled for this license
|
|
168620
|
+
* @member {boolean} intakesEnabled
|
|
168621
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
168622
|
+
* @instance
|
|
168623
|
+
*/
|
|
168624
|
+
ClinicianLicenseExported.prototype.intakesEnabled = false;
|
|
168625
|
+
|
|
168626
|
+
/**
|
|
168627
|
+
* List of insurance carriers associated with this license
|
|
168628
|
+
* @member {Array.<clinical.IInsuranceCarrierExported>} carriers
|
|
168629
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
168630
|
+
* @instance
|
|
168631
|
+
*/
|
|
168632
|
+
ClinicianLicenseExported.prototype.carriers = $util.emptyArray;
|
|
168633
|
+
|
|
168634
|
+
/**
|
|
168635
|
+
* UTC timestamp in milliseconds since epoch when the license becomes valid
|
|
168636
|
+
* @member {number|Long} validStart
|
|
168637
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
168638
|
+
* @instance
|
|
168639
|
+
*/
|
|
168640
|
+
ClinicianLicenseExported.prototype.validStart = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
168641
|
+
|
|
168642
|
+
/**
|
|
168643
|
+
* UTC timestamp in milliseconds since epoch when the license expires
|
|
168644
|
+
* @member {number|Long} validEnd
|
|
168645
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
168646
|
+
* @instance
|
|
168647
|
+
*/
|
|
168648
|
+
ClinicianLicenseExported.prototype.validEnd = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
168649
|
+
|
|
168650
|
+
/**
|
|
168651
|
+
* Creates a new ClinicianLicenseExported instance using the specified properties.
|
|
168652
|
+
* @function create
|
|
168653
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
168654
|
+
* @static
|
|
168655
|
+
* @param {clinical.IClinicianLicenseExported=} [properties] Properties to set
|
|
168656
|
+
* @returns {clinical.ClinicianLicenseExported} ClinicianLicenseExported instance
|
|
168657
|
+
*/
|
|
168658
|
+
ClinicianLicenseExported.create = function create(properties) {
|
|
168659
|
+
return new ClinicianLicenseExported(properties);
|
|
168660
|
+
};
|
|
168661
|
+
|
|
168662
|
+
/**
|
|
168663
|
+
* Encodes the specified ClinicianLicenseExported message. Does not implicitly {@link clinical.ClinicianLicenseExported.verify|verify} messages.
|
|
168664
|
+
* @function encode
|
|
168665
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
168666
|
+
* @static
|
|
168667
|
+
* @param {clinical.IClinicianLicenseExported} message ClinicianLicenseExported message or plain object to encode
|
|
168668
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
168669
|
+
* @returns {$protobuf.Writer} Writer
|
|
168670
|
+
*/
|
|
168671
|
+
ClinicianLicenseExported.encode = function encode(message, writer) {
|
|
168672
|
+
if (!writer)
|
|
168673
|
+
writer = $Writer.create();
|
|
168674
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
168675
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id);
|
|
168676
|
+
if (message.stateLocation != null && message.hasOwnProperty("stateLocation"))
|
|
168677
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.stateLocation);
|
|
168678
|
+
if (message.intakesEnabled != null && message.hasOwnProperty("intakesEnabled"))
|
|
168679
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.intakesEnabled);
|
|
168680
|
+
if (message.carriers != null && message.carriers.length)
|
|
168681
|
+
for (var i = 0; i < message.carriers.length; ++i)
|
|
168682
|
+
$root.clinical.InsuranceCarrierExported.encode(message.carriers[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
168683
|
+
if (message.validStart != null && message.hasOwnProperty("validStart"))
|
|
168684
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.validStart);
|
|
168685
|
+
if (message.validEnd != null && message.hasOwnProperty("validEnd"))
|
|
168686
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.validEnd);
|
|
168687
|
+
return writer;
|
|
168688
|
+
};
|
|
168689
|
+
|
|
168690
|
+
/**
|
|
168691
|
+
* Encodes the specified ClinicianLicenseExported message, length delimited. Does not implicitly {@link clinical.ClinicianLicenseExported.verify|verify} messages.
|
|
168692
|
+
* @function encodeDelimited
|
|
168693
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
168694
|
+
* @static
|
|
168695
|
+
* @param {clinical.IClinicianLicenseExported} message ClinicianLicenseExported message or plain object to encode
|
|
168696
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
168697
|
+
* @returns {$protobuf.Writer} Writer
|
|
168698
|
+
*/
|
|
168699
|
+
ClinicianLicenseExported.encodeDelimited = function encodeDelimited(message, writer) {
|
|
168700
|
+
return this.encode(message, writer).ldelim();
|
|
168701
|
+
};
|
|
168702
|
+
|
|
168703
|
+
/**
|
|
168704
|
+
* Decodes a ClinicianLicenseExported message from the specified reader or buffer.
|
|
168705
|
+
* @function decode
|
|
168706
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
168707
|
+
* @static
|
|
168708
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
168709
|
+
* @param {number} [length] Message length if known beforehand
|
|
168710
|
+
* @returns {clinical.ClinicianLicenseExported} ClinicianLicenseExported
|
|
168711
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
168712
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
168713
|
+
*/
|
|
168714
|
+
ClinicianLicenseExported.decode = function decode(reader, length) {
|
|
168715
|
+
if (!(reader instanceof $Reader))
|
|
168716
|
+
reader = $Reader.create(reader);
|
|
168717
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.clinical.ClinicianLicenseExported();
|
|
168718
|
+
while (reader.pos < end) {
|
|
168719
|
+
var tag = reader.uint32();
|
|
168720
|
+
switch (tag >>> 3) {
|
|
168721
|
+
case 1:
|
|
168722
|
+
message.id = reader.int32();
|
|
168723
|
+
break;
|
|
168724
|
+
case 2:
|
|
168725
|
+
message.stateLocation = reader.string();
|
|
168726
|
+
break;
|
|
168727
|
+
case 3:
|
|
168728
|
+
message.intakesEnabled = reader.bool();
|
|
168729
|
+
break;
|
|
168730
|
+
case 4:
|
|
168731
|
+
if (!(message.carriers && message.carriers.length))
|
|
168732
|
+
message.carriers = [];
|
|
168733
|
+
message.carriers.push($root.clinical.InsuranceCarrierExported.decode(reader, reader.uint32()));
|
|
168734
|
+
break;
|
|
168735
|
+
case 5:
|
|
168736
|
+
message.validStart = reader.uint64();
|
|
168737
|
+
break;
|
|
168738
|
+
case 6:
|
|
168739
|
+
message.validEnd = reader.uint64();
|
|
168740
|
+
break;
|
|
168741
|
+
default:
|
|
168742
|
+
reader.skipType(tag & 7);
|
|
168743
|
+
break;
|
|
168744
|
+
}
|
|
168745
|
+
}
|
|
168746
|
+
return message;
|
|
168747
|
+
};
|
|
168748
|
+
|
|
168749
|
+
/**
|
|
168750
|
+
* Decodes a ClinicianLicenseExported message from the specified reader or buffer, length delimited.
|
|
168751
|
+
* @function decodeDelimited
|
|
168752
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
168753
|
+
* @static
|
|
168754
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
168755
|
+
* @returns {clinical.ClinicianLicenseExported} ClinicianLicenseExported
|
|
168756
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
168757
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
168758
|
+
*/
|
|
168759
|
+
ClinicianLicenseExported.decodeDelimited = function decodeDelimited(reader) {
|
|
168760
|
+
if (!(reader instanceof $Reader))
|
|
168761
|
+
reader = new $Reader(reader);
|
|
168762
|
+
return this.decode(reader, reader.uint32());
|
|
168763
|
+
};
|
|
168764
|
+
|
|
168765
|
+
/**
|
|
168766
|
+
* Verifies a ClinicianLicenseExported message.
|
|
168767
|
+
* @function verify
|
|
168768
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
168769
|
+
* @static
|
|
168770
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
168771
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
168772
|
+
*/
|
|
168773
|
+
ClinicianLicenseExported.verify = function verify(message) {
|
|
168774
|
+
if (typeof message !== "object" || message === null)
|
|
168775
|
+
return "object expected";
|
|
168776
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
168777
|
+
if (!$util.isInteger(message.id))
|
|
168778
|
+
return "id: integer expected";
|
|
168779
|
+
if (message.stateLocation != null && message.hasOwnProperty("stateLocation"))
|
|
168780
|
+
if (!$util.isString(message.stateLocation))
|
|
168781
|
+
return "stateLocation: string expected";
|
|
168782
|
+
if (message.intakesEnabled != null && message.hasOwnProperty("intakesEnabled"))
|
|
168783
|
+
if (typeof message.intakesEnabled !== "boolean")
|
|
168784
|
+
return "intakesEnabled: boolean expected";
|
|
168785
|
+
if (message.carriers != null && message.hasOwnProperty("carriers")) {
|
|
168786
|
+
if (!Array.isArray(message.carriers))
|
|
168787
|
+
return "carriers: array expected";
|
|
168788
|
+
for (var i = 0; i < message.carriers.length; ++i) {
|
|
168789
|
+
var error = $root.clinical.InsuranceCarrierExported.verify(message.carriers[i]);
|
|
168790
|
+
if (error)
|
|
168791
|
+
return "carriers." + error;
|
|
168792
|
+
}
|
|
168793
|
+
}
|
|
168794
|
+
if (message.validStart != null && message.hasOwnProperty("validStart"))
|
|
168795
|
+
if (!$util.isInteger(message.validStart) && !(message.validStart && $util.isInteger(message.validStart.low) && $util.isInteger(message.validStart.high)))
|
|
168796
|
+
return "validStart: integer|Long expected";
|
|
168797
|
+
if (message.validEnd != null && message.hasOwnProperty("validEnd"))
|
|
168798
|
+
if (!$util.isInteger(message.validEnd) && !(message.validEnd && $util.isInteger(message.validEnd.low) && $util.isInteger(message.validEnd.high)))
|
|
168799
|
+
return "validEnd: integer|Long expected";
|
|
168800
|
+
return null;
|
|
168801
|
+
};
|
|
168802
|
+
|
|
168803
|
+
/**
|
|
168804
|
+
* Creates a ClinicianLicenseExported message from a plain object. Also converts values to their respective internal types.
|
|
168805
|
+
* @function fromObject
|
|
168806
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
168807
|
+
* @static
|
|
168808
|
+
* @param {Object.<string,*>} object Plain object
|
|
168809
|
+
* @returns {clinical.ClinicianLicenseExported} ClinicianLicenseExported
|
|
168810
|
+
*/
|
|
168811
|
+
ClinicianLicenseExported.fromObject = function fromObject(object) {
|
|
168812
|
+
if (object instanceof $root.clinical.ClinicianLicenseExported)
|
|
168813
|
+
return object;
|
|
168814
|
+
var message = new $root.clinical.ClinicianLicenseExported();
|
|
168815
|
+
if (object.id != null)
|
|
168816
|
+
message.id = object.id | 0;
|
|
168817
|
+
if (object.stateLocation != null)
|
|
168818
|
+
message.stateLocation = String(object.stateLocation);
|
|
168819
|
+
if (object.intakesEnabled != null)
|
|
168820
|
+
message.intakesEnabled = Boolean(object.intakesEnabled);
|
|
168821
|
+
if (object.carriers) {
|
|
168822
|
+
if (!Array.isArray(object.carriers))
|
|
168823
|
+
throw TypeError(".clinical.ClinicianLicenseExported.carriers: array expected");
|
|
168824
|
+
message.carriers = [];
|
|
168825
|
+
for (var i = 0; i < object.carriers.length; ++i) {
|
|
168826
|
+
if (typeof object.carriers[i] !== "object")
|
|
168827
|
+
throw TypeError(".clinical.ClinicianLicenseExported.carriers: object expected");
|
|
168828
|
+
message.carriers[i] = $root.clinical.InsuranceCarrierExported.fromObject(object.carriers[i]);
|
|
168829
|
+
}
|
|
168830
|
+
}
|
|
168831
|
+
if (object.validStart != null)
|
|
168832
|
+
if ($util.Long)
|
|
168833
|
+
(message.validStart = $util.Long.fromValue(object.validStart)).unsigned = true;
|
|
168834
|
+
else if (typeof object.validStart === "string")
|
|
168835
|
+
message.validStart = parseInt(object.validStart, 10);
|
|
168836
|
+
else if (typeof object.validStart === "number")
|
|
168837
|
+
message.validStart = object.validStart;
|
|
168838
|
+
else if (typeof object.validStart === "object")
|
|
168839
|
+
message.validStart = new $util.LongBits(object.validStart.low >>> 0, object.validStart.high >>> 0).toNumber(true);
|
|
168840
|
+
if (object.validEnd != null)
|
|
168841
|
+
if ($util.Long)
|
|
168842
|
+
(message.validEnd = $util.Long.fromValue(object.validEnd)).unsigned = true;
|
|
168843
|
+
else if (typeof object.validEnd === "string")
|
|
168844
|
+
message.validEnd = parseInt(object.validEnd, 10);
|
|
168845
|
+
else if (typeof object.validEnd === "number")
|
|
168846
|
+
message.validEnd = object.validEnd;
|
|
168847
|
+
else if (typeof object.validEnd === "object")
|
|
168848
|
+
message.validEnd = new $util.LongBits(object.validEnd.low >>> 0, object.validEnd.high >>> 0).toNumber(true);
|
|
168849
|
+
return message;
|
|
168850
|
+
};
|
|
168851
|
+
|
|
168852
|
+
/**
|
|
168853
|
+
* Creates a plain object from a ClinicianLicenseExported message. Also converts values to other types if specified.
|
|
168854
|
+
* @function toObject
|
|
168855
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
168856
|
+
* @static
|
|
168857
|
+
* @param {clinical.ClinicianLicenseExported} message ClinicianLicenseExported
|
|
168858
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
168859
|
+
* @returns {Object.<string,*>} Plain object
|
|
168860
|
+
*/
|
|
168861
|
+
ClinicianLicenseExported.toObject = function toObject(message, options) {
|
|
168862
|
+
if (!options)
|
|
168863
|
+
options = {};
|
|
168864
|
+
var object = {};
|
|
168865
|
+
if (options.arrays || options.defaults)
|
|
168866
|
+
object.carriers = [];
|
|
168867
|
+
if (options.defaults) {
|
|
168868
|
+
object.id = 0;
|
|
168869
|
+
object.stateLocation = "";
|
|
168870
|
+
object.intakesEnabled = false;
|
|
168871
|
+
if ($util.Long) {
|
|
168872
|
+
var long = new $util.Long(0, 0, true);
|
|
168873
|
+
object.validStart = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
168874
|
+
} else
|
|
168875
|
+
object.validStart = options.longs === String ? "0" : 0;
|
|
168876
|
+
if ($util.Long) {
|
|
168877
|
+
var long = new $util.Long(0, 0, true);
|
|
168878
|
+
object.validEnd = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
168879
|
+
} else
|
|
168880
|
+
object.validEnd = options.longs === String ? "0" : 0;
|
|
168881
|
+
}
|
|
168882
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
168883
|
+
object.id = message.id;
|
|
168884
|
+
if (message.stateLocation != null && message.hasOwnProperty("stateLocation"))
|
|
168885
|
+
object.stateLocation = message.stateLocation;
|
|
168886
|
+
if (message.intakesEnabled != null && message.hasOwnProperty("intakesEnabled"))
|
|
168887
|
+
object.intakesEnabled = message.intakesEnabled;
|
|
168888
|
+
if (message.carriers && message.carriers.length) {
|
|
168889
|
+
object.carriers = [];
|
|
168890
|
+
for (var j = 0; j < message.carriers.length; ++j)
|
|
168891
|
+
object.carriers[j] = $root.clinical.InsuranceCarrierExported.toObject(message.carriers[j], options);
|
|
168892
|
+
}
|
|
168893
|
+
if (message.validStart != null && message.hasOwnProperty("validStart"))
|
|
168894
|
+
if (typeof message.validStart === "number")
|
|
168895
|
+
object.validStart = options.longs === String ? String(message.validStart) : message.validStart;
|
|
168896
|
+
else
|
|
168897
|
+
object.validStart = options.longs === String ? $util.Long.prototype.toString.call(message.validStart) : options.longs === Number ? new $util.LongBits(message.validStart.low >>> 0, message.validStart.high >>> 0).toNumber(true) : message.validStart;
|
|
168898
|
+
if (message.validEnd != null && message.hasOwnProperty("validEnd"))
|
|
168899
|
+
if (typeof message.validEnd === "number")
|
|
168900
|
+
object.validEnd = options.longs === String ? String(message.validEnd) : message.validEnd;
|
|
168901
|
+
else
|
|
168902
|
+
object.validEnd = options.longs === String ? $util.Long.prototype.toString.call(message.validEnd) : options.longs === Number ? new $util.LongBits(message.validEnd.low >>> 0, message.validEnd.high >>> 0).toNumber(true) : message.validEnd;
|
|
168903
|
+
return object;
|
|
168904
|
+
};
|
|
168905
|
+
|
|
168906
|
+
/**
|
|
168907
|
+
* Converts this ClinicianLicenseExported to JSON.
|
|
168908
|
+
* @function toJSON
|
|
168909
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
168910
|
+
* @instance
|
|
168911
|
+
* @returns {Object.<string,*>} JSON object
|
|
168912
|
+
*/
|
|
168913
|
+
ClinicianLicenseExported.prototype.toJSON = function toJSON() {
|
|
168914
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
168915
|
+
};
|
|
168916
|
+
|
|
168917
|
+
return ClinicianLicenseExported;
|
|
168918
|
+
})();
|
|
168919
|
+
|
|
168295
168920
|
clinical.Coach = (function() {
|
|
168296
168921
|
|
|
168297
168922
|
/**
|
package/package.json
CHANGED