- Substance
- id - active
- Numerator unit - true
- Numerator value > 0
- Denumerator unit - true
- Denumerator value > 0
| Response 200 INNMS created. Saved to DB | - Login as NHS Admin
- Create innm copy
| |
| Create INNM with 0 ingredients | - Authorization = NHS Admin
- name - valid
- form = valid
- Substance
- id - active
- Numerator unit - true
- Numerator value = 0
- Denumerator unit - true
- Denumerator value = 0
| Response 422 message: expected the value to be > 0 | - Login as NHS Admin
- Create INNM with 0 ingredients
| |
| Create innm with not active substance | - Authorization = NHS Admin
- name - valid
- form = valid
- Substance
- id - NOT active
- Numerator unit - true
- Numerator value > 0
- Denumerator unit - true
- Denumerator value > 0
| Response 422 message: "Substance in ingredients must be active!" | - Login as NHS Admin
- Create innm with not active substance
| |
| Create innm with 2 is_active_subst ingredients | - Authorization = NHS Admin
- name - valid
- form = valid
- Substance
- id - active
- Numerator unit - true
- Numerator value > 0
- Denumerator unit - true
- Denumerator value > 0
- Substance
- id - active
- Numerator unit - true
- Numerator value > 0
- Denumerator unit - true
- Denumerator value > 0
| Response 422 message: "One of ingredients must be is active substance!" | - Login as NHS Admin
- Create innm with 2 is_active_subst ingredients
|
|
|
|
|
|
|
|
|
|
|
|
|
|