From b68fb5d6c8137de4a06894e683dc1a726a832907 Mon Sep 17 00:00:00 2001 From: namalu Date: Thu, 24 Oct 2019 08:45:22 -0700 Subject: [PATCH] Fixed issue where only a summary version of the capability statement is fetched (#28) --- Sources/Client/FHIROpenServer.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Client/FHIROpenServer.swift b/Sources/Client/FHIROpenServer.swift index 2c67be7e..836d02e2 100644 --- a/Sources/Client/FHIROpenServer.swift +++ b/Sources/Client/FHIROpenServer.swift @@ -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)