Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
jan_ruessel
Advisor
Advisor
3,677

If your goal is to set up a proof of concept of the EMR Unwired solution (App & Mobile Server for Healthcare) this blog is meant for you. We provide a VM image which you can download and install & configure quickly.

In this blog post I would like to give you a step by step guide on how to set up the Mobile Server for Healthcare, connect your mobile device to the server and how to configure webservice calls so you can connect them to the backend of your choice.

All resources mentioned in this blog are tagged with "getting_started" so you can easily find them when walking through this blog / tutorial. You can find it by clicking on the tab "overview" and then "getting_started" in the tag cloud on the right side.

1) VM vs. full Mobile Server for Healthcare

There are two options of server installations you can chose from. One is to download a pre-packaged VM (virtual machine) which is described in this blog. The other is to install your own server. While the VM option is quick and easy to deploy it does not allow you to install new support packages (new functionality and fixes) or implement notes (single fixes). Additionally the VM has a limited time for usage as it is delivered with a test license which is only active for 90 days. Therefore we recommend you to install your own server for mid and longterm usage so you can benefit of fixes and new functionality as soon as we release them on the SAP Service Marketplace. For simplicity reasons this blog explains the setup with the VM with screenshots from an internal test run. For setting up a full server please see the EMR Administration Guide.

2) Download and installation of the VM

Open this link: https://store.sap.com/sap/cp/ui/resources/store/html/SolutionDetails.html?pid=0000000243&catID=&pcnt...

Download the three artifacts which you need in order to do the installation by clicking the three links:

- one for the .iso file: click the "Trial Version" button, fill out the form and download the iso.

- one for the operating system: open the section "Technical requirements" wherein you find the download for the SLES Linux version.

- one for the guide which will walk you through the installation step-by-step ("How to Guide"): see section "Technical requirements".

Here is a screenshot what you should see:

Please note: For good performance please consider the system requirements on the above download site.

After you walked through the documentation provided with the VM image you can proceed with step 3 to 9 which covers the EMR specific configurations.


3) Retrieval of host and port information (important for further configuration steps)

- Logon to the VM (Mobile Server for Healthcare)

- in the transaction field enter transaction "/nsicf"

- click on the execute icon (clock with green checkmark) or hit F8

- click on the grey icon to retrieve protocol, host & port –information

- write down this information of protocol, host and port where port is equal to the column "Service"

4) Test the connection from a browser to the Mobile Server

For a first test that the server is reachable via OData enter the following URL into the browser of you choice after replacing the host with your IP address.

http://<your_ip_or_host_name>:8042/sap/opu/odata/MEMR/MOBILE_EMR/$metadata

Example: http://10.55.148.206:8042/sap/opu/odata/MEMR/MOBILE_EMR/$metadata

An XML like metadata model of the EMR Objects should be returned

If this succeeds also check if demo data is retrievable via a REST client. To do so enter the following links into the REST client again after replacing the host with your IP.

http://<your_ip_or_host_name>:8042/sap/opu/odata/MEMR/MOBILE_EMR/PatientCollection('1')/Allergies?sap-client=001

Example: http://10.55.148.206:8042/sap/opu/odata/MEMR/MOBILE_EMR/PatientCollection('1')/Allergies?sap-client=...

Here is a screenshot as a reference with the result displayed with a REST client (here the firefox browser was used):

Hints:

- After you send the request a popup will appear. Enter your user and password, e.g. developer / ch4ngeme.

- should you encounter the error "RFC error when sending logon data" go to transaction secstore, delete all entries and try again.

5) Test the connection from a mobile device to the Mobile Server

- Download and install the EMR mobile app on the device

- go to the app settings and make the following entries:

--> Backend URL = http://<your_ip_or_host_name>:8042/sap/opu/odata/MEMR/MOBILE_EMR

--> Client = 001

--> Sample Data Mode = disabled

6) Webservice Connectivity

The webservice definitions are provided with file "Webservice WSDLs.zip" which can be downloaded from our EMRU partner page: https://service.sap.com/~sapidb/011000358700001249782012E/. Please note: You can access this area only if you have become a SAP Partner, e.g. via http://scn.sap.com/community/mobile/blog/2013/03/26/getting-started-for-implementation-partners

You can use these to develop a backend adapter to expose this data to the Mobile Server.

Presuming the development is done the next step is configure the Mobile Server to connect to the webservices of the backend.

For the actual configuration please see section "Web Service based Service Interfaces" in the EMR Implementation Guide which can be downloaded from the EMRU partner page.

Note: If you launch the transaction "SOAMANAGER" from the VM, the browser-link will be generated with host "nplhost". If the host is not resolved, change it to "localhost" and the SOAManager should be launched properly.

After configuring the webservices you have to register the webservices to be called by the Mobile Server for data retrievel from the backend. To do so:

- from the "getting_started" section download the file "EMR WebService Configuration XML"

- logon to the Mobile Server

- enter the configuration UI by entering transaction "/n/MEMR/CONFIG_UI"

- go to change mode

- click the button "Import from local file"

- select the downloaded file (emrConfigWebServiceImplementation.xml)

- click the save icon to save your changes

Now the webservices should be called.

19 Comments
Former Member
0 Kudos

Hello Jan - this is just what we were looking for!

Unfortunately your picture links are broken - can you repair them.

I have a question - the "old" app used SUP 2.1.2 - the new app needs the SAP EMR Unwired – Mobile Server for Healthcare - does this mean the app works fully without SUP?

Or is this somehow integrated in the SAP EMR Unwired Mobile Server for Healthcare?

Best regards,

Denise

jan_ruessel
Advisor
Advisor
0 Kudos

