It is possible to have more than one application in a project space and sometimes using multiple apps is a good way to accomplish complex workflows.
Case sharing works not only within the same application but across all applications in the same project space. All you need to do is make sure that the case type is the same.
Example 1: Multiple applications without case sharing
A project may have two applications that are not explicitly related to each other or connected. For example, a set of Community Health Workers could have one app for maternal health, and a separate one for malaria. You may want to keep these applications in the same project space so that the same mobile user can use either application, and so that all of the web users have the same access to data from both applications in one place.
Reasons for separating these apps into separate project spaces could include not wanting the same mobile users to be able to use both applications, and wanting to keep the data separate.
Example 2: Case sharing across multiple applications
Overview
Imagine a project where Community Health Workers visit pregnant women and register them in their CommCare app. Nurses at the clinic nearby want to have access to a women with pregnancy danger signs so that they can follow up with them and update their own CommCare app with additional information. This project could have two applications; one for Community Health Workers, and one for the Nurses at the clinic.
How to set it up
Application 1: CHW app
Application 2: Nurse app
The CHW is meeting with pregnant women and registering them in her application. Her app may open new cases of the type "pregnancy." But any woman with a danger sign is supposed to be seen by a nurse. You would need to save a case property like danger_sign = "yes" so that the Clinical app can filter against it and only show the relevant cases.
In the Nurse application you would set the case type to "pregnancy" and then on the appropriate module could use a case list filter that only shows cases for which danger_sign = "yes"
Now each time the CHW has a pregnancy case where danger_sign = yes, after syncing with the network it will be accessible via the Nurse application.
Notes:
- The CHW and Nurse would need to be in a Case Sharing Group, and case sharing would need to be turned on for each application
- Just as with any case sharing set-up, both phones must be synchronized with the network for the appropriate cases to show up
- These applications must be in the same project space for case sharing across multiple applications to work