forked from Tokyo-Metro-Gov/covid19
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #274 from CodeForNagasaki/development
master <- develop
- Loading branch information
Showing
4 changed files
with
63 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export function mapToPatientsNotCruise(otherData) { | ||
// console.log(otherData, 'otherData') | ||
// 検査陽性者の状況のデータ作成 | ||
const 感染者数 = otherData.filter(d => d.KEY === '県内_感染者数') | ||
const 退院者数 = otherData.filter(d => d.KEY === '県内_退院者数') | ||
const 死亡者数 = otherData.filter(d => d.KEY === '県内_死亡者数') | ||
const 入院者数 = otherData.filter(d => d.KEY === '県内_入院者数') | ||
|
||
// グラフ表示用のデータ作成 | ||
return { | ||
検査実施人数: 0, | ||
陽性者数: 感染者数 ? Number(感染者数[0].VALUE) : 0, | ||
入院中: 入院者数 ? Number(入院者数[0].VALUE) : 0, | ||
軽症中等症: 0, | ||
重症: 0, | ||
死亡: 死亡者数 ? Number(死亡者数[0].VALUE) : 0, | ||
退院: 退院者数 ? Number(退院者数[0].VALUE) : 0 | ||
} | ||
} |