We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40be4f3 commit ce8b34bCopy full SHA for ce8b34b
reproschema/redcap2reproschema.py
@@ -420,7 +420,15 @@ def process_row(
420
# )
421
422
elif key in ADDITIONAL_NOTES_LIST and value:
423
- notes_obj = {"source": "redcap", "column": key, "value": value}
+ # Convert value to string, handling NaN explicitly
424
+ value_str = "NaN" if pd.isna(value) else str(value).strip()
425
+ if not value_str: # Skip empty strings
426
+ continue
427
+ notes_obj = {
428
+ "source": "redcap",
429
+ "column": key,
430
+ "value": f'"{value_str}"' # Add quotation marks
431
+ }
432
rowData.setdefault("additionalNotesObj", []).append(notes_obj)
433
434
it = Item(**rowData)
0 commit comments