primarycare-binder 1.1.15 → 1.1.19
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 +286 -30
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -11297,7 +11297,7 @@ var GET__FOLLOW_UP_APPOINTMENT = createAsyncThunk("appointmentReducer/follow_up_
|
|
|
11297
11297
|
db_name: dbName,
|
|
11298
11298
|
entity: "AppointmentRequest",
|
|
11299
11299
|
filter: "AppointmentRequest.patientid=='".concat(patientId, "' and DATE_TIMESTAMP(DATE_ADD(AppointmentRequest.encounterdate*1000,AppointmentRequest.followupdurval,DOCUMENT(AppointmentRequest.followupduruom).display=='Days'?'day':DOCUMENT(AppointmentRequest.followupduruom).display=='month'?'month':'week'))>=DATE_TIMESTAMP(DATE_NOW())"),
|
|
11300
|
-
return_fields: "merge(AppointmentRequest,{encounterid:(for e in Encounter filter e._id == AppointmentRequest.encounterid return merge(e,{appointmentId:(for app in Appointment filter app.id in e.appointmentId return app.consultationMode)}))},{followupduruom:document(AppointmentRequest.followupduruom)},{followupreason:document(AppointmentRequest.followupreason)},{healthserviceid:to_array(document(AppointmentRequest.healthserviceid))},{orgid:to_array(document(AppointmentRequest.orgid))},{practitionerid:(for doc in Practitioner filter doc._id == AppointmentRequest.practitionerid return merge(doc,{name:(for name in HumanNameMaster filter name._id in doc.name return merge(name,{use:
|
|
11300
|
+
return_fields: "merge(AppointmentRequest,{encounterid:(for e in Encounter filter e._id == AppointmentRequest.encounterid return merge(e,{appointmentId:(for app in Appointment filter app.id in e.appointmentId return app.consultationMode)}))},{followupduruom:document(AppointmentRequest.followupduruom)},{followupreason:document(AppointmentRequest.followupreason)},{healthserviceid:to_array(document(AppointmentRequest.healthserviceid))},{orgid:to_array(document(AppointmentRequest.orgid))}, {practitionerid:(for doc in Practitioner filter doc._id == AppointmentRequest.practitionerid return merge(doc,{name:(for name in HumanNameMaster filter name._id in doc.name return merge(name,{use:document(name.use)},{prefix:merge(document(name.prefix),{coding:document(document(name.prefix).coding)})},{suffix:merge(document(name.suffix),{coding:document(document(name.suffix).coding)})}))}, {practitioner_role:(for pr in PractitionerRole filter pr._id in doc.practitioner_role return merge(pr,{role:document(pr.role)}))},{photo:document(doc.photo)}))}, {patientid:(for pat in Patient filter pat._id == AppointmentRequest.patientid return merge (pat,{name:(for name in HumanNameMaster filter name._id in pat.name return merge(name,{use:(document(name.use))},{prefix:(document(name.prefix))},{suffix:document(name.suffix)}))}))},{specialtyid:document(AppointmentRequest.specialtyid)})"
|
|
11301
11301
|
}; // const body = {
|
|
11302
11302
|
// "db_name": dbName,
|
|
11303
11303
|
// "entity": "AppointmentRequest",
|
|
@@ -11540,6 +11540,8 @@ var GENERAL_INSTRUCTION = createAsyncThunk("appointmentReducer/generalInstructio
|
|
|
11540
11540
|
var payload,
|
|
11541
11541
|
_ref23,
|
|
11542
11542
|
rejectWithValue,
|
|
11543
|
+
_data$result2,
|
|
11544
|
+
_data$result2$,
|
|
11543
11545
|
_payload$org_id,
|
|
11544
11546
|
org_id,
|
|
11545
11547
|
body,
|
|
@@ -11559,7 +11561,7 @@ var GENERAL_INSTRUCTION = createAsyncThunk("appointmentReducer/generalInstructio
|
|
|
11559
11561
|
db_name: dbName,
|
|
11560
11562
|
entity: "ResourcebyApptType",
|
|
11561
11563
|
filter: "ResourcebyApptType.organization_id=='".concat(org_id, "' AND lower(document(ResourcebyApptType.ApptTypeCode).display)=='consultation' AND ResourcebyApptType.status==true AND ResourcebyApptType.activestatus==true"),
|
|
11562
|
-
return_fields: "{generalInstruction:(FOR gn IN TO_ARRAY(ResourcebyApptType.generalInstruction) RETURN MERGE(gn,{fcode:DOCUMENT(gn.fcode)})),appointmentInstruction:(FOR ai IN TO_ARRAY(ResourcebyApptType.ApptInstructions) RETURN MERGE(ai,{AppInstructionCriteria:DOCUMENT(ai.AppInstructionCriteria)}))}"
|
|
11564
|
+
return_fields: "{orgContact: (let orgInfo = Document(ResourcebyApptType.organization_id) let contact = orgInfo.contact[0] return Document(contact.telecom)[0].value)[0], generalInstruction:(FOR gn IN TO_ARRAY(ResourcebyApptType.generalInstruction) RETURN MERGE(gn,{fcode:DOCUMENT(gn.fcode)})),appointmentInstruction:(FOR ai IN TO_ARRAY(ResourcebyApptType.ApptInstructions) RETURN MERGE(ai,{AppInstructionCriteria:DOCUMENT(ai.AppInstructionCriteria)}))}"
|
|
11563
11565
|
};
|
|
11564
11566
|
_context11.next = 7;
|
|
11565
11567
|
return fetchData$3({
|
|
@@ -11592,7 +11594,8 @@ var GENERAL_INSTRUCTION = createAsyncThunk("appointmentReducer/generalInstructio
|
|
|
11592
11594
|
return _context11.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
11593
11595
|
data: {
|
|
11594
11596
|
appointmentInstruction: _toConsumableArray(returnData.appointmentInstruction),
|
|
11595
|
-
generalInstruction: _toConsumableArray(returnData.generalInstruction)
|
|
11597
|
+
generalInstruction: _toConsumableArray(returnData.generalInstruction),
|
|
11598
|
+
orgContact: data === null || data === void 0 ? void 0 : (_data$result2 = data.result) === null || _data$result2 === void 0 ? void 0 : (_data$result2$ = _data$result2[0]) === null || _data$result2$ === void 0 ? void 0 : _data$result2$.orgContact
|
|
11596
11599
|
}
|
|
11597
11600
|
}));
|
|
11598
11601
|
|
|
@@ -12052,7 +12055,7 @@ var REASON_FOR_APPT_CANCEL_MODIFY = createAsyncThunk("appointmentReducer/reasonF
|
|
|
12052
12055
|
body,
|
|
12053
12056
|
data,
|
|
12054
12057
|
returnData,
|
|
12055
|
-
_data$
|
|
12058
|
+
_data$result3,
|
|
12056
12059
|
_args16 = arguments;
|
|
12057
12060
|
|
|
12058
12061
|
return regeneratorRuntime.wrap(function _callee16$(_context16) {
|
|
@@ -12078,7 +12081,7 @@ var REASON_FOR_APPT_CANCEL_MODIFY = createAsyncThunk("appointmentReducer/reasonF
|
|
|
12078
12081
|
returnData = [];
|
|
12079
12082
|
|
|
12080
12083
|
if (Array.isArray(data === null || data === void 0 ? void 0 : data.result)) {
|
|
12081
|
-
data === null || data === void 0 ? void 0 : (_data$
|
|
12084
|
+
data === null || data === void 0 ? void 0 : (_data$result3 = data.result) === null || _data$result3 === void 0 ? void 0 : _data$result3.map(function (_) {
|
|
12082
12085
|
returnData.push({
|
|
12083
12086
|
title: _ === null || _ === void 0 ? void 0 : _.display,
|
|
12084
12087
|
value: _ === null || _ === void 0 ? void 0 : _.id,
|
|
@@ -13656,6 +13659,49 @@ var practitionerReducer$1 = practitionerReducer.reducer;
|
|
|
13656
13659
|
|
|
13657
13660
|
var _extraReducers$x;
|
|
13658
13661
|
|
|
13662
|
+
var getLocationInfo$1 = /*#__PURE__*/function () {
|
|
13663
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(myLocation, city) {
|
|
13664
|
+
var obj,
|
|
13665
|
+
lat,
|
|
13666
|
+
_long,
|
|
13667
|
+
info,
|
|
13668
|
+
_args = arguments;
|
|
13669
|
+
|
|
13670
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
13671
|
+
while (1) {
|
|
13672
|
+
switch (_context.prev = _context.next) {
|
|
13673
|
+
case 0:
|
|
13674
|
+
obj = _args.length > 2 && _args[2] !== undefined ? _args[2] : {};
|
|
13675
|
+
|
|
13676
|
+
if (obj[city]) {
|
|
13677
|
+
_context.next = 7;
|
|
13678
|
+
break;
|
|
13679
|
+
}
|
|
13680
|
+
|
|
13681
|
+
lat = myLocation.lat, _long = myLocation["long"];
|
|
13682
|
+
_context.next = 5;
|
|
13683
|
+
return getLatLong(city);
|
|
13684
|
+
|
|
13685
|
+
case 5:
|
|
13686
|
+
info = _context.sent;
|
|
13687
|
+
|
|
13688
|
+
if (info.lat && info["long"]) {
|
|
13689
|
+
obj[city] = getDisctanceFromLatLonInKm(info.lat, info["long"], lat, _long);
|
|
13690
|
+
}
|
|
13691
|
+
|
|
13692
|
+
case 7:
|
|
13693
|
+
case "end":
|
|
13694
|
+
return _context.stop();
|
|
13695
|
+
}
|
|
13696
|
+
}
|
|
13697
|
+
}, _callee);
|
|
13698
|
+
}));
|
|
13699
|
+
|
|
13700
|
+
return function getLocationInfo(_x, _x2) {
|
|
13701
|
+
return _ref.apply(this, arguments);
|
|
13702
|
+
};
|
|
13703
|
+
}(); // DOCTER_LISTING
|
|
13704
|
+
|
|
13659
13705
|
|
|
13660
13706
|
var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
13661
13707
|
var payload,
|
|
@@ -13675,6 +13721,11 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13675
13721
|
returnData,
|
|
13676
13722
|
allLangs,
|
|
13677
13723
|
allCities,
|
|
13724
|
+
_yield$getCurrentPosi,
|
|
13725
|
+
myLat,
|
|
13726
|
+
myLong,
|
|
13727
|
+
locationInfo,
|
|
13728
|
+
promArr,
|
|
13678
13729
|
_args2 = arguments;
|
|
13679
13730
|
|
|
13680
13731
|
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
@@ -13755,7 +13806,7 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13755
13806
|
restData = _objectWithoutProperties(record, ["OrgType", "id", "_id", "displayresource"]);
|
|
13756
13807
|
|
|
13757
13808
|
if (displayresource) {
|
|
13758
|
-
var _OrgType$some, _restData$address, _restData$address
|
|
13809
|
+
var _OrgType$some, _restData$address, _restData$address$cit, _restData$hospital2, _restData$hospital2$a, _restData$hospital2$a2, _restData$locationID, _restData$hospital3, _OrgType$, _restData$hospital4, _restData$hospital4$O, _restData$hospital5;
|
|
13759
13810
|
|
|
13760
13811
|
var resourceInfo = {
|
|
13761
13812
|
resourcetype: "",
|
|
@@ -13807,7 +13858,7 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13807
13858
|
// isClinic,
|
|
13808
13859
|
// );
|
|
13809
13860
|
|
|
13810
|
-
var city = (restData === null || restData === void 0 ? void 0 : (_restData$address = restData.address) === null || _restData$address === void 0 ? void 0 : (_restData$address$ = _restData$address
|
|
13861
|
+
var city = (restData === null || restData === void 0 ? void 0 : (_restData$address = restData.address) === null || _restData$address === void 0 ? void 0 : (_restData$address$cit = _restData$address.city) === null || _restData$address$cit === void 0 ? void 0 : _restData$address$cit.geogLevelName) || (restData === null || restData === void 0 ? void 0 : (_restData$hospital2 = restData.hospital) === null || _restData$hospital2 === void 0 ? void 0 : (_restData$hospital2$a = _restData$hospital2.address) === null || _restData$hospital2$a === void 0 ? void 0 : (_restData$hospital2$a2 = _restData$hospital2$a.city) === null || _restData$hospital2$a2 === void 0 ? void 0 : _restData$hospital2$a2.geogLevelName) || "";
|
|
13811
13862
|
allCities.add(city);
|
|
13812
13863
|
var info = {
|
|
13813
13864
|
clinicId: (restData === null || restData === void 0 ? void 0 : (_restData$locationID = restData.locationID) === null || _restData$locationID === void 0 ? void 0 : _restData$locationID.id) || 0,
|
|
@@ -13941,39 +13992,58 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13941
13992
|
}
|
|
13942
13993
|
}
|
|
13943
13994
|
});
|
|
13944
|
-
}
|
|
13945
|
-
// lat: myLat,
|
|
13946
|
-
// long: myLong,
|
|
13947
|
-
// } = getCurrentPosition();
|
|
13948
|
-
// const locationInfo = {};
|
|
13949
|
-
// if (myLat && myLong) {
|
|
13950
|
-
// const promArr = [...allCities].map(city => getLocationInfo({lat: myLat, long: myLong}, city, locationInfo));
|
|
13951
|
-
// await Promise.all(promArr);
|
|
13952
|
-
// returnData.forEach(d => {
|
|
13953
|
-
// d.kms = locationInfo[d.city] || "0 Kms";
|
|
13954
|
-
// })
|
|
13955
|
-
// }
|
|
13995
|
+
}
|
|
13956
13996
|
|
|
13997
|
+
_context2.next = 19;
|
|
13998
|
+
return getCurrentPosition();
|
|
13957
13999
|
|
|
14000
|
+
case 19:
|
|
14001
|
+
_yield$getCurrentPosi = _context2.sent;
|
|
14002
|
+
myLat = _yield$getCurrentPosi.lat;
|
|
14003
|
+
myLong = _yield$getCurrentPosi["long"];
|
|
14004
|
+
locationInfo = {};
|
|
14005
|
+
|
|
14006
|
+
if (!(myLat && myLong)) {
|
|
14007
|
+
_context2.next = 28;
|
|
14008
|
+
break;
|
|
14009
|
+
}
|
|
14010
|
+
|
|
14011
|
+
promArr = _toConsumableArray(allCities).filter(function (c) {
|
|
14012
|
+
return !!c;
|
|
14013
|
+
}).map(function (city) {
|
|
14014
|
+
return getLocationInfo$1({
|
|
14015
|
+
lat: myLat,
|
|
14016
|
+
"long": myLong
|
|
14017
|
+
}, city, locationInfo);
|
|
14018
|
+
});
|
|
14019
|
+
_context2.next = 27;
|
|
14020
|
+
return es6Promise.Promise.all(promArr);
|
|
14021
|
+
|
|
14022
|
+
case 27:
|
|
14023
|
+
returnData.forEach(function (d) {
|
|
14024
|
+
d.kms = locationInfo[d.city] || "0 Kms";
|
|
14025
|
+
});
|
|
14026
|
+
|
|
14027
|
+
case 28:
|
|
13958
14028
|
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
13959
14029
|
data: returnData,
|
|
13960
14030
|
allLangs: _toConsumableArray(allLangs)
|
|
13961
14031
|
}));
|
|
13962
14032
|
|
|
13963
|
-
case
|
|
13964
|
-
_context2.prev =
|
|
14033
|
+
case 31:
|
|
14034
|
+
_context2.prev = 31;
|
|
13965
14035
|
_context2.t0 = _context2["catch"](2);
|
|
13966
14036
|
console.log(_context2.t0);
|
|
13967
14037
|
return _context2.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
13968
14038
|
message: _context2.t0.message
|
|
13969
14039
|
})));
|
|
13970
14040
|
|
|
13971
|
-
case
|
|
14041
|
+
case 35:
|
|
13972
14042
|
case "end":
|
|
13973
14043
|
return _context2.stop();
|
|
13974
14044
|
}
|
|
13975
14045
|
}
|
|
13976
|
-
}, _callee2, null, [[2,
|
|
14046
|
+
}, _callee2, null, [[2, 31]]);
|
|
13977
14047
|
}))); // end
|
|
13978
14048
|
// FUZZY SEARCH CREATE INITIALSTATE
|
|
13979
14049
|
|
|
@@ -40016,7 +40086,33 @@ var query$3 = {
|
|
|
40016
40086
|
// }`
|
|
40017
40087
|
// }
|
|
40018
40088
|
avc_login: function avc_login(id) {
|
|
40019
|
-
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Appointment\",\n \"filter\": \"Appointment._key == '").concat(id, "' && Appointment.activestatus==true\",\n \"return_fields\": \"merge(Appointment,{orgid:document(Appointment.orgid)},{resourcecode:(for pt in Practitioner filter pt._id == Appointment.resourcecode return merge(pt,{name:document(pt.name)}))},{practitionerID:(for pract in Practitioner filter pract.id in Appointment.practitionerID return merge(pract,{name:(for hm in HumanNameMaster filter hm._id in pract.name return merge(hm,{use:(for cod in CodeableConceptMaster filter cod._id== hm.use return document(cod.coding)),prefix:(for cod in CodeableConceptMaster filter cod._id == hm.prefix return document(cod.coding)),suffix:(for cod in CodeableConceptMaster filter cod._id == hm.suffix return document(cod.coding))}))},{practitioner_role:(for prid in PractitionerRole filter prid._id in pract.practitioner_role return merge(prid,{role:(for rol in CodeableConceptMaster filter rol._id == prid.role return merge(rol,{coding:document(rol.coding)}))}))},{practitioner_type:(for typ in CodeableConceptMaster filter typ._id == pract.practitioner_type return merge(typ,{coding:document(typ.coding)}))},{photo:document(pract.photo)},{gender:document(pract.gender)}))},{PersonID:(for
|
|
40089
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Appointment\",\n \"filter\": \"Appointment._key == '").concat(id, "' && Appointment.activestatus==true\",\n \"return_fields\": \"merge(Appointment,{orgid:document(Appointment.orgid)},{resourcecode:(for pt in Practitioner filter pt._id == Appointment.resourcecode return merge(pt,{name:document(pt.name)}))},{practitionerID:(for pract in Practitioner filter pract.id in Appointment.practitionerID return merge(pract,{name:(for hm in HumanNameMaster filter hm._id in pract.name return merge(hm,{use:(for cod in CodeableConceptMaster filter cod._id== hm.use return document(cod.coding)),prefix:(for cod in CodeableConceptMaster filter cod._id == hm.prefix return document(cod.coding)),suffix:(for cod in CodeableConceptMaster filter cod._id == hm.suffix return document(cod.coding))}))},{practitioner_role:(for prid in PractitionerRole filter prid._id in pract.practitioner_role return merge(prid,{role:(for rol in CodeableConceptMaster filter rol._id == prid.role return merge(rol,{coding:document(rol.coding)}))}))},{practitioner_type:(for typ in CodeableConceptMaster filter typ._id == pract.practitioner_type return merge(typ,{coding:document(typ.coding)}))},{photo:document(pract.photo)},{gender:document(pract.gender)}))},{PersonID:(for pid in Person filter pid.Id in Appointment.PersonID return merge(pid,{name:(for hm in HumanNameMaster filter hm._id in pid.name return merge(hm,{use:document(hm.use),prefix:document(hm.prefix),suffix:document(hm.suffix)})),photo:document(pid.photo),age_type:document(pid.age_type)},{telecom:document(pid.telecom)},{gender:document(pid.gender)},{personID:(for psid in Person filter psid.Id == pid.personID return merge(psid,{name:document(psid.name)}))}))},{PatientID:(for pat in Patient filter pat.personID in Appointment.PersonID return merge(pat,{name:(for hm in HumanNameMaster filter hm._id in pat.name return merge(hm,{use:document(hm.use),prefix:document(hm.prefix),suffix:document(hm.suffix)})),photo:document(pat.photo),age_type:document(pat.age_type)},{telecom:document(pat.telecom)},{gender:document(pat.gender)},{personID:(for psid in Person filter psid.Id == pat.personID return merge(psid,{name:document(psid.name)}))}))})\"\n }");
|
|
40090
|
+
},
|
|
40091
|
+
avc_participant_joined_qu: function avc_participant_joined_qu(id) {
|
|
40092
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n }");
|
|
40093
|
+
}
|
|
40094
|
+
};
|
|
40095
|
+
|
|
40096
|
+
var generateJson = {
|
|
40097
|
+
insert_json: function insert_json(data, appInfo) {
|
|
40098
|
+
var _appInfo$dataJson, _appInfo$dataJson$Per, _appInfo$dataJson2, _appInfo$dataJson2$re;
|
|
40099
|
+
|
|
40100
|
+
debugger;
|
|
40101
|
+
return [{
|
|
40102
|
+
db_name: dbName,
|
|
40103
|
+
entity: "ConsentTrx",
|
|
40104
|
+
is_metadata: true,
|
|
40105
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
40106
|
+
doc: {
|
|
40107
|
+
id: 0,
|
|
40108
|
+
formid: data === null || data === void 0 ? void 0 : data.formId,
|
|
40109
|
+
patientid: appInfo === null || appInfo === void 0 ? void 0 : (_appInfo$dataJson = appInfo.dataJson) === null || _appInfo$dataJson === void 0 ? void 0 : (_appInfo$dataJson$Per = _appInfo$dataJson.PersonID[0]) === null || _appInfo$dataJson$Per === void 0 ? void 0 : _appInfo$dataJson$Per._id,
|
|
40110
|
+
practitionerid: appInfo === null || appInfo === void 0 ? void 0 : (_appInfo$dataJson2 = appInfo.dataJson) === null || _appInfo$dataJson2 === void 0 ? void 0 : (_appInfo$dataJson2$re = _appInfo$dataJson2.resourcecode[0]) === null || _appInfo$dataJson2$re === void 0 ? void 0 : _appInfo$dataJson2$re.practitioner_id,
|
|
40111
|
+
terms: true,
|
|
40112
|
+
sysinfo: data === null || data === void 0 ? void 0 : data.answer,
|
|
40113
|
+
appnum: appInfo === null || appInfo === void 0 ? void 0 : appInfo.app_id
|
|
40114
|
+
}
|
|
40115
|
+
}];
|
|
40020
40116
|
}
|
|
40021
40117
|
};
|
|
40022
40118
|
|
|
@@ -40047,6 +40143,41 @@ var AVC_LOGIN = createAsyncThunk("avcMeetApiSlice/avc_info", /*#__PURE__*/_async
|
|
|
40047
40143
|
_data$resourcerole,
|
|
40048
40144
|
_data$orgid$name,
|
|
40049
40145
|
_data$orgid,
|
|
40146
|
+
_data$PatientID,
|
|
40147
|
+
_data$PatientID$,
|
|
40148
|
+
_data$PatientID$$name,
|
|
40149
|
+
_data$PatientID$$name2,
|
|
40150
|
+
_data$PatientID2,
|
|
40151
|
+
_data$PatientID2$,
|
|
40152
|
+
_data$PatientID2$$nam,
|
|
40153
|
+
_data$PatientID2$$nam2,
|
|
40154
|
+
_data$PatientID3,
|
|
40155
|
+
_data$PatientID3$,
|
|
40156
|
+
_data$PatientID3$$nam,
|
|
40157
|
+
_data$PatientID3$$nam2,
|
|
40158
|
+
_data$PatientID4,
|
|
40159
|
+
_data$PatientID4$,
|
|
40160
|
+
_data$PatientID4$$nam,
|
|
40161
|
+
_data$PatientID4$$nam2,
|
|
40162
|
+
_data$PatientID5,
|
|
40163
|
+
_data$PatientID5$,
|
|
40164
|
+
_data$PatientID6,
|
|
40165
|
+
_data$PatientID6$,
|
|
40166
|
+
_data$PatientID7,
|
|
40167
|
+
_data$PatientID7$,
|
|
40168
|
+
_data$PatientID7$$age,
|
|
40169
|
+
_data$PatientID$0$gen,
|
|
40170
|
+
_data$PatientID8,
|
|
40171
|
+
_data$PatientID8$,
|
|
40172
|
+
_data$PatientID8$$gen,
|
|
40173
|
+
_data$PatientID$0$ali,
|
|
40174
|
+
_data$PatientID9,
|
|
40175
|
+
_data$PatientID9$,
|
|
40176
|
+
_data$PatientID$0$tel,
|
|
40177
|
+
_data$PatientID10,
|
|
40178
|
+
_data$PatientID10$,
|
|
40179
|
+
_data$PatientID10$$te,
|
|
40180
|
+
_data$PatientID10$$te2,
|
|
40050
40181
|
_data$PersonID,
|
|
40051
40182
|
_data$PersonID$,
|
|
40052
40183
|
_data$PersonID$$name,
|
|
@@ -40105,6 +40236,7 @@ var AVC_LOGIN = createAsyncThunk("avcMeetApiSlice/avc_info", /*#__PURE__*/_async
|
|
|
40105
40236
|
case 6:
|
|
40106
40237
|
resp = _context.sent;
|
|
40107
40238
|
data = (resp === null || resp === void 0 ? void 0 : (_resp$result = resp.result) === null || _resp$result === void 0 ? void 0 : _resp$result[0]) || [];
|
|
40239
|
+
debugger;
|
|
40108
40240
|
res_data = {
|
|
40109
40241
|
date: (_data$start = data === null || data === void 0 ? void 0 : data.start) !== null && _data$start !== void 0 ? _data$start : "",
|
|
40110
40242
|
app_id: (_data$appno = data === null || data === void 0 ? void 0 : data.appno) !== null && _data$appno !== void 0 ? _data$appno : "",
|
|
@@ -40119,6 +40251,13 @@ var AVC_LOGIN = createAsyncThunk("avcMeetApiSlice/avc_info", /*#__PURE__*/_async
|
|
|
40119
40251
|
org_name: (_data$orgid$name = data === null || data === void 0 ? void 0 : (_data$orgid = data.orgid) === null || _data$orgid === void 0 ? void 0 : _data$orgid.name) !== null && _data$orgid$name !== void 0 ? _data$orgid$name : ""
|
|
40120
40252
|
},
|
|
40121
40253
|
patient: {
|
|
40254
|
+
name: (data === null || data === void 0 ? void 0 : (_data$PatientID = data.PatientID) === null || _data$PatientID === void 0 ? void 0 : (_data$PatientID$ = _data$PatientID[0]) === null || _data$PatientID$ === void 0 ? void 0 : (_data$PatientID$$name = _data$PatientID$.name) === null || _data$PatientID$$name === void 0 ? void 0 : (_data$PatientID$$name2 = _data$PatientID$$name[0]) === null || _data$PatientID$$name2 === void 0 ? void 0 : _data$PatientID$$name2.text) ? (data === null || data === void 0 ? void 0 : (_data$PatientID2 = data.PatientID) === null || _data$PatientID2 === void 0 ? void 0 : (_data$PatientID2$ = _data$PatientID2[0]) === null || _data$PatientID2$ === void 0 ? void 0 : (_data$PatientID2$$nam = _data$PatientID2$.name) === null || _data$PatientID2$$nam === void 0 ? void 0 : (_data$PatientID2$$nam2 = _data$PatientID2$$nam[0]) === null || _data$PatientID2$$nam2 === void 0 ? void 0 : _data$PatientID2$$nam2.text) + " " + (data === null || data === void 0 ? void 0 : (_data$PatientID3 = data.PatientID) === null || _data$PatientID3 === void 0 ? void 0 : (_data$PatientID3$ = _data$PatientID3[0]) === null || _data$PatientID3$ === void 0 ? void 0 : (_data$PatientID3$$nam = _data$PatientID3$.name) === null || _data$PatientID3$$nam === void 0 ? void 0 : (_data$PatientID3$$nam2 = _data$PatientID3$$nam[0]) === null || _data$PatientID3$$nam2 === void 0 ? void 0 : _data$PatientID3$$nam2.given) + " " + (data === null || data === void 0 ? void 0 : (_data$PatientID4 = data.PatientID) === null || _data$PatientID4 === void 0 ? void 0 : (_data$PatientID4$ = _data$PatientID4[0]) === null || _data$PatientID4$ === void 0 ? void 0 : (_data$PatientID4$$nam = _data$PatientID4$.name) === null || _data$PatientID4$$nam === void 0 ? void 0 : (_data$PatientID4$$nam2 = _data$PatientID4$$nam[0]) === null || _data$PatientID4$$nam2 === void 0 ? void 0 : _data$PatientID4$$nam2.family) : "",
|
|
40255
|
+
age: (data === null || data === void 0 ? void 0 : (_data$PatientID5 = data.PatientID) === null || _data$PatientID5 === void 0 ? void 0 : (_data$PatientID5$ = _data$PatientID5[0]) === null || _data$PatientID5$ === void 0 ? void 0 : _data$PatientID5$.age) ? (data === null || data === void 0 ? void 0 : (_data$PatientID6 = data.PatientID) === null || _data$PatientID6 === void 0 ? void 0 : (_data$PatientID6$ = _data$PatientID6[0]) === null || _data$PatientID6$ === void 0 ? void 0 : _data$PatientID6$.age) + " " + (data === null || data === void 0 ? void 0 : (_data$PatientID7 = data.PatientID) === null || _data$PatientID7 === void 0 ? void 0 : (_data$PatientID7$ = _data$PatientID7[0]) === null || _data$PatientID7$ === void 0 ? void 0 : (_data$PatientID7$$age = _data$PatientID7$.age_type) === null || _data$PatientID7$$age === void 0 ? void 0 : _data$PatientID7$$age.code) : "",
|
|
40256
|
+
gander: (_data$PatientID$0$gen = data === null || data === void 0 ? void 0 : (_data$PatientID8 = data.PatientID) === null || _data$PatientID8 === void 0 ? void 0 : (_data$PatientID8$ = _data$PatientID8[0]) === null || _data$PatientID8$ === void 0 ? void 0 : (_data$PatientID8$$gen = _data$PatientID8$.gender) === null || _data$PatientID8$$gen === void 0 ? void 0 : _data$PatientID8$$gen.display) !== null && _data$PatientID$0$gen !== void 0 ? _data$PatientID$0$gen : "",
|
|
40257
|
+
id: (_data$PatientID$0$ali = data === null || data === void 0 ? void 0 : (_data$PatientID9 = data.PatientID) === null || _data$PatientID9 === void 0 ? void 0 : (_data$PatientID9$ = _data$PatientID9[0]) === null || _data$PatientID9$ === void 0 ? void 0 : _data$PatientID9$.alias) !== null && _data$PatientID$0$ali !== void 0 ? _data$PatientID$0$ali : "",
|
|
40258
|
+
mobile: (_data$PatientID$0$tel = data === null || data === void 0 ? void 0 : (_data$PatientID10 = data.PatientID) === null || _data$PatientID10 === void 0 ? void 0 : (_data$PatientID10$ = _data$PatientID10[0]) === null || _data$PatientID10$ === void 0 ? void 0 : (_data$PatientID10$$te = _data$PatientID10$.telecom) === null || _data$PatientID10$$te === void 0 ? void 0 : (_data$PatientID10$$te2 = _data$PatientID10$$te[0]) === null || _data$PatientID10$$te2 === void 0 ? void 0 : _data$PatientID10$$te2.value) !== null && _data$PatientID$0$tel !== void 0 ? _data$PatientID$0$tel : ""
|
|
40259
|
+
},
|
|
40260
|
+
personID: {
|
|
40122
40261
|
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) + " " + (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$$name = _data$PersonID3$.name) === null || _data$PersonID3$$name === void 0 ? void 0 : (_data$PersonID3$$name2 = _data$PersonID3$$name[0]) === null || _data$PersonID3$$name2 === void 0 ? void 0 : _data$PersonID3$$name2.given) + " " + (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$$name = _data$PersonID4$.name) === null || _data$PersonID4$$name === void 0 ? void 0 : (_data$PersonID4$$name2 = _data$PersonID4$$name[0]) === null || _data$PersonID4$$name2 === void 0 ? void 0 : _data$PersonID4$$name2.family) : "-",
|
|
40123
40262
|
age: (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$.age) ? (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$.age) + " " + (data === null || data === void 0 ? void 0 : (_data$PersonID7 = data.PersonID) === null || _data$PersonID7 === void 0 ? void 0 : (_data$PersonID7$ = _data$PersonID7[0]) === null || _data$PersonID7$ === void 0 ? void 0 : (_data$PersonID7$$age_ = _data$PersonID7$.age_type) === null || _data$PersonID7$$age_ === void 0 ? void 0 : _data$PersonID7$$age_.code) : "",
|
|
40124
40263
|
gander: (_data$PersonID$0$gend = data === null || data === void 0 ? void 0 : (_data$PersonID8 = data.PersonID) === null || _data$PersonID8 === void 0 ? void 0 : (_data$PersonID8$ = _data$PersonID8[0]) === null || _data$PersonID8$ === void 0 ? void 0 : (_data$PersonID8$$gend = _data$PersonID8$.gender) === null || _data$PersonID8$$gend === void 0 ? void 0 : _data$PersonID8$$gend.display) !== null && _data$PersonID$0$gend !== void 0 ? _data$PersonID$0$gend : "",
|
|
@@ -40131,24 +40270,119 @@ var AVC_LOGIN = createAsyncThunk("avcMeetApiSlice/avc_info", /*#__PURE__*/_async
|
|
|
40131
40270
|
data: res_data
|
|
40132
40271
|
}));
|
|
40133
40272
|
|
|
40134
|
-
case
|
|
40135
|
-
_context.prev =
|
|
40273
|
+
case 13:
|
|
40274
|
+
_context.prev = 13;
|
|
40136
40275
|
_context.t0 = _context["catch"](2);
|
|
40137
40276
|
return _context.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40138
40277
|
message: _context.t0.message
|
|
40139
40278
|
})));
|
|
40140
40279
|
|
|
40141
|
-
case
|
|
40280
|
+
case 16:
|
|
40142
40281
|
case "end":
|
|
40143
40282
|
return _context.stop();
|
|
40144
40283
|
}
|
|
40145
40284
|
}
|
|
40146
|
-
}, _callee, null, [[2,
|
|
40285
|
+
}, _callee, null, [[2, 13]]);
|
|
40286
|
+
})));
|
|
40287
|
+
var AVC_FORM_INSERT = createAsyncThunk("avcMeetApiSlice/avc_form", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
40288
|
+
var payload,
|
|
40289
|
+
_ref4,
|
|
40290
|
+
rejectWithValue,
|
|
40291
|
+
data,
|
|
40292
|
+
appInfo,
|
|
40293
|
+
queriesjson,
|
|
40294
|
+
dataResult,
|
|
40295
|
+
result,
|
|
40296
|
+
_args2 = arguments;
|
|
40297
|
+
|
|
40298
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
40299
|
+
while (1) {
|
|
40300
|
+
switch (_context2.prev = _context2.next) {
|
|
40301
|
+
case 0:
|
|
40302
|
+
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
40303
|
+
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
40304
|
+
_context2.prev = 2;
|
|
40305
|
+
data = payload.data, appInfo = payload.appInfo;
|
|
40306
|
+
queriesjson = generateJson.insert_json(data, appInfo);
|
|
40307
|
+
_context2.next = 7;
|
|
40308
|
+
return fetchData$3({
|
|
40309
|
+
body: JSON.stringify(queriesjson)
|
|
40310
|
+
}, __uspsertUrl__);
|
|
40311
|
+
|
|
40312
|
+
case 7:
|
|
40313
|
+
dataResult = _context2.sent;
|
|
40314
|
+
result = [];
|
|
40315
|
+
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
40316
|
+
data: result
|
|
40317
|
+
}));
|
|
40318
|
+
|
|
40319
|
+
case 12:
|
|
40320
|
+
_context2.prev = 12;
|
|
40321
|
+
_context2.t0 = _context2["catch"](2);
|
|
40322
|
+
return _context2.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40323
|
+
message: _context2.t0.message
|
|
40324
|
+
})));
|
|
40325
|
+
|
|
40326
|
+
case 15:
|
|
40327
|
+
case "end":
|
|
40328
|
+
return _context2.stop();
|
|
40329
|
+
}
|
|
40330
|
+
}
|
|
40331
|
+
}, _callee2, null, [[2, 12]]);
|
|
40332
|
+
})));
|
|
40333
|
+
var AVC_PARTICIPANT_JOINED = createAsyncThunk("avcMeetApiSlice/avc_participant_joined", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
40334
|
+
var payload,
|
|
40335
|
+
_ref6,
|
|
40336
|
+
rejectWithValue,
|
|
40337
|
+
_resp$result2,
|
|
40338
|
+
_payload$id2,
|
|
40339
|
+
id,
|
|
40340
|
+
resp,
|
|
40341
|
+
data,
|
|
40342
|
+
res_data,
|
|
40343
|
+
_args3 = arguments;
|
|
40344
|
+
|
|
40345
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
40346
|
+
while (1) {
|
|
40347
|
+
switch (_context3.prev = _context3.next) {
|
|
40348
|
+
case 0:
|
|
40349
|
+
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
40350
|
+
_ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
|
|
40351
|
+
_context3.prev = 2;
|
|
40352
|
+
_payload$id2 = payload.id, id = _payload$id2 === void 0 ? "" : _payload$id2;
|
|
40353
|
+
_context3.next = 6;
|
|
40354
|
+
return fetchData$3({
|
|
40355
|
+
body: query$3.avc_participant_joined_qu(id)
|
|
40356
|
+
}, __readDocumentUrl__);
|
|
40357
|
+
|
|
40358
|
+
case 6:
|
|
40359
|
+
resp = _context3.sent;
|
|
40360
|
+
data = (resp === null || resp === void 0 ? void 0 : (_resp$result2 = resp.result) === null || _resp$result2 === void 0 ? void 0 : _resp$result2[0]) || [];
|
|
40361
|
+
res_data = {};
|
|
40362
|
+
return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
40363
|
+
data: res_data
|
|
40364
|
+
}));
|
|
40365
|
+
|
|
40366
|
+
case 12:
|
|
40367
|
+
_context3.prev = 12;
|
|
40368
|
+
_context3.t0 = _context3["catch"](2);
|
|
40369
|
+
return _context3.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40370
|
+
message: _context3.t0.message
|
|
40371
|
+
})));
|
|
40372
|
+
|
|
40373
|
+
case 15:
|
|
40374
|
+
case "end":
|
|
40375
|
+
return _context3.stop();
|
|
40376
|
+
}
|
|
40377
|
+
}
|
|
40378
|
+
}, _callee3, null, [[2, 12]]);
|
|
40147
40379
|
})));
|
|
40148
40380
|
var avcMeetApiSlice = createSlice({
|
|
40149
40381
|
name: "avcMeetApiSlice",
|
|
40150
40382
|
initialState: {
|
|
40151
|
-
avc_info: _objectSpread2({}, defaultState.Info)
|
|
40383
|
+
avc_info: _objectSpread2({}, defaultState.Info),
|
|
40384
|
+
avc_form: _objectSpread2({}, defaultState.Info),
|
|
40385
|
+
avc_participant_joined: _objectSpread2({}, defaultState.Info)
|
|
40152
40386
|
},
|
|
40153
40387
|
extraReducers: (_extraReducers$3 = {}, _defineProperty(_extraReducers$3, AVC_LOGIN.fulfilled, function (state, action) {
|
|
40154
40388
|
var _action$payload;
|
|
@@ -40160,10 +40394,32 @@ var avcMeetApiSlice = createSlice({
|
|
|
40160
40394
|
var _action$payload2;
|
|
40161
40395
|
|
|
40162
40396
|
state.avc_info = (_action$payload2 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload2 !== void 0 ? _action$payload2 : [];
|
|
40397
|
+
}), _defineProperty(_extraReducers$3, AVC_FORM_INSERT.fulfilled, function (state, action) {
|
|
40398
|
+
var _action$payload3;
|
|
40399
|
+
|
|
40400
|
+
state.avc_form = (_action$payload3 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload3 !== void 0 ? _action$payload3 : [];
|
|
40401
|
+
}), _defineProperty(_extraReducers$3, AVC_FORM_INSERT.pending, function (state, action) {
|
|
40402
|
+
state.avc_form.loading = true;
|
|
40403
|
+
}), _defineProperty(_extraReducers$3, AVC_FORM_INSERT.rejected, function (state, action) {
|
|
40404
|
+
var _action$payload4;
|
|
40405
|
+
|
|
40406
|
+
state.avc_form = (_action$payload4 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload4 !== void 0 ? _action$payload4 : [];
|
|
40407
|
+
}), _defineProperty(_extraReducers$3, AVC_PARTICIPANT_JOINED.fulfilled, function (state, action) {
|
|
40408
|
+
var _action$payload5;
|
|
40409
|
+
|
|
40410
|
+
state.avc_participant_joined = (_action$payload5 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload5 !== void 0 ? _action$payload5 : [];
|
|
40411
|
+
}), _defineProperty(_extraReducers$3, AVC_PARTICIPANT_JOINED.pending, function (state, action) {
|
|
40412
|
+
state.avc_participant_joined.loading = true;
|
|
40413
|
+
}), _defineProperty(_extraReducers$3, AVC_PARTICIPANT_JOINED.rejected, function (state, action) {
|
|
40414
|
+
var _action$payload6;
|
|
40415
|
+
|
|
40416
|
+
state.avc_participant_joined = (_action$payload6 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload6 !== void 0 ? _action$payload6 : [];
|
|
40163
40417
|
}), _extraReducers$3)
|
|
40164
40418
|
});
|
|
40165
40419
|
var avcMeetApiActions = {
|
|
40166
|
-
AVC_LOGIN: AVC_LOGIN
|
|
40420
|
+
AVC_LOGIN: AVC_LOGIN,
|
|
40421
|
+
AVC_FORM_INSERT: AVC_FORM_INSERT,
|
|
40422
|
+
AVC_PARTICIPANT_JOINED: AVC_PARTICIPANT_JOINED
|
|
40167
40423
|
};
|
|
40168
40424
|
var avcMeetApiSlice$1 = avcMeetApiSlice.reducer;
|
|
40169
40425
|
|