primarycare-binder 1.1.124 → 1.1.125
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 +9 -4
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8112,7 +8112,7 @@ var queries$b = {
|
|
|
8112
8112
|
},
|
|
8113
8113
|
getPatientByMRN: {
|
|
8114
8114
|
query: function query(id) {
|
|
8115
|
-
return "Patient.alias=='".concat(id, "' && Person.Id==Patient.personID LET name=(FOR nam IN Person.name LET period=(FOR per IN TO_ARRAY(DOCUMENT(nam).period) RETURN DOCUMENT(per)) RETURN MERGE(DOCUMENT(nam),{period:period},{use:document(TO_ARRAY(DOCUMENT(nam).use))},{suffix:document(TO_ARRAY(DOCUMENT(nam).suffix))},{prefix:document(TO_ARRAY(DOCUMENT(nam).prefix))})) LET telecom=(FOR tel IN Person.telecom LET period=(FOR per IN TO_ARRAY(DOCUMENT(tel).period) RETURN DOCUMENT(per)) RETURN MERGE(DOCUMENT(tel),{period:period})) LET photo=(FOR pht IN Person.photo RETURN DOCUMENT(pht))");
|
|
8115
|
+
return "Patient.alias=='".concat(id, "' && Person.Id==Patient.personID LET name=(FOR nam IN Person.name LET period=(FOR per IN TO_ARRAY(DOCUMENT(nam).period) RETURN DOCUMENT(per)) RETURN MERGE(DOCUMENT(nam),{period:period},{use:document(TO_ARRAY(DOCUMENT(nam).use))},{suffix:document(TO_ARRAY(DOCUMENT(nam).suffix))},{prefix:document(TO_ARRAY(DOCUMENT(nam).prefix))})) LET telecom=(FOR tel IN Person.telecom LET period=(FOR per IN TO_ARRAY(DOCUMENT(tel).period) RETURN DOCUMENT(per)) RETURN MERGE(DOCUMENT(tel),{period:period})) LET photo=(FOR pht IN TO_ARRAY(Person.photo) RETURN DOCUMENT(pht))");
|
|
8116
8116
|
},
|
|
8117
8117
|
returnFields: "MERGE(Person,{name:name,telecom:telecom,photo:photo,Patient:merge(Patient,{name:(for na in document(Patient.name) return merge(na,{use:document(na.use)},{prefix:document(na.prefix)},{suffix:document(na.suffix)}))},{photo:document(Patient.photo)})})"
|
|
8118
8118
|
},
|
|
@@ -10679,7 +10679,7 @@ var PATIENT_DETAILS_READ = createAsyncThunk("patientReducer/readPatientDetails",
|
|
|
10679
10679
|
db_name: dbName,
|
|
10680
10680
|
entity: "Patient",
|
|
10681
10681
|
filter: "Patient._key=='".concat(key, "' && Patient.activestatus==true"),
|
|
10682
|
-
return_fields: "merge(Patient,{telecom:(for doc in ContactPointMaster filter doc._id in Patient.telecom return merge(doc,{system:(document(doc.system)),use:(document(doc.use)),valueprefix:(document(doc.valueprefix)),rank:(document(doc.rank))}))},{name:(for doc in HumanNameMaster filter doc._id in Patient.name return merge(doc,{use:(document(doc.use)),prefix:(document(doc.prefix)),suffix:(document(doc.suffix))}))},{gender:document(Patient.gender)},{address:(for doc in AddressMaster filter doc._id in Patient.address return merge(doc,{use:(document(doc.use)),city:(document(doc.city)),country:(document(doc.
|
|
10682
|
+
return_fields: "merge(Patient,{telecom:(for doc in ContactPointMaster filter doc._id in Patient.telecom return merge(doc,{system:(document(doc.system)),use:(document(doc.use)),valueprefix:(document(doc.valueprefix)),rank:(document(doc.rank))}))},{name:(for doc in HumanNameMaster filter doc._id in Patient.name return merge(doc,{use:(document(doc.use)),prefix:(document(doc.prefix)),suffix:(document(doc.suffix))}))},{gender:document(Patient.gender)},{address:(for doc in AddressMaster filter doc._id in Patient.address return merge(doc,{use:(document(doc.use)),city:(document(doc.city)),country:(document(doc.country)),district:(document(doc.district)), Type:(document(doc.Type)),postalCode:(document(doc.postalCode)),state:(document(doc.state))}))},{maritalstatus:document(Patient.maritalstatus)},{photo:document(Patient.photo)},{OrgID:document(Patient.OrgID)},{nationality:document(Patient.nationality)},{activereason:document(Patient.activereason)},{isdeceased:document(Patient.isdeceased)},{deceasedreason:document(Patient.deceasedreason)},{identifier:(for doc in IdentifierMaster filter doc._id in Patient.identifier return merge(doc,{user:(document(doc.user)), assigner:(document(doc.assigner)), period: (document(doc.period))}))},{communicationLanguage:document(Patient.communicationLanguage)},{birthGendercode:document(Patient.birthGendercode)},{citizenshipCode:document(Patient.citizenshipCode)},{disabilityCode:document(Patient.disabilityCode)},{genderIdentitycode:document(Patient.genderIdentitycode)},{religionCode:document(Patient.religionCode)},{raceCode:document(Patient.raceCode)},{ethinicityCode:document(Patient.ethinicityCode)},{patientTypecode:document(Patient.patientTypecode)},{bloodGroup:document(Patient.bloodGroup)},{attachment:document(Patient.attachment)},{age_type:document(Patient.age_type)},{primarycare_Prac:document(Patient.primarycare_Prac)},{specialArng_code:document(Patient.specialArng_code)},{specialCourtesy_code: document(Patient.specialCourtesy_code)})"
|
|
10683
10683
|
};
|
|
10684
10684
|
_context5.next = 7;
|
|
10685
10685
|
return fetchData$3({
|
|
@@ -18076,8 +18076,13 @@ var READ_PATIENT = createAsyncThunk("personApiSlice/deletePerson", /*#__PURE__*/
|
|
|
18076
18076
|
body = {
|
|
18077
18077
|
db_name: dbName,
|
|
18078
18078
|
entity: "Patient,Person",
|
|
18079
|
-
filter:
|
|
18080
|
-
|
|
18079
|
+
filter: {
|
|
18080
|
+
"Patient": "Patient.alias=='".concat(mrnnumber, "' && Patient.activestatus==true"),
|
|
18081
|
+
"Person": "Person.Id==Patient.personID && Person.activestatus==true LET name=(FOR nam IN Person.name LET period=(FOR per IN TO_ARRAY(DOCUMENT(nam).period) RETURN DOCUMENT(per)) RETURN MERGE(DOCUMENT(nam),{period:period},{use:document(TO_ARRAY(DOCUMENT(nam).use))},{suffix:document(TO_ARRAY(DOCUMENT(nam).suffix))},{prefix:document(TO_ARRAY(DOCUMENT(nam).prefix))})) LET telecom=(FOR tel IN to_Array(Person.telecom) LET period=(FOR per IN TO_ARRAY(DOCUMENT(tel).period) RETURN DOCUMENT(per)) RETURN MERGE(DOCUMENT(tel),{period:period})) LET photo=(FOR pht IN TO_ARRAY(Person.photo) RETURN DOCUMENT(pht))"
|
|
18082
|
+
},
|
|
18083
|
+
// queries["getPatientByMRN"].query(mrnnumber),
|
|
18084
|
+
return_fields: "MERGE(Person,{name:name,telecom:telecom,photo:photo,Patient:merge(Patient,{name:(for na in document(Patient.name) return merge(na,{use:document(na.use)},{prefix:document(na.prefix)},{suffix:document(na.suffix)}))},{photo:document(Patient.photo)})})" // queries["getPatientByMRN"].returnFields,
|
|
18085
|
+
|
|
18081
18086
|
};
|
|
18082
18087
|
_context9.next = 7;
|
|
18083
18088
|
return fetchData$3({
|