Closed prithi69 closed 6 years ago
For the short term we can understand locations through the Geo tags
I have included location along with the encounter but this is what is happening, the location of patient on active visits page is showing the location of encounter type visit note. It is supposed to show nothing if a patient has been seen!
Most probably because of this particular code, I tried removing latest and if statements too but with no luck.
Location of adult initial encounter
Moved to the new repo
+--------------+------------+--------+-------------+ | encounter_id | concept_id | obs_id | location_id | +--------------+------------+--------+-------------+ | 520 | 163202 | 1440 | NULL | | 520 | 163206 | 1441 | NULL | | 520 | 163205 | 1442 | NULL | | 520 | 162169 | 1443 | NULL | | 518 | 5092 | 1454 | 11 | | 518 | 5086 | 1470 | 11 | | 519 | 163212 | 1471 | 11 | | 518 | 5088 | 1479 | 11 | | 519 | 163210 | 1480 | 11 | | 519 | 163211 | 1481 | 11 | | 519 | 163213 | 1482 | 11 | | 518 | 5090 | 1483 | 11 | | 518 | 5089 | 1484 | 11 | | 518 | 5087 | 1485 | 11 | | 518 | 5085 | 1486 | 11 | +--------------+------------+--------+-------------+ 15 rows in set (0.00 sec)
Here the location_id is Null..of encounter type visit note.. Location_id Location_name 2 | Remote | | 11 | Telemedicine clinic 1 | | 10 | Telemedicine clinic 2