primarycare-binder 1.1.131 → 1.1.133

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 CHANGED
@@ -8169,7 +8169,7 @@ var queries$b = {
8169
8169
  },
8170
8170
  codablemasterGetFinancial: {
8171
8171
  query: function query(patientId) {
8172
- return "document(Account.linkidenvalue).id == ".concat(patientId, " && Account.activestatus==true");
8172
+ return "Account.linkidenvalue == '".concat(patientId, "' && Account.activestatus==true");
8173
8173
  },
8174
8174
  // `Account.guarantor[0].patient_id==${patientId}`,
8175
8175
  // "filter": "Account.patient_id==@patient_id",
@@ -18982,10 +18982,10 @@ var GET_PATIENT__ID_BY_ID = createAsyncThunk("OrganizationRegisterPatientApiSlic
18982
18982
  _context6.prev = 2;
18983
18983
  patient_id = payload.patient_id;
18984
18984
  body = {
18985
- "db_name": dbName,
18986
- "entity": "Patient",
18987
- "filter": "Patient.id==".concat(patient_id, " && Patient.activestatus==true"),
18988
- "return_fields": "Patient"
18985
+ db_name: dbName,
18986
+ entity: "Patient",
18987
+ filter: "Patient.id==".concat(patient_id, " && Patient.activestatus==true"),
18988
+ return_fields: "Patient"
18989
18989
  };
18990
18990
  _context6.next = 7;
18991
18991
  return fetchData$3({
@@ -19882,10 +19882,10 @@ var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/get
19882
19882
  db_name: dbName,
19883
19883
  entity: "Person,Patient",
19884
19884
  filter: {
19885
- "Person": "(LIKE(DOCUMENT(Person.name)[0].text,'%".concat(firstName, "%',true) || LIKE(DOCUMENT(Person.name)[0].given,'%").concat(secondName, "%',true) || LIKE(DOCUMENT(Person.name)[0].family,'%").concat(thirdName, "%',true)) && Person.activestatus == true"),
19886
- "Patient": "Patient.personID==Person.Id && Patient.activestatus==true"
19885
+ Person: "(LIKE(DOCUMENT(Person.name)[0].text,'%".concat(firstName, "%',true) || LIKE(DOCUMENT(Person.name)[0].given,'%").concat(secondName, "%',true) || LIKE(DOCUMENT(Person.name)[0].family,'%").concat(thirdName, "%',true)) && Person.activestatus == true"),
19886
+ Patient: "Patient.personID==Person.Id && Patient.activestatus==true"
19887
19887
  },
19888
- return_fields: "{prefix: document(DOCUMENT(Person.name)[*].prefix),gender: Person.gender,birthDate: Person.birthDay,suffix: document(DOCUMENT(Person.name)[*].suffix), nameObj:(for HumanNameMaster in HumanNameMaster filter HumanNameMaster._id in Person.name && HumanNameMaster.activestatus==true return merge(HumanNameMaster,{prefix:document(HumanNameMaster.prefix)},{suffix:document(HumanNameMaster.suffix)},{period:document(HumanNameMaster.period)},{use:document(HumanNameMaster.use)}) ) , 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)}" //filter: queries["codablemasterGetPatientname"].query({firstName,secondName,thirdName}),
19888
+ return_fields: "distinct{prefix: document(DOCUMENT(Person.name)[*].prefix),gender: Person.gender,birthDate: Person.birthDay,suffix: document(DOCUMENT(Person.name)[*].suffix), nameObj:(for HumanNameMaster in HumanNameMaster filter HumanNameMaster._id in Person.name && HumanNameMaster.activestatus==true return merge(HumanNameMaster,{prefix:document(HumanNameMaster.prefix)},{suffix:document(HumanNameMaster.suffix)},{period:document(HumanNameMaster.period)},{use:document(HumanNameMaster.use)}) ) , name: DOCUMENT(Person.name)[*].text, personId: Person.Id,patientDetail: (for pat in Patient FILTER pat.personID == Person.Id && pat.link !=null 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)}" //filter: queries["codablemasterGetPatientname"].query({firstName,secondName,thirdName}),
19889
19889
  //return_fields: queries["codablemasterGetPatientname"].returnFields,
19890
19890
 
19891
19891
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primarycare-binder",
3
- "version": "1.1.131",
3
+ "version": "1.1.133",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",