types
Types for hub-related code.
Classes
FHIRBundleEntryJSON
class FHIRBundleEntryJSON(*args, **kwargs):
JSON Object for patient search results entry objects.
Note: this is an incomplete JSON object, only containing the elements we care about.
Ancestors
- builtins.dict
FHIRBundleJSON
class FHIRBundleJSON(*args, **kwargs):
JSON Object for patient search results.
Note: this is an incomplete JSON object, only containing the elements we care about.
Ancestors
- builtins.dict
Variables
- static
entry : typing_extensions.NotRequired[Optional[list[FHIRBundleEntryJSON]]]
- static
resourceType : Literal['Bundle']
FHIRBundleResourceJSON
class FHIRBundleResourceJSON(*args, **kwargs):
JSON Object for patient search results resource objects.
Note: this is an incomplete JSON object, only containing the elements we care about.
Ancestors
- builtins.dict
Variables
- static
birthDate : str
- static
gender : str
- static
id : str
- static
name : list[PatientNameJSON]
- static
resourceType : Literal['Patient']
NextGenEnterpriseConditionsEntryJSON
class NextGenEnterpriseConditionsEntryJSON(*args, **kwargs):
JSON Object for patient diagnoses return object entries.
i.e. entries from a call to [enterprise_url]/persons/[patient_id]/chart/diagnoses
Note: this is an incomplete JSON object, only containing the elements we care about.
Ancestors
- builtins.dict
Variables
- static
billingDescription : str
- static
description : str
- static
encounterId : str
- static
encounterTimestamp : str
- static
encounterTimestampLocalUtcOffset : int
- static
encounterTimestampUtc : str
- static
icdCode : str
- static
icdCodeSystem : str
- static
id : str
- static
onsetDate : str
- static
personId : str
NextGenEnterpriseDiagnosesJSON
class NextGenEnterpriseDiagnosesJSON(*args, **kwargs):
JSON Object for patient diagnoses return object.
i.e. a call to [enterprise_url]/persons/[patient_id]/chart/diagnoses
Note: this is an incomplete JSON object, only containing the elements we care about.
Ancestors
- builtins.dict
Methods
items
def items(...) ‑> list[NextGenEnterpriseConditionsEntryJSON]:
D.items() -> a set-like object providing a view on D's items
NextGenEnterpriseProceduresEntryJSON
class NextGenEnterpriseProceduresEntryJSON(*args, **kwargs):
JSON Object for patient procedures return object entries.
i.e. entries from a call to [enterprise_url]/persons/[patient_id]/chart/procedures
Note: this is an incomplete JSON object, only containing the elements we care about.
Ancestors
- builtins.dict
Variables
- static
cpt4Code : str
- static
encounterId : str
- static
encounterTimestamp : str
- static
encounterTimestampLocalUtcOffset : int
- static
encounterTimestampUtc : str
- static
id : str
- static
isCompleted : bool
- static
personId : str
- static
serviceDate : str
- static
serviceItemDescription : str
- static
serviceItemId : str
- static
status : str
NextGenEnterpriseProceduresJSON
class NextGenEnterpriseProceduresJSON(*args, **kwargs):
JSON Object for patient procedures return object.
i.e. a call to [enterprise_url]/persons/[patient_id]/chart/procedures
Note: this is an incomplete JSON object, only containing the elements we care about.
Ancestors
- builtins.dict
Methods
items
def items(...) ‑> list[NextGenEnterpriseProceduresEntryJSON]:
D.items() -> a set-like object providing a view on D's items
PatientInfo
class PatientInfo( conditions: list[NextGenEnterpriseConditionsEntryJSON], procedures: list[NextGenEnterpriseProceduresEntryJSON],):
PatientInfo(conditions, procedures)
Ancestors
- builtins.tuple
Variables
conditions : list[NextGenEnterpriseConditionsEntryJSON]
- Alias for field number 0
procedures : list[NextGenEnterpriseProceduresEntryJSON]
- Alias for field number 1
PatientNameJSON
class PatientNameJSON(*args, **kwargs):
JSON Object for patient name objects.
Note: this is an incomplete JSON object, only containing the elements we care about.
Ancestors
- builtins.dict
SMARTOnFHIRAccessToken
class SMARTOnFHIRAccessToken( token: str, valid_until: Optional[datetime] = None, context: Optional[_NextGenContext] = None,):
Wrapper for access token and metadata from NextGen.
Variables
- static
context : Optional[bitfount.hub.types._NextGenContext]
- static
token : str
- static
valid_until : Optional[datetime.datetime]