Roland Ding commited on
Commit
386f984
·
1 Parent(s): f42e0c9

8.8.21.64 cleaned up application.py data structure, abstract_inst and revised app_data setup to remove path tables and add summary table.

Browse files
Files changed (1) hide show
  1. application.py +6 -60
application.py CHANGED
@@ -37,61 +37,11 @@ anatomic_domains=[
37
  '''
38
  dynamodb tables structure
39
  '''
40
- # data_structure = {
41
- # "terms":{
42
- # "key":[
43
- # "assessment_step",
44
- # "term"
45
- # ],
46
- # "fields":[
47
- # "assessment_step",
48
- # "term",
49
- # "clinical term",
50
- # "summary term",
51
- # "template_name",
52
- # "terms"
53
- # ]},
54
- # "prompts":{
55
- # "key":[
56
- # "assessment_step",
57
- # "template_name"
58
- # ],
59
- # "fields":[
60
- # "assessment_step",
61
- # "template_name",
62
- # "sections",
63
- # "groups",
64
- # "levels",
65
- # "preoperatives",
66
- # "prompt",
67
- # "fields",
68
- # "reformat_inst"
69
- # ]
70
- # },
71
- # "articles":{
72
- # "key":[
73
- # "domain",
74
- # "name"
75
- # ],
76
- # "fields":[
77
- # "domain",
78
- # "name",
79
- # "content",
80
- # "upload_time"
81
- # ]
82
- # },
83
- # # "outputs":{
84
- # # "key":[
85
- # # "domain",
86
- # # "article"
87
- # # ],
88
- # # "fields":[
89
- # # "domain",
90
- # # "article",
91
- # # "outcomes"
92
- # # ]
93
- # # }
94
- # }
95
 
96
  source_format = "<column 1 field>\n<value 1>\n<value 2>...<value n>\n<column 2 field>\n<value 1>\n<value 2>...<value n>\n...<column n field>\n<value 1>\n<value 2>...<value n>\n"
97
 
@@ -119,10 +69,6 @@ accepted_month_inst=[
119
  f"return the results on a single line as 'Accepted Month: <month>.",
120
  ]
121
 
122
- abstract_inst=[
123
- f"Extract the abstract of the article from the system text, and return its original text. Normally, the abstract is before the introduction and might a paragraph, or in sections of study design, objective, summary of background, methods, results, and conclusion with keywords section in the end.",
124
- ]
125
-
126
  '''
127
  application default data
128
  '''
@@ -131,5 +77,5 @@ app_data = {
131
  "articles":[],
132
  "prompts":{},
133
  "terms":[],
134
- "paths":{}
135
  }
 
37
  '''
38
  dynamodb tables structure
39
  '''
40
+
41
+ logic_keywords = {
42
+ "groups":["group"],
43
+ "preoperatives":["preoperative","preop","pre-op"]
44
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
  source_format = "<column 1 field>\n<value 1>\n<value 2>...<value n>\n<column 2 field>\n<value 1>\n<value 2>...<value n>\n...<column n field>\n<value 1>\n<value 2>...<value n>\n"
47
 
 
69
  f"return the results on a single line as 'Accepted Month: <month>.",
70
  ]
71
 
 
 
 
 
72
  '''
73
  application default data
74
  '''
 
77
  "articles":[],
78
  "prompts":{},
79
  "terms":[],
80
+ "summary":[]
81
  }