Skip to content

Commit

Permalink
Update SMART submodule and adapt
Browse files Browse the repository at this point in the history
  • Loading branch information
p2 committed Sep 24, 2016
1 parent 727dbdc commit 546c9d6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion SoF-MedList.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
EE9EE7091AC49C3D002D8B49 /* SwiftSMART-OSXTests.xctest */ = {
isa = PBXReferenceProxy;
fileType = wrapper.cfbundle;
path = "SwiftSMART-OSXTests.xctest";
path = "SwiftSMART-macOSTests.xctest";
remoteRef = EE9EE7081AC49C3D002D8B49 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
Expand Down
10 changes: 5 additions & 5 deletions SoF-MedList/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate
var window: UIWindow?

lazy var smart: Client = Client(
baseURL: "https://fhir-api-dstu2.smarthealthit.org",
baseURL: URL(string: "https://fhir-api-dstu2.smarthealthit.org")!,
settings: [
"client_id": "my_mobile_app",
"client_name": "SMART on FHIR iOS Medication Sample App",
Expand All @@ -28,17 +28,17 @@ class AppDelegate: UIResponder, UIApplicationDelegate
)

func application(_ app: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]? = nil) -> Bool {
let splitViewController = self.window!.rootViewController as! UISplitViewController
let navigationController = splitViewController.viewControllers[splitViewController.viewControllers.endIndex-1] as! UINavigationController
splitViewController.delegate = navigationController.topViewController as! DetailViewController
let splitViewController = self.window!.rootViewController as! UISplitViewController
let navigationController = splitViewController.viewControllers[splitViewController.viewControllers.endIndex-1] as! UINavigationController
splitViewController.delegate = navigationController.topViewController as! DetailViewController

return true
}


// MARK: - SMART Tasks

func selectPatient(callback: @escaping (_ patient: Patient?, _ error: Error?) -> Void) {
func selectPatient(_ callback: @escaping (_ patient: Patient?, _ error: Error?) -> Void) {
smart.authProperties.embedded = true
// smart.authProperties.granularity = .patientSelectWeb
smart.authProperties.granularity = .patientSelectNative
Expand Down
2 changes: 1 addition & 1 deletion Swift-SMART

0 comments on commit 546c9d6

Please sign in to comment.