Skip to content

Commit 9746259

Browse files
committed
more fixes to tutorial
1 parent 63758d7 commit 9746259

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/explanations/curator_data_model.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Here is the Patient described above represented as a CSV data model:
2222
| Gender | |
2323
| Name | |
2424

25-
The end goal is to create a JSON schema that can be used in Curator. A JSON Schema consists of only one data type and their attributes. Converting the above data model to JSON Schema results in:
25+
The end goal is to create a JSON Schema that can be used in Curator. A JSON Schema consists of only one data type and their attributes. Converting the above data model to JSON Schema results in:
2626

2727
```json
2828
{
@@ -196,11 +196,11 @@ The format of this attribute. See [format](https://json-schema.org/understanding
196196

197197
Data Model:
198198

199-
| Attribute | DependsOn | columnType | Format |
199+
| Attribute | DependsOn | columnType | Format |
200200
|---|---|---|---|
201-
| Patient | "Gender, Date" | | |
202-
| Gender | | string | |
203-
| Birth Date | | string | date |
201+
| Patient | "Gender, Birth Date" | | |
202+
| Gender | | string | |
203+
| Birth Date | | string | date |
204204

205205
JSON Schema output:
206206

@@ -231,7 +231,7 @@ Data Model:
231231

232232
| Attribute | DependsOn | columnType | Pattern |
233233
|---|---|---|---|
234-
| Patient | "Gender, ID" | | |
234+
| Patient | "Gender, ID" | | |
235235
| Gender | | string | |
236236
| ID | | string | [a-f] |
237237

@@ -264,7 +264,7 @@ Data Model:
264264

265265
| Attribute | DependsOn | columnType | Minimum | Maximum |
266266
|---|---|---|---|---|
267-
| Patient | "Age, Weight, Expression" | | | |
267+
| Patient | "Age, Weight, Health Score" | | | |
268268
| Age | | integer | 0 | 120 |
269269
| Weight | | number | 0.0 | |
270270
| Health Score | | number | 0.0 | 1.0 |
@@ -317,7 +317,7 @@ If you have an existing data model using any of the following validation rules,
317317

318318
The `DependsOn` and `Valid Values` columns can be used together to flexibly define conditional logic for determining the relevant attributes for a data type.
319319

320-
In this example we have the `Patient` data type. In this case the `Patient` can be diagnosed as healthy or with cancer. For Patients with cancer we also want to collect info about their cancer type, and any cancers in their family history.
320+
In this example we have the `Patient` data type. The `Patient` can be diagnosed as healthy or with cancer. For Patients with cancer we also want to collect info about their cancer type, and any cancers in their family history.
321321

322322
Data Model:
323323

@@ -381,7 +381,7 @@ As a result of the above data model, in the JSON Schema:
381381
}
382382
},
383383
"then": {
384-
"required": ["Cancer Type", "FamilyHistory"]
384+
"required": ["Cancer Type", "Family History"]
385385
}
386386
}
387387
]

0 commit comments

Comments
 (0)