Hello Denise,

Great! I am glad you found this blog useful. I updated the screenshots and they should be visible for you now.

SAP EMR Unwired works without SUP as it directly consumes OData services from the SAP EMR Unwired Mobile Server for Healthcare which is based on SAP NetWeaver Gateway.

Best regards,

Jan

Former Member
0 Kudos

Thank you so much Jan, It's an amazing post which has all the required information to start with EMR Unwired App

I am going through the implementation as we have access to the same through partner connect, in which on page 101, it talks about uploading MEMR_TEST_DATA.zip file, but sadly that zip file is not available neither in the installer nor in the service market place.

Just checking to see if you can you help us in anyways,  and also it would be helpful if I can contact through email (how?). :smile:

Former Member
0 Kudos

Hi Jan,

I have been going through your blog since last quite few weeks and its just amazing it covers all the basic steps to start with and also it helped me a lot to understand how EMRU works, sadly I got struck with the implementation guide, where it talks about MEMR_TEST_DATA a zip file which contains xml and images which has to be uploaded (optional) to the test database, unfortunately I am not able to locate the .zip file :sad:

Just checking to see you have any clue about where can I find the test data which is being mentioned in the implementation guide.

Looking forward to hear from you :smile:

Regards,

Srinivas Divakarla

jan_ruessel
Advisor
Advisor
0 Kudos

Hi Srinivas,

we have uploaded the TEST Data to the Partner content site: https://websmp201.sap-ag.de/~sapidb/011000358700001249782012E/

The file is called "Demo Data for Mobile Server".

Former Member
0 Kudos

Excellent Blog!!

It helped me alot for setting it up.

However i am stuck at step 4 while calling metadata & the response says "In the context of Data Services an unknown internal server error occured".

However i have already imported the demo data as mentioned by you.

Can help me out here.

Regards,

Shrikant N.

Former Member
0 Kudos

Hi Shrikant,

500 internal server error is a very generic error, alternatively what you can do is, in netweaver gateway you can monitor the error logs by using /IWFND/ERROR_LOG it will provide you the basic insight of what causing the error, and also you can go through the call stack

Regards,

Srinivas Divakarla

Former Member
0 Kudos

Thanks Srinivas. I checked the ERROR_LOG & i found out that i am getting following exception: -

"GET_BUSINESS_SYSTEM_ERROR An error occurred when determining the business system (SLD_API_EXCEPTION)"

Regards,

Shrikant

jan_ruessel
Advisor
Advisor
0 Kudos

Are you using the test-trial VM or a freshly installed system? On the trial VM the right configurations are already preconfigured.

If you are using a freshly installed system you need to configure the services to read the data from the local testdata.

For each service you have to define the configuration value to access the testdata.

So service /MEMR/FUNCTION_MODULE/<service_name> has to have the configuration value /MEMR/TEST_<service_name>

An example: for service /MEMR/FUNCTION_MODULE/GET_ALLERGIES the configuration value needs to be /MEMR/TEST_GET_ALLERGIES

Former Member
0 Kudos

Thanks Russel for the clarification.

I am using fresh system setup at my office.

Where do I need to define this services?

Is it needs to be defined using SOAMANAGER?

Former Member
0 Kudos

It has to be defined at transaction /MEMR/CONFIG_UI

Former Member
0 Kudos

Hi Srinivas & Jan,

As i have already imported the Test Demo Data downloaded which Jan mentioned in the Blog & i imported in the /MEMR/CONFIG_UI. So all the config values are already maintained which i guess are correct.

For ex, /MEMR/FUNCTION_MODULE/GET_ALLERGIES has the config value /MEMR/WSA_GET_ALLERGIES.

But still i am getting this error: -

""GET_BUSINESS_SYSTEM_ERROR An error occurred when determining the business system (SLD_API_EXCEPTION)"

Please suggest.

Thanks,

Shrikant



Former Member
0 Kudos

Finally, i have resolved it now. The consumer proxy URL configuration in SOAMANAGER was maintained wrong way.

I appreciate Jan & Srinivas for the support.

Its a nice blog to start with implementation.

Thanks,

Shrikant

Former Member
0 Kudos

Hello, thanks for this awesome post!

Unfortunately the link for the "EMR Unwired with SAP NetWeaver Gateway 2.0 ABAP and Java Trail Version on Linux" (2. Download and installation of the VM -> one for the .iso file ("Click here for download") is not working. Could you fix it?

Best regards

Patrick

KayLoehmann
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Patrick,

I have tried to download all necessary assets and it works perfectly for me. Could you please try again? Sometimes servers are just down.

Thanks. Kay.

KayLoehmann
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi everyone,

the Sneak Preview is now available through the SAP Store. Please download it there. We will update the blog post as soon as possible.

https://store.sap.com/sap/cp/ui/resources/store/html/SolutionDetails.html?pid=0000000243&catID=&pcnt...

Former Member
0 Kudos

Hello,

I tried to download the trial version several times, yesterday and today. I fill in all data in the form and it keeps telling me, I will receive an email with DL-Link.

However, I did never receive a corresponding email with any link. Any workaround available?

Thanks in advance

-c

KayLoehmann
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Christoph,

did you download it from the SAP store?

Ciao. Kay.

a_rahmo
Discoverer
0 Kudos
Dear Russel,

I'm stuck in the configuration level, I did the connection between Backend,Mobile Server (Gateway) and EMR Application.

After login to the EMR application, the page is empty and nothing is appeared except at the up-right "Lists" and it's empty and at the up-Left "Logout".

Please I need how to configure it or if you have configuration guide or contact me on abdulrahman.rahmo@gmail