()
return {
        SchemaOptional("attributes"): [attribute_schema],
        SchemaOptional("created"): datetime_schema,
        SchemaOptional("createdAtClient"): datetime_schema,
        SchemaOptional("deleted"): bool,
        SchemaOptional("enrollments"): [{
            SchemaOptional("attributes"): [attribute_schema],
            SchemaOptional("created"): datetime_schema,
            SchemaOptional("createdAtClient"): datetime_schema,
            SchemaOptional("completedBy"): str,
            SchemaOptional("completedDate"): date_schema,
            SchemaOptional("coordinate"): coordinate_schema,
            SchemaOptional("deleted"): bool,
            SchemaOptional("enrollment"): id_schema,
            SchemaOptional("enrollmentDate"): date_schema,
            SchemaOptional("events"): [event_schema],
            SchemaOptional("geometry"): geometry_schema,
            SchemaOptional("incidentDate"): date_schema,
            SchemaOptional("lastUpdated"): datetime_schema,
            SchemaOptional("lastUpdatedAtClient"): datetime_schema,
            SchemaOptional("notes"): [note_schema],
            "orgUnit": id_schema,
            SchemaOptional("orgUnitName"): str,
            "program": id_schema,
            SchemaOptional("relationships"): [relationship_schema],
            SchemaOptional("status"): enrollment_status_schema,
            SchemaOptional("storedBy"): str,
            SchemaOptional("trackedEntityInstance"): id_schema,
            SchemaOptional("trackedEntityType"): id_schema,
        }],
        SchemaOptional("featureType"): str,
        SchemaOptional("geometry"): geometry_schema,
        SchemaOptional("inactive"): bool,
        SchemaOptional("lastUpdated"): datetime_schema,
        SchemaOptional("lastUpdatedAtClient"): datetime_schema,
        "orgUnit": id_schema,
        SchemaOptional("potentialDuplicate"): bool,
        SchemaOptional("programOwners"): [object],
        SchemaOptional("relationships"): [relationship_schema],
        SchemaOptional("storedBy"): str,
        SchemaOptional("trackedEntityInstance"): id_schema,
        "trackedEntityType": id_schema,
    }
Returns the schema of a tracked entity instance.
Returns the schema of a tracked entity instance.
Returns the schema of a tracked entity instance .
def get_tracked_entity_schema() -> dict:
    """
    Returns the schema of a tracked entity instance.
    """
    attribute_schema = get_attribute_schema()
    coordinate_schema = get_coordinate_schema()
    event_schema = get_event_schema()
    geometry_schema = get_geometry_schema()
    note_schema = get_note_schema()
    relationship_schema = get_relationship_schema()
    return {
        SchemaOptional("attributes"): [attribute_schema],
        SchemaOptional("created"): datetime_schema,
        SchemaOptional("createdAtClient"): datetime_schema,
        SchemaOptional("deleted"): bool,
        SchemaOptional("enrollments"): [{
            SchemaOptional("attributes"): [attribute_schema],
            SchemaOptional("created"): datetime_schema,
            SchemaOptional("createdAtClient"): datetime_schema,
            SchemaOptional("completedBy"): str,
            SchemaOptional("completedDate"): date_schema,
            SchemaOptional("coordinate"): coordinate_schema,
            SchemaOptional("deleted"): bool,
            SchemaOptional("enrollment"): id_schema,
            SchemaOptional("enrollmentDate"): date_schema,
            SchemaOptional("events"): [event_schema],
            SchemaOptional("geometry"): geometry_schema,
            SchemaOptional("incidentDate"): date_schema,
            SchemaOptional("lastUpdated"): datetime_schema,
            SchemaOptional("lastUpdatedAtClient"): datetime_schema,
            SchemaOptional("notes"): [note_schema],
            "orgUnit": id_schema,
            SchemaOptional("orgUnitName"): str,
            "program": id_schema,
            SchemaOptional("relationships"): [relationship_schema],
            SchemaOptional("status"): enrollment_status_schema,
            SchemaOptional("storedBy"): str,
            SchemaOptional("trackedEntityInstance"): id_schema,
            SchemaOptional("trackedEntityType"): id_schema,
        }],
        SchemaOptional("featureType"): str,
        SchemaOptional("geometry"): geometry_schema,
        SchemaOptional("inactive"): bool,
        SchemaOptional("lastUpdated"): datetime_schema,
        SchemaOptional("lastUpdatedAtClient"): datetime_schema,
        "orgUnit": id_schema,
        SchemaOptional("potentialDuplicate"): bool,
        SchemaOptional("programOwners"): [object],
        SchemaOptional("relationships"): [relationship_schema],
        SchemaOptional("storedBy"): str,
        SchemaOptional("trackedEntityInstance"): id_schema,
        "trackedEntityType": id_schema,
    }
def get_tracked_entity_schema ( ) -> dict : attribute_schema = get_attribute_schema ( ) coordinate_schema = get_coordinate_schema ( ) event_schema = get_event_schema ( ) geometry_schema = get_geometry_schema ( ) note_schema = get_note_schema ( ) relationship_schema = get_relationship_schema ( ) return { SchemaOptional ( "attributes" ) : [ attribute_schema ] , SchemaOptional ( "created" ) : datetime_schema , SchemaOptional ( "createdAtClient" ) : datetime_schema , SchemaOptional ( "deleted" ) : bool , SchemaOptional ( "enrollments" ) : [ { SchemaOptional ( "attributes" ) : [ attribute_schema ] , SchemaOptional ( "created" ) : datetime_schema , SchemaOptional ( "createdAtClient" ) : datetime_schema , SchemaOptional ( "completedBy" ) : str , SchemaOptional ( "completedDate" ) : date_schema , SchemaOptional ( "coordinate" ) : coordinate_schema , SchemaOptional ( "deleted" ) : bool , SchemaOptional ( "enrollment" ) : id_schema , SchemaOptional ( "enrollmentDate" ) : date_schema , SchemaOptional ( "events" ) : [ event_schema ] , SchemaOptional ( "geometry" ) : geometry_schema , SchemaOptional ( "incidentDate" ) : date_schema , SchemaOptional ( "lastUpdated" ) : datetime_schema , SchemaOptional ( "lastUpdatedAtClient" ) : datetime_schema , SchemaOptional ( "notes" ) : [ note_schema ] , "orgUnit" : id_schema , SchemaOptional ( "orgUnitName" ) : str , "program" : id_schema , SchemaOptional ( "relationships" ) : [ relationship_schema ] , SchemaOptional ( "status" ) : enrollment_status_schema , SchemaOptional ( "storedBy" ) : str , SchemaOptional ( "trackedEntityInstance" ) : id_schema , SchemaOptional ( "trackedEntityType" ) : id_schema , } ] , SchemaOptional ( "featureType" ) : str , SchemaOptional ( "geometry" ) : geometry_schema , SchemaOptional ( "inactive" ) : bool , SchemaOptional ( "lastUpdated" ) : datetime_schema , SchemaOptional ( "lastUpdatedAtClient" ) : datetime_schema , "orgUnit" : id_schema , SchemaOptional ( "potentialDuplicate" ) : bool , SchemaOptional ( "programOwners" ) : [ object ] , SchemaOptional ( "relationships" ) : [ relationship_schema ] , SchemaOptional ( "storedBy" ) : str , SchemaOptional ( "trackedEntityInstance" ) : id_schema , "trackedEntityType" : id_schema , }