FhirSearchRequest class abstract

Inheritance

Constructors

FhirSearchRequest({required Uri base, required R4ResourceType 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})
const
factory
FhirSearchRequest.fromJson(Map<String, dynamic> json)
factory

Properties

accept String
accept - this will default to fhir+json just so it will stop sending me XML - I hate XML
no setteroverride
base Uri
base - the base URI for the FHIR server
no setteroverride
client → Client?
client - if there's a specific client that you're going to be using
no setteroverride
copyWith → _$$FhirSearchRequestImplCopyWith<_$FhirSearchRequestImpl>
no setteroverride
elements List<String>
elements - elements you need to pass in
no setteroverride
format String
format - currently requests json, but could consider requesting json+fhir or fhir+json (would not request XML as this library doesn't work with XML)
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
headers - because there are some times it's easier to incldue the headers in the object instead of only passing it in with the request
no setteroverride
mimeType MimeType?
mimeType - specify the MimeType in the Header - this should be fhir+json but there are some older systems that won't accept that
no setteroverride
parameters List<String>
parameters - any extra parameters
no setteroverride
pretty bool
pretty - pretty print the json formatting in the response
no setteroverride
restfulRequest RestfulRequest
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
summary Summary
summary - do you want the result to be a summary
no setteroverride
type → R4ResourceType
type - the type of resource you're looking for
no setter
url String
Getter for the uri
no setterinherited
usePost bool
usePost - defines if you would prefer to use a post request instead of a get request for this search
no setter

Methods

formData({List<String> parameters = const <String>[]}) String
Return a string from the formData
inherited
map<TResult extends Object?>({required TResult read(FhirReadRequest value), required TResult vRead(FhirVReadRequest value), required TResult update(FhirUpdateRequest value), required TResult patch(FhirPatchRequest value), required TResult delete(FhirDeleteRequest value), required TResult create(FhirCreateRequest value), required TResult search(FhirSearchRequest value), required TResult searchAll(FhirSearchAllRequest value), required TResult capabilities(FhirCapabilitiesRequest value), required TResult transaction(FhirTransactionRequest value), required TResult batch(FhirBatchRequest value), required TResult history(FhirHistoryRequest value), required TResult historyType(FhirHistoryTypeRequest value), required TResult historyAll(FhirHistoryAllRequest value), required TResult operation(FhirOperationRequest value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? read(FhirReadRequest value)?, TResult? vRead(FhirVReadRequest value)?, TResult? update(FhirUpdateRequest value)?, TResult? patch(FhirPatchRequest value)?, TResult? delete(FhirDeleteRequest value)?, TResult? create(FhirCreateRequest value)?, TResult? search(FhirSearchRequest value)?, TResult? searchAll(FhirSearchAllRequest value)?, TResult? capabilities(FhirCapabilitiesRequest value)?, TResult? transaction(FhirTransactionRequest value)?, TResult? batch(FhirBatchRequest value)?, TResult? history(FhirHistoryRequest value)?, TResult? historyType(FhirHistoryTypeRequest value)?, TResult? historyAll(FhirHistoryAllRequest value)?, TResult? operation(FhirOperationRequest value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult read(FhirReadRequest value)?, TResult vRead(FhirVReadRequest value)?, TResult update(FhirUpdateRequest value)?, TResult patch(FhirPatchRequest value)?, TResult delete(FhirDeleteRequest value)?, TResult create(FhirCreateRequest value)?, TResult search(FhirSearchRequest value)?, TResult searchAll(FhirSearchAllRequest value)?, TResult capabilities(FhirCapabilitiesRequest value)?, TResult transaction(FhirTransactionRequest value)?, TResult batch(FhirBatchRequest value)?, TResult history(FhirHistoryRequest value)?, TResult historyType(FhirHistoryTypeRequest value)?, TResult historyAll(FhirHistoryAllRequest value)?, TResult operation(FhirOperationRequest value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult read(Uri base, R4ResourceType type, String fhirId, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers)?, TResult vRead(Uri base, R4ResourceType type, String fhirId, FhirId vid, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers)?, TResult update(Uri base, Resource resource, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers)?, TResult patch(Uri base, Resource resource, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers)?, TResult delete(Uri base, R4ResourceType type, String fhirId, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers)?, TResult create(Uri base, Resource resource, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers)?, TResult search(Uri base, R4ResourceType type, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, bool usePost, RestfulRequest restfulRequest, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers)?, TResult searchAll(Uri base, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers)?, TResult capabilities(Uri base, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, Mode mode, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers)?, TResult transaction(Uri base, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, Bundle bundle, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers)?, TResult batch(Uri base, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, Bundle bundle, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers)?, TResult history(Uri base, R4ResourceType 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, Client? client, Map<String, String>? headers)?, TResult historyType(Uri base, R4ResourceType 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, Client? client, Map<String, String>? headers)?, TResult historyAll(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, Client? client, Map<String, String>? headers)?, TResult operation(Uri base, R4ResourceType? 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)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
request({Map<String, String>? headers}) Future<Resource>
REQUEST after creating a request with the above constructors, they can be called to interact with the server by using this method. If necessary, authorization or other headers can be passed in as well
inherited
toFhirHttpRequest({Map<String, String>? headers}) FhirHttpRequest
FhirHttpRequest In order to send a these via the atProtocol, we need to change them into something that can be easily serialized or deserialized.
inherited
toJson() Map<String, dynamic>
inherited
toJsonString() String
Another convenience method because more and more I'm transmitting FHIR data as a String and not a Map
inherited
toString() String
A string representation of this object.
inherited
uri({List<String> parameters = const <String>[]}) String
Constructs the uri
inherited
when<TResult extends Object?>({required TResult read(Uri base, R4ResourceType type, String fhirId, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers), required TResult vRead(Uri base, R4ResourceType type, String fhirId, FhirId vid, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers), required TResult update(Uri base, Resource resource, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers), required TResult patch(Uri base, Resource resource, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers), required TResult delete(Uri base, R4ResourceType type, String fhirId, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers), required TResult create(Uri base, Resource resource, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers), required TResult search(Uri base, R4ResourceType type, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, bool usePost, RestfulRequest restfulRequest, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers), required TResult searchAll(Uri base, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers), required TResult capabilities(Uri base, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, Mode mode, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers), required TResult transaction(Uri base, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, Bundle bundle, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers), required TResult batch(Uri base, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, Bundle bundle, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers), required TResult history(Uri base, R4ResourceType 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, Client? client, Map<String, String>? headers), required TResult historyType(Uri base, R4ResourceType 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, Client? client, Map<String, String>? headers), required TResult historyAll(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, Client? client, Map<String, String>? headers), required TResult operation(Uri base, R4ResourceType? 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)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? read(Uri base, R4ResourceType type, String fhirId, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers)?, TResult? vRead(Uri base, R4ResourceType type, String fhirId, FhirId vid, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers)?, TResult? update(Uri base, Resource resource, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers)?, TResult? patch(Uri base, Resource resource, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers)?, TResult? delete(Uri base, R4ResourceType type, String fhirId, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers)?, TResult? create(Uri base, Resource resource, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers)?, TResult? search(Uri base, R4ResourceType type, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, bool usePost, RestfulRequest restfulRequest, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers)?, TResult? searchAll(Uri base, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers)?, TResult? capabilities(Uri base, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, Mode mode, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers)?, TResult? transaction(Uri base, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, Bundle bundle, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers)?, TResult? batch(Uri base, bool pretty, Summary summary, String format, List<String> elements, List<String> parameters, Bundle bundle, MimeType? mimeType, String accept, Client? client, Map<String, String>? headers)?, TResult? history(Uri base, R4ResourceType 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, Client? client, Map<String, String>? headers)?, TResult? historyType(Uri base, R4ResourceType 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, Client? client, Map<String, String>? headers)?, TResult? historyAll(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, Client? client, Map<String, String>? headers)?, TResult? operation(Uri base, R4ResourceType? 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)?}) → TResult?
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited