Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_data(id) {
- $.when(
- // Get the Patient Data
- $.ajax({
- type: "GET",
- url: "http://web.testlab.local:57773/csp/healthshare/hsaccess/fhir/Bundle/" + id,
- data: {
- CacheUserName: "intersystems",
- CachePassword: "Qwerty1!"
- },
- dataType: 'json',
- success: function(data) {
- console.log("Got a response!")
- parse_json_content(data);
- }
- })
- ).then(function() {
- // All is ready now, so...
- console.log("All is ready. Lets populate the page!");
- $('#resultarea_for_patient').html(patient_content).hide().fadeIn(2000);
- setTimeout(function() {
- $('#resultarea_for_doctor').hide().html(doctor_content).fadeIn(2000);
- }, 200);
- setTimeout(function() {
- $('#resultarea_for_diagnoses').hide().html(diagnostic_content).fadeIn(2000);
- }, 300);
- setTimeout(function() {
- $('#resultarea_for_medication').hide().html(medicational_content).fadeIn(2000);
- }, 400);
- setTimeout(function() {
- $('#resultarea_for_risks').hide().html(risk_content).fadeIn(2000);
- }, 600);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement