fetchNonWorkflowConfigResources

Fetch non-patient Resources for the application that are not application configurations resources such as ResourceType.Questionnaire and ResourceType.StructureMap. ( ResourceType.Binary and ResourceType.Parameters are currently the only FHIR HL7 resources used to represent application configurations). These non-patients resource identifiers are also set in the section components of the Composition resource.

This function retrieves the composition based on the appId and groups the non-patient resources ( ResourceType.Questionnaire or ResourceType.StructureMap) based on their type.

Searching is done using the _id search parameter of these not patient resources; the composition section components are grouped by resource type ,then the ids concatenated (as comma separated values), thus generating a search query like the following 'Resource Type'?_id='comma,separated,list,of,ids'