A frontend application send a JSON message over HTTP transport and WSO2 EI convert the message into a HL7 FHIR format and send to a backend application over HTTP protocol.
- Build and run the sample backends and integration flows as described here.
- Make a RESTfull call
- Add a patient
curl -XPOST -H "Content-type: application/json" -d '{"id":"123", "givenname":"John", "familyname":"Doe", "gender":"M", "dob":"30-06-1989","active":"Active"}' http://localhost:8290/FIHR/Patient
- get a specific patient
curl http://localhost:8290/FIHR/Patient/173
- The HTTP client should show the following JSON response.
{
"resourceType": "Patient", "id" : "811", "meta" : { "versionId" : "1.0"},
"identifier": [
{ "use": "usual", "label": "MRN",
"system": "http://www.goodhealth.org/identifiers/mrn",
"value": "123456" }
],
"name": [
{ "family": [""],
"given": [""],
"suffix": [""]
} ],
"gender": {"text": ""},
"birthDate": "",
"active": ''}