Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.
/ ftnd-test-ja Public archive

日本語のFTND (Fagerstrom Test for Nicotine Dependence) の質問票の文言と点数計算

License

Notifications You must be signed in to change notification settings

CureApp/ftnd-test-ja

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ftnd-test-ja

日本語のFTND (Fagerstrom Test for Nicotine Dependence) の質問票の文言と点数計算

install

npm install ftnd-test-ja

usage

var FTND = require('ftnd-test-ja');

質問一覧を取得

FTND.getQuestions();

質問の選択肢を取得

FTND.getChoices(0); // Q1の選択肢の配列
FTND.getChoices(4); // Q5の選択肢の配列

点数を計算

// 引数はQ1~Q6 の回答の配列. getChoices で得られた配列のインデックスの値の列を渡す
FTND.calculate([2,1,0,3,1,0]); // 6 を返す。

LICENSE

MIT

About

日本語のFTND (Fagerstrom Test for Nicotine Dependence) の質問票の文言と点数計算

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published