Module schemaops.templates
templates.py classes and methods for creating blank datastructures based on schemas
Functions
def empty_entity()
-
get an empty object fit for inclusion in input->'entities'
def empty_job(date_of_service: str, **kwargs)
-
convenience method to instance and return asdict() for JobTemplate
Classes
class JobTemplate (date_of_service: str, patient_full_name: str = 'AAA, SCHEDULE', state: str = 'Ignored', status: str = 'Misc-Ignore', input: dict[str, typing.Any] = <factory>, comments: str = 'Automatically Created', meta: dict[str, typing.Any] = <factory>, patient_info: dict[str, typing.Any] = <factory>, schedule: dict[str, typing.Any] = <factory>)
-
Get an empty dict object containing basic fields for a job
Primarily used to create placeholder cases.
Class variables
var comments : str
var date_of_service : str
var input : dict[str, typing.Any]
var meta : dict[str, typing.Any]
var patient_full_name : str
var patient_info : dict[str, typing.Any]
var schedule : dict[str, typing.Any]
var state : str
var status : str