psytools 0.6.3 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -6
  3. package/SOURCES.md +58 -1
  4. package/dist/cjs/inventories/gds15.d.ts +11 -0
  5. package/dist/cjs/inventories/gds15.js +81 -0
  6. package/dist/cjs/inventories/index.d.ts +7 -1
  7. package/dist/cjs/inventories/index.js +16 -1
  8. package/dist/cjs/inventories/pc-ptsd-5.d.ts +12 -0
  9. package/dist/cjs/inventories/pc-ptsd-5.js +91 -0
  10. package/dist/cjs/inventories/phq4.d.ts +11 -0
  11. package/dist/cjs/inventories/phq4.js +73 -0
  12. package/dist/cjs/inventories/phq8.d.ts +11 -0
  13. package/dist/cjs/inventories/phq8.js +71 -0
  14. package/dist/cjs/inventories/tipi.d.ts +10 -0
  15. package/dist/cjs/inventories/tipi.js +70 -0
  16. package/dist/cjs/locales/de/gds15.d.ts +4 -0
  17. package/dist/cjs/locales/de/gds15.js +34 -0
  18. package/dist/cjs/locales/de/pc-ptsd-5.d.ts +4 -0
  19. package/dist/cjs/locales/de/pc-ptsd-5.js +32 -0
  20. package/dist/cjs/locales/de/phq4.d.ts +4 -0
  21. package/dist/cjs/locales/de/phq4.js +35 -0
  22. package/dist/cjs/locales/de/phq8.d.ts +4 -0
  23. package/dist/cjs/locales/de/phq8.js +35 -0
  24. package/dist/cjs/locales/de/tipi.d.ts +4 -0
  25. package/dist/cjs/locales/de/tipi.js +39 -0
  26. package/dist/cjs/locales/es/gds15.d.ts +4 -0
  27. package/dist/cjs/locales/es/gds15.js +34 -0
  28. package/dist/cjs/locales/es/pc-ptsd-5.d.ts +4 -0
  29. package/dist/cjs/locales/es/pc-ptsd-5.js +32 -0
  30. package/dist/cjs/locales/es/phq4.d.ts +4 -0
  31. package/dist/cjs/locales/es/phq4.js +35 -0
  32. package/dist/cjs/locales/es/phq8.d.ts +4 -0
  33. package/dist/cjs/locales/es/phq8.js +35 -0
  34. package/dist/cjs/locales/es/tipi.d.ts +4 -0
  35. package/dist/cjs/locales/es/tipi.js +39 -0
  36. package/dist/cjs/locales/index.js +30 -0
  37. package/dist/cjs/locales/tr/gds15.d.ts +4 -0
  38. package/dist/cjs/locales/tr/gds15.js +34 -0
  39. package/dist/cjs/locales/tr/pc-ptsd-5.d.ts +4 -0
  40. package/dist/cjs/locales/tr/pc-ptsd-5.js +32 -0
  41. package/dist/cjs/locales/tr/phq4.d.ts +4 -0
  42. package/dist/cjs/locales/tr/phq4.js +35 -0
  43. package/dist/cjs/locales/tr/phq8.d.ts +4 -0
  44. package/dist/cjs/locales/tr/phq8.js +33 -0
  45. package/dist/cjs/locales/tr/tipi.d.ts +4 -0
  46. package/dist/cjs/locales/tr/tipi.js +39 -0
  47. package/dist/cjs/locales/zh/gds15.d.ts +4 -0
  48. package/dist/cjs/locales/zh/gds15.js +34 -0
  49. package/dist/cjs/locales/zh/pc-ptsd-5.d.ts +4 -0
  50. package/dist/cjs/locales/zh/pc-ptsd-5.js +32 -0
  51. package/dist/cjs/locales/zh/phq4.d.ts +4 -0
  52. package/dist/cjs/locales/zh/phq4.js +35 -0
  53. package/dist/cjs/locales/zh/phq8.d.ts +4 -0
  54. package/dist/cjs/locales/zh/phq8.js +31 -0
  55. package/dist/cjs/locales/zh/tipi.d.ts +4 -0
  56. package/dist/cjs/locales/zh/tipi.js +31 -0
  57. package/dist/esm/inventories/gds15.d.ts +11 -0
  58. package/dist/esm/inventories/gds15.js +78 -0
  59. package/dist/esm/inventories/index.d.ts +7 -1
  60. package/dist/esm/inventories/index.js +11 -0
  61. package/dist/esm/inventories/pc-ptsd-5.d.ts +12 -0
  62. package/dist/esm/inventories/pc-ptsd-5.js +88 -0
  63. package/dist/esm/inventories/phq4.d.ts +11 -0
  64. package/dist/esm/inventories/phq4.js +70 -0
  65. package/dist/esm/inventories/phq8.d.ts +11 -0
  66. package/dist/esm/inventories/phq8.js +68 -0
  67. package/dist/esm/inventories/tipi.d.ts +10 -0
  68. package/dist/esm/inventories/tipi.js +67 -0
  69. package/dist/esm/locales/de/gds15.d.ts +4 -0
  70. package/dist/esm/locales/de/gds15.js +32 -0
  71. package/dist/esm/locales/de/pc-ptsd-5.d.ts +4 -0
  72. package/dist/esm/locales/de/pc-ptsd-5.js +30 -0
  73. package/dist/esm/locales/de/phq4.d.ts +4 -0
  74. package/dist/esm/locales/de/phq4.js +33 -0
  75. package/dist/esm/locales/de/phq8.d.ts +4 -0
  76. package/dist/esm/locales/de/phq8.js +33 -0
  77. package/dist/esm/locales/de/tipi.d.ts +4 -0
  78. package/dist/esm/locales/de/tipi.js +37 -0
  79. package/dist/esm/locales/es/gds15.d.ts +4 -0
  80. package/dist/esm/locales/es/gds15.js +32 -0
  81. package/dist/esm/locales/es/pc-ptsd-5.d.ts +4 -0
  82. package/dist/esm/locales/es/pc-ptsd-5.js +30 -0
  83. package/dist/esm/locales/es/phq4.d.ts +4 -0
  84. package/dist/esm/locales/es/phq4.js +33 -0
  85. package/dist/esm/locales/es/phq8.d.ts +4 -0
  86. package/dist/esm/locales/es/phq8.js +33 -0
  87. package/dist/esm/locales/es/tipi.d.ts +4 -0
  88. package/dist/esm/locales/es/tipi.js +37 -0
  89. package/dist/esm/locales/index.js +30 -0
  90. package/dist/esm/locales/tr/gds15.d.ts +4 -0
  91. package/dist/esm/locales/tr/gds15.js +32 -0
  92. package/dist/esm/locales/tr/pc-ptsd-5.d.ts +4 -0
  93. package/dist/esm/locales/tr/pc-ptsd-5.js +30 -0
  94. package/dist/esm/locales/tr/phq4.d.ts +4 -0
  95. package/dist/esm/locales/tr/phq4.js +33 -0
  96. package/dist/esm/locales/tr/phq8.d.ts +4 -0
  97. package/dist/esm/locales/tr/phq8.js +31 -0
  98. package/dist/esm/locales/tr/tipi.d.ts +4 -0
  99. package/dist/esm/locales/tr/tipi.js +37 -0
  100. package/dist/esm/locales/zh/gds15.d.ts +4 -0
  101. package/dist/esm/locales/zh/gds15.js +32 -0
  102. package/dist/esm/locales/zh/pc-ptsd-5.d.ts +4 -0
  103. package/dist/esm/locales/zh/pc-ptsd-5.js +30 -0
  104. package/dist/esm/locales/zh/phq4.d.ts +4 -0
  105. package/dist/esm/locales/zh/phq4.js +33 -0
  106. package/dist/esm/locales/zh/phq8.d.ts +4 -0
  107. package/dist/esm/locales/zh/phq8.js +29 -0
  108. package/dist/esm/locales/zh/tipi.d.ts +4 -0
  109. package/dist/esm/locales/zh/tipi.js +29 -0
  110. package/package.json +11 -3
  111. package/src/inventories/gds15.ts +87 -0
  112. package/src/inventories/index.ts +17 -1
  113. package/src/inventories/pc-ptsd-5.ts +96 -0
  114. package/src/inventories/phq4.ts +76 -0
  115. package/src/inventories/phq8.ts +73 -0
  116. package/src/inventories/tipi.ts +74 -0
  117. package/src/locales/de/gds15.ts +35 -0
  118. package/src/locales/de/pc-ptsd-5.ts +35 -0
  119. package/src/locales/de/phq4.ts +37 -0
  120. package/src/locales/de/phq8.ts +37 -0
  121. package/src/locales/de/tipi.ts +42 -0
  122. package/src/locales/es/gds15.ts +35 -0
  123. package/src/locales/es/pc-ptsd-5.ts +35 -0
  124. package/src/locales/es/phq4.ts +37 -0
  125. package/src/locales/es/phq8.ts +38 -0
  126. package/src/locales/es/tipi.ts +42 -0
  127. package/src/locales/index.ts +30 -0
  128. package/src/locales/tr/gds15.ts +35 -0
  129. package/src/locales/tr/pc-ptsd-5.ts +35 -0
  130. package/src/locales/tr/phq4.ts +37 -0
  131. package/src/locales/tr/phq8.ts +35 -0
  132. package/src/locales/tr/tipi.ts +42 -0
  133. package/src/locales/zh/gds15.ts +35 -0
  134. package/src/locales/zh/pc-ptsd-5.ts +35 -0
  135. package/src/locales/zh/phq4.ts +36 -0
  136. package/src/locales/zh/phq8.ts +32 -0
  137. package/src/locales/zh/tipi.ts +33 -0
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Turkish locale pack for phq4. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /** Turkish locale pack for phq4. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
4
+ const pack = {
5
+ id: "phq4",
6
+ locale: "tr",
7
+ title: "Hasta Sağlığı Anketi-4 (PHQ-4)",
8
+ description: "Kaygı ve depresyon için 2 maddelik GAD-2 ile PHQ-2'den oluşan, 4 maddelik çok kısa bir tarama aracı.",
9
+ instructions: "Son 2 hafta içinde aşağıdaki sorunlar sizi ne sıklıkta rahatsız etti?",
10
+ options: ["Hiç", "Birkaç gün", "Günlerin yarısından fazlasında", "Hemen hemen her gün"],
11
+ questions: {
12
+ "phq4-1": { text: "Gergin, kaygılı ya da diken üstünde hissetmek" },
13
+ "phq4-2": { text: "Endişelenmeyi durduramamak ya da kontrol edememek" },
14
+ "phq4-3": { text: "Bir şeyler yapmaktan çok az ilgi ya da keyif almak" },
15
+ "phq4-4": { text: "Kendini moralsiz, çökkün ya da umutsuz hissetmek" },
16
+ },
17
+ subscales: {
18
+ anxiety: {
19
+ label: "Kaygı (GAD-2)",
20
+ bands: {
21
+ "below-cutoff": "Tarama eşiğinin altında",
22
+ positive: "Tarama olumlu: GAD-7 ve klinik görüşmeyle değerlendirin",
23
+ },
24
+ },
25
+ depression: {
26
+ label: "Depresyon (PHQ-2)",
27
+ bands: {
28
+ "below-cutoff": "Tarama eşiğinin altında",
29
+ positive: "Tarama olumlu: PHQ-9 ve klinik görüşmeyle değerlendirin",
30
+ },
31
+ },
32
+ total: { label: "Toplam (PHQ-4)" },
33
+ },
34
+ };
35
+ exports.default = pack;
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Turkish locale pack for phq8. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /** Turkish locale pack for phq8. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
4
+ const pack = {
5
+ id: "phq8",
6
+ locale: "tr",
7
+ title: "Hasta Sağlığı Anketi-8 (PHQ-8)",
8
+ description: "Depresyon şiddetini ölçen 8 maddelik bir öz bildirim ölçeği: PHQ-9'un kendine zarar verme düşüncelerini soran maddesi çıkarılmış hâli.",
9
+ instructions: "Son 2 hafta içinde aşağıdaki sorunlardan herhangi biri sizi ne sıklıkta rahatsız etti?",
10
+ options: ["Hiç", "Birkaç gün", "Günlerin yarısından fazlasında", "Hemen hemen her gün"],
11
+ questions: {
12
+ "phq8-1": { text: "Bir şeyler yapmaktan çok az ilgi ya da keyif almak" },
13
+ "phq8-2": { text: "Kendini moralsiz, çökkün ya da umutsuz hissetmek" },
14
+ "phq8-3": { text: "Uykuya dalmakta ya da uykuyu sürdürmekte güçlük çekmek ya da çok fazla uyumak" },
15
+ "phq8-4": { text: "Yorgun hissetmek ya da çok az enerjisi olmak" },
16
+ "phq8-5": { text: "İştahsızlık ya da aşırı yemek" },
17
+ "phq8-6": {
18
+ text: "Kendiniz hakkında kötü hissetmek ya da başarısız biri olduğunuzu veya kendinizi ya da ailenizi hayal kırıklığına uğrattığınızı düşünmek",
19
+ },
20
+ "phq8-7": { text: "Gazete okumak ya da televizyon izlemek gibi şeylere odaklanmakta güçlük çekmek" },
21
+ "phq8-8": {
22
+ text: "Başkalarının fark edebileceği kadar yavaş hareket etmek ya da konuşmak? Ya da tam tersi: her zamankinden çok daha fazla hareket edecek kadar kıpır kıpır ya da huzursuz olmak",
23
+ },
24
+ },
25
+ bands: {
26
+ minimal: "En az düzeyde depresyon",
27
+ mild: "Hafif depresyon",
28
+ moderate: "Orta düzeyde depresyon",
29
+ "moderately-severe": "Orta-ağır düzeyde depresyon",
30
+ severe: "Ağır depresyon",
31
+ },
32
+ };
33
+ exports.default = pack;
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Turkish locale pack for tipi. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /** Turkish locale pack for tipi. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
4
+ const pack = {
5
+ id: "tipi",
6
+ locale: "tr",
7
+ title: "On Maddelik Kişilik Envanteri (TIPI)",
8
+ description: "Çok kısa bir ölçüm gereken durumlar için Beş Faktör kişilik boyutlarını ölçen 10 maddelik bir araç.",
9
+ instructions: "Aşağıda size uyabilecek ya da uymayabilecek bazı kişilik özellikleri yer alıyor. Her ifadeye ne ölçüde katıldığınızı ya da katılmadığınızı belirtmek için ifadenin yanına bir sayı yazın. Özelliklerden biri size daha çok uysa bile, iki özelliğin birlikte size ne ölçüde uyduğunu değerlendirin. Kendimi şöyle görüyorum:",
10
+ options: [
11
+ "Kesinlikle katılmıyorum",
12
+ "Orta derecede katılmıyorum",
13
+ "Biraz katılmıyorum",
14
+ "Ne katılıyorum ne katılmıyorum",
15
+ "Biraz katılıyorum",
16
+ "Orta derecede katılıyorum",
17
+ "Kesinlikle katılıyorum",
18
+ ],
19
+ questions: {
20
+ "tipi-1": { text: "Dışa dönük, coşkulu." },
21
+ "tipi-2": { text: "Eleştirel, kavgacı." },
22
+ "tipi-3": { text: "Güvenilir, öz disiplinli." },
23
+ "tipi-4": { text: "Kaygılı, kolay üzülen." },
24
+ "tipi-5": { text: "Yeni deneyimlere açık, çok yönlü." },
25
+ "tipi-6": { text: "Çekingen, sessiz." },
26
+ "tipi-7": { text: "Anlayışlı, sıcak." },
27
+ "tipi-8": { text: "Dağınık, dikkatsiz." },
28
+ "tipi-9": { text: "Sakin, duygusal olarak dengeli." },
29
+ "tipi-10": { text: "Geleneksel, yaratıcı olmayan." },
30
+ },
31
+ subscales: {
32
+ extraversion: { label: "Dışa dönüklük" },
33
+ agreeableness: { label: "Uyumluluk" },
34
+ conscientiousness: { label: "Sorumluluk" },
35
+ "emotional-stability": { label: "Duygusal denge" },
36
+ openness: { label: "Deneyime açıklık" },
37
+ },
38
+ };
39
+ exports.default = pack;
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Simplified Chinese locale pack for gds15. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /** Simplified Chinese locale pack for gds15. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
4
+ const pack = {
5
+ id: "gds15",
6
+ locale: "zh",
7
+ title: "老年抑郁量表简版(GDS-15)",
8
+ description: "一份用于筛查老年人抑郁的 15 题是/否量表。",
9
+ instructions: "请根据您过去一周的感受,选择最合适的答案:",
10
+ options: ["是", "否"],
11
+ questions: {
12
+ "gds15-1": { text: "您对自己的生活基本满意吗?" },
13
+ "gds15-2": { text: "您是否放弃了许多活动和兴趣?" },
14
+ "gds15-3": { text: "您是否觉得生活很空虚?" },
15
+ "gds15-4": { text: "您是否常常感到无聊?" },
16
+ "gds15-5": { text: "您大部分时间心情都很好吗?" },
17
+ "gds15-6": { text: "您是否害怕会有不好的事情发生在自己身上?" },
18
+ "gds15-7": { text: "您大部分时间都感到快乐吗?" },
19
+ "gds15-8": { text: "您是否常常感到无助?" },
20
+ "gds15-9": { text: "您是否宁愿待在家里,也不愿出门做些新的事情?" },
21
+ "gds15-10": { text: "您是否觉得自己的记忆问题比大多数人多?" },
22
+ "gds15-11": { text: "您是否觉得现在活着是一件很美好的事?" },
23
+ "gds15-12": { text: "您是否觉得现在的自己相当没有价值?" },
24
+ "gds15-13": { text: "您是否感到精力充沛?" },
25
+ "gds15-14": { text: "您是否觉得自己的处境没有希望?" },
26
+ "gds15-15": { text: "您是否认为大多数人的境况都比您好?" },
27
+ },
28
+ bands: {
29
+ "below-cutoff": "低于需要随访的阈值",
30
+ suggestive: "提示存在抑郁:需要进行随访访谈",
31
+ likely: "几乎总是抑郁",
32
+ },
33
+ };
34
+ exports.default = pack;
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Simplified Chinese locale pack for pc-ptsd-5. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /** Simplified Chinese locale pack for pc-ptsd-5. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
4
+ const pack = {
5
+ id: "pc-ptsd-5",
6
+ locale: "zh",
7
+ title: "DSM-5 初级保健创伤后应激障碍筛查(PC-PTSD-5)",
8
+ description: "一项针对可能的创伤后应激障碍的简短筛查:先询问一生中是否经历过创伤事件,再用五个是/否问题询问该创伤在过去一个月里对本人的影响。",
9
+ instructions: "有时人们会遇到异常或特别可怕、恐怖或具有创伤性的事情。例如:严重的事故或火灾;身体或性方面的攻击或虐待;地震或洪水;战争;目睹有人被杀或受重伤;亲人因他杀或自杀而离世。",
10
+ options: ["是", "否"],
11
+ questions: {
12
+ "pc-ptsd-5-trauma": {
13
+ text: "您是否经历过这类事件?如果否,筛查总分 = 0,请在此停止。如果是,请回答下面的问题。",
14
+ },
15
+ "pc-ptsd-5-1": {
16
+ text: "在过去一个月里,您是否做过与该(些)事件有关的噩梦,或在不愿意的时候想起该(些)事件?",
17
+ },
18
+ "pc-ptsd-5-2": {
19
+ text: "在过去一个月里,您是否极力不去想该(些)事件,或刻意回避会让您想起该(些)事件的情境?",
20
+ },
21
+ "pc-ptsd-5-3": {
22
+ text: "在过去一个月里,您是否一直保持戒备、警觉,或容易受惊吓?",
23
+ },
24
+ "pc-ptsd-5-4": {
25
+ text: "在过去一个月里,您是否感到麻木,或与他人、日常活动或周围环境疏离?",
26
+ },
27
+ "pc-ptsd-5-5": {
28
+ text: "在过去一个月里,您是否因该(些)事件或其可能引起的任何问题而感到内疚,或无法停止责怪自己或他人?",
29
+ },
30
+ },
31
+ };
32
+ exports.default = pack;
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Simplified Chinese locale pack for phq4. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /** Simplified Chinese locale pack for phq4. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
4
+ const pack = {
5
+ id: "phq4",
6
+ locale: "zh",
7
+ title: "患者健康问卷-4(PHQ-4)",
8
+ description: "一份由 GAD-2 和 PHQ-2 组成的 4 题超简短焦虑与抑郁筛查工具。",
9
+ instructions: "在过去 2 周里,以下问题困扰您的频率如何?",
10
+ options: ["完全没有", "有几天", "超过一半的天数", "几乎每天"],
11
+ questions: {
12
+ "phq4-1": { text: "感到紧张、焦虑或心神不宁" },
13
+ "phq4-2": { text: "无法停止或控制担忧" },
14
+ "phq4-3": { text: "做事情时缺乏兴趣或乐趣" },
15
+ "phq4-4": { text: "感到情绪低落、抑郁或绝望" },
16
+ },
17
+ subscales: {
18
+ anxiety: {
19
+ label: "焦虑(GAD-2)",
20
+ bands: {
21
+ "below-cutoff": "低于筛查临界值",
22
+ positive: "筛查阳性:请用 GAD-7 和临床访谈进一步评估",
23
+ },
24
+ },
25
+ depression: {
26
+ label: "抑郁(PHQ-2)",
27
+ bands: {
28
+ "below-cutoff": "低于筛查临界值",
29
+ positive: "筛查阳性:请用 PHQ-9 和临床访谈进一步评估",
30
+ },
31
+ },
32
+ total: { label: "总分(PHQ-4)" },
33
+ },
34
+ };
35
+ exports.default = pack;
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Simplified Chinese locale pack for phq8. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /** Simplified Chinese locale pack for phq8. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
4
+ const pack = {
5
+ id: "phq8",
6
+ locale: "zh",
7
+ title: "患者健康问卷-8(PHQ-8)",
8
+ description: "一份用于测量抑郁严重程度的 8 题自评问卷:即去掉自伤想法条目的 PHQ-9。",
9
+ instructions: "在过去 2 周里,以下任何问题困扰您的频率如何?",
10
+ options: ["完全没有", "有几天", "超过一半的天数", "几乎每天"],
11
+ questions: {
12
+ "phq8-1": { text: "做事情时缺乏兴趣或乐趣" },
13
+ "phq8-2": { text: "感到情绪低落、抑郁或绝望" },
14
+ "phq8-3": { text: "难以入睡或难以保持睡眠,或睡得太多" },
15
+ "phq8-4": { text: "感到疲倦或缺乏精力" },
16
+ "phq8-5": { text: "食欲不振或吃得过多" },
17
+ "phq8-6": { text: "对自己感觉很糟,或觉得自己很失败,或让自己或家人失望" },
18
+ "phq8-7": { text: "难以集中注意力做事,例如读报纸或看电视" },
19
+ "phq8-8": {
20
+ text: "动作或说话慢到别人可能已经察觉?或者相反:坐立不安、烦躁,以致比平时活动多得多",
21
+ },
22
+ },
23
+ bands: {
24
+ minimal: "极轻微抑郁",
25
+ mild: "轻度抑郁",
26
+ moderate: "中度抑郁",
27
+ "moderately-severe": "中重度抑郁",
28
+ severe: "重度抑郁",
29
+ },
30
+ };
31
+ exports.default = pack;
@@ -0,0 +1,4 @@
1
+ import type { InventoryLocalePack } from "../../types.ts";
2
+ /** Simplified Chinese locale pack for tipi. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
3
+ declare const pack: InventoryLocalePack;
4
+ export default pack;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /** Simplified Chinese locale pack for tipi. AI translation (Anthropic Claude, claude-opus-5-5), unverified; see SOURCES.md. */
4
+ const pack = {
5
+ id: "tipi",
6
+ locale: "zh",
7
+ title: "十项人格量表(TIPI)",
8
+ description: "一份测量大五人格维度的 10 题工具,适用于需要非常简短测量的场合。",
9
+ instructions: "以下是一些可能适合也可能不适合您的人格特质。请在每项描述旁写下一个数字,表示您同意或不同意该描述的程度。即使其中一个特点比另一个更符合您,也请评价这一对特质整体上在多大程度上符合您。我认为自己是:",
10
+ options: ["非常不同意", "比较不同意", "有点不同意", "既不同意也不反对", "有点同意", "比较同意", "非常同意"],
11
+ questions: {
12
+ "tipi-1": { text: "外向的,热情的。" },
13
+ "tipi-2": { text: "爱挑剔的,好争吵的。" },
14
+ "tipi-3": { text: "可靠的,自律的。" },
15
+ "tipi-4": { text: "焦虑的,容易心烦的。" },
16
+ "tipi-5": { text: "乐于接受新体验的,复杂的。" },
17
+ "tipi-6": { text: "矜持的,安静的。" },
18
+ "tipi-7": { text: "富有同情心的,温暖的。" },
19
+ "tipi-8": { text: "缺乏条理的,粗心的。" },
20
+ "tipi-9": { text: "冷静的,情绪稳定的。" },
21
+ "tipi-10": { text: "守旧的,缺乏创造力的。" },
22
+ },
23
+ subscales: {
24
+ extraversion: { label: "外向性" },
25
+ agreeableness: { label: "宜人性" },
26
+ conscientiousness: { label: "尽责性" },
27
+ "emotional-stability": { label: "情绪稳定性" },
28
+ openness: { label: "经验开放性" },
29
+ },
30
+ };
31
+ exports.default = pack;
@@ -0,0 +1,11 @@
1
+ import type { AssessmentDefinition } from "../types.ts";
2
+ /**
3
+ * GDS-15: Geriatric Depression Scale, short form.
4
+ *
5
+ * 15 yes/no items about the past week, one point per answer in the
6
+ * depressive direction, total 0-15. "No" is the depressive answer on
7
+ * items 1, 5, 7, 11 and 13 (modelled as `reverseScored`), "yes" on the
8
+ * other ten. Bands follow the authors' own scoring page: more than 5
9
+ * suggests depression, more than 10 is almost always depression.
10
+ */
11
+ export declare const gds15: AssessmentDefinition;
@@ -0,0 +1,78 @@
1
+ /** Yes/no, with "yes" scoring 1. Items keyed on "no" are `reverseScored`. */
2
+ const yesNoOptions = [
3
+ { value: 1, label: { en: "Yes" } },
4
+ { value: 0, label: { en: "No" } },
5
+ ];
6
+ /** Items where "no" is the answer that indicates depression. */
7
+ const keyedNo = new Set([1, 5, 7, 11, 13]);
8
+ const items = [
9
+ "Are you basically satisfied with your life?",
10
+ "Have you dropped many of your activities and interests?",
11
+ "Do you feel that your life is empty?",
12
+ "Do you often get bored?",
13
+ "Are you in good spirits most of the time?",
14
+ "Are you afraid that something bad is going to happen to you?",
15
+ "Do you feel happy most of the time?",
16
+ "Do you often feel helpless?",
17
+ "Do you prefer to stay at home, rather than going out and doing new things?",
18
+ "Do you feel you have more problems with memory than most?",
19
+ "Do you think it is wonderful to be alive now?",
20
+ "Do you feel pretty worthless the way you are now?",
21
+ "Do you feel full of energy?",
22
+ "Do you feel that your situation is hopeless?",
23
+ "Do you think that most people are better off than you are?",
24
+ ];
25
+ /**
26
+ * GDS-15: Geriatric Depression Scale, short form.
27
+ *
28
+ * 15 yes/no items about the past week, one point per answer in the
29
+ * depressive direction, total 0-15. "No" is the depressive answer on
30
+ * items 1, 5, 7, 11 and 13 (modelled as `reverseScored`), "yes" on the
31
+ * other ten. Bands follow the authors' own scoring page: more than 5
32
+ * suggests depression, more than 10 is almost always depression.
33
+ */
34
+ export const gds15 = {
35
+ id: "gds15",
36
+ version: "1.0.0",
37
+ categories: ["depression"],
38
+ audience: ["adult"],
39
+ respondent: "self",
40
+ title: {
41
+ en: "Geriatric Depression Scale, Short Form (GDS-15)",
42
+ },
43
+ description: {
44
+ en: "A 15-item yes/no screening scale for depression in older adults.",
45
+ },
46
+ instructions: {
47
+ en: "Choose the best answer for how you have felt over the past week:",
48
+ },
49
+ defaultLocale: "en",
50
+ options: yesNoOptions,
51
+ questions: items.map((text, i) => ({
52
+ id: `gds15-${i + 1}`,
53
+ text: { en: text },
54
+ ...(keyedNo.has(i + 1) ? { reverseScored: true } : {}),
55
+ })),
56
+ scoring: {
57
+ kind: "sum",
58
+ missing: { strategy: "prorate", minAnswered: 10 },
59
+ bands: [
60
+ { id: "below-cutoff", min: 0, max: 5, label: { en: "Below the follow-up threshold" } },
61
+ {
62
+ id: "suggestive",
63
+ min: 6,
64
+ max: 10,
65
+ label: { en: "Suggestive of depression: a follow-up interview is warranted" },
66
+ },
67
+ { id: "likely", min: 11, max: 15, label: { en: "Almost always depression" } },
68
+ ],
69
+ },
70
+ meta: {
71
+ reference: "Sheikh, J. I., & Yesavage, J. A. (1986). Geriatric Depression Scale (GDS): Recent evidence and development of a shorter version. In Clinical Gerontology: A Guide to Assessment and Intervention (pp. 165-173). New York: The Haworth Press.",
72
+ license: "Free: \"The original scale is in the public domain due to it being partly the result of Federal support\" (J. A. Yesavage, https://web.stanford.edu/~yesavage/GDS.html). See SOURCES.md for how this statement is read for the short form.",
73
+ licenseFlag: "free",
74
+ translationProvenance: "en: transcribed from the authors' \"Short Form English\" page, https://web.stanford.edu/~yesavage/GDS.english.short.html, with the keyed answers taken from \"Short Form English Scoring\", https://web.stanford.edu/~yesavage/GDS.english.short.score.html (fetched 2026-11-21). Other locales (tr, de, zh, es): AI translation (Anthropic Claude, claude-opus-5-5) from the original English; the translations listed on the authors' page were not consulted and the texts are unverified. See SOURCES.md.",
75
+ timeframe: "past week",
76
+ scoringNote: "Sum 0-15, one point per answer in the depressive direction: \"no\" on items 1, 5, 7, 11, 13 and \"yes\" on the rest. Bands follow the authors' scoring page: \"for clinical purposes a score > 5 points is suggestive of depression and should warrent a follow-up interview. Scores > 10 are almost always depression.\" The same page notes that sensitivity and specificity differ across studies. Missing data: the authors prorate (score x 15 / answered) and would treat more than 5 missing items as invalid, so at least 10 answers are required; they round a fractional result up, while psytools rounds to the nearest integer.",
77
+ },
78
+ };
@@ -27,13 +27,19 @@ import { eat26 } from "./eat26.ts";
27
27
  import { csi16 } from "./csi16.ts";
