Skip to content

Commit

Permalink
FIX: Add PET metadata dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Mar 3, 2024
1 parent 8a44726 commit 615ac53
Showing 1 changed file with 52 additions and 3 deletions.
55 changes: 52 additions & 3 deletions bids-validator/validators/json/schemas/pet.json
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,20 @@
"ImageDecayCorrectionTime",
"ReconMethodName",
"ReconMethodParameterLabels",
"ReconMethodParameterUnits",
"ReconMethodParameterValues",
"ReconFilterType",
"ReconFilterSize",
"AttenuationCorrection"
],
"allOf": [
{
"$ref": "#/dependency-definitions/if-ReconMethodParameterLabels-then-Units-and-Values"
},
{
"$ref": "#/dependency-definitions/if-bolus-infusion-then-infusion-details"
},
{
"$ref": "#/dependency-definitions/if-ReconFilterType-then-ReconFilterSize"
}
],
"dependencies": {
"TracerMolecularWeight": ["TracerMolecularWeightUnits"],
"InjectedRadioactivity": ["InjectedRadioactivityUnits"],
Expand All @@ -265,5 +273,46 @@
"ReconMethodParameterUnits",
"ReconMethodParameterValues"
]
},
"dependency-definitions": {
"if-ReconMethodParameterLabels-then-Units-and-Values": {
"if": {
"type": "object",
"properties": {
"ReconMethodParameterLabels": { "const": "none" }
}
},
"else": {
"required": ["ReconMethodParameterUnits", "ReconMethodParameterValues"]
}
},
"if-bolus-infusion-then-infusion-details": {
"if": {
"type": "object",
"properties": {
"ModeOfAdministration": { "const": "bolus-infusion" }
}
},
"then": {
"required": [
"InfusionRadioactivity",
"InfusionStart",
"InfusionSpeed",
"InfusionSpeedUnits",
"InjectedVolume"
]
}
},
"if-ReconFilterType-then-ReconFilterSize": {
"if": {
"type": "object",
"properties": {
"ReconMethodParameterLabels": { "const": "none" }
}
},
"else": {
"required": ["ReconFilterSize"]
}
}
}
}

0 comments on commit 615ac53

Please sign in to comment.