From b91936c95d5dbf94b39de10438f6c8364e8b6a6a Mon Sep 17 00:00:00 2001 From: chengxl Date: Wed, 4 Jun 2025 13:26:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=85=B1=E6=96=B9=E6=B3=95=E6=96=B0?= =?UTF-8?q?=E5=A2=9E-=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common.php | 88 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/application/common.php b/application/common.php index 00c32ca..c9eeaff 100644 --- a/application/common.php +++ b/application/common.php @@ -346,6 +346,9 @@ function translateType($type) case 'MR': $frag = 'MINI REVIEW'; break; + case 'PERSP': + $frag = 'PERSPECTIVE'; + break; default: $frag = 'OTHERS'; break; @@ -1161,3 +1164,88 @@ function myPost1($url, $param = array()) return $rst; } +/** + * @title 文章类型接口 + * @description 文章接口 +*/ +function getArticleType(){ + + $aArticleType = [ + 'base' => [ + + ['name' => 'ARTICLE','value' => 'A'], + ['name' => 'REVIEW','value' => 'B'], + ['name' => 'CASE REPORT','value' => 'C'], + ['name' => 'RESEARCH PROPOSAL','value' => 'P'], + ['name' => 'NEWS','value' => 'N'], + ['name' => 'COMMENT','value' => 'T'], + ['name' => 'CORRECTION','value' => 'CT'], + ['name' => 'HYPOTHESIS','value' => 'HT'], + ['name' => 'PREFACE','value' => 'PF'], + ['name' => 'EDITORIAL','value' => 'ET'], + ['name' => 'REPORT','value' => 'RP'], + ['name' => 'LETTER','value' => 'LR'], + ['name' => 'EMPIRICAL FORMULA','value' => 'EF'], + ['name' => 'EXPERT CONSENSUS','value' => 'EC'], + ['name' => 'LETTER TO EDITOR','value' => 'LTE'], + ['name' => 'QUESTIONNAIRE INVESTIGATION','value' => 'QI'], + ['name' => 'CASE SERIES','value' => 'CS'], + ['name' => 'RETRACTION','value' => 'RT'], + ['name' => 'MINI REVIEW','value' => 'MR'], + ['name' => 'PERSPECTIVE','value' => 'PERSP'], + ['name' => 'OTHERS','value' => 'O'] + ], + 'supplement' => [ + ['name' => 'EVIDENCE-BASED MEDICINE','value' => 'EM'], + ['name' => 'PROTOCOL','value' => 'PT'], + ] + ]; + return $aArticleType; +} + +/** + * @title 医疗类型接口 + * @description 文章接口 + */ +function getMedicalType(){ + + $aMedicalType = [ + ['label' => 'None','value' => ''], + ['label' => 'ARTICLE','value' => 'Article'], + ['label' => 'REVIEW','value' => 'Review'], + ['label' => 'CASE REPORT','value' => 'Case report'], + ['label' => 'RESEARCH PROPOSAL','value' => 'Research proposal'], + ['label' => 'NEWS','value' => 'News'], + ['label' => 'COMMENT','value' => 'Comment'], + ['label' => 'CORRECTION','value' => 'Correction'], + ['label' => 'HYPOTHESIS','value' => 'Hypothesis'], + ['label' => 'PREFACE','value' => 'Preface'], + ['label' => 'EDITORIAL','value' => 'Editorial'], + ['label' => 'REPORT','value' => 'Report'], + ['label' => 'LETTER','value' => 'Letter'], + ['label' => 'EMPIRICAL FORMULA','value' => 'Empirical formula'], + ['label' => 'EVIDENCE-BASED MEDICINE','value' => 'Evidence-based medicine'], + ['label' => 'EXPERT CONSENSUS','value' => 'Expert consensus'], + ['label' => 'LETTER TO EDITOR','value' => 'Letter to editor'], + ['label' => 'QUESTIONNAIRE INVESTIGATION','value' => 'Questionnaire investigation'], + ['label' => 'PROTOCOL','value' => 'Protocol'], + ['label' => 'CASE SERIES','value' => 'Case Series'], + ['label' => 'RETRACTION','value' => 'Retraction'], + ['label' => 'MINI REVIEW','value' => 'Mini Review'], + ['label' => '内经难经','value' => '内经难经'], + ['label' => '伤寒金匮','value' => '伤寒金匮'], + ['label' => '神农本草经','value' => '神农本草经'], + ['label' => '温病研究','value' => '温病研究'], + ['label' => '唐宋方药','value' => '唐宋方药'], + ['label' => '金元各家','value' => '金元各家'], + ['label' => '明清经典','value' => '明清经典'], + ['label' => '中西汇通','value' => '中西汇通'], + ['label' => '太湖选粹','value' => '太湖选粹'], + ['label' => '针灸推拿','value' => '针灸推拿'], + ['label' => '名医名方','value' => '名医名方'], + ['label' => '新冠肺炎','value' => '新冠肺炎'], + ['label' => '书评','value' => '书评'] + ]; + + return $aMedicalType; +}