28
28
  import { uclaLs3 } from "./ucla-ls3.ts";
29
29
  import { cbi } from "./cbi.ts";
30
+ import { pcPtsd5 } from "./pc-ptsd-5.ts";
31
+ import { phq4 } from "./phq4.ts";
32
+ import { phq8 } from "./phq8.ts";
33
+ import { gds15 } from "./gds15.ts";
34
+ import { tipi } from "./tipi.ts";
30
35
  export { phq9, gad7, dass21, who5, asrs6, aq10, audit, miniIpip, cesd, ecrR, erq, hsps, swls, flourishing, k10, k6, rses };
31
36
  export { miniIpip6, bisBas, ipipNeo60, ipipViaR };
32
37
  export { phq15, pcl5, eat26, csi16, uclaLs3, cbi };
38
+ export { pcPtsd5, phq4, phq8, gds15, tipi };
33
39
  export { twoWeekFrequencyOptions, twoWeekInstructions } from "./common.ts";
34
40
  /** All predefined inventory definitions shipped with psytools, by id. */
35
41
  export declare const inventories: Readonly<Record<string, AssessmentDefinition>>;
36
- export type InventoryId = "phq9" | "gad7" | "dass21" | "who5" | "asrs6" | "aq10" | "audit" | "mini-ipip" | "cesd" | "ecr-r" | "erq" | "hsps" | "swls" | "flourishing" | "k10" | "k6" | "rses" | "mini-ipip6" | "bis-bas" | "ipip-neo-60" | "ipip-via-r" | "phq15" | "pcl5" | "eat26" | "csi16" | "ucla-ls3" | "cbi";
42
+ export type InventoryId = "phq9" | "gad7" | "dass21" | "who5" | "asrs6" | "aq10" | "audit" | "mini-ipip" | "cesd" | "ecr-r" | "erq" | "hsps" | "swls" | "flourishing" | "k10" | "k6" | "rses" | "mini-ipip6" | "bis-bas" | "ipip-neo-60" | "ipip-via-r" | "phq15" | "pcl5" | "eat26" | "csi16" | "ucla-ls3" | "cbi" | "pc-ptsd-5" | "phq4" | "phq8" | "gds15" | "tipi";
37
43
  /**
38
44
  * Instantiates a predefined inventory as an `Assessment`.
39
45
  *
@@ -29,9 +29,15 @@ import { eat26 } from "./eat26.js";
29
29
  import { csi16 } from "./csi16.js";
30
30
  import { uclaLs3 } from "./ucla-ls3.js";
31
31
  import { cbi } from "./cbi.js";
32
+ import { pcPtsd5 } from "./pc-ptsd-5.js";
33
+ import { phq4 } from "./phq4.js";
34
+ import { phq8 } from "./phq8.js";
35
+ import { gds15 } from "./gds15.js";
36
+ import { tipi } from "./tipi.js";
32
37
  export { phq9, gad7, dass21, who5, asrs6, aq10, audit, miniIpip, cesd, ecrR, erq, hsps, swls, flourishing, k10, k6, rses };
33
38
  export { miniIpip6, bisBas, ipipNeo60, ipipViaR };
34
39
  export { phq15, pcl5, eat26, csi16, uclaLs3, cbi };
40
+ export { pcPtsd5, phq4, phq8, gds15, tipi };
35
41
  export { twoWeekFrequencyOptions, twoWeekInstructions } from "./common.js";
36
42
  /** All predefined inventory definitions shipped with psytools, by id. */
37
43
  export const inventories = {
@@ -62,6 +68,11 @@ export const inventories = {
62
68
  csi16,
63
69
  "ucla-ls3": uclaLs3,
64
70
  cbi,
71
+ "pc-ptsd-5": pcPtsd5,
72
+ phq4,
73
+ phq8,
74
+ gds15,
75
+ tipi,
65
76
  };
66
77
  /**
67
78
  * Instantiates a predefined inventory as an `Assessment`.
@@ -0,0 +1,12 @@
1
+ import type { AssessmentDefinition } from "../types.ts";
2
+ /**
3
+ * PC-PTSD-5: Primary Care PTSD Screen for DSM-5.
4
+ *
5
+ * A lifetime trauma-exposure question followed by five yes/no symptom
6
+ * items about the past month. The score is the count of "yes" answers to
7
+ * the five symptom items (0-5); the exposure question gates them and is
8
+ * not scored. Developed by staff at the VA's National Center for PTSD,
9
+ * public domain. No bands: the VA's cut-point of 4 is explicitly
10
+ * sample-dependent, see `meta.scoringNote`.
11
+ */
12
+ export declare const pcPtsd5: AssessmentDefinition;
@@ -0,0 +1,88 @@
1
+ /** The yes/no answer scale of the PC-PTSD-5. A "yes" scores 1. */
2
+ const yesNoOptions = [
3
+ { value: 1, label: { en: "Yes" } },
4
+ { value: 0, label: { en: "No" } },
5
+ ];
6
+ /** The VA form's lead-in to the five symptom items, prepended to each one. */
7
+ const leadIn = "In the past month, have you";
8
+ /**
9
+ * PC-PTSD-5: Primary Care PTSD Screen for DSM-5.
10
+ *
11
+ * A lifetime trauma-exposure question followed by five yes/no symptom
12
+ * items about the past month. The score is the count of "yes" answers to
13
+ * the five symptom items (0-5); the exposure question gates them and is
14
+ * not scored. Developed by staff at the VA's National Center for PTSD,
15
+ * public domain. No bands: the VA's cut-point of 4 is explicitly
16
+ * sample-dependent, see `meta.scoringNote`.
17
+ */
18
+ export const pcPtsd5 = {
19
+ id: "pc-ptsd-5",
20
+ version: "1.0.0",
21
+ categories: ["post-traumatic-stress"],
22
+ audience: ["adult"],
23
+ respondent: "self",
24
+ title: {
25
+ en: "Primary Care PTSD Screen for DSM-5 (PC-PTSD-5)",
26
+ },
27
+ description: {
28
+ en: "A brief screen for probable posttraumatic stress disorder: one question about lifetime trauma exposure, then five yes/no questions about how the trauma has affected the person in the past month.",
29
+ },
30
+ instructions: {
31
+ en: "Sometimes things happen to people that are unusually or especially frightening, horrible, or traumatic. For example: a serious accident or fire; a physical or sexual assault or abuse; an earthquake or flood; a war; seeing someone be killed or seriously injured; having a loved one die through homicide or suicide.",
32
+ },
33
+ defaultLocale: "en",
34
+ options: yesNoOptions,
35
+ questions: [
36
+ {
37
+ id: "pc-ptsd-5-trauma",
38
+ text: {
39
+ en: "Have you ever experienced this kind of event? If no, screen total = 0. Please stop here. If yes, please answer the questions below.",
40
+ },
41
+ },
42
+ {
43
+ id: "pc-ptsd-5-1",
44
+ text: {
45
+ en: `${leadIn} had nightmares about the event(s) or thought about the event(s) when you did not want to?`,
46
+ },
47
+ optional: true,
48
+ },
49
+ {
50
+ id: "pc-ptsd-5-2",
51
+ text: {
52
+ en: `${leadIn} tried hard not to think about the event(s) or went out of your way to avoid situations that reminded you of the event(s)?`,
53
+ },
54
+ optional: true,
55
+ },
56
+ {
57
+ id: "pc-ptsd-5-3",
58
+ text: { en: `${leadIn} been constantly on guard, watchful, or easily startled?` },
59
+ optional: true,
60
+ },
61
+ {
62
+ id: "pc-ptsd-5-4",
63
+ text: { en: `${leadIn} felt numb or detached from people, activities, or your surroundings?` },
64
+ optional: true,
65
+ },
66
+ {
67
+ id: "pc-ptsd-5-5",
68
+ text: {
69
+ en: `${leadIn} felt guilty or unable to stop blaming yourself or others for the event(s) or any problems the event(s) may have caused?`,
70
+ },
71
+ optional: true,
72
+ },
73
+ ],
74
+ scoring: {
75
+ kind: "count",
76
+ missing: { strategy: "ignore" },
77
+ items: [1, 2, 3, 4, 5].map((n) => ({ questionId: `pc-ptsd-5-${n}`, minValue: 1 })),
78
+ },
79
+ meta: {
80
+ reference: "Prins, A., Bovin, M. J., Kimerling, R., Kaloupek, D. G., Marx, B. P., Pless Kaiser, A., & Schnurr, P. P. (2015). The Primary Care PTSD Screen for DSM-5 (PC-PTSD-5) [Measurement instrument]. Available from https://www.ptsd.va.gov",
81
+ license: "Free: developed by staff at the VA's National Center for PTSD, in the public domain and not copyrighted",
82
+ licenseFlag: "free",
83
+ translationProvenance: "en: transcribed from the VA's own PC-PTSD-5 form PDF (version date 2022), https://www.ptsd.va.gov/professional/assessment/screens/pc-ptsd.asp; the form's lead-in \"In the past month, have you...\" is prepended to each symptom item and the six bulleted examples are joined into one sentence (see SOURCES.md). Other locales (tr, de, zh, es): AI translation (Anthropic Claude, claude-opus-5-5) from the original English; the VA's own Spanish version was not consulted and the texts are unverified. See SOURCES.md.",
84
+ timeframe: "exposure: lifetime; symptoms: past month",
85
+ scoringNote: "Count of \"yes\" answers to the five symptom items, 0-5. The exposure question (pc-ptsd-5-trauma) is not scored; it gates the symptom items, which are marked optional so a respondent who answers \"no\" and stops is scored 0, as the VA specifies. psytools cannot enforce the gate: render the symptom items only after a \"yes\", and treat a response that answers them after a \"no\" as invalid. No bands are defined on purpose: the VA reports that \"a cut-point of 4 ideally balanced false negatives and false positives for the overall sample and for men\", that it produced many false negatives for women, and that \"clinicians should consider sample characteristics and screening purposes when selecting a cut-point.\" Apply your own cut-point over `score`.",
86
+ renderingNote: "Show pc-ptsd-5-trauma first. Show pc-ptsd-5-1 to pc-ptsd-5-5 only when it is answered \"yes\" (value 1).",
87
+ },
88
+ };
@@ -0,0 +1,11 @@
1
+ import type { AssessmentDefinition } from "../types.ts";
2
+ /**
3
+ * PHQ-4: Patient Health Questionnaire for Depression and Anxiety.
4
+ *
5
+ * 4 items on the 0-3 frequency scale: the GAD-2 (items 1-2) and the PHQ-2
6
+ * (items 3-4), in the order Pfizer's own PHQ-4 form prints them. Scored
7
+ * as three scales: anxiety (0-6), depression (0-6) and the total (0-12).
8
+ * The two subscales carry the PHQ manual's screening cutpoint of 3; the
9
+ * total carries no bands, see `meta.scoringNote`.
10
+ */
11
+ export declare const phq4: AssessmentDefinition;