import { b as __awaiter, c as __generator } from './index.js';
import { SMchc_Doctor } from '@lm_fe/service';
import { request } from '@lm_fe/utils';
function getFirstVisitPresentmh(id) {
  return __awaiter(this, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, request.get('/api/doctor/getFirstVisitPresentmhOfOutpatient?id=' + id)];
        case 1:
          res = _a.sent();
          return [2, res.data];
      }
    });
  });
}
function updateFirstVisitPresentmh(data) {
  return __awaiter(this, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, request.put('/api/doctor/updateFirstVisitPresentmhOfOutpatient', data)];
        case 1:
          res = _a.sent();
          return [2, res.data];
      }
    });
  });
}
function pastmhOutpatient(id) {
  return __awaiter(this, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, SMchc_Doctor.getFirstVisitPastmhOutpatient(id)];
        case 1:
          res = _a.sent();
          return [2, res];
      }
    });
  });
}
function updatePastmhOutpatient(data) {
  return __awaiter(this, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, SMchc_Doctor.updateFirstVisitPastmhOutpatient(data)];
        case 1:
          res = _a.sent();
          return [2, res];
      }
    });
  });
}
function othermhOutpatient(id) {
  return __awaiter(this, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, request.get('/api/doctor/getFirstVisitOthermhOutpatient?id=' + id)];
        case 1:
          res = _a.sent();
          return [2, res.data];
      }
    });
  });
}
function updateOthermhOutpatient(data) {
  return __awaiter(this, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, request.put('/api/doctor/updateFirstVisitOthermhOutpatient', data)];
        case 1:
          res = _a.sent();
          return [2, res.data];
      }
    });
  });
}
function pregnacymhOutpatient(id) {
  return __awaiter(this, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, request.get('/api/doctor/getFirstVisitPregnacymhOutpatient?id=' + id)];
        case 1:
          res = _a.sent();
          return [2, res.data];
      }
    });
  });
}
function updatePregnacymhOutpatient(data) {
  return __awaiter(this, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, request.put('/api/doctor/updateFirstVisitPregnacymhOutpatient', data)];
        case 1:
          res = _a.sent();
          return [2, res.data];
      }
    });
  });
}
function physicalExamOfOutpatient(id) {
  return __awaiter(this, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, request.get('/api/doctor/getFirstVisitPhysicalExamOfOutpatient?id=' + id)];
        case 1:
          res = _a.sent();
          return [2, res.data];
      }
    });
  });
}
function updatePhysicalExamOfOutpatient(data) {
  return __awaiter(this, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, request.put('/api/doctor/updateFirstVisitPhysicalExamOfOutpatient', data)];
        case 1:
          res = _a.sent();
          return [2, res.data];
      }
    });
  });
}
function gynecologicalExamOfOutpatient(id) {
  return __awaiter(this, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, request.get('/api/doctor/getFirstVisitGynecologicalExamOfOutpatient?id=' + id)];
        case 1:
          res = _a.sent();
          return [2, res.data];
      }
    });
  });
}
function updateGynecologicalExamOfOutpatient(data) {
  return __awaiter(this, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, request.put('/api/doctor/updateFirstVisitGynecologicalExamOfOutpatient', data)];
        case 1:
          res = _a.sent();
          return [2, res.data];
      }
    });
  });
}
function labExamOfOutpatient(id) {
  return __awaiter(this, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, request.get('/api/doctor/getFirstVisitLabExamOfOutpatient?id=' + id)];
        case 1:
          res = _a.sent();
          return [2, res.data];
      }
    });
  });
}
function updateLabExamOfOutpatient(data) {
  return __awaiter(this, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, request.put('/api/doctor/updateFirstVisitLabExamOfOutpatient', data)];
        case 1:
          res = _a.sent();
          return [2, res.data];
      }
    });
  });
}
function diagnosisOutpatient(id) {
  return __awaiter(this, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, SMchc_Doctor.getFirstVisitDiagnosisOutpatient(id)];
        case 1:
          res = _a.sent();
          return [2, res];
      }
    });
  });
}
function updateDiagnosisOutpatient(data) {
  return __awaiter(this, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, request.put('/api/doctor/updateFirstVisitDiagnosisOutpatient', data)];
        case 1:
          res = _a.sent();
          return [2, res.data];
      }
    });
  });
}
function allFirstVisitInfo(id) {
  return __awaiter(this, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, request.get('/api/doctor/getFirstVisitInfoOfOutpatient?id=' + id)];
        case 1:
          res = _a.sent();
          return [2, res.data];
      }
    });
  });
}
function updateAllfirstVisitInfo(data) {
  return __awaiter(this, void 0, void 0, function () {
    var res;
    return __generator(this, function (_a) {
      switch (_a.label) {
        case 0:
          return [4, request.put('/api/doctor/updateFirstVisitInfoOfOutpatient', data)];
        case 1:
          res = _a.sent();
          return [2, res.data];
      }
    });
  });
}
var getTabMethods = {
  'tab-0': 'getFirstVisitPresentmh',
  'tab-1': 'pastmhOutpatient',
  'tab-2': 'othermhOutpatient',
  'tab-3': 'pregnacymhOutpatient',
  'tab-4': 'physicalExamOfOutpatient',
  'tab-5': 'gynecologicalExamOfOutpatient',
  'tab-6': 'labExamOfOutpatient',
  'tab-7': 'diagnosisOutpatient'
};
var updateTabMethods = {
  'tab-0': 'updateFirstVisitPresentmh',
  'tab-1': 'updatePastmhOutpatient',
  'tab-2': 'updateOthermhOutpatient',
  'tab-3': 'updatePregnacymhOutpatient',
  'tab-4': 'updatePhysicalExamOfOutpatient',
  'tab-5': 'updateGynecologicalExamOfOutpatient',
  'tab-6': 'updateLabExamOfOutpatient',
  'tab-7': 'updateDiagnosisOutpatient'
};
var getsurveyList = {
  '1': labExamOfOutpatient,
  '2': getFirstVisitPresentmh
};
var updateSurveyList = {
  '1': updateLabExamOfOutpatient,
  '2': updateFirstVisitPresentmh
};
var requestMethods = {
  getFirstVisitPresentmh: getFirstVisitPresentmh,
  updateFirstVisitPresentmh: updateFirstVisitPresentmh,
  pastmhOutpatient: pastmhOutpatient,
  updatePastmhOutpatient: updatePastmhOutpatient,
  othermhOutpatient: othermhOutpatient,
  updateOthermhOutpatient: updateOthermhOutpatient,
  pregnacymhOutpatient: pregnacymhOutpatient,
  updatePregnacymhOutpatient: updatePregnacymhOutpatient,
  physicalExamOfOutpatient: physicalExamOfOutpatient,
  updatePhysicalExamOfOutpatient: updatePhysicalExamOfOutpatient,
  gynecologicalExamOfOutpatient: gynecologicalExamOfOutpatient,
  updateGynecologicalExamOfOutpatient: updateGynecologicalExamOfOutpatient,
  labExamOfOutpatient: labExamOfOutpatient,
  updateLabExamOfOutpatient: updateLabExamOfOutpatient,
  diagnosisOutpatient: diagnosisOutpatient,
  updateDiagnosisOutpatient: updateDiagnosisOutpatient,
  allFirstVisitInfo: allFirstVisitInfo,
  updateAllfirstVisitInfo: updateAllfirstVisitInfo
};
export { getsurveyList as a, updateSurveyList as b, getTabMethods as g, requestMethods as r, updateTabMethods as u };
//# sourceMappingURL=request.js.map
