class ChestClinic { inputs = (); outputs = (); node_size = (150 50); HR_DBN_Num_Slices = "5"; HR_Color_DiscreteFunction = "5"; HR_Color_Function = "4"; HR_Monitor_Mean_Variance = "1"; HR_Desc = "In a chest clinic, the patients can have tuberculosis, lung cancer, and/or bronchitis (or none of these). To determine the state of the patient, the doctor can make two observations: X-rays, and whether the patient suffers from dyspnoea.\nFurthermore, the doctor can ask the patient if he has been to asia and whether or not he is a smoker.\n\nWith this information, a diagnosis is made."; HR_OOBN_CheckConsistency = "1"; HR_OOBN_FitExpand = "1"; HR_Zoom_ZoomFactor = "100"; HR_Color_Interface = "21"; HR_Color_Instance = "0"; HR_Color_ContinuousChance = "48"; HR_Monitor_Utility_Arrange = "0"; HR_Monitor_Chance_Utility = "1"; HR_Compile_MaxMinimalSeparators = "100000"; HR_Compile_SaveToMemory = "0"; HR_Grid_X = "10"; HR_Grid_Y = "10"; HR_Grid_GridSnap = "1"; HR_Grid_GridShow = "0"; HR_Font_Name = "Arial"; HR_Font_Size = "-12"; HR_Font_Weight = "400"; HR_Font_Italic = "0"; HR_Propagate_Auto = "0"; HR_Propagate_AutoSum = "1"; HR_Propagate_AutoNormal = "1"; HR_Compile_TriangMethod = "0"; HR_Compile_Compress = "0"; HR_Compile_Approximate = "0"; HR_Compile_ApproxEpsilon = "0.00001"; HR_Monitor_AutoUpdGraph = "0"; HR_Monitor_GraphPrecision = "100"; HR_Monitor_OpenGraph = "0"; HR_Monitor_InitStates = "5"; HR_Monitor_InitSD = "2"; HR_Color_DiscreteChance = "16"; HR_Color_ContinuosChance = "48"; HR_Color_Utility = "36"; HR_Color_Decision = "17"; HR_Groups_UserGroupsNo = "0"; HR_Groups_GroupNames = ""; HR_Groups_GroupColors = ""; label = "Chest-clinic-runtime"; name = "Chest-clinic"; node X { label = "Positive X-ray?"; position = (110 340); states = ("yes" "no"); HR_Desc = "The doctor can have x-rays taken of the patient to determine the state of the lungs."; } node B { label = "Bronchitis?"; position = (470 150); states = ("yes" "no"); HR_LinkMode = "[D:0]"; } node D { label = "Dyspnoea?"; position = (380 340); states = ("yes" "no"); } node A { label = "Visit to Asia?"; position = (120 50); states = ("yes" "no"); HR_Desc = "A visit to asia increases the risk of tuberculosis."; HR_LinkMode = "[T:0]"; } node S { label = "Smoker?"; position = (380 40); states = ("yes" "no"); HR_Desc = "Smoking increases the risk of both lung cancer and bronchitis."; HR_LinkMode = "[L:0][B:0]"; } node L { label = "Lung cancer?"; position = (300 150); states = ("yes" "no"); HR_LinkMode = "[E:0]"; } node T { label = "Tuberculosis?"; position = (110 150); states = ("yes" "no"); HR_LinkMode = "[E:0]"; } node E { label = "Tuberculosis or cancer?"; position = (170 240); states = ("yes" "no"); HR_Desc = "This node is a deterministic variable. It helps reduce the number of parent configurations for the x-ray node, since the result of the x-ray will be positive if the patient has either tuberculosis or lung cancer, and negative if the patient has none of these."; HR_LinkMode = "[D:0][X:0]"; } potential (X | E) { data = (( 0.98 0.02 ) % E=yes ( 0.05 0.95 )); % E=no } potential (B | S) { data = (( 0.6 0.4 ) % S=yes ( 0.3 0.7 )); % S=no } potential (D | B E) { data = ((( 0.9 0.1 ) % B=yes E=yes ( 0.8 0.2 )) % B=yes E=no (( 0.7 0.3 ) % B=no E=yes ( 0.1 0.9 ))); % B=no E=no } potential (A) { data = ( 0.01 0.99 ); } potential (S) { data = ( 0.5 0.5 ); } potential (L | S) { data = (( 0.1 0.9 ) % S=yes ( 0.01 0.99 )); % S=no } potential (T | A) { data = (( 0.05 0.95 ) % A=yes ( 0.01 0.99 )); % A=no } potential (E | T L) { data = ((( 1 0 ) % T=yes L=yes ( 1 0 )) % T=yes L=no (( 1 0 ) % T=no L=yes ( 0 1 ))); % T=no L=no } } % class ChestClinic