0

I am using a series of extension cases in my application (structure shown below) and need a way to associate the extension cases with each other after doing a case export.

Extension case structure:

Adult > Child (extension case) > Health Task (extension case)

When I download the case export for the health task cases, the indices for the associated child cases are blank, making it impossible to map the health task cases to their associated child cases.

Using the raw_doc ID search for the health task case I am able to find the reference ID for the associated child case. However, this only allows me to search for one health task case at a time.

Is there a way for me to extract the reference ID for associated child cases in bulk for all of my health task cases?

1 Answer 1

2

The standard way to link exports between a case and it's parent case (or host case if you're using a host/extension relationship instead of parent/child) is to enable the section at the bottom of the Export Settings page called "Parent Cases" (select all boxes). Make sure [row] number is selected in the main case export.

Then when you look at your export in excel, you will have 2 tabs, the main one with the case's properties and a second one with the parent case ids. If every case in your export has a parent case, then the column for parent_case_id can just be copied from this tab into your main tab. If only some cases have parents, then you will have to use the "number" columns to match them up. Either way, you will end up with your export of all of the cases along with their parent_case_id. You can then use that id to link the cases to a separate export of the parent cases.

2
  • Note: I checked and this functionality does work for extension cases the same way it works for regular child cases.
    – Jennifer
    Jun 22, 2017 at 13:16
  • There is one small caveat here. If you do something custom and rename the index name so that it's something other than 'parent' or 'host', it won't work and is a bug Jun 22, 2017 at 14:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.