This feature (Case Sharing) will only be available to CommCare project spaces with a Pro Plan or higher. For more details, see the CommCare Software Plan page.
To enable this feature, you will need to enable an Add-On. To enable the add-on, proceed to the Application Settings by selecting the gear in the top left hand corner next to the application name. Then select the Add-On tab. Once on the Add-On tab, select the menu option on the right (three stacked lines) and check the Case Management box. Child cases will appear as an option in this section
Child cases (also known as subcases) let you open other types of cases for use in other modules. They will be linked to the parent case so you will always know where they came from. The classic use case of a child case is a mother giving birth to a newborn that has to be tracked separately.
Child cases can be configured on the "case management" tab of any form that uses case management. Child cases can be opened from any question in a form including from a repeat group.
Let’s assume you’re working with a Maternal Child Health (MCH) application in which you’re monitoring two different types of cases – pregnant/nursing mothers and children. Using child cases allows us to bypass having multiple registration forms for the different types of cases. For example, you can open a child case from a mother's birth form instead of having to fill out a separate child registration form.
This is set up just like a standard child case block on the case management settings. However, keep in mind the following:
The application builder gives Child cases the ability to access and update properties of the parent case.
More concretely, this means you can update the parent case's properties from a child case's form, and load parent properties into a child's form.
To reference a parent property, type:
For example, on the case configuration tab for one of the forms in the child module, to refer to the Parent case property "dob", you would type
into the case property box.
Note that this only works one-way: the child can access/update its parent case's properties, but the parent case CANNOT access or update properties of its child cases.
See the page Linking Parent and Child Case Data in the CommCare Data section.