Closed anvmn closed 3 weeks ago
Child with all Geo fields set to Parent':
Got a relationship with mother:
Mother got Geo fields set properly.
'AMAJYARUGU' => 'Amajyaruguru',
'North' => 'Amajyaruguru',
'North Province' => 'Amajyaruguru',
'Northern Province' => 'Amajyaruguru',
'UBURASIRAZUBA' => 'Iburasirazuba',
'Kigali City' => 'Umujyi wa kigali',
For KIVURUGA sector, district must be Gakenke. Setting manually.
For RUSHASHI sector, district must be Gakenke. Setting manually.
No such district. Province for all patients with this district is IBURASIRAZUBA.
For sector, we have 67 distinct values, while one of them is empty and another 'Parent'.
In total, we support 66 unique sectors. Parent was handled already.
There's one patient with empty value:
For given province and sector, with village NGANWA we can resolve sector and cell:
Sector - Ntarama Cell - Kibungo
152 patients that do not have cell field set:
144 handled at dedicated script. For remaining, opened https://github.com/Gizra/ihangane/issues/3154 and assigned to @Diama1 .
Deployed to live
Problems:
Initial, there was no Person CT. Instead there were Mother and Child CTs. Person CT has replaced them after ~1.5 years. All Mother and Child nodes were migrated to Person nodes. The problem is that creation date of Person node did not original creation of Child/Mother node. This means that we got 6327 patients with wrong creation date.
Some patients got invalid Geo location fields. This causes patients to be excluded at reports.
While there are 3 provinces, there are 10 different values in DB:
While there are 5 districts, there are 8 different values in DB: