{"order": ["order"], "addAPI": {"url": "/project/facility/v1/_create", "requestBody": "{\"ProjectFacility\":{}}", "requestJson": "ProjectFacility", "responseJson": "ProjectFacility.id"}, "custom": [{"prefix": " ", "suffix": "", "fieldPath": "projectId", "dataSource": {"API": "/project/v1/_search", "requestBody": "{\"Projects\":  [{\"tenantId\": \"mz\", \"startDate\": 1686853800000}]}", "responseJSON": "Project", "requestParams": "{\"limit\":100,\"offset\":0,\"tenantId\":\"mz\"}", "customFunction": "(data)=>{return data?.Project.map(obj=>({label:`${obj?.name}/${obj?.address?.boundaryType}/${obj?.address?.boundary}`,value:obj.id})); }", "responseFieldPath": "projectId"}}, {"prefix": "", "suffix": "", "fieldPath": "facilityId", "dataSource": {"API": "/facility/v1/_search", "requestBody": " {\"Facility\" :  {\"tenantId\": \"mz\"}}", "responseJSON": "Facilities", "requestParams": "{\"limit\":10,\"offset\":0,\"tenantId\":\"mz\"}", "customFunction": "(data)=>{ return data?.Facilities.map(obj=>obj.id); }", "responseFieldPath": "facilityId"}}], "schemaCode": "Health.ProjectFacility"}