Converts a dicom_volume, DICOM directory path, or header summary tibble
into an HL7 FHIR ImagingStudy resource list.
Arguments
- x
A
dicom_volumeobject, a directory/file path, or a data frame fromread_dicom().- patient_ref
FHIR Patient reference (e.g.,
"Patient/p-001").- endpoint_ref
Optional FHIR Endpoint reference.
Examples
synth <- dicom_synthesize(modality = "CT", dims = c(8L, 8L, 2L))
on.exit(unlink(synth$out_dir, recursive = TRUE), add = TRUE)
vol <- read_dicom_volume(synth$out_dir)
#> Error in resolve_dicom_paths(path, recursive = recursive): Path does not exist: C:/Users/lauye/AppData/Local/Temp/RtmpENsyff/dicom_synth_26c87be2540c
as_fhir_imaging_study(vol, patient_ref = "Patient/p-001")$resourceType
#> Error: object 'vol' not found
