Constructors
FhirHistoryRequest ({required Uri base , required Dstu2ResourceType type , required 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 , })
const
factory
FhirHistoryRequest.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 setter override
at
→ FhirDateTime?
at - Only include resource versions that were current at some point
during the time period specified in the date time value
no setter
base
→ Uri
base - the base URI for the FHIR server
no setter override
client
→ Client?
client - if there's a specific client that you're going to be using
no setter override
copyWith
→ _$$FhirHistoryRequestImplCopyWith<_$FhirHistoryRequestImpl >
no setter override
count
→ int ?
count - The maximum number of search results on a page, excluding related
resources included by _include or _revinclude or OperationOutcomes. The
server is not bound to return the number requested, but cannot return more
no setter
elements
→ List <String >
elements - elements you need to pass in
no setter override
fhirId
→ String
fhirId - the id for the resource
no setter
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 setter override
hashCode
→ int
The hash code for this object.
no setter inherited
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 setter override
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 setter override
parameters
→ List <String >
parameters - any extra parameters
no setter override
pretty
→ bool
pretty - pretty print the json formatting in the response
no setter override
reference
→ String ?
reference - Only include resource versions that are referenced in
the specified list
no setter
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
since
→ FhirInstant?
since - Only include resource versions that were created at or after the
given instant in time
no setter
summary
→ Summary
summary - do you want the result to be a summary
no setter override
type
→ Dstu2ResourceType
type - the type of resource you're looking for
no setter
url
→ String
Getter for the uri
no setter inherited
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 , Dstu2ResourceType type , String fhirId , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , MimeType ? mimeType , String accept , Client? client , )?, TResult vRead (Uri base , Dstu2ResourceType type , String fhirId , FhirId vid , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , MimeType ? mimeType , String accept , Client? client , )?, TResult update (Uri base , Resource resource , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , MimeType ? mimeType , String accept , Client? client , )?, TResult patch (Uri base , Resource resource , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , MimeType ? mimeType , String accept , Client? client , )?, TResult delete (Uri base , Dstu2ResourceType type , String fhirId , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , MimeType ? mimeType , String accept , Client? client , )?, TResult create (Uri base , Resource resource , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , MimeType ? mimeType , String accept , Client? client , )?, TResult search (Uri base , Dstu2ResourceType type , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , bool usePost , RestfulRequest restfulRequest , MimeType ? mimeType , String accept , Client? client , )?, TResult searchAll (Uri base , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , MimeType ? mimeType , String accept , Client? client , )?, TResult capabilities (Uri base , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , Mode mode , MimeType ? mimeType , String accept , Client? client , )?, TResult transaction (Uri base , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , Bundle bundle , MimeType ? mimeType , String accept , Client? client , )?, TResult batch (Uri base , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , Bundle bundle , MimeType ? mimeType , String accept , Client? client , )?, TResult history (Uri base , Dstu2ResourceType 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 , )?, TResult historyType (Uri base , Dstu2ResourceType 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 , )?, 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 , )?, TResult operation (Uri base , Dstu2ResourceType? 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 , )?, required TResult orElse () })
→ TResult
inherited
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
request ({})
→ 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 ({})
→ 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 , Dstu2ResourceType type , String fhirId , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , MimeType ? mimeType , String accept , Client? client , ), required TResult vRead (Uri base , Dstu2ResourceType type , String fhirId , FhirId vid , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , MimeType ? mimeType , String accept , Client? client , ), 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 , ), 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 , ), required TResult delete (Uri base , Dstu2ResourceType type , String fhirId , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , MimeType ? mimeType , String accept , Client? client , ), 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 , ), required TResult search (Uri base , Dstu2ResourceType type , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , bool usePost , RestfulRequest restfulRequest , MimeType ? mimeType , String accept , Client? client , ), required TResult searchAll (Uri base , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , MimeType ? mimeType , String accept , Client? client , ), 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 , ), 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 , ), 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 , ), required TResult history (Uri base , Dstu2ResourceType 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 , ), required TResult historyType (Uri base , Dstu2ResourceType 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 , ), 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 , ), required TResult operation (Uri base , Dstu2ResourceType? 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 , ) })
→ TResult
inherited
whenOrNull <TResult extends Object ? > ({TResult? read (Uri base , Dstu2ResourceType type , String fhirId , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , MimeType ? mimeType , String accept , Client? client , )?, TResult? vRead (Uri base , Dstu2ResourceType type , String fhirId , FhirId vid , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , MimeType ? mimeType , String accept , Client? client , )?, TResult? update (Uri base , Resource resource , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , MimeType ? mimeType , String accept , Client? client , )?, TResult? patch (Uri base , Resource resource , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , MimeType ? mimeType , String accept , Client? client , )?, TResult? delete (Uri base , Dstu2ResourceType type , String fhirId , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , MimeType ? mimeType , String accept , Client? client , )?, TResult? create (Uri base , Resource resource , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , MimeType ? mimeType , String accept , Client? client , )?, TResult? search (Uri base , Dstu2ResourceType type , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , bool usePost , RestfulRequest restfulRequest , MimeType ? mimeType , String accept , Client? client , )?, TResult? searchAll (Uri base , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , MimeType ? mimeType , String accept , Client? client , )?, TResult? capabilities (Uri base , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , Mode mode , MimeType ? mimeType , String accept , Client? client , )?, TResult? transaction (Uri base , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , Bundle bundle , MimeType ? mimeType , String accept , Client? client , )?, TResult? batch (Uri base , bool pretty , Summary summary , String format , List <String > elements , List <String > parameters , Bundle bundle , MimeType ? mimeType , String accept , Client? client , )?, TResult? history (Uri base , Dstu2ResourceType 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 , )?, TResult? historyType (Uri base , Dstu2ResourceType 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 , )?, 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 , )?, TResult? operation (Uri base , Dstu2ResourceType? 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 , )? })
→ TResult?
inherited