primarycare-binder 1.1.84 → 1.1.87

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 +31 -24
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -8169,7 +8169,7 @@ var queries$b = {
8169
8169
  },
8170
8170
  codablemasterGetPatientname: {
8171
8171
  query: function query(patientName) {
8172
- return "UPPER(DOCUMENT(Person.name)[*].text) LIKE '%".concat(patientName, "%'");
8172
+ return "(LIKE(DOCUMENT(Person.name)[0].text,'%".concat(patientName, "%',true) || LIKE(DOCUMENT(Person.name)[0].given,'%").concat(patientName, "%',true) || LIKE(DOCUMENT(Person.name)[0].family,'%").concat(patientName, "%',true)) && Person.activestatus == true");
8173
8173
  },
8174
8174
  returnFields: "{prefix: DOCUMENT(Person.name)[*].prefix,gender: Person.gender,birthDate: Person.birthDay,suffix: DOCUMENT(Person.name)[*].suffix, nameObj: DOCUMENT(Person.name)[*], name: DOCUMENT(Person.name)[*].text, personId: Person.Id,patientDetail: (for pat in Patient FILTER pat.personID == Person.Id RETURN merge(pat,{name:(for nam in HumanNameMaster filter nam._id in pat.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{photo:document(pat.photo)})),telecom: Document(Person.telecom),photo:document(Person.photo)}"
8175
8175
  },
@@ -18745,7 +18745,7 @@ var GET_ENCOUNTER_HEADER = createAsyncThunk("OrganizationRegisterPatientApiSlice
18745
18745
  db_name: dbName,
18746
18746
  entity: "Encounter",
18747
18747
  filter: "Encounter.patient_id == ".concat(patientId, " && Encounter.id==").concat(encounterId, " && Encounter.activestatus == true"),
18748
- return_fields: "merge({id:Encounter.id},{_id:Encounter._id},{_key:Encounter._key},{encounterdate:Encounter.encounterdate},{encounter_no:Encounter.encounter_no},{type:document(Encounter.type)[*].display},{visit_type:Encounter.visit_type},{location:(for doc in Encounter.location for loc in LocationMaster filter loc._id == doc.location_id return document(document(loc.locationType).coding))},{Practitioner_id:(for part in Encounter.participant for practId in Practitioner filter practId.id == part.Practitioner_id return {name:(for doc in HumanNameMaster filter doc._id in practId.name return merge(doc,{use:(document(document(doc.use).coding)),prefix:(document(document(doc.prefix).coding)),suffix:(document(document(doc.suffix).coding))}))} )},{PractitionerRole_id:(for part in Encounter.participant for practRole in PractitionerRole filter practRole.id == part.PractitionerRole_id return document(document(practRole.role).coding) )})",
18748
+ return_fields: "merge({id:adqolcEncounter.id},{_id:adqolcEncounter._id},{_key:adqolcEncounter._key},{encounterdate:adqolcEncounter.encounterdate},{encounter_no:adqolcEncounter.encounter_no},{type:document(adqolcEncounter.type)[*].display},{visit_type:adqolcEncounter.visit_type},{location:(for doc in adqolcEncounter.location for loc in LocationMaster filter loc._id == doc.location_id return document(document(loc.locationType).coding))},{Practitioner_id:(for part in adqolcEncounter.participant for practId in Practitioner filter practId.id == part.Practitioner_id return {name:(for doc in HumanNameMaster filter doc._id in practId.name return merge(doc,{use:(document(document(doc.use).coding)),prefix:(document(document(doc.prefix).coding)),suffix:(document(document(doc.suffix).coding))})),communication:document(practId.communication)[*]} )},{PractitionerRole_id:(for part in adqolcEncounter.participant for practRole in PractitionerRole filter practRole.id == part.PractitionerRole_id return document(document(practRole.role).coding) )})",
18749
18749
  sort: "Encounter.encounterdate desc"
18750
18750
  };
18751
18751
  _context13.next = 7;
@@ -19317,7 +19317,7 @@ var dashboardQuery = {
19317
19317
  db_name: dbName,
19318
19318
  entity: "Schedule",
19319
19319
  filter: "Schedule.start >=".concat(startDate, " AND Schedule.start<=").concat(endDate, " AND DOCUMENT(Schedule.resourceCode).id==").concat(loginId, " AND Schedule.activestatus==true"),
19320
- return_fields: "MERGE(Schedule,{slot:(FOR slt IN Slot FILTER Schedule.id IN slt.ScheduleID AND slt.start>=".concat(startTime, " AND slt.end<=").concat(endTime, " RETURN MERGE(slt,{Appointment:(FOR app IN Appointment FILTER slt.id IN app.slotID RETURN app),Type:slt.Maxbooking>0?'Slab':'Slot'}))})")
19320
+ return_fields: "MERGE(Schedule,{slot:(FOR slt IN Slot FILTER Schedule.id IN slt.ScheduleID AND slt.start>=".concat(startTime, " AND slt.end<=").concat(endTime, " RETURN MERGE(slt,{Appointment:(FOR app IN Appointment FILTER slt.id IN app.slotID RETURN app),Type:slt.SlotSlabInd}))})")
19321
19321
  } // 2: {},
19322
19322
  // 3: {},
19323
19323
 
@@ -25705,15 +25705,22 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
25705
25705
  orgData = _context4.sent;
25706
25706
  component = [];
