Genogram(ジェノグラム)

ジェノグラムについて

ジェノグラムは、従来の家系図における名前や生年月日を超え、3世代以上にわたる家族の感情的医療的な質感を記録する家族図です。セラピスト、ソーシャルワーカー、遺伝カウンセラーが、散文的な記録では見えにくいパターン——断絶、過剰な関与、繰り返す疾病——を明らかにするために使用します。

Schematex は、臨床訓練で使用される McGoldrick, Gerson & Petry (2020) 標準 と、広く採用されている GenoPro の32タイプ感情関係分類 に従っています。理論と歴史については Wikipedia: Genogram を参照してください。このページでは現在のパーサーが受け入れる内容を説明します。

genogram·§ McGoldrick
↘ preview
100%
Genogram: The Potter Family Genogram diagram with 10 individuals across 3 generations The Potter Family Fleamont (1909-1979) 70 Euphemia (1920-1979) 59 Mr_evans (1925) Mrs_evans (1928) James (1960-1981) 21 Lily (1960-1981) 21 Vernon (1951) Petunia (1958) Harry (1980) Dudley (1980) Fleamont (1909–1979) Euphemia (1920–1979) Mr_evans (b. 1925) Mrs_evans (b. 1928) James (1960–1981) Lily (1960–1981) Vernon (b. 1951) Petunia (b. 1958) Harry (b. 1980) Dudley (b. 1980) m. 1978 SYMBOLS Deceased RELATIONSHIPS Close Hostile Cutoff MARKERS Index person (focal subject)
UTF-8 · LF · 17 lines · 486 chars✓ parsed·5.7 ms·15.4 KB SVG

1. 最初のジェノグラム

臨床的に有用な最小のジェノグラム:両親2人と子ども1人。

genogram·§ McGoldrick
↘ preview
100%
Genogram Genogram diagram with 3 individuals across 2 generations Bob (1978) Alice (1980) Carol (2008) Bob (b. 1978) Alice (b. 1980) Carol (b. 2008) m. 2005
UTF-8 · LF · 5 lines · 92 chars✓ parsed·1.0 ms·5.3 KB SVG

使用方法の80%をカバーする4つのルール:

  1. キーワード genogram で始め、オプションで引用符付きのタイトルを続けます。
  2. 各人物を独自の行で宣言します:id [属性]。属性は角括弧内にカンマ区切りで記述します。
  3. 2人をカップル演算子で接続します——ここでは --(婚姻)を使用。§4.1でその他6種類を説明します。末尾の引用符付き文字列は関係のラベルになります。
  4. カップル行の下にインデントして子どもを追加します。

コメントは #//、またはMermaidスタイルの %% で始まる独立した行に記述してください。末尾のインラインコメント(bob [male, 1978] # ...)はサポートされておらず、パーサーを壊します——§8を参照。


2. 個人

個人の行は id [attr1, attr2, …] です。属性はカンマ区切りで、順序は問わず、すべてオプションです。

IDルール。 [a-zA-Z][a-zA-Z0-9_-]* に一致する必要があります。IDは内部的に大文字・小文字を区別せず、元の大文字・小文字をそのまま表示ラベルとして使用します(label:"…" で上書き可能)。

現在のパーサーが受け入れる属性:

