Skip to main content

nextgen_patient_info_download_algorithm

NextGen Patient Info download algorithm to access patient data.

This module implements an algorithm for downloading all patient information from NextGen's APIs. It provides functionality to:

  • Authenticate with NextGen's FHIR, Enterprise, and SMART on FHIR APIs
  • Look up and download relevant info and documents for a given list of patient_ids

Classes

NextGenPatientInfoDownloadAlgorithm

class NextGenPatientInfoDownloadAlgorithm(    datastructure: DataStructure,    fhir_url: str = 'https://fhir.nextgen.com/nge/prod/fhir-api-r4/fhir/R4',    enterprise_url: str = 'https://nativeapi.nextgen.com/nge/prod/nge-api/api',    smart_on_fhir_url: Optional[str] = None,    smart_on_fhir_resource_server_url: Optional[str] = None,    **kwargs: Any,):

Algorithm for downloading patient info and documents from NextGen FHIR API.

Initialize the algorithm.

Arguments

  • datastructure: The data structure definition
  • fhir_url: Optional custom FHIR API URL
  • enterprise_url: Optional custom Enterprise API URL
  • smart_on_fhir_url: Optional custom SMART on FHIR service URL
  • smart_on_fhir_resource_server_url: Optional custom SMART on FHIR resource server URL
  • ****kwargs**: Additional keyword arguments.

Ancestors

Variables

Methods


modeller

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

Modeller-side of the algorithm.

worker

def worker(    self,    hub: Optional[BitfountHub] = None,    session: Optional[BitfountSession] = None,    **kwargs: Any,)> bitfount.federated.algorithms.ehr.nextgen_patient_info_download_algorithm._WorkerSide:

Worker-side of the algorithm.