care.emr.api.viewsets.batch_request module

class Request(*, url: str, method: str, body: dict = {}, reference_id: str)

Bases: BaseModel

url: str
method: str
body: dict
reference_id: str
model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'body': FieldInfo(annotation=dict, required=False, default={}), 'method': FieldInfo(annotation=str, required=True), 'reference_id': FieldInfo(annotation=str, required=True), 'url': FieldInfo(annotation=str, required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

class BatchRequest(*, requests: Annotated[list[Request], MinLen(min_length=1), MaxLen(max_length=20)])

Bases: BaseModel

requests: list[Request]
model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'requests': FieldInfo(annotation=list[Request], required=True, metadata=[MinLen(min_length=1), MaxLen(max_length=20)])}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

exception HandledError

Bases: Exception

class BatchRequestView(**kwargs)

Bases: GenericViewSet

get_exception_handler()
create(request, *args, **kwargs)