PatientMedicalHistoryPreview.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <script setup lang="ts">
  2. import type { MedicalHistoryVO } from '@/model/diagnosis-report.model';
  3. const props = defineProps<Partial<MedicalHistoryVO>>();
  4. </script>
  5. <template>
  6. <div class="patient-medical-history-wrapper">
  7. <header class="text-center text-4.5 font-600">门诊病历</header>
  8. <main class="mt-4">
  9. <a-descriptions :column="10">
  10. <a-descriptions-item label="就诊日期" :span="3">{{props.date}}</a-descriptions-item>
  11. <a-descriptions-item label="姓名" :span="2">{{props.patient?.name}}</a-descriptions-item>
  12. <a-descriptions-item label="性别" :span="1">{{props.patient?.gender}}</a-descriptions-item>
  13. <a-descriptions-item label="年龄" :span="1">{{props.patient?.age}}</a-descriptions-item>
  14. <a-descriptions-item label="电话" :span="3">{{props.patient?.phone}}</a-descriptions-item>
  15. <a-descriptions-item label="就诊科室" :span="3">{{props.diagnosis?.department.name}}</a-descriptions-item>
  16. <a-descriptions-item label="身份证" :span="2">{{props.patient?.identityCard}}</a-descriptions-item>
  17. <a-descriptions-item label="地址" :span="5">{{props.patient?.address}}</a-descriptions-item>
  18. </a-descriptions>
  19. <div class="row" v-for="item in props.diagnosis?.descriptions" :key="item.label">
  20. <header>
  21. <label>{{item.label}}</label>
  22. <span>{{item.value}}</span>
  23. </header>
  24. </div>
  25. <div class="row">
  26. <header>
  27. <label>诊断</label>
  28. </header>
  29. <main>
  30. <div class="row">
  31. <a-space direction="vertical" :size="12">
  32. <span><label>中医诊断</label>{{props.diagnosis?.TCM}}</span>
  33. <span><label>西医诊断</label>{{props.diagnosis?.ICD}}</span>
  34. </a-space>
  35. </div>
  36. </main>
  37. </div>
  38. <div class="row">
  39. <header>
  40. <label>处置方式</label>
  41. </header>
  42. <main>
  43. <div class="row">
  44. <a-space direction="vertical" :size="12">
  45. <div v-for="prescription in props.prescriptions" :key="prescription.title">
  46. <span>{{prescription.title}}</span>
  47. <a-row style="padding-right: 36px;">
  48. <a-col v-for="medicine in prescription.medicines" :key="medicine.id" class="flex items-center justify-evenly min-h-10" :span="6">
  49. <span style="width: 50%;" class="text-center">{{medicine.name}}</span>
  50. <span>{{medicine.dosage}}{{medicine.unit}}</span>
  51. <span style="color: rgba(0, 0, 0, 0.45);">{{medicine.usage}}</span>
  52. </a-col>
  53. </a-row>
  54. <a-space direction="vertical" :size="12">
  55. <span>
  56. <label>剂数</label>
  57. {{prescription.count}}
  58. <template v-if="prescription.decoction?.label">({{prescription.decoction?.label}})</template>
  59. <span style="margin-right: 12px;">{{prescription.dosageType?.label}}</span>
  60. <span style="margin-right: 12px;">{{prescription.method?.label}}</span>
  61. <span style="margin-right: 12px;">{{prescription.dosage?.label}}</span>
  62. <span style="margin-right: 12px;">{{prescription.frequency?.label}}</span>
  63. <span style="margin-right: 12px;">{{prescription.frequencyTime?.label}}</span>
  64. </span>
  65. <span><label>嘱托</label>{{prescription.remark}}</span>
  66. </a-space>
  67. </div>
  68. </a-space>
  69. </div>
  70. </main>
  71. </div>
  72. </main>
  73. </div>
  74. </template>
  75. <style scoped lang="scss">
  76. .ant-descriptions {
  77. margin-bottom: 12px;
  78. border-bottom: 1px solid rgba(5, 5, 5, 0.2);
  79. :deep(.ant-descriptions-item-label),
  80. :deep(.ant-descriptions-item-content) {
  81. font-size: 16px;
  82. color: rgba(0, 0, 0, 0.85);
  83. }
  84. }
  85. main {
  86. font-size: 16px;
  87. color: rgba(0, 0, 0, 0.85);
  88. }
  89. .row {
  90. padding: 12px 0;
  91. span > label {
  92. color: rgba(0, 0, 0, 0.45);
  93. }
  94. label::after {
  95. margin-left: 2px;
  96. margin-right: 8px;
  97. content: ':';
  98. }
  99. > header::before {
  100. $size: 10px;
  101. content: '';
  102. display: inline-block;
  103. margin-right: 12px;
  104. width: $size;
  105. height: $size;
  106. border: 2px solid #1d6ff6;
  107. border-radius: 50%;
  108. }
  109. > main {
  110. margin-left: 18px * 2;
  111. }
  112. }
  113. </style>