primary_care_admin_binder 0.1.210 → 0.1.212

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 +21 -14
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -9046,17 +9046,18 @@ var getMasterQuery = function getMasterQuery() {
9046
9046
  active: ""
9047
9047
  }
9048
9048
  }),
9049
- location: JSON.stringify({
9050
- appcode: dbName,
9051
- requestid: "c27d71be-6c29-4024-aab3-1dd0a0a88c32",
9052
- filter: {
9053
- activestatus: true,
9054
- status: "active",
9055
- parentLocationId: "",
9056
- locationtype: null,
9057
- organizationId: ""
9058
- }
9059
- }),
9049
+ // not used in the practitioner screen.
9050
+ // location: JSON.stringify({
9051
+ // appcode: dbName,
9052
+ // requestid: "c27d71be-6c29-4024-aab3-1dd0a0a88c32",
9053
+ // filter: {
9054
+ // activestatus: true,
9055
+ // status: "active",
9056
+ // parentLocationId: "",
9057
+ // locationtype: null,
9058
+ // organizationId:""
9059
+ // }
9060
+ // }),
9060
9061
  nationality: JSON.stringify({
9061
9062
  appcode: dbName,
9062
9063
  requestid: "d3659637-f0aa-4e0d-86d6-61fd445f7dd5",
@@ -9069,7 +9070,7 @@ var getMasterQuery = function getMasterQuery() {
9069
9070
  }),
9070
9071
  country_code: JSON.stringify({
9071
9072
  appcode: dbName,
9072
- requestid: "d3659637-f0aa-4e0d-86d6-61fd445f7dd5",
9073
+ requestid: "197a8397-bf14-4204-9169-a7ff0440a9e2",
9073
9074
  filter: {
9074
9075
  display: "country",
9075
9076
  activestatus: true,
@@ -9205,7 +9206,7 @@ var generateReadJSON$5 = function generateReadJSON(data) {
9205
9206
  var practitionerbyrolelist = [];
9206
9207
  if (data !== null && data !== void 0 && data.practitioner_role && (data === null || data === void 0 || (_data$practitioner_ro = data.practitioner_role) === null || _data$practitioner_ro === void 0 ? void 0 : _data$practitioner_ro.length) > 0) {
9207
9208
  data.practitioner_role.map(function (val) {
9208
- var _val$specialtyid, _val$specialtyid2, _val$entitytype, _val$entitytype2, _val$entityname, _val$entityname2, _val$locationid, _val$locationid2, _val$role, _val$role2;
9209
+ var _val$specialtyid, _val$specialtyid2, _val$entitytype, _val$entitytype2, _val$entityname, _val$entityname2, _val$locationid, _val$locationid2, _val$department, _val$department2, _val$department3, _val$role, _val$role2;
9209
9210
  var practitionerData = {
9210
9211
  speciality: {
9211
9212
  label: val === null || val === void 0 || (_val$specialtyid = val.specialtyid) === null || _val$specialtyid === void 0 ? void 0 : _val$specialtyid.display,
@@ -9223,6 +9224,12 @@ var generateReadJSON$5 = function generateReadJSON(data) {
9223
9224
  label: val === null || val === void 0 || (_val$locationid = val.locationid) === null || _val$locationid === void 0 ? void 0 : _val$locationid.longdesc,
9224
9225
  _id: val === null || val === void 0 || (_val$locationid2 = val.locationid) === null || _val$locationid2 === void 0 ? void 0 : _val$locationid2._id
9225
9226
  },
9227
+ // Label is resolved by the screen from the facility's departments
9228
+ department: {
9229
+ _id: (val === null || val === void 0 || (_val$department = val.department) === null || _val$department === void 0 ? void 0 : _val$department._id) || (val === null || val === void 0 ? void 0 : val.departmentid),
9230
+ value: (val === null || val === void 0 || (_val$department2 = val.department) === null || _val$department2 === void 0 ? void 0 : _val$department2._id) || (val === null || val === void 0 ? void 0 : val.departmentid),
9231
+ label: (val === null || val === void 0 || (_val$department3 = val.department) === null || _val$department3 === void 0 ? void 0 : _val$department3.display) || ""
9232
+ },
9226
9233
  primary_specialty: val !== null && val !== void 0 && val.primaryspeciality ? val.primaryspeciality : false,
9227
9234
  select_role: {
9228
9235
  label: val === null || val === void 0 || (_val$role = val.role) === null || _val$role === void 0 ? void 0 : _val$role.display,
@@ -16305,7 +16312,7 @@ var masterQuery$7 = {
16305
16312
  locationMasterISD: function locationMasterISD() {
16306
16313
  return {
16307
16314
  appcode: _dbName,
16308
- requestid: "d3659637-f0aa-4e0d-86d6-61fd445f7dd5",
16315
+ requestid: "197a8397-bf14-4204-9169-a7ff0440a9e2",
16309
16316
  filter: {
16310
16317
  display: "country",
16311
16318
  activestatus: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primary_care_admin_binder",
3
- "version": "0.1.210",
3
+ "version": "0.1.212",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",