(self, form_unique_id, question)
return response
Add an extra node with the root path of the save to case to attach case properties to
Add an extra node with the root path of the save to case to attach case properties to
Add an extra node with the root path of the save to case to attach case properties to
def _save_to_case_root_node(self, form_unique_id, question):
        """Add an extra node with the root path of the save to case to attach case properties to
        """
        question_path = self._save_to_case_root_path(question)
        response = _FormMetadataQuestion(**{
            "form_id": form_unique_id,
            "label": question_path,
            "tag": question_path,
            "value": question_path,
            "repeat": question['repeat'],
            "group": question['group'],
            "type": 'SaveToCase',
            "hashtagValue": question['hashtagValue'],
            "relevant": None,
            "required": False,
            "comment": None,
            "constraint": None,
            "load_properties": self._case_meta.get_load_properties(form_unique_id, question_path),
            "save_properties": self._case_meta.get_save_properties(form_unique_id, question_path)
        })
        self._seen_save_to_case[form_unique_id].append(question_path)
        return response
def _save_to_case_root_node ( self , form_unique_id , question ) : question_path = self . _save_to_case_root_path ( question ) response = _FormMetadataQuestion ( * * { "form_id" : form_unique_id , "label" : question_path , "tag" : question_path , "value" : question_path , "repeat" : question [ 'repeat' ] , "group" : question [ 'group' ] , "type" : 'SaveToCase' , "hashtagValue" : question [ 'hashtagValue' ] , "relevant" : None , "required" : False , "comment" : None , "constraint" : None , "load_properties" : self . _case_meta . get_load_properties ( form_unique_id , question_path ) , "save_properties" : self . _case_meta . get_save_properties ( form_unique_id , question_path ) } ) self . _seen_save_to_case [ form_unique_id ] . append ( question_path ) return response