File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -252,18 +252,7 @@ def process_row(
252252 add_preable = True ,
253253):
254254 """Process a row of the REDCap data and generate the jsonld file for the item."""
255- global matrix_group_count
256- matrix_group_name = field .get ("Matrix Group Name" , "" )
257- if matrix_group_name :
258- matrix_group_count [matrix_group_name ] = (
259- matrix_group_count .get (matrix_group_name , 0 ) + 1
260- )
261- item_id = (
262- f"{ matrix_group_name } _{ matrix_group_count [matrix_group_name ]} "
263- )
264- else :
265- item_id = field .get ("Variable / Field Name" , "" )
266-
255+ item_id = field .get ("Variable / Field Name" , "" ) # item_id should always be the Variable name in redcap
267256 rowData = {
268257 "category" : "reproschema:Item" ,
269258 "id" : item_id ,
@@ -349,7 +338,7 @@ def process_row(
349338 "activities" ,
350339 form_name ,
351340 "items" ,
352- f' { field [ "Variable / Field Name" ] } ' ,
341+ item_id ,
353342 )
354343
355344 write_obj_jsonld (it , file_path_item , contextfile_url = schema_context_url )
You can’t perform that action at this time.
0 commit comments