Skip to content

Commit

Permalink
Fixed issue where only a summary version of the capability statement …
Browse files Browse the repository at this point in the history
…is fetched (#28)
  • Loading branch information
namalu authored and xmlmodeling committed Oct 24, 2019
1 parent 626ffd1 commit b68fb5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Client/FHIROpenServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ open class FHIROpenServer: FHIRMinimalServer {
Executes a `read` action against the server's "metadata" path, as returned from `cababilityStatementPath()`, which should return the
cabability statement.
*/
public final func getCapabilityStatement(_ callback: @escaping (_ error: FHIRError?) -> ()) {
public final func getCapabilityStatement(options: FHIRRequestOption = [.lenient], _ callback: @escaping (_ error: FHIRError?) -> ()) {
if nil != cabability {
callback(nil)
return
}

// not yet fetched, fetch it
CapabilityStatement.readFrom("metadata", server: self, options: [.summary, .lenient]) { resource, error in
CapabilityStatement.readFrom("metadata", server: self, options: options) { resource, error in
if let conf = resource as? CapabilityStatement {
self.cabability = conf
callback(nil)
Expand Down

0 comments on commit b68fb5d

Please sign in to comment.