This is the latest release in the 6.x.x family. For EI 7.0.0, click here.

All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tip

Before you begin,

  • Download the product installer from here, and run the installer.
    Excerpt Include
    Installing the Product
    Installing the Product
    nopaneltrue
  • Select the relevant WSO2 Integration Studio based on your operating system and download it from here.
    The path to this folder is referred to as <EI_TOOLING> throughout this tutorial.

    Info

    Getting an error message? See the troubleshooting tips given under Installing WSO2 Integration Studio.

...

Starting the

...

back-end service

Download and start the MSF4J service from Git Hub  and copy back-end service:

  1. Download the JAR file

...

  1. of the back-end service.
  2. Open a terminal and navigate to the location where your saved the back-end service.

  3. Execute the following command to start the service:

    Code Block
    java -jar Hospital-Service-JDK11-2.0.0.jar

The Healthcare service is now active and you can start sending requests to the service.

Sending the request to the backend service

Follow the steps below to send the request to the backend service. This creates the appointment of the patient.

Start the MSF4J profile.

...

borderColor#542989
bgColor#ffffff
borderWidth1

...

Localtab
titleOn MacOS/Linux/CentOS

Open a terminal and execute the following command:

Code Block
wso2ei-6.6.0-msf4j

...

titleOn Windows

...

.

  1. Send a request to the Backend service by entering the below details using a REST Client (e.g., Postman).

    Tip

    In the Payload, set the appointment_date to a date, which is minimum one day after today's date. For example, in the below payload, it is assumes that today's date is 2018-08-14 so that 2018-08-16 is set as the appointment_date.

    HTTP MethodRequest URLPayload
    POST http://localhost:9090/grandoaks/categories/surgery/reserve

    {
    "patient": {
    "name": "John Doe",
    "dob": "1940-03-19",
    "ssn": "234-23-525",
    "address": "California",
    "phone": "8770586755",
    "email": "[email protected]gmail.com"
    },
    "doctor": "thomas collins",
    "hospital": "grand oak community hospital",
    "appointment_date": "2018-08-16"
    }

    Anchor
    request
    request

...