Skip to main content

ehr_patient_id_extract_algorithm

EHR Patient ID extraction algorithm.

This module implements an algorithm for paginated extraction of patient IDs from EHR systems (NextGen or FHIR R4 compatible). The worker side yields one page of patient IDs at a time; the modeller side does nothing.

Classes​

EHRPatientIDExtractAlgo​

class EHRPatientIDExtractAlgo(    datastructure: DataStructure, page_size: int | None = None, **kwargs: Any,):

Algorithm for paginated extraction of patient IDs from EHR systems.

Initialize the algorithm.

Arguments

  • datastructure: The data structure definition.
  • page_size: Number of patient IDs to fetch per page. Defaults to 25.
  • **kwargs: Additional keyword arguments.

Variables​

Methods​


modeller​

def modeller(    self, *, context: ProtocolContext, **kwargs: Any,) ‑> NoResultsModellerAlgorithm:

Modeller-side of the algorithm (no-op).

worker​

def worker(    self,    *,    hub: BitfountHub | None = None,    session: BitfountSession | None = None,    context: ProtocolContext,    **kwargs: Any,) ‑> bitfount.federated.algorithms.ehr.ehr_patient_id_extract_algorithm._WorkerSide:

Inherited from:

BaseNonModelAlgorithmFactory.worker :

Worker-side of the algorithm.