when<TResult extends Object?> method
- @optionalTypeArgs
- required TResult read(),
- required TResult vRead(),
- required TResult update(),
- required TResult patch(),
- required TResult delete(),
- required TResult create(),
- required TResult search(),
- required TResult searchAll(),
- required TResult capabilities(),
- required TResult transaction(),
- required TResult batch(),
- required TResult history(),
- required TResult historyType(),
- required TResult historyAll(),
- required TResult operation(
- Uri base,
- Stu3ResourceType? type,
- String? fhirId,
- bool pretty,
- Summary summary,
- String format,
- List<
String> elements, - List<
String> parameters, - Parameters? fhirParameter,
- String operation,
- bool usePost,
- bool useFormData,
- MimeType? mimeType,
- String accept,
- Client? client,
- Map<
String, String> ? headers,
inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(
Uri base,
Stu3ResourceType type,
String fhirId,
bool pretty,
Summary summary,
String format,
List<String> elements,
List<String> parameters,
MimeType? mimeType,
String accept,
@JsonKey(includeFromJson: false, includeToJson: false)
Client? client,
Map<String, String>? headers)
read,
required TResult Function(
Uri base,
Stu3ResourceType type,
String fhirId,
FhirId vid,
bool pretty,
Summary summary,
String format,
List<String> elements,
List<String> parameters,
MimeType? mimeType,
String accept,
@JsonKey(includeFromJson: false, includeToJson: false)
Client? client,
Map<String, String>? headers)
vRead,
required TResult Function(
Uri base,
Resource resource,
bool pretty,
Summary summary,
String format,
List<String> elements,
List<String> parameters,
MimeType? mimeType,
String accept,
@JsonKey(includeFromJson: false, includeToJson: false)
Client? client,
Map<String, String>? headers)
update,
required TResult Function(
Uri base,
Resource resource,
bool pretty,
Summary summary,
String format,
List<String> elements,
List<String> parameters,
MimeType? mimeType,
String accept,
@JsonKey(includeFromJson: false, includeToJson: false)
Client? client,
Map<String, String>? headers)
patch,
required TResult Function(
Uri base,
Stu3ResourceType type,
String fhirId,
bool pretty,
Summary summary,
String format,
List<String> elements,
List<String> parameters,
MimeType? mimeType,
String accept,
@JsonKey(includeFromJson: false, includeToJson: false)
Client? client,
Map<String, String>? headers)
delete,
required TResult Function(
Uri base,
Resource resource,
bool pretty,
Summary summary,
String format,
List<String> elements,
List<String> parameters,
MimeType? mimeType,
String accept,
@JsonKey(includeFromJson: false, includeToJson: false)
Client? client,
Map<String, String>? headers)
create,
required TResult Function(
Uri base,
Stu3ResourceType type,
bool pretty,
Summary summary,
String format,
List<String> elements,
List<String> parameters,
bool usePost,
RestfulRequest restfulRequest,
MimeType? mimeType,
String accept,
@JsonKey(includeFromJson: false, includeToJson: false)
Client? client,
Map<String, String>? headers)
search,
required TResult Function(
Uri base,
bool pretty,
Summary summary,
String format,
List<String> elements,
List<String> parameters,
MimeType? mimeType,
String accept,
@JsonKey(includeFromJson: false, includeToJson: false)
Client? client,
Map<String, String>? headers)
searchAll,
required TResult Function(
Uri base,
bool pretty,
Summary summary,
String format,
List<String> elements,
List<String> parameters,
Mode mode,
MimeType? mimeType,
String accept,
@JsonKey(includeFromJson: false, includeToJson: false)
Client? client,
Map<String, String>? headers)
capabilities,
required TResult Function(
Uri base,
bool pretty,
Summary summary,
String format,
List<String> elements,
List<String> parameters,
Bundle bundle,
MimeType? mimeType,
String accept,
@JsonKey(includeFromJson: false, includeToJson: false)
Client? client,
Map<String, String>? headers)
transaction,
required TResult Function(
Uri base,
bool pretty,
Summary summary,
String format,
List<String> elements,
List<String> parameters,
Bundle bundle,
MimeType? mimeType,
String accept,
@JsonKey(includeFromJson: false, includeToJson: false)
Client? client,
Map<String, String>? headers)
batch,
required TResult Function(
Uri base,
Stu3ResourceType type,
String fhirId,
bool pretty,
Summary summary,
String format,
List<String> elements,
List<String> parameters,
int? count,
FhirInstant? since,
FhirDateTime? at,
String? reference,
MimeType? mimeType,
String accept,
@JsonKey(includeFromJson: false, includeToJson: false)
Client? client,
Map<String, String>? headers)
history,
required TResult Function(
Uri base,
Stu3ResourceType type,
bool pretty,
Summary summary,
String format,
List<String> elements,
List<String> parameters,
int? count,
FhirInstant? since,
FhirDateTime? at,
String? reference,
MimeType? mimeType,
String accept,
@JsonKey(includeFromJson: false, includeToJson: false)
Client? client,
Map<String, String>? headers)
historyType,
required TResult Function(
Uri base,
bool pretty,
Summary summary,
String format,
List<String> elements,
List<String> parameters,
int? count,
FhirInstant? since,
FhirDateTime? at,
String? reference,
MimeType? mimeType,
String accept,
@JsonKey(includeFromJson: false, includeToJson: false)
Client? client,
Map<String, String>? headers)
historyAll,
required TResult Function(
Uri base,
Stu3ResourceType? type,
String? fhirId,
bool pretty,
Summary summary,
String format,
List<String> elements,
List<String> parameters,
Parameters? fhirParameter,
String operation,
bool usePost,
bool useFormData,
MimeType? mimeType,
String accept,
@JsonKey(includeFromJson: false, includeToJson: false)
Client? client,
Map<String, String>? headers)
operation,
}) =>
throw _privateConstructorUsedError;