Skip to content

Commit

Permalink
fix therapeutic agents and actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ahwagner committed Sep 10, 2023
1 parent ae3ad4b commit 375cb51
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 196 deletions.
14 changes: 2 additions & 12 deletions schema/core-source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,6 @@ $defs:
const: TherapeuticAction
default: TherapeuticAction
description: MUST be "TherapeuticAction".
action:
description: The therapeutic action taken.
$ref: "#/$defs/MappableEntity"
required:
- action

TherapeuticAgent:
type: object
Expand All @@ -244,11 +239,6 @@ $defs:
const: TherapeuticAgent
default: TherapeuticAgent
description: MUST be "TherapeuticAgent".
agent:
description: The therapeutic agent administered.
$ref: "#/$defs/MappableEntity"
required:
- agent

CombinationTherapy:
type: object
Expand All @@ -275,7 +265,7 @@ $defs:
- $ref: "#/$defs/TherapeuticAgent"
minItems: 2
required:
- procedures
- components

TherapeuticSubstituteGroup:
type: object
Expand All @@ -300,7 +290,7 @@ $defs:
- $ref: "#/$defs/TherapeuticAgent"
minItems: 2
required:
- procedures
- substitutes

Gene:
inherits: DomainEntity
Expand Down
64 changes: 2 additions & 62 deletions schema/core.json
Original file line number Diff line number Diff line change
Expand Up @@ -364,39 +364,9 @@
"const": "TherapeuticAction",
"default": "TherapeuticAction",
"description": "MUST be \"TherapeuticAction\"."
},
"action": {
"description": "The therapeutic action taken.",
"oneOf": [
{
"$ref": "#/$defs/CombinationTherapy"
},
{
"$ref": "#/$defs/Disease"
},
{
"$ref": "#/$defs/Gene"
},
{
"$ref": "#/$defs/Phenotype"
},
{
"$ref": "#/$defs/TherapeuticAction"
},
{
"$ref": "#/$defs/TherapeuticAgent"
},
{
"$ref": "#/$defs/TherapeuticSubstituteGroup"
},
{
"$ref": "#/$defs/TraitSet"
}
]
}
},
"required": [
"action",
"type"
],
"additionalProperties": false
Expand Down Expand Up @@ -445,39 +415,9 @@
"const": "TherapeuticAgent",
"default": "TherapeuticAgent",
"description": "MUST be \"TherapeuticAgent\"."
},
"agent": {
"description": "The therapeutic agent administered.",
"oneOf": [
{
"$ref": "#/$defs/CombinationTherapy"
},
{
"$ref": "#/$defs/Disease"
},
{
"$ref": "#/$defs/Gene"
},
{
"$ref": "#/$defs/Phenotype"
},
{
"$ref": "#/$defs/TherapeuticAction"
},
{
"$ref": "#/$defs/TherapeuticAgent"
},
{
"$ref": "#/$defs/TherapeuticSubstituteGroup"
},
{
"$ref": "#/$defs/TraitSet"
}
]
}
},
"required": [
"agent",
"type"
],
"additionalProperties": false
Expand Down Expand Up @@ -548,7 +488,7 @@
}
},
"required": [
"procedures",
"components",
"type"
],
"additionalProperties": false
Expand Down Expand Up @@ -616,7 +556,7 @@
}
},
"required": [
"procedures",
"substitutes",
"type"
],
"additionalProperties": false
Expand Down
28 changes: 2 additions & 26 deletions schema/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -294,19 +294,7 @@ $defs:
const: TherapeuticAction
default: TherapeuticAction
description: MUST be "TherapeuticAction".
action:
description: The therapeutic action taken.
oneOf:
- $ref: '#/$defs/CombinationTherapy'
- $ref: '#/$defs/Disease'
- $ref: '#/$defs/Gene'
- $ref: '#/$defs/Phenotype'
- $ref: '#/$defs/TherapeuticAction'
- $ref: '#/$defs/TherapeuticAgent'
- $ref: '#/$defs/TherapeuticSubstituteGroup'
- $ref: '#/$defs/TraitSet'
required:
- action
- type
additionalProperties: false
TherapeuticAgent:
Expand Down Expand Up @@ -348,19 +336,7 @@ $defs:
const: TherapeuticAgent
default: TherapeuticAgent
description: MUST be "TherapeuticAgent".
agent:
description: The therapeutic agent administered.
oneOf:
- $ref: '#/$defs/CombinationTherapy'
- $ref: '#/$defs/Disease'
- $ref: '#/$defs/Gene'
- $ref: '#/$defs/Phenotype'
- $ref: '#/$defs/TherapeuticAction'
- $ref: '#/$defs/TherapeuticAgent'
- $ref: '#/$defs/TherapeuticSubstituteGroup'
- $ref: '#/$defs/TraitSet'
required:
- agent
- type
additionalProperties: false
CombinationTherapy:
Expand Down Expand Up @@ -414,7 +390,7 @@ $defs:
- $ref: '#/$defs/TherapeuticAgent'
minItems: 2
required:
- procedures
- components
- type
additionalProperties: false
TherapeuticSubstituteGroup:
Expand Down Expand Up @@ -467,7 +443,7 @@ $defs:
- $ref: '#/$defs/TherapeuticAgent'
minItems: 2
required:
- procedures
- substitutes
- type
additionalProperties: false
Gene:
Expand Down
4 changes: 0 additions & 4 deletions schema/defs/core/TherapeuticAction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,3 @@ Some TherapeuticAction attributes are inherited from :ref:`DomainEntity`.
- string
- 1..1
- MUST be "TherapeuticAction".
* - action
- :ref:`MappableEntity`
- 1..1
- The therapeutic action taken.
4 changes: 0 additions & 4 deletions schema/defs/core/TherapeuticAgent.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,3 @@ Some TherapeuticAgent attributes are inherited from :ref:`DomainEntity`.
- string
- 1..1
- MUST be "TherapeuticAgent".
* - agent
- :ref:`MappableEntity`
- 1..1
- The therapeutic agent administered.
64 changes: 2 additions & 62 deletions schema/merged.json
Original file line number Diff line number Diff line change
Expand Up @@ -1216,39 +1216,9 @@
"const": "TherapeuticAction",
"default": "TherapeuticAction",
"description": "MUST be \"TherapeuticAction\"."
},
"action": {
"description": "The therapeutic action taken.",
"oneOf": [
{
"$ref": "#/$defs/CombinationTherapy"
},
{
"$ref": "#/$defs/Disease"
},
{
"$ref": "#/$defs/Gene"
},
{
"$ref": "#/$defs/Phenotype"
},
{
"$ref": "#/$defs/TherapeuticAction"
},
{
"$ref": "#/$defs/TherapeuticAgent"
},
{
"$ref": "#/$defs/TherapeuticSubstituteGroup"
},
{
"$ref": "#/$defs/TraitSet"
}
]
}
},
"required": [
"action",
"type"
],
"additionalProperties": false
Expand Down Expand Up @@ -1297,39 +1267,9 @@
"const": "TherapeuticAgent",
"default": "TherapeuticAgent",
"description": "MUST be \"TherapeuticAgent\"."
},
"agent": {
"description": "The therapeutic agent administered.",
"oneOf": [
{
"$ref": "#/$defs/CombinationTherapy"
},
{
"$ref": "#/$defs/Disease"
},
{
"$ref": "#/$defs/Gene"
},
{
"$ref": "#/$defs/Phenotype"
},
{
"$ref": "#/$defs/TherapeuticAction"
},
{
"$ref": "#/$defs/TherapeuticAgent"
},
{
"$ref": "#/$defs/TherapeuticSubstituteGroup"
},
{
"$ref": "#/$defs/TraitSet"
}
]
}
},
"required": [
"agent",
"type"
],
"additionalProperties": false
Expand Down Expand Up @@ -1400,7 +1340,7 @@
}
},
"required": [
"procedures",
"components",
"type"
],
"additionalProperties": false
Expand Down Expand Up @@ -1468,7 +1408,7 @@
}
},
"required": [
"procedures",
"substitutes",
"type"
],
"additionalProperties": false
Expand Down
28 changes: 2 additions & 26 deletions schema/merged.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -948,19 +948,7 @@ $defs:
const: TherapeuticAction
default: TherapeuticAction
description: MUST be "TherapeuticAction".
action:
description: The therapeutic action taken.
oneOf:
- $ref: '#/$defs/CombinationTherapy'
- $ref: '#/$defs/Disease'
- $ref: '#/$defs/Gene'
- $ref: '#/$defs/Phenotype'
- $ref: '#/$defs/TherapeuticAction'
- $ref: '#/$defs/TherapeuticAgent'
- $ref: '#/$defs/TherapeuticSubstituteGroup'
- $ref: '#/$defs/TraitSet'
required:
- action
- type
additionalProperties: false
TherapeuticAgent:
Expand Down Expand Up @@ -1002,19 +990,7 @@ $defs:
const: TherapeuticAgent
default: TherapeuticAgent
description: MUST be "TherapeuticAgent".
agent:
description: The therapeutic agent administered.
oneOf:
- $ref: '#/$defs/CombinationTherapy'
- $ref: '#/$defs/Disease'
- $ref: '#/$defs/Gene'
- $ref: '#/$defs/Phenotype'
- $ref: '#/$defs/TherapeuticAction'
- $ref: '#/$defs/TherapeuticAgent'
- $ref: '#/$defs/TherapeuticSubstituteGroup'
- $ref: '#/$defs/TraitSet'
required:
- agent
- type
additionalProperties: false
CombinationTherapy:
Expand Down Expand Up @@ -1068,7 +1044,7 @@ $defs:
- $ref: '#/$defs/TherapeuticAgent'
minItems: 2
required:
- procedures
- components
- type
additionalProperties: false
TherapeuticSubstituteGroup:
Expand Down Expand Up @@ -1121,7 +1097,7 @@ $defs:
- $ref: '#/$defs/TherapeuticAgent'
minItems: 2
required:
- procedures
- substitutes
- type
additionalProperties: false
Gene:
Expand Down

0 comments on commit 375cb51

Please sign in to comment.