This is a demonstration of SMART-on-FHIR applications using the standalone launch to administer Patient-Reported Outcomes (PRO) instruments at point-of-care, more specifically– Patient Reported Outcomes Measurement Information System (PROMIS). This work was done as part of multi-site collaborative grant– EASI-PRO (Electronic Health Record Access to Seamless Integration of PROMIS).
AssessmentCenter swift framework includes client libraries and generation of QuestionnaireResponse. Read more about its usage here.
- Xcode (Version 11) is a requirement for publishing native iOS applications
- Swift 5.0 Build
git clone --recursive https://github.com/chb/easipro-smart.git
- Make sure submodules ResearchKit and Swift-SMART are downloaded.
Step2. Open EASIPRO.xworkspace
in Xcode and add the following xcodeproject files if not there already.
SwiftSMART.xcodeproj
AssessmentCenter.xcodeproj
ResearchKit.xcodeproj
EASIPRO-Clinic.xcodeproj
EASIPRO-Home.xcodeproj
- View General Tab for EASIPRO-Clinic project or EASIPRO-Home project
- Select Target-
EASIPRO-Clinic
orEASIPRO-Home
- Find Embedded Binaries section and Add compiled frameworks
SMART.frameworkiOS
AssessmentCenter.frameworkiOS
ResearchKit.frameworkiOS
- Open
AppDelegate
of the Apps (EASIPRO-Clinic or EASIPRO-Home) - Change
settings
as per the FHIR Server, protected servers are also supported. - Create a AssessmentCenter Client with endpoint, access identifier, access token
let settings = [
"client_name" : "easipro-clinic",
"client_id" : "app-client-id",
"redirect" : "easipro-clinic://smartcallback",
"scope" : "openid profile user/*.* launch"
]
let smart_baseURL = URL(string: "https://r4.smarthealthit.org")!
SMARTClient.shared.smart_settings = settings
SMARTClient.shared.smart_endpoint = smart_baseURL
SMARTClient.shared.acClient = ACClient(baseURL: URL(string: "https://www.assessmentcenter.net/ac_api/2014-01/")!, accessIdentifier: "<# - AC Access Identifier - #>", token: "<# - AC Token - #>")
- NCATS EASIPRO / Harvard Catalyst CTSA
- Raheel Sayeed, Daniel Gottlieb, Kenneth Mandl (PI), Justin Starren (PI)
- Computational Health Informatics Program, Boston Children's Hospital