primarycare-binder 1.1.16 → 1.1.20
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 +209 -16
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -11022,6 +11022,7 @@ var APPOINTMENT_UPDATE_READ = createAsyncThunk("appointmentReducer/upsertReadApp
|
|
|
11022
11022
|
};
|
|
11023
11023
|
healthCareId = (data === null || data === void 0 ? void 0 : data.HealthCareServiceID) || [];
|
|
11024
11024
|
info = {
|
|
11025
|
+
locationId: "",
|
|
11025
11026
|
clinicId: 0,
|
|
11026
11027
|
id: 0,
|
|
11027
11028
|
subtext: "",
|
|
@@ -11056,6 +11057,7 @@ var APPOINTMENT_UPDATE_READ = createAsyncThunk("appointmentReducer/upsertReadApp
|
|
|
11056
11057
|
|
|
11057
11058
|
if (Array.isArray(practData)) {
|
|
11058
11059
|
if (isClinic) {
|
|
11060
|
+
info["locationId"] = id[0];
|
|
11059
11061
|
info["name"] = ((_practData$2 = practData[0]) === null || _practData$2 === void 0 ? void 0 : _practData$2.shortdesc) || "";
|
|
11060
11062
|
info["hospitalName"] = ((_practData$3 = practData[0]) === null || _practData$3 === void 0 ? void 0 : (_practData$3$Organiza = _practData$3.Organization) === null || _practData$3$Organiza === void 0 ? void 0 : (_practData$3$Organiza2 = _practData$3$Organiza[0]) === null || _practData$3$Organiza2 === void 0 ? void 0 : _practData$3$Organiza2.name) || "";
|
|
11061
11063
|
info["hospitalLocation"] = ((_practData$4 = practData[0]) === null || _practData$4 === void 0 ? void 0 : (_practData$4$Organiza = _practData$4.Organization) === null || _practData$4$Organiza === void 0 ? void 0 : (_practData$4$Organiza2 = _practData$4$Organiza.address) === null || _practData$4$Organiza2 === void 0 ? void 0 : (_practData$4$Organiza3 = _practData$4$Organiza2[0]) === null || _practData$4$Organiza3 === void 0 ? void 0 : _practData$4$Organiza3.line) || "";
|
|
@@ -11297,7 +11299,7 @@ var GET__FOLLOW_UP_APPOINTMENT = createAsyncThunk("appointmentReducer/follow_up_
|
|
|
11297
11299
|
db_name: dbName,
|
|
11298
11300
|
entity: "AppointmentRequest",
|
|
11299
11301
|
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:
|
|
11302
|
+
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
11303
|
}; // const body = {
|
|
11302
11304
|
// "db_name": dbName,
|
|
11303
11305
|
// "entity": "AppointmentRequest",
|
|
@@ -11540,6 +11542,8 @@ var GENERAL_INSTRUCTION = createAsyncThunk("appointmentReducer/generalInstructio
|
|
|
11540
11542
|
var payload,
|
|
11541
11543
|
_ref23,
|
|
11542
11544
|
rejectWithValue,
|
|
11545
|
+
_data$result2,
|
|
11546
|
+
_data$result2$,
|
|
11543
11547
|
_payload$org_id,
|
|
11544
11548
|
org_id,
|
|
11545
11549
|
body,
|
|
@@ -11559,7 +11563,7 @@ var GENERAL_INSTRUCTION = createAsyncThunk("appointmentReducer/generalInstructio
|
|
|
11559
11563
|
db_name: dbName,
|
|
11560
11564
|
entity: "ResourcebyApptType",
|
|
11561
11565
|
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)}))}"
|
|
11566
|
+
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
11567
|
};
|
|
11564
11568
|
_context11.next = 7;
|
|
11565
11569
|
return fetchData$3({
|
|
@@ -11592,7 +11596,8 @@ var GENERAL_INSTRUCTION = createAsyncThunk("appointmentReducer/generalInstructio
|
|
|
11592
11596
|
return _context11.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
11593
11597
|
data: {
|
|
11594
11598
|
appointmentInstruction: _toConsumableArray(returnData.appointmentInstruction),
|
|
11595
|
-
generalInstruction: _toConsumableArray(returnData.generalInstruction)
|
|
11599
|
+
generalInstruction: _toConsumableArray(returnData.generalInstruction),
|
|
11600
|
+
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
11601
|
}
|
|
11597
11602
|
}));
|
|
11598
11603
|
|
|
@@ -12052,7 +12057,7 @@ var REASON_FOR_APPT_CANCEL_MODIFY = createAsyncThunk("appointmentReducer/reasonF
|
|
|
12052
12057
|
body,
|
|
12053
12058
|
data,
|
|
12054
12059
|
returnData,
|
|
12055
|
-
_data$
|
|
12060
|
+
_data$result3,
|
|
12056
12061
|
_args16 = arguments;
|
|
12057
12062
|
|
|
12058
12063
|
return regeneratorRuntime.wrap(function _callee16$(_context16) {
|
|
@@ -12078,7 +12083,7 @@ var REASON_FOR_APPT_CANCEL_MODIFY = createAsyncThunk("appointmentReducer/reasonF
|
|
|
12078
12083
|
returnData = [];
|
|
12079
12084
|
|
|
12080
12085
|
if (Array.isArray(data === null || data === void 0 ? void 0 : data.result)) {
|
|
12081
|
-
data === null || data === void 0 ? void 0 : (_data$
|
|
12086
|
+
data === null || data === void 0 ? void 0 : (_data$result3 = data.result) === null || _data$result3 === void 0 ? void 0 : _data$result3.map(function (_) {
|
|
12082
12087
|
returnData.push({
|
|
12083
12088
|
title: _ === null || _ === void 0 ? void 0 : _.display,
|
|
12084
12089
|
value: _ === null || _ === void 0 ? void 0 : _.id,
|
|
@@ -13861,6 +13866,7 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13861
13866
|
clinicId: (restData === null || restData === void 0 ? void 0 : (_restData$locationID = restData.locationID) === null || _restData$locationID === void 0 ? void 0 : _restData$locationID.id) || 0,
|
|
13862
13867
|
id: id,
|
|
13863
13868
|
subtext: "",
|
|
13869
|
+
locationId: "",
|
|
13864
13870
|
name: "",
|
|
13865
13871
|
title: "",
|
|
13866
13872
|
price: "",
|
|
@@ -13893,7 +13899,7 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13893
13899
|
};
|
|
13894
13900
|
|
|
13895
13901
|
if (isClinic) {
|
|
13896
|
-
var _restData$clinics5, _restData$clinics5$, _s$Type, _restData$locationID2, _restData$address2, _restData$address2$, _restData$address3, _restData$address3$, _restData$Practitione, _restData$address4, _restData$address4$, _restData$
|
|
13902
|
+
var _restData$clinics5, _restData$clinics5$, _s$Type, _restData$locationID2, _restData$locationID3, _restData$address2, _restData$address2$, _restData$address3, _restData$address3$, _restData$Practitione, _restData$address4, _restData$address4$, _restData$locationID4, _restData$locationID5, _restData$locationID6;
|
|
13897
13903
|
|
|
13898
13904
|
var s = restData === null || restData === void 0 ? void 0 : (_restData$clinics5 = restData.clinics) === null || _restData$clinics5 === void 0 ? void 0 : (_restData$clinics5$ = _restData$clinics5[0]) === null || _restData$clinics5$ === void 0 ? void 0 : _restData$clinics5$.Specialties;
|
|
13899
13905
|
|
|
@@ -13912,7 +13918,8 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13912
13918
|
});
|
|
13913
13919
|
}
|
|
13914
13920
|
|
|
13915
|
-
info["
|
|
13921
|
+
info["locationId"] = restData === null || restData === void 0 ? void 0 : (_restData$locationID2 = restData.locationID) === null || _restData$locationID2 === void 0 ? void 0 : _restData$locationID2._id;
|
|
13922
|
+
info["name"] = (restData === null || restData === void 0 ? void 0 : (_restData$locationID3 = restData.locationID) === null || _restData$locationID3 === void 0 ? void 0 : _restData$locationID3.shortdesc) || "";
|
|
13916
13923
|
info["hospitalName"] = (restData === null || restData === void 0 ? void 0 : restData.name) || "";
|
|
13917
13924
|
info["hospitalLocation"] = (restData === null || restData === void 0 ? void 0 : (_restData$address2 = restData.address) === null || _restData$address2 === void 0 ? void 0 : (_restData$address2$ = _restData$address2[0]) === null || _restData$address2$ === void 0 ? void 0 : _restData$address2$.line) || "";
|
|
13918
13925
|
info["title"] = (restData === null || restData === void 0 ? void 0 : (_restData$address3 = restData.address) === null || _restData$address3 === void 0 ? void 0 : (_restData$address3$ = _restData$address3[0]) === null || _restData$address3$ === void 0 ? void 0 : _restData$address3$.line) || "";
|
|
@@ -13929,7 +13936,7 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13929
13936
|
});
|
|
13930
13937
|
info["kms"] = (restData === null || restData === void 0 ? void 0 : (_restData$address4 = restData.address) === null || _restData$address4 === void 0 ? void 0 : (_restData$address4$ = _restData$address4[0]) === null || _restData$address4$ === void 0 ? void 0 : _restData$address4$.distance) ? "".concat(restData.address[0].distance) : "0";
|
|
13931
13938
|
info["key"] = restData === null || restData === void 0 ? void 0 : restData._key;
|
|
13932
|
-
info["img"] = getImgUrl(restData === null || restData === void 0 ? void 0 : (_restData$
|
|
13939
|
+
info["img"] = getImgUrl(restData === null || restData === void 0 ? void 0 : (_restData$locationID4 = restData.locationID) === null || _restData$locationID4 === void 0 ? void 0 : (_restData$locationID5 = _restData$locationID4.photo) === null || _restData$locationID5 === void 0 ? void 0 : (_restData$locationID6 = _restData$locationID5[0]) === null || _restData$locationID6 === void 0 ? void 0 : _restData$locationID6.fileid);
|
|
13933
13940
|
} else {
|
|
13934
13941
|
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$;
|
|
13935
13942
|
|
|
@@ -37064,7 +37071,7 @@ var clinicQuery = {
|
|
|
37064
37071
|
return {
|
|
37065
37072
|
db_name: dbName,
|
|
37066
37073
|
entity: "LocationMaster,LocationMaster_CodeableConceptMaster_E,CodeableConceptMaster_CodingMaster_E,LocationMaster_LocationRoleType_E,LocationMaster_Organization_E,Organization_CodeableConceptMaster_E,LocationMaster_ContactPointMaster_E,LocationMaster_AddressMaster_E,LocationMaster_AttachmentMaster_E",
|
|
37067
|
-
filter: "LocationMaster.activestatus==true && LocationMaster.
|
|
37074
|
+
filter: "LocationMaster.activestatus==true && LocationMaster._id=='".concat(key, "'"),
|
|
37068
37075
|
isTraversal: "true",
|
|
37069
37076
|
return_fields: "{vertices:v,orginatedata:LocationMaster}"
|
|
37070
37077
|
};
|
|
@@ -40083,7 +40090,33 @@ var query$3 = {
|
|
|
40083
40090
|
// }`
|
|
40084
40091
|
// }
|
|
40085
40092
|
avc_login: function avc_login(id) {
|
|
40086
|
-
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
|
|
40093
|
+
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 }");
|
|
40094
|
+
},
|
|
40095
|
+
avc_participant_joined_qu: function avc_participant_joined_qu(id) {
|
|
40096
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n }");
|
|
40097
|
+
}
|
|
40098
|
+
};
|
|
40099
|
+
|
|
40100
|
+
var generateJson = {
|
|
40101
|
+
insert_json: function insert_json(data, appInfo) {
|
|
40102
|
+
var _appInfo$dataJson, _appInfo$dataJson$Per, _appInfo$dataJson2, _appInfo$dataJson2$re;
|
|
40103
|
+
|
|
40104
|
+
debugger;
|
|
40105
|
+
return [{
|
|
40106
|
+
db_name: dbName,
|
|
40107
|
+
entity: "ConsentTrx",
|
|
40108
|
+
is_metadata: true,
|
|
40109
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
40110
|
+
doc: {
|
|
40111
|
+
id: 0,
|
|
40112
|
+
formid: data === null || data === void 0 ? void 0 : data.formId,
|
|
40113
|
+
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,
|
|
40114
|
+
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,
|
|
40115
|
+
terms: true,
|
|
40116
|
+
sysinfo: data === null || data === void 0 ? void 0 : data.answer,
|
|
40117
|
+
appnum: appInfo === null || appInfo === void 0 ? void 0 : appInfo.app_id
|
|
40118
|
+
}
|
|
40119
|
+
}];
|
|
40087
40120
|
}
|
|
40088
40121
|
};
|
|
40089
40122
|
|
|
@@ -40114,6 +40147,41 @@ var AVC_LOGIN = createAsyncThunk("avcMeetApiSlice/avc_info", /*#__PURE__*/_async
|
|
|
40114
40147
|
_data$resourcerole,
|
|
40115
40148
|
_data$orgid$name,
|
|
40116
40149
|
_data$orgid,
|
|
40150
|
+
_data$PatientID,
|
|
40151
|
+
_data$PatientID$,
|
|
40152
|
+
_data$PatientID$$name,
|
|
40153
|
+
_data$PatientID$$name2,
|
|
40154
|
+
_data$PatientID2,
|
|
40155
|
+
_data$PatientID2$,
|
|
40156
|
+
_data$PatientID2$$nam,
|
|
40157
|
+
_data$PatientID2$$nam2,
|
|
40158
|
+
_data$PatientID3,
|
|
40159
|
+
_data$PatientID3$,
|
|
40160
|
+
_data$PatientID3$$nam,
|
|
40161
|
+
_data$PatientID3$$nam2,
|
|
40162
|
+
_data$PatientID4,
|
|
40163
|
+
_data$PatientID4$,
|
|
40164
|
+
_data$PatientID4$$nam,
|
|
40165
|
+
_data$PatientID4$$nam2,
|
|
40166
|
+
_data$PatientID5,
|
|
40167
|
+
_data$PatientID5$,
|
|
40168
|
+
_data$PatientID6,
|
|
40169
|
+
_data$PatientID6$,
|
|
40170
|
+
_data$PatientID7,
|
|
40171
|
+
_data$PatientID7$,
|
|
40172
|
+
_data$PatientID7$$age,
|
|
40173
|
+
_data$PatientID$0$gen,
|
|
40174
|
+
_data$PatientID8,
|
|
40175
|
+
_data$PatientID8$,
|
|
40176
|
+
_data$PatientID8$$gen,
|
|
40177
|
+
_data$PatientID$0$ali,
|
|
40178
|
+
_data$PatientID9,
|
|
40179
|
+
_data$PatientID9$,
|
|
40180
|
+
_data$PatientID$0$tel,
|
|
40181
|
+
_data$PatientID10,
|
|
40182
|
+
_data$PatientID10$,
|
|
40183
|
+
_data$PatientID10$$te,
|
|
40184
|
+
_data$PatientID10$$te2,
|
|
40117
40185
|
_data$PersonID,
|
|
40118
40186
|
_data$PersonID$,
|
|
40119
40187
|
_data$PersonID$$name,
|
|
@@ -40172,6 +40240,7 @@ var AVC_LOGIN = createAsyncThunk("avcMeetApiSlice/avc_info", /*#__PURE__*/_async
|
|
|
40172
40240
|
case 6:
|
|
40173
40241
|
resp = _context.sent;
|
|
40174
40242
|
data = (resp === null || resp === void 0 ? void 0 : (_resp$result = resp.result) === null || _resp$result === void 0 ? void 0 : _resp$result[0]) || [];
|
|
40243
|
+
debugger;
|
|
40175
40244
|
res_data = {
|
|
40176
40245
|
date: (_data$start = data === null || data === void 0 ? void 0 : data.start) !== null && _data$start !== void 0 ? _data$start : "",
|
|
40177
40246
|
app_id: (_data$appno = data === null || data === void 0 ? void 0 : data.appno) !== null && _data$appno !== void 0 ? _data$appno : "",
|
|
@@ -40186,6 +40255,13 @@ var AVC_LOGIN = createAsyncThunk("avcMeetApiSlice/avc_info", /*#__PURE__*/_async
|
|
|
40186
40255
|
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 : ""
|
|
40187
40256
|
},
|
|
40188
40257
|
patient: {
|
|
40258
|
+
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) : "",
|
|
40259
|
+
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) : "",
|
|
40260
|
+
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 : "",
|
|
40261
|
+
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 : "",
|
|
40262
|
+
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 : ""
|
|
40263
|
+
},
|
|
40264
|
+
personID: {
|
|
40189
40265
|
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) : "-",
|
|
40190
40266
|
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) : "",
|
|
40191
40267
|
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 : "",
|
|
@@ -40198,24 +40274,119 @@ var AVC_LOGIN = createAsyncThunk("avcMeetApiSlice/avc_info", /*#__PURE__*/_async
|
|
|
40198
40274
|
data: res_data
|
|
40199
40275
|
}));
|
|
40200
40276
|
|
|
40201
|
-
case
|
|
40202
|
-
_context.prev =
|
|
40277
|
+
case 13:
|
|
40278
|
+
_context.prev = 13;
|
|
40203
40279
|
_context.t0 = _context["catch"](2);
|
|
40204
40280
|
return _context.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40205
40281
|
message: _context.t0.message
|
|
40206
40282
|
})));
|
|
40207
40283
|
|
|
40208
|
-
case
|
|
40284
|
+
case 16:
|
|
40209
40285
|
case "end":
|
|
40210
40286
|
return _context.stop();
|
|
40211
40287
|
}
|
|
40212
40288
|
}
|
|
40213
|
-
}, _callee, null, [[2,
|
|
40289
|
+
}, _callee, null, [[2, 13]]);
|
|
40290
|
+
})));
|
|
40291
|
+
var AVC_FORM_INSERT = createAsyncThunk("avcMeetApiSlice/avc_form", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
40292
|
+
var payload,
|
|
40293
|
+
_ref4,
|
|
40294
|
+
rejectWithValue,
|
|
40295
|
+
data,
|
|
40296
|
+
appInfo,
|
|
40297
|
+
queriesjson,
|
|
40298
|
+
dataResult,
|
|
40299
|
+
result,
|
|
40300
|
+
_args2 = arguments;
|
|
40301
|
+
|
|
40302
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
40303
|
+
while (1) {
|
|
40304
|
+
switch (_context2.prev = _context2.next) {
|
|
40305
|
+
case 0:
|
|
40306
|
+
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
40307
|
+
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
40308
|
+
_context2.prev = 2;
|
|
40309
|
+
data = payload.data, appInfo = payload.appInfo;
|
|
40310
|
+
queriesjson = generateJson.insert_json(data, appInfo);
|
|
40311
|
+
_context2.next = 7;
|
|
40312
|
+
return fetchData$3({
|
|
40313
|
+
body: JSON.stringify(queriesjson)
|
|
40314
|
+
}, __uspsertUrl__);
|
|
40315
|
+
|
|
40316
|
+
case 7:
|
|
40317
|
+
dataResult = _context2.sent;
|
|
40318
|
+
result = [];
|
|
40319
|
+
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
40320
|
+
data: result
|
|
40321
|
+
}));
|
|
40322
|
+
|
|
40323
|
+
case 12:
|
|
40324
|
+
_context2.prev = 12;
|
|
40325
|
+
_context2.t0 = _context2["catch"](2);
|
|
40326
|
+
return _context2.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40327
|
+
message: _context2.t0.message
|
|
40328
|
+
})));
|
|
40329
|
+
|
|
40330
|
+
case 15:
|
|
40331
|
+
case "end":
|
|
40332
|
+
return _context2.stop();
|
|
40333
|
+
}
|
|
40334
|
+
}
|
|
40335
|
+
}, _callee2, null, [[2, 12]]);
|
|
40336
|
+
})));
|
|
40337
|
+
var AVC_PARTICIPANT_JOINED = createAsyncThunk("avcMeetApiSlice/avc_participant_joined", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
40338
|
+
var payload,
|
|
40339
|
+
_ref6,
|
|
40340
|
+
rejectWithValue,
|
|
40341
|
+
_resp$result2,
|
|
40342
|
+
_payload$id2,
|
|
40343
|
+
id,
|
|
40344
|
+
resp,
|
|
40345
|
+
data,
|
|
40346
|
+
res_data,
|
|
40347
|
+
_args3 = arguments;
|
|
40348
|
+
|
|
40349
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
40350
|
+
while (1) {
|
|
40351
|
+
switch (_context3.prev = _context3.next) {
|
|
40352
|
+
case 0:
|
|
40353
|
+
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
40354
|
+
_ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
|
|
40355
|
+
_context3.prev = 2;
|
|
40356
|
+
_payload$id2 = payload.id, id = _payload$id2 === void 0 ? "" : _payload$id2;
|
|
40357
|
+
_context3.next = 6;
|
|
40358
|
+
return fetchData$3({
|
|
40359
|
+
body: query$3.avc_participant_joined_qu(id)
|
|
40360
|
+
}, __readDocumentUrl__);
|
|
40361
|
+
|
|
40362
|
+
case 6:
|
|
40363
|
+
resp = _context3.sent;
|
|
40364
|
+
data = (resp === null || resp === void 0 ? void 0 : (_resp$result2 = resp.result) === null || _resp$result2 === void 0 ? void 0 : _resp$result2[0]) || [];
|
|
40365
|
+
res_data = {};
|
|
40366
|
+
return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
40367
|
+
data: res_data
|
|
40368
|
+
}));
|
|
40369
|
+
|
|
40370
|
+
case 12:
|
|
40371
|
+
_context3.prev = 12;
|
|
40372
|
+
_context3.t0 = _context3["catch"](2);
|
|
40373
|
+
return _context3.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40374
|
+
message: _context3.t0.message
|
|
40375
|
+
})));
|
|
40376
|
+
|
|
40377
|
+
case 15:
|
|
40378
|
+
case "end":
|
|
40379
|
+
return _context3.stop();
|
|
40380
|
+
}
|
|
40381
|
+
}
|
|
40382
|
+
}, _callee3, null, [[2, 12]]);
|
|
40214
40383
|
})));
|
|
40215
40384
|
var avcMeetApiSlice = createSlice({
|
|
40216
40385
|
name: "avcMeetApiSlice",
|
|
40217
40386
|
initialState: {
|
|
40218
|
-
avc_info: _objectSpread2({}, defaultState.Info)
|
|
40387
|
+
avc_info: _objectSpread2({}, defaultState.Info),
|
|
40388
|
+
avc_form: _objectSpread2({}, defaultState.Info),
|
|
40389
|
+
avc_participant_joined: _objectSpread2({}, defaultState.Info)
|
|
40219
40390
|
},
|
|
40220
40391
|
extraReducers: (_extraReducers$3 = {}, _defineProperty(_extraReducers$3, AVC_LOGIN.fulfilled, function (state, action) {
|
|
40221
40392
|
var _action$payload;
|
|
@@ -40227,10 +40398,32 @@ var avcMeetApiSlice = createSlice({
|
|
|
40227
40398
|
var _action$payload2;
|
|
40228
40399
|
|
|
40229
40400
|
state.avc_info = (_action$payload2 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload2 !== void 0 ? _action$payload2 : [];
|
|
40401
|
+
}), _defineProperty(_extraReducers$3, AVC_FORM_INSERT.fulfilled, function (state, action) {
|
|
40402
|
+
var _action$payload3;
|
|
40403
|
+
|
|
40404
|
+
state.avc_form = (_action$payload3 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload3 !== void 0 ? _action$payload3 : [];
|
|
40405
|
+
}), _defineProperty(_extraReducers$3, AVC_FORM_INSERT.pending, function (state, action) {
|
|
40406
|
+
state.avc_form.loading = true;
|
|
40407
|
+
}), _defineProperty(_extraReducers$3, AVC_FORM_INSERT.rejected, function (state, action) {
|
|
40408
|
+
var _action$payload4;
|
|
40409
|
+
|
|
40410
|
+
state.avc_form = (_action$payload4 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload4 !== void 0 ? _action$payload4 : [];
|
|
40411
|
+
}), _defineProperty(_extraReducers$3, AVC_PARTICIPANT_JOINED.fulfilled, function (state, action) {
|
|
40412
|
+
var _action$payload5;
|
|
40413
|
+
|
|
40414
|
+
state.avc_participant_joined = (_action$payload5 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload5 !== void 0 ? _action$payload5 : [];
|
|
40415
|
+
}), _defineProperty(_extraReducers$3, AVC_PARTICIPANT_JOINED.pending, function (state, action) {
|
|
40416
|
+
state.avc_participant_joined.loading = true;
|
|
40417
|
+
}), _defineProperty(_extraReducers$3, AVC_PARTICIPANT_JOINED.rejected, function (state, action) {
|
|
40418
|
+
var _action$payload6;
|
|
40419
|
+
|
|
40420
|
+
state.avc_participant_joined = (_action$payload6 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload6 !== void 0 ? _action$payload6 : [];
|
|
40230
40421
|
}), _extraReducers$3)
|
|
40231
40422
|
});
|
|
40232
40423
|
var avcMeetApiActions = {
|
|
40233
|
-
AVC_LOGIN: AVC_LOGIN
|
|
40424
|
+
AVC_LOGIN: AVC_LOGIN,
|
|
40425
|
+
AVC_FORM_INSERT: AVC_FORM_INSERT,
|
|
40426
|
+
AVC_PARTICIPANT_JOINED: AVC_PARTICIPANT_JOINED
|
|
40234
40427
|
};
|
|
40235
40428
|
var avcMeetApiSlice$1 = avcMeetApiSlice.reducer;
|
|
40236
40429
|
|