primarycare-binder 1.1.26 → 1.1.30
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/dist/index.cjs.js +152 -49
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -9535,28 +9535,44 @@ var getImgUrl = function getImgUrl(fileId) {
|
|
|
9535
9535
|
};
|
|
9536
9536
|
|
|
9537
9537
|
var getUtcTime = function getUtcTime(date) {
|
|
9538
|
-
var a = null;
|
|
9539
|
-
|
|
9540
9538
|
if (date) {
|
|
9541
|
-
|
|
9539
|
+
return moment.utc(date).unix();
|
|
9542
9540
|
} else {
|
|
9543
|
-
|
|
9541
|
+
return moment.utc().unix();
|
|
9544
9542
|
}
|
|
9545
|
-
|
|
9546
|
-
a = a.toUTCString();
|
|
9547
|
-
return new Date(a).getTime();
|
|
9548
9543
|
};
|
|
9549
9544
|
|
|
9550
9545
|
var utcTOLocal$1 = function utcTOLocal(date, format) {
|
|
9551
|
-
var Ndate = new Date(
|
|
9552
|
-
var fmt = format ? format : "DD-MM-YYYY";
|
|
9546
|
+
var Ndate = new Date();
|
|
9553
9547
|
|
|
9554
|
-
if (
|
|
9555
|
-
|
|
9548
|
+
if (typeof date === "number") {
|
|
9549
|
+
Ndate = moment.unix(date);
|
|
9556
9550
|
} else {
|
|
9557
|
-
|
|
9551
|
+
Ndate = moment(date);
|
|
9558
9552
|
}
|
|
9559
|
-
|
|
9553
|
+
|
|
9554
|
+
var fmt = format ? format : "DD-MM-YYYY";
|
|
9555
|
+
return moment.utc(Ndate).local().format(fmt);
|
|
9556
|
+
}; // const getUtcTime = (date) => {
|
|
9557
|
+
// let a = null
|
|
9558
|
+
// if (date) {
|
|
9559
|
+
// a = new Date(date)
|
|
9560
|
+
// } else {
|
|
9561
|
+
// a = new Date()
|
|
9562
|
+
// }
|
|
9563
|
+
// a = a.toUTCString()
|
|
9564
|
+
// return ((new Date(a).getTime())/1000)
|
|
9565
|
+
// };
|
|
9566
|
+
// const utcTOLocal = (date, format) => {
|
|
9567
|
+
// let Ndate = new Date(date * 1000);
|
|
9568
|
+
// let fmt = format ? format : "DD-MM-YYYY"
|
|
9569
|
+
// if (format) {
|
|
9570
|
+
// return moment(Ndate).format(fmt);
|
|
9571
|
+
// } else {
|
|
9572
|
+
// return moment(Ndate)
|
|
9573
|
+
// }
|
|
9574
|
+
// };
|
|
9575
|
+
|
|
9560
9576
|
|
|
9561
9577
|
var deg2rad = function deg2rad(deg) {
|
|
9562
9578
|
return deg * (Math.PI / 180);
|
|
@@ -9695,20 +9711,24 @@ var getLatLong = /*#__PURE__*/function () {
|
|
|
9695
9711
|
|
|
9696
9712
|
|
|
9697
9713
|
var getAge = function getAge(date) {
|
|
9698
|
-
|
|
9714
|
+
if (date) {
|
|
9715
|
+
var yearDiff = moment().diff(moment(date, 'DD/MM/YYYY'), 'years', false);
|
|
9699
9716
|
|
|
9700
|
-
|
|
9701
|
-
|
|
9702
|
-
|
|
9717
|
+
if (yearDiff > 0) {
|
|
9718
|
+
return yearDiff + ' Y';
|
|
9719
|
+
}
|
|
9720
|
+
|
|
9721
|
+
var monthDiff = moment().diff(moment(date, 'DD/MM/YYYY'), 'months', false);
|
|
9703
9722
|
|
|
9704
|
-
|
|
9723
|
+
if (monthDiff > 0) {
|
|
9724
|
+
return monthDiff + ' M';
|
|
9725
|
+
}
|
|
9705
9726
|
|
|
9706
|
-
|
|
9707
|
-
return
|
|
9727
|
+
var dayDiff = moment().diff(moment(date, 'DD/MM/YYYY'), 'days', false);
|
|
9728
|
+
return dayDiff + ' D';
|
|
9708
9729
|
}
|
|
9709
9730
|
|
|
9710
|
-
|
|
9711
|
-
return dayDiff + ' D';
|
|
9731
|
+
return "";
|
|
9712
9732
|
};
|
|
9713
9733
|
|
|
9714
9734
|
var _extraReducers$D;
|
|
@@ -10097,13 +10117,20 @@ var PATIENT_DETAILS_READ = createAsyncThunk("patientReducer/readPatientDetails",
|
|
|
10097
10117
|
payload = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
|
|
10098
10118
|
_ref10 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref10.rejectWithValue;
|
|
10099
10119
|
_context5.prev = 2;
|
|
10100
|
-
_payload$key = payload.key, key = _payload$key === void 0 ? "" : _payload$key;
|
|
10120
|
+
_payload$key = payload.key, key = _payload$key === void 0 ? "" : _payload$key; // const read_p = {
|
|
10121
|
+
// // "db_name": db_name,
|
|
10122
|
+
// db_name: "primarycare",
|
|
10123
|
+
// entity: "Patient",
|
|
10124
|
+
// filter: `Patient._key=='${key}' && Patient.activestatus==true`,
|
|
10125
|
+
// return_fields:
|
|
10126
|
+
// "merge(Patient,{telecom:(for doc in ContactPointMaster filter doc._id in Patient.telecom return merge(doc,{system:(document(doc.system)),use:(document(doc.use)),valueprefix:(document(doc.valueprefix)),rank:(document(doc.rank))}))},{name:(for doc in HumanNameMaster filter doc._id in Patient.name return merge(doc,{use:(document(doc.use)),prefix:(document(doc.prefix)),suffix:(document(doc.suffix))}))},{gender:document(Patient.gender)},{address:(for doc in AddressMaster filter doc._id in Patient.address return merge(doc,{use:(document(doc.use)),city:(document(doc.city)),country:(document(doc.city)),district:(document(doc.district)), Type:(document(doc.Type)),postalCode:(document(doc.postalCode)),state:(document(doc.state))}))},{maritalstatus:document(Patient.maritalstatus)},{photo:document(Patient.photo)},{OrgID:document(Patient.OrgID)},{nationality:document(Patient.nationality)},{activereason:document(Patient.activereason)},{isdeceased:document(Patient.isdeceased)},{deceasedreason:document(Patient.deceasedreason)},{identifier:(for doc in IdentifierMaster filter doc._id in Patient.identifier return merge(doc,{user:(document(doc.user)), assigner:(document(doc.assigner)), period: (document(doc.period))}))},{communicationLanguage:document(Patient.communicationLanguage)},{birthGendercode:document(Patient.birthGendercode)},{citizenshipCode:document(Patient.citizenshipCode)},{disabilityCode:document(Patient.disabilityCode)},{genderIdentitycode:document(Patient.genderIdentitycode)},{religionCode:document(Patient.religionCode)},{raceCode:document(Patient.raceCode)},{ethinicityCode:document(Patient.ethinicityCode)},{patientTypecode:document(Patient.patientTypecode)},{bloodGroup:document(Patient.bloodGroup)},{attachment:document(Patient.attachment)},{age_type:document(Patient.age_type)},{primarycare_Prac:document(Patient.primarycare_Prac)})",
|
|
10127
|
+
// };
|
|
10128
|
+
|
|
10101
10129
|
read_p = {
|
|
10102
|
-
|
|
10103
|
-
db_name: "primarycare",
|
|
10130
|
+
db_name: dbName,
|
|
10104
10131
|
entity: "Patient",
|
|
10105
10132
|
filter: "Patient._key=='".concat(key, "' && Patient.activestatus==true"),
|
|
10106
|
-
return_fields: "merge(Patient,{telecom:(for doc in ContactPointMaster filter doc._id in Patient.telecom return merge(doc,{system:(document(doc.system)),use:(document(doc.use)),valueprefix:(document(doc.valueprefix)),rank:(document(doc.rank))}))},{name:(for doc in HumanNameMaster filter doc._id in Patient.name return merge(doc,{use:(document(doc.use)),prefix:(document(doc.prefix)),suffix:(document(doc.suffix))}))},{gender:document(Patient.gender)},{address:(for doc in AddressMaster filter doc._id in Patient.address return merge(doc,{use:(document(doc.use)),city:(document(doc.city)),country:(document(doc.city)),district:(document(doc.district)), Type:(document(doc.Type)),postalCode:(document(doc.postalCode)),state:(document(doc.state))}))},{maritalstatus:document(Patient.maritalstatus)},{photo:document(Patient.photo)},{OrgID:document(Patient.OrgID)},{nationality:document(Patient.nationality)},{activereason:document(Patient.activereason)},{isdeceased:document(Patient.isdeceased)},{deceasedreason:document(Patient.deceasedreason)},{identifier:(for doc in IdentifierMaster filter doc._id in Patient.identifier return merge(doc,{user:(document(doc.user)), assigner:(document(doc.assigner)), period: (document(doc.period))}))},{communicationLanguage:document(Patient.communicationLanguage)},{birthGendercode:document(Patient.birthGendercode)},{citizenshipCode:document(Patient.citizenshipCode)},{disabilityCode:document(Patient.disabilityCode)},{genderIdentitycode:document(Patient.genderIdentitycode)},{religionCode:document(Patient.religionCode)},{raceCode:document(Patient.raceCode)},{ethinicityCode:document(Patient.ethinicityCode)},{patientTypecode:document(Patient.patientTypecode)},{bloodGroup:document(Patient.bloodGroup)},{attachment:document(Patient.attachment)},{age_type:document(Patient.age_type)},{primarycare_Prac:document(Patient.primarycare_Prac)})"
|
|
10133
|
+
return_fields: "merge(Patient,{telecom:(for doc in ContactPointMaster filter doc._id in Patient.telecom return merge(doc,{system:(document(doc.system)),use:(document(doc.use)),valueprefix:(document(doc.valueprefix)),rank:(document(doc.rank))}))},{name:(for doc in HumanNameMaster filter doc._id in Patient.name return merge(doc,{use:(document(doc.use)),prefix:(document(doc.prefix)),suffix:(document(doc.suffix))}))},{gender:document(Patient.gender)},{address:(for doc in AddressMaster filter doc._id in Patient.address return merge(doc,{use:(document(doc.use)),city:(document(doc.city)),country:(document(doc.city)),district:(document(doc.district)), Type:(document(doc.Type)),postalCode:(document(doc.postalCode)),state:(document(doc.state))}))},{maritalstatus:document(Patient.maritalstatus)},{photo:document(Patient.photo)},{OrgID:document(Patient.OrgID)},{nationality:document(Patient.nationality)},{activereason:document(Patient.activereason)},{isdeceased:document(Patient.isdeceased)},{deceasedreason:document(Patient.deceasedreason)},{identifier:(for doc in IdentifierMaster filter doc._id in Patient.identifier return merge(doc,{user:(document(doc.user)), assigner:(document(doc.assigner)), period: (document(doc.period))}))},{communicationLanguage:document(Patient.communicationLanguage)},{birthGendercode:document(Patient.birthGendercode)},{citizenshipCode:document(Patient.citizenshipCode)},{disabilityCode:document(Patient.disabilityCode)},{genderIdentitycode:document(Patient.genderIdentitycode)},{religionCode:document(Patient.religionCode)},{raceCode:document(Patient.raceCode)},{ethinicityCode:document(Patient.ethinicityCode)},{patientTypecode:document(Patient.patientTypecode)},{bloodGroup:document(Patient.bloodGroup)},{attachment:document(Patient.attachment)},{age_type:document(Patient.age_type)},{primarycare_Prac:document(Patient.primarycare_Prac)},{specialArng_code:document(Patient.specialArng_code)},{specialCourtesy_code: document(Patient.specialCourtesy_code)})"
|
|
10107
10134
|
};
|
|
10108
10135
|
_context5.next = 7;
|
|
10109
10136
|
return fetchData$3({
|
|
@@ -13769,6 +13796,12 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13769
13796
|
longtitude,
|
|
13770
13797
|
_payload$doctorId,
|
|
13771
13798
|
doctorId,
|
|
13799
|
+
_payload$consultmode,
|
|
13800
|
+
consultmode,
|
|
13801
|
+
_payload$gender,
|
|
13802
|
+
gender,
|
|
13803
|
+
_payload$lang,
|
|
13804
|
+
lang,
|
|
13772
13805
|
body,
|
|
13773
13806
|
data,
|
|
13774
13807
|
returnData,
|
|
@@ -13802,20 +13835,18 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13802
13835
|
endDate = Edate;
|
|
13803
13836
|
startDate.setHours(0, 0, 0, 0);
|
|
13804
13837
|
endDate.setHours(23, 59, 59, 999);
|
|
13805
|
-
hospital = payload.hospital, specialities = payload.specialities, latitude = payload.latitude, longtitude = payload.longtitude, _payload$doctorId = payload.doctorId, doctorId = _payload$doctorId === void 0 ? 0 : _payload$doctorId;
|
|
13838
|
+
hospital = payload.hospital, specialities = payload.specialities, latitude = payload.latitude, longtitude = payload.longtitude, _payload$doctorId = payload.doctorId, doctorId = _payload$doctorId === void 0 ? 0 : _payload$doctorId, _payload$consultmode = payload.consultmode, consultmode = _payload$consultmode === void 0 ? ["Direct", "Video", "Both"] : _payload$consultmode, _payload$gender = payload.gender, gender = _payload$gender === void 0 ? "" : _payload$gender, _payload$lang = payload.lang, lang = _payload$lang === void 0 ? "" : _payload$lang;
|
|
13806
13839
|
body = {
|
|
13807
13840
|
db_name: dbName,
|
|
13808
13841
|
queryid: query_ids.doctorListing,
|
|
13809
13842
|
filter: {
|
|
13810
13843
|
org_id: hospital,
|
|
13811
|
-
// "Organization": hospital + "/10000",
|
|
13812
13844
|
speciality: specialities,
|
|
13813
13845
|
startdate: getUtcTime(startDate),
|
|
13814
|
-
enddate: getUtcTime(endDate)
|
|
13815
|
-
|
|
13816
|
-
|
|
13817
|
-
|
|
13818
|
-
|
|
13846
|
+
enddate: getUtcTime(endDate),
|
|
13847
|
+
consultmode: consultmode,
|
|
13848
|
+
gender: gender,
|
|
13849
|
+
lang: lang
|
|
13819
13850
|
}
|
|
13820
13851
|
};
|
|
13821
13852
|
|
|
@@ -13997,7 +14028,8 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13997
14028
|
} else {
|
|
13998
14029
|
var _restData$gender, _restData$gender$codi, _restData$gender$codi2, _restData$Specialties, _restData$communicati, _restData$hospital6, _restData$qualificati, _restData$qualificati2, _restData$qualificati3, _restData$hospital7, _restData$address5, _restData$address5$, _restData$name, _restData$photo, _restData$photo$, _restData$address6, _restData$address6$;
|
|
13999
14030
|
|
|
14000
|
-
var
|
|
14031
|
+
var _gender = (restData === null || restData === void 0 ? void 0 : (_restData$gender = restData.gender) === null || _restData$gender === void 0 ? void 0 : (_restData$gender$codi = _restData$gender.coding) === null || _restData$gender$codi === void 0 ? void 0 : (_restData$gender$codi2 = _restData$gender$codi[0]) === null || _restData$gender$codi2 === void 0 ? void 0 : _restData$gender$codi2.display) || "";
|
|
14032
|
+
|
|
14001
14033
|
var designation = "";
|
|
14002
14034
|
restData === null || restData === void 0 ? void 0 : (_restData$Specialties = restData.Specialties) === null || _restData$Specialties === void 0 ? void 0 : _restData$Specialties.forEach(function (s) {
|
|
14003
14035
|
var _s$coding2;
|
|
@@ -14033,8 +14065,8 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
14033
14065
|
});
|
|
14034
14066
|
}
|
|
14035
14067
|
});
|
|
14036
|
-
info["title"] = "".concat(
|
|
14037
|
-
info["gender"] =
|
|
14068
|
+
info["title"] = "".concat(_gender).concat(_gender && " | ").concat(designation);
|
|
14069
|
+
info["gender"] = _gender;
|
|
14038
14070
|
info["hospId"] = restData === null || restData === void 0 ? void 0 : (_restData$hospital6 = restData.hospital) === null || _restData$hospital6 === void 0 ? void 0 : _restData$hospital6.id;
|
|
14039
14071
|
info["subtext"] = (restData === null || restData === void 0 ? void 0 : (_restData$qualificati = restData.qualification) === null || _restData$qualificati === void 0 ? void 0 : (_restData$qualificati2 = _restData$qualificati.map) === null || _restData$qualificati2 === void 0 ? void 0 : (_restData$qualificati3 = _restData$qualificati2.call(_restData$qualificati, function (q) {
|
|
14040
14072
|
return (q === null || q === void 0 ? void 0 : q.name) || "";
|
|
@@ -14106,29 +14138,102 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
14106
14138
|
}
|
|
14107
14139
|
}, _callee2, null, [[2, 34]]);
|
|
14108
14140
|
}))); // end
|
|
14109
|
-
|
|
14141
|
+
|
|
14142
|
+
var GET_ALL_LANGS = createAsyncThunk("docterListingReducer/allLanguages", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
14143
|
+
var payload,
|
|
14144
|
+
_ref5,
|
|
14145
|
+
rejectWithValue,
|
|
14146
|
+
body,
|
|
14147
|
+
data,
|
|
14148
|
+
returnData,
|
|
14149
|
+
_args3 = arguments;
|
|
14150
|
+
|
|
14151
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
14152
|
+
while (1) {
|
|
14153
|
+
switch (_context3.prev = _context3.next) {
|
|
14154
|
+
case 0:
|
|
14155
|
+
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
14156
|
+
_ref5 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref5.rejectWithValue;
|
|
14157
|
+
_context3.prev = 2;
|
|
14158
|
+
body = {
|
|
14159
|
+
db_name: dbName,
|
|
14160
|
+
entity: "CodeableConceptMaster",
|
|
14161
|
+
filter: "CodeableConceptMaster.Type == 'LANGUAGE'",
|
|
14162
|
+
return_fields: "{coding_id: CodeableConceptMaster._id, codeable: (let codeable = DOCUMENT(CodeableConceptMaster.coding[0]) RETURN codeable)[0]}"
|
|
14163
|
+
};
|
|
14164
|
+
_context3.next = 6;
|
|
14165
|
+
return fetchData$3({
|
|
14166
|
+
body: JSON.stringify(body)
|
|
14167
|
+
}, __readDocumentUrl__);
|
|
14168
|
+
|
|
14169
|
+
case 6:
|
|
14170
|
+
data = _context3.sent;
|
|
14171
|
+
returnData = [];
|
|
14172
|
+
|
|
14173
|
+
if (data.result && Array.isArray(data.result)) {
|
|
14174
|
+
returnData = data.result.map(function (d) {
|
|
14175
|
+
var _d$codeable, _d$codeable2;
|
|
14176
|
+
|
|
14177
|
+
return {
|
|
14178
|
+
val: (_d$codeable = d.codeable) === null || _d$codeable === void 0 ? void 0 : _d$codeable.code,
|
|
14179
|
+
title: (_d$codeable2 = d.codeable) === null || _d$codeable2 === void 0 ? void 0 : _d$codeable2.display
|
|
14180
|
+
};
|
|
14181
|
+
});
|
|
14182
|
+
}
|
|
14183
|
+
|
|
14184
|
+
return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
14185
|
+
data: returnData
|
|
14186
|
+
}));
|
|
14187
|
+
|
|
14188
|
+
case 12:
|
|
14189
|
+
_context3.prev = 12;
|
|
14190
|
+
_context3.t0 = _context3["catch"](2);
|
|
14191
|
+
console.log(error);
|
|
14192
|
+
return _context3.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
14193
|
+
message: error.message
|
|
14194
|
+
})));
|
|
14195
|
+
|
|
14196
|
+
case 16:
|
|
14197
|
+
case "end":
|
|
14198
|
+
return _context3.stop();
|
|
14199
|
+
}
|
|
14200
|
+
}
|
|
14201
|
+
}, _callee3, null, [[2, 12]]);
|
|
14202
|
+
}))); // FUZZY SEARCH CREATE INITIALSTATE
|
|
14110
14203
|
|
|
14111
14204
|
var docterListingReducer = createSlice({
|
|
14112
14205
|
name: "docterListingReducer",
|
|
14113
14206
|
initialState: {
|
|
14114
|
-
docterListing: _objectSpread2({}, defaultState.
|
|
14207
|
+
docterListing: _objectSpread2({}, defaultState.List),
|
|
14208
|
+
allLanguages: _objectSpread2({}, defaultState.List)
|
|
14115
14209
|
},
|
|
14116
14210
|
extraReducers: (_extraReducers$y = {}, _defineProperty(_extraReducers$y, DOCTER_LISTING.fulfilled, function (state, action) {
|
|
14117
14211
|
var _action$payload;
|
|
14118
14212
|
|
|
14119
|
-
state.docterListing = (_action$payload = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload !== void 0 ? _action$payload :
|
|
14213
|
+
state.docterListing = (_action$payload = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload !== void 0 ? _action$payload : [];
|
|
14120
14214
|
}), _defineProperty(_extraReducers$y, DOCTER_LISTING.pending, function (state, action) {
|
|
14121
14215
|
state.docterListing.loading = true;
|
|
14122
14216
|
}), _defineProperty(_extraReducers$y, DOCTER_LISTING.rejected, function (state, action) {
|
|
14123
14217
|
var _action$payload2;
|
|
14124
14218
|
|
|
14125
|
-
state.docterListing = (_action$payload2 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload2 !== void 0 ? _action$payload2 :
|
|
14219
|
+
state.docterListing = (_action$payload2 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload2 !== void 0 ? _action$payload2 : [];
|
|
14220
|
+
}), _defineProperty(_extraReducers$y, GET_ALL_LANGS.fulfilled, function (state, action) {
|
|
14221
|
+
var _action$payload3;
|
|
14222
|
+
|
|
14223
|
+
state.allLanguages = (_action$payload3 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload3 !== void 0 ? _action$payload3 : [];
|
|
14224
|
+
}), _defineProperty(_extraReducers$y, GET_ALL_LANGS.pending, function (state, action) {
|
|
14225
|
+
state.allLanguages.loading = true;
|
|
14226
|
+
}), _defineProperty(_extraReducers$y, GET_ALL_LANGS.rejected, function (state, action) {
|
|
14227
|
+
var _action$payload4;
|
|
14228
|
+
|
|
14229
|
+
state.allLanguages = (_action$payload4 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload4 !== void 0 ? _action$payload4 : [];
|
|
14126
14230
|
}), _extraReducers$y)
|
|
14127
14231
|
}); // end
|
|
14128
14232
|
// DOCTER_LISTING ACTION LISTS
|
|
14129
14233
|
|
|
14130
14234
|
var docterListingActions = {
|
|
14131
|
-
DOCTER_LISTING: DOCTER_LISTING
|
|
14235
|
+
DOCTER_LISTING: DOCTER_LISTING,
|
|
14236
|
+
GET_ALL_LANGS: GET_ALL_LANGS
|
|
14132
14237
|
}; // end
|
|
14133
14238
|
var docterListingReducer$1 = docterListingReducer.reducer;
|
|
14134
14239
|
|
|
@@ -40360,7 +40465,6 @@ var AVC_LOGIN = createAsyncThunk("avcMeetApiSlice/avc_info", /*#__PURE__*/_async
|
|
|
40360
40465
|
_data$PersonID$0$gend,
|
|
40361
40466
|
_data$PersonID4,
|
|
40362
40467
|
_data$PersonID4$,
|
|
40363
|
-
_data$PersonID4$$gend,
|
|
40364
40468
|
_data$PersonID$0$alia,
|
|
40365
40469
|
_data$PersonID5,
|
|
40366
40470
|
_data$PersonID5$,
|
|
@@ -40392,7 +40496,6 @@ var AVC_LOGIN = createAsyncThunk("avcMeetApiSlice/avc_info", /*#__PURE__*/_async
|
|
|
40392
40496
|
case 6:
|
|
40393
40497
|
resp = _context.sent;
|
|
40394
40498
|
data = (resp === null || resp === void 0 ? void 0 : (_resp$result = resp.result) === null || _resp$result === void 0 ? void 0 : _resp$result[0]) || [];
|
|
40395
|
-
debugger;
|
|
40396
40499
|
res_data = {
|
|
40397
40500
|
date: (_data$start = data === null || data === void 0 ? void 0 : data.start) !== null && _data$start !== void 0 ? _data$start : "",
|
|
40398
40501
|
app_id: (_data$appno = data === null || data === void 0 ? void 0 : data.appno) !== null && _data$appno !== void 0 ? _data$appno : "",
|
|
@@ -40415,8 +40518,8 @@ var AVC_LOGIN = createAsyncThunk("avcMeetApiSlice/avc_info", /*#__PURE__*/_async
|
|
|
40415
40518
|
},
|
|
40416
40519
|
personID: {
|
|
40417
40520
|
name: (data === null || data === void 0 ? void 0 : (_data$PersonID = data.PersonID) === null || _data$PersonID === void 0 ? void 0 : (_data$PersonID$ = _data$PersonID[0]) === null || _data$PersonID$ === void 0 ? void 0 : (_data$PersonID$$name = _data$PersonID$.name) === null || _data$PersonID$$name === void 0 ? void 0 : (_data$PersonID$$name$ = _data$PersonID$$name[0]) === null || _data$PersonID$$name$ === void 0 ? void 0 : _data$PersonID$$name$.text) ? data === null || data === void 0 ? void 0 : (_data$PersonID2 = data.PersonID) === null || _data$PersonID2 === void 0 ? void 0 : (_data$PersonID2$ = _data$PersonID2[0]) === null || _data$PersonID2$ === void 0 ? void 0 : (_data$PersonID2$$name = _data$PersonID2$.name) === null || _data$PersonID2$$name === void 0 ? void 0 : (_data$PersonID2$$name2 = _data$PersonID2$$name[0]) === null || _data$PersonID2$$name2 === void 0 ? void 0 : _data$PersonID2$$name2.text : "-",
|
|
40418
|
-
age: getAge(data === null || data === void 0 ? void 0 : (_data$PersonID3 = data.PersonID) === null || _data$PersonID3 === void 0 ? void 0 : (_data$PersonID3$ = _data$PersonID3[0]) === null || _data$PersonID3$ === void 0 ? void 0 : _data$PersonID3$.
|
|
40419
|
-
gander: (_data$PersonID$0$gend = data === null || data === void 0 ? void 0 : (_data$PersonID4 = data.PersonID) === null || _data$PersonID4 === void 0 ? void 0 : (_data$PersonID4$ = _data$PersonID4[0]) === null || _data$PersonID4$ === void 0 ? void 0 :
|
|
40521
|
+
age: getAge(data === null || data === void 0 ? void 0 : (_data$PersonID3 = data.PersonID) === null || _data$PersonID3 === void 0 ? void 0 : (_data$PersonID3$ = _data$PersonID3[0]) === null || _data$PersonID3$ === void 0 ? void 0 : _data$PersonID3$.birthDay),
|
|
40522
|
+
gander: (_data$PersonID$0$gend = data === null || data === void 0 ? void 0 : (_data$PersonID4 = data.PersonID) === null || _data$PersonID4 === void 0 ? void 0 : (_data$PersonID4$ = _data$PersonID4[0]) === null || _data$PersonID4$ === void 0 ? void 0 : _data$PersonID4$.gender) !== null && _data$PersonID$0$gend !== void 0 ? _data$PersonID$0$gend : "",
|
|
40420
40523
|
id: (_data$PersonID$0$alia = data === null || data === void 0 ? void 0 : (_data$PersonID5 = data.PersonID) === null || _data$PersonID5 === void 0 ? void 0 : (_data$PersonID5$ = _data$PersonID5[0]) === null || _data$PersonID5$ === void 0 ? void 0 : _data$PersonID5$.alias) !== null && _data$PersonID$0$alia !== void 0 ? _data$PersonID$0$alia : "",
|
|
40421
40524
|
mobile: (_data$PersonID$0$tele = data === null || data === void 0 ? void 0 : (_data$PersonID6 = data.PersonID) === null || _data$PersonID6 === void 0 ? void 0 : (_data$PersonID6$ = _data$PersonID6[0]) === null || _data$PersonID6$ === void 0 ? void 0 : (_data$PersonID6$$tele = _data$PersonID6$.telecom) === null || _data$PersonID6$$tele === void 0 ? void 0 : (_data$PersonID6$$tele2 = _data$PersonID6$$tele[0]) === null || _data$PersonID6$$tele2 === void 0 ? void 0 : _data$PersonID6$$tele2.value) !== null && _data$PersonID$0$tele !== void 0 ? _data$PersonID$0$tele : ""
|
|
40422
40525
|
},
|
|
@@ -40426,19 +40529,19 @@ var AVC_LOGIN = createAsyncThunk("avcMeetApiSlice/avc_info", /*#__PURE__*/_async
|
|
|
40426
40529
|
data: res_data
|
|
40427
40530
|
}));
|
|
40428
40531
|
|
|
40429
|
-
case
|
|
40430
|
-
_context.prev =
|
|
40532
|
+
case 12:
|
|
40533
|
+
_context.prev = 12;
|
|
40431
40534
|
_context.t0 = _context["catch"](2);
|
|
40432
40535
|
return _context.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40433
40536
|
message: _context.t0.message
|
|
40434
40537
|
})));
|
|
40435
40538
|
|
|
40436
|
-
case
|
|
40539
|
+
case 15:
|
|
40437
40540
|
case "end":
|
|
40438
40541
|
return _context.stop();
|
|
40439
40542
|
}
|
|
40440
40543
|
}
|
|
40441
|
-
}, _callee, null, [[2,
|
|
40544
|
+
}, _callee, null, [[2, 12]]);
|
|
40442
40545
|
})));
|
|
40443
40546
|
var AVC_FORM_INSERT = createAsyncThunk("avcMeetApiSlice/avc_form", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
40444
40547
|
var payload,
|