25707
25707
  stateDatakey.map(function (val) {
25708
+ var _payload$dynamicValue, _payload$dynamicValue2;
25709
+
25708
25710
  var value = payload.dynamicValue[val] ? parseFloat(payload.dynamicValue[val]) : 0;
25709
25711
  var isnormalData = payload.dynamicValue[val + "normalorabnormal"] == "true" ? true : false;
25710
25712
  var abnormalmsg = payload.dynamicValue[val + "uom"];
25713
+
25714
+ var _id = (_payload$dynamicValue = payload.dynamicValue[val + "_id"]) !== null && _payload$dynamicValue !== void 0 ? _payload$dynamicValue : "";
25715
+
25716
+ var default_unit_id = (_payload$dynamicValue2 = payload.dynamicValue[val + "uom_id"]) !== null && _payload$dynamicValue2 !== void 0 ? _payload$dynamicValue2 : "";
25711
25717
  component.push({
25712
- obsinternalid: "",
25718
+ obsinternalid: _id,
25713
25719
  obscode: val,
25714
25720
  obsvalue: value,
25715
25721
  isabnormal: isnormalData,
25716
- abnormalmsg: abnormalmsg ? JSON.stringify(abnormalmsg) : ""
25722
+ abnormalmsg: abnormalmsg ? JSON.stringify(abnormalmsg) : "",
25723
+ obsuom: default_unit_id
25717
25724
  });
25718
25725
  });
25719
25726
  payloadData = {
@@ -28524,7 +28531,7 @@ var queries$6 = {
28524
28531
 
28525
28532
  var generateResJson$3 = function generateResJson(dataList, arr) {
28526
28533
  var list = dataList.map(function (val) {
28527
- var _val$diagnosis, _val$performer, _val$recurrent, _val$recurrent$, _val$priority, _val$OrderNature, _utcTOLocal, _val$recurrent2, _val$recurrent2$, _utcTOLocal2, _val$recurrent3, _val$recurrent3$, _JSON$stringify, _val$recurrent4, _val$recurrent4$, _val$recurrent$0$ever, _val$recurrent5, _val$recurrent5$, _val$recurrent$0$ever2, _val$recurrent6, _val$recurrent6$, _utcTOLocal3, _val$recurrent7, _val$recurrent7$, _JSON$stringify2, _val$recurrent8, _val$recurrent8$, _val$recurrent9, _val$recurrent9$, _utcTOLocal4, _val$recurrent10, _val$recurrent10$, _utcTOLocal5, _val$Requestor, _val$Requestor$, _val$Requestor$$organ, _val$Requestor2, _val$Requestor2$, _val$Requestor2$$orga, _val$Requestor3, _val$Requestor3$, _val$Requestor3$$orga, _val$Requestor$0$prac, _val$Requestor4, _val$Requestor4$, _val$Requestor4$$prac, _val$Requestor$0$prac2, _val$Requestor5, _val$Requestor5$, _val$Requestor5$$prac, _val$Requestor6, _val$Requestor6$, _val$Requestor6$$prac, _val$Requestor7, _val$Requestor7$, _val$Requestor7$$prac, _val$Requestor8, _val$Requestor8$, _val$Requestor8$$prac, _val$Requestor8$$prac2, _val$Requestor8$$prac3, _val$Requestor9, _val$Requestor9$, _val$Requestor9$$prac, _val$Requestor9$$prac2, _val$Requestor10, _val$Requestor10$, _val$Requestor10$$pra, _val$Requestor10$$pra2, _val$Requestor11, _val$Requestor11$, _val$Requestor11$$pra, _val$Requestor11$$pra2, _val$Requestor11$$pra3, _val$specimenRelated$, _val$specimenRelated$2, _val$specimenRelated$3, _val$specimenRelated$4, _val$specimenRelated$5, _val$specimenRelated$6, _val$specimenRelated$7, _val$specimenRelated$8, _val$specimenRelated$9, _val$specimenRelated$10, _val$specimenRelated$11, _val$patientInstructi, _val$patientInstructi2, _val$patientInstructi3, _val$patientInstructi4, _val$patientInstructi5, _val$patientInstructi6, _val$patientInstructi7, _val$patientInstructi8, _val$preparatoryInstr, _val$preparatoryInstr2, _val$preparatoryInstr3, _val$preparatoryInstr4, _val$preparatoryInstr5, _val$preparatoryInstr6, _val$preparatoryInstr7, _val$preparatoryInstr8, _val$departmentalInst, _val$departmentalInst2, _val$departmentalInst3, _val$departmentalInst4, _val$departmentalInst5, _val$departmentalInst6, _val$departmentalInst7, _val$departmentalInst8, _val$attribute, _val$attribute$, _val$attribute2, _val$attribute2$, _val$attribute$0$bedS, _val$attribute3, _val$attribute3$, _val$attribute$0$cont, _val$attribute4, _val$attribute4$, _val$createddate, _val$changeStatus, _val$changeStatus2, _val$changeStatus3, _val$statushistory, _val$statusreason, _val$accessionNum;
28534
+ var _val$diagnosis, _val$performer, _val$recurrent, _val$recurrent$, _val$priority, _val$OrderNature, _utcTOLocal, _val$recurrent2, _val$recurrent2$, _utcTOLocal2, _val$recurrent3, _val$recurrent3$, _JSON$stringify, _val$recurrent4, _val$recurrent4$, _val$recurrent$0$ever, _val$recurrent5, _val$recurrent5$, _val$recurrent$0$ever2, _val$recurrent6, _val$recurrent6$, _utcTOLocal3, _val$recurrent7, _val$recurrent7$, _JSON$stringify2, _val$recurrent8, _val$recurrent8$, _val$recurrent9, _val$recurrent9$, _utcTOLocal4, _val$recurrent10, _val$recurrent10$, _utcTOLocal5, _val$Requestor$0$orga, _val$Requestor, _val$Requestor$, _val$Requestor$$organ, _val$Requestor$0$orga2, _val$Requestor2, _val$Requestor2$, _val$Requestor2$$orga, _val$Requestor$0$orga3, _val$Requestor3, _val$Requestor3$, _val$Requestor3$$orga, _val$Requestor$0$prac, _val$Requestor4, _val$Requestor4$, _val$Requestor4$$prac, _val$Requestor$0$prac2, _val$Requestor5, _val$Requestor5$, _val$Requestor5$$prac, _val$Requestor$0$prac3, _val$Requestor6, _val$Requestor6$, _val$Requestor6$$prac, _val$Requestor$0$prac4, _val$Requestor7, _val$Requestor7$, _val$Requestor7$$prac, _val$Requestor$0$prac5, _val$Requestor8, _val$Requestor8$, _val$Requestor8$$prac, _val$Requestor8$$prac2, _val$Requestor8$$prac3, _val$Requestor$0$prac6, _val$Requestor9, _val$Requestor9$, _val$Requestor9$$prac, _val$Requestor9$$prac2, _val$Requestor$0$prac7, _val$Requestor10, _val$Requestor10$, _val$Requestor10$$pra, _val$Requestor10$$pra2, _makeName, _val$Requestor11, _val$Requestor11$, _val$Requestor11$$pra, _val$Requestor11$$pra2, _val$Requestor11$$pra3, _val$specimenRelated$, _val$specimenRelated$2, _val$specimenRelated$3, _val$specimenRelated$4, _val$specimenRelated$5, _val$specimenRelated$6, _val$specimenRelated$7, _val$specimenRelated$8, _val$specimenRelated$9, _val$specimenRelated$10, _val$specimenRelated$11, _val$patientInstructi, _val$patientInstructi2, _val$patientInstructi3, _val$patientInstructi4, _val$patientInstructi5, _val$patientInstructi6, _val$patientInstructi7, _val$patientInstructi8, _val$preparatoryInstr, _val$preparatoryInstr2, _val$preparatoryInstr3, _val$preparatoryInstr4, _val$preparatoryInstr5, _val$preparatoryInstr6, _val$preparatoryInstr7, _val$preparatoryInstr8, _val$departmentalInst, _val$departmentalInst2, _val$departmentalInst3, _val$departmentalInst4, _val$departmentalInst5, _val$departmentalInst6, _val$departmentalInst7, _val$departmentalInst8, _val$attribute, _val$attribute$, _val$attribute2, _val$attribute2$, _val$attribute$0$bedS, _val$attribute3, _val$attribute3$, _val$attribute$0$cont, _val$attribute4, _val$attribute4$, _val$createddate, _val$changeStatus, _val$changeStatus2, _val$changeStatus3, _val$statushistory, _val$statusreason, _val$accessionNum;
28528
28535
 
28529
28536
  var diagnosisData = val === null || val === void 0 ? void 0 : (_val$diagnosis = val.diagnosis) === null || _val$diagnosis === void 0 ? void 0 : _val$diagnosis.map(function (v) {
28530
28537
  return {
@@ -28604,21 +28611,21 @@ var generateResJson$3 = function generateResJson(dataList, arr) {
28604
28611
  qty: JSON.stringify(val === null || val === void 0 ? void 0 : val.orderQty),
28605
28612
  requestorDetails: {
28606
28613
  organization: {
28607
- label: val === null || val === void 0 ? void 0 : (_val$Requestor = val.Requestor) === null || _val$Requestor === void 0 ? void 0 : (_val$Requestor$ = _val$Requestor[0]) === null || _val$Requestor$ === void 0 ? void 0 : (_val$Requestor$$organ = _val$Requestor$.organization) === null || _val$Requestor$$organ === void 0 ? void 0 : _val$Requestor$$organ._id,
28608
- value: val === null || val === void 0 ? void 0 : (_val$Requestor2 = val.Requestor) === null || _val$Requestor2 === void 0 ? void 0 : (_val$Requestor2$ = _val$Requestor2[0]) === null || _val$Requestor2$ === void 0 ? void 0 : (_val$Requestor2$$orga = _val$Requestor2$.organization) === null || _val$Requestor2$$orga === void 0 ? void 0 : _val$Requestor2$$orga.name,
28609
- id: val === null || val === void 0 ? void 0 : (_val$Requestor3 = val.Requestor) === null || _val$Requestor3 === void 0 ? void 0 : (_val$Requestor3$ = _val$Requestor3[0]) === null || _val$Requestor3$ === void 0 ? void 0 : (_val$Requestor3$$orga = _val$Requestor3$.organization) === null || _val$Requestor3$$orga === void 0 ? void 0 : _val$Requestor3$$orga.id
28614
+ label: (_val$Requestor$0$orga = val === null || val === void 0 ? void 0 : (_val$Requestor = val.Requestor) === null || _val$Requestor === void 0 ? void 0 : (_val$Requestor$ = _val$Requestor[0]) === null || _val$Requestor$ === void 0 ? void 0 : (_val$Requestor$$organ = _val$Requestor$.organization) === null || _val$Requestor$$organ === void 0 ? void 0 : _val$Requestor$$organ._id) !== null && _val$Requestor$0$orga !== void 0 ? _val$Requestor$0$orga : "",
28615
+ value: (_val$Requestor$0$orga2 = val === null || val === void 0 ? void 0 : (_val$Requestor2 = val.Requestor) === null || _val$Requestor2 === void 0 ? void 0 : (_val$Requestor2$ = _val$Requestor2[0]) === null || _val$Requestor2$ === void 0 ? void 0 : (_val$Requestor2$$orga = _val$Requestor2$.organization) === null || _val$Requestor2$$orga === void 0 ? void 0 : _val$Requestor2$$orga.name) !== null && _val$Requestor$0$orga2 !== void 0 ? _val$Requestor$0$orga2 : "",
28616
+ id: (_val$Requestor$0$orga3 = val === null || val === void 0 ? void 0 : (_val$Requestor3 = val.Requestor) === null || _val$Requestor3 === void 0 ? void 0 : (_val$Requestor3$ = _val$Requestor3[0]) === null || _val$Requestor3$ === void 0 ? void 0 : (_val$Requestor3$$orga = _val$Requestor3$.organization) === null || _val$Requestor3$$orga === void 0 ? void 0 : _val$Requestor3$$orga.id) !== null && _val$Requestor$0$orga3 !== void 0 ? _val$Requestor$0$orga3 : ""
28610
28617
  },
28611
28618
  practitionerRole: {
28612
28619
  label: (_val$Requestor$0$prac = val === null || val === void 0 ? void 0 : (_val$Requestor4 = val.Requestor) === null || _val$Requestor4 === void 0 ? void 0 : (_val$Requestor4$ = _val$Requestor4[0]) === null || _val$Requestor4$ === void 0 ? void 0 : (_val$Requestor4$$prac = _val$Requestor4$.practRole) === null || _val$Requestor4$$prac === void 0 ? void 0 : _val$Requestor4$$prac.display) !== null && _val$Requestor$0$prac !== void 0 ? _val$Requestor$0$prac : "",
28613
28620
  value: (_val$Requestor$0$prac2 = val === null || val === void 0 ? void 0 : (_val$Requestor5 = val.Requestor) === null || _val$Requestor5 === void 0 ? void 0 : (_val$Requestor5$ = _val$Requestor5[0]) === null || _val$Requestor5$ === void 0 ? void 0 : (_val$Requestor5$$prac = _val$Requestor5$.practRole) === null || _val$Requestor5$$prac === void 0 ? void 0 : _val$Requestor5$$prac.display) !== null && _val$Requestor$0$prac2 !== void 0 ? _val$Requestor$0$prac2 : "",
28614
- id: val === null || val === void 0 ? void 0 : (_val$Requestor6 = val.Requestor) === null || _val$Requestor6 === void 0 ? void 0 : (_val$Requestor6$ = _val$Requestor6[0]) === null || _val$Requestor6$ === void 0 ? void 0 : (_val$Requestor6$$prac = _val$Requestor6$.practRole) === null || _val$Requestor6$$prac === void 0 ? void 0 : _val$Requestor6$$prac.id,
28615
- _id: val === null || val === void 0 ? void 0 : (_val$Requestor7 = val.Requestor) === null || _val$Requestor7 === void 0 ? void 0 : (_val$Requestor7$ = _val$Requestor7[0]) === null || _val$Requestor7$ === void 0 ? void 0 : (_val$Requestor7$$prac = _val$Requestor7$.practRole) === null || _val$Requestor7$$prac === void 0 ? void 0 : _val$Requestor7$$prac._id
28621
+ id: (_val$Requestor$0$prac3 = val === null || val === void 0 ? void 0 : (_val$Requestor6 = val.Requestor) === null || _val$Requestor6 === void 0 ? void 0 : (_val$Requestor6$ = _val$Requestor6[0]) === null || _val$Requestor6$ === void 0 ? void 0 : (_val$Requestor6$$prac = _val$Requestor6$.practRole) === null || _val$Requestor6$$prac === void 0 ? void 0 : _val$Requestor6$$prac.id) !== null && _val$Requestor$0$prac3 !== void 0 ? _val$Requestor$0$prac3 : '',
28622
+ _id: (_val$Requestor$0$prac4 = val === null || val === void 0 ? void 0 : (_val$Requestor7 = val.Requestor) === null || _val$Requestor7 === void 0 ? void 0 : (_val$Requestor7$ = _val$Requestor7[0]) === null || _val$Requestor7$ === void 0 ? void 0 : (_val$Requestor7$$prac = _val$Requestor7$.practRole) === null || _val$Requestor7$$prac === void 0 ? void 0 : _val$Requestor7$$prac._id) !== null && _val$Requestor$0$prac4 !== void 0 ? _val$Requestor$0$prac4 : ""
28616
28623
  },
28617
- practitionerId: val === null || val === void 0 ? void 0 : (_val$Requestor8 = val.Requestor) === null || _val$Requestor8 === void 0 ? void 0 : (_val$Requestor8$ = _val$Requestor8[0]) === null || _val$Requestor8$ === void 0 ? void 0 : (_val$Requestor8$$prac = _val$Requestor8$.practId) === null || _val$Requestor8$$prac === void 0 ? void 0 : (_val$Requestor8$$prac2 = _val$Requestor8$$prac[0]) === null || _val$Requestor8$$prac2 === void 0 ? void 0 : (_val$Requestor8$$prac3 = _val$Requestor8$$prac2.name) === null || _val$Requestor8$$prac3 === void 0 ? void 0 : _val$Requestor8$$prac3[0],
28624
+ practitionerId: (_val$Requestor$0$prac5 = val === null || val === void 0 ? void 0 : (_val$Requestor8 = val.Requestor) === null || _val$Requestor8 === void 0 ? void 0 : (_val$Requestor8$ = _val$Requestor8[0]) === null || _val$Requestor8$ === void 0 ? void 0 : (_val$Requestor8$$prac = _val$Requestor8$.practId) === null || _val$Requestor8$$prac === void 0 ? void 0 : (_val$Requestor8$$prac2 = _val$Requestor8$$prac[0]) === null || _val$Requestor8$$prac2 === void 0 ? void 0 : (_val$Requestor8$$prac3 = _val$Requestor8$$prac2.name) === null || _val$Requestor8$$prac3 === void 0 ? void 0 : _val$Requestor8$$prac3[0]) !== null && _val$Requestor$0$prac5 !== void 0 ? _val$Requestor$0$prac5 : "",
28618
28625
  orderBy: {
28619
- value: val === null || val === void 0 ? void 0 : (_val$Requestor9 = val.Requestor) === null || _val$Requestor9 === void 0 ? void 0 : (_val$Requestor9$ = _val$Requestor9[0]) === null || _val$Requestor9$ === void 0 ? void 0 : (_val$Requestor9$$prac = _val$Requestor9$.practId) === null || _val$Requestor9$$prac === void 0 ? void 0 : (_val$Requestor9$$prac2 = _val$Requestor9$$prac[0]) === null || _val$Requestor9$$prac2 === void 0 ? void 0 : _val$Requestor9$$prac2.id,
28620
- practitioner_id: val === null || val === void 0 ? void 0 : (_val$Requestor10 = val.Requestor) === null || _val$Requestor10 === void 0 ? void 0 : (_val$Requestor10$ = _val$Requestor10[0]) === null || _val$Requestor10$ === void 0 ? void 0 : (_val$Requestor10$$pra = _val$Requestor10$.practId) === null || _val$Requestor10$$pra === void 0 ? void 0 : (_val$Requestor10$$pra2 = _val$Requestor10$$pra[0]) === null || _val$Requestor10$$pra2 === void 0 ? void 0 : _val$Requestor10$$pra2.practitioner_id,
28621
- label: makeName((val === null || val === void 0 ? void 0 : (_val$Requestor11 = val.Requestor) === null || _val$Requestor11 === void 0 ? void 0 : (_val$Requestor11$ = _val$Requestor11[0]) === null || _val$Requestor11$ === void 0 ? void 0 : (_val$Requestor11$$pra = _val$Requestor11$.practId) === null || _val$Requestor11$$pra === void 0 ? void 0 : (_val$Requestor11$$pra2 = _val$Requestor11$$pra[0]) === null || _val$Requestor11$$pra2 === void 0 ? void 0 : (_val$Requestor11$$pra3 = _val$Requestor11$$pra2.name) === null || _val$Requestor11$$pra3 === void 0 ? void 0 : _val$Requestor11$$pra3[0]) || {})
28626
+ value: (_val$Requestor$0$prac6 = val === null || val === void 0 ? void 0 : (_val$Requestor9 = val.Requestor) === null || _val$Requestor9 === void 0 ? void 0 : (_val$Requestor9$ = _val$Requestor9[0]) === null || _val$Requestor9$ === void 0 ? void 0 : (_val$Requestor9$$prac = _val$Requestor9$.practId) === null || _val$Requestor9$$prac === void 0 ? void 0 : (_val$Requestor9$$prac2 = _val$Requestor9$$prac[0]) === null || _val$Requestor9$$prac2 === void 0 ? void 0 : _val$Requestor9$$prac2.id) !== null && _val$Requestor$0$prac6 !== void 0 ? _val$Requestor$0$prac6 : "",
28627
+ practitioner_id: (_val$Requestor$0$prac7 = val === null || val === void 0 ? void 0 : (_val$Requestor10 = val.Requestor) === null || _val$Requestor10 === void 0 ? void 0 : (_val$Requestor10$ = _val$Requestor10[0]) === null || _val$Requestor10$ === void 0 ? void 0 : (_val$Requestor10$$pra = _val$Requestor10$.practId) === null || _val$Requestor10$$pra === void 0 ? void 0 : (_val$Requestor10$$pra2 = _val$Requestor10$$pra[0]) === null || _val$Requestor10$$pra2 === void 0 ? void 0 : _val$Requestor10$$pra2.practitioner_id) !== null && _val$Requestor$0$prac7 !== void 0 ? _val$Requestor$0$prac7 : "",
28628
+ label: (_makeName = makeName((val === null || val === void 0 ? void 0 : (_val$Requestor11 = val.Requestor) === null || _val$Requestor11 === void 0 ? void 0 : (_val$Requestor11$ = _val$Requestor11[0]) === null || _val$Requestor11$ === void 0 ? void 0 : (_val$Requestor11$$pra = _val$Requestor11$.practId) === null || _val$Requestor11$$pra === void 0 ? void 0 : (_val$Requestor11$$pra2 = _val$Requestor11$$pra[0]) === null || _val$Requestor11$$pra2 === void 0 ? void 0 : (_val$Requestor11$$pra3 = _val$Requestor11$$pra2.name) === null || _val$Requestor11$$pra3 === void 0 ? void 0 : _val$Requestor11$$pra3[0]) || {})) !== null && _makeName !== void 0 ? _makeName : ""
28622
28629
  }
28623
28630
  },
28624
28631
  indication: {
@@ -28700,7 +28707,7 @@ var RecurrentgenerateResJson$2 = function RecurrentgenerateResJson(dataList, arr
28700
28707
  return el != null;
28701
28708
  });
28702
28709
  var list = dataList.map(function (val) {
28703
- var _val$diagnosis2, _val$performer2, _val$recurrent11, _val$recurrent11$, _val$priority2, _val$OrderNature2, _utcTOLocal6, _JSON$stringify3, _val$recurrent12, _val$recurrent12$, _val$recurrent$0$ever3, _val$recurrent13, _val$recurrent13$, _val$recurrent$0$ever4, _val$recurrent14, _val$recurrent14$, _utcTOLocal7, _val$recurrent15, _val$recurrent15$, _JSON$stringify4, _val$recurrent16, _val$recurrent16$, _val$recurrent17, _val$recurrent17$, _utcTOLocal8, _val$recurrent18, _val$recurrent18$, _utcTOLocal9, _val$Requestor12, _val$Requestor12$, _val$Requestor12$$org, _val$Requestor13, _val$Requestor13$, _val$Requestor13$$org, _val$Requestor14, _val$Requestor14$, _val$Requestor14$$org, _val$Requestor$0$prac3, _val$Requestor15, _val$Requestor15$, _val$Requestor15$$pra, _val$Requestor$0$prac4, _val$Requestor16, _val$Requestor16$, _val$Requestor16$$pra, _val$Requestor17, _val$Requestor17$, _val$Requestor17$$pra, _val$Requestor18, _val$Requestor18$, _val$Requestor18$$pra, _val$Requestor19, _val$Requestor19$, _val$Requestor19$$pra, _val$Requestor19$$pra2, _val$Requestor19$$pra3, _val$Requestor20, _val$Requestor20$, _val$Requestor20$$pra, _val$Requestor20$$pra2, _val$Requestor21, _val$Requestor21$, _val$Requestor21$$pra, _val$Requestor21$$pra2, _val$Requestor22, _val$Requestor22$, _val$Requestor22$$pra, _val$Requestor22$$pra2, _val$Requestor22$$pra3, _val$specimenRelated, _val$specimenRelated$12, _val$specimenRelated2, _val$specimenRelated3, _val$specimenRelated4, _val$specimenRelated5, _val$specimenRelated6, _val$specimenRelated7, _val$specimenRelated8, _val$specimenRelated9, _val$specimenRelated10, _val$specimenRelated11, _val$specimenRelated12, _val$specimenRelated13, _val$specimenRelated14, _val$specimenRelated15, _val$specimenRelated16, _val$specimenRelated17, _val$specimenRelated18, _val$specimenRelated19, _val$specimenRelated20, _val$specimenRelated21, _val$specimenRelated22, _val$patientInstructi9, _val$patientInstructi10, _val$patientInstructi11, _val$patientInstructi12, _val$patientInstructi13, _val$patientInstructi14, _val$patientInstructi15, _val$patientInstructi16, _val$preparatoryInstr9, _val$preparatoryInstr10, _val$preparatoryInstr11, _val$preparatoryInstr12, _val$preparatoryInstr13, _val$preparatoryInstr14, _val$preparatoryInstr15, _val$preparatoryInstr16, _val$departmentalInst9, _val$departmentalInst10, _val$departmentalInst11, _val$departmentalInst12, _val$departmentalInst13, _val$departmentalInst14, _val$departmentalInst15, _val$departmentalInst16, _val$attribute5, _val$attribute5$, _val$attribute6, _val$attribute6$, _val$attribute$0$bedS2, _val$attribute7, _val$attribute7$, _val$attribute$0$cont2, _val$attribute8, _val$attribute8$, _val$createddate2, _val$changeStatus4, _val$changeStatus5, _val$changeStatus6, _val$statushistory2, _val$statusreason2, _val$accessionNum2;
28710
+ var _val$diagnosis2, _val$performer2, _val$recurrent11, _val$recurrent11$, _val$priority2, _val$OrderNature2, _utcTOLocal6, _JSON$stringify3, _val$recurrent12, _val$recurrent12$, _val$recurrent$0$ever3, _val$recurrent13, _val$recurrent13$, _val$recurrent$0$ever4, _val$recurrent14, _val$recurrent14$, _utcTOLocal7, _val$recurrent15, _val$recurrent15$, _JSON$stringify4, _val$recurrent16, _val$recurrent16$, _val$recurrent17, _val$recurrent17$, _utcTOLocal8, _val$recurrent18, _val$recurrent18$, _utcTOLocal9, _val$Requestor12, _val$Requestor12$, _val$Requestor12$$org, _val$Requestor13, _val$Requestor13$, _val$Requestor13$$org, _val$Requestor14, _val$Requestor14$, _val$Requestor14$$org, _val$Requestor$0$prac8, _val$Requestor15, _val$Requestor15$, _val$Requestor15$$pra, _val$Requestor$0$prac9, _val$Requestor16, _val$Requestor16$, _val$Requestor16$$pra, _val$Requestor17, _val$Requestor17$, _val$Requestor17$$pra, _val$Requestor18, _val$Requestor18$, _val$Requestor18$$pra, _val$Requestor19, _val$Requestor19$, _val$Requestor19$$pra, _val$Requestor19$$pra2, _val$Requestor19$$pra3, _val$Requestor20, _val$Requestor20$, _val$Requestor20$$pra, _val$Requestor20$$pra2, _val$Requestor21, _val$Requestor21$, _val$Requestor21$$pra, _val$Requestor21$$pra2, _val$Requestor22, _val$Requestor22$, _val$Requestor22$$pra, _val$Requestor22$$pra2, _val$Requestor22$$pra3, _val$specimenRelated, _val$specimenRelated$12, _val$specimenRelated2, _val$specimenRelated3, _val$specimenRelated4, _val$specimenRelated5, _val$specimenRelated6, _val$specimenRelated7, _val$specimenRelated8, _val$specimenRelated9, _val$specimenRelated10, _val$specimenRelated11, _val$specimenRelated12, _val$specimenRelated13, _val$specimenRelated14, _val$specimenRelated15, _val$specimenRelated16, _val$specimenRelated17, _val$specimenRelated18, _val$specimenRelated19, _val$specimenRelated20, _val$specimenRelated21, _val$specimenRelated22, _val$patientInstructi9, _val$patientInstructi10, _val$patientInstructi11, _val$patientInstructi12, _val$patientInstructi13, _val$patientInstructi14, _val$patientInstructi15, _val$patientInstructi16, _val$preparatoryInstr9, _val$preparatoryInstr10, _val$preparatoryInstr11, _val$preparatoryInstr12, _val$preparatoryInstr13, _val$preparatoryInstr14, _val$preparatoryInstr15, _val$preparatoryInstr16, _val$departmentalInst9, _val$departmentalInst10, _val$departmentalInst11, _val$departmentalInst12, _val$departmentalInst13, _val$departmentalInst14, _val$departmentalInst15, _val$departmentalInst16, _val$attribute5, _val$attribute5$, _val$attribute6, _val$attribute6$, _val$attribute$0$bedS2, _val$attribute7, _val$attribute7$, _val$attribute$0$cont2, _val$attribute8, _val$attribute8$, _val$createddate2, _val$changeStatus4, _val$changeStatus5, _val$changeStatus6, _val$statushistory2, _val$statusreason2, _val$accessionNum2;
28704
28711
 
28705
28712
  var diagnosisData = val === null || val === void 0 ? void 0 : (_val$diagnosis2 = val.diagnosis) === null || _val$diagnosis2 === void 0 ? void 0 : _val$diagnosis2.map(function (v) {
28706
28713
  return {
@@ -28784,8 +28791,8 @@ var RecurrentgenerateResJson$2 = function RecurrentgenerateResJson(dataList, arr
28784
28791
  id: val === null || val === void 0 ? void 0 : (_val$Requestor14 = val.Requestor) === null || _val$Requestor14 === void 0 ? void 0 : (_val$Requestor14$ = _val$Requestor14[0]) === null || _val$Requestor14$ === void 0 ? void 0 : (_val$Requestor14$$org = _val$Requestor14$.organization) === null || _val$Requestor14$$org === void 0 ? void 0 : _val$Requestor14$$org.id
28785
28792
  },
28786
28793
  practitionerRole: {
28787
- label: (_val$Requestor$0$prac3 = val === null || val === void 0 ? void 0 : (_val$Requestor15 = val.Requestor) === null || _val$Requestor15 === void 0 ? void 0 : (_val$Requestor15$ = _val$Requestor15[0]) === null || _val$Requestor15$ === void 0 ? void 0 : (_val$Requestor15$$pra = _val$Requestor15$.practRole) === null || _val$Requestor15$$pra === void 0 ? void 0 : _val$Requestor15$$pra.display) !== null && _val$Requestor$0$prac3 !== void 0 ? _val$Requestor$0$prac3 : "",
28788
- value: (_val$Requestor$0$prac4 = val === null || val === void 0 ? void 0 : (_val$Requestor16 = val.Requestor) === null || _val$Requestor16 === void 0 ? void 0 : (_val$Requestor16$ = _val$Requestor16[0]) === null || _val$Requestor16$ === void 0 ? void 0 : (_val$Requestor16$$pra = _val$Requestor16$.practRole) === null || _val$Requestor16$$pra === void 0 ? void 0 : _val$Requestor16$$pra.display) !== null && _val$Requestor$0$prac4 !== void 0 ? _val$Requestor$0$prac4 : "",
28794
+ label: (_val$Requestor$0$prac8 = val === null || val === void 0 ? void 0 : (_val$Requestor15 = val.Requestor) === null || _val$Requestor15 === void 0 ? void 0 : (_val$Requestor15$ = _val$Requestor15[0]) === null || _val$Requestor15$ === void 0 ? void 0 : (_val$Requestor15$$pra = _val$Requestor15$.practRole) === null || _val$Requestor15$$pra === void 0 ? void 0 : _val$Requestor15$$pra.display) !== null && _val$Requestor$0$prac8 !== void 0 ? _val$Requestor$0$prac8 : "",
28795
+ value: (_val$Requestor$0$prac9 = val === null || val === void 0 ? void 0 : (_val$Requestor16 = val.Requestor) === null || _val$Requestor16 === void 0 ? void 0 : (_val$Requestor16$ = _val$Requestor16[0]) === null || _val$Requestor16$ === void 0 ? void 0 : (_val$Requestor16$$pra = _val$Requestor16$.practRole) === null || _val$Requestor16$$pra === void 0 ? void 0 : _val$Requestor16$$pra.display) !== null && _val$Requestor$0$prac9 !== void 0 ? _val$Requestor$0$prac9 : "",
28789
28796
  id: val === null || val === void 0 ? void 0 : (_val$Requestor17 = val.Requestor) === null || _val$Requestor17 === void 0 ? void 0 : (_val$Requestor17$ = _val$Requestor17[0]) === null || _val$Requestor17$ === void 0 ? void 0 : (_val$Requestor17$$pra = _val$Requestor17$.practRole) === null || _val$Requestor17$$pra === void 0 ? void 0 : _val$Requestor17$$pra.id,
28790
28797
  _id: val === null || val === void 0 ? void 0 : (_val$Requestor18 = val.Requestor) === null || _val$Requestor18 === void 0 ? void 0 : (_val$Requestor18$ = _val$Requestor18[0]) === null || _val$Requestor18$ === void 0 ? void 0 : (_val$Requestor18$$pra = _val$Requestor18$.practRole) === null || _val$Requestor18$$pra === void 0 ? void 0 : _val$Requestor18$$pra._id
28791
28798
  },
@@ -43415,7 +43422,7 @@ var orderSetDropDown = {
43415
43422
  };
43416
43423
 
43417
43424
  var makeRadiologyData = function makeRadiologyData(order, info) {
43418
- var _order$ordercategory, _info$org_id, _info$patientId, _info$encounterType, _info$encounterId, _order$orderSetsCode, _order$name, _order$orderType$_id, _order$orderType, _order$orderNature, _order$priority, _moment$unix, _order$startDay, _order$orderQty, _order$orderQtyUOM$_i, _order$orderQtyUOM, _info$status$value, _info$status, _order$freqValue, _order$freqValueUnit$, _order$freqValueUnit, _order$freqRate, _order$freqRateUnit$_, _order$freqRateUnit, _order$duration, _order$durationType$_, _order$durationType, _info$accessionNum, _order$IVDosDurValue, _order$IVDosDurUOM$_i, _order$IVDosDurUOM;
43425
+ var _order$ordercategory, _info$org_id, _info$patientId, _info$encounterType, _info$encounterId, _order$orderSetsCode, _order$name, _order$orderType$_id, _order$orderType, _order$orderNature, _order$priority, _moment$unix, _moment$unix2, _order$orderQty, _order$orderQtyUOM$_i, _order$orderQtyUOM, _info$status$value, _info$status, _order$freqValue, _order$freqValueUnit$, _order$freqValueUnit, _order$freqRate, _order$freqRateUnit$_, _order$freqRateUnit, _order$duration, _order$durationType$_, _order$durationType, _info$accessionNum, _order$IVDosDurValue, _order$IVDosDurUOM$_i, _order$IVDosDurUOM;
43419
43426
 
43420
43427
  return {
43421
43428
  db_name: dbName,
@@ -43438,8 +43445,8 @@ var makeRadiologyData = function makeRadiologyData(order, info) {
43438
43445
  OrderNature: (_order$orderNature = order === null || order === void 0 ? void 0 : order.orderNature) !== null && _order$orderNature !== void 0 ? _order$orderNature : "",
43439
43446
  orderMode: "",
43440
43447
  priority: (_order$priority = order === null || order === void 0 ? void 0 : order.priority) !== null && _order$priority !== void 0 ? _order$priority : "",
43441
- orderDateTime: (_moment$unix = moment$1(order === null || order === void 0 ? void 0 : order.startDay).unix()) !== null && _moment$unix !== void 0 ? _moment$unix : 0,
43442
- occuranceStartDate: (_order$startDay = order === null || order === void 0 ? void 0 : order.startDay) !== null && _order$startDay !== void 0 ? _order$startDay : 0,
43448
+ orderDateTime: (_moment$unix = moment$1(new Date()).unix()) !== null && _moment$unix !== void 0 ? _moment$unix : 0,
43449
+ occuranceStartDate: (_moment$unix2 = moment$1(new Date()).unix()) !== null && _moment$unix2 !== void 0 ? _moment$unix2 : 0,
43443
43450
  occuranceEndDate: 0,
43444
43451
  orderQty: (_order$orderQty = order === null || order === void 0 ? void 0 : order.orderQty) !== null && _order$orderQty !== void 0 ? _order$orderQty : 0,
43445
43452
  orderUOM: (_order$orderQtyUOM$_i = order === null || order === void 0 ? void 0 : (_order$orderQtyUOM = order.orderQtyUOM) === null || _order$orderQtyUOM === void 0 ? void 0 : _order$orderQtyUOM._id) !== null && _order$orderQtyUOM$_i !== void 0 ? _order$orderQtyUOM$_i : "",
@@ -43517,7 +43524,7 @@ var makeRadiologyData = function makeRadiologyData(order, info) {
43517
43524
  };
43518
43525
 
43519
43526
  var makeMedicationData = function makeMedicationData(order, info) {
43520
- var _info$org_id2, _info$patientId2, _info$encounterType2, _info$encounterId2, _order$drugType, _info$status$value2, _info$status2, _order$drugCode, _order$formCode, _order$routeCode, _order$dosageUOM$_id, _order$dosageUOM, _order$IVInfusRateVal, _order$IVInfusRateUOM, _order$IVInfusRateUOM2, _order$duration2, _order$durationType$_2, _order$durationType2, _order$name2, _moment$unix2, _order$notes, _order$practInstr, _order$IVDosDurValue2, _order$IVDosDurUOM$_i2, _order$IVDosDurUOM2;
43527
+ var _info$org_id2, _info$patientId2, _info$encounterType2, _info$encounterId2, _order$drugType, _info$status$value2, _info$status2, _order$drugCode, _order$formCode, _order$routeCode, _order$dosageUOM$_id, _order$dosageUOM, _order$IVInfusRateVal, _order$IVInfusRateUOM, _order$IVInfusRateUOM2, _order$duration2, _order$durationType$_2, _order$durationType2, _order$name2, _moment$unix3, _order$notes, _order$practInstr, _order$IVDosDurValue2, _order$IVDosDurUOM$_i2, _order$IVDosDurUOM2;
43521
43528
 
43522
43529
  return {
43523
43530
  db_name: dbName,
@@ -43532,7 +43539,7 @@ var makeMedicationData = function makeMedicationData(order, info) {
43532
43539
  patient_Id: (_info$patientId2 = info === null || info === void 0 ? void 0 : info.patientId) !== null && _info$patientId2 !== void 0 ? _info$patientId2 : "",
43533
43540
  encountertype: (_info$encounterType2 = info === null || info === void 0 ? void 0 : info.encounterType) !== null && _info$encounterType2 !== void 0 ? _info$encounterType2 : "",
43534
43541
  encounter_Id: (_info$encounterId2 = info === null || info === void 0 ? void 0 : info.encounterId) !== null && _info$encounterId2 !== void 0 ? _info$encounterId2 : "",
43535
- prescripionType: "",
43542
+ // prescripionType: "",
43536
43543
  prescriptionId: "",
43537
43544
  PrescriptionDate: 0,
43538
43545
  drugType: (_order$drugType = order === null || order === void 0 ? void 0 : order.drugType) !== null && _order$drugType !== void 0 ? _order$drugType : "",
@@ -43556,7 +43563,7 @@ var makeMedicationData = function makeMedicationData(order, info) {
43556
43563
  dosageDurationValue: (_order$duration2 = order === null || order === void 0 ? void 0 : order.duration) !== null && _order$duration2 !== void 0 ? _order$duration2 : 0,
43557
43564
  dosageDurationUOM: (_order$durationType$_2 = order === null || order === void 0 ? void 0 : (_order$durationType2 = order.durationType) === null || _order$durationType2 === void 0 ? void 0 : _order$durationType2._id) !== null && _order$durationType$_2 !== void 0 ? _order$durationType$_2 : "",
43558
43565
  orderdescription: (_order$name2 = order === null || order === void 0 ? void 0 : order.name) !== null && _order$name2 !== void 0 ? _order$name2 : "",
43559
- occurStartDateTime: (_moment$unix2 = moment$1().unix()) !== null && _moment$unix2 !== void 0 ? _moment$unix2 : 0,
43566
+ occurStartDateTime: (_moment$unix3 = moment$1().unix()) !== null && _moment$unix3 !== void 0 ? _moment$unix3 : 0,
43560
43567
  occurEndDateTime: 0,
43561
43568
  totPresQty: 0,
43562
43569
  totPresQtyUOM: "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primarycare-binder",
3
- "version": "1.1.84",
3
+ "version": "1.1.87",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",