FHIROperation
open class FHIROperation: CustomStringConvertible
Named operations to be performed against a FHIR REST endpoint.
-
Undocumented
Declaration
Swift
open class FHIROperation: CustomStringConvertible
-
Validate the receiver against its operation definition.
Declaration
Swift
open func validate(with definition: OperationDefinition) throws
Parameters
with
The OperationDefinition with which to validate the operation
-
Return the relative server URL the operation will call.
Declaration
Swift
open func serverPath() throws -> String
-
Perform the operation on the given server. You probably want to call
validateWith()
first.Declaration
Swift
open func perform(onServer server: FHIRServer, callback: @escaping ((_ response: FHIRServerResponse) -> Void)) throws
Parameters
on Server
The server on which to perform the operation
-
Declaration
Swift
open var description: String