Protocols

The following protocols are available globally.

  • Protocol for different request/response handlers.

    TODO: should add ResponseType associated type as soon as those can be constrained (SE-0142 – Swift 4?).

    See more

    Declaration

    Swift

    public protocol FHIRRequestHandler
  • The base type for every FHIR element.

    See more

    Declaration

    Swift

    public protocol FHIRType
  • A protocol to handle FHIRType when working with JSON - which in our case is all FHIR types.

    See more

    Declaration

    Swift

    public protocol FHIRJSONType: FHIRType
  • Protocol for server objects to be used by FHIRResource and subclasses.

    See more

    Declaration

    Swift

    public protocol FHIRServer
  • Encapsulates a server response, which can also indicate that there was no response or not even a request, in which case the error property carries the only useful information.

    See more

    Declaration

    Swift

    public protocol FHIRServerResponse