Versions Compared

Key

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

...

This worked example gets the latest height and weight for a patient and calculates the BMI on the MO web server, and then retrieves the result as json. The example makes use of the ‘Postman – REST Client’ chrome app.

 

 

 

Get it going in the editor first

 

Here .  Here is some GELLO code to calculate BMI:

...

The url string for the POST in the REST client is:  http://mowgli.medical-objects.com.au/rest/gellov2/generic

 

The json code for a POST is in the attached folder and it is named POST.txt.  Instance data for the data model starts on line 3. Package data starts on line 1912 and the Gello query itself is on 1921. 

Here is a screen shot of Postman:

...