Implement a function generate patient record(name: str) that constructs a DICOM dataset. It must instantiate…
Implement a function generate patient record(name: str) that constructs a DICOM dataset. It must instantiate…: a task in r2e-code-instruct-qwen3.5 (Harbor dataset). Example 1: generate patient record("Alice") returns a Dataset where ds.PatientName == "Alice" . Example 2: generate patient…
The task
Example 1: `generate_patient_record("Alice")` returns a `Dataset` where `ds.PatientName == "Alice"`. Example 2: `generate_patient_record("")` raises `ValueError`.
Part of Essacheez/r2e-code-instruct-qwen3.5.