Created
June 18, 2017 07:33
-
-
Save KevinMayfield/88e98c89775ba707dd7a0cf4795b395a to your computer and use it in GitHub Desktop.
Patient Search Client - AngularJS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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