When should reports be considered with the cht-conf's contact-move function 10000 doc limit?

We’ve recently completed 1 of 6 contact-move requests from our 1 NPO, resulting in the neighbourhood of 205 dwellings being shifted into new spaces. While everything looks correct via the UI, and in SQL, we found the logs stating that 0 reports were moved. At all.
This is despite numerous reports being present on the households and individuals within the dwellings. Some of the reports are more than 7 months old.

We’re hoping to get an idea of how the count works to better estimate if we’ll be able to action future contact-move requests. When are reports considered?

We have the following hierarchy structure:
NPO
– Team Area
— Indawo
---- Dwelling
----- Household
------ Reports
------ Household member
------- Reports

Hi @Anro

Reports are only moved if the submitter of the report (the CHW) has been moved and has updated lineage.
If you are only moving patients and households, and not the chw submitter contact, then no reports will need any changes.

Hi @diana,

That’s very interesting. So despite the dwellings, under the Indawo (the parent place of the CHW), getting moved to an entirely different Indawo, the reports get “moved” with it from a UI perspective - but the report doesn’t undergo any update.

So the contact value, as can be seen in the report excerpt, does not refer to the entire hierarchy of the place/person the report is captured on - rather it points to the CHW.

{
  "_id": "322fbbdf-5a9b-42dd-b321-1beac48df588",
  "_rev": "1-0a61be62015f884de47761f93ac5ebf1",
  "form": "ff_task_trigger",
  "type": "data_record",
  "content_type": "xml",
  "reported_date": 1726843070773,
  "contact": {
    "_id": "b15397a7-f26f-4d99-8f35-d206fe6730de",
    "parent": {
      "_id": "2cc48aba-7c5b-4bcd-b7df-df6a14384189",
      "parent": {
        "_id": "c213f983-a5fd-4cd7-a831-74c9c87ae187",
        "parent": {
          "_id": "7a9d1ce2-b153-40c3-a3ba-db9aaf28f557"
        }
      }
    }
  },

In other words, the reports would be factored in if we moved the entire Indawo?

The reports will be refactored when you move any of the contacts in the “contact” hierarchy of the reports.

1 Like