primarycare-binder 1.0.150 → 1.0.154
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 +1606 -67
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2492,9 +2492,9 @@ var queries = {
|
|
|
2492
2492
|
},
|
|
2493
2493
|
specialityAgainstPractitioner: {
|
|
2494
2494
|
query: function query() {
|
|
2495
|
-
return JSON.parse("\n
|
|
2495
|
+
return JSON.parse("\n {\n \"PractitionerRole\": \"Practitioner.practitioner_role[*].PractitionerRoleID ANY ==PractitionerRole._id \"\n }\n ");
|
|
2496
2496
|
},
|
|
2497
|
-
returnFields: "MERGE({_id:Practitioner._id,id:Practitioner.id},{name:(FOR cod IN TO_ARRAY(Practitioner.name) RETURN DOCUMENT(cod))},{SPECIALTY:(
|
|
2497
|
+
returnFields: "MERGE({_id:Practitioner._id,id:Practitioner.id},{name:(FOR cod IN TO_ARRAY(Practitioner.name) RETURN DOCUMENT(cod))},{SPECIALTY:(DOCUMENT(PractitionerRole.SpecialtyID))})" // "MERGE({_id:Practitioner._id,id:Practitioner.id},{name:(FOR cod IN Practitioner.name RETURN DOCUMENT(cod))},{SPECIALTY:DOCUMENT(CodeableConceptMaster._id) })",
|
|
2498
2498
|
|
|
2499
2499
|
},
|
|
2500
2500
|
practitionerAgainstOrganization: {
|
|
@@ -10631,7 +10631,7 @@ var APPOINTMENT_UPDATE_READ = createAsyncThunk("appointmentReducer/upsertReadApp
|
|
|
10631
10631
|
});
|
|
10632
10632
|
info["title"] = "".concat(gender).concat(gender && " | ").concat(designation);
|
|
10633
10633
|
info["subtext"] = ((_practData$0$14 = practData[0][0]) === null || _practData$0$14 === void 0 ? void 0 : (_practData$0$14$degre = _practData$0$14.degree) === null || _practData$0$14$degre === void 0 ? void 0 : _practData$0$14$degre.join(", ")) || "MBBS";
|
|
10634
|
-
info["language"] = languages.size > 0 ? _toConsumableArray(languages) : [
|
|
10634
|
+
info["language"] = languages.size > 0 ? _toConsumableArray(languages) : [];
|
|
10635
10635
|
info["hospitalName"] = ((_practData$0$15 = practData[0][0]) === null || _practData$0$15 === void 0 ? void 0 : (_practData$0$15$hospi = _practData$0$15.hospital) === null || _practData$0$15$hospi === void 0 ? void 0 : _practData$0$15$hospi.alias) || "";
|
|
10636
10636
|
info["hospitalLocation"] = ((_practData$0$16 = practData[0][0]) === null || _practData$0$16 === void 0 ? void 0 : (_practData$0$16$addre = _practData$0$16.address) === null || _practData$0$16$addre === void 0 ? void 0 : (_practData$0$16$addre2 = _practData$0$16$addre[0]) === null || _practData$0$16$addre2 === void 0 ? void 0 : _practData$0$16$addre2.line) || "";
|
|
10637
10637
|
nameObj = ((_practData$0$17 = practData[0][0]) === null || _practData$0$17 === void 0 ? void 0 : (_practData$0$17$name = _practData$0$17.name) === null || _practData$0$17$name === void 0 ? void 0 : _practData$0$17$name[0]) || {};
|
|
@@ -13337,7 +13337,7 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13337
13337
|
info["gender"] = gender;
|
|
13338
13338
|
info["hospId"] = restData === null || restData === void 0 ? void 0 : (_restData$hospital3 = restData.hospital) === null || _restData$hospital3 === void 0 ? void 0 : _restData$hospital3.id;
|
|
13339
13339
|
info["subtext"] = (restData === null || restData === void 0 ? void 0 : (_restData$degree = restData.degree) === null || _restData$degree === void 0 ? void 0 : _restData$degree.join(", ")) || "MBBS";
|
|
13340
|
-
info["language"] = languages.size > 0 ? _toConsumableArray(languages) : [
|
|
13340
|
+
info["language"] = languages.size > 0 ? _toConsumableArray(languages) : [];
|
|
13341
13341
|
info["hospitalName"] = (restData === null || restData === void 0 ? void 0 : (_restData$hospital4 = restData.hospital) === null || _restData$hospital4 === void 0 ? void 0 : _restData$hospital4.alias) || "";
|
|
13342
13342
|
info["hospitalLocation"] = (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$.line) || "";
|
|
13343
13343
|
var nameObj = (restData === null || restData === void 0 ? void 0 : (_restData$name = restData.name) === null || _restData$name === void 0 ? void 0 : _restData$name[0]) || {};
|
|
@@ -14059,7 +14059,7 @@ var SPECIALITY_AGAINST_PRACTITIONER = createAsyncThunk("searhcApiSlice/specialit
|
|
|
14059
14059
|
_context10.prev = 2;
|
|
14060
14060
|
body = {
|
|
14061
14061
|
db_name: dbName,
|
|
14062
|
-
entity: "PractitionerRole
|
|
14062
|
+
entity: "Practitioner,PractitionerRole",
|
|
14063
14063
|
filter: queries["specialityAgainstPractitioner"].query(),
|
|
14064
14064
|
return_fields: queries["specialityAgainstPractitioner"].returnFields
|
|
14065
14065
|
};
|
|
@@ -19148,7 +19148,7 @@ var queries$1 = {
|
|
|
19148
19148
|
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CA_ChiefComplaints\",\n \"filter\": \"CA_ChiefComplaints._id =='").concat(id, "'\"\n }");
|
|
19149
19149
|
},
|
|
19150
19150
|
encounterDetails: function encounterDetails(encounterId) {
|
|
19151
|
-
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Encounter\",\n \"filter\": \"Encounter.id == ").concat(encounterId, "\",\n \"return_fields\": \"MERGE(Encounter, {Patient: (for p in Patient filter p.id == Encounter.patient_id let hname = (FOR hn IN HumanNameMaster filter hn._id in p.name RETURN merge(hn,{prefix:document(hn.prefix)},{suffix:document(hn.suffix)},{use:document(hn.use)})) let gender = document(p.gender) let pidentifier = (FOR hn IN p.identifier RETURN DOCUMENT(hn)) return MERGE(p, {name: hname, pidentifier,gender})) })\"\n }");
|
|
19151
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Encounter\",\n \"filter\": \"Encounter.id == ").concat(encounterId, "\",\n \"return_fields\": \"MERGE(Encounter, {practitioner_details:(FOR practdet IN TO_ARRAY(Encounter.practitioner_details) RETURN MERGE(practdet,{speciality:MERGE(DOCUMENT(practdet.speciality),{coding:(FOR cod IN TO_ARRAY(DOCUMENT(practdet.speciality).coding) RETURN DOCUMENT(cod))})})),Patient: (for p in Patient filter p.id == Encounter.patient_id let hname = (FOR hn IN HumanNameMaster filter hn._id in p.name RETURN merge(hn,{prefix:document(hn.prefix)},{suffix:document(hn.suffix)},{use:document(hn.use)})) let gender = document(p.gender) let pidentifier = (FOR hn IN p.identifier RETURN DOCUMENT(hn)) return MERGE(p, {name: hname, pidentifier,gender})) })\"\n }");
|
|
19152
19152
|
}
|
|
19153
19153
|
};
|
|
19154
19154
|
|
|
@@ -19852,7 +19852,7 @@ var GET_ENCOUNTER = createAsyncThunk("chiefCompilenceMastersSlice/encounter", /*
|
|
|
19852
19852
|
data = _context12.sent;
|
|
19853
19853
|
arr = [];
|
|
19854
19854
|
data.result.map(function (val) {
|
|
19855
|
-
var _val$Patient, _val$Patient$, _val$Patient$$communi, _val$Patient$$communi2, _val$Patient$$communi3, _val$_id, _val$_id$split, _val$practitioner_det, _val$practitioner_det2, _ref25, _val$Patient2, _val$Patient2$, _val$Patient2$$name, _val$Patient2$$name$, _val$Patient2$$name$$, _val$Patient3, _val$Patient3$, _val$Patient3$$name, _val$Patient3$$name$, _val$Patient4, _val$Patient4$, _val$Patient4$$name, _val$Patient4$$name$, _val$Patient5, _val$Patient5$, _val$Patient5$$name, _val$Patient5$$name$, _val$Patient5$$name$$, _val$Patient6, _val$Patient6$, _val$Patient7, _val$Patient7$, _val$Patient8, _val$Patient8$, _val$Patient8$$gender, _val$Patient9, _val$Patient9$, _val$Patient$0$pident, _val$Patient10, _val$Patient10$, _val$Patient10$$piden, _val$Patient10$$piden2, _lang, _val$
|
|
19855
|
+
var _val$Patient, _val$Patient$, _val$Patient$$communi, _val$Patient$$communi2, _val$Patient$$communi3, _val$_id, _val$_id$split, _val$practitioner_det, _val$practitioner_det2, _val$practitioner_det3, _val$practitioner_det4, _val$practitioner_det5, _ref25, _val$Patient2, _val$Patient2$, _val$Patient2$$name, _val$Patient2$$name$, _val$Patient2$$name$$, _val$Patient3, _val$Patient3$, _val$Patient3$$name, _val$Patient3$$name$, _val$Patient4, _val$Patient4$, _val$Patient4$$name, _val$Patient4$$name$, _val$Patient5, _val$Patient5$, _val$Patient5$$name, _val$Patient5$$name$, _val$Patient5$$name$$, _val$Patient6, _val$Patient6$, _val$Patient7, _val$Patient7$, _val$Patient8, _val$Patient8$, _val$Patient8$$gender, _val$Patient9, _val$Patient9$, _val$Patient$0$pident, _val$Patient10, _val$Patient10$, _val$Patient10$$piden, _val$Patient10$$piden2, _lang, _val$practitioner_det6, _val$practitioner_det7, _val$practitioner_det8;
|
|
19856
19856
|
|
|
19857
19857
|
var lang = val === null || val === void 0 ? void 0 : (_val$Patient = val.Patient) === null || _val$Patient === void 0 ? void 0 : (_val$Patient$ = _val$Patient[0]) === null || _val$Patient$ === void 0 ? void 0 : (_val$Patient$$communi = _val$Patient$.communication) === null || _val$Patient$$communi === void 0 ? void 0 : (_val$Patient$$communi2 = _val$Patient$$communi[0]) === null || _val$Patient$$communi2 === void 0 ? void 0 : (_val$Patient$$communi3 = _val$Patient$$communi2.language) === null || _val$Patient$$communi3 === void 0 ? void 0 : _val$Patient$$communi3.map(function (val) {
|
|
19858
19858
|
return val.language;
|
|
@@ -19863,7 +19863,7 @@ var GET_ENCOUNTER = createAsyncThunk("chiefCompilenceMastersSlice/encounter", /*
|
|
|
19863
19863
|
id: "EN-" + (val === null || val === void 0 ? void 0 : (_val$_id = val._id) === null || _val$_id === void 0 ? void 0 : (_val$_id$split = _val$_id.split("/")) === null || _val$_id$split === void 0 ? void 0 : _val$_id$split[1]),
|
|
19864
19864
|
eId: val === null || val === void 0 ? void 0 : val._id,
|
|
19865
19865
|
type: val === null || val === void 0 ? void 0 : val.visit_type,
|
|
19866
|
-
speciality: (_val$practitioner_det = val.practitioner_details) === null || _val$practitioner_det === void 0 ? void 0 : (_val$practitioner_det2 = _val$practitioner_det[0]) === null || _val$practitioner_det2 === void 0 ? void 0 : _val$practitioner_det2.speciality,
|
|
19866
|
+
speciality: ((_val$practitioner_det = val.practitioner_details) === null || _val$practitioner_det === void 0 ? void 0 : (_val$practitioner_det2 = _val$practitioner_det[0]) === null || _val$practitioner_det2 === void 0 ? void 0 : (_val$practitioner_det3 = _val$practitioner_det2.speciality) === null || _val$practitioner_det3 === void 0 ? void 0 : (_val$practitioner_det4 = _val$practitioner_det3.coding) === null || _val$practitioner_det4 === void 0 ? void 0 : (_val$practitioner_det5 = _val$practitioner_det4[0]) === null || _val$practitioner_det5 === void 0 ? void 0 : _val$practitioner_det5.display) || "",
|
|
19867
19867
|
createdAt: val.createddate,
|
|
19868
19868
|
// name: val?.Patient?.[0]?.name?.[0]?.text ?? "",
|
|
19869
19869
|
name: (_ref25 = (val === null || val === void 0 ? void 0 : (_val$Patient2 = val.Patient) === null || _val$Patient2 === void 0 ? void 0 : (_val$Patient2$ = _val$Patient2[0]) === null || _val$Patient2$ === void 0 ? void 0 : (_val$Patient2$$name = _val$Patient2$.name) === null || _val$Patient2$$name === void 0 ? void 0 : (_val$Patient2$$name$ = _val$Patient2$$name[0]) === null || _val$Patient2$$name$ === void 0 ? void 0 : (_val$Patient2$$name$$ = _val$Patient2$$name$.prefix) === null || _val$Patient2$$name$$ === void 0 ? void 0 : _val$Patient2$$name$$.display) + " " + (val === null || val === void 0 ? void 0 : (_val$Patient3 = val.Patient) === null || _val$Patient3 === void 0 ? void 0 : (_val$Patient3$ = _val$Patient3[0]) === null || _val$Patient3$ === void 0 ? void 0 : (_val$Patient3$$name = _val$Patient3$.name) === null || _val$Patient3$$name === void 0 ? void 0 : (_val$Patient3$$name$ = _val$Patient3$$name[0]) === null || _val$Patient3$$name$ === void 0 ? void 0 : _val$Patient3$$name$.given) + " " + (val === null || val === void 0 ? void 0 : (_val$Patient4 = val.Patient) === null || _val$Patient4 === void 0 ? void 0 : (_val$Patient4$ = _val$Patient4[0]) === null || _val$Patient4$ === void 0 ? void 0 : (_val$Patient4$$name = _val$Patient4$.name) === null || _val$Patient4$$name === void 0 ? void 0 : (_val$Patient4$$name$ = _val$Patient4$$name[0]) === null || _val$Patient4$$name$ === void 0 ? void 0 : _val$Patient4$$name$.family) + " " + (val === null || val === void 0 ? void 0 : (_val$Patient5 = val.Patient) === null || _val$Patient5 === void 0 ? void 0 : (_val$Patient5$ = _val$Patient5[0]) === null || _val$Patient5$ === void 0 ? void 0 : (_val$Patient5$$name = _val$Patient5$.name) === null || _val$Patient5$$name === void 0 ? void 0 : (_val$Patient5$$name$ = _val$Patient5$$name[0]) === null || _val$Patient5$$name$ === void 0 ? void 0 : (_val$Patient5$$name$$ = _val$Patient5$$name$.suffix) === null || _val$Patient5$$name$$ === void 0 ? void 0 : _val$Patient5$$name$$.display)) !== null && _ref25 !== void 0 ? _ref25 : "",
|
|
@@ -19873,7 +19873,7 @@ var GET_ENCOUNTER = createAsyncThunk("chiefCompilenceMastersSlice/encounter", /*
|
|
|
19873
19873
|
dob: val === null || val === void 0 ? void 0 : (_val$Patient9 = val.Patient) === null || _val$Patient9 === void 0 ? void 0 : (_val$Patient9$ = _val$Patient9[0]) === null || _val$Patient9$ === void 0 ? void 0 : _val$Patient9$.birthDate,
|
|
19874
19874
|
pidentifier: (_val$Patient$0$pident = val === null || val === void 0 ? void 0 : (_val$Patient10 = val.Patient) === null || _val$Patient10 === void 0 ? void 0 : (_val$Patient10$ = _val$Patient10[0]) === null || _val$Patient10$ === void 0 ? void 0 : (_val$Patient10$$piden = _val$Patient10$.pidentifier) === null || _val$Patient10$$piden === void 0 ? void 0 : (_val$Patient10$$piden2 = _val$Patient10$$piden[0]) === null || _val$Patient10$$piden2 === void 0 ? void 0 : _val$Patient10$$piden2.value) !== null && _val$Patient$0$pident !== void 0 ? _val$Patient$0$pident : "",
|
|
19875
19875
|
lang: (_lang = lang) === null || _lang === void 0 ? void 0 : _lang.join(", "),
|
|
19876
|
-
facilityName: (_val$
|
|
19876
|
+
facilityName: (_val$practitioner_det6 = (_val$practitioner_det7 = val.practitioner_details) === null || _val$practitioner_det7 === void 0 ? void 0 : (_val$practitioner_det8 = _val$practitioner_det7[0]) === null || _val$practitioner_det8 === void 0 ? void 0 : _val$practitioner_det8.clinic) !== null && _val$practitioner_det6 !== void 0 ? _val$practitioner_det6 : ""
|
|
19877
19877
|
});
|
|
19878
19878
|
});
|
|
19879
19879
|
return _context12.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -25641,12 +25641,11 @@ var GET_ORGANIZATION = createAsyncThunk("LabOrderApiSlice/get_organization", /*#
|
|
|
25641
25641
|
|
|
25642
25642
|
if (Array.isArray(data.result)) {
|
|
25643
25643
|
data.result.map(function (val, i) {
|
|
25644
|
-
var _vaL, _vaL2, _vaL3;
|
|
25645
|
-
|
|
25646
25644
|
returnData.push({
|
|
25647
|
-
value:
|
|
25648
|
-
label:
|
|
25649
|
-
id:
|
|
25645
|
+
value: val === null || val === void 0 ? void 0 : val.name,
|
|
25646
|
+
label: val === null || val === void 0 ? void 0 : val.name,
|
|
25647
|
+
id: val === null || val === void 0 ? void 0 : val.OrgID,
|
|
25648
|
+
_id: val === null || val === void 0 ? void 0 : val._id
|
|
25650
25649
|
});
|
|
25651
25650
|
});
|
|
25652
25651
|
}
|
|
@@ -25705,11 +25704,11 @@ var GET_PRACTITIONERROLE = createAsyncThunk("LabOrderApiSlice/get_practitionerro
|
|
|
25705
25704
|
|
|
25706
25705
|
if (Array.isArray(data.result)) {
|
|
25707
25706
|
data.result.PractitionerRole.map(function (val, i) {
|
|
25708
|
-
var
|
|
25707
|
+
var _vaL, _vaL2;
|
|
25709
25708
|
|
|
25710
25709
|
returnData.push({
|
|
25711
|
-
label: (
|
|
25712
|
-
id: (
|
|
25710
|
+
label: (_vaL = vaL) === null || _vaL === void 0 ? void 0 : _vaL.text,
|
|
25711
|
+
id: (_vaL2 = vaL) === null || _vaL2 === void 0 ? void 0 : _vaL2._id
|
|
25713
25712
|
});
|
|
25714
25713
|
});
|
|
25715
25714
|
}
|
|
@@ -25905,14 +25904,14 @@ var GET_PRACTITIONERNAME = createAsyncThunk("LabOrderApiSlice/get_practitionerna
|
|
|
25905
25904
|
|
|
25906
25905
|
if (Array.isArray(data.result)) {
|
|
25907
25906
|
data.result.PractitionerName.map(function (val, i) {
|
|
25908
|
-
var
|
|
25907
|
+
var _vaL3, _vaL4, _vaL5, _vaL6, _vaL7;
|
|
25909
25908
|
|
|
25910
25909
|
returnData.push({
|
|
25911
|
-
use: (
|
|
25912
|
-
text: (
|
|
25913
|
-
family: (
|
|
25914
|
-
prefix: (
|
|
25915
|
-
suffix: (
|
|
25910
|
+
use: (_vaL3 = vaL) === null || _vaL3 === void 0 ? void 0 : _vaL3.use,
|
|
25911
|
+
text: (_vaL4 = vaL) === null || _vaL4 === void 0 ? void 0 : _vaL4.text,
|
|
25912
|
+
family: (_vaL5 = vaL) === null || _vaL5 === void 0 ? void 0 : _vaL5.family,
|
|
25913
|
+
prefix: (_vaL6 = vaL) === null || _vaL6 === void 0 ? void 0 : _vaL6.prefix,
|
|
25914
|
+
suffix: (_vaL7 = vaL) === null || _vaL7 === void 0 ? void 0 : _vaL7.suffix
|
|
25916
25915
|
});
|
|
25917
25916
|
});
|
|
25918
25917
|
}
|
|
@@ -26737,15 +26736,17 @@ var DRUGMASTER_MASTER = createAsyncThunk("MedicationMastersSlice/drugMaster_mast
|
|
|
26737
26736
|
data = _context2.sent;
|
|
26738
26737
|
arr = [];
|
|
26739
26738
|
data.result.map(function (val) {
|
|
26739
|
+
var _val$FormCode, _val$FormCode2, _val$StrengthValuesPo, _val$StrengthValuesPo2, _val$StrengthValuesPo3, _val$StrengthValuesPo4, _val$DrugType, _val$DrugType2;
|
|
26740
|
+
|
|
26740
26741
|
var json = {
|
|
26741
|
-
value: val._id,
|
|
26742
|
-
id: val.id,
|
|
26743
|
-
FormCode: val.FormCode._id,
|
|
26744
|
-
FormData: val.FormCode.longdesc,
|
|
26745
|
-
StrengthValues: val.StrengthValuesPossible[0].StrengthValue,
|
|
26746
|
-
StrengthUOM: val.StrengthValuesPossible[0].StrengthUOM,
|
|
26747
|
-
drugType: val.DrugType.drugtype,
|
|
26748
|
-
drugTypeId: val.DrugType._id // formValue
|
|
26742
|
+
value: val === null || val === void 0 ? void 0 : val._id,
|
|
26743
|
+
id: val === null || val === void 0 ? void 0 : val.id,
|
|
26744
|
+
FormCode: val === null || val === void 0 ? void 0 : (_val$FormCode = val.FormCode) === null || _val$FormCode === void 0 ? void 0 : _val$FormCode._id,
|
|
26745
|
+
FormData: val === null || val === void 0 ? void 0 : (_val$FormCode2 = val.FormCode) === null || _val$FormCode2 === void 0 ? void 0 : _val$FormCode2.longdesc,
|
|
26746
|
+
StrengthValues: val === null || val === void 0 ? void 0 : (_val$StrengthValuesPo = val.StrengthValuesPossible) === null || _val$StrengthValuesPo === void 0 ? void 0 : (_val$StrengthValuesPo2 = _val$StrengthValuesPo[0]) === null || _val$StrengthValuesPo2 === void 0 ? void 0 : _val$StrengthValuesPo2.StrengthValue,
|
|
26747
|
+
StrengthUOM: val === null || val === void 0 ? void 0 : (_val$StrengthValuesPo3 = val.StrengthValuesPossible) === null || _val$StrengthValuesPo3 === void 0 ? void 0 : (_val$StrengthValuesPo4 = _val$StrengthValuesPo3[0]) === null || _val$StrengthValuesPo4 === void 0 ? void 0 : _val$StrengthValuesPo4.StrengthUOM,
|
|
26748
|
+
drugType: val === null || val === void 0 ? void 0 : (_val$DrugType = val.DrugType) === null || _val$DrugType === void 0 ? void 0 : _val$DrugType.drugtype,
|
|
26749
|
+
drugTypeId: val === null || val === void 0 ? void 0 : (_val$DrugType2 = val.DrugType) === null || _val$DrugType2 === void 0 ? void 0 : _val$DrugType2._id // formValue
|
|
26749
26750
|
|
|
26750
26751
|
};
|
|
26751
26752
|
arr.push(_objectSpread2(_objectSpread2({}, json), {}, {
|
|
@@ -33381,7 +33382,7 @@ var queries$8 = {
|
|
|
33381
33382
|
db_name: dbName,
|
|
33382
33383
|
entity: "CAPatientClinicalDocs",
|
|
33383
33384
|
filter: "CAPatientClinicalDocs.activestatus ==true && CAPatientClinicalDocs._key=='".concat(key, "'"),
|
|
33384
|
-
return_fields: "MERGE(CAPatientClinicalDocs, {organizationid:document(CAPatientClinicalDocs.organizationid)},{doccategory:(document(CAPatientClinicalDocs.doccategory))}, {patientid:document(CAPatientClinicalDocs.patientid)},{practitionerid:(for pract in
|
|
33385
|
+
return_fields: "MERGE(CAPatientClinicalDocs, {organizationid:document(CAPatientClinicalDocs.organizationid)},{doccategory:(document(CAPatientClinicalDocs.doccategory))}, {patientid:document(CAPatientClinicalDocs.patientid)},{practitionerid:(for pract in Practitioner filter pract._id == CAPatientClinicalDocs.practitionerid return merge(pract,{name:(for doc in HumanNameMaster filter doc._id in pract.name return merge(doc,{use:(document(doc.use)),prefix:(document(doc.prefix)),suffix:(document(doc.suffix))})) ,practitioner_role:(FOR practrole IN TO_ARRAY(pract.practitioner_role) RETURN MERGE(DOCUMENT(practrole),{'role':MERGE(DOCUMENT(DOCUMENT(practrole).role),{coding:(FOR cod IN TO_ARRAY(DOCUMENT(DOCUMENT(practrole).role).coding) RETURN DOCUMENT(cod) )}) }) ) }))},{encounterid:document(CAPatientClinicalDocs.encounterid),doctype:(document(CAPatientClinicalDocs.doctype)),reason:(document(CAPatientClinicalDocs.reason)),encountertype:(document(CAPatientClinicalDocs.encountertype)),specialty:(document(CAPatientClinicalDocs.specialty))})"
|
|
33385
33386
|
};
|
|
33386
33387
|
},
|
|
33387
33388
|
doc_agnst_category: function doc_agnst_category(category, speciality, encoumter, practitioner) {
|
|
@@ -33389,7 +33390,7 @@ var queries$8 = {
|
|
|
33389
33390
|
db_name: dbName,
|
|
33390
33391
|
entity: "CAPatientClinicalDocs",
|
|
33391
33392
|
filter: "CAPatientClinicalDocs.activestatus ==true && CAPatientClinicalDocs.doccategory=='".concat(category, "' || CAPatientClinicalDocs.specialty=='").concat(speciality, "' || CAPatientClinicalDocs.encounterid=='").concat(encoumter, "' || CAPatientClinicalDocs.practitionerid=='").concat(practitioner, "'"),
|
|
33392
|
-
return_fields: "MERGE(CAPatientClinicalDocs, {organizationid:document(CAPatientClinicalDocs.organizationid)},{doccategory:(document(CAPatientClinicalDocs.doccategory))}, {patientid:document(CAPatientClinicalDocs.patientid)},{practitionerid:(for pract in
|
|
33393
|
+
return_fields: "MERGE(CAPatientClinicalDocs, {organizationid:document(CAPatientClinicalDocs.organizationid)},{doccategory:(document(CAPatientClinicalDocs.doccategory))}, {patientid:document(CAPatientClinicalDocs.patientid)},{practitionerid:(for pract in Practitioner filter pract._id == CAPatientClinicalDocs.practitionerid return merge(pract,{name:(for doc in HumanNameMaster filter doc._id in pract.name return merge(doc,{use:(document(doc.use)),prefix:(document(doc.prefix)),suffix:(document(doc.suffix))})) ,practitioner_role:(FOR practrole IN TO_ARRAY(pract.practitioner_role) RETURN MERGE(DOCUMENT(practrole),{'role':MERGE(DOCUMENT(DOCUMENT(practrole).role),{coding:(FOR cod IN TO_ARRAY(DOCUMENT(DOCUMENT(practrole).role).coding) RETURN DOCUMENT(cod) )}) }) ) }))},{encounterid:document(CAPatientClinicalDocs.encounterid),doctype:(document(CAPatientClinicalDocs.doctype)),reason:(document(CAPatientClinicalDocs.reason)),encountertype:(document(CAPatientClinicalDocs.encountertype)),specialty:(document(CAPatientClinicalDocs.specialty))})"
|
|
33393
33394
|
};
|
|
33394
33395
|
},
|
|
33395
33396
|
doc_agnst_encounter: function doc_agnst_encounter(patient_id, encounter_id) {
|
|
@@ -33421,7 +33422,7 @@ var queries$8 = {
|
|
|
33421
33422
|
db_name: "primarycare",
|
|
33422
33423
|
entity: "CAPatientClinicalDocs",
|
|
33423
33424
|
filter: "CAPatientClinicalDocs.activestatus ==true && CAPatientClinicalDocs.patientid=='".concat(patient_id, "' && CAPatientClinicalDocs.doccategory=='").concat(doc_Category, "' && CAPatientClinicalDocs.doctype=='").concat(doc_Type, "'"),
|
|
33424
|
-
return_fields: "MERGE(CAPatientClinicalDocs, {organizationid:document(CAPatientClinicalDocs.organizationid)},{doccategory:(document(CAPatientClinicalDocs.doccategory))}, {patientid:document(CAPatientClinicalDocs.patientid)},{practitionerid:(for pract in
|
|
33425
|
+
return_fields: "MERGE(CAPatientClinicalDocs, {organizationid:document(CAPatientClinicalDocs.organizationid)},{doccategory:(document(CAPatientClinicalDocs.doccategory))}, {patientid:document(CAPatientClinicalDocs.patientid)},{practitionerid:(for pract in Practitioner filter pract._id == CAPatientClinicalDocs.practitionerid return merge(pract,{name:(for doc in HumanNameMaster filter doc._id in pract.name return merge(doc,{use:(document(doc.use)),prefix:(document(doc.prefix)),suffix:(document(doc.suffix))})) ,practitioner_role:(FOR practrole IN TO_ARRAY(pract.practitioner_role) RETURN MERGE(DOCUMENT(practrole),{'role':MERGE(DOCUMENT(DOCUMENT(practrole).role),{coding:(FOR cod IN TO_ARRAY(DOCUMENT(DOCUMENT(practrole).role).coding) RETURN DOCUMENT(cod) )}) }) ) }))},{encounterid:document(CAPatientClinicalDocs.encounterid),doctype:(document(CAPatientClinicalDocs.doctype)),reason:(document(CAPatientClinicalDocs.reason)),encountertype:(document(CAPatientClinicalDocs.encountertype)),specialty:(document(CAPatientClinicalDocs.specialty))})"
|
|
33425
33426
|
};
|
|
33426
33427
|
}
|
|
33427
33428
|
};
|
|
@@ -33553,20 +33554,16 @@ var genreateDocAgnstCategory = function genreateDocAgnstCategory(data) {
|
|
|
33553
33554
|
var category = element === null || element === void 0 ? void 0 : (_element$doccategory4 = element.doccategory) === null || _element$doccategory4 === void 0 ? void 0 : _element$doccategory4.display;
|
|
33554
33555
|
|
|
33555
33556
|
if (category in obj) {
|
|
33556
|
-
var _element$practitioner, _element$practitioner2, _element$practitioner3, _element$practitioner4;
|
|
33557
|
+
var _element$practitioner, _element$practitioner2, _element$practitioner3, _element$practitioner4, _element$practitioner5, _element$practitioner6, _element$practitioner7, _element$practitioner8, _element$practitioner9;
|
|
33557
33558
|
|
|
33558
33559
|
obj[category].count = obj[category].count + 1;
|
|
33560
|
+
debugger;
|
|
33559
33561
|
|
|
33560
33562
|
var userObj = _objectSpread2({
|
|
33561
|
-
|
|
33562
|
-
//
|
|
33563
|
-
// ? element?.practitionerid?.practitioner_role.length > 0
|
|
33564
|
-
// ? element?.practitionerid?.practitioner_role[0]?.name
|
|
33565
|
-
// : ""
|
|
33566
|
-
// : "Role",
|
|
33567
|
-
title: "Role",
|
|
33563
|
+
title: element.practitionerid.length > 0 ? element === null || element === void 0 ? void 0 : (_element$practitioner = element.practitionerid[0]) === null || _element$practitioner === void 0 ? void 0 : (_element$practitioner2 = _element$practitioner.practitioner_role) === null || _element$practitioner2 === void 0 ? void 0 : (_element$practitioner3 = _element$practitioner2[0]) === null || _element$practitioner3 === void 0 ? void 0 : (_element$practitioner4 = _element$practitioner3.role) === null || _element$practitioner4 === void 0 ? void 0 : (_element$practitioner5 = _element$practitioner4.coding[0]) === null || _element$practitioner5 === void 0 ? void 0 : _element$practitioner5.display : "",
|
|
33564
|
+
//title: "Role",
|
|
33568
33565
|
date: moment.unix(element.createddate).format("MMMM Do h:mm a"),
|
|
33569
|
-
name: element.practitionerid.length > 0 ? ((_element$
|
|
33566
|
+
name: element.practitionerid.length > 0 ? ((_element$practitioner6 = element.practitionerid[0]) === null || _element$practitioner6 === void 0 ? void 0 : (_element$practitioner7 = _element$practitioner6.name[0]) === null || _element$practitioner7 === void 0 ? void 0 : _element$practitioner7.text) + " " + ((_element$practitioner8 = element.practitionerid[0]) === null || _element$practitioner8 === void 0 ? void 0 : (_element$practitioner9 = _element$practitioner8.name[0]) === null || _element$practitioner9 === void 0 ? void 0 : _element$practitioner9.given) : "Dummy"
|
|
33570
33567
|
}, element);
|
|
33571
33568
|
|
|
33572
33569
|
var childObj = {
|
|
@@ -33583,7 +33580,7 @@ var genreateDocAgnstCategory = function genreateDocAgnstCategory(data) {
|
|
|
33583
33580
|
obj[category].child.push(childObj);
|
|
33584
33581
|
}
|
|
33585
33582
|
} else {
|
|
33586
|
-
var _element$
|
|
33583
|
+
var _element$practitioner10, _element$practitioner11, _element$practitioner12, _element$practitioner13, _element$practitioner14, _element$practitioner15, _element$practitioner16, _element$practitioner17, _element$practitioner18;
|
|
33587
33584
|
|
|
33588
33585
|
obj[category] = {
|
|
33589
33586
|
title: category,
|
|
@@ -33592,9 +33589,9 @@ var genreateDocAgnstCategory = function genreateDocAgnstCategory(data) {
|
|
|
33592
33589
|
};
|
|
33593
33590
|
|
|
33594
33591
|
var _userObj = _objectSpread2({
|
|
33595
|
-
title: "
|
|
33592
|
+
title: element.practitionerid.length > 0 ? element === null || element === void 0 ? void 0 : (_element$practitioner10 = element.practitionerid[0]) === null || _element$practitioner10 === void 0 ? void 0 : (_element$practitioner11 = _element$practitioner10.practitioner_role) === null || _element$practitioner11 === void 0 ? void 0 : (_element$practitioner12 = _element$practitioner11[0]) === null || _element$practitioner12 === void 0 ? void 0 : (_element$practitioner13 = _element$practitioner12.role) === null || _element$practitioner13 === void 0 ? void 0 : (_element$practitioner14 = _element$practitioner13.coding[0]) === null || _element$practitioner14 === void 0 ? void 0 : _element$practitioner14.display : "",
|
|
33596
33593
|
date: moment.unix(element.createddate).format("MMMM Do h:mm:ss a"),
|
|
33597
|
-
name: element.practitionerid.length > 0 ? ((_element$
|
|
33594
|
+
name: element.practitionerid.length > 0 ? ((_element$practitioner15 = element.practitionerid[0]) === null || _element$practitioner15 === void 0 ? void 0 : (_element$practitioner16 = _element$practitioner15.name[0]) === null || _element$practitioner16 === void 0 ? void 0 : _element$practitioner16.text) + " " + ((_element$practitioner17 = element.practitionerid[0]) === null || _element$practitioner17 === void 0 ? void 0 : (_element$practitioner18 = _element$practitioner17.name[0]) === null || _element$practitioner18 === void 0 ? void 0 : _element$practitioner18.given) : "Dummy"
|
|
33598
33595
|
}, element);
|
|
33599
33596
|
|
|
33600
33597
|
var childObj = {
|
|
@@ -33615,12 +33612,10 @@ var generatePractitoner = function generatePractitoner(data) {
|
|
|
33615
33612
|
});
|
|
33616
33613
|
var arr = [];
|
|
33617
33614
|
orderedData.forEach(function (element) {
|
|
33615
|
+
var _element$practitioner19, _element$practitioner20, _element$practitioner21, _element$practitioner22;
|
|
33616
|
+
|
|
33618
33617
|
var userObj = _objectSpread2({
|
|
33619
|
-
|
|
33620
|
-
// element.practitionerid.length > 0
|
|
33621
|
-
// ? element?.practitionerid?.practitioner_role[0]?.name
|
|
33622
|
-
// : "Role",
|
|
33623
|
-
title: "Role",
|
|
33618
|
+
title: element.practitionerid.length > 0 ? element === null || element === void 0 ? void 0 : (_element$practitioner19 = element.practitionerid[0]) === null || _element$practitioner19 === void 0 ? void 0 : (_element$practitioner20 = _element$practitioner19.practitioner_role[0]) === null || _element$practitioner20 === void 0 ? void 0 : (_element$practitioner21 = _element$practitioner20.role) === null || _element$practitioner21 === void 0 ? void 0 : (_element$practitioner22 = _element$practitioner21.coding[0]) === null || _element$practitioner22 === void 0 ? void 0 : _element$practitioner22.display : "",
|
|
33624
33619
|
date: moment.unix(element.createddate).format("MMMM Do h:mm a"),
|
|
33625
33620
|
name: element.practitionerid.length > 0 ? "".concat(element.practitionerid[0].name[0].text + " " + element.practitionerid[0].name[0].given) : "Dummy"
|
|
33626
33621
|
}, element);
|
|
@@ -35044,6 +35039,7 @@ var highPriorityActions = {
|
|
|
35044
35039
|
var highPriorityApiSlice$1 = highPriorityApiSlice.reducer;
|
|
35045
35040
|
|
|
35046
35041
|
var query = {
|
|
35042
|
+
// FRONTDESK
|
|
35047
35043
|
getAppointments: function getAppointments(data) {
|
|
35048
35044
|
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"HealthcareService,Appointment\",\n \"filter\": {\n \"HealthcareService\": \"HealthcareService.OrgID == 2\",\n \"Appointment\": \"Appointment.HealthcareServiceID[*] ANY == HealthcareService.id && Appointment.start >= 1624725000 && Appointment.end <= 1624726800\"\n },\n \"return_fields\": \"merge(Appointment,{HealthcareServiceID:HealthcareService},{SpecialtyID: (for c in CodeableConceptMaster filter c.id IN Appointment.SpecialtyID return merge(c,{coding:(for cod in CodingMaster filter cod._id in c.coding return cod.display)}))},{PersonID:(for p in Person filter p.Id IN Appointment.PersonID return document(p.name))},{practitionerID: (for q in Practitioner filter q.id IN Appointment.practitionerID return document(q.name))})\"\n }");
|
|
35049
35045
|
},
|
|
@@ -35058,10 +35054,43 @@ var query = {
|
|
|
35058
35054
|
},
|
|
35059
35055
|
getNewPatients: function getNewPatients(data) {
|
|
35060
35056
|
return "\n {\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"HealthcareService,Appointment\",\n \"filter\": {\n \"HealthcareService\": \"HealthcareService.OrgID == 2\",\n \"Appointment\": \"Appointment.HealthcareServiceID[*] ANY == HealthcareService.id && Appointment.start >= 1624725000 && Appointment.end <= 1624726800 && Appointment.appointmentType == 'new patient'\"\n },\n \"return_fields\": \"merge(Appointment,{HealthcareServiceID:HealthcareService},{SpecialtyID: (for c in CodeableConceptMaster filter c.id IN Appointment.SpecialtyID return merge(c,{coding:(for cod in CodingMaster filter cod._id in c.coding return cod.display)}))},{PersonID:(for p in Person filter p.Id IN Appointment.PersonID return document(p.name))},{practitionerID: (for q in Practitioner filter q.id IN Appointment.practitionerID return document(q.name))})\"\n }\n ");
|
|
35057
|
+
},
|
|
35058
|
+
// NURSE
|
|
35059
|
+
getFirstVisitsNurse: function getFirstVisitsNurse(data) {
|
|
35060
|
+
return "\n {\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Practitioner,Appointment\",\n \"filter\": {\n \"Practitioner\": \"Practitioner.activestatus==true && lower(document(Practitioner.practitioner_type).display)=='nurse' && Practitioner.id==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && DOCUMENT(Practitioner.practitioner_role[*])[*].OrgID ANY =='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'\",\n \"Appointment\": \"Appointment.activestatus==true && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "' && Appointment.start>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(Appointment.appointmentType)=='first visit' && DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID ANY IN Appointment.SpecialtyID\"\n },\n \"return_fields\": \"merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)})),practitionerID:(for prac in document(Appointment.practitionerID) return merge(prac,{name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(prac.gender)}))})\"\n }\n ");
|
|
35061
|
+
},
|
|
35062
|
+
getNewPatientsNurse: function getNewPatientsNurse(data) {
|
|
35063
|
+
return "\n {\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Practitioner,Appointment\",\n \"filter\": {\n \"Practitioner\": \"Practitioner.activestatus==true && lower(document(Practitioner.practitioner_type).display)=='nurse' && Practitioner.id==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && DOCUMENT(Practitioner.practitioner_role[*])[*].OrgID ANY =='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'\",\n \"Appointment\": \"Appointment.activestatus==true && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "' && Appointment.start>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(Appointment.appointmentType)=='new patient' && DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID ANY IN Appointment.SpecialtyID\"\n },\n \"return_fields\": \"merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)})),practitionerID:(for prac in document(Appointment.practitionerID) return merge(prac,{name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(prac.gender)}))})\"\n }\n ");
|
|
35064
|
+
},
|
|
35065
|
+
getOtherVisitsNurse: function getOtherVisitsNurse(data) {
|
|
35066
|
+
return "\n {\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Practitioner,Appointment\",\n \"filter\": {\n \"Practitioner\": \"Practitioner.activestatus==true && lower(document(Practitioner.practitioner_type).display)=='nurse' && Practitioner.id==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && DOCUMENT(Practitioner.practitioner_role[*])[*].OrgID ANY =='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'\",\n \"Appointment\": \"Appointment.activestatus==true && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "' && Appointment.start>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(Appointment.appointmentType)=='other visit' && DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID ANY IN Appointment.SpecialtyID\"\n },\n \"return_fields\": \"merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)})),practitionerID:(for prac in document(Appointment.practitionerID) return merge(prac,{name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(prac.gender)}))})\"\n }\n ");
|
|
35067
|
+
},
|
|
35068
|
+
getTodayVisitsNurse: function getTodayVisitsNurse(data) {
|
|
35069
|
+
return "\n {\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Practitioner,Appointment\",\n \"filter\": {\n \"Practitioner\": \"Practitioner.activestatus==true && lower(document(Practitioner.practitioner_type).display)=='nurse' && Practitioner.id==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && DOCUMENT(Practitioner.practitioner_role[*])[*].OrgID ANY =='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'\",\n \"Appointment\": \"Appointment.activestatus==true && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "' && Appointment.start>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(Appointment.appointmentType)=='todays visit' && DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID ANY IN Appointment.SpecialtyID\"\n },\n \"return_fields\": \"merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)})),practitionerID:(for prac in document(Appointment.practitionerID) return merge(prac,{name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(prac.gender)}))})\"\n }\n ");
|
|
35070
|
+
},
|
|
35071
|
+
getWalkInsNurse: function getWalkInsNurse(data) {
|
|
35072
|
+
return "\n {\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Practitioner,Appointment\",\n \"filter\": {\n \"Practitioner\": \"Practitioner.activestatus==true && lower(document(Practitioner.practitioner_type).display)=='nurse' && Practitioner.id==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && DOCUMENT(Practitioner.practitioner_role[*])[*].OrgID ANY =='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'\",\n \"Appointment\": \"Appointment.activestatus==true && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "' && Appointment.start>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(Appointment.appointmentType)=='walkin' && DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID ANY IN Appointment.SpecialtyID\"\n },\n \"return_fields\": \"merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)})),practitionerID:(for prac in document(Appointment.practitionerID) return merge(prac,{name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(prac.gender)}))})\"\n }\n ");
|
|
35073
|
+
},
|
|
35074
|
+
//Doctor
|
|
35075
|
+
getFirstVisitsDoctor: function getFirstVisitsDoctor(data) {
|
|
35076
|
+
return "\n {\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Appointment\",\n \"filter\": \"Appointment.activestatus==true && Appointment.start>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(Appointment.appointmentType)=='first visit' && Appointment.practitionerID any ==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'\",\n \"return_fields\": \"merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)})),practitionerID:(for prac in Practitioner filter prac.id in Appointment.practitionerID return merge(prac,{name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(prac.gender)}))})\"\n }\n ");
|
|
35077
|
+
},
|
|
35078
|
+
getNewPatientsDoctor: function getNewPatientsDoctor(data) {
|
|
35079
|
+
return "\n {\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Appointment\",\n \"filter\": \"Appointment.activestatus==true && Appointment.start>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(Appointment.appointmentType)=='new patient' && Appointment.practitionerID any ==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'\",\n \"return_fields\": \"merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)})),practitionerID:(for prac in Practitioner filter prac.id in Appointment.practitionerID return merge(prac,{name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(prac.gender)}))})\"\n }\n ");
|
|
35080
|
+
},
|
|
35081
|
+
getOtherVisitsDoctor: function getOtherVisitsDoctor(data) {
|
|
35082
|
+
return "\n {\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Appointment\",\n \"filter\": \"Appointment.activestatus==true && Appointment.start>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(Appointment.appointmentType)=='other visit' && Appointment.practitionerID any ==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'\",\n \"return_fields\": \"merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)})),practitionerID:(for prac in Practitioner filter prac.id in Appointment.practitionerID return merge(prac,{name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(prac.gender)}))})\"\n }\n ");
|
|
35083
|
+
},
|
|
35084
|
+
getTodayVisitsDoctor: function getTodayVisitsDoctor(data) {
|
|
35085
|
+
return "\n {\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Appointment\",\n \"filter\": \"Appointment.activestatus==true && Appointment.start>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(Appointment.appointmentType)=='todays visit' && Appointment.practitionerID any ==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'\",\n \"return_fields\": \"merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)})),practitionerID:(for prac in Practitioner filter prac.id in Appointment.practitionerID return merge(prac,{name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(prac.gender)}))})\"\n }\n ");
|
|
35086
|
+
},
|
|
35087
|
+
getWalkInsDoctor: function getWalkInsDoctor(data) {
|
|
35088
|
+
return "\n {\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Appointment\",\n \"filter\": \"Appointment.activestatus==true && Appointment.start>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(Appointment.appointmentType)=='walkin' && Appointment.practitionerID any ==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'\",\n \"return_fields\": \"merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)})),practitionerID:(for prac in Practitioner filter prac.id in Appointment.practitionerID return merge(prac,{name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(prac.gender)}))})\"\n }\n ");
|
|
35061
35089
|
}
|
|
35062
35090
|
};
|
|
35063
35091
|
|
|
35064
35092
|
var _extraReducers$y;
|
|
35093
|
+
|
|
35065
35094
|
var GET_APPOINTMENTS = createAsyncThunk("appointmentStatsApiSlice/getAppointments", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
35066
35095
|
var payload,
|
|
35067
35096
|
_ref2,
|
|
@@ -35086,7 +35115,7 @@ var GET_APPOINTMENTS = createAsyncThunk("appointmentStatsApiSlice/getAppointment
|
|
|
35086
35115
|
case 5:
|
|
35087
35116
|
data = _context.sent;
|
|
35088
35117
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result = data.result) === null || _data$result === void 0 ? void 0 : _data$result.map(function (_) {
|
|
35089
|
-
var _$PersonID, _$PersonID$, _$PersonID$$, _$SpecialtyID
|
|
35118
|
+
var _$PersonID, _$PersonID$, _$PersonID$$, _$SpecialtyID$, _$appointmentType;
|
|
35090
35119
|
|
|
35091
35120
|
return {
|
|
35092
35121
|
"img": 'https://www.fillmurray.com/640/360',
|
|
@@ -35098,7 +35127,7 @@ var GET_APPOINTMENTS = createAsyncThunk("appointmentStatsApiSlice/getAppointment
|
|
|
35098
35127
|
"clinic": 'Clinic',
|
|
35099
35128
|
"dob": 'Dob',
|
|
35100
35129
|
"contact": 'Contact',
|
|
35101
|
-
"visitType": _ === null || _ === void 0 ? void 0 : _.appointmentType,
|
|
35130
|
+
"visitType": (_$appointmentType = _ === null || _ === void 0 ? void 0 : _.appointmentType) !== null && _$appointmentType !== void 0 ? _$appointmentType : '',
|
|
35102
35131
|
"appointmentStatus": 'Status',
|
|
35103
35132
|
"Register Visit": true,
|
|
35104
35133
|
"Modify Appointment": true,
|
|
@@ -35210,7 +35239,7 @@ var GET_OTHER_VISITS = createAsyncThunk("appointmentStatsApiSlice/getOtherVisits
|
|
|
35210
35239
|
case 5:
|
|
35211
35240
|
data = _context3.sent;
|
|
35212
35241
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result3 = data.result) === null || _data$result3 === void 0 ? void 0 : _data$result3.map(function (_) {
|
|
35213
|
-
var _$PersonID3, _$PersonID3$, _$PersonID3$$, _$SpecialtyID$3, _$
|
|
35242
|
+
var _$PersonID3, _$PersonID3$, _$PersonID3$$, _$SpecialtyID$3, _$appointmentType2;
|
|
35214
35243
|
|
|
35215
35244
|
return {
|
|
35216
35245
|
"img": 'https://www.fillmurray.com/640/360',
|
|
@@ -35222,7 +35251,7 @@ var GET_OTHER_VISITS = createAsyncThunk("appointmentStatsApiSlice/getOtherVisits
|
|
|
35222
35251
|
"clinic": 'Clinic',
|
|
35223
35252
|
"dob": 'Dob',
|
|
35224
35253
|
"contact": 'Contact',
|
|
35225
|
-
"visitType": (_$
|
|
35254
|
+
"visitType": (_$appointmentType2 = _ === null || _ === void 0 ? void 0 : _.appointmentType) !== null && _$appointmentType2 !== void 0 ? _$appointmentType2 : '',
|
|
35226
35255
|
"appointmentStatus": 'Status',
|
|
35227
35256
|
"Register Visit": true,
|
|
35228
35257
|
"Modify Appointment": true,
|
|
@@ -35272,7 +35301,7 @@ var GET_WALK_INS = createAsyncThunk("appointmentStatsApiSlice/getWalkIns", /*#__
|
|
|
35272
35301
|
case 5:
|
|
35273
35302
|
data = _context4.sent;
|
|
35274
35303
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result4 = data.result) === null || _data$result4 === void 0 ? void 0 : _data$result4.map(function (_) {
|
|
35275
|
-
var _$PersonID4, _$PersonID4$, _$PersonID4$$, _$SpecialtyID$4, _$
|
|
35304
|
+
var _$PersonID4, _$PersonID4$, _$PersonID4$$, _$SpecialtyID$4, _$appointmentType3;
|
|
35276
35305
|
|
|
35277
35306
|
return {
|
|
35278
35307
|
"img": 'https://www.fillmurray.com/640/360',
|
|
@@ -35284,7 +35313,7 @@ var GET_WALK_INS = createAsyncThunk("appointmentStatsApiSlice/getWalkIns", /*#__
|
|
|
35284
35313
|
"clinic": 'Clinic',
|
|
35285
35314
|
"dob": 'Dob',
|
|
35286
35315
|
"contact": 'Contact',
|
|
35287
|
-
"visitType": (_$
|
|
35316
|
+
"visitType": (_$appointmentType3 = _ === null || _ === void 0 ? void 0 : _.appointmentType) !== null && _$appointmentType3 !== void 0 ? _$appointmentType3 : '',
|
|
35288
35317
|
"appointmentStatus": 'Status',
|
|
35289
35318
|
"Register Visit": true,
|
|
35290
35319
|
"Modify Appointment": true,
|
|
@@ -35334,7 +35363,7 @@ var GET_NEW_PATIENTS = createAsyncThunk("appointmentStatsApiSlice/getNewPatients
|
|
|
35334
35363
|
case 5:
|
|
35335
35364
|
data = _context5.sent;
|
|
35336
35365
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result5 = data.result) === null || _data$result5 === void 0 ? void 0 : _data$result5.map(function (_) {
|
|
35337
|
-
var _$PersonID5, _$PersonID5$, _$PersonID5$$, _$SpecialtyID$5, _$
|
|
35366
|
+
var _$PersonID5, _$PersonID5$, _$PersonID5$$, _$SpecialtyID$5, _$appointmentType4;
|
|
35338
35367
|
|
|
35339
35368
|
return {
|
|
35340
35369
|
"img": 'https://www.fillmurray.com/640/360',
|
|
@@ -35346,7 +35375,7 @@ var GET_NEW_PATIENTS = createAsyncThunk("appointmentStatsApiSlice/getNewPatients
|
|
|
35346
35375
|
"clinic": 'Clinic',
|
|
35347
35376
|
"dob": 'Dob',
|
|
35348
35377
|
"contact": 'Contact',
|
|
35349
|
-
"visitType": (_$
|
|
35378
|
+
"visitType": (_$appointmentType4 = _ === null || _ === void 0 ? void 0 : _.appointmentType) !== null && _$appointmentType4 !== void 0 ? _$appointmentType4 : '',
|
|
35350
35379
|
"appointmentStatus": 'Status',
|
|
35351
35380
|
"Register Visit": true,
|
|
35352
35381
|
"Modify Appointment": true,
|
|
@@ -35371,15 +35400,620 @@ var GET_NEW_PATIENTS = createAsyncThunk("appointmentStatsApiSlice/getNewPatients
|
|
|
35371
35400
|
}
|
|
35372
35401
|
}
|
|
35373
35402
|
}, _callee5, null, [[2, 10]]);
|
|
35403
|
+
}))); //NURSE
|
|
35404
|
+
|
|
35405
|
+
var GET_FIRST_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getFirstVisitsNurse", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
35406
|
+
var payload,
|
|
35407
|
+
_ref12,
|
|
35408
|
+
rejectWithValue,
|
|
35409
|
+
_data$result6,
|
|
35410
|
+
data,
|
|
35411
|
+
returnedData,
|
|
35412
|
+
_args6 = arguments;
|
|
35413
|
+
|
|
35414
|
+
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
35415
|
+
while (1) {
|
|
35416
|
+
switch (_context6.prev = _context6.next) {
|
|
35417
|
+
case 0:
|
|
35418
|
+
payload = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
35419
|
+
_ref12 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref12.rejectWithValue;
|
|
35420
|
+
_context6.prev = 2;
|
|
35421
|
+
_context6.next = 5;
|
|
35422
|
+
return fetchData$1({
|
|
35423
|
+
body: query.getFirstVisitsNurse(payload)
|
|
35424
|
+
}, __readDocumentUrl__);
|
|
35425
|
+
|
|
35426
|
+
case 5:
|
|
35427
|
+
data = _context6.sent;
|
|
35428
|
+
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result6 = data.result) === null || _data$result6 === void 0 ? void 0 : _data$result6.map(function (_) {
|
|
35429
|
+
var _$PersonID6, _$PersonID6$, _$PersonID6$$name, _$PersonID6$$name$, _$appointmentType5;
|
|
35430
|
+
|
|
35431
|
+
return {
|
|
35432
|
+
"img": 'https://www.fillmurray.com/640/360',
|
|
35433
|
+
"name": _ === null || _ === void 0 ? void 0 : (_$PersonID6 = _.PersonID) === null || _$PersonID6 === void 0 ? void 0 : (_$PersonID6$ = _$PersonID6[0]) === null || _$PersonID6$ === void 0 ? void 0 : (_$PersonID6$$name = _$PersonID6$.name) === null || _$PersonID6$$name === void 0 ? void 0 : (_$PersonID6$$name$ = _$PersonID6$$name[0]) === null || _$PersonID6$$name$ === void 0 ? void 0 : _$PersonID6$$name$.given,
|
|
35434
|
+
"mrn": 'MRN',
|
|
35435
|
+
"refNo": "Ref No",
|
|
35436
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('DD MMM,YYYY') : '',
|
|
35437
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('hh:mm A') : '',
|
|
35438
|
+
"visitType": (_$appointmentType5 = _ === null || _ === void 0 ? void 0 : _.appointmentType) !== null && _$appointmentType5 !== void 0 ? _$appointmentType5 : '',
|
|
35439
|
+
"speciality": 'Speciality',
|
|
35440
|
+
"clinic": 'Clinic',
|
|
35441
|
+
"appointmentStatus": 'Status',
|
|
35442
|
+
"View Patient": true,
|
|
35443
|
+
"Attend": true
|
|
35444
|
+
};
|
|
35445
|
+
}) : [];
|
|
35446
|
+
return _context6.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
35447
|
+
data: returnedData
|
|
35448
|
+
}));
|
|
35449
|
+
|
|
35450
|
+
case 10:
|
|
35451
|
+
_context6.prev = 10;
|
|
35452
|
+
_context6.t0 = _context6["catch"](2);
|
|
35453
|
+
return _context6.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
35454
|
+
message: _context6.t0.message
|
|
35455
|
+
})));
|
|
35456
|
+
|
|
35457
|
+
case 13:
|
|
35458
|
+
case "end":
|
|
35459
|
+
return _context6.stop();
|
|
35460
|
+
}
|
|
35461
|
+
}
|
|
35462
|
+
}, _callee6, null, [[2, 10]]);
|
|
35463
|
+
})));
|
|
35464
|
+
var GET_NEW_PATIENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getNewPatientsNurse", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
|
|
35465
|
+
var payload,
|
|
35466
|
+
_ref14,
|
|
35467
|
+
rejectWithValue,
|
|
35468
|
+
_data$result7,
|
|
35469
|
+
data,
|
|
35470
|
+
returnedData,
|
|
35471
|
+
_args7 = arguments;
|
|
35472
|
+
|
|
35473
|
+
return regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
35474
|
+
while (1) {
|
|
35475
|
+
switch (_context7.prev = _context7.next) {
|
|
35476
|
+
case 0:
|
|
35477
|
+
payload = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
35478
|
+
_ref14 = _args7.length > 1 ? _args7[1] : undefined, rejectWithValue = _ref14.rejectWithValue;
|
|
35479
|
+
_context7.prev = 2;
|
|
35480
|
+
_context7.next = 5;
|
|
35481
|
+
return fetchData$1({
|
|
35482
|
+
body: query.getNewPatientsNurse(payload)
|
|
35483
|
+
}, __readDocumentUrl__);
|
|
35484
|
+
|
|
35485
|
+
case 5:
|
|
35486
|
+
data = _context7.sent;
|
|
35487
|
+
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result7 = data.result) === null || _data$result7 === void 0 ? void 0 : _data$result7.map(function (_) {
|
|
35488
|
+
var _$PersonID7, _$PersonID7$, _$PersonID7$$name, _$PersonID7$$name$, _$appointmentType6;
|
|
35489
|
+
|
|
35490
|
+
return {
|
|
35491
|
+
"img": 'https://www.fillmurray.com/640/360',
|
|
35492
|
+
"name": _ === null || _ === void 0 ? void 0 : (_$PersonID7 = _.PersonID) === null || _$PersonID7 === void 0 ? void 0 : (_$PersonID7$ = _$PersonID7[0]) === null || _$PersonID7$ === void 0 ? void 0 : (_$PersonID7$$name = _$PersonID7$.name) === null || _$PersonID7$$name === void 0 ? void 0 : (_$PersonID7$$name$ = _$PersonID7$$name[0]) === null || _$PersonID7$$name$ === void 0 ? void 0 : _$PersonID7$$name$.given,
|
|
35493
|
+
"mrn": 'MRN',
|
|
35494
|
+
"refNo": "Ref No",
|
|
35495
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('DD MMM,YYYY') : '',
|
|
35496
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('hh:mm A') : '',
|
|
35497
|
+
"visitType": (_$appointmentType6 = _ === null || _ === void 0 ? void 0 : _.appointmentType) !== null && _$appointmentType6 !== void 0 ? _$appointmentType6 : '',
|
|
35498
|
+
"speciality": 'Speciality',
|
|
35499
|
+
"clinic": 'Clinic',
|
|
35500
|
+
"appointmentStatus": 'Status',
|
|
35501
|
+
"View Patient": true,
|
|
35502
|
+
"Attend": true
|
|
35503
|
+
};
|
|
35504
|
+
}) : [];
|
|
35505
|
+
return _context7.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
35506
|
+
data: returnedData
|
|
35507
|
+
}));
|
|
35508
|
+
|
|
35509
|
+
case 10:
|
|
35510
|
+
_context7.prev = 10;
|
|
35511
|
+
_context7.t0 = _context7["catch"](2);
|
|
35512
|
+
return _context7.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
35513
|
+
message: _context7.t0.message
|
|
35514
|
+
})));
|
|
35515
|
+
|
|
35516
|
+
case 13:
|
|
35517
|
+
case "end":
|
|
35518
|
+
return _context7.stop();
|
|
35519
|
+
}
|
|
35520
|
+
}
|
|
35521
|
+
}, _callee7, null, [[2, 10]]);
|
|
35522
|
+
})));
|
|
35523
|
+
var GET_OTHER_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getOtherVisitsNurse", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
|
|
35524
|
+
var payload,
|
|
35525
|
+
_ref16,
|
|
35526
|
+
rejectWithValue,
|
|
35527
|
+
_data$result8,
|
|
35528
|
+
data,
|
|
35529
|
+
returnedData,
|
|
35530
|
+
_args8 = arguments;
|
|
35531
|
+
|
|
35532
|
+
return regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
35533
|
+
while (1) {
|
|
35534
|
+
switch (_context8.prev = _context8.next) {
|
|
35535
|
+
case 0:
|
|
35536
|
+
payload = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
35537
|
+
_ref16 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref16.rejectWithValue;
|
|
35538
|
+
_context8.prev = 2;
|
|
35539
|
+
_context8.next = 5;
|
|
35540
|
+
return fetchData$1({
|
|
35541
|
+
body: query.getOtherVisitsNurse(payload)
|
|
35542
|
+
}, __readDocumentUrl__);
|
|
35543
|
+
|
|
35544
|
+
case 5:
|
|
35545
|
+
data = _context8.sent;
|
|
35546
|
+
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result8 = data.result) === null || _data$result8 === void 0 ? void 0 : _data$result8.map(function (_) {
|
|
35547
|
+
var _$PersonID8, _$PersonID8$, _$PersonID8$$name, _$PersonID8$$name$, _$appointmentType7;
|
|
35548
|
+
|
|
35549
|
+
return {
|
|
35550
|
+
"img": 'https://www.fillmurray.com/640/360',
|
|
35551
|
+
"name": _ === null || _ === void 0 ? void 0 : (_$PersonID8 = _.PersonID) === null || _$PersonID8 === void 0 ? void 0 : (_$PersonID8$ = _$PersonID8[0]) === null || _$PersonID8$ === void 0 ? void 0 : (_$PersonID8$$name = _$PersonID8$.name) === null || _$PersonID8$$name === void 0 ? void 0 : (_$PersonID8$$name$ = _$PersonID8$$name[0]) === null || _$PersonID8$$name$ === void 0 ? void 0 : _$PersonID8$$name$.given,
|
|
35552
|
+
"mrn": 'MRN',
|
|
35553
|
+
"refNo": "Ref No",
|
|
35554
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('DD MMM,YYYY') : '',
|
|
35555
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('hh:mm A') : '',
|
|
35556
|
+
"visitType": (_$appointmentType7 = _ === null || _ === void 0 ? void 0 : _.appointmentType) !== null && _$appointmentType7 !== void 0 ? _$appointmentType7 : '',
|
|
35557
|
+
"speciality": 'Speciality',
|
|
35558
|
+
"clinic": 'Clinic',
|
|
35559
|
+
"appointmentStatus": 'Status',
|
|
35560
|
+
"View Patient": true,
|
|
35561
|
+
"Attend": true
|
|
35562
|
+
};
|
|
35563
|
+
}) : [];
|
|
35564
|
+
return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
35565
|
+
data: returnedData
|
|
35566
|
+
}));
|
|
35567
|
+
|
|
35568
|
+
case 10:
|
|
35569
|
+
_context8.prev = 10;
|
|
35570
|
+
_context8.t0 = _context8["catch"](2);
|
|
35571
|
+
return _context8.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
35572
|
+
message: _context8.t0.message
|
|
35573
|
+
})));
|
|
35574
|
+
|
|
35575
|
+
case 13:
|
|
35576
|
+
case "end":
|
|
35577
|
+
return _context8.stop();
|
|
35578
|
+
}
|
|
35579
|
+
}
|
|
35580
|
+
}, _callee8, null, [[2, 10]]);
|
|
35581
|
+
})));
|
|
35582
|
+
var GET_TODAY_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getTodayVisitsNurse", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
|
|
35583
|
+
var payload,
|
|
35584
|
+
_ref18,
|
|
35585
|
+
rejectWithValue,
|
|
35586
|
+
_data$result9,
|
|
35587
|
+
data,
|
|
35588
|
+
returnedData,
|
|
35589
|
+
_args9 = arguments;
|
|
35590
|
+
|
|
35591
|
+
return regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
35592
|
+
while (1) {
|
|
35593
|
+
switch (_context9.prev = _context9.next) {
|
|
35594
|
+
case 0:
|
|
35595
|
+
payload = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
|
|
35596
|
+
_ref18 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref18.rejectWithValue;
|
|
35597
|
+
_context9.prev = 2;
|
|
35598
|
+
_context9.next = 5;
|
|
35599
|
+
return fetchData$1({
|
|
35600
|
+
body: query.getTodayVisitsNurse(payload)
|
|
35601
|
+
}, __readDocumentUrl__);
|
|
35602
|
+
|
|
35603
|
+
case 5:
|
|
35604
|
+
data = _context9.sent;
|
|
35605
|
+
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result9 = data.result) === null || _data$result9 === void 0 ? void 0 : _data$result9.map(function (_) {
|
|
35606
|
+
var _$PersonID9, _$PersonID9$, _$PersonID9$$name, _$PersonID9$$name$, _$appointmentType8;
|
|
35607
|
+
|
|
35608
|
+
return {
|
|
35609
|
+
"img": 'https://www.fillmurray.com/640/360',
|
|
35610
|
+
"name": _ === null || _ === void 0 ? void 0 : (_$PersonID9 = _.PersonID) === null || _$PersonID9 === void 0 ? void 0 : (_$PersonID9$ = _$PersonID9[0]) === null || _$PersonID9$ === void 0 ? void 0 : (_$PersonID9$$name = _$PersonID9$.name) === null || _$PersonID9$$name === void 0 ? void 0 : (_$PersonID9$$name$ = _$PersonID9$$name[0]) === null || _$PersonID9$$name$ === void 0 ? void 0 : _$PersonID9$$name$.given,
|
|
35611
|
+
"mrn": 'MRN',
|
|
35612
|
+
"refNo": "Ref No",
|
|
35613
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('DD MMM,YYYY') : '',
|
|
35614
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('hh:mm A') : '',
|
|
35615
|
+
"visitType": (_$appointmentType8 = _ === null || _ === void 0 ? void 0 : _.appointmentType) !== null && _$appointmentType8 !== void 0 ? _$appointmentType8 : '',
|
|
35616
|
+
"speciality": 'Speciality',
|
|
35617
|
+
"clinic": 'Clinic',
|
|
35618
|
+
"appointmentStatus": 'Status',
|
|
35619
|
+
"View Patient": true,
|
|
35620
|
+
"Attend": true
|
|
35621
|
+
};
|
|
35622
|
+
}) : [];
|
|
35623
|
+
return _context9.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
35624
|
+
data: returnedData
|
|
35625
|
+
}));
|
|
35626
|
+
|
|
35627
|
+
case 10:
|
|
35628
|
+
_context9.prev = 10;
|
|
35629
|
+
_context9.t0 = _context9["catch"](2);
|
|
35630
|
+
return _context9.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
35631
|
+
message: _context9.t0.message
|
|
35632
|
+
})));
|
|
35633
|
+
|
|
35634
|
+
case 13:
|
|
35635
|
+
case "end":
|
|
35636
|
+
return _context9.stop();
|
|
35637
|
+
}
|
|
35638
|
+
}
|
|
35639
|
+
}, _callee9, null, [[2, 10]]);
|
|
35640
|
+
})));
|
|
35641
|
+
var GET_WALK_INS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getWalkInsNurse", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
|
|
35642
|
+
var payload,
|
|
35643
|
+
_ref20,
|
|
35644
|
+
rejectWithValue,
|
|
35645
|
+
_data$result10,
|
|
35646
|
+
data,
|
|
35647
|
+
returnedData,
|
|
35648
|
+
_args10 = arguments;
|
|
35649
|
+
|
|
35650
|
+
return regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
35651
|
+
while (1) {
|
|
35652
|
+
switch (_context10.prev = _context10.next) {
|
|
35653
|
+
case 0:
|
|
35654
|
+
payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
|
|
35655
|
+
_ref20 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref20.rejectWithValue;
|
|
35656
|
+
_context10.prev = 2;
|
|
35657
|
+
_context10.next = 5;
|
|
35658
|
+
return fetchData$1({
|
|
35659
|
+
body: query.getWalkInsNurse(payload)
|
|
35660
|
+
}, __readDocumentUrl__);
|
|
35661
|
+
|
|
35662
|
+
case 5:
|
|
35663
|
+
data = _context10.sent;
|
|
35664
|
+
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result10 = data.result) === null || _data$result10 === void 0 ? void 0 : _data$result10.map(function (_) {
|
|
35665
|
+
var _$PersonID10, _$PersonID10$, _$PersonID10$$name, _$PersonID10$$name$, _$appointmentType9;
|
|
35666
|
+
|
|
35667
|
+
return {
|
|
35668
|
+
"img": 'https://www.fillmurray.com/640/360',
|
|
35669
|
+
"name": _ === null || _ === void 0 ? void 0 : (_$PersonID10 = _.PersonID) === null || _$PersonID10 === void 0 ? void 0 : (_$PersonID10$ = _$PersonID10[0]) === null || _$PersonID10$ === void 0 ? void 0 : (_$PersonID10$$name = _$PersonID10$.name) === null || _$PersonID10$$name === void 0 ? void 0 : (_$PersonID10$$name$ = _$PersonID10$$name[0]) === null || _$PersonID10$$name$ === void 0 ? void 0 : _$PersonID10$$name$.given,
|
|
35670
|
+
"mrn": 'MRN',
|
|
35671
|
+
"refNo": "Ref No",
|
|
35672
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('DD MMM,YYYY') : '',
|
|
35673
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('hh:mm A') : '',
|
|
35674
|
+
"visitType": (_$appointmentType9 = _ === null || _ === void 0 ? void 0 : _.appointmentType) !== null && _$appointmentType9 !== void 0 ? _$appointmentType9 : '',
|
|
35675
|
+
"speciality": 'Speciality',
|
|
35676
|
+
"clinic": 'Clinic',
|
|
35677
|
+
"appointmentStatus": 'Status',
|
|
35678
|
+
"View Patient": true,
|
|
35679
|
+
"Attend": true
|
|
35680
|
+
};
|
|
35681
|
+
}) : [];
|
|
35682
|
+
return _context10.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
35683
|
+
data: returnedData
|
|
35684
|
+
}));
|
|
35685
|
+
|
|
35686
|
+
case 10:
|
|
35687
|
+
_context10.prev = 10;
|
|
35688
|
+
_context10.t0 = _context10["catch"](2);
|
|
35689
|
+
return _context10.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
35690
|
+
message: _context10.t0.message
|
|
35691
|
+
})));
|
|
35692
|
+
|
|
35693
|
+
case 13:
|
|
35694
|
+
case "end":
|
|
35695
|
+
return _context10.stop();
|
|
35696
|
+
}
|
|
35697
|
+
}
|
|
35698
|
+
}, _callee10, null, [[2, 10]]);
|
|
35699
|
+
}))); //DOCTOR
|
|
35700
|
+
|
|
35701
|
+
var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirstVisitsDoctor", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {
|
|
35702
|
+
var payload,
|
|
35703
|
+
_ref22,
|
|
35704
|
+
rejectWithValue,
|
|
35705
|
+
_data$result11,
|
|
35706
|
+
data,
|
|
35707
|
+
returnedData,
|
|
35708
|
+
_args11 = arguments;
|
|
35709
|
+
|
|
35710
|
+
return regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
35711
|
+
while (1) {
|
|
35712
|
+
switch (_context11.prev = _context11.next) {
|
|
35713
|
+
case 0:
|
|
35714
|
+
payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
|
|
35715
|
+
_ref22 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref22.rejectWithValue;
|
|
35716
|
+
_context11.prev = 2;
|
|
35717
|
+
_context11.next = 5;
|
|
35718
|
+
return fetchData$1({
|
|
35719
|
+
body: query.getFirstVisitsDoctor(payload)
|
|
35720
|
+
}, __readDocumentUrl__);
|
|
35721
|
+
|
|
35722
|
+
case 5:
|
|
35723
|
+
data = _context11.sent;
|
|
35724
|
+
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result11 = data.result) === null || _data$result11 === void 0 ? void 0 : _data$result11.map(function (_) {
|
|
35725
|
+
var _$PersonID11, _$PersonID11$, _$PersonID11$$name, _$PersonID11$$name$, _$appointmentType10;
|
|
35726
|
+
|
|
35727
|
+
return {
|
|
35728
|
+
"img": 'https://www.fillmurray.com/640/360',
|
|
35729
|
+
"name": _ === null || _ === void 0 ? void 0 : (_$PersonID11 = _.PersonID) === null || _$PersonID11 === void 0 ? void 0 : (_$PersonID11$ = _$PersonID11[0]) === null || _$PersonID11$ === void 0 ? void 0 : (_$PersonID11$$name = _$PersonID11$.name) === null || _$PersonID11$$name === void 0 ? void 0 : (_$PersonID11$$name$ = _$PersonID11$$name[0]) === null || _$PersonID11$$name$ === void 0 ? void 0 : _$PersonID11$$name$.given,
|
|
35730
|
+
"mrn": 'MRN',
|
|
35731
|
+
"refNo": "Ref No",
|
|
35732
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('DD MMM,YYYY') : '',
|
|
35733
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('hh:mm A') : '',
|
|
35734
|
+
"visitType": (_$appointmentType10 = _ === null || _ === void 0 ? void 0 : _.appointmentType) !== null && _$appointmentType10 !== void 0 ? _$appointmentType10 : '',
|
|
35735
|
+
"speciality": 'Speciality',
|
|
35736
|
+
"clinic": 'Clinic',
|
|
35737
|
+
"appointmentStatus": 'Status',
|
|
35738
|
+
"View Patient": true,
|
|
35739
|
+
"Attend": true
|
|
35740
|
+
};
|
|
35741
|
+
}) : [];
|
|
35742
|
+
return _context11.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
35743
|
+
data: returnedData
|
|
35744
|
+
}));
|
|
35745
|
+
|
|
35746
|
+
case 10:
|
|
35747
|
+
_context11.prev = 10;
|
|
35748
|
+
_context11.t0 = _context11["catch"](2);
|
|
35749
|
+
return _context11.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
35750
|
+
message: _context11.t0.message
|
|
35751
|
+
})));
|
|
35752
|
+
|
|
35753
|
+
case 13:
|
|
35754
|
+
case "end":
|
|
35755
|
+
return _context11.stop();
|
|
35756
|
+
}
|
|
35757
|
+
}
|
|
35758
|
+
}, _callee11, null, [[2, 10]]);
|
|
35759
|
+
})));
|
|
35760
|
+
var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewPatientsDoctor", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {
|
|
35761
|
+
var payload,
|
|
35762
|
+
_ref24,
|
|
35763
|
+
rejectWithValue,
|
|
35764
|
+
_data$result12,
|
|
35765
|
+
data,
|
|
35766
|
+
returnedData,
|
|
35767
|
+
_args12 = arguments;
|
|
35768
|
+
|
|
35769
|
+
return regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
35770
|
+
while (1) {
|
|
35771
|
+
switch (_context12.prev = _context12.next) {
|
|
35772
|
+
case 0:
|
|
35773
|
+
payload = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : {};
|
|
35774
|
+
_ref24 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref24.rejectWithValue;
|
|
35775
|
+
_context12.prev = 2;
|
|
35776
|
+
_context12.next = 5;
|
|
35777
|
+
return fetchData$1({
|
|
35778
|
+
body: query.getNewPatientsDoctor(payload)
|
|
35779
|
+
}, __readDocumentUrl__);
|
|
35780
|
+
|
|
35781
|
+
case 5:
|
|
35782
|
+
data = _context12.sent;
|
|
35783
|
+
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result12 = data.result) === null || _data$result12 === void 0 ? void 0 : _data$result12.map(function (_) {
|
|
35784
|
+
var _$PersonID12, _$PersonID12$, _$PersonID12$$name, _$PersonID12$$name$, _$appointmentType11;
|
|
35785
|
+
|
|
35786
|
+
return {
|
|
35787
|
+
"img": 'https://www.fillmurray.com/640/360',
|
|
35788
|
+
"name": _ === null || _ === void 0 ? void 0 : (_$PersonID12 = _.PersonID) === null || _$PersonID12 === void 0 ? void 0 : (_$PersonID12$ = _$PersonID12[0]) === null || _$PersonID12$ === void 0 ? void 0 : (_$PersonID12$$name = _$PersonID12$.name) === null || _$PersonID12$$name === void 0 ? void 0 : (_$PersonID12$$name$ = _$PersonID12$$name[0]) === null || _$PersonID12$$name$ === void 0 ? void 0 : _$PersonID12$$name$.given,
|
|
35789
|
+
"mrn": 'MRN',
|
|
35790
|
+
"refNo": "Ref No",
|
|
35791
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('DD MMM,YYYY') : '',
|
|
35792
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('hh:mm A') : '',
|
|
35793
|
+
"visitType": (_$appointmentType11 = _ === null || _ === void 0 ? void 0 : _.appointmentType) !== null && _$appointmentType11 !== void 0 ? _$appointmentType11 : '',
|
|
35794
|
+
"speciality": 'Speciality',
|
|
35795
|
+
"clinic": 'Clinic',
|
|
35796
|
+
"appointmentStatus": 'Status',
|
|
35797
|
+
"View Patient": true,
|
|
35798
|
+
"Attend": true
|
|
35799
|
+
};
|
|
35800
|
+
}) : [];
|
|
35801
|
+
return _context12.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
35802
|
+
data: returnedData
|
|
35803
|
+
}));
|
|
35804
|
+
|
|
35805
|
+
case 10:
|
|
35806
|
+
_context12.prev = 10;
|
|
35807
|
+
_context12.t0 = _context12["catch"](2);
|
|
35808
|
+
return _context12.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
35809
|
+
message: _context12.t0.message
|
|
35810
|
+
})));
|
|
35811
|
+
|
|
35812
|
+
case 13:
|
|
35813
|
+
case "end":
|
|
35814
|
+
return _context12.stop();
|
|
35815
|
+
}
|
|
35816
|
+
}
|
|
35817
|
+
}, _callee12, null, [[2, 10]]);
|
|
35818
|
+
})));
|
|
35819
|
+
var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOtherVisitsDoctor", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13() {
|
|
35820
|
+
var payload,
|
|
35821
|
+
_ref26,
|
|
35822
|
+
rejectWithValue,
|
|
35823
|
+
_data$result13,
|
|
35824
|
+
data,
|
|
35825
|
+
returnedData,
|
|
35826
|
+
_args13 = arguments;
|
|
35827
|
+
|
|
35828
|
+
return regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
35829
|
+
while (1) {
|
|
35830
|
+
switch (_context13.prev = _context13.next) {
|
|
35831
|
+
case 0:
|
|
35832
|
+
payload = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {};
|
|
35833
|
+
_ref26 = _args13.length > 1 ? _args13[1] : undefined, rejectWithValue = _ref26.rejectWithValue;
|
|
35834
|
+
_context13.prev = 2;
|
|
35835
|
+
_context13.next = 5;
|
|
35836
|
+
return fetchData$1({
|
|
35837
|
+
body: query.getOtherVisitsDoctor(payload)
|
|
35838
|
+
}, __readDocumentUrl__);
|
|
35839
|
+
|
|
35840
|
+
case 5:
|
|
35841
|
+
data = _context13.sent;
|
|
35842
|
+
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result13 = data.result) === null || _data$result13 === void 0 ? void 0 : _data$result13.map(function (_) {
|
|
35843
|
+
var _$PersonID13, _$PersonID13$, _$PersonID13$$name, _$PersonID13$$name$, _$appointmentType12;
|
|
35844
|
+
|
|
35845
|
+
return {
|
|
35846
|
+
"img": 'https://www.fillmurray.com/640/360',
|
|
35847
|
+
"name": _ === null || _ === void 0 ? void 0 : (_$PersonID13 = _.PersonID) === null || _$PersonID13 === void 0 ? void 0 : (_$PersonID13$ = _$PersonID13[0]) === null || _$PersonID13$ === void 0 ? void 0 : (_$PersonID13$$name = _$PersonID13$.name) === null || _$PersonID13$$name === void 0 ? void 0 : (_$PersonID13$$name$ = _$PersonID13$$name[0]) === null || _$PersonID13$$name$ === void 0 ? void 0 : _$PersonID13$$name$.given,
|
|
35848
|
+
"mrn": 'MRN',
|
|
35849
|
+
"refNo": "Ref No",
|
|
35850
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('DD MMM,YYYY') : '',
|
|
35851
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('hh:mm A') : '',
|
|
35852
|
+
"visitType": (_$appointmentType12 = _ === null || _ === void 0 ? void 0 : _.appointmentType) !== null && _$appointmentType12 !== void 0 ? _$appointmentType12 : '',
|
|
35853
|
+
"speciality": 'Speciality',
|
|
35854
|
+
"clinic": 'Clinic',
|
|
35855
|
+
"appointmentStatus": 'Status',
|
|
35856
|
+
"View Patient": true,
|
|
35857
|
+
"Attend": true
|
|
35858
|
+
};
|
|
35859
|
+
}) : [];
|
|
35860
|
+
return _context13.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
35861
|
+
data: returnedData
|
|
35862
|
+
}));
|
|
35863
|
+
|
|
35864
|
+
case 10:
|
|
35865
|
+
_context13.prev = 10;
|
|
35866
|
+
_context13.t0 = _context13["catch"](2);
|
|
35867
|
+
return _context13.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
35868
|
+
message: _context13.t0.message
|
|
35869
|
+
})));
|
|
35870
|
+
|
|
35871
|
+
case 13:
|
|
35872
|
+
case "end":
|
|
35873
|
+
return _context13.stop();
|
|
35874
|
+
}
|
|
35875
|
+
}
|
|
35876
|
+
}, _callee13, null, [[2, 10]]);
|
|
35877
|
+
})));
|
|
35878
|
+
var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getTodayVisitsDoctor", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14() {
|
|
35879
|
+
var payload,
|
|
35880
|
+
_ref28,
|
|
35881
|
+
rejectWithValue,
|
|
35882
|
+
_data$result14,
|
|
35883
|
+
data,
|
|
35884
|
+
returnedData,
|
|
35885
|
+
_args14 = arguments;
|
|
35886
|
+
|
|
35887
|
+
return regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
35888
|
+
while (1) {
|
|
35889
|
+
switch (_context14.prev = _context14.next) {
|
|
35890
|
+
case 0:
|
|
35891
|
+
payload = _args14.length > 0 && _args14[0] !== undefined ? _args14[0] : {};
|
|
35892
|
+
_ref28 = _args14.length > 1 ? _args14[1] : undefined, rejectWithValue = _ref28.rejectWithValue;
|
|
35893
|
+
_context14.prev = 2;
|
|
35894
|
+
_context14.next = 5;
|
|
35895
|
+
return fetchData$1({
|
|
35896
|
+
body: query.getTodayVisitsDoctor(payload)
|
|
35897
|
+
}, __readDocumentUrl__);
|
|
35898
|
+
|
|
35899
|
+
case 5:
|
|
35900
|
+
data = _context14.sent;
|
|
35901
|
+
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result14 = data.result) === null || _data$result14 === void 0 ? void 0 : _data$result14.map(function (_) {
|
|
35902
|
+
var _$PersonID14, _$PersonID14$, _$PersonID14$$name, _$PersonID14$$name$, _$appointmentType13;
|
|
35903
|
+
|
|
35904
|
+
return {
|
|
35905
|
+
"img": 'https://www.fillmurray.com/640/360',
|
|
35906
|
+
"name": _ === null || _ === void 0 ? void 0 : (_$PersonID14 = _.PersonID) === null || _$PersonID14 === void 0 ? void 0 : (_$PersonID14$ = _$PersonID14[0]) === null || _$PersonID14$ === void 0 ? void 0 : (_$PersonID14$$name = _$PersonID14$.name) === null || _$PersonID14$$name === void 0 ? void 0 : (_$PersonID14$$name$ = _$PersonID14$$name[0]) === null || _$PersonID14$$name$ === void 0 ? void 0 : _$PersonID14$$name$.given,
|
|
35907
|
+
"mrn": 'MRN',
|
|
35908
|
+
"refNo": "Ref No",
|
|
35909
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('DD MMM,YYYY') : '',
|
|
35910
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('hh:mm A') : '',
|
|
35911
|
+
"visitType": (_$appointmentType13 = _ === null || _ === void 0 ? void 0 : _.appointmentType) !== null && _$appointmentType13 !== void 0 ? _$appointmentType13 : '',
|
|
35912
|
+
"speciality": 'Speciality',
|
|
35913
|
+
"clinic": 'Clinic',
|
|
35914
|
+
"appointmentStatus": 'Status',
|
|
35915
|
+
"View Patient": true,
|
|
35916
|
+
"Attend": true
|
|
35917
|
+
};
|
|
35918
|
+
}) : [];
|
|
35919
|
+
return _context14.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
35920
|
+
data: returnedData
|
|
35921
|
+
}));
|
|
35922
|
+
|
|
35923
|
+
case 10:
|
|
35924
|
+
_context14.prev = 10;
|
|
35925
|
+
_context14.t0 = _context14["catch"](2);
|
|
35926
|
+
return _context14.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
35927
|
+
message: _context14.t0.message
|
|
35928
|
+
})));
|
|
35929
|
+
|
|
35930
|
+
case 13:
|
|
35931
|
+
case "end":
|
|
35932
|
+
return _context14.stop();
|
|
35933
|
+
}
|
|
35934
|
+
}
|
|
35935
|
+
}, _callee14, null, [[2, 10]]);
|
|
35936
|
+
})));
|
|
35937
|
+
var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsDoctor", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee15() {
|
|
35938
|
+
var payload,
|
|
35939
|
+
_ref30,
|
|
35940
|
+
rejectWithValue,
|
|
35941
|
+
_data$result15,
|
|
35942
|
+
data,
|
|
35943
|
+
returnedData,
|
|
35944
|
+
_args15 = arguments;
|
|
35945
|
+
|
|
35946
|
+
return regeneratorRuntime.wrap(function _callee15$(_context15) {
|
|
35947
|
+
while (1) {
|
|
35948
|
+
switch (_context15.prev = _context15.next) {
|
|
35949
|
+
case 0:
|
|
35950
|
+
payload = _args15.length > 0 && _args15[0] !== undefined ? _args15[0] : {};
|
|
35951
|
+
_ref30 = _args15.length > 1 ? _args15[1] : undefined, rejectWithValue = _ref30.rejectWithValue;
|
|
35952
|
+
_context15.prev = 2;
|
|
35953
|
+
_context15.next = 5;
|
|
35954
|
+
return fetchData$1({
|
|
35955
|
+
body: query.getWalkInsDoctor(payload)
|
|
35956
|
+
}, __readDocumentUrl__);
|
|
35957
|
+
|
|
35958
|
+
case 5:
|
|
35959
|
+
data = _context15.sent;
|
|
35960
|
+
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result15 = data.result) === null || _data$result15 === void 0 ? void 0 : _data$result15.map(function (_) {
|
|
35961
|
+
var _$PersonID15, _$PersonID15$, _$PersonID15$$name, _$PersonID15$$name$, _$appointmentType14;
|
|
35962
|
+
|
|
35963
|
+
return {
|
|
35964
|
+
"img": 'https://www.fillmurray.com/640/360',
|
|
35965
|
+
"name": _ === null || _ === void 0 ? void 0 : (_$PersonID15 = _.PersonID) === null || _$PersonID15 === void 0 ? void 0 : (_$PersonID15$ = _$PersonID15[0]) === null || _$PersonID15$ === void 0 ? void 0 : (_$PersonID15$$name = _$PersonID15$.name) === null || _$PersonID15$$name === void 0 ? void 0 : (_$PersonID15$$name$ = _$PersonID15$$name[0]) === null || _$PersonID15$$name$ === void 0 ? void 0 : _$PersonID15$$name$.given,
|
|
35966
|
+
"mrn": 'MRN',
|
|
35967
|
+
"refNo": "Ref No",
|
|
35968
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('DD MMM,YYYY') : '',
|
|
35969
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('hh:mm A') : '',
|
|
35970
|
+
"visitType": (_$appointmentType14 = _ === null || _ === void 0 ? void 0 : _.appointmentType) !== null && _$appointmentType14 !== void 0 ? _$appointmentType14 : '',
|
|
35971
|
+
"speciality": 'Speciality',
|
|
35972
|
+
"clinic": 'Clinic',
|
|
35973
|
+
"appointmentStatus": 'Status',
|
|
35974
|
+
"View Patient": true,
|
|
35975
|
+
"Attend": true
|
|
35976
|
+
};
|
|
35977
|
+
}) : [];
|
|
35978
|
+
return _context15.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
35979
|
+
data: returnedData
|
|
35980
|
+
}));
|
|
35981
|
+
|
|
35982
|
+
case 10:
|
|
35983
|
+
_context15.prev = 10;
|
|
35984
|
+
_context15.t0 = _context15["catch"](2);
|
|
35985
|
+
return _context15.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
35986
|
+
message: _context15.t0.message
|
|
35987
|
+
})));
|
|
35988
|
+
|
|
35989
|
+
case 13:
|
|
35990
|
+
case "end":
|
|
35991
|
+
return _context15.stop();
|
|
35992
|
+
}
|
|
35993
|
+
}
|
|
35994
|
+
}, _callee15, null, [[2, 10]]);
|
|
35374
35995
|
})));
|
|
35375
35996
|
var appointmentStatsApiSlice = createSlice({
|
|
35376
35997
|
name: "appointmentStatsApiSlice",
|
|
35377
35998
|
initialState: {
|
|
35999
|
+
//FRONTDESK
|
|
35378
36000
|
appointments: _objectSpread2({}, defaultState.Info),
|
|
35379
36001
|
firstVisits: _objectSpread2({}, defaultState.Info),
|
|
35380
36002
|
otherVisits: _objectSpread2({}, defaultState.Info),
|
|
35381
36003
|
walkIns: _objectSpread2({}, defaultState.Info),
|
|
35382
|
-
newPatients: _objectSpread2({}, defaultState.Info)
|
|
36004
|
+
newPatients: _objectSpread2({}, defaultState.Info),
|
|
36005
|
+
//NURSE
|
|
36006
|
+
firstVisitsNurse: _objectSpread2({}, defaultState.Info),
|
|
36007
|
+
newPatientsNurse: _objectSpread2({}, defaultState.Info),
|
|
36008
|
+
otherVisitsNurse: _objectSpread2({}, defaultState.Info),
|
|
36009
|
+
todayVisitsNurse: _objectSpread2({}, defaultState.Info),
|
|
36010
|
+
walkInsNurse: _objectSpread2({}, defaultState.Info),
|
|
36011
|
+
//DOCTOR
|
|
36012
|
+
firstVisitsDoctor: _objectSpread2({}, defaultState.Info),
|
|
36013
|
+
newPatientsDoctor: _objectSpread2({}, defaultState.Info),
|
|
36014
|
+
otherVisitsDoctor: _objectSpread2({}, defaultState.Info),
|
|
36015
|
+
todayVisitsDoctor: _objectSpread2({}, defaultState.Info),
|
|
36016
|
+
walkInsDoctor: _objectSpread2({}, defaultState.Info)
|
|
35383
36017
|
},
|
|
35384
36018
|
extraReducers: (_extraReducers$y = {}, _defineProperty(_extraReducers$y, GET_APPOINTMENTS.fulfilled, function (state, action) {
|
|
35385
36019
|
var _state$appointments;
|
|
@@ -35431,6 +36065,106 @@ var appointmentStatsApiSlice = createSlice({
|
|
|
35431
36065
|
var _action$payload5;
|
|
35432
36066
|
|
|
35433
36067
|
state.newPatients.loading = false, state.newPatients.error = true, state.newPatients = (_action$payload5 = action.payload) !== null && _action$payload5 !== void 0 ? _action$payload5 : {};
|
|
36068
|
+
}), _defineProperty(_extraReducers$y, GET_FIRST_VISITS_NURSE.fulfilled, function (state, action) {
|
|
36069
|
+
var _state$firstVisitsNur;
|
|
36070
|
+
|
|
36071
|
+
state.firstVisitsNurse.loading = false, state.firstVisitsNurse.error = false, (_state$firstVisitsNur = state.firstVisitsNurse = action.payload) !== null && _state$firstVisitsNur !== void 0 ? _state$firstVisitsNur : {};
|
|
36072
|
+
}), _defineProperty(_extraReducers$y, GET_FIRST_VISITS_NURSE.pending, function (state, action) {
|
|
36073
|
+
state.firstVisitsNurse.loading = true, state.firstVisitsNurse.error = false, state.firstVisitsNurse.loading = true;
|
|
36074
|
+
}), _defineProperty(_extraReducers$y, GET_FIRST_VISITS_NURSE.rejected, function (state, action) {
|
|
36075
|
+
var _action$payload6;
|
|
36076
|
+
|
|
36077
|
+
state.firstVisitsNurse.loading = false, state.firstVisitsNurse.error = true, state.firstVisitsNurse = (_action$payload6 = action.payload) !== null && _action$payload6 !== void 0 ? _action$payload6 : {};
|
|
36078
|
+
}), _defineProperty(_extraReducers$y, GET_NEW_PATIENTS_NURSE.fulfilled, function (state, action) {
|
|
36079
|
+
var _state$newPatientsNur;
|
|
36080
|
+
|
|
36081
|
+
state.newPatientsNurse.loading = false, state.newPatientsNurse.error = false, (_state$newPatientsNur = state.newPatientsNurse = action.payload) !== null && _state$newPatientsNur !== void 0 ? _state$newPatientsNur : {};
|
|
36082
|
+
}), _defineProperty(_extraReducers$y, GET_NEW_PATIENTS_NURSE.pending, function (state, action) {
|
|
36083
|
+
state.newPatientsNurse.loading = true, state.newPatientsNurse.error = false, state.newPatientsNurse.loading = true;
|
|
36084
|
+
}), _defineProperty(_extraReducers$y, GET_NEW_PATIENTS_NURSE.rejected, function (state, action) {
|
|
36085
|
+
var _action$payload7;
|
|
36086
|
+
|
|
36087
|
+
state.newPatientsNurse.loading = false, state.newPatientsNurse.error = true, state.newPatientsNurse = (_action$payload7 = action.payload) !== null && _action$payload7 !== void 0 ? _action$payload7 : {};
|
|
36088
|
+
}), _defineProperty(_extraReducers$y, GET_OTHER_VISITS_NURSE.fulfilled, function (state, action) {
|
|
36089
|
+
var _state$otherVisitsNur;
|
|
36090
|
+
|
|
36091
|
+
state.otherVisitsNurse.loading = false, state.otherVisitsNurse.error = false, (_state$otherVisitsNur = state.otherVisitsNurse = action.payload) !== null && _state$otherVisitsNur !== void 0 ? _state$otherVisitsNur : {};
|
|
36092
|
+
}), _defineProperty(_extraReducers$y, GET_OTHER_VISITS_NURSE.pending, function (state, action) {
|
|
36093
|
+
state.otherVisitsNurse.loading = true, state.otherVisitsNurse.error = false, state.otherVisitsNurse.loading = true;
|
|
36094
|
+
}), _defineProperty(_extraReducers$y, GET_OTHER_VISITS_NURSE.rejected, function (state, action) {
|
|
36095
|
+
var _action$payload8;
|
|
36096
|
+
|
|
36097
|
+
state.otherVisitsNurse.loading = false, state.otherVisitsNurse.error = true, state.otherVisitsNurse = (_action$payload8 = action.payload) !== null && _action$payload8 !== void 0 ? _action$payload8 : {};
|
|
36098
|
+
}), _defineProperty(_extraReducers$y, GET_TODAY_VISITS_NURSE.fulfilled, function (state, action) {
|
|
36099
|
+
var _state$todayVisitsNur;
|
|
36100
|
+
|
|
36101
|
+
state.todayVisitsNurse.loading = false, state.todayVisitsNurse.error = false, (_state$todayVisitsNur = state.todayVisitsNurse = action.payload) !== null && _state$todayVisitsNur !== void 0 ? _state$todayVisitsNur : {};
|
|
36102
|
+
}), _defineProperty(_extraReducers$y, GET_TODAY_VISITS_NURSE.pending, function (state, action) {
|
|
36103
|
+
state.todayVisitsNurse.loading = true, state.todayVisitsNurse.error = false, state.todayVisitsNurse.loading = true;
|
|
36104
|
+
}), _defineProperty(_extraReducers$y, GET_TODAY_VISITS_NURSE.rejected, function (state, action) {
|
|
36105
|
+
var _action$payload9;
|
|
36106
|
+
|
|
36107
|
+
state.todayVisitsNurse.loading = false, state.todayVisitsNurse.error = true, state.todayVisitsNurse = (_action$payload9 = action.payload) !== null && _action$payload9 !== void 0 ? _action$payload9 : {};
|
|
36108
|
+
}), _defineProperty(_extraReducers$y, GET_WALK_INS_NURSE.fulfilled, function (state, action) {
|
|
36109
|
+
var _state$walkInsNurse;
|
|
36110
|
+
|
|
36111
|
+
state.walkInsNurse.loading = false, state.walkInsNurse.error = false, (_state$walkInsNurse = state.walkInsNurse = action.payload) !== null && _state$walkInsNurse !== void 0 ? _state$walkInsNurse : {};
|
|
36112
|
+
}), _defineProperty(_extraReducers$y, GET_WALK_INS_NURSE.pending, function (state, action) {
|
|
36113
|
+
state.walkInsNurse.loading = true, state.walkInsNurse.error = false, state.walkInsNurse.loading = true;
|
|
36114
|
+
}), _defineProperty(_extraReducers$y, GET_WALK_INS_NURSE.rejected, function (state, action) {
|
|
36115
|
+
var _action$payload10;
|
|
36116
|
+
|
|
36117
|
+
state.walkInsNurse.loading = false, state.walkInsNurse.error = true, state.walkInsNurse = (_action$payload10 = action.payload) !== null && _action$payload10 !== void 0 ? _action$payload10 : {};
|
|
36118
|
+
}), _defineProperty(_extraReducers$y, GET_FIRST_VISITS_DOCTOR.fulfilled, function (state, action) {
|
|
36119
|
+
var _state$firstVisitsDoc;
|
|
36120
|
+
|
|
36121
|
+
state.firstVisitsDoctor.loading = false, state.firstVisitsDoctor.error = false, (_state$firstVisitsDoc = state.firstVisitsDoctor = action.payload) !== null && _state$firstVisitsDoc !== void 0 ? _state$firstVisitsDoc : {};
|
|
36122
|
+
}), _defineProperty(_extraReducers$y, GET_FIRST_VISITS_DOCTOR.pending, function (state, action) {
|
|
36123
|
+
state.firstVisitsDoctor.loading = true, state.firstVisitsDoctor.error = false, state.firstVisitsDoctor.loading = true;
|
|
36124
|
+
}), _defineProperty(_extraReducers$y, GET_FIRST_VISITS_DOCTOR.rejected, function (state, action) {
|
|
36125
|
+
var _action$payload11;
|
|
36126
|
+
|
|
36127
|
+
state.firstVisitsDoctor.loading = false, state.firstVisitsDoctor.error = true, state.firstVisitsDoctor = (_action$payload11 = action.payload) !== null && _action$payload11 !== void 0 ? _action$payload11 : {};
|
|
36128
|
+
}), _defineProperty(_extraReducers$y, GET_NEW_PATIENTS_DOCTOR.fulfilled, function (state, action) {
|
|
36129
|
+
var _state$newPatientsDoc;
|
|
36130
|
+
|
|
36131
|
+
state.newPatientsDoctor.loading = false, state.newPatientsDoctor.error = false, (_state$newPatientsDoc = state.newPatientsDoctor = action.payload) !== null && _state$newPatientsDoc !== void 0 ? _state$newPatientsDoc : {};
|
|
36132
|
+
}), _defineProperty(_extraReducers$y, GET_NEW_PATIENTS_DOCTOR.pending, function (state, action) {
|
|
36133
|
+
state.newPatientsDoctor.loading = true, state.newPatientsDoctor.error = false, state.newPatientsDoctor.loading = true;
|
|
36134
|
+
}), _defineProperty(_extraReducers$y, GET_NEW_PATIENTS_DOCTOR.rejected, function (state, action) {
|
|
36135
|
+
var _action$payload12;
|
|
36136
|
+
|
|
36137
|
+
state.newPatientsDoctor.loading = false, state.newPatientsDoctor.error = true, state.newPatientsDoctor = (_action$payload12 = action.payload) !== null && _action$payload12 !== void 0 ? _action$payload12 : {};
|
|
36138
|
+
}), _defineProperty(_extraReducers$y, GET_OTHER_VISITS_DOCTOR.fulfilled, function (state, action) {
|
|
36139
|
+
var _state$otherVisitsDoc;
|
|
36140
|
+
|
|
36141
|
+
state.otherVisitsDoctor.loading = false, state.otherVisitsDoctor.error = false, (_state$otherVisitsDoc = state.otherVisitsDoctor = action.payload) !== null && _state$otherVisitsDoc !== void 0 ? _state$otherVisitsDoc : {};
|
|
36142
|
+
}), _defineProperty(_extraReducers$y, GET_OTHER_VISITS_DOCTOR.pending, function (state, action) {
|
|
36143
|
+
state.otherVisitsDoctor.loading = true, state.otherVisitsDoctor.error = false, state.otherVisitsDoctor.loading = true;
|
|
36144
|
+
}), _defineProperty(_extraReducers$y, GET_OTHER_VISITS_DOCTOR.rejected, function (state, action) {
|
|
36145
|
+
var _action$payload13;
|
|
36146
|
+
|
|
36147
|
+
state.otherVisitsDoctor.loading = false, state.otherVisitsDoctor.error = true, state.otherVisitsDoctor = (_action$payload13 = action.payload) !== null && _action$payload13 !== void 0 ? _action$payload13 : {};
|
|
36148
|
+
}), _defineProperty(_extraReducers$y, GET_TODAY_VISITS_DOCTOR.fulfilled, function (state, action) {
|
|
36149
|
+
var _state$todayVisitsDoc;
|
|
36150
|
+
|
|
36151
|
+
state.todayVisitsDoctor.loading = false, state.todayVisitsDoctor.error = false, (_state$todayVisitsDoc = state.todayVisitsDoctor = action.payload) !== null && _state$todayVisitsDoc !== void 0 ? _state$todayVisitsDoc : {};
|
|
36152
|
+
}), _defineProperty(_extraReducers$y, GET_TODAY_VISITS_DOCTOR.pending, function (state, action) {
|
|
36153
|
+
state.todayVisitsDoctor.loading = true, state.todayVisitsDoctor.error = false, state.todayVisitsDoctor.loading = true;
|
|
36154
|
+
}), _defineProperty(_extraReducers$y, GET_TODAY_VISITS_DOCTOR.rejected, function (state, action) {
|
|
36155
|
+
var _action$payload14;
|
|
36156
|
+
|
|
36157
|
+
state.todayVisitsDoctor.loading = false, state.todayVisitsDoctor.error = true, state.todayVisitsDoctor = (_action$payload14 = action.payload) !== null && _action$payload14 !== void 0 ? _action$payload14 : {};
|
|
36158
|
+
}), _defineProperty(_extraReducers$y, GET_WALK_INS_DOCTOR.fulfilled, function (state, action) {
|
|
36159
|
+
var _state$walkInsDoctor;
|
|
36160
|
+
|
|
36161
|
+
state.walkInsDoctor.loading = false, state.walkInsDoctor.error = false, (_state$walkInsDoctor = state.walkInsDoctor = action.payload) !== null && _state$walkInsDoctor !== void 0 ? _state$walkInsDoctor : {};
|
|
36162
|
+
}), _defineProperty(_extraReducers$y, GET_WALK_INS_DOCTOR.pending, function (state, action) {
|
|
36163
|
+
state.walkInsDoctor.loading = true, state.walkInsDoctor.error = false, state.walkInsDoctor.loading = true;
|
|
36164
|
+
}), _defineProperty(_extraReducers$y, GET_WALK_INS_DOCTOR.rejected, function (state, action) {
|
|
36165
|
+
var _action$payload15;
|
|
36166
|
+
|
|
36167
|
+
state.walkInsDoctor.loading = false, state.walkInsDoctor.error = true, state.walkInsDoctor = (_action$payload15 = action.payload) !== null && _action$payload15 !== void 0 ? _action$payload15 : {};
|
|
35434
36168
|
}), _extraReducers$y)
|
|
35435
36169
|
});
|
|
35436
36170
|
var appointmentStatsApiActions = {
|
|
@@ -35438,7 +36172,17 @@ var appointmentStatsApiActions = {
|
|
|
35438
36172
|
GET_FIRST_VISITS: GET_FIRST_VISITS,
|
|
35439
36173
|
GET_OTHER_VISITS: GET_OTHER_VISITS,
|
|
35440
36174
|
GET_WALK_INS: GET_WALK_INS,
|
|
35441
|
-
GET_NEW_PATIENTS: GET_NEW_PATIENTS
|
|
36175
|
+
GET_NEW_PATIENTS: GET_NEW_PATIENTS,
|
|
36176
|
+
GET_FIRST_VISITS_NURSE: GET_FIRST_VISITS_NURSE,
|
|
36177
|
+
GET_NEW_PATIENTS_NURSE: GET_NEW_PATIENTS_NURSE,
|
|
36178
|
+
GET_OTHER_VISITS_NURSE: GET_OTHER_VISITS_NURSE,
|
|
36179
|
+
GET_TODAY_VISITS_NURSE: GET_TODAY_VISITS_NURSE,
|
|
36180
|
+
GET_WALK_INS_NURSE: GET_WALK_INS_NURSE,
|
|
36181
|
+
GET_FIRST_VISITS_DOCTOR: GET_FIRST_VISITS_DOCTOR,
|
|
36182
|
+
GET_NEW_PATIENTS_DOCTOR: GET_NEW_PATIENTS_DOCTOR,
|
|
36183
|
+
GET_OTHER_VISITS_DOCTOR: GET_OTHER_VISITS_DOCTOR,
|
|
36184
|
+
GET_TODAY_VISITS_DOCTOR: GET_TODAY_VISITS_DOCTOR,
|
|
36185
|
+
GET_WALK_INS_DOCTOR: GET_WALK_INS_DOCTOR
|
|
35442
36186
|
};
|
|
35443
36187
|
var dashboardComponentApiSlice = appointmentStatsApiSlice.reducer;
|
|
35444
36188
|
|
|
@@ -35498,21 +36242,49 @@ var RadiologyActions = _objectSpread2({}, RadiologyMastersActions);
|
|
|
35498
36242
|
var consultActions = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, CC_Actions), diagnosisActions), vitalsActions), A_Actions), LabOrderActions), MedicationActions), TreatmentActions), RadiologyActions);
|
|
35499
36243
|
|
|
35500
36244
|
var query$1 = {
|
|
36245
|
+
//FRONTDESK
|
|
35501
36246
|
getPatientsCheckedIn: function getPatientsCheckedIn(data) {
|
|
35502
36247
|
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Encounter\",\n \"filter\": \" 'checkedin' IN Encounter.statushistory[*].status[** FILTER CURRENT] && Encounter.createddate>=1624905000 && Encounter.enddate<=0\",\n \"return_fields\": \" merge(Encounter,{appointmentId: (for a in Appointment filter a.id in Encounter.appointmentId return to_array(a))}, {Organization_id:(for o in Organization filter o.id == Encounter.Organization_id return o)},{account_id:(for a in Account filter a.id == Encounter.account_id return a)},{ServiceRequest_id:(for sr in ServiceRequest filter sr.id == Encounter.ServiceRequest_id return sr)},{episodeOfCare_id:(for epi in EpisodeOfCare filter epi.id == Encounter.episodeOfCare_id return epi)},{patient_id: (for pid in Patient filter pid.id == Encounter.patient_id return pid)})\"\n }");
|
|
35503
36248
|
},
|
|
35504
36249
|
getTriageDone: function getTriageDone(data) {
|
|
35505
|
-
return "{\n
|
|
36250
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Encounter\",\n \"filter\": \" 'triage' IN Encounter.statushistory[*].status[** FILTER CURRENT] && Encounter.createddate>=1624905000 && Encounter.enddate<=0\",\n \"return_fields\": \" merge(Encounter,{appointmentId: (for a in Appointment filter a.id in Encounter.appointmentId return to_array(a))}, {Organization_id:(for o in Organization filter o.id == Encounter.Organization_id return o)},{account_id:(for a in Account filter a.id == Encounter.account_id return a)},{ServiceRequest_id:(for sr in ServiceRequest filter sr.id == Encounter.ServiceRequest_id return sr)},{episodeOfCare_id:(for epi in EpisodeOfCare filter epi.id == Encounter.episodeOfCare_id return epi)},{patient_id: (for pid in Patient filter pid.id == Encounter.patient_id return pid)})\"\n }");
|
|
35506
36251
|
},
|
|
35507
36252
|
getVisitCompleted: function getVisitCompleted(data) {
|
|
35508
|
-
return "{\n
|
|
36253
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Encounter\",\n \"filter\": \" 'completed' IN Encounter.statushistory[*].status[** FILTER CURRENT] && Encounter.createddate>=1624905000 && Encounter.enddate<=0\",\n \"return_fields\": \" merge(Encounter,{appointmentId: (for a in Appointment filter a.id in Encounter.appointmentId return to_array(a))}, {Organization_id:(for o in Organization filter o.id == Encounter.Organization_id return o)},{account_id:(for a in Account filter a.id == Encounter.account_id return a)},{ServiceRequest_id:(for sr in ServiceRequest filter sr.id == Encounter.ServiceRequest_id return sr)},{episodeOfCare_id:(for epi in EpisodeOfCare filter epi.id == Encounter.episodeOfCare_id return epi)},{patient_id: (for pid in Patient filter pid.id == Encounter.patient_id return pid)})\"\n }");
|
|
35509
36254
|
},
|
|
35510
36255
|
getPatientsNoShows: function getPatientsNoShows(data) {
|
|
35511
|
-
return "{\n
|
|
36256
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Appointment,Encounter\",\n \"filter\": \" Appointment.start>=1624271400 && Appointment.end<=1624274999 && Encounter.appointmentId[*] ANY != Appointment.id && Encounter.Organization_id==3 \",\n \"return_fields\": \"merge(Encounter,{Organization_id:(for o in Organization filter o.id == Encounter.Organization_id return o)},{account_id:(for a in Account filter a.id == Encounter.account_id return a)},{ServiceRequest_id:(for sr in ServiceRequest filter sr.id == Encounter.ServiceRequest_id return sr)},{episodeOfCare_id:(for epi in EpisodeOfCare filter epi.id == Encounter.episodeOfCare_id return epi)},{patient_id: (for pid in Patient filter pid.id == Encounter.patient_id return pid)},{appointmentId:Appointment})\"\n }");
|
|
36257
|
+
},
|
|
36258
|
+
//NURSE
|
|
36259
|
+
getPatientsCheckedInNurse: function getPatientsCheckedInNurse(data) {
|
|
36260
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Practitioner,Encounter\",\n \"filter\": {\n \"Practitioner\": \"Practitioner.activestatus==true && lower(document(Practitioner.practitioner_type).display)=='nurse' && Practitioner.id==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && DOCUMENT(Practitioner.practitioner_role[*])[*].OrgID ANY =='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'\",\n \"Encounter\": \"Encounter.activestatus == true && Encounter.Organization_id == '").concat(data === null || data === void 0 ? void 0 : data.orgID, "' && DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID ANY IN Encounter.practitioner_details[*].speciality AND Encounter.encounterdate>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Encounter.encounterdate<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(document(Encounter.status).display)=='checked-in'\"\n },\n \"return_fields\": \"merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))})\"\n }");
|
|
36261
|
+
},
|
|
36262
|
+
getVisitCompletedNurse: function getVisitCompletedNurse(data) {
|
|
36263
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Practitioner,Encounter\",\n \"filter\": {\n \"Practitioner\": \"Practitioner.activestatus==true && lower(document(Practitioner.practitioner_type).display)=='nurse' && Practitioner.id==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && DOCUMENT(Practitioner.practitioner_role[*])[*].OrgID ANY =='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'\",\n \"Encounter\": \"Encounter.activestatus == true && Encounter.Organization_id == '").concat(data === null || data === void 0 ? void 0 : data.orgID, "' && DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID ANY IN Encounter.practitioner_details[*].speciality AND Encounter.encounterdate>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Encounter.encounterdate<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(document(Encounter.status).display)=='finished'\"\n },\n \"return_fields\": \"merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))})\"\n }");
|
|
36264
|
+
},
|
|
36265
|
+
getPatientsNoShowsNurse: function getPatientsNoShowsNurse(data) {
|
|
36266
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Appointment\",\n \"filter\": \"Appointment.activestatus==true && Appointment.start<=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end>=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(Appointment.appstatus)=='booked' && ((DATE_TIMESTAMP(DATE_NOW()/1000)-Appointment.end)/60)>30\",\n \"return_fields\": \"merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))}))})\"\n }");
|
|
36267
|
+
},
|
|
36268
|
+
getTriageDoneNurse: function getTriageDoneNurse(data) {
|
|
36269
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Practitioner,Encounter\",\n \"filter\": {\n \"Practitioner\": \"Practitioner.activestatus==true && lower(document(Practitioner.practitioner_type).display)=='nurse' && Practitioner.id==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && DOCUMENT(Practitioner.practitioner_role[*])[*].OrgID ANY =='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'\",\n \"Encounter\": \"Encounter.activestatus == true && Encounter.Organization_id == '").concat(data === null || data === void 0 ? void 0 : data.orgID, "' && DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID ANY IN Encounter.practitioner_details[*].speciality AND Encounter.encounterdate>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Encounter.encounterdate<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(document(Encounter.status).display)=='triaged'\"\n },\n \"return_fields\": \"merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))})\"\n }");
|
|
36270
|
+
},
|
|
36271
|
+
//DOCTOR
|
|
36272
|
+
getPatientsNoShowsDoctor: function getPatientsNoShowsDoctor(data) {
|
|
36273
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Appointment\",\n \"filter\": \"Appointment.activestatus==true && Appointment.start<=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end>=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(Appointment.appstatus)=='booked' && ((DATE_TIMESTAMP(DATE_NOW()/1000)-Appointment.end)/60)>30\",\n \"return_fields\": \"merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))}))})\"\n }");
|
|
36274
|
+
},
|
|
36275
|
+
getPatientsCheckedInDoctor: function getPatientsCheckedInDoctor(data) {
|
|
36276
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Practitioner,Encounter\",\n \"filter\": {\n \"Practitioner\": \"Practitioner.activestatus==true && Practitioner.id==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && DOCUMENT(Practitioner.practitioner_role[*])[*].OrgID ANY =='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'\",\n \"Encounter\": \"Encounter.activestatus == true && Encounter.Organization_id == '").concat(data === null || data === void 0 ? void 0 : data.orgID, "' && Encounter.participant[*].Practitioner_id any == Practitioner.id && Encounter.encounterdate>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Encounter.encounterdate<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(document(Encounter.status).display)=='checked-in'\"\n },\n \"return_fields\": \"merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))})\"\n }");
|
|
36277
|
+
},
|
|
36278
|
+
getVisitCompletedDoctor: function getVisitCompletedDoctor(data) {
|
|
36279
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Practitioner,Encounter\",\n \"filter\": {\n \"Practitioner\": \"Practitioner.activestatus==true && Practitioner.id==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && DOCUMENT(Practitioner.practitioner_role[*])[*].OrgID ANY =='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'\",\n \"Encounter\": \"Encounter.activestatus == true && Encounter.Organization_id == '").concat(data === null || data === void 0 ? void 0 : data.orgID, "' && Encounter.participant[*].Practitioner_id any == Practitioner.id && Encounter.encounterdate>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Encounter.encounterdate<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(document(Encounter.status).display)=='finished'\"\n },\n \"return_fields\": \"merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))})\"\n }");
|
|
36280
|
+
},
|
|
36281
|
+
getTriageDoneDoctor: function getTriageDoneDoctor(data) {
|
|
36282
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Practitioner,Encounter\",\n \"filter\": {\n \"Practitioner\": \"Practitioner.activestatus==true && Practitioner.id==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && DOCUMENT(Practitioner.practitioner_role[*])[*].OrgID ANY =='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'\",\n \"Encounter\": \"Encounter.activestatus == true && Encounter.Organization_id == '").concat(data === null || data === void 0 ? void 0 : data.orgID, "' && Encounter.participant[*].Practitioner_id any == Practitioner.id && Encounter.encounterdate>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Encounter.encounterdate<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(document(Encounter.status).display)=='triaged'\"\n },\n \"return_fields\": \"merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))})\"\n }");
|
|
35512
36283
|
}
|
|
35513
36284
|
};
|
|
35514
36285
|
|
|
35515
36286
|
var _extraReducers$z;
|
|
36287
|
+
|
|
35516
36288
|
var GET_PATIENTS_CHECKED_IN = createAsyncThunk("currentVisitStatsApiSlice/getPatientsCheckedIn", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
35517
36289
|
var payload,
|
|
35518
36290
|
_ref2,
|
|
@@ -35748,14 +36520,523 @@ var GET_PATIENTS_NO_SHOWS = createAsyncThunk("currentVisitStatsApiSlice/getPatie
|
|
|
35748
36520
|
}
|
|
35749
36521
|
}
|
|
35750
36522
|
}, _callee4, null, [[2, 10]]);
|
|
36523
|
+
}))); //NURSE
|
|
36524
|
+
|
|
36525
|
+
var GET_PATIENTS_CHECKED_IN_NURSE = createAsyncThunk("currentVisitStatsApiSlice/getPatientsCheckedInNurse", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
36526
|
+
var payload,
|
|
36527
|
+
_ref10,
|
|
36528
|
+
rejectWithValue,
|
|
36529
|
+
_data$result5,
|
|
36530
|
+
data,
|
|
36531
|
+
returnedData,
|
|
36532
|
+
_args5 = arguments;
|
|
36533
|
+
|
|
36534
|
+
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
36535
|
+
while (1) {
|
|
36536
|
+
switch (_context5.prev = _context5.next) {
|
|
36537
|
+
case 0:
|
|
36538
|
+
payload = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
|
|
36539
|
+
_ref10 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref10.rejectWithValue;
|
|
36540
|
+
_context5.prev = 2;
|
|
36541
|
+
_context5.next = 5;
|
|
36542
|
+
return fetchData$1({
|
|
36543
|
+
body: query$1.getPatientsCheckedInNurse(payload)
|
|
36544
|
+
}, __readDocumentUrl__);
|
|
36545
|
+
|
|
36546
|
+
case 5:
|
|
36547
|
+
data = _context5.sent;
|
|
36548
|
+
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result5 = data.result) === null || _data$result5 === void 0 ? void 0 : _data$result5.map(function (_) {
|
|
36549
|
+
var _$PersonID, _$PersonID$, _$PersonID$$name, _$PersonID$$name$, _$PersonID2, _$PersonID2$, _$type5, _$type5$, _$practitioner_detail10, _$practitioner_detail11;
|
|
36550
|
+
|
|
36551
|
+
return {
|
|
36552
|
+
"img": 'https://www.fillmurray.com/640/360',
|
|
36553
|
+
"name": _ === null || _ === void 0 ? void 0 : (_$PersonID = _.PersonID) === null || _$PersonID === void 0 ? void 0 : (_$PersonID$ = _$PersonID[0]) === null || _$PersonID$ === void 0 ? void 0 : (_$PersonID$$name = _$PersonID$.name) === null || _$PersonID$$name === void 0 ? void 0 : (_$PersonID$$name$ = _$PersonID$$name[0]) === null || _$PersonID$$name$ === void 0 ? void 0 : _$PersonID$$name$.given,
|
|
36554
|
+
"mrn": 'MRN',
|
|
36555
|
+
"age": 'Age',
|
|
36556
|
+
"gender": _ === null || _ === void 0 ? void 0 : (_$PersonID2 = _.PersonID) === null || _$PersonID2 === void 0 ? void 0 : (_$PersonID2$ = _$PersonID2[0]) === null || _$PersonID2$ === void 0 ? void 0 : _$PersonID2$.gender,
|
|
36557
|
+
"contact": 'Contact',
|
|
36558
|
+
"refNo": 'Ref No',
|
|
36559
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('DD MMM,YYYY') : '',
|
|
36560
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('hh:mm A') : '',
|
|
36561
|
+
"visittype": _ === null || _ === void 0 ? void 0 : (_$type5 = _.type) === null || _$type5 === void 0 ? void 0 : (_$type5$ = _$type5[0]) === null || _$type5$ === void 0 ? void 0 : _$type5$.display,
|
|
36562
|
+
"speciality": _ === null || _ === void 0 ? void 0 : (_$practitioner_detail10 = _.practitioner_details) === null || _$practitioner_detail10 === void 0 ? void 0 : (_$practitioner_detail11 = _$practitioner_detail10[0]) === null || _$practitioner_detail11 === void 0 ? void 0 : _$practitioner_detail11.speciality,
|
|
36563
|
+
"clinic": 'Clinic',
|
|
36564
|
+
"encounterStatus": 'Pending',
|
|
36565
|
+
"View Patient": true,
|
|
36566
|
+
"Attend": true
|
|
36567
|
+
};
|
|
36568
|
+
}) : [];
|
|
36569
|
+
return _context5.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
36570
|
+
data: returnedData
|
|
36571
|
+
}));
|
|
36572
|
+
|
|
36573
|
+
case 10:
|
|
36574
|
+
_context5.prev = 10;
|
|
36575
|
+
_context5.t0 = _context5["catch"](2);
|
|
36576
|
+
return _context5.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
36577
|
+
message: _context5.t0.message
|
|
36578
|
+
})));
|
|
36579
|
+
|
|
36580
|
+
case 13:
|
|
36581
|
+
case "end":
|
|
36582
|
+
return _context5.stop();
|
|
36583
|
+
}
|
|
36584
|
+
}
|
|
36585
|
+
}, _callee5, null, [[2, 10]]);
|
|
36586
|
+
})));
|
|
36587
|
+
var GET_VISIT_COMPLETED_NURSE = createAsyncThunk("currentVisitStatsApiSlice/getVisitCompletedNurse", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
36588
|
+
var payload,
|
|
36589
|
+
_ref12,
|
|
36590
|
+
rejectWithValue,
|
|
36591
|
+
_data$result6,
|
|
36592
|
+
data,
|
|
36593
|
+
returnedData,
|
|
36594
|
+
_args6 = arguments;
|
|
36595
|
+
|
|
36596
|
+
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
36597
|
+
while (1) {
|
|
36598
|
+
switch (_context6.prev = _context6.next) {
|
|
36599
|
+
case 0:
|
|
36600
|
+
payload = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
36601
|
+
_ref12 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref12.rejectWithValue;
|
|
36602
|
+
_context6.prev = 2;
|
|
36603
|
+
_context6.next = 5;
|
|
36604
|
+
return fetchData$1({
|
|
36605
|
+
body: query$1.getVisitCompletedNurse(payload)
|
|
36606
|
+
}, __readDocumentUrl__);
|
|
36607
|
+
|
|
36608
|
+
case 5:
|
|
36609
|
+
data = _context6.sent;
|
|
36610
|
+
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result6 = data.result) === null || _data$result6 === void 0 ? void 0 : _data$result6.map(function (_) {
|
|
36611
|
+
var _$PersonID3, _$PersonID3$, _$PersonID3$$name, _$PersonID3$$name$, _$PersonID4, _$PersonID4$, _$type6, _$type6$, _$practitioner_detail12, _$practitioner_detail13;
|
|
36612
|
+
|
|
36613
|
+
return {
|
|
36614
|
+
"img": 'https://www.fillmurray.com/640/360',
|
|
36615
|
+
"name": _ === null || _ === void 0 ? void 0 : (_$PersonID3 = _.PersonID) === null || _$PersonID3 === void 0 ? void 0 : (_$PersonID3$ = _$PersonID3[0]) === null || _$PersonID3$ === void 0 ? void 0 : (_$PersonID3$$name = _$PersonID3$.name) === null || _$PersonID3$$name === void 0 ? void 0 : (_$PersonID3$$name$ = _$PersonID3$$name[0]) === null || _$PersonID3$$name$ === void 0 ? void 0 : _$PersonID3$$name$.given,
|
|
36616
|
+
"mrn": 'MRN',
|
|
36617
|
+
"age": 'Age',
|
|
36618
|
+
"gender": _ === null || _ === void 0 ? void 0 : (_$PersonID4 = _.PersonID) === null || _$PersonID4 === void 0 ? void 0 : (_$PersonID4$ = _$PersonID4[0]) === null || _$PersonID4$ === void 0 ? void 0 : _$PersonID4$.gender,
|
|
36619
|
+
"contact": 'Contact',
|
|
36620
|
+
"refNo": 'Ref No',
|
|
36621
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('DD MMM,YYYY') : '',
|
|
36622
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('hh:mm A') : '',
|
|
36623
|
+
"visittype": _ === null || _ === void 0 ? void 0 : (_$type6 = _.type) === null || _$type6 === void 0 ? void 0 : (_$type6$ = _$type6[0]) === null || _$type6$ === void 0 ? void 0 : _$type6$.display,
|
|
36624
|
+
"speciality": _ === null || _ === void 0 ? void 0 : (_$practitioner_detail12 = _.practitioner_details) === null || _$practitioner_detail12 === void 0 ? void 0 : (_$practitioner_detail13 = _$practitioner_detail12[0]) === null || _$practitioner_detail13 === void 0 ? void 0 : _$practitioner_detail13.speciality,
|
|
36625
|
+
"clinic": 'Clinic',
|
|
36626
|
+
"encounterStatus": 'Pending',
|
|
36627
|
+
"View Patient": true,
|
|
36628
|
+
"Attend": true
|
|
36629
|
+
};
|
|
36630
|
+
}) : [];
|
|
36631
|
+
return _context6.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
36632
|
+
data: returnedData
|
|
36633
|
+
}));
|
|
36634
|
+
|
|
36635
|
+
case 10:
|
|
36636
|
+
_context6.prev = 10;
|
|
36637
|
+
_context6.t0 = _context6["catch"](2);
|
|
36638
|
+
return _context6.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
36639
|
+
message: _context6.t0.message
|
|
36640
|
+
})));
|
|
36641
|
+
|
|
36642
|
+
case 13:
|
|
36643
|
+
case "end":
|
|
36644
|
+
return _context6.stop();
|
|
36645
|
+
}
|
|
36646
|
+
}
|
|
36647
|
+
}, _callee6, null, [[2, 10]]);
|
|
36648
|
+
})));
|
|
36649
|
+
var GET_PATIENTS_NO_SHOWS_NURSE = createAsyncThunk("currentVisitStatsApiSlice/getPatientsNoShowsNurse", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
|
|
36650
|
+
var payload,
|
|
36651
|
+
_ref14,
|
|
36652
|
+
rejectWithValue,
|
|
36653
|
+
_data$result7,
|
|
36654
|
+
data,
|
|
36655
|
+
returnedData,
|
|
36656
|
+
_args7 = arguments;
|
|
36657
|
+
|
|
36658
|
+
return regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
36659
|
+
while (1) {
|
|
36660
|
+
switch (_context7.prev = _context7.next) {
|
|
36661
|
+
case 0:
|
|
36662
|
+
payload = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
36663
|
+
_ref14 = _args7.length > 1 ? _args7[1] : undefined, rejectWithValue = _ref14.rejectWithValue;
|
|
36664
|
+
_context7.prev = 2;
|
|
36665
|
+
_context7.next = 5;
|
|
36666
|
+
return fetchData$1({
|
|
36667
|
+
body: query$1.getPatientsNoShowsNurse(payload)
|
|
36668
|
+
}, __readDocumentUrl__);
|
|
36669
|
+
|
|
36670
|
+
case 5:
|
|
36671
|
+
data = _context7.sent;
|
|
36672
|
+
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result7 = data.result) === null || _data$result7 === void 0 ? void 0 : _data$result7.map(function (_) {
|
|
36673
|
+
var _$PersonID5, _$PersonID5$, _$PersonID5$$name, _$PersonID5$$name$, _$PersonID6, _$PersonID6$, _$type7, _$type7$, _$practitioner_detail14, _$practitioner_detail15;
|
|
36674
|
+
|
|
36675
|
+
return {
|
|
36676
|
+
"img": 'https://www.fillmurray.com/640/360',
|
|
36677
|
+
"name": _ === null || _ === void 0 ? void 0 : (_$PersonID5 = _.PersonID) === null || _$PersonID5 === void 0 ? void 0 : (_$PersonID5$ = _$PersonID5[0]) === null || _$PersonID5$ === void 0 ? void 0 : (_$PersonID5$$name = _$PersonID5$.name) === null || _$PersonID5$$name === void 0 ? void 0 : (_$PersonID5$$name$ = _$PersonID5$$name[0]) === null || _$PersonID5$$name$ === void 0 ? void 0 : _$PersonID5$$name$.given,
|
|
36678
|
+
"mrn": 'MRN',
|
|
36679
|
+
"age": 'Age',
|
|
36680
|
+
"gender": _ === null || _ === void 0 ? void 0 : (_$PersonID6 = _.PersonID) === null || _$PersonID6 === void 0 ? void 0 : (_$PersonID6$ = _$PersonID6[0]) === null || _$PersonID6$ === void 0 ? void 0 : _$PersonID6$.gender,
|
|
36681
|
+
"contact": 'Contact',
|
|
36682
|
+
"refNo": 'Ref No',
|
|
36683
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('DD MMM,YYYY') : '',
|
|
36684
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('hh:mm A') : '',
|
|
36685
|
+
"visittype": _ === null || _ === void 0 ? void 0 : (_$type7 = _.type) === null || _$type7 === void 0 ? void 0 : (_$type7$ = _$type7[0]) === null || _$type7$ === void 0 ? void 0 : _$type7$.display,
|
|
36686
|
+
"speciality": _ === null || _ === void 0 ? void 0 : (_$practitioner_detail14 = _.practitioner_details) === null || _$practitioner_detail14 === void 0 ? void 0 : (_$practitioner_detail15 = _$practitioner_detail14[0]) === null || _$practitioner_detail15 === void 0 ? void 0 : _$practitioner_detail15.speciality,
|
|
36687
|
+
"clinic": 'Clinic',
|
|
36688
|
+
"encounterStatus": 'Pending',
|
|
36689
|
+
"View Patient": true,
|
|
36690
|
+
"Attend": true
|
|
36691
|
+
};
|
|
36692
|
+
}) : [];
|
|
36693
|
+
return _context7.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
36694
|
+
data: returnedData
|
|
36695
|
+
}));
|
|
36696
|
+
|
|
36697
|
+
case 10:
|
|
36698
|
+
_context7.prev = 10;
|
|
36699
|
+
_context7.t0 = _context7["catch"](2);
|
|
36700
|
+
return _context7.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
36701
|
+
message: _context7.t0.message
|
|
36702
|
+
})));
|
|
36703
|
+
|
|
36704
|
+
case 13:
|
|
36705
|
+
case "end":
|
|
36706
|
+
return _context7.stop();
|
|
36707
|
+
}
|
|
36708
|
+
}
|
|
36709
|
+
}, _callee7, null, [[2, 10]]);
|
|
36710
|
+
})));
|
|
36711
|
+
var GET_TRAIGE_DONE_NURSE = createAsyncThunk("currentVisitStatsApiSlice/getTriageDoneNurse", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
|
|
36712
|
+
var payload,
|
|
36713
|
+
_ref16,
|
|
36714
|
+
rejectWithValue,
|
|
36715
|
+
_data$result8,
|
|
36716
|
+
data,
|
|
36717
|
+
returnedData,
|
|
36718
|
+
_args8 = arguments;
|
|
36719
|
+
|
|
36720
|
+
return regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
36721
|
+
while (1) {
|
|
36722
|
+
switch (_context8.prev = _context8.next) {
|
|
36723
|
+
case 0:
|
|
36724
|
+
payload = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
36725
|
+
_ref16 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref16.rejectWithValue;
|
|
36726
|
+
_context8.prev = 2;
|
|
36727
|
+
_context8.next = 5;
|
|
36728
|
+
return fetchData$1({
|
|
36729
|
+
body: query$1.getTriageDoneNurse(payload)
|
|
36730
|
+
}, __readDocumentUrl__);
|
|
36731
|
+
|
|
36732
|
+
case 5:
|
|
36733
|
+
data = _context8.sent;
|
|
36734
|
+
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result8 = data.result) === null || _data$result8 === void 0 ? void 0 : _data$result8.map(function (_) {
|
|
36735
|
+
var _$PersonID7, _$PersonID7$, _$PersonID7$$name, _$PersonID7$$name$, _$PersonID8, _$PersonID8$, _$type8, _$type8$, _$practitioner_detail16, _$practitioner_detail17;
|
|
36736
|
+
|
|
36737
|
+
return {
|
|
36738
|
+
"img": 'https://www.fillmurray.com/640/360',
|
|
36739
|
+
"name": _ === null || _ === void 0 ? void 0 : (_$PersonID7 = _.PersonID) === null || _$PersonID7 === void 0 ? void 0 : (_$PersonID7$ = _$PersonID7[0]) === null || _$PersonID7$ === void 0 ? void 0 : (_$PersonID7$$name = _$PersonID7$.name) === null || _$PersonID7$$name === void 0 ? void 0 : (_$PersonID7$$name$ = _$PersonID7$$name[0]) === null || _$PersonID7$$name$ === void 0 ? void 0 : _$PersonID7$$name$.given,
|
|
36740
|
+
"mrn": 'MRN',
|
|
36741
|
+
"age": 'Age',
|
|
36742
|
+
"gender": _ === null || _ === void 0 ? void 0 : (_$PersonID8 = _.PersonID) === null || _$PersonID8 === void 0 ? void 0 : (_$PersonID8$ = _$PersonID8[0]) === null || _$PersonID8$ === void 0 ? void 0 : _$PersonID8$.gender,
|
|
36743
|
+
"contact": 'Contact',
|
|
36744
|
+
"refNo": 'Ref No',
|
|
36745
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('DD MMM,YYYY') : '',
|
|
36746
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('hh:mm A') : '',
|
|
36747
|
+
"visittype": _ === null || _ === void 0 ? void 0 : (_$type8 = _.type) === null || _$type8 === void 0 ? void 0 : (_$type8$ = _$type8[0]) === null || _$type8$ === void 0 ? void 0 : _$type8$.display,
|
|
36748
|
+
"speciality": _ === null || _ === void 0 ? void 0 : (_$practitioner_detail16 = _.practitioner_details) === null || _$practitioner_detail16 === void 0 ? void 0 : (_$practitioner_detail17 = _$practitioner_detail16[0]) === null || _$practitioner_detail17 === void 0 ? void 0 : _$practitioner_detail17.speciality,
|
|
36749
|
+
"clinic": 'Clinic',
|
|
36750
|
+
"encounterStatus": 'Pending',
|
|
36751
|
+
"View Patient": true,
|
|
36752
|
+
"Attend": true
|
|
36753
|
+
};
|
|
36754
|
+
}) : [];
|
|
36755
|
+
return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
36756
|
+
data: returnedData
|
|
36757
|
+
}));
|
|
36758
|
+
|
|
36759
|
+
case 10:
|
|
36760
|
+
_context8.prev = 10;
|
|
36761
|
+
_context8.t0 = _context8["catch"](2);
|
|
36762
|
+
return _context8.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
36763
|
+
message: _context8.t0.message
|
|
36764
|
+
})));
|
|
36765
|
+
|
|
36766
|
+
case 13:
|
|
36767
|
+
case "end":
|
|
36768
|
+
return _context8.stop();
|
|
36769
|
+
}
|
|
36770
|
+
}
|
|
36771
|
+
}, _callee8, null, [[2, 10]]);
|
|
36772
|
+
}))); //DOCTOR
|
|
36773
|
+
|
|
36774
|
+
var GET_PATIENTS_NO_SHOWS_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/getPatientsNoShowsDoctor", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
|
|
36775
|
+
var payload,
|
|
36776
|
+
_ref18,
|
|
36777
|
+
rejectWithValue,
|
|
36778
|
+
_data$result9,
|
|
36779
|
+
data,
|
|
36780
|
+
returnedData,
|
|
36781
|
+
_args9 = arguments;
|
|
36782
|
+
|
|
36783
|
+
return regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
36784
|
+
while (1) {
|
|
36785
|
+
switch (_context9.prev = _context9.next) {
|
|
36786
|
+
case 0:
|
|
36787
|
+
payload = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
|
|
36788
|
+
_ref18 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref18.rejectWithValue;
|
|
36789
|
+
_context9.prev = 2;
|
|
36790
|
+
_context9.next = 5;
|
|
36791
|
+
return fetchData$1({
|
|
36792
|
+
body: query$1.getPatientsNoShowsDoctor(payload)
|
|
36793
|
+
}, __readDocumentUrl__);
|
|
36794
|
+
|
|
36795
|
+
case 5:
|
|
36796
|
+
data = _context9.sent;
|
|
36797
|
+
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result9 = data.result) === null || _data$result9 === void 0 ? void 0 : _data$result9.map(function (_) {
|
|
36798
|
+
var _$PersonID9, _$PersonID9$, _$PersonID9$$name, _$PersonID9$$name$, _$PersonID10, _$PersonID10$, _$type9, _$type9$, _$practitioner_detail18, _$practitioner_detail19;
|
|
36799
|
+
|
|
36800
|
+
return {
|
|
36801
|
+
"img": 'https://www.fillmurray.com/640/360',
|
|
36802
|
+
"name": _ === null || _ === void 0 ? void 0 : (_$PersonID9 = _.PersonID) === null || _$PersonID9 === void 0 ? void 0 : (_$PersonID9$ = _$PersonID9[0]) === null || _$PersonID9$ === void 0 ? void 0 : (_$PersonID9$$name = _$PersonID9$.name) === null || _$PersonID9$$name === void 0 ? void 0 : (_$PersonID9$$name$ = _$PersonID9$$name[0]) === null || _$PersonID9$$name$ === void 0 ? void 0 : _$PersonID9$$name$.given,
|
|
36803
|
+
"mrn": 'MRN',
|
|
36804
|
+
"age": 'Age',
|
|
36805
|
+
"gender": _ === null || _ === void 0 ? void 0 : (_$PersonID10 = _.PersonID) === null || _$PersonID10 === void 0 ? void 0 : (_$PersonID10$ = _$PersonID10[0]) === null || _$PersonID10$ === void 0 ? void 0 : _$PersonID10$.gender,
|
|
36806
|
+
"contact": 'Contact',
|
|
36807
|
+
"refNo": 'Ref No',
|
|
36808
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('DD MMM,YYYY') : '',
|
|
36809
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('hh:mm A') : '',
|
|
36810
|
+
"visittype": _ === null || _ === void 0 ? void 0 : (_$type9 = _.type) === null || _$type9 === void 0 ? void 0 : (_$type9$ = _$type9[0]) === null || _$type9$ === void 0 ? void 0 : _$type9$.display,
|
|
36811
|
+
"speciality": _ === null || _ === void 0 ? void 0 : (_$practitioner_detail18 = _.practitioner_details) === null || _$practitioner_detail18 === void 0 ? void 0 : (_$practitioner_detail19 = _$practitioner_detail18[0]) === null || _$practitioner_detail19 === void 0 ? void 0 : _$practitioner_detail19.speciality,
|
|
36812
|
+
"clinic": 'Clinic',
|
|
36813
|
+
"encounterStatus": 'Pending',
|
|
36814
|
+
"View Patient": true,
|
|
36815
|
+
"Attend": true
|
|
36816
|
+
};
|
|
36817
|
+
}) : [];
|
|
36818
|
+
return _context9.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
36819
|
+
data: returnedData
|
|
36820
|
+
}));
|
|
36821
|
+
|
|
36822
|
+
case 10:
|
|
36823
|
+
_context9.prev = 10;
|
|
36824
|
+
_context9.t0 = _context9["catch"](2);
|
|
36825
|
+
return _context9.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
36826
|
+
message: _context9.t0.message
|
|
36827
|
+
})));
|
|
36828
|
+
|
|
36829
|
+
case 13:
|
|
36830
|
+
case "end":
|
|
36831
|
+
return _context9.stop();
|
|
36832
|
+
}
|
|
36833
|
+
}
|
|
36834
|
+
}, _callee9, null, [[2, 10]]);
|
|
36835
|
+
})));
|
|
36836
|
+
var GET_PATIENTS_CHECKED_IN_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/getPatientsCheckedInDoctor", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
|
|
36837
|
+
var payload,
|
|
36838
|
+
_ref20,
|
|
36839
|
+
rejectWithValue,
|
|
36840
|
+
_data$result10,
|
|
36841
|
+
data,
|
|
36842
|
+
returnedData,
|
|
36843
|
+
_args10 = arguments;
|
|
36844
|
+
|
|
36845
|
+
return regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
36846
|
+
while (1) {
|
|
36847
|
+
switch (_context10.prev = _context10.next) {
|
|
36848
|
+
case 0:
|
|
36849
|
+
payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
|
|
36850
|
+
_ref20 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref20.rejectWithValue;
|
|
36851
|
+
_context10.prev = 2;
|
|
36852
|
+
_context10.next = 5;
|
|
36853
|
+
return fetchData$1({
|
|
36854
|
+
body: query$1.getPatientsCheckedInDoctor(payload)
|
|
36855
|
+
}, __readDocumentUrl__);
|
|
36856
|
+
|
|
36857
|
+
case 5:
|
|
36858
|
+
data = _context10.sent;
|
|
36859
|
+
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result10 = data.result) === null || _data$result10 === void 0 ? void 0 : _data$result10.map(function (_) {
|
|
36860
|
+
var _$PersonID11, _$PersonID11$, _$PersonID11$$name, _$PersonID11$$name$, _$PersonID12, _$PersonID12$, _$type10, _$type10$, _$practitioner_detail20, _$practitioner_detail21;
|
|
36861
|
+
|
|
36862
|
+
return {
|
|
36863
|
+
"img": 'https://www.fillmurray.com/640/360',
|
|
36864
|
+
"name": _ === null || _ === void 0 ? void 0 : (_$PersonID11 = _.PersonID) === null || _$PersonID11 === void 0 ? void 0 : (_$PersonID11$ = _$PersonID11[0]) === null || _$PersonID11$ === void 0 ? void 0 : (_$PersonID11$$name = _$PersonID11$.name) === null || _$PersonID11$$name === void 0 ? void 0 : (_$PersonID11$$name$ = _$PersonID11$$name[0]) === null || _$PersonID11$$name$ === void 0 ? void 0 : _$PersonID11$$name$.given,
|
|
36865
|
+
"mrn": 'MRN',
|
|
36866
|
+
"age": 'Age',
|
|
36867
|
+
"gender": _ === null || _ === void 0 ? void 0 : (_$PersonID12 = _.PersonID) === null || _$PersonID12 === void 0 ? void 0 : (_$PersonID12$ = _$PersonID12[0]) === null || _$PersonID12$ === void 0 ? void 0 : _$PersonID12$.gender,
|
|
36868
|
+
"contact": 'Contact',
|
|
36869
|
+
"refNo": 'Ref No',
|
|
36870
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('DD MMM,YYYY') : '',
|
|
36871
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('hh:mm A') : '',
|
|
36872
|
+
"visittype": _ === null || _ === void 0 ? void 0 : (_$type10 = _.type) === null || _$type10 === void 0 ? void 0 : (_$type10$ = _$type10[0]) === null || _$type10$ === void 0 ? void 0 : _$type10$.display,
|
|
36873
|
+
"speciality": _ === null || _ === void 0 ? void 0 : (_$practitioner_detail20 = _.practitioner_details) === null || _$practitioner_detail20 === void 0 ? void 0 : (_$practitioner_detail21 = _$practitioner_detail20[0]) === null || _$practitioner_detail21 === void 0 ? void 0 : _$practitioner_detail21.speciality,
|
|
36874
|
+
"clinic": 'Clinic',
|
|
36875
|
+
"encounterStatus": 'Pending',
|
|
36876
|
+
"View Patient": true,
|
|
36877
|
+
"Attend": true
|
|
36878
|
+
};
|
|
36879
|
+
}) : [];
|
|
36880
|
+
return _context10.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
36881
|
+
data: returnedData
|
|
36882
|
+
}));
|
|
36883
|
+
|
|
36884
|
+
case 10:
|
|
36885
|
+
_context10.prev = 10;
|
|
36886
|
+
_context10.t0 = _context10["catch"](2);
|
|
36887
|
+
return _context10.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
36888
|
+
message: _context10.t0.message
|
|
36889
|
+
})));
|
|
36890
|
+
|
|
36891
|
+
case 13:
|
|
36892
|
+
case "end":
|
|
36893
|
+
return _context10.stop();
|
|
36894
|
+
}
|
|
36895
|
+
}
|
|
36896
|
+
}, _callee10, null, [[2, 10]]);
|
|
36897
|
+
})));
|
|
36898
|
+
var GET_VISIT_COMPLETED_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/getVisitCompletedDoctor", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {
|
|
36899
|
+
var payload,
|
|
36900
|
+
_ref22,
|
|
36901
|
+
rejectWithValue,
|
|
36902
|
+
_data$result11,
|
|
36903
|
+
data,
|
|
36904
|
+
returnedData,
|
|
36905
|
+
_args11 = arguments;
|
|
36906
|
+
|
|
36907
|
+
return regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
36908
|
+
while (1) {
|
|
36909
|
+
switch (_context11.prev = _context11.next) {
|
|
36910
|
+
case 0:
|
|
36911
|
+
payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
|
|
36912
|
+
_ref22 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref22.rejectWithValue;
|
|
36913
|
+
_context11.prev = 2;
|
|
36914
|
+
_context11.next = 5;
|
|
36915
|
+
return fetchData$1({
|
|
36916
|
+
body: query$1.getVisitCompletedDoctor(payload)
|
|
36917
|
+
}, __readDocumentUrl__);
|
|
36918
|
+
|
|
36919
|
+
case 5:
|
|
36920
|
+
data = _context11.sent;
|
|
36921
|
+
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result11 = data.result) === null || _data$result11 === void 0 ? void 0 : _data$result11.map(function (_) {
|
|
36922
|
+
var _$PersonID13, _$PersonID13$, _$PersonID13$$name, _$PersonID13$$name$, _$PersonID14, _$PersonID14$, _$type11, _$type11$, _$practitioner_detail22, _$practitioner_detail23;
|
|
36923
|
+
|
|
36924
|
+
return {
|
|
36925
|
+
"img": 'https://www.fillmurray.com/640/360',
|
|
36926
|
+
"name": _ === null || _ === void 0 ? void 0 : (_$PersonID13 = _.PersonID) === null || _$PersonID13 === void 0 ? void 0 : (_$PersonID13$ = _$PersonID13[0]) === null || _$PersonID13$ === void 0 ? void 0 : (_$PersonID13$$name = _$PersonID13$.name) === null || _$PersonID13$$name === void 0 ? void 0 : (_$PersonID13$$name$ = _$PersonID13$$name[0]) === null || _$PersonID13$$name$ === void 0 ? void 0 : _$PersonID13$$name$.given,
|
|
36927
|
+
"mrn": 'MRN',
|
|
36928
|
+
"age": 'Age',
|
|
36929
|
+
"gender": _ === null || _ === void 0 ? void 0 : (_$PersonID14 = _.PersonID) === null || _$PersonID14 === void 0 ? void 0 : (_$PersonID14$ = _$PersonID14[0]) === null || _$PersonID14$ === void 0 ? void 0 : _$PersonID14$.gender,
|
|
36930
|
+
"contact": 'Contact',
|
|
36931
|
+
"refNo": 'Ref No',
|
|
36932
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('DD MMM,YYYY') : '',
|
|
36933
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('hh:mm A') : '',
|
|
36934
|
+
"visittype": _ === null || _ === void 0 ? void 0 : (_$type11 = _.type) === null || _$type11 === void 0 ? void 0 : (_$type11$ = _$type11[0]) === null || _$type11$ === void 0 ? void 0 : _$type11$.display,
|
|
36935
|
+
"speciality": _ === null || _ === void 0 ? void 0 : (_$practitioner_detail22 = _.practitioner_details) === null || _$practitioner_detail22 === void 0 ? void 0 : (_$practitioner_detail23 = _$practitioner_detail22[0]) === null || _$practitioner_detail23 === void 0 ? void 0 : _$practitioner_detail23.speciality,
|
|
36936
|
+
"clinic": 'Clinic',
|
|
36937
|
+
"encounterStatus": 'Pending',
|
|
36938
|
+
"View Patient": true,
|
|
36939
|
+
"Attend": true
|
|
36940
|
+
};
|
|
36941
|
+
}) : [];
|
|
36942
|
+
return _context11.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
36943
|
+
data: returnedData
|
|
36944
|
+
}));
|
|
36945
|
+
|
|
36946
|
+
case 10:
|
|
36947
|
+
_context11.prev = 10;
|
|
36948
|
+
_context11.t0 = _context11["catch"](2);
|
|
36949
|
+
return _context11.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
36950
|
+
message: _context11.t0.message
|
|
36951
|
+
})));
|
|
36952
|
+
|
|
36953
|
+
case 13:
|
|
36954
|
+
case "end":
|
|
36955
|
+
return _context11.stop();
|
|
36956
|
+
}
|
|
36957
|
+
}
|
|
36958
|
+
}, _callee11, null, [[2, 10]]);
|
|
36959
|
+
})));
|
|
36960
|
+
var GET_TRAIGE_DONE_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/getTriageDoneDoctor", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {
|
|
36961
|
+
var payload,
|
|
36962
|
+
_ref24,
|
|
36963
|
+
rejectWithValue,
|
|
36964
|
+
_data$result12,
|
|
36965
|
+
data,
|
|
36966
|
+
returnedData,
|
|
36967
|
+
_args12 = arguments;
|
|
36968
|
+
|
|
36969
|
+
return regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
36970
|
+
while (1) {
|
|
36971
|
+
switch (_context12.prev = _context12.next) {
|
|
36972
|
+
case 0:
|
|
36973
|
+
payload = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : {};
|
|
36974
|
+
_ref24 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref24.rejectWithValue;
|
|
36975
|
+
_context12.prev = 2;
|
|
36976
|
+
_context12.next = 5;
|
|
36977
|
+
return fetchData$1({
|
|
36978
|
+
body: query$1.getTriageDoneDoctor(payload)
|
|
36979
|
+
}, __readDocumentUrl__);
|
|
36980
|
+
|
|
36981
|
+
case 5:
|
|
36982
|
+
data = _context12.sent;
|
|
36983
|
+
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result12 = data.result) === null || _data$result12 === void 0 ? void 0 : _data$result12.map(function (_) {
|
|
36984
|
+
var _$PersonID15, _$PersonID15$, _$PersonID15$$name, _$PersonID15$$name$, _$PersonID16, _$PersonID16$, _$type12, _$type12$, _$practitioner_detail24, _$practitioner_detail25;
|
|
36985
|
+
|
|
36986
|
+
return {
|
|
36987
|
+
"img": 'https://www.fillmurray.com/640/360',
|
|
36988
|
+
"name": _ === null || _ === void 0 ? void 0 : (_$PersonID15 = _.PersonID) === null || _$PersonID15 === void 0 ? void 0 : (_$PersonID15$ = _$PersonID15[0]) === null || _$PersonID15$ === void 0 ? void 0 : (_$PersonID15$$name = _$PersonID15$.name) === null || _$PersonID15$$name === void 0 ? void 0 : (_$PersonID15$$name$ = _$PersonID15$$name[0]) === null || _$PersonID15$$name$ === void 0 ? void 0 : _$PersonID15$$name$.given,
|
|
36989
|
+
"mrn": 'MRN',
|
|
36990
|
+
"age": 'Age',
|
|
36991
|
+
"gender": _ === null || _ === void 0 ? void 0 : (_$PersonID16 = _.PersonID) === null || _$PersonID16 === void 0 ? void 0 : (_$PersonID16$ = _$PersonID16[0]) === null || _$PersonID16$ === void 0 ? void 0 : _$PersonID16$.gender,
|
|
36992
|
+
"contact": 'Contact',
|
|
36993
|
+
"refNo": 'Ref No',
|
|
36994
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('DD MMM,YYYY') : '',
|
|
36995
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.start) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.start).format('hh:mm A') : '',
|
|
36996
|
+
"visittype": _ === null || _ === void 0 ? void 0 : (_$type12 = _.type) === null || _$type12 === void 0 ? void 0 : (_$type12$ = _$type12[0]) === null || _$type12$ === void 0 ? void 0 : _$type12$.display,
|
|
36997
|
+
"speciality": _ === null || _ === void 0 ? void 0 : (_$practitioner_detail24 = _.practitioner_details) === null || _$practitioner_detail24 === void 0 ? void 0 : (_$practitioner_detail25 = _$practitioner_detail24[0]) === null || _$practitioner_detail25 === void 0 ? void 0 : _$practitioner_detail25.speciality,
|
|
36998
|
+
"clinic": 'Clinic',
|
|
36999
|
+
"encounterStatus": 'Pending',
|
|
37000
|
+
"View Patient": true,
|
|
37001
|
+
"Attend": true
|
|
37002
|
+
};
|
|
37003
|
+
}) : [];
|
|
37004
|
+
return _context12.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
37005
|
+
data: returnedData
|
|
37006
|
+
}));
|
|
37007
|
+
|
|
37008
|
+
case 10:
|
|
37009
|
+
_context12.prev = 10;
|
|
37010
|
+
_context12.t0 = _context12["catch"](2);
|
|
37011
|
+
return _context12.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
37012
|
+
message: _context12.t0.message
|
|
37013
|
+
})));
|
|
37014
|
+
|
|
37015
|
+
case 13:
|
|
37016
|
+
case "end":
|
|
37017
|
+
return _context12.stop();
|
|
37018
|
+
}
|
|
37019
|
+
}
|
|
37020
|
+
}, _callee12, null, [[2, 10]]);
|
|
35751
37021
|
})));
|
|
35752
37022
|
var currentVisitStatsApiSlice = createSlice({
|
|
35753
37023
|
name: "currentVisitStatsApiSlice",
|
|
35754
37024
|
initialState: {
|
|
37025
|
+
//FRONTDESK
|
|
35755
37026
|
patientsCheckedIn: _objectSpread2({}, defaultState.Info),
|
|
35756
37027
|
triageDone: _objectSpread2({}, defaultState.Info),
|
|
35757
37028
|
visitCompleted: _objectSpread2({}, defaultState.Info),
|
|
35758
|
-
patientsNoShows: _objectSpread2({}, defaultState.Info)
|
|
37029
|
+
patientsNoShows: _objectSpread2({}, defaultState.Info),
|
|
37030
|
+
// NURSE
|
|
37031
|
+
patientsCheckedInNurse: _objectSpread2({}, defaultState.Info),
|
|
37032
|
+
visitCompletedNurse: _objectSpread2({}, defaultState.Info),
|
|
37033
|
+
patientsNoShowsNurse: _objectSpread2({}, defaultState.Info),
|
|
37034
|
+
triageDoneNurse: _objectSpread2({}, defaultState.Info),
|
|
37035
|
+
//DOCTOR
|
|
37036
|
+
patientsNoShowsDoctor: _objectSpread2({}, defaultState.Info),
|
|
37037
|
+
patientsCheckedInDoctor: _objectSpread2({}, defaultState.Info),
|
|
37038
|
+
visitCompletedDoctor: _objectSpread2({}, defaultState.Info),
|
|
37039
|
+
triageDoneDoctor: _objectSpread2({}, defaultState.Info)
|
|
35759
37040
|
},
|
|
35760
37041
|
extraReducers: (_extraReducers$z = {}, _defineProperty(_extraReducers$z, GET_PATIENTS_CHECKED_IN.fulfilled, function (state, action) {
|
|
35761
37042
|
var _state$patientsChecke;
|
|
@@ -35797,16 +37078,274 @@ var currentVisitStatsApiSlice = createSlice({
|
|
|
35797
37078
|
var _action$payload4;
|
|
35798
37079
|
|
|
35799
37080
|
state.patientsNoShows.loading = false, state.patientsNoShows.error = true, state.patientsNoShows = (_action$payload4 = action.payload) !== null && _action$payload4 !== void 0 ? _action$payload4 : {};
|
|
37081
|
+
}), _defineProperty(_extraReducers$z, GET_PATIENTS_CHECKED_IN_NURSE.fulfilled, function (state, action) {
|
|
37082
|
+
var _state$patientsChecke2;
|
|
37083
|
+
|
|
37084
|
+
state.patientsCheckedInNurse.loading = false, state.patientsCheckedInNurse.error = false, (_state$patientsChecke2 = state.patientsCheckedInNurse = action.payload) !== null && _state$patientsChecke2 !== void 0 ? _state$patientsChecke2 : {};
|
|
37085
|
+
}), _defineProperty(_extraReducers$z, GET_PATIENTS_CHECKED_IN_NURSE.pending, function (state, action) {
|
|
37086
|
+
state.patientsCheckedInNurse.loading = true, state.patientsCheckedInNurse.error = false, state.patientsCheckedInNurse.loading = true;
|
|
37087
|
+
}), _defineProperty(_extraReducers$z, GET_PATIENTS_CHECKED_IN_NURSE.rejected, function (state, action) {
|
|
37088
|
+
var _action$payload5;
|
|
37089
|
+
|
|
37090
|
+
state.patientsCheckedInNurse.loading = false, state.patientsCheckedInNurse.error = true, state.patientsCheckedInNurse = (_action$payload5 = action.payload) !== null && _action$payload5 !== void 0 ? _action$payload5 : {};
|
|
37091
|
+
}), _defineProperty(_extraReducers$z, GET_VISIT_COMPLETED_NURSE.fulfilled, function (state, action) {
|
|
37092
|
+
var _state$visitCompleted2;
|
|
37093
|
+
|
|
37094
|
+
state.visitCompletedNurse.loading = false, state.visitCompletedNurse.error = false, (_state$visitCompleted2 = state.visitCompletedNurse = action.payload) !== null && _state$visitCompleted2 !== void 0 ? _state$visitCompleted2 : {};
|
|
37095
|
+
}), _defineProperty(_extraReducers$z, GET_VISIT_COMPLETED_NURSE.pending, function (state, action) {
|
|
37096
|
+
state.visitCompletedNurse.loading = true, state.visitCompletedNurse.error = false, state.visitCompletedNurse.loading = true;
|
|
37097
|
+
}), _defineProperty(_extraReducers$z, GET_VISIT_COMPLETED_NURSE.rejected, function (state, action) {
|
|
37098
|
+
var _action$payload6;
|
|
37099
|
+
|
|
37100
|
+
state.visitCompletedNurse.loading = false, state.visitCompletedNurse.error = true, state.visitCompletedNurse = (_action$payload6 = action.payload) !== null && _action$payload6 !== void 0 ? _action$payload6 : {};
|
|
37101
|
+
}), _defineProperty(_extraReducers$z, GET_PATIENTS_NO_SHOWS_NURSE.fulfilled, function (state, action) {
|
|
37102
|
+
var _state$patientsNoShow2;
|
|
37103
|
+
|
|
37104
|
+
state.patientsNoShowsNurse.loading = false, state.patientsNoShowsNurse.error = false, (_state$patientsNoShow2 = state.patientsNoShowsNurse = action.payload) !== null && _state$patientsNoShow2 !== void 0 ? _state$patientsNoShow2 : {};
|
|
37105
|
+
}), _defineProperty(_extraReducers$z, GET_PATIENTS_NO_SHOWS_NURSE.pending, function (state, action) {
|
|
37106
|
+
state.patientsNoShowsNurse.loading = true, state.patientsNoShowsNurse.error = false, state.patientsNoShowsNurse.loading = true;
|
|
37107
|
+
}), _defineProperty(_extraReducers$z, GET_PATIENTS_NO_SHOWS_NURSE.rejected, function (state, action) {
|
|
37108
|
+
var _action$payload7;
|
|
37109
|
+
|
|
37110
|
+
state.patientsNoShowsNurse.loading = false, state.patientsNoShowsNurse.error = true, state.patientsNoShowsNurse = (_action$payload7 = action.payload) !== null && _action$payload7 !== void 0 ? _action$payload7 : {};
|
|
37111
|
+
}), _defineProperty(_extraReducers$z, GET_TRAIGE_DONE_NURSE.fulfilled, function (state, action) {
|
|
37112
|
+
var _state$triageDoneNurs;
|
|
37113
|
+
|
|
37114
|
+
state.triageDoneNurse.loading = false, state.triageDoneNurse.error = false, (_state$triageDoneNurs = state.triageDoneNurse = action.payload) !== null && _state$triageDoneNurs !== void 0 ? _state$triageDoneNurs : {};
|
|
37115
|
+
}), _defineProperty(_extraReducers$z, GET_TRAIGE_DONE_NURSE.pending, function (state, action) {
|
|
37116
|
+
state.triageDoneNurse.loading = true, state.triageDoneNurse.error = false, state.triageDoneNurse.loading = true;
|
|
37117
|
+
}), _defineProperty(_extraReducers$z, GET_TRAIGE_DONE_NURSE.rejected, function (state, action) {
|
|
37118
|
+
var _action$payload8;
|
|
37119
|
+
|
|
37120
|
+
state.triageDoneNurse.loading = false, state.triageDoneNurse.error = true, state.triageDoneNurse = (_action$payload8 = action.payload) !== null && _action$payload8 !== void 0 ? _action$payload8 : {};
|
|
37121
|
+
}), _defineProperty(_extraReducers$z, GET_PATIENTS_NO_SHOWS_DOCTOR.fulfilled, function (state, action) {
|
|
37122
|
+
var _state$patientsNoShow3;
|
|
37123
|
+
|
|
37124
|
+
state.patientsNoShowsDoctor.loading = false, state.patientsNoShowsDoctor.error = false, (_state$patientsNoShow3 = state.patientsNoShowsDoctor = action.payload) !== null && _state$patientsNoShow3 !== void 0 ? _state$patientsNoShow3 : {};
|
|
37125
|
+
}), _defineProperty(_extraReducers$z, GET_PATIENTS_NO_SHOWS_DOCTOR.pending, function (state, action) {
|
|
37126
|
+
state.patientsNoShowsDoctor.loading = true, state.patientsNoShowsDoctor.error = false, state.patientsNoShowsDoctor.loading = true;
|
|
37127
|
+
}), _defineProperty(_extraReducers$z, GET_PATIENTS_NO_SHOWS_DOCTOR.rejected, function (state, action) {
|
|
37128
|
+
var _action$payload9;
|
|
37129
|
+
|
|
37130
|
+
state.patientsNoShowsDoctor.loading = false, state.patientsNoShowsDoctor.error = true, state.patientsNoShowsDoctor = (_action$payload9 = action.payload) !== null && _action$payload9 !== void 0 ? _action$payload9 : {};
|
|
37131
|
+
}), _defineProperty(_extraReducers$z, GET_PATIENTS_CHECKED_IN_DOCTOR.fulfilled, function (state, action) {
|
|
37132
|
+
var _state$patientsChecke3;
|
|
37133
|
+
|
|
37134
|
+
state.patientsCheckedInDoctor.loading = false, state.patientsCheckedInDoctor.error = false, (_state$patientsChecke3 = state.patientsCheckedInDoctor = action.payload) !== null && _state$patientsChecke3 !== void 0 ? _state$patientsChecke3 : {};
|
|
37135
|
+
}), _defineProperty(_extraReducers$z, GET_PATIENTS_CHECKED_IN_DOCTOR.pending, function (state, action) {
|
|
37136
|
+
state.patientsCheckedInDoctor.loading = true, state.patientsCheckedInDoctor.error = false, state.patientsCheckedInDoctor.loading = true;
|
|
37137
|
+
}), _defineProperty(_extraReducers$z, GET_PATIENTS_CHECKED_IN_DOCTOR.rejected, function (state, action) {
|
|
37138
|
+
var _action$payload10;
|
|
37139
|
+
|
|
37140
|
+
state.patientsCheckedInDoctor.loading = false, state.patientsCheckedInDoctor.error = true, state.patientsCheckedInDoctor = (_action$payload10 = action.payload) !== null && _action$payload10 !== void 0 ? _action$payload10 : {};
|
|
37141
|
+
}), _defineProperty(_extraReducers$z, GET_VISIT_COMPLETED_DOCTOR.fulfilled, function (state, action) {
|
|
37142
|
+
var _state$visitCompleted3;
|
|
37143
|
+
|
|
37144
|
+
state.visitCompletedDoctor.loading = false, state.visitCompletedDoctor.error = false, (_state$visitCompleted3 = state.visitCompletedDoctor = action.payload) !== null && _state$visitCompleted3 !== void 0 ? _state$visitCompleted3 : {};
|
|
37145
|
+
}), _defineProperty(_extraReducers$z, GET_VISIT_COMPLETED_DOCTOR.pending, function (state, action) {
|
|
37146
|
+
state.visitCompletedDoctor.loading = true, state.visitCompletedDoctor.error = false, state.visitCompletedDoctor.loading = true;
|
|
37147
|
+
}), _defineProperty(_extraReducers$z, GET_VISIT_COMPLETED_DOCTOR.rejected, function (state, action) {
|
|
37148
|
+
var _action$payload11;
|
|
37149
|
+
|
|
37150
|
+
state.visitCompletedDoctor.loading = false, state.visitCompletedDoctor.error = true, state.visitCompletedDoctor = (_action$payload11 = action.payload) !== null && _action$payload11 !== void 0 ? _action$payload11 : {};
|
|
37151
|
+
}), _defineProperty(_extraReducers$z, GET_TRAIGE_DONE_DOCTOR.fulfilled, function (state, action) {
|
|
37152
|
+
var _state$triageDoneDoct;
|
|
37153
|
+
|
|
37154
|
+
state.triageDoneDoctor.loading = false, state.triageDoneDoctor.error = false, (_state$triageDoneDoct = state.triageDoneDoctor = action.payload) !== null && _state$triageDoneDoct !== void 0 ? _state$triageDoneDoct : {};
|
|
37155
|
+
}), _defineProperty(_extraReducers$z, GET_TRAIGE_DONE_DOCTOR.pending, function (state, action) {
|
|
37156
|
+
state.triageDoneDoctor.loading = true, state.triageDoneDoctor.error = false, state.triageDoneDoctor.loading = true;
|
|
37157
|
+
}), _defineProperty(_extraReducers$z, GET_TRAIGE_DONE_DOCTOR.rejected, function (state, action) {
|
|
37158
|
+
var _action$payload12;
|
|
37159
|
+
|
|
37160
|
+
state.triageDoneDoctor.loading = false, state.triageDoneDoctor.error = true, state.triageDoneDoctor = (_action$payload12 = action.payload) !== null && _action$payload12 !== void 0 ? _action$payload12 : {};
|
|
35800
37161
|
}), _extraReducers$z)
|
|
35801
37162
|
});
|
|
35802
37163
|
var currentVisitStatsApiActions = {
|
|
35803
37164
|
GET_PATIENTS_CHECKED_IN: GET_PATIENTS_CHECKED_IN,
|
|
35804
37165
|
GET_TRAIGE_DONE: GET_TRAIGE_DONE,
|
|
35805
37166
|
GET_VISIT_COMPLETED: GET_VISIT_COMPLETED,
|
|
35806
|
-
GET_PATIENTS_NO_SHOWS: GET_PATIENTS_NO_SHOWS
|
|
37167
|
+
GET_PATIENTS_NO_SHOWS: GET_PATIENTS_NO_SHOWS,
|
|
37168
|
+
GET_PATIENTS_CHECKED_IN_NURSE: GET_PATIENTS_CHECKED_IN_NURSE,
|
|
37169
|
+
GET_VISIT_COMPLETED_NURSE: GET_VISIT_COMPLETED_NURSE,
|
|
37170
|
+
GET_PATIENTS_NO_SHOWS_NURSE: GET_PATIENTS_NO_SHOWS_NURSE,
|
|
37171
|
+
GET_TRAIGE_DONE_NURSE: GET_TRAIGE_DONE_NURSE,
|
|
37172
|
+
GET_PATIENTS_NO_SHOWS_DOCTOR: GET_PATIENTS_NO_SHOWS_DOCTOR,
|
|
37173
|
+
GET_PATIENTS_CHECKED_IN_DOCTOR: GET_PATIENTS_CHECKED_IN_DOCTOR,
|
|
37174
|
+
GET_VISIT_COMPLETED_DOCTOR: GET_VISIT_COMPLETED_DOCTOR,
|
|
37175
|
+
GET_TRAIGE_DONE_DOCTOR: GET_TRAIGE_DONE_DOCTOR
|
|
37176
|
+
};
|
|
37177
|
+
|
|
37178
|
+
var query$2 = {
|
|
37179
|
+
//FRONTDESK
|
|
37180
|
+
getFollowUpAppointments: function getFollowUpAppointments(data) {
|
|
37181
|
+
return "{\n \"db_name\": \"primarycare\",\n \"entity\": \"AppointmentRequest\",\n \"filter\": \"AppointmentRequest.appointmentid==''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())\",\n \"return_fields\": \"merge(AppointmentRequest,{encounterid:document(AppointmentRequest.encounterid)},{followupduruom:document(AppointmentRequest.followupduruom)},{followupreason:document(AppointmentRequest.followupreason)},{healthserviceid:to_array(document(AppointmentRequest.healthserviceid))},{orgid:to_array(document(AppointmentRequest.orgid))},{patientid:document(AppointmentRequest.patientid)},{practitionerid:document(AppointmentRequest.practitionerid)},{specialtyid:document(AppointmentRequest.specialtyid)})\"\n }";
|
|
37182
|
+
},
|
|
37183
|
+
getAppointmentsReferrals: function getAppointmentsReferrals(data) {
|
|
37184
|
+
return "{\n \"db_name\": \"primarycare\",\n \"entity\": \"ReferralTrx\",\n \"filter\": \"ReferralTrx.activestatus==true && ReferralTrx.recipientBookingReqd==true\",\n \"return_fields\": \"merge(ReferralTrx,{reasonCode:document(ReferralTrx.reasonCode)},{occurrencePeriod:document(ReferralTrx.occurrencePeriod)},{Type:document(ReferralTrx.Type)},{identifier:(for iden in IdentifierMaster filter iden._id in ReferralTrx.identifier return merge(iden,{period:document(iden.period)}))})\"\n }";
|
|
37185
|
+
}
|
|
37186
|
+
};
|
|
37187
|
+
|
|
37188
|
+
var _extraReducers$A;
|
|
37189
|
+
|
|
37190
|
+
var FOLLOWUP_APPOINTMENTS = createAsyncThunk("pendingTasksApiSlice/getFollowUpAppointments", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
37191
|
+
var payload,
|
|
37192
|
+
_ref2,
|
|
37193
|
+
rejectWithValue,
|
|
37194
|
+
_data$result,
|
|
37195
|
+
data,
|
|
37196
|
+
returnedData,
|
|
37197
|
+
_args = arguments;
|
|
37198
|
+
|
|
37199
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
37200
|
+
while (1) {
|
|
37201
|
+
switch (_context.prev = _context.next) {
|
|
37202
|
+
case 0:
|
|
37203
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
37204
|
+
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
37205
|
+
_context.prev = 2;
|
|
37206
|
+
_context.next = 5;
|
|
37207
|
+
return fetchData$1({
|
|
37208
|
+
body: query$2.getFollowUpAppointments()
|
|
37209
|
+
}, __readDocumentUrl__);
|
|
37210
|
+
|
|
37211
|
+
case 5:
|
|
37212
|
+
data = _context.sent;
|
|
37213
|
+
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result = data.result) === null || _data$result === void 0 ? void 0 : _data$result.map(function (_) {
|
|
37214
|
+
var _$patientid, _$patientid$name, _$patient_id, _$practitioner_detail, _$practitioner_detail2, _$patientid2, _$encounterid;
|
|
37215
|
+
|
|
37216
|
+
return {
|
|
37217
|
+
"img": 'https://www.fillmurray.com/640/360',
|
|
37218
|
+
"name": _ === null || _ === void 0 ? void 0 : (_$patientid = _.patientid) === null || _$patientid === void 0 ? void 0 : (_$patientid$name = _$patientid.name) === null || _$patientid$name === void 0 ? void 0 : _$patientid$name[0],
|
|
37219
|
+
"mrn": _ === null || _ === void 0 ? void 0 : (_$patient_id = _.patient_id) === null || _$patient_id === void 0 ? void 0 : _$patient_id.alias,
|
|
37220
|
+
"refNo": 'Ref No',
|
|
37221
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.encounterdate) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.encounterdate).format('DD MMM,YYYY') : '',
|
|
37222
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.encounterdate) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.encounterdate).format('hh:mm A') : '',
|
|
37223
|
+
"speciality": _ === null || _ === void 0 ? void 0 : (_$practitioner_detail = _.practitioner_details) === null || _$practitioner_detail === void 0 ? void 0 : (_$practitioner_detail2 = _$practitioner_detail[0]) === null || _$practitioner_detail2 === void 0 ? void 0 : _$practitioner_detail2.speciality,
|
|
37224
|
+
"clinic": 'Clinic',
|
|
37225
|
+
"dateOfBirth": _ === null || _ === void 0 ? void 0 : (_$patientid2 = _.patientid) === null || _$patientid2 === void 0 ? void 0 : _$patientid2.birthDate,
|
|
37226
|
+
"contact": '',
|
|
37227
|
+
"visitType": _ === null || _ === void 0 ? void 0 : (_$encounterid = _.encounterid) === null || _$encounterid === void 0 ? void 0 : _$encounterid.visit_type,
|
|
37228
|
+
"Book Appointment": true,
|
|
37229
|
+
"View Profile": true
|
|
37230
|
+
};
|
|
37231
|
+
}) : [];
|
|
37232
|
+
return _context.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
37233
|
+
data: returnedData
|
|
37234
|
+
}));
|
|
37235
|
+
|
|
37236
|
+
case 10:
|
|
37237
|
+
_context.prev = 10;
|
|
37238
|
+
_context.t0 = _context["catch"](2);
|
|
37239
|
+
return _context.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
37240
|
+
message: _context.t0.message
|
|
37241
|
+
})));
|
|
37242
|
+
|
|
37243
|
+
case 13:
|
|
37244
|
+
case "end":
|
|
37245
|
+
return _context.stop();
|
|
37246
|
+
}
|
|
37247
|
+
}
|
|
37248
|
+
}, _callee, null, [[2, 10]]);
|
|
37249
|
+
})));
|
|
37250
|
+
var APPOINTMENT_REFERRALS = createAsyncThunk("pendingTasksApiSlice/getAppointmentsReferrals", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
37251
|
+
var payload,
|
|
37252
|
+
_ref4,
|
|
37253
|
+
rejectWithValue,
|
|
37254
|
+
_data$result2,
|
|
37255
|
+
data,
|
|
37256
|
+
returnedData,
|
|
37257
|
+
_args2 = arguments;
|
|
37258
|
+
|
|
37259
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
37260
|
+
while (1) {
|
|
37261
|
+
switch (_context2.prev = _context2.next) {
|
|
37262
|
+
case 0:
|
|
37263
|
+
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
37264
|
+
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
37265
|
+
_context2.prev = 2;
|
|
37266
|
+
_context2.next = 5;
|
|
37267
|
+
return fetchData$1({
|
|
37268
|
+
body: query$2.getAppointmentsReferrals()
|
|
37269
|
+
}, __readDocumentUrl__);
|
|
37270
|
+
|
|
37271
|
+
case 5:
|
|
37272
|
+
data = _context2.sent;
|
|
37273
|
+
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result2 = data.result) === null || _data$result2 === void 0 ? void 0 : _data$result2.map(function (_) {
|
|
37274
|
+
var _$patientid3, _$patientid3$name, _$patient_id2, _$practitioner_detail3, _$practitioner_detail4, _$patientid4, _$encounterid2;
|
|
37275
|
+
|
|
37276
|
+
return {
|
|
37277
|
+
"img": 'https://www.fillmurray.com/640/360',
|
|
37278
|
+
"name": _ === null || _ === void 0 ? void 0 : (_$patientid3 = _.patientid) === null || _$patientid3 === void 0 ? void 0 : (_$patientid3$name = _$patientid3.name) === null || _$patientid3$name === void 0 ? void 0 : _$patientid3$name[0],
|
|
37279
|
+
"mrn": _ === null || _ === void 0 ? void 0 : (_$patient_id2 = _.patient_id) === null || _$patient_id2 === void 0 ? void 0 : _$patient_id2.alias,
|
|
37280
|
+
"refNo": 'Ref No',
|
|
37281
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.encounterdate) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.encounterdate).format('DD MMM,YYYY') : '',
|
|
37282
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.encounterdate) ? moment.unix(_ === null || _ === void 0 ? void 0 : _.encounterdate).format('hh:mm A') : '',
|
|
37283
|
+
"speciality": _ === null || _ === void 0 ? void 0 : (_$practitioner_detail3 = _.practitioner_details) === null || _$practitioner_detail3 === void 0 ? void 0 : (_$practitioner_detail4 = _$practitioner_detail3[0]) === null || _$practitioner_detail4 === void 0 ? void 0 : _$practitioner_detail4.speciality,
|
|
37284
|
+
"clinic": 'Clinic',
|
|
37285
|
+
"dateOfBirth": _ === null || _ === void 0 ? void 0 : (_$patientid4 = _.patientid) === null || _$patientid4 === void 0 ? void 0 : _$patientid4.birthDate,
|
|
37286
|
+
"contact": '',
|
|
37287
|
+
"visitType": _ === null || _ === void 0 ? void 0 : (_$encounterid2 = _.encounterid) === null || _$encounterid2 === void 0 ? void 0 : _$encounterid2.visit_type,
|
|
37288
|
+
"Book Appointment": true,
|
|
37289
|
+
"View Profile": true
|
|
37290
|
+
};
|
|
37291
|
+
}) : [];
|
|
37292
|
+
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
37293
|
+
data: returnedData
|
|
37294
|
+
}));
|
|
37295
|
+
|
|
37296
|
+
case 10:
|
|
37297
|
+
_context2.prev = 10;
|
|
37298
|
+
_context2.t0 = _context2["catch"](2);
|
|
37299
|
+
return _context2.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
37300
|
+
message: _context2.t0.message
|
|
37301
|
+
})));
|
|
37302
|
+
|
|
37303
|
+
case 13:
|
|
37304
|
+
case "end":
|
|
37305
|
+
return _context2.stop();
|
|
37306
|
+
}
|
|
37307
|
+
}
|
|
37308
|
+
}, _callee2, null, [[2, 10]]);
|
|
37309
|
+
}))); //NURSE
|
|
37310
|
+
//DOCTOR
|
|
37311
|
+
|
|
37312
|
+
var pendingTasksApiSlice = createSlice({
|
|
37313
|
+
name: "pendingTasksApiSlice",
|
|
37314
|
+
initialState: {
|
|
37315
|
+
//FRONTDESK
|
|
37316
|
+
followupAppointments: _objectSpread2({}, defaultState.Info),
|
|
37317
|
+
appointmentReferrals: _objectSpread2({}, defaultState.Info) // NURSE
|
|
37318
|
+
//DOCTOR
|
|
37319
|
+
|
|
37320
|
+
},
|
|
37321
|
+
extraReducers: (_extraReducers$A = {}, _defineProperty(_extraReducers$A, FOLLOWUP_APPOINTMENTS.fulfilled, function (state, action) {
|
|
37322
|
+
var _state$followupAppoin;
|
|
37323
|
+
|
|
37324
|
+
state.followupAppointments.loading = false, state.followupAppointments.error = false, (_state$followupAppoin = state.followupAppointments = action.payload) !== null && _state$followupAppoin !== void 0 ? _state$followupAppoin : {};
|
|
37325
|
+
}), _defineProperty(_extraReducers$A, FOLLOWUP_APPOINTMENTS.pending, function (state, action) {
|
|
37326
|
+
state.followupAppointments.loading = true, state.followupAppointments.error = false, state.followupAppointments.loading = true;
|
|
37327
|
+
}), _defineProperty(_extraReducers$A, FOLLOWUP_APPOINTMENTS.rejected, function (state, action) {
|
|
37328
|
+
var _action$payload;
|
|
37329
|
+
|
|
37330
|
+
state.followupAppointments.loading = false, state.followupAppointments.error = true, state.followupAppointments = (_action$payload = action.payload) !== null && _action$payload !== void 0 ? _action$payload : {};
|
|
37331
|
+
}), _defineProperty(_extraReducers$A, APPOINTMENT_REFERRALS.fulfilled, function (state, action) {
|
|
37332
|
+
var _state$appointmentRef;
|
|
37333
|
+
|
|
37334
|
+
state.appointmentReferrals.loading = false, state.appointmentReferrals.error = false, (_state$appointmentRef = state.appointmentReferrals = action.payload) !== null && _state$appointmentRef !== void 0 ? _state$appointmentRef : {};
|
|
37335
|
+
}), _defineProperty(_extraReducers$A, APPOINTMENT_REFERRALS.pending, function (state, action) {
|
|
37336
|
+
state.appointmentReferrals.loading = true, state.appointmentReferrals.error = false, state.appointmentReferrals.loading = true;
|
|
37337
|
+
}), _defineProperty(_extraReducers$A, APPOINTMENT_REFERRALS.rejected, function (state, action) {
|
|
37338
|
+
var _action$payload2;
|
|
37339
|
+
|
|
37340
|
+
state.appointmentReferrals.loading = false, state.appointmentReferrals.error = true, state.appointmentReferrals = (_action$payload2 = action.payload) !== null && _action$payload2 !== void 0 ? _action$payload2 : {};
|
|
37341
|
+
}), _extraReducers$A)
|
|
37342
|
+
});
|
|
37343
|
+
var pendingTasksApiActions = {
|
|
37344
|
+
FOLLOWUP_APPOINTMENTS: FOLLOWUP_APPOINTMENTS,
|
|
37345
|
+
APPOINTMENT_REFERRALS: APPOINTMENT_REFERRALS
|
|
35807
37346
|
};
|
|
35808
37347
|
|
|
35809
|
-
var dashboardComponentMasterActions = _objectSpread2(_objectSpread2({}, appointmentStatsApiActions), currentVisitStatsApiActions);
|
|
37348
|
+
var dashboardComponentMasterActions = _objectSpread2(_objectSpread2(_objectSpread2({}, appointmentStatsApiActions), currentVisitStatsApiActions), pendingTasksApiActions);
|
|
35810
37349
|
|
|
35811
37350
|
var actions = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, authActions), fuzzySearchActions), patientActions), appointmentActions), appointmentResponseActions), relatedPersonActions), practitionerActions), docterListingActions), searchApiActions), serviceApiActions), slotApiActions), scheduleApiActions), personApiActions), getUserInfoActions), oraganizationRegistrationActions), organizAtionauthActions), oraganizationRegisterPatientActions), dashboardApiActions), visitStatsApiActions), consultActions), radOrderActions), signOffActions), VisitActions), emailsendActions), siginInActions), DoccActions), clinicInfoActions), avgTimeActions), highPriorityActions), dashboardComponentMasterActions);
|
|
35812
37351
|
|