OpenMRS iOS Client Extensions project idea

Tags: #<Tag:0x00007f299c47d0e8> #<Tag:0x00007f299c47ce90>

Hi, I have encountered an error when building the project, there was a missing file called “VisitDetailViewController.swift” in OpenMRS-iOS folder of the project, after removing it now I could run the app successfully.

When I try to add a patient from “Add Patient” option and after filling the form and pressing the done button, app shows an activity indicator for a while and then disappears also the interface remains the same, when I try to search for the patient that I entered, the patient is not there. I don’t think this is the normal behavior of the app. I have a doubt there, can someone help me to clarify this.

1 Like

Hi Harsha, I am intrested in this project, I have MacOSX 10.9 with XCode installed. I am little bit experience with iOS. I read the building procedure. Is that work in simulator without any issue ? Or I have to use actual device?

1 Like

Hi Tharindu, Glad to hear you have able to build and run the current code base. Could you please share the NSLogs you have so we can rectify the scene. (paste it on a github gist or pastebin and link it here) If possible please file an issue ticket (if you can reproduce the issue many times) at here: @parkererway any ideas you might have?

Hi Vineet, Thanks for your interest. The current code base works perfectly on iOS Simulators as well tested on all major iPhone devices. But you don’t need an iPhone to take part in this project, just make sure you test everything really well on simulators. So no issue.

Would you mind creating an issue for this in JIRA? I think I know what it is, but it’s nice to have something in the bug tracker.


1 Like

As long as you have Xcode 6 installed (as part of the codebase uses Swift, and you need Xcode 6 to compile that), you’re good to go. The simulator is perfectly fine for a project like this :slight_smile:

1 Like

Harsha, here I have attached the debug area output of the app when it is on Device and also when it is on Simulator. I will file an issue ticket.

Hi Parker, I created an issue regarding what I mentioned above.

1 Like

Hey I’m interested in applying the extensions of the iOS app, I have made some iOS apps and contributed to also on github and made a pull request to the OpenMRS iOS app.

I have some suggestions for the app, the suggestions:

  • All the source files in one directory making it harder to navigate, we can separate them in a nicer way and not a very sophisticated one to:

    • Model (for handling offline saved patients and Coredata functionalities)
    • Services (for handling the web services and calling the REST API)
    • Views for the view controllers of the app
  • Adding a .gitignore file to ignore the pod directory as it becomes really messy after $pod install

I have a questions too, Is this a project of priority to OpenMRS?

Thanks in advance :smile:

1 Like


About “Reposition the activity indicators to provide a better user experience.” - Improvements to the iOS app

The activity indicators already visible in the center of screen except for a few places like search Where else do you see this problem?


1 Like

Hi Yusuf,

Thanks for your interest on the project. also i appreciate most of the enhancements ideas you mentioned. Regarding your question well, its kind of priority project now since we have significant amount of iOS user base. :smiley:

Please try to get familiar with ODKClinic code base and design ASAP & let me know how you gonna implement that in iOS project (in gsoc proposal too), that part also gonna be another major objective of this project.

Actually I’m working on that today already and am going to deliver a draft proposal to you about it tonight or earlier tomorrow.

1 Like

I did some research which took way way more than expected

I ended up with conclusions that I need to verify and some questions:

a) First the ODK solution isn’t applicable in iOS, there’s no ODK Collect on iOS, I found a solution that’s paid that uses ODK but it’s used in safari browser, Should I continue research there?

b) Other than that basically I get forms through the rest API and parse it and represent it with a beautiful UI in the app.

b-1) Do I work with the form module existing on OpenMRS or with xforms module as the android app already do?

b-2) I played with the API and everything worked just fine, but when tried to get full form I get error: "“message”:“Unable to convert object into response content” -Link:

c) I upload the filled forms explicitly as encounters?

d) Where can I access existing xforms? I tried on “”, used in ODK Clinic, but that didn’t work -URL call used: “

e) Dealing with field type concept is quite straight forward, what about other types like miscellaneous set?


Hi Yousef,

Nice work so far. a) this isn’t relevant, yes stop going through that. b) Yes! and submit them back to server too. (2 way sync) b-1) yes Xforms. b-2) Please discuss this on openmrs dev list: dev■■■■■■■■■■■■ c) yes as encounters. d) Please discuss this on openmrs dev list: dev■■■■■■■■■■■■ or consult dkayiwa on our IRC channel. e) I don’t understand this question ?

1 Like

Hi Harsha,

Does this mean that implementing ODKClinic is not going to consider anymore in this project?

Tharindu, what made you think like that? :smiley: ODK gonna be a major objective of this project.

Notice For all the interested Students: Please submit your /draft/ proposals for this project to google-melange onwards now, So we could improve upon. Thanks!

PS: You also can edit contents of the melange submissions afterwards. So don’t wait till the last moment.

Harsha, In the above post of Yousef, under (a) he has mentioned that ODK solution isn’t applicable in IOS and I misunderstood your answer to that question :slight_smile:

1 Like

Hi, I am interested in this project. I have extensive iOS experience and am currently building an app for a school project that requires the same data. I have been building the app with guidance from Alberta health services. I am aware I am joining this late, so were would you like me to start, and what would you like me to do over the next 7 days? Thank you, Daniel

1 Like

Hi Daniel,

Welcome on board! You are not that much late, Just submit your draft proposal to melange - so we can improve upon on the coming days till deadline. The next steps are discussed already in the first post FAQ section. Let me know if you have any problems, thanks!