-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGuidelineScreen.js
114 lines (91 loc) · 4.02 KB
/
GuidelineScreen.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import React, { Component } from 'react';
import {Text,View,ScrollView,Linking} from 'react-native';
import { List, ListItem } from 'react-native-elements'
const list = [
{
name: '循環器超音波検査の適応と判読ガイドライン',
subtitle: '2010年 日本循環器学会'
},
{
name: '弁膜疾患の非薬物療法に関するガイドライン',
subtitle: '2012年 日本循環器学会'
},
{
name: '先天性心疾患、心臓大血管の構造的疾患に対するカテーテル治療のガイドライン',
subtitle: '2014年 日本循環器学会'
},
]
const list2 = [
{
name: 'AHA/ACC Guideline for the Management of Patients With Valvular Heart Disease',
subtitle: '2014年 Journal of the American College of Cardiology'
},
{
name: 'Focused Update of the 2014 AHA/ACC Guideline for the Management of Patients With Valvular Heart Disease',
subtitle: '2017年 Circulation'
},
{
name: 'ESC/EACTS Guidelines for the management of valvular heart disease',
subtitle: '2017年 European Heart Journal'
},
{
name: 'Recommendations for Noninvasive Evaluation of Native Valvular Regurgitation',
subtitle: '2017年 American Society of Echocardiography'
}
]
class GuidelineScreen extends React.Component{
onPress1(name){
if (name === '循環器超音波検査の適応と判読ガイドライン'){
Linking.openURL('http://www.j-circ.or.jp/guideline/pdf/JCS2010yoshida.h.pdf')
}else if (name === '弁膜疾患の非薬物療法に関するガイドライン'){
Linking.openURL('http://www.j-circ.or.jp/guideline/pdf/JCS2012_ookita_h.pdf')
} else {
Linking.openURL('http://www.j-circ.or.jp/guideline/pdf/JCS2014_nakanishi_h.pdf')
}
}
onPress2(name){
if (name === 'AHA/ACC Guideline for the Management of Patients With Valvular Heart Disease'){
Linking.openURL('http://www.onlinejacc.org/content/accj/63/22/e57.full.pdf')
}else if (name === 'Focused Update of the 2014 AHA/ACC Guideline for the Management of Patients With Valvular Heart Disease'){
Linking.openURL('https://secardiologia.es/images/grupos-trabajo/valvulopatias/documentos/2017-AHA-ACC-Focused-Update-VHD.pdf')
}else if (name === 'ESC/EACTS Guidelines for the management of valvular heart disease'){
Linking.openURL('https://academic.oup.com/eurheartj/article/38/36/2739/4095039')
}else{
Linking.openURL('http://asecho.org/wordpress/wp-content/uploads/2017/04/2017VavularRegurgitationGuideline.pdf')
}
}
render(){
const state = this.state;
return(
<ScrollView>
<Text style={{fontSize: 25 ,padding: 20, paddingTop: 40}} >国内</Text>
<List>
{list.map((item) => (
<ListItem
key={item.name}
title={item.name}
titleStyle = {{fontSize: 16, paddingTop: 6}}
subtitle={item.subtitle}
subtitleStyle = {{fontSize: 12, paddingTop: 6}}
onPress = {(name) => this.onPress1(item.name)}
/>
))}
</List>
<Text style={{fontSize: 25 ,paddingTop: 40, paddingBottom: 20, paddingLeft: 20}} >海外</Text>
<List>
{list2.map((item) => (
<ListItem
key={item.name}
title={item.name}
titleStyle = {{fontSize: 16, paddingTop: 6}}
subtitle={item.subtitle}
subtitleStyle = {{fontSize: 12, paddingTop: 6}}
onPress = {(name) => this.onPress2(item.name)}
/>
))}
</List>
</ScrollView>
)
}
}
export default GuidelineScreen;