import { mchcEnv, getPresetOptions } from '@lm_fe/env';
var trueFalseOptions = [{
  value: false,
  label: '否'
}, {
  value: true,
  label: '是',
  inputType: 'Input'
}];
function 既往史_pack(isPure, needOther) {
  if (isPure === void 0) {
    isPure = false;
  }
  if (needOther === void 0) {
    needOther = false;
  }
  var required = isPure && !mchcEnv["in"](['广州市八']);
  var res = [{
    "key": "".concat(isPure ? '' : 'pregnancyInfo.', "hypertension__"),
    "label": "高血压",
    "inputType": "MC",
    required: required,
    "inputProps": {
      marshal: 1,
      options: trueFalseOptions
    },
    layout: '1/3'
  }, {
    "key": "".concat(isPure ? '' : 'pregnancyInfo.', "diabetes__"),
    required: required,
    "label": "糖尿病",
    "inputType": "MC",
    "inputProps": {
      marshal: 1,
      options: trueFalseOptions
    },
    layout: '1/3'
  }, {
    "key": "".concat(isPure ? '' : 'pregnancyInfo.', "cardiacDisease__"),
    required: required,
    "label": "心脏病",
    "inputType": "MC",
    "inputProps": {
      marshal: 1,
      options: trueFalseOptions
    },
    layout: '1/3'
  }, nurse_既往史_结核(isPure), nurse_既往史_肝炎(isPure), nurse_既往史_肾病(isPure), nurse_既往史_甲亢(isPure), nurse_既往史_性病(isPure), {
    "key": "".concat(isPure ? '' : 'pregnancyInfo.', "infection__"),
    "label": "传染病",
    required: required,
    isActive: mchcEnv["in"](['广三']),
    "inputType": "MC",
    "inputProps": {
      marshal: 1,
      options: trueFalseOptions
    },
    layout: '1/3'
  }, {
    "key": "".concat(isPure ? '' : 'pregnancyInfo.').concat(isPure ? 'operationHistory__' : 'operationmh__'),
    "label": "手术史",
    required: required || mchcEnv["in"](['广三']),
    "inputType": "MC",
    "inputProps": {
      marshal: 1,
      options: trueFalseOptions
    },
    layout: '1/3'
  }, {
    "key": "".concat(isPure ? '' : 'pregnancyInfo.', "transfusionHistory__"),
    "label": "输血史",
    "inputType": "MC",
    required: required,
    "inputProps": {
      marshal: 1,
      options: trueFalseOptions
    },
    layout: '1/3'
  }, {
    "key": "".concat(isPure ? '' : 'pregnancyInfo.').concat(isPure ? 'allergy__' : 'amh___'),
    required: required || mchcEnv["in"](['广三']),
    "label": "过敏史",
    "inputType": "MC",
    "inputProps": {
      marshal: 1,
      options: '无,药物i,食物i,其他i,不详',
      type: 'multiple',
      sp: [{
        label: '药物',
        inputType: 'Select',
        props: {
          mode: 'multiple',
          marshal: 0,
          options: getPresetOptions('过敏药物s')
        }
      }]
    },
    layout: '1/1'
  }];
  if (needOther) {
    res.push(nurse_既往史_其他(isPure));
  }
  return res;
}
function nurse_既往史_结核(isPure) {
  if (isPure === void 0) {
    isPure = false;
  }
  return {
    "key": "".concat(isPure ? '' : 'pregnancyInfo.', "tuberculosis__"),
    isActive: mchcEnv["in"](['广三']),
    required: isPure,
    "label": "结核",
    "inputType": "MC",
    "inputProps": {
      marshal: 1,
      options: trueFalseOptions
    },
    layout: '1/3'
  };
}
function nurse_既往史_肝炎(isPure) {
  if (isPure === void 0) {
    isPure = false;
  }
  return {
    "key": "".concat(isPure ? '' : 'pregnancyInfo.', "hepaticDisease__"),
    "label": "肝炎",
    required: isPure,
    isActive: mchcEnv["in"](['广三']),
    "inputType": "MC",
    "inputProps": {
      marshal: 1,
      options: trueFalseOptions
    },
    layout: '1/3'
  };
}
function nurse_既往史_肾病(isPure) {
  if (isPure === void 0) {
    isPure = false;
  }
  return {
    "key": "".concat(isPure ? '' : 'pregnancyInfo.', "nephropathy__"),
    required: isPure,
    "label": "肾病",
    isActive: mchcEnv["in"](['广三']),
    "inputType": "MC",
    "inputProps": {
      marshal: 1,
      options: trueFalseOptions
    },
    layout: '1/3'
  };
}
function nurse_既往史_甲亢(isPure) {
  if (isPure === void 0) {
    isPure = false;
  }
  return {
    "key": "".concat(isPure ? '' : 'pregnancyInfo.', "thyroidDisease__"),
    required: isPure,
    "label": "甲亢",
    isActive: mchcEnv["in"](['广三']),
    "inputType": "MC",
    "inputProps": {
      marshal: 1,
      options: trueFalseOptions
    },
    layout: '1/3'
  };
}
function nurse_既往史_性病(isPure) {
  if (isPure === void 0) {
    isPure = false;
  }
  return {
    "key": "".concat(isPure ? '' : 'pregnancyInfo.', "std__"),
    required: isPure,
    "label": "性病",
    isActive: mchcEnv["in"](['广三']),
    "inputType": "MC",
    "inputProps": {
      marshal: 1,
      options: trueFalseOptions
    },
    layout: '1/3'
  };
}
function nurse_既往史_其他(isPure) {
  if (isPure === void 0) {
    isPure = false;
  }
  return {
    "key": "".concat(isPure ? '' : 'pregnancyInfo.', "otherNote"),
    "label": "其他",
    "inputType": 'text_area',
    isNewRow: 1,
    layout: '2/3'
  };
}
export { nurse_既往史_其他, nurse_既往史_性病, nurse_既往史_甲亢, nurse_既往史_结核, nurse_既往史_肝炎, nurse_既往史_肾病, 既往史_pack };
//# sourceMappingURL=nurse-end.archival-information.form.js.map
