Skip to content

Commit

Permalink
Update JSON Schema validations for I/O Balance fields
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Aug 22, 2024
1 parent a4e2f8b commit 3598c9a
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions care/facility/models/json_schema/daily_round.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@
{
"type": "object",
"properties": {
"name": {"type": "string"},
"name": {
"type": "string",
"enum": [
"Adrenalin",
"Nor-adrenalin",
"Vasopressin",
"Dopamine",
"Dobutamine",
],
},
"quantity": {"type": "number"},
"concentration": {"type": "number"},
"conc_unit": {"type": "string"},
Expand All @@ -34,7 +43,10 @@
{
"type": "object",
"properties": {
"name": {"type": "string"},
"name": {
"type": "string",
"enum": ["RL", "NS", "DNS"],
},
"quantity": {"type": "number"},
},
"additionalProperties": False,
Expand All @@ -50,7 +62,10 @@
{
"type": "object",
"properties": {
"name": {"type": "string"},
"name": {
"type": "string",
"enum": ["Ryles Tube", "Normal Feed"],
},
"quantity": {"type": "number"},
"calories": {"type": "number"},
},
Expand All @@ -67,7 +82,15 @@
{
"type": "object",
"properties": {
"name": {"type": "string"},
"name": {
"type": "string",
"enum": [
"Urine",
"Ryles Tube Aspiration",
"ICD",
"Abdominal Drain",
],
},
"quantity": {"type": "number"},
},
"additionalProperties": False,
Expand Down

0 comments on commit 3598c9a

Please sign in to comment.