Skip to content

Commit 31e1f85

Browse files
Merge pull request #587 from openMetadataInitiative/lzehl_specimenUpdate
specimen set statistics via isPartOf for sets
2 parents b33ae21 + e64b6d1 commit 31e1f85

File tree

5 files changed

+79
-8
lines changed

5 files changed

+79
-8
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"_type": "core:SpecimenAge",
3+
"required": [
4+
"age",
5+
"reference"
6+
],
7+
"properties": {
8+
"age": {
9+
"_instruction": "Enter the age value.",
10+
"_embeddedTypes": [
11+
"core:QuantitativeValue",
12+
"core:QuantitativeValueRange"
13+
]
14+
},
15+
"reference": {
16+
"_instruction": "Enter the age reference for the specified age value.",
17+
"_linkedTypes": [
18+
"controlledTerms:AgeReference"
19+
]
20+
}
21+
}
22+
}

schemas/research/specimenState.schema.tpl.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,19 @@
88
"_instruction": "Enter any additional remarks concerning the specimen (set) in this state."
99
},
1010
"age": {
11-
"_instruction": "Enter the age of the specimen (set) in this state.",
11+
"_instruction": "Enter the age and age reference of the specimen (set) in this state.",
1212
"_embeddedTypes": [
13-
"core:QuantitativeValue",
14-
"core:QuantitativeValueRange"
13+
"core:SpecimenAge"
14+
]
15+
},
16+
"associatedProtocol": {
17+
"type": "array",
18+
"minItems": 1,
19+
"uniqueItems": true,
20+
"_instruction": "Add all technical and/or behavioral protocols associated with this specimen state.",
21+
"_linkedTypes": [
22+
"core:Protocol",
23+
"core:BehavioralProtocol"
1524
]
1625
},
1726
"internalIdentifier": {
@@ -40,10 +49,9 @@
4049
]
4150
},
4251
"weight": {
43-
"_instruction": "Enter the weight of the specimen (set) in this state.",
52+
"_instruction": "Enter the weight and weight type of the specimen (set) in this state.",
4453
"_embeddedTypes": [
45-
"core:QuantitativeValue",
46-
"core:QuantitativeValueRange"
54+
"core:SpecimenWeight"
4755
]
4856
}
4957
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"_type": "core:SpecimenWeight",
3+
"required": [
4+
"type",
5+
"weight"
6+
],
7+
"properties": {
8+
"type": {
9+
"_instruction": "Enter the weight type for the specified weight value.",
10+
"_linkedTypes": [
11+
"controlledTerms:WeightType"
12+
]
13+
},
14+
"weight": {
15+
"_instruction": "Enter the weight value.",
16+
"_embeddedTypes": [
17+
"core:QuantitativeValue",
18+
"core:QuantitativeValueRange"
19+
]
20+
}
21+
}
22+
}

schemas/research/subjectGroup.schema.tpl.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,24 @@
22
"_type": "core:SubjectGroup",
33
"_extends": "research/specimenSet.schema.tpl.json",
44
"required": [
5+
"numberOfSubjects",
56
"studiedState"
67
],
7-
"properties": {
8+
"properties": {
89
"numberOfSubjects": {
910
"type": "integer",
1011
"minimum": 2,
1112
"_instruction": "Enter the number of subjects that belong to this subject group."
1213
},
14+
"isPartOf": {
15+
"type": "array",
16+
"minItems": 1,
17+
"uniqueItems": true,
18+
"_instruction": "Add all subject groups of which this subject group is a subgroup.",
19+
"_linkedTypes": [
20+
"core:SubjectGroup"
21+
]
22+
},
1323
"studiedState": {
1424
"type": "array",
1525
"minItems": 1,

schemas/research/tissueSampleCollection.schema.tpl.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,16 @@
1515
"_linkedCategories": [
1616
"anatomicalLocation"
1717
]
18-
},
18+
},
19+
"isPartOf": {
20+
"type": "array",
21+
"minItems": 1,
22+
"uniqueItems": true,
23+
"_instruction": "Add all tissue sample collections of which this tissue sample collection is a subcollection.",
24+
"_linkedTypes": [
25+
"core:TissueSampleCollection"
26+
]
27+
},
1928
"laterality": {
2029
"type": "array",
2130
"minItems": 1,

0 commit comments

Comments
 (0)