FHIRResponseHandler
public protocol FHIRResponseHandler
Protocol for FHIR response handler that parses it into its associated type
-
Parsed type
Declaration
Swift
associatedtype Value
-
the accepted format that self can handle
Declaration
Swift
var acceptFormat: FHIRAcceptFormat { get }
-
Handle the FHIR response and parse it into
Value
Declaration
Swift
func handle(response: FHIRClient.Response) throws -> Value
Parameters
response
FHIR response
Return Value
parsed
Value