primary_care_admin_binder 0.1.42 → 0.1.46

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.
Files changed (2) hide show
  1. package/dist/index.cjs.js +508 -22
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -8193,6 +8193,8 @@ var addresslist = function addresslist(data) {
8193
8193
 
8194
8194
  if (data && data.length > 0) {
8195
8195
  data.map(function (val) {
8196
+ var _val$pincode, _val$pincode2;
8197
+
8196
8198
  var addressData = {
8197
8199
  // "_id": "string",
8198
8200
  "use": val.use ? val.use.value : '',
@@ -8201,7 +8203,7 @@ var addresslist = function addresslist(data) {
8201
8203
  "city": val.city ? val.city.value : '',
8202
8204
  "district": val.district ? val.district.value : "",
8203
8205
  "state": val.state ? val.state.value : "",
8204
- "postalCode": val.pincode ? val.pincode : "",
8206
+ "postalCode": (_val$pincode = val.pincode) !== null && _val$pincode !== void 0 && _val$pincode._id ? (_val$pincode2 = val.pincode) === null || _val$pincode2 === void 0 ? void 0 : _val$pincode2._id : "",
8205
8207
  "country": val.country ? val.country.value : "",
8206
8208
  "latitude": "",
8207
8209
  "longitude": "",
@@ -8386,6 +8388,8 @@ var generateJSON$2 = function generateJSON(data, _key, person_id) {
8386
8388
 
8387
8389
  if (data.address && data.address.length > 0) {
8388
8390
  data.address.map(function (val) {
8391
+ var _val$pincode3, _val$pincode4;
8392
+
8389
8393
  var addressData = {
8390
8394
  // "_id": "string",
8391
8395
  "use": val.use ? val.use.value : '',
@@ -8394,7 +8398,7 @@ var generateJSON$2 = function generateJSON(data, _key, person_id) {
8394
8398
  "city": val.city ? val.city.value : '',
8395
8399
  "district": val.district ? val.district.value : "",
8396
8400
  "state": val.state ? val.state.value : "",
8397
- "postalCode": val.pincode ? val.pincode : "",
8401
+ "postalCode": (_val$pincode3 = val.pincode) !== null && _val$pincode3 !== void 0 && _val$pincode3._id ? (_val$pincode4 = val.pincode) === null || _val$pincode4 === void 0 ? void 0 : _val$pincode4._id : "",
8398
8402
  "country": val.country ? val.country.value : "",
8399
8403
  "latitude": "",
8400
8404
  "longitude": "",
@@ -8909,7 +8913,7 @@ var practitionerActions$1 = {
8909
8913
  var practitionerSlice$1 = practitionerSlice.reducer;
8910
8914
 
8911
8915
  var masterQuery$7 = {
8912
- "id_type": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='ALTERNATEIDTYPE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
8916
+ "id_type": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='ALTERNATEIDTYPE' && CodeableConceptMaster.status == true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
8913
8917
  "id_number": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='RELATIONSHIP'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
8914
8918
  "prefix": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='NAMEPREFIX'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
8915
8919
  "suffix": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='NAMESUFFIX'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
@@ -8938,16 +8942,122 @@ var masterQuery$7 = {
8938
8942
  "address_type": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='ADDRESSTYPE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
8939
8943
  "role": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='PRACTROLE' && CodeableConceptMaster.status == true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
8940
8944
  "location": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"LocationMaster\",\n \"sort\":\"LocationMaster.shortdesc\",\n \"filter\": \"LocationMaster.activestatus==true && LocationMaster.status=='active'\",\n \"return_fields\": \"LocationMaster\"\n }"),
8941
- "city": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"SMGeographicMaster\",\n \"sort\":\"SMGeographicMaster.geogLevelName\",\n \"filter\": \"SMGeographicMaster.geogLevelType=='CITY' && SMGeographicMaster.activestatus == true\",\n \"return_fields\": \"{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}\"\n }"),
8942
- "district": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"SMGeographicMaster\",\n \"sort\":\"SMGeographicMaster.geogLevelName\",\n \"filter\": \"SMGeographicMaster.geogLevelType=='DISTRICT' && SMGeographicMaster.geogLevelCode=='BLR' && SMGeographicMaster.activestatus == true\",\n \"return_fields\": \"{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}\"\n }"),
8943
- "state": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"SMGeographicMaster\",\n \"sort\":\"SMGeographicMaster.geogLevelName\",\n \"filter\": \"SMGeographicMaster.geogLevelType=='STATE' && SMGeographicMaster.geogLevelCode=='KAR' && SMGeographicMaster.activestatus == true\",\n \"return_fields\": \"{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}\"\n }"),
8944
- "country": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"SMGeographicMaster\",\n \"sort\":\"SMGeographicMaster.geogLevelName\",\n \"filter\": \"SMGeographicMaster.geogLevelType=='COUNTRY' && SMGeographicMaster.geogLevelCode=='IND' && SMGeographicMaster.activestatus == true\",\n \"return_fields\": \"{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}\"\n }"),
8945
+ // "city": `{
8946
+ // "db_name": "${dbName}",
8947
+ // "entity": "SMGeographicMaster",
8948
+ // "sort":"SMGeographicMaster.geogLevelName",
8949
+ // "filter": "SMGeographicMaster.geogLevelType=='CITY' && SMGeographicMaster.activestatus == true",
8950
+ // "return_fields": "{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}"
8951
+ // }`,
8952
+ // "district": `{
8953
+ // "db_name": "${dbName}",
8954
+ // "entity": "SMGeographicMaster",
8955
+ // "sort":"SMGeographicMaster.geogLevelName",
8956
+ // "filter": "SMGeographicMaster.geogLevelType=='DISTRICT' && SMGeographicMaster.geogLevelCode=='BLR' && SMGeographicMaster.activestatus == true",
8957
+ // "return_fields": "{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}"
8958
+ // }`,
8959
+ // "state": `{
8960
+ // "db_name": "${dbName}",
8961
+ // "entity": "SMGeographicMaster",
8962
+ // "sort":"SMGeographicMaster.geogLevelName",
8963
+ // "filter": "SMGeographicMaster.geogLevelType=='STATE' && SMGeographicMaster.geogLevelCode=='KAR' && SMGeographicMaster.activestatus == true",
8964
+ // "return_fields": "{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}"
8965
+ // }`,
8966
+ // "country": `{
8967
+ // "db_name": "${dbName}",
8968
+ // "entity": "SMGeographicMaster",
8969
+ // "sort":"SMGeographicMaster.geogLevelName",
8970
+ // "filter": "SMGeographicMaster.geogLevelType=='COUNTRY' && SMGeographicMaster.activestatus == true",
8971
+ // "return_fields": "{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}"
8972
+ // }`,
8973
+ // "country": `{
8974
+ // "db_name": "primarycare",
8975
+ // "entity": "SMGeographicMaster",
8976
+ // "sort": "SMGeographicMaster.geogLevelName",
8977
+ // "filter": "document(SMGeographicMaster.geogLevelType).code=='GE002' && SMGeographicMaster.activestatus == true",
8978
+ // "return_fields": "{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,geogLevelCode:SMGeographicMaster.geogLevelCode,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}"
8979
+ // }`,
8945
8980
  "position": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='POSITION' && CodeableConceptMaster.status==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
8946
8981
  "employee_type": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='EMPSTATUS' && CodeableConceptMaster.status==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
8947
8982
  "marital_status": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='MARITALSTATUS' && CodeableConceptMaster.activestatus==true && CodeableConceptMaster.status == true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
8948
8983
  "nationality": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"SMGeographicMaster\",\n \"sort\": \"SMGeographicMaster.geogLevelName\",\n \"filter\": \"lower(document(SMGeographicMaster.geogLevelType).display)=='country' && SMGeographicMaster.activestatus == true && SMGeographicMaster.active== true\",\n \"return_fields\": \"{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}\"\n }"),
8949
8984
  "country_code": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"SMGeographicMaster\",\n \"sort\": \"SMGeographicMaster.GeoLocationISDCode\",\n \"filter\": \"lower(document(SMGeographicMaster.geogLevelType).display)=='country' && SMGeographicMaster.activestatus == true && SMGeographicMaster.active == true\",\n \"return_fields\": \"{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode,GeoLocationISDCode:SMGeographicMaster.GeoLocationISDCode}\"\n }")
8950
8985
  };
8986
+ var masterqueries = {
8987
+ country: function country() {
8988
+ return {
8989
+ "db_name": dbName$1,
8990
+ "entity": "SMGeographicMaster",
8991
+ "sort": "SMGeographicMaster.geogLevelName",
8992
+ "filter": "document(SMGeographicMaster.geogLevelType).code=='GE002' && SMGeographicMaster.activestatus == true",
8993
+ "return_fields": "{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,geogLevelCode:SMGeographicMaster.geogLevelCode,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}"
8994
+ };
8995
+ },
8996
+ state_by_country: function state_by_country(geogLevelCode) {
8997
+ return {
8998
+ "db_name": dbName$1,
8999
+ "entity": "SMGeographicMaster",
9000
+ "filter": "SMGeographicMaster.activestatus==true && lower(document(SMGeographicMaster.geogLevelType).display)=='state' && lower(document(SMGeographicMaster.parentGeogLevelCode).geogLevelCode)==lower('".concat(geogLevelCode, "')"),
9001
+ "return_fields": "{_id:SMGeographicMaster._id, id:SMGeographicMaster.id, geogLevelType:document(SMGeographicMaster.geogLevelType), geogLevelCode:SMGeographicMaster.geogLevelCode, geogLevelName:SMGeographicMaster.geogLevelName, parentGeogLevelType:document(SMGeographicMaster.parentGeogLevelType), parentGeogLevelCode:document(SMGeographicMaster.parentGeogLevelCode), active: SMGeographicMaster.activestatus,_key:SMGeographicMaster._key}"
9002
+ };
9003
+ },
9004
+ district_by_state: function district_by_state(geogLevelCode) {
9005
+ return {
9006
+ "db_name": dbName$1,
9007
+ "entity": "SMGeographicMaster",
9008
+ "filter": "SMGeographicMaster.activestatus==true && lower(document(SMGeographicMaster.geogLevelType).display)=='district' && lower(document(SMGeographicMaster.parentGeogLevelCode).geogLevelCode)==lower('".concat(geogLevelCode, "')"),
9009
+ "return_fields": "{_id:SMGeographicMaster._id, id:SMGeographicMaster.id, geogLevelType:document(SMGeographicMaster.geogLevelType), geogLevelCode:SMGeographicMaster.geogLevelCode, geogLevelName:SMGeographicMaster.geogLevelName, parentGeogLevelType:document(SMGeographicMaster.parentGeogLevelType), parentGeogLevelCode:document(SMGeographicMaster.parentGeogLevelCode), active: SMGeographicMaster.activestatus,_key:SMGeographicMaster._key}"
9010
+ };
9011
+ },
9012
+ city_by_district: function city_by_district(geogLevelCode) {
9013
+ return {
9014
+ "db_name": dbName$1,
9015
+ "entity": "SMGeographicMaster",
9016
+ "filter": "SMGeographicMaster.activestatus==true && lower(document(SMGeographicMaster.geogLevelType).display)=='city' && lower(document(SMGeographicMaster.parentGeogLevelCode).geogLevelCode)==lower('".concat(geogLevelCode, "')"),
9017
+ "return_fields": "{_id:SMGeographicMaster._id, id:SMGeographicMaster.id, geogLevelType:document(SMGeographicMaster.geogLevelType), geogLevelCode:SMGeographicMaster.geogLevelCode, geogLevelName:SMGeographicMaster.geogLevelName, parentGeogLevelType:document(SMGeographicMaster.parentGeogLevelType), parentGeogLevelCode:document(SMGeographicMaster.parentGeogLevelCode), active: SMGeographicMaster.activestatus,_key:SMGeographicMaster._key}"
9018
+ };
9019
+ },
9020
+ pincode_by_city: function pincode_by_city(geogLevelCode) {
9021
+ return {
9022
+ "db_name": dbName$1,
9023
+ "entity": "SMGeographicMaster",
9024
+ "filter": "SMGeographicMaster.activestatus==true && lower(document(SMGeographicMaster.geogLevelType).display)=='pincode' && lower(document(SMGeographicMaster.parentGeogLevelCode).geogLevelCode)==lower('".concat(geogLevelCode, "')"),
9025
+ "return_fields": "{_id:SMGeographicMaster._id, id:SMGeographicMaster.id, geogLevelType:document(SMGeographicMaster.geogLevelType), geogLevelCode:SMGeographicMaster.geogLevelCode, geogLevelName:SMGeographicMaster.geogLevelName, parentGeogLevelType:document(SMGeographicMaster.parentGeogLevelType), parentGeogLevelCode:document(SMGeographicMaster.parentGeogLevelCode), active: SMGeographicMaster.activestatus,_key:SMGeographicMaster._key}"
9026
+ };
9027
+ },
9028
+ state_by_country_: function state_by_country_() {
9029
+ return {
9030
+ "db_name": dbName$1,
9031
+ "entity": "SMGeographicMaster",
9032
+ "filter": "SMGeographicMaster.activestatus==true && lower(document(SMGeographicMaster.geogLevelType).display)=='state'",
9033
+ "return_fields": "{_id:SMGeographicMaster._id, id:SMGeographicMaster.id, geogLevelType:document(SMGeographicMaster.geogLevelType), geogLevelCode:SMGeographicMaster.geogLevelCode, geogLevelName:SMGeographicMaster.geogLevelName, parentGeogLevelType:document(SMGeographicMaster.parentGeogLevelType), parentGeogLevelCode:document(SMGeographicMaster.parentGeogLevelCode), active: SMGeographicMaster.activestatus,_key:SMGeographicMaster._key}"
9034
+ };
9035
+ },
9036
+ district_by_state_: function district_by_state_() {
9037
+ return {
9038
+ "db_name": dbName$1,
9039
+ "entity": "SMGeographicMaster",
9040
+ "filter": "SMGeographicMaster.activestatus==true && lower(document(SMGeographicMaster.geogLevelType).display)=='district'",
9041
+ "return_fields": "{_id:SMGeographicMaster._id, id:SMGeographicMaster.id, geogLevelType:document(SMGeographicMaster.geogLevelType), geogLevelCode:SMGeographicMaster.geogLevelCode, geogLevelName:SMGeographicMaster.geogLevelName, parentGeogLevelType:document(SMGeographicMaster.parentGeogLevelType), parentGeogLevelCode:document(SMGeographicMaster.parentGeogLevelCode), active: SMGeographicMaster.activestatus,_key:SMGeographicMaster._key}"
9042
+ };
9043
+ },
9044
+ city_by_district_: function city_by_district_() {
9045
+ return {
9046
+ "db_name": dbName$1,
9047
+ "entity": "SMGeographicMaster",
9048
+ "filter": "SMGeographicMaster.activestatus==true && lower(document(SMGeographicMaster.geogLevelType).display)=='city'",
9049
+ "return_fields": "{_id:SMGeographicMaster._id, id:SMGeographicMaster.id, geogLevelType:document(SMGeographicMaster.geogLevelType), geogLevelCode:SMGeographicMaster.geogLevelCode, geogLevelName:SMGeographicMaster.geogLevelName, parentGeogLevelType:document(SMGeographicMaster.parentGeogLevelType), parentGeogLevelCode:document(SMGeographicMaster.parentGeogLevelCode), active: SMGeographicMaster.activestatus,_key:SMGeographicMaster._key}"
9050
+ };
9051
+ },
9052
+ pincode_by_city_: function pincode_by_city_() {
9053
+ return {
9054
+ "db_name": dbName$1,
9055
+ "entity": "SMGeographicMaster",
9056
+ "filter": "SMGeographicMaster.activestatus==true && lower(document(SMGeographicMaster.geogLevelType).display)=='pincode'",
9057
+ "return_fields": "{_id:SMGeographicMaster._id, id:SMGeographicMaster.id, geogLevelType:document(SMGeographicMaster.geogLevelType), geogLevelCode:SMGeographicMaster.geogLevelCode, geogLevelName:SMGeographicMaster.geogLevelName, parentGeogLevelType:document(SMGeographicMaster.parentGeogLevelType), parentGeogLevelCode:document(SMGeographicMaster.parentGeogLevelCode), active: SMGeographicMaster.activestatus,_key:SMGeographicMaster._key}"
9058
+ };
9059
+ }
9060
+ };
8951
9061
 
8952
9062
  var getOptionWithMaster = function getOptionWithMaster(data) {
8953
9063
  var getoptions = [];
@@ -9022,7 +9132,27 @@ var addressListData = function addressListData(data, masters) {
9022
9132
  return list;
9023
9133
  };
9024
9134
 
9025
- var generateReadJSON$5 = function generateReadJSON(data, masters) {
9135
+ var getGeoData = function getGeoData(id, dropDownData) {
9136
+ var obj = {};
9137
+
9138
+ if (id) {
9139
+ if (Array.isArray(dropDownData)) {
9140
+ //return dropDownData?.filter(val => val?._id === id)
9141
+ dropDownData === null || dropDownData === void 0 ? void 0 : dropDownData.map(function (val) {
9142
+ if ((val === null || val === void 0 ? void 0 : val._id) === id) {
9143
+ obj = _objectSpread2({
9144
+ label: val.geogLevelName,
9145
+ value: val._id
9146
+ }, val);
9147
+ }
9148
+ });
9149
+ }
9150
+ }
9151
+
9152
+ return obj;
9153
+ };
9154
+
9155
+ var generateReadJSON$5 = function generateReadJSON(data, masters, countryData, stateData, districtData, cityData, pincodeData) {
9026
9156
  var _data$identifier, _data$name, _data$communication, _data$telecom, _data$practitioner_ro, _data$address, _data$qualification, _data$publication_det, _data$training_detail, _data$job_experience, _data$achievements_aw, _data$gender, _data$marital_status, _data$nationality, _data$practitioner_ty, _data$position, _data$employee_status;
9027
9157
 
9028
9158
  var identifier = [];
@@ -9126,17 +9256,22 @@ var generateReadJSON$5 = function generateReadJSON(data, masters) {
9126
9256
 
9127
9257
  if (data.address && ((_data$address = data.address) === null || _data$address === void 0 ? void 0 : _data$address.length) > 0) {
9128
9258
  data.address.map(function (val) {
9129
- var _val$text2, _val$line2, _val$postalCode2;
9259
+ var _val$text2, _val$line2;
9130
9260
 
9131
9261
  var addresslistData = {
9132
9262
  "use": getmasterOprions("Address_use", val.use, masters)[0],
9133
9263
  "addressLine1": val.text && ((_val$text2 = val.text) === null || _val$text2 === void 0 ? void 0 : _val$text2.length) > 0 ? val.text : "",
9134
9264
  "addressLine2": val.line && ((_val$line2 = val.line) === null || _val$line2 === void 0 ? void 0 : _val$line2.length) > 0 ? val.line : "",
9135
- "city": getmasterOprions("city", val.city, masters)[0],
9136
- "district": getmasterOprions("district", val.district, masters)[0],
9137
- "state": getmasterOprions("state", val.state, masters)[0],
9138
- "pincode": val.postalCode && ((_val$postalCode2 = val.postalCode) === null || _val$postalCode2 === void 0 ? void 0 : _val$postalCode2.length) > 0 ? val.postalCode : "",
9139
- "country": getmasterOprions("country", val.country, masters)[0],
9265
+ // "city": getmasterOprions("city", val.city, masters)[0],
9266
+ // "district": getmasterOprions("district", val.district, masters)[0],
9267
+ // "state": getmasterOprions("state", val.state, masters)[0],
9268
+ // "pincode": (val.postalCode && val.postalCode?.length > 0) ? val.postalCode : "",
9269
+ // "country": getmasterOprions("country", val.country, masters)[0],
9270
+ "city": getGeoData(val === null || val === void 0 ? void 0 : val.city, cityData),
9271
+ "district": getGeoData(val === null || val === void 0 ? void 0 : val.district, districtData),
9272
+ "state": getGeoData(val === null || val === void 0 ? void 0 : val.state, stateData),
9273
+ "pincode": getGeoData(val.postalCode, pincodeData),
9274
+ "country": getGeoData(val.country, countryData),
9140
9275
  "type": getmasterOprions("address_type", val.Type, masters)[0]
9141
9276
  };
9142
9277
  addresslist.push(addresslistData);
@@ -9463,6 +9598,11 @@ var PRACTITIONER_GET_BY_ID = createAsyncThunk("practitionerMasterSlice/practitio
9463
9598
  id,
9464
9599
  masterlist,
9465
9600
  data,
9601
+ country_data,
9602
+ state_data,
9603
+ district_data,
9604
+ city_data,
9605
+ pincode_data,
9466
9606
  readJSON,
9467
9607
  _args5 = arguments;
9468
9608
 
@@ -9486,30 +9626,341 @@ var PRACTITIONER_GET_BY_ID = createAsyncThunk("practitionerMasterSlice/practitio
9486
9626
 
9487
9627
  case 9:
9488
9628
  data = _context5.sent;
9489
- readJSON = generateReadJSON$5(data.result[0] ? data.result[0] : null, masterlist);
9629
+ _context5.next = 12;
9630
+ return fetchData({
9631
+ body: JSON.stringify(masterqueries.country())
9632
+ }, __readDocumentUrl__);
9633
+
9634
+ case 12:
9635
+ country_data = _context5.sent;
9636
+ _context5.next = 15;
9637
+ return fetchData({
9638
+ body: JSON.stringify(masterqueries.state_by_country_())
9639
+ }, __readDocumentUrl__);
9640
+
9641
+ case 15:
9642
+ state_data = _context5.sent;
9643
+ _context5.next = 18;
9644
+ return fetchData({
9645
+ body: JSON.stringify(masterqueries.district_by_state_())
9646
+ }, __readDocumentUrl__);
9647
+
9648
+ case 18:
9649
+ district_data = _context5.sent;
9650
+ _context5.next = 21;
9651
+ return fetchData({
9652
+ body: JSON.stringify(masterqueries.city_by_district_())
9653
+ }, __readDocumentUrl__);
9654
+
9655
+ case 21:
9656
+ city_data = _context5.sent;
9657
+ _context5.next = 24;
9658
+ return fetchData({
9659
+ body: JSON.stringify(masterqueries.pincode_by_city_())
9660
+ }, __readDocumentUrl__);
9661
+
9662
+ case 24:
9663
+ pincode_data = _context5.sent;
9664
+ readJSON = generateReadJSON$5(data.result[0] ? data.result[0] : null, masterlist, country_data === null || country_data === void 0 ? void 0 : country_data.result, state_data === null || state_data === void 0 ? void 0 : state_data.result, district_data === null || district_data === void 0 ? void 0 : district_data.result, city_data === null || city_data === void 0 ? void 0 : city_data.result, pincode_data === null || pincode_data === void 0 ? void 0 : pincode_data.result);
9490
9665
  return _context5.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
9491
9666
  data: readJSON
9492
9667
  }));
9493
9668
 
9494
- case 14:
9495
- _context5.prev = 14;
9669
+ case 29:
9670
+ _context5.prev = 29;
9496
9671
  _context5.t0 = _context5["catch"](2);
9497
9672
  return _context5.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
9498
9673
  message: _context5.t0.message
9499
9674
  })));
9500
9675
 
9501
- case 17:
9676
+ case 32:
9502
9677
  case "end":
9503
9678
  return _context5.stop();
9504
9679
  }
9505
9680
  }
9506
- }, _callee5, null, [[2, 14]]);
9681
+ }, _callee5, null, [[2, 29]]);
9682
+ })));
9683
+ var PRACTITIONER_COUNTRY_MASTER = createAsyncThunk("practitionerMasterSlice/practitioner_country_master", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
9684
+ var payload,
9685
+ _ref9,
9686
+ rejectWithValue,
9687
+ _data$result,
9688
+ data,
9689
+ arr,
9690
+ _args6 = arguments;
9691
+
9692
+ return regeneratorRuntime.wrap(function _callee6$(_context6) {
9693
+ while (1) {
9694
+ switch (_context6.prev = _context6.next) {
9695
+ case 0:
9696
+ payload = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
9697
+ _ref9 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref9.rejectWithValue;
9698
+ _context6.prev = 2;
9699
+
9700
+ _objectDestructuringEmpty(payload);
9701
+
9702
+ _context6.next = 6;
9703
+ return fetchData({
9704
+ body: JSON.stringify(masterqueries.country())
9705
+ }, __readDocumentUrl__);
9706
+
9707
+ case 6:
9708
+ data = _context6.sent;
9709
+ arr = [];
9710
+
9711
+ if (Array.isArray(data.result) && (data === null || data === void 0 ? void 0 : (_data$result = data.result) === null || _data$result === void 0 ? void 0 : _data$result.length) > 0) {
9712
+ data === null || data === void 0 ? void 0 : data.result.map(function (val) {
9713
+ arr.push(_objectSpread2({
9714
+ label: val.geogLevelName,
9715
+ value: val._id
9716
+ }, val));
9717
+ });
9718
+ }
9719
+
9720
+ return _context6.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
9721
+ data: arr
9722
+ }));
9723
+
9724
+ case 12:
9725
+ _context6.prev = 12;
9726
+ _context6.t0 = _context6["catch"](2);
9727
+ return _context6.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
9728
+ message: _context6.t0.message
9729
+ })));
9730
+
9731
+ case 15:
9732
+ case "end":
9733
+ return _context6.stop();
9734
+ }
9735
+ }
9736
+ }, _callee6, null, [[2, 12]]);
9737
+ })));
9738
+ var PRACTITIONER_STATE_MASTER = createAsyncThunk("practitionerMasterSlice/practitioner_state_master", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
9739
+ var payload,
9740
+ _ref11,
9741
+ rejectWithValue,
9742
+ _data$result2,
9743
+ geogLevelCode,
9744
+ data,
9745
+ arr,
9746
+ _args7 = arguments;
9747
+
9748
+ return regeneratorRuntime.wrap(function _callee7$(_context7) {
9749
+ while (1) {
9750
+ switch (_context7.prev = _context7.next) {
9751
+ case 0:
9752
+ payload = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
9753
+ _ref11 = _args7.length > 1 ? _args7[1] : undefined, rejectWithValue = _ref11.rejectWithValue;
9754
+ _context7.prev = 2;
9755
+ geogLevelCode = payload.geogLevelCode;
9756
+ _context7.next = 6;
9757
+ return fetchData({
9758
+ body: JSON.stringify(masterqueries.state_by_country(geogLevelCode))
9759
+ }, __readDocumentUrl__);
9760
+
9761
+ case 6:
9762
+ data = _context7.sent;
9763
+ arr = [];
9764
+
9765
+ if (Array.isArray(data.result) && (data === null || data === void 0 ? void 0 : (_data$result2 = data.result) === null || _data$result2 === void 0 ? void 0 : _data$result2.length) > 0) {
9766
+ data === null || data === void 0 ? void 0 : data.result.map(function (val) {
9767
+ arr.push(_objectSpread2({
9768
+ label: val.geogLevelName,
9769
+ value: val._id
9770
+ }, val));
9771
+ });
9772
+ }
9773
+
9774
+ return _context7.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
9775
+ data: arr
9776
+ }));
9777
+
9778
+ case 12:
9779
+ _context7.prev = 12;
9780
+ _context7.t0 = _context7["catch"](2);
9781
+ return _context7.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
9782
+ message: _context7.t0.message
9783
+ })));
9784
+
9785
+ case 15:
9786
+ case "end":
9787
+ return _context7.stop();
9788
+ }
9789
+ }
9790
+ }, _callee7, null, [[2, 12]]);
9791
+ })));
9792
+ var PRACTITIONER_DISTRICT_MASTER = createAsyncThunk("practitionerMasterSlice/practitioner_district_master", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
9793
+ var payload,
9794
+ _ref13,
9795
+ rejectWithValue,
9796
+ _data$result3,
9797
+ geogLevelCode,
9798
+ data,
9799
+ arr,
9800
+ _args8 = arguments;
9801
+
9802
+ return regeneratorRuntime.wrap(function _callee8$(_context8) {
9803
+ while (1) {
9804
+ switch (_context8.prev = _context8.next) {
9805
+ case 0:
9806
+ payload = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
9807
+ _ref13 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref13.rejectWithValue;
9808
+ _context8.prev = 2;
9809
+ geogLevelCode = payload.geogLevelCode;
9810
+ _context8.next = 6;
9811
+ return fetchData({
9812
+ body: JSON.stringify(masterqueries.district_by_state(geogLevelCode))
9813
+ }, __readDocumentUrl__);
9814
+
9815
+ case 6:
9816
+ data = _context8.sent;
9817
+ arr = [];
9818
+
9819
+ if (Array.isArray(data.result) && (data === null || data === void 0 ? void 0 : (_data$result3 = data.result) === null || _data$result3 === void 0 ? void 0 : _data$result3.length) > 0) {
9820
+ data === null || data === void 0 ? void 0 : data.result.map(function (val) {
9821
+ arr.push(_objectSpread2({
9822
+ label: val.geogLevelName,
9823
+ value: val._id
9824
+ }, val));
9825
+ });
9826
+ }
9827
+
9828
+ return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
9829
+ data: arr
9830
+ }));
9831
+
9832
+ case 12:
9833
+ _context8.prev = 12;
9834
+ _context8.t0 = _context8["catch"](2);
9835
+ return _context8.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
9836
+ message: _context8.t0.message
9837
+ })));
9838
+
9839
+ case 15:
9840
+ case "end":
9841
+ return _context8.stop();
9842
+ }
9843
+ }
9844
+ }, _callee8, null, [[2, 12]]);
9845
+ })));
9846
+ var PRACTITIONER_CITY_MASTER = createAsyncThunk("practitionerMasterSlice/practitioner_city_master", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
9847
+ var payload,
9848
+ _ref15,
9849
+ rejectWithValue,
9850
+ _data$result4,
9851
+ geogLevelCode,
9852
+ data,
9853
+ arr,
9854
+ _args9 = arguments;
9855
+
9856
+ return regeneratorRuntime.wrap(function _callee9$(_context9) {
9857
+ while (1) {
9858
+ switch (_context9.prev = _context9.next) {
9859
+ case 0:
9860
+ payload = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
9861
+ _ref15 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref15.rejectWithValue;
9862
+ _context9.prev = 2;
9863
+ geogLevelCode = payload.geogLevelCode;
9864
+ _context9.next = 6;
9865
+ return fetchData({
9866
+ body: JSON.stringify(masterqueries.city_by_district(geogLevelCode))
9867
+ }, __readDocumentUrl__);
9868
+
9869
+ case 6:
9870
+ data = _context9.sent;
9871
+ arr = [];
9872
+
9873
+ if (Array.isArray(data.result) && (data === null || data === void 0 ? void 0 : (_data$result4 = data.result) === null || _data$result4 === void 0 ? void 0 : _data$result4.length) > 0) {
9874
+ data === null || data === void 0 ? void 0 : data.result.map(function (val) {
9875
+ arr.push(_objectSpread2({
9876
+ label: val.geogLevelName,
9877
+ value: val._id
9878
+ }, val));
9879
+ });
9880
+ }
9881
+
9882
+ return _context9.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
9883
+ data: arr
9884
+ }));
9885
+
9886
+ case 12:
9887
+ _context9.prev = 12;
9888
+ _context9.t0 = _context9["catch"](2);
9889
+ return _context9.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
9890
+ message: _context9.t0.message
9891
+ })));
9892
+
9893
+ case 15:
9894
+ case "end":
9895
+ return _context9.stop();
9896
+ }
9897
+ }
9898
+ }, _callee9, null, [[2, 12]]);
9899
+ })));
9900
+ var PRACTITIONER_PINCODE_MASTER = createAsyncThunk("practitionerMasterSlice/practitioner_pincode_master", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
9901
+ var payload,
9902
+ _ref17,
9903
+ rejectWithValue,
9904
+ _data$result5,
9905
+ geogLevelCode,
9906
+ data,
9907
+ arr,
9908
+ _args10 = arguments;
9909
+
9910
+ return regeneratorRuntime.wrap(function _callee10$(_context10) {
9911
+ while (1) {
9912
+ switch (_context10.prev = _context10.next) {
9913
+ case 0:
9914
+ payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
9915
+ _ref17 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref17.rejectWithValue;
9916
+ _context10.prev = 2;
9917
+ geogLevelCode = payload.geogLevelCode;
9918
+ _context10.next = 6;
9919
+ return fetchData({
9920
+ body: JSON.stringify(masterqueries.pincode_by_city(geogLevelCode))
9921
+ }, __readDocumentUrl__);
9922
+
9923
+ case 6:
9924
+ data = _context10.sent;
9925
+ arr = [];
9926
+
9927
+ if (Array.isArray(data.result) && (data === null || data === void 0 ? void 0 : (_data$result5 = data.result) === null || _data$result5 === void 0 ? void 0 : _data$result5.length) > 0) {
9928
+ data === null || data === void 0 ? void 0 : data.result.map(function (val) {
9929
+ arr.push(_objectSpread2({
9930
+ label: val.geogLevelName,
9931
+ value: val._id
9932
+ }, val));
9933
+ });
9934
+ }
9935
+
9936
+ return _context10.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
9937
+ data: arr
9938
+ }));
9939
+
9940
+ case 12:
9941
+ _context10.prev = 12;
9942
+ _context10.t0 = _context10["catch"](2);
9943
+ return _context10.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
9944
+ message: _context10.t0.message
9945
+ })));
9946
+
9947
+ case 15:
9948
+ case "end":
9949
+ return _context10.stop();
9950
+ }
9951
+ }
9952
+ }, _callee10, null, [[2, 12]]);
9507
9953
  })));
9508
9954
  var practitionerMasterSlice = createSlice({
9509
9955
  name: "practitionerMasterSlice",
9510
9956
  initialState: {
9511
9957
  practitioner_masters: _objectSpread2({}, defaultState.Info),
9512
- practitionerbyid: _objectSpread2({}, defaultState.Info)
9958
+ practitionerbyid: _objectSpread2({}, defaultState.Info),
9959
+ practitioner_country_master: _objectSpread2({}, defaultState.Info),
9960
+ practitioner_state_master: _objectSpread2({}, defaultState.Info),
9961
+ practitioner_district_master: _objectSpread2({}, defaultState.Info),
9962
+ practitioner_city_master: _objectSpread2({}, defaultState.Info),
9963
+ practitioner_pincode_master: _objectSpread2({}, defaultState.Info)
9513
9964
  },
9514
9965
  extraReducers: (_extraReducers$J = {}, _defineProperty(_extraReducers$J, PRACTITIONER_MASTERS.fulfilled, function (state, action) {
9515
9966
  state.practitioner_masters.loading = false, state.practitioner_masters.error = false, state.practitioner_masters = action.payload;
@@ -9523,11 +9974,46 @@ var practitionerMasterSlice = createSlice({
9523
9974
  state.practitionerbyid.loading = true, state.practitionerbyid.error = false, state.practitionerbyid.loading = true;
9524
9975
  }), _defineProperty(_extraReducers$J, PRACTITIONER_GET_BY_ID.rejected, function (state, action) {
9525
9976
  state.practitionerbyid.loading = false, state.practitionerbyid.error = true, state.practitionerbyid = action.payload;
9977
+ }), _defineProperty(_extraReducers$J, PRACTITIONER_COUNTRY_MASTER.fulfilled, function (state, action) {
9978
+ state.practitioner_country_master.loading = false, state.practitioner_country_master.error = false, state.practitioner_country_master = action.payload;
9979
+ }), _defineProperty(_extraReducers$J, PRACTITIONER_COUNTRY_MASTER.pending, function (state, action) {
9980
+ state.practitioner_country_master.loading = true, state.practitioner_country_master.error = false, state.practitioner_country_master.loading = true;
9981
+ }), _defineProperty(_extraReducers$J, PRACTITIONER_COUNTRY_MASTER.rejected, function (state, action) {
9982
+ state.practitioner_country_master.loading = false, state.practitioner_country_master.error = true, state.practitioner_country_master = action.payload;
9983
+ }), _defineProperty(_extraReducers$J, PRACTITIONER_STATE_MASTER.fulfilled, function (state, action) {
9984
+ state.practitioner_state_master.loading = false, state.practitioner_state_master.error = false, state.practitioner_state_master = action.payload;
9985
+ }), _defineProperty(_extraReducers$J, PRACTITIONER_STATE_MASTER.pending, function (state, action) {
9986
+ state.practitioner_state_master.loading = true, state.practitioner_state_master.error = false, state.practitioner_state_master.loading = true;
9987
+ }), _defineProperty(_extraReducers$J, PRACTITIONER_STATE_MASTER.rejected, function (state, action) {
9988
+ state.practitioner_state_master.loading = false, state.practitioner_state_master.error = true, state.practitioner_state_master = action.payload;
9989
+ }), _defineProperty(_extraReducers$J, PRACTITIONER_DISTRICT_MASTER.fulfilled, function (state, action) {
9990
+ state.practitioner_district_master.loading = false, state.practitioner_district_master.error = false, state.practitioner_district_master = action.payload;
9991
+ }), _defineProperty(_extraReducers$J, PRACTITIONER_DISTRICT_MASTER.pending, function (state, action) {
9992
+ state.practitioner_district_master.loading = true, state.practitioner_district_master.error = false, state.practitioner_district_master.loading = true;
9993
+ }), _defineProperty(_extraReducers$J, PRACTITIONER_DISTRICT_MASTER.rejected, function (state, action) {
9994
+ state.practitioner_district_master.loading = false, state.practitioner_district_master.error = true, state.practitioner_district_master = action.payload;
9995
+ }), _defineProperty(_extraReducers$J, PRACTITIONER_CITY_MASTER.fulfilled, function (state, action) {
9996
+ state.practitioner_city_master.loading = false, state.practitioner_city_master.error = false, state.practitioner_city_master = action.payload;
9997
+ }), _defineProperty(_extraReducers$J, PRACTITIONER_CITY_MASTER.pending, function (state, action) {
9998
+ state.practitioner_city_master.loading = true, state.practitioner_city_master.error = false, state.practitioner_city_master.loading = true;
9999
+ }), _defineProperty(_extraReducers$J, PRACTITIONER_CITY_MASTER.rejected, function (state, action) {
10000
+ state.practitioner_city_master.loading = false, state.practitioner_city_master.error = true, state.practitioner_city_master = action.payload;
10001
+ }), _defineProperty(_extraReducers$J, PRACTITIONER_PINCODE_MASTER.fulfilled, function (state, action) {
10002
+ state.practitioner_pincode_master.loading = false, state.practitioner_pincode_master.error = false, state.practitioner_pincode_master = action.payload;
10003
+ }), _defineProperty(_extraReducers$J, PRACTITIONER_PINCODE_MASTER.pending, function (state, action) {
10004
+ state.practitioner_pincode_master.loading = true, state.practitioner_pincode_master.error = false, state.practitioner_pincode_master.loading = true;
10005
+ }), _defineProperty(_extraReducers$J, PRACTITIONER_PINCODE_MASTER.rejected, function (state, action) {
10006
+ state.practitioner_pincode_master.loading = false, state.practitioner_pincode_master.error = true, state.practitioner_pincode_master = action.payload;
9526
10007
  }), _extraReducers$J)
9527
10008
  });
9528
10009
  var practitionerMasterActions = {
9529
10010
  PRACTITIONER_MASTERS: PRACTITIONER_MASTERS,
9530
- PRACTITIONER_GET_BY_ID: PRACTITIONER_GET_BY_ID
10011
+ PRACTITIONER_GET_BY_ID: PRACTITIONER_GET_BY_ID,
10012
+ PRACTITIONER_COUNTRY_MASTER: PRACTITIONER_COUNTRY_MASTER,
10013
+ PRACTITIONER_STATE_MASTER: PRACTITIONER_STATE_MASTER,
10014
+ PRACTITIONER_DISTRICT_MASTER: PRACTITIONER_DISTRICT_MASTER,
10015
+ PRACTITIONER_CITY_MASTER: PRACTITIONER_CITY_MASTER,
10016
+ PRACTITIONER_PINCODE_MASTER: PRACTITIONER_PINCODE_MASTER
9531
10017
  };
9532
10018
  var practitionerMasterSlice$1 = practitionerMasterSlice.reducer;
9533
10019
 
@@ -17377,7 +17863,7 @@ var masterQuery$5 = {
17377
17863
  // }`,
17378
17864
  "age_range_group": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"AgeRanges\",\n \"sort\":\"AgeRanges.agerangecode\",\n \"filter\":\"AgeRanges.activestatus == true && AgeRanges.status==true\",\n \"return_fields\": \"{id:AgeRanges.id, _id:AgeRanges._id, agerangecode:AgeRanges.agerangecode, longdesc:AgeRanges.longdesc, shortdesc:AgeRanges.shortdesc,AgeCategory:AgeRanges.AgeCategory}\"\n }"),
17379
17865
  "age_category": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"AgeCategory\",\n \"filter\":\"AgeCategory.activestatus == true\",\n \"return_fields\": \"{id:AgeCategory.id, _id:AgeCategory._id, code:AgeCategory.code, age_minimum:AgeCategory.age_minimum, age_maximum:AgeCategory.age_maximum, description:AgeCategory.description,UOM:document(document(AgeCategory.UOM).coding)}\",\n \"sort\": \"AgeCategory.description\"\n }"),
17380
- "default_frequency": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"FrequencyMaster\",\n \"sort\": \"FrequencyMaster.shortdesc\",\n \"filter\": \"FrequencyMaster.activestatus==true\",\n \"return_fields\": \"{_id:FrequencyMaster._id,id:FrequencyMaster.id,freqcode:FrequencyMaster.freqcode,longdesc:FrequencyMaster.longdesc,shortdesc:FrequencyMaster.shortdesc}\"\n }"),
17866
+ "default_frequency": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"FrequencyMaster\",\n \"sort\": \"FrequencyMaster.shortdesc\",\n \"filter\": \"FrequencyMaster._key != null && FrequencyMaster.longdesc != null && FrequencyMaster.activestatus==true && FrequencyMaster.status==true\",\n \"return_fields\": \"{_id:FrequencyMaster._id,id:FrequencyMaster.id,freqcode:FrequencyMaster.freqcode,longdesc:FrequencyMaster.longdesc,shortdesc:FrequencyMaster.shortdesc}\"\n }"),
17381
17867
  "actions": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='DRUGACTION' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
17382
17868
  "status": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='DRUGSTATUS' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
17383
17869
  "drug_item_master": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"DrugItemMaster\",\n \"sort\": \"DrugItemMaster.shortdesc\",\n \"filter\": \"DrugItemMaster.activestatus==true && DrugItemMaster.effectivefrom <= DATE_TIMESTAMP(DATE_NOW()/1000) && (DrugItemMaster.effectiveto == 0 || DrugItemMaster.effectiveto == null ? DrugItemMaster.effectiveto==0: DrugItemMaster.effectiveto >= DATE_TIMESTAMP(DATE_NOW()/1000))\",\n \"return_fields\": \"{_id:DrugItemMaster._id,id:DrugItemMaster.id,itemcode:DrugItemMaster.itemcode,shortdesc:DrugItemMaster.shortdesc,longdesc:DrugItemMaster.longdesc,effectivefrom:DrugItemMaster.effectivefrom,effectiveto:DrugItemMaster.effectiveto}\"\n }")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primary_care_admin_binder",
3
- "version": "0.1.42",
3
+ "version": "0.1.46",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",