Do we need to create a visit attribute, and then display the column using:
"visitAttributes": ["Visit Location"]
I am having problems setting this attibute to automatically be the location.
Do we need to create a visit attribute, and then display the column using:
"visitAttributes": ["Visit Location"]
I am having problems setting this attibute to automatically be the location.
Here are the 2 visit reports we’d like to include the visit location in
"visitReport": {
"name": "Visit",
"type": "visits",
"config": {
"visitAttributes": ["Visit Location"],
"patientAddresses": ["city_village"],
"patientAttributes": ["impl.other","impl.phoneNumber"],
"additionalPatientIdentifiers": ["impl.legacyId"],
"ageGroupName":"",
"excludeColumns": ["Date stopped", "Date Of Admission", "Date Of Discharge", "Visit Type", "New patient visit"]
}
},
"pivotReportOfVisits": {
"name": "VisitTotal",
"type": "aggregation",
"config": {
"report":{
"type": "visits",
"config": {
"forDataAnalysis": true,
"visitAttributes": [
],
"patientAddresses": ["city_village"],
"patientAttributes": ["impl.other"],
"additionalPatientIdentifiers": ["impl.legacyId"],
"ageGroupName":"All Ages",
"visitTypesToFilter": []
}
},
"rowGroups": [
"Gender"
],
"columnGroups": [
"city_village","impl.other"
],
"distinctGroups": [
"Patient Identifier"
],
"showTotalRow":true,
"showTotalColumn":true
}
},
I’ve realised the visitAttributes are only for admission status and visit status, we really need a way to display by location to avoid patients from separate locations being mixed up.
“Display by location” - in the queues?
In reports, for example we want a visit report just for the current location. If possible we would also like to search in registration app for patients with visit at the current location in a date range.
Showing the visit location (visit.location_id) should be easy enough in reports.
For searching in reg app, we need to build the feature and importantly need to think about UX.
Is there an example SQL query somewhere we can adapt which includes visit.location_id for a basic visit report based on location?
Has anyone been able to display reports per location using the standard Bahmni reports, i.e. without using SQL?
We would like to use the “aggregation” type report to summarize visits for the currently logged location, ideas?
"pivotReportOfVisits": {
"name": "VisitTotal",
"type": "aggregation",
"config": {
"report":{
"type": "visits",
"config": {
"forDataAnalysis": true,
"visitAttributes": [ ],
"patientAddresses": ["city_village"],
"patientAttributes": ["impl.patientStatus"],
"additionalPatientIdentifiers": ["impl.legacyId"],
"ageGroupName":"All Ages",
"visitTypesToFilter": []
}
},
"rowGroups": [ "Gender","All Ages" ],
"columnGroups": [ "city_village","impl.patientStatus"],
"distinctGroups": [ "Patient Identifier" ],
"showTotalRow":true,
"showTotalColumn":true
}
},
how do I display “visit.location_id” in this report?
I meant, including the “visit.location_id” in the results. I am not sure if we are even querying for the field.
Is it possible with the above report of type “visits” to display the location_id in the results?