Skip to contents

Requires "deid_ingest" permission (coordinator, honest_broker, or admin). Pseudonymizes the EHR patient_id inside the walled enclave crosswalk and returns only de-identified imaging/report counts and UIDs.

Usage

smart_pull_patient_context(
  session,
  enclave,
  principal,
  project_id,
  fhir_bundle = NULL
)

Arguments

session

A "dicom_smart_session" from smart_exchange_token().

enclave

A "dicom_broker_enclave" from broker_enclave_init().

principal

Authenticated "dicom_server_principal".

project_id

Target project identifier.

fhir_bundle

Optional parsed FHIR Bundle list for offline testing.

Value

A de-identified summary list containing project_id, pseudonym_id, n_imaging_studies, n_diagnostic_reports, and study_uids.