Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save KevinMayfield/88e98c89775ba707dd7a0cf4795b395a to your computer and use it in GitHub Desktop.
Save KevinMayfield/88e98c89775ba707dd7a0cf4795b395a to your computer and use it in GitHub Desktop.
Patient Search Client - AngularJS
angular.module('App').controller('PatientController', function ($scope, $http) {
$scope.search = function()
{
$http({
method : 'GET',
url : 'http://127.0.0.1:8181/Dstu2/Patient?family=jones&gender=female'
})
.success(function (bundleddata) {
$scope.bundle = bundleddata;
}).error(function (err) {
})
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment