request method
Actually perform the request by type
Implementation
Future<List<Resource?>> request({
required Map<String, String> headers,
}) async {
headers['accept'] = 'application/fhir+json';
headers['prefer'] = 'respond-async';
return map(
patient: (_BulkPatientRequest request) async => _request(
RestfulRequest.get_,
'$base/Patient/\$export${_parameters(since, types)}',
headers,
client,
),
group: (_BulkGroupRequest request) async => _request(
RestfulRequest.get_,
'$base/Group/${request.id}/\$export${_parameters(since, types)}',
headers,
client,
),
system: (_BulkSystemRequest request) async => _request(
RestfulRequest.get_,
'$base/\$export${_parameters(since, types)}',
headers,
client,
),
);
}