属性効果
性別malefemaleunknownother形状:正方形、円、菱形、菱形
状態deceasedstillbornmiscarriageabortion視覚的な修飾子(×印、スケールされた形状など)
生年4桁の数字(例:1980最初の4桁トークン = 生年
死年生年後の4桁の数字(例:1980, 20552番目の4桁トークン = 死年
indexフラグ同心形状 = 識別患者
unknown-siblingsフラグ? 付きの菱形——不明数の兄弟姉妹のプレースホルダー
age:N例:age:42形状内に年齢を表示
death:YYYY例:death:2020明示的な死年
label:"…"例:label:"Dr. Smith"表示ラベルの上書き
sibling-of:<id>例:sibling-of:monica参照された兄弟姉妹と同じ世代に固定し、破線の括弧を描画——祖先が不明な既知の親族に使用。
conditions:…§5を参照医療的・心理的状態
key:value任意のカスタムメタデータとして保存
genogram·§ McGoldrick
↘ preview
100%
Genogram Genogram diagram with 4 individuals across 1 generations Grandma (1920-2002) 82 Dad (1950) 74 Me (1985) Em (2012) Grandma (1920–2002) Dad (b. 1950) Me (b. 1985) Em (b. 2012) SYMBOLS Deceased MARKERS Index person (focal subject)
UTF-8 · LF · 5 lines · 131 chars✓ parsed·0.8 ms·6.9 KB SVG

3. 形状

視覚性別値意味
☐ 正方形male男性
○ 円female女性
◇ 菱形unknownother、または属性省略不明 / 未指定

状態修飾子はベース形状の上に重なります:

genogram·§ McGoldrick
↘ preview
100%
Genogram Genogram diagram with 4 individuals across 1 generations Passed (1930-2010) 80 Alive (1960) Stillborn_child Lost Passed (1930–2010) Alive (b. 1960) Stillborn_child Lost SYMBOLS Unknown Deceased Stillborn Miscarriage
UTF-8 · LF · 5 lines · 128 chars✓ parsed·5.7 ms·7.1 KB SVG

4. 接続

4.1 カップル演算子

パーサーは以下の順序で試みます。最初に一致したものが優先されます——-x--- より優先されます。

演算子タイプ意味
-x-離婚a -x- b離婚
-/-別居a -/- b別居(婚姻中)
-//別居a -// b別居(-/- のエイリアス)
-o-婚約a -o- b婚約
==血縁a == b血縁関係のカップル
--婚姻a -- b婚姻
~同棲a ~ b同棲 / 長期交際(現在)
~/~同棲終了a ~/~ b同棲が終了(未婚)。生物学的な親が同棲していたが関係が終わったラテンアメリカの児童保護ケースに多く見られる——-x- 離婚(婚姻なし)や -/- 別居(婚姻中)とは異なる。

末尾の引用符付き文字列は関係ラベルになります(a -- b "m. 2005")。

4.2 右側のインライン個人

右側の人物がまだ宣言されていない場合、インラインで宣言できます:

genogram·§ McGoldrick
↘ preview
100%
Genogram Genogram diagram with 3 individuals across 2 generations Ben (1968) Ann (1970) Kim (1997) Ben (b. 1968) Ann (b. 1970) Kim (b. 1997) m. 1995
UTF-8 · LF · 4 lines · 82 chars✓ parsed·0.6 ms·5.3 KB SVG

4.3 子ども(カップルの下にインデント)

カップル行の下のインデント = 「これらはこのカップルの子ども」。カップルのインデントより大きいインデントであれば何でも機能します。慣習的にスペース2つ多く使用します。子どもは宣言順にレンダリングされます(生年が存在する場合はソートも行います)。

genogram·§ McGoldrick
↘ preview
100%
Genogram Genogram diagram with 6 individuals across 2 generations Dad (1950) Mom (1952) Eldest (1975) Middle (1978) Twin_a (1985) Twin_b (1985) Dad (b. 1950) Mom (b. 1952) Eldest (b. 1975) Middle (b. 1978) Twin_a (b. 1985) Twin_b (b. 1985) STRUCTURAL Adopted Twin Identical
UTF-8 · LF · 8 lines · 186 chars✓ parsed·1.0 ms·7.9 KB SVG

特別な子ども属性:

属性効果
adopted養子縁組の線スタイル
foster里親関係
guardian親以外の親族による後見(例:祖父母の親権)。foster と同じプリミティブ——生物学的な親が宣言されている場合、副次的な「現在のケアギバー」リンクとして描画。
twin-identical同じカップルの他の twin-identical の子どもとグループ化
twin-fraternal他の twin-fraternal の子どもとグループ化
unknown-siblings? グリフの単一菱形——「1人以上の兄弟姉妹、人数と身元は不明」(家系図の慣習)。

4.3.1 二重親家族(里親、養子縁組、後見)

生物学的な親がまだケースに含まれている状態で非生物学的なケアギバーのもとに置かれた子どもは、両方のカップルの下で宣言できます。最初に(生物学的なカップルの下で)完全な属性で子どもを宣言し、その後現在のケアギバーの下で [foster] / [adopted] / [guardian] だけで再宣言します。最初の宣言がレイアウトを決定します。2番目は副次的な点線の「現在のケアギバー」リンクとして描画され、子どもを生物学的な位置から引き離しません。

genogram·§ McGoldrick
↘ preview
100%
Genogram: Foster placement Genogram diagram with 6 individuals across 2 generations Foster placement Bio dad Bio mom Foster dad Foster mom Own (2010) Child (2018) Bio dad Bio mom Foster dad Foster mom Own (b. 2010) Child (b. 2018) STRUCTURAL Cohabiting (ended) Foster MARKERS Index person (focal subject)
UTF-8 · LF · 10 lines · 240 chars✓ parsed·1.4 ms·8.9 KB SVG

同じプリミティブが養子縁組(クローズド/オープン)、里親措置、親族による後見に使用されます——キーワードのみが異なります。再宣言は競合しない属性(性別、生年、ラベル、index マーカー)を元のものにマージします。malefemale のような競合する宣言は、サイレントな上書きではなくパースエラーを発生させます。

4.3.2 不明数の兄弟姉妹

ケースファイルに「子どもに兄弟姉妹がいる」とあっても名前がない場合、独立した行に ? ショートハンドを使用するか、通常のIDに [unknown-siblings] を使用します。どちらも「?」グリフの単一菱形でレンダリングされます——「1人以上の兄弟姉妹、身元不明」を示す標準的な家系図マーカーです。

genogram·§ McGoldrick
↘ preview
100%
Genogram Genogram diagram with 4 individuals across 2 generations Dad Mom Known_kid (2018) ? ? Dad Mom Known_kid (b. 2018) ? SYMBOLS Unknown MARKERS Sibling(s) — unknown count
UTF-8 · LF · 6 lines · 72 chars✓ parsed·0.8 ms·7.1 KB SVG

4.3.3 Sibling-of(既知の親族、祖先不明)

親を作らずに「XはYの兄弟姉妹」を表現するには、sibling-of: <id> プロパティを使用します。レンダラーはXをYの世代に固定し、2人の上に破線の括弧を描画します——ケースに含まれない祖先を持つ既知の親族を表す標準的な家系図の慣習です。

genogram·§ McGoldrick
↘ preview
100%
Genogram Genogram diagram with 2 individuals across 1 generations Monica (1990) Tío materno Monica (b. 1990) Tío materno
UTF-8 · LF · 3 lines · 85 chars✓ parsed·0.5 ms·4.4 KB SVG

4.4 感情的関係

独立した行、パーサーパターンは A -TYPE- B(非指向性)または A -TYPE-> B(指向性)。末尾にオプションの引用符付きラベルを追加できます。感情的な行の前に両方の個人が宣言されている必要があります。

harry -cutoff- petunia           # 非指向性
harry -hostile- dudley "since 1991"
uncle -abuse-> nephew             # 指向性(矢印付き)

現在パーサーが受け入れる32種類すべて:

カテゴリタイプ
ポジティブ / 親密harmonyclosebestfriendsloveinlovefriendship
ネガティブ / 敵対hostileconflictenmitydistant-hostilecutoff
両価的close-hostilefusedfused-hostile
距離distantnormalnevermet
虐待 (指向性)abusephysical-abuseemotional-abusesexual-abuseneglect
支配 (指向性)manipulativecontrollingjealous
特殊focusedfocused-negdistrustadmirerlimerence
genogram·§ McGoldrick
↘ preview
100%
Genogram Genogram diagram with 3 individuals across 1 generations since 2010 Dad (1950) Son (1985) Daughter (1988) Dad (b. 1950) Son (b. 1985) Daughter (b. 1988) RELATIONSHIPS Close Conflict Cutoff
UTF-8 · LF · 7 lines · 136 chars✓ parsed·0.6 ms·6.8 KB SVG

5. 医療的状態

構文:conditions: name(fill) [+ name(fill, #color)]…

father [male, 1945, conditions: heart(full, #E53935)]
mother [female, 1948, conditions: diabetes(half-left) + anxiety(half-right, #26A69A)]
  • name — 任意の識別子(凡例/ツールチップに表示)。
  • fill — 必須。形状のどの領域に色付けするかを制御。以下の表を参照。
  • color — オプションの16進数。デフォルトはレンダラーのテーマによる。
  • 複数の状態は + で結合します。それぞれに独自の (fill) が必要です。

フィル位置:

fill領域
full形状全体
half-left / half-right左半分 / 右半分
half-top / half-bottom上半分 / 下半分
quad-tl / quad-tr / quad-bl / quad-br一つの象限
striped斜めのストライプパターン(無症状保因者)
dottedドットパターン
genogram·§ McGoldrick
↘ preview
100%
Genogram Genogram diagram with 3 individuals across 2 generations Dad (1950) Mom (1952) Son (1980) Dad (b. 1950) Mom (b. 1952) Son (b. 1980) CONDITIONS Heart Diabetes Depression Carrier
UTF-8 · LF · 5 lines · 205 chars✓ parsed·2.8 ms·8.5 KB SVG

6. ラベルとコメント

  • タイトル: genogram "Smith Family" — 最初の行のみ。
  • 人物ラベルの上書き: alice [female, label:"Dr. Alice Smith"]
  • 関係ラベル: カップルまたは感情的な行の末尾に引用符付き文字列——alice -- bob "m. 2005"
  • コメント: 行頭(先頭の空白の後)に #//、または %%。インラインコメントはサポートされていません
genogram "Smith Family"
  # この行はコメント — 問題なし
  %% Mermaidスタイルのコメント — 同様に問題なし
  alice [female, 1980]   # ← この末尾コメントはパーサーを壊します

7. 予約語とエスケープ

行頭で予約: genogram(ヘッダーキーワード)。

行内の予約演算子トークン — IDでこれらの並びを使用しないでください: --~~/~==-x--/--//-o-、および感情関係タイプに一致する任意の -<type>- / -<type>->

予約ID ? — 子ども行の裸の ?unknown-siblings マーカーを持つ合成プレースホルダーを自動生成します。実際のIDとして ? を使用しないでください。

スペースを含む文字列はダブルクォートで囲む必要があります:タイトル、ラベル、label:"…"。シングルクォートとバックティックは認識されません。


8. よくある間違い

実際のパーサーエラー、その原因、修正方法。

記述した内容パーサーのメッセージ修正方法
alex [nonbinary, 1995]Unknown property 'nonbinary'unknown または other を使用(nonbinaryは§13ロードマップ)
alice [female, transgender]Unknown property 'transgender'まだパース不可(§13ロードマップ)
dad -- mom ← その後 child [male, 2010]同じインデント子どもが新しいトップレベル個人としてパースされ、子どもとして扱われない子ども行をカップル行より深くインデント(スペース2つで十分)
宣言されていない A を含む A -- BUnknown individual 'A'上の行に A [sex, year] を宣言する
1行目に genogram ヘッダーなしの father -- mother "married"Expected "genogram" headerファイルを genogram または genogram "Title" で開始する
conditions: diabetes + cancer(括弧なし)Invalid condition format 'diabetes'fillを追加:conditions: diabetes(half-left) + cancer(half-right)
[triplet-identical]Unknown property 'triplet-identical'三つ子はまだパース不可(§13ロードマップ)
dad -- mom # first marriage末尾のインライン # コメントがラベルの一部として扱われる / エラーコメントを独立した行に移動する
異なる性別で同じIDを2回宣言(x [male] その後 x [female]Conflicting sex for 'x': previously 'male', now 'female'どちらか一方を選択するか、IDの一方を変更する
child [foster] を再宣言したが生物学的な親が未宣言child が里親カップルの通常の子どもになる(副次リンクなし)これは意図的——副次リンクは前の宣言からの既存の親子関係を必要とします

9. 文法(EBNF)

document       = header (blank | comment | individual | couple-block | emotional)*

header         = "genogram" ( WS quoted-string )? NEWLINE
quoted-string  = '"' any-char-but-quote* '"'

individual     = INDENT id ( "[" attrs "]" )? NEWLINE
couple-block   = INDENT id WS coupleOp WS right-side ( WS quoted-string )? NEWLINE
                   ( deeper-indent child )*
child          = INDENT id ( "[" attrs "]" )? NEWLINE
               | INDENT "?" NEWLINE                              // 不明数の兄弟ショートハンド
right-side     = id ( "[" attrs "]" )?

emotional      = INDENT id WS "-" type "-"  id ( WS quoted-string )? NEWLINE
               | INDENT id WS "-" type "->" id ( WS quoted-string )? NEWLINE

coupleOp       = "~/~" | "-//" | "-x-" | "-/-" | "-o-" | "==" | "--" | "~"
type           = "harmony" | "close" | "bestfriends" | "love" | "inlove"
               | "friendship" | "hostile" | "conflict" | "enmity"
               | "distant-hostile" | "cutoff" | "close-hostile" | "fused"
               | "fused-hostile" | "distant" | "normal" | "nevermet"
               | "abuse" | "physical-abuse" | "emotional-abuse"
               | "sexual-abuse" | "neglect" | "manipulative" | "controlling"
               | "jealous" | "focused" | "focused-neg" | "distrust"
               | "admirer" | "limerence"

id             = [a-zA-Z] [a-zA-Z0-9_-]*
attrs          = attr ("," attr)*
attr           = "male" | "female" | "unknown" | "other"
               | "deceased" | "stillborn" | "miscarriage" | "abortion"
               | "adopted" | "foster" | "guardian"
               | "twin-identical" | "twin-fraternal"
               | "index" | "unknown-siblings"
               | digit digit digit digit                         // 年
               | "age" ":" digits
               | "death" ":" digit digit digit digit
               | "label" ":" quoted-string
               | "sibling-of" ":" id
               | "conditions" ":" condition ("+" condition)*
               | key ":" value                                    // カスタム
condition      = name "(" fill ("," "#" hex)? ")"
fill           = "full" | "half-left" | "half-right" | "half-top" | "half-bottom"
               | "quad-tl" | "quad-tr" | "quad-bl" | "quad-br"
               | "striped" | "dotted"

comment        = INDENT ( "#" | "//" | "%%" ) any NEWLINE

権威ある情報源:src/diagrams/genogram/parser.ts。これがパーサーと異なる場合はパーサーが優先されます——Issueを立ててください。


10. 標準への準拠

Schematex のジェノグラムは、構造的シンボル、カップル演算子、世代配置について McGoldrick, Gerson & Petry (2020), Genograms: Assessment and Treatment, 第4版 に従っています。感情関係の分類は GenoPro の32タイプ分類 に従っています(GenoPro の34タイプセット全体は実装していません。focused-admirer と1つの重複は focusedadmirer に統合されています)。

現在実装されているものと標準との比較:

  • ✅ コアの構造的シンボル(男性/女性/不明、故人、死産、流産、中絶)
  • ✅ McGoldrick の6演算子カップルシステム
  • ✅ GenoPro の32感情タイプ、臨床的に指定された場所では指向性あり
  • ✅ 医療的状態象限フィルシステム(4位置 + ストライプ/ドットパターン)
  • ✅ インデックスパーソン(同心形状)
  • ✅ 双子グループ(一卵性 / 二卵性)
  • ⏳ Bennett 2022ジェンダー包括性の追加——§13参照
  • ⏳ ドナー / 代理母 / 継子の接続タイプ——§13参照

参考文献:

  • McGoldrick, M., Gerson, R., & Petry, S. (2020). Genograms: Assessment and Treatment (第4版)。
  • Hardy, K.V. & Laszloffy, T.A. (1995). The cultural genogram. J Marital Fam Ther, 21(3), 227–237。
  • GenoPro シンボルリファレンス——https://genopro.com/genogram/

11. 関連するサンプル

サンプルギャラリーからすぐに使えるシナリオ:

genogram·§ McGoldrick 2020
Genogram: Smith Family Genogram diagram with 3 individuals across 2 generations Smith Family John (1975) Mary (1977) Alice (2005) John (b. 1975) Mary (b. 1977) Alice (b. 2005) m. 2002 MARKERS Index person (focal subject)
Nuclear family (minimal template)
Minimal nuclear family genogram — married couple, one child, marriage date — the clinical intake starting template per McGoldrick 2020 notation.
healthcare & social
genogram·§ McGoldrick 2020
Genogram: Medical History Genogram diagram with 7 individuals across 3 generations Medical History Grandfather (1930-1990) 60 Grandmother (1935) Father (1960) Mother (1962) Uncle (1963) Patient (1988) Sister (1991) Grandfather (1930–1990) Grandmother (b. 1935) Father (b. 1960) Mother (b. 1962) Uncle (b. 1963) Patient (b. 1988) Sister (b. 1991) SYMBOLS Deceased CONDITIONS Heart Disease Diabetes Cancer Hypertension MARKERS Index person (focal subject)
Multi-generation medical history
Three-generation family medical history genogram with multi-condition color annotations using fill zones — heart disease, diabetes, cancer, hypertension.
healthcare & social
genogram·§ McGoldrick 2020
Genogram: BRCA1 Family Genogram diagram with 8 individuals across 3 generations BRCA1 Family I_1 (1930-1995) 65 I_2 (1932-1990) 58 II_4 (1954) II_1 (1955) II_2 (1958) II_3 (1960) III_1 (1985) III_2 (1988) I_1 (1930–1995) I_2 (1932–1990) II_4 (b. 1954) II_1 (b. 1955) II_2 (b. 1958) II_3 (b. 1960) III_1 (b. 1985) III_2 (b. 1988) SYMBOLS Deceased CONDITIONS Ovarian Cancer Breast Cancer MARKERS Index person (focal subject)
Hereditary cancer (BRCA1) family
Three-generation BRCA1 family genogram with hereditary breast/ovarian cancer conditions — captured at intake before formal clinical pedigree analysis.
healthcare & social
genogram·§ McGoldrick 2020
Genogram: The Potter Family Genogram diagram with 10 individuals across 3 generations The Potter Family Fleamont (1909-1979) 70 Euphemia (1920-1979) 59 Mr_evans (1925) Mrs_evans (1928) James (1960-1981) 21 Lily (1960-1981) 21 Vernon (1951) Petunia (1958) Harry (1980) Dudley (1980) Fleamont (1909–1979) Euphemia (1920–1979) Mr_evans (b. 1925) Mrs_evans (b. 1928) James (1960–1981) Lily (1960–1981) Vernon (b. 1951) Petunia (b. 1958) Harry (b. 1980) Dudley (b. 1980) m. 1978 SYMBOLS Deceased RELATIONSHIPS Close Hostile Cutoff MARKERS Index person (focal subject)
The Potter family
Three-generation Potter family genogram with emotional relationship lines — cutoff, hostile, and close — illustrating McGoldrick relational notation.
education
genogram·§ McGoldrick 2020 + Bennett 2022 (adopted-out / dual-parent convention)
Genogram: Familia Isaías Genogram diagram with 9 individuals across 2 generations Familia Isaías Víctor Seguel Mónica Barrientos Tío materno Don Pablo Doña Priscila Isaías (2020) 6 ? ? Pablo (jr) Alanis Víctor Seguel Mónica Barrientos Tío materno Don Pablo Doña Priscila Isaías (b. 2020) ? Pablo (jr) Alanis SYMBOLS Unknown STRUCTURAL Cohabiting (ended) Foster RELATIONSHIPS Nevermet Physical Abuse MARKERS Index person (focal subject) Sibling(s) — unknown count
Foster care / child protection
Foster-care genogram for a real LATAM child-protection case — biological parents (cohabitation ended), abuse, current foster placement (dotted secondary link), unknown-count siblings, and a maternal uncle as known-relative-with-unknown-ancestry.
social-work

13. ロードマップ

計画中——まだパース不可。 今日生成された DSL ではこれらを使用しないでください。パーサーが拒否します。

  • Bennett 2022 ジェンダー包括性 — 性別値としての nonbinaryintersex;マーカーとしての transgender。現在 src/core/types.ts には型定義がありますが、パーサーの VALID_SEX セットにはまだ含まれていません。
  • 三つ子以上の高次出産triplet-identicaltriplet-fraternal
  • 現代的な家族構造 — 子どもタイプの属性としての surrogatedonorstep
  • 条件のカテゴリショートハンド(fill) なしの conditions: cardiovascular + depression、象限とデフォルト色を自動割り当て。
  • 国内パートナーシップ演算子~dp~ / 明示的なDPラベル。
  • ルーツアノテーション — 個人への文化的ジェノグラムのルーツ識別子。
  • 世帯境界ボックス — 同じ屋根を共有するノードのグループ化(里親措置、多世代世帯)。

これらが早期に必要な場合はGitHubのIssueでトラックしてください。

Found this useful?

Schematex is free, fully open source, and zero-dependency. A star helps other developers discover it.