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 definitionfhir_url
: Optional custom FHIR API URLenterprise_url
: Optional custom Enterprise API URLsmart_on_fhir_url
: Optional custom SMART on FHIR service URLsmart_on_fhir_resource_server_url
: Optional custom SMART on FHIR resource server URL- **
**kwargs
**: Additional keyword arguments.
Ancestors
- BaseNonModelAlgorithmFactory
- BaseAlgorithmFactory
- abc.ABC
- bitfount.federated.roles._RolesMixIn
- bitfount.types._BaseSerializableObjectMixIn
Variables
- static
fields_dict : ClassVar[dict[str, marshmallow.fields.Field]]
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.