You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/SubjectCriteriaBuilderApllication.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,7 +122,7 @@ Each entry in the file looks like this:
122
122
123
123
```json
124
124
{
125
-
"key_name": "NHS_NUMBER",
125
+
"key": "NHS_NUMBER",
126
126
"value_source": "",
127
127
"notes": "Enter the 10-digit NHS Number of the subject you want to search for."
128
128
}
@@ -132,7 +132,7 @@ Or, with allowed values and dependencies:
132
132
133
133
```json
134
134
{
135
-
"key_name": "SUBJECT_HUB_CODE",
135
+
"key": "SUBJECT_HUB_CODE",
136
136
"value_source": "SubjectHubCode.by_description",
137
137
"notes": "Select the hub or organisation for the subject.",
138
138
"allowed_values": [
@@ -145,7 +145,7 @@ Or, with allowed values and dependencies:
145
145
}
146
146
```
147
147
148
-
-**`key_name`:** The unique identifier for the criterion (must match the code).
148
+
-**`key`:** The unique identifier for the criterion (must match the code).
149
149
-**`value_source`:** (Optional) The source of the value, can be left blank. This refers to the class + method used in the subject selection query builder. This is not used by the code but is there to allow easier tracking/mapping.
150
150
-**`notes`:** A clear, user-focused description of what the key is and what the user should input.
151
151
-**`allowed_values`:** (Optional) An array of allowed values for the dropdown selection.
@@ -154,7 +154,7 @@ Or, with allowed values and dependencies:
154
154
#### To add a new criterion
155
155
156
156
1. Add a new object to the JSON array with the following fields:
157
-
-`"key_name"`: The `Enum` member name (must match the code).
157
+
-`"key"`: The `Enum` member name (must match the code).
158
158
-`"value_source"`: (Optional) The value source, can be left blank.
159
159
-`"notes"`: A clear, user-focused description of what the key is and what the user should input.
160
160
-`"allowed_values"`: (Optional) An array of allowed values for the dropdown selection.
@@ -164,7 +164,7 @@ Or, with allowed values and dependencies:
164
164
165
165
#### To edit a criterion
166
166
167
-
- Find the object with the matching `"key_name"` and update the `"notes"`, `"allowed_values"`, or `"dependencies"` as needed.
167
+
- Find the object with the matching `"key"` and update the `"notes"`, `"allowed_values"`, or `"dependencies"` as needed.
168
168
- Save the file and reload the app.
169
169
170
170
#### To remove a criterion
@@ -236,7 +236,7 @@ If you add new keys to the `SubjectSelectionCriteriaKey` `Enum` in your code, yo
0 commit comments