FHIR Chat · Swift code · implementers

Stream: implementers

Topic: Swift code


view this post on Zulip Narasimha Reddy (Feb 07 2019 at 08:32):

Hi all,
iOS swift currently supports STU3 version only.
When can we expect R4 version related to SWIFT code?
https://github.com/smart-on-fhir/Swift-FHIR
Thank you

view this post on Zulip Grahame Grieve (Feb 07 2019 at 10:21):

@Pascal Pfiffner ?

view this post on Zulip Michele Mottini (Feb 07 2019 at 16:06):

I think that library is no longer actively maintained (since when Pascal went to work for Apple)

view this post on Zulip Lloyd McKenzie (Feb 07 2019 at 16:07):

It ought to be in Apple's interests for someone to be doing it...

view this post on Zulip Michele Mottini (Feb 07 2019 at 16:09):

Last commit was in Dec 2017...

view this post on Zulip Dave Carlson (Feb 07 2019 at 17:20):

I committed some preliminary updates a few months ago to generate Swift for R4 draft, will make some time after HIMSS to update for R4 final and propagate these changes into Swift-FHIR and Swift-SMART. See https://github.com/smart-on-fhir/fhir-parser.

view this post on Zulip Dave Carlson (Mar 07 2019 at 18:46):

For iOS developers, the Swift frameworks have been updated to R4 and Swift 4.2. When Swift 5 is released as part of the next XCode update, I will update these frameworks to Swift 5. A good starting point is this demo app: https://github.com/smart-on-fhir/SoF-Demo

view this post on Zulip Lakshmi Thrivarna (Mar 08 2019 at 13:44):

@Dave Carlson Thank you for your information.

view this post on Zulip Karimulla (Mar 13 2019 at 09:56):

@Dave Carlson

I am trying to update FHIR R4 via Cocoapods, But I am getting older versions of FHIR 3.0 files only.
I am unable to get FHIR R4 version files. Even as per https://github.com/smart-on-fhir/Swift-FHIR/releases there is no updated pod info.

Can you please help in this issue.

Thanks in Advance.

view this post on Zulip Dave Carlson (Mar 14 2019 at 21:06):

@Karimulla I don't usually work with Cocoapods. I just created a Release for 4.0.0 on GitHub. Let me know if this fixes the issue for you.

view this post on Zulip Karimulla (Mar 15 2019 at 04:46):

Thanks for Reply @Dave Carlson

When I m trying to pull code via cocoa pods we are able to fetch 3.0 version only. We are unable to retrieve Latest version files.

As per https://github.com/smart-on-fhir/Swift-FHIR/releases there is no information about latest version files. Can you please check once .

view this post on Zulip Dave Carlson (Mar 15 2019 at 17:00):

@Karimulla Swift-FHIR is also now released as 4.0.0

view this post on Zulip Dave Carlson (Apr 01 2019 at 20:29):

@Karimulla the 4.0.0 release of Swift FHIR and SMART are now released on CocoaPods.org

view this post on Zulip Mounika (May 22 2019 at 05:28):

Hi all, We want to use the MedicationUsage resource but MedicationStatement is only available in Swift R4 version.

view this post on Zulip Grahame Grieve (May 22 2019 at 19:51):

MedicationUsage is the renamed version of MedicationStatement in R5, for which no implementation yet exists

view this post on Zulip Lloyd McKenzie (May 22 2019 at 19:52):

R5 is super dynamic - lots of things will change, so in general it's not a good idea to tie implementations to it. You won't find many tools or reference implementations that will support it until after it gets locked down. (Tentatively scheduled for end of 2020.)

view this post on Zulip Mounika (May 23 2019 at 05:03):

Okay. Thank you @Lloyd McKenzie @Grahame Grieve

view this post on Zulip abhishek sharma (May 31 2019 at 13:25):

hi all,

Without using Documents,Drop Box and Good Reader etc. how to load index.html file on safari in ios.
I got error in safari inspect console--->cross origin requests only supported for http.

Can you please help in this issue.
Thanks in Advance.

view this post on Zulip Lloyd McKenzie (May 31 2019 at 14:57):

You're having issues browsing the FHIR spec with Safari?

view this post on Zulip Jose Costa Teixeira (May 31 2019 at 16:01):

where are you loading index.html from ? I am betting you have it on another server somewhere, since you mention a CORS issue

view this post on Zulip abhishek sharma (Jun 03 2019 at 04:48):

hi @Lloyd McKenzie @Jose Costa Teixeira ,
No,I have a simple project who made in js,css,html when i run that project in window 10 as a local using safari Firefox browser, it's working but when i running same project using safari browser in ios then i am getting this issue.

view this post on Zulip Lloyd McKenzie (Jun 03 2019 at 13:24):

So you've written your own web page and you're having trouble rendering it in a browser on an iOS device? (Safari and Firefox are different browsers - is it failing on both or only one?) Also, how is this a FHIR-related question?

view this post on Zulip abhishek sharma (Jun 19 2019 at 04:45):

Hi @Lloyd McKenzie
I want to run cardiac risk app(Smart app Gallery) as local page using index.html on safari browser in ios . It's running in Firefox,safari when i am using winsow 10.

Thank you.

view this post on Zulip Lloyd McKenzie (Jun 19 2019 at 05:45):

OK. So you're using the same local index.html page. Works on iOS and Window with Firefox, but the same page gives a cross-site scripting error on iOS when you use Safari. Is that an accurate description of the problem?

view this post on Zulip Lloyd McKenzie (Jun 19 2019 at 05:47):

Has anyone else run into cross-site scripting issues with SMART using Safari that can provide advice? It sounds to me like a client security configuration issue.

view this post on Zulip abhishek sharma (Jun 20 2019 at 06:16):

Hi, @Lloyd McKenzie
You are right ,But now when i run cardiac risk app as local page using index.html on safari browser in ios then html,css,js,images are loading but my local file json resources data not loading on safari browser in ios.
how to solve in this problem can any on suggest me.

Thank you so much.

view this post on Zulip Lloyd McKenzie (Jun 20 2019 at 12:27):

@Josh Mandel ?

view this post on Zulip abhishek sharma (Jun 20 2019 at 12:34):

Question=>
How to load file json data on safari browser in ios ?


Last updated: Apr 12 2022 at 19:14